@equinor/eds-core-react 0.22.0 → 0.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/eds-core-react.cjs.js +121 -114
- package/dist/esm/components/Accordion/Accordion.js +1 -1
- package/dist/esm/components/Accordion/AccordionHeader.js +4 -4
- package/dist/esm/components/Accordion/AccordionItem.js +2 -2
- package/dist/esm/components/Autocomplete/Autocomplete.js +7 -7
- package/dist/esm/components/Autocomplete/Option.js +1 -1
- package/dist/esm/components/Banner/Banner.js +3 -3
- package/dist/esm/components/Banner/BannerMessage.js +1 -1
- package/dist/esm/components/Breadcrumbs/Breadcrumb.js +6 -6
- package/dist/esm/components/Breadcrumbs/Breadcrumbs.js +2 -2
- package/dist/esm/components/Button/Button.js +1 -1
- package/dist/esm/components/Button/ToggleButton/ToggleButton.js +1 -1
- package/dist/esm/components/Button/tokens/button.js +10 -10
- package/dist/esm/components/Button/tokens/contained.js +1 -1
- package/dist/esm/components/Button/tokens/contained_icon.js +3 -3
- package/dist/esm/components/Button/tokens/ghost.js +1 -1
- package/dist/esm/components/Button/tokens/icon.js +4 -4
- package/dist/esm/components/Button/tokens/outlined.js +2 -2
- package/dist/esm/components/Card/Card.js +1 -1
- package/dist/esm/components/Card/CardActions.js +1 -1
- package/dist/esm/components/Checkbox/Input.js +3 -3
- package/dist/esm/components/Dialog/Dialog.js +3 -3
- package/dist/esm/components/Dialog/DialogContent.js +1 -1
- package/dist/esm/components/Dialog/DialogHeader.js +1 -1
- package/dist/esm/components/Icon/Icon.js +7 -7
- package/dist/esm/components/Input/Input.js +1 -1
- package/dist/esm/components/Menu/Menu.context.js +1 -1
- package/dist/esm/components/Menu/Menu.js +2 -2
- package/dist/esm/components/Menu/MenuSection.js +1 -1
- package/dist/esm/components/Pagination/Pagination.js +12 -7
- package/dist/esm/components/Popover/Popover.js +4 -4
- package/dist/esm/components/Popover/PopoverHeader.js +1 -1
- package/dist/esm/components/Progress/Circular/CircularProgress.js +2 -2
- package/dist/esm/components/Progress/Linear/LinearProgress.js +2 -2
- package/dist/esm/components/Radio/Radio.js +2 -2
- package/dist/esm/components/Search/Search.js +2 -2
- package/dist/esm/components/Select/MultiSelect/MultiSelect.js +4 -4
- package/dist/esm/components/Select/NativeSelect/NativeSelect.js +2 -2
- package/dist/esm/components/Select/SingleSelect/SingleSelect.js +3 -3
- package/dist/esm/components/Select/commonStyles.js +1 -1
- package/dist/esm/components/SideSheet/SideSheet.js +1 -1
- package/dist/esm/components/Slider/Slider.js +4 -4
- package/dist/esm/components/Snackbar/Snackbar.js +1 -1
- package/dist/esm/components/Switch/Switch.js +1 -1
- package/dist/esm/components/Switch/Switch.tokens.js +4 -4
- package/dist/esm/components/Table/Cell.js +2 -2
- package/dist/esm/components/Table/DataCell/DataCell.js +1 -1
- package/dist/esm/components/Table/DataCell/DataCell.tokens.js +5 -5
- package/dist/esm/components/Table/HeaderCell/HeaderCell.js +1 -1
- package/dist/esm/components/Table/HeaderCell/HeaderCell.tokens.js +5 -5
- package/dist/esm/components/Table/index.js +1 -1
- package/dist/esm/components/TableOfContents/TableOfContents.js +2 -2
- package/dist/esm/components/Tabs/TabList.js +2 -2
- package/dist/esm/components/Tabs/TabPanels.js +2 -2
- package/dist/esm/components/Tabs/Tabs.js +1 -1
- package/dist/esm/components/Tabs/Tabs.tokens.js +1 -1
- package/dist/esm/components/TextField/Field.js +5 -5
- package/dist/esm/components/TextField/HelperText/HelperText.js +2 -2
- package/dist/esm/components/TextField/TextField.context.js +1 -1
- package/dist/esm/components/TextField/TextField.js +3 -3
- package/dist/esm/components/Textarea/Textarea.js +3 -3
- package/dist/esm/components/Tooltip/Tooltip.js +2 -2
- package/dist/esm/components/TopBar/TopBar.js +2 -2
- package/dist/esm/components/Typography/Typography.js +8 -8
- package/dist/esm/index.js +14 -14
- package/dist/esm/node_modules/.pnpm/ramda@0.28.0/node_modules/ramda/es/mergeDeepRight.js +3 -1
- package/package.json +40 -42
|
@@ -82,29 +82,29 @@ const {
|
|
|
82
82
|
} = edsTokens.tokens;
|
|
83
83
|
const button = {
|
|
84
84
|
background: 'transparent',
|
|
85
|
-
height:
|
|
85
|
+
height: `var(--eds_button__height, ${buttonHeight})`,
|
|
86
86
|
typography: { ...buttonTypography,
|
|
87
87
|
textAlign: 'center',
|
|
88
|
-
fontSize:
|
|
88
|
+
fontSize: `var(--eds_button__font_size, ${buttonTypography.fontSize})`
|
|
89
89
|
},
|
|
90
90
|
border: {
|
|
91
91
|
type: 'border',
|
|
92
|
-
width:
|
|
92
|
+
width: `var(--eds_button__border_width, 1px)`,
|
|
93
93
|
color: 'transparent',
|
|
94
|
-
radius:
|
|
94
|
+
radius: `var(--eds_button__radius, ${buttonBorderRadius$2})`,
|
|
95
95
|
style: 'solid'
|
|
96
96
|
},
|
|
97
97
|
spacings: {
|
|
98
98
|
top: 'var(--eds_button__padding_y, 0)',
|
|
99
99
|
bottom: 'var(--eds_button__padding_y, 0)',
|
|
100
|
-
left:
|
|
101
|
-
right:
|
|
100
|
+
left: `var(--eds_button__padding_x, ${medium$6})`,
|
|
101
|
+
right: `var(--eds_button__padding_x, ${medium$6})`
|
|
102
102
|
},
|
|
103
103
|
clickbound: {
|
|
104
104
|
height: clicboundHeight$2,
|
|
105
105
|
width: '100%',
|
|
106
106
|
offset: {
|
|
107
|
-
top:
|
|
107
|
+
top: `${(parseInt(clicboundHeight$2) - parseInt(buttonHeight)) / 2 + 1}px`,
|
|
108
108
|
left: '0'
|
|
109
109
|
}
|
|
110
110
|
},
|
|
@@ -120,7 +120,7 @@ const button = {
|
|
|
120
120
|
type: 'border',
|
|
121
121
|
width: '1px',
|
|
122
122
|
color: 'transparent',
|
|
123
|
-
radius:
|
|
123
|
+
radius: `var(--eds_button__radius, ${buttonBorderRadius$2})`,
|
|
124
124
|
style: 'solid'
|
|
125
125
|
}
|
|
126
126
|
},
|
|
@@ -149,7 +149,7 @@ const button = {
|
|
|
149
149
|
},
|
|
150
150
|
modes: {
|
|
151
151
|
compact: {
|
|
152
|
-
height:
|
|
152
|
+
height: `var(--eds_button__height_compact, ${compactButtonHeight})`,
|
|
153
153
|
spacings: {
|
|
154
154
|
top: 'var(--eds_button__padding_y_compact, 0)',
|
|
155
155
|
bottom: 'var(--eds_button__padding_y_compact, 0)'
|
|
@@ -158,7 +158,7 @@ const button = {
|
|
|
158
158
|
height: compactClickboundHeight$2,
|
|
159
159
|
width: '100%',
|
|
160
160
|
offset: {
|
|
161
|
-
top:
|
|
161
|
+
top: `${(parseInt(compactClickboundHeight$2) - parseInt(compactButtonHeight)) / 2 + 1}px`,
|
|
162
162
|
left: '0'
|
|
163
163
|
}
|
|
164
164
|
}
|
|
@@ -386,6 +386,8 @@ var mergeDeepRight = /*#__PURE__*/_curry2(function mergeDeepRight(lObj, rObj) {
|
|
|
386
386
|
}, lObj, rObj);
|
|
387
387
|
});
|
|
388
388
|
|
|
389
|
+
var mergeDeepRight$1 = mergeDeepRight;
|
|
390
|
+
|
|
389
391
|
const {
|
|
390
392
|
colors: {
|
|
391
393
|
text: {
|
|
@@ -420,7 +422,7 @@ const {
|
|
|
420
422
|
}
|
|
421
423
|
}
|
|
422
424
|
} = edsTokens.tokens;
|
|
423
|
-
const primary$a = mergeDeepRight(button, {
|
|
425
|
+
const primary$a = mergeDeepRight$1(button, {
|
|
424
426
|
background: primaryColor$8,
|
|
425
427
|
typography: {
|
|
426
428
|
color: primaryWhite
|
|
@@ -430,7 +432,7 @@ const primary$a = mergeDeepRight(button, {
|
|
|
430
432
|
style: 'solid',
|
|
431
433
|
width: '1px',
|
|
432
434
|
color: primaryColor$8,
|
|
433
|
-
radius:
|
|
435
|
+
radius: `var(--eds_button__radius, ${buttonBorderRadius$1})`
|
|
434
436
|
},
|
|
435
437
|
states: {
|
|
436
438
|
hover: {
|
|
@@ -438,7 +440,7 @@ const primary$a = mergeDeepRight(button, {
|
|
|
438
440
|
}
|
|
439
441
|
}
|
|
440
442
|
});
|
|
441
|
-
const secondary$5 = mergeDeepRight(primary$a, {
|
|
443
|
+
const secondary$5 = mergeDeepRight$1(primary$a, {
|
|
442
444
|
background: secondaryColor$3,
|
|
443
445
|
border: {
|
|
444
446
|
color: secondaryColor$3
|
|
@@ -452,7 +454,7 @@ const secondary$5 = mergeDeepRight(primary$a, {
|
|
|
452
454
|
}
|
|
453
455
|
}
|
|
454
456
|
});
|
|
455
|
-
const danger$6 = mergeDeepRight(primary$a, {
|
|
457
|
+
const danger$6 = mergeDeepRight$1(primary$a, {
|
|
456
458
|
background: dangerColor$3,
|
|
457
459
|
border: {
|
|
458
460
|
color: dangerColor$3
|
|
@@ -505,7 +507,7 @@ const {
|
|
|
505
507
|
}
|
|
506
508
|
}
|
|
507
509
|
} = edsTokens.tokens;
|
|
508
|
-
const primary$9 = mergeDeepRight(button, {
|
|
510
|
+
const primary$9 = mergeDeepRight$1(button, {
|
|
509
511
|
typography: {
|
|
510
512
|
color: primaryColor$7
|
|
511
513
|
},
|
|
@@ -514,7 +516,7 @@ const primary$9 = mergeDeepRight(button, {
|
|
|
514
516
|
style: 'solid',
|
|
515
517
|
width: '1px',
|
|
516
518
|
color: primaryColor$7,
|
|
517
|
-
radius:
|
|
519
|
+
radius: `var(--eds_button__radius, ${buttonBorderRadius})`
|
|
518
520
|
},
|
|
519
521
|
states: {
|
|
520
522
|
hover: {
|
|
@@ -534,7 +536,7 @@ const primary$9 = mergeDeepRight(button, {
|
|
|
534
536
|
}
|
|
535
537
|
}
|
|
536
538
|
});
|
|
537
|
-
const secondary$4 = mergeDeepRight(primary$9, {
|
|
539
|
+
const secondary$4 = mergeDeepRight$1(primary$9, {
|
|
538
540
|
typography: {
|
|
539
541
|
color: secondaryColor$2
|
|
540
542
|
},
|
|
@@ -553,7 +555,7 @@ const secondary$4 = mergeDeepRight(primary$9, {
|
|
|
553
555
|
}
|
|
554
556
|
}
|
|
555
557
|
});
|
|
556
|
-
const danger$5 = mergeDeepRight(primary$9, {
|
|
558
|
+
const danger$5 = mergeDeepRight$1(primary$9, {
|
|
557
559
|
typography: {
|
|
558
560
|
color: dangerColor$2
|
|
559
561
|
},
|
|
@@ -606,7 +608,7 @@ const {
|
|
|
606
608
|
}
|
|
607
609
|
}
|
|
608
610
|
} = edsTokens.tokens;
|
|
609
|
-
const primary$8 = mergeDeepRight(button, {
|
|
611
|
+
const primary$8 = mergeDeepRight$1(button, {
|
|
610
612
|
typography: {
|
|
611
613
|
color: primaryColor$6
|
|
612
614
|
},
|
|
@@ -625,7 +627,7 @@ const primary$8 = mergeDeepRight(button, {
|
|
|
625
627
|
}
|
|
626
628
|
}
|
|
627
629
|
});
|
|
628
|
-
const secondary$3 = mergeDeepRight(primary$8, {
|
|
630
|
+
const secondary$3 = mergeDeepRight$1(primary$8, {
|
|
629
631
|
typography: {
|
|
630
632
|
color: secondaryColor$1
|
|
631
633
|
},
|
|
@@ -638,7 +640,7 @@ const secondary$3 = mergeDeepRight(primary$8, {
|
|
|
638
640
|
}
|
|
639
641
|
}
|
|
640
642
|
});
|
|
641
|
-
const danger$4 = mergeDeepRight(primary$8, {
|
|
643
|
+
const danger$4 = mergeDeepRight$1(primary$8, {
|
|
642
644
|
typography: {
|
|
643
645
|
color: dangerColor$1
|
|
644
646
|
},
|
|
@@ -692,7 +694,7 @@ const {
|
|
|
692
694
|
}
|
|
693
695
|
}
|
|
694
696
|
} = edsTokens.tokens;
|
|
695
|
-
const primary$7 = mergeDeepRight(button, {
|
|
697
|
+
const primary$7 = mergeDeepRight$1(button, {
|
|
696
698
|
height: shape$4.icon_button.minHeight,
|
|
697
699
|
width: shape$4.icon_button.minWidth,
|
|
698
700
|
typography: {
|
|
@@ -711,7 +713,7 @@ const primary$7 = mergeDeepRight(button, {
|
|
|
711
713
|
width: clicboundHeight$1,
|
|
712
714
|
offset: {
|
|
713
715
|
top: '0',
|
|
714
|
-
left:
|
|
716
|
+
left: `${(parseInt(clicboundHeight$1) - parseInt(shape$4.icon_button.minWidth)) / 2}px`
|
|
715
717
|
}
|
|
716
718
|
},
|
|
717
719
|
states: {
|
|
@@ -730,7 +732,7 @@ const primary$7 = mergeDeepRight(button, {
|
|
|
730
732
|
},
|
|
731
733
|
focus: {
|
|
732
734
|
outline: {
|
|
733
|
-
offset:
|
|
735
|
+
offset: `-${parseInt(focusOutlineWidth$8)}px`
|
|
734
736
|
}
|
|
735
737
|
}
|
|
736
738
|
},
|
|
@@ -742,13 +744,13 @@ const primary$7 = mergeDeepRight(button, {
|
|
|
742
744
|
width: compactClickboundHeight$1,
|
|
743
745
|
offset: {
|
|
744
746
|
top: '0',
|
|
745
|
-
left:
|
|
747
|
+
left: `${(parseInt(compactClickboundHeight$1) - parseInt(shape$4._modes.compact.icon_button.minWidth)) / 2}px`
|
|
746
748
|
}
|
|
747
749
|
}
|
|
748
750
|
}
|
|
749
751
|
}
|
|
750
752
|
});
|
|
751
|
-
const secondary$2 = mergeDeepRight(primary$7, {
|
|
753
|
+
const secondary$2 = mergeDeepRight$1(primary$7, {
|
|
752
754
|
typography: {
|
|
753
755
|
color: secondaryColor
|
|
754
756
|
},
|
|
@@ -761,7 +763,7 @@ const secondary$2 = mergeDeepRight(primary$7, {
|
|
|
761
763
|
}
|
|
762
764
|
}
|
|
763
765
|
});
|
|
764
|
-
const danger$3 = mergeDeepRight(primary$7, {
|
|
766
|
+
const danger$3 = mergeDeepRight$1(primary$7, {
|
|
765
767
|
typography: {
|
|
766
768
|
color: dangerColor
|
|
767
769
|
},
|
|
@@ -797,7 +799,7 @@ const contained_icon = {
|
|
|
797
799
|
width: clicboundHeight,
|
|
798
800
|
offset: {
|
|
799
801
|
top: '0',
|
|
800
|
-
left:
|
|
802
|
+
left: `${(parseInt(clicboundHeight) - parseInt('40px')) / 2}px`
|
|
801
803
|
}
|
|
802
804
|
},
|
|
803
805
|
states: {
|
|
@@ -816,15 +818,15 @@ const contained_icon = {
|
|
|
816
818
|
width: compactClickboundHeight,
|
|
817
819
|
offset: {
|
|
818
820
|
top: '0',
|
|
819
|
-
left:
|
|
821
|
+
left: `${(parseInt(compactClickboundHeight) - parseInt(shape$3._modes.compact.icon_button.minWidth)) / 2}px`
|
|
820
822
|
}
|
|
821
823
|
}
|
|
822
824
|
}
|
|
823
825
|
}
|
|
824
826
|
};
|
|
825
|
-
const primary$6 = mergeDeepRight(primary$a, contained_icon);
|
|
826
|
-
const secondary$1 = mergeDeepRight(secondary$5, contained_icon);
|
|
827
|
-
const danger$2 = mergeDeepRight(danger$6, contained_icon);
|
|
827
|
+
const primary$6 = mergeDeepRight$1(primary$a, contained_icon);
|
|
828
|
+
const secondary$1 = mergeDeepRight$1(secondary$5, contained_icon);
|
|
829
|
+
const danger$2 = mergeDeepRight$1(danger$6, contained_icon);
|
|
828
830
|
|
|
829
831
|
const token$5 = {
|
|
830
832
|
primary: {
|
|
@@ -1211,7 +1213,7 @@ const toVariantName = function (variant) {
|
|
|
1211
1213
|
let bold = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
1212
1214
|
let italic = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
1213
1215
|
let link = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
|
|
1214
|
-
return
|
|
1216
|
+
return `${variant}${bold ? '_bold' : ''}${italic ? '_italic' : ''}${link ? '_link' : ''}`;
|
|
1215
1217
|
};
|
|
1216
1218
|
|
|
1217
1219
|
const StyledTypography$1 = styled__default["default"].p.withConfig({
|
|
@@ -1220,9 +1222,9 @@ const StyledTypography$1 = styled__default["default"].p.withConfig({
|
|
|
1220
1222
|
})(["", " ", " ", " ", ""], _ref => {
|
|
1221
1223
|
let {
|
|
1222
1224
|
typography,
|
|
1223
|
-
link
|
|
1225
|
+
$link
|
|
1224
1226
|
} = _ref;
|
|
1225
|
-
return edsUtils.typographyTemplate(typography, link);
|
|
1227
|
+
return edsUtils.typographyTemplate(typography, $link);
|
|
1226
1228
|
}, _ref2 => {
|
|
1227
1229
|
let {
|
|
1228
1230
|
color
|
|
@@ -1239,9 +1241,9 @@ const StyledTypography$1 = styled__default["default"].p.withConfig({
|
|
|
1239
1241
|
);
|
|
1240
1242
|
}, _ref4 => {
|
|
1241
1243
|
let {
|
|
1242
|
-
link
|
|
1244
|
+
$link
|
|
1243
1245
|
} = _ref4;
|
|
1244
|
-
return link
|
|
1246
|
+
return $link && styled.css(["&:focus{outline:none;}&[data-focus-visible-added]:focus{", "}&:focus-visible{", "}"], edsUtils.outlineTemplate(link.states.focus.outline), edsUtils.outlineTemplate(link.states.focus.outline));
|
|
1245
1247
|
});
|
|
1246
1248
|
const Typography = /*#__PURE__*/react.forwardRef(function Typography(_ref5, ref) {
|
|
1247
1249
|
let {
|
|
@@ -1260,7 +1262,7 @@ const Typography = /*#__PURE__*/react.forwardRef(function Typography(_ref5, ref)
|
|
|
1260
1262
|
const typography = findTypography(variantName, group);
|
|
1261
1263
|
|
|
1262
1264
|
if (typeof typography === 'undefined') {
|
|
1263
|
-
throw new Error(
|
|
1265
|
+
throw new Error(`Typography variant not found for variant "${variantName}" ("${variant}") & group "${group || ''}"`);
|
|
1264
1266
|
}
|
|
1265
1267
|
|
|
1266
1268
|
return /*#__PURE__*/jsxRuntime.jsx(StyledTypography$1, {
|
|
@@ -1268,7 +1270,7 @@ const Typography = /*#__PURE__*/react.forwardRef(function Typography(_ref5, ref)
|
|
|
1268
1270
|
typography: { ...typography,
|
|
1269
1271
|
...token
|
|
1270
1272
|
},
|
|
1271
|
-
link: link,
|
|
1273
|
+
$link: link,
|
|
1272
1274
|
ref: ref,
|
|
1273
1275
|
...other,
|
|
1274
1276
|
children: children
|
|
@@ -1346,12 +1348,12 @@ const tableCell = {
|
|
|
1346
1348
|
spacings: {
|
|
1347
1349
|
top: 'var(--eds_table__cell__padding_y, 0)',
|
|
1348
1350
|
bottom: 'var(--eds_table__cell__padding_y, 0)',
|
|
1349
|
-
left:
|
|
1350
|
-
right:
|
|
1351
|
+
left: `var(--eds_table__cell__padding_x, ${medium$5})`,
|
|
1352
|
+
right: `var(--eds_table__cell__padding_x, ${medium$5})`
|
|
1351
1353
|
},
|
|
1352
1354
|
typography: { ...cellTypography$1,
|
|
1353
1355
|
color: typographyColor$1,
|
|
1354
|
-
fontSize:
|
|
1356
|
+
fontSize: `var(--eds_table__font_size, ${cellTypography$1.fontSize})`
|
|
1355
1357
|
},
|
|
1356
1358
|
states: {
|
|
1357
1359
|
active: {
|
|
@@ -1397,8 +1399,8 @@ const tableCell = {
|
|
|
1397
1399
|
spacings: {
|
|
1398
1400
|
top: 'var(--eds_table__cell__padding_y_compact, 0)',
|
|
1399
1401
|
bottom: 'var(--eds_table__cell__padding_y_compact, 0)',
|
|
1400
|
-
left:
|
|
1401
|
-
right:
|
|
1402
|
+
left: `var(--eds_table__cell__padding_x_compact, ${medium$5})`,
|
|
1403
|
+
right: `var(--eds_table__cell__padding_x_compact, ${medium$5})`
|
|
1402
1404
|
}
|
|
1403
1405
|
}
|
|
1404
1406
|
},
|
|
@@ -1425,7 +1427,7 @@ const tableCell = {
|
|
|
1425
1427
|
const applyVariant = (variant, token) => {
|
|
1426
1428
|
switch (variant) {
|
|
1427
1429
|
case 'numeric':
|
|
1428
|
-
return mergeDeepRight(token, token.variants.numeric);
|
|
1430
|
+
return mergeDeepRight$1(token, token.variants.numeric);
|
|
1429
1431
|
|
|
1430
1432
|
default:
|
|
1431
1433
|
return token;
|
|
@@ -1572,7 +1574,7 @@ const token$4 = {
|
|
|
1572
1574
|
},
|
|
1573
1575
|
typography: { ...cellTypography,
|
|
1574
1576
|
color: typographyColor,
|
|
1575
|
-
fontSize:
|
|
1577
|
+
fontSize: `var(--eds_table__font_size, ${cellTypography.fontSize})`
|
|
1576
1578
|
},
|
|
1577
1579
|
border: {
|
|
1578
1580
|
type: 'bordergroup',
|
|
@@ -1586,8 +1588,8 @@ const token$4 = {
|
|
|
1586
1588
|
spacings: {
|
|
1587
1589
|
top: 'var(--eds_table__cell__padding_y, 0)',
|
|
1588
1590
|
bottom: 'var(--eds_table__cell__padding_y, 0)',
|
|
1589
|
-
left:
|
|
1590
|
-
right:
|
|
1591
|
+
left: `var(--eds_table__cell__padding_x, ${medium$4})`,
|
|
1592
|
+
right: `var(--eds_table__cell__padding_x, ${medium$4})`
|
|
1591
1593
|
},
|
|
1592
1594
|
states: {
|
|
1593
1595
|
active: {
|
|
@@ -1632,8 +1634,8 @@ const token$4 = {
|
|
|
1632
1634
|
spacings: {
|
|
1633
1635
|
top: 'var(--eds_table__cell__padding_y_compact, 0)',
|
|
1634
1636
|
bottom: 'var(--eds_table__cell__padding_y_compact, 0)',
|
|
1635
|
-
left:
|
|
1636
|
-
right:
|
|
1637
|
+
left: `var(--eds_table__cell__padding_x_compact, ${medium$4})`,
|
|
1638
|
+
right: `var(--eds_table__cell__padding_x_compact, ${medium$4})`
|
|
1637
1639
|
}
|
|
1638
1640
|
}
|
|
1639
1641
|
}
|
|
@@ -2070,7 +2072,7 @@ const input$2 = {
|
|
|
2070
2072
|
}
|
|
2071
2073
|
}
|
|
2072
2074
|
};
|
|
2073
|
-
const error$4 = mergeDeepRight(input$2, {
|
|
2075
|
+
const error$4 = mergeDeepRight$1(input$2, {
|
|
2074
2076
|
boxShadow: 'inset 0px -1px 0px 0px transparent',
|
|
2075
2077
|
states: {
|
|
2076
2078
|
active: {
|
|
@@ -2093,7 +2095,7 @@ const error$4 = mergeDeepRight(input$2, {
|
|
|
2093
2095
|
}
|
|
2094
2096
|
}
|
|
2095
2097
|
});
|
|
2096
|
-
const warning$4 = mergeDeepRight(input$2, {
|
|
2098
|
+
const warning$4 = mergeDeepRight$1(input$2, {
|
|
2097
2099
|
boxShadow: 'inset 0px -1px 0px 0px transparent',
|
|
2098
2100
|
states: {
|
|
2099
2101
|
active: {
|
|
@@ -2116,7 +2118,7 @@ const warning$4 = mergeDeepRight(input$2, {
|
|
|
2116
2118
|
}
|
|
2117
2119
|
}
|
|
2118
2120
|
});
|
|
2119
|
-
const success$1 = mergeDeepRight(input$2, {
|
|
2121
|
+
const success$1 = mergeDeepRight$1(input$2, {
|
|
2120
2122
|
boxShadow: 'inset 0px -1px 0px 0px transparent',
|
|
2121
2123
|
states: {
|
|
2122
2124
|
active: {
|
|
@@ -2446,7 +2448,7 @@ const Variation$2 = _ref => {
|
|
|
2446
2448
|
} = _ref;
|
|
2447
2449
|
|
|
2448
2450
|
if (!variant) {
|
|
2449
|
-
return
|
|
2451
|
+
return ``;
|
|
2450
2452
|
}
|
|
2451
2453
|
|
|
2452
2454
|
const {
|
|
@@ -2532,10 +2534,10 @@ const Variation$1 = _ref => {
|
|
|
2532
2534
|
} = _ref;
|
|
2533
2535
|
|
|
2534
2536
|
if (!variant) {
|
|
2535
|
-
return
|
|
2537
|
+
return ``;
|
|
2536
2538
|
}
|
|
2537
2539
|
|
|
2538
|
-
return styled.css(["box-shadow:", ";", ""], isFocused ?
|
|
2540
|
+
return styled.css(["box-shadow:", ";", ""], isFocused ? `none` : variant === 'default' ? `inset 0 -1px 0 0 ${((_token$border = token.border) === null || _token$border === void 0 ? void 0 : _token$border.type) === 'border' && ((_token$border2 = token.border) === null || _token$border2 === void 0 ? void 0 : _token$border2.color)}` : `0 0 0 1px ${((_token$border3 = token.border) === null || _token$border3 === void 0 ? void 0 : _token$border3.type) === 'border' && ((_token$border4 = token.border) === null || _token$border4 === void 0 ? void 0 : _token$border4.color)}`, isFocused && edsUtils.outlineTemplate(token.states.focus.outline));
|
|
2539
2541
|
};
|
|
2540
2542
|
|
|
2541
2543
|
const StrippedInput = styled__default["default"](Input$4).withConfig({
|
|
@@ -2782,7 +2784,7 @@ const Variation = _ref => {
|
|
|
2782
2784
|
} = _ref;
|
|
2783
2785
|
|
|
2784
2786
|
if (!variant) {
|
|
2785
|
-
return
|
|
2787
|
+
return ``;
|
|
2786
2788
|
}
|
|
2787
2789
|
|
|
2788
2790
|
const {
|
|
@@ -2955,7 +2957,7 @@ const transform = _ref => {
|
|
|
2955
2957
|
let {
|
|
2956
2958
|
rotation
|
|
2957
2959
|
} = _ref;
|
|
2958
|
-
return rotation ?
|
|
2960
|
+
return rotation ? `transform: rotate(${rotation}deg)` : '';
|
|
2959
2961
|
};
|
|
2960
2962
|
|
|
2961
2963
|
const StyledSvg = styled__default["default"].svg.attrs(_ref2 => {
|
|
@@ -2967,8 +2969,8 @@ const StyledSvg = styled__default["default"].svg.attrs(_ref2 => {
|
|
|
2967
2969
|
return {
|
|
2968
2970
|
name: null,
|
|
2969
2971
|
xmlns: 'http://www.w3.org/2000/svg',
|
|
2970
|
-
height:
|
|
2971
|
-
width:
|
|
2972
|
+
height: `${height}px`,
|
|
2973
|
+
width: `${width}px`,
|
|
2972
2974
|
fill
|
|
2973
2975
|
};
|
|
2974
2976
|
}).withConfig({
|
|
@@ -2984,7 +2986,7 @@ const StyledPath$2 = styled__default["default"].path.attrs(_ref3 => {
|
|
|
2984
2986
|
size: null,
|
|
2985
2987
|
fillRule: 'evenodd',
|
|
2986
2988
|
clipRule: 'evenodd',
|
|
2987
|
-
transform: size / height !== 1 ?
|
|
2989
|
+
transform: size / height !== 1 ? `scale(${size / height})` : null
|
|
2988
2990
|
};
|
|
2989
2991
|
}).withConfig({
|
|
2990
2992
|
displayName: "Icon__StyledPath",
|
|
@@ -3033,7 +3035,7 @@ const Icon$2 = /*#__PURE__*/react.forwardRef(function Icon(_ref4, ref) {
|
|
|
3033
3035
|
} = findIcon(name, data, size);
|
|
3034
3036
|
|
|
3035
3037
|
if (typeof icon === 'undefined') {
|
|
3036
|
-
throw Error(
|
|
3038
|
+
throw Error(`Icon "${name}" not found. Have you added it using Icon.add() or using data props?`);
|
|
3037
3039
|
}
|
|
3038
3040
|
|
|
3039
3041
|
const height = size ? size : parseInt(icon.width);
|
|
@@ -3042,7 +3044,7 @@ const Icon$2 = /*#__PURE__*/react.forwardRef(function Icon(_ref4, ref) {
|
|
|
3042
3044
|
height,
|
|
3043
3045
|
width,
|
|
3044
3046
|
fill: color,
|
|
3045
|
-
viewBox:
|
|
3047
|
+
viewBox: `0 0 ${width} ${height}`,
|
|
3046
3048
|
rotation,
|
|
3047
3049
|
name,
|
|
3048
3050
|
'aria-hidden': true
|
|
@@ -3056,7 +3058,7 @@ const Icon$2 = /*#__PURE__*/react.forwardRef(function Icon(_ref4, ref) {
|
|
|
3056
3058
|
let titleId = '';
|
|
3057
3059
|
|
|
3058
3060
|
if (title) {
|
|
3059
|
-
titleId =
|
|
3061
|
+
titleId = `${icon.prefix}-${icon.name}-${count}`;
|
|
3060
3062
|
svgProps = { ...svgProps,
|
|
3061
3063
|
title,
|
|
3062
3064
|
role: 'img',
|
|
@@ -3307,8 +3309,8 @@ const AccordionItem = /*#__PURE__*/react.forwardRef(function AccordionItem(_ref,
|
|
|
3307
3309
|
};
|
|
3308
3310
|
|
|
3309
3311
|
const Children = react.Children.map(children, (child, childIndex) => {
|
|
3310
|
-
const headerId =
|
|
3311
|
-
const panelId =
|
|
3312
|
+
const headerId = `${accordionId}-header-${index + 1}`;
|
|
3313
|
+
const panelId = `${accordionId}-panel-${index + 1}`;
|
|
3312
3314
|
return childIndex === 0 ? /*#__PURE__*/react.cloneElement(child, {
|
|
3313
3315
|
isExpanded: expanded,
|
|
3314
3316
|
toggleExpanded,
|
|
@@ -3482,11 +3484,11 @@ const StyledIcon$1 = styled__default["default"](Icon$1).withConfig({
|
|
|
3482
3484
|
let {
|
|
3483
3485
|
chevronPosition
|
|
3484
3486
|
} = _ref4;
|
|
3485
|
-
return chevronPosition === 'left' ? {
|
|
3487
|
+
return styled.css(["flex-shrink:0;", ""], chevronPosition === 'left' ? styled.css({
|
|
3486
3488
|
marginRight: '32px'
|
|
3487
|
-
} : {
|
|
3489
|
+
}) : styled.css({
|
|
3488
3490
|
marginLeft: '16px'
|
|
3489
|
-
};
|
|
3491
|
+
}));
|
|
3490
3492
|
});
|
|
3491
3493
|
const AccordionHeader = /*#__PURE__*/react.forwardRef(function AccordionHeader(_ref5, ref) {
|
|
3492
3494
|
let {
|
|
@@ -3535,7 +3537,7 @@ const AccordionHeader = /*#__PURE__*/react.forwardRef(function AccordionHeader(_
|
|
|
3535
3537
|
size: 24,
|
|
3536
3538
|
chevronPosition: chevronPosition,
|
|
3537
3539
|
color: disabled ? chevronToken.states.disabled.background : chevronToken.background
|
|
3538
|
-
},
|
|
3540
|
+
}, `${id}-icon`);
|
|
3539
3541
|
|
|
3540
3542
|
const headerChildren = react.Children.map(children, child => {
|
|
3541
3543
|
if (typeof child === 'string') {
|
|
@@ -3761,7 +3763,7 @@ const token$1 = {
|
|
|
3761
3763
|
outline: {
|
|
3762
3764
|
type: 'outline',
|
|
3763
3765
|
width: focusOutlineWidth$5,
|
|
3764
|
-
offset:
|
|
3766
|
+
offset: `-${parseInt(focusOutlineWidth$5)}px`,
|
|
3765
3767
|
style: 'dashed',
|
|
3766
3768
|
color: focusOutlineColor$5
|
|
3767
3769
|
}
|
|
@@ -3934,8 +3936,8 @@ const TabList = /*#__PURE__*/react.forwardRef(function TabsList(_ref3, ref) {
|
|
|
3934
3936
|
const Tabs = react.Children.map(children, (child, index) => {
|
|
3935
3937
|
const tabRef = index === activeTab ? edsUtils.mergeRefs(child.ref, selectedTabRef) : child.ref;
|
|
3936
3938
|
return /*#__PURE__*/react.cloneElement(child, {
|
|
3937
|
-
id:
|
|
3938
|
-
'aria-controls':
|
|
3939
|
+
id: `${tabsId}-tab-${index + 1}`,
|
|
3940
|
+
'aria-controls': `${tabsId}-panel-${index + 1}`,
|
|
3939
3941
|
active: index === activeTab,
|
|
3940
3942
|
index,
|
|
3941
3943
|
onClick: () => handleChange(index),
|
|
@@ -4030,8 +4032,8 @@ const TabPanels = /*#__PURE__*/react.forwardRef(function TabPanels(_ref, ref) {
|
|
|
4030
4032
|
tabsId
|
|
4031
4033
|
} = react.useContext(TabsContext);
|
|
4032
4034
|
const Panels = react.Children.map(children, (child, index) => /*#__PURE__*/react.cloneElement(child, {
|
|
4033
|
-
id:
|
|
4034
|
-
'aria-labelledby':
|
|
4035
|
+
id: `${tabsId}-panel-${index + 1}`,
|
|
4036
|
+
'aria-labelledby': `${tabsId}-tab-${index + 1}`,
|
|
4035
4037
|
hidden: activeTab !== index
|
|
4036
4038
|
}));
|
|
4037
4039
|
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
@@ -5983,7 +5985,7 @@ const {
|
|
|
5983
5985
|
} = slider;
|
|
5984
5986
|
const fakeTrackBg = styled.css(["background-image:url(\"data:image/svg+xml,<svg xmlns='http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'><rect x='0' y='11' fill='", "' width='100%' height='4' rx='2' /></svg>\");background-size:cover;background-repeat:no-repeat;"], track.background);
|
|
5985
5987
|
const fakeTrackBgHover = styled.css({
|
|
5986
|
-
backgroundImage:
|
|
5988
|
+
backgroundImage: `url("data:image/svg+xml,<svg xmlns='http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'><rect x='0' y='11' fill='${track.states.hover.background}' width='100%' height='4' rx='2' /></svg>")`
|
|
5987
5989
|
});
|
|
5988
5990
|
const trackFill = styled.css(["grid-column:1 / span 2;grid-row:2;height:", ";margin-bottom:", ";align-self:end;content:'';"], track.height, track.spacings.bottom);
|
|
5989
5991
|
const wrapperGrid = styled.css(["display:grid;grid-template-rows:max-content 24px;grid-template-columns:1fr 1fr;width:100%;position:relative;"]);
|
|
@@ -6160,9 +6162,9 @@ const Slider = /*#__PURE__*/react.forwardRef(function Slider(_ref10, ref) {
|
|
|
6160
6162
|
|
|
6161
6163
|
if (rest['id']) {
|
|
6162
6164
|
const overrideId = rest['id'];
|
|
6163
|
-
inputIdA =
|
|
6164
|
-
inputIdB =
|
|
6165
|
-
inputId =
|
|
6165
|
+
inputIdA = `${overrideId}-thumb-a`;
|
|
6166
|
+
inputIdB = `${overrideId}-thumb-b`;
|
|
6167
|
+
inputId = `${overrideId}-thumb`;
|
|
6166
6168
|
}
|
|
6167
6169
|
|
|
6168
6170
|
const getAriaLabelledby = react.useCallback(() => {
|
|
@@ -6424,8 +6426,8 @@ const Tooltip = /*#__PURE__*/react.forwardRef(function Tooltip(_ref, ref) {
|
|
|
6424
6426
|
|
|
6425
6427
|
if (arrowRef.current) {
|
|
6426
6428
|
Object.assign(arrowRef.current.style, {
|
|
6427
|
-
left: arrowX != null ?
|
|
6428
|
-
top: arrowY != null ?
|
|
6429
|
+
left: arrowX != null ? `${arrowX}px` : '',
|
|
6430
|
+
top: arrowY != null ? `${arrowY}px` : '',
|
|
6429
6431
|
right: '',
|
|
6430
6432
|
bottom: '',
|
|
6431
6433
|
[staticSide]: '-6px',
|
|
@@ -6802,8 +6804,8 @@ const Popover$1 = /*#__PURE__*/react.forwardRef(function Popover(_ref5, ref) {
|
|
|
6802
6804
|
|
|
6803
6805
|
if (arrowRef.current) {
|
|
6804
6806
|
Object.assign(arrowRef.current.style, {
|
|
6805
|
-
left: arrowX != null ?
|
|
6806
|
-
top: arrowY != null ?
|
|
6807
|
+
left: arrowX != null ? `${arrowX}px` : '',
|
|
6808
|
+
top: arrowY != null ? `${arrowY}px` : '',
|
|
6807
6809
|
right: '',
|
|
6808
6810
|
bottom: '',
|
|
6809
6811
|
[staticSide]: '-6px',
|
|
@@ -7258,7 +7260,7 @@ const LinearProgress = /*#__PURE__*/react.forwardRef(function LinearProgress(_re
|
|
|
7258
7260
|
props['aria-valuemin'] = 0;
|
|
7259
7261
|
props['aria-valuemax'] = 100;
|
|
7260
7262
|
const transform = value - 100;
|
|
7261
|
-
barStyle =
|
|
7263
|
+
barStyle = `translateX(${transform}%)`;
|
|
7262
7264
|
}
|
|
7263
7265
|
}
|
|
7264
7266
|
|
|
@@ -7280,7 +7282,7 @@ const LinearProgress = /*#__PURE__*/react.forwardRef(function LinearProgress(_re
|
|
|
7280
7282
|
}, [value, variant]);
|
|
7281
7283
|
|
|
7282
7284
|
const getProgressFormatted = () => {
|
|
7283
|
-
return
|
|
7285
|
+
return `Loading ${srProgress}%`;
|
|
7284
7286
|
};
|
|
7285
7287
|
|
|
7286
7288
|
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
@@ -7399,7 +7401,7 @@ const CircularProgress = /*#__PURE__*/react.forwardRef(function CircularProgress
|
|
|
7399
7401
|
|
|
7400
7402
|
if (variant === 'determinate') {
|
|
7401
7403
|
trackStyle.stroke = circumference.toFixed(3);
|
|
7402
|
-
trackStyle.strokeDashoffset =
|
|
7404
|
+
trackStyle.strokeDashoffset = `${((100 - progress) / 100 * circumference).toFixed(3)}px`;
|
|
7403
7405
|
props['aria-valuenow'] = progress;
|
|
7404
7406
|
|
|
7405
7407
|
if (value !== undefined) {
|
|
@@ -7424,7 +7426,7 @@ const CircularProgress = /*#__PURE__*/react.forwardRef(function CircularProgress
|
|
|
7424
7426
|
}, [progress, variant]);
|
|
7425
7427
|
|
|
7426
7428
|
const getProgressFormatted = () => {
|
|
7427
|
-
return
|
|
7429
|
+
return `Loading ${srProgress}%`;
|
|
7428
7430
|
};
|
|
7429
7431
|
|
|
7430
7432
|
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
@@ -7744,7 +7746,7 @@ const Breadcrumbs$1 = /*#__PURE__*/react.forwardRef(function Breadcrumbs(_ref, r
|
|
|
7744
7746
|
children: "/"
|
|
7745
7747
|
})
|
|
7746
7748
|
})]
|
|
7747
|
-
},
|
|
7749
|
+
}, `breadcrumb-${index}`));
|
|
7748
7750
|
return /*#__PURE__*/jsxRuntime.jsx("nav", { ...props,
|
|
7749
7751
|
"aria-label": "breadcrumbs",
|
|
7750
7752
|
children: /*#__PURE__*/jsxRuntime.jsx(OrderedList$1, {
|
|
@@ -7762,10 +7764,10 @@ const StyledTypography = styled__default["default"](Typography).withConfig({
|
|
|
7762
7764
|
componentId: "sc-10nvwte-0"
|
|
7763
7765
|
})(["@media (hover:hover) and (pointer:fine){&:hover{text-decoration:underline;color:", ";cursor:pointer;}}white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:inline-block;text-decoration:none;color:", ";", ""], states.hover.typography.color, typography$5.color, _ref => {
|
|
7764
7766
|
let {
|
|
7765
|
-
maxWidth
|
|
7767
|
+
$maxWidth
|
|
7766
7768
|
} = _ref;
|
|
7767
7769
|
return styled.css({
|
|
7768
|
-
maxWidth
|
|
7770
|
+
maxWidth: $maxWidth
|
|
7769
7771
|
});
|
|
7770
7772
|
});
|
|
7771
7773
|
const Breadcrumb = /*#__PURE__*/react.forwardRef(function Breadcrumb(_ref2, ref) {
|
|
@@ -7778,8 +7780,7 @@ const Breadcrumb = /*#__PURE__*/react.forwardRef(function Breadcrumb(_ref2, ref)
|
|
|
7778
7780
|
} = _ref2;
|
|
7779
7781
|
const props = { ...other,
|
|
7780
7782
|
href,
|
|
7781
|
-
ref
|
|
7782
|
-
maxWidth
|
|
7783
|
+
ref
|
|
7783
7784
|
};
|
|
7784
7785
|
const showTooltip = maxWidth > 0;
|
|
7785
7786
|
const isHrefDefined = href !== undefined;
|
|
@@ -7789,6 +7790,7 @@ const Breadcrumb = /*#__PURE__*/react.forwardRef(function Breadcrumb(_ref2, ref)
|
|
|
7789
7790
|
link: isHrefDefined,
|
|
7790
7791
|
forwardedAs: forwardedAs,
|
|
7791
7792
|
variant: "body_short",
|
|
7793
|
+
$maxWidth: maxWidth,
|
|
7792
7794
|
...props,
|
|
7793
7795
|
children: children
|
|
7794
7796
|
});
|
|
@@ -8520,7 +8522,7 @@ const Text = styled__default["default"](Typography).withConfig({
|
|
|
8520
8522
|
})(["white-space:nowrap;"]);
|
|
8521
8523
|
|
|
8522
8524
|
function getAriaLabel(page, selected) {
|
|
8523
|
-
return
|
|
8525
|
+
return `${selected === page ? 'Current page, ' : 'Go to '}page ${page}`;
|
|
8524
8526
|
}
|
|
8525
8527
|
|
|
8526
8528
|
const Pagination = /*#__PURE__*/react.forwardRef(function Pagination(_ref2, ref) {
|
|
@@ -8572,7 +8574,7 @@ const Pagination = /*#__PURE__*/react.forwardRef(function Pagination(_ref2, ref)
|
|
|
8572
8574
|
...props,
|
|
8573
8575
|
children: /*#__PURE__*/jsxRuntime.jsxs(OrderedList, {
|
|
8574
8576
|
style: {
|
|
8575
|
-
gridTemplateColumns:
|
|
8577
|
+
gridTemplateColumns: `repeat(${columns}, 48px)`
|
|
8576
8578
|
},
|
|
8577
8579
|
children: [/*#__PURE__*/jsxRuntime.jsx(ListItem, {
|
|
8578
8580
|
children: /*#__PURE__*/jsxRuntime.jsx(Button, {
|
|
@@ -8590,7 +8592,7 @@ const Pagination = /*#__PURE__*/react.forwardRef(function Pagination(_ref2, ref)
|
|
|
8590
8592
|
/*#__PURE__*/
|
|
8591
8593
|
// eslint-disable-next-line react/no-array-index-key
|
|
8592
8594
|
jsxRuntime.jsx(ListItem, {
|
|
8593
|
-
children: /*#__PURE__*/jsxRuntime.jsx(PaginationItem, {
|
|
8595
|
+
children: /*#__PURE__*/jsxRuntime.jsx(PaginationItem, {
|
|
8594
8596
|
"aria-label": getAriaLabel(page, activePage),
|
|
8595
8597
|
"aria-current": activePage,
|
|
8596
8598
|
page: page,
|
|
@@ -8599,13 +8601,13 @@ const Pagination = /*#__PURE__*/react.forwardRef(function Pagination(_ref2, ref)
|
|
|
8599
8601
|
onPageChange(event, page);
|
|
8600
8602
|
}
|
|
8601
8603
|
})
|
|
8602
|
-
},
|
|
8604
|
+
}, `list-item ${index}`) : /*#__PURE__*/jsxRuntime.jsx(ListItem // eslint-disable-next-line react/no-array-index-key
|
|
8603
8605
|
, {
|
|
8604
8606
|
children: /*#__PURE__*/jsxRuntime.jsx(StyledIcon, {
|
|
8605
8607
|
name: "more_horizontal",
|
|
8606
8608
|
"aria-label": "Ellipsis of pages"
|
|
8607
8609
|
})
|
|
8608
|
-
},
|
|
8610
|
+
}, `ellipsis-${index}`)) : undefined, /*#__PURE__*/jsxRuntime.jsx(ListItem, {
|
|
8609
8611
|
children: /*#__PURE__*/jsxRuntime.jsx(Button, {
|
|
8610
8612
|
variant: "ghost_icon",
|
|
8611
8613
|
onClick: activePage < pages ? event => {
|
|
@@ -8623,7 +8625,12 @@ const Pagination = /*#__PURE__*/react.forwardRef(function Pagination(_ref2, ref)
|
|
|
8623
8625
|
|
|
8624
8626
|
return withItemIndicator ? /*#__PURE__*/jsxRuntime.jsxs(FlexContainer, {
|
|
8625
8627
|
children: [/*#__PURE__*/jsxRuntime.jsx(Text, {
|
|
8626
|
-
children: currentItemFirst !== currentItemLast ?
|
|
8628
|
+
children: currentItemFirst !== currentItemLast ? `${currentItemFirst}
|
|
8629
|
+
${' - '}
|
|
8630
|
+
${currentItemLast}
|
|
8631
|
+
${' of '}
|
|
8632
|
+
${totalItems}
|
|
8633
|
+
${' items'}` : `${currentItemFirst} ${' of '} ${totalItems} ${' items'}`
|
|
8627
8634
|
}), pagination]
|
|
8628
8635
|
}) : pagination;
|
|
8629
8636
|
});
|
|
@@ -8832,7 +8839,7 @@ const select = {
|
|
|
8832
8839
|
}
|
|
8833
8840
|
}
|
|
8834
8841
|
};
|
|
8835
|
-
const multiSelect$1 = mergeDeepRight(select, {
|
|
8842
|
+
const multiSelect$1 = mergeDeepRight$1(select, {
|
|
8836
8843
|
spacings: {
|
|
8837
8844
|
top: '0',
|
|
8838
8845
|
bottom: '0',
|
|
@@ -9030,7 +9037,7 @@ const SingleSelect = /*#__PURE__*/react.forwardRef(function SingleSelect(_ref2,
|
|
|
9030
9037
|
disabled: disabled
|
|
9031
9038
|
}),
|
|
9032
9039
|
children: item
|
|
9033
|
-
},
|
|
9040
|
+
}, `${item}`))
|
|
9034
9041
|
})]
|
|
9035
9042
|
})
|
|
9036
9043
|
});
|
|
@@ -9242,7 +9249,7 @@ const CheckboxInput = /*#__PURE__*/react.forwardRef(function CheckboxInput(_ref1
|
|
|
9242
9249
|
}), indeterminate ? /*#__PURE__*/jsxRuntime.jsx(Svg$1, {
|
|
9243
9250
|
width: iconSize,
|
|
9244
9251
|
height: iconSize,
|
|
9245
|
-
viewBox:
|
|
9252
|
+
viewBox: `0 0 ${iconSize} ${iconSize}`,
|
|
9246
9253
|
fill: fill,
|
|
9247
9254
|
"aria-hidden": true,
|
|
9248
9255
|
children: /*#__PURE__*/jsxRuntime.jsx(StyledPath$1, {
|
|
@@ -9252,7 +9259,7 @@ const CheckboxInput = /*#__PURE__*/react.forwardRef(function CheckboxInput(_ref1
|
|
|
9252
9259
|
}) : /*#__PURE__*/jsxRuntime.jsxs(Svg$1, {
|
|
9253
9260
|
width: iconSize,
|
|
9254
9261
|
height: iconSize,
|
|
9255
|
-
viewBox:
|
|
9262
|
+
viewBox: `0 0 ${iconSize} ${iconSize}`,
|
|
9256
9263
|
fill: fill,
|
|
9257
9264
|
"aria-hidden": true,
|
|
9258
9265
|
children: [/*#__PURE__*/jsxRuntime.jsx(StyledPath$1, {
|
|
@@ -9390,7 +9397,7 @@ const MultiSelect = /*#__PURE__*/react.forwardRef(function MultiSelect(_ref2, re
|
|
|
9390
9397
|
}
|
|
9391
9398
|
}
|
|
9392
9399
|
});
|
|
9393
|
-
const placeholderText = items.length > 0 ?
|
|
9400
|
+
const placeholderText = items.length > 0 ? `${selectedItems.length}/${items.length} selected` : '';
|
|
9394
9401
|
|
|
9395
9402
|
const openSelect = () => {
|
|
9396
9403
|
if (!isOpen && !(disabled || readOnly)) {
|
|
@@ -9463,7 +9470,7 @@ const MultiSelect = /*#__PURE__*/react.forwardRef(function MultiSelect(_ref2, re
|
|
|
9463
9470
|
}), /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
9464
9471
|
children: item
|
|
9465
9472
|
})]
|
|
9466
|
-
},
|
|
9473
|
+
}, `${item}`))
|
|
9467
9474
|
})]
|
|
9468
9475
|
})
|
|
9469
9476
|
});
|
|
@@ -9721,7 +9728,7 @@ const Radio = /*#__PURE__*/react.forwardRef(function Radio(_ref12, ref) {
|
|
|
9721
9728
|
return /*#__PURE__*/jsxRuntime.jsxs(Svg, {
|
|
9722
9729
|
width: iconSize,
|
|
9723
9730
|
height: iconSize,
|
|
9724
|
-
viewBox:
|
|
9731
|
+
viewBox: `0 0 ${iconSize} ${iconSize}`,
|
|
9725
9732
|
fill: fill,
|
|
9726
9733
|
"aria-hidden": true,
|
|
9727
9734
|
children: [/*#__PURE__*/jsxRuntime.jsx(StyledPath, {
|
|
@@ -10006,8 +10013,8 @@ const comfortable = {
|
|
|
10006
10013
|
height: clickbounds.default__base,
|
|
10007
10014
|
width: clickbounds.default__base,
|
|
10008
10015
|
offset: {
|
|
10009
|
-
top:
|
|
10010
|
-
left:
|
|
10016
|
+
top: `${(parseInt(clickbounds.default__base) - parseInt(circle.minHeight)) / 2}px`,
|
|
10017
|
+
left: `${(parseInt(clickbounds.default__base) - parseInt(circle.minWidth)) / 2}px`
|
|
10011
10018
|
}
|
|
10012
10019
|
},
|
|
10013
10020
|
entities: {
|
|
@@ -10056,8 +10063,8 @@ const comfortable = {
|
|
|
10056
10063
|
height: clickbounds.compact__standard,
|
|
10057
10064
|
width: clickbounds.compact__standard,
|
|
10058
10065
|
offset: {
|
|
10059
|
-
top:
|
|
10060
|
-
left:
|
|
10066
|
+
top: `${(parseInt(clickbounds.compact__standard) - parseInt(compactIconButton.minHeight)) / 2}px`,
|
|
10067
|
+
left: `${(parseInt(clickbounds.compact__standard) - parseInt(compactIconButton.minWidth)) / 2}px`
|
|
10061
10068
|
}
|
|
10062
10069
|
},
|
|
10063
10070
|
entities: {
|
|
@@ -10255,7 +10262,7 @@ const selectTokens = {
|
|
|
10255
10262
|
}
|
|
10256
10263
|
}
|
|
10257
10264
|
};
|
|
10258
|
-
const multiSelect = mergeDeepRight(selectTokens, {
|
|
10265
|
+
const multiSelect = mergeDeepRight$1(selectTokens, {
|
|
10259
10266
|
spacings: {
|
|
10260
10267
|
top: '0',
|
|
10261
10268
|
bottom: '0',
|
|
@@ -10634,7 +10641,7 @@ function AutocompleteInner(props, ref) {
|
|
|
10634
10641
|
}
|
|
10635
10642
|
|
|
10636
10643
|
if (multiple) {
|
|
10637
|
-
placeholderText = typeof placeholderText !== 'undefined' ? placeholderText :
|
|
10644
|
+
placeholderText = typeof placeholderText !== 'undefined' ? placeholderText : `${selectedItems.length}/${options.length - disabledItems.length} selected`;
|
|
10638
10645
|
comboBoxProps = { ...comboBoxProps,
|
|
10639
10646
|
selectedItem: null,
|
|
10640
10647
|
stateReducer: (state, actionAndChanges) => {
|
|
@@ -10731,10 +10738,10 @@ function AutocompleteInner(props, ref) {
|
|
|
10731
10738
|
availableHeight,
|
|
10732
10739
|
elements
|
|
10733
10740
|
} = _ref10;
|
|
10734
|
-
const anchorWidth =
|
|
10741
|
+
const anchorWidth = `${rects.reference.width}px`;
|
|
10735
10742
|
Object.assign(elements.floating.style, {
|
|
10736
|
-
width:
|
|
10737
|
-
maxHeight:
|
|
10743
|
+
width: `${autoWidth ? anchorWidth : 'auto'}`,
|
|
10744
|
+
maxHeight: `${availableHeight}px`
|
|
10738
10745
|
});
|
|
10739
10746
|
},
|
|
10740
10747
|
|