@equinor/eds-core-react 0.14.0 → 0.14.3
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 +288 -544
- package/dist/core-react.esm.js +289 -545
- package/dist/core-react.umd.js +288 -544
- package/dist/types/components/Accordion/Accordion.tokens.d.ts +1 -0
- package/dist/types/components/Pagination/Pagination.d.ts +2 -2
- package/dist/types/components/Switch/Switch.styles.d.ts +1 -0
- package/dist/types/hooks/index.d.ts +1 -0
- package/dist/types/hooks/useHideBodyScroll.d.ts +1 -0
- package/package.json +7 -10
package/dist/core-react.umd.js
CHANGED
|
@@ -394,7 +394,7 @@
|
|
|
394
394
|
*/
|
|
395
395
|
/* eslint-disable no-unused-vars */
|
|
396
396
|
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
397
|
-
var hasOwnProperty
|
|
397
|
+
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
398
398
|
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
|
|
399
399
|
|
|
400
400
|
function toObject(val) {
|
|
@@ -458,7 +458,7 @@
|
|
|
458
458
|
from = Object(arguments[s]);
|
|
459
459
|
|
|
460
460
|
for (var key in from) {
|
|
461
|
-
if (hasOwnProperty
|
|
461
|
+
if (hasOwnProperty.call(from, key)) {
|
|
462
462
|
to[key] = from[key];
|
|
463
463
|
}
|
|
464
464
|
}
|
|
@@ -2725,9 +2725,9 @@
|
|
|
2725
2725
|
buttonBorderRadius$2 = _tokens$shape$button.borderRadius,
|
|
2726
2726
|
compactButtonHeight = _tokens$shape$2._modes.compact.button.minHeight,
|
|
2727
2727
|
outline = tokens$6.interactions.focused,
|
|
2728
|
-
_tokens$clickbounds$
|
|
2729
|
-
clicboundHeight$1 = _tokens$clickbounds$
|
|
2730
|
-
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;
|
|
2731
2731
|
var button = {
|
|
2732
2732
|
background: 'transparent',
|
|
2733
2733
|
height: buttonHeight,
|
|
@@ -3234,9 +3234,9 @@
|
|
|
3234
3234
|
dangerColor = _tokens$colors$intera$g.danger__resting.rgba,
|
|
3235
3235
|
dangerHoverColor = _tokens$colors$intera$g.danger__hover.rgba,
|
|
3236
3236
|
dangerHoverAltColor = _tokens$colors$intera$g.danger__highlight.rgba,
|
|
3237
|
-
_tokens$clickbounds = tokens$6.clickbounds,
|
|
3238
|
-
clicboundHeight = _tokens$clickbounds.default__base,
|
|
3239
|
-
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,
|
|
3240
3240
|
shape$2 = tokens$6.shape;
|
|
3241
3241
|
var primary$6 = mergeDeepRight(button, {
|
|
3242
3242
|
height: shape$2.icon_button.minHeight,
|
|
@@ -5892,6 +5892,15 @@
|
|
|
5892
5892
|
}, [options, token]);
|
|
5893
5893
|
};
|
|
5894
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
|
+
|
|
5895
5904
|
var FullWidthCenterContent = styled__default['default'].span.withConfig({
|
|
5896
5905
|
displayName: "InnerFullWidth__FullWidthCenterContent",
|
|
5897
5906
|
componentId: "sc-qeawkb-0"
|
|
@@ -6005,7 +6014,7 @@
|
|
|
6005
6014
|
var focus = states.focus,
|
|
6006
6015
|
hover = states.hover,
|
|
6007
6016
|
disabled = states.disabled;
|
|
6008
|
-
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);
|
|
6009
6018
|
});
|
|
6010
6019
|
var Button = /*#__PURE__*/React.forwardRef(function Button(_a, ref) {
|
|
6011
6020
|
var _a$color = _a.color,
|
|
@@ -6027,7 +6036,7 @@
|
|
|
6027
6036
|
|
|
6028
6037
|
var token = useToken({
|
|
6029
6038
|
density: density
|
|
6030
|
-
}, getToken$1(variant, color))
|
|
6039
|
+
}, getToken$1(variant, color));
|
|
6031
6040
|
var as = href && !disabled ? 'a' : other.as ? other.as : 'button';
|
|
6032
6041
|
var type = href || other.as ? undefined : 'button';
|
|
6033
6042
|
tabIndex = disabled ? -1 : tabIndex;
|
|
@@ -6364,7 +6373,7 @@
|
|
|
6364
6373
|
|
|
6365
6374
|
var token = useToken({
|
|
6366
6375
|
density: density
|
|
6367
|
-
}, applyVariant(variant, tableCell))
|
|
6376
|
+
}, applyVariant(variant, tableCell));
|
|
6368
6377
|
return jsxRuntime.exports.jsx(styled.ThemeProvider, Object.assign({
|
|
6369
6378
|
theme: token
|
|
6370
6379
|
}, {
|
|
@@ -6495,7 +6504,7 @@
|
|
|
6495
6504
|
|
|
6496
6505
|
var token = useToken({
|
|
6497
6506
|
density: density
|
|
6498
|
-
}, token$5)
|
|
6507
|
+
}, token$5);
|
|
6499
6508
|
return jsxRuntime.exports.jsx(styled.ThemeProvider, Object.assign({
|
|
6500
6509
|
theme: token
|
|
6501
6510
|
}, {
|
|
@@ -6599,8 +6608,10 @@
|
|
|
6599
6608
|
|
|
6600
6609
|
return {
|
|
6601
6610
|
background: active ? (_a = token$3.states.active) === null || _a === void 0 ? void 0 : _a.background : null,
|
|
6602
|
-
':hover': {
|
|
6603
|
-
|
|
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
|
+
}
|
|
6604
6615
|
}
|
|
6605
6616
|
};
|
|
6606
6617
|
});
|
|
@@ -6968,7 +6979,7 @@
|
|
|
6968
6979
|
|
|
6969
6980
|
var token = useToken({
|
|
6970
6981
|
density: density
|
|
6971
|
-
}, inputVariant)
|
|
6982
|
+
}, inputVariant);
|
|
6972
6983
|
var inputProps = Object.assign({
|
|
6973
6984
|
ref: ref,
|
|
6974
6985
|
type: type,
|
|
@@ -7641,7 +7652,7 @@
|
|
|
7641
7652
|
|
|
7642
7653
|
var token = useToken({
|
|
7643
7654
|
density: density
|
|
7644
|
-
}, textfield$1)
|
|
7655
|
+
}, textfield$1);
|
|
7645
7656
|
return jsxRuntime.exports.jsx(styled.ThemeProvider, Object.assign({
|
|
7646
7657
|
theme: token
|
|
7647
7658
|
}, {
|
|
@@ -7817,348 +7828,16 @@
|
|
|
7817
7828
|
List$1.Item = ListItem$4;
|
|
7818
7829
|
List$1.Item.displayName = 'List.Item';
|
|
7819
7830
|
|
|
7820
|
-
/** Detect free variable `global` from Node.js. */
|
|
7821
|
-
|
|
7822
|
-
var freeGlobal$1 = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
|
|
7823
|
-
|
|
7824
|
-
var _freeGlobal = freeGlobal$1;
|
|
7825
|
-
|
|
7826
|
-
var freeGlobal = _freeGlobal;
|
|
7827
|
-
|
|
7828
|
-
/** Detect free variable `self`. */
|
|
7829
|
-
var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
|
|
7830
|
-
|
|
7831
|
-
/** Used as a reference to the global object. */
|
|
7832
|
-
var root$1 = freeGlobal || freeSelf || Function('return this')();
|
|
7833
|
-
|
|
7834
|
-
var _root = root$1;
|
|
7835
|
-
|
|
7836
|
-
var root = _root;
|
|
7837
|
-
|
|
7838
|
-
/** Built-in value references. */
|
|
7839
|
-
var Symbol$4 = root.Symbol;
|
|
7840
|
-
|
|
7841
|
-
var _Symbol = Symbol$4;
|
|
7842
|
-
|
|
7843
|
-
/**
|
|
7844
|
-
* A specialized version of `_.map` for arrays without support for iteratee
|
|
7845
|
-
* shorthands.
|
|
7846
|
-
*
|
|
7847
|
-
* @private
|
|
7848
|
-
* @param {Array} [array] The array to iterate over.
|
|
7849
|
-
* @param {Function} iteratee The function invoked per iteration.
|
|
7850
|
-
* @returns {Array} Returns the new mapped array.
|
|
7851
|
-
*/
|
|
7852
|
-
|
|
7853
|
-
function arrayMap$1(array, iteratee) {
|
|
7854
|
-
var index = -1,
|
|
7855
|
-
length = array == null ? 0 : array.length,
|
|
7856
|
-
result = Array(length);
|
|
7857
|
-
|
|
7858
|
-
while (++index < length) {
|
|
7859
|
-
result[index] = iteratee(array[index], index, array);
|
|
7860
|
-
}
|
|
7861
|
-
return result;
|
|
7862
|
-
}
|
|
7863
|
-
|
|
7864
|
-
var _arrayMap = arrayMap$1;
|
|
7865
|
-
|
|
7866
|
-
/**
|
|
7867
|
-
* Checks if `value` is classified as an `Array` object.
|
|
7868
|
-
*
|
|
7869
|
-
* @static
|
|
7870
|
-
* @memberOf _
|
|
7871
|
-
* @since 0.1.0
|
|
7872
|
-
* @category Lang
|
|
7873
|
-
* @param {*} value The value to check.
|
|
7874
|
-
* @returns {boolean} Returns `true` if `value` is an array, else `false`.
|
|
7875
|
-
* @example
|
|
7876
|
-
*
|
|
7877
|
-
* _.isArray([1, 2, 3]);
|
|
7878
|
-
* // => true
|
|
7879
|
-
*
|
|
7880
|
-
* _.isArray(document.body.children);
|
|
7881
|
-
* // => false
|
|
7882
|
-
*
|
|
7883
|
-
* _.isArray('abc');
|
|
7884
|
-
* // => false
|
|
7885
|
-
*
|
|
7886
|
-
* _.isArray(_.noop);
|
|
7887
|
-
* // => false
|
|
7888
|
-
*/
|
|
7889
|
-
|
|
7890
|
-
var isArray$1 = Array.isArray;
|
|
7891
|
-
|
|
7892
|
-
var isArray_1 = isArray$1;
|
|
7893
|
-
|
|
7894
|
-
var Symbol$3 = _Symbol;
|
|
7895
|
-
|
|
7896
|
-
/** Used for built-in method references. */
|
|
7897
|
-
var objectProto$1 = Object.prototype;
|
|
7898
|
-
|
|
7899
|
-
/** Used to check objects for own properties. */
|
|
7900
|
-
var hasOwnProperty = objectProto$1.hasOwnProperty;
|
|
7901
|
-
|
|
7902
|
-
/**
|
|
7903
|
-
* Used to resolve the
|
|
7904
|
-
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
7905
|
-
* of values.
|
|
7906
|
-
*/
|
|
7907
|
-
var nativeObjectToString$1 = objectProto$1.toString;
|
|
7908
|
-
|
|
7909
|
-
/** Built-in value references. */
|
|
7910
|
-
var symToStringTag$1 = Symbol$3 ? Symbol$3.toStringTag : undefined;
|
|
7911
|
-
|
|
7912
|
-
/**
|
|
7913
|
-
* A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
|
|
7914
|
-
*
|
|
7915
|
-
* @private
|
|
7916
|
-
* @param {*} value The value to query.
|
|
7917
|
-
* @returns {string} Returns the raw `toStringTag`.
|
|
7918
|
-
*/
|
|
7919
|
-
function getRawTag$1(value) {
|
|
7920
|
-
var isOwn = hasOwnProperty.call(value, symToStringTag$1),
|
|
7921
|
-
tag = value[symToStringTag$1];
|
|
7922
|
-
|
|
7923
|
-
try {
|
|
7924
|
-
value[symToStringTag$1] = undefined;
|
|
7925
|
-
var unmasked = true;
|
|
7926
|
-
} catch (e) {}
|
|
7927
|
-
|
|
7928
|
-
var result = nativeObjectToString$1.call(value);
|
|
7929
|
-
if (unmasked) {
|
|
7930
|
-
if (isOwn) {
|
|
7931
|
-
value[symToStringTag$1] = tag;
|
|
7932
|
-
} else {
|
|
7933
|
-
delete value[symToStringTag$1];
|
|
7934
|
-
}
|
|
7935
|
-
}
|
|
7936
|
-
return result;
|
|
7937
|
-
}
|
|
7938
|
-
|
|
7939
|
-
var _getRawTag = getRawTag$1;
|
|
7940
|
-
|
|
7941
|
-
/** Used for built-in method references. */
|
|
7942
|
-
|
|
7943
|
-
var objectProto = Object.prototype;
|
|
7944
|
-
|
|
7945
|
-
/**
|
|
7946
|
-
* Used to resolve the
|
|
7947
|
-
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
7948
|
-
* of values.
|
|
7949
|
-
*/
|
|
7950
|
-
var nativeObjectToString = objectProto.toString;
|
|
7951
|
-
|
|
7952
|
-
/**
|
|
7953
|
-
* Converts `value` to a string using `Object.prototype.toString`.
|
|
7954
|
-
*
|
|
7955
|
-
* @private
|
|
7956
|
-
* @param {*} value The value to convert.
|
|
7957
|
-
* @returns {string} Returns the converted string.
|
|
7958
|
-
*/
|
|
7959
|
-
function objectToString$1(value) {
|
|
7960
|
-
return nativeObjectToString.call(value);
|
|
7961
|
-
}
|
|
7962
|
-
|
|
7963
|
-
var _objectToString = objectToString$1;
|
|
7964
|
-
|
|
7965
|
-
var Symbol$2 = _Symbol,
|
|
7966
|
-
getRawTag = _getRawTag,
|
|
7967
|
-
objectToString = _objectToString;
|
|
7968
|
-
|
|
7969
|
-
/** `Object#toString` result references. */
|
|
7970
|
-
var nullTag = '[object Null]',
|
|
7971
|
-
undefinedTag = '[object Undefined]';
|
|
7972
|
-
|
|
7973
|
-
/** Built-in value references. */
|
|
7974
|
-
var symToStringTag = Symbol$2 ? Symbol$2.toStringTag : undefined;
|
|
7975
|
-
|
|
7976
|
-
/**
|
|
7977
|
-
* The base implementation of `getTag` without fallbacks for buggy environments.
|
|
7978
|
-
*
|
|
7979
|
-
* @private
|
|
7980
|
-
* @param {*} value The value to query.
|
|
7981
|
-
* @returns {string} Returns the `toStringTag`.
|
|
7982
|
-
*/
|
|
7983
|
-
function baseGetTag$1(value) {
|
|
7984
|
-
if (value == null) {
|
|
7985
|
-
return value === undefined ? undefinedTag : nullTag;
|
|
7986
|
-
}
|
|
7987
|
-
return (symToStringTag && symToStringTag in Object(value))
|
|
7988
|
-
? getRawTag(value)
|
|
7989
|
-
: objectToString(value);
|
|
7990
|
-
}
|
|
7991
|
-
|
|
7992
|
-
var _baseGetTag = baseGetTag$1;
|
|
7993
|
-
|
|
7994
|
-
/**
|
|
7995
|
-
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
7996
|
-
* and has a `typeof` result of "object".
|
|
7997
|
-
*
|
|
7998
|
-
* @static
|
|
7999
|
-
* @memberOf _
|
|
8000
|
-
* @since 4.0.0
|
|
8001
|
-
* @category Lang
|
|
8002
|
-
* @param {*} value The value to check.
|
|
8003
|
-
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
|
|
8004
|
-
* @example
|
|
8005
|
-
*
|
|
8006
|
-
* _.isObjectLike({});
|
|
8007
|
-
* // => true
|
|
8008
|
-
*
|
|
8009
|
-
* _.isObjectLike([1, 2, 3]);
|
|
8010
|
-
* // => true
|
|
8011
|
-
*
|
|
8012
|
-
* _.isObjectLike(_.noop);
|
|
8013
|
-
* // => false
|
|
8014
|
-
*
|
|
8015
|
-
* _.isObjectLike(null);
|
|
8016
|
-
* // => false
|
|
8017
|
-
*/
|
|
8018
|
-
|
|
8019
|
-
function isObjectLike$1(value) {
|
|
8020
|
-
return value != null && typeof value == 'object';
|
|
8021
|
-
}
|
|
8022
|
-
|
|
8023
|
-
var isObjectLike_1 = isObjectLike$1;
|
|
8024
|
-
|
|
8025
|
-
var baseGetTag = _baseGetTag,
|
|
8026
|
-
isObjectLike = isObjectLike_1;
|
|
8027
|
-
|
|
8028
|
-
/** `Object#toString` result references. */
|
|
8029
|
-
var symbolTag = '[object Symbol]';
|
|
8030
|
-
|
|
8031
|
-
/**
|
|
8032
|
-
* Checks if `value` is classified as a `Symbol` primitive or object.
|
|
8033
|
-
*
|
|
8034
|
-
* @static
|
|
8035
|
-
* @memberOf _
|
|
8036
|
-
* @since 4.0.0
|
|
8037
|
-
* @category Lang
|
|
8038
|
-
* @param {*} value The value to check.
|
|
8039
|
-
* @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
|
|
8040
|
-
* @example
|
|
8041
|
-
*
|
|
8042
|
-
* _.isSymbol(Symbol.iterator);
|
|
8043
|
-
* // => true
|
|
8044
|
-
*
|
|
8045
|
-
* _.isSymbol('abc');
|
|
8046
|
-
* // => false
|
|
8047
|
-
*/
|
|
8048
|
-
function isSymbol$1(value) {
|
|
8049
|
-
return typeof value == 'symbol' ||
|
|
8050
|
-
(isObjectLike(value) && baseGetTag(value) == symbolTag);
|
|
8051
|
-
}
|
|
8052
|
-
|
|
8053
|
-
var isSymbol_1 = isSymbol$1;
|
|
8054
|
-
|
|
8055
|
-
var Symbol$1 = _Symbol,
|
|
8056
|
-
arrayMap = _arrayMap,
|
|
8057
|
-
isArray = isArray_1,
|
|
8058
|
-
isSymbol = isSymbol_1;
|
|
8059
|
-
|
|
8060
|
-
/** Used as references for various `Number` constants. */
|
|
8061
|
-
var INFINITY = 1 / 0;
|
|
8062
|
-
|
|
8063
|
-
/** Used to convert symbols to primitives and strings. */
|
|
8064
|
-
var symbolProto = Symbol$1 ? Symbol$1.prototype : undefined,
|
|
8065
|
-
symbolToString = symbolProto ? symbolProto.toString : undefined;
|
|
8066
|
-
|
|
8067
|
-
/**
|
|
8068
|
-
* The base implementation of `_.toString` which doesn't convert nullish
|
|
8069
|
-
* values to empty strings.
|
|
8070
|
-
*
|
|
8071
|
-
* @private
|
|
8072
|
-
* @param {*} value The value to process.
|
|
8073
|
-
* @returns {string} Returns the string.
|
|
8074
|
-
*/
|
|
8075
|
-
function baseToString$1(value) {
|
|
8076
|
-
// Exit early for strings to avoid a performance hit in some environments.
|
|
8077
|
-
if (typeof value == 'string') {
|
|
8078
|
-
return value;
|
|
8079
|
-
}
|
|
8080
|
-
if (isArray(value)) {
|
|
8081
|
-
// Recursively convert values (susceptible to call stack limits).
|
|
8082
|
-
return arrayMap(value, baseToString$1) + '';
|
|
8083
|
-
}
|
|
8084
|
-
if (isSymbol(value)) {
|
|
8085
|
-
return symbolToString ? symbolToString.call(value) : '';
|
|
8086
|
-
}
|
|
8087
|
-
var result = (value + '');
|
|
8088
|
-
return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
|
|
8089
|
-
}
|
|
8090
|
-
|
|
8091
|
-
var _baseToString = baseToString$1;
|
|
8092
|
-
|
|
8093
|
-
var baseToString = _baseToString;
|
|
8094
|
-
|
|
8095
|
-
/**
|
|
8096
|
-
* Converts `value` to a string. An empty string is returned for `null`
|
|
8097
|
-
* and `undefined` values. The sign of `-0` is preserved.
|
|
8098
|
-
*
|
|
8099
|
-
* @static
|
|
8100
|
-
* @memberOf _
|
|
8101
|
-
* @since 4.0.0
|
|
8102
|
-
* @category Lang
|
|
8103
|
-
* @param {*} value The value to convert.
|
|
8104
|
-
* @returns {string} Returns the converted string.
|
|
8105
|
-
* @example
|
|
8106
|
-
*
|
|
8107
|
-
* _.toString(null);
|
|
8108
|
-
* // => ''
|
|
8109
|
-
*
|
|
8110
|
-
* _.toString(-0);
|
|
8111
|
-
* // => '-0'
|
|
8112
|
-
*
|
|
8113
|
-
* _.toString([1, 2, 3]);
|
|
8114
|
-
* // => '1,2,3'
|
|
8115
|
-
*/
|
|
8116
|
-
function toString$1(value) {
|
|
8117
|
-
return value == null ? '' : baseToString(value);
|
|
8118
|
-
}
|
|
8119
|
-
|
|
8120
|
-
var toString_1 = toString$1;
|
|
8121
|
-
|
|
8122
|
-
var toString = toString_1;
|
|
8123
|
-
|
|
8124
|
-
/** Used to generate unique IDs. */
|
|
8125
|
-
var idCounter$1 = 0;
|
|
8126
|
-
|
|
8127
|
-
/**
|
|
8128
|
-
* Generates a unique ID. If `prefix` is given, the ID is appended to it.
|
|
8129
|
-
*
|
|
8130
|
-
* @static
|
|
8131
|
-
* @since 0.1.0
|
|
8132
|
-
* @memberOf _
|
|
8133
|
-
* @category Util
|
|
8134
|
-
* @param {string} [prefix=''] The value to prefix the ID with.
|
|
8135
|
-
* @returns {string} Returns the unique ID.
|
|
8136
|
-
* @example
|
|
8137
|
-
*
|
|
8138
|
-
* _.uniqueId('contact_');
|
|
8139
|
-
* // => 'contact_104'
|
|
8140
|
-
*
|
|
8141
|
-
* _.uniqueId();
|
|
8142
|
-
* // => '105'
|
|
8143
|
-
*/
|
|
8144
|
-
function uniqueId(prefix) {
|
|
8145
|
-
var id = ++idCounter$1;
|
|
8146
|
-
return toString(prefix) + id;
|
|
8147
|
-
}
|
|
8148
|
-
|
|
8149
|
-
var uniqueId_1 = uniqueId;
|
|
8150
|
-
|
|
8151
7831
|
var Accordion$1 = /*#__PURE__*/React.forwardRef(function Accordion(_a, ref) {
|
|
8152
7832
|
var _a$headerLevel = _a.headerLevel,
|
|
8153
7833
|
headerLevel = _a$headerLevel === void 0 ? 'h2' : _a$headerLevel,
|
|
8154
7834
|
_a$chevronPosition = _a.chevronPosition,
|
|
8155
7835
|
chevronPosition = _a$chevronPosition === void 0 ? 'left' : _a$chevronPosition,
|
|
8156
7836
|
children = _a.children,
|
|
8157
|
-
|
|
7837
|
+
id = _a.id,
|
|
7838
|
+
props = __rest(_a, ["headerLevel", "chevronPosition", "children", "id"]);
|
|
8158
7839
|
|
|
8159
|
-
var accordionId =
|
|
8160
|
-
return uniqueId_1('accordion-');
|
|
8161
|
-
}, []);
|
|
7840
|
+
var accordionId = useId(id, 'accordion');
|
|
8162
7841
|
var AccordionItems = React.Children.map(children, function (child, index) {
|
|
8163
7842
|
if (!child) return null;
|
|
8164
7843
|
return /*#__PURE__*/React.cloneElement(child, {
|
|
@@ -8340,6 +8019,7 @@
|
|
|
8340
8019
|
disabledIconColor$1 = _tokens$colors$intera$b.disabled__fill.rgba,
|
|
8341
8020
|
disabledColor$2 = _tokens$colors$intera$b.disabled__text.rgba,
|
|
8342
8021
|
focusOutlineColor$6 = _tokens$colors$intera$b.focus.rgba,
|
|
8022
|
+
defaultIconColor = _tokens$colors$d.text.static_icons__default.rgba,
|
|
8343
8023
|
mediumSpacing = tokens$6.spacings.comfortable.medium;
|
|
8344
8024
|
var accordion = {
|
|
8345
8025
|
border: {
|
|
@@ -8397,6 +8077,11 @@
|
|
|
8397
8077
|
right: mediumSpacing,
|
|
8398
8078
|
top: mediumSpacing
|
|
8399
8079
|
}
|
|
8080
|
+
},
|
|
8081
|
+
icon: {
|
|
8082
|
+
typography: {
|
|
8083
|
+
color: defaultIconColor
|
|
8084
|
+
}
|
|
8400
8085
|
}
|
|
8401
8086
|
}
|
|
8402
8087
|
};
|
|
@@ -8427,7 +8112,8 @@
|
|
|
8427
8112
|
|
|
8428
8113
|
var _tokens$entities$6 = accordion.entities,
|
|
8429
8114
|
header$2 = _tokens$entities$6.header,
|
|
8430
|
-
chevronToken = _tokens$entities$6.chevron
|
|
8115
|
+
chevronToken = _tokens$entities$6.chevron,
|
|
8116
|
+
iconToken = _tokens$entities$6.icon;
|
|
8431
8117
|
var StyledAccordionHeader = styled__default['default'].div.attrs(function (_ref) {
|
|
8432
8118
|
var panelId = _ref.panelId,
|
|
8433
8119
|
isExpanded = _ref.isExpanded,
|
|
@@ -8443,7 +8129,7 @@
|
|
|
8443
8129
|
}).withConfig({
|
|
8444
8130
|
displayName: "AccordionHeader__StyledAccordionHeader",
|
|
8445
8131
|
componentId: "sc-cu2e95-0"
|
|
8446
|
-
})(["", " ", " ", " &[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) {
|
|
8132
|
+
})(["", " ", " ", " &[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) {
|
|
8447
8133
|
var parentIndex = _ref2.parentIndex;
|
|
8448
8134
|
return parentIndex === 0 ? null : 'none';
|
|
8449
8135
|
}, header$2.background, header$2.height, function (_ref3) {
|
|
@@ -8454,11 +8140,13 @@
|
|
|
8454
8140
|
}) : styled.css({
|
|
8455
8141
|
color: header$2.typography.color,
|
|
8456
8142
|
cursor: 'pointer',
|
|
8457
|
-
':hover': {
|
|
8458
|
-
|
|
8143
|
+
'@media (hover: hover) and (pointer: fine)': {
|
|
8144
|
+
':hover': {
|
|
8145
|
+
background: header$2.states.hover.background
|
|
8146
|
+
}
|
|
8459
8147
|
}
|
|
8460
8148
|
});
|
|
8461
|
-
});
|
|
8149
|
+
}, iconToken.typography.color);
|
|
8462
8150
|
var StyledIcon$1 = styled__default['default'](Icon$1).withConfig({
|
|
8463
8151
|
displayName: "AccordionHeader__StyledIcon",
|
|
8464
8152
|
componentId: "sc-cu2e95-1"
|
|
@@ -8610,11 +8298,10 @@
|
|
|
8610
8298
|
onFocus = _a.onFocus,
|
|
8611
8299
|
_a$variant = _a.variant,
|
|
8612
8300
|
variant = _a$variant === void 0 ? 'minWidth' : _a$variant,
|
|
8613
|
-
|
|
8301
|
+
id = _a.id,
|
|
8302
|
+
props = __rest(_a, ["activeTab", "onChange", "onBlur", "onFocus", "variant", "id"]);
|
|
8614
8303
|
|
|
8615
|
-
var tabsId =
|
|
8616
|
-
return uniqueId_1('tabs-');
|
|
8617
|
-
}, []);
|
|
8304
|
+
var tabsId = useId(id, 'tabs');
|
|
8618
8305
|
|
|
8619
8306
|
var _useState = React.useState(false),
|
|
8620
8307
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -8867,7 +8554,7 @@
|
|
|
8867
8554
|
}).withConfig({
|
|
8868
8555
|
displayName: "Tab__StyledTab",
|
|
8869
8556
|
componentId: "sc-scjkct-0"
|
|
8870
|
-
})(["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) {
|
|
8557
|
+
})(["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) {
|
|
8871
8558
|
var active = _ref2.active;
|
|
8872
8559
|
return active ? tab.states.active.typography.color : tab.typography.color;
|
|
8873
8560
|
}, tab.background, outlineTemplate(tab.states.focus.outline), function (_ref3) {
|
|
@@ -9394,8 +9081,8 @@
|
|
|
9394
9081
|
|
|
9395
9082
|
var background$a = tokens$6.colors.ui.background__scrim.rgba;
|
|
9396
9083
|
var scrim = {
|
|
9397
|
-
width: '
|
|
9398
|
-
height: '
|
|
9084
|
+
width: '100%',
|
|
9085
|
+
height: '100%',
|
|
9399
9086
|
background: background$a
|
|
9400
9087
|
};
|
|
9401
9088
|
|
|
@@ -9421,6 +9108,8 @@
|
|
|
9421
9108
|
isDismissable: isDismissable,
|
|
9422
9109
|
ref: ref
|
|
9423
9110
|
});
|
|
9111
|
+
var overflowState = document.body.style.overflow;
|
|
9112
|
+
useHideBodyScroll(overflowState);
|
|
9424
9113
|
useGlobalKeyPress('Escape', function (e) {
|
|
9425
9114
|
if (isDismissable && onClose) {
|
|
9426
9115
|
onClose(e, false);
|
|
@@ -9569,7 +9258,7 @@
|
|
|
9569
9258
|
var StyledLinkItem = styled__default['default'].li.withConfig({
|
|
9570
9259
|
displayName: "LinkItem__StyledLinkItem",
|
|
9571
9260
|
componentId: "sc-1tfuad4-0"
|
|
9572
|
-
})(["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);
|
|
9261
|
+
})(["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);
|
|
9573
9262
|
var LinkItem = /*#__PURE__*/React.forwardRef(function LinkItem(_a, ref) {
|
|
9574
9263
|
var children = _a.children,
|
|
9575
9264
|
props = __rest(_a, ["children"]);
|
|
@@ -9815,9 +9504,9 @@
|
|
|
9815
9504
|
}).withConfig({
|
|
9816
9505
|
displayName: "Chip__StyledChips",
|
|
9817
9506
|
componentId: "sc-wzsllq-0"
|
|
9818
|
-
})(["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) {
|
|
9507
|
+
})(["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) {
|
|
9819
9508
|
var clickable = _ref2.clickable;
|
|
9820
|
-
return clickable && styled.css(["&:hover{cursor:pointer;}"]);
|
|
9509
|
+
return clickable && styled.css(["@media (hover:hover) and (pointer:fine){&:hover{cursor:pointer;}}"]);
|
|
9821
9510
|
}, function (_ref3) {
|
|
9822
9511
|
var variant = _ref3.variant;
|
|
9823
9512
|
|
|
@@ -9826,14 +9515,14 @@
|
|
|
9826
9515
|
return styled.css(["background:", ";"], states$3.active.background);
|
|
9827
9516
|
|
|
9828
9517
|
case 'error':
|
|
9829
|
-
return styled.css(["background:", ";color:", ";svg{fill:", ";}", "
|
|
9518
|
+
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);
|
|
9830
9519
|
|
|
9831
9520
|
default:
|
|
9832
9521
|
return '';
|
|
9833
9522
|
}
|
|
9834
9523
|
}, function (_ref4) {
|
|
9835
9524
|
var disabled = _ref4.disabled;
|
|
9836
|
-
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);
|
|
9525
|
+
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);
|
|
9837
9526
|
}, function (_ref5) {
|
|
9838
9527
|
var deletable = _ref5.deletable;
|
|
9839
9528
|
return deletable && styled.css(["padding-right:4px;"]);
|
|
@@ -10054,7 +9743,7 @@
|
|
|
10054
9743
|
return isFocused && styled.css(["", ""], bordersTemplate(states$2.focus.border));
|
|
10055
9744
|
}, placeholder.typography.color, function (_ref2) {
|
|
10056
9745
|
var disabled = _ref2.disabled;
|
|
10057
|
-
return disabled ? styled.css(["cursor:not-allowed;"]) : styled.css(["&:hover{", " cursor:text;}"], bordersTemplate(states$2.focus.border));
|
|
9746
|
+
return disabled ? styled.css(["cursor:not-allowed;"]) : styled.css(["@media (hover:hover) and (pointer:fine){&:hover{", " cursor:text;}}"], bordersTemplate(states$2.focus.border));
|
|
10058
9747
|
}, clickbound.offset, clickbound.height);
|
|
10059
9748
|
var Input$4 = styled__default['default'].input.withConfig({
|
|
10060
9749
|
displayName: "Search__Input",
|
|
@@ -10068,7 +9757,7 @@
|
|
|
10068
9757
|
componentId: "sc-v8l23u-2"
|
|
10069
9758
|
})(["", " 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) {
|
|
10070
9759
|
var isActive = _ref4.isActive;
|
|
10071
|
-
return isActive && styled.css(["visibility:visible
|
|
9760
|
+
return isActive && styled.css(["visibility:visible;@media (hover:hover) and (pointer:fine){&:hover{cursor:pointer;background:", ";}}"], icon$1.states.hover.background);
|
|
10072
9761
|
});
|
|
10073
9762
|
var Search = /*#__PURE__*/React.forwardRef(function Search(_a, ref) {
|
|
10074
9763
|
var _onChange = _a.onChange,
|
|
@@ -10374,8 +10063,8 @@
|
|
|
10374
10063
|
_disabled = slider.states.disabled;
|
|
10375
10064
|
var track$1 = styled.css(["width:100%;height:100%;cursor:pointer;background:none;"]);
|
|
10376
10065
|
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);
|
|
10377
|
-
var thumbHover = styled.css(["box-shadow:0px 0px 0px 6px ", ";border-color:", ";"], handle$1.states.hover.background, handle$1.states.hover.border.color);
|
|
10378
|
-
var thumbHoverAndDisabled = styled.css(["cursor:not-allowed;box-shadow:none;"]);
|
|
10066
|
+
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);
|
|
10067
|
+
var thumbHoverAndDisabled = styled.css(["@media (hover:hover) and (pointer:fine){cursor:not-allowed;box-shadow:none;}"]);
|
|
10379
10068
|
var thumbDisabled = styled.css(["background-color:", ";border-color:", ";"], _disabled.background, _disabled.border.color);
|
|
10380
10069
|
var StyledSliderInput = styled__default['default'].input.attrs(function () {
|
|
10381
10070
|
return {
|
|
@@ -10431,7 +10120,7 @@
|
|
|
10431
10120
|
var RangeWrapper = styled__default['default'].div.withConfig({
|
|
10432
10121
|
displayName: "Slider__RangeWrapper",
|
|
10433
10122
|
componentId: "sc-n1grrg-0"
|
|
10434
|
-
})(["--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) {
|
|
10123
|
+
})(["--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) {
|
|
10435
10124
|
var valA = _ref.valA;
|
|
10436
10125
|
return valA;
|
|
10437
10126
|
}, function (_ref2) {
|
|
@@ -10447,10 +10136,10 @@
|
|
|
10447
10136
|
var disabled = _ref5.disabled;
|
|
10448
10137
|
return disabled ? track.entities.indicator.states.disabled.background : track.entities.indicator.background;
|
|
10449
10138
|
}, handle.width, handle.width, fakeTrackBgHover, track.entities.indicator.states.hover.background);
|
|
10450
|
-
var Wrapper
|
|
10139
|
+
var Wrapper = styled__default['default'].div.withConfig({
|
|
10451
10140
|
displayName: "Slider__Wrapper",
|
|
10452
10141
|
componentId: "sc-n1grrg-1"
|
|
10453
|
-
})(["--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) {
|
|
10142
|
+
})(["--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) {
|
|
10454
10143
|
var min = _ref6.min;
|
|
10455
10144
|
return min;
|
|
10456
10145
|
}, function (_ref7) {
|
|
@@ -10507,7 +10196,7 @@
|
|
|
10507
10196
|
|
|
10508
10197
|
var onValueChange = function onValueChange(event, valueArrIdx) {
|
|
10509
10198
|
var target = event.target;
|
|
10510
|
-
var changedValue =
|
|
10199
|
+
var changedValue = parseFloat(target.value);
|
|
10511
10200
|
|
|
10512
10201
|
if (isRangeSlider) {
|
|
10513
10202
|
var newValue = sliderValue.slice();
|
|
@@ -10560,8 +10249,8 @@
|
|
|
10560
10249
|
var maxValue = maxRange.current.value;
|
|
10561
10250
|
var diff = max - min;
|
|
10562
10251
|
var normX = x / inputWidth * diff + min;
|
|
10563
|
-
var maxX = Math.abs(normX -
|
|
10564
|
-
var minX = Math.abs(normX -
|
|
10252
|
+
var maxX = Math.abs(normX - parseFloat(maxValue));
|
|
10253
|
+
var minX = Math.abs(normX - parseFloat(minValue));
|
|
10565
10254
|
|
|
10566
10255
|
if (minX > maxX) {
|
|
10567
10256
|
minRange.current.style.zIndex = '10';
|
|
@@ -10646,7 +10335,7 @@
|
|
|
10646
10335
|
}), void 0), minMaxValues && jsxRuntime.exports.jsx(MinMax, {
|
|
10647
10336
|
children: getFormattedText(max)
|
|
10648
10337
|
}, void 0)]
|
|
10649
|
-
}), void 0) : jsxRuntime.exports.jsxs(Wrapper
|
|
10338
|
+
}), void 0) : jsxRuntime.exports.jsxs(Wrapper, Object.assign({}, rest, {
|
|
10650
10339
|
ref: ref,
|
|
10651
10340
|
max: max,
|
|
10652
10341
|
min: min,
|
|
@@ -11717,7 +11406,7 @@
|
|
|
11717
11406
|
var Collapsed = styled__default['default'](Typography).withConfig({
|
|
11718
11407
|
displayName: "Breadcrumbs__Collapsed",
|
|
11719
11408
|
componentId: "sc-12awlbz-3"
|
|
11720
|
-
})(["&:hover{text-decoration:underline;color:", ";}color:", ";text-decoration:none;"], states$1.hover.typography.color, typography$5.color);
|
|
11409
|
+
})(["@media (hover:hover) and (pointer:fine){&:hover{text-decoration:underline;color:", ";}}color:", ";text-decoration:none;"], states$1.hover.typography.color, typography$5.color);
|
|
11721
11410
|
var Breadcrumbs$1 = /*#__PURE__*/React.forwardRef(function Breadcrumbs(_a, ref) {
|
|
11722
11411
|
var children = _a.children,
|
|
11723
11412
|
collapse = _a.collapse,
|
|
@@ -11801,7 +11490,7 @@
|
|
|
11801
11490
|
var StyledTypography = styled__default['default'](Typography).withConfig({
|
|
11802
11491
|
displayName: "Breadcrumb__StyledTypography",
|
|
11803
11492
|
componentId: "sc-10nvwte-0"
|
|
11804
|
-
})(["&: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) {
|
|
11493
|
+
})(["@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) {
|
|
11805
11494
|
var maxWidth = _ref.maxWidth;
|
|
11806
11495
|
return styled.css({
|
|
11807
11496
|
maxWidth: maxWidth
|
|
@@ -11814,6 +11503,7 @@
|
|
|
11814
11503
|
other = __rest(_a, ["children", "maxWidth", "href"]);
|
|
11815
11504
|
|
|
11816
11505
|
var props = Object.assign(Object.assign({}, other), {
|
|
11506
|
+
href: href,
|
|
11817
11507
|
ref: ref,
|
|
11818
11508
|
maxWidth: maxWidth
|
|
11819
11509
|
});
|
|
@@ -12011,7 +11701,7 @@
|
|
|
12011
11701
|
return active && styled.css(["background:", ";*{color:", ";}"], activeToken.background, activeToken.typography.color);
|
|
12012
11702
|
}, function (_ref4) {
|
|
12013
11703
|
var disabled = _ref4.disabled;
|
|
12014
|
-
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));
|
|
11704
|
+
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));
|
|
12015
11705
|
});
|
|
12016
11706
|
var Content = styled__default['default'].div.withConfig({
|
|
12017
11707
|
displayName: "MenuItem__Content",
|
|
@@ -12095,18 +11785,16 @@
|
|
|
12095
11785
|
}, void 0);
|
|
12096
11786
|
});
|
|
12097
11787
|
|
|
12098
|
-
var isFragment = function isFragment(object) {
|
|
12099
|
-
if (object.type) {
|
|
12100
|
-
return object.type === React.Fragment;
|
|
12101
|
-
}
|
|
12102
|
-
|
|
12103
|
-
return object === React.Fragment;
|
|
12104
|
-
};
|
|
12105
|
-
|
|
12106
11788
|
var List = styled__default['default'].ul.withConfig({
|
|
12107
11789
|
displayName: "MenuList__List",
|
|
12108
11790
|
componentId: "sc-104rzof-0"
|
|
12109
11791
|
})(["position:relative;list-style:none;margin:0;", " li:first-child{z-index:3;}"], spacingsTemplate(menu.spacings));
|
|
11792
|
+
|
|
11793
|
+
function isIndexable(item) {
|
|
11794
|
+
if ( /*#__PURE__*/React.isValidElement(item) && !item.props.disabled && item.type === MenuItem) return true;
|
|
11795
|
+
return false;
|
|
11796
|
+
}
|
|
11797
|
+
|
|
12110
11798
|
var MenuList = /*#__PURE__*/React.forwardRef(function MenuList(_a, ref) {
|
|
12111
11799
|
var children = _a.children,
|
|
12112
11800
|
focus = _a.focus,
|
|
@@ -12116,19 +11804,30 @@
|
|
|
12116
11804
|
focusedIndex = _useMenu.focusedIndex,
|
|
12117
11805
|
setFocusedIndex = _useMenu.setFocusedIndex;
|
|
12118
11806
|
|
|
12119
|
-
var
|
|
12120
|
-
var
|
|
12121
|
-
return
|
|
12122
|
-
|
|
11807
|
+
var index = -1;
|
|
11808
|
+
var focusableIndexs = React.useMemo(function () {
|
|
11809
|
+
return [];
|
|
11810
|
+
}, []);
|
|
11811
|
+
var updatedChildren = React.useMemo(function () {
|
|
11812
|
+
return React.Children.map(children, function (child) {
|
|
11813
|
+
if (child.type === MenuSection) {
|
|
11814
|
+
var updatedGrandChildren = React.Children.map(child.props.children, function (grandChild) {
|
|
11815
|
+
index++;
|
|
11816
|
+
if (isIndexable(grandChild)) focusableIndexs.push(index);
|
|
11817
|
+
return /*#__PURE__*/React.cloneElement(grandChild, {
|
|
11818
|
+
index: index
|
|
11819
|
+
});
|
|
11820
|
+
});
|
|
11821
|
+
return /*#__PURE__*/React.cloneElement(child, null, updatedGrandChildren);
|
|
11822
|
+
} else {
|
|
11823
|
+
index++;
|
|
11824
|
+
if (isIndexable(child)) focusableIndexs.push(index);
|
|
11825
|
+
return /*#__PURE__*/React.cloneElement(child, {
|
|
11826
|
+
index: index
|
|
11827
|
+
});
|
|
11828
|
+
}
|
|
12123
11829
|
});
|
|
12124
|
-
});
|
|
12125
|
-
var focusableIndexs = (updatedChildren || []).filter(function (x) {
|
|
12126
|
-
return !x.props.disabled;
|
|
12127
|
-
}).filter(function (x) {
|
|
12128
|
-
return /*#__PURE__*/React.isValidElement(x) && (x.type === MenuSection || x.type === MenuItem);
|
|
12129
|
-
}).map(function (x) {
|
|
12130
|
-
return x.props.index;
|
|
12131
|
-
});
|
|
11830
|
+
}, [children, focusableIndexs, index]);
|
|
12132
11831
|
var firstFocusIndex = focusableIndexs[0];
|
|
12133
11832
|
var lastFocusIndex = focusableIndexs[focusableIndexs.length - 1];
|
|
12134
11833
|
React.useEffect(function () {
|
|
@@ -12155,10 +11854,12 @@
|
|
|
12155
11854
|
event.stopPropagation();
|
|
12156
11855
|
|
|
12157
11856
|
if (key === 'ArrowDown') {
|
|
11857
|
+
event.preventDefault();
|
|
12158
11858
|
handleMenuItemChange('down', firstFocusIndex);
|
|
12159
11859
|
}
|
|
12160
11860
|
|
|
12161
11861
|
if (key === 'ArrowUp') {
|
|
11862
|
+
event.preventDefault();
|
|
12162
11863
|
handleMenuItemChange('up', lastFocusIndex);
|
|
12163
11864
|
}
|
|
12164
11865
|
};
|
|
@@ -12221,7 +11922,9 @@
|
|
|
12221
11922
|
open = _a.open,
|
|
12222
11923
|
_a$placement = _a.placement,
|
|
12223
11924
|
placement = _a$placement === void 0 ? 'auto' : _a$placement,
|
|
12224
|
-
|
|
11925
|
+
style = _a.style,
|
|
11926
|
+
className = _a.className,
|
|
11927
|
+
rest = __rest(_a, ["anchorEl", "open", "placement", "style", "className"]);
|
|
12225
11928
|
|
|
12226
11929
|
var _useState = React.useState(null),
|
|
12227
11930
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -12235,7 +11938,7 @@
|
|
|
12235
11938
|
|
|
12236
11939
|
var token = useToken({
|
|
12237
11940
|
density: density
|
|
12238
|
-
}, menu)
|
|
11941
|
+
}, menu);
|
|
12239
11942
|
|
|
12240
11943
|
var _usePopper = usePopper(anchorEl, containerEl, null, placement, 4),
|
|
12241
11944
|
styles = _usePopper.styles,
|
|
@@ -12243,7 +11946,8 @@
|
|
|
12243
11946
|
|
|
12244
11947
|
var props = Object.assign({
|
|
12245
11948
|
open: open,
|
|
12246
|
-
style: styles.popper
|
|
11949
|
+
style: Object.assign(Object.assign({}, styles.popper), style),
|
|
11950
|
+
className: className
|
|
12247
11951
|
}, attributes.popper);
|
|
12248
11952
|
var menuProps = Object.assign(Object.assign({}, rest), {
|
|
12249
11953
|
anchorEl: anchorEl,
|
|
@@ -12440,7 +12144,15 @@
|
|
|
12440
12144
|
}
|
|
12441
12145
|
};
|
|
12442
12146
|
|
|
12147
|
+
var isMounted = useIsMounted();
|
|
12443
12148
|
var items = PaginationControl(pages, activePage);
|
|
12149
|
+
React.useLayoutEffect(function () {
|
|
12150
|
+
if (isMounted) {
|
|
12151
|
+
setActivePage(1);
|
|
12152
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(null, 1);
|
|
12153
|
+
} // eslint-disable-next-line react-hooks/exhaustive-deps
|
|
12154
|
+
|
|
12155
|
+
}, [itemsPerPage]);
|
|
12444
12156
|
var props = Object.assign({
|
|
12445
12157
|
ref: ref,
|
|
12446
12158
|
withItemIndicator: withItemIndicator
|
|
@@ -12597,7 +12309,7 @@
|
|
|
12597
12309
|
|
|
12598
12310
|
var token = useToken({
|
|
12599
12311
|
density: density
|
|
12600
|
-
}, nativeselect)
|
|
12312
|
+
}, nativeselect);
|
|
12601
12313
|
var containerProps = {
|
|
12602
12314
|
ref: ref,
|
|
12603
12315
|
className: className
|
|
@@ -17639,7 +17351,7 @@
|
|
|
17639
17351
|
|
|
17640
17352
|
var token = useToken({
|
|
17641
17353
|
density: density
|
|
17642
|
-
}, select)
|
|
17354
|
+
}, select);
|
|
17643
17355
|
React.useEffect(function () {
|
|
17644
17356
|
setInputItems(items);
|
|
17645
17357
|
}, [items]);
|
|
@@ -17758,7 +17470,10 @@
|
|
|
17758
17470
|
labelTypography$2 = tokens$6.typography.navigation.menu_title,
|
|
17759
17471
|
_tokens$spacings$comf$1 = tokens$6.spacings.comfortable,
|
|
17760
17472
|
medium_small$2 = _tokens$spacings$comf$1.medium_small,
|
|
17761
|
-
x_small$1 = _tokens$spacings$comf$1.x_small
|
|
17473
|
+
x_small$1 = _tokens$spacings$comf$1.x_small,
|
|
17474
|
+
_tokens$clickbounds$1 = tokens$6.clickbounds,
|
|
17475
|
+
clicboundSize$1 = _tokens$clickbounds$1.default__base,
|
|
17476
|
+
compactClickboundSize$1 = _tokens$clickbounds$1.compact__standard;
|
|
17762
17477
|
var checkbox = {
|
|
17763
17478
|
background: primaryColor$1,
|
|
17764
17479
|
typography: labelTypography$2,
|
|
@@ -17768,6 +17483,9 @@
|
|
|
17768
17483
|
left: medium_small$2,
|
|
17769
17484
|
right: medium_small$2
|
|
17770
17485
|
},
|
|
17486
|
+
clickbound: {
|
|
17487
|
+
height: clicboundSize$1
|
|
17488
|
+
},
|
|
17771
17489
|
states: {
|
|
17772
17490
|
hover: {
|
|
17773
17491
|
background: primaryHoverAlt$2
|
|
@@ -17785,13 +17503,6 @@
|
|
|
17785
17503
|
}
|
|
17786
17504
|
}
|
|
17787
17505
|
},
|
|
17788
|
-
entities: {
|
|
17789
|
-
label: {
|
|
17790
|
-
spacings: {
|
|
17791
|
-
left: medium_small$2
|
|
17792
|
-
}
|
|
17793
|
-
}
|
|
17794
|
-
},
|
|
17795
17506
|
modes: {
|
|
17796
17507
|
compact: {
|
|
17797
17508
|
spacings: {
|
|
@@ -17800,6 +17511,9 @@
|
|
|
17800
17511
|
left: x_small$1,
|
|
17801
17512
|
right: x_small$1
|
|
17802
17513
|
},
|
|
17514
|
+
clickbound: {
|
|
17515
|
+
height: compactClickboundSize$1
|
|
17516
|
+
},
|
|
17803
17517
|
states: {
|
|
17804
17518
|
focus: {
|
|
17805
17519
|
outline: {
|
|
@@ -17835,14 +17549,21 @@
|
|
|
17835
17549
|
}).withConfig({
|
|
17836
17550
|
displayName: "Input",
|
|
17837
17551
|
componentId: "sc-rqj7qf-1"
|
|
17838
|
-
})(["
|
|
17839
|
-
var theme = _ref3.theme
|
|
17552
|
+
})(["--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) {
|
|
17553
|
+
var theme = _ref3.theme,
|
|
17554
|
+
iconSize = _ref3.iconSize;
|
|
17555
|
+
return parseFloat(theme.clickbound.height) / iconSize;
|
|
17556
|
+
}, function (_ref4) {
|
|
17557
|
+
var disabled = _ref4.disabled;
|
|
17558
|
+
return disabled ? 'not-allowed' : 'pointer';
|
|
17559
|
+
}, function (_ref5) {
|
|
17560
|
+
var theme = _ref5.theme;
|
|
17840
17561
|
return outlineTemplate(theme.states.focus.outline);
|
|
17841
17562
|
});
|
|
17842
|
-
var Svg$1 = styled__default['default'].svg.attrs(function (
|
|
17843
|
-
var height =
|
|
17844
|
-
width =
|
|
17845
|
-
fill =
|
|
17563
|
+
var Svg$1 = styled__default['default'].svg.attrs(function (_ref6) {
|
|
17564
|
+
var height = _ref6.height,
|
|
17565
|
+
width = _ref6.width,
|
|
17566
|
+
fill = _ref6.fill;
|
|
17846
17567
|
return {
|
|
17847
17568
|
name: null,
|
|
17848
17569
|
xmlns: 'http://www.w3.org/2000/svg',
|
|
@@ -17853,15 +17574,15 @@
|
|
|
17853
17574
|
}).withConfig({
|
|
17854
17575
|
displayName: "Input__Svg",
|
|
17855
17576
|
componentId: "sc-rqj7qf-2"
|
|
17856
|
-
})([""]);
|
|
17577
|
+
})(["grid-area:input;pointer-events:none;"]);
|
|
17857
17578
|
var InputWrapper$1 = styled__default['default'].span.withConfig({
|
|
17858
17579
|
displayName: "Input__InputWrapper",
|
|
17859
17580
|
componentId: "sc-rqj7qf-3"
|
|
17860
|
-
})(["display:inline-
|
|
17861
|
-
var theme =
|
|
17581
|
+
})(["display:inline-grid;grid:[input] 1fr / [input] 1fr;border-radius:50%;", " @media (hover:hover) and (pointer:fine){&:hover{background-color:", ";}}"], function (_ref7) {
|
|
17582
|
+
var theme = _ref7.theme;
|
|
17862
17583
|
return spacingsTemplate(theme.spacings);
|
|
17863
|
-
}, function (
|
|
17864
|
-
var disabled =
|
|
17584
|
+
}, function (_ref8) {
|
|
17585
|
+
var disabled = _ref8.disabled;
|
|
17865
17586
|
return disabled ? 'transparent' : checkbox.states.hover.background;
|
|
17866
17587
|
});
|
|
17867
17588
|
var CheckboxInput = /*#__PURE__*/React.forwardRef(function CheckboxInput(_a, ref) {
|
|
@@ -17875,7 +17596,7 @@
|
|
|
17875
17596
|
|
|
17876
17597
|
var token = useToken({
|
|
17877
17598
|
density: density
|
|
17878
|
-
}, checkbox)
|
|
17599
|
+
}, checkbox);
|
|
17879
17600
|
var iconSize = 24;
|
|
17880
17601
|
var fill = disabled ? checkbox.states.disabled.background : checkbox.background;
|
|
17881
17602
|
var inputWrapperProps = {
|
|
@@ -17889,7 +17610,9 @@
|
|
|
17889
17610
|
theme: token
|
|
17890
17611
|
}, {
|
|
17891
17612
|
children: jsxRuntime.exports.jsxs(InputWrapper$1, Object.assign({}, inputWrapperProps, {
|
|
17892
|
-
children: [jsxRuntime.exports.jsx(Input$3, Object.assign({
|
|
17613
|
+
children: [jsxRuntime.exports.jsx(Input$3, Object.assign({
|
|
17614
|
+
iconSize: iconSize
|
|
17615
|
+
}, inputProps), void 0), indeterminate ? jsxRuntime.exports.jsx(Svg$1, Object.assign({
|
|
17893
17616
|
width: iconSize,
|
|
17894
17617
|
height: iconSize,
|
|
17895
17618
|
viewBox: "0 0 ".concat(iconSize, " ").concat(iconSize),
|
|
@@ -17954,7 +17677,7 @@
|
|
|
17954
17677
|
|
|
17955
17678
|
var token = useToken({
|
|
17956
17679
|
density: density
|
|
17957
|
-
}, multiSelect)
|
|
17680
|
+
}, multiSelect);
|
|
17958
17681
|
var multipleSelectionProps = {
|
|
17959
17682
|
initialSelectedItems: initialSelectedItems,
|
|
17960
17683
|
onSelectedItemsChange: function onSelectedItemsChange(changes) {
|
|
@@ -18119,8 +17842,8 @@
|
|
|
18119
17842
|
}), void 0);
|
|
18120
17843
|
});
|
|
18121
17844
|
|
|
18122
|
-
var
|
|
18123
|
-
displayName: "
|
|
17845
|
+
var StyledLabel$2 = styled__default['default'].label.withConfig({
|
|
17846
|
+
displayName: "Checkbox__StyledLabel",
|
|
18124
17847
|
componentId: "sc-yg6l8h-0"
|
|
18125
17848
|
})(["display:inline-flex;align-items:center;cursor:", ";"], function (_ref) {
|
|
18126
17849
|
var disabled = _ref.disabled;
|
|
@@ -18129,7 +17852,7 @@
|
|
|
18129
17852
|
var LabelText$1 = styled__default['default'].span.withConfig({
|
|
18130
17853
|
displayName: "Checkbox__LabelText",
|
|
18131
17854
|
componentId: "sc-yg6l8h-1"
|
|
18132
|
-
})(["", ";"
|
|
17855
|
+
})(["", ";"], typographyTemplate(checkbox.typography));
|
|
18133
17856
|
var Checkbox = /*#__PURE__*/React.forwardRef(function Checkbox(_a, ref) {
|
|
18134
17857
|
var label = _a.label,
|
|
18135
17858
|
_a$disabled = _a.disabled,
|
|
@@ -18138,7 +17861,7 @@
|
|
|
18138
17861
|
className = _a.className,
|
|
18139
17862
|
rest = __rest(_a, ["label", "disabled", "indeterminate", "className"]);
|
|
18140
17863
|
|
|
18141
|
-
return jsxRuntime.exports.jsxs(
|
|
17864
|
+
return label ? jsxRuntime.exports.jsxs(StyledLabel$2, Object.assign({
|
|
18142
17865
|
disabled: disabled,
|
|
18143
17866
|
className: className
|
|
18144
17867
|
}, {
|
|
@@ -18146,9 +17869,13 @@
|
|
|
18146
17869
|
disabled: disabled,
|
|
18147
17870
|
ref: ref,
|
|
18148
17871
|
indeterminate: indeterminate
|
|
18149
|
-
}), void 0),
|
|
17872
|
+
}), void 0), jsxRuntime.exports.jsx(LabelText$1, {
|
|
18150
17873
|
children: label
|
|
18151
17874
|
}, void 0)]
|
|
17875
|
+
}), void 0) : jsxRuntime.exports.jsx(CheckboxInput, Object.assign({}, rest, {
|
|
17876
|
+
disabled: disabled,
|
|
17877
|
+
ref: ref,
|
|
17878
|
+
indeterminate: indeterminate
|
|
18152
17879
|
}), void 0);
|
|
18153
17880
|
});
|
|
18154
17881
|
Checkbox.displayName = 'Checkbox';
|
|
@@ -18161,7 +17888,10 @@
|
|
|
18161
17888
|
labelTypography$1 = tokens$6.typography.navigation.menu_title,
|
|
18162
17889
|
_tokens$spacings$comf = tokens$6.spacings.comfortable,
|
|
18163
17890
|
medium_small$1 = _tokens$spacings$comf.medium_small,
|
|
18164
|
-
x_small = _tokens$spacings$comf.x_small
|
|
17891
|
+
x_small = _tokens$spacings$comf.x_small,
|
|
17892
|
+
_tokens$clickbounds = tokens$6.clickbounds,
|
|
17893
|
+
clicboundSize = _tokens$clickbounds.default__base,
|
|
17894
|
+
compactClickboundSize = _tokens$clickbounds.compact__standard;
|
|
18165
17895
|
var comfortable$1 = {
|
|
18166
17896
|
background: primaryColor,
|
|
18167
17897
|
typography: labelTypography$1,
|
|
@@ -18171,6 +17901,9 @@
|
|
|
18171
17901
|
left: medium_small$1,
|
|
18172
17902
|
right: medium_small$1
|
|
18173
17903
|
},
|
|
17904
|
+
clickbound: {
|
|
17905
|
+
height: clicboundSize
|
|
17906
|
+
},
|
|
18174
17907
|
states: {
|
|
18175
17908
|
hover: {
|
|
18176
17909
|
background: primaryHoverAlt$1
|
|
@@ -18188,13 +17921,6 @@
|
|
|
18188
17921
|
}
|
|
18189
17922
|
}
|
|
18190
17923
|
},
|
|
18191
|
-
entities: {
|
|
18192
|
-
label: {
|
|
18193
|
-
spacings: {
|
|
18194
|
-
left: medium_small$1
|
|
18195
|
-
}
|
|
18196
|
-
}
|
|
18197
|
-
},
|
|
18198
17924
|
modes: {
|
|
18199
17925
|
compact: {
|
|
18200
17926
|
spacings: {
|
|
@@ -18203,6 +17929,9 @@
|
|
|
18203
17929
|
left: x_small,
|
|
18204
17930
|
right: x_small
|
|
18205
17931
|
},
|
|
17932
|
+
clickbound: {
|
|
17933
|
+
height: compactClickboundSize
|
|
17934
|
+
},
|
|
18206
17935
|
states: {
|
|
18207
17936
|
focus: {
|
|
18208
17937
|
outline: {
|
|
@@ -18227,19 +17956,26 @@
|
|
|
18227
17956
|
}).withConfig({
|
|
18228
17957
|
displayName: "Radio__Input",
|
|
18229
17958
|
componentId: "sc-we59oz-0"
|
|
18230
|
-
})(["
|
|
18231
|
-
var theme = _ref2.theme
|
|
17959
|
+
})(["--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) {
|
|
17960
|
+
var theme = _ref2.theme,
|
|
17961
|
+
iconSize = _ref2.iconSize;
|
|
17962
|
+
return parseFloat(theme.clickbound.height) / iconSize;
|
|
17963
|
+
}, function (_ref3) {
|
|
17964
|
+
var disabled = _ref3.disabled;
|
|
17965
|
+
return disabled ? 'not-allowed' : 'pointer';
|
|
17966
|
+
}, function (_ref4) {
|
|
17967
|
+
var theme = _ref4.theme;
|
|
18232
17968
|
return outlineTemplate(theme.states.focus.outline);
|
|
18233
17969
|
});
|
|
18234
|
-
var
|
|
18235
|
-
displayName: "
|
|
17970
|
+
var StyledLabel$1 = styled__default['default'].label.withConfig({
|
|
17971
|
+
displayName: "Radio__StyledLabel",
|
|
18236
17972
|
componentId: "sc-we59oz-1"
|
|
18237
|
-
})(["display:inline-flex;align-items:center;cursor:", ";"], function (
|
|
18238
|
-
var disabled =
|
|
17973
|
+
})(["display:inline-flex;align-items:center;cursor:", ";"], function (_ref5) {
|
|
17974
|
+
var disabled = _ref5.disabled;
|
|
18239
17975
|
return disabled ? 'not-allowed' : 'pointer';
|
|
18240
17976
|
});
|
|
18241
|
-
var StyledPath = styled__default['default'].path.attrs(function (
|
|
18242
|
-
var icon =
|
|
17977
|
+
var StyledPath = styled__default['default'].path.attrs(function (_ref6) {
|
|
17978
|
+
var icon = _ref6.icon;
|
|
18243
17979
|
return {
|
|
18244
17980
|
fillRule: 'evenodd',
|
|
18245
17981
|
clipRule: 'evenodd',
|
|
@@ -18249,10 +17985,10 @@
|
|
|
18249
17985
|
displayName: "Radio__StyledPath",
|
|
18250
17986
|
componentId: "sc-we59oz-2"
|
|
18251
17987
|
})([""]);
|
|
18252
|
-
var Svg = styled__default['default'].svg.attrs(function (
|
|
18253
|
-
var height =
|
|
18254
|
-
width =
|
|
18255
|
-
fill =
|
|
17988
|
+
var Svg = styled__default['default'].svg.attrs(function (_ref7) {
|
|
17989
|
+
var height = _ref7.height,
|
|
17990
|
+
width = _ref7.width,
|
|
17991
|
+
fill = _ref7.fill;
|
|
18256
17992
|
return {
|
|
18257
17993
|
name: null,
|
|
18258
17994
|
xmlns: 'http://www.w3.org/2000/svg',
|
|
@@ -18263,19 +17999,22 @@
|
|
|
18263
17999
|
}).withConfig({
|
|
18264
18000
|
displayName: "Radio__Svg",
|
|
18265
18001
|
componentId: "sc-we59oz-3"
|
|
18266
|
-
})([""]);
|
|
18002
|
+
})(["grid-area:input;pointer-events:none;"]);
|
|
18267
18003
|
var LabelText = styled__default['default'].span.withConfig({
|
|
18268
18004
|
displayName: "Radio__LabelText",
|
|
18269
18005
|
componentId: "sc-we59oz-4"
|
|
18270
|
-
})(["", "
|
|
18006
|
+
})(["", ""], typographyTemplate(comfortable$1.typography));
|
|
18271
18007
|
var InputWrapper = styled__default['default'].span.withConfig({
|
|
18272
18008
|
displayName: "Radio__InputWrapper",
|
|
18273
18009
|
componentId: "sc-we59oz-5"
|
|
18274
|
-
})(["", " display:inline-
|
|
18275
|
-
var theme =
|
|
18010
|
+
})(["", " display:inline-grid;grid:[input] 1fr / [input] 1fr;border-radius:50%;cursor:", ";@media (hover:hover) and (pointer:fine){&:hover{background-color:", ";}}"], function (_ref8) {
|
|
18011
|
+
var theme = _ref8.theme;
|
|
18276
18012
|
return spacingsTemplate(theme.spacings);
|
|
18277
|
-
}, function (
|
|
18278
|
-
var disabled =
|
|
18013
|
+
}, function (_ref9) {
|
|
18014
|
+
var disabled = _ref9.disabled;
|
|
18015
|
+
return disabled ? 'not-allowed' : 'pointer';
|
|
18016
|
+
}, function (_ref10) {
|
|
18017
|
+
var disabled = _ref10.disabled;
|
|
18279
18018
|
return disabled ? 'transparent' : comfortable$1.states.hover.background;
|
|
18280
18019
|
});
|
|
18281
18020
|
var Radio = /*#__PURE__*/React.forwardRef(function Radio(_a, ref) {
|
|
@@ -18290,13 +18029,30 @@
|
|
|
18290
18029
|
|
|
18291
18030
|
var token = useToken({
|
|
18292
18031
|
density: density
|
|
18293
|
-
}, comfortable$1)
|
|
18032
|
+
}, comfortable$1);
|
|
18294
18033
|
var iconSize = 24;
|
|
18295
18034
|
var fill = disabled ? comfortable$1.states.disabled.background : comfortable$1.background;
|
|
18035
|
+
var renderSVG = React.useMemo(function () {
|
|
18036
|
+
return jsxRuntime.exports.jsxs(Svg, Object.assign({
|
|
18037
|
+
width: iconSize,
|
|
18038
|
+
height: iconSize,
|
|
18039
|
+
viewBox: "0 0 ".concat(iconSize, " ").concat(iconSize),
|
|
18040
|
+
fill: fill,
|
|
18041
|
+
"aria-hidden": true
|
|
18042
|
+
}, {
|
|
18043
|
+
children: [jsxRuntime.exports.jsx(StyledPath, {
|
|
18044
|
+
icon: radio_button_selected,
|
|
18045
|
+
name: "selected"
|
|
18046
|
+
}, void 0), jsxRuntime.exports.jsx(StyledPath, {
|
|
18047
|
+
icon: radio_button_unselected,
|
|
18048
|
+
name: "unselected"
|
|
18049
|
+
}, void 0)]
|
|
18050
|
+
}), void 0);
|
|
18051
|
+
}, [fill]);
|
|
18296
18052
|
return jsxRuntime.exports.jsx(styled.ThemeProvider, Object.assign({
|
|
18297
18053
|
theme: token
|
|
18298
18054
|
}, {
|
|
18299
|
-
children: jsxRuntime.exports.jsxs(
|
|
18055
|
+
children: label ? jsxRuntime.exports.jsxs(StyledLabel$1, Object.assign({
|
|
18300
18056
|
disabled: disabled,
|
|
18301
18057
|
className: className
|
|
18302
18058
|
}, {
|
|
@@ -18305,25 +18061,20 @@
|
|
|
18305
18061
|
}, {
|
|
18306
18062
|
children: [jsxRuntime.exports.jsx(Input$2, Object.assign({}, rest, {
|
|
18307
18063
|
ref: ref,
|
|
18308
|
-
disabled: disabled
|
|
18309
|
-
|
|
18310
|
-
|
|
18311
|
-
|
|
18312
|
-
viewBox: "0 0 ".concat(iconSize, " ").concat(iconSize),
|
|
18313
|
-
fill: fill,
|
|
18314
|
-
"aria-hidden": true
|
|
18315
|
-
}, {
|
|
18316
|
-
children: [jsxRuntime.exports.jsx(StyledPath, {
|
|
18317
|
-
icon: radio_button_selected,
|
|
18318
|
-
name: "selected"
|
|
18319
|
-
}, void 0), jsxRuntime.exports.jsx(StyledPath, {
|
|
18320
|
-
icon: radio_button_unselected,
|
|
18321
|
-
name: "unselected"
|
|
18322
|
-
}, void 0)]
|
|
18323
|
-
}), void 0)]
|
|
18324
|
-
}), void 0), label && jsxRuntime.exports.jsx(LabelText, {
|
|
18064
|
+
disabled: disabled,
|
|
18065
|
+
iconSize: iconSize
|
|
18066
|
+
}), void 0), renderSVG]
|
|
18067
|
+
}), void 0), jsxRuntime.exports.jsx(LabelText, {
|
|
18325
18068
|
children: label
|
|
18326
18069
|
}, void 0)]
|
|
18070
|
+
}), void 0) : jsxRuntime.exports.jsxs(InputWrapper, Object.assign({
|
|
18071
|
+
disabled: disabled
|
|
18072
|
+
}, {
|
|
18073
|
+
children: [jsxRuntime.exports.jsx(Input$2, Object.assign({}, rest, {
|
|
18074
|
+
ref: ref,
|
|
18075
|
+
disabled: disabled,
|
|
18076
|
+
iconSize: iconSize
|
|
18077
|
+
}), void 0), renderSVG]
|
|
18327
18078
|
}), void 0)
|
|
18328
18079
|
}), void 0);
|
|
18329
18080
|
});
|
|
@@ -18340,7 +18091,7 @@
|
|
|
18340
18091
|
|
|
18341
18092
|
var _a, _b;
|
|
18342
18093
|
|
|
18343
|
-
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);
|
|
18094
|
+
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);
|
|
18344
18095
|
});
|
|
18345
18096
|
var BaseInput = styled__default['default'].input.attrs(function (_ref2) {
|
|
18346
18097
|
var _ref2$type = _ref2.type,
|
|
@@ -18352,102 +18103,89 @@
|
|
|
18352
18103
|
displayName: "Switchstyles__BaseInput",
|
|
18353
18104
|
componentId: "sc-x39lde-1"
|
|
18354
18105
|
})(function (_ref3) {
|
|
18355
|
-
var
|
|
18356
|
-
|
|
18106
|
+
var disabled = _ref3.disabled,
|
|
18107
|
+
theme = _ref3.theme;
|
|
18108
|
+
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));
|
|
18357
18109
|
});
|
|
18110
|
+
var GridWrapper = styled__default['default'].span.withConfig({
|
|
18111
|
+
displayName: "Switchstyles__GridWrapper",
|
|
18112
|
+
componentId: "sc-x39lde-2"
|
|
18113
|
+
})(["display:inline-grid;vertical-align:middle;grid:[input] 1fr / [input] 1fr;"]);
|
|
18358
18114
|
|
|
18359
|
-
var
|
|
18360
|
-
displayName: "
|
|
18115
|
+
var Input$1 = styled__default['default'](BaseInput).withConfig({
|
|
18116
|
+
displayName: "SwitchSmall__Input",
|
|
18361
18117
|
componentId: "sc-1a99mis-0"
|
|
18362
18118
|
})(function (_ref) {
|
|
18363
|
-
var
|
|
18364
|
-
theme = _ref.theme
|
|
18365
|
-
|
|
18119
|
+
var disabled = _ref.disabled,
|
|
18120
|
+
_ref$theme = _ref.theme,
|
|
18121
|
+
states = _ref$theme.states,
|
|
18122
|
+
_ref$theme$entities = _ref$theme.entities,
|
|
18123
|
+
handle = _ref$theme$entities.handle,
|
|
18124
|
+
track = _ref$theme$entities.track;
|
|
18125
|
+
return styled.css(["&[data-focus-visible-added]:focus + span{outline-offset:", ";}&:checked + span > span{background-color:", ";}&:checked + span > span:last-child{transform:translate(180%,-50%);background-color:", ";}@media (hover:hover) and (pointer:fine){&:hover + span{background-color:", ";}}"], states.focus.outline.offset, disabled ? states.disabled.background : track.states.active.background, handle.background, disabled ? 'transparent' : states.hover.background);
|
|
18366
18126
|
});
|
|
18367
|
-
var
|
|
18368
|
-
displayName: "
|
|
18127
|
+
var Track$1 = styled__default['default'].span.withConfig({
|
|
18128
|
+
displayName: "SwitchSmall__Track",
|
|
18369
18129
|
componentId: "sc-1a99mis-1"
|
|
18370
18130
|
})(function (_ref2) {
|
|
18371
|
-
var
|
|
18131
|
+
var isDisabled = _ref2.isDisabled,
|
|
18372
18132
|
_ref2$theme = _ref2.theme,
|
|
18373
18133
|
states = _ref2$theme.states,
|
|
18374
|
-
|
|
18375
|
-
handle = _ref2$theme$entities.handle,
|
|
18376
|
-
track = _ref2$theme$entities.track;
|
|
18377
|
-
return styled.css(["&[data-focus-visible-added]:focus + span{outline-offset:", ";}&:checked + span > span{background-color:", ";}&:checked + span > span:last-child{transform:translate(180%,-50%);background-color:", ";}"], states.focus.outline.offset, disabled ? states.disabled.background : track.states.active.background, handle.background);
|
|
18378
|
-
});
|
|
18379
|
-
var Track$1 = styled__default['default'].span.withConfig({
|
|
18380
|
-
displayName: "SwitchSmall__Track",
|
|
18381
|
-
componentId: "sc-1a99mis-2"
|
|
18382
|
-
})(function (_ref3) {
|
|
18383
|
-
var isDisabled = _ref3.isDisabled,
|
|
18384
|
-
_ref3$theme = _ref3.theme,
|
|
18385
|
-
states = _ref3$theme.states,
|
|
18386
|
-
track = _ref3$theme.entities.track;
|
|
18134
|
+
track = _ref2$theme.entities.track;
|
|
18387
18135
|
return styled.css(["width:", ";height:", ";border-radius:10px;border:none;background-color:", ";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);"], track.width, track.height, isDisabled ? states.disabled.background : track.states.disabled.background);
|
|
18388
18136
|
});
|
|
18389
18137
|
var Handle$1 = styled__default['default'].span.withConfig({
|
|
18390
18138
|
displayName: "SwitchSmall__Handle",
|
|
18391
|
-
componentId: "sc-1a99mis-
|
|
18392
|
-
})(function (
|
|
18393
|
-
var handle =
|
|
18139
|
+
componentId: "sc-1a99mis-2"
|
|
18140
|
+
})(function (_ref3) {
|
|
18141
|
+
var handle = _ref3.theme.entities.handle;
|
|
18394
18142
|
return styled.css(["background-color:", ";width:", ";height:", ";border-radius:50%;display:inline-block;position:absolute;top:50%;transform:translate(11%,-50%);left:7px;transition:transform 0.36s cubic-bezier(0.78,0.14,0.15,0.86);"], handle.background, handle.width, handle.height);
|
|
18395
18143
|
});
|
|
18396
18144
|
var SwitchSmall = /*#__PURE__*/React.forwardRef(function SwitchSmall(_a, ref) {
|
|
18397
18145
|
var disabled = _a.disabled,
|
|
18398
18146
|
rest = __rest(_a, ["disabled"]);
|
|
18399
18147
|
|
|
18400
|
-
return jsxRuntime.exports.jsxs(
|
|
18148
|
+
return jsxRuntime.exports.jsxs(GridWrapper, {
|
|
18401
18149
|
children: [jsxRuntime.exports.jsx(Input$1, Object.assign({}, rest, {
|
|
18402
18150
|
ref: ref,
|
|
18403
18151
|
disabled: disabled
|
|
18404
|
-
}), void 0), jsxRuntime.exports.jsxs(
|
|
18405
|
-
isDisabled: disabled
|
|
18406
|
-
}, {
|
|
18152
|
+
}), void 0), jsxRuntime.exports.jsxs(BaseInputWrapper, {
|
|
18407
18153
|
children: [jsxRuntime.exports.jsx(Track$1, {
|
|
18408
18154
|
isDisabled: disabled
|
|
18409
18155
|
}, void 0), jsxRuntime.exports.jsx(Handle$1, {}, void 0)]
|
|
18410
|
-
}
|
|
18156
|
+
}, void 0)]
|
|
18411
18157
|
}, void 0);
|
|
18412
18158
|
});
|
|
18413
18159
|
SwitchSmall.displayName = 'SwitchSmall';
|
|
18414
18160
|
|
|
18415
|
-
var
|
|
18416
|
-
displayName: "
|
|
18161
|
+
var Input = styled__default['default'](BaseInput).withConfig({
|
|
18162
|
+
displayName: "SwitchDefault__Input",
|
|
18417
18163
|
componentId: "sc-16ym5pn-0"
|
|
18418
18164
|
})(function (_ref) {
|
|
18419
|
-
var
|
|
18165
|
+
var disabled = _ref.disabled,
|
|
18420
18166
|
theme = _ref.theme;
|
|
18421
|
-
return styled.css(["
|
|
18422
|
-
});
|
|
18423
|
-
var Input = styled__default['default'](BaseInput).withConfig({
|
|
18424
|
-
displayName: "SwitchDefault__Input",
|
|
18425
|
-
componentId: "sc-16ym5pn-1"
|
|
18426
|
-
})(function (_ref2) {
|
|
18427
|
-
var disabled = _ref2.disabled,
|
|
18428
|
-
theme = _ref2.theme;
|
|
18429
|
-
return styled.css(["&:checked + span > span{background-color:", ";}&:checked + span > span:last-child{transform:translate(105%,-50%);background-color:", ";}"], disabled ? theme.states.disabled.background : theme.entities.track.states.active.background, disabled ? theme.states.disabled.background : theme.entities.handle.states.active.background);
|
|
18167
|
+
return styled.css(["&:checked + span > span{background-color:", ";}&:checked + span > span:last-child{transform:translate(105%,-50%);background-color:", ";}&:hover + span{background-color:", ";}&:hover + span > span:last-child{background-color:", ";}"], disabled ? theme.states.disabled.background : theme.entities.track.states.active.background, disabled ? theme.states.disabled.background : theme.entities.handle.states.active.background, disabled ? 'transparent' : theme.states.hover.background, disabled ? theme.states.disabled.background : theme.states.hover.entities.handle.background);
|
|
18430
18168
|
});
|
|
18431
18169
|
var Track = styled__default['default'].span.withConfig({
|
|
18432
18170
|
displayName: "SwitchDefault__Track",
|
|
18433
|
-
componentId: "sc-16ym5pn-
|
|
18434
|
-
})(function (
|
|
18435
|
-
var isDisabled =
|
|
18436
|
-
|
|
18437
|
-
states =
|
|
18438
|
-
track =
|
|
18171
|
+
componentId: "sc-16ym5pn-1"
|
|
18172
|
+
})(function (_ref2) {
|
|
18173
|
+
var isDisabled = _ref2.isDisabled,
|
|
18174
|
+
_ref2$theme = _ref2.theme,
|
|
18175
|
+
states = _ref2$theme.states,
|
|
18176
|
+
track = _ref2$theme.entities.track;
|
|
18439
18177
|
return styled.css(["", " border:none;width:", ";height:", ";background-color:", ";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);transition:background 0.36s;", ""], bordersTemplate(track.border), track.width, track.height, track.background, isDisabled && {
|
|
18440
18178
|
backgroundColor: states.disabled.background
|
|
18441
18179
|
});
|
|
18442
18180
|
});
|
|
18443
18181
|
var Handle = styled__default['default'].span.withConfig({
|
|
18444
18182
|
displayName: "SwitchDefault__Handle",
|
|
18445
|
-
componentId: "sc-16ym5pn-
|
|
18446
|
-
})(function (
|
|
18447
|
-
var isDisabled =
|
|
18448
|
-
|
|
18449
|
-
states =
|
|
18450
|
-
handle =
|
|
18183
|
+
componentId: "sc-16ym5pn-2"
|
|
18184
|
+
})(function (_ref3) {
|
|
18185
|
+
var isDisabled = _ref3.isDisabled,
|
|
18186
|
+
_ref3$theme = _ref3.theme,
|
|
18187
|
+
states = _ref3$theme.states,
|
|
18188
|
+
handle = _ref3$theme.entities.handle;
|
|
18451
18189
|
return styled.css(["background-color:", ";", " box-shadow:", ";width:", ";height:", ";border-radius:50%;display:inline-block;position:absolute;top:50%;transform:translate(0,-50%);left:4px;transition:transform 0.36s cubic-bezier(0.78,0.14,0.15,0.86);"], handle.background, isDisabled && {
|
|
18452
18190
|
backgroundColor: states.disabled.background
|
|
18453
18191
|
}, handle.boxShadow, handle.width, handle.height);
|
|
@@ -18456,19 +18194,17 @@
|
|
|
18456
18194
|
var disabled = _a.disabled,
|
|
18457
18195
|
rest = __rest(_a, ["disabled"]);
|
|
18458
18196
|
|
|
18459
|
-
return jsxRuntime.exports.jsxs(
|
|
18197
|
+
return jsxRuntime.exports.jsxs(GridWrapper, {
|
|
18460
18198
|
children: [jsxRuntime.exports.jsx(Input, Object.assign({}, rest, {
|
|
18461
18199
|
ref: ref,
|
|
18462
18200
|
disabled: disabled
|
|
18463
|
-
}), void 0), jsxRuntime.exports.jsxs(
|
|
18464
|
-
isDisabled: disabled
|
|
18465
|
-
}, {
|
|
18201
|
+
}), void 0), jsxRuntime.exports.jsxs(BaseInputWrapper, {
|
|
18466
18202
|
children: [jsxRuntime.exports.jsx(Track, {
|
|
18467
18203
|
isDisabled: disabled
|
|
18468
18204
|
}, void 0), jsxRuntime.exports.jsx(Handle, {
|
|
18469
18205
|
isDisabled: disabled
|
|
18470
18206
|
}, void 0)]
|
|
18471
|
-
}
|
|
18207
|
+
}, void 0)]
|
|
18472
18208
|
}, void 0);
|
|
18473
18209
|
});
|
|
18474
18210
|
SwitchDefault.displayName = 'SwitchDefault';
|
|
@@ -18597,8 +18333,8 @@
|
|
|
18597
18333
|
}
|
|
18598
18334
|
};
|
|
18599
18335
|
|
|
18600
|
-
var
|
|
18601
|
-
displayName: "
|
|
18336
|
+
var StyledLabel = styled__default['default'].label.withConfig({
|
|
18337
|
+
displayName: "Switch__StyledLabel",
|
|
18602
18338
|
componentId: "sc-sdaahx-0"
|
|
18603
18339
|
})(["cursor:", ";border:none;background-color:transparent;vertical-align:middle;display:inline-flex;align-items:center;position:relative;"], function (_ref) {
|
|
18604
18340
|
var isDisabled = _ref.isDisabled;
|
|
@@ -18626,11 +18362,11 @@
|
|
|
18626
18362
|
var overrideDensity = size === 'small' ? 'compact' : density;
|
|
18627
18363
|
var token = useToken({
|
|
18628
18364
|
density: overrideDensity
|
|
18629
|
-
}, comfortable)
|
|
18365
|
+
}, comfortable);
|
|
18630
18366
|
return jsxRuntime.exports.jsx(styled.ThemeProvider, Object.assign({
|
|
18631
18367
|
theme: token
|
|
18632
18368
|
}, {
|
|
18633
|
-
children: jsxRuntime.exports.jsxs(
|
|
18369
|
+
children: label ? jsxRuntime.exports.jsxs(StyledLabel, Object.assign({
|
|
18634
18370
|
isDisabled: disabled,
|
|
18635
18371
|
className: className
|
|
18636
18372
|
}, {
|
|
@@ -18645,6 +18381,14 @@
|
|
|
18645
18381
|
}), void 0), label && jsxRuntime.exports.jsx(Label, {
|
|
18646
18382
|
children: label
|
|
18647
18383
|
}, void 0)]
|
|
18384
|
+
}), void 0) : size === 'small' ? jsxRuntime.exports.jsx(SwitchSmall, Object.assign({
|
|
18385
|
+
disabled: disabled
|
|
18386
|
+
}, rest, {
|
|
18387
|
+
ref: ref
|
|
18388
|
+
}), void 0) : jsxRuntime.exports.jsx(SwitchDefault, Object.assign({
|
|
18389
|
+
disabled: disabled
|
|
18390
|
+
}, rest, {
|
|
18391
|
+
ref: ref
|
|
18648
18392
|
}), void 0)
|
|
18649
18393
|
}), void 0);
|
|
18650
18394
|
});
|