@soybeanjs/headless 0.8.1 → 0.9.0

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 (72) hide show
  1. package/dist/components/alert-dialog/alert-dialog-content.vue.d.ts +2 -2
  2. package/dist/components/checkbox/checkbox-root.vue.d.ts +1 -1
  3. package/dist/components/collapsible/collapsible-root.vue.d.ts +1 -1
  4. package/dist/components/context-menu/context-menu-content.vue.d.ts +4 -4
  5. package/dist/components/dialog/dialog-content.vue.d.ts +2 -2
  6. package/dist/components/dropdown-menu/dropdown-menu-content.vue.d.ts +4 -4
  7. package/dist/components/dropdown-menu/dropdown-menu-root.vue.d.ts +1 -1
  8. package/dist/components/input-number/context.d.ts +9 -0
  9. package/dist/components/{number-input → input-number}/context.js +1 -1
  10. package/dist/components/input-number/index.d.ts +7 -0
  11. package/dist/components/input-number/index.js +1 -0
  12. package/dist/components/{number-input/number-input-control.js → input-number/input-number-control.js} +1 -1
  13. package/dist/components/input-number/input-number-control.vue.d.ts +8 -0
  14. package/dist/components/{number-input/number-input-decrement.js → input-number/input-number-decrement.js} +1 -1
  15. package/dist/components/{number-input/number-input-decrement.vue.d.ts → input-number/input-number-decrement.vue.d.ts} +3 -3
  16. package/dist/components/{number-input/number-input-increment.js → input-number/input-number-increment.js} +1 -1
  17. package/dist/components/{number-input/number-input-increment.vue.d.ts → input-number/input-number-increment.vue.d.ts} +3 -3
  18. package/dist/components/{number-input/number-input-root.js → input-number/input-number-root.js} +1 -1
  19. package/dist/components/{number-input/number-input-root.vue.d.ts → input-number/input-number-root.vue.d.ts} +4 -4
  20. package/dist/components/{number-input → input-number}/types.d.ts +9 -9
  21. package/dist/components/link/link.vue.d.ts +2 -2
  22. package/dist/components/listbox/listbox-root.vue.d.ts +2 -2
  23. package/dist/components/menu/menu-content.vue.d.ts +4 -4
  24. package/dist/components/menu/menu-sub-content.vue.d.ts +4 -4
  25. package/dist/components/navigation-menu/navigation-menu-root.vue.d.ts +2 -2
  26. package/dist/components/popover/popover-positioner.vue.d.ts +2 -2
  27. package/dist/components/popper/popper-positioner.vue.d.ts +101 -101
  28. package/dist/components/select/select-content.vue.d.ts +2 -2
  29. package/dist/components/select/select-root.vue.d.ts +2 -2
  30. package/dist/components/table/context.d.ts +9 -0
  31. package/dist/components/table/context.js +1 -0
  32. package/dist/components/table/index.d.ts +11 -0
  33. package/dist/components/table/index.js +1 -0
  34. package/dist/components/table/table-body.js +1 -0
  35. package/dist/components/table/table-body.vue.d.ts +18 -0
  36. package/dist/components/table/table-cell.js +1 -0
  37. package/dist/components/table/table-cell.vue.d.ts +18 -0
  38. package/dist/components/table/table-content.js +1 -0
  39. package/dist/components/table/table-content.vue.d.ts +18 -0
  40. package/dist/components/table/table-footer.js +1 -0
  41. package/dist/components/table/table-footer.vue.d.ts +18 -0
  42. package/dist/components/table/table-head.js +1 -0
  43. package/dist/components/table/table-head.vue.d.ts +18 -0
  44. package/dist/components/table/table-header.js +1 -0
  45. package/dist/components/table/table-header.vue.d.ts +18 -0
  46. package/dist/components/table/table-root.js +1 -0
  47. package/dist/components/table/table-root.vue.d.ts +18 -0
  48. package/dist/components/table/table-row.js +1 -0
  49. package/dist/components/table/table-row.vue.d.ts +18 -0
  50. package/dist/components/table/types.d.ts +17 -0
  51. package/dist/components/tabs/tabs-root.vue.d.ts +2 -2
  52. package/dist/components/tabs/tabs-trigger.vue.d.ts +1 -1
  53. package/dist/components/toast/toast-root.vue.d.ts +4 -4
  54. package/dist/components/virtualizer/types.d.ts +1 -1
  55. package/dist/components/virtualizer/virtualizer-content.js +1 -1
  56. package/dist/components/virtualizer/virtualizer-content.vue.d.ts +3 -3
  57. package/dist/components/virtualizer/virtualizer-item.js +1 -1
  58. package/dist/composables/use-dismissable-layer.d.ts +1 -1
  59. package/dist/composables/use-selection.d.ts +5 -1
  60. package/dist/composables/use-selection.js +1 -1
  61. package/dist/constants/components.d.ts +1 -1
  62. package/dist/constants/components.js +1 -1
  63. package/dist/index.d.ts +94 -83
  64. package/dist/index.js +1 -1
  65. package/dist/namespaced/index.d.ts +73 -73
  66. package/dist/namespaced/index.js +1 -1
  67. package/package.json +9 -9
  68. package/dist/components/number-input/context.d.ts +0 -9
  69. package/dist/components/number-input/index.d.ts +0 -7
  70. package/dist/components/number-input/index.js +0 -1
  71. package/dist/components/number-input/number-input-control.vue.d.ts +0 -8
  72. /package/dist/components/{number-input → input-number}/shared.js +0 -0
@@ -16,59 +16,39 @@ declare const __VLS_base: vue.DefineComponent<PopperPositionerProps, {}, {}, {},
16
16
  }, string, vue.PublicProps, Readonly<PopperPositionerProps> & Readonly<{
17
17
  onPlaced?: (() => any) | undefined;
18
18
  }>, {
19
- style: string | false | CSSProperties | vue.StyleValue[] | null;
20
- title: string;
21
- contextmenu: string;
22
- onInput: (payload: InputEvent) => void;
23
- onSelect: (payload: Event) => void;
24
- onError: (payload: Event) => void;
25
- onFocus: (payload: FocusEvent) => void;
26
- onProgress: (payload: ProgressEvent<EventTarget>) => void;
27
- onFullscreenchange: (payload: Event) => void;
28
- onFullscreenerror: (payload: Event) => void;
29
- onAbort: (payload: UIEvent) => void;
30
- onAnimationcancel: (payload: AnimationEvent) => void;
31
- onAnimationend: (payload: AnimationEvent) => void;
32
- onAnimationiteration: (payload: AnimationEvent) => void;
33
- onAnimationstart: (payload: AnimationEvent) => void;
34
- onAuxclick: (payload: PointerEvent) => void;
35
- onBeforeinput: (payload: InputEvent) => void;
36
- onBeforetoggle: (payload: ToggleEvent) => void;
37
- onBlur: (payload: FocusEvent) => void;
38
- onCanplay: (payload: Event) => void;
39
- onCanplaythrough: (payload: Event) => void;
40
- onChange: (payload: Event) => void;
41
- onClick: (payload: PointerEvent) => void;
19
+ onCopy: (payload: ClipboardEvent) => void;
20
+ onCut: (payload: ClipboardEvent) => void;
21
+ onPaste: (payload: ClipboardEvent) => void;
42
22
  onCompositionend: (payload: CompositionEvent) => void;
43
23
  onCompositionstart: (payload: CompositionEvent) => void;
44
24
  onCompositionupdate: (payload: CompositionEvent) => void;
45
- onContextmenu: (payload: PointerEvent) => void;
46
- onCopy: (payload: ClipboardEvent) => void;
47
- onCut: (payload: ClipboardEvent) => void;
48
- onDblclick: (payload: MouseEvent) => void;
49
25
  onDrag: (payload: DragEvent) => void;
50
26
  onDragend: (payload: DragEvent) => void;
51
27
  onDragenter: (payload: DragEvent) => void;
28
+ onDragexit: (payload: DragEvent) => void;
52
29
  onDragleave: (payload: DragEvent) => void;
53
30
  onDragover: (payload: DragEvent) => void;
54
31
  onDragstart: (payload: DragEvent) => void;
55
32
  onDrop: (payload: DragEvent) => void;
56
- onDurationchange: (payload: Event) => void;
57
- onEmptied: (payload: Event) => void;
58
- onEnded: (payload: Event) => void;
33
+ onFocus: (payload: FocusEvent) => void;
59
34
  onFocusin: (payload: FocusEvent) => void;
60
35
  onFocusout: (payload: FocusEvent) => void;
36
+ onBlur: (payload: FocusEvent) => void;
37
+ onChange: (payload: Event) => void;
38
+ onBeforeinput: (payload: InputEvent) => void;
61
39
  onFormdata: (payload: FormDataEvent) => void;
62
- onGotpointercapture: (payload: PointerEvent) => void;
40
+ onInput: (payload: InputEvent) => void;
41
+ onReset: (payload: Event) => void;
42
+ onSubmit: (payload: SubmitEvent) => void;
63
43
  onInvalid: (payload: Event) => void;
44
+ onFullscreenchange: (payload: Event) => void;
45
+ onFullscreenerror: (payload: Event) => void;
46
+ onLoad: (payload: Event) => void;
47
+ onError: (payload: Event) => void;
64
48
  onKeydown: (payload: KeyboardEvent) => void;
65
49
  onKeypress: (payload: KeyboardEvent) => void;
66
50
  onKeyup: (payload: KeyboardEvent) => void;
67
- onLoad: (payload: Event) => void;
68
- onLoadeddata: (payload: Event) => void;
69
- onLoadedmetadata: (payload: Event) => void;
70
- onLoadstart: (payload: Event) => void;
71
- onLostpointercapture: (payload: PointerEvent) => void;
51
+ onDblclick: (payload: MouseEvent) => void;
72
52
  onMousedown: (payload: MouseEvent) => void;
73
53
  onMouseenter: (payload: MouseEvent) => void;
74
54
  onMouseleave: (payload: MouseEvent) => void;
@@ -76,50 +56,105 @@ declare const __VLS_base: vue.DefineComponent<PopperPositionerProps, {}, {}, {},
76
56
  onMouseout: (payload: MouseEvent) => void;
77
57
  onMouseover: (payload: MouseEvent) => void;
78
58
  onMouseup: (payload: MouseEvent) => void;
79
- onPaste: (payload: ClipboardEvent) => void;
59
+ onAbort: (payload: UIEvent) => void;
60
+ onCanplay: (payload: Event) => void;
61
+ onCanplaythrough: (payload: Event) => void;
62
+ onDurationchange: (payload: Event) => void;
63
+ onEmptied: (payload: Event) => void;
64
+ onEncrypted: (payload: MediaEncryptedEvent) => void;
65
+ onEnded: (payload: Event) => void;
66
+ onLoadeddata: (payload: Event) => void;
67
+ onLoadedmetadata: (payload: Event) => void;
68
+ onLoadstart: (payload: Event) => void;
80
69
  onPause: (payload: Event) => void;
81
70
  onPlay: (payload: Event) => void;
82
71
  onPlaying: (payload: Event) => void;
83
- onPointercancel: (payload: PointerEvent) => void;
84
- onPointerdown: (payload: PointerEvent) => void;
85
- onPointerenter: (payload: PointerEvent) => void;
86
- onPointerleave: (payload: PointerEvent) => void;
87
- onPointermove: (payload: PointerEvent) => void;
88
- onPointerout: (payload: PointerEvent) => void;
89
- onPointerover: (payload: PointerEvent) => void;
90
- onPointerup: (payload: PointerEvent) => void;
72
+ onProgress: (payload: ProgressEvent<EventTarget>) => void;
91
73
  onRatechange: (payload: Event) => void;
92
- onReset: (payload: Event) => void;
93
- onScroll: (payload: Event) => void;
94
- onScrollend: (payload: Event) => void;
95
- onSecuritypolicyviolation: (payload: SecurityPolicyViolationEvent) => void;
96
74
  onSeeked: (payload: Event) => void;
97
75
  onSeeking: (payload: Event) => void;
98
76
  onStalled: (payload: Event) => void;
99
- onSubmit: (payload: SubmitEvent) => void;
100
77
  onSuspend: (payload: Event) => void;
101
78
  onTimeupdate: (payload: Event) => void;
102
- onToggle: (payload: ToggleEvent) => void;
79
+ onVolumechange: (payload: Event) => void;
80
+ onWaiting: (payload: Event) => void;
81
+ onSelect: (payload: Event) => void;
82
+ onScroll: (payload: Event) => void;
83
+ onScrollend: (payload: Event) => void;
103
84
  onTouchcancel: (payload: TouchEvent) => void;
104
85
  onTouchend: (payload: TouchEvent) => void;
105
86
  onTouchmove: (payload: TouchEvent) => void;
106
87
  onTouchstart: (payload: TouchEvent) => void;
88
+ onAuxclick: (payload: PointerEvent) => void;
89
+ onClick: (payload: PointerEvent) => void;
90
+ onContextmenu: (payload: PointerEvent) => void;
91
+ onGotpointercapture: (payload: PointerEvent) => void;
92
+ onLostpointercapture: (payload: PointerEvent) => void;
93
+ onPointerdown: (payload: PointerEvent) => void;
94
+ onPointermove: (payload: PointerEvent) => void;
95
+ onPointerup: (payload: PointerEvent) => void;
96
+ onPointercancel: (payload: PointerEvent) => void;
97
+ onPointerenter: (payload: PointerEvent) => void;
98
+ onPointerleave: (payload: PointerEvent) => void;
99
+ onPointerover: (payload: PointerEvent) => void;
100
+ onPointerout: (payload: PointerEvent) => void;
101
+ onBeforetoggle: (payload: ToggleEvent) => void;
102
+ onToggle: (payload: ToggleEvent) => void;
103
+ onWheel: (payload: WheelEvent) => void;
104
+ onAnimationcancel: (payload: AnimationEvent) => void;
105
+ onAnimationstart: (payload: AnimationEvent) => void;
106
+ onAnimationend: (payload: AnimationEvent) => void;
107
+ onAnimationiteration: (payload: AnimationEvent) => void;
108
+ onSecuritypolicyviolation: (payload: SecurityPolicyViolationEvent) => void;
107
109
  onTransitioncancel: (payload: TransitionEvent) => void;
108
110
  onTransitionend: (payload: TransitionEvent) => void;
109
111
  onTransitionrun: (payload: TransitionEvent) => void;
110
112
  onTransitionstart: (payload: TransitionEvent) => void;
111
- onVolumechange: (payload: Event) => void;
112
- onWaiting: (payload: Event) => void;
113
- onWheel: (payload: WheelEvent) => void;
114
- onDragexit: (payload: DragEvent) => void;
115
- onEncrypted: (payload: MediaEncryptedEvent) => void;
116
113
  innerHTML: string;
117
- class: any;
118
- color: string;
114
+ class: string | false | Record<string, any> | vue.ClassValue[] | null;
115
+ style: string | false | CSSProperties | vue.StyleValue[] | null;
116
+ accesskey: string;
117
+ contenteditable: (boolean | "true" | "false") | "inherit" | "plaintext-only";
118
+ contextmenu: string;
119
+ dir: string;
120
+ draggable: boolean | "true" | "false";
121
+ enterkeyhint: "done" | "next" | "enter" | "go" | "previous" | "search" | "send";
122
+ enterKeyHint: "done" | "next" | "enter" | "go" | "previous" | "search" | "send";
123
+ hidden: "" | "hidden" | (boolean | "true" | "false") | "until-found";
119
124
  id: string;
125
+ inert: boolean | "true" | "false";
120
126
  lang: string;
121
- role: string;
127
+ placeholder: string;
128
+ spellcheck: boolean | "true" | "false";
122
129
  tabindex: string | number;
130
+ title: string;
131
+ translate: "yes" | "no";
132
+ radiogroup: string;
133
+ role: string;
134
+ about: string;
135
+ datatype: string;
136
+ inlist: any;
137
+ prefix: string;
138
+ property: string;
139
+ resource: string;
140
+ typeof: string;
141
+ vocab: string;
142
+ autocapitalize: string;
143
+ autocorrect: string;
144
+ autosave: string;
145
+ color: string;
146
+ itemprop: string;
147
+ itemscope: boolean | "true" | "false";
148
+ itemtype: string;
149
+ itemid: string;
150
+ itemref: string;
151
+ results: string | number;
152
+ security: string;
153
+ unselectable: "on" | "off";
154
+ inputmode: "search" | "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal";
155
+ is: string;
156
+ exportparts: string;
157
+ part: string;
123
158
  'aria-activedescendant': string;
124
159
  'aria-atomic': boolean | "true" | "false";
125
160
  'aria-autocomplete': "list" | "none" | "inline" | "both";
@@ -129,7 +164,7 @@ declare const __VLS_base: vue.DefineComponent<PopperPositionerProps, {}, {}, {},
129
164
  'aria-colindex': string | number;
130
165
  'aria-colspan': string | number;
131
166
  'aria-controls': string;
132
- 'aria-current': "time" | (boolean | "true" | "false") | "page" | "step" | "location" | "date";
167
+ 'aria-current': (boolean | "true" | "false") | "page" | "step" | "location" | "date" | "time";
133
168
  'aria-describedby': string;
134
169
  'aria-details': string;
135
170
  'aria-disabled': boolean | "true" | "false";
@@ -155,7 +190,7 @@ declare const __VLS_base: vue.DefineComponent<PopperPositionerProps, {}, {}, {},
155
190
  'aria-posinset': string | number;
156
191
  'aria-pressed': (boolean | "true" | "false") | "mixed";
157
192
  'aria-readonly': boolean | "true" | "false";
158
- 'aria-relevant': "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals";
193
+ 'aria-relevant': "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals";
159
194
  'aria-required': boolean | "true" | "false";
160
195
  'aria-roledescription': string;
161
196
  'aria-rowcount': string | number;
@@ -168,60 +203,25 @@ declare const __VLS_base: vue.DefineComponent<PopperPositionerProps, {}, {}, {},
168
203
  'aria-valuemin': string | number;
169
204
  'aria-valuenow': string | number;
170
205
  'aria-valuetext': string;
171
- accesskey: string;
172
- contenteditable: (boolean | "true" | "false") | "inherit" | "plaintext-only";
173
- dir: string;
174
- draggable: boolean | "true" | "false";
175
- enterkeyhint: "done" | "next" | "enter" | "search" | "go" | "previous" | "send";
176
- enterKeyHint: "done" | "next" | "enter" | "search" | "go" | "previous" | "send";
177
- hidden: "" | "hidden" | (boolean | "true" | "false") | "until-found";
178
- inert: boolean | "true" | "false";
179
- placeholder: string;
180
- spellcheck: boolean | "true" | "false";
181
- translate: "yes" | "no";
182
- radiogroup: string;
183
- about: string;
184
- datatype: string;
185
- inlist: any;
186
- prefix: string;
187
- property: string;
188
- resource: string;
189
- typeof: string;
190
- vocab: string;
191
- autocapitalize: string;
192
- autocorrect: string;
193
- autosave: string;
194
- itemprop: string;
195
- itemscope: boolean | "true" | "false";
196
- itemtype: string;
197
- itemid: string;
198
- itemref: string;
199
- results: string | number;
200
- security: string;
201
- unselectable: "off" | "on";
202
- inputmode: "none" | "search" | "text" | "tel" | "url" | "email" | "numeric" | "decimal";
203
- is: string;
204
- exportparts: string;
205
- part: string;
206
- reference: _floating_ui_dom0.ReferenceElement;
207
- side: _floating_ui_utils0.Side;
208
- sideOffset: number;
209
206
  align: Align;
210
- arrowPadding: number;
211
- updatePositionStrategy: "optimized" | "always";
212
207
  placement: Placement$1;
208
+ side: _floating_ui_utils0.Side;
209
+ sideOffset: number;
213
210
  sideFlip: boolean;
214
211
  alignOffset: number;
215
212
  alignFlip: boolean;
216
213
  avoidCollisions: boolean;
217
214
  collisionBoundary: Element | null | Array<Element | null>;
218
215
  collisionPadding: _floating_ui_utils0.Padding;
216
+ arrowPadding: number;
219
217
  hideShiftedArrow: boolean;
220
218
  sticky: "partial" | "always";
221
219
  hideWhenDetached: boolean;
222
220
  positionStrategy: "absolute" | "fixed";
221
+ updatePositionStrategy: "optimized" | "always";
223
222
  disableUpdateOnLayoutShift: boolean;
224
223
  prioritizePosition: boolean;
224
+ reference: _floating_ui_dom0.ReferenceElement;
225
225
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
226
226
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
227
227
  declare const _default: typeof __VLS_export;
@@ -19,10 +19,10 @@ declare const __VLS_base: vue.DefineComponent<SelectContentProps, {}, {}, {}, {}
19
19
  onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined;
20
20
  onCloseAutoFocus?: ((event: Event) => any) | undefined;
21
21
  }>, {
22
- avoidCollisions: boolean;
23
- prioritizePosition: boolean;
24
22
  position: SelectPosition;
25
23
  bodyLock: boolean;
24
+ avoidCollisions: boolean;
25
+ prioritizePosition: boolean;
26
26
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
27
27
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
28
28
  declare const _default: typeof __VLS_export;
@@ -6,8 +6,8 @@ import * as vue from "vue";
6
6
  //#region src/components/select/select-root.vue.d.ts
7
7
  declare const __VLS_export: <T extends DefinedValue, M extends boolean = false>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
8
8
  props: vue.PublicProps & __VLS_PrettifyLocal<SelectRootProps<T, M> & {
9
- "onUpdate:open"?: ((value: boolean) => any) | undefined;
10
9
  "onUpdate:modelValue"?: ((value: M extends true ? T[] : T) => any) | undefined;
10
+ "onUpdate:open"?: ((value: boolean) => any) | undefined;
11
11
  }> & (typeof globalThis extends {
12
12
  __VLS_PROPS_FALLBACK: infer P;
13
13
  } ? P : {});
@@ -19,7 +19,7 @@ declare const __VLS_export: <T extends DefinedValue, M extends boolean = false>(
19
19
  open: boolean;
20
20
  }) => any;
21
21
  };
22
- emit: ((evt: "update:open", value: boolean) => void) & ((evt: "update:modelValue", value: M extends true ? T[] : T) => void);
22
+ emit: ((evt: "update:modelValue", value: M extends true ? T[] : T) => void) & ((evt: "update:open", value: boolean) => void);
23
23
  }>) => vue.VNode & {
24
24
  __ctx?: Awaited<typeof __VLS_setup>;
25
25
  };
@@ -0,0 +1,9 @@
1
+ import { ClassValue, UiClass } from "../../types/common.js";
2
+ import { TableUiSlot } from "./types.js";
3
+ import "../../index.js";
4
+ import * as vue from "vue";
5
+
6
+ //#region src/components/table/context.d.ts
7
+ declare const provideTableUi: (ui: vue.ComputedRef<Partial<UiClass<TableUiSlot>>>) => vue.ComputedRef<Partial<UiClass<TableUiSlot>>>, useTableUi: <S extends TableUiSlot | undefined = undefined>(slot?: S | undefined) => S extends TableUiSlot ? vue.ComputedRef<ClassValue> : vue.ComputedRef<Partial<UiClass<TableUiSlot>>>;
8
+ //#endregion
9
+ export { provideTableUi };
@@ -0,0 +1 @@
1
+ import{useUiContext as e}from"../../composables/use-ui-context.js";import"../../composables/index.js";const[t,n]=e(`Table`);export{t as provideTableUi,n as useTableUi};
@@ -0,0 +1,11 @@
1
+ import { TableBodyProps, TableCellProps, TableContentProps, TableFooterProps, TableHeadProps, TableHeaderProps, TableRootProps, TableRowProps, TableUi, TableUiSlot } from "./types.js";
2
+ import { _default as _default$6 } from "./table-root.vue.js";
3
+ import { _default as _default$2 } from "./table-content.vue.js";
4
+ import { _default as _default$5 } from "./table-header.vue.js";
5
+ import { _default } from "./table-body.vue.js";
6
+ import { _default as _default$3 } from "./table-footer.vue.js";
7
+ import { _default as _default$7 } from "./table-row.vue.js";
8
+ import { _default as _default$4 } from "./table-head.vue.js";
9
+ import { _default as _default$1 } from "./table-cell.vue.js";
10
+ import { provideTableUi } from "./context.js";
11
+ export { _default as TableBody, TableBodyProps, _default$1 as TableCell, TableCellProps, _default$2 as TableContent, TableContentProps, _default$3 as TableFooter, TableFooterProps, _default$4 as TableHead, TableHeadProps, _default$5 as TableHeader, TableHeaderProps, _default$6 as TableRoot, TableRootProps, _default$7 as TableRow, TableRowProps, TableUi, TableUiSlot, provideTableUi };
@@ -0,0 +1 @@
1
+ import{provideTableUi as e}from"./context.js";import t from"./table-root.js";import n from"./table-content.js";import r from"./table-header.js";import i from"./table-body.js";import a from"./table-footer.js";import o from"./table-row.js";import s from"./table-head.js";import c from"./table-cell.js";export{i as TableBody,c as TableCell,n as TableContent,a as TableFooter,s as TableHead,r as TableHeader,t as TableRoot,o as TableRow,e as provideTableUi};
@@ -0,0 +1 @@
1
+ import{useTableUi as e}from"./context.js";import{createElementBlock as t,defineComponent as n,normalizeClass as r,openBlock as i,renderSlot as a,unref as o}from"vue";const s=n({name:`TableBody`,__name:`table-body`,setup(n){let s=e(`body`);return(e,n)=>(i(),t(`tbody`,{class:r(o(s))},[a(e.$slots,`default`)],2))}});export{s as default};
@@ -0,0 +1,18 @@
1
+ import { TableBodyProps } from "./types.js";
2
+ import * as vue from "vue";
3
+
4
+ //#region src/components/table/table-body.vue.d.ts
5
+ declare var __VLS_1: {};
6
+ type __VLS_Slots = {} & {
7
+ default?: (props: typeof __VLS_1) => any;
8
+ };
9
+ declare const __VLS_base: vue.DefineComponent<TableBodyProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<TableBodyProps> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
10
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
11
+ declare const _default: typeof __VLS_export;
12
+ type __VLS_WithSlots<T, S> = T & {
13
+ new (): {
14
+ $slots: S;
15
+ };
16
+ };
17
+ //#endregion
18
+ export { _default };
@@ -0,0 +1 @@
1
+ import{useTableUi as e}from"./context.js";import{createElementBlock as t,defineComponent as n,normalizeClass as r,openBlock as i,renderSlot as a,unref as o}from"vue";const s=n({name:`TableCell`,__name:`table-cell`,setup(n){let s=e(`cell`);return(e,n)=>(i(),t(`td`,{class:r(o(s))},[a(e.$slots,`default`)],2))}});export{s as default};
@@ -0,0 +1,18 @@
1
+ import { TableCellProps } from "./types.js";
2
+ import * as vue from "vue";
3
+
4
+ //#region src/components/table/table-cell.vue.d.ts
5
+ declare var __VLS_1: {};
6
+ type __VLS_Slots = {} & {
7
+ default?: (props: typeof __VLS_1) => any;
8
+ };
9
+ declare const __VLS_base: vue.DefineComponent<TableCellProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<TableCellProps> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
10
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
11
+ declare const _default: typeof __VLS_export;
12
+ type __VLS_WithSlots<T, S> = T & {
13
+ new (): {
14
+ $slots: S;
15
+ };
16
+ };
17
+ //#endregion
18
+ export { _default };
@@ -0,0 +1 @@
1
+ import{useTableUi as e}from"./context.js";import{createElementBlock as t,defineComponent as n,normalizeClass as r,openBlock as i,renderSlot as a,unref as o}from"vue";const s=n({name:`TableContent`,__name:`table-content`,setup(n){let s=e(`content`);return(e,n)=>(i(),t(`table`,{class:r(o(s))},[a(e.$slots,`default`)],2))}});export{s as default};
@@ -0,0 +1,18 @@
1
+ import { TableContentProps } from "./types.js";
2
+ import * as vue from "vue";
3
+
4
+ //#region src/components/table/table-content.vue.d.ts
5
+ declare var __VLS_1: {};
6
+ type __VLS_Slots = {} & {
7
+ default?: (props: typeof __VLS_1) => any;
8
+ };
9
+ declare const __VLS_base: vue.DefineComponent<TableContentProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<TableContentProps> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
10
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
11
+ declare const _default: typeof __VLS_export;
12
+ type __VLS_WithSlots<T, S> = T & {
13
+ new (): {
14
+ $slots: S;
15
+ };
16
+ };
17
+ //#endregion
18
+ export { _default };
@@ -0,0 +1 @@
1
+ import{useTableUi as e}from"./context.js";import{createElementBlock as t,defineComponent as n,normalizeClass as r,openBlock as i,renderSlot as a,unref as o}from"vue";const s=n({name:`TableFooter`,__name:`table-footer`,setup(n){let s=e(`footer`);return(e,n)=>(i(),t(`tfoot`,{class:r(o(s))},[a(e.$slots,`default`)],2))}});export{s as default};
@@ -0,0 +1,18 @@
1
+ import { TableFooterProps } from "./types.js";
2
+ import * as vue from "vue";
3
+
4
+ //#region src/components/table/table-footer.vue.d.ts
5
+ declare var __VLS_1: {};
6
+ type __VLS_Slots = {} & {
7
+ default?: (props: typeof __VLS_1) => any;
8
+ };
9
+ declare const __VLS_base: vue.DefineComponent<TableFooterProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<TableFooterProps> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
10
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
11
+ declare const _default: typeof __VLS_export;
12
+ type __VLS_WithSlots<T, S> = T & {
13
+ new (): {
14
+ $slots: S;
15
+ };
16
+ };
17
+ //#endregion
18
+ export { _default };
@@ -0,0 +1 @@
1
+ import{useTableUi as e}from"./context.js";import{createElementBlock as t,defineComponent as n,normalizeClass as r,openBlock as i,renderSlot as a,unref as o}from"vue";const s=n({name:`TableHead`,__name:`table-head`,setup(n){let s=e(`head`);return(e,n)=>(i(),t(`th`,{class:r(o(s))},[a(e.$slots,`default`)],2))}});export{s as default};
@@ -0,0 +1,18 @@
1
+ import { TableHeadProps } from "./types.js";
2
+ import * as vue from "vue";
3
+
4
+ //#region src/components/table/table-head.vue.d.ts
5
+ declare var __VLS_1: {};
6
+ type __VLS_Slots = {} & {
7
+ default?: (props: typeof __VLS_1) => any;
8
+ };
9
+ declare const __VLS_base: vue.DefineComponent<TableHeadProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<TableHeadProps> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
10
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
11
+ declare const _default: typeof __VLS_export;
12
+ type __VLS_WithSlots<T, S> = T & {
13
+ new (): {
14
+ $slots: S;
15
+ };
16
+ };
17
+ //#endregion
18
+ export { _default };
@@ -0,0 +1 @@
1
+ import{useTableUi as e}from"./context.js";import{createElementBlock as t,defineComponent as n,normalizeClass as r,openBlock as i,renderSlot as a,unref as o}from"vue";const s=n({name:`TableHeader`,__name:`table-header`,setup(n){let s=e(`header`);return(e,n)=>(i(),t(`thead`,{class:r(o(s))},[a(e.$slots,`default`)],2))}});export{s as default};
@@ -0,0 +1,18 @@
1
+ import { TableHeaderProps } from "./types.js";
2
+ import * as vue from "vue";
3
+
4
+ //#region src/components/table/table-header.vue.d.ts
5
+ declare var __VLS_1: {};
6
+ type __VLS_Slots = {} & {
7
+ default?: (props: typeof __VLS_1) => any;
8
+ };
9
+ declare const __VLS_base: vue.DefineComponent<TableHeaderProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<TableHeaderProps> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
10
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
11
+ declare const _default: typeof __VLS_export;
12
+ type __VLS_WithSlots<T, S> = T & {
13
+ new (): {
14
+ $slots: S;
15
+ };
16
+ };
17
+ //#endregion
18
+ export { _default };
@@ -0,0 +1 @@
1
+ import{useTableUi as e}from"./context.js";import{createElementBlock as t,defineComponent as n,normalizeClass as r,openBlock as i,renderSlot as a,unref as o}from"vue";const s=n({name:`TableRoot`,__name:`table-root`,setup(n){let s=e(`root`);return(e,n)=>(i(),t(`div`,{class:r(o(s))},[a(e.$slots,`default`)],2))}});export{s as default};
@@ -0,0 +1,18 @@
1
+ import { TableRootProps } from "./types.js";
2
+ import * as vue from "vue";
3
+
4
+ //#region src/components/table/table-root.vue.d.ts
5
+ declare var __VLS_1: {};
6
+ type __VLS_Slots = {} & {
7
+ default?: (props: typeof __VLS_1) => any;
8
+ };
9
+ declare const __VLS_base: vue.DefineComponent<TableRootProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<TableRootProps> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
10
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
11
+ declare const _default: typeof __VLS_export;
12
+ type __VLS_WithSlots<T, S> = T & {
13
+ new (): {
14
+ $slots: S;
15
+ };
16
+ };
17
+ //#endregion
18
+ export { _default };
@@ -0,0 +1 @@
1
+ import{useTableUi as e}from"./context.js";import{createElementBlock as t,defineComponent as n,normalizeClass as r,openBlock as i,renderSlot as a,unref as o}from"vue";const s=n({name:`TableRow`,__name:`table-row`,setup(n){let s=e(`row`);return(e,n)=>(i(),t(`tr`,{class:r(o(s))},[a(e.$slots,`default`)],2))}});export{s as default};
@@ -0,0 +1,18 @@
1
+ import { TableRowProps } from "./types.js";
2
+ import * as vue from "vue";
3
+
4
+ //#region src/components/table/table-row.vue.d.ts
5
+ declare var __VLS_1: {};
6
+ type __VLS_Slots = {} & {
7
+ default?: (props: typeof __VLS_1) => any;
8
+ };
9
+ declare const __VLS_base: vue.DefineComponent<TableRowProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<TableRowProps> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
10
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
11
+ declare const _default: typeof __VLS_export;
12
+ type __VLS_WithSlots<T, S> = T & {
13
+ new (): {
14
+ $slots: S;
15
+ };
16
+ };
17
+ //#endregion
18
+ export { _default };
@@ -0,0 +1,17 @@
1
+ import { UiClass } from "../../types/common.js";
2
+ import "../../types/index.js";
3
+ import { HTMLAttributes, TableHTMLAttributes, TdHTMLAttributes, ThHTMLAttributes } from "vue";
4
+
5
+ //#region src/components/table/types.d.ts
6
+ interface TableRootProps extends /** @vue-ignore */HTMLAttributes {}
7
+ interface TableContentProps extends /** @vue-ignore */TableHTMLAttributes {}
8
+ interface TableHeaderProps extends /** @vue-ignore */HTMLAttributes {}
9
+ interface TableBodyProps extends /** @vue-ignore */HTMLAttributes {}
10
+ interface TableFooterProps extends /** @vue-ignore */HTMLAttributes {}
11
+ interface TableRowProps extends /** @vue-ignore */HTMLAttributes {}
12
+ interface TableHeadProps extends /** @vue-ignore */ThHTMLAttributes {}
13
+ interface TableCellProps extends /** @vue-ignore */TdHTMLAttributes {}
14
+ type TableUiSlot = 'root' | 'content' | 'header' | 'body' | 'footer' | 'row' | 'head' | 'cell';
15
+ type TableUi = UiClass<TableUiSlot>;
16
+ //#endregion
17
+ export { TableBodyProps, TableCellProps, TableContentProps, TableFooterProps, TableHeadProps, TableHeaderProps, TableRootProps, TableRowProps, TableUi, TableUiSlot };
@@ -16,11 +16,11 @@ declare const __VLS_base: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.C
16
16
  }, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
17
17
  "onUpdate:modelValue"?: ((payload: NonNullable<AcceptableValue>) => any) | undefined;
18
18
  }>, {
19
- modelValue: DefinedValue | null;
20
19
  orientation: DataOrientation;
20
+ modelValue: DefinedValue | null;
21
21
  loop: boolean;
22
- unmountOnHide: boolean;
23
22
  activationMode: TabsActivationMode;
23
+ unmountOnHide: boolean;
24
24
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
25
25
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
26
26
  declare const _default: typeof __VLS_export;
@@ -11,8 +11,8 @@ type __VLS_Slots = {} & {
11
11
  default?: (props: typeof __VLS_18) => any;
12
12
  };
13
13
  declare const __VLS_base: vue.DefineComponent<TabsTriggerProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<TabsTriggerProps> & Readonly<{}>, {
14
- as: AsTag | vue.Component;
15
14
  disabled: boolean;
15
+ as: AsTag | vue.Component;
16
16
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
17
17
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
18
18
  declare const _default: typeof __VLS_export;
@@ -15,27 +15,27 @@ type __VLS_Slots = {} & {
15
15
  };
16
16
  declare const __VLS_base: vue.DefineComponent<ToastRootProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
17
17
  pause: () => any;
18
- "update:open": (value: boolean) => any;
19
18
  escapeKeyDown: (event: KeyboardEvent) => any;
20
19
  resume: () => any;
21
20
  swipeStart: (event: SwipeEvent) => any;
22
21
  swipeMove: (event: SwipeEvent) => any;
23
22
  swipeCancel: (event: SwipeEvent) => any;
24
23
  swipeEnd: (event: SwipeEvent) => any;
24
+ "update:open": (value: boolean) => any;
25
25
  }, string, vue.PublicProps, Readonly<ToastRootProps> & Readonly<{
26
26
  onPause?: (() => any) | undefined;
27
- "onUpdate:open"?: ((value: boolean) => any) | undefined;
28
27
  onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
29
28
  onResume?: (() => any) | undefined;
30
29
  onSwipeStart?: ((event: SwipeEvent) => any) | undefined;
31
30
  onSwipeMove?: ((event: SwipeEvent) => any) | undefined;
32
31
  onSwipeCancel?: ((event: SwipeEvent) => any) | undefined;
33
32
  onSwipeEnd?: ((event: SwipeEvent) => any) | undefined;
33
+ "onUpdate:open"?: ((value: boolean) => any) | undefined;
34
34
  }>, {
35
- open: boolean;
36
35
  as: AsTag | vue.Component;
37
- defaultOpen: boolean;
36
+ open: boolean;
38
37
  liveType: ToastLiveType;
38
+ defaultOpen: boolean;
39
39
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
40
40
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
41
41
  declare const _default: typeof __VLS_export;
@@ -16,7 +16,7 @@ interface VirtualizerRootProps<T extends Record<string, any> = Record<string, an
16
16
  dynamic?: boolean;
17
17
  }
18
18
  interface VirtualizerDynamicContentProps extends /** @vue-ignore */HTMLAttributes {}
19
- interface VirtualizerContentProps extends /** @vue-ignore */HTMLAttributes {
19
+ interface VirtualizerContentProps extends PrimitiveProps, /** @vue-ignore */HTMLAttributes {
20
20
  dynamicContentProps?: VirtualizerDynamicContentProps;
21
21
  }
22
22
  interface VirtualizerItemProps extends PrimitiveProps, /** @vue-ignore */HTMLAttributes {
@@ -1 +1 @@
1
- import{useVirtualizerContext as e}from"./context.js";import{computed as t,createElementBlock as n,defineComponent as r,mergeProps as i,normalizeStyle as a,openBlock as o,renderSlot as s,unref as c}from"vue";const l=r({name:`VirtualizerContent`,__name:`virtualizer-content`,props:{dynamicContentProps:{}},setup(r){let{contentStyle:l,virtualItems:u,isVerticalDynamic:d}=e(`VirtualizerContent`),f=t(()=>u.value[0]?.start??0),p=t(()=>`position:absolute;left:0;top:0;width:100%;transform:translateY(${f.value}px);`);return(e,t)=>(o(),n(`div`,{style:a(c(l))},[c(d)?(o(),n(`div`,i({key:0},r.dynamicContentProps,{style:p.value}),[s(e.$slots,`default`)],16)):s(e.$slots,`default`,{key:1})],4))}});export{l as default};
1
+ import{Primitive as e}from"../primitive/primitive.js";import"../primitive/index.js";import{useVirtualizerContext as t}from"./context.js";import{computed as n,createBlock as r,createElementBlock as i,defineComponent as a,mergeProps as o,normalizeStyle as s,openBlock as c,renderSlot as l,unref as u,withCtx as d}from"vue";const f=a({name:`VirtualizerContent`,__name:`virtualizer-content`,props:{dynamicContentProps:{},asChild:{type:Boolean},as:{}},setup(a){let{contentStyle:f,virtualItems:p,isVerticalDynamic:m}=t(`VirtualizerContent`),h=n(()=>p.value[0]?.start??0),g=n(()=>`position:absolute;left:0;top:0;width:100%;transform:translateY(${h.value}px);`);return(t,n)=>(c(),r(u(e),{as:a.as,"as-child":a.asChild,style:s(u(f))},{default:d(()=>[u(m)?(c(),i(`div`,o({key:0},a.dynamicContentProps,{style:g.value}),[l(t.$slots,`default`)],16)):l(t.$slots,`default`,{key:1})]),_:3},8,[`as`,`as-child`,`style`]))}});export{f as default};