@deepnoid/ui 0.1.98 → 0.1.99
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 +183 -183
- package/dist/{chunk-BQTFCLWG.mjs → chunk-4PVQ6EHW.mjs} +4 -4
- package/dist/{chunk-MFAF7G3M.mjs → chunk-DRK7NMLJ.mjs} +5 -5
- package/dist/{chunk-45BNDZHL.mjs → chunk-DUO76TCX.mjs} +2 -2
- package/dist/{chunk-C5FUPNE4.mjs → chunk-NDZ7LM6I.mjs} +29 -14
- package/dist/{chunk-45N5ZAIJ.mjs → chunk-OQ3M3RMJ.mjs} +4 -4
- package/dist/{chunk-4GDJLALM.mjs → chunk-PEDGYELZ.mjs} +1 -1
- package/dist/{chunk-VFFLJN5N.mjs → chunk-Q44DM7T3.mjs} +33 -9
- package/dist/{chunk-VIEBF2WH.mjs → chunk-RHRYHA6L.mjs} +5 -5
- package/dist/{chunk-TBSG4HY5.mjs → chunk-VMB75PEM.mjs} +1 -1
- package/dist/components/accordion/accordion.mjs +2 -2
- package/dist/components/accordion/accordionItem.mjs +2 -2
- package/dist/components/accordion/index.mjs +3 -3
- package/dist/components/breadcrumb/breadcrumb.mjs +5 -5
- package/dist/components/breadcrumb/index.mjs +5 -5
- package/dist/components/button/button.mjs +2 -2
- package/dist/components/button/icon-button.mjs +2 -2
- package/dist/components/button/index.mjs +6 -6
- package/dist/components/button/text-button.mjs +2 -2
- package/dist/components/charts/areaChart.mjs +2 -2
- package/dist/components/charts/barChart.mjs +2 -2
- package/dist/components/charts/circularProgress.mjs +2 -2
- package/dist/components/charts/index.mjs +4 -4
- package/dist/components/checkbox/checkbox.mjs +2 -2
- package/dist/components/checkbox/index.mjs +2 -2
- package/dist/components/chip/chip.mjs +2 -2
- package/dist/components/chip/index.mjs +2 -2
- package/dist/components/dateTimePicker/calendar.mjs +2 -2
- package/dist/components/dateTimePicker/dateTimePicker.mjs +6 -6
- package/dist/components/dateTimePicker/index.mjs +6 -6
- package/dist/components/dateTimePicker/timePicker.mjs +4 -4
- package/dist/components/drawer/drawer.mjs +2 -2
- package/dist/components/drawer/index.mjs +2 -2
- package/dist/components/fileUpload/fileUpload.d.mts +2 -13
- package/dist/components/fileUpload/fileUpload.d.ts +2 -13
- package/dist/components/fileUpload/fileUpload.js +216 -32
- package/dist/components/fileUpload/fileUpload.mjs +9 -6
- package/dist/components/fileUpload/index.js +216 -32
- package/dist/components/fileUpload/index.mjs +9 -6
- package/dist/components/input/index.js +30 -6
- package/dist/components/input/index.mjs +2 -2
- package/dist/components/input/input.d.mts +21 -0
- package/dist/components/input/input.d.ts +21 -0
- package/dist/components/input/input.js +30 -6
- package/dist/components/input/input.mjs +2 -2
- package/dist/components/list/index.mjs +3 -3
- package/dist/components/list/list.mjs +2 -2
- package/dist/components/list/listItem.mjs +2 -2
- package/dist/components/modal/index.mjs +5 -5
- package/dist/components/modal/modal.mjs +5 -5
- package/dist/components/pagination/index.js +30 -6
- package/dist/components/pagination/index.mjs +3 -3
- package/dist/components/pagination/pagination.js +30 -6
- package/dist/components/pagination/pagination.mjs +3 -3
- package/dist/components/progress/index.mjs +3 -3
- package/dist/components/progress/progress.mjs +3 -3
- package/dist/components/radio/index.mjs +2 -2
- package/dist/components/radio/radio.mjs +2 -2
- package/dist/components/select/index.mjs +2 -2
- package/dist/components/select/select.mjs +2 -2
- package/dist/components/table/index.js +30 -6
- package/dist/components/table/index.mjs +8 -8
- package/dist/components/table/table-body.js +30 -6
- package/dist/components/table/table-body.mjs +5 -5
- package/dist/components/table/table-head.js +30 -6
- package/dist/components/table/table-head.mjs +5 -5
- package/dist/components/table/table.js +30 -6
- package/dist/components/table/table.mjs +5 -5
- package/dist/components/tabs/index.mjs +2 -2
- package/dist/components/tabs/tabs.mjs +2 -2
- package/dist/components/textarea/index.mjs +2 -2
- package/dist/components/textarea/textarea.mjs +2 -2
- package/dist/components/toast/index.mjs +3 -3
- package/dist/components/toast/toast.mjs +2 -2
- package/dist/components/toast/use-toast.mjs +3 -3
- package/dist/components/tooltip/index.mjs +2 -2
- package/dist/components/tooltip/tooltip.mjs +2 -2
- package/dist/index.js +271 -233
- package/dist/index.mjs +61 -61
- package/package.json +1 -1
- package/dist/{chunk-I3ADJOUT.mjs → chunk-2NKKPM4H.mjs} +3 -3
- package/dist/{chunk-3IILPVRA.mjs → chunk-2Q3V5U7K.mjs} +3 -3
- package/dist/{chunk-6Q2BXHJL.mjs → chunk-4EIGHKUO.mjs} +3 -3
- package/dist/{chunk-IW57F7WZ.mjs → chunk-4VIQED4M.mjs} +3 -3
- package/dist/{chunk-BHSZP2XF.mjs → chunk-7KVNCGIG.mjs} +3 -3
- package/dist/{chunk-WG2EL5JF.mjs → chunk-CBGWCZVX.mjs} +3 -3
- package/dist/{chunk-K7JLUER5.mjs → chunk-DR2LJSLB.mjs} +3 -3
- package/dist/{chunk-23WOW2NZ.mjs → chunk-EXQG2GHG.mjs} +3 -3
- package/dist/{chunk-JBSV7GCL.mjs → chunk-G5CNDGIE.mjs} +3 -3
- package/dist/{chunk-PZSIYVDW.mjs → chunk-HZMGNGQN.mjs} +3 -3
- package/dist/{chunk-WIZDHK4O.mjs → chunk-K6X36ITU.mjs} +3 -3
- package/dist/{chunk-E7IPRLUN.mjs → chunk-KNLCEVJX.mjs} +3 -3
- package/dist/{chunk-GH4EPD35.mjs → chunk-M5CS7I7F.mjs} +3 -3
- package/dist/{chunk-4LP3QDAE.mjs → chunk-OBPDLL66.mjs} +3 -3
- package/dist/{chunk-GAZ472ZU.mjs → chunk-OSKY2V2A.mjs} +3 -3
- package/dist/{chunk-5FFTHFBX.mjs → chunk-T46JIGEU.mjs} +4 -4
- package/dist/{chunk-6KH2UQRM.mjs → chunk-TWSYSAE7.mjs} +3 -3
- package/dist/{chunk-S7Y7XUBL.mjs → chunk-UDVA3BUM.mjs} +3 -3
- package/dist/{chunk-XZ5DXOJQ.mjs → chunk-UELN23A4.mjs} +3 -3
- package/dist/{chunk-EKLA6ZR4.mjs → chunk-VAZKSQN6.mjs} +3 -3
- package/dist/{chunk-7VS6YXNB.mjs → chunk-ZFHBOZEE.mjs} +3 -3
|
@@ -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
|
|
111
|
-
var
|
|
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
|
-
"
|
|
5202
|
-
"placeholder
|
|
5203
|
-
"
|
|
5204
|
-
"
|
|
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,12 +6272,161 @@ var iconButtonStyle = tv({
|
|
|
6248
6272
|
}
|
|
6249
6273
|
});
|
|
6250
6274
|
|
|
6251
|
-
// src/components/
|
|
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.`,
|
|
@@ -6263,11 +6436,11 @@ function FileUpload({
|
|
|
6263
6436
|
name,
|
|
6264
6437
|
classNames
|
|
6265
6438
|
}) {
|
|
6266
|
-
const fileInputRef = (0,
|
|
6267
|
-
const uploadIntervalRef = (0,
|
|
6268
|
-
const [file, setFile] = (0,
|
|
6269
|
-
const [uploadProgress, setUploadProgress] = (0,
|
|
6270
|
-
const [
|
|
6439
|
+
const fileInputRef = (0, import_react7.useRef)(null);
|
|
6440
|
+
const uploadIntervalRef = (0, import_react7.useRef)(null);
|
|
6441
|
+
const [file, setFile] = (0, import_react7.useState)(null);
|
|
6442
|
+
const [uploadProgress, setUploadProgress] = (0, import_react7.useState)(0);
|
|
6443
|
+
const [message, setMessage] = (0, import_react7.useState)(errorMessage);
|
|
6271
6444
|
const slots = fileUploadStyle();
|
|
6272
6445
|
const handleButtonClick = () => {
|
|
6273
6446
|
var _a;
|
|
@@ -6301,12 +6474,12 @@ function FileUpload({
|
|
|
6301
6474
|
if (!selectedFile) return;
|
|
6302
6475
|
const error = validateFile(selectedFile);
|
|
6303
6476
|
if (error) {
|
|
6304
|
-
|
|
6477
|
+
setMessage(error);
|
|
6305
6478
|
setFile(null);
|
|
6306
6479
|
return;
|
|
6307
6480
|
}
|
|
6308
6481
|
setFile(selectedFile);
|
|
6309
|
-
|
|
6482
|
+
setMessage("");
|
|
6310
6483
|
startUploadSimulation(selectedFile);
|
|
6311
6484
|
};
|
|
6312
6485
|
const handleCancelUpload = () => {
|
|
@@ -6315,20 +6488,34 @@ function FileUpload({
|
|
|
6315
6488
|
}
|
|
6316
6489
|
setFile(null);
|
|
6317
6490
|
setUploadProgress(0);
|
|
6318
|
-
|
|
6491
|
+
setMessage("");
|
|
6319
6492
|
};
|
|
6320
|
-
(0,
|
|
6493
|
+
(0, import_react7.useEffect)(() => {
|
|
6321
6494
|
return () => {
|
|
6322
6495
|
if (uploadIntervalRef.current) {
|
|
6323
6496
|
clearInterval(uploadIntervalRef.current);
|
|
6324
6497
|
}
|
|
6325
6498
|
};
|
|
6326
6499
|
}, []);
|
|
6327
|
-
|
|
6328
|
-
|
|
6329
|
-
|
|
6330
|
-
|
|
6331
|
-
|
|
6500
|
+
(0, import_react7.useEffect)(() => {
|
|
6501
|
+
setMessage(errorMessage);
|
|
6502
|
+
}, [setMessage, errorMessage]);
|
|
6503
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
|
|
6504
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: slots.container({ class: classNames == null ? void 0 : classNames.container }), children: [
|
|
6505
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: slots.inputWrapper(), children: [
|
|
6506
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
6507
|
+
input_default,
|
|
6508
|
+
{
|
|
6509
|
+
name,
|
|
6510
|
+
readOnly: true,
|
|
6511
|
+
variant: "outline",
|
|
6512
|
+
full: true,
|
|
6513
|
+
placeholder,
|
|
6514
|
+
defaultValue: file == null ? void 0 : file.name,
|
|
6515
|
+
errorMessage: message
|
|
6516
|
+
}
|
|
6517
|
+
),
|
|
6518
|
+
file && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
|
|
6332
6519
|
icon_button_default,
|
|
6333
6520
|
{
|
|
6334
6521
|
name: "close",
|
|
@@ -6340,24 +6527,21 @@ function FileUpload({
|
|
|
6340
6527
|
}
|
|
6341
6528
|
)
|
|
6342
6529
|
] }),
|
|
6343
|
-
/* @__PURE__ */ (0,
|
|
6344
|
-
/* @__PURE__ */ (0,
|
|
6530
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)(button_default, { type: "button", variant: "outline", onClick: handleButtonClick, children: buttonText }),
|
|
6531
|
+
/* @__PURE__ */ (0, import_jsx_runtime8.jsx)("input", { ref: fileInputRef, type: "file", hidden: true, accept: accept.join(","), onChange: handleFileChange })
|
|
6345
6532
|
] }),
|
|
6346
|
-
showProgress && file && uploadProgress < 100 && /* @__PURE__ */ (0,
|
|
6347
|
-
!
|
|
6348
|
-
errorMessage && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("p", { className: slots.errorMessage(), children: errorMessage })
|
|
6533
|
+
showProgress && file && uploadProgress < 100 && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(progress_default, { value: uploadProgress }),
|
|
6534
|
+
!message && helperMessage && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { className: slots.helperMessage(), children: helperMessage })
|
|
6349
6535
|
] });
|
|
6350
6536
|
}
|
|
6351
6537
|
FileUpload.displayName = "FileUpload";
|
|
6352
6538
|
var fileUpload_default = FileUpload;
|
|
6353
|
-
var fileUploadStyle = (0,
|
|
6539
|
+
var fileUploadStyle = (0, import_tailwind_variants6.tv)({
|
|
6354
6540
|
slots: {
|
|
6355
6541
|
base: ["flex", "flex-col", "gap-[5px]"],
|
|
6356
|
-
container: ["flex", "
|
|
6542
|
+
container: ["flex", "gap-[10px]"],
|
|
6357
6543
|
inputWrapper: ["relative", "flex-1"],
|
|
6358
6544
|
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
6545
|
errorMessage: ["text-danger-main", "text-sm"],
|
|
6362
6546
|
helperMessage: ["text-neutral-main", "text-sm"]
|
|
6363
6547
|
}
|
|
@@ -2,23 +2,26 @@
|
|
|
2
2
|
import "../../chunk-RLXOHILK.mjs";
|
|
3
3
|
import {
|
|
4
4
|
fileUpload_default
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-NDZ7LM6I.mjs";
|
|
6
|
+
import "../../chunk-7VOQKIIK.mjs";
|
|
7
|
+
import "../../chunk-T46JIGEU.mjs";
|
|
6
8
|
import "../../chunk-2GCSFWHD.mjs";
|
|
7
|
-
import "../../chunk-
|
|
9
|
+
import "../../chunk-Q44DM7T3.mjs";
|
|
8
10
|
import "../../chunk-MY5U63QO.mjs";
|
|
9
|
-
import "../../chunk-JBSV7GCL.mjs";
|
|
10
11
|
import "../../chunk-ITWKPTSD.mjs";
|
|
11
|
-
import "../../chunk-
|
|
12
|
-
import "../../chunk-
|
|
12
|
+
import "../../chunk-4VIQED4M.mjs";
|
|
13
|
+
import "../../chunk-KNLCEVJX.mjs";
|
|
13
14
|
import "../../chunk-6WSACUIB.mjs";
|
|
14
15
|
import "../../chunk-LXHUO6VM.mjs";
|
|
15
16
|
import "../../chunk-6PNKRBUT.mjs";
|
|
17
|
+
import "../../chunk-G5CNDGIE.mjs";
|
|
16
18
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
17
19
|
import "../../chunk-SCZB4QC7.mjs";
|
|
18
|
-
import "../../chunk-
|
|
20
|
+
import "../../chunk-3V4HT2K5.mjs";
|
|
19
21
|
import "../../chunk-6XFKID3T.mjs";
|
|
20
22
|
import "../../chunk-CDXBML6O.mjs";
|
|
21
23
|
import "../../chunk-27Y6K5NK.mjs";
|
|
24
|
+
import "../../chunk-E3G5QXSH.mjs";
|
|
22
25
|
import "../../chunk-AC6TWLRT.mjs";
|
|
23
26
|
export {
|
|
24
27
|
fileUpload_default as FileUpload
|
|
@@ -5194,12 +5194,10 @@ var inputStyle = tv(
|
|
|
5194
5194
|
errorMessage: ["text-danger-main"],
|
|
5195
5195
|
readonlyWrapper: [
|
|
5196
5196
|
"pointer-events-none",
|
|
5197
|
-
"
|
|
5198
|
-
"placeholder
|
|
5199
|
-
"
|
|
5200
|
-
"
|
|
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,13 +2,13 @@
|
|
|
2
2
|
import "../../chunk-2GCSFWHD.mjs";
|
|
3
3
|
import {
|
|
4
4
|
input_default
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-Q44DM7T3.mjs";
|
|
6
6
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
7
7
|
import "../../chunk-SCZB4QC7.mjs";
|
|
8
|
-
import "../../chunk-E3G5QXSH.mjs";
|
|
9
8
|
import "../../chunk-6XFKID3T.mjs";
|
|
10
9
|
import "../../chunk-CDXBML6O.mjs";
|
|
11
10
|
import "../../chunk-27Y6K5NK.mjs";
|
|
11
|
+
import "../../chunk-E3G5QXSH.mjs";
|
|
12
12
|
import "../../chunk-AC6TWLRT.mjs";
|
|
13
13
|
export {
|
|
14
14
|
input_default as Input
|
|
@@ -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
|
-
"
|
|
5197
|
-
"placeholder
|
|
5198
|
-
"
|
|
5199
|
-
"
|
|
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,13 +2,13 @@
|
|
|
2
2
|
import {
|
|
3
3
|
inputStyle,
|
|
4
4
|
input_default
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-Q44DM7T3.mjs";
|
|
6
6
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
7
7
|
import "../../chunk-SCZB4QC7.mjs";
|
|
8
|
-
import "../../chunk-E3G5QXSH.mjs";
|
|
9
8
|
import "../../chunk-6XFKID3T.mjs";
|
|
10
9
|
import "../../chunk-CDXBML6O.mjs";
|
|
11
10
|
import "../../chunk-27Y6K5NK.mjs";
|
|
11
|
+
import "../../chunk-E3G5QXSH.mjs";
|
|
12
12
|
import "../../chunk-AC6TWLRT.mjs";
|
|
13
13
|
export {
|
|
14
14
|
input_default as default,
|
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
import "../../chunk-7MVEAQ7Z.mjs";
|
|
3
3
|
import {
|
|
4
4
|
list_default
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-2Q3V5U7K.mjs";
|
|
6
6
|
import {
|
|
7
7
|
listItem_default
|
|
8
|
-
} from "../../chunk-
|
|
8
|
+
} from "../../chunk-EXQG2GHG.mjs";
|
|
9
9
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
10
10
|
import "../../chunk-SCZB4QC7.mjs";
|
|
11
|
-
import "../../chunk-E3G5QXSH.mjs";
|
|
12
11
|
import "../../chunk-ANBGNXIU.mjs";
|
|
13
12
|
import "../../chunk-6XFKID3T.mjs";
|
|
14
13
|
import "../../chunk-CDXBML6O.mjs";
|
|
14
|
+
import "../../chunk-E3G5QXSH.mjs";
|
|
15
15
|
import "../../chunk-AC6TWLRT.mjs";
|
|
16
16
|
export {
|
|
17
17
|
list_default as List,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
list_default
|
|
4
|
-
} from "../../chunk-
|
|
5
|
-
import "../../chunk-E3G5QXSH.mjs";
|
|
4
|
+
} from "../../chunk-2Q3V5U7K.mjs";
|
|
6
5
|
import "../../chunk-CDXBML6O.mjs";
|
|
6
|
+
import "../../chunk-E3G5QXSH.mjs";
|
|
7
7
|
import "../../chunk-AC6TWLRT.mjs";
|
|
8
8
|
export {
|
|
9
9
|
list_default as default
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
listItem_default
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-EXQG2GHG.mjs";
|
|
5
5
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
6
6
|
import "../../chunk-SCZB4QC7.mjs";
|
|
7
|
-
import "../../chunk-E3G5QXSH.mjs";
|
|
8
7
|
import "../../chunk-ANBGNXIU.mjs";
|
|
9
8
|
import "../../chunk-6XFKID3T.mjs";
|
|
10
9
|
import "../../chunk-CDXBML6O.mjs";
|
|
10
|
+
import "../../chunk-E3G5QXSH.mjs";
|
|
11
11
|
import "../../chunk-AC6TWLRT.mjs";
|
|
12
12
|
export {
|
|
13
13
|
listItem_default as default
|