@helpdice/ui 2.5.8-beta.0 → 2.5.8
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/auto-complete/index.js +549 -491
- package/dist/avatar/index.js +82 -45
- package/dist/badge/index.js +69 -27
- package/dist/breadcrumbs/index.js +107 -56
- package/dist/button/button.icon.d.ts +3 -15
- package/dist/button/button.small.d.ts +3 -15
- package/dist/button/index.js +143 -155
- package/dist/button-dropdown/index.js +96 -83
- package/dist/button-group/index.js +61 -21
- package/dist/capacity/index.js +61 -22
- package/dist/card/index.js +147 -123
- package/dist/carousal/index.js +349 -328
- package/dist/checkbox/index.js +72 -67
- package/dist/circular-progress/CircularProgress.d.ts +17 -0
- package/dist/circular-progress/index.d.ts +3 -4
- package/dist/circular-progress/index.js +713 -336
- package/dist/circular-progress/useCircularProgress.d.ts +12 -0
- package/dist/code/index.js +70 -26
- package/dist/col/index.js +61 -24
- package/dist/collapse/index.js +102 -52
- package/dist/container/index.js +187 -188
- package/dist/copy-to-clipboard/index.js +158 -208
- package/dist/description/index.js +64 -23
- package/dist/display/index.js +64 -23
- package/dist/divider/index.js +62 -22
- package/dist/dot/index.js +63 -23
- package/dist/drawer/index.js +74 -61
- package/dist/fieldset/index.js +127 -63
- package/dist/form/index.js +15 -40
- package/dist/grid/index.js +74 -29
- package/dist/html-renderer/index.js +3 -2
- package/dist/image/index.js +163 -104
- package/dist/index.d.ts +2 -1
- package/dist/index.js +4173 -3745
- package/dist/input/index.js +466 -419
- package/dist/keyboard/index.js +73 -29
- package/dist/linear-progress/index.js +27 -24
- package/dist/link/index.js +78 -36
- package/dist/list/index.js +118 -63
- package/dist/loadable/index.js +76 -27
- package/dist/loading/index.js +70 -29
- package/dist/menu/index.js +53 -47
- package/dist/modal/index.js +225 -178
- package/dist/note/index.js +64 -23
- package/dist/notetip/index.js +54 -45
- package/dist/notetip/note-tip.d.ts +2 -0
- package/dist/page/index.js +102 -51
- package/dist/pagination/index.js +180 -123
- package/dist/placeholder/index.js +545 -534
- package/dist/popover/index.js +94 -81
- package/dist/progress/index.js +66 -27
- package/dist/radio/index.js +94 -48
- package/dist/rating/index.js +78 -38
- package/dist/row/index.js +62 -25
- package/dist/search-bar/index.js +172 -162
- package/dist/select/index.js +364 -327
- package/dist/slider/index.js +91 -47
- package/dist/snippet/index.js +39 -39
- package/dist/spacer/index.js +58 -19
- package/dist/spinner/index.js +69 -28
- package/dist/swipe/index.js +28 -13
- package/dist/table/index.js +2217 -1973
- package/dist/table/table-body.d.ts +4 -2
- package/dist/table/table-cell.d.ts +4 -2
- package/dist/table/table-types.d.ts +2 -0
- package/dist/table/table.d.ts +4 -1
- package/dist/tabs/index.js +61 -59
- package/dist/tag/index.js +16 -20
- package/dist/text/index.js +178 -180
- package/dist/textarea/index.js +220 -214
- package/dist/toggle/index.js +75 -33
- package/dist/tooltip/index.d.ts +1 -2
- package/dist/tooltip/index.js +59 -52
- package/dist/tooltip/tooltip-content.d.ts +1 -1
- package/dist/tooltip/tooltip.d.ts +2 -1
- package/dist/tree/index.js +176 -115
- package/dist/use-scale/index.js +50 -13
- package/dist/user/index.js +146 -96
- package/esm/button/button.icon.d.ts +3 -15
- package/esm/button/button.icon.js +22 -22
- package/esm/button/button.js +4 -4
- package/esm/button/button.small.d.ts +3 -15
- package/esm/button/button.small.js +20 -21
- package/esm/circular-progress/CircularProgress.d.ts +17 -0
- package/esm/circular-progress/CircularProgress.js +110 -0
- package/esm/circular-progress/index.d.ts +3 -4
- package/esm/circular-progress/index.js +3 -4
- package/esm/circular-progress/useCircularProgress.d.ts +12 -0
- package/esm/circular-progress/useCircularProgress.js +35 -0
- package/esm/index.d.ts +2 -1
- package/esm/index.js +1 -1
- package/esm/list/list-item.js +11 -11
- package/esm/notetip/note-tip.d.ts +2 -0
- package/esm/notetip/note-tip.js +8 -5
- package/esm/skeleton/index.js +9 -4
- package/esm/table/table-body.d.ts +4 -2
- package/esm/table/table-body.js +9 -4
- package/esm/table/table-cell.d.ts +4 -2
- package/esm/table/table-cell.js +19 -3
- package/esm/table/table-types.d.ts +2 -0
- package/esm/table/table.d.ts +4 -1
- package/esm/table/table.js +13 -6
- package/esm/tooltip/index.d.ts +1 -2
- package/esm/tooltip/tooltip-content.d.ts +1 -1
- package/esm/tooltip/tooltip-content.js +5 -5
- package/esm/tooltip/tooltip.d.ts +2 -1
- package/esm/tooltip/tooltip.js +6 -5
- package/package.json +3 -3
- package/dist/circular-progress/CircularProgressbar.d.ts +0 -10
- package/dist/circular-progress/CircularProgressbarWithChildren.d.ts +0 -7
- package/dist/circular-progress/Path.d.ts +0 -9
- package/dist/circular-progress/buildStyles.d.ts +0 -12
- package/dist/circular-progress/constants.d.ts +0 -5
- package/dist/circular-progress/types.d.ts +0 -50
- package/esm/circular-progress/CircularProgressbar.d.ts +0 -10
- package/esm/circular-progress/CircularProgressbar.js +0 -118
- package/esm/circular-progress/CircularProgressbarWithChildren.d.ts +0 -7
- package/esm/circular-progress/CircularProgressbarWithChildren.js +0 -32
- package/esm/circular-progress/Path.d.ts +0 -9
- package/esm/circular-progress/Path.js +0 -52
- package/esm/circular-progress/buildStyles.d.ts +0 -12
- package/esm/circular-progress/buildStyles.js +0 -45
- package/esm/circular-progress/constants.d.ts +0 -5
- package/esm/circular-progress/constants.js +0 -5
- package/esm/circular-progress/types.d.ts +0 -50
- package/esm/circular-progress/types.js +0 -1
package/dist/select/index.js
CHANGED
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var theme = require('@helpdice/theme');
|
|
7
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
7
8
|
|
|
8
9
|
function _arrayLikeToArray(r, a) {
|
|
9
10
|
(null == a || a > r.length) && (a = r.length);
|
|
@@ -72,15 +73,6 @@ function _defineProperty(e, r, t) {
|
|
|
72
73
|
writable: true
|
|
73
74
|
}) : e[r] = t, e;
|
|
74
75
|
}
|
|
75
|
-
function _extends() {
|
|
76
|
-
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
77
|
-
for (var e = 1; e < arguments.length; e++) {
|
|
78
|
-
var t = arguments[e];
|
|
79
|
-
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
80
|
-
}
|
|
81
|
-
return n;
|
|
82
|
-
}, _extends.apply(null, arguments);
|
|
83
|
-
}
|
|
84
76
|
function _iterableToArray(r) {
|
|
85
77
|
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
86
78
|
}
|
|
@@ -759,20 +751,22 @@ var isCSSNumberValue = function isCSSNumberValue(value) {
|
|
|
759
751
|
};
|
|
760
752
|
|
|
761
753
|
var SelectIconComponent = function SelectIconComponent() {
|
|
762
|
-
return /*#__PURE__*/
|
|
754
|
+
return /*#__PURE__*/jsxRuntime.jsxs("svg", {
|
|
763
755
|
viewBox: "0 0 24 24",
|
|
764
756
|
strokeWidth: "1",
|
|
765
757
|
strokeLinecap: "round",
|
|
766
758
|
strokeLinejoin: "round",
|
|
767
759
|
fill: "none",
|
|
768
760
|
shapeRendering: "geometricPrecision",
|
|
769
|
-
className: "jsx-2742933678"
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
761
|
+
className: "jsx-2742933678",
|
|
762
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("path", {
|
|
763
|
+
d: "M6 9l6 6 6-6",
|
|
764
|
+
className: "jsx-2742933678"
|
|
765
|
+
}), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
766
|
+
id: "2742933678",
|
|
767
|
+
children: "svg.jsx-2742933678{color:inherit;stroke:currentColor;-webkit-transition:all 200ms ease;transition:all 200ms ease;width:1.214em;height:1.214em;}"
|
|
768
|
+
})]
|
|
769
|
+
});
|
|
776
770
|
};
|
|
777
771
|
SelectIconComponent.displayName = 'SelectIcon';
|
|
778
772
|
var SelectIcon = /*#__PURE__*/React.memo(SelectIconComponent);
|
|
@@ -805,19 +799,22 @@ var SelectDropdown = /*#__PURE__*/React.forwardRef(function (_ref, dropdownRef)
|
|
|
805
799
|
React.useImperativeHandle(dropdownRef, function () {
|
|
806
800
|
return internalDropdownRef.current;
|
|
807
801
|
});
|
|
808
|
-
return /*#__PURE__*/
|
|
802
|
+
return /*#__PURE__*/jsxRuntime.jsx(theme.Dropdown, {
|
|
809
803
|
parent: ref,
|
|
810
804
|
visible: visible,
|
|
811
805
|
disableMatchWidth: disableMatchWidth,
|
|
812
|
-
getPopupContainer: getPopupContainer
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
806
|
+
getPopupContainer: getPopupContainer,
|
|
807
|
+
children: /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
808
|
+
ref: internalDropdownRef,
|
|
809
|
+
style: dropdownStyle,
|
|
810
|
+
className: _JSXStyle.dynamic([["2782510679", [theme$1.layout.radius, theme$1.expressiveness.shadowLarge, theme$1.palette.background]]]) + " " + (classes || ""),
|
|
811
|
+
children: [children, /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
812
|
+
id: "2782510679",
|
|
813
|
+
dynamic: [theme$1.layout.radius, theme$1.expressiveness.shadowLarge, theme$1.palette.background],
|
|
814
|
+
children: ".select-dropdown.__jsx-style-dynamic-selector{border-radius:".concat(theme$1.layout.radius, ";box-shadow:").concat(theme$1.expressiveness.shadowLarge, ";background-color:").concat(theme$1.palette.background, ";max-height:17em;overflow-y:auto;overflow-anchor:none;padding:0.38em 0;-webkit-scroll-behavior:smooth;-moz-scroll-behavior:smooth;-ms-scroll-behavior:smooth;scroll-behavior:smooth;}")
|
|
815
|
+
})]
|
|
816
|
+
})
|
|
817
|
+
});
|
|
821
818
|
});
|
|
822
819
|
SelectDropdown.displayName = 'SelectDropdown';
|
|
823
820
|
|
|
@@ -987,11 +984,13 @@ var withScale = function withScale(Render) {
|
|
|
987
984
|
getScaleProps: generateGetScaleProps(props),
|
|
988
985
|
getAllScaleProps: generateGetAllScaleProps(props)
|
|
989
986
|
};
|
|
990
|
-
return /*#__PURE__*/
|
|
991
|
-
value: value
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
987
|
+
return /*#__PURE__*/jsxRuntime.jsx(ScaleContext.Provider, {
|
|
988
|
+
value: value,
|
|
989
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Render, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
990
|
+
ref: ref,
|
|
991
|
+
children: children
|
|
992
|
+
}))
|
|
993
|
+
});
|
|
995
994
|
});
|
|
996
995
|
ScaleFC.displayName = "Scale".concat(Render.displayName || 'Wrapper');
|
|
997
996
|
return ScaleFC;
|
|
@@ -1066,12 +1065,14 @@ var GridBasicItem = function GridBasicItem(_ref) {
|
|
|
1066
1065
|
xl: getItemLayout(xl)
|
|
1067
1066
|
};
|
|
1068
1067
|
}, [xs, sm, md, lg, xl]);
|
|
1069
|
-
return /*#__PURE__*/
|
|
1070
|
-
className: _JSXStyle.dynamic([["568430467", [SCALES.font(1, 'inherit'), SCALES.height(1, 'auto'), justify, direction, alignContent, alignItems, layout.xs.grow, layout.xs.width, layout.xs.basis, layout.xs.display, theme$1.breakpoints.sm.min, layout.sm.grow, layout.sm.width, layout.sm.basis, layout.sm.display, theme$1.breakpoints.md.min, layout.md.grow, layout.md.width, layout.md.basis, layout.md.display, theme$1.breakpoints.lg.min, layout.lg.grow, layout.lg.width, layout.lg.basis, layout.lg.display, theme$1.breakpoints.xl.min, layout.xl.grow, layout.xl.width, layout.xl.basis, layout.xl.display]]]) + " " + (props && props.className != null && props.className || theme.useClasses('item', classes, className) || "")
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1068
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
1069
|
+
className: _JSXStyle.dynamic([["568430467", [SCALES.font(1, 'inherit'), SCALES.height(1, 'auto'), justify, direction, alignContent, alignItems, layout.xs.grow, layout.xs.width, layout.xs.basis, layout.xs.display, theme$1.breakpoints.sm.min, layout.sm.grow, layout.sm.width, layout.sm.basis, layout.sm.display, theme$1.breakpoints.md.min, layout.md.grow, layout.md.width, layout.md.basis, layout.md.display, theme$1.breakpoints.lg.min, layout.lg.grow, layout.lg.width, layout.lg.basis, layout.lg.display, theme$1.breakpoints.xl.min, layout.xl.grow, layout.xl.width, layout.xl.basis, layout.xl.display]]]) + " " + (props && props.className != null && props.className || theme.useClasses('item', classes, className) || ""),
|
|
1070
|
+
children: [children, /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
1071
|
+
id: "568430467",
|
|
1072
|
+
dynamic: [SCALES.font(1, 'inherit'), SCALES.height(1, 'auto'), justify, direction, alignContent, alignItems, layout.xs.grow, layout.xs.width, layout.xs.basis, layout.xs.display, theme$1.breakpoints.sm.min, layout.sm.grow, layout.sm.width, layout.sm.basis, layout.sm.display, theme$1.breakpoints.md.min, layout.md.grow, layout.md.width, layout.md.basis, layout.md.display, theme$1.breakpoints.lg.min, layout.lg.grow, layout.lg.width, layout.lg.basis, layout.lg.display, theme$1.breakpoints.xl.min, layout.xl.grow, layout.xl.width, layout.xl.basis, layout.xl.display],
|
|
1073
|
+
children: ".item.__jsx-style-dynamic-selector{font-size:".concat(SCALES.font(1, 'inherit'), ";height:").concat(SCALES.height(1, 'auto'), ";}.justify.__jsx-style-dynamic-selector{-webkit-box-pack:").concat(justify, ";-webkit-justify-content:").concat(justify, ";-ms-flex-pack:").concat(justify, ";justify-content:").concat(justify, ";}.direction.__jsx-style-dynamic-selector{-webkit-flex-direction:").concat(direction, ";-ms-flex-direction:").concat(direction, ";flex-direction:").concat(direction, ";}.alignContent.__jsx-style-dynamic-selector{-webkit-align-content:").concat(alignContent, ";-ms-flex-line-pack:").concat(alignContent, ";align-content:").concat(alignContent, ";}.alignItems.__jsx-style-dynamic-selector{-webkit-align-items:").concat(alignItems, ";-webkit-box-align:").concat(alignItems, ";-ms-flex-align:").concat(alignItems, ";align-items:").concat(alignItems, ";}.xs.__jsx-style-dynamic-selector{-webkit-box-flex:").concat(layout.xs.grow, ";-webkit-flex-grow:").concat(layout.xs.grow, ";-ms-flex-positive:").concat(layout.xs.grow, ";flex-grow:").concat(layout.xs.grow, ";max-width:").concat(layout.xs.width, ";-webkit-flex-basis:").concat(layout.xs.basis, ";-ms-flex-preferred-size:").concat(layout.xs.basis, ";flex-basis:").concat(layout.xs.basis, ";").concat(layout.xs.display, ";}@media only screen and (min-width:").concat(theme$1.breakpoints.sm.min, "){.sm.__jsx-style-dynamic-selector{-webkit-box-flex:").concat(layout.sm.grow, ";-webkit-flex-grow:").concat(layout.sm.grow, ";-ms-flex-positive:").concat(layout.sm.grow, ";flex-grow:").concat(layout.sm.grow, ";max-width:").concat(layout.sm.width, ";-webkit-flex-basis:").concat(layout.sm.basis, ";-ms-flex-preferred-size:").concat(layout.sm.basis, ";flex-basis:").concat(layout.sm.basis, ";").concat(layout.sm.display, ";}}@media only screen and (min-width:").concat(theme$1.breakpoints.md.min, "){.md.__jsx-style-dynamic-selector{-webkit-box-flex:").concat(layout.md.grow, ";-webkit-flex-grow:").concat(layout.md.grow, ";-ms-flex-positive:").concat(layout.md.grow, ";flex-grow:").concat(layout.md.grow, ";max-width:").concat(layout.md.width, ";-webkit-flex-basis:").concat(layout.md.basis, ";-ms-flex-preferred-size:").concat(layout.md.basis, ";flex-basis:").concat(layout.md.basis, ";").concat(layout.md.display, ";}}@media only screen and (min-width:").concat(theme$1.breakpoints.lg.min, "){.lg.__jsx-style-dynamic-selector{-webkit-box-flex:").concat(layout.lg.grow, ";-webkit-flex-grow:").concat(layout.lg.grow, ";-ms-flex-positive:").concat(layout.lg.grow, ";flex-grow:").concat(layout.lg.grow, ";max-width:").concat(layout.lg.width, ";-webkit-flex-basis:").concat(layout.lg.basis, ";-ms-flex-preferred-size:").concat(layout.lg.basis, ";flex-basis:").concat(layout.lg.basis, ";").concat(layout.lg.display, ";}}@media only screen and (min-width:").concat(theme$1.breakpoints.xl.min, "){.xl.__jsx-style-dynamic-selector{-webkit-box-flex:").concat(layout.xl.grow, ";-webkit-flex-grow:").concat(layout.xl.grow, ";-ms-flex-positive:").concat(layout.xl.grow, ";flex-grow:").concat(layout.xl.grow, ";max-width:").concat(layout.xl.width, ";-webkit-flex-basis:").concat(layout.xl.basis, ";-ms-flex-preferred-size:").concat(layout.xl.basis, ";flex-basis:").concat(layout.xl.basis, ";").concat(layout.xl.display, ";}}")
|
|
1074
|
+
})]
|
|
1075
|
+
}));
|
|
1075
1076
|
};
|
|
1076
1077
|
GridBasicItem.displayName = 'GridBasicItem';
|
|
1077
1078
|
|
|
@@ -1084,18 +1085,21 @@ var GridComponent = function GridComponent(_ref) {
|
|
|
1084
1085
|
var _useScale = useScale(),
|
|
1085
1086
|
SCALES = _useScale.SCALES;
|
|
1086
1087
|
var _styles$className = {
|
|
1087
|
-
styles: /*#__PURE__*/
|
|
1088
|
+
styles: /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
1088
1089
|
id: "1271839607",
|
|
1089
|
-
dynamic: [SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.pt(0, 'var(--grid-gap-unit)'), SCALES.pr(0, 'var(--grid-gap-unit)'), SCALES.pb(0, 'var(--grid-gap-unit)'), SCALES.pl(0, 'var(--grid-gap-unit)')]
|
|
1090
|
-
|
|
1090
|
+
dynamic: [SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.pt(0, 'var(--grid-gap-unit)'), SCALES.pr(0, 'var(--grid-gap-unit)'), SCALES.pb(0, 'var(--grid-gap-unit)'), SCALES.pl(0, 'var(--grid-gap-unit)')],
|
|
1091
|
+
children: "div.__jsx-style-dynamic-selector{margin:".concat(SCALES.mt(0), " ").concat(SCALES.mr(0), " ").concat(SCALES.mb(0), " ").concat(SCALES.ml(0), ";box-sizing:border-box;padding:").concat(SCALES.pt(0, 'var(--grid-gap-unit)'), " ").concat(SCALES.pr(0, 'var(--grid-gap-unit)'), " ").concat(SCALES.pb(0, 'var(--grid-gap-unit)'), " ").concat(SCALES.pl(0, 'var(--grid-gap-unit)'), ";}")
|
|
1092
|
+
}),
|
|
1091
1093
|
className: _JSXStyle.dynamic([["1271839607", [SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.pt(0, 'var(--grid-gap-unit)'), SCALES.pr(0, 'var(--grid-gap-unit)'), SCALES.pb(0, 'var(--grid-gap-unit)'), SCALES.pl(0, 'var(--grid-gap-unit)')]]])
|
|
1092
1094
|
},
|
|
1093
1095
|
resolveClassName = _styles$className.className,
|
|
1094
1096
|
styles = _styles$className.styles;
|
|
1095
1097
|
var classes = theme.useClasses(resolveClassName, className);
|
|
1096
|
-
return /*#__PURE__*/
|
|
1098
|
+
return /*#__PURE__*/jsxRuntime.jsxs(GridBasicItem, _objectSpread2(_objectSpread2({
|
|
1097
1099
|
className: classes
|
|
1098
|
-
}, props),
|
|
1100
|
+
}, props), {}, {
|
|
1101
|
+
children: [children, styles]
|
|
1102
|
+
}));
|
|
1099
1103
|
};
|
|
1100
1104
|
GridComponent.displayName = 'Grid';
|
|
1101
1105
|
var Grid = withScale(GridComponent);
|
|
@@ -1117,18 +1121,21 @@ var GridContainerComponent = function GridContainerComponent(_ref) {
|
|
|
1117
1121
|
return "calc(".concat(gap, " * ").concat(unit, " * 1/3)");
|
|
1118
1122
|
}, [gap, unit]);
|
|
1119
1123
|
var _styles$className = {
|
|
1120
|
-
styles: /*#__PURE__*/
|
|
1124
|
+
styles: /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
1121
1125
|
id: "3631618093",
|
|
1122
|
-
dynamic: [gapUnit, wrap, SCALES.width(1, 'var(--grid-container-width)'), SCALES.mt(0, 'var(--grid-container-margin)'), SCALES.mr(0, 'var(--grid-container-margin)'), SCALES.mb(0, 'var(--grid-container-margin)'), SCALES.ml(0, 'var(--grid-container-margin)')]
|
|
1123
|
-
|
|
1126
|
+
dynamic: [gapUnit, wrap, SCALES.width(1, 'var(--grid-container-width)'), SCALES.mt(0, 'var(--grid-container-margin)'), SCALES.mr(0, 'var(--grid-container-margin)'), SCALES.mb(0, 'var(--grid-container-margin)'), SCALES.ml(0, 'var(--grid-container-margin)')],
|
|
1127
|
+
children: "div.__jsx-style-dynamic-selector{--grid-gap-unit:".concat(gapUnit, ";--grid-container-margin:calc(-1 * var(--grid-gap-unit));--grid-container-width:calc(100% + var(--grid-gap-unit) * 2);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:").concat(wrap, ";-ms-flex-wrap:").concat(wrap, ";flex-wrap:").concat(wrap, ";box-sizing:border-box;width:").concat(SCALES.width(1, 'var(--grid-container-width)'), ";margin:").concat(SCALES.mt(0, 'var(--grid-container-margin)'), " ").concat(SCALES.mr(0, 'var(--grid-container-margin)'), " ").concat(SCALES.mb(0, 'var(--grid-container-margin)'), " ").concat(SCALES.ml(0, 'var(--grid-container-margin)'), ";}")
|
|
1128
|
+
}),
|
|
1124
1129
|
className: _JSXStyle.dynamic([["3631618093", [gapUnit, wrap, SCALES.width(1, 'var(--grid-container-width)'), SCALES.mt(0, 'var(--grid-container-margin)'), SCALES.mr(0, 'var(--grid-container-margin)'), SCALES.mb(0, 'var(--grid-container-margin)'), SCALES.ml(0, 'var(--grid-container-margin)')]]])
|
|
1125
1130
|
},
|
|
1126
1131
|
resolveClassName = _styles$className.className,
|
|
1127
1132
|
styles = _styles$className.styles;
|
|
1128
1133
|
var classes = theme.useClasses(resolveClassName, className);
|
|
1129
|
-
return /*#__PURE__*/
|
|
1134
|
+
return /*#__PURE__*/jsxRuntime.jsxs(GridBasicItem, _objectSpread2(_objectSpread2({
|
|
1130
1135
|
className: classes
|
|
1131
|
-
}, props),
|
|
1136
|
+
}, props), {}, {
|
|
1137
|
+
children: [children, styles]
|
|
1138
|
+
}));
|
|
1132
1139
|
};
|
|
1133
1140
|
GridContainerComponent.displayName = 'GridContainer';
|
|
1134
1141
|
var GridContainer = withScale(GridContainerComponent);
|
|
@@ -1144,28 +1151,31 @@ var SelectIconClear = function SelectIconClear(_ref) {
|
|
|
1144
1151
|
event.nativeEvent.stopImmediatePropagation();
|
|
1145
1152
|
onClick && onClick(event);
|
|
1146
1153
|
};
|
|
1147
|
-
return /*#__PURE__*/
|
|
1154
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
1148
1155
|
onClick: clickHandler,
|
|
1149
|
-
className: _JSXStyle.dynamic([["1984024521", [theme$1.palette.accents_3, theme$1.palette.foreground]]]) + " " + "clear-icon"
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1156
|
+
className: _JSXStyle.dynamic([["1984024521", [theme$1.palette.accents_3, theme$1.palette.foreground]]]) + " " + "clear-icon",
|
|
1157
|
+
children: [/*#__PURE__*/jsxRuntime.jsxs("svg", {
|
|
1158
|
+
viewBox: "0 0 24 24",
|
|
1159
|
+
stroke: "currentColor",
|
|
1160
|
+
strokeWidth: "1.5",
|
|
1161
|
+
strokeLinecap: "round",
|
|
1162
|
+
strokeLinejoin: "round",
|
|
1163
|
+
fill: "none",
|
|
1164
|
+
shapeRendering: "geometricPrecision",
|
|
1165
|
+
className: _JSXStyle.dynamic([["1984024521", [theme$1.palette.accents_3, theme$1.palette.foreground]]]),
|
|
1166
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("path", {
|
|
1167
|
+
d: "M18 6L6 18",
|
|
1168
|
+
className: _JSXStyle.dynamic([["1984024521", [theme$1.palette.accents_3, theme$1.palette.foreground]]])
|
|
1169
|
+
}), /*#__PURE__*/jsxRuntime.jsx("path", {
|
|
1170
|
+
d: "M6 6l12 12",
|
|
1171
|
+
className: _JSXStyle.dynamic([["1984024521", [theme$1.palette.accents_3, theme$1.palette.foreground]]])
|
|
1172
|
+
})]
|
|
1173
|
+
}), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
1174
|
+
id: "1984024521",
|
|
1175
|
+
dynamic: [theme$1.palette.accents_3, theme$1.palette.foreground],
|
|
1176
|
+
children: ".clear-icon.__jsx-style-dynamic-selector{padding:0 0 0 0.5em;margin:0;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:100%;cursor:pointer;box-sizing:border-box;-webkit-transition:color 150ms ease 0s;transition:color 150ms ease 0s;color:".concat(theme$1.palette.accents_3, ";visibility:visible;opacity:1;}.clear-icon.__jsx-style-dynamic-selector:hover{color:").concat(theme$1.palette.foreground, ";}svg.__jsx-style-dynamic-selector{color:currentColor;width:1em;height:1em;}")
|
|
1177
|
+
})]
|
|
1178
|
+
});
|
|
1169
1179
|
};
|
|
1170
1180
|
var MemoSelectIconClear = /*#__PURE__*/React.memo(SelectIconClear);
|
|
1171
1181
|
|
|
@@ -1174,14 +1184,18 @@ var SelectMultipleValue = function SelectMultipleValue(_ref) {
|
|
|
1174
1184
|
onClear = _ref.onClear,
|
|
1175
1185
|
children = _ref.children;
|
|
1176
1186
|
var theme$1 = theme.useTheme();
|
|
1177
|
-
return /*#__PURE__*/
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1187
|
+
return /*#__PURE__*/jsxRuntime.jsxs(Grid, {
|
|
1188
|
+
children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
1189
|
+
className: _JSXStyle.dynamic([["3357578496", [theme$1.layout.radius, theme$1.palette.accents_2, disabled ? theme$1.palette.accents_4 : theme$1.palette.accents_6]]]) + " " + "item",
|
|
1190
|
+
children: [children, !!onClear && /*#__PURE__*/jsxRuntime.jsx(MemoSelectIconClear, {
|
|
1191
|
+
onClick: onClear
|
|
1192
|
+
})]
|
|
1193
|
+
}), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
1194
|
+
id: "3357578496",
|
|
1195
|
+
dynamic: [theme$1.layout.radius, theme$1.palette.accents_2, disabled ? theme$1.palette.accents_4 : theme$1.palette.accents_6],
|
|
1196
|
+
children: ".item.__jsx-style-dynamic-selector{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;justify-items:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;line-height:1;padding:0 0.5em;font-size:var(--select-font-size);height:calc(var(--select-font-size) * 2);border-radius:".concat(theme$1.layout.radius, ";background-color:").concat(theme$1.palette.accents_2, ";color:").concat(disabled ? theme$1.palette.accents_4 : theme$1.palette.accents_6, ";}.item.__jsx-style-dynamic-selector>div:not(.clear-icon),.item.__jsx-style-dynamic-selector>div:not(.clear-icon):hover{border-radius:0;background-color:transparent;padding:0;margin:0;color:inherit;}")
|
|
1197
|
+
})]
|
|
1198
|
+
});
|
|
1185
1199
|
};
|
|
1186
1200
|
SelectMultipleValue.displayName = 'SelectMultipleValue';
|
|
1187
1201
|
|
|
@@ -1240,12 +1254,14 @@ var TextChild = function TextChild(_ref) {
|
|
|
1240
1254
|
}, '');
|
|
1241
1255
|
return "".concat(scaleClassNames, " ").concat(className).trim();
|
|
1242
1256
|
}, [mx, my, px, py, font, className]);
|
|
1243
|
-
return /*#__PURE__*/
|
|
1244
|
-
className: _JSXStyle.dynamic([["2277774325", [tag, _color, SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.font(1, 'inherit'), SCALES.ml(0, 'revert'), SCALES.mr(0, 'revert'), SCALES.mt(0, 'revert'), SCALES.mb(0, 'revert'), SCALES.pl(0, 'revert'), SCALES.pr(0, 'revert'), SCALES.pt(0, 'revert'), SCALES.pb(0, 'revert')]]]) + " " + (props && props.className != null && props.className || classNames || "")
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1257
|
+
return /*#__PURE__*/jsxRuntime.jsxs(Component, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
1258
|
+
className: _JSXStyle.dynamic([["2277774325", [tag, _color, SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.font(1, 'inherit'), SCALES.ml(0, 'revert'), SCALES.mr(0, 'revert'), SCALES.mt(0, 'revert'), SCALES.mb(0, 'revert'), SCALES.pl(0, 'revert'), SCALES.pr(0, 'revert'), SCALES.pt(0, 'revert'), SCALES.pb(0, 'revert')]]]) + " " + (props && props.className != null && props.className || classNames || ""),
|
|
1259
|
+
children: [children, /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
1260
|
+
id: "2277774325",
|
|
1261
|
+
dynamic: [tag, _color, SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.font(1, 'inherit'), SCALES.ml(0, 'revert'), SCALES.mr(0, 'revert'), SCALES.mt(0, 'revert'), SCALES.mb(0, 'revert'), SCALES.pl(0, 'revert'), SCALES.pr(0, 'revert'), SCALES.pt(0, 'revert'), SCALES.pb(0, 'revert')],
|
|
1262
|
+
children: "".concat(tag, ".__jsx-style-dynamic-selector{color:").concat(_color, ";width:").concat(SCALES.width(1, 'auto'), ";height:").concat(SCALES.height(1, 'auto'), ";}.font.__jsx-style-dynamic-selector{font-size:").concat(SCALES.font(1, 'inherit'), ";}.mx.__jsx-style-dynamic-selector{margin-left:").concat(SCALES.ml(0, 'revert'), ";margin-right:").concat(SCALES.mr(0, 'revert'), ";}.my.__jsx-style-dynamic-selector{margin-top:").concat(SCALES.mt(0, 'revert'), ";margin-bottom:").concat(SCALES.mb(0, 'revert'), ";}.px.__jsx-style-dynamic-selector{padding-left:").concat(SCALES.pl(0, 'revert'), ";padding-right:").concat(SCALES.pr(0, 'revert'), ";}.py.__jsx-style-dynamic-selector{padding-top:").concat(SCALES.pt(0, 'revert'), ";padding-bottom:").concat(SCALES.pb(0, 'revert'), ";}.no-wrap.__jsx-style-dynamic-selector{white-space:nowrap;}")
|
|
1263
|
+
})]
|
|
1264
|
+
}));
|
|
1249
1265
|
};
|
|
1250
1266
|
TextChild.displayName = 'TextChild';
|
|
1251
1267
|
|
|
@@ -1271,35 +1287,40 @@ var ButtonDrip = function ButtonDrip(_ref) {
|
|
|
1271
1287
|
dripRef.current.removeEventListener('animationend', onCompleted);
|
|
1272
1288
|
};
|
|
1273
1289
|
});
|
|
1274
|
-
return /*#__PURE__*/
|
|
1290
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
1275
1291
|
ref: dripRef,
|
|
1276
|
-
className: "jsx-3424889537" + " " + "drip"
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1292
|
+
className: "jsx-3424889537" + " " + "drip",
|
|
1293
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("svg", {
|
|
1294
|
+
width: "20",
|
|
1295
|
+
height: "20",
|
|
1296
|
+
viewBox: "0 0 20 20",
|
|
1297
|
+
style: {
|
|
1298
|
+
top: top,
|
|
1299
|
+
left: left
|
|
1300
|
+
},
|
|
1301
|
+
className: "jsx-3424889537",
|
|
1302
|
+
children: /*#__PURE__*/jsxRuntime.jsx("g", {
|
|
1303
|
+
stroke: "none",
|
|
1304
|
+
strokeWidth: "1",
|
|
1305
|
+
fill: "none",
|
|
1306
|
+
fillRule: "evenodd",
|
|
1307
|
+
className: "jsx-3424889537",
|
|
1308
|
+
children: /*#__PURE__*/jsxRuntime.jsx("g", {
|
|
1309
|
+
fill: color,
|
|
1310
|
+
className: "jsx-3424889537",
|
|
1311
|
+
children: /*#__PURE__*/jsxRuntime.jsx("rect", {
|
|
1312
|
+
width: "100%",
|
|
1313
|
+
height: "100%",
|
|
1314
|
+
rx: "10",
|
|
1315
|
+
className: "jsx-3424889537"
|
|
1316
|
+
})
|
|
1317
|
+
})
|
|
1318
|
+
})
|
|
1319
|
+
}), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
1320
|
+
id: "3424889537",
|
|
1321
|
+
children: ".drip.jsx-3424889537{position:absolute;left:0;right:0;top:0;bottom:0;}svg.jsx-3424889537{position:absolute;-webkit-animation:350ms ease-in expand-jsx-3424889537;animation:350ms ease-in expand-jsx-3424889537;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;width:1rem;height:1rem;}@-webkit-keyframes expand-jsx-3424889537{0%{opacity:0;-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1);}30%{opacity:1;}80%{opacity:0.5;}100%{-webkit-transform:scale(28);-ms-transform:scale(28);transform:scale(28);opacity:0;}}@keyframes expand-jsx-3424889537{0%{opacity:0;-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1);}30%{opacity:1;}80%{opacity:0.5;}100%{-webkit-transform:scale(28);-ms-transform:scale(28);transform:scale(28);opacity:0;}}"
|
|
1322
|
+
})]
|
|
1323
|
+
});
|
|
1303
1324
|
};
|
|
1304
1325
|
ButtonDrip.displayName = 'ButtonDrip';
|
|
1305
1326
|
|
|
@@ -1331,35 +1352,41 @@ var LoadingComponent = function LoadingComponent(_ref) {
|
|
|
1331
1352
|
var bgColor = React.useMemo(function () {
|
|
1332
1353
|
return getIconBgColor(type, theme$1.palette, color);
|
|
1333
1354
|
}, [type, theme$1.palette, color]);
|
|
1334
|
-
return /*#__PURE__*/
|
|
1335
|
-
className: _JSXStyle.dynamic([["2201634259", [SCALES.font(1), SCALES.width(1, '100%'), SCALES.height(1, '100%'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), theme$1.palette.accents_5, bgColor, spaceRatio]]]) + " " + (props && props.className != null && props.className || classes || "")
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1355
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
1356
|
+
className: _JSXStyle.dynamic([["2201634259", [SCALES.font(1), SCALES.width(1, '100%'), SCALES.height(1, '100%'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), theme$1.palette.accents_5, bgColor, spaceRatio]]]) + " " + (props && props.className != null && props.className || classes || ""),
|
|
1357
|
+
children: [/*#__PURE__*/jsxRuntime.jsxs("span", {
|
|
1358
|
+
className: _JSXStyle.dynamic([["2201634259", [SCALES.font(1), SCALES.width(1, '100%'), SCALES.height(1, '100%'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), theme$1.palette.accents_5, bgColor, spaceRatio]]]) + " " + "loading",
|
|
1359
|
+
children: [children && /*#__PURE__*/jsxRuntime.jsx("label", {
|
|
1360
|
+
className: _JSXStyle.dynamic([["2201634259", [SCALES.font(1), SCALES.width(1, '100%'), SCALES.height(1, '100%'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), theme$1.palette.accents_5, bgColor, spaceRatio]]]),
|
|
1361
|
+
children: children
|
|
1362
|
+
}), /*#__PURE__*/jsxRuntime.jsx("i", {
|
|
1363
|
+
className: _JSXStyle.dynamic([["2201634259", [SCALES.font(1), SCALES.width(1, '100%'), SCALES.height(1, '100%'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), theme$1.palette.accents_5, bgColor, spaceRatio]]])
|
|
1364
|
+
}), /*#__PURE__*/jsxRuntime.jsx("i", {
|
|
1365
|
+
className: _JSXStyle.dynamic([["2201634259", [SCALES.font(1), SCALES.width(1, '100%'), SCALES.height(1, '100%'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), theme$1.palette.accents_5, bgColor, spaceRatio]]])
|
|
1366
|
+
}), /*#__PURE__*/jsxRuntime.jsx("i", {
|
|
1367
|
+
className: _JSXStyle.dynamic([["2201634259", [SCALES.font(1), SCALES.width(1, '100%'), SCALES.height(1, '100%'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), theme$1.palette.accents_5, bgColor, spaceRatio]]])
|
|
1368
|
+
})]
|
|
1369
|
+
}), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
1370
|
+
id: "2201634259",
|
|
1371
|
+
dynamic: [SCALES.font(1), SCALES.width(1, '100%'), SCALES.height(1, '100%'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), theme$1.palette.accents_5, bgColor, spaceRatio],
|
|
1372
|
+
children: ".loading-container.__jsx-style-dynamic-selector{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;position:relative;font-size:".concat(SCALES.font(1), ";width:").concat(SCALES.width(1, '100%'), ";height:").concat(SCALES.height(1, '100%'), ";min-height:1em;padding:").concat(SCALES.pt(0), " ").concat(SCALES.pr(0), " ").concat(SCALES.pb(0), " ").concat(SCALES.pl(0), ";margin:").concat(SCALES.mt(0), " ").concat(SCALES.mr(0), " ").concat(SCALES.mb(0), " ").concat(SCALES.ml(0), ";}label.__jsx-style-dynamic-selector{margin-right:0.5em;color:").concat(theme$1.palette.accents_5, ";line-height:1;}label.__jsx-style-dynamic-selector *{margin:0;}.loading.__jsx-style-dynamic-selector{position:absolute;top:50%;left:50%;width:100%;height:100%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:transparent;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}i.__jsx-style-dynamic-selector{width:0.25em;height:0.25em;border-radius:50%;background-color:").concat(bgColor, ";margin:0 calc(0.25em / 2 * ").concat(spaceRatio, ");display:inline-block;-webkit-animation:loading-blink-__jsx-style-dynamic-selector 1.4s infinite both;animation:loading-blink-__jsx-style-dynamic-selector 1.4s infinite both;}i.__jsx-style-dynamic-selector:nth-child(2){-webkit-animation-delay:0.2s;animation-delay:0.2s;}i.__jsx-style-dynamic-selector:nth-child(3){-webkit-animation-delay:0.4s;animation-delay:0.4s;}@-webkit-keyframes loading-blink-__jsx-style-dynamic-selector{0%{opacity:0.2;}20%{opacity:1;}100%{opacity:0.2;}}@keyframes loading-blink-__jsx-style-dynamic-selector{0%{opacity:0.2;}20%{opacity:1;}100%{opacity:0.2;}}")
|
|
1373
|
+
})]
|
|
1374
|
+
}));
|
|
1350
1375
|
};
|
|
1351
1376
|
LoadingComponent.displayName = 'Loading';
|
|
1352
1377
|
var Loading = withScale(LoadingComponent);
|
|
1353
1378
|
|
|
1354
1379
|
var ButtonLoading = function ButtonLoading(_ref) {
|
|
1355
1380
|
var color = _ref.color;
|
|
1356
|
-
return /*#__PURE__*/
|
|
1357
|
-
className: "jsx-212623367" + " " + "btn-loading"
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1381
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
1382
|
+
className: "jsx-212623367" + " " + "btn-loading",
|
|
1383
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(Loading, {
|
|
1384
|
+
color: color
|
|
1385
|
+
}), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
1386
|
+
id: "212623367",
|
|
1387
|
+
children: ".btn-loading.jsx-212623367{position:absolute;top:0;left:0;right:0;bottom:0;z-index:2;background-color:var(--helpdice-ui-button-bg);}"
|
|
1388
|
+
})]
|
|
1389
|
+
});
|
|
1363
1390
|
};
|
|
1364
1391
|
ButtonLoading.displayName = 'ButtonLoading';
|
|
1365
1392
|
|
|
@@ -1376,11 +1403,13 @@ var ButtonIcon = function ButtonIcon(_ref) {
|
|
|
1376
1403
|
right: isRight,
|
|
1377
1404
|
single: isSingle
|
|
1378
1405
|
}, className);
|
|
1379
|
-
return /*#__PURE__*/
|
|
1380
|
-
className: "jsx-2467502931" + " " + (props && props.className != null && props.className || classes || "")
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1406
|
+
return /*#__PURE__*/jsxRuntime.jsxs("span", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
1407
|
+
className: "jsx-2467502931" + " " + (props && props.className != null && props.className || classes || ""),
|
|
1408
|
+
children: [children, /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
1409
|
+
id: "2467502931",
|
|
1410
|
+
children: ".icon.jsx-2467502931{position:absolute;left:var(--helpdice-ui-button-icon-padding);right:auto;top:50%;-webkit-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:var(--helpdice-ui-button-color);z-index:1;}.right.jsx-2467502931{right:var(--helpdice-ui-button-icon-padding);left:auto;}.icon.jsx-2467502931 svg{background:transparent;height:calc(var(--helpdice-ui-button-height) / 2.35);width:calc(var(--helpdice-ui-button-height) / 2.35);}.single.jsx-2467502931{position:static;-webkit-transform:none;-ms-transform:none;transform:none;}"
|
|
1411
|
+
})]
|
|
1412
|
+
}));
|
|
1384
1413
|
};
|
|
1385
1414
|
ButtonIcon.displayName = 'ButtonIcon';
|
|
1386
1415
|
|
|
@@ -1391,23 +1420,30 @@ var getButtonChildrenWithIcon = function getButtonChildrenWithIcon(auto, childre
|
|
|
1391
1420
|
var isRight = Boolean(iconRight);
|
|
1392
1421
|
var paddingForAutoMode = auto ? "calc(var(--helpdice-ui-button-height) / 2 + var(--helpdice-ui-button-icon-padding) * .5)" : 0;
|
|
1393
1422
|
var classes = theme.useClasses('text', isRight ? 'right' : 'left');
|
|
1394
|
-
if (!hasIcon) return /*#__PURE__*/
|
|
1395
|
-
className: "text"
|
|
1396
|
-
|
|
1423
|
+
if (!hasIcon) return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
1424
|
+
className: "text",
|
|
1425
|
+
children: children
|
|
1426
|
+
});
|
|
1397
1427
|
if (React.Children.count(children) === 0) {
|
|
1398
|
-
return /*#__PURE__*/
|
|
1428
|
+
return /*#__PURE__*/jsxRuntime.jsx(ButtonIcon, {
|
|
1399
1429
|
isRight: isRight,
|
|
1400
|
-
isSingle: true
|
|
1401
|
-
|
|
1430
|
+
isSingle: true,
|
|
1431
|
+
children: hasIcon
|
|
1432
|
+
});
|
|
1402
1433
|
}
|
|
1403
|
-
return /*#__PURE__*/
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1434
|
+
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
1435
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(ButtonIcon, {
|
|
1436
|
+
isRight: isRight,
|
|
1437
|
+
children: hasIcon
|
|
1438
|
+
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
1439
|
+
className: _JSXStyle.dynamic([["3568181479", [paddingForAutoMode, paddingForAutoMode]]]) + " " + (classes || ""),
|
|
1440
|
+
children: [children, /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
1441
|
+
id: "3568181479",
|
|
1442
|
+
dynamic: [paddingForAutoMode, paddingForAutoMode],
|
|
1443
|
+
children: ".left.__jsx-style-dynamic-selector{padding-left:".concat(paddingForAutoMode, ";}.right.__jsx-style-dynamic-selector{padding-right:").concat(paddingForAutoMode, ";}")
|
|
1444
|
+
})]
|
|
1445
|
+
})]
|
|
1446
|
+
});
|
|
1411
1447
|
};
|
|
1412
1448
|
var filterPropsWithGroup = function filterPropsWithGroup(props, config) {
|
|
1413
1449
|
if (!config.isButtonGroup) return props;
|
|
@@ -1811,87 +1847,61 @@ var ButtonComponent = /*#__PURE__*/React.forwardRef(function (btnProps, ref) {
|
|
|
1811
1847
|
|
|
1812
1848
|
// If shadow provided is string then value other default
|
|
1813
1849
|
var btnShadow = typeof shadow === 'string' ? shadow : shadow ? theme$1.shadows.level.z2 : 'none';
|
|
1814
|
-
return /*#__PURE__*/
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1850
|
+
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
1851
|
+
children: [to ? /*#__PURE__*/jsxRuntime.jsxs("a", _objectSpread2(_objectSpread2({
|
|
1852
|
+
href: to
|
|
1853
|
+
}, props), {}, {
|
|
1854
|
+
className: _JSXStyle.dynamic([["612376042", [SCALES.height(2.5), round ? '50%' : theme$1.layout.radius, SCALES.font(0.875), color, bg, shadow ? 'transparent' : border, cursor !== null && cursor !== void 0 ? cursor : 'pointer', events, shadow ? btnShadow : 'none', SCALES.pl(0.727), SCALES.height(2.5), color, bg, auto ? 'min-content' : SCALES.width(10.5), auto ? 'auto' : 'initial', SCALES.height(2.5), SCALES.pt(0), paddingRight, SCALES.pb(0), paddingLeft, SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), hover.color, hover.color, hover.bg, hover.border, cursor, events, btnShadow, shadow ? '-1px' : '0px']]]) + " " + (props && props.className != null && props.className || theme.useClasses('btn', 'btn-link', className) || ""),
|
|
1855
|
+
children: [loading && /*#__PURE__*/jsxRuntime.jsx(ButtonLoading, {
|
|
1856
|
+
color: color
|
|
1857
|
+
}), childrenWithIcon]
|
|
1858
|
+
})) : /*#__PURE__*/jsxRuntime.jsxs("button", _objectSpread2(_objectSpread2({
|
|
1859
|
+
ref: buttonRef,
|
|
1860
|
+
type: type,
|
|
1861
|
+
disabled: disabled,
|
|
1862
|
+
onClick: clickHandler
|
|
1863
|
+
}, props), {}, {
|
|
1864
|
+
className: _JSXStyle.dynamic([["612376042", [SCALES.height(2.5), round ? '50%' : theme$1.layout.radius, SCALES.font(0.875), color, bg, shadow ? 'transparent' : border, cursor !== null && cursor !== void 0 ? cursor : 'pointer', events, shadow ? btnShadow : 'none', SCALES.pl(0.727), SCALES.height(2.5), color, bg, auto ? 'min-content' : SCALES.width(10.5), auto ? 'auto' : 'initial', SCALES.height(2.5), SCALES.pt(0), paddingRight, SCALES.pb(0), paddingLeft, SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), hover.color, hover.color, hover.bg, hover.border, cursor, events, btnShadow, shadow ? '-1px' : '0px']]]) + " " + (props && props.className != null && props.className || theme.useClasses('btn', className) || ""),
|
|
1865
|
+
children: [loading && /*#__PURE__*/jsxRuntime.jsx(ButtonLoading, {
|
|
1866
|
+
color: color
|
|
1867
|
+
}), childrenWithIcon, dripShow && /*#__PURE__*/jsxRuntime.jsx(ButtonDrip, {
|
|
1868
|
+
x: dripX,
|
|
1869
|
+
y: dripY,
|
|
1870
|
+
color: dripColor,
|
|
1871
|
+
onCompleted: dripCompletedHandle
|
|
1872
|
+
})]
|
|
1873
|
+
})), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
1874
|
+
id: "612376042",
|
|
1875
|
+
dynamic: [SCALES.height(2.5), round ? '50%' : theme$1.layout.radius, SCALES.font(0.875), color, bg, shadow ? 'transparent' : border, cursor !== null && cursor !== void 0 ? cursor : 'pointer', events, shadow ? btnShadow : 'none', SCALES.pl(0.727), SCALES.height(2.5), color, bg, auto ? 'min-content' : SCALES.width(10.5), auto ? 'auto' : 'initial', SCALES.height(2.5), SCALES.pt(0), paddingRight, SCALES.pb(0), paddingLeft, SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), hover.color, hover.color, hover.bg, hover.border, cursor, events, btnShadow, shadow ? '-1px' : '0px'],
|
|
1876
|
+
children: ".btn.__jsx-style-dynamic-selector{box-sizing:border-box;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;line-height:".concat(SCALES.height(2.5), ";border-radius:").concat(round ? '50%' : theme$1.layout.radius, ";font-weight:400;font-size:").concat(SCALES.font(0.875), ";-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;outline:none;text-transform:capitalize;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;text-align:center;white-space:nowrap;-webkit-transition:background-color 200ms ease 0ms,box-shadow 200ms ease 0ms, border 200ms ease 0ms,color 200ms ease 0ms;transition:background-color 200ms ease 0ms,box-shadow 200ms ease 0ms, border 200ms ease 0ms,color 200ms ease 0ms;position:relative;overflow:hidden;color:").concat(color, ";background-color:").concat(bg, ";border:1px solid ").concat(shadow ? 'transparent' : border, ";cursor:").concat(cursor !== null && cursor !== void 0 ? cursor : 'pointer', ";pointer-events:").concat(events, ";box-shadow:").concat(shadow ? btnShadow : 'none', ";--helpdice-ui-button-icon-padding:").concat(SCALES.pl(0.727), ";--helpdice-ui-button-height:").concat(SCALES.height(2.5), ";--helpdice-ui-button-color:").concat(color, ";--helpdice-ui-button-bg:").concat(bg, ";min-width:").concat(auto ? 'min-content' : SCALES.width(10.5), ";width:").concat(auto ? 'auto' : 'initial', ";height:").concat(SCALES.height(2.5), ";padding:").concat(SCALES.pt(0), " ").concat(paddingRight, " ").concat(SCALES.pb(0), " ").concat(paddingLeft, ";margin:").concat(SCALES.mt(0), " ").concat(SCALES.mr(0), " ").concat(SCALES.mb(0), " ").concat(SCALES.ml(0), ";}.btn.__jsx-style-dynamic-selector:hover,.btn.__jsx-style-dynamic-selector:focus{color:").concat(hover.color, ";--helpdice-ui-button-color:").concat(hover.color, ";background-color:").concat(hover.bg, ";border-color:").concat(hover.border, ";cursor:").concat(cursor, ";pointer-events:").concat(events, ";box-shadow:").concat(btnShadow, ";}.btn-link.__jsx-style-dynamic-selector{-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}.btn.__jsx-style-dynamic-selector .text{position:relative;z-index:1;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;text-align:center;line-height:inherit;top:-1px;}.btn.__jsx-style-dynamic-selector .text p,.btn.__jsx-style-dynamic-selector .text pre,.btn.__jsx-style-dynamic-selector .text div{margin:0;}.ripple.__jsx-style-dynamic-selector{position:absolute;border-radius:50%;-webkit-transform:scale(0);-ms-transform:scale(0);transform:scale(0);-webkit-animation:ripple-animation-__jsx-style-dynamic-selector 600ms ease-out;animation:ripple-animation-__jsx-style-dynamic-selector 600ms ease-out;background-color:rgba(0,0,0,0.3);pointer-events:none;z-index:1;}@-webkit-keyframes ripple-animation-__jsx-style-dynamic-selector{to{-webkit-transform:scale(2.5);-ms-transform:scale(2.5);transform:scale(2.5);opacity:0;}}@keyframes ripple-animation-__jsx-style-dynamic-selector{to{-webkit-transform:scale(2.5);-ms-transform:scale(2.5);transform:scale(2.5);opacity:0;}}")
|
|
1877
|
+
})]
|
|
1878
|
+
});
|
|
1838
1879
|
});
|
|
1839
1880
|
ButtonComponent.displayName = 'Button';
|
|
1840
1881
|
var Button = withScale(ButtonComponent);
|
|
1841
1882
|
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
var CompactButton = function CompactButton(_ref) {
|
|
1845
|
-
_ref.color;
|
|
1846
|
-
var children = _ref.children,
|
|
1847
|
-
iconRight = _ref.iconRight,
|
|
1848
|
-
icon = _ref.icon,
|
|
1849
|
-
_ref$scale = _ref.scale,
|
|
1850
|
-
scale = _ref$scale === void 0 ? 2 / 3 : _ref$scale,
|
|
1851
|
-
type = _ref.type,
|
|
1852
|
-
style = _ref.style,
|
|
1853
|
-
onClick = _ref.onClick,
|
|
1854
|
-
to = _ref.to;
|
|
1883
|
+
var CompactButton = function CompactButton(props) {
|
|
1855
1884
|
// const theme = useTheme();
|
|
1856
|
-
return /*#__PURE__*/
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
px: 0.6,
|
|
1865
|
-
iconRight: iconRight
|
|
1866
|
-
}, children);
|
|
1885
|
+
return /*#__PURE__*/jsxRuntime.jsx(Button, _objectSpread2(_objectSpread2({
|
|
1886
|
+
scale: 2 / 3,
|
|
1887
|
+
px: 0.6
|
|
1888
|
+
}, _objectSpread2({
|
|
1889
|
+
auto: true
|
|
1890
|
+
}, props)), {}, {
|
|
1891
|
+
children: props.children
|
|
1892
|
+
}));
|
|
1867
1893
|
};
|
|
1868
1894
|
var IconButton = /*#__PURE__*/React.memo(CompactButton);
|
|
1869
1895
|
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
var SmallButton = function SmallButton(_ref) {
|
|
1873
|
-
_ref.color;
|
|
1874
|
-
var children = _ref.children,
|
|
1875
|
-
iconRight = _ref.iconRight,
|
|
1876
|
-
icon = _ref.icon,
|
|
1877
|
-
_ref$scale = _ref.scale,
|
|
1878
|
-
scale = _ref$scale === void 0 ? 2 / 3 : _ref$scale,
|
|
1879
|
-
type = _ref.type,
|
|
1880
|
-
style = _ref.style,
|
|
1881
|
-
onClick = _ref.onClick,
|
|
1882
|
-
to = _ref.to;
|
|
1896
|
+
var SmallButton = function SmallButton(props) {
|
|
1883
1897
|
// const theme = useTheme();
|
|
1884
|
-
return /*#__PURE__*/
|
|
1885
|
-
to: to,
|
|
1886
|
-
icon: icon,
|
|
1887
|
-
style: style,
|
|
1888
|
-
type: type,
|
|
1889
|
-
onClick: onClick,
|
|
1898
|
+
return /*#__PURE__*/jsxRuntime.jsx(Button, _objectSpread2(_objectSpread2({
|
|
1890
1899
|
auto: true,
|
|
1891
|
-
scale:
|
|
1892
|
-
px: 0.6
|
|
1893
|
-
|
|
1894
|
-
|
|
1900
|
+
scale: 2 / 3,
|
|
1901
|
+
px: 0.6
|
|
1902
|
+
}, props), {}, {
|
|
1903
|
+
children: props.children
|
|
1904
|
+
}));
|
|
1895
1905
|
};
|
|
1896
1906
|
var SmallButton$1 = /*#__PURE__*/React.memo(SmallButton);
|
|
1897
1907
|
|
|
@@ -1904,9 +1914,10 @@ var _excluded$2 = ["h1", "h2", "h3", "h4", "h5", "h6", "p", "b", "small", "i", "
|
|
|
1904
1914
|
var _getModifierChild = function getModifierChild(tags, children) {
|
|
1905
1915
|
if (!tags.length) return children;
|
|
1906
1916
|
var nextTag = tags.slice(1, tags.length);
|
|
1907
|
-
return /*#__PURE__*/
|
|
1908
|
-
tag: tags[0]
|
|
1909
|
-
|
|
1917
|
+
return /*#__PURE__*/jsxRuntime.jsx(TextChild, {
|
|
1918
|
+
tag: tags[0],
|
|
1919
|
+
children: _getModifierChild(nextTag, children)
|
|
1920
|
+
});
|
|
1910
1921
|
};
|
|
1911
1922
|
var TextComponent = function TextComponent(_ref) {
|
|
1912
1923
|
var _ref$h = _ref.h1,
|
|
@@ -2000,7 +2011,7 @@ var TextComponent = function TextComponent(_ref) {
|
|
|
2000
2011
|
if (!renderableChildElements.length) return children;
|
|
2001
2012
|
return _getModifierChild(renderableChildElements, children);
|
|
2002
2013
|
}, [renderableChildElements, children]);
|
|
2003
|
-
return /*#__PURE__*/
|
|
2014
|
+
return /*#__PURE__*/jsxRuntime.jsx(TextChild, _objectSpread2(_objectSpread2({
|
|
2004
2015
|
style: {
|
|
2005
2016
|
textAlign: props.align,
|
|
2006
2017
|
display: display,
|
|
@@ -2009,21 +2020,28 @@ var TextComponent = function TextComponent(_ref) {
|
|
|
2009
2020
|
},
|
|
2010
2021
|
className: "".concat(className, " ").concat(noWrap ? 'no-wrap' : ''),
|
|
2011
2022
|
tag: tag
|
|
2012
|
-
}, props),
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2023
|
+
}, props), {}, {
|
|
2024
|
+
children: typeof children === 'string' && collapse > 50 ? /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
2025
|
+
children: [expand ? modifers : (modifers === null || modifers === void 0 ? void 0 : modifers.toString().substring(0, collapse)) + '...', /*#__PURE__*/jsxRuntime.jsx(Button, {
|
|
2026
|
+
margin: 0,
|
|
2027
|
+
onClick: function onClick() {
|
|
2028
|
+
return setExpand(!expand);
|
|
2029
|
+
},
|
|
2030
|
+
style: {
|
|
2031
|
+
textTransform: 'lowercase'
|
|
2032
|
+
},
|
|
2033
|
+
effect: false,
|
|
2034
|
+
color: "abort",
|
|
2035
|
+
scale: 2 / 3,
|
|
2036
|
+
px: 0.2,
|
|
2037
|
+
py: 0,
|
|
2038
|
+
auto: true,
|
|
2039
|
+
children: /*#__PURE__*/jsxRuntime.jsx("b", {
|
|
2040
|
+
children: expand ? 'less' : 'more'
|
|
2041
|
+
})
|
|
2042
|
+
})]
|
|
2043
|
+
}) : modifers
|
|
2044
|
+
}));
|
|
2027
2045
|
};
|
|
2028
2046
|
TextComponent.displayName = 'Text';
|
|
2029
2047
|
var Text = withScale(TextComponent);
|
|
@@ -2079,20 +2097,23 @@ var SelectInput = /*#__PURE__*/React.forwardRef(function (_ref, inputRef) {
|
|
|
2079
2097
|
(_ref$current = ref.current) === null || _ref$current === void 0 || _ref$current.focus();
|
|
2080
2098
|
}
|
|
2081
2099
|
}, [visible]);
|
|
2082
|
-
return /*#__PURE__*/
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2100
|
+
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
2101
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("input", {
|
|
2102
|
+
ref: ref,
|
|
2103
|
+
type: "search",
|
|
2104
|
+
role: "combobox",
|
|
2105
|
+
"aria-haspopup": "listbox",
|
|
2106
|
+
readOnly: true,
|
|
2107
|
+
unselectable: "on",
|
|
2108
|
+
"aria-expanded": visible,
|
|
2109
|
+
onBlur: onBlur,
|
|
2110
|
+
onFocus: onFocus,
|
|
2111
|
+
className: "jsx-2813108835"
|
|
2112
|
+
}), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
2113
|
+
id: "2813108835",
|
|
2114
|
+
children: "input.jsx-2813108835{position:fixed;top:-10000px;left:-10000px;opacity:0;z-index:-1;width:0;height:0;padding:0;font-size:0;border:none;}"
|
|
2115
|
+
})]
|
|
2116
|
+
});
|
|
2096
2117
|
});
|
|
2097
2118
|
SelectInput.displayName = 'SelectInput';
|
|
2098
2119
|
|
|
@@ -2234,12 +2255,13 @@ var SelectComponent = /*#__PURE__*/React.forwardRef(function (_ref, selectRef) {
|
|
|
2234
2255
|
if (! /*#__PURE__*/React.isValidElement(_child)) return null;
|
|
2235
2256
|
var el = /*#__PURE__*/React.cloneElement(_child); // { preventAllEvents: true }
|
|
2236
2257
|
if (!multiple) return el;
|
|
2237
|
-
return /*#__PURE__*/
|
|
2258
|
+
return /*#__PURE__*/jsxRuntime.jsx(SelectMultipleValue, {
|
|
2238
2259
|
disabled: disabled,
|
|
2239
2260
|
onClear: clearable ? function () {
|
|
2240
2261
|
return updateValue(_child.props.value);
|
|
2241
|
-
} : null
|
|
2242
|
-
|
|
2262
|
+
} : null,
|
|
2263
|
+
children: el
|
|
2264
|
+
});
|
|
2243
2265
|
});
|
|
2244
2266
|
}, [value, children, multiple]);
|
|
2245
2267
|
var onInputBlur = function onInputBlur() {
|
|
@@ -2250,64 +2272,76 @@ var SelectComponent = /*#__PURE__*/React.forwardRef(function (_ref, selectRef) {
|
|
|
2250
2272
|
active: selectFocus || visible,
|
|
2251
2273
|
multiple: multiple
|
|
2252
2274
|
}, className);
|
|
2253
|
-
return /*#__PURE__*/
|
|
2254
|
-
className: _JSXStyle.dynamic([["1795507141", [disabled ? 'not-allowed' : 'pointer', border, theme$1.layout.radius, disabled ? theme$1.palette.accents_1 : theme$1.palette.background, SCALES.font(0.875), SCALES.height(2.25), SCALES.width(1, fullWidth ? '100%' : 'initial'), SCALES.pt(0), SCALES.pr(0.334), SCALES.pb(0), SCALES.pl(0.667), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.pt(0.334), SCALES.pr(0.334), SCALES.pb(0.334), SCALES.pl(0.667), disabled ? theme$1.palette.border : borderActive, disabled ? theme$1.palette.accents_5 : borderActive, disabled ? theme$1.palette.accents_4 : theme$1.palette.foreground, placeholderColor, theme$1.layout.gapQuarter, visible ? '180' : '0', iconBorder]]])
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2275
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
2276
|
+
className: _JSXStyle.dynamic([["1795507141", [disabled ? 'not-allowed' : 'pointer', border, theme$1.layout.radius, disabled ? theme$1.palette.accents_1 : theme$1.palette.background, SCALES.font(0.875), SCALES.height(2.25), SCALES.width(1, fullWidth ? '100%' : 'initial'), SCALES.pt(0), SCALES.pr(0.334), SCALES.pb(0), SCALES.pl(0.667), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.pt(0.334), SCALES.pr(0.334), SCALES.pb(0.334), SCALES.pl(0.667), disabled ? theme$1.palette.border : borderActive, disabled ? theme$1.palette.accents_5 : borderActive, disabled ? theme$1.palette.accents_4 : theme$1.palette.foreground, placeholderColor, theme$1.layout.gapQuarter, visible ? '180' : '0', iconBorder]]]),
|
|
2277
|
+
children: [label && /*#__PURE__*/jsxRuntime.jsx("label", {
|
|
2278
|
+
style: {
|
|
2279
|
+
display: 'block',
|
|
2280
|
+
marginBottom: '0.4rem',
|
|
2281
|
+
fontSize: '14px',
|
|
2282
|
+
fontWeight: 'light'
|
|
2283
|
+
},
|
|
2284
|
+
className: _JSXStyle.dynamic([["1795507141", [disabled ? 'not-allowed' : 'pointer', border, theme$1.layout.radius, disabled ? theme$1.palette.accents_1 : theme$1.palette.background, SCALES.font(0.875), SCALES.height(2.25), SCALES.width(1, fullWidth ? '100%' : 'initial'), SCALES.pt(0), SCALES.pr(0.334), SCALES.pb(0), SCALES.pl(0.667), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.pt(0.334), SCALES.pr(0.334), SCALES.pb(0.334), SCALES.pl(0.667), disabled ? theme$1.palette.border : borderActive, disabled ? theme$1.palette.accents_5 : borderActive, disabled ? theme$1.palette.accents_4 : theme$1.palette.foreground, placeholderColor, theme$1.layout.gapQuarter, visible ? '180' : '0', iconBorder]]]),
|
|
2285
|
+
children: label
|
|
2286
|
+
}), /*#__PURE__*/jsxRuntime.jsx(SelectContext.Provider, {
|
|
2287
|
+
value: initialValue,
|
|
2288
|
+
children: /*#__PURE__*/jsxRuntime.jsxs("div", _objectSpread2(_objectSpread2({
|
|
2289
|
+
ref: ref,
|
|
2290
|
+
onClick: clickHandler,
|
|
2291
|
+
onMouseDown: mouseDownHandler
|
|
2292
|
+
}, props), {}, {
|
|
2293
|
+
className: _JSXStyle.dynamic([["1795507141", [disabled ? 'not-allowed' : 'pointer', border, theme$1.layout.radius, disabled ? theme$1.palette.accents_1 : theme$1.palette.background, SCALES.font(0.875), SCALES.height(2.25), SCALES.width(1, fullWidth ? '100%' : 'initial'), SCALES.pt(0), SCALES.pr(0.334), SCALES.pb(0), SCALES.pl(0.667), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.pt(0.334), SCALES.pr(0.334), SCALES.pb(0.334), SCALES.pl(0.667), disabled ? theme$1.palette.border : borderActive, disabled ? theme$1.palette.accents_5 : borderActive, disabled ? theme$1.palette.accents_4 : theme$1.palette.foreground, placeholderColor, theme$1.layout.gapQuarter, visible ? '180' : '0', iconBorder]]]) + " " + (props && props.className != null && props.className || classes || ""),
|
|
2294
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(SelectInput, {
|
|
2295
|
+
ref: inputRef,
|
|
2296
|
+
visible: visible,
|
|
2297
|
+
onBlur: onInputBlur,
|
|
2298
|
+
onFocus: function onFocus() {
|
|
2299
|
+
return setSelectFocus(true);
|
|
2300
|
+
}
|
|
2301
|
+
}), isEmpty && /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
2302
|
+
className: _JSXStyle.dynamic([["1795507141", [disabled ? 'not-allowed' : 'pointer', border, theme$1.layout.radius, disabled ? theme$1.palette.accents_1 : theme$1.palette.background, SCALES.font(0.875), SCALES.height(2.25), SCALES.width(1, fullWidth ? '100%' : 'initial'), SCALES.pt(0), SCALES.pr(0.334), SCALES.pb(0), SCALES.pl(0.667), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.pt(0.334), SCALES.pr(0.334), SCALES.pb(0.334), SCALES.pl(0.667), disabled ? theme$1.palette.border : borderActive, disabled ? theme$1.palette.accents_5 : borderActive, disabled ? theme$1.palette.accents_4 : theme$1.palette.foreground, placeholderColor, theme$1.layout.gapQuarter, visible ? '180' : '0', iconBorder]]]) + " " + "value placeholder",
|
|
2303
|
+
children: /*#__PURE__*/jsxRuntime.jsx(theme.Ellipsis, {
|
|
2304
|
+
height: "var(--select-height)",
|
|
2305
|
+
children: placeholder
|
|
2306
|
+
})
|
|
2307
|
+
}), value && !multiple && /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
2308
|
+
className: _JSXStyle.dynamic([["1795507141", [disabled ? 'not-allowed' : 'pointer', border, theme$1.layout.radius, disabled ? theme$1.palette.accents_1 : theme$1.palette.background, SCALES.font(0.875), SCALES.height(2.25), SCALES.width(1, fullWidth ? '100%' : 'initial'), SCALES.pt(0), SCALES.pr(0.334), SCALES.pb(0), SCALES.pl(0.667), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.pt(0.334), SCALES.pr(0.334), SCALES.pb(0.334), SCALES.pl(0.667), disabled ? theme$1.palette.border : borderActive, disabled ? theme$1.palette.accents_5 : borderActive, disabled ? theme$1.palette.accents_4 : theme$1.palette.foreground, placeholderColor, theme$1.layout.gapQuarter, visible ? '180' : '0', iconBorder]]]) + " " + "value",
|
|
2309
|
+
children: selectedChild
|
|
2310
|
+
}), value && multiple && /*#__PURE__*/jsxRuntime.jsx(Grid.Container, {
|
|
2311
|
+
gap: 0.5,
|
|
2312
|
+
children: selectedChild
|
|
2313
|
+
}), /*#__PURE__*/jsxRuntime.jsx(SelectDropdown, {
|
|
2314
|
+
ref: dropdownRef,
|
|
2315
|
+
visible: visible,
|
|
2316
|
+
className: dropdownClassName,
|
|
2317
|
+
dropdownStyle: dropdownStyle,
|
|
2318
|
+
disableMatchWidth: disableMatchWidth,
|
|
2319
|
+
getPopupContainer: getPopupContainer,
|
|
2320
|
+
children: children
|
|
2321
|
+
}), !pure && /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
2322
|
+
className: _JSXStyle.dynamic([["1795507141", [disabled ? 'not-allowed' : 'pointer', border, theme$1.layout.radius, disabled ? theme$1.palette.accents_1 : theme$1.palette.background, SCALES.font(0.875), SCALES.height(2.25), SCALES.width(1, fullWidth ? '100%' : 'initial'), SCALES.pt(0), SCALES.pr(0.334), SCALES.pb(0), SCALES.pl(0.667), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.pt(0.334), SCALES.pr(0.334), SCALES.pb(0.334), SCALES.pl(0.667), disabled ? theme$1.palette.border : borderActive, disabled ? theme$1.palette.accents_5 : borderActive, disabled ? theme$1.palette.accents_4 : theme$1.palette.foreground, placeholderColor, theme$1.layout.gapQuarter, visible ? '180' : '0', iconBorder]]]) + " " + "icon",
|
|
2323
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Icon, {
|
|
2324
|
+
className: _JSXStyle.dynamic([["1795507141", [disabled ? 'not-allowed' : 'pointer', border, theme$1.layout.radius, disabled ? theme$1.palette.accents_1 : theme$1.palette.background, SCALES.font(0.875), SCALES.height(2.25), SCALES.width(1, fullWidth ? '100%' : 'initial'), SCALES.pt(0), SCALES.pr(0.334), SCALES.pb(0), SCALES.pl(0.667), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.pt(0.334), SCALES.pr(0.334), SCALES.pb(0.334), SCALES.pl(0.667), disabled ? theme$1.palette.border : borderActive, disabled ? theme$1.palette.accents_5 : borderActive, disabled ? theme$1.palette.accents_4 : theme$1.palette.foreground, placeholderColor, theme$1.layout.gapQuarter, visible ? '180' : '0', iconBorder]]])
|
|
2325
|
+
})
|
|
2326
|
+
})]
|
|
2327
|
+
}))
|
|
2328
|
+
}), helperText && /*#__PURE__*/jsxRuntime.jsxs(Text, {
|
|
2329
|
+
font: 0.8,
|
|
2330
|
+
style: {
|
|
2331
|
+
marginTop: 0.4,
|
|
2332
|
+
marginRight: 0,
|
|
2333
|
+
marginLeft: 0,
|
|
2334
|
+
marginBottom: '0.4rem',
|
|
2335
|
+
textAlign: 'left'
|
|
2336
|
+
},
|
|
2337
|
+
color: error ? "error" : 'default',
|
|
2338
|
+
children: ["\xA0", helperText]
|
|
2339
|
+
}), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
2340
|
+
id: "1795507141",
|
|
2341
|
+
dynamic: [disabled ? 'not-allowed' : 'pointer', border, theme$1.layout.radius, disabled ? theme$1.palette.accents_1 : theme$1.palette.background, SCALES.font(0.875), SCALES.height(2.25), SCALES.width(1, fullWidth ? '100%' : 'initial'), SCALES.pt(0), SCALES.pr(0.334), SCALES.pb(0), SCALES.pl(0.667), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.pt(0.334), SCALES.pr(0.334), SCALES.pb(0.334), SCALES.pl(0.667), disabled ? theme$1.palette.border : borderActive, disabled ? theme$1.palette.accents_5 : borderActive, disabled ? theme$1.palette.accents_4 : theme$1.palette.foreground, placeholderColor, theme$1.layout.gapQuarter, visible ? '180' : '0', iconBorder],
|
|
2342
|
+
children: ".select.__jsx-style-dynamic-selector{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap;position:relative;cursor:".concat(disabled ? 'not-allowed' : 'pointer', ";max-width:90vw;overflow:hidden;-webkit-transition:border 150ms ease-in 0s,color 200ms ease-out 0s, box-shadow 200ms ease 0s;transition:border 150ms ease-in 0s,color 200ms ease-out 0s, box-shadow 200ms ease 0s;border:1px solid ").concat(border, ";border-radius:").concat(theme$1.layout.radius, ";background-color:").concat(disabled ? theme$1.palette.accents_1 : theme$1.palette.background, ";--select-font-size:").concat(SCALES.font(0.875), ";--select-height:").concat(SCALES.height(2.25), ";min-width:11.5em;width:").concat(SCALES.width(1, fullWidth ? '100%' : 'initial'), ";height:var(--select-height);padding:").concat(SCALES.pt(0), " ").concat(SCALES.pr(0.334), " ").concat(SCALES.pb(0), " ").concat(SCALES.pl(0.667), ";margin:").concat(SCALES.mt(0), " ").concat(SCALES.mr(0), " ").concat(SCALES.mb(0), " ").concat(SCALES.ml(0), ";}.multiple.__jsx-style-dynamic-selector{height:auto;min-height:var(--select-height);padding:").concat(SCALES.pt(0.334), " ").concat(SCALES.pr(0.334), " ").concat(SCALES.pb(0.334), " ").concat(SCALES.pl(0.667), ";}.select.active.__jsx-style-dynamic-selector,.select.__jsx-style-dynamic-selector:hover{border-color:").concat(disabled ? theme$1.palette.border : borderActive, ";}.select.active.icon.__jsx-style-dynamic-selector,.select.__jsx-style-dynamic-selector:hover .icon.__jsx-style-dynamic-selector{color:").concat(disabled ? theme$1.palette.accents_5 : borderActive, ";}.value.__jsx-style-dynamic-selector{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-flex:1;-ms-flex:1;flex:1;height:100%;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;line-height:1;padding:0;margin-right:1.25em;font-size:var(--select-font-size);color:").concat(disabled ? theme$1.palette.accents_4 : theme$1.palette.foreground, ";width:calc(100% - 1.25em);}.value.__jsx-style-dynamic-selector>div,.value.__jsx-style-dynamic-selector>div:hover{border-radius:0;background-color:transparent;padding:0;margin:0;color:inherit;}.placeholder.__jsx-style-dynamic-selector{color:").concat(placeholderColor, ";}.icon.__jsx-style-dynamic-selector{position:absolute;right:").concat(theme$1.layout.gapQuarter, ";font-size:var(--select-font-size);top:50%;bottom:0;-webkit-transform:translateY(-50%) rotate(").concat(visible ? '180' : '0', "deg);-ms-transform:translateY(-50%) rotate(").concat(visible ? '180' : '0', "deg);transform:translateY(-50%) rotate(").concat(visible ? '180' : '0', "deg);pointer-events:none;-webkit-transition:-webkit-transform 200ms ease;-webkit-transition:transform 200ms ease;transition:transform 200ms ease;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:").concat(iconBorder, ";}")
|
|
2343
|
+
})]
|
|
2344
|
+
});
|
|
2311
2345
|
});
|
|
2312
2346
|
SelectComponent.displayName = 'Select';
|
|
2313
2347
|
var Select = withScale(SelectComponent);
|
|
@@ -2387,16 +2421,19 @@ var SelectOptionComponent = function SelectOptionComponent(_ref) {
|
|
|
2387
2421
|
if (isDisabled || isLabel) return;
|
|
2388
2422
|
updateValue && updateValue(identValue);
|
|
2389
2423
|
};
|
|
2390
|
-
return /*#__PURE__*/
|
|
2424
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", _objectSpread2(_objectSpread2({
|
|
2391
2425
|
onClick: clickHandler
|
|
2392
|
-
}, props, {
|
|
2393
|
-
className: _JSXStyle.dynamic([["199367556", [bgColor, color, isDisabled ? 'not-allowed' : 'pointer', SCALES.font(0.75), SCALES.width(1, '100%'), SCALES.height(2.25), SCALES.pt(0), SCALES.pr(0.667), SCALES.pb(0), SCALES.pl(0.667), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), hoverBgColor, theme$1.palette.accents_7, theme$1.palette.border, SCALES.width(1, '100%'), SCALES.height(1, 0), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0.5), SCALES.mr(0), SCALES.mb(0.5), SCALES.ml(0), theme$1.palette.accents_7, theme$1.palette.border, SCALES.font(0.875), SCALES.width(1, '100%')]]]) + " " + (props && props.className != null && props.className || classes || "")
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2426
|
+
}, props), {}, {
|
|
2427
|
+
className: _JSXStyle.dynamic([["199367556", [bgColor, color, isDisabled ? 'not-allowed' : 'pointer', SCALES.font(0.75), SCALES.width(1, '100%'), SCALES.height(2.25), SCALES.pt(0), SCALES.pr(0.667), SCALES.pb(0), SCALES.pl(0.667), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), hoverBgColor, theme$1.palette.accents_7, theme$1.palette.border, SCALES.width(1, '100%'), SCALES.height(1, 0), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0.5), SCALES.mr(0), SCALES.mb(0.5), SCALES.ml(0), theme$1.palette.accents_7, theme$1.palette.border, SCALES.font(0.875), SCALES.width(1, '100%')]]]) + " " + (props && props.className != null && props.className || classes || ""),
|
|
2428
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(theme.Ellipsis, {
|
|
2429
|
+
height: SCALES.height(2.25),
|
|
2430
|
+
children: children
|
|
2431
|
+
}), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
2432
|
+
id: "199367556",
|
|
2433
|
+
dynamic: [bgColor, color, isDisabled ? 'not-allowed' : 'pointer', SCALES.font(0.75), SCALES.width(1, '100%'), SCALES.height(2.25), SCALES.pt(0), SCALES.pr(0.667), SCALES.pb(0), SCALES.pl(0.667), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), hoverBgColor, theme$1.palette.accents_7, theme$1.palette.border, SCALES.width(1, '100%'), SCALES.height(1, 0), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0.5), SCALES.mr(0), SCALES.mb(0.5), SCALES.ml(0), theme$1.palette.accents_7, theme$1.palette.border, SCALES.font(0.875), SCALES.width(1, '100%')],
|
|
2434
|
+
children: ".option.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;max-width:100%;box-sizing:border-box;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;font-weight:normal;background-color:".concat(bgColor, ";color:").concat(color, ";-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border:0;cursor:").concat(isDisabled ? 'not-allowed' : 'pointer', ";-webkit-transition:background 0.2s ease 0s,border-color 0.2s ease 0s;transition:background 0.2s ease 0s,border-color 0.2s ease 0s;--select-font-size:").concat(SCALES.font(0.75), ";font-size:var(--select-font-size);width:").concat(SCALES.width(1, '100%'), ";height:").concat(SCALES.height(2.25), ";padding:").concat(SCALES.pt(0), " ").concat(SCALES.pr(0.667), " ").concat(SCALES.pb(0), " ").concat(SCALES.pl(0.667), ";margin:").concat(SCALES.mt(0), " ").concat(SCALES.mr(0), " ").concat(SCALES.mb(0), " ").concat(SCALES.ml(0), ";}.option.__jsx-style-dynamic-selector:hover{background-color:").concat(hoverBgColor, ";color:").concat(theme$1.palette.accents_7, ";}.divider.__jsx-style-dynamic-selector{line-height:0;overflow:hidden;border-top:1px solid ").concat(theme$1.palette.border, ";width:").concat(SCALES.width(1, '100%'), ";height:").concat(SCALES.height(1, 0), ";padding:").concat(SCALES.pt(0), " ").concat(SCALES.pr(0), " ").concat(SCALES.pb(0), " ").concat(SCALES.pl(0), ";margin:").concat(SCALES.mt(0.5), " ").concat(SCALES.mr(0), " ").concat(SCALES.mb(0.5), " ").concat(SCALES.ml(0), ";}.label.__jsx-style-dynamic-selector{color:").concat(theme$1.palette.accents_7, ";border-bottom:1px solid ").concat(theme$1.palette.border, ";text-transform:capitalize;cursor:default;font-size:").concat(SCALES.font(0.875), ";width:").concat(SCALES.width(1, '100%'), ";font-weight:500;}")
|
|
2435
|
+
})]
|
|
2436
|
+
}));
|
|
2400
2437
|
};
|
|
2401
2438
|
SelectOptionComponent.displayName = 'SelectOption';
|
|
2402
2439
|
var SelectOption = withScale(SelectOptionComponent);
|