@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 +1 -1
- package/dist/{card.wc-83Ws3o27.d.ts → card.wc-CLzyZAbJ.d.ts} +1 -1
- package/dist/{chunk-FPZL7HOP.js → chunk-2FE7DEDS.js} +4 -4
- package/dist/{chunk-FPZL7HOP.js.map → chunk-2FE7DEDS.js.map} +1 -1
- package/dist/{chunk-Q4KFLERV.js → chunk-C4GTD5ZH.js} +3 -3
- package/dist/{chunk-Q4KFLERV.js.map → chunk-C4GTD5ZH.js.map} +1 -1
- package/dist/{chunk-47AXL5HN.js → chunk-EDV6KYRZ.js} +3 -3
- package/dist/{chunk-47AXL5HN.js.map → chunk-EDV6KYRZ.js.map} +1 -1
- package/dist/{chunk-6Y6GA2QS.js → chunk-XN2J666Y.js} +26 -4
- package/dist/chunk-XN2J666Y.js.map +1 -0
- package/dist/components/index.d.ts +2 -10
- package/dist/components/index.js +2 -2
- package/dist/define.js +4 -4
- package/dist/icons/index.js +2 -2
- package/dist/index-DaqSE01_.d.ts +19 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +4 -4
- package/dist/react/index.d.ts +1 -1
- package/package.json +8 -14
- package/tailwind-theme.css +293 -0
- package/dist/chunk-6Y6GA2QS.js.map +0 -1
- package/dist/slot.wc-BvIJg5UJ.d.ts +0 -11
- package/tailwind-plugin.cjs +0 -236
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
|
|
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
|
|
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-
|
|
2
|
-
import { UIcon } from './chunk-
|
|
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-
|
|
81
|
-
//# sourceMappingURL=chunk-
|
|
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;AAA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A,WAAA,CAAA,EAAe,UAAU,CAAA;AAAA,IACnC,CAAC,CAAA,EAAG,MAAM,CAAA,gBAAA,CAAA,EAAoB,eAAe,CAAA;AAAA,IAC7C,CAAC,CAAA,EAAG,MAAM,CAAA,MAAA,CAAA,EAAU,MAAM,CAAA;AAAA,IAC1B,CAAC,CAAA,EAAG,MAAM,CAAA,aAAA,CAAA,EAAiB,YAAY,CAAA;AAAA,IACvC,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-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,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c,CAAA;AAAA,IAC3C,CAAC,CAAA,EAAG,MAAM,CAAA,SAAA,CAAA,EAAa,SAAS,CAAA;AAAA,IAChC,CAAC,CAAA,EAAG,MAAM,CAAA,SAAA,CAAA,EAAa,SAAS,CAAA;AAAA,IAChC,CAAC,CAAA,EAAG,MAAM,CAAA,WAAA,CAAA,EAAe,UAAU,CAAA;AAAA,IACnC,CAAC,CAAA,EAAG,MAAM,CAAA,gBAAA,CAAA,EAAoB,eAAe,CAAA;AAAA,IAC7C,CAAC,CAAA,EAAG,MAAM,CAAA,MAAA,CAAA,EAAU,MAAM,CAAA;AAAA,IAC1B,CAAC,CAAA,EAAG,MAAM,CAAA,aAAA,CAAA,EAAiB,YAAY,CAAA;AAAA,IACvC,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-
|
|
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-
|
|
4983
|
-
//# sourceMappingURL=chunk-
|
|
4982
|
+
//# sourceMappingURL=chunk-C4GTD5ZH.js.map
|
|
4983
|
+
//# sourceMappingURL=chunk-C4GTD5ZH.js.map
|