@deepnoid/ui 0.1.0 → 0.1.2
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/.turbo/turbo-build.log +173 -173
- package/dist/{chunk-VWMXZUR2.mjs → chunk-2TJDQIKB.mjs} +1 -1
- package/dist/{chunk-IE2BRM7Z.mjs → chunk-2ZT6V4QR.mjs} +0 -9
- package/dist/{chunk-PKVQXVCS.mjs → chunk-56VCX2QR.mjs} +1 -1
- package/dist/{chunk-UAMIPCUD.mjs → chunk-AMA53H3C.mjs} +2 -2
- package/dist/{chunk-XAA5KY6A.mjs → chunk-CF6O6TCF.mjs} +1 -1
- package/dist/{chunk-3AMZ55Y6.mjs → chunk-DNFBQYVG.mjs} +3 -3
- package/dist/{chunk-QNA2GDTN.mjs → chunk-GLBASISV.mjs} +1 -1
- package/dist/{chunk-QJHZJRSQ.mjs → chunk-HKXUNG3H.mjs} +1 -1
- package/dist/{chunk-XTGRSVYO.mjs → chunk-J5WJD6XZ.mjs} +1 -1
- package/dist/{chunk-MW6Y3FSE.mjs → chunk-KWWYMTJP.mjs} +4 -4
- package/dist/chunk-M2IRRTFM.mjs +79 -0
- package/dist/{chunk-Q5WACGVP.mjs → chunk-N4F3R6HG.mjs} +1 -1
- package/dist/chunk-OELLMF2V.mjs +283 -0
- package/dist/{chunk-WQBOPCH6.mjs → chunk-ON5SGXHZ.mjs} +1 -1
- package/dist/chunk-OQS4LGZK.mjs +27 -0
- package/dist/chunk-OYNGJ33M.mjs +285 -0
- package/dist/{chunk-KCYJYS66.mjs → chunk-RCU5MLBU.mjs} +1 -1
- package/dist/{chunk-X2MQCISM.mjs → chunk-S65S7QZ5.mjs} +1 -1
- package/dist/chunk-TMSBICKB.mjs +314 -0
- package/dist/{chunk-RRL6KBU4.mjs → chunk-U2YKMXVG.mjs} +1 -1
- package/dist/{chunk-CATOSBI7.mjs → chunk-VP3NVHFU.mjs} +2 -2
- package/dist/{chunk-VBFXKJTI.mjs → chunk-VRGHUYRU.mjs} +2 -2
- package/dist/{chunk-5S4XGPBB.mjs → chunk-VVOOYDJS.mjs} +1 -1
- package/dist/{chunk-FYJZ7Q5L.mjs → chunk-XIHAABHB.mjs} +1 -1
- package/dist/{chunk-2HSK6XGZ.mjs → chunk-YZNQ2QGK.mjs} +1 -1
- package/dist/{chunk-P5WT7WJO.mjs → chunk-ZEZ6ZA3N.mjs} +1 -1
- package/dist/components/avatar/avatar.js +0 -9
- package/dist/components/avatar/avatar.mjs +2 -2
- package/dist/components/avatar/index.js +0 -9
- package/dist/components/avatar/index.mjs +2 -2
- package/dist/components/backdrop/backdrop.js +0 -9
- package/dist/components/backdrop/backdrop.mjs +2 -2
- package/dist/components/backdrop/index.js +0 -9
- package/dist/components/backdrop/index.mjs +2 -2
- package/dist/components/breadcrumb/breadcrumb.js +0 -9
- package/dist/components/breadcrumb/breadcrumb.mjs +2 -2
- package/dist/components/breadcrumb/index.js +0 -9
- package/dist/components/breadcrumb/index.mjs +2 -2
- package/dist/components/button/button-group.js +0 -9
- package/dist/components/button/button-group.mjs +2 -2
- package/dist/components/button/button.js +0 -9
- package/dist/components/button/button.mjs +2 -2
- package/dist/components/button/index.js +0 -9
- package/dist/components/button/index.mjs +3 -3
- package/dist/components/checkbox/checkbox.js +0 -9
- package/dist/components/checkbox/checkbox.mjs +2 -2
- package/dist/components/checkbox/index.js +0 -9
- package/dist/components/checkbox/index.mjs +2 -2
- package/dist/components/chip/chip.js +0 -9
- package/dist/components/chip/chip.mjs +2 -2
- package/dist/components/chip/index.js +0 -9
- package/dist/components/chip/index.mjs +2 -2
- package/dist/components/dateTimePicker/calendar.js +0 -9
- package/dist/components/dateTimePicker/calendar.mjs +2 -2
- package/dist/components/dateTimePicker/dateTimePicker.js +0 -9
- package/dist/components/dateTimePicker/dateTimePicker.mjs +7 -7
- package/dist/components/dateTimePicker/index.js +0 -9
- package/dist/components/dateTimePicker/index.mjs +7 -7
- package/dist/components/dateTimePicker/timePicker.js +0 -9
- package/dist/components/dateTimePicker/timePicker.mjs +5 -5
- package/dist/components/input/index.d.mts +1 -1
- package/dist/components/input/index.d.ts +1 -1
- package/dist/components/input/index.js +429 -379
- package/dist/components/input/index.mjs +3 -2
- package/dist/components/input/input.d.mts +96 -81
- package/dist/components/input/input.d.ts +96 -81
- package/dist/components/input/input.js +429 -379
- package/dist/components/input/input.mjs +3 -2
- package/dist/components/list/index.js +0 -9
- package/dist/components/list/index.mjs +4 -4
- package/dist/components/list/list.js +0 -9
- package/dist/components/list/list.mjs +2 -2
- package/dist/components/list/listItem.js +0 -9
- package/dist/components/list/listItem.mjs +3 -3
- package/dist/components/modal/index.js +0 -9
- package/dist/components/modal/index.mjs +4 -4
- package/dist/components/modal/modal.js +0 -9
- package/dist/components/modal/modal.mjs +4 -4
- package/dist/components/pagination/index.d.mts +1 -1
- package/dist/components/pagination/index.d.ts +1 -1
- package/dist/components/pagination/index.js +320 -292
- package/dist/components/pagination/index.mjs +4 -3
- package/dist/components/pagination/pagination.d.mts +39 -95
- package/dist/components/pagination/pagination.d.ts +39 -95
- package/dist/components/pagination/pagination.js +322 -296
- package/dist/components/pagination/pagination.mjs +6 -7
- package/dist/components/radio/index.js +0 -9
- package/dist/components/radio/index.mjs +2 -2
- package/dist/components/radio/radio.js +0 -9
- package/dist/components/radio/radio.mjs +2 -2
- package/dist/components/select/index.js +0 -9
- package/dist/components/select/index.mjs +3 -3
- package/dist/components/select/option.js +0 -9
- package/dist/components/select/option.mjs +2 -2
- package/dist/components/select/select.js +0 -9
- package/dist/components/select/select.mjs +3 -3
- package/dist/components/table/index.js +1193 -775
- package/dist/components/table/index.mjs +10 -5
- package/dist/components/table/table-body.d.mts +10 -16
- package/dist/components/table/table-body.d.ts +10 -16
- package/dist/components/table/table-body.js +54 -3792
- package/dist/components/table/table-body.mjs +3 -6
- package/dist/components/table/table-head.d.mts +4 -6
- package/dist/components/table/table-head.d.ts +4 -6
- package/dist/components/table/table-head.js +6 -44
- package/dist/components/table/table-head.mjs +3 -3
- package/dist/components/table/table.d.mts +91 -231
- package/dist/components/table/table.d.ts +91 -231
- package/dist/components/table/table.js +1193 -775
- package/dist/components/table/table.mjs +10 -5
- package/dist/components/tabs/index.js +0 -9
- package/dist/components/tabs/index.mjs +2 -2
- package/dist/components/tabs/tabs.js +0 -9
- package/dist/components/tabs/tabs.mjs +2 -2
- package/dist/components/toast/index.js +0 -9
- package/dist/components/toast/index.mjs +3 -3
- package/dist/components/toast/toast.js +0 -9
- package/dist/components/toast/toast.mjs +2 -2
- package/dist/components/toast/use-toast.js +0 -9
- package/dist/components/toast/use-toast.mjs +3 -3
- package/dist/components/tooltip/index.js +0 -9
- package/dist/components/tooltip/index.mjs +2 -2
- package/dist/components/tooltip/tooltip.js +0 -9
- package/dist/components/tooltip/tooltip.mjs +2 -2
- package/dist/index.js +822 -958
- package/dist/index.mjs +56 -56
- package/dist/utils/tailwind-variants.js +0 -9
- package/dist/utils/tailwind-variants.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-5IQKKLZY.mjs +0 -139
- package/dist/chunk-PFYYYUJW.mjs +0 -56
- package/dist/chunk-RQ76IOYC.mjs +0 -300
- package/dist/chunk-SK2A72R2.mjs +0 -263
- package/dist/chunk-YGOEKSNZ.mjs +0 -345
|
@@ -102,9 +102,8 @@ var require_plugin = __commonJS({
|
|
|
102
102
|
// src/components/pagination/pagination.tsx
|
|
103
103
|
var pagination_exports = {};
|
|
104
104
|
__export(pagination_exports, {
|
|
105
|
-
Pagination: () => Pagination,
|
|
106
105
|
default: () => pagination_default,
|
|
107
|
-
|
|
106
|
+
paginationStyle: () => paginationStyle
|
|
108
107
|
});
|
|
109
108
|
module.exports = __toCommonJS(pagination_exports);
|
|
110
109
|
var import_react3 = require("react");
|
|
@@ -120,35 +119,30 @@ var fontSize = {
|
|
|
120
119
|
h1: [
|
|
121
120
|
"40px",
|
|
122
121
|
{
|
|
123
|
-
letterSpacing: "-2%",
|
|
124
122
|
fontWeight: "700"
|
|
125
123
|
}
|
|
126
124
|
],
|
|
127
125
|
h2: [
|
|
128
126
|
"34px",
|
|
129
127
|
{
|
|
130
|
-
letterSpacing: "-2%",
|
|
131
128
|
fontWeight: "700"
|
|
132
129
|
}
|
|
133
130
|
],
|
|
134
131
|
h3: [
|
|
135
132
|
"28px",
|
|
136
133
|
{
|
|
137
|
-
letterSpacing: "-2%",
|
|
138
134
|
fontWeight: "700"
|
|
139
135
|
}
|
|
140
136
|
],
|
|
141
137
|
h4: [
|
|
142
138
|
"24px",
|
|
143
139
|
{
|
|
144
|
-
letterSpacing: "-2%",
|
|
145
140
|
fontWeight: "700"
|
|
146
141
|
}
|
|
147
142
|
],
|
|
148
143
|
h5: [
|
|
149
144
|
"20px",
|
|
150
145
|
{
|
|
151
|
-
letterSpacing: "-2%",
|
|
152
146
|
fontWeight: "600"
|
|
153
147
|
}
|
|
154
148
|
],
|
|
@@ -156,7 +150,6 @@ var fontSize = {
|
|
|
156
150
|
"12px",
|
|
157
151
|
{
|
|
158
152
|
lineHeight: "18px",
|
|
159
|
-
letterSpacing: "-2%",
|
|
160
153
|
fontWeight: "400"
|
|
161
154
|
}
|
|
162
155
|
],
|
|
@@ -164,7 +157,6 @@ var fontSize = {
|
|
|
164
157
|
"14px",
|
|
165
158
|
{
|
|
166
159
|
lineHeight: "21px",
|
|
167
|
-
letterSpacing: "-2%",
|
|
168
160
|
fontWeight: "400"
|
|
169
161
|
}
|
|
170
162
|
],
|
|
@@ -172,7 +164,6 @@ var fontSize = {
|
|
|
172
164
|
"16px",
|
|
173
165
|
{
|
|
174
166
|
lineHeight: "24px",
|
|
175
|
-
letterSpacing: "-2%",
|
|
176
167
|
fontWeight: "400"
|
|
177
168
|
}
|
|
178
169
|
],
|
|
@@ -180,7 +171,6 @@ var fontSize = {
|
|
|
180
171
|
"18px",
|
|
181
172
|
{
|
|
182
173
|
lineHeight: "27px",
|
|
183
|
-
letterSpacing: "-2%",
|
|
184
174
|
fontWeight: "400"
|
|
185
175
|
}
|
|
186
176
|
]
|
|
@@ -4055,46 +4045,53 @@ var Icon = ({ name, size = "md", fill = false, className, onClick, ...props }) =
|
|
|
4055
4045
|
};
|
|
4056
4046
|
var Icon_default = Icon;
|
|
4057
4047
|
|
|
4048
|
+
// src/utils/clsx.ts
|
|
4049
|
+
function clsx(...args) {
|
|
4050
|
+
var i = 0, tmp, x, str = "";
|
|
4051
|
+
while (i < args.length) {
|
|
4052
|
+
if (tmp = args[i++]) {
|
|
4053
|
+
if (x = toVal(tmp)) {
|
|
4054
|
+
str && (str += " ");
|
|
4055
|
+
str += x;
|
|
4056
|
+
}
|
|
4057
|
+
}
|
|
4058
|
+
}
|
|
4059
|
+
return str;
|
|
4060
|
+
}
|
|
4061
|
+
function toVal(mix) {
|
|
4062
|
+
var k, y, str = "";
|
|
4063
|
+
if (typeof mix === "string" || typeof mix === "number") {
|
|
4064
|
+
str += mix;
|
|
4065
|
+
} else if (typeof mix === "object") {
|
|
4066
|
+
if (Array.isArray(mix)) {
|
|
4067
|
+
var len = mix.length;
|
|
4068
|
+
for (k = 0; k < len; k++) {
|
|
4069
|
+
if (mix[k]) {
|
|
4070
|
+
if (y = toVal(mix[k])) {
|
|
4071
|
+
str && (str += " ");
|
|
4072
|
+
str += y;
|
|
4073
|
+
}
|
|
4074
|
+
}
|
|
4075
|
+
}
|
|
4076
|
+
} else {
|
|
4077
|
+
for (y in mix) {
|
|
4078
|
+
if (mix[y]) {
|
|
4079
|
+
str && (str += " ");
|
|
4080
|
+
str += y;
|
|
4081
|
+
}
|
|
4082
|
+
}
|
|
4083
|
+
}
|
|
4084
|
+
}
|
|
4085
|
+
return str;
|
|
4086
|
+
}
|
|
4087
|
+
|
|
4058
4088
|
// src/components/input/input.tsx
|
|
4059
4089
|
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
4060
4090
|
var Input = (0, import_react2.forwardRef)((originalProps, ref) => {
|
|
4061
4091
|
const [props, variantProps] = mapPropsVariants(originalProps, inputStyle.variantKeys);
|
|
4062
|
-
const { classNames, label,
|
|
4092
|
+
const { classNames, label, helperText, errorText, startContent, endContent, ...inputProps } = props;
|
|
4063
4093
|
const inputRef = (0, import_react2.useRef)(null);
|
|
4064
4094
|
const slots = (0, import_react2.useMemo)(() => inputStyle({ ...variantProps }), [variantProps]);
|
|
4065
|
-
const getBaseProps = (0, import_react2.useCallback)(
|
|
4066
|
-
() => ({
|
|
4067
|
-
className: slots.base({ class: classNames == null ? void 0 : classNames.base })
|
|
4068
|
-
}),
|
|
4069
|
-
[slots, classNames]
|
|
4070
|
-
);
|
|
4071
|
-
const getLabelProps = (0, import_react2.useCallback)(
|
|
4072
|
-
() => ({
|
|
4073
|
-
className: slots.label({ class: classNames == null ? void 0 : classNames.label })
|
|
4074
|
-
}),
|
|
4075
|
-
[slots, classNames]
|
|
4076
|
-
);
|
|
4077
|
-
const getInnerWrapperProps = (0, import_react2.useCallback)(
|
|
4078
|
-
() => ({
|
|
4079
|
-
className: slots.innerWrapper({ class: classNames == null ? void 0 : classNames.innerWrapper })
|
|
4080
|
-
}),
|
|
4081
|
-
[slots, classNames]
|
|
4082
|
-
);
|
|
4083
|
-
const getInputWrapperProps = (0, import_react2.useCallback)(
|
|
4084
|
-
() => ({
|
|
4085
|
-
className: slots.inputWrapper({ class: classNames == null ? void 0 : classNames.inputWrapper })
|
|
4086
|
-
}),
|
|
4087
|
-
[slots, classNames]
|
|
4088
|
-
);
|
|
4089
|
-
const getInputProps = (0, import_react2.useCallback)(
|
|
4090
|
-
() => ({
|
|
4091
|
-
...inputProps,
|
|
4092
|
-
ref: ref || inputRef,
|
|
4093
|
-
className: slots.input({ class: classNames == null ? void 0 : classNames.input }),
|
|
4094
|
-
size: 0
|
|
4095
|
-
}),
|
|
4096
|
-
[slots, classNames, inputProps, ref]
|
|
4097
|
-
);
|
|
4098
4095
|
const getContentProps = (0, import_react2.useCallback)(
|
|
4099
4096
|
() => ({
|
|
4100
4097
|
className: slots.content({ class: classNames == null ? void 0 : classNames.content }),
|
|
@@ -4102,12 +4099,6 @@ var Input = (0, import_react2.forwardRef)((originalProps, ref) => {
|
|
|
4102
4099
|
}),
|
|
4103
4100
|
[slots, classNames, originalProps.size]
|
|
4104
4101
|
);
|
|
4105
|
-
const getErrorMessageProps = (0, import_react2.useCallback)(
|
|
4106
|
-
() => ({
|
|
4107
|
-
className: slots.errorMessage({ class: classNames == null ? void 0 : classNames.errorMessage })
|
|
4108
|
-
}),
|
|
4109
|
-
[slots, classNames]
|
|
4110
|
-
);
|
|
4111
4102
|
const renderStartContent = () => {
|
|
4112
4103
|
if (import_react2.default.isValidElement(startContent)) {
|
|
4113
4104
|
const existingProps = startContent.props;
|
|
@@ -4141,7 +4132,7 @@ var Input = (0, import_react2.forwardRef)((originalProps, ref) => {
|
|
|
4141
4132
|
className: `${getContentProps().className || ""} ${existingProps.className || ""}`.trim()
|
|
4142
4133
|
};
|
|
4143
4134
|
return import_react2.default.cloneElement(endContent, mergedProps);
|
|
4144
|
-
} else if (
|
|
4135
|
+
} else if (errorText) {
|
|
4145
4136
|
const iconProps = { ...getContentProps(), className: getContentProps().className };
|
|
4146
4137
|
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { ...iconProps, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Icon_default, { name: "exclamation-circle", fill: true, size: originalProps.size }) });
|
|
4147
4138
|
} else {
|
|
@@ -4160,152 +4151,210 @@ var Input = (0, import_react2.forwardRef)((originalProps, ref) => {
|
|
|
4160
4151
|
return renderContentWithIcon();
|
|
4161
4152
|
}
|
|
4162
4153
|
};
|
|
4163
|
-
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
4164
|
-
|
|
4165
|
-
|
|
4166
|
-
|
|
4167
|
-
|
|
4168
|
-
|
|
4169
|
-
|
|
4170
|
-
|
|
4171
|
-
|
|
4172
|
-
|
|
4173
|
-
|
|
4154
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
4155
|
+
"div",
|
|
4156
|
+
{
|
|
4157
|
+
className: clsx(
|
|
4158
|
+
slots.base({ class: classNames == null ? void 0 : classNames.base }),
|
|
4159
|
+
variantProps.direction === "horizon" ? slots.horizon({ class: classNames == null ? void 0 : classNames.horizon }) : slots.vertical({ class: classNames == null ? void 0 : classNames.vertical })
|
|
4160
|
+
),
|
|
4161
|
+
children: [
|
|
4162
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("label", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), children: label }),
|
|
4163
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: slots.innerWrapper({ class: classNames == null ? void 0 : classNames.innerWrapper }), children: [
|
|
4164
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
4165
|
+
"div",
|
|
4166
|
+
{
|
|
4167
|
+
className: clsx(
|
|
4168
|
+
slots.inputWrapper({ class: classNames == null ? void 0 : classNames.inputWrapper }),
|
|
4169
|
+
inputProps.readOnly ? slots.readonly({ class: classNames == null ? void 0 : classNames.readonly }) : ""
|
|
4170
|
+
),
|
|
4171
|
+
children: [
|
|
4172
|
+
startContent && renderStartContent(),
|
|
4173
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)("input", { ...inputProps, ref: ref || inputRef, className: slots.input({ class: classNames == null ? void 0 : classNames.input }), size: 0 }),
|
|
4174
|
+
renderEndContent()
|
|
4175
|
+
]
|
|
4176
|
+
}
|
|
4177
|
+
),
|
|
4178
|
+
helperText && !errorText && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("p", { className: slots.helperText({ class: classNames == null ? void 0 : classNames.helperText }), children: helperText }),
|
|
4179
|
+
errorText && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("p", { className: clsx("error", slots.errorText({ class: classNames == null ? void 0 : classNames.errorText })), children: errorText })
|
|
4180
|
+
] })
|
|
4181
|
+
]
|
|
4182
|
+
}
|
|
4183
|
+
);
|
|
4174
4184
|
});
|
|
4175
4185
|
Input.displayName = "Input";
|
|
4176
4186
|
var input_default = Input;
|
|
4177
4187
|
var inputStyle = tv({
|
|
4178
4188
|
slots: {
|
|
4179
|
-
base: ["group/input", "flex"
|
|
4180
|
-
|
|
4189
|
+
base: ["group/input", "flex"],
|
|
4190
|
+
vertical: ["flex-col"],
|
|
4191
|
+
horizon: ["flex-row", "gap-0"],
|
|
4192
|
+
label: ["flex", "items-center", "font-bold", "text-body-foreground", "min-w-[80px]"],
|
|
4181
4193
|
innerWrapper: ["flex", "flex-col"],
|
|
4182
|
-
inputWrapper: [
|
|
4194
|
+
inputWrapper: ["flex", "items-center", "transition", "duration-200", "group-has-[p.error]/input:bg-danger-soft"],
|
|
4195
|
+
input: [
|
|
4196
|
+
"w-full",
|
|
4197
|
+
"h-full",
|
|
4198
|
+
"bg-transparent",
|
|
4199
|
+
"text-neutral-main",
|
|
4200
|
+
"placeholder:text-neutral-main",
|
|
4201
|
+
"focus:outline-none",
|
|
4202
|
+
"focus:ring-0",
|
|
4203
|
+
"group-has-[:hover]/input:text-neutral-dark",
|
|
4204
|
+
"group-has-[:hover]/input:placeholder:text-neutral-dark",
|
|
4205
|
+
"group-has-[:focus]/input:text-neutral-dark",
|
|
4206
|
+
"group-has-[:focus]/input:placeholder:text-neutral-dark",
|
|
4207
|
+
"group-has-[p.error]/input:text-danger-main",
|
|
4208
|
+
"group-has-[p.error]/input:placeholder:text-danger-main"
|
|
4209
|
+
],
|
|
4210
|
+
content: [
|
|
4183
4211
|
"flex",
|
|
4184
4212
|
"items-center",
|
|
4185
|
-
"
|
|
4186
|
-
"
|
|
4187
|
-
"group-has-[
|
|
4188
|
-
"group-has-[p]/input:
|
|
4213
|
+
"select-none",
|
|
4214
|
+
"text-neutral-main",
|
|
4215
|
+
"group-has-[:hover]/input:text-neutral-dark",
|
|
4216
|
+
"group-has-[p.error]/input:text-danger-main"
|
|
4189
4217
|
],
|
|
4190
|
-
|
|
4191
|
-
|
|
4192
|
-
|
|
4218
|
+
helperText: ["text-neutral-main", "group-has-[:hover]/input:text-neutral-dark"],
|
|
4219
|
+
errorText: ["text-danger-main"],
|
|
4220
|
+
readonly: ["pointer-events-none"]
|
|
4193
4221
|
},
|
|
4194
4222
|
variants: {
|
|
4195
4223
|
variant: {
|
|
4196
4224
|
solid: {
|
|
4197
|
-
inputWrapper: ["
|
|
4225
|
+
inputWrapper: ["!border-transparent", "bg-trans-soft", "group-has-[:focus]/input:text-body-foreground"],
|
|
4226
|
+
readonly: ["!bg-trans-light"]
|
|
4198
4227
|
},
|
|
4199
|
-
|
|
4228
|
+
outline: {
|
|
4200
4229
|
inputWrapper: [
|
|
4201
|
-
"
|
|
4202
|
-
"
|
|
4203
|
-
"
|
|
4204
|
-
"
|
|
4205
|
-
|
|
4206
|
-
]
|
|
4230
|
+
"border-neutral-light",
|
|
4231
|
+
"group-has-[:hover]/input:bg-trans-soft",
|
|
4232
|
+
"group-has-[:focus]/input:bg-body-background",
|
|
4233
|
+
"group-has-[p.error]/input:border-danger-main"
|
|
4234
|
+
],
|
|
4235
|
+
readonly: ["!bg-trans-soft"]
|
|
4207
4236
|
},
|
|
4208
|
-
|
|
4237
|
+
underline: {
|
|
4209
4238
|
inputWrapper: [
|
|
4210
4239
|
"bg-transparent",
|
|
4211
|
-
"border-b",
|
|
4212
|
-
"border-neutral-main",
|
|
4213
4240
|
"!rounded-none",
|
|
4214
|
-
"
|
|
4215
|
-
"
|
|
4216
|
-
|
|
4241
|
+
"!border-t-transparent",
|
|
4242
|
+
"!border-l-transparent",
|
|
4243
|
+
"!border-r-transparent",
|
|
4244
|
+
"group-has-[:hover]/input:bg-trans-soft",
|
|
4245
|
+
"group-has-[:focus]/input:bg-body-background",
|
|
4246
|
+
"group-has-[p.error]/input:border-danger-main"
|
|
4247
|
+
],
|
|
4248
|
+
readonly: ["!bg-trans-soft"]
|
|
4217
4249
|
}
|
|
4218
4250
|
},
|
|
4219
4251
|
color: {
|
|
4220
4252
|
primary: {
|
|
4221
|
-
|
|
4222
|
-
|
|
4253
|
+
content: [
|
|
4254
|
+
"group-has-[:focus]/input:text-primary-main",
|
|
4255
|
+
"!group-has-[p.error]:not(input:focus):hover/input:text-primary-main"
|
|
4256
|
+
],
|
|
4257
|
+
helperText: [
|
|
4258
|
+
"group-has-[:focus]/input:text-primary-main",
|
|
4259
|
+
"group-has-[:focus:hover]/input:text-primary-main",
|
|
4260
|
+
"group-has-[:focus]/input:hover:text-primary-main"
|
|
4261
|
+
]
|
|
4223
4262
|
},
|
|
4224
4263
|
secondary: {
|
|
4225
|
-
|
|
4226
|
-
|
|
4264
|
+
content: [
|
|
4265
|
+
"group-has-[:focus]/input:text-secondary-main",
|
|
4266
|
+
"!group-has-[p.error]:not(input:focus):hover/input:text-secondary-main"
|
|
4267
|
+
],
|
|
4268
|
+
helperText: [
|
|
4269
|
+
"group-has-[:focus]/input:text-secondary-main",
|
|
4270
|
+
"group-has-[:focus:hover]/input:text-secondary-main",
|
|
4271
|
+
"group-has-[:focus]/input:hover:text-secondary-main"
|
|
4272
|
+
]
|
|
4227
4273
|
}
|
|
4228
4274
|
},
|
|
4229
4275
|
size: {
|
|
4230
4276
|
sm: {
|
|
4231
|
-
base: ["text-sm", "gap-[
|
|
4232
|
-
|
|
4233
|
-
|
|
4234
|
-
|
|
4277
|
+
base: ["text-sm", "gap-[4px]"],
|
|
4278
|
+
label: ["text-sm"],
|
|
4279
|
+
innerWrapper: ["gap-[4px]"],
|
|
4280
|
+
inputWrapper: ["w-[240px]", "h-[24px]", "rounded-sm", "px-[4px]", "border-sm"],
|
|
4281
|
+
helperText: ["text-sm"],
|
|
4282
|
+
errorText: ["text-sm"]
|
|
4235
4283
|
},
|
|
4236
4284
|
md: {
|
|
4237
|
-
base: ["text-md", "gap-[
|
|
4238
|
-
|
|
4239
|
-
|
|
4240
|
-
|
|
4285
|
+
base: ["text-md", "gap-[6px]"],
|
|
4286
|
+
label: ["text-md"],
|
|
4287
|
+
innerWrapper: ["gap-[6px]"],
|
|
4288
|
+
inputWrapper: ["w-[240px]", "h-[32px]", "rounded-md", "px-[6px]", "border-md"],
|
|
4289
|
+
helperText: ["text-sm"],
|
|
4290
|
+
errorText: ["text-sm"]
|
|
4241
4291
|
},
|
|
4242
4292
|
lg: {
|
|
4243
|
-
base: ["text-lg", "gap-[
|
|
4244
|
-
|
|
4245
|
-
|
|
4246
|
-
|
|
4293
|
+
base: ["text-lg", "gap-[8px]"],
|
|
4294
|
+
label: ["text-lg"],
|
|
4295
|
+
innerWrapper: ["gap-[8px]"],
|
|
4296
|
+
inputWrapper: ["w-[240px]", "h-[40px]", "rounded-lg", "px-[8px]", "border-lg"],
|
|
4297
|
+
helperText: ["text-md"],
|
|
4298
|
+
errorText: ["text-md"]
|
|
4247
4299
|
},
|
|
4248
4300
|
xl: {
|
|
4249
4301
|
base: ["text-xl", "gap-[10px]"],
|
|
4250
|
-
|
|
4251
|
-
|
|
4252
|
-
|
|
4302
|
+
label: ["text-xl"],
|
|
4303
|
+
innerWrapper: ["gap-[10px]"],
|
|
4304
|
+
inputWrapper: ["w-[240px]", "h-[50px]", "rounded-lg", "px-[10px]", "border-xl"],
|
|
4305
|
+
helperText: ["text-md"],
|
|
4306
|
+
errorText: ["text-md"]
|
|
4253
4307
|
}
|
|
4254
4308
|
},
|
|
4255
|
-
|
|
4256
|
-
|
|
4257
|
-
|
|
4258
|
-
inputWrapper: ["rounded-none"]
|
|
4259
|
-
},
|
|
4260
|
-
full: {
|
|
4261
|
-
inputWrapper: ["rounded-full"]
|
|
4262
|
-
}
|
|
4309
|
+
direction: {
|
|
4310
|
+
vertical: "",
|
|
4311
|
+
horizon: ""
|
|
4263
4312
|
},
|
|
4264
|
-
|
|
4313
|
+
full: {
|
|
4265
4314
|
true: {
|
|
4266
4315
|
base: ["w-full"],
|
|
4267
4316
|
innerWrapper: ["flex-1"],
|
|
4268
4317
|
inputWrapper: ["w-full"]
|
|
4269
4318
|
}
|
|
4270
4319
|
},
|
|
4271
|
-
|
|
4320
|
+
disabled: {
|
|
4272
4321
|
true: {
|
|
4273
|
-
|
|
4274
|
-
|
|
4275
|
-
|
|
4276
|
-
|
|
4277
|
-
|
|
4278
|
-
|
|
4279
|
-
|
|
4280
|
-
|
|
4281
|
-
|
|
4282
|
-
|
|
4322
|
+
inputWrapper: ["!bg-neutral-soft", "pointer-events-none", "!group-has-[p.error]/input:text-danger-light"],
|
|
4323
|
+
input: [
|
|
4324
|
+
"text-neutral-light",
|
|
4325
|
+
"placeholder:text-neutral-light",
|
|
4326
|
+
"group-has-[p.error]/input:text-danger-light",
|
|
4327
|
+
"group-has-[p.error]/input:placeholder:text-danger-light"
|
|
4328
|
+
],
|
|
4329
|
+
content: ["text-neutral-light", "group-has-[p.error]/input:text-danger-light"],
|
|
4330
|
+
helperText: ["!text-neutral-light"],
|
|
4331
|
+
errorText: ["!text-danger-light"]
|
|
4283
4332
|
}
|
|
4284
4333
|
}
|
|
4285
4334
|
},
|
|
4286
|
-
defaultVariants: {
|
|
4287
|
-
variant: "solid",
|
|
4288
|
-
color: "primary",
|
|
4289
|
-
size: "md",
|
|
4290
|
-
fullWidth: false,
|
|
4291
|
-
isDisabled: false,
|
|
4292
|
-
isRequired: false
|
|
4293
|
-
},
|
|
4294
4335
|
compoundVariants: [
|
|
4295
4336
|
{
|
|
4296
|
-
|
|
4297
|
-
|
|
4337
|
+
disabled: true,
|
|
4338
|
+
variant: ["outline", "underline"],
|
|
4298
4339
|
class: {
|
|
4299
|
-
|
|
4340
|
+
inputWrapper: ["!bg-body-background", "group-has-[p.error]/input:border-danger-light"]
|
|
4300
4341
|
}
|
|
4301
4342
|
}
|
|
4302
|
-
]
|
|
4343
|
+
],
|
|
4344
|
+
defaultVariants: {
|
|
4345
|
+
variant: "solid",
|
|
4346
|
+
color: "primary",
|
|
4347
|
+
size: "md",
|
|
4348
|
+
direction: "vertical",
|
|
4349
|
+
disabled: false,
|
|
4350
|
+
readonly: false
|
|
4351
|
+
}
|
|
4303
4352
|
});
|
|
4304
4353
|
|
|
4305
4354
|
// src/components/pagination/pagination.tsx
|
|
4306
4355
|
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
4307
4356
|
var Pagination = (0, import_react3.forwardRef)((originalProps, ref) => {
|
|
4308
|
-
const [props, variantProps] = mapPropsVariants(originalProps,
|
|
4357
|
+
const [props, variantProps] = mapPropsVariants(originalProps, paginationStyle.variantKeys);
|
|
4309
4358
|
const {
|
|
4310
4359
|
classNames,
|
|
4311
4360
|
currentPage,
|
|
@@ -4313,75 +4362,37 @@ var Pagination = (0, import_react3.forwardRef)((originalProps, ref) => {
|
|
|
4313
4362
|
totalPage,
|
|
4314
4363
|
showPageNumber = true,
|
|
4315
4364
|
showPageLabel,
|
|
4316
|
-
showPageInput,
|
|
4317
4365
|
showFirstLastButtons,
|
|
4318
|
-
handleChangePage
|
|
4319
|
-
|
|
4320
|
-
|
|
4366
|
+
handleChangePage,
|
|
4367
|
+
variant,
|
|
4368
|
+
size
|
|
4369
|
+
} = { ...props, ...variantProps };
|
|
4370
|
+
const [inputPage, setInputPage] = (0, import_react3.useState)(currentPage);
|
|
4371
|
+
const slots = (0, import_react3.useMemo)(() => paginationStyle(variantProps), [variantProps]);
|
|
4372
|
+
const { pageList, handleClickMovePage } = usePagination_default({
|
|
4321
4373
|
currentPage,
|
|
4322
4374
|
totalPage,
|
|
4323
4375
|
groupSize,
|
|
4324
4376
|
handleChangePage
|
|
4325
4377
|
});
|
|
4326
|
-
const
|
|
4327
|
-
|
|
4328
|
-
|
|
4329
|
-
|
|
4330
|
-
|
|
4331
|
-
);
|
|
4332
|
-
const getWrapperProps = (0, import_react3.useCallback)(
|
|
4333
|
-
() => ({ className: slots.wrapper({ class: classNames == null ? void 0 : classNames.wrapper }) }),
|
|
4334
|
-
[slots, classNames]
|
|
4335
|
-
);
|
|
4336
|
-
const getIconProps = (0, import_react3.useCallback)(() => ({ className: slots.icon({ class: classNames == null ? void 0 : classNames.icon }) }), [slots, classNames]);
|
|
4337
|
-
const getButtonProps = (0, import_react3.useCallback)(
|
|
4338
|
-
() => ({ className: slots.button({ class: classNames == null ? void 0 : classNames.button }) }),
|
|
4339
|
-
[slots, classNames]
|
|
4340
|
-
);
|
|
4341
|
-
const getLabelWrapperProps = (0, import_react3.useCallback)(
|
|
4342
|
-
() => ({
|
|
4343
|
-
className: "flex shrink-0",
|
|
4344
|
-
onSubmit: (e) => {
|
|
4345
|
-
e.preventDefault();
|
|
4346
|
-
if (showPageInput && handleChangePage) {
|
|
4347
|
-
const formData = new FormData(e.target);
|
|
4348
|
-
const page = formData.get("pagination-input");
|
|
4349
|
-
if (page) handleChangePage(+page);
|
|
4350
|
-
}
|
|
4378
|
+
const handleKeyDown = (e) => {
|
|
4379
|
+
if (e.key === "Enter") {
|
|
4380
|
+
const parsed = Number(inputPage);
|
|
4381
|
+
if (!isNaN(parsed) && parsed >= 1 && parsed <= totalPage) {
|
|
4382
|
+
handleChangePage == null ? void 0 : handleChangePage(parsed);
|
|
4351
4383
|
}
|
|
4352
|
-
}
|
|
4353
|
-
|
|
4354
|
-
)
|
|
4355
|
-
|
|
4356
|
-
() => ({
|
|
4357
|
-
defaultValue: currentPage,
|
|
4358
|
-
size: "sm",
|
|
4359
|
-
name: "pagination-input",
|
|
4360
|
-
type: "number",
|
|
4361
|
-
max: totalPage,
|
|
4362
|
-
min: 1,
|
|
4363
|
-
classNames: { inputWrapper: "!w-[48px] h-[20px] px-[6px]", input: "input-arrow-hide" }
|
|
4364
|
-
}),
|
|
4365
|
-
[currentPage, totalPage]
|
|
4366
|
-
);
|
|
4367
|
-
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { ...getBaseProps(), children: [
|
|
4368
|
-
showPageLabel && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { ...getLabelProps(), children: `${currentPage} of ${totalPage}` }),
|
|
4369
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("form", { ...getLabelWrapperProps(), children: [
|
|
4370
|
-
showPageInput && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(input_default, { ...getInputProps() }, `${currentPage}+pagination-input`),
|
|
4371
|
-
showPageLabel && /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("span", { ...getLabelProps(), children: [
|
|
4372
|
-
!showPageInput && currentPage,
|
|
4373
|
-
` of ${totalPage}`
|
|
4374
|
-
] })
|
|
4375
|
-
] }),
|
|
4376
|
-
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { ...getWrapperProps(), children: [
|
|
4384
|
+
}
|
|
4385
|
+
};
|
|
4386
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: slots.base({ class: classNames == null ? void 0 : classNames.base }), ref, children: [
|
|
4387
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: slots.wrapper({ class: classNames == null ? void 0 : classNames.wrapper }), children: [
|
|
4377
4388
|
showFirstLastButtons && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
4378
4389
|
"div",
|
|
4379
4390
|
{
|
|
4380
4391
|
"aria-label": "firstPage",
|
|
4381
4392
|
"data-is-active": currentPage > 1,
|
|
4382
|
-
|
|
4393
|
+
className: slots.icon({ class: classNames == null ? void 0 : classNames.icon }),
|
|
4383
4394
|
onClick: currentPage > 1 ? handleClickMovePage(1) : void 0,
|
|
4384
|
-
children: "
|
|
4395
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon_default, { name: "left-double-chevron" })
|
|
4385
4396
|
}
|
|
4386
4397
|
),
|
|
4387
4398
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
@@ -4389,15 +4400,15 @@ var Pagination = (0, import_react3.forwardRef)((originalProps, ref) => {
|
|
|
4389
4400
|
{
|
|
4390
4401
|
"aria-label": "prevPage",
|
|
4391
4402
|
"data-is-active": currentPage > 1,
|
|
4392
|
-
|
|
4403
|
+
className: slots.icon({ class: classNames == null ? void 0 : classNames.icon }),
|
|
4393
4404
|
onClick: currentPage > 1 ? handleClickMovePage(currentPage - 1) : void 0,
|
|
4394
|
-
children: "
|
|
4405
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon_default, { name: "left-chevron" })
|
|
4395
4406
|
}
|
|
4396
4407
|
),
|
|
4397
4408
|
showPageNumber && pageList.map((page, index) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
4398
4409
|
"div",
|
|
4399
4410
|
{
|
|
4400
|
-
|
|
4411
|
+
className: slots.button({ class: classNames == null ? void 0 : classNames.button }),
|
|
4401
4412
|
"data-selected": currentPage === page,
|
|
4402
4413
|
onClick: handleClickMovePage(page),
|
|
4403
4414
|
children: page
|
|
@@ -4409,9 +4420,9 @@ var Pagination = (0, import_react3.forwardRef)((originalProps, ref) => {
|
|
|
4409
4420
|
{
|
|
4410
4421
|
"aria-label": "nextPage",
|
|
4411
4422
|
"data-is-active": currentPage < totalPage,
|
|
4412
|
-
|
|
4423
|
+
className: slots.icon({ class: classNames == null ? void 0 : classNames.icon }),
|
|
4413
4424
|
onClick: currentPage < totalPage ? handleClickMovePage(currentPage + 1) : void 0,
|
|
4414
|
-
children: "
|
|
4425
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon_default, { name: "right-chevron" })
|
|
4415
4426
|
}
|
|
4416
4427
|
),
|
|
4417
4428
|
showFirstLastButtons && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
@@ -4419,163 +4430,179 @@ var Pagination = (0, import_react3.forwardRef)((originalProps, ref) => {
|
|
|
4419
4430
|
{
|
|
4420
4431
|
"aria-label": "lastPage",
|
|
4421
4432
|
"data-is-active": currentPage < totalPage,
|
|
4422
|
-
|
|
4433
|
+
className: slots.icon({ class: classNames == null ? void 0 : classNames.icon }),
|
|
4423
4434
|
onClick: currentPage < totalPage ? handleClickMovePage(totalPage) : void 0,
|
|
4424
|
-
children: "
|
|
4435
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon_default, { name: "right-double-chevron" })
|
|
4436
|
+
}
|
|
4437
|
+
)
|
|
4438
|
+
] }),
|
|
4439
|
+
showPageLabel && /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("span", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), children: [
|
|
4440
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
4441
|
+
input_default,
|
|
4442
|
+
{
|
|
4443
|
+
value: inputPage || 1,
|
|
4444
|
+
onChange: (e) => setInputPage(Number(e.target.value)),
|
|
4445
|
+
onKeyDown: handleKeyDown,
|
|
4446
|
+
width: 50,
|
|
4447
|
+
height: 24,
|
|
4448
|
+
size: "sm",
|
|
4449
|
+
classNames: {
|
|
4450
|
+
inputWrapper: clsx(
|
|
4451
|
+
"w-[50px] h-[24px] rounded-sm",
|
|
4452
|
+
variant === "solid" ? "" : "bg-body-background border border-neutral-light"
|
|
4453
|
+
)
|
|
4454
|
+
}
|
|
4425
4455
|
}
|
|
4426
4456
|
),
|
|
4427
|
-
|
|
4428
|
-
showPageInput && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(input_default, { ...getInputProps() }, `${currentPage}+pagination-input`),
|
|
4429
|
-
showPageLabel && /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("span", { ...getLabelProps(), children: [
|
|
4430
|
-
!showPageInput && currentPage,
|
|
4431
|
-
` of ${totalPage}`
|
|
4432
|
-
] })
|
|
4433
|
-
] })
|
|
4457
|
+
` of ${totalPage.toLocaleString("ko-kr")}`
|
|
4434
4458
|
] })
|
|
4435
4459
|
] });
|
|
4436
4460
|
});
|
|
4437
4461
|
Pagination.displayName = "Pagination";
|
|
4438
4462
|
var pagination_default = Pagination;
|
|
4439
|
-
var
|
|
4463
|
+
var paginationStyle = tv(
|
|
4440
4464
|
{
|
|
4441
4465
|
slots: {
|
|
4442
|
-
base: "flex items-center select-none",
|
|
4443
|
-
|
|
4444
|
-
|
|
4445
|
-
|
|
4446
|
-
|
|
4466
|
+
base: ["flex", "items-center", "select-none", "gap-[20px]"],
|
|
4467
|
+
wrapper: ["flex", "items-center", "overflow-hidden", "gap-[5px]"],
|
|
4468
|
+
icon: [
|
|
4469
|
+
"flex",
|
|
4470
|
+
"items-center",
|
|
4471
|
+
"justify-center",
|
|
4472
|
+
"cursor-pointer",
|
|
4473
|
+
"stroke-neutral-main",
|
|
4474
|
+
"data-[is-active=false]:stroke-neutral-light",
|
|
4475
|
+
"data-[is-active=false]:cursor-default"
|
|
4476
|
+
],
|
|
4477
|
+
button: [
|
|
4478
|
+
"flex",
|
|
4479
|
+
"items-center",
|
|
4480
|
+
"justify-center",
|
|
4481
|
+
"cursor-pointer",
|
|
4482
|
+
"transition",
|
|
4483
|
+
"duration-200",
|
|
4484
|
+
"px-[6px]",
|
|
4485
|
+
"py-[4px]",
|
|
4486
|
+
"text-neutral-main",
|
|
4487
|
+
"data-[selected=true]:font-bold"
|
|
4488
|
+
],
|
|
4489
|
+
label: ["whitespace-nowrap", "text-neutral-main", "flex", "items-center", "gap-[5px]", "text-sm"]
|
|
4447
4490
|
},
|
|
4448
4491
|
variants: {
|
|
4449
4492
|
variant: {
|
|
4450
4493
|
solid: {
|
|
4451
|
-
button: ["
|
|
4452
|
-
icon: "text-neutral-dark data-[is-active=false]:text-neutral-light data-[is-active=false]:cursor-default"
|
|
4494
|
+
button: ["rounded-[5px]", "border-transparent"]
|
|
4453
4495
|
},
|
|
4454
|
-
|
|
4455
|
-
|
|
4456
|
-
button: ["text-foreground"],
|
|
4457
|
-
icon: "text-foreground data-[is-active=false]:text-neutral-light data-[is-active=false]:cursor-default first-of-type:border-l-0"
|
|
4496
|
+
underline: {
|
|
4497
|
+
button: ["rounded-0", "border-transparent"]
|
|
4458
4498
|
}
|
|
4459
4499
|
},
|
|
4460
4500
|
size: {
|
|
4461
4501
|
sm: {
|
|
4462
|
-
|
|
4463
|
-
label: "min-w-[85px] text-sm mr-[10px]",
|
|
4464
|
-
icon: ["h-[15px] text-sm"],
|
|
4465
|
-
button: ["min-w-[28px] h-[15px] text-sm"]
|
|
4502
|
+
button: ["text-sm", "data-[selected=true]:border-sm"]
|
|
4466
4503
|
},
|
|
4467
4504
|
md: {
|
|
4468
|
-
|
|
4469
|
-
label: "min-w-[95px] text-md mr-[12px]",
|
|
4470
|
-
icon: ["h-[17px] text-md"],
|
|
4471
|
-
button: ["min-w-[32px] h-[17px] text-md"]
|
|
4505
|
+
button: ["text-md", "data-[selected=true]:border-md"]
|
|
4472
4506
|
},
|
|
4473
4507
|
lg: {
|
|
4474
|
-
|
|
4475
|
-
label: "min-w-[105px] text-lg mr-[14px]",
|
|
4476
|
-
icon: ["h-[20px] text-lg"],
|
|
4477
|
-
button: ["min-w-[37px] h-[20px] text-lg"]
|
|
4508
|
+
button: ["text-lg", "data-[selected=true]:border-lg"]
|
|
4478
4509
|
},
|
|
4479
4510
|
xl: {
|
|
4480
|
-
|
|
4481
|
-
label: "min-w-[105px] text-lg mr-[14px]",
|
|
4482
|
-
icon: ["h-[20px] text-lg"],
|
|
4483
|
-
button: ["min-w-[37px] h-[20px] text-lg"]
|
|
4511
|
+
button: ["text-xl", "data-[selected=true]:border-xl"]
|
|
4484
4512
|
}
|
|
4485
4513
|
},
|
|
4486
4514
|
color: {
|
|
4487
|
-
primary: {
|
|
4488
|
-
|
|
4489
|
-
}
|
|
4490
|
-
secondary: {
|
|
4491
|
-
label: "text-secondary-main"
|
|
4492
|
-
}
|
|
4515
|
+
primary: {},
|
|
4516
|
+
secondary: {},
|
|
4517
|
+
neutral: {}
|
|
4493
4518
|
},
|
|
4494
4519
|
isDisabled: {
|
|
4495
4520
|
true: {
|
|
4496
|
-
icon: "!text-neutral-light !cursor-default",
|
|
4497
|
-
button: "!text-neutral-light !cursor-default"
|
|
4521
|
+
icon: ["!text-neutral-light", "!cursor-default"],
|
|
4522
|
+
button: ["!text-neutral-light", "!cursor-default"]
|
|
4498
4523
|
}
|
|
4499
4524
|
}
|
|
4500
4525
|
},
|
|
4501
|
-
defaultVariants: {
|
|
4502
|
-
variant: "solid",
|
|
4503
|
-
color: "primary",
|
|
4504
|
-
size: "md",
|
|
4505
|
-
isDisabled: false
|
|
4506
|
-
},
|
|
4507
4526
|
compoundVariants: [
|
|
4508
4527
|
{
|
|
4509
4528
|
variant: "solid",
|
|
4510
4529
|
color: "primary",
|
|
4511
4530
|
class: {
|
|
4512
|
-
button:
|
|
4513
|
-
|
|
4531
|
+
button: [
|
|
4532
|
+
"hover:text-primary-main",
|
|
4533
|
+
"data-[selected=true]:text-primary-main",
|
|
4534
|
+
"data-[selected=true]:bg-primary-soft"
|
|
4535
|
+
],
|
|
4536
|
+
icon: ["hover:stroke-primary-main"]
|
|
4514
4537
|
}
|
|
4515
4538
|
},
|
|
4516
4539
|
{
|
|
4517
4540
|
variant: "solid",
|
|
4518
4541
|
color: "secondary",
|
|
4519
4542
|
class: {
|
|
4520
|
-
button:
|
|
4521
|
-
|
|
4522
|
-
|
|
4523
|
-
|
|
4524
|
-
|
|
4525
|
-
|
|
4526
|
-
size: "sm",
|
|
4527
|
-
class: {
|
|
4528
|
-
wrapper: "border rounded-sm gap-0",
|
|
4529
|
-
button: "!min-w-[40px] h-[20px] border-l",
|
|
4530
|
-
icon: "min-w-[40px] h-[20px] border-l"
|
|
4531
|
-
}
|
|
4532
|
-
},
|
|
4533
|
-
{
|
|
4534
|
-
variant: "line",
|
|
4535
|
-
size: "md",
|
|
4536
|
-
class: {
|
|
4537
|
-
wrapper: "border rounded-md gap-0",
|
|
4538
|
-
button: "!min-w-[45px] h-[22px] border-l",
|
|
4539
|
-
icon: "min-w-[45px] h-[22px] border-l"
|
|
4543
|
+
button: [
|
|
4544
|
+
"hover:text-secondary-main",
|
|
4545
|
+
"data-[selected=true]:text-secondary-main",
|
|
4546
|
+
"data-[selected=true]:bg-secondary-soft"
|
|
4547
|
+
],
|
|
4548
|
+
icon: ["hover:stroke-secondary-main"]
|
|
4540
4549
|
}
|
|
4541
4550
|
},
|
|
4542
4551
|
{
|
|
4543
|
-
variant: "
|
|
4544
|
-
|
|
4552
|
+
variant: "solid",
|
|
4553
|
+
color: "neutral",
|
|
4545
4554
|
class: {
|
|
4546
|
-
|
|
4547
|
-
|
|
4548
|
-
|
|
4555
|
+
button: [
|
|
4556
|
+
"hover:text-neutral-dark",
|
|
4557
|
+
"data-[selected=true]:text-neutral-dark",
|
|
4558
|
+
"data-[selected=true]:bg-neutral-soft"
|
|
4559
|
+
],
|
|
4560
|
+
icon: ["hover:stroke-neutral-main"]
|
|
4549
4561
|
}
|
|
4550
4562
|
},
|
|
4551
4563
|
{
|
|
4552
|
-
variant: "
|
|
4553
|
-
|
|
4564
|
+
variant: "underline",
|
|
4565
|
+
color: "primary",
|
|
4554
4566
|
class: {
|
|
4555
|
-
|
|
4556
|
-
|
|
4557
|
-
|
|
4567
|
+
button: [
|
|
4568
|
+
"hover:text-primary-main",
|
|
4569
|
+
"data-[selected=true]:text-primary-main",
|
|
4570
|
+
"data-[selected=true]:border-b-primary-main"
|
|
4571
|
+
],
|
|
4572
|
+
icon: ["hover:stroke-primary-main"]
|
|
4558
4573
|
}
|
|
4559
4574
|
},
|
|
4560
4575
|
{
|
|
4561
|
-
variant: "
|
|
4562
|
-
color: "
|
|
4576
|
+
variant: "underline",
|
|
4577
|
+
color: "secondary",
|
|
4563
4578
|
class: {
|
|
4564
|
-
|
|
4565
|
-
|
|
4566
|
-
|
|
4579
|
+
button: [
|
|
4580
|
+
"hover:text-secondary-main",
|
|
4581
|
+
"data-[selected=true]:text-secondary-main",
|
|
4582
|
+
"data-[selected=true]:border-b-secondary-main"
|
|
4583
|
+
],
|
|
4584
|
+
icon: ["hover:stroke-secondary-main"]
|
|
4567
4585
|
}
|
|
4568
4586
|
},
|
|
4569
4587
|
{
|
|
4570
|
-
variant: "
|
|
4571
|
-
color: "
|
|
4588
|
+
variant: "underline",
|
|
4589
|
+
color: "neutral",
|
|
4572
4590
|
class: {
|
|
4573
|
-
|
|
4574
|
-
|
|
4575
|
-
|
|
4591
|
+
button: [
|
|
4592
|
+
"hover:text-neutral-dark",
|
|
4593
|
+
"data-[selected=true]:text-neutral-dark",
|
|
4594
|
+
"data-[selected=true]:border-b-neutral-main"
|
|
4595
|
+
],
|
|
4596
|
+
icon: ["hover:stroke-neutral-main"]
|
|
4576
4597
|
}
|
|
4577
4598
|
}
|
|
4578
|
-
]
|
|
4599
|
+
],
|
|
4600
|
+
defaultVariants: {
|
|
4601
|
+
variant: "solid",
|
|
4602
|
+
color: "primary",
|
|
4603
|
+
size: "md",
|
|
4604
|
+
isDisabled: false
|
|
4605
|
+
}
|
|
4579
4606
|
},
|
|
4580
4607
|
{
|
|
4581
4608
|
twMerge: false
|
|
@@ -4583,6 +4610,5 @@ var pagination = tv(
|
|
|
4583
4610
|
);
|
|
4584
4611
|
// Annotate the CommonJS export names for ESM import in node:
|
|
4585
4612
|
0 && (module.exports = {
|
|
4586
|
-
|
|
4587
|
-
pagination
|
|
4613
|
+
paginationStyle
|
|
4588
4614
|
});
|