@soybeanjs/ui 0.26.1 → 0.26.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/dist/components/backtop/backtop.vue.d.ts +2 -2
- package/dist/components/button/button-icon.vue.d.ts +1 -1
- package/dist/components/button/button-link.vue.d.ts +1 -1
- package/dist/components/color-picker/color-picker.vue.d.ts +1 -1
- package/dist/components/color-slider/color-slider.vue.d.ts +1 -1
- package/dist/components/date-picker/date-picker.js +1 -1
- package/dist/components/splitter/splitter-panel.vue.d.ts +2 -2
- package/dist/styles/alert.d.ts +2 -2
- package/dist/styles/badge.d.ts +1 -1
- package/dist/styles/button.d.ts +2 -2
- package/dist/styles/checkbox.d.ts +2 -2
- package/dist/styles/color-picker.js +1 -1
- package/dist/styles/kbd.d.ts +1 -1
- package/dist/styles/pagination.d.ts +2 -2
- package/dist/styles/radio-group.d.ts +2 -2
- package/dist/styles/skeleton.d.ts +1 -1
- package/dist/styles/switch.d.ts +1 -1
- package/dist/styles/table.d.ts +2 -2
- package/dist/styles/tabs.d.ts +1 -1
- package/dist/styles/tag.d.ts +2 -2
- package/dist/styles/tag.js +1 -1
- package/dist/styles/toggle-group.d.ts +1 -1
- package/dist/styles/toggle.d.ts +2 -2
- package/package.json +30 -4
|
@@ -14,10 +14,10 @@ declare const __VLS_base: import("vue").DefineComponent<BacktopProps, {}, {}, {}
|
|
|
14
14
|
onChange?: ((visible: boolean) => any) | undefined;
|
|
15
15
|
}>, {
|
|
16
16
|
icon: string;
|
|
17
|
-
size: ThemeSize;
|
|
18
17
|
color: ThemeColor;
|
|
19
|
-
|
|
18
|
+
size: ThemeSize;
|
|
20
19
|
shape: ButtonShape;
|
|
20
|
+
variant: ButtonVariant;
|
|
21
21
|
shadow: ButtonShadow;
|
|
22
22
|
fitContent: boolean;
|
|
23
23
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -4,8 +4,8 @@ import { ButtonIconProps } from "./types.js";
|
|
|
4
4
|
//#region src/components/button/button-icon.vue.d.ts
|
|
5
5
|
declare const __VLS_export: import("vue").DefineComponent<ButtonIconProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ButtonIconProps> & Readonly<{}>, {
|
|
6
6
|
color: ThemeColor;
|
|
7
|
-
variant: ButtonVariant;
|
|
8
7
|
shape: ButtonShape;
|
|
8
|
+
variant: ButtonVariant;
|
|
9
9
|
fitContent: boolean;
|
|
10
10
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
11
|
declare const _default: typeof __VLS_export;
|
|
@@ -11,8 +11,8 @@ type __VLS_Slots = {} & {
|
|
|
11
11
|
default?: (props: typeof __VLS_14) => any;
|
|
12
12
|
};
|
|
13
13
|
declare const __VLS_base: import("vue").DefineComponent<ButtonLinkProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ButtonLinkProps> & Readonly<{}>, {
|
|
14
|
-
variant: ButtonVariant;
|
|
15
14
|
replace: boolean;
|
|
15
|
+
variant: ButtonVariant;
|
|
16
16
|
disabled: boolean;
|
|
17
17
|
external: boolean;
|
|
18
18
|
viewTransition: boolean;
|
|
@@ -27,10 +27,10 @@ declare const __VLS_export: import("vue").DefineComponent<ColorPickerProps, {},
|
|
|
27
27
|
"onUpdate:format"?: ((value: import("@soybeanjs/headless/types").ColorFormat) => any) | undefined;
|
|
28
28
|
}>, {
|
|
29
29
|
open: boolean;
|
|
30
|
-
showArrow: boolean;
|
|
31
30
|
showAlpha: boolean;
|
|
32
31
|
showFields: boolean;
|
|
33
32
|
showSwatches: boolean;
|
|
33
|
+
showArrow: boolean;
|
|
34
34
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
35
35
|
declare const _default: typeof __VLS_export;
|
|
36
36
|
//#endregion
|
|
@@ -12,8 +12,8 @@ declare const __VLS_export: import("vue").DefineComponent<ColorSliderProps, {},
|
|
|
12
12
|
"onUpdate:color"?: ((value: import("@soybeanjs/headless/types").NormalizedColor) => any) | undefined;
|
|
13
13
|
onChangeEnd?: ((value: string) => any) | undefined;
|
|
14
14
|
}>, {
|
|
15
|
-
size: ThemeSize;
|
|
16
15
|
color: ThemeColor;
|
|
16
|
+
size: ThemeSize;
|
|
17
17
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
18
|
declare const _default: typeof __VLS_export;
|
|
19
19
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"../calendar/calendar.js";import{datePickerVariants as t}from"../../styles/date-picker.js";import{computed as n,createBlock as r,createVNode as i,defineComponent as a,mergeProps as o,openBlock as s,toHandlers as c,unref as l,withCtx as u}from"vue";import{useForwardListeners as d,useOmitProps as f}from"@soybeanjs/headless/composables";import{DatePickerCompact as p,provideDatePickerUi as m}from"@soybeanjs/headless/date-picker";const h=a({name:`SDatePicker`,__name:`date-picker`,props:{class:{type:[Boolean,null,String,Object,Array]},size:{},ui:{},calendarUi:{},dateFieldProps:{},placement:{},showArrow:{type:Boolean},triggerProps:{},portalProps:{},positionerProps:{},popupProps:{},arrowProps:{},closeProps:{},disabled:{type:Boolean},dir:{},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean},modal:{type:Boolean},headerProps:{},headingProps:{},prevProps:{},nextProps:{},gridProps:{},gridHeadProps:{},gridBodyProps:{},gridRowProps:{},headCellProps:{},cellProps:{},cellTriggerProps:{},locale:{},modelValue:{},defaultValue:{},multiple:{},placeholder:{},defaultPlaceholder:{},readonly:{type:Boolean},pagedNavigation:{type:Boolean},preventDeselect:{type:Boolean},weekStartsOn:{},weekdayFormat:{},calendarLabel:{},fixedWeeks:{type:Boolean},maxValue:{},minValue:{},numberOfMonths:{},initialFocus:{type:Boolean},isDateDisabled:{},isDateUnavailable:{},nextPage:{},prevPage:{},disableDaysOutsideCurrentView:{type:Boolean},asChild:{type:Boolean},as:{}},emits:[`update:open`,`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`,`update:modelValue`,`update:placeholder`],setup(a,{emit:h}){let g=a,_=h,v=f(g,[`class`,`size`,`ui`]),y=d(_);return m(n(()=>t({size:g.size},g.ui,{root:g.class}))),(t,n)=>(s(),r(l(p),o(l(v),c(l(y))),{default:u(({calendarProps:t,close:n,onUpdateModelValue:r,onUpdatePlaceholder:s})=>[i(e,o(t,{size:a.size,ui:a.calendarUi,"onUpdate:modelValue":e=>{r(e),n()},"onUpdate:placeholder":s}),null,16,[`size`,`ui`,`onUpdate:modelValue`,`onUpdate:placeholder`])]),_:1},16))}});export{h as default};
|
|
1
|
+
import e from"../calendar/calendar.js";import{datePickerVariants as t}from"../../styles/date-picker.js";import{computed as n,createBlock as r,createVNode as i,defineComponent as a,mergeProps as o,openBlock as s,toHandlers as c,unref as l,withCtx as u}from"vue";import{useForwardListeners as d,useOmitProps as f}from"@soybeanjs/headless/composables";import{DatePickerCompact as p,provideDatePickerUi as m}from"@soybeanjs/headless/date-picker";const h=a({name:`SDatePicker`,__name:`date-picker`,props:{class:{type:[Boolean,null,String,Object,Array]},size:{},ui:{},calendarUi:{},dateFieldProps:{},placement:{},showArrow:{type:Boolean},triggerProps:{},portalProps:{},positionerProps:{},popupProps:{},arrowProps:{},closeProps:{},disabled:{type:Boolean},dir:{},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean},modal:{type:Boolean},headerProps:{},headingProps:{},prevProps:{},nextProps:{},gridProps:{},gridHeadProps:{},gridBodyProps:{},gridRowProps:{},headCellProps:{},cellProps:{},cellTriggerProps:{},locale:{},modelValue:{},defaultValue:{},multiple:{type:Boolean},placeholder:{},defaultPlaceholder:{},readonly:{type:Boolean},pagedNavigation:{type:Boolean},preventDeselect:{type:Boolean},weekStartsOn:{},weekdayFormat:{},calendarLabel:{},fixedWeeks:{type:Boolean},maxValue:{},minValue:{},numberOfMonths:{},initialFocus:{type:Boolean},isDateDisabled:{},isDateUnavailable:{},nextPage:{},prevPage:{},disableDaysOutsideCurrentView:{type:Boolean},asChild:{type:Boolean},as:{}},emits:[`update:open`,`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`,`update:modelValue`,`update:placeholder`],setup(a,{emit:h}){let g=a,_=h,v=f(g,[`class`,`size`,`ui`]),y=d(_);return m(n(()=>t({size:g.size},g.ui,{root:g.class}))),(t,n)=>(s(),r(l(p),o(l(v),c(l(y))),{default:u(({calendarProps:t,close:n,onUpdateModelValue:r,onUpdatePlaceholder:s})=>[i(e,o(t,{size:a.size,ui:a.calendarUi,"onUpdate:modelValue":e=>{r(e),n()},"onUpdate:placeholder":s}),null,16,[`size`,`ui`,`onUpdate:modelValue`,`onUpdate:placeholder`])]),_:1},16))}});export{h as default};
|
|
@@ -12,13 +12,13 @@ type __VLS_Slots = {} & {
|
|
|
12
12
|
default?: (props: typeof __VLS_8) => any;
|
|
13
13
|
};
|
|
14
14
|
declare const __VLS_base: import("vue").DefineComponent<SplitterPanelProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
15
|
+
resize: (size: number, prevSize: number | undefined) => any;
|
|
15
16
|
collapse: () => any;
|
|
16
17
|
expand: () => any;
|
|
17
|
-
resize: (size: number, prevSize: number | undefined) => any;
|
|
18
18
|
}, string, import("vue").PublicProps, Readonly<SplitterPanelProps> & Readonly<{
|
|
19
|
+
onResize?: ((size: number, prevSize: number | undefined) => any) | undefined;
|
|
19
20
|
onCollapse?: (() => any) | undefined;
|
|
20
21
|
onExpand?: (() => any) | undefined;
|
|
21
|
-
onResize?: ((size: number, prevSize: number | undefined) => any) | undefined;
|
|
22
22
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
23
23
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
24
24
|
declare const _default: typeof __VLS_export;
|
package/dist/styles/alert.d.ts
CHANGED
|
@@ -92,9 +92,9 @@ declare const alertVariants: import("@soybeanjs/cva").SCVResult<"icon" | "title"
|
|
|
92
92
|
};
|
|
93
93
|
};
|
|
94
94
|
}>, {
|
|
95
|
-
size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined;
|
|
96
95
|
color?: "info" | "success" | "warning" | "primary" | "destructive" | "carbon" | "secondary" | "accent" | undefined;
|
|
97
|
-
|
|
96
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined;
|
|
97
|
+
variant?: "pure" | "outline" | "soft" | "ghost" | "solid" | undefined;
|
|
98
98
|
}>;
|
|
99
99
|
type AlertVariants = VariantProps<typeof alertVariants>;
|
|
100
100
|
type AlertVariant = NonNullable<AlertVariants['variant']>;
|
package/dist/styles/badge.d.ts
CHANGED
|
@@ -63,8 +63,8 @@ declare const badgeVariants: import("@soybeanjs/cva").SCVResult<"content" | "roo
|
|
|
63
63
|
};
|
|
64
64
|
};
|
|
65
65
|
}>, {
|
|
66
|
-
size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined;
|
|
67
66
|
color?: "info" | "success" | "warning" | "primary" | "destructive" | "carbon" | "secondary" | "accent" | undefined;
|
|
67
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined;
|
|
68
68
|
position?: "top-right" | "bottom-right" | "top-left" | "bottom-left" | undefined;
|
|
69
69
|
}>;
|
|
70
70
|
type BadgeVariants = VariantProps<typeof badgeVariants>;
|
package/dist/styles/button.d.ts
CHANGED
|
@@ -47,10 +47,10 @@ declare const buttonVariants: import("@soybeanjs/cva").CVResult<NoInfer<{
|
|
|
47
47
|
false: string;
|
|
48
48
|
};
|
|
49
49
|
}>, {
|
|
50
|
-
size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined;
|
|
51
50
|
color?: "info" | "success" | "warning" | "primary" | "destructive" | "carbon" | "secondary" | "accent" | undefined;
|
|
52
|
-
|
|
51
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined;
|
|
53
52
|
shape?: "auto" | "rounded" | "square" | "circle" | undefined;
|
|
53
|
+
variant?: "link" | "pure" | "outline" | "soft" | "ghost" | "solid" | "dashed" | "plain" | undefined;
|
|
54
54
|
shadow?: "sm" | "md" | "lg" | "none" | undefined;
|
|
55
55
|
fitContent?: boolean | undefined;
|
|
56
56
|
}>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VariantProps } from "@soybeanjs/cva";
|
|
2
2
|
|
|
3
3
|
//#region src/styles/checkbox.d.ts
|
|
4
|
-
declare const checkboxVariants: import("@soybeanjs/cva").SCVResult<"label" | "root" | "
|
|
4
|
+
declare const checkboxVariants: import("@soybeanjs/cva").SCVResult<"label" | "root" | "control" | "indicator" | "groupRoot" | "indicator-icon", NoInfer<{
|
|
5
5
|
color: {
|
|
6
6
|
primary: {
|
|
7
7
|
control: "border-primary focus-visible:ring-primary/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[state=indeterminate]:bg-primary data-[state=indeterminate]:text-primary-foreground";
|
|
@@ -77,8 +77,8 @@ declare const checkboxVariants: import("@soybeanjs/cva").SCVResult<"label" | "ro
|
|
|
77
77
|
};
|
|
78
78
|
};
|
|
79
79
|
}>, {
|
|
80
|
-
size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined;
|
|
81
80
|
color?: "info" | "success" | "warning" | "primary" | "destructive" | "carbon" | "secondary" | "accent" | undefined;
|
|
81
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined;
|
|
82
82
|
shape?: "rounded" | "square" | undefined;
|
|
83
83
|
orientation?: "horizontal" | "vertical" | undefined;
|
|
84
84
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{buttonVariants as e}from"./button.js";import{scv as t}from"@soybeanjs/cva";const n=t({extendBase:t=>({trigger:e({size:t.size,variant:`pure`})}),slots:{popup:``,content:`flex flex-col`,trigger:``,triggerSwatch:``,triggerValue:`min-w-0 flex-1 truncate text-start font-mono text-xs`,segment:``,area:``,sliderSwatch:`flex items-center`,sliderRoot:`flex-1`,swatch:``,fields:`grid grid-cols-[2fr_1fr]`,field:``,alphaField:``,swatchPicker:``},variants:{size:{xs:{popup:`p-1.5`,content:`w-45 gap-1.5`,area:`h-30`,sliderSwatch:`gap-1.5`,fields:`gap-1.5`,alphaField:`w-12`},sm:{popup:`p-1.75`,content:`w-52.5 gap-1.75`,area:`h-35`,sliderSwatch:`gap-1.75`,fields:`gap-1.75`,alphaField:`w-15`},md:{popup:`p-2`,content:`w-60 gap-2`,area:`h-40`,sliderSwatch:`gap-2`,fields:`gap-2`,alphaField:`w-16`},lg:{popup:`p-2.5`,content:`w-63.75 gap-2.5`,area:`h-42.5`,sliderSwatch:`gap-2.5`,fields:`gap-2.5`,alphaField:`w-18`},xl:{popup:`p-3`,content:`w-67.5 gap-3`,area:`h-45`,sliderSwatch:`gap-3`,fields:`gap-3`,alphaField:`w-20`},"2xl":{popup:`p-4`,content:`w-80 gap-4`,area:`h-50`,sliderSwatch:`gap-4`,fields:`gap-4`,alphaField:`w-25`}}},defaultVariants:{size:`md`}});export{n as colorPickerVariants};
|
package/dist/styles/kbd.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ declare const kbdVariants: import("@soybeanjs/cva").CVResult<NoInfer<{
|
|
|
20
20
|
};
|
|
21
21
|
}>, {
|
|
22
22
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined;
|
|
23
|
-
variant?: "
|
|
23
|
+
variant?: "outline" | "ghost" | "solid" | undefined;
|
|
24
24
|
raised?: boolean | undefined;
|
|
25
25
|
}>;
|
|
26
26
|
type KbdVariants = VariantProps<typeof kbdVariants>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VariantProps } from "@soybeanjs/cva";
|
|
2
2
|
|
|
3
3
|
//#region src/styles/pagination.d.ts
|
|
4
|
-
declare const paginationVariants: import("@soybeanjs/cva").SCVResult<"list" | "next" | "
|
|
4
|
+
declare const paginationVariants: import("@soybeanjs/cva").SCVResult<"list" | "next" | "first" | "last" | "ellipsis" | "root" | "prev" | "listItem", NoInfer<{
|
|
5
5
|
size: {
|
|
6
6
|
xs: {
|
|
7
7
|
list: "gap-0.75 text-2xs";
|
|
@@ -62,8 +62,8 @@ declare const paginationVariants: import("@soybeanjs/cva").SCVResult<"list" | "n
|
|
|
62
62
|
};
|
|
63
63
|
}>, {
|
|
64
64
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined;
|
|
65
|
-
variant?: "pure" | "solid" | "outline" | "soft" | undefined;
|
|
66
65
|
shape?: "rounded" | "square" | undefined;
|
|
66
|
+
variant?: "pure" | "outline" | "soft" | "solid" | undefined;
|
|
67
67
|
actionAsSelected?: boolean | undefined;
|
|
68
68
|
}>;
|
|
69
69
|
type PaginationVariants = VariantProps<typeof paginationVariants>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VariantProps } from "@soybeanjs/cva";
|
|
2
2
|
|
|
3
3
|
//#region src/styles/radio-group.d.ts
|
|
4
|
-
declare const radioGroupVariants: import("@soybeanjs/cva").SCVResult<"label" | "root" | "item" | "
|
|
4
|
+
declare const radioGroupVariants: import("@soybeanjs/cva").SCVResult<"label" | "root" | "item" | "control" | "indicator", NoInfer<{
|
|
5
5
|
color: {
|
|
6
6
|
primary: {
|
|
7
7
|
control: "border-primary focus-visible:ring-primary/30";
|
|
@@ -85,8 +85,8 @@ declare const radioGroupVariants: import("@soybeanjs/cva").SCVResult<"label" | "
|
|
|
85
85
|
};
|
|
86
86
|
};
|
|
87
87
|
}>, {
|
|
88
|
-
size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined;
|
|
89
88
|
color?: "info" | "success" | "warning" | "primary" | "destructive" | "carbon" | "secondary" | "accent" | undefined;
|
|
89
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined;
|
|
90
90
|
variant?: "outline" | "dot" | undefined;
|
|
91
91
|
orientation?: "horizontal" | "vertical" | undefined;
|
|
92
92
|
}>;
|
|
@@ -20,8 +20,8 @@ declare const skeletonVariants: import("@soybeanjs/cva").CVResult<NoInfer<{
|
|
|
20
20
|
};
|
|
21
21
|
}>, {
|
|
22
22
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined;
|
|
23
|
-
shape?: "auto" | "rounded" | undefined;
|
|
24
23
|
animated?: boolean | undefined;
|
|
24
|
+
shape?: "auto" | "rounded" | undefined;
|
|
25
25
|
}>;
|
|
26
26
|
type SkeletonVariants = VariantProps<typeof skeletonVariants>;
|
|
27
27
|
type SkeletonShape = NonNullable<SkeletonVariants['shape']>;
|
package/dist/styles/switch.d.ts
CHANGED
|
@@ -65,8 +65,8 @@ declare const switchVariants: import("@soybeanjs/cva").SCVResult<"root" | "contr
|
|
|
65
65
|
};
|
|
66
66
|
};
|
|
67
67
|
}>, {
|
|
68
|
-
size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined;
|
|
69
68
|
color?: "info" | "success" | "warning" | "primary" | "destructive" | "carbon" | "secondary" | "accent" | undefined;
|
|
69
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined;
|
|
70
70
|
shape?: "rounded" | "square" | undefined;
|
|
71
71
|
}>;
|
|
72
72
|
type SwitchVariants = VariantProps<typeof switchVariants>;
|
package/dist/styles/table.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VariantProps } from "@soybeanjs/cva";
|
|
2
2
|
|
|
3
3
|
//#region src/styles/table.d.ts
|
|
4
|
-
declare const tableVariants: import("@soybeanjs/cva").SCVResult<"header" | "content" | "footer" | "fixed" | "
|
|
4
|
+
declare const tableVariants: import("@soybeanjs/cva").SCVResult<"header" | "content" | "footer" | "fixed" | "scroll" | "body" | "head" | "cell" | "row" | "root" | "resizeHandle" | "sortTrigger" | "filterInput" | "treeCell" | "treeToggle" | "treeTogglePlaceholder" | "selection" | "filterTrigger" | "filterPopup" | "filterSearch" | "filterOptions" | "filterOption" | "filterOptionLabel" | "filterFooter" | "filterCount" | "filterAction" | "filterEmpty" | "radioIndicator" | "radioRoot", NoInfer<{
|
|
5
5
|
size: {
|
|
6
6
|
xs: {
|
|
7
7
|
root: "text-2xs";
|
|
@@ -113,8 +113,8 @@ declare const tableVariants: import("@soybeanjs/cva").SCVResult<"header" | "cont
|
|
|
113
113
|
};
|
|
114
114
|
}>, {
|
|
115
115
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined;
|
|
116
|
-
variant?: "default" | "simple" | undefined;
|
|
117
116
|
rounded?: boolean | undefined;
|
|
117
|
+
variant?: "default" | "simple" | undefined;
|
|
118
118
|
bordered?: boolean | undefined;
|
|
119
119
|
striped?: boolean | undefined;
|
|
120
120
|
}>;
|
package/dist/styles/tabs.d.ts
CHANGED
|
@@ -68,8 +68,8 @@ declare const tabsVariants: import("@soybeanjs/cva").SCVResult<"list" | "content
|
|
|
68
68
|
};
|
|
69
69
|
};
|
|
70
70
|
}>, {
|
|
71
|
-
size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined;
|
|
72
71
|
fill?: "auto" | "full" | undefined;
|
|
72
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined;
|
|
73
73
|
shape?: "rounded" | "square" | undefined;
|
|
74
74
|
orientation?: "horizontal" | "vertical" | undefined;
|
|
75
75
|
enableIndicator?: boolean | undefined;
|
package/dist/styles/tag.d.ts
CHANGED
|
@@ -33,10 +33,10 @@ declare const tagVariants: import("@soybeanjs/cva").CVResult<NoInfer<{
|
|
|
33
33
|
rounded: string;
|
|
34
34
|
};
|
|
35
35
|
}>, {
|
|
36
|
-
size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined;
|
|
37
36
|
color?: "info" | "success" | "warning" | "primary" | "destructive" | "carbon" | "secondary" | "accent" | undefined;
|
|
38
|
-
|
|
37
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined;
|
|
39
38
|
shape?: "auto" | "rounded" | undefined;
|
|
39
|
+
variant?: "pure" | "outline" | "soft" | "ghost" | "solid" | "raw" | undefined;
|
|
40
40
|
}>;
|
|
41
41
|
type TagVariants = VariantProps<typeof tagVariants>;
|
|
42
42
|
type TagVariant = NonNullable<TagVariants['variant']>;
|
package/dist/styles/tag.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{cv as e}from"@soybeanjs/cva";const t=e({base:`inline-flex items-center border font-semibold`,variants:{color:{primary:`border-primary text-primary`,destructive:`border-destructive text-destructive`,success:`border-success text-success`,warning:`border-warning text-warning`,info:`border-info text-info`,carbon:`border-carbon text-carbon`,secondary:`border-secondary-foreground/50 text-secondary-foreground`,accent:`border-accent-foreground/50 text-accent-foreground`},variant:{solid:``,pure:`bg-background text-foreground border-border`,outline:`bg-background`,soft:`border-0`,ghost:``,raw:`bg-transparent border-0`},size:{xs:`gap-0.5 h-
|
|
1
|
+
import{cv as e}from"@soybeanjs/cva";const t=e({base:`inline-flex items-center border font-semibold`,variants:{color:{primary:`border-primary text-primary`,destructive:`border-destructive text-destructive`,success:`border-success text-success`,warning:`border-warning text-warning`,info:`border-info text-info`,carbon:`border-carbon text-carbon`,secondary:`border-secondary-foreground/50 text-secondary-foreground`,accent:`border-accent-foreground/50 text-accent-foreground`},variant:{solid:``,pure:`bg-background text-foreground border-border`,outline:`bg-background`,soft:`border-0`,ghost:``,raw:`bg-transparent border-0`},size:{xs:`gap-0.5 h-4 px-1 text-4xs`,sm:`gap-0.75 h-4.5 px-1.5 text-3xs`,md:`gap-1 h-5 px-2 text-2xs`,lg:`gap-1.25 h-5.5 px-2.5 text-xs`,xl:`gap-1.5 h-6 px-3 text-sm`,"2xl":`gap-2 h-7 px-4 text-base`},shape:{auto:`rounded-md`,rounded:`rounded-full`}},compoundVariants:[{color:`primary`,variant:`solid`,class:`bg-primary text-primary-foreground`},{color:`destructive`,variant:`solid`,class:`bg-destructive text-destructive-foreground`},{color:`success`,variant:`solid`,class:`bg-success text-success-foreground`},{color:`warning`,variant:`solid`,class:`bg-warning text-warning-foreground`},{color:`info`,variant:`solid`,class:`bg-info text-info-foreground`},{color:`carbon`,variant:`solid`,class:`bg-carbon text-carbon-foreground`},{color:`secondary`,variant:`solid`,class:`bg-secondary text-secondary-foreground`},{color:`accent`,variant:`solid`,class:`bg-accent text-accent-foreground`},{color:`primary`,variant:[`soft`,`ghost`],class:`bg-primary/10`},{color:`destructive`,variant:[`soft`,`ghost`],class:`bg-destructive/10`},{color:`success`,variant:[`soft`,`ghost`],class:`bg-success/10`},{color:`warning`,variant:[`soft`,`ghost`],class:`bg-warning/10`},{color:`info`,variant:[`soft`,`ghost`],class:`bg-info/10`},{color:`carbon`,variant:[`soft`,`ghost`],class:`bg-carbon/10`},{color:`secondary`,variant:[`soft`,`ghost`],class:`bg-secondary-foreground/5`},{color:`accent`,variant:[`soft`,`ghost`],class:`bg-accent-foreground/5`}],defaultVariants:{color:`primary`,variant:`solid`,size:`md`,shape:`auto`}});export{t as tagVariants};
|
|
@@ -68,8 +68,8 @@ declare const toggleGroupVariants: import("@soybeanjs/cva").SCVResult<"root" | "
|
|
|
68
68
|
};
|
|
69
69
|
};
|
|
70
70
|
}>, {
|
|
71
|
-
size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined;
|
|
72
71
|
color?: "info" | "success" | "warning" | "primary" | "destructive" | "carbon" | "secondary" | "accent" | undefined;
|
|
72
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined;
|
|
73
73
|
variant?: "outline" | "soft" | "ghost" | undefined;
|
|
74
74
|
orientation?: "horizontal" | "vertical" | undefined;
|
|
75
75
|
}>;
|
package/dist/styles/toggle.d.ts
CHANGED
|
@@ -32,10 +32,10 @@ declare const toggleVariants: import("@soybeanjs/cva").CVResult<NoInfer<{
|
|
|
32
32
|
circle: string;
|
|
33
33
|
};
|
|
34
34
|
}>, {
|
|
35
|
-
size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined;
|
|
36
35
|
color?: "info" | "success" | "warning" | "primary" | "destructive" | "carbon" | "secondary" | "accent" | undefined;
|
|
37
|
-
|
|
36
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined;
|
|
38
37
|
shape?: "auto" | "rounded" | "square" | "circle" | undefined;
|
|
38
|
+
variant?: "outline" | "soft" | "ghost" | undefined;
|
|
39
39
|
}>;
|
|
40
40
|
type ToggleVariants = VariantProps<typeof toggleVariants>;
|
|
41
41
|
type ToggleVariant = NonNullable<ToggleVariants['variant']>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soybeanjs/ui",
|
|
3
|
-
"version": "0.26.
|
|
3
|
+
"version": "0.26.3",
|
|
4
4
|
"description": "SoybeanUI is built on top of SoybeanHeadless, providing a collection of styled components for Vue 3.",
|
|
5
5
|
"homepage": "https://github.com/soybeanjs/soybean-ui",
|
|
6
6
|
"bugs": {
|
|
@@ -49,12 +49,12 @@
|
|
|
49
49
|
"@soybeanjs/hooks": "^0.3.0",
|
|
50
50
|
"@soybeanjs/shadcn-theme": "^0.3.3",
|
|
51
51
|
"@soybeanjs/utils": "^0.1.1",
|
|
52
|
-
"fuse.js": "^7.3.0",
|
|
53
52
|
"valibot": "^1.4.1",
|
|
54
53
|
"zod": "^4.4.3",
|
|
55
|
-
"@soybeanjs/headless": "^0.26.
|
|
54
|
+
"@soybeanjs/headless": "^0.26.3"
|
|
56
55
|
},
|
|
57
56
|
"devDependencies": {
|
|
57
|
+
"@nuxt/kit": "^4.4.6",
|
|
58
58
|
"@soybeanjs/cli": "^1.7.2",
|
|
59
59
|
"@soybeanjs/eslint-config-vue": "^0.1.0",
|
|
60
60
|
"@soybeanjs/oxc-config": "^0.2.0",
|
|
@@ -71,6 +71,7 @@
|
|
|
71
71
|
"eslint": "^10.4.0",
|
|
72
72
|
"happy-dom": "^20.9.0",
|
|
73
73
|
"lint-staged": "^17.0.5",
|
|
74
|
+
"nuxt": ">=4.4.6",
|
|
74
75
|
"oxfmt": "^0.52.0",
|
|
75
76
|
"oxlint": "^1.67.0",
|
|
76
77
|
"simple-git-hooks": "^2.13.1",
|
|
@@ -86,10 +87,35 @@
|
|
|
86
87
|
"vite": "^8.0.14",
|
|
87
88
|
"vite-plugin-vue-meta-layouts": "^0.6.1",
|
|
88
89
|
"vitest": "^4.1.7",
|
|
89
|
-
"vue": "^3.5.
|
|
90
|
+
"vue": "^3.5.35",
|
|
90
91
|
"vue-router": "^5.0.7",
|
|
91
92
|
"vue-tsc": "^3.3.2"
|
|
92
93
|
},
|
|
94
|
+
"peerDependencies": {
|
|
95
|
+
"@nuxt/kit": "^4.3.0",
|
|
96
|
+
"@nuxt/schema": "^4.3.0",
|
|
97
|
+
"nuxt": ">=4.0.0",
|
|
98
|
+
"unplugin-vue-components": "^31.0.0",
|
|
99
|
+
"vue": ">=3.2.0",
|
|
100
|
+
"vue-router": ">=4.0.0"
|
|
101
|
+
},
|
|
102
|
+
"peerDependenciesMeta": {
|
|
103
|
+
"@nuxt/kit": {
|
|
104
|
+
"optional": true
|
|
105
|
+
},
|
|
106
|
+
"@nuxt/schema": {
|
|
107
|
+
"optional": true
|
|
108
|
+
},
|
|
109
|
+
"nuxt": {
|
|
110
|
+
"optional": true
|
|
111
|
+
},
|
|
112
|
+
"unplugin-vue-components": {
|
|
113
|
+
"optional": true
|
|
114
|
+
},
|
|
115
|
+
"vue-router": {
|
|
116
|
+
"optional": true
|
|
117
|
+
}
|
|
118
|
+
},
|
|
93
119
|
"simple-git-hooks": {
|
|
94
120
|
"commit-msg": "pnpm soy git-commit-verify",
|
|
95
121
|
"pre-commit": "pnpm typecheck && pnpm lint-staged"
|