@deepfuture/dui-components 0.0.21 → 1.0.0
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 +56 -65
- package/_install.js +11 -0
- package/accordion/accordion-item.d.ts +3 -20
- package/accordion/accordion-item.js +93 -292
- package/accordion/accordion.d.ts +3 -18
- package/accordion/accordion.js +9 -247
- package/accordion/index.d.ts +6 -6
- package/accordion/index.js +5 -5
- package/alert-dialog/alert-dialog-close.d.ts +3 -14
- package/alert-dialog/alert-dialog-close.js +4 -34
- package/alert-dialog/alert-dialog-popup.d.ts +3 -32
- package/alert-dialog/alert-dialog-popup.js +68 -317
- package/alert-dialog/alert-dialog-trigger.d.ts +3 -14
- package/alert-dialog/alert-dialog-trigger.js +4 -51
- package/alert-dialog/alert-dialog.d.ts +3 -30
- package/alert-dialog/alert-dialog.js +8 -158
- package/alert-dialog/index.d.ts +11 -11
- package/alert-dialog/index.js +9 -9
- package/all.d.ts +159 -123
- package/all.js +134 -231
- package/avatar/avatar.d.ts +3 -39
- package/avatar/avatar.js +18 -238
- package/avatar/index.d.ts +4 -4
- package/avatar/index.js +3 -3
- package/badge/badge.d.ts +3 -10
- package/badge/badge.js +88 -22
- package/badge/index.d.ts +2 -3
- package/badge/index.js +2 -3
- package/breadcrumb/breadcrumb-ellipsis.d.ts +3 -12
- package/breadcrumb/breadcrumb-ellipsis.js +8 -34
- package/breadcrumb/breadcrumb-item.d.ts +3 -11
- package/breadcrumb/breadcrumb-item.js +7 -26
- package/breadcrumb/breadcrumb-link.d.ts +3 -12
- package/breadcrumb/breadcrumb-link.js +16 -26
- package/breadcrumb/breadcrumb-page.d.ts +3 -11
- package/breadcrumb/breadcrumb-page.js +8 -31
- package/breadcrumb/breadcrumb-separator.d.ts +3 -12
- package/breadcrumb/breadcrumb-separator.js +8 -31
- package/breadcrumb/breadcrumb.d.ts +3 -12
- package/breadcrumb/breadcrumb.js +10 -33
- package/breadcrumb/index.d.ts +12 -13
- package/breadcrumb/index.js +12 -13
- package/button/button.d.ts +3 -32
- package/button/button.js +221 -165
- package/button/index.d.ts +3 -3
- package/button/index.js +3 -3
- package/calendar/calendar.d.ts +3 -31
- package/calendar/calendar.js +71 -481
- package/calendar/index.d.ts +3 -3
- package/calendar/index.js +3 -3
- package/card/card.d.ts +3 -27
- package/card/card.js +80 -163
- package/card/index.d.ts +2 -3
- package/card/index.js +2 -3
- package/card-grid/card-grid.d.ts +3 -15
- package/card-grid/card-grid.js +8 -106
- package/card-grid/index.d.ts +2 -3
- package/card-grid/index.js +2 -3
- package/checkbox/checkbox-group.d.ts +3 -34
- package/checkbox/checkbox-group.js +11 -188
- package/checkbox/checkbox.d.ts +3 -47
- package/checkbox/checkbox.js +43 -341
- package/checkbox/index.d.ts +6 -6
- package/checkbox/index.js +5 -5
- package/collapsible/collapsible.d.ts +3 -20
- package/collapsible/collapsible.js +83 -277
- package/collapsible/index.d.ts +3 -3
- package/collapsible/index.js +3 -3
- package/combobox/combobox.d.ts +3 -47
- package/combobox/combobox.js +136 -538
- package/combobox/index.d.ts +4 -4
- package/combobox/index.js +3 -3
- package/command/command-empty.d.ts +3 -8
- package/command/command-empty.js +10 -88
- package/command/command-group.d.ts +3 -13
- package/command/command-group.js +15 -114
- package/command/command-input.d.ts +3 -11
- package/command/command-input.js +20 -136
- package/command/command-item.d.ts +3 -18
- package/command/command-item.js +24 -212
- package/command/command-list.d.ts +3 -7
- package/command/command-list.js +11 -79
- package/command/command-separator.d.ts +3 -5
- package/command/command-separator.js +10 -11
- package/command/command-shortcut.d.ts +3 -5
- package/command/command-shortcut.js +9 -12
- package/command/command.d.ts +3 -23
- package/command/command.js +10 -339
- package/command/index.d.ts +17 -19
- package/command/index.js +16 -18
- package/data-table/data-table.d.ts +3 -57
- package/data-table/data-table.js +86 -449
- package/data-table/index.d.ts +3 -4
- package/data-table/index.js +2 -3
- package/dialog/dialog-close.d.ts +3 -14
- package/dialog/dialog-close.js +4 -34
- package/dialog/dialog-popup.d.ts +3 -34
- package/dialog/dialog-popup.js +70 -336
- package/dialog/dialog-trigger.d.ts +3 -14
- package/dialog/dialog-trigger.js +4 -51
- package/dialog/dialog.d.ts +3 -30
- package/dialog/dialog.js +8 -158
- package/dialog/index.d.ts +11 -11
- package/dialog/index.js +9 -9
- package/dropzone/dropzone.d.ts +3 -72
- package/dropzone/dropzone.js +29 -407
- package/dropzone/index.d.ts +4 -4
- package/dropzone/index.js +3 -3
- package/field/field.d.ts +3 -30
- package/field/field.js +34 -353
- package/field/index.d.ts +1 -0
- package/field/index.js +1 -0
- package/fieldset/fieldset.d.ts +3 -18
- package/fieldset/fieldset.js +21 -110
- package/fieldset/index.d.ts +1 -0
- package/fieldset/index.js +1 -0
- package/icon/icon.d.ts +3 -15
- package/icon/icon.js +4 -33
- package/icon/index.d.ts +2 -3
- package/icon/index.js +2 -3
- package/input/index.d.ts +3 -3
- package/input/index.js +3 -3
- package/input/input.d.ts +3 -49
- package/input/input.js +57 -238
- package/menu/index.d.ts +4 -5
- package/menu/index.js +4 -5
- package/menu/menu-item.d.ts +3 -13
- package/menu/menu-item.js +41 -91
- package/menu/menu.d.ts +3 -15
- package/menu/menu.js +27 -277
- package/menubar/index.d.ts +3 -4
- package/menubar/index.js +2 -3
- package/menubar/menubar.d.ts +3 -19
- package/menubar/menubar.js +12 -183
- package/number-field/index.d.ts +3 -3
- package/number-field/index.js +3 -3
- package/number-field/number-field.d.ts +3 -55
- package/number-field/number-field.js +205 -698
- package/package.json +126 -113
- package/popover/index.d.ts +11 -11
- package/popover/index.js +9 -9
- package/popover/popover-close.d.ts +3 -12
- package/popover/popover-close.js +4 -32
- package/popover/popover-popup.d.ts +3 -18
- package/popover/popover-popup.js +28 -205
- package/popover/popover-trigger.d.ts +3 -13
- package/popover/popover-trigger.js +4 -73
- package/popover/popover.d.ts +3 -29
- package/popover/popover.js +8 -207
- package/portal/index.d.ts +3 -4
- package/portal/index.js +2 -3
- package/portal/portal.d.ts +3 -27
- package/portal/portal.js +8 -157
- package/preview-card/index.d.ts +9 -9
- package/preview-card/index.js +7 -7
- package/preview-card/preview-card-popup.d.ts +3 -14
- package/preview-card/preview-card-popup.js +29 -194
- package/preview-card/preview-card-trigger.d.ts +3 -12
- package/preview-card/preview-card-trigger.js +4 -74
- package/preview-card/preview-card.d.ts +3 -33
- package/preview-card/preview-card.js +8 -239
- package/progress/index.d.ts +2 -3
- package/progress/index.js +2 -3
- package/progress/progress.d.ts +3 -17
- package/progress/progress.js +28 -130
- package/radio/index.d.ts +6 -6
- package/radio/index.js +5 -5
- package/radio/radio-group.d.ts +3 -37
- package/radio/radio-group.js +8 -200
- package/radio/radio.d.ts +3 -28
- package/radio/radio.js +38 -213
- package/scroll-area/index.d.ts +2 -3
- package/scroll-area/index.js +2 -3
- package/scroll-area/scroll-area.d.ts +3 -36
- package/scroll-area/scroll-area.js +25 -535
- package/select/index.d.ts +3 -4
- package/select/index.js +2 -3
- package/select/select.d.ts +3 -39
- package/select/select.js +115 -425
- package/separator/index.d.ts +2 -3
- package/separator/index.js +2 -3
- package/separator/separator.d.ts +3 -10
- package/separator/separator.js +23 -85
- package/sidebar/index.d.ts +29 -29
- package/sidebar/index.js +27 -32
- package/sidebar/sidebar-content.d.ts +3 -12
- package/sidebar/sidebar-content.js +7 -29
- package/sidebar/sidebar-footer.d.ts +3 -10
- package/sidebar/sidebar-footer.js +7 -20
- package/sidebar/sidebar-group-label.d.ts +3 -15
- package/sidebar/sidebar-group-label.js +17 -41
- package/sidebar/sidebar-group.d.ts +3 -13
- package/sidebar/sidebar-group.js +7 -24
- package/sidebar/sidebar-header.d.ts +3 -10
- package/sidebar/sidebar-header.js +7 -16
- package/sidebar/sidebar-inset.d.ts +3 -13
- package/sidebar/sidebar-inset.js +7 -28
- package/sidebar/sidebar-menu-button.d.ts +3 -26
- package/sidebar/sidebar-menu-button.js +60 -217
- package/sidebar/sidebar-menu-item.d.ts +3 -10
- package/sidebar/sidebar-menu-item.js +7 -19
- package/sidebar/sidebar-menu.d.ts +3 -12
- package/sidebar/sidebar-menu.js +7 -25
- package/sidebar/sidebar-provider.d.ts +3 -34
- package/sidebar/sidebar-provider.js +22 -232
- package/sidebar/sidebar-separator.d.ts +3 -10
- package/sidebar/sidebar-separator.js +9 -19
- package/sidebar/sidebar-trigger.d.ts +3 -14
- package/sidebar/sidebar-trigger.js +10 -46
- package/sidebar/sidebar.d.ts +3 -19
- package/sidebar/sidebar.js +65 -262
- package/slider/index.d.ts +3 -3
- package/slider/index.js +3 -3
- package/slider/slider.d.ts +3 -45
- package/slider/slider.js +97 -382
- package/spinner/index.d.ts +2 -3
- package/spinner/index.js +2 -3
- package/spinner/spinner.d.ts +3 -11
- package/spinner/spinner.js +20 -163
- package/split-button/index.d.ts +3 -1
- package/split-button/index.js +3 -1
- package/split-button/split-button.d.ts +3 -33
- package/split-button/split-button.js +307 -394
- package/stepper/index.d.ts +3 -3
- package/stepper/index.js +3 -3
- package/stepper/stepper.d.ts +3 -41
- package/stepper/stepper.js +57 -381
- package/switch/index.d.ts +3 -3
- package/switch/index.js +3 -3
- package/switch/switch.d.ts +3 -30
- package/switch/switch.js +63 -228
- package/tabs/index.d.ts +12 -12
- package/tabs/index.js +11 -11
- package/tabs/tab.d.ts +3 -14
- package/tabs/tab.js +33 -131
- package/tabs/tabs-indicator.d.ts +3 -9
- package/tabs/tabs-indicator.js +17 -22
- package/tabs/tabs-list.d.ts +3 -15
- package/tabs/tabs-list.js +14 -113
- package/tabs/tabs-panel.d.ts +3 -16
- package/tabs/tabs-panel.js +32 -114
- package/tabs/tabs.d.ts +3 -22
- package/tabs/tabs.js +8 -170
- package/textarea/index.d.ts +4 -4
- package/textarea/index.js +3 -3
- package/textarea/textarea.d.ts +3 -36
- package/textarea/textarea.js +63 -220
- package/toggle/index.d.ts +6 -6
- package/toggle/index.js +5 -5
- package/toggle/toggle-group.d.ts +3 -27
- package/toggle/toggle-group.js +9 -224
- package/toggle/toggle.d.ts +3 -26
- package/toggle/toggle.js +94 -178
- package/tokens/properties.css +361 -0
- package/tokens/prose.css +250 -0
- package/tokens/prose.d.ts +2 -0
- package/tokens/prose.js +4 -0
- package/tokens/tokens-raw.d.ts +2 -0
- package/tokens/tokens-raw.js +2 -0
- package/tokens/tokens.css +409 -0
- package/tokens/tokens.d.ts +2 -0
- package/tokens/tokens.js +5 -0
- package/toolbar/index.d.ts +2 -3
- package/toolbar/index.js +2 -3
- package/toolbar/toolbar.d.ts +3 -11
- package/toolbar/toolbar.js +25 -116
- package/tooltip/index.d.ts +9 -9
- package/tooltip/index.js +7 -7
- package/tooltip/tooltip-popup.d.ts +3 -14
- package/tooltip/tooltip-popup.js +32 -185
- package/tooltip/tooltip-trigger.d.ts +3 -14
- package/tooltip/tooltip-trigger.js +5 -148
- package/tooltip/tooltip.d.ts +3 -35
- package/tooltip/tooltip.js +8 -253
- package/trunc/index.d.ts +2 -3
- package/trunc/index.js +2 -3
- package/trunc/trunc.d.ts +3 -17
- package/trunc/trunc.js +10 -108
- package/_deprecated/center/center.d.ts +0 -14
- package/_deprecated/center/center.js +0 -37
- package/_deprecated/center/index.d.ts +0 -3
- package/_deprecated/center/index.js +0 -3
- package/_deprecated/center/register.js +0 -4
- package/_deprecated/hstack/hstack.d.ts +0 -25
- package/_deprecated/hstack/hstack.js +0 -187
- package/_deprecated/hstack/index.d.ts +0 -4
- package/_deprecated/hstack/index.js +0 -3
- package/_deprecated/hstack/register.d.ts +0 -1
- package/_deprecated/hstack/register.js +0 -4
- package/_deprecated/page-inset/index.d.ts +0 -3
- package/_deprecated/page-inset/index.js +0 -3
- package/_deprecated/page-inset/page-inset.d.ts +0 -28
- package/_deprecated/page-inset/page-inset.js +0 -151
- package/_deprecated/page-inset/register.d.ts +0 -1
- package/_deprecated/page-inset/register.js +0 -4
- package/_deprecated/vstack/index.d.ts +0 -3
- package/_deprecated/vstack/index.js +0 -3
- package/_deprecated/vstack/register.d.ts +0 -1
- package/_deprecated/vstack/register.js +0 -4
- package/_deprecated/vstack/vstack.d.ts +0 -17
- package/_deprecated/vstack/vstack.js +0 -125
- package/accordion/accordion-context.d.ts +0 -15
- package/accordion/accordion-context.js +0 -3
- package/alert-dialog/alert-dialog-context.d.ts +0 -13
- package/alert-dialog/alert-dialog-context.js +0 -3
- package/checkbox/checkbox-group-context.d.ts +0 -11
- package/checkbox/checkbox-group-context.js +0 -3
- package/command/command-context.d.ts +0 -30
- package/command/command-context.js +0 -3
- package/command/command-score.d.ts +0 -6
- package/command/command-score.js +0 -31
- package/dialog/dialog-context.d.ts +0 -13
- package/dialog/dialog-context.js +0 -3
- package/global.d.ts +0 -179
- package/menubar/menubar-context.d.ts +0 -9
- package/menubar/menubar-context.js +0 -2
- package/popover/popover-context.d.ts +0 -17
- package/popover/popover-context.js +0 -3
- package/preview-card/preview-card-context.d.ts +0 -16
- package/preview-card/preview-card-context.js +0 -3
- package/radio/radio-group-context.d.ts +0 -11
- package/radio/radio-group-context.js +0 -2
- package/sidebar/sidebar-context.d.ts +0 -15
- package/sidebar/sidebar-context.js +0 -3
- package/split-button/register.d.ts +0 -1
- package/split-button/register.js +0 -4
- package/tabs/tabs-context.d.ts +0 -8
- package/tabs/tabs-context.js +0 -2
- package/toggle/toggle-group-context.d.ts +0 -9
- package/toggle/toggle-group-context.js +0 -2
- package/tooltip/tooltip-context.d.ts +0 -17
- package/tooltip/tooltip-context.js +0 -3
- /package/{_deprecated/center/register.d.ts → _install.d.ts} +0 -0
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/** Ported from original DUI: deep-future-app/app/client/components/dui/command */
|
|
2
|
-
/**
|
|
3
|
-
* Score an item against a search query.
|
|
4
|
-
* Returns 0 for no match, higher values for better matches.
|
|
5
|
-
*/
|
|
6
|
-
export declare const commandScore: (query: string, value: string, textContent: string, keywords: readonly string[]) => number;
|
package/command/command-score.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/** Ported from original DUI: deep-future-app/app/client/components/dui/command */
|
|
2
|
-
/**
|
|
3
|
-
* Score an item against a search query.
|
|
4
|
-
* Returns 0 for no match, higher values for better matches.
|
|
5
|
-
*/
|
|
6
|
-
export const commandScore = (query, value, textContent, keywords) => {
|
|
7
|
-
if (!query)
|
|
8
|
-
return 1;
|
|
9
|
-
const q = query.toLowerCase();
|
|
10
|
-
const v = value.toLowerCase();
|
|
11
|
-
const t = textContent.toLowerCase();
|
|
12
|
-
if (v === q)
|
|
13
|
-
return 1.0;
|
|
14
|
-
if (v.startsWith(q))
|
|
15
|
-
return 0.8;
|
|
16
|
-
if (t.startsWith(q))
|
|
17
|
-
return 0.75;
|
|
18
|
-
if (v.includes(q))
|
|
19
|
-
return 0.7;
|
|
20
|
-
if (t.includes(q))
|
|
21
|
-
return 0.6;
|
|
22
|
-
for (const kw of keywords) {
|
|
23
|
-
if (kw.toLowerCase().startsWith(q))
|
|
24
|
-
return 0.5;
|
|
25
|
-
}
|
|
26
|
-
for (const kw of keywords) {
|
|
27
|
-
if (kw.toLowerCase().includes(q))
|
|
28
|
-
return 0.4;
|
|
29
|
-
}
|
|
30
|
-
return 0;
|
|
31
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/** Ported from original DUI: deep-future-app/app/client/components/dui/dialog */
|
|
2
|
-
export type DialogContext = {
|
|
3
|
-
readonly open: boolean;
|
|
4
|
-
readonly dialogId: string;
|
|
5
|
-
readonly triggerId: string;
|
|
6
|
-
readonly titleId: string;
|
|
7
|
-
readonly descriptionId: string;
|
|
8
|
-
readonly openDialog: () => void;
|
|
9
|
-
readonly closeDialog: () => void;
|
|
10
|
-
};
|
|
11
|
-
export declare const dialogContext: {
|
|
12
|
-
__context__: DialogContext;
|
|
13
|
-
};
|
package/dialog/dialog-context.js
DELETED
package/global.d.ts
DELETED
|
@@ -1,179 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Global HTMLElementTagNameMap declarations for DUI components.
|
|
3
|
-
* Provides type-safe `document.querySelector("dui-button")` etc.
|
|
4
|
-
*
|
|
5
|
-
* These declarations are automatically available when consuming
|
|
6
|
-
* @deepfuture/dui-components via TypeScript.
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
import type { DuiAccordion } from "./accordion/accordion.js";
|
|
10
|
-
import type { DuiAccordionItem } from "./accordion/accordion-item.js";
|
|
11
|
-
import type { DuiAlertDialog } from "./alert-dialog/alert-dialog.js";
|
|
12
|
-
import type { DuiAlertDialogTrigger } from "./alert-dialog/alert-dialog-trigger.js";
|
|
13
|
-
import type { DuiAlertDialogPopup } from "./alert-dialog/alert-dialog-popup.js";
|
|
14
|
-
import type { DuiAlertDialogClose } from "./alert-dialog/alert-dialog-close.js";
|
|
15
|
-
import type { DuiAvatar } from "./avatar/avatar.js";
|
|
16
|
-
import type { DuiBadge } from "./badge/badge.js";
|
|
17
|
-
import type { DuiBreadcrumb } from "./breadcrumb/breadcrumb.js";
|
|
18
|
-
import type { DuiBreadcrumbItem } from "./breadcrumb/breadcrumb-item.js";
|
|
19
|
-
import type { DuiBreadcrumbLink } from "./breadcrumb/breadcrumb-link.js";
|
|
20
|
-
import type { DuiBreadcrumbPage } from "./breadcrumb/breadcrumb-page.js";
|
|
21
|
-
import type { DuiBreadcrumbSeparator } from "./breadcrumb/breadcrumb-separator.js";
|
|
22
|
-
import type { DuiBreadcrumbEllipsis } from "./breadcrumb/breadcrumb-ellipsis.js";
|
|
23
|
-
import type { DuiButton } from "./button/button.js";
|
|
24
|
-
import type { DuiCalendar } from "./calendar/calendar.js";
|
|
25
|
-
import type { DuiCheckbox } from "./checkbox/checkbox.js";
|
|
26
|
-
import type { DuiCheckboxGroup } from "./checkbox/checkbox-group.js";
|
|
27
|
-
import type { DuiCollapsible } from "./collapsible/collapsible.js";
|
|
28
|
-
import type { DuiCombobox } from "./combobox/combobox.js";
|
|
29
|
-
import type { DuiCommand } from "./command/command.js";
|
|
30
|
-
import type { DuiCommandInput } from "./command/command-input.js";
|
|
31
|
-
import type { DuiCommandList } from "./command/command-list.js";
|
|
32
|
-
import type { DuiCommandGroup } from "./command/command-group.js";
|
|
33
|
-
import type { DuiCommandItem } from "./command/command-item.js";
|
|
34
|
-
import type { DuiCommandEmpty } from "./command/command-empty.js";
|
|
35
|
-
import type { DuiCommandSeparator } from "./command/command-separator.js";
|
|
36
|
-
import type { DuiCommandShortcut } from "./command/command-shortcut.js";
|
|
37
|
-
import type { DuiDataTable } from "./data-table/data-table.js";
|
|
38
|
-
import type { DuiDialog } from "./dialog/dialog.js";
|
|
39
|
-
import type { DuiDialogTrigger } from "./dialog/dialog-trigger.js";
|
|
40
|
-
import type { DuiDialogPopup } from "./dialog/dialog-popup.js";
|
|
41
|
-
import type { DuiDialogClose } from "./dialog/dialog-close.js";
|
|
42
|
-
import type { DuiDropzone } from "./dropzone/dropzone.js";
|
|
43
|
-
import type { DuiIcon } from "./icon/icon.js";
|
|
44
|
-
import type { DuiInput } from "./input/input.js";
|
|
45
|
-
import type { DuiMenu } from "./menu/menu.js";
|
|
46
|
-
import type { DuiMenuItem } from "./menu/menu-item.js";
|
|
47
|
-
import type { DuiMenubar } from "./menubar/menubar.js";
|
|
48
|
-
import type { DuiNumberField } from "./number-field/number-field.js";
|
|
49
|
-
import type { DuiPopover } from "./popover/popover.js";
|
|
50
|
-
import type { DuiPopoverTrigger } from "./popover/popover-trigger.js";
|
|
51
|
-
import type { DuiPopoverPopup } from "./popover/popover-popup.js";
|
|
52
|
-
import type { DuiPopoverClose } from "./popover/popover-close.js";
|
|
53
|
-
import type { DuiPortal } from "./portal/portal.js";
|
|
54
|
-
import type { DuiPreviewCard } from "./preview-card/preview-card.js";
|
|
55
|
-
import type { DuiPreviewCardTrigger } from "./preview-card/preview-card-trigger.js";
|
|
56
|
-
import type { DuiPreviewCardPopup } from "./preview-card/preview-card-popup.js";
|
|
57
|
-
import type { DuiProgress } from "./progress/progress.js";
|
|
58
|
-
import type { DuiRadio } from "./radio/radio.js";
|
|
59
|
-
import type { DuiRadioGroup } from "./radio/radio-group.js";
|
|
60
|
-
import type { DuiScrollArea } from "./scroll-area/scroll-area.js";
|
|
61
|
-
import type { DuiSelect } from "./select/select.js";
|
|
62
|
-
import type { DuiSeparator } from "./separator/separator.js";
|
|
63
|
-
import type { DuiSidebarProvider } from "./sidebar/sidebar-provider.js";
|
|
64
|
-
import type { DuiSidebar } from "./sidebar/sidebar.js";
|
|
65
|
-
import type { DuiSidebarTrigger } from "./sidebar/sidebar-trigger.js";
|
|
66
|
-
import type { DuiSidebarContent } from "./sidebar/sidebar-content.js";
|
|
67
|
-
import type { DuiSidebarHeader } from "./sidebar/sidebar-header.js";
|
|
68
|
-
import type { DuiSidebarFooter } from "./sidebar/sidebar-footer.js";
|
|
69
|
-
import type { DuiSidebarGroup } from "./sidebar/sidebar-group.js";
|
|
70
|
-
import type { DuiSidebarGroupLabel } from "./sidebar/sidebar-group-label.js";
|
|
71
|
-
import type { DuiSidebarMenu } from "./sidebar/sidebar-menu.js";
|
|
72
|
-
import type { DuiSidebarMenuItem } from "./sidebar/sidebar-menu-item.js";
|
|
73
|
-
import type { DuiSidebarMenuButton } from "./sidebar/sidebar-menu-button.js";
|
|
74
|
-
import type { DuiSidebarSeparator } from "./sidebar/sidebar-separator.js";
|
|
75
|
-
import type { DuiSidebarInset } from "./sidebar/sidebar-inset.js";
|
|
76
|
-
import type { DuiSlider } from "./slider/slider.js";
|
|
77
|
-
import type { DuiSpinner } from "./spinner/spinner.js";
|
|
78
|
-
import type { DuiSwitch } from "./switch/switch.js";
|
|
79
|
-
import type { DuiTabs } from "./tabs/tabs.js";
|
|
80
|
-
import type { DuiTabsList } from "./tabs/tabs-list.js";
|
|
81
|
-
import type { DuiTab } from "./tabs/tab.js";
|
|
82
|
-
import type { DuiTabsPanel } from "./tabs/tabs-panel.js";
|
|
83
|
-
import type { DuiTabsIndicator } from "./tabs/tabs-indicator.js";
|
|
84
|
-
import type { DuiTextarea } from "./textarea/textarea.js";
|
|
85
|
-
import type { DuiToggle } from "./toggle/toggle.js";
|
|
86
|
-
import type { DuiToggleGroup } from "./toggle/toggle-group.js";
|
|
87
|
-
import type { DuiToolbar } from "./toolbar/toolbar.js";
|
|
88
|
-
import type { DuiTooltip } from "./tooltip/tooltip.js";
|
|
89
|
-
import type { DuiTooltipTrigger } from "./tooltip/tooltip-trigger.js";
|
|
90
|
-
import type { DuiTooltipPopup } from "./tooltip/tooltip-popup.js";
|
|
91
|
-
import type { DuiTrunc } from "./trunc/trunc.js";
|
|
92
|
-
|
|
93
|
-
declare global {
|
|
94
|
-
interface HTMLElementTagNameMap {
|
|
95
|
-
"dui-accordion": DuiAccordion;
|
|
96
|
-
"dui-accordion-item": DuiAccordionItem;
|
|
97
|
-
"dui-alert-dialog": DuiAlertDialog;
|
|
98
|
-
"dui-alert-dialog-trigger": DuiAlertDialogTrigger;
|
|
99
|
-
"dui-alert-dialog-popup": DuiAlertDialogPopup;
|
|
100
|
-
"dui-alert-dialog-close": DuiAlertDialogClose;
|
|
101
|
-
"dui-avatar": DuiAvatar;
|
|
102
|
-
"dui-badge": DuiBadge;
|
|
103
|
-
"dui-breadcrumb": DuiBreadcrumb;
|
|
104
|
-
"dui-breadcrumb-item": DuiBreadcrumbItem;
|
|
105
|
-
"dui-breadcrumb-link": DuiBreadcrumbLink;
|
|
106
|
-
"dui-breadcrumb-page": DuiBreadcrumbPage;
|
|
107
|
-
"dui-breadcrumb-separator": DuiBreadcrumbSeparator;
|
|
108
|
-
"dui-breadcrumb-ellipsis": DuiBreadcrumbEllipsis;
|
|
109
|
-
"dui-button": DuiButton;
|
|
110
|
-
"dui-calendar": DuiCalendar;
|
|
111
|
-
"dui-checkbox": DuiCheckbox;
|
|
112
|
-
"dui-checkbox-group": DuiCheckboxGroup;
|
|
113
|
-
"dui-collapsible": DuiCollapsible;
|
|
114
|
-
"dui-combobox": DuiCombobox;
|
|
115
|
-
"dui-command": DuiCommand;
|
|
116
|
-
"dui-command-input": DuiCommandInput;
|
|
117
|
-
"dui-command-list": DuiCommandList;
|
|
118
|
-
"dui-command-group": DuiCommandGroup;
|
|
119
|
-
"dui-command-item": DuiCommandItem;
|
|
120
|
-
"dui-command-empty": DuiCommandEmpty;
|
|
121
|
-
"dui-command-separator": DuiCommandSeparator;
|
|
122
|
-
"dui-command-shortcut": DuiCommandShortcut;
|
|
123
|
-
"dui-data-table": DuiDataTable;
|
|
124
|
-
"dui-dialog": DuiDialog;
|
|
125
|
-
"dui-dialog-trigger": DuiDialogTrigger;
|
|
126
|
-
"dui-dialog-popup": DuiDialogPopup;
|
|
127
|
-
"dui-dialog-close": DuiDialogClose;
|
|
128
|
-
"dui-dropzone": DuiDropzone;
|
|
129
|
-
"dui-icon": DuiIcon;
|
|
130
|
-
"dui-input": DuiInput;
|
|
131
|
-
"dui-menu": DuiMenu;
|
|
132
|
-
"dui-menu-item": DuiMenuItem;
|
|
133
|
-
"dui-menubar": DuiMenubar;
|
|
134
|
-
"dui-number-field": DuiNumberField;
|
|
135
|
-
"dui-popover": DuiPopover;
|
|
136
|
-
"dui-popover-trigger": DuiPopoverTrigger;
|
|
137
|
-
"dui-popover-popup": DuiPopoverPopup;
|
|
138
|
-
"dui-popover-close": DuiPopoverClose;
|
|
139
|
-
"dui-portal": DuiPortal;
|
|
140
|
-
"dui-preview-card": DuiPreviewCard;
|
|
141
|
-
"dui-preview-card-trigger": DuiPreviewCardTrigger;
|
|
142
|
-
"dui-preview-card-popup": DuiPreviewCardPopup;
|
|
143
|
-
"dui-progress": DuiProgress;
|
|
144
|
-
"dui-radio": DuiRadio;
|
|
145
|
-
"dui-radio-group": DuiRadioGroup;
|
|
146
|
-
"dui-scroll-area": DuiScrollArea;
|
|
147
|
-
"dui-select": DuiSelect;
|
|
148
|
-
"dui-separator": DuiSeparator;
|
|
149
|
-
"dui-sidebar-provider": DuiSidebarProvider;
|
|
150
|
-
"dui-sidebar": DuiSidebar;
|
|
151
|
-
"dui-sidebar-trigger": DuiSidebarTrigger;
|
|
152
|
-
"dui-sidebar-content": DuiSidebarContent;
|
|
153
|
-
"dui-sidebar-header": DuiSidebarHeader;
|
|
154
|
-
"dui-sidebar-footer": DuiSidebarFooter;
|
|
155
|
-
"dui-sidebar-group": DuiSidebarGroup;
|
|
156
|
-
"dui-sidebar-group-label": DuiSidebarGroupLabel;
|
|
157
|
-
"dui-sidebar-menu": DuiSidebarMenu;
|
|
158
|
-
"dui-sidebar-menu-item": DuiSidebarMenuItem;
|
|
159
|
-
"dui-sidebar-menu-button": DuiSidebarMenuButton;
|
|
160
|
-
"dui-sidebar-separator": DuiSidebarSeparator;
|
|
161
|
-
"dui-sidebar-inset": DuiSidebarInset;
|
|
162
|
-
"dui-slider": DuiSlider;
|
|
163
|
-
"dui-spinner": DuiSpinner;
|
|
164
|
-
"dui-switch": DuiSwitch;
|
|
165
|
-
"dui-tabs": DuiTabs;
|
|
166
|
-
"dui-tabs-list": DuiTabsList;
|
|
167
|
-
"dui-tab": DuiTab;
|
|
168
|
-
"dui-tabs-panel": DuiTabsPanel;
|
|
169
|
-
"dui-tabs-indicator": DuiTabsIndicator;
|
|
170
|
-
"dui-textarea": DuiTextarea;
|
|
171
|
-
"dui-toggle": DuiToggle;
|
|
172
|
-
"dui-toggle-group": DuiToggleGroup;
|
|
173
|
-
"dui-toolbar": DuiToolbar;
|
|
174
|
-
"dui-tooltip": DuiTooltip;
|
|
175
|
-
"dui-tooltip-trigger": DuiTooltipTrigger;
|
|
176
|
-
"dui-tooltip-popup": DuiTooltipPopup;
|
|
177
|
-
"dui-trunc": DuiTrunc;
|
|
178
|
-
}
|
|
179
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export type MenubarContext = {
|
|
2
|
-
readonly activeMenuId: string | null;
|
|
3
|
-
readonly openMenu: (id: string) => void;
|
|
4
|
-
readonly closeAll: () => void;
|
|
5
|
-
readonly navigateToMenu: (direction: "next" | "prev") => void;
|
|
6
|
-
};
|
|
7
|
-
export declare const menubarContext: {
|
|
8
|
-
__context__: MenubarContext;
|
|
9
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/** Ported from original DUI: deep-future-app/app/client/components/dui/popover */
|
|
2
|
-
export type PopoverSide = "top" | "bottom";
|
|
3
|
-
export type PopoverContext = {
|
|
4
|
-
readonly open: boolean;
|
|
5
|
-
readonly triggerId: string;
|
|
6
|
-
readonly popupId: string;
|
|
7
|
-
readonly side: PopoverSide;
|
|
8
|
-
readonly sideOffset: number;
|
|
9
|
-
readonly triggerEl: HTMLElement | undefined;
|
|
10
|
-
readonly openPopover: () => void;
|
|
11
|
-
readonly closePopover: () => void;
|
|
12
|
-
readonly togglePopover: () => void;
|
|
13
|
-
readonly setTriggerEl: (el: HTMLElement | undefined) => void;
|
|
14
|
-
};
|
|
15
|
-
export declare const popoverContext: {
|
|
16
|
-
__context__: PopoverContext;
|
|
17
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/** Ported from original DUI: deep-future-app/app/client/components/dui/preview-card */
|
|
2
|
-
export type PreviewCardSide = "top" | "bottom";
|
|
3
|
-
export type PreviewCardContext = {
|
|
4
|
-
readonly open: boolean;
|
|
5
|
-
readonly triggerId: string;
|
|
6
|
-
readonly popupId: string;
|
|
7
|
-
readonly side: PreviewCardSide;
|
|
8
|
-
readonly sideOffset: number;
|
|
9
|
-
readonly triggerEl: HTMLElement | undefined;
|
|
10
|
-
readonly openPreviewCard: () => void;
|
|
11
|
-
readonly closePreviewCard: () => void;
|
|
12
|
-
readonly setTriggerEl: (el: HTMLElement | undefined) => void;
|
|
13
|
-
};
|
|
14
|
-
export declare const previewCardContext: {
|
|
15
|
-
__context__: PreviewCardContext;
|
|
16
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export type RadioGroupContext = {
|
|
2
|
-
readonly name: string | undefined;
|
|
3
|
-
readonly value: string | undefined;
|
|
4
|
-
readonly disabled: boolean;
|
|
5
|
-
readonly readOnly: boolean;
|
|
6
|
-
readonly required: boolean;
|
|
7
|
-
readonly select: (value: string) => void;
|
|
8
|
-
};
|
|
9
|
-
export declare const radioGroupContext: {
|
|
10
|
-
__context__: RadioGroupContext;
|
|
11
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/** Ported from original DUI: deep-future-app/app/client/components/dui/sidebar */
|
|
2
|
-
export type SidebarContext = {
|
|
3
|
-
readonly state: "expanded" | "collapsed";
|
|
4
|
-
readonly open: boolean;
|
|
5
|
-
readonly openMobile: boolean;
|
|
6
|
-
readonly isMobile: boolean;
|
|
7
|
-
readonly side: "left" | "right";
|
|
8
|
-
readonly variant: string;
|
|
9
|
-
readonly collapsible: "offcanvas" | "icon" | "none";
|
|
10
|
-
readonly setOpen: (open: boolean) => void;
|
|
11
|
-
readonly toggleSidebar: () => void;
|
|
12
|
-
};
|
|
13
|
-
export declare const sidebarContext: {
|
|
14
|
-
__context__: SidebarContext;
|
|
15
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/split-button/register.js
DELETED
package/tabs/tabs-context.d.ts
DELETED
package/tabs/tabs-context.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export type ToggleGroupContext = {
|
|
2
|
-
readonly value: string[];
|
|
3
|
-
readonly disabled: boolean;
|
|
4
|
-
readonly type: "single" | "multiple";
|
|
5
|
-
readonly toggle: (itemValue: string) => void;
|
|
6
|
-
};
|
|
7
|
-
export declare const toggleGroupContext: {
|
|
8
|
-
__context__: ToggleGroupContext;
|
|
9
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/** Ported from original DUI: deep-future-app/app/client/components/dui/tooltip */
|
|
2
|
-
export type TooltipSide = "top" | "bottom";
|
|
3
|
-
export type TooltipContext = {
|
|
4
|
-
readonly open: boolean;
|
|
5
|
-
readonly triggerId: string;
|
|
6
|
-
readonly popupId: string;
|
|
7
|
-
readonly side: TooltipSide;
|
|
8
|
-
readonly sideOffset: number;
|
|
9
|
-
readonly disabled: boolean;
|
|
10
|
-
readonly openTooltip: () => void;
|
|
11
|
-
readonly closeTooltip: () => void;
|
|
12
|
-
readonly setTriggerEl: (el: HTMLElement | undefined) => void;
|
|
13
|
-
readonly triggerEl: HTMLElement | undefined;
|
|
14
|
-
};
|
|
15
|
-
export declare const tooltipContext: {
|
|
16
|
-
__context__: TooltipContext;
|
|
17
|
-
};
|
|
File without changes
|