@dmsi/wedgekit-react 0.0.26 → 0.0.27
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-KDEPZ6I7.js → chunk-2S2Z3L56.js} +5 -1
- package/dist/{chunk-TU55CHXU.js → chunk-4JLU7TAC.js} +3 -1
- package/dist/{chunk-Z2LOGSGE.js → chunk-4N2PED4P.js} +15 -3
- package/dist/{chunk-U42SKNR6.js → chunk-57WRM337.js} +68 -30
- package/dist/{chunk-ZFGGZXB6.js → chunk-AY7ELVQY.js} +5 -2
- package/dist/{chunk-I2UVVKQI.js → chunk-CHTO7PW4.js} +3 -2
- package/dist/{chunk-WIDBAFBU.js → chunk-FWPJ73IK.js} +3 -1
- package/dist/{chunk-5TLFMKSR.js → chunk-INYI65WW.js} +15 -5
- package/dist/{chunk-TJ44JJCB.js → chunk-J6LETUNM.js} +5 -2
- package/dist/{chunk-T6HZARR7.js → chunk-MZJS2ZAU.js} +6 -3
- package/dist/{chunk-ZCBSLV7U.js → chunk-O4M2GISS.js} +5 -2
- package/dist/{chunk-OUTEIXV4.js → chunk-OUSNH76S.js} +11 -3
- package/dist/{chunk-YDREJNAS.js → chunk-PDDZ5PMY.js} +18 -4
- package/dist/{chunk-4RD5ZF2V.js → chunk-QBIEU25R.js} +10 -4
- package/dist/chunk-QUPHLL7D.js +61 -0
- package/dist/{chunk-OISE6NMA.js → chunk-QV2EFOYF.js} +17 -6
- package/dist/{chunk-YZQNTOIF.js → chunk-QZGUMB7T.js} +10 -5
- package/dist/{chunk-S7R37IUP.js → chunk-S5K22XTH.js} +5 -2
- package/dist/{chunk-GCPJH5R6.js → chunk-S5KPS4IQ.js} +22 -7
- package/dist/{chunk-VELXLFMJ.js → chunk-SAMX4YGM.js} +4 -1
- package/dist/{chunk-TWP6YSFO.js → chunk-SKHSGGO3.js} +14 -6
- package/dist/chunk-TVDFTRGL.js +57 -0
- package/dist/{chunk-N32PXOA5.js → chunk-UT7XCBZF.js} +9 -4
- package/dist/{chunk-L4UM372R.js → chunk-VC3R5EUH.js} +3 -0
- package/dist/{chunk-UIQ733QP.js → chunk-VG4EPHJA.js} +7 -3
- package/dist/components/Breadcrumbs.cjs +29 -9
- package/dist/components/Breadcrumbs.js +29 -9
- package/dist/components/Button.cjs +6 -3
- package/dist/components/Button.js +1 -1
- package/dist/components/CalendarRange.cjs +11 -3
- package/dist/components/CalendarRange.js +1 -1
- package/dist/components/Caption.cjs +53 -9
- package/dist/components/Caption.js +53 -9
- package/dist/components/Checkbox.cjs +15 -6
- package/dist/components/Checkbox.js +2 -2
- package/dist/components/ContentTab.cjs +20 -7
- package/dist/components/ContentTab.js +2 -2
- package/dist/components/ContentTabs.cjs +32 -18
- package/dist/components/ContentTabs.js +14 -13
- package/dist/components/DMSiLogo.cjs +22 -4
- package/dist/components/DMSiLogo.js +9 -5
- package/dist/components/DataGrid.cjs +374 -243
- package/dist/components/DataGrid.js +283 -226
- package/dist/components/DataGridCell.cjs +79 -21
- package/dist/components/DataGridCell.js +7 -7
- package/dist/components/DataTable.cjs +197 -139
- package/dist/components/DataTable.js +197 -139
- package/dist/components/DateInput.cjs +36 -10
- package/dist/components/DateInput.js +7 -3
- package/dist/components/DateRangeInput.cjs +36 -10
- package/dist/components/DateRangeInput.js +7 -3
- package/dist/components/DebugJson.cjs +21 -13
- package/dist/components/DebugJson.js +21 -13
- package/dist/components/Display.cjs +5 -2
- package/dist/components/Display.js +1 -1
- package/dist/components/EditingContext.cjs +4 -1
- package/dist/components/EditingContext.js +4 -1
- package/dist/components/FilterGroup.cjs +102 -32
- package/dist/components/FilterGroup.js +41 -17
- package/dist/components/FullViewportBox.cjs +10 -2
- package/dist/components/FullViewportBox.js +10 -2
- package/dist/components/Grid.cjs +3 -1
- package/dist/components/Grid.js +3 -1
- package/dist/components/Heading.cjs +5 -2
- package/dist/components/Heading.js +1 -1
- package/dist/components/HorizontalDivider.cjs +2 -2
- package/dist/components/HorizontalDivider.js +2 -2
- package/dist/components/Input.cjs +21 -7
- package/dist/components/Input.js +2 -2
- package/dist/components/InputGroup.cjs +13 -6
- package/dist/components/InputGroup.js +9 -5
- package/dist/components/Label.cjs +5 -2
- package/dist/components/Label.js +1 -1
- package/dist/components/List.cjs +3 -2
- package/dist/components/List.js +3 -2
- package/dist/components/LogoAgilityTopBar.cjs +22 -4
- package/dist/components/LogoAgilityTopBar.js +9 -5
- package/dist/components/LogoDMSiTopBar.cjs +22 -4
- package/dist/components/LogoDMSiTopBar.js +1 -1
- package/dist/components/LogoMillworkTopBar.cjs +22 -4
- package/dist/components/LogoMillworkTopBar.js +9 -5
- package/dist/components/MainBar.cjs +2 -0
- package/dist/components/MainBar.js +2 -0
- package/dist/components/Menu.cjs +3 -0
- package/dist/components/Menu.js +1 -1
- package/dist/components/MenuOption.cjs +28 -7
- package/dist/components/MenuOption.js +3 -3
- package/dist/components/MobileDataGrid.cjs +101 -46
- package/dist/components/MobileDataGrid.js +23 -11
- package/dist/components/Modal.cjs +96 -51
- package/dist/components/Modal.js +19 -7
- package/dist/components/ModalButtons.cjs +43 -26
- package/dist/components/ModalButtons.js +2 -2
- package/dist/components/ModalContent.cjs +3 -1
- package/dist/components/ModalContent.js +1 -1
- package/dist/components/ModalHeader.cjs +40 -25
- package/dist/components/ModalHeader.js +3 -3
- package/dist/components/ModalScrim.cjs +3 -1
- package/dist/components/ModalScrim.js +1 -1
- package/dist/components/NavigationTab.cjs +9 -3
- package/dist/components/NavigationTab.js +2 -2
- package/dist/components/NavigationTabs.cjs +15 -7
- package/dist/components/NavigationTabs.js +8 -6
- package/dist/components/NestedMenu.cjs +28 -7
- package/dist/components/NestedMenu.js +3 -3
- package/dist/components/Notification.cjs +84 -38
- package/dist/components/Notification.js +8 -4
- package/dist/components/OptionPill.cjs +24 -6
- package/dist/components/OptionPill.js +3 -3
- package/dist/components/Paragraph.cjs +7 -3
- package/dist/components/Paragraph.js +1 -1
- package/dist/components/Password.cjs +33 -11
- package/dist/components/Password.js +14 -6
- package/dist/components/ProjectBar.cjs +3 -1
- package/dist/components/ProjectBar.js +3 -1
- package/dist/components/Radio.cjs +13 -7
- package/dist/components/Radio.js +7 -5
- package/dist/components/Search.cjs +34 -12
- package/dist/components/Search.js +3 -3
- package/dist/components/Select.cjs +25 -7
- package/dist/components/Select.js +3 -3
- package/dist/components/SideMenu.cjs +6 -1
- package/dist/components/SideMenu.js +6 -1
- package/dist/components/SideMenuGroup.cjs +96 -49
- package/dist/components/SideMenuGroup.js +31 -19
- package/dist/components/SideMenuItem.cjs +99 -43
- package/dist/components/SideMenuItem.js +32 -12
- package/dist/components/Stack.cjs +91 -30
- package/dist/components/Stack.js +1 -1
- package/dist/components/StatusPill.cjs +13 -6
- package/dist/components/StatusPill.js +9 -5
- package/dist/components/Stepper.cjs +35 -17
- package/dist/components/Stepper.js +11 -10
- package/dist/components/Subheader.cjs +5 -2
- package/dist/components/Subheader.js +1 -1
- package/dist/components/Surface.cjs +5 -2
- package/dist/components/Surface.js +5 -2
- package/dist/components/Swatch.cjs +1544 -1308
- package/dist/components/Swatch.js +1469 -1275
- package/dist/components/Textarea.cjs +5 -2
- package/dist/components/Textarea.js +5 -2
- package/dist/components/Theme.cjs +3 -2
- package/dist/components/Theme.js +1 -1
- package/dist/components/Time.cjs +98 -40
- package/dist/components/Time.js +18 -6
- package/dist/components/Toast.cjs +38 -15
- package/dist/components/Toast.js +23 -10
- package/dist/components/Tooltip.cjs +5 -4
- package/dist/components/Tooltip.js +1 -1
- package/dist/components/TopBar.cjs +16 -8
- package/dist/components/TopBar.js +12 -5
- package/package.json +1 -1
- package/src/components/Breadcrumbs.tsx +24 -15
- package/src/components/Button.tsx +7 -3
- package/src/components/CalendarRange.tsx +9 -0
- package/src/components/Caption.tsx +36 -6
- package/src/components/Checkbox.tsx +7 -2
- package/src/components/ContentTab.tsx +13 -3
- package/src/components/ContentTabs.tsx +11 -8
- package/src/components/DMSiLogo.tsx +2 -1
- package/src/components/DataGrid.tsx +85 -23
- package/src/components/DataGridCell.tsx +15 -2
- package/src/components/DataTable.tsx +64 -14
- package/src/components/DateInput.tsx +5 -1
- package/src/components/DateRangeInput.tsx +5 -1
- package/src/components/DebugJson.tsx +7 -3
- package/src/components/Display.tsx +3 -0
- package/src/components/EditingContext.tsx +8 -6
- package/src/components/FilterGroup.tsx +23 -3
- package/src/components/FullViewportBox.tsx +6 -1
- package/src/components/Grid.tsx +3 -0
- package/src/components/Heading.tsx +3 -0
- package/src/components/HorizontalDivider.tsx +4 -2
- package/src/components/Input.tsx +19 -10
- package/src/components/InputGroup.tsx +8 -4
- package/src/components/Label.tsx +3 -0
- package/src/components/Link.tsx +1 -0
- package/src/components/List.tsx +7 -1
- package/src/components/LogoAgilityTopBar.tsx +2 -1
- package/src/components/LogoDMSiTopBar.tsx +2 -1
- package/src/components/LogoMillworkTopBar.tsx +2 -1
- package/src/components/MainBar.tsx +3 -0
- package/src/components/Menu.tsx +3 -0
- package/src/components/MenuOption.tsx +72 -58
- package/src/components/MobileDataGrid.tsx +15 -4
- package/src/components/Modal.tsx +10 -1
- package/src/components/ModalButtons.tsx +12 -1
- package/src/components/ModalContent.tsx +3 -0
- package/src/components/ModalHeader.tsx +16 -6
- package/src/components/ModalScrim.tsx +3 -0
- package/src/components/NavigationTab.tsx +6 -3
- package/src/components/NavigationTabs.tsx +5 -2
- package/src/components/Notification.tsx +4 -0
- package/src/components/OptionPill.tsx +9 -1
- package/src/components/Paragraph.tsx +3 -0
- package/src/components/Password.tsx +9 -3
- package/src/components/ProjectBar.tsx +3 -0
- package/src/components/Radio.tsx +3 -2
- package/src/components/Search.tsx +56 -41
- package/src/components/Select.tsx +6 -1
- package/src/components/SideMenu.tsx +7 -1
- package/src/components/SideMenuGroup.tsx +13 -2
- package/src/components/SideMenuItem.tsx +15 -2
- package/src/components/Stack.tsx +8 -3
- package/src/components/StatusPill.tsx +4 -2
- package/src/components/Stepper.tsx +5 -5
- package/src/components/Subheader.tsx +3 -0
- package/src/components/Surface.tsx +3 -0
- package/src/components/Swatch.tsx +415 -140
- package/src/components/Textarea.tsx +6 -3
- package/src/components/Theme.tsx +3 -1
- package/src/components/Time.tsx +21 -5
- package/src/components/Toast.tsx +29 -14
- package/src/components/Tooltip.tsx +46 -32
- package/src/components/TopBar.tsx +7 -3
- package/dist/chunk-DBYSGYST.js +0 -47
- package/dist/chunk-UK3WG7HQ.js +0 -48
|
@@ -208,7 +208,8 @@ var Button = (_a) => {
|
|
|
208
208
|
children,
|
|
209
209
|
iconOnly = false,
|
|
210
210
|
colorClassName,
|
|
211
|
-
href
|
|
211
|
+
href,
|
|
212
|
+
id
|
|
212
213
|
} = _b, props = __objRest(_b, [
|
|
213
214
|
"variant",
|
|
214
215
|
"as",
|
|
@@ -221,7 +222,8 @@ var Button = (_a) => {
|
|
|
221
222
|
"children",
|
|
222
223
|
"iconOnly",
|
|
223
224
|
"colorClassName",
|
|
224
|
-
"href"
|
|
225
|
+
"href",
|
|
226
|
+
"id"
|
|
225
227
|
]);
|
|
226
228
|
const primaryVariantStyles = variant === "primary" && (0, import_clsx2.default)(
|
|
227
229
|
(colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-on-action-primary-normal",
|
|
@@ -311,6 +313,7 @@ var Button = (_a) => {
|
|
|
311
313
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
312
314
|
Element,
|
|
313
315
|
__spreadProps(__spreadValues({
|
|
316
|
+
id,
|
|
314
317
|
type: Element === "button" ? "button" : void 0,
|
|
315
318
|
className: buttonClasses
|
|
316
319
|
}, props), {
|
|
@@ -318,7 +321,7 @@ var Button = (_a) => {
|
|
|
318
321
|
href,
|
|
319
322
|
children: [
|
|
320
323
|
leftIcon && leftIcon,
|
|
321
|
-
!iconOnly && children && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: labelClasses, children }),
|
|
324
|
+
!iconOnly && children && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { id: id ? `${id}-label` : void 0, className: labelClasses, children }),
|
|
322
325
|
rightIcon && rightIcon
|
|
323
326
|
]
|
|
324
327
|
})
|
|
@@ -362,6 +365,7 @@ function Icon(_a) {
|
|
|
362
365
|
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
363
366
|
var NavigationTab = (_a) => {
|
|
364
367
|
var _b = _a, {
|
|
368
|
+
id,
|
|
365
369
|
label,
|
|
366
370
|
onClick,
|
|
367
371
|
selected = false,
|
|
@@ -369,6 +373,7 @@ var NavigationTab = (_a) => {
|
|
|
369
373
|
disabled = false,
|
|
370
374
|
href
|
|
371
375
|
} = _b, props = __objRest(_b, [
|
|
376
|
+
"id",
|
|
372
377
|
"label",
|
|
373
378
|
"onClick",
|
|
374
379
|
"selected",
|
|
@@ -411,6 +416,7 @@ var NavigationTab = (_a) => {
|
|
|
411
416
|
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
412
417
|
Button,
|
|
413
418
|
__spreadProps(__spreadValues({
|
|
419
|
+
id,
|
|
414
420
|
variant: "tertiary-critical",
|
|
415
421
|
colorClassName: textClassName,
|
|
416
422
|
className: (0, import_clsx4.default)(
|
|
@@ -213,7 +213,8 @@ var Button = (_a) => {
|
|
|
213
213
|
children,
|
|
214
214
|
iconOnly = false,
|
|
215
215
|
colorClassName,
|
|
216
|
-
href
|
|
216
|
+
href,
|
|
217
|
+
id
|
|
217
218
|
} = _b, props = __objRest(_b, [
|
|
218
219
|
"variant",
|
|
219
220
|
"as",
|
|
@@ -226,7 +227,8 @@ var Button = (_a) => {
|
|
|
226
227
|
"children",
|
|
227
228
|
"iconOnly",
|
|
228
229
|
"colorClassName",
|
|
229
|
-
"href"
|
|
230
|
+
"href",
|
|
231
|
+
"id"
|
|
230
232
|
]);
|
|
231
233
|
const primaryVariantStyles = variant === "primary" && (0, import_clsx2.default)(
|
|
232
234
|
(colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-on-action-primary-normal",
|
|
@@ -316,6 +318,7 @@ var Button = (_a) => {
|
|
|
316
318
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
317
319
|
Element,
|
|
318
320
|
__spreadProps(__spreadValues({
|
|
321
|
+
id,
|
|
319
322
|
type: Element === "button" ? "button" : void 0,
|
|
320
323
|
className: buttonClasses
|
|
321
324
|
}, props), {
|
|
@@ -323,7 +326,7 @@ var Button = (_a) => {
|
|
|
323
326
|
href,
|
|
324
327
|
children: [
|
|
325
328
|
leftIcon && leftIcon,
|
|
326
|
-
!iconOnly && children && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: labelClasses, children }),
|
|
329
|
+
!iconOnly && children && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { id: id ? `${id}-label` : void 0, className: labelClasses, children }),
|
|
327
330
|
rightIcon && rightIcon
|
|
328
331
|
]
|
|
329
332
|
})
|
|
@@ -367,6 +370,7 @@ function Icon(_a) {
|
|
|
367
370
|
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
368
371
|
var NavigationTab = (_a) => {
|
|
369
372
|
var _b = _a, {
|
|
373
|
+
id,
|
|
370
374
|
label,
|
|
371
375
|
onClick,
|
|
372
376
|
selected = false,
|
|
@@ -374,6 +378,7 @@ var NavigationTab = (_a) => {
|
|
|
374
378
|
disabled = false,
|
|
375
379
|
href
|
|
376
380
|
} = _b, props = __objRest(_b, [
|
|
381
|
+
"id",
|
|
377
382
|
"label",
|
|
378
383
|
"onClick",
|
|
379
384
|
"selected",
|
|
@@ -416,6 +421,7 @@ var NavigationTab = (_a) => {
|
|
|
416
421
|
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
417
422
|
Button,
|
|
418
423
|
__spreadProps(__spreadValues({
|
|
424
|
+
id,
|
|
419
425
|
variant: "tertiary-critical",
|
|
420
426
|
colorClassName: textClassName,
|
|
421
427
|
className: (0, import_clsx4.default)(
|
|
@@ -443,19 +449,20 @@ NavigationTab.displayName = "NavigationTab";
|
|
|
443
449
|
// src/components/NavigationTabs.tsx
|
|
444
450
|
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
445
451
|
var NavigationTabs = ({
|
|
452
|
+
id,
|
|
446
453
|
tabs,
|
|
447
454
|
onTabChange,
|
|
448
455
|
colorPrimitives = "dmsi"
|
|
449
456
|
}) => {
|
|
450
457
|
var _a, _b, _c;
|
|
451
458
|
const [selectedTab, setSelectedTab] = (0, import_react.useState)((_a = tabs[0]) == null ? void 0 : _a.id);
|
|
452
|
-
const handleTabClick = (
|
|
453
|
-
setSelectedTab(
|
|
454
|
-
onTabChange == null ? void 0 : onTabChange(
|
|
459
|
+
const handleTabClick = (id2) => {
|
|
460
|
+
setSelectedTab(id2);
|
|
461
|
+
onTabChange == null ? void 0 : onTabChange(id2);
|
|
455
462
|
};
|
|
456
463
|
const selectedContent = (_b = tabs.find((tab) => tab.id === selectedTab)) == null ? void 0 : _b.content;
|
|
457
464
|
const selectedTabHasHref = (_c = tabs.find((tab) => tab.id === selectedTab)) == null ? void 0 : _c.href;
|
|
458
|
-
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { children: [
|
|
465
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { id, children: [
|
|
459
466
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
460
467
|
"div",
|
|
461
468
|
{
|
|
@@ -466,6 +473,7 @@ var NavigationTabs = ({
|
|
|
466
473
|
children: tabs.map((tab) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
467
474
|
NavigationTab,
|
|
468
475
|
{
|
|
476
|
+
id: id ? `${id}-tab-${tab.id}` : void 0,
|
|
469
477
|
label: tab.label,
|
|
470
478
|
selected: selectedTab === tab.id,
|
|
471
479
|
onClick: () => handleTabClick(tab.id),
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
NavigationTab
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-SAMX4YGM.js";
|
|
5
|
+
import "../chunk-MZJS2ZAU.js";
|
|
6
6
|
import "../chunk-IGQVA7SC.js";
|
|
7
7
|
import {
|
|
8
8
|
componentGap
|
|
@@ -14,19 +14,20 @@ import clsx from "clsx";
|
|
|
14
14
|
import { useState } from "react";
|
|
15
15
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
16
16
|
var NavigationTabs = ({
|
|
17
|
+
id,
|
|
17
18
|
tabs,
|
|
18
19
|
onTabChange,
|
|
19
20
|
colorPrimitives = "dmsi"
|
|
20
21
|
}) => {
|
|
21
22
|
var _a, _b, _c;
|
|
22
23
|
const [selectedTab, setSelectedTab] = useState((_a = tabs[0]) == null ? void 0 : _a.id);
|
|
23
|
-
const handleTabClick = (
|
|
24
|
-
setSelectedTab(
|
|
25
|
-
onTabChange == null ? void 0 : onTabChange(
|
|
24
|
+
const handleTabClick = (id2) => {
|
|
25
|
+
setSelectedTab(id2);
|
|
26
|
+
onTabChange == null ? void 0 : onTabChange(id2);
|
|
26
27
|
};
|
|
27
28
|
const selectedContent = (_b = tabs.find((tab) => tab.id === selectedTab)) == null ? void 0 : _b.content;
|
|
28
29
|
const selectedTabHasHref = (_c = tabs.find((tab) => tab.id === selectedTab)) == null ? void 0 : _c.href;
|
|
29
|
-
return /* @__PURE__ */ jsxs("div", { children: [
|
|
30
|
+
return /* @__PURE__ */ jsxs("div", { id, children: [
|
|
30
31
|
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
|
|
31
32
|
"div",
|
|
32
33
|
{
|
|
@@ -37,6 +38,7 @@ var NavigationTabs = ({
|
|
|
37
38
|
children: tabs.map((tab) => /* @__PURE__ */ jsx(
|
|
38
39
|
NavigationTab,
|
|
39
40
|
{
|
|
41
|
+
id: id ? `${id}-tab-${tab.id}` : void 0,
|
|
40
42
|
label: tab.label,
|
|
41
43
|
selected: selectedTab === tab.id,
|
|
42
44
|
onClick: () => handleTabClick(tab.id),
|
|
@@ -236,18 +236,21 @@ var Label = (_a) => {
|
|
|
236
236
|
padded,
|
|
237
237
|
className,
|
|
238
238
|
color,
|
|
239
|
-
align
|
|
239
|
+
align,
|
|
240
|
+
id
|
|
240
241
|
} = _b, props = __objRest(_b, [
|
|
241
242
|
"as",
|
|
242
243
|
"padded",
|
|
243
244
|
"className",
|
|
244
245
|
"color",
|
|
245
|
-
"align"
|
|
246
|
+
"align",
|
|
247
|
+
"id"
|
|
246
248
|
]);
|
|
247
249
|
const Element = as;
|
|
248
250
|
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
249
251
|
Element,
|
|
250
252
|
__spreadProps(__spreadValues({
|
|
253
|
+
id,
|
|
251
254
|
className: (0, import_clsx3.default)(
|
|
252
255
|
typography.label,
|
|
253
256
|
align === "left" && "text-left",
|
|
@@ -277,7 +280,8 @@ var Paragraph = (_a) => {
|
|
|
277
280
|
tall,
|
|
278
281
|
addOverflow,
|
|
279
282
|
children,
|
|
280
|
-
as = "p"
|
|
283
|
+
as = "p",
|
|
284
|
+
id
|
|
281
285
|
} = _b, props = __objRest(_b, [
|
|
282
286
|
"className",
|
|
283
287
|
"color",
|
|
@@ -286,12 +290,15 @@ var Paragraph = (_a) => {
|
|
|
286
290
|
"tall",
|
|
287
291
|
"addOverflow",
|
|
288
292
|
"children",
|
|
289
|
-
"as"
|
|
293
|
+
"as",
|
|
294
|
+
"id"
|
|
290
295
|
]);
|
|
291
296
|
const Element = as;
|
|
292
297
|
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
293
298
|
Element,
|
|
294
|
-
__spreadProps(__spreadValues({
|
|
299
|
+
__spreadProps(__spreadValues({
|
|
300
|
+
id
|
|
301
|
+
}, props), {
|
|
295
302
|
className: (0, import_clsx4.default)(
|
|
296
303
|
typography.paragraph,
|
|
297
304
|
className,
|
|
@@ -338,6 +345,7 @@ var useMatchesMobile = () => {
|
|
|
338
345
|
// src/components/MenuOption.tsx
|
|
339
346
|
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
340
347
|
var MenuOption = ({
|
|
348
|
+
id,
|
|
341
349
|
children,
|
|
342
350
|
disabled = false,
|
|
343
351
|
variant = "normal",
|
|
@@ -409,6 +417,7 @@ var MenuOption = ({
|
|
|
409
417
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
|
|
410
418
|
"div",
|
|
411
419
|
__spreadProps(__spreadValues({
|
|
420
|
+
id,
|
|
412
421
|
ref: actualRef,
|
|
413
422
|
className: (0, import_clsx5.default)(
|
|
414
423
|
"flex items-center cursor-pointer w-full text-left relative outline-none",
|
|
@@ -449,7 +458,15 @@ var MenuOption = ({
|
|
|
449
458
|
onMouseLeave: handleMouseLeave,
|
|
450
459
|
"data-submenu-parent": menuId.current,
|
|
451
460
|
"data-menu-level": subMenuLevel + 1,
|
|
452
|
-
children: subMenu({
|
|
461
|
+
children: subMenu({
|
|
462
|
+
menuId: menuId.current,
|
|
463
|
+
positionTo: actualRef,
|
|
464
|
+
mobilePositionTo,
|
|
465
|
+
position: "right",
|
|
466
|
+
subMenuLevel,
|
|
467
|
+
mobileBackMenuOption,
|
|
468
|
+
mobileHide: isMobile && activeMenu !== menuId.current
|
|
469
|
+
})
|
|
453
470
|
}
|
|
454
471
|
)
|
|
455
472
|
] });
|
|
@@ -468,6 +485,7 @@ var MenuOption = ({
|
|
|
468
485
|
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
469
486
|
MenuOption,
|
|
470
487
|
{
|
|
488
|
+
id: id ? `${id}-back` : void 0,
|
|
471
489
|
onClick: () => {
|
|
472
490
|
closeSubMenuLevel == null ? void 0 : closeSubMenuLevel(currentSubMenuLevel != null ? currentSubMenuLevel : 0);
|
|
473
491
|
},
|
|
@@ -483,7 +501,10 @@ function highlightMatch(text, searchValue) {
|
|
|
483
501
|
if (!searchValue || !searchValue.trim()) {
|
|
484
502
|
return text;
|
|
485
503
|
}
|
|
486
|
-
const regex = new RegExp(
|
|
504
|
+
const regex = new RegExp(
|
|
505
|
+
`(${searchValue.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")})`,
|
|
506
|
+
"gi"
|
|
507
|
+
);
|
|
487
508
|
const parts = text.split(regex);
|
|
488
509
|
return parts.map(
|
|
489
510
|
(part, index) => regex.test(part) ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "font-bold", children: part }, index) : part
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
MenuOption
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-PDDZ5PMY.js";
|
|
5
5
|
import "../chunk-SEKKGFM6.js";
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-S5K22XTH.js";
|
|
7
|
+
import "../chunk-VG4EPHJA.js";
|
|
8
8
|
import {
|
|
9
9
|
Icon
|
|
10
10
|
} from "../chunk-IGQVA7SC.js";
|
|
@@ -210,7 +210,8 @@ var Button = (_a) => {
|
|
|
210
210
|
children,
|
|
211
211
|
iconOnly = false,
|
|
212
212
|
colorClassName,
|
|
213
|
-
href
|
|
213
|
+
href,
|
|
214
|
+
id
|
|
214
215
|
} = _b, props = __objRest(_b, [
|
|
215
216
|
"variant",
|
|
216
217
|
"as",
|
|
@@ -223,7 +224,8 @@ var Button = (_a) => {
|
|
|
223
224
|
"children",
|
|
224
225
|
"iconOnly",
|
|
225
226
|
"colorClassName",
|
|
226
|
-
"href"
|
|
227
|
+
"href",
|
|
228
|
+
"id"
|
|
227
229
|
]);
|
|
228
230
|
const primaryVariantStyles = variant === "primary" && (0, import_clsx2.default)(
|
|
229
231
|
(colorClassName == null ? void 0 : colorClassName.trim()) ? colorClassName : "text-text-on-action-primary-normal",
|
|
@@ -313,6 +315,7 @@ var Button = (_a) => {
|
|
|
313
315
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
314
316
|
Element,
|
|
315
317
|
__spreadProps(__spreadValues({
|
|
318
|
+
id,
|
|
316
319
|
type: Element === "button" ? "button" : void 0,
|
|
317
320
|
className: buttonClasses
|
|
318
321
|
}, props), {
|
|
@@ -320,7 +323,7 @@ var Button = (_a) => {
|
|
|
320
323
|
href,
|
|
321
324
|
children: [
|
|
322
325
|
leftIcon && leftIcon,
|
|
323
|
-
!iconOnly && children && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: labelClasses, children }),
|
|
326
|
+
!iconOnly && children && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { id: id ? `${id}-label` : void 0, className: labelClasses, children }),
|
|
324
327
|
rightIcon && rightIcon
|
|
325
328
|
]
|
|
326
329
|
})
|
|
@@ -340,7 +343,8 @@ var Paragraph = (_a) => {
|
|
|
340
343
|
tall,
|
|
341
344
|
addOverflow,
|
|
342
345
|
children,
|
|
343
|
-
as = "p"
|
|
346
|
+
as = "p",
|
|
347
|
+
id
|
|
344
348
|
} = _b, props = __objRest(_b, [
|
|
345
349
|
"className",
|
|
346
350
|
"color",
|
|
@@ -349,12 +353,15 @@ var Paragraph = (_a) => {
|
|
|
349
353
|
"tall",
|
|
350
354
|
"addOverflow",
|
|
351
355
|
"children",
|
|
352
|
-
"as"
|
|
356
|
+
"as",
|
|
357
|
+
"id"
|
|
353
358
|
]);
|
|
354
359
|
const Element = as;
|
|
355
360
|
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
356
361
|
Element,
|
|
357
|
-
__spreadProps(__spreadValues({
|
|
362
|
+
__spreadProps(__spreadValues({
|
|
363
|
+
id
|
|
364
|
+
}, props), {
|
|
358
365
|
className: (0, import_clsx3.default)(
|
|
359
366
|
typography.paragraph,
|
|
360
367
|
className,
|
|
@@ -384,20 +391,23 @@ var Heading = (_a) => {
|
|
|
384
391
|
as,
|
|
385
392
|
color,
|
|
386
393
|
align,
|
|
387
|
-
variant = "heading1"
|
|
394
|
+
variant = "heading1",
|
|
395
|
+
id
|
|
388
396
|
} = _b, props = __objRest(_b, [
|
|
389
397
|
"className",
|
|
390
398
|
"children",
|
|
391
399
|
"as",
|
|
392
400
|
"color",
|
|
393
401
|
"align",
|
|
394
|
-
"variant"
|
|
402
|
+
"variant",
|
|
403
|
+
"id"
|
|
395
404
|
]);
|
|
396
405
|
const defaultElement = variant === "heading1" ? "h1" : variant === "heading2" ? "h2" : "h3";
|
|
397
406
|
const Element = as != null ? as : defaultElement;
|
|
398
407
|
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
399
408
|
Element,
|
|
400
409
|
__spreadProps(__spreadValues({
|
|
410
|
+
id,
|
|
401
411
|
className: (0, import_clsx4.default)(
|
|
402
412
|
typography[variant],
|
|
403
413
|
className,
|
|
@@ -471,38 +481,70 @@ var useFlexClassNames = ({ items, justify, grow }) => (0, import_clsx6.default)(
|
|
|
471
481
|
justify === "between" && "justify-between",
|
|
472
482
|
justify === "around" && "justify-around"
|
|
473
483
|
);
|
|
474
|
-
var Stack = ({
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
484
|
+
var Stack = (_a) => {
|
|
485
|
+
var _b = _a, {
|
|
486
|
+
children,
|
|
487
|
+
items,
|
|
488
|
+
justify,
|
|
489
|
+
grow,
|
|
490
|
+
padding,
|
|
491
|
+
paddingX,
|
|
492
|
+
horizontal,
|
|
493
|
+
horizontalMobile,
|
|
494
|
+
elevation = 0,
|
|
495
|
+
rounded,
|
|
496
|
+
centered,
|
|
497
|
+
width,
|
|
498
|
+
maxWidth,
|
|
499
|
+
minWidth,
|
|
500
|
+
height,
|
|
501
|
+
maxHeight,
|
|
502
|
+
borderColor,
|
|
503
|
+
backgroundColor,
|
|
504
|
+
sizing = "none",
|
|
505
|
+
overflowY = "inherit",
|
|
506
|
+
overflowX = "inherit",
|
|
507
|
+
flexShrink,
|
|
508
|
+
flexGrow,
|
|
509
|
+
position,
|
|
510
|
+
top,
|
|
511
|
+
left,
|
|
512
|
+
id
|
|
513
|
+
} = _b, props = __objRest(_b, [
|
|
514
|
+
"children",
|
|
515
|
+
"items",
|
|
516
|
+
"justify",
|
|
517
|
+
"grow",
|
|
518
|
+
"padding",
|
|
519
|
+
"paddingX",
|
|
520
|
+
"horizontal",
|
|
521
|
+
"horizontalMobile",
|
|
522
|
+
"elevation",
|
|
523
|
+
"rounded",
|
|
524
|
+
"centered",
|
|
525
|
+
"width",
|
|
526
|
+
"maxWidth",
|
|
527
|
+
"minWidth",
|
|
528
|
+
"height",
|
|
529
|
+
"maxHeight",
|
|
530
|
+
"borderColor",
|
|
531
|
+
"backgroundColor",
|
|
532
|
+
"sizing",
|
|
533
|
+
"overflowY",
|
|
534
|
+
"overflowX",
|
|
535
|
+
"flexShrink",
|
|
536
|
+
"flexGrow",
|
|
537
|
+
"position",
|
|
538
|
+
"top",
|
|
539
|
+
"left",
|
|
540
|
+
"id"
|
|
541
|
+
]);
|
|
502
542
|
const flexClassNames = useFlexClassNames({ items, justify, grow });
|
|
503
543
|
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
504
544
|
"div",
|
|
505
|
-
{
|
|
545
|
+
__spreadProps(__spreadValues({
|
|
546
|
+
id
|
|
547
|
+
}, props), {
|
|
506
548
|
style: {
|
|
507
549
|
height: height === "full" ? "100%" : height !== void 0 ? `${height}px` : void 0,
|
|
508
550
|
maxHeight: maxHeight !== void 0 ? `${maxHeight}px` : void 0,
|
|
@@ -550,7 +592,7 @@ var Stack = ({
|
|
|
550
592
|
rounded && "rounded"
|
|
551
593
|
),
|
|
552
594
|
children
|
|
553
|
-
}
|
|
595
|
+
})
|
|
554
596
|
);
|
|
555
597
|
};
|
|
556
598
|
|
|
@@ -576,6 +618,7 @@ var variants = {
|
|
|
576
618
|
};
|
|
577
619
|
var Notification = (_a) => {
|
|
578
620
|
var _b = _a, {
|
|
621
|
+
id,
|
|
579
622
|
variant = "success",
|
|
580
623
|
title,
|
|
581
624
|
message,
|
|
@@ -586,6 +629,7 @@ var Notification = (_a) => {
|
|
|
586
629
|
enableDisclaimer = false,
|
|
587
630
|
card = false
|
|
588
631
|
} = _b, props = __objRest(_b, [
|
|
632
|
+
"id",
|
|
589
633
|
"variant",
|
|
590
634
|
"title",
|
|
591
635
|
"message",
|
|
@@ -603,6 +647,7 @@ var Notification = (_a) => {
|
|
|
603
647
|
return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
|
|
604
648
|
"div",
|
|
605
649
|
__spreadProps(__spreadValues({
|
|
650
|
+
id,
|
|
606
651
|
className: (0, import_clsx7.default)(
|
|
607
652
|
"flex gap-mobile-layout-gap desktop:gap-desktop-layout-gap compact:gap-desktop-compact-layout-gap justify-between items-center border-2 rounded-sm w-full p-mobile-layout-padding desktop:p-desktop-layout-padding compact:p-desktop-compact-layout-padding bg-white max-w-240",
|
|
608
653
|
className,
|
|
@@ -632,6 +677,7 @@ var Notification = (_a) => {
|
|
|
632
677
|
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
633
678
|
Button,
|
|
634
679
|
{
|
|
680
|
+
id: id ? `${id}-close-button` : void 0,
|
|
635
681
|
iconOnly: true,
|
|
636
682
|
variant: "tertiary",
|
|
637
683
|
onClick: () => setVisible(false),
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
Stack
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-57WRM337.js";
|
|
5
5
|
import {
|
|
6
6
|
Heading3
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-J6LETUNM.js";
|
|
8
8
|
import {
|
|
9
9
|
Button
|
|
10
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-MZJS2ZAU.js";
|
|
11
11
|
import {
|
|
12
12
|
Paragraph
|
|
13
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-VG4EPHJA.js";
|
|
14
14
|
import {
|
|
15
15
|
Icon
|
|
16
16
|
} from "../chunk-IGQVA7SC.js";
|
|
@@ -45,6 +45,7 @@ var variants = {
|
|
|
45
45
|
};
|
|
46
46
|
var Notification = (_a) => {
|
|
47
47
|
var _b = _a, {
|
|
48
|
+
id,
|
|
48
49
|
variant = "success",
|
|
49
50
|
title,
|
|
50
51
|
message,
|
|
@@ -55,6 +56,7 @@ var Notification = (_a) => {
|
|
|
55
56
|
enableDisclaimer = false,
|
|
56
57
|
card = false
|
|
57
58
|
} = _b, props = __objRest(_b, [
|
|
59
|
+
"id",
|
|
58
60
|
"variant",
|
|
59
61
|
"title",
|
|
60
62
|
"message",
|
|
@@ -72,6 +74,7 @@ var Notification = (_a) => {
|
|
|
72
74
|
return /* @__PURE__ */ jsxs(
|
|
73
75
|
"div",
|
|
74
76
|
__spreadProps(__spreadValues({
|
|
77
|
+
id,
|
|
75
78
|
className: clsx(
|
|
76
79
|
"flex gap-mobile-layout-gap desktop:gap-desktop-layout-gap compact:gap-desktop-compact-layout-gap justify-between items-center border-2 rounded-sm w-full p-mobile-layout-padding desktop:p-desktop-layout-padding compact:p-desktop-compact-layout-padding bg-white max-w-240",
|
|
77
80
|
className,
|
|
@@ -101,6 +104,7 @@ var Notification = (_a) => {
|
|
|
101
104
|
/* @__PURE__ */ jsx(
|
|
102
105
|
Button,
|
|
103
106
|
{
|
|
107
|
+
id: id ? `${id}-close-button` : void 0,
|
|
104
108
|
iconOnly: true,
|
|
105
109
|
variant: "tertiary",
|
|
106
110
|
onClick: () => setVisible(false),
|