@deepfuture/dui-components 0.0.2 → 0.0.4
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 +9 -1
- package/accordion/accordion-item.js +0 -2
- package/accordion/index.d.ts +5 -2
- package/accordion/index.js +5 -2
- package/alert-dialog/index.d.ts +9 -4
- package/alert-dialog/index.js +9 -4
- package/all.d.ts +60 -19
- package/all.js +140 -140
- package/avatar/index.d.ts +3 -1
- package/avatar/index.js +3 -1
- package/badge/badge.d.ts +0 -2
- package/badge/badge.js +0 -13
- package/badge/index.d.ts +3 -2
- package/badge/index.js +3 -1
- package/breadcrumb/index.d.ts +13 -6
- package/breadcrumb/index.js +13 -6
- package/button/button.d.ts +1 -5
- package/button/button.js +1 -14
- package/button/index.d.ts +3 -2
- package/button/index.js +3 -1
- package/calendar/index.d.ts +3 -1
- package/calendar/index.js +3 -1
- package/center/index.d.ts +3 -1
- package/center/index.js +3 -1
- package/checkbox/checkbox.js +0 -1
- package/checkbox/index.d.ts +5 -2
- package/checkbox/index.js +5 -2
- package/collapsible/collapsible.js +0 -2
- package/collapsible/index.d.ts +3 -1
- package/collapsible/index.js +3 -1
- package/combobox/combobox.js +2 -37
- package/combobox/index.d.ts +3 -1
- package/combobox/index.js +3 -1
- package/command/index.d.ts +17 -8
- package/command/index.js +17 -8
- package/data-table/data-table.js +0 -4
- package/data-table/index.d.ts +3 -1
- package/data-table/index.js +3 -1
- package/dialog/index.d.ts +9 -4
- package/dialog/index.js +9 -4
- package/dropzone/dropzone.js +0 -1
- package/dropzone/index.d.ts +3 -1
- package/dropzone/index.js +3 -1
- package/hstack/index.d.ts +3 -1
- package/hstack/index.js +3 -1
- package/icon/index.d.ts +3 -1
- package/icon/index.js +3 -1
- package/input/index.d.ts +3 -1
- package/input/index.js +3 -1
- package/input/input.js +0 -1
- package/link/index.d.ts +3 -1
- package/link/index.js +3 -1
- package/menu/index.d.ts +5 -2
- package/menu/index.js +5 -2
- package/menu/menu-item.d.ts +0 -2
- package/menu/menu-item.js +0 -8
- package/menu/menu.js +1 -12
- package/menubar/index.d.ts +3 -1
- package/menubar/index.js +3 -1
- package/number-field/index.d.ts +3 -1
- package/number-field/index.js +3 -1
- package/package.json +2 -2
- package/page-inset/index.d.ts +3 -1
- package/page-inset/index.js +3 -1
- package/popover/index.d.ts +9 -4
- package/popover/index.js +9 -4
- package/popover/popover-popup.js +1 -22
- package/portal/index.d.ts +3 -1
- package/portal/index.js +3 -1
- package/preview-card/index.d.ts +7 -3
- package/preview-card/index.js +7 -3
- package/preview-card/preview-card-popup.js +1 -23
- package/progress/index.d.ts +3 -1
- package/progress/index.js +3 -1
- package/radio/index.d.ts +5 -2
- package/radio/index.js +5 -2
- package/radio/radio.js +0 -1
- package/scroll-area/index.d.ts +3 -1
- package/scroll-area/index.js +3 -1
- package/scroll-area/scroll-area.js +7 -0
- package/select/index.d.ts +3 -1
- package/select/index.js +3 -1
- package/select/select.js +1 -35
- package/separator/index.d.ts +3 -1
- package/separator/index.js +3 -1
- package/sidebar/index.d.ts +27 -14
- package/sidebar/index.js +32 -13
- package/sidebar/sidebar-context.d.ts +1 -1
- package/sidebar/sidebar-menu-button.d.ts +0 -3
- package/sidebar/sidebar-menu-button.js +0 -7
- package/sidebar/sidebar-provider.d.ts +1 -1
- package/sidebar/sidebar-provider.js +1 -1
- package/sidebar/sidebar-trigger.js +1 -1
- package/slider/index.d.ts +3 -1
- package/slider/index.js +3 -1
- package/slider/slider.js +0 -1
- package/spinner/index.d.ts +3 -1
- package/spinner/index.js +3 -1
- package/spinner/spinner.d.ts +1 -6
- package/spinner/spinner.js +1 -8
- package/switch/index.d.ts +3 -1
- package/switch/index.js +3 -1
- package/switch/switch.js +0 -2
- package/tabs/index.d.ts +11 -5
- package/tabs/index.js +11 -5
- package/tabs/tab.js +0 -1
- package/tabs/tabs-panel.js +0 -1
- package/textarea/index.d.ts +4 -2
- package/textarea/index.js +3 -1
- package/textarea/textarea.d.ts +0 -3
- package/textarea/textarea.js +0 -8
- package/toggle/index.d.ts +5 -2
- package/toggle/index.js +5 -2
- package/toggle/toggle.d.ts +1 -0
- package/toggle/toggle.js +3 -0
- package/toolbar/index.d.ts +3 -1
- package/toolbar/index.js +3 -1
- package/toolbar/toolbar.d.ts +0 -2
- package/toolbar/toolbar.js +0 -7
- package/tooltip/index.d.ts +7 -3
- package/tooltip/index.js +7 -3
- package/tooltip/tooltip-popup.js +1 -26
- package/trunc/index.d.ts +3 -1
- package/trunc/index.js +3 -1
- package/vstack/index.d.ts +3 -1
- package/vstack/index.js +3 -1
- package/accordion/register.d.ts +0 -1
- package/accordion/register.js +0 -8
- package/alert-dialog/register.d.ts +0 -1
- package/alert-dialog/register.js +0 -16
- package/avatar/register.d.ts +0 -1
- package/avatar/register.js +0 -4
- package/badge/register.d.ts +0 -1
- package/badge/register.js +0 -4
- package/breadcrumb/register.d.ts +0 -1
- package/breadcrumb/register.js +0 -14
- package/button/register.d.ts +0 -1
- package/button/register.js +0 -4
- package/calendar/register.d.ts +0 -1
- package/calendar/register.js +0 -4
- package/center/register.d.ts +0 -1
- package/center/register.js +0 -4
- package/checkbox/register.d.ts +0 -1
- package/checkbox/register.js +0 -8
- package/collapsible/register.d.ts +0 -1
- package/collapsible/register.js +0 -4
- package/combobox/register.d.ts +0 -1
- package/combobox/register.js +0 -4
- package/command/register.d.ts +0 -1
- package/command/register.js +0 -22
- package/data-table/register.d.ts +0 -1
- package/data-table/register.js +0 -4
- package/dialog/register.d.ts +0 -1
- package/dialog/register.js +0 -16
- package/dropzone/register.d.ts +0 -1
- package/dropzone/register.js +0 -4
- package/hstack/register.d.ts +0 -1
- package/hstack/register.js +0 -4
- package/icon/register.d.ts +0 -1
- package/icon/register.js +0 -4
- package/input/register.d.ts +0 -1
- package/input/register.js +0 -4
- package/link/register.d.ts +0 -1
- package/link/register.js +0 -4
- package/menu/register.d.ts +0 -1
- package/menu/register.js +0 -8
- package/menubar/register.d.ts +0 -1
- package/menubar/register.js +0 -4
- package/number-field/register.d.ts +0 -1
- package/number-field/register.js +0 -4
- package/page-inset/register.d.ts +0 -1
- package/page-inset/register.js +0 -4
- package/popover/register.d.ts +0 -1
- package/popover/register.js +0 -16
- package/portal/register.d.ts +0 -1
- package/portal/register.js +0 -4
- package/preview-card/register.d.ts +0 -1
- package/preview-card/register.js +0 -12
- package/progress/register.d.ts +0 -1
- package/progress/register.js +0 -4
- package/radio/register.d.ts +0 -1
- package/radio/register.js +0 -8
- package/scroll-area/register.d.ts +0 -1
- package/scroll-area/register.js +0 -4
- package/select/register.d.ts +0 -1
- package/select/register.js +0 -4
- package/separator/register.d.ts +0 -1
- package/separator/register.js +0 -4
- package/sidebar/register.d.ts +0 -1
- package/sidebar/register.js +0 -52
- package/slider/register.d.ts +0 -1
- package/slider/register.js +0 -4
- package/spinner/register.d.ts +0 -1
- package/spinner/register.js +0 -4
- package/switch/register.d.ts +0 -1
- package/switch/register.js +0 -4
- package/tabs/register.d.ts +0 -1
- package/tabs/register.js +0 -10
- package/textarea/register.d.ts +0 -1
- package/textarea/register.js +0 -4
- package/toggle/register.d.ts +0 -1
- package/toggle/register.js +0 -8
- package/toolbar/register.d.ts +0 -1
- package/toolbar/register.js +0 -4
- package/tooltip/register.d.ts +0 -1
- package/tooltip/register.js +0 -12
- package/trunc/register.d.ts +0 -1
- package/trunc/register.js +0 -4
- package/vstack/register.d.ts +0 -1
- package/vstack/register.js +0 -4
package/page-inset/index.js
CHANGED
package/popover/index.d.ts
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
import { DuiPopover, openChangeEvent } from "./popover.js";
|
|
2
|
+
export { DuiPopover, openChangeEvent };
|
|
2
3
|
export type { PopoverOpenChangeDetail } from "./popover.js";
|
|
3
|
-
|
|
4
|
-
export {
|
|
5
|
-
|
|
4
|
+
import { DuiPopoverTrigger } from "./popover-trigger.js";
|
|
5
|
+
export { DuiPopoverTrigger };
|
|
6
|
+
import { DuiPopoverPopup } from "./popover-popup.js";
|
|
7
|
+
export { DuiPopoverPopup };
|
|
8
|
+
import { DuiPopoverClose } from "./popover-close.js";
|
|
9
|
+
export { DuiPopoverClose };
|
|
6
10
|
export type { PopoverContext, PopoverSide } from "./popover-context.js";
|
|
11
|
+
export declare const popoverFamily: (typeof DuiPopover | typeof DuiPopoverTrigger | typeof DuiPopoverPopup | typeof DuiPopoverClose)[];
|
package/popover/index.js
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
export {
|
|
3
|
-
|
|
4
|
-
export {
|
|
1
|
+
import { DuiPopover, openChangeEvent } from "./popover.js";
|
|
2
|
+
export { DuiPopover, openChangeEvent };
|
|
3
|
+
import { DuiPopoverTrigger } from "./popover-trigger.js";
|
|
4
|
+
export { DuiPopoverTrigger };
|
|
5
|
+
import { DuiPopoverPopup } from "./popover-popup.js";
|
|
6
|
+
export { DuiPopoverPopup };
|
|
7
|
+
import { DuiPopoverClose } from "./popover-close.js";
|
|
8
|
+
export { DuiPopoverClose };
|
|
9
|
+
export const popoverFamily = [DuiPopover, DuiPopoverTrigger, DuiPopoverPopup, DuiPopoverClose];
|
package/popover/popover-popup.js
CHANGED
|
@@ -17,27 +17,16 @@ const hostStyles = css `
|
|
|
17
17
|
display: none;
|
|
18
18
|
}
|
|
19
19
|
`;
|
|
20
|
-
/**
|
|
20
|
+
/** Structural styles injected into the portal positioner. */
|
|
21
21
|
const portalPopupStyles = [
|
|
22
22
|
css `
|
|
23
23
|
.Popup {
|
|
24
24
|
box-sizing: border-box;
|
|
25
|
-
padding: var(--space-1);
|
|
26
|
-
border-radius: var(--radius-md);
|
|
27
|
-
background: var(--popover);
|
|
28
|
-
color: var(--popover-foreground);
|
|
29
|
-
font-family: var(--font-sans);
|
|
30
|
-
font-size: var(--font-size-sm);
|
|
31
|
-
line-height: var(--line-height-normal);
|
|
32
|
-
box-shadow: var(--shadow-md);
|
|
33
|
-
border: var(--border-width-thin) solid var(--border);
|
|
34
25
|
pointer-events: auto;
|
|
35
26
|
transform-origin: var(--transform-origin, center);
|
|
36
27
|
opacity: 1;
|
|
37
28
|
transform: scale(1);
|
|
38
29
|
transition-property: opacity, transform;
|
|
39
|
-
transition-duration: var(--duration-fast);
|
|
40
|
-
transition-timing-function: var(--ease-out-3);
|
|
41
30
|
}
|
|
42
31
|
|
|
43
32
|
.Popup[data-starting-style],
|
|
@@ -71,16 +60,6 @@ const portalPopupStyles = [
|
|
|
71
60
|
left: 50%;
|
|
72
61
|
transform: translateX(-50%) rotate(180deg);
|
|
73
62
|
}
|
|
74
|
-
|
|
75
|
-
.Arrow .arrow-fill {
|
|
76
|
-
fill: var(--popover);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.Arrow .arrow-stroke {
|
|
80
|
-
fill: none;
|
|
81
|
-
stroke: var(--border);
|
|
82
|
-
stroke-width: 1px;
|
|
83
|
-
}
|
|
84
63
|
`,
|
|
85
64
|
];
|
|
86
65
|
/**
|
package/portal/index.d.ts
CHANGED
package/portal/index.js
CHANGED
package/preview-card/index.d.ts
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import { DuiPreviewCard, openChangeEvent } from "./preview-card.js";
|
|
2
|
+
export { DuiPreviewCard, openChangeEvent };
|
|
2
3
|
export type { PreviewCardOpenChangeDetail } from "./preview-card.js";
|
|
3
|
-
|
|
4
|
-
export {
|
|
4
|
+
import { DuiPreviewCardTrigger } from "./preview-card-trigger.js";
|
|
5
|
+
export { DuiPreviewCardTrigger };
|
|
6
|
+
import { DuiPreviewCardPopup } from "./preview-card-popup.js";
|
|
7
|
+
export { DuiPreviewCardPopup };
|
|
5
8
|
export type { PreviewCardContext, PreviewCardSide } from "./preview-card-context.js";
|
|
9
|
+
export declare const previewCardFamily: (typeof DuiPreviewCard | typeof DuiPreviewCardTrigger | typeof DuiPreviewCardPopup)[];
|
package/preview-card/index.js
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
export {
|
|
3
|
-
|
|
1
|
+
import { DuiPreviewCard, openChangeEvent } from "./preview-card.js";
|
|
2
|
+
export { DuiPreviewCard, openChangeEvent };
|
|
3
|
+
import { DuiPreviewCardTrigger } from "./preview-card-trigger.js";
|
|
4
|
+
export { DuiPreviewCardTrigger };
|
|
5
|
+
import { DuiPreviewCardPopup } from "./preview-card-popup.js";
|
|
6
|
+
export { DuiPreviewCardPopup };
|
|
7
|
+
export const previewCardFamily = [DuiPreviewCard, DuiPreviewCardTrigger, DuiPreviewCardPopup];
|
|
@@ -17,28 +17,16 @@ const hostStyles = css `
|
|
|
17
17
|
display: none;
|
|
18
18
|
}
|
|
19
19
|
`;
|
|
20
|
-
/**
|
|
20
|
+
/** Structural styles injected into the portal positioner. */
|
|
21
21
|
const portalPopupStyles = [
|
|
22
22
|
css `
|
|
23
23
|
.Popup {
|
|
24
24
|
box-sizing: border-box;
|
|
25
|
-
padding: var(--space-4);
|
|
26
|
-
border-radius: var(--radius-md);
|
|
27
|
-
background: var(--popover);
|
|
28
|
-
color: var(--popover-foreground);
|
|
29
|
-
font-family: var(--font-sans);
|
|
30
|
-
font-size: var(--font-size-sm);
|
|
31
|
-
line-height: var(--line-height-normal);
|
|
32
|
-
box-shadow: var(--shadow-lg);
|
|
33
|
-
border: var(--border-width-thin) solid var(--border);
|
|
34
|
-
max-width: var(--max-width, var(--space-80));
|
|
35
25
|
pointer-events: auto;
|
|
36
26
|
transform-origin: var(--transform-origin, center);
|
|
37
27
|
opacity: 1;
|
|
38
28
|
transform: scale(1);
|
|
39
29
|
transition-property: opacity, transform;
|
|
40
|
-
transition-duration: var(--duration-fast);
|
|
41
|
-
transition-timing-function: var(--ease-out-3);
|
|
42
30
|
}
|
|
43
31
|
|
|
44
32
|
.Popup[data-starting-style],
|
|
@@ -72,16 +60,6 @@ const portalPopupStyles = [
|
|
|
72
60
|
left: 50%;
|
|
73
61
|
transform: translateX(-50%) rotate(180deg);
|
|
74
62
|
}
|
|
75
|
-
|
|
76
|
-
.Arrow .arrow-fill {
|
|
77
|
-
fill: var(--popover);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.Arrow .arrow-stroke {
|
|
81
|
-
fill: none;
|
|
82
|
-
stroke: var(--border);
|
|
83
|
-
stroke-width: 1px;
|
|
84
|
-
}
|
|
85
63
|
`,
|
|
86
64
|
];
|
|
87
65
|
/**
|
package/progress/index.d.ts
CHANGED
package/progress/index.js
CHANGED
package/radio/index.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
export {
|
|
1
|
+
import { DuiRadio } from "./radio.js";
|
|
2
|
+
export { DuiRadio };
|
|
3
|
+
import { DuiRadioGroup, valueChangeEvent } from "./radio-group.js";
|
|
4
|
+
export { DuiRadioGroup, valueChangeEvent };
|
|
3
5
|
export type { RadioGroupContext } from "./radio-group-context.js";
|
|
6
|
+
export declare const radioFamily: (typeof DuiRadio | typeof DuiRadioGroup)[];
|
package/radio/index.js
CHANGED
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
export {
|
|
1
|
+
import { DuiRadio } from "./radio.js";
|
|
2
|
+
export { DuiRadio };
|
|
3
|
+
import { DuiRadioGroup, valueChangeEvent } from "./radio-group.js";
|
|
4
|
+
export { DuiRadioGroup, valueChangeEvent };
|
|
5
|
+
export const radioFamily = [DuiRadio, DuiRadioGroup];
|
package/radio/radio.js
CHANGED
package/scroll-area/index.d.ts
CHANGED
package/scroll-area/index.js
CHANGED
|
@@ -198,9 +198,16 @@ export class DuiScrollArea extends LitElement {
|
|
|
198
198
|
this.#resizeObserver.observe(viewport);
|
|
199
199
|
const slot = viewport.querySelector("slot");
|
|
200
200
|
if (slot) {
|
|
201
|
+
const observe = () => {
|
|
202
|
+
for (const node of slot.assignedElements()) {
|
|
203
|
+
this.#resizeObserver.observe(node);
|
|
204
|
+
}
|
|
205
|
+
};
|
|
201
206
|
slot.addEventListener("slotchange", () => {
|
|
207
|
+
observe();
|
|
202
208
|
requestAnimationFrame(() => this.#measure());
|
|
203
209
|
});
|
|
210
|
+
observe();
|
|
204
211
|
}
|
|
205
212
|
this.#measure();
|
|
206
213
|
}
|
package/select/index.d.ts
CHANGED
package/select/index.js
CHANGED
package/select/select.js
CHANGED
|
@@ -27,7 +27,6 @@ const componentStyles = css `
|
|
|
27
27
|
cursor: pointer;
|
|
28
28
|
user-select: none;
|
|
29
29
|
box-sizing: border-box;
|
|
30
|
-
transition-property: border-color, box-shadow, background, filter, transform;
|
|
31
30
|
}
|
|
32
31
|
|
|
33
32
|
.Trigger[data-disabled] {
|
|
@@ -45,74 +44,41 @@ const componentStyles = css `
|
|
|
45
44
|
flex-shrink: 0;
|
|
46
45
|
}
|
|
47
46
|
`;
|
|
48
|
-
/**
|
|
47
|
+
/** Structural styles injected into the portal positioner. */
|
|
49
48
|
const portalPopupStyles = [
|
|
50
49
|
css `
|
|
51
50
|
.Popup {
|
|
52
|
-
background: var(--popover);
|
|
53
|
-
border: var(--border-width-thin) solid var(--border);
|
|
54
|
-
border-radius: var(--radius-md);
|
|
55
|
-
box-shadow: var(--shadow-md);
|
|
56
51
|
max-height: 240px;
|
|
57
52
|
overflow-y: auto;
|
|
58
53
|
overscroll-behavior: contain;
|
|
59
54
|
opacity: 1;
|
|
60
55
|
transform: translateY(0);
|
|
61
56
|
transition-property: opacity, transform;
|
|
62
|
-
transition-duration: var(--duration-fast);
|
|
63
|
-
transition-timing-function: var(--ease-out-3);
|
|
64
57
|
pointer-events: auto;
|
|
65
58
|
}
|
|
66
59
|
|
|
67
60
|
.Popup[data-starting-style],
|
|
68
61
|
.Popup[data-ending-style] {
|
|
69
62
|
opacity: 0;
|
|
70
|
-
transform: translateY(calc(var(--space-1) * -1));
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.Listbox {
|
|
74
|
-
padding: var(--space-1);
|
|
75
63
|
}
|
|
76
64
|
|
|
77
65
|
.Item {
|
|
78
66
|
display: flex;
|
|
79
67
|
align-items: center;
|
|
80
|
-
gap: var(--space-2);
|
|
81
|
-
padding: var(--space-1_5) var(--space-2);
|
|
82
|
-
border-radius: var(--radius-sm);
|
|
83
|
-
font-size: var(--font-size-sm);
|
|
84
|
-
font-family: var(--font-sans);
|
|
85
|
-
color: var(--popover-foreground);
|
|
86
68
|
cursor: pointer;
|
|
87
69
|
}
|
|
88
70
|
|
|
89
|
-
.Item:hover,
|
|
90
|
-
.Item[data-highlighted] {
|
|
91
|
-
background: var(--secondary);
|
|
92
|
-
color: var(--foreground);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.Item[data-selected] {
|
|
96
|
-
font-weight: var(--font-weight-medium);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
71
|
.Item[data-disabled] {
|
|
100
|
-
opacity: 0.5;
|
|
101
72
|
cursor: not-allowed;
|
|
102
73
|
}
|
|
103
74
|
|
|
104
75
|
.ItemIndicator {
|
|
105
76
|
flex-shrink: 0;
|
|
106
|
-
width: var(--space-3_5);
|
|
107
77
|
display: flex;
|
|
108
78
|
align-items: center;
|
|
109
79
|
justify-content: center;
|
|
110
80
|
}
|
|
111
81
|
|
|
112
|
-
.ItemIndicator dui-icon {
|
|
113
|
-
--icon-size: var(--space-3_5);
|
|
114
|
-
}
|
|
115
|
-
|
|
116
82
|
.ItemText {
|
|
117
83
|
flex: 1;
|
|
118
84
|
}
|
package/separator/index.d.ts
CHANGED
package/separator/index.js
CHANGED
package/sidebar/index.d.ts
CHANGED
|
@@ -1,16 +1,29 @@
|
|
|
1
|
-
|
|
1
|
+
import { DuiSidebarProvider, openChangeEvent } from "./sidebar-provider.js";
|
|
2
|
+
export { DuiSidebarProvider, openChangeEvent };
|
|
2
3
|
export type { SidebarOpenChangeDetail } from "./sidebar-provider.js";
|
|
3
|
-
|
|
4
|
-
export {
|
|
5
|
-
|
|
6
|
-
export {
|
|
7
|
-
|
|
8
|
-
export {
|
|
9
|
-
|
|
10
|
-
export {
|
|
11
|
-
|
|
12
|
-
export {
|
|
13
|
-
|
|
14
|
-
export {
|
|
15
|
-
|
|
4
|
+
import { DuiSidebar } from "./sidebar.js";
|
|
5
|
+
export { DuiSidebar };
|
|
6
|
+
import { DuiSidebarTrigger } from "./sidebar-trigger.js";
|
|
7
|
+
export { DuiSidebarTrigger };
|
|
8
|
+
import { DuiSidebarContent } from "./sidebar-content.js";
|
|
9
|
+
export { DuiSidebarContent };
|
|
10
|
+
import { DuiSidebarHeader } from "./sidebar-header.js";
|
|
11
|
+
export { DuiSidebarHeader };
|
|
12
|
+
import { DuiSidebarFooter } from "./sidebar-footer.js";
|
|
13
|
+
export { DuiSidebarFooter };
|
|
14
|
+
import { DuiSidebarGroup } from "./sidebar-group.js";
|
|
15
|
+
export { DuiSidebarGroup };
|
|
16
|
+
import { DuiSidebarGroupLabel } from "./sidebar-group-label.js";
|
|
17
|
+
export { DuiSidebarGroupLabel };
|
|
18
|
+
import { DuiSidebarMenu } from "./sidebar-menu.js";
|
|
19
|
+
export { DuiSidebarMenu };
|
|
20
|
+
import { DuiSidebarMenuItem } from "./sidebar-menu-item.js";
|
|
21
|
+
export { DuiSidebarMenuItem };
|
|
22
|
+
import { DuiSidebarMenuButton } from "./sidebar-menu-button.js";
|
|
23
|
+
export { DuiSidebarMenuButton };
|
|
24
|
+
import { DuiSidebarSeparator } from "./sidebar-separator.js";
|
|
25
|
+
export { DuiSidebarSeparator };
|
|
26
|
+
import { DuiSidebarInset } from "./sidebar-inset.js";
|
|
27
|
+
export { DuiSidebarInset };
|
|
16
28
|
export type { SidebarContext } from "./sidebar-context.js";
|
|
29
|
+
export declare const sidebarFamily: (typeof DuiSidebarProvider | typeof DuiSidebar | typeof DuiSidebarTrigger | typeof DuiSidebarContent | typeof DuiSidebarHeader | typeof DuiSidebarFooter | typeof DuiSidebarGroup | typeof DuiSidebarGroupLabel | typeof DuiSidebarMenu | typeof DuiSidebarMenuItem | typeof DuiSidebarMenuButton | typeof DuiSidebarSeparator | typeof DuiSidebarInset)[];
|
package/sidebar/index.js
CHANGED
|
@@ -1,13 +1,32 @@
|
|
|
1
|
-
|
|
2
|
-
export {
|
|
3
|
-
|
|
4
|
-
export {
|
|
5
|
-
|
|
6
|
-
export {
|
|
7
|
-
|
|
8
|
-
export {
|
|
9
|
-
|
|
10
|
-
export {
|
|
11
|
-
|
|
12
|
-
export {
|
|
13
|
-
|
|
1
|
+
import { DuiSidebarProvider, openChangeEvent } from "./sidebar-provider.js";
|
|
2
|
+
export { DuiSidebarProvider, openChangeEvent };
|
|
3
|
+
import { DuiSidebar } from "./sidebar.js";
|
|
4
|
+
export { DuiSidebar };
|
|
5
|
+
import { DuiSidebarTrigger } from "./sidebar-trigger.js";
|
|
6
|
+
export { DuiSidebarTrigger };
|
|
7
|
+
import { DuiSidebarContent } from "./sidebar-content.js";
|
|
8
|
+
export { DuiSidebarContent };
|
|
9
|
+
import { DuiSidebarHeader } from "./sidebar-header.js";
|
|
10
|
+
export { DuiSidebarHeader };
|
|
11
|
+
import { DuiSidebarFooter } from "./sidebar-footer.js";
|
|
12
|
+
export { DuiSidebarFooter };
|
|
13
|
+
import { DuiSidebarGroup } from "./sidebar-group.js";
|
|
14
|
+
export { DuiSidebarGroup };
|
|
15
|
+
import { DuiSidebarGroupLabel } from "./sidebar-group-label.js";
|
|
16
|
+
export { DuiSidebarGroupLabel };
|
|
17
|
+
import { DuiSidebarMenu } from "./sidebar-menu.js";
|
|
18
|
+
export { DuiSidebarMenu };
|
|
19
|
+
import { DuiSidebarMenuItem } from "./sidebar-menu-item.js";
|
|
20
|
+
export { DuiSidebarMenuItem };
|
|
21
|
+
import { DuiSidebarMenuButton } from "./sidebar-menu-button.js";
|
|
22
|
+
export { DuiSidebarMenuButton };
|
|
23
|
+
import { DuiSidebarSeparator } from "./sidebar-separator.js";
|
|
24
|
+
export { DuiSidebarSeparator };
|
|
25
|
+
import { DuiSidebarInset } from "./sidebar-inset.js";
|
|
26
|
+
export { DuiSidebarInset };
|
|
27
|
+
export const sidebarFamily = [
|
|
28
|
+
DuiSidebarProvider, DuiSidebar, DuiSidebarTrigger, DuiSidebarContent,
|
|
29
|
+
DuiSidebarHeader, DuiSidebarFooter, DuiSidebarGroup, DuiSidebarGroupLabel,
|
|
30
|
+
DuiSidebarMenu, DuiSidebarMenuItem, DuiSidebarMenuButton,
|
|
31
|
+
DuiSidebarSeparator, DuiSidebarInset,
|
|
32
|
+
];
|
|
@@ -5,7 +5,7 @@ export type SidebarContext = {
|
|
|
5
5
|
readonly openMobile: boolean;
|
|
6
6
|
readonly isMobile: boolean;
|
|
7
7
|
readonly side: "left" | "right";
|
|
8
|
-
readonly variant:
|
|
8
|
+
readonly variant: string;
|
|
9
9
|
readonly collapsible: "offcanvas" | "icon" | "none";
|
|
10
10
|
readonly setOpen: (open: boolean) => void;
|
|
11
11
|
readonly toggleSidebar: () => void;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/** Ported from original DUI: deep-future-app/app/client/components/dui/sidebar */
|
|
2
2
|
import { LitElement, type TemplateResult } from "lit";
|
|
3
|
-
export type SidebarMenuButtonSize = "default" | "sm" | "lg";
|
|
4
3
|
/**
|
|
5
4
|
* `<dui-sidebar-menu-button>` — Interactive button or link within a sidebar menu.
|
|
6
5
|
*
|
|
@@ -17,8 +16,6 @@ export declare class DuiSidebarMenuButton extends LitElement {
|
|
|
17
16
|
#private;
|
|
18
17
|
static tagName: "dui-sidebar-menu-button";
|
|
19
18
|
static styles: import("lit").CSSResult[];
|
|
20
|
-
/** Size variant for the button. */
|
|
21
|
-
accessor size: SidebarMenuButtonSize;
|
|
22
19
|
/** Whether the button is in active/selected state. */
|
|
23
20
|
accessor active: boolean;
|
|
24
21
|
/** Whether the button is disabled. */
|
|
@@ -84,10 +84,6 @@ const styles = css `
|
|
|
84
84
|
export class DuiSidebarMenuButton extends LitElement {
|
|
85
85
|
static { this.tagName = "dui-sidebar-menu-button"; }
|
|
86
86
|
static { this.styles = [base, styles]; }
|
|
87
|
-
#size_accessor_storage = "default";
|
|
88
|
-
/** Size variant for the button. */
|
|
89
|
-
get size() { return this.#size_accessor_storage; }
|
|
90
|
-
set size(value) { this.#size_accessor_storage = value; }
|
|
91
87
|
#active_accessor_storage = false;
|
|
92
88
|
/** Whether the button is in active/selected state. */
|
|
93
89
|
get active() { return this.#active_accessor_storage; }
|
|
@@ -184,9 +180,6 @@ export class DuiSidebarMenuButton extends LitElement {
|
|
|
184
180
|
return this.#renderContent();
|
|
185
181
|
}
|
|
186
182
|
}
|
|
187
|
-
__decorate([
|
|
188
|
-
property({ reflect: true })
|
|
189
|
-
], DuiSidebarMenuButton.prototype, "size", null);
|
|
190
183
|
__decorate([
|
|
191
184
|
property({ type: Boolean, reflect: true })
|
|
192
185
|
], DuiSidebarMenuButton.prototype, "active", null);
|
|
@@ -24,7 +24,7 @@ export declare class DuiSidebarProvider extends LitElement {
|
|
|
24
24
|
/** Which side the sidebar appears on. */
|
|
25
25
|
accessor side: "left" | "right";
|
|
26
26
|
/** Visual variant of the sidebar. */
|
|
27
|
-
accessor variant:
|
|
27
|
+
accessor variant: string;
|
|
28
28
|
/** How the sidebar collapses. */
|
|
29
29
|
accessor collapsible: "offcanvas" | "icon" | "none";
|
|
30
30
|
connectedCallback(): void;
|
|
@@ -41,7 +41,7 @@ export class DuiSidebarProvider extends LitElement {
|
|
|
41
41
|
/** Which side the sidebar appears on. */
|
|
42
42
|
get side() { return this.#side_accessor_storage; }
|
|
43
43
|
set side(value) { this.#side_accessor_storage = value; }
|
|
44
|
-
#variant_accessor_storage = "
|
|
44
|
+
#variant_accessor_storage = "";
|
|
45
45
|
/** Visual variant of the sidebar. */
|
|
46
46
|
get variant() { return this.#variant_accessor_storage; }
|
|
47
47
|
set variant(value) { this.#variant_accessor_storage = value; }
|
|
@@ -40,7 +40,7 @@ export class DuiSidebarTrigger extends LitElement {
|
|
|
40
40
|
};
|
|
41
41
|
render() {
|
|
42
42
|
return html `
|
|
43
|
-
<dui-button
|
|
43
|
+
<dui-button appearance="ghost" size="sm" @click=${this.#onClick}>
|
|
44
44
|
<slot>
|
|
45
45
|
<dui-icon>${panelLeftSvg}</dui-icon>
|
|
46
46
|
</slot>
|
package/slider/index.d.ts
CHANGED
|
@@ -1 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import { DuiSlider, valueChangeEvent, valueCommittedEvent } from "./slider.js";
|
|
2
|
+
export { DuiSlider, valueChangeEvent, valueCommittedEvent };
|
|
3
|
+
export declare const sliderFamily: (typeof DuiSlider)[];
|
package/slider/index.js
CHANGED
package/slider/slider.js
CHANGED
package/spinner/index.d.ts
CHANGED
package/spinner/index.js
CHANGED
package/spinner/spinner.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
/** Ported from original DUI: deep-future-app/app/client/components/dui/spinner */
|
|
2
2
|
import { LitElement, type TemplateResult } from "lit";
|
|
3
|
-
type SpinnerSize = "sm" | "md" | "lg";
|
|
4
|
-
type SpinnerVariant = "pulse" | "lucide-loader" | "lucide-loader-circle";
|
|
5
3
|
/**
|
|
6
4
|
* A loading indicator with multiple animation variants and sizes.
|
|
7
5
|
*/
|
|
@@ -9,10 +7,7 @@ export declare class DuiSpinner extends LitElement {
|
|
|
9
7
|
#private;
|
|
10
8
|
static tagName: "dui-spinner";
|
|
11
9
|
static styles: import("lit").CSSResult[];
|
|
12
|
-
/** Size variant: "sm" (24px), "md" (32px), "lg" (44px). */
|
|
13
|
-
accessor size: SpinnerSize;
|
|
14
10
|
/** Animation variant. */
|
|
15
|
-
accessor variant:
|
|
11
|
+
accessor variant: string;
|
|
16
12
|
render(): TemplateResult;
|
|
17
13
|
}
|
|
18
|
-
export {};
|
package/spinner/spinner.js
CHANGED
|
@@ -108,11 +108,7 @@ const styles = css `
|
|
|
108
108
|
export class DuiSpinner extends LitElement {
|
|
109
109
|
static { this.tagName = "dui-spinner"; }
|
|
110
110
|
static { this.styles = [base, styles]; }
|
|
111
|
-
#
|
|
112
|
-
/** Size variant: "sm" (24px), "md" (32px), "lg" (44px). */
|
|
113
|
-
get size() { return this.#size_accessor_storage; }
|
|
114
|
-
set size(value) { this.#size_accessor_storage = value; }
|
|
115
|
-
#variant_accessor_storage = "pulse";
|
|
111
|
+
#variant_accessor_storage = "";
|
|
116
112
|
/** Animation variant. */
|
|
117
113
|
get variant() { return this.#variant_accessor_storage; }
|
|
118
114
|
set variant(value) { this.#variant_accessor_storage = value; }
|
|
@@ -130,9 +126,6 @@ export class DuiSpinner extends LitElement {
|
|
|
130
126
|
return html `${this.#getSvg()}`;
|
|
131
127
|
}
|
|
132
128
|
}
|
|
133
|
-
__decorate([
|
|
134
|
-
property({ reflect: true })
|
|
135
|
-
], DuiSpinner.prototype, "size", null);
|
|
136
129
|
__decorate([
|
|
137
130
|
property({ reflect: true })
|
|
138
131
|
], DuiSpinner.prototype, "variant", null);
|
package/switch/index.d.ts
CHANGED
package/switch/index.js
CHANGED
package/switch/switch.js
CHANGED
|
@@ -32,13 +32,11 @@ const styles = css `
|
|
|
32
32
|
margin-inline: 0;
|
|
33
33
|
border: none;
|
|
34
34
|
cursor: pointer;
|
|
35
|
-
transition-property: background, outline-color, box-shadow, filter, transform;
|
|
36
35
|
}
|
|
37
36
|
|
|
38
37
|
[part="thumb"] {
|
|
39
38
|
position: absolute;
|
|
40
39
|
left: var(--switch-thumb-offset, 0.125rem);
|
|
41
|
-
transition-property: transform, outline-color;
|
|
42
40
|
}
|
|
43
41
|
|
|
44
42
|
[part="root"][data-checked] [part="thumb"] {
|