@deepnoid/ui 0.0.87 → 0.0.89
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/{chunk-4DLTBZUQ.mjs → chunk-3DRIHQOM.mjs} +7 -5
- package/dist/{chunk-4SWFYTMR.mjs → chunk-6YE26GOI.mjs} +10 -8
- package/dist/{chunk-QX6VJLEM.mjs → chunk-7HHFRKJU.mjs} +2 -2
- package/dist/{chunk-H2HUJ4N2.mjs → chunk-A3RWT3JJ.mjs} +9 -4
- package/dist/{chunk-BE2OG6M4.mjs → chunk-ANYPMQH4.mjs} +28 -21
- package/dist/{chunk-5HSZ5AYM.mjs → chunk-B4KZBOGT.mjs} +16 -16
- package/dist/{chunk-QIZOXBOY.mjs → chunk-DWROPKZW.mjs} +4 -4
- package/dist/{chunk-PHQY5T3E.mjs → chunk-HFVZFUC3.mjs} +7 -14
- package/dist/{chunk-IOV7MEPG.mjs → chunk-IOCRFIQF.mjs} +30 -0
- package/dist/{chunk-4VIEZ5FT.mjs → chunk-JN7EGKJL.mjs} +8 -7
- package/dist/{chunk-SFNR4F3J.mjs → chunk-L6BQA6GI.mjs} +2 -2
- package/dist/{chunk-PRUAIZTU.mjs → chunk-LCI6RPWE.mjs} +1 -1
- package/dist/{chunk-IZOMH2SL.mjs → chunk-MOINJECK.mjs} +16 -15
- package/dist/{chunk-QVGXHUYW.mjs → chunk-N2JULHST.mjs} +9 -9
- package/dist/chunk-OJ2OEI5B.mjs +202 -0
- package/dist/{chunk-2COCX2VX.mjs → chunk-PXUBPWKU.mjs} +2 -2
- package/dist/{chunk-PCIONGEJ.mjs → chunk-QWFOYO3D.mjs} +37 -19
- package/dist/{chunk-LY6LJRUX.mjs → chunk-RZZWHI6O.mjs} +1 -1
- package/dist/chunk-UR64ZUAU.mjs +671 -0
- package/dist/{chunk-PUFNT5LS.mjs → chunk-VG4644BG.mjs} +1 -1
- package/dist/components/accordion/accordion.d.mts +1 -1
- package/dist/components/accordion/accordion.d.ts +1 -1
- package/dist/components/accordion/accordion.test.mjs +3 -3
- package/dist/components/accordion/accordionItem.d.mts +1 -1
- package/dist/components/accordion/accordionItem.d.ts +1 -1
- package/dist/components/accordion/accordionItem.js +31 -1
- package/dist/components/accordion/accordionItem.mjs +3 -3
- package/dist/components/accordion/index.js +31 -1
- package/dist/components/accordion/index.mjs +3 -3
- package/dist/components/button/button-group.test.js +4103 -167
- package/dist/components/button/button-group.test.mjs +7 -3
- package/dist/components/button/button.d.mts +360 -12
- package/dist/components/button/button.d.ts +360 -12
- package/dist/components/button/button.js +4054 -110
- package/dist/components/button/button.mjs +5 -1
- package/dist/components/button/button.test.js +4059 -125
- package/dist/components/button/button.test.mjs +7 -3
- package/dist/components/button/index.d.mts +3 -0
- package/dist/components/button/index.d.ts +3 -0
- package/dist/components/button/index.js +4046 -112
- package/dist/components/button/index.mjs +5 -1
- package/dist/components/card/card.d.mts +1 -1
- package/dist/components/card/card.d.ts +1 -1
- package/dist/components/checkbox/checkbox.d.mts +69 -69
- package/dist/components/checkbox/checkbox.d.ts +69 -69
- package/dist/components/checkbox/checkbox.js +28 -21
- package/dist/components/checkbox/checkbox.mjs +1 -1
- package/dist/components/checkbox/checkbox.test.js +28 -21
- package/dist/components/checkbox/checkbox.test.mjs +3 -3
- package/dist/components/checkbox/index.js +28 -21
- package/dist/components/checkbox/index.mjs +1 -1
- package/dist/components/icon/Icon.d.mts +4 -0
- package/dist/components/icon/Icon.d.ts +4 -0
- package/dist/components/icon/Icon.js +30 -0
- package/dist/components/icon/Icon.mjs +2 -2
- package/dist/components/icon/index.js +30 -0
- package/dist/components/icon/index.mjs +2 -2
- package/dist/components/icon/template.d.mts +1 -0
- package/dist/components/icon/template.d.ts +1 -0
- package/dist/components/icon/template.js +30 -0
- package/dist/components/icon/template.mjs +1 -1
- package/dist/components/input/index.js +36 -4
- package/dist/components/input/index.mjs +3 -3
- package/dist/components/input/input.d.mts +7 -2
- package/dist/components/input/input.d.ts +7 -2
- package/dist/components/input/input.js +36 -4
- package/dist/components/input/input.mjs +3 -3
- package/dist/components/input/input.test.js +36 -4
- package/dist/components/input/input.test.mjs +4 -4
- package/dist/components/list/list.d.mts +1 -1
- package/dist/components/list/list.d.ts +1 -1
- package/dist/components/list/listItem.d.mts +1 -1
- package/dist/components/list/listItem.d.ts +1 -1
- package/dist/components/modal/index.js +505 -127
- package/dist/components/modal/index.mjs +5 -4
- package/dist/components/modal/modal.js +505 -127
- package/dist/components/modal/modal.mjs +5 -4
- package/dist/components/modal/modal.test.js +497 -129
- package/dist/components/modal/modal.test.mjs +5 -4
- package/dist/components/pagination/index.js +16 -16
- package/dist/components/pagination/index.mjs +1 -1
- package/dist/components/pagination/pagination.js +16 -16
- package/dist/components/pagination/pagination.mjs +1 -1
- package/dist/components/pagination/pagination.test.js +16 -16
- package/dist/components/pagination/pagination.test.mjs +1 -1
- package/dist/components/progress/index.js +9 -9
- package/dist/components/progress/index.mjs +1 -1
- package/dist/components/progress/progress.d.mts +33 -33
- package/dist/components/progress/progress.d.ts +33 -33
- package/dist/components/progress/progress.js +9 -9
- package/dist/components/progress/progress.mjs +1 -1
- package/dist/components/progress/progress.test.js +9 -9
- package/dist/components/progress/progress.test.mjs +1 -1
- package/dist/components/radio/index.js +37 -19
- package/dist/components/radio/index.mjs +1 -1
- package/dist/components/radio/radio.d.mts +33 -33
- package/dist/components/radio/radio.d.ts +33 -33
- package/dist/components/radio/radio.js +37 -19
- package/dist/components/radio/radio.mjs +1 -1
- package/dist/components/radio/radio.test.js +37 -19
- package/dist/components/radio/radio.test.mjs +1 -1
- package/dist/components/select/index.js +36 -5
- package/dist/components/select/index.mjs +4 -4
- package/dist/components/select/option.js +30 -0
- package/dist/components/select/option.mjs +3 -3
- package/dist/components/select/select.d.mts +2 -2
- package/dist/components/select/select.d.ts +2 -2
- package/dist/components/select/select.js +36 -5
- package/dist/components/select/select.mjs +4 -4
- package/dist/components/select/select.test.js +36 -5
- package/dist/components/select/select.test.mjs +7 -7
- package/dist/components/slider/index.js +9 -4
- package/dist/components/slider/index.mjs +1 -1
- package/dist/components/slider/slider.d.mts +26 -0
- package/dist/components/slider/slider.d.ts +26 -0
- package/dist/components/slider/slider.js +9 -4
- package/dist/components/slider/slider.mjs +1 -1
- package/dist/components/slider/slider.test.js +9 -4
- package/dist/components/slider/slider.test.mjs +1 -1
- package/dist/components/switch/index.js +16 -15
- package/dist/components/switch/index.mjs +1 -1
- package/dist/components/switch/switch.d.mts +48 -48
- package/dist/components/switch/switch.d.ts +48 -48
- package/dist/components/switch/switch.js +16 -15
- package/dist/components/switch/switch.mjs +1 -1
- package/dist/components/switch/switch.test.js +16 -15
- package/dist/components/switch/switch.test.mjs +1 -1
- package/dist/components/table/index.js +66 -27
- package/dist/components/table/index.mjs +6 -6
- package/dist/components/table/table-body.js +60 -23
- package/dist/components/table/table-body.mjs +4 -4
- package/dist/components/table/table-head.js +28 -21
- package/dist/components/table/table-head.mjs +2 -2
- package/dist/components/table/table.d.mts +21 -7
- package/dist/components/table/table.d.ts +21 -7
- package/dist/components/table/table.js +66 -27
- package/dist/components/table/table.mjs +6 -6
- package/dist/components/table/table.test.js +66 -27
- package/dist/components/table/table.test.mjs +6 -6
- package/dist/components/tabs/tabs.d.mts +1 -1
- package/dist/components/tabs/tabs.d.ts +1 -1
- package/dist/components/tabs/tabs.test.mjs +3 -3
- package/dist/components/textarea/index.d.mts +3 -0
- package/dist/components/textarea/index.d.ts +3 -0
- package/dist/components/textarea/index.js +89 -30
- package/dist/components/textarea/index.mjs +2 -1
- package/dist/components/textarea/textarea.d.mts +510 -9
- package/dist/components/textarea/textarea.d.ts +510 -9
- package/dist/components/textarea/textarea.js +89 -30
- package/dist/components/textarea/textarea.mjs +2 -1
- package/dist/components/textarea/textarea.test.js +89 -30
- package/dist/components/textarea/textarea.test.mjs +3 -2
- package/dist/components/toast/index.js +32 -2
- package/dist/components/toast/index.mjs +4 -4
- package/dist/components/toast/toast.js +31 -1
- package/dist/components/toast/toast.mjs +3 -3
- package/dist/components/toast/toast.test.js +31 -1
- package/dist/components/toast/toast.test.mjs +3 -3
- package/dist/components/toast/use-toast.js +32 -2
- package/dist/components/toast/use-toast.mjs +4 -4
- package/dist/components/tooltip/tooltip.test.js +4034 -118
- package/dist/components/tooltip/tooltip.test.mjs +6 -3
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2773 -2334
- package/dist/index.mjs +33 -33
- package/package.json +1 -1
- package/dist/chunk-66WCZEEU.mjs +0 -320
- package/dist/chunk-WOX3SLJB.mjs +0 -162
|
@@ -0,0 +1,671 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
Icon_default
|
|
4
|
+
} from "./chunk-LCI6RPWE.mjs";
|
|
5
|
+
import {
|
|
6
|
+
mapPropsVariants
|
|
7
|
+
} from "./chunk-E3G5QXSH.mjs";
|
|
8
|
+
import {
|
|
9
|
+
tv
|
|
10
|
+
} from "./chunk-J725QONZ.mjs";
|
|
11
|
+
|
|
12
|
+
// src/components/button/button.tsx
|
|
13
|
+
import React, { forwardRef, useMemo, useCallback } from "react";
|
|
14
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
15
|
+
var Button = forwardRef((originalProps, ref) => {
|
|
16
|
+
const [props, variantProps] = mapPropsVariants(originalProps, buttonStyle.variantKeys);
|
|
17
|
+
const { classNames, startContent, endContent, children, ...buttonProps } = props;
|
|
18
|
+
const slots = useMemo(() => buttonStyle({ ...variantProps }), [variantProps]);
|
|
19
|
+
const getBaseProps = useCallback(
|
|
20
|
+
() => ({
|
|
21
|
+
...buttonProps,
|
|
22
|
+
ref,
|
|
23
|
+
disabled: originalProps.isDisabled || originalProps.isLoading,
|
|
24
|
+
"data-loading": originalProps.isLoading,
|
|
25
|
+
className: slots.base({ class: classNames == null ? void 0 : classNames.base })
|
|
26
|
+
}),
|
|
27
|
+
[buttonProps, ref, originalProps.isDisabled, originalProps.isLoading, slots, classNames == null ? void 0 : classNames.base]
|
|
28
|
+
);
|
|
29
|
+
const getContentProps = useCallback(
|
|
30
|
+
() => ({
|
|
31
|
+
className: slots.content({ class: classNames == null ? void 0 : classNames.content }),
|
|
32
|
+
size: originalProps.size
|
|
33
|
+
}),
|
|
34
|
+
[slots, classNames, originalProps.size]
|
|
35
|
+
);
|
|
36
|
+
const renderContent = (content) => {
|
|
37
|
+
if (React.isValidElement(content)) {
|
|
38
|
+
const existingProps = content.props;
|
|
39
|
+
const mergedProps = {
|
|
40
|
+
...getContentProps(),
|
|
41
|
+
className: `${getContentProps().className || ""} ${existingProps.className || ""}`.trim()
|
|
42
|
+
};
|
|
43
|
+
return React.cloneElement(content, mergedProps);
|
|
44
|
+
} else {
|
|
45
|
+
const contentProps = getContentProps();
|
|
46
|
+
return /* @__PURE__ */ jsx("div", { ...contentProps, children: content });
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
return /* @__PURE__ */ jsx("button", { ...getBaseProps(), children: originalProps.isLoading ? renderContent(/* @__PURE__ */ jsx(Icon_default, { name: "loading", className: "animate-spin" })) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
50
|
+
startContent && renderContent(startContent),
|
|
51
|
+
children,
|
|
52
|
+
endContent && renderContent(endContent)
|
|
53
|
+
] }) });
|
|
54
|
+
});
|
|
55
|
+
Button.displayName = "Button";
|
|
56
|
+
var button_default = Button;
|
|
57
|
+
var buttonStyle = tv({
|
|
58
|
+
slots: {
|
|
59
|
+
base: "flex items-center justify-center border whitespace-nowrap transition duration-200 select-none",
|
|
60
|
+
content: ""
|
|
61
|
+
},
|
|
62
|
+
variants: {
|
|
63
|
+
variant: {
|
|
64
|
+
solid: "",
|
|
65
|
+
line: "",
|
|
66
|
+
tonal: "",
|
|
67
|
+
trans: {
|
|
68
|
+
base: "bg-transparent border-transparent"
|
|
69
|
+
},
|
|
70
|
+
ghost: ""
|
|
71
|
+
},
|
|
72
|
+
color: {
|
|
73
|
+
primary: "",
|
|
74
|
+
secondary: "",
|
|
75
|
+
neutral: "",
|
|
76
|
+
info: "",
|
|
77
|
+
success: "",
|
|
78
|
+
warning: "",
|
|
79
|
+
danger: ""
|
|
80
|
+
},
|
|
81
|
+
size: {
|
|
82
|
+
sm: {
|
|
83
|
+
base: "h-[24px] px-[8px] py-[4.5px] text-sm font-[500] rounded-sm gap-sm"
|
|
84
|
+
},
|
|
85
|
+
md: {
|
|
86
|
+
base: "h-[30px] px-[16px] py-[6.5px] text-md font-[500] rounded-md gap-md"
|
|
87
|
+
},
|
|
88
|
+
lg: {
|
|
89
|
+
base: "h-[36px] px-[24px] py-[8px] text-lg font-[500] rounded-lg gap-lg"
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
radius: {
|
|
93
|
+
default: {
|
|
94
|
+
base: ""
|
|
95
|
+
},
|
|
96
|
+
full: {
|
|
97
|
+
base: "rounded-full"
|
|
98
|
+
},
|
|
99
|
+
none: {
|
|
100
|
+
base: "rounded-none"
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
fullWidth: {
|
|
104
|
+
true: {
|
|
105
|
+
base: "w-full"
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
isDisabled: {
|
|
109
|
+
true: {
|
|
110
|
+
base: "!bg-neutral-soft !border-neutral-soft !text-neutral-light pointer-events-none"
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
isLoading: {
|
|
114
|
+
true: {
|
|
115
|
+
base: "pointer-events-none"
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
isInGroup: {
|
|
119
|
+
true: {
|
|
120
|
+
base: "[&:not(:first-child):not(:last-child)]:rounded-none first:rounded-r-none last:rounded-l-none"
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
defaultVariants: {
|
|
125
|
+
size: "md",
|
|
126
|
+
variant: "solid",
|
|
127
|
+
color: "primary",
|
|
128
|
+
fullWidth: false,
|
|
129
|
+
isDisabled: false,
|
|
130
|
+
isLoading: false,
|
|
131
|
+
isInGroup: false
|
|
132
|
+
},
|
|
133
|
+
compoundVariants: [
|
|
134
|
+
// solid & color
|
|
135
|
+
{
|
|
136
|
+
variant: "solid",
|
|
137
|
+
color: "primary",
|
|
138
|
+
class: {
|
|
139
|
+
base: [
|
|
140
|
+
"text-white",
|
|
141
|
+
"bg-primary-main",
|
|
142
|
+
"border-primary-main",
|
|
143
|
+
"hover:bg-primary-dark",
|
|
144
|
+
"hover:border-primary-dark",
|
|
145
|
+
"data-[loading=true]:bg-primary-dark",
|
|
146
|
+
"data-[loading=true]:border-primary-dark"
|
|
147
|
+
]
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
variant: "solid",
|
|
152
|
+
color: "secondary",
|
|
153
|
+
class: {
|
|
154
|
+
base: [
|
|
155
|
+
"text-white",
|
|
156
|
+
"bg-secondary-main",
|
|
157
|
+
"border-secondary-main",
|
|
158
|
+
"hover:bg-secondary-dark",
|
|
159
|
+
"hover:border-secondary-dark",
|
|
160
|
+
"data-[loading=true]:bg-secondary-dark",
|
|
161
|
+
"data-[loading=true]:border-secondary-dark"
|
|
162
|
+
]
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
variant: "solid",
|
|
167
|
+
color: "neutral",
|
|
168
|
+
class: {
|
|
169
|
+
base: [
|
|
170
|
+
"text-white",
|
|
171
|
+
"bg-neutral-main",
|
|
172
|
+
"border-neutral-main",
|
|
173
|
+
"hover:bg-neutral-dark",
|
|
174
|
+
"hover:border-neutral-dark",
|
|
175
|
+
"data-[loading=true]:bg-neutral-dark",
|
|
176
|
+
"data-[loading=true]:border-neutral-dark"
|
|
177
|
+
]
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
variant: "solid",
|
|
182
|
+
color: "info",
|
|
183
|
+
class: {
|
|
184
|
+
base: [
|
|
185
|
+
"text-white",
|
|
186
|
+
"bg-info-main",
|
|
187
|
+
"border-info-main",
|
|
188
|
+
"hover:bg-info-dark",
|
|
189
|
+
"hover:border-info-dark",
|
|
190
|
+
"data-[loading=true]:bg-info-dark",
|
|
191
|
+
"data-[loading=true]:border-info-dark"
|
|
192
|
+
]
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
variant: "solid",
|
|
197
|
+
color: "success",
|
|
198
|
+
class: {
|
|
199
|
+
base: [
|
|
200
|
+
"text-white",
|
|
201
|
+
"bg-success-main",
|
|
202
|
+
"border-success-main",
|
|
203
|
+
"hover:bg-success-dark",
|
|
204
|
+
"hover:border-success-dark",
|
|
205
|
+
"data-[loading=true]:bg-success-dark",
|
|
206
|
+
"data-[loading=true]:border-success-dark"
|
|
207
|
+
]
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
variant: "solid",
|
|
212
|
+
color: "warning",
|
|
213
|
+
class: {
|
|
214
|
+
base: [
|
|
215
|
+
"text-white",
|
|
216
|
+
"bg-warning-main",
|
|
217
|
+
"border-warning-main",
|
|
218
|
+
"hover:bg-warning-dark",
|
|
219
|
+
"hover:border-warning-dark",
|
|
220
|
+
"data-[loading=true]:bg-warning-dark",
|
|
221
|
+
"data-[loading=true]:border-warning-dark"
|
|
222
|
+
]
|
|
223
|
+
}
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
variant: "solid",
|
|
227
|
+
color: "danger",
|
|
228
|
+
class: {
|
|
229
|
+
base: [
|
|
230
|
+
"text-white",
|
|
231
|
+
"bg-danger-main",
|
|
232
|
+
"border-danger-main",
|
|
233
|
+
"hover:bg-danger-dark",
|
|
234
|
+
"hover:border-danger-dark",
|
|
235
|
+
"data-[loading=true]:bg-danger-dark",
|
|
236
|
+
"data-[loading=true]:border-danger-dark"
|
|
237
|
+
]
|
|
238
|
+
}
|
|
239
|
+
},
|
|
240
|
+
// line & color
|
|
241
|
+
{
|
|
242
|
+
variant: "line",
|
|
243
|
+
color: "primary",
|
|
244
|
+
class: {
|
|
245
|
+
base: [
|
|
246
|
+
"bg-transparent",
|
|
247
|
+
"border-primary-main",
|
|
248
|
+
"text-primary-main",
|
|
249
|
+
"hover:bg-neutral-soft",
|
|
250
|
+
"data-[loading=true]:bg-neutral-soft"
|
|
251
|
+
]
|
|
252
|
+
}
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
variant: "line",
|
|
256
|
+
color: "secondary",
|
|
257
|
+
class: {
|
|
258
|
+
base: [
|
|
259
|
+
"bg-transparent",
|
|
260
|
+
"border-secondary-main",
|
|
261
|
+
"text-secondary-main",
|
|
262
|
+
"hover:bg-neutral-soft",
|
|
263
|
+
"data-[loading=true]:bg-neutral-soft"
|
|
264
|
+
]
|
|
265
|
+
}
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
variant: "line",
|
|
269
|
+
color: "neutral",
|
|
270
|
+
class: {
|
|
271
|
+
base: [
|
|
272
|
+
"bg-transparent",
|
|
273
|
+
"border-neutral-main",
|
|
274
|
+
"text-neutral-main",
|
|
275
|
+
"hover:bg-neutral-soft",
|
|
276
|
+
"data-[loading=true]:bg-neutral-soft"
|
|
277
|
+
]
|
|
278
|
+
}
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
variant: "line",
|
|
282
|
+
color: "info",
|
|
283
|
+
class: {
|
|
284
|
+
base: [
|
|
285
|
+
"bg-transparent",
|
|
286
|
+
"border-info-main",
|
|
287
|
+
"text-info-main",
|
|
288
|
+
"hover:bg-neutral-soft",
|
|
289
|
+
"data-[loading=true]:bg-neutral-soft"
|
|
290
|
+
]
|
|
291
|
+
}
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
variant: "line",
|
|
295
|
+
color: "success",
|
|
296
|
+
class: {
|
|
297
|
+
base: [
|
|
298
|
+
"bg-transparent",
|
|
299
|
+
"border-success-main",
|
|
300
|
+
"text-success-main",
|
|
301
|
+
"hover:bg-neutral-soft",
|
|
302
|
+
"data-[loading=true]:bg-neutral-soft"
|
|
303
|
+
]
|
|
304
|
+
}
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
variant: "line",
|
|
308
|
+
color: "warning",
|
|
309
|
+
class: {
|
|
310
|
+
base: [
|
|
311
|
+
"bg-transparent",
|
|
312
|
+
"border-warning-main",
|
|
313
|
+
"text-warning-main",
|
|
314
|
+
"hover:bg-neutral-soft",
|
|
315
|
+
"data-[loading=true]:bg-neutral-soft"
|
|
316
|
+
]
|
|
317
|
+
}
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
variant: "line",
|
|
321
|
+
color: "danger",
|
|
322
|
+
class: {
|
|
323
|
+
base: [
|
|
324
|
+
"bg-transparent",
|
|
325
|
+
"border-danger-main",
|
|
326
|
+
"text-danger-main",
|
|
327
|
+
"hover:bg-neutral-soft",
|
|
328
|
+
"data-[loading=true]:bg-neutral-soft"
|
|
329
|
+
]
|
|
330
|
+
}
|
|
331
|
+
},
|
|
332
|
+
// tonal & color
|
|
333
|
+
{
|
|
334
|
+
variant: "tonal",
|
|
335
|
+
color: "primary",
|
|
336
|
+
class: {
|
|
337
|
+
base: [
|
|
338
|
+
"bg-primary-soft",
|
|
339
|
+
"border-primary-soft",
|
|
340
|
+
"text-primary-main",
|
|
341
|
+
"hover:border-primary-light",
|
|
342
|
+
"hover:bg-primary-light",
|
|
343
|
+
"data-[loading=true]:border-primary-light",
|
|
344
|
+
"data-[loading=true]:bg-primary-light"
|
|
345
|
+
]
|
|
346
|
+
}
|
|
347
|
+
},
|
|
348
|
+
{
|
|
349
|
+
variant: "tonal",
|
|
350
|
+
color: "secondary",
|
|
351
|
+
class: {
|
|
352
|
+
base: [
|
|
353
|
+
"bg-secondary-soft",
|
|
354
|
+
"border-secondary-soft",
|
|
355
|
+
"text-secondary-main",
|
|
356
|
+
"hover:border-secondary-light",
|
|
357
|
+
"hover:bg-secondary-light",
|
|
358
|
+
"data-[loading=true]:border-secondary-light",
|
|
359
|
+
"data-[loading=true]:bg-secondary-light"
|
|
360
|
+
]
|
|
361
|
+
}
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
variant: "tonal",
|
|
365
|
+
color: "neutral",
|
|
366
|
+
class: {
|
|
367
|
+
base: [
|
|
368
|
+
"bg-neutral-soft",
|
|
369
|
+
"border-neutral-soft",
|
|
370
|
+
"text-neutral-main",
|
|
371
|
+
"hover:border-neutral-light",
|
|
372
|
+
"hover:bg-neutral-light",
|
|
373
|
+
"data-[loading=true]:border-neutral-light",
|
|
374
|
+
"data-[loading=true]:bg-neutral-light"
|
|
375
|
+
]
|
|
376
|
+
}
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
variant: "tonal",
|
|
380
|
+
color: "info",
|
|
381
|
+
class: {
|
|
382
|
+
base: [
|
|
383
|
+
"bg-info-soft",
|
|
384
|
+
"border-info-soft",
|
|
385
|
+
"text-info-main",
|
|
386
|
+
"hover:border-info-light",
|
|
387
|
+
"hover:bg-info-light",
|
|
388
|
+
"data-[loading=true]:border-info-light",
|
|
389
|
+
"data-[loading=true]:bg-info-light"
|
|
390
|
+
]
|
|
391
|
+
}
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
variant: "tonal",
|
|
395
|
+
color: "success",
|
|
396
|
+
class: {
|
|
397
|
+
base: [
|
|
398
|
+
"bg-success-soft",
|
|
399
|
+
"border-success-soft",
|
|
400
|
+
"text-success-main",
|
|
401
|
+
"hover:border-success-light",
|
|
402
|
+
"hover:bg-success-light",
|
|
403
|
+
"data-[loading=true]:border-success-light",
|
|
404
|
+
"data-[loading=true]:bg-success-light"
|
|
405
|
+
]
|
|
406
|
+
}
|
|
407
|
+
},
|
|
408
|
+
{
|
|
409
|
+
variant: "tonal",
|
|
410
|
+
color: "warning",
|
|
411
|
+
class: {
|
|
412
|
+
base: [
|
|
413
|
+
"bg-warning-soft",
|
|
414
|
+
"border-warning-soft",
|
|
415
|
+
"text-warning-main",
|
|
416
|
+
"hover:border-warning-light",
|
|
417
|
+
"hover:bg-warning-light",
|
|
418
|
+
"data-[loading=true]:border-warning-light",
|
|
419
|
+
"data-[loading=true]:bg-warning-light"
|
|
420
|
+
]
|
|
421
|
+
}
|
|
422
|
+
},
|
|
423
|
+
{
|
|
424
|
+
variant: "tonal",
|
|
425
|
+
color: "danger",
|
|
426
|
+
class: {
|
|
427
|
+
base: [
|
|
428
|
+
"bg-danger-soft",
|
|
429
|
+
"border-danger-soft",
|
|
430
|
+
"text-danger-main",
|
|
431
|
+
"hover:border-danger-light",
|
|
432
|
+
"hover:bg-danger-light",
|
|
433
|
+
"data-[loading=true]:border-danger-light",
|
|
434
|
+
"data-[loading=true]:bg-danger-light"
|
|
435
|
+
]
|
|
436
|
+
}
|
|
437
|
+
},
|
|
438
|
+
// trans & color
|
|
439
|
+
{
|
|
440
|
+
variant: "trans",
|
|
441
|
+
color: "primary",
|
|
442
|
+
class: {
|
|
443
|
+
base: [
|
|
444
|
+
"text-primary-main",
|
|
445
|
+
"border-transparent",
|
|
446
|
+
"hover:bg-primary-soft",
|
|
447
|
+
"hover:text-primary-main",
|
|
448
|
+
"hover:border-primary-soft",
|
|
449
|
+
"data-[loading=true]:bg-primary-soft",
|
|
450
|
+
"data-[loading=true]:text-primary-main",
|
|
451
|
+
"data-[loading=true]:border-primary-soft"
|
|
452
|
+
]
|
|
453
|
+
}
|
|
454
|
+
},
|
|
455
|
+
{
|
|
456
|
+
variant: "trans",
|
|
457
|
+
color: "secondary",
|
|
458
|
+
class: {
|
|
459
|
+
base: [
|
|
460
|
+
"text-secondary-main",
|
|
461
|
+
"border-transparent",
|
|
462
|
+
"hover:bg-secondary-soft",
|
|
463
|
+
"hover:text-secondary-main",
|
|
464
|
+
"hover:border-secondary-soft",
|
|
465
|
+
"data-[loading=true]:bg-secondary-soft",
|
|
466
|
+
"data-[loading=true]:text-secondary-main",
|
|
467
|
+
"data-[loading=true]:border-secondary-soft"
|
|
468
|
+
]
|
|
469
|
+
}
|
|
470
|
+
},
|
|
471
|
+
{
|
|
472
|
+
variant: "trans",
|
|
473
|
+
color: "neutral",
|
|
474
|
+
class: {
|
|
475
|
+
base: [
|
|
476
|
+
"text-neutral-main",
|
|
477
|
+
"border-transparent",
|
|
478
|
+
"hover:bg-neutral-soft",
|
|
479
|
+
"hover:text-neutral-main",
|
|
480
|
+
"hover:border-neutral-soft",
|
|
481
|
+
"data-[loading=true]:bg-neutral-soft",
|
|
482
|
+
"data-[loading=true]:text-neutral-main",
|
|
483
|
+
"data-[loading=true]:border-neutral-soft"
|
|
484
|
+
]
|
|
485
|
+
}
|
|
486
|
+
},
|
|
487
|
+
{
|
|
488
|
+
variant: "trans",
|
|
489
|
+
color: "info",
|
|
490
|
+
class: {
|
|
491
|
+
base: [
|
|
492
|
+
"text-info-main",
|
|
493
|
+
"border-transparent",
|
|
494
|
+
"hover:bg-info-soft",
|
|
495
|
+
"hover:text-info-main",
|
|
496
|
+
"hover:border-info-soft",
|
|
497
|
+
"data-[loading=true]:bg-info-soft",
|
|
498
|
+
"data-[loading=true]:text-info-main",
|
|
499
|
+
"data-[loading=true]:border-info-soft"
|
|
500
|
+
]
|
|
501
|
+
}
|
|
502
|
+
},
|
|
503
|
+
{
|
|
504
|
+
variant: "trans",
|
|
505
|
+
color: "success",
|
|
506
|
+
class: {
|
|
507
|
+
base: [
|
|
508
|
+
"text-success-main",
|
|
509
|
+
"border-transparent",
|
|
510
|
+
"hover:bg-success-soft",
|
|
511
|
+
"hover:text-success-main",
|
|
512
|
+
"hover:border-success-soft",
|
|
513
|
+
"data-[loading=true]:bg-success-soft",
|
|
514
|
+
"data-[loading=true]:text-success-main",
|
|
515
|
+
"data-[loading=true]:border-success-soft"
|
|
516
|
+
]
|
|
517
|
+
}
|
|
518
|
+
},
|
|
519
|
+
{
|
|
520
|
+
variant: "trans",
|
|
521
|
+
color: "warning",
|
|
522
|
+
class: {
|
|
523
|
+
base: [
|
|
524
|
+
"text-warning-main",
|
|
525
|
+
"border-transparent",
|
|
526
|
+
"hover:bg-warning-soft",
|
|
527
|
+
"hover:text-warning-main",
|
|
528
|
+
"hover:border-warning-soft",
|
|
529
|
+
"data-[loading=true]:bg-warning-soft",
|
|
530
|
+
"data-[loading=true]:text-warning-main",
|
|
531
|
+
"data-[loading=true]:border-warning-soft"
|
|
532
|
+
]
|
|
533
|
+
}
|
|
534
|
+
},
|
|
535
|
+
{
|
|
536
|
+
variant: "trans",
|
|
537
|
+
color: "danger",
|
|
538
|
+
class: {
|
|
539
|
+
base: [
|
|
540
|
+
"text-danger-main",
|
|
541
|
+
"border-transparent",
|
|
542
|
+
"hover:bg-danger-soft",
|
|
543
|
+
"hover:text-danger-main",
|
|
544
|
+
"hover:border-danger-soft",
|
|
545
|
+
"data-[loading=true]:bg-danger-soft",
|
|
546
|
+
"data-[loading=true]:text-danger-main",
|
|
547
|
+
"data-[loading=true]:border-danger-soft"
|
|
548
|
+
]
|
|
549
|
+
}
|
|
550
|
+
},
|
|
551
|
+
// ghost & color
|
|
552
|
+
{
|
|
553
|
+
variant: "ghost",
|
|
554
|
+
color: "primary",
|
|
555
|
+
class: {
|
|
556
|
+
base: [
|
|
557
|
+
"text-primary-main",
|
|
558
|
+
"border-primary-main",
|
|
559
|
+
"hover:text-white",
|
|
560
|
+
"hover:bg-primary-main",
|
|
561
|
+
"data-[loading=true]:text-white",
|
|
562
|
+
"data-[loading=true]:bg-primary-main"
|
|
563
|
+
]
|
|
564
|
+
}
|
|
565
|
+
},
|
|
566
|
+
{
|
|
567
|
+
variant: "ghost",
|
|
568
|
+
color: "secondary",
|
|
569
|
+
class: {
|
|
570
|
+
base: [
|
|
571
|
+
"text-secondary-main",
|
|
572
|
+
"border-secondary-main",
|
|
573
|
+
"hover:text-white",
|
|
574
|
+
"hover:bg-secondary-main",
|
|
575
|
+
"data-[loading=true]:text-white",
|
|
576
|
+
"data-[loading=true]:bg-secondary-main"
|
|
577
|
+
]
|
|
578
|
+
}
|
|
579
|
+
},
|
|
580
|
+
{
|
|
581
|
+
variant: "ghost",
|
|
582
|
+
color: "neutral",
|
|
583
|
+
class: {
|
|
584
|
+
base: [
|
|
585
|
+
"text-neutral-main",
|
|
586
|
+
"border-neutral-main",
|
|
587
|
+
"hover:text-white",
|
|
588
|
+
"hover:bg-neutral-main",
|
|
589
|
+
"data-[loading=true]:text-white",
|
|
590
|
+
"data-[loading=true]:bg-neutral-main"
|
|
591
|
+
]
|
|
592
|
+
}
|
|
593
|
+
},
|
|
594
|
+
{
|
|
595
|
+
variant: "ghost",
|
|
596
|
+
color: "info",
|
|
597
|
+
class: {
|
|
598
|
+
base: [
|
|
599
|
+
"text-info-main",
|
|
600
|
+
"border-info-main",
|
|
601
|
+
"hover:text-white",
|
|
602
|
+
"hover:bg-info-main",
|
|
603
|
+
"data-[loading=true]:text-white",
|
|
604
|
+
"data-[loading=true]:bg-info-main"
|
|
605
|
+
]
|
|
606
|
+
}
|
|
607
|
+
},
|
|
608
|
+
{
|
|
609
|
+
variant: "ghost",
|
|
610
|
+
color: "success",
|
|
611
|
+
class: {
|
|
612
|
+
base: [
|
|
613
|
+
"text-success-main",
|
|
614
|
+
"border-success-main",
|
|
615
|
+
"hover:text-white",
|
|
616
|
+
"hover:bg-success-main",
|
|
617
|
+
"data-[loading=true]:text-white",
|
|
618
|
+
"data-[loading=true]:bg-success-main"
|
|
619
|
+
]
|
|
620
|
+
}
|
|
621
|
+
},
|
|
622
|
+
{
|
|
623
|
+
variant: "ghost",
|
|
624
|
+
color: "warning",
|
|
625
|
+
class: {
|
|
626
|
+
base: [
|
|
627
|
+
"text-warning-main",
|
|
628
|
+
"border-warning-main",
|
|
629
|
+
"hover:text-white",
|
|
630
|
+
"hover:bg-warning-main",
|
|
631
|
+
"data-[loading=true]:text-white",
|
|
632
|
+
"data-[loading=true]:bg-warning-main"
|
|
633
|
+
]
|
|
634
|
+
}
|
|
635
|
+
},
|
|
636
|
+
{
|
|
637
|
+
variant: "ghost",
|
|
638
|
+
color: "danger",
|
|
639
|
+
class: {
|
|
640
|
+
base: [
|
|
641
|
+
"text-danger-main",
|
|
642
|
+
"border-danger-main",
|
|
643
|
+
"hover:text-white",
|
|
644
|
+
"hover:bg-danger-main",
|
|
645
|
+
"data-[loading=true]:text-white",
|
|
646
|
+
"data-[loading=true]:bg-danger-main"
|
|
647
|
+
]
|
|
648
|
+
}
|
|
649
|
+
},
|
|
650
|
+
// variant && isInGroup
|
|
651
|
+
{
|
|
652
|
+
variant: ["line", "ghost"],
|
|
653
|
+
isInGroup: true,
|
|
654
|
+
class: {
|
|
655
|
+
base: "[&:not(:last-child)]:border-r-0"
|
|
656
|
+
}
|
|
657
|
+
},
|
|
658
|
+
// variant && isDisabled
|
|
659
|
+
{
|
|
660
|
+
variant: ["line", "ghost"],
|
|
661
|
+
isDisabled: true,
|
|
662
|
+
class: {
|
|
663
|
+
base: "!border-neutral-light"
|
|
664
|
+
}
|
|
665
|
+
}
|
|
666
|
+
]
|
|
667
|
+
});
|
|
668
|
+
|
|
669
|
+
export {
|
|
670
|
+
button_default
|
|
671
|
+
};
|
|
@@ -38,8 +38,8 @@ declare const accordion: tailwind_variants.TVReturnType<{
|
|
|
38
38
|
}, undefined, {
|
|
39
39
|
responsiveVariants?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | {
|
|
40
40
|
size?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
|
|
41
|
-
color?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
|
|
42
41
|
variant?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
|
|
42
|
+
color?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
|
|
43
43
|
disableAnimation?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
|
|
44
44
|
} | undefined;
|
|
45
45
|
} & tailwind_variants_dist_config.TWMConfig & {
|
|
@@ -38,8 +38,8 @@ declare const accordion: tailwind_variants.TVReturnType<{
|
|
|
38
38
|
}, undefined, {
|
|
39
39
|
responsiveVariants?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | {
|
|
40
40
|
size?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
|
|
41
|
-
color?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
|
|
42
41
|
variant?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
|
|
42
|
+
color?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
|
|
43
43
|
disableAnimation?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
|
|
44
44
|
} | undefined;
|
|
45
45
|
} & tailwind_variants_dist_config.TWMConfig & {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
render
|
|
4
|
-
} from "../../chunk-FNPWLOGV.mjs";
|
|
5
2
|
import {
|
|
6
3
|
accordion_default
|
|
7
4
|
} from "../../chunk-SWR7E3NU.mjs";
|
|
5
|
+
import {
|
|
6
|
+
render
|
|
7
|
+
} from "../../chunk-FNPWLOGV.mjs";
|
|
8
8
|
import "../../chunk-E3G5QXSH.mjs";
|
|
9
9
|
import "../../chunk-J725QONZ.mjs";
|
|
10
10
|
import "../../chunk-IZ6II3QA.mjs";
|