@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/breadcrumb/index.d.ts
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
export {
|
|
3
|
-
|
|
4
|
-
export {
|
|
5
|
-
|
|
6
|
-
export {
|
|
1
|
+
import { DuiBreadcrumb } from "./breadcrumb.js";
|
|
2
|
+
export { DuiBreadcrumb };
|
|
3
|
+
import { DuiBreadcrumbItem } from "./breadcrumb-item.js";
|
|
4
|
+
export { DuiBreadcrumbItem };
|
|
5
|
+
import { DuiBreadcrumbLink } from "./breadcrumb-link.js";
|
|
6
|
+
export { DuiBreadcrumbLink };
|
|
7
|
+
import { DuiBreadcrumbPage } from "./breadcrumb-page.js";
|
|
8
|
+
export { DuiBreadcrumbPage };
|
|
9
|
+
import { DuiBreadcrumbSeparator } from "./breadcrumb-separator.js";
|
|
10
|
+
export { DuiBreadcrumbSeparator };
|
|
11
|
+
import { DuiBreadcrumbEllipsis } from "./breadcrumb-ellipsis.js";
|
|
12
|
+
export { DuiBreadcrumbEllipsis };
|
|
13
|
+
export declare const breadcrumbFamily: (typeof DuiBreadcrumb | typeof DuiBreadcrumbItem | typeof DuiBreadcrumbLink | typeof DuiBreadcrumbPage | typeof DuiBreadcrumbSeparator | typeof DuiBreadcrumbEllipsis)[];
|
package/breadcrumb/index.js
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
export {
|
|
3
|
-
|
|
4
|
-
export {
|
|
5
|
-
|
|
6
|
-
export {
|
|
1
|
+
import { DuiBreadcrumb } from "./breadcrumb.js";
|
|
2
|
+
export { DuiBreadcrumb };
|
|
3
|
+
import { DuiBreadcrumbItem } from "./breadcrumb-item.js";
|
|
4
|
+
export { DuiBreadcrumbItem };
|
|
5
|
+
import { DuiBreadcrumbLink } from "./breadcrumb-link.js";
|
|
6
|
+
export { DuiBreadcrumbLink };
|
|
7
|
+
import { DuiBreadcrumbPage } from "./breadcrumb-page.js";
|
|
8
|
+
export { DuiBreadcrumbPage };
|
|
9
|
+
import { DuiBreadcrumbSeparator } from "./breadcrumb-separator.js";
|
|
10
|
+
export { DuiBreadcrumbSeparator };
|
|
11
|
+
import { DuiBreadcrumbEllipsis } from "./breadcrumb-ellipsis.js";
|
|
12
|
+
export { DuiBreadcrumbEllipsis };
|
|
13
|
+
export const breadcrumbFamily = [DuiBreadcrumb, DuiBreadcrumbItem, DuiBreadcrumbLink, DuiBreadcrumbPage, DuiBreadcrumbSeparator, DuiBreadcrumbEllipsis];
|
package/button/button.d.ts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { LitElement, type TemplateResult } from "lit";
|
|
2
|
-
export type ButtonSize = "sm" | "md" | "lg";
|
|
3
|
-
export type ButtonVariant = "default" | "primary" | "secondary" | "destructive" | "outline" | "ghost" | "link";
|
|
4
2
|
/** Fired when a button with `href` is clicked via normal (non-modifier) click. */
|
|
5
3
|
export declare const navigateEvent: (detail: {
|
|
6
4
|
href: string;
|
|
@@ -8,7 +6,7 @@ export declare const navigateEvent: (detail: {
|
|
|
8
6
|
href: string;
|
|
9
7
|
}>;
|
|
10
8
|
/**
|
|
11
|
-
* `<dui-button>` — A button component
|
|
9
|
+
* `<dui-button>` — A button component.
|
|
12
10
|
*
|
|
13
11
|
* Renders as a native `<button>` by default. When `href` is set, renders as a
|
|
14
12
|
* native `<a>` tag instead. Normal clicks fire a `dui-navigate` event that
|
|
@@ -28,8 +26,6 @@ export declare class DuiButton extends LitElement {
|
|
|
28
26
|
slotAssignment?: SlotAssignmentMode;
|
|
29
27
|
};
|
|
30
28
|
static styles: import("lit").CSSResult[];
|
|
31
|
-
accessor variant: ButtonVariant;
|
|
32
|
-
accessor size: ButtonSize;
|
|
33
29
|
accessor disabled: boolean;
|
|
34
30
|
accessor focusableWhenDisabled: boolean;
|
|
35
31
|
accessor type: "button" | "submit" | "reset";
|
package/button/button.js
CHANGED
|
@@ -35,11 +35,10 @@ const styles = css `
|
|
|
35
35
|
cursor: pointer;
|
|
36
36
|
user-select: none;
|
|
37
37
|
-webkit-tap-highlight-color: transparent;
|
|
38
|
-
transition-property: background, box-shadow, filter, transform, border-color;
|
|
39
38
|
}
|
|
40
39
|
`;
|
|
41
40
|
/**
|
|
42
|
-
* `<dui-button>` — A button component
|
|
41
|
+
* `<dui-button>` — A button component.
|
|
43
42
|
*
|
|
44
43
|
* Renders as a native `<button>` by default. When `href` is set, renders as a
|
|
45
44
|
* native `<a>` tag instead. Normal clicks fire a `dui-navigate` event that
|
|
@@ -56,12 +55,6 @@ export class DuiButton extends LitElement {
|
|
|
56
55
|
delegatesFocus: true,
|
|
57
56
|
}; }
|
|
58
57
|
static { this.styles = [base, styles]; }
|
|
59
|
-
#variant_accessor_storage = "default";
|
|
60
|
-
get variant() { return this.#variant_accessor_storage; }
|
|
61
|
-
set variant(value) { this.#variant_accessor_storage = value; }
|
|
62
|
-
#size_accessor_storage = "md";
|
|
63
|
-
get size() { return this.#size_accessor_storage; }
|
|
64
|
-
set size(value) { this.#size_accessor_storage = value; }
|
|
65
58
|
#disabled_accessor_storage = false;
|
|
66
59
|
get disabled() { return this.#disabled_accessor_storage; }
|
|
67
60
|
set disabled(value) { this.#disabled_accessor_storage = value; }
|
|
@@ -123,12 +116,6 @@ export class DuiButton extends LitElement {
|
|
|
123
116
|
return this.href !== undefined ? this.#renderLink() : this.#renderButton();
|
|
124
117
|
}
|
|
125
118
|
}
|
|
126
|
-
__decorate([
|
|
127
|
-
property({ reflect: true })
|
|
128
|
-
], DuiButton.prototype, "variant", null);
|
|
129
|
-
__decorate([
|
|
130
|
-
property({ reflect: true })
|
|
131
|
-
], DuiButton.prototype, "size", null);
|
|
132
119
|
__decorate([
|
|
133
120
|
property({ type: Boolean, reflect: true })
|
|
134
121
|
], DuiButton.prototype, "disabled", null);
|
package/button/index.d.ts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
1
|
+
import { DuiButton, navigateEvent } from "./button.js";
|
|
2
|
+
export { DuiButton, navigateEvent };
|
|
3
|
+
export declare const buttonFamily: (typeof DuiButton)[];
|
package/button/index.js
CHANGED
package/calendar/index.d.ts
CHANGED
package/calendar/index.js
CHANGED
package/center/index.d.ts
CHANGED
package/center/index.js
CHANGED
package/checkbox/checkbox.js
CHANGED
package/checkbox/index.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
export {
|
|
1
|
+
import { DuiCheckbox, checkedChangeEvent } from "./checkbox.js";
|
|
2
|
+
export { DuiCheckbox, checkedChangeEvent };
|
|
3
|
+
import { DuiCheckboxGroup, valueChangeEvent } from "./checkbox-group.js";
|
|
4
|
+
export { DuiCheckboxGroup, valueChangeEvent };
|
|
3
5
|
export type { CheckboxGroupContext } from "./checkbox-group-context.js";
|
|
6
|
+
export declare const checkboxFamily: (typeof DuiCheckbox | typeof DuiCheckboxGroup)[];
|
package/checkbox/index.js
CHANGED
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
export {
|
|
1
|
+
import { DuiCheckbox, checkedChangeEvent } from "./checkbox.js";
|
|
2
|
+
export { DuiCheckbox, checkedChangeEvent };
|
|
3
|
+
import { DuiCheckboxGroup, valueChangeEvent } from "./checkbox-group.js";
|
|
4
|
+
export { DuiCheckboxGroup, valueChangeEvent };
|
|
5
|
+
export const checkboxFamily = [DuiCheckbox, DuiCheckboxGroup];
|
|
@@ -27,7 +27,6 @@ const styles = css `
|
|
|
27
27
|
text-align: left;
|
|
28
28
|
outline: none;
|
|
29
29
|
box-sizing: border-box;
|
|
30
|
-
transition-property: background, box-shadow, filter, transform;
|
|
31
30
|
}
|
|
32
31
|
|
|
33
32
|
[part="trigger"][data-disabled] {
|
|
@@ -36,7 +35,6 @@ const styles = css `
|
|
|
36
35
|
|
|
37
36
|
[part="indicator"] {
|
|
38
37
|
flex-shrink: 0;
|
|
39
|
-
transition-property: transform;
|
|
40
38
|
}
|
|
41
39
|
|
|
42
40
|
[part="panel"] {
|
package/collapsible/index.d.ts
CHANGED
package/collapsible/index.js
CHANGED
package/combobox/combobox.js
CHANGED
|
@@ -87,26 +87,19 @@ const componentStyles = css `
|
|
|
87
87
|
flex-shrink: 0;
|
|
88
88
|
}
|
|
89
89
|
`;
|
|
90
|
-
/**
|
|
90
|
+
/** Structural styles injected into the portal positioner. */
|
|
91
91
|
const portalPopupStyles = [
|
|
92
92
|
css `
|
|
93
93
|
.Popup {
|
|
94
|
-
background: var(--popover);
|
|
95
|
-
border: var(--border-width-thin) solid var(--border);
|
|
96
|
-
border-radius: var(--radius-md);
|
|
97
|
-
box-shadow: var(--shadow-md);
|
|
98
94
|
opacity: 1;
|
|
99
|
-
transition-property: opacity, transform;
|
|
100
|
-
transition-duration: var(--duration-fast);
|
|
101
|
-
transition-timing-function: var(--ease-out-3);
|
|
102
95
|
transform: translateY(0);
|
|
96
|
+
transition-property: opacity, transform;
|
|
103
97
|
pointer-events: auto;
|
|
104
98
|
}
|
|
105
99
|
|
|
106
100
|
.Popup[data-starting-style],
|
|
107
101
|
.Popup[data-ending-style] {
|
|
108
102
|
opacity: 0;
|
|
109
|
-
transform: translateY(calc(var(--space-1) * -1));
|
|
110
103
|
}
|
|
111
104
|
|
|
112
105
|
dui-scroll-area {
|
|
@@ -114,32 +107,13 @@ const portalPopupStyles = [
|
|
|
114
107
|
height: auto;
|
|
115
108
|
}
|
|
116
109
|
|
|
117
|
-
.List {
|
|
118
|
-
padding: var(--space-1);
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
/* ---- Items ---- */
|
|
122
|
-
|
|
123
110
|
.Item {
|
|
124
111
|
display: flex;
|
|
125
112
|
align-items: center;
|
|
126
|
-
gap: var(--space-2);
|
|
127
|
-
padding: var(--space-2) var(--space-2) var(--space-2) var(--space-3);
|
|
128
|
-
border-radius: var(--radius-sm);
|
|
129
|
-
font-size: var(--font-size-sm);
|
|
130
|
-
font-family: var(--font-sans);
|
|
131
|
-
color: var(--popover-foreground);
|
|
132
113
|
cursor: pointer;
|
|
133
114
|
}
|
|
134
115
|
|
|
135
|
-
.Item:hover,
|
|
136
|
-
.Item[data-highlighted] {
|
|
137
|
-
background: var(--secondary);
|
|
138
|
-
color: var(--foreground);
|
|
139
|
-
}
|
|
140
|
-
|
|
141
116
|
.ItemIndicator {
|
|
142
|
-
--icon-size: var(--space-3_5);
|
|
143
117
|
flex-shrink: 0;
|
|
144
118
|
display: flex;
|
|
145
119
|
align-items: center;
|
|
@@ -152,15 +126,6 @@ const portalPopupStyles = [
|
|
|
152
126
|
text-overflow: ellipsis;
|
|
153
127
|
white-space: nowrap;
|
|
154
128
|
}
|
|
155
|
-
|
|
156
|
-
/* ---- Empty ---- */
|
|
157
|
-
|
|
158
|
-
.Empty {
|
|
159
|
-
padding: var(--space-3) var(--space-3);
|
|
160
|
-
font-size: var(--font-size-sm);
|
|
161
|
-
color: var(--muted-foreground);
|
|
162
|
-
text-align: center;
|
|
163
|
-
}
|
|
164
129
|
`,
|
|
165
130
|
];
|
|
166
131
|
/**
|
package/combobox/index.d.ts
CHANGED
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { DuiCombobox, valueChangeEvent, valuesChangeEvent } from "./combobox.js";
|
|
2
|
+
export { DuiCombobox, valueChangeEvent, valuesChangeEvent, };
|
|
3
|
+
export declare const comboboxFamily: (typeof DuiCombobox)[];
|
|
2
4
|
export type { SelectOption, ComboboxValueChangeDetail, ComboboxValuesChangeDetail, } from "./combobox.js";
|
package/combobox/index.js
CHANGED
|
@@ -1 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import { DuiCombobox, valueChangeEvent, valuesChangeEvent, } from "./combobox.js";
|
|
2
|
+
export { DuiCombobox, valueChangeEvent, valuesChangeEvent, };
|
|
3
|
+
export const comboboxFamily = [DuiCombobox];
|
package/command/index.d.ts
CHANGED
|
@@ -1,10 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
export {
|
|
3
|
-
|
|
4
|
-
export {
|
|
5
|
-
|
|
6
|
-
export {
|
|
7
|
-
|
|
8
|
-
export {
|
|
1
|
+
import { DuiCommand } from "./command.js";
|
|
2
|
+
export { DuiCommand };
|
|
3
|
+
import { DuiCommandInput } from "./command-input.js";
|
|
4
|
+
export { DuiCommandInput };
|
|
5
|
+
import { DuiCommandList } from "./command-list.js";
|
|
6
|
+
export { DuiCommandList };
|
|
7
|
+
import { DuiCommandGroup } from "./command-group.js";
|
|
8
|
+
export { DuiCommandGroup };
|
|
9
|
+
import { DuiCommandItem } from "./command-item.js";
|
|
10
|
+
export { DuiCommandItem };
|
|
11
|
+
import { DuiCommandEmpty } from "./command-empty.js";
|
|
12
|
+
export { DuiCommandEmpty };
|
|
13
|
+
import { DuiCommandSeparator } from "./command-separator.js";
|
|
14
|
+
export { DuiCommandSeparator };
|
|
15
|
+
import { DuiCommandShortcut } from "./command-shortcut.js";
|
|
16
|
+
export { DuiCommandShortcut };
|
|
9
17
|
export type { CommandContext, CommandItemEntry } from "./command-context.js";
|
|
10
18
|
export { commandScore } from "./command-score.js";
|
|
19
|
+
export declare const commandFamily: (typeof DuiCommand | typeof DuiCommandInput | typeof DuiCommandList | typeof DuiCommandGroup | typeof DuiCommandItem | typeof DuiCommandEmpty | typeof DuiCommandSeparator | typeof DuiCommandShortcut)[];
|
package/command/index.js
CHANGED
|
@@ -1,9 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
export {
|
|
3
|
-
|
|
4
|
-
export {
|
|
5
|
-
|
|
6
|
-
export {
|
|
7
|
-
|
|
8
|
-
export {
|
|
1
|
+
import { DuiCommand } from "./command.js";
|
|
2
|
+
export { DuiCommand };
|
|
3
|
+
import { DuiCommandInput } from "./command-input.js";
|
|
4
|
+
export { DuiCommandInput };
|
|
5
|
+
import { DuiCommandList } from "./command-list.js";
|
|
6
|
+
export { DuiCommandList };
|
|
7
|
+
import { DuiCommandGroup } from "./command-group.js";
|
|
8
|
+
export { DuiCommandGroup };
|
|
9
|
+
import { DuiCommandItem } from "./command-item.js";
|
|
10
|
+
export { DuiCommandItem };
|
|
11
|
+
import { DuiCommandEmpty } from "./command-empty.js";
|
|
12
|
+
export { DuiCommandEmpty };
|
|
13
|
+
import { DuiCommandSeparator } from "./command-separator.js";
|
|
14
|
+
export { DuiCommandSeparator };
|
|
15
|
+
import { DuiCommandShortcut } from "./command-shortcut.js";
|
|
16
|
+
export { DuiCommandShortcut };
|
|
9
17
|
export { commandScore } from "./command-score.js";
|
|
18
|
+
export const commandFamily = [DuiCommand, DuiCommandInput, DuiCommandList, DuiCommandGroup, DuiCommandItem, DuiCommandEmpty, DuiCommandSeparator, DuiCommandShortcut];
|
package/data-table/data-table.js
CHANGED
package/data-table/index.d.ts
CHANGED
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { DuiDataTable } from "./data-table.js";
|
|
2
|
+
export { DuiDataTable };
|
|
2
3
|
export type { ColumnDef, SortDirection, SortState, PageState } from "./data-table.js";
|
|
4
|
+
export declare const dataTableFamily: (typeof DuiDataTable)[];
|
package/data-table/index.js
CHANGED
package/dialog/index.d.ts
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
import { DuiDialog, openChangeEvent } from "./dialog.js";
|
|
2
|
+
export { DuiDialog, openChangeEvent };
|
|
2
3
|
export type { DialogOpenChangeDetail } from "./dialog.js";
|
|
3
|
-
|
|
4
|
-
export {
|
|
5
|
-
|
|
4
|
+
import { DuiDialogTrigger } from "./dialog-trigger.js";
|
|
5
|
+
export { DuiDialogTrigger };
|
|
6
|
+
import { DuiDialogPopup } from "./dialog-popup.js";
|
|
7
|
+
export { DuiDialogPopup };
|
|
8
|
+
import { DuiDialogClose } from "./dialog-close.js";
|
|
9
|
+
export { DuiDialogClose };
|
|
6
10
|
export type { DialogContext } from "./dialog-context.js";
|
|
11
|
+
export declare const dialogFamily: (typeof DuiDialog | typeof DuiDialogTrigger | typeof DuiDialogPopup | typeof DuiDialogClose)[];
|
package/dialog/index.js
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
export {
|
|
3
|
-
|
|
4
|
-
export {
|
|
1
|
+
import { DuiDialog, openChangeEvent } from "./dialog.js";
|
|
2
|
+
export { DuiDialog, openChangeEvent };
|
|
3
|
+
import { DuiDialogTrigger } from "./dialog-trigger.js";
|
|
4
|
+
export { DuiDialogTrigger };
|
|
5
|
+
import { DuiDialogPopup } from "./dialog-popup.js";
|
|
6
|
+
export { DuiDialogPopup };
|
|
7
|
+
import { DuiDialogClose } from "./dialog-close.js";
|
|
8
|
+
export { DuiDialogClose };
|
|
9
|
+
export const dialogFamily = [DuiDialog, DuiDialogTrigger, DuiDialogPopup, DuiDialogClose];
|
package/dropzone/dropzone.js
CHANGED
package/dropzone/index.d.ts
CHANGED
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { DuiDropzone, dropzoneDropEvent, dropAcceptedEvent, dropRejectedEvent, dropzoneErrorEvent } from "./dropzone.js";
|
|
2
|
+
export { DuiDropzone, dropzoneDropEvent, dropAcceptedEvent, dropRejectedEvent, dropzoneErrorEvent };
|
|
2
3
|
export type { DropzoneErrorCode, DropzoneRejectionCode, FileRejectionError, RejectedFile, DropzoneDropDetail, DropzoneAcceptedDetail, DropzoneRejectedDetail, DropzoneErrorDetail, } from "./dropzone.js";
|
|
4
|
+
export declare const dropzoneFamily: (typeof DuiDropzone)[];
|
package/dropzone/index.js
CHANGED
|
@@ -1 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import { DuiDropzone, dropzoneDropEvent, dropAcceptedEvent, dropRejectedEvent, dropzoneErrorEvent } from "./dropzone.js";
|
|
2
|
+
export { DuiDropzone, dropzoneDropEvent, dropAcceptedEvent, dropRejectedEvent, dropzoneErrorEvent };
|
|
3
|
+
export const dropzoneFamily = [DuiDropzone];
|
package/hstack/index.d.ts
CHANGED
package/hstack/index.js
CHANGED
package/icon/index.d.ts
CHANGED
package/icon/index.js
CHANGED
package/input/index.d.ts
CHANGED
package/input/index.js
CHANGED
package/input/input.js
CHANGED
package/link/index.d.ts
CHANGED
package/link/index.js
CHANGED
package/menu/index.d.ts
CHANGED
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
export {
|
|
1
|
+
import { DuiMenu } from "./menu.js";
|
|
2
|
+
export { DuiMenu };
|
|
3
|
+
import { DuiMenuItem } from "./menu-item.js";
|
|
4
|
+
export { DuiMenuItem };
|
|
5
|
+
export declare const menuFamily: (typeof DuiMenuItem | typeof DuiMenu)[];
|
package/menu/index.js
CHANGED
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
export {
|
|
1
|
+
import { DuiMenu } from "./menu.js";
|
|
2
|
+
export { DuiMenu };
|
|
3
|
+
import { DuiMenuItem } from "./menu-item.js";
|
|
4
|
+
export { DuiMenuItem };
|
|
5
|
+
export const menuFamily = [DuiMenu, DuiMenuItem];
|
package/menu/menu-item.d.ts
CHANGED
|
@@ -8,8 +8,6 @@ import { LitElement, type TemplateResult } from "lit";
|
|
|
8
8
|
export declare class DuiMenuItem extends LitElement {
|
|
9
9
|
static tagName: "dui-menu-item";
|
|
10
10
|
static styles: import("lit").CSSResult[];
|
|
11
|
-
/** Visual variant. */
|
|
12
|
-
accessor variant: "default" | "danger";
|
|
13
11
|
/** Whether the item is disabled. */
|
|
14
12
|
accessor disabled: boolean;
|
|
15
13
|
connectedCallback(): void;
|
package/menu/menu-item.js
CHANGED
|
@@ -21,7 +21,6 @@ const componentStyles = css `
|
|
|
21
21
|
.Item {
|
|
22
22
|
display: flex;
|
|
23
23
|
align-items: center;
|
|
24
|
-
gap: var(--space-2);
|
|
25
24
|
cursor: pointer;
|
|
26
25
|
}
|
|
27
26
|
`;
|
|
@@ -33,10 +32,6 @@ const componentStyles = css `
|
|
|
33
32
|
export class DuiMenuItem extends LitElement {
|
|
34
33
|
static { this.tagName = "dui-menu-item"; }
|
|
35
34
|
static { this.styles = [base, hostStyles, componentStyles]; }
|
|
36
|
-
#variant_accessor_storage = "default";
|
|
37
|
-
/** Visual variant. */
|
|
38
|
-
get variant() { return this.#variant_accessor_storage; }
|
|
39
|
-
set variant(value) { this.#variant_accessor_storage = value; }
|
|
40
35
|
#disabled_accessor_storage = false;
|
|
41
36
|
/** Whether the item is disabled. */
|
|
42
37
|
get disabled() { return this.#disabled_accessor_storage; }
|
|
@@ -54,9 +49,6 @@ export class DuiMenuItem extends LitElement {
|
|
|
54
49
|
`;
|
|
55
50
|
}
|
|
56
51
|
}
|
|
57
|
-
__decorate([
|
|
58
|
-
property({ type: String, reflect: true })
|
|
59
|
-
], DuiMenuItem.prototype, "variant", null);
|
|
60
52
|
__decorate([
|
|
61
53
|
property({ type: Boolean, reflect: true })
|
|
62
54
|
], DuiMenuItem.prototype, "disabled", null);
|
package/menu/menu.js
CHANGED
|
@@ -14,33 +14,22 @@ const componentStyles = css `
|
|
|
14
14
|
cursor: pointer;
|
|
15
15
|
}
|
|
16
16
|
`;
|
|
17
|
-
/**
|
|
17
|
+
/** Structural styles injected into the portal positioner. */
|
|
18
18
|
const portalPopupStyles = [
|
|
19
19
|
css `
|
|
20
20
|
.Popup {
|
|
21
|
-
background: var(--popover);
|
|
22
|
-
border: var(--border-width-thin) solid var(--border);
|
|
23
|
-
border-radius: var(--radius-md);
|
|
24
|
-
box-shadow: var(--shadow-md);
|
|
25
21
|
max-height: 240px;
|
|
26
22
|
overflow-y: auto;
|
|
27
23
|
overscroll-behavior: contain;
|
|
28
24
|
opacity: 1;
|
|
29
25
|
transform: translateY(0);
|
|
30
26
|
transition-property: opacity, transform;
|
|
31
|
-
transition-duration: var(--duration-fast);
|
|
32
|
-
transition-timing-function: var(--ease-out-3);
|
|
33
27
|
pointer-events: auto;
|
|
34
28
|
}
|
|
35
29
|
|
|
36
30
|
.Popup[data-starting-style],
|
|
37
31
|
.Popup[data-ending-style] {
|
|
38
32
|
opacity: 0;
|
|
39
|
-
transform: translateY(calc(var(--space-1) * -1));
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.Menu {
|
|
43
|
-
padding: var(--space-1);
|
|
44
33
|
}
|
|
45
34
|
`,
|
|
46
35
|
];
|
package/menubar/index.d.ts
CHANGED
package/menubar/index.js
CHANGED
package/number-field/index.d.ts
CHANGED
package/number-field/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deepfuture/dui-components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"description": "DUI unstyled web components — structural CSS only, themed via applyTheme()",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -194,7 +194,7 @@
|
|
|
194
194
|
"README.md"
|
|
195
195
|
],
|
|
196
196
|
"dependencies": {
|
|
197
|
-
"@deepfuture/dui-core": "0.0.
|
|
197
|
+
"@deepfuture/dui-core": "0.0.4",
|
|
198
198
|
"lit": "^3.3.2",
|
|
199
199
|
"@lit/context": "^1.1.3"
|
|
200
200
|
},
|
package/page-inset/index.d.ts
CHANGED