@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.
- package/dist/cjs/components/fundamental/alert-dialog.cjs +1 -1
- package/dist/cjs/components/fundamental/alert.cjs +1 -1
- package/dist/cjs/components/fundamental/avatar.cjs +1 -1
- package/dist/cjs/components/fundamental/badge.cjs +1 -1
- package/dist/cjs/components/fundamental/breadcrumb.cjs +1 -1
- package/dist/cjs/components/fundamental/button-group.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/card.cjs +1 -1
- package/dist/cjs/components/fundamental/chart.cjs +1 -1
- package/dist/cjs/components/fundamental/checkbox.cjs +1 -1
- package/dist/cjs/components/fundamental/command.cjs +1 -1
- package/dist/cjs/components/fundamental/dialog.cjs +1 -1
- package/dist/cjs/components/fundamental/drawer.cjs +1 -1
- package/dist/cjs/components/fundamental/dropdown-menu.cjs +1 -1
- package/dist/cjs/components/fundamental/file-upload.cjs +1 -1
- package/dist/cjs/components/fundamental/hover-card.cjs +1 -1
- package/dist/cjs/components/fundamental/input-group.cjs +1 -1
- package/dist/cjs/components/fundamental/input.cjs +1 -1
- package/dist/cjs/components/fundamental/kbd.cjs +1 -1
- package/dist/cjs/components/fundamental/month-picker.cjs +1 -1
- package/dist/cjs/components/fundamental/popover.cjs +1 -1
- package/dist/cjs/components/fundamental/resizable.cjs +1 -1
- package/dist/cjs/components/fundamental/select.cjs +1 -1
- package/dist/cjs/components/fundamental/sheet.cjs +1 -1
- package/dist/cjs/components/fundamental/sidebar.cjs +1 -1
- package/dist/cjs/components/fundamental/skeleton.cjs +1 -1
- package/dist/cjs/components/fundamental/slider.cjs +1 -1
- package/dist/cjs/components/fundamental/spinner.cjs +1 -1
- package/dist/cjs/components/fundamental/switch.cjs +1 -1
- package/dist/cjs/components/fundamental/tabs.cjs +1 -1
- package/dist/cjs/components/fundamental/tag.cjs +3 -3
- package/dist/cjs/components/fundamental/textarea.cjs +1 -1
- package/dist/cjs/components/fundamental/toast.cjs +1 -1
- package/dist/cjs/components/fundamental/toggle.cjs +1 -1
- package/dist/cjs/components/fundamental/tooltip.cjs +1 -1
- package/dist/cjs/components/fundamental/tree.cjs +1 -1
- package/dist/cjs/components/product/activity-log.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/linked-chart.cjs +1 -1
- package/dist/es/components/fundamental/alert-dialog.js +10 -10
- package/dist/es/components/fundamental/alert.js +1 -1
- package/dist/es/components/fundamental/avatar.js +23 -23
- package/dist/es/components/fundamental/badge.js +1 -1
- package/dist/es/components/fundamental/breadcrumb.js +23 -23
- package/dist/es/components/fundamental/button-group.js +14 -14
- package/dist/es/components/fundamental/button.js +28 -28
- package/dist/es/components/fundamental/calendar.js +20 -20
- package/dist/es/components/fundamental/card.js +26 -26
- package/dist/es/components/fundamental/chart.js +1 -1
- package/dist/es/components/fundamental/checkbox.js +3 -3
- package/dist/es/components/fundamental/command.js +36 -36
- package/dist/es/components/fundamental/dialog.js +7 -7
- package/dist/es/components/fundamental/drawer.js +1 -1
- package/dist/es/components/fundamental/dropdown-menu.js +111 -111
- package/dist/es/components/fundamental/file-upload.js +2 -2
- package/dist/es/components/fundamental/hover-card.js +6 -6
- package/dist/es/components/fundamental/input-group.js +2 -2
- package/dist/es/components/fundamental/input.js +1 -1
- package/dist/es/components/fundamental/kbd.js +5 -5
- package/dist/es/components/fundamental/month-picker.js +21 -21
- package/dist/es/components/fundamental/popover.js +7 -7
- package/dist/es/components/fundamental/resizable.js +1 -1
- package/dist/es/components/fundamental/select.js +21 -21
- package/dist/es/components/fundamental/sheet.js +40 -40
- package/dist/es/components/fundamental/sidebar.js +45 -45
- package/dist/es/components/fundamental/skeleton.js +19 -19
- package/dist/es/components/fundamental/slider.js +1 -1
- package/dist/es/components/fundamental/spinner.js +11 -11
- package/dist/es/components/fundamental/switch.js +7 -7
- package/dist/es/components/fundamental/tabs.js +30 -30
- package/dist/es/components/fundamental/tag.js +28 -28
- package/dist/es/components/fundamental/textarea.js +9 -9
- package/dist/es/components/fundamental/toast.js +11 -11
- package/dist/es/components/fundamental/toggle.js +7 -7
- package/dist/es/components/fundamental/tooltip.js +4 -4
- package/dist/es/components/fundamental/tree.js +17 -17
- package/dist/es/components/product/activity-log.js +41 -41
- package/dist/es/components/product/app-frame.js +181 -191
- package/dist/es/components/product/attributes-list.js +68 -68
- package/dist/es/components/product/bookmarks.js +148 -148
- package/dist/es/components/product/data-table-settings-menu.js +45 -45
- package/dist/es/components/product/data-table.js +375 -375
- package/dist/es/components/product/filters.js +5 -5
- package/dist/es/components/product/linked-chart.js +24 -24
- package/dist/es/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { jsx as
|
|
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:
|
|
8
|
+
className: a,
|
|
9
9
|
children: e,
|
|
10
10
|
separatorThreshold: t,
|
|
11
11
|
"aria-label": o = "Activity log",
|
|
12
12
|
...d
|
|
13
|
-
},
|
|
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
|
|
23
|
-
if (
|
|
24
|
-
const x = new Date(
|
|
25
|
-
Math.abs(l.getTime() - x.getTime()) >= t && c.push(/* @__PURE__ */
|
|
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__ */
|
|
31
|
+
return /* @__PURE__ */ i(
|
|
32
32
|
"div",
|
|
33
33
|
{
|
|
34
|
-
ref:
|
|
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)]",
|
|
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:
|
|
49
|
+
className: a,
|
|
50
50
|
children: e,
|
|
51
51
|
collapsible: t = !1,
|
|
52
52
|
defaultOpen: o,
|
|
53
53
|
open: d,
|
|
54
|
-
onOpenChange:
|
|
54
|
+
onOpenChange: u,
|
|
55
55
|
timestamp: v,
|
|
56
56
|
...s
|
|
57
|
-
}, c) => t ? /* @__PURE__ */
|
|
57
|
+
}, c) => t ? /* @__PURE__ */ i(
|
|
58
58
|
L,
|
|
59
59
|
{
|
|
60
60
|
ref: c,
|
|
61
61
|
defaultOpen: o,
|
|
62
62
|
open: d,
|
|
63
|
-
onOpenChange:
|
|
64
|
-
className: n("w-full group peer",
|
|
63
|
+
onOpenChange: u,
|
|
64
|
+
className: n("w-full group peer", a),
|
|
65
65
|
...s,
|
|
66
66
|
children: e
|
|
67
67
|
}
|
|
68
|
-
) : /* @__PURE__ */
|
|
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:
|
|
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
|
-
|
|
81
|
+
a
|
|
82
82
|
),
|
|
83
83
|
...e,
|
|
84
|
-
children: /* @__PURE__ */
|
|
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:
|
|
92
|
-
const { avatarOrIcon:
|
|
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,
|
|
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" ?
|
|
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:
|
|
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
|
-
|
|
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
|
-
|
|
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__ */
|
|
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:
|
|
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
|
-
|
|
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:
|
|
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
|
-
|
|
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:
|
|
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
|
-
|
|
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:
|
|
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",
|
|
188
|
+
className: n("shrink-0", a),
|
|
189
189
|
...e,
|
|
190
|
-
children: /* @__PURE__ */
|
|
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:
|
|
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
|
-
|
|
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__ */
|
|
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
|
)
|