@dmsi/wedgekit-react 0.0.232 → 0.0.234
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-XQILVD56.js → chunk-3BCGS6VO.js} +11 -6
- package/dist/{chunk-JFPRYMID.js → chunk-3FOAGRIY.js} +1 -1
- package/dist/{chunk-BHJNYWQG.js → chunk-4AHS4CVA.js} +1 -1
- package/dist/{chunk-RDLEIAQU.js → chunk-6CTCHYIS.js} +5 -0
- package/dist/{chunk-2VRZB2A4.js → chunk-6ZYTR6DU.js} +1 -1
- package/dist/{chunk-CJELWEO2.js → chunk-7KLALK3J.js} +1 -1
- package/dist/{chunk-E3UOI2D2.js → chunk-DXVLA32J.js} +2 -2
- package/dist/{chunk-SYEJVSE4.js → chunk-FRHPFACM.js} +1 -1
- package/dist/{chunk-KGVKHWUK.js → chunk-FS2RQE55.js} +1 -1
- package/dist/{chunk-REOLWEZG.js → chunk-KEDK5EWD.js} +1 -1
- package/dist/{chunk-SK742QNF.js → chunk-KNP4LUFA.js} +1 -1
- package/dist/{chunk-3M23BFB4.js → chunk-MQXOQL3T.js} +3 -3
- package/dist/{chunk-ARC7FOL2.js → chunk-NWELJDBW.js} +3 -3
- package/dist/{chunk-T7UCZWWK.js → chunk-OGMN5SHL.js} +2 -2
- package/dist/{chunk-7BBXPM5C.js → chunk-OP5XCT3L.js} +1 -1
- package/dist/{chunk-BOWQUDUU.js → chunk-QA3KMRA6.js} +1 -1
- package/dist/{chunk-3WNXMCZV.js → chunk-QQ5G773N.js} +1 -1
- package/dist/{chunk-LPQ4QMAV.js → chunk-R2FGTCOY.js} +1 -1
- package/dist/{chunk-QHHNFGEX.js → chunk-RJBKI53P.js} +3 -3
- package/dist/{chunk-BW2MWMVM.js → chunk-UVG2TKTG.js} +3 -3
- package/dist/{chunk-VZVPD3XK.js → chunk-VDO7VGAD.js} +12 -12
- package/dist/{chunk-Q7ETEWBW.js → chunk-VGPOI7UP.js} +3 -3
- package/dist/{chunk-CJVTFYI4.js → chunk-VP7HJX24.js} +1 -1
- package/dist/{chunk-R4H6D4SZ.js → chunk-VR7X3NMG.js} +3 -3
- package/dist/{chunk-SQJ7MWY7.js → chunk-X73BO77J.js} +2 -2
- package/dist/{chunk-5JVMULVC.js → chunk-YCKRRAJA.js} +2 -2
- package/dist/components/AccessChangerTabItem.cjs +5 -0
- package/dist/components/AccessChangerTabItem.js +2 -2
- package/dist/components/Accordion.cjs +5 -0
- package/dist/components/Accordion.js +4 -4
- package/dist/components/Breadcrumbs.cjs +25 -9
- package/dist/components/Breadcrumbs.js +12 -6
- package/dist/components/Button.cjs +5 -0
- package/dist/components/Button.js +2 -2
- package/dist/components/CalendarRange.cjs +5 -0
- package/dist/components/CalendarRange.css +18 -13
- package/dist/components/CalendarRange.js +16 -16
- package/dist/components/Caption.cjs +5 -0
- package/dist/components/Caption.js +1 -1
- package/dist/components/Checkbox.cjs +5 -0
- package/dist/components/Checkbox.js +3 -3
- package/dist/components/ContentTab.cjs +5 -0
- package/dist/components/ContentTab.js +3 -3
- package/dist/components/ContentTabs.cjs +5 -0
- package/dist/components/ContentTabs.js +3 -3
- package/dist/components/DataGridCell.cjs +5 -0
- package/dist/components/DataGridCell.js +7 -7
- package/dist/components/DateInput.cjs +5 -0
- package/dist/components/DateInput.css +18 -13
- package/dist/components/DateInput.js +16 -16
- package/dist/components/DateRangeInput.cjs +5 -0
- package/dist/components/DateRangeInput.css +18 -13
- package/dist/components/DateRangeInput.js +16 -16
- package/dist/components/Display.cjs +5 -0
- package/dist/components/Display.js +2 -2
- package/dist/components/FilterGroup.cjs +15 -5
- package/dist/components/FilterGroup.js +9 -9
- package/dist/components/Heading.cjs +5 -0
- package/dist/components/Heading.js +2 -2
- package/dist/components/Input.cjs +5 -0
- package/dist/components/Input.js +3 -3
- package/dist/components/InputGroup.cjs +5 -0
- package/dist/components/InputGroup.js +2 -2
- package/dist/components/Label.cjs +5 -0
- package/dist/components/Label.js +2 -2
- package/dist/components/Link.cjs +15 -5
- package/dist/components/Link.js +2 -2
- package/dist/components/MainBar.cjs +5 -0
- package/dist/components/MainBar.js +1 -1
- package/dist/components/MenuOption.cjs +5 -0
- package/dist/components/MenuOption.js +4 -4
- package/dist/components/MobileDataGrid.cjs +5 -0
- package/dist/components/MobileDataGrid.js +5 -5
- package/dist/components/Modal.cjs +5 -0
- package/dist/components/Modal.js +7 -7
- package/dist/components/ModalButtons.cjs +5 -0
- package/dist/components/ModalButtons.js +3 -3
- package/dist/components/ModalContent.cjs +5 -0
- package/dist/components/ModalContent.js +2 -2
- package/dist/components/ModalHeader.cjs +5 -0
- package/dist/components/ModalHeader.js +4 -4
- package/dist/components/NavigationTab.cjs +5 -0
- package/dist/components/NavigationTab.js +3 -3
- package/dist/components/NavigationTabs.cjs +5 -0
- package/dist/components/NavigationTabs.js +3 -3
- package/dist/components/NestedMenu.cjs +5 -0
- package/dist/components/NestedMenu.js +4 -4
- package/dist/components/Notification.cjs +5 -0
- package/dist/components/Notification.js +5 -5
- package/dist/components/OptionPill.cjs +5 -0
- package/dist/components/OptionPill.js +4 -4
- package/dist/components/PDFViewer.cjs +5 -0
- package/dist/components/PDFViewer.js +9 -9
- package/dist/components/Paragraph.cjs +5 -0
- package/dist/components/Paragraph.js +2 -2
- package/dist/components/Password.cjs +5 -0
- package/dist/components/Password.js +3 -3
- package/dist/components/ProjectBar.cjs +5 -0
- package/dist/components/ProjectBar.js +1 -1
- package/dist/components/Radio.cjs +5 -0
- package/dist/components/Radio.js +2 -2
- package/dist/components/Search.cjs +5 -0
- package/dist/components/Search.js +4 -4
- package/dist/components/Select.cjs +5 -0
- package/dist/components/Select.js +4 -4
- package/dist/components/SideMenuGroup.cjs +5 -0
- package/dist/components/SideMenuGroup.js +3 -3
- package/dist/components/SideMenuItem.cjs +5 -0
- package/dist/components/SideMenuItem.js +3 -3
- package/dist/components/Stack.cjs +5 -0
- package/dist/components/Stack.js +2 -2
- package/dist/components/StatusPill.cjs +5 -0
- package/dist/components/StatusPill.js +2 -2
- package/dist/components/Stepper.cjs +5 -0
- package/dist/components/Stepper.js +4 -4
- package/dist/components/Subheader.cjs +5 -0
- package/dist/components/Subheader.js +2 -2
- package/dist/components/Swatch.cjs +5 -0
- package/dist/components/Swatch.js +5 -5
- package/dist/components/Textarea.cjs +5 -0
- package/dist/components/Textarea.js +1 -1
- package/dist/components/Time.cjs +5 -0
- package/dist/components/Time.js +4 -4
- package/dist/components/Toast.cjs +5 -0
- package/dist/components/Toast.js +4 -4
- package/dist/components/Tooltip.cjs +5 -0
- package/dist/components/Tooltip.js +2 -2
- package/dist/components/TopBar.cjs +5 -0
- package/dist/components/TopBar.js +1 -1
- package/dist/components/Upload.cjs +5 -0
- package/dist/components/Upload.js +4 -4
- package/dist/components/index.cjs +5 -0
- package/dist/components/index.css +18 -13
- package/dist/components/index.js +15 -15
- package/dist/index.css +18 -13
- package/package.json +1 -1
- package/src/classNames.ts +9 -3
- package/src/components/Breadcrumbs.tsx +13 -6
- package/src/components/Link.tsx +11 -4
- package/src/components/Stack.tsx +1 -1
- package/src/index.css +4 -2
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
baseTransition,
|
|
3
3
|
componentPaddingY,
|
|
4
4
|
typography
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-6CTCHYIS.js";
|
|
6
6
|
import {
|
|
7
7
|
__objRest,
|
|
8
8
|
__spreadProps,
|
|
@@ -23,7 +23,8 @@ var Link = (_a) => {
|
|
|
23
23
|
paddedY,
|
|
24
24
|
align,
|
|
25
25
|
underline = false,
|
|
26
|
-
testid
|
|
26
|
+
testid,
|
|
27
|
+
active
|
|
27
28
|
} = _b, props = __objRest(_b, [
|
|
28
29
|
"as",
|
|
29
30
|
"className",
|
|
@@ -34,17 +35,21 @@ var Link = (_a) => {
|
|
|
34
35
|
"paddedY",
|
|
35
36
|
"align",
|
|
36
37
|
"underline",
|
|
37
|
-
"testid"
|
|
38
|
+
"testid",
|
|
39
|
+
"active"
|
|
38
40
|
]);
|
|
39
41
|
const Component = as;
|
|
40
42
|
const primaryStateStyles = variant === "primary" && !disabled && clsx(
|
|
41
|
-
"text-text-link-
|
|
43
|
+
active ? "text-text-link-active" : "text-text-link-normal",
|
|
44
|
+
"hover:text-text-link-hover active:text-text-link-active"
|
|
42
45
|
);
|
|
43
46
|
const secondaryStateStyles = variant === "secondary" && !disabled && clsx(
|
|
44
|
-
"text-text-
|
|
47
|
+
active ? "text-text-link-active" : "text-text-primary-normal",
|
|
48
|
+
"hover:text-text-link-hover active:text-text-link-active"
|
|
45
49
|
);
|
|
46
50
|
const criticalStateStyles = variant === "critical" && !disabled && clsx(
|
|
47
|
-
"text-text-action-critical-
|
|
51
|
+
active ? "text-text-action-critical-active" : "text-text-action-critical-normal",
|
|
52
|
+
"hover:text-text-action-critical-hover active:text-text-action-critical-active"
|
|
48
53
|
);
|
|
49
54
|
const criticalStateDisabledStyles = disabled && variant === "critical" && clsx("text-text-action-critical-disabled");
|
|
50
55
|
const disabledStateStyles = disabled && ["primary", "secondary"].includes(variant) && clsx("text-text-link-disabled");
|
|
@@ -55,6 +55,11 @@ var typography = {
|
|
|
55
55
|
"font-sans font-normal",
|
|
56
56
|
"text-caption-mobile desktop:text-caption-desktop compact:text-caption-desktop-compact",
|
|
57
57
|
"leading-caption-mobile desktop:leading-caption-desktop"
|
|
58
|
+
),
|
|
59
|
+
breadcrumb: clsx(
|
|
60
|
+
"font-sans font-normal",
|
|
61
|
+
"text-paragraph-mobile desktop:text-paragraph-desktop compact:text-paragraph-desktop-compact",
|
|
62
|
+
"leading-mobile-breadcrumb desktop:leading-desktop-breadcrumb"
|
|
58
63
|
)
|
|
59
64
|
};
|
|
60
65
|
var baseTransition = clsx(
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Paragraph
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7KLALK3J.js";
|
|
4
4
|
import {
|
|
5
5
|
Icon
|
|
6
6
|
} from "./chunk-UAPWR2KE.js";
|
|
7
7
|
import {
|
|
8
8
|
baseTransition,
|
|
9
9
|
componentGap
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-6CTCHYIS.js";
|
|
11
11
|
import {
|
|
12
12
|
__objRest,
|
|
13
13
|
__spreadValues
|
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
} from "./chunk-4RJKB7LC.js";
|
|
4
4
|
import {
|
|
5
5
|
ModalButtons
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-OGMN5SHL.js";
|
|
7
7
|
import {
|
|
8
8
|
ModalContent
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-FRHPFACM.js";
|
|
10
10
|
import {
|
|
11
11
|
ModalHeader
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-VR7X3NMG.js";
|
|
13
13
|
import {
|
|
14
14
|
ModalScrim
|
|
15
15
|
} from "./chunk-ZFOANBWG.js";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Stack
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QA3KMRA6.js";
|
|
4
4
|
import {
|
|
5
5
|
Card
|
|
6
6
|
} from "./chunk-TJWGFGWX.js";
|
|
7
7
|
import {
|
|
8
8
|
Paragraph
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-7KLALK3J.js";
|
|
10
10
|
import {
|
|
11
11
|
Icon
|
|
12
12
|
} from "./chunk-UAPWR2KE.js";
|
|
13
13
|
import {
|
|
14
14
|
typography
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-6CTCHYIS.js";
|
|
16
16
|
|
|
17
17
|
// src/components/Accordion.tsx
|
|
18
18
|
import clsx from "clsx";
|
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
} from "./chunk-UAPWR2KE.js";
|
|
4
4
|
import {
|
|
5
5
|
Button
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-KNP4LUFA.js";
|
|
7
7
|
import {
|
|
8
8
|
layoutGroupGap,
|
|
9
9
|
layoutPaddding
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-6CTCHYIS.js";
|
|
11
11
|
|
|
12
12
|
// src/components/ModalButtons.tsx
|
|
13
13
|
import clsx from "clsx";
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk-ZU2K7BD3.js";
|
|
4
4
|
import {
|
|
5
5
|
Label
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-VP7HJX24.js";
|
|
7
7
|
import {
|
|
8
8
|
Paragraph
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-7KLALK3J.js";
|
|
10
10
|
import {
|
|
11
11
|
Icon
|
|
12
12
|
} from "./chunk-UAPWR2KE.js";
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
baseTransition,
|
|
15
15
|
componentGap,
|
|
16
16
|
componentPadding
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-6CTCHYIS.js";
|
|
18
18
|
import {
|
|
19
19
|
__spreadProps,
|
|
20
20
|
__spreadValues
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Label
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-VP7HJX24.js";
|
|
4
4
|
import {
|
|
5
5
|
Icon
|
|
6
6
|
} from "./chunk-UAPWR2KE.js";
|
|
7
7
|
import {
|
|
8
8
|
Button
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-KNP4LUFA.js";
|
|
10
10
|
import {
|
|
11
11
|
baseTransition,
|
|
12
12
|
componentGap,
|
|
13
13
|
componentPadding,
|
|
14
14
|
componentPaddingMinusBorder,
|
|
15
15
|
componentPaddingYUsingComponentGap
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-6CTCHYIS.js";
|
|
17
17
|
import {
|
|
18
18
|
__objRest,
|
|
19
19
|
__spreadProps,
|
|
@@ -1,53 +1,53 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Tooltip
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QQ5G773N.js";
|
|
4
4
|
import {
|
|
5
5
|
Select
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-6ZYTR6DU.js";
|
|
7
7
|
import {
|
|
8
8
|
Checkbox
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-DXVLA32J.js";
|
|
10
10
|
import {
|
|
11
11
|
DataCellHeader,
|
|
12
12
|
DataGridCell,
|
|
13
13
|
DragAlongCell,
|
|
14
14
|
DraggableCellHeader
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-VGPOI7UP.js";
|
|
16
16
|
import {
|
|
17
17
|
Menu
|
|
18
18
|
} from "./chunk-NA3ODQCN.js";
|
|
19
19
|
import {
|
|
20
20
|
MenuOption
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-RJBKI53P.js";
|
|
22
22
|
import {
|
|
23
23
|
useInfiniteScroll,
|
|
24
24
|
useTableLayout
|
|
25
25
|
} from "./chunk-ZU2K7BD3.js";
|
|
26
26
|
import {
|
|
27
27
|
Search
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-OP5XCT3L.js";
|
|
29
29
|
import {
|
|
30
30
|
Input
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-YCKRRAJA.js";
|
|
32
32
|
import {
|
|
33
33
|
Label
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-VP7HJX24.js";
|
|
35
35
|
import {
|
|
36
36
|
Subheader
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-FS2RQE55.js";
|
|
38
38
|
import {
|
|
39
39
|
Paragraph
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-7KLALK3J.js";
|
|
41
41
|
import {
|
|
42
42
|
Icon
|
|
43
43
|
} from "./chunk-UAPWR2KE.js";
|
|
44
44
|
import {
|
|
45
45
|
Button
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-KNP4LUFA.js";
|
|
47
47
|
import {
|
|
48
48
|
componentGap,
|
|
49
49
|
componentPadding
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-6CTCHYIS.js";
|
|
51
51
|
import {
|
|
52
52
|
__objRest,
|
|
53
53
|
__spreadProps,
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
} from "./chunk-VP36B2MM.js";
|
|
7
7
|
import {
|
|
8
8
|
MenuOption
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-RJBKI53P.js";
|
|
10
10
|
import {
|
|
11
11
|
Search
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-OP5XCT3L.js";
|
|
13
13
|
import {
|
|
14
14
|
CSS
|
|
15
15
|
} from "./chunk-WVUIIBRR.js";
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
import {
|
|
20
20
|
componentPadding,
|
|
21
21
|
paddingUsingComponentGap
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-6CTCHYIS.js";
|
|
23
23
|
import {
|
|
24
24
|
__objRest,
|
|
25
25
|
__spreadProps,
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Heading2
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-KEDK5EWD.js";
|
|
4
4
|
import {
|
|
5
5
|
Icon
|
|
6
6
|
} from "./chunk-UAPWR2KE.js";
|
|
7
7
|
import {
|
|
8
8
|
Button
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-KNP4LUFA.js";
|
|
10
10
|
import {
|
|
11
11
|
layoutGroupGap,
|
|
12
12
|
layoutPaddding
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-6CTCHYIS.js";
|
|
14
14
|
|
|
15
15
|
// src/components/ModalHeader.tsx
|
|
16
16
|
import clsx from "clsx";
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-NA3ODQCN.js";
|
|
4
4
|
import {
|
|
5
5
|
MenuOption
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-RJBKI53P.js";
|
|
7
7
|
import {
|
|
8
8
|
Icon
|
|
9
9
|
} from "./chunk-UAPWR2KE.js";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
layoutGap,
|
|
13
13
|
layoutPaddding,
|
|
14
14
|
typography
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-6CTCHYIS.js";
|
|
16
16
|
import {
|
|
17
17
|
__objRest,
|
|
18
18
|
__spreadProps,
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
} from "./chunk-5UH6QUFB.js";
|
|
6
6
|
import {
|
|
7
7
|
Label
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-VP7HJX24.js";
|
|
9
9
|
import {
|
|
10
10
|
Icon
|
|
11
11
|
} from "./chunk-UAPWR2KE.js";
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
componentPaddingMinusBorder,
|
|
16
16
|
componentPaddingXUsingComponentGap,
|
|
17
17
|
typography
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-6CTCHYIS.js";
|
|
19
19
|
import {
|
|
20
20
|
__objRest,
|
|
21
21
|
__spreadProps,
|
|
@@ -124,6 +124,11 @@ var typography = {
|
|
|
124
124
|
"font-sans font-normal",
|
|
125
125
|
"text-caption-mobile desktop:text-caption-desktop compact:text-caption-desktop-compact",
|
|
126
126
|
"leading-caption-mobile desktop:leading-caption-desktop"
|
|
127
|
+
),
|
|
128
|
+
breadcrumb: (0, import_clsx.default)(
|
|
129
|
+
"font-sans font-normal",
|
|
130
|
+
"text-paragraph-mobile desktop:text-paragraph-desktop compact:text-paragraph-desktop-compact",
|
|
131
|
+
"leading-mobile-breadcrumb desktop:leading-desktop-breadcrumb"
|
|
127
132
|
)
|
|
128
133
|
};
|
|
129
134
|
var baseTransition = (0, import_clsx.default)(
|
|
@@ -122,6 +122,11 @@ var typography = {
|
|
|
122
122
|
"font-sans font-normal",
|
|
123
123
|
"text-caption-mobile desktop:text-caption-desktop compact:text-caption-desktop-compact",
|
|
124
124
|
"leading-caption-mobile desktop:leading-caption-desktop"
|
|
125
|
+
),
|
|
126
|
+
breadcrumb: (0, import_clsx.default)(
|
|
127
|
+
"font-sans font-normal",
|
|
128
|
+
"text-paragraph-mobile desktop:text-paragraph-desktop compact:text-paragraph-desktop-compact",
|
|
129
|
+
"leading-mobile-breadcrumb desktop:leading-desktop-breadcrumb"
|
|
125
130
|
)
|
|
126
131
|
};
|
|
127
132
|
var baseTransition = (0, import_clsx.default)(
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
Accordion
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-NWELJDBW.js";
|
|
5
|
+
import "../chunk-QA3KMRA6.js";
|
|
6
6
|
import "../chunk-TJWGFGWX.js";
|
|
7
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-7KLALK3J.js";
|
|
8
8
|
import "../chunk-UAPWR2KE.js";
|
|
9
|
-
import "../chunk-
|
|
9
|
+
import "../chunk-6CTCHYIS.js";
|
|
10
10
|
import "../chunk-BBZEL7EG.js";
|
|
11
11
|
export {
|
|
12
12
|
Accordion
|
|
@@ -127,6 +127,11 @@ var typography = {
|
|
|
127
127
|
"font-sans font-normal",
|
|
128
128
|
"text-caption-mobile desktop:text-caption-desktop compact:text-caption-desktop-compact",
|
|
129
129
|
"leading-caption-mobile desktop:leading-caption-desktop"
|
|
130
|
+
),
|
|
131
|
+
breadcrumb: (0, import_clsx.default)(
|
|
132
|
+
"font-sans font-normal",
|
|
133
|
+
"text-paragraph-mobile desktop:text-paragraph-desktop compact:text-paragraph-desktop-compact",
|
|
134
|
+
"leading-mobile-breadcrumb desktop:leading-desktop-breadcrumb"
|
|
130
135
|
)
|
|
131
136
|
};
|
|
132
137
|
var baseTransition = (0, import_clsx.default)(
|
|
@@ -209,7 +214,8 @@ var Link = (_a) => {
|
|
|
209
214
|
paddedY,
|
|
210
215
|
align,
|
|
211
216
|
underline = false,
|
|
212
|
-
testid
|
|
217
|
+
testid,
|
|
218
|
+
active
|
|
213
219
|
} = _b, props = __objRest(_b, [
|
|
214
220
|
"as",
|
|
215
221
|
"className",
|
|
@@ -220,17 +226,21 @@ var Link = (_a) => {
|
|
|
220
226
|
"paddedY",
|
|
221
227
|
"align",
|
|
222
228
|
"underline",
|
|
223
|
-
"testid"
|
|
229
|
+
"testid",
|
|
230
|
+
"active"
|
|
224
231
|
]);
|
|
225
232
|
const Component = as;
|
|
226
233
|
const primaryStateStyles = variant === "primary" && !disabled && (0, import_clsx2.default)(
|
|
227
|
-
"text-text-link-
|
|
234
|
+
active ? "text-text-link-active" : "text-text-link-normal",
|
|
235
|
+
"hover:text-text-link-hover active:text-text-link-active"
|
|
228
236
|
);
|
|
229
237
|
const secondaryStateStyles = variant === "secondary" && !disabled && (0, import_clsx2.default)(
|
|
230
|
-
"text-text-
|
|
238
|
+
active ? "text-text-link-active" : "text-text-primary-normal",
|
|
239
|
+
"hover:text-text-link-hover active:text-text-link-active"
|
|
231
240
|
);
|
|
232
241
|
const criticalStateStyles = variant === "critical" && !disabled && (0, import_clsx2.default)(
|
|
233
|
-
"text-text-action-critical-
|
|
242
|
+
active ? "text-text-action-critical-active" : "text-text-action-critical-normal",
|
|
243
|
+
"hover:text-text-action-critical-hover active:text-text-action-critical-active"
|
|
234
244
|
);
|
|
235
245
|
const criticalStateDisabledStyles = disabled && variant === "critical" && (0, import_clsx2.default)("text-text-action-critical-disabled");
|
|
236
246
|
const disabledStateStyles = disabled && ["primary", "secondary"].includes(variant) && (0, import_clsx2.default)("text-text-link-disabled");
|
|
@@ -321,9 +331,9 @@ var Breadcrumb = ({
|
|
|
321
331
|
}) => {
|
|
322
332
|
const linkPadding = (0, import_clsx4.default)(
|
|
323
333
|
"!text-text-link-normal whitespace-nowrap",
|
|
324
|
-
"py-
|
|
325
|
-
"desktop:py-
|
|
326
|
-
"compact:py-
|
|
334
|
+
"py-mobile-component-padding",
|
|
335
|
+
"desktop:py-desktop-component-padding",
|
|
336
|
+
"compact:py-desktop-compact-component-padding"
|
|
327
337
|
);
|
|
328
338
|
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("li", { id, "data-testid": testid, className: "flex items-center", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
329
339
|
Link,
|
|
@@ -332,13 +342,19 @@ var Breadcrumb = ({
|
|
|
332
342
|
"data-testid": testid ? `${testid}-link` : void 0,
|
|
333
343
|
className: linkPadding,
|
|
334
344
|
href,
|
|
345
|
+
typographyStyle: "breadcrumb",
|
|
335
346
|
onClick,
|
|
336
347
|
children
|
|
337
348
|
}
|
|
338
349
|
) }, href);
|
|
339
350
|
};
|
|
340
351
|
var Chevron = () => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("li", { className: "flex items-center", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Icon, { name: "chevron_right", size: 16 }) });
|
|
341
|
-
var Breadcrumbs = ({
|
|
352
|
+
var Breadcrumbs = ({
|
|
353
|
+
asCardStyle,
|
|
354
|
+
id,
|
|
355
|
+
testid,
|
|
356
|
+
crumbs
|
|
357
|
+
}) => {
|
|
342
358
|
const scrollableElement = import_react.default.useRef(null);
|
|
343
359
|
const [isOverflow, setIsOverflow] = (0, import_react.useState)(false);
|
|
344
360
|
(0, import_react.useLayoutEffect)(() => {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
Link
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-3BCGS6VO.js";
|
|
5
5
|
import {
|
|
6
6
|
Icon
|
|
7
7
|
} from "../chunk-UAPWR2KE.js";
|
|
8
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-6CTCHYIS.js";
|
|
9
9
|
import "../chunk-BBZEL7EG.js";
|
|
10
10
|
|
|
11
11
|
// src/components/Breadcrumbs.tsx
|
|
@@ -21,9 +21,9 @@ var Breadcrumb = ({
|
|
|
21
21
|
}) => {
|
|
22
22
|
const linkPadding = clsx(
|
|
23
23
|
"!text-text-link-normal whitespace-nowrap",
|
|
24
|
-
"py-
|
|
25
|
-
"desktop:py-
|
|
26
|
-
"compact:py-
|
|
24
|
+
"py-mobile-component-padding",
|
|
25
|
+
"desktop:py-desktop-component-padding",
|
|
26
|
+
"compact:py-desktop-compact-component-padding"
|
|
27
27
|
);
|
|
28
28
|
return /* @__PURE__ */ jsx("li", { id, "data-testid": testid, className: "flex items-center", children: /* @__PURE__ */ jsx(
|
|
29
29
|
Link,
|
|
@@ -32,13 +32,19 @@ var Breadcrumb = ({
|
|
|
32
32
|
"data-testid": testid ? `${testid}-link` : void 0,
|
|
33
33
|
className: linkPadding,
|
|
34
34
|
href,
|
|
35
|
+
typographyStyle: "breadcrumb",
|
|
35
36
|
onClick,
|
|
36
37
|
children
|
|
37
38
|
}
|
|
38
39
|
) }, href);
|
|
39
40
|
};
|
|
40
41
|
var Chevron = () => /* @__PURE__ */ jsx("li", { className: "flex items-center", "aria-hidden": "true", children: /* @__PURE__ */ jsx(Icon, { name: "chevron_right", size: 16 }) });
|
|
41
|
-
var Breadcrumbs = ({
|
|
42
|
+
var Breadcrumbs = ({
|
|
43
|
+
asCardStyle,
|
|
44
|
+
id,
|
|
45
|
+
testid,
|
|
46
|
+
crumbs
|
|
47
|
+
}) => {
|
|
42
48
|
const scrollableElement = React.useRef(null);
|
|
43
49
|
const [isOverflow, setIsOverflow] = useState(false);
|
|
44
50
|
useLayoutEffect(() => {
|
|
@@ -121,6 +121,11 @@ var typography = {
|
|
|
121
121
|
"font-sans font-normal",
|
|
122
122
|
"text-caption-mobile desktop:text-caption-desktop compact:text-caption-desktop-compact",
|
|
123
123
|
"leading-caption-mobile desktop:leading-caption-desktop"
|
|
124
|
+
),
|
|
125
|
+
breadcrumb: (0, import_clsx.default)(
|
|
126
|
+
"font-sans font-normal",
|
|
127
|
+
"text-paragraph-mobile desktop:text-paragraph-desktop compact:text-paragraph-desktop-compact",
|
|
128
|
+
"leading-mobile-breadcrumb desktop:leading-desktop-breadcrumb"
|
|
124
129
|
)
|
|
125
130
|
};
|
|
126
131
|
var baseTransition = (0, import_clsx.default)(
|