@rafal.lemieszewski/tide-ui 0.85.1 → 0.87.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.
- package/dist/cjs/components/fundamental/breadcrumb.cjs +1 -1
- package/dist/cjs/components/fundamental/button.cjs +1 -1
- package/dist/cjs/components/fundamental/calendar.cjs +1 -1
- package/dist/cjs/components/fundamental/country-dropdown.cjs +1 -1
- package/dist/cjs/components/fundamental/custom-icons.cjs +1 -1
- package/dist/cjs/components/fundamental/dialog.cjs +1 -1
- package/dist/cjs/components/fundamental/file-upload.cjs +1 -1
- package/dist/cjs/components/fundamental/icon.cjs +1 -1
- package/dist/cjs/components/fundamental/month-picker.cjs +1 -1
- package/dist/cjs/components/fundamental/pagination.cjs +1 -1
- package/dist/cjs/components/fundamental/select.cjs +1 -1
- package/dist/cjs/components/fundamental/separator.cjs +1 -1
- package/dist/cjs/components/fundamental/sidebar.cjs +1 -1
- package/dist/cjs/components/fundamental/toast.cjs +1 -1
- package/dist/cjs/components/fundamental/tree.cjs +1 -1
- package/dist/cjs/components/product/app-frame.cjs +1 -1
- package/dist/cjs/components/product/attributes-list.cjs +1 -1
- package/dist/cjs/components/product/bookmarks.cjs +1 -1
- package/dist/cjs/components/product/data-table-settings-menu.cjs +1 -1
- package/dist/cjs/components/product/data-table.cjs +1 -1
- package/dist/cjs/components/product/filters.cjs +1 -1
- package/dist/cjs/components/product/fixture-status.cjs +1 -1
- package/dist/cjs/components/product/linked-chart.cjs +1 -1
- package/dist/cjs/components/product/view-mode-menu.cjs +1 -1
- package/dist/es/components/fundamental/button.js +10 -9
- package/dist/es/components/fundamental/calendar.js +18 -17
- package/dist/es/components/fundamental/custom-icons.js +283 -517
- package/dist/es/components/fundamental/dialog.js +25 -24
- package/dist/es/components/fundamental/file-upload.js +17 -16
- package/dist/es/components/fundamental/icon.js +68 -147
- package/dist/es/components/fundamental/month-picker.js +21 -20
- package/dist/es/components/fundamental/pagination.js +44 -43
- package/dist/es/components/fundamental/select.js +40 -39
- package/dist/es/components/fundamental/separator.js +11 -10
- package/dist/es/components/fundamental/sidebar.js +85 -84
- package/dist/es/components/fundamental/toast.js +8 -7
- package/dist/es/components/product/app-frame.js +83 -82
- package/dist/es/components/product/attributes-list.js +61 -60
- package/dist/es/components/product/bookmarks.js +170 -169
- package/dist/es/components/product/data-table-settings-menu.js +38 -37
- package/dist/es/components/product/data-table.js +374 -373
- package/dist/es/components/product/filters.js +93 -92
- package/dist/es/components/product/fixture-status.js +89 -87
- package/dist/es/components/product/linked-chart.js +54 -53
- package/dist/es/components/product/view-mode-menu.js +176 -175
- package/dist/types/components/core-index.d.cts +1 -1
- package/dist/types/components/core-index.d.ts +1 -1
- package/dist/types/components/fundamental/custom-icons.d.ts +32 -36
- package/dist/types/components/fundamental/dropdown-menu.d.ts +2 -1
- package/dist/types/components/fundamental/icon.d.ts +1 -3
- package/dist/types/components/index.d.ts +2 -1
- package/dist/types/components/product/fixture-status.d.ts +2 -2
- package/dist/types/lib/index.d.cts +1 -1
- package/dist/types/lib/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -3,12 +3,13 @@ import * as e from "react";
|
|
|
3
3
|
import { cn as i } from "../../lib/utils.js";
|
|
4
4
|
import { Collapsible as A, CollapsibleTrigger as w, CollapsibleContent as R } from "../fundamental/collapsible.js";
|
|
5
5
|
import { Icon as N } from "../fundamental/icon.js";
|
|
6
|
-
|
|
6
|
+
import { ExternalLink as I } from "lucide-react";
|
|
7
|
+
const h = e.createContext("s"), P = /* @__PURE__ */ e.forwardRef(
|
|
7
8
|
({
|
|
8
|
-
className:
|
|
9
|
+
className: o,
|
|
9
10
|
children: t,
|
|
10
11
|
size: r = "s",
|
|
11
|
-
showHiddenLabel:
|
|
12
|
+
showHiddenLabel: a = "More details",
|
|
12
13
|
hideLabel: d = "Less details",
|
|
13
14
|
defaultShowHidden: f = !1,
|
|
14
15
|
labelWidth: p,
|
|
@@ -22,7 +23,7 @@ const h = e.createContext("s"), I = /* @__PURE__ */ e.forwardRef(
|
|
|
22
23
|
className: i(
|
|
23
24
|
"grid",
|
|
24
25
|
r === "s" ? "gap-y-[12px]" : "gap-y-[8px]",
|
|
25
|
-
|
|
26
|
+
o
|
|
26
27
|
),
|
|
27
28
|
style: {
|
|
28
29
|
gridTemplateColumns: `${c || "auto"} 1fr`,
|
|
@@ -44,7 +45,7 @@ const h = e.createContext("s"), I = /* @__PURE__ */ e.forwardRef(
|
|
|
44
45
|
),
|
|
45
46
|
style: { gridColumn: "1 / -1" },
|
|
46
47
|
children: [
|
|
47
|
-
s ? d :
|
|
48
|
+
s ? d : a,
|
|
48
49
|
/* @__PURE__ */ n(
|
|
49
50
|
N,
|
|
50
51
|
{
|
|
@@ -65,10 +66,10 @@ const h = e.createContext("s"), I = /* @__PURE__ */ e.forwardRef(
|
|
|
65
66
|
) });
|
|
66
67
|
}
|
|
67
68
|
);
|
|
68
|
-
|
|
69
|
-
const
|
|
69
|
+
P.displayName = "AttributesList";
|
|
70
|
+
const H = /* @__PURE__ */ e.memo(
|
|
70
71
|
/* @__PURE__ */ e.forwardRef(
|
|
71
|
-
({ className:
|
|
72
|
+
({ className: o, ...t }, r) => /* @__PURE__ */ n(
|
|
72
73
|
"div",
|
|
73
74
|
{
|
|
74
75
|
ref: r,
|
|
@@ -76,7 +77,7 @@ const P = /* @__PURE__ */ e.memo(
|
|
|
76
77
|
"aria-hidden": "true",
|
|
77
78
|
className: i(
|
|
78
79
|
"h-px bg-[var(--color-border-primary-subtle)] my-[var(--space-s)]",
|
|
79
|
-
|
|
80
|
+
o
|
|
80
81
|
),
|
|
81
82
|
style: { gridColumn: "1 / -1" },
|
|
82
83
|
...t
|
|
@@ -84,13 +85,13 @@ const P = /* @__PURE__ */ e.memo(
|
|
|
84
85
|
)
|
|
85
86
|
)
|
|
86
87
|
);
|
|
87
|
-
|
|
88
|
-
const
|
|
88
|
+
H.displayName = "AttributesSeparator";
|
|
89
|
+
const M = /* @__PURE__ */ e.forwardRef(
|
|
89
90
|
({
|
|
90
|
-
className:
|
|
91
|
+
className: o,
|
|
91
92
|
label: t,
|
|
92
93
|
children: r,
|
|
93
|
-
showHiddenLabel:
|
|
94
|
+
showHiddenLabel: a = "More details",
|
|
94
95
|
hideLabel: d = "Less details",
|
|
95
96
|
defaultShowHidden: f = !1,
|
|
96
97
|
...p
|
|
@@ -103,7 +104,7 @@ const H = /* @__PURE__ */ e.forwardRef(
|
|
|
103
104
|
className: i(
|
|
104
105
|
"grid",
|
|
105
106
|
l === "s" ? "gap-y-[12px]" : "gap-y-[8px]",
|
|
106
|
-
|
|
107
|
+
o
|
|
107
108
|
),
|
|
108
109
|
style: {
|
|
109
110
|
gridColumn: "1 / -1",
|
|
@@ -137,7 +138,7 @@ const H = /* @__PURE__ */ e.forwardRef(
|
|
|
137
138
|
),
|
|
138
139
|
style: { gridColumn: "1 / -1" },
|
|
139
140
|
children: [
|
|
140
|
-
s ? d :
|
|
141
|
+
s ? d : a,
|
|
141
142
|
/* @__PURE__ */ n(
|
|
142
143
|
N,
|
|
143
144
|
{
|
|
@@ -158,13 +159,13 @@ const H = /* @__PURE__ */ e.forwardRef(
|
|
|
158
159
|
);
|
|
159
160
|
}
|
|
160
161
|
);
|
|
161
|
-
|
|
162
|
-
const
|
|
162
|
+
M.displayName = "AttributesGroup";
|
|
163
|
+
const S = /* @__PURE__ */ e.forwardRef(
|
|
163
164
|
({
|
|
164
|
-
className:
|
|
165
|
+
className: o,
|
|
165
166
|
children: t,
|
|
166
167
|
collapsible: r = !1,
|
|
167
|
-
defaultOpen:
|
|
168
|
+
defaultOpen: a,
|
|
168
169
|
open: d,
|
|
169
170
|
onOpenChange: f,
|
|
170
171
|
hidden: p,
|
|
@@ -174,10 +175,10 @@ const M = /* @__PURE__ */ e.forwardRef(
|
|
|
174
175
|
A,
|
|
175
176
|
{
|
|
176
177
|
ref: s,
|
|
177
|
-
defaultOpen:
|
|
178
|
+
defaultOpen: a,
|
|
178
179
|
open: d,
|
|
179
180
|
onOpenChange: f,
|
|
180
|
-
className: i("w-full group grid",
|
|
181
|
+
className: i("w-full group grid", o),
|
|
181
182
|
style: {
|
|
182
183
|
gridColumn: "1 / -1",
|
|
183
184
|
gridTemplateColumns: "subgrid",
|
|
@@ -192,7 +193,7 @@ const M = /* @__PURE__ */ e.forwardRef(
|
|
|
192
193
|
"div",
|
|
193
194
|
{
|
|
194
195
|
ref: s,
|
|
195
|
-
className: i(
|
|
196
|
+
className: i(o),
|
|
196
197
|
style: { display: "contents", ...u },
|
|
197
198
|
"data-hidden": p,
|
|
198
199
|
...l,
|
|
@@ -200,11 +201,11 @@ const M = /* @__PURE__ */ e.forwardRef(
|
|
|
200
201
|
}
|
|
201
202
|
)
|
|
202
203
|
);
|
|
203
|
-
|
|
204
|
-
const
|
|
205
|
-
({ className:
|
|
204
|
+
S.displayName = "AttributesItem";
|
|
205
|
+
const V = /* @__PURE__ */ e.forwardRef(
|
|
206
|
+
({ className: o, children: t, asCollapsibleTrigger: r, externalLink: a, style: d, ...f }, p) => {
|
|
206
207
|
const u = e.useContext(h), l = e.useMemo(() => {
|
|
207
|
-
if (!
|
|
208
|
+
if (!a) return t;
|
|
208
209
|
const b = e.Children.toArray(t);
|
|
209
210
|
if (b.length >= 2) {
|
|
210
211
|
const y = b[0], g = b[1], c = b.slice(2);
|
|
@@ -215,7 +216,7 @@ const S = /* @__PURE__ */ e.forwardRef(
|
|
|
215
216
|
/* @__PURE__ */ x(
|
|
216
217
|
"a",
|
|
217
218
|
{
|
|
218
|
-
href:
|
|
219
|
+
href: a.href,
|
|
219
220
|
className: i(
|
|
220
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
222
|
u === "s" ? "gap-[var(--space-s)]" : "gap-[var(--space-xs)]",
|
|
@@ -223,10 +224,10 @@ const S = /* @__PURE__ */ e.forwardRef(
|
|
|
223
224
|
),
|
|
224
225
|
target: "_blank",
|
|
225
226
|
rel: "noopener noreferrer",
|
|
226
|
-
"aria-label": `${
|
|
227
|
+
"aria-label": `${a.label} (opens in new tab)`,
|
|
227
228
|
children: [
|
|
228
|
-
|
|
229
|
-
/* @__PURE__ */ n(N, { name:
|
|
229
|
+
a.label,
|
|
230
|
+
/* @__PURE__ */ n(N, { name: I, size: "s", "aria-hidden": "true" })
|
|
230
231
|
]
|
|
231
232
|
}
|
|
232
233
|
)
|
|
@@ -235,14 +236,14 @@ const S = /* @__PURE__ */ e.forwardRef(
|
|
|
235
236
|
];
|
|
236
237
|
}
|
|
237
238
|
return t;
|
|
238
|
-
}, [t,
|
|
239
|
+
}, [t, a, u]), s = /* @__PURE__ */ n(
|
|
239
240
|
"div",
|
|
240
241
|
{
|
|
241
242
|
ref: r ? void 0 : p,
|
|
242
243
|
className: i(
|
|
243
244
|
"grid items-center",
|
|
244
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)]",
|
|
245
|
-
|
|
246
|
+
o
|
|
246
247
|
),
|
|
247
248
|
style: {
|
|
248
249
|
gridColumn: "1 / -1",
|
|
@@ -257,19 +258,19 @@ const S = /* @__PURE__ */ e.forwardRef(
|
|
|
257
258
|
return r ? /* @__PURE__ */ n(w, { asChild: !0, hideIcon: !0, children: s }) : s;
|
|
258
259
|
}
|
|
259
260
|
);
|
|
260
|
-
|
|
261
|
-
const
|
|
261
|
+
V.displayName = "AttributesRow";
|
|
262
|
+
const k = /* @__PURE__ */ e.memo(
|
|
262
263
|
/* @__PURE__ */ e.forwardRef(
|
|
263
|
-
({ className:
|
|
264
|
+
({ className: o, children: t, ...r }, a) => {
|
|
264
265
|
const d = e.useContext(h);
|
|
265
266
|
return /* @__PURE__ */ n(
|
|
266
267
|
"div",
|
|
267
268
|
{
|
|
268
|
-
ref:
|
|
269
|
+
ref: a,
|
|
269
270
|
className: i(
|
|
270
271
|
"text-[var(--color-text-secondary)] [[data-hidden='true']_&]:text-[var(--color-text-tertiary)] shrink-0",
|
|
271
272
|
d === "s" ? "[&]:text-body-medium-sm" : "[&]:text-body-medium-xsm",
|
|
272
|
-
|
|
273
|
+
o
|
|
273
274
|
),
|
|
274
275
|
...r,
|
|
275
276
|
children: t
|
|
@@ -278,20 +279,20 @@ const V = /* @__PURE__ */ e.memo(
|
|
|
278
279
|
}
|
|
279
280
|
)
|
|
280
281
|
);
|
|
281
|
-
|
|
282
|
-
const
|
|
282
|
+
k.displayName = "AttributesLabel";
|
|
283
|
+
const z = /* @__PURE__ */ e.memo(
|
|
283
284
|
/* @__PURE__ */ e.forwardRef(
|
|
284
|
-
({ className:
|
|
285
|
+
({ className: o, children: t, ...r }, a) => {
|
|
285
286
|
const d = e.useContext(h);
|
|
286
287
|
return /* @__PURE__ */ n(
|
|
287
288
|
"div",
|
|
288
289
|
{
|
|
289
|
-
ref:
|
|
290
|
+
ref: a,
|
|
290
291
|
className: i(
|
|
291
292
|
"text-[var(--color-text-primary)] [[data-hidden='true']_&]:text-[var(--color-text-tertiary)] flex items-center",
|
|
292
293
|
d === "s" ? "gap-[var(--space-s)]" : "gap-[var(--space-xs)]",
|
|
293
294
|
d === "s" ? "[&]:text-body-sm" : "[&]:text-body-xsm",
|
|
294
|
-
|
|
295
|
+
o
|
|
295
296
|
),
|
|
296
297
|
...r,
|
|
297
298
|
children: t
|
|
@@ -300,29 +301,29 @@ const k = /* @__PURE__ */ e.memo(
|
|
|
300
301
|
}
|
|
301
302
|
)
|
|
302
303
|
);
|
|
303
|
-
|
|
304
|
-
const
|
|
304
|
+
z.displayName = "AttributesValue";
|
|
305
|
+
const G = /* @__PURE__ */ e.forwardRef(({ className: o, children: t, style: r, ...a }, d) => /* @__PURE__ */ n(
|
|
305
306
|
R,
|
|
306
307
|
{
|
|
307
308
|
ref: d,
|
|
308
309
|
className: i(
|
|
309
310
|
"pt-[var(--space-s)] pb-[var(--space-s)]",
|
|
310
|
-
|
|
311
|
+
o
|
|
311
312
|
),
|
|
312
313
|
style: { gridColumn: "1 / -1", ...r },
|
|
313
|
-
...
|
|
314
|
+
...a,
|
|
314
315
|
children: t
|
|
315
316
|
}
|
|
316
317
|
));
|
|
317
|
-
|
|
318
|
-
const
|
|
318
|
+
G.displayName = "AttributesContent";
|
|
319
|
+
const E = /* @__PURE__ */ e.memo(
|
|
319
320
|
/* @__PURE__ */ e.forwardRef(
|
|
320
|
-
({ className:
|
|
321
|
+
({ className: o, ...t }, r) => /* @__PURE__ */ n(
|
|
321
322
|
"div",
|
|
322
323
|
{
|
|
323
324
|
ref: r,
|
|
324
325
|
"aria-hidden": "true",
|
|
325
|
-
className: i("shrink-0 -ml-[4px]",
|
|
326
|
+
className: i("shrink-0 -ml-[4px]", o),
|
|
326
327
|
...t,
|
|
327
328
|
children: /* @__PURE__ */ n(
|
|
328
329
|
N,
|
|
@@ -337,15 +338,15 @@ const G = /* @__PURE__ */ e.memo(
|
|
|
337
338
|
)
|
|
338
339
|
)
|
|
339
340
|
);
|
|
340
|
-
|
|
341
|
+
E.displayName = "AttributesChevron";
|
|
341
342
|
export {
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
343
|
+
E as AttributesChevron,
|
|
344
|
+
G as AttributesContent,
|
|
345
|
+
M as AttributesGroup,
|
|
346
|
+
S as AttributesItem,
|
|
347
|
+
k as AttributesLabel,
|
|
348
|
+
P as AttributesList,
|
|
349
|
+
V as AttributesRow,
|
|
350
|
+
H as AttributesSeparator,
|
|
351
|
+
z as AttributesValue
|
|
351
352
|
};
|