@geomak/ui 7.3.2 → 7.3.4
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-OAV4TA4B.cjs → chunk-CNUDNGJM.cjs} +3 -2
- package/dist/chunk-CNUDNGJM.cjs.map +1 -0
- package/dist/{chunk-I2P4JJDB.js → chunk-DXOWXLKK.js} +3 -2
- package/dist/chunk-DXOWXLKK.js.map +1 -0
- package/dist/{index-5FQ64bx1.d.ts → index-BktppxXp.d.cts} +1 -0
- package/dist/{index-5FQ64bx1.d.cts → index-BktppxXp.d.ts} +1 -0
- package/dist/index.cjs +67 -71
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +62 -66
- package/dist/index.js.map +1 -1
- package/dist/styles.css +4 -3
- 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 +1 -1
- package/dist/chunk-I2P4JJDB.js.map +0 -1
- package/dist/chunk-OAV4TA4B.cjs.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { C as COLORS, S as SemanticColorKey, a as SemanticSharedKey, V as VarColorKey, b as VarDensityKey, c as VarMotionKey, d as VarRadiusKey, e as VarShadowKey, f as VarTypoKey, g as VarZIndexKey, P as palette, s as semanticTokens, v as vars } from './index-
|
|
1
|
+
export { C as COLORS, S as SemanticColorKey, a as SemanticSharedKey, V as VarColorKey, b as VarDensityKey, c as VarMotionKey, d as VarRadiusKey, e as VarShadowKey, f as VarTypoKey, g as VarZIndexKey, P as palette, s as semanticTokens, v as vars } from './index-BktppxXp.cjs';
|
|
2
2
|
export { CreateIconOptions, Icon, IconComponent, IconProps, createIcon } from './icons/index.cjs';
|
|
3
3
|
import * as react from 'react';
|
|
4
4
|
import react__default from 'react';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { C as COLORS, S as SemanticColorKey, a as SemanticSharedKey, V as VarColorKey, b as VarDensityKey, c as VarMotionKey, d as VarRadiusKey, e as VarShadowKey, f as VarTypoKey, g as VarZIndexKey, P as palette, s as semanticTokens, v as vars } from './index-
|
|
1
|
+
export { C as COLORS, S as SemanticColorKey, a as SemanticSharedKey, V as VarColorKey, b as VarDensityKey, c as VarMotionKey, d as VarRadiusKey, e as VarShadowKey, f as VarTypoKey, g as VarZIndexKey, P as palette, s as semanticTokens, v as vars } from './index-BktppxXp.js';
|
|
2
2
|
export { CreateIconOptions, Icon, IconComponent, IconProps, createIcon } from './icons/index.js';
|
|
3
3
|
import * as react from 'react';
|
|
4
4
|
import react__default from 'react';
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { icons_default as Icon, createIcon } from './chunk-KAFJJO5O.js';
|
|
2
|
-
import { colors_default } from './chunk-
|
|
3
|
-
export { colors_default as COLORS, PALETTE as palette, semanticTokens, vars } from './chunk-
|
|
2
|
+
import { colors_default } from './chunk-DXOWXLKK.js';
|
|
3
|
+
export { colors_default as COLORS, PALETTE as palette, semanticTokens, vars } from './chunk-DXOWXLKK.js';
|
|
4
4
|
import React30, { createContext, useState, useEffect, useMemo, useId, useCallback, useRef, useContext, useSyncExternalStore, useLayoutEffect } from 'react';
|
|
5
5
|
import { createPortal } from 'react-dom';
|
|
6
6
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
@@ -1249,8 +1249,7 @@ function TreeNodeItem({
|
|
|
1249
1249
|
item,
|
|
1250
1250
|
onNodeClick,
|
|
1251
1251
|
defaultExpandAll,
|
|
1252
|
-
defaultExpandedKeys
|
|
1253
|
-
depth = 0
|
|
1252
|
+
defaultExpandedKeys
|
|
1254
1253
|
}) {
|
|
1255
1254
|
if (!isParent(item)) {
|
|
1256
1255
|
return /* @__PURE__ */ jsxs(
|
|
@@ -1258,7 +1257,6 @@ function TreeNodeItem({
|
|
|
1258
1257
|
{
|
|
1259
1258
|
type: "button",
|
|
1260
1259
|
className: "flex w-full items-center gap-2.5 cursor-pointer select-none group text-left rounded-md px-2 py-1.5 hover:bg-surface-raised transition-colors duration-150 focus:outline-none focus-visible:ring-2 focus-visible:ring-accent",
|
|
1261
|
-
style: { paddingLeft: depth * 12 + 8 },
|
|
1262
1260
|
onClick: () => onNodeClick({
|
|
1263
1261
|
isParent: false,
|
|
1264
1262
|
key: item.key,
|
|
@@ -1274,62 +1272,53 @@ function TreeNodeItem({
|
|
|
1274
1272
|
);
|
|
1275
1273
|
}
|
|
1276
1274
|
const initialOpen = defaultExpandAll || defaultExpandedKeys.includes(item.key) ? [item.key] : [];
|
|
1277
|
-
return /* @__PURE__ */ jsx(
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1275
|
+
return /* @__PURE__ */ jsx(AccordionPrimitive.Root, { type: "multiple", defaultValue: initialOpen, children: /* @__PURE__ */ jsxs(AccordionPrimitive.Item, { value: item.key, className: "border-none", children: [
|
|
1276
|
+
/* @__PURE__ */ jsxs(
|
|
1277
|
+
AccordionPrimitive.Trigger,
|
|
1278
|
+
{
|
|
1279
|
+
onClick: () => onNodeClick({
|
|
1280
|
+
isParent: true,
|
|
1281
|
+
key: item.key,
|
|
1282
|
+
label: item.label,
|
|
1283
|
+
data: item.nodeData,
|
|
1284
|
+
parentLabel: item.parentLabel
|
|
1285
|
+
}),
|
|
1286
|
+
className: "flex items-center gap-2 cursor-pointer py-1.5 px-2 group focus:outline-none focus-visible:ring-2 focus-visible:ring-accent w-full text-left rounded-md hover:bg-surface-raised transition-colors duration-150",
|
|
1287
|
+
children: [
|
|
1288
|
+
/* @__PURE__ */ jsx(
|
|
1289
|
+
"svg",
|
|
1290
|
+
{
|
|
1291
|
+
viewBox: "0 0 24 24",
|
|
1292
|
+
fill: "none",
|
|
1293
|
+
stroke: "currentColor",
|
|
1294
|
+
strokeWidth: 2.5,
|
|
1295
|
+
className: "h-3.5 w-3.5 flex-shrink-0 text-foreground-muted transition-transform duration-200 group-data-[state=open]:rotate-0 group-data-[state=closed]:-rotate-90",
|
|
1296
|
+
"aria-hidden": "true",
|
|
1297
|
+
children: /* @__PURE__ */ jsx(
|
|
1298
|
+
"path",
|
|
1298
1299
|
{
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
strokeWidth: 2.5,
|
|
1303
|
-
className: "h-3.5 w-3.5 flex-shrink-0 text-foreground-muted transition-transform duration-200 group-data-[state=open]:rotate-0 group-data-[state=closed]:-rotate-90",
|
|
1304
|
-
"aria-hidden": "true",
|
|
1305
|
-
children: /* @__PURE__ */ jsx(
|
|
1306
|
-
"path",
|
|
1307
|
-
{
|
|
1308
|
-
strokeLinecap: "round",
|
|
1309
|
-
strokeLinejoin: "round",
|
|
1310
|
-
d: "M19 9l-7 7-7-7"
|
|
1311
|
-
}
|
|
1312
|
-
)
|
|
1300
|
+
strokeLinecap: "round",
|
|
1301
|
+
strokeLinejoin: "round",
|
|
1302
|
+
d: "M19 9l-7 7-7-7"
|
|
1313
1303
|
}
|
|
1314
|
-
)
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
}
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
);
|
|
1304
|
+
)
|
|
1305
|
+
}
|
|
1306
|
+
),
|
|
1307
|
+
/* @__PURE__ */ jsx("span", { className: "text-sm font-semibold text-foreground select-none", children: item.label })
|
|
1308
|
+
]
|
|
1309
|
+
}
|
|
1310
|
+
),
|
|
1311
|
+
/* @__PURE__ */ jsx(AccordionPrimitive.Content, { className: "overflow-hidden data-[state=open]:animate-accordion-down data-[state=closed]:animate-accordion-up", children: /* @__PURE__ */ jsx("div", { className: "ml-3.5 border-l border-border py-0.5", children: item.children.map((child) => /* @__PURE__ */ jsx(
|
|
1312
|
+
TreeNodeItem,
|
|
1313
|
+
{
|
|
1314
|
+
item: child,
|
|
1315
|
+
onNodeClick,
|
|
1316
|
+
defaultExpandAll,
|
|
1317
|
+
defaultExpandedKeys
|
|
1318
|
+
},
|
|
1319
|
+
child.key
|
|
1320
|
+
)) }) })
|
|
1321
|
+
] }) });
|
|
1333
1322
|
}
|
|
1334
1323
|
function Tree({
|
|
1335
1324
|
nodes,
|
|
@@ -7555,8 +7544,9 @@ function Dropdown({
|
|
|
7555
7544
|
{
|
|
7556
7545
|
align: "start",
|
|
7557
7546
|
sideOffset: 4,
|
|
7547
|
+
collisionPadding: 8,
|
|
7558
7548
|
style: { width: style?.width || 240 },
|
|
7559
|
-
className: "bg-surface text-foreground border border-border rounded-lg shadow-md z-
|
|
7549
|
+
className: "bg-surface text-foreground border border-border rounded-lg shadow-md z-popover p-2 animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",
|
|
7560
7550
|
onInteractOutside: () => setOpen(false),
|
|
7561
7551
|
children: [
|
|
7562
7552
|
hasSearch && /* @__PURE__ */ jsx("div", { className: "mb-2", children: /* @__PURE__ */ jsx(
|
|
@@ -7739,8 +7729,9 @@ function AutoComplete({
|
|
|
7739
7729
|
{
|
|
7740
7730
|
align: "start",
|
|
7741
7731
|
sideOffset: 4,
|
|
7732
|
+
collisionPadding: 8,
|
|
7742
7733
|
onOpenAutoFocus: (e) => e.preventDefault(),
|
|
7743
|
-
className: "w-64 bg-surface border border-border rounded-lg mt-1 shadow-md z-
|
|
7734
|
+
className: "w-64 bg-surface border border-border rounded-lg mt-1 shadow-md z-popover overflow-y-auto max-h-36 animate-in fade-in-0 zoom-in-95",
|
|
7744
7735
|
children: loading ? /* @__PURE__ */ jsxs("div", { className: "h-full w-full flex items-center justify-center gap-2 py-4 text-sm text-foreground-secondary", children: [
|
|
7745
7736
|
/* @__PURE__ */ jsx(LoadingSpinner, { inline: true, size: "xs" }),
|
|
7746
7737
|
/* @__PURE__ */ jsx("span", { children: loadingText })
|
|
@@ -7924,8 +7915,9 @@ function TreeSelect({
|
|
|
7924
7915
|
{
|
|
7925
7916
|
align: "start",
|
|
7926
7917
|
sideOffset: 4,
|
|
7918
|
+
collisionPadding: 8,
|
|
7927
7919
|
style: { width: style?.width || 280 },
|
|
7928
|
-
className: "bg-surface text-foreground border border-border rounded-lg shadow-md z-
|
|
7920
|
+
className: "bg-surface text-foreground border border-border rounded-lg shadow-md z-popover p-1 animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",
|
|
7929
7921
|
onOpenAutoFocus: (e) => {
|
|
7930
7922
|
e.preventDefault();
|
|
7931
7923
|
listRef.current?.focus();
|
|
@@ -8373,7 +8365,8 @@ function DatePicker({
|
|
|
8373
8365
|
{
|
|
8374
8366
|
align: "start",
|
|
8375
8367
|
sideOffset: 4,
|
|
8376
|
-
|
|
8368
|
+
collisionPadding: 8,
|
|
8369
|
+
className: "bg-surface text-foreground border border-border rounded-lg shadow-md z-popover p-3 animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",
|
|
8377
8370
|
onOpenAutoFocus: (e) => {
|
|
8378
8371
|
e.preventDefault();
|
|
8379
8372
|
},
|
|
@@ -9172,7 +9165,8 @@ function TimePicker({
|
|
|
9172
9165
|
{
|
|
9173
9166
|
align: "start",
|
|
9174
9167
|
sideOffset: 4,
|
|
9175
|
-
|
|
9168
|
+
collisionPadding: 8,
|
|
9169
|
+
className: "bg-surface text-foreground border border-border rounded-lg shadow-md z-popover p-2 flex gap-1 animate-in fade-in-0 zoom-in-95",
|
|
9176
9170
|
children: [
|
|
9177
9171
|
/* @__PURE__ */ jsx(
|
|
9178
9172
|
Column,
|
|
@@ -9345,7 +9339,8 @@ function DateRangePicker({
|
|
|
9345
9339
|
{
|
|
9346
9340
|
align: "start",
|
|
9347
9341
|
sideOffset: 4,
|
|
9348
|
-
|
|
9342
|
+
collisionPadding: 8,
|
|
9343
|
+
className: "bg-surface text-foreground border border-border rounded-lg shadow-md z-popover p-3 flex flex-col gap-3 sm:flex-row max-w-[calc(100vw-1rem)] max-h-[calc(100vh-2rem)] overflow-auto animate-in fade-in-0 zoom-in-95",
|
|
9349
9344
|
children: [
|
|
9350
9345
|
presets && presets.length > 0 && /* @__PURE__ */ jsx("div", { className: "flex flex-col gap-1 min-w-[120px] sm:pr-3 sm:border-r sm:border-border", children: presets.map((p) => /* @__PURE__ */ jsx(
|
|
9351
9346
|
"button",
|
|
@@ -9468,7 +9463,8 @@ function ColorPicker({
|
|
|
9468
9463
|
{
|
|
9469
9464
|
align: "start",
|
|
9470
9465
|
sideOffset: 4,
|
|
9471
|
-
|
|
9466
|
+
collisionPadding: 8,
|
|
9467
|
+
className: "bg-surface text-foreground border border-border rounded-lg shadow-md z-popover p-3 w-56 animate-in fade-in-0 zoom-in-95",
|
|
9472
9468
|
children: [
|
|
9473
9469
|
/* @__PURE__ */ jsx("div", { className: "grid grid-cols-6 gap-2 mb-3", children: swatches.map((sw) => /* @__PURE__ */ jsx(
|
|
9474
9470
|
"button",
|