@helpdice/ui 2.6.0 → 2.6.1-beta.0
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 +246 -14
- package/dist/container/index.js +7 -0
- package/dist/expandable/index.js +7 -0
- package/dist/index.js +321 -228
- package/dist/input/index.d.ts +2 -0
- package/dist/input/index.js +246 -14
- package/dist/input/input-currency-range.d.ts +8 -0
- package/dist/table/index.js +232 -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 +8 -0
- package/esm/input/input-currency-range.js +83 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3884,11 +3884,243 @@ 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
|
+
var _React$useState = React.useState({
|
|
4057
|
+
min: '0',
|
|
4058
|
+
max: '0',
|
|
4059
|
+
currency: ''
|
|
4060
|
+
}),
|
|
4061
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
4062
|
+
value = _React$useState2[0],
|
|
4063
|
+
setValue = _React$useState2[1];
|
|
4064
|
+
React.useEffect(function () {
|
|
4065
|
+
var min = parseCurrency(value.min);
|
|
4066
|
+
var max = parseCurrency(value.max);
|
|
4067
|
+
if (max.amount > min.amount) {
|
|
4068
|
+
if (onChange) onChange({
|
|
4069
|
+
target: {
|
|
4070
|
+
value: {
|
|
4071
|
+
min: min.amount,
|
|
4072
|
+
max: max.amount,
|
|
4073
|
+
currency: min.currency
|
|
4074
|
+
}
|
|
4075
|
+
}
|
|
4076
|
+
});
|
|
4077
|
+
}
|
|
4078
|
+
}, [value]);
|
|
4079
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
4080
|
+
className: "with-label",
|
|
4081
|
+
children: [children && /*#__PURE__*/jsxRuntime.jsx(InputBlockLabel, {
|
|
4082
|
+
children: children
|
|
4083
|
+
}), /*#__PURE__*/jsxRuntime.jsxs(Grid.Container, {
|
|
4084
|
+
gap: 2,
|
|
4085
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(Grid, {
|
|
4086
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Input.Currency, {
|
|
4087
|
+
onChange: function onChange(e) {
|
|
4088
|
+
return setValue(function (prev) {
|
|
4089
|
+
return _objectSpread2(_objectSpread2({}, prev), {}, {
|
|
4090
|
+
min: e.target.value
|
|
4091
|
+
});
|
|
4092
|
+
});
|
|
4093
|
+
},
|
|
4094
|
+
intlConfig: intlConfig,
|
|
4095
|
+
prefix: prefix,
|
|
4096
|
+
placeholder: "Min",
|
|
4097
|
+
allowDecimals: allowDecimals
|
|
4098
|
+
})
|
|
4099
|
+
}), /*#__PURE__*/jsxRuntime.jsx(Grid, {
|
|
4100
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Input.Currency, {
|
|
4101
|
+
onChange: function onChange(e) {
|
|
4102
|
+
return setValue(function (prev) {
|
|
4103
|
+
return _objectSpread2(_objectSpread2({}, prev), {}, {
|
|
4104
|
+
max: e.target.value
|
|
4105
|
+
});
|
|
4106
|
+
});
|
|
4107
|
+
},
|
|
4108
|
+
intlConfig: intlConfig,
|
|
4109
|
+
prefix: prefix,
|
|
4110
|
+
placeholder: "Max",
|
|
4111
|
+
allowDecimals: allowDecimals
|
|
4112
|
+
})
|
|
4113
|
+
})]
|
|
4114
|
+
})]
|
|
4115
|
+
});
|
|
4116
|
+
}
|
|
4117
|
+
|
|
3887
4118
|
/* "use client" */
|
|
3888
4119
|
Input.Textarea = Textarea;
|
|
3889
4120
|
Input.Password = InputPassword;
|
|
3890
4121
|
Input.Phone = PhoneInput$1;
|
|
3891
4122
|
Input.Currency = CurrencyInput;
|
|
4123
|
+
Input.CurrencyRange = CurrencyRangeInput;
|
|
3892
4124
|
|
|
3893
4125
|
/* "use client" */
|
|
3894
4126
|
|
|
@@ -4008,7 +4240,7 @@ var AutoCompleteEmpty = function AutoCompleteEmpty(_ref) {
|
|
|
4008
4240
|
};
|
|
4009
4241
|
AutoCompleteEmpty.displayName = 'AutoCompleteEmpty';
|
|
4010
4242
|
|
|
4011
|
-
var _excluded$
|
|
4243
|
+
var _excluded$1e = ["children", "type", "color", "className", "spaceRatio"];
|
|
4012
4244
|
var getIconBgColor = function getIconBgColor(type, palette, color) {
|
|
4013
4245
|
var colors = {
|
|
4014
4246
|
"default": palette.accents_6,
|
|
@@ -4028,7 +4260,7 @@ var LoadingComponent = function LoadingComponent(_ref) {
|
|
|
4028
4260
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
4029
4261
|
_ref$spaceRatio = _ref.spaceRatio,
|
|
4030
4262
|
spaceRatio = _ref$spaceRatio === void 0 ? 1 : _ref$spaceRatio,
|
|
4031
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4263
|
+
props = _objectWithoutProperties(_ref, _excluded$1e);
|
|
4032
4264
|
var theme$1 = theme.useTheme();
|
|
4033
4265
|
var _useScale = useScale(),
|
|
4034
4266
|
SCALES = _useScale.SCALES;
|
|
@@ -4060,7 +4292,7 @@ var LoadingComponent = function LoadingComponent(_ref) {
|
|
|
4060
4292
|
LoadingComponent.displayName = 'Loading';
|
|
4061
4293
|
var Loading = withScale(LoadingComponent);
|
|
4062
4294
|
|
|
4063
|
-
var _excluded$
|
|
4295
|
+
var _excluded$1d = ["options", "initialValue", "onSelect", "onSearch", "onChange", "searching", "children", "type", "color", "value", "clearable", "disabled", "dropdownClassName", "dropdownStyle", "disableMatchWidth", "disableFreeSolo", "getPopupContainer"];
|
|
4064
4296
|
var childrenToOptionsNode = function childrenToOptionsNode(options) {
|
|
4065
4297
|
return options.map(function (item, index) {
|
|
4066
4298
|
var key = "auto-complete-item-".concat(index);
|
|
@@ -4109,7 +4341,7 @@ var AutoCompleteComponent = /*#__PURE__*/React.forwardRef(function (_ref, userRe
|
|
|
4109
4341
|
_ref$disableFreeSolo = _ref.disableFreeSolo,
|
|
4110
4342
|
disableFreeSolo = _ref$disableFreeSolo === void 0 ? false : _ref$disableFreeSolo,
|
|
4111
4343
|
getPopupContainer = _ref.getPopupContainer,
|
|
4112
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4344
|
+
props = _objectWithoutProperties(_ref, _excluded$1d);
|
|
4113
4345
|
var resetTimer = React.useRef(0); // DEFAULT Value 0
|
|
4114
4346
|
var _useScale = useScale(),
|
|
4115
4347
|
SCALES = _useScale.SCALES,
|
|
@@ -4262,7 +4494,7 @@ AutoComplete.Option = AutoCompleteItemComponent;
|
|
|
4262
4494
|
AutoComplete.Searching = AutoCompleteSearch;
|
|
4263
4495
|
AutoComplete.Empty = AutoCompleteEmpty;
|
|
4264
4496
|
|
|
4265
|
-
var _excluded$
|
|
4497
|
+
var _excluded$1c = ["src", "errorSrc", "stacked", "text", "isSquare", "className", "children"];
|
|
4266
4498
|
var safeText = function safeText(text) {
|
|
4267
4499
|
if (text.length <= 4) return text;
|
|
4268
4500
|
return text.slice(0, 3);
|
|
@@ -4281,7 +4513,7 @@ var AvatarComponent = function AvatarComponent(_ref) {
|
|
|
4281
4513
|
_ref$className = _ref.className,
|
|
4282
4514
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
4283
4515
|
children = _ref.children,
|
|
4284
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4516
|
+
props = _objectWithoutProperties(_ref, _excluded$1c);
|
|
4285
4517
|
var theme$1 = theme.useTheme();
|
|
4286
4518
|
var fallbackSrc = theme$1.type === 'dark' ? errorImgDark : errorImgLight;
|
|
4287
4519
|
var _useScale = useScale(),
|
|
@@ -4342,7 +4574,7 @@ var AvatarGroup = withScale(AvatarGroupComponent);
|
|
|
4342
4574
|
|
|
4343
4575
|
Avatar.Group = AvatarGroup;
|
|
4344
4576
|
|
|
4345
|
-
var _excluded$
|
|
4577
|
+
var _excluded$1b = ["color", "className", "children", "dot"];
|
|
4346
4578
|
var getBgColor = function getBgColor(type, palette) {
|
|
4347
4579
|
var colors = {
|
|
4348
4580
|
"default": palette.foreground,
|
|
@@ -4361,7 +4593,7 @@ var BadgeComponent = function BadgeComponent(_ref) {
|
|
|
4361
4593
|
children = _ref.children,
|
|
4362
4594
|
_ref$dot = _ref.dot,
|
|
4363
4595
|
dot = _ref$dot === void 0 ? false : _ref$dot,
|
|
4364
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4596
|
+
props = _objectWithoutProperties(_ref, _excluded$1b);
|
|
4365
4597
|
var theme$1 = theme.useTheme();
|
|
4366
4598
|
var _useScale = useScale(),
|
|
4367
4599
|
SCALES = _useScale.SCALES;
|
|
@@ -4575,7 +4807,7 @@ var LinkIconComponent = function LinkIconComponent() {
|
|
|
4575
4807
|
LinkIconComponent.displayName = 'LinkIcon';
|
|
4576
4808
|
var LinkIcon = /*#__PURE__*/React.memo(LinkIconComponent);
|
|
4577
4809
|
|
|
4578
|
-
var _excluded$
|
|
4810
|
+
var _excluded$1a = ["href", "showColor", "underline", "children", "className", "block", "arrow", "icon"];
|
|
4579
4811
|
var LinkComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
4580
4812
|
var _ref$href = _ref.href,
|
|
4581
4813
|
href = _ref$href === void 0 ? '' : _ref$href,
|
|
@@ -4591,7 +4823,7 @@ var LinkComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
4591
4823
|
_ref$arrow = _ref.arrow,
|
|
4592
4824
|
arrow = _ref$arrow === void 0 ? false : _ref$arrow,
|
|
4593
4825
|
icon = _ref.icon,
|
|
4594
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4826
|
+
props = _objectWithoutProperties(_ref, _excluded$1a);
|
|
4595
4827
|
var theme$1 = theme.useTheme();
|
|
4596
4828
|
var _useScale = useScale(),
|
|
4597
4829
|
SCALES = _useScale.SCALES;
|
|
@@ -4619,7 +4851,7 @@ var LinkComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
4619
4851
|
LinkComponent.displayName = 'Link';
|
|
4620
4852
|
var Link = withScale(LinkComponent);
|
|
4621
4853
|
|
|
4622
|
-
var _excluded$
|
|
4854
|
+
var _excluded$19 = ["href", "nextLink", "onClick", "children", "className"];
|
|
4623
4855
|
var BreadcrumbsItem = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
4624
4856
|
var href = _ref.href,
|
|
4625
4857
|
_ref$nextLink = _ref.nextLink,
|
|
@@ -4628,7 +4860,7 @@ var BreadcrumbsItem = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
4628
4860
|
children = _ref.children,
|
|
4629
4861
|
_ref$className = _ref.className,
|
|
4630
4862
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
4631
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4863
|
+
props = _objectWithoutProperties(_ref, _excluded$19);
|
|
4632
4864
|
var isLink = React.useMemo(function () {
|
|
4633
4865
|
return href !== undefined || nextLink;
|
|
4634
4866
|
}, [href, nextLink]);
|
|
@@ -4735,7 +4967,7 @@ var ButtonLoading = function ButtonLoading(_ref) {
|
|
|
4735
4967
|
};
|
|
4736
4968
|
ButtonLoading.displayName = 'ButtonLoading';
|
|
4737
4969
|
|
|
4738
|
-
var _excluded$
|
|
4970
|
+
var _excluded$18 = ["isRight", "isSingle", "children", "className"];
|
|
4739
4971
|
var ButtonIcon = function ButtonIcon(_ref) {
|
|
4740
4972
|
var _ref$isRight = _ref.isRight,
|
|
4741
4973
|
isRight = _ref$isRight === void 0 ? false : _ref$isRight,
|
|
@@ -4743,7 +4975,7 @@ var ButtonIcon = function ButtonIcon(_ref) {
|
|
|
4743
4975
|
children = _ref.children,
|
|
4744
4976
|
_ref$className = _ref.className,
|
|
4745
4977
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
4746
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4978
|
+
props = _objectWithoutProperties(_ref, _excluded$18);
|
|
4747
4979
|
var classes = theme.useClasses('icon', {
|
|
4748
4980
|
right: isRight,
|
|
4749
4981
|
single: isSingle
|
|
@@ -5010,7 +5242,7 @@ var getButtonDripColor = function getButtonDripColor(palette, props) {
|
|
|
5010
5242
|
return isLightHover ? addColorAlpha(hoverColors.bg, 0.65) : addColorAlpha(palette.accents_2, 0.65);
|
|
5011
5243
|
};
|
|
5012
5244
|
|
|
5013
|
-
var _excluded$
|
|
5245
|
+
var _excluded$17 = ["children", "disabled", "color", "loading", "shadow", "ghost", "effect", "round", "relative", "replace", "a", "to", "onClick", "auto", "icon", "type", "iconRight", "className", "crossOrigin"];
|
|
5014
5246
|
var ButtonComponent = /*#__PURE__*/React.forwardRef(function (btnProps, ref) {
|
|
5015
5247
|
var theme$1 = theme.useTheme();
|
|
5016
5248
|
// const navigate = useNavigate();
|
|
@@ -5064,7 +5296,7 @@ var ButtonComponent = /*#__PURE__*/React.forwardRef(function (btnProps, ref) {
|
|
|
5064
5296
|
_filteredProps$classN = filteredProps.className,
|
|
5065
5297
|
className = _filteredProps$classN === void 0 ? '' : _filteredProps$classN;
|
|
5066
5298
|
filteredProps.crossOrigin;
|
|
5067
|
-
var props = _objectWithoutProperties(filteredProps, _excluded$
|
|
5299
|
+
var props = _objectWithoutProperties(filteredProps, _excluded$17);
|
|
5068
5300
|
/* eslint-enable @typescript-eslint/no-unused-vars */
|
|
5069
5301
|
|
|
5070
5302
|
var _useMemo = React.useMemo(function () {
|
|
@@ -5327,7 +5559,7 @@ var useButtonDropdown = function useButtonDropdown() {
|
|
|
5327
5559
|
return React.useContext(ButtonDropdownContext);
|
|
5328
5560
|
};
|
|
5329
5561
|
|
|
5330
|
-
var _excluded$
|
|
5562
|
+
var _excluded$16 = ["children", "onClick", "className", "main", "icon", "type"];
|
|
5331
5563
|
var ButtonDropdownItem = function ButtonDropdownItem(_ref) {
|
|
5332
5564
|
var children = _ref.children,
|
|
5333
5565
|
_ref$onClick = _ref.onClick,
|
|
@@ -5338,7 +5570,7 @@ var ButtonDropdownItem = function ButtonDropdownItem(_ref) {
|
|
|
5338
5570
|
main = _ref$main === void 0 ? false : _ref$main,
|
|
5339
5571
|
icon = _ref.icon,
|
|
5340
5572
|
selfType = _ref.type,
|
|
5341
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5573
|
+
props = _objectWithoutProperties(_ref, _excluded$16);
|
|
5342
5574
|
var theme$1 = theme.useTheme();
|
|
5343
5575
|
var _useScale = useScale(),
|
|
5344
5576
|
SCALES = _useScale.SCALES;
|
|
@@ -5380,7 +5612,7 @@ var ButtonDropdownItem = function ButtonDropdownItem(_ref) {
|
|
|
5380
5612
|
};
|
|
5381
5613
|
ButtonDropdownItem.displayName = 'ButtonDropdownItem';
|
|
5382
5614
|
|
|
5383
|
-
var _excluded$
|
|
5615
|
+
var _excluded$15 = ["children", "type", "auto", "className", "disabled", "loading", "icon"];
|
|
5384
5616
|
var stopPropagation$1 = function stopPropagation(event) {
|
|
5385
5617
|
event.stopPropagation();
|
|
5386
5618
|
event.nativeEvent.stopImmediatePropagation();
|
|
@@ -5398,7 +5630,7 @@ var ButtonDropdownComponent = function ButtonDropdownComponent(_ref) {
|
|
|
5398
5630
|
_ref$loading = _ref.loading,
|
|
5399
5631
|
loading = _ref$loading === void 0 ? false : _ref$loading,
|
|
5400
5632
|
icon = _ref.icon,
|
|
5401
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5633
|
+
props = _objectWithoutProperties(_ref, _excluded$15);
|
|
5402
5634
|
var _useScale = useScale(),
|
|
5403
5635
|
SCALES = _useScale.SCALES;
|
|
5404
5636
|
var ref = React.useRef(null);
|
|
@@ -5480,7 +5712,7 @@ var ButtonDropdown = withScale(ButtonDropdownComponent);
|
|
|
5480
5712
|
/* "use client" */
|
|
5481
5713
|
ButtonDropdown.Item = ButtonDropdownItem;
|
|
5482
5714
|
|
|
5483
|
-
var _excluded$
|
|
5715
|
+
var _excluded$14 = ["disabled", "type", "ghost", "vertical", "children", "className"];
|
|
5484
5716
|
var getGroupBorderColors = function getGroupBorderColors(palette, props) {
|
|
5485
5717
|
var _props$ghost = props.ghost,
|
|
5486
5718
|
ghost = _props$ghost === void 0 ? false : _props$ghost,
|
|
@@ -5507,7 +5739,7 @@ var ButtonGroupComponent = function ButtonGroupComponent(groupProps) {
|
|
|
5507
5739
|
vertical = groupProps.vertical,
|
|
5508
5740
|
children = groupProps.children,
|
|
5509
5741
|
className = groupProps.className,
|
|
5510
|
-
props = _objectWithoutProperties(groupProps, _excluded$
|
|
5742
|
+
props = _objectWithoutProperties(groupProps, _excluded$14);
|
|
5511
5743
|
var initialValue = React.useMemo(function () {
|
|
5512
5744
|
return {
|
|
5513
5745
|
disabled: disabled,
|
|
@@ -5567,7 +5799,7 @@ var useProportions = function useProportions(value, max) {
|
|
|
5567
5799
|
}, [value, max, maxFixed]);
|
|
5568
5800
|
};
|
|
5569
5801
|
|
|
5570
|
-
var _excluded$
|
|
5802
|
+
var _excluded$13 = ["value", "limit", "color", "className"];
|
|
5571
5803
|
var getColor$3 = function getColor(val, palette) {
|
|
5572
5804
|
if (val < 33) return palette.cyan;
|
|
5573
5805
|
if (val < 66) return palette.warning;
|
|
@@ -5581,7 +5813,7 @@ var CapacityComponent = function CapacityComponent(_ref) {
|
|
|
5581
5813
|
userColor = _ref.color,
|
|
5582
5814
|
_ref$className = _ref.className,
|
|
5583
5815
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
5584
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5816
|
+
props = _objectWithoutProperties(_ref, _excluded$13);
|
|
5585
5817
|
var theme$1 = theme.useTheme();
|
|
5586
5818
|
var _useScale = useScale(),
|
|
5587
5819
|
SCALES = _useScale.SCALES;
|
|
@@ -5660,14 +5892,14 @@ var getStyles$1 = function getStyles(type, palette, isShadow) {
|
|
|
5660
5892
|
});
|
|
5661
5893
|
};
|
|
5662
5894
|
|
|
5663
|
-
var _excluded$
|
|
5895
|
+
var _excluded$12 = ["children", "className", "disableAutoMargin"];
|
|
5664
5896
|
var CardFooterComponent = function CardFooterComponent(_ref) {
|
|
5665
5897
|
var children = _ref.children,
|
|
5666
5898
|
_ref$className = _ref.className,
|
|
5667
5899
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
5668
5900
|
_ref$disableAutoMargi = _ref.disableAutoMargin,
|
|
5669
5901
|
disableAutoMargin = _ref$disableAutoMargi === void 0 ? false : _ref$disableAutoMargi,
|
|
5670
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5902
|
+
props = _objectWithoutProperties(_ref, _excluded$12);
|
|
5671
5903
|
var theme$1 = theme.useTheme();
|
|
5672
5904
|
var _useScale = useScale(),
|
|
5673
5905
|
SCALES = _useScale.SCALES;
|
|
@@ -5686,12 +5918,12 @@ var CardFooterComponent = function CardFooterComponent(_ref) {
|
|
|
5686
5918
|
CardFooterComponent.displayName = 'CardFooter';
|
|
5687
5919
|
var CardFooter = withScale(CardFooterComponent);
|
|
5688
5920
|
|
|
5689
|
-
var _excluded$
|
|
5921
|
+
var _excluded$11 = ["className", "children"];
|
|
5690
5922
|
var CardContentComponent = function CardContentComponent(_ref) {
|
|
5691
5923
|
var _ref$className = _ref.className,
|
|
5692
5924
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
5693
5925
|
children = _ref.children,
|
|
5694
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5926
|
+
props = _objectWithoutProperties(_ref, _excluded$11);
|
|
5695
5927
|
var _useScale = useScale(),
|
|
5696
5928
|
SCALES = _useScale.SCALES;
|
|
5697
5929
|
return /*#__PURE__*/jsxRuntime.jsxs("div", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
@@ -5706,11 +5938,11 @@ var CardContentComponent = function CardContentComponent(_ref) {
|
|
|
5706
5938
|
CardContentComponent.displayName = 'CardContent';
|
|
5707
5939
|
var CardContent = withScale(CardContentComponent);
|
|
5708
5940
|
|
|
5709
|
-
var _excluded$
|
|
5941
|
+
var _excluded$10 = ["opacity"];
|
|
5710
5942
|
var ImageSkeleton = /*#__PURE__*/React.memo(function (_ref) {
|
|
5711
5943
|
var _ref$opacity = _ref.opacity,
|
|
5712
5944
|
opacity = _ref$opacity === void 0 ? 0.5 : _ref$opacity,
|
|
5713
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5945
|
+
props = _objectWithoutProperties(_ref, _excluded$10);
|
|
5714
5946
|
var theme$1 = theme.useTheme();
|
|
5715
5947
|
return /*#__PURE__*/jsxRuntime.jsx("div", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
5716
5948
|
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 +5970,7 @@ var getHostFromUrl = function getHostFromUrl(url) {
|
|
|
5738
5970
|
}
|
|
5739
5971
|
};
|
|
5740
5972
|
|
|
5741
|
-
var _excluded
|
|
5973
|
+
var _excluded$$ = ["src", "disableSkeleton", "className", "maxDelay"];
|
|
5742
5974
|
var ImageComponent = function ImageComponent(_ref) {
|
|
5743
5975
|
var src = _ref.src,
|
|
5744
5976
|
_ref$disableSkeleton = _ref.disableSkeleton,
|
|
@@ -5747,7 +5979,7 @@ var ImageComponent = function ImageComponent(_ref) {
|
|
|
5747
5979
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
5748
5980
|
_ref$maxDelay = _ref.maxDelay,
|
|
5749
5981
|
maxDelay = _ref$maxDelay === void 0 ? 3000 : _ref$maxDelay,
|
|
5750
|
-
props = _objectWithoutProperties(_ref, _excluded
|
|
5982
|
+
props = _objectWithoutProperties(_ref, _excluded$$);
|
|
5751
5983
|
var _useScale = useScale(),
|
|
5752
5984
|
SCALES = _useScale.SCALES,
|
|
5753
5985
|
getScaleProps = _useScale.getScaleProps;
|
|
@@ -5847,7 +6079,7 @@ var getBrowserColors = function getBrowserColors(invert, palette) {
|
|
|
5847
6079
|
};
|
|
5848
6080
|
};
|
|
5849
6081
|
|
|
5850
|
-
var _excluded$
|
|
6082
|
+
var _excluded$_ = ["url", "title", "children", "showFullLink", "invert", "anchorProps", "className"];
|
|
5851
6083
|
var getTitle = function getTitle(title, colors) {
|
|
5852
6084
|
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
5853
6085
|
className: _JSXStyle.dynamic([["524099755", [colors.titleColor]]]) + " " + "title",
|
|
@@ -5889,7 +6121,7 @@ var ImageBrowserComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
5889
6121
|
anchorProps = _ref$anchorProps === void 0 ? {} : _ref$anchorProps,
|
|
5890
6122
|
_ref$className = _ref.className,
|
|
5891
6123
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
5892
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6124
|
+
props = _objectWithoutProperties(_ref, _excluded$_);
|
|
5893
6125
|
var theme$1 = theme.useTheme();
|
|
5894
6126
|
var _useScale = useScale(),
|
|
5895
6127
|
SCALES = _useScale.SCALES;
|
|
@@ -5929,7 +6161,7 @@ var ImageBrowser = withScale(ImageBrowserComponent);
|
|
|
5929
6161
|
|
|
5930
6162
|
Image.Browser = ImageBrowser;
|
|
5931
6163
|
|
|
5932
|
-
var _excluded$
|
|
6164
|
+
var _excluded$Z = ["children", "hoverable", "className", "shadow", "type"];
|
|
5933
6165
|
var CardComponent = function CardComponent(_ref) {
|
|
5934
6166
|
var children = _ref.children,
|
|
5935
6167
|
_ref$hoverable = _ref.hoverable,
|
|
@@ -5940,7 +6172,7 @@ var CardComponent = function CardComponent(_ref) {
|
|
|
5940
6172
|
shadow = _ref$shadow === void 0 ? false : _ref$shadow,
|
|
5941
6173
|
_ref$type = _ref.type,
|
|
5942
6174
|
type = _ref$type === void 0 ? 'default' : _ref$type,
|
|
5943
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6175
|
+
props = _objectWithoutProperties(_ref, _excluded$Z);
|
|
5944
6176
|
var theme$1 = theme.useTheme();
|
|
5945
6177
|
var _useScale = useScale(),
|
|
5946
6178
|
SCALES = _useScale.SCALES;
|
|
@@ -6084,7 +6316,7 @@ var getColors$6 = function getColors(palette, status) {
|
|
|
6084
6316
|
return colors[status];
|
|
6085
6317
|
};
|
|
6086
6318
|
|
|
6087
|
-
var _excluded
|
|
6319
|
+
var _excluded$Y = ["checked", "initialChecked", "disabled", "onChange", "className", "children", "type", "value", "block"];
|
|
6088
6320
|
var CheckboxComponent = function CheckboxComponent(_ref) {
|
|
6089
6321
|
var checked = _ref.checked,
|
|
6090
6322
|
_ref$initialChecked = _ref.initialChecked,
|
|
@@ -6101,7 +6333,7 @@ var CheckboxComponent = function CheckboxComponent(_ref) {
|
|
|
6101
6333
|
value = _ref$value === void 0 ? '' : _ref$value,
|
|
6102
6334
|
_ref$block = _ref.block,
|
|
6103
6335
|
block = _ref$block === void 0 ? false : _ref$block,
|
|
6104
|
-
props = _objectWithoutProperties(_ref, _excluded
|
|
6336
|
+
props = _objectWithoutProperties(_ref, _excluded$Y);
|
|
6105
6337
|
var theme$1 = theme.useTheme();
|
|
6106
6338
|
var _useScale = useScale(),
|
|
6107
6339
|
SCALES = _useScale.SCALES;
|
|
@@ -6184,7 +6416,7 @@ var CheckboxComponent = function CheckboxComponent(_ref) {
|
|
|
6184
6416
|
CheckboxComponent.displayName = 'Checkbox';
|
|
6185
6417
|
var Checkbox = withScale(CheckboxComponent);
|
|
6186
6418
|
|
|
6187
|
-
var _excluded$
|
|
6419
|
+
var _excluded$X = ["disabled", "onChange", "value", "children", "className"];
|
|
6188
6420
|
var CheckboxGroupComponent = function CheckboxGroupComponent(_ref) {
|
|
6189
6421
|
var _ref$disabled = _ref.disabled,
|
|
6190
6422
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
@@ -6193,7 +6425,7 @@ var CheckboxGroupComponent = function CheckboxGroupComponent(_ref) {
|
|
|
6193
6425
|
children = _ref.children,
|
|
6194
6426
|
_ref$className = _ref.className,
|
|
6195
6427
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
6196
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6428
|
+
props = _objectWithoutProperties(_ref, _excluded$X);
|
|
6197
6429
|
var _useScale = useScale(),
|
|
6198
6430
|
SCALES = _useScale.SCALES;
|
|
6199
6431
|
var _useState = React.useState([]),
|
|
@@ -6243,7 +6475,7 @@ var CheckboxGroup = withScale(CheckboxGroupComponent);
|
|
|
6243
6475
|
|
|
6244
6476
|
Checkbox.Group = CheckboxGroup;
|
|
6245
6477
|
|
|
6246
|
-
var _excluded$
|
|
6478
|
+
var _excluded$W = ["children", "block", "className", "name", "classic"];
|
|
6247
6479
|
var CodeComponent = function CodeComponent(_ref) {
|
|
6248
6480
|
var children = _ref.children,
|
|
6249
6481
|
_ref$block = _ref.block,
|
|
@@ -6254,7 +6486,7 @@ var CodeComponent = function CodeComponent(_ref) {
|
|
|
6254
6486
|
name = _ref$name === void 0 ? '' : _ref$name,
|
|
6255
6487
|
_ref$classic = _ref.classic,
|
|
6256
6488
|
classic = _ref$classic === void 0 ? false : _ref$classic,
|
|
6257
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6489
|
+
props = _objectWithoutProperties(_ref, _excluded$W);
|
|
6258
6490
|
var _useScale = useScale(),
|
|
6259
6491
|
SCALES = _useScale.SCALES;
|
|
6260
6492
|
var theme$1 = theme.useTheme();
|
|
@@ -6472,7 +6704,7 @@ var useCollapseContext = function useCollapseContext() {
|
|
|
6472
6704
|
return React.useContext(CollapseContext);
|
|
6473
6705
|
};
|
|
6474
6706
|
|
|
6475
|
-
var _excluded$
|
|
6707
|
+
var _excluded$V = ["children", "title", "subtitle", "initialVisible", "shadow", "className", "index"];
|
|
6476
6708
|
var CollapseComponent = function CollapseComponent(_ref) {
|
|
6477
6709
|
var children = _ref.children,
|
|
6478
6710
|
title = _ref.title,
|
|
@@ -6484,7 +6716,7 @@ var CollapseComponent = function CollapseComponent(_ref) {
|
|
|
6484
6716
|
_ref$className = _ref.className,
|
|
6485
6717
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
6486
6718
|
index = _ref.index,
|
|
6487
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6719
|
+
props = _objectWithoutProperties(_ref, _excluded$V);
|
|
6488
6720
|
var theme$1 = theme.useTheme();
|
|
6489
6721
|
var _useScale = useScale(),
|
|
6490
6722
|
SCALES = _useScale.SCALES;
|
|
@@ -6548,14 +6780,14 @@ var CollapseComponent = function CollapseComponent(_ref) {
|
|
|
6548
6780
|
CollapseComponent.displayName = 'Collapse';
|
|
6549
6781
|
var Collapse = withScale(CollapseComponent);
|
|
6550
6782
|
|
|
6551
|
-
var _excluded$
|
|
6783
|
+
var _excluded$U = ["children", "accordion", "className"];
|
|
6552
6784
|
var CollapseGroupComponent = function CollapseGroupComponent(_ref) {
|
|
6553
6785
|
var children = _ref.children,
|
|
6554
6786
|
_ref$accordion = _ref.accordion,
|
|
6555
6787
|
accordion = _ref$accordion === void 0 ? true : _ref$accordion,
|
|
6556
6788
|
_ref$className = _ref.className,
|
|
6557
6789
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
6558
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6790
|
+
props = _objectWithoutProperties(_ref, _excluded$U);
|
|
6559
6791
|
var _useScale = useScale(),
|
|
6560
6792
|
SCALES = _useScale.SCALES;
|
|
6561
6793
|
var _useCurrentState = theme.useCurrentState([]),
|
|
@@ -6611,7 +6843,7 @@ var CollapseGroup = withScale(CollapseGroupComponent);
|
|
|
6611
6843
|
|
|
6612
6844
|
Collapse.Group = CollapseGroup;
|
|
6613
6845
|
|
|
6614
|
-
var _excluded$
|
|
6846
|
+
var _excluded$T = ["title", "content", "className"];
|
|
6615
6847
|
var DescriptionComponent = function DescriptionComponent(_ref) {
|
|
6616
6848
|
var _ref$title = _ref.title,
|
|
6617
6849
|
title = _ref$title === void 0 ? 'Title' : _ref$title,
|
|
@@ -6619,7 +6851,7 @@ var DescriptionComponent = function DescriptionComponent(_ref) {
|
|
|
6619
6851
|
content = _ref$content === void 0 ? '' : _ref$content,
|
|
6620
6852
|
_ref$className = _ref.className,
|
|
6621
6853
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
6622
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6854
|
+
props = _objectWithoutProperties(_ref, _excluded$T);
|
|
6623
6855
|
var theme$1 = theme.useTheme();
|
|
6624
6856
|
var _useScale = useScale(),
|
|
6625
6857
|
SCALES = _useScale.SCALES;
|
|
@@ -6642,7 +6874,7 @@ var DescriptionComponent = function DescriptionComponent(_ref) {
|
|
|
6642
6874
|
DescriptionComponent.displayName = 'Description';
|
|
6643
6875
|
var Description = withScale(DescriptionComponent);
|
|
6644
6876
|
|
|
6645
|
-
var _excluded$
|
|
6877
|
+
var _excluded$S = ["children", "caption", "shadow", "className"];
|
|
6646
6878
|
var DisplayComponent = function DisplayComponent(_ref) {
|
|
6647
6879
|
var children = _ref.children,
|
|
6648
6880
|
_ref$caption = _ref.caption,
|
|
@@ -6651,7 +6883,7 @@ var DisplayComponent = function DisplayComponent(_ref) {
|
|
|
6651
6883
|
shadow = _ref$shadow === void 0 ? false : _ref$shadow,
|
|
6652
6884
|
_ref$className = _ref.className,
|
|
6653
6885
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
6654
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6886
|
+
props = _objectWithoutProperties(_ref, _excluded$S);
|
|
6655
6887
|
var theme$1 = theme.useTheme();
|
|
6656
6888
|
var _useScale = useScale(),
|
|
6657
6889
|
SCALES = _useScale.SCALES;
|
|
@@ -6677,7 +6909,7 @@ var DisplayComponent = function DisplayComponent(_ref) {
|
|
|
6677
6909
|
DisplayComponent.displayName = 'Display';
|
|
6678
6910
|
var Display = withScale(DisplayComponent);
|
|
6679
6911
|
|
|
6680
|
-
var _excluded$
|
|
6912
|
+
var _excluded$R = ["type", "align", "children", "className"];
|
|
6681
6913
|
var getColor$2 = function getColor(type, palette) {
|
|
6682
6914
|
var colors = {
|
|
6683
6915
|
"default": palette.border,
|
|
@@ -6698,7 +6930,7 @@ var DividerComponent = function DividerComponent(_ref) {
|
|
|
6698
6930
|
children = _ref.children,
|
|
6699
6931
|
_ref$className = _ref.className,
|
|
6700
6932
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
6701
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6933
|
+
props = _objectWithoutProperties(_ref, _excluded$R);
|
|
6702
6934
|
var theme$1 = theme.useTheme();
|
|
6703
6935
|
var _useScale = useScale(),
|
|
6704
6936
|
SCALES = _useScale.SCALES;
|
|
@@ -6730,7 +6962,7 @@ var DividerComponent = function DividerComponent(_ref) {
|
|
|
6730
6962
|
DividerComponent.displayName = 'Divider';
|
|
6731
6963
|
var Divider = withScale(DividerComponent);
|
|
6732
6964
|
|
|
6733
|
-
var _excluded$
|
|
6965
|
+
var _excluded$Q = ["type", "children", "className"];
|
|
6734
6966
|
var getColor$1 = function getColor(type, theme) {
|
|
6735
6967
|
var colors = {
|
|
6736
6968
|
"default": theme.palette.accents_2,
|
|
@@ -6746,7 +6978,7 @@ var DotComponent = function DotComponent(_ref) {
|
|
|
6746
6978
|
children = _ref.children,
|
|
6747
6979
|
_ref$className = _ref.className,
|
|
6748
6980
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
6749
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6981
|
+
props = _objectWithoutProperties(_ref, _excluded$Q);
|
|
6750
6982
|
var theme$1 = theme.useTheme();
|
|
6751
6983
|
var _useScale = useScale(),
|
|
6752
6984
|
SCALES = _useScale.SCALES;
|
|
@@ -7084,7 +7316,7 @@ var getDrawerTransform = function getDrawerTransform(placement) {
|
|
|
7084
7316
|
return translates[placement];
|
|
7085
7317
|
};
|
|
7086
7318
|
|
|
7087
|
-
var _excluded$
|
|
7319
|
+
var _excluded$P = ["className", "children", "visible", "placement"];
|
|
7088
7320
|
var DrawerWrapper = function DrawerWrapper(_ref) {
|
|
7089
7321
|
var _ref$className = _ref.className,
|
|
7090
7322
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
@@ -7092,7 +7324,7 @@ var DrawerWrapper = function DrawerWrapper(_ref) {
|
|
|
7092
7324
|
_ref$visible = _ref.visible,
|
|
7093
7325
|
visible = _ref$visible === void 0 ? false : _ref$visible,
|
|
7094
7326
|
placement = _ref.placement,
|
|
7095
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7327
|
+
props = _objectWithoutProperties(_ref, _excluded$P);
|
|
7096
7328
|
var theme$1 = theme.useTheme();
|
|
7097
7329
|
var _useScale = useScale(),
|
|
7098
7330
|
SCALES = _useScale.SCALES;
|
|
@@ -7155,7 +7387,7 @@ var DrawerWrapper = function DrawerWrapper(_ref) {
|
|
|
7155
7387
|
};
|
|
7156
7388
|
DrawerWrapper.displayName = 'DrawerWrapper';
|
|
7157
7389
|
|
|
7158
|
-
var _excluded$
|
|
7390
|
+
var _excluded$O = ["visible", "keyboard", "disableBackdropClick", "onClose", "onContentClick", "wrapClassName", "children", "placement"];
|
|
7159
7391
|
var DrawerComponent = function DrawerComponent(_ref) {
|
|
7160
7392
|
var customVisible = _ref.visible,
|
|
7161
7393
|
_ref$keyboard = _ref.keyboard,
|
|
@@ -7169,7 +7401,7 @@ var DrawerComponent = function DrawerComponent(_ref) {
|
|
|
7169
7401
|
children = _ref.children,
|
|
7170
7402
|
_ref$placement = _ref.placement,
|
|
7171
7403
|
placement = _ref$placement === void 0 ? 'right' : _ref$placement,
|
|
7172
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7404
|
+
props = _objectWithoutProperties(_ref, _excluded$O);
|
|
7173
7405
|
var portal = usePortal('drawer');
|
|
7174
7406
|
var _useState = React.useState(false),
|
|
7175
7407
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -7218,12 +7450,12 @@ var DrawerComponent = function DrawerComponent(_ref) {
|
|
|
7218
7450
|
};
|
|
7219
7451
|
DrawerComponent.displayName = 'Drawer';
|
|
7220
7452
|
|
|
7221
|
-
var _excluded$
|
|
7453
|
+
var _excluded$N = ["className", "children"];
|
|
7222
7454
|
var ModalTitleComponent = function ModalTitleComponent(_ref) {
|
|
7223
7455
|
var _ref$className = _ref.className,
|
|
7224
7456
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
7225
7457
|
children = _ref.children,
|
|
7226
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7458
|
+
props = _objectWithoutProperties(_ref, _excluded$N);
|
|
7227
7459
|
var theme$1 = theme.useTheme();
|
|
7228
7460
|
var _useScale = useScale(),
|
|
7229
7461
|
SCALES = _useScale.SCALES;
|
|
@@ -7241,12 +7473,12 @@ var ModalTitleComponent = function ModalTitleComponent(_ref) {
|
|
|
7241
7473
|
ModalTitleComponent.displayName = 'ModalTitle';
|
|
7242
7474
|
var ModalTitle = withScale(ModalTitleComponent);
|
|
7243
7475
|
|
|
7244
|
-
var _excluded$
|
|
7476
|
+
var _excluded$M = ["className", "children"];
|
|
7245
7477
|
var ModalSubtitleComponent = function ModalSubtitleComponent(_ref) {
|
|
7246
7478
|
var _ref$className = _ref.className,
|
|
7247
7479
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
7248
7480
|
children = _ref.children,
|
|
7249
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7481
|
+
props = _objectWithoutProperties(_ref, _excluded$M);
|
|
7250
7482
|
var theme$1 = theme.useTheme();
|
|
7251
7483
|
var _useScale = useScale(),
|
|
7252
7484
|
SCALES = _useScale.SCALES;
|
|
@@ -7264,12 +7496,12 @@ var ModalSubtitleComponent = function ModalSubtitleComponent(_ref) {
|
|
|
7264
7496
|
ModalSubtitleComponent.displayName = 'ModalSubtitle';
|
|
7265
7497
|
var ModalSubtitle = withScale(ModalSubtitleComponent);
|
|
7266
7498
|
|
|
7267
|
-
var _excluded$
|
|
7499
|
+
var _excluded$L = ["className", "children"];
|
|
7268
7500
|
var ModalContentComponent = function ModalContentComponent(_ref) {
|
|
7269
7501
|
var _ref$className = _ref.className,
|
|
7270
7502
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
7271
7503
|
children = _ref.children,
|
|
7272
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7504
|
+
props = _objectWithoutProperties(_ref, _excluded$L);
|
|
7273
7505
|
var _useScale = useScale(),
|
|
7274
7506
|
SCALES = _useScale.SCALES;
|
|
7275
7507
|
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
@@ -7291,12 +7523,12 @@ DrawerComponent.Title = ModalTitle;
|
|
|
7291
7523
|
DrawerComponent.Subtitle = ModalSubtitle;
|
|
7292
7524
|
DrawerComponent.Content = ModalContent;
|
|
7293
7525
|
|
|
7294
|
-
var _excluded$
|
|
7526
|
+
var _excluded$K = ["className", "children"];
|
|
7295
7527
|
var FieldsetTitle = function FieldsetTitle(_ref) {
|
|
7296
7528
|
var _ref$className = _ref.className,
|
|
7297
7529
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
7298
7530
|
children = _ref.children,
|
|
7299
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7531
|
+
props = _objectWithoutProperties(_ref, _excluded$K);
|
|
7300
7532
|
var classes = theme.useClasses('title', className);
|
|
7301
7533
|
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
7302
7534
|
children: [/*#__PURE__*/jsxRuntime.jsx("div", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
@@ -7310,12 +7542,12 @@ var FieldsetTitle = function FieldsetTitle(_ref) {
|
|
|
7310
7542
|
};
|
|
7311
7543
|
FieldsetTitle.displayName = 'FieldsetTitle';
|
|
7312
7544
|
|
|
7313
|
-
var _excluded$
|
|
7545
|
+
var _excluded$J = ["className", "children"];
|
|
7314
7546
|
var FieldsetSubtitle = function FieldsetSubtitle(_ref) {
|
|
7315
7547
|
var _ref$className = _ref.className,
|
|
7316
7548
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
7317
7549
|
children = _ref.children,
|
|
7318
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7550
|
+
props = _objectWithoutProperties(_ref, _excluded$J);
|
|
7319
7551
|
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
7320
7552
|
children: [/*#__PURE__*/jsxRuntime.jsx("div", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
7321
7553
|
className: "jsx-2265168013" + " " + (props && props.className != null && props.className || className || ""),
|
|
@@ -7328,12 +7560,12 @@ var FieldsetSubtitle = function FieldsetSubtitle(_ref) {
|
|
|
7328
7560
|
};
|
|
7329
7561
|
FieldsetSubtitle.displayName = 'FieldsetSubtitle';
|
|
7330
7562
|
|
|
7331
|
-
var _excluded$
|
|
7563
|
+
var _excluded$I = ["className", "children"];
|
|
7332
7564
|
var FieldsetFooterComponent = function FieldsetFooterComponent(_ref) {
|
|
7333
7565
|
var _ref$className = _ref.className,
|
|
7334
7566
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
7335
7567
|
children = _ref.children,
|
|
7336
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7568
|
+
props = _objectWithoutProperties(_ref, _excluded$I);
|
|
7337
7569
|
var theme$1 = theme.useTheme();
|
|
7338
7570
|
var _useScale = useScale(),
|
|
7339
7571
|
SCALES = _useScale.SCALES;
|
|
@@ -7349,12 +7581,12 @@ var FieldsetFooterComponent = function FieldsetFooterComponent(_ref) {
|
|
|
7349
7581
|
FieldsetFooterComponent.displayName = 'FieldsetFooter';
|
|
7350
7582
|
var FieldsetFooter = withScale(FieldsetFooterComponent);
|
|
7351
7583
|
|
|
7352
|
-
var _excluded$
|
|
7584
|
+
var _excluded$H = ["className", "children"];
|
|
7353
7585
|
var FieldsetContentComponent = function FieldsetContentComponent(_ref) {
|
|
7354
7586
|
var _ref$className = _ref.className,
|
|
7355
7587
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
7356
7588
|
children = _ref.children,
|
|
7357
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7589
|
+
props = _objectWithoutProperties(_ref, _excluded$H);
|
|
7358
7590
|
var _useScale = useScale(),
|
|
7359
7591
|
SCALES = _useScale.SCALES;
|
|
7360
7592
|
var classes = theme.useClasses('content', className);
|
|
@@ -7381,7 +7613,7 @@ var useFieldset = function useFieldset() {
|
|
|
7381
7613
|
return React.useContext(FieldsetContext);
|
|
7382
7614
|
};
|
|
7383
7615
|
|
|
7384
|
-
var _excluded$
|
|
7616
|
+
var _excluded$G = ["className", "title", "subtitle", "children", "value", "label"];
|
|
7385
7617
|
var FieldsetComponent = function FieldsetComponent(_ref) {
|
|
7386
7618
|
var _ref$className = _ref.className,
|
|
7387
7619
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
@@ -7394,7 +7626,7 @@ var FieldsetComponent = function FieldsetComponent(_ref) {
|
|
|
7394
7626
|
value = _ref$value === void 0 ? '' : _ref$value,
|
|
7395
7627
|
_ref$label = _ref.label,
|
|
7396
7628
|
label = _ref$label === void 0 ? '' : _ref$label,
|
|
7397
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7629
|
+
props = _objectWithoutProperties(_ref, _excluded$G);
|
|
7398
7630
|
var theme$1 = theme.useTheme();
|
|
7399
7631
|
var _useScale = useScale(),
|
|
7400
7632
|
SCALES = _useScale.SCALES;
|
|
@@ -7458,14 +7690,14 @@ var FieldsetComponent = function FieldsetComponent(_ref) {
|
|
|
7458
7690
|
FieldsetComponent.displayName = 'Fieldset';
|
|
7459
7691
|
var Fieldset = withScale(FieldsetComponent);
|
|
7460
7692
|
|
|
7461
|
-
var _excluded$
|
|
7693
|
+
var _excluded$F = ["className", "children", "value", "onChange"];
|
|
7462
7694
|
var FieldsetGroupComponent = function FieldsetGroupComponent(_ref) {
|
|
7463
7695
|
var _ref$className = _ref.className,
|
|
7464
7696
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
7465
7697
|
children = _ref.children,
|
|
7466
7698
|
value = _ref.value,
|
|
7467
7699
|
onChange = _ref.onChange,
|
|
7468
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7700
|
+
props = _objectWithoutProperties(_ref, _excluded$F);
|
|
7469
7701
|
var theme$1 = theme.useTheme();
|
|
7470
7702
|
var _useScale = useScale(),
|
|
7471
7703
|
SCALES = _useScale.SCALES;
|
|
@@ -12174,7 +12406,7 @@ function setNestedObjectValues(object, value) {
|
|
|
12174
12406
|
|
|
12175
12407
|
var __DEV__ = true;
|
|
12176
12408
|
|
|
12177
|
-
var _excluded$
|
|
12409
|
+
var _excluded$E = ["validateOnChange", "validateOnBlur", "validateOnMount", "isInitialValid", "enableReinitialize", "onSubmit"];
|
|
12178
12410
|
// State reducer
|
|
12179
12411
|
function formikReducer(state, msg) {
|
|
12180
12412
|
switch (msg.type) {
|
|
@@ -12258,7 +12490,7 @@ function useFormik(_ref) {
|
|
|
12258
12490
|
_ref$enableReinitiali = _ref.enableReinitialize,
|
|
12259
12491
|
enableReinitialize = _ref$enableReinitiali === void 0 ? false : _ref$enableReinitiali,
|
|
12260
12492
|
onSubmit = _ref.onSubmit,
|
|
12261
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
12493
|
+
rest = _objectWithoutProperties(_ref, _excluded$E);
|
|
12262
12494
|
var props = _objectSpread2({
|
|
12263
12495
|
validateOnChange: validateOnChange,
|
|
12264
12496
|
validateOnBlur: validateOnBlur,
|
|
@@ -13131,7 +13363,7 @@ function useEventCallback(fn) {
|
|
|
13131
13363
|
}, []);
|
|
13132
13364
|
}
|
|
13133
13365
|
|
|
13134
|
-
var _excluded$
|
|
13366
|
+
var _excluded$D = ["mapPropsToValues"],
|
|
13135
13367
|
_excluded2 = ["children"];
|
|
13136
13368
|
/**
|
|
13137
13369
|
* A public higher-order component to access the imperative API
|
|
@@ -13148,7 +13380,7 @@ function withFormik(_ref) {
|
|
|
13148
13380
|
}
|
|
13149
13381
|
return val;
|
|
13150
13382
|
} : _ref$mapPropsToValues,
|
|
13151
|
-
config = _objectWithoutProperties(_ref, _excluded$
|
|
13383
|
+
config = _objectWithoutProperties(_ref, _excluded$D);
|
|
13152
13384
|
return function createFormik(Component) {
|
|
13153
13385
|
var componentDisplayName = Component.displayName || Component.name || Component.constructor && Component.constructor.name || 'Component';
|
|
13154
13386
|
/**
|
|
@@ -13208,7 +13440,7 @@ function withFormik(_ref) {
|
|
|
13208
13440
|
};
|
|
13209
13441
|
}
|
|
13210
13442
|
|
|
13211
|
-
var _excluded$
|
|
13443
|
+
var _excluded$C = ["component", "formik", "render", "children", "name"];
|
|
13212
13444
|
var ErrorMessageImpl = /*#__PURE__*/function (_React$Component) {
|
|
13213
13445
|
function ErrorMessageImpl() {
|
|
13214
13446
|
_classCallCheck(this, ErrorMessageImpl);
|
|
@@ -13233,7 +13465,7 @@ var ErrorMessageImpl = /*#__PURE__*/function (_React$Component) {
|
|
|
13233
13465
|
render = _this$props.render,
|
|
13234
13466
|
children = _this$props.children,
|
|
13235
13467
|
name = _this$props.name,
|
|
13236
|
-
rest = _objectWithoutProperties(_this$props, _excluded$
|
|
13468
|
+
rest = _objectWithoutProperties(_this$props, _excluded$C);
|
|
13237
13469
|
var touch = getIn(formik.touched, name);
|
|
13238
13470
|
var error = getIn(formik.errors, name);
|
|
13239
13471
|
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 +13474,6 @@ var ErrorMessageImpl = /*#__PURE__*/function (_React$Component) {
|
|
|
13242
13474
|
}(React__namespace.Component);
|
|
13243
13475
|
var ErrorMessage = connect(ErrorMessageImpl);
|
|
13244
13476
|
|
|
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
13477
|
var Expandable = function Expandable(_ref) {
|
|
13392
13478
|
var children = _ref.children,
|
|
13393
13479
|
_ref$collapsedHeight = _ref.collapsedHeight,
|
|
@@ -13418,6 +13504,7 @@ var Expandable = function Expandable(_ref) {
|
|
|
13418
13504
|
|
|
13419
13505
|
// Measure content height and detect overflow
|
|
13420
13506
|
React.useEffect(function () {
|
|
13507
|
+
var _contentRef$current$q, _contentRef$current;
|
|
13421
13508
|
var el = contentRef.current;
|
|
13422
13509
|
if (!el) return;
|
|
13423
13510
|
var updateHeight = function updateHeight() {
|
|
@@ -13431,6 +13518,12 @@ var Expandable = function Expandable(_ref) {
|
|
|
13431
13518
|
setFadeColor(parentBg || "#fff");
|
|
13432
13519
|
};
|
|
13433
13520
|
updateHeight();
|
|
13521
|
+
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 : [];
|
|
13522
|
+
if (images) {
|
|
13523
|
+
images.forEach(function (img) {
|
|
13524
|
+
return img.addEventListener("load", updateHeight);
|
|
13525
|
+
});
|
|
13526
|
+
}
|
|
13434
13527
|
var observer = new ResizeObserver(updateHeight);
|
|
13435
13528
|
observer.observe(el);
|
|
13436
13529
|
return function () {
|