@rafal.lemieszewski/tide-ui 0.87.7 → 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 +3 -3
  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
@@ -1,11 +1,11 @@
1
- import { jsxs as i, jsx as n } from "react/jsx-runtime";
2
- import { useState as I, useId as m, useCallback as u, useMemo as f } from "react";
1
+ import { jsxs as n, jsx as i } from "react/jsx-runtime";
2
+ import { useState as I, useId as m, useCallback as u, useMemo as v } from "react";
3
3
  import { Button as U } from "../fundamental/button.js";
4
4
  import { DropdownMenu as X, DropdownMenuTrigger as Y, DropdownMenuContent as _, DropdownMenuSeparator as ee } from "../fundamental/dropdown-menu.js";
5
- import { Select as v, SelectTrigger as b, SelectValue as w, SelectContent as x, SelectItem as o } from "../fundamental/select.js";
6
- import { Toggle as ne } from "../fundamental/toggle.js";
5
+ import { Select as f, SelectTrigger as b, SelectValue as w, SelectContent as x, SelectItem as o } from "../fundamental/select.js";
6
+ import { Toggle as ie } from "../fundamental/toggle.js";
7
7
  import { Icon as R } from "../fundamental/icon.js";
8
- import { Settings as ie, ArrowDownNarrowWide as ae, ArrowDownWideNarrow as re } from "lucide-react";
8
+ import { Settings as ne, ArrowDownNarrowWide as ae, ArrowDownWideNarrow as re } from "lucide-react";
9
9
  import { Input as se } from "../fundamental/input.js";
10
10
  function j(a) {
11
11
  if (a?.directionOptions)
@@ -55,53 +55,53 @@ function me({
55
55
  }, [d, S]), J = u((e, r) => {
56
56
  const s = t.find((g) => g.id === e)?.label;
57
57
  c(r ? `${s} column shown` : `${s} column hidden`), D?.(e, r);
58
- }, [t, D]), z = a.length > 0, A = d.length > 0, $ = t.length > 0, V = z || A, G = f(
58
+ }, [t, D]), z = a.length > 0, A = d.length > 0, $ = t.length > 0, V = z || A, G = v(
59
59
  () => a.find((e) => e.id === l),
60
60
  [a, l]
61
- ), H = f(
61
+ ), H = v(
62
62
  () => j(G),
63
63
  [G]
64
- ), p = f(() => {
64
+ ), p = v(() => {
65
65
  if (!h) return t;
66
66
  const e = h.toLowerCase();
67
67
  return t.filter(
68
68
  (r) => r.label.toLowerCase().includes(e)
69
69
  );
70
70
  }, [t, h]), K = t.length >= 20;
71
- return /* @__PURE__ */ i(X, { children: [
72
- /* @__PURE__ */ n(Y, { asChild: !0, children: /* @__PURE__ */ n(
71
+ return /* @__PURE__ */ n(X, { children: [
72
+ /* @__PURE__ */ i(Y, { asChild: !0, children: /* @__PURE__ */ i(
73
73
  U,
74
74
  {
75
75
  size: "m",
76
- icon: ie,
76
+ icon: ne,
77
77
  "aria-label": "Table settings",
78
78
  className: k
79
79
  }
80
80
  ) }),
81
- /* @__PURE__ */ i(_, { align: Z, className: "w-72 max-w-[90vw]", children: [
82
- V && /* @__PURE__ */ n("div", { className: "p-3", children: /* @__PURE__ */ i("div", { className: "space-y-4", children: [
83
- z && /* @__PURE__ */ i("div", { className: "space-y-2", role: "group", "aria-labelledby": L, children: [
84
- /* @__PURE__ */ n("h4", { id: L, className: "text-label-sm text-[var(--color-text-tertiary)]", children: "Sorting" }),
85
- /* @__PURE__ */ i("div", { className: "flex flex-col gap-2", children: [
86
- /* @__PURE__ */ i(v, { value: l, onValueChange: P, children: [
87
- /* @__PURE__ */ n(b, { size: "s", children: /* @__PURE__ */ n(w, { placeholder: "Select column to sort" }) }),
88
- /* @__PURE__ */ n(x, { children: a.map((e) => /* @__PURE__ */ n(o, { value: e.id, children: e.label }, e.id)) })
81
+ /* @__PURE__ */ n(_, { align: Z, className: "w-72 max-w-[90vw]", children: [
82
+ V && /* @__PURE__ */ i("div", { className: "p-3", children: /* @__PURE__ */ n("div", { className: "space-y-4", children: [
83
+ z && /* @__PURE__ */ n("div", { className: "space-y-2", role: "group", "aria-labelledby": L, children: [
84
+ /* @__PURE__ */ i("h4", { id: L, className: "text-label-sm text-[var(--color-text-tertiary)]", children: "Sorting" }),
85
+ /* @__PURE__ */ n("div", { className: "flex flex-col gap-2", children: [
86
+ /* @__PURE__ */ n(f, { value: l, onValueChange: P, children: [
87
+ /* @__PURE__ */ i(b, { size: "s", children: /* @__PURE__ */ i(w, { placeholder: "Select column to sort" }) }),
88
+ /* @__PURE__ */ i(x, { children: a.map((e) => /* @__PURE__ */ i(o, { value: e.id, children: e.label }, e.id)) })
89
89
  ] }),
90
- l && /* @__PURE__ */ i(
91
- v,
90
+ l && /* @__PURE__ */ n(
91
+ f,
92
92
  {
93
93
  value: C,
94
94
  onValueChange: (e) => q(e),
95
95
  children: [
96
- /* @__PURE__ */ n(b, { size: "s", children: /* @__PURE__ */ n(w, {}) }),
97
- /* @__PURE__ */ i(x, { children: [
98
- /* @__PURE__ */ n(o, { value: "asc", children: /* @__PURE__ */ i("div", { className: "flex items-center gap-2", children: [
99
- /* @__PURE__ */ n(R, { name: ae, size: "s" }),
100
- /* @__PURE__ */ n("span", { children: H.asc })
96
+ /* @__PURE__ */ i(b, { size: "s", children: /* @__PURE__ */ i(w, {}) }),
97
+ /* @__PURE__ */ n(x, { children: [
98
+ /* @__PURE__ */ i(o, { value: "asc", children: /* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: [
99
+ /* @__PURE__ */ i(R, { name: ae, size: "s" }),
100
+ /* @__PURE__ */ i("span", { children: H.asc })
101
101
  ] }) }),
102
- /* @__PURE__ */ n(o, { value: "desc", children: /* @__PURE__ */ i("div", { className: "flex items-center gap-2", children: [
103
- /* @__PURE__ */ n(R, { name: re, size: "s" }),
104
- /* @__PURE__ */ n("span", { children: H.desc })
102
+ /* @__PURE__ */ i(o, { value: "desc", children: /* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: [
103
+ /* @__PURE__ */ i(R, { name: re, size: "s" }),
104
+ /* @__PURE__ */ i("span", { children: H.desc })
105
105
  ] }) })
106
106
  ] })
107
107
  ]
@@ -109,21 +109,21 @@ function me({
109
109
  )
110
110
  ] })
111
111
  ] }),
112
- A && /* @__PURE__ */ i("div", { className: "space-y-2", role: "group", "aria-labelledby": M, children: [
113
- /* @__PURE__ */ n("h4", { id: M, className: "text-label-sm text-[var(--color-text-tertiary)]", children: "Grouping" }),
114
- /* @__PURE__ */ i(v, { value: O || "none", onValueChange: E, children: [
115
- /* @__PURE__ */ n(b, { size: "s", children: /* @__PURE__ */ n(w, { placeholder: "Select column to group by" }) }),
116
- /* @__PURE__ */ i(x, { children: [
117
- /* @__PURE__ */ n(o, { value: "none", children: "None" }),
118
- d.map((e) => /* @__PURE__ */ n(o, { value: e.id, children: e.label }, e.id))
112
+ A && /* @__PURE__ */ n("div", { className: "space-y-2", role: "group", "aria-labelledby": M, children: [
113
+ /* @__PURE__ */ i("h4", { id: M, className: "text-label-sm text-[var(--color-text-tertiary)]", children: "Grouping" }),
114
+ /* @__PURE__ */ n(f, { value: O || "none", onValueChange: E, children: [
115
+ /* @__PURE__ */ i(b, { size: "s", children: /* @__PURE__ */ i(w, { placeholder: "Select column to group by" }) }),
116
+ /* @__PURE__ */ n(x, { children: [
117
+ /* @__PURE__ */ i(o, { value: "none", children: "None" }),
118
+ d.map((e) => /* @__PURE__ */ i(o, { value: e.id, children: e.label }, e.id))
119
119
  ] })
120
120
  ] })
121
121
  ] })
122
122
  ] }) }),
123
- V && $ && /* @__PURE__ */ n(ee, {}),
124
- $ && /* @__PURE__ */ n("div", { className: "p-3", children: /* @__PURE__ */ i("div", { className: "space-y-2", role: "group", "aria-labelledby": T, children: [
125
- /* @__PURE__ */ n("h4", { id: T, className: "text-label-sm text-[var(--color-text-tertiary)]", children: "Display columns" }),
126
- K && /* @__PURE__ */ n(
123
+ V && $ && /* @__PURE__ */ i(ee, {}),
124
+ $ && /* @__PURE__ */ i("div", { className: "p-3", children: /* @__PURE__ */ n("div", { className: "space-y-2", role: "group", "aria-labelledby": T, children: [
125
+ /* @__PURE__ */ i("h4", { id: T, className: "text-label-sm text-[var(--color-text-tertiary)]", children: "Display columns" }),
126
+ K && /* @__PURE__ */ i(
127
127
  se,
128
128
  {
129
129
  type: "search",
@@ -134,17 +134,17 @@ function me({
134
134
  onChange: (e) => B(e.target.value)
135
135
  }
136
136
  ),
137
- /* @__PURE__ */ n(
137
+ /* @__PURE__ */ i(
138
138
  "div",
139
139
  {
140
- className: "flex flex-wrap items-start justify-start gap-1 max-h-[190px] overflow-y-auto focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring-color)] focus-visible:ring-offset-2 rounded-s",
140
+ className: "flex flex-wrap items-start justify-start gap-1 max-h-[190px] overflow-y-auto focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring-color)] focus-visible:ring-offset-2 rounded-[var(--border-radius-s)]",
141
141
  role: p.length > 15 ? "region" : void 0,
142
142
  "aria-label": p.length > 15 ? "Column visibility toggles, scrollable" : void 0,
143
143
  tabIndex: p.length > 15 ? 0 : void 0,
144
144
  children: p.map((e) => {
145
145
  const r = W.includes(e.id);
146
- return /* @__PURE__ */ n(
147
- ne,
146
+ return /* @__PURE__ */ i(
147
+ ie,
148
148
  {
149
149
  variant: "outline",
150
150
  size: "s",
@@ -161,7 +161,7 @@ function me({
161
161
  }
162
162
  )
163
163
  ] }) }),
164
- /* @__PURE__ */ n("div", { "aria-live": "polite", "aria-atomic": "true", className: "sr-only", children: F })
164
+ /* @__PURE__ */ i("div", { "aria-live": "polite", "aria-atomic": "true", className: "sr-only", children: F })
165
165
  ] })
166
166
  ] });
167
167
  }