@geomak/ui 1.4.0 → 1.5.1
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/chunk-255PCZIW.cjs +238 -0
- package/dist/chunk-255PCZIW.cjs.map +1 -0
- package/dist/chunk-GKXP6OJJ.js +233 -0
- package/dist/chunk-GKXP6OJJ.js.map +1 -0
- package/dist/index-CvyV3YPI.d.cts +293 -0
- package/dist/index-CvyV3YPI.d.ts +293 -0
- package/dist/index.cjs +154 -28
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +138 -2
- package/dist/index.d.ts +138 -2
- package/dist/index.js +128 -3
- package/dist/index.js.map +1 -1
- package/dist/styles.css +2242 -0
- package/dist/tokens/index.cjs +4 -4
- package/dist/tokens/index.d.cts +1 -1
- package/dist/tokens/index.d.ts +1 -1
- package/dist/tokens/index.js +1 -1
- package/package.json +7 -2
- package/dist/chunk-OSWZRIGC.js +0 -152
- package/dist/chunk-OSWZRIGC.js.map +0 -1
- package/dist/chunk-RLL7ES4F.cjs +0 -157
- package/dist/chunk-RLL7ES4F.cjs.map +0 -1
- package/dist/index-DLGzTj3K.d.cts +0 -191
- package/dist/index-DLGzTj3K.d.ts +0 -191
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk255PCZIW_cjs = require('./chunk-255PCZIW.cjs');
|
|
4
4
|
var jsxRuntime = require('react/jsx-runtime');
|
|
5
5
|
var React9 = require('react');
|
|
6
6
|
var Dialog = require('@radix-ui/react-dialog');
|
|
@@ -568,7 +568,7 @@ function Tabs({
|
|
|
568
568
|
onClick: toPreviousTab,
|
|
569
569
|
"aria-label": "Previous tab",
|
|
570
570
|
className: "cursor-pointer rounded-lg transition-all duration-300 hover:bg-ice-dark dark:hover:bg-independence rotate-180 flex-shrink-0",
|
|
571
|
-
children: /* @__PURE__ */ jsxRuntime.jsx("svg", { viewBox: "0 0 24 24", fill: "none", stroke:
|
|
571
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("svg", { viewBox: "0 0 24 24", fill: "none", stroke: chunk255PCZIW_cjs.colors_default.PALETTE["prussian-blue"], strokeWidth: 2, className: "h-6 w-6 dark:stroke-white", children: /* @__PURE__ */ jsxRuntime.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M9 5l7 7-7 7" }) })
|
|
572
572
|
}
|
|
573
573
|
),
|
|
574
574
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -593,7 +593,7 @@ function Tabs({
|
|
|
593
593
|
onTabClose?.(tab.key);
|
|
594
594
|
},
|
|
595
595
|
className: "flex-shrink-0 rounded hover:bg-ice-dark dark:hover:bg-independence p-0.5 transition-colors",
|
|
596
|
-
children: /* @__PURE__ */ jsxRuntime.jsx("svg", { width: "14", height: "14", viewBox: "0 0 20 20", fill: "none", children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M15 5L5 15M5 5l10 10", stroke:
|
|
596
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("svg", { width: "14", height: "14", viewBox: "0 0 20 20", fill: "none", children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M15 5L5 15M5 5l10 10", stroke: chunk255PCZIW_cjs.colors_default.PALETTE["prussian-blue"], strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", className: "dark:stroke-white" }) })
|
|
597
597
|
}
|
|
598
598
|
)
|
|
599
599
|
]
|
|
@@ -609,7 +609,7 @@ function Tabs({
|
|
|
609
609
|
onClick: toNextTab,
|
|
610
610
|
"aria-label": "Next tab",
|
|
611
611
|
className: "cursor-pointer rounded-lg transition-all duration-300 hover:bg-ice-dark dark:hover:bg-independence flex-shrink-0",
|
|
612
|
-
children: /* @__PURE__ */ jsxRuntime.jsx("svg", { viewBox: "0 0 24 24", fill: "none", stroke:
|
|
612
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("svg", { viewBox: "0 0 24 24", fill: "none", stroke: chunk255PCZIW_cjs.colors_default.PALETTE["prussian-blue"], strokeWidth: 2, className: "h-6 w-6 dark:stroke-white", children: /* @__PURE__ */ jsxRuntime.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M9 5l7 7-7 7" }) })
|
|
613
613
|
}
|
|
614
614
|
)
|
|
615
615
|
] }),
|
|
@@ -1152,7 +1152,7 @@ function CatalogCarousel({ items, buttonText, onOpen }) {
|
|
|
1152
1152
|
onClick: previousApp,
|
|
1153
1153
|
"aria-label": "Previous",
|
|
1154
1154
|
className: "cursor-pointer rounded-lg transition-all duration-300 hover:bg-ice-dark dark:hover:bg-independence rotate-180",
|
|
1155
|
-
children: /* @__PURE__ */ jsxRuntime.jsx("svg", { viewBox: "0 0 24 24", fill: "none", stroke:
|
|
1155
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("svg", { viewBox: "0 0 24 24", fill: "none", stroke: chunk255PCZIW_cjs.colors_default.PALETTE["prussian-blue"], strokeWidth: 2, className: "h-10 w-10 dark:stroke-white", children: /* @__PURE__ */ jsxRuntime.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M9 5l7 7-7 7" }) })
|
|
1156
1156
|
}
|
|
1157
1157
|
),
|
|
1158
1158
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex", children: indexPool.map((index, id) => {
|
|
@@ -1189,7 +1189,7 @@ function CatalogCarousel({ items, buttonText, onOpen }) {
|
|
|
1189
1189
|
onClick: nextApp,
|
|
1190
1190
|
"aria-label": "Next",
|
|
1191
1191
|
className: "cursor-pointer rounded-lg transition-all duration-300 hover:bg-ice-dark dark:hover:bg-independence",
|
|
1192
|
-
children: /* @__PURE__ */ jsxRuntime.jsx("svg", { viewBox: "0 0 24 24", fill: "none", stroke:
|
|
1192
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("svg", { viewBox: "0 0 24 24", fill: "none", stroke: chunk255PCZIW_cjs.colors_default.PALETTE["prussian-blue"], strokeWidth: 2, className: "h-10 w-10 dark:stroke-white", children: /* @__PURE__ */ jsxRuntime.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M9 5l7 7-7 7" }) })
|
|
1193
1193
|
}
|
|
1194
1194
|
)
|
|
1195
1195
|
] }) });
|
|
@@ -1319,7 +1319,7 @@ function ContextMenu({ items, position, visible, onClose }) {
|
|
|
1319
1319
|
item.icon,
|
|
1320
1320
|
item.value
|
|
1321
1321
|
] }),
|
|
1322
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "pointer-events-none", children: item.children && /* @__PURE__ */ jsxRuntime.jsx("svg", { viewBox: "0 0 24 24", fill: "none", stroke:
|
|
1322
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "pointer-events-none", children: item.children && /* @__PURE__ */ jsxRuntime.jsx("svg", { viewBox: "0 0 24 24", fill: "none", stroke: chunk255PCZIW_cjs.colors_default.PALETTE["prussian-blue"], strokeWidth: 2, className: "h-4 w-4", children: /* @__PURE__ */ jsxRuntime.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M9 5l7 7-7 7" }) }) })
|
|
1323
1323
|
]
|
|
1324
1324
|
},
|
|
1325
1325
|
item.key
|
|
@@ -1450,7 +1450,7 @@ var SearchInput = React9__default.default.forwardRef(function SearchInput2({
|
|
|
1450
1450
|
placeholder: placeholder ?? ""
|
|
1451
1451
|
}
|
|
1452
1452
|
),
|
|
1453
|
-
/* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill:
|
|
1453
|
+
/* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: chunk255PCZIW_cjs.colors_default.PALETTE["prussian-blue"], className: "w-6 h-6", children: /* @__PURE__ */ jsxRuntime.jsx("path", { fillRule: "evenodd", d: "M10.5 3.75a6.75 6.75 0 100 13.5 6.75 6.75 0 000-13.5zM2.25 10.5a8.25 8.25 0 1114.59 5.28l4.69 4.69a.75.75 0 11-1.06 1.06l-4.69-4.69A8.25 8.25 0 012.25 10.5z", clipRule: "evenodd" }) })
|
|
1454
1454
|
] })
|
|
1455
1455
|
]
|
|
1456
1456
|
}
|
|
@@ -1561,7 +1561,7 @@ function Dropdown({
|
|
|
1561
1561
|
] }) : /* @__PURE__ */ jsxRuntime.jsx(DropdownPill, { value: innerItems.find((it) => it.key === value)?.label })
|
|
1562
1562
|
}
|
|
1563
1563
|
),
|
|
1564
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: `transition-transform duration-300 mr-2 ${open ? "rotate-180" : "rotate-0"}`, children: /* @__PURE__ */ jsxRuntime.jsx("svg", { viewBox: "0 0 24 24", fill: "none", stroke:
|
|
1564
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: `transition-transform duration-300 mr-2 ${open ? "rotate-180" : "rotate-0"}`, children: /* @__PURE__ */ jsxRuntime.jsx("svg", { viewBox: "0 0 24 24", fill: "none", stroke: chunk255PCZIW_cjs.colors_default.PALETTE["prussian-blue"], strokeWidth: 2, className: "h-4 w-4", children: /* @__PURE__ */ jsxRuntime.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M19 9l-7 7-7-7" }) }) })
|
|
1565
1565
|
]
|
|
1566
1566
|
}
|
|
1567
1567
|
) }),
|
|
@@ -1603,7 +1603,7 @@ function Dropdown({
|
|
|
1603
1603
|
"path",
|
|
1604
1604
|
{
|
|
1605
1605
|
d: "M4 10l4.5 4.5L16 6",
|
|
1606
|
-
stroke: hoveredItem === item.key ? "#fff" :
|
|
1606
|
+
stroke: hoveredItem === item.key ? "#fff" : chunk255PCZIW_cjs.colors_default.PALETTE["prussian-blue"],
|
|
1607
1607
|
strokeWidth: "2",
|
|
1608
1608
|
strokeLinecap: "round",
|
|
1609
1609
|
strokeLinejoin: "round"
|
|
@@ -1691,7 +1691,7 @@ function TableBody({
|
|
|
1691
1691
|
onClick: () => toggleRow(row.key),
|
|
1692
1692
|
className: `p-2 cursor-pointer origin-center transition-all duration-200 ${visibleRows[row.key]?.visible ? "rotate-180" : "rotate-0"}`,
|
|
1693
1693
|
children: expandRow.expandIcon ?? /* PlusCircle */
|
|
1694
|
-
/* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill:
|
|
1694
|
+
/* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: chunk255PCZIW_cjs.colors_default.PALETTE["prussian-blue"], className: "w-5 h-5 dark:fill-white", children: /* @__PURE__ */ jsxRuntime.jsx("path", { fillRule: "evenodd", d: "M12 2.25c-5.385 0-9.75 4.365-9.75 9.75s4.365 9.75 9.75 9.75 9.75-4.365 9.75-9.75S17.385 2.25 12 2.25zM12.75 9a.75.75 0 00-1.5 0v2.25H9a.75.75 0 000 1.5h2.25V15a.75.75 0 001.5 0v-2.25H15a.75.75 0 000-1.5h-2.25V9z", clipRule: "evenodd" }) })
|
|
1695
1695
|
}
|
|
1696
1696
|
) }),
|
|
1697
1697
|
columns.map((col, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -1744,8 +1744,8 @@ function Pagination({
|
|
|
1744
1744
|
const navBtn = (icon, disabled, onClick) => /* @__PURE__ */ jsxRuntime.jsx(IconButton, { disabled, onClick, icon });
|
|
1745
1745
|
const chevronRight = (color) => /* @__PURE__ */ jsxRuntime.jsx("svg", { viewBox: "0 0 24 24", fill: "none", stroke: color, strokeWidth: 2, className: "h-5 w-5", children: /* @__PURE__ */ jsxRuntime.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M9 5l7 7-7 7" }) });
|
|
1746
1746
|
const doubleChevronRight = (color) => /* @__PURE__ */ jsxRuntime.jsx("svg", { viewBox: "0 0 24 24", fill: "none", stroke: color, strokeWidth: 2, className: "h-5 w-5", children: /* @__PURE__ */ jsxRuntime.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M13 5l7 7-7 7M5 5l7 7-7 7" }) });
|
|
1747
|
-
const disabledColor =
|
|
1748
|
-
const enabledColor =
|
|
1747
|
+
const disabledColor = chunk255PCZIW_cjs.colors_default.PALETTE["prussian-blue"];
|
|
1748
|
+
const enabledColor = chunk255PCZIW_cjs.colors_default.PALETTE.white;
|
|
1749
1749
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex gap-2 items-center justify-end pt-2", children: [
|
|
1750
1750
|
navBtn(
|
|
1751
1751
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "rotate-180 inline-flex", children: doubleChevronRight(activePage === 0 ? disabledColor : enabledColor) }),
|
|
@@ -2103,6 +2103,131 @@ function AppShell({
|
|
|
2103
2103
|
] })
|
|
2104
2104
|
] });
|
|
2105
2105
|
}
|
|
2106
|
+
function px(v) {
|
|
2107
|
+
return typeof v === "number" ? `${v}px` : v;
|
|
2108
|
+
}
|
|
2109
|
+
function str(v) {
|
|
2110
|
+
return v == null ? void 0 : String(v);
|
|
2111
|
+
}
|
|
2112
|
+
function toCssVars(theme) {
|
|
2113
|
+
if (!theme) return {};
|
|
2114
|
+
const out = {};
|
|
2115
|
+
if (theme.colors) {
|
|
2116
|
+
for (const [k, v] of Object.entries(theme.colors)) {
|
|
2117
|
+
if (v != null) out[`--color-${k}`] = v;
|
|
2118
|
+
}
|
|
2119
|
+
}
|
|
2120
|
+
if (theme.radius) {
|
|
2121
|
+
for (const [k, v] of Object.entries(theme.radius)) {
|
|
2122
|
+
if (v != null) out[`--radius-${k}`] = px(v);
|
|
2123
|
+
}
|
|
2124
|
+
}
|
|
2125
|
+
if (theme.shadows) {
|
|
2126
|
+
for (const [k, v] of Object.entries(theme.shadows)) {
|
|
2127
|
+
if (v != null) out[`--shadow-${k}`] = v;
|
|
2128
|
+
}
|
|
2129
|
+
}
|
|
2130
|
+
if (theme.typography) {
|
|
2131
|
+
const t = theme.typography;
|
|
2132
|
+
const map = [
|
|
2133
|
+
["--font-family-sans", t.fontFamily],
|
|
2134
|
+
["--font-size-xs", t.fontSizeXs],
|
|
2135
|
+
["--font-size-sm", t.fontSizeSm],
|
|
2136
|
+
["--font-size-base", t.fontSizeBase],
|
|
2137
|
+
["--font-size-lg", t.fontSizeLg],
|
|
2138
|
+
["--font-size-xl", t.fontSizeXl],
|
|
2139
|
+
["--font-size-2xl", t.fontSize2xl],
|
|
2140
|
+
["--font-size-3xl", t.fontSize3xl],
|
|
2141
|
+
["--font-weight-normal", t.fontWeightNormal],
|
|
2142
|
+
["--font-weight-medium", t.fontWeightMedium],
|
|
2143
|
+
["--font-weight-semibold", t.fontWeightSemibold],
|
|
2144
|
+
["--font-weight-bold", t.fontWeightBold],
|
|
2145
|
+
["--line-height-tight", t.lineHeightTight],
|
|
2146
|
+
["--line-height-snug", t.lineHeightSnug],
|
|
2147
|
+
["--line-height-normal", t.lineHeightNormal],
|
|
2148
|
+
["--line-height-relaxed", t.lineHeightRelaxed]
|
|
2149
|
+
];
|
|
2150
|
+
for (const [cssVar, val] of map) {
|
|
2151
|
+
const s = str(val);
|
|
2152
|
+
if (s != null) out[cssVar] = s;
|
|
2153
|
+
}
|
|
2154
|
+
}
|
|
2155
|
+
if (theme.density) {
|
|
2156
|
+
const d = theme.density;
|
|
2157
|
+
const map = [
|
|
2158
|
+
["--height-control-xs", d.controlXs],
|
|
2159
|
+
["--height-control-sm", d.controlSm],
|
|
2160
|
+
["--height-control-md", d.controlMd],
|
|
2161
|
+
["--height-control-lg", d.controlLg],
|
|
2162
|
+
["--height-topbar", d.topbar]
|
|
2163
|
+
];
|
|
2164
|
+
for (const [cssVar, val] of map) {
|
|
2165
|
+
if (val != null) out[cssVar] = px(val);
|
|
2166
|
+
}
|
|
2167
|
+
}
|
|
2168
|
+
if (theme.motion) {
|
|
2169
|
+
const m = theme.motion;
|
|
2170
|
+
const map = [
|
|
2171
|
+
["--duration-fast", m.durationFast],
|
|
2172
|
+
["--duration-normal", m.durationNormal],
|
|
2173
|
+
["--duration-slow", m.durationSlow],
|
|
2174
|
+
["--duration-gentle", m.durationGentle]
|
|
2175
|
+
];
|
|
2176
|
+
for (const [cssVar, val] of map) {
|
|
2177
|
+
if (val != null) out[cssVar] = val;
|
|
2178
|
+
}
|
|
2179
|
+
}
|
|
2180
|
+
return out;
|
|
2181
|
+
}
|
|
2182
|
+
function varsToStyleString(vars2) {
|
|
2183
|
+
return Object.entries(vars2).map(([k, v]) => `${k}: ${v};`).join(" ");
|
|
2184
|
+
}
|
|
2185
|
+
function ThemeProvider({
|
|
2186
|
+
theme,
|
|
2187
|
+
darkTheme,
|
|
2188
|
+
colorScheme = "auto",
|
|
2189
|
+
children,
|
|
2190
|
+
className = "",
|
|
2191
|
+
style
|
|
2192
|
+
}) {
|
|
2193
|
+
const id = React9__default.default.useId().replace(/:/g, "");
|
|
2194
|
+
const scopeClass = `geo-th-${id}`;
|
|
2195
|
+
const divRef = React9.useRef(null);
|
|
2196
|
+
React9.useEffect(() => {
|
|
2197
|
+
const el = divRef.current;
|
|
2198
|
+
if (!el) return;
|
|
2199
|
+
if (colorScheme === "auto") return;
|
|
2200
|
+
if (colorScheme === "system") {
|
|
2201
|
+
const mq = window.matchMedia("(prefers-color-scheme: dark)");
|
|
2202
|
+
const apply = (e) => {
|
|
2203
|
+
el.classList.toggle("dark", e.matches);
|
|
2204
|
+
};
|
|
2205
|
+
apply(mq);
|
|
2206
|
+
mq.addEventListener("change", apply);
|
|
2207
|
+
return () => mq.removeEventListener("change", apply);
|
|
2208
|
+
}
|
|
2209
|
+
el.classList.toggle("dark", colorScheme === "dark");
|
|
2210
|
+
}, [colorScheme]);
|
|
2211
|
+
const lightVars = React9.useMemo(() => toCssVars(theme), [theme]);
|
|
2212
|
+
const darkVarStr = React9.useMemo(() => {
|
|
2213
|
+
if (!darkTheme) return "";
|
|
2214
|
+
const dvars = toCssVars(darkTheme);
|
|
2215
|
+
if (!Object.keys(dvars).length) return "";
|
|
2216
|
+
return `.${scopeClass}.dark { ${varsToStyleString(dvars)} }`;
|
|
2217
|
+
}, [darkTheme]);
|
|
2218
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
2219
|
+
darkVarStr && /* @__PURE__ */ jsxRuntime.jsx("style", { dangerouslySetInnerHTML: { __html: darkVarStr } }),
|
|
2220
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2221
|
+
"div",
|
|
2222
|
+
{
|
|
2223
|
+
ref: divRef,
|
|
2224
|
+
className: `${scopeClass} ${className}`.trim(),
|
|
2225
|
+
style: { ...lightVars, ...style },
|
|
2226
|
+
children
|
|
2227
|
+
}
|
|
2228
|
+
)
|
|
2229
|
+
] });
|
|
2230
|
+
}
|
|
2106
2231
|
var SHIMMER = [
|
|
2107
2232
|
"animate-shimmer rounded-sm",
|
|
2108
2233
|
"bg-[length:400%_100%]",
|
|
@@ -2323,7 +2448,7 @@ function NumberInput({
|
|
|
2323
2448
|
{
|
|
2324
2449
|
onClick: onIncrement,
|
|
2325
2450
|
className: "rotate-180 cursor-pointer transition-all duration-300 hover:bg-ice rounded-sm",
|
|
2326
|
-
children: /* @__PURE__ */ jsxRuntime.jsx("svg", { viewBox: "0 0 24 24", fill: "none", stroke:
|
|
2451
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("svg", { viewBox: "0 0 24 24", fill: "none", stroke: chunk255PCZIW_cjs.colors_default.PALETTE["prussian-blue"], strokeWidth: 2, className: "h-3 w-3", children: /* @__PURE__ */ jsxRuntime.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M19 9l-7 7-7-7" }) })
|
|
2327
2452
|
}
|
|
2328
2453
|
),
|
|
2329
2454
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -2331,7 +2456,7 @@ function NumberInput({
|
|
|
2331
2456
|
{
|
|
2332
2457
|
onClick: onDecrement,
|
|
2333
2458
|
className: "cursor-pointer transition-all duration-300 hover:bg-ice rounded-sm",
|
|
2334
|
-
children: /* @__PURE__ */ jsxRuntime.jsx("svg", { viewBox: "0 0 24 24", fill: "none", stroke:
|
|
2459
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("svg", { viewBox: "0 0 24 24", fill: "none", stroke: chunk255PCZIW_cjs.colors_default.PALETTE["prussian-blue"], strokeWidth: 2, className: "h-3 w-3", children: /* @__PURE__ */ jsxRuntime.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M19 9l-7 7-7-7" }) })
|
|
2335
2460
|
}
|
|
2336
2461
|
)
|
|
2337
2462
|
] })
|
|
@@ -2361,7 +2486,7 @@ function Password({
|
|
|
2361
2486
|
iconColor
|
|
2362
2487
|
}) {
|
|
2363
2488
|
const [passwordVisible, setPasswordVisible] = React9.useState(false);
|
|
2364
|
-
const color = iconColor ??
|
|
2489
|
+
const color = iconColor ?? chunk255PCZIW_cjs.colors_default.PALETTE["prussian-blue"];
|
|
2365
2490
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative flex flex-col items-center justify-center", style: style ?? {}, children: [
|
|
2366
2491
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: `flex ${layout === "vertical" ? "flex-col" : "flex-row items-center gap-2"}`, children: [
|
|
2367
2492
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -2573,7 +2698,7 @@ function AutoComplete({
|
|
|
2573
2698
|
"aria-autocomplete": "list"
|
|
2574
2699
|
}
|
|
2575
2700
|
),
|
|
2576
|
-
/* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill:
|
|
2701
|
+
/* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: chunk255PCZIW_cjs.colors_default.PALETTE["prussian-blue"], className: "w-5 h-5 flex-shrink-0", children: /* @__PURE__ */ jsxRuntime.jsx("path", { fillRule: "evenodd", d: "M10.5 3.75a6.75 6.75 0 100 13.5 6.75 6.75 0 000-13.5zM2.25 10.5a8.25 8.25 0 1114.59 5.28l4.69 4.69a.75.75 0 11-1.06 1.06l-4.69-4.69A8.25 8.25 0 012.25 10.5z", clipRule: "evenodd" }) })
|
|
2577
2702
|
] }) }),
|
|
2578
2703
|
/* @__PURE__ */ jsxRuntime.jsx(Popover__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2579
2704
|
Popover__namespace.Content,
|
|
@@ -2666,7 +2791,7 @@ function TreeSelect({
|
|
|
2666
2791
|
)),
|
|
2667
2792
|
value.length > 1 && /* @__PURE__ */ jsxRuntime.jsx(DropdownPill, { value: `+${value.length - 1} more` })
|
|
2668
2793
|
] }) : value != null ? /* @__PURE__ */ jsxRuntime.jsx(DropdownPill, { value: innerItems.find((it) => it.key === value)?.label }) : null }),
|
|
2669
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: `transition-transform duration-300 ml-2 ${open ? "rotate-180" : "rotate-0"}`, children: /* @__PURE__ */ jsxRuntime.jsx("svg", { viewBox: "0 0 24 24", fill: "none", stroke:
|
|
2794
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: `transition-transform duration-300 ml-2 ${open ? "rotate-180" : "rotate-0"}`, children: /* @__PURE__ */ jsxRuntime.jsx("svg", { viewBox: "0 0 24 24", fill: "none", stroke: chunk255PCZIW_cjs.colors_default.PALETTE["prussian-blue"], strokeWidth: 2, className: "h-4 w-4", children: /* @__PURE__ */ jsxRuntime.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M19 9l-7 7-7-7" }) }) })
|
|
2670
2795
|
]
|
|
2671
2796
|
}
|
|
2672
2797
|
) }),
|
|
@@ -2696,7 +2821,7 @@ function TreeSelect({
|
|
|
2696
2821
|
"path",
|
|
2697
2822
|
{
|
|
2698
2823
|
d: "M4 10l4.5 4.5L16 6",
|
|
2699
|
-
stroke: hoveredItem === item.key ? "#fff" :
|
|
2824
|
+
stroke: hoveredItem === item.key ? "#fff" : chunk255PCZIW_cjs.colors_default.PALETTE["prussian-blue"],
|
|
2700
2825
|
strokeWidth: "2",
|
|
2701
2826
|
strokeLinecap: "round",
|
|
2702
2827
|
strokeLinejoin: "round"
|
|
@@ -2778,7 +2903,7 @@ function FileInput({
|
|
|
2778
2903
|
}
|
|
2779
2904
|
),
|
|
2780
2905
|
files.length === 0 ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col h-full items-center justify-center gap-2", children: [
|
|
2781
|
-
/* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill:
|
|
2906
|
+
/* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: chunk255PCZIW_cjs.colors_default.PALETTE["prussian-blue"], className: "w-16 h-16 dark:fill-white", children: /* @__PURE__ */ jsxRuntime.jsx("path", { fillRule: "evenodd", d: "M11.47 2.47a.75.75 0 011.06 0l4.5 4.5a.75.75 0 01-1.06 1.06l-3.22-3.22V16.5a.75.75 0 01-1.5 0V4.81L8.03 8.03a.75.75 0 01-1.06-1.06l4.5-4.5zM3 15.75a.75.75 0 01.75.75v2.25a1.5 1.5 0 001.5 1.5h13.5a1.5 1.5 0 001.5-1.5V16.5a.75.75 0 011.5 0v2.25a3 3 0 01-3 3H5.25a3 3 0 01-3-3V16.5a.75.75 0 01.75-.75z", clipRule: "evenodd" }) }),
|
|
2782
2907
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-prussian-blue dark:text-white text-sm", children: "Click or Drop a file" })
|
|
2783
2908
|
] }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex gap-3 items-center justify-center w-full h-full", children: files.map((file, id) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2784
2909
|
"div",
|
|
@@ -2795,7 +2920,7 @@ function FileInput({
|
|
|
2795
2920
|
children: /* @__PURE__ */ jsxRuntime.jsx("svg", { width: "10", height: "10", viewBox: "0 0 20 20", fill: "none", children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M15 5L5 15M5 5l10 10", stroke: "#fff", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) })
|
|
2796
2921
|
}
|
|
2797
2922
|
),
|
|
2798
|
-
/* @__PURE__ */ jsxRuntime.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill:
|
|
2923
|
+
/* @__PURE__ */ jsxRuntime.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: chunk255PCZIW_cjs.colors_default.PALETTE["prussian-blue"], className: "w-10 h-10 dark:fill-white", children: [
|
|
2799
2924
|
/* @__PURE__ */ jsxRuntime.jsx("path", { fillRule: "evenodd", d: "M5.625 1.5c-1.036 0-1.875.84-1.875 1.875v17.25c0 1.035.84 1.875 1.875 1.875h12.75c1.035 0 1.875-.84 1.875-1.875V12.75A3.75 3.75 0 0016.5 9h-1.875a1.875 1.875 0 01-1.875-1.875V5.25A3.75 3.75 0 009 1.5H5.625z", clipRule: "evenodd" }),
|
|
2800
2925
|
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M12.971 1.816A5.23 5.23 0 0114.25 5.25v1.875c0 .207.168.375.375.375H16.5a5.23 5.23 0 013.434 1.279 9.768 9.768 0 00-6.963-6.963z" })
|
|
2801
2926
|
] }),
|
|
@@ -2840,9 +2965,9 @@ function getMonthDays(year, month) {
|
|
|
2840
2965
|
}
|
|
2841
2966
|
return days;
|
|
2842
2967
|
}
|
|
2843
|
-
var ChevronRight2 = ({ color =
|
|
2844
|
-
var DoubleChevronRight2 = ({ color =
|
|
2845
|
-
var ChevronDown2 = ({ color =
|
|
2968
|
+
var ChevronRight2 = ({ color = chunk255PCZIW_cjs.colors_default.PALETTE["prussian-blue"] }) => /* @__PURE__ */ jsxRuntime.jsx("svg", { viewBox: "0 0 24 24", fill: "none", stroke: color, strokeWidth: 2, className: "w-4 h-4", children: /* @__PURE__ */ jsxRuntime.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M9 5l7 7-7 7" }) });
|
|
2969
|
+
var DoubleChevronRight2 = ({ color = chunk255PCZIW_cjs.colors_default.PALETTE["prussian-blue"] }) => /* @__PURE__ */ jsxRuntime.jsx("svg", { viewBox: "0 0 24 24", fill: "none", stroke: color, strokeWidth: 2, className: "w-4 h-4", children: /* @__PURE__ */ jsxRuntime.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M13 5l7 7-7 7M5 5l7 7-7 7" }) });
|
|
2970
|
+
var ChevronDown2 = ({ color = chunk255PCZIW_cjs.colors_default.PALETTE["prussian-blue"] }) => /* @__PURE__ */ jsxRuntime.jsx("svg", { viewBox: "0 0 24 24", fill: "none", stroke: color, strokeWidth: 2, className: "w-4 h-4", children: /* @__PURE__ */ jsxRuntime.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M19 9l-7 7-7-7" }) });
|
|
2846
2971
|
function DatePickerBase({
|
|
2847
2972
|
value,
|
|
2848
2973
|
onChange,
|
|
@@ -3099,19 +3224,19 @@ var DatePicker_default = Temporal;
|
|
|
3099
3224
|
|
|
3100
3225
|
Object.defineProperty(exports, "COLORS", {
|
|
3101
3226
|
enumerable: true,
|
|
3102
|
-
get: function () { return
|
|
3227
|
+
get: function () { return chunk255PCZIW_cjs.colors_default; }
|
|
3103
3228
|
});
|
|
3104
3229
|
Object.defineProperty(exports, "palette", {
|
|
3105
3230
|
enumerable: true,
|
|
3106
|
-
get: function () { return
|
|
3231
|
+
get: function () { return chunk255PCZIW_cjs.PALETTE; }
|
|
3107
3232
|
});
|
|
3108
3233
|
Object.defineProperty(exports, "semanticTokens", {
|
|
3109
3234
|
enumerable: true,
|
|
3110
|
-
get: function () { return
|
|
3235
|
+
get: function () { return chunk255PCZIW_cjs.semanticTokens; }
|
|
3111
3236
|
});
|
|
3112
3237
|
Object.defineProperty(exports, "vars", {
|
|
3113
3238
|
enumerable: true,
|
|
3114
|
-
get: function () { return
|
|
3239
|
+
get: function () { return chunk255PCZIW_cjs.vars; }
|
|
3115
3240
|
});
|
|
3116
3241
|
exports.AppShell = AppShell;
|
|
3117
3242
|
exports.AutoComplete = AutoComplete;
|
|
@@ -3150,6 +3275,7 @@ exports.Table = Table;
|
|
|
3150
3275
|
exports.Tabs = Tabs;
|
|
3151
3276
|
exports.Temporal = DatePicker_default;
|
|
3152
3277
|
exports.TextInput = TextInput;
|
|
3278
|
+
exports.ThemeProvider = ThemeProvider;
|
|
3153
3279
|
exports.ThemeSwitch = ThemeSwitch;
|
|
3154
3280
|
exports.ToggleButton = ToggleButton;
|
|
3155
3281
|
exports.Tooltip = Tooltip;
|