@avento-space/ts-ui 1.2.1 → 1.2.3
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 +123 -213
- package/dist/{form.wc-CwjVsdUu.d.ts → card.wc-CLzyZAbJ.d.ts} +110 -1
- package/dist/{chunk-PRZASPFU.js → chunk-2UKGVIH2.js} +616 -259
- package/dist/chunk-2UKGVIH2.js.map +1 -0
- package/dist/chunk-NJHLJNRI.js +4983 -0
- package/dist/chunk-NJHLJNRI.js.map +1 -0
- package/dist/{chunk-DO3PEBDS.js → chunk-NUMML2ZR.js} +6 -4
- package/dist/chunk-NUMML2ZR.js.map +1 -0
- package/dist/{chunk-NJAZMTMT.js → chunk-PIXJHFME.js} +618 -116
- package/dist/chunk-PIXJHFME.js.map +1 -0
- package/dist/chunk-T7QLIHHU.js +3 -0
- package/dist/{chunk-MFONNOJU.js.map → chunk-T7QLIHHU.js.map} +1 -1
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.js +3 -3
- package/dist/define.js +4 -4
- package/dist/icons/index.js +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -5
- package/dist/react/index.d.ts +7 -4
- package/dist/react/index.js +84 -11
- package/dist/react/index.js.map +1 -1
- package/package.json +9 -5
- package/dist/chunk-42QSY3LJ.js +0 -4855
- package/dist/chunk-42QSY3LJ.js.map +0 -1
- package/dist/chunk-DO3PEBDS.js.map +0 -1
- package/dist/chunk-MFONNOJU.js +0 -3
- package/dist/chunk-NJAZMTMT.js.map +0 -1
- package/dist/chunk-PRZASPFU.js.map +0 -1
|
@@ -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 } 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-PIXJHFME.js';
|
|
2
|
+
import { UIcon } from './chunk-NJHLJNRI.js';
|
|
3
3
|
|
|
4
4
|
// src/core/define.ts
|
|
5
5
|
var DEFINED = /* @__PURE__ */ new Set();
|
|
@@ -64,6 +64,8 @@ function defineComponents(options = {}) {
|
|
|
64
64
|
[`${prefix}-context-menu`, UContextMenu],
|
|
65
65
|
[`${prefix}-sortable`, USortable],
|
|
66
66
|
[`${prefix}-form`, UForm],
|
|
67
|
+
[`${prefix}-badge`, UBadge],
|
|
68
|
+
[`${prefix}-card`, UCard],
|
|
67
69
|
[`${prefix}-icon`, UIcon]
|
|
68
70
|
];
|
|
69
71
|
for (const [name, klass] of components) {
|
|
@@ -75,5 +77,5 @@ function defineComponents(options = {}) {
|
|
|
75
77
|
}
|
|
76
78
|
|
|
77
79
|
export { defineComponents };
|
|
78
|
-
//# sourceMappingURL=chunk-
|
|
79
|
-
//# sourceM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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-NUMML2ZR.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"]}
|