@avento-space/ts-ui 1.2.1 → 1.2.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@avento-space/ts-ui",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "Framework-agnostic Web Components UI library with signals. Drop-in UI for React, Vue, Angular — zero adapters needed.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -91,8 +91,8 @@
91
91
  "format:fix": "prettier --write \"src/**/*.ts\"",
92
92
  "typecheck": "tsc --noEmit",
93
93
  "clean": "rimraf dist",
94
- "dev": "npm run dev --prefix demo",
95
- "demo:build": "npm run build --prefix demo"
94
+ "dev": "pnpm --dir demo dev",
95
+ "demo:build": "pnpm --dir demo build"
96
96
  },
97
97
  "devDependencies": {
98
98
  "@types/react": "^19.2.17",
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/core/define.ts"],"names":[],"mappings":";;;;AAwDA,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,O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,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,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-DO3PEBDS.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 { 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}-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,3 +0,0 @@
1
-
2
- //# sourceMappingURL=chunk-MFONNOJU.js.map
3
- //# sourceMappingURL=chunk-MFONNOJU.js.map