@deepnoid/ui 0.1.30 → 0.1.31
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 +136 -136
- package/dist/chunk-62X5AX5B.mjs +297 -0
- package/dist/{chunk-VCVQMPC7.mjs → chunk-AIIMJZ7L.mjs} +69 -39
- package/dist/{chunk-NKH3OF6I.mjs → chunk-BCMVEGJG.mjs} +1 -1
- package/dist/{chunk-QM4ZSQYX.mjs → chunk-CVQM3T2X.mjs} +1 -1
- package/dist/{chunk-GLMM253Q.mjs → chunk-EBRCE7XY.mjs} +2 -2
- package/dist/{chunk-272FMLIL.mjs → chunk-IEJRE6LT.mjs} +7 -4
- package/dist/{chunk-CEZQCD6Z.mjs → chunk-LWRK5TPZ.mjs} +12 -11
- package/dist/components/fileUpload/fileUpload.js +62 -39
- package/dist/components/fileUpload/fileUpload.mjs +2 -2
- package/dist/components/fileUpload/index.js +62 -39
- package/dist/components/fileUpload/index.mjs +2 -2
- package/dist/components/input/index.js +62 -39
- package/dist/components/input/index.mjs +1 -1
- package/dist/components/input/input.d.mts +21 -14
- package/dist/components/input/input.d.ts +21 -14
- package/dist/components/input/input.js +62 -39
- package/dist/components/input/input.mjs +1 -1
- package/dist/components/pagination/index.js +62 -39
- package/dist/components/pagination/index.mjs +2 -2
- package/dist/components/pagination/pagination.js +62 -39
- package/dist/components/pagination/pagination.mjs +2 -2
- package/dist/components/select/index.js +7 -4
- package/dist/components/select/index.mjs +1 -1
- package/dist/components/select/select.d.mts +9 -0
- package/dist/components/select/select.d.ts +9 -0
- package/dist/components/select/select.js +7 -4
- package/dist/components/select/select.mjs +1 -1
- package/dist/components/table/index.js +74 -50
- package/dist/components/table/index.mjs +4 -4
- package/dist/components/table/table-body.js +12 -11
- package/dist/components/table/table-body.mjs +1 -1
- package/dist/components/table/table.d.mts +2 -1
- package/dist/components/table/table.d.ts +2 -1
- package/dist/components/table/table.js +74 -50
- package/dist/components/table/table.mjs +4 -4
- package/dist/components/textarea/index.js +255 -138
- package/dist/components/textarea/index.mjs +2 -1
- package/dist/components/textarea/textarea.d.mts +157 -150
- package/dist/components/textarea/textarea.d.ts +157 -150
- package/dist/components/textarea/textarea.js +255 -138
- package/dist/components/textarea/textarea.mjs +2 -1
- package/dist/index.js +296 -192
- package/dist/index.mjs +7 -7
- package/package.json +1 -1
- package/dist/chunk-BKE6QF6W.mjs +0 -209
|
@@ -111,7 +111,7 @@ var import_react5 = require("react");
|
|
|
111
111
|
var import_tailwind_variants5 = require("tailwind-variants");
|
|
112
112
|
|
|
113
113
|
// src/components/input/input.tsx
|
|
114
|
-
var import_react =
|
|
114
|
+
var import_react = require("react");
|
|
115
115
|
|
|
116
116
|
// src/components/icon/template.tsx
|
|
117
117
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
@@ -4380,19 +4380,22 @@ var Input = (0, import_react.forwardRef)((originalProps, ref) => {
|
|
|
4380
4380
|
const slots = (0, import_react.useMemo)(() => inputStyle({ ...variantProps }), [variantProps]);
|
|
4381
4381
|
const getContentProps = (0, import_react.useCallback)(
|
|
4382
4382
|
() => ({
|
|
4383
|
-
className:
|
|
4383
|
+
className: clsx(
|
|
4384
|
+
slots.content({ class: classNames == null ? void 0 : classNames.content }),
|
|
4385
|
+
inputProps.readOnly ? slots.readonly({ class: classNames == null ? void 0 : classNames.readonly }) : ""
|
|
4386
|
+
),
|
|
4384
4387
|
size: originalProps.size
|
|
4385
4388
|
}),
|
|
4386
4389
|
[slots, classNames, originalProps.size]
|
|
4387
4390
|
);
|
|
4388
4391
|
const renderStartContent = () => {
|
|
4389
|
-
if (import_react.
|
|
4392
|
+
if ((0, import_react.isValidElement)(startContent)) {
|
|
4390
4393
|
const existingProps = startContent.props;
|
|
4391
4394
|
const mergedProps = {
|
|
4392
4395
|
...getContentProps(),
|
|
4393
4396
|
className: `${getContentProps().className || ""} ${existingProps.className || ""}`.trim()
|
|
4394
4397
|
};
|
|
4395
|
-
return import_react.
|
|
4398
|
+
return (0, import_react.cloneElement)(startContent, mergedProps);
|
|
4396
4399
|
} else {
|
|
4397
4400
|
const contentProps = getContentProps();
|
|
4398
4401
|
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { ...contentProps, children: startContent });
|
|
@@ -4411,13 +4414,13 @@ var Input = (0, import_react.forwardRef)((originalProps, ref) => {
|
|
|
4411
4414
|
}
|
|
4412
4415
|
);
|
|
4413
4416
|
const renderContentWithIcon = () => {
|
|
4414
|
-
if (import_react.
|
|
4417
|
+
if ((0, import_react.isValidElement)(endContent)) {
|
|
4415
4418
|
const existingProps = endContent.props;
|
|
4416
4419
|
const mergedProps = {
|
|
4417
4420
|
...getContentProps(),
|
|
4418
4421
|
className: `${getContentProps().className || ""} ${existingProps.className || ""}`.trim()
|
|
4419
4422
|
};
|
|
4420
|
-
return import_react.
|
|
4423
|
+
return (0, import_react.cloneElement)(endContent, mergedProps);
|
|
4421
4424
|
} else if (errorMessage) {
|
|
4422
4425
|
const iconProps = { ...getContentProps(), className: getContentProps().className };
|
|
4423
4426
|
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 }) });
|
|
@@ -4452,20 +4455,17 @@ var Input = (0, import_react.forwardRef)((originalProps, ref) => {
|
|
|
4452
4455
|
{
|
|
4453
4456
|
className: clsx(
|
|
4454
4457
|
slots.inputWrapper({ class: classNames == null ? void 0 : classNames.inputWrapper }),
|
|
4455
|
-
inputProps.readOnly ? slots.
|
|
4458
|
+
inputProps.readOnly ? slots.readonlyWrapper({ class: classNames == null ? void 0 : classNames.readonlyWrapper }) : ""
|
|
4456
4459
|
),
|
|
4457
4460
|
children: [
|
|
4458
4461
|
startContent && renderStartContent(),
|
|
4459
4462
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
4460
4463
|
"input",
|
|
4461
4464
|
{
|
|
4462
|
-
...inputProps,
|
|
4463
4465
|
ref: ref || inputRef,
|
|
4466
|
+
...inputProps,
|
|
4464
4467
|
readOnly: props.readOnly,
|
|
4465
|
-
className: clsx(
|
|
4466
|
-
slots.input({ class: classNames == null ? void 0 : classNames.input }),
|
|
4467
|
-
inputProps.readOnly ? "!text-body-foreground placeholder:!text-body-foreground" : ""
|
|
4468
|
-
),
|
|
4468
|
+
className: clsx(slots.input({ class: classNames == null ? void 0 : classNames.input })),
|
|
4469
4469
|
size: 0
|
|
4470
4470
|
}
|
|
4471
4471
|
),
|
|
@@ -4473,7 +4473,16 @@ var Input = (0, import_react.forwardRef)((originalProps, ref) => {
|
|
|
4473
4473
|
]
|
|
4474
4474
|
}
|
|
4475
4475
|
),
|
|
4476
|
-
helperMessage && !errorMessage && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
4476
|
+
helperMessage && !errorMessage && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
4477
|
+
"p",
|
|
4478
|
+
{
|
|
4479
|
+
className: clsx(
|
|
4480
|
+
slots.helperMessage({ class: classNames == null ? void 0 : classNames.helperMessage }),
|
|
4481
|
+
inputProps.readOnly ? slots.readonly({ class: classNames == null ? void 0 : classNames.readonly }) : ""
|
|
4482
|
+
),
|
|
4483
|
+
children: helperMessage
|
|
4484
|
+
}
|
|
4485
|
+
),
|
|
4477
4486
|
errorMessage && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("p", { className: clsx("error", slots.errorMessage({ class: classNames == null ? void 0 : classNames.errorMessage })), children: errorMessage })
|
|
4478
4487
|
] })
|
|
4479
4488
|
]
|
|
@@ -4485,12 +4494,12 @@ var input_default = Input;
|
|
|
4485
4494
|
var inputStyle = tv(
|
|
4486
4495
|
{
|
|
4487
4496
|
slots: {
|
|
4488
|
-
base: ["group/input", "flex select-none"],
|
|
4497
|
+
base: ["group/input", "flex", "select-none"],
|
|
4489
4498
|
vertical: ["flex-col"],
|
|
4490
4499
|
horizon: ["flex-row", "gap-0"],
|
|
4491
4500
|
label: ["flex", "items-center", "font-bold", "text-body-foreground", "min-w-[80px]"],
|
|
4492
4501
|
innerWrapper: ["flex", "flex-col"],
|
|
4493
|
-
inputWrapper: ["flex", "items-center", "duration-200", "group-has-[p.error]/input
|
|
4502
|
+
inputWrapper: ["flex", "items-center", "duration-200", "group-has-[p.error]/input:!bg-danger-soft"],
|
|
4494
4503
|
input: [
|
|
4495
4504
|
"w-full",
|
|
4496
4505
|
"h-full",
|
|
@@ -4499,8 +4508,8 @@ var inputStyle = tv(
|
|
|
4499
4508
|
"placeholder:text-neutral-main",
|
|
4500
4509
|
"outline-none",
|
|
4501
4510
|
"focus:ring-0",
|
|
4502
|
-
"group-has-[:hover]/input
|
|
4503
|
-
"group-has-[:hover]/input:placeholder
|
|
4511
|
+
"group-has-[:hover]/input:!text-neutral-dark",
|
|
4512
|
+
"group-has-[:hover]/input:placeholder:!text-neutral-dark",
|
|
4504
4513
|
"group-has-[:focus]/input:text-neutral-dark",
|
|
4505
4514
|
"group-has-[:focus]/input:placeholder:text-neutral-dark",
|
|
4506
4515
|
"group-has-[p.error]/input:text-danger-main",
|
|
@@ -4516,13 +4525,22 @@ var inputStyle = tv(
|
|
|
4516
4525
|
],
|
|
4517
4526
|
helperMessage: ["text-neutral-main", "group-has-[:hover]/input:text-neutral-dark"],
|
|
4518
4527
|
errorMessage: ["text-danger-main"],
|
|
4519
|
-
|
|
4528
|
+
readonlyWrapper: [
|
|
4529
|
+
"pointer-events-none",
|
|
4530
|
+
"!text-body-foreground",
|
|
4531
|
+
"placeholder:!text-body-foreground",
|
|
4532
|
+
"group-has-[p.error]/input:!text-danger-main",
|
|
4533
|
+
"group-has-[p.error]/input:placeholder:!text-danger-main",
|
|
4534
|
+
"[&>input]:!text-body-foreground",
|
|
4535
|
+
"[&>input]:placeholder:!text-body-foreground"
|
|
4536
|
+
],
|
|
4537
|
+
readonly: []
|
|
4520
4538
|
},
|
|
4521
4539
|
variants: {
|
|
4522
4540
|
variant: {
|
|
4523
4541
|
solid: {
|
|
4524
4542
|
inputWrapper: ["border-transparent", "bg-trans-soft"],
|
|
4525
|
-
|
|
4543
|
+
readonlyWrapper: ["!bg-trans-light"]
|
|
4526
4544
|
},
|
|
4527
4545
|
outline: {
|
|
4528
4546
|
inputWrapper: [
|
|
@@ -4531,7 +4549,7 @@ var inputStyle = tv(
|
|
|
4531
4549
|
"group-has-[:focus]/input:bg-body-background",
|
|
4532
4550
|
"group-has-[p.error]/input:border-danger-main"
|
|
4533
4551
|
],
|
|
4534
|
-
|
|
4552
|
+
readonlyWrapper: ["!bg-trans-soft"]
|
|
4535
4553
|
},
|
|
4536
4554
|
underline: {
|
|
4537
4555
|
inputWrapper: [
|
|
@@ -4541,30 +4559,31 @@ var inputStyle = tv(
|
|
|
4541
4559
|
"group-has-[:focus]/input:bg-body-background",
|
|
4542
4560
|
"group-has-[p.error]/input:border-danger-main"
|
|
4543
4561
|
],
|
|
4544
|
-
|
|
4562
|
+
readonlyWrapper: ["!bg-trans-soft"]
|
|
4545
4563
|
}
|
|
4546
4564
|
},
|
|
4547
4565
|
color: {
|
|
4548
4566
|
primary: {
|
|
4549
4567
|
content: [
|
|
4550
|
-
"group-has-[:focus]/input
|
|
4551
|
-
"
|
|
4568
|
+
"group-has-[:focus]/input:!text-primary-main",
|
|
4569
|
+
"group-has-[p.error]:not(input:focus):hover/input:!text-primary-main"
|
|
4552
4570
|
],
|
|
4553
4571
|
helperMessage: [
|
|
4554
|
-
"group-has-[:focus]/input
|
|
4555
|
-
"group-has-[:focus:hover]/input
|
|
4556
|
-
"group-has-[:focus]/input:hover
|
|
4557
|
-
]
|
|
4572
|
+
"group-has-[:focus]/input:!text-primary-main",
|
|
4573
|
+
"group-has-[:focus:hover]/input:!text-primary-main",
|
|
4574
|
+
"group-has-[:focus]/input:hover:!text-primary-main"
|
|
4575
|
+
],
|
|
4576
|
+
readonly: ["!text-primary-main"]
|
|
4558
4577
|
},
|
|
4559
4578
|
secondary: {
|
|
4560
4579
|
content: [
|
|
4561
|
-
"group-has-[:focus]/input
|
|
4562
|
-
"
|
|
4580
|
+
"group-has-[:focus]/input:!text-secondary-main",
|
|
4581
|
+
"group-has-[p.error]:not(input:focus):hover/input:!text-secondary-main"
|
|
4563
4582
|
],
|
|
4564
4583
|
helperMessage: [
|
|
4565
|
-
"group-has-[:focus]/input
|
|
4566
|
-
"group-has-[:focus:hover]/input
|
|
4567
|
-
"group-has-[:focus]/input:hover
|
|
4584
|
+
"group-has-[:focus]/input:!text-secondary-main",
|
|
4585
|
+
"group-has-[:focus:hover]/input:!text-secondary-main",
|
|
4586
|
+
"group-has-[:focus]/input:hover:!text-secondary-main"
|
|
4568
4587
|
]
|
|
4569
4588
|
}
|
|
4570
4589
|
},
|
|
@@ -4615,14 +4634,14 @@ var inputStyle = tv(
|
|
|
4615
4634
|
},
|
|
4616
4635
|
disabled: {
|
|
4617
4636
|
true: {
|
|
4618
|
-
inputWrapper: ["!bg-neutral-soft", "pointer-events-none", "
|
|
4637
|
+
inputWrapper: ["!bg-neutral-soft", "pointer-events-none", "group-has-[p.error]/input:!text-danger-light"],
|
|
4619
4638
|
input: [
|
|
4620
|
-
"text-neutral-light",
|
|
4621
|
-
"placeholder
|
|
4622
|
-
"group-has-[p.error]/input
|
|
4623
|
-
"group-has-[p.error]/input:placeholder
|
|
4639
|
+
"!text-neutral-light",
|
|
4640
|
+
"placeholder:!text-neutral-light",
|
|
4641
|
+
"group-has-[p.error]/input:!text-danger-light",
|
|
4642
|
+
"group-has-[p.error]/input:placeholder:!text-danger-light"
|
|
4624
4643
|
],
|
|
4625
|
-
content: ["text-neutral-light", "group-has-[p.error]/input:text-danger-light"],
|
|
4644
|
+
content: ["!text-neutral-light", "group-has-[p.error]/input:text-danger-light"],
|
|
4626
4645
|
helperMessage: ["!text-neutral-light"],
|
|
4627
4646
|
errorMessage: ["!text-danger-light"]
|
|
4628
4647
|
}
|
|
@@ -4689,7 +4708,11 @@ var inputStyle = tv(
|
|
|
4689
4708
|
disabled: true,
|
|
4690
4709
|
variant: ["outline", "underline"],
|
|
4691
4710
|
class: {
|
|
4692
|
-
inputWrapper: ["!bg-body-background", "group-has-[p.error]/input
|
|
4711
|
+
inputWrapper: ["!bg-body-background", "group-has-[p.error]/input:!border-danger-light"],
|
|
4712
|
+
content: [
|
|
4713
|
+
"group-has-[p.error]/input:!text-danger-light",
|
|
4714
|
+
"group-has-[p.error]/input:placeholder:!text-danger-light"
|
|
4715
|
+
]
|
|
4693
4716
|
}
|
|
4694
4717
|
}
|
|
4695
4718
|
],
|
|
@@ -3,9 +3,9 @@ import {
|
|
|
3
3
|
FileUpload,
|
|
4
4
|
fileUploadStyle,
|
|
5
5
|
fileUpload_default
|
|
6
|
-
} from "../../chunk-
|
|
6
|
+
} from "../../chunk-BCMVEGJG.mjs";
|
|
7
7
|
import "../../chunk-2GCSFWHD.mjs";
|
|
8
|
-
import "../../chunk-
|
|
8
|
+
import "../../chunk-AIIMJZ7L.mjs";
|
|
9
9
|
import "../../chunk-MY5U63QO.mjs";
|
|
10
10
|
import "../../chunk-LPZOH3RP.mjs";
|
|
11
11
|
import "../../chunk-UB4YBFOT.mjs";
|
|
@@ -111,7 +111,7 @@ var import_react5 = require("react");
|
|
|
111
111
|
var import_tailwind_variants5 = require("tailwind-variants");
|
|
112
112
|
|
|
113
113
|
// src/components/input/input.tsx
|
|
114
|
-
var import_react =
|
|
114
|
+
var import_react = require("react");
|
|
115
115
|
|
|
116
116
|
// src/components/icon/template.tsx
|
|
117
117
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
@@ -4380,19 +4380,22 @@ var Input = (0, import_react.forwardRef)((originalProps, ref) => {
|
|
|
4380
4380
|
const slots = (0, import_react.useMemo)(() => inputStyle({ ...variantProps }), [variantProps]);
|
|
4381
4381
|
const getContentProps = (0, import_react.useCallback)(
|
|
4382
4382
|
() => ({
|
|
4383
|
-
className:
|
|
4383
|
+
className: clsx(
|
|
4384
|
+
slots.content({ class: classNames == null ? void 0 : classNames.content }),
|
|
4385
|
+
inputProps.readOnly ? slots.readonly({ class: classNames == null ? void 0 : classNames.readonly }) : ""
|
|
4386
|
+
),
|
|
4384
4387
|
size: originalProps.size
|
|
4385
4388
|
}),
|
|
4386
4389
|
[slots, classNames, originalProps.size]
|
|
4387
4390
|
);
|
|
4388
4391
|
const renderStartContent = () => {
|
|
4389
|
-
if (import_react.
|
|
4392
|
+
if ((0, import_react.isValidElement)(startContent)) {
|
|
4390
4393
|
const existingProps = startContent.props;
|
|
4391
4394
|
const mergedProps = {
|
|
4392
4395
|
...getContentProps(),
|
|
4393
4396
|
className: `${getContentProps().className || ""} ${existingProps.className || ""}`.trim()
|
|
4394
4397
|
};
|
|
4395
|
-
return import_react.
|
|
4398
|
+
return (0, import_react.cloneElement)(startContent, mergedProps);
|
|
4396
4399
|
} else {
|
|
4397
4400
|
const contentProps = getContentProps();
|
|
4398
4401
|
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { ...contentProps, children: startContent });
|
|
@@ -4411,13 +4414,13 @@ var Input = (0, import_react.forwardRef)((originalProps, ref) => {
|
|
|
4411
4414
|
}
|
|
4412
4415
|
);
|
|
4413
4416
|
const renderContentWithIcon = () => {
|
|
4414
|
-
if (import_react.
|
|
4417
|
+
if ((0, import_react.isValidElement)(endContent)) {
|
|
4415
4418
|
const existingProps = endContent.props;
|
|
4416
4419
|
const mergedProps = {
|
|
4417
4420
|
...getContentProps(),
|
|
4418
4421
|
className: `${getContentProps().className || ""} ${existingProps.className || ""}`.trim()
|
|
4419
4422
|
};
|
|
4420
|
-
return import_react.
|
|
4423
|
+
return (0, import_react.cloneElement)(endContent, mergedProps);
|
|
4421
4424
|
} else if (errorMessage) {
|
|
4422
4425
|
const iconProps = { ...getContentProps(), className: getContentProps().className };
|
|
4423
4426
|
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 }) });
|
|
@@ -4452,20 +4455,17 @@ var Input = (0, import_react.forwardRef)((originalProps, ref) => {
|
|
|
4452
4455
|
{
|
|
4453
4456
|
className: clsx(
|
|
4454
4457
|
slots.inputWrapper({ class: classNames == null ? void 0 : classNames.inputWrapper }),
|
|
4455
|
-
inputProps.readOnly ? slots.
|
|
4458
|
+
inputProps.readOnly ? slots.readonlyWrapper({ class: classNames == null ? void 0 : classNames.readonlyWrapper }) : ""
|
|
4456
4459
|
),
|
|
4457
4460
|
children: [
|
|
4458
4461
|
startContent && renderStartContent(),
|
|
4459
4462
|
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
4460
4463
|
"input",
|
|
4461
4464
|
{
|
|
4462
|
-
...inputProps,
|
|
4463
4465
|
ref: ref || inputRef,
|
|
4466
|
+
...inputProps,
|
|
4464
4467
|
readOnly: props.readOnly,
|
|
4465
|
-
className: clsx(
|
|
4466
|
-
slots.input({ class: classNames == null ? void 0 : classNames.input }),
|
|
4467
|
-
inputProps.readOnly ? "!text-body-foreground placeholder:!text-body-foreground" : ""
|
|
4468
|
-
),
|
|
4468
|
+
className: clsx(slots.input({ class: classNames == null ? void 0 : classNames.input })),
|
|
4469
4469
|
size: 0
|
|
4470
4470
|
}
|
|
4471
4471
|
),
|
|
@@ -4473,7 +4473,16 @@ var Input = (0, import_react.forwardRef)((originalProps, ref) => {
|
|
|
4473
4473
|
]
|
|
4474
4474
|
}
|
|
4475
4475
|
),
|
|
4476
|
-
helperMessage && !errorMessage && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
4476
|
+
helperMessage && !errorMessage && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
4477
|
+
"p",
|
|
4478
|
+
{
|
|
4479
|
+
className: clsx(
|
|
4480
|
+
slots.helperMessage({ class: classNames == null ? void 0 : classNames.helperMessage }),
|
|
4481
|
+
inputProps.readOnly ? slots.readonly({ class: classNames == null ? void 0 : classNames.readonly }) : ""
|
|
4482
|
+
),
|
|
4483
|
+
children: helperMessage
|
|
4484
|
+
}
|
|
4485
|
+
),
|
|
4477
4486
|
errorMessage && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("p", { className: clsx("error", slots.errorMessage({ class: classNames == null ? void 0 : classNames.errorMessage })), children: errorMessage })
|
|
4478
4487
|
] })
|
|
4479
4488
|
]
|
|
@@ -4485,12 +4494,12 @@ var input_default = Input;
|
|
|
4485
4494
|
var inputStyle = tv(
|
|
4486
4495
|
{
|
|
4487
4496
|
slots: {
|
|
4488
|
-
base: ["group/input", "flex select-none"],
|
|
4497
|
+
base: ["group/input", "flex", "select-none"],
|
|
4489
4498
|
vertical: ["flex-col"],
|
|
4490
4499
|
horizon: ["flex-row", "gap-0"],
|
|
4491
4500
|
label: ["flex", "items-center", "font-bold", "text-body-foreground", "min-w-[80px]"],
|
|
4492
4501
|
innerWrapper: ["flex", "flex-col"],
|
|
4493
|
-
inputWrapper: ["flex", "items-center", "duration-200", "group-has-[p.error]/input
|
|
4502
|
+
inputWrapper: ["flex", "items-center", "duration-200", "group-has-[p.error]/input:!bg-danger-soft"],
|
|
4494
4503
|
input: [
|
|
4495
4504
|
"w-full",
|
|
4496
4505
|
"h-full",
|
|
@@ -4499,8 +4508,8 @@ var inputStyle = tv(
|
|
|
4499
4508
|
"placeholder:text-neutral-main",
|
|
4500
4509
|
"outline-none",
|
|
4501
4510
|
"focus:ring-0",
|
|
4502
|
-
"group-has-[:hover]/input
|
|
4503
|
-
"group-has-[:hover]/input:placeholder
|
|
4511
|
+
"group-has-[:hover]/input:!text-neutral-dark",
|
|
4512
|
+
"group-has-[:hover]/input:placeholder:!text-neutral-dark",
|
|
4504
4513
|
"group-has-[:focus]/input:text-neutral-dark",
|
|
4505
4514
|
"group-has-[:focus]/input:placeholder:text-neutral-dark",
|
|
4506
4515
|
"group-has-[p.error]/input:text-danger-main",
|
|
@@ -4516,13 +4525,22 @@ var inputStyle = tv(
|
|
|
4516
4525
|
],
|
|
4517
4526
|
helperMessage: ["text-neutral-main", "group-has-[:hover]/input:text-neutral-dark"],
|
|
4518
4527
|
errorMessage: ["text-danger-main"],
|
|
4519
|
-
|
|
4528
|
+
readonlyWrapper: [
|
|
4529
|
+
"pointer-events-none",
|
|
4530
|
+
"!text-body-foreground",
|
|
4531
|
+
"placeholder:!text-body-foreground",
|
|
4532
|
+
"group-has-[p.error]/input:!text-danger-main",
|
|
4533
|
+
"group-has-[p.error]/input:placeholder:!text-danger-main",
|
|
4534
|
+
"[&>input]:!text-body-foreground",
|
|
4535
|
+
"[&>input]:placeholder:!text-body-foreground"
|
|
4536
|
+
],
|
|
4537
|
+
readonly: []
|
|
4520
4538
|
},
|
|
4521
4539
|
variants: {
|
|
4522
4540
|
variant: {
|
|
4523
4541
|
solid: {
|
|
4524
4542
|
inputWrapper: ["border-transparent", "bg-trans-soft"],
|
|
4525
|
-
|
|
4543
|
+
readonlyWrapper: ["!bg-trans-light"]
|
|
4526
4544
|
},
|
|
4527
4545
|
outline: {
|
|
4528
4546
|
inputWrapper: [
|
|
@@ -4531,7 +4549,7 @@ var inputStyle = tv(
|
|
|
4531
4549
|
"group-has-[:focus]/input:bg-body-background",
|
|
4532
4550
|
"group-has-[p.error]/input:border-danger-main"
|
|
4533
4551
|
],
|
|
4534
|
-
|
|
4552
|
+
readonlyWrapper: ["!bg-trans-soft"]
|
|
4535
4553
|
},
|
|
4536
4554
|
underline: {
|
|
4537
4555
|
inputWrapper: [
|
|
@@ -4541,30 +4559,31 @@ var inputStyle = tv(
|
|
|
4541
4559
|
"group-has-[:focus]/input:bg-body-background",
|
|
4542
4560
|
"group-has-[p.error]/input:border-danger-main"
|
|
4543
4561
|
],
|
|
4544
|
-
|
|
4562
|
+
readonlyWrapper: ["!bg-trans-soft"]
|
|
4545
4563
|
}
|
|
4546
4564
|
},
|
|
4547
4565
|
color: {
|
|
4548
4566
|
primary: {
|
|
4549
4567
|
content: [
|
|
4550
|
-
"group-has-[:focus]/input
|
|
4551
|
-
"
|
|
4568
|
+
"group-has-[:focus]/input:!text-primary-main",
|
|
4569
|
+
"group-has-[p.error]:not(input:focus):hover/input:!text-primary-main"
|
|
4552
4570
|
],
|
|
4553
4571
|
helperMessage: [
|
|
4554
|
-
"group-has-[:focus]/input
|
|
4555
|
-
"group-has-[:focus:hover]/input
|
|
4556
|
-
"group-has-[:focus]/input:hover
|
|
4557
|
-
]
|
|
4572
|
+
"group-has-[:focus]/input:!text-primary-main",
|
|
4573
|
+
"group-has-[:focus:hover]/input:!text-primary-main",
|
|
4574
|
+
"group-has-[:focus]/input:hover:!text-primary-main"
|
|
4575
|
+
],
|
|
4576
|
+
readonly: ["!text-primary-main"]
|
|
4558
4577
|
},
|
|
4559
4578
|
secondary: {
|
|
4560
4579
|
content: [
|
|
4561
|
-
"group-has-[:focus]/input
|
|
4562
|
-
"
|
|
4580
|
+
"group-has-[:focus]/input:!text-secondary-main",
|
|
4581
|
+
"group-has-[p.error]:not(input:focus):hover/input:!text-secondary-main"
|
|
4563
4582
|
],
|
|
4564
4583
|
helperMessage: [
|
|
4565
|
-
"group-has-[:focus]/input
|
|
4566
|
-
"group-has-[:focus:hover]/input
|
|
4567
|
-
"group-has-[:focus]/input:hover
|
|
4584
|
+
"group-has-[:focus]/input:!text-secondary-main",
|
|
4585
|
+
"group-has-[:focus:hover]/input:!text-secondary-main",
|
|
4586
|
+
"group-has-[:focus]/input:hover:!text-secondary-main"
|
|
4568
4587
|
]
|
|
4569
4588
|
}
|
|
4570
4589
|
},
|
|
@@ -4615,14 +4634,14 @@ var inputStyle = tv(
|
|
|
4615
4634
|
},
|
|
4616
4635
|
disabled: {
|
|
4617
4636
|
true: {
|
|
4618
|
-
inputWrapper: ["!bg-neutral-soft", "pointer-events-none", "
|
|
4637
|
+
inputWrapper: ["!bg-neutral-soft", "pointer-events-none", "group-has-[p.error]/input:!text-danger-light"],
|
|
4619
4638
|
input: [
|
|
4620
|
-
"text-neutral-light",
|
|
4621
|
-
"placeholder
|
|
4622
|
-
"group-has-[p.error]/input
|
|
4623
|
-
"group-has-[p.error]/input:placeholder
|
|
4639
|
+
"!text-neutral-light",
|
|
4640
|
+
"placeholder:!text-neutral-light",
|
|
4641
|
+
"group-has-[p.error]/input:!text-danger-light",
|
|
4642
|
+
"group-has-[p.error]/input:placeholder:!text-danger-light"
|
|
4624
4643
|
],
|
|
4625
|
-
content: ["text-neutral-light", "group-has-[p.error]/input:text-danger-light"],
|
|
4644
|
+
content: ["!text-neutral-light", "group-has-[p.error]/input:text-danger-light"],
|
|
4626
4645
|
helperMessage: ["!text-neutral-light"],
|
|
4627
4646
|
errorMessage: ["!text-danger-light"]
|
|
4628
4647
|
}
|
|
@@ -4689,7 +4708,11 @@ var inputStyle = tv(
|
|
|
4689
4708
|
disabled: true,
|
|
4690
4709
|
variant: ["outline", "underline"],
|
|
4691
4710
|
class: {
|
|
4692
|
-
inputWrapper: ["!bg-body-background", "group-has-[p.error]/input
|
|
4711
|
+
inputWrapper: ["!bg-body-background", "group-has-[p.error]/input:!border-danger-light"],
|
|
4712
|
+
content: [
|
|
4713
|
+
"group-has-[p.error]/input:!text-danger-light",
|
|
4714
|
+
"group-has-[p.error]/input:placeholder:!text-danger-light"
|
|
4715
|
+
]
|
|
4693
4716
|
}
|
|
4694
4717
|
}
|
|
4695
4718
|
],
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import "../../chunk-RLXOHILK.mjs";
|
|
3
3
|
import {
|
|
4
4
|
fileUpload_default
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-BCMVEGJG.mjs";
|
|
6
6
|
import "../../chunk-2GCSFWHD.mjs";
|
|
7
|
-
import "../../chunk-
|
|
7
|
+
import "../../chunk-AIIMJZ7L.mjs";
|
|
8
8
|
import "../../chunk-MY5U63QO.mjs";
|
|
9
9
|
import "../../chunk-LPZOH3RP.mjs";
|
|
10
10
|
import "../../chunk-UB4YBFOT.mjs";
|