@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,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
  )
@@ -215,7 +215,7 @@ function Ie({ navigationData: a, user: o, teams: u, onNavigate: n, navigationMod
215
215
  "button",
216
216
  {
217
217
  onClick: () => h(!0),
218
- className: "text-body-md flex h-8 w-full cursor-pointer items-center rounded-m border border-[var(--color-border-primary-subtle)] bg-[var(--color-surface-primary)] px-3 py-1 pr-20 pl-8 text-left text-[var(--color-text-tertiary)] transition-colors hover:border-[var(--color-border-primary-medium)] hover:!bg-[var(--color-background-neutral-subtlest-hovered)] focus:border-[var(--color-border-brand-bold)] focus:ring-2 focus:ring-[var(--color-border-brand-bold)]/20 focus:ring-offset-0 focus:outline-none active:border-[var(--color-border-primary-medium)]",
218
+ className: "text-body-md flex h-8 w-full cursor-pointer items-center rounded-[var(--border-radius-m)] border border-[var(--color-border-primary-subtle)] bg-[var(--color-surface-primary)] px-3 py-1 pr-20 pl-8 text-left text-[var(--color-text-tertiary)] transition-colors hover:border-[var(--color-border-primary-medium)] hover:!bg-[var(--color-background-neutral-subtlest-hovered)] focus:border-[var(--color-border-brand-bold)] focus:ring-2 focus:ring-[var(--color-border-brand-bold)]/20 focus:ring-offset-0 focus:outline-none active:border-[var(--color-border-primary-medium)]",
219
219
  children: "Search"
220
220
  }
221
221
  ),
@@ -434,12 +434,12 @@ function Ie({ navigationData: a, user: o, teams: u, onNavigate: n, navigationMod
434
434
  ]
435
435
  }
436
436
  ),
437
- /* @__PURE__ */ e(pe, { className: "sticky bottom-0 z-10 border-t border-[var(--color-border-primary-subtle)] bg-[var(--color-surface-primary)] group-data-[collapsible=icon]:px-2 group-data-[collapsible=icon]:py-2", children: /* @__PURE__ */ e("div", { className: "group/user-menu rounded-m border border-[var(--color-border-primary-subtle)] transition-colors hover:border-[var(--color-border-primary-medium)] group-data-[collapsible=icon]:rounded-none group-data-[collapsible=icon]:border-none", children: /* @__PURE__ */ l(X, { children: [
437
+ /* @__PURE__ */ e(pe, { className: "sticky bottom-0 z-10 border-t border-[var(--color-border-primary-subtle)] bg-[var(--color-surface-primary)] group-data-[collapsible=icon]:px-2 group-data-[collapsible=icon]:py-2", children: /* @__PURE__ */ e("div", { className: "group/user-menu rounded-[var(--border-radius-m)] border border-[var(--color-border-primary-subtle)] transition-colors hover:border-[var(--color-border-primary-medium)] group-data-[collapsible=icon]:rounded-none group-data-[collapsible=icon]:border-none", children: /* @__PURE__ */ l(X, { children: [
438
438
  /* @__PURE__ */ e(J, { asChild: !0, children: /* @__PURE__ */ l(
439
439
  fe,
440
440
  {
441
441
  variant: "ghost",
442
- className: "h-auto min-h-[56px] w-full justify-start rounded-m px-3 py-2 hover:!bg-[var(--color-background-neutral-subtlest-hovered)] group-data-[collapsible=icon]:h-8 group-data-[collapsible=icon]:min-h-0 group-data-[collapsible=icon]:w-8 group-data-[collapsible=icon]:p-0",
442
+ className: "h-auto min-h-[56px] w-full justify-start rounded-[var(--border-radius-m)] px-3 py-2 hover:!bg-[var(--color-background-neutral-subtlest-hovered)] group-data-[collapsible=icon]:h-8 group-data-[collapsible=icon]:min-h-0 group-data-[collapsible=icon]:w-8 group-data-[collapsible=icon]:p-0",
443
443
  children: [
444
444
  /* @__PURE__ */ l("div", { className: "flex w-full items-center gap-3 group-data-[collapsible=icon]:hidden", children: [
445
445
  /* @__PURE__ */ l("div", { className: "relative flex-shrink-0", children: [
@@ -6,24 +6,24 @@ import { Icon as N } from "../fundamental/icon.js";
6
6
  import { ExternalLink as I } from "lucide-react";
7
7
  const h = e.createContext("s"), P = /* @__PURE__ */ e.forwardRef(
8
8
  ({
9
- className: o,
10
- children: t,
11
- size: r = "s",
12
- showHiddenLabel: a = "More details",
9
+ className: a,
10
+ children: r,
11
+ size: t = "s",
12
+ showHiddenLabel: o = "More details",
13
13
  hideLabel: d = "Less details",
14
14
  defaultShowHidden: f = !1,
15
15
  labelWidth: p,
16
16
  ...u
17
17
  }, l) => {
18
- const [s, b] = e.useState(f), y = e.useMemo(() => e.Children.toArray(t).some((m) => e.isValidElement(m) && (m.type?.displayName || "") === "AttributesItem" ? m.props.hidden : !1), [t]), g = e.useMemo(() => e.Children.map(t, (m) => e.isValidElement(m) && (m.type?.displayName || "") === "AttributesItem" && m.props.hidden && !s ? null : m), [t, s]), c = typeof p == "number" ? `${p}px` : p;
19
- return /* @__PURE__ */ n(h.Provider, { value: r, children: /* @__PURE__ */ x(
18
+ const [s, b] = e.useState(f), y = e.useMemo(() => e.Children.toArray(r).some((m) => e.isValidElement(m) && (m.type?.displayName || "") === "AttributesItem" ? m.props.hidden : !1), [r]), g = e.useMemo(() => e.Children.map(r, (m) => e.isValidElement(m) && (m.type?.displayName || "") === "AttributesItem" && m.props.hidden && !s ? null : m), [r, s]), c = typeof p == "number" ? `${p}px` : p;
19
+ return /* @__PURE__ */ n(h.Provider, { value: t, children: /* @__PURE__ */ x(
20
20
  "div",
21
21
  {
22
22
  ref: l,
23
23
  className: i(
24
24
  "grid",
25
- r === "s" ? "gap-y-[12px]" : "gap-y-[8px]",
26
- o
25
+ t === "s" ? "gap-y-[12px]" : "gap-y-[8px]",
26
+ a
27
27
  ),
28
28
  style: {
29
29
  gridTemplateColumns: `${c || "auto"} 1fr`,
@@ -39,13 +39,13 @@ const h = e.createContext("s"), P = /* @__PURE__ */ e.forwardRef(
39
39
  onClick: () => b(!s),
40
40
  "aria-expanded": s,
41
41
  className: i(
42
- "flex items-center text-[var(--color-text-brand-bold)] hover:text-[var(--color-text-brand-bold-hovered)] cursor-pointer mt-[var(--space-s)] bg-transparent border-none p-0 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring-color)] focus-visible:ring-offset-2 rounded-s",
43
- r === "s" ? "gap-[var(--space-s)]" : "gap-[var(--space-xs)]",
44
- r === "s" ? "[&]:text-body-medium-sm" : "[&]:text-body-medium-xsm"
42
+ "flex items-center text-[var(--color-text-brand-bold)] hover:text-[var(--color-text-brand-bold-hovered)] cursor-pointer mt-[var(--space-s)] bg-transparent border-none p-0 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring-color)] focus-visible:ring-offset-2 rounded-[var(--border-radius-s)]",
43
+ t === "s" ? "gap-[var(--space-s)]" : "gap-[var(--space-xs)]",
44
+ t === "s" ? "[&]:text-body-medium-sm" : "[&]:text-body-medium-xsm"
45
45
  ),
46
46
  style: { gridColumn: "1 / -1" },
47
47
  children: [
48
- s ? d : a,
48
+ s ? d : o,
49
49
  /* @__PURE__ */ n(
50
50
  N,
51
51
  {
@@ -69,18 +69,18 @@ const h = e.createContext("s"), P = /* @__PURE__ */ e.forwardRef(
69
69
  P.displayName = "AttributesList";
70
70
  const H = /* @__PURE__ */ e.memo(
71
71
  /* @__PURE__ */ e.forwardRef(
72
- ({ className: o, ...t }, r) => /* @__PURE__ */ n(
72
+ ({ className: a, ...r }, t) => /* @__PURE__ */ n(
73
73
  "div",
74
74
  {
75
- ref: r,
75
+ ref: t,
76
76
  role: "separator",
77
77
  "aria-hidden": "true",
78
78
  className: i(
79
79
  "h-px bg-[var(--color-border-primary-subtle)] my-[var(--space-s)]",
80
- o
80
+ a
81
81
  ),
82
82
  style: { gridColumn: "1 / -1" },
83
- ...t
83
+ ...r
84
84
  }
85
85
  )
86
86
  )
@@ -88,15 +88,15 @@ const H = /* @__PURE__ */ e.memo(
88
88
  H.displayName = "AttributesSeparator";
89
89
  const M = /* @__PURE__ */ e.forwardRef(
90
90
  ({
91
- className: o,
92
- label: t,
93
- children: r,
94
- showHiddenLabel: a = "More details",
91
+ className: a,
92
+ label: r,
93
+ children: t,
94
+ showHiddenLabel: o = "More details",
95
95
  hideLabel: d = "Less details",
96
96
  defaultShowHidden: f = !1,
97
97
  ...p
98
98
  }, u) => {
99
- const l = e.useContext(h), [s, b] = e.useState(f), y = e.useMemo(() => ((m) => e.Children.toArray(m).some((v) => !!(e.isValidElement(v) && (v.type?.displayName || "") === "AttributesItem" && v.props.hidden)))(r), [r]), g = e.useMemo(() => e.Children.map(r, (c) => e.isValidElement(c) && (c.type?.displayName || "") === "AttributesItem" && c.props.hidden && !s ? null : c), [r, s]);
99
+ const l = e.useContext(h), [s, b] = e.useState(f), y = e.useMemo(() => ((m) => e.Children.toArray(m).some((v) => !!(e.isValidElement(v) && (v.type?.displayName || "") === "AttributesItem" && v.props.hidden)))(t), [t]), g = e.useMemo(() => e.Children.map(t, (c) => e.isValidElement(c) && (c.type?.displayName || "") === "AttributesItem" && c.props.hidden && !s ? null : c), [t, s]);
100
100
  return /* @__PURE__ */ x(
101
101
  "div",
102
102
  {
@@ -104,7 +104,7 @@ const M = /* @__PURE__ */ e.forwardRef(
104
104
  className: i(
105
105
  "grid",
106
106
  l === "s" ? "gap-y-[12px]" : "gap-y-[8px]",
107
- o
107
+ a
108
108
  ),
109
109
  style: {
110
110
  gridColumn: "1 / -1",
@@ -113,7 +113,7 @@ const M = /* @__PURE__ */ e.forwardRef(
113
113
  },
114
114
  ...p,
115
115
  children: [
116
- t && /* @__PURE__ */ n(
116
+ r && /* @__PURE__ */ n(
117
117
  "h3",
118
118
  {
119
119
  className: i(
@@ -122,7 +122,7 @@ const M = /* @__PURE__ */ e.forwardRef(
122
122
  l === "s" ? "[&]:text-body-medium-sm" : "[&]:text-body-medium-xsm"
123
123
  ),
124
124
  style: { gridColumn: "1 / -1" },
125
- children: t
125
+ children: r
126
126
  }
127
127
  ),
128
128
  g,
@@ -132,13 +132,13 @@ const M = /* @__PURE__ */ e.forwardRef(
132
132
  onClick: () => b(!s),
133
133
  "aria-expanded": s,
134
134
  className: i(
135
- "flex items-center text-[var(--color-text-brand-bold)] hover:text-[var(--color-text-brand-bold-hovered)] cursor-pointer mt-[var(--space-s)] bg-transparent border-none p-0 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring-color)] focus-visible:ring-offset-2 rounded-s",
135
+ "flex items-center text-[var(--color-text-brand-bold)] hover:text-[var(--color-text-brand-bold-hovered)] cursor-pointer mt-[var(--space-s)] bg-transparent border-none p-0 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring-color)] focus-visible:ring-offset-2 rounded-[var(--border-radius-s)]",
136
136
  l === "s" ? "gap-[var(--space-s)]" : "gap-[var(--space-xs)]",
137
137
  l === "s" ? "[&]:text-body-medium-sm" : "[&]:text-body-medium-xsm"
138
138
  ),
139
139
  style: { gridColumn: "1 / -1" },
140
140
  children: [
141
- s ? d : a,
141
+ s ? d : o,
142
142
  /* @__PURE__ */ n(
143
143
  N,
144
144
  {
@@ -162,23 +162,23 @@ const M = /* @__PURE__ */ e.forwardRef(
162
162
  M.displayName = "AttributesGroup";
163
163
  const S = /* @__PURE__ */ e.forwardRef(
164
164
  ({
165
- className: o,
166
- children: t,
167
- collapsible: r = !1,
168
- defaultOpen: a,
165
+ className: a,
166
+ children: r,
167
+ collapsible: t = !1,
168
+ defaultOpen: o,
169
169
  open: d,
170
170
  onOpenChange: f,
171
171
  hidden: p,
172
172
  style: u,
173
173
  ...l
174
- }, s) => r ? /* @__PURE__ */ n(
174
+ }, s) => t ? /* @__PURE__ */ n(
175
175
  A,
176
176
  {
177
177
  ref: s,
178
- defaultOpen: a,
178
+ defaultOpen: o,
179
179
  open: d,
180
180
  onOpenChange: f,
181
- className: i("w-full group grid", o),
181
+ className: i("w-full group grid", a),
182
182
  style: {
183
183
  gridColumn: "1 / -1",
184
184
  gridTemplateColumns: "subgrid",
@@ -187,26 +187,26 @@ const S = /* @__PURE__ */ e.forwardRef(
187
187
  },
188
188
  "data-hidden": p,
189
189
  ...l,
190
- children: t
190
+ children: r
191
191
  }
192
192
  ) : /* @__PURE__ */ n(
193
193
  "div",
194
194
  {
195
195
  ref: s,
196
- className: i(o),
196
+ className: i(a),
197
197
  style: { display: "contents", ...u },
198
198
  "data-hidden": p,
199
199
  ...l,
200
- children: t
200
+ children: r
201
201
  }
202
202
  )
203
203
  );
204
204
  S.displayName = "AttributesItem";
205
205
  const V = /* @__PURE__ */ e.forwardRef(
206
- ({ className: o, children: t, asCollapsibleTrigger: r, externalLink: a, style: d, ...f }, p) => {
206
+ ({ className: a, children: r, asCollapsibleTrigger: t, externalLink: o, style: d, ...f }, p) => {
207
207
  const u = e.useContext(h), l = e.useMemo(() => {
208
- if (!a) return t;
209
- const b = e.Children.toArray(t);
208
+ if (!o) return r;
209
+ const b = e.Children.toArray(r);
210
210
  if (b.length >= 2) {
211
211
  const y = b[0], g = b[1], c = b.slice(2);
212
212
  return [
@@ -216,17 +216,17 @@ const V = /* @__PURE__ */ e.forwardRef(
216
216
  /* @__PURE__ */ x(
217
217
  "a",
218
218
  {
219
- href: a.href,
219
+ href: o.href,
220
220
  className: i(
221
- "text-[var(--color-text-brand-bold)] hover:text-[var(--color-text-brand-bold-hovered)] inline-flex items-center no-underline shrink-0 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring-color)] focus-visible:ring-offset-2 rounded-s",
221
+ "text-[var(--color-text-brand-bold)] hover:text-[var(--color-text-brand-bold-hovered)] inline-flex items-center no-underline shrink-0 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring-color)] focus-visible:ring-offset-2 rounded-[var(--border-radius-s)]",
222
222
  u === "s" ? "gap-[var(--space-s)]" : "gap-[var(--space-xs)]",
223
223
  u === "s" ? "[&]:text-body-sm" : "[&]:text-body-xsm"
224
224
  ),
225
225
  target: "_blank",
226
226
  rel: "noopener noreferrer",
227
- "aria-label": `${a.label} (opens in new tab)`,
227
+ "aria-label": `${o.label} (opens in new tab)`,
228
228
  children: [
229
- a.label,
229
+ o.label,
230
230
  /* @__PURE__ */ n(N, { name: I, size: "s", "aria-hidden": "true" })
231
231
  ]
232
232
  }
@@ -235,15 +235,15 @@ const V = /* @__PURE__ */ e.forwardRef(
235
235
  ...c
236
236
  ];
237
237
  }
238
- return t;
239
- }, [t, a, u]), s = /* @__PURE__ */ n(
238
+ return r;
239
+ }, [r, o, u]), s = /* @__PURE__ */ n(
240
240
  "div",
241
241
  {
242
- ref: r ? void 0 : p,
242
+ ref: t ? void 0 : p,
243
243
  className: i(
244
244
  "grid items-center",
245
- r && "cursor-pointer hover:bg-[var(--color-surface-secondary)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring-color)] focus-visible:ring-offset-2 transition-colors rounded-s px-[var(--space-s)] py-[var(--space-xs)] -mx-[var(--space-s)]",
246
- o
245
+ t && "cursor-pointer hover:bg-[var(--color-surface-secondary)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ring-color)] focus-visible:ring-offset-2 transition-colors rounded-[var(--border-radius-s)] px-[var(--space-s)] py-[var(--space-xs)] -mx-[var(--space-s)]",
246
+ a
247
247
  ),
248
248
  style: {
249
249
  gridColumn: "1 / -1",
@@ -255,25 +255,25 @@ const V = /* @__PURE__ */ e.forwardRef(
255
255
  children: l
256
256
  }
257
257
  );
258
- return r ? /* @__PURE__ */ n(w, { asChild: !0, hideIcon: !0, children: s }) : s;
258
+ return t ? /* @__PURE__ */ n(w, { asChild: !0, hideIcon: !0, children: s }) : s;
259
259
  }
260
260
  );
261
261
  V.displayName = "AttributesRow";
262
262
  const k = /* @__PURE__ */ e.memo(
263
263
  /* @__PURE__ */ e.forwardRef(
264
- ({ className: o, children: t, ...r }, a) => {
264
+ ({ className: a, children: r, ...t }, o) => {
265
265
  const d = e.useContext(h);
266
266
  return /* @__PURE__ */ n(
267
267
  "div",
268
268
  {
269
- ref: a,
269
+ ref: o,
270
270
  className: i(
271
271
  "text-[var(--color-text-secondary)] [[data-hidden='true']_&]:text-[var(--color-text-tertiary)] shrink-0",
272
272
  d === "s" ? "[&]:text-body-medium-sm" : "[&]:text-body-medium-xsm",
273
- o
273
+ a
274
274
  ),
275
- ...r,
276
- children: t
275
+ ...t,
276
+ children: r
277
277
  }
278
278
  );
279
279
  }
@@ -282,49 +282,49 @@ const k = /* @__PURE__ */ e.memo(
282
282
  k.displayName = "AttributesLabel";
283
283
  const z = /* @__PURE__ */ e.memo(
284
284
  /* @__PURE__ */ e.forwardRef(
285
- ({ className: o, children: t, ...r }, a) => {
285
+ ({ className: a, children: r, ...t }, o) => {
286
286
  const d = e.useContext(h);
287
287
  return /* @__PURE__ */ n(
288
288
  "div",
289
289
  {
290
- ref: a,
290
+ ref: o,
291
291
  className: i(
292
292
  "text-[var(--color-text-primary)] [[data-hidden='true']_&]:text-[var(--color-text-tertiary)] flex items-center",
293
293
  d === "s" ? "gap-[var(--space-s)]" : "gap-[var(--space-xs)]",
294
294
  d === "s" ? "[&]:text-body-sm" : "[&]:text-body-xsm",
295
- o
295
+ a
296
296
  ),
297
- ...r,
298
- children: t
297
+ ...t,
298
+ children: r
299
299
  }
300
300
  );
301
301
  }
302
302
  )
303
303
  );
304
304
  z.displayName = "AttributesValue";
305
- const G = /* @__PURE__ */ e.forwardRef(({ className: o, children: t, style: r, ...a }, d) => /* @__PURE__ */ n(
305
+ const G = /* @__PURE__ */ e.forwardRef(({ className: a, children: r, style: t, ...o }, d) => /* @__PURE__ */ n(
306
306
  R,
307
307
  {
308
308
  ref: d,
309
309
  className: i(
310
310
  "pt-[var(--space-s)] pb-[var(--space-s)]",
311
- o
311
+ a
312
312
  ),
313
- style: { gridColumn: "1 / -1", ...r },
314
- ...a,
315
- children: t
313
+ style: { gridColumn: "1 / -1", ...t },
314
+ ...o,
315
+ children: r
316
316
  }
317
317
  ));
318
318
  G.displayName = "AttributesContent";
319
319
  const E = /* @__PURE__ */ e.memo(
320
320
  /* @__PURE__ */ e.forwardRef(
321
- ({ className: o, ...t }, r) => /* @__PURE__ */ n(
321
+ ({ className: a, ...r }, t) => /* @__PURE__ */ n(
322
322
  "div",
323
323
  {
324
- ref: r,
324
+ ref: t,
325
325
  "aria-hidden": "true",
326
- className: i("shrink-0 -ml-[4px]", o),
327
- ...t,
326
+ className: i("shrink-0 -ml-[4px]", a),
327
+ ...r,
328
328
  children: /* @__PURE__ */ n(
329
329
  N,
330
330
  {