Skip to content

Commit

Permalink
remove @lit-labs/motion. fixed #354
Browse files Browse the repository at this point in the history
  • Loading branch information
zdhxiong committed Oct 19, 2024
1 parent dad9107 commit 16fbb66
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 25 deletions.
1 change: 0 additions & 1 deletion packages/mdui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
},
"homepage": "https://www.mdui.org",
"dependencies": {
"@lit-labs/motion": "^1.0.7",
"@lit/localize": "^0.12.1",
"@lit/reactive-element": "^2.0.4",
"@material/material-color-utilities": "^0.3.0",
Expand Down
15 changes: 1 addition & 14 deletions packages/mdui/src/components/text-field/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { live } from 'lit/directives/live.js';
import { createRef, ref } from 'lit/directives/ref.js';
import { when } from 'lit/directives/when.js';
import { msg } from '@lit/localize';
import { animate } from '@lit-labs/motion';
import { $ } from '@mdui/jq/$.js';
import '@mdui/jq/methods/css.js';
import { MduiElement } from '@mdui/shared/base/mdui-element.js';
Expand All @@ -15,7 +14,6 @@ import { HasSlotController } from '@mdui/shared/controllers/has-slot.js';
import { defaultValue } from '@mdui/shared/decorators/default-value.js';
import { watch } from '@mdui/shared/decorators/watch.js';
import { booleanConverter } from '@mdui/shared/helpers/decorator.js';
import { getDuration, getEasing } from '@mdui/shared/helpers/motion.js';
import { observeResize } from '@mdui/shared/helpers/observeResize.js';
import { nothingTemplate } from '@mdui/shared/helpers/template.js';
import '@mdui/shared/icons/cancel--outlined.js';
Expand Down Expand Up @@ -904,18 +902,7 @@ export class TextField

private renderLabel(): TemplateResult {
return this.label
? html`<label
part="label"
class="label"
${animate({
keyframeOptions: {
duration: getDuration(this, 'short4'),
easing: getEasing(this, 'standard'),
},
})}
>
${this.label}
</label>`
? html`<label part="label" class="label">${this.label}</label>`
: nothingTemplate;
}

Expand Down
1 change: 1 addition & 0 deletions packages/mdui/src/components/text-field/style.less
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@
overflow: hidden;
-webkit-box-orient: vertical;
-webkit-line-clamp: 1;
transition: all var(--mdui-motion-duration-short4) var(--mdui-motion-easing-standard);
.top(16);
.color(on-surface-variant);
.typescale(body-large);
Expand Down
10 changes: 0 additions & 10 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 16fbb66

Please sign in to comment.