@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
@@ -1,16 +1,16 @@
1
- import { jsx as a, jsxs as A, Fragment as b } from "react/jsx-runtime";
1
+ import { jsx as i, jsxs as A, Fragment as b } from "react/jsx-runtime";
2
2
  import * as r from "react";
3
3
  import { cn as n } from "../../lib/utils.js";
4
4
  import { Collapsible as L, CollapsibleTrigger as C, CollapsibleContent as R } from "../fundamental/collapsible.js";
5
5
  import { Icon as D } from "../fundamental/icon.js";
6
6
  const I = /* @__PURE__ */ r.forwardRef(
7
7
  ({
8
- className: i,
8
+ className: a,
9
9
  children: e,
10
10
  separatorThreshold: t,
11
11
  "aria-label": o = "Activity log",
12
12
  ...d
13
- }, y) => {
13
+ }, u) => {
14
14
  const v = r.useMemo(() => {
15
15
  if (!t) return e;
16
16
  const s = r.Children.toArray(e), c = [];
@@ -19,24 +19,24 @@ const I = /* @__PURE__ */ r.forwardRef(
19
19
  c.push(f);
20
20
  const p = s[m + 1];
21
21
  if (p && r.isValidElement(f) && r.isValidElement(p) && f.type === w && p.type === w) {
22
- const u = f.props.timestamp, g = p.props.timestamp;
23
- if (u && g) {
24
- const x = new Date(u), l = new Date(g);
25
- Math.abs(l.getTime() - x.getTime()) >= t && c.push(/* @__PURE__ */ a(N, {}, `separator-${m}`));
22
+ const y = f.props.timestamp, g = p.props.timestamp;
23
+ if (y && g) {
24
+ const x = new Date(y), l = new Date(g);
25
+ Math.abs(l.getTime() - x.getTime()) >= t && c.push(/* @__PURE__ */ i(N, {}, `separator-${m}`));
26
26
  }
27
27
  }
28
28
  }
29
29
  return c;
30
30
  }, [e, t]);
31
- return /* @__PURE__ */ a(
31
+ return /* @__PURE__ */ i(
32
32
  "div",
33
33
  {
34
- ref: y,
34
+ ref: u,
35
35
  role: "log",
36
36
  "aria-label": o,
37
37
  "aria-live": "polite",
38
38
  "aria-relevant": "additions",
39
- className: n("flex flex-col gap-[var(--space-s)]", i),
39
+ className: n("flex flex-col gap-[var(--space-s)]", a),
40
40
  ...d,
41
41
  children: v
42
42
  }
@@ -46,31 +46,31 @@ const I = /* @__PURE__ */ r.forwardRef(
46
46
  I.displayName = "ActivityLog";
47
47
  const w = /* @__PURE__ */ r.forwardRef(
48
48
  ({
49
- className: i,
49
+ className: a,
50
50
  children: e,
51
51
  collapsible: t = !1,
52
52
  defaultOpen: o,
53
53
  open: d,
54
- onOpenChange: y,
54
+ onOpenChange: u,
55
55
  timestamp: v,
56
56
  ...s
57
- }, c) => t ? /* @__PURE__ */ a(
57
+ }, c) => t ? /* @__PURE__ */ i(
58
58
  L,
59
59
  {
60
60
  ref: c,
61
61
  defaultOpen: o,
62
62
  open: d,
63
- onOpenChange: y,
64
- className: n("w-full group peer", i),
63
+ onOpenChange: u,
64
+ className: n("w-full group peer", a),
65
65
  ...s,
66
66
  children: e
67
67
  }
68
- ) : /* @__PURE__ */ a("div", { ref: c, className: n("w-full", i), ...s, children: e })
68
+ ) : /* @__PURE__ */ i("div", { ref: c, className: n("w-full", a), ...s, children: e })
69
69
  );
70
70
  w.displayName = "ActivityLogItem";
71
71
  const N = /* @__PURE__ */ r.memo(
72
72
  /* @__PURE__ */ r.forwardRef(
73
- ({ className: i, ...e }, t) => /* @__PURE__ */ a(
73
+ ({ className: a, ...e }, t) => /* @__PURE__ */ i(
74
74
  "div",
75
75
  {
76
76
  ref: t,
@@ -78,30 +78,30 @@ const N = /* @__PURE__ */ r.memo(
78
78
  "aria-hidden": "true",
79
79
  className: n(
80
80
  "flex items-center ml-[7.5px] peer-data-[state=open]:hidden",
81
- i
81
+ a
82
82
  ),
83
83
  ...e,
84
- children: /* @__PURE__ */ a("div", { className: "w-px h-[var(--space-l)] bg-[var(--grey-alpha-100)]" })
84
+ children: /* @__PURE__ */ i("div", { className: "w-px h-[var(--space-l)] bg-[var(--grey-alpha-100)]" })
85
85
  }
86
86
  )
87
87
  )
88
88
  );
89
89
  N.displayName = "ActivityLogSeparator";
90
90
  const V = /* @__PURE__ */ r.forwardRef(
91
- ({ className: i, children: e, asCollapsibleTrigger: t, ...o }, d) => {
92
- const { avatarOrIcon: y, description: v, chevron: s, otherChildren: c } = r.useMemo(() => {
91
+ ({ className: a, children: e, asCollapsibleTrigger: t, ...o }, d) => {
92
+ const { avatarOrIcon: u, description: v, chevron: s, otherChildren: c } = r.useMemo(() => {
93
93
  const f = r.Children.toArray(e);
94
- let p = null, u = null, g = null;
94
+ let p = null, y = null, g = null;
95
95
  const x = [];
96
96
  return f.forEach((l) => {
97
97
  if (r.isValidElement(l)) {
98
98
  const h = l.type?.displayName;
99
- h === "ActivityLogDescription" ? u = l : h === "ActivityLogChevron" ? g = l : p ? x.push(l) : p = l;
99
+ h === "ActivityLogDescription" ? y = l : h === "ActivityLogChevron" ? g = l : p ? x.push(l) : p = l;
100
100
  } else
101
101
  x.push(l);
102
102
  }), {
103
103
  avatarOrIcon: p,
104
- description: u,
104
+ description: y,
105
105
  chevron: g,
106
106
  otherChildren: x
107
107
  };
@@ -111,12 +111,12 @@ const V = /* @__PURE__ */ r.forwardRef(
111
111
  ref: t ? void 0 : d,
112
112
  className: n(
113
113
  "flex gap-[var(--space-s)] items-start w-full [&>*:first-child]:translate-y-[1px]",
114
- t && "cursor-pointer rounded-s focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring-color)] focus-visible:ring-offset-2",
115
- i
114
+ t && "cursor-pointer rounded-[var(--border-radius-s)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring-color)] focus-visible:ring-offset-2",
115
+ a
116
116
  ),
117
117
  ...o,
118
118
  children: [
119
- y,
119
+ u,
120
120
  v && s ? (
121
121
  // Group description and chevron together
122
122
  /* @__PURE__ */ A("div", { className: "inline-flex gap-[var(--space-xs)] items-center min-w-0 flex-1", children: [
@@ -131,31 +131,31 @@ const V = /* @__PURE__ */ r.forwardRef(
131
131
  ]
132
132
  }
133
133
  );
134
- return t ? /* @__PURE__ */ a(C, { asChild: !0, hideIcon: !0, children: m }) : m;
134
+ return t ? /* @__PURE__ */ i(C, { asChild: !0, hideIcon: !0, children: m }) : m;
135
135
  }
136
136
  );
137
137
  V.displayName = "ActivityLogHeader";
138
- const k = /* @__PURE__ */ r.forwardRef(({ className: i, children: e, ...t }, o) => /* @__PURE__ */ a(
138
+ const k = /* @__PURE__ */ r.forwardRef(({ className: a, children: e, ...t }, o) => /* @__PURE__ */ i(
139
139
  R,
140
140
  {
141
141
  ref: o,
142
142
  className: n(
143
143
  "mt-[var(--space-s)] pl-[var(--space-s)] ml-[7.5px] border-l border-l-[var(--grey-alpha-100)] max-w-[320px]",
144
144
  "[.group:last-child_&]:border-l-0",
145
- i
145
+ a
146
146
  ),
147
147
  ...t,
148
148
  children: e
149
149
  }
150
150
  ));
151
151
  k.displayName = "ActivityLogContent";
152
- const E = /* @__PURE__ */ r.forwardRef(({ className: i, children: e, ...t }, o) => /* @__PURE__ */ a(
152
+ const E = /* @__PURE__ */ r.forwardRef(({ className: a, children: e, ...t }, o) => /* @__PURE__ */ i(
153
153
  "div",
154
154
  {
155
155
  ref: o,
156
156
  className: n(
157
157
  "inline-flex flex-wrap gap-x-[var(--space-xs)] gap-y-0 items-center min-w-0 [&]:text-body-sm text-[var(--color-text-primary)]",
158
- i
158
+ a
159
159
  ),
160
160
  ...t,
161
161
  children: e
@@ -163,14 +163,14 @@ const E = /* @__PURE__ */ r.forwardRef(({ className: i, children: e, ...t }, o)
163
163
  ));
164
164
  E.displayName = "ActivityLogDescription";
165
165
  const M = /* @__PURE__ */ r.forwardRef(
166
- ({ className: i, children: e, dateTime: t, ...o }, d) => /* @__PURE__ */ a(
166
+ ({ className: a, children: e, dateTime: t, ...o }, d) => /* @__PURE__ */ i(
167
167
  "time",
168
168
  {
169
169
  ref: d,
170
170
  dateTime: t,
171
171
  className: n(
172
172
  "[&]:text-body-xsm text-[var(--color-text-tertiary)] shrink-0 whitespace-nowrap",
173
- i
173
+ a
174
174
  ),
175
175
  ...o,
176
176
  children: e
@@ -180,14 +180,14 @@ const M = /* @__PURE__ */ r.forwardRef(
180
180
  M.displayName = "ActivityLogTime";
181
181
  const T = /* @__PURE__ */ r.memo(
182
182
  /* @__PURE__ */ r.forwardRef(
183
- ({ className: i, ...e }, t) => /* @__PURE__ */ a(
183
+ ({ className: a, ...e }, t) => /* @__PURE__ */ i(
184
184
  "div",
185
185
  {
186
186
  ref: t,
187
187
  "aria-hidden": "true",
188
- className: n("shrink-0", i),
188
+ className: n("shrink-0", a),
189
189
  ...e,
190
- children: /* @__PURE__ */ a(
190
+ children: /* @__PURE__ */ i(
191
191
  D,
192
192
  {
193
193
  name: "chevron-down",
@@ -203,16 +203,16 @@ const T = /* @__PURE__ */ r.memo(
203
203
  T.displayName = "ActivityLogChevron";
204
204
  const j = /* @__PURE__ */ r.memo(
205
205
  /* @__PURE__ */ r.forwardRef(
206
- ({ className: i, children: e, ...t }, o) => /* @__PURE__ */ a(
206
+ ({ className: a, children: e, ...t }, o) => /* @__PURE__ */ i(
207
207
  "div",
208
208
  {
209
209
  ref: o,
210
210
  className: n(
211
- "inline-flex items-center gap-[var(--space-xs)] px-[4px] py-[2px] bg-[var(--color-background-neutral-subtlest)] border border-[var(--color-border-primary-medium)] rounded-xs shrink",
212
- i
211
+ "inline-flex items-center gap-[var(--space-xs)] px-[4px] py-[2px] bg-[var(--color-background-neutral-subtlest)] border border-[var(--color-border-primary-medium)] rounded-[var(--border-radius-xs)] shrink",
212
+ a
213
213
  ),
214
214
  ...t,
215
- children: /* @__PURE__ */ a("span", { className: "[&]:text-body-medium-xsm text-[var(--color-text-primary)] whitespace-nowrap", children: e })
215
+ children: /* @__PURE__ */ i("span", { className: "[&]:text-body-medium-xsm text-[var(--color-text-primary)] whitespace-nowrap", children: e })
216
216
  }
217
217
  )
218
218
  )