@rafal.lemieszewski/tide-ui 0.87.6 → 0.87.8

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.
Files changed (92) hide show
  1. package/dist/cjs/components/fundamental/alert-dialog.cjs +1 -1
  2. package/dist/cjs/components/fundamental/alert.cjs +1 -1
  3. package/dist/cjs/components/fundamental/avatar.cjs +1 -1
  4. package/dist/cjs/components/fundamental/badge.cjs +1 -1
  5. package/dist/cjs/components/fundamental/breadcrumb.cjs +1 -1
  6. package/dist/cjs/components/fundamental/button-group.cjs +1 -1
  7. package/dist/cjs/components/fundamental/button.cjs +1 -1
  8. package/dist/cjs/components/fundamental/calendar.cjs +1 -1
  9. package/dist/cjs/components/fundamental/card.cjs +1 -1
  10. package/dist/cjs/components/fundamental/chart.cjs +1 -1
  11. package/dist/cjs/components/fundamental/checkbox.cjs +1 -1
  12. package/dist/cjs/components/fundamental/command.cjs +1 -1
  13. package/dist/cjs/components/fundamental/dialog.cjs +1 -1
  14. package/dist/cjs/components/fundamental/drawer.cjs +1 -1
  15. package/dist/cjs/components/fundamental/dropdown-menu.cjs +1 -1
  16. package/dist/cjs/components/fundamental/file-upload.cjs +1 -1
  17. package/dist/cjs/components/fundamental/hover-card.cjs +1 -1
  18. package/dist/cjs/components/fundamental/input-group.cjs +1 -1
  19. package/dist/cjs/components/fundamental/input.cjs +1 -1
  20. package/dist/cjs/components/fundamental/kbd.cjs +1 -1
  21. package/dist/cjs/components/fundamental/month-picker.cjs +1 -1
  22. package/dist/cjs/components/fundamental/popover.cjs +1 -1
  23. package/dist/cjs/components/fundamental/resizable.cjs +1 -1
  24. package/dist/cjs/components/fundamental/select.cjs +1 -1
  25. package/dist/cjs/components/fundamental/sheet.cjs +1 -1
  26. package/dist/cjs/components/fundamental/sidebar.cjs +1 -1
  27. package/dist/cjs/components/fundamental/skeleton.cjs +1 -1
  28. package/dist/cjs/components/fundamental/slider.cjs +1 -1
  29. package/dist/cjs/components/fundamental/spinner.cjs +1 -1
  30. package/dist/cjs/components/fundamental/switch.cjs +1 -1
  31. package/dist/cjs/components/fundamental/tabs.cjs +1 -1
  32. package/dist/cjs/components/fundamental/tag.cjs +3 -3
  33. package/dist/cjs/components/fundamental/textarea.cjs +1 -1
  34. package/dist/cjs/components/fundamental/toast.cjs +1 -1
  35. package/dist/cjs/components/fundamental/toggle.cjs +1 -1
  36. package/dist/cjs/components/fundamental/tooltip.cjs +1 -1
  37. package/dist/cjs/components/fundamental/tree.cjs +1 -1
  38. package/dist/cjs/components/product/activity-log.cjs +1 -1
  39. package/dist/cjs/components/product/app-frame.cjs +1 -1
  40. package/dist/cjs/components/product/attributes-list.cjs +1 -1
  41. package/dist/cjs/components/product/bookmarks.cjs +1 -1
  42. package/dist/cjs/components/product/data-table-settings-menu.cjs +1 -1
  43. package/dist/cjs/components/product/data-table.cjs +1 -1
  44. package/dist/cjs/components/product/filters.cjs +1 -1
  45. package/dist/cjs/components/product/linked-chart.cjs +1 -1
  46. package/dist/es/components/fundamental/alert-dialog.js +10 -10
  47. package/dist/es/components/fundamental/alert.js +1 -1
  48. package/dist/es/components/fundamental/avatar.js +23 -23
  49. package/dist/es/components/fundamental/badge.js +1 -1
  50. package/dist/es/components/fundamental/breadcrumb.js +23 -23
  51. package/dist/es/components/fundamental/button-group.js +14 -14
  52. package/dist/es/components/fundamental/button.js +28 -28
  53. package/dist/es/components/fundamental/calendar.js +20 -20
  54. package/dist/es/components/fundamental/card.js +26 -26
  55. package/dist/es/components/fundamental/chart.js +1 -1
  56. package/dist/es/components/fundamental/checkbox.js +3 -3
  57. package/dist/es/components/fundamental/command.js +36 -36
  58. package/dist/es/components/fundamental/dialog.js +7 -7
  59. package/dist/es/components/fundamental/drawer.js +1 -1
  60. package/dist/es/components/fundamental/dropdown-menu.js +111 -111
  61. package/dist/es/components/fundamental/file-upload.js +2 -2
  62. package/dist/es/components/fundamental/hover-card.js +6 -6
  63. package/dist/es/components/fundamental/input-group.js +2 -2
  64. package/dist/es/components/fundamental/input.js +1 -1
  65. package/dist/es/components/fundamental/kbd.js +5 -5
  66. package/dist/es/components/fundamental/month-picker.js +21 -21
  67. package/dist/es/components/fundamental/popover.js +7 -7
  68. package/dist/es/components/fundamental/resizable.js +1 -1
  69. package/dist/es/components/fundamental/select.js +21 -21
  70. package/dist/es/components/fundamental/sheet.js +40 -40
  71. package/dist/es/components/fundamental/sidebar.js +45 -45
  72. package/dist/es/components/fundamental/skeleton.js +19 -19
  73. package/dist/es/components/fundamental/slider.js +1 -1
  74. package/dist/es/components/fundamental/spinner.js +11 -11
  75. package/dist/es/components/fundamental/switch.js +7 -7
  76. package/dist/es/components/fundamental/tabs.js +30 -30
  77. package/dist/es/components/fundamental/tag.js +28 -28
  78. package/dist/es/components/fundamental/textarea.js +9 -9
  79. package/dist/es/components/fundamental/toast.js +11 -11
  80. package/dist/es/components/fundamental/toggle.js +7 -7
  81. package/dist/es/components/fundamental/tooltip.js +4 -4
  82. package/dist/es/components/fundamental/tree.js +17 -17
  83. package/dist/es/components/product/activity-log.js +41 -41
  84. package/dist/es/components/product/app-frame.js +181 -191
  85. package/dist/es/components/product/attributes-list.js +68 -68
  86. package/dist/es/components/product/bookmarks.js +148 -148
  87. package/dist/es/components/product/data-table-settings-menu.js +45 -45
  88. package/dist/es/components/product/data-table.js +375 -375
  89. package/dist/es/components/product/filters.js +5 -5
  90. package/dist/es/components/product/linked-chart.js +24 -24
  91. package/dist/es/style.css +1 -1
  92. package/package.json +1 -1
@@ -427,7 +427,7 @@ const ve = /* @__PURE__ */ u.memo(function({ filter: r, value: s, onChange: b, o
427
427
  },
428
428
  onMouseLeave: () => M(!1),
429
429
  className: D(
430
- "group/item box-border flex gap-[var(--space-m)] h-[var(--size-m)] items-center justify-start px-[var(--space-l)] py-[var(--space-s)] relative rounded-m shrink-0 w-full cursor-pointer transition-colors",
430
+ "group/item box-border flex gap-[var(--space-m)] h-[var(--size-m)] items-center justify-start px-[var(--space-l)] py-[var(--space-s)] relative rounded-[var(--border-radius-m)] shrink-0 w-full cursor-pointer transition-colors",
431
431
  "hover:bg-[var(--color-background-neutral-hovered)]",
432
432
  s && "bg-[var(--color-background-blue-subtle-selected)] hover:bg-[var(--color-background-blue-subtle-selected-hovered)] group-focus-visible/listbox:ring-2 group-focus-visible/listbox:ring-[var(--ring-color)] group-focus-visible/listbox:ring-inset"
433
433
  ),
@@ -586,7 +586,7 @@ function Ee({
586
586
  h.group ? (c[h.group] || (c[h.group] = [], S.push(h.group)), c[h.group].push(h)) : C.push(h);
587
587
  }), { grouped: c, ungrouped: C, groupOrder: S };
588
588
  }, [x]);
589
- return /* @__PURE__ */ e("div", { className: "bg-[var(--color-surface-primary)] relative rounded-m max-h-[480px] flex flex-col", children: /* @__PURE__ */ v("div", { className: "flex items-stretch justify-start min-h-0 overflow-hidden rounded-m flex-1", children: [
589
+ return /* @__PURE__ */ e("div", { className: "bg-[var(--color-surface-primary)] relative rounded-[var(--border-radius-m)] max-h-[480px] flex flex-col", children: /* @__PURE__ */ v("div", { className: "flex items-stretch justify-start min-h-0 overflow-hidden rounded-[var(--border-radius-m)] flex-1", children: [
590
590
  /* @__PURE__ */ e(
591
591
  "div",
592
592
  {
@@ -915,7 +915,7 @@ function Xe({
915
915
  (l.key === "Enter" || l.key === " ") && (l.preventDefault(), X(c !== t.id, t.id));
916
916
  },
917
917
  className: D(
918
- "group/slot h-[var(--size-m)] rounded-l flex items-center justify-center gap-[var(--space-s)] transition-colors cursor-pointer flex-shrink-0",
918
+ "group/slot h-[var(--size-m)] rounded-[var(--border-radius-l)] flex items-center justify-center gap-[var(--space-s)] transition-colors cursor-pointer flex-shrink-0",
919
919
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring-color)] focus-visible:ring-offset-2",
920
920
  o ? "bg-[var(--color-background-neutral-selected)] hover:bg-[var(--color-background-neutral-hovered)] px-[var(--space-m)] pr-[4px]" : "border border-dashed border-[var(--color-border-primary-strong)] px-[var(--space-m)] pr-[var(--space-s)] hover:border-[var(--grey-400)] active:bg-[var(--grey-25)]"
921
921
  ),
@@ -998,7 +998,7 @@ function Xe({
998
998
  return /* @__PURE__ */ v(
999
999
  "div",
1000
1000
  {
1001
- className: "h-[var(--size-m)] rounded-l bg-[var(--color-background-neutral-selected)] hover:bg-[var(--color-background-neutral-hovered)] px-[var(--space-m)] pr-[4px] flex items-center gap-[var(--space-s)] transition-colors",
1001
+ className: "h-[var(--size-m)] rounded-[var(--border-radius-l)] bg-[var(--color-background-neutral-selected)] hover:bg-[var(--color-background-neutral-hovered)] px-[var(--space-m)] pr-[4px] flex items-center gap-[var(--space-s)] transition-colors",
1002
1002
  children: [
1003
1003
  a && /* @__PURE__ */ e(a, { className: "h-[var(--size-2xs)] w-[var(--size-2xs)] text-[var(--color-icon-primary)]" }),
1004
1004
  /* @__PURE__ */ e("span", { className: "whitespace-nowrap [&]:text-label-md text-[var(--color-text-primary)]", children: o }),
@@ -1025,7 +1025,7 @@ function Xe({
1025
1025
  variant: "ghost",
1026
1026
  onClick: W,
1027
1027
  "aria-label": "Reset all filters and search terms",
1028
- className: "h-[var(--size-m)] rounded-s px-[var(--space-m)]",
1028
+ className: "h-[var(--size-m)] rounded-[var(--border-radius-s)] px-[var(--space-m)]",
1029
1029
  children: /* @__PURE__ */ e("span", { className: "text-label-md", children: "Clear all" })
1030
1030
  }
1031
1031
  ),
@@ -1,7 +1,7 @@
1
1
  import { jsxs as l, jsx as r } from "react/jsx-runtime";
2
2
  import { useState as v, useMemo as F, useCallback as m } from "react";
3
3
  import { Chart as ee } from "../fundamental/chart.js";
4
- import { Table as re, TableHeader as te, TableRow as O, TableHead as se, TableBody as le, TableCell as ne } from "../fundamental/table.js";
4
+ import { Table as re, TableHeader as se, TableRow as O, TableHead as te, TableBody as le, TableCell as ne } from "../fundamental/table.js";
5
5
  import { Card as k, CardContent as z, CardHeader as ae, CardTitle as ie } from "../fundamental/card.js";
6
6
  import { Button as P } from "../fundamental/button.js";
7
7
  import { Icon as w } from "../fundamental/icon.js";
@@ -26,32 +26,32 @@ function ge({
26
26
  className: X,
27
27
  ...q
28
28
  }) {
29
- const [a, j] = v(/* @__PURE__ */ new Set()), [A, L] = v(null), [_, I] = v(null), [d, B] = v(/* @__PURE__ */ new Set()), [o, D] = v(!1), i = F(() => d.size > 0 ? n.filter((e, t) => d.has(t)) : o && a.size > 0 ? n.filter((e, t) => a.has(t)) : n, [n, d, a, o]), G = m((e, t) => {
30
- if (t !== void 0 && e) {
31
- const s = n.findIndex((c) => c === i[t]);
32
- I(s !== -1 ? s : null);
29
+ const [a, j] = v(/* @__PURE__ */ new Set()), [A, L] = v(null), [_, I] = v(null), [d, B] = v(/* @__PURE__ */ new Set()), [o, D] = v(!1), i = F(() => d.size > 0 ? n.filter((e, s) => d.has(s)) : o && a.size > 0 ? n.filter((e, s) => a.has(s)) : n, [n, d, a, o]), G = m((e, s) => {
30
+ if (s !== void 0 && e) {
31
+ const t = n.findIndex((c) => c === i[s]);
32
+ I(t !== -1 ? t : null);
33
33
  } else
34
34
  I(null);
35
- }, [n, i]), J = m((e, t) => {
35
+ }, [n, i]), J = m((e, s) => {
36
36
  if (!g) return;
37
- const s = n.findIndex((h) => h === i[t]);
38
- if (s === -1) return;
37
+ const t = n.findIndex((h) => h === i[s]);
38
+ if (t === -1) return;
39
39
  const c = new Set(d);
40
- c.has(s) ? c.delete(s) : c.add(s), B(c);
40
+ c.has(t) ? c.delete(t) : c.add(t), B(c);
41
41
  const $ = n.filter((h, Z) => c.has(Z));
42
42
  y?.($);
43
43
  }, [g, d, n, y, i]), K = m((e) => {
44
44
  if (!u) return;
45
- const t = new Set(a);
46
- t.has(e) ? t.delete(e) : t.add(e), j(t), x?.(Array.from(t));
45
+ const s = new Set(a);
46
+ s.has(e) ? s.delete(e) : s.add(e), j(s), x?.(Array.from(s));
47
47
  }, [u, a, x]), M = m((e) => {
48
48
  L(e);
49
49
  }, []), Q = m(() => {
50
50
  j(/* @__PURE__ */ new Set()), B(/* @__PURE__ */ new Set()), L(null), I(null), D(!1), x?.([]), y?.([]);
51
- }, [x, y]), W = m((e, t, s) => {
52
- if (t.format)
53
- return t.format(e, s);
54
- switch (t.type) {
51
+ }, [x, y]), W = m((e, s, t) => {
52
+ if (s.format)
53
+ return s.format(e, t);
54
+ switch (s.type) {
55
55
  case "currency":
56
56
  return typeof e == "number" ? `$${e.toLocaleString()}` : e;
57
57
  case "percentage":
@@ -63,7 +63,7 @@ function ge({
63
63
  }
64
64
  }, []), N = A ?? _, Y = F(() => {
65
65
  if (N !== null) {
66
- const e = i.findIndex((t) => n[N] === t);
66
+ const e = i.findIndex((s) => n[N] === s);
67
67
  return e !== -1 ? e : void 0;
68
68
  }
69
69
  }, [N, i, n]);
@@ -124,25 +124,25 @@ function ge({
124
124
  " rows"
125
125
  ] })
126
126
  ] }) }),
127
- /* @__PURE__ */ r(z, { children: /* @__PURE__ */ r("div", { className: T("rounded-m border border-[var(--color-border-primary-subtle)]", R), children: /* @__PURE__ */ l(re, { children: [
128
- /* @__PURE__ */ r(te, { children: /* @__PURE__ */ r(O, { children: b.map((e) => /* @__PURE__ */ r(se, { children: e.label }, e.key)) }) }),
129
- /* @__PURE__ */ r(le, { children: i.map((e, t) => {
130
- const s = n.indexOf(e), c = a.has(s);
127
+ /* @__PURE__ */ r(z, { children: /* @__PURE__ */ r("div", { className: T("rounded-[var(--border-radius-m)] border border-[var(--color-border-primary-subtle)]", R), children: /* @__PURE__ */ l(re, { children: [
128
+ /* @__PURE__ */ r(se, { children: /* @__PURE__ */ r(O, { children: b.map((e) => /* @__PURE__ */ r(te, { children: e.label }, e.key)) }) }),
129
+ /* @__PURE__ */ r(le, { children: i.map((e, s) => {
130
+ const t = n.indexOf(e), c = a.has(t);
131
131
  return /* @__PURE__ */ r(
132
132
  O,
133
133
  {
134
- onClick: () => K(s),
135
- onMouseEnter: () => M(s),
134
+ onClick: () => K(t),
135
+ onMouseEnter: () => M(t),
136
136
  onMouseLeave: () => M(null),
137
137
  variant: c ? "selected" : "default",
138
138
  className: T(
139
139
  "cursor-pointer transition-colors",
140
- (A === s || _ === s) && "bg-[var(--color-background-neutral-subtlest-hovered)]",
140
+ (A === t || _ === t) && "bg-[var(--color-background-neutral-subtlest-hovered)]",
141
141
  u && "hover:bg-[var(--color-background-neutral-subtlest-hovered)]"
142
142
  ),
143
143
  children: b.map((h) => /* @__PURE__ */ r(ne, { children: W(e[h.key], h, e) }, h.key))
144
144
  },
145
- s
145
+ t
146
146
  );
147
147
  }) })
148
148
  ] }) }) })