@avento-space/ts-ui 1.1.1 → 1.2.1

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.
Files changed (140) hide show
  1. package/dist/chunk-42QSY3LJ.js +4855 -0
  2. package/dist/chunk-42QSY3LJ.js.map +1 -0
  3. package/dist/chunk-7GJXOXOW.js +108 -0
  4. package/dist/chunk-7GJXOXOW.js.map +1 -0
  5. package/dist/chunk-DO3PEBDS.js +79 -0
  6. package/dist/chunk-DO3PEBDS.js.map +1 -0
  7. package/dist/chunk-MFONNOJU.js +3 -0
  8. package/dist/chunk-MFONNOJU.js.map +1 -0
  9. package/dist/chunk-NJAZMTMT.js +5645 -0
  10. package/dist/chunk-NJAZMTMT.js.map +1 -0
  11. package/dist/chunk-PRZASPFU.js +1730 -0
  12. package/dist/chunk-PRZASPFU.js.map +1 -0
  13. package/dist/chunk-Q5RCPPCF.js +406 -0
  14. package/dist/chunk-Q5RCPPCF.js.map +1 -0
  15. package/dist/chunk-RAWESWNC.js +3 -0
  16. package/dist/chunk-RAWESWNC.js.map +1 -0
  17. package/dist/chunk-U4WYCYL6.js +116 -0
  18. package/dist/chunk-U4WYCYL6.js.map +1 -0
  19. package/dist/components/index.d.ts +13 -11
  20. package/dist/components/index.js +5 -5
  21. package/dist/components/index.js.map +1 -1
  22. package/dist/define.d.ts +2 -2
  23. package/dist/define.js +8 -1
  24. package/dist/define.js.map +1 -1
  25. package/dist/{core/element.d.ts → element-DHtonJNX.d.ts} +3 -2
  26. package/dist/form.wc-CwjVsdUu.d.ts +1518 -0
  27. package/dist/icons/index.d.ts +33 -5
  28. package/dist/icons/index.js +5 -3
  29. package/dist/icons/index.js.map +1 -1
  30. package/dist/index.d.ts +35 -10
  31. package/dist/index.js +44 -9
  32. package/dist/index.js.map +1 -1
  33. package/dist/jsx-dev-runtime.d.ts +1 -2
  34. package/dist/jsx-dev-runtime.js +3 -1
  35. package/dist/jsx-dev-runtime.js.map +1 -1
  36. package/dist/jsx-runtime.d.ts +644 -7
  37. package/dist/jsx-runtime.js +3 -120
  38. package/dist/jsx-runtime.js.map +1 -1
  39. package/dist/plugins/index.d.ts +21 -3
  40. package/dist/plugins/index.js +85 -1
  41. package/dist/plugins/index.js.map +1 -1
  42. package/dist/react/index.d.ts +1260 -15
  43. package/dist/react/index.js +1428 -15
  44. package/dist/react/index.js.map +1 -1
  45. package/dist/{core/types.d.ts → types-DWglFa91.d.ts} +8 -7
  46. package/package.json +32 -8
  47. package/dist/components/box.wc.d.ts +0 -24
  48. package/dist/components/box.wc.d.ts.map +0 -1
  49. package/dist/components/box.wc.js +0 -52
  50. package/dist/components/box.wc.js.map +0 -1
  51. package/dist/components/button.wc.d.ts +0 -32
  52. package/dist/components/button.wc.d.ts.map +0 -1
  53. package/dist/components/button.wc.js +0 -91
  54. package/dist/components/button.wc.js.map +0 -1
  55. package/dist/components/index.d.ts.map +0 -1
  56. package/dist/components/input.wc.d.ts +0 -45
  57. package/dist/components/input.wc.d.ts.map +0 -1
  58. package/dist/components/input.wc.js +0 -130
  59. package/dist/components/input.wc.js.map +0 -1
  60. package/dist/components/list.wc.d.ts +0 -49
  61. package/dist/components/list.wc.d.ts.map +0 -1
  62. package/dist/components/list.wc.js +0 -120
  63. package/dist/components/list.wc.js.map +0 -1
  64. package/dist/components/portal.wc.d.ts +0 -18
  65. package/dist/components/portal.wc.d.ts.map +0 -1
  66. package/dist/components/portal.wc.js +0 -78
  67. package/dist/components/portal.wc.js.map +0 -1
  68. package/dist/components/styles.d.ts +0 -7
  69. package/dist/components/styles.d.ts.map +0 -1
  70. package/dist/components/styles.js +0 -134
  71. package/dist/components/styles.js.map +0 -1
  72. package/dist/core/define.d.ts +0 -5
  73. package/dist/core/define.d.ts.map +0 -1
  74. package/dist/core/define.js +0 -26
  75. package/dist/core/define.js.map +0 -1
  76. package/dist/core/element.d.ts.map +0 -1
  77. package/dist/core/element.js +0 -30
  78. package/dist/core/element.js.map +0 -1
  79. package/dist/core/index.d.ts +0 -7
  80. package/dist/core/index.d.ts.map +0 -1
  81. package/dist/core/index.js +0 -5
  82. package/dist/core/index.js.map +0 -1
  83. package/dist/core/plugin.d.ts +0 -17
  84. package/dist/core/plugin.d.ts.map +0 -1
  85. package/dist/core/plugin.js +0 -117
  86. package/dist/core/plugin.js.map +0 -1
  87. package/dist/core/reactive-context.d.ts +0 -12
  88. package/dist/core/reactive-context.d.ts.map +0 -1
  89. package/dist/core/reactive-context.js +0 -34
  90. package/dist/core/reactive-context.js.map +0 -1
  91. package/dist/core/scheduler.d.ts +0 -13
  92. package/dist/core/scheduler.d.ts.map +0 -1
  93. package/dist/core/scheduler.js +0 -80
  94. package/dist/core/scheduler.js.map +0 -1
  95. package/dist/core/signal.d.ts +0 -14
  96. package/dist/core/signal.d.ts.map +0 -1
  97. package/dist/core/signal.js +0 -391
  98. package/dist/core/signal.js.map +0 -1
  99. package/dist/core/store.d.ts +0 -6
  100. package/dist/core/store.d.ts.map +0 -1
  101. package/dist/core/store.js +0 -35
  102. package/dist/core/store.js.map +0 -1
  103. package/dist/core/types.d.ts.map +0 -1
  104. package/dist/core/types.js +0 -2
  105. package/dist/core/types.js.map +0 -1
  106. package/dist/define.d.ts.map +0 -1
  107. package/dist/icons/icon-element.d.ts +0 -25
  108. package/dist/icons/icon-element.d.ts.map +0 -1
  109. package/dist/icons/icon-element.js +0 -63
  110. package/dist/icons/icon-element.js.map +0 -1
  111. package/dist/icons/index.d.ts.map +0 -1
  112. package/dist/icons/registry.d.ts +0 -6
  113. package/dist/icons/registry.d.ts.map +0 -1
  114. package/dist/icons/registry.js +0 -4775
  115. package/dist/icons/registry.js.map +0 -1
  116. package/dist/index.d.ts.map +0 -1
  117. package/dist/jsx-dev-runtime.d.ts.map +0 -1
  118. package/dist/jsx-runtime.d.ts.map +0 -1
  119. package/dist/jsx-types.d.ts +0 -651
  120. package/dist/jsx-types.d.ts.map +0 -1
  121. package/dist/jsx-types.js +0 -3
  122. package/dist/jsx-types.js.map +0 -1
  123. package/dist/plugins/index.d.ts.map +0 -1
  124. package/dist/plugins/router.d.ts +0 -4
  125. package/dist/plugins/router.d.ts.map +0 -1
  126. package/dist/plugins/router.js +0 -90
  127. package/dist/plugins/router.js.map +0 -1
  128. package/dist/plugins/types.d.ts +0 -16
  129. package/dist/plugins/types.d.ts.map +0 -1
  130. package/dist/plugins/types.js +0 -2
  131. package/dist/plugins/types.js.map +0 -1
  132. package/dist/react/icon.d.ts +0 -8
  133. package/dist/react/icon.d.ts.map +0 -1
  134. package/dist/react/icon.js +0 -7
  135. package/dist/react/icon.js.map +0 -1
  136. package/dist/react/icons.d.ts +0 -1194
  137. package/dist/react/icons.d.ts.map +0 -1
  138. package/dist/react/icons.js +0 -1196
  139. package/dist/react/icons.js.map +0 -1
  140. package/dist/react/index.d.ts.map +0 -1
@@ -1,5 +1,33 @@
1
- export { UIcon } from './icon-element.js';
2
- export type { UIconProps } from './icon-element.js';
3
- export { iconRegistry } from './registry.js';
4
- export type { IconData } from './registry.js';
5
- //# sourceMappingURL=index.d.ts.map
1
+ import { U as UElement } from '../element-DHtonJNX.js';
2
+
3
+ interface UIconProps {
4
+ name?: string;
5
+ size?: number | string;
6
+ strokeWidth?: number | string;
7
+ class?: string;
8
+ }
9
+ declare class UIcon extends UElement {
10
+ static get observedAttributes(): string[];
11
+ private _name;
12
+ private _size;
13
+ private _strokeWidth;
14
+ constructor();
15
+ get name(): string;
16
+ set name(val: string);
17
+ get size(): number;
18
+ set size(val: number);
19
+ get strokeWidth(): number;
20
+ set strokeWidth(val: number);
21
+ connectedCallback(): void;
22
+ attributeChangedCallback(name: string, oldVal: string | null, newVal: string | null): void;
23
+ private _update;
24
+ _mount(): void;
25
+ }
26
+
27
+ interface IconData {
28
+ innerHTML: string;
29
+ viewBox: string;
30
+ }
31
+ declare const iconRegistry: Record<string, IconData>;
32
+
33
+ export { type IconData, UIcon, type UIconProps, iconRegistry };
@@ -1,4 +1,6 @@
1
- // Auto-generated by scripts/build-icons.mjs — do not edit manually
2
- export { UIcon } from './icon-element.js';
3
- export { iconRegistry } from './registry.js';
1
+ import '../chunk-RAWESWNC.js';
2
+ export { UIcon, iconRegistry } from '../chunk-42QSY3LJ.js';
3
+ import '../chunk-PRZASPFU.js';
4
+ import '../chunk-Q5RCPPCF.js';
5
+ //# sourceMappingURL=index.js.map
4
6
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/icons/index.ts"],"names":[],"mappings":"AAAA,mEAAmE;AACnE,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE1C,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
package/dist/index.d.ts CHANGED
@@ -1,10 +1,35 @@
1
- export { signal, computed, effect, isSignal, untrack, hydrateSignals, batch, scheduleMicrotask, isBatching, createStore, createSliceStore, registerPlugin, unregisterPlugin, getPlugin, hasPlugin, runPluginHook, } from './core/index.js';
2
- export type { Signal, WritableSignal, ReadonlySignal, Store, Plugin, PluginAPI, } from './core/index.js';
3
- export { UButton, UInput, UBox, UList, UVirtualList, UPortal } from './components/index.js';
4
- export { createControlledInput, setPortalRoot } from './components/index.js';
5
- export type { ButtonProps, InputProps, BoxProps, BoxAs, ListProps, VirtualListProps, PortalProps } from './components/index.js';
6
- export { UIcon, iconRegistry } from './icons/index.js';
7
- export type { UIconProps, IconData } from './icons/index.js';
8
- export { defineComponents } from './core/define.js';
9
- export type { DefineOptions } from './core/define.js';
10
- //# sourceMappingURL=index.d.ts.map
1
+ import { R as ReadonlySignal, S as Signal, W as WritableSignal, a as Store, P as Plugin } from './types-DWglFa91.js';
2
+ export { b as PluginAPI } from './types-DWglFa91.js';
3
+ export { a0 as AccordionItemProps, A as AccordionProps, a1 as AnimatePreset, a as AnimateProps, a2 as BoxAs, B as BoxProps, a3 as BreadcrumbItem, b as BreadcrumbProps, c as ButtonProps, C as CalendarProps, d as CheckboxProps, e as CollectionProps, a4 as CollectionSelection, a5 as ComboboxOption, f as ComboboxProps, a6 as CommandItem, g as CommandPaletteProps, h as ContainerProps, a7 as ContextMenuItem, i as ContextMenuProps, a8 as DataTableColumn, D as DataTableProps, j as DialogRootProps, k as DismissableLayerProps, l as DrawerProps, a9 as DrawerSide, aa as DropdownItem, m as DropdownProps, F as FieldProps, n as FocusManagerProps, o as FocusScopeProps, p as FocusTrapProps, q as FormProps, G as GridProps, H as HoverableProps, I as InputProps, K as KeyboardNavigationProps, L as LabelProps, r as LinkProps, s as ListProps, ab as LiveRegionPoliteness, t as LiveRegionProps, M as ModalProps, O as OverlayProps, P as PopoverProps, ac as PopperPlacement, u as PopperProps, v as PortalProps, ad as PresenceAnimation, w as PresenceProps, x as PressableProps, R as RadioGroupProps, ae as RadioProps, y as RouterViewProps, af as SelectOption, z as SelectProps, E as SortableProps, J as SpacerProps, S as StackProps, N as SwitchProps, ag as TableColumn, T as TableProps, Q as TabsProps, ah as TextColor, U as TextProps, ai as TextSize, aj as TextWeight, V as TextareaProps, ak as ToastOptions, W as ToastProps, X as TooltipRootProps, Y as TransitionProps, al as TransitionType, am as TreeNodeData, Z as TreeProps, an as UAccordion, ao as UAccordionItem, ap as UAnimate, aq as UBox, ar as UBreadcrumb, as as UButton, at as UCalendar, au as UCheckbox, av as UCollection, aw as UCombobox, ax as UCommandPalette, ay as UContainer, az as UContextMenu, aA as UDataTable, aB as UDialogRoot, aC as UDismissableLayer, aD as UDrawer, aE as UDropdown, aF as UField, aG as UFocusManager, aH as UFocusScope, aI as UFocusTrap, aJ as UForm, aK as UGrid, aL as UHStack, aM as UHoverable, aN as UInput, aO as UKeyboardNavigation, aP as ULabel, aQ as ULink, aR as UList, aS as ULiveRegion, aT as UModal, aU as UOverlay, aV as UPopover, aW as UPopper, aX as UPortal, aY as UPresence, aZ as UPressable, a_ as URadio, a$ as URadioGroup, b0 as URouterView, b1 as USelect, b2 as USortable, b3 as USpacer, b4 as UStack, b5 as USwitch, b6 as UTable, b7 as UTabs, b8 as UText, b9 as UTextarea, ba as UToast, bb as UTooltipRoot, bc as UTransition, bd as UTree, be as UVirtualList, bf as UVisuallyHidden, _ as VirtualListProps, $ as VisuallyHiddenProps, bg as createControlledInput, bh as setPortalRoot } from './form.wc-CwjVsdUu.js';
4
+ export { SlotProps, USlot } from './components/index.js';
5
+ export { IconData, UIcon, UIconProps, iconRegistry } from './icons/index.js';
6
+ import './element-DHtonJNX.js';
7
+
8
+ declare function batch(fn: () => void): void;
9
+ declare function isBatching(): boolean;
10
+ declare function scheduleMicrotask(fn: () => void): void;
11
+
12
+ declare function hydrateSignals(data?: Record<string, any>): void;
13
+ declare function signal<T>(initial: T): WritableSignal<T>;
14
+ declare function computed<T>(fn: () => T): ReadonlySignal<T>;
15
+ declare function effect(fn: () => (() => void) | void): () => void;
16
+ declare function isSignal(value: unknown): value is Signal<any>;
17
+ declare function untrack<T>(fn: () => T): T;
18
+
19
+ declare function createStore<T extends Record<string, any>>(initial: T): Store<T>;
20
+ declare function createSliceStore<T extends Record<string, any>>(initial: T, name?: string): Store<T> & {
21
+ name?: string;
22
+ };
23
+
24
+ declare function registerPlugin(plugin: Plugin): void;
25
+ declare function unregisterPlugin(name: string): boolean;
26
+ declare function getPlugin(name: string): Plugin | undefined;
27
+ declare function hasPlugin(name: string): boolean;
28
+ declare function runPluginHook(name: string, ...args: any[]): void;
29
+
30
+ interface DefineOptions {
31
+ prefix?: string;
32
+ }
33
+ declare function defineComponents(options?: DefineOptions): void;
34
+
35
+ export { type DefineOptions, Plugin, ReadonlySignal, Signal, Store, WritableSignal, batch, computed, createSliceStore, createStore, defineComponents, effect, getPlugin, hasPlugin, hydrateSignals, isBatching, isSignal, registerPlugin, runPluginHook, scheduleMicrotask, signal, unregisterPlugin, untrack };
package/dist/index.js CHANGED
@@ -1,10 +1,45 @@
1
- // Core
2
- export { signal, computed, effect, isSignal, untrack, hydrateSignals, batch, scheduleMicrotask, isBatching, createStore, createSliceStore, registerPlugin, unregisterPlugin, getPlugin, hasPlugin, runPluginHook, } from './core/index.js';
3
- // Components (Web Components)
4
- export { UButton, UInput, UBox, UList, UVirtualList, UPortal } from './components/index.js';
5
- export { createControlledInput, setPortalRoot } from './components/index.js';
6
- // Icons
7
- export { UIcon, iconRegistry } from './icons/index.js';
8
- // Define / Registration
9
- export { defineComponents } from './core/define.js';
1
+ export { defineComponents } from './chunk-DO3PEBDS.js';
2
+ import './chunk-MFONNOJU.js';
3
+ export { UAccordion, UAccordionItem, UAnimate, UBox, UBreadcrumb, UButton, UCalendar, UCheckbox, UCollection, UCombobox, UCommandPalette, UContainer, UContextMenu, UDataTable, UDialogRoot, UDismissableLayer, UDrawer, UDropdown, UField, UFocusManager, UFocusScope, UFocusTrap, UForm, UGrid, UHStack, UHoverable, UInput, UKeyboardNavigation, ULabel, ULink, UList, ULiveRegion, UModal, UOverlay, UPopover, UPopper, UPortal, UPresence, UPressable, URadio, URadioGroup, URouterView, USelect, USlot, USortable, USpacer, UStack, USwitch, UTable, UTabs, UText, UTextarea, UToast, UTooltipRoot, UTransition, UTree, UVirtualList, UVisuallyHidden, createControlledInput, setPortalRoot } from './chunk-NJAZMTMT.js';
4
+ import './chunk-RAWESWNC.js';
5
+ export { UIcon, iconRegistry } from './chunk-42QSY3LJ.js';
6
+ import './chunk-PRZASPFU.js';
7
+ export { getPlugin, hasPlugin, registerPlugin, runPluginHook, unregisterPlugin } from './chunk-U4WYCYL6.js';
8
+ import { signal, batch, destroySignal } from './chunk-Q5RCPPCF.js';
9
+ export { batch, computed, effect, hydrateSignals, isBatching, isSignal, scheduleMicrotask, signal, untrack } from './chunk-Q5RCPPCF.js';
10
+
11
+ // src/core/store.ts
12
+ function createStore(initial) {
13
+ const stateSignal = signal({ ...initial });
14
+ let destroyed = false;
15
+ const getState = () => {
16
+ return stateSignal.get();
17
+ };
18
+ const setState = (partial) => {
19
+ if (destroyed) return;
20
+ batch(() => {
21
+ const updates = typeof partial === "function" ? partial(stateSignal.peek()) : partial;
22
+ const current = stateSignal.peek();
23
+ const next = { ...current, ...updates };
24
+ stateSignal.set(next);
25
+ });
26
+ };
27
+ const subscribe = (fn) => {
28
+ if (destroyed) return () => {
29
+ };
30
+ return stateSignal.subscribe(fn);
31
+ };
32
+ const destroy = () => {
33
+ if (destroyed) return;
34
+ destroyed = true;
35
+ destroySignal(stateSignal);
36
+ };
37
+ return { getState, setState, subscribe, destroy };
38
+ }
39
+ function createSliceStore(initial, name) {
40
+ return { ...createStore(initial), name };
41
+ }
42
+
43
+ export { createSliceStore, createStore };
44
+ //# sourceMappingURL=index.js.map
10
45
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO;AACP,OAAO,EACL,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,cAAc,EAC3D,KAAK,EAAE,iBAAiB,EAAE,UAAU,EACpC,WAAW,EAAE,gBAAgB,EAC7B,cAAc,EAAE,gBAAgB,EAAE,SAAS,EAAE,SAAS,EAAE,aAAa,GACtE,MAAM,iBAAiB,CAAC;AAMzB,8BAA8B;AAC9B,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAC5F,OAAO,EAAE,qBAAqB,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAG7E,QAAQ;AACR,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAGvD,wBAAwB;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC"}
1
+ {"version":3,"sources":["../src/core/store.ts"],"names":[],"mappings":";;;;;;;;;;;AAIO,SAAS,YAA2C,OAAA,EAAsB;AAC/E,EAAA,MAAM,WAAA,GAAc,MAAA,CAAU,EAAE,GAAG,SAAc,CAAA;AACjD,EAAA,IAAI,SAAA,GAAY,KAAA;AAEhB,EAAA,MAAM,WAAW,MAAmB;AAClC,IAAA,OAAO,YAAY,GAAA,EAAI;AAAA,EACzB,CAAA;AAEA,EAAA,MAAM,QAAA,GAAW,CAAC,OAAA,KAA0D;AAC1E,IAAA,IAAI,SAAA,EAAW;AACf,IAAA,KAAA,CAAM,MAAM;AACV,MAAA,MAAM,OAAA,GAAU,OAAO,OAAA,KAAY,UAAA,GAAa,QAAQ,WAAA,CAAY,IAAA,EAAM,CAAA,GAAI,OAAA;AAC9E,MAAA,MAAM,OAAA,GAAU,YAAY,IAAA,EAAK;AACjC,MAAA,MAAM,IAAA,GAAO,EAAE,GAAG,OAAA,EAAS,GAAG,OAAA,EAAQ;AACtC,MAAA,WAAA,CAAY,IAAI,IAAI,CAAA;AAAA,IACtB,CAAC,CAAA;AAAA,EACH,CAAA;AAEA,EAAA,MAAM,SAAA,GAAY,CAAC,EAAA,KAAiC;AAClD,IAAA,IAAI,SAAA,SAAkB,MAAM;AAAA,IAAC,CAAA;AAC7B,IAAA,OAAO,WAAA,CAAY,UAAU,EAAE,CAAA;AAAA,EACjC,CAAA;AAEA,EAAA,MAAM,UAAU,MAAY;AAC1B,IAAA,IAAI,SAAA,EAAW;AACf,IAAA,SAAA,GAAY,IAAA;AACZ,IAAA,aAAA,CAAc,WAAW,CAAA;AAAA,EAC3B,CAAA;AAEA,EAAA,OAAO,EAAE,QAAA,EAAU,QAAA,EAAU,SAAA,EAAW,OAAA,EAAQ;AAClD;AAEO,SAAS,gBAAA,CACd,SACA,IAAA,EAC8B;AAC9B,EAAA,OAAO,EAAE,GAAG,WAAA,CAAY,OAAO,GAAG,IAAA,EAAK;AACzC","file":"index.js","sourcesContent":["import type { Store } from './types.js';\r\nimport { signal, effect, destroySignal } from './signal.js';\r\nimport { batch } from './scheduler.js';\r\n\r\nexport function createStore<T extends Record<string, any>>(initial: T): Store<T> {\r\n const stateSignal = signal<T>({ ...initial } as T);\r\n let destroyed = false;\r\n\r\n const getState = (): Readonly<T> => {\r\n return stateSignal.get();\r\n };\r\n\r\n const setState = (partial: Partial<T> | ((prev: T) => Partial<T>)): void => {\r\n if (destroyed) return;\r\n batch(() => {\r\n const updates = typeof partial === 'function' ? partial(stateSignal.peek()) : partial;\r\n const current = stateSignal.peek();\r\n const next = { ...current, ...updates };\r\n stateSignal.set(next);\r\n });\r\n };\r\n\r\n const subscribe = (fn: () => void): (() => void) => {\r\n if (destroyed) return () => {};\r\n return stateSignal.subscribe(fn);\r\n };\r\n\r\n const destroy = (): void => {\r\n if (destroyed) return;\r\n destroyed = true;\r\n destroySignal(stateSignal);\r\n };\r\n\r\n return { getState, setState, subscribe, destroy };\r\n}\r\n\r\nexport function createSliceStore<T extends Record<string, any>>(\r\n initial: T,\r\n name?: string,\r\n): Store<T> & { name?: string } {\r\n return { ...createStore(initial), name };\r\n}\r\n"]}
@@ -1,2 +1 @@
1
- export { jsxDEV, Fragment } from './jsx-runtime.js';
2
- //# sourceMappingURL=jsx-dev-runtime.d.ts.map
1
+ export { Fragment, jsxDEV } from './jsx-runtime.js';
@@ -1,2 +1,4 @@
1
- export { jsxDEV, Fragment } from './jsx-runtime.js';
1
+ export { Fragment, jsxDEV } from './chunk-7GJXOXOW.js';
2
+ import './chunk-Q5RCPPCF.js';
3
+ //# sourceMappingURL=jsx-dev-runtime.js.map
2
4
  //# sourceMappingURL=jsx-dev-runtime.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"jsx-dev-runtime.js","sourceRoot":"","sources":["../src/jsx-dev-runtime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"jsx-dev-runtime.js"}