@deepnoid/ui 0.1.30 → 0.1.32

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.
Files changed (46) hide show
  1. package/.turbo/turbo-build.log +135 -135
  2. package/dist/chunk-62X5AX5B.mjs +297 -0
  3. package/dist/{chunk-VCVQMPC7.mjs → chunk-AIIMJZ7L.mjs} +69 -39
  4. package/dist/{chunk-NKH3OF6I.mjs → chunk-BCMVEGJG.mjs} +1 -1
  5. package/dist/{chunk-QM4ZSQYX.mjs → chunk-CVQM3T2X.mjs} +1 -1
  6. package/dist/{chunk-272FMLIL.mjs → chunk-IEJRE6LT.mjs} +7 -4
  7. package/dist/{chunk-CEZQCD6Z.mjs → chunk-LWRK5TPZ.mjs} +12 -11
  8. package/dist/{chunk-GLMM253Q.mjs → chunk-P67LLF3G.mjs} +5 -5
  9. package/dist/components/fileUpload/fileUpload.js +62 -39
  10. package/dist/components/fileUpload/fileUpload.mjs +2 -2
  11. package/dist/components/fileUpload/index.js +62 -39
  12. package/dist/components/fileUpload/index.mjs +2 -2
  13. package/dist/components/input/index.js +62 -39
  14. package/dist/components/input/index.mjs +1 -1
  15. package/dist/components/input/input.d.mts +21 -14
  16. package/dist/components/input/input.d.ts +21 -14
  17. package/dist/components/input/input.js +62 -39
  18. package/dist/components/input/input.mjs +1 -1
  19. package/dist/components/pagination/index.js +62 -39
  20. package/dist/components/pagination/index.mjs +2 -2
  21. package/dist/components/pagination/pagination.js +62 -39
  22. package/dist/components/pagination/pagination.mjs +2 -2
  23. package/dist/components/select/index.js +7 -4
  24. package/dist/components/select/index.mjs +1 -1
  25. package/dist/components/select/select.d.mts +9 -0
  26. package/dist/components/select/select.d.ts +9 -0
  27. package/dist/components/select/select.js +7 -4
  28. package/dist/components/select/select.mjs +1 -1
  29. package/dist/components/table/index.js +77 -53
  30. package/dist/components/table/index.mjs +4 -4
  31. package/dist/components/table/table-body.js +12 -11
  32. package/dist/components/table/table-body.mjs +1 -1
  33. package/dist/components/table/table.d.mts +2 -1
  34. package/dist/components/table/table.d.ts +2 -1
  35. package/dist/components/table/table.js +77 -53
  36. package/dist/components/table/table.mjs +4 -4
  37. package/dist/components/textarea/index.js +255 -138
  38. package/dist/components/textarea/index.mjs +2 -1
  39. package/dist/components/textarea/textarea.d.mts +157 -150
  40. package/dist/components/textarea/textarea.d.ts +157 -150
  41. package/dist/components/textarea/textarea.js +255 -138
  42. package/dist/components/textarea/textarea.mjs +2 -1
  43. package/dist/index.js +299 -195
  44. package/dist/index.mjs +7 -7
  45. package/package.json +1 -1
  46. package/dist/chunk-BKE6QF6W.mjs +0 -209
@@ -371,7 +371,7 @@ var usePagination = ({ currentPage, totalPage, groupSize, handleChangePage }) =>
371
371
  var usePagination_default = usePagination;
372
372
 
373
373
  // src/components/input/input.tsx
374
- var import_react2 = __toESM(require("react"));
374
+ var import_react2 = require("react");
375
375
 
376
376
  // src/components/icon/template.tsx
377
377
  var import_jsx_runtime = require("react/jsx-runtime");
@@ -4403,19 +4403,22 @@ var Input = (0, import_react2.forwardRef)((originalProps, ref) => {
4403
4403
  const slots = (0, import_react2.useMemo)(() => inputStyle({ ...variantProps }), [variantProps]);
4404
4404
  const getContentProps = (0, import_react2.useCallback)(
4405
4405
  () => ({
4406
- className: slots.content({ class: classNames == null ? void 0 : classNames.content }),
4406
+ className: clsx(
4407
+ slots.content({ class: classNames == null ? void 0 : classNames.content }),
4408
+ inputProps.readOnly ? slots.readonly({ class: classNames == null ? void 0 : classNames.readonly }) : ""
4409
+ ),
4407
4410
  size: originalProps.size
4408
4411
  }),
4409
4412
  [slots, classNames, originalProps.size]
4410
4413
  );
4411
4414
  const renderStartContent = () => {
4412
- if (import_react2.default.isValidElement(startContent)) {
4415
+ if ((0, import_react2.isValidElement)(startContent)) {
4413
4416
  const existingProps = startContent.props;
4414
4417
  const mergedProps = {
4415
4418
  ...getContentProps(),
4416
4419
  className: `${getContentProps().className || ""} ${existingProps.className || ""}`.trim()
4417
4420
  };
4418
- return import_react2.default.cloneElement(startContent, mergedProps);
4421
+ return (0, import_react2.cloneElement)(startContent, mergedProps);
4419
4422
  } else {
4420
4423
  const contentProps = getContentProps();
4421
4424
  return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { ...contentProps, children: startContent });
@@ -4434,13 +4437,13 @@ var Input = (0, import_react2.forwardRef)((originalProps, ref) => {
4434
4437
  }
4435
4438
  );
4436
4439
  const renderContentWithIcon = () => {
4437
- if (import_react2.default.isValidElement(endContent)) {
4440
+ if ((0, import_react2.isValidElement)(endContent)) {
4438
4441
  const existingProps = endContent.props;
4439
4442
  const mergedProps = {
4440
4443
  ...getContentProps(),
4441
4444
  className: `${getContentProps().className || ""} ${existingProps.className || ""}`.trim()
4442
4445
  };
4443
- return import_react2.default.cloneElement(endContent, mergedProps);
4446
+ return (0, import_react2.cloneElement)(endContent, mergedProps);
4444
4447
  } else if (errorMessage) {
4445
4448
  const iconProps = { ...getContentProps(), className: getContentProps().className };
4446
4449
  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 }) });
@@ -4475,20 +4478,17 @@ var Input = (0, import_react2.forwardRef)((originalProps, ref) => {
4475
4478
  {
4476
4479
  className: clsx(
4477
4480
  slots.inputWrapper({ class: classNames == null ? void 0 : classNames.inputWrapper }),
4478
- inputProps.readOnly ? slots.readonly({ class: classNames == null ? void 0 : classNames.readonly }) : ""
4481
+ inputProps.readOnly ? slots.readonlyWrapper({ class: classNames == null ? void 0 : classNames.readonlyWrapper }) : ""
4479
4482
  ),
4480
4483
  children: [
4481
4484
  startContent && renderStartContent(),
4482
4485
  /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
4483
4486
  "input",
4484
4487
  {
4485
- ...inputProps,
4486
4488
  ref: ref || inputRef,
4489
+ ...inputProps,
4487
4490
  readOnly: props.readOnly,
4488
- className: clsx(
4489
- slots.input({ class: classNames == null ? void 0 : classNames.input }),
4490
- inputProps.readOnly ? "!text-body-foreground placeholder:!text-body-foreground" : ""
4491
- ),
4491
+ className: clsx(slots.input({ class: classNames == null ? void 0 : classNames.input })),
4492
4492
  size: 0
4493
4493
  }
4494
4494
  ),
@@ -4496,7 +4496,16 @@ var Input = (0, import_react2.forwardRef)((originalProps, ref) => {
4496
4496
  ]
4497
4497
  }
4498
4498
  ),
4499
- helperMessage && !errorMessage && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("p", { className: slots.helperMessage({ class: classNames == null ? void 0 : classNames.helperMessage }), children: helperMessage }),
4499
+ helperMessage && !errorMessage && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
4500
+ "p",
4501
+ {
4502
+ className: clsx(
4503
+ slots.helperMessage({ class: classNames == null ? void 0 : classNames.helperMessage }),
4504
+ inputProps.readOnly ? slots.readonly({ class: classNames == null ? void 0 : classNames.readonly }) : ""
4505
+ ),
4506
+ children: helperMessage
4507
+ }
4508
+ ),
4500
4509
  errorMessage && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("p", { className: clsx("error", slots.errorMessage({ class: classNames == null ? void 0 : classNames.errorMessage })), children: errorMessage })
4501
4510
  ] })
4502
4511
  ]
@@ -4508,12 +4517,12 @@ var input_default = Input;
4508
4517
  var inputStyle = tv(
4509
4518
  {
4510
4519
  slots: {
4511
- base: ["group/input", "flex select-none"],
4520
+ base: ["group/input", "flex", "select-none"],
4512
4521
  vertical: ["flex-col"],
4513
4522
  horizon: ["flex-row", "gap-0"],
4514
4523
  label: ["flex", "items-center", "font-bold", "text-body-foreground", "min-w-[80px]"],
4515
4524
  innerWrapper: ["flex", "flex-col"],
4516
- inputWrapper: ["flex", "items-center", "duration-200", "group-has-[p.error]/input:bg-danger-soft"],
4525
+ inputWrapper: ["flex", "items-center", "duration-200", "group-has-[p.error]/input:!bg-danger-soft"],
4517
4526
  input: [
4518
4527
  "w-full",
4519
4528
  "h-full",
@@ -4522,8 +4531,8 @@ var inputStyle = tv(
4522
4531
  "placeholder:text-neutral-main",
4523
4532
  "outline-none",
4524
4533
  "focus:ring-0",
4525
- "group-has-[:hover]/input:text-neutral-dark",
4526
- "group-has-[:hover]/input:placeholder:text-neutral-dark",
4534
+ "group-has-[:hover]/input:!text-neutral-dark",
4535
+ "group-has-[:hover]/input:placeholder:!text-neutral-dark",
4527
4536
  "group-has-[:focus]/input:text-neutral-dark",
4528
4537
  "group-has-[:focus]/input:placeholder:text-neutral-dark",
4529
4538
  "group-has-[p.error]/input:text-danger-main",
@@ -4539,13 +4548,22 @@ var inputStyle = tv(
4539
4548
  ],
4540
4549
  helperMessage: ["text-neutral-main", "group-has-[:hover]/input:text-neutral-dark"],
4541
4550
  errorMessage: ["text-danger-main"],
4542
- readonly: ["pointer-events-none", "!text-body-foreground"]
4551
+ readonlyWrapper: [
4552
+ "pointer-events-none",
4553
+ "!text-body-foreground",
4554
+ "placeholder:!text-body-foreground",
4555
+ "group-has-[p.error]/input:!text-danger-main",
4556
+ "group-has-[p.error]/input:placeholder:!text-danger-main",
4557
+ "[&>input]:!text-body-foreground",
4558
+ "[&>input]:placeholder:!text-body-foreground"
4559
+ ],
4560
+ readonly: []
4543
4561
  },
4544
4562
  variants: {
4545
4563
  variant: {
4546
4564
  solid: {
4547
4565
  inputWrapper: ["border-transparent", "bg-trans-soft"],
4548
- readonly: ["!bg-trans-light"]
4566
+ readonlyWrapper: ["!bg-trans-light"]
4549
4567
  },
4550
4568
  outline: {
4551
4569
  inputWrapper: [
@@ -4554,7 +4572,7 @@ var inputStyle = tv(
4554
4572
  "group-has-[:focus]/input:bg-body-background",
4555
4573
  "group-has-[p.error]/input:border-danger-main"
4556
4574
  ],
4557
- readonly: ["!bg-trans-soft"]
4575
+ readonlyWrapper: ["!bg-trans-soft"]
4558
4576
  },
4559
4577
  underline: {
4560
4578
  inputWrapper: [
@@ -4564,30 +4582,31 @@ var inputStyle = tv(
4564
4582
  "group-has-[:focus]/input:bg-body-background",
4565
4583
  "group-has-[p.error]/input:border-danger-main"
4566
4584
  ],
4567
- readonly: ["!bg-trans-soft"]
4585
+ readonlyWrapper: ["!bg-trans-soft"]
4568
4586
  }
4569
4587
  },
4570
4588
  color: {
4571
4589
  primary: {
4572
4590
  content: [
4573
- "group-has-[:focus]/input:text-primary-main",
4574
- "!group-has-[p.error]:not(input:focus):hover/input:text-primary-main"
4591
+ "group-has-[:focus]/input:!text-primary-main",
4592
+ "group-has-[p.error]:not(input:focus):hover/input:!text-primary-main"
4575
4593
  ],
4576
4594
  helperMessage: [
4577
- "group-has-[:focus]/input:text-primary-main",
4578
- "group-has-[:focus:hover]/input:text-primary-main",
4579
- "group-has-[:focus]/input:hover:text-primary-main"
4580
- ]
4595
+ "group-has-[:focus]/input:!text-primary-main",
4596
+ "group-has-[:focus:hover]/input:!text-primary-main",
4597
+ "group-has-[:focus]/input:hover:!text-primary-main"
4598
+ ],
4599
+ readonly: ["!text-primary-main"]
4581
4600
  },
4582
4601
  secondary: {
4583
4602
  content: [
4584
- "group-has-[:focus]/input:text-secondary-main",
4585
- "!group-has-[p.error]:not(input:focus):hover/input:text-secondary-main"
4603
+ "group-has-[:focus]/input:!text-secondary-main",
4604
+ "group-has-[p.error]:not(input:focus):hover/input:!text-secondary-main"
4586
4605
  ],
4587
4606
  helperMessage: [
4588
- "group-has-[:focus]/input:text-secondary-main",
4589
- "group-has-[:focus:hover]/input:text-secondary-main",
4590
- "group-has-[:focus]/input:hover:text-secondary-main"
4607
+ "group-has-[:focus]/input:!text-secondary-main",
4608
+ "group-has-[:focus:hover]/input:!text-secondary-main",
4609
+ "group-has-[:focus]/input:hover:!text-secondary-main"
4591
4610
  ]
4592
4611
  }
4593
4612
  },
@@ -4638,14 +4657,14 @@ var inputStyle = tv(
4638
4657
  },
4639
4658
  disabled: {
4640
4659
  true: {
4641
- inputWrapper: ["!bg-neutral-soft", "pointer-events-none", "!group-has-[p.error]/input:text-danger-light"],
4660
+ inputWrapper: ["!bg-neutral-soft", "pointer-events-none", "group-has-[p.error]/input:!text-danger-light"],
4642
4661
  input: [
4643
- "text-neutral-light",
4644
- "placeholder:text-neutral-light",
4645
- "group-has-[p.error]/input:text-danger-light",
4646
- "group-has-[p.error]/input:placeholder:text-danger-light"
4662
+ "!text-neutral-light",
4663
+ "placeholder:!text-neutral-light",
4664
+ "group-has-[p.error]/input:!text-danger-light",
4665
+ "group-has-[p.error]/input:placeholder:!text-danger-light"
4647
4666
  ],
4648
- content: ["text-neutral-light", "group-has-[p.error]/input:text-danger-light"],
4667
+ content: ["!text-neutral-light", "group-has-[p.error]/input:text-danger-light"],
4649
4668
  helperMessage: ["!text-neutral-light"],
4650
4669
  errorMessage: ["!text-danger-light"]
4651
4670
  }
@@ -4712,7 +4731,11 @@ var inputStyle = tv(
4712
4731
  disabled: true,
4713
4732
  variant: ["outline", "underline"],
4714
4733
  class: {
4715
- inputWrapper: ["!bg-body-background", "group-has-[p.error]/input:border-danger-light"]
4734
+ inputWrapper: ["!bg-body-background", "group-has-[p.error]/input:!border-danger-light"],
4735
+ content: [
4736
+ "group-has-[p.error]/input:!text-danger-light",
4737
+ "group-has-[p.error]/input:placeholder:!text-danger-light"
4738
+ ]
4716
4739
  }
4717
4740
  }
4718
4741
  ],
@@ -2,10 +2,10 @@
2
2
  import {
3
3
  paginationStyle,
4
4
  pagination_default
5
- } from "../../chunk-QM4ZSQYX.mjs";
5
+ } from "../../chunk-CVQM3T2X.mjs";
6
6
  import "../../chunk-F3HENRVM.mjs";
7
7
  import "../../chunk-2GCSFWHD.mjs";
8
- import "../../chunk-VCVQMPC7.mjs";
8
+ import "../../chunk-AIIMJZ7L.mjs";
9
9
  import "../../chunk-ZYIIXWVY.mjs";
10
10
  import "../../chunk-2TKEWFGH.mjs";
11
11
  import "../../chunk-2SDYFOZL.mjs";
@@ -4585,13 +4585,16 @@ var select = tv({
4585
4585
  variants: {
4586
4586
  color: {
4587
4587
  primary: {
4588
- selectWrapper: ["hover:text-primary-main"],
4589
- option: ["hover:bg-primary-soft", "hover:text-primary-main"]
4588
+ selectWrapper: ["text-primary-main"],
4589
+ select: ["text-primary-main"],
4590
+ option: ["hover:bg-primary-soft", "hover:text-primary-main"],
4591
+ helperMessage: ["text-primary-main"]
4590
4592
  },
4591
4593
  secondary: {
4592
- selectWrapper: ["hover:text-secondary-main"],
4594
+ selectWrapper: ["text-secondary-main"],
4593
4595
  select: ["text-secondary-main"],
4594
- option: ["hover:bg-secondary-soft", "hover:text-secondary-main"]
4596
+ option: ["hover:bg-secondary-soft", "hover:text-secondary-main"],
4597
+ helperMessage: ["text-secondary-main"]
4595
4598
  }
4596
4599
  },
4597
4600
  size: {
@@ -2,7 +2,7 @@
2
2
  import "../../chunk-QCEKPS7U.mjs";
3
3
  import {
4
4
  select_default
5
- } from "../../chunk-272FMLIL.mjs";
5
+ } from "../../chunk-IEJRE6LT.mjs";
6
6
  import "../../chunk-ZYIIXWVY.mjs";
7
7
  import "../../chunk-2TKEWFGH.mjs";
8
8
  import "../../chunk-2SDYFOZL.mjs";
@@ -25,12 +25,15 @@ declare const select: tailwind_variants.TVReturnType<{
25
25
  color: {
26
26
  primary: {
27
27
  selectWrapper: string[];
28
+ select: string[];
28
29
  option: string[];
30
+ helperMessage: string[];
29
31
  };
30
32
  secondary: {
31
33
  selectWrapper: string[];
32
34
  select: string[];
33
35
  option: string[];
36
+ helperMessage: string[];
34
37
  };
35
38
  };
36
39
  size: {
@@ -116,12 +119,15 @@ declare const select: tailwind_variants.TVReturnType<{
116
119
  color: {
117
120
  primary: {
118
121
  selectWrapper: string[];
122
+ select: string[];
119
123
  option: string[];
124
+ helperMessage: string[];
120
125
  };
121
126
  secondary: {
122
127
  selectWrapper: string[];
123
128
  select: string[];
124
129
  option: string[];
130
+ helperMessage: string[];
125
131
  };
126
132
  };
127
133
  size: {
@@ -207,12 +213,15 @@ declare const select: tailwind_variants.TVReturnType<{
207
213
  color: {
208
214
  primary: {
209
215
  selectWrapper: string[];
216
+ select: string[];
210
217
  option: string[];
218
+ helperMessage: string[];
211
219
  };
212
220
  secondary: {
213
221
  selectWrapper: string[];
214
222
  select: string[];
215
223
  option: string[];
224
+ helperMessage: string[];
216
225
  };
217
226
  };
218
227
  size: {
@@ -25,12 +25,15 @@ declare const select: tailwind_variants.TVReturnType<{
25
25
  color: {
26
26
  primary: {
27
27
  selectWrapper: string[];
28
+ select: string[];
28
29
  option: string[];
30
+ helperMessage: string[];
29
31
  };
30
32
  secondary: {
31
33
  selectWrapper: string[];
32
34
  select: string[];
33
35
  option: string[];
36
+ helperMessage: string[];
34
37
  };
35
38
  };
36
39
  size: {
@@ -116,12 +119,15 @@ declare const select: tailwind_variants.TVReturnType<{
116
119
  color: {
117
120
  primary: {
118
121
  selectWrapper: string[];
122
+ select: string[];
119
123
  option: string[];
124
+ helperMessage: string[];
120
125
  };
121
126
  secondary: {
122
127
  selectWrapper: string[];
123
128
  select: string[];
124
129
  option: string[];
130
+ helperMessage: string[];
125
131
  };
126
132
  };
127
133
  size: {
@@ -207,12 +213,15 @@ declare const select: tailwind_variants.TVReturnType<{
207
213
  color: {
208
214
  primary: {
209
215
  selectWrapper: string[];
216
+ select: string[];
210
217
  option: string[];
218
+ helperMessage: string[];
211
219
  };
212
220
  secondary: {
213
221
  selectWrapper: string[];
214
222
  select: string[];
215
223
  option: string[];
224
+ helperMessage: string[];
216
225
  };
217
226
  };
218
227
  size: {
@@ -4583,13 +4583,16 @@ var select = tv({
4583
4583
  variants: {
4584
4584
  color: {
4585
4585
  primary: {
4586
- selectWrapper: ["hover:text-primary-main"],
4587
- option: ["hover:bg-primary-soft", "hover:text-primary-main"]
4586
+ selectWrapper: ["text-primary-main"],
4587
+ select: ["text-primary-main"],
4588
+ option: ["hover:bg-primary-soft", "hover:text-primary-main"],
4589
+ helperMessage: ["text-primary-main"]
4588
4590
  },
4589
4591
  secondary: {
4590
- selectWrapper: ["hover:text-secondary-main"],
4592
+ selectWrapper: ["text-secondary-main"],
4591
4593
  select: ["text-secondary-main"],
4592
- option: ["hover:bg-secondary-soft", "hover:text-secondary-main"]
4594
+ option: ["hover:bg-secondary-soft", "hover:text-secondary-main"],
4595
+ helperMessage: ["text-secondary-main"]
4593
4596
  }
4594
4597
  },
4595
4598
  size: {
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  select_default
4
- } from "../../chunk-272FMLIL.mjs";
4
+ } from "../../chunk-IEJRE6LT.mjs";
5
5
  import "../../chunk-ZYIIXWVY.mjs";
6
6
  import "../../chunk-2TKEWFGH.mjs";
7
7
  import "../../chunk-2SDYFOZL.mjs";