@vollowx/seele 0.12.10 → 0.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +34 -58
- package/package.json +6 -5
- package/src/all.js +5 -0
- package/src/base/autocomplete.js +1 -4
- package/src/base/dialog.js +32 -0
- package/src/base/input.js +2 -40
- package/src/base/list.js +1 -1
- package/src/base/menu.js +1 -9
- package/src/base/select.js +1 -1
- package/src/base/slider.js +2 -23
- package/src/base/tabs.js +1 -5
- package/src/m3/autocomplete/autocomplete-styles.css.js +1 -1
- package/src/m3/autocomplete/autocomplete.js +1 -20
- package/src/m3/badge/badge-styles.css.js +1 -1
- package/src/m3/badge/badge.js +1 -6
- package/src/m3/button/common-button-styles.css.js +1 -1
- package/src/m3/button/common-button-toggle.js +1 -9
- package/src/m3/button/common-button.js +1 -7
- package/src/m3/button/icon-button-styles.css.js +1 -1
- package/src/m3/button/icon-button-toggle.js +1 -7
- package/src/m3/button/icon-button.js +1 -6
- package/src/m3/button/shared-button-styles.css.js +1 -1
- package/src/m3/button/shared-button-toggle-styles.css.js +1 -1
- package/src/m3/button-group/standard-button-group-styles.css.js +2 -0
- package/src/m3/button-group/standard-button-group.js +130 -0
- package/src/m3/checkbox/checkbox-styles.css.js +1 -1
- package/src/m3/checkbox/checkbox.js +2 -12
- package/src/m3/dialog/dialog-styles.css.js +2 -0
- package/src/m3/dialog/dialog.js +215 -0
- package/src/m3/divider/divider-styles.css.js +1 -1
- package/src/m3/fab/fab-styles.css.js +1 -1
- package/src/m3/fab/fab.js +1 -7
- package/src/m3/field/field-styles.css.js +1 -1
- package/src/m3/field/field.js +3 -16
- package/src/m3/field/filled-field-styles.css.js +1 -1
- package/src/m3/field/filled-field.js +1 -15
- package/src/m3/field/outlined-field-styles.css.js +1 -1
- package/src/m3/field/outlined-field.js +2 -18
- package/src/m3/focus-ring/focus-ring-styles.css.js +1 -1
- package/src/m3/item/item.js +1 -12
- package/src/m3/list/list-item.js +1 -18
- package/src/m3/loading-indicator/loading-indicator-styles.css.js +2 -0
- package/src/m3/loading-indicator/loading-indicator.js +320 -0
- package/src/m3/menu/menu-styles.css.js +1 -1
- package/src/m3/ripple/ripple-styles.css.js +1 -1
- package/src/m3/select/filled-select.js +1 -26
- package/src/m3/select/outlined-select.js +1 -26
- package/src/m3/select/select-styles.css.js +1 -1
- package/src/m3/select/select.js +1 -22
- package/src/m3/slider/slider-styles.css.js +1 -1
- package/src/m3/slider/slider.js +5 -38
- package/src/m3/switch/switch-styles.css.js +1 -1
- package/src/m3/switch/switch.js +3 -22
- package/src/m3/system/base.css +0 -1
- package/src/m3/system/typography.css +5 -5
- package/src/m3/tab/tab-styles.css.js +1 -1
- package/src/m3/tab/tab.js +1 -9
- package/src/m3/tab/tabs-styles.css.js +1 -1
- package/src/m3/tab/tabs.js +1 -4
- package/src/m3/text-field/filled-text-field.js +1 -12
- package/src/m3/text-field/outlined-text-field.js +1 -14
- package/src/m3/text-field/text-field-styles.css.js +1 -1
- package/src/m3/toolbar/toolbar-styles.css.js +1 -1
- package/src/m3/toolbar/toolbar.js +1 -8
- package/src/m3/tooltip/tooltip-styles.css.js +1 -1
- package/src/win98/button/button-styles.css.js +2 -0
- package/src/win98/button/button.js +19 -0
- package/src/m3/system/motion.css +0 -30
package/src/m3/tab/tabs.js
CHANGED
|
@@ -12,10 +12,7 @@ export class M3Tabs extends Tabs {
|
|
|
12
12
|
];
|
|
13
13
|
}
|
|
14
14
|
render() {
|
|
15
|
-
return html
|
|
16
|
-
${super.render()}
|
|
17
|
-
<div part="indicator" role="presentation"></div>
|
|
18
|
-
`;
|
|
15
|
+
return html`${super.render()}<div part="indicator" role="presentation"></div>`;
|
|
19
16
|
}
|
|
20
17
|
selectTab(selectedTab) {
|
|
21
18
|
super.selectTab(selectedTab);
|
|
@@ -11,18 +11,7 @@ export class M3FilledTextField extends Input {
|
|
|
11
11
|
];
|
|
12
12
|
}
|
|
13
13
|
render() {
|
|
14
|
-
return html
|
|
15
|
-
<md-filled-field
|
|
16
|
-
label=${this.label}
|
|
17
|
-
supportingtext=${this.supportingText}
|
|
18
|
-
?populated=${!!this.value}
|
|
19
|
-
?disabled=${this.disabled}
|
|
20
|
-
?focused=${this.focused}
|
|
21
|
-
?error=${this.checkValidity() === false}
|
|
22
|
-
>
|
|
23
|
-
${super.render()}
|
|
24
|
-
</md-filled-field>
|
|
25
|
-
`;
|
|
14
|
+
return html`<md-filled-field label="${this.label}" supportingtext="${this.supportingText}" ?populated="${!!this.value}" ?disabled="${this.disabled}" ?focused="${this.focused}" ?error="${this.checkValidity() === false}">${super.render()}</md-filled-field>`;
|
|
26
15
|
}
|
|
27
16
|
constructor(...args){
|
|
28
17
|
super(...args), this.label = '', this.supportingText = '';
|
|
@@ -11,20 +11,7 @@ export class M3OutlinedTextField extends Input {
|
|
|
11
11
|
];
|
|
12
12
|
}
|
|
13
13
|
render() {
|
|
14
|
-
return html
|
|
15
|
-
<md-outlined-field
|
|
16
|
-
label=${this.label}
|
|
17
|
-
supportingtext=${this.supportingText}
|
|
18
|
-
?populated=${!!this.value}
|
|
19
|
-
?disabled=${this.disabled}
|
|
20
|
-
?focused=${this.focused}
|
|
21
|
-
?error=${this.checkValidity() === false}
|
|
22
|
-
>
|
|
23
|
-
${super.render()}
|
|
24
|
-
<slot slot="start" name="start"></slot>
|
|
25
|
-
<slot slot="end" name="end"></slot>
|
|
26
|
-
</md-outlined-field>
|
|
27
|
-
`;
|
|
14
|
+
return html`<md-outlined-field label="${this.label}" supportingtext="${this.supportingText}" ?populated="${!!this.value}" ?disabled="${this.disabled}" ?focused="${this.focused}" ?error="${this.checkValidity() === false}">${super.render()}<slot slot="start" name="start"></slot><slot slot="end" name="end"></slot></md-outlined-field>`;
|
|
28
15
|
}
|
|
29
16
|
constructor(...args){
|
|
30
17
|
super(...args), this.label = '', this.supportingText = '';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { css } from 'lit';
|
|
2
|
-
export const textFieldStyles = css`:host{-webkit-user-select:none;user-select:none;min-width:210px;display:inline-block}md-filled-field,md-outlined-field{width:100%}[part=input]{color:inherit;font:
|
|
2
|
+
export const textFieldStyles = css`:host{-webkit-user-select:none;user-select:none;min-width:210px;display:inline-block}md-filled-field,md-outlined-field{width:100%}[part=input]{color:inherit;font:var(--md-sys-typography-body-large);-webkit-tap-highlight-color:transparent;background:0 0;border:none;outline:0;width:100%;height:100%;margin:0;padding:0}`;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { css } from 'lit';
|
|
2
|
-
export const toolbarStyles = css`:host{--_padding:16px;--_gap:32px;--_container-color:var(--md-sys-color-surface-container);--_on-color:var(--md-sys-color-on-surface);background-color:color-mix(in srgb,
|
|
2
|
+
export const toolbarStyles = css`:host{--_padding:16px;--_gap:32px;--_container-color:var(--md-sys-color-surface-container);--_on-color:var(--md-sys-color-on-surface);background-color:color-mix(in srgb,var(--_container-color) var(--_container-opacity,100%),transparent);box-sizing:border-box;color:color-mix(in srgb,var(--_on-color) var(--_on-opacity,100%),transparent);align-items:center;width:100%;height:64px;display:flex}[part=container]{box-sizing:border-box;align-items:center;gap:var(--_gap);height:64px;padding:0 var(--_padding);flex:auto;justify-content:space-between;width:100%;display:flex}[part=fab-slot]{justify-content:flex-end;align-items:center;display:flex}:host(:not([orientation=vertical])) ::slotted([slot=fab]){margin-inline-start:8px}:host([orientation=vertical]) ::slotted([slot=fab]){margin-block-start:8px}:host([type=floating]){--_padding:12px;--_gap:4px;--_container-color:var(--md-sys-color-surface-container-high);box-shadow:none;background:0 0;width:fit-content;max-width:calc(100% - 32px);box-shadow:var(--md-toolbar-shadow,var(--md-sys-elevation-shadow-3));border-radius:32px;width:fit-content}& ::slotted(md-button),& ::slotted(md-button-toggle),& ::slotted(md-icon-button),& ::slotted(md-icon-button-toggle){--md-focus-ring-shape:calc(var(--_h) / 2);border-radius:calc(var(--_h)/ 2)}::slotted(md-icon-button-toggle[variant=tonal]:not(:state(checked))){--_background-color:transparent}:host([color=vibrant]){--_container-color:var(--md-sys-color-primary-container);--_on-color:var(--md-sys-color-on-primary-container)}`;
|
|
@@ -10,14 +10,7 @@ export class M3Toolbar extends InternalsAttached(LitElement) {
|
|
|
10
10
|
];
|
|
11
11
|
}
|
|
12
12
|
render() {
|
|
13
|
-
return html
|
|
14
|
-
<div part="container">
|
|
15
|
-
<slot></slot>
|
|
16
|
-
</div>
|
|
17
|
-
<div part="fab-slot">
|
|
18
|
-
<slot name="fab"></slot>
|
|
19
|
-
</div>
|
|
20
|
-
`;
|
|
13
|
+
return html`<div part="container"><slot></slot></div><div part="fab-slot"><slot name="fab"></slot></div>`;
|
|
21
14
|
}
|
|
22
15
|
constructor(){
|
|
23
16
|
super(), this.type = 'docked', this.color = 'standard', this.orientation = 'horizontal';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { css } from 'lit';
|
|
2
|
-
export const tooltipStyles = css`:host{background-color:var(--md-sys-color-inverse-surface);box-sizing:border-box;color:#0000;font:var(--md-sys-typography-body-small);max-width:var(--_max-width,300px);opacity:0;pointer-events:none;z-index:800;border-radius:4px;align-items:center;width:max-content;min-height:24px;padding:4px 8px;display:flex;position:absolute;top:0;left:0;transform:scaleY(.35)}:host(:state(closed)){display:none}:host(:state(opening):not([forceinvisible])){color:var(--md-sys-color-inverse-on-surface);opacity:1;pointer-events:auto;transition:color linear 67ms 67ms,
|
|
2
|
+
export const tooltipStyles = css`:host{background-color:var(--md-sys-color-inverse-surface);box-sizing:border-box;color:#0000;font:var(--md-sys-typography-body-small);max-width:var(--_max-width,300px);opacity:0;pointer-events:none;z-index:800;border-radius:4px;align-items:center;width:max-content;min-height:24px;padding:4px 8px;display:flex;position:absolute;top:0;left:0;transform:scaleY(.35)}:host(:state(closed)){display:none}:host(:state(opening):not([forceinvisible])){color:var(--md-sys-color-inverse-on-surface);opacity:1;pointer-events:auto;transition:color linear 67ms 67ms,opacity var(--md-sys-motion-effects-fast-duration) var(--md-sys-motion-effects-fast),transform var(--md-sys-motion-spatial-fast-duration) var(--md-sys-motion-spatial-fast);transform:scaleY(1)}:host(:state(opened):not([forceinvisible])){color:var(--md-sys-color-inverse-on-surface);opacity:1;pointer-events:auto;transform:scaleY(1)}:host(:state(closing):not([forceinvisible])){color:#0000;opacity:0;transition:color linear 67ms,opacity var(--md-sys-motion-effects-fast-duration) var(--md-sys-motion-effects-fast),transform var(--md-sys-motion-spatial-fast-duration) var(--md-sys-motion-spatial-fast);transform:scaleY(.35)}`;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { css } from 'lit';
|
|
2
|
+
export const buttonStyles = css`:host{-webkit-font-smoothing:none;box-sizing:border-box;color:#0000;text-shadow:0 0 #222;-webkit-user-select:none;user-select:none;cursor:default;background:silver;border:none;border-radius:0;justify-content:center;align-items:center;min-width:75px;min-height:23px;padding:0 12px;font-family:Arial;font-size:11px;display:inline-flex;box-shadow:inset -1px -1px #0a0a0a,inset 1px 1px #fff,inset -2px -2px gray,inset 2px 2px #dfdfdf}:host(:active){text-shadow:1px 1px #222;box-shadow:inset -1px -1px #fff,inset 1px 1px #0a0a0a,inset -2px -2px #dfdfdf,inset 2px 2px gray}:host(:focus){outline-offset:-4px;outline:1px dotted #000}:host(:disabled){color:gray;text-shadow:1px 1px #fff;pointer-events:none}`;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { _ as _ts_decorate } from "@swc/helpers/_/_ts_decorate";
|
|
2
|
+
import { html } from 'lit';
|
|
3
|
+
import { customElement } from 'lit/decorators.js';
|
|
4
|
+
import { Button } from '../../base/button.js';
|
|
5
|
+
import { buttonStyles } from './button-styles.css.js';
|
|
6
|
+
export class Win98Button extends Button {
|
|
7
|
+
static{
|
|
8
|
+
this.styles = [
|
|
9
|
+
...super.styles,
|
|
10
|
+
buttonStyles
|
|
11
|
+
];
|
|
12
|
+
}
|
|
13
|
+
render() {
|
|
14
|
+
return html`<slot></slot>`;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
Win98Button = _ts_decorate([
|
|
18
|
+
customElement('win98-button')
|
|
19
|
+
], Win98Button);
|
package/src/m3/system/motion.css
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
/* std: standard, exp: expressive, mot: motion */
|
|
3
|
-
--md-sys-motion-exp-spatial-fast: cubic-bezier(0.42, 1.67, 0.21, 0.9);
|
|
4
|
-
--md-sys-motion-exp-spatial-fast-duration: 350ms;
|
|
5
|
-
--md-sys-motion-exp-spatial-default: cubic-bezier(0.38, 1.21, 0.22, 1);
|
|
6
|
-
--md-sys-motion-exp-spatial-default-duration: 500ms;
|
|
7
|
-
--md-sys-motion-exp-spatial-slow: cubic-bezier(0.39, 1.29, 0.35, 0.98);
|
|
8
|
-
--md-sys-motion-exp-spatial-slow-duration: 650ms;
|
|
9
|
-
|
|
10
|
-
--md-sys-motion-exp-effects-fast: cubic-bezier(0.31, 0.94, 0.34, 1);
|
|
11
|
-
--md-sys-motion-exp-effects-fast-duration: 150ms;
|
|
12
|
-
--md-sys-motion-exp-effects-default: cubic-bezier(0.34, 0.8, 0.34, 1);
|
|
13
|
-
--md-sys-motion-exp-effects-default-duration: 200ms;
|
|
14
|
-
--md-sys-motion-exp-effects-slow: cubic-bezier(0.34, 0.88, 0.34, 1);
|
|
15
|
-
--md-sys-motion-exp-effects-slow-duration: 300ms;
|
|
16
|
-
|
|
17
|
-
--md-sys-motion-std-spatial-fast: cubic-bezier(0.27, 1.06, 0.18, 1);
|
|
18
|
-
--md-sys-motion-std-spatial-fast-duration: 350ms;
|
|
19
|
-
--md-sys-motion-std-spatial-default: cubic-bezier(0.27, 1.06, 0.18, 1);
|
|
20
|
-
--md-sys-motion-std-spatial-default-duration: 500ms;
|
|
21
|
-
--md-sys-motion-std-spatial-slow: cubic-bezier(0.27, 1.06, 0.18, 1);
|
|
22
|
-
--md-sys-motion-std-spatial-slow-duration: 750ms;
|
|
23
|
-
|
|
24
|
-
--md-sys-motion-std-effects-fast: cubic-bezier(0.31, 0.94, 0.34, 1);
|
|
25
|
-
--md-sys-motion-std-effects-fast-duration: 150ms;
|
|
26
|
-
--md-sys-motion-std-effects-default: cubic-bezier(0.34, 0.8, 0.34, 1);
|
|
27
|
-
--md-sys-motion-std-effects-default-duration: 200ms;
|
|
28
|
-
--md-sys-motion-std-effects-slow: cubic-bezier(0.34, 0.88, 0.34, 1);
|
|
29
|
-
--md-sys-motion-std-effects-slow-duration: 300ms;
|
|
30
|
-
}
|