@soybeanjs/ui 0.4.2 → 0.4.4
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/dist/components/accordion/accordion.js +1 -1
- package/dist/components/accordion/accordion.vue.d.ts +3 -3
- package/dist/components/alert/alert.js +1 -1
- package/dist/components/alert/alert.vue.d.ts +4 -4
- package/dist/components/alert-dialog/alert-dialog-action.vue.d.ts +3 -3
- package/dist/components/alert-dialog/alert-dialog-cancel.vue.d.ts +4 -4
- package/dist/components/alert-dialog/alert-dialog.vue.d.ts +4 -4
- package/dist/components/avatar/avatar.vue.d.ts +7 -7
- package/dist/components/badge/badge.vue.d.ts +4 -4
- package/dist/components/breadcrumb/breadcrumb.js +1 -1
- package/dist/components/breadcrumb/breadcrumb.vue.d.ts +3 -3
- package/dist/components/button/button-group.vue.d.ts +6 -6
- package/dist/components/button/button-icon.vue.d.ts +3 -3
- package/dist/components/button/button-link.vue.d.ts +4 -4
- package/dist/components/button/button-loading.vue.d.ts +3 -3
- package/dist/components/button/button.vue.d.ts +4 -4
- package/dist/components/card/card.vue.d.ts +3 -3
- package/dist/components/checkbox/checkbox-card-group.vue.d.ts +3 -3
- package/dist/components/checkbox/checkbox-card.js +1 -1
- package/dist/components/checkbox/checkbox-card.vue.d.ts +8 -8
- package/dist/components/checkbox/checkbox-group.vue.d.ts +3 -3
- package/dist/components/checkbox/checkbox.vue.d.ts +12 -12
- package/dist/components/collapsible/collapsible.vue.d.ts +4 -4
- package/dist/components/command/command-single-option.js +1 -1
- package/dist/components/command/command.vue.d.ts +8 -8
- package/dist/components/config-provider/config-provider.vue.d.ts +5 -5
- package/dist/components/context-menu/context-menu-checkbox.vue.d.ts +10 -10
- package/dist/components/context-menu/context-menu-radio.vue.d.ts +10 -10
- package/dist/components/context-menu/context-menu-wrapper.vue.d.ts +13 -13
- package/dist/components/context-menu/context-menu.vue.d.ts +9 -9
- package/dist/components/dialog/dialog-close.vue.d.ts +2 -2
- package/dist/components/dialog/dialog-pure.vue.d.ts +11 -11
- package/dist/components/dialog/dialog.vue.d.ts +11 -11
- package/dist/components/drawer/drawer-close.vue.d.ts +2 -2
- package/dist/components/drawer/drawer.vue.d.ts +11 -11
- package/dist/components/dropdown-menu/dropdown-menu-checkbox.vue.d.ts +10 -10
- package/dist/components/dropdown-menu/dropdown-menu-radio.vue.d.ts +10 -10
- package/dist/components/dropdown-menu/dropdown-menu-wrapper.vue.d.ts +13 -13
- package/dist/components/dropdown-menu/dropdown-menu.vue.d.ts +9 -9
- package/dist/components/form/form.vue.d.ts +2 -2
- package/dist/components/form/use-form.d.ts +22 -22
- package/dist/components/icon/icon.js +1 -1
- package/dist/components/icon/icon.vue.d.ts +2 -2
- package/dist/components/icon/types.d.ts +1 -1
- package/dist/components/input/input.vue.d.ts +4 -4
- package/dist/components/kbd/kbd.vue.d.ts +3 -3
- package/dist/components/label/label.vue.d.ts +2 -2
- package/dist/components/layout/layout-trigger.vue.d.ts +2 -2
- package/dist/components/layout/layout.vue.d.ts +4 -4
- package/dist/components/link/link.vue.d.ts +3 -3
- package/dist/components/list/list-item.vue.d.ts +2 -2
- package/dist/components/list/list.vue.d.ts +2 -2
- package/dist/components/menu/menu-checkbox-options.vue.d.ts +3 -3
- package/dist/components/menu/menu-item-slot.js +1 -1
- package/dist/components/menu/menu-option.vue.d.ts +9 -9
- package/dist/components/menu/menu-options.vue.d.ts +9 -9
- package/dist/components/menu/menu-radio-options.vue.d.ts +3 -3
- package/dist/components/navigation-menu/navigation-menu-item-slot.js +1 -1
- package/dist/components/navigation-menu/navigation-menu.vue.d.ts +13 -13
- package/dist/components/number-input/number-input.vue.d.ts +4 -4
- package/dist/components/page-tabs/page-tabs.js +1 -1
- package/dist/components/page-tabs/page-tabs.vue.d.ts +7 -7
- package/dist/components/pagination/pagination.vue.d.ts +4 -4
- package/dist/components/password/password.vue.d.ts +4 -4
- package/dist/components/popover/popover.vue.d.ts +4 -4
- package/dist/components/radio-group/radio-card-group.vue.d.ts +3 -3
- package/dist/components/radio-group/radio-card.js +1 -1
- package/dist/components/radio-group/radio-card.vue.d.ts +2 -2
- package/dist/components/radio-group/radio-group.vue.d.ts +3 -3
- package/dist/components/radio-group/radio.vue.d.ts +2 -2
- package/dist/components/segment/segment.vue.d.ts +3 -3
- package/dist/components/select/select-single-option.js +1 -1
- package/dist/components/select/select.vue.d.ts +5 -5
- package/dist/components/separator/separator.vue.d.ts +5 -5
- package/dist/components/switch/switch.vue.d.ts +22 -22
- package/dist/components/tabs/tabs.vue.d.ts +3 -3
- package/dist/components/tag/tag.vue.d.ts +4 -4
- package/dist/components/textarea/textarea.vue.d.ts +4 -4
- package/dist/components/tree/tree-virtualizer.vue.d.ts +5 -5
- package/dist/components/tree/tree.vue.d.ts +5 -5
- package/dist/components/tree-menu/tree-menu-option-slot.js +1 -1
- package/dist/components/tree-menu/tree-menu-styled-item.vue.d.ts +2 -2
- package/dist/components/tree-menu/tree-menu.js +1 -1
- package/dist/components/tree-menu/tree-menu.vue.d.ts +3 -3
- package/dist/components/virtualizer/virtualizer.vue.d.ts +3 -3
- package/dist/variants/badge.d.ts +3 -3
- package/dist/variants/button.d.ts +3 -3
- package/dist/variants/page-tabs.d.ts +3 -3
- package/dist/variants/pagination.d.ts +3 -3
- package/dist/variants/radio-group.d.ts +3 -3
- package/dist/variants/separator.d.ts +3 -3
- package/dist/variants/tabs.d.ts +3 -3
- package/dist/variants/tag.d.ts +3 -3
- package/dist/variants/textarea.d.ts +3 -3
- package/dist/variants/toast.d.ts +3 -3
- package/package.json +7 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
import{accordionVariants as e}from"../../variants/accordion.js";import{mergeSlotVariants as t}from"../../theme/shared.js";import n from"../icon/icon.js";import{Fragment as r,computed as i,createBlock as a,
|
|
1
|
+
import{accordionVariants as e}from"../../variants/accordion.js";import{mergeSlotVariants as t}from"../../theme/shared.js";import n from"../icon/icon.js";import{Fragment as r,computed as i,createBlock as a,createElementBlock as o,createElementVNode as s,createTextVNode as c,createVNode as l,defineComponent as u,mergeProps as d,normalizeClass as f,openBlock as p,renderList as m,renderSlot as h,toDisplayString as g,toHandlers as _,unref as v,withCtx as y}from"vue";import{useForwardListeners as b,useOmitProps as x}from"@soybeanjs/headless/composables";import{AccordionContent as S,AccordionHeader as C,AccordionItem as w,AccordionRoot as T,AccordionTrigger as E,provideAccordionUi as D}from"@soybeanjs/headless";var O=u({name:`SAccordion`,__name:`accordion`,props:{class:{},size:{},ui:{},items:{},itemProps:{},headerProps:{},triggerProps:{},contentProps:{},collapsible:{type:Boolean},dir:{},disabled:{type:Boolean},orientation:{},unmountOnHide:{type:Boolean},modelValue:{},defaultValue:{},multiple:{}},emits:[`update:modelValue`],setup(u,{emit:O}){let k=u,A=O,j=x(k,[`class`,`size`,`ui`,`items`,`itemProps`,`headerProps`,`triggerProps`,`contentProps`]),M=b(A),N=i(()=>t(e({size:k.size}),k.ui,{root:k.class}));return D(N),(e,t)=>(p(),a(v(T),d(v(j),_(v(M))),{default:y(()=>[(p(!0),o(r,null,m(k.items,t=>h(e.$slots,`item`,{key:t.value,item:t,modelValue:u.modelValue},()=>[l(v(w),d({ref_for:!0},k.itemProps,{value:t.value,disabled:t.disabled}),{default:y(({open:r})=>[l(v(C),d({ref_for:!0},k.headerProps),{default:y(()=>[l(v(E),d({ref_for:!0},k.triggerProps),{default:y(()=>[h(e.$slots,`leading`,{item:t,modelValue:u.modelValue,open:r},()=>[l(n,{icon:t.icon,class:f(N.value.triggerLeadingIcon)},null,8,[`icon`,`class`])]),h(e.$slots,`title`,{item:t,modelValue:u.modelValue,open:r},()=>[c(g(t.title),1)]),h(e.$slots,`trigger-icon`,{item:t,modelValue:u.modelValue,open:r},()=>[l(n,{icon:`lucide:chevron-down`,class:f(N.value.triggerIcon)},null,8,[`class`])])]),_:2},1040)]),_:2},1040),l(v(S),d({ref_for:!0},k.contentProps),{default:y(()=>[h(e.$slots,`content`,{item:t,modelValue:u.modelValue,open:r},()=>[s(`p`,{class:f(N.value.description)},g(t.description),3)])]),_:2},1040)]),_:2},1040,[`value`,`disabled`])])),128))]),_:3},16))}});export{O as default};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { AccordionOptionData, AccordionProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue127 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/accordion/accordion.vue.d.ts
|
|
5
5
|
declare const __VLS_export: <T extends AccordionOptionData = AccordionOptionData, 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<{
|
|
6
|
-
props:
|
|
6
|
+
props: vue127.PublicProps & __VLS_PrettifyLocal<AccordionProps<T, M> & {
|
|
7
7
|
"onUpdate:modelValue"?: ((value: M extends true ? string[] : string) => any) | undefined;
|
|
8
8
|
}> & (typeof globalThis extends {
|
|
9
9
|
__VLS_PROPS_FALLBACK: infer P;
|
|
@@ -41,7 +41,7 @@ declare const __VLS_export: <T extends AccordionOptionData = AccordionOptionData
|
|
|
41
41
|
}) => any;
|
|
42
42
|
};
|
|
43
43
|
emit: (evt: "update:modelValue", value: M extends true ? string[] : string) => void;
|
|
44
|
-
}>) =>
|
|
44
|
+
}>) => vue127.VNode & {
|
|
45
45
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
46
46
|
};
|
|
47
47
|
declare const _default: typeof __VLS_export;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{mergeSlotVariants as e}from"../../theme/shared.js";import t from"../button/button-icon.js";import n from"../icon/icon.js";import{alertVariants as r}from"../../variants/alert.js";import{computed as i,createBlock as a,createCommentVNode as o,createTextVNode as s,createVNode as c,defineComponent as l,guardReactiveProps as u,mergeProps as d,normalizeClass as f,normalizeProps as p,openBlock as m,renderSlot as h,toDisplayString as g,unref as _,useSlots as v,withCtx as y}from"vue";import{AlertClose as b,AlertContent as x,AlertDescription as S,AlertRoot as C,AlertTitle as w,provideAlertUi as T}from"@soybeanjs/headless";var E=l({name:`SAlert`,__name:`alert`,props:{class:{},size:{},color:{},variant:{},ui:{},title:{},description:{},icon:{},closable:{type:Boolean},contentProps:{},titleProps:{},descriptionProps:{},closeProps:{},open:{type:Boolean,default:void 0}},emits:[`update:open`],setup(l,{emit:E}){let D=l,O=E,k=v(),A=i(()=>e(r({size:D.size,color:D.color,variant:D.variant}),D.ui,{root:D.class}));return T(A),(e,r)=>(m(),a(_(C),{open:l.open,"onUpdate:open":r[0]||=e=>O(`update:open`,e)},{default:y(()=>[h(e.$slots,`leading`,{},()=>[
|
|
1
|
+
import{mergeSlotVariants as e}from"../../theme/shared.js";import t from"../button/button-icon.js";import n from"../icon/icon.js";import{alertVariants as r}from"../../variants/alert.js";import{computed as i,createBlock as a,createCommentVNode as o,createTextVNode as s,createVNode as c,defineComponent as l,guardReactiveProps as u,mergeProps as d,normalizeClass as f,normalizeProps as p,openBlock as m,renderSlot as h,toDisplayString as g,unref as _,useSlots as v,withCtx as y}from"vue";import{AlertClose as b,AlertContent as x,AlertDescription as S,AlertRoot as C,AlertTitle as w,provideAlertUi as T}from"@soybeanjs/headless";var E=l({name:`SAlert`,__name:`alert`,props:{class:{},size:{},color:{},variant:{},ui:{},title:{},description:{},icon:{},closable:{type:Boolean},contentProps:{},titleProps:{},descriptionProps:{},closeProps:{},open:{type:Boolean,default:void 0}},emits:[`update:open`],setup(l,{emit:E}){let D=l,O=E,k=v(),A=i(()=>e(r({size:D.size,color:D.color,variant:D.variant}),D.ui,{root:D.class}));return T(A),(e,r)=>(m(),a(_(C),{open:l.open,"onUpdate:open":r[0]||=e=>O(`update:open`,e)},{default:y(()=>[h(e.$slots,`leading`,{},()=>[c(n,{icon:l.icon,class:f(A.value.icon)},null,8,[`icon`,`class`])]),c(_(x),p(u(l.contentProps)),{default:y(()=>[_(k).title||l.title?(m(),a(_(w),p(d({key:0},l.titleProps)),{default:y(()=>[h(e.$slots,`title`,{},()=>[s(g(l.title),1)])]),_:3},16)):o(`v-if`,!0),_(k).description||l.description?(m(),a(_(S),p(d({key:1},l.descriptionProps)),{default:y(()=>[h(e.$slots,`description`,{},()=>[s(g(l.description),1)])]),_:3},16)):o(`v-if`,!0),h(e.$slots,`default`)]),_:3},16),h(e.$slots,`trailing`),l.closable?(m(),a(_(b),d({key:0},l.closeProps,{"as-child":``}),{default:y(()=>[h(e.$slots,`close`,{},()=>[c(t,{icon:`lucide:x`,size:l.size},null,8,[`size`])])]),_:3},16)):o(`v-if`,!0)]),_:3},8,[`open`]))}});export{E as default};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AlertProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue0 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/alert/alert.vue.d.ts
|
|
5
5
|
declare var __VLS_10: {}, __VLS_29: {}, __VLS_37: {}, __VLS_39: {}, __VLS_41: {}, __VLS_49: {};
|
|
@@ -16,13 +16,13 @@ type __VLS_Slots = {} & {
|
|
|
16
16
|
} & {
|
|
17
17
|
close?: (props: typeof __VLS_49) => any;
|
|
18
18
|
};
|
|
19
|
-
declare const __VLS_base:
|
|
19
|
+
declare const __VLS_base: vue0.DefineComponent<AlertProps, {}, {}, {}, {}, vue0.ComponentOptionsMixin, vue0.ComponentOptionsMixin, {
|
|
20
20
|
"update:open": (open: boolean) => any;
|
|
21
|
-
}, string,
|
|
21
|
+
}, string, vue0.PublicProps, Readonly<AlertProps> & Readonly<{
|
|
22
22
|
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
23
23
|
}>, {
|
|
24
24
|
open: boolean;
|
|
25
|
-
}, {}, {}, {}, string,
|
|
25
|
+
}, {}, {}, {}, string, vue0.ComponentProvideOptions, false, {}, any>;
|
|
26
26
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
27
27
|
declare const _default: typeof __VLS_export;
|
|
28
28
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AlertDialogActionProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue117 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/alert-dialog/alert-dialog-action.vue.d.ts
|
|
5
5
|
declare var __VLS_8: {}, __VLS_16: {};
|
|
@@ -8,9 +8,9 @@ type __VLS_Slots = {} & {
|
|
|
8
8
|
} & {
|
|
9
9
|
default?: (props: typeof __VLS_16) => any;
|
|
10
10
|
};
|
|
11
|
-
declare const __VLS_base:
|
|
11
|
+
declare const __VLS_base: vue117.DefineComponent<AlertDialogActionProps, {}, {}, {}, {}, vue117.ComponentOptionsMixin, vue117.ComponentOptionsMixin, {}, string, vue117.PublicProps, Readonly<AlertDialogActionProps> & Readonly<{}>, {
|
|
12
12
|
text: string;
|
|
13
|
-
}, {}, {}, {}, string,
|
|
13
|
+
}, {}, {}, {}, string, vue117.ComponentProvideOptions, false, {}, any>;
|
|
14
14
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
15
15
|
declare const _default: typeof __VLS_export;
|
|
16
16
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ButtonVariant } from "../../variants/button.js";
|
|
2
2
|
import { AlertDialogCancelProps } from "./types.js";
|
|
3
3
|
import "../button/index.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as vue112 from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/components/alert-dialog/alert-dialog-cancel.vue.d.ts
|
|
7
7
|
declare var __VLS_8: {}, __VLS_16: {};
|
|
@@ -10,10 +10,10 @@ type __VLS_Slots = {} & {
|
|
|
10
10
|
} & {
|
|
11
11
|
default?: (props: typeof __VLS_16) => any;
|
|
12
12
|
};
|
|
13
|
-
declare const __VLS_base:
|
|
14
|
-
text: string;
|
|
13
|
+
declare const __VLS_base: vue112.DefineComponent<AlertDialogCancelProps, {}, {}, {}, {}, vue112.ComponentOptionsMixin, vue112.ComponentOptionsMixin, {}, string, vue112.PublicProps, Readonly<AlertDialogCancelProps> & Readonly<{}>, {
|
|
15
14
|
variant: ButtonVariant;
|
|
16
|
-
|
|
15
|
+
text: string;
|
|
16
|
+
}, {}, {}, {}, string, vue112.ComponentProvideOptions, false, {}, any>;
|
|
17
17
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
18
18
|
declare const _default: typeof __VLS_export;
|
|
19
19
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AlertDialogProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue107 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/alert-dialog/alert-dialog.vue.d.ts
|
|
5
5
|
declare var __VLS_16: {}, __VLS_52: {
|
|
@@ -26,15 +26,15 @@ type __VLS_Slots = {} & {
|
|
|
26
26
|
} & {
|
|
27
27
|
footer?: (props: typeof __VLS_70) => any;
|
|
28
28
|
};
|
|
29
|
-
declare const __VLS_base:
|
|
29
|
+
declare const __VLS_base: vue107.DefineComponent<AlertDialogProps, {}, {}, {}, {}, vue107.ComponentOptionsMixin, vue107.ComponentOptionsMixin, {
|
|
30
30
|
"update:open": (value: boolean) => any;
|
|
31
|
-
}, string,
|
|
31
|
+
}, string, vue107.PublicProps, Readonly<AlertDialogProps> & Readonly<{
|
|
32
32
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
33
33
|
}>, {
|
|
34
34
|
open: boolean;
|
|
35
35
|
defaultOpen: boolean;
|
|
36
36
|
showIcon: boolean;
|
|
37
|
-
}, {}, {}, {}, string,
|
|
37
|
+
}, {}, {}, {}, string, vue107.ComponentProvideOptions, false, {}, any>;
|
|
38
38
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
39
39
|
declare const _default: typeof __VLS_export;
|
|
40
40
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AvatarProps } from "./types.js";
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
2
|
+
import * as vue9 from "vue";
|
|
3
|
+
import * as _soybeanjs_headless0 from "@soybeanjs/headless";
|
|
4
4
|
|
|
5
5
|
//#region src/components/avatar/avatar.vue.d.ts
|
|
6
6
|
declare var __VLS_8: {}, __VLS_10: {}, __VLS_25: {};
|
|
@@ -11,11 +11,11 @@ type __VLS_Slots = {} & {
|
|
|
11
11
|
} & {
|
|
12
12
|
fallback?: (props: typeof __VLS_25) => any;
|
|
13
13
|
};
|
|
14
|
-
declare const __VLS_base:
|
|
15
|
-
loadingStatusChange: (status:
|
|
16
|
-
}, string,
|
|
17
|
-
onLoadingStatusChange?: ((status:
|
|
18
|
-
}>, {}, {}, {}, {}, string,
|
|
14
|
+
declare const __VLS_base: vue9.DefineComponent<AvatarProps, {}, {}, {}, {}, vue9.ComponentOptionsMixin, vue9.ComponentOptionsMixin, {
|
|
15
|
+
loadingStatusChange: (status: _soybeanjs_headless0.ImageLoadingStatus) => any;
|
|
16
|
+
}, string, vue9.PublicProps, Readonly<AvatarProps> & Readonly<{
|
|
17
|
+
onLoadingStatusChange?: ((status: _soybeanjs_headless0.ImageLoadingStatus) => any) | undefined;
|
|
18
|
+
}>, {}, {}, {}, {}, string, vue9.ComponentProvideOptions, false, {}, any>;
|
|
19
19
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
20
20
|
declare const _default: typeof __VLS_export;
|
|
21
21
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BadgeProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue122 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/badge/badge.vue.d.ts
|
|
5
5
|
declare var __VLS_10: {}, __VLS_18: {};
|
|
@@ -8,13 +8,13 @@ type __VLS_Slots = {} & {
|
|
|
8
8
|
} & {
|
|
9
9
|
content?: (props: typeof __VLS_18) => any;
|
|
10
10
|
};
|
|
11
|
-
declare const __VLS_base:
|
|
11
|
+
declare const __VLS_base: vue122.DefineComponent<BadgeProps, {}, {}, {}, {}, vue122.ComponentOptionsMixin, vue122.ComponentOptionsMixin, {
|
|
12
12
|
"update:open": (open: boolean) => any;
|
|
13
|
-
}, string,
|
|
13
|
+
}, string, vue122.PublicProps, Readonly<BadgeProps> & Readonly<{
|
|
14
14
|
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
15
15
|
}>, {
|
|
16
16
|
open: boolean;
|
|
17
|
-
}, {}, {}, {}, string,
|
|
17
|
+
}, {}, {}, {}, string, vue122.ComponentProvideOptions, false, {}, any>;
|
|
18
18
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
19
19
|
declare const _default: typeof __VLS_export;
|
|
20
20
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{mergeSlotVariants as e}from"../../theme/shared.js";import t from"../icon/icon.js";import{breadcrumbVariants as n}from"../../variants/breadcrumb.js";import{getEllipsisRange as r}from"./shared.js";import{Fragment as i,computed as a,createBlock as o,createCommentVNode as s,createElementBlock as c,createTextVNode as l,createVNode as u,defineComponent as d,guardReactiveProps as f,mergeProps as p,normalizeProps as m,openBlock as h,renderList as g,renderSlot as _,toDisplayString as v,unref as y,withCtx as b}from"vue";import{useOmitProps as x}from"@soybeanjs/headless/composables";import{BreadcrumbEllipsis as S,BreadcrumbItem as C,BreadcrumbLink as w,BreadcrumbList as T,BreadcrumbPage as E,BreadcrumbRoot as D,BreadcrumbSeparator as O,provideBreadcrumbUi as k}from"@soybeanjs/headless";var A=d({name:`SBreadcrumb`,__name:`breadcrumb`,props:{class:{},size:{},ui:{},items:{},ellipsis:{type:[Boolean,Array,null]},listProps:{},itemProps:{},linkProps:{},pageProps:{},separatorProps:{},ellipsisProps:{}},emits:[`click`],setup(d,{emit:A}){let j=d,M=A,N=x(j,[`class`,`size`,`ui`,`items`,`ellipsis`,`listProps`,`itemProps`,`linkProps`,`pageProps`,`separatorProps`,`ellipsisProps`]),P=a(()=>e(n({size:j.size}),j.ui,{root:j.class})),F=a(()=>r(j.items,j.ellipsis)),I=a(()=>F.value?.[0]),L=a(()=>{if(!F.value)return j.items;let[e,t]=F.value;return[...j.items.slice(0,e),...j.items.slice(t)]}),R=a(()=>{if(!F.value)return[];let[e,t]=F.value;return j.items.slice(e,t)});function z(e){M(`click`,e)}return k(P),(e,n)=>(h(),o(y(D),m(f(y(N))),{default:b(()=>[u(y(T),m(f(d.listProps)),{default:b(()=>[(h(!0),c(i,null,g(L.value,(n,r)=>(h(),c(i,{key:n.value||r},[I.value&&r===I.value?(h(),c(i,{key:0},[_(e.$slots,`ellipsis`,{ellipsisItems:R.value},()=>[u(y(S),p({ref_for:!0},d.ellipsisProps),{default:b(()=>[_(e.$slots,`ellipsis-icon`,{},()=>[u(t,{icon:`lucide:ellipsis`})])]),_:3},16)]),u(y(O),p({ref_for:!0},d.separatorProps),{default:b(()=>[_(e.$slots,`separator`,{},()=>[u(t,{icon:`lucide:chevron-right`})])]),_:3},16)],64)):s(`v-if`,!0),u(y(C),p({ref_for:!0},d.itemProps,{onClick:e=>z(n)}),{default:b(()=>[_(e.$slots,`item-leading`,{item:n},()=>[
|
|
1
|
+
import{mergeSlotVariants as e}from"../../theme/shared.js";import t from"../icon/icon.js";import{breadcrumbVariants as n}from"../../variants/breadcrumb.js";import{getEllipsisRange as r}from"./shared.js";import{Fragment as i,computed as a,createBlock as o,createCommentVNode as s,createElementBlock as c,createTextVNode as l,createVNode as u,defineComponent as d,guardReactiveProps as f,mergeProps as p,normalizeProps as m,openBlock as h,renderList as g,renderSlot as _,toDisplayString as v,unref as y,withCtx as b}from"vue";import{useOmitProps as x}from"@soybeanjs/headless/composables";import{BreadcrumbEllipsis as S,BreadcrumbItem as C,BreadcrumbLink as w,BreadcrumbList as T,BreadcrumbPage as E,BreadcrumbRoot as D,BreadcrumbSeparator as O,provideBreadcrumbUi as k}from"@soybeanjs/headless";var A=d({name:`SBreadcrumb`,__name:`breadcrumb`,props:{class:{},size:{},ui:{},items:{},ellipsis:{type:[Boolean,Array,null]},listProps:{},itemProps:{},linkProps:{},pageProps:{},separatorProps:{},ellipsisProps:{}},emits:[`click`],setup(d,{emit:A}){let j=d,M=A,N=x(j,[`class`,`size`,`ui`,`items`,`ellipsis`,`listProps`,`itemProps`,`linkProps`,`pageProps`,`separatorProps`,`ellipsisProps`]),P=a(()=>e(n({size:j.size}),j.ui,{root:j.class})),F=a(()=>r(j.items,j.ellipsis)),I=a(()=>F.value?.[0]),L=a(()=>{if(!F.value)return j.items;let[e,t]=F.value;return[...j.items.slice(0,e),...j.items.slice(t)]}),R=a(()=>{if(!F.value)return[];let[e,t]=F.value;return j.items.slice(e,t)});function z(e){M(`click`,e)}return k(P),(e,n)=>(h(),o(y(D),m(f(y(N))),{default:b(()=>[u(y(T),m(f(d.listProps)),{default:b(()=>[(h(!0),c(i,null,g(L.value,(n,r)=>(h(),c(i,{key:n.value||r},[I.value&&r===I.value?(h(),c(i,{key:0},[_(e.$slots,`ellipsis`,{ellipsisItems:R.value},()=>[u(y(S),p({ref_for:!0},d.ellipsisProps),{default:b(()=>[_(e.$slots,`ellipsis-icon`,{},()=>[u(t,{icon:`lucide:ellipsis`})])]),_:3},16)]),u(y(O),p({ref_for:!0},d.separatorProps),{default:b(()=>[_(e.$slots,`separator`,{},()=>[u(t,{icon:`lucide:chevron-right`})])]),_:3},16)],64)):s(`v-if`,!0),u(y(C),p({ref_for:!0},d.itemProps,{onClick:e=>z(n)}),{default:b(()=>[_(e.$slots,`item-leading`,{item:n},()=>[u(t,{icon:n.icon},null,8,[`icon`])]),_(e.$slots,`default`,{item:n},()=>[n.to||n.href?(h(),o(y(w),p({key:0,ref_for:!0},d.linkProps,{disabled:n.disabled,to:n.to,href:n.href,target:n.target,external:n.external}),{default:b(()=>[_(e.$slots,`item-link`,{item:n},()=>[l(v(n.label),1)])]),_:2},1040,[`disabled`,`to`,`href`,`target`,`external`])):(h(),o(y(E),p({key:1,ref_for:!0},d.pageProps),{default:b(()=>[_(e.$slots,`item-label`,{item:n},()=>[l(v(n.label),1)])]),_:2},1040))]),_(e.$slots,`item-trailing`,{item:n})]),_:2},1040,[`onClick`]),r<L.value.length-1?(h(),o(y(O),p({key:1,ref_for:!0},d.separatorProps),{default:b(()=>[_(e.$slots,`separator`,{},()=>[u(t,{icon:`lucide:chevron-right`})])]),_:3},16)):s(`v-if`,!0)],64))),128))]),_:3},16)]),_:3},16))}});export{A as default};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { BreadcrumbEmits, BreadcrumbOptionData, BreadcrumbProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue129 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/breadcrumb/breadcrumb.vue.d.ts
|
|
5
5
|
declare const __VLS_export: <T extends BreadcrumbOptionData = BreadcrumbOptionData>(__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<{
|
|
6
|
-
props:
|
|
6
|
+
props: vue129.PublicProps & __VLS_PrettifyLocal<BreadcrumbProps<T> & {
|
|
7
7
|
onClick?: ((item: T) => any) | undefined;
|
|
8
8
|
}> & (typeof globalThis extends {
|
|
9
9
|
__VLS_PROPS_FALLBACK: infer P;
|
|
@@ -42,7 +42,7 @@ declare const __VLS_export: <T extends BreadcrumbOptionData = BreadcrumbOptionDa
|
|
|
42
42
|
separator?: (props: {}) => any;
|
|
43
43
|
};
|
|
44
44
|
emit: BreadcrumbEmits<T>;
|
|
45
|
-
}>) =>
|
|
45
|
+
}>) => vue129.VNode & {
|
|
46
46
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
47
47
|
};
|
|
48
48
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { ButtonGroupProps } from "./types.js";
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
2
|
+
import * as vue34 from "vue";
|
|
3
|
+
import * as _soybeanjs_headless1 from "@soybeanjs/headless";
|
|
4
4
|
|
|
5
5
|
//#region src/components/button/button-group.vue.d.ts
|
|
6
6
|
declare var __VLS_8: {};
|
|
7
7
|
type __VLS_Slots = {} & {
|
|
8
8
|
default?: (props: typeof __VLS_8) => any;
|
|
9
9
|
};
|
|
10
|
-
declare const __VLS_base:
|
|
11
|
-
dir:
|
|
12
|
-
orientation:
|
|
13
|
-
}, {}, {}, {}, string,
|
|
10
|
+
declare const __VLS_base: vue34.DefineComponent<ButtonGroupProps, {}, {}, {}, {}, vue34.ComponentOptionsMixin, vue34.ComponentOptionsMixin, {}, string, vue34.PublicProps, Readonly<ButtonGroupProps> & Readonly<{}>, {
|
|
11
|
+
dir: _soybeanjs_headless1.Direction;
|
|
12
|
+
orientation: _soybeanjs_headless1.DataOrientation;
|
|
13
|
+
}, {}, {}, {}, string, vue34.ComponentProvideOptions, false, {}, any>;
|
|
14
14
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
15
15
|
declare const _default: typeof __VLS_export;
|
|
16
16
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -2,15 +2,15 @@ import { ThemeColor } from "../../theme/types.js";
|
|
|
2
2
|
import { ButtonShape, ButtonVariant } from "../../variants/button.js";
|
|
3
3
|
import { ButtonIconProps } from "./types.js";
|
|
4
4
|
import "../../index.js";
|
|
5
|
-
import * as
|
|
5
|
+
import * as vue24 from "vue";
|
|
6
6
|
|
|
7
7
|
//#region src/components/button/button-icon.vue.d.ts
|
|
8
|
-
declare const __VLS_export:
|
|
8
|
+
declare const __VLS_export: vue24.DefineComponent<ButtonIconProps, {}, {}, {}, {}, vue24.ComponentOptionsMixin, vue24.ComponentOptionsMixin, {}, string, vue24.PublicProps, Readonly<ButtonIconProps> & Readonly<{}>, {
|
|
9
9
|
color: ThemeColor;
|
|
10
10
|
variant: ButtonVariant;
|
|
11
11
|
shape: ButtonShape;
|
|
12
12
|
fitContent: boolean;
|
|
13
|
-
}, {}, {}, {}, string,
|
|
13
|
+
}, {}, {}, {}, string, vue24.ComponentProvideOptions, false, {}, any>;
|
|
14
14
|
declare const _default: typeof __VLS_export;
|
|
15
15
|
//#endregion
|
|
16
16
|
export { _default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ButtonVariant } from "../../variants/button.js";
|
|
2
2
|
import { ButtonLinkProps } from "./types.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as vue29 from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/components/button/button-link.vue.d.ts
|
|
6
6
|
declare var __VLS_14: {
|
|
@@ -11,16 +11,16 @@ declare var __VLS_14: {
|
|
|
11
11
|
type __VLS_Slots = {} & {
|
|
12
12
|
default?: (props: typeof __VLS_14) => any;
|
|
13
13
|
};
|
|
14
|
-
declare const __VLS_base:
|
|
14
|
+
declare const __VLS_base: vue29.DefineComponent<ButtonLinkProps, {}, {}, {}, {}, vue29.ComponentOptionsMixin, vue29.ComponentOptionsMixin, {}, string, vue29.PublicProps, Readonly<ButtonLinkProps> & Readonly<{}>, {
|
|
15
|
+
variant: ButtonVariant;
|
|
15
16
|
disabled: boolean;
|
|
16
17
|
replace: boolean;
|
|
17
|
-
variant: ButtonVariant;
|
|
18
18
|
external: boolean;
|
|
19
19
|
viewTransition: boolean;
|
|
20
20
|
noRel: boolean;
|
|
21
21
|
prefetch: boolean;
|
|
22
22
|
noPrefetch: boolean;
|
|
23
|
-
}, {}, {}, {}, string,
|
|
23
|
+
}, {}, {}, {}, string, vue29.ComponentProvideOptions, false, {}, any>;
|
|
24
24
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
25
25
|
declare const _default: typeof __VLS_export;
|
|
26
26
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ButtonLoadingProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue19 from "vue";
|
|
3
3
|
import { Align } from "@soybeanjs/headless";
|
|
4
4
|
|
|
5
5
|
//#region src/components/button/button-loading.vue.d.ts
|
|
@@ -17,10 +17,10 @@ type __VLS_Slots = {} & {
|
|
|
17
17
|
} & {
|
|
18
18
|
trailing?: (props: typeof __VLS_33) => any;
|
|
19
19
|
};
|
|
20
|
-
declare const __VLS_base:
|
|
20
|
+
declare const __VLS_base: vue19.DefineComponent<ButtonLoadingProps, {}, {}, {}, {}, vue19.ComponentOptionsMixin, vue19.ComponentOptionsMixin, {}, string, vue19.PublicProps, Readonly<ButtonLoadingProps> & Readonly<{}>, {
|
|
21
21
|
loadingIcon: string;
|
|
22
22
|
loadingPosition: Align;
|
|
23
|
-
}, {}, {}, {}, string,
|
|
23
|
+
}, {}, {}, {}, string, vue19.ComponentProvideOptions, false, {}, any>;
|
|
24
24
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
25
25
|
declare const _default: typeof __VLS_export;
|
|
26
26
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ButtonProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue14 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/button/button.vue.d.ts
|
|
5
5
|
declare var __VLS_10: {}, __VLS_12: {}, __VLS_14: {};
|
|
@@ -10,11 +10,11 @@ type __VLS_Slots = {} & {
|
|
|
10
10
|
} & {
|
|
11
11
|
trailing?: (props: typeof __VLS_14) => any;
|
|
12
12
|
};
|
|
13
|
-
declare const __VLS_base:
|
|
13
|
+
declare const __VLS_base: vue14.DefineComponent<ButtonProps, {}, {}, {}, {}, vue14.ComponentOptionsMixin, vue14.ComponentOptionsMixin, {
|
|
14
14
|
click: (event: MouseEvent) => any;
|
|
15
|
-
}, string,
|
|
15
|
+
}, string, vue14.PublicProps, Readonly<ButtonProps> & Readonly<{
|
|
16
16
|
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
17
|
-
}>, {}, {}, {}, {}, string,
|
|
17
|
+
}>, {}, {}, {}, {}, string, vue14.ComponentProvideOptions, false, {}, any>;
|
|
18
18
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
19
19
|
declare const _default: typeof __VLS_export;
|
|
20
20
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CardProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue4 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/card/card.vue.d.ts
|
|
5
5
|
type Slots = {
|
|
@@ -14,9 +14,9 @@ type Slots = {
|
|
|
14
14
|
description: () => any;
|
|
15
15
|
};
|
|
16
16
|
type __VLS_Slots = Slots;
|
|
17
|
-
declare const __VLS_base:
|
|
17
|
+
declare const __VLS_base: vue4.DefineComponent<CardProps, {}, {}, {}, {}, vue4.ComponentOptionsMixin, vue4.ComponentOptionsMixin, {}, string, vue4.PublicProps, Readonly<CardProps> & Readonly<{}>, {
|
|
18
18
|
scrollable: boolean;
|
|
19
|
-
}, {}, {}, {}, string,
|
|
19
|
+
}, {}, {}, {}, string, vue4.ComponentProvideOptions, false, {}, any>;
|
|
20
20
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
21
21
|
declare const _default: typeof __VLS_export;
|
|
22
22
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { CheckboxCardGroupOptionData, CheckboxCardGroupProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue143 from "vue";
|
|
3
3
|
import { DefinedValue } from "@soybeanjs/headless";
|
|
4
4
|
|
|
5
5
|
//#region src/components/checkbox/checkbox-card-group.vue.d.ts
|
|
6
6
|
declare const __VLS_export: <T extends DefinedValue = DefinedValue, S extends CheckboxCardGroupOptionData<T> = CheckboxCardGroupOptionData<T>>(__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<{
|
|
7
|
-
props:
|
|
7
|
+
props: vue143.PublicProps & __VLS_PrettifyLocal<CheckboxCardGroupProps<T, S> & {
|
|
8
8
|
"onUpdate:modelValue"?: ((value: T[]) => any) | undefined;
|
|
9
9
|
}> & (typeof globalThis extends {
|
|
10
10
|
__VLS_PROPS_FALLBACK: infer P;
|
|
@@ -13,7 +13,7 @@ declare const __VLS_export: <T extends DefinedValue = DefinedValue, S extends Ch
|
|
|
13
13
|
attrs: any;
|
|
14
14
|
slots: {};
|
|
15
15
|
emit: (evt: "update:modelValue", value: T[]) => void;
|
|
16
|
-
}>) =>
|
|
16
|
+
}>) => vue143.VNode & {
|
|
17
17
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
18
18
|
};
|
|
19
19
|
declare const _default: typeof __VLS_export;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{mergeSlotVariants as e}from"../../theme/shared.js";import t from"../icon/icon.js";import{checkboxCardVariants as n}from"../../variants/checkbox.js";import{Transition as r,computed as i,createBlock as a,createCommentVNode as o,createElementBlock as s,createElementVNode as c,createTextVNode as l,createVNode as u,defineComponent as d,guardReactiveProps as f,mergeProps as p,normalizeClass as m,normalizeProps as h,openBlock as g,renderSlot as _,toDisplayString as v,unref as y,useId as b,useSlots as x,withCtx as S}from"vue";import{useOmitProps as C}from"@soybeanjs/headless/composables";import{CheckboxControl as w,CheckboxIndicator as T,CheckboxLabel as E,CheckboxRoot as D,Slot as O,provideCheckboxUi as k}from"@soybeanjs/headless";const A={key:0};var j=d({name:`SCheckboxCard`,__name:`checkbox-card`,props:{ui:{},icon:{},description:{},color:{},size:{},shape:{},label:{},controlProps:{},indicatorProps:{},labelProps:{},modelValue:{type:[Boolean,String,null],default:void 0},defaultValue:{type:[Boolean,String]},value:{},disabled:{type:Boolean},name:{},required:{type:Boolean}},emits:[`update:modelValue`],setup(d,{emit:j}){let M=d,N=j,P=x(),F=C(M,[`ui`,`color`,`size`,`shape`,`label`,`icon`,`description`,`controlProps`,`indicatorProps`,`labelProps`]),I=b(),L=i(()=>M.id||`checkbox-${I}`),R=i(()=>M.modelValue===`indeterminate`),z=i(()=>e(n({color:M.color,size:M.size,shape:M.shape}),M.ui));return k(z),(e,n)=>(g(),a(y(D),p(y(F),{"onUpdate:modelValue":n[0]||=e=>N(`update:modelValue`,e)}),{default:S(()=>[c(`div`,{class:m(z.value.content)},[
|
|
1
|
+
import{mergeSlotVariants as e}from"../../theme/shared.js";import t from"../icon/icon.js";import{checkboxCardVariants as n}from"../../variants/checkbox.js";import{Transition as r,computed as i,createBlock as a,createCommentVNode as o,createElementBlock as s,createElementVNode as c,createTextVNode as l,createVNode as u,defineComponent as d,guardReactiveProps as f,mergeProps as p,normalizeClass as m,normalizeProps as h,openBlock as g,renderSlot as _,toDisplayString as v,unref as y,useId as b,useSlots as x,withCtx as S}from"vue";import{useOmitProps as C}from"@soybeanjs/headless/composables";import{CheckboxControl as w,CheckboxIndicator as T,CheckboxLabel as E,CheckboxRoot as D,Slot as O,provideCheckboxUi as k}from"@soybeanjs/headless";const A={key:0};var j=d({name:`SCheckboxCard`,__name:`checkbox-card`,props:{ui:{},icon:{},description:{},color:{},size:{},shape:{},label:{},controlProps:{},indicatorProps:{},labelProps:{},modelValue:{type:[Boolean,String,null],default:void 0},defaultValue:{type:[Boolean,String]},value:{},disabled:{type:Boolean},name:{},required:{type:Boolean}},emits:[`update:modelValue`],setup(d,{emit:j}){let M=d,N=j,P=x(),F=C(M,[`ui`,`color`,`size`,`shape`,`label`,`icon`,`description`,`controlProps`,`indicatorProps`,`labelProps`]),I=b(),L=i(()=>M.id||`checkbox-${I}`),R=i(()=>M.modelValue===`indeterminate`),z=i(()=>e(n({color:M.color,size:M.size,shape:M.shape}),M.ui));return k(z),(e,n)=>(g(),a(y(D),p(y(F),{"onUpdate:modelValue":n[0]||=e=>N(`update:modelValue`,e)}),{default:S(()=>[c(`div`,{class:m(z.value.content)},[u(t,{icon:d.icon,class:m(z.value.icon)},null,8,[`icon`,`class`]),c(`div`,{class:m(z.value.textContent)},[u(y(E),p(d.labelProps,{for:L.value}),{default:S(()=>[_(e.$slots,`default`,{id:L.value},()=>[l(v(d.label),1)])]),_:3},16,[`for`]),y(P).description||d.description?(g(),a(y(O),{key:0,class:m(z.value.description)},{default:S(()=>[_(e.$slots,`description`,{},()=>[d.description?(g(),s(`p`,A,v(d.description),1)):o(`v-if`,!0)])]),_:3},8,[`class`])):o(`v-if`,!0)],2)],2),u(y(w),p(d.controlProps,{id:L.value,class:`checkbox-control`}),{default:S(()=>[u(r,{"enter-active-class":`transition-50`,"enter-from-class":`opacity-0 scale-0`},{default:S(()=>[u(y(T),h(f(d.indicatorProps)),{default:S(()=>[u(t,{icon:R.value?`lucide:minus`:`lucide:check`,class:`size-full`},null,8,[`icon`])]),_:1},16)]),_:1})]),_:1},16,[`id`])]),_:3},16))}});export{j as default};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CheckboxCardProps } from "./types.js";
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
2
|
+
import * as vue145 from "vue";
|
|
3
|
+
import * as _soybeanjs_headless84 from "@soybeanjs/headless";
|
|
4
4
|
|
|
5
5
|
//#region src/components/checkbox/checkbox-card.vue.d.ts
|
|
6
6
|
declare var __VLS_21: {
|
|
@@ -11,13 +11,13 @@ type __VLS_Slots = {} & {
|
|
|
11
11
|
} & {
|
|
12
12
|
description?: (props: typeof __VLS_29) => any;
|
|
13
13
|
};
|
|
14
|
-
declare const __VLS_base:
|
|
15
|
-
"update:modelValue": (value:
|
|
16
|
-
}, string,
|
|
17
|
-
"onUpdate:modelValue"?: ((value:
|
|
14
|
+
declare const __VLS_base: vue145.DefineComponent<CheckboxCardProps, {}, {}, {}, {}, vue145.ComponentOptionsMixin, vue145.ComponentOptionsMixin, {
|
|
15
|
+
"update:modelValue": (value: _soybeanjs_headless84.CheckedState | null) => any;
|
|
16
|
+
}, string, vue145.PublicProps, Readonly<CheckboxCardProps> & Readonly<{
|
|
17
|
+
"onUpdate:modelValue"?: ((value: _soybeanjs_headless84.CheckedState | null) => any) | undefined;
|
|
18
18
|
}>, {
|
|
19
|
-
modelValue:
|
|
20
|
-
}, {}, {}, {}, string,
|
|
19
|
+
modelValue: _soybeanjs_headless84.CheckedState | null;
|
|
20
|
+
}, {}, {}, {}, string, vue145.ComponentProvideOptions, false, {}, any>;
|
|
21
21
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
22
22
|
declare const _default: typeof __VLS_export;
|
|
23
23
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { CheckboxGroupOptionData, CheckboxGroupProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue136 from "vue";
|
|
3
3
|
import { DefinedValue } from "@soybeanjs/headless";
|
|
4
4
|
|
|
5
5
|
//#region src/components/checkbox/checkbox-group.vue.d.ts
|
|
6
6
|
declare const __VLS_export: <T extends DefinedValue = DefinedValue, S extends CheckboxGroupOptionData<T> = CheckboxGroupOptionData<T>>(__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<{
|
|
7
|
-
props:
|
|
7
|
+
props: vue136.PublicProps & __VLS_PrettifyLocal<CheckboxGroupProps<T, S> & {
|
|
8
8
|
"onUpdate:modelValue"?: ((value: T[]) => any) | undefined;
|
|
9
9
|
}> & (typeof globalThis extends {
|
|
10
10
|
__VLS_PROPS_FALLBACK: infer P;
|
|
@@ -13,7 +13,7 @@ declare const __VLS_export: <T extends DefinedValue = DefinedValue, S extends Ch
|
|
|
13
13
|
attrs: any;
|
|
14
14
|
slots: {};
|
|
15
15
|
emit: (evt: "update:modelValue", value: T[]) => void;
|
|
16
|
-
}>) =>
|
|
16
|
+
}>) => vue136.VNode & {
|
|
17
17
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
18
18
|
};
|
|
19
19
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import { CheckboxProps } from "./types.js";
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
2
|
+
import * as vue138 from "vue";
|
|
3
|
+
import * as _soybeanjs_headless77 from "@soybeanjs/headless";
|
|
4
4
|
|
|
5
5
|
//#region src/components/checkbox/checkbox.vue.d.ts
|
|
6
6
|
declare var __VLS_28: {
|
|
7
|
-
modelValue:
|
|
8
|
-
state:
|
|
7
|
+
modelValue: _soybeanjs_headless77.CheckedState | null | undefined;
|
|
8
|
+
state: _soybeanjs_headless77.CheckedState;
|
|
9
9
|
}, __VLS_41: {
|
|
10
10
|
id: string;
|
|
11
|
-
modelValue:
|
|
12
|
-
state:
|
|
11
|
+
modelValue: _soybeanjs_headless77.CheckedState | null | undefined;
|
|
12
|
+
state: _soybeanjs_headless77.CheckedState;
|
|
13
13
|
};
|
|
14
14
|
type __VLS_Slots = {} & {
|
|
15
15
|
indicator?: (props: typeof __VLS_28) => any;
|
|
16
16
|
} & {
|
|
17
17
|
default?: (props: typeof __VLS_41) => any;
|
|
18
18
|
};
|
|
19
|
-
declare const __VLS_base:
|
|
20
|
-
"update:modelValue": (value:
|
|
21
|
-
}, string,
|
|
22
|
-
"onUpdate:modelValue"?: ((value:
|
|
19
|
+
declare const __VLS_base: vue138.DefineComponent<CheckboxProps, {}, {}, {}, {}, vue138.ComponentOptionsMixin, vue138.ComponentOptionsMixin, {
|
|
20
|
+
"update:modelValue": (value: _soybeanjs_headless77.CheckedState | null) => any;
|
|
21
|
+
}, string, vue138.PublicProps, Readonly<CheckboxProps> & Readonly<{
|
|
22
|
+
"onUpdate:modelValue"?: ((value: _soybeanjs_headless77.CheckedState | null) => any) | undefined;
|
|
23
23
|
}>, {
|
|
24
|
-
modelValue:
|
|
25
|
-
}, {}, {}, {}, string,
|
|
24
|
+
modelValue: _soybeanjs_headless77.CheckedState | null;
|
|
25
|
+
}, {}, {}, {}, string, vue138.ComponentProvideOptions, false, {}, any>;
|
|
26
26
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
27
27
|
declare const _default: typeof __VLS_export;
|
|
28
28
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CollapsibleProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue150 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/collapsible/collapsible.vue.d.ts
|
|
5
5
|
declare var __VLS_10: {
|
|
@@ -8,15 +8,15 @@ declare var __VLS_10: {
|
|
|
8
8
|
type __VLS_Slots = {} & {
|
|
9
9
|
default?: (props: typeof __VLS_10) => any;
|
|
10
10
|
};
|
|
11
|
-
declare const __VLS_base:
|
|
11
|
+
declare const __VLS_base: vue150.DefineComponent<CollapsibleProps, {}, {}, {}, {}, vue150.ComponentOptionsMixin, vue150.ComponentOptionsMixin, {
|
|
12
12
|
"update:open": (value: boolean) => any;
|
|
13
|
-
}, string,
|
|
13
|
+
}, string, vue150.PublicProps, Readonly<CollapsibleProps> & Readonly<{
|
|
14
14
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
15
15
|
}>, {
|
|
16
16
|
open: boolean;
|
|
17
17
|
defaultOpen: boolean;
|
|
18
18
|
unmountOnHide: boolean;
|
|
19
|
-
}, {}, {}, {}, string,
|
|
19
|
+
}, {}, {}, {}, string, vue150.ComponentProvideOptions, false, {}, any>;
|
|
20
20
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
21
21
|
declare const _default: typeof __VLS_export;
|
|
22
22
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"../icon/icon.js";import{useCommandExtraUi as t}from"./context.js";import n from"../kbd/kbd.js";import{Fragment as r,createBlock as i,createCommentVNode as a,createElementBlock as o,createElementVNode as s,createTextVNode as c,createVNode as l,defineComponent as u,mergeProps as d,openBlock as f,renderSlot as p,toDisplayString as m,unref as h,withCtx as g}from"vue";import{useOmitProps as _}from"@soybeanjs/headless/composables";import{ListboxItem as v,SeparatorRoot as y}from"@soybeanjs/headless";var b=u({name:`SCommandSingleOption`,inheritAttrs:!1,__name:`command-single-option`,props:{item:{},itemLabelProps:{},shortcutProps:{},separatorProps:{},asChild:{type:Boolean},as:{}},emits:[`select`],setup(u,{emit:b}){let x=u,S=b,C=_(x,[`item`,`itemLabelProps`,`shortcutProps`,`separatorProps`]),w=t();return(t,_)=>(f(),o(r,null,[l(h(v),d(h(C),{value:u.item.value,disabled:u.item.disabled,onSelect:_[0]||=e=>S(`select`,e)}),{default:g(()=>[p(t.$slots,`item-leading`,{},()=>[
|
|
1
|
+
import e from"../icon/icon.js";import{useCommandExtraUi as t}from"./context.js";import n from"../kbd/kbd.js";import{Fragment as r,createBlock as i,createCommentVNode as a,createElementBlock as o,createElementVNode as s,createTextVNode as c,createVNode as l,defineComponent as u,mergeProps as d,openBlock as f,renderSlot as p,toDisplayString as m,unref as h,withCtx as g}from"vue";import{useOmitProps as _}from"@soybeanjs/headless/composables";import{ListboxItem as v,SeparatorRoot as y}from"@soybeanjs/headless";var b=u({name:`SCommandSingleOption`,inheritAttrs:!1,__name:`command-single-option`,props:{item:{},itemLabelProps:{},shortcutProps:{},separatorProps:{},asChild:{type:Boolean},as:{}},emits:[`select`],setup(u,{emit:b}){let x=u,S=b,C=_(x,[`item`,`itemLabelProps`,`shortcutProps`,`separatorProps`]),w=t();return(t,_)=>(f(),o(r,null,[l(h(v),d(h(C),{value:u.item.value,disabled:u.item.disabled,onSelect:_[0]||=e=>S(`select`,e)}),{default:g(()=>[p(t.$slots,`item-leading`,{},()=>[l(e,{icon:u.item.icon},null,8,[`icon`])]),s(`span`,d({class:h(w)?.itemLabel},u.itemLabelProps),[p(t.$slots,`item-label`,{},()=>[c(m(u.item.label),1)])],16),p(t.$slots,`item-trailing`),u.item.shortcut?(f(),i(n,d({key:0},u.shortcutProps,{value:u.item.shortcut,class:h(w)?.shortcut}),null,16,[`value`,`class`])):a(`v-if`,!0)]),_:3},16,[`value`,`disabled`]),u.item.separator?(f(),i(h(y),d({key:0},u.separatorProps,{class:h(w)?.separator}),null,16,[`class`])):a(`v-if`,!0)],64))}});export{b as default};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { CommandBaseOptionData, CommandProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue155 from "vue";
|
|
3
3
|
import * as _soybeanjs_headless_composables0 from "@soybeanjs/headless/composables";
|
|
4
|
-
import * as
|
|
4
|
+
import * as _soybeanjs_headless87 from "@soybeanjs/headless";
|
|
5
5
|
|
|
6
6
|
//#region src/components/command/command.vue.d.ts
|
|
7
7
|
declare const __VLS_export: <T extends CommandBaseOptionData = CommandBaseOptionData>(__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
|
-
props:
|
|
9
|
-
onSelect?: ((event:
|
|
10
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
11
|
-
onHighlight?: ((payload?: _soybeanjs_headless_composables0.CollectionItemData<_soybeanjs_headless3.ListboxCollectionItemData> | undefined) => any) | undefined;
|
|
8
|
+
props: vue155.PublicProps & __VLS_PrettifyLocal<CommandProps<T> & {
|
|
9
|
+
onSelect?: ((event: _soybeanjs_headless87.SelectEvent<string>) => any) | undefined;
|
|
12
10
|
onEntryFocus?: ((event: CustomEvent<any>) => any) | undefined;
|
|
11
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
12
|
+
onHighlight?: ((payload?: _soybeanjs_headless_composables0.CollectionItemData<_soybeanjs_headless87.ListboxCollectionItemData> | undefined) => any) | undefined;
|
|
13
13
|
onLeave?: ((event: Event) => any) | undefined;
|
|
14
14
|
"onUpdate:searchTerm"?: ((value: string) => any) | undefined;
|
|
15
15
|
}> & (typeof globalThis extends {
|
|
@@ -38,8 +38,8 @@ declare const __VLS_export: <T extends CommandBaseOptionData = CommandBaseOption
|
|
|
38
38
|
} & {
|
|
39
39
|
bottom?: (props: {}) => any;
|
|
40
40
|
};
|
|
41
|
-
emit: ((evt: "select", event:
|
|
42
|
-
}>) =>
|
|
41
|
+
emit: ((evt: "select", event: _soybeanjs_headless87.SelectEvent<string>) => void) & ((evt: "entryFocus", event: CustomEvent<any>) => void) & ((evt: "update:modelValue", value: string) => void) & ((evt: "highlight", payload?: _soybeanjs_headless_composables0.CollectionItemData<_soybeanjs_headless87.ListboxCollectionItemData> | undefined) => void) & ((evt: "leave", event: Event) => void) & ((evt: "update:searchTerm", value: string) => void);
|
|
42
|
+
}>) => vue155.VNode & {
|
|
43
43
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
44
44
|
};
|
|
45
45
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ThemeSize } from "../../theme/types.js";
|
|
2
2
|
import "../../theme/index.js";
|
|
3
3
|
import { ConfigProviderProps as ConfigProviderProps$1 } from "./types.js";
|
|
4
|
-
import * as
|
|
5
|
-
import * as
|
|
4
|
+
import * as vue157 from "vue";
|
|
5
|
+
import * as _soybeanjs_headless91 from "@soybeanjs/headless";
|
|
6
6
|
import * as _soybeanjs_shadcn_theme0 from "@soybeanjs/shadcn-theme";
|
|
7
7
|
|
|
8
8
|
//#region src/components/config-provider/config-provider.vue.d.ts
|
|
@@ -10,15 +10,15 @@ declare var __VLS_26: {};
|
|
|
10
10
|
type __VLS_Slots = {} & {
|
|
11
11
|
default?: (props: typeof __VLS_26) => any;
|
|
12
12
|
};
|
|
13
|
-
declare const __VLS_base:
|
|
14
|
-
dir: _soybeanjs_headless41.Direction;
|
|
13
|
+
declare const __VLS_base: vue157.DefineComponent<ConfigProviderProps$1, {}, {}, {}, {}, vue157.ComponentOptionsMixin, vue157.ComponentOptionsMixin, {}, string, vue157.PublicProps, Readonly<ConfigProviderProps$1> & Readonly<{}>, {
|
|
15
14
|
size: ThemeSize;
|
|
15
|
+
dir: _soybeanjs_headless91.Direction;
|
|
16
16
|
theme: _soybeanjs_shadcn_theme0.ThemeOptions;
|
|
17
17
|
iconify: {
|
|
18
18
|
width?: string;
|
|
19
19
|
height?: string;
|
|
20
20
|
};
|
|
21
|
-
}, {}, {}, {}, string,
|
|
21
|
+
}, {}, {}, {}, string, vue157.ComponentProvideOptions, false, {}, any>;
|
|
22
22
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
23
23
|
declare const _default: typeof __VLS_export;
|
|
24
24
|
type __VLS_WithSlots<T, S> = T & {
|