@woobee/ui 0.2.4 → 0.3.0
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/dist/index.js +47 -47
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +47 -47
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -49,15 +49,15 @@ function Button({
|
|
|
49
49
|
"border bg-brown-500 border-transparent text-white": variant === "primary" && !darkMode,
|
|
50
50
|
"dark:bg-primary-500 dark:hover:bg-primary-600 dark:text-black": variant === "primary" && !darkMode,
|
|
51
51
|
"border bg-primary-500 hover:bg-primary-600 border-transparent text-black": variant === "primary" && !!darkMode,
|
|
52
|
-
"text-
|
|
52
|
+
"text-content-primary bg-white border border-gray-300 hover:text-content-secondary": variant === "secondary" && !darkMode,
|
|
53
53
|
"text-charcoal-100 bg-charcoal-800 hover:bg-charcoal-700 border border-charcoal-700": variant === "secondary" && !!darkMode,
|
|
54
|
-
"!rounded-md text-left w-full text-
|
|
54
|
+
"!rounded-md text-left w-full text-content-primary bg-white border border-gray-200 hover:bg-gray-50 hover:text-content-secondary": variant === "form-input" && !darkMode,
|
|
55
55
|
"!rounded-md text-left w-full text-charcoal-100 bg-charcoal-800 hover:bg-charcoal-700 border border-charcoal-700": variant === "form-input" && !!darkMode,
|
|
56
|
-
"dark:bg-charcoal-800 dark:hover:bg-charcoal-700 dark:text-
|
|
56
|
+
"dark:bg-charcoal-800 dark:hover:bg-charcoal-700 dark:text-content-primary dark:border-charcoal-700": (variant === "secondary" || variant === "form-input") && !darkMode,
|
|
57
57
|
"hover:text-brown-500 !shadow-none": variant === "flat" && !darkMode,
|
|
58
|
-
"dark:text-
|
|
58
|
+
"dark:text-content-primary dark:hover:text-primary-500": variant === "flat" && !darkMode,
|
|
59
59
|
"text-charcoal-100 hover:text-primary-500 !shadow-none": variant === "flat" && !!darkMode,
|
|
60
|
-
"!text-
|
|
60
|
+
"!text-content-disabled hover:!text-content-placeholder": !children && !darkMode,
|
|
61
61
|
"dark:!text-charcoal-400": !children && !darkMode,
|
|
62
62
|
"!text-charcoal-400": !children && !!darkMode,
|
|
63
63
|
...classNameObject(className)
|
|
@@ -89,7 +89,7 @@ function Tag({
|
|
|
89
89
|
{
|
|
90
90
|
className: classNames({
|
|
91
91
|
"inline-flex items-center rounded font-medium whitespace-nowrap": true,
|
|
92
|
-
"bg-cream-200 dark:bg-charcoal-700 text-
|
|
92
|
+
"bg-cream-200 dark:bg-charcoal-700 text-content-title dark:text-content-primary": !color,
|
|
93
93
|
"text-white": !!color,
|
|
94
94
|
// medium size
|
|
95
95
|
"text-sm": size === "medium",
|
|
@@ -140,7 +140,7 @@ function TagGroup({
|
|
|
140
140
|
children: tag.name
|
|
141
141
|
},
|
|
142
142
|
tag.id || tag.name
|
|
143
|
-
)) : placeholder && /* @__PURE__ */ jsx("span", { className: "text-
|
|
143
|
+
)) : placeholder && /* @__PURE__ */ jsx("span", { className: "text-content-disabled dark:text-content-placeholder text-sm flex items-center", children: placeholder })
|
|
144
144
|
}
|
|
145
145
|
);
|
|
146
146
|
}
|
|
@@ -166,7 +166,7 @@ function Tabs({
|
|
|
166
166
|
className: classNames({
|
|
167
167
|
"px-3 py-2 transition-colors rounded-lg": true,
|
|
168
168
|
"bg-white text-brown-500 dark:text-primary-500 dark:bg-charcoal-600": value === option.id,
|
|
169
|
-
"hover:text-brown-500 dark:text-
|
|
169
|
+
"hover:text-brown-500 dark:text-content-secondary dark:hover:text-primary-500": value !== option.id
|
|
170
170
|
}),
|
|
171
171
|
onClick: () => onChange(option.id),
|
|
172
172
|
children: option.label
|
|
@@ -275,7 +275,7 @@ function CheckboxList({
|
|
|
275
275
|
};
|
|
276
276
|
const renderPlaceholder = () => {
|
|
277
277
|
if (typeof placeholder === "string") {
|
|
278
|
-
return /* @__PURE__ */ jsx("div", { className: "p-4 text-center text-sm text-
|
|
278
|
+
return /* @__PURE__ */ jsx("div", { className: "p-4 text-center text-sm text-content-secondary dark:text-content-placeholder", children: placeholder });
|
|
279
279
|
}
|
|
280
280
|
return placeholder;
|
|
281
281
|
};
|
|
@@ -311,7 +311,7 @@ function CheckboxList({
|
|
|
311
311
|
{
|
|
312
312
|
className: classNames({
|
|
313
313
|
"text-sm": true,
|
|
314
|
-
"text-
|
|
314
|
+
"text-content-title dark:text-content-primary": !checked,
|
|
315
315
|
"dark:text-primary-400": checked
|
|
316
316
|
}),
|
|
317
317
|
children: label
|
|
@@ -693,7 +693,7 @@ function Modal({
|
|
|
693
693
|
}),
|
|
694
694
|
children: [
|
|
695
695
|
/* @__PURE__ */ jsxs("div", { className: "flex-1", children: [
|
|
696
|
-
/* @__PURE__ */ jsx("h3", { className: "my-0 text-base font-semibold leading-tight text-
|
|
696
|
+
/* @__PURE__ */ jsx("h3", { className: "my-0 text-base font-semibold leading-tight text-content-title ", children: title }),
|
|
697
697
|
!!description && description.length > 0 && /* @__PURE__ */ jsx("p", { className: "text-sm text-primary-700", children: description })
|
|
698
698
|
] }),
|
|
699
699
|
/* @__PURE__ */ jsx(Button, { variant: "flat", compact: true, onClick: handleClose, children: /* @__PURE__ */ jsx("svg", { className: "w-6 h-6", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: /* @__PURE__ */ jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M6 18L18 6M6 6l12 12" }) }) })
|
|
@@ -810,7 +810,7 @@ function ConfirmationBox({
|
|
|
810
810
|
disabled,
|
|
811
811
|
children: /* @__PURE__ */ jsxs("div", { className: "flex items-start space-x-4", children: [
|
|
812
812
|
iconSvg && /* @__PURE__ */ jsx("div", { className: `flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full ${iconContainerClass}`, children: iconSvg }),
|
|
813
|
-
/* @__PURE__ */ jsx("div", { className: "flex-1 pt-1.5", children: /* @__PURE__ */ jsx("p", { className: "text-sm text-
|
|
813
|
+
/* @__PURE__ */ jsx("div", { className: "flex-1 pt-1.5", children: /* @__PURE__ */ jsx("p", { className: "text-sm text-content-secondary font-medium", children: description }) })
|
|
814
814
|
] })
|
|
815
815
|
}
|
|
816
816
|
);
|
|
@@ -910,7 +910,7 @@ function Drawer({
|
|
|
910
910
|
"div",
|
|
911
911
|
{
|
|
912
912
|
"aria-label": "Close",
|
|
913
|
-
className: "-mr-3 text-primary-700 dark:text-
|
|
913
|
+
className: "-mr-3 text-primary-700 dark:text-content-title hover:text-primary-500 p-1.5 rounded-lg hover:bg-primary-100 transition ease-in-out duration-150",
|
|
914
914
|
onClick: handleClose,
|
|
915
915
|
children: /* @__PURE__ */ jsx("svg", { className: "h-6 w-6", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: /* @__PURE__ */ jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "2", d: "M6 18L18 6M6 6l12 12" }) })
|
|
916
916
|
}
|
|
@@ -991,7 +991,7 @@ function InlinePrompt({
|
|
|
991
991
|
className: classNames({
|
|
992
992
|
"inline-flex justify-center w-full rounded-md bg-transparent font-medium focus:outline-none focus:border-blue-300 focus:shadow-outline-blue active:bg-gray-50 transition ease-in-out duration-150 cursor-pointer": true,
|
|
993
993
|
"leading-5 px-4 py-2": !condensed,
|
|
994
|
-
"text-
|
|
994
|
+
"text-content-primary hover:text-content-secondary active:text-content-title text-md": !className.includes("text-"),
|
|
995
995
|
...classNameObject(className)
|
|
996
996
|
}),
|
|
997
997
|
"aria-haspopup": "true",
|
|
@@ -1070,9 +1070,9 @@ function Breadcrumb({
|
|
|
1070
1070
|
"a",
|
|
1071
1071
|
{
|
|
1072
1072
|
onClick: clickBack,
|
|
1073
|
-
className: "flex items-center text-sm leading-5 font-medium text-
|
|
1073
|
+
className: "flex items-center text-sm leading-5 font-medium text-content-secondary hover:text-content-primary transition duration-150 ease-in-out cursor-pointer",
|
|
1074
1074
|
children: [
|
|
1075
|
-
/* @__PURE__ */ jsx("svg", { className: "flex-shrink-0 -ml-1 mr-1 h-5 w-5 text-
|
|
1075
|
+
/* @__PURE__ */ jsx("svg", { className: "flex-shrink-0 -ml-1 mr-1 h-5 w-5 text-content-placeholder", viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ jsx(
|
|
1076
1076
|
"path",
|
|
1077
1077
|
{
|
|
1078
1078
|
fillRule: "evenodd",
|
|
@@ -1085,8 +1085,8 @@ function Breadcrumb({
|
|
|
1085
1085
|
}
|
|
1086
1086
|
) }),
|
|
1087
1087
|
/* @__PURE__ */ jsx("nav", { className: "hidden sm:flex items-center text-sm leading-5 font-medium", children: links && links.length > 0 && links.map((link, index) => /* @__PURE__ */ jsxs("span", { className: "inline-flex", children: [
|
|
1088
|
-
/* @__PURE__ */ jsx(LinkComponent, { href: link.href, className: "text-
|
|
1089
|
-
index !== links.length - 1 && /* @__PURE__ */ jsx("svg", { className: "flex-shrink-0 mx-2 h-5 w-5 text-
|
|
1088
|
+
/* @__PURE__ */ jsx(LinkComponent, { href: link.href, className: "text-content-secondary hover:text-content-primary transition duration-150 ease-in-out", children: link.name }),
|
|
1089
|
+
index !== links.length - 1 && /* @__PURE__ */ jsx("svg", { className: "flex-shrink-0 mx-2 h-5 w-5 text-content-placeholder", viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ jsx(
|
|
1090
1090
|
"path",
|
|
1091
1091
|
{
|
|
1092
1092
|
fillRule: "evenodd",
|
|
@@ -1192,10 +1192,10 @@ function ButtonItem({
|
|
|
1192
1192
|
"div",
|
|
1193
1193
|
{
|
|
1194
1194
|
className: classNames({
|
|
1195
|
-
"p-3 rounded-xl mx-auto text-
|
|
1195
|
+
"p-3 rounded-xl mx-auto text-content-primary/70 dark:text-content-title/50 flex justify-center cursor-pointer": true,
|
|
1196
1196
|
"w-full": direction === "vertical",
|
|
1197
1197
|
"w-full overflow-hidden": direction === "horizontal",
|
|
1198
|
-
"!text-
|
|
1198
|
+
"!text-content-primary dark:!text-primary-500 bg-white/50 dark:bg-charcoal-800/90 dark:backdrop-filter dark:backdrop-blur-sm border border-white lg:border-transparent dark:border-charcoal-700 shadow-xs dark:shadow-none": active,
|
|
1199
1199
|
...classNameObject(className)
|
|
1200
1200
|
}),
|
|
1201
1201
|
children: /* @__PURE__ */ jsxs(
|
|
@@ -1420,7 +1420,7 @@ function Th({ condensed, className, children, sticky, ...opts }) {
|
|
|
1420
1420
|
className: classNames({
|
|
1421
1421
|
...classNameObject(className),
|
|
1422
1422
|
"sticky z-10 top-0": !!sticky,
|
|
1423
|
-
"border-b border-gray-200 bg-gray-50 text-left text-xs leading-4 font-medium text-
|
|
1423
|
+
"border-b border-gray-200 bg-gray-50 text-left text-xs leading-4 font-medium text-content-secondary uppercase tracking-wider": true,
|
|
1424
1424
|
"px-6": !condensed,
|
|
1425
1425
|
"py-4": !condensed && (!className || !className.includes("py-")),
|
|
1426
1426
|
"px-2.5": !!condensed,
|
|
@@ -1549,7 +1549,7 @@ var Input = forwardRef((props, ref) => {
|
|
|
1549
1549
|
id,
|
|
1550
1550
|
className: classNames({
|
|
1551
1551
|
...classNameObject(className),
|
|
1552
|
-
"px-3 group form-input placeholder-gray-300 dark:placeholder-charcoal-400 focus:outline-none block transition ease-in-out duration-150 text-black dark:text-
|
|
1552
|
+
"px-3 group form-input placeholder-gray-300 dark:placeholder-charcoal-400 focus:outline-none block transition ease-in-out duration-150 text-black dark:text-content-primary dark:bg-charcoal-800 shadow-sm focus:dark:text-primary-500 focus:dark:border-primary-500 focus:dark:ring-primary-500": true,
|
|
1553
1553
|
"!text-white !border-charcoal-400 !placeholder-charcoal-400 focus:!text-primary-500 focus:!border-primary-500 focus:!ring-primary-500": !!darkMode,
|
|
1554
1554
|
"h-11": !className || !className.includes("h-"),
|
|
1555
1555
|
"text-sm": type !== "tel",
|
|
@@ -1614,7 +1614,7 @@ var Input = forwardRef((props, ref) => {
|
|
|
1614
1614
|
className: classNames({
|
|
1615
1615
|
"absolute inset-y-0 right-0 pr-3 flex items-center pointer-events-none focus:outline-none active:outline-none": true,
|
|
1616
1616
|
"!text-white": !!darkMode,
|
|
1617
|
-
"text-
|
|
1617
|
+
"text-content-secondary": !focused,
|
|
1618
1618
|
"!text-primary-500": focused
|
|
1619
1619
|
}),
|
|
1620
1620
|
children: /* @__PURE__ */ jsx("svg", { className: "w-5 h-5", fill: "currentColor", viewBox: "0 0 20 20", children: /* @__PURE__ */ jsx(
|
|
@@ -1629,7 +1629,7 @@ var Input = forwardRef((props, ref) => {
|
|
|
1629
1629
|
)
|
|
1630
1630
|
] }),
|
|
1631
1631
|
error && errorMessage && /* @__PURE__ */ jsx("p", { className: "mt-2 text-sm text-red-600", children: errorMessage }),
|
|
1632
|
-
info != null && !error && /* @__PURE__ */ jsx("p", { className: "mt-2 text-sm text-
|
|
1632
|
+
info != null && !error && /* @__PURE__ */ jsx("p", { className: "mt-2 text-sm text-content-secondary", children: info })
|
|
1633
1633
|
] });
|
|
1634
1634
|
});
|
|
1635
1635
|
Input.displayName = "Input";
|
|
@@ -1649,8 +1649,8 @@ function Label({
|
|
|
1649
1649
|
{
|
|
1650
1650
|
htmlFor,
|
|
1651
1651
|
className: classNames({
|
|
1652
|
-
"block text-sm font-medium mb-1.5 text-black dark:text-
|
|
1653
|
-
"text-black dark:text-
|
|
1652
|
+
"block text-sm font-medium mb-1.5 text-black dark:text-content-title": true,
|
|
1653
|
+
"text-black dark:text-content-title/80": !error,
|
|
1654
1654
|
"text-red-600": error,
|
|
1655
1655
|
...classNameObject(className)
|
|
1656
1656
|
}),
|
|
@@ -1707,7 +1707,7 @@ var Select = forwardRef((props, ref) => {
|
|
|
1707
1707
|
) }),
|
|
1708
1708
|
loading && /* @__PURE__ */ jsx("span", { className: "inline-flex relative w-6 loading" }),
|
|
1709
1709
|
error && errorMessage && /* @__PURE__ */ jsx("p", { className: "mt-2 text-sm text-red-600", children: errorMessage }),
|
|
1710
|
-
info != null && !error && /* @__PURE__ */ jsx("p", { className: "mt-2 text-sm text-
|
|
1710
|
+
info != null && !error && /* @__PURE__ */ jsx("p", { className: "mt-2 text-sm text-content-secondary", children: info })
|
|
1711
1711
|
] });
|
|
1712
1712
|
});
|
|
1713
1713
|
Select.displayName = "Select";
|
|
@@ -1779,7 +1779,7 @@ var Textarea = forwardRef((props, ref) => {
|
|
|
1779
1779
|
placeholder,
|
|
1780
1780
|
className: classNames({
|
|
1781
1781
|
...classNameObject(className),
|
|
1782
|
-
"form-input border block w-full placeholder-gray-300 dark:placeholder-white/50 dark:focus:placeholder-charcoal-400 text-sm transition ease-in-out duration-150 px-3 py-2 border-gray-200 dark:border-charcoal-700 text-black dark:text-
|
|
1782
|
+
"form-input border block w-full placeholder-gray-300 dark:placeholder-white/50 dark:focus:placeholder-charcoal-400 text-sm transition ease-in-out duration-150 px-3 py-2 border-gray-200 dark:border-charcoal-700 text-black dark:text-content-primary dark:bg-charcoal-800 rounded-lg": true,
|
|
1783
1783
|
"focus:ring-white dark:focus:ring-1 dark:focus:border-primary-600 dark:focus:ring-primary-500": !error,
|
|
1784
1784
|
"focus:outline-none focus:ring-0 focus:ring-offset-0 dark:focus:border-primary-500": true,
|
|
1785
1785
|
"border-red-300 text-red-900 placeholder-red-300 dark:placeholder-red-600 focus:border-red-300 focus:shadow-outline-red": error
|
|
@@ -1803,7 +1803,7 @@ var Textarea = forwardRef((props, ref) => {
|
|
|
1803
1803
|
) }) })
|
|
1804
1804
|
] }),
|
|
1805
1805
|
error && errorMessage && /* @__PURE__ */ jsx("p", { className: "mt-2 text-sm text-red-600", children: errorMessage }),
|
|
1806
|
-
info != null && !error && /* @__PURE__ */ jsx("p", { className: "mt-2 text-sm text-
|
|
1806
|
+
info != null && !error && /* @__PURE__ */ jsx("p", { className: "mt-2 text-sm text-content-secondary", children: info })
|
|
1807
1807
|
] });
|
|
1808
1808
|
});
|
|
1809
1809
|
Textarea.displayName = "Textarea";
|
|
@@ -1915,8 +1915,8 @@ function NoData({ className }) {
|
|
|
1915
1915
|
}
|
|
1916
1916
|
),
|
|
1917
1917
|
/* @__PURE__ */ jsxs("div", { className: "max-w-[90%] flex flex-col text-center", children: [
|
|
1918
|
-
/* @__PURE__ */ jsx("h4", { className: "text-6 font-medium text-
|
|
1919
|
-
/* @__PURE__ */ jsx("p", { className: "text-4 text-
|
|
1918
|
+
/* @__PURE__ */ jsx("h4", { className: "text-6 font-medium text-content-title mt-3 /50", children: "It's empty." }),
|
|
1919
|
+
/* @__PURE__ */ jsx("p", { className: "text-4 text-content-primary dark:text-content-title/60", children: "Nothing to do for now." })
|
|
1920
1920
|
] })
|
|
1921
1921
|
] });
|
|
1922
1922
|
}
|
|
@@ -2059,7 +2059,7 @@ function useThemeContext() {
|
|
|
2059
2059
|
}
|
|
2060
2060
|
function ThemeToggle() {
|
|
2061
2061
|
const { theme, handleToggleTheme } = useThemeContext();
|
|
2062
|
-
return /* @__PURE__ */ jsxs("div", { className: "text-
|
|
2062
|
+
return /* @__PURE__ */ jsxs("div", { className: "text-content-primary dark:text-content-title z-30 flex space-x-1.5 items-center", children: [
|
|
2063
2063
|
/* @__PURE__ */ jsx(
|
|
2064
2064
|
"div",
|
|
2065
2065
|
{
|
|
@@ -2174,7 +2174,7 @@ function PopoverCard({
|
|
|
2174
2174
|
!!description && /* @__PURE__ */ jsx("p", { className: "px-3 pb-1 opacity-70", children: description }),
|
|
2175
2175
|
actions && actions.length > 0 && /* @__PURE__ */ jsx("div", { className: "space-y-1.5 w-full", children: actions.filter((action) => (action.items || []).length > 0).map((action, actionIndex) => /* @__PURE__ */ jsxs("div", { children: [
|
|
2176
2176
|
actionIndex > 0 && /* @__PURE__ */ jsx("div", { className: "w-full h-px bg-gray-100 dark:bg-charcoal-800 mb-3" }),
|
|
2177
|
-
action.section && /* @__PURE__ */ jsx("p", { className: "px-3 text-xxs sm:text-xs uppercase text-
|
|
2177
|
+
action.section && /* @__PURE__ */ jsx("p", { className: "px-3 text-xxs sm:text-xs uppercase text-content-secondary dark:text-content-title dark:hover", children: action.section }),
|
|
2178
2178
|
/* @__PURE__ */ jsx(
|
|
2179
2179
|
"div",
|
|
2180
2180
|
{
|
|
@@ -2184,7 +2184,7 @@ function PopoverCard({
|
|
|
2184
2184
|
children: (action.items || []).map((item) => /* @__PURE__ */ jsx(
|
|
2185
2185
|
"div",
|
|
2186
2186
|
{
|
|
2187
|
-
className: "text-sm sm:text-base px-3 py-1.5 text-
|
|
2187
|
+
className: "text-sm sm:text-base px-3 py-1.5 text-content-primary dark:text-content-secondary hover:text-content-title hover:bg-gray-200 hover:dark:text-content-disabled hover:dark:bg-charcoal-700 cursor-pointer whitespace-normal",
|
|
2188
2188
|
onClick: () => handleMenuClick(item.action || item.onClick),
|
|
2189
2189
|
children: item.label
|
|
2190
2190
|
},
|
|
@@ -2233,24 +2233,24 @@ function PopoverCard({
|
|
|
2233
2233
|
}),
|
|
2234
2234
|
children: [
|
|
2235
2235
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between px-4 py-3", children: [
|
|
2236
|
-
/* @__PURE__ */ jsx("h3", { className: "font-semibold text-
|
|
2236
|
+
/* @__PURE__ */ jsx("h3", { className: "font-semibold text-content-title ", children: "Menu" }),
|
|
2237
2237
|
/* @__PURE__ */ jsx(
|
|
2238
2238
|
"div",
|
|
2239
2239
|
{
|
|
2240
2240
|
onClick: handleCloseMenu,
|
|
2241
|
-
className: "p-1 -mr-1 text-
|
|
2241
|
+
className: "p-1 -mr-1 text-content-secondary hover:bg-gray-100 dark:hover:bg-charcoal-700 rounded-full",
|
|
2242
2242
|
children: /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", className: "h-6 w-6", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: /* @__PURE__ */ jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M6 18L18 6M6 6l12 12" }) })
|
|
2243
2243
|
}
|
|
2244
2244
|
)
|
|
2245
2245
|
] }),
|
|
2246
2246
|
/* @__PURE__ */ jsxs("div", { className: "px-4 pb-6 max-h-[70vh] overflow-y-auto", children: [
|
|
2247
|
-
!!description && /* @__PURE__ */ jsx("p", { className: "mb-4 text-sm text-
|
|
2247
|
+
!!description && /* @__PURE__ */ jsx("p", { className: "mb-4 text-sm text-content-secondary ", children: description }),
|
|
2248
2248
|
/* @__PURE__ */ jsx("div", { className: "space-y-4", children: actions && actions.filter((action) => (action.items || []).length > 0).map((action, actionIndex) => /* @__PURE__ */ jsxs("div", { children: [
|
|
2249
|
-
action.section && /* @__PURE__ */ jsx("p", { className: "text-xs font-medium uppercase text-
|
|
2249
|
+
action.section && /* @__PURE__ */ jsx("p", { className: "text-xs font-medium uppercase text-content-secondary mb-2", children: action.section }),
|
|
2250
2250
|
/* @__PURE__ */ jsx("div", { className: "space-y-1", children: (action.items || []).map((item) => /* @__PURE__ */ jsx(
|
|
2251
2251
|
"div",
|
|
2252
2252
|
{
|
|
2253
|
-
className: "py-1.5 px-2 -mx-2 flex items-center text-base text-
|
|
2253
|
+
className: "py-1.5 px-2 -mx-2 flex items-center text-base text-content-title dark:text-content-primary active:bg-gray-50 dark:active:bg-charcoal-700 rounded-lg cursor-pointer",
|
|
2254
2254
|
onClick: () => handleMenuClick(item.action || item.onClick),
|
|
2255
2255
|
children: item.label
|
|
2256
2256
|
},
|
|
@@ -2980,7 +2980,7 @@ function ExcelTable({
|
|
|
2980
2980
|
"th",
|
|
2981
2981
|
{
|
|
2982
2982
|
className: classNames({
|
|
2983
|
-
"border-b border-r border-gray-200 dark:border-charcoal-600 bg-gray-50 dark:bg-charcoal-800 px-3 py-2 text-xs font-semibold text-
|
|
2983
|
+
"border-b border-r border-gray-200 dark:border-charcoal-600 bg-gray-50 dark:bg-charcoal-800 px-3 py-2 text-xs font-semibold text-content-secondary": true,
|
|
2984
2984
|
"w-auto": !col.width,
|
|
2985
2985
|
[col.width || ""]: !!col.width,
|
|
2986
2986
|
"text-left": !col.align,
|
|
@@ -3015,7 +3015,7 @@ function ExcelTable({
|
|
|
3015
3015
|
"data-row": rowIdx,
|
|
3016
3016
|
"data-col": colIdx,
|
|
3017
3017
|
placeholder: typeof placeholder === "function" ? placeholder(rowIdx) : placeholder,
|
|
3018
|
-
className: "excel-table-textarea w-full min-h-[38px] px-3 py-2 border-none focus:ring-2 focus:ring-primary-500 focus:ring-inset bg-transparent outline-none text-sm text-
|
|
3018
|
+
className: "excel-table-textarea w-full min-h-[38px] px-3 py-2 border-none focus:ring-2 focus:ring-primary-500 focus:ring-inset bg-transparent outline-none text-sm text-content-title placeholder-gray-400 resize-none overflow-hidden leading-normal block",
|
|
3019
3019
|
style: { height: "auto" }
|
|
3020
3020
|
}
|
|
3021
3021
|
) : col.type === "checkbox" ? /* @__PURE__ */ jsx("div", { className: "flex items-center justify-center h-[38px]", children: /* @__PURE__ */ jsx(
|
|
@@ -3041,7 +3041,7 @@ function ExcelTable({
|
|
|
3041
3041
|
"data-row": rowIdx,
|
|
3042
3042
|
"data-col": colIdx,
|
|
3043
3043
|
className: classNames({
|
|
3044
|
-
"w-full h-full min-h-[38px] px-3 py-1 border-none focus:ring-2 focus:ring-primary-500 focus:ring-inset bg-transparent outline-none text-sm text-
|
|
3044
|
+
"w-full h-full min-h-[38px] px-3 py-1 border-none focus:ring-2 focus:ring-primary-500 focus:ring-inset bg-transparent outline-none text-sm text-content-title ": true,
|
|
3045
3045
|
"text-left": col.align !== "center" && col.align !== "right",
|
|
3046
3046
|
"text-center": col.align === "center",
|
|
3047
3047
|
"text-right": col.align === "right"
|
|
@@ -3061,7 +3061,7 @@ function ExcelTable({
|
|
|
3061
3061
|
"data-row": rowIdx,
|
|
3062
3062
|
"data-col": columns.length,
|
|
3063
3063
|
tabIndex: 0,
|
|
3064
|
-
className: "cursor-pointer text-
|
|
3064
|
+
className: "cursor-pointer text-content-disabled hover:text-red-500 w-full h-[38px] flex items-center justify-center transition-colors focus:ring-2 focus:ring-inset focus:ring-primary-500 outline-none",
|
|
3065
3065
|
children: "\xD7"
|
|
3066
3066
|
}
|
|
3067
3067
|
) })
|
|
@@ -3073,7 +3073,7 @@ function ExcelTable({
|
|
|
3073
3073
|
onClick: onRowAdd,
|
|
3074
3074
|
onKeyDown: (e) => handleCellNavigation(e, data.length, 0),
|
|
3075
3075
|
tabIndex: 0,
|
|
3076
|
-
className: "w-full cursor-pointer text-left px-3 py-2 text-
|
|
3076
|
+
className: "w-full cursor-pointer text-left px-3 py-2 text-content-placeholder text-xs font-medium hover:text-primary-500 hover:bg-gray-50 dark:hover:bg-charcoal-800 transition-colors focus:ring-2 focus:ring-inset focus:ring-primary-500 outline-none",
|
|
3077
3077
|
children: addRowLabel
|
|
3078
3078
|
}
|
|
3079
3079
|
) }) })
|
|
@@ -3270,7 +3270,7 @@ function Coverflow({ images = [], onClose }) {
|
|
|
3270
3270
|
),
|
|
3271
3271
|
(img.imageTitle || img.imageDescription) && /* @__PURE__ */ jsxs("div", { className: "absolute bottom-0 left-0 right-0 p-3 bg-gradient-to-t from-black/90 via-black/50 to-transparent text-white text-center pointer-events-none", children: [
|
|
3272
3272
|
img.imageTitle && /* @__PURE__ */ jsx(H3, { className: "!text-base mb-1", children: img.imageTitle }),
|
|
3273
|
-
img.imageDescription && /* @__PURE__ */ jsx("p", { className: "text-xs text-
|
|
3273
|
+
img.imageDescription && /* @__PURE__ */ jsx("p", { className: "text-xs text-content-disabled max-w-2xl mx-auto", children: img.imageDescription })
|
|
3274
3274
|
] })
|
|
3275
3275
|
] })
|
|
3276
3276
|
},
|
|
@@ -3426,9 +3426,9 @@ function DataTable({
|
|
|
3426
3426
|
"table",
|
|
3427
3427
|
{
|
|
3428
3428
|
className: classNames({
|
|
3429
|
-
"w-full text-sm dark:text-
|
|
3429
|
+
"w-full text-sm dark:text-content-primary rounded-xl border-separate border-spacing-0": true,
|
|
3430
3430
|
"text-charcoal-100": !!darkMode,
|
|
3431
|
-
"text-
|
|
3431
|
+
"text-content-secondary": !darkMode
|
|
3432
3432
|
}),
|
|
3433
3433
|
children: [
|
|
3434
3434
|
/* @__PURE__ */ jsxs("thead", { children: [
|