@soybeanjs/ui 0.29.0-beta.9 → 0.29.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.
- package/dist/components/backtop/backtop.vue.d.ts +1 -1
- package/dist/components/button/button-icon.vue.d.ts +1 -1
- package/dist/components/button/button-link.vue.d.ts +1 -1
- package/dist/components/config-provider/config-provider.js +1 -1
- package/dist/components/config-provider/config-provider.vue.d.ts +2 -2
- package/dist/components/date-picker/date-picker.js +1 -1
- package/dist/components/link/link.vue.d.ts +1 -1
- package/dist/components/splitter/splitter-panel.vue.d.ts +2 -2
- package/dist/resolver/index.js +1 -1
- package/dist/styles/button.d.ts +1 -1
- package/dist/styles/pagination.d.ts +2 -2
- package/dist/styles/skeleton.d.ts +1 -1
- package/dist/styles/table.d.ts +2 -2
- package/dist/styles/tag.d.ts +1 -1
- package/dist/styles/toggle.d.ts +1 -1
- package/dist/styles.css +1 -1
- package/package.json +6 -5
|
@@ -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
|
-
shape: ButtonShape;
|
|
20
19
|
variant: ButtonVariant;
|
|
20
|
+
shape: ButtonShape;
|
|
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
|
-
shape: ButtonShape;
|
|
8
7
|
variant: ButtonVariant;
|
|
8
|
+
shape: ButtonShape;
|
|
9
9
|
fitContent: boolean;
|
|
10
10
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
11
|
declare const _default: typeof __VLS_export;
|
|
@@ -11,9 +11,9 @@ 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
|
-
replace: boolean;
|
|
15
14
|
variant: ButtonVariant;
|
|
16
15
|
disabled: boolean;
|
|
16
|
+
replace: boolean;
|
|
17
17
|
external: boolean;
|
|
18
18
|
viewTransition: boolean;
|
|
19
19
|
noRel: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{provideConfigProviderContext as e}from"./context.js";import t from"../icon/icon.js";import n from"../dialog/dialog-provider.js";import r from"../progress/progress-provider.js";import i from"../toast/toast-provider.js";import{
|
|
1
|
+
import{provideConfigProviderContext as e}from"./context.js";import t from"../icon/icon.js";import n from"../dialog/dialog-provider.js";import r from"../progress/progress-provider.js";import i from"../toast/toast-provider.js";import{Teleport as a,computed as o,createBlock as s,createCommentVNode as c,createTextVNode as l,createVNode as u,defineComponent as d,guardReactiveProps as f,h as p,mergeProps as m,normalizeProps as h,openBlock as g,renderSlot as _,toDisplayString as v,unref as y,withCtx as b}from"vue";import{useOmitProps as x}from"@soybeanjs/headless/composables";import{Primitive as S}from"@soybeanjs/headless/primitive";import{transformPropsToContext as C}from"@soybeanjs/headless/shared";import{ConfigProvider as w}from"@soybeanjs/headless/config-provider";import{createShadcnTheme as T}from"@soybeanjs/shadcn-theme";const E=d({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(d){let E=d,D=x(E,[`iconRender`,`theme`,`size`,`iconify`,`progress`,`toast`,`customToast`]),O=E.iconRender??(e=>p(t,{icon:e,ssr:import.meta.env.SSR})),k=o(()=>{let{getCss:e}=T({...E.theme,size:E.theme.size||E.size||`md`});return e()});return e({...C(E),iconRender:O}),(e,t)=>(g(),s(y(w),m(y(D),{"icon-render":y(O)}),{default:b(()=>[(g(),s(a,{to:`head`},[u(y(S),{as:`style`},{default:b(()=>[l(v(k.value),1)]),_:1})])),_(e.$slots,`default`),E.customToast?c(`v-if`,!0):(g(),s(i,h(m({key:0},E.toast)),null,16)),u(n),u(r,h(f(E.progress)),null,16)]),_:3},16,[`icon-render`]))}});export{E as default};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ThemeSize } from "../../theme/types.js";
|
|
2
2
|
import { ConfigProviderProps, IconifyOptions } from "./types.js";
|
|
3
3
|
//#region src/components/config-provider/config-provider.vue.d.ts
|
|
4
|
-
declare var
|
|
4
|
+
declare var __VLS_20: {};
|
|
5
5
|
type __VLS_Slots = {} & {
|
|
6
|
-
default?: (props: typeof
|
|
6
|
+
default?: (props: typeof __VLS_20) => any;
|
|
7
7
|
};
|
|
8
8
|
declare const __VLS_base: import("vue").DefineComponent<ConfigProviderProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ConfigProviderProps> & Readonly<{}>, {
|
|
9
9
|
size: ThemeSize;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"../calendar/calendar.js";import{datePickerVariants as t}from"../../styles/date-picker.js";import{computed as n,createBlock as r,createVNode as i,defineComponent as a,mergeProps as o,openBlock as s,toHandlers as c,unref as l,withCtx as u}from"vue";import{useForwardListeners as d,useOmitProps as f}from"@soybeanjs/headless/composables";import{DatePickerCompact as p,provideDatePickerUi as m}from"@soybeanjs/headless/date-picker";const h=a({name:`SDatePicker`,__name:`date-picker`,props:{class:{type:[Boolean,null,String,Object,Array]},size:{},ui:{},calendarUi:{},dateFieldProps:{},placement:{},showArrow:{type:Boolean},triggerProps:{},portalProps:{},positionerProps:{},popupProps:{},arrowProps:{},closeProps:{},disabled:{type:Boolean},dir:{},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean},modal:{type:Boolean},headerProps:{},headingProps:{},prevProps:{},nextProps:{},gridProps:{},gridHeadProps:{},gridBodyProps:{},gridRowProps:{},headCellProps:{},cellProps:{},cellTriggerProps:{},locale:{},modelValue:{},defaultValue:{},multiple:{
|
|
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};
|
|
@@ -10,8 +10,8 @@ type __VLS_Slots = {} & {
|
|
|
10
10
|
default?: (props: typeof __VLS_8) => any;
|
|
11
11
|
};
|
|
12
12
|
declare const __VLS_base: import("vue").DefineComponent<LinkProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LinkProps> & Readonly<{}>, {
|
|
13
|
-
replace: boolean;
|
|
14
13
|
disabled: boolean;
|
|
14
|
+
replace: boolean;
|
|
15
15
|
external: boolean;
|
|
16
16
|
viewTransition: boolean;
|
|
17
17
|
noRel: boolean;
|
|
@@ -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;
|
package/dist/resolver/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{components as e}from"../constants/components.js";function t(){return{type:`component`,resolve:t=>{let n=
|
|
1
|
+
import{components as e}from"../constants/components.js";function t(){return{type:`component`,resolve:t=>{let n=t.replace(/(^\w|-\w)/g,e=>e.replace(`-`,``).toUpperCase());return Object.values(e).flat().includes(n)?{name:n,from:`@soybeanjs/ui`}:null}}}export{t as default};
|
package/dist/styles/button.d.ts
CHANGED
|
@@ -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
|
-
shape?: "auto" | "rounded" | "square" | "circle" | undefined;
|
|
53
52
|
variant?: "link" | "pure" | "outline" | "soft" | "ghost" | "solid" | "dashed" | "plain" | undefined;
|
|
53
|
+
shape?: "auto" | "rounded" | "square" | "circle" | undefined;
|
|
54
54
|
shadow?: "sm" | "md" | "lg" | "none" | undefined;
|
|
55
55
|
fitContent?: boolean | undefined;
|
|
56
56
|
}>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VariantProps } from "@soybeanjs/cva";
|
|
2
2
|
|
|
3
3
|
//#region src/styles/pagination.d.ts
|
|
4
|
-
declare const paginationVariants: import("@soybeanjs/cva").SCVResult<"list" | "next" | "
|
|
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";
|
|
@@ -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
|
-
shape?: "rounded" | "square" | undefined;
|
|
66
65
|
variant?: "pure" | "outline" | "soft" | "solid" | undefined;
|
|
66
|
+
shape?: "rounded" | "square" | 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
|
-
animated?: boolean | undefined;
|
|
24
23
|
shape?: "auto" | "rounded" | undefined;
|
|
24
|
+
animated?: boolean | undefined;
|
|
25
25
|
}>;
|
|
26
26
|
type SkeletonVariants = VariantProps<typeof skeletonVariants>;
|
|
27
27
|
type SkeletonShape = NonNullable<SkeletonVariants['shape']>;
|
package/dist/styles/table.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VariantProps } from "@soybeanjs/cva";
|
|
2
2
|
|
|
3
3
|
//#region src/styles/table.d.ts
|
|
4
|
-
declare const tableVariants: import("@soybeanjs/cva").SCVResult<"header" | "content" | "footer" | "fixed" | "
|
|
4
|
+
declare const tableVariants: import("@soybeanjs/cva").SCVResult<"header" | "content" | "footer" | "fixed" | "root" | "resizeHandle" | "body" | "head" | "scroll" | "cell" | "row" | "selection" | "sortTrigger" | "filterInput" | "treeCell" | "treeToggle" | "treeTogglePlaceholder" | "filterTrigger" | "filterPopup" | "filterSearch" | "filterOptions" | "filterOption" | "filterOptionLabel" | "filterFooter" | "filterCount" | "filterAction" | "filterEmpty" | "radioIndicator" | "radioRoot", NoInfer<{
|
|
5
5
|
size: {
|
|
6
6
|
xs: {
|
|
7
7
|
root: "text-2xs";
|
|
@@ -113,8 +113,8 @@ declare const tableVariants: import("@soybeanjs/cva").SCVResult<"header" | "cont
|
|
|
113
113
|
};
|
|
114
114
|
}>, {
|
|
115
115
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined;
|
|
116
|
-
rounded?: boolean | undefined;
|
|
117
116
|
variant?: "default" | "simple" | undefined;
|
|
117
|
+
rounded?: boolean | undefined;
|
|
118
118
|
bordered?: boolean | undefined;
|
|
119
119
|
striped?: boolean | undefined;
|
|
120
120
|
}>;
|
package/dist/styles/tag.d.ts
CHANGED
|
@@ -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
|
-
shape?: "auto" | "rounded" | undefined;
|
|
39
38
|
variant?: "pure" | "outline" | "soft" | "ghost" | "solid" | "raw" | undefined;
|
|
39
|
+
shape?: "auto" | "rounded" | undefined;
|
|
40
40
|
}>;
|
|
41
41
|
type TagVariants = VariantProps<typeof tagVariants>;
|
|
42
42
|
type TagVariant = NonNullable<TagVariants['variant']>;
|
package/dist/styles/toggle.d.ts
CHANGED
|
@@ -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
|
-
shape?: "auto" | "rounded" | "square" | "circle" | undefined;
|
|
38
37
|
variant?: "outline" | "soft" | "ghost" | undefined;
|
|
38
|
+
shape?: "auto" | "rounded" | "square" | "circle" | undefined;
|
|
39
39
|
}>;
|
|
40
40
|
type ToggleVariants = VariantProps<typeof toggleVariants>;
|
|
41
41
|
type ToggleVariant = NonNullable<ToggleVariants['variant']>;
|