@helpdice/ui 2.6.0 → 2.6.1-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/auto-complete/index.js +247 -14
- package/dist/container/index.js +7 -0
- package/dist/expandable/index.js +7 -0
- package/dist/index.js +322 -228
- package/dist/input/index.d.ts +2 -0
- package/dist/input/index.js +247 -14
- package/dist/input/input-currency-range.d.ts +10 -0
- package/dist/table/index.js +233 -146
- package/esm/expandable/expand.js +7 -0
- package/esm/input/index.d.ts +2 -0
- package/esm/input/index.js +2 -0
- package/esm/input/input-currency-range.d.ts +10 -0
- package/esm/input/input-currency-range.js +84 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3884,11 +3884,244 @@ var InputCurrency = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
3884
3884
|
|
|
3885
3885
|
var CurrencyInput = withScale(InputCurrency);
|
|
3886
3886
|
|
|
3887
|
+
var _excluded$1h = ["xs", "sm", "md", "lg", "xl", "justify", "direction", "alignItems", "alignContent", "children", "className"];
|
|
3888
|
+
var getItemLayout = function getItemLayout(val) {
|
|
3889
|
+
var display = val === 0 ? 'display: none;' : 'display: inherit;';
|
|
3890
|
+
if (typeof val === 'number') {
|
|
3891
|
+
var width = 100 / 24 * val;
|
|
3892
|
+
var ratio = width > 100 ? '100%' : width < 0 ? '0' : "".concat(width, "%");
|
|
3893
|
+
return {
|
|
3894
|
+
grow: 0,
|
|
3895
|
+
display: display,
|
|
3896
|
+
width: ratio,
|
|
3897
|
+
basis: ratio
|
|
3898
|
+
};
|
|
3899
|
+
}
|
|
3900
|
+
return {
|
|
3901
|
+
grow: 1,
|
|
3902
|
+
display: display,
|
|
3903
|
+
width: '100%',
|
|
3904
|
+
basis: '0'
|
|
3905
|
+
};
|
|
3906
|
+
};
|
|
3907
|
+
var GridBasicItem = function GridBasicItem(_ref) {
|
|
3908
|
+
var _ref$xs = _ref.xs,
|
|
3909
|
+
xs = _ref$xs === void 0 ? false : _ref$xs,
|
|
3910
|
+
_ref$sm = _ref.sm,
|
|
3911
|
+
sm = _ref$sm === void 0 ? false : _ref$sm,
|
|
3912
|
+
_ref$md = _ref.md,
|
|
3913
|
+
md = _ref$md === void 0 ? false : _ref$md,
|
|
3914
|
+
_ref$lg = _ref.lg,
|
|
3915
|
+
lg = _ref$lg === void 0 ? false : _ref$lg,
|
|
3916
|
+
_ref$xl = _ref.xl,
|
|
3917
|
+
xl = _ref$xl === void 0 ? false : _ref$xl,
|
|
3918
|
+
justify = _ref.justify,
|
|
3919
|
+
direction = _ref.direction,
|
|
3920
|
+
alignItems = _ref.alignItems,
|
|
3921
|
+
alignContent = _ref.alignContent,
|
|
3922
|
+
children = _ref.children,
|
|
3923
|
+
_ref$className = _ref.className,
|
|
3924
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
3925
|
+
props = _objectWithoutProperties(_ref, _excluded$1h);
|
|
3926
|
+
var theme$1 = theme.useTheme();
|
|
3927
|
+
var _useScale = useScale(),
|
|
3928
|
+
SCALES = _useScale.SCALES;
|
|
3929
|
+
var classes = React.useMemo(function () {
|
|
3930
|
+
var aligns = {
|
|
3931
|
+
justify: justify,
|
|
3932
|
+
direction: direction,
|
|
3933
|
+
alignItems: alignItems,
|
|
3934
|
+
alignContent: alignContent,
|
|
3935
|
+
xs: xs,
|
|
3936
|
+
sm: sm,
|
|
3937
|
+
md: md,
|
|
3938
|
+
lg: lg,
|
|
3939
|
+
xl: xl
|
|
3940
|
+
};
|
|
3941
|
+
var classString = Object.keys(aligns).reduce(function (pre, name) {
|
|
3942
|
+
if (aligns[name] !== undefined && aligns[name] !== false) return "".concat(pre, " ").concat(name);
|
|
3943
|
+
return pre;
|
|
3944
|
+
}, '');
|
|
3945
|
+
return classString.trim();
|
|
3946
|
+
}, [justify, direction, alignItems, alignContent, xs, sm, md, lg, xl]);
|
|
3947
|
+
var layout = React.useMemo(function () {
|
|
3948
|
+
return {
|
|
3949
|
+
xs: getItemLayout(xs),
|
|
3950
|
+
sm: getItemLayout(sm),
|
|
3951
|
+
md: getItemLayout(md),
|
|
3952
|
+
lg: getItemLayout(lg),
|
|
3953
|
+
xl: getItemLayout(xl)
|
|
3954
|
+
};
|
|
3955
|
+
}, [xs, sm, md, lg, xl]);
|
|
3956
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
3957
|
+
className: _JSXStyle.dynamic([["568430467", [SCALES.font(1, 'inherit'), SCALES.height(1, 'auto'), justify, direction, alignContent, alignItems, layout.xs.grow, layout.xs.width, layout.xs.basis, layout.xs.display, theme$1.breakpoints.sm.min, layout.sm.grow, layout.sm.width, layout.sm.basis, layout.sm.display, theme$1.breakpoints.md.min, layout.md.grow, layout.md.width, layout.md.basis, layout.md.display, theme$1.breakpoints.lg.min, layout.lg.grow, layout.lg.width, layout.lg.basis, layout.lg.display, theme$1.breakpoints.xl.min, layout.xl.grow, layout.xl.width, layout.xl.basis, layout.xl.display]]]) + " " + (props && props.className != null && props.className || theme.useClasses('item', classes, className) || ""),
|
|
3958
|
+
children: [children, /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
3959
|
+
id: "568430467",
|
|
3960
|
+
dynamic: [SCALES.font(1, 'inherit'), SCALES.height(1, 'auto'), justify, direction, alignContent, alignItems, layout.xs.grow, layout.xs.width, layout.xs.basis, layout.xs.display, theme$1.breakpoints.sm.min, layout.sm.grow, layout.sm.width, layout.sm.basis, layout.sm.display, theme$1.breakpoints.md.min, layout.md.grow, layout.md.width, layout.md.basis, layout.md.display, theme$1.breakpoints.lg.min, layout.lg.grow, layout.lg.width, layout.lg.basis, layout.lg.display, theme$1.breakpoints.xl.min, layout.xl.grow, layout.xl.width, layout.xl.basis, layout.xl.display],
|
|
3961
|
+
children: ".item.__jsx-style-dynamic-selector{font-size:".concat(SCALES.font(1, 'inherit'), ";height:").concat(SCALES.height(1, 'auto'), ";}.justify.__jsx-style-dynamic-selector{-webkit-box-pack:").concat(justify, ";-webkit-justify-content:").concat(justify, ";-ms-flex-pack:").concat(justify, ";justify-content:").concat(justify, ";}.direction.__jsx-style-dynamic-selector{-webkit-flex-direction:").concat(direction, ";-ms-flex-direction:").concat(direction, ";flex-direction:").concat(direction, ";}.alignContent.__jsx-style-dynamic-selector{-webkit-align-content:").concat(alignContent, ";-ms-flex-line-pack:").concat(alignContent, ";align-content:").concat(alignContent, ";}.alignItems.__jsx-style-dynamic-selector{-webkit-align-items:").concat(alignItems, ";-webkit-box-align:").concat(alignItems, ";-ms-flex-align:").concat(alignItems, ";align-items:").concat(alignItems, ";}.xs.__jsx-style-dynamic-selector{-webkit-box-flex:").concat(layout.xs.grow, ";-webkit-flex-grow:").concat(layout.xs.grow, ";-ms-flex-positive:").concat(layout.xs.grow, ";flex-grow:").concat(layout.xs.grow, ";max-width:").concat(layout.xs.width, ";-webkit-flex-basis:").concat(layout.xs.basis, ";-ms-flex-preferred-size:").concat(layout.xs.basis, ";flex-basis:").concat(layout.xs.basis, ";").concat(layout.xs.display, ";}@media only screen and (min-width:").concat(theme$1.breakpoints.sm.min, "){.sm.__jsx-style-dynamic-selector{-webkit-box-flex:").concat(layout.sm.grow, ";-webkit-flex-grow:").concat(layout.sm.grow, ";-ms-flex-positive:").concat(layout.sm.grow, ";flex-grow:").concat(layout.sm.grow, ";max-width:").concat(layout.sm.width, ";-webkit-flex-basis:").concat(layout.sm.basis, ";-ms-flex-preferred-size:").concat(layout.sm.basis, ";flex-basis:").concat(layout.sm.basis, ";").concat(layout.sm.display, ";}}@media only screen and (min-width:").concat(theme$1.breakpoints.md.min, "){.md.__jsx-style-dynamic-selector{-webkit-box-flex:").concat(layout.md.grow, ";-webkit-flex-grow:").concat(layout.md.grow, ";-ms-flex-positive:").concat(layout.md.grow, ";flex-grow:").concat(layout.md.grow, ";max-width:").concat(layout.md.width, ";-webkit-flex-basis:").concat(layout.md.basis, ";-ms-flex-preferred-size:").concat(layout.md.basis, ";flex-basis:").concat(layout.md.basis, ";").concat(layout.md.display, ";}}@media only screen and (min-width:").concat(theme$1.breakpoints.lg.min, "){.lg.__jsx-style-dynamic-selector{-webkit-box-flex:").concat(layout.lg.grow, ";-webkit-flex-grow:").concat(layout.lg.grow, ";-ms-flex-positive:").concat(layout.lg.grow, ";flex-grow:").concat(layout.lg.grow, ";max-width:").concat(layout.lg.width, ";-webkit-flex-basis:").concat(layout.lg.basis, ";-ms-flex-preferred-size:").concat(layout.lg.basis, ";flex-basis:").concat(layout.lg.basis, ";").concat(layout.lg.display, ";}}@media only screen and (min-width:").concat(theme$1.breakpoints.xl.min, "){.xl.__jsx-style-dynamic-selector{-webkit-box-flex:").concat(layout.xl.grow, ";-webkit-flex-grow:").concat(layout.xl.grow, ";-ms-flex-positive:").concat(layout.xl.grow, ";flex-grow:").concat(layout.xl.grow, ";max-width:").concat(layout.xl.width, ";-webkit-flex-basis:").concat(layout.xl.basis, ";-ms-flex-preferred-size:").concat(layout.xl.basis, ";flex-basis:").concat(layout.xl.basis, ";").concat(layout.xl.display, ";}}")
|
|
3962
|
+
})]
|
|
3963
|
+
}));
|
|
3964
|
+
};
|
|
3965
|
+
GridBasicItem.displayName = 'GridBasicItem';
|
|
3966
|
+
|
|
3967
|
+
var _excluded$1g = ["children", "className"];
|
|
3968
|
+
var GridComponent = function GridComponent(_ref) {
|
|
3969
|
+
var children = _ref.children,
|
|
3970
|
+
_ref$className = _ref.className,
|
|
3971
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
3972
|
+
props = _objectWithoutProperties(_ref, _excluded$1g);
|
|
3973
|
+
var _useScale = useScale(),
|
|
3974
|
+
SCALES = _useScale.SCALES;
|
|
3975
|
+
var _styles$className = {
|
|
3976
|
+
styles: /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
3977
|
+
id: "1271839607",
|
|
3978
|
+
dynamic: [SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.pt(0, 'var(--grid-gap-unit)'), SCALES.pr(0, 'var(--grid-gap-unit)'), SCALES.pb(0, 'var(--grid-gap-unit)'), SCALES.pl(0, 'var(--grid-gap-unit)')],
|
|
3979
|
+
children: "div.__jsx-style-dynamic-selector{margin:".concat(SCALES.mt(0), " ").concat(SCALES.mr(0), " ").concat(SCALES.mb(0), " ").concat(SCALES.ml(0), ";box-sizing:border-box;padding:").concat(SCALES.pt(0, 'var(--grid-gap-unit)'), " ").concat(SCALES.pr(0, 'var(--grid-gap-unit)'), " ").concat(SCALES.pb(0, 'var(--grid-gap-unit)'), " ").concat(SCALES.pl(0, 'var(--grid-gap-unit)'), ";}")
|
|
3980
|
+
}),
|
|
3981
|
+
className: _JSXStyle.dynamic([["1271839607", [SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.pt(0, 'var(--grid-gap-unit)'), SCALES.pr(0, 'var(--grid-gap-unit)'), SCALES.pb(0, 'var(--grid-gap-unit)'), SCALES.pl(0, 'var(--grid-gap-unit)')]]])
|
|
3982
|
+
},
|
|
3983
|
+
resolveClassName = _styles$className.className,
|
|
3984
|
+
styles = _styles$className.styles;
|
|
3985
|
+
var classes = theme.useClasses(resolveClassName, className);
|
|
3986
|
+
return /*#__PURE__*/jsxRuntime.jsxs(GridBasicItem, _objectSpread2(_objectSpread2({
|
|
3987
|
+
className: classes
|
|
3988
|
+
}, props), {}, {
|
|
3989
|
+
children: [children, styles]
|
|
3990
|
+
}));
|
|
3991
|
+
};
|
|
3992
|
+
GridComponent.displayName = 'Grid';
|
|
3993
|
+
var Grid = withScale(GridComponent);
|
|
3994
|
+
|
|
3995
|
+
var _excluded$1f = ["gap", "wrap", "children", "className"];
|
|
3996
|
+
var GridContainerComponent = function GridContainerComponent(_ref) {
|
|
3997
|
+
var _ref$gap = _ref.gap,
|
|
3998
|
+
gap = _ref$gap === void 0 ? 0 : _ref$gap,
|
|
3999
|
+
_ref$wrap = _ref.wrap,
|
|
4000
|
+
wrap = _ref$wrap === void 0 ? 'wrap' : _ref$wrap,
|
|
4001
|
+
children = _ref.children,
|
|
4002
|
+
_ref$className = _ref.className,
|
|
4003
|
+
className = _ref$className === void 0 ? '' : _ref$className,
|
|
4004
|
+
props = _objectWithoutProperties(_ref, _excluded$1f);
|
|
4005
|
+
var _useScale = useScale(),
|
|
4006
|
+
unit = _useScale.unit,
|
|
4007
|
+
SCALES = _useScale.SCALES;
|
|
4008
|
+
var gapUnit = React.useMemo(function () {
|
|
4009
|
+
return "calc(".concat(gap, " * ").concat(unit, " * 1/3)");
|
|
4010
|
+
}, [gap, unit]);
|
|
4011
|
+
var _styles$className = {
|
|
4012
|
+
styles: /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
4013
|
+
id: "3631618093",
|
|
4014
|
+
dynamic: [gapUnit, wrap, SCALES.width(1, 'var(--grid-container-width)'), SCALES.mt(0, 'var(--grid-container-margin)'), SCALES.mr(0, 'var(--grid-container-margin)'), SCALES.mb(0, 'var(--grid-container-margin)'), SCALES.ml(0, 'var(--grid-container-margin)')],
|
|
4015
|
+
children: "div.__jsx-style-dynamic-selector{--grid-gap-unit:".concat(gapUnit, ";--grid-container-margin:calc(-1 * var(--grid-gap-unit));--grid-container-width:calc(100% + var(--grid-gap-unit) * 2);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:").concat(wrap, ";-ms-flex-wrap:").concat(wrap, ";flex-wrap:").concat(wrap, ";box-sizing:border-box;width:").concat(SCALES.width(1, 'var(--grid-container-width)'), ";margin:").concat(SCALES.mt(0, 'var(--grid-container-margin)'), " ").concat(SCALES.mr(0, 'var(--grid-container-margin)'), " ").concat(SCALES.mb(0, 'var(--grid-container-margin)'), " ").concat(SCALES.ml(0, 'var(--grid-container-margin)'), ";}")
|
|
4016
|
+
}),
|
|
4017
|
+
className: _JSXStyle.dynamic([["3631618093", [gapUnit, wrap, SCALES.width(1, 'var(--grid-container-width)'), SCALES.mt(0, 'var(--grid-container-margin)'), SCALES.mr(0, 'var(--grid-container-margin)'), SCALES.mb(0, 'var(--grid-container-margin)'), SCALES.ml(0, 'var(--grid-container-margin)')]]])
|
|
4018
|
+
},
|
|
4019
|
+
resolveClassName = _styles$className.className,
|
|
4020
|
+
styles = _styles$className.styles;
|
|
4021
|
+
var classes = theme.useClasses(resolveClassName, className);
|
|
4022
|
+
return /*#__PURE__*/jsxRuntime.jsxs(GridBasicItem, _objectSpread2(_objectSpread2({
|
|
4023
|
+
className: classes
|
|
4024
|
+
}, props), {}, {
|
|
4025
|
+
children: [children, styles]
|
|
4026
|
+
}));
|
|
4027
|
+
};
|
|
4028
|
+
GridContainerComponent.displayName = 'GridContainer';
|
|
4029
|
+
var GridContainer = withScale(GridContainerComponent);
|
|
4030
|
+
|
|
4031
|
+
Grid.Container = GridContainer;
|
|
4032
|
+
|
|
4033
|
+
function parseCurrency(value) {
|
|
4034
|
+
var _trimmed$match;
|
|
4035
|
+
var trimmed = value.trim();
|
|
4036
|
+
|
|
4037
|
+
// Extract currency symbol
|
|
4038
|
+
var currencySymbol = ((_trimmed$match = trimmed.match(/[^\d.,\s]/)) === null || _trimmed$match === void 0 ? void 0 : _trimmed$match[0]) || "";
|
|
4039
|
+
|
|
4040
|
+
// Remove everything except digits, comma, dot
|
|
4041
|
+
var numericPart = trimmed.replace(/[^\d.,]/g, "");
|
|
4042
|
+
|
|
4043
|
+
// Convert comma to dot if needed
|
|
4044
|
+
var normalized = numericPart.replace(",", ".");
|
|
4045
|
+
return {
|
|
4046
|
+
amount: Number(normalized),
|
|
4047
|
+
currency: currencySymbol
|
|
4048
|
+
};
|
|
4049
|
+
}
|
|
4050
|
+
function CurrencyRangeInput(_ref) {
|
|
4051
|
+
var prefix = _ref.prefix,
|
|
4052
|
+
allowDecimals = _ref.allowDecimals,
|
|
4053
|
+
onChange = _ref.onChange,
|
|
4054
|
+
intlConfig = _ref.intlConfig,
|
|
4055
|
+
children = _ref.children,
|
|
4056
|
+
error = _ref.error,
|
|
4057
|
+
helperText = _ref.helperText;
|
|
4058
|
+
var _React$useState = React.useState({
|
|
4059
|
+
min: '0',
|
|
4060
|
+
max: '0',
|
|
4061
|
+
currency: ''
|
|
4062
|
+
}),
|
|
4063
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
4064
|
+
value = _React$useState2[0],
|
|
4065
|
+
setValue = _React$useState2[1];
|
|
4066
|
+
React.useEffect(function () {
|
|
4067
|
+
var min = parseCurrency(value.min);
|
|
4068
|
+
var max = parseCurrency(value.max);
|
|
4069
|
+
if (max.amount > min.amount) {
|
|
4070
|
+
if (onChange) onChange({
|
|
4071
|
+
min: min.amount,
|
|
4072
|
+
max: max.amount,
|
|
4073
|
+
currency: min.currency
|
|
4074
|
+
});
|
|
4075
|
+
}
|
|
4076
|
+
}, [value]);
|
|
4077
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
4078
|
+
className: "with-label",
|
|
4079
|
+
children: [children && /*#__PURE__*/jsxRuntime.jsx(InputBlockLabel, {
|
|
4080
|
+
children: children
|
|
4081
|
+
}), /*#__PURE__*/jsxRuntime.jsxs(Grid.Container, {
|
|
4082
|
+
gap: 2,
|
|
4083
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(Grid, {
|
|
4084
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Input.Currency, {
|
|
4085
|
+
onChange: function onChange(e) {
|
|
4086
|
+
return setValue(function (prev) {
|
|
4087
|
+
return _objectSpread2(_objectSpread2({}, prev), {}, {
|
|
4088
|
+
min: e.target.value
|
|
4089
|
+
});
|
|
4090
|
+
});
|
|
4091
|
+
},
|
|
4092
|
+
intlConfig: intlConfig,
|
|
4093
|
+
prefix: prefix,
|
|
4094
|
+
placeholder: "Min",
|
|
4095
|
+
allowDecimals: allowDecimals
|
|
4096
|
+
})
|
|
4097
|
+
}), /*#__PURE__*/jsxRuntime.jsx(Grid, {
|
|
4098
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Input.Currency, {
|
|
4099
|
+
onChange: function onChange(e) {
|
|
4100
|
+
return setValue(function (prev) {
|
|
4101
|
+
return _objectSpread2(_objectSpread2({}, prev), {}, {
|
|
4102
|
+
max: e.target.value
|
|
4103
|
+
});
|
|
4104
|
+
});
|
|
4105
|
+
},
|
|
4106
|
+
intlConfig: intlConfig,
|
|
4107
|
+
prefix: prefix,
|
|
4108
|
+
placeholder: "Max",
|
|
4109
|
+
allowDecimals: allowDecimals
|
|
4110
|
+
})
|
|
4111
|
+
})]
|
|
4112
|
+
}), helperText && /*#__PURE__*/jsxRuntime.jsx(InputError, {
|
|
4113
|
+
error: error,
|
|
4114
|
+
text: helperText
|
|
4115
|
+
})]
|
|
4116
|
+
});
|
|
4117
|
+
}
|
|
4118
|
+
|
|
3887
4119
|
/* "use client" */
|
|
3888
4120
|
Input.Textarea = Textarea;
|
|
3889
4121
|
Input.Password = InputPassword;
|
|
3890
4122
|
Input.Phone = PhoneInput$1;
|
|
3891
4123
|
Input.Currency = CurrencyInput;
|
|
4124
|
+
Input.CurrencyRange = CurrencyRangeInput;
|
|
3892
4125
|
|
|
3893
4126
|
/* "use client" */
|
|
3894
4127
|
|
|
@@ -4008,7 +4241,7 @@ var AutoCompleteEmpty = function AutoCompleteEmpty(_ref) {
|
|
|
4008
4241
|
};
|
|
4009
4242
|
AutoCompleteEmpty.displayName = 'AutoCompleteEmpty';
|
|
4010
4243
|
|
|
4011
|
-
var _excluded$
|
|
4244
|
+
var _excluded$1e = ["children", "type", "color", "className", "spaceRatio"];
|
|
4012
4245
|
var getIconBgColor = function getIconBgColor(type, palette, color) {
|
|
4013
4246
|
var colors = {
|
|
4014
4247
|
"default": palette.accents_6,
|
|
@@ -4028,7 +4261,7 @@ var LoadingComponent = function LoadingComponent(_ref) {
|
|
|
4028
4261
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
4029
4262
|
_ref$spaceRatio = _ref.spaceRatio,
|
|
4030
4263
|
spaceRatio = _ref$spaceRatio === void 0 ? 1 : _ref$spaceRatio,
|
|
4031
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4264
|
+
props = _objectWithoutProperties(_ref, _excluded$1e);
|
|
4032
4265
|
var theme$1 = theme.useTheme();
|
|
4033
4266
|
var _useScale = useScale(),
|
|
4034
4267
|
SCALES = _useScale.SCALES;
|
|
@@ -4060,7 +4293,7 @@ var LoadingComponent = function LoadingComponent(_ref) {
|
|
|
4060
4293
|
LoadingComponent.displayName = 'Loading';
|
|
4061
4294
|
var Loading = withScale(LoadingComponent);
|
|
4062
4295
|
|
|
4063
|
-
var _excluded$
|
|
4296
|
+
var _excluded$1d = ["options", "initialValue", "onSelect", "onSearch", "onChange", "searching", "children", "type", "color", "value", "clearable", "disabled", "dropdownClassName", "dropdownStyle", "disableMatchWidth", "disableFreeSolo", "getPopupContainer"];
|
|
4064
4297
|
var childrenToOptionsNode = function childrenToOptionsNode(options) {
|
|
4065
4298
|
return options.map(function (item, index) {
|
|
4066
4299
|
var key = "auto-complete-item-".concat(index);
|
|
@@ -4109,7 +4342,7 @@ var AutoCompleteComponent = /*#__PURE__*/React.forwardRef(function (_ref, userRe
|
|
|
4109
4342
|
_ref$disableFreeSolo = _ref.disableFreeSolo,
|
|
4110
4343
|
disableFreeSolo = _ref$disableFreeSolo === void 0 ? false : _ref$disableFreeSolo,
|
|
4111
4344
|
getPopupContainer = _ref.getPopupContainer,
|
|
4112
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4345
|
+
props = _objectWithoutProperties(_ref, _excluded$1d);
|
|
4113
4346
|
var resetTimer = React.useRef(0); // DEFAULT Value 0
|
|
4114
4347
|
var _useScale = useScale(),
|
|
4115
4348
|
SCALES = _useScale.SCALES,
|
|
@@ -4262,7 +4495,7 @@ AutoComplete.Option = AutoCompleteItemComponent;
|
|
|
4262
4495
|
AutoComplete.Searching = AutoCompleteSearch;
|
|
4263
4496
|
AutoComplete.Empty = AutoCompleteEmpty;
|
|
4264
4497
|
|
|
4265
|
-
var _excluded$
|
|
4498
|
+
var _excluded$1c = ["src", "errorSrc", "stacked", "text", "isSquare", "className", "children"];
|
|
4266
4499
|
var safeText = function safeText(text) {
|
|
4267
4500
|
if (text.length <= 4) return text;
|
|
4268
4501
|
return text.slice(0, 3);
|
|
@@ -4281,7 +4514,7 @@ var AvatarComponent = function AvatarComponent(_ref) {
|
|
|
4281
4514
|
_ref$className = _ref.className,
|
|
4282
4515
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
4283
4516
|
children = _ref.children,
|
|
4284
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4517
|
+
props = _objectWithoutProperties(_ref, _excluded$1c);
|
|
4285
4518
|
var theme$1 = theme.useTheme();
|
|
4286
4519
|
var fallbackSrc = theme$1.type === 'dark' ? errorImgDark : errorImgLight;
|
|
4287
4520
|
var _useScale = useScale(),
|
|
@@ -4342,7 +4575,7 @@ var AvatarGroup = withScale(AvatarGroupComponent);
|
|
|
4342
4575
|
|
|
4343
4576
|
Avatar.Group = AvatarGroup;
|
|
4344
4577
|
|
|
4345
|
-
var _excluded$
|
|
4578
|
+
var _excluded$1b = ["color", "className", "children", "dot"];
|
|
4346
4579
|
var getBgColor = function getBgColor(type, palette) {
|
|
4347
4580
|
var colors = {
|
|
4348
4581
|
"default": palette.foreground,
|
|
@@ -4361,7 +4594,7 @@ var BadgeComponent = function BadgeComponent(_ref) {
|
|
|
4361
4594
|
children = _ref.children,
|
|
4362
4595
|
_ref$dot = _ref.dot,
|
|
4363
4596
|
dot = _ref$dot === void 0 ? false : _ref$dot,
|
|
4364
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4597
|
+
props = _objectWithoutProperties(_ref, _excluded$1b);
|
|
4365
4598
|
var theme$1 = theme.useTheme();
|
|
4366
4599
|
var _useScale = useScale(),
|
|
4367
4600
|
SCALES = _useScale.SCALES;
|
|
@@ -4575,7 +4808,7 @@ var LinkIconComponent = function LinkIconComponent() {
|
|
|
4575
4808
|
LinkIconComponent.displayName = 'LinkIcon';
|
|
4576
4809
|
var LinkIcon = /*#__PURE__*/React.memo(LinkIconComponent);
|
|
4577
4810
|
|
|
4578
|
-
var _excluded$
|
|
4811
|
+
var _excluded$1a = ["href", "showColor", "underline", "children", "className", "block", "arrow", "icon"];
|
|
4579
4812
|
var LinkComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
4580
4813
|
var _ref$href = _ref.href,
|
|
4581
4814
|
href = _ref$href === void 0 ? '' : _ref$href,
|
|
@@ -4591,7 +4824,7 @@ var LinkComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
4591
4824
|
_ref$arrow = _ref.arrow,
|
|
4592
4825
|
arrow = _ref$arrow === void 0 ? false : _ref$arrow,
|
|
4593
4826
|
icon = _ref.icon,
|
|
4594
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4827
|
+
props = _objectWithoutProperties(_ref, _excluded$1a);
|
|
4595
4828
|
var theme$1 = theme.useTheme();
|
|
4596
4829
|
var _useScale = useScale(),
|
|
4597
4830
|
SCALES = _useScale.SCALES;
|
|
@@ -4619,7 +4852,7 @@ var LinkComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
4619
4852
|
LinkComponent.displayName = 'Link';
|
|
4620
4853
|
var Link = withScale(LinkComponent);
|
|
4621
4854
|
|
|
4622
|
-
var _excluded$
|
|
4855
|
+
var _excluded$19 = ["href", "nextLink", "onClick", "children", "className"];
|
|
4623
4856
|
var BreadcrumbsItem = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
4624
4857
|
var href = _ref.href,
|
|
4625
4858
|
_ref$nextLink = _ref.nextLink,
|
|
@@ -4628,7 +4861,7 @@ var BreadcrumbsItem = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
4628
4861
|
children = _ref.children,
|
|
4629
4862
|
_ref$className = _ref.className,
|
|
4630
4863
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
4631
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4864
|
+
props = _objectWithoutProperties(_ref, _excluded$19);
|
|
4632
4865
|
var isLink = React.useMemo(function () {
|
|
4633
4866
|
return href !== undefined || nextLink;
|
|
4634
4867
|
}, [href, nextLink]);
|
|
@@ -4735,7 +4968,7 @@ var ButtonLoading = function ButtonLoading(_ref) {
|
|
|
4735
4968
|
};
|
|
4736
4969
|
ButtonLoading.displayName = 'ButtonLoading';
|
|
4737
4970
|
|
|
4738
|
-
var _excluded$
|
|
4971
|
+
var _excluded$18 = ["isRight", "isSingle", "children", "className"];
|
|
4739
4972
|
var ButtonIcon = function ButtonIcon(_ref) {
|
|
4740
4973
|
var _ref$isRight = _ref.isRight,
|
|
4741
4974
|
isRight = _ref$isRight === void 0 ? false : _ref$isRight,
|
|
@@ -4743,7 +4976,7 @@ var ButtonIcon = function ButtonIcon(_ref) {
|
|
|
4743
4976
|
children = _ref.children,
|
|
4744
4977
|
_ref$className = _ref.className,
|
|
4745
4978
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
4746
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4979
|
+
props = _objectWithoutProperties(_ref, _excluded$18);
|
|
4747
4980
|
var classes = theme.useClasses('icon', {
|
|
4748
4981
|
right: isRight,
|
|
4749
4982
|
single: isSingle
|
|
@@ -5010,7 +5243,7 @@ var getButtonDripColor = function getButtonDripColor(palette, props) {
|
|
|
5010
5243
|
return isLightHover ? addColorAlpha(hoverColors.bg, 0.65) : addColorAlpha(palette.accents_2, 0.65);
|
|
5011
5244
|
};
|
|
5012
5245
|
|
|
5013
|
-
var _excluded$
|
|
5246
|
+
var _excluded$17 = ["children", "disabled", "color", "loading", "shadow", "ghost", "effect", "round", "relative", "replace", "a", "to", "onClick", "auto", "icon", "type", "iconRight", "className", "crossOrigin"];
|
|
5014
5247
|
var ButtonComponent = /*#__PURE__*/React.forwardRef(function (btnProps, ref) {
|
|
5015
5248
|
var theme$1 = theme.useTheme();
|
|
5016
5249
|
// const navigate = useNavigate();
|
|
@@ -5064,7 +5297,7 @@ var ButtonComponent = /*#__PURE__*/React.forwardRef(function (btnProps, ref) {
|
|
|
5064
5297
|
_filteredProps$classN = filteredProps.className,
|
|
5065
5298
|
className = _filteredProps$classN === void 0 ? '' : _filteredProps$classN;
|
|
5066
5299
|
filteredProps.crossOrigin;
|
|
5067
|
-
var props = _objectWithoutProperties(filteredProps, _excluded$
|
|
5300
|
+
var props = _objectWithoutProperties(filteredProps, _excluded$17);
|
|
5068
5301
|
/* eslint-enable @typescript-eslint/no-unused-vars */
|
|
5069
5302
|
|
|
5070
5303
|
var _useMemo = React.useMemo(function () {
|
|
@@ -5327,7 +5560,7 @@ var useButtonDropdown = function useButtonDropdown() {
|
|
|
5327
5560
|
return React.useContext(ButtonDropdownContext);
|
|
5328
5561
|
};
|
|
5329
5562
|
|
|
5330
|
-
var _excluded$
|
|
5563
|
+
var _excluded$16 = ["children", "onClick", "className", "main", "icon", "type"];
|
|
5331
5564
|
var ButtonDropdownItem = function ButtonDropdownItem(_ref) {
|
|
5332
5565
|
var children = _ref.children,
|
|
5333
5566
|
_ref$onClick = _ref.onClick,
|
|
@@ -5338,7 +5571,7 @@ var ButtonDropdownItem = function ButtonDropdownItem(_ref) {
|
|
|
5338
5571
|
main = _ref$main === void 0 ? false : _ref$main,
|
|
5339
5572
|
icon = _ref.icon,
|
|
5340
5573
|
selfType = _ref.type,
|
|
5341
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5574
|
+
props = _objectWithoutProperties(_ref, _excluded$16);
|
|
5342
5575
|
var theme$1 = theme.useTheme();
|
|
5343
5576
|
var _useScale = useScale(),
|
|
5344
5577
|
SCALES = _useScale.SCALES;
|
|
@@ -5380,7 +5613,7 @@ var ButtonDropdownItem = function ButtonDropdownItem(_ref) {
|
|
|
5380
5613
|
};
|
|
5381
5614
|
ButtonDropdownItem.displayName = 'ButtonDropdownItem';
|
|
5382
5615
|
|
|
5383
|
-
var _excluded$
|
|
5616
|
+
var _excluded$15 = ["children", "type", "auto", "className", "disabled", "loading", "icon"];
|
|
5384
5617
|
var stopPropagation$1 = function stopPropagation(event) {
|
|
5385
5618
|
event.stopPropagation();
|
|
5386
5619
|
event.nativeEvent.stopImmediatePropagation();
|
|
@@ -5398,7 +5631,7 @@ var ButtonDropdownComponent = function ButtonDropdownComponent(_ref) {
|
|
|
5398
5631
|
_ref$loading = _ref.loading,
|
|
5399
5632
|
loading = _ref$loading === void 0 ? false : _ref$loading,
|
|
5400
5633
|
icon = _ref.icon,
|
|
5401
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5634
|
+
props = _objectWithoutProperties(_ref, _excluded$15);
|
|
5402
5635
|
var _useScale = useScale(),
|
|
5403
5636
|
SCALES = _useScale.SCALES;
|
|
5404
5637
|
var ref = React.useRef(null);
|
|
@@ -5480,7 +5713,7 @@ var ButtonDropdown = withScale(ButtonDropdownComponent);
|
|
|
5480
5713
|
/* "use client" */
|
|
5481
5714
|
ButtonDropdown.Item = ButtonDropdownItem;
|
|
5482
5715
|
|
|
5483
|
-
var _excluded$
|
|
5716
|
+
var _excluded$14 = ["disabled", "type", "ghost", "vertical", "children", "className"];
|
|
5484
5717
|
var getGroupBorderColors = function getGroupBorderColors(palette, props) {
|
|
5485
5718
|
var _props$ghost = props.ghost,
|
|
5486
5719
|
ghost = _props$ghost === void 0 ? false : _props$ghost,
|
|
@@ -5507,7 +5740,7 @@ var ButtonGroupComponent = function ButtonGroupComponent(groupProps) {
|
|
|
5507
5740
|
vertical = groupProps.vertical,
|
|
5508
5741
|
children = groupProps.children,
|
|
5509
5742
|
className = groupProps.className,
|
|
5510
|
-
props = _objectWithoutProperties(groupProps, _excluded$
|
|
5743
|
+
props = _objectWithoutProperties(groupProps, _excluded$14);
|
|
5511
5744
|
var initialValue = React.useMemo(function () {
|
|
5512
5745
|
return {
|
|
5513
5746
|
disabled: disabled,
|
|
@@ -5567,7 +5800,7 @@ var useProportions = function useProportions(value, max) {
|
|
|
5567
5800
|
}, [value, max, maxFixed]);
|
|
5568
5801
|
};
|
|
5569
5802
|
|
|
5570
|
-
var _excluded$
|
|
5803
|
+
var _excluded$13 = ["value", "limit", "color", "className"];
|
|
5571
5804
|
var getColor$3 = function getColor(val, palette) {
|
|
5572
5805
|
if (val < 33) return palette.cyan;
|
|
5573
5806
|
if (val < 66) return palette.warning;
|
|
@@ -5581,7 +5814,7 @@ var CapacityComponent = function CapacityComponent(_ref) {
|
|
|
5581
5814
|
userColor = _ref.color,
|
|
5582
5815
|
_ref$className = _ref.className,
|
|
5583
5816
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
5584
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5817
|
+
props = _objectWithoutProperties(_ref, _excluded$13);
|
|
5585
5818
|
var theme$1 = theme.useTheme();
|
|
5586
5819
|
var _useScale = useScale(),
|
|
5587
5820
|
SCALES = _useScale.SCALES;
|
|
@@ -5660,14 +5893,14 @@ var getStyles$1 = function getStyles(type, palette, isShadow) {
|
|
|
5660
5893
|
});
|
|
5661
5894
|
};
|
|
5662
5895
|
|
|
5663
|
-
var _excluded$
|
|
5896
|
+
var _excluded$12 = ["children", "className", "disableAutoMargin"];
|
|
5664
5897
|
var CardFooterComponent = function CardFooterComponent(_ref) {
|
|
5665
5898
|
var children = _ref.children,
|
|
5666
5899
|
_ref$className = _ref.className,
|
|
5667
5900
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
5668
5901
|
_ref$disableAutoMargi = _ref.disableAutoMargin,
|
|
5669
5902
|
disableAutoMargin = _ref$disableAutoMargi === void 0 ? false : _ref$disableAutoMargi,
|
|
5670
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5903
|
+
props = _objectWithoutProperties(_ref, _excluded$12);
|
|
5671
5904
|
var theme$1 = theme.useTheme();
|
|
5672
5905
|
var _useScale = useScale(),
|
|
5673
5906
|
SCALES = _useScale.SCALES;
|
|
@@ -5686,12 +5919,12 @@ var CardFooterComponent = function CardFooterComponent(_ref) {
|
|
|
5686
5919
|
CardFooterComponent.displayName = 'CardFooter';
|
|
5687
5920
|
var CardFooter = withScale(CardFooterComponent);
|
|
5688
5921
|
|
|
5689
|
-
var _excluded$
|
|
5922
|
+
var _excluded$11 = ["className", "children"];
|
|
5690
5923
|
var CardContentComponent = function CardContentComponent(_ref) {
|
|
5691
5924
|
var _ref$className = _ref.className,
|
|
5692
5925
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
5693
5926
|
children = _ref.children,
|
|
5694
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5927
|
+
props = _objectWithoutProperties(_ref, _excluded$11);
|
|
5695
5928
|
var _useScale = useScale(),
|
|
5696
5929
|
SCALES = _useScale.SCALES;
|
|
5697
5930
|
return /*#__PURE__*/jsxRuntime.jsxs("div", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
@@ -5706,11 +5939,11 @@ var CardContentComponent = function CardContentComponent(_ref) {
|
|
|
5706
5939
|
CardContentComponent.displayName = 'CardContent';
|
|
5707
5940
|
var CardContent = withScale(CardContentComponent);
|
|
5708
5941
|
|
|
5709
|
-
var _excluded$
|
|
5942
|
+
var _excluded$10 = ["opacity"];
|
|
5710
5943
|
var ImageSkeleton = /*#__PURE__*/React.memo(function (_ref) {
|
|
5711
5944
|
var _ref$opacity = _ref.opacity,
|
|
5712
5945
|
opacity = _ref$opacity === void 0 ? 0.5 : _ref$opacity,
|
|
5713
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5946
|
+
props = _objectWithoutProperties(_ref, _excluded$10);
|
|
5714
5947
|
var theme$1 = theme.useTheme();
|
|
5715
5948
|
return /*#__PURE__*/jsxRuntime.jsx("div", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
5716
5949
|
className: _JSXStyle.dynamic([["2946022605", [theme$1.palette.accents_1, theme$1.palette.accents_2, theme$1.palette.accents_2, theme$1.palette.accents_1, opacity]]]) + " " + (props && props.className != null && props.className || "skeleton"),
|
|
@@ -5738,7 +5971,7 @@ var getHostFromUrl = function getHostFromUrl(url) {
|
|
|
5738
5971
|
}
|
|
5739
5972
|
};
|
|
5740
5973
|
|
|
5741
|
-
var _excluded
|
|
5974
|
+
var _excluded$$ = ["src", "disableSkeleton", "className", "maxDelay"];
|
|
5742
5975
|
var ImageComponent = function ImageComponent(_ref) {
|
|
5743
5976
|
var src = _ref.src,
|
|
5744
5977
|
_ref$disableSkeleton = _ref.disableSkeleton,
|
|
@@ -5747,7 +5980,7 @@ var ImageComponent = function ImageComponent(_ref) {
|
|
|
5747
5980
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
5748
5981
|
_ref$maxDelay = _ref.maxDelay,
|
|
5749
5982
|
maxDelay = _ref$maxDelay === void 0 ? 3000 : _ref$maxDelay,
|
|
5750
|
-
props = _objectWithoutProperties(_ref, _excluded
|
|
5983
|
+
props = _objectWithoutProperties(_ref, _excluded$$);
|
|
5751
5984
|
var _useScale = useScale(),
|
|
5752
5985
|
SCALES = _useScale.SCALES,
|
|
5753
5986
|
getScaleProps = _useScale.getScaleProps;
|
|
@@ -5847,7 +6080,7 @@ var getBrowserColors = function getBrowserColors(invert, palette) {
|
|
|
5847
6080
|
};
|
|
5848
6081
|
};
|
|
5849
6082
|
|
|
5850
|
-
var _excluded$
|
|
6083
|
+
var _excluded$_ = ["url", "title", "children", "showFullLink", "invert", "anchorProps", "className"];
|
|
5851
6084
|
var getTitle = function getTitle(title, colors) {
|
|
5852
6085
|
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
5853
6086
|
className: _JSXStyle.dynamic([["524099755", [colors.titleColor]]]) + " " + "title",
|
|
@@ -5889,7 +6122,7 @@ var ImageBrowserComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
5889
6122
|
anchorProps = _ref$anchorProps === void 0 ? {} : _ref$anchorProps,
|
|
5890
6123
|
_ref$className = _ref.className,
|
|
5891
6124
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
5892
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6125
|
+
props = _objectWithoutProperties(_ref, _excluded$_);
|
|
5893
6126
|
var theme$1 = theme.useTheme();
|
|
5894
6127
|
var _useScale = useScale(),
|
|
5895
6128
|
SCALES = _useScale.SCALES;
|
|
@@ -5929,7 +6162,7 @@ var ImageBrowser = withScale(ImageBrowserComponent);
|
|
|
5929
6162
|
|
|
5930
6163
|
Image.Browser = ImageBrowser;
|
|
5931
6164
|
|
|
5932
|
-
var _excluded$
|
|
6165
|
+
var _excluded$Z = ["children", "hoverable", "className", "shadow", "type"];
|
|
5933
6166
|
var CardComponent = function CardComponent(_ref) {
|
|
5934
6167
|
var children = _ref.children,
|
|
5935
6168
|
_ref$hoverable = _ref.hoverable,
|
|
@@ -5940,7 +6173,7 @@ var CardComponent = function CardComponent(_ref) {
|
|
|
5940
6173
|
shadow = _ref$shadow === void 0 ? false : _ref$shadow,
|
|
5941
6174
|
_ref$type = _ref.type,
|
|
5942
6175
|
type = _ref$type === void 0 ? 'default' : _ref$type,
|
|
5943
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6176
|
+
props = _objectWithoutProperties(_ref, _excluded$Z);
|
|
5944
6177
|
var theme$1 = theme.useTheme();
|
|
5945
6178
|
var _useScale = useScale(),
|
|
5946
6179
|
SCALES = _useScale.SCALES;
|
|
@@ -6084,7 +6317,7 @@ var getColors$6 = function getColors(palette, status) {
|
|
|
6084
6317
|
return colors[status];
|
|
6085
6318
|
};
|
|
6086
6319
|
|
|
6087
|
-
var _excluded
|
|
6320
|
+
var _excluded$Y = ["checked", "initialChecked", "disabled", "onChange", "className", "children", "type", "value", "block"];
|
|
6088
6321
|
var CheckboxComponent = function CheckboxComponent(_ref) {
|
|
6089
6322
|
var checked = _ref.checked,
|
|
6090
6323
|
_ref$initialChecked = _ref.initialChecked,
|
|
@@ -6101,7 +6334,7 @@ var CheckboxComponent = function CheckboxComponent(_ref) {
|
|
|
6101
6334
|
value = _ref$value === void 0 ? '' : _ref$value,
|
|
6102
6335
|
_ref$block = _ref.block,
|
|
6103
6336
|
block = _ref$block === void 0 ? false : _ref$block,
|
|
6104
|
-
props = _objectWithoutProperties(_ref, _excluded
|
|
6337
|
+
props = _objectWithoutProperties(_ref, _excluded$Y);
|
|
6105
6338
|
var theme$1 = theme.useTheme();
|
|
6106
6339
|
var _useScale = useScale(),
|
|
6107
6340
|
SCALES = _useScale.SCALES;
|
|
@@ -6184,7 +6417,7 @@ var CheckboxComponent = function CheckboxComponent(_ref) {
|
|
|
6184
6417
|
CheckboxComponent.displayName = 'Checkbox';
|
|
6185
6418
|
var Checkbox = withScale(CheckboxComponent);
|
|
6186
6419
|
|
|
6187
|
-
var _excluded$
|
|
6420
|
+
var _excluded$X = ["disabled", "onChange", "value", "children", "className"];
|
|
6188
6421
|
var CheckboxGroupComponent = function CheckboxGroupComponent(_ref) {
|
|
6189
6422
|
var _ref$disabled = _ref.disabled,
|
|
6190
6423
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
@@ -6193,7 +6426,7 @@ var CheckboxGroupComponent = function CheckboxGroupComponent(_ref) {
|
|
|
6193
6426
|
children = _ref.children,
|
|
6194
6427
|
_ref$className = _ref.className,
|
|
6195
6428
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
6196
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6429
|
+
props = _objectWithoutProperties(_ref, _excluded$X);
|
|
6197
6430
|
var _useScale = useScale(),
|
|
6198
6431
|
SCALES = _useScale.SCALES;
|
|
6199
6432
|
var _useState = React.useState([]),
|
|
@@ -6243,7 +6476,7 @@ var CheckboxGroup = withScale(CheckboxGroupComponent);
|
|
|
6243
6476
|
|
|
6244
6477
|
Checkbox.Group = CheckboxGroup;
|
|
6245
6478
|
|
|
6246
|
-
var _excluded$
|
|
6479
|
+
var _excluded$W = ["children", "block", "className", "name", "classic"];
|
|
6247
6480
|
var CodeComponent = function CodeComponent(_ref) {
|
|
6248
6481
|
var children = _ref.children,
|
|
6249
6482
|
_ref$block = _ref.block,
|
|
@@ -6254,7 +6487,7 @@ var CodeComponent = function CodeComponent(_ref) {
|
|
|
6254
6487
|
name = _ref$name === void 0 ? '' : _ref$name,
|
|
6255
6488
|
_ref$classic = _ref.classic,
|
|
6256
6489
|
classic = _ref$classic === void 0 ? false : _ref$classic,
|
|
6257
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6490
|
+
props = _objectWithoutProperties(_ref, _excluded$W);
|
|
6258
6491
|
var _useScale = useScale(),
|
|
6259
6492
|
SCALES = _useScale.SCALES;
|
|
6260
6493
|
var theme$1 = theme.useTheme();
|
|
@@ -6472,7 +6705,7 @@ var useCollapseContext = function useCollapseContext() {
|
|
|
6472
6705
|
return React.useContext(CollapseContext);
|
|
6473
6706
|
};
|
|
6474
6707
|
|
|
6475
|
-
var _excluded$
|
|
6708
|
+
var _excluded$V = ["children", "title", "subtitle", "initialVisible", "shadow", "className", "index"];
|
|
6476
6709
|
var CollapseComponent = function CollapseComponent(_ref) {
|
|
6477
6710
|
var children = _ref.children,
|
|
6478
6711
|
title = _ref.title,
|
|
@@ -6484,7 +6717,7 @@ var CollapseComponent = function CollapseComponent(_ref) {
|
|
|
6484
6717
|
_ref$className = _ref.className,
|
|
6485
6718
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
6486
6719
|
index = _ref.index,
|
|
6487
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6720
|
+
props = _objectWithoutProperties(_ref, _excluded$V);
|
|
6488
6721
|
var theme$1 = theme.useTheme();
|
|
6489
6722
|
var _useScale = useScale(),
|
|
6490
6723
|
SCALES = _useScale.SCALES;
|
|
@@ -6548,14 +6781,14 @@ var CollapseComponent = function CollapseComponent(_ref) {
|
|
|
6548
6781
|
CollapseComponent.displayName = 'Collapse';
|
|
6549
6782
|
var Collapse = withScale(CollapseComponent);
|
|
6550
6783
|
|
|
6551
|
-
var _excluded$
|
|
6784
|
+
var _excluded$U = ["children", "accordion", "className"];
|
|
6552
6785
|
var CollapseGroupComponent = function CollapseGroupComponent(_ref) {
|
|
6553
6786
|
var children = _ref.children,
|
|
6554
6787
|
_ref$accordion = _ref.accordion,
|
|
6555
6788
|
accordion = _ref$accordion === void 0 ? true : _ref$accordion,
|
|
6556
6789
|
_ref$className = _ref.className,
|
|
6557
6790
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
6558
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6791
|
+
props = _objectWithoutProperties(_ref, _excluded$U);
|
|
6559
6792
|
var _useScale = useScale(),
|
|
6560
6793
|
SCALES = _useScale.SCALES;
|
|
6561
6794
|
var _useCurrentState = theme.useCurrentState([]),
|
|
@@ -6611,7 +6844,7 @@ var CollapseGroup = withScale(CollapseGroupComponent);
|
|
|
6611
6844
|
|
|
6612
6845
|
Collapse.Group = CollapseGroup;
|
|
6613
6846
|
|
|
6614
|
-
var _excluded$
|
|
6847
|
+
var _excluded$T = ["title", "content", "className"];
|
|
6615
6848
|
var DescriptionComponent = function DescriptionComponent(_ref) {
|
|
6616
6849
|
var _ref$title = _ref.title,
|
|
6617
6850
|
title = _ref$title === void 0 ? 'Title' : _ref$title,
|
|
@@ -6619,7 +6852,7 @@ var DescriptionComponent = function DescriptionComponent(_ref) {
|
|
|
6619
6852
|
content = _ref$content === void 0 ? '' : _ref$content,
|
|
6620
6853
|
_ref$className = _ref.className,
|
|
6621
6854
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
6622
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6855
|
+
props = _objectWithoutProperties(_ref, _excluded$T);
|
|
6623
6856
|
var theme$1 = theme.useTheme();
|
|
6624
6857
|
var _useScale = useScale(),
|
|
6625
6858
|
SCALES = _useScale.SCALES;
|
|
@@ -6642,7 +6875,7 @@ var DescriptionComponent = function DescriptionComponent(_ref) {
|
|
|
6642
6875
|
DescriptionComponent.displayName = 'Description';
|
|
6643
6876
|
var Description = withScale(DescriptionComponent);
|
|
6644
6877
|
|
|
6645
|
-
var _excluded$
|
|
6878
|
+
var _excluded$S = ["children", "caption", "shadow", "className"];
|
|
6646
6879
|
var DisplayComponent = function DisplayComponent(_ref) {
|
|
6647
6880
|
var children = _ref.children,
|
|
6648
6881
|
_ref$caption = _ref.caption,
|
|
@@ -6651,7 +6884,7 @@ var DisplayComponent = function DisplayComponent(_ref) {
|
|
|
6651
6884
|
shadow = _ref$shadow === void 0 ? false : _ref$shadow,
|
|
6652
6885
|
_ref$className = _ref.className,
|
|
6653
6886
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
6654
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6887
|
+
props = _objectWithoutProperties(_ref, _excluded$S);
|
|
6655
6888
|
var theme$1 = theme.useTheme();
|
|
6656
6889
|
var _useScale = useScale(),
|
|
6657
6890
|
SCALES = _useScale.SCALES;
|
|
@@ -6677,7 +6910,7 @@ var DisplayComponent = function DisplayComponent(_ref) {
|
|
|
6677
6910
|
DisplayComponent.displayName = 'Display';
|
|
6678
6911
|
var Display = withScale(DisplayComponent);
|
|
6679
6912
|
|
|
6680
|
-
var _excluded$
|
|
6913
|
+
var _excluded$R = ["type", "align", "children", "className"];
|
|
6681
6914
|
var getColor$2 = function getColor(type, palette) {
|
|
6682
6915
|
var colors = {
|
|
6683
6916
|
"default": palette.border,
|
|
@@ -6698,7 +6931,7 @@ var DividerComponent = function DividerComponent(_ref) {
|
|
|
6698
6931
|
children = _ref.children,
|
|
6699
6932
|
_ref$className = _ref.className,
|
|
6700
6933
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
6701
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6934
|
+
props = _objectWithoutProperties(_ref, _excluded$R);
|
|
6702
6935
|
var theme$1 = theme.useTheme();
|
|
6703
6936
|
var _useScale = useScale(),
|
|
6704
6937
|
SCALES = _useScale.SCALES;
|
|
@@ -6730,7 +6963,7 @@ var DividerComponent = function DividerComponent(_ref) {
|
|
|
6730
6963
|
DividerComponent.displayName = 'Divider';
|
|
6731
6964
|
var Divider = withScale(DividerComponent);
|
|
6732
6965
|
|
|
6733
|
-
var _excluded$
|
|
6966
|
+
var _excluded$Q = ["type", "children", "className"];
|
|
6734
6967
|
var getColor$1 = function getColor(type, theme) {
|
|
6735
6968
|
var colors = {
|
|
6736
6969
|
"default": theme.palette.accents_2,
|
|
@@ -6746,7 +6979,7 @@ var DotComponent = function DotComponent(_ref) {
|
|
|
6746
6979
|
children = _ref.children,
|
|
6747
6980
|
_ref$className = _ref.className,
|
|
6748
6981
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
6749
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6982
|
+
props = _objectWithoutProperties(_ref, _excluded$Q);
|
|
6750
6983
|
var theme$1 = theme.useTheme();
|
|
6751
6984
|
var _useScale = useScale(),
|
|
6752
6985
|
SCALES = _useScale.SCALES;
|
|
@@ -7084,7 +7317,7 @@ var getDrawerTransform = function getDrawerTransform(placement) {
|
|
|
7084
7317
|
return translates[placement];
|
|
7085
7318
|
};
|
|
7086
7319
|
|
|
7087
|
-
var _excluded$
|
|
7320
|
+
var _excluded$P = ["className", "children", "visible", "placement"];
|
|
7088
7321
|
var DrawerWrapper = function DrawerWrapper(_ref) {
|
|
7089
7322
|
var _ref$className = _ref.className,
|
|
7090
7323
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
@@ -7092,7 +7325,7 @@ var DrawerWrapper = function DrawerWrapper(_ref) {
|
|
|
7092
7325
|
_ref$visible = _ref.visible,
|
|
7093
7326
|
visible = _ref$visible === void 0 ? false : _ref$visible,
|
|
7094
7327
|
placement = _ref.placement,
|
|
7095
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7328
|
+
props = _objectWithoutProperties(_ref, _excluded$P);
|
|
7096
7329
|
var theme$1 = theme.useTheme();
|
|
7097
7330
|
var _useScale = useScale(),
|
|
7098
7331
|
SCALES = _useScale.SCALES;
|
|
@@ -7155,7 +7388,7 @@ var DrawerWrapper = function DrawerWrapper(_ref) {
|
|
|
7155
7388
|
};
|
|
7156
7389
|
DrawerWrapper.displayName = 'DrawerWrapper';
|
|
7157
7390
|
|
|
7158
|
-
var _excluded$
|
|
7391
|
+
var _excluded$O = ["visible", "keyboard", "disableBackdropClick", "onClose", "onContentClick", "wrapClassName", "children", "placement"];
|
|
7159
7392
|
var DrawerComponent = function DrawerComponent(_ref) {
|
|
7160
7393
|
var customVisible = _ref.visible,
|
|
7161
7394
|
_ref$keyboard = _ref.keyboard,
|
|
@@ -7169,7 +7402,7 @@ var DrawerComponent = function DrawerComponent(_ref) {
|
|
|
7169
7402
|
children = _ref.children,
|
|
7170
7403
|
_ref$placement = _ref.placement,
|
|
7171
7404
|
placement = _ref$placement === void 0 ? 'right' : _ref$placement,
|
|
7172
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7405
|
+
props = _objectWithoutProperties(_ref, _excluded$O);
|
|
7173
7406
|
var portal = usePortal('drawer');
|
|
7174
7407
|
var _useState = React.useState(false),
|
|
7175
7408
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -7218,12 +7451,12 @@ var DrawerComponent = function DrawerComponent(_ref) {
|
|
|
7218
7451
|
};
|
|
7219
7452
|
DrawerComponent.displayName = 'Drawer';
|
|
7220
7453
|
|
|
7221
|
-
var _excluded$
|
|
7454
|
+
var _excluded$N = ["className", "children"];
|
|
7222
7455
|
var ModalTitleComponent = function ModalTitleComponent(_ref) {
|
|
7223
7456
|
var _ref$className = _ref.className,
|
|
7224
7457
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
7225
7458
|
children = _ref.children,
|
|
7226
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7459
|
+
props = _objectWithoutProperties(_ref, _excluded$N);
|
|
7227
7460
|
var theme$1 = theme.useTheme();
|
|
7228
7461
|
var _useScale = useScale(),
|
|
7229
7462
|
SCALES = _useScale.SCALES;
|
|
@@ -7241,12 +7474,12 @@ var ModalTitleComponent = function ModalTitleComponent(_ref) {
|
|
|
7241
7474
|
ModalTitleComponent.displayName = 'ModalTitle';
|
|
7242
7475
|
var ModalTitle = withScale(ModalTitleComponent);
|
|
7243
7476
|
|
|
7244
|
-
var _excluded$
|
|
7477
|
+
var _excluded$M = ["className", "children"];
|
|
7245
7478
|
var ModalSubtitleComponent = function ModalSubtitleComponent(_ref) {
|
|
7246
7479
|
var _ref$className = _ref.className,
|
|
7247
7480
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
7248
7481
|
children = _ref.children,
|
|
7249
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7482
|
+
props = _objectWithoutProperties(_ref, _excluded$M);
|
|
7250
7483
|
var theme$1 = theme.useTheme();
|
|
7251
7484
|
var _useScale = useScale(),
|
|
7252
7485
|
SCALES = _useScale.SCALES;
|
|
@@ -7264,12 +7497,12 @@ var ModalSubtitleComponent = function ModalSubtitleComponent(_ref) {
|
|
|
7264
7497
|
ModalSubtitleComponent.displayName = 'ModalSubtitle';
|
|
7265
7498
|
var ModalSubtitle = withScale(ModalSubtitleComponent);
|
|
7266
7499
|
|
|
7267
|
-
var _excluded$
|
|
7500
|
+
var _excluded$L = ["className", "children"];
|
|
7268
7501
|
var ModalContentComponent = function ModalContentComponent(_ref) {
|
|
7269
7502
|
var _ref$className = _ref.className,
|
|
7270
7503
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
7271
7504
|
children = _ref.children,
|
|
7272
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7505
|
+
props = _objectWithoutProperties(_ref, _excluded$L);
|
|
7273
7506
|
var _useScale = useScale(),
|
|
7274
7507
|
SCALES = _useScale.SCALES;
|
|
7275
7508
|
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
@@ -7291,12 +7524,12 @@ DrawerComponent.Title = ModalTitle;
|
|
|
7291
7524
|
DrawerComponent.Subtitle = ModalSubtitle;
|
|
7292
7525
|
DrawerComponent.Content = ModalContent;
|
|
7293
7526
|
|
|
7294
|
-
var _excluded$
|
|
7527
|
+
var _excluded$K = ["className", "children"];
|
|
7295
7528
|
var FieldsetTitle = function FieldsetTitle(_ref) {
|
|
7296
7529
|
var _ref$className = _ref.className,
|
|
7297
7530
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
7298
7531
|
children = _ref.children,
|
|
7299
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7532
|
+
props = _objectWithoutProperties(_ref, _excluded$K);
|
|
7300
7533
|
var classes = theme.useClasses('title', className);
|
|
7301
7534
|
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
7302
7535
|
children: [/*#__PURE__*/jsxRuntime.jsx("div", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
@@ -7310,12 +7543,12 @@ var FieldsetTitle = function FieldsetTitle(_ref) {
|
|
|
7310
7543
|
};
|
|
7311
7544
|
FieldsetTitle.displayName = 'FieldsetTitle';
|
|
7312
7545
|
|
|
7313
|
-
var _excluded$
|
|
7546
|
+
var _excluded$J = ["className", "children"];
|
|
7314
7547
|
var FieldsetSubtitle = function FieldsetSubtitle(_ref) {
|
|
7315
7548
|
var _ref$className = _ref.className,
|
|
7316
7549
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
7317
7550
|
children = _ref.children,
|
|
7318
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7551
|
+
props = _objectWithoutProperties(_ref, _excluded$J);
|
|
7319
7552
|
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
7320
7553
|
children: [/*#__PURE__*/jsxRuntime.jsx("div", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
7321
7554
|
className: "jsx-2265168013" + " " + (props && props.className != null && props.className || className || ""),
|
|
@@ -7328,12 +7561,12 @@ var FieldsetSubtitle = function FieldsetSubtitle(_ref) {
|
|
|
7328
7561
|
};
|
|
7329
7562
|
FieldsetSubtitle.displayName = 'FieldsetSubtitle';
|
|
7330
7563
|
|
|
7331
|
-
var _excluded$
|
|
7564
|
+
var _excluded$I = ["className", "children"];
|
|
7332
7565
|
var FieldsetFooterComponent = function FieldsetFooterComponent(_ref) {
|
|
7333
7566
|
var _ref$className = _ref.className,
|
|
7334
7567
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
7335
7568
|
children = _ref.children,
|
|
7336
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7569
|
+
props = _objectWithoutProperties(_ref, _excluded$I);
|
|
7337
7570
|
var theme$1 = theme.useTheme();
|
|
7338
7571
|
var _useScale = useScale(),
|
|
7339
7572
|
SCALES = _useScale.SCALES;
|
|
@@ -7349,12 +7582,12 @@ var FieldsetFooterComponent = function FieldsetFooterComponent(_ref) {
|
|
|
7349
7582
|
FieldsetFooterComponent.displayName = 'FieldsetFooter';
|
|
7350
7583
|
var FieldsetFooter = withScale(FieldsetFooterComponent);
|
|
7351
7584
|
|
|
7352
|
-
var _excluded$
|
|
7585
|
+
var _excluded$H = ["className", "children"];
|
|
7353
7586
|
var FieldsetContentComponent = function FieldsetContentComponent(_ref) {
|
|
7354
7587
|
var _ref$className = _ref.className,
|
|
7355
7588
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
7356
7589
|
children = _ref.children,
|
|
7357
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7590
|
+
props = _objectWithoutProperties(_ref, _excluded$H);
|
|
7358
7591
|
var _useScale = useScale(),
|
|
7359
7592
|
SCALES = _useScale.SCALES;
|
|
7360
7593
|
var classes = theme.useClasses('content', className);
|
|
@@ -7381,7 +7614,7 @@ var useFieldset = function useFieldset() {
|
|
|
7381
7614
|
return React.useContext(FieldsetContext);
|
|
7382
7615
|
};
|
|
7383
7616
|
|
|
7384
|
-
var _excluded$
|
|
7617
|
+
var _excluded$G = ["className", "title", "subtitle", "children", "value", "label"];
|
|
7385
7618
|
var FieldsetComponent = function FieldsetComponent(_ref) {
|
|
7386
7619
|
var _ref$className = _ref.className,
|
|
7387
7620
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
@@ -7394,7 +7627,7 @@ var FieldsetComponent = function FieldsetComponent(_ref) {
|
|
|
7394
7627
|
value = _ref$value === void 0 ? '' : _ref$value,
|
|
7395
7628
|
_ref$label = _ref.label,
|
|
7396
7629
|
label = _ref$label === void 0 ? '' : _ref$label,
|
|
7397
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7630
|
+
props = _objectWithoutProperties(_ref, _excluded$G);
|
|
7398
7631
|
var theme$1 = theme.useTheme();
|
|
7399
7632
|
var _useScale = useScale(),
|
|
7400
7633
|
SCALES = _useScale.SCALES;
|
|
@@ -7458,14 +7691,14 @@ var FieldsetComponent = function FieldsetComponent(_ref) {
|
|
|
7458
7691
|
FieldsetComponent.displayName = 'Fieldset';
|
|
7459
7692
|
var Fieldset = withScale(FieldsetComponent);
|
|
7460
7693
|
|
|
7461
|
-
var _excluded$
|
|
7694
|
+
var _excluded$F = ["className", "children", "value", "onChange"];
|
|
7462
7695
|
var FieldsetGroupComponent = function FieldsetGroupComponent(_ref) {
|
|
7463
7696
|
var _ref$className = _ref.className,
|
|
7464
7697
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
7465
7698
|
children = _ref.children,
|
|
7466
7699
|
value = _ref.value,
|
|
7467
7700
|
onChange = _ref.onChange,
|
|
7468
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7701
|
+
props = _objectWithoutProperties(_ref, _excluded$F);
|
|
7469
7702
|
var theme$1 = theme.useTheme();
|
|
7470
7703
|
var _useScale = useScale(),
|
|
7471
7704
|
SCALES = _useScale.SCALES;
|
|
@@ -12174,7 +12407,7 @@ function setNestedObjectValues(object, value) {
|
|
|
12174
12407
|
|
|
12175
12408
|
var __DEV__ = true;
|
|
12176
12409
|
|
|
12177
|
-
var _excluded$
|
|
12410
|
+
var _excluded$E = ["validateOnChange", "validateOnBlur", "validateOnMount", "isInitialValid", "enableReinitialize", "onSubmit"];
|
|
12178
12411
|
// State reducer
|
|
12179
12412
|
function formikReducer(state, msg) {
|
|
12180
12413
|
switch (msg.type) {
|
|
@@ -12258,7 +12491,7 @@ function useFormik(_ref) {
|
|
|
12258
12491
|
_ref$enableReinitiali = _ref.enableReinitialize,
|
|
12259
12492
|
enableReinitialize = _ref$enableReinitiali === void 0 ? false : _ref$enableReinitiali,
|
|
12260
12493
|
onSubmit = _ref.onSubmit,
|
|
12261
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
12494
|
+
rest = _objectWithoutProperties(_ref, _excluded$E);
|
|
12262
12495
|
var props = _objectSpread2({
|
|
12263
12496
|
validateOnChange: validateOnChange,
|
|
12264
12497
|
validateOnBlur: validateOnBlur,
|
|
@@ -13131,7 +13364,7 @@ function useEventCallback(fn) {
|
|
|
13131
13364
|
}, []);
|
|
13132
13365
|
}
|
|
13133
13366
|
|
|
13134
|
-
var _excluded$
|
|
13367
|
+
var _excluded$D = ["mapPropsToValues"],
|
|
13135
13368
|
_excluded2 = ["children"];
|
|
13136
13369
|
/**
|
|
13137
13370
|
* A public higher-order component to access the imperative API
|
|
@@ -13148,7 +13381,7 @@ function withFormik(_ref) {
|
|
|
13148
13381
|
}
|
|
13149
13382
|
return val;
|
|
13150
13383
|
} : _ref$mapPropsToValues,
|
|
13151
|
-
config = _objectWithoutProperties(_ref, _excluded$
|
|
13384
|
+
config = _objectWithoutProperties(_ref, _excluded$D);
|
|
13152
13385
|
return function createFormik(Component) {
|
|
13153
13386
|
var componentDisplayName = Component.displayName || Component.name || Component.constructor && Component.constructor.name || 'Component';
|
|
13154
13387
|
/**
|
|
@@ -13208,7 +13441,7 @@ function withFormik(_ref) {
|
|
|
13208
13441
|
};
|
|
13209
13442
|
}
|
|
13210
13443
|
|
|
13211
|
-
var _excluded$
|
|
13444
|
+
var _excluded$C = ["component", "formik", "render", "children", "name"];
|
|
13212
13445
|
var ErrorMessageImpl = /*#__PURE__*/function (_React$Component) {
|
|
13213
13446
|
function ErrorMessageImpl() {
|
|
13214
13447
|
_classCallCheck(this, ErrorMessageImpl);
|
|
@@ -13233,7 +13466,7 @@ var ErrorMessageImpl = /*#__PURE__*/function (_React$Component) {
|
|
|
13233
13466
|
render = _this$props.render,
|
|
13234
13467
|
children = _this$props.children,
|
|
13235
13468
|
name = _this$props.name,
|
|
13236
|
-
rest = _objectWithoutProperties(_this$props, _excluded$
|
|
13469
|
+
rest = _objectWithoutProperties(_this$props, _excluded$C);
|
|
13237
13470
|
var touch = getIn(formik.touched, name);
|
|
13238
13471
|
var error = getIn(formik.errors, name);
|
|
13239
13472
|
return !!touch && !!error ? render ? isFunction(render) ? render(error) : null : children ? isFunction(children) ? children(error) : null : component ? /*#__PURE__*/React__namespace.createElement(component, rest, error) : error : null;
|
|
@@ -13242,152 +13475,6 @@ var ErrorMessageImpl = /*#__PURE__*/function (_React$Component) {
|
|
|
13242
13475
|
}(React__namespace.Component);
|
|
13243
13476
|
var ErrorMessage = connect(ErrorMessageImpl);
|
|
13244
13477
|
|
|
13245
|
-
var _excluded$E = ["xs", "sm", "md", "lg", "xl", "justify", "direction", "alignItems", "alignContent", "children", "className"];
|
|
13246
|
-
var getItemLayout = function getItemLayout(val) {
|
|
13247
|
-
var display = val === 0 ? 'display: none;' : 'display: inherit;';
|
|
13248
|
-
if (typeof val === 'number') {
|
|
13249
|
-
var width = 100 / 24 * val;
|
|
13250
|
-
var ratio = width > 100 ? '100%' : width < 0 ? '0' : "".concat(width, "%");
|
|
13251
|
-
return {
|
|
13252
|
-
grow: 0,
|
|
13253
|
-
display: display,
|
|
13254
|
-
width: ratio,
|
|
13255
|
-
basis: ratio
|
|
13256
|
-
};
|
|
13257
|
-
}
|
|
13258
|
-
return {
|
|
13259
|
-
grow: 1,
|
|
13260
|
-
display: display,
|
|
13261
|
-
width: '100%',
|
|
13262
|
-
basis: '0'
|
|
13263
|
-
};
|
|
13264
|
-
};
|
|
13265
|
-
var GridBasicItem = function GridBasicItem(_ref) {
|
|
13266
|
-
var _ref$xs = _ref.xs,
|
|
13267
|
-
xs = _ref$xs === void 0 ? false : _ref$xs,
|
|
13268
|
-
_ref$sm = _ref.sm,
|
|
13269
|
-
sm = _ref$sm === void 0 ? false : _ref$sm,
|
|
13270
|
-
_ref$md = _ref.md,
|
|
13271
|
-
md = _ref$md === void 0 ? false : _ref$md,
|
|
13272
|
-
_ref$lg = _ref.lg,
|
|
13273
|
-
lg = _ref$lg === void 0 ? false : _ref$lg,
|
|
13274
|
-
_ref$xl = _ref.xl,
|
|
13275
|
-
xl = _ref$xl === void 0 ? false : _ref$xl,
|
|
13276
|
-
justify = _ref.justify,
|
|
13277
|
-
direction = _ref.direction,
|
|
13278
|
-
alignItems = _ref.alignItems,
|
|
13279
|
-
alignContent = _ref.alignContent,
|
|
13280
|
-
children = _ref.children,
|
|
13281
|
-
_ref$className = _ref.className,
|
|
13282
|
-
className = _ref$className === void 0 ? '' : _ref$className,
|
|
13283
|
-
props = _objectWithoutProperties(_ref, _excluded$E);
|
|
13284
|
-
var theme$1 = theme.useTheme();
|
|
13285
|
-
var _useScale = useScale(),
|
|
13286
|
-
SCALES = _useScale.SCALES;
|
|
13287
|
-
var classes = React.useMemo(function () {
|
|
13288
|
-
var aligns = {
|
|
13289
|
-
justify: justify,
|
|
13290
|
-
direction: direction,
|
|
13291
|
-
alignItems: alignItems,
|
|
13292
|
-
alignContent: alignContent,
|
|
13293
|
-
xs: xs,
|
|
13294
|
-
sm: sm,
|
|
13295
|
-
md: md,
|
|
13296
|
-
lg: lg,
|
|
13297
|
-
xl: xl
|
|
13298
|
-
};
|
|
13299
|
-
var classString = Object.keys(aligns).reduce(function (pre, name) {
|
|
13300
|
-
if (aligns[name] !== undefined && aligns[name] !== false) return "".concat(pre, " ").concat(name);
|
|
13301
|
-
return pre;
|
|
13302
|
-
}, '');
|
|
13303
|
-
return classString.trim();
|
|
13304
|
-
}, [justify, direction, alignItems, alignContent, xs, sm, md, lg, xl]);
|
|
13305
|
-
var layout = React.useMemo(function () {
|
|
13306
|
-
return {
|
|
13307
|
-
xs: getItemLayout(xs),
|
|
13308
|
-
sm: getItemLayout(sm),
|
|
13309
|
-
md: getItemLayout(md),
|
|
13310
|
-
lg: getItemLayout(lg),
|
|
13311
|
-
xl: getItemLayout(xl)
|
|
13312
|
-
};
|
|
13313
|
-
}, [xs, sm, md, lg, xl]);
|
|
13314
|
-
return /*#__PURE__*/jsxRuntime.jsxs("div", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
13315
|
-
className: _JSXStyle.dynamic([["568430467", [SCALES.font(1, 'inherit'), SCALES.height(1, 'auto'), justify, direction, alignContent, alignItems, layout.xs.grow, layout.xs.width, layout.xs.basis, layout.xs.display, theme$1.breakpoints.sm.min, layout.sm.grow, layout.sm.width, layout.sm.basis, layout.sm.display, theme$1.breakpoints.md.min, layout.md.grow, layout.md.width, layout.md.basis, layout.md.display, theme$1.breakpoints.lg.min, layout.lg.grow, layout.lg.width, layout.lg.basis, layout.lg.display, theme$1.breakpoints.xl.min, layout.xl.grow, layout.xl.width, layout.xl.basis, layout.xl.display]]]) + " " + (props && props.className != null && props.className || theme.useClasses('item', classes, className) || ""),
|
|
13316
|
-
children: [children, /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
13317
|
-
id: "568430467",
|
|
13318
|
-
dynamic: [SCALES.font(1, 'inherit'), SCALES.height(1, 'auto'), justify, direction, alignContent, alignItems, layout.xs.grow, layout.xs.width, layout.xs.basis, layout.xs.display, theme$1.breakpoints.sm.min, layout.sm.grow, layout.sm.width, layout.sm.basis, layout.sm.display, theme$1.breakpoints.md.min, layout.md.grow, layout.md.width, layout.md.basis, layout.md.display, theme$1.breakpoints.lg.min, layout.lg.grow, layout.lg.width, layout.lg.basis, layout.lg.display, theme$1.breakpoints.xl.min, layout.xl.grow, layout.xl.width, layout.xl.basis, layout.xl.display],
|
|
13319
|
-
children: ".item.__jsx-style-dynamic-selector{font-size:".concat(SCALES.font(1, 'inherit'), ";height:").concat(SCALES.height(1, 'auto'), ";}.justify.__jsx-style-dynamic-selector{-webkit-box-pack:").concat(justify, ";-webkit-justify-content:").concat(justify, ";-ms-flex-pack:").concat(justify, ";justify-content:").concat(justify, ";}.direction.__jsx-style-dynamic-selector{-webkit-flex-direction:").concat(direction, ";-ms-flex-direction:").concat(direction, ";flex-direction:").concat(direction, ";}.alignContent.__jsx-style-dynamic-selector{-webkit-align-content:").concat(alignContent, ";-ms-flex-line-pack:").concat(alignContent, ";align-content:").concat(alignContent, ";}.alignItems.__jsx-style-dynamic-selector{-webkit-align-items:").concat(alignItems, ";-webkit-box-align:").concat(alignItems, ";-ms-flex-align:").concat(alignItems, ";align-items:").concat(alignItems, ";}.xs.__jsx-style-dynamic-selector{-webkit-box-flex:").concat(layout.xs.grow, ";-webkit-flex-grow:").concat(layout.xs.grow, ";-ms-flex-positive:").concat(layout.xs.grow, ";flex-grow:").concat(layout.xs.grow, ";max-width:").concat(layout.xs.width, ";-webkit-flex-basis:").concat(layout.xs.basis, ";-ms-flex-preferred-size:").concat(layout.xs.basis, ";flex-basis:").concat(layout.xs.basis, ";").concat(layout.xs.display, ";}@media only screen and (min-width:").concat(theme$1.breakpoints.sm.min, "){.sm.__jsx-style-dynamic-selector{-webkit-box-flex:").concat(layout.sm.grow, ";-webkit-flex-grow:").concat(layout.sm.grow, ";-ms-flex-positive:").concat(layout.sm.grow, ";flex-grow:").concat(layout.sm.grow, ";max-width:").concat(layout.sm.width, ";-webkit-flex-basis:").concat(layout.sm.basis, ";-ms-flex-preferred-size:").concat(layout.sm.basis, ";flex-basis:").concat(layout.sm.basis, ";").concat(layout.sm.display, ";}}@media only screen and (min-width:").concat(theme$1.breakpoints.md.min, "){.md.__jsx-style-dynamic-selector{-webkit-box-flex:").concat(layout.md.grow, ";-webkit-flex-grow:").concat(layout.md.grow, ";-ms-flex-positive:").concat(layout.md.grow, ";flex-grow:").concat(layout.md.grow, ";max-width:").concat(layout.md.width, ";-webkit-flex-basis:").concat(layout.md.basis, ";-ms-flex-preferred-size:").concat(layout.md.basis, ";flex-basis:").concat(layout.md.basis, ";").concat(layout.md.display, ";}}@media only screen and (min-width:").concat(theme$1.breakpoints.lg.min, "){.lg.__jsx-style-dynamic-selector{-webkit-box-flex:").concat(layout.lg.grow, ";-webkit-flex-grow:").concat(layout.lg.grow, ";-ms-flex-positive:").concat(layout.lg.grow, ";flex-grow:").concat(layout.lg.grow, ";max-width:").concat(layout.lg.width, ";-webkit-flex-basis:").concat(layout.lg.basis, ";-ms-flex-preferred-size:").concat(layout.lg.basis, ";flex-basis:").concat(layout.lg.basis, ";").concat(layout.lg.display, ";}}@media only screen and (min-width:").concat(theme$1.breakpoints.xl.min, "){.xl.__jsx-style-dynamic-selector{-webkit-box-flex:").concat(layout.xl.grow, ";-webkit-flex-grow:").concat(layout.xl.grow, ";-ms-flex-positive:").concat(layout.xl.grow, ";flex-grow:").concat(layout.xl.grow, ";max-width:").concat(layout.xl.width, ";-webkit-flex-basis:").concat(layout.xl.basis, ";-ms-flex-preferred-size:").concat(layout.xl.basis, ";flex-basis:").concat(layout.xl.basis, ";").concat(layout.xl.display, ";}}")
|
|
13320
|
-
})]
|
|
13321
|
-
}));
|
|
13322
|
-
};
|
|
13323
|
-
GridBasicItem.displayName = 'GridBasicItem';
|
|
13324
|
-
|
|
13325
|
-
var _excluded$D = ["children", "className"];
|
|
13326
|
-
var GridComponent = function GridComponent(_ref) {
|
|
13327
|
-
var children = _ref.children,
|
|
13328
|
-
_ref$className = _ref.className,
|
|
13329
|
-
className = _ref$className === void 0 ? '' : _ref$className,
|
|
13330
|
-
props = _objectWithoutProperties(_ref, _excluded$D);
|
|
13331
|
-
var _useScale = useScale(),
|
|
13332
|
-
SCALES = _useScale.SCALES;
|
|
13333
|
-
var _styles$className = {
|
|
13334
|
-
styles: /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
13335
|
-
id: "1271839607",
|
|
13336
|
-
dynamic: [SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.pt(0, 'var(--grid-gap-unit)'), SCALES.pr(0, 'var(--grid-gap-unit)'), SCALES.pb(0, 'var(--grid-gap-unit)'), SCALES.pl(0, 'var(--grid-gap-unit)')],
|
|
13337
|
-
children: "div.__jsx-style-dynamic-selector{margin:".concat(SCALES.mt(0), " ").concat(SCALES.mr(0), " ").concat(SCALES.mb(0), " ").concat(SCALES.ml(0), ";box-sizing:border-box;padding:").concat(SCALES.pt(0, 'var(--grid-gap-unit)'), " ").concat(SCALES.pr(0, 'var(--grid-gap-unit)'), " ").concat(SCALES.pb(0, 'var(--grid-gap-unit)'), " ").concat(SCALES.pl(0, 'var(--grid-gap-unit)'), ";}")
|
|
13338
|
-
}),
|
|
13339
|
-
className: _JSXStyle.dynamic([["1271839607", [SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.pt(0, 'var(--grid-gap-unit)'), SCALES.pr(0, 'var(--grid-gap-unit)'), SCALES.pb(0, 'var(--grid-gap-unit)'), SCALES.pl(0, 'var(--grid-gap-unit)')]]])
|
|
13340
|
-
},
|
|
13341
|
-
resolveClassName = _styles$className.className,
|
|
13342
|
-
styles = _styles$className.styles;
|
|
13343
|
-
var classes = theme.useClasses(resolveClassName, className);
|
|
13344
|
-
return /*#__PURE__*/jsxRuntime.jsxs(GridBasicItem, _objectSpread2(_objectSpread2({
|
|
13345
|
-
className: classes
|
|
13346
|
-
}, props), {}, {
|
|
13347
|
-
children: [children, styles]
|
|
13348
|
-
}));
|
|
13349
|
-
};
|
|
13350
|
-
GridComponent.displayName = 'Grid';
|
|
13351
|
-
var Grid = withScale(GridComponent);
|
|
13352
|
-
|
|
13353
|
-
var _excluded$C = ["gap", "wrap", "children", "className"];
|
|
13354
|
-
var GridContainerComponent = function GridContainerComponent(_ref) {
|
|
13355
|
-
var _ref$gap = _ref.gap,
|
|
13356
|
-
gap = _ref$gap === void 0 ? 0 : _ref$gap,
|
|
13357
|
-
_ref$wrap = _ref.wrap,
|
|
13358
|
-
wrap = _ref$wrap === void 0 ? 'wrap' : _ref$wrap,
|
|
13359
|
-
children = _ref.children,
|
|
13360
|
-
_ref$className = _ref.className,
|
|
13361
|
-
className = _ref$className === void 0 ? '' : _ref$className,
|
|
13362
|
-
props = _objectWithoutProperties(_ref, _excluded$C);
|
|
13363
|
-
var _useScale = useScale(),
|
|
13364
|
-
unit = _useScale.unit,
|
|
13365
|
-
SCALES = _useScale.SCALES;
|
|
13366
|
-
var gapUnit = React.useMemo(function () {
|
|
13367
|
-
return "calc(".concat(gap, " * ").concat(unit, " * 1/3)");
|
|
13368
|
-
}, [gap, unit]);
|
|
13369
|
-
var _styles$className = {
|
|
13370
|
-
styles: /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
13371
|
-
id: "3631618093",
|
|
13372
|
-
dynamic: [gapUnit, wrap, SCALES.width(1, 'var(--grid-container-width)'), SCALES.mt(0, 'var(--grid-container-margin)'), SCALES.mr(0, 'var(--grid-container-margin)'), SCALES.mb(0, 'var(--grid-container-margin)'), SCALES.ml(0, 'var(--grid-container-margin)')],
|
|
13373
|
-
children: "div.__jsx-style-dynamic-selector{--grid-gap-unit:".concat(gapUnit, ";--grid-container-margin:calc(-1 * var(--grid-gap-unit));--grid-container-width:calc(100% + var(--grid-gap-unit) * 2);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:").concat(wrap, ";-ms-flex-wrap:").concat(wrap, ";flex-wrap:").concat(wrap, ";box-sizing:border-box;width:").concat(SCALES.width(1, 'var(--grid-container-width)'), ";margin:").concat(SCALES.mt(0, 'var(--grid-container-margin)'), " ").concat(SCALES.mr(0, 'var(--grid-container-margin)'), " ").concat(SCALES.mb(0, 'var(--grid-container-margin)'), " ").concat(SCALES.ml(0, 'var(--grid-container-margin)'), ";}")
|
|
13374
|
-
}),
|
|
13375
|
-
className: _JSXStyle.dynamic([["3631618093", [gapUnit, wrap, SCALES.width(1, 'var(--grid-container-width)'), SCALES.mt(0, 'var(--grid-container-margin)'), SCALES.mr(0, 'var(--grid-container-margin)'), SCALES.mb(0, 'var(--grid-container-margin)'), SCALES.ml(0, 'var(--grid-container-margin)')]]])
|
|
13376
|
-
},
|
|
13377
|
-
resolveClassName = _styles$className.className,
|
|
13378
|
-
styles = _styles$className.styles;
|
|
13379
|
-
var classes = theme.useClasses(resolveClassName, className);
|
|
13380
|
-
return /*#__PURE__*/jsxRuntime.jsxs(GridBasicItem, _objectSpread2(_objectSpread2({
|
|
13381
|
-
className: classes
|
|
13382
|
-
}, props), {}, {
|
|
13383
|
-
children: [children, styles]
|
|
13384
|
-
}));
|
|
13385
|
-
};
|
|
13386
|
-
GridContainerComponent.displayName = 'GridContainer';
|
|
13387
|
-
var GridContainer = withScale(GridContainerComponent);
|
|
13388
|
-
|
|
13389
|
-
Grid.Container = GridContainer;
|
|
13390
|
-
|
|
13391
13478
|
var Expandable = function Expandable(_ref) {
|
|
13392
13479
|
var children = _ref.children,
|
|
13393
13480
|
_ref$collapsedHeight = _ref.collapsedHeight,
|
|
@@ -13418,6 +13505,7 @@ var Expandable = function Expandable(_ref) {
|
|
|
13418
13505
|
|
|
13419
13506
|
// Measure content height and detect overflow
|
|
13420
13507
|
React.useEffect(function () {
|
|
13508
|
+
var _contentRef$current$q, _contentRef$current;
|
|
13421
13509
|
var el = contentRef.current;
|
|
13422
13510
|
if (!el) return;
|
|
13423
13511
|
var updateHeight = function updateHeight() {
|
|
@@ -13431,6 +13519,12 @@ var Expandable = function Expandable(_ref) {
|
|
|
13431
13519
|
setFadeColor(parentBg || "#fff");
|
|
13432
13520
|
};
|
|
13433
13521
|
updateHeight();
|
|
13522
|
+
var images = (_contentRef$current$q = (_contentRef$current = contentRef.current) === null || _contentRef$current === void 0 ? void 0 : _contentRef$current.querySelectorAll("img")) !== null && _contentRef$current$q !== void 0 ? _contentRef$current$q : [];
|
|
13523
|
+
if (images) {
|
|
13524
|
+
images.forEach(function (img) {
|
|
13525
|
+
return img.addEventListener("load", updateHeight);
|
|
13526
|
+
});
|
|
13527
|
+
}
|
|
13434
13528
|
var observer = new ResizeObserver(updateHeight);
|
|
13435
13529
|
observer.observe(el);
|
|
13436
13530
|
return function () {
|