@soybeanjs/ui 0.25.3 → 0.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/dist/components/alert/alert.vue.d.ts +2 -2
  2. package/dist/components/backtop/backtop.vue.d.ts +1 -1
  3. package/dist/components/button/button-loading.vue.d.ts +3 -1
  4. package/dist/components/button/types.d.ts +4 -4
  5. package/dist/components/color-picker/color-picker.js +1 -1
  6. package/dist/components/color-picker/color-picker.vue.d.ts +3 -3
  7. package/dist/components/color-slider/color-slider.vue.d.ts +1 -1
  8. package/dist/components/combobox/combobox.vue.d.ts +2 -2
  9. package/dist/components/config-provider/config-provider.js +1 -1
  10. package/dist/components/context-menu/context-menu-checkbox.vue.d.ts +2 -2
  11. package/dist/components/context-menu/context-menu-radio.vue.d.ts +2 -2
  12. package/dist/components/date-picker/date-picker.js +1 -1
  13. package/dist/components/date-picker/date-picker.vue.d.ts +2 -2
  14. package/dist/components/date-range-picker/date-range-picker.js +1 -1
  15. package/dist/components/date-range-picker/date-range-picker.vue.d.ts +2 -2
  16. package/dist/components/dialog/dialog.vue.d.ts +3 -3
  17. package/dist/components/drawer/drawer.vue.d.ts +3 -3
  18. package/dist/components/dropdown-menu/dropdown-menu-checkbox.vue.d.ts +2 -2
  19. package/dist/components/dropdown-menu/dropdown-menu-radio.vue.d.ts +2 -2
  20. package/dist/components/hover-card/hover-card.js +1 -1
  21. package/dist/components/icon/icon.js +1 -1
  22. package/dist/components/menubar/menubar.vue.d.ts +2 -2
  23. package/dist/components/navigation-menu/navigation-menu.vue.d.ts +2 -2
  24. package/dist/components/page-tabs/page-tabs.vue.d.ts +2 -2
  25. package/dist/components/popconfirm/popconfirm.js +1 -1
  26. package/dist/components/popconfirm/popconfirm.vue.d.ts +3 -3
  27. package/dist/components/popover/popover.js +1 -1
  28. package/dist/components/select/select.vue.d.ts +2 -2
  29. package/dist/components/splitter/splitter-panel.vue.d.ts +2 -2
  30. package/dist/components/splitter/splitter-resize-handle.vue.d.ts +1 -1
  31. package/dist/components/tooltip/tooltip.js +1 -1
  32. package/dist/components/tree-menu/tree-menu.js +1 -1
  33. package/dist/nuxt/index.js +1 -1
  34. package/dist/styles/alert.d.ts +3 -3
  35. package/dist/styles/badge.d.ts +1 -1
  36. package/dist/styles/button.d.ts +2 -2
  37. package/dist/styles/checkbox.d.ts +1 -1
  38. package/dist/styles/pagination.d.ts +2 -2
  39. package/dist/styles/radio-group.d.ts +1 -1
  40. package/dist/styles/switch.d.ts +2 -2
  41. package/dist/styles/table.d.ts +1 -1
  42. package/dist/styles/tabs.d.ts +2 -2
  43. package/dist/styles/tag.d.ts +2 -2
  44. package/dist/styles/toggle-group.d.ts +1 -1
  45. package/dist/styles/toggle.d.ts +1 -1
  46. package/dist/styles/tree-menu.js +1 -1
  47. package/dist/styles.css +388 -1
  48. package/package.json +3 -3
@@ -6,17 +6,17 @@ declare const __VLS_export: <T extends DefinedValue, M extends boolean = false>(
6
6
  props: import("vue").PublicProps & __VLS_PrettifyLocal<SelectProps<T, M> & {
7
7
  onSelect?: ((event: import("@soybeanjs/headless").SelectItemEvent<T>) => any) | undefined;
8
8
  "onUpdate:open"?: ((value: boolean) => any) | undefined;
9
- "onUpdate:modelValue"?: ((value: M extends true ? T[] : T) => any) | undefined;
10
9
  onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
11
10
  onPointerDownOutside?: ((event: import("@soybeanjs/headless").PointerDownOutsideEvent) => any) | undefined;
12
11
  onCloseAutoFocus?: ((event: Event) => any) | undefined;
12
+ "onUpdate:modelValue"?: ((value: M extends true ? T[] : T) => any) | undefined;
13
13
  }> & (typeof globalThis extends {
14
14
  __VLS_PROPS_FALLBACK: infer P;
15
15
  } ? P : {});
16
16
  expose: (exposed: {}) => void;
17
17
  attrs: any;
18
18
  slots: SelectSlots<T, M>;
19
- emit: ((evt: "select", event: import("@soybeanjs/headless").SelectItemEvent<T>) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "update:modelValue", value: M extends true ? T[] : T) => void) & ((evt: "escapeKeyDown", event: KeyboardEvent) => void) & ((evt: "pointerDownOutside", event: import("@soybeanjs/headless").PointerDownOutsideEvent) => void) & ((evt: "closeAutoFocus", event: Event) => void);
19
+ emit: ((evt: "select", event: import("@soybeanjs/headless").SelectItemEvent<T>) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "escapeKeyDown", event: KeyboardEvent) => void) & ((evt: "pointerDownOutside", event: import("@soybeanjs/headless").PointerDownOutsideEvent) => void) & ((evt: "closeAutoFocus", event: Event) => void) & ((evt: "update:modelValue", value: M extends true ? T[] : T) => void);
20
20
  }>) => import("vue").VNode & {
21
21
  __ctx?: Awaited<typeof __VLS_setup>;
22
22
  };
@@ -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;
16
15
  collapse: () => any;
17
16
  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;
20
19
  onCollapse?: (() => any) | undefined;
21
20
  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;
@@ -402,9 +402,9 @@ declare const __VLS_export: import("vue").DefineComponent<{
402
402
  onDragging?: ((_value: boolean) => any) | undefined;
403
403
  }>, {
404
404
  class: import("@soybeanjs/headless").ClassValue;
405
- tabindex: number;
406
405
  asChild: boolean;
407
406
  as: string | Function | Record<string, any>;
407
+ tabindex: number;
408
408
  disabled: boolean;
409
409
  withHandle: boolean;
410
410
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -1 +1 @@
1
- import{tooltipVariants as e}from"../../styles/tooltip.js";import{computed as t,createBlock as n,defineComponent as r,mergeProps as i,openBlock as a,renderSlot as o,toHandlers as s,unref as c,withCtx as l}from"vue";import{useForwardListeners as u,useOmitProps as d}from"@soybeanjs/headless/composables";import{TooltipCompact as f,provideTooltipUi as p}from"@soybeanjs/headless/tooltip";const m=r({name:`STooltip`,__name:`tooltip`,props:{class:{type:[Boolean,null,String,Object,Array]},size:{},ui:{},content:{},placement:{},showArrow:{type:Boolean,default:!0},triggerProps:{},portalProps:{},positionerProps:{},popupProps:{},arrowProps:{},defaultOpen:{type:Boolean,default:!1},open:{type:Boolean,default:void 0},delayDuration:{},skipDelayDuration:{},disableHoverableContent:{type:Boolean},disableClosingTrigger:{type:Boolean},disabled:{type:Boolean},ignoreNonKeyboardFocus:{type:Boolean}},emits:[`update:open`,`escapeKeyDown`,`pointerDownOutside`],setup(r,{emit:m}){let h=r,g=m,_=d(h,[`class`,`size`,`ui`]),v=u(g);return p(t(()=>e({size:h.size},h.ui,{popup:h.class}))),(e,t)=>(a(),n(c(f),i(c(_),s(c(v))),{trigger:l(()=>[o(e.$slots,`trigger`)]),default:l(()=>[o(e.$slots,`default`)]),_:3},16))}});export{m as default};
1
+ import{tooltipVariants as e}from"../../styles/tooltip.js";import{computed as t,createBlock as n,defineComponent as r,mergeProps as i,openBlock as a,renderSlot as o,toHandlers as s,unref as c,withCtx as l}from"vue";import{useForwardListeners as u,useOmitProps as d}from"@soybeanjs/headless/composables";import{TooltipCompact as f,provideTooltipUi as p}from"@soybeanjs/headless/tooltip";const m=r({name:`STooltip`,__name:`tooltip`,props:{class:{type:[Boolean,null,String,Object,Array]},size:{},ui:{},content:{},placement:{},showArrow:{type:Boolean,default:!0},triggerProps:{},portalProps:{},positionerProps:{},popupProps:{},arrowProps:{},defaultOpen:{type:Boolean,default:!1},open:{type:Boolean,default:void 0},dir:{},delayDuration:{},skipDelayDuration:{},disableHoverableContent:{type:Boolean},disableClosingTrigger:{type:Boolean},disabled:{type:Boolean},ignoreNonKeyboardFocus:{type:Boolean}},emits:[`update:open`,`escapeKeyDown`,`pointerDownOutside`],setup(r,{emit:m}){let h=r,g=m,_=d(h,[`class`,`size`,`ui`]),v=u(g);return p(t(()=>e({size:h.size},h.ui,{popup:h.class}))),(e,t)=>(a(),n(c(f),i(c(_),s(c(v))),{trigger:l(()=>[o(e.$slots,`trigger`)]),default:l(()=>[o(e.$slots,`default`)]),_:3},16))}});export{m as default};
@@ -1 +1 @@
1
- import{badgeVariants as e}from"../../styles/badge.js";import{provideMenuUi as t}from"../menu/context.js";import{tooltipVariants as n}from"../../styles/tooltip.js";import{treeMenuVariants as r}from"../../styles/tree-menu.js";import{computed as i,createBlock as a,createCommentVNode as o,createSlots as s,defineComponent as c,guardReactiveProps as l,mergeProps as u,normalizeProps as d,openBlock as f,renderList as p,renderSlot as m,toHandlers as h,unref as g,useSlots as _,withCtx as v}from"vue";import{useForwardListeners as y,useOmitProps as b}from"@soybeanjs/headless/composables";import{keysOf as x}from"@soybeanjs/utils";import{provideBadgeUi as S}from"@soybeanjs/headless/badge";import{provideTooltipUi as C}from"@soybeanjs/headless/tooltip";import{TreeMenuCompact as w,provideTreeMenuUi as T}from"@soybeanjs/headless/tree-menu";const E=c({name:`STreeMenu`,__name:`tree-menu`,props:{class:{type:[Boolean,null,String,Object,Array]},size:{},ui:{},modelValue:{},defaultValue:{},expanded:{},defaultExpanded:{},collapsed:{type:Boolean,default:void 0},defaultCollapsed:{type:Boolean},collapsedWidth:{},indent:{},pxToRem:{},items:{},groupRootProps:{},groupProps:{},groupLabelProps:{},showGroupIcon:{type:Boolean},side:{},itemProps:{},buttonProps:{},linkProps:{},collapsibleProps:{},subProps:{}},emits:[`update:modelValue`,`update:expanded`,`update:collapsed`,`selectDropdown`],setup(c,{emit:E}){let D=c,O=E,k=_(),A=b(D,[`class`,`size`,`ui`]),j=y(O),M=i(()=>x(k)),N=i(()=>r({size:D.size},D.ui,{root:D.class})),P=i(()=>e({color:`accent`,size:D.size,position:`top-right`})),F=i(()=>n({size:D.size}));return t(()=>({size:D.size})),S(P),C(F),T(N),(e,t)=>(f(),a(g(w),u(g(A),h(g(j))),s({_:2},[p(M.value,t=>({name:t,fn:v(n=>[o(` @vue-expect-error ignore slot type `),m(e.$slots,t,d(l(n)))])}))]),1040))}});export{E as default};
1
+ import{provideMenuUi as e}from"../menu/context.js";import{treeMenuVariants as t}from"../../styles/tree-menu.js";import{computed as n,createBlock as r,createCommentVNode as i,createSlots as a,defineComponent as o,guardReactiveProps as s,mergeProps as c,normalizeProps as l,openBlock as u,renderList as d,renderSlot as f,toHandlers as p,unref as m,useSlots as h,withCtx as g}from"vue";import{useForwardListeners as _,useOmitProps as v}from"@soybeanjs/headless/composables";import{keysOf as y}from"@soybeanjs/utils";import{TreeMenuCompact as b,provideTreeMenuUi as x}from"@soybeanjs/headless/tree-menu";const S=o({name:`STreeMenu`,__name:`tree-menu`,props:{class:{type:[Boolean,null,String,Object,Array]},size:{},ui:{},modelValue:{},defaultValue:{},expanded:{},defaultExpanded:{},collapsed:{type:Boolean,default:void 0},defaultCollapsed:{type:Boolean},collapsedWidth:{},indent:{},pxToRem:{},items:{},groupRootProps:{},groupProps:{},groupLabelProps:{},showGroupIcon:{type:Boolean},side:{},itemProps:{},buttonProps:{},linkProps:{},collapsibleProps:{},subProps:{}},emits:[`update:modelValue`,`update:expanded`,`update:collapsed`,`selectDropdown`],setup(o,{emit:S}){let C=o,w=S,T=h(),E=v(C,[`class`,`size`,`ui`]),D=_(w),O=n(()=>y(T)),k=n(()=>t({size:C.size},C.ui,{root:C.class}));return e(()=>({size:C.size})),x(k),(e,t)=>(u(),r(m(b),c(m(E),p(m(D))),a({_:2},[d(O.value,t=>({name:t,fn:g(n=>[i(` @vue-expect-error ignore slot type `),f(e.$slots,t,l(s(n)))])}))]),1040))}});export{S as default};
@@ -1 +1 @@
1
- import{components as e}from"../constants/components.js";import{addComponent as t,defineNuxtModule as n}from"@nuxt/kit";var r=n({meta:{name:`@soybeanjs/ui/nuxt`,configKey:`@soybeanjs/ui`,compatibility:{nuxt:`>=3.14`}},defaults:{components:!0},setup(n,r){r.hook(`vite:extendConfig`,e=>{e.define&&(e.define[`import.meta.env.DEV`]=e.define?.[`import.meta.dev`],e.define[`import.meta.env.MODE`]=e.define?.[`import.meta.test`]?`test`:`development`)});function i(){return typeof n.components==`object`?Object.entries(e).filter(([e])=>n.components[e]).flatMap(([e,t])=>t):n.components?Object.values(e).flat():[]}for(let e of i())t({name:`${e}`,export:e,filePath:`@soybeanjs/ui`})}});export{r as default};
1
+ import{components as e}from"../constants/components.js";import{addComponent as t,defineNuxtModule as n}from"@nuxt/kit";var r=n({meta:{name:`@soybeanjs/ui/nuxt`,configKey:`@soybeanjs/ui`,compatibility:{nuxt:`>=3.14`}},defaults:{components:!0},setup(n){function r(){return typeof n.components==`object`?Object.entries(e).filter(([e])=>n.components[e]).flatMap(([e,t])=>t):n.components?Object.values(e).flat():[]}for(let e of r())t({name:`${e}`,export:e,filePath:`@soybeanjs/ui`})}});export{r as default};
@@ -1,7 +1,7 @@
1
1
  import { VariantProps } from "@soybeanjs/cva";
2
2
 
3
3
  //#region src/styles/alert.d.ts
4
- declare const alertVariants: import("@soybeanjs/cva").SCVResult<"icon" | "title" | "content" | "close" | "description" | "root", NoInfer<{
4
+ declare const alertVariants: import("@soybeanjs/cva").SCVResult<"icon" | "title" | "description" | "content" | "close" | "root", NoInfer<{
5
5
  color: {
6
6
  primary: {
7
7
  root: "border-primary text-primary";
@@ -92,9 +92,9 @@ declare const alertVariants: import("@soybeanjs/cva").SCVResult<"icon" | "title"
92
92
  };
93
93
  };
94
94
  }>, {
95
- color?: "primary" | "destructive" | "success" | "warning" | "info" | "carbon" | "secondary" | "accent" | undefined;
96
95
  size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined;
97
- variant?: "solid" | "pure" | "outline" | "soft" | "ghost" | undefined;
96
+ color?: "info" | "success" | "warning" | "primary" | "destructive" | "carbon" | "secondary" | "accent" | undefined;
97
+ variant?: "pure" | "solid" | "outline" | "soft" | "ghost" | undefined;
98
98
  }>;
99
99
  type AlertVariants = VariantProps<typeof alertVariants>;
100
100
  type AlertVariant = NonNullable<AlertVariants['variant']>;
@@ -63,8 +63,8 @@ declare const badgeVariants: import("@soybeanjs/cva").SCVResult<"content" | "roo
63
63
  };
64
64
  };
65
65
  }>, {
66
- color?: "primary" | "destructive" | "success" | "warning" | "info" | "carbon" | "secondary" | "accent" | undefined;
67
66
  size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined;
67
+ color?: "info" | "success" | "warning" | "primary" | "destructive" | "carbon" | "secondary" | "accent" | undefined;
68
68
  position?: "top-right" | "bottom-right" | "top-left" | "bottom-left" | undefined;
69
69
  }>;
70
70
  type BadgeVariants = VariantProps<typeof badgeVariants>;
@@ -47,10 +47,10 @@ declare const buttonVariants: import("@soybeanjs/cva").CVResult<NoInfer<{
47
47
  false: string;
48
48
  };
49
49
  }>, {
50
- color?: "primary" | "destructive" | "success" | "warning" | "info" | "carbon" | "secondary" | "accent" | undefined;
51
50
  size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined;
51
+ color?: "info" | "success" | "warning" | "primary" | "destructive" | "carbon" | "secondary" | "accent" | undefined;
52
52
  shape?: "auto" | "rounded" | "square" | "circle" | undefined;
53
- variant?: "link" | "solid" | "pure" | "outline" | "soft" | "ghost" | "dashed" | "plain" | undefined;
53
+ variant?: "link" | "pure" | "solid" | "outline" | "soft" | "ghost" | "dashed" | "plain" | undefined;
54
54
  shadow?: "sm" | "md" | "lg" | "none" | undefined;
55
55
  fitContent?: boolean | undefined;
56
56
  }>;
@@ -77,8 +77,8 @@ declare const checkboxVariants: import("@soybeanjs/cva").SCVResult<"label" | "ro
77
77
  };
78
78
  };
79
79
  }>, {
80
- color?: "primary" | "destructive" | "success" | "warning" | "info" | "carbon" | "secondary" | "accent" | undefined;
81
80
  size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined;
81
+ color?: "info" | "success" | "warning" | "primary" | "destructive" | "carbon" | "secondary" | "accent" | undefined;
82
82
  shape?: "rounded" | "square" | undefined;
83
83
  orientation?: "horizontal" | "vertical" | undefined;
84
84
  }>;
@@ -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" | "first" | "last" | "ellipsis" | "root" | "prev" | "listItem", NoInfer<{
4
+ declare const paginationVariants: import("@soybeanjs/cva").SCVResult<"list" | "next" | "root" | "first" | "last" | "ellipsis" | "prev" | "listItem", NoInfer<{
5
5
  size: {
6
6
  xs: {
7
7
  list: "gap-0.75 text-2xs";
@@ -63,7 +63,7 @@ declare const paginationVariants: import("@soybeanjs/cva").SCVResult<"list" | "n
63
63
  }>, {
64
64
  size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined;
65
65
  shape?: "rounded" | "square" | undefined;
66
- variant?: "solid" | "pure" | "outline" | "soft" | undefined;
66
+ variant?: "pure" | "solid" | "outline" | "soft" | undefined;
67
67
  actionAsSelected?: boolean | undefined;
68
68
  }>;
69
69
  type PaginationVariants = VariantProps<typeof paginationVariants>;
@@ -85,8 +85,8 @@ declare const radioGroupVariants: import("@soybeanjs/cva").SCVResult<"label" | "
85
85
  };
86
86
  };
87
87
  }>, {
88
- color?: "primary" | "destructive" | "success" | "warning" | "info" | "carbon" | "secondary" | "accent" | undefined;
89
88
  size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined;
89
+ color?: "info" | "success" | "warning" | "primary" | "destructive" | "carbon" | "secondary" | "accent" | undefined;
90
90
  variant?: "outline" | "dot" | undefined;
91
91
  orientation?: "horizontal" | "vertical" | undefined;
92
92
  }>;
@@ -1,7 +1,7 @@
1
1
  import { VariantProps } from "@soybeanjs/cva";
2
2
 
3
3
  //#region src/styles/switch.d.ts
4
- declare const switchVariants: import("@soybeanjs/cva").SCVResult<"root" | "control" | "thumb", NoInfer<{
4
+ declare const switchVariants: import("@soybeanjs/cva").SCVResult<"root" | "thumb" | "control", NoInfer<{
5
5
  color: {
6
6
  primary: {
7
7
  control: "data-[state=checked]:bg-primary focus-visible:ring-primary/30";
@@ -65,8 +65,8 @@ declare const switchVariants: import("@soybeanjs/cva").SCVResult<"root" | "contr
65
65
  };
66
66
  };
67
67
  }>, {
68
- color?: "primary" | "destructive" | "success" | "warning" | "info" | "carbon" | "secondary" | "accent" | undefined;
69
68
  size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined;
69
+ color?: "info" | "success" | "warning" | "primary" | "destructive" | "carbon" | "secondary" | "accent" | undefined;
70
70
  shape?: "rounded" | "square" | undefined;
71
71
  }>;
72
72
  type SwitchVariants = VariantProps<typeof switchVariants>;
@@ -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<"fixed" | "content" | "header" | "footer" | "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<{
4
+ declare const tableVariants: import("@soybeanjs/cva").SCVResult<"header" | "content" | "footer" | "fixed" | "root" | "resizeHandle" | "body" | "head" | "scroll" | "cell" | "row" | "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";
@@ -1,7 +1,7 @@
1
1
  import { VariantProps } from "@soybeanjs/cva";
2
2
 
3
3
  //#region src/styles/tabs.d.ts
4
- declare const tabsVariants: import("@soybeanjs/cva").SCVResult<"list" | "content" | "root" | "trigger" | "indicator" | "indicatorContent", NoInfer<{
4
+ declare const tabsVariants: import("@soybeanjs/cva").SCVResult<"list" | "content" | "root" | "indicator" | "trigger" | "indicatorContent", NoInfer<{
5
5
  size: {
6
6
  xs: {
7
7
  root: "text-2xs";
@@ -68,8 +68,8 @@ declare const tabsVariants: import("@soybeanjs/cva").SCVResult<"list" | "content
68
68
  };
69
69
  };
70
70
  }>, {
71
- fill?: "auto" | "full" | undefined;
72
71
  size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined;
72
+ fill?: "auto" | "full" | undefined;
73
73
  shape?: "rounded" | "square" | undefined;
74
74
  orientation?: "horizontal" | "vertical" | undefined;
75
75
  enableIndicator?: boolean | undefined;
@@ -33,10 +33,10 @@ declare const tagVariants: import("@soybeanjs/cva").CVResult<NoInfer<{
33
33
  rounded: string;
34
34
  };
35
35
  }>, {
36
- color?: "primary" | "destructive" | "success" | "warning" | "info" | "carbon" | "secondary" | "accent" | undefined;
37
36
  size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined;
37
+ color?: "info" | "success" | "warning" | "primary" | "destructive" | "carbon" | "secondary" | "accent" | undefined;
38
38
  shape?: "auto" | "rounded" | undefined;
39
- variant?: "solid" | "pure" | "outline" | "soft" | "ghost" | "raw" | undefined;
39
+ variant?: "pure" | "solid" | "outline" | "soft" | "ghost" | "raw" | undefined;
40
40
  }>;
41
41
  type TagVariants = VariantProps<typeof tagVariants>;
42
42
  type TagVariant = NonNullable<TagVariants['variant']>;
@@ -68,8 +68,8 @@ declare const toggleGroupVariants: import("@soybeanjs/cva").SCVResult<"root" | "
68
68
  };
69
69
  };
70
70
  }>, {
71
- color?: "primary" | "destructive" | "success" | "warning" | "info" | "carbon" | "secondary" | "accent" | undefined;
72
71
  size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined;
72
+ color?: "info" | "success" | "warning" | "primary" | "destructive" | "carbon" | "secondary" | "accent" | undefined;
73
73
  variant?: "outline" | "soft" | "ghost" | undefined;
74
74
  orientation?: "horizontal" | "vertical" | undefined;
75
75
  }>;
@@ -32,8 +32,8 @@ declare const toggleVariants: import("@soybeanjs/cva").CVResult<NoInfer<{
32
32
  circle: string;
33
33
  };
34
34
  }>, {
35
- color?: "primary" | "destructive" | "success" | "warning" | "info" | "carbon" | "secondary" | "accent" | undefined;
36
35
  size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined;
36
+ color?: "info" | "success" | "warning" | "primary" | "destructive" | "carbon" | "secondary" | "accent" | undefined;
37
37
  shape?: "auto" | "rounded" | "square" | "circle" | undefined;
38
38
  variant?: "outline" | "soft" | "ghost" | undefined;
39
39
  }>;
@@ -1 +1 @@
1
- import{scv as e}from"@soybeanjs/cva";const t=e({slots:{root:`group flex-1 flex flex-col w-full h-full overflow-auto data-[state=collapsed]:w-[--soybean-tree-menu-collapsed-width] transition-[width,height]-200 ease-out`,groupRoot:`group-data-[state=collapsed]:mb-0`,group:`flex flex-col m-0 p-0 list-none`,groupLabel:`flex items-center text-foreground/70 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 m-0 p-0 group-data-[state=collapsed]:hover:bg-sidebar-accent group-data-[state=collapsed]:hover:rounded-sm`,button:[`group/button relative flex items-center w-full rounded-sm outline-none cursor-pointer select-none group-data-[state=collapsed]:overflow-hidden`,`data-[active=true]:bg-primary/10 data-[active=true]:text-primary`,`data-[active=false]:hover:bg-sidebar-accent data-[active=false]:focus:bg-sidebar-accent`,`data-[child-active]:text-primary`,`data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50`],collapsibleRoot:``,collapsibleTrigger:``,collapsibleContent:[`overflow-hidden transition will-change-auto`,`data-[state=open]:animate-collapsible-down data-[state=closed]:animate-collapsible-up`],collapsibleIcon:`shrink-0 ms-auto text-muted-foreground transition-transform-200 group-data-[state=open]/button:rotate-90 group-data-[child-active]/button:text-primary`,sub:`flex flex-col m-0 list-none ms-[--soybean-tree-menu-indent] border-s border-sidebar-border border-solid`,itemLabel:`truncate`,itemLinkIcon:`shrink-0 self-start text-muted-foreground rtl:rotate-270`,itemBadge:``,itemTag:`shrink-0 ms-auto inline-flex items-center rounded-sm bg-accent/15 text-accent-foreground`,itemAction:[`absolute end-0 top-1/2 -translate-y-1/2 z-2 inline-flex items-center justify-center rounded-sm text-muted-foreground outline-none transition-colors`,`focus-visible:bg-sidebar-accent focus-visible:text-foreground focus-visible:ring-3 focus-visible:ring-accent-foreground/20`,`disabled:pointer-events-none disabled:opacity-50`],itemAbsolute:`absolute inset-0 z-1 cursor-pointer`},variants:{size:{xs:{root:`gap-0.875 p-1.5 text-2xs`,groupRoot:`mb-0.875`,groupLabel:`h-6 gap-1 px-1.5 py-1 text-3xs`,group:`gap-0.875`,button:`gap-1.5 h-6 px-1.5 py-1 group-data-[state=collapsed]:w-6`,sub:`gap-0.875 ps-1.5 pt-0.875`,subButton:`gap-1.5 h-6 px-1.5 py-1 group-data-[state=collapsed]:w-6`,itemLinkIcon:`size-2 -ms-1`,itemTag:`min-h-3.5 px-1 text-4xs`,itemAction:`end-1 size-4 text-2xs`},sm:{root:`gap-1 p-1.75 text-xs`,groupRoot:`mb-1`,groupLabel:`h-7 gap-1.5 px-1.75 py-1 text-2xs`,group:`gap-1`,button:`gap-1.75 h-7 px-1.75 py-1 group-data-[state=collapsed]:w-7`,sub:`gap-1 ps-1.75 pt-1`,subButton:`gap-1.75 h-7 px-1.75 py-1 group-data-[state=collapsed]:w-7`,itemLinkIcon:`size-2.5 -ms-1.5`,itemTag:`min-h-4 px-1.25 text-3xs`,itemAction:`end-1.25 size-4.5 text-xs`},md:{root:`gap-1.25 p-2 text-sm`,groupRoot:`mb-1.25`,groupLabel:`h-8 gap-2 px-2 py-1.5 text-xs`,group:`gap-1.25`,button:`gap-2 h-8 px-2 py-1.5 group-data-[state=collapsed]:w-8`,sub:`gap-1.25 ps-2 pt-1.25`,subButton:`gap-2 h-8 px-2 py-1.5 group-data-[state=collapsed]:w-8`,itemLinkIcon:`size-3 -ms-2`,itemTag:`min-h-4.5 px-1.5 text-2xs`,itemAction:`end-1.5 size-5 text-sm`},lg:{root:`gap-1.5 p-2.25 text-base`,groupRoot:`mb-1.5`,groupLabel:`h-9 gap-2.5 px-2.25 py-1.5 text-sm`,group:`gap-1.5`,button:`gap-2.25 h-9 px-2.25 py-1.5 group-data-[state=collapsed]:w-9`,sub:`gap-1.5 ps-2.25 pt-1.5`,subButton:`gap-2.25 h-9 px-2.25 py-1.5 group-data-[state=collapsed]:w-9`,itemLinkIcon:`size-3.5 -ms-2.5`,itemTag:`min-h-5 px-1.75 text-xs`,itemAction:`end-1.75 size-5.5 text-base`},xl:{root:`gap-2 p-2.5 text-lg`,groupRoot:`mb-2`,groupLabel:`h-10 gap-3 px-2.5 py-2 text-base`,group:`gap-2`,button:`gap-2.5 h-10 px-2.5 py-2 group-data-[state=collapsed]:w-10`,sub:`gap-2 ps-2.5 pt-2`,subButton:`gap-2.5 h-10 px-2.5 py-2 group-data-[state=collapsed]:w-10`,itemLinkIcon:`size-4 -ms-3`,itemTag:`min-h-5.5 px-2 text-sm`,itemAction:`end-2 size-6 text-lg`},"2xl":{root:`gap-2.5 p-3 text-xl`,groupRoot:`mb-2.5`,groupLabel:`h-12 gap-3.5 px-3 py-2.5 text-lg`,group:`gap-2.5`,button:`gap-3 h-12 px-3 py-2.5 group-data-[state=collapsed]:w-12`,sub:`gap-2.5 ps-3 pt-2.5`,subButton:`gap-3 h-12 px-3 py-2.5 group-data-[state=collapsed]:w-12`,itemLinkIcon:`size-5 -ms-4`,itemTag:`min-h-6 px-2.5 text-base`,itemAction:`end-2.5 size-7 text-xl`}}},defaultVariants:{size:`md`}});export{t as treeMenuVariants};
1
+ import{badgeVariants as e}from"./badge.js";import{tooltipVariants as t}from"./tooltip.js";import{scv as n}from"@soybeanjs/cva";const r=n({extendBase:n=>{let{positioner:r,popup:i,arrow:a}=t({size:n.size}),{root:o,content:s}=e({size:n.size,color:`accent`,position:`top-right`});return{tooltipPositioner:r,tooltipPopup:i,tooltipArrow:a,badgeRoot:o,badgeContent:s}},slots:{root:`group flex-1 flex flex-col w-full h-full overflow-auto data-[state=collapsed]:w-[--soybean-tree-menu-collapsed-width] transition-[width,height]-200 ease-out`,groupRoot:`group-data-[state=collapsed]:mb-0`,group:`flex flex-col m-0 p-0 list-none`,groupLabel:`flex items-center text-foreground/70 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 m-0 p-0 group-data-[state=collapsed]:hover:bg-sidebar-accent group-data-[state=collapsed]:hover:rounded-sm`,button:[`group/button relative flex items-center w-full rounded-sm outline-none cursor-pointer select-none group-data-[state=collapsed]:overflow-hidden`,`data-[active=true]:bg-primary/10 data-[active=true]:text-primary`,`data-[active=false]:hover:bg-sidebar-accent data-[active=false]:focus:bg-sidebar-accent`,`data-[child-active]:text-primary`,`data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50`],collapsibleRoot:``,collapsibleTrigger:``,collapsibleContent:[`overflow-hidden transition will-change-auto`,`data-[state=open]:animate-collapsible-down data-[state=closed]:animate-collapsible-up`],collapsibleIcon:`shrink-0 ms-auto text-muted-foreground transition-transform-200 group-data-[state=open]/button:rotate-90 group-data-[child-active]/button:text-primary`,sub:`flex flex-col m-0 list-none ms-[--soybean-tree-menu-indent] border-s border-sidebar-border border-solid`,itemLabel:`truncate`,itemLinkIcon:`shrink-0 self-start text-muted-foreground rtl:rotate-270`,itemTag:`shrink-0 ms-auto inline-flex items-center rounded-sm bg-accent/15 text-accent-foreground`,itemAction:[`absolute end-0 top-1/2 -translate-y-1/2 z-2 inline-flex items-center justify-center rounded-sm text-muted-foreground outline-none transition-colors`,`focus-visible:bg-sidebar-accent focus-visible:text-foreground focus-visible:ring-3 focus-visible:ring-accent-foreground/20`,`disabled:pointer-events-none disabled:opacity-50`],itemAbsolute:`absolute inset-0 z-1 cursor-pointer`,tooltipPositioner:``,tooltipPopup:``,tooltipArrow:``,badgeRoot:``,badgeContent:``},variants:{size:{xs:{root:`gap-0.875 p-1.5 text-2xs`,groupRoot:`mb-0.875`,groupLabel:`h-6 gap-1 px-1.5 py-1 text-3xs`,group:`gap-0.875`,button:`gap-1.5 h-6 px-1.5 py-1 group-data-[state=collapsed]:w-6`,sub:`gap-0.875 ps-1.5 pt-0.875`,subButton:`gap-1.5 h-6 px-1.5 py-1 group-data-[state=collapsed]:w-6`,itemLinkIcon:`size-2 -ms-1`,itemTag:`min-h-3.5 px-1 text-4xs`,itemAction:`end-1 size-4 text-2xs`},sm:{root:`gap-1 p-1.75 text-xs`,groupRoot:`mb-1`,groupLabel:`h-7 gap-1.5 px-1.75 py-1 text-2xs`,group:`gap-1`,button:`gap-1.75 h-7 px-1.75 py-1 group-data-[state=collapsed]:w-7`,sub:`gap-1 ps-1.75 pt-1`,subButton:`gap-1.75 h-7 px-1.75 py-1 group-data-[state=collapsed]:w-7`,itemLinkIcon:`size-2.5 -ms-1.5`,itemTag:`min-h-4 px-1.25 text-3xs`,itemAction:`end-1.25 size-4.5 text-xs`},md:{root:`gap-1.25 p-2 text-sm`,groupRoot:`mb-1.25`,groupLabel:`h-8 gap-2 px-2 py-1.5 text-xs`,group:`gap-1.25`,button:`gap-2 h-8 px-2 py-1.5 group-data-[state=collapsed]:w-8`,sub:`gap-1.25 ps-2 pt-1.25`,subButton:`gap-2 h-8 px-2 py-1.5 group-data-[state=collapsed]:w-8`,itemLinkIcon:`size-3 -ms-2`,itemTag:`min-h-4.5 px-1.5 text-2xs`,itemAction:`end-1.5 size-5 text-sm`},lg:{root:`gap-1.5 p-2.25 text-base`,groupRoot:`mb-1.5`,groupLabel:`h-9 gap-2.5 px-2.25 py-1.5 text-sm`,group:`gap-1.5`,button:`gap-2.25 h-9 px-2.25 py-1.5 group-data-[state=collapsed]:w-9`,sub:`gap-1.5 ps-2.25 pt-1.5`,subButton:`gap-2.25 h-9 px-2.25 py-1.5 group-data-[state=collapsed]:w-9`,itemLinkIcon:`size-3.5 -ms-2.5`,itemTag:`min-h-5 px-1.75 text-xs`,itemAction:`end-1.75 size-5.5 text-base`},xl:{root:`gap-2 p-2.5 text-lg`,groupRoot:`mb-2`,groupLabel:`h-10 gap-3 px-2.5 py-2 text-base`,group:`gap-2`,button:`gap-2.5 h-10 px-2.5 py-2 group-data-[state=collapsed]:w-10`,sub:`gap-2 ps-2.5 pt-2`,subButton:`gap-2.5 h-10 px-2.5 py-2 group-data-[state=collapsed]:w-10`,itemLinkIcon:`size-4 -ms-3`,itemTag:`min-h-5.5 px-2 text-sm`,itemAction:`end-2 size-6 text-lg`},"2xl":{root:`gap-2.5 p-3 text-xl`,groupRoot:`mb-2.5`,groupLabel:`h-12 gap-3.5 px-3 py-2.5 text-lg`,group:`gap-2.5`,button:`gap-3 h-12 px-3 py-2.5 group-data-[state=collapsed]:w-12`,sub:`gap-2.5 ps-3 pt-2.5`,subButton:`gap-3 h-12 px-3 py-2.5 group-data-[state=collapsed]:w-12`,itemLinkIcon:`size-5 -ms-4`,itemTag:`min-h-6 px-2.5 text-base`,itemAction:`end-2.5 size-7 text-xl`}}},defaultVariants:{size:`md`}});export{r as treeMenuVariants};