@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/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-5FQ64bx1.cjs';
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-5FQ64bx1.js';
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-I2P4JJDB.js';
3
- export { colors_default as COLORS, PALETTE as palette, semanticTokens, vars } from './chunk-I2P4JJDB.js';
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
- AccordionPrimitive.Root,
1279
- {
1280
- type: "multiple",
1281
- defaultValue: initialOpen,
1282
- style: { paddingLeft: depth * 12 },
1283
- children: /* @__PURE__ */ jsxs(AccordionPrimitive.Item, { value: item.key, className: "border-none", children: [
1284
- /* @__PURE__ */ jsxs(
1285
- AccordionPrimitive.Trigger,
1286
- {
1287
- onClick: () => onNodeClick({
1288
- isParent: true,
1289
- key: item.key,
1290
- label: item.label,
1291
- data: item.nodeData,
1292
- parentLabel: item.parentLabel
1293
- }),
1294
- 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",
1295
- children: [
1296
- /* @__PURE__ */ jsx(
1297
- "svg",
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
- viewBox: "0 0 24 24",
1300
- fill: "none",
1301
- stroke: "currentColor",
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
- /* @__PURE__ */ jsx("span", { className: "text-sm font-semibold text-foreground select-none", children: item.label })
1316
- ]
1317
- }
1318
- ),
1319
- /* @__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(
1320
- TreeNodeItem,
1321
- {
1322
- item: child,
1323
- onNodeClick,
1324
- defaultExpandAll,
1325
- defaultExpandedKeys,
1326
- depth: depth + 1
1327
- },
1328
- child.key
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-50 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",
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-50 overflow-y-auto max-h-36 animate-in fade-in-0 zoom-in-95",
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-50 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",
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
- className: "bg-surface text-foreground border border-border rounded-lg shadow-md z-50 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",
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
- className: "bg-surface text-foreground border border-border rounded-lg shadow-md z-50 p-2 flex gap-1 animate-in fade-in-0 zoom-in-95",
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
- className: "bg-surface text-foreground border border-border rounded-lg shadow-md z-50 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",
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
- className: "bg-surface text-foreground border border-border rounded-lg shadow-md z-50 p-3 w-56 animate-in fade-in-0 zoom-in-95",
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",