@deepfuture/dui-components 0.0.10 → 0.0.11
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/_deprecated/center/index.d.ts +1 -0
- package/_deprecated/center/index.js +1 -0
- package/_deprecated/center/register.d.ts +1 -0
- package/_deprecated/center/register.js +4 -0
- package/_deprecated/hstack/index.d.ts +2 -0
- package/_deprecated/hstack/index.js +1 -0
- package/_deprecated/hstack/register.d.ts +1 -0
- package/_deprecated/hstack/register.js +4 -0
- package/_deprecated/page-inset/index.d.ts +1 -0
- package/_deprecated/page-inset/index.js +1 -0
- package/_deprecated/page-inset/register.d.ts +1 -0
- package/_deprecated/page-inset/register.js +4 -0
- package/_deprecated/vstack/index.d.ts +1 -0
- package/_deprecated/vstack/index.js +1 -0
- package/_deprecated/vstack/register.d.ts +1 -0
- package/_deprecated/vstack/register.js +4 -0
- package/accordion/index.d.ts +2 -5
- package/accordion/index.js +2 -5
- package/accordion/register.d.ts +1 -0
- package/accordion/register.js +8 -0
- package/alert-dialog/alert-dialog.d.ts +2 -0
- package/alert-dialog/alert-dialog.js +12 -6
- package/alert-dialog/index.d.ts +4 -9
- package/alert-dialog/index.js +4 -9
- package/alert-dialog/register.d.ts +1 -0
- package/alert-dialog/register.js +16 -0
- package/all.d.ts +16 -64
- package/all.js +132 -144
- package/avatar/index.d.ts +1 -3
- package/avatar/index.js +1 -3
- package/avatar/register.d.ts +1 -0
- package/avatar/register.js +4 -0
- package/badge/index.d.ts +1 -3
- package/badge/index.js +1 -3
- package/badge/register.d.ts +1 -0
- package/badge/register.js +4 -0
- package/breadcrumb/index.d.ts +6 -13
- package/breadcrumb/index.js +6 -13
- package/breadcrumb/register.d.ts +1 -0
- package/breadcrumb/register.js +14 -0
- package/button/index.d.ts +1 -3
- package/button/index.js +1 -3
- package/button/register.d.ts +1 -0
- package/button/register.js +4 -0
- package/calendar/index.d.ts +1 -3
- package/calendar/index.js +1 -3
- package/calendar/register.d.ts +1 -0
- package/calendar/register.js +4 -0
- package/checkbox/checkbox-group.d.ts +2 -0
- package/checkbox/checkbox-group.js +12 -6
- package/checkbox/checkbox.d.ts +2 -0
- package/checkbox/checkbox.js +17 -11
- package/checkbox/index.d.ts +2 -5
- package/checkbox/index.js +2 -5
- package/checkbox/register.d.ts +1 -0
- package/checkbox/register.js +8 -0
- package/collapsible/index.d.ts +1 -3
- package/collapsible/index.js +1 -3
- package/collapsible/register.d.ts +1 -0
- package/collapsible/register.js +4 -0
- package/combobox/index.d.ts +1 -3
- package/combobox/index.js +1 -3
- package/combobox/register.d.ts +1 -0
- package/combobox/register.js +4 -0
- package/command/index.d.ts +8 -17
- package/command/index.js +8 -17
- package/command/register.d.ts +1 -0
- package/command/register.js +22 -0
- package/data-table/index.d.ts +1 -3
- package/data-table/index.js +1 -3
- package/data-table/register.d.ts +1 -0
- package/data-table/register.js +4 -0
- package/dialog/dialog.d.ts +2 -0
- package/dialog/dialog.js +12 -6
- package/dialog/index.d.ts +4 -9
- package/dialog/index.js +4 -9
- package/dialog/register.d.ts +1 -0
- package/dialog/register.js +16 -0
- package/dropzone/index.d.ts +1 -3
- package/dropzone/index.js +1 -3
- package/dropzone/register.d.ts +1 -0
- package/dropzone/register.js +4 -0
- package/global.d.ts +0 -8
- package/icon/index.d.ts +1 -3
- package/icon/index.js +1 -3
- package/icon/register.d.ts +1 -0
- package/icon/register.js +4 -0
- package/input/index.d.ts +1 -3
- package/input/index.js +1 -3
- package/input/input.d.ts +2 -0
- package/input/input.js +24 -18
- package/input/register.d.ts +1 -0
- package/input/register.js +4 -0
- package/link/index.d.ts +1 -3
- package/link/index.js +1 -3
- package/link/register.d.ts +1 -0
- package/link/register.js +4 -0
- package/menu/index.d.ts +2 -5
- package/menu/index.js +2 -5
- package/menu/register.d.ts +1 -0
- package/menu/register.js +8 -0
- package/menubar/index.d.ts +1 -3
- package/menubar/index.js +1 -3
- package/menubar/menubar.d.ts +2 -0
- package/menubar/menubar.js +11 -5
- package/menubar/register.d.ts +1 -0
- package/menubar/register.js +4 -0
- package/number-field/index.d.ts +1 -3
- package/number-field/index.js +1 -3
- package/number-field/number-field.d.ts +2 -0
- package/number-field/number-field.js +18 -12
- package/number-field/register.d.ts +1 -0
- package/number-field/register.js +4 -0
- package/package.json +4 -21
- package/popover/index.d.ts +4 -9
- package/popover/index.js +4 -9
- package/popover/popover.d.ts +2 -1
- package/popover/popover.js +14 -8
- package/popover/register.d.ts +1 -0
- package/popover/register.js +16 -0
- package/portal/index.d.ts +1 -3
- package/portal/index.js +1 -3
- package/portal/register.d.ts +1 -0
- package/portal/register.js +4 -0
- package/preview-card/index.d.ts +3 -7
- package/preview-card/index.js +3 -7
- package/preview-card/preview-card.d.ts +2 -1
- package/preview-card/preview-card.js +14 -8
- package/preview-card/register.d.ts +1 -0
- package/preview-card/register.js +12 -0
- package/progress/index.d.ts +1 -3
- package/progress/index.js +1 -3
- package/progress/register.d.ts +1 -0
- package/progress/register.js +4 -0
- package/radio/index.d.ts +2 -5
- package/radio/index.js +2 -5
- package/radio/radio-group.d.ts +2 -0
- package/radio/radio-group.js +12 -6
- package/radio/radio.d.ts +2 -0
- package/radio/radio.js +15 -9
- package/radio/register.d.ts +1 -0
- package/radio/register.js +8 -0
- package/scroll-area/index.d.ts +1 -3
- package/scroll-area/index.js +1 -3
- package/scroll-area/register.d.ts +1 -0
- package/scroll-area/register.js +4 -0
- package/scroll-area/scroll-area.js +0 -7
- package/select/index.d.ts +1 -3
- package/select/index.js +1 -3
- package/select/register.d.ts +1 -0
- package/select/register.js +4 -0
- package/select/select.d.ts +2 -0
- package/select/select.js +19 -13
- package/separator/index.d.ts +1 -3
- package/separator/index.js +1 -3
- package/separator/register.d.ts +1 -0
- package/separator/register.js +4 -0
- package/sidebar/index.d.ts +13 -27
- package/sidebar/index.js +13 -32
- package/sidebar/register.d.ts +1 -0
- package/sidebar/register.js +52 -0
- package/sidebar/sidebar-provider.d.ts +2 -0
- package/sidebar/sidebar-provider.js +12 -6
- package/slider/index.d.ts +1 -3
- package/slider/index.js +1 -3
- package/slider/register.d.ts +1 -0
- package/slider/register.js +4 -0
- package/spinner/index.d.ts +1 -3
- package/spinner/index.js +1 -3
- package/spinner/register.d.ts +1 -0
- package/spinner/register.js +4 -0
- package/switch/index.d.ts +1 -3
- package/switch/index.js +1 -3
- package/switch/register.d.ts +1 -0
- package/switch/register.js +4 -0
- package/switch/switch.d.ts +2 -0
- package/switch/switch.js +15 -9
- package/tabs/index.d.ts +5 -11
- package/tabs/index.js +5 -11
- package/tabs/register.d.ts +1 -0
- package/tabs/register.js +10 -0
- package/textarea/index.d.ts +1 -3
- package/textarea/index.js +1 -3
- package/textarea/register.d.ts +1 -0
- package/textarea/register.js +4 -0
- package/toggle/index.d.ts +2 -5
- package/toggle/index.js +2 -5
- package/toggle/register.d.ts +1 -0
- package/toggle/register.js +8 -0
- package/toggle/toggle-group.d.ts +2 -0
- package/toggle/toggle-group.js +12 -6
- package/toggle/toggle.d.ts +2 -0
- package/toggle/toggle.js +15 -9
- package/toolbar/index.d.ts +1 -3
- package/toolbar/index.js +1 -3
- package/toolbar/register.d.ts +1 -0
- package/toolbar/register.js +4 -0
- package/tooltip/index.d.ts +3 -7
- package/tooltip/index.js +3 -7
- package/tooltip/register.d.ts +1 -0
- package/tooltip/register.js +12 -0
- package/tooltip/tooltip.d.ts +2 -1
- package/tooltip/tooltip.js +14 -8
- package/trunc/index.d.ts +1 -3
- package/trunc/index.js +1 -3
- package/trunc/register.d.ts +1 -0
- package/trunc/register.js +4 -0
- package/README.md +0 -191
- package/center/index.d.ts +0 -3
- package/center/index.js +0 -3
- package/hstack/index.d.ts +0 -4
- package/hstack/index.js +0 -3
- package/page-inset/index.d.ts +0 -3
- package/page-inset/index.js +0 -3
- package/vstack/index.d.ts +0 -3
- package/vstack/index.js +0 -3
- /package/{center → _deprecated/center}/center.d.ts +0 -0
- /package/{center → _deprecated/center}/center.js +0 -0
- /package/{hstack → _deprecated/hstack}/hstack.d.ts +0 -0
- /package/{hstack → _deprecated/hstack}/hstack.js +0 -0
- /package/{page-inset → _deprecated/page-inset}/page-inset.d.ts +0 -0
- /package/{page-inset → _deprecated/page-inset}/page-inset.js +0 -0
- /package/{vstack → _deprecated/vstack}/vstack.d.ts +0 -0
- /package/{vstack → _deprecated/vstack}/vstack.js +0 -0
package/all.js
CHANGED
|
@@ -4,188 +4,176 @@
|
|
|
4
4
|
*
|
|
5
5
|
* @example
|
|
6
6
|
* ```ts
|
|
7
|
-
* import { applyTheme } from "@deepfuture/dui-core
|
|
7
|
+
* import { applyTheme } from "@deepfuture/dui-core";
|
|
8
8
|
* import { defaultTheme } from "@deepfuture/dui-theme-default";
|
|
9
9
|
* import { allComponents } from "@deepfuture/dui-components/all";
|
|
10
10
|
*
|
|
11
11
|
* applyTheme({ theme: defaultTheme, components: allComponents });
|
|
12
12
|
* ```
|
|
13
13
|
*/
|
|
14
|
-
// ---
|
|
15
|
-
import { accordionFamily } from "./accordion/index.js";
|
|
16
|
-
import { alertDialogFamily } from "./alert-dialog/index.js";
|
|
17
|
-
import { avatarFamily } from "./avatar/index.js";
|
|
18
|
-
import { badgeFamily } from "./badge/index.js";
|
|
19
|
-
import { breadcrumbFamily } from "./breadcrumb/index.js";
|
|
20
|
-
import { buttonFamily } from "./button/index.js";
|
|
21
|
-
import { calendarFamily } from "./calendar/index.js";
|
|
22
|
-
import { centerFamily } from "./center/index.js";
|
|
23
|
-
import { checkboxFamily } from "./checkbox/index.js";
|
|
24
|
-
import { collapsibleFamily } from "./collapsible/index.js";
|
|
25
|
-
import { comboboxFamily } from "./combobox/index.js";
|
|
26
|
-
import { commandFamily } from "./command/index.js";
|
|
27
|
-
import { dataTableFamily } from "./data-table/index.js";
|
|
28
|
-
import { dialogFamily } from "./dialog/index.js";
|
|
29
|
-
import { dropzoneFamily } from "./dropzone/index.js";
|
|
30
|
-
import { hstackFamily } from "./hstack/index.js";
|
|
31
|
-
import { iconFamily } from "./icon/index.js";
|
|
32
|
-
import { inputFamily } from "./input/index.js";
|
|
33
|
-
import { linkFamily } from "./link/index.js";
|
|
34
|
-
import { menuFamily } from "./menu/index.js";
|
|
35
|
-
import { menubarFamily } from "./menubar/index.js";
|
|
36
|
-
import { numberFieldFamily } from "./number-field/index.js";
|
|
37
|
-
import { pageInsetFamily } from "./page-inset/index.js";
|
|
38
|
-
import { popoverFamily } from "./popover/index.js";
|
|
39
|
-
import { portalFamily } from "./portal/index.js";
|
|
40
|
-
import { previewCardFamily } from "./preview-card/index.js";
|
|
41
|
-
import { progressFamily } from "./progress/index.js";
|
|
42
|
-
import { radioFamily } from "./radio/index.js";
|
|
43
|
-
import { scrollAreaFamily } from "./scroll-area/index.js";
|
|
44
|
-
import { selectFamily } from "./select/index.js";
|
|
45
|
-
import { separatorFamily } from "./separator/index.js";
|
|
46
|
-
import { sidebarFamily } from "./sidebar/index.js";
|
|
47
|
-
import { sliderFamily } from "./slider/index.js";
|
|
48
|
-
import { spinnerFamily } from "./spinner/index.js";
|
|
49
|
-
import { switchFamily } from "./switch/index.js";
|
|
50
|
-
import { tabsFamily } from "./tabs/index.js";
|
|
51
|
-
import { textareaFamily } from "./textarea/index.js";
|
|
52
|
-
import { toggleFamily } from "./toggle/index.js";
|
|
53
|
-
import { toolbarFamily } from "./toolbar/index.js";
|
|
54
|
-
import { tooltipFamily } from "./tooltip/index.js";
|
|
55
|
-
import { truncFamily } from "./trunc/index.js";
|
|
56
|
-
import { vstackFamily } from "./vstack/index.js";
|
|
57
|
-
// --- Re-export all families ---
|
|
58
|
-
export { accordionFamily, alertDialogFamily, avatarFamily, badgeFamily, breadcrumbFamily, buttonFamily, calendarFamily, centerFamily, checkboxFamily, collapsibleFamily, comboboxFamily, commandFamily, dataTableFamily, dialogFamily, dropzoneFamily, hstackFamily, iconFamily, inputFamily, linkFamily, menuFamily, menubarFamily, numberFieldFamily, pageInsetFamily, popoverFamily, portalFamily, previewCardFamily, progressFamily, radioFamily, scrollAreaFamily, selectFamily, separatorFamily, sidebarFamily, sliderFamily, spinnerFamily, switchFamily, tabsFamily, textareaFamily, toggleFamily, toolbarFamily, tooltipFamily, truncFamily, vstackFamily, };
|
|
59
|
-
// --- Re-export component classes and types (explicit to avoid name collisions) ---
|
|
60
|
-
// Accordion
|
|
14
|
+
// --- Accordion ---
|
|
61
15
|
export { DuiAccordion, DuiAccordionItem } from "./accordion/index.js";
|
|
62
|
-
// Alert Dialog
|
|
63
|
-
export { DuiAlertDialog, DuiAlertDialogTrigger, DuiAlertDialogPopup, DuiAlertDialogClose } from "./alert-dialog/index.js";
|
|
64
|
-
// Avatar
|
|
16
|
+
// --- Alert Dialog ---
|
|
17
|
+
export { DuiAlertDialog, DuiAlertDialogTrigger, DuiAlertDialogPopup, DuiAlertDialogClose, } from "./alert-dialog/index.js";
|
|
18
|
+
// --- Avatar ---
|
|
65
19
|
export { DuiAvatar } from "./avatar/index.js";
|
|
66
|
-
// Badge
|
|
20
|
+
// --- Badge ---
|
|
67
21
|
export { DuiBadge } from "./badge/index.js";
|
|
68
|
-
// Breadcrumb
|
|
69
|
-
export { DuiBreadcrumb, DuiBreadcrumbItem, DuiBreadcrumbLink, DuiBreadcrumbPage, DuiBreadcrumbSeparator, DuiBreadcrumbEllipsis } from "./breadcrumb/index.js";
|
|
70
|
-
// Button
|
|
22
|
+
// --- Breadcrumb ---
|
|
23
|
+
export { DuiBreadcrumb, DuiBreadcrumbItem, DuiBreadcrumbLink, DuiBreadcrumbPage, DuiBreadcrumbSeparator, DuiBreadcrumbEllipsis, } from "./breadcrumb/index.js";
|
|
24
|
+
// --- Button ---
|
|
71
25
|
export { DuiButton } from "./button/index.js";
|
|
72
|
-
// Calendar
|
|
26
|
+
// --- Calendar ---
|
|
73
27
|
export { DuiCalendar } from "./calendar/index.js";
|
|
74
|
-
//
|
|
75
|
-
export { DuiCenter } from "./center/index.js";
|
|
76
|
-
// Checkbox
|
|
28
|
+
// --- Checkbox ---
|
|
77
29
|
export { DuiCheckbox, DuiCheckboxGroup } from "./checkbox/index.js";
|
|
78
|
-
// Collapsible
|
|
30
|
+
// --- Collapsible ---
|
|
79
31
|
export { DuiCollapsible } from "./collapsible/index.js";
|
|
80
|
-
// Combobox
|
|
32
|
+
// --- Combobox ---
|
|
81
33
|
export { DuiCombobox } from "./combobox/index.js";
|
|
82
|
-
// Command
|
|
83
|
-
export { DuiCommand, DuiCommandInput, DuiCommandList, DuiCommandGroup, DuiCommandItem, DuiCommandEmpty, DuiCommandSeparator, DuiCommandShortcut } from "./command/index.js";
|
|
84
|
-
// Data Table
|
|
34
|
+
// --- Command ---
|
|
35
|
+
export { DuiCommand, DuiCommandInput, DuiCommandList, DuiCommandGroup, DuiCommandItem, DuiCommandEmpty, DuiCommandSeparator, DuiCommandShortcut, } from "./command/index.js";
|
|
36
|
+
// --- Data Table ---
|
|
85
37
|
export { DuiDataTable } from "./data-table/index.js";
|
|
86
|
-
// Dialog
|
|
87
|
-
export { DuiDialog, DuiDialogTrigger, DuiDialogPopup, DuiDialogClose } from "./dialog/index.js";
|
|
88
|
-
// Dropzone
|
|
38
|
+
// --- Dialog ---
|
|
39
|
+
export { DuiDialog, DuiDialogTrigger, DuiDialogPopup, DuiDialogClose, } from "./dialog/index.js";
|
|
40
|
+
// --- Dropzone ---
|
|
89
41
|
export { DuiDropzone } from "./dropzone/index.js";
|
|
90
|
-
//
|
|
91
|
-
export { DuiHstack } from "./hstack/index.js";
|
|
92
|
-
// Icon
|
|
42
|
+
// --- Icon ---
|
|
93
43
|
export { DuiIcon } from "./icon/index.js";
|
|
94
|
-
// Input
|
|
44
|
+
// --- Input ---
|
|
95
45
|
export { DuiInput } from "./input/index.js";
|
|
96
|
-
// Link
|
|
46
|
+
// --- Link ---
|
|
97
47
|
export { DuiLink } from "./link/index.js";
|
|
98
|
-
// Menu
|
|
48
|
+
// --- Menu ---
|
|
99
49
|
export { DuiMenu, DuiMenuItem } from "./menu/index.js";
|
|
100
|
-
// Menubar
|
|
50
|
+
// --- Menubar ---
|
|
101
51
|
export { DuiMenubar } from "./menubar/index.js";
|
|
102
|
-
// Number Field
|
|
52
|
+
// --- Number Field ---
|
|
103
53
|
export { DuiNumberField } from "./number-field/index.js";
|
|
104
|
-
//
|
|
105
|
-
export {
|
|
106
|
-
//
|
|
107
|
-
export { DuiPopover, DuiPopoverTrigger, DuiPopoverPopup, DuiPopoverClose } from "./popover/index.js";
|
|
108
|
-
// Portal
|
|
54
|
+
// --- Popover ---
|
|
55
|
+
export { DuiPopover, DuiPopoverTrigger, DuiPopoverPopup, DuiPopoverClose, } from "./popover/index.js";
|
|
56
|
+
// --- Portal ---
|
|
109
57
|
export { DuiPortal } from "./portal/index.js";
|
|
110
|
-
// Preview Card
|
|
111
|
-
export { DuiPreviewCard, DuiPreviewCardTrigger, DuiPreviewCardPopup } from "./preview-card/index.js";
|
|
112
|
-
// Progress
|
|
58
|
+
// --- Preview Card ---
|
|
59
|
+
export { DuiPreviewCard, DuiPreviewCardTrigger, DuiPreviewCardPopup, } from "./preview-card/index.js";
|
|
60
|
+
// --- Progress ---
|
|
113
61
|
export { DuiProgress } from "./progress/index.js";
|
|
114
|
-
// Radio
|
|
62
|
+
// --- Radio ---
|
|
115
63
|
export { DuiRadio, DuiRadioGroup } from "./radio/index.js";
|
|
116
|
-
// Scroll Area
|
|
64
|
+
// --- Scroll Area ---
|
|
117
65
|
export { DuiScrollArea } from "./scroll-area/index.js";
|
|
118
|
-
// Select
|
|
66
|
+
// --- Select ---
|
|
119
67
|
export { DuiSelect } from "./select/index.js";
|
|
120
|
-
// Separator
|
|
68
|
+
// --- Separator ---
|
|
121
69
|
export { DuiSeparator } from "./separator/index.js";
|
|
122
|
-
// Sidebar
|
|
123
|
-
export { DuiSidebarProvider, DuiSidebar, DuiSidebarTrigger, DuiSidebarContent, DuiSidebarHeader, DuiSidebarFooter, DuiSidebarGroup, DuiSidebarGroupLabel, DuiSidebarMenu, DuiSidebarMenuItem, DuiSidebarMenuButton, DuiSidebarSeparator, DuiSidebarInset } from "./sidebar/index.js";
|
|
124
|
-
// Slider
|
|
70
|
+
// --- Sidebar ---
|
|
71
|
+
export { DuiSidebarProvider, DuiSidebar, DuiSidebarTrigger, DuiSidebarContent, DuiSidebarHeader, DuiSidebarFooter, DuiSidebarGroup, DuiSidebarGroupLabel, DuiSidebarMenu, DuiSidebarMenuItem, DuiSidebarMenuButton, DuiSidebarSeparator, DuiSidebarInset, } from "./sidebar/index.js";
|
|
72
|
+
// --- Slider ---
|
|
125
73
|
export { DuiSlider } from "./slider/index.js";
|
|
126
|
-
// Spinner
|
|
74
|
+
// --- Spinner ---
|
|
127
75
|
export { DuiSpinner } from "./spinner/index.js";
|
|
128
|
-
// Switch
|
|
76
|
+
// --- Switch ---
|
|
129
77
|
export { DuiSwitch } from "./switch/index.js";
|
|
130
|
-
// Tabs
|
|
131
|
-
export { DuiTabs, DuiTabsList, DuiTab, DuiTabsPanel, DuiTabsIndicator } from "./tabs/index.js";
|
|
132
|
-
// Textarea
|
|
78
|
+
// --- Tabs ---
|
|
79
|
+
export { DuiTabs, DuiTabsList, DuiTab, DuiTabsPanel, DuiTabsIndicator, } from "./tabs/index.js";
|
|
80
|
+
// --- Textarea ---
|
|
133
81
|
export { DuiTextarea } from "./textarea/index.js";
|
|
134
|
-
// Toggle
|
|
82
|
+
// --- Toggle ---
|
|
135
83
|
export { DuiToggle, DuiToggleGroup } from "./toggle/index.js";
|
|
136
|
-
// Toolbar
|
|
84
|
+
// --- Toolbar ---
|
|
137
85
|
export { DuiToolbar } from "./toolbar/index.js";
|
|
138
|
-
// Tooltip
|
|
139
|
-
export { DuiTooltip, DuiTooltipTrigger, DuiTooltipPopup } from "./tooltip/index.js";
|
|
140
|
-
// Trunc
|
|
86
|
+
// --- Tooltip ---
|
|
87
|
+
export { DuiTooltip, DuiTooltipTrigger, DuiTooltipPopup, } from "./tooltip/index.js";
|
|
88
|
+
// --- Trunc ---
|
|
141
89
|
export { DuiTrunc } from "./trunc/index.js";
|
|
142
|
-
// VStack
|
|
143
|
-
export { DuiVstack } from "./vstack/index.js";
|
|
144
90
|
/**
|
|
145
91
|
* All DUI component classes, ready for `applyTheme()`.
|
|
146
92
|
* Includes every component and sub-component.
|
|
147
93
|
*/
|
|
148
94
|
export const allComponents = [
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
95
|
+
DuiAccordion,
|
|
96
|
+
DuiAccordionItem,
|
|
97
|
+
DuiAlertDialog,
|
|
98
|
+
DuiAlertDialogTrigger,
|
|
99
|
+
DuiAlertDialogPopup,
|
|
100
|
+
DuiAlertDialogClose,
|
|
101
|
+
DuiAvatar,
|
|
102
|
+
DuiBadge,
|
|
103
|
+
DuiBreadcrumb,
|
|
104
|
+
DuiBreadcrumbItem,
|
|
105
|
+
DuiBreadcrumbLink,
|
|
106
|
+
DuiBreadcrumbPage,
|
|
107
|
+
DuiBreadcrumbSeparator,
|
|
108
|
+
DuiBreadcrumbEllipsis,
|
|
109
|
+
DuiButton,
|
|
110
|
+
DuiCalendar,
|
|
111
|
+
DuiCheckbox,
|
|
112
|
+
DuiCheckboxGroup,
|
|
113
|
+
DuiCollapsible,
|
|
114
|
+
DuiCombobox,
|
|
115
|
+
DuiCommand,
|
|
116
|
+
DuiCommandInput,
|
|
117
|
+
DuiCommandList,
|
|
118
|
+
DuiCommandGroup,
|
|
119
|
+
DuiCommandItem,
|
|
120
|
+
DuiCommandEmpty,
|
|
121
|
+
DuiCommandSeparator,
|
|
122
|
+
DuiCommandShortcut,
|
|
123
|
+
DuiDataTable,
|
|
124
|
+
DuiDialog,
|
|
125
|
+
DuiDialogTrigger,
|
|
126
|
+
DuiDialogPopup,
|
|
127
|
+
DuiDialogClose,
|
|
128
|
+
DuiDropzone,
|
|
129
|
+
DuiIcon,
|
|
130
|
+
DuiInput,
|
|
131
|
+
DuiLink,
|
|
132
|
+
DuiMenu,
|
|
133
|
+
DuiMenuItem,
|
|
134
|
+
DuiMenubar,
|
|
135
|
+
DuiNumberField,
|
|
136
|
+
DuiPopover,
|
|
137
|
+
DuiPopoverTrigger,
|
|
138
|
+
DuiPopoverPopup,
|
|
139
|
+
DuiPopoverClose,
|
|
140
|
+
DuiPortal,
|
|
141
|
+
DuiPreviewCard,
|
|
142
|
+
DuiPreviewCardTrigger,
|
|
143
|
+
DuiPreviewCardPopup,
|
|
144
|
+
DuiProgress,
|
|
145
|
+
DuiRadio,
|
|
146
|
+
DuiRadioGroup,
|
|
147
|
+
DuiScrollArea,
|
|
148
|
+
DuiSelect,
|
|
149
|
+
DuiSeparator,
|
|
150
|
+
DuiSidebarProvider,
|
|
151
|
+
DuiSidebar,
|
|
152
|
+
DuiSidebarTrigger,
|
|
153
|
+
DuiSidebarContent,
|
|
154
|
+
DuiSidebarHeader,
|
|
155
|
+
DuiSidebarFooter,
|
|
156
|
+
DuiSidebarGroup,
|
|
157
|
+
DuiSidebarGroupLabel,
|
|
158
|
+
DuiSidebarMenu,
|
|
159
|
+
DuiSidebarMenuItem,
|
|
160
|
+
DuiSidebarMenuButton,
|
|
161
|
+
DuiSidebarSeparator,
|
|
162
|
+
DuiSidebarInset,
|
|
163
|
+
DuiSlider,
|
|
164
|
+
DuiSpinner,
|
|
165
|
+
DuiSwitch,
|
|
166
|
+
DuiTabs,
|
|
167
|
+
DuiTabsList,
|
|
168
|
+
DuiTab,
|
|
169
|
+
DuiTabsPanel,
|
|
170
|
+
DuiTabsIndicator,
|
|
171
|
+
DuiTextarea,
|
|
172
|
+
DuiToggle,
|
|
173
|
+
DuiToggleGroup,
|
|
174
|
+
DuiToolbar,
|
|
175
|
+
DuiTooltip,
|
|
176
|
+
DuiTooltipTrigger,
|
|
177
|
+
DuiTooltipPopup,
|
|
178
|
+
DuiTrunc,
|
|
191
179
|
];
|
package/avatar/index.d.ts
CHANGED
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export { DuiAvatar, loadingStatusChangeEvent };
|
|
1
|
+
export { DuiAvatar, loadingStatusChangeEvent } from "./avatar.js";
|
|
3
2
|
export type { ImageStatus } from "./avatar.js";
|
|
4
|
-
export declare const avatarFamily: (typeof DuiAvatar)[];
|
package/avatar/index.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/badge/index.d.ts
CHANGED
package/badge/index.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/breadcrumb/index.d.ts
CHANGED
|
@@ -1,13 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
export {
|
|
3
|
-
|
|
4
|
-
export {
|
|
5
|
-
|
|
6
|
-
export {
|
|
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)[];
|
|
1
|
+
export { DuiBreadcrumb } from "./breadcrumb.js";
|
|
2
|
+
export { DuiBreadcrumbItem } from "./breadcrumb-item.js";
|
|
3
|
+
export { DuiBreadcrumbLink } from "./breadcrumb-link.js";
|
|
4
|
+
export { DuiBreadcrumbPage } from "./breadcrumb-page.js";
|
|
5
|
+
export { DuiBreadcrumbSeparator } from "./breadcrumb-separator.js";
|
|
6
|
+
export { DuiBreadcrumbEllipsis } from "./breadcrumb-ellipsis.js";
|
package/breadcrumb/index.js
CHANGED
|
@@ -1,13 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
export {
|
|
3
|
-
|
|
4
|
-
export {
|
|
5
|
-
|
|
6
|
-
export {
|
|
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];
|
|
1
|
+
export { DuiBreadcrumb } from "./breadcrumb.js";
|
|
2
|
+
export { DuiBreadcrumbItem } from "./breadcrumb-item.js";
|
|
3
|
+
export { DuiBreadcrumbLink } from "./breadcrumb-link.js";
|
|
4
|
+
export { DuiBreadcrumbPage } from "./breadcrumb-page.js";
|
|
5
|
+
export { DuiBreadcrumbSeparator } from "./breadcrumb-separator.js";
|
|
6
|
+
export { DuiBreadcrumbEllipsis } from "./breadcrumb-ellipsis.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { DuiBreadcrumb, DuiBreadcrumbItem, DuiBreadcrumbLink, DuiBreadcrumbPage, DuiBreadcrumbSeparator, DuiBreadcrumbEllipsis, } from "./index.js";
|
|
2
|
+
const components = [
|
|
3
|
+
DuiBreadcrumb,
|
|
4
|
+
DuiBreadcrumbItem,
|
|
5
|
+
DuiBreadcrumbLink,
|
|
6
|
+
DuiBreadcrumbPage,
|
|
7
|
+
DuiBreadcrumbSeparator,
|
|
8
|
+
DuiBreadcrumbEllipsis,
|
|
9
|
+
];
|
|
10
|
+
for (const comp of components) {
|
|
11
|
+
if (!customElements.get(comp.tagName)) {
|
|
12
|
+
customElements.define(comp.tagName, comp);
|
|
13
|
+
}
|
|
14
|
+
}
|
package/button/index.d.ts
CHANGED
package/button/index.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/calendar/index.d.ts
CHANGED
package/calendar/index.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/** Ported from original DUI: deep-future-app/app/client/components/dui/checkbox */
|
|
2
2
|
import { LitElement, type TemplateResult } from "lit";
|
|
3
|
+
import { type CheckboxGroupContext } from "./checkbox-group-context.js";
|
|
3
4
|
export declare const valueChangeEvent: (detail: string[]) => CustomEvent<string[]>;
|
|
4
5
|
/**
|
|
5
6
|
* `<dui-checkbox-group>` — Groups multiple checkboxes with shared state.
|
|
@@ -28,6 +29,7 @@ export declare class DuiCheckboxGroup extends LitElement {
|
|
|
28
29
|
accessor allValues: string[];
|
|
29
30
|
/** Whether all checkboxes in the group are disabled. */
|
|
30
31
|
accessor disabled: boolean;
|
|
32
|
+
accessor _ctx: CheckboxGroupContext;
|
|
31
33
|
connectedCallback(): void;
|
|
32
34
|
willUpdate(): void;
|
|
33
35
|
render(): TemplateResult;
|
|
@@ -6,9 +6,11 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
7
|
};
|
|
8
8
|
import { css, html, LitElement } from "lit";
|
|
9
|
-
import { property } from "lit/decorators.js";
|
|
9
|
+
import { property, state } from "lit/decorators.js";
|
|
10
|
+
import { provide } from "@lit/context";
|
|
10
11
|
import { base } from "@deepfuture/dui-core/base";
|
|
11
12
|
import { customEvent } from "@deepfuture/dui-core/event";
|
|
13
|
+
import { checkboxGroupContext, } from "./checkbox-group-context.js";
|
|
12
14
|
export const valueChangeEvent = customEvent("value-change", {
|
|
13
15
|
bubbles: true,
|
|
14
16
|
composed: true,
|
|
@@ -80,9 +82,9 @@ export class DuiCheckboxGroup extends LitElement {
|
|
|
80
82
|
}
|
|
81
83
|
this.dispatchEvent(valueChangeEvent(next));
|
|
82
84
|
};
|
|
83
|
-
#
|
|
84
|
-
get
|
|
85
|
-
set
|
|
85
|
+
#_ctx_accessor_storage = this.#buildContext();
|
|
86
|
+
get _ctx() { return this.#_ctx_accessor_storage; }
|
|
87
|
+
set _ctx(value) { this.#_ctx_accessor_storage = value; }
|
|
86
88
|
#buildContext() {
|
|
87
89
|
return {
|
|
88
90
|
checkedValues: this.#getCheckedValues(),
|
|
@@ -97,10 +99,10 @@ export class DuiCheckboxGroup extends LitElement {
|
|
|
97
99
|
if (this.value === undefined && this.defaultValue.length > 0) {
|
|
98
100
|
this.#internalValues = [...this.defaultValue];
|
|
99
101
|
}
|
|
100
|
-
this
|
|
102
|
+
this._ctx = this.#buildContext();
|
|
101
103
|
}
|
|
102
104
|
willUpdate() {
|
|
103
|
-
this
|
|
105
|
+
this._ctx = this.#buildContext();
|
|
104
106
|
}
|
|
105
107
|
render() {
|
|
106
108
|
return html `
|
|
@@ -126,3 +128,7 @@ __decorate([
|
|
|
126
128
|
__decorate([
|
|
127
129
|
property({ type: Boolean, reflect: true })
|
|
128
130
|
], DuiCheckboxGroup.prototype, "disabled", null);
|
|
131
|
+
__decorate([
|
|
132
|
+
provide({ context: checkboxGroupContext }),
|
|
133
|
+
state()
|
|
134
|
+
], DuiCheckboxGroup.prototype, "_ctx", null);
|
package/checkbox/checkbox.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/** Ported from original DUI: deep-future-app/app/client/components/dui/checkbox */
|
|
2
2
|
import { LitElement, type TemplateResult } from "lit";
|
|
3
|
+
import { type FieldContext } from "../field/field-context.js";
|
|
3
4
|
export declare const checkedChangeEvent: (detail: {
|
|
4
5
|
checked: boolean;
|
|
5
6
|
indeterminate: boolean;
|
|
@@ -40,6 +41,7 @@ export declare class DuiCheckbox extends LitElement {
|
|
|
40
41
|
accessor value: string | undefined;
|
|
41
42
|
/** When true, acts as a parent (select-all) checkbox within a group. */
|
|
42
43
|
accessor parent: boolean;
|
|
44
|
+
accessor _fieldCtx: FieldContext;
|
|
43
45
|
connectedCallback(): void;
|
|
44
46
|
disconnectedCallback(): void;
|
|
45
47
|
render(): TemplateResult;
|
package/checkbox/checkbox.js
CHANGED
|
@@ -6,10 +6,12 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
7
|
};
|
|
8
8
|
import { css, html, LitElement, nothing } from "lit";
|
|
9
|
-
import { property } from "lit/decorators.js";
|
|
9
|
+
import { property, state } from "lit/decorators.js";
|
|
10
10
|
import { ContextConsumer } from "@lit/context";
|
|
11
|
+
import { consume } from "@lit/context";
|
|
11
12
|
import { base } from "@deepfuture/dui-core/base";
|
|
12
13
|
import { customEvent } from "@deepfuture/dui-core/event";
|
|
14
|
+
import { fieldContext } from "../field/field-context.js";
|
|
13
15
|
import { checkboxGroupContext } from "./checkbox-group-context.js";
|
|
14
16
|
export const checkedChangeEvent = customEvent("checked-change", { bubbles: true, composed: true });
|
|
15
17
|
/** Structural styles only — layout and behavioral CSS. */
|
|
@@ -149,9 +151,9 @@ export class DuiCheckbox extends LitElement {
|
|
|
149
151
|
context: checkboxGroupContext,
|
|
150
152
|
subscribe: true,
|
|
151
153
|
});
|
|
152
|
-
#
|
|
153
|
-
get
|
|
154
|
-
set
|
|
154
|
+
#_fieldCtx_accessor_storage;
|
|
155
|
+
get _fieldCtx() { return this.#_fieldCtx_accessor_storage; }
|
|
156
|
+
set _fieldCtx(value) { this.#_fieldCtx_accessor_storage = value; }
|
|
155
157
|
get #isChecked() {
|
|
156
158
|
const ctx = this.#groupCtx.value;
|
|
157
159
|
if (ctx && this.value !== undefined) {
|
|
@@ -174,10 +176,10 @@ export class DuiCheckbox extends LitElement {
|
|
|
174
176
|
get #isDisabled() {
|
|
175
177
|
return (this.disabled ||
|
|
176
178
|
(this.#groupCtx.value?.disabled ?? false) ||
|
|
177
|
-
(this
|
|
179
|
+
(this._fieldCtx?.disabled ?? false));
|
|
178
180
|
}
|
|
179
181
|
get #isInvalid() {
|
|
180
|
-
return this
|
|
182
|
+
return this._fieldCtx?.invalid ?? false;
|
|
181
183
|
}
|
|
182
184
|
connectedCallback() {
|
|
183
185
|
super.connectedCallback();
|
|
@@ -205,8 +207,8 @@ export class DuiCheckbox extends LitElement {
|
|
|
205
207
|
else {
|
|
206
208
|
ctx.toggle(this.value);
|
|
207
209
|
}
|
|
208
|
-
this
|
|
209
|
-
this
|
|
210
|
+
this._fieldCtx?.markDirty();
|
|
211
|
+
this._fieldCtx?.markTouched();
|
|
210
212
|
return;
|
|
211
213
|
}
|
|
212
214
|
// Standalone behavior
|
|
@@ -215,8 +217,8 @@ export class DuiCheckbox extends LitElement {
|
|
|
215
217
|
this.#internalChecked = newChecked;
|
|
216
218
|
this.indeterminate = false;
|
|
217
219
|
}
|
|
218
|
-
this
|
|
219
|
-
this
|
|
220
|
+
this._fieldCtx?.markDirty();
|
|
221
|
+
this._fieldCtx?.markTouched();
|
|
220
222
|
this.dispatchEvent(checkedChangeEvent({
|
|
221
223
|
checked: newChecked,
|
|
222
224
|
indeterminate: false,
|
|
@@ -234,7 +236,7 @@ export class DuiCheckbox extends LitElement {
|
|
|
234
236
|
const isDisabled = this.#isDisabled;
|
|
235
237
|
const isInvalid = this.#isInvalid;
|
|
236
238
|
const showIndicator = isChecked || isIndeterminate;
|
|
237
|
-
const controlId = this
|
|
239
|
+
const controlId = this._fieldCtx?.controlId ?? "";
|
|
238
240
|
return html `
|
|
239
241
|
<span
|
|
240
242
|
part="root"
|
|
@@ -311,3 +313,7 @@ __decorate([
|
|
|
311
313
|
__decorate([
|
|
312
314
|
property({ type: Boolean })
|
|
313
315
|
], DuiCheckbox.prototype, "parent", null);
|
|
316
|
+
__decorate([
|
|
317
|
+
consume({ context: fieldContext, subscribe: true }),
|
|
318
|
+
state()
|
|
319
|
+
], DuiCheckbox.prototype, "_fieldCtx", null);
|
package/checkbox/index.d.ts
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
export {
|
|
3
|
-
import { DuiCheckboxGroup, valueChangeEvent } from "./checkbox-group.js";
|
|
4
|
-
export { DuiCheckboxGroup, valueChangeEvent };
|
|
1
|
+
export { DuiCheckbox, checkedChangeEvent } from "./checkbox.js";
|
|
2
|
+
export { DuiCheckboxGroup, valueChangeEvent } from "./checkbox-group.js";
|
|
5
3
|
export type { CheckboxGroupContext } from "./checkbox-group-context.js";
|
|
6
|
-
export declare const checkboxFamily: (typeof DuiCheckbox | typeof DuiCheckboxGroup)[];
|
package/checkbox/index.js
CHANGED
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export {
|
|
3
|
-
import { DuiCheckboxGroup, valueChangeEvent } from "./checkbox-group.js";
|
|
4
|
-
export { DuiCheckboxGroup, valueChangeEvent };
|
|
5
|
-
export const checkboxFamily = [DuiCheckbox, DuiCheckboxGroup];
|
|
1
|
+
export { DuiCheckbox, checkedChangeEvent } from "./checkbox.js";
|
|
2
|
+
export { DuiCheckboxGroup, valueChangeEvent } from "./checkbox-group.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|