@soybeanjs/headless 0.6.1 → 0.6.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.
@@ -14,10 +14,10 @@ declare const __VLS_base: vue.DefineComponent<DropdownMenuRootProps, {}, {}, {},
14
14
  "onUpdate:open"?: ((value: boolean) => any) | undefined;
15
15
  }>, {
16
16
  open: boolean;
17
+ modal: boolean;
17
18
  trigger: DropdownMenuTriggerType;
18
19
  delayDuration: number;
19
20
  skipDelayDuration: number;
20
- modal: boolean;
21
21
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
22
22
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
23
23
  declare const _default: typeof __VLS_export;
@@ -16,8 +16,8 @@ declare const __VLS_base: vue.DefineComponent<LayoutRootProps, {}, {}, {}, {}, v
16
16
  }>, {
17
17
  collapsible: LayoutCollapsible;
18
18
  open: boolean;
19
- side: LayoutSide;
20
19
  defaultOpen: boolean;
20
+ side: LayoutSide;
21
21
  variant: LayoutVariant;
22
22
  sidebarWidth: number;
23
23
  collapsedSidebarWidth: number;
@@ -6,8 +6,8 @@ import * as vue from "vue";
6
6
  //#region src/components/listbox/listbox-root.vue.d.ts
7
7
  declare const __VLS_export: <M extends boolean>(__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<ListboxRootProps<M> & {
9
- "onUpdate:modelValue"?: ((value: M extends true ? string[] : string) => any) | undefined;
10
9
  onEntryFocus?: ((event: CustomEvent<any>) => any) | undefined;
10
+ "onUpdate:modelValue"?: ((value: M extends true ? string[] : string) => any) | undefined;
11
11
  onHighlight?: ((payload?: CollectionItemData<ListboxCollectionItemData> | undefined) => any) | undefined;
12
12
  onLeave?: ((event: Event) => any) | undefined;
13
13
  }> & (typeof globalThis extends {
@@ -26,7 +26,7 @@ declare const __VLS_export: <M extends boolean>(__VLS_props: NonNullable<Awaited
26
26
  modelValue: (M extends true ? string[] : string) | undefined;
27
27
  }) => any;
28
28
  };
29
- emit: ((evt: "update:modelValue", value: M extends true ? string[] : string) => void) & ((evt: "entryFocus", event: CustomEvent<any>) => void) & ((evt: "highlight", payload?: CollectionItemData<ListboxCollectionItemData> | undefined) => void) & ((evt: "leave", event: Event) => void);
29
+ emit: ((evt: "entryFocus", event: CustomEvent<any>) => void) & ((evt: "update:modelValue", value: M extends true ? string[] : string) => void) & ((evt: "highlight", payload?: CollectionItemData<ListboxCollectionItemData> | undefined) => void) & ((evt: "leave", event: Event) => void);
30
30
  }>) => vue.VNode & {
31
31
  __ctx?: Awaited<typeof __VLS_setup>;
32
32
  };
@@ -17,9 +17,9 @@ declare const __VLS_base: vue.DefineComponent<NavigationMenuRootProps, {}, {}, {
17
17
  }>, {
18
18
  dir: Direction;
19
19
  orientation: DataOrientation;
20
+ unmountOnHide: boolean;
20
21
  delayDuration: number;
21
22
  skipDelayDuration: number;
22
- unmountOnHide: boolean;
23
23
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
24
24
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
25
25
  declare const _default: typeof __VLS_export;
@@ -1 +1 @@
1
- import{useForwardElement as e}from"../../composables/use-forward-element.js";import"../../composables/index.js";import{computed as t,nextTick as n,watchEffect as r}from"vue";function i(i){let[a,o]=e(),s=t(()=>(a.value?.offsetWidth??0)/2);return r(async()=>{if(!a.value||!s.value||!i.value)return;await n();let e=a.value.querySelector(`[data-value="${i.value}"]`);if(!e)return;let t=e.offsetLeft+e.offsetWidth/2-s.value;a.value.scrollTo({left:t,behavior:`smooth`})}),{setRootElement:o,onWheel:e=>{a.value&&(a.value.scrollLeft+=e.deltaY)}}}export{i as usePageTabsScroll};
1
+ import{useForwardElement as e}from"../../composables/use-forward-element.js";import"../../composables/index.js";import{nextTick as t,watchEffect as n}from"vue";function r(r){let[i,a]=e();return n(async()=>{if(!i.value||!r.value)return;await t();let e=i.value.querySelector(`[data-value="${r.value}"]`);if(!e)return;let n=(i.value?.offsetWidth??0)/2,a=e.offsetLeft+e.offsetWidth/2-n;i.value.scrollTo({left:a,behavior:`smooth`})}),{setRootElement:a,onWheel:e=>{i.value&&(i.value.scrollLeft+=e.deltaY)}}}export{r as usePageTabsScroll};
@@ -184,7 +184,7 @@ declare const __VLS_base: vue.DefineComponent<PopperPositionerProps, {}, {}, {},
184
184
  'aria-modal': boolean | "true" | "false";
185
185
  'aria-multiline': boolean | "true" | "false";
186
186
  'aria-multiselectable': boolean | "true" | "false";
187
- 'aria-orientation': "vertical" | "horizontal";
187
+ 'aria-orientation': "horizontal" | "vertical";
188
188
  'aria-owns': string;
189
189
  'aria-placeholder': string;
190
190
  'aria-posinset': string | number;
@@ -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:modelValue"?: ((value: M extends true ? T[] : T) => any) | undefined;
10
9
  "onUpdate:open"?: ((value: boolean) => any) | undefined;
10
+ "onUpdate:modelValue"?: ((value: M extends true ? T[] : T) => 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:modelValue", value: M extends true ? T[] : T) => void) & ((evt: "update:open", value: boolean) => void);
22
+ emit: ((evt: "update:open", value: boolean) => void) & ((evt: "update:modelValue", value: M extends true ? T[] : T) => void);
23
23
  }>) => vue.VNode & {
24
24
  __ctx?: Awaited<typeof __VLS_setup>;
25
25
  };
@@ -19,8 +19,8 @@ declare const __VLS_base: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.C
19
19
  modelValue: DefinedValue | null;
20
20
  orientation: DataOrientation;
21
21
  loop: boolean;
22
- activationMode: TabsActivationMode;
23
22
  unmountOnHide: boolean;
23
+ activationMode: TabsActivationMode;
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;
@@ -15,8 +15,8 @@ type __VLS_Slots = {} & {
15
15
  };
16
16
  declare const __VLS_base: vue.DefineComponent<ToastRootProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
17
17
  pause: () => any;
18
- escapeKeyDown: (event: KeyboardEvent) => any;
19
18
  "update:open": (value: boolean) => any;
19
+ escapeKeyDown: (event: KeyboardEvent) => any;
20
20
  resume: () => any;
21
21
  swipeStart: (event: SwipeEvent) => any;
22
22
  swipeMove: (event: SwipeEvent) => any;
@@ -24,8 +24,8 @@ declare const __VLS_base: vue.DefineComponent<ToastRootProps, {}, {}, {}, {}, vu
24
24
  swipeEnd: (event: SwipeEvent) => any;
25
25
  }, string, vue.PublicProps, Readonly<ToastRootProps> & Readonly<{
26
26
  onPause?: (() => any) | undefined;
27
- onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
28
27
  "onUpdate:open"?: ((value: boolean) => any) | undefined;
28
+ onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
29
29
  onResume?: (() => any) | undefined;
30
30
  onSwipeStart?: ((event: SwipeEvent) => any) | undefined;
31
31
  onSwipeMove?: ((event: SwipeEvent) => any) | undefined;
@@ -16,8 +16,8 @@ declare const __VLS_base: vue.DefineComponent<TreeMenuRootProps, {}, {}, {}, {},
16
16
  "onUpdate:collapsed"?: ((value: boolean) => any) | undefined;
17
17
  }>, {
18
18
  defaultValue: string;
19
- collapsed: boolean;
20
19
  defaultExpanded: string[];
20
+ collapsed: boolean;
21
21
  defaultCollapsed: boolean;
22
22
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
23
23
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soybeanjs/headless",
3
- "version": "0.6.1",
3
+ "version": "0.6.3",
4
4
  "description": "SoybeanHeadless is a collection unstyled components for Vue 3. It is designed to be lightweight and easy to use.",
5
5
  "homepage": "https://github.com/soybeanjs/soybean-ui",
6
6
  "bugs": {