@deepnoid/ui 0.1.98 → 0.1.100

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 (32) hide show
  1. package/.turbo/turbo-build.log +163 -163
  2. package/dist/{chunk-C5FUPNE4.mjs → chunk-AATFH6PB.mjs} +29 -12
  3. package/dist/{chunk-VFFLJN5N.mjs → chunk-FESRJFPF.mjs} +30 -6
  4. package/dist/{chunk-45N5ZAIJ.mjs → chunk-JN6ELUAT.mjs} +1 -1
  5. package/dist/{chunk-VIEBF2WH.mjs → chunk-ZAHEKJIU.mjs} +1 -1
  6. package/dist/components/fileUpload/fileUpload.d.mts +3 -13
  7. package/dist/components/fileUpload/fileUpload.d.ts +3 -13
  8. package/dist/components/fileUpload/fileUpload.js +218 -32
  9. package/dist/components/fileUpload/fileUpload.mjs +5 -2
  10. package/dist/components/fileUpload/index.js +218 -32
  11. package/dist/components/fileUpload/index.mjs +5 -2
  12. package/dist/components/input/index.js +30 -6
  13. package/dist/components/input/index.mjs +1 -1
  14. package/dist/components/input/input.d.mts +21 -0
  15. package/dist/components/input/input.d.ts +21 -0
  16. package/dist/components/input/input.js +30 -6
  17. package/dist/components/input/input.mjs +1 -1
  18. package/dist/components/pagination/index.js +30 -6
  19. package/dist/components/pagination/index.mjs +2 -2
  20. package/dist/components/pagination/pagination.js +30 -6
  21. package/dist/components/pagination/pagination.mjs +2 -2
  22. package/dist/components/table/index.js +30 -6
  23. package/dist/components/table/index.mjs +3 -3
  24. package/dist/components/table/table-body.js +30 -6
  25. package/dist/components/table/table-body.mjs +3 -3
  26. package/dist/components/table/table-head.js +30 -6
  27. package/dist/components/table/table-head.mjs +3 -3
  28. package/dist/components/table/table.js +30 -6
  29. package/dist/components/table/table.mjs +3 -3
  30. package/dist/index.js +273 -233
  31. package/dist/index.mjs +27 -27
  32. package/package.json +1 -1
@@ -3,9 +3,11 @@ import {
3
3
  FileUpload,
4
4
  fileUploadStyle,
5
5
  fileUpload_default
6
- } from "../../chunk-C5FUPNE4.mjs";
6
+ } from "../../chunk-AATFH6PB.mjs";
7
+ import "../../chunk-7VOQKIIK.mjs";
8
+ import "../../chunk-5FFTHFBX.mjs";
7
9
  import "../../chunk-2GCSFWHD.mjs";
8
- import "../../chunk-VFFLJN5N.mjs";
10
+ import "../../chunk-FESRJFPF.mjs";
9
11
  import "../../chunk-MY5U63QO.mjs";
10
12
  import "../../chunk-JBSV7GCL.mjs";
11
13
  import "../../chunk-ITWKPTSD.mjs";
@@ -19,6 +21,7 @@ import "../../chunk-SCZB4QC7.mjs";
19
21
  import "../../chunk-E3G5QXSH.mjs";
20
22
  import "../../chunk-6XFKID3T.mjs";
21
23
  import "../../chunk-CDXBML6O.mjs";
24
+ import "../../chunk-3V4HT2K5.mjs";
22
25
  import "../../chunk-27Y6K5NK.mjs";
23
26
  import "../../chunk-AC6TWLRT.mjs";
24
27
  export {
@@ -107,8 +107,8 @@ __export(fileUpload_exports, {
107
107
  module.exports = __toCommonJS(fileUpload_exports);
108
108
 
109
109
  // src/components/fileUpload/fileUpload.tsx
110
- var import_react5 = require("react");
111
- var import_tailwind_variants5 = require("tailwind-variants");
110
+ var import_react7 = require("react");
111
+ var import_tailwind_variants6 = require("tailwind-variants");
112
112
 
113
113
  // src/components/input/input.tsx
114
114
  var import_react = require("react");
@@ -5198,12 +5198,10 @@ var inputStyle = tv(
5198
5198
  errorMessage: ["text-danger-main"],
5199
5199
  readonlyWrapper: [
5200
5200
  "pointer-events-none",
5201
- "!text-body-foreground",
5202
- "placeholder:!text-body-foreground",
5203
- "group-has-[p.error]/input:!text-danger-main",
5204
- "group-has-[p.error]/input:placeholder:!text-danger-main",
5205
- "[&>input]:!text-body-foreground",
5206
- "[&>input]:placeholder:!text-body-foreground"
5201
+ "text-body-foreground",
5202
+ "placeholder:text-body-foreground",
5203
+ "[&>input]:text-body-foreground",
5204
+ "[&>input]:placeholder:text-body-foreground"
5207
5205
  ],
5208
5206
  readonly: []
5209
5207
  },
@@ -5312,6 +5310,16 @@ var inputStyle = tv(
5312
5310
  helperMessage: ["!text-neutral-light"],
5313
5311
  errorMessage: ["!text-danger-light"]
5314
5312
  }
5313
+ },
5314
+ readonly: {
5315
+ true: {
5316
+ readonlyWrapper: ["pointer-events-none"],
5317
+ input: [
5318
+ "group-has-[p.error]/input:!text-danger-main",
5319
+ "group-has-[p.error]/input:placeholder:!text-danger-main"
5320
+ ],
5321
+ content: ["group-has-[p.error]/input:!text-danger-main"]
5322
+ }
5315
5323
  }
5316
5324
  },
5317
5325
  compoundVariants: [
@@ -5381,6 +5389,22 @@ var inputStyle = tv(
5381
5389
  "group-has-[p.error]/input:placeholder:!text-danger-light"
5382
5390
  ]
5383
5391
  }
5392
+ },
5393
+ {
5394
+ readonly: true,
5395
+ color: "primary",
5396
+ class: {
5397
+ input: ["!text-primary-main", "placeholder:!text-primary-main"],
5398
+ content: ["!text-primary-main"]
5399
+ }
5400
+ },
5401
+ {
5402
+ readonly: true,
5403
+ color: "secondary",
5404
+ class: {
5405
+ input: ["!text-secondary-main", "placeholder:!text-secondary-main"],
5406
+ content: ["!text-secondary-main"]
5407
+ }
5384
5408
  }
5385
5409
  ],
5386
5410
  defaultVariants: {
@@ -6248,26 +6272,176 @@ var iconButtonStyle = tv({
6248
6272
  }
6249
6273
  });
6250
6274
 
6251
- // src/components/fileUpload/fileUpload.tsx
6275
+ // src/components/progress/progress.tsx
6276
+ var import_react6 = require("react");
6277
+
6278
+ // src/hooks/useIsMounted.ts
6279
+ var import_react5 = require("react");
6280
+ function useIsMounted(props = {}) {
6281
+ const { rerender = false, delay = 0 } = props;
6282
+ const isMountedRef = (0, import_react5.useRef)(false);
6283
+ const [isMounted, setIsMounted] = (0, import_react5.useState)(false);
6284
+ (0, import_react5.useEffect)(() => {
6285
+ isMountedRef.current = true;
6286
+ let timer = null;
6287
+ if (rerender) {
6288
+ if (delay > 0) {
6289
+ timer = setTimeout(() => {
6290
+ setIsMounted(true);
6291
+ }, delay);
6292
+ } else {
6293
+ setIsMounted(true);
6294
+ }
6295
+ }
6296
+ return () => {
6297
+ isMountedRef.current = false;
6298
+ if (rerender) {
6299
+ setIsMounted(false);
6300
+ }
6301
+ if (timer) {
6302
+ clearTimeout(timer);
6303
+ }
6304
+ };
6305
+ }, [rerender]);
6306
+ return [(0, import_react5.useCallback)(() => isMountedRef.current, []), isMounted];
6307
+ }
6308
+
6309
+ // src/components/progress/progress.tsx
6252
6310
  var import_jsx_runtime7 = require("react/jsx-runtime");
6311
+ var Progress = (originalProps) => {
6312
+ const [props, variantProps] = mapPropsVariants(originalProps, progressStyle.variantKeys);
6313
+ const { children, classNames, value = 0, minValue = 0, maxValue = 100, ...progressProps } = props;
6314
+ const isIndeterminate = originalProps.isIndeterminate;
6315
+ const [, isMounted] = useIsMounted({
6316
+ rerender: true,
6317
+ delay: 100
6318
+ });
6319
+ const selfMounted = variantProps.disableAnimation ? true : isMounted;
6320
+ const percentage = (0, import_react6.useMemo)(
6321
+ () => isIndeterminate || !selfMounted ? void 0 : clampPercentage((value - minValue) / (maxValue - minValue) * 100),
6322
+ [selfMounted, isIndeterminate, value, minValue, maxValue]
6323
+ );
6324
+ const slots = (0, import_react6.useMemo)(() => progressStyle({ ...variantProps }), [variantProps]);
6325
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: slots.track({ class: classNames == null ? void 0 : classNames.track }), children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
6326
+ "div",
6327
+ {
6328
+ className: slots.indicator({ class: classNames == null ? void 0 : classNames.indicator }),
6329
+ style: {
6330
+ transform: `translateX(-${100 - (percentage || 0)}%)`
6331
+ }
6332
+ }
6333
+ ) }) });
6334
+ };
6335
+ var progress_default = Progress;
6336
+ var progressStyle = tv({
6337
+ slots: {
6338
+ base: ["flex flex-col gap-2 w-full"],
6339
+ track: ["z-0", "relative", "bg-neutral-soft", "overflow-hidden", "rtl:rotate-180"],
6340
+ indicator: ["h-full"],
6341
+ value: ""
6342
+ },
6343
+ variants: {
6344
+ color: {
6345
+ primary: {
6346
+ indicator: ["bg-gradient-to-r from-primary-light via-primary-light to-primary-main"]
6347
+ },
6348
+ secondary: {
6349
+ indicator: ["bg-gradient-to-r from-secondary-light via-secondary-light to-secondary-main"]
6350
+ },
6351
+ neutral: {
6352
+ indicator: ["bg-gradient-to-r from-neutral-light via-neutral-light to-neutral-main"]
6353
+ },
6354
+ info: {
6355
+ indicator: ["bg-gradient-to-r from-info-light via-info-light to-info-main"]
6356
+ },
6357
+ success: {
6358
+ indicator: ["bg-gradient-to-r from-success-light via-success-light to-success-main"]
6359
+ },
6360
+ warning: {
6361
+ indicator: ["bg-gradient-to-r from-warning-light via-warning-light to-warning-main"]
6362
+ },
6363
+ danger: {
6364
+ indicator: ["bg-gradient-to-r from-danger-light via-danger-light to-danger-main"]
6365
+ }
6366
+ },
6367
+ size: {
6368
+ sm: {
6369
+ track: ["h-[4px]", "rounded-sm"],
6370
+ indicator: "rounded-sm"
6371
+ },
6372
+ md: {
6373
+ track: ["h-[6px]", "rounded-md"],
6374
+ indicator: "rounded-md"
6375
+ },
6376
+ lg: {
6377
+ track: ["h-[8px]", "rounded-lg"],
6378
+ indicator: "rounded-lg"
6379
+ },
6380
+ xl: {
6381
+ track: ["h-[10px]", "rounded-xl"],
6382
+ indicator: "rounded-xl"
6383
+ }
6384
+ },
6385
+ isDisabled: {
6386
+ true: {
6387
+ base: "opacity-disabled cursor-not-allowed"
6388
+ }
6389
+ },
6390
+ disableAnimation: {
6391
+ true: {},
6392
+ false: {
6393
+ indicator: "transition-transform !duration-500"
6394
+ }
6395
+ },
6396
+ isIndeterminate: {
6397
+ true: {
6398
+ indicator: ["absolute", "w-full", "origin-left", "animate-indeterminate-bar"]
6399
+ }
6400
+ }
6401
+ },
6402
+ defaultVariants: {
6403
+ color: "primary",
6404
+ size: "md",
6405
+ isDisabled: false,
6406
+ disableAnimation: false,
6407
+ isIndeterminate: false
6408
+ },
6409
+ compoundVariants: [
6410
+ {
6411
+ isIndeterminate: true,
6412
+ disableAnimation: false,
6413
+ className: {
6414
+ indicator: "!transition-none motion-reduce:transition-none"
6415
+ }
6416
+ }
6417
+ ]
6418
+ });
6419
+ var clampPercentage = (value) => {
6420
+ return Math.min(100, Math.max(0, value));
6421
+ };
6422
+
6423
+ // src/components/fileUpload/fileUpload.tsx
6424
+ var import_jsx_runtime8 = require("react/jsx-runtime");
6253
6425
  function FileUpload({
6254
6426
  buttonText,
6255
6427
  maxSizeMB = 10,
6256
6428
  placeholder,
6429
+ errorMessage,
6257
6430
  accept = [],
6258
6431
  acceptErrorMessage = "The file type is not allowed.",
6259
6432
  sizeErrorMessage = `File is too large.`,
6260
6433
  onFileUpload,
6434
+ onCancelUpload,
6261
6435
  helperMessage,
6262
6436
  showProgress,
6263
6437
  name,
6264
6438
  classNames
6265
6439
  }) {
6266
- const fileInputRef = (0, import_react5.useRef)(null);
6267
- const uploadIntervalRef = (0, import_react5.useRef)(null);
6268
- const [file, setFile] = (0, import_react5.useState)(null);
6269
- const [uploadProgress, setUploadProgress] = (0, import_react5.useState)(0);
6270
- const [errorMessage, setErrorMessage] = (0, import_react5.useState)("");
6440
+ const fileInputRef = (0, import_react7.useRef)(null);
6441
+ const uploadIntervalRef = (0, import_react7.useRef)(null);
6442
+ const [file, setFile] = (0, import_react7.useState)(null);
6443
+ const [uploadProgress, setUploadProgress] = (0, import_react7.useState)(0);
6444
+ const [message, setMessage] = (0, import_react7.useState)(errorMessage);
6271
6445
  const slots = fileUploadStyle();
6272
6446
  const handleButtonClick = () => {
6273
6447
  var _a;
@@ -6301,12 +6475,12 @@ function FileUpload({
6301
6475
  if (!selectedFile) return;
6302
6476
  const error = validateFile(selectedFile);
6303
6477
  if (error) {
6304
- setErrorMessage(error);
6478
+ setMessage(error);
6305
6479
  setFile(null);
6306
6480
  return;
6307
6481
  }
6308
6482
  setFile(selectedFile);
6309
- setErrorMessage("");
6483
+ setMessage("");
6310
6484
  startUploadSimulation(selectedFile);
6311
6485
  };
6312
6486
  const handleCancelUpload = () => {
@@ -6315,20 +6489,35 @@ function FileUpload({
6315
6489
  }
6316
6490
  setFile(null);
6317
6491
  setUploadProgress(0);
6318
- setErrorMessage("");
6492
+ setMessage("");
6493
+ if (onCancelUpload) onCancelUpload();
6319
6494
  };
6320
- (0, import_react5.useEffect)(() => {
6495
+ (0, import_react7.useEffect)(() => {
6321
6496
  return () => {
6322
6497
  if (uploadIntervalRef.current) {
6323
6498
  clearInterval(uploadIntervalRef.current);
6324
6499
  }
6325
6500
  };
6326
6501
  }, []);
6327
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
6328
- /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: slots.container({ class: classNames == null ? void 0 : classNames.container }), children: [
6329
- /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: slots.inputWrapper(), children: [
6330
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(input_default, { name, readOnly: true, variant: "outline", full: true, placeholder, defaultValue: file == null ? void 0 : file.name }),
6331
- file && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
6502
+ (0, import_react7.useEffect)(() => {
6503
+ setMessage(errorMessage);
6504
+ }, [setMessage, errorMessage]);
6505
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
6506
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: slots.container({ class: classNames == null ? void 0 : classNames.container }), children: [
6507
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: slots.inputWrapper(), children: [
6508
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
6509
+ input_default,
6510
+ {
6511
+ name,
6512
+ readOnly: true,
6513
+ variant: "outline",
6514
+ full: true,
6515
+ placeholder,
6516
+ defaultValue: file == null ? void 0 : file.name,
6517
+ errorMessage: message
6518
+ }
6519
+ ),
6520
+ file && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
6332
6521
  icon_button_default,
6333
6522
  {
6334
6523
  name: "close",
@@ -6340,24 +6529,21 @@ function FileUpload({
6340
6529
  }
6341
6530
  )
6342
6531
  ] }),
6343
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(button_default, { type: "button", variant: "outline", onClick: handleButtonClick, children: buttonText }),
6344
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("input", { ref: fileInputRef, type: "file", hidden: true, accept: accept.join(","), onChange: handleFileChange })
6532
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(button_default, { type: "button", variant: "outline", onClick: handleButtonClick, children: buttonText }),
6533
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("input", { ref: fileInputRef, type: "file", hidden: true, accept: accept.join(","), onChange: handleFileChange })
6345
6534
  ] }),
6346
- showProgress && file && uploadProgress < 100 && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: slots.progressBarContainer(), children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: slots.progressBar(), style: { width: `${uploadProgress}%` } }) }),
6347
- !errorMessage && helperMessage && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("p", { className: slots.helperMessage(), children: helperMessage }),
6348
- errorMessage && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("p", { className: slots.errorMessage(), children: errorMessage })
6535
+ showProgress && file && uploadProgress < 100 && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(progress_default, { value: uploadProgress }),
6536
+ !message && helperMessage && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { className: slots.helperMessage(), children: helperMessage })
6349
6537
  ] });
6350
6538
  }
6351
6539
  FileUpload.displayName = "FileUpload";
6352
6540
  var fileUpload_default = FileUpload;
6353
- var fileUploadStyle = (0, import_tailwind_variants5.tv)({
6541
+ var fileUploadStyle = (0, import_tailwind_variants6.tv)({
6354
6542
  slots: {
6355
6543
  base: ["flex", "flex-col", "gap-[5px]"],
6356
- container: ["flex", "items-center", "gap-[10px]"],
6544
+ container: ["flex", "gap-[10px]"],
6357
6545
  inputWrapper: ["relative", "flex-1"],
6358
6546
  cancelButton: ["absolute", "top-1/2", "right-0", "-translate-y-1/2"],
6359
- progressBarContainer: ["w-full", "h-[5px]", "bg-neutral-light", "rounded-full", "overflow-hidden"],
6360
- progressBar: ["h-full", "bg-primary-main", "transition-all"],
6361
6547
  errorMessage: ["text-danger-main", "text-sm"],
6362
6548
  helperMessage: ["text-neutral-main", "text-sm"]
6363
6549
  }
@@ -2,9 +2,11 @@
2
2
  import "../../chunk-RLXOHILK.mjs";
3
3
  import {
4
4
  fileUpload_default
5
- } from "../../chunk-C5FUPNE4.mjs";
5
+ } from "../../chunk-AATFH6PB.mjs";
6
+ import "../../chunk-7VOQKIIK.mjs";
7
+ import "../../chunk-5FFTHFBX.mjs";
6
8
  import "../../chunk-2GCSFWHD.mjs";
7
- import "../../chunk-VFFLJN5N.mjs";
9
+ import "../../chunk-FESRJFPF.mjs";
8
10
  import "../../chunk-MY5U63QO.mjs";
9
11
  import "../../chunk-JBSV7GCL.mjs";
10
12
  import "../../chunk-ITWKPTSD.mjs";
@@ -18,6 +20,7 @@ import "../../chunk-SCZB4QC7.mjs";
18
20
  import "../../chunk-E3G5QXSH.mjs";
19
21
  import "../../chunk-6XFKID3T.mjs";
20
22
  import "../../chunk-CDXBML6O.mjs";
23
+ import "../../chunk-3V4HT2K5.mjs";
21
24
  import "../../chunk-27Y6K5NK.mjs";
22
25
  import "../../chunk-AC6TWLRT.mjs";
23
26
  export {
@@ -5194,12 +5194,10 @@ var inputStyle = tv(
5194
5194
  errorMessage: ["text-danger-main"],
5195
5195
  readonlyWrapper: [
5196
5196
  "pointer-events-none",
5197
- "!text-body-foreground",
5198
- "placeholder:!text-body-foreground",
5199
- "group-has-[p.error]/input:!text-danger-main",
5200
- "group-has-[p.error]/input:placeholder:!text-danger-main",
5201
- "[&>input]:!text-body-foreground",
5202
- "[&>input]:placeholder:!text-body-foreground"
5197
+ "text-body-foreground",
5198
+ "placeholder:text-body-foreground",
5199
+ "[&>input]:text-body-foreground",
5200
+ "[&>input]:placeholder:text-body-foreground"
5203
5201
  ],
5204
5202
  readonly: []
5205
5203
  },
@@ -5308,6 +5306,16 @@ var inputStyle = tv(
5308
5306
  helperMessage: ["!text-neutral-light"],
5309
5307
  errorMessage: ["!text-danger-light"]
5310
5308
  }
5309
+ },
5310
+ readonly: {
5311
+ true: {
5312
+ readonlyWrapper: ["pointer-events-none"],
5313
+ input: [
5314
+ "group-has-[p.error]/input:!text-danger-main",
5315
+ "group-has-[p.error]/input:placeholder:!text-danger-main"
5316
+ ],
5317
+ content: ["group-has-[p.error]/input:!text-danger-main"]
5318
+ }
5311
5319
  }
5312
5320
  },
5313
5321
  compoundVariants: [
@@ -5377,6 +5385,22 @@ var inputStyle = tv(
5377
5385
  "group-has-[p.error]/input:placeholder:!text-danger-light"
5378
5386
  ]
5379
5387
  }
5388
+ },
5389
+ {
5390
+ readonly: true,
5391
+ color: "primary",
5392
+ class: {
5393
+ input: ["!text-primary-main", "placeholder:!text-primary-main"],
5394
+ content: ["!text-primary-main"]
5395
+ }
5396
+ },
5397
+ {
5398
+ readonly: true,
5399
+ color: "secondary",
5400
+ class: {
5401
+ input: ["!text-secondary-main", "placeholder:!text-secondary-main"],
5402
+ content: ["!text-secondary-main"]
5403
+ }
5380
5404
  }
5381
5405
  ],
5382
5406
  defaultVariants: {
@@ -2,7 +2,7 @@
2
2
  import "../../chunk-2GCSFWHD.mjs";
3
3
  import {
4
4
  input_default
5
- } from "../../chunk-VFFLJN5N.mjs";
5
+ } from "../../chunk-FESRJFPF.mjs";
6
6
  import "../../chunk-ZYIIXWVY.mjs";
7
7
  import "../../chunk-SCZB4QC7.mjs";
8
8
  import "../../chunk-E3G5QXSH.mjs";
@@ -102,6 +102,13 @@ declare const inputStyle: tailwind_variants.TVReturnType<{
102
102
  errorMessage: string[];
103
103
  };
104
104
  };
105
+ readonly: {
106
+ true: {
107
+ readonlyWrapper: string[];
108
+ input: string[];
109
+ content: string[];
110
+ };
111
+ };
105
112
  }, {
106
113
  base: string[];
107
114
  vertical: string[];
@@ -196,6 +203,13 @@ declare const inputStyle: tailwind_variants.TVReturnType<{
196
203
  errorMessage: string[];
197
204
  };
198
205
  };
206
+ readonly: {
207
+ true: {
208
+ readonlyWrapper: string[];
209
+ input: string[];
210
+ content: string[];
211
+ };
212
+ };
199
213
  }, {
200
214
  base: string[];
201
215
  vertical: string[];
@@ -290,6 +304,13 @@ declare const inputStyle: tailwind_variants.TVReturnType<{
290
304
  errorMessage: string[];
291
305
  };
292
306
  };
307
+ readonly: {
308
+ true: {
309
+ readonlyWrapper: string[];
310
+ input: string[];
311
+ content: string[];
312
+ };
313
+ };
293
314
  }, {
294
315
  base: string[];
295
316
  vertical: string[];
@@ -102,6 +102,13 @@ declare const inputStyle: tailwind_variants.TVReturnType<{
102
102
  errorMessage: string[];
103
103
  };
104
104
  };
105
+ readonly: {
106
+ true: {
107
+ readonlyWrapper: string[];
108
+ input: string[];
109
+ content: string[];
110
+ };
111
+ };
105
112
  }, {
106
113
  base: string[];
107
114
  vertical: string[];
@@ -196,6 +203,13 @@ declare const inputStyle: tailwind_variants.TVReturnType<{
196
203
  errorMessage: string[];
197
204
  };
198
205
  };
206
+ readonly: {
207
+ true: {
208
+ readonlyWrapper: string[];
209
+ input: string[];
210
+ content: string[];
211
+ };
212
+ };
199
213
  }, {
200
214
  base: string[];
201
215
  vertical: string[];
@@ -290,6 +304,13 @@ declare const inputStyle: tailwind_variants.TVReturnType<{
290
304
  errorMessage: string[];
291
305
  };
292
306
  };
307
+ readonly: {
308
+ true: {
309
+ readonlyWrapper: string[];
310
+ input: string[];
311
+ content: string[];
312
+ };
313
+ };
293
314
  }, {
294
315
  base: string[];
295
316
  vertical: string[];
@@ -5193,12 +5193,10 @@ var inputStyle = tv(
5193
5193
  errorMessage: ["text-danger-main"],
5194
5194
  readonlyWrapper: [
5195
5195
  "pointer-events-none",
5196
- "!text-body-foreground",
5197
- "placeholder:!text-body-foreground",
5198
- "group-has-[p.error]/input:!text-danger-main",
5199
- "group-has-[p.error]/input:placeholder:!text-danger-main",
5200
- "[&>input]:!text-body-foreground",
5201
- "[&>input]:placeholder:!text-body-foreground"
5196
+ "text-body-foreground",
5197
+ "placeholder:text-body-foreground",
5198
+ "[&>input]:text-body-foreground",
5199
+ "[&>input]:placeholder:text-body-foreground"
5202
5200
  ],
5203
5201
  readonly: []
5204
5202
  },
@@ -5307,6 +5305,16 @@ var inputStyle = tv(
5307
5305
  helperMessage: ["!text-neutral-light"],
5308
5306
  errorMessage: ["!text-danger-light"]
5309
5307
  }
5308
+ },
5309
+ readonly: {
5310
+ true: {
5311
+ readonlyWrapper: ["pointer-events-none"],
5312
+ input: [
5313
+ "group-has-[p.error]/input:!text-danger-main",
5314
+ "group-has-[p.error]/input:placeholder:!text-danger-main"
5315
+ ],
5316
+ content: ["group-has-[p.error]/input:!text-danger-main"]
5317
+ }
5310
5318
  }
5311
5319
  },
5312
5320
  compoundVariants: [
@@ -5376,6 +5384,22 @@ var inputStyle = tv(
5376
5384
  "group-has-[p.error]/input:placeholder:!text-danger-light"
5377
5385
  ]
5378
5386
  }
5387
+ },
5388
+ {
5389
+ readonly: true,
5390
+ color: "primary",
5391
+ class: {
5392
+ input: ["!text-primary-main", "placeholder:!text-primary-main"],
5393
+ content: ["!text-primary-main"]
5394
+ }
5395
+ },
5396
+ {
5397
+ readonly: true,
5398
+ color: "secondary",
5399
+ class: {
5400
+ input: ["!text-secondary-main", "placeholder:!text-secondary-main"],
5401
+ content: ["!text-secondary-main"]
5402
+ }
5379
5403
  }
5380
5404
  ],
5381
5405
  defaultVariants: {
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  inputStyle,
4
4
  input_default
5
- } from "../../chunk-VFFLJN5N.mjs";
5
+ } from "../../chunk-FESRJFPF.mjs";
6
6
  import "../../chunk-ZYIIXWVY.mjs";
7
7
  import "../../chunk-SCZB4QC7.mjs";
8
8
  import "../../chunk-E3G5QXSH.mjs";
@@ -5222,12 +5222,10 @@ var inputStyle = tv(
5222
5222
  errorMessage: ["text-danger-main"],
5223
5223
  readonlyWrapper: [
5224
5224
  "pointer-events-none",
5225
- "!text-body-foreground",
5226
- "placeholder:!text-body-foreground",
5227
- "group-has-[p.error]/input:!text-danger-main",
5228
- "group-has-[p.error]/input:placeholder:!text-danger-main",
5229
- "[&>input]:!text-body-foreground",
5230
- "[&>input]:placeholder:!text-body-foreground"
5225
+ "text-body-foreground",
5226
+ "placeholder:text-body-foreground",
5227
+ "[&>input]:text-body-foreground",
5228
+ "[&>input]:placeholder:text-body-foreground"
5231
5229
  ],
5232
5230
  readonly: []
5233
5231
  },
@@ -5336,6 +5334,16 @@ var inputStyle = tv(
5336
5334
  helperMessage: ["!text-neutral-light"],
5337
5335
  errorMessage: ["!text-danger-light"]
5338
5336
  }
5337
+ },
5338
+ readonly: {
5339
+ true: {
5340
+ readonlyWrapper: ["pointer-events-none"],
5341
+ input: [
5342
+ "group-has-[p.error]/input:!text-danger-main",
5343
+ "group-has-[p.error]/input:placeholder:!text-danger-main"
5344
+ ],
5345
+ content: ["group-has-[p.error]/input:!text-danger-main"]
5346
+ }
5339
5347
  }
5340
5348
  },
5341
5349
  compoundVariants: [
@@ -5405,6 +5413,22 @@ var inputStyle = tv(
5405
5413
  "group-has-[p.error]/input:placeholder:!text-danger-light"
5406
5414
  ]
5407
5415
  }
5416
+ },
5417
+ {
5418
+ readonly: true,
5419
+ color: "primary",
5420
+ class: {
5421
+ input: ["!text-primary-main", "placeholder:!text-primary-main"],
5422
+ content: ["!text-primary-main"]
5423
+ }
5424
+ },
5425
+ {
5426
+ readonly: true,
5427
+ color: "secondary",
5428
+ class: {
5429
+ input: ["!text-secondary-main", "placeholder:!text-secondary-main"],
5430
+ content: ["!text-secondary-main"]
5431
+ }
5408
5432
  }
5409
5433
  ],
5410
5434
  defaultVariants: {
@@ -2,10 +2,10 @@
2
2
  import "../../chunk-7B7LRG5J.mjs";
3
3
  import {
4
4
  pagination_default
5
- } from "../../chunk-45N5ZAIJ.mjs";
5
+ } from "../../chunk-JN6ELUAT.mjs";
6
6
  import "../../chunk-F3HENRVM.mjs";
7
7
  import "../../chunk-2GCSFWHD.mjs";
8
- import "../../chunk-VFFLJN5N.mjs";
8
+ import "../../chunk-FESRJFPF.mjs";
9
9
  import "../../chunk-ZYIIXWVY.mjs";
10
10
  import "../../chunk-SCZB4QC7.mjs";
11
11
  import "../../chunk-E3G5QXSH.mjs";