@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.
- 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 +3 -3
- 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,11 +1,11 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useState as I, useId as m, useCallback as u, useMemo as
|
|
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
|
|
6
|
-
import { Toggle as
|
|
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
|
|
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 =
|
|
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 =
|
|
61
|
+
), H = v(
|
|
62
62
|
() => j(G),
|
|
63
63
|
[G]
|
|
64
|
-
), p =
|
|
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__ */
|
|
72
|
-
/* @__PURE__ */
|
|
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:
|
|
76
|
+
icon: ne,
|
|
77
77
|
"aria-label": "Table settings",
|
|
78
78
|
className: k
|
|
79
79
|
}
|
|
80
80
|
) }),
|
|
81
|
-
/* @__PURE__ */
|
|
82
|
-
V && /* @__PURE__ */
|
|
83
|
-
z && /* @__PURE__ */
|
|
84
|
-
/* @__PURE__ */
|
|
85
|
-
/* @__PURE__ */
|
|
86
|
-
/* @__PURE__ */
|
|
87
|
-
/* @__PURE__ */
|
|
88
|
-
/* @__PURE__ */
|
|
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__ */
|
|
91
|
-
|
|
90
|
+
l && /* @__PURE__ */ n(
|
|
91
|
+
f,
|
|
92
92
|
{
|
|
93
93
|
value: C,
|
|
94
94
|
onValueChange: (e) => q(e),
|
|
95
95
|
children: [
|
|
96
|
-
/* @__PURE__ */
|
|
97
|
-
/* @__PURE__ */
|
|
98
|
-
/* @__PURE__ */
|
|
99
|
-
/* @__PURE__ */
|
|
100
|
-
/* @__PURE__ */
|
|
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__ */
|
|
103
|
-
/* @__PURE__ */
|
|
104
|
-
/* @__PURE__ */
|
|
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__ */
|
|
113
|
-
/* @__PURE__ */
|
|
114
|
-
/* @__PURE__ */
|
|
115
|
-
/* @__PURE__ */
|
|
116
|
-
/* @__PURE__ */
|
|
117
|
-
/* @__PURE__ */
|
|
118
|
-
d.map((e) => /* @__PURE__ */
|
|
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__ */
|
|
124
|
-
$ && /* @__PURE__ */
|
|
125
|
-
/* @__PURE__ */
|
|
126
|
-
K && /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
147
|
-
|
|
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__ */
|
|
164
|
+
/* @__PURE__ */ i("div", { "aria-live": "polite", "aria-atomic": "true", className: "sr-only", children: F })
|
|
165
165
|
] })
|
|
166
166
|
] });
|
|
167
167
|
}
|