@snksergio/design-system 0.41.0 → 0.42.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.
@@ -1,7 +1,7 @@
1
- import { g as getContrastTextColor, a as FormField, e as Avatar, i as isFilterEntryActive, f as FilterPopover, T as ToolbarToolButton, h as ButtonGroup, j as ToolbarSimpleFilterDrawer, k as ACTIONS_COLUMN_WIDTH, l as TableToolbar, m as ToolbarActions, n as ToolbarFilterButton, o as ToolbarSearch, q as ToolbarApplied, r as ToolbarTabs, s as columnTypeRegistry, L as ListItem, t as List } from "./chunks/panel-Bje0kUTh.mjs";
2
- import { u, A, B, v, C, w, x, y, D, z, E, G, H, I, J, K, M, N, d, O, Q, R, S, U, F, b, V, c, W, X, P, Y, Z, _, $, a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, aa, ab, ac, ad, ae, af, ag, ah, ai, p, aj, ak, al, am, an } from "./chunks/panel-Bje0kUTh.mjs";
1
+ import { g as getContrastTextColor, a as FormField, e as Avatar, i as isFilterEntryActive, f as FilterPopover, T as ToolbarToolButton, h as ButtonGroup, j as ToolbarSimpleFilterDrawer, k as TableToolbar, l as ToolbarActions, m as ToolbarFilterButton, n as ToolbarSearch, o as ToolbarApplied, q as ToolbarTabs, r as columnTypeRegistry, L as ListItem, s as List } from "./chunks/panel-BI52RBEn.mjs";
2
+ import { t, A, B, u, C, v, w, x, D, y, z, E, G, H, I, J, K, M, d, N, O, Q, R, S, F, b, U, c, V, W, P, X, Y, Z, _, $, a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, aa, ab, ac, ad, ae, af, ag, ah, p, ai, aj, ak, al, am } from "./chunks/panel-BI52RBEn.mjs";
3
3
  import { C as Chip } from "./chunks/useTheme-B3ZakPqk.mjs";
4
- import { A as A2, a, b as b2, H as H2, c as c2, d as d2, e, f, g, M as M2, S as S2, h, i, j, k, l, m, n, U as U2, o, p as p2, q, r, s, t, v as v2, w as w2, u as u2 } from "./chunks/useTheme-B3ZakPqk.mjs";
4
+ import { A as A2, a, b as b2, H as H2, c as c2, d as d2, e, f, g, M as M2, S as S2, h, i, j, k, l, m, n, U as U2, o, p as p2, q, r, s, t as t2, v as v2, w as w2, u as u2 } from "./chunks/useTheme-B3ZakPqk.mjs";
5
5
  import { t as tv, X as Popover, $ as PopoverTrigger, _ as PopoverContent, B as Button, D as Dialog, x as DialogTrigger, c as cn, p as DialogContent, w as DialogTitle, Y as PopoverAnchor, o as DialogClose, q as DialogDescription, a0 as Tooltip, a3 as TooltipTrigger, a1 as TooltipContent, y as DropdownMenu, Q as DropdownMenuTrigger, E as DropdownMenuContent, L as DropdownMenuSeparator, G as DropdownMenuItem } from "./chunks/avatar-DFWEwBKu.mjs";
6
6
  import { R as R2, S as S3, T, U as U3, V as V2, W as W2, z as z2, H as H3, J as J2, K as K2, a9 as a92, a8 as a82 } from "./chunks/avatar-DFWEwBKu.mjs";
7
7
  import { jsxs, jsx, Fragment } from "react/jsx-runtime";
@@ -1009,7 +1009,7 @@ function actionColumn(opts) {
1009
1009
  field: "_actions",
1010
1010
  headerName: "",
1011
1011
  type: "actions",
1012
- width: opts.width ?? ACTIONS_COLUMN_WIDTH,
1012
+ ...opts.width !== void 0 ? { width: opts.width } : {},
1013
1013
  pinned: "right",
1014
1014
  getActions: opts.getActions
1015
1015
  };
@@ -3774,7 +3774,7 @@ function resolveIsImage(value, preview, accept) {
3774
3774
  }
3775
3775
  function matchesAccept(file, accept) {
3776
3776
  if (!accept) return true;
3777
- const tokens = accept.split(",").map((t2) => t2.trim().toLowerCase());
3777
+ const tokens = accept.split(",").map((t3) => t3.trim().toLowerCase());
3778
3778
  const name = file.name.toLowerCase();
3779
3779
  const mime = file.type.toLowerCase();
3780
3780
  return tokens.some((token) => {
@@ -5260,8 +5260,8 @@ function circleStream(stream, radius, delta, direction, t0, t1) {
5260
5260
  t1 = circleRadius(cosRadius, t1);
5261
5261
  if (direction > 0 ? t0 < t1 : t0 > t1) t0 += direction * tau;
5262
5262
  }
5263
- for (var point, t2 = t0; direction > 0 ? t2 > t1 : t2 < t1; t2 -= step) {
5264
- point = spherical([cosRadius, -sinRadius * cos(t2), -sinRadius * sin(t2)]);
5263
+ for (var point, t3 = t0; direction > 0 ? t3 > t1 : t3 < t1; t3 -= step) {
5264
+ point = spherical([cosRadius, -sinRadius * cos(t3), -sinRadius * sin(t3)]);
5265
5265
  stream.point(point[0], point[1]);
5266
5266
  }
5267
5267
  }
@@ -5602,19 +5602,19 @@ function clipCircle(radius) {
5602
5602
  }
5603
5603
  point0 = point2;
5604
5604
  } else if (notHemisphere && point0 && smallRadius ^ v3) {
5605
- var t2;
5606
- if (!(c3 & c0) && (t2 = intersect(point1, point0, true))) {
5605
+ var t3;
5606
+ if (!(c3 & c0) && (t3 = intersect(point1, point0, true))) {
5607
5607
  clean = 0;
5608
5608
  if (smallRadius) {
5609
5609
  stream.lineStart();
5610
- stream.point(t2[0][0], t2[0][1]);
5611
- stream.point(t2[1][0], t2[1][1]);
5610
+ stream.point(t3[0][0], t3[0][1]);
5611
+ stream.point(t3[1][0], t3[1][1]);
5612
5612
  stream.lineEnd();
5613
5613
  } else {
5614
- stream.point(t2[1][0], t2[1][1]);
5614
+ stream.point(t3[1][0], t3[1][1]);
5615
5615
  stream.lineEnd();
5616
5616
  stream.lineStart();
5617
- stream.point(t2[0][0], t2[0][1], 3);
5617
+ stream.point(t3[0][0], t3[0][1], 3);
5618
5618
  }
5619
5619
  }
5620
5620
  }
@@ -5640,9 +5640,9 @@ function clipCircle(radius) {
5640
5640
  if (!determinant) return !two && a11;
5641
5641
  var c1 = cr * n2n2 / determinant, c22 = -cr * n1n2 / determinant, n1xn2 = cartesianCross(n1, n2), A3 = cartesianScale(n1, c1), B3 = cartesianScale(n2, c22);
5642
5642
  cartesianAddInPlace(A3, B3);
5643
- var u3 = n1xn2, w3 = cartesianDot(A3, u3), uu = cartesianDot(u3, u3), t2 = w3 * w3 - uu * (cartesianDot(A3, A3) - 1);
5644
- if (t2 < 0) return;
5645
- var t3 = sqrt(t2), q2 = cartesianScale(u3, (-w3 - t3) / uu);
5643
+ var u3 = n1xn2, w3 = cartesianDot(A3, u3), uu = cartesianDot(u3, u3), t22 = w3 * w3 - uu * (cartesianDot(A3, A3) - 1);
5644
+ if (t22 < 0) return;
5645
+ var t3 = sqrt(t22), q2 = cartesianScale(u3, (-w3 - t3) / uu);
5646
5646
  cartesianAddInPlace(q2, A3);
5647
5647
  q2 = spherical(q2);
5648
5648
  if (!two) return q2;
@@ -6436,8 +6436,8 @@ function mercatorProjection(project) {
6436
6436
  return arguments.length ? (_2 == null ? x02 = y02 = x12 = y12 = null : (x02 = +_2[0][0], y02 = +_2[0][1], x12 = +_2[1][0], y12 = +_2[1][1]), reclip()) : x02 == null ? null : [[x02, y02], [x12, y12]];
6437
6437
  };
6438
6438
  function reclip() {
6439
- var k2 = pi * scale(), t2 = m2(rotation(m2.rotate()).invert([0, 0]));
6440
- return clipExtent(x02 == null ? [[t2[0] - k2, t2[1] - k2], [t2[0] + k2, t2[1] + k2]] : project === mercatorRaw ? [[Math.max(t2[0] - k2, x02), y02], [Math.min(t2[0] + k2, x12), y12]] : [[x02, Math.max(t2[1] - k2, y02)], [x12, Math.min(t2[1] + k2, y12)]]);
6439
+ var k2 = pi * scale(), t3 = m2(rotation(m2.rotate()).invert([0, 0]));
6440
+ return clipExtent(x02 == null ? [[t3[0] - k2, t3[1] - k2], [t3[0] + k2, t3[1] + k2]] : project === mercatorRaw ? [[Math.max(t3[0] - k2, x02), y02], [Math.min(t3[0] + k2, x12), y12]] : [[x02, Math.max(t3[1] - k2, y02)], [x12, Math.min(t3[1] + k2, y12)]]);
6441
6441
  }
6442
6442
  return reclip();
6443
6443
  }
@@ -6457,8 +6457,8 @@ function transform(transform2) {
6457
6457
  };
6458
6458
  }
6459
6459
  function reverse(array, n2) {
6460
- var t2, j2 = array.length, i3 = j2 - n2;
6461
- while (i3 < --j2) t2 = array[i3], array[i3++] = array[j2], array[j2] = t2;
6460
+ var t3, j2 = array.length, i3 = j2 - n2;
6461
+ while (i3 < --j2) t3 = array[i3], array[i3++] = array[j2], array[j2] = t3;
6462
6462
  }
6463
6463
  function topojsonFeature(topology, o2) {
6464
6464
  if (typeof o2 === "string") o2 = topology.objects[o2];
@@ -6634,8 +6634,8 @@ const ChoroplethMap = forwardRef(
6634
6634
  if (value === void 0 || !Number.isFinite(value)) return noDataVar;
6635
6635
  if (colorScale) return colorScale(value, { min, max });
6636
6636
  const range = max - min;
6637
- const t2 = range > 0 ? (value - min) / range : 1;
6638
- const clamped = Math.max(0, Math.min(1, t2));
6637
+ const t3 = range > 0 ? (value - min) / range : 1;
6638
+ const clamped = Math.max(0, Math.min(1, t3));
6639
6639
  const pct = 12 + clamped * 88;
6640
6640
  return `color-mix(in srgb, ${scaleVar} ${pct}%, ${surfaceVar})`;
6641
6641
  };
@@ -7061,8 +7061,8 @@ function useDataList({
7061
7061
  onQueryChangeRef.current = onQueryChange;
7062
7062
  useEffect(() => {
7063
7063
  if (mode !== "server") return;
7064
- const t2 = setTimeout(() => onQueryChangeRef.current?.(query), 250);
7065
- return () => clearTimeout(t2);
7064
+ const t3 = setTimeout(() => onQueryChangeRef.current?.(query), 250);
7065
+ return () => clearTimeout(t3);
7066
7066
  }, [mode, query]);
7067
7067
  const setSearch = useCallback((search) => {
7068
7068
  setActiveViewId(null);
@@ -7782,7 +7782,7 @@ const STRIP_SONNER_BOX = {
7782
7782
  function show(opts, status) {
7783
7783
  const { duration, position, id, ...card } = opts;
7784
7784
  return toast$1.custom(
7785
- (t2) => /* @__PURE__ */ jsx(ToastCard, { ...card, status, toastId: t2 }),
7785
+ (t3) => /* @__PURE__ */ jsx(ToastCard, { ...card, status, toastId: t3 }),
7786
7786
  { duration, position, id, classNames: STRIP_SONNER_BOX }
7787
7787
  );
7788
7788
  }
@@ -7868,14 +7868,14 @@ function useBrand(options) {
7868
7868
  return { brand, brands, current, setBrand, toggle, isBrand };
7869
7869
  }
7870
7870
  export {
7871
- u as AddViewModal,
7871
+ t as AddViewModal,
7872
7872
  A as AlertModal,
7873
7873
  A2 as AppShell,
7874
7874
  Avatar,
7875
7875
  BRANDS,
7876
7876
  B2 as Badge,
7877
7877
  B as BulkActionButton,
7878
- v as BulkActionsBar,
7878
+ u as BulkActionsBar,
7879
7879
  Button,
7880
7880
  ButtonGroup,
7881
7881
  CardCheckbox,
@@ -7891,38 +7891,38 @@ export {
7891
7891
  ChoroplethMap,
7892
7892
  ColorPicker,
7893
7893
  C as ColsPanel,
7894
- w as ColsPopover,
7895
- x as Combobox,
7894
+ v as ColsPopover,
7895
+ w as Combobox,
7896
7896
  ConversationListItem,
7897
7897
  DEFAULT_COLOR_PRESETS,
7898
- y as DEFAULT_FILTER_OPERATORS,
7898
+ x as DEFAULT_FILTER_OPERATORS,
7899
7899
  DEFAULT_MESSAGE_VARIABLES,
7900
7900
  DataList,
7901
7901
  D as DataTable,
7902
- z as DataTableActionsCell,
7903
- E as DataTableEditCell,
7904
- G as DataTableEmpty,
7905
- H as DataTableFloatingBulkBar,
7906
- I as DataTableLoading,
7907
- J as DataTableNoResults,
7908
- K as DataTableTotalizerRow,
7902
+ y as DataTableActionsCell,
7903
+ z as DataTableEditCell,
7904
+ E as DataTableEmpty,
7905
+ G as DataTableFloatingBulkBar,
7906
+ H as DataTableLoading,
7907
+ I as DataTableNoResults,
7908
+ J as DataTableTotalizerRow,
7909
7909
  DatePicker,
7910
7910
  DateSeparatorChip,
7911
7911
  EmptyState,
7912
- M as FLOATING_PANEL_SIZE_PX,
7912
+ K as FLOATING_PANEL_SIZE_PX,
7913
7913
  FileUploadField,
7914
- N as FilterPanel,
7914
+ M as FilterPanel,
7915
7915
  FilterPopover,
7916
7916
  d as FloatingPanel,
7917
- O as FloatingPanelField,
7918
- Q as FloatingPanelSection,
7919
- R as FooterTable,
7920
- S as FooterTableSkeleton,
7917
+ N as FloatingPanelField,
7918
+ O as FloatingPanelSection,
7919
+ Q as FooterTable,
7920
+ R as FooterTableSkeleton,
7921
7921
  FormField,
7922
- U as FormFieldCheckbox,
7922
+ S as FormFieldCheckbox,
7923
7923
  F as FormFieldInput,
7924
7924
  b as FormFieldSelect,
7925
- V as FormFieldSwitch,
7925
+ U as FormFieldSwitch,
7926
7926
  c as FormFieldTextarea,
7927
7927
  H2 as Header,
7928
7928
  c2 as HeaderBreadcrumb,
@@ -7938,7 +7938,7 @@ export {
7938
7938
  U3 as InputGroupInput,
7939
7939
  V2 as InputGroupText,
7940
7940
  W2 as InputGroupTextarea,
7941
- W as Kanban,
7941
+ V as Kanban,
7942
7942
  a10 as Kpi,
7943
7943
  b3 as KpiDelta,
7944
7944
  K3 as KpiGroup,
@@ -7953,7 +7953,7 @@ export {
7953
7953
  MessageVariablesPicker,
7954
7954
  Modal,
7955
7955
  MonthYearPicker,
7956
- X as MoreMenu,
7956
+ W as MoreMenu,
7957
7957
  z2 as MoreMenuCheckboxItem,
7958
7958
  DropdownMenuItem as MoreMenuItem,
7959
7959
  H3 as MoreMenuLabel,
@@ -7962,14 +7962,14 @@ export {
7962
7962
  DropdownMenuSeparator as MoreMenuSeparator,
7963
7963
  P2 as PageHeader,
7964
7964
  P as Panel,
7965
- Y as PanelBody,
7965
+ X as PanelBody,
7966
7966
  G2 as PanelCloseAction,
7967
7967
  H4 as PanelContent,
7968
- Z as PanelFooter,
7969
- _ as PanelHeader,
7968
+ Y as PanelFooter,
7969
+ Z as PanelHeader,
7970
7970
  F2 as PanelRoot,
7971
7971
  O2 as PanelTrigger,
7972
- $ as SELECTION_COLUMN_WIDTH,
7972
+ _ as SELECTION_COLUMN_WIDTH,
7973
7973
  S2 as SidebarBrandIcon,
7974
7974
  h as SidebarItem,
7975
7975
  i as SidebarPanel,
@@ -7978,37 +7978,37 @@ export {
7978
7978
  l as SidebarSection,
7979
7979
  m as SidebarSubgroup,
7980
7980
  n as SingleMenuSidebar,
7981
- a0 as SortPanel,
7982
- a1 as SortPopover,
7981
+ $ as SortPanel,
7982
+ a0 as SortPopover,
7983
7983
  Spinner,
7984
- a2 as TABLE_HEADER_HEIGHT,
7985
- a3 as Table,
7986
- a4 as TableBody,
7987
- a5 as TableCardRow,
7988
- a6 as TableCell,
7989
- a7 as TableHead,
7990
- a8 as TableHeadCell,
7991
- a9 as TableRow,
7984
+ a1 as TABLE_HEADER_HEIGHT,
7985
+ a2 as Table,
7986
+ a3 as TableBody,
7987
+ a4 as TableCardRow,
7988
+ a5 as TableCell,
7989
+ a6 as TableHead,
7990
+ a7 as TableHeadCell,
7991
+ a8 as TableRow,
7992
7992
  TableToolbar,
7993
- aa as TableToolbarViews,
7993
+ a9 as TableToolbarViews,
7994
7994
  ToastCard,
7995
7995
  ToolbarApplied,
7996
- ab as ToolbarDivider,
7996
+ aa as ToolbarDivider,
7997
7997
  ToolbarFilterControl,
7998
7998
  ToolbarMobileDialog,
7999
7999
  ToolbarMobileSection,
8000
8000
  ToolbarMobileSheet,
8001
- ac as ToolbarSaveButton,
8001
+ ab as ToolbarSaveButton,
8002
8002
  ToolbarSearch,
8003
- ad as ToolbarSegmented,
8004
- ae as ToolbarSettingsMenu,
8003
+ ac as ToolbarSegmented,
8004
+ ad as ToolbarSettingsMenu,
8005
8005
  ToolbarSimpleFilterDrawer,
8006
8006
  ToolbarTabs,
8007
8007
  ToolbarToolButton,
8008
8008
  U2 as UserMenu,
8009
- af as ViewsPopover,
8009
+ ae as ViewsPopover,
8010
8010
  actionColumn,
8011
- ag as avatarVariants,
8011
+ af as avatarVariants,
8012
8012
  aH as badgeVariants,
8013
8013
  a92 as buttonVariants,
8014
8014
  cardCheckbox,
@@ -8023,7 +8023,7 @@ export {
8023
8023
  dateSeparatorChipStyles,
8024
8024
  emailColumn,
8025
8025
  emptyStateStyles,
8026
- ah as floatingPanelStyles,
8026
+ ag as floatingPanelStyles,
8027
8027
  iconStyles,
8028
8028
  icons,
8029
8029
  a82 as inputGroupVariants,
@@ -8039,22 +8039,22 @@ export {
8039
8039
  messageVariablesPickerStyles,
8040
8040
  numberColumn,
8041
8041
  p3 as pageHeaderStyles,
8042
- ai as panelContainer,
8042
+ ah as panelContainer,
8043
8043
  phoneColumn,
8044
8044
  p as presetView,
8045
- aj as savedViewsMockService,
8046
- t as shouldPreventNavigation,
8045
+ ai as savedViewsMockService,
8046
+ t2 as shouldPreventNavigation,
8047
8047
  statusColumn,
8048
8048
  textColumn,
8049
8049
  toast,
8050
8050
  toastVariants,
8051
8051
  useBrand,
8052
8052
  useChart,
8053
- ak as useColumnResize,
8054
- al as useColumnWidths,
8053
+ aj as useColumnResize,
8054
+ ak as useColumnWidths,
8055
8055
  v2 as useControllable,
8056
- am as useDataTableContext,
8057
- an as useFloatingPanelResize,
8056
+ al as useDataTableContext,
8057
+ am as useFloatingPanelResize,
8058
8058
  w2 as useMediaQuery,
8059
8059
  u2 as useTheme,
8060
8060
  useToolbarFilterControl,