@soybeanjs/ui 0.25.4 → 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.
@@ -16,8 +16,8 @@ declare const __VLS_base: import("vue").DefineComponent<BacktopProps, {}, {}, {}
16
16
  icon: string;
17
17
  size: ThemeSize;
18
18
  color: ThemeColor;
19
- variant: ButtonVariant;
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;
@@ -17,7 +17,9 @@ type __VLS_Slots = {} & {
17
17
  trailing?: (props: typeof __VLS_33) => any;
18
18
  };
19
19
  declare const __VLS_base: import("vue").DefineComponent<ButtonLoadingProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ButtonLoadingProps> & Readonly<{}>, {
20
- loadingIcon: string;
20
+ loadingIcon: string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
21
+ [key: string]: any;
22
+ }> | import("vue").Component | null;
21
23
  loadingPosition: Align;
22
24
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
23
25
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -1,6 +1,6 @@
1
1
  import { ThemeColor, ThemeSize } from "../../theme/types.js";
2
2
  import { ButtonShadow, ButtonShape, ButtonVariant } from "../../styles/button.js";
3
- import { IconProps } from "../icon/types.js";
3
+ import { IconProps, IconValue } from "../icon/types.js";
4
4
  import { LinkProps } from "../link/types.js";
5
5
  import { ButtonEmits, ButtonProps } from "@soybeanjs/headless/button";
6
6
  import { Align, ClassValue, DataOrientation, Direction } from "@soybeanjs/headless/types";
@@ -43,8 +43,8 @@ interface ButtonProps$1 extends ButtonProps {
43
43
  * Properties for the ButtonIcon component.
44
44
  */
45
45
  interface ButtonIconProps extends ButtonProps$1 {
46
- /** The icon name of iconify. */
47
- icon: string;
46
+ /** The icon value of iconify. */
47
+ icon: IconValue;
48
48
  /**
49
49
  * The class of the icon.
50
50
  */
@@ -86,7 +86,7 @@ interface ButtonLoadingProps extends ButtonProps$1 {
86
86
  *
87
87
  * @default 'svg-spinners:270-ring'
88
88
  */
89
- loadingIcon?: string;
89
+ loadingIcon?: IconValue;
90
90
  /** The props of the loading icon. */
91
91
  loadingIconProps?: Partial<IconProps>;
92
92
  /**
@@ -1 +1 @@
1
- import{colorAreaVariants as e}from"../../styles/color-area.js";import{colorFieldVariants as t}from"../../styles/color-field.js";import{colorPickerVariants as n}from"../../styles/color-picker.js";import{colorSwatchVariants as r}from"../../styles/color-swatch.js";import{colorSwatchPickerVariants as i}from"../../styles/color-swatch-picker.js";import{popoverVariants as a}from"../../styles/popover.js";import{sliderVariants as o}from"../../styles/slider.js";import{tabsVariants as s}from"../../styles/tabs.js";import{computed as c,createBlock as l,defineComponent as u,mergeProps as d,openBlock as f,toHandlers as p,unref as m}from"vue";import{useForwardListeners as h,useOmitProps as g}from"@soybeanjs/headless/composables";import{provideColorAreaUi as _}from"@soybeanjs/headless/color-area";import{provideColorFieldUi as v}from"@soybeanjs/headless/color-field";import{ColorPickerCompact as y,provideColorPickerUi as b}from"@soybeanjs/headless/color-picker";import{provideColorSliderUi as x}from"@soybeanjs/headless/color-slider";import{provideColorSwatchUi as S}from"@soybeanjs/headless/color-swatch";import{provideColorSwatchPickerUi as C}from"@soybeanjs/headless/color-swatch-picker";import{providePopoverUi as w}from"@soybeanjs/headless/popover";import{provideTabsUi as T}from"@soybeanjs/headless/tabs";const E=u({name:`SColorPicker`,__name:`color-picker`,props:{class:{type:[Boolean,null,String,Object,Array]},size:{},ui:{},showAlpha:{type:Boolean,default:!0},showFields:{type:Boolean,default:!0},showSwatches:{type:Boolean,default:!0},swatches:{},swatchProps:{},segmentProps:{},areaProps:{},hueSliderProps:{},alphaSliderProps:{},alphaFieldProps:{},fieldProps:{},swatchPickerProps:{},modelValue:{},defaultValue:{},format:{},defaultFormat:{},colorSpace:{},disabled:{type:Boolean},name:{},required:{type:Boolean},placement:{},showArrow:{type:Boolean,default:!0},triggerProps:{},portalProps:{},positionerProps:{},popupProps:{},arrowProps:{},closeProps:{},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean},modal:{type:Boolean}},emits:[`update:modelValue`,`update:color`,`update:format`,`change`,`update:open`,`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(u,{emit:E}){let D=u,O=E,k=g(D,[`class`,`size`,`ui`]),A=h(O),j=c(()=>n({size:D.size},D.ui,{trigger:D.class})),M=c(()=>a({size:D.size},{popup:D.ui?.popup})),N=c(()=>e({size:D.size})),P=c(()=>t({size:D.size})),F=c(()=>r({size:D.size,shape:`square`})),I=c(()=>i({size:D.size,shape:`square`})),L=c(()=>o({size:D.size})),R=c(()=>s({size:D.size,orientation:`horizontal`,shape:`square`,fill:`auto`,enableIndicator:!0}));return b(j),w(M),_(N),v(P),C(I),x(L),S(F),T(R),(e,t)=>(f(),l(m(y),d(m(k),p(m(A))),null,16))}});export{E as default};
1
+ import{colorAreaVariants as e}from"../../styles/color-area.js";import{colorFieldVariants as t}from"../../styles/color-field.js";import{colorPickerVariants as n}from"../../styles/color-picker.js";import{colorSwatchVariants as r}from"../../styles/color-swatch.js";import{colorSwatchPickerVariants as i}from"../../styles/color-swatch-picker.js";import{popoverVariants as a}from"../../styles/popover.js";import{sliderVariants as o}from"../../styles/slider.js";import{tabsVariants as s}from"../../styles/tabs.js";import{computed as c,createBlock as l,defineComponent as u,mergeProps as d,openBlock as f,toHandlers as p,unref as m}from"vue";import{useForwardListeners as h,useOmitProps as g}from"@soybeanjs/headless/composables";import{provideColorAreaUi as _}from"@soybeanjs/headless/color-area";import{provideColorFieldUi as v}from"@soybeanjs/headless/color-field";import{ColorPickerCompact as y,provideColorPickerUi as b}from"@soybeanjs/headless/color-picker";import{provideColorSliderUi as x}from"@soybeanjs/headless/color-slider";import{provideColorSwatchUi as S}from"@soybeanjs/headless/color-swatch";import{provideColorSwatchPickerUi as C}from"@soybeanjs/headless/color-swatch-picker";import{providePopoverUi as w}from"@soybeanjs/headless/popover";import{provideTabsUi as T}from"@soybeanjs/headless/tabs";const E=u({name:`SColorPicker`,__name:`color-picker`,props:{class:{type:[Boolean,null,String,Object,Array]},size:{},ui:{},showAlpha:{type:Boolean,default:!0},showFields:{type:Boolean,default:!0},showSwatches:{type:Boolean,default:!0},swatches:{},swatchProps:{},segmentProps:{},areaProps:{},hueSliderProps:{},alphaSliderProps:{},alphaFieldProps:{},fieldProps:{},swatchPickerProps:{},modelValue:{},defaultValue:{},format:{},defaultFormat:{},colorSpace:{},disabled:{type:Boolean},name:{},required:{type:Boolean},placement:{},showArrow:{type:Boolean,default:!0},triggerProps:{},portalProps:{},positionerProps:{},popupProps:{},arrowProps:{},closeProps:{},dir:{},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean},modal:{type:Boolean}},emits:[`update:modelValue`,`update:color`,`update:format`,`change`,`update:open`,`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(u,{emit:E}){let D=u,O=E,k=g(D,[`class`,`size`,`ui`]),A=h(O),j=c(()=>n({size:D.size},D.ui,{trigger:D.class})),M=c(()=>a({size:D.size},{popup:D.ui?.popup})),N=c(()=>e({size:D.size})),P=c(()=>t({size:D.size})),F=c(()=>r({size:D.size,shape:`square`})),I=c(()=>i({size:D.size,shape:`square`})),L=c(()=>o({size:D.size})),R=c(()=>s({size:D.size,orientation:`horizontal`,shape:`square`,fill:`auto`,enableIndicator:!0}));return b(j),w(M),_(N),v(P),C(I),x(L),S(F),T(R),(e,t)=>(f(),l(m(y),d(m(k),p(m(A))),null,16))}});export{E as default};
@@ -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;
30
31
  showAlpha: boolean;
31
32
  showFields: boolean;
32
33
  showSwatches: boolean;
33
- showArrow: boolean;
34
34
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
35
35
  declare const _default: typeof __VLS_export;
36
36
  //#endregion
@@ -1 +1 @@
1
- import{themeSizeMap as e}from"../../theme/config.js";import"../../theme/index.js";import t from"../dialog/dialog-provider.js";import n from"../progress/progress-provider.js";import r from"../toast/toast-provider.js";import{provideConfigProviderContext as i}from"./context.js";import a from"../icon/icon.js";import{createBlock as o,createCommentVNode as s,createVNode as c,defineComponent as l,guardReactiveProps as u,h as d,mergeProps as f,normalizeProps as p,openBlock as m,renderSlot as h,shallowRef as g,unref as _,watch as v,watchEffect as y,withCtx as b}from"vue";import{useOmitProps as x}from"@soybeanjs/headless/composables";import{useStyleTag as S}from"@vueuse/core";import{ConfigProvider as C}from"@soybeanjs/headless/config-provider";import{isClient as w,transformPropsToContext as T}from"@soybeanjs/headless/shared";import{createShadcnTheme as E}from"@soybeanjs/shadcn-theme";const D=l({name:`SConfigProvider`,__name:`config-provider`,props:{theme:{default:()=>({})},size:{default:`md`},iconify:{default:()=>({width:`1.25em`,height:`1.25em`})},progress:{},toast:{},customToast:{type:Boolean},dir:{},locale:{},nonce:{},tooltip:{},nuxt:{type:Boolean},iconRender:{},messages:{}},setup(l){let D=l,O=x(D,[`iconRender`,`theme`,`size`,`iconify`,`progress`,`toast`,`customToast`]),k=D.iconRender??(e=>d(a,{icon:e}));i({...T(D),iconRender:k});let A=g(``),j=()=>{let{getCss:e}=E(D.theme);A.value=e(D.theme,D.theme.radius)};return S(A,{id:`__SoybeanUI_theme`}),y(()=>{if(!w)return;let t=e[D.size??`md`];document.documentElement.style.fontSize=`${t}px`},{flush:`post`}),v(()=>D.theme,(e,t)=>{w&&Object.keys(e).length>0&&Object.keys(t).length>0&&j()},{deep:!0,flush:`post`}),(e,i)=>(m(),o(_(C),f(_(O),{"icon-render":_(k)}),{default:b(()=>[h(e.$slots,`default`),D.customToast?s(`v-if`,!0):(m(),o(r,p(f({key:0},D.toast)),null,16)),c(t),c(n,p(u(D.progress)),null,16)]),_:3},16,[`icon-render`]))}});export{D as default};
1
+ import{themeSizeMap as e}from"../../theme/config.js";import"../../theme/index.js";import t from"../dialog/dialog-provider.js";import n from"../progress/progress-provider.js";import r from"../toast/toast-provider.js";import{provideConfigProviderContext as i}from"./context.js";import a from"../icon/icon.js";import{createBlock as o,createCommentVNode as s,createVNode as c,defineComponent as l,guardReactiveProps as u,h as d,mergeProps as f,normalizeProps as p,openBlock as m,renderSlot as h,shallowRef as g,unref as _,watch as v,watchEffect as y,withCtx as b}from"vue";import{useOmitProps as x}from"@soybeanjs/headless/composables";import{isClient as S,isNuxt as C,transformPropsToContext as w}from"@soybeanjs/headless/shared";import{useStyleTag as T}from"@vueuse/core";import{ConfigProvider as E}from"@soybeanjs/headless/config-provider";import{createShadcnTheme as D}from"@soybeanjs/shadcn-theme";const O=l({name:`SConfigProvider`,__name:`config-provider`,props:{theme:{default:()=>({})},size:{default:`md`},iconify:{default:()=>({width:`1.25em`,height:`1.25em`})},progress:{},toast:{},customToast:{type:Boolean},dir:{},locale:{},nonce:{},tooltip:{},iconRender:{},messages:{}},setup(l){let O=l,k=x(O,[`iconRender`,`theme`,`size`,`iconify`,`progress`,`toast`,`customToast`]),A=O.iconRender??(e=>d(a,{icon:e,ssr:C}));i({...w(O),iconRender:A});let j=g(``),M=()=>{let{getCss:e}=D(O.theme);j.value=e(O.theme,O.theme.radius)};return T(j,{id:`__SoybeanUI_theme`}),y(()=>{if(!S)return;let t=e[O.size??`md`];document.documentElement.style.fontSize=`${t}px`},{flush:`post`}),v(()=>O.theme,(e,t)=>{S&&Object.keys(e).length>0&&Object.keys(t).length>0&&M()},{deep:!0,flush:`post`}),(e,i)=>(m(),o(_(E),f(_(k),{"icon-render":_(A)}),{default:b(()=>[h(e.$slots,`default`),O.customToast?s(`v-if`,!0):(m(),o(r,p(f({key:0},O.toast)),null,16)),c(t),c(n,p(u(O.progress)),null,16)]),_:3},16,[`icon-render`]))}});export{O as default};
@@ -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},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean},modal:{type:Boolean},headerProps:{},headingProps:{},prevProps:{},nextProps:{},gridProps:{},gridHeadProps:{},gridBodyProps:{},gridRowProps:{},headCellProps:{},cellProps:{},cellTriggerProps:{},dir:{},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};
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 +1 @@
1
- import e from"../calendar-range/calendar-range.js";import{dateRangePickerVariants as t}from"../../styles/date-range-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{DateRangePickerCompact as p,provideDateRangePickerUi as m}from"@soybeanjs/headless/date-range-picker";const h=a({name:`SDateRangePicker`,__name:`date-range-picker`,props:{class:{type:[Boolean,null,String,Object,Array]},size:{},ui:{},calendarRangeUi:{},dateFieldProps:{},placement:{},showArrow:{type:Boolean},triggerProps:{},portalProps:{},positionerProps:{},popupProps:{},arrowProps:{},closeProps:{},disabled:{type:Boolean},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean},modal:{type:Boolean},headerProps:{},headingProps:{},prevProps:{},nextProps:{},gridProps:{},gridHeadProps:{},gridBodyProps:{},gridRowProps:{},headCellProps:{},cellProps:{},cellTriggerProps:{},defaultValue:{},defaultPlaceholder:{},placeholder:{},modelValue:{},allowNonContiguousRanges:{type:Boolean},pagedNavigation:{type:Boolean},preventDeselect:{type:Boolean},maximumDays:{},weekStartsOn:{},weekdayFormat:{},calendarLabel:{},fixedWeeks:{type:Boolean},maxValue:{},minValue:{},locale:{},numberOfMonths:{},readonly:{type:Boolean},initialFocus:{type:Boolean},isDateDisabled:{},isDateUnavailable:{},isDateHighlightable:{},dir:{},nextPage:{},prevPage:{},disableDaysOutsideCurrentView:{type:Boolean},fixedDate:{},asChild:{type:Boolean},as:{}},emits:[`update:open`,`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`,`update:modelValue`,`update:placeholder`,`update:startValue`],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(({calendarRangeProps:t,close:n,onUpdateModelValue:r,onUpdatePlaceholder:s})=>[i(e,o(t,{size:a.size,ui:a.calendarRangeUi,"onUpdate:modelValue":e=>{r(e),e.start&&e.end&&n()},"onUpdate:placeholder":s}),null,16,[`size`,`ui`,`onUpdate:modelValue`,`onUpdate:placeholder`])]),_:1},16))}});export{h as default};
1
+ import e from"../calendar-range/calendar-range.js";import{dateRangePickerVariants as t}from"../../styles/date-range-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{DateRangePickerCompact as p,provideDateRangePickerUi as m}from"@soybeanjs/headless/date-range-picker";const h=a({name:`SDateRangePicker`,__name:`date-range-picker`,props:{class:{type:[Boolean,null,String,Object,Array]},size:{},ui:{},calendarRangeUi:{},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:{},defaultValue:{},defaultPlaceholder:{},placeholder:{},modelValue:{},allowNonContiguousRanges:{type:Boolean},pagedNavigation:{type:Boolean},preventDeselect:{type:Boolean},maximumDays:{},weekStartsOn:{},weekdayFormat:{},calendarLabel:{},fixedWeeks:{type:Boolean},maxValue:{},minValue:{},locale:{},numberOfMonths:{},readonly:{type:Boolean},initialFocus:{type:Boolean},isDateDisabled:{},isDateUnavailable:{},isDateHighlightable:{},nextPage:{},prevPage:{},disableDaysOutsideCurrentView:{type:Boolean},fixedDate:{},asChild:{type:Boolean},as:{}},emits:[`update:open`,`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`,`update:modelValue`,`update:placeholder`,`update:startValue`],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(({calendarRangeProps:t,close:n,onUpdateModelValue:r,onUpdatePlaceholder:s})=>[i(e,o(t,{size:a.size,ui:a.calendarRangeUi,"onUpdate:modelValue":e=>{r(e),e.start&&e.end&&n()},"onUpdate:placeholder":s}),null,16,[`size`,`ui`,`onUpdate:modelValue`,`onUpdate:placeholder`])]),_:1},16))}});export{h as default};
@@ -1 +1 @@
1
- import{hoverCardVariants as e}from"../../styles/hover-card.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{HoverCardCompact as f,provideHoverCardUi as p}from"@soybeanjs/headless/hover-card";const m=r({name:`SHoverCard`,__name:`hover-card`,props:{class:{type:[Boolean,null,String,Object,Array]},size:{},ui:{},placement:{},showArrow:{type:Boolean,default:!0},triggerProps:{},portalProps:{},positionerProps:{},popupProps:{},arrowProps:{},defaultOpen:{type:Boolean},open:{type:Boolean,default:void 0},openDelay:{},closeDelay:{}},emits:[`update:open`,`escapeKeyDown`,`pointerDownOutside`,`focusOutside`],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{hoverCardVariants as e}from"../../styles/hover-card.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{HoverCardCompact as f,provideHoverCardUi as p}from"@soybeanjs/headless/hover-card";const m=r({name:`SHoverCard`,__name:`hover-card`,props:{class:{type:[Boolean,null,String,Object,Array]},size:{},ui:{},placement:{},showArrow:{type:Boolean,default:!0},triggerProps:{},portalProps:{},positionerProps:{},popupProps:{},arrowProps:{},defaultOpen:{type:Boolean},open:{type:Boolean,default:void 0},openDelay:{},closeDelay:{},dir:{}},emits:[`update:open`,`escapeKeyDown`,`pointerDownOutside`,`focusOutside`],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{useConfigProvider as e}from"../config-provider/context.js";import"../config-provider/index.js";import{computed as t,createBlock as n,createCommentVNode as r,defineComponent as i,mergeProps as a,normalizeStyle as o,openBlock as s,resolveDynamicComponent as c,unref as l}from"vue";import{Icon as u}from"@iconify/vue";const d=i({name:`SIcon`,__name:`icon`,props:{icon:{},ssr:{type:Boolean},customise:{type:Function},id:{},style:{},title:{},mode:{},color:{},flip:{},horizontalFlip:{type:Boolean},verticalFlip:{type:Boolean},rotate:{},hFlip:{type:Boolean},vFlip:{type:Boolean},width:{},height:{},inline:{type:Boolean},ariaHidden:{type:Boolean}},setup(i){let d=i,f=e(),p=t(()=>{let{width:e,height:t}=d,n=f?.iconify?.value||{};return{width:e||n.width,height:t||n.height}}),m=t(()=>({...d,...p.value}));function h(e){return e?typeof e==`string`||typeof e==`object`&&`body`in e:!1}return(e,t)=>h(i.icon)?(s(),n(l(u),a({key:0},m.value,{icon:i.icon,style:{"flex-shrink":`0`}}),null,16,[`icon`])):i.icon?(s(),n(c(i.icon),{key:1,style:o([{"flex-shrink":`0`},{width:p.value.width,height:p.value.height}])},null,8,[`style`])):r(`v-if`,!0)}});export{d as default};
1
+ import{useConfigProvider as e}from"../config-provider/context.js";import"../config-provider/index.js";import{computed as t,createBlock as n,createCommentVNode as r,defineComponent as i,mergeProps as a,normalizeStyle as o,openBlock as s,resolveComponent as c,resolveDynamicComponent as l,unref as u}from"vue";import{isNuxt as d}from"@soybeanjs/headless/shared";import{Icon as f}from"@iconify/vue";const p=i({name:`SIcon`,__name:`icon`,props:{icon:{},ssr:{type:Boolean},customise:{type:Function},id:{},style:{},title:{},mode:{},color:{},flip:{},horizontalFlip:{type:Boolean},verticalFlip:{type:Boolean},rotate:{},hFlip:{type:Boolean},vFlip:{type:Boolean},width:{},height:{},inline:{type:Boolean},ariaHidden:{type:Boolean}},setup(i){let p=i,m=e(),h=t(()=>{let{width:e,height:t}=p,n=m?.iconify?.value||{};return{width:e||n.width,height:t||n.height}}),g=t(()=>({...p,...h.value})),_=d?c(`Icon`):null,v=t(()=>_&&typeof p.icon==`string`),y=t(()=>(p.mode??`svg`)===`svg`?`svg`:`css`);function b(e){return!e||v.value?!1:typeof e==`string`||typeof e==`object`&&`body`in e}return(e,t)=>b(i.icon)?(s(),n(u(f),a({key:0},g.value,{icon:i.icon,ssr:u(d),style:{"flex-shrink":`0`}}),null,16,[`icon`,`ssr`])):v.value?(s(),n(u(_),{key:1,name:i.icon,mode:y.value,width:h.value.width,height:h.value.height,customize:i.customise,style:{"flex-shrink":`0`}},null,8,[`name`,`mode`,`width`,`height`,`customize`])):i.icon?(s(),n(l(i.icon),{key:2,style:o([{"flex-shrink":`0`},{width:h.value.width,height:h.value.height}])},null,8,[`style`])):r(`v-if`,!0)}});export{p as default};
@@ -1 +1 @@
1
- import{popconfirmVariants as e}from"../../styles/popconfirm.js";import{computed as t,createBlock as n,createSlots as r,defineComponent as i,guardReactiveProps as a,mergeProps as o,normalizeProps as s,openBlock as c,renderList as l,renderSlot as u,toHandlers as d,unref as f,useSlots as p,withCtx as m}from"vue";import{useForwardListeners as h,useOmitProps as g}from"@soybeanjs/headless/composables";import{keysOf as _}from"@soybeanjs/utils";import{PopconfirmCompact as v,providePopconfirmUi as y}from"@soybeanjs/headless/popconfirm";const b=i({name:`SPopconfirm`,__name:`popconfirm`,props:{class:{type:[Boolean,null,String,Object,Array]},size:{},ui:{},type:{},placement:{},title:{},description:{},content:{},showArrow:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},confirmText:{},cancelText:{},showCancel:{type:[String,Boolean],default:`onlyWarning`},triggerProps:{},portalProps:{},positionerProps:{},popupProps:{},arrowProps:{},closeProps:{},headerProps:{},titleProps:{},descriptionProps:{},contentProps:{},footerProps:{},confirmProps:{},cancelProps:{},disabled:{type:Boolean},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean},modal:{type:Boolean}},emits:[`update:open`,`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`,`confirm`,`cancel`],setup(i,{emit:b}){let x=i,S=b,C=p(),w=g(x,[`class`,`size`,`ui`]),T=h(S),E=_(C);return y(t(()=>e({size:x.size,type:x.type},x.ui,{popup:x.class}))),(e,t)=>(c(),n(f(v),o(f(w),{"cancel-props":i.cancelProps,"confirm-props":i.confirmProps},d(f(T))),r({_:2},[l(f(E),t=>({name:t,fn:m(n=>[u(e.$slots,t,s(a(n)))])}))]),1040,[`cancel-props`,`confirm-props`]))}});export{b as default};
1
+ import{popconfirmVariants as e}from"../../styles/popconfirm.js";import{computed as t,createBlock as n,createSlots as r,defineComponent as i,guardReactiveProps as a,mergeProps as o,normalizeProps as s,openBlock as c,renderList as l,renderSlot as u,toHandlers as d,unref as f,useSlots as p,withCtx as m}from"vue";import{useForwardListeners as h,useOmitProps as g}from"@soybeanjs/headless/composables";import{keysOf as _}from"@soybeanjs/utils";import{PopconfirmCompact as v,providePopconfirmUi as y}from"@soybeanjs/headless/popconfirm";const b=i({name:`SPopconfirm`,__name:`popconfirm`,props:{class:{type:[Boolean,null,String,Object,Array]},size:{},ui:{},type:{},placement:{},title:{},description:{},content:{},showArrow:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},confirmText:{},cancelText:{},showCancel:{type:[String,Boolean],default:`onlyWarning`},triggerProps:{},portalProps:{},positionerProps:{},popupProps:{},arrowProps:{},closeProps:{},headerProps:{},titleProps:{},descriptionProps:{},contentProps:{},footerProps:{},confirmProps:{},cancelProps:{},disabled:{type:Boolean},dir:{},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean},modal:{type:Boolean}},emits:[`update:open`,`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`,`confirm`,`cancel`],setup(i,{emit:b}){let x=i,S=b,C=p(),w=g(x,[`class`,`size`,`ui`]),T=h(S),E=_(C);return y(t(()=>e({size:x.size,type:x.type},x.ui,{popup:x.class}))),(e,t)=>(c(),n(f(v),o(f(w),{"cancel-props":i.cancelProps,"confirm-props":i.confirmProps},d(f(T))),r({_:2},[l(f(E),t=>({name:t,fn:m(n=>[u(e.$slots,t,s(a(n)))])}))]),1040,[`cancel-props`,`confirm-props`]))}});export{b as default};
@@ -1 +1 @@
1
- import{popoverVariants as e}from"../../styles/popover.js";import{computed as t,createBlock as n,createCommentVNode as r,createSlots as i,defineComponent as a,guardReactiveProps as o,mergeProps as s,normalizeProps as c,openBlock as l,renderList as u,renderSlot as d,toHandlers as f,unref as p,useSlots as m,withCtx as h}from"vue";import{useForwardListeners as g,useOmitProps as _}from"@soybeanjs/headless/composables";import{keysOf as v}from"@soybeanjs/utils";import{PopoverCompact as y,providePopoverUi as b}from"@soybeanjs/headless/popover";const x=a({name:`SPopover`,__name:`popover`,props:{class:{type:[Boolean,null,String,Object,Array]},size:{},ui:{},placement:{},showArrow:{type:Boolean,default:!0},triggerProps:{},portalProps:{},positionerProps:{},popupProps:{},arrowProps:{},closeProps:{},disabled:{type:Boolean},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:!1},modal:{type:Boolean}},emits:[`update:open`,`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(a,{emit:x}){let S=a,C=x,w=m(),T=_(S,[`class`,`ui`,`size`]),E=g(C),D=t(()=>v(w));return b(t(()=>e({size:S.size},S.ui,{popup:S.class}))),(e,t)=>(l(),n(p(y),s(p(T),f(p(E))),i({_:2},[u(D.value,t=>({name:t,fn:h(n=>[r(` @vue-expect-error ignore slot type error `),d(e.$slots,t,c(o(n)))])}))]),1040))}});export{x as default};
1
+ import{popoverVariants as e}from"../../styles/popover.js";import{computed as t,createBlock as n,createCommentVNode as r,createSlots as i,defineComponent as a,guardReactiveProps as o,mergeProps as s,normalizeProps as c,openBlock as l,renderList as u,renderSlot as d,toHandlers as f,unref as p,useSlots as m,withCtx as h}from"vue";import{useForwardListeners as g,useOmitProps as _}from"@soybeanjs/headless/composables";import{keysOf as v}from"@soybeanjs/utils";import{PopoverCompact as y,providePopoverUi as b}from"@soybeanjs/headless/popover";const x=a({name:`SPopover`,__name:`popover`,props:{class:{type:[Boolean,null,String,Object,Array]},size:{},ui:{},placement:{},showArrow:{type:Boolean,default:!0},triggerProps:{},portalProps:{},positionerProps:{},popupProps:{},arrowProps:{},closeProps:{},disabled:{type:Boolean},dir:{},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:!1},modal:{type:Boolean}},emits:[`update:open`,`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`openAutoFocus`,`closeAutoFocus`],setup(a,{emit:x}){let S=a,C=x,w=m(),T=_(S,[`class`,`ui`,`size`]),E=g(C),D=t(()=>v(w));return b(t(()=>e({size:S.size},S.ui,{popup:S.class}))),(e,t)=>(l(),n(p(y),s(p(T),f(p(E))),i({_:2},[u(D.value,t=>({name:t,fn:h(n=>[r(` @vue-expect-error ignore slot type error `),d(e.$slots,t,c(o(n)))])}))]),1040))}});export{x as default};
@@ -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};
@@ -49,8 +49,8 @@ declare const buttonVariants: import("@soybeanjs/cva").CVResult<NoInfer<{
49
49
  }>, {
50
50
  size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined;
51
51
  color?: "info" | "success" | "warning" | "primary" | "destructive" | "carbon" | "secondary" | "accent" | undefined;
52
- variant?: "link" | "pure" | "solid" | "outline" | "soft" | "ghost" | "dashed" | "plain" | undefined;
53
52
  shape?: "auto" | "rounded" | "square" | "circle" | 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
  }>;
@@ -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" | "solid" | "outline" | "soft" | undefined;
67
67
  actionAsSelected?: boolean | undefined;
68
68
  }>;
69
69
  type PaginationVariants = VariantProps<typeof paginationVariants>;
@@ -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']>;
@@ -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";
@@ -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
  }>;
@@ -35,8 +35,8 @@ declare const tagVariants: import("@soybeanjs/cva").CVResult<NoInfer<{
35
35
  }>, {
36
36
  size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined;
37
37
  color?: "info" | "success" | "warning" | "primary" | "destructive" | "carbon" | "secondary" | "accent" | undefined;
38
- variant?: "pure" | "solid" | "outline" | "soft" | "ghost" | "raw" | undefined;
39
38
  shape?: "auto" | "rounded" | 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']>;
@@ -34,8 +34,8 @@ declare const toggleVariants: import("@soybeanjs/cva").CVResult<NoInfer<{
34
34
  }>, {
35
35
  size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined;
36
36
  color?: "info" | "success" | "warning" | "primary" | "destructive" | "carbon" | "secondary" | "accent" | undefined;
37
- variant?: "outline" | "soft" | "ghost" | 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']>;
@@ -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};
package/dist/styles.css CHANGED
@@ -1,4 +1,391 @@
1
- .animate-in,.data-\[motion\^\=from-\]\:animate-in[data-motion^=from-],.data-\[state\=open\]\:animate-in[data-state=open],.data-\[state\=visible\]\:animate-in[data-state=visible]{animation:una-in;animation-name:una-in;animation-duration:150ms;--una-enter-opacity:initial;--una-enter-scale:initial;--una-enter-rotate:initial;--una-enter-translate-x:initial;--una-enter-translate-y:initial;}.data-\[motion\^\=to-\]\:animate-out[data-motion^=to-],.data-\[state\=closed\]\:animate-out[data-state=closed],.data-\[state\=hidden\]\:animate-out[data-state=hidden]{animation:una-out;animation-name:una-out;animation-duration:150ms;--una-exit-opacity:initial;--una-exit-scale:initial;--una-exit-rotate:initial;--una-exit-translate-x:initial;--una-exit-translate-y:initial;}*,::before,::after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / 0.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: ;}::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / 0.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: ;}
1
+ .animate-in,.data-\[motion\^\=from-\]\:animate-in[data-motion^=from-],.data-\[state\=open\]\:animate-in[data-state=open],.data-\[state\=visible\]\:animate-in[data-state=visible]{animation:una-in;animation-name:una-in;animation-duration:150ms;--una-enter-opacity:initial;--una-enter-scale:initial;--una-enter-rotate:initial;--una-enter-translate-x:initial;--una-enter-translate-y:initial;}.data-\[motion\^\=to-\]\:animate-out[data-motion^=to-],.data-\[state\=closed\]\:animate-out[data-state=closed],.data-\[state\=hidden\]\:animate-out[data-state=hidden]{animation:una-out;animation-name:una-out;animation-duration:150ms;--una-exit-opacity:initial;--una-exit-scale:initial;--una-exit-rotate:initial;--una-exit-translate-x:initial;--una-exit-translate-y:initial;}*,::before,::after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / 0.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: ;}::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgb(0 0 0 / 0);--un-ring-shadow:0 0 rgb(0 0 0 / 0);--un-shadow-inset: ;--un-shadow:0 0 rgb(0 0 0 / 0);--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgb(147 197 253 / 0.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: ;}/*
2
+ 1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
3
+ 2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
4
+ 2. [UnoCSS]: allow to override the default border color with css var `--un-default-border-color`
5
+ */
6
+
7
+ *,
8
+ ::before,
9
+ ::after {
10
+ box-sizing: border-box; /* 1 */
11
+ border-width: 0; /* 2 */
12
+ border-style: solid; /* 2 */
13
+ border-color: var(--un-default-border-color, #e5e7eb); /* 2 */
14
+ }
15
+
16
+ ::before,
17
+ ::after {
18
+ --un-content: '';
19
+ }
20
+
21
+ /*
22
+ 1. Use a consistent sensible line-height in all browsers.
23
+ 2. Prevent adjustments of font size after orientation changes in iOS.
24
+ 3. Use a more readable tab size.
25
+ 4. Use the user's configured `sans` font-family by default.
26
+ 5. Use the user's configured `sans` font-feature-settings by default.
27
+ 6. Use the user's configured `sans` font-variation-settings by default.
28
+ 7. Disable tap highlights on iOS.
29
+ */
30
+
31
+ html,
32
+ :host {
33
+ line-height: 1.5; /* 1 */
34
+ -webkit-text-size-adjust: 100%; /* 2 */
35
+ -moz-tab-size: 4; /* 3 */
36
+ tab-size: 4; /* 3 */
37
+ font-family:
38
+ ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'; /* 4 */
39
+ font-feature-settings: normal; /* 5 */
40
+ font-variation-settings: normal; /* 6 */
41
+ -webkit-tap-highlight-color: transparent; /* 7 */
42
+ }
43
+
44
+ /*
45
+ 1. Remove the margin in all browsers.
46
+ 2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
47
+ */
48
+
49
+ body {
50
+ margin: 0; /* 1 */
51
+ line-height: inherit; /* 2 */
52
+ }
53
+
54
+ /*
55
+ 1. Add the correct height in Firefox.
56
+ 2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
57
+ 3. Ensure horizontal rules are visible by default.
58
+ */
59
+
60
+ hr {
61
+ height: 0; /* 1 */
62
+ color: inherit; /* 2 */
63
+ border-top-width: 1px; /* 3 */
64
+ }
65
+
66
+ /*
67
+ Add the correct text decoration in Chrome, Edge, and Safari.
68
+ */
69
+
70
+ abbr:where([title]) {
71
+ text-decoration: underline dotted;
72
+ }
73
+
74
+ /*
75
+ Remove the default font size and weight for headings.
76
+ */
77
+
78
+ h1,
79
+ h2,
80
+ h3,
81
+ h4,
82
+ h5,
83
+ h6 {
84
+ font-size: inherit;
85
+ font-weight: inherit;
86
+ }
87
+
88
+ /*
89
+ Reset links to optimize for opt-in styling instead of opt-out.
90
+ */
91
+
92
+ a {
93
+ color: inherit;
94
+ text-decoration: inherit;
95
+ }
96
+
97
+ /*
98
+ Add the correct font weight in Edge and Safari.
99
+ */
100
+
101
+ b,
102
+ strong {
103
+ font-weight: bolder;
104
+ }
105
+
106
+ /*
107
+ 1. Use the user's configured `mono` font-family by default.
108
+ 2. Use the user's configured `mono` font-feature-settings by default.
109
+ 3. Use the user's configured `mono` font-variation-settings by default.
110
+ 4. Correct the odd `em` font sizing in all browsers.
111
+ */
112
+
113
+ code,
114
+ kbd,
115
+ samp,
116
+ pre {
117
+ font-family:
118
+ ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace; /* 1 */
119
+ font-feature-settings: normal; /* 2 */
120
+ font-variation-settings: normal; /* 3 */
121
+ font-size: 1em; /* 4 */
122
+ }
123
+
124
+ /*
125
+ Add the correct font size in all browsers.
126
+ */
127
+
128
+ small {
129
+ font-size: 80%;
130
+ }
131
+
132
+ /*
133
+ Prevent `sub` and `sup` elements from affecting the line height in all browsers.
134
+ */
135
+
136
+ sub,
137
+ sup {
138
+ font-size: 75%;
139
+ line-height: 0;
140
+ position: relative;
141
+ vertical-align: baseline;
142
+ }
143
+
144
+ sub {
145
+ bottom: -0.25em;
146
+ }
147
+
148
+ sup {
149
+ top: -0.5em;
150
+ }
151
+
152
+ /*
153
+ 1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
154
+ 2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
155
+ 3. Remove gaps between table borders by default.
156
+ */
157
+
158
+ table {
159
+ text-indent: 0; /* 1 */
160
+ border-color: inherit; /* 2 */
161
+ border-collapse: collapse; /* 3 */
162
+ }
163
+
164
+ /*
165
+ 1. Change the font styles in all browsers.
166
+ 2. Remove the margin in Firefox and Safari.
167
+ 3. Remove default padding in all browsers.
168
+ */
169
+
170
+ button,
171
+ input,
172
+ optgroup,
173
+ select,
174
+ textarea {
175
+ font-family: inherit; /* 1 */
176
+ font-feature-settings: inherit; /* 1 */
177
+ font-variation-settings: inherit; /* 1 */
178
+ font-size: 100%; /* 1 */
179
+ font-weight: inherit; /* 1 */
180
+ line-height: inherit; /* 1 */
181
+ color: inherit; /* 1 */
182
+ margin: 0; /* 2 */
183
+ padding: 0; /* 3 */
184
+ }
185
+
186
+ /*
187
+ Remove the inheritance of text transform in Edge and Firefox.
188
+ */
189
+
190
+ button,
191
+ select {
192
+ text-transform: none;
193
+ }
194
+
195
+ /*
196
+ 1. Correct the inability to style clickable types in iOS and Safari.
197
+ 2. Remove default button styles.
198
+ */
199
+
200
+ button,
201
+ [type='button'],
202
+ [type='reset'],
203
+ [type='submit'] {
204
+ -webkit-appearance: button; /* 1 */
205
+ background-image: none; /* 2 */
206
+ }
207
+
208
+ /*
209
+ Use the modern Firefox focus style for all focusable elements.
210
+ */
211
+
212
+ :-moz-focusring {
213
+ outline: auto;
214
+ }
215
+
216
+ /*
217
+ Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
218
+ */
219
+
220
+ :-moz-ui-invalid {
221
+ box-shadow: none;
222
+ }
223
+
224
+ /*
225
+ Add the correct vertical alignment in Chrome and Firefox.
226
+ */
227
+
228
+ progress {
229
+ vertical-align: baseline;
230
+ }
231
+
232
+ /*
233
+ Correct the cursor style of increment and decrement buttons in Safari.
234
+ */
235
+
236
+ ::-webkit-inner-spin-button,
237
+ ::-webkit-outer-spin-button {
238
+ height: auto;
239
+ }
240
+
241
+ /*
242
+ 1. Correct the odd appearance in Chrome and Safari.
243
+ 2. Correct the outline style in Safari.
244
+ */
245
+
246
+ [type='search'] {
247
+ -webkit-appearance: textfield; /* 1 */
248
+ outline-offset: -2px; /* 2 */
249
+ }
250
+
251
+ /*
252
+ Remove the inner padding in Chrome and Safari on macOS.
253
+ */
254
+
255
+ ::-webkit-search-decoration {
256
+ -webkit-appearance: none;
257
+ }
258
+
259
+ /*
260
+ 1. Correct the inability to style clickable types in iOS and Safari.
261
+ 2. Change font properties to `inherit` in Safari.
262
+ */
263
+
264
+ ::-webkit-file-upload-button {
265
+ -webkit-appearance: button; /* 1 */
266
+ font: inherit; /* 2 */
267
+ }
268
+
269
+ /*
270
+ Add the correct display in Chrome and Safari.
271
+ */
272
+
273
+ summary {
274
+ display: list-item;
275
+ }
276
+
277
+ /*
278
+ Removes the default spacing for appropriate elements.
279
+ */
280
+
281
+ blockquote,
282
+ dl,
283
+ dd,
284
+ h1,
285
+ h2,
286
+ h3,
287
+ h4,
288
+ h5,
289
+ h6,
290
+ hr,
291
+ figure,
292
+ p,
293
+ pre {
294
+ margin: 0;
295
+ }
296
+
297
+ fieldset {
298
+ margin: 0;
299
+ padding: 0;
300
+ }
301
+
302
+ legend {
303
+ padding: 0;
304
+ }
305
+
306
+ ol,
307
+ ul,
308
+ menu {
309
+ list-style: none;
310
+ margin: 0;
311
+ padding: 0;
312
+ }
313
+
314
+ dialog {
315
+ padding: 0;
316
+ }
317
+
318
+ /*
319
+ Prevent resizing textareas horizontally by default.
320
+ */
321
+
322
+ textarea {
323
+ resize: vertical;
324
+ }
325
+
326
+ /*
327
+ 1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
328
+ 2. Set the default placeholder color to the user's configured gray 400 color.
329
+ */
330
+
331
+ input::placeholder,
332
+ textarea::placeholder {
333
+ opacity: 1; /* 1 */
334
+ color: #9ca3af; /* 2 */
335
+ }
336
+
337
+ /*
338
+ Set the default cursor for buttons.
339
+ */
340
+
341
+ button,
342
+ [role='button'] {
343
+ cursor: pointer;
344
+ }
345
+
346
+ /*
347
+ Make sure disabled buttons don't get the pointer cursor.
348
+ */
349
+
350
+ :disabled {
351
+ cursor: default;
352
+ }
353
+
354
+ /*
355
+ 1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
356
+ 2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
357
+ This can trigger a poorly considered lint error in some tools but is included by design.
358
+ */
359
+
360
+ img,
361
+ svg,
362
+ video,
363
+ canvas,
364
+ audio,
365
+ iframe,
366
+ embed,
367
+ object {
368
+ display: block; /* 1 */
369
+ vertical-align: middle; /* 2 */
370
+ }
371
+
372
+ /*
373
+ Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
374
+ */
375
+
376
+ img,
377
+ video {
378
+ max-width: 100%;
379
+ height: auto;
380
+ }
381
+
382
+ /*
383
+ Make elements with the HTML hidden attribute stay hidden by default.
384
+ */
385
+
386
+ [hidden]:where(:not([hidden='until-found'])) {
387
+ display: none;
388
+ }
2
389
  * {
3
390
  border-color: hsl(var(--border) / var(--border-alpha, 1));
4
391
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soybeanjs/ui",
3
- "version": "0.25.4",
3
+ "version": "0.26.0",
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": {
@@ -52,14 +52,14 @@
52
52
  "fuse.js": "^7.3.0",
53
53
  "valibot": "^1.4.1",
54
54
  "zod": "^4.4.3",
55
- "@soybeanjs/headless": "^0.25.4"
55
+ "@soybeanjs/headless": "^0.26.0"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@soybeanjs/cli": "^1.7.2",
59
59
  "@soybeanjs/eslint-config-vue": "^0.1.0",
60
60
  "@soybeanjs/oxc-config": "^0.2.0",
61
61
  "@soybeanjs/unocss-preset": "^0.2.0",
62
- "@soybeanjs/unocss-shadcn": "^0.6.2",
62
+ "@soybeanjs/unocss-shadcn": "^0.7.0",
63
63
  "@types/node": "^25.9.1",
64
64
  "@unocss/cli": "^66.7.0",
65
65
  "@vitejs/plugin-vue": "^6.0.7",