@ember-home/unbound-styleguide 0.0.15 → 0.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-A3FCZIQU.js → chunk-VFB4PT2U.js} +253 -171
- package/dist/forms.js +18 -17
- package/dist/index.d.ts +71 -11
- package/dist/index.js +3 -1
- package/dist/theme.css +14 -3
- package/package.json +1 -1
|
@@ -59,70 +59,159 @@ function useDebouncedCallback(callback, delay = 300) {
|
|
|
59
59
|
};
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
// src/@styleguide/icons/
|
|
62
|
+
// src/@styleguide/icons/intent-map.ts
|
|
63
63
|
import {
|
|
64
|
-
Plus,
|
|
65
64
|
X,
|
|
66
65
|
Trash2,
|
|
67
|
-
|
|
68
|
-
RotateCcw,
|
|
69
|
-
GripVertical,
|
|
66
|
+
Check,
|
|
70
67
|
ChevronLeft,
|
|
71
68
|
ChevronRight,
|
|
72
|
-
ChevronDown,
|
|
73
|
-
ChevronUp,
|
|
74
69
|
ChevronsLeft,
|
|
75
70
|
ChevronsRight,
|
|
71
|
+
ChevronDown,
|
|
72
|
+
ChevronUp,
|
|
76
73
|
ChevronsUpDown,
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
ArrowUp,
|
|
82
|
-
ArrowDown,
|
|
74
|
+
GripVertical,
|
|
75
|
+
Plus,
|
|
76
|
+
Save,
|
|
77
|
+
RotateCcw,
|
|
83
78
|
Search,
|
|
84
79
|
ListFilter,
|
|
85
80
|
Calendar,
|
|
86
81
|
CalendarClock,
|
|
87
82
|
MoreHorizontal,
|
|
88
83
|
Columns3,
|
|
84
|
+
ArrowUp,
|
|
85
|
+
ArrowDown,
|
|
89
86
|
PanelLeft,
|
|
90
|
-
PanelRight
|
|
87
|
+
PanelRight,
|
|
88
|
+
Loader2,
|
|
89
|
+
AlertCircle,
|
|
90
|
+
CheckCircle,
|
|
91
|
+
XCircle,
|
|
92
|
+
Info,
|
|
93
|
+
Clock,
|
|
94
|
+
Lock,
|
|
95
|
+
ExternalLink,
|
|
96
|
+
Download,
|
|
97
|
+
Upload
|
|
91
98
|
} from "lucide-react";
|
|
92
|
-
var
|
|
93
|
-
//
|
|
94
|
-
"add": Plus,
|
|
99
|
+
var intentMap = {
|
|
100
|
+
// Dismissal
|
|
95
101
|
"close": X,
|
|
96
102
|
"delete": Trash2,
|
|
103
|
+
// Selection
|
|
104
|
+
"selected": Check,
|
|
105
|
+
"complete": Check,
|
|
106
|
+
// Navigation
|
|
107
|
+
"navigate-back": ChevronLeft,
|
|
108
|
+
"navigate-forward": ChevronRight,
|
|
109
|
+
"pagination-first": ChevronsLeft,
|
|
110
|
+
"pagination-last": ChevronsRight,
|
|
111
|
+
// Disclosure
|
|
112
|
+
"expand": ChevronDown,
|
|
113
|
+
"collapse": ChevronUp,
|
|
114
|
+
"collapsed": ChevronRight,
|
|
115
|
+
"disclosure": ChevronsUpDown,
|
|
116
|
+
// Reordering
|
|
117
|
+
"reorder-up": ChevronUp,
|
|
118
|
+
"reorder-down": ChevronDown,
|
|
119
|
+
"drag-handle": GripVertical,
|
|
120
|
+
// Actions
|
|
121
|
+
"add": Plus,
|
|
97
122
|
"save": Save,
|
|
98
123
|
"reset": RotateCcw,
|
|
99
|
-
|
|
124
|
+
// Content
|
|
125
|
+
"search": Search,
|
|
126
|
+
"filter": ListFilter,
|
|
127
|
+
"calendar": Calendar,
|
|
128
|
+
"schedule": CalendarClock,
|
|
129
|
+
"more-actions": MoreHorizontal,
|
|
130
|
+
"column-settings": Columns3,
|
|
131
|
+
// Sorting
|
|
132
|
+
"sort-ascending": ArrowUp,
|
|
133
|
+
"sort-descending": ArrowDown,
|
|
134
|
+
// Panels
|
|
135
|
+
"panel-primary": PanelLeft,
|
|
136
|
+
"panel-secondary": PanelRight,
|
|
137
|
+
// Feedback
|
|
138
|
+
"loading": Loader2,
|
|
139
|
+
"warning": AlertCircle,
|
|
140
|
+
"success": CheckCircle,
|
|
141
|
+
"error": XCircle,
|
|
142
|
+
"info": Info,
|
|
143
|
+
"pending": Clock,
|
|
144
|
+
"locked": Lock,
|
|
145
|
+
// Utility
|
|
146
|
+
"external": ExternalLink,
|
|
147
|
+
"download": Download,
|
|
148
|
+
"upload": Upload
|
|
149
|
+
};
|
|
150
|
+
|
|
151
|
+
// src/@styleguide/icons/icon-map.ts
|
|
152
|
+
import {
|
|
153
|
+
Plus as Plus2,
|
|
154
|
+
X as X2,
|
|
155
|
+
Trash2 as Trash22,
|
|
156
|
+
Save as Save2,
|
|
157
|
+
RotateCcw as RotateCcw2,
|
|
158
|
+
GripVertical as GripVertical2,
|
|
159
|
+
ChevronLeft as ChevronLeft2,
|
|
160
|
+
ChevronRight as ChevronRight2,
|
|
161
|
+
ChevronDown as ChevronDown2,
|
|
162
|
+
ChevronUp as ChevronUp2,
|
|
163
|
+
ChevronsLeft as ChevronsLeft2,
|
|
164
|
+
ChevronsRight as ChevronsRight2,
|
|
165
|
+
ChevronsUpDown as ChevronsUpDown2,
|
|
166
|
+
Check as Check2,
|
|
167
|
+
Circle,
|
|
168
|
+
Loader2 as Loader22,
|
|
169
|
+
AlertCircle as AlertCircle2,
|
|
170
|
+
ArrowUp as ArrowUp2,
|
|
171
|
+
ArrowDown as ArrowDown2,
|
|
172
|
+
Search as Search2,
|
|
173
|
+
ListFilter as ListFilter2,
|
|
174
|
+
Calendar as Calendar2,
|
|
175
|
+
CalendarClock as CalendarClock2,
|
|
176
|
+
MoreHorizontal as MoreHorizontal2,
|
|
177
|
+
Columns3 as Columns32,
|
|
178
|
+
PanelLeft as PanelLeft2,
|
|
179
|
+
PanelRight as PanelRight2
|
|
180
|
+
} from "lucide-react";
|
|
181
|
+
var iconMap = {
|
|
182
|
+
// Actions
|
|
183
|
+
"add": Plus2,
|
|
184
|
+
"close": X2,
|
|
185
|
+
"delete": Trash22,
|
|
186
|
+
"save": Save2,
|
|
187
|
+
"reset": RotateCcw2,
|
|
188
|
+
"grip": GripVertical2,
|
|
100
189
|
// Navigation
|
|
101
|
-
"chevron-left":
|
|
102
|
-
"chevron-right":
|
|
103
|
-
"chevron-down":
|
|
104
|
-
"chevron-up":
|
|
105
|
-
"chevrons-left":
|
|
106
|
-
"chevrons-right":
|
|
107
|
-
"chevrons-up-down":
|
|
190
|
+
"chevron-left": ChevronLeft2,
|
|
191
|
+
"chevron-right": ChevronRight2,
|
|
192
|
+
"chevron-down": ChevronDown2,
|
|
193
|
+
"chevron-up": ChevronUp2,
|
|
194
|
+
"chevrons-left": ChevronsLeft2,
|
|
195
|
+
"chevrons-right": ChevronsRight2,
|
|
196
|
+
"chevrons-up-down": ChevronsUpDown2,
|
|
108
197
|
// Indicators
|
|
109
|
-
"check":
|
|
198
|
+
"check": Check2,
|
|
110
199
|
"circle": Circle,
|
|
111
|
-
"spinner":
|
|
112
|
-
"alert-circle":
|
|
200
|
+
"spinner": Loader22,
|
|
201
|
+
"alert-circle": AlertCircle2,
|
|
113
202
|
// Sorting
|
|
114
|
-
"sort-asc":
|
|
115
|
-
"sort-desc":
|
|
203
|
+
"sort-asc": ArrowUp2,
|
|
204
|
+
"sort-desc": ArrowDown2,
|
|
116
205
|
// Content
|
|
117
|
-
"search":
|
|
118
|
-
"filter":
|
|
119
|
-
"calendar":
|
|
120
|
-
"calendar-clock":
|
|
121
|
-
"more-horizontal":
|
|
122
|
-
"columns":
|
|
206
|
+
"search": Search2,
|
|
207
|
+
"filter": ListFilter2,
|
|
208
|
+
"calendar": Calendar2,
|
|
209
|
+
"calendar-clock": CalendarClock2,
|
|
210
|
+
"more-horizontal": MoreHorizontal2,
|
|
211
|
+
"columns": Columns32,
|
|
123
212
|
// Panels
|
|
124
|
-
"panel-left":
|
|
125
|
-
"panel-right":
|
|
213
|
+
"panel-left": PanelLeft2,
|
|
214
|
+
"panel-right": PanelRight2
|
|
126
215
|
};
|
|
127
216
|
|
|
128
217
|
// src/@styleguide/icons/Icon.tsx
|
|
@@ -136,8 +225,26 @@ var sizeClasses = {
|
|
|
136
225
|
xl: "size-6"
|
|
137
226
|
};
|
|
138
227
|
var Icon = forwardRef(
|
|
139
|
-
({
|
|
140
|
-
|
|
228
|
+
({ size = "md", label, className, ...props }, ref) => {
|
|
229
|
+
let LucideIcon;
|
|
230
|
+
const restProps = { ...props };
|
|
231
|
+
if ("intent" in restProps && restProps.intent) {
|
|
232
|
+
LucideIcon = intentMap[props.intent];
|
|
233
|
+
delete restProps.intent;
|
|
234
|
+
} else if ("glyph" in restProps && restProps.glyph) {
|
|
235
|
+
LucideIcon = props.glyph;
|
|
236
|
+
delete restProps.glyph;
|
|
237
|
+
} else if ("name" in restProps && restProps.name) {
|
|
238
|
+
if (process.env.NODE_ENV === "development") {
|
|
239
|
+
console.warn(
|
|
240
|
+
`[Icon] name="${restProps.name}" is deprecated. Use intent="..." instead.`
|
|
241
|
+
);
|
|
242
|
+
}
|
|
243
|
+
LucideIcon = iconMap[props.name];
|
|
244
|
+
delete restProps.name;
|
|
245
|
+
} else {
|
|
246
|
+
return null;
|
|
247
|
+
}
|
|
141
248
|
return /* @__PURE__ */ jsx(
|
|
142
249
|
LucideIcon,
|
|
143
250
|
{
|
|
@@ -147,7 +254,7 @@ var Icon = forwardRef(
|
|
|
147
254
|
"aria-hidden": label ? void 0 : true,
|
|
148
255
|
"aria-label": label,
|
|
149
256
|
role: label ? "img" : void 0,
|
|
150
|
-
...
|
|
257
|
+
...restProps
|
|
151
258
|
}
|
|
152
259
|
);
|
|
153
260
|
}
|
|
@@ -218,7 +325,7 @@ Button.displayName = "Button";
|
|
|
218
325
|
|
|
219
326
|
// src/@styleguide/actions/DropdownMenu/DropdownMenu.tsx
|
|
220
327
|
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
221
|
-
import {
|
|
328
|
+
import { Circle as Circle2 } from "lucide-react";
|
|
222
329
|
import { jsx as jsx3, jsxs } from "react/jsx-runtime";
|
|
223
330
|
function DropdownMenu({ ...props }) {
|
|
224
331
|
return /* @__PURE__ */ jsx3(DropdownMenuPrimitive.Root, { "data-slot": "dropdown-menu", ...props });
|
|
@@ -248,7 +355,7 @@ function DropdownMenuButtonTrigger({
|
|
|
248
355
|
"data-slot": "dropdown-menu-button-trigger",
|
|
249
356
|
children: [
|
|
250
357
|
children,
|
|
251
|
-
showChevron && /* @__PURE__ */ jsx3(
|
|
358
|
+
showChevron && /* @__PURE__ */ jsx3(Icon, { intent: "expand", className: "opacity-50" })
|
|
252
359
|
]
|
|
253
360
|
}
|
|
254
361
|
) });
|
|
@@ -313,7 +420,7 @@ function DropdownMenuCheckboxItem({
|
|
|
313
420
|
checked,
|
|
314
421
|
...props,
|
|
315
422
|
children: [
|
|
316
|
-
/* @__PURE__ */ jsx3("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsx3(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx3(
|
|
423
|
+
/* @__PURE__ */ jsx3("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsx3(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx3(Icon, { intent: "selected" }) }) }),
|
|
317
424
|
children
|
|
318
425
|
]
|
|
319
426
|
}
|
|
@@ -339,7 +446,7 @@ function DropdownMenuRadioItem({
|
|
|
339
446
|
),
|
|
340
447
|
...props,
|
|
341
448
|
children: [
|
|
342
|
-
/* @__PURE__ */ jsx3("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsx3(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx3(
|
|
449
|
+
/* @__PURE__ */ jsx3("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsx3(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx3(Icon, { glyph: Circle2, className: "size-2 fill-current" }) }) }),
|
|
343
450
|
children
|
|
344
451
|
]
|
|
345
452
|
}
|
|
@@ -415,7 +522,7 @@ function DropdownMenuSubTrigger({
|
|
|
415
522
|
...props,
|
|
416
523
|
children: [
|
|
417
524
|
children,
|
|
418
|
-
/* @__PURE__ */ jsx3(
|
|
525
|
+
/* @__PURE__ */ jsx3(Icon, { intent: "navigate-forward", className: "ml-auto" })
|
|
419
526
|
]
|
|
420
527
|
}
|
|
421
528
|
);
|
|
@@ -915,7 +1022,6 @@ function CollapsibleContent2({ ...props }) {
|
|
|
915
1022
|
|
|
916
1023
|
// src/@styleguide/layout-and-structure/UtilityBar/UtilityBar.tsx
|
|
917
1024
|
import * as React4 from "react";
|
|
918
|
-
import { ListFilter as ListFilter2, ChevronDown as ChevronDown2, X as X2 } from "lucide-react";
|
|
919
1025
|
import * as CollapsiblePrimitive2 from "@radix-ui/react-collapsible";
|
|
920
1026
|
import { Fragment as Fragment2, jsx as jsx14, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
921
1027
|
var FilterButton = React4.forwardRef(
|
|
@@ -931,7 +1037,7 @@ var FilterButton = React4.forwardRef(
|
|
|
931
1037
|
className: mergeClasses("relative", expanded && "bg-surface-default", className),
|
|
932
1038
|
...props,
|
|
933
1039
|
children: [
|
|
934
|
-
/* @__PURE__ */ jsx14(
|
|
1040
|
+
/* @__PURE__ */ jsx14(Icon, { intent: "filter" }),
|
|
935
1041
|
/* @__PURE__ */ jsx14("span", { children: label }),
|
|
936
1042
|
showIndicator && /* @__PURE__ */ jsxs4("span", { className: "absolute -top-0.5 -right-0.5 flex h-2.5 w-2.5", children: [
|
|
937
1043
|
/* @__PURE__ */ jsx14("span", { className: "animate-ping absolute inline-flex h-full w-full rounded-full bg-fill-brand/60" }),
|
|
@@ -948,7 +1054,7 @@ function SelectionControls({ count, onClear, actions }) {
|
|
|
948
1054
|
/* @__PURE__ */ jsxs4(DropdownMenu, { children: [
|
|
949
1055
|
/* @__PURE__ */ jsx14(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxs4(Button, { variant: "secondary", size: "lg", children: [
|
|
950
1056
|
"Actions",
|
|
951
|
-
/* @__PURE__ */ jsx14(
|
|
1057
|
+
/* @__PURE__ */ jsx14(Icon, { intent: "expand", className: "ml-1" })
|
|
952
1058
|
] }) }),
|
|
953
1059
|
/* @__PURE__ */ jsx14(DropdownMenuContent, { align: "start", children: actions })
|
|
954
1060
|
] }),
|
|
@@ -964,7 +1070,7 @@ function SelectionControls({ count, onClear, actions }) {
|
|
|
964
1070
|
onClick: onClear,
|
|
965
1071
|
className: "p-0.5 hover:bg-surface-default-secondary-hover rounded",
|
|
966
1072
|
"aria-label": "Clear selection",
|
|
967
|
-
children: /* @__PURE__ */ jsx14(
|
|
1073
|
+
children: /* @__PURE__ */ jsx14(Icon, { intent: "close", size: "sm" })
|
|
968
1074
|
}
|
|
969
1075
|
)
|
|
970
1076
|
] })
|
|
@@ -1064,7 +1170,6 @@ function UtilityBar({
|
|
|
1064
1170
|
// src/@styleguide/overlays/Dialog/Dialog.tsx
|
|
1065
1171
|
import * as React5 from "react";
|
|
1066
1172
|
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
1067
|
-
import { XIcon } from "lucide-react";
|
|
1068
1173
|
import { jsx as jsx15, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
1069
1174
|
function Dialog({ ...props }) {
|
|
1070
1175
|
return /* @__PURE__ */ jsx15(DialogPrimitive.Root, { "data-slot": "dialog", ...props });
|
|
@@ -1143,7 +1248,7 @@ function DialogContent({
|
|
|
1143
1248
|
"data-slot": "dialog-close",
|
|
1144
1249
|
className: "ring-offset-background focus:ring-default data-[state=open]:bg-fill-default-secondary data-[state=open]:text-default-tertiary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
1145
1250
|
children: [
|
|
1146
|
-
/* @__PURE__ */ jsx15(
|
|
1251
|
+
/* @__PURE__ */ jsx15(Icon, { intent: "close" }),
|
|
1147
1252
|
/* @__PURE__ */ jsx15("span", { className: "sr-only", children: "Close" })
|
|
1148
1253
|
]
|
|
1149
1254
|
}
|
|
@@ -1199,7 +1304,6 @@ function DialogDescription({ className, ...props }) {
|
|
|
1199
1304
|
// src/@styleguide/overlays/Popover/Popover.tsx
|
|
1200
1305
|
import * as React6 from "react";
|
|
1201
1306
|
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
1202
|
-
import { XIcon as XIcon2 } from "lucide-react";
|
|
1203
1307
|
import { jsx as jsx16, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
1204
1308
|
function Popover({ ...props }) {
|
|
1205
1309
|
return /* @__PURE__ */ jsx16(PopoverPrimitive.Root, { "data-slot": "popover", ...props });
|
|
@@ -1266,7 +1370,7 @@ function PopoverContent({
|
|
|
1266
1370
|
"data-slot": "popover-close",
|
|
1267
1371
|
className: "ring-offset-background focus:ring-default data-[state=open]:bg-fill-default-secondary data-[state=open]:text-default-tertiary absolute top-2 right-2 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
1268
1372
|
children: [
|
|
1269
|
-
/* @__PURE__ */ jsx16(
|
|
1373
|
+
/* @__PURE__ */ jsx16(Icon, { intent: "close" }),
|
|
1270
1374
|
/* @__PURE__ */ jsx16("span", { className: "sr-only", children: "Close" })
|
|
1271
1375
|
]
|
|
1272
1376
|
}
|
|
@@ -1295,7 +1399,6 @@ function PopoverArrow({ className, ...props }) {
|
|
|
1295
1399
|
// src/@styleguide/overlays/Sheet/Sheet.tsx
|
|
1296
1400
|
import * as React7 from "react";
|
|
1297
1401
|
import * as SheetPrimitive from "@radix-ui/react-dialog";
|
|
1298
|
-
import { XIcon as XIcon3, PanelRightIcon, PanelLeftIcon } from "lucide-react";
|
|
1299
1402
|
import { Fragment as Fragment3, jsx as jsx17, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
1300
1403
|
var SheetContext = React7.createContext({
|
|
1301
1404
|
side: "right",
|
|
@@ -1379,7 +1482,7 @@ function SheetContent({
|
|
|
1379
1482
|
[preventCloseOnOutsideClick, onPointerDownOutside]
|
|
1380
1483
|
);
|
|
1381
1484
|
const closeButton = showCloseButton && /* @__PURE__ */ jsx17(SheetPrimitive.Close, { asChild: true, children: /* @__PURE__ */ jsxs7(Button, { variant: "ghost", size: "icon-sm", className: "absolute top-3 right-3", children: [
|
|
1382
|
-
/* @__PURE__ */ jsx17(
|
|
1485
|
+
/* @__PURE__ */ jsx17(Icon, { intent: "close" }),
|
|
1383
1486
|
/* @__PURE__ */ jsx17("span", { className: "sr-only", children: "Close" })
|
|
1384
1487
|
] }) });
|
|
1385
1488
|
return /* @__PURE__ */ jsx17(SheetContext.Provider, { value: { side, detailsOpen, setDetailsOpen }, children: /* @__PURE__ */ jsx17(
|
|
@@ -1440,7 +1543,7 @@ function SheetHeader({ className, actions, showCloseButton = false, children, ..
|
|
|
1440
1543
|
actions,
|
|
1441
1544
|
actions && showCloseButton && /* @__PURE__ */ jsx17("div", { className: "mx-2 h-5 w-px bg-border" }),
|
|
1442
1545
|
showCloseButton && /* @__PURE__ */ jsx17(SheetPrimitive.Close, { asChild: true, children: /* @__PURE__ */ jsxs7(Button, { variant: "tertiary", size: "icon-sm", children: [
|
|
1443
|
-
/* @__PURE__ */ jsx17(
|
|
1546
|
+
/* @__PURE__ */ jsx17(Icon, { intent: "close" }),
|
|
1444
1547
|
/* @__PURE__ */ jsx17("span", { className: "sr-only", children: "Close" })
|
|
1445
1548
|
] }) })
|
|
1446
1549
|
] })
|
|
@@ -1491,7 +1594,6 @@ function SheetDescription({ className, ...props }) {
|
|
|
1491
1594
|
function SheetDetailsToggle({ className, ...props }) {
|
|
1492
1595
|
const { side, detailsOpen, setDetailsOpen } = useSheetContext();
|
|
1493
1596
|
const detailsSide = side === "left" ? "left" : "right";
|
|
1494
|
-
const Icon3 = detailsSide === "right" ? PanelRightIcon : PanelLeftIcon;
|
|
1495
1597
|
return /* @__PURE__ */ jsx17(
|
|
1496
1598
|
Button,
|
|
1497
1599
|
{
|
|
@@ -1503,7 +1605,7 @@ function SheetDetailsToggle({ className, ...props }) {
|
|
|
1503
1605
|
"aria-expanded": detailsOpen,
|
|
1504
1606
|
"aria-label": detailsOpen ? "Close details" : "Open details",
|
|
1505
1607
|
...props,
|
|
1506
|
-
children: /* @__PURE__ */ jsx17(
|
|
1608
|
+
children: /* @__PURE__ */ jsx17(Icon, { intent: detailsSide === "right" ? "panel-secondary" : "panel-primary" })
|
|
1507
1609
|
}
|
|
1508
1610
|
);
|
|
1509
1611
|
}
|
|
@@ -1533,7 +1635,6 @@ function SheetDetails({ className, children, ...props }) {
|
|
|
1533
1635
|
// src/@styleguide/overlays/PageSheet/PageSheet.tsx
|
|
1534
1636
|
import * as React8 from "react";
|
|
1535
1637
|
import * as DialogPrimitive2 from "@radix-ui/react-dialog";
|
|
1536
|
-
import { ChevronDown as ChevronDown3, ChevronLeft as ChevronLeft2, ChevronRight as ChevronRight2 } from "lucide-react";
|
|
1537
1638
|
import { jsx as jsx18, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
1538
1639
|
function PageSheet({
|
|
1539
1640
|
open,
|
|
@@ -1594,7 +1695,7 @@ function PageSheet({
|
|
|
1594
1695
|
),
|
|
1595
1696
|
"aria-label": "Close modal",
|
|
1596
1697
|
children: /* @__PURE__ */ jsxs8("span", { className: "flex items-center gap-2 text-white/80 hover:text-white transition-colors", children: [
|
|
1597
|
-
/* @__PURE__ */ jsx18("span", { className: "flex items-center justify-center w-6 h-6 rounded-full border-2 border-current", children: /* @__PURE__ */ jsx18(
|
|
1698
|
+
/* @__PURE__ */ jsx18("span", { className: "flex items-center justify-center w-6 h-6 rounded-full border-2 border-current", children: /* @__PURE__ */ jsx18(Icon, { intent: "expand" }) }),
|
|
1598
1699
|
/* @__PURE__ */ jsx18("span", { className: "text-sm font-medium tracking-wide", children: "CLOSE" })
|
|
1599
1700
|
] })
|
|
1600
1701
|
}
|
|
@@ -1735,7 +1836,7 @@ function PageSheetNav({
|
|
|
1735
1836
|
}
|
|
1736
1837
|
function PageSheetNavItem({
|
|
1737
1838
|
value,
|
|
1738
|
-
icon:
|
|
1839
|
+
icon: iconGlyph,
|
|
1739
1840
|
children,
|
|
1740
1841
|
disabled = false,
|
|
1741
1842
|
className
|
|
@@ -1761,7 +1862,7 @@ function PageSheetNavItem({
|
|
|
1761
1862
|
className
|
|
1762
1863
|
),
|
|
1763
1864
|
children: [
|
|
1764
|
-
|
|
1865
|
+
iconGlyph && /* @__PURE__ */ jsx18(Icon, { glyph: iconGlyph, className: "shrink-0" }),
|
|
1765
1866
|
/* @__PURE__ */ jsx18("span", { children })
|
|
1766
1867
|
]
|
|
1767
1868
|
}
|
|
@@ -1834,7 +1935,7 @@ function PageSheetWizardFooter({
|
|
|
1834
1935
|
onClick: onPrevious,
|
|
1835
1936
|
disabled: isFirstStep || previousDisabled || isValidating,
|
|
1836
1937
|
children: [
|
|
1837
|
-
/* @__PURE__ */ jsx18(
|
|
1938
|
+
/* @__PURE__ */ jsx18(Icon, { intent: "navigate-back", className: "mr-1" }),
|
|
1838
1939
|
prevLabel
|
|
1839
1940
|
]
|
|
1840
1941
|
}
|
|
@@ -1863,7 +1964,7 @@ function PageSheetWizardFooter({
|
|
|
1863
1964
|
disabled: nextDisabled || isValidating,
|
|
1864
1965
|
children: [
|
|
1865
1966
|
isValidating ? "Validating..." : nextLabel,
|
|
1866
|
-
/* @__PURE__ */ jsx18(
|
|
1967
|
+
/* @__PURE__ */ jsx18(Icon, { intent: "navigate-forward", className: "ml-1" })
|
|
1867
1968
|
]
|
|
1868
1969
|
}
|
|
1869
1970
|
)) })
|
|
@@ -1874,7 +1975,6 @@ function PageSheetWizardFooter({
|
|
|
1874
1975
|
|
|
1875
1976
|
// src/@styleguide/selection-and-inputs/Checkbox/Checkbox.tsx
|
|
1876
1977
|
import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
|
|
1877
|
-
import { CheckIcon as CheckIcon2 } from "lucide-react";
|
|
1878
1978
|
import { jsx as jsx19 } from "react/jsx-runtime";
|
|
1879
1979
|
function Checkbox({ className, ...props }) {
|
|
1880
1980
|
return /* @__PURE__ */ jsx19(
|
|
@@ -1891,7 +1991,7 @@ function Checkbox({ className, ...props }) {
|
|
|
1891
1991
|
{
|
|
1892
1992
|
"data-slot": "checkbox-indicator",
|
|
1893
1993
|
className: "grid place-content-center text-current transition-none",
|
|
1894
|
-
children: /* @__PURE__ */ jsx19(
|
|
1994
|
+
children: /* @__PURE__ */ jsx19(Icon, { intent: "selected", size: "sm" })
|
|
1895
1995
|
}
|
|
1896
1996
|
)
|
|
1897
1997
|
}
|
|
@@ -1924,7 +2024,6 @@ Input.displayName = "Input";
|
|
|
1924
2024
|
|
|
1925
2025
|
// src/@styleguide/selection-and-inputs/SearchInput/SearchInput.tsx
|
|
1926
2026
|
import * as React10 from "react";
|
|
1927
|
-
import { Search as Search2, X as X3 } from "lucide-react";
|
|
1928
2027
|
import { jsx as jsx21, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1929
2028
|
var sizeConfig = {
|
|
1930
2029
|
default: {
|
|
@@ -1990,13 +2089,13 @@ var SearchInput = React10.forwardRef(
|
|
|
1990
2089
|
const hasClearButton = showClear && value && !disabled;
|
|
1991
2090
|
return /* @__PURE__ */ jsxs9("div", { className: "relative", children: [
|
|
1992
2091
|
/* @__PURE__ */ jsx21(
|
|
1993
|
-
|
|
2092
|
+
Icon,
|
|
1994
2093
|
{
|
|
2094
|
+
intent: "search",
|
|
1995
2095
|
className: mergeClasses(
|
|
1996
2096
|
"absolute top-1/2 -translate-y-1/2 text-default-tertiary pointer-events-none",
|
|
1997
2097
|
config.searchIcon
|
|
1998
|
-
)
|
|
1999
|
-
"aria-hidden": "true"
|
|
2098
|
+
)
|
|
2000
2099
|
}
|
|
2001
2100
|
),
|
|
2002
2101
|
/* @__PURE__ */ jsx21(
|
|
@@ -2031,7 +2130,7 @@ var SearchInput = React10.forwardRef(
|
|
|
2031
2130
|
config.clearButton
|
|
2032
2131
|
),
|
|
2033
2132
|
"aria-label": "Clear search",
|
|
2034
|
-
children: /* @__PURE__ */ jsx21(
|
|
2133
|
+
children: /* @__PURE__ */ jsx21(Icon, { intent: "close", className: config.clearIcon })
|
|
2035
2134
|
}
|
|
2036
2135
|
)
|
|
2037
2136
|
] });
|
|
@@ -2186,7 +2285,6 @@ function Switch({ className, ...props }) {
|
|
|
2186
2285
|
|
|
2187
2286
|
// src/@styleguide/selection-and-inputs/Select/Select.tsx
|
|
2188
2287
|
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
2189
|
-
import { CheckIcon as CheckIcon3, ChevronDownIcon as ChevronDownIcon2, ChevronUpIcon } from "lucide-react";
|
|
2190
2288
|
import { jsx as jsx26, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
2191
2289
|
function Select({ ...props }) {
|
|
2192
2290
|
return /* @__PURE__ */ jsx26(SelectPrimitive.Root, { "data-slot": "select", ...props });
|
|
@@ -2215,7 +2313,7 @@ function SelectTrigger({
|
|
|
2215
2313
|
...props,
|
|
2216
2314
|
children: [
|
|
2217
2315
|
children,
|
|
2218
|
-
/* @__PURE__ */ jsx26(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx26(
|
|
2316
|
+
/* @__PURE__ */ jsx26(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx26(Icon, { intent: "expand", className: "opacity-50" }) })
|
|
2219
2317
|
]
|
|
2220
2318
|
}
|
|
2221
2319
|
);
|
|
@@ -2282,7 +2380,7 @@ function SelectItem({ className, children, ...props }) {
|
|
|
2282
2380
|
{
|
|
2283
2381
|
"data-slot": "select-item-indicator",
|
|
2284
2382
|
className: "absolute right-2 flex size-3.5 items-center justify-center",
|
|
2285
|
-
children: /* @__PURE__ */ jsx26(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx26(
|
|
2383
|
+
children: /* @__PURE__ */ jsx26(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx26(Icon, { intent: "selected" }) })
|
|
2286
2384
|
}
|
|
2287
2385
|
),
|
|
2288
2386
|
/* @__PURE__ */ jsx26(SelectPrimitive.ItemText, { children })
|
|
@@ -2313,7 +2411,7 @@ function SelectScrollUpButton({
|
|
|
2313
2411
|
className
|
|
2314
2412
|
),
|
|
2315
2413
|
...props,
|
|
2316
|
-
children: /* @__PURE__ */ jsx26(
|
|
2414
|
+
children: /* @__PURE__ */ jsx26(Icon, { intent: "collapse" })
|
|
2317
2415
|
}
|
|
2318
2416
|
);
|
|
2319
2417
|
}
|
|
@@ -2330,14 +2428,13 @@ function SelectScrollDownButton({
|
|
|
2330
2428
|
className
|
|
2331
2429
|
),
|
|
2332
2430
|
...props,
|
|
2333
|
-
children: /* @__PURE__ */ jsx26(
|
|
2431
|
+
children: /* @__PURE__ */ jsx26(Icon, { intent: "expand" })
|
|
2334
2432
|
}
|
|
2335
2433
|
);
|
|
2336
2434
|
}
|
|
2337
2435
|
|
|
2338
2436
|
// src/@styleguide/selection-and-inputs/Command/Command.tsx
|
|
2339
2437
|
import { Command as CommandPrimitive } from "cmdk";
|
|
2340
|
-
import { SearchIcon } from "lucide-react";
|
|
2341
2438
|
import { jsx as jsx27, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
2342
2439
|
function Command({ className, ...props }) {
|
|
2343
2440
|
return /* @__PURE__ */ jsx27(
|
|
@@ -2382,7 +2479,7 @@ function CommandInput({ className, ...props }) {
|
|
|
2382
2479
|
"data-slot": "command-input-wrapper",
|
|
2383
2480
|
className: "flex h-9 items-center gap-2 border-b px-3",
|
|
2384
2481
|
children: [
|
|
2385
|
-
/* @__PURE__ */ jsx27(
|
|
2482
|
+
/* @__PURE__ */ jsx27(Icon, { intent: "search", className: "shrink-0 opacity-50" }),
|
|
2386
2483
|
/* @__PURE__ */ jsx27(
|
|
2387
2484
|
CommandPrimitive.Input,
|
|
2388
2485
|
{
|
|
@@ -2473,7 +2570,6 @@ function CommandShortcut({ className, ...props }) {
|
|
|
2473
2570
|
|
|
2474
2571
|
// src/@styleguide/selection-and-inputs/Combobox/Combobox.tsx
|
|
2475
2572
|
import * as React13 from "react";
|
|
2476
|
-
import { CheckIcon as CheckIcon4, ChevronsUpDownIcon } from "lucide-react";
|
|
2477
2573
|
import { jsx as jsx28, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
2478
2574
|
function Combobox({
|
|
2479
2575
|
value,
|
|
@@ -2519,7 +2615,7 @@ function Combobox({
|
|
|
2519
2615
|
),
|
|
2520
2616
|
children: [
|
|
2521
2617
|
/* @__PURE__ */ jsx28("span", { className: "truncate", children: selectedOption?.label ?? placeholder }),
|
|
2522
|
-
/* @__PURE__ */ jsx28(
|
|
2618
|
+
/* @__PURE__ */ jsx28(Icon, { intent: "disclosure", className: "ml-2 shrink-0 opacity-50" })
|
|
2523
2619
|
]
|
|
2524
2620
|
}
|
|
2525
2621
|
) }),
|
|
@@ -2543,10 +2639,11 @@ function Combobox({
|
|
|
2543
2639
|
},
|
|
2544
2640
|
children: [
|
|
2545
2641
|
/* @__PURE__ */ jsx28(
|
|
2546
|
-
|
|
2642
|
+
Icon,
|
|
2547
2643
|
{
|
|
2644
|
+
intent: "selected",
|
|
2548
2645
|
className: mergeClasses(
|
|
2549
|
-
"mr-2
|
|
2646
|
+
"mr-2",
|
|
2550
2647
|
value === option.value ? "opacity-100" : "opacity-0"
|
|
2551
2648
|
)
|
|
2552
2649
|
}
|
|
@@ -2594,7 +2691,7 @@ function ComboboxTrigger({
|
|
|
2594
2691
|
...props,
|
|
2595
2692
|
children: [
|
|
2596
2693
|
children,
|
|
2597
|
-
/* @__PURE__ */ jsx28(
|
|
2694
|
+
/* @__PURE__ */ jsx28(Icon, { intent: "disclosure", className: "ml-2 shrink-0 opacity-50" })
|
|
2598
2695
|
]
|
|
2599
2696
|
}
|
|
2600
2697
|
) });
|
|
@@ -2645,10 +2742,11 @@ function ComboboxItem({
|
|
|
2645
2742
|
...props,
|
|
2646
2743
|
children: [
|
|
2647
2744
|
/* @__PURE__ */ jsx28(
|
|
2648
|
-
|
|
2745
|
+
Icon,
|
|
2649
2746
|
{
|
|
2747
|
+
intent: "selected",
|
|
2650
2748
|
className: mergeClasses(
|
|
2651
|
-
"mr-2
|
|
2749
|
+
"mr-2",
|
|
2652
2750
|
selected ? "opacity-100" : "opacity-0"
|
|
2653
2751
|
)
|
|
2654
2752
|
}
|
|
@@ -2660,10 +2758,9 @@ function ComboboxItem({
|
|
|
2660
2758
|
}
|
|
2661
2759
|
|
|
2662
2760
|
// src/@styleguide/selection-and-inputs/Calendar/Calendar.tsx
|
|
2663
|
-
import { ChevronLeft as ChevronLeft3, ChevronRight as ChevronRight3 } from "lucide-react";
|
|
2664
2761
|
import { DayPicker } from "react-day-picker";
|
|
2665
2762
|
import { jsx as jsx29 } from "react/jsx-runtime";
|
|
2666
|
-
function
|
|
2763
|
+
function Calendar3({
|
|
2667
2764
|
className,
|
|
2668
2765
|
classNames,
|
|
2669
2766
|
showOutsideDays = true,
|
|
@@ -2752,20 +2849,19 @@ function Calendar2({
|
|
|
2752
2849
|
components: {
|
|
2753
2850
|
Chevron: ({ orientation }) => {
|
|
2754
2851
|
if (orientation === "left") {
|
|
2755
|
-
return /* @__PURE__ */ jsx29(
|
|
2852
|
+
return /* @__PURE__ */ jsx29(Icon, { intent: "navigate-back" });
|
|
2756
2853
|
}
|
|
2757
|
-
return /* @__PURE__ */ jsx29(
|
|
2854
|
+
return /* @__PURE__ */ jsx29(Icon, { intent: "navigate-forward" });
|
|
2758
2855
|
}
|
|
2759
2856
|
},
|
|
2760
2857
|
...props
|
|
2761
2858
|
}
|
|
2762
2859
|
);
|
|
2763
2860
|
}
|
|
2764
|
-
|
|
2861
|
+
Calendar3.displayName = "Calendar";
|
|
2765
2862
|
|
|
2766
2863
|
// src/@styleguide/selection-and-inputs/DatePicker/DatePicker.tsx
|
|
2767
2864
|
import * as React14 from "react";
|
|
2768
|
-
import { CalendarIcon } from "lucide-react";
|
|
2769
2865
|
|
|
2770
2866
|
// src/@styleguide/selection-and-inputs/DatePicker/date-utils.ts
|
|
2771
2867
|
import { format, parse, isValid, isBefore, isAfter, startOfDay } from "date-fns";
|
|
@@ -2983,7 +3079,7 @@ function DatePicker({
|
|
|
2983
3079
|
),
|
|
2984
3080
|
tabIndex: -1,
|
|
2985
3081
|
"aria-label": "Open calendar",
|
|
2986
|
-
children: /* @__PURE__ */ jsx30(
|
|
3082
|
+
children: /* @__PURE__ */ jsx30(Icon, { intent: "calendar" })
|
|
2987
3083
|
}
|
|
2988
3084
|
) })
|
|
2989
3085
|
] }) }),
|
|
@@ -2996,7 +3092,7 @@ function DatePicker({
|
|
|
2996
3092
|
e.preventDefault();
|
|
2997
3093
|
},
|
|
2998
3094
|
children: /* @__PURE__ */ jsx30(
|
|
2999
|
-
|
|
3095
|
+
Calendar3,
|
|
3000
3096
|
{
|
|
3001
3097
|
mode: "single",
|
|
3002
3098
|
selected: value ?? void 0,
|
|
@@ -3017,7 +3113,6 @@ function DatePicker({
|
|
|
3017
3113
|
// src/@styleguide/selection-and-inputs/DateRangePicker/DateRangePicker.tsx
|
|
3018
3114
|
import * as React15 from "react";
|
|
3019
3115
|
import { isBefore as isBefore3, isAfter as isAfter3, startOfDay as startOfDay4 } from "date-fns";
|
|
3020
|
-
import { CalendarIcon as CalendarIcon2 } from "lucide-react";
|
|
3021
3116
|
|
|
3022
3117
|
// src/@styleguide/selection-and-inputs/DateRangePicker/date-utils.ts
|
|
3023
3118
|
import { format as format2, parse as parse2, isValid as isValid2, isBefore as isBefore2, isAfter as isAfter2, startOfDay as startOfDay2 } from "date-fns";
|
|
@@ -3710,7 +3805,7 @@ function DateRangePicker({
|
|
|
3710
3805
|
),
|
|
3711
3806
|
"aria-label": "Select date range",
|
|
3712
3807
|
children: [
|
|
3713
|
-
/* @__PURE__ */ jsx31(
|
|
3808
|
+
/* @__PURE__ */ jsx31(Icon, { intent: "calendar", className: "mr-2" }),
|
|
3714
3809
|
value.from || value.to ? formatDateRange(value) : /* @__PURE__ */ jsx31("span", { children: "Select date range" })
|
|
3715
3810
|
]
|
|
3716
3811
|
}
|
|
@@ -3732,7 +3827,7 @@ function DateRangePicker({
|
|
|
3732
3827
|
inputSection,
|
|
3733
3828
|
numberOfMonths === 2 ? /* @__PURE__ */ jsxs15("div", { className: "flex gap-4", children: [
|
|
3734
3829
|
/* @__PURE__ */ jsx31(
|
|
3735
|
-
|
|
3830
|
+
Calendar3,
|
|
3736
3831
|
{
|
|
3737
3832
|
mode: "range",
|
|
3738
3833
|
selected: toRdpRange(calendarSelection),
|
|
@@ -3747,7 +3842,7 @@ function DateRangePicker({
|
|
|
3747
3842
|
}
|
|
3748
3843
|
),
|
|
3749
3844
|
/* @__PURE__ */ jsx31(
|
|
3750
|
-
|
|
3845
|
+
Calendar3,
|
|
3751
3846
|
{
|
|
3752
3847
|
mode: "range",
|
|
3753
3848
|
selected: toRdpRange(calendarSelection),
|
|
@@ -3762,7 +3857,7 @@ function DateRangePicker({
|
|
|
3762
3857
|
}
|
|
3763
3858
|
)
|
|
3764
3859
|
] }) : /* @__PURE__ */ jsx31(
|
|
3765
|
-
|
|
3860
|
+
Calendar3,
|
|
3766
3861
|
{
|
|
3767
3862
|
mode: "range",
|
|
3768
3863
|
selected: toRdpRange(calendarSelection),
|
|
@@ -4417,7 +4512,6 @@ function RecurrenceScheduler({
|
|
|
4417
4512
|
}
|
|
4418
4513
|
|
|
4419
4514
|
// src/@styleguide/selection-and-inputs/recurrence-scheduler/SummaryDisplay.tsx
|
|
4420
|
-
import { CalendarClock as CalendarClock2, AlertCircle as AlertCircle2, Check as Check2 } from "lucide-react";
|
|
4421
4515
|
import clsx2 from "clsx";
|
|
4422
4516
|
import { jsx as jsx35, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
4423
4517
|
function SummaryDisplay({
|
|
@@ -4435,7 +4529,7 @@ function SummaryDisplay({
|
|
|
4435
4529
|
className
|
|
4436
4530
|
),
|
|
4437
4531
|
children: [
|
|
4438
|
-
isEnabled && isValid3 ? /* @__PURE__ */ jsx35(
|
|
4532
|
+
isEnabled && isValid3 ? /* @__PURE__ */ jsx35(Icon, { intent: "schedule", size: "lg", className: "text-link shrink-0 mt-0.5" }) : isEnabled && !isValid3 ? /* @__PURE__ */ jsx35(Icon, { intent: "warning", size: "lg", className: "text-critical shrink-0 mt-0.5" }) : /* @__PURE__ */ jsx35(Icon, { intent: "schedule", size: "lg", className: "text-default-tertiary shrink-0 mt-0.5" }),
|
|
4439
4533
|
/* @__PURE__ */ jsx35("div", { className: "flex-1 min-w-0", children: /* @__PURE__ */ jsx35(
|
|
4440
4534
|
"p",
|
|
4441
4535
|
{
|
|
@@ -4446,7 +4540,7 @@ function SummaryDisplay({
|
|
|
4446
4540
|
children: summary
|
|
4447
4541
|
}
|
|
4448
4542
|
) }),
|
|
4449
|
-
isEnabled && isValid3 && /* @__PURE__ */ jsx35(
|
|
4543
|
+
isEnabled && isValid3 && /* @__PURE__ */ jsx35(Icon, { intent: "complete", className: "text-green-600 shrink-0 mt-0.5" })
|
|
4450
4544
|
]
|
|
4451
4545
|
}
|
|
4452
4546
|
);
|
|
@@ -4454,15 +4548,12 @@ function SummaryDisplay({
|
|
|
4454
4548
|
|
|
4455
4549
|
// src/@styleguide/selection-and-inputs/filter-system/semantic/SemanticFilterController.tsx
|
|
4456
4550
|
import * as React19 from "react";
|
|
4457
|
-
import { RotateCcw as RotateCcw3, ListFilter as ListFilter3 } from "lucide-react";
|
|
4458
4551
|
|
|
4459
4552
|
// src/@styleguide/selection-and-inputs/filter-system/semantic/SemanticQuickFilters.tsx
|
|
4460
4553
|
import * as React17 from "react";
|
|
4461
|
-
import { Check as Check4, Plus as Plus2, RotateCcw as RotateCcw2, Trash2 as Trash22 } from "lucide-react";
|
|
4462
4554
|
|
|
4463
4555
|
// src/@styleguide/selection-and-inputs/filter-system/semantic/ValueInput.tsx
|
|
4464
4556
|
import * as React16 from "react";
|
|
4465
|
-
import { Check as Check3, ChevronDown as ChevronDown4 } from "lucide-react";
|
|
4466
4557
|
import { jsx as jsx36, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
4467
4558
|
function ValueInput({
|
|
4468
4559
|
uiHint,
|
|
@@ -4630,7 +4721,7 @@ function ComboboxInput2({
|
|
|
4630
4721
|
),
|
|
4631
4722
|
children: [
|
|
4632
4723
|
/* @__PURE__ */ jsx36("span", { className: "truncate", children: selectedOption?.label ?? "Select..." }),
|
|
4633
|
-
/* @__PURE__ */ jsx36(
|
|
4724
|
+
/* @__PURE__ */ jsx36(Icon, { intent: "expand", className: "ml-2 shrink-0 opacity-50" })
|
|
4634
4725
|
]
|
|
4635
4726
|
}
|
|
4636
4727
|
) }),
|
|
@@ -4649,10 +4740,11 @@ function ComboboxInput2({
|
|
|
4649
4740
|
className: "text-xs",
|
|
4650
4741
|
children: [
|
|
4651
4742
|
/* @__PURE__ */ jsx36(
|
|
4652
|
-
|
|
4743
|
+
Icon,
|
|
4653
4744
|
{
|
|
4745
|
+
intent: "selected",
|
|
4654
4746
|
className: mergeClasses(
|
|
4655
|
-
"mr-2
|
|
4747
|
+
"mr-2",
|
|
4656
4748
|
value === opt.value ? "opacity-100" : "opacity-0"
|
|
4657
4749
|
)
|
|
4658
4750
|
}
|
|
@@ -4700,7 +4792,7 @@ function CheckboxListInput({
|
|
|
4700
4792
|
),
|
|
4701
4793
|
children: [
|
|
4702
4794
|
/* @__PURE__ */ jsx36("span", { className: "truncate", children: displayLabel }),
|
|
4703
|
-
/* @__PURE__ */ jsx36(
|
|
4795
|
+
/* @__PURE__ */ jsx36(Icon, { intent: "expand", className: "ml-2 shrink-0 opacity-50" })
|
|
4704
4796
|
]
|
|
4705
4797
|
}
|
|
4706
4798
|
) }),
|
|
@@ -4716,10 +4808,11 @@ function CheckboxListInput({
|
|
|
4716
4808
|
className: "text-xs",
|
|
4717
4809
|
children: [
|
|
4718
4810
|
/* @__PURE__ */ jsx36(
|
|
4719
|
-
|
|
4811
|
+
Icon,
|
|
4720
4812
|
{
|
|
4813
|
+
intent: "selected",
|
|
4721
4814
|
className: mergeClasses(
|
|
4722
|
-
"mr-2
|
|
4815
|
+
"mr-2",
|
|
4723
4816
|
selectedValues.includes(opt.value) ? "opacity-100" : "opacity-0"
|
|
4724
4817
|
)
|
|
4725
4818
|
}
|
|
@@ -4769,7 +4862,7 @@ function MultiComboboxInput({
|
|
|
4769
4862
|
),
|
|
4770
4863
|
children: [
|
|
4771
4864
|
/* @__PURE__ */ jsx36("span", { className: "truncate", children: displayLabel }),
|
|
4772
|
-
/* @__PURE__ */ jsx36(
|
|
4865
|
+
/* @__PURE__ */ jsx36(Icon, { intent: "expand", className: "ml-2 shrink-0 opacity-50" })
|
|
4773
4866
|
]
|
|
4774
4867
|
}
|
|
4775
4868
|
) }),
|
|
@@ -4785,10 +4878,11 @@ function MultiComboboxInput({
|
|
|
4785
4878
|
className: "text-xs",
|
|
4786
4879
|
children: [
|
|
4787
4880
|
/* @__PURE__ */ jsx36(
|
|
4788
|
-
|
|
4881
|
+
Icon,
|
|
4789
4882
|
{
|
|
4883
|
+
intent: "selected",
|
|
4790
4884
|
className: mergeClasses(
|
|
4791
|
-
"mr-2
|
|
4885
|
+
"mr-2",
|
|
4792
4886
|
selectedValues.includes(opt.value) ? "opacity-100" : "opacity-0"
|
|
4793
4887
|
)
|
|
4794
4888
|
}
|
|
@@ -5558,7 +5652,7 @@ function QuickFilterDropdown({
|
|
|
5558
5652
|
hasValue ? "text-default-tertiary hover:text-default hover:bg-surface-default-secondary-hover" : "text-default-tertiary/50 cursor-not-allowed"
|
|
5559
5653
|
),
|
|
5560
5654
|
children: [
|
|
5561
|
-
/* @__PURE__ */ jsx37(
|
|
5655
|
+
/* @__PURE__ */ jsx37(Icon, { intent: "reset", size: "xs" }),
|
|
5562
5656
|
"Reset filter"
|
|
5563
5657
|
]
|
|
5564
5658
|
}
|
|
@@ -5573,7 +5667,7 @@ function QuickFilterDropdown({
|
|
|
5573
5667
|
},
|
|
5574
5668
|
className: "flex items-center gap-1 px-2 py-1 rounded text-xs text-default-tertiary hover:text-default hover:bg-surface-default-secondary-hover",
|
|
5575
5669
|
children: [
|
|
5576
|
-
/* @__PURE__ */ jsx37(
|
|
5670
|
+
/* @__PURE__ */ jsx37(Icon, { intent: "delete", size: "xs" }),
|
|
5577
5671
|
"Remove filter"
|
|
5578
5672
|
]
|
|
5579
5673
|
}
|
|
@@ -5590,10 +5684,11 @@ function QuickFilterDropdown({
|
|
|
5590
5684
|
className: "text-xs",
|
|
5591
5685
|
children: [
|
|
5592
5686
|
/* @__PURE__ */ jsx37(
|
|
5593
|
-
|
|
5687
|
+
Icon,
|
|
5594
5688
|
{
|
|
5689
|
+
intent: "selected",
|
|
5595
5690
|
className: mergeClasses(
|
|
5596
|
-
"mr-2
|
|
5691
|
+
"mr-2",
|
|
5597
5692
|
selectedValues.includes(opt.value) ? "opacity-100" : "opacity-0"
|
|
5598
5693
|
)
|
|
5599
5694
|
}
|
|
@@ -5623,7 +5718,7 @@ function QuickFilterDropdown({
|
|
|
5623
5718
|
hasValue ? "text-default-tertiary hover:text-default hover:bg-surface-default-secondary-hover" : "text-default-tertiary/50 cursor-not-allowed"
|
|
5624
5719
|
),
|
|
5625
5720
|
children: [
|
|
5626
|
-
/* @__PURE__ */ jsx37(
|
|
5721
|
+
/* @__PURE__ */ jsx37(Icon, { intent: "reset", size: "xs" }),
|
|
5627
5722
|
"Reset filter"
|
|
5628
5723
|
]
|
|
5629
5724
|
}
|
|
@@ -5638,7 +5733,7 @@ function QuickFilterDropdown({
|
|
|
5638
5733
|
},
|
|
5639
5734
|
className: "flex items-center gap-1 px-2 py-1 rounded text-xs text-default-tertiary hover:text-default hover:bg-surface-default-secondary-hover",
|
|
5640
5735
|
children: [
|
|
5641
|
-
/* @__PURE__ */ jsx37(
|
|
5736
|
+
/* @__PURE__ */ jsx37(Icon, { intent: "delete", size: "xs" }),
|
|
5642
5737
|
"Remove filter"
|
|
5643
5738
|
]
|
|
5644
5739
|
}
|
|
@@ -5655,10 +5750,11 @@ function QuickFilterDropdown({
|
|
|
5655
5750
|
className: "text-xs",
|
|
5656
5751
|
children: [
|
|
5657
5752
|
/* @__PURE__ */ jsx37(
|
|
5658
|
-
|
|
5753
|
+
Icon,
|
|
5659
5754
|
{
|
|
5755
|
+
intent: "selected",
|
|
5660
5756
|
className: mergeClasses(
|
|
5661
|
-
"mr-2
|
|
5757
|
+
"mr-2",
|
|
5662
5758
|
value === opt.value ? "opacity-100" : "opacity-0"
|
|
5663
5759
|
)
|
|
5664
5760
|
}
|
|
@@ -5687,7 +5783,7 @@ function QuickFilterDropdown({
|
|
|
5687
5783
|
hasValue ? "text-default-tertiary hover:text-default hover:bg-surface-default-secondary-hover" : "text-default-tertiary/50 cursor-not-allowed"
|
|
5688
5784
|
),
|
|
5689
5785
|
children: [
|
|
5690
|
-
/* @__PURE__ */ jsx37(
|
|
5786
|
+
/* @__PURE__ */ jsx37(Icon, { intent: "reset", size: "xs" }),
|
|
5691
5787
|
"Reset filter"
|
|
5692
5788
|
]
|
|
5693
5789
|
}
|
|
@@ -5702,7 +5798,7 @@ function QuickFilterDropdown({
|
|
|
5702
5798
|
},
|
|
5703
5799
|
className: "flex items-center gap-1 px-2 py-1 rounded text-xs text-default-tertiary hover:text-default hover:bg-surface-default-secondary-hover",
|
|
5704
5800
|
children: [
|
|
5705
|
-
/* @__PURE__ */ jsx37(
|
|
5801
|
+
/* @__PURE__ */ jsx37(Icon, { intent: "delete", size: "xs" }),
|
|
5706
5802
|
"Remove filter"
|
|
5707
5803
|
]
|
|
5708
5804
|
}
|
|
@@ -5767,7 +5863,7 @@ function AddFilterButton({
|
|
|
5767
5863
|
size: "sm",
|
|
5768
5864
|
className: "h-8 w-8 p-0 text-default-tertiary",
|
|
5769
5865
|
"aria-label": "Add filter",
|
|
5770
|
-
children: /* @__PURE__ */ jsx37(
|
|
5866
|
+
children: /* @__PURE__ */ jsx37(Icon, { intent: "add" })
|
|
5771
5867
|
}
|
|
5772
5868
|
) }),
|
|
5773
5869
|
/* @__PURE__ */ jsx37(PopoverPortal, { children: /* @__PURE__ */ jsx37(PopoverContent, { className: "w-48 p-0", align: "start", children: /* @__PURE__ */ jsxs21(Command, { children: [
|
|
@@ -5798,7 +5894,6 @@ function AddFilterButton({
|
|
|
5798
5894
|
|
|
5799
5895
|
// src/@styleguide/selection-and-inputs/filter-system/semantic/SemanticAdvancedFilterBuilder.tsx
|
|
5800
5896
|
import * as React18 from "react";
|
|
5801
|
-
import { Plus as Plus3, Trash2 as Trash23, Save as Save2 } from "lucide-react";
|
|
5802
5897
|
import { jsx as jsx38, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
5803
5898
|
function SemanticAdvancedFilterBuilder({
|
|
5804
5899
|
fields,
|
|
@@ -5882,7 +5977,7 @@ function SemanticAdvancedFilterBuilder({
|
|
|
5882
5977
|
onClick: handleAddFilter,
|
|
5883
5978
|
disabled: fields.length === 0,
|
|
5884
5979
|
children: [
|
|
5885
|
-
/* @__PURE__ */ jsx38(
|
|
5980
|
+
/* @__PURE__ */ jsx38(Icon, { intent: "add", size: "sm" }),
|
|
5886
5981
|
"Add filter"
|
|
5887
5982
|
]
|
|
5888
5983
|
}
|
|
@@ -5906,7 +6001,7 @@ function SemanticAdvancedFilterBuilder({
|
|
|
5906
6001
|
className: "h-8 text-xs gap-1",
|
|
5907
6002
|
onClick: onSaveAsView,
|
|
5908
6003
|
children: [
|
|
5909
|
-
/* @__PURE__ */ jsx38(
|
|
6004
|
+
/* @__PURE__ */ jsx38(Icon, { intent: "save", size: "sm" }),
|
|
5910
6005
|
"Save as View"
|
|
5911
6006
|
]
|
|
5912
6007
|
}
|
|
@@ -5966,7 +6061,7 @@ function FilterRow({
|
|
|
5966
6061
|
className: "h-8 w-8 p-0 text-default-tertiary hover:text-critical md:hidden",
|
|
5967
6062
|
onClick: onRemove,
|
|
5968
6063
|
"aria-label": "Remove filter",
|
|
5969
|
-
children: /* @__PURE__ */ jsx38(
|
|
6064
|
+
children: /* @__PURE__ */ jsx38(Icon, { intent: "delete" })
|
|
5970
6065
|
}
|
|
5971
6066
|
)
|
|
5972
6067
|
] }),
|
|
@@ -6013,7 +6108,7 @@ function FilterRow({
|
|
|
6013
6108
|
className: "hidden md:flex h-8 w-8 p-0 text-default-tertiary hover:text-critical",
|
|
6014
6109
|
onClick: onRemove,
|
|
6015
6110
|
"aria-label": "Remove filter",
|
|
6016
|
-
children: /* @__PURE__ */ jsx38(
|
|
6111
|
+
children: /* @__PURE__ */ jsx38(Icon, { intent: "delete" })
|
|
6017
6112
|
}
|
|
6018
6113
|
)
|
|
6019
6114
|
] });
|
|
@@ -6156,7 +6251,7 @@ function SemanticFilterController({
|
|
|
6156
6251
|
className: "h-8 text-xs text-default-tertiary gap-1.5",
|
|
6157
6252
|
onClick: handleResetAll,
|
|
6158
6253
|
children: [
|
|
6159
|
-
/* @__PURE__ */ jsx39(
|
|
6254
|
+
/* @__PURE__ */ jsx39(Icon, { intent: "reset", size: "sm" }),
|
|
6160
6255
|
"Reset all"
|
|
6161
6256
|
]
|
|
6162
6257
|
}
|
|
@@ -6169,7 +6264,7 @@ function SemanticFilterController({
|
|
|
6169
6264
|
className: "h-8 text-xs text-default-secondary gap-1.5",
|
|
6170
6265
|
onClick: () => setAdvancedOpen(true),
|
|
6171
6266
|
children: [
|
|
6172
|
-
/* @__PURE__ */ jsx39(
|
|
6267
|
+
/* @__PURE__ */ jsx39(Icon, { intent: "filter", size: "sm" }),
|
|
6173
6268
|
"Advanced filters"
|
|
6174
6269
|
]
|
|
6175
6270
|
}
|
|
@@ -6341,7 +6436,6 @@ function TabsContent({ className, ...props }) {
|
|
|
6341
6436
|
import * as React21 from "react";
|
|
6342
6437
|
import { Slot as Slot3 } from "@radix-ui/react-slot";
|
|
6343
6438
|
import { cva as cva4 } from "class-variance-authority";
|
|
6344
|
-
import { PanelLeftIcon as PanelLeftIcon2, X as X5 } from "lucide-react";
|
|
6345
6439
|
import * as TooltipPrimitive2 from "@radix-ui/react-tooltip";
|
|
6346
6440
|
import { Fragment as Fragment6, jsx as jsx41, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
6347
6441
|
var SIDEBAR_COOKIE_NAME = "sidebar_state";
|
|
@@ -6476,7 +6570,7 @@ function Sidebar({
|
|
|
6476
6570
|
onClick: () => setOpenMobile(false),
|
|
6477
6571
|
className: "size-8",
|
|
6478
6572
|
"aria-label": "Close menu",
|
|
6479
|
-
children: /* @__PURE__ */ jsx41(
|
|
6573
|
+
children: /* @__PURE__ */ jsx41(Icon, { intent: "close" })
|
|
6480
6574
|
}
|
|
6481
6575
|
)
|
|
6482
6576
|
] }),
|
|
@@ -6559,7 +6653,7 @@ function SidebarTrigger({
|
|
|
6559
6653
|
},
|
|
6560
6654
|
...props,
|
|
6561
6655
|
children: [
|
|
6562
|
-
/* @__PURE__ */ jsx41(
|
|
6656
|
+
/* @__PURE__ */ jsx41(Icon, { intent: "panel-primary" }),
|
|
6563
6657
|
/* @__PURE__ */ jsx41("span", { className: "sr-only", children: "Toggle Sidebar" })
|
|
6564
6658
|
]
|
|
6565
6659
|
}
|
|
@@ -7007,7 +7101,6 @@ import { useMemo as useMemo10 } from "react";
|
|
|
7007
7101
|
import {
|
|
7008
7102
|
flexRender as flexRender2
|
|
7009
7103
|
} from "@tanstack/react-table";
|
|
7010
|
-
import { ArrowUp as ArrowUp2, ArrowDown as ArrowDown2, Loader2 as Loader23 } from "lucide-react";
|
|
7011
7104
|
|
|
7012
7105
|
// src/@styleguide/tables/Table/Table.tsx
|
|
7013
7106
|
import { jsx as jsx42 } from "react/jsx-runtime";
|
|
@@ -7088,7 +7181,6 @@ function formatColumnName(columnId) {
|
|
|
7088
7181
|
|
|
7089
7182
|
// src/@styleguide/tables/DataTable/components/DataTableRightRail.tsx
|
|
7090
7183
|
import { useState as useState14 } from "react";
|
|
7091
|
-
import { MoreHorizontal as MoreHorizontal2, Columns3 as Columns32, GripVertical as GripVertical2 } from "lucide-react";
|
|
7092
7184
|
import {
|
|
7093
7185
|
DndContext,
|
|
7094
7186
|
closestCenter,
|
|
@@ -7118,7 +7210,7 @@ function RowActionsCell({ row, actions }) {
|
|
|
7118
7210
|
onClick: (e) => e.stopPropagation(),
|
|
7119
7211
|
children: [
|
|
7120
7212
|
/* @__PURE__ */ jsx43("span", { className: "sr-only", children: "Open menu" }),
|
|
7121
|
-
/* @__PURE__ */ jsx43(
|
|
7213
|
+
/* @__PURE__ */ jsx43(Icon, { intent: "more-actions" })
|
|
7122
7214
|
]
|
|
7123
7215
|
}
|
|
7124
7216
|
) }),
|
|
@@ -7168,7 +7260,7 @@ function SortableColumnItem({ id, column, disabled }) {
|
|
|
7168
7260
|
className: "cursor-grab touch-none text-default-tertiary hover:text-default",
|
|
7169
7261
|
...attributes,
|
|
7170
7262
|
...listeners,
|
|
7171
|
-
children: /* @__PURE__ */ jsx43(
|
|
7263
|
+
children: /* @__PURE__ */ jsx43(Icon, { intent: "drag-handle" })
|
|
7172
7264
|
}
|
|
7173
7265
|
),
|
|
7174
7266
|
/* @__PURE__ */ jsx43(
|
|
@@ -7218,7 +7310,7 @@ function ColumnVisibilityCell({
|
|
|
7218
7310
|
size: "sm",
|
|
7219
7311
|
className: "h-8 w-8 p-0",
|
|
7220
7312
|
"aria-label": "Toggle column visibility",
|
|
7221
|
-
children: /* @__PURE__ */ jsx43(
|
|
7313
|
+
children: /* @__PURE__ */ jsx43(Icon, { intent: "column-settings" })
|
|
7222
7314
|
}
|
|
7223
7315
|
) }),
|
|
7224
7316
|
/* @__PURE__ */ jsxs25(DropdownMenuContent, { align: "end", className: "w-[180px]", children: [
|
|
@@ -7281,7 +7373,7 @@ function SortableColumnVisibilityDropdown({
|
|
|
7281
7373
|
size: "sm",
|
|
7282
7374
|
className: "h-8 w-8 p-0",
|
|
7283
7375
|
"aria-label": "Toggle column visibility and reorder",
|
|
7284
|
-
children: /* @__PURE__ */ jsx43(
|
|
7376
|
+
children: /* @__PURE__ */ jsx43(Icon, { intent: "column-settings" })
|
|
7285
7377
|
}
|
|
7286
7378
|
) }),
|
|
7287
7379
|
/* @__PURE__ */ jsxs25(DropdownMenuContent, { align: "end", className: "w-[220px]", children: [
|
|
@@ -7410,9 +7502,6 @@ function TruncatedCell({
|
|
|
7410
7502
|
] });
|
|
7411
7503
|
}
|
|
7412
7504
|
|
|
7413
|
-
// src/@styleguide/tables/DataTable/components/MobileCardView.tsx
|
|
7414
|
-
import { Loader2 as Loader22 } from "lucide-react";
|
|
7415
|
-
|
|
7416
7505
|
// src/@styleguide/tables/DataTable/components/MobileCardRow.tsx
|
|
7417
7506
|
import { flexRender } from "@tanstack/react-table";
|
|
7418
7507
|
import { jsx as jsx46, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
@@ -7604,7 +7693,7 @@ function MobileCardView({
|
|
|
7604
7693
|
const rows = table.getRowModel().rows;
|
|
7605
7694
|
const hasActions = !!rowActions;
|
|
7606
7695
|
return /* @__PURE__ */ jsxs30("div", { className: "relative", children: [
|
|
7607
|
-
isFetching && !isLoading && /* @__PURE__ */ jsx48("div", { className: "absolute top-2 right-2 z-20", children: /* @__PURE__ */ jsx48(
|
|
7696
|
+
isFetching && !isLoading && /* @__PURE__ */ jsx48("div", { className: "absolute top-2 right-2 z-20", children: /* @__PURE__ */ jsx48(Icon, { intent: "loading", className: "animate-spin text-default-tertiary" }) }),
|
|
7608
7697
|
/* @__PURE__ */ jsx48(
|
|
7609
7698
|
"div",
|
|
7610
7699
|
{
|
|
@@ -7665,8 +7754,8 @@ function DataTableColumnHeader({
|
|
|
7665
7754
|
children: [
|
|
7666
7755
|
title,
|
|
7667
7756
|
/* @__PURE__ */ jsxs31("span", { className: "ml-2 w-4 h-4 inline-flex items-center justify-center", children: [
|
|
7668
|
-
sorted === "asc" && /* @__PURE__ */ jsx49(
|
|
7669
|
-
sorted === "desc" && /* @__PURE__ */ jsx49(
|
|
7757
|
+
sorted === "asc" && /* @__PURE__ */ jsx49(Icon, { intent: "sort-ascending" }),
|
|
7758
|
+
sorted === "desc" && /* @__PURE__ */ jsx49(Icon, { intent: "sort-descending" })
|
|
7670
7759
|
] })
|
|
7671
7760
|
]
|
|
7672
7761
|
}
|
|
@@ -7884,7 +7973,7 @@ function DataTableRenderer({
|
|
|
7884
7973
|
),
|
|
7885
7974
|
children: [
|
|
7886
7975
|
toolbarSlot && /* @__PURE__ */ jsx49("div", { className: mergeClasses("mb-4", fullWidth && "mx-6"), children: toolbarSlot }),
|
|
7887
|
-
isFetching && !isLoading && /* @__PURE__ */ jsx49("div", { className: "absolute top-2 right-2 z-20", children: /* @__PURE__ */ jsx49(
|
|
7976
|
+
isFetching && !isLoading && /* @__PURE__ */ jsx49("div", { className: "absolute top-2 right-2 z-20", children: /* @__PURE__ */ jsx49(Icon, { intent: "loading", className: "animate-spin text-default-tertiary" }) }),
|
|
7888
7977
|
/* @__PURE__ */ jsx49("div", { className: mergeClasses(
|
|
7889
7978
|
"overflow-x-auto",
|
|
7890
7979
|
isFetching && !isLoading && "opacity-50 transition-opacity"
|
|
@@ -7938,12 +8027,6 @@ function DataTableRenderer({
|
|
|
7938
8027
|
var DataTable = DataTableRenderer;
|
|
7939
8028
|
|
|
7940
8029
|
// src/@styleguide/tables/DataTable/DataTablePagination.tsx
|
|
7941
|
-
import {
|
|
7942
|
-
ChevronLeft as ChevronLeft4,
|
|
7943
|
-
ChevronRight as ChevronRight4,
|
|
7944
|
-
ChevronsLeft as ChevronsLeft2,
|
|
7945
|
-
ChevronsRight as ChevronsRight2
|
|
7946
|
-
} from "lucide-react";
|
|
7947
8030
|
import { jsx as jsx50, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
7948
8031
|
function DataTablePagination({
|
|
7949
8032
|
table,
|
|
@@ -7986,7 +8069,7 @@ function DataTablePagination({
|
|
|
7986
8069
|
onClick: () => table.setPageIndex(0),
|
|
7987
8070
|
disabled: !table.getCanPreviousPage(),
|
|
7988
8071
|
"aria-label": "Go to first page",
|
|
7989
|
-
children: /* @__PURE__ */ jsx50(
|
|
8072
|
+
children: /* @__PURE__ */ jsx50(Icon, { intent: "pagination-first" })
|
|
7990
8073
|
}
|
|
7991
8074
|
),
|
|
7992
8075
|
/* @__PURE__ */ jsxs32(
|
|
@@ -7998,7 +8081,7 @@ function DataTablePagination({
|
|
|
7998
8081
|
disabled: !table.getCanPreviousPage(),
|
|
7999
8082
|
"aria-label": "Go to previous page",
|
|
8000
8083
|
children: [
|
|
8001
|
-
/* @__PURE__ */ jsx50(
|
|
8084
|
+
/* @__PURE__ */ jsx50(Icon, { intent: "navigate-back" }),
|
|
8002
8085
|
/* @__PURE__ */ jsx50("span", { className: "hidden sm:inline ml-1", children: "Previous" })
|
|
8003
8086
|
]
|
|
8004
8087
|
}
|
|
@@ -8019,7 +8102,7 @@ function DataTablePagination({
|
|
|
8019
8102
|
"aria-label": "Go to next page",
|
|
8020
8103
|
children: [
|
|
8021
8104
|
/* @__PURE__ */ jsx50("span", { className: "hidden sm:inline mr-1", children: "Next" }),
|
|
8022
|
-
/* @__PURE__ */ jsx50(
|
|
8105
|
+
/* @__PURE__ */ jsx50(Icon, { intent: "navigate-forward" })
|
|
8023
8106
|
]
|
|
8024
8107
|
}
|
|
8025
8108
|
),
|
|
@@ -8031,7 +8114,7 @@ function DataTablePagination({
|
|
|
8031
8114
|
onClick: () => table.setPageIndex(pageCount - 1),
|
|
8032
8115
|
disabled: !table.getCanNextPage(),
|
|
8033
8116
|
"aria-label": "Go to last page",
|
|
8034
|
-
children: /* @__PURE__ */ jsx50(
|
|
8117
|
+
children: /* @__PURE__ */ jsx50(Icon, { intent: "pagination-last" })
|
|
8035
8118
|
}
|
|
8036
8119
|
)
|
|
8037
8120
|
] }),
|
|
@@ -8856,7 +8939,6 @@ function useStableViewConfig(factory) {
|
|
|
8856
8939
|
|
|
8857
8940
|
// src/@styleguide/filters/RuleBuilder/RuleBuilder.tsx
|
|
8858
8941
|
import { useState as useState19, useCallback as useCallback16, useMemo as useMemo15 } from "react";
|
|
8859
|
-
import { Plus as Plus4 } from "lucide-react";
|
|
8860
8942
|
|
|
8861
8943
|
// src/@styleguide/filters/RuleBuilder/operators.ts
|
|
8862
8944
|
var OPERATORS2 = {
|
|
@@ -8904,11 +8986,9 @@ function getOperatorConfig(operatorId) {
|
|
|
8904
8986
|
|
|
8905
8987
|
// src/@styleguide/filters/RuleRow/RuleRow.tsx
|
|
8906
8988
|
import { useCallback as useCallback15 } from "react";
|
|
8907
|
-
import { X as X6 } from "lucide-react";
|
|
8908
8989
|
|
|
8909
8990
|
// src/@styleguide/filters/RuleBuilder/components/MultiSelect.tsx
|
|
8910
8991
|
import { useState as useState18, useCallback as useCallback14, useMemo as useMemo14 } from "react";
|
|
8911
|
-
import { Check as Check5, ChevronDown as ChevronDown5 } from "lucide-react";
|
|
8912
8992
|
import { jsx as jsx52, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
8913
8993
|
function MultiSelect({
|
|
8914
8994
|
options,
|
|
@@ -8945,7 +9025,7 @@ function MultiSelect({
|
|
|
8945
9025
|
),
|
|
8946
9026
|
children: [
|
|
8947
9027
|
/* @__PURE__ */ jsx52("span", { className: "truncate text-sm", children: displayLabel }),
|
|
8948
|
-
/* @__PURE__ */ jsx52(
|
|
9028
|
+
/* @__PURE__ */ jsx52(Icon, { intent: "expand", className: "ml-2 shrink-0 opacity-50" })
|
|
8949
9029
|
]
|
|
8950
9030
|
}
|
|
8951
9031
|
) }),
|
|
@@ -8961,10 +9041,11 @@ function MultiSelect({
|
|
|
8961
9041
|
className: "text-sm",
|
|
8962
9042
|
children: [
|
|
8963
9043
|
/* @__PURE__ */ jsx52(
|
|
8964
|
-
|
|
9044
|
+
Icon,
|
|
8965
9045
|
{
|
|
9046
|
+
intent: "selected",
|
|
8966
9047
|
className: mergeClasses(
|
|
8967
|
-
"mr-2
|
|
9048
|
+
"mr-2",
|
|
8968
9049
|
value.includes(opt.value) ? "opacity-100" : "opacity-0"
|
|
8969
9050
|
)
|
|
8970
9051
|
}
|
|
@@ -9071,7 +9152,7 @@ function RuleRow({
|
|
|
9071
9152
|
disabled: !canRemove,
|
|
9072
9153
|
className: "shrink-0",
|
|
9073
9154
|
"aria-label": "Remove rule",
|
|
9074
|
-
children: /* @__PURE__ */ jsx53(
|
|
9155
|
+
children: /* @__PURE__ */ jsx53(Icon, { intent: "close" })
|
|
9075
9156
|
}
|
|
9076
9157
|
)
|
|
9077
9158
|
] });
|
|
@@ -9271,7 +9352,7 @@ function RuleBuilder({
|
|
|
9271
9352
|
onClick: handleAddRule,
|
|
9272
9353
|
className: "w-full border border-dashed",
|
|
9273
9354
|
children: [
|
|
9274
|
-
/* @__PURE__ */ jsx54(
|
|
9355
|
+
/* @__PURE__ */ jsx54(Icon, { intent: "add", className: "mr-2" }),
|
|
9275
9356
|
"Add rule"
|
|
9276
9357
|
]
|
|
9277
9358
|
}
|
|
@@ -9309,7 +9390,6 @@ function RuleBuilder({
|
|
|
9309
9390
|
}
|
|
9310
9391
|
|
|
9311
9392
|
// src/@styleguide/selection-and-inputs/recurrence-scheduler/FrequencySelect.tsx
|
|
9312
|
-
import { Check as Check6, ChevronsUpDown as ChevronsUpDown2 } from "lucide-react";
|
|
9313
9393
|
import { jsx as jsx55, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
9314
9394
|
function FrequencySelect({
|
|
9315
9395
|
value,
|
|
@@ -9332,7 +9412,7 @@ function FrequencySelect({
|
|
|
9332
9412
|
disabled,
|
|
9333
9413
|
children: [
|
|
9334
9414
|
selectedOption?.label ?? "Select frequency...",
|
|
9335
|
-
/* @__PURE__ */ jsx55(
|
|
9415
|
+
/* @__PURE__ */ jsx55(Icon, { intent: "disclosure", className: "ml-2 shrink-0 opacity-50" })
|
|
9336
9416
|
]
|
|
9337
9417
|
}
|
|
9338
9418
|
) }),
|
|
@@ -9350,10 +9430,11 @@ function FrequencySelect({
|
|
|
9350
9430
|
},
|
|
9351
9431
|
children: [
|
|
9352
9432
|
/* @__PURE__ */ jsx55(
|
|
9353
|
-
|
|
9433
|
+
Icon,
|
|
9354
9434
|
{
|
|
9435
|
+
intent: "selected",
|
|
9355
9436
|
className: mergeClasses(
|
|
9356
|
-
"mr-2
|
|
9437
|
+
"mr-2",
|
|
9357
9438
|
value === option.value ? "opacity-100" : "opacity-0"
|
|
9358
9439
|
)
|
|
9359
9440
|
}
|
|
@@ -9374,6 +9455,7 @@ export {
|
|
|
9374
9455
|
useIsMobile,
|
|
9375
9456
|
useDebouncedValue,
|
|
9376
9457
|
useDebouncedCallback,
|
|
9458
|
+
intentMap,
|
|
9377
9459
|
iconMap,
|
|
9378
9460
|
Icon,
|
|
9379
9461
|
buttonVariants,
|
|
@@ -9497,7 +9579,7 @@ export {
|
|
|
9497
9579
|
ComboboxGroup,
|
|
9498
9580
|
ComboboxList,
|
|
9499
9581
|
ComboboxItem,
|
|
9500
|
-
|
|
9582
|
+
Calendar3 as Calendar,
|
|
9501
9583
|
DatePicker,
|
|
9502
9584
|
DateRangePicker,
|
|
9503
9585
|
DEFAULT_RECURRENCE_CONFIG,
|