@eqtylab/equality 4.14.1 → 5.0.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/CHANGELOG.md +48 -0
- package/dist/global-theme-config.css +1 -0
- package/dist/index.cjs +906 -531
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +233 -207
- package/dist/index.d.ts +233 -207
- package/dist/index.js +883 -502
- package/dist/index.js.map +1 -1
- package/dist/nav-list.module.module.css.module.css +193 -0
- package/dist/nav.module.module.css.module.css +262 -0
- package/dist/theme-base.css +5 -0
- package/dist/theme-decisions-scoped.css +42 -0
- package/dist/theme-decisions.css +40 -0
- package/dist/theme.module.css +1 -0
- package/dist/theme.module.module.css.module.css +49 -0
- package/package.json +4 -5
- package/dist/drawer.module.module.css.module.css +0 -165
- package/dist/list-or-grid-view-toggle.module.module.css.module.css +0 -52
- package/dist/scroll-area.module.module.css.module.css +0 -46
package/dist/index.cjs
CHANGED
|
@@ -36,62 +36,59 @@ var PopoverPrimitive = require('@radix-ui/react-popover');
|
|
|
36
36
|
var styles18 = require('./popover.module.module.css.module.css');
|
|
37
37
|
var Truncate = require('react-truncate-inside');
|
|
38
38
|
var styles20 = require('./display-field.module.module.css.module.css');
|
|
39
|
-
var vaul = require('vaul');
|
|
40
|
-
var styles21 = require('./drawer.module.module.css.module.css');
|
|
41
39
|
var DropdownMenuPrimitive = require('@radix-ui/react-dropdown-menu');
|
|
42
|
-
var
|
|
43
|
-
var
|
|
44
|
-
var
|
|
40
|
+
var styles21 = require('./dropdown-menu.module.module.css.module.css');
|
|
41
|
+
var styles22 = require('./empty-table-state.module.module.css.module.css');
|
|
42
|
+
var styles23 = require('./filter-dropdown.module.module.css.module.css');
|
|
45
43
|
var reactHookForm = require('react-hook-form');
|
|
46
|
-
var
|
|
44
|
+
var styles25 = require('./form.module.module.css.module.css');
|
|
47
45
|
var LabelPrimitive = require('@radix-ui/react-label');
|
|
48
|
-
var
|
|
49
|
-
var
|
|
50
|
-
var
|
|
51
|
-
var
|
|
52
|
-
var
|
|
46
|
+
var styles24 = require('./label.module.module.css.module.css');
|
|
47
|
+
var styles26 = require('./format-date.module.module.css.module.css');
|
|
48
|
+
var styles27 = require('./heading.module.module.css.module.css');
|
|
49
|
+
var styles28 = require('./info-card.module.module.css.module.css');
|
|
50
|
+
var styles30 = require('./input.module.module.css.module.css');
|
|
53
51
|
var react = require('motion/react');
|
|
54
|
-
var
|
|
55
|
-
var styles32 = require('./
|
|
56
|
-
var
|
|
57
|
-
var styles33 = require('./
|
|
58
|
-
var styles35 = require('./
|
|
59
|
-
var
|
|
60
|
-
var styles38 = require('./pagination.module.module.css.module.css');
|
|
52
|
+
var styles29 = require('./motion-collapsible.module.module.css.module.css');
|
|
53
|
+
var styles32 = require('./loading-overlay.module.module.css.module.css');
|
|
54
|
+
var styles31 = require('./spinner.module.module.css.module.css');
|
|
55
|
+
var styles33 = require('./metric-card.module.module.css.module.css');
|
|
56
|
+
var styles35 = require('./nav-list.module.module.css.module.css');
|
|
57
|
+
var styles40 = require('./nav.module.module.css.module.css');
|
|
61
58
|
var SelectPrimitive = require('@radix-ui/react-select');
|
|
62
|
-
var
|
|
63
|
-
var styles39 = require('./
|
|
64
|
-
var styles41 = require('./
|
|
59
|
+
var styles38 = require('./select.module.module.css.module.css');
|
|
60
|
+
var styles39 = require('./skeleton.module.module.css.module.css');
|
|
61
|
+
var styles41 = require('./page-not-found.module.module.css.module.css');
|
|
62
|
+
var styles42 = require('./pagination.module.module.css.module.css');
|
|
63
|
+
var styles43 = require('./panel-label.module.module.css.module.css');
|
|
64
|
+
var styles45 = require('./progress-indicator.module.module.css.module.css');
|
|
65
65
|
var ProgressPrimitive = require('@radix-ui/react-progress');
|
|
66
|
-
var
|
|
67
|
-
var
|
|
68
|
-
var
|
|
66
|
+
var styles44 = require('./progress.module.module.css.module.css');
|
|
67
|
+
var styles46 = require('./radial-graph.module.module.css.module.css');
|
|
68
|
+
var styles47 = require('./radio-dropdown.module.module.css.module.css');
|
|
69
69
|
var RadioGroupPrimitive = require('@radix-ui/react-radio-group');
|
|
70
|
-
var
|
|
71
|
-
var
|
|
72
|
-
var
|
|
73
|
-
var
|
|
74
|
-
var
|
|
75
|
-
var styles48 = require('./section-heading.module.module.css.module.css');
|
|
76
|
-
var styles49 = require('./segmented-controls.module.module.css.module.css');
|
|
70
|
+
var styles48 = require('./radio-group.module.module.css.module.css');
|
|
71
|
+
var styles49 = require('./resource-badge.module.module.css.module.css');
|
|
72
|
+
var styles50 = require('./search-bar.module.module.css.module.css');
|
|
73
|
+
var styles51 = require('./section-heading.module.module.css.module.css');
|
|
74
|
+
var styles52 = require('./segmented-controls.module.module.css.module.css');
|
|
77
75
|
var SeparatorPrimitive = require('@radix-ui/react-separator');
|
|
78
|
-
var
|
|
79
|
-
var
|
|
80
|
-
var
|
|
81
|
-
var
|
|
82
|
-
var styles54 = require('./sort-selector.module.module.css.module.css');
|
|
76
|
+
var styles53 = require('./separator.module.module.css.module.css');
|
|
77
|
+
var styles54 = require('./sheet.module.module.css.module.css');
|
|
78
|
+
var styles55 = require('./sort-button.module.module.css.module.css');
|
|
79
|
+
var styles56 = require('./sort-selector.module.module.css.module.css');
|
|
83
80
|
var SwitchPrimitives = require('@radix-ui/react-switch');
|
|
84
|
-
var
|
|
85
|
-
var
|
|
81
|
+
var styles57 = require('./switch.module.module.css.module.css');
|
|
82
|
+
var styles58 = require('./table-components.module.module.css.module.css');
|
|
86
83
|
var TabsPrimitive = require('@radix-ui/react-tabs');
|
|
87
|
-
var
|
|
88
|
-
var
|
|
89
|
-
var
|
|
84
|
+
var styles59 = require('./tabs-components.module.module.css.module.css');
|
|
85
|
+
var styles60 = require('./tabs.module.module.css.module.css');
|
|
86
|
+
var styles61 = require('./textarea.module.module.css.module.css');
|
|
90
87
|
var ToastPrimitives = require('@radix-ui/react-toast');
|
|
91
|
-
var
|
|
92
|
-
var
|
|
93
|
-
var
|
|
94
|
-
var
|
|
88
|
+
var styles62 = require('./toast-components.module.module.css.module.css');
|
|
89
|
+
var styles63 = require('./toast.module.module.css.module.css');
|
|
90
|
+
var styles64 = require('./truncated-description.module.module.css.module.css');
|
|
91
|
+
var styles65 = require('./theme.module.module.css.module.css');
|
|
95
92
|
|
|
96
93
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
97
94
|
|
|
@@ -142,59 +139,57 @@ var PopoverPrimitive__namespace = /*#__PURE__*/_interopNamespace(PopoverPrimitiv
|
|
|
142
139
|
var styles18__default = /*#__PURE__*/_interopDefault(styles18);
|
|
143
140
|
var Truncate__default = /*#__PURE__*/_interopDefault(Truncate);
|
|
144
141
|
var styles20__default = /*#__PURE__*/_interopDefault(styles20);
|
|
145
|
-
var styles21__default = /*#__PURE__*/_interopDefault(styles21);
|
|
146
142
|
var DropdownMenuPrimitive__namespace = /*#__PURE__*/_interopNamespace(DropdownMenuPrimitive);
|
|
143
|
+
var styles21__default = /*#__PURE__*/_interopDefault(styles21);
|
|
147
144
|
var styles22__default = /*#__PURE__*/_interopDefault(styles22);
|
|
148
145
|
var styles23__default = /*#__PURE__*/_interopDefault(styles23);
|
|
146
|
+
var styles25__default = /*#__PURE__*/_interopDefault(styles25);
|
|
147
|
+
var LabelPrimitive__namespace = /*#__PURE__*/_interopNamespace(LabelPrimitive);
|
|
149
148
|
var styles24__default = /*#__PURE__*/_interopDefault(styles24);
|
|
150
149
|
var styles26__default = /*#__PURE__*/_interopDefault(styles26);
|
|
151
|
-
var LabelPrimitive__namespace = /*#__PURE__*/_interopNamespace(LabelPrimitive);
|
|
152
|
-
var styles25__default = /*#__PURE__*/_interopDefault(styles25);
|
|
153
150
|
var styles27__default = /*#__PURE__*/_interopDefault(styles27);
|
|
154
151
|
var styles28__default = /*#__PURE__*/_interopDefault(styles28);
|
|
155
|
-
var styles29__default = /*#__PURE__*/_interopDefault(styles29);
|
|
156
|
-
var styles31__default = /*#__PURE__*/_interopDefault(styles31);
|
|
157
152
|
var styles30__default = /*#__PURE__*/_interopDefault(styles30);
|
|
153
|
+
var styles29__default = /*#__PURE__*/_interopDefault(styles29);
|
|
158
154
|
var styles32__default = /*#__PURE__*/_interopDefault(styles32);
|
|
159
|
-
var
|
|
155
|
+
var styles31__default = /*#__PURE__*/_interopDefault(styles31);
|
|
160
156
|
var styles33__default = /*#__PURE__*/_interopDefault(styles33);
|
|
161
157
|
var styles35__default = /*#__PURE__*/_interopDefault(styles35);
|
|
162
|
-
var
|
|
163
|
-
var styles38__default = /*#__PURE__*/_interopDefault(styles38);
|
|
158
|
+
var styles40__default = /*#__PURE__*/_interopDefault(styles40);
|
|
164
159
|
var SelectPrimitive__namespace = /*#__PURE__*/_interopNamespace(SelectPrimitive);
|
|
165
|
-
var
|
|
160
|
+
var styles38__default = /*#__PURE__*/_interopDefault(styles38);
|
|
166
161
|
var styles39__default = /*#__PURE__*/_interopDefault(styles39);
|
|
167
162
|
var styles41__default = /*#__PURE__*/_interopDefault(styles41);
|
|
168
|
-
var ProgressPrimitive__namespace = /*#__PURE__*/_interopNamespace(ProgressPrimitive);
|
|
169
|
-
var styles40__default = /*#__PURE__*/_interopDefault(styles40);
|
|
170
163
|
var styles42__default = /*#__PURE__*/_interopDefault(styles42);
|
|
171
164
|
var styles43__default = /*#__PURE__*/_interopDefault(styles43);
|
|
172
|
-
var RadioGroupPrimitive__namespace = /*#__PURE__*/_interopNamespace(RadioGroupPrimitive);
|
|
173
|
-
var styles44__default = /*#__PURE__*/_interopDefault(styles44);
|
|
174
165
|
var styles45__default = /*#__PURE__*/_interopDefault(styles45);
|
|
175
|
-
var
|
|
166
|
+
var ProgressPrimitive__namespace = /*#__PURE__*/_interopNamespace(ProgressPrimitive);
|
|
167
|
+
var styles44__default = /*#__PURE__*/_interopDefault(styles44);
|
|
176
168
|
var styles46__default = /*#__PURE__*/_interopDefault(styles46);
|
|
177
169
|
var styles47__default = /*#__PURE__*/_interopDefault(styles47);
|
|
170
|
+
var RadioGroupPrimitive__namespace = /*#__PURE__*/_interopNamespace(RadioGroupPrimitive);
|
|
178
171
|
var styles48__default = /*#__PURE__*/_interopDefault(styles48);
|
|
179
172
|
var styles49__default = /*#__PURE__*/_interopDefault(styles49);
|
|
180
|
-
var SeparatorPrimitive__namespace = /*#__PURE__*/_interopNamespace(SeparatorPrimitive);
|
|
181
173
|
var styles50__default = /*#__PURE__*/_interopDefault(styles50);
|
|
182
174
|
var styles51__default = /*#__PURE__*/_interopDefault(styles51);
|
|
183
175
|
var styles52__default = /*#__PURE__*/_interopDefault(styles52);
|
|
176
|
+
var SeparatorPrimitive__namespace = /*#__PURE__*/_interopNamespace(SeparatorPrimitive);
|
|
184
177
|
var styles53__default = /*#__PURE__*/_interopDefault(styles53);
|
|
185
178
|
var styles54__default = /*#__PURE__*/_interopDefault(styles54);
|
|
186
|
-
var SwitchPrimitives__namespace = /*#__PURE__*/_interopNamespace(SwitchPrimitives);
|
|
187
179
|
var styles55__default = /*#__PURE__*/_interopDefault(styles55);
|
|
188
180
|
var styles56__default = /*#__PURE__*/_interopDefault(styles56);
|
|
189
|
-
var
|
|
181
|
+
var SwitchPrimitives__namespace = /*#__PURE__*/_interopNamespace(SwitchPrimitives);
|
|
190
182
|
var styles57__default = /*#__PURE__*/_interopDefault(styles57);
|
|
191
183
|
var styles58__default = /*#__PURE__*/_interopDefault(styles58);
|
|
184
|
+
var TabsPrimitive__namespace = /*#__PURE__*/_interopNamespace(TabsPrimitive);
|
|
192
185
|
var styles59__default = /*#__PURE__*/_interopDefault(styles59);
|
|
193
|
-
var ToastPrimitives__namespace = /*#__PURE__*/_interopNamespace(ToastPrimitives);
|
|
194
186
|
var styles60__default = /*#__PURE__*/_interopDefault(styles60);
|
|
195
187
|
var styles61__default = /*#__PURE__*/_interopDefault(styles61);
|
|
188
|
+
var ToastPrimitives__namespace = /*#__PURE__*/_interopNamespace(ToastPrimitives);
|
|
196
189
|
var styles62__default = /*#__PURE__*/_interopDefault(styles62);
|
|
197
190
|
var styles63__default = /*#__PURE__*/_interopDefault(styles63);
|
|
191
|
+
var styles64__default = /*#__PURE__*/_interopDefault(styles64);
|
|
192
|
+
var styles65__default = /*#__PURE__*/_interopDefault(styles65);
|
|
198
193
|
|
|
199
194
|
// src/components/alert-dialog/alert-dialog.tsx
|
|
200
195
|
var PORTAL_ROOT_ID = "equality-theme-provider-root-portal";
|
|
@@ -353,12 +348,12 @@ var ELEVATION = {
|
|
|
353
348
|
RAISED: "raised",
|
|
354
349
|
OVERLAY: "overlay"
|
|
355
350
|
};
|
|
356
|
-
var generateElevationVariants = (
|
|
351
|
+
var generateElevationVariants = (styles66, baseClassName, defaultElevation) => {
|
|
357
352
|
const classNames = {};
|
|
358
353
|
Object.values(ELEVATION).forEach((elevation) => {
|
|
359
|
-
classNames[elevation] =
|
|
354
|
+
classNames[elevation] = styles66[`${baseClassName}--${elevation}`];
|
|
360
355
|
});
|
|
361
|
-
const variants = classVarianceAuthority.cva(
|
|
356
|
+
const variants = classVarianceAuthority.cva(styles66[baseClassName], {
|
|
362
357
|
variants: {
|
|
363
358
|
elevation: classNames
|
|
364
359
|
},
|
|
@@ -970,51 +965,57 @@ var iconSizeMap = {
|
|
|
970
965
|
md: 22,
|
|
971
966
|
lg: 26
|
|
972
967
|
};
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
968
|
+
var IconButton = React15__namespace.forwardRef(
|
|
969
|
+
function IconButton2({
|
|
970
|
+
className,
|
|
971
|
+
size = "sm",
|
|
972
|
+
variant = "primary",
|
|
973
|
+
name,
|
|
974
|
+
label,
|
|
975
|
+
href,
|
|
976
|
+
target,
|
|
977
|
+
download,
|
|
978
|
+
disabled,
|
|
979
|
+
...props
|
|
980
|
+
}, ref) {
|
|
981
|
+
const Icon3 = LucideIcons__namespace[name];
|
|
982
|
+
const iconSize = iconSizeMap[size || "sm"];
|
|
983
|
+
const IconComponent = Icon3;
|
|
984
|
+
if (!Icon3) {
|
|
985
|
+
throw new Error(`Icon "${name}" not found in lucide-react`);
|
|
986
|
+
}
|
|
987
|
+
const content = /* @__PURE__ */ jsxRuntime.jsx(IconComponent, { size: iconSize });
|
|
988
|
+
if (href && !disabled) {
|
|
989
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
990
|
+
"a",
|
|
991
|
+
{
|
|
992
|
+
ref,
|
|
993
|
+
href,
|
|
994
|
+
target,
|
|
995
|
+
download,
|
|
996
|
+
"aria-label": label,
|
|
997
|
+
rel: target === "_blank" ? "noopener noreferrer" : void 0,
|
|
998
|
+
className: cn(iconButtonVariants({ size, variant }), className),
|
|
999
|
+
...props,
|
|
1000
|
+
children: content
|
|
1001
|
+
}
|
|
1002
|
+
);
|
|
1003
|
+
}
|
|
993
1004
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
994
|
-
"
|
|
1005
|
+
"button",
|
|
995
1006
|
{
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
download,
|
|
1007
|
+
ref,
|
|
1008
|
+
type: "button",
|
|
999
1009
|
"aria-label": label,
|
|
1000
|
-
|
|
1010
|
+
disabled,
|
|
1001
1011
|
className: cn(iconButtonVariants({ size, variant }), className),
|
|
1012
|
+
...props,
|
|
1002
1013
|
children: content
|
|
1003
1014
|
}
|
|
1004
1015
|
);
|
|
1005
1016
|
}
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
{
|
|
1009
|
-
type: "button",
|
|
1010
|
-
"aria-label": label,
|
|
1011
|
-
disabled,
|
|
1012
|
-
className: cn(iconButtonVariants({ size, variant }), className),
|
|
1013
|
-
...props,
|
|
1014
|
-
children: content
|
|
1015
|
-
}
|
|
1016
|
-
);
|
|
1017
|
-
}
|
|
1017
|
+
);
|
|
1018
|
+
IconButton.displayName = "IconButton";
|
|
1018
1019
|
function CopyButton({
|
|
1019
1020
|
value,
|
|
1020
1021
|
label = "Copy to clipboard",
|
|
@@ -1711,68 +1712,6 @@ function DisplayField({
|
|
|
1711
1712
|
}
|
|
1712
1713
|
);
|
|
1713
1714
|
}
|
|
1714
|
-
var Drawer = ({
|
|
1715
|
-
shouldScaleBackground = true,
|
|
1716
|
-
...props
|
|
1717
|
-
}) => /* @__PURE__ */ jsxRuntime.jsx(vaul.Drawer.Root, { shouldScaleBackground, ...props });
|
|
1718
|
-
Drawer.displayName = "Drawer";
|
|
1719
|
-
var DrawerTrigger = vaul.Drawer.Trigger;
|
|
1720
|
-
var DrawerPortal = ({ children }) => /* @__PURE__ */ jsxRuntime.jsx(vaul.Drawer.Portal, { container: usePortalContainer(), children });
|
|
1721
|
-
var DrawerClose = vaul.Drawer.Close;
|
|
1722
|
-
var DrawerOverlay = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1723
|
-
vaul.Drawer.Overlay,
|
|
1724
|
-
{
|
|
1725
|
-
ref,
|
|
1726
|
-
className: cn(styles21__default.default["drawer-overlay"], className),
|
|
1727
|
-
...props
|
|
1728
|
-
}
|
|
1729
|
-
));
|
|
1730
|
-
DrawerOverlay.displayName = vaul.Drawer.Overlay.displayName;
|
|
1731
|
-
var DrawerContent = React15__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(DrawerPortal, { children: [
|
|
1732
|
-
/* @__PURE__ */ jsxRuntime.jsx(DrawerOverlay, {}),
|
|
1733
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
1734
|
-
vaul.Drawer.Content,
|
|
1735
|
-
{
|
|
1736
|
-
ref,
|
|
1737
|
-
className: cn(styles21__default.default["drawer-content"], className),
|
|
1738
|
-
...props,
|
|
1739
|
-
children: [
|
|
1740
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: styles21__default.default["drawer-content-divider"] }),
|
|
1741
|
-
children
|
|
1742
|
-
]
|
|
1743
|
-
}
|
|
1744
|
-
)
|
|
1745
|
-
] }));
|
|
1746
|
-
DrawerContent.displayName = "DrawerContent";
|
|
1747
|
-
var DrawerHeader = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(styles21__default.default["drawer-header"], className), ...props });
|
|
1748
|
-
DrawerHeader.displayName = "DrawerHeader";
|
|
1749
|
-
var DrawerHeaderActions = React15__namespace.forwardRef(({ className, rowSpan, style, ...props }, ref) => {
|
|
1750
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1751
|
-
"div",
|
|
1752
|
-
{
|
|
1753
|
-
ref,
|
|
1754
|
-
className: cn(styles21__default.default["drawer-header-actions"], className),
|
|
1755
|
-
style: { ...style, "--row-span": rowSpan },
|
|
1756
|
-
...props
|
|
1757
|
-
}
|
|
1758
|
-
);
|
|
1759
|
-
});
|
|
1760
|
-
DrawerHeaderActions.displayName = "DrawerHeaderActions";
|
|
1761
|
-
var DrawerFooter = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(styles21__default.default["drawer-footer"], className), ...props });
|
|
1762
|
-
DrawerFooter.displayName = "DrawerFooter";
|
|
1763
|
-
var DrawerTitle = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(vaul.Drawer.Title, { ref, className: cn(styles21__default.default["drawer-title"], className), ...props }));
|
|
1764
|
-
DrawerTitle.displayName = vaul.Drawer.Title.displayName;
|
|
1765
|
-
var DrawerDescription = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1766
|
-
vaul.Drawer.Description,
|
|
1767
|
-
{
|
|
1768
|
-
ref,
|
|
1769
|
-
className: cn(styles21__default.default["drawer-description"], className),
|
|
1770
|
-
...props
|
|
1771
|
-
}
|
|
1772
|
-
));
|
|
1773
|
-
DrawerDescription.displayName = vaul.Drawer.Description.displayName;
|
|
1774
|
-
var DrawerInnerContent = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(styles21__default.default["drawer-inner-content"], className), ...props });
|
|
1775
|
-
DrawerInnerContent.displayName = "DrawerInnerContent";
|
|
1776
1715
|
function useMatchRegistry() {
|
|
1777
1716
|
const itemsRef = React15__namespace.useRef(/* @__PURE__ */ new Map());
|
|
1778
1717
|
const [matchCount, setMatchCount] = React15__namespace.useState(0);
|
|
@@ -2064,14 +2003,14 @@ var DropdownMenuSubTrigger = React15__namespace.forwardRef(({ className, inset,
|
|
|
2064
2003
|
{
|
|
2065
2004
|
ref,
|
|
2066
2005
|
className: cn(
|
|
2067
|
-
|
|
2068
|
-
inset &&
|
|
2006
|
+
styles21__default.default["dropdown-menu-trigger"],
|
|
2007
|
+
inset && styles21__default.default["dropdown-menu-inset"],
|
|
2069
2008
|
className
|
|
2070
2009
|
),
|
|
2071
2010
|
...props,
|
|
2072
2011
|
children: [
|
|
2073
2012
|
children,
|
|
2074
|
-
/* @__PURE__ */ jsxRuntime.jsx(ChevronRightIcon2, { className:
|
|
2013
|
+
/* @__PURE__ */ jsxRuntime.jsx(ChevronRightIcon2, { className: styles21__default.default["dropdown-menu-subtrigger-chevron"] })
|
|
2075
2014
|
]
|
|
2076
2015
|
}
|
|
2077
2016
|
);
|
|
@@ -2081,7 +2020,7 @@ var DropdownMenuSubContent = React15__namespace.forwardRef(({ className, ...prop
|
|
|
2081
2020
|
DropdownMenuPrimitive__namespace.SubContent,
|
|
2082
2021
|
{
|
|
2083
2022
|
ref,
|
|
2084
|
-
className: cn(
|
|
2023
|
+
className: cn(styles21__default.default["dropdown-menu-sub-content"], className),
|
|
2085
2024
|
...props
|
|
2086
2025
|
}
|
|
2087
2026
|
));
|
|
@@ -2145,7 +2084,7 @@ var DropdownMenuContent = React15__namespace.forwardRef(
|
|
|
2145
2084
|
DropdownMenuPrimitive__namespace.Content,
|
|
2146
2085
|
{
|
|
2147
2086
|
ref: composedContentRef,
|
|
2148
|
-
className: cn(
|
|
2087
|
+
className: cn(styles21__default.default["dropdown-menu-content"], className),
|
|
2149
2088
|
sideOffset,
|
|
2150
2089
|
...sideProps,
|
|
2151
2090
|
onFocus: handleFocus,
|
|
@@ -2160,7 +2099,7 @@ var DropdownMenuContent = React15__namespace.forwardRef(
|
|
|
2160
2099
|
},
|
|
2161
2100
|
...props,
|
|
2162
2101
|
children: [
|
|
2163
|
-
ctx?.enabled ? /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
2102
|
+
ctx?.enabled ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles21__default.default["dropdown-menu-sr-status"], role: "status", "aria-live": "polite", children: searching && resultCount > 0 ? formatResultCount(resultCount) : null }) : null,
|
|
2164
2103
|
children
|
|
2165
2104
|
]
|
|
2166
2105
|
}
|
|
@@ -2184,15 +2123,15 @@ var DropdownMenuSearch = React15__namespace.forwardRef(
|
|
|
2184
2123
|
}
|
|
2185
2124
|
const { ref, isRendered } = useSearchInput(ctx, alwaysVisible, forwardedRef);
|
|
2186
2125
|
if (!isRendered) return null;
|
|
2187
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
2188
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { "aria-hidden": "true", className:
|
|
2126
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles21__default.default["dropdown-menu-search"], children: [
|
|
2127
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { "aria-hidden": "true", className: styles21__default.default["dropdown-menu-item-icon"], children: icon ?? /* @__PURE__ */ jsxRuntime.jsx(SearchIcon2, { className: styles21__default.default["icon-size"] }) }),
|
|
2189
2128
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2190
2129
|
"input",
|
|
2191
2130
|
{
|
|
2192
2131
|
...props,
|
|
2193
2132
|
ref,
|
|
2194
2133
|
"data-dropdown-search": "",
|
|
2195
|
-
className: cn(
|
|
2134
|
+
className: cn(styles21__default.default["dropdown-menu-search-input"], className),
|
|
2196
2135
|
value: ctx.query,
|
|
2197
2136
|
placeholder,
|
|
2198
2137
|
"aria-label": ariaLabel ?? placeholder,
|
|
@@ -2238,7 +2177,7 @@ var DropdownMenuEmpty = ({
|
|
|
2238
2177
|
...props,
|
|
2239
2178
|
role: "status",
|
|
2240
2179
|
"aria-live": "polite",
|
|
2241
|
-
className: isEmpty ? cn(
|
|
2180
|
+
className: isEmpty ? cn(styles21__default.default["dropdown-menu-empty"], className) : void 0,
|
|
2242
2181
|
children: isEmpty ? children : null
|
|
2243
2182
|
}
|
|
2244
2183
|
);
|
|
@@ -2247,7 +2186,7 @@ DropdownMenuEmpty.displayName = "DropdownMenuEmpty";
|
|
|
2247
2186
|
var ItemBreadcrumb = () => {
|
|
2248
2187
|
const ancestry = useBreadcrumbAncestry();
|
|
2249
2188
|
if (!ancestry.length) return null;
|
|
2250
|
-
return /* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
2189
|
+
return /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles21__default.default["dropdown-menu-breadcrumb"], "aria-hidden": "true", children: ancestry.map((crumb, index) => /* @__PURE__ */ jsxRuntime.jsxs(React15__namespace.Fragment, { children: [
|
|
2251
2190
|
crumb,
|
|
2252
2191
|
/* @__PURE__ */ jsxRuntime.jsx(ChevronRightIcon2, {})
|
|
2253
2192
|
] }, index)) });
|
|
@@ -2261,10 +2200,10 @@ var DropdownMenuItem = React15__namespace.forwardRef(({ className, inset, varian
|
|
|
2261
2200
|
ref,
|
|
2262
2201
|
textValue,
|
|
2263
2202
|
className: cn(
|
|
2264
|
-
|
|
2265
|
-
inset &&
|
|
2266
|
-
variant === "warning" &&
|
|
2267
|
-
variant === "danger" &&
|
|
2203
|
+
styles21__default.default["dropdown-menu-item"],
|
|
2204
|
+
inset && styles21__default.default["dropdown-menu-inset"],
|
|
2205
|
+
variant === "warning" && styles21__default.default["dropdown-menu-item-warning"],
|
|
2206
|
+
variant === "danger" && styles21__default.default["dropdown-menu-item-danger"],
|
|
2268
2207
|
className
|
|
2269
2208
|
),
|
|
2270
2209
|
...props,
|
|
@@ -2285,12 +2224,12 @@ var DropdownMenuCheckboxItem = React15__namespace.forwardRef(({ className, child
|
|
|
2285
2224
|
{
|
|
2286
2225
|
ref,
|
|
2287
2226
|
textValue,
|
|
2288
|
-
className: cn(
|
|
2227
|
+
className: cn(styles21__default.default["dropdown-menu-checkbox-item"], className),
|
|
2289
2228
|
checked,
|
|
2290
2229
|
...props,
|
|
2291
2230
|
"data-persistent": persistent ? "" : void 0,
|
|
2292
2231
|
children: [
|
|
2293
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
2232
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: styles21__default.default["dropdown-menu-item-indicator-checkbox"], children: /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuPrimitive__namespace.ItemIndicator, { children: /* @__PURE__ */ jsxRuntime.jsx(CheckIcon2, { className: styles21__default.default["icon-size"] }) }) }),
|
|
2294
2233
|
/* @__PURE__ */ jsxRuntime.jsx(ItemBreadcrumb, {}),
|
|
2295
2234
|
children
|
|
2296
2235
|
]
|
|
@@ -2306,11 +2245,11 @@ var DropdownMenuRadioItem = React15__namespace.forwardRef(({ className, children
|
|
|
2306
2245
|
{
|
|
2307
2246
|
ref,
|
|
2308
2247
|
textValue,
|
|
2309
|
-
className: cn(
|
|
2248
|
+
className: cn(styles21__default.default["dropdown-menu-radio-item"], className),
|
|
2310
2249
|
...props,
|
|
2311
2250
|
"data-persistent": persistent ? "" : void 0,
|
|
2312
2251
|
children: [
|
|
2313
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
2252
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: styles21__default.default["dropdown-menu-item-indicator-radio"], children: /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuPrimitive__namespace.ItemIndicator, { children: /* @__PURE__ */ jsxRuntime.jsx(CircleIcon, { className: styles21__default.default["radio-icon"] }) }) }),
|
|
2314
2253
|
/* @__PURE__ */ jsxRuntime.jsx(ItemBreadcrumb, {}),
|
|
2315
2254
|
children
|
|
2316
2255
|
]
|
|
@@ -2326,8 +2265,8 @@ var DropdownMenuLabel = React15__namespace.forwardRef(({ className, inset, ...pr
|
|
|
2326
2265
|
{
|
|
2327
2266
|
ref,
|
|
2328
2267
|
className: cn(
|
|
2329
|
-
|
|
2330
|
-
inset &&
|
|
2268
|
+
styles21__default.default["dropdown-menu-label"],
|
|
2269
|
+
inset && styles21__default.default["dropdown-menu-inset"],
|
|
2331
2270
|
className
|
|
2332
2271
|
),
|
|
2333
2272
|
...props
|
|
@@ -2342,14 +2281,14 @@ var DropdownMenuSeparator = React15__namespace.forwardRef(({ className, persiste
|
|
|
2342
2281
|
DropdownMenuPrimitive__namespace.Separator,
|
|
2343
2282
|
{
|
|
2344
2283
|
ref,
|
|
2345
|
-
className: cn(
|
|
2284
|
+
className: cn(styles21__default.default["dropdown-menu-separator"], className),
|
|
2346
2285
|
...props
|
|
2347
2286
|
}
|
|
2348
2287
|
);
|
|
2349
2288
|
});
|
|
2350
2289
|
DropdownMenuSeparator.displayName = DropdownMenuPrimitive__namespace.Separator.displayName;
|
|
2351
2290
|
var DropdownMenuShortcut = ({ className, ...props }) => {
|
|
2352
|
-
return /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn(
|
|
2291
|
+
return /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn(styles21__default.default["dropdown-menu-shortcut"], className), ...props });
|
|
2353
2292
|
};
|
|
2354
2293
|
DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
|
|
2355
2294
|
var EmptyTableState = ({
|
|
@@ -2362,13 +2301,13 @@ var EmptyTableState = ({
|
|
|
2362
2301
|
className
|
|
2363
2302
|
}) => {
|
|
2364
2303
|
const showButton = showClearButton && onClear;
|
|
2365
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn(
|
|
2366
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
2304
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn(styles22__default.default["empty-table-state"], className), children: [
|
|
2305
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles22__default.default["icon-and-title-container"], children: [
|
|
2367
2306
|
/* @__PURE__ */ jsxRuntime.jsx(Icon, { icon, size: "md", background: "circle", elevation }),
|
|
2368
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
2307
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: styles22__default.default["title"], children: title })
|
|
2369
2308
|
] }),
|
|
2370
|
-
description && /* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
2371
|
-
showButton && /* @__PURE__ */ jsxRuntime.jsx(Button, { variant: "tertiary", size: "sm", onClick: onClear, className:
|
|
2309
|
+
description && /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles22__default.default["description"], children: description }),
|
|
2310
|
+
showButton && /* @__PURE__ */ jsxRuntime.jsx(Button, { variant: "tertiary", size: "sm", onClick: onClear, className: styles22__default.default["clear-button"], children: "Clear Filters" })
|
|
2372
2311
|
] });
|
|
2373
2312
|
};
|
|
2374
2313
|
var ChevronDownIcon = LucideIcons.ChevronDown;
|
|
@@ -2405,13 +2344,13 @@ var FilterDropdown = ({
|
|
|
2405
2344
|
{
|
|
2406
2345
|
variant: "tertiary",
|
|
2407
2346
|
disabled,
|
|
2408
|
-
className: cn(
|
|
2347
|
+
className: cn(styles23__default.default["selector-button"], buttonClassName),
|
|
2409
2348
|
children: [
|
|
2410
|
-
/* @__PURE__ */ jsxRuntime.jsxs("span", { className:
|
|
2349
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: styles23__default.default["selector-button-content"], children: [
|
|
2411
2350
|
label,
|
|
2412
2351
|
hasSelectedFilters && /* @__PURE__ */ jsxRuntime.jsx(Badge, { variant: "primary", children: selectedFilters.length })
|
|
2413
2352
|
] }),
|
|
2414
|
-
/* @__PURE__ */ jsxRuntime.jsx(ChevronDownIcon, { className:
|
|
2353
|
+
/* @__PURE__ */ jsxRuntime.jsx(ChevronDownIcon, { className: styles23__default.default["chevron-icon"] })
|
|
2415
2354
|
]
|
|
2416
2355
|
}
|
|
2417
2356
|
) }),
|
|
@@ -2419,16 +2358,16 @@ var FilterDropdown = ({
|
|
|
2419
2358
|
DropdownMenuContent,
|
|
2420
2359
|
{
|
|
2421
2360
|
align: "end",
|
|
2422
|
-
className: cn(
|
|
2361
|
+
className: cn(styles23__default.default["dropdown-menu-content"], contentClassName),
|
|
2423
2362
|
children: [
|
|
2424
2363
|
searchable && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
2425
2364
|
/* @__PURE__ */ jsxRuntime.jsx(DropdownMenuSearch, { placeholder: searchPlaceholder, "aria-label": label }),
|
|
2426
2365
|
/* @__PURE__ */ jsxRuntime.jsx(DropdownMenuEmpty, { children: emptyPlaceholder })
|
|
2427
2366
|
] }),
|
|
2428
2367
|
!searchable && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
2429
|
-
/* @__PURE__ */ jsxRuntime.jsxs(DropdownMenuLabel, { className:
|
|
2368
|
+
/* @__PURE__ */ jsxRuntime.jsxs(DropdownMenuLabel, { className: styles23__default.default["filters-header"], children: [
|
|
2430
2369
|
"Filters",
|
|
2431
|
-
hasSelectedFilters && clearAll(
|
|
2370
|
+
hasSelectedFilters && clearAll(styles23__default.default["clear-all-inline"])
|
|
2432
2371
|
] }),
|
|
2433
2372
|
/* @__PURE__ */ jsxRuntime.jsx(DropdownMenuSeparator, {})
|
|
2434
2373
|
] }),
|
|
@@ -2440,21 +2379,21 @@ var FilterDropdown = ({
|
|
|
2440
2379
|
checked: isSelected,
|
|
2441
2380
|
onCheckedChange: () => onToggleFilter(option.value),
|
|
2442
2381
|
onSelect: (e) => e.preventDefault(),
|
|
2443
|
-
children: /* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
2382
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles23__default.default["option-label"], title: option.label, children: option.label })
|
|
2444
2383
|
},
|
|
2445
2384
|
option.value
|
|
2446
2385
|
);
|
|
2447
2386
|
}),
|
|
2448
|
-
searchable && hasSelectedFilters && /* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
2387
|
+
searchable && hasSelectedFilters && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles23__default.default["clear-all-footer"], children: [
|
|
2449
2388
|
/* @__PURE__ */ jsxRuntime.jsx(DropdownMenuSeparator, { persistent: true }),
|
|
2450
|
-
clearAll(
|
|
2389
|
+
clearAll(styles23__default.default["clear-all"])
|
|
2451
2390
|
] })
|
|
2452
2391
|
]
|
|
2453
2392
|
}
|
|
2454
2393
|
)
|
|
2455
2394
|
] });
|
|
2456
2395
|
};
|
|
2457
|
-
var labelVariants = classVarianceAuthority.cva(
|
|
2396
|
+
var labelVariants = classVarianceAuthority.cva(styles24__default.default["label"]);
|
|
2458
2397
|
var Label2 = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(LabelPrimitive__namespace.Root, { ref, className: cn(labelVariants(), className), ...props }));
|
|
2459
2398
|
Label2.displayName = LabelPrimitive__namespace.Root.displayName;
|
|
2460
2399
|
var Form = reactHookForm.FormProvider;
|
|
@@ -2486,7 +2425,7 @@ var FormItemContext = React15__namespace.createContext({});
|
|
|
2486
2425
|
var FormItem = React15__namespace.forwardRef(
|
|
2487
2426
|
({ className, ...props }, ref) => {
|
|
2488
2427
|
const id = React15__namespace.useId();
|
|
2489
|
-
return /* @__PURE__ */ jsxRuntime.jsx(FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: cn(
|
|
2428
|
+
return /* @__PURE__ */ jsxRuntime.jsx(FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: cn(styles25__default.default["form-item"], className), ...props }) });
|
|
2490
2429
|
}
|
|
2491
2430
|
);
|
|
2492
2431
|
FormItem.displayName = "FormItem";
|
|
@@ -2496,7 +2435,7 @@ var FormLabel = React15__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
|
2496
2435
|
Label2,
|
|
2497
2436
|
{
|
|
2498
2437
|
ref,
|
|
2499
|
-
className: cn(
|
|
2438
|
+
className: cn(styles25__default.default["form-label"], error && styles25__default.default["form-label--failure"], className),
|
|
2500
2439
|
htmlFor: formItemId,
|
|
2501
2440
|
...props
|
|
2502
2441
|
}
|
|
@@ -2524,7 +2463,7 @@ var FormDescription = React15__namespace.forwardRef(({ className, ...props }, re
|
|
|
2524
2463
|
{
|
|
2525
2464
|
ref,
|
|
2526
2465
|
id: formDescriptionId,
|
|
2527
|
-
className: cn(
|
|
2466
|
+
className: cn(styles25__default.default["form-description"], className),
|
|
2528
2467
|
...props
|
|
2529
2468
|
}
|
|
2530
2469
|
);
|
|
@@ -2536,7 +2475,7 @@ var FormMessage = React15__namespace.forwardRef(({ className, children, ...props
|
|
|
2536
2475
|
if (!body) {
|
|
2537
2476
|
return null;
|
|
2538
2477
|
}
|
|
2539
|
-
return /* @__PURE__ */ jsxRuntime.jsx("p", { ref, id: formMessageId, className: cn(
|
|
2478
|
+
return /* @__PURE__ */ jsxRuntime.jsx("p", { ref, id: formMessageId, className: cn(styles25__default.default["form-message"], className), ...props, children: body });
|
|
2540
2479
|
});
|
|
2541
2480
|
FormMessage.displayName = "FormMessage";
|
|
2542
2481
|
var DEFAULT_LOCALE = "en-US";
|
|
@@ -2622,8 +2561,8 @@ function DatePlaceholder({
|
|
|
2622
2561
|
className,
|
|
2623
2562
|
...props
|
|
2624
2563
|
}) {
|
|
2625
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("span", { className: cn(
|
|
2626
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
2564
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("span", { className: cn(styles26__default.default["format-date"], className), ...props, children: [
|
|
2565
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: styles26__default.default["visually-hidden"], children: label }),
|
|
2627
2566
|
/* @__PURE__ */ jsxRuntime.jsx("span", { "aria-hidden": "true", children: NO_DATE_PLACEHOLDER })
|
|
2628
2567
|
] });
|
|
2629
2568
|
}
|
|
@@ -2653,7 +2592,7 @@ function FormatDate({
|
|
|
2653
2592
|
return /* @__PURE__ */ jsxRuntime.jsx(DatePlaceholder, { label: "No date", className, ...props });
|
|
2654
2593
|
}
|
|
2655
2594
|
if (!parsed) {
|
|
2656
|
-
return /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn(
|
|
2595
|
+
return /* @__PURE__ */ jsxRuntime.jsx("span", { className: cn(styles26__default.default["format-date"], className), ...props, children: "Invalid date" });
|
|
2657
2596
|
}
|
|
2658
2597
|
const machineValue = parsed.toISOString();
|
|
2659
2598
|
const absolute = formatAbsolute(
|
|
@@ -2663,14 +2602,14 @@ function FormatDate({
|
|
|
2663
2602
|
locale
|
|
2664
2603
|
);
|
|
2665
2604
|
if (isAbsolute) {
|
|
2666
|
-
return /* @__PURE__ */ jsxRuntime.jsx("time", { dateTime: machineValue, className: cn(
|
|
2605
|
+
return /* @__PURE__ */ jsxRuntime.jsx("time", { dateTime: machineValue, className: cn(styles26__default.default["format-date"], className), ...props, children: absolute });
|
|
2667
2606
|
}
|
|
2668
2607
|
const measured = !mounted ? absolute : displayAs === "relative" ? formatRelative(parsed, now, locale) : formatCountdown(parsed, now, locale);
|
|
2669
2608
|
if (measured === null) {
|
|
2670
2609
|
return /* @__PURE__ */ jsxRuntime.jsx(DatePlaceholder, { label: "Date has passed", className, ...props });
|
|
2671
2610
|
}
|
|
2672
2611
|
if (!tooltip) {
|
|
2673
|
-
return /* @__PURE__ */ jsxRuntime.jsx("time", { dateTime: machineValue, className: cn(
|
|
2612
|
+
return /* @__PURE__ */ jsxRuntime.jsx("time", { dateTime: machineValue, className: cn(styles26__default.default["format-date"], className), ...props, children: measured });
|
|
2674
2613
|
}
|
|
2675
2614
|
return /* @__PURE__ */ jsxRuntime.jsx(TooltipProvider, { children: /* @__PURE__ */ jsxRuntime.jsxs(Tooltip, { children: [
|
|
2676
2615
|
/* @__PURE__ */ jsxRuntime.jsx(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -2678,7 +2617,7 @@ function FormatDate({
|
|
|
2678
2617
|
{
|
|
2679
2618
|
dateTime: machineValue,
|
|
2680
2619
|
tabIndex: 0,
|
|
2681
|
-
className: cn(
|
|
2620
|
+
className: cn(styles26__default.default["format-date"], styles26__default.default["format-date--interactive"], className),
|
|
2682
2621
|
...props,
|
|
2683
2622
|
children: measured
|
|
2684
2623
|
}
|
|
@@ -2689,12 +2628,12 @@ function FormatDate({
|
|
|
2689
2628
|
var Heading = React15.forwardRef(
|
|
2690
2629
|
({ className, as, displayAs, children, ...props }, ref) => {
|
|
2691
2630
|
const displayClasses = {
|
|
2692
|
-
h1:
|
|
2693
|
-
h2:
|
|
2694
|
-
h3:
|
|
2695
|
-
h4:
|
|
2696
|
-
h5:
|
|
2697
|
-
h6:
|
|
2631
|
+
h1: styles27__default.default["h1"],
|
|
2632
|
+
h2: styles27__default.default["h2"],
|
|
2633
|
+
h3: styles27__default.default["h3"],
|
|
2634
|
+
h4: styles27__default.default["h4"],
|
|
2635
|
+
h5: styles27__default.default["h5"],
|
|
2636
|
+
h6: styles27__default.default["h6"]
|
|
2698
2637
|
};
|
|
2699
2638
|
const displayClass = displayClasses[displayAs] || displayClasses[as];
|
|
2700
2639
|
const HeadingTag = as;
|
|
@@ -2711,7 +2650,7 @@ var InfoCard = ({
|
|
|
2711
2650
|
onClick,
|
|
2712
2651
|
...props
|
|
2713
2652
|
}) => {
|
|
2714
|
-
return /* @__PURE__ */ jsxRuntime.jsx(Card, { className, onClick, elevation, ...props, children: /* @__PURE__ */ jsxRuntime.jsx(CardContent, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
2653
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Card, { className, onClick, elevation, ...props, children: /* @__PURE__ */ jsxRuntime.jsx(CardContent, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles28__default.default["info-card-content"], children: [
|
|
2715
2654
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2716
2655
|
Icon,
|
|
2717
2656
|
{
|
|
@@ -2721,9 +2660,9 @@ var InfoCard = ({
|
|
|
2721
2660
|
elevation: elevation === ELEVATION.SUNKEN ? ELEVATION.BASE : getRelativeElevation(elevation, -1)
|
|
2722
2661
|
}
|
|
2723
2662
|
),
|
|
2724
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
2725
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className:
|
|
2726
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
2663
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles28__default.default["copy-container"], children: [
|
|
2664
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: styles28__default.default["label"], children: label }),
|
|
2665
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: styles28__default.default["description"], children: description })
|
|
2727
2666
|
] })
|
|
2728
2667
|
] }) }) });
|
|
2729
2668
|
};
|
|
@@ -2757,8 +2696,8 @@ var MotionCollapsibleContent = ({
|
|
|
2757
2696
|
onAnimationStart: () => setIsSettled(false),
|
|
2758
2697
|
onAnimationComplete: () => setIsSettled(isOpen),
|
|
2759
2698
|
className: cn(
|
|
2760
|
-
|
|
2761
|
-
isSettled &&
|
|
2699
|
+
styles29__default.default["motion-collapsible"],
|
|
2700
|
+
isSettled && styles29__default.default["motion-collapsible--settled"],
|
|
2762
2701
|
className
|
|
2763
2702
|
),
|
|
2764
2703
|
children: /* @__PURE__ */ jsxRuntime.jsx("div", { ref: contentRef, children })
|
|
@@ -2788,128 +2727,84 @@ var Input = React15__namespace.forwardRef(
|
|
|
2788
2727
|
const hasError = hasErrorText || isMarkedInvalid;
|
|
2789
2728
|
const showHelpText = !!helpText && !hasErrorText;
|
|
2790
2729
|
const describedBy = [ariaDescribedBy, showHelpText && helpTextId, hasErrorText && errorTextId].filter(Boolean).join(" ") || void 0;
|
|
2791
|
-
const errorIcon = /* @__PURE__ */ jsxRuntime.jsx(LucideIcons.TriangleAlert, { className:
|
|
2792
|
-
const errorMessage = errorList && errorList.length > 1 ? /* @__PURE__ */ jsxRuntime.jsx("ul", { id: errorTextId, role: "alert", className:
|
|
2730
|
+
const errorIcon = /* @__PURE__ */ jsxRuntime.jsx(LucideIcons.TriangleAlert, { className: styles30__default.default["input-error-icon"], "aria-hidden": "true" });
|
|
2731
|
+
const errorMessage = errorList && errorList.length > 1 ? /* @__PURE__ */ jsxRuntime.jsx("ul", { id: errorTextId, role: "alert", className: styles30__default.default["input-error-list"], children: errorList.map((message) => /* @__PURE__ */ jsxRuntime.jsxs("li", { className: styles30__default.default["input-error-text"], children: [
|
|
2793
2732
|
errorIcon,
|
|
2794
2733
|
/* @__PURE__ */ jsxRuntime.jsx("span", { children: message })
|
|
2795
|
-
] }, message)) }) : /* @__PURE__ */ jsxRuntime.jsxs("p", { id: errorTextId, role: "alert", className:
|
|
2734
|
+
] }, message)) }) : /* @__PURE__ */ jsxRuntime.jsxs("p", { id: errorTextId, role: "alert", className: styles30__default.default["input-error-text"], children: [
|
|
2796
2735
|
errorIcon,
|
|
2797
2736
|
/* @__PURE__ */ jsxRuntime.jsx("span", { children: errorList ? errorList[0] : errorText })
|
|
2798
2737
|
] });
|
|
2799
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn(
|
|
2738
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn(styles30__default.default["input-container"], containerClassName), children: [
|
|
2800
2739
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
2801
2740
|
"div",
|
|
2802
2741
|
{
|
|
2803
2742
|
className: cn(
|
|
2804
|
-
|
|
2805
|
-
hasError &&
|
|
2743
|
+
styles30__default.default["input-wrapper"],
|
|
2744
|
+
hasError && styles30__default.default["input-wrapper--error"],
|
|
2806
2745
|
className
|
|
2807
2746
|
),
|
|
2808
2747
|
children: [
|
|
2809
|
-
prefix && /* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
2748
|
+
prefix && /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles30__default.default["input-prefix"], children: prefix }),
|
|
2810
2749
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2811
2750
|
"input",
|
|
2812
2751
|
{
|
|
2813
2752
|
type,
|
|
2814
|
-
className:
|
|
2753
|
+
className: styles30__default.default["input-element"],
|
|
2815
2754
|
ref,
|
|
2816
2755
|
"aria-invalid": isMarkedInvalid ? ariaInvalid : hasErrorText || void 0,
|
|
2817
2756
|
"aria-describedby": describedBy,
|
|
2818
2757
|
...props
|
|
2819
2758
|
}
|
|
2820
2759
|
),
|
|
2821
|
-
suffix && /* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
2760
|
+
suffix && /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles30__default.default["input-suffix"], children: suffix })
|
|
2822
2761
|
]
|
|
2823
2762
|
}
|
|
2824
2763
|
),
|
|
2825
2764
|
helpText ? hasErrorText && errorMessage : /* @__PURE__ */ jsxRuntime.jsx(MotionCollapsibleContent, { isOpen: hasErrorText, children: errorMessage }),
|
|
2826
|
-
showHelpText && /* @__PURE__ */ jsxRuntime.jsx("p", { id: helpTextId, className:
|
|
2765
|
+
showHelpText && /* @__PURE__ */ jsxRuntime.jsx("p", { id: helpTextId, className: styles30__default.default["input-help-text"], children: helpText })
|
|
2827
2766
|
] });
|
|
2828
2767
|
}
|
|
2829
2768
|
);
|
|
2830
2769
|
Input.displayName = "Input";
|
|
2831
|
-
var ListOrGridViewToggle = ({
|
|
2832
|
-
viewMode,
|
|
2833
|
-
onViewModeChange,
|
|
2834
|
-
order = ["grid", "list"],
|
|
2835
|
-
className
|
|
2836
|
-
}) => {
|
|
2837
|
-
const currentActiveIndex = order.indexOf(viewMode);
|
|
2838
|
-
const handleGridClick = () => {
|
|
2839
|
-
onViewModeChange("grid");
|
|
2840
|
-
};
|
|
2841
|
-
const handleListClick = () => {
|
|
2842
|
-
onViewModeChange("list");
|
|
2843
|
-
};
|
|
2844
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn(styles32__default.default["list-or-grid-view-toggle"], className), children: [
|
|
2845
|
-
order.map((mode) => {
|
|
2846
|
-
const currentlyActive = mode === viewMode;
|
|
2847
|
-
const Icon3 = mode === "grid" ? LucideIcons.Grid3X3 : LucideIcons.List;
|
|
2848
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2849
|
-
"button",
|
|
2850
|
-
{
|
|
2851
|
-
type: "button",
|
|
2852
|
-
"aria-label": mode === "grid" ? "Grid view" : "List view",
|
|
2853
|
-
className: cn(
|
|
2854
|
-
styles32__default.default["icon-button"],
|
|
2855
|
-
currentlyActive ? styles32__default.default["icon-button--active"] : styles32__default.default["icon-button--inactive"]
|
|
2856
|
-
),
|
|
2857
|
-
onClick: mode === "grid" ? handleGridClick : handleListClick,
|
|
2858
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(Icon3, { size: 16 })
|
|
2859
|
-
},
|
|
2860
|
-
mode
|
|
2861
|
-
);
|
|
2862
|
-
}),
|
|
2863
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2864
|
-
"div",
|
|
2865
|
-
{
|
|
2866
|
-
className: styles32__default.default["active-button-indicator"],
|
|
2867
|
-
style: {
|
|
2868
|
-
transform: `translateX(${currentActiveIndex * 100}%)`,
|
|
2869
|
-
width: `${100 / order.length}%`
|
|
2870
|
-
}
|
|
2871
|
-
}
|
|
2872
|
-
)
|
|
2873
|
-
] });
|
|
2874
|
-
};
|
|
2875
2770
|
var Spinner = ({ size = "md", variant = "primary" }) => {
|
|
2876
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
2877
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(
|
|
2878
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(
|
|
2771
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles31__default.default["spinner-container"], children: [
|
|
2772
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(styles31__default.default["spinner"], styles31__default.default[size], styles31__default.default[variant]) }),
|
|
2773
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(styles31__default.default["spinner-background"], styles31__default.default[size]) })
|
|
2879
2774
|
] });
|
|
2880
2775
|
};
|
|
2881
2776
|
function LoadingOverlay({ isVisible, message = "Loading..." }) {
|
|
2882
2777
|
if (!isVisible) return null;
|
|
2883
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
2778
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles32__default.default["loading-overlay"], children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles32__default.default["content"], children: [
|
|
2884
2779
|
/* @__PURE__ */ jsxRuntime.jsx(Spinner, { variant: "primary" }),
|
|
2885
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className:
|
|
2780
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: styles32__default.default["message"], children: message })
|
|
2886
2781
|
] }) });
|
|
2887
2782
|
}
|
|
2888
2783
|
var metricCardElevationVariants = generateElevationVariants(
|
|
2889
|
-
|
|
2784
|
+
styles33__default.default,
|
|
2890
2785
|
"metric-card",
|
|
2891
2786
|
ELEVATION.RAISED
|
|
2892
2787
|
);
|
|
2893
2788
|
var VARIANTS = {
|
|
2894
2789
|
default: {
|
|
2895
|
-
text:
|
|
2896
|
-
iconBg:
|
|
2790
|
+
text: styles33__default.default["text-default"],
|
|
2791
|
+
iconBg: styles33__default.default["bg-default"]
|
|
2897
2792
|
},
|
|
2898
2793
|
primary: {
|
|
2899
|
-
text:
|
|
2900
|
-
iconBg:
|
|
2794
|
+
text: styles33__default.default["text-primary"],
|
|
2795
|
+
iconBg: styles33__default.default["bg-primary"]
|
|
2901
2796
|
},
|
|
2902
2797
|
danger: {
|
|
2903
|
-
text:
|
|
2904
|
-
iconBg:
|
|
2798
|
+
text: styles33__default.default["text-danger"],
|
|
2799
|
+
iconBg: styles33__default.default["bg-danger"]
|
|
2905
2800
|
},
|
|
2906
2801
|
success: {
|
|
2907
|
-
text:
|
|
2908
|
-
iconBg:
|
|
2802
|
+
text: styles33__default.default["text-success"],
|
|
2803
|
+
iconBg: styles33__default.default["bg-success"]
|
|
2909
2804
|
},
|
|
2910
2805
|
warning: {
|
|
2911
|
-
text:
|
|
2912
|
-
iconBg:
|
|
2806
|
+
text: styles33__default.default["text-warning"],
|
|
2807
|
+
iconBg: styles33__default.default["bg-warning"]
|
|
2913
2808
|
}
|
|
2914
2809
|
};
|
|
2915
2810
|
var MetricCard = ({
|
|
@@ -2922,8 +2817,8 @@ var MetricCard = ({
|
|
|
2922
2817
|
}) => {
|
|
2923
2818
|
const variantStyles = VARIANTS[variant];
|
|
2924
2819
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn(metricCardElevationVariants({ elevation }), className), children: [
|
|
2925
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
2926
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: cn(
|
|
2820
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles33__default.default["value-container"], children: [
|
|
2821
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: cn(styles33__default.default.value), children: value }),
|
|
2927
2822
|
icon && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2928
2823
|
Icon,
|
|
2929
2824
|
{
|
|
@@ -2934,28 +2829,398 @@ var MetricCard = ({
|
|
|
2934
2829
|
}
|
|
2935
2830
|
)
|
|
2936
2831
|
] }),
|
|
2937
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className:
|
|
2832
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: styles33__default.default.label, children: label })
|
|
2938
2833
|
] });
|
|
2939
2834
|
};
|
|
2940
|
-
var
|
|
2941
|
-
var
|
|
2942
|
-
var
|
|
2943
|
-
|
|
2944
|
-
|
|
2945
|
-
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
|
|
2949
|
-
|
|
2950
|
-
|
|
2951
|
-
|
|
2952
|
-
|
|
2953
|
-
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
|
|
2835
|
+
var NavDrillContext = React15__namespace.createContext(null);
|
|
2836
|
+
var useIsomorphicLayoutEffect = typeof window === "undefined" ? React15.useEffect : React15.useLayoutEffect;
|
|
2837
|
+
var MOTION = {
|
|
2838
|
+
drill: {
|
|
2839
|
+
current: [
|
|
2840
|
+
{ transform: "translateX(12px)", opacity: 0 },
|
|
2841
|
+
{ transform: "translateX(0)", opacity: 1 }
|
|
2842
|
+
],
|
|
2843
|
+
previous: [
|
|
2844
|
+
{ transform: "translateX(0)", opacity: 1 },
|
|
2845
|
+
{ opacity: 0, offset: 0.35 },
|
|
2846
|
+
{ transform: "translateX(-12px)", opacity: 0 }
|
|
2847
|
+
]
|
|
2848
|
+
},
|
|
2849
|
+
back: {
|
|
2850
|
+
current: [
|
|
2851
|
+
{ transform: "translateX(-12px)", opacity: 0 },
|
|
2852
|
+
{ transform: "translateX(0)", opacity: 1 }
|
|
2853
|
+
],
|
|
2854
|
+
previous: [
|
|
2855
|
+
{ transform: "translateX(0)", opacity: 1 },
|
|
2856
|
+
{ opacity: 0, offset: 0.35 },
|
|
2857
|
+
{ transform: "translateX(12px)", opacity: 0 }
|
|
2858
|
+
]
|
|
2859
|
+
}
|
|
2958
2860
|
};
|
|
2861
|
+
var TIMING = { duration: 300, easing: "cubic-bezier(.2, .8, .2, 1)" };
|
|
2862
|
+
var LEVEL = '[data-slot="nav-drill-level"]';
|
|
2863
|
+
var NavDrillBackContext = React15__namespace.createContext(() => {
|
|
2864
|
+
});
|
|
2865
|
+
var LEAVING_DRILL_CONTEXT = { requestDrill: () => {
|
|
2866
|
+
}, leaving: true };
|
|
2867
|
+
var NO_BACK = () => {
|
|
2868
|
+
};
|
|
2869
|
+
var NavDrill = React15__namespace.forwardRef(
|
|
2870
|
+
({
|
|
2871
|
+
value: valueProp,
|
|
2872
|
+
defaultValue,
|
|
2873
|
+
onValueChange,
|
|
2874
|
+
animate = true,
|
|
2875
|
+
className,
|
|
2876
|
+
children,
|
|
2877
|
+
...props
|
|
2878
|
+
}, ref) => {
|
|
2879
|
+
const [ownView, setOwnView] = React15__namespace.useState(defaultValue);
|
|
2880
|
+
const view = valueProp ?? ownView;
|
|
2881
|
+
const [shownView, setShownView] = React15__namespace.useState(view);
|
|
2882
|
+
const [request, setRequest] = React15__namespace.useState(null);
|
|
2883
|
+
const [leaving, setLeaving] = React15__namespace.useState(null);
|
|
2884
|
+
const rootRef = React15__namespace.useRef(null);
|
|
2885
|
+
const ghostRef = React15__namespace.useRef(null);
|
|
2886
|
+
const running = React15__namespace.useRef([]);
|
|
2887
|
+
const focusRequest = React15__namespace.useRef(null);
|
|
2888
|
+
const observer = React15__namespace.useRef(null);
|
|
2889
|
+
const previousView = React15__namespace.useRef(view);
|
|
2890
|
+
const level = React15__namespace.Children.toArray(children).find(
|
|
2891
|
+
(child) => React15__namespace.isValidElement(child) && child.props.value === view
|
|
2892
|
+
) ?? null;
|
|
2893
|
+
if (view !== shownView) {
|
|
2894
|
+
setShownView(view);
|
|
2895
|
+
setRequest(null);
|
|
2896
|
+
setLeaving(
|
|
2897
|
+
request?.slide && request.view === view && request.element && level ? {
|
|
2898
|
+
element: request.element,
|
|
2899
|
+
direction: request.direction,
|
|
2900
|
+
top: request.top,
|
|
2901
|
+
id: (leaving?.id ?? 0) + 1
|
|
2902
|
+
} : null
|
|
2903
|
+
);
|
|
2904
|
+
}
|
|
2905
|
+
const liveLevel = () => rootRef.current?.querySelector(`:scope > ${LEVEL}`) ?? null;
|
|
2906
|
+
const tryFocus = () => {
|
|
2907
|
+
const pending = focusRequest.current;
|
|
2908
|
+
const root = rootRef.current;
|
|
2909
|
+
if (!pending?.landed || !root) return;
|
|
2910
|
+
const active = document.activeElement;
|
|
2911
|
+
if (active && active !== document.body && !root.contains(active)) {
|
|
2912
|
+
focusRequest.current = null;
|
|
2913
|
+
return;
|
|
2914
|
+
}
|
|
2915
|
+
const live = liveLevel();
|
|
2916
|
+
const target = pending.direction === "drill" ? live?.querySelector('[data-slot="nav-drill-back"]') ?? live?.querySelector('[data-slot="nav-list-item"]') : live?.querySelector(`[data-drill="${CSS.escape(pending.from ?? "")}"]`) ?? live?.querySelector('[aria-current="page"]');
|
|
2917
|
+
if (!target) return;
|
|
2918
|
+
focusRequest.current = null;
|
|
2919
|
+
observer.current?.disconnect();
|
|
2920
|
+
target.focus({ preventScroll: true });
|
|
2921
|
+
target.scrollIntoView({ block: "nearest" });
|
|
2922
|
+
};
|
|
2923
|
+
const makeRequest = (target, direction) => {
|
|
2924
|
+
const reduced = window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
2925
|
+
setRequest({
|
|
2926
|
+
view: target,
|
|
2927
|
+
direction,
|
|
2928
|
+
element: level,
|
|
2929
|
+
top: liveLevel()?.getBoundingClientRect().top ?? 0,
|
|
2930
|
+
slide: animate && !reduced
|
|
2931
|
+
});
|
|
2932
|
+
focusRequest.current = { direction, view: target, from: view, landed: false };
|
|
2933
|
+
observer.current?.disconnect();
|
|
2934
|
+
if (direction === "back" && rootRef.current) {
|
|
2935
|
+
observer.current ??= new MutationObserver(() => tryFocus());
|
|
2936
|
+
observer.current.observe(rootRef.current, { childList: true, subtree: true });
|
|
2937
|
+
}
|
|
2938
|
+
if (valueProp === void 0) setOwnView(target);
|
|
2939
|
+
onValueChange?.(target, direction);
|
|
2940
|
+
};
|
|
2941
|
+
const makeRequestRef = React15__namespace.useRef(makeRequest);
|
|
2942
|
+
useIsomorphicLayoutEffect(() => {
|
|
2943
|
+
makeRequestRef.current = makeRequest;
|
|
2944
|
+
});
|
|
2945
|
+
const drillContext = React15__namespace.useMemo(
|
|
2946
|
+
() => ({
|
|
2947
|
+
requestDrill: (target) => makeRequestRef.current(target, "drill"),
|
|
2948
|
+
leaving: false
|
|
2949
|
+
}),
|
|
2950
|
+
[]
|
|
2951
|
+
);
|
|
2952
|
+
const requestBack = React15__namespace.useCallback(
|
|
2953
|
+
(parent) => makeRequestRef.current(parent, "back"),
|
|
2954
|
+
[]
|
|
2955
|
+
);
|
|
2956
|
+
useIsomorphicLayoutEffect(() => {
|
|
2957
|
+
if (previousView.current === view) return;
|
|
2958
|
+
previousView.current = view;
|
|
2959
|
+
const pending = focusRequest.current;
|
|
2960
|
+
if (pending && !pending.landed && pending.view === view) pending.landed = true;
|
|
2961
|
+
else {
|
|
2962
|
+
focusRequest.current = null;
|
|
2963
|
+
observer.current?.disconnect();
|
|
2964
|
+
}
|
|
2965
|
+
const scroller = rootRef.current?.closest("[data-nav-scroller]");
|
|
2966
|
+
if (scroller) scroller.scrollTop = 0;
|
|
2967
|
+
}, [view]);
|
|
2968
|
+
useIsomorphicLayoutEffect(() => {
|
|
2969
|
+
running.current.forEach((animation) => animation.cancel());
|
|
2970
|
+
running.current = [];
|
|
2971
|
+
const live = liveLevel();
|
|
2972
|
+
const ghost = ghostRef.current;
|
|
2973
|
+
const ghostLevel = ghost?.querySelector(LEVEL);
|
|
2974
|
+
if (!leaving || !live || !ghost || !ghostLevel) return;
|
|
2975
|
+
ghostLevel.style.marginTop = `${leaving.top - live.getBoundingClientRect().top}px`;
|
|
2976
|
+
const animations = [
|
|
2977
|
+
live.animate(MOTION[leaving.direction].current, TIMING),
|
|
2978
|
+
ghost.animate(MOTION[leaving.direction].previous, TIMING)
|
|
2979
|
+
];
|
|
2980
|
+
running.current = animations;
|
|
2981
|
+
Promise.all(animations.map((animation) => animation.finished)).then(
|
|
2982
|
+
() => {
|
|
2983
|
+
ghost.style.visibility = "hidden";
|
|
2984
|
+
setLeaving((current) => current === leaving ? null : current);
|
|
2985
|
+
},
|
|
2986
|
+
// Cancelled by a later change, which owns the ghost now
|
|
2987
|
+
() => {
|
|
2988
|
+
}
|
|
2989
|
+
);
|
|
2990
|
+
}, [leaving]);
|
|
2991
|
+
React15__namespace.useEffect(() => {
|
|
2992
|
+
tryFocus();
|
|
2993
|
+
});
|
|
2994
|
+
React15__namespace.useEffect(() => {
|
|
2995
|
+
const dropOutside = (event) => {
|
|
2996
|
+
if (rootRef.current?.contains(event.target)) return;
|
|
2997
|
+
focusRequest.current = null;
|
|
2998
|
+
observer.current?.disconnect();
|
|
2999
|
+
setRequest((current) => current ? null : current);
|
|
3000
|
+
};
|
|
3001
|
+
const events = ["pointerdown", "keydown", "focusin"];
|
|
3002
|
+
events.forEach((type) => document.addEventListener(type, dropOutside, true));
|
|
3003
|
+
return () => {
|
|
3004
|
+
events.forEach((type) => document.removeEventListener(type, dropOutside, true));
|
|
3005
|
+
running.current.forEach((animation) => animation.cancel());
|
|
3006
|
+
observer.current?.disconnect();
|
|
3007
|
+
};
|
|
3008
|
+
}, []);
|
|
3009
|
+
const setRootRef = React15__namespace.useCallback(
|
|
3010
|
+
(node) => {
|
|
3011
|
+
rootRef.current = node;
|
|
3012
|
+
if (typeof ref === "function") ref(node);
|
|
3013
|
+
else if (ref) ref.current = node;
|
|
3014
|
+
},
|
|
3015
|
+
[ref]
|
|
3016
|
+
);
|
|
3017
|
+
const setGhostRef = React15__namespace.useCallback((node) => {
|
|
3018
|
+
ghostRef.current = node;
|
|
3019
|
+
if (node) node.inert = true;
|
|
3020
|
+
}, []);
|
|
3021
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3022
|
+
"div",
|
|
3023
|
+
{
|
|
3024
|
+
ref: setRootRef,
|
|
3025
|
+
"data-slot": "nav-drill",
|
|
3026
|
+
"data-motion": leaving?.direction,
|
|
3027
|
+
className: cn(styles35__default.default["nav-drill"], className),
|
|
3028
|
+
...props,
|
|
3029
|
+
children: [
|
|
3030
|
+
/* @__PURE__ */ jsxRuntime.jsx(NavDrillContext.Provider, { value: drillContext, children: /* @__PURE__ */ jsxRuntime.jsx(NavDrillBackContext.Provider, { value: requestBack, children: level && /* @__PURE__ */ jsxRuntime.jsx(React15__namespace.Fragment, { children: level }, view) }) }),
|
|
3031
|
+
leaving && /* @__PURE__ */ jsxRuntime.jsx(
|
|
3032
|
+
"div",
|
|
3033
|
+
{
|
|
3034
|
+
ref: setGhostRef,
|
|
3035
|
+
"data-slot": "nav-drill-ghost",
|
|
3036
|
+
"data-motion": leaving.direction,
|
|
3037
|
+
"aria-hidden": "true",
|
|
3038
|
+
className: styles35__default.default["nav-drill-ghost"],
|
|
3039
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(NavDrillContext.Provider, { value: LEAVING_DRILL_CONTEXT, children: /* @__PURE__ */ jsxRuntime.jsx(NavDrillBackContext.Provider, { value: NO_BACK, children: leaving.element }) })
|
|
3040
|
+
},
|
|
3041
|
+
leaving.id
|
|
3042
|
+
)
|
|
3043
|
+
]
|
|
3044
|
+
}
|
|
3045
|
+
);
|
|
3046
|
+
}
|
|
3047
|
+
);
|
|
3048
|
+
NavDrill.displayName = "NavDrill";
|
|
3049
|
+
var NavDrillLevel = React15__namespace.forwardRef(
|
|
3050
|
+
({ value, parent, label, backLabel, className, children, ...props }, ref) => {
|
|
3051
|
+
const requestBack = React15__namespace.useContext(NavDrillBackContext);
|
|
3052
|
+
React15__namespace.useEffect(() => {
|
|
3053
|
+
if (typeof process !== "undefined" && process.env.NODE_ENV !== "production" && parent !== void 0 && backLabel && label && !backLabel.startsWith(label)) {
|
|
3054
|
+
console.warn(
|
|
3055
|
+
`NavDrillLevel: backLabel "${backLabel}" must start with label "${label}", so voice users can say what they see (WCAG 2.5.3)`
|
|
3056
|
+
);
|
|
3057
|
+
}
|
|
3058
|
+
}, [parent, label, backLabel]);
|
|
3059
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3060
|
+
"div",
|
|
3061
|
+
{
|
|
3062
|
+
ref,
|
|
3063
|
+
"data-slot": "nav-drill-level",
|
|
3064
|
+
"data-value": value,
|
|
3065
|
+
className: cn(styles35__default.default["nav-drill-level"], className),
|
|
3066
|
+
...props,
|
|
3067
|
+
children: [
|
|
3068
|
+
parent !== void 0 && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
3069
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
3070
|
+
"button",
|
|
3071
|
+
{
|
|
3072
|
+
type: "button",
|
|
3073
|
+
"data-slot": "nav-drill-back",
|
|
3074
|
+
"aria-label": backLabel ?? `${label}, back`,
|
|
3075
|
+
className: cn(styles35__default.default["nav-list-item"], styles35__default.default["nav-list-item--back"]),
|
|
3076
|
+
onClick: () => requestBack(parent),
|
|
3077
|
+
children: [
|
|
3078
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: styles35__default.default["nav-list-item-prefix"], "aria-hidden": "true", children: /* @__PURE__ */ jsxRuntime.jsx(LucideIcons.ChevronLeft, {}) }),
|
|
3079
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: styles35__default.default["nav-list-item-label"], title: label, children: label })
|
|
3080
|
+
]
|
|
3081
|
+
}
|
|
3082
|
+
),
|
|
3083
|
+
/* @__PURE__ */ jsxRuntime.jsx("hr", { className: styles35__default.default["nav-drill-rule"] })
|
|
3084
|
+
] }),
|
|
3085
|
+
children
|
|
3086
|
+
]
|
|
3087
|
+
}
|
|
3088
|
+
);
|
|
3089
|
+
}
|
|
3090
|
+
);
|
|
3091
|
+
NavDrillLevel.displayName = "NavDrillLevel";
|
|
3092
|
+
var ListDepthContext = React15__namespace.createContext(0);
|
|
3093
|
+
var NavList = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { ref, className: cn(styles35__default.default["nav-list"], className), ...props }));
|
|
3094
|
+
NavList.displayName = "NavList";
|
|
3095
|
+
var NavListGroup = React15__namespace.forwardRef(
|
|
3096
|
+
({ label, className, children, ...props }, ref) => {
|
|
3097
|
+
const labelId = React15__namespace.useId();
|
|
3098
|
+
const depth = React15__namespace.useContext(ListDepthContext);
|
|
3099
|
+
const group = /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3100
|
+
"div",
|
|
3101
|
+
{
|
|
3102
|
+
ref,
|
|
3103
|
+
className: cn(
|
|
3104
|
+
styles35__default.default["nav-list-group"],
|
|
3105
|
+
!label && styles35__default.default["nav-list-group--unlabelled"],
|
|
3106
|
+
className
|
|
3107
|
+
),
|
|
3108
|
+
...props,
|
|
3109
|
+
children: [
|
|
3110
|
+
label && /* @__PURE__ */ jsxRuntime.jsx("div", { id: labelId, className: styles35__default.default["nav-list-group-label"], children: label }),
|
|
3111
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3112
|
+
"ul",
|
|
3113
|
+
{
|
|
3114
|
+
"data-depth": depth,
|
|
3115
|
+
"aria-labelledby": label ? labelId : void 0,
|
|
3116
|
+
className: styles35__default.default["nav-list-items"],
|
|
3117
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(ListDepthContext.Provider, { value: depth + 1, children })
|
|
3118
|
+
}
|
|
3119
|
+
)
|
|
3120
|
+
]
|
|
3121
|
+
}
|
|
3122
|
+
);
|
|
3123
|
+
return depth > 0 ? /* @__PURE__ */ jsxRuntime.jsx("li", { children: group }) : group;
|
|
3124
|
+
}
|
|
3125
|
+
);
|
|
3126
|
+
NavListGroup.displayName = "NavListGroup";
|
|
3127
|
+
var NavListItem = React15__namespace.forwardRef(
|
|
3128
|
+
({
|
|
3129
|
+
label,
|
|
3130
|
+
prefix,
|
|
3131
|
+
suffix,
|
|
3132
|
+
current = false,
|
|
3133
|
+
drill,
|
|
3134
|
+
asChild = false,
|
|
3135
|
+
className,
|
|
3136
|
+
children,
|
|
3137
|
+
onClick,
|
|
3138
|
+
...props
|
|
3139
|
+
}, ref) => {
|
|
3140
|
+
const drillContext = React15__namespace.useContext(NavDrillContext);
|
|
3141
|
+
const Comp = asChild ? reactSlot.Slot : props.href ? "a" : "button";
|
|
3142
|
+
const leaving = drillContext?.leaving ?? false;
|
|
3143
|
+
const handleClick = (event) => {
|
|
3144
|
+
onClick?.(event);
|
|
3145
|
+
if (!drill || !drillContext) return;
|
|
3146
|
+
if (event.button !== 0 || event.metaKey || event.ctrlKey || event.shiftKey || event.altKey)
|
|
3147
|
+
return;
|
|
3148
|
+
drillContext.requestDrill(drill);
|
|
3149
|
+
};
|
|
3150
|
+
return /* @__PURE__ */ jsxRuntime.jsx("li", { children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3151
|
+
Comp,
|
|
3152
|
+
{
|
|
3153
|
+
ref,
|
|
3154
|
+
type: Comp === "button" ? "button" : void 0,
|
|
3155
|
+
"data-slot": "nav-list-item",
|
|
3156
|
+
"data-drill": drill,
|
|
3157
|
+
"aria-current": current && !leaving ? "page" : void 0,
|
|
3158
|
+
"data-current": current && leaving ? "page" : void 0,
|
|
3159
|
+
className: cn(styles35__default.default["nav-list-item"], className),
|
|
3160
|
+
onClick: handleClick,
|
|
3161
|
+
...props,
|
|
3162
|
+
children: [
|
|
3163
|
+
prefix && /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles35__default.default["nav-list-item-prefix"], "aria-hidden": "true", children: prefix }),
|
|
3164
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: styles35__default.default["nav-list-item-label"], title: label, children: label }),
|
|
3165
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactSlot.Slottable, { children }),
|
|
3166
|
+
suffix && /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles35__default.default["nav-list-item-suffix"], children: suffix }),
|
|
3167
|
+
drill && /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles35__default.default["nav-list-item-caret"], "aria-hidden": "true", children: /* @__PURE__ */ jsxRuntime.jsx(LucideIcons.ChevronRight, {}) })
|
|
3168
|
+
]
|
|
3169
|
+
}
|
|
3170
|
+
) });
|
|
3171
|
+
}
|
|
3172
|
+
);
|
|
3173
|
+
NavListItem.displayName = "NavListItem";
|
|
3174
|
+
var NavListSeparator = React15__namespace.forwardRef(
|
|
3175
|
+
({ className, ...props }, ref) => {
|
|
3176
|
+
const nested = React15__namespace.useContext(ListDepthContext) > 0;
|
|
3177
|
+
const Comp = nested ? "li" : "hr";
|
|
3178
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3179
|
+
Comp,
|
|
3180
|
+
{
|
|
3181
|
+
ref,
|
|
3182
|
+
role: nested ? "separator" : void 0,
|
|
3183
|
+
className: cn(styles35__default.default["nav-list-separator"], className),
|
|
3184
|
+
...props
|
|
3185
|
+
}
|
|
3186
|
+
);
|
|
3187
|
+
}
|
|
3188
|
+
);
|
|
3189
|
+
NavListSeparator.displayName = "NavListSeparator";
|
|
3190
|
+
var NavPanel = React15__namespace.forwardRef(
|
|
3191
|
+
({ header, className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("nav", { ref, className: cn(styles40__default.default["nav-panel"], className), ...props, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles40__default.default["nav-scroller"], "data-nav-scroller": "", children: [
|
|
3192
|
+
header && /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles40__default.default["nav-panel-header"], children: header }),
|
|
3193
|
+
children
|
|
3194
|
+
] }) })
|
|
3195
|
+
);
|
|
3196
|
+
NavPanel.displayName = "NavPanel";
|
|
3197
|
+
var NavRail = React15__namespace.forwardRef(
|
|
3198
|
+
({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("nav", { ref, className: cn(styles40__default.default["nav-rail"], className), ...props, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles40__default.default["nav-scroller"], children: /* @__PURE__ */ jsxRuntime.jsx(TooltipProvider, { delayDuration: 300, children: /* @__PURE__ */ jsxRuntime.jsx("ul", { className: styles40__default.default["nav-rail-list"], children }) }) }) })
|
|
3199
|
+
);
|
|
3200
|
+
NavRail.displayName = "NavRail";
|
|
3201
|
+
var NavRailItem = React15__namespace.forwardRef(
|
|
3202
|
+
({ icon, label, current = false, asChild = false, className, children, ...props }, ref) => {
|
|
3203
|
+
const Comp = asChild ? reactSlot.Slot : "a";
|
|
3204
|
+
return /* @__PURE__ */ jsxRuntime.jsx("li", { children: /* @__PURE__ */ jsxRuntime.jsxs(Tooltip, { children: [
|
|
3205
|
+
/* @__PURE__ */ jsxRuntime.jsx(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3206
|
+
Comp,
|
|
3207
|
+
{
|
|
3208
|
+
ref,
|
|
3209
|
+
"aria-label": label,
|
|
3210
|
+
"aria-current": current ? "page" : void 0,
|
|
3211
|
+
className: cn(styles40__default.default["nav-rail-item"], className),
|
|
3212
|
+
...props,
|
|
3213
|
+
children: [
|
|
3214
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { "aria-hidden": "true", children: icon }),
|
|
3215
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactSlot.Slottable, { children })
|
|
3216
|
+
]
|
|
3217
|
+
}
|
|
3218
|
+
) }),
|
|
3219
|
+
/* @__PURE__ */ jsxRuntime.jsx(TooltipContent, { side: "right", children: label })
|
|
3220
|
+
] }) });
|
|
3221
|
+
}
|
|
3222
|
+
);
|
|
3223
|
+
NavRailItem.displayName = "NavRailItem";
|
|
2959
3224
|
var CheckIcon3 = LucideIcons.Check;
|
|
2960
3225
|
var ChevronDownIcon2 = LucideIcons.ChevronDown;
|
|
2961
3226
|
var SearchIcon3 = LucideIcons.Search;
|
|
@@ -3005,14 +3270,14 @@ var SelectGroup = React15__namespace.forwardRef(({ hidden, ...props }, ref) => {
|
|
|
3005
3270
|
});
|
|
3006
3271
|
SelectGroup.displayName = SelectPrimitive__namespace.Group.displayName;
|
|
3007
3272
|
var SelectValue = SelectPrimitive__namespace.Value;
|
|
3008
|
-
var SelectTrigger = React15__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(SelectPrimitive__namespace.Trigger, { ref, className: cn(
|
|
3273
|
+
var SelectTrigger = React15__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(SelectPrimitive__namespace.Trigger, { ref, className: cn(styles38__default.default["select-trigger"], className), ...props, children: [
|
|
3009
3274
|
children,
|
|
3010
|
-
/* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.Icon, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(ChevronDownIcon2, { className: cn(
|
|
3275
|
+
/* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.Icon, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(ChevronDownIcon2, { className: cn(styles38__default.default["select-icon"], styles38__default.default["select-icon--low-opacity"]) }) })
|
|
3011
3276
|
] }));
|
|
3012
3277
|
SelectTrigger.displayName = SelectPrimitive__namespace.Trigger.displayName;
|
|
3013
3278
|
var SelectPortal = ({ children }) => /* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.Portal, { container: usePortalContainer(), children });
|
|
3014
3279
|
var selectContentElevationVariants = generateElevationVariants(
|
|
3015
|
-
|
|
3280
|
+
styles38__default.default,
|
|
3016
3281
|
"select-content",
|
|
3017
3282
|
ELEVATION.OVERLAY
|
|
3018
3283
|
);
|
|
@@ -3065,8 +3330,8 @@ var SelectContent = React15__namespace.forwardRef(
|
|
|
3065
3330
|
{
|
|
3066
3331
|
ref: composedContentRef,
|
|
3067
3332
|
className: cn(
|
|
3068
|
-
|
|
3069
|
-
position === "popper" &&
|
|
3333
|
+
styles38__default.default["select-content"],
|
|
3334
|
+
position === "popper" && styles38__default.default["select-content--popper"],
|
|
3070
3335
|
selectContentElevationVariants({ elevation }),
|
|
3071
3336
|
className
|
|
3072
3337
|
),
|
|
@@ -3084,13 +3349,13 @@ var SelectContent = React15__namespace.forwardRef(
|
|
|
3084
3349
|
},
|
|
3085
3350
|
...props,
|
|
3086
3351
|
children: [
|
|
3087
|
-
ctx?.enabled ? /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
3352
|
+
ctx?.enabled ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles38__default.default["select-sr-status"], role: "status", "aria-live": "polite", children: searching && resultCount > 0 ? formatResultCount(resultCount) : null }) : null,
|
|
3088
3353
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3089
3354
|
SelectPrimitive__namespace.Viewport,
|
|
3090
3355
|
{
|
|
3091
3356
|
className: cn(
|
|
3092
|
-
|
|
3093
|
-
position === "popper" &&
|
|
3357
|
+
styles38__default.default["select-viewport"],
|
|
3358
|
+
position === "popper" && styles38__default.default["select-viewport--popper"]
|
|
3094
3359
|
),
|
|
3095
3360
|
children
|
|
3096
3361
|
}
|
|
@@ -3117,15 +3382,15 @@ var SelectSearch = React15__namespace.forwardRef(
|
|
|
3117
3382
|
}
|
|
3118
3383
|
const { ref, isRendered } = useSearchInput(ctx, alwaysVisible, forwardedRef);
|
|
3119
3384
|
if (!isRendered) return null;
|
|
3120
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
3121
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { "aria-hidden": "true", className:
|
|
3385
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles38__default.default["select-search"], children: [
|
|
3386
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { "aria-hidden": "true", className: styles38__default.default["select-search-icon"], children: icon ?? /* @__PURE__ */ jsxRuntime.jsx(SearchIcon3, { className: cn(styles38__default.default["select-icon"], styles38__default.default["select-icon--sm"]) }) }),
|
|
3122
3387
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3123
3388
|
"input",
|
|
3124
3389
|
{
|
|
3125
3390
|
...props,
|
|
3126
3391
|
ref,
|
|
3127
3392
|
"data-select-search": "",
|
|
3128
|
-
className: cn(
|
|
3393
|
+
className: cn(styles38__default.default["select-search-input"], className),
|
|
3129
3394
|
value: ctx.query,
|
|
3130
3395
|
placeholder,
|
|
3131
3396
|
"aria-label": ariaLabel ?? placeholder,
|
|
@@ -3162,7 +3427,7 @@ var SelectEmpty = ({ className, children, ...props }) => {
|
|
|
3162
3427
|
...props,
|
|
3163
3428
|
role: "status",
|
|
3164
3429
|
"aria-live": "polite",
|
|
3165
|
-
className: isEmpty ? cn(
|
|
3430
|
+
className: isEmpty ? cn(styles38__default.default["select-empty"], className) : void 0,
|
|
3166
3431
|
children: isEmpty ? children : null
|
|
3167
3432
|
}
|
|
3168
3433
|
);
|
|
@@ -3174,7 +3439,7 @@ var SelectLabel = React15__namespace.forwardRef(({ className, hidden, ...props }
|
|
|
3174
3439
|
SelectPrimitive__namespace.Label,
|
|
3175
3440
|
{
|
|
3176
3441
|
ref,
|
|
3177
|
-
className: cn(
|
|
3442
|
+
className: cn(styles38__default.default["select-label"], className),
|
|
3178
3443
|
...props,
|
|
3179
3444
|
hidden: hidden || searching || void 0
|
|
3180
3445
|
}
|
|
@@ -3189,14 +3454,14 @@ var SelectItem = React15__namespace.forwardRef(({ className, children, textValue
|
|
|
3189
3454
|
SelectPrimitive__namespace.Item,
|
|
3190
3455
|
{
|
|
3191
3456
|
ref,
|
|
3192
|
-
className: cn(
|
|
3457
|
+
className: cn(styles38__default.default["select-item"], className),
|
|
3193
3458
|
...props,
|
|
3194
3459
|
"data-persistent": persistent ? "" : void 0,
|
|
3195
3460
|
textValue,
|
|
3196
3461
|
hidden: hidden || !matches || void 0,
|
|
3197
3462
|
children: [
|
|
3198
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
3199
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
3463
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: styles38__default.default["select-item-indicator"], children: /* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.ItemIndicator, { children: /* @__PURE__ */ jsxRuntime.jsx(CheckIcon3, { className: styles38__default.default["select-icon"] }) }) }),
|
|
3464
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: styles38__default.default["select-item-text"], children: /* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.ItemText, { children }) })
|
|
3200
3465
|
]
|
|
3201
3466
|
}
|
|
3202
3467
|
);
|
|
@@ -3209,12 +3474,156 @@ var SelectSeparator = React15__namespace.forwardRef(({ className, persistent, ..
|
|
|
3209
3474
|
SelectPrimitive__namespace.Separator,
|
|
3210
3475
|
{
|
|
3211
3476
|
ref,
|
|
3212
|
-
className: cn(
|
|
3477
|
+
className: cn(styles38__default.default["select-separator"], className),
|
|
3213
3478
|
...props
|
|
3214
3479
|
}
|
|
3215
3480
|
);
|
|
3216
3481
|
});
|
|
3217
3482
|
SelectSeparator.displayName = SelectPrimitive__namespace.Separator.displayName;
|
|
3483
|
+
|
|
3484
|
+
// src/components/select/select-typeahead.ts
|
|
3485
|
+
var blockClosedTypeahead = (event) => {
|
|
3486
|
+
const typed = event.key.length === 1 && event.key !== " ";
|
|
3487
|
+
if (typed && !event.ctrlKey && !event.metaKey && !event.altKey) event.preventDefault();
|
|
3488
|
+
};
|
|
3489
|
+
function Skeleton({ className, ...props }) {
|
|
3490
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(styles39__default.default["skeleton"], className), ...props });
|
|
3491
|
+
}
|
|
3492
|
+
var NavSwitcherSelect = React15__namespace.forwardRef(
|
|
3493
|
+
({ label, noun, collection, options, value, onValueChange, onHighlight, onHighlightEnd, action }, ref) => {
|
|
3494
|
+
const labelId = React15__namespace.useId();
|
|
3495
|
+
const actionValue = React15__namespace.useId();
|
|
3496
|
+
const actionPending = React15__namespace.useRef(false);
|
|
3497
|
+
if (options.length <= 1 && !action) {
|
|
3498
|
+
return /* @__PURE__ */ jsxRuntime.jsx("h2", { className: styles40__default.default["nav-switcher-heading"], children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3499
|
+
"span",
|
|
3500
|
+
{
|
|
3501
|
+
className: cn(styles40__default.default["nav-switcher-plain"], styles40__default.default["nav-switcher-name"]),
|
|
3502
|
+
title: label,
|
|
3503
|
+
children: label
|
|
3504
|
+
}
|
|
3505
|
+
) });
|
|
3506
|
+
}
|
|
3507
|
+
return /* @__PURE__ */ jsxRuntime.jsx("h2", { "aria-labelledby": labelId, className: styles40__default.default["nav-switcher-heading"], children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3508
|
+
Select,
|
|
3509
|
+
{
|
|
3510
|
+
value,
|
|
3511
|
+
onValueChange: (next) => {
|
|
3512
|
+
if (next === actionValue) actionPending.current = true;
|
|
3513
|
+
else onValueChange(next);
|
|
3514
|
+
},
|
|
3515
|
+
children: [
|
|
3516
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
3517
|
+
SelectTrigger,
|
|
3518
|
+
{
|
|
3519
|
+
ref,
|
|
3520
|
+
"aria-label": `${label}, switch ${noun}`,
|
|
3521
|
+
className: styles40__default.default["nav-switcher"],
|
|
3522
|
+
onKeyDown: blockClosedTypeahead,
|
|
3523
|
+
children: [
|
|
3524
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3525
|
+
"span",
|
|
3526
|
+
{
|
|
3527
|
+
id: labelId,
|
|
3528
|
+
className: cn(styles40__default.default["nav-switcher-label"], styles40__default.default["nav-switcher-name"]),
|
|
3529
|
+
title: label,
|
|
3530
|
+
children: label
|
|
3531
|
+
}
|
|
3532
|
+
),
|
|
3533
|
+
/* @__PURE__ */ jsxRuntime.jsx(LucideIcons.ChevronsUpDown, { className: styles40__default.default["nav-switcher-icon"], "aria-hidden": "true" })
|
|
3534
|
+
]
|
|
3535
|
+
}
|
|
3536
|
+
),
|
|
3537
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
3538
|
+
SelectContent,
|
|
3539
|
+
{
|
|
3540
|
+
className: styles40__default.default["nav-switcher-list"],
|
|
3541
|
+
onCloseAutoFocus: () => {
|
|
3542
|
+
if (!actionPending.current) return;
|
|
3543
|
+
actionPending.current = false;
|
|
3544
|
+
action?.onSelect();
|
|
3545
|
+
},
|
|
3546
|
+
children: [
|
|
3547
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3548
|
+
SelectSearch,
|
|
3549
|
+
{
|
|
3550
|
+
placeholder: `Search ${collection}...`,
|
|
3551
|
+
"aria-label": `Search ${collection}`
|
|
3552
|
+
}
|
|
3553
|
+
),
|
|
3554
|
+
/* @__PURE__ */ jsxRuntime.jsxs(SelectEmpty, { children: [
|
|
3555
|
+
"No ",
|
|
3556
|
+
collection,
|
|
3557
|
+
" found"
|
|
3558
|
+
] }),
|
|
3559
|
+
options.map((option) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3560
|
+
SelectItem,
|
|
3561
|
+
{
|
|
3562
|
+
value: option.value,
|
|
3563
|
+
textValue: [option.label, ...option.keywords ?? []].join(" "),
|
|
3564
|
+
onPointerEnter: () => onHighlight?.(option.value),
|
|
3565
|
+
onPointerLeave: onHighlightEnd,
|
|
3566
|
+
onFocus: () => onHighlight?.(option.value),
|
|
3567
|
+
onBlur: onHighlightEnd,
|
|
3568
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles40__default.default["nav-switcher-option"], title: option.label, children: option.label })
|
|
3569
|
+
},
|
|
3570
|
+
option.value
|
|
3571
|
+
)),
|
|
3572
|
+
action && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles40__default.default["nav-switcher-footer"], children: [
|
|
3573
|
+
/* @__PURE__ */ jsxRuntime.jsx(SelectSeparator, { persistent: true }),
|
|
3574
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3575
|
+
SelectItem,
|
|
3576
|
+
{
|
|
3577
|
+
value: actionValue,
|
|
3578
|
+
textValue: action.label,
|
|
3579
|
+
persistent: true,
|
|
3580
|
+
className: styles40__default.default["nav-switcher-action"],
|
|
3581
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: buttonVariants({ variant: "link", size: "sm" }), children: action.label })
|
|
3582
|
+
}
|
|
3583
|
+
)
|
|
3584
|
+
] })
|
|
3585
|
+
]
|
|
3586
|
+
}
|
|
3587
|
+
)
|
|
3588
|
+
]
|
|
3589
|
+
}
|
|
3590
|
+
) });
|
|
3591
|
+
}
|
|
3592
|
+
);
|
|
3593
|
+
NavSwitcherSelect.displayName = "NavSwitcherSelect";
|
|
3594
|
+
var NavSwitcher = React15__namespace.forwardRef(
|
|
3595
|
+
(props, ref) => props.loading ? /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3596
|
+
"div",
|
|
3597
|
+
{
|
|
3598
|
+
className: cn(styles40__default.default["nav-switcher-heading"], styles40__default.default["nav-switcher-placeholder"]),
|
|
3599
|
+
"aria-busy": "true",
|
|
3600
|
+
children: [
|
|
3601
|
+
/* @__PURE__ */ jsxRuntime.jsx(Skeleton, { className: styles40__default.default["nav-switcher-skeleton"] }),
|
|
3602
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: styles40__default.default["nav-switcher-loading-label"], children: "Loading" })
|
|
3603
|
+
]
|
|
3604
|
+
}
|
|
3605
|
+
) : /* @__PURE__ */ jsxRuntime.jsx(NavSwitcherSelect, { ref, ...props })
|
|
3606
|
+
);
|
|
3607
|
+
NavSwitcher.displayName = "NavSwitcher";
|
|
3608
|
+
var OctagonAlert = LucideIcons.AlertOctagon;
|
|
3609
|
+
var HomeIcon = LucideIcons.Home;
|
|
3610
|
+
var NotFound = ({
|
|
3611
|
+
className,
|
|
3612
|
+
title = "Oops! Page Not Found",
|
|
3613
|
+
description = "The page or resource you're looking for doesn't exist or has been moved.",
|
|
3614
|
+
showHomeButton = true,
|
|
3615
|
+
onHomeClick = () => window.location.href = "/"
|
|
3616
|
+
}) => {
|
|
3617
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(styles41__default.default["page-not-found"], className), children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles41__default.default["page-not-found-inner"], children: [
|
|
3618
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: styles41__default.default["icon-container"], children: /* @__PURE__ */ jsxRuntime.jsx(OctagonAlert, { className: styles41__default.default["alert-icon"] }) }),
|
|
3619
|
+
/* @__PURE__ */ jsxRuntime.jsx("h1", { className: styles41__default.default["title"], children: title }),
|
|
3620
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: styles41__default.default["description"], children: description }),
|
|
3621
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: styles41__default.default["actions"], children: showHomeButton && /* @__PURE__ */ jsxRuntime.jsxs(Button, { onClick: onHomeClick, variant: "secondary", children: [
|
|
3622
|
+
/* @__PURE__ */ jsxRuntime.jsx(HomeIcon, { className: styles41__default.default["home-icon"] }),
|
|
3623
|
+
"Return Home"
|
|
3624
|
+
] }) })
|
|
3625
|
+
] }) });
|
|
3626
|
+
};
|
|
3218
3627
|
var ChevronLeftIcon2 = LucideIcons.ChevronLeft;
|
|
3219
3628
|
var ChevronRightIcon3 = LucideIcons.ChevronRight;
|
|
3220
3629
|
var ChevronsLeftIcon = LucideIcons.ChevronsLeft;
|
|
@@ -3257,10 +3666,6 @@ var Pagination = ({
|
|
|
3257
3666
|
scrollTargetRef.current.scrollIntoView({ behavior: "smooth" });
|
|
3258
3667
|
}
|
|
3259
3668
|
}
|
|
3260
|
-
const viewport = document.querySelector("[data-radix-scroll-area-viewport]");
|
|
3261
|
-
if (viewport) {
|
|
3262
|
-
viewport.scrollTop = 0;
|
|
3263
|
-
}
|
|
3264
3669
|
}
|
|
3265
3670
|
};
|
|
3266
3671
|
const handleItemsPerPageChange = (value) => {
|
|
@@ -3313,8 +3718,8 @@ var Pagination = ({
|
|
|
3313
3718
|
}
|
|
3314
3719
|
return pageButtons;
|
|
3315
3720
|
};
|
|
3316
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn(
|
|
3317
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
3721
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn(styles42__default.default["pagination"], className), children: [
|
|
3722
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: styles42__default.default["info-container"], children: showInfo && hasFilteredItems && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
3318
3723
|
/* @__PURE__ */ jsxRuntime.jsxs("span", { children: [
|
|
3319
3724
|
"Showing ",
|
|
3320
3725
|
startItem,
|
|
@@ -3324,7 +3729,7 @@ var Pagination = ({
|
|
|
3324
3729
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3325
3730
|
SelectTrigger,
|
|
3326
3731
|
{
|
|
3327
|
-
className:
|
|
3732
|
+
className: styles42__default.default["items-per-page-trigger"],
|
|
3328
3733
|
"aria-label": "Items per page",
|
|
3329
3734
|
children: /* @__PURE__ */ jsxRuntime.jsx(SelectValue, {})
|
|
3330
3735
|
}
|
|
@@ -3338,7 +3743,7 @@ var Pagination = ({
|
|
|
3338
3743
|
type
|
|
3339
3744
|
] })
|
|
3340
3745
|
] }) }),
|
|
3341
|
-
/* @__PURE__ */ jsxRuntime.jsxs("nav", { className:
|
|
3746
|
+
/* @__PURE__ */ jsxRuntime.jsxs("nav", { className: styles42__default.default["page-navigation-container"], "aria-label": "Pagination", children: [
|
|
3342
3747
|
showFirstLastButtons && /* @__PURE__ */ jsxRuntime.jsx(
|
|
3343
3748
|
Button,
|
|
3344
3749
|
{
|
|
@@ -3388,13 +3793,13 @@ var Pagination = ({
|
|
|
3388
3793
|
] });
|
|
3389
3794
|
};
|
|
3390
3795
|
var PanelLabel = ({ className, label }) => {
|
|
3391
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(
|
|
3796
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(styles43__default.default["panel-label"], className), children: label });
|
|
3392
3797
|
};
|
|
3393
3798
|
var Progress = React15__namespace.forwardRef(
|
|
3394
|
-
({ className, value, color = "primary", ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(ProgressPrimitive__namespace.Root, { ref, className: cn(
|
|
3799
|
+
({ className, value, color = "primary", ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(ProgressPrimitive__namespace.Root, { ref, className: cn(styles44__default.default["progress"], className), ...props, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3395
3800
|
ProgressPrimitive__namespace.Indicator,
|
|
3396
3801
|
{
|
|
3397
|
-
className: cn(
|
|
3802
|
+
className: cn(styles44__default.default["progress-indicator"], styles44__default.default[color]),
|
|
3398
3803
|
style: { transform: `translateX(-${100 - (value || 0)}%)` }
|
|
3399
3804
|
}
|
|
3400
3805
|
) })
|
|
@@ -3416,29 +3821,29 @@ var STATUS_LABELS = {
|
|
|
3416
3821
|
info: "Information",
|
|
3417
3822
|
danger: "Error"
|
|
3418
3823
|
};
|
|
3419
|
-
var layoutVariants = classVarianceAuthority.cva(
|
|
3824
|
+
var layoutVariants = classVarianceAuthority.cva(styles45__default.default["progress-indicator"], {
|
|
3420
3825
|
variants: {
|
|
3421
3826
|
layout: {
|
|
3422
|
-
horizontal:
|
|
3423
|
-
vertical:
|
|
3827
|
+
horizontal: styles45__default.default["progress-indicator--horizontal"],
|
|
3828
|
+
vertical: styles45__default.default["progress-indicator--vertical"]
|
|
3424
3829
|
}
|
|
3425
3830
|
},
|
|
3426
3831
|
defaultVariants: {
|
|
3427
3832
|
layout: "horizontal"
|
|
3428
3833
|
}
|
|
3429
3834
|
});
|
|
3430
|
-
var markerVariants = classVarianceAuthority.cva(
|
|
3835
|
+
var markerVariants = classVarianceAuthority.cva(styles45__default.default["progress-indicator-step-marker"], {
|
|
3431
3836
|
variants: {
|
|
3432
3837
|
status: {
|
|
3433
3838
|
editing: "",
|
|
3434
3839
|
empty: "",
|
|
3435
3840
|
neutral: "",
|
|
3436
3841
|
info: "",
|
|
3437
|
-
success:
|
|
3438
|
-
danger:
|
|
3842
|
+
success: styles45__default.default["progress-indicator-step-marker--success"],
|
|
3843
|
+
danger: styles45__default.default["progress-indicator-step-marker--danger"]
|
|
3439
3844
|
},
|
|
3440
3845
|
active: {
|
|
3441
|
-
true:
|
|
3846
|
+
true: styles45__default.default["progress-indicator-step-marker--active"],
|
|
3442
3847
|
false: ""
|
|
3443
3848
|
}
|
|
3444
3849
|
},
|
|
@@ -3479,18 +3884,18 @@ function ProgressIndicator({
|
|
|
3479
3884
|
});
|
|
3480
3885
|
const Container = interactive ? "nav" : "div";
|
|
3481
3886
|
return /* @__PURE__ */ jsxRuntime.jsxs(Container, { className: cn(layoutVariants({ layout }), className), ...props, children: [
|
|
3482
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
3887
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: styles45__default.default["progress-indicator-track"], "aria-hidden": "true", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3483
3888
|
Progress,
|
|
3484
3889
|
{
|
|
3485
3890
|
value: 100,
|
|
3486
3891
|
color: "primary",
|
|
3487
|
-
className:
|
|
3892
|
+
className: styles45__default.default["progress-indicator-rail"],
|
|
3488
3893
|
style: {
|
|
3489
3894
|
"--pi-fill-size": `${fillSize}%`
|
|
3490
3895
|
}
|
|
3491
3896
|
}
|
|
3492
3897
|
) }),
|
|
3493
|
-
/* @__PURE__ */ jsxRuntime.jsx("ul", { className:
|
|
3898
|
+
/* @__PURE__ */ jsxRuntime.jsx("ul", { className: styles45__default.default["progress-indicator-steps"], "aria-label": ariaLabel, children: steps })
|
|
3494
3899
|
] });
|
|
3495
3900
|
}
|
|
3496
3901
|
function ProgressIndicatorStep({
|
|
@@ -3522,15 +3927,15 @@ function ProgressIndicatorStep({
|
|
|
3522
3927
|
className: markerVariants({ status: effectiveStatus, active })
|
|
3523
3928
|
}
|
|
3524
3929
|
),
|
|
3525
|
-
/* @__PURE__ */ jsxRuntime.jsxs("span", { className:
|
|
3526
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
3527
|
-
description && /* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
3528
|
-
statusLabel && /* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
3930
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: styles45__default.default["progress-indicator-step-text"], children: [
|
|
3931
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: styles45__default.default["progress-indicator-step-name"], children: name }),
|
|
3932
|
+
description && /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles45__default.default["progress-indicator-step-description"], children: description }),
|
|
3933
|
+
statusLabel && /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles45__default.default["progress-indicator-step-status"], children: statusLabel })
|
|
3529
3934
|
] })
|
|
3530
3935
|
] });
|
|
3531
3936
|
const innerClassName = cn(
|
|
3532
|
-
|
|
3533
|
-
interactive &&
|
|
3937
|
+
styles45__default.default["progress-indicator-step-inner"],
|
|
3938
|
+
interactive && styles45__default.default["progress-indicator-step-inner--interactive"]
|
|
3534
3939
|
);
|
|
3535
3940
|
let inner;
|
|
3536
3941
|
if (href) {
|
|
@@ -3553,8 +3958,8 @@ function ProgressIndicatorStep({
|
|
|
3553
3958
|
"li",
|
|
3554
3959
|
{
|
|
3555
3960
|
className: cn(
|
|
3556
|
-
|
|
3557
|
-
active &&
|
|
3961
|
+
styles45__default.default["progress-indicator-step"],
|
|
3962
|
+
active && styles45__default.default["progress-indicator-step--active"],
|
|
3558
3963
|
className
|
|
3559
3964
|
),
|
|
3560
3965
|
...props,
|
|
@@ -3578,16 +3983,16 @@ var RadialGraph = React15.forwardRef(
|
|
|
3578
3983
|
"div",
|
|
3579
3984
|
{
|
|
3580
3985
|
ref,
|
|
3581
|
-
className: cn(
|
|
3986
|
+
className: cn(styles46__default.default["radial-graph"], styles46__default.default[graphSize], className),
|
|
3582
3987
|
...props,
|
|
3583
3988
|
children: [
|
|
3584
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
3989
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: styles46__default.default["bars-container"], children: bars.map((_, i) => {
|
|
3585
3990
|
const isActive = i < percentage;
|
|
3586
3991
|
const delay = `${i * 10}ms`;
|
|
3587
3992
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3588
3993
|
"div",
|
|
3589
3994
|
{
|
|
3590
|
-
className:
|
|
3995
|
+
className: styles46__default.default["bar"],
|
|
3591
3996
|
style: {
|
|
3592
3997
|
transform: `rotate(${i * 3.6}deg)`
|
|
3593
3998
|
},
|
|
@@ -3595,22 +4000,22 @@ var RadialGraph = React15.forwardRef(
|
|
|
3595
4000
|
"div",
|
|
3596
4001
|
{
|
|
3597
4002
|
className: cn(
|
|
3598
|
-
|
|
3599
|
-
isActive ?
|
|
4003
|
+
styles46__default.default["bar-inner"],
|
|
4004
|
+
isActive ? styles46__default.default["bar-inner--active"] : styles46__default.default["bar-inner--inactive"]
|
|
3600
4005
|
),
|
|
3601
4006
|
style: {
|
|
3602
4007
|
transitionDelay: delay,
|
|
3603
4008
|
animationDelay: delay
|
|
3604
4009
|
},
|
|
3605
4010
|
children: [
|
|
3606
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
4011
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: styles46__default.default["bar-background"] }),
|
|
3607
4012
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3608
4013
|
"div",
|
|
3609
4014
|
{
|
|
3610
4015
|
className: cn(
|
|
3611
|
-
|
|
3612
|
-
|
|
3613
|
-
isActive ?
|
|
4016
|
+
styles46__default.default["bar-gradient"],
|
|
4017
|
+
styles46__default.default[`bar-gradient--${variant}`],
|
|
4018
|
+
isActive ? styles46__default.default["bar-gradient--active"] : styles46__default.default["bar-gradient--inactive"]
|
|
3614
4019
|
),
|
|
3615
4020
|
style: {
|
|
3616
4021
|
transitionDelay: delay,
|
|
@@ -3625,9 +4030,9 @@ var RadialGraph = React15.forwardRef(
|
|
|
3625
4030
|
i
|
|
3626
4031
|
);
|
|
3627
4032
|
}) }),
|
|
3628
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
3629
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: cn(
|
|
3630
|
-
subLabel && /* @__PURE__ */ jsxRuntime.jsx("p", { className:
|
|
4033
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles46__default.default["label-container"], children: [
|
|
4034
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: cn(styles46__default.default["label"], styles46__default.default[graphSize]), children: label }),
|
|
4035
|
+
subLabel && /* @__PURE__ */ jsxRuntime.jsx("p", { className: styles46__default.default["sub-label"], children: subLabel })
|
|
3631
4036
|
] })
|
|
3632
4037
|
]
|
|
3633
4038
|
}
|
|
@@ -3653,13 +4058,13 @@ var RadioDropdown = ({
|
|
|
3653
4058
|
);
|
|
3654
4059
|
return /* @__PURE__ */ jsxRuntime.jsxs(DropdownMenu, { children: [
|
|
3655
4060
|
/* @__PURE__ */ jsxRuntime.jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(Button, { variant: "tertiary", className, children: [
|
|
3656
|
-
/* @__PURE__ */ jsxRuntime.jsxs("span", { className:
|
|
4061
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: styles47__default.default["selector-button-inner"], children: [
|
|
3657
4062
|
selectedOption?.label || label,
|
|
3658
4063
|
hasSelectedCount && /* @__PURE__ */ jsxRuntime.jsx(Badge, { variant: "primary", children: selectedOption.count })
|
|
3659
4064
|
] }),
|
|
3660
|
-
/* @__PURE__ */ jsxRuntime.jsx(ChevronDownIcon3, { className:
|
|
4065
|
+
/* @__PURE__ */ jsxRuntime.jsx(ChevronDownIcon3, { className: styles47__default.default["chevron-icon"] })
|
|
3661
4066
|
] }) }),
|
|
3662
|
-
/* @__PURE__ */ jsxRuntime.jsxs(DropdownMenuContent, { align: "end", className:
|
|
4067
|
+
/* @__PURE__ */ jsxRuntime.jsxs(DropdownMenuContent, { align: "end", className: styles47__default.default["dropdown-menu-content"], children: [
|
|
3663
4068
|
searchable && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
3664
4069
|
/* @__PURE__ */ jsxRuntime.jsx(DropdownMenuSearch, { placeholder: searchPlaceholder, "aria-label": label }),
|
|
3665
4070
|
/* @__PURE__ */ jsxRuntime.jsx(DropdownMenuEmpty, { children: emptyPlaceholder })
|
|
@@ -3683,7 +4088,7 @@ var RadioGroup2 = React15__namespace.forwardRef(({ className, ...props }, ref) =
|
|
|
3683
4088
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3684
4089
|
RadioGroupPrimitive__namespace.Root,
|
|
3685
4090
|
{
|
|
3686
|
-
className: cn(
|
|
4091
|
+
className: cn(styles48__default.default["radio-group"], className),
|
|
3687
4092
|
...props,
|
|
3688
4093
|
ref
|
|
3689
4094
|
}
|
|
@@ -3695,9 +4100,9 @@ var RadioGroupItem = React15__namespace.forwardRef(({ className, ...props }, ref
|
|
|
3695
4100
|
RadioGroupPrimitive__namespace.Item,
|
|
3696
4101
|
{
|
|
3697
4102
|
ref,
|
|
3698
|
-
className: cn(
|
|
4103
|
+
className: cn(styles48__default.default["radio-group-item"], className),
|
|
3699
4104
|
...props,
|
|
3700
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(RadioGroupPrimitive__namespace.Indicator, { className:
|
|
4105
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(RadioGroupPrimitive__namespace.Indicator, { className: styles48__default.default["radio-group-item-indicator"], children: /* @__PURE__ */ jsxRuntime.jsx(CircleIcon2, { className: styles48__default.default["indicator-icon"] }) })
|
|
3701
4106
|
}
|
|
3702
4107
|
);
|
|
3703
4108
|
});
|
|
@@ -3730,160 +4135,138 @@ var getTypeConfig = (type) => {
|
|
|
3730
4135
|
case "agent":
|
|
3731
4136
|
return {
|
|
3732
4137
|
icon: "Bot",
|
|
3733
|
-
className:
|
|
4138
|
+
className: styles49__default.default["badge--agent"],
|
|
3734
4139
|
label: "Agent"
|
|
3735
4140
|
};
|
|
3736
4141
|
case "benchmark":
|
|
3737
4142
|
return {
|
|
3738
4143
|
icon: "LineChart",
|
|
3739
|
-
className:
|
|
4144
|
+
className: styles49__default.default["badge--benchmark"],
|
|
3740
4145
|
label: "Benchmark"
|
|
3741
4146
|
};
|
|
3742
4147
|
case "benchmark-result":
|
|
3743
4148
|
return {
|
|
3744
4149
|
icon: "FileChartLine",
|
|
3745
|
-
className:
|
|
4150
|
+
className: styles49__default.default["badge--benchmark-result"],
|
|
3746
4151
|
label: "Benchmark Result"
|
|
3747
4152
|
};
|
|
3748
4153
|
case "code":
|
|
3749
4154
|
return {
|
|
3750
4155
|
icon: "Code",
|
|
3751
|
-
className:
|
|
4156
|
+
className: styles49__default.default["badge--code"],
|
|
3752
4157
|
label: "Code"
|
|
3753
4158
|
};
|
|
3754
4159
|
case "binary":
|
|
3755
4160
|
return {
|
|
3756
4161
|
icon: "Binary",
|
|
3757
|
-
className:
|
|
4162
|
+
className: styles49__default.default["badge--binary"],
|
|
3758
4163
|
label: "Binary"
|
|
3759
4164
|
};
|
|
3760
4165
|
case "certificate":
|
|
3761
4166
|
return {
|
|
3762
4167
|
icon: "Award",
|
|
3763
|
-
className:
|
|
4168
|
+
className: styles49__default.default["badge--certificate"],
|
|
3764
4169
|
label: "Certificate"
|
|
3765
4170
|
};
|
|
3766
4171
|
case "compute":
|
|
3767
4172
|
return {
|
|
3768
4173
|
icon: "Cpu",
|
|
3769
|
-
className:
|
|
4174
|
+
className: styles49__default.default["badge--compute"],
|
|
3770
4175
|
label: "Compute"
|
|
3771
4176
|
};
|
|
3772
4177
|
case "credential":
|
|
3773
4178
|
return {
|
|
3774
4179
|
icon: "IdCardLanyard",
|
|
3775
|
-
className:
|
|
4180
|
+
className: styles49__default.default["badge--credential"],
|
|
3776
4181
|
label: "Credential"
|
|
3777
4182
|
};
|
|
3778
4183
|
case "database":
|
|
3779
4184
|
return {
|
|
3780
4185
|
icon: "Database",
|
|
3781
|
-
className:
|
|
4186
|
+
className: styles49__default.default["badge--database"],
|
|
3782
4187
|
label: "Database"
|
|
3783
4188
|
};
|
|
3784
4189
|
case "dataset":
|
|
3785
4190
|
return {
|
|
3786
4191
|
icon: "Table",
|
|
3787
|
-
className:
|
|
4192
|
+
className: styles49__default.default["badge--dataset"],
|
|
3788
4193
|
label: "Dataset"
|
|
3789
4194
|
};
|
|
3790
4195
|
case "document":
|
|
3791
4196
|
return {
|
|
3792
4197
|
icon: "FileText",
|
|
3793
|
-
className:
|
|
4198
|
+
className: styles49__default.default["badge--document"],
|
|
3794
4199
|
label: "Document"
|
|
3795
4200
|
};
|
|
3796
4201
|
case "skill":
|
|
3797
4202
|
return {
|
|
3798
4203
|
icon: "FileCog",
|
|
3799
|
-
className:
|
|
4204
|
+
className: styles49__default.default["badge--skill"],
|
|
3800
4205
|
label: "Skill"
|
|
3801
4206
|
};
|
|
3802
4207
|
case "media":
|
|
3803
4208
|
return {
|
|
3804
4209
|
icon: "FileImage",
|
|
3805
|
-
className:
|
|
4210
|
+
className: styles49__default.default["badge--media"],
|
|
3806
4211
|
label: "Media"
|
|
3807
4212
|
};
|
|
3808
4213
|
case "guardrail":
|
|
3809
4214
|
return {
|
|
3810
4215
|
icon: "Fence",
|
|
3811
|
-
className:
|
|
4216
|
+
className: styles49__default.default["badge--guardrail"],
|
|
3812
4217
|
label: "Guardrail"
|
|
3813
4218
|
};
|
|
3814
4219
|
case "model":
|
|
3815
4220
|
return {
|
|
3816
4221
|
icon: "Brain",
|
|
3817
|
-
className:
|
|
4222
|
+
className: styles49__default.default["badge--model"],
|
|
3818
4223
|
label: "Model"
|
|
3819
4224
|
};
|
|
3820
4225
|
case "prompt":
|
|
3821
4226
|
return {
|
|
3822
4227
|
icon: "MessageSquareText",
|
|
3823
|
-
className:
|
|
4228
|
+
className: styles49__default.default["badge--prompt"],
|
|
3824
4229
|
label: "Prompt"
|
|
3825
4230
|
};
|
|
3826
4231
|
case "system-prompt":
|
|
3827
4232
|
return {
|
|
3828
4233
|
icon: "MessageSquareCode",
|
|
3829
|
-
className:
|
|
4234
|
+
className: styles49__default.default["badge--system-prompt"],
|
|
3830
4235
|
label: "System Prompt"
|
|
3831
4236
|
};
|
|
3832
4237
|
case "reasoning":
|
|
3833
4238
|
return {
|
|
3834
4239
|
icon: "MessageSquareMore",
|
|
3835
|
-
className:
|
|
4240
|
+
className: styles49__default.default["badge--reasoning"],
|
|
3836
4241
|
label: "Reasoning"
|
|
3837
4242
|
};
|
|
3838
4243
|
case "token":
|
|
3839
4244
|
return {
|
|
3840
4245
|
icon: "Coins",
|
|
3841
|
-
className:
|
|
4246
|
+
className: styles49__default.default["badge--token"],
|
|
3842
4247
|
label: "Token"
|
|
3843
4248
|
};
|
|
3844
4249
|
case "tool":
|
|
3845
4250
|
return {
|
|
3846
4251
|
icon: "Wrench",
|
|
3847
|
-
className:
|
|
4252
|
+
className: styles49__default.default["badge--tool"],
|
|
3848
4253
|
label: "Tool"
|
|
3849
4254
|
};
|
|
3850
4255
|
case "config":
|
|
3851
4256
|
return {
|
|
3852
4257
|
icon: "Settings2",
|
|
3853
|
-
className:
|
|
4258
|
+
className: styles49__default.default["badge--config"],
|
|
3854
4259
|
label: "Configuration"
|
|
3855
4260
|
};
|
|
3856
4261
|
case "unknown":
|
|
3857
4262
|
default:
|
|
3858
4263
|
return {
|
|
3859
4264
|
icon: "Box",
|
|
3860
|
-
className:
|
|
4265
|
+
className: styles49__default.default["badge--unknown"],
|
|
3861
4266
|
label: "Unknown"
|
|
3862
4267
|
};
|
|
3863
4268
|
}
|
|
3864
4269
|
};
|
|
3865
|
-
var ScrollArea = React15__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(ScrollAreaPrimitive__namespace.Root, { ref, className: cn(styles46__default.default["scroll-area"], className), ...props, children: [
|
|
3866
|
-
/* @__PURE__ */ jsxRuntime.jsx(ScrollAreaPrimitive__namespace.Viewport, { className: styles46__default.default["scroll-area-viewport"], children }),
|
|
3867
|
-
/* @__PURE__ */ jsxRuntime.jsx(ScrollBar, {}),
|
|
3868
|
-
/* @__PURE__ */ jsxRuntime.jsx(ScrollAreaPrimitive__namespace.Corner, {})
|
|
3869
|
-
] }));
|
|
3870
|
-
ScrollArea.displayName = ScrollAreaPrimitive__namespace.Root.displayName;
|
|
3871
|
-
var ScrollBar = React15__namespace.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3872
|
-
ScrollAreaPrimitive__namespace.ScrollAreaScrollbar,
|
|
3873
|
-
{
|
|
3874
|
-
ref,
|
|
3875
|
-
orientation,
|
|
3876
|
-
className: cn(
|
|
3877
|
-
styles46__default.default["scroll-bar"],
|
|
3878
|
-
orientation === "vertical" && styles46__default.default["scroll-bar--vertical"],
|
|
3879
|
-
orientation === "horizontal" && styles46__default.default["scroll-bar--horizontal"],
|
|
3880
|
-
className
|
|
3881
|
-
),
|
|
3882
|
-
...props,
|
|
3883
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(ScrollAreaPrimitive__namespace.ScrollAreaThumb, { className: styles46__default.default["scroll-area-thumb"] })
|
|
3884
|
-
}
|
|
3885
|
-
));
|
|
3886
|
-
ScrollBar.displayName = ScrollAreaPrimitive__namespace.ScrollAreaScrollbar.displayName;
|
|
3887
4270
|
var SearchIcon4 = LucideIcons.Search;
|
|
3888
4271
|
var SearchBar = ({
|
|
3889
4272
|
searchQuery,
|
|
@@ -3897,20 +4280,20 @@ var SearchBar = ({
|
|
|
3897
4280
|
const handleClear = () => {
|
|
3898
4281
|
setSearchQuery("");
|
|
3899
4282
|
};
|
|
3900
|
-
return /* @__PURE__ */ jsxRuntime.jsx("search", { className: cn(
|
|
4283
|
+
return /* @__PURE__ */ jsxRuntime.jsx("search", { className: cn(styles50__default.default["search-bar"], className), children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3901
4284
|
Input,
|
|
3902
4285
|
{
|
|
3903
4286
|
placeholder,
|
|
3904
4287
|
value: searchQuery,
|
|
3905
4288
|
onChange: handleChange,
|
|
3906
|
-
className:
|
|
3907
|
-
prefix: /* @__PURE__ */ jsxRuntime.jsx(SearchIcon4, { className:
|
|
4289
|
+
className: styles50__default.default["input"],
|
|
4290
|
+
prefix: /* @__PURE__ */ jsxRuntime.jsx(SearchIcon4, { className: styles50__default.default["search-icon"] }),
|
|
3908
4291
|
suffix: searchQuery && /* @__PURE__ */ jsxRuntime.jsx(
|
|
3909
4292
|
IconButton,
|
|
3910
4293
|
{
|
|
3911
4294
|
name: "X",
|
|
3912
4295
|
onClick: handleClear,
|
|
3913
|
-
className:
|
|
4296
|
+
className: styles50__default.default["clear-button"],
|
|
3914
4297
|
label: "Clear search"
|
|
3915
4298
|
}
|
|
3916
4299
|
)
|
|
@@ -3924,15 +4307,14 @@ var SectionHeading = ({
|
|
|
3924
4307
|
className
|
|
3925
4308
|
}) => {
|
|
3926
4309
|
const hasRightContent = !!renderRightContent;
|
|
3927
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn(hasRightContent &&
|
|
3928
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
3929
|
-
/* @__PURE__ */ jsxRuntime.jsx("h3", { className:
|
|
3930
|
-
description && /* @__PURE__ */ jsxRuntime.jsx("p", { className:
|
|
4310
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn(hasRightContent && styles51__default.default["section-heading--right-content"], className), children: [
|
|
4311
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles51__default.default["content"], children: [
|
|
4312
|
+
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: styles51__default.default["heading"], children: heading }),
|
|
4313
|
+
description && /* @__PURE__ */ jsxRuntime.jsx("p", { className: styles51__default.default["description"], children: description })
|
|
3931
4314
|
] }),
|
|
3932
4315
|
hasRightContent && renderRightContent()
|
|
3933
4316
|
] });
|
|
3934
4317
|
};
|
|
3935
|
-
var useIsomorphicLayoutEffect = typeof window === "undefined" ? React15.useEffect : React15.useLayoutEffect;
|
|
3936
4318
|
var SegmentedControls = ({
|
|
3937
4319
|
options,
|
|
3938
4320
|
value,
|
|
@@ -3982,9 +4364,9 @@ var SegmentedControls = ({
|
|
|
3982
4364
|
"aria-label": ariaLabel,
|
|
3983
4365
|
"aria-labelledby": ariaLabelledBy,
|
|
3984
4366
|
className: cn(
|
|
3985
|
-
|
|
3986
|
-
|
|
3987
|
-
|
|
4367
|
+
styles52__default.default["segmented-controls"],
|
|
4368
|
+
styles52__default.default[`size--${size}`],
|
|
4369
|
+
styles52__default.default[`variant--${activeVariant}`],
|
|
3988
4370
|
className
|
|
3989
4371
|
),
|
|
3990
4372
|
children: [
|
|
@@ -4003,15 +4385,15 @@ var SegmentedControls = ({
|
|
|
4003
4385
|
"aria-label": isIconOnly ? option.label : void 0,
|
|
4004
4386
|
title: isIconOnly ? option.label : void 0,
|
|
4005
4387
|
className: cn(
|
|
4006
|
-
|
|
4007
|
-
isIconOnly &&
|
|
4008
|
-
currentlyActive ?
|
|
4388
|
+
styles52__default.default["segment"],
|
|
4389
|
+
isIconOnly && styles52__default.default["segment--icon-only"],
|
|
4390
|
+
currentlyActive ? styles52__default.default["segment--active"] : styles52__default.default["segment--inactive"]
|
|
4009
4391
|
),
|
|
4010
4392
|
onClick: () => onValueChange(option.value),
|
|
4011
4393
|
children: [
|
|
4012
|
-
showIcon && /* @__PURE__ */ jsxRuntime.jsx(Icon, { icon: option.icon, size: "xs", className:
|
|
4394
|
+
showIcon && /* @__PURE__ */ jsxRuntime.jsx(Icon, { icon: option.icon, size: "xs", className: styles52__default.default["segment-icon"] }),
|
|
4013
4395
|
showLabel && /* @__PURE__ */ jsxRuntime.jsx("span", { children: option.label }),
|
|
4014
|
-
!isIconOnly && option.suffix && /* @__PURE__ */ jsxRuntime.jsx("span", { className:
|
|
4396
|
+
!isIconOnly && option.suffix && /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles52__default.default["segment-suffix"], children: option.suffix })
|
|
4015
4397
|
]
|
|
4016
4398
|
},
|
|
4017
4399
|
option.value
|
|
@@ -4021,8 +4403,8 @@ var SegmentedControls = ({
|
|
|
4021
4403
|
"div",
|
|
4022
4404
|
{
|
|
4023
4405
|
className: cn(
|
|
4024
|
-
|
|
4025
|
-
animateIndicator &&
|
|
4406
|
+
styles52__default.default["active-segment-indicator"],
|
|
4407
|
+
animateIndicator && styles52__default.default["active-segment-indicator--animated"]
|
|
4026
4408
|
),
|
|
4027
4409
|
style: {
|
|
4028
4410
|
transform: `translateX(${indicator.left}px)`,
|
|
@@ -4041,8 +4423,8 @@ var Separator3 = React15__namespace.forwardRef(({ className, orientation = "hori
|
|
|
4041
4423
|
decorative,
|
|
4042
4424
|
orientation,
|
|
4043
4425
|
className: cn(
|
|
4044
|
-
|
|
4045
|
-
orientation === "horizontal" ?
|
|
4426
|
+
styles53__default.default["separator"],
|
|
4427
|
+
orientation === "horizontal" ? styles53__default.default["separator--horizontal"] : styles53__default.default["separator--vertical"],
|
|
4046
4428
|
className
|
|
4047
4429
|
),
|
|
4048
4430
|
...props
|
|
@@ -4053,15 +4435,15 @@ var Sheet = DialogPrimitive__namespace.Root;
|
|
|
4053
4435
|
var SheetTrigger = DialogPrimitive__namespace.Trigger;
|
|
4054
4436
|
var SheetClose = DialogPrimitive__namespace.Close;
|
|
4055
4437
|
var SheetPortal = ({ children }) => /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Portal, { container: usePortalContainer(), children });
|
|
4056
|
-
var SheetOverlay = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Overlay, { className: cn(
|
|
4438
|
+
var SheetOverlay = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Overlay, { className: cn(styles54__default.default["sheet-overlay"], className), ...props, ref }));
|
|
4057
4439
|
SheetOverlay.displayName = DialogPrimitive__namespace.Overlay.displayName;
|
|
4058
|
-
var sheetVariants = classVarianceAuthority.cva(
|
|
4440
|
+
var sheetVariants = classVarianceAuthority.cva(styles54__default.default["sheet-content"], {
|
|
4059
4441
|
variants: {
|
|
4060
4442
|
side: {
|
|
4061
|
-
top:
|
|
4062
|
-
bottom:
|
|
4063
|
-
left:
|
|
4064
|
-
right:
|
|
4443
|
+
top: styles54__default.default["sheet-content--side-top"],
|
|
4444
|
+
bottom: styles54__default.default["sheet-content--side-bottom"],
|
|
4445
|
+
left: styles54__default.default["sheet-content--side-left"],
|
|
4446
|
+
right: styles54__default.default["sheet-content--side-right"]
|
|
4065
4447
|
}
|
|
4066
4448
|
},
|
|
4067
4449
|
defaultVariants: {
|
|
@@ -4073,7 +4455,7 @@ var SheetContainer = React15__namespace.forwardRef(({ side = "right", className,
|
|
|
4073
4455
|
/* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Content, { ref, className: cn(sheetVariants({ side }), className), ...props, children })
|
|
4074
4456
|
] }));
|
|
4075
4457
|
SheetContainer.displayName = DialogPrimitive__namespace.Content.displayName;
|
|
4076
|
-
var SheetHeaderIcon = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(
|
|
4458
|
+
var SheetHeaderIcon = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(styles54__default.default["sheet-header-icon"], className), ...props });
|
|
4077
4459
|
SheetHeaderIcon.displayName = "SheetHeaderIcon";
|
|
4078
4460
|
var SheetHeader = ({ className, children, ...props }) => {
|
|
4079
4461
|
const childrenArray = React15__namespace.Children.toArray(children);
|
|
@@ -4083,31 +4465,28 @@ var SheetHeader = ({ className, children, ...props }) => {
|
|
|
4083
4465
|
const otherChildren = childrenArray.filter(
|
|
4084
4466
|
(child) => !(React15__namespace.isValidElement(child) && child.type === SheetHeaderIcon)
|
|
4085
4467
|
);
|
|
4086
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn(
|
|
4468
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn(styles54__default.default["sheet-header"], className), ...props, children: [
|
|
4087
4469
|
icon,
|
|
4088
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
4089
|
-
/* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Close, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(IconButton, { name: "X", label: "Close", className:
|
|
4470
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: styles54__default.default["sheet-header-text-content"], children: otherChildren }),
|
|
4471
|
+
/* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Close, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(IconButton, { name: "X", label: "Close", className: styles54__default.default["sheet-close"] }) })
|
|
4090
4472
|
] });
|
|
4091
4473
|
};
|
|
4092
4474
|
SheetHeader.displayName = "SheetHeader";
|
|
4093
|
-
var SheetFooter = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(
|
|
4475
|
+
var SheetFooter = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(styles54__default.default["sheet-footer"], className), ...props });
|
|
4094
4476
|
SheetFooter.displayName = "SheetFooter";
|
|
4095
|
-
var SheetTitle = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Title, { ref, className: cn(
|
|
4477
|
+
var SheetTitle = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Title, { ref, className: cn(styles54__default.default["sheet-title"], className), ...props }));
|
|
4096
4478
|
SheetTitle.displayName = DialogPrimitive__namespace.Title.displayName;
|
|
4097
4479
|
var SheetDescription = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
4098
4480
|
DialogPrimitive__namespace.Description,
|
|
4099
4481
|
{
|
|
4100
4482
|
ref,
|
|
4101
|
-
className: cn(
|
|
4483
|
+
className: cn(styles54__default.default["sheet-description"], className),
|
|
4102
4484
|
...props
|
|
4103
4485
|
}
|
|
4104
4486
|
));
|
|
4105
4487
|
SheetDescription.displayName = DialogPrimitive__namespace.Description.displayName;
|
|
4106
|
-
var SheetContent = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(
|
|
4488
|
+
var SheetContent = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(styles54__default.default["sheet-body"], className), ...props });
|
|
4107
4489
|
SheetContent.displayName = "SheetContent";
|
|
4108
|
-
function Skeleton({ className, ...props }) {
|
|
4109
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(styles52__default.default["skeleton"], className), ...props });
|
|
4110
|
-
}
|
|
4111
4490
|
var ArrowDownIcon = LucideIcons.ArrowDown;
|
|
4112
4491
|
var ArrowUpIcon = LucideIcons.ArrowUp;
|
|
4113
4492
|
var ArrowUpDownIcon = LucideIcons.ArrowUpDown;
|
|
@@ -4124,10 +4503,10 @@ function SortButton({
|
|
|
4124
4503
|
const handleClick = () => {
|
|
4125
4504
|
onSort(field);
|
|
4126
4505
|
};
|
|
4127
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("button", { type: "button", onClick: handleClick, className:
|
|
4506
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("button", { type: "button", onClick: handleClick, className: styles55__default.default["sort-button"], children: [
|
|
4128
4507
|
icon,
|
|
4129
4508
|
children,
|
|
4130
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
4509
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: styles55__default.default["arrow-container"], children: isActive ? isAscending ? /* @__PURE__ */ jsxRuntime.jsx(ArrowUpIcon, {}) : /* @__PURE__ */ jsxRuntime.jsx(ArrowDownIcon, {}) : /* @__PURE__ */ jsxRuntime.jsx(ArrowUpDownIcon, { className: styles55__default.default["arrow-up-down-icon"] }) })
|
|
4131
4510
|
] });
|
|
4132
4511
|
}
|
|
4133
4512
|
var ChevronDownIcon4 = LucideIcons.ChevronDown;
|
|
@@ -4172,9 +4551,9 @@ function SortSelector({
|
|
|
4172
4551
|
setCurrentPage?.(1);
|
|
4173
4552
|
};
|
|
4174
4553
|
return /* @__PURE__ */ jsxRuntime.jsxs(DropdownMenu, { children: [
|
|
4175
|
-
/* @__PURE__ */ jsxRuntime.jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(Button, { variant: "tertiary", className: cn(
|
|
4554
|
+
/* @__PURE__ */ jsxRuntime.jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(Button, { variant: "tertiary", className: cn(styles56__default.default["sort-selector-trigger"], className), children: [
|
|
4176
4555
|
/* @__PURE__ */ jsxRuntime.jsx("span", { children: currentLabel }),
|
|
4177
|
-
/* @__PURE__ */ jsxRuntime.jsx(ChevronDownIcon4, { className:
|
|
4556
|
+
/* @__PURE__ */ jsxRuntime.jsx(ChevronDownIcon4, { className: styles56__default.default["chevron-down-icon"] })
|
|
4178
4557
|
] }) }),
|
|
4179
4558
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
4180
4559
|
DropdownMenuContent,
|
|
@@ -4207,27 +4586,27 @@ var Switch = React15__namespace.forwardRef(
|
|
|
4207
4586
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4208
4587
|
SwitchPrimitives__namespace.Root,
|
|
4209
4588
|
{
|
|
4210
|
-
className: cn(
|
|
4589
|
+
className: cn(styles57__default.default["switch"], styles57__default.default[size], styles57__default.default[variant], className),
|
|
4211
4590
|
...props,
|
|
4212
4591
|
ref,
|
|
4213
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(SwitchPrimitives__namespace.Thumb, { className: cn(
|
|
4592
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(SwitchPrimitives__namespace.Thumb, { className: cn(styles57__default.default["thumb"], styles57__default.default[size]), children: thumbIcon && /* @__PURE__ */ jsxRuntime.jsx(Icon, { icon: thumbIcon, className: styles57__default.default["thumb-icon"], size: iconSize }) })
|
|
4214
4593
|
}
|
|
4215
4594
|
);
|
|
4216
4595
|
}
|
|
4217
4596
|
);
|
|
4218
4597
|
Switch.displayName = SwitchPrimitives__namespace.Root.displayName;
|
|
4219
|
-
var tableElevationVariants = generateElevationVariants(
|
|
4598
|
+
var tableElevationVariants = generateElevationVariants(styles58__default.default, "table", ELEVATION.RAISED);
|
|
4220
4599
|
var TableContainer = React15__namespace.forwardRef(({ className, style, elevation = ELEVATION.RAISED, border, columns, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
4221
4600
|
"div",
|
|
4222
4601
|
{
|
|
4223
4602
|
className: cn(
|
|
4224
|
-
|
|
4603
|
+
styles58__default.default["table"],
|
|
4225
4604
|
tableElevationVariants({ elevation }),
|
|
4226
|
-
border &&
|
|
4605
|
+
border && styles58__default.default["table-border"],
|
|
4227
4606
|
className
|
|
4228
4607
|
),
|
|
4229
4608
|
style: columns ? { ...style, "--table-columns": columns } : style,
|
|
4230
|
-
children: /* @__PURE__ */ jsxRuntime.jsx("table", { ref, className:
|
|
4609
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("table", { ref, className: styles58__default.default["table-inner"], ...props })
|
|
4231
4610
|
}
|
|
4232
4611
|
));
|
|
4233
4612
|
TableContainer.displayName = "Table";
|
|
@@ -4236,18 +4615,18 @@ var TableHeader = React15__namespace.forwardRef(({ className, sticky = false, ..
|
|
|
4236
4615
|
{
|
|
4237
4616
|
ref,
|
|
4238
4617
|
className: cn(
|
|
4239
|
-
|
|
4240
|
-
sticky === "container" &&
|
|
4241
|
-
sticky === "page" &&
|
|
4618
|
+
styles58__default.default["table-header"],
|
|
4619
|
+
sticky === "container" && styles58__default.default["table-header--sticky-container"],
|
|
4620
|
+
sticky === "page" && styles58__default.default["table-header--sticky-page"],
|
|
4242
4621
|
className
|
|
4243
4622
|
),
|
|
4244
4623
|
...props
|
|
4245
4624
|
}
|
|
4246
4625
|
));
|
|
4247
4626
|
TableHeader.displayName = "TableHeader";
|
|
4248
|
-
var TableBody = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("tbody", { ref, className: cn(
|
|
4627
|
+
var TableBody = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("tbody", { ref, className: cn(styles58__default.default["table-body"], className), ...props }));
|
|
4249
4628
|
TableBody.displayName = "TableBody";
|
|
4250
|
-
var TableFooter = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("tfoot", { ref, className: cn(
|
|
4629
|
+
var TableFooter = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("tfoot", { ref, className: cn(styles58__default.default["table-footer"], className), ...props }));
|
|
4251
4630
|
TableFooter.displayName = "TableFooter";
|
|
4252
4631
|
var TableRow = React15__namespace.forwardRef(
|
|
4253
4632
|
({ className, clickable, href, hrefLabel = "View details", children, onClick, ...props }, ref) => {
|
|
@@ -4264,15 +4643,15 @@ var TableRow = React15__namespace.forwardRef(
|
|
|
4264
4643
|
{
|
|
4265
4644
|
ref,
|
|
4266
4645
|
className: cn(
|
|
4267
|
-
|
|
4268
|
-
isClickable &&
|
|
4269
|
-
href &&
|
|
4646
|
+
styles58__default.default["table-row"],
|
|
4647
|
+
isClickable && styles58__default.default["table-row--clickable"],
|
|
4648
|
+
href && styles58__default.default["table-row--linked"],
|
|
4270
4649
|
className
|
|
4271
4650
|
),
|
|
4272
4651
|
onClick: onClick ? handleClick : void 0,
|
|
4273
4652
|
...props,
|
|
4274
4653
|
children: [
|
|
4275
|
-
href && /* @__PURE__ */ jsxRuntime.jsx("a", { href, className:
|
|
4654
|
+
href && /* @__PURE__ */ jsxRuntime.jsx("a", { href, className: styles58__default.default["table-row-link"], "data-table-row-link": true, children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles58__default.default["table-row-link-label"], children: hrefLabel }) }),
|
|
4276
4655
|
children
|
|
4277
4656
|
]
|
|
4278
4657
|
}
|
|
@@ -4280,18 +4659,18 @@ var TableRow = React15__namespace.forwardRef(
|
|
|
4280
4659
|
}
|
|
4281
4660
|
);
|
|
4282
4661
|
TableRow.displayName = "TableRow";
|
|
4283
|
-
var TableHead = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("th", { ref, className: cn(
|
|
4662
|
+
var TableHead = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("th", { ref, className: cn(styles58__default.default["table-head"], className), ...props }));
|
|
4284
4663
|
TableHead.displayName = "TableHead";
|
|
4285
|
-
var TableCell = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("td", { ref, className: cn(
|
|
4664
|
+
var TableCell = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("td", { ref, className: cn(styles58__default.default["table-cell"], className), ...props }));
|
|
4286
4665
|
TableCell.displayName = "TableCell";
|
|
4287
|
-
var TableCaption = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("caption", { ref, className: cn(
|
|
4666
|
+
var TableCaption = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("caption", { ref, className: cn(styles58__default.default["table-caption"], className), ...props }));
|
|
4288
4667
|
TableCaption.displayName = "TableCaption";
|
|
4289
4668
|
var TabsContainer = TabsPrimitive__namespace.Root;
|
|
4290
|
-
var TabsList = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(TabsPrimitive__namespace.List, { ref, className: cn(
|
|
4669
|
+
var TabsList = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(TabsPrimitive__namespace.List, { ref, className: cn(styles59__default.default["tabs-list"], className), ...props }));
|
|
4291
4670
|
TabsList.displayName = TabsPrimitive__namespace.List.displayName;
|
|
4292
|
-
var TabsTrigger = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(TabsPrimitive__namespace.Trigger, { ref, className: cn(
|
|
4671
|
+
var TabsTrigger = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(TabsPrimitive__namespace.Trigger, { ref, className: cn(styles59__default.default["tabs-trigger"], className), ...props }));
|
|
4293
4672
|
TabsTrigger.displayName = TabsPrimitive__namespace.Trigger.displayName;
|
|
4294
|
-
var TabsContent = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(TabsPrimitive__namespace.Content, { ref, className: cn(
|
|
4673
|
+
var TabsContent = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(TabsPrimitive__namespace.Content, { ref, className: cn(styles59__default.default["tabs-content"], className), ...props }));
|
|
4295
4674
|
TabsContent.displayName = TabsPrimitive__namespace.Content.displayName;
|
|
4296
4675
|
var Tabs = ({
|
|
4297
4676
|
items,
|
|
@@ -4354,13 +4733,13 @@ var Tabs = ({
|
|
|
4354
4733
|
};
|
|
4355
4734
|
const renderIcon = (icon) => {
|
|
4356
4735
|
if (icon) {
|
|
4357
|
-
return /* @__PURE__ */ jsxRuntime.jsx(Icon, { icon, size: "sm", className:
|
|
4736
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Icon, { icon, size: "sm", className: styles60__default.default["tabs-icon"] });
|
|
4358
4737
|
}
|
|
4359
4738
|
return null;
|
|
4360
4739
|
};
|
|
4361
4740
|
const indicatorClass = cn(
|
|
4362
|
-
|
|
4363
|
-
isFilled ?
|
|
4741
|
+
styles60__default.default["active-tab-indicator"],
|
|
4742
|
+
isFilled ? styles60__default.default["active-tab-indicator--filled"] : styles60__default.default["active-tab-indicator--transparent"]
|
|
4364
4743
|
);
|
|
4365
4744
|
const renderTriggerIndicator = (value2) => {
|
|
4366
4745
|
if (staticRender) {
|
|
@@ -4369,7 +4748,7 @@ var Tabs = ({
|
|
|
4369
4748
|
{
|
|
4370
4749
|
"aria-hidden": true,
|
|
4371
4750
|
"data-slot": "tabs-indicator",
|
|
4372
|
-
className: cn(indicatorClass,
|
|
4751
|
+
className: cn(indicatorClass, styles60__default.default["active-tab-indicator--static"])
|
|
4373
4752
|
}
|
|
4374
4753
|
);
|
|
4375
4754
|
}
|
|
@@ -4383,15 +4762,15 @@ var Tabs = ({
|
|
|
4383
4762
|
{
|
|
4384
4763
|
value: activeTab,
|
|
4385
4764
|
onValueChange: handleValueChange,
|
|
4386
|
-
className: cn(
|
|
4765
|
+
className: cn(styles60__default.default["tabs"], className),
|
|
4387
4766
|
children: [
|
|
4388
4767
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
4389
4768
|
TabsList,
|
|
4390
4769
|
{
|
|
4391
4770
|
ref: listRef,
|
|
4392
4771
|
className: cn(
|
|
4393
|
-
|
|
4394
|
-
isFilled ?
|
|
4772
|
+
styles60__default.default["tabs-list"],
|
|
4773
|
+
isFilled ? styles60__default.default["tabs-list--filled"] : styles60__default.default["tabs-list--transparent"]
|
|
4395
4774
|
),
|
|
4396
4775
|
children: [
|
|
4397
4776
|
items.map(({ label, value: value2, icon, suffix, triggerProps }) => {
|
|
@@ -4405,8 +4784,8 @@ var Tabs = ({
|
|
|
4405
4784
|
},
|
|
4406
4785
|
value: value2,
|
|
4407
4786
|
className: cn(
|
|
4408
|
-
|
|
4409
|
-
isFilled ?
|
|
4787
|
+
styles60__default.default["tabs-trigger"],
|
|
4788
|
+
isFilled ? styles60__default.default["tabs-trigger--filled"] : styles60__default.default["tabs-trigger--transparent"],
|
|
4410
4789
|
triggerProps?.className
|
|
4411
4790
|
)
|
|
4412
4791
|
},
|
|
@@ -4423,8 +4802,8 @@ var Tabs = ({
|
|
|
4423
4802
|
"data-slot": "tabs-indicator",
|
|
4424
4803
|
className: cn(
|
|
4425
4804
|
indicatorClass,
|
|
4426
|
-
|
|
4427
|
-
animateIndicator &&
|
|
4805
|
+
styles60__default.default["active-tab-indicator--shared"],
|
|
4806
|
+
animateIndicator && styles60__default.default["active-tab-indicator--animated"]
|
|
4428
4807
|
),
|
|
4429
4808
|
style: {
|
|
4430
4809
|
transform: `translateX(${indicator.left}px)`,
|
|
@@ -4440,7 +4819,7 @@ var Tabs = ({
|
|
|
4440
4819
|
TabsContent,
|
|
4441
4820
|
{
|
|
4442
4821
|
value: value2,
|
|
4443
|
-
className:
|
|
4822
|
+
className: styles60__default.default["content"],
|
|
4444
4823
|
forceMount: staticRender || void 0,
|
|
4445
4824
|
children: content
|
|
4446
4825
|
},
|
|
@@ -4452,7 +4831,7 @@ var Tabs = ({
|
|
|
4452
4831
|
};
|
|
4453
4832
|
var Textarea = React15__namespace.forwardRef(
|
|
4454
4833
|
({ className, ...props }, ref) => {
|
|
4455
|
-
return /* @__PURE__ */ jsxRuntime.jsx("textarea", { className: cn(
|
|
4834
|
+
return /* @__PURE__ */ jsxRuntime.jsx("textarea", { className: cn(styles61__default.default["textarea"], className), ref, ...props });
|
|
4456
4835
|
}
|
|
4457
4836
|
);
|
|
4458
4837
|
Textarea.displayName = "Textarea";
|
|
@@ -4462,18 +4841,18 @@ var ToastViewport = React15__namespace.forwardRef(({ className, ...props }, ref)
|
|
|
4462
4841
|
ToastPrimitives__namespace.Viewport,
|
|
4463
4842
|
{
|
|
4464
4843
|
ref,
|
|
4465
|
-
className: cn(
|
|
4844
|
+
className: cn(styles62__default.default["toast-viewport"], className),
|
|
4466
4845
|
...props
|
|
4467
4846
|
}
|
|
4468
4847
|
));
|
|
4469
4848
|
ToastViewport.displayName = ToastPrimitives__namespace.Viewport.displayName;
|
|
4470
|
-
var toastVariants = classVarianceAuthority.cva(
|
|
4849
|
+
var toastVariants = classVarianceAuthority.cva(styles62__default.default["toast"], {
|
|
4471
4850
|
variants: {
|
|
4472
4851
|
variant: {
|
|
4473
|
-
default:
|
|
4474
|
-
danger:
|
|
4475
|
-
warning:
|
|
4476
|
-
success:
|
|
4852
|
+
default: styles62__default.default["toast--default"],
|
|
4853
|
+
danger: styles62__default.default["toast--danger"],
|
|
4854
|
+
warning: styles62__default.default["toast--warning"],
|
|
4855
|
+
success: styles62__default.default["toast--success"]
|
|
4477
4856
|
}
|
|
4478
4857
|
},
|
|
4479
4858
|
defaultVariants: {
|
|
@@ -4498,7 +4877,7 @@ var ToastAction = React15__namespace.forwardRef(({ className, ...props }, ref) =
|
|
|
4498
4877
|
ref,
|
|
4499
4878
|
className: cn(
|
|
4500
4879
|
buttonVariants({ variant: "secondary", size: "sm" }),
|
|
4501
|
-
|
|
4880
|
+
styles62__default.default["toast-action"],
|
|
4502
4881
|
className
|
|
4503
4882
|
),
|
|
4504
4883
|
...props
|
|
@@ -4510,19 +4889,19 @@ var ToastClose = React15__namespace.forwardRef(({ className, ...props }, ref) =>
|
|
|
4510
4889
|
{
|
|
4511
4890
|
ref,
|
|
4512
4891
|
"aria-label": "Close",
|
|
4513
|
-
className: cn(
|
|
4892
|
+
className: cn(styles62__default.default["toast-close"], className),
|
|
4514
4893
|
...props,
|
|
4515
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(XIcon2, { className:
|
|
4894
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(XIcon2, { className: styles62__default.default["toast-close-icon"] })
|
|
4516
4895
|
}
|
|
4517
4896
|
));
|
|
4518
4897
|
ToastClose.displayName = ToastPrimitives__namespace.Close.displayName;
|
|
4519
|
-
var ToastTitle = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(ToastPrimitives__namespace.Title, { ref, className: cn(
|
|
4898
|
+
var ToastTitle = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(ToastPrimitives__namespace.Title, { ref, className: cn(styles62__default.default["toast-title"], className), ...props }));
|
|
4520
4899
|
ToastTitle.displayName = ToastPrimitives__namespace.Title.displayName;
|
|
4521
4900
|
var ToastDescription = React15__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
4522
4901
|
ToastPrimitives__namespace.Description,
|
|
4523
4902
|
{
|
|
4524
4903
|
ref,
|
|
4525
|
-
className: cn(
|
|
4904
|
+
className: cn(styles62__default.default["toast-description"], className),
|
|
4526
4905
|
...props
|
|
4527
4906
|
}
|
|
4528
4907
|
));
|
|
@@ -4657,14 +5036,14 @@ var Toast = ({ toast: toast2 }) => {
|
|
|
4657
5036
|
};
|
|
4658
5037
|
const displayIcon = icon !== void 0 ? icon : getDefaultIcon();
|
|
4659
5038
|
return /* @__PURE__ */ jsxRuntime.jsxs(ToastContainer, { ...props, variant, children: [
|
|
4660
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
4661
|
-
title && /* @__PURE__ */ jsxRuntime.jsxs("div", { className:
|
|
5039
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles63__default.default["toast-copy"], children: [
|
|
5040
|
+
title && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles63__default.default["toast-title-container"], children: [
|
|
4662
5041
|
displayIcon && /* @__PURE__ */ jsxRuntime.jsx(Icon, { icon: displayIcon, size: "sm", background: "transparent" }),
|
|
4663
5042
|
/* @__PURE__ */ jsxRuntime.jsx(ToastTitle, { children: title })
|
|
4664
5043
|
] }),
|
|
4665
5044
|
description && /* @__PURE__ */ jsxRuntime.jsx(ToastDescription, { children: description })
|
|
4666
5045
|
] }),
|
|
4667
|
-
action && /* @__PURE__ */ jsxRuntime.jsx("div", { className:
|
|
5046
|
+
action && /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles63__default.default["toast-action"], children: action }),
|
|
4668
5047
|
/* @__PURE__ */ jsxRuntime.jsx(ToastClose, {})
|
|
4669
5048
|
] });
|
|
4670
5049
|
};
|
|
@@ -4699,7 +5078,7 @@ var TruncatedDescription = ({
|
|
|
4699
5078
|
e.stopPropagation();
|
|
4700
5079
|
setExpanded(!expanded);
|
|
4701
5080
|
};
|
|
4702
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn(
|
|
5081
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn(styles64__default.default["truncated-description"], className), children: [
|
|
4703
5082
|
/* @__PURE__ */ jsxRuntime.jsx("div", { dangerouslySetInnerHTML: { __html: displayDescription } }),
|
|
4704
5083
|
isLongDescription && /* @__PURE__ */ jsxRuntime.jsx(Button, { variant: "link", size: "sm", onClick: handleToggle, children: expanded ? "Show less" : "Show more" })
|
|
4705
5084
|
] });
|
|
@@ -4720,7 +5099,7 @@ var ThemeProvider = ({ customVars, portalContainer, children }) => {
|
|
|
4720
5099
|
{
|
|
4721
5100
|
id: "equality-theme-provider-root",
|
|
4722
5101
|
"data-equality-root": true,
|
|
4723
|
-
className:
|
|
5102
|
+
className: styles65__default.default.root,
|
|
4724
5103
|
style: customVars,
|
|
4725
5104
|
children: [
|
|
4726
5105
|
children,
|
|
@@ -4901,18 +5280,6 @@ exports.DialogPortal = DialogPortal;
|
|
|
4901
5280
|
exports.DialogTitle = DialogTitle;
|
|
4902
5281
|
exports.DialogTrigger = DialogTrigger;
|
|
4903
5282
|
exports.DisplayField = DisplayField;
|
|
4904
|
-
exports.Drawer = Drawer;
|
|
4905
|
-
exports.DrawerClose = DrawerClose;
|
|
4906
|
-
exports.DrawerContent = DrawerContent;
|
|
4907
|
-
exports.DrawerDescription = DrawerDescription;
|
|
4908
|
-
exports.DrawerFooter = DrawerFooter;
|
|
4909
|
-
exports.DrawerHeader = DrawerHeader;
|
|
4910
|
-
exports.DrawerHeaderActions = DrawerHeaderActions;
|
|
4911
|
-
exports.DrawerInnerContent = DrawerInnerContent;
|
|
4912
|
-
exports.DrawerOverlay = DrawerOverlay;
|
|
4913
|
-
exports.DrawerPortal = DrawerPortal;
|
|
4914
|
-
exports.DrawerTitle = DrawerTitle;
|
|
4915
|
-
exports.DrawerTrigger = DrawerTrigger;
|
|
4916
5283
|
exports.DropdownMenu = DropdownMenu;
|
|
4917
5284
|
exports.DropdownMenuCheckboxItem = DropdownMenuCheckboxItem;
|
|
4918
5285
|
exports.DropdownMenuContent = DropdownMenuContent;
|
|
@@ -4947,10 +5314,19 @@ exports.IconButton = IconButton;
|
|
|
4947
5314
|
exports.InfoCard = InfoCard;
|
|
4948
5315
|
exports.Input = Input;
|
|
4949
5316
|
exports.Label = Label2;
|
|
4950
|
-
exports.ListOrGridViewToggle = ListOrGridViewToggle;
|
|
4951
5317
|
exports.LoadingOverlay = LoadingOverlay;
|
|
4952
5318
|
exports.MetricCard = MetricCard;
|
|
4953
5319
|
exports.MotionCollapsibleContent = MotionCollapsibleContent;
|
|
5320
|
+
exports.NavDrill = NavDrill;
|
|
5321
|
+
exports.NavDrillLevel = NavDrillLevel;
|
|
5322
|
+
exports.NavList = NavList;
|
|
5323
|
+
exports.NavListGroup = NavListGroup;
|
|
5324
|
+
exports.NavListItem = NavListItem;
|
|
5325
|
+
exports.NavListSeparator = NavListSeparator;
|
|
5326
|
+
exports.NavPanel = NavPanel;
|
|
5327
|
+
exports.NavRail = NavRail;
|
|
5328
|
+
exports.NavRailItem = NavRailItem;
|
|
5329
|
+
exports.NavSwitcher = NavSwitcher;
|
|
4954
5330
|
exports.NotFound = NotFound;
|
|
4955
5331
|
exports.PORTAL_ROOT_ID = PORTAL_ROOT_ID;
|
|
4956
5332
|
exports.Pagination = Pagination;
|
|
@@ -4967,8 +5343,6 @@ exports.RadioDropdown = RadioDropdown;
|
|
|
4967
5343
|
exports.RadioGroup = RadioGroup2;
|
|
4968
5344
|
exports.RadioGroupItem = RadioGroupItem;
|
|
4969
5345
|
exports.ResourceBadge = ResourceBadge;
|
|
4970
|
-
exports.ScrollArea = ScrollArea;
|
|
4971
|
-
exports.ScrollBar = ScrollBar;
|
|
4972
5346
|
exports.SearchBar = SearchBar;
|
|
4973
5347
|
exports.SectionHeading = SectionHeading;
|
|
4974
5348
|
exports.SegmentedControls = SegmentedControls;
|
|
@@ -5031,6 +5405,7 @@ exports.TooltipProvider = TooltipProvider;
|
|
|
5031
5405
|
exports.TooltipTrigger = TooltipTrigger;
|
|
5032
5406
|
exports.TruncatedDescription = TruncatedDescription;
|
|
5033
5407
|
exports.badgeVariants = badgeVariants;
|
|
5408
|
+
exports.blockClosedTypeahead = blockClosedTypeahead;
|
|
5034
5409
|
exports.buttonVariants = buttonVariants;
|
|
5035
5410
|
exports.reducer = reducer;
|
|
5036
5411
|
exports.scheduleHighlight = scheduleHighlight;
|