@soybeanjs/ui 0.0.2 → 0.0.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.
- package/README.md +86 -6
- package/README.zh-CN.md +251 -0
- package/dist/components/accordion/accordion.vue.d.ts +3 -3
- 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.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 +5 -5
- 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.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.vue.d.ts +7 -7
- package/dist/components/config-provider/config-provider.vue.d.ts +5 -5
- package/dist/components/context-menu/context-menu-checkbox.vue.d.ts +9 -9
- package/dist/components/context-menu/context-menu-radio.vue.d.ts +9 -9
- 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 +9 -9
- package/dist/components/dropdown-menu/dropdown-menu-radio.vue.d.ts +9 -9
- 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-field-array.vue.d.ts +2 -2
- package/dist/components/form/form-field.vue.d.ts +2 -2
- package/dist/components/form/form.vue.d.ts +2 -2
- package/dist/components/icon/icon.vue.d.ts +4 -4
- 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 +4 -4
- 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-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.vue.d.ts +11 -11
- package/dist/components/number-input/number-input.vue.d.ts +4 -4
- 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 +11 -11
- package/dist/components/radio-group/radio-card-group.vue.d.ts +3 -3
- 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.vue.d.ts +8 -8
- package/dist/components/separator/separator.vue.d.ts +5 -5
- package/dist/components/switch/switch.vue.d.ts +16 -16
- 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/tooltip/tooltip.vue.d.ts +7 -7
- 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-item-wrapper.vue.d.ts +2 -2
- package/dist/components/tree-menu/tree-menu-item.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/button.d.ts +3 -3
- package/dist/variants/checkbox.d.ts +3 -3
- package/dist/variants/kbd.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/switch.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/dist/variants/tree-menu.js +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"../button/button-icon.js";import t from"../icon/icon.js";import n from"../badge/badge.js";import r from"../link/link.js";import i from"../dropdown-menu/dropdown-menu.js";import a from"../tag/tag.js";import o from"../tooltip/tooltip.js";import{useTreeMenuContext as s,useTreeMenuThemeContext as c}from"./context.js";import{treeMenuCssVars as l}from"./shared.js";import{Fragment as u,computed as d,createBlock as f,createCommentVNode as p,createElementBlock as m,createElementVNode as h,
|
|
1
|
+
import e from"../button/button-icon.js";import t from"../icon/icon.js";import n from"../badge/badge.js";import r from"../link/link.js";import i from"../dropdown-menu/dropdown-menu.js";import a from"../tag/tag.js";import o from"../tooltip/tooltip.js";import{useTreeMenuContext as s,useTreeMenuThemeContext as c}from"./context.js";import{treeMenuCssVars as l}from"./shared.js";import{Fragment as u,computed as d,createBlock as f,createCommentVNode as p,createElementBlock as m,createElementVNode as h,defineComponent as g,mergeProps as _,normalizeClass as v,openBlock as y,renderSlot as b,resolveDynamicComponent as x,toDisplayString as S,toHandlers as C,unref as w,useAttrs as T,withCtx as E,withModifiers as D}from"vue";import{useForwardListeners as O,usePickProps as k}from"@soybeanjs/headless/composables";import{TreeItem as A}from"@soybeanjs/headless";var j=g({name:`STreeMenuItem`,__name:`tree-menu-item`,props:{actionMenuProps:{},tooltipProps:{},dropdownMenuProps:{},value:{},level:{},disabled:{type:Boolean},disabledSelect:{type:Boolean},disabledToggle:{type:Boolean},asChild:{type:Boolean},as:{},label:{},icon:{},to:{},href:{},linkProps:{},badge:{},badgeProps:{},tag:{},tagProps:{},actions:{},onActionSelect:{type:Function},children:{}},emits:[`select`,`toggle`,`selectDropdown`],setup(g,{emit:j}){let M=g,N=j,P=T(),F=O(N),{size:I,collapsed:L}=s(`TreeMenuItem`),{ui:R}=c(`TreeMenuItem`),z=d(()=>!!(M.to||M.href||M.linkProps)),B=d(()=>{let e={disabled:M.disabled,...M.linkProps};return M.to&&(e.to=M.to),M.href&&(e.href=M.href),e}),V=k(M,[`value`,`level`,`disabled`,`disabledSelect`,`disabledToggle`],P),H=d(()=>z.value?r:`button`),U=d(()=>z.value?B.value:{}),W=d(()=>({[l.indent]:M.level-1})),G=d(()=>!!M.children?.length),K=d(()=>L.value&&G.value),q=d(()=>L.value&&!K.value?M.label:void 0),J=d(()=>!!(K.value||q.value)),Y=d(()=>({placement:`right`,...M.tooltipProps})),X=d(()=>({trigger:`hover`,contentProps:{placement:`right`},...M.dropdownMenuProps})),Z=d(()=>({color:`accent`,variant:`raw`,...M.tagProps,content:M.tag})),Q=e=>{N(`selectDropdown`,e.value)};return(r,s)=>(y(),f(w(A),_({class:w(R).item},w(V),{"data-level":g.level,"disabled-toggle":J.value,"disabled-select":J.value,style:W.value},C(w(F))),{default:E(({isExpanded:c})=>[(y(),f(x(H.value),_(U.value,{class:w(R).itemContent,"data-link":z.value?``:void 0,tabindex:`-1`}),{default:E(()=>[b(r.$slots,`leading`,{},()=>[g.icon?(y(),f(t,{key:0,icon:g.icon},null,8,[`icon`])):p(`v-if`,!0)]),b(r.$slots,`default`,{},()=>[g.badge?(y(),f(n,_({key:0},g.badgeProps,{size:w(I),content:g.badge,class:w(R).itemBadge}),{default:E(()=>[h(`span`,{class:v(w(R).itemLabel)},S(g.label),3)]),_:1},16,[`size`,`content`,`class`])):(y(),m(`span`,{key:1,class:v(w(R).itemLabel)},S(g.label),3))]),z.value?(y(),f(t,{key:0,icon:`lucide:arrow-up-right`,class:v(w(R).itemLinkIcon)},null,8,[`class`])):p(`v-if`,!0),g.tag?(y(),f(a,_({key:1},Z.value,{size:w(I),content:g.tag,class:w(R).itemTag}),null,16,[`size`,`content`,`class`])):p(`v-if`,!0),g.actions?.length?(y(),f(i,_({key:2},g.actionMenuProps,{size:w(I),items:g.actions,onSelect:g.onActionSelect}),{trigger:E(()=>[w(L)?p(`v-if`,!0):(y(),f(e,{key:0,icon:`lucide:ellipsis`,size:w(I),class:v(w(R).itemAction),onClick:s[0]||=D(()=>{},[`stop`])},null,8,[`size`,`class`]))]),_:1},16,[`size`,`items`,`onSelect`])):p(`v-if`,!0),b(r.$slots,`trailing`),G.value?(y(),f(t,{key:3,icon:`lucide:chevron-right`,"data-expanded":c?``:void 0,class:v(w(R).collapsibleIcon)},null,8,[`data-expanded`,`class`])):p(`v-if`,!0)]),_:2},1040,[`class`,`data-link`])),J.value?(y(),m(u,{key:0},[q.value?(y(),f(o,_({key:0},Y.value,{size:w(I),content:q.value}),{trigger:E(()=>[h(`div`,{class:v(w(R).itemAbsolute)},null,2)]),_:1},16,[`size`,`content`])):p(`v-if`,!0),K.value?(y(),f(i,_({key:1},X.value,{items:g.children??[],disabled:g.disabled,size:w(I),"data-menu":g.label,onSelect:Q}),{trigger:E(()=>[h(`div`,{class:v(w(R).itemAbsolute)},null,2)]),_:1},16,[`items`,`disabled`,`size`,`data-menu`])):p(`v-if`,!0)],64)):p(`v-if`,!0)]),_:3},16,[`class`,`data-level`,`disabled-toggle`,`disabled-select`,`style`]))}});export{j as default};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TreeMenuGroupOptionData, TreeMenuOptionData, TreeMenuProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue222 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/tree-menu/tree-menu.vue.d.ts
|
|
5
5
|
declare const __VLS_export: <T extends TreeMenuOptionData = TreeMenuOptionData>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
@@ -7,7 +7,7 @@ declare const __VLS_export: <T extends TreeMenuOptionData = TreeMenuOptionData>(
|
|
|
7
7
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
8
8
|
"onUpdate:expanded"?: ((value: string[]) => any) | undefined;
|
|
9
9
|
"onUpdate:collapsed"?: ((value: boolean) => any) | undefined;
|
|
10
|
-
}> &
|
|
10
|
+
}> & vue222.PublicProps;
|
|
11
11
|
expose: (exposed: {}) => void;
|
|
12
12
|
attrs: any;
|
|
13
13
|
slots: {
|
|
@@ -35,7 +35,7 @@ declare const __VLS_export: <T extends TreeMenuOptionData = TreeMenuOptionData>(
|
|
|
35
35
|
bottom?: (props: {}) => any;
|
|
36
36
|
};
|
|
37
37
|
emit: ((evt: "update:modelValue", value: string) => void) & ((evt: "update:expanded", value: string[]) => void) & ((evt: "update:collapsed", value: boolean) => void);
|
|
38
|
-
}>) =>
|
|
38
|
+
}>) => vue222.VNode & {
|
|
39
39
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
40
40
|
};
|
|
41
41
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { VirtualizerProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue109 from "vue";
|
|
3
3
|
import * as _tanstack_vue_virtual0 from "@tanstack/vue-virtual";
|
|
4
4
|
|
|
5
5
|
//#region src/components/virtualizer/virtualizer.vue.d.ts
|
|
6
6
|
declare const __VLS_export: <T extends Record<string, any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
7
|
-
props: __VLS_PrettifyLocal<VirtualizerProps<T>> &
|
|
7
|
+
props: __VLS_PrettifyLocal<VirtualizerProps<T>> & vue109.PublicProps;
|
|
8
8
|
expose: (exposed: {}) => void;
|
|
9
9
|
attrs: any;
|
|
10
10
|
slots: {
|
|
@@ -15,7 +15,7 @@ declare const __VLS_export: <T extends Record<string, any>>(__VLS_props: NonNull
|
|
|
15
15
|
}) => any;
|
|
16
16
|
};
|
|
17
17
|
emit: {};
|
|
18
|
-
}>) =>
|
|
18
|
+
}>) => vue109.VNode & {
|
|
19
19
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
20
20
|
};
|
|
21
21
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as tailwind_variants23 from "tailwind-variants";
|
|
2
2
|
import { VariantProps } from "tailwind-variants";
|
|
3
3
|
|
|
4
4
|
//#region src/variants/button.d.ts
|
|
5
|
-
declare const buttonVariants:
|
|
5
|
+
declare const buttonVariants: tailwind_variants23.TVReturnType<{
|
|
6
6
|
color: {
|
|
7
7
|
primary: string;
|
|
8
8
|
destructive: string;
|
|
@@ -92,7 +92,7 @@ declare const buttonVariants: tailwind_variants3.TVReturnType<{
|
|
|
92
92
|
true: string;
|
|
93
93
|
false: string;
|
|
94
94
|
};
|
|
95
|
-
}, undefined,
|
|
95
|
+
}, undefined, tailwind_variants23.TVReturnType<{
|
|
96
96
|
color: {
|
|
97
97
|
primary: string;
|
|
98
98
|
destructive: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as tailwind_variants27 from "tailwind-variants";
|
|
2
2
|
import { VariantProps } from "tailwind-variants";
|
|
3
3
|
|
|
4
4
|
//#region src/variants/checkbox.d.ts
|
|
5
|
-
declare const checkboxVariants:
|
|
5
|
+
declare const checkboxVariants: tailwind_variants27.TVReturnType<{
|
|
6
6
|
color: {
|
|
7
7
|
primary: {
|
|
8
8
|
control: string;
|
|
@@ -164,7 +164,7 @@ declare const checkboxVariants: tailwind_variants7.TVReturnType<{
|
|
|
164
164
|
control: string[];
|
|
165
165
|
indicator: string;
|
|
166
166
|
label: string;
|
|
167
|
-
},
|
|
167
|
+
}, tailwind_variants27.TVReturnType<{
|
|
168
168
|
color: {
|
|
169
169
|
primary: {
|
|
170
170
|
control: string;
|
package/dist/variants/kbd.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as tailwind_variants19 from "tailwind-variants";
|
|
2
2
|
import { VariantProps } from "tailwind-variants";
|
|
3
3
|
|
|
4
4
|
//#region src/variants/kbd.d.ts
|
|
5
|
-
declare const kbdVariants:
|
|
5
|
+
declare const kbdVariants: tailwind_variants19.TVReturnType<{
|
|
6
6
|
variant: {
|
|
7
7
|
solid: string;
|
|
8
8
|
outline: string;
|
|
@@ -30,7 +30,7 @@ declare const kbdVariants: tailwind_variants11.TVReturnType<{
|
|
|
30
30
|
xl: string;
|
|
31
31
|
'2xl': string;
|
|
32
32
|
};
|
|
33
|
-
}, undefined,
|
|
33
|
+
}, undefined, tailwind_variants19.TVReturnType<{
|
|
34
34
|
variant: {
|
|
35
35
|
solid: string;
|
|
36
36
|
outline: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as tailwind_variants31 from "tailwind-variants";
|
|
2
2
|
import { VariantProps } from "tailwind-variants";
|
|
3
3
|
|
|
4
4
|
//#region src/variants/pagination.d.ts
|
|
5
|
-
declare const paginationVariants:
|
|
5
|
+
declare const paginationVariants: tailwind_variants31.TVReturnType<{
|
|
6
6
|
size: {
|
|
7
7
|
xs: {
|
|
8
8
|
list: string;
|
|
@@ -150,7 +150,7 @@ declare const paginationVariants: tailwind_variants13.TVReturnType<{
|
|
|
150
150
|
ellipsis: string;
|
|
151
151
|
button: string[];
|
|
152
152
|
navigationButton: string[];
|
|
153
|
-
},
|
|
153
|
+
}, tailwind_variants31.TVReturnType<{
|
|
154
154
|
size: {
|
|
155
155
|
xs: {
|
|
156
156
|
list: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as tailwind_variants3 from "tailwind-variants";
|
|
2
2
|
import { VariantProps } from "tailwind-variants";
|
|
3
3
|
|
|
4
4
|
//#region src/variants/radio-group.d.ts
|
|
5
|
-
declare const radioGroupVariants:
|
|
5
|
+
declare const radioGroupVariants: tailwind_variants3.TVReturnType<{
|
|
6
6
|
color: {
|
|
7
7
|
primary: {
|
|
8
8
|
control: string;
|
|
@@ -180,7 +180,7 @@ declare const radioGroupVariants: tailwind_variants17.TVReturnType<{
|
|
|
180
180
|
control: string[];
|
|
181
181
|
indicator: string;
|
|
182
182
|
label: string;
|
|
183
|
-
},
|
|
183
|
+
}, tailwind_variants3.TVReturnType<{
|
|
184
184
|
color: {
|
|
185
185
|
primary: {
|
|
186
186
|
control: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as tailwind_variants7 from "tailwind-variants";
|
|
2
2
|
import { VariantProps } from "tailwind-variants";
|
|
3
3
|
|
|
4
4
|
//#region src/variants/separator.d.ts
|
|
5
|
-
declare const separatorVariants:
|
|
5
|
+
declare const separatorVariants: tailwind_variants7.TVReturnType<{
|
|
6
6
|
size: {
|
|
7
7
|
xs: {
|
|
8
8
|
label: string;
|
|
@@ -114,7 +114,7 @@ declare const separatorVariants: tailwind_variants21.TVReturnType<{
|
|
|
114
114
|
}, {
|
|
115
115
|
root: string;
|
|
116
116
|
label: string;
|
|
117
|
-
},
|
|
117
|
+
}, tailwind_variants7.TVReturnType<{
|
|
118
118
|
size: {
|
|
119
119
|
xs: {
|
|
120
120
|
label: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as tailwind_variants11 from "tailwind-variants";
|
|
2
2
|
import { VariantProps } from "tailwind-variants";
|
|
3
3
|
|
|
4
4
|
//#region src/variants/switch.d.ts
|
|
5
|
-
declare const switchVariants:
|
|
5
|
+
declare const switchVariants: tailwind_variants11.TVReturnType<{
|
|
6
6
|
color: {
|
|
7
7
|
primary: {
|
|
8
8
|
control: string;
|
|
@@ -136,7 +136,7 @@ declare const switchVariants: tailwind_variants25.TVReturnType<{
|
|
|
136
136
|
root: string;
|
|
137
137
|
control: string[];
|
|
138
138
|
thumb: string;
|
|
139
|
-
},
|
|
139
|
+
}, tailwind_variants11.TVReturnType<{
|
|
140
140
|
color: {
|
|
141
141
|
primary: {
|
|
142
142
|
control: string;
|
package/dist/variants/tabs.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as tailwind_variants21 from "tailwind-variants";
|
|
2
2
|
import { VariantProps } from "tailwind-variants";
|
|
3
3
|
|
|
4
4
|
//#region src/variants/tabs.d.ts
|
|
5
|
-
declare const tabsVariants:
|
|
5
|
+
declare const tabsVariants: tailwind_variants21.TVReturnType<{
|
|
6
6
|
size: {
|
|
7
7
|
xs: {
|
|
8
8
|
root: string;
|
|
@@ -148,7 +148,7 @@ declare const tabsVariants: tailwind_variants15.TVReturnType<{
|
|
|
148
148
|
indicator: string;
|
|
149
149
|
indicatorContent: string;
|
|
150
150
|
content: string;
|
|
151
|
-
},
|
|
151
|
+
}, tailwind_variants21.TVReturnType<{
|
|
152
152
|
size: {
|
|
153
153
|
xs: {
|
|
154
154
|
root: string;
|
package/dist/variants/tag.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as tailwind_variants9 from "tailwind-variants";
|
|
2
2
|
import { VariantProps } from "tailwind-variants";
|
|
3
3
|
|
|
4
4
|
//#region src/variants/tag.d.ts
|
|
5
|
-
declare const tagVariants:
|
|
5
|
+
declare const tagVariants: tailwind_variants9.TVReturnType<{
|
|
6
6
|
color: {
|
|
7
7
|
primary: string;
|
|
8
8
|
destructive: string;
|
|
@@ -64,7 +64,7 @@ declare const tagVariants: tailwind_variants23.TVReturnType<{
|
|
|
64
64
|
auto: string;
|
|
65
65
|
rounded: string;
|
|
66
66
|
};
|
|
67
|
-
}, undefined,
|
|
67
|
+
}, undefined, tailwind_variants9.TVReturnType<{
|
|
68
68
|
color: {
|
|
69
69
|
primary: string;
|
|
70
70
|
destructive: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as tailwind_variants17 from "tailwind-variants";
|
|
2
2
|
import { VariantProps } from "tailwind-variants";
|
|
3
3
|
|
|
4
4
|
//#region src/variants/textarea.d.ts
|
|
5
|
-
declare const textareaVariants:
|
|
5
|
+
declare const textareaVariants: tailwind_variants17.TVReturnType<{
|
|
6
6
|
size: {
|
|
7
7
|
xs: {
|
|
8
8
|
root: string;
|
|
@@ -118,7 +118,7 @@ declare const textareaVariants: tailwind_variants27.TVReturnType<{
|
|
|
118
118
|
control: string[];
|
|
119
119
|
counter: string;
|
|
120
120
|
clearable: string;
|
|
121
|
-
},
|
|
121
|
+
}, tailwind_variants17.TVReturnType<{
|
|
122
122
|
size: {
|
|
123
123
|
xs: {
|
|
124
124
|
root: string;
|
package/dist/variants/toast.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as tailwind_variants13 from "tailwind-variants";
|
|
2
2
|
import { VariantProps } from "tailwind-variants";
|
|
3
3
|
|
|
4
4
|
//#region src/variants/toast.d.ts
|
|
5
5
|
|
|
6
|
-
declare const toastViewportVariants:
|
|
6
|
+
declare const toastViewportVariants: tailwind_variants13.TVReturnType<{
|
|
7
7
|
size: {
|
|
8
8
|
xs: string;
|
|
9
9
|
sm: string;
|
|
@@ -37,7 +37,7 @@ declare const toastViewportVariants: tailwind_variants29.TVReturnType<{
|
|
|
37
37
|
'bottom-left': string;
|
|
38
38
|
'bottom-right': string;
|
|
39
39
|
};
|
|
40
|
-
}, undefined,
|
|
40
|
+
}, undefined, tailwind_variants13.TVReturnType<{
|
|
41
41
|
size: {
|
|
42
42
|
xs: string;
|
|
43
43
|
sm: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{tv as e}from"tailwind-variants";const t=e({slots:{root:`group flex-1 size-full overflow-auto data-[state=collapsed]:w-[--soybean-tree-menu-collapsed-width] transition-[width,height]-200 ease-out data-[state=collapsed]:space-y-0`,groupLabel:`flex items-center text-foreground/70 list-none group-data-[state=collapsed]:size-0 group-data-[state=collapsed]:p-0 group-data-[state=collapsed]:opacity-0 group-data-[state=collapsed]:overflow-hidden transition-[height,padding,opacity]-200`,item:[`relative rounded-sm outline-none cursor-pointer select-none outline-none`,`data-[selected]:bg-primary/10 data-[selected]:text-primary`,`[&:not([data-selected])]:hover:bg-accent [&:not([data-selected])]:hover:text-accent-foreground`,`[&:not([data-selected])]:focus:bg-accent [&:not([data-selected])]:focus:text-accent-foreground`,`data-[contains-selected]:text-primary data-[contains-selected]:hover:text-primary data-[contains-selected]:focus:text-primary`,`data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50`,`group-data-[state=collapsed]:overflow-hidden`],itemContent:`flex items-center w-full outline-none data-[link]:decoration-none`,itemAbsolute:`absolute top-0 left-0 w-full h-full z-1`,itemLabel:`truncate`,itemLinkIcon:`shrink-0 self-start text-muted-foreground`,itemBadge:``,itemTag:`shrink-0 ml-auto`,itemAction:`
|
|
1
|
+
import{tv as e}from"tailwind-variants";const t=e({slots:{root:`group flex-1 size-full overflow-auto data-[state=collapsed]:w-[--soybean-tree-menu-collapsed-width] transition-[width,height]-200 ease-out data-[state=collapsed]:space-y-0`,groupLabel:`flex items-center text-foreground/70 list-none group-data-[state=collapsed]:size-0 group-data-[state=collapsed]:p-0 group-data-[state=collapsed]:opacity-0 group-data-[state=collapsed]:overflow-hidden transition-[height,padding,opacity]-200`,item:[`relative rounded-sm outline-none cursor-pointer select-none outline-none`,`data-[selected]:bg-primary/10 data-[selected]:text-primary`,`[&:not([data-selected])]:hover:bg-accent [&:not([data-selected])]:hover:text-accent-foreground`,`[&:not([data-selected])]:focus:bg-accent [&:not([data-selected])]:focus:text-accent-foreground`,`data-[contains-selected]:text-primary data-[contains-selected]:hover:text-primary data-[contains-selected]:focus:text-primary`,`data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50`,`group-data-[state=collapsed]:overflow-hidden`],itemContent:`flex items-center w-full outline-none data-[link]:decoration-none`,itemAbsolute:`absolute top-0 left-0 w-full h-full z-1`,itemLabel:`truncate`,itemLinkIcon:`shrink-0 self-start text-muted-foreground`,itemBadge:``,itemTag:`shrink-0 ml-auto`,itemAction:`absolute -translate-y-1/2 top-1/2`,collapsibleIcon:`shrink-0 ml-auto text-muted-foreground transition-transform-200 data-[expanded]:rotate-90`},variants:{size:{xs:{root:`space-y-0.75 p-1.5 text-2xs`,groupLabel:`h-6 gap-1 px-1.5 py-1 text-3xs`,item:`h-6 px-1.5 py-1 group-data-[state=collapsed]:w-6 text-2xs ml-[calc(var(--soybean-tree-menu-indent)*0.75rem)]`,itemContent:`gap-1.5`,itemLinkIcon:`size-2 -ml-1`,itemAction:`right-1.5`},sm:{root:`space-y-0.875 p-1.75 text-xs`,groupLabel:`h-7 gap-1.5 px-1.75 py-1 text-2xs`,item:`h-7 px-1.75 py-1 group-data-[state=collapsed]:w-7 text-xs ml-[calc(var(--soybean-tree-menu-indent)*0.875rem)]`,itemContent:`gap-1.75`,itemLinkIcon:`size-2.5 -ml-1.5`,itemAction:`right-1.75`},md:{root:`space-y-1 p-2 text-sm`,groupLabel:`h-8 gap-2 px-2 py-1.5 text-xs`,item:`h-8 px-2 py-1.5 group-data-[state=collapsed]:w-8 text-sm ml-[calc(var(--soybean-tree-menu-indent)*1rem)]`,itemContent:`gap-2`,itemLinkIcon:`size-3 -ml-2`,itemAction:`right-2`},lg:{root:`space-y-1.25 p-2.25 text-base`,groupLabel:`h-9 gap-2.5 px-2.25 py-1.5 text-sm`,item:`h-9 px-2.25 py-1.5 group-data-[state=collapsed]:w-9 text-base ml-[calc(var(--soybean-tree-menu-indent)*1.125rem)]`,itemContent:`gap-2.25`,itemLinkIcon:`size-3.5 -ml-2.5`,itemAction:`right-2.25`},xl:{root:`space-y-1.5 p-2.5 text-lg`,groupLabel:`h-10 gap-3 px-2.5 py-1.5 text-base`,item:`h-10 px-2.5 py-2 group-data-[state=collapsed]:w-10 text-lg ml-[calc(var(--soybean-tree-menu-indent)*1.25rem)]`,itemContent:`gap-2.5`,itemLinkIcon:`size-4 -ml-3`,itemAction:`right-2.5`},"2xl":{root:`space-y-2 p-3 text-xl`,groupLabel:`h-12 gap-3.5 px-3 py-2.5 text-lg`,item:`h-12 px-3 py-2.5 group-data-[state=collapsed]:w-12 text-xl ml-[calc(var(--soybean-tree-menu-indent)*1.5rem)]`,itemContent:`gap-3`,itemLinkIcon:`size-5 -ml-4`,itemAction:`right-3`}}},defaultVariants:{size:`md`}});export{t as treeMenuVariants};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soybeanjs/ui",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.3",
|
|
5
5
|
"description": "SoybeanUI is built on top of SoybeanHeadless, providing a collection of styled components for Vue 3.",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Soybean",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"fuse.js": "^7.1.0",
|
|
53
53
|
"tailwind-merge": "^3.4.0",
|
|
54
54
|
"tailwind-variants": "^3.1.1",
|
|
55
|
-
"@soybeanjs/headless": "^0.0.
|
|
55
|
+
"@soybeanjs/headless": "^0.0.3"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@soybeanjs/cli": "^1.4.1",
|