@helpdice/ui 2.5.8-beta.0 → 2.5.9
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 +4172 -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 +2216 -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
|
@@ -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
|
var icons = require('@helpdice/icons');
|
|
8
9
|
|
|
9
10
|
function _arrayLikeToArray(r, a) {
|
|
@@ -73,15 +74,6 @@ function _defineProperty(e, r, t) {
|
|
|
73
74
|
writable: true
|
|
74
75
|
}) : e[r] = t, e;
|
|
75
76
|
}
|
|
76
|
-
function _extends() {
|
|
77
|
-
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
78
|
-
for (var e = 1; e < arguments.length; e++) {
|
|
79
|
-
var t = arguments[e];
|
|
80
|
-
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
81
|
-
}
|
|
82
|
-
return n;
|
|
83
|
-
}, _extends.apply(null, arguments);
|
|
84
|
-
}
|
|
85
77
|
function _iterableToArray(r) {
|
|
86
78
|
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
87
79
|
}
|
|
@@ -734,24 +726,28 @@ var InputLabel = function InputLabel(_ref) {
|
|
|
734
726
|
var children = _ref.children,
|
|
735
727
|
isRight = _ref.isRight;
|
|
736
728
|
var theme$1 = theme.useTheme();
|
|
737
|
-
return /*#__PURE__*/
|
|
738
|
-
className: _JSXStyle.dynamic([["3089782703", [theme$1.layout.gapHalf, theme$1.palette.accents_4, theme$1.palette.accents_1, theme$1.layout.radius, theme$1.layout.radius, theme$1.palette.border, theme$1.palette.border, theme$1.palette.border, theme$1.layout.radius, theme$1.layout.radius, theme$1.palette.border]]]) + " " + ((isRight ? 'right' : '') || "")
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
729
|
+
return /*#__PURE__*/jsxRuntime.jsxs("span", {
|
|
730
|
+
className: _JSXStyle.dynamic([["3089782703", [theme$1.layout.gapHalf, theme$1.palette.accents_4, theme$1.palette.accents_1, theme$1.layout.radius, theme$1.layout.radius, theme$1.palette.border, theme$1.palette.border, theme$1.palette.border, theme$1.layout.radius, theme$1.layout.radius, theme$1.palette.border]]]) + " " + ((isRight ? 'right' : '') || ""),
|
|
731
|
+
children: [children, /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
732
|
+
id: "3089782703",
|
|
733
|
+
dynamic: [theme$1.layout.gapHalf, theme$1.palette.accents_4, theme$1.palette.accents_1, theme$1.layout.radius, theme$1.layout.radius, theme$1.palette.border, theme$1.palette.border, theme$1.palette.border, theme$1.layout.radius, theme$1.layout.radius, theme$1.palette.border],
|
|
734
|
+
children: "span.__jsx-style-dynamic-selector{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;width:initial;height:100%;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;pointer-events:none;margin:0;padding:0 ".concat(theme$1.layout.gapHalf, ";color:").concat(theme$1.palette.accents_4, ";background-color:").concat(theme$1.palette.accents_1, ";border-top-left-radius:").concat(theme$1.layout.radius, ";border-bottom-left-radius:").concat(theme$1.layout.radius, ";border-top:1px solid ").concat(theme$1.palette.border, ";border-left:1px solid ").concat(theme$1.palette.border, ";border-bottom:1px solid ").concat(theme$1.palette.border, ";font-size:inherit;line-height:1;}span.right.__jsx-style-dynamic-selector{border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:").concat(theme$1.layout.radius, ";border-bottom-right-radius:").concat(theme$1.layout.radius, ";border-left:0;border-right:1px solid ").concat(theme$1.palette.border, ";}")
|
|
735
|
+
})]
|
|
736
|
+
});
|
|
743
737
|
};
|
|
744
738
|
var MemoInputLabel = /*#__PURE__*/React.memo(InputLabel);
|
|
745
739
|
|
|
746
740
|
var InputBlockLabelComponent = function InputBlockLabelComponent(_ref) {
|
|
747
741
|
var children = _ref.children;
|
|
748
742
|
var theme$1 = theme.useTheme();
|
|
749
|
-
return /*#__PURE__*/
|
|
750
|
-
className: _JSXStyle.dynamic([["1278828862", [theme$1.palette.accents_6]]])
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
743
|
+
return /*#__PURE__*/jsxRuntime.jsxs("label", {
|
|
744
|
+
className: _JSXStyle.dynamic([["1278828862", [theme$1.palette.accents_6]]]),
|
|
745
|
+
children: [children, /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
746
|
+
id: "1278828862",
|
|
747
|
+
dynamic: [theme$1.palette.accents_6],
|
|
748
|
+
children: "label.__jsx-style-dynamic-selector{display:block;font-weight:normal;color:".concat(theme$1.palette.accents_6, ";padding:0 0 0 1px;margin-bottom:0.5em;font-size:1em;line-height:1.5;}label.__jsx-style-dynamic-selector>*:first-child{margin-top:0;}label.__jsx-style-dynamic-selector>*:last-child{margin-bottom:0;}")
|
|
749
|
+
})]
|
|
750
|
+
});
|
|
755
751
|
};
|
|
756
752
|
InputBlockLabelComponent.displayName = 'InputBlockLabel';
|
|
757
753
|
var InputBlockLabel = /*#__PURE__*/React.memo(InputBlockLabelComponent);
|
|
@@ -761,13 +757,15 @@ var InputIconComponent = function InputIconComponent(_ref) {
|
|
|
761
757
|
_ref$clickable = _ref.clickable,
|
|
762
758
|
clickable = _ref$clickable === void 0 ? false : _ref$clickable,
|
|
763
759
|
onClick = _ref.onClick;
|
|
764
|
-
return /*#__PURE__*/
|
|
760
|
+
return /*#__PURE__*/jsxRuntime.jsxs("span", {
|
|
765
761
|
onClick: onClick,
|
|
766
|
-
className: _JSXStyle.dynamic([["4247656379", [clickable ? 'pointer' : 'default', clickable ? 'auto' : 'none']]]) + " " + "input-icon"
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
762
|
+
className: _JSXStyle.dynamic([["4247656379", [clickable ? 'pointer' : 'default', clickable ? 'auto' : 'none']]]) + " " + "input-icon",
|
|
763
|
+
children: [icon, /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
764
|
+
id: "4247656379",
|
|
765
|
+
dynamic: [clickable ? 'pointer' : 'default', clickable ? 'auto' : 'none'],
|
|
766
|
+
children: ".input-icon.__jsx-style-dynamic-selector{box-sizing:border-box;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;width:calc(var(--input-height) - 2px);-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;height:100%;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;margin:0;padding:0;line-height:1;position:relative;cursor:".concat(clickable ? 'pointer' : 'default', ";pointer-events:").concat(clickable ? 'auto' : 'none', ";}.input-icon.__jsx-style-dynamic-selector svg{width:calc(var(--input-height) - 2px);height:calc(var(--input-height) - 2px);-webkit-transform:scale(0.44);-ms-transform:scale(0.44);transform:scale(0.44);}")
|
|
767
|
+
})]
|
|
768
|
+
});
|
|
771
769
|
};
|
|
772
770
|
InputIconComponent.displayName = 'InputIcon';
|
|
773
771
|
var InputIcon = /*#__PURE__*/React.memo(InputIconComponent);
|
|
@@ -786,28 +784,31 @@ var InputIconClear = function InputIconClear(_ref) {
|
|
|
786
784
|
event.nativeEvent.stopImmediatePropagation();
|
|
787
785
|
onClick && onClick(event);
|
|
788
786
|
};
|
|
789
|
-
return /*#__PURE__*/
|
|
787
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
790
788
|
onClick: clickHandler,
|
|
791
|
-
className: _JSXStyle.dynamic([["1567030211", [disabled ? 'not-allowed' : 'pointer', theme$1.palette.accents_3, disabled ? theme$1.palette.accents_3 : theme$1.palette.foreground]]]) + " " + (classes || "")
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
789
|
+
className: _JSXStyle.dynamic([["1567030211", [disabled ? 'not-allowed' : 'pointer', theme$1.palette.accents_3, disabled ? theme$1.palette.accents_3 : theme$1.palette.foreground]]]) + " " + (classes || ""),
|
|
790
|
+
children: [/*#__PURE__*/jsxRuntime.jsxs("svg", {
|
|
791
|
+
viewBox: "0 0 24 24",
|
|
792
|
+
stroke: "currentColor",
|
|
793
|
+
strokeWidth: "1.5",
|
|
794
|
+
strokeLinecap: "round",
|
|
795
|
+
strokeLinejoin: "round",
|
|
796
|
+
fill: "none",
|
|
797
|
+
shapeRendering: "geometricPrecision",
|
|
798
|
+
className: _JSXStyle.dynamic([["1567030211", [disabled ? 'not-allowed' : 'pointer', theme$1.palette.accents_3, disabled ? theme$1.palette.accents_3 : theme$1.palette.foreground]]]),
|
|
799
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("path", {
|
|
800
|
+
d: "M18 6L6 18",
|
|
801
|
+
className: _JSXStyle.dynamic([["1567030211", [disabled ? 'not-allowed' : 'pointer', theme$1.palette.accents_3, disabled ? theme$1.palette.accents_3 : theme$1.palette.foreground]]])
|
|
802
|
+
}), /*#__PURE__*/jsxRuntime.jsx("path", {
|
|
803
|
+
d: "M6 6l12 12",
|
|
804
|
+
className: _JSXStyle.dynamic([["1567030211", [disabled ? 'not-allowed' : 'pointer', theme$1.palette.accents_3, disabled ? theme$1.palette.accents_3 : theme$1.palette.foreground]]])
|
|
805
|
+
})]
|
|
806
|
+
}), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
807
|
+
id: "1567030211",
|
|
808
|
+
dynamic: [disabled ? 'not-allowed' : 'pointer', theme$1.palette.accents_3, disabled ? theme$1.palette.accents_3 : theme$1.palette.foreground],
|
|
809
|
+
children: ".clear-icon.__jsx-style-dynamic-selector{box-sizing:border-box;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;width:calc(var(--input-height) - 2px);-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;height:100%;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;cursor:".concat(disabled ? 'not-allowed' : 'pointer', ";-webkit-transition:color 150ms ease 0s;transition:color 150ms ease 0s;margin:0;padding:0;color:").concat(theme$1.palette.accents_3, ";visibility:hidden;opacity:0;}.visible.__jsx-style-dynamic-selector{visibility:visible;opacity:1;}.clear-icon.__jsx-style-dynamic-selector:hover{color:").concat(disabled ? theme$1.palette.accents_3 : theme$1.palette.foreground, ";}svg.__jsx-style-dynamic-selector{color:currentColor;width:calc(var(--input-height) - 2px);height:calc(var(--input-height) - 2px);-webkit-transform:scale(0.44);-ms-transform:scale(0.44);transform:scale(0.44);}")
|
|
810
|
+
})]
|
|
811
|
+
});
|
|
811
812
|
};
|
|
812
813
|
var MemoInputIconClear = /*#__PURE__*/React.memo(InputIconClear);
|
|
813
814
|
|
|
@@ -996,11 +997,13 @@ var withScale = function withScale(Render) {
|
|
|
996
997
|
getScaleProps: generateGetScaleProps(props),
|
|
997
998
|
getAllScaleProps: generateGetAllScaleProps(props)
|
|
998
999
|
};
|
|
999
|
-
return /*#__PURE__*/
|
|
1000
|
-
value: value
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1000
|
+
return /*#__PURE__*/jsxRuntime.jsx(ScaleContext.Provider, {
|
|
1001
|
+
value: value,
|
|
1002
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Render, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
1003
|
+
ref: ref,
|
|
1004
|
+
children: children
|
|
1005
|
+
}))
|
|
1006
|
+
});
|
|
1004
1007
|
});
|
|
1005
1008
|
ScaleFC.displayName = "Scale".concat(Render.displayName || 'Wrapper');
|
|
1006
1009
|
return ScaleFC;
|
|
@@ -1061,12 +1064,14 @@ var TextChild = function TextChild(_ref) {
|
|
|
1061
1064
|
}, '');
|
|
1062
1065
|
return "".concat(scaleClassNames, " ").concat(className).trim();
|
|
1063
1066
|
}, [mx, my, px, py, font, className]);
|
|
1064
|
-
return /*#__PURE__*/
|
|
1065
|
-
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 || "")
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1067
|
+
return /*#__PURE__*/jsxRuntime.jsxs(Component, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
1068
|
+
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 || ""),
|
|
1069
|
+
children: [children, /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
1070
|
+
id: "2277774325",
|
|
1071
|
+
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')],
|
|
1072
|
+
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;}")
|
|
1073
|
+
})]
|
|
1074
|
+
}));
|
|
1070
1075
|
};
|
|
1071
1076
|
TextChild.displayName = 'TextChild';
|
|
1072
1077
|
|
|
@@ -1092,35 +1097,40 @@ var ButtonDrip = function ButtonDrip(_ref) {
|
|
|
1092
1097
|
dripRef.current.removeEventListener('animationend', onCompleted);
|
|
1093
1098
|
};
|
|
1094
1099
|
});
|
|
1095
|
-
return /*#__PURE__*/
|
|
1100
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
1096
1101
|
ref: dripRef,
|
|
1097
|
-
className: "jsx-3424889537" + " " + "drip"
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1102
|
+
className: "jsx-3424889537" + " " + "drip",
|
|
1103
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("svg", {
|
|
1104
|
+
width: "20",
|
|
1105
|
+
height: "20",
|
|
1106
|
+
viewBox: "0 0 20 20",
|
|
1107
|
+
style: {
|
|
1108
|
+
top: top,
|
|
1109
|
+
left: left
|
|
1110
|
+
},
|
|
1111
|
+
className: "jsx-3424889537",
|
|
1112
|
+
children: /*#__PURE__*/jsxRuntime.jsx("g", {
|
|
1113
|
+
stroke: "none",
|
|
1114
|
+
strokeWidth: "1",
|
|
1115
|
+
fill: "none",
|
|
1116
|
+
fillRule: "evenodd",
|
|
1117
|
+
className: "jsx-3424889537",
|
|
1118
|
+
children: /*#__PURE__*/jsxRuntime.jsx("g", {
|
|
1119
|
+
fill: color,
|
|
1120
|
+
className: "jsx-3424889537",
|
|
1121
|
+
children: /*#__PURE__*/jsxRuntime.jsx("rect", {
|
|
1122
|
+
width: "100%",
|
|
1123
|
+
height: "100%",
|
|
1124
|
+
rx: "10",
|
|
1125
|
+
className: "jsx-3424889537"
|
|
1126
|
+
})
|
|
1127
|
+
})
|
|
1128
|
+
})
|
|
1129
|
+
}), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
1130
|
+
id: "3424889537",
|
|
1131
|
+
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;}}"
|
|
1132
|
+
})]
|
|
1133
|
+
});
|
|
1124
1134
|
};
|
|
1125
1135
|
ButtonDrip.displayName = 'ButtonDrip';
|
|
1126
1136
|
|
|
@@ -1152,35 +1162,41 @@ var LoadingComponent = function LoadingComponent(_ref) {
|
|
|
1152
1162
|
var bgColor = React.useMemo(function () {
|
|
1153
1163
|
return getIconBgColor(type, theme$1.palette, color);
|
|
1154
1164
|
}, [type, theme$1.palette, color]);
|
|
1155
|
-
return /*#__PURE__*/
|
|
1156
|
-
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 || "")
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1165
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
1166
|
+
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 || ""),
|
|
1167
|
+
children: [/*#__PURE__*/jsxRuntime.jsxs("span", {
|
|
1168
|
+
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",
|
|
1169
|
+
children: [children && /*#__PURE__*/jsxRuntime.jsx("label", {
|
|
1170
|
+
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]]]),
|
|
1171
|
+
children: children
|
|
1172
|
+
}), /*#__PURE__*/jsxRuntime.jsx("i", {
|
|
1173
|
+
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]]])
|
|
1174
|
+
}), /*#__PURE__*/jsxRuntime.jsx("i", {
|
|
1175
|
+
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]]])
|
|
1176
|
+
}), /*#__PURE__*/jsxRuntime.jsx("i", {
|
|
1177
|
+
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]]])
|
|
1178
|
+
})]
|
|
1179
|
+
}), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
1180
|
+
id: "2201634259",
|
|
1181
|
+
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],
|
|
1182
|
+
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;}}")
|
|
1183
|
+
})]
|
|
1184
|
+
}));
|
|
1171
1185
|
};
|
|
1172
1186
|
LoadingComponent.displayName = 'Loading';
|
|
1173
1187
|
var Loading = withScale(LoadingComponent);
|
|
1174
1188
|
|
|
1175
1189
|
var ButtonLoading = function ButtonLoading(_ref) {
|
|
1176
1190
|
var color = _ref.color;
|
|
1177
|
-
return /*#__PURE__*/
|
|
1178
|
-
className: "jsx-212623367" + " " + "btn-loading"
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1191
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
1192
|
+
className: "jsx-212623367" + " " + "btn-loading",
|
|
1193
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(Loading, {
|
|
1194
|
+
color: color
|
|
1195
|
+
}), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
1196
|
+
id: "212623367",
|
|
1197
|
+
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);}"
|
|
1198
|
+
})]
|
|
1199
|
+
});
|
|
1184
1200
|
};
|
|
1185
1201
|
ButtonLoading.displayName = 'ButtonLoading';
|
|
1186
1202
|
|
|
@@ -1197,11 +1213,13 @@ var ButtonIcon = function ButtonIcon(_ref) {
|
|
|
1197
1213
|
right: isRight,
|
|
1198
1214
|
single: isSingle
|
|
1199
1215
|
}, className);
|
|
1200
|
-
return /*#__PURE__*/
|
|
1201
|
-
className: "jsx-2467502931" + " " + (props && props.className != null && props.className || classes || "")
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1216
|
+
return /*#__PURE__*/jsxRuntime.jsxs("span", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
1217
|
+
className: "jsx-2467502931" + " " + (props && props.className != null && props.className || classes || ""),
|
|
1218
|
+
children: [children, /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
1219
|
+
id: "2467502931",
|
|
1220
|
+
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;}"
|
|
1221
|
+
})]
|
|
1222
|
+
}));
|
|
1205
1223
|
};
|
|
1206
1224
|
ButtonIcon.displayName = 'ButtonIcon';
|
|
1207
1225
|
|
|
@@ -1212,23 +1230,30 @@ var getButtonChildrenWithIcon = function getButtonChildrenWithIcon(auto, childre
|
|
|
1212
1230
|
var isRight = Boolean(iconRight);
|
|
1213
1231
|
var paddingForAutoMode = auto ? "calc(var(--helpdice-ui-button-height) / 2 + var(--helpdice-ui-button-icon-padding) * .5)" : 0;
|
|
1214
1232
|
var classes = theme.useClasses('text', isRight ? 'right' : 'left');
|
|
1215
|
-
if (!hasIcon) return /*#__PURE__*/
|
|
1216
|
-
className: "text"
|
|
1217
|
-
|
|
1233
|
+
if (!hasIcon) return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
1234
|
+
className: "text",
|
|
1235
|
+
children: children
|
|
1236
|
+
});
|
|
1218
1237
|
if (React.Children.count(children) === 0) {
|
|
1219
|
-
return /*#__PURE__*/
|
|
1238
|
+
return /*#__PURE__*/jsxRuntime.jsx(ButtonIcon, {
|
|
1220
1239
|
isRight: isRight,
|
|
1221
|
-
isSingle: true
|
|
1222
|
-
|
|
1240
|
+
isSingle: true,
|
|
1241
|
+
children: hasIcon
|
|
1242
|
+
});
|
|
1223
1243
|
}
|
|
1224
|
-
return /*#__PURE__*/
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1244
|
+
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
1245
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(ButtonIcon, {
|
|
1246
|
+
isRight: isRight,
|
|
1247
|
+
children: hasIcon
|
|
1248
|
+
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
1249
|
+
className: _JSXStyle.dynamic([["3568181479", [paddingForAutoMode, paddingForAutoMode]]]) + " " + (classes || ""),
|
|
1250
|
+
children: [children, /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
1251
|
+
id: "3568181479",
|
|
1252
|
+
dynamic: [paddingForAutoMode, paddingForAutoMode],
|
|
1253
|
+
children: ".left.__jsx-style-dynamic-selector{padding-left:".concat(paddingForAutoMode, ";}.right.__jsx-style-dynamic-selector{padding-right:").concat(paddingForAutoMode, ";}")
|
|
1254
|
+
})]
|
|
1255
|
+
})]
|
|
1256
|
+
});
|
|
1232
1257
|
};
|
|
1233
1258
|
var filterPropsWithGroup = function filterPropsWithGroup(props, config) {
|
|
1234
1259
|
if (!config.isButtonGroup) return props;
|
|
@@ -1632,87 +1657,61 @@ var ButtonComponent = /*#__PURE__*/React.forwardRef(function (btnProps, ref) {
|
|
|
1632
1657
|
|
|
1633
1658
|
// If shadow provided is string then value other default
|
|
1634
1659
|
var btnShadow = typeof shadow === 'string' ? shadow : shadow ? theme$1.shadows.level.z2 : 'none';
|
|
1635
|
-
return /*#__PURE__*/
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1660
|
+
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
1661
|
+
children: [to ? /*#__PURE__*/jsxRuntime.jsxs("a", _objectSpread2(_objectSpread2({
|
|
1662
|
+
href: to
|
|
1663
|
+
}, props), {}, {
|
|
1664
|
+
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) || ""),
|
|
1665
|
+
children: [loading && /*#__PURE__*/jsxRuntime.jsx(ButtonLoading, {
|
|
1666
|
+
color: color
|
|
1667
|
+
}), childrenWithIcon]
|
|
1668
|
+
})) : /*#__PURE__*/jsxRuntime.jsxs("button", _objectSpread2(_objectSpread2({
|
|
1669
|
+
ref: buttonRef,
|
|
1670
|
+
type: type,
|
|
1671
|
+
disabled: disabled,
|
|
1672
|
+
onClick: clickHandler
|
|
1673
|
+
}, props), {}, {
|
|
1674
|
+
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) || ""),
|
|
1675
|
+
children: [loading && /*#__PURE__*/jsxRuntime.jsx(ButtonLoading, {
|
|
1676
|
+
color: color
|
|
1677
|
+
}), childrenWithIcon, dripShow && /*#__PURE__*/jsxRuntime.jsx(ButtonDrip, {
|
|
1678
|
+
x: dripX,
|
|
1679
|
+
y: dripY,
|
|
1680
|
+
color: dripColor,
|
|
1681
|
+
onCompleted: dripCompletedHandle
|
|
1682
|
+
})]
|
|
1683
|
+
})), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
1684
|
+
id: "612376042",
|
|
1685
|
+
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'],
|
|
1686
|
+
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;}}")
|
|
1687
|
+
})]
|
|
1688
|
+
});
|
|
1659
1689
|
});
|
|
1660
1690
|
ButtonComponent.displayName = 'Button';
|
|
1661
1691
|
var Button = withScale(ButtonComponent);
|
|
1662
1692
|
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
var CompactButton = function CompactButton(_ref) {
|
|
1666
|
-
_ref.color;
|
|
1667
|
-
var children = _ref.children,
|
|
1668
|
-
iconRight = _ref.iconRight,
|
|
1669
|
-
icon = _ref.icon,
|
|
1670
|
-
_ref$scale = _ref.scale,
|
|
1671
|
-
scale = _ref$scale === void 0 ? 2 / 3 : _ref$scale,
|
|
1672
|
-
type = _ref.type,
|
|
1673
|
-
style = _ref.style,
|
|
1674
|
-
onClick = _ref.onClick,
|
|
1675
|
-
to = _ref.to;
|
|
1693
|
+
var CompactButton = function CompactButton(props) {
|
|
1676
1694
|
// const theme = useTheme();
|
|
1677
|
-
return /*#__PURE__*/
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
px: 0.6,
|
|
1686
|
-
iconRight: iconRight
|
|
1687
|
-
}, children);
|
|
1695
|
+
return /*#__PURE__*/jsxRuntime.jsx(Button, _objectSpread2(_objectSpread2({
|
|
1696
|
+
scale: 2 / 3,
|
|
1697
|
+
px: 0.6
|
|
1698
|
+
}, _objectSpread2({
|
|
1699
|
+
auto: true
|
|
1700
|
+
}, props)), {}, {
|
|
1701
|
+
children: props.children
|
|
1702
|
+
}));
|
|
1688
1703
|
};
|
|
1689
1704
|
var IconButton = /*#__PURE__*/React.memo(CompactButton);
|
|
1690
1705
|
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
var SmallButton = function SmallButton(_ref) {
|
|
1694
|
-
_ref.color;
|
|
1695
|
-
var children = _ref.children,
|
|
1696
|
-
iconRight = _ref.iconRight,
|
|
1697
|
-
icon = _ref.icon,
|
|
1698
|
-
_ref$scale = _ref.scale,
|
|
1699
|
-
scale = _ref$scale === void 0 ? 2 / 3 : _ref$scale,
|
|
1700
|
-
type = _ref.type,
|
|
1701
|
-
style = _ref.style,
|
|
1702
|
-
onClick = _ref.onClick,
|
|
1703
|
-
to = _ref.to;
|
|
1706
|
+
var SmallButton = function SmallButton(props) {
|
|
1704
1707
|
// const theme = useTheme();
|
|
1705
|
-
return /*#__PURE__*/
|
|
1706
|
-
to: to,
|
|
1707
|
-
icon: icon,
|
|
1708
|
-
style: style,
|
|
1709
|
-
type: type,
|
|
1710
|
-
onClick: onClick,
|
|
1708
|
+
return /*#__PURE__*/jsxRuntime.jsx(Button, _objectSpread2(_objectSpread2({
|
|
1711
1709
|
auto: true,
|
|
1712
|
-
scale:
|
|
1713
|
-
px: 0.6
|
|
1714
|
-
|
|
1715
|
-
|
|
1710
|
+
scale: 2 / 3,
|
|
1711
|
+
px: 0.6
|
|
1712
|
+
}, props), {}, {
|
|
1713
|
+
children: props.children
|
|
1714
|
+
}));
|
|
1716
1715
|
};
|
|
1717
1716
|
var SmallButton$1 = /*#__PURE__*/React.memo(SmallButton);
|
|
1718
1717
|
|
|
@@ -1725,9 +1724,10 @@ var _excluded$5 = ["h1", "h2", "h3", "h4", "h5", "h6", "p", "b", "small", "i", "
|
|
|
1725
1724
|
var _getModifierChild = function getModifierChild(tags, children) {
|
|
1726
1725
|
if (!tags.length) return children;
|
|
1727
1726
|
var nextTag = tags.slice(1, tags.length);
|
|
1728
|
-
return /*#__PURE__*/
|
|
1729
|
-
tag: tags[0]
|
|
1730
|
-
|
|
1727
|
+
return /*#__PURE__*/jsxRuntime.jsx(TextChild, {
|
|
1728
|
+
tag: tags[0],
|
|
1729
|
+
children: _getModifierChild(nextTag, children)
|
|
1730
|
+
});
|
|
1731
1731
|
};
|
|
1732
1732
|
var TextComponent = function TextComponent(_ref) {
|
|
1733
1733
|
var _ref$h = _ref.h1,
|
|
@@ -1821,7 +1821,7 @@ var TextComponent = function TextComponent(_ref) {
|
|
|
1821
1821
|
if (!renderableChildElements.length) return children;
|
|
1822
1822
|
return _getModifierChild(renderableChildElements, children);
|
|
1823
1823
|
}, [renderableChildElements, children]);
|
|
1824
|
-
return /*#__PURE__*/
|
|
1824
|
+
return /*#__PURE__*/jsxRuntime.jsx(TextChild, _objectSpread2(_objectSpread2({
|
|
1825
1825
|
style: {
|
|
1826
1826
|
textAlign: props.align,
|
|
1827
1827
|
display: display,
|
|
@@ -1830,21 +1830,28 @@ var TextComponent = function TextComponent(_ref) {
|
|
|
1830
1830
|
},
|
|
1831
1831
|
className: "".concat(className, " ").concat(noWrap ? 'no-wrap' : ''),
|
|
1832
1832
|
tag: tag
|
|
1833
|
-
}, props),
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1833
|
+
}, props), {}, {
|
|
1834
|
+
children: typeof children === 'string' && collapse > 50 ? /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
1835
|
+
children: [expand ? modifers : (modifers === null || modifers === void 0 ? void 0 : modifers.toString().substring(0, collapse)) + '...', /*#__PURE__*/jsxRuntime.jsx(Button, {
|
|
1836
|
+
margin: 0,
|
|
1837
|
+
onClick: function onClick() {
|
|
1838
|
+
return setExpand(!expand);
|
|
1839
|
+
},
|
|
1840
|
+
style: {
|
|
1841
|
+
textTransform: 'lowercase'
|
|
1842
|
+
},
|
|
1843
|
+
effect: false,
|
|
1844
|
+
color: "abort",
|
|
1845
|
+
scale: 2 / 3,
|
|
1846
|
+
px: 0.2,
|
|
1847
|
+
py: 0,
|
|
1848
|
+
auto: true,
|
|
1849
|
+
children: /*#__PURE__*/jsxRuntime.jsx("b", {
|
|
1850
|
+
children: expand ? 'less' : 'more'
|
|
1851
|
+
})
|
|
1852
|
+
})]
|
|
1853
|
+
}) : modifers
|
|
1854
|
+
}));
|
|
1848
1855
|
};
|
|
1849
1856
|
TextComponent.displayName = 'Text';
|
|
1850
1857
|
var Text = withScale(TextComponent);
|
|
@@ -2009,56 +2016,66 @@ var InputComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
2009
2016
|
};
|
|
2010
2017
|
var inputProps = _objectSpread2(_objectSpread2({}, props), controlledValue);
|
|
2011
2018
|
var defaultWidth = fullWidth ? '100%' : 'initial';
|
|
2012
|
-
return /*#__PURE__*/
|
|
2013
|
-
className: _JSXStyle.dynamic([["1343268165", [SCALES.height(2.25), SCALES.font(0.875), SCALES.width(1, defaultWidth), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.width(1, defaultWidth), variant === 'normal' ? theme$1.layout.radius : '', variant === 'none' ? '' : variant === 'line' ? "border-bottom: 1px solid ".concat(borderColor) : "border: 1px solid ".concat(borderColor), theme$1.palette.accents_1, theme$1.palette.accents_2, hoverBorder, SCALES.font(0.875), color, theme$1.palette.accents_3, theme$1.palette.background, color]]]) + " " + "with-label"
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2019
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
2020
|
+
className: _JSXStyle.dynamic([["1343268165", [SCALES.height(2.25), SCALES.font(0.875), SCALES.width(1, defaultWidth), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.width(1, defaultWidth), variant === 'normal' ? theme$1.layout.radius : '', variant === 'none' ? '' : variant === 'line' ? "border-bottom: 1px solid ".concat(borderColor) : "border: 1px solid ".concat(borderColor), theme$1.palette.accents_1, theme$1.palette.accents_2, hoverBorder, SCALES.font(0.875), color, theme$1.palette.accents_3, theme$1.palette.background, color]]]) + " " + "with-label",
|
|
2021
|
+
children: [children && /*#__PURE__*/jsxRuntime.jsx(InputBlockLabel, {
|
|
2022
|
+
children: children
|
|
2023
|
+
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
2024
|
+
className: _JSXStyle.dynamic([["1343268165", [SCALES.height(2.25), SCALES.font(0.875), SCALES.width(1, defaultWidth), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.width(1, defaultWidth), variant === 'normal' ? theme$1.layout.radius : '', variant === 'none' ? '' : variant === 'line' ? "border-bottom: 1px solid ".concat(borderColor) : "border: 1px solid ".concat(borderColor), theme$1.palette.accents_1, theme$1.palette.accents_2, hoverBorder, SCALES.font(0.875), color, theme$1.palette.accents_3, theme$1.palette.background, color]]]) + " " + (theme.useClasses('input-container', className) || ""),
|
|
2025
|
+
children: [label && /*#__PURE__*/jsxRuntime.jsx(MemoInputLabel, {
|
|
2026
|
+
children: label
|
|
2027
|
+
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
2028
|
+
className: _JSXStyle.dynamic([["1343268165", [SCALES.height(2.25), SCALES.font(0.875), SCALES.width(1, defaultWidth), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.width(1, defaultWidth), variant === 'normal' ? theme$1.layout.radius : '', variant === 'none' ? '' : variant === 'line' ? "border-bottom: 1px solid ".concat(borderColor) : "border: 1px solid ".concat(borderColor), theme$1.palette.accents_1, theme$1.palette.accents_2, hoverBorder, SCALES.font(0.875), color, theme$1.palette.accents_3, theme$1.palette.background, color]]]) + " " + (theme.useClasses('input-wrapper', {
|
|
2029
|
+
hover: hover,
|
|
2030
|
+
disabled: disabled
|
|
2031
|
+
}, labelClasses) || ""),
|
|
2032
|
+
children: [icon && /*#__PURE__*/jsxRuntime.jsx(InputIcon, _objectSpread2({
|
|
2033
|
+
icon: icon
|
|
2034
|
+
}, iconProps)), /*#__PURE__*/jsxRuntime.jsx("input", _objectSpread2(_objectSpread2({
|
|
2035
|
+
type: type,
|
|
2036
|
+
ref: inputRef,
|
|
2037
|
+
placeholder: placeholder,
|
|
2038
|
+
disabled: disabled,
|
|
2039
|
+
readOnly: readOnly,
|
|
2040
|
+
onFocus: focusHandler,
|
|
2041
|
+
onBlur: blurHandler,
|
|
2042
|
+
onChange: changeHandler,
|
|
2043
|
+
autoComplete: autoComplete,
|
|
2044
|
+
onKeyDown: handleKeyDown
|
|
2045
|
+
}, inputProps), {}, {
|
|
2046
|
+
className: _JSXStyle.dynamic([["1343268165", [SCALES.height(2.25), SCALES.font(0.875), SCALES.width(1, defaultWidth), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.width(1, defaultWidth), variant === 'normal' ? theme$1.layout.radius : '', variant === 'none' ? '' : variant === 'line' ? "border-bottom: 1px solid ".concat(borderColor) : "border: 1px solid ".concat(borderColor), theme$1.palette.accents_1, theme$1.palette.accents_2, hoverBorder, SCALES.font(0.875), color, theme$1.palette.accents_3, theme$1.palette.background, color]]]) + " " + (inputProps && inputProps.className != null && inputProps.className || theme.useClasses({
|
|
2047
|
+
disabled: disabled
|
|
2048
|
+
}, iconClasses) || "")
|
|
2049
|
+
})), clearable && /*#__PURE__*/jsxRuntime.jsx(MemoInputIconClear, {
|
|
2050
|
+
visible: Boolean(inputRef.current && inputRef.current.value !== ''),
|
|
2051
|
+
disabled: disabled || readOnly,
|
|
2052
|
+
onClick: clearHandler
|
|
2053
|
+
}), iconRight && /*#__PURE__*/jsxRuntime.jsx(InputIcon, _objectSpread2({
|
|
2054
|
+
icon: iconRight
|
|
2055
|
+
}, iconProps))]
|
|
2056
|
+
}), labelRight && /*#__PURE__*/jsxRuntime.jsx(MemoInputLabel, {
|
|
2057
|
+
isRight: true,
|
|
2058
|
+
children: labelRight
|
|
2059
|
+
}), /*#__PURE__*/jsxRuntime.jsx("br", {
|
|
2060
|
+
className: _JSXStyle.dynamic([["1343268165", [SCALES.height(2.25), SCALES.font(0.875), SCALES.width(1, defaultWidth), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.width(1, defaultWidth), variant === 'normal' ? theme$1.layout.radius : '', variant === 'none' ? '' : variant === 'line' ? "border-bottom: 1px solid ".concat(borderColor) : "border: 1px solid ".concat(borderColor), theme$1.palette.accents_1, theme$1.palette.accents_2, hoverBorder, SCALES.font(0.875), color, theme$1.palette.accents_3, theme$1.palette.background, color]]])
|
|
2061
|
+
})]
|
|
2062
|
+
}), helperText && /*#__PURE__*/jsxRuntime.jsxs(Text, {
|
|
2063
|
+
font: 0.8,
|
|
2064
|
+
style: {
|
|
2065
|
+
marginTop: 0.4,
|
|
2066
|
+
marginRight: 0,
|
|
2067
|
+
marginLeft: 0,
|
|
2068
|
+
marginBottom: '0.4rem',
|
|
2069
|
+
textAlign: 'left'
|
|
2070
|
+
},
|
|
2071
|
+
color: error ? "error" : 'default',
|
|
2072
|
+
children: ["\xA0", helperText]
|
|
2073
|
+
}), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
2074
|
+
id: "1343268165",
|
|
2075
|
+
dynamic: [SCALES.height(2.25), SCALES.font(0.875), SCALES.width(1, defaultWidth), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.width(1, defaultWidth), variant === 'normal' ? theme$1.layout.radius : '', variant === 'none' ? '' : variant === 'line' ? "border-bottom: 1px solid ".concat(borderColor) : "border: 1px solid ".concat(borderColor), theme$1.palette.accents_1, theme$1.palette.accents_2, hoverBorder, SCALES.font(0.875), color, theme$1.palette.accents_3, theme$1.palette.background, color],
|
|
2076
|
+
children: ".with-label.__jsx-style-dynamic-selector{display:inline-block;box-sizing:border-box;-webkit-box-align:center;--input-height:".concat(SCALES.height(2.25), ";font-size:").concat(SCALES.font(0.875), ";width:").concat(SCALES.width(1, defaultWidth), ";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), ";}.input-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;width:").concat(SCALES.width(1, defaultWidth), ";height:var(--input-height);}.input-wrapper.__jsx-style-dynamic-selector{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;vertical-align:middle;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:100%;-webkit-flex:1;-ms-flex:1;flex:1;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border-radius:").concat(variant === 'normal' ? theme$1.layout.radius : '', ";").concat(variant === 'none' ? '' : variant === 'line' ? "border-bottom: 1px solid ".concat(borderColor) : "border: 1px solid ".concat(borderColor), ";-webkit-transition:border 0.2s ease 0s,color 0.2s ease 0s;transition:border 0.2s ease 0s,color 0.2s ease 0s;}.input-wrapper.left-label.__jsx-style-dynamic-selector{border-top-left-radius:0;border-bottom-left-radius:0;}.input-wrapper.right-label.__jsx-style-dynamic-selector{border-top-right-radius:0;border-bottom-right-radius:0;}.input-wrapper.disabled.__jsx-style-dynamic-selector{background-color:").concat(theme$1.palette.accents_1, ";border-color:").concat(theme$1.palette.accents_2, ";cursor:not-allowed;}input.disabled.__jsx-style-dynamic-selector{cursor:not-allowed;}.input-wrapper.hover.__jsx-style-dynamic-selector{border-color:").concat(hoverBorder, ";}input.__jsx-style-dynamic-selector{margin:0.25em 0.625em;padding:0;box-shadow:none;font-size:").concat(SCALES.font(0.875), ";background-color:transparent;border:none;color:").concat(color, ";outline:none;border-radius:0;width:100%;min-width:0;-webkit-appearance:none;}input.left-icon.__jsx-style-dynamic-selector{margin-left:0;}input.right-icon.__jsx-style-dynamic-selector{margin-right:0;}.__jsx-style-dynamic-selector::-webkit-input-placeholder,.__jsx-style-dynamic-selector::-moz-placeholder,.__jsx-style-dynamic-selector:-ms-input-placeholder,.__jsx-style-dynamic-selector::-webkit-input-placeholder{color:").concat(theme$1.palette.accents_3, ";}.__jsx-style-dynamic-selector::-moz-placeholder,.__jsx-style-dynamic-selector::-moz-placeholder,.__jsx-style-dynamic-selector:-ms-input-placeholder,.__jsx-style-dynamic-selector::-webkit-input-placeholder{color:").concat(theme$1.palette.accents_3, ";}.__jsx-style-dynamic-selector:-ms-input-placeholder,.__jsx-style-dynamic-selector::-moz-placeholder,.__jsx-style-dynamic-selector:-ms-input-placeholder,.__jsx-style-dynamic-selector::-webkit-input-placeholder{color:").concat(theme$1.palette.accents_3, ";}.__jsx-style-dynamic-selector::placeholder,.__jsx-style-dynamic-selector::-moz-placeholder,.__jsx-style-dynamic-selector:-ms-input-placeholder,.__jsx-style-dynamic-selector::-webkit-input-placeholder{color:").concat(theme$1.palette.accents_3, ";}.__jsx-style-dynamic-selector::-ms-reveal{display:none !important;}input.__jsx-style-dynamic-selector:-webkit-autofill,input.__jsx-style-dynamic-selector:-webkit-autofill.__jsx-style-dynamic-selector:hover,input.__jsx-style-dynamic-selector:-webkit-autofill.__jsx-style-dynamic-selector:active,input.__jsx-style-dynamic-selector:-webkit-autofill.__jsx-style-dynamic-selector:focus{-webkit-box-shadow:0 0 0 30px ").concat(theme$1.palette.background, " inset !important;-webkit-text-fill-color:").concat(color, " !important;}")
|
|
2077
|
+
})]
|
|
2078
|
+
});
|
|
2062
2079
|
});
|
|
2063
2080
|
InputComponent.displayName = 'Input';
|
|
2064
2081
|
var Input = withScale(InputComponent);
|
|
@@ -2154,41 +2171,47 @@ var TextareaComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
2154
2171
|
defaultValue: initialValue
|
|
2155
2172
|
};
|
|
2156
2173
|
var textareaProps = _objectSpread2(_objectSpread2({}, props), controlledValue);
|
|
2157
|
-
return /*#__PURE__*/
|
|
2158
|
-
className: "with-label"
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2174
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
2175
|
+
className: "with-label",
|
|
2176
|
+
children: [label && /*#__PURE__*/jsxRuntime.jsx(InputBlockLabel, {
|
|
2177
|
+
children: label
|
|
2178
|
+
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
2179
|
+
className: _JSXStyle.dynamic([["12276481", [theme$1.layout.radius, borderColor, color, SCALES.font(0.875), SCALES.height(1, 'auto'), SCALES.width(1, 'initial'), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), hoverBorder, theme$1.palette.accents_1, theme$1.palette.accents_2, theme$1.font.sans, SCALES.pt(0.5), SCALES.pr(0.5), SCALES.pb(0.5), SCALES.pl(0.5), resize, theme$1.palette.background]]]) + " " + (classes || ""),
|
|
2180
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("textarea", _objectSpread2(_objectSpread2({
|
|
2181
|
+
ref: textareaRef,
|
|
2182
|
+
disabled: disabled,
|
|
2183
|
+
placeholder: placeholder,
|
|
2184
|
+
readOnly: readOnly,
|
|
2185
|
+
onFocus: focusHandler,
|
|
2186
|
+
onBlur: blurHandler,
|
|
2187
|
+
onChange: changeHandler
|
|
2188
|
+
}, textareaProps), {}, {
|
|
2189
|
+
className: _JSXStyle.dynamic([["12276481", [theme$1.layout.radius, borderColor, color, SCALES.font(0.875), SCALES.height(1, 'auto'), SCALES.width(1, 'initial'), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), hoverBorder, theme$1.palette.accents_1, theme$1.palette.accents_2, theme$1.font.sans, SCALES.pt(0.5), SCALES.pr(0.5), SCALES.pb(0.5), SCALES.pl(0.5), resize, theme$1.palette.background]]]) + " " + (textareaProps && textareaProps.className != null && textareaProps.className || "")
|
|
2190
|
+
})), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
2191
|
+
id: "12276481",
|
|
2192
|
+
dynamic: [theme$1.layout.radius, borderColor, color, SCALES.font(0.875), SCALES.height(1, 'auto'), SCALES.width(1, 'initial'), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), hoverBorder, theme$1.palette.accents_1, theme$1.palette.accents_2, theme$1.font.sans, SCALES.pt(0.5), SCALES.pr(0.5), SCALES.pb(0.5), SCALES.pl(0.5), resize, theme$1.palette.background],
|
|
2193
|
+
children: ".wrapper.__jsx-style-dynamic-selector{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border-radius:".concat(theme$1.layout.radius, ";border:1px solid ").concat(borderColor, ";color:").concat(color, ";-webkit-transition:border 0.2s ease 0s,color 0.2s ease 0s;transition:border 0.2s ease 0s,color 0.2s ease 0s;min-width:12.5rem;max-width:95vw;--textarea-font-size:").concat(SCALES.font(0.875), ";--textarea-height:").concat(SCALES.height(1, 'auto'), ";width:").concat(SCALES.width(1, 'initial'), ";height:var(--textarea-height);margin:").concat(SCALES.mt(0), " ").concat(SCALES.mr(0), " ").concat(SCALES.mb(0), " ").concat(SCALES.ml(0), ";}.wrapper.hover.__jsx-style-dynamic-selector{border-color:").concat(hoverBorder, ";}.wrapper.disabled.__jsx-style-dynamic-selector{background-color:").concat(theme$1.palette.accents_1, ";border-color:").concat(theme$1.palette.accents_2, ";cursor:not-allowed;}textarea.__jsx-style-dynamic-selector{background-color:transparent;box-shadow:none;display:block;font-family:").concat(theme$1.font.sans, ";font-size:var(--textarea-font-size);width:100%;height:var(--textarea-height);border:none;outline:none;padding:").concat(SCALES.pt(0.5), " ").concat(SCALES.pr(0.5), " ").concat(SCALES.pb(0.5), " ").concat(SCALES.pl(0.5), ";resize:").concat(resize, ";}.disabled.__jsx-style-dynamic-selector>textarea.__jsx-style-dynamic-selector{cursor:not-allowed;}textarea.__jsx-style-dynamic-selector:-webkit-autofill,textarea.__jsx-style-dynamic-selector:-webkit-autofill.__jsx-style-dynamic-selector:hover,textarea.__jsx-style-dynamic-selector:-webkit-autofill.__jsx-style-dynamic-selector:active,textarea.__jsx-style-dynamic-selector:-webkit-autofill.__jsx-style-dynamic-selector:focus{-webkit-box-shadow:0 0 0 30px ").concat(theme$1.palette.background, " inset !important;}")
|
|
2194
|
+
})]
|
|
2195
|
+
}), helperText && /*#__PURE__*/jsxRuntime.jsxs(Text, {
|
|
2196
|
+
font: 0.8,
|
|
2197
|
+
style: {
|
|
2198
|
+
marginTop: 0.4,
|
|
2199
|
+
marginRight: 0,
|
|
2200
|
+
marginLeft: 0,
|
|
2201
|
+
marginBottom: '0.4rem',
|
|
2202
|
+
textAlign: 'left'
|
|
2203
|
+
},
|
|
2204
|
+
color: error ? "error" : 'default',
|
|
2205
|
+
children: ["\xA0", helperText]
|
|
2206
|
+
})]
|
|
2207
|
+
});
|
|
2185
2208
|
});
|
|
2186
2209
|
TextareaComponent.displayName = 'Textarea';
|
|
2187
2210
|
var Textarea = withScale(TextareaComponent);
|
|
2188
2211
|
|
|
2189
2212
|
var PasswordIcon = function PasswordIcon(_ref) {
|
|
2190
2213
|
var visible = _ref.visible;
|
|
2191
|
-
return /*#__PURE__*/
|
|
2214
|
+
return /*#__PURE__*/jsxRuntime.jsx("svg", {
|
|
2192
2215
|
viewBox: "0 0 24 24",
|
|
2193
2216
|
stroke: "currentColor",
|
|
2194
2217
|
strokeWidth: "1.5",
|
|
@@ -2198,18 +2221,23 @@ var PasswordIcon = function PasswordIcon(_ref) {
|
|
|
2198
2221
|
shapeRendering: "geometricPrecision",
|
|
2199
2222
|
style: {
|
|
2200
2223
|
color: 'currentColor'
|
|
2201
|
-
}
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2224
|
+
},
|
|
2225
|
+
children: !visible ? /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
2226
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("path", {
|
|
2227
|
+
d: "M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"
|
|
2228
|
+
}), /*#__PURE__*/jsxRuntime.jsx("circle", {
|
|
2229
|
+
cx: "12",
|
|
2230
|
+
cy: "12",
|
|
2231
|
+
r: "3"
|
|
2232
|
+
})]
|
|
2233
|
+
}) : /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
2234
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("path", {
|
|
2235
|
+
d: "M17.94 17.94A10.07 10.07 0 0112 20c-7 0-11-8-11-8a18.45 18.45 0 015.06-5.94M9.9 4.24A9.12 9.12 0 0112 4c7 0 11 8 11 8a18.5 18.5 0 01-2.16 3.19m-6.72-1.07a3 3 0 11-4.24-4.24"
|
|
2236
|
+
}), /*#__PURE__*/jsxRuntime.jsx("path", {
|
|
2237
|
+
d: "M1 1l22 22"
|
|
2238
|
+
})]
|
|
2239
|
+
})
|
|
2240
|
+
});
|
|
2213
2241
|
};
|
|
2214
2242
|
var MemoPasswordIcon = /*#__PURE__*/React.memo(PasswordIcon);
|
|
2215
2243
|
|
|
@@ -2248,13 +2276,15 @@ var InputPasswordComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref)
|
|
|
2248
2276
|
}, [props, iconClickHandler, visible, inputRef]);
|
|
2249
2277
|
var icon = React.useMemo(function () {
|
|
2250
2278
|
if (hideToggle) return null;
|
|
2251
|
-
return /*#__PURE__*/
|
|
2279
|
+
return /*#__PURE__*/jsxRuntime.jsx(MemoPasswordIcon, {
|
|
2252
2280
|
visible: visible
|
|
2253
2281
|
});
|
|
2254
2282
|
}, [hideToggle, visible]);
|
|
2255
|
-
return /*#__PURE__*/
|
|
2283
|
+
return /*#__PURE__*/jsxRuntime.jsx(Input, _objectSpread2(_objectSpread2(_objectSpread2({
|
|
2256
2284
|
iconRight: icon
|
|
2257
|
-
}, getAllScaleProps(), inputProps),
|
|
2285
|
+
}, getAllScaleProps()), inputProps), {}, {
|
|
2286
|
+
children: children
|
|
2287
|
+
}));
|
|
2258
2288
|
});
|
|
2259
2289
|
InputPasswordComponent.displayName = 'InputPassword';
|
|
2260
2290
|
var InputPassword = withScale(InputPasswordComponent);
|
|
@@ -3328,92 +3358,105 @@ function PhoneInput(_ref) {
|
|
|
3328
3358
|
return "".concat(c.label, " ").concat(c.code, " ").concat(c.phone).toLowerCase().includes(searchTerm.toLowerCase());
|
|
3329
3359
|
});
|
|
3330
3360
|
var defaultWidth = fullWidth ? '100%' : 'initial';
|
|
3331
|
-
return /*#__PURE__*/
|
|
3361
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
3332
3362
|
ref: dropdownRef,
|
|
3333
|
-
className: _JSXStyle.dynamic([["2480261071", [SCALES.height(2.25), SCALES.font(0.875), SCALES.width(1, defaultWidth), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), hoverBorder, borderColor, SCALES.width(1, defaultWidth), borderColor, SCALES.width(1, defaultWidth), theme$1.type == 'dark' ? 'black' : 'white', borderColor, borderColor, theme$1.type == 'dark' ? '#3a3d3d' : '#efefef']]]) + " " + "with-label ".concat(isFocused ? 'focused' : '')
|
|
3334
|
-
|
|
3335
|
-
|
|
3336
|
-
|
|
3337
|
-
|
|
3338
|
-
|
|
3339
|
-
|
|
3340
|
-
|
|
3341
|
-
|
|
3342
|
-
|
|
3343
|
-
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
|
|
3359
|
-
|
|
3360
|
-
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
|
|
3387
|
-
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
|
|
3397
|
-
|
|
3398
|
-
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
3363
|
+
className: _JSXStyle.dynamic([["2480261071", [SCALES.height(2.25), SCALES.font(0.875), SCALES.width(1, defaultWidth), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), hoverBorder, borderColor, SCALES.width(1, defaultWidth), borderColor, SCALES.width(1, defaultWidth), theme$1.type == 'dark' ? 'black' : 'white', borderColor, borderColor, theme$1.type == 'dark' ? '#3a3d3d' : '#efefef']]]) + " " + "with-label ".concat(isFocused ? 'focused' : ''),
|
|
3364
|
+
children: [children && /*#__PURE__*/jsxRuntime.jsx(InputBlockLabel, {
|
|
3365
|
+
children: children
|
|
3366
|
+
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
3367
|
+
className: _JSXStyle.dynamic([["2480261071", [SCALES.height(2.25), SCALES.font(0.875), SCALES.width(1, defaultWidth), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), hoverBorder, borderColor, SCALES.width(1, defaultWidth), borderColor, SCALES.width(1, defaultWidth), theme$1.type == 'dark' ? 'black' : 'white', borderColor, borderColor, theme$1.type == 'dark' ? '#3a3d3d' : '#efefef']]]) + " " + "input-wrapper",
|
|
3368
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("div", {
|
|
3369
|
+
onClick: function onClick() {
|
|
3370
|
+
return setDropdownOpen(!dropdownOpen);
|
|
3371
|
+
},
|
|
3372
|
+
className: _JSXStyle.dynamic([["2480261071", [SCALES.height(2.25), SCALES.font(0.875), SCALES.width(1, defaultWidth), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), hoverBorder, borderColor, SCALES.width(1, defaultWidth), borderColor, SCALES.width(1, defaultWidth), theme$1.type == 'dark' ? 'black' : 'white', borderColor, borderColor, theme$1.type == 'dark' ? '#3a3d3d' : '#efefef']]]) + " " + "dropdown-toggle",
|
|
3373
|
+
children: /*#__PURE__*/jsxRuntime.jsxs("span", {
|
|
3374
|
+
style: {
|
|
3375
|
+
display: 'flex',
|
|
3376
|
+
alignItems: 'center',
|
|
3377
|
+
gap: 5,
|
|
3378
|
+
paddingRight: '15px'
|
|
3379
|
+
},
|
|
3380
|
+
className: _JSXStyle.dynamic([["2480261071", [SCALES.height(2.25), SCALES.font(0.875), SCALES.width(1, defaultWidth), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), hoverBorder, borderColor, SCALES.width(1, defaultWidth), borderColor, SCALES.width(1, defaultWidth), theme$1.type == 'dark' ? 'black' : 'white', borderColor, borderColor, theme$1.type == 'dark' ? '#3a3d3d' : '#efefef']]]),
|
|
3381
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("img", {
|
|
3382
|
+
loading: "lazy",
|
|
3383
|
+
width: "20",
|
|
3384
|
+
height: "20",
|
|
3385
|
+
src: "https://flagcdn.com/w20/".concat(selectedCountry.code.toLowerCase(), ".png"),
|
|
3386
|
+
srcSet: "https://flagcdn.com/w40/".concat(selectedCountry.code.toLowerCase(), ".png 2x"),
|
|
3387
|
+
alt: "".concat(selectedCountry.label, " Flag"),
|
|
3388
|
+
className: _JSXStyle.dynamic([["2480261071", [SCALES.height(2.25), SCALES.font(0.875), SCALES.width(1, defaultWidth), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), hoverBorder, borderColor, SCALES.width(1, defaultWidth), borderColor, SCALES.width(1, defaultWidth), theme$1.type == 'dark' ? 'black' : 'white', borderColor, borderColor, theme$1.type == 'dark' ? '#3a3d3d' : '#efefef']]])
|
|
3389
|
+
}), /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
3390
|
+
className: _JSXStyle.dynamic([["2480261071", [SCALES.height(2.25), SCALES.font(0.875), SCALES.width(1, defaultWidth), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), hoverBorder, borderColor, SCALES.width(1, defaultWidth), borderColor, SCALES.width(1, defaultWidth), theme$1.type == 'dark' ? 'black' : 'white', borderColor, borderColor, theme$1.type == 'dark' ? '#3a3d3d' : '#efefef']]]),
|
|
3391
|
+
children: selectedCountry.phone
|
|
3392
|
+
})]
|
|
3393
|
+
})
|
|
3394
|
+
}), /*#__PURE__*/jsxRuntime.jsx("input", {
|
|
3395
|
+
type: "tel",
|
|
3396
|
+
placeholder: placeholder,
|
|
3397
|
+
value: phoneNumber,
|
|
3398
|
+
onChange: handlePhoneChange,
|
|
3399
|
+
onFocus: function onFocus() {
|
|
3400
|
+
return setIsFocused(true);
|
|
3401
|
+
},
|
|
3402
|
+
onBlur: function onBlur() {
|
|
3403
|
+
return setIsFocused(false);
|
|
3404
|
+
},
|
|
3405
|
+
className: _JSXStyle.dynamic([["2480261071", [SCALES.height(2.25), SCALES.font(0.875), SCALES.width(1, defaultWidth), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), hoverBorder, borderColor, SCALES.width(1, defaultWidth), borderColor, SCALES.width(1, defaultWidth), theme$1.type == 'dark' ? 'black' : 'white', borderColor, borderColor, theme$1.type == 'dark' ? '#3a3d3d' : '#efefef']]]) + " " + "phone-input"
|
|
3406
|
+
})]
|
|
3407
|
+
}), dropdownOpen && /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
3408
|
+
className: _JSXStyle.dynamic([["2480261071", [SCALES.height(2.25), SCALES.font(0.875), SCALES.width(1, defaultWidth), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), hoverBorder, borderColor, SCALES.width(1, defaultWidth), borderColor, SCALES.width(1, defaultWidth), theme$1.type == 'dark' ? 'black' : 'white', borderColor, borderColor, theme$1.type == 'dark' ? '#3a3d3d' : '#efefef']]]) + " " + "dropdown",
|
|
3409
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("input", {
|
|
3410
|
+
type: "text",
|
|
3411
|
+
placeholder: "Search country...",
|
|
3412
|
+
value: searchTerm,
|
|
3413
|
+
onChange: function onChange(e) {
|
|
3414
|
+
return setSearchTerm(e.target.value);
|
|
3415
|
+
},
|
|
3416
|
+
className: _JSXStyle.dynamic([["2480261071", [SCALES.height(2.25), SCALES.font(0.875), SCALES.width(1, defaultWidth), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), hoverBorder, borderColor, SCALES.width(1, defaultWidth), borderColor, SCALES.width(1, defaultWidth), theme$1.type == 'dark' ? 'black' : 'white', borderColor, borderColor, theme$1.type == 'dark' ? '#3a3d3d' : '#efefef']]]) + " " + "search-input"
|
|
3417
|
+
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
3418
|
+
className: _JSXStyle.dynamic([["2480261071", [SCALES.height(2.25), SCALES.font(0.875), SCALES.width(1, defaultWidth), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), hoverBorder, borderColor, SCALES.width(1, defaultWidth), borderColor, SCALES.width(1, defaultWidth), theme$1.type == 'dark' ? 'black' : 'white', borderColor, borderColor, theme$1.type == 'dark' ? '#3a3d3d' : '#efefef']]]) + " " + "country-list",
|
|
3419
|
+
children: filteredCountries.length > 0 ? filteredCountries.map(function (c) {
|
|
3420
|
+
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
3421
|
+
onClick: function onClick() {
|
|
3422
|
+
return handleSelectCountry(c);
|
|
3423
|
+
},
|
|
3424
|
+
className: _JSXStyle.dynamic([["2480261071", [SCALES.height(2.25), SCALES.font(0.875), SCALES.width(1, defaultWidth), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), hoverBorder, borderColor, SCALES.width(1, defaultWidth), borderColor, SCALES.width(1, defaultWidth), theme$1.type == 'dark' ? 'black' : 'white', borderColor, borderColor, theme$1.type == 'dark' ? '#3a3d3d' : '#efefef']]]) + " " + "dropdown-item",
|
|
3425
|
+
children: /*#__PURE__*/jsxRuntime.jsxs("span", {
|
|
3426
|
+
style: {
|
|
3427
|
+
display: 'flex',
|
|
3428
|
+
alignItems: 'center',
|
|
3429
|
+
gap: 5
|
|
3430
|
+
},
|
|
3431
|
+
className: _JSXStyle.dynamic([["2480261071", [SCALES.height(2.25), SCALES.font(0.875), SCALES.width(1, defaultWidth), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), hoverBorder, borderColor, SCALES.width(1, defaultWidth), borderColor, SCALES.width(1, defaultWidth), theme$1.type == 'dark' ? 'black' : 'white', borderColor, borderColor, theme$1.type == 'dark' ? '#3a3d3d' : '#efefef']]]),
|
|
3432
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("img", {
|
|
3433
|
+
loading: "lazy",
|
|
3434
|
+
width: "23",
|
|
3435
|
+
height: "23",
|
|
3436
|
+
src: "https://flagcdn.com/w20/".concat(c.code.toLowerCase(), ".png"),
|
|
3437
|
+
srcSet: "https://flagcdn.com/w40/".concat(c.code.toLowerCase(), ".png 2x"),
|
|
3438
|
+
alt: "".concat(c.label, " Flag"),
|
|
3439
|
+
className: _JSXStyle.dynamic([["2480261071", [SCALES.height(2.25), SCALES.font(0.875), SCALES.width(1, defaultWidth), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), hoverBorder, borderColor, SCALES.width(1, defaultWidth), borderColor, SCALES.width(1, defaultWidth), theme$1.type == 'dark' ? 'black' : 'white', borderColor, borderColor, theme$1.type == 'dark' ? '#3a3d3d' : '#efefef']]])
|
|
3440
|
+
}), c.phone, " ", /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
3441
|
+
style: {
|
|
3442
|
+
color: 'grey'
|
|
3443
|
+
},
|
|
3444
|
+
className: _JSXStyle.dynamic([["2480261071", [SCALES.height(2.25), SCALES.font(0.875), SCALES.width(1, defaultWidth), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), hoverBorder, borderColor, SCALES.width(1, defaultWidth), borderColor, SCALES.width(1, defaultWidth), theme$1.type == 'dark' ? 'black' : 'white', borderColor, borderColor, theme$1.type == 'dark' ? '#3a3d3d' : '#efefef']]]),
|
|
3445
|
+
children: c.label
|
|
3446
|
+
})]
|
|
3447
|
+
})
|
|
3448
|
+
}, c.code);
|
|
3449
|
+
}) : /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
3450
|
+
className: _JSXStyle.dynamic([["2480261071", [SCALES.height(2.25), SCALES.font(0.875), SCALES.width(1, defaultWidth), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), hoverBorder, borderColor, SCALES.width(1, defaultWidth), borderColor, SCALES.width(1, defaultWidth), theme$1.type == 'dark' ? 'black' : 'white', borderColor, borderColor, theme$1.type == 'dark' ? '#3a3d3d' : '#efefef']]]) + " " + "dropdown-item disabled",
|
|
3451
|
+
children: "No results"
|
|
3452
|
+
})
|
|
3453
|
+
})]
|
|
3454
|
+
}), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
3455
|
+
id: "2480261071",
|
|
3456
|
+
dynamic: [SCALES.height(2.25), SCALES.font(0.875), SCALES.width(1, defaultWidth), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), hoverBorder, borderColor, SCALES.width(1, defaultWidth), borderColor, SCALES.width(1, defaultWidth), theme$1.type == 'dark' ? 'black' : 'white', borderColor, borderColor, theme$1.type == 'dark' ? '#3a3d3d' : '#efefef'],
|
|
3457
|
+
children: ".with-label.__jsx-style-dynamic-selector{position:relative;display:inline-block;box-sizing:border-box;-webkit-box-align:center;--input-height:".concat(SCALES.height(2.25), ";font-size:").concat(SCALES.font(0.875), ";width:").concat(SCALES.width(1, defaultWidth), ";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), ";}.phone-input-container.focused.__jsx-style-dynamic-selector{outline:1px solid ").concat(hoverBorder, ";border-radius:6px;}.input-wrapper.__jsx-style-dynamic-selector{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;border:1px solid ").concat(borderColor, ";width:").concat(SCALES.width(1, defaultWidth), ";height:var(--input-height);border-radius:6px;overflow:hidden;}.dropdown-toggle.__jsx-style-dynamic-selector{padding:7px 12px;border-radius:6px 0px 0px 6px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:14px;border-right:1px solid ").concat(borderColor, ";}.phone-input.__jsx-style-dynamic-selector{width:100%;min-width:0;padding:5px 10px;background-color:transparent;font-size:14px;border:none;}.phone-input.__jsx-style-dynamic-selector:focus{outline:none;}.dropdown.__jsx-style-dynamic-selector{position:absolute;top:100%;left:0;width:").concat(SCALES.width(1, defaultWidth), ";background:").concat(theme$1.type == 'dark' ? 'black' : 'white', ";border:1px solid ").concat(borderColor, ";border-radius:6px;margin-top:4px;z-index:999;box-shadow:0 4px 10px rgba(0,0,0,0.1);}.search-input.__jsx-style-dynamic-selector{width:100%;padding:8px 10px;border:none;background-color:transparent;border-bottom:1px solid ").concat(borderColor, ";font-size:14px;}.search-input.__jsx-style-dynamic-selector:focus{outline:none;}.country-list.__jsx-style-dynamic-selector{max-height:200px;overflow-y:auto;}.dropdown-item.__jsx-style-dynamic-selector{padding:10px;cursor:pointer;font-size:14px;}.dropdown-item.__jsx-style-dynamic-selector:hover{background:").concat(theme$1.type == 'dark' ? '#3a3d3d' : '#efefef', ";}.dropdown-item.disabled.__jsx-style-dynamic-selector{color:#888;cursor:default;}")
|
|
3458
|
+
})]
|
|
3459
|
+
});
|
|
3417
3460
|
}
|
|
3418
3461
|
var PhoneInput$1 = withScale(PhoneInput);
|
|
3419
3462
|
|
|
@@ -4115,28 +4158,32 @@ var InputCurrency = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
4115
4158
|
}, props);
|
|
4116
4159
|
if (customInput) {
|
|
4117
4160
|
var CustomInput = customInput;
|
|
4118
|
-
return /*#__PURE__*/
|
|
4161
|
+
return /*#__PURE__*/jsxRuntime.jsx(CustomInput, _objectSpread2({}, inputProps));
|
|
4119
4162
|
}
|
|
4120
|
-
return /*#__PURE__*/
|
|
4121
|
-
className: _JSXStyle.dynamic([["1592876518", [SCALES.height(2.25), SCALES.font(0.875), SCALES.width(1, defaultWidth), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0)]]]) + " " + "with-label"
|
|
4122
|
-
|
|
4123
|
-
|
|
4124
|
-
|
|
4125
|
-
|
|
4126
|
-
|
|
4127
|
-
|
|
4128
|
-
|
|
4129
|
-
|
|
4130
|
-
|
|
4131
|
-
|
|
4132
|
-
|
|
4133
|
-
|
|
4134
|
-
|
|
4135
|
-
|
|
4136
|
-
|
|
4137
|
-
|
|
4138
|
-
|
|
4139
|
-
|
|
4163
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
4164
|
+
className: _JSXStyle.dynamic([["1592876518", [SCALES.height(2.25), SCALES.font(0.875), SCALES.width(1, defaultWidth), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0)]]]) + " " + "with-label",
|
|
4165
|
+
children: [children && /*#__PURE__*/jsxRuntime.jsx(InputBlockLabel, {
|
|
4166
|
+
children: children
|
|
4167
|
+
}), /*#__PURE__*/jsxRuntime.jsx("input", _objectSpread2(_objectSpread2({}, inputProps), {}, {
|
|
4168
|
+
style: {
|
|
4169
|
+
textAlign: 'right',
|
|
4170
|
+
border: "1px solid ".concat(theme$1.palette.border),
|
|
4171
|
+
fontSize: '14px',
|
|
4172
|
+
borderRadius: '5px',
|
|
4173
|
+
height: '35px',
|
|
4174
|
+
padding: '5px 10px',
|
|
4175
|
+
fontWeight: 'light',
|
|
4176
|
+
width: 'auto',
|
|
4177
|
+
background: 'transparent',
|
|
4178
|
+
minWidth: '200px'
|
|
4179
|
+
},
|
|
4180
|
+
className: _JSXStyle.dynamic([["1592876518", [SCALES.height(2.25), SCALES.font(0.875), SCALES.width(1, defaultWidth), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0)]]]) + " " + (inputProps && inputProps.className != null && inputProps.className || "")
|
|
4181
|
+
})), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
4182
|
+
id: "1592876518",
|
|
4183
|
+
dynamic: [SCALES.height(2.25), SCALES.font(0.875), SCALES.width(1, defaultWidth), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0)],
|
|
4184
|
+
children: ".with-label.__jsx-style-dynamic-selector{position:relative;display:inline-block;box-sizing:border-box;-webkit-box-align:center;--input-height:".concat(SCALES.height(2.25), ";font-size:").concat(SCALES.font(0.875), ";width:").concat(SCALES.width(1, defaultWidth), ";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), ";}")
|
|
4185
|
+
})]
|
|
4186
|
+
});
|
|
4140
4187
|
});
|
|
4141
4188
|
|
|
4142
4189
|
// CurrencyInput.displayName = 'CurrencyInput';
|
|
@@ -4159,8 +4206,6 @@ var useAutoCompleteContext = function useAutoCompleteContext() {
|
|
|
4159
4206
|
return React.useContext(AutoCompleteContext);
|
|
4160
4207
|
};
|
|
4161
4208
|
|
|
4162
|
-
// interface Props
|
|
4163
|
-
|
|
4164
4209
|
var AutoCompleteItemComponent = function AutoCompleteItemComponent(_ref) {
|
|
4165
4210
|
var identValue = _ref.value,
|
|
4166
4211
|
children = _ref.children,
|
|
@@ -4182,15 +4227,18 @@ var AutoCompleteItemComponent = function AutoCompleteItemComponent(_ref) {
|
|
|
4182
4227
|
var classes = theme.useClasses('item', {
|
|
4183
4228
|
active: isActive
|
|
4184
4229
|
});
|
|
4185
|
-
return /*#__PURE__*/
|
|
4230
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
4186
4231
|
onClick: selectHandler,
|
|
4187
|
-
className: _JSXStyle.dynamic([["2003094915", [theme$1.palette.background, theme$1.palette.foreground, SCALES.font(0.875), SCALES.width(1, 'auto'), isLabelOnly ? SCALES.height(2.5) : SCALES.height(1, 'auto'), SCALES.pt(0), SCALES.pr(0.75), SCALES.pb(0), SCALES.pl(0.75), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), theme$1.layout.radius, theme$1.layout.radius, theme$1.layout.radius, theme$1.layout.radius, theme$1.palette.accents_1, theme$1.palette.accents_1, theme$1.palette.success]]]) + " " + (classes || "")
|
|
4188
|
-
|
|
4189
|
-
|
|
4190
|
-
|
|
4191
|
-
|
|
4192
|
-
|
|
4193
|
-
|
|
4232
|
+
className: _JSXStyle.dynamic([["2003094915", [theme$1.palette.background, theme$1.palette.foreground, SCALES.font(0.875), SCALES.width(1, 'auto'), isLabelOnly ? SCALES.height(2.5) : SCALES.height(1, 'auto'), SCALES.pt(0), SCALES.pr(0.75), SCALES.pb(0), SCALES.pl(0.75), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), theme$1.layout.radius, theme$1.layout.radius, theme$1.layout.radius, theme$1.layout.radius, theme$1.palette.accents_1, theme$1.palette.accents_1, theme$1.palette.success]]]) + " " + (classes || ""),
|
|
4233
|
+
children: [isLabelOnly ? /*#__PURE__*/jsxRuntime.jsx(theme.Ellipsis, {
|
|
4234
|
+
height: SCALES.height(2),
|
|
4235
|
+
children: children
|
|
4236
|
+
}) : children, /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
4237
|
+
id: "2003094915",
|
|
4238
|
+
dynamic: [theme$1.palette.background, theme$1.palette.foreground, SCALES.font(0.875), SCALES.width(1, 'auto'), isLabelOnly ? SCALES.height(2.5) : SCALES.height(1, 'auto'), SCALES.pt(0), SCALES.pr(0.75), SCALES.pb(0), SCALES.pl(0.75), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), theme$1.layout.radius, theme$1.layout.radius, theme$1.layout.radius, theme$1.layout.radius, theme$1.palette.accents_1, theme$1.palette.accents_1, theme$1.palette.success],
|
|
4239
|
+
children: ".item.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-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;white-space:pre;background-color:".concat(theme$1.palette.background, ";color:").concat(theme$1.palette.foreground, ";-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border:0;cursor: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;font-size:").concat(SCALES.font(0.875), ";width:").concat(SCALES.width(1, 'auto'), ";height:").concat(isLabelOnly ? SCALES.height(2.5) : SCALES.height(1, 'auto'), ";padding:").concat(SCALES.pt(0), " ").concat(SCALES.pr(0.75), " ").concat(SCALES.pb(0), " ").concat(SCALES.pl(0.75), ";margin:").concat(SCALES.mt(0), " ").concat(SCALES.mr(0), " ").concat(SCALES.mb(0), " ").concat(SCALES.ml(0), ";}.item.__jsx-style-dynamic-selector:first-of-type{border-top-left-radius:").concat(theme$1.layout.radius, ";border-top-right-radius:").concat(theme$1.layout.radius, ";}.item.__jsx-style-dynamic-selector:last-of-type{border-bottom-left-radius:").concat(theme$1.layout.radius, ";border-bottom-right-radius:").concat(theme$1.layout.radius, ";}.item.__jsx-style-dynamic-selector:hover{background-color:").concat(theme$1.palette.accents_1, ";}.item.active.__jsx-style-dynamic-selector{background-color:").concat(theme$1.palette.accents_1, ";color:").concat(theme$1.palette.success, ";}")
|
|
4240
|
+
})]
|
|
4241
|
+
});
|
|
4194
4242
|
};
|
|
4195
4243
|
AutoCompleteItemComponent.displayName = 'AutoCompleteItem';
|
|
4196
4244
|
|
|
@@ -4215,38 +4263,39 @@ var AutoCompleteDropdown = function AutoCompleteDropdown(_ref) {
|
|
|
4215
4263
|
event.stopPropagation();
|
|
4216
4264
|
event.nativeEvent.stopImmediatePropagation();
|
|
4217
4265
|
};
|
|
4218
|
-
return /*#__PURE__*/
|
|
4266
|
+
return /*#__PURE__*/jsxRuntime.jsx(theme.Dropdown, {
|
|
4219
4267
|
parent: ref,
|
|
4220
4268
|
visible: visible,
|
|
4221
4269
|
disableMatchWidth: disableMatchWidth,
|
|
4222
|
-
getPopupContainer: getPopupContainer
|
|
4223
|
-
|
|
4224
|
-
|
|
4225
|
-
|
|
4226
|
-
|
|
4227
|
-
|
|
4228
|
-
|
|
4229
|
-
|
|
4230
|
-
|
|
4270
|
+
getPopupContainer: getPopupContainer,
|
|
4271
|
+
children: /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
4272
|
+
style: dropdownStyle,
|
|
4273
|
+
onClick: clickHandler,
|
|
4274
|
+
className: _JSXStyle.dynamic([["155200262", [theme$1.layout.radius, isEmpty ? 'none' : theme$1.expressiveness.shadowLarge, theme$1.palette.background]]]) + " " + (classes || ""),
|
|
4275
|
+
children: [children, /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
4276
|
+
id: "155200262",
|
|
4277
|
+
dynamic: [theme$1.layout.radius, isEmpty ? 'none' : theme$1.expressiveness.shadowLarge, theme$1.palette.background],
|
|
4278
|
+
children: ".auto-complete-dropdown.__jsx-style-dynamic-selector{border-radius:".concat(theme$1.layout.radius, ";box-shadow:").concat(isEmpty ? 'none' : theme$1.expressiveness.shadowLarge, ";background-color:").concat(theme$1.palette.background, ";overflow-y:auto;max-height:15rem;overflow-anchor:none;}")
|
|
4279
|
+
})]
|
|
4280
|
+
})
|
|
4281
|
+
});
|
|
4231
4282
|
};
|
|
4232
4283
|
AutoCompleteDropdown.displayName = 'AutoCompleteDropdown';
|
|
4233
4284
|
|
|
4234
|
-
// interface Props {
|
|
4235
|
-
// className?: string
|
|
4236
|
-
// }
|
|
4237
|
-
|
|
4238
4285
|
var AutoCompleteSearchComponent = function AutoCompleteSearchComponent(_ref) {
|
|
4239
4286
|
var children = _ref.children,
|
|
4240
4287
|
className = _ref.className;
|
|
4241
4288
|
var theme$1 = theme.useTheme();
|
|
4242
4289
|
var _useScale = useScale(),
|
|
4243
4290
|
SCALES = _useScale.SCALES;
|
|
4244
|
-
return /*#__PURE__*/
|
|
4245
|
-
className: _JSXStyle.dynamic([["2266351824", [theme$1.layout.gapHalf, theme$1.palette.background, theme$1.palette.accents_5, theme$1.layout.radius, SCALES.font(0.875), SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.pt(0.875), SCALES.pr(0.875), SCALES.pb(0.875), SCALES.pl(0.875), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0)]]]) + " " + (className || "")
|
|
4246
|
-
|
|
4247
|
-
|
|
4248
|
-
|
|
4249
|
-
|
|
4291
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
4292
|
+
className: _JSXStyle.dynamic([["2266351824", [theme$1.layout.gapHalf, theme$1.palette.background, theme$1.palette.accents_5, theme$1.layout.radius, SCALES.font(0.875), SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.pt(0.875), SCALES.pr(0.875), SCALES.pb(0.875), SCALES.pl(0.875), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0)]]]) + " " + (className || ""),
|
|
4293
|
+
children: [children, /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
4294
|
+
id: "2266351824",
|
|
4295
|
+
dynamic: [theme$1.layout.gapHalf, theme$1.palette.background, theme$1.palette.accents_5, theme$1.layout.radius, SCALES.font(0.875), SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.pt(0.875), SCALES.pr(0.875), SCALES.pb(0.875), SCALES.pl(0.875), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0)],
|
|
4296
|
+
children: "div.__jsx-style-dynamic-selector{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;text-align:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;font-weight:normal;white-space:pre;padding:".concat(theme$1.layout.gapHalf, ";line-height:1;background-color:").concat(theme$1.palette.background, ";color:").concat(theme$1.palette.accents_5, ";-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border:0;border-radius:").concat(theme$1.layout.radius, ";font-size:").concat(SCALES.font(0.875), ";width:").concat(SCALES.width(1, 'auto'), ";height:").concat(SCALES.height(1, 'auto'), ";padding:").concat(SCALES.pt(0.875), " ").concat(SCALES.pr(0.875), " ").concat(SCALES.pb(0.875), " ").concat(SCALES.pl(0.875), ";margin:").concat(SCALES.mt(0), " ").concat(SCALES.mr(0), " ").concat(SCALES.mb(0), " ").concat(SCALES.ml(0), ";}")
|
|
4297
|
+
})]
|
|
4298
|
+
});
|
|
4250
4299
|
};
|
|
4251
4300
|
AutoCompleteSearchComponent.displayName = 'AutoCompleteSearch';
|
|
4252
4301
|
var AutoCompleteSearch = withScale(AutoCompleteSearchComponent);
|
|
@@ -4258,9 +4307,10 @@ var AutoCompleteEmpty = function AutoCompleteEmpty(_ref) {
|
|
|
4258
4307
|
_ref$className = _ref.className,
|
|
4259
4308
|
className = _ref$className === void 0 ? '' : _ref$className;
|
|
4260
4309
|
if (hidden) return null;
|
|
4261
|
-
return /*#__PURE__*/
|
|
4262
|
-
className: className
|
|
4263
|
-
|
|
4310
|
+
return /*#__PURE__*/jsxRuntime.jsx(AutoCompleteSearch, {
|
|
4311
|
+
className: className,
|
|
4312
|
+
children: children
|
|
4313
|
+
});
|
|
4264
4314
|
};
|
|
4265
4315
|
AutoCompleteEmpty.displayName = 'AutoCompleteEmpty';
|
|
4266
4316
|
|
|
@@ -4272,11 +4322,11 @@ var childrenToOptionsNode = function childrenToOptionsNode(options) {
|
|
|
4272
4322
|
key: key
|
|
4273
4323
|
});
|
|
4274
4324
|
var validItem = item;
|
|
4275
|
-
return /*#__PURE__*/
|
|
4276
|
-
key: key,
|
|
4325
|
+
return /*#__PURE__*/jsxRuntime.jsx(AutoCompleteItemComponent, {
|
|
4277
4326
|
value: validItem.value,
|
|
4278
|
-
isLabelOnly: true
|
|
4279
|
-
|
|
4327
|
+
isLabelOnly: true,
|
|
4328
|
+
children: validItem.label
|
|
4329
|
+
}, key);
|
|
4280
4330
|
});
|
|
4281
4331
|
};
|
|
4282
4332
|
|
|
@@ -4285,9 +4335,9 @@ var childrenToOptionsNode = function childrenToOptionsNode(options) {
|
|
|
4285
4335
|
var getSearchIcon = function getSearchIcon(searching) {
|
|
4286
4336
|
var scale = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
|
|
4287
4337
|
if (searching === undefined) return null;
|
|
4288
|
-
return searching ? /*#__PURE__*/
|
|
4338
|
+
return searching ? /*#__PURE__*/jsxRuntime.jsx(Loading, {
|
|
4289
4339
|
scale: +scale / 2
|
|
4290
|
-
}) : /*#__PURE__*/
|
|
4340
|
+
}) : /*#__PURE__*/jsxRuntime.jsx(icons.ArrowRight, {});
|
|
4291
4341
|
};
|
|
4292
4342
|
var AutoCompleteComponent = /*#__PURE__*/React.forwardRef(function (_ref, userRef) {
|
|
4293
4343
|
var _ref$options = _ref.options,
|
|
@@ -4347,11 +4397,15 @@ var AutoCompleteComponent = /*#__PURE__*/React.forwardRef(function (_ref, userRe
|
|
|
4347
4397
|
var hasSearchChild = searchChild && React.Children.count(searchChild) > 0;
|
|
4348
4398
|
var hasEmptyChild = emptyChild && React.Children.count(emptyChild) > 0;
|
|
4349
4399
|
if (searching) {
|
|
4350
|
-
return hasSearchChild ? searchChild : /*#__PURE__*/
|
|
4400
|
+
return hasSearchChild ? searchChild : /*#__PURE__*/jsxRuntime.jsx(AutoCompleteSearch, {
|
|
4401
|
+
children: "Searching..."
|
|
4402
|
+
});
|
|
4351
4403
|
}
|
|
4352
4404
|
if (options.length === 0) {
|
|
4353
4405
|
if (state === '') return null;
|
|
4354
|
-
return hasEmptyChild ? emptyChild : /*#__PURE__*/
|
|
4406
|
+
return hasEmptyChild ? emptyChild : /*#__PURE__*/jsxRuntime.jsx(AutoCompleteEmpty, {
|
|
4407
|
+
children: "No Options"
|
|
4408
|
+
});
|
|
4355
4409
|
}
|
|
4356
4410
|
return childrenToOptionsNode(options);
|
|
4357
4411
|
}, [searching, options]);
|
|
@@ -4417,37 +4471,41 @@ var AutoCompleteComponent = /*#__PURE__*/React.forwardRef(function (_ref, userRe
|
|
|
4417
4471
|
disabled: disabled,
|
|
4418
4472
|
value: state
|
|
4419
4473
|
});
|
|
4420
|
-
return /*#__PURE__*/
|
|
4421
|
-
value: initialValue
|
|
4422
|
-
|
|
4423
|
-
|
|
4424
|
-
|
|
4425
|
-
|
|
4426
|
-
|
|
4427
|
-
|
|
4428
|
-
|
|
4429
|
-
|
|
4430
|
-
|
|
4431
|
-
|
|
4432
|
-
|
|
4433
|
-
|
|
4434
|
-
|
|
4435
|
-
|
|
4436
|
-
|
|
4437
|
-
|
|
4438
|
-
|
|
4439
|
-
|
|
4440
|
-
|
|
4441
|
-
|
|
4442
|
-
|
|
4443
|
-
|
|
4444
|
-
|
|
4445
|
-
|
|
4446
|
-
|
|
4447
|
-
|
|
4448
|
-
|
|
4449
|
-
|
|
4450
|
-
|
|
4474
|
+
return /*#__PURE__*/jsxRuntime.jsx(AutoCompleteContext.Provider, {
|
|
4475
|
+
value: initialValue,
|
|
4476
|
+
children: /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
4477
|
+
ref: ref,
|
|
4478
|
+
className: _JSXStyle.dynamic([["2878925540", [SCALES.width(1, 'max-content'), SCALES.height(1, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0)]]]) + " " + "auto-complete",
|
|
4479
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(Input, _objectSpread2({
|
|
4480
|
+
fullWidth: true,
|
|
4481
|
+
ref: inputRef,
|
|
4482
|
+
type: type,
|
|
4483
|
+
color: color,
|
|
4484
|
+
onChange: onInputChange,
|
|
4485
|
+
onFocus: function onFocus() {
|
|
4486
|
+
return toggleFocusHandler(true);
|
|
4487
|
+
},
|
|
4488
|
+
onBlur: function onBlur() {
|
|
4489
|
+
return toggleFocusHandler(false);
|
|
4490
|
+
},
|
|
4491
|
+
clearable: showClearIcon,
|
|
4492
|
+
width: SCALES.width(1, 'initial'),
|
|
4493
|
+
height: SCALES.height(2.25),
|
|
4494
|
+
iconRight: getSearchIcon(searching, getScaleProps('scale'))
|
|
4495
|
+
}, inputProps)), /*#__PURE__*/jsxRuntime.jsx(AutoCompleteDropdown, {
|
|
4496
|
+
visible: visible,
|
|
4497
|
+
disableMatchWidth: disableMatchWidth,
|
|
4498
|
+
className: dropdownClassName,
|
|
4499
|
+
dropdownStyle: dropdownStyle,
|
|
4500
|
+
getPopupContainer: getPopupContainer,
|
|
4501
|
+
children: autoCompleteItems
|
|
4502
|
+
}), /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
4503
|
+
id: "2878925540",
|
|
4504
|
+
dynamic: [SCALES.width(1, 'max-content'), SCALES.height(1, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0)],
|
|
4505
|
+
children: ".auto-complete.__jsx-style-dynamic-selector{width:".concat(SCALES.width(1, 'max-content'), ";height:").concat(SCALES.height(1, 'auto'), ";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), ";}.auto-complete.__jsx-style-dynamic-selector .loading{width:-webkit-max-content;width:-moz-max-content;width:max-content;}")
|
|
4506
|
+
})]
|
|
4507
|
+
})
|
|
4508
|
+
});
|
|
4451
4509
|
});
|
|
4452
4510
|
AutoCompleteComponent.displayName = 'AutoComplete';
|
|
4453
4511
|
var AutoComplete = withScale(AutoCompleteComponent);
|