@equinor/eds-core-react 0.13.1 → 0.14.1
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/core-react.cjs.js +860 -576
- package/dist/core-react.esm.js +861 -577
- package/dist/core-react.umd.js +860 -576
- package/dist/types/components/Accordion/Accordion.tokens.d.ts +1 -0
- package/dist/types/components/Banner/Banner.d.ts +4 -2
- package/dist/types/components/Banner/BannerActions.d.ts +5 -2
- package/dist/types/components/Banner/BannerIcon.d.ts +7 -2
- package/dist/types/components/Banner/BannerMessage.d.ts +5 -2
- package/dist/types/components/Combobox/Combobox.d.ts +55 -0
- package/dist/types/components/Combobox/Combobox.tokens.d.ts +3 -0
- package/dist/types/components/Combobox/index.d.ts +1 -0
- package/dist/types/components/Input/Input.d.ts +2 -2
- package/dist/types/components/Pagination/Pagination.d.ts +2 -2
- package/dist/types/components/Select/commonStyles.d.ts +3 -6
- package/dist/types/components/Snackbar/Snackbar.d.ts +4 -4
- package/dist/types/components/Snackbar/SnackbarAction.d.ts +1 -1
- package/dist/types/components/Switch/Switch.styles.d.ts +1 -0
- package/dist/types/components/Table/DataCell/DataCell.tokens.d.ts +5 -3
- package/dist/types/components/TextField/Field.d.ts +4 -4
- package/dist/types/components/TextField/Icon/Icon.d.ts +2 -5
- package/dist/types/components/TextField/{context.d.ts → TextField.context.d.ts} +0 -0
- package/dist/types/components/Textarea/Textarea.d.ts +2 -2
- package/dist/types/components/Tooltip/Tooltip.d.ts +2 -2
- package/dist/types/components/Typography/Typography.tokens.d.ts +48 -0
- package/dist/types/hooks/index.d.ts +1 -0
- package/dist/types/hooks/useHideBodyScroll.d.ts +1 -0
- package/dist/types/utils/index.d.ts +1 -0
- package/dist/types/utils/joinHandlers.d.ts +3 -0
- package/package.json +110 -108
- package/src/index.ts +37 -0
- package/CHANGELOG.md +0 -590
package/dist/core-react.umd.js
CHANGED
|
@@ -360,6 +360,17 @@
|
|
|
360
360
|
PERFORMANCE OF THIS SOFTWARE.
|
|
361
361
|
***************************************************************************** */
|
|
362
362
|
|
|
363
|
+
var __assign = function() {
|
|
364
|
+
__assign = Object.assign || function __assign(t) {
|
|
365
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
366
|
+
s = arguments[i];
|
|
367
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
368
|
+
}
|
|
369
|
+
return t;
|
|
370
|
+
};
|
|
371
|
+
return __assign.apply(this, arguments);
|
|
372
|
+
};
|
|
373
|
+
|
|
363
374
|
function __rest(s, e) {
|
|
364
375
|
var t = {};
|
|
365
376
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
@@ -2179,6 +2190,11 @@
|
|
|
2179
2190
|
minHeight: '24px',
|
|
2180
2191
|
minWidth: '2px',
|
|
2181
2192
|
borderRadius: ''
|
|
2193
|
+
},
|
|
2194
|
+
circle: {
|
|
2195
|
+
minHeight: '24px',
|
|
2196
|
+
minWidth: '24px',
|
|
2197
|
+
borderRadius: '100px'
|
|
2182
2198
|
}
|
|
2183
2199
|
}
|
|
2184
2200
|
},
|
|
@@ -2251,7 +2267,7 @@
|
|
|
2251
2267
|
xx_small: '2px'
|
|
2252
2268
|
}
|
|
2253
2269
|
};
|
|
2254
|
-
var typography$
|
|
2270
|
+
var typography$j = {
|
|
2255
2271
|
heading: {
|
|
2256
2272
|
h1_bold: {
|
|
2257
2273
|
color: 'rgba(61, 61, 61, 1)',
|
|
@@ -2386,7 +2402,7 @@
|
|
|
2386
2402
|
color: 'rgba(61, 61, 61, 1)',
|
|
2387
2403
|
fontFamily: 'Equinor',
|
|
2388
2404
|
fontSize: '1.000rem',
|
|
2389
|
-
fontWeight:
|
|
2405
|
+
fontWeight: 400,
|
|
2390
2406
|
letterSpacing: '0.013em',
|
|
2391
2407
|
lineHeight: '1.000em',
|
|
2392
2408
|
textAlign: 'left'
|
|
@@ -2596,6 +2612,54 @@
|
|
|
2596
2612
|
textAlign: 'left'
|
|
2597
2613
|
}
|
|
2598
2614
|
},
|
|
2615
|
+
_modes: {
|
|
2616
|
+
compact: {
|
|
2617
|
+
table: {
|
|
2618
|
+
cell_header: {
|
|
2619
|
+
color: 'rgba(0, 0, 0, 1)',
|
|
2620
|
+
fontFamily: 'Equinor',
|
|
2621
|
+
fontSize: '0.875rem',
|
|
2622
|
+
fontWeight: 700,
|
|
2623
|
+
lineHeight: '1.143em',
|
|
2624
|
+
textAlign: 'left'
|
|
2625
|
+
},
|
|
2626
|
+
cell_text: {
|
|
2627
|
+
color: 'rgba(0, 0, 0, 1)',
|
|
2628
|
+
fontFamily: 'Equinor',
|
|
2629
|
+
fontSize: '0.875rem',
|
|
2630
|
+
fontWeight: 500,
|
|
2631
|
+
lineHeight: '1.143em',
|
|
2632
|
+
textAlign: 'left'
|
|
2633
|
+
},
|
|
2634
|
+
cell_text_bold: {
|
|
2635
|
+
color: 'rgba(0, 0, 0, 1)',
|
|
2636
|
+
fontFamily: 'Equinor',
|
|
2637
|
+
fontSize: '0.875rem',
|
|
2638
|
+
fontWeight: 700,
|
|
2639
|
+
lineHeight: '1.143em',
|
|
2640
|
+
textAlign: 'left'
|
|
2641
|
+
},
|
|
2642
|
+
cell_text_link: {
|
|
2643
|
+
color: 'rgba(0, 0, 0, 1)',
|
|
2644
|
+
fontFamily: 'Equinor',
|
|
2645
|
+
fontSize: '0.875rem',
|
|
2646
|
+
fontWeight: 500,
|
|
2647
|
+
lineHeight: '1.143em',
|
|
2648
|
+
textDecoration: 'underline',
|
|
2649
|
+
textAlign: 'left'
|
|
2650
|
+
},
|
|
2651
|
+
cell_numeric_monospaced: {
|
|
2652
|
+
fontFeature: "'tnum' on,'lnum' on",
|
|
2653
|
+
color: 'rgba(0, 0, 0, 1)',
|
|
2654
|
+
fontFamily: 'Equinor',
|
|
2655
|
+
fontSize: '0.875rem',
|
|
2656
|
+
fontWeight: 500,
|
|
2657
|
+
lineHeight: '1.143em',
|
|
2658
|
+
textAlign: 'left'
|
|
2659
|
+
}
|
|
2660
|
+
}
|
|
2661
|
+
}
|
|
2662
|
+
},
|
|
2599
2663
|
ui: {
|
|
2600
2664
|
tooltip: {
|
|
2601
2665
|
color: 'rgba(61, 61, 61, 1)',
|
|
@@ -2646,7 +2710,7 @@
|
|
|
2646
2710
|
interactions: interactions,
|
|
2647
2711
|
shape: shape$3,
|
|
2648
2712
|
spacings: spacings$7,
|
|
2649
|
-
typography: typography$
|
|
2713
|
+
typography: typography$j
|
|
2650
2714
|
};
|
|
2651
2715
|
|
|
2652
2716
|
var buttonTypography = tokens$6.typography.navigation.button,
|
|
@@ -2661,9 +2725,9 @@
|
|
|
2661
2725
|
buttonBorderRadius$2 = _tokens$shape$button.borderRadius,
|
|
2662
2726
|
compactButtonHeight = _tokens$shape$2._modes.compact.button.minHeight,
|
|
2663
2727
|
outline = tokens$6.interactions.focused,
|
|
2664
|
-
_tokens$clickbounds$
|
|
2665
|
-
clicboundHeight$1 = _tokens$clickbounds$
|
|
2666
|
-
compactClickboundHeight$1 = _tokens$clickbounds$
|
|
2728
|
+
_tokens$clickbounds$3 = tokens$6.clickbounds,
|
|
2729
|
+
clicboundHeight$1 = _tokens$clickbounds$3.default__base,
|
|
2730
|
+
compactClickboundHeight$1 = _tokens$clickbounds$3.compact__standard;
|
|
2667
2731
|
var button = {
|
|
2668
2732
|
background: 'transparent',
|
|
2669
2733
|
height: buttonHeight,
|
|
@@ -3170,9 +3234,9 @@
|
|
|
3170
3234
|
dangerColor = _tokens$colors$intera$g.danger__resting.rgba,
|
|
3171
3235
|
dangerHoverColor = _tokens$colors$intera$g.danger__hover.rgba,
|
|
3172
3236
|
dangerHoverAltColor = _tokens$colors$intera$g.danger__highlight.rgba,
|
|
3173
|
-
_tokens$clickbounds = tokens$6.clickbounds,
|
|
3174
|
-
clicboundHeight = _tokens$clickbounds.default__base,
|
|
3175
|
-
compactClickboundHeight = _tokens$clickbounds.compact__standard,
|
|
3237
|
+
_tokens$clickbounds$2 = tokens$6.clickbounds,
|
|
3238
|
+
clicboundHeight = _tokens$clickbounds$2.default__base,
|
|
3239
|
+
compactClickboundHeight = _tokens$clickbounds$2.compact__standard,
|
|
3176
3240
|
shape$2 = tokens$6.shape;
|
|
3177
3241
|
var primary$6 = mergeDeepRight(button, {
|
|
3178
3242
|
height: shape$2.icon_button.minHeight,
|
|
@@ -3209,6 +3273,11 @@
|
|
|
3209
3273
|
border: {
|
|
3210
3274
|
color: 'transparent'
|
|
3211
3275
|
}
|
|
3276
|
+
},
|
|
3277
|
+
focus: {
|
|
3278
|
+
outline: {
|
|
3279
|
+
offset: '0px'
|
|
3280
|
+
}
|
|
3212
3281
|
}
|
|
3213
3282
|
},
|
|
3214
3283
|
modes: {
|
|
@@ -3252,7 +3321,7 @@
|
|
|
3252
3321
|
}
|
|
3253
3322
|
});
|
|
3254
3323
|
|
|
3255
|
-
var token$
|
|
3324
|
+
var token$6 = {
|
|
3256
3325
|
primary: {
|
|
3257
3326
|
contained: primary$9,
|
|
3258
3327
|
outlined: primary$8,
|
|
@@ -3397,6 +3466,15 @@
|
|
|
3397
3466
|
});
|
|
3398
3467
|
};
|
|
3399
3468
|
|
|
3469
|
+
var joinHandlers = function joinHandlers(handler1, handler2) {
|
|
3470
|
+
var callback = function callback(event) {
|
|
3471
|
+
handler1 && handler1(event);
|
|
3472
|
+
handler2 && handler2(event);
|
|
3473
|
+
};
|
|
3474
|
+
|
|
3475
|
+
return callback;
|
|
3476
|
+
};
|
|
3477
|
+
|
|
3400
3478
|
var setReactInputValue = function setReactInputValue(input, value) {
|
|
3401
3479
|
var previousValue = input.value;
|
|
3402
3480
|
input.value = value;
|
|
@@ -5747,7 +5825,7 @@
|
|
|
5747
5825
|
if (defaultId == null) {
|
|
5748
5826
|
setDefaultId("eds-".concat(type ? type + "-" : '').concat(Math.round(Math.random() * 1e5)));
|
|
5749
5827
|
}
|
|
5750
|
-
}, [defaultId]);
|
|
5828
|
+
}, [defaultId, type]);
|
|
5751
5829
|
return id;
|
|
5752
5830
|
};
|
|
5753
5831
|
|
|
@@ -5814,6 +5892,15 @@
|
|
|
5814
5892
|
}, [options, token]);
|
|
5815
5893
|
};
|
|
5816
5894
|
|
|
5895
|
+
var useHideBodyScroll = function useHideBodyScroll(overflowState) {
|
|
5896
|
+
React.useEffect(function () {
|
|
5897
|
+
document.body.style.overflow = 'hidden';
|
|
5898
|
+
return function () {
|
|
5899
|
+
document.body.style.overflow = overflowState;
|
|
5900
|
+
};
|
|
5901
|
+
}, []);
|
|
5902
|
+
};
|
|
5903
|
+
|
|
5817
5904
|
var FullWidthCenterContent = styled__default['default'].span.withConfig({
|
|
5818
5905
|
displayName: "InnerFullWidth__FullWidthCenterContent",
|
|
5819
5906
|
componentId: "sc-qeawkb-0"
|
|
@@ -5899,14 +5986,14 @@
|
|
|
5899
5986
|
var getToken$1 = function getToken(variant, color) {
|
|
5900
5987
|
switch (color) {
|
|
5901
5988
|
case 'danger':
|
|
5902
|
-
return getVariant(token$
|
|
5989
|
+
return getVariant(token$6.danger, variant);
|
|
5903
5990
|
|
|
5904
5991
|
case 'secondary':
|
|
5905
|
-
return getVariant(token$
|
|
5992
|
+
return getVariant(token$6.secondary, variant);
|
|
5906
5993
|
|
|
5907
5994
|
case 'primary':
|
|
5908
5995
|
default:
|
|
5909
|
-
return getVariant(token$
|
|
5996
|
+
return getVariant(token$6.primary, variant);
|
|
5910
5997
|
}
|
|
5911
5998
|
};
|
|
5912
5999
|
|
|
@@ -5927,7 +6014,7 @@
|
|
|
5927
6014
|
var focus = states.focus,
|
|
5928
6015
|
hover = states.hover,
|
|
5929
6016
|
disabled = states.disabled;
|
|
5930
|
-
return styled.css(["margin:0;padding:0;text-decoration:none;position:relative;cursor:pointer;display:inline-block;background:", ";height:", ";width:", ";svg{justify-self:center;}", " ", " ", " &::before{position:absolute;top:0;left:0;width:auto;min-height:auto;content:'';}&::after{position:absolute;top:-", ";left:-", ";width:", ";height:", ";content:'';}&:hover{background:", ";color:", ";", "}&:focus{outline:none;}&[data-focus-visible-added]:focus{", "}&::-moz-focus-inner{border:0;}&:disabled{cursor:not-allowed;background:", ";", "
|
|
6017
|
+
return styled.css(["margin:0;padding:0;text-decoration:none;position:relative;cursor:pointer;display:inline-block;background:", ";height:", ";width:", ";svg{justify-self:center;}", " ", " ", " &::before{position:absolute;top:0;left:0;width:auto;min-height:auto;content:'';}&::after{position:absolute;top:-", ";left:-", ";width:", ";height:", ";content:'';}@media (hover:hover) and (pointer:fine){&:hover{background:", ";color:", ";", ";}}&:focus{outline:none;}&[data-focus-visible-added]:focus{", "}&::-moz-focus-inner{border:0;}&:disabled{cursor:not-allowed;background:", ";", ";", ";@media (hover:hover) and (pointer:fine){&:hover{background:", ";}}}"], theme.background, theme.height, theme.width, spacingsTemplate(theme.spacings), bordersTemplate(theme.border), typographyTemplate(theme.typography), (_a = clickbound === null || clickbound === void 0 ? void 0 : clickbound.offset) === null || _a === void 0 ? void 0 : _a.top, (_b = clickbound === null || clickbound === void 0 ? void 0 : clickbound.offset) === null || _b === void 0 ? void 0 : _b.left, clickbound === null || clickbound === void 0 ? void 0 : clickbound.width, clickbound === null || clickbound === void 0 ? void 0 : clickbound.height, hover.background, (_c = hover.typography) === null || _c === void 0 ? void 0 : _c.color, bordersTemplate(hover === null || hover === void 0 ? void 0 : hover.border), outlineTemplate(focus.outline), disabled.background, bordersTemplate(disabled.border), typographyTemplate(disabled.typography), disabled.background);
|
|
5931
6018
|
});
|
|
5932
6019
|
var Button = /*#__PURE__*/React.forwardRef(function Button(_a, ref) {
|
|
5933
6020
|
var _a$color = _a.color,
|
|
@@ -5949,7 +6036,7 @@
|
|
|
5949
6036
|
|
|
5950
6037
|
var token = useToken({
|
|
5951
6038
|
density: density
|
|
5952
|
-
}, getToken$1(variant, color))
|
|
6039
|
+
}, getToken$1(variant, color));
|
|
5953
6040
|
var as = href && !disabled ? 'a' : other.as ? other.as : 'button';
|
|
5954
6041
|
var type = href || other.as ? undefined : 'button';
|
|
5955
6042
|
tabIndex = disabled ? -1 : tabIndex;
|
|
@@ -5974,10 +6061,10 @@
|
|
|
5974
6061
|
}), void 0);
|
|
5975
6062
|
});
|
|
5976
6063
|
|
|
5977
|
-
var typography$
|
|
6064
|
+
var typography$i = tokens$6.typography,
|
|
5978
6065
|
colorsToken = tokens$6.colors;
|
|
5979
|
-
var heading = typography$
|
|
5980
|
-
paragraph$2 = typography$
|
|
6066
|
+
var heading = typography$i.heading,
|
|
6067
|
+
paragraph$2 = typography$i.paragraph;
|
|
5981
6068
|
var _colorsToken$interact = colorsToken.interactive,
|
|
5982
6069
|
primary$5 = _colorsToken$interact.primary__resting.rgba,
|
|
5983
6070
|
secondary = _colorsToken$interact.secondary__resting.rgba,
|
|
@@ -6040,7 +6127,7 @@
|
|
|
6040
6127
|
return quickVariants[variantName];
|
|
6041
6128
|
}
|
|
6042
6129
|
|
|
6043
|
-
return typography$
|
|
6130
|
+
return typography$i[group][variantName];
|
|
6044
6131
|
};
|
|
6045
6132
|
|
|
6046
6133
|
var findColor = function findColor() {
|
|
@@ -6106,9 +6193,11 @@
|
|
|
6106
6193
|
}), void 0);
|
|
6107
6194
|
});
|
|
6108
6195
|
|
|
6109
|
-
var _tokens$typography$
|
|
6196
|
+
var _tokens$typography$2 = tokens$6.typography,
|
|
6197
|
+
_tokens$typography$ta = _tokens$typography$2.table,
|
|
6110
6198
|
cellTypography$1 = _tokens$typography$ta.cell_text,
|
|
6111
6199
|
cellNumericTypography = _tokens$typography$ta.cell_numeric_monospaced,
|
|
6200
|
+
compactTypography$1 = _tokens$typography$2._modes.compact,
|
|
6112
6201
|
_tokens$colors$h = tokens$6.colors,
|
|
6113
6202
|
typographyColor$1 = _tokens$colors$h.text.static_icons__default.rgba,
|
|
6114
6203
|
borderColor$4 = _tokens$colors$h.ui.background__medium.rgba,
|
|
@@ -6180,33 +6269,45 @@
|
|
|
6180
6269
|
modes: {
|
|
6181
6270
|
compact: {
|
|
6182
6271
|
height: '32px',
|
|
6183
|
-
typography: {
|
|
6184
|
-
|
|
6272
|
+
typography: Object.assign(Object.assign({}, compactTypography$1.table.cell_text), {
|
|
6273
|
+
color: typographyColor$1
|
|
6274
|
+
})
|
|
6275
|
+
}
|
|
6276
|
+
},
|
|
6277
|
+
validation: {
|
|
6278
|
+
error: {
|
|
6279
|
+
background: errorColor$1
|
|
6280
|
+
}
|
|
6281
|
+
},
|
|
6282
|
+
variants: {
|
|
6283
|
+
numeric: {
|
|
6284
|
+
typography: Object.assign(Object.assign({}, cellNumericTypography), {
|
|
6285
|
+
color: typographyColor$1
|
|
6286
|
+
}),
|
|
6287
|
+
modes: {
|
|
6288
|
+
compact: {
|
|
6289
|
+
typography: Object.assign(Object.assign({}, compactTypography$1.table.cell_numeric_monospaced), {
|
|
6290
|
+
color: typographyColor$1
|
|
6291
|
+
})
|
|
6292
|
+
}
|
|
6185
6293
|
}
|
|
6186
6294
|
}
|
|
6187
6295
|
}
|
|
6188
6296
|
};
|
|
6189
|
-
var
|
|
6190
|
-
|
|
6191
|
-
|
|
6192
|
-
|
|
6193
|
-
|
|
6194
|
-
|
|
6195
|
-
|
|
6196
|
-
typography: Object.assign(Object.assign({}, cellNumericTypography), {
|
|
6197
|
-
color: typographyColor$1
|
|
6198
|
-
})
|
|
6297
|
+
var applyVariant = function applyVariant(variant, token) {
|
|
6298
|
+
switch (variant) {
|
|
6299
|
+
case 'numeric':
|
|
6300
|
+
return mergeDeepRight(token, token.variants.numeric);
|
|
6301
|
+
|
|
6302
|
+
default:
|
|
6303
|
+
return token;
|
|
6199
6304
|
}
|
|
6200
6305
|
};
|
|
6201
|
-
var token$6 = Object.assign(Object.assign({}, tableCell), {
|
|
6202
|
-
validation: validation,
|
|
6203
|
-
variants: variants$2
|
|
6204
|
-
});
|
|
6205
6306
|
|
|
6206
6307
|
var TableBase$1 = styled__default['default'].table.withConfig({
|
|
6207
6308
|
displayName: "Table__TableBase",
|
|
6208
6309
|
componentId: "sc-14kktwc-0"
|
|
6209
|
-
})(["border-spacing:0;background:", ";"],
|
|
6310
|
+
})(["border-spacing:0;background:", ";"], tableCell.background);
|
|
6210
6311
|
var Table$1 = /*#__PURE__*/React.forwardRef(function Table(_a, ref) {
|
|
6211
6312
|
var children = _a.children,
|
|
6212
6313
|
props = __rest(_a, ["children"]);
|
|
@@ -6244,18 +6345,6 @@
|
|
|
6244
6345
|
}), void 0);
|
|
6245
6346
|
});
|
|
6246
6347
|
|
|
6247
|
-
var applyMutations = function applyMutations(variant, token) {
|
|
6248
|
-
switch (variant) {
|
|
6249
|
-
case 'numeric':
|
|
6250
|
-
return Object.assign(Object.assign({}, token), {
|
|
6251
|
-
typography: Object.assign(Object.assign({}, token.typography), token.variants.numeric.typography)
|
|
6252
|
-
});
|
|
6253
|
-
|
|
6254
|
-
default:
|
|
6255
|
-
return token;
|
|
6256
|
-
}
|
|
6257
|
-
};
|
|
6258
|
-
|
|
6259
6348
|
var StyledTableCell$1 = styled__default['default'].td.withConfig({
|
|
6260
6349
|
displayName: "DataCell__StyledTableCell",
|
|
6261
6350
|
componentId: "sc-15tuitc-0"
|
|
@@ -6284,7 +6373,7 @@
|
|
|
6284
6373
|
|
|
6285
6374
|
var token = useToken({
|
|
6286
6375
|
density: density
|
|
6287
|
-
},
|
|
6376
|
+
}, applyVariant(variant, tableCell));
|
|
6288
6377
|
return jsxRuntime.exports.jsx(styled.ThemeProvider, Object.assign({
|
|
6289
6378
|
theme: token
|
|
6290
6379
|
}, {
|
|
@@ -6296,7 +6385,9 @@
|
|
|
6296
6385
|
}), void 0);
|
|
6297
6386
|
});
|
|
6298
6387
|
|
|
6299
|
-
var
|
|
6388
|
+
var _tokens$typography$1 = tokens$6.typography,
|
|
6389
|
+
cellTypography = _tokens$typography$1.table.cell_header,
|
|
6390
|
+
compactTypography = _tokens$typography$1._modes.compact,
|
|
6300
6391
|
_tokens$colors$g = tokens$6.colors,
|
|
6301
6392
|
typographyColor = _tokens$colors$g.text.static_icons__default.rgba,
|
|
6302
6393
|
borderColor$3 = _tokens$colors$g.ui.background__medium.rgba,
|
|
@@ -6369,9 +6460,7 @@
|
|
|
6369
6460
|
modes: {
|
|
6370
6461
|
compact: {
|
|
6371
6462
|
height: '32px',
|
|
6372
|
-
typography:
|
|
6373
|
-
lineHeight: '1rem'
|
|
6374
|
-
}
|
|
6463
|
+
typography: compactTypography.table.cell_header
|
|
6375
6464
|
}
|
|
6376
6465
|
}
|
|
6377
6466
|
};
|
|
@@ -6415,7 +6504,7 @@
|
|
|
6415
6504
|
|
|
6416
6505
|
var token = useToken({
|
|
6417
6506
|
density: density
|
|
6418
|
-
}, token$5)
|
|
6507
|
+
}, token$5);
|
|
6419
6508
|
return jsxRuntime.exports.jsx(styled.ThemeProvider, Object.assign({
|
|
6420
6509
|
theme: token
|
|
6421
6510
|
}, {
|
|
@@ -6519,8 +6608,10 @@
|
|
|
6519
6608
|
|
|
6520
6609
|
return {
|
|
6521
6610
|
background: active ? (_a = token$3.states.active) === null || _a === void 0 ? void 0 : _a.background : null,
|
|
6522
|
-
':hover': {
|
|
6523
|
-
|
|
6611
|
+
'@media (hover: hover) and (pointer: fine)': {
|
|
6612
|
+
':hover': {
|
|
6613
|
+
background: (_b = token$3.states.hover) === null || _b === void 0 ? void 0 : _b.background
|
|
6614
|
+
}
|
|
6524
6615
|
}
|
|
6525
6616
|
};
|
|
6526
6617
|
});
|
|
@@ -6567,9 +6658,9 @@
|
|
|
6567
6658
|
lighter = _tokens$colors$ui$5.background__default.rgba,
|
|
6568
6659
|
light = _tokens$colors$ui$5.background__light.rgba,
|
|
6569
6660
|
mediumColor = _tokens$colors$ui$5.background__medium.rgba,
|
|
6570
|
-
_tokens$spacings$comf$
|
|
6571
|
-
spacingSmall$4 = _tokens$spacings$comf$
|
|
6572
|
-
spacingMedium$8 = _tokens$spacings$comf$
|
|
6661
|
+
_tokens$spacings$comf$d = tokens$6.spacings.comfortable,
|
|
6662
|
+
spacingSmall$4 = _tokens$spacings$comf$d.small,
|
|
6663
|
+
spacingMedium$8 = _tokens$spacings$comf$d.medium;
|
|
6573
6664
|
var dividerHeight = 1;
|
|
6574
6665
|
|
|
6575
6666
|
var reduceByValue = function reduceByValue(subtractValue) {
|
|
@@ -6596,7 +6687,7 @@
|
|
|
6596
6687
|
background: mediumColor
|
|
6597
6688
|
}
|
|
6598
6689
|
};
|
|
6599
|
-
var small$
|
|
6690
|
+
var small$7 = Object.assign(Object.assign({}, baseDivider$1), {
|
|
6600
6691
|
spacings: {
|
|
6601
6692
|
top: spacingSmall$4,
|
|
6602
6693
|
bottom: reduceValueByDividerHeight(spacingSmall$4)
|
|
@@ -6613,7 +6704,7 @@
|
|
|
6613
6704
|
__proto__: null,
|
|
6614
6705
|
baseDivider: baseDivider$1,
|
|
6615
6706
|
divider: divider$1,
|
|
6616
|
-
small: small$
|
|
6707
|
+
small: small$7,
|
|
6617
6708
|
medium: medium$3
|
|
6618
6709
|
});
|
|
6619
6710
|
|
|
@@ -6707,21 +6798,21 @@
|
|
|
6707
6798
|
warning__hover = _tokens$colors$intera$c.warning__hover,
|
|
6708
6799
|
success__resting = _tokens$colors$intera$c.success__resting,
|
|
6709
6800
|
success__hover = _tokens$colors$intera$c.success__hover,
|
|
6710
|
-
_tokens$spacings$comf$
|
|
6711
|
-
small$
|
|
6712
|
-
x_small$
|
|
6713
|
-
typography$
|
|
6801
|
+
_tokens$spacings$comf$c = tokens$6.spacings.comfortable,
|
|
6802
|
+
small$6 = _tokens$spacings$comf$c.small,
|
|
6803
|
+
x_small$5 = _tokens$spacings$comf$c.x_small,
|
|
6804
|
+
typography$h = tokens$6.typography,
|
|
6714
6805
|
shape$1 = tokens$6.shape;
|
|
6715
6806
|
var input$2 = {
|
|
6716
6807
|
minHeight: shape$1.straight.minHeight,
|
|
6717
6808
|
background: background$f,
|
|
6718
6809
|
spacings: {
|
|
6719
|
-
left: small$
|
|
6720
|
-
right: small$
|
|
6810
|
+
left: small$6,
|
|
6811
|
+
right: small$6,
|
|
6721
6812
|
top: '6px',
|
|
6722
6813
|
bottom: '6px'
|
|
6723
6814
|
},
|
|
6724
|
-
typography: Object.assign(Object.assign({}, typography$
|
|
6815
|
+
typography: Object.assign(Object.assign({}, typography$h.input.text), {
|
|
6725
6816
|
color: static_icons__default.rgba
|
|
6726
6817
|
}),
|
|
6727
6818
|
entities: {
|
|
@@ -6737,6 +6828,10 @@
|
|
|
6737
6828
|
color: disabled__text.rgba
|
|
6738
6829
|
}
|
|
6739
6830
|
},
|
|
6831
|
+
readOnly: {
|
|
6832
|
+
background: 'transparent',
|
|
6833
|
+
boxShadow: 'none'
|
|
6834
|
+
},
|
|
6740
6835
|
active: {
|
|
6741
6836
|
outline: {
|
|
6742
6837
|
type: 'outline',
|
|
@@ -6761,10 +6856,10 @@
|
|
|
6761
6856
|
compact: {
|
|
6762
6857
|
minHeight: shape$1._modes.compact.straight.minHeight,
|
|
6763
6858
|
spacings: {
|
|
6764
|
-
left: x_small$
|
|
6765
|
-
right: x_small$
|
|
6766
|
-
top: x_small$
|
|
6767
|
-
bottom: x_small$
|
|
6859
|
+
left: x_small$5,
|
|
6860
|
+
right: x_small$5,
|
|
6861
|
+
top: x_small$5,
|
|
6862
|
+
bottom: x_small$5
|
|
6768
6863
|
}
|
|
6769
6864
|
}
|
|
6770
6865
|
}
|
|
@@ -6863,8 +6958,9 @@
|
|
|
6863
6958
|
focusOutline = _theme$states.focus.outline,
|
|
6864
6959
|
activeOutline = _theme$states.active.outline,
|
|
6865
6960
|
disabled = _theme$states.disabled,
|
|
6961
|
+
readOnly = _theme$states.readOnly,
|
|
6866
6962
|
boxShadow = theme.boxShadow;
|
|
6867
|
-
return styled.css(["width:100%;box-sizing:border-box;margin:0;appearance:none;background:", ";border:none;height:", ";box-shadow:", ";", " ", " ", ";&::placeholder{color:", ";}&:active,&:focus{outline-offset:0;box-shadow:none;", "}&:disabled{color:", ";cursor:not-allowed;box-shadow:none;outline:none;&:focus,&:active{outline:none;}}"], theme.background, theme.minHeight, boxShadow, outlineTemplate(activeOutline), typographyTemplate(theme.typography), spacingsTemplate(theme.spacings), theme.entities.placeholder.typography.color, outlineTemplate(focusOutline), disabled.typography.color);
|
|
6963
|
+
return styled.css(["width:100%;box-sizing:border-box;margin:0;appearance:none;background:", ";border:none;height:", ";box-shadow:", ";", " ", " ", ";&::placeholder{color:", ";}&:active,&:focus{outline-offset:0;box-shadow:none;", "}&:disabled{color:", ";cursor:not-allowed;box-shadow:none;outline:none;&:focus,&:active{outline:none;}}&[readOnly]{background:", ";box-shadow:", ";}"], theme.background, theme.minHeight, boxShadow, outlineTemplate(activeOutline), typographyTemplate(theme.typography), spacingsTemplate(theme.spacings), theme.entities.placeholder.typography.color, outlineTemplate(focusOutline), disabled.typography.color, readOnly.background, readOnly.boxShadow);
|
|
6868
6964
|
});
|
|
6869
6965
|
var Input$5 = /*#__PURE__*/React.forwardRef(function Input(_a, ref) {
|
|
6870
6966
|
var _a$variant = _a.variant,
|
|
@@ -6883,7 +6979,7 @@
|
|
|
6883
6979
|
|
|
6884
6980
|
var token = useToken({
|
|
6885
6981
|
density: density
|
|
6886
|
-
}, inputVariant)
|
|
6982
|
+
}, inputVariant);
|
|
6887
6983
|
var inputProps = Object.assign({
|
|
6888
6984
|
ref: ref,
|
|
6889
6985
|
type: type,
|
|
@@ -6935,36 +7031,36 @@
|
|
|
6935
7031
|
}
|
|
6936
7032
|
};
|
|
6937
7033
|
|
|
6938
|
-
var
|
|
7034
|
+
var StyledIcon$2 = styled__default['default'].div.withConfig({
|
|
7035
|
+
displayName: "Icon__StyledIcon",
|
|
7036
|
+
componentId: "sc-jr0rqa-0"
|
|
7037
|
+
})(function (_ref) {
|
|
6939
7038
|
var colors = _ref.colors,
|
|
6940
7039
|
isDisabled = _ref.isDisabled,
|
|
6941
|
-
isFocused = _ref.isFocused
|
|
7040
|
+
isFocused = _ref.isFocused,
|
|
7041
|
+
size = _ref.size;
|
|
6942
7042
|
var focusColor = colors.focusColor,
|
|
6943
7043
|
color = colors.color,
|
|
6944
7044
|
disabledColor = colors.disabledColor;
|
|
7045
|
+
var fill = color;
|
|
6945
7046
|
|
|
6946
7047
|
if (isDisabled) {
|
|
6947
|
-
|
|
7048
|
+
fill = disabledColor;
|
|
6948
7049
|
}
|
|
6949
7050
|
|
|
6950
7051
|
if (isFocused) {
|
|
6951
|
-
|
|
7052
|
+
fill = focusColor;
|
|
6952
7053
|
}
|
|
6953
7054
|
|
|
6954
|
-
return styled.css(["&,svg{fill:", ";}"],
|
|
6955
|
-
};
|
|
6956
|
-
|
|
6957
|
-
var StyledIcon$3 = styled__default['default'].div.withConfig({
|
|
6958
|
-
displayName: "Icon__StyledIcon",
|
|
6959
|
-
componentId: "sc-jr0rqa-0"
|
|
6960
|
-
})(["&,svg{width:16px;height:16px;}", ""], Variation$3);
|
|
7055
|
+
return styled.css(["&,svg{fill:", ";width:", "px;height:", "px;}"], fill, size, size);
|
|
7056
|
+
});
|
|
6961
7057
|
var InputIcon = /*#__PURE__*/React.forwardRef(function InputIcon(_a, ref) {
|
|
6962
|
-
var _a$
|
|
7058
|
+
var _a$size = _a.size,
|
|
7059
|
+
size = _a$size === void 0 ? 24 : _a$size,
|
|
7060
|
+
_a$variant = _a.variant,
|
|
6963
7061
|
variant = _a$variant === void 0 ? 'default' : _a$variant,
|
|
6964
7062
|
_a$isDisabled = _a.isDisabled,
|
|
6965
7063
|
isDisabled = _a$isDisabled === void 0 ? false : _a$isDisabled,
|
|
6966
|
-
_a$spacings = _a.spacings,
|
|
6967
|
-
spacings = _a$spacings === void 0 ? input$1.spacings.comfortable : _a$spacings,
|
|
6968
7064
|
_a$colors = _a.colors,
|
|
6969
7065
|
colors = _a$colors === void 0 ? {
|
|
6970
7066
|
color: input$1[variant].color,
|
|
@@ -6972,18 +7068,18 @@
|
|
|
6972
7068
|
focusColor: input$1[variant].focusColor
|
|
6973
7069
|
} : _a$colors,
|
|
6974
7070
|
children = _a.children,
|
|
6975
|
-
other = __rest(_a, ["
|
|
7071
|
+
other = __rest(_a, ["size", "variant", "isDisabled", "colors", "children"]);
|
|
6976
7072
|
|
|
6977
7073
|
var _useTextField = useTextField(),
|
|
6978
7074
|
isFocused = _useTextField.isFocused;
|
|
6979
7075
|
|
|
6980
7076
|
var iconProps = {
|
|
6981
|
-
spacings: spacings,
|
|
6982
7077
|
isDisabled: isDisabled,
|
|
6983
7078
|
colors: colors,
|
|
6984
|
-
isFocused: isFocused
|
|
7079
|
+
isFocused: isFocused,
|
|
7080
|
+
size: size
|
|
6985
7081
|
};
|
|
6986
|
-
return jsxRuntime.exports.jsx(StyledIcon$
|
|
7082
|
+
return jsxRuntime.exports.jsx(StyledIcon$2, Object.assign({
|
|
6987
7083
|
ref: ref
|
|
6988
7084
|
}, iconProps, other, {
|
|
6989
7085
|
children: children
|
|
@@ -6991,10 +7087,10 @@
|
|
|
6991
7087
|
});
|
|
6992
7088
|
|
|
6993
7089
|
var colors$5 = tokens$6.colors,
|
|
6994
|
-
typography$
|
|
6995
|
-
_tokens$spacings$comf$
|
|
6996
|
-
small$
|
|
6997
|
-
x_small$
|
|
7090
|
+
typography$g = tokens$6.typography,
|
|
7091
|
+
_tokens$spacings$comf$b = tokens$6.spacings.comfortable,
|
|
7092
|
+
small$5 = _tokens$spacings$comf$b.small,
|
|
7093
|
+
x_small$4 = _tokens$spacings$comf$b.x_small;
|
|
6998
7094
|
var textfield$1 = {
|
|
6999
7095
|
background: colors$5.ui.background__light.hex,
|
|
7000
7096
|
border: {
|
|
@@ -7004,9 +7100,9 @@
|
|
|
7004
7100
|
color: colors$5.text.static_icons__tertiary.hex
|
|
7005
7101
|
},
|
|
7006
7102
|
spacings: {
|
|
7007
|
-
left: small$
|
|
7008
|
-
right: small$
|
|
7009
|
-
top: small$
|
|
7103
|
+
left: small$5,
|
|
7104
|
+
right: small$5,
|
|
7105
|
+
top: small$5
|
|
7010
7106
|
},
|
|
7011
7107
|
states: {
|
|
7012
7108
|
focus: {
|
|
@@ -7017,11 +7113,15 @@
|
|
|
7017
7113
|
type: 'outline',
|
|
7018
7114
|
offset: '0px'
|
|
7019
7115
|
}
|
|
7116
|
+
},
|
|
7117
|
+
readOnly: {
|
|
7118
|
+
background: 'transparent',
|
|
7119
|
+
boxShadow: 'none'
|
|
7020
7120
|
}
|
|
7021
7121
|
},
|
|
7022
7122
|
entities: {
|
|
7023
7123
|
unit: {
|
|
7024
|
-
typography: Object.assign(Object.assign({}, typography$
|
|
7124
|
+
typography: Object.assign(Object.assign({}, typography$g.input.label), {
|
|
7025
7125
|
color: colors$5.text.static_icons__tertiary.hex
|
|
7026
7126
|
}),
|
|
7027
7127
|
states: {
|
|
@@ -7036,10 +7136,10 @@
|
|
|
7036
7136
|
modes: {
|
|
7037
7137
|
compact: {
|
|
7038
7138
|
spacings: {
|
|
7039
|
-
left: x_small$
|
|
7040
|
-
right: x_small$
|
|
7041
|
-
top: x_small$
|
|
7042
|
-
bottom: x_small$
|
|
7139
|
+
left: x_small$4,
|
|
7140
|
+
right: x_small$4,
|
|
7141
|
+
top: x_small$4,
|
|
7142
|
+
bottom: x_small$4
|
|
7043
7143
|
}
|
|
7044
7144
|
}
|
|
7045
7145
|
}
|
|
@@ -7137,7 +7237,7 @@
|
|
|
7137
7237
|
var StyledTextarea = styled__default['default'].textarea.withConfig({
|
|
7138
7238
|
displayName: "Textarea__StyledTextarea",
|
|
7139
7239
|
componentId: "sc-2yjdcc-0"
|
|
7140
|
-
})(["width:100%;box-sizing:border-box;margin:0;border:none;appearance:none;background:", ";height:auto;", " ", " &::placeholder{color:", ";}&:disabled{color:", ";}"], input.background, typographyTemplate(input.typography), Variation$2, input.entities.placeholder.typography.color, input.states.disabled.typography.color);
|
|
7240
|
+
})(["width:100%;box-sizing:border-box;margin:0;border:none;appearance:none;background:", ";height:auto;", " ", " &::placeholder{color:", ";}&:disabled{color:", ";}&[readOnly]{box-shadow:", ";background:", ";}"], input.background, typographyTemplate(input.typography), Variation$2, input.entities.placeholder.typography.color, input.states.disabled.typography.color, input.states.readOnly.boxShadow, input.states.readOnly.background);
|
|
7141
7241
|
var Textarea = /*#__PURE__*/React.forwardRef(function Textarea(_a, ref) {
|
|
7142
7242
|
var _a$variant = _a.variant,
|
|
7143
7243
|
variant = _a$variant === void 0 ? 'default' : _a$variant,
|
|
@@ -7214,9 +7314,10 @@
|
|
|
7214
7314
|
var inputIcon = _ref2.inputIcon,
|
|
7215
7315
|
unit = _ref2.unit,
|
|
7216
7316
|
isDisabled = _ref2.isDisabled,
|
|
7317
|
+
isReadOnly = _ref2.isReadOnly,
|
|
7217
7318
|
multiline = _ref2.multiline,
|
|
7218
7319
|
variant = _ref2.variant;
|
|
7219
|
-
return styled.css(["", " ", " ", "
|
|
7320
|
+
return styled.css(["", " ", " ", " ", " ", ""], Variation$1, (inputIcon || unit) && styled.css(["display:flex;align-items:center;background:", ";padding-right:", ";"], textfield.background, textfield.spacings.right), isReadOnly && styled.css(["box-shadow:", ";background:", ";"], textfield.states.readOnly.boxShadow, textfield.states.readOnly.background), isDisabled && styled.css(["box-shadow:none;cursor:not-allowed;outline:none;"]), multiline && variant === 'default' && !inputIcon && !unit && styled.css(["box-shadow:none;"]));
|
|
7220
7321
|
});
|
|
7221
7322
|
var Unit = styled__default['default'].span.withConfig({
|
|
7222
7323
|
displayName: "Field__Unit",
|
|
@@ -7242,22 +7343,41 @@
|
|
|
7242
7343
|
var multiline = _a.multiline,
|
|
7243
7344
|
variant = _a.variant,
|
|
7244
7345
|
disabled = _a.disabled,
|
|
7346
|
+
readOnly = _a.readOnly,
|
|
7245
7347
|
type = _a.type,
|
|
7246
7348
|
unit = _a.unit,
|
|
7247
7349
|
inputIcon = _a.inputIcon,
|
|
7248
7350
|
rowsMax = _a.rowsMax,
|
|
7249
|
-
|
|
7351
|
+
onBlur = _a.onBlur,
|
|
7352
|
+
onFocus = _a.onFocus,
|
|
7353
|
+
other = __rest(_a, ["multiline", "variant", "disabled", "readOnly", "type", "unit", "inputIcon", "rowsMax", "onBlur", "onFocus"]);
|
|
7250
7354
|
|
|
7251
7355
|
var _useTextField = useTextField(),
|
|
7252
7356
|
handleFocus = _useTextField.handleFocus,
|
|
7253
7357
|
handleBlur = _useTextField.handleBlur,
|
|
7254
7358
|
isFocused = _useTextField.isFocused;
|
|
7255
7359
|
|
|
7360
|
+
var _useEds = useEds(),
|
|
7361
|
+
density = _useEds.density;
|
|
7362
|
+
|
|
7363
|
+
var iconSize = density === 'compact' ? 16 : 24;
|
|
7256
7364
|
var actualVariant = variant === 'default' ? 'textfield' : variant;
|
|
7257
7365
|
var inputVariant = tokens$3[actualVariant];
|
|
7366
|
+
|
|
7367
|
+
var focusHandler = function focusHandler(e) {
|
|
7368
|
+
handleFocus();
|
|
7369
|
+
onFocus && onFocus(e);
|
|
7370
|
+
};
|
|
7371
|
+
|
|
7372
|
+
var blurHandler = function blurHandler(e) {
|
|
7373
|
+
handleBlur();
|
|
7374
|
+
onBlur && onBlur(e);
|
|
7375
|
+
};
|
|
7376
|
+
|
|
7258
7377
|
var inputWrapperProps = {
|
|
7259
7378
|
isFocused: isFocused,
|
|
7260
7379
|
isDisabled: disabled,
|
|
7380
|
+
isReadOnly: readOnly,
|
|
7261
7381
|
variant: variant,
|
|
7262
7382
|
token: inputVariant,
|
|
7263
7383
|
inputIcon: inputIcon,
|
|
@@ -7268,20 +7388,17 @@
|
|
|
7268
7388
|
ref: ref,
|
|
7269
7389
|
type: type,
|
|
7270
7390
|
disabled: disabled,
|
|
7271
|
-
|
|
7391
|
+
readOnly: readOnly,
|
|
7392
|
+
variant: variant,
|
|
7393
|
+
onBlur: blurHandler,
|
|
7394
|
+
onFocus: focusHandler
|
|
7272
7395
|
}, other);
|
|
7273
7396
|
var textareaProps = Object.assign(Object.assign({}, inputProps), {
|
|
7274
7397
|
rowsMax: rowsMax,
|
|
7275
7398
|
ref: ref
|
|
7276
7399
|
});
|
|
7277
7400
|
return jsxRuntime.exports.jsxs(InputWrapper$2, Object.assign({}, inputWrapperProps, {
|
|
7278
|
-
children: [multiline ? jsxRuntime.exports.jsx(StrippedTextarea, Object.assign({
|
|
7279
|
-
onBlur: handleBlur,
|
|
7280
|
-
onFocus: handleFocus
|
|
7281
|
-
}, textareaProps), void 0) : jsxRuntime.exports.jsx(StrippedInput, Object.assign({
|
|
7282
|
-
onBlur: handleBlur,
|
|
7283
|
-
onFocus: handleFocus
|
|
7284
|
-
}, inputProps), void 0), (inputIcon || unit) && jsxRuntime.exports.jsxs(Adornments, Object.assign({
|
|
7401
|
+
children: [multiline ? jsxRuntime.exports.jsx(StrippedTextarea, Object.assign({}, textareaProps), void 0) : jsxRuntime.exports.jsx(StrippedInput, Object.assign({}, inputProps), void 0), (inputIcon || unit) && jsxRuntime.exports.jsxs(Adornments, Object.assign({
|
|
7285
7402
|
multiline: multiline
|
|
7286
7403
|
}, {
|
|
7287
7404
|
children: [unit && jsxRuntime.exports.jsx(Unit, Object.assign({
|
|
@@ -7290,7 +7407,8 @@
|
|
|
7290
7407
|
children: unit
|
|
7291
7408
|
}), void 0), inputIcon && jsxRuntime.exports.jsx(InputIcon, Object.assign({
|
|
7292
7409
|
isDisabled: disabled,
|
|
7293
|
-
variant: variant
|
|
7410
|
+
variant: variant,
|
|
7411
|
+
size: iconSize
|
|
7294
7412
|
}, {
|
|
7295
7413
|
children: inputIcon
|
|
7296
7414
|
}), void 0)]
|
|
@@ -7300,10 +7418,10 @@
|
|
|
7300
7418
|
|
|
7301
7419
|
var colors$4 = tokens$6.colors,
|
|
7302
7420
|
comfortable$5 = tokens$6.spacings.comfortable,
|
|
7303
|
-
typography$
|
|
7421
|
+
typography$f = tokens$6.typography;
|
|
7304
7422
|
var label = {
|
|
7305
7423
|
background: colors$4.ui.background__light.rgba,
|
|
7306
|
-
typography: Object.assign(Object.assign({}, typography$
|
|
7424
|
+
typography: Object.assign(Object.assign({}, typography$f.input.label), {
|
|
7307
7425
|
color: colors$4.text.static_icons__tertiary.rgba
|
|
7308
7426
|
}),
|
|
7309
7427
|
spacings: {
|
|
@@ -7357,10 +7475,10 @@
|
|
|
7357
7475
|
|
|
7358
7476
|
var colors$3 = tokens$6.colors,
|
|
7359
7477
|
comfortable$4 = tokens$6.spacings.comfortable,
|
|
7360
|
-
typography$
|
|
7478
|
+
typography$e = tokens$6.typography;
|
|
7361
7479
|
var helperText = {
|
|
7362
7480
|
background: colors$3.ui.background__light.hex,
|
|
7363
|
-
typography: typography$
|
|
7481
|
+
typography: typography$e.input.helper,
|
|
7364
7482
|
spacings: {
|
|
7365
7483
|
comfortable: {
|
|
7366
7484
|
left: comfortable$4.small,
|
|
@@ -7435,10 +7553,6 @@
|
|
|
7435
7553
|
var spacings = _ref3.spacings;
|
|
7436
7554
|
return spacings.left;
|
|
7437
7555
|
}, Variation);
|
|
7438
|
-
var StyledIcon$2 = styled__default['default'](InputIcon).withConfig({
|
|
7439
|
-
displayName: "HelperText__StyledIcon",
|
|
7440
|
-
componentId: "sc-1kfkyxg-2"
|
|
7441
|
-
})([""]);
|
|
7442
7556
|
var TextfieldHelperText = /*#__PURE__*/React.forwardRef(function TextfieldHelperText(_a, ref) {
|
|
7443
7557
|
var helperText$1 = _a.helperText,
|
|
7444
7558
|
icon = _a.icon,
|
|
@@ -7463,11 +7577,10 @@
|
|
|
7463
7577
|
}, rest, {
|
|
7464
7578
|
spacings: spacings
|
|
7465
7579
|
}, {
|
|
7466
|
-
children: [icon && jsxRuntime.exports.jsx(
|
|
7580
|
+
children: [icon && jsxRuntime.exports.jsx(InputIcon, Object.assign({
|
|
7467
7581
|
isDisabled: isDisabled,
|
|
7468
|
-
spacings: spacings,
|
|
7469
7582
|
colors: colors,
|
|
7470
|
-
|
|
7583
|
+
size: 16
|
|
7471
7584
|
}, {
|
|
7472
7585
|
children: icon
|
|
7473
7586
|
}), void 0), jsxRuntime.exports.jsx(Text$1, Object.assign({
|
|
@@ -7539,7 +7652,7 @@
|
|
|
7539
7652
|
|
|
7540
7653
|
var token = useToken({
|
|
7541
7654
|
density: density
|
|
7542
|
-
}, textfield$1)
|
|
7655
|
+
}, textfield$1);
|
|
7543
7656
|
return jsxRuntime.exports.jsx(styled.ThemeProvider, Object.assign({
|
|
7544
7657
|
theme: token
|
|
7545
7658
|
}, {
|
|
@@ -7677,14 +7790,14 @@
|
|
|
7677
7790
|
typography: paragraph$1.body_short
|
|
7678
7791
|
};
|
|
7679
7792
|
|
|
7680
|
-
var typography$
|
|
7793
|
+
var typography$d = list.typography;
|
|
7681
7794
|
var StyledList$1 = styled__default['default'].ul.withConfig({
|
|
7682
7795
|
displayName: "List__StyledList",
|
|
7683
7796
|
componentId: "sc-v9d2hy-0"
|
|
7684
7797
|
})(["", " ", ""], function (_ref) {
|
|
7685
7798
|
var as = _ref.as;
|
|
7686
7799
|
return as === 'ol' ? styled.css(["& ol{list-style-type:lower-alpha;}"]) : '';
|
|
7687
|
-
}, typographyTemplate(typography$
|
|
7800
|
+
}, typographyTemplate(typography$d));
|
|
7688
7801
|
var List$2 = /*#__PURE__*/React.forwardRef(function List(_a, ref) {
|
|
7689
7802
|
var children = _a.children,
|
|
7690
7803
|
_a$variant = _a.variant,
|
|
@@ -8133,28 +8246,28 @@
|
|
|
8133
8246
|
prefix: 'eds',
|
|
8134
8247
|
height: '24',
|
|
8135
8248
|
width: '24',
|
|
8136
|
-
svgPathData: 'M19 6.
|
|
8249
|
+
svgPathData: 'M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z'
|
|
8137
8250
|
};
|
|
8138
8251
|
var search$1 = {
|
|
8139
8252
|
name: 'search',
|
|
8140
8253
|
prefix: 'eds',
|
|
8141
8254
|
height: '24',
|
|
8142
8255
|
width: '24',
|
|
8143
|
-
svgPathData: 'M14.966 14.255h.79l4.99 5-1.49 1.49-5-4.99v-.79l-.27-.28a6.471 6.471 0
|
|
8256
|
+
svgPathData: 'M14.966 14.255h.79l4.99 5-1.49 1.49-5-4.99v-.79l-.27-.28a6.471 6.471 0 0 1-4.23 1.57 6.5 6.5 0 1 1 6.5-6.5c0 1.61-.59 3.09-1.57 4.23l.28.27zm-9.71-4.5c0 2.49 2.01 4.5 4.5 4.5s4.5-2.01 4.5-4.5-2.01-4.5-4.5-4.5-4.5 2.01-4.5 4.5z'
|
|
8144
8257
|
};
|
|
8145
8258
|
var close = {
|
|
8146
8259
|
name: 'close',
|
|
8147
8260
|
prefix: 'eds',
|
|
8148
8261
|
height: '24',
|
|
8149
8262
|
width: '24',
|
|
8150
|
-
svgPathData: 'M19 6.
|
|
8263
|
+
svgPathData: 'M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z'
|
|
8151
8264
|
};
|
|
8152
8265
|
var checkbox$1 = {
|
|
8153
8266
|
name: 'checkbox',
|
|
8154
8267
|
prefix: 'eds',
|
|
8155
8268
|
height: '24',
|
|
8156
8269
|
width: '24',
|
|
8157
|
-
svgPathData: 'M5 3h14c1.1 0 2 .9 2 2v14c0 1.1-.9 2-2 2H5c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2zm4.3 13.29c.39.39 1.02.39 1.41 0l7.58-7.59a.996.996 0
|
|
8270
|
+
svgPathData: 'M5 3h14c1.1 0 2 .9 2 2v14c0 1.1-.9 2-2 2H5c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2zm4.3 13.29c.39.39 1.02.39 1.41 0l7.58-7.59a.996.996 0 1 0-1.41-1.41L10 14.17l-2.88-2.88a.996.996 0 1 0-1.41 1.41l3.59 3.59z'
|
|
8158
8271
|
};
|
|
8159
8272
|
var checkbox_outline = {
|
|
8160
8273
|
name: 'checkbox_outline',
|
|
@@ -8175,7 +8288,7 @@
|
|
|
8175
8288
|
prefix: 'eds',
|
|
8176
8289
|
height: '24',
|
|
8177
8290
|
width: '24',
|
|
8178
|
-
svgPathData: 'M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm-5-8a5 5 0
|
|
8291
|
+
svgPathData: 'M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm-5-8a5 5 0 1 1 10 0 5 5 0 0 1-10 0z'
|
|
8179
8292
|
};
|
|
8180
8293
|
var radio_button_unselected = {
|
|
8181
8294
|
name: 'radio_button_unselected',
|
|
@@ -8189,45 +8302,45 @@
|
|
|
8189
8302
|
prefix: 'eds',
|
|
8190
8303
|
height: '24',
|
|
8191
8304
|
width: '24',
|
|
8192
|
-
svgPathData: '
|
|
8305
|
+
svgPathData: 'm7 14.5 5-5 5 5H7z'
|
|
8193
8306
|
};
|
|
8194
8307
|
var arrow_drop_down = {
|
|
8195
8308
|
name: 'arrow_drop_down',
|
|
8196
8309
|
prefix: 'eds',
|
|
8197
8310
|
height: '24',
|
|
8198
8311
|
width: '24',
|
|
8199
|
-
svgPathData: '
|
|
8312
|
+
svgPathData: 'm7 9.5 5 5 5-5H7z'
|
|
8200
8313
|
};
|
|
8201
8314
|
var chevron_down = {
|
|
8202
8315
|
name: 'chevron_down',
|
|
8203
8316
|
prefix: 'eds',
|
|
8204
8317
|
height: '24',
|
|
8205
8318
|
width: '24',
|
|
8206
|
-
svgPathData: '
|
|
8319
|
+
svgPathData: 'm7.41 8.295 4.59 4.58 4.59-4.58L18 9.705l-6 6-6-6 1.41-1.41z'
|
|
8207
8320
|
};
|
|
8208
8321
|
var chevron_left = {
|
|
8209
8322
|
name: 'chevron_left',
|
|
8210
8323
|
prefix: 'eds',
|
|
8211
8324
|
height: '24',
|
|
8212
8325
|
width: '24',
|
|
8213
|
-
svgPathData: 'M15.705 16.
|
|
8326
|
+
svgPathData: 'M15.705 16.59 11.125 12l4.58-4.59L14.295 6l-6 6 6 6 1.41-1.41z'
|
|
8214
8327
|
};
|
|
8215
8328
|
var chevron_right = {
|
|
8216
8329
|
name: 'chevron_right',
|
|
8217
8330
|
prefix: 'eds',
|
|
8218
8331
|
height: '24',
|
|
8219
8332
|
width: '24',
|
|
8220
|
-
svgPathData: '
|
|
8333
|
+
svgPathData: 'm8.295 16.59 4.58-4.59-4.58-4.59L9.705 6l6 6-6 6-1.41-1.41z'
|
|
8221
8334
|
};
|
|
8222
8335
|
var chevron_up = {
|
|
8223
8336
|
name: 'chevron_up',
|
|
8224
8337
|
prefix: 'eds',
|
|
8225
8338
|
height: '24',
|
|
8226
8339
|
width: '24',
|
|
8227
|
-
svgPathData: '
|
|
8340
|
+
svgPathData: 'm7.41 15.705 4.59-4.58 4.59 4.58 1.41-1.41-6-6-6 6 1.41 1.41z'
|
|
8228
8341
|
};
|
|
8229
8342
|
|
|
8230
|
-
var typography$
|
|
8343
|
+
var typography$c = tokens$6.typography.ui.accordion_header,
|
|
8231
8344
|
_tokens$colors$d = tokens$6.colors,
|
|
8232
8345
|
_tokens$colors$ui$4 = _tokens$colors$d.ui,
|
|
8233
8346
|
backgroundDefault = _tokens$colors$ui$4.background__default.rgba,
|
|
@@ -8238,6 +8351,7 @@
|
|
|
8238
8351
|
disabledIconColor$1 = _tokens$colors$intera$b.disabled__fill.rgba,
|
|
8239
8352
|
disabledColor$2 = _tokens$colors$intera$b.disabled__text.rgba,
|
|
8240
8353
|
focusOutlineColor$6 = _tokens$colors$intera$b.focus.rgba,
|
|
8354
|
+
defaultIconColor = _tokens$colors$d.text.static_icons__default.rgba,
|
|
8241
8355
|
mediumSpacing = tokens$6.spacings.comfortable.medium;
|
|
8242
8356
|
var accordion = {
|
|
8243
8357
|
border: {
|
|
@@ -8258,7 +8372,7 @@
|
|
|
8258
8372
|
header: {
|
|
8259
8373
|
height: '48px',
|
|
8260
8374
|
background: backgroundDefault,
|
|
8261
|
-
typography: typography$
|
|
8375
|
+
typography: typography$c,
|
|
8262
8376
|
spacings: {
|
|
8263
8377
|
left: mediumSpacing,
|
|
8264
8378
|
right: mediumSpacing
|
|
@@ -8274,12 +8388,12 @@
|
|
|
8274
8388
|
}
|
|
8275
8389
|
},
|
|
8276
8390
|
disabled: {
|
|
8277
|
-
typography: Object.assign(Object.assign({}, typography$
|
|
8391
|
+
typography: Object.assign(Object.assign({}, typography$c), {
|
|
8278
8392
|
color: disabledColor$2
|
|
8279
8393
|
})
|
|
8280
8394
|
},
|
|
8281
8395
|
active: {
|
|
8282
|
-
typography: Object.assign(Object.assign({}, typography$
|
|
8396
|
+
typography: Object.assign(Object.assign({}, typography$c), {
|
|
8283
8397
|
color: activatedColor
|
|
8284
8398
|
})
|
|
8285
8399
|
},
|
|
@@ -8295,6 +8409,11 @@
|
|
|
8295
8409
|
right: mediumSpacing,
|
|
8296
8410
|
top: mediumSpacing
|
|
8297
8411
|
}
|
|
8412
|
+
},
|
|
8413
|
+
icon: {
|
|
8414
|
+
typography: {
|
|
8415
|
+
color: defaultIconColor
|
|
8416
|
+
}
|
|
8298
8417
|
}
|
|
8299
8418
|
}
|
|
8300
8419
|
};
|
|
@@ -8323,13 +8442,10 @@
|
|
|
8323
8442
|
}), void 0);
|
|
8324
8443
|
}); // AccordionHeaderTitle.displayName = 'AccordionHeaderTitle'
|
|
8325
8444
|
|
|
8326
|
-
Icon$1.add({
|
|
8327
|
-
chevron_down: chevron_down,
|
|
8328
|
-
chevron_up: chevron_up
|
|
8329
|
-
});
|
|
8330
8445
|
var _tokens$entities$6 = accordion.entities,
|
|
8331
8446
|
header$2 = _tokens$entities$6.header,
|
|
8332
|
-
chevronToken = _tokens$entities$6.chevron
|
|
8447
|
+
chevronToken = _tokens$entities$6.chevron,
|
|
8448
|
+
iconToken = _tokens$entities$6.icon;
|
|
8333
8449
|
var StyledAccordionHeader = styled__default['default'].div.attrs(function (_ref) {
|
|
8334
8450
|
var panelId = _ref.panelId,
|
|
8335
8451
|
isExpanded = _ref.isExpanded,
|
|
@@ -8345,7 +8461,7 @@
|
|
|
8345
8461
|
}).withConfig({
|
|
8346
8462
|
displayName: "AccordionHeader__StyledAccordionHeader",
|
|
8347
8463
|
componentId: "sc-cu2e95-0"
|
|
8348
|
-
})(["", " ", " ", " &[data-focus-visible-added]:focus{", "}border-top:", ";background:", ";height:", ";margin:0;display:flex;align-items:center;box-sizing:border-box;", ""], typographyTemplate(header$2.typography), bordersTemplate(accordion.border), spacingsTemplate(header$2.spacings), outlineTemplate(header$2.states.focus.outline), function (_ref2) {
|
|
8464
|
+
})(["", " ", " ", " &[data-focus-visible-added]:focus{", "}border-top:", ";background:", ";height:", ";margin:0;display:flex;align-items:center;box-sizing:border-box;", " > svg{color:", ";}"], typographyTemplate(header$2.typography), bordersTemplate(accordion.border), spacingsTemplate(header$2.spacings), outlineTemplate(header$2.states.focus.outline), function (_ref2) {
|
|
8349
8465
|
var parentIndex = _ref2.parentIndex;
|
|
8350
8466
|
return parentIndex === 0 ? null : 'none';
|
|
8351
8467
|
}, header$2.background, header$2.height, function (_ref3) {
|
|
@@ -8356,11 +8472,13 @@
|
|
|
8356
8472
|
}) : styled.css({
|
|
8357
8473
|
color: header$2.typography.color,
|
|
8358
8474
|
cursor: 'pointer',
|
|
8359
|
-
':hover': {
|
|
8360
|
-
|
|
8475
|
+
'@media (hover: hover) and (pointer: fine)': {
|
|
8476
|
+
':hover': {
|
|
8477
|
+
background: header$2.states.hover.background
|
|
8478
|
+
}
|
|
8361
8479
|
}
|
|
8362
8480
|
});
|
|
8363
|
-
});
|
|
8481
|
+
}, iconToken.typography.color);
|
|
8364
8482
|
var StyledIcon$1 = styled__default['default'](Icon$1).withConfig({
|
|
8365
8483
|
displayName: "AccordionHeader__StyledIcon",
|
|
8366
8484
|
componentId: "sc-cu2e95-1"
|
|
@@ -8410,8 +8528,8 @@
|
|
|
8410
8528
|
};
|
|
8411
8529
|
|
|
8412
8530
|
var chevron = jsxRuntime.exports.jsx(StyledIcon$1, {
|
|
8413
|
-
|
|
8414
|
-
size:
|
|
8531
|
+
data: isExpanded ? chevron_up : chevron_down,
|
|
8532
|
+
size: 24,
|
|
8415
8533
|
chevronPosition: chevronPosition,
|
|
8416
8534
|
color: disabled ? chevronToken.states.disabled.background : chevronToken.background
|
|
8417
8535
|
}, "".concat(id, "-icon"));
|
|
@@ -8769,7 +8887,7 @@
|
|
|
8769
8887
|
}).withConfig({
|
|
8770
8888
|
displayName: "Tab__StyledTab",
|
|
8771
8889
|
componentId: "sc-scjkct-0"
|
|
8772
|
-
})(["appearance:none;box-sizing:border-box;font-family:inherit;border:none;outline:none;font-size:1rem;height:", ";", " color:", ";background-color:", ";position:relative;white-space:nowrap;text-overflow:ellipsis;overflow-x:hidden;&:focus{outline:none;}&[data-focus],&[data-focus-visible-added]:focus{", "}&::-moz-focus-inner{border:0;}&[data-hover],&:hover{color:", ";", "}", " ", ""], tab.height, spacingsTemplate(tab.spacings), function (_ref2) {
|
|
8890
|
+
})(["appearance:none;box-sizing:border-box;font-family:inherit;border:none;outline:none;font-size:1rem;height:", ";", " color:", ";background-color:", ";position:relative;white-space:nowrap;text-overflow:ellipsis;overflow-x:hidden;&:focus{outline:none;}&[data-focus],&[data-focus-visible-added]:focus{", "}&::-moz-focus-inner{border:0;}@media (hover:hover) and (pointer:fine){&[data-hover],&:hover{color:", ";", "}}", " ", ""], tab.height, spacingsTemplate(tab.spacings), function (_ref2) {
|
|
8773
8891
|
var active = _ref2.active;
|
|
8774
8892
|
return active ? tab.states.active.typography.color : tab.typography.color;
|
|
8775
8893
|
}, tab.background, outlineTemplate(tab.states.focus.outline), function (_ref3) {
|
|
@@ -8894,21 +9012,19 @@
|
|
|
8894
9012
|
}, bordersTemplate(primary$3.border), spacingsTemplate(primary$3.spacings));
|
|
8895
9013
|
var Card$1 = /*#__PURE__*/React.forwardRef(function Card(_a, ref) {
|
|
8896
9014
|
var children = _a.children,
|
|
8897
|
-
className = _a.className,
|
|
8898
9015
|
_a$variant = _a.variant,
|
|
8899
9016
|
variant = _a$variant === void 0 ? 'default' : _a$variant,
|
|
8900
9017
|
onClick = _a.onClick,
|
|
8901
|
-
rest = __rest(_a, ["children", "
|
|
9018
|
+
rest = __rest(_a, ["children", "variant", "onClick"]);
|
|
8902
9019
|
|
|
8903
9020
|
var cursor = onClick ? 'pointer' : 'default';
|
|
8904
9021
|
var cardVariant = variant === 'default' ? 'primary' : variant;
|
|
8905
9022
|
var token = tokens$2[cardVariant];
|
|
8906
|
-
var props = Object.assign(
|
|
8907
|
-
className: className,
|
|
9023
|
+
var props = Object.assign({
|
|
8908
9024
|
ref: ref,
|
|
8909
9025
|
background: token.background,
|
|
8910
9026
|
cursor: cursor
|
|
8911
|
-
});
|
|
9027
|
+
}, rest);
|
|
8912
9028
|
return jsxRuntime.exports.jsx(StyledCard, Object.assign({}, props, {
|
|
8913
9029
|
onClick: onClick
|
|
8914
9030
|
}, {
|
|
@@ -8919,26 +9035,23 @@
|
|
|
8919
9035
|
var StyledCardActions = styled__default['default'].div.withConfig({
|
|
8920
9036
|
displayName: "CardActions__StyledCardActions",
|
|
8921
9037
|
componentId: "sc-1d5vskp-0"
|
|
8922
|
-
})(["display:grid;grid-gap:8px;grid-auto-flow:column;
|
|
9038
|
+
})(["display:grid;grid-gap:8px;grid-auto-flow:column;align-items:center;justify-content:", ";"], function (_ref) {
|
|
8923
9039
|
var justifyContent = _ref.justifyContent;
|
|
8924
9040
|
return justifyContent;
|
|
8925
9041
|
});
|
|
8926
9042
|
var CardActions = /*#__PURE__*/React.forwardRef(function CardActions(_a, ref) {
|
|
8927
9043
|
var children = _a.children,
|
|
8928
|
-
_a$className = _a.className,
|
|
8929
|
-
className = _a$className === void 0 ? '' : _a$className,
|
|
8930
9044
|
_a$alignRight = _a.alignRight,
|
|
8931
9045
|
alignRight = _a$alignRight === void 0 ? false : _a$alignRight,
|
|
8932
9046
|
_a$meta = _a.meta,
|
|
8933
9047
|
meta = _a$meta === void 0 ? '' : _a$meta,
|
|
8934
|
-
rest = __rest(_a, ["children", "
|
|
9048
|
+
rest = __rest(_a, ["children", "alignRight", "meta"]);
|
|
8935
9049
|
|
|
8936
9050
|
var justifyContent = alignRight ? 'flex-end' : 'flex-start';
|
|
8937
|
-
var props = Object.assign(
|
|
8938
|
-
className: className,
|
|
9051
|
+
var props = Object.assign({
|
|
8939
9052
|
ref: ref,
|
|
8940
9053
|
justifyContent: justifyContent
|
|
8941
|
-
});
|
|
9054
|
+
}, rest);
|
|
8942
9055
|
return jsxRuntime.exports.jsxs(StyledCardActions, Object.assign({}, props, {
|
|
8943
9056
|
children: [children, meta !== '' && jsxRuntime.exports.jsx(Typography, Object.assign({
|
|
8944
9057
|
variant: "caption"
|
|
@@ -8959,14 +9072,11 @@
|
|
|
8959
9072
|
});
|
|
8960
9073
|
var CardMedia = /*#__PURE__*/React.forwardRef(function CardMedia(_a, ref) {
|
|
8961
9074
|
var children = _a.children,
|
|
8962
|
-
_a$className = _a.className,
|
|
8963
|
-
className = _a$className === void 0 ? '' : _a$className,
|
|
8964
9075
|
_a$fullWidth = _a.fullWidth,
|
|
8965
9076
|
fullWidth = _a$fullWidth === void 0 ? false : _a$fullWidth,
|
|
8966
|
-
rest = __rest(_a, ["children", "
|
|
9077
|
+
rest = __rest(_a, ["children", "fullWidth"]);
|
|
8967
9078
|
|
|
8968
9079
|
var props = Object.assign(Object.assign({}, rest), {
|
|
8969
|
-
className: className,
|
|
8970
9080
|
ref: ref,
|
|
8971
9081
|
fullWidth: fullWidth
|
|
8972
9082
|
});
|
|
@@ -8982,12 +9092,9 @@
|
|
|
8982
9092
|
})(["display:flex;justify-content:space-between;align-items:center;>:not(:first-child){margin-left:", ";}"], spacings$5.left);
|
|
8983
9093
|
var CardHeader = /*#__PURE__*/React.forwardRef(function CardHeader(_a, ref) {
|
|
8984
9094
|
var children = _a.children,
|
|
8985
|
-
|
|
8986
|
-
className = _a$className === void 0 ? '' : _a$className,
|
|
8987
|
-
rest = __rest(_a, ["children", "className"]);
|
|
9095
|
+
rest = __rest(_a, ["children"]);
|
|
8988
9096
|
|
|
8989
9097
|
var props = Object.assign(Object.assign({}, rest), {
|
|
8990
|
-
className: className,
|
|
8991
9098
|
ref: ref
|
|
8992
9099
|
});
|
|
8993
9100
|
return jsxRuntime.exports.jsx(StyledCardHeader, Object.assign({}, props, {
|
|
@@ -9001,12 +9108,9 @@
|
|
|
9001
9108
|
})(["display:grid;flex-grow:2;grid-auto-columns:auto;"]);
|
|
9002
9109
|
var CardHeaderTitle = /*#__PURE__*/React.forwardRef(function CardHeaderTitle(_a, ref) {
|
|
9003
9110
|
var children = _a.children,
|
|
9004
|
-
|
|
9005
|
-
className = _a$className === void 0 ? '' : _a$className,
|
|
9006
|
-
rest = __rest(_a, ["children", "className"]);
|
|
9111
|
+
rest = __rest(_a, ["children"]);
|
|
9007
9112
|
|
|
9008
9113
|
var props = Object.assign(Object.assign({}, rest), {
|
|
9009
|
-
className: className,
|
|
9010
9114
|
ref: ref
|
|
9011
9115
|
});
|
|
9012
9116
|
return jsxRuntime.exports.jsx(StyledCardHeaderTitle, Object.assign({}, props, {
|
|
@@ -9051,11 +9155,11 @@
|
|
|
9051
9155
|
height$3 = token$1.height,
|
|
9052
9156
|
spacings$4 = token$1.spacings,
|
|
9053
9157
|
border$4 = token$1.border,
|
|
9054
|
-
typography$
|
|
9158
|
+
typography$b = token$1.typography;
|
|
9055
9159
|
var StyledTopBar = styled__default['default'].header.withConfig({
|
|
9056
9160
|
displayName: "TopBar__StyledTopBar",
|
|
9057
9161
|
componentId: "sc-1yj236q-0"
|
|
9058
|
-
})(["height:", ";top:0;position:sticky;background:", ";box-sizing:border-box;z-index:250;display:grid;grid-column-gap:", ";grid-template-columns:auto 1fr auto;grid-template-areas:'left center right';align-items:center;", " ", ";", ""], height$3, background$d, spacings$4.left, bordersTemplate(border$4), spacingsTemplate(spacings$4), typographyTemplate(typography$
|
|
9162
|
+
})(["height:", ";top:0;position:sticky;background:", ";box-sizing:border-box;z-index:250;display:grid;grid-column-gap:", ";grid-template-columns:auto 1fr auto;grid-template-areas:'left center right';align-items:center;", " ", ";", ""], height$3, background$d, spacings$4.left, bordersTemplate(border$4), spacingsTemplate(spacings$4), typographyTemplate(typography$b));
|
|
9059
9163
|
var TopBar$1 = /*#__PURE__*/React.forwardRef(function TopBar(_a, ref) {
|
|
9060
9164
|
var children = _a.children,
|
|
9061
9165
|
props = __rest(_a, ["children"]);
|
|
@@ -9252,16 +9356,13 @@
|
|
|
9252
9356
|
})(["width:100%;margin-bottom:", ";"], dialog.entities.divider.spacings.bottom);
|
|
9253
9357
|
var Title = /*#__PURE__*/React.forwardRef(function Title(_a, ref) {
|
|
9254
9358
|
var children = _a.children,
|
|
9255
|
-
|
|
9256
|
-
className = _a$className === void 0 ? '' : _a$className,
|
|
9257
|
-
props = __rest(_a, ["children", "className"]);
|
|
9359
|
+
rest = __rest(_a, ["children"]);
|
|
9258
9360
|
|
|
9259
|
-
return jsxRuntime.exports.jsxs(
|
|
9361
|
+
return jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment, {
|
|
9260
9362
|
children: [jsxRuntime.exports.jsx(StyledTitle, Object.assign({
|
|
9261
|
-
className: className,
|
|
9262
9363
|
id: "eds-dialog-title",
|
|
9263
9364
|
ref: ref
|
|
9264
|
-
},
|
|
9365
|
+
}, rest, {
|
|
9265
9366
|
children: children
|
|
9266
9367
|
}), void 0), children && jsxRuntime.exports.jsx(StyledDivider$2, {
|
|
9267
9368
|
color: "medium",
|
|
@@ -9283,19 +9384,18 @@
|
|
|
9283
9384
|
})(["width:100%;margin-bottom:", ";"], dialog.entities.divider.spacings.bottom);
|
|
9284
9385
|
var CustomContent = /*#__PURE__*/React.forwardRef(function CustomContent(_a, ref) {
|
|
9285
9386
|
var children = _a.children,
|
|
9286
|
-
_a$className = _a.className,
|
|
9287
|
-
className = _a$className === void 0 ? '' : _a$className,
|
|
9288
9387
|
_a$scrollable = _a.scrollable,
|
|
9289
9388
|
scrollable = _a$scrollable === void 0 ? false : _a$scrollable,
|
|
9290
|
-
rest = __rest(_a, ["children", "
|
|
9389
|
+
rest = __rest(_a, ["children", "scrollable"]);
|
|
9291
9390
|
|
|
9292
|
-
|
|
9391
|
+
var props = Object.assign({
|
|
9392
|
+
scrollable: scrollable,
|
|
9393
|
+
ref: ref
|
|
9394
|
+
}, rest);
|
|
9395
|
+
return jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment, {
|
|
9293
9396
|
children: [jsxRuntime.exports.jsx(StyledCustomContent, Object.assign({
|
|
9294
|
-
|
|
9295
|
-
|
|
9296
|
-
id: "eds-dialog-customcontent",
|
|
9297
|
-
ref: ref
|
|
9298
|
-
}, rest, {
|
|
9397
|
+
id: "eds-dialog-customcontent"
|
|
9398
|
+
}, props, {
|
|
9299
9399
|
children: children
|
|
9300
9400
|
}), void 0), children && scrollable && jsxRuntime.exports.jsx(StyledDivider$1, {
|
|
9301
9401
|
color: "medium",
|
|
@@ -9314,8 +9414,8 @@
|
|
|
9314
9414
|
|
|
9315
9415
|
var background$a = tokens$6.colors.ui.background__scrim.rgba;
|
|
9316
9416
|
var scrim = {
|
|
9317
|
-
width: '
|
|
9318
|
-
height: '
|
|
9417
|
+
width: '100%',
|
|
9418
|
+
height: '100%',
|
|
9319
9419
|
background: background$a
|
|
9320
9420
|
};
|
|
9321
9421
|
|
|
@@ -9341,6 +9441,8 @@
|
|
|
9341
9441
|
isDismissable: isDismissable,
|
|
9342
9442
|
ref: ref
|
|
9343
9443
|
});
|
|
9444
|
+
var overflowState = document.body.style.overflow;
|
|
9445
|
+
useHideBodyScroll(overflowState);
|
|
9344
9446
|
useGlobalKeyPress('Escape', function (e) {
|
|
9345
9447
|
if (isDismissable && onClose) {
|
|
9346
9448
|
onClose(e, false);
|
|
@@ -9379,27 +9481,31 @@
|
|
|
9379
9481
|
focusColor$1 = _tokens$colors$intera$9.focus.rgba,
|
|
9380
9482
|
labelColor = _tokens$colors$b.text.static_icons__tertiary.rgba,
|
|
9381
9483
|
borderRadius$5 = tokens$6.shape.corners.borderRadius,
|
|
9382
|
-
_tokens$spacings$comf$
|
|
9383
|
-
small$
|
|
9384
|
-
x_large = _tokens$spacings$comf$
|
|
9385
|
-
xxx_large = _tokens$spacings$comf$
|
|
9386
|
-
|
|
9387
|
-
fontSize = _tokens$typography$pa.fontSize,
|
|
9388
|
-
lineHeight = _tokens$typography$pa.lineHeight;
|
|
9484
|
+
_tokens$spacings$comf$a = tokens$6.spacings.comfortable,
|
|
9485
|
+
small$4 = _tokens$spacings$comf$a.small,
|
|
9486
|
+
x_large = _tokens$spacings$comf$a.x_large,
|
|
9487
|
+
xxx_large = _tokens$spacings$comf$a.xxx_large,
|
|
9488
|
+
typography$a = tokens$6.typography;
|
|
9389
9489
|
var tableOfContents = {
|
|
9490
|
+
typography: Object.assign(Object.assign({}, typography$a.navigation.button), {
|
|
9491
|
+
color: labelColor
|
|
9492
|
+
}),
|
|
9493
|
+
spacings: {
|
|
9494
|
+
top: xxx_large,
|
|
9495
|
+
bottom: x_large
|
|
9496
|
+
},
|
|
9390
9497
|
entities: {
|
|
9391
9498
|
icon: {
|
|
9392
9499
|
background: primaryColor$4,
|
|
9393
9500
|
spacings: {
|
|
9394
|
-
right: small$
|
|
9501
|
+
right: small$4
|
|
9395
9502
|
}
|
|
9396
9503
|
},
|
|
9397
9504
|
links: {
|
|
9398
9505
|
width: 'calc(189px - 36px)',
|
|
9399
|
-
typography: {
|
|
9400
|
-
|
|
9401
|
-
|
|
9402
|
-
},
|
|
9506
|
+
typography: Object.assign(Object.assign({}, typography$a.navigation.button), {
|
|
9507
|
+
color: primaryColor$4
|
|
9508
|
+
}),
|
|
9403
9509
|
spacings: {
|
|
9404
9510
|
top: '10px',
|
|
9405
9511
|
bottom: '10px',
|
|
@@ -9437,17 +9543,10 @@
|
|
|
9437
9543
|
background: primaryHover$3
|
|
9438
9544
|
}
|
|
9439
9545
|
},
|
|
9440
|
-
typography: {
|
|
9546
|
+
typography: Object.assign(Object.assign({}, typography$a.navigation.button), {
|
|
9441
9547
|
color: primaryHover$3
|
|
9442
|
-
}
|
|
9548
|
+
})
|
|
9443
9549
|
}
|
|
9444
|
-
},
|
|
9445
|
-
typography: {
|
|
9446
|
-
color: labelColor
|
|
9447
|
-
},
|
|
9448
|
-
spacings: {
|
|
9449
|
-
top: xxx_large,
|
|
9450
|
-
bottom: x_large
|
|
9451
9550
|
}
|
|
9452
9551
|
};
|
|
9453
9552
|
|
|
@@ -9472,11 +9571,9 @@
|
|
|
9472
9571
|
sticky = _a$sticky === void 0 ? false : _a$sticky,
|
|
9473
9572
|
_a$label = _a.label,
|
|
9474
9573
|
label = _a$label === void 0 ? '' : _a$label,
|
|
9475
|
-
|
|
9476
|
-
rest = __rest(_a, ["children", "sticky", "label", "className"]);
|
|
9574
|
+
rest = __rest(_a, ["children", "sticky", "label"]);
|
|
9477
9575
|
|
|
9478
9576
|
return jsxRuntime.exports.jsxs(StyledTableOfContents, Object.assign({
|
|
9479
|
-
className: className,
|
|
9480
9577
|
ref: ref,
|
|
9481
9578
|
label: label,
|
|
9482
9579
|
sticky: sticky
|
|
@@ -9489,12 +9586,12 @@
|
|
|
9489
9586
|
children: children
|
|
9490
9587
|
}, void 0)]
|
|
9491
9588
|
}), void 0);
|
|
9492
|
-
});
|
|
9589
|
+
});
|
|
9493
9590
|
|
|
9494
9591
|
var StyledLinkItem = styled__default['default'].li.withConfig({
|
|
9495
9592
|
displayName: "LinkItem__StyledLinkItem",
|
|
9496
9593
|
componentId: "sc-1tfuad4-0"
|
|
9497
|
-
})(["list-style:none;margin:0;padding:0;a{text-decoration:none;", " ", " height:", ";width:", ";display:block;position:relative;svg{fill:", ";margin-right:", ";vertical-align:text-bottom;}span{max-width:", ";overflow:hidden;white-space:nowrap;text-overflow:ellipsis;vertical-align:text-bottom;display:inline-block;}&:focus{", ";}&:hover{", " background:", ";", " svg{fill:", ";}}&:active{outline:none;}}"], typographyTemplate(tableOfContents.entities.links.typography), spacingsTemplate(tableOfContents.entities.links.spacings), tableOfContents.entities.links.typography.lineHeight, tableOfContents.entities.links.width, tableOfContents.entities.icon.background, tableOfContents.entities.icon.spacings.right, tableOfContents.entities.span.maxWidth, outlineTemplate(tableOfContents.states.focus.outline), typographyTemplate(tableOfContents.states.hover.typography), tableOfContents.states.hover.background, bordersTemplate(tableOfContents.states.hover.border), tableOfContents.states.hover.entities.icon.background);
|
|
9594
|
+
})(["list-style:none;margin:0;padding:0;a{text-decoration:none;", " ", " height:", ";width:", ";display:block;position:relative;svg{fill:", ";margin-right:", ";vertical-align:text-bottom;}span{max-width:", ";overflow:hidden;white-space:nowrap;text-overflow:ellipsis;vertical-align:text-bottom;display:inline-block;}&:focus{", ";}@media (hover:hover) and (pointer:fine){&:hover{", " background:", ";", " svg{fill:", ";}}}&:active{outline:none;}}"], typographyTemplate(tableOfContents.entities.links.typography), spacingsTemplate(tableOfContents.entities.links.spacings), tableOfContents.entities.links.typography.lineHeight, tableOfContents.entities.links.width, tableOfContents.entities.icon.background, tableOfContents.entities.icon.spacings.right, tableOfContents.entities.span.maxWidth, outlineTemplate(tableOfContents.states.focus.outline), typographyTemplate(tableOfContents.states.hover.typography), tableOfContents.states.hover.background, bordersTemplate(tableOfContents.states.hover.border), tableOfContents.states.hover.entities.icon.background);
|
|
9498
9595
|
var LinkItem = /*#__PURE__*/React.forwardRef(function LinkItem(_a, ref) {
|
|
9499
9596
|
var children = _a.children,
|
|
9500
9597
|
props = __rest(_a, ["children"]);
|
|
@@ -9513,9 +9610,9 @@
|
|
|
9513
9610
|
var _tokens$colors$ui$2 = tokens$6.colors.ui,
|
|
9514
9611
|
background$8 = _tokens$colors$ui$2.background__default.rgba,
|
|
9515
9612
|
borderColor = _tokens$colors$ui$2.background__light.rgba,
|
|
9516
|
-
_tokens$spacings$comf$
|
|
9517
|
-
spacingXXS = _tokens$spacings$comf$
|
|
9518
|
-
spacingMedium$4 = _tokens$spacings$comf$
|
|
9613
|
+
_tokens$spacings$comf$9 = tokens$6.spacings.comfortable,
|
|
9614
|
+
spacingXXS = _tokens$spacings$comf$9.xx_small,
|
|
9615
|
+
spacingMedium$4 = _tokens$spacings$comf$9.medium;
|
|
9519
9616
|
var comfortable$2 = {
|
|
9520
9617
|
background: background$8,
|
|
9521
9618
|
spacings: {
|
|
@@ -9559,15 +9656,12 @@
|
|
|
9559
9656
|
_a$title = _a.title,
|
|
9560
9657
|
title = _a$title === void 0 ? '' : _a$title,
|
|
9561
9658
|
children = _a.children,
|
|
9562
|
-
_a$className = _a.className,
|
|
9563
|
-
className = _a$className === void 0 ? '' : _a$className,
|
|
9564
9659
|
_a$open = _a.open,
|
|
9565
9660
|
open = _a$open === void 0 ? true : _a$open,
|
|
9566
9661
|
onClose = _a.onClose,
|
|
9567
|
-
rest = __rest(_a, ["variant", "title", "children", "
|
|
9662
|
+
rest = __rest(_a, ["variant", "title", "children", "open", "onClose"]);
|
|
9568
9663
|
|
|
9569
9664
|
var props = Object.assign(Object.assign({}, rest), {
|
|
9570
|
-
className: className,
|
|
9571
9665
|
ref: ref,
|
|
9572
9666
|
width: variants[variant]
|
|
9573
9667
|
}); // Controller must set open={false} when pressing the close button
|
|
@@ -9595,10 +9689,10 @@
|
|
|
9595
9689
|
}), void 0);
|
|
9596
9690
|
});
|
|
9597
9691
|
|
|
9598
|
-
var _tokens$spacings$comf$
|
|
9599
|
-
x_small$
|
|
9600
|
-
small$
|
|
9601
|
-
medium$2 = _tokens$spacings$comf$
|
|
9692
|
+
var _tokens$spacings$comf$8 = tokens$6.spacings.comfortable,
|
|
9693
|
+
x_small$3 = _tokens$spacings$comf$8.x_small,
|
|
9694
|
+
small$3 = _tokens$spacings$comf$8.small,
|
|
9695
|
+
medium$2 = _tokens$spacings$comf$8.medium,
|
|
9602
9696
|
chipTypography = tokens$6.typography.ui.chip__badge,
|
|
9603
9697
|
_tokens$colors$a = tokens$6.colors,
|
|
9604
9698
|
_tokens$colors$ui$1 = _tokens$colors$a.ui,
|
|
@@ -9626,8 +9720,8 @@
|
|
|
9626
9720
|
style: 'solid'
|
|
9627
9721
|
},
|
|
9628
9722
|
spacings: {
|
|
9629
|
-
left: x_small$
|
|
9630
|
-
right: small$
|
|
9723
|
+
left: x_small$3,
|
|
9724
|
+
right: small$3
|
|
9631
9725
|
},
|
|
9632
9726
|
typography: Object.assign(Object.assign({}, chipTypography), {
|
|
9633
9727
|
color: primaryColor$3
|
|
@@ -9743,9 +9837,9 @@
|
|
|
9743
9837
|
}).withConfig({
|
|
9744
9838
|
displayName: "Chip__StyledChips",
|
|
9745
9839
|
componentId: "sc-wzsllq-0"
|
|
9746
|
-
})(["background:", ";height:", ";width:fit-content;display:grid;grid-gap:8px;grid-auto-flow:column;grid-auto-columns:max-content;align-items:center;z-index:10;svg{fill:", ";}&:hover{color:", ";svg{fill:", ";}}&:focus{outline:none;}&[data-focus-visible-added]:focus{", "}", " ", " ", " ", " ", " ", " ", " ", ""], background$6, height$1, typography$9.color, states$3.hover.typography.color, states$3.hover.typography.color, outlineTemplate(states$3.focus.outline), bordersTemplate(border$2), spacingsTemplate(spacings$2), typographyTemplate(typography$9), function (_ref2) {
|
|
9840
|
+
})(["background:", ";height:", ";width:fit-content;display:grid;grid-gap:8px;grid-auto-flow:column;grid-auto-columns:max-content;align-items:center;z-index:10;svg{fill:", ";}@media (hover:hover) and (pointer:fine){&:hover{color:", ";svg{fill:", ";}}}&:focus{outline:none;}&[data-focus-visible-added]:focus{", "}", " ", " ", " ", " ", " ", " ", " ", ""], background$6, height$1, typography$9.color, states$3.hover.typography.color, states$3.hover.typography.color, outlineTemplate(states$3.focus.outline), bordersTemplate(border$2), spacingsTemplate(spacings$2), typographyTemplate(typography$9), function (_ref2) {
|
|
9747
9841
|
var clickable = _ref2.clickable;
|
|
9748
|
-
return clickable && styled.css(["&:hover{cursor:pointer;}"]);
|
|
9842
|
+
return clickable && styled.css(["@media (hover:hover) and (pointer:fine){&:hover{cursor:pointer;}}"]);
|
|
9749
9843
|
}, function (_ref3) {
|
|
9750
9844
|
var variant = _ref3.variant;
|
|
9751
9845
|
|
|
@@ -9754,14 +9848,14 @@
|
|
|
9754
9848
|
return styled.css(["background:", ";"], states$3.active.background);
|
|
9755
9849
|
|
|
9756
9850
|
case 'error':
|
|
9757
|
-
return styled.css(["background:", ";color:", ";svg{fill:", ";}", "
|
|
9851
|
+
return styled.css(["background:", ";color:", ";svg{fill:", ";}", ";@media (hover:hover) and (pointer:fine){&:hover{border-color:", ";color:", ";svg{fill:", ";}}}"], error.background, error.typography.color, error.entities.icon.typography.color, bordersTemplate(error.border), error.states.hover.typography.color, error.states.hover.typography.color, error.states.hover.typography.color);
|
|
9758
9852
|
|
|
9759
9853
|
default:
|
|
9760
9854
|
return '';
|
|
9761
9855
|
}
|
|
9762
9856
|
}, function (_ref4) {
|
|
9763
9857
|
var disabled = _ref4.disabled;
|
|
9764
|
-
return disabled && styled.css(["cursor:not-allowed;background:", ";color:", ";svg{fill:", ";}&:hover{color:", ";cursor:not-allowed;svg{fill:", ";}}"], background$6, states$3.disabled.typography.color, states$3.disabled.typography.color, states$3.disabled.typography.color, states$3.disabled.typography.color);
|
|
9858
|
+
return disabled && styled.css(["cursor:not-allowed;background:", ";color:", ";svg{fill:", ";}@media (hover:hover) and (pointer:fine){&:hover{color:", ";cursor:not-allowed;svg{fill:", ";}}}"], background$6, states$3.disabled.typography.color, states$3.disabled.typography.color, states$3.disabled.typography.color, states$3.disabled.typography.color);
|
|
9765
9859
|
}, function (_ref5) {
|
|
9766
9860
|
var deletable = _ref5.deletable;
|
|
9767
9861
|
return deletable && styled.css(["padding-right:4px;"]);
|
|
@@ -9901,7 +9995,7 @@
|
|
|
9901
9995
|
primaryHoverAlt$4 = _tokens$colors$intera$7.primary__hover_alt.rgba,
|
|
9902
9996
|
primaryColor$2 = _tokens$colors$intera$7.primary__resting.rgba,
|
|
9903
9997
|
placeholderColor = _tokens$colors$9.text.static_icons__tertiary.rgba,
|
|
9904
|
-
small$
|
|
9998
|
+
small$2 = tokens$6.spacings.comfortable.small,
|
|
9905
9999
|
typography$8 = tokens$6.typography.input.text;
|
|
9906
10000
|
var search = {
|
|
9907
10001
|
background: background$5,
|
|
@@ -9914,8 +10008,8 @@
|
|
|
9914
10008
|
height: '48px'
|
|
9915
10009
|
},
|
|
9916
10010
|
spacings: {
|
|
9917
|
-
left: small$
|
|
9918
|
-
right: small$
|
|
10011
|
+
left: small$2,
|
|
10012
|
+
right: small$2,
|
|
9919
10013
|
top: '6px',
|
|
9920
10014
|
bottom: '6px'
|
|
9921
10015
|
},
|
|
@@ -9964,11 +10058,6 @@
|
|
|
9964
10058
|
}
|
|
9965
10059
|
};
|
|
9966
10060
|
|
|
9967
|
-
var icons$1 = {
|
|
9968
|
-
search: search$1,
|
|
9969
|
-
close: close
|
|
9970
|
-
};
|
|
9971
|
-
Icon$1.add(icons$1);
|
|
9972
10061
|
var height = search.height,
|
|
9973
10062
|
spacings$1 = search.spacings,
|
|
9974
10063
|
background$4 = search.background,
|
|
@@ -9987,7 +10076,7 @@
|
|
|
9987
10076
|
return isFocused && styled.css(["", ""], bordersTemplate(states$2.focus.border));
|
|
9988
10077
|
}, placeholder.typography.color, function (_ref2) {
|
|
9989
10078
|
var disabled = _ref2.disabled;
|
|
9990
|
-
return disabled ? styled.css(["cursor:not-allowed;"]) : styled.css(["&:hover{", " cursor:text;}"], bordersTemplate(states$2.focus.border));
|
|
10079
|
+
return disabled ? styled.css(["cursor:not-allowed;"]) : styled.css(["@media (hover:hover) and (pointer:fine){&:hover{", " cursor:text;}}"], bordersTemplate(states$2.focus.border));
|
|
9991
10080
|
}, clickbound.offset, clickbound.height);
|
|
9992
10081
|
var Input$4 = styled__default['default'].input.withConfig({
|
|
9993
10082
|
displayName: "Search__Input",
|
|
@@ -10001,7 +10090,7 @@
|
|
|
10001
10090
|
componentId: "sc-v8l23u-2"
|
|
10002
10091
|
})(["", " display:flex;align-items:center;visibility:hidden;z-index:1;padding:4px;height:16px;width:16px;position:relative;&::after{z-index:-1;position:absolute;top:-", ";left:0;width:100%;height:", ";content:'';}&::before{position:absolute;top:0;left:0;width:auto;min-height:auto;content:'';}", ""], bordersTemplate(icon$1.border), icon$1.clickbound.offset.top, icon$1.clickbound.height, function (_ref4) {
|
|
10003
10092
|
var isActive = _ref4.isActive;
|
|
10004
|
-
return isActive && styled.css(["visibility:visible
|
|
10093
|
+
return isActive && styled.css(["visibility:visible;@media (hover:hover) and (pointer:fine){&:hover{cursor:pointer;background:", ";}}"], icon$1.states.hover.background);
|
|
10005
10094
|
});
|
|
10006
10095
|
var Search = /*#__PURE__*/React.forwardRef(function Search(_a, ref) {
|
|
10007
10096
|
var _onChange = _a.onChange,
|
|
@@ -10095,7 +10184,7 @@
|
|
|
10095
10184
|
};
|
|
10096
10185
|
|
|
10097
10186
|
var isFocused = state.isFocused;
|
|
10098
|
-
var size =
|
|
10187
|
+
var size = 24;
|
|
10099
10188
|
var containerProps = {
|
|
10100
10189
|
isFocused: isFocused,
|
|
10101
10190
|
className: className,
|
|
@@ -10146,14 +10235,14 @@
|
|
|
10146
10235
|
};
|
|
10147
10236
|
return jsxRuntime.exports.jsxs(Container$2, Object.assign({}, containerProps, {
|
|
10148
10237
|
children: [jsxRuntime.exports.jsx(Icon$1, {
|
|
10149
|
-
|
|
10238
|
+
data: search$1,
|
|
10150
10239
|
"aria-hidden": true,
|
|
10151
10240
|
size: size
|
|
10152
10241
|
}, void 0), jsxRuntime.exports.jsx(Input$4, Object.assign({}, inputProps), void 0), jsxRuntime.exports.jsx(InsideButton, Object.assign({}, clearButtonProps, {
|
|
10153
10242
|
"aria-label": "Clear search"
|
|
10154
10243
|
}, {
|
|
10155
10244
|
children: jsxRuntime.exports.jsx(Icon$1, {
|
|
10156
|
-
|
|
10245
|
+
data: close,
|
|
10157
10246
|
size: size
|
|
10158
10247
|
}, void 0)
|
|
10159
10248
|
}), void 0)]
|
|
@@ -10307,8 +10396,8 @@
|
|
|
10307
10396
|
_disabled = slider.states.disabled;
|
|
10308
10397
|
var track$1 = styled.css(["width:100%;height:100%;cursor:pointer;background:none;"]);
|
|
10309
10398
|
var thumb = styled.css(["", " height:", ";width:", ";background:", ";cursor:pointer;position:relative;z-index:1;"], bordersTemplate(handle$1.border), handle$1.height, handle$1.width, handle$1.background);
|
|
10310
|
-
var thumbHover = styled.css(["box-shadow:0px 0px 0px 6px ", ";border-color:", ";"], handle$1.states.hover.background, handle$1.states.hover.border.color);
|
|
10311
|
-
var thumbHoverAndDisabled = styled.css(["cursor:not-allowed;box-shadow:none;"]);
|
|
10399
|
+
var thumbHover = styled.css(["@media (hover:hover) and (pointer:fine){box-shadow:0px 0px 0px 6px ", ";border-color:", ";}"], handle$1.states.hover.background, handle$1.states.hover.border.color);
|
|
10400
|
+
var thumbHoverAndDisabled = styled.css(["@media (hover:hover) and (pointer:fine){cursor:not-allowed;box-shadow:none;}"]);
|
|
10312
10401
|
var thumbDisabled = styled.css(["background-color:", ";border-color:", ";"], _disabled.background, _disabled.border.color);
|
|
10313
10402
|
var StyledSliderInput = styled__default['default'].input.attrs(function () {
|
|
10314
10403
|
return {
|
|
@@ -10364,7 +10453,7 @@
|
|
|
10364
10453
|
var RangeWrapper = styled__default['default'].div.withConfig({
|
|
10365
10454
|
displayName: "Slider__RangeWrapper",
|
|
10366
10455
|
componentId: "sc-n1grrg-0"
|
|
10367
|
-
})(["--a:", ";--b:", ";--min:", ";--max:", ";--dif:calc(var(--max) - var(--min));--realWidth:calc(100% - 12px);", " ", " &::before,&::after{", " background:", ";}&::before{margin-left:calc( calc(", " / 2) + (var(--a) - var(--min)) / var(--dif) * var(--realWidth) );width:calc((var(--b) - var(--a)) / var(--dif) * var(--realWidth));}&::after{margin-left:calc( calc(", " / 2) + (var(--b) - var(--min)) / var(--dif) * var(--realWidth) );width:calc((var(--a) - var(--b)) / var(--dif) * var(--realWidth));}&:hover:not([disabled]){", " &::before,&::after{background:", ";}}"], function (_ref) {
|
|
10456
|
+
})(["--a:", ";--b:", ";--min:", ";--max:", ";--dif:calc(var(--max) - var(--min));--realWidth:calc(100% - 12px);", " ", " &::before,&::after{", " background:", ";}&::before{margin-left:calc( calc(", " / 2) + (var(--a) - var(--min)) / var(--dif) * var(--realWidth) );width:calc((var(--b) - var(--a)) / var(--dif) * var(--realWidth));}&::after{margin-left:calc( calc(", " / 2) + (var(--b) - var(--min)) / var(--dif) * var(--realWidth) );width:calc((var(--a) - var(--b)) / var(--dif) * var(--realWidth));}@media (hover:hover) and (pointer:fine){&:hover:not([disabled]){", " &::before,&::after{background:", ";}}}"], function (_ref) {
|
|
10368
10457
|
var valA = _ref.valA;
|
|
10369
10458
|
return valA;
|
|
10370
10459
|
}, function (_ref2) {
|
|
@@ -10383,7 +10472,7 @@
|
|
|
10383
10472
|
var Wrapper$2 = styled__default['default'].div.withConfig({
|
|
10384
10473
|
displayName: "Slider__Wrapper",
|
|
10385
10474
|
componentId: "sc-n1grrg-1"
|
|
10386
|
-
})(["--min:", ";--max:", ";--dif:calc(var(--max) - var(--min));--value:", ";--realWidth:calc(100% - 12px);", " ", " &::after{", " background:", "}&::after{margin-right:calc( (var(--max) - var(--value)) / var(--dif) * var(--realWidth) );margin-left:3px;}&:hover:not([disabled]){", " &::after{background:", ";}}"], function (_ref6) {
|
|
10475
|
+
})(["--min:", ";--max:", ";--dif:calc(var(--max) - var(--min));--value:", ";--realWidth:calc(100% - 12px);", " ", " &::after{", " background:", "}&::after{margin-right:calc( (var(--max) - var(--value)) / var(--dif) * var(--realWidth) );margin-left:3px;}@media (hover:hover) and (pointer:fine){&:hover:not([disabled]){", " &::after{background:", ";}}}"], function (_ref6) {
|
|
10387
10476
|
var min = _ref6.min;
|
|
10388
10477
|
return min;
|
|
10389
10478
|
}, function (_ref7) {
|
|
@@ -10624,9 +10713,9 @@
|
|
|
10624
10713
|
white = _tokens$colors$7.text.static_icons__primary_white.rgba,
|
|
10625
10714
|
background$3 = _tokens$colors$7.ui.background__overlay.rgba,
|
|
10626
10715
|
ui = tokens$6.typography.ui,
|
|
10627
|
-
_tokens$spacings$comf$
|
|
10628
|
-
spacingXlarge$1 = _tokens$spacings$comf$
|
|
10629
|
-
spacingSmall$3 = _tokens$spacings$comf$
|
|
10716
|
+
_tokens$spacings$comf$7 = tokens$6.spacings.comfortable,
|
|
10717
|
+
spacingXlarge$1 = _tokens$spacings$comf$7.x_large,
|
|
10718
|
+
spacingSmall$3 = _tokens$spacings$comf$7.small,
|
|
10630
10719
|
borderRadius$3 = tokens$6.shape.corners.borderRadius;
|
|
10631
10720
|
var tooltip = {
|
|
10632
10721
|
typography: Object.assign(Object.assign({}, ui.tooltip), {
|
|
@@ -10699,9 +10788,10 @@
|
|
|
10699
10788
|
open = _useState6[0],
|
|
10700
10789
|
setOpen = _useState6[1];
|
|
10701
10790
|
|
|
10702
|
-
var anchorRef = React.useRef();
|
|
10703
10791
|
var openTimer = React.useRef();
|
|
10704
10792
|
var tooltipRef = useCombinedRefs(setPopperEl, ref);
|
|
10793
|
+
var anchorRef = React.useRef();
|
|
10794
|
+
var combinedChilddRef = useCombinedRefs(anchorRef, children === null || children === void 0 ? void 0 : children.ref);
|
|
10705
10795
|
var tooltipId = useId(id, 'tooltip');
|
|
10706
10796
|
var containerId = 'eds-tooltip-container';
|
|
10707
10797
|
var shouldOpen = isMounted && title !== '';
|
|
@@ -10718,7 +10808,7 @@
|
|
|
10718
10808
|
return function () {
|
|
10719
10809
|
clearTimeout(openTimer.current);
|
|
10720
10810
|
};
|
|
10721
|
-
}, []);
|
|
10811
|
+
}, [clearTimeout]);
|
|
10722
10812
|
|
|
10723
10813
|
var openTooltip = function openTooltip() {
|
|
10724
10814
|
if (shouldOpen) {
|
|
@@ -10745,15 +10835,16 @@
|
|
|
10745
10835
|
var props = Object.assign(Object.assign({
|
|
10746
10836
|
open: open
|
|
10747
10837
|
}, rest), attributes.popper);
|
|
10838
|
+
var childProps = children.props;
|
|
10748
10839
|
var updatedChildren = /*#__PURE__*/React.cloneElement(children, {
|
|
10749
|
-
ref:
|
|
10840
|
+
ref: combinedChilddRef,
|
|
10750
10841
|
'aria-describedby': open ? tooltipId : null,
|
|
10751
|
-
onMouseOver: openTooltip,
|
|
10752
|
-
onMouseLeave: closeTooltip,
|
|
10753
|
-
onPointerEnter: openTooltip,
|
|
10754
|
-
onPointerLeave: closeTooltip,
|
|
10755
|
-
onBlur: closeTooltip,
|
|
10756
|
-
onFocus: openTooltip
|
|
10842
|
+
onMouseOver: joinHandlers(openTooltip, childProps.onMouseOver),
|
|
10843
|
+
onMouseLeave: joinHandlers(closeTooltip, childProps.onMouseLeave),
|
|
10844
|
+
onPointerEnter: joinHandlers(openTooltip, childProps.onPointerEnter),
|
|
10845
|
+
onPointerLeave: joinHandlers(closeTooltip, childProps.onPointerLeave),
|
|
10846
|
+
onBlur: joinHandlers(closeTooltip, childProps.onBlur),
|
|
10847
|
+
onFocus: joinHandlers(openTooltip, childProps.onFocus)
|
|
10757
10848
|
});
|
|
10758
10849
|
return jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment, {
|
|
10759
10850
|
children: [shouldOpen && open && /*#__PURE__*/ReactDom__namespace.createPortal(jsxRuntime.exports.jsxs(StyledTooltip, Object.assign({
|
|
@@ -10784,9 +10875,9 @@
|
|
|
10784
10875
|
background$2 = _tokens$colors$6.ui.background__overlay.rgba,
|
|
10785
10876
|
color = _tokens$colors$6.text.static_icons__primary_white.rgba,
|
|
10786
10877
|
buttonColor = _tokens$colors$6.interactive.link_in_snackbars.rgba,
|
|
10787
|
-
_tokens$spacings$comf$
|
|
10788
|
-
spacingMedium$3 = _tokens$spacings$comf$
|
|
10789
|
-
spacingXLarge = _tokens$spacings$comf$
|
|
10878
|
+
_tokens$spacings$comf$6 = tokens$6.spacings.comfortable,
|
|
10879
|
+
spacingMedium$3 = _tokens$spacings$comf$6.medium,
|
|
10880
|
+
spacingXLarge = _tokens$spacings$comf$6.x_large,
|
|
10790
10881
|
clickbounds$1 = tokens$6.clickbounds.default__base,
|
|
10791
10882
|
radius = tokens$6.shape.button.borderRadius;
|
|
10792
10883
|
var snackbar = {
|
|
@@ -10826,12 +10917,17 @@
|
|
|
10826
10917
|
displayName: "SnackbarAction__StyledSnackbarAction",
|
|
10827
10918
|
componentId: "sc-1v5mjvd-0"
|
|
10828
10919
|
})(["display:inline-flex;margin-left:", ";margin-top:", ";margin-bottom:", ";"], snackbar.entities.actions.spacings.left, snackbar.entities.actions.spacings.top, snackbar.entities.actions.spacings.bottom);
|
|
10829
|
-
var SnackbarAction = function SnackbarAction(
|
|
10830
|
-
var children =
|
|
10831
|
-
|
|
10920
|
+
var SnackbarAction = /*#__PURE__*/React.forwardRef(function SnackbarAction(_a, ref) {
|
|
10921
|
+
var children = _a.children,
|
|
10922
|
+
rest = __rest(_a, ["children"]);
|
|
10923
|
+
|
|
10924
|
+
var props = Object.assign(Object.assign({}, rest), {
|
|
10925
|
+
ref: ref
|
|
10926
|
+
});
|
|
10927
|
+
return jsxRuntime.exports.jsx(StyledSnackbarAction, Object.assign({}, props, {
|
|
10832
10928
|
children: React.Children.only(children)
|
|
10833
|
-
}, void 0);
|
|
10834
|
-
};
|
|
10929
|
+
}), void 0);
|
|
10930
|
+
});
|
|
10835
10931
|
|
|
10836
10932
|
var StyledSnackbar = styled__default['default'](Paper).attrs(function () {
|
|
10837
10933
|
return {
|
|
@@ -10840,9 +10936,15 @@
|
|
|
10840
10936
|
}).withConfig({
|
|
10841
10937
|
displayName: "Snackbar__StyledSnackbar",
|
|
10842
10938
|
componentId: "sc-ac6no8-0"
|
|
10843
|
-
})(["position:fixed;
|
|
10844
|
-
var
|
|
10845
|
-
return
|
|
10939
|
+
})(["position:fixed;background-color:", ";", " ", " ", " min-height:", ";box-sizing:border-box;z-index:300;", " a,button{color:", ";}"], snackbar.background, spacingsTemplate(snackbar.spacings), bordersTemplate(snackbar.border), typographyTemplate(snackbar.typography), snackbar.minHeight, function (_ref) {
|
|
10940
|
+
var placement = _ref.placement;
|
|
10941
|
+
return styled.css({
|
|
10942
|
+
top: placement.includes('top') ? snackbar.spacings.top : placement === 'left' || placement === 'right' ? '50%' : undefined,
|
|
10943
|
+
bottom: placement.includes('bottom') ? snackbar.spacings.bottom : undefined,
|
|
10944
|
+
right: placement.includes('right') ? snackbar.spacings.right : undefined,
|
|
10945
|
+
left: placement.includes('left') ? snackbar.spacings.left : placement === 'top' || placement === 'bottom' ? '50%' : undefined,
|
|
10946
|
+
transform: placement === 'left' || placement === 'right' ? 'translateY(-50%)' : placement === 'top' || placement === 'bottom' ? 'translateX(-50%)' : undefined
|
|
10947
|
+
});
|
|
10846
10948
|
}, snackbar.entities.button.typography.color);
|
|
10847
10949
|
var Snackbar$1 = /*#__PURE__*/React.forwardRef(function Snackbar(_a, ref) {
|
|
10848
10950
|
var _a$open = _a.open,
|
|
@@ -10850,11 +10952,10 @@
|
|
|
10850
10952
|
_a$autoHideDuration = _a.autoHideDuration,
|
|
10851
10953
|
autoHideDuration = _a$autoHideDuration === void 0 ? 7000 : _a$autoHideDuration,
|
|
10852
10954
|
onClose = _a.onClose,
|
|
10853
|
-
_a$
|
|
10854
|
-
|
|
10955
|
+
_a$placement = _a.placement,
|
|
10956
|
+
placement = _a$placement === void 0 ? 'bottom' : _a$placement,
|
|
10855
10957
|
children = _a.children,
|
|
10856
|
-
|
|
10857
|
-
rest = __rest(_a, ["open", "autoHideDuration", "onClose", "leftAlignFrom", "children", "className"]);
|
|
10958
|
+
rest = __rest(_a, ["open", "autoHideDuration", "onClose", "placement", "children"]);
|
|
10858
10959
|
|
|
10859
10960
|
var _useState = React.useState(open),
|
|
10860
10961
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -10877,14 +10978,15 @@
|
|
|
10877
10978
|
return function () {
|
|
10878
10979
|
return clearTimeout(timer.current);
|
|
10879
10980
|
};
|
|
10880
|
-
}, [open]);
|
|
10981
|
+
}, [open, autoHideDuration, setVisible, onClose, clearTimeout, setTimeout]);
|
|
10982
|
+
var props = Object.assign({
|
|
10983
|
+
ref: ref,
|
|
10984
|
+
placement: placement
|
|
10985
|
+
}, rest);
|
|
10881
10986
|
return jsxRuntime.exports.jsx(jsxRuntime.exports.Fragment, {
|
|
10882
10987
|
children: visible && /*#__PURE__*/ReactDom__namespace.createPortal(jsxRuntime.exports.jsx(StyledSnackbar, Object.assign({
|
|
10883
|
-
elevation: "overlay"
|
|
10884
|
-
|
|
10885
|
-
className: className,
|
|
10886
|
-
ref: ref
|
|
10887
|
-
}, rest, {
|
|
10988
|
+
elevation: "overlay"
|
|
10989
|
+
}, props, {
|
|
10888
10990
|
children: children
|
|
10889
10991
|
}), void 0), document.body)
|
|
10890
10992
|
}, void 0);
|
|
@@ -10895,11 +10997,11 @@
|
|
|
10895
10997
|
|
|
10896
10998
|
var header = tokens$6.typography.ui.accordion_header,
|
|
10897
10999
|
background$1 = tokens$6.colors.ui.background__default.rgba,
|
|
10898
|
-
_tokens$spacings$comf$
|
|
10899
|
-
spacingXlarge = _tokens$spacings$comf$
|
|
10900
|
-
spacingMedium$2 = _tokens$spacings$comf$
|
|
10901
|
-
spacingSmall$2 = _tokens$spacings$comf$
|
|
10902
|
-
spacingXsmall = _tokens$spacings$comf$
|
|
11000
|
+
_tokens$spacings$comf$5 = tokens$6.spacings.comfortable,
|
|
11001
|
+
spacingXlarge = _tokens$spacings$comf$5.x_large,
|
|
11002
|
+
spacingMedium$2 = _tokens$spacings$comf$5.medium,
|
|
11003
|
+
spacingSmall$2 = _tokens$spacings$comf$5.small,
|
|
11004
|
+
spacingXsmall = _tokens$spacings$comf$5.x_small,
|
|
10903
11005
|
borderRadius$2 = tokens$6.shape.corners.borderRadius;
|
|
10904
11006
|
var popover = {
|
|
10905
11007
|
background: background$1,
|
|
@@ -10985,12 +11087,12 @@
|
|
|
10985
11087
|
|
|
10986
11088
|
var popoverRef = useCombinedRefs(ref, setPopperEl);
|
|
10987
11089
|
useOutsideClick(popperEl, function (e) {
|
|
10988
|
-
if (open && onClose !== null && !anchorEl.contains(e.target)) {
|
|
11090
|
+
if (open && onClose !== null && anchorEl && !anchorEl.contains(e.target)) {
|
|
10989
11091
|
onClose();
|
|
10990
11092
|
}
|
|
10991
11093
|
});
|
|
10992
11094
|
useGlobalKeyPress('Escape', function () {
|
|
10993
|
-
if (onClose !== null) {
|
|
11095
|
+
if (onClose !== null && open) {
|
|
10994
11096
|
onClose();
|
|
10995
11097
|
}
|
|
10996
11098
|
});
|
|
@@ -11045,11 +11147,9 @@
|
|
|
11045
11147
|
})(["margin-left:-", ";margin-right:-", ";margin-bottom:0;width:auto;max-width:", ";"], popover.spacings.left, popover.spacings.right, popover.maxWidth);
|
|
11046
11148
|
var PopoverTitle = /*#__PURE__*/React.forwardRef(function PopoverTitle(_a, ref) {
|
|
11047
11149
|
var children = _a.children,
|
|
11048
|
-
|
|
11049
|
-
rest = __rest(_a, ["children", "className"]);
|
|
11150
|
+
rest = __rest(_a, ["children"]);
|
|
11050
11151
|
|
|
11051
11152
|
var props = Object.assign(Object.assign({}, rest), {
|
|
11052
|
-
className: className,
|
|
11053
11153
|
ref: ref
|
|
11054
11154
|
});
|
|
11055
11155
|
return jsxRuntime.exports.jsxs("div", Object.assign({}, props, {
|
|
@@ -11148,11 +11248,11 @@
|
|
|
11148
11248
|
var variant = _ref.variant;
|
|
11149
11249
|
return variant === 'warning' ? warning.entities.icon.background : info.entities.icon.background;
|
|
11150
11250
|
}, enabled$2.entities.icon.width, enabled$2.entities.icon.height, enabled$2.spacings.right);
|
|
11151
|
-
var BannerIcon = function BannerIcon(_a) {
|
|
11251
|
+
var BannerIcon = /*#__PURE__*/React.forwardRef(function BannerIcon(_a, ref) {
|
|
11152
11252
|
var children = _a.children,
|
|
11153
11253
|
_a$variant = _a.variant,
|
|
11154
11254
|
variant = _a$variant === void 0 ? 'info' : _a$variant,
|
|
11155
|
-
|
|
11255
|
+
rest = __rest(_a, ["children", "variant"]);
|
|
11156
11256
|
|
|
11157
11257
|
var childrenWithColor = React.Children.map(children, function (child) {
|
|
11158
11258
|
var color = variant === 'warning' ? warning.entities.icon.typography.color : info.entities.icon.typography.color;
|
|
@@ -11160,12 +11260,15 @@
|
|
|
11160
11260
|
color: color
|
|
11161
11261
|
}) || child;
|
|
11162
11262
|
});
|
|
11263
|
+
var props = Object.assign({
|
|
11264
|
+
ref: ref
|
|
11265
|
+
}, rest);
|
|
11163
11266
|
return jsxRuntime.exports.jsx(StyledBannerIcon, Object.assign({
|
|
11164
11267
|
variant: variant
|
|
11165
11268
|
}, props, {
|
|
11166
11269
|
children: childrenWithColor
|
|
11167
11270
|
}), void 0);
|
|
11168
|
-
};
|
|
11271
|
+
});
|
|
11169
11272
|
|
|
11170
11273
|
var StyledBanner = styled__default['default'].div.withConfig({
|
|
11171
11274
|
displayName: "Banner__StyledBanner",
|
|
@@ -11183,10 +11286,10 @@
|
|
|
11183
11286
|
displayName: "Banner__NonMarginDivider",
|
|
11184
11287
|
componentId: "sc-1ju451i-2"
|
|
11185
11288
|
})(["margin:0;height:2px;"]);
|
|
11186
|
-
var Banner$1 = function Banner(_a) {
|
|
11289
|
+
var Banner$1 = /*#__PURE__*/React.forwardRef(function Banner(_a, ref) {
|
|
11187
11290
|
var children = _a.children,
|
|
11188
11291
|
className = _a.className,
|
|
11189
|
-
|
|
11292
|
+
rest = __rest(_a, ["children", "className"]);
|
|
11190
11293
|
|
|
11191
11294
|
var childrenWhereBannerIcon = React.Children.map(children, function (child) {
|
|
11192
11295
|
return /*#__PURE__*/React.isValidElement(child) && child.type === BannerIcon;
|
|
@@ -11194,7 +11297,10 @@
|
|
|
11194
11297
|
var hasIcon = childrenWhereBannerIcon.some(function (bool) {
|
|
11195
11298
|
return bool;
|
|
11196
11299
|
});
|
|
11197
|
-
|
|
11300
|
+
var props = Object.assign({
|
|
11301
|
+
ref: ref
|
|
11302
|
+
}, rest);
|
|
11303
|
+
return jsxRuntime.exports.jsxs(StyledBanner, Object.assign({}, props, {
|
|
11198
11304
|
className: className,
|
|
11199
11305
|
role: "alert"
|
|
11200
11306
|
}, {
|
|
@@ -11206,22 +11312,25 @@
|
|
|
11206
11312
|
color: "light"
|
|
11207
11313
|
}, void 0)]
|
|
11208
11314
|
}), void 0);
|
|
11209
|
-
};
|
|
11315
|
+
});
|
|
11210
11316
|
|
|
11211
11317
|
var StyledBannerMessage = styled__default['default'](Typography).withConfig({
|
|
11212
11318
|
displayName: "BannerMessage__StyledBannerMessage",
|
|
11213
11319
|
componentId: "sc-1lfqos1-0"
|
|
11214
11320
|
})([""]);
|
|
11215
|
-
var BannerMessage = function BannerMessage(_a) {
|
|
11321
|
+
var BannerMessage = /*#__PURE__*/React.forwardRef(function BannerMessage(_a, ref) {
|
|
11216
11322
|
var children = _a.children,
|
|
11217
|
-
|
|
11323
|
+
rest = __rest(_a, ["children"]);
|
|
11218
11324
|
|
|
11325
|
+
var props = Object.assign({
|
|
11326
|
+
ref: ref
|
|
11327
|
+
}, rest);
|
|
11219
11328
|
return jsxRuntime.exports.jsx(StyledBannerMessage, Object.assign({
|
|
11220
11329
|
variant: "body_long"
|
|
11221
11330
|
}, props, {
|
|
11222
11331
|
children: children
|
|
11223
11332
|
}), void 0);
|
|
11224
|
-
};
|
|
11333
|
+
});
|
|
11225
11334
|
|
|
11226
11335
|
var enabled = enabled$3;
|
|
11227
11336
|
var StyledBannerActions = styled__default['default'].div.withConfig({
|
|
@@ -11237,20 +11346,21 @@
|
|
|
11237
11346
|
marginLeft: '0'
|
|
11238
11347
|
};
|
|
11239
11348
|
});
|
|
11240
|
-
var BannerActions = function BannerActions(_a) {
|
|
11349
|
+
var BannerActions = /*#__PURE__*/React.forwardRef(function BannerActions(_a, ref) {
|
|
11241
11350
|
var children = _a.children,
|
|
11242
11351
|
_a$placement = _a.placement,
|
|
11243
11352
|
placement = _a$placement === void 0 ? 'left' : _a$placement,
|
|
11244
|
-
|
|
11245
|
-
props = __rest(_a, ["children", "placement", "className"]);
|
|
11353
|
+
rest = __rest(_a, ["children", "placement"]);
|
|
11246
11354
|
|
|
11247
|
-
|
|
11248
|
-
|
|
11249
|
-
|
|
11250
|
-
|
|
11355
|
+
var props = Object.assign({
|
|
11356
|
+
ref: ref
|
|
11357
|
+
}, rest);
|
|
11358
|
+
return jsxRuntime.exports.jsx(StyledBannerActions, Object.assign({
|
|
11359
|
+
placement: placement
|
|
11360
|
+
}, props, {
|
|
11251
11361
|
children: children
|
|
11252
11362
|
}), void 0);
|
|
11253
|
-
};
|
|
11363
|
+
});
|
|
11254
11364
|
|
|
11255
11365
|
var Banner = Banner$1;
|
|
11256
11366
|
Banner.Icon = BannerIcon;
|
|
@@ -11629,7 +11739,7 @@
|
|
|
11629
11739
|
var Collapsed = styled__default['default'](Typography).withConfig({
|
|
11630
11740
|
displayName: "Breadcrumbs__Collapsed",
|
|
11631
11741
|
componentId: "sc-12awlbz-3"
|
|
11632
|
-
})(["&:hover{text-decoration:underline;color:", ";}color:", ";text-decoration:none;"], states$1.hover.typography.color, typography$5.color);
|
|
11742
|
+
})(["@media (hover:hover) and (pointer:fine){&:hover{text-decoration:underline;color:", ";}}color:", ";text-decoration:none;"], states$1.hover.typography.color, typography$5.color);
|
|
11633
11743
|
var Breadcrumbs$1 = /*#__PURE__*/React.forwardRef(function Breadcrumbs(_a, ref) {
|
|
11634
11744
|
var children = _a.children,
|
|
11635
11745
|
collapse = _a.collapse,
|
|
@@ -11713,7 +11823,7 @@
|
|
|
11713
11823
|
var StyledTypography = styled__default['default'](Typography).withConfig({
|
|
11714
11824
|
displayName: "Breadcrumb__StyledTypography",
|
|
11715
11825
|
componentId: "sc-10nvwte-0"
|
|
11716
|
-
})(["&:hover{text-decoration:underline;color:", ";}white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:inline-block;text-decoration:none;color:", ";", ""], states.hover.typography.color, typography$4.color, function (_ref) {
|
|
11826
|
+
})(["@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$4.color, function (_ref) {
|
|
11717
11827
|
var maxWidth = _ref.maxWidth;
|
|
11718
11828
|
return styled.css({
|
|
11719
11829
|
maxWidth: maxWidth
|
|
@@ -11722,29 +11832,30 @@
|
|
|
11722
11832
|
var Breadcrumb = /*#__PURE__*/React.forwardRef(function Breadcrumb(_a, ref) {
|
|
11723
11833
|
var children = _a.children,
|
|
11724
11834
|
maxWidth = _a.maxWidth,
|
|
11725
|
-
|
|
11835
|
+
href = _a.href,
|
|
11836
|
+
other = __rest(_a, ["children", "maxWidth", "href"]);
|
|
11726
11837
|
|
|
11727
11838
|
var props = Object.assign(Object.assign({}, other), {
|
|
11728
11839
|
ref: ref,
|
|
11729
11840
|
maxWidth: maxWidth
|
|
11730
11841
|
});
|
|
11731
11842
|
var showTooltip = maxWidth > 0;
|
|
11732
|
-
|
|
11733
|
-
|
|
11734
|
-
|
|
11735
|
-
|
|
11736
|
-
|
|
11737
|
-
link: true,
|
|
11738
|
-
variant: "body_short"
|
|
11739
|
-
}, props, {
|
|
11740
|
-
children: children
|
|
11741
|
-
}), void 0)
|
|
11742
|
-
}), void 0) : jsxRuntime.exports.jsx(StyledTypography, Object.assign({
|
|
11743
|
-
link: true,
|
|
11843
|
+
var isHrefDefined = href !== undefined;
|
|
11844
|
+
|
|
11845
|
+
var crumb = jsxRuntime.exports.jsx(StyledTypography, Object.assign({
|
|
11846
|
+
link: isHrefDefined,
|
|
11847
|
+
as: isHrefDefined ? null : 'span',
|
|
11744
11848
|
variant: "body_short"
|
|
11745
11849
|
}, props, {
|
|
11746
11850
|
children: children
|
|
11747
11851
|
}), void 0);
|
|
11852
|
+
|
|
11853
|
+
return showTooltip ? jsxRuntime.exports.jsx(Tooltip, Object.assign({
|
|
11854
|
+
title: children,
|
|
11855
|
+
placement: "top"
|
|
11856
|
+
}, {
|
|
11857
|
+
children: crumb
|
|
11858
|
+
}), void 0) : crumb;
|
|
11748
11859
|
});
|
|
11749
11860
|
|
|
11750
11861
|
var Breadcrumbs = Breadcrumbs$1;
|
|
@@ -11809,16 +11920,16 @@
|
|
|
11809
11920
|
disabledTextColor = _tokens$colors$intera$4.disabled__text.rgba,
|
|
11810
11921
|
hoverBackground = _tokens$colors$intera$4.table__header__fill_hover.rgba,
|
|
11811
11922
|
textColor = _tokens$colors$1.text.static_icons__default.rgba,
|
|
11812
|
-
_tokens$spacings$comf$
|
|
11813
|
-
medium = _tokens$spacings$comf$
|
|
11814
|
-
large = _tokens$spacings$comf$
|
|
11815
|
-
small$
|
|
11923
|
+
_tokens$spacings$comf$4 = tokens$6.spacings.comfortable,
|
|
11924
|
+
medium = _tokens$spacings$comf$4.medium,
|
|
11925
|
+
large = _tokens$spacings$comf$4.large,
|
|
11926
|
+
small$1 = _tokens$spacings$comf$4.small,
|
|
11816
11927
|
typography$3 = tokens$6.typography.navigation.menu_title;
|
|
11817
11928
|
var menu = {
|
|
11818
11929
|
background: background,
|
|
11819
11930
|
spacings: {
|
|
11820
|
-
top: small$
|
|
11821
|
-
bottom: small$
|
|
11931
|
+
top: small$1,
|
|
11932
|
+
bottom: small$1,
|
|
11822
11933
|
left: '0px',
|
|
11823
11934
|
right: '0px'
|
|
11824
11935
|
},
|
|
@@ -11876,8 +11987,8 @@
|
|
|
11876
11987
|
spacings: {
|
|
11877
11988
|
left: large,
|
|
11878
11989
|
right: large,
|
|
11879
|
-
top: small$
|
|
11880
|
-
bottom: small$
|
|
11990
|
+
top: small$1,
|
|
11991
|
+
bottom: small$1
|
|
11881
11992
|
}
|
|
11882
11993
|
}
|
|
11883
11994
|
},
|
|
@@ -11888,8 +11999,8 @@
|
|
|
11888
11999
|
spacings: {
|
|
11889
12000
|
left: large,
|
|
11890
12001
|
right: large,
|
|
11891
|
-
top: small$
|
|
11892
|
-
bottom: small$
|
|
12002
|
+
top: small$1,
|
|
12003
|
+
bottom: small$1
|
|
11893
12004
|
}
|
|
11894
12005
|
}
|
|
11895
12006
|
}
|
|
@@ -11922,7 +12033,7 @@
|
|
|
11922
12033
|
return active && styled.css(["background:", ";*{color:", ";}"], activeToken.background, activeToken.typography.color);
|
|
11923
12034
|
}, function (_ref4) {
|
|
11924
12035
|
var disabled = _ref4.disabled;
|
|
11925
|
-
return disabled ? styled.css(["*{color:", ";}svg{fill:", ";}&:focus{outline:none;}&:hover{cursor:not-allowed;}"], disabledToken.typography.color, icon.states.disabled.typography.color) : styled.css(["&:hover{z-index:1;cursor:pointer;background:", ";}&:focus{", "}"], hover.background, outlineTemplate(focus.outline));
|
|
12036
|
+
return disabled ? styled.css(["*{color:", ";}svg{fill:", ";}&:focus{outline:none;}@media (hover:hover) and (pointer:fine){&:hover{cursor:not-allowed;}}"], disabledToken.typography.color, icon.states.disabled.typography.color) : styled.css(["@media (hover:hover) and (pointer:fine){&:hover{z-index:1;cursor:pointer;background:", ";}}&:focus{", "}"], hover.background, outlineTemplate(focus.outline));
|
|
11926
12037
|
});
|
|
11927
12038
|
var Content = styled__default['default'].div.withConfig({
|
|
11928
12039
|
displayName: "MenuItem__Content",
|
|
@@ -12049,8 +12160,9 @@
|
|
|
12049
12160
|
|
|
12050
12161
|
if (focus === 'last') {
|
|
12051
12162
|
setFocusedIndex(lastFocusIndex);
|
|
12052
|
-
}
|
|
12053
|
-
|
|
12163
|
+
} // eslint-disable-next-line react-hooks/exhaustive-deps
|
|
12164
|
+
|
|
12165
|
+
}, [focus, firstFocusIndex, lastFocusIndex]);
|
|
12054
12166
|
|
|
12055
12167
|
var handleMenuItemChange = function handleMenuItemChange(direction, fallbackIndex) {
|
|
12056
12168
|
var i = direction === 'down' ? 1 : -1;
|
|
@@ -12145,7 +12257,7 @@
|
|
|
12145
12257
|
|
|
12146
12258
|
var token = useToken({
|
|
12147
12259
|
density: density
|
|
12148
|
-
}, menu)
|
|
12260
|
+
}, menu);
|
|
12149
12261
|
|
|
12150
12262
|
var _usePopper = usePopper(anchorEl, containerEl, null, placement, 4),
|
|
12151
12263
|
styles = _usePopper.styles,
|
|
@@ -12212,13 +12324,13 @@
|
|
|
12212
12324
|
var page = _a.page,
|
|
12213
12325
|
selected = _a.selected,
|
|
12214
12326
|
onClick = _a.onClick,
|
|
12215
|
-
|
|
12327
|
+
rest = __rest(_a, ["page", "selected", "onClick"]);
|
|
12216
12328
|
|
|
12217
12329
|
var props = Object.assign({
|
|
12218
12330
|
ref: ref,
|
|
12219
12331
|
page: page,
|
|
12220
12332
|
selected: selected
|
|
12221
|
-
},
|
|
12333
|
+
}, rest);
|
|
12222
12334
|
var background = selected ? pagination.entities.item.states.active.background : null;
|
|
12223
12335
|
return jsxRuntime.exports.jsx(Button, Object.assign({
|
|
12224
12336
|
style: {
|
|
@@ -12324,8 +12436,7 @@
|
|
|
12324
12436
|
_a$itemsPerPage = _a.itemsPerPage,
|
|
12325
12437
|
itemsPerPage = _a$itemsPerPage === void 0 ? 10 : _a$itemsPerPage,
|
|
12326
12438
|
onChange = _a.onChange,
|
|
12327
|
-
|
|
12328
|
-
other = __rest(_a, ["totalItems", "defaultPage", "withItemIndicator", "itemsPerPage", "onChange", "className"]);
|
|
12439
|
+
rest = __rest(_a, ["totalItems", "defaultPage", "withItemIndicator", "itemsPerPage", "onChange"]);
|
|
12329
12440
|
|
|
12330
12441
|
var pages = Math.ceil(totalItems / itemsPerPage); // Total page numbers
|
|
12331
12442
|
|
|
@@ -12351,12 +12462,19 @@
|
|
|
12351
12462
|
}
|
|
12352
12463
|
};
|
|
12353
12464
|
|
|
12465
|
+
var isMounted = useIsMounted();
|
|
12354
12466
|
var items = PaginationControl(pages, activePage);
|
|
12467
|
+
React.useLayoutEffect(function () {
|
|
12468
|
+
if (isMounted) {
|
|
12469
|
+
setActivePage(1);
|
|
12470
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(null, 1);
|
|
12471
|
+
} // eslint-disable-next-line react-hooks/exhaustive-deps
|
|
12472
|
+
|
|
12473
|
+
}, [itemsPerPage]);
|
|
12355
12474
|
var props = Object.assign({
|
|
12356
12475
|
ref: ref,
|
|
12357
|
-
withItemIndicator: withItemIndicator
|
|
12358
|
-
|
|
12359
|
-
}, other);
|
|
12476
|
+
withItemIndicator: withItemIndicator
|
|
12477
|
+
}, rest);
|
|
12360
12478
|
|
|
12361
12479
|
var pagination = jsxRuntime.exports.jsx(Navigation, Object.assign({
|
|
12362
12480
|
"aria-label": "pagination"
|
|
@@ -12423,21 +12541,21 @@
|
|
|
12423
12541
|
});
|
|
12424
12542
|
|
|
12425
12543
|
var colors$1 = tokens$6.colors,
|
|
12426
|
-
_tokens$spacings$comf$
|
|
12427
|
-
small
|
|
12428
|
-
x_small$
|
|
12544
|
+
_tokens$spacings$comf$3 = tokens$6.spacings.comfortable,
|
|
12545
|
+
small = _tokens$spacings$comf$3.small,
|
|
12546
|
+
x_small$2 = _tokens$spacings$comf$3.x_small,
|
|
12429
12547
|
typography$1 = tokens$6.typography,
|
|
12430
12548
|
shape = tokens$6.shape;
|
|
12431
12549
|
var nativeselect = {
|
|
12432
12550
|
background: colors$1.ui.background__light.rgba,
|
|
12433
12551
|
typography: Object.assign(Object.assign({}, typography$1.input.text), {
|
|
12434
|
-
color: colors$1.text.
|
|
12552
|
+
color: colors$1.text.static_icons__default.rgba
|
|
12435
12553
|
}),
|
|
12436
12554
|
entities: {
|
|
12437
12555
|
input: {
|
|
12438
12556
|
spacings: {
|
|
12439
|
-
left: small
|
|
12440
|
-
right: small
|
|
12557
|
+
left: small,
|
|
12558
|
+
right: small,
|
|
12441
12559
|
top: '6px',
|
|
12442
12560
|
bottom: '6px'
|
|
12443
12561
|
}
|
|
@@ -12469,8 +12587,8 @@
|
|
|
12469
12587
|
entities: {
|
|
12470
12588
|
input: {
|
|
12471
12589
|
spacings: {
|
|
12472
|
-
left: x_small$
|
|
12473
|
-
right: x_small$
|
|
12590
|
+
left: x_small$2,
|
|
12591
|
+
right: x_small$2,
|
|
12474
12592
|
top: '0',
|
|
12475
12593
|
bottom: '0'
|
|
12476
12594
|
}
|
|
@@ -12509,7 +12627,7 @@
|
|
|
12509
12627
|
|
|
12510
12628
|
var token = useToken({
|
|
12511
12629
|
density: density
|
|
12512
|
-
}, nativeselect)
|
|
12630
|
+
}, nativeselect);
|
|
12513
12631
|
var containerProps = {
|
|
12514
12632
|
ref: ref,
|
|
12515
12633
|
className: className
|
|
@@ -13977,7 +14095,7 @@
|
|
|
13977
14095
|
}
|
|
13978
14096
|
/**
|
|
13979
14097
|
* Default implementation for status message. Only added when menu is open.
|
|
13980
|
-
* Will
|
|
14098
|
+
* Will specify if there are results in the list, and if so, how many,
|
|
13981
14099
|
* and what keys are relevant.
|
|
13982
14100
|
*
|
|
13983
14101
|
* @param {Object} param the downshift state and other relevant properties
|
|
@@ -14356,6 +14474,12 @@
|
|
|
14356
14474
|
touchEnd: touchEnd
|
|
14357
14475
|
});
|
|
14358
14476
|
|
|
14477
|
+
var _excluded$4 = ["refKey", "ref"],
|
|
14478
|
+
_excluded2$3 = ["onClick", "onPress", "onKeyDown", "onKeyUp", "onBlur"],
|
|
14479
|
+
_excluded3$2 = ["onKeyDown", "onBlur", "onChange", "onInput", "onChangeText"],
|
|
14480
|
+
_excluded4$1 = ["refKey", "ref"],
|
|
14481
|
+
_excluded5$1 = ["onMouseMove", "onMouseDown", "onClick", "onPress", "index", "item"];
|
|
14482
|
+
|
|
14359
14483
|
var Downshift = /*#__PURE__*/function () {
|
|
14360
14484
|
var Downshift = /*#__PURE__*/function (_Component) {
|
|
14361
14485
|
_inheritsLoose(Downshift, _Component);
|
|
@@ -14475,6 +14599,8 @@
|
|
|
14475
14599
|
isItemSelected = newStateToSet.hasOwnProperty('selectedItem'); // this keeps track of the object we want to call with setState
|
|
14476
14600
|
|
|
14477
14601
|
var nextState = {}; // this is just used to tell whether the state changed
|
|
14602
|
+
|
|
14603
|
+
var nextFullState = {}; // we need to call on change if the outside world is controlling any of our state
|
|
14478
14604
|
// and we're trying to update that state. OR if the selection has changed and we're
|
|
14479
14605
|
// trying to update the selection
|
|
14480
14606
|
|
|
@@ -14500,7 +14626,7 @@
|
|
|
14500
14626
|
return;
|
|
14501
14627
|
}
|
|
14502
14628
|
|
|
14503
|
-
newStateToSet[key]; // if it's coming from props, then we don't care to set it internally
|
|
14629
|
+
nextFullState[key] = newStateToSet[key]; // if it's coming from props, then we don't care to set it internally
|
|
14504
14630
|
|
|
14505
14631
|
if (!isControlledProp(_this.props, key)) {
|
|
14506
14632
|
nextState[key] = newStateToSet[key];
|
|
@@ -14549,7 +14675,7 @@
|
|
|
14549
14675
|
_ref$refKey = _ref.refKey,
|
|
14550
14676
|
refKey = _ref$refKey === void 0 ? 'ref' : _ref$refKey,
|
|
14551
14677
|
ref = _ref.ref,
|
|
14552
|
-
rest = _objectWithoutPropertiesLoose(_ref,
|
|
14678
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$4);
|
|
14553
14679
|
|
|
14554
14680
|
var _ref2 = _temp2 === void 0 ? {} : _temp2,
|
|
14555
14681
|
_ref2$suppressRefErro = _ref2.suppressRefError,
|
|
@@ -14733,7 +14859,7 @@
|
|
|
14733
14859
|
var onKeyDown = _ref3.onKeyDown,
|
|
14734
14860
|
onKeyUp = _ref3.onKeyUp,
|
|
14735
14861
|
onBlur = _ref3.onBlur,
|
|
14736
|
-
rest = _objectWithoutPropertiesLoose(_ref3,
|
|
14862
|
+
rest = _objectWithoutPropertiesLoose(_ref3, _excluded2$3);
|
|
14737
14863
|
|
|
14738
14864
|
var _this$getState5 = _this.getState(),
|
|
14739
14865
|
isOpen = _this$getState5.isOpen;
|
|
@@ -14801,10 +14927,10 @@
|
|
|
14801
14927
|
_this.internalSetTimeout(function () {
|
|
14802
14928
|
if (!_this.isMouseDown && (_this.props.environment.document.activeElement == null || _this.props.environment.document.activeElement.id !== _this.inputId) && _this.props.environment.document.activeElement !== blurTarget // Do nothing if we refocus the same element again (to solve issue in Safari on iOS)
|
|
14803
14929
|
) {
|
|
14804
|
-
|
|
14805
|
-
|
|
14806
|
-
|
|
14807
|
-
|
|
14930
|
+
_this.reset({
|
|
14931
|
+
type: blurButton
|
|
14932
|
+
});
|
|
14933
|
+
}
|
|
14808
14934
|
});
|
|
14809
14935
|
};
|
|
14810
14936
|
|
|
@@ -14822,7 +14948,7 @@
|
|
|
14822
14948
|
onChange = _ref4.onChange,
|
|
14823
14949
|
onInput = _ref4.onInput;
|
|
14824
14950
|
_ref4.onChangeText;
|
|
14825
|
-
var rest = _objectWithoutPropertiesLoose(_ref4,
|
|
14951
|
+
var rest = _objectWithoutPropertiesLoose(_ref4, _excluded3$2);
|
|
14826
14952
|
|
|
14827
14953
|
var onChangeKey;
|
|
14828
14954
|
var eventHandlers = {};
|
|
@@ -14897,7 +15023,7 @@
|
|
|
14897
15023
|
_ref5$refKey = _ref5.refKey,
|
|
14898
15024
|
refKey = _ref5$refKey === void 0 ? 'ref' : _ref5$refKey,
|
|
14899
15025
|
ref = _ref5.ref,
|
|
14900
|
-
props = _objectWithoutPropertiesLoose(_ref5,
|
|
15026
|
+
props = _objectWithoutPropertiesLoose(_ref5, _excluded4$1);
|
|
14901
15027
|
|
|
14902
15028
|
var _ref6 = _temp6 === void 0 ? {} : _temp6,
|
|
14903
15029
|
_ref6$suppressRefErro = _ref6.suppressRefError,
|
|
@@ -14922,7 +15048,7 @@
|
|
|
14922
15048
|
item = _ref7$item === void 0 ? process.env.NODE_ENV === 'production' ?
|
|
14923
15049
|
/* istanbul ignore next */
|
|
14924
15050
|
undefined : requiredProp('getItemProps', 'item') : _ref7$item,
|
|
14925
|
-
rest = _objectWithoutPropertiesLoose(_ref7,
|
|
15051
|
+
rest = _objectWithoutPropertiesLoose(_ref7, _excluded5$1);
|
|
14926
15052
|
|
|
14927
15053
|
if (index === undefined) {
|
|
14928
15054
|
_this.items.push(item);
|
|
@@ -15430,9 +15556,9 @@
|
|
|
15430
15556
|
selectedItemChanged: function selectedItemChanged(prevItem, item) {
|
|
15431
15557
|
return prevItem !== item;
|
|
15432
15558
|
},
|
|
15433
|
-
environment:
|
|
15559
|
+
environment:
|
|
15434
15560
|
/* istanbul ignore next (ssr) */
|
|
15435
|
-
? {} : window,
|
|
15561
|
+
typeof window === 'undefined' ? {} : window,
|
|
15436
15562
|
stateReducer: function stateReducer(state, stateToSet) {
|
|
15437
15563
|
return stateToSet;
|
|
15438
15564
|
},
|
|
@@ -15518,6 +15644,7 @@
|
|
|
15518
15644
|
}
|
|
15519
15645
|
}
|
|
15520
15646
|
|
|
15647
|
+
var _excluded$3 = ["isInitialMount", "highlightedIndex", "items", "environment"];
|
|
15521
15648
|
var dropdownDefaultStateValues = {
|
|
15522
15649
|
highlightedIndex: -1,
|
|
15523
15650
|
isOpen: false,
|
|
@@ -15711,9 +15838,9 @@
|
|
|
15711
15838
|
getA11ySelectionMessage: getA11ySelectionMessage,
|
|
15712
15839
|
scrollIntoView: scrollIntoView,
|
|
15713
15840
|
circularNavigation: false,
|
|
15714
|
-
environment:
|
|
15841
|
+
environment:
|
|
15715
15842
|
/* istanbul ignore next (ssr) */
|
|
15716
|
-
? {} : window
|
|
15843
|
+
typeof window === 'undefined' ? {} : window
|
|
15717
15844
|
};
|
|
15718
15845
|
|
|
15719
15846
|
function getDefaultValue$1(props, propKey, defaultStateValues) {
|
|
@@ -15927,11 +16054,11 @@
|
|
|
15927
16054
|
highlightedIndex = _ref2.highlightedIndex,
|
|
15928
16055
|
items = _ref2.items,
|
|
15929
16056
|
environment = _ref2.environment,
|
|
15930
|
-
rest = _objectWithoutPropertiesLoose(_ref2,
|
|
16057
|
+
rest = _objectWithoutPropertiesLoose(_ref2, _excluded$3);
|
|
15931
16058
|
|
|
15932
16059
|
// Sets a11y status message on changes in state.
|
|
15933
16060
|
React.useEffect(function () {
|
|
15934
|
-
if (isInitialMount) {
|
|
16061
|
+
if (isInitialMount || false) {
|
|
15935
16062
|
return;
|
|
15936
16063
|
}
|
|
15937
16064
|
|
|
@@ -16060,41 +16187,40 @@
|
|
|
16060
16187
|
|
|
16061
16188
|
return _extends({}, state, changes);
|
|
16062
16189
|
}
|
|
16063
|
-
|
|
16064
16190
|
({
|
|
16065
|
-
|
|
16066
|
-
|
|
16067
|
-
|
|
16068
|
-
|
|
16069
|
-
|
|
16070
|
-
|
|
16071
|
-
|
|
16072
|
-
|
|
16073
|
-
|
|
16074
|
-
|
|
16075
|
-
|
|
16076
|
-
|
|
16077
|
-
|
|
16078
|
-
|
|
16079
|
-
|
|
16080
|
-
|
|
16081
|
-
|
|
16082
|
-
|
|
16083
|
-
|
|
16084
|
-
|
|
16085
|
-
|
|
16086
|
-
|
|
16087
|
-
|
|
16088
|
-
|
|
16089
|
-
|
|
16090
|
-
|
|
16091
|
-
|
|
16092
|
-
|
|
16093
|
-
|
|
16094
|
-
|
|
16095
|
-
|
|
16191
|
+
items: PropTypes.array.isRequired,
|
|
16192
|
+
itemToString: PropTypes.func,
|
|
16193
|
+
getA11yStatusMessage: PropTypes.func,
|
|
16194
|
+
getA11ySelectionMessage: PropTypes.func,
|
|
16195
|
+
circularNavigation: PropTypes.bool,
|
|
16196
|
+
highlightedIndex: PropTypes.number,
|
|
16197
|
+
defaultHighlightedIndex: PropTypes.number,
|
|
16198
|
+
initialHighlightedIndex: PropTypes.number,
|
|
16199
|
+
isOpen: PropTypes.bool,
|
|
16200
|
+
defaultIsOpen: PropTypes.bool,
|
|
16201
|
+
initialIsOpen: PropTypes.bool,
|
|
16202
|
+
selectedItem: PropTypes.any,
|
|
16203
|
+
initialSelectedItem: PropTypes.any,
|
|
16204
|
+
defaultSelectedItem: PropTypes.any,
|
|
16205
|
+
id: PropTypes.string,
|
|
16206
|
+
labelId: PropTypes.string,
|
|
16207
|
+
menuId: PropTypes.string,
|
|
16208
|
+
getItemId: PropTypes.func,
|
|
16209
|
+
toggleButtonId: PropTypes.string,
|
|
16210
|
+
stateReducer: PropTypes.func,
|
|
16211
|
+
onSelectedItemChange: PropTypes.func,
|
|
16212
|
+
onHighlightedIndexChange: PropTypes.func,
|
|
16213
|
+
onStateChange: PropTypes.func,
|
|
16214
|
+
onIsOpenChange: PropTypes.func,
|
|
16215
|
+
environment: PropTypes.shape({
|
|
16216
|
+
addEventListener: PropTypes.func,
|
|
16217
|
+
removeEventListener: PropTypes.func,
|
|
16218
|
+
document: PropTypes.shape({
|
|
16219
|
+
getElementById: PropTypes.func,
|
|
16220
|
+
activeElement: PropTypes.any,
|
|
16221
|
+
body: PropTypes.any
|
|
16222
|
+
})
|
|
16096
16223
|
})
|
|
16097
|
-
})
|
|
16098
16224
|
});
|
|
16099
16225
|
/**
|
|
16100
16226
|
* Default implementation for status message. Only added when menu is open.
|
|
@@ -16104,32 +16230,21 @@
|
|
|
16104
16230
|
* @param {Object} param the downshift state and other relevant properties
|
|
16105
16231
|
* @return {String} the a11y status message
|
|
16106
16232
|
*/
|
|
16107
|
-
|
|
16108
|
-
|
|
16109
|
-
|
|
16110
|
-
|
|
16111
|
-
|
|
16112
|
-
|
|
16113
|
-
|
|
16233
|
+
function getA11yStatusMessage(_a) {
|
|
16234
|
+
var isOpen = _a.isOpen, resultCount = _a.resultCount, previousResultCount = _a.previousResultCount;
|
|
16235
|
+
if (!isOpen) {
|
|
16236
|
+
return '';
|
|
16237
|
+
}
|
|
16238
|
+
if (!resultCount) {
|
|
16239
|
+
return 'No results are available.';
|
|
16240
|
+
}
|
|
16241
|
+
if (resultCount !== previousResultCount) {
|
|
16242
|
+
return resultCount + " result" + (resultCount === 1 ? ' is' : 's are') + " available, use up and down arrow keys to navigate. Press Enter or Space Bar keys to select.";
|
|
16243
|
+
}
|
|
16114
16244
|
return '';
|
|
16115
|
-
}
|
|
16116
|
-
|
|
16117
|
-
if (!resultCount) {
|
|
16118
|
-
return 'No results are available.';
|
|
16119
|
-
}
|
|
16120
|
-
|
|
16121
|
-
if (resultCount !== previousResultCount) {
|
|
16122
|
-
return resultCount + " result" + (resultCount === 1 ? ' is' : 's are') + " available, use up and down arrow keys to navigate. Press Enter or Space Bar keys to select.";
|
|
16123
|
-
}
|
|
16124
|
-
|
|
16125
|
-
return '';
|
|
16126
16245
|
}
|
|
16127
|
-
|
|
16128
|
-
_extends({}, defaultProps$3, {
|
|
16129
|
-
getA11yStatusMessage: getA11yStatusMessage
|
|
16130
|
-
}); // eslint-disable-next-line import/no-mutable-exports
|
|
16246
|
+
__assign(__assign({}, defaultProps$3), { getA11yStatusMessage: getA11yStatusMessage });
|
|
16131
16247
|
/* istanbul ignore next */
|
|
16132
|
-
|
|
16133
16248
|
if (process.env.NODE_ENV !== 'production') ;
|
|
16134
16249
|
|
|
16135
16250
|
process.env.NODE_ENV !== "production" ? '__menu_keydown_arrow_down__' : 0;
|
|
@@ -16422,6 +16537,11 @@
|
|
|
16422
16537
|
}
|
|
16423
16538
|
/* eslint-enable complexity */
|
|
16424
16539
|
|
|
16540
|
+
var _excluded$1 = ["onMouseLeave", "refKey", "ref"],
|
|
16541
|
+
_excluded2$1 = ["item", "index", "refKey", "ref", "onMouseMove", "onClick", "onPress"],
|
|
16542
|
+
_excluded3 = ["onClick", "onPress", "refKey", "ref"],
|
|
16543
|
+
_excluded4 = ["onKeyDown", "onChange", "onInput", "onBlur", "onChangeText", "refKey", "ref"],
|
|
16544
|
+
_excluded5 = ["refKey", "ref"];
|
|
16425
16545
|
useCombobox.stateChangeTypes = stateChangeTypes$1;
|
|
16426
16546
|
|
|
16427
16547
|
function useCombobox(userProps) {
|
|
@@ -16592,8 +16712,8 @@
|
|
|
16592
16712
|
|
|
16593
16713
|
if (!latestState.isOpen || latestState.highlightedIndex < 0 || event.which === 229 // if IME composing, wait for next Enter keydown event.
|
|
16594
16714
|
) {
|
|
16595
|
-
|
|
16596
|
-
|
|
16715
|
+
return;
|
|
16716
|
+
}
|
|
16597
16717
|
|
|
16598
16718
|
event.preventDefault();
|
|
16599
16719
|
dispatch({
|
|
@@ -16618,7 +16738,7 @@
|
|
|
16618
16738
|
_ref$refKey = _ref.refKey,
|
|
16619
16739
|
refKey = _ref$refKey === void 0 ? 'ref' : _ref$refKey,
|
|
16620
16740
|
ref = _ref.ref,
|
|
16621
|
-
rest = _objectWithoutPropertiesLoose(_ref,
|
|
16741
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$1);
|
|
16622
16742
|
|
|
16623
16743
|
var _ref2 = _temp2 === void 0 ? {} : _temp2,
|
|
16624
16744
|
_ref2$suppressRefErro = _ref2.suppressRefError,
|
|
@@ -16645,7 +16765,7 @@
|
|
|
16645
16765
|
onMouseMove = _ref3.onMouseMove,
|
|
16646
16766
|
onClick = _ref3.onClick;
|
|
16647
16767
|
_ref3.onPress;
|
|
16648
|
-
var rest = _objectWithoutPropertiesLoose(_ref3,
|
|
16768
|
+
var rest = _objectWithoutPropertiesLoose(_ref3, _excluded2$1);
|
|
16649
16769
|
|
|
16650
16770
|
var _latest$current = latest.current,
|
|
16651
16771
|
latestProps = _latest$current.props,
|
|
@@ -16699,7 +16819,7 @@
|
|
|
16699
16819
|
var _ref5$refKey = _ref5.refKey,
|
|
16700
16820
|
refKey = _ref5$refKey === void 0 ? 'ref' : _ref5$refKey,
|
|
16701
16821
|
ref = _ref5.ref,
|
|
16702
|
-
rest = _objectWithoutPropertiesLoose(_ref5,
|
|
16822
|
+
rest = _objectWithoutPropertiesLoose(_ref5, _excluded3);
|
|
16703
16823
|
|
|
16704
16824
|
var toggleButtonHandleClick = function toggleButtonHandleClick() {
|
|
16705
16825
|
dispatch({
|
|
@@ -16729,7 +16849,7 @@
|
|
|
16729
16849
|
var _ref6$refKey = _ref6.refKey,
|
|
16730
16850
|
refKey = _ref6$refKey === void 0 ? 'ref' : _ref6$refKey,
|
|
16731
16851
|
ref = _ref6.ref,
|
|
16732
|
-
rest = _objectWithoutPropertiesLoose(_ref6,
|
|
16852
|
+
rest = _objectWithoutPropertiesLoose(_ref6, _excluded4);
|
|
16733
16853
|
|
|
16734
16854
|
var _ref7 = _temp6 === void 0 ? {} : _temp6,
|
|
16735
16855
|
_ref7$suppressRefErro = _ref7.suppressRefError,
|
|
@@ -16793,7 +16913,7 @@
|
|
|
16793
16913
|
_ref8$refKey = _ref8.refKey,
|
|
16794
16914
|
refKey = _ref8$refKey === void 0 ? 'ref' : _ref8$refKey,
|
|
16795
16915
|
ref = _ref8.ref,
|
|
16796
|
-
rest = _objectWithoutPropertiesLoose(_ref8,
|
|
16916
|
+
rest = _objectWithoutPropertiesLoose(_ref8, _excluded5);
|
|
16797
16917
|
|
|
16798
16918
|
var _ref9 = _temp8 === void 0 ? {} : _temp8,
|
|
16799
16919
|
_ref9$suppressRefErro = _ref9.suppressRefError,
|
|
@@ -16933,9 +17053,7 @@
|
|
|
16933
17053
|
var element = event.target;
|
|
16934
17054
|
|
|
16935
17055
|
if (element instanceof HTMLInputElement && // if element is a text input
|
|
16936
|
-
element.value !== '' && (
|
|
16937
|
-
// and cursor is either not at the start or is currently highlighting text.
|
|
16938
|
-
element.selectionStart !== 0 || element.selectionEnd !== 0)) {
|
|
17056
|
+
element.value !== '' && (element.selectionStart !== 0 || element.selectionEnd !== 0)) {
|
|
16939
17057
|
return false;
|
|
16940
17058
|
}
|
|
16941
17059
|
|
|
@@ -17152,6 +17270,8 @@
|
|
|
17152
17270
|
return _extends({}, state, changes);
|
|
17153
17271
|
}
|
|
17154
17272
|
|
|
17273
|
+
var _excluded = ["refKey", "ref", "onClick", "onKeyDown", "selectedItem", "index"],
|
|
17274
|
+
_excluded2 = ["refKey", "ref", "onKeyDown", "onClick", "preventKeyAction"];
|
|
17155
17275
|
useMultipleSelection.stateChangeTypes = stateChangeTypes;
|
|
17156
17276
|
|
|
17157
17277
|
function useMultipleSelection(userProps) {
|
|
@@ -17281,7 +17401,7 @@
|
|
|
17281
17401
|
onKeyDown = _ref3.onKeyDown,
|
|
17282
17402
|
selectedItem = _ref3.selectedItem,
|
|
17283
17403
|
index = _ref3.index,
|
|
17284
|
-
rest = _objectWithoutPropertiesLoose(_ref3,
|
|
17404
|
+
rest = _objectWithoutPropertiesLoose(_ref3, _excluded);
|
|
17285
17405
|
|
|
17286
17406
|
var latestState = latest.current.state;
|
|
17287
17407
|
var itemIndex = getItemIndex(index, selectedItem, latestState.selectedItems);
|
|
@@ -17322,7 +17442,7 @@
|
|
|
17322
17442
|
onClick = _ref4.onClick,
|
|
17323
17443
|
_ref4$preventKeyActio = _ref4.preventKeyAction,
|
|
17324
17444
|
preventKeyAction = _ref4$preventKeyActio === void 0 ? false : _ref4$preventKeyActio,
|
|
17325
|
-
rest = _objectWithoutPropertiesLoose(_ref4,
|
|
17445
|
+
rest = _objectWithoutPropertiesLoose(_ref4, _excluded2);
|
|
17326
17446
|
|
|
17327
17447
|
var _ref5 = _temp3 === void 0 ? {} : _temp3,
|
|
17328
17448
|
_ref5$suppressRefErro = _ref5.suppressRefError,
|
|
@@ -17401,12 +17521,12 @@
|
|
|
17401
17521
|
_tokens$shape$1 = tokens$6.shape,
|
|
17402
17522
|
straight = _tokens$shape$1.straight,
|
|
17403
17523
|
borderRadius = _tokens$shape$1.corners.borderRadius,
|
|
17404
|
-
_tokens$spacings$comf$
|
|
17405
|
-
spacingSmall = _tokens$spacings$comf$
|
|
17406
|
-
spacingMediumSmall = _tokens$spacings$comf$
|
|
17407
|
-
spacingMedium = _tokens$spacings$comf$
|
|
17408
|
-
spacingLarge = _tokens$spacings$comf$
|
|
17409
|
-
xx_small = _tokens$spacings$comf$
|
|
17524
|
+
_tokens$spacings$comf$2 = tokens$6.spacings.comfortable,
|
|
17525
|
+
spacingSmall = _tokens$spacings$comf$2.small,
|
|
17526
|
+
spacingMediumSmall = _tokens$spacings$comf$2.medium_small,
|
|
17527
|
+
spacingMedium = _tokens$spacings$comf$2.medium,
|
|
17528
|
+
spacingLarge = _tokens$spacings$comf$2.large,
|
|
17529
|
+
xx_small = _tokens$spacings$comf$2.xx_small,
|
|
17410
17530
|
boxShadow$1 = tokens$6.elevation.temporary_nav;
|
|
17411
17531
|
var select = {
|
|
17412
17532
|
background: colors.ui.background__default.rgba,
|
|
@@ -17419,7 +17539,7 @@
|
|
|
17419
17539
|
left: spacingLarge
|
|
17420
17540
|
},
|
|
17421
17541
|
typography: Object.assign(Object.assign({}, typography.navigation.menu_title), {
|
|
17422
|
-
color: colors.text.
|
|
17542
|
+
color: colors.text.static_icons__default.rgba
|
|
17423
17543
|
}),
|
|
17424
17544
|
border: {
|
|
17425
17545
|
type: 'border',
|
|
@@ -17427,7 +17547,10 @@
|
|
|
17427
17547
|
},
|
|
17428
17548
|
states: {
|
|
17429
17549
|
hover: {
|
|
17430
|
-
background: colors.ui.
|
|
17550
|
+
background: colors.ui.background__medium.rgba
|
|
17551
|
+
},
|
|
17552
|
+
active: {
|
|
17553
|
+
background: colors.interactive.primary__selected_highlight.rgba
|
|
17431
17554
|
}
|
|
17432
17555
|
},
|
|
17433
17556
|
entities: {
|
|
@@ -17493,23 +17616,19 @@
|
|
|
17493
17616
|
var StyledListItem = styled__default['default'](List$1.Item).withConfig({
|
|
17494
17617
|
displayName: "commonStyles__StyledListItem",
|
|
17495
17618
|
componentId: "sc-v98ajk-3"
|
|
17496
|
-
})(
|
|
17497
|
-
var
|
|
17498
|
-
|
|
17499
|
-
|
|
17500
|
-
var
|
|
17501
|
-
return highlighted === 'true' ? 'pointer' : 'default';
|
|
17619
|
+
})(function (_ref) {
|
|
17620
|
+
var theme = _ref.theme,
|
|
17621
|
+
highlighted = _ref.highlighted,
|
|
17622
|
+
active = _ref.active;
|
|
17623
|
+
var backgroundColor = highlighted === 'true' ? theme.states.hover.background : active === 'true' ? theme.states.active.background : theme.background;
|
|
17624
|
+
return styled.css(["margin:0;list-style:none;background-color:", ";", ";cursor:", ";"], backgroundColor, typographyTemplate(theme.typography), highlighted === 'true' ? 'pointer' : 'default');
|
|
17502
17625
|
});
|
|
17503
17626
|
var StyledButton = styled__default['default'](Button).withConfig({
|
|
17504
17627
|
displayName: "commonStyles__StyledButton",
|
|
17505
17628
|
componentId: "sc-v98ajk-4"
|
|
17506
|
-
})(
|
|
17507
|
-
var
|
|
17508
|
-
return
|
|
17509
|
-
top: select.modes.compact.entities.button.spacings.top
|
|
17510
|
-
}) : styled.css({
|
|
17511
|
-
top: buttonToken.spacings.top
|
|
17512
|
-
});
|
|
17629
|
+
})(function (_ref2) {
|
|
17630
|
+
var button = _ref2.theme.entities.button;
|
|
17631
|
+
return styled.css(["position:absolute;right:", ";height:", ";width:", ";top:", ";"], button.spacings.right, button.height, button.height, button.spacings.top);
|
|
17513
17632
|
});
|
|
17514
17633
|
var StyledInputWrapper = styled__default['default'].div.withConfig({
|
|
17515
17634
|
displayName: "commonStyles__StyledInputWrapper",
|
|
@@ -17550,7 +17669,7 @@
|
|
|
17550
17669
|
|
|
17551
17670
|
var token = useToken({
|
|
17552
17671
|
density: density
|
|
17553
|
-
}, select)
|
|
17672
|
+
}, select);
|
|
17554
17673
|
React.useEffect(function () {
|
|
17555
17674
|
setInputItems(items);
|
|
17556
17675
|
}, [items]);
|
|
@@ -17563,6 +17682,13 @@
|
|
|
17563
17682
|
return item.toLowerCase().includes(inputValue.toLowerCase());
|
|
17564
17683
|
}));
|
|
17565
17684
|
},
|
|
17685
|
+
onIsOpenChange: function onIsOpenChange(_ref3) {
|
|
17686
|
+
var selectedItem = _ref3.selectedItem;
|
|
17687
|
+
|
|
17688
|
+
if (inputItems.length === 1 && selectedItem === inputItems[0]) {
|
|
17689
|
+
setInputItems(items);
|
|
17690
|
+
}
|
|
17691
|
+
},
|
|
17566
17692
|
initialSelectedItem: initialSelectedItem
|
|
17567
17693
|
};
|
|
17568
17694
|
|
|
@@ -17580,7 +17706,17 @@
|
|
|
17580
17706
|
getInputProps = _useCombobox.getInputProps,
|
|
17581
17707
|
getComboboxProps = _useCombobox.getComboboxProps,
|
|
17582
17708
|
highlightedIndex = _useCombobox.highlightedIndex,
|
|
17583
|
-
getItemProps = _useCombobox.getItemProps
|
|
17709
|
+
getItemProps = _useCombobox.getItemProps,
|
|
17710
|
+
openMenu = _useCombobox.openMenu,
|
|
17711
|
+
selectedItem = _useCombobox.selectedItem,
|
|
17712
|
+
reset = _useCombobox.reset,
|
|
17713
|
+
inputValue = _useCombobox.inputValue;
|
|
17714
|
+
|
|
17715
|
+
var openSelect = function openSelect() {
|
|
17716
|
+
if (!isOpen && !(disabled || readOnly)) {
|
|
17717
|
+
openMenu();
|
|
17718
|
+
}
|
|
17719
|
+
};
|
|
17584
17720
|
|
|
17585
17721
|
return jsxRuntime.exports.jsx(styled.ThemeProvider, Object.assign({
|
|
17586
17722
|
theme: token
|
|
@@ -17597,14 +17733,30 @@
|
|
|
17597
17733
|
children: [jsxRuntime.exports.jsx(PaddedInput, Object.assign({}, getInputProps({
|
|
17598
17734
|
disabled: disabled
|
|
17599
17735
|
}), {
|
|
17600
|
-
readOnly: readOnly
|
|
17601
|
-
|
|
17736
|
+
readOnly: readOnly,
|
|
17737
|
+
onFocus: openSelect,
|
|
17738
|
+
onClick: openSelect
|
|
17739
|
+
}, other), void 0), Boolean(inputValue) && jsxRuntime.exports.jsx(StyledButton, Object.assign({
|
|
17740
|
+
variant: "ghost_icon",
|
|
17741
|
+
disabled: disabled || readOnly,
|
|
17742
|
+
"aria-label": 'clear options',
|
|
17743
|
+
title: "clear",
|
|
17744
|
+
onClick: reset,
|
|
17745
|
+
style: {
|
|
17746
|
+
right: 32
|
|
17747
|
+
}
|
|
17748
|
+
}, {
|
|
17749
|
+
children: jsxRuntime.exports.jsx(Icon$1, {
|
|
17750
|
+
data: close,
|
|
17751
|
+
size: 16
|
|
17752
|
+
}, void 0)
|
|
17753
|
+
}), void 0), jsxRuntime.exports.jsx(StyledButton, Object.assign({
|
|
17602
17754
|
variant: "ghost_icon"
|
|
17603
17755
|
}, getToggleButtonProps({
|
|
17604
17756
|
disabled: disabled || readOnly
|
|
17605
17757
|
}), {
|
|
17606
17758
|
"aria-label": 'toggle options',
|
|
17607
|
-
|
|
17759
|
+
title: "open"
|
|
17608
17760
|
}, {
|
|
17609
17761
|
children: jsxRuntime.exports.jsx(Icon$1, {
|
|
17610
17762
|
data: isOpen ? arrow_drop_up : arrow_drop_down
|
|
@@ -17613,14 +17765,13 @@
|
|
|
17613
17765
|
}), void 0), jsxRuntime.exports.jsx(StyledList, Object.assign({}, getMenuProps(), {
|
|
17614
17766
|
children: isOpen && inputItems.map(function (item, index) {
|
|
17615
17767
|
return jsxRuntime.exports.jsx(PaddedStyledListItem$1, Object.assign({
|
|
17616
|
-
highlighted: highlightedIndex === index ? 'true' : 'false'
|
|
17768
|
+
highlighted: highlightedIndex === index ? 'true' : 'false',
|
|
17769
|
+
active: selectedItem === item ? 'true' : 'false'
|
|
17617
17770
|
}, getItemProps({
|
|
17618
17771
|
item: item,
|
|
17619
17772
|
index: index,
|
|
17620
17773
|
disabled: disabled
|
|
17621
17774
|
}), {
|
|
17622
|
-
density: density
|
|
17623
|
-
}, {
|
|
17624
17775
|
children: item
|
|
17625
17776
|
}), "".concat(item));
|
|
17626
17777
|
})
|
|
@@ -17635,17 +17786,23 @@
|
|
|
17635
17786
|
focusOutlineColor$2 = _tokens$colors$intera$2.focus.rgba,
|
|
17636
17787
|
disabledText$1 = _tokens$colors$intera$2.disabled__text.rgba,
|
|
17637
17788
|
labelTypography$2 = tokens$6.typography.navigation.menu_title,
|
|
17638
|
-
_tokens$spacings$comf = tokens$6.spacings.comfortable,
|
|
17639
|
-
medium_small$
|
|
17640
|
-
x_small = _tokens$spacings$comf.x_small
|
|
17789
|
+
_tokens$spacings$comf$1 = tokens$6.spacings.comfortable,
|
|
17790
|
+
medium_small$2 = _tokens$spacings$comf$1.medium_small,
|
|
17791
|
+
x_small$1 = _tokens$spacings$comf$1.x_small,
|
|
17792
|
+
_tokens$clickbounds$1 = tokens$6.clickbounds,
|
|
17793
|
+
clicboundSize$1 = _tokens$clickbounds$1.default__base,
|
|
17794
|
+
compactClickboundSize$1 = _tokens$clickbounds$1.compact__standard;
|
|
17641
17795
|
var checkbox = {
|
|
17642
17796
|
background: primaryColor$1,
|
|
17643
17797
|
typography: labelTypography$2,
|
|
17644
17798
|
spacings: {
|
|
17645
|
-
bottom: medium_small$
|
|
17646
|
-
top: medium_small$
|
|
17647
|
-
left: medium_small$
|
|
17648
|
-
right: medium_small$
|
|
17799
|
+
bottom: medium_small$2,
|
|
17800
|
+
top: medium_small$2,
|
|
17801
|
+
left: medium_small$2,
|
|
17802
|
+
right: medium_small$2
|
|
17803
|
+
},
|
|
17804
|
+
clickbound: {
|
|
17805
|
+
height: clicboundSize$1
|
|
17649
17806
|
},
|
|
17650
17807
|
states: {
|
|
17651
17808
|
hover: {
|
|
@@ -17667,17 +17824,20 @@
|
|
|
17667
17824
|
entities: {
|
|
17668
17825
|
label: {
|
|
17669
17826
|
spacings: {
|
|
17670
|
-
left: medium_small$
|
|
17827
|
+
left: medium_small$2
|
|
17671
17828
|
}
|
|
17672
17829
|
}
|
|
17673
17830
|
},
|
|
17674
17831
|
modes: {
|
|
17675
17832
|
compact: {
|
|
17676
17833
|
spacings: {
|
|
17677
|
-
bottom: x_small,
|
|
17678
|
-
top: x_small,
|
|
17679
|
-
left: x_small,
|
|
17680
|
-
right: x_small
|
|
17834
|
+
bottom: x_small$1,
|
|
17835
|
+
top: x_small$1,
|
|
17836
|
+
left: x_small$1,
|
|
17837
|
+
right: x_small$1
|
|
17838
|
+
},
|
|
17839
|
+
clickbound: {
|
|
17840
|
+
height: compactClickboundSize$1
|
|
17681
17841
|
},
|
|
17682
17842
|
states: {
|
|
17683
17843
|
focus: {
|
|
@@ -17714,14 +17874,21 @@
|
|
|
17714
17874
|
}).withConfig({
|
|
17715
17875
|
displayName: "Input",
|
|
17716
17876
|
componentId: "sc-rqj7qf-1"
|
|
17717
|
-
})(["
|
|
17718
|
-
var theme = _ref3.theme
|
|
17877
|
+
})(["--scale:", ";appearance:none;width:100%;height:100%;margin:0;grid-area:input;transform:scale(var(--scale));cursor:", ";&:focus{outline:none;}&[data-focus-visible-added]:focus + svg{", "}&:not(:checked) ~ svg path[name='checked']{display:none;}&:not(:checked) ~ svg path[name='not-checked']{display:inline;}&:checked ~ svg path[name='not-checked']{display:none;}&:checked ~ svg path[name='checked']{display:inline;}"], function (_ref3) {
|
|
17878
|
+
var theme = _ref3.theme,
|
|
17879
|
+
iconSize = _ref3.iconSize;
|
|
17880
|
+
return parseFloat(theme.clickbound.height) / iconSize;
|
|
17881
|
+
}, function (_ref4) {
|
|
17882
|
+
var disabled = _ref4.disabled;
|
|
17883
|
+
return disabled ? 'not-allowed' : 'pointer';
|
|
17884
|
+
}, function (_ref5) {
|
|
17885
|
+
var theme = _ref5.theme;
|
|
17719
17886
|
return outlineTemplate(theme.states.focus.outline);
|
|
17720
17887
|
});
|
|
17721
|
-
var Svg$1 = styled__default['default'].svg.attrs(function (
|
|
17722
|
-
var height =
|
|
17723
|
-
width =
|
|
17724
|
-
fill =
|
|
17888
|
+
var Svg$1 = styled__default['default'].svg.attrs(function (_ref6) {
|
|
17889
|
+
var height = _ref6.height,
|
|
17890
|
+
width = _ref6.width,
|
|
17891
|
+
fill = _ref6.fill;
|
|
17725
17892
|
return {
|
|
17726
17893
|
name: null,
|
|
17727
17894
|
xmlns: 'http://www.w3.org/2000/svg',
|
|
@@ -17732,15 +17899,15 @@
|
|
|
17732
17899
|
}).withConfig({
|
|
17733
17900
|
displayName: "Input__Svg",
|
|
17734
17901
|
componentId: "sc-rqj7qf-2"
|
|
17735
|
-
})([""]);
|
|
17902
|
+
})(["grid-area:input;pointer-events:none;"]);
|
|
17736
17903
|
var InputWrapper$1 = styled__default['default'].span.withConfig({
|
|
17737
17904
|
displayName: "Input__InputWrapper",
|
|
17738
17905
|
componentId: "sc-rqj7qf-3"
|
|
17739
|
-
})(["display:inline-
|
|
17740
|
-
var theme =
|
|
17906
|
+
})(["display:inline-grid;grid:[input] 1fr / [input] 1fr;border-radius:50%;", " @media (hover:hover) and (pointer:fine){&:hover{background-color:", ";}}"], function (_ref7) {
|
|
17907
|
+
var theme = _ref7.theme;
|
|
17741
17908
|
return spacingsTemplate(theme.spacings);
|
|
17742
|
-
}, function (
|
|
17743
|
-
var disabled =
|
|
17909
|
+
}, function (_ref8) {
|
|
17910
|
+
var disabled = _ref8.disabled;
|
|
17744
17911
|
return disabled ? 'transparent' : checkbox.states.hover.background;
|
|
17745
17912
|
});
|
|
17746
17913
|
var CheckboxInput = /*#__PURE__*/React.forwardRef(function CheckboxInput(_a, ref) {
|
|
@@ -17754,7 +17921,7 @@
|
|
|
17754
17921
|
|
|
17755
17922
|
var token = useToken({
|
|
17756
17923
|
density: density
|
|
17757
|
-
}, checkbox)
|
|
17924
|
+
}, checkbox);
|
|
17758
17925
|
var iconSize = 24;
|
|
17759
17926
|
var fill = disabled ? checkbox.states.disabled.background : checkbox.background;
|
|
17760
17927
|
var inputWrapperProps = {
|
|
@@ -17768,7 +17935,9 @@
|
|
|
17768
17935
|
theme: token
|
|
17769
17936
|
}, {
|
|
17770
17937
|
children: jsxRuntime.exports.jsxs(InputWrapper$1, Object.assign({}, inputWrapperProps, {
|
|
17771
|
-
children: [jsxRuntime.exports.jsx(Input$3, Object.assign({
|
|
17938
|
+
children: [jsxRuntime.exports.jsx(Input$3, Object.assign({
|
|
17939
|
+
iconSize: iconSize
|
|
17940
|
+
}, inputProps), void 0), indeterminate ? jsxRuntime.exports.jsx(Svg$1, Object.assign({
|
|
17772
17941
|
width: iconSize,
|
|
17773
17942
|
height: iconSize,
|
|
17774
17943
|
viewBox: "0 0 ".concat(iconSize, " ").concat(iconSize),
|
|
@@ -17833,7 +18002,7 @@
|
|
|
17833
18002
|
|
|
17834
18003
|
var token = useToken({
|
|
17835
18004
|
density: density
|
|
17836
|
-
}, multiSelect)
|
|
18005
|
+
}, multiSelect);
|
|
17837
18006
|
var multipleSelectionProps = {
|
|
17838
18007
|
initialSelectedItems: initialSelectedItems,
|
|
17839
18008
|
onSelectedItemsChange: function onSelectedItemsChange(changes) {
|
|
@@ -17853,7 +18022,8 @@
|
|
|
17853
18022
|
getDropdownProps = _useMultipleSelection.getDropdownProps,
|
|
17854
18023
|
addSelectedItem = _useMultipleSelection.addSelectedItem,
|
|
17855
18024
|
removeSelectedItem = _useMultipleSelection.removeSelectedItem,
|
|
17856
|
-
selectedItems = _useMultipleSelection.selectedItems
|
|
18025
|
+
selectedItems = _useMultipleSelection.selectedItems,
|
|
18026
|
+
reset = _useMultipleSelection.reset;
|
|
17857
18027
|
|
|
17858
18028
|
var getFilteredItems = function getFilteredItems(items) {
|
|
17859
18029
|
return items.filter(function (item) {
|
|
@@ -17916,9 +18086,17 @@
|
|
|
17916
18086
|
getInputProps = _useCombobox.getInputProps,
|
|
17917
18087
|
getComboboxProps = _useCombobox.getComboboxProps,
|
|
17918
18088
|
highlightedIndex = _useCombobox.highlightedIndex,
|
|
17919
|
-
getItemProps = _useCombobox.getItemProps
|
|
18089
|
+
getItemProps = _useCombobox.getItemProps,
|
|
18090
|
+
openMenu = _useCombobox.openMenu;
|
|
17920
18091
|
|
|
17921
18092
|
var placeholderText = items.length > 0 ? "".concat(selectedItems.length, "/").concat(items.length, " selected") : '';
|
|
18093
|
+
|
|
18094
|
+
var openSelect = function openSelect() {
|
|
18095
|
+
if (!isOpen && !(disabled || readOnly)) {
|
|
18096
|
+
openMenu();
|
|
18097
|
+
}
|
|
18098
|
+
};
|
|
18099
|
+
|
|
17922
18100
|
return jsxRuntime.exports.jsx(styled.ThemeProvider, Object.assign({
|
|
17923
18101
|
theme: token
|
|
17924
18102
|
}, {
|
|
@@ -17936,14 +18114,29 @@
|
|
|
17936
18114
|
disabled: disabled
|
|
17937
18115
|
})), {
|
|
17938
18116
|
placeholder: placeholderText,
|
|
17939
|
-
readOnly: readOnly
|
|
17940
|
-
|
|
18117
|
+
readOnly: readOnly,
|
|
18118
|
+
onFocus: openSelect
|
|
18119
|
+
}, other), void 0), Boolean(selectedItems.length || inputValue) && jsxRuntime.exports.jsx(StyledButton, Object.assign({
|
|
18120
|
+
variant: "ghost_icon",
|
|
18121
|
+
disabled: disabled || readOnly,
|
|
18122
|
+
"aria-label": 'clear options',
|
|
18123
|
+
title: "clear",
|
|
18124
|
+
onClick: reset,
|
|
18125
|
+
style: {
|
|
18126
|
+
right: 32
|
|
18127
|
+
}
|
|
18128
|
+
}, {
|
|
18129
|
+
children: jsxRuntime.exports.jsx(Icon$1, {
|
|
18130
|
+
data: close,
|
|
18131
|
+
size: 16
|
|
18132
|
+
}, void 0)
|
|
18133
|
+
}), void 0), jsxRuntime.exports.jsx(StyledButton, Object.assign({
|
|
17941
18134
|
variant: "ghost_icon"
|
|
17942
18135
|
}, getToggleButtonProps({
|
|
17943
18136
|
disabled: disabled || readOnly
|
|
17944
18137
|
}), {
|
|
17945
18138
|
"aria-label": 'toggle options',
|
|
17946
|
-
|
|
18139
|
+
title: "open"
|
|
17947
18140
|
}, {
|
|
17948
18141
|
children: jsxRuntime.exports.jsx(Icon$1, {
|
|
17949
18142
|
data: isOpen ? arrow_drop_up : arrow_drop_down
|
|
@@ -17958,8 +18151,6 @@
|
|
|
17958
18151
|
index: index,
|
|
17959
18152
|
disabled: disabled
|
|
17960
18153
|
}), {
|
|
17961
|
-
density: density
|
|
17962
|
-
}, {
|
|
17963
18154
|
children: [jsxRuntime.exports.jsx(CheckboxInput, {
|
|
17964
18155
|
checked: selectedItems.includes(item),
|
|
17965
18156
|
value: item,
|
|
@@ -17976,8 +18167,8 @@
|
|
|
17976
18167
|
}), void 0);
|
|
17977
18168
|
});
|
|
17978
18169
|
|
|
17979
|
-
var
|
|
17980
|
-
displayName: "
|
|
18170
|
+
var StyledLabel$2 = styled__default['default'].label.withConfig({
|
|
18171
|
+
displayName: "Checkbox__StyledLabel",
|
|
17981
18172
|
componentId: "sc-yg6l8h-0"
|
|
17982
18173
|
})(["display:inline-flex;align-items:center;cursor:", ";"], function (_ref) {
|
|
17983
18174
|
var disabled = _ref.disabled;
|
|
@@ -17995,7 +18186,7 @@
|
|
|
17995
18186
|
className = _a.className,
|
|
17996
18187
|
rest = __rest(_a, ["label", "disabled", "indeterminate", "className"]);
|
|
17997
18188
|
|
|
17998
|
-
return jsxRuntime.exports.jsxs(
|
|
18189
|
+
return label ? jsxRuntime.exports.jsxs(StyledLabel$2, Object.assign({
|
|
17999
18190
|
disabled: disabled,
|
|
18000
18191
|
className: className
|
|
18001
18192
|
}, {
|
|
@@ -18003,9 +18194,13 @@
|
|
|
18003
18194
|
disabled: disabled,
|
|
18004
18195
|
ref: ref,
|
|
18005
18196
|
indeterminate: indeterminate
|
|
18006
|
-
}), void 0),
|
|
18197
|
+
}), void 0), jsxRuntime.exports.jsx(LabelText$1, {
|
|
18007
18198
|
children: label
|
|
18008
18199
|
}, void 0)]
|
|
18200
|
+
}), void 0) : jsxRuntime.exports.jsx(CheckboxInput, Object.assign({}, rest, {
|
|
18201
|
+
disabled: disabled,
|
|
18202
|
+
ref: ref,
|
|
18203
|
+
indeterminate: indeterminate
|
|
18009
18204
|
}), void 0);
|
|
18010
18205
|
});
|
|
18011
18206
|
Checkbox.displayName = 'Checkbox';
|
|
@@ -18016,15 +18211,23 @@
|
|
|
18016
18211
|
focusOutlineColor$1 = _tokens$colors$intera$1.focus.rgba,
|
|
18017
18212
|
disabledText = _tokens$colors$intera$1.disabled__text.rgba,
|
|
18018
18213
|
labelTypography$1 = tokens$6.typography.navigation.menu_title,
|
|
18019
|
-
|
|
18214
|
+
_tokens$spacings$comf = tokens$6.spacings.comfortable,
|
|
18215
|
+
medium_small$1 = _tokens$spacings$comf.medium_small,
|
|
18216
|
+
x_small = _tokens$spacings$comf.x_small,
|
|
18217
|
+
_tokens$clickbounds = tokens$6.clickbounds,
|
|
18218
|
+
clicboundSize = _tokens$clickbounds.default__base,
|
|
18219
|
+
compactClickboundSize = _tokens$clickbounds.compact__standard;
|
|
18020
18220
|
var comfortable$1 = {
|
|
18021
18221
|
background: primaryColor,
|
|
18022
18222
|
typography: labelTypography$1,
|
|
18023
18223
|
spacings: {
|
|
18024
|
-
bottom: medium_small,
|
|
18025
|
-
top: medium_small,
|
|
18026
|
-
left: medium_small,
|
|
18027
|
-
right: medium_small
|
|
18224
|
+
bottom: medium_small$1,
|
|
18225
|
+
top: medium_small$1,
|
|
18226
|
+
left: medium_small$1,
|
|
18227
|
+
right: medium_small$1
|
|
18228
|
+
},
|
|
18229
|
+
clickbound: {
|
|
18230
|
+
height: clicboundSize
|
|
18028
18231
|
},
|
|
18029
18232
|
states: {
|
|
18030
18233
|
hover: {
|
|
@@ -18039,7 +18242,38 @@
|
|
|
18039
18242
|
style: 'dashed',
|
|
18040
18243
|
width: '1px',
|
|
18041
18244
|
color: focusOutlineColor$1,
|
|
18042
|
-
offset: '
|
|
18245
|
+
offset: '11px'
|
|
18246
|
+
}
|
|
18247
|
+
}
|
|
18248
|
+
},
|
|
18249
|
+
entities: {
|
|
18250
|
+
label: {
|
|
18251
|
+
spacings: {
|
|
18252
|
+
left: medium_small$1
|
|
18253
|
+
}
|
|
18254
|
+
}
|
|
18255
|
+
},
|
|
18256
|
+
modes: {
|
|
18257
|
+
compact: {
|
|
18258
|
+
spacings: {
|
|
18259
|
+
bottom: x_small,
|
|
18260
|
+
top: x_small,
|
|
18261
|
+
left: x_small,
|
|
18262
|
+
right: x_small
|
|
18263
|
+
},
|
|
18264
|
+
clickbound: {
|
|
18265
|
+
height: compactClickboundSize
|
|
18266
|
+
},
|
|
18267
|
+
states: {
|
|
18268
|
+
focus: {
|
|
18269
|
+
outline: {
|
|
18270
|
+
type: 'outline',
|
|
18271
|
+
style: 'dashed',
|
|
18272
|
+
width: '1px',
|
|
18273
|
+
color: focusOutlineColor$1,
|
|
18274
|
+
offset: '3px'
|
|
18275
|
+
}
|
|
18276
|
+
}
|
|
18043
18277
|
}
|
|
18044
18278
|
}
|
|
18045
18279
|
}
|
|
@@ -18054,16 +18288,26 @@
|
|
|
18054
18288
|
}).withConfig({
|
|
18055
18289
|
displayName: "Radio__Input",
|
|
18056
18290
|
componentId: "sc-we59oz-0"
|
|
18057
|
-
})(["
|
|
18058
|
-
|
|
18059
|
-
|
|
18291
|
+
})(["--scale:", ";appearance:none;width:100%;height:100%;margin:0;grid-area:input;transform:scale(var(--scale));cursor:", ";&:focus{outline:none;}&[data-focus-visible-added]:focus + svg{", "}&:not(:checked) ~ svg path[name='selected']{display:none;}&:not(:checked) ~ svg path[name='unselected']{display:inline;}&:checked ~ svg path[name='unselected']{display:none;}&:checked ~ svg path[name='selected']{display:inline;}"], function (_ref2) {
|
|
18292
|
+
var theme = _ref2.theme,
|
|
18293
|
+
iconSize = _ref2.iconSize;
|
|
18294
|
+
return parseFloat(theme.clickbound.height) / iconSize;
|
|
18295
|
+
}, function (_ref3) {
|
|
18296
|
+
var disabled = _ref3.disabled;
|
|
18297
|
+
return disabled ? 'not-allowed' : 'pointer';
|
|
18298
|
+
}, function (_ref4) {
|
|
18299
|
+
var theme = _ref4.theme;
|
|
18300
|
+
return outlineTemplate(theme.states.focus.outline);
|
|
18301
|
+
});
|
|
18302
|
+
var StyledLabel$1 = styled__default['default'].label.withConfig({
|
|
18303
|
+
displayName: "Radio__StyledLabel",
|
|
18060
18304
|
componentId: "sc-we59oz-1"
|
|
18061
|
-
})(["display:inline-flex;align-items:center;cursor:", ";"], function (
|
|
18062
|
-
var disabled =
|
|
18305
|
+
})(["display:inline-flex;align-items:center;cursor:", ";"], function (_ref5) {
|
|
18306
|
+
var disabled = _ref5.disabled;
|
|
18063
18307
|
return disabled ? 'not-allowed' : 'pointer';
|
|
18064
18308
|
});
|
|
18065
|
-
var StyledPath = styled__default['default'].path.attrs(function (
|
|
18066
|
-
var icon =
|
|
18309
|
+
var StyledPath = styled__default['default'].path.attrs(function (_ref6) {
|
|
18310
|
+
var icon = _ref6.icon;
|
|
18067
18311
|
return {
|
|
18068
18312
|
fillRule: 'evenodd',
|
|
18069
18313
|
clipRule: 'evenodd',
|
|
@@ -18073,10 +18317,10 @@
|
|
|
18073
18317
|
displayName: "Radio__StyledPath",
|
|
18074
18318
|
componentId: "sc-we59oz-2"
|
|
18075
18319
|
})([""]);
|
|
18076
|
-
var Svg = styled__default['default'].svg.attrs(function (
|
|
18077
|
-
var height =
|
|
18078
|
-
width =
|
|
18079
|
-
fill =
|
|
18320
|
+
var Svg = styled__default['default'].svg.attrs(function (_ref7) {
|
|
18321
|
+
var height = _ref7.height,
|
|
18322
|
+
width = _ref7.width,
|
|
18323
|
+
fill = _ref7.fill;
|
|
18080
18324
|
return {
|
|
18081
18325
|
name: null,
|
|
18082
18326
|
xmlns: 'http://www.w3.org/2000/svg',
|
|
@@ -18087,16 +18331,22 @@
|
|
|
18087
18331
|
}).withConfig({
|
|
18088
18332
|
displayName: "Radio__Svg",
|
|
18089
18333
|
componentId: "sc-we59oz-3"
|
|
18090
|
-
})([""]);
|
|
18334
|
+
})(["grid-area:input;pointer-events:none;"]);
|
|
18091
18335
|
var LabelText = styled__default['default'].span.withConfig({
|
|
18092
18336
|
displayName: "Radio__LabelText",
|
|
18093
18337
|
componentId: "sc-we59oz-4"
|
|
18094
|
-
})(["", ""], typographyTemplate(comfortable$1.typography));
|
|
18338
|
+
})(["", " ", ""], typographyTemplate(comfortable$1.typography), spacingsTemplate(comfortable$1.entities.label.spacings));
|
|
18095
18339
|
var InputWrapper = styled__default['default'].span.withConfig({
|
|
18096
18340
|
displayName: "Radio__InputWrapper",
|
|
18097
18341
|
componentId: "sc-we59oz-5"
|
|
18098
|
-
})(["", " display:inline-
|
|
18099
|
-
var
|
|
18342
|
+
})(["", " display:inline-grid;grid:[input] 1fr / [input] 1fr;border-radius:50%;cursor:", ";@media (hover:hover) and (pointer:fine){&:hover{background-color:", ";}}"], function (_ref8) {
|
|
18343
|
+
var theme = _ref8.theme;
|
|
18344
|
+
return spacingsTemplate(theme.spacings);
|
|
18345
|
+
}, function (_ref9) {
|
|
18346
|
+
var disabled = _ref9.disabled;
|
|
18347
|
+
return disabled ? 'not-allowed' : 'pointer';
|
|
18348
|
+
}, function (_ref10) {
|
|
18349
|
+
var disabled = _ref10.disabled;
|
|
18100
18350
|
return disabled ? 'transparent' : comfortable$1.states.hover.background;
|
|
18101
18351
|
});
|
|
18102
18352
|
var Radio = /*#__PURE__*/React.forwardRef(function Radio(_a, ref) {
|
|
@@ -18106,36 +18356,58 @@
|
|
|
18106
18356
|
className = _a.className,
|
|
18107
18357
|
rest = __rest(_a, ["label", "disabled", "className"]);
|
|
18108
18358
|
|
|
18359
|
+
var _useEds = useEds(),
|
|
18360
|
+
density = _useEds.density;
|
|
18361
|
+
|
|
18362
|
+
var token = useToken({
|
|
18363
|
+
density: density
|
|
18364
|
+
}, comfortable$1);
|
|
18109
18365
|
var iconSize = 24;
|
|
18110
18366
|
var fill = disabled ? comfortable$1.states.disabled.background : comfortable$1.background;
|
|
18111
|
-
|
|
18112
|
-
|
|
18113
|
-
|
|
18367
|
+
var renderSVG = React.useMemo(function () {
|
|
18368
|
+
return jsxRuntime.exports.jsxs(Svg, Object.assign({
|
|
18369
|
+
width: iconSize,
|
|
18370
|
+
height: iconSize,
|
|
18371
|
+
viewBox: "0 0 ".concat(iconSize, " ").concat(iconSize),
|
|
18372
|
+
fill: fill,
|
|
18373
|
+
"aria-hidden": true
|
|
18374
|
+
}, {
|
|
18375
|
+
children: [jsxRuntime.exports.jsx(StyledPath, {
|
|
18376
|
+
icon: radio_button_selected,
|
|
18377
|
+
name: "selected"
|
|
18378
|
+
}, void 0), jsxRuntime.exports.jsx(StyledPath, {
|
|
18379
|
+
icon: radio_button_unselected,
|
|
18380
|
+
name: "unselected"
|
|
18381
|
+
}, void 0)]
|
|
18382
|
+
}), void 0);
|
|
18383
|
+
}, [fill]);
|
|
18384
|
+
return jsxRuntime.exports.jsx(styled.ThemeProvider, Object.assign({
|
|
18385
|
+
theme: token
|
|
18114
18386
|
}, {
|
|
18115
|
-
children:
|
|
18387
|
+
children: label ? jsxRuntime.exports.jsxs(StyledLabel$1, Object.assign({
|
|
18388
|
+
disabled: disabled,
|
|
18389
|
+
className: className
|
|
18390
|
+
}, {
|
|
18391
|
+
children: [jsxRuntime.exports.jsxs(InputWrapper, Object.assign({
|
|
18392
|
+
disabled: disabled
|
|
18393
|
+
}, {
|
|
18394
|
+
children: [jsxRuntime.exports.jsx(Input$2, Object.assign({}, rest, {
|
|
18395
|
+
ref: ref,
|
|
18396
|
+
disabled: disabled,
|
|
18397
|
+
iconSize: iconSize
|
|
18398
|
+
}), void 0), renderSVG]
|
|
18399
|
+
}), void 0), jsxRuntime.exports.jsx(LabelText, {
|
|
18400
|
+
children: label
|
|
18401
|
+
}, void 0)]
|
|
18402
|
+
}), void 0) : jsxRuntime.exports.jsxs(InputWrapper, Object.assign({
|
|
18116
18403
|
disabled: disabled
|
|
18117
18404
|
}, {
|
|
18118
18405
|
children: [jsxRuntime.exports.jsx(Input$2, Object.assign({}, rest, {
|
|
18119
18406
|
ref: ref,
|
|
18120
|
-
disabled: disabled
|
|
18121
|
-
|
|
18122
|
-
|
|
18123
|
-
|
|
18124
|
-
viewBox: "0 0 ".concat(iconSize, " ").concat(iconSize),
|
|
18125
|
-
fill: fill,
|
|
18126
|
-
"aria-hidden": true
|
|
18127
|
-
}, {
|
|
18128
|
-
children: [jsxRuntime.exports.jsx(StyledPath, {
|
|
18129
|
-
icon: radio_button_selected,
|
|
18130
|
-
name: "selected"
|
|
18131
|
-
}, void 0), jsxRuntime.exports.jsx(StyledPath, {
|
|
18132
|
-
icon: radio_button_unselected,
|
|
18133
|
-
name: "unselected"
|
|
18134
|
-
}, void 0)]
|
|
18135
|
-
}), void 0)]
|
|
18136
|
-
}), void 0), label && jsxRuntime.exports.jsx(LabelText, {
|
|
18137
|
-
children: label
|
|
18138
|
-
}, void 0)]
|
|
18407
|
+
disabled: disabled,
|
|
18408
|
+
iconSize: iconSize
|
|
18409
|
+
}), void 0), renderSVG]
|
|
18410
|
+
}), void 0)
|
|
18139
18411
|
}), void 0);
|
|
18140
18412
|
});
|
|
18141
18413
|
Radio.displayName = 'Radio';
|
|
@@ -18151,7 +18423,7 @@
|
|
|
18151
18423
|
|
|
18152
18424
|
var _a, _b;
|
|
18153
18425
|
|
|
18154
|
-
return styled.css(["width:", ";height:", ";border-radius:50%;position:relative;&::before{position:absolute;top:0;left:0;width:auto;min-height:auto;content:'';}&::after{position:absolute;top:-", ";left:-", ";width:", ";height:", ";content:'';}"], width, height, (_a = clickbound === null || clickbound === void 0 ? void 0 : clickbound.offset) === null || _a === void 0 ? void 0 : _a.top, (_b = clickbound === null || clickbound === void 0 ? void 0 : clickbound.offset) === null || _b === void 0 ? void 0 : _b.left, clickbound === null || clickbound === void 0 ? void 0 : clickbound.width, clickbound === null || clickbound === void 0 ? void 0 : clickbound.height);
|
|
18426
|
+
return styled.css(["width:", ";height:", ";border-radius:50%;position:relative;grid-area:input;pointer-events:none;&::before{position:absolute;top:0;left:0;width:auto;min-height:auto;content:'';}&::after{position:absolute;top:-", ";left:-", ";width:", ";height:", ";content:'';}"], width, height, (_a = clickbound === null || clickbound === void 0 ? void 0 : clickbound.offset) === null || _a === void 0 ? void 0 : _a.top, (_b = clickbound === null || clickbound === void 0 ? void 0 : clickbound.offset) === null || _b === void 0 ? void 0 : _b.left, clickbound === null || clickbound === void 0 ? void 0 : clickbound.width, clickbound === null || clickbound === void 0 ? void 0 : clickbound.height);
|
|
18155
18427
|
});
|
|
18156
18428
|
var BaseInput = styled__default['default'].input.attrs(function (_ref2) {
|
|
18157
18429
|
var _ref2$type = _ref2.type,
|
|
@@ -18163,9 +18435,14 @@
|
|
|
18163
18435
|
displayName: "Switchstyles__BaseInput",
|
|
18164
18436
|
componentId: "sc-x39lde-1"
|
|
18165
18437
|
})(function (_ref3) {
|
|
18166
|
-
var
|
|
18167
|
-
|
|
18438
|
+
var disabled = _ref3.disabled,
|
|
18439
|
+
theme = _ref3.theme;
|
|
18440
|
+
return styled.css(["appearance:none;width:100%;height:100%;grid-area:input;margin:0;cursor:", ";&:focus{outline:none;}&[data-focus-visible-added]:focus + span{", "}"], disabled ? 'not-allowed' : 'pointer', outlineTemplate(theme.states.focus.outline));
|
|
18168
18441
|
});
|
|
18442
|
+
var GridWrapper = styled__default['default'].span.withConfig({
|
|
18443
|
+
displayName: "Switchstyles__GridWrapper",
|
|
18444
|
+
componentId: "sc-x39lde-2"
|
|
18445
|
+
})(["display:inline-grid;vertical-align:middle;grid:[input] 1fr / [input] 1fr;"]);
|
|
18169
18446
|
|
|
18170
18447
|
var Wrapper$1 = styled__default['default'](BaseInputWrapper).withConfig({
|
|
18171
18448
|
displayName: "SwitchSmall__Wrapper",
|
|
@@ -18208,7 +18485,7 @@
|
|
|
18208
18485
|
var disabled = _a.disabled,
|
|
18209
18486
|
rest = __rest(_a, ["disabled"]);
|
|
18210
18487
|
|
|
18211
|
-
return jsxRuntime.exports.jsxs(
|
|
18488
|
+
return jsxRuntime.exports.jsxs(GridWrapper, {
|
|
18212
18489
|
children: [jsxRuntime.exports.jsx(Input$1, Object.assign({}, rest, {
|
|
18213
18490
|
ref: ref,
|
|
18214
18491
|
disabled: disabled
|
|
@@ -18267,7 +18544,7 @@
|
|
|
18267
18544
|
var disabled = _a.disabled,
|
|
18268
18545
|
rest = __rest(_a, ["disabled"]);
|
|
18269
18546
|
|
|
18270
|
-
return jsxRuntime.exports.jsxs(
|
|
18547
|
+
return jsxRuntime.exports.jsxs(GridWrapper, {
|
|
18271
18548
|
children: [jsxRuntime.exports.jsx(Input, Object.assign({}, rest, {
|
|
18272
18549
|
ref: ref,
|
|
18273
18550
|
disabled: disabled
|
|
@@ -18298,7 +18575,7 @@
|
|
|
18298
18575
|
labelTypography = tokens$6.typography.navigation.menu_title,
|
|
18299
18576
|
clickbounds = tokens$6.clickbounds,
|
|
18300
18577
|
boxShadow = tokens$6.elevation.raised,
|
|
18301
|
-
|
|
18578
|
+
medium_small = tokens$6.spacings.comfortable.medium_small,
|
|
18302
18579
|
_tokens$shape = tokens$6.shape,
|
|
18303
18580
|
circle = _tokens$shape.circle,
|
|
18304
18581
|
compactIconButton = _tokens$shape._modes.compact.icon_button;
|
|
@@ -18317,7 +18594,7 @@
|
|
|
18317
18594
|
entities: {
|
|
18318
18595
|
label: {
|
|
18319
18596
|
spacings: {
|
|
18320
|
-
left:
|
|
18597
|
+
left: medium_small
|
|
18321
18598
|
}
|
|
18322
18599
|
},
|
|
18323
18600
|
track: {
|
|
@@ -18394,8 +18671,7 @@
|
|
|
18394
18671
|
width: '1px',
|
|
18395
18672
|
type: 'outline',
|
|
18396
18673
|
style: 'dashed',
|
|
18397
|
-
color: focusOutlineColor
|
|
18398
|
-
offset: '2px'
|
|
18674
|
+
color: focusOutlineColor
|
|
18399
18675
|
}
|
|
18400
18676
|
},
|
|
18401
18677
|
hover: {
|
|
@@ -18409,8 +18685,8 @@
|
|
|
18409
18685
|
}
|
|
18410
18686
|
};
|
|
18411
18687
|
|
|
18412
|
-
var
|
|
18413
|
-
displayName: "
|
|
18688
|
+
var StyledLabel = styled__default['default'].label.withConfig({
|
|
18689
|
+
displayName: "Switch__StyledLabel",
|
|
18414
18690
|
componentId: "sc-sdaahx-0"
|
|
18415
18691
|
})(["cursor:", ";border:none;background-color:transparent;vertical-align:middle;display:inline-flex;align-items:center;position:relative;"], function (_ref) {
|
|
18416
18692
|
var isDisabled = _ref.isDisabled;
|
|
@@ -18438,11 +18714,11 @@
|
|
|
18438
18714
|
var overrideDensity = size === 'small' ? 'compact' : density;
|
|
18439
18715
|
var token = useToken({
|
|
18440
18716
|
density: overrideDensity
|
|
18441
|
-
}, comfortable)
|
|
18717
|
+
}, comfortable);
|
|
18442
18718
|
return jsxRuntime.exports.jsx(styled.ThemeProvider, Object.assign({
|
|
18443
18719
|
theme: token
|
|
18444
18720
|
}, {
|
|
18445
|
-
children: jsxRuntime.exports.jsxs(
|
|
18721
|
+
children: label ? jsxRuntime.exports.jsxs(StyledLabel, Object.assign({
|
|
18446
18722
|
isDisabled: disabled,
|
|
18447
18723
|
className: className
|
|
18448
18724
|
}, {
|
|
@@ -18457,6 +18733,14 @@
|
|
|
18457
18733
|
}), void 0), label && jsxRuntime.exports.jsx(Label, {
|
|
18458
18734
|
children: label
|
|
18459
18735
|
}, void 0)]
|
|
18736
|
+
}), void 0) : size === 'small' ? jsxRuntime.exports.jsx(SwitchSmall, Object.assign({
|
|
18737
|
+
disabled: disabled
|
|
18738
|
+
}, rest, {
|
|
18739
|
+
ref: ref
|
|
18740
|
+
}), void 0) : jsxRuntime.exports.jsx(SwitchDefault, Object.assign({
|
|
18741
|
+
disabled: disabled
|
|
18742
|
+
}, rest, {
|
|
18743
|
+
ref: ref
|
|
18460
18744
|
}), void 0)
|
|
18461
18745
|
}), void 0);
|
|
18462
18746
|
});
|