@avento-space/ts-ui 1.2.5 → 1.2.7

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 CHANGED
@@ -131,7 +131,7 @@ function App() {
131
131
 
132
132
  Components use **Shadow DOM**, so global CSS (Tailwind, modules, etc.) cannot style internal elements. Use **CSS custom properties** for design tokens and **`::part()` selectors** for targeting specific internal elements.
133
133
 
134
- > 📖 **Full documentation:** [`docs/theming.md`](./docs/theming.md) — includes the complete token table, stacking/z-index guide, React patterns, migration notes, and the optional [Tailwind plugin](docs/theming.md#7-optional-tailwind-plugin) for autocomplete-friendly `--u-*` utilities.
134
+ > 📖 **Full documentation:** [`docs/theming.md`](./docs/theming.md) — includes the complete token table, stacking/z-index guide, React patterns, migration notes, and the optional [Tailwind theme file](docs/theming.md#7-optional-tailwind-theme) for autocomplete-friendly `--u-*` utilities.
135
135
 
136
136
  ```css
137
137
  /* Token override — affects all components */
@@ -1624,4 +1624,4 @@ declare class UCard extends UElement {
1624
1624
  _mount(): void;
1625
1625
  }
1626
1626
 
1627
- export { type PortalProps as $, type AccordionItemProps as A, type BadgeProps as B, type CalendarProps as C, type DataTableColumn as D, type DrawerProps as E, type DrawerSide as F, type DropdownItem as G, type DropdownProps as H, type FieldProps as I, type FocusManagerProps as J, type FocusScopeProps as K, type FocusTrapProps as L, type FormProps as M, type GridProps as N, type HoverableProps as O, type InputProps as P, type KeyboardNavigationProps as Q, type LabelProps as R, type LinkProps as S, type ListProps as T, type LiveRegionPoliteness as U, type LiveRegionProps as V, type ModalProps as W, type OverlayProps as X, type PopoverProps as Y, type PopperPlacement as Z, type PopperProps as _, type AccordionProps as a, UPopover as a$, type PresenceAnimation as a0, type PresenceProps as a1, type PressableProps as a2, type RadioGroupProps as a3, type RadioProps as a4, type RouterViewProps as a5, type SelectOption as a6, type SelectProps as a7, type SortableProps as a8, type SpacerProps as a9, UCheckbox as aA, UCollection as aB, UCombobox as aC, UCommandPalette as aD, UContainer as aE, UContextMenu as aF, UDataTable as aG, UDialogRoot as aH, UDismissableLayer as aI, UDrawer as aJ, UDropdown as aK, UField as aL, UFocusManager as aM, UFocusScope as aN, UFocusTrap as aO, UForm as aP, UGrid as aQ, UHStack as aR, UHoverable as aS, UInput as aT, UKeyboardNavigation as aU, ULabel as aV, ULink as aW, UList as aX, ULiveRegion as aY, UModal as aZ, UOverlay as a_, type StackProps as aa, type SwitchProps as ab, type TableColumn as ac, type TableProps as ad, type TabsProps as ae, type TextColor as af, type TextProps as ag, type TextSize as ah, type TextWeight as ai, type TextareaProps as aj, type ToastOptions as ak, type ToastProps as al, type TooltipRootProps as am, type TransitionProps as an, type TransitionType as ao, type TreeNodeData as ap, type TreeProps as aq, UAccordion as ar, UAccordionItem as as, UAnimate as at, UBadge as au, UBox as av, UBreadcrumb as aw, UButton as ax, UCalendar as ay, UCard as az, type AnimatePreset as b, UPopper as b0, UPortal as b1, UPresence as b2, UPressable as b3, URadio as b4, URadioGroup as b5, URouterView as b6, USelect as b7, USortable as b8, USpacer as b9, UStack as ba, USwitch as bb, UTable as bc, UTabs as bd, UText as be, UTextarea as bf, UToast as bg, UTooltipRoot as bh, UTransition as bi, UTree as bj, UVirtualList as bk, UVisuallyHidden as bl, type VirtualListProps as bm, type VisuallyHiddenProps as bn, createControlledInput as bo, setPortalRoot as bp, type AnimateProps as c, type BadgeSize as d, type BadgeVariant as e, type BoxAs as f, type BoxProps as g, type BreadcrumbItem as h, type BreadcrumbProps as i, type ButtonProps as j, type CardPadding as k, type CardProps as l, type CardVariant as m, type CheckboxProps as n, type CollectionProps as o, type CollectionSelection as p, type ComboboxOption as q, type ComboboxProps as r, type CommandItem as s, type CommandPaletteProps as t, type ContainerProps as u, type ContextMenuItem as v, type ContextMenuProps as w, type DataTableProps as x, type DialogRootProps as y, type DismissableLayerProps as z };
1627
+ export { type TreeProps as $, type AccordionProps as A, type BadgeProps as B, type CalendarProps as C, type DataTableProps as D, type RouterViewProps as E, type FieldProps as F, type GridProps as G, type HoverableProps as H, type InputProps as I, type SelectProps as J, type KeyboardNavigationProps as K, type LabelProps as L, type ModalProps as M, type SortableProps as N, type OverlayProps as O, type PopoverProps as P, type SpacerProps as Q, type RadioGroupProps as R, type StackProps as S, type SwitchProps as T, type TableProps as U, type TabsProps as V, type TextProps as W, type TextareaProps as X, type ToastProps as Y, type TooltipRootProps as Z, type TransitionProps as _, type AnimateProps as a, UModal as a$, type VirtualListProps as a0, type VisuallyHiddenProps as a1, type AccordionItemProps as a2, type AnimatePreset as a3, type BadgeSize as a4, type BadgeVariant as a5, type BoxAs as a6, type BreadcrumbItem as a7, type CardPadding as a8, type CardVariant as a9, UCalendar as aA, UCard as aB, UCheckbox as aC, UCollection as aD, UCombobox as aE, UCommandPalette as aF, UContainer as aG, UContextMenu as aH, UDataTable as aI, UDialogRoot as aJ, UDismissableLayer as aK, UDrawer as aL, UDropdown as aM, UField as aN, UFocusManager as aO, UFocusScope as aP, UFocusTrap as aQ, UForm as aR, UGrid as aS, UHStack as aT, UHoverable as aU, UInput as aV, UKeyboardNavigation as aW, ULabel as aX, ULink as aY, UList as aZ, ULiveRegion as a_, type CollectionSelection as aa, type ComboboxOption as ab, type CommandItem as ac, type ContextMenuItem as ad, type DataTableColumn as ae, type DrawerSide as af, type DropdownItem as ag, type LiveRegionPoliteness as ah, type PopperPlacement as ai, type PresenceAnimation as aj, type RadioProps as ak, type SelectOption as al, type TableColumn as am, type TextColor as an, type TextSize as ao, type TextWeight as ap, type ToastOptions as aq, type TransitionType as ar, type TreeNodeData as as, UAccordion as at, UAccordionItem as au, UAnimate as av, UBadge as aw, UBox as ax, UBreadcrumb as ay, UButton as az, type BoxProps as b, UOverlay as b0, UPopover as b1, UPopper as b2, UPortal as b3, UPresence as b4, UPressable as b5, URadio as b6, URadioGroup as b7, URouterView as b8, USelect as b9, USortable as ba, USpacer as bb, UStack as bc, USwitch as bd, UTable as be, UTabs as bf, UText as bg, UTextarea as bh, UToast as bi, UTooltipRoot as bj, UTransition as bk, UTree as bl, UVirtualList as bm, UVisuallyHidden as bn, createControlledInput as bo, setPortalRoot as bp, type BreadcrumbProps as c, type ButtonProps as d, type CardProps as e, type CheckboxProps as f, type CollectionProps as g, type ComboboxProps as h, type CommandPaletteProps as i, type ContainerProps as j, type ContextMenuProps as k, type DialogRootProps as l, type DismissableLayerProps as m, type DrawerProps as n, type DropdownProps as o, type FocusManagerProps as p, type FocusScopeProps as q, type FocusTrapProps as r, type FormProps as s, type LinkProps as t, type ListProps as u, type LiveRegionProps as v, type PopperProps as w, type PortalProps as x, type PresenceProps as y, type PressableProps as z };
@@ -1,5 +1,5 @@
1
- import { UButton, UInput, UBox, UList, UVirtualList, UPortal, UText, UStack, UHStack, UGrid, USlot, UPressable, UFocusScope, UDismissableLayer, UOverlay, UField, UCheckbox, USelect, ULink, USpacer, UContainer, UHoverable, UFocusTrap, UPopper, UDialogRoot, UTooltipRoot, UTextarea, URadioGroup, URadio, USwitch, ULabel, UCollection, UTree, UTable, URouterView, UBreadcrumb, UTabs, UVisuallyHidden, ULiveRegion, UFocusManager, UKeyboardNavigation, UPresence, UTransition, UAnimate, UModal, UDrawer, UPopover, UDropdown, UAccordion, UAccordionItem, UCombobox, UCalendar, UDataTable, UCommandPalette, UToast, UContextMenu, USortable, UForm, UBadge, UCard } from './chunk-47AXL5HN.js';
2
- import { UIcon } from './chunk-Q4KFLERV.js';
1
+ import { UButton, UInput, UBox, UList, UVirtualList, UPortal, UText, UStack, UHStack, UGrid, USlot, UPressable, UFocusScope, UDismissableLayer, UOverlay, UField, UCheckbox, USelect, ULink, USpacer, UContainer, UHoverable, UFocusTrap, UPopper, UDialogRoot, UTooltipRoot, UTextarea, URadioGroup, URadio, USwitch, ULabel, UCollection, UTree, UTable, URouterView, UBreadcrumb, UTabs, UVisuallyHidden, ULiveRegion, UFocusManager, UKeyboardNavigation, UPresence, UTransition, UAnimate, UModal, UDrawer, UPopover, UDropdown, UAccordion, UAccordionItem, UCombobox, UCalendar, UDataTable, UCommandPalette, UToast, UContextMenu, USortable, UForm, UBadge, UCard } from './chunk-EDV6KYRZ.js';
2
+ import { UIcon } from './chunk-C4GTD5ZH.js';
3
3
 
4
4
  // src/core/define.ts
5
5
  var DEFINED = /* @__PURE__ */ new Set();
@@ -77,5 +77,5 @@ function defineComponents(options = {}) {
77
77
  }
78
78
 
79
79
  export { defineComponents };
80
- //# sourceMappingURL=chunk-FPZL7HOP.js.map
81
- //# sourceMappingURL=chunk-FPZL7HOP.js.map
80
+ //# sourceMappingURL=chunk-2FE7DEDS.js.map
81
+ //# sourceMappingURL=chunk-2FE7DEDS.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/core/define.ts"],"names":[],"mappings":";;;;AA0DA,IAAM,OAAA,uBAAc,GAAA,EAAY;AAMzB,SAAS,gBAAA,CAAiB,OAAA,GAAyB,EAAC,EAAS;AAClE,EAAA,MAAM,MAAA,GAAS,QAAQ,MAAA,IAAU,GAAA;AAEjC,EAAA,MAAM,UAAA,GAAmD;AAAA,IACvD,CAAC,CAAA,EAAG,MAAM,CAAA,OAAA,CAAA,EAAW,OAAO,CAAA;AAAA,IAC5B,CAAC,CAAA,EAAG,MAAM,CAAA,MAAA,CAAA,EAAU,MAAM,CAAA;AAAA,IAC1B,CAAC,CAAA,EAAG,MAAM,CAAA,IAAA,CAAA,EAAQ,IAAI,CAAA;AAAA,IACtB,CAAC,CAAA,EAAG,MAAM,CAAA,KAAA,CAAA,EAAS,KAAK,CAAA;AAAA,IACxB,CAAC,CAAA,EAAG,MAAM,CAAA,aAAA,CAAA,EAAiB,YAAY,CAAA;AAAA,IACvC,CAAC,CAAA,EAAG,MAAM,CAAA,OAAA,CAAA,EAAW,OAAO,CAAA;AAAA,IAC5B,CAAC,CAAA,EAAG,MAAM,CAAA,KAAA,CAAA,EAAS,KAAK,CAAA;AAAA,IACxB,CAAC,CAAA,EAAG,MAAM,CAAA,MAAA,CAAA,EAAU,MAAM,CAAA;AAAA,IAC1B,CAAC,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EAAU,MAAM,CAAA;AAAA,IAC1B,CAAC,CAAA,EAAG,MAAM,CAAA,KAAA,CAAA,EAAS,KAAK,CAAA;AAAA,IACxB,CAAC,CAAA,EAAG,MAAM,CAAA,KAAA,CAAA,EAAS,KAAK;AAAA,GAC1B;AAEA,EAAA,KAAA,MAAW,CAAC,IAAA,EAAM,KAAK,CAAA,IAAK,UAAA,EAAY;AACtC,IAAA,IAAI,CAAC,eAAe,GAAA,CAAI,IAAI,KAAK,CAAC,OAAA,CAAQ,GAAA,CAAI,IAAI,CAAA,EAAG;AACnD,MAAA,cAAA,CAAe,MAAA,CAAO,MAAM,KAAK,CAAA;AACjC,MAAA,OAAA,CAAQ,IAAI,IAAI,CAAA;AAAA,IAClB;AAAA,EACF;AACF","file":"chunk-FPZL7HOP.js","sourcesContent":["import { UButton } from '../components/button.wc.js';\r\nimport { UInput } from '../components/input.wc.js';\r\nimport { UBox } from '../components/box.wc.js';\r\nimport { UList, UVirtualList } from '../components/list.wc.js';\r\nimport { UPortal } from '../components/portal.wc.js';\r\nimport { UText } from '../components/text.wc.js';\r\nimport { UStack, UHStack } from '../components/stack.wc.js';\r\nimport { UGrid } from '../components/grid.wc.js';\r\nimport { USlot } from '../components/slot.wc.js';\r\nimport { UPressable } from '../components/pressable.wc.js';\r\nimport { UFocusScope } from '../components/focus-scope.wc.js';\r\nimport { UDismissableLayer } from '../components/dismissable-layer.wc.js';\r\nimport { UOverlay } from '../components/overlay.wc.js';\r\nimport { UField } from '../components/field.wc.js';\r\nimport { UCheckbox } from '../components/checkbox.wc.js';\r\nimport { USelect } from '../components/select.wc.js';\r\nimport { ULink } from '../components/link.wc.js';\r\nimport { USpacer } from '../components/spacer.wc.js';\r\nimport { UContainer } from '../components/container.wc.js';\r\nimport { UHoverable } from '../components/hoverable.wc.js';\r\nimport { UFocusTrap } from '../components/focus-trap.wc.js';\r\nimport { UPopper } from '../components/popper.wc.js';\r\nimport { UDialogRoot } from '../components/dialog-root.wc.js';\r\nimport { UTooltipRoot } from '../components/tooltip-root.wc.js';\r\nimport { UTextarea } from '../components/textarea.wc.js';\r\nimport { URadioGroup, URadio } from '../components/radio-group.wc.js';\r\nimport { USwitch } from '../components/switch.wc.js';\r\nimport { ULabel } from '../components/label.wc.js';\r\nimport { UCollection } from '../components/collection.wc.js';\r\nimport { UTree } from '../components/tree.wc.js';\r\nimport { UTable } from '../components/table.wc.js';\r\nimport { URouterView } from '../components/router-view.wc.js';\r\nimport { UBreadcrumb } from '../components/breadcrumb.wc.js';\r\nimport { UTabs } from '../components/tabs.wc.js';\r\nimport { UVisuallyHidden } from '../components/visually-hidden.wc.js';\r\nimport { ULiveRegion } from '../components/live-region.wc.js';\r\nimport { UFocusManager } from '../components/focus-manager.wc.js';\r\nimport { UKeyboardNavigation } from '../components/keyboard-navigation.wc.js';\r\nimport { UPresence } from '../components/presence.wc.js';\r\nimport { UTransition } from '../components/transition.wc.js';\r\nimport { UAnimate } from '../components/animate.wc.js';\r\nimport { UModal } from '../components/modal.wc.js';\r\nimport { UDrawer } from '../components/drawer.wc.js';\r\nimport { UPopover } from '../components/popover.wc.js';\r\nimport { UDropdown } from '../components/dropdown.wc.js';\r\nimport { UAccordion, UAccordionItem } from '../components/accordion.wc.js';\r\nimport { UCombobox } from '../components/combobox.wc.js';\r\nimport { UCalendar } from '../components/calendar.wc.js';\r\nimport { UDataTable } from '../components/data-table.wc.js';\r\nimport { UCommandPalette } from '../components/command-palette.wc.js';\r\nimport { UToast } from '../components/toast.wc.js';\r\nimport { UContextMenu } from '../components/context-menu.wc.js';\r\nimport { USortable } from '../components/sortable.wc.js';\r\nimport { UForm } from '../components/form.wc.js';\r\nimport { UBadge } from '../components/badge.wc.js';\r\nimport { UCard } from '../components/card.wc.js';\r\nimport { UIcon } from '../icons/icon-element.js';\r\n\r\nconst DEFINED = new Set<string>();\r\n\r\nexport interface DefineOptions {\r\n prefix?: string;\r\n}\r\n\r\nexport function defineComponents(options: DefineOptions = {}): void {\r\n const prefix = options.prefix || 'u';\r\n\r\n const components: [string, CustomElementConstructor][] = [\r\n [`${prefix}-button`, UButton],\r\n [`${prefix}-input`, UInput],\r\n [`${prefix}-box`, UBox],\r\n [`${prefix}-list`, UList],\r\n [`${prefix}-virtual-list`, UVirtualList],\r\n [`${prefix}-portal`, UPortal],\r\n [`${prefix}-text`, UText],\r\n [`${prefix}-stack`, UStack],\r\n [`${prefix}-hstack`, UHStack],\r\n [`${prefix}-grid`, UGrid],\r\n [`${prefix}-slot`, USlot],\r\n [`${prefix}-pressable`, UPressable],\r\n [`${prefix}-focus-scope`, UFocusScope],\r\n [`${prefix}-dismissable-layer`, UDismissableLayer],\r\n [`${prefix}-overlay`, UOverlay],\r\n [`${prefix}-field`, UField],\r\n [`${prefix}-checkbox`, UCheckbox],\r\n [`${prefix}-select`, USelect],\r\n [`${prefix}-link`, ULink],\r\n [`${prefix}-spacer`, USpacer],\r\n [`${prefix}-container`, UContainer],\r\n [`${prefix}-hoverable`, UHoverable],\r\n [`${prefix}-focus-trap`, UFocusTrap],\r\n [`${prefix}-popper`, UPopper],\r\n [`${prefix}-dialog-root`, UDialogRoot],\r\n [`${prefix}-tooltip-root`, UTooltipRoot],\r\n [`${prefix}-textarea`, UTextarea],\r\n [`${prefix}-radio-group`, URadioGroup],\r\n [`${prefix}-radio`, URadio],\r\n [`${prefix}-switch`, USwitch],\r\n [`${prefix}-label`, ULabel],\r\n [`${prefix}-collection`, UCollection],\r\n [`${prefix}-tree`, UTree],\r\n [`${prefix}-table`, UTable],\r\n [`${prefix}-router-view`, URouterView],\r\n [`${prefix}-breadcrumb`, UBreadcrumb],\r\n [`${prefix}-tabs`, UTabs],\r\n [`${prefix}-visually-hidden`, UVisuallyHidden],\r\n [`${prefix}-live-region`, ULiveRegion],\r\n [`${prefix}-focus-manager`, UFocusManager],\r\n [`${prefix}-keyboard-navigation`, UKeyboardNavigation],\r\n [`${prefix}-presence`, UPresence],\r\n [`${prefix}-transition`, UTransition],\r\n [`${prefix}-animate`, UAnimate],\r\n [`${prefix}-modal`, UModal],\r\n [`${prefix}-drawer`, UDrawer],\r\n [`${prefix}-popover`, UPopover],\r\n [`${prefix}-dropdown`, UDropdown],\r\n [`${prefix}-accordion`, UAccordion],\r\n [`${prefix}-accordion-item`, UAccordionItem],\r\n [`${prefix}-combobox`, UCombobox],\r\n [`${prefix}-calendar`, UCalendar],\r\n [`${prefix}-data-table`, UDataTable],\r\n [`${prefix}-command-palette`, UCommandPalette],\r\n [`${prefix}-toast`, UToast],\r\n [`${prefix}-context-menu`, UContextMenu],\r\n [`${prefix}-sortable`, USortable],\r\n [`${prefix}-form`, UForm],\r\n [`${prefix}-badge`, UBadge],\r\n [`${prefix}-card`, UCard],\r\n [`${prefix}-icon`, UIcon],\r\n ];\r\n\r\n for (const [name, klass] of components) {\r\n if (!customElements.get(name) && !DEFINED.has(name)) {\r\n customElements.define(name, klass);\r\n DEFINED.add(name);\r\n }\r\n }\r\n}\r\n"]}
1
+ {"version":3,"sources":["../src/core/define.ts"],"names":[],"mappings":";;;;AA0DA,IAAM,OAAA,uBAAc,GAAA,EAAY;AAMzB,SAAS,gBAAA,CAAiB,OAAA,GAAyB,EAAC,EAAS;AAClE,EAAA,MAAM,MAAA,GAAS,QAAQ,MAAA,IAAU,GAAA;AAEjC,EAAA,MAAM,UAAA,GAAmD;AAAA,IACvD,CAAC,CAAA,EAAG,MAAM,CAAA,OAAA,CAAA,EAAW,OAAO,CAAA;AAAA,IAC5B,CAAC,CAAA,EAAG,MAAM,CAAA,MAAA,CAAA,EAAU,MAAM,CAAA;AAAA,IAC1B,CAAC,CAAA,EAAG,MAAM,CAAA,IAAA,CAAA,EAAQ,IAAI,CAAA;AAAA,IACtB,CAAC,CAAA,EAAG,MAAM,CAAA,KAAA,CAAA,EAAS,KAAK,CAAA;AAAA,IACxB,CAAC,CAAA,EAAG,MAAM,CAAA,aAAA,CAAA,EAAiB,YAAY,CAAA;AAAA,IACvC,CAAC,CAAA,EAAG,MAAM,CAAA,OAAA,CA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CAAC,CAAA,EAAG,MAAM,CAAA,SAAA,CAAA,EAAa,SAAS,CAAA;AAAA,IAChC,CAAC,CAAA,EAAG,MAAM,CAAA,KAAA,CAAA,EAAS,KAAK,CAAA;AAAA,IACxB,CAAC,CAAA,EAAG,MAAM,CAAA,MAAA,CAAA,EAAU,MAAM,CAAA;AAAA,IAC1B,CAAC,CAAA,EAAG,MAAM,CAAA,KAAA,CAAA,EAAS,KAAK,CAAA;AAAA,IACxB,CAAC,CAAA,EAAG,MAAM,CAAA,KAAA,CAAA,EAAS,KAAK;AAAA,GAC1B;AAEA,EAAA,KAAA,MAAW,CAAC,IAAA,EAAM,KAAK,CAAA,IAAK,UAAA,EAAY;AACtC,IAAA,IAAI,CAAC,eAAe,GAAA,CAAI,IAAI,KAAK,CAAC,OAAA,CAAQ,GAAA,CAAI,IAAI,CAAA,EAAG;AACnD,MAAA,cAAA,CAAe,MAAA,CAAO,MAAM,KAAK,CAAA;AACjC,MAAA,OAAA,CAAQ,IAAI,IAAI,CAAA;AAAA,IAClB;AAAA,EACF;AACF","file":"chunk-2FE7DEDS.js","sourcesContent":["import { UButton } from '../components/button.wc.js';\r\nimport { UInput } from '../components/input.wc.js';\r\nimport { UBox } from '../components/box.wc.js';\r\nimport { UList, UVirtualList } from '../components/list.wc.js';\r\nimport { UPortal } from '../components/portal.wc.js';\r\nimport { UText } from '../components/text.wc.js';\r\nimport { UStack, UHStack } from '../components/stack.wc.js';\r\nimport { UGrid } from '../components/grid.wc.js';\r\nimport { USlot } from '../components/slot.wc.js';\r\nimport { UPressable } from '../components/pressable.wc.js';\r\nimport { UFocusScope } from '../components/focus-scope.wc.js';\r\nimport { UDismissableLayer } from '../components/dismissable-layer.wc.js';\r\nimport { UOverlay } from '../components/overlay.wc.js';\r\nimport { UField } from '../components/field.wc.js';\r\nimport { UCheckbox } from '../components/checkbox.wc.js';\r\nimport { USelect } from '../components/select.wc.js';\r\nimport { ULink } from '../components/link.wc.js';\r\nimport { USpacer } from '../components/spacer.wc.js';\r\nimport { UContainer } from '../components/container.wc.js';\r\nimport { UHoverable } from '../components/hoverable.wc.js';\r\nimport { UFocusTrap } from '../components/focus-trap.wc.js';\r\nimport { UPopper } from '../components/popper.wc.js';\r\nimport { UDialogRoot } from '../components/dialog-root.wc.js';\r\nimport { UTooltipRoot } from '../components/tooltip-root.wc.js';\r\nimport { UTextarea } from '../components/textarea.wc.js';\r\nimport { URadioGroup, URadio } from '../components/radio-group.wc.js';\r\nimport { USwitch } from '../components/switch.wc.js';\r\nimport { ULabel } from '../components/label.wc.js';\r\nimport { UCollection } from '../components/collection.wc.js';\r\nimport { UTree } from '../components/tree.wc.js';\r\nimport { UTable } from '../components/table.wc.js';\r\nimport { URouterView } from '../components/router-view.wc.js';\r\nimport { UBreadcrumb } from '../components/breadcrumb.wc.js';\r\nimport { UTabs } from '../components/tabs.wc.js';\r\nimport { UVisuallyHidden } from '../components/visually-hidden.wc.js';\r\nimport { ULiveRegion } from '../components/live-region.wc.js';\r\nimport { UFocusManager } from '../components/focus-manager.wc.js';\r\nimport { UKeyboardNavigation } from '../components/keyboard-navigation.wc.js';\r\nimport { UPresence } from '../components/presence.wc.js';\r\nimport { UTransition } from '../components/transition.wc.js';\r\nimport { UAnimate } from '../components/animate.wc.js';\r\nimport { UModal } from '../components/modal.wc.js';\r\nimport { UDrawer } from '../components/drawer.wc.js';\r\nimport { UPopover } from '../components/popover.wc.js';\r\nimport { UDropdown } from '../components/dropdown.wc.js';\r\nimport { UAccordion, UAccordionItem } from '../components/accordion.wc.js';\r\nimport { UCombobox } from '../components/combobox.wc.js';\r\nimport { UCalendar } from '../components/calendar.wc.js';\r\nimport { UDataTable } from '../components/data-table.wc.js';\r\nimport { UCommandPalette } from '../components/command-palette.wc.js';\r\nimport { UToast } from '../components/toast.wc.js';\r\nimport { UContextMenu } from '../components/context-menu.wc.js';\r\nimport { USortable } from '../components/sortable.wc.js';\r\nimport { UForm } from '../components/form.wc.js';\r\nimport { UBadge } from '../components/badge.wc.js';\r\nimport { UCard } from '../components/card.wc.js';\r\nimport { UIcon } from '../icons/icon-element.js';\r\n\r\nconst DEFINED = new Set<string>();\r\n\r\nexport interface DefineOptions {\r\n prefix?: string;\r\n}\r\n\r\nexport function defineComponents(options: DefineOptions = {}): void {\r\n const prefix = options.prefix || 'u';\r\n\r\n const components: [string, CustomElementConstructor][] = [\r\n [`${prefix}-button`, UButton],\r\n [`${prefix}-input`, UInput],\r\n [`${prefix}-box`, UBox],\r\n [`${prefix}-list`, UList],\r\n [`${prefix}-virtual-list`, UVirtualList],\r\n [`${prefix}-portal`, UPortal],\r\n [`${prefix}-text`, UText],\r\n [`${prefix}-stack`, UStack],\r\n [`${prefix}-hstack`, UHStack],\r\n [`${prefix}-grid`, UGrid],\r\n [`${prefix}-slot`, USlot],\r\n [`${prefix}-pressable`, UPressable],\r\n [`${prefix}-focus-scope`, UFocusScope],\r\n [`${prefix}-dismissable-layer`, UDismissableLayer],\r\n [`${prefix}-overlay`, UOverlay],\r\n [`${prefix}-field`, UField],\r\n [`${prefix}-checkbox`, UCheckbox],\r\n [`${prefix}-select`, USelect],\r\n [`${prefix}-link`, ULink],\r\n [`${prefix}-spacer`, USpacer],\r\n [`${prefix}-container`, UContainer],\r\n [`${prefix}-hoverable`, UHoverable],\r\n [`${prefix}-focus-trap`, UFocusTrap],\r\n [`${prefix}-popper`, UPopper],\r\n [`${prefix}-dialog-root`, UDialogRoot],\r\n [`${prefix}-tooltip-root`, UTooltipRoot],\r\n [`${prefix}-textarea`, UTextarea],\r\n [`${prefix}-radio-group`, URadioGroup],\r\n [`${prefix}-radio`, URadio],\r\n [`${prefix}-switch`, USwitch],\r\n [`${prefix}-label`, ULabel],\r\n [`${prefix}-collection`, UCollection],\r\n [`${prefix}-tree`, UTree],\r\n [`${prefix}-table`, UTable],\r\n [`${prefix}-router-view`, URouterView],\r\n [`${prefix}-breadcrumb`, UBreadcrumb],\r\n [`${prefix}-tabs`, UTabs],\r\n [`${prefix}-visually-hidden`, UVisuallyHidden],\r\n [`${prefix}-live-region`, ULiveRegion],\r\n [`${prefix}-focus-manager`, UFocusManager],\r\n [`${prefix}-keyboard-navigation`, UKeyboardNavigation],\r\n [`${prefix}-presence`, UPresence],\r\n [`${prefix}-transition`, UTransition],\r\n [`${prefix}-animate`, UAnimate],\r\n [`${prefix}-modal`, UModal],\r\n [`${prefix}-drawer`, UDrawer],\r\n [`${prefix}-popover`, UPopover],\r\n [`${prefix}-dropdown`, UDropdown],\r\n [`${prefix}-accordion`, UAccordion],\r\n [`${prefix}-accordion-item`, UAccordionItem],\r\n [`${prefix}-combobox`, UCombobox],\r\n [`${prefix}-calendar`, UCalendar],\r\n [`${prefix}-data-table`, UDataTable],\r\n [`${prefix}-command-palette`, UCommandPalette],\r\n [`${prefix}-toast`, UToast],\r\n [`${prefix}-context-menu`, UContextMenu],\r\n [`${prefix}-sortable`, USortable],\r\n [`${prefix}-form`, UForm],\r\n [`${prefix}-badge`, UBadge],\r\n [`${prefix}-card`, UCard],\r\n [`${prefix}-icon`, UIcon],\r\n ];\r\n\r\n for (const [name, klass] of components) {\r\n if (!customElements.get(name) && !DEFINED.has(name)) {\r\n customElements.define(name, klass);\r\n DEFINED.add(name);\r\n }\r\n }\r\n}\r\n"]}
@@ -1,4 +1,4 @@
1
- import { UElement, iconStyles } from './chunk-6Y6GA2QS.js';
1
+ import { UElement, iconStyles } from './chunk-XN2J666Y.js';
2
2
 
3
3
  // src/icons/registry.ts
4
4
  var iconRegistry = {
@@ -4979,5 +4979,5 @@ var UIcon = class extends UElement {
4979
4979
  };
4980
4980
 
4981
4981
  export { UIcon, iconRegistry };
4982
- //# sourceMappingURL=chunk-Q4KFLERV.js.map
4983
- //# sourceMappingURL=chunk-Q4KFLERV.js.map
4982
+ //# sourceMappingURL=chunk-C4GTD5ZH.js.map
4983
+ //# sourceMappingURL=chunk-C4GTD5ZH.js.map