@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
|
@@ -168,6 +168,8 @@
|
|
|
168
168
|
--text-caption-desktop-compact: 12px;
|
|
169
169
|
--leading-caption-desktop: 1.333;
|
|
170
170
|
--leading-caption-mobile: 1.333;
|
|
171
|
+
--spacing-mobile-breadcrumb: 24px;
|
|
172
|
+
--spacing-desktop-breadcrumb: 24px;
|
|
171
173
|
--spacing-desktop-container-gap: 16px;
|
|
172
174
|
--spacing-mobile-container-gap: 16px;
|
|
173
175
|
--spacing-desktop-compact-container-gap: 16px;
|
|
@@ -1909,9 +1911,6 @@
|
|
|
1909
1911
|
.py-\[15px\] {
|
|
1910
1912
|
padding-block: 15px;
|
|
1911
1913
|
}
|
|
1912
|
-
.py-\[calc\(var\(--spacing-mobile-component-padding\)_\+_3px\)\] {
|
|
1913
|
-
padding-block: calc(var(--spacing-mobile-component-padding) + 3px);
|
|
1914
|
-
}
|
|
1915
1914
|
.py-mobile-component-gap {
|
|
1916
1915
|
padding-block: var(--spacing-mobile-component-gap);
|
|
1917
1916
|
}
|
|
@@ -2052,6 +2051,10 @@
|
|
|
2052
2051
|
--tw-leading: var(--leading-link-mobile);
|
|
2053
2052
|
line-height: var(--leading-link-mobile);
|
|
2054
2053
|
}
|
|
2054
|
+
.leading-mobile-breadcrumb {
|
|
2055
|
+
--tw-leading: var(--spacing-mobile-breadcrumb);
|
|
2056
|
+
line-height: var(--spacing-mobile-breadcrumb);
|
|
2057
|
+
}
|
|
2055
2058
|
.leading-paragraph-mobile {
|
|
2056
2059
|
--tw-leading: var(--leading-paragraph-mobile);
|
|
2057
2060
|
line-height: var(--leading-paragraph-mobile);
|
|
@@ -2152,6 +2155,9 @@
|
|
|
2152
2155
|
.text-success-400 {
|
|
2153
2156
|
color: var(--color-success-400);
|
|
2154
2157
|
}
|
|
2158
|
+
.text-text-action-critical-active {
|
|
2159
|
+
color: var(--color-text-action-critical-active);
|
|
2160
|
+
}
|
|
2155
2161
|
.text-text-action-critical-disabled {
|
|
2156
2162
|
color: var(--color-text-action-critical-disabled);
|
|
2157
2163
|
}
|
|
@@ -2167,6 +2173,9 @@
|
|
|
2167
2173
|
.text-text-critical-normal {
|
|
2168
2174
|
color: var(--color-text-critical-normal);
|
|
2169
2175
|
}
|
|
2176
|
+
.text-text-link-active {
|
|
2177
|
+
color: var(--color-text-link-active);
|
|
2178
|
+
}
|
|
2170
2179
|
.text-text-link-disabled {
|
|
2171
2180
|
color: var(--color-text-link-disabled);
|
|
2172
2181
|
}
|
|
@@ -3714,11 +3723,6 @@
|
|
|
3714
3723
|
padding-inline: var(--spacing-desktop-compact-layout-padding);
|
|
3715
3724
|
}
|
|
3716
3725
|
}
|
|
3717
|
-
.compact\:py-\[calc\(var\(--spacing-desktop-compact-component-padding\)_\+_3px\)\] {
|
|
3718
|
-
&:where([data-compact]) {
|
|
3719
|
-
padding-block: calc(var(--spacing-desktop-compact-component-padding) + 3px);
|
|
3720
|
-
}
|
|
3721
|
-
}
|
|
3722
3726
|
.compact\:py-desktop-compact-component-gap {
|
|
3723
3727
|
&:where([data-compact]) {
|
|
3724
3728
|
padding-block: var(--spacing-desktop-compact-component-gap);
|
|
@@ -4030,11 +4034,6 @@
|
|
|
4030
4034
|
padding-inline: var(--spacing-desktop-layout-padding);
|
|
4031
4035
|
}
|
|
4032
4036
|
}
|
|
4033
|
-
.desktop\:py-\[calc\(var\(--spacing-desktop-component-padding\)_\+_3px\)\] {
|
|
4034
|
-
@container root (width >= 48rem) {
|
|
4035
|
-
padding-block: calc(var(--spacing-desktop-component-padding) + 3px);
|
|
4036
|
-
}
|
|
4037
|
-
}
|
|
4038
4037
|
.desktop\:py-desktop-component-gap {
|
|
4039
4038
|
@container root (width >= 48rem) {
|
|
4040
4039
|
padding-block: var(--spacing-desktop-component-gap);
|
|
@@ -4136,6 +4135,12 @@
|
|
|
4136
4135
|
line-height: var(--leading-caption-desktop);
|
|
4137
4136
|
}
|
|
4138
4137
|
}
|
|
4138
|
+
.desktop\:leading-desktop-breadcrumb {
|
|
4139
|
+
@container root (width >= 48rem) {
|
|
4140
|
+
--tw-leading: var(--spacing-desktop-breadcrumb);
|
|
4141
|
+
line-height: var(--spacing-desktop-breadcrumb);
|
|
4142
|
+
}
|
|
4143
|
+
}
|
|
4139
4144
|
.desktop\:leading-display-1-desktop {
|
|
4140
4145
|
@container root (width >= 48rem) {
|
|
4141
4146
|
--tw-leading: var(--leading-display-1-desktop);
|
package/dist/components/index.js
CHANGED
|
@@ -1,62 +1,62 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DataGrid
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-VDO7VGAD.js";
|
|
4
4
|
import {
|
|
5
5
|
Tooltip
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-QQ5G773N.js";
|
|
7
7
|
import {
|
|
8
8
|
Select
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-6ZYTR6DU.js";
|
|
10
10
|
import {
|
|
11
11
|
Checkbox
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-DXVLA32J.js";
|
|
13
13
|
import {
|
|
14
14
|
DataCellHeader,
|
|
15
15
|
DataGridCell,
|
|
16
16
|
DragAlongCell,
|
|
17
17
|
DraggableCellHeader
|
|
18
|
-
} from "../chunk-
|
|
18
|
+
} from "../chunk-VGPOI7UP.js";
|
|
19
19
|
import {
|
|
20
20
|
Menu
|
|
21
21
|
} from "../chunk-NA3ODQCN.js";
|
|
22
22
|
import "../chunk-VP36B2MM.js";
|
|
23
23
|
import {
|
|
24
24
|
MenuOption
|
|
25
|
-
} from "../chunk-
|
|
25
|
+
} from "../chunk-RJBKI53P.js";
|
|
26
26
|
import "../chunk-ZU2K7BD3.js";
|
|
27
27
|
import "../chunk-VXWSAIB5.js";
|
|
28
28
|
import "../chunk-T3F37S6Z.js";
|
|
29
29
|
import {
|
|
30
30
|
Search
|
|
31
|
-
} from "../chunk-
|
|
31
|
+
} from "../chunk-OP5XCT3L.js";
|
|
32
32
|
import {
|
|
33
33
|
Input
|
|
34
|
-
} from "../chunk-
|
|
34
|
+
} from "../chunk-YCKRRAJA.js";
|
|
35
35
|
import "../chunk-5UH6QUFB.js";
|
|
36
36
|
import {
|
|
37
37
|
Label
|
|
38
|
-
} from "../chunk-
|
|
38
|
+
} from "../chunk-VP7HJX24.js";
|
|
39
39
|
import "../chunk-WVUIIBRR.js";
|
|
40
40
|
import {
|
|
41
41
|
Subheader
|
|
42
|
-
} from "../chunk-
|
|
42
|
+
} from "../chunk-FS2RQE55.js";
|
|
43
43
|
import {
|
|
44
44
|
Accordion
|
|
45
|
-
} from "../chunk-
|
|
46
|
-
import "../chunk-
|
|
45
|
+
} from "../chunk-NWELJDBW.js";
|
|
46
|
+
import "../chunk-QA3KMRA6.js";
|
|
47
47
|
import {
|
|
48
48
|
Card
|
|
49
49
|
} from "../chunk-TJWGFGWX.js";
|
|
50
50
|
import {
|
|
51
51
|
Paragraph
|
|
52
|
-
} from "../chunk-
|
|
52
|
+
} from "../chunk-7KLALK3J.js";
|
|
53
53
|
import {
|
|
54
54
|
Icon
|
|
55
55
|
} from "../chunk-UAPWR2KE.js";
|
|
56
56
|
import {
|
|
57
57
|
Button
|
|
58
|
-
} from "../chunk-
|
|
59
|
-
import "../chunk-
|
|
58
|
+
} from "../chunk-KNP4LUFA.js";
|
|
59
|
+
import "../chunk-6CTCHYIS.js";
|
|
60
60
|
import "../chunk-BBZEL7EG.js";
|
|
61
61
|
export {
|
|
62
62
|
Accordion,
|
package/dist/index.css
CHANGED
|
@@ -146,6 +146,8 @@
|
|
|
146
146
|
--text-caption-desktop-compact: 12px;
|
|
147
147
|
--leading-caption-desktop: 1.333;
|
|
148
148
|
--leading-caption-mobile: 1.333;
|
|
149
|
+
--spacing-mobile-breadcrumb: 24px;
|
|
150
|
+
--spacing-desktop-breadcrumb: 24px;
|
|
149
151
|
--spacing-desktop-container-gap: 16px;
|
|
150
152
|
--spacing-mobile-container-gap: 16px;
|
|
151
153
|
--spacing-desktop-compact-container-gap: 16px;
|
|
@@ -1887,9 +1889,6 @@
|
|
|
1887
1889
|
.py-\[15px\] {
|
|
1888
1890
|
padding-block: 15px;
|
|
1889
1891
|
}
|
|
1890
|
-
.py-\[calc\(var\(--spacing-mobile-component-padding\)_\+_3px\)\] {
|
|
1891
|
-
padding-block: calc(var(--spacing-mobile-component-padding) + 3px);
|
|
1892
|
-
}
|
|
1893
1892
|
.py-mobile-component-gap {
|
|
1894
1893
|
padding-block: var(--spacing-mobile-component-gap);
|
|
1895
1894
|
}
|
|
@@ -2030,6 +2029,10 @@
|
|
|
2030
2029
|
--tw-leading: var(--leading-link-mobile);
|
|
2031
2030
|
line-height: var(--leading-link-mobile);
|
|
2032
2031
|
}
|
|
2032
|
+
.leading-mobile-breadcrumb {
|
|
2033
|
+
--tw-leading: var(--spacing-mobile-breadcrumb);
|
|
2034
|
+
line-height: var(--spacing-mobile-breadcrumb);
|
|
2035
|
+
}
|
|
2033
2036
|
.leading-paragraph-mobile {
|
|
2034
2037
|
--tw-leading: var(--leading-paragraph-mobile);
|
|
2035
2038
|
line-height: var(--leading-paragraph-mobile);
|
|
@@ -2130,6 +2133,9 @@
|
|
|
2130
2133
|
.text-success-400 {
|
|
2131
2134
|
color: var(--color-success-400);
|
|
2132
2135
|
}
|
|
2136
|
+
.text-text-action-critical-active {
|
|
2137
|
+
color: var(--color-text-action-critical-active);
|
|
2138
|
+
}
|
|
2133
2139
|
.text-text-action-critical-disabled {
|
|
2134
2140
|
color: var(--color-text-action-critical-disabled);
|
|
2135
2141
|
}
|
|
@@ -2145,6 +2151,9 @@
|
|
|
2145
2151
|
.text-text-critical-normal {
|
|
2146
2152
|
color: var(--color-text-critical-normal);
|
|
2147
2153
|
}
|
|
2154
|
+
.text-text-link-active {
|
|
2155
|
+
color: var(--color-text-link-active);
|
|
2156
|
+
}
|
|
2148
2157
|
.text-text-link-disabled {
|
|
2149
2158
|
color: var(--color-text-link-disabled);
|
|
2150
2159
|
}
|
|
@@ -3692,11 +3701,6 @@
|
|
|
3692
3701
|
padding-inline: var(--spacing-desktop-compact-layout-padding);
|
|
3693
3702
|
}
|
|
3694
3703
|
}
|
|
3695
|
-
.compact\:py-\[calc\(var\(--spacing-desktop-compact-component-padding\)_\+_3px\)\] {
|
|
3696
|
-
&:where([data-compact]) {
|
|
3697
|
-
padding-block: calc(var(--spacing-desktop-compact-component-padding) + 3px);
|
|
3698
|
-
}
|
|
3699
|
-
}
|
|
3700
3704
|
.compact\:py-desktop-compact-component-gap {
|
|
3701
3705
|
&:where([data-compact]) {
|
|
3702
3706
|
padding-block: var(--spacing-desktop-compact-component-gap);
|
|
@@ -4008,11 +4012,6 @@
|
|
|
4008
4012
|
padding-inline: var(--spacing-desktop-layout-padding);
|
|
4009
4013
|
}
|
|
4010
4014
|
}
|
|
4011
|
-
.desktop\:py-\[calc\(var\(--spacing-desktop-component-padding\)_\+_3px\)\] {
|
|
4012
|
-
@container root (width >= 48rem) {
|
|
4013
|
-
padding-block: calc(var(--spacing-desktop-component-padding) + 3px);
|
|
4014
|
-
}
|
|
4015
|
-
}
|
|
4016
4015
|
.desktop\:py-desktop-component-gap {
|
|
4017
4016
|
@container root (width >= 48rem) {
|
|
4018
4017
|
padding-block: var(--spacing-desktop-component-gap);
|
|
@@ -4114,6 +4113,12 @@
|
|
|
4114
4113
|
line-height: var(--leading-caption-desktop);
|
|
4115
4114
|
}
|
|
4116
4115
|
}
|
|
4116
|
+
.desktop\:leading-desktop-breadcrumb {
|
|
4117
|
+
@container root (width >= 48rem) {
|
|
4118
|
+
--tw-leading: var(--spacing-desktop-breadcrumb);
|
|
4119
|
+
line-height: var(--spacing-desktop-breadcrumb);
|
|
4120
|
+
}
|
|
4121
|
+
}
|
|
4117
4122
|
.desktop\:leading-display-1-desktop {
|
|
4118
4123
|
@container root (width >= 48rem) {
|
|
4119
4124
|
--tw-leading: var(--leading-display-1-desktop);
|
package/package.json
CHANGED
package/src/classNames.ts
CHANGED
|
@@ -65,6 +65,12 @@ export const typography = {
|
|
|
65
65
|
"text-caption-mobile desktop:text-caption-desktop compact:text-caption-desktop-compact",
|
|
66
66
|
"leading-caption-mobile desktop:leading-caption-desktop",
|
|
67
67
|
),
|
|
68
|
+
|
|
69
|
+
breadcrumb: clsx(
|
|
70
|
+
"font-sans font-normal",
|
|
71
|
+
"text-paragraph-mobile desktop:text-paragraph-desktop compact:text-paragraph-desktop-compact",
|
|
72
|
+
"leading-mobile-breadcrumb desktop:leading-desktop-breadcrumb",
|
|
73
|
+
),
|
|
68
74
|
};
|
|
69
75
|
|
|
70
76
|
export const baseTransition = clsx(
|
|
@@ -96,8 +102,8 @@ export const componentPaddingBottom = clsx(
|
|
|
96
102
|
);
|
|
97
103
|
|
|
98
104
|
export const componentPaddingX = clsx(
|
|
99
|
-
"px-mobile-component-padding desktop:px-desktop-component-padding compact:px-desktop-compact-component-padding"
|
|
100
|
-
)
|
|
105
|
+
"px-mobile-component-padding desktop:px-desktop-component-padding compact:px-desktop-compact-component-padding",
|
|
106
|
+
);
|
|
101
107
|
|
|
102
108
|
export const componentPaddingY = clsx(
|
|
103
109
|
"py-mobile-component-padding desktop:py-desktop-component-padding compact:py-desktop-compact-component-padding",
|
|
@@ -120,7 +126,7 @@ export const componentPaddingMinus2pxBorder = clsx(
|
|
|
120
126
|
);
|
|
121
127
|
|
|
122
128
|
export const layoutPaddding = clsx(
|
|
123
|
-
"p-mobile-layout-padding desktop:p-desktop-layout-padding compact:p-desktop-compact-layout-padding"
|
|
129
|
+
"p-mobile-layout-padding desktop:p-desktop-layout-padding compact:p-desktop-compact-layout-padding",
|
|
124
130
|
);
|
|
125
131
|
|
|
126
132
|
export const layoutPaddingBottom = clsx(
|
|
@@ -26,13 +26,13 @@ export const Breadcrumb = ({
|
|
|
26
26
|
children,
|
|
27
27
|
onClick,
|
|
28
28
|
id,
|
|
29
|
-
testid
|
|
29
|
+
testid,
|
|
30
30
|
}: BreadcrumbProps) => {
|
|
31
31
|
const linkPadding = clsx(
|
|
32
32
|
"!text-text-link-normal whitespace-nowrap",
|
|
33
|
-
"py-
|
|
34
|
-
"desktop:py-
|
|
35
|
-
"compact:py-
|
|
33
|
+
"py-mobile-component-padding",
|
|
34
|
+
"desktop:py-desktop-component-padding",
|
|
35
|
+
"compact:py-desktop-compact-component-padding",
|
|
36
36
|
);
|
|
37
37
|
|
|
38
38
|
return (
|
|
@@ -42,6 +42,7 @@ export const Breadcrumb = ({
|
|
|
42
42
|
data-testid={testid ? `${testid}-link` : undefined}
|
|
43
43
|
className={linkPadding}
|
|
44
44
|
href={href}
|
|
45
|
+
typographyStyle="breadcrumb"
|
|
45
46
|
onClick={onClick}
|
|
46
47
|
>
|
|
47
48
|
{children}
|
|
@@ -56,7 +57,12 @@ const Chevron = () => (
|
|
|
56
57
|
</li>
|
|
57
58
|
);
|
|
58
59
|
|
|
59
|
-
export const Breadcrumbs = ({
|
|
60
|
+
export const Breadcrumbs = ({
|
|
61
|
+
asCardStyle,
|
|
62
|
+
id,
|
|
63
|
+
testid,
|
|
64
|
+
crumbs,
|
|
65
|
+
}: BreadcrumbsProps) => {
|
|
60
66
|
const scrollableElement = React.useRef<HTMLElement | null>(null);
|
|
61
67
|
const [isOverflow, setIsOverflow] = useState(false);
|
|
62
68
|
|
|
@@ -88,7 +94,8 @@ export const Breadcrumbs = ({ asCardStyle, id, testid, crumbs }: BreadcrumbsProp
|
|
|
88
94
|
{
|
|
89
95
|
"bg-white rounded-base shadow-4 px-mobile-layout-padding desktop:px-desktop-layout-padding compact:px-desktop-compact-layout-padding":
|
|
90
96
|
asCardStyle,
|
|
91
|
-
"px-mobile-container-padding desktop:px-desktop-container-padding compact:px-desktop-compact-container-padding":
|
|
97
|
+
"px-mobile-container-padding desktop:px-desktop-container-padding compact:px-desktop-compact-container-padding":
|
|
98
|
+
!asCardStyle,
|
|
92
99
|
},
|
|
93
100
|
)}
|
|
94
101
|
aria-label="Breadcrumb"
|
package/src/components/Link.tsx
CHANGED
|
@@ -8,7 +8,8 @@ export type LinkProps = AsProps &
|
|
|
8
8
|
TextAttributes &
|
|
9
9
|
TypographyProps & {
|
|
10
10
|
variant?: "primary" | "secondary" | "critical";
|
|
11
|
-
typographyStyle?: "paragraph" | "caption";
|
|
11
|
+
typographyStyle?: "paragraph" | "caption" | "breadcrumb";
|
|
12
|
+
active?: boolean;
|
|
12
13
|
disabled?: boolean;
|
|
13
14
|
paddedY?: boolean;
|
|
14
15
|
onClick?: (event: MouseEvent<HTMLElement>) => void;
|
|
@@ -28,6 +29,7 @@ export const Link = ({
|
|
|
28
29
|
align,
|
|
29
30
|
underline = false,
|
|
30
31
|
testid,
|
|
32
|
+
active,
|
|
31
33
|
...props
|
|
32
34
|
}: LinkProps) => {
|
|
33
35
|
const Component = as;
|
|
@@ -36,21 +38,26 @@ export const Link = ({
|
|
|
36
38
|
variant === "primary" &&
|
|
37
39
|
!disabled &&
|
|
38
40
|
clsx(
|
|
39
|
-
"text-text-link-
|
|
41
|
+
active ? "text-text-link-active" : "text-text-link-normal",
|
|
42
|
+
"hover:text-text-link-hover active:text-text-link-active",
|
|
40
43
|
);
|
|
41
44
|
|
|
42
45
|
const secondaryStateStyles =
|
|
43
46
|
variant === "secondary" &&
|
|
44
47
|
!disabled &&
|
|
45
48
|
clsx(
|
|
46
|
-
"text-text-
|
|
49
|
+
active ? "text-text-link-active" : "text-text-primary-normal",
|
|
50
|
+
"hover:text-text-link-hover active:text-text-link-active",
|
|
47
51
|
);
|
|
48
52
|
|
|
49
53
|
const criticalStateStyles =
|
|
50
54
|
variant === "critical" &&
|
|
51
55
|
!disabled &&
|
|
52
56
|
clsx(
|
|
53
|
-
|
|
57
|
+
active
|
|
58
|
+
? "text-text-action-critical-active"
|
|
59
|
+
: "text-text-action-critical-normal",
|
|
60
|
+
"hover:text-text-action-critical-hover active:text-text-action-critical-active",
|
|
54
61
|
);
|
|
55
62
|
|
|
56
63
|
const criticalStateDisabledStyles =
|
package/src/components/Stack.tsx
CHANGED
package/src/index.css
CHANGED
|
@@ -190,6 +190,9 @@
|
|
|
190
190
|
--leading-caption-mobile: 1.333;
|
|
191
191
|
|
|
192
192
|
/* ── Spacing ───────────────────────────── */
|
|
193
|
+
--spacing-mobile-breadcrumb: 24px;
|
|
194
|
+
--spacing-desktop-breadcrumb: 24px;
|
|
195
|
+
|
|
193
196
|
--spacing-desktop-container-gap: 16px;
|
|
194
197
|
--spacing-mobile-container-gap: 16px;
|
|
195
198
|
--spacing-desktop-compact-container-gap: 16px;
|
|
@@ -422,8 +425,7 @@
|
|
|
422
425
|
); /* Created for Main Navigation */
|
|
423
426
|
}
|
|
424
427
|
|
|
425
|
-
[data-theme="light"]{
|
|
426
|
-
|
|
428
|
+
[data-theme="light"] {
|
|
427
429
|
/** Color Token Aliases */
|
|
428
430
|
|
|
429
431
|
--color-text-primary-normal: var(--color-neutral-500);
|