@andreagiugni/tailwind-dashboard-ui 1.0.3 → 1.0.5
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/README.md +1 -1
- package/dist/{chunk-YBVFFVZT.cjs → chunk-ETOOIXCY.cjs} +18 -18
- package/dist/chunk-ETOOIXCY.cjs.map +1 -0
- package/dist/{chunk-5DEBWZY7.cjs → chunk-GBQCVSZU.cjs} +3 -3
- package/dist/{chunk-5DEBWZY7.cjs.map → chunk-GBQCVSZU.cjs.map} +1 -1
- package/dist/{chunk-PYZG7RY7.js → chunk-NJBVRPWW.js} +3 -3
- package/dist/{chunk-PYZG7RY7.js.map → chunk-NJBVRPWW.js.map} +1 -1
- package/dist/{chunk-W3TC7P3Z.js → chunk-OD6N6XWO.js} +5 -6
- package/dist/chunk-OD6N6XWO.js.map +1 -0
- package/dist/{chunk-EQUQBLJC.js → chunk-PFCUA2W2.js} +18 -18
- package/dist/chunk-PFCUA2W2.js.map +1 -0
- package/dist/{chunk-ZQ6544NY.cjs → chunk-XSKRXE7E.cjs} +5 -6
- package/dist/chunk-XSKRXE7E.cjs.map +1 -0
- package/dist/components/Calendar/Calendar.cjs +2 -2
- package/dist/components/Calendar/Calendar.js +1 -1
- package/dist/components/ColorPicker/ColorPicker.cjs +2 -2
- package/dist/components/ColorPicker/ColorPicker.js +1 -1
- package/dist/components/Editor/Editor.cjs +2 -2
- package/dist/components/Editor/Editor.js +1 -1
- package/dist/index.cjs +75 -41
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +71 -37
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-EQUQBLJC.js.map +0 -1
- package/dist/chunk-W3TC7P3Z.js.map +0 -1
- package/dist/chunk-YBVFFVZT.cjs.map +0 -1
- package/dist/chunk-ZQ6544NY.cjs.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -519,8 +519,8 @@ interface RadioSmProps {
|
|
|
519
519
|
}
|
|
520
520
|
declare const RadioSm: React.FC<RadioSmProps>;
|
|
521
521
|
|
|
522
|
-
interface SwitchProps {
|
|
523
|
-
label
|
|
522
|
+
interface SwitchProps extends Omit<React.LabelHTMLAttributes<HTMLLabelElement>, "onChange" | "color"> {
|
|
523
|
+
label?: React.ReactNode;
|
|
524
524
|
checked?: boolean;
|
|
525
525
|
defaultChecked?: boolean;
|
|
526
526
|
disabled?: boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -519,8 +519,8 @@ interface RadioSmProps {
|
|
|
519
519
|
}
|
|
520
520
|
declare const RadioSm: React.FC<RadioSmProps>;
|
|
521
521
|
|
|
522
|
-
interface SwitchProps {
|
|
523
|
-
label
|
|
522
|
+
interface SwitchProps extends Omit<React.LabelHTMLAttributes<HTMLLabelElement>, "onChange" | "color"> {
|
|
523
|
+
label?: React.ReactNode;
|
|
524
524
|
checked?: boolean;
|
|
525
525
|
defaultChecked?: boolean;
|
|
526
526
|
disabled?: boolean;
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
export { BarChart } from './chunk-YAKIMPXZ.js';
|
|
3
3
|
export { LineChart } from './chunk-NWIOJGF7.js';
|
|
4
|
-
export { Calendar, Modal } from './chunk-
|
|
5
|
-
export { Editor } from './chunk-
|
|
6
|
-
export { ColorPicker } from './chunk-
|
|
4
|
+
export { Calendar, Modal } from './chunk-NJBVRPWW.js';
|
|
5
|
+
export { Editor } from './chunk-PFCUA2W2.js';
|
|
6
|
+
export { ColorPicker } from './chunk-OD6N6XWO.js';
|
|
7
7
|
import { layers } from './chunk-VX7S6VYG.js';
|
|
8
8
|
import { cn } from './chunk-ZLIYUUA4.js';
|
|
9
9
|
export { cn } from './chunk-ZLIYUUA4.js';
|
|
@@ -234,7 +234,7 @@ var Alert = ({
|
|
|
234
234
|
className: cn("rounded-xl border p-4", variantClasses2[variant].container, className),
|
|
235
235
|
...rest,
|
|
236
236
|
children: /* @__PURE__ */ jsxs("div", { className: "flex items-start gap-3", children: [
|
|
237
|
-
/* @__PURE__ */ jsx("div", { className: cn("-mt-0.5", variantClasses2[variant].icon), children: icon ?? /* @__PURE__ */ jsx(Icon, { className: "
|
|
237
|
+
/* @__PURE__ */ jsx("div", { className: cn("-mt-0.5", variantClasses2[variant].icon), children: icon ?? /* @__PURE__ */ jsx(Icon, { className: "size-4", "aria-hidden": "true" }) }),
|
|
238
238
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
239
239
|
/* @__PURE__ */ jsx("h4", { className: "mb-1 text-sm font-semibold text-gray-800 dark:text-white/90", children: title }),
|
|
240
240
|
/* @__PURE__ */ jsx("p", { className: "text-sm text-gray-500 dark:text-gray-400", children: message }),
|
|
@@ -455,7 +455,7 @@ var DropdownItem = ({
|
|
|
455
455
|
"span",
|
|
456
456
|
{
|
|
457
457
|
"aria-hidden": "true",
|
|
458
|
-
className: "flex h-5 w-5 shrink-0 items-center justify-center [&>svg]:
|
|
458
|
+
className: "flex h-5 w-5 shrink-0 items-center justify-center [&>svg]:size-4",
|
|
459
459
|
children: icon
|
|
460
460
|
}
|
|
461
461
|
),
|
|
@@ -521,7 +521,7 @@ var Dropzone = ({
|
|
|
521
521
|
}
|
|
522
522
|
),
|
|
523
523
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center", children: [
|
|
524
|
-
/* @__PURE__ */ jsx("div", { className: "mb-[22px] flex justify-center", children: /* @__PURE__ */ jsx("div", { className: "flex h-[68px] w-[68px] items-center justify-center rounded-full bg-gray-200 text-gray-700 dark:bg-gray-800 dark:text-gray-400", children: /* @__PURE__ */ jsx(Upload, { className: "
|
|
524
|
+
/* @__PURE__ */ jsx("div", { className: "mb-[22px] flex justify-center", children: /* @__PURE__ */ jsx("div", { className: "flex h-[68px] w-[68px] items-center justify-center rounded-full bg-gray-200 text-gray-700 dark:bg-gray-800 dark:text-gray-400", children: /* @__PURE__ */ jsx(Upload, { className: "size-4", "aria-hidden": "true" }) }) }),
|
|
525
525
|
/* @__PURE__ */ jsx("h4", { className: "mb-3 text-theme-xl font-semibold text-gray-800 dark:text-white/90", children: title ?? (isDragActive ? "Drop Files Here" : "Drag & Drop Files Here") }),
|
|
526
526
|
/* @__PURE__ */ jsx("span", { className: "mb-5 block w-full max-w-[290px] text-center text-sm text-gray-700 dark:text-gray-400", children: description }),
|
|
527
527
|
/* @__PURE__ */ jsx("span", { className: "text-theme-sm font-medium text-brand-500 underline", children: browseLabel })
|
|
@@ -626,6 +626,8 @@ var Input = ({
|
|
|
626
626
|
style,
|
|
627
627
|
...rest
|
|
628
628
|
}) => {
|
|
629
|
+
const placeholder = typeof rest.placeholder === "string" ? rest.placeholder.trim() : "";
|
|
630
|
+
const placeholderMinWidth = placeholder ? `${Math.min(Math.max(placeholder.length + 6, 18), 40)}ch` : void 0;
|
|
629
631
|
const stateClass = disabled ? "text-gray-500 border-gray-300 cursor-not-allowed dark:bg-gray-800 dark:text-gray-400 dark:border-gray-700" : error ? "text-error-800 border-error-500 focus:ring-3 focus:ring-error-500/10 dark:text-error-400 dark:border-error-500" : success ? "text-success-500 border-success-400 focus:ring-success-500/10 focus:border-success-300 dark:text-success-400 dark:border-success-500" : "text-gray-800 border-gray-300 focus:border-brand-300 focus:ring-3 focus:ring-brand-500/10 dark:border-gray-700 dark:text-white/90 dark:focus:border-brand-800";
|
|
630
632
|
return /* @__PURE__ */ jsxs("div", { className: "relative", children: [
|
|
631
633
|
/* @__PURE__ */ jsx(
|
|
@@ -637,7 +639,11 @@ var Input = ({
|
|
|
637
639
|
stateClass,
|
|
638
640
|
className
|
|
639
641
|
),
|
|
640
|
-
style: {
|
|
642
|
+
style: {
|
|
643
|
+
minWidth: placeholderMinWidth,
|
|
644
|
+
...styleOverride({ bgColor, textColor, borderColor }),
|
|
645
|
+
...style
|
|
646
|
+
},
|
|
641
647
|
...rest
|
|
642
648
|
}
|
|
643
649
|
),
|
|
@@ -677,7 +683,7 @@ function SortIcon({
|
|
|
677
683
|
{
|
|
678
684
|
"data-sort-direction": "asc",
|
|
679
685
|
"aria-hidden": "true",
|
|
680
|
-
className: cn("
|
|
686
|
+
className: cn("size-4", state === "asc" ? active : inactive)
|
|
681
687
|
}
|
|
682
688
|
),
|
|
683
689
|
/* @__PURE__ */ jsx(
|
|
@@ -685,7 +691,7 @@ function SortIcon({
|
|
|
685
691
|
{
|
|
686
692
|
"data-sort-direction": "desc",
|
|
687
693
|
"aria-hidden": "true",
|
|
688
|
-
className: cn("
|
|
694
|
+
className: cn("size-4", state === "desc" ? active : inactive)
|
|
689
695
|
}
|
|
690
696
|
)
|
|
691
697
|
]
|
|
@@ -784,7 +790,7 @@ function DataDrivenTable({
|
|
|
784
790
|
ChevronDown,
|
|
785
791
|
{
|
|
786
792
|
"aria-hidden": "true",
|
|
787
|
-
className: "pointer-events-none absolute right-3 top-1/2
|
|
793
|
+
className: "pointer-events-none absolute right-3 top-1/2 size-4 -translate-y-1/2 text-gray-500 dark:text-gray-400"
|
|
788
794
|
}
|
|
789
795
|
)
|
|
790
796
|
] }),
|
|
@@ -801,7 +807,7 @@ function DataDrivenTable({
|
|
|
801
807
|
setSearch(e.target.value);
|
|
802
808
|
setPage(1);
|
|
803
809
|
},
|
|
804
|
-
className: "
|
|
810
|
+
className: "sm:w-auto"
|
|
805
811
|
}
|
|
806
812
|
)
|
|
807
813
|
] }),
|
|
@@ -940,7 +946,7 @@ function Table({
|
|
|
940
946
|
}
|
|
941
947
|
return /* @__PURE__ */ jsx("table", { className: cn("min-w-full", className), ...rest, children });
|
|
942
948
|
}
|
|
943
|
-
var ChevronIcon = () => /* @__PURE__ */ jsx(ChevronRight, { className: "
|
|
949
|
+
var ChevronIcon = () => /* @__PURE__ */ jsx(ChevronRight, { className: "size-4", strokeWidth: 1.5, "aria-hidden": "true" });
|
|
944
950
|
var Breadcrumb = ({ pageTitle, items }) => {
|
|
945
951
|
return /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-center justify-between gap-3 mb-6", children: [
|
|
946
952
|
/* @__PURE__ */ jsx(
|
|
@@ -1010,8 +1016,8 @@ var ThemeToggleButton = ({
|
|
|
1010
1016
|
),
|
|
1011
1017
|
...rest,
|
|
1012
1018
|
children: [
|
|
1013
|
-
/* @__PURE__ */ jsx(Sun, { className: "hidden
|
|
1014
|
-
/* @__PURE__ */ jsx(Moon, { className: "
|
|
1019
|
+
/* @__PURE__ */ jsx(Sun, { className: "hidden size-4 dark:block", "aria-hidden": "true" }),
|
|
1020
|
+
/* @__PURE__ */ jsx(Moon, { className: "size-4 dark:hidden", "aria-hidden": "true" })
|
|
1015
1021
|
]
|
|
1016
1022
|
}
|
|
1017
1023
|
);
|
|
@@ -1126,7 +1132,7 @@ var Toast = ({
|
|
|
1126
1132
|
"flex h-10 w-10 shrink-0 items-center justify-center rounded-lg",
|
|
1127
1133
|
styles.iconWrap
|
|
1128
1134
|
),
|
|
1129
|
-
children: icon ?? /* @__PURE__ */ jsx(Icon, { className: "
|
|
1135
|
+
children: icon ?? /* @__PURE__ */ jsx(Icon, { className: "size-4", "aria-hidden": "true" })
|
|
1130
1136
|
}
|
|
1131
1137
|
),
|
|
1132
1138
|
/* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1", children: [
|
|
@@ -1140,7 +1146,7 @@ var Toast = ({
|
|
|
1140
1146
|
"aria-label": "Close",
|
|
1141
1147
|
onClick: onClose,
|
|
1142
1148
|
className: "absolute right-3 top-1/2 -translate-y-1/2 text-gray-400 transition hover:text-gray-700 dark:hover:text-gray-200",
|
|
1143
|
-
children: /* @__PURE__ */ jsx(X, { className: "
|
|
1149
|
+
children: /* @__PURE__ */ jsx(X, { className: "size-4", "aria-hidden": "true" })
|
|
1144
1150
|
}
|
|
1145
1151
|
),
|
|
1146
1152
|
!hideAccentBar && /* @__PURE__ */ jsx(
|
|
@@ -1159,7 +1165,7 @@ var ChevronIcon2 = ({ open }) => /* @__PURE__ */ jsx(
|
|
|
1159
1165
|
ChevronDown,
|
|
1160
1166
|
{
|
|
1161
1167
|
className: cn(
|
|
1162
|
-
"
|
|
1168
|
+
"size-4 shrink-0 text-gray-500 transition-transform duration-200 dark:text-gray-400",
|
|
1163
1169
|
open && "rotate-180"
|
|
1164
1170
|
),
|
|
1165
1171
|
"aria-hidden": "true"
|
|
@@ -1638,7 +1644,7 @@ var Drawer = ({
|
|
|
1638
1644
|
onClick: onClose,
|
|
1639
1645
|
"aria-label": "Close drawer",
|
|
1640
1646
|
className: "absolute right-3 top-3 z-99 flex h-9.5 w-9.5 items-center justify-center rounded-full bg-gray-100 text-gray-400 transition-colors hover:bg-gray-200 hover:text-gray-700 dark:bg-gray-800 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white",
|
|
1641
|
-
children: /* @__PURE__ */ jsx(X, { className: "
|
|
1647
|
+
children: /* @__PURE__ */ jsx(X, { className: "size-4", "aria-hidden": "true" })
|
|
1642
1648
|
}
|
|
1643
1649
|
),
|
|
1644
1650
|
children
|
|
@@ -1711,7 +1717,7 @@ var Chip = ({
|
|
|
1711
1717
|
"aria-label": "Remove",
|
|
1712
1718
|
onClick: onClose,
|
|
1713
1719
|
className: "ml-0.5 flex h-4 w-4 items-center justify-center rounded-full text-current opacity-70 transition hover:opacity-100 focus:outline-none",
|
|
1714
|
-
children: /* @__PURE__ */ jsx(X, { className: "
|
|
1720
|
+
children: /* @__PURE__ */ jsx(X, { className: "size-4", strokeWidth: 2, "aria-hidden": "true" })
|
|
1715
1721
|
}
|
|
1716
1722
|
)
|
|
1717
1723
|
]
|
|
@@ -1977,7 +1983,7 @@ var Snippet = ({
|
|
|
1977
1983
|
"absolute right-2 top-2 inline-flex h-7 w-7 items-center justify-center rounded-lg text-gray-500 transition hover:bg-gray-200 hover:text-gray-700 focus:outline-hidden focus:ring-3 focus:ring-brand-500/10 dark:text-gray-400 dark:hover:bg-white/10 dark:hover:text-white/90",
|
|
1978
1984
|
copied && "text-success-500 dark:text-success-500"
|
|
1979
1985
|
),
|
|
1980
|
-
children: copied ? /* @__PURE__ */ jsx(Check, { className: "
|
|
1986
|
+
children: copied ? /* @__PURE__ */ jsx(Check, { className: "size-4", "aria-hidden": "true" }) : /* @__PURE__ */ jsx(Copy, { className: "size-4", "aria-hidden": "true" })
|
|
1981
1987
|
}
|
|
1982
1988
|
)
|
|
1983
1989
|
]
|
|
@@ -2077,7 +2083,7 @@ var Checkbox = ({
|
|
|
2077
2083
|
checked && /* @__PURE__ */ jsx(
|
|
2078
2084
|
Check,
|
|
2079
2085
|
{
|
|
2080
|
-
className: "pointer-events-none absolute left-1/2 top-1/2
|
|
2086
|
+
className: "pointer-events-none absolute left-1/2 top-1/2 size-4 -translate-x-1/2 -translate-y-1/2 text-white",
|
|
2081
2087
|
strokeWidth: 3,
|
|
2082
2088
|
"aria-hidden": "true"
|
|
2083
2089
|
}
|
|
@@ -2085,7 +2091,7 @@ var Checkbox = ({
|
|
|
2085
2091
|
disabled && /* @__PURE__ */ jsx(
|
|
2086
2092
|
Check,
|
|
2087
2093
|
{
|
|
2088
|
-
className: "pointer-events-none absolute left-1/2 top-1/2
|
|
2094
|
+
className: "pointer-events-none absolute left-1/2 top-1/2 size-4 -translate-x-1/2 -translate-y-1/2 text-gray-200",
|
|
2089
2095
|
strokeWidth: 3,
|
|
2090
2096
|
"aria-hidden": "true"
|
|
2091
2097
|
}
|
|
@@ -2214,7 +2220,12 @@ var Switch = ({
|
|
|
2214
2220
|
defaultChecked = false,
|
|
2215
2221
|
disabled = false,
|
|
2216
2222
|
onChange,
|
|
2217
|
-
color = "blue"
|
|
2223
|
+
color = "blue",
|
|
2224
|
+
className,
|
|
2225
|
+
onClick,
|
|
2226
|
+
onKeyDown,
|
|
2227
|
+
"aria-label": ariaLabel,
|
|
2228
|
+
...rest
|
|
2218
2229
|
}) => {
|
|
2219
2230
|
const isControlled = checked !== void 0;
|
|
2220
2231
|
const [internalChecked, setInternalChecked] = useState(defaultChecked);
|
|
@@ -2229,6 +2240,20 @@ var Switch = ({
|
|
|
2229
2240
|
onChange(newCheckedState);
|
|
2230
2241
|
}
|
|
2231
2242
|
};
|
|
2243
|
+
const handleClick = (event) => {
|
|
2244
|
+
onClick?.(event);
|
|
2245
|
+
if (!event.defaultPrevented) {
|
|
2246
|
+
handleToggle();
|
|
2247
|
+
}
|
|
2248
|
+
};
|
|
2249
|
+
const handleKeyDown = (event) => {
|
|
2250
|
+
onKeyDown?.(event);
|
|
2251
|
+
if (event.defaultPrevented) return;
|
|
2252
|
+
if (event.key === " " || event.key === "Enter") {
|
|
2253
|
+
event.preventDefault();
|
|
2254
|
+
handleToggle();
|
|
2255
|
+
}
|
|
2256
|
+
};
|
|
2232
2257
|
const offTrack = "bg-gray-200 ring-1 ring-inset ring-gray-300 dark:bg-white/10 dark:ring-gray-700";
|
|
2233
2258
|
const switchColors = color === "blue" ? {
|
|
2234
2259
|
background: isChecked ? "bg-brand-500 " : offTrack,
|
|
@@ -2239,14 +2264,23 @@ var Switch = ({
|
|
|
2239
2264
|
// Gray version
|
|
2240
2265
|
knob: isChecked ? "translate-x-full bg-white" : "translate-x-0 bg-white"
|
|
2241
2266
|
};
|
|
2267
|
+
const hasLabel = label !== void 0 && label !== null && label !== "";
|
|
2242
2268
|
return /* @__PURE__ */ jsxs(
|
|
2243
2269
|
"label",
|
|
2244
2270
|
{
|
|
2271
|
+
role: "switch",
|
|
2272
|
+
"aria-checked": isChecked,
|
|
2273
|
+
"aria-disabled": disabled || void 0,
|
|
2274
|
+
"aria-label": ariaLabel ?? (!hasLabel ? "Toggle switch" : void 0),
|
|
2275
|
+
tabIndex: disabled ? -1 : 0,
|
|
2245
2276
|
className: cn(
|
|
2246
2277
|
"flex cursor-pointer select-none items-center gap-3 text-sm font-medium",
|
|
2247
|
-
disabled ? "text-gray-400" : "text-gray-700 dark:text-gray-400"
|
|
2278
|
+
disabled ? "text-gray-400" : "text-gray-700 dark:text-gray-400",
|
|
2279
|
+
className
|
|
2248
2280
|
),
|
|
2249
|
-
onClick:
|
|
2281
|
+
onClick: handleClick,
|
|
2282
|
+
onKeyDown: handleKeyDown,
|
|
2283
|
+
...rest,
|
|
2250
2284
|
children: [
|
|
2251
2285
|
/* @__PURE__ */ jsxs("div", { className: "relative", children: [
|
|
2252
2286
|
/* @__PURE__ */ jsx(
|
|
@@ -2268,7 +2302,7 @@ var Switch = ({
|
|
|
2268
2302
|
}
|
|
2269
2303
|
)
|
|
2270
2304
|
] }),
|
|
2271
|
-
label
|
|
2305
|
+
hasLabel && /* @__PURE__ */ jsx("span", { children: label })
|
|
2272
2306
|
]
|
|
2273
2307
|
}
|
|
2274
2308
|
);
|
|
@@ -2330,7 +2364,7 @@ var Select = ({
|
|
|
2330
2364
|
"span",
|
|
2331
2365
|
{
|
|
2332
2366
|
"aria-hidden": "true",
|
|
2333
|
-
className: "flex h-5 w-5 shrink-0 items-center justify-center [&>svg]:
|
|
2367
|
+
className: "flex h-5 w-5 shrink-0 items-center justify-center [&>svg]:size-4",
|
|
2334
2368
|
children: selectedOption.icon
|
|
2335
2369
|
}
|
|
2336
2370
|
),
|
|
@@ -2340,7 +2374,7 @@ var Select = ({
|
|
|
2340
2374
|
ChevronDown,
|
|
2341
2375
|
{
|
|
2342
2376
|
className: cn(
|
|
2343
|
-
"ml-2
|
|
2377
|
+
"ml-2 size-4 shrink-0 stroke-current text-gray-500 transition-transform dark:text-gray-400",
|
|
2344
2378
|
isOpen && "rotate-180"
|
|
2345
2379
|
),
|
|
2346
2380
|
"aria-hidden": "true"
|
|
@@ -2375,7 +2409,7 @@ var Select = ({
|
|
|
2375
2409
|
"span",
|
|
2376
2410
|
{
|
|
2377
2411
|
"aria-hidden": "true",
|
|
2378
|
-
className: "flex h-5 w-5 shrink-0 items-center justify-center [&>svg]:
|
|
2412
|
+
className: "flex h-5 w-5 shrink-0 items-center justify-center [&>svg]:size-4",
|
|
2379
2413
|
children: option.icon
|
|
2380
2414
|
}
|
|
2381
2415
|
),
|
|
@@ -2384,7 +2418,7 @@ var Select = ({
|
|
|
2384
2418
|
isSelected && /* @__PURE__ */ jsx(
|
|
2385
2419
|
Check,
|
|
2386
2420
|
{
|
|
2387
|
-
className: "ml-2
|
|
2421
|
+
className: "ml-2 size-4 shrink-0 stroke-current",
|
|
2388
2422
|
"aria-hidden": "true"
|
|
2389
2423
|
}
|
|
2390
2424
|
)
|
|
@@ -2438,7 +2472,7 @@ var MultiSelect = ({
|
|
|
2438
2472
|
{
|
|
2439
2473
|
onClick: () => removeOption(index, selectedOptions[index]),
|
|
2440
2474
|
className: "pl-2 text-gray-500 cursor-pointer group-hover:text-gray-400 dark:text-gray-400",
|
|
2441
|
-
children: /* @__PURE__ */ jsx(X, { className: "
|
|
2475
|
+
children: /* @__PURE__ */ jsx(X, { className: "size-4", role: "button", "aria-hidden": "true" })
|
|
2442
2476
|
}
|
|
2443
2477
|
) })
|
|
2444
2478
|
]
|
|
@@ -2462,7 +2496,7 @@ var MultiSelect = ({
|
|
|
2462
2496
|
children: /* @__PURE__ */ jsx(
|
|
2463
2497
|
ChevronDown,
|
|
2464
2498
|
{
|
|
2465
|
-
className: `stroke-current ${isOpen ? "rotate-180" : ""}`,
|
|
2499
|
+
className: `size-4 stroke-current ${isOpen ? "rotate-180" : ""}`,
|
|
2466
2500
|
"aria-hidden": "true"
|
|
2467
2501
|
}
|
|
2468
2502
|
)
|
|
@@ -2499,7 +2533,7 @@ var MultiSelect = ({
|
|
|
2499
2533
|
isSelected && /* @__PURE__ */ jsx(
|
|
2500
2534
|
Check,
|
|
2501
2535
|
{
|
|
2502
|
-
className: "mr-2
|
|
2536
|
+
className: "mr-2 size-4 shrink-0 stroke-current text-brand-500",
|
|
2503
2537
|
"aria-hidden": "true"
|
|
2504
2538
|
}
|
|
2505
2539
|
)
|
|
@@ -2561,7 +2595,7 @@ var DatePicker = ({
|
|
|
2561
2595
|
className: "h-11 w-full rounded-lg border appearance-none pl-4 pr-11 py-2.5 text-sm shadow-theme-xs placeholder:text-gray-400 focus:outline-hidden focus:ring-3 dark:bg-gray-900 dark:text-white/90 dark:placeholder:text-white/30 bg-white text-gray-800 border-gray-300 focus:border-brand-300 focus:ring-brand-500/20 dark:border-gray-700 dark:focus:border-brand-800"
|
|
2562
2596
|
}
|
|
2563
2597
|
),
|
|
2564
|
-
/* @__PURE__ */ jsx("span", { className: "absolute text-gray-500 -translate-y-1/2 pointer-events-none right-3 top-1/2 dark:text-gray-400", children: /* @__PURE__ */ jsx(Calendar, { className: "size-
|
|
2598
|
+
/* @__PURE__ */ jsx("span", { className: "absolute text-gray-500 -translate-y-1/2 pointer-events-none right-3 top-1/2 dark:text-gray-400", children: /* @__PURE__ */ jsx(Calendar, { className: "size-4", "aria-hidden": "true" }) })
|
|
2565
2599
|
] })
|
|
2566
2600
|
] });
|
|
2567
2601
|
};
|
|
@@ -2637,7 +2671,7 @@ var DateTimePicker = ({
|
|
|
2637
2671
|
className: "h-11 w-full appearance-none rounded-lg border border-gray-300 bg-white py-2.5 pl-4 pr-11 text-sm text-gray-800 shadow-theme-xs placeholder:text-gray-400 focus:border-brand-300 focus:outline-hidden focus:ring-3 focus:ring-brand-500/20 dark:border-gray-700 dark:bg-gray-900 dark:text-white/90 dark:placeholder:text-white/30 dark:focus:border-brand-800"
|
|
2638
2672
|
}
|
|
2639
2673
|
),
|
|
2640
|
-
/* @__PURE__ */ jsx("span", { className: "pointer-events-none absolute right-3 top-1/2 -translate-y-1/2 text-gray-500 dark:text-gray-400", children: /* @__PURE__ */ jsx(Calendar, { className: "size-
|
|
2674
|
+
/* @__PURE__ */ jsx("span", { className: "pointer-events-none absolute right-3 top-1/2 -translate-y-1/2 text-gray-500 dark:text-gray-400", children: /* @__PURE__ */ jsx(Calendar, { className: "size-4", "aria-hidden": "true" }) })
|
|
2641
2675
|
] }),
|
|
2642
2676
|
/* @__PURE__ */ jsxs("div", { className: "flex h-11 items-center rounded-lg border border-gray-300 bg-white px-3 text-sm text-gray-800 shadow-theme-xs focus-within:border-brand-300 focus-within:ring-3 focus-within:ring-brand-500/20 dark:border-gray-700 dark:bg-gray-900 dark:text-white/90 dark:focus-within:border-brand-800", children: [
|
|
2643
2677
|
/* @__PURE__ */ jsx(
|
|
@@ -2667,7 +2701,7 @@ var DateTimePicker = ({
|
|
|
2667
2701
|
className: timeFieldClass
|
|
2668
2702
|
}
|
|
2669
2703
|
),
|
|
2670
|
-
/* @__PURE__ */ jsx("span", { className: "ml-1 text-gray-500 dark:text-gray-400", children: /* @__PURE__ */ jsx(Clock, { className: "
|
|
2704
|
+
/* @__PURE__ */ jsx("span", { className: "ml-1 text-gray-500 dark:text-gray-400", children: /* @__PURE__ */ jsx(Clock, { className: "size-4", "aria-hidden": "true" }) })
|
|
2671
2705
|
] })
|
|
2672
2706
|
] })
|
|
2673
2707
|
] });
|
|
@@ -2696,7 +2730,7 @@ var PasswordInput = ({
|
|
|
2696
2730
|
onClick: () => setShow((s) => !s),
|
|
2697
2731
|
"aria-label": show ? "Hide password" : "Show password",
|
|
2698
2732
|
className: "absolute right-4 top-1/2 z-30 -translate-y-1/2 cursor-pointer text-gray-500 dark:text-gray-400",
|
|
2699
|
-
children: show ? /* @__PURE__ */ jsx(Eye, { className: "
|
|
2733
|
+
children: show ? /* @__PURE__ */ jsx(Eye, { className: "size-4", "aria-hidden": "true" }) : /* @__PURE__ */ jsx(EyeOff, { className: "size-4", "aria-hidden": "true" })
|
|
2700
2734
|
}
|
|
2701
2735
|
)
|
|
2702
2736
|
] });
|