@helpdice/ui 2.6.0-beta.9 → 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 +662 -8
- package/dist/expandable/index.js +1503 -10
- package/dist/index.js +322 -230
- 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 +8 -1
- 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
|
@@ -6,7 +6,6 @@ var jsxRuntime = require('react/jsx-runtime');
|
|
|
6
6
|
var icons = require('@helpdice/icons');
|
|
7
7
|
var framerMotion = require('framer-motion');
|
|
8
8
|
var reactDom = require('react-dom');
|
|
9
|
-
var Button$1 = require('components/button');
|
|
10
9
|
var reactDom$1 = require('@floating-ui/react-dom');
|
|
11
10
|
var pro = require('@helpdice/pro');
|
|
12
11
|
var reactSyntaxHighlighter = require('react-syntax-highlighter');
|
|
@@ -3885,11 +3884,243 @@ var InputCurrency = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
3885
3884
|
|
|
3886
3885
|
var CurrencyInput = withScale(InputCurrency);
|
|
3887
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
|
+
|
|
3888
4118
|
/* "use client" */
|
|
3889
4119
|
Input.Textarea = Textarea;
|
|
3890
4120
|
Input.Password = InputPassword;
|
|
3891
4121
|
Input.Phone = PhoneInput$1;
|
|
3892
4122
|
Input.Currency = CurrencyInput;
|
|
4123
|
+
Input.CurrencyRange = CurrencyRangeInput;
|
|
3893
4124
|
|
|
3894
4125
|
/* "use client" */
|
|
3895
4126
|
|
|
@@ -4009,7 +4240,7 @@ var AutoCompleteEmpty = function AutoCompleteEmpty(_ref) {
|
|
|
4009
4240
|
};
|
|
4010
4241
|
AutoCompleteEmpty.displayName = 'AutoCompleteEmpty';
|
|
4011
4242
|
|
|
4012
|
-
var _excluded$
|
|
4243
|
+
var _excluded$1e = ["children", "type", "color", "className", "spaceRatio"];
|
|
4013
4244
|
var getIconBgColor = function getIconBgColor(type, palette, color) {
|
|
4014
4245
|
var colors = {
|
|
4015
4246
|
"default": palette.accents_6,
|
|
@@ -4029,7 +4260,7 @@ var LoadingComponent = function LoadingComponent(_ref) {
|
|
|
4029
4260
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
4030
4261
|
_ref$spaceRatio = _ref.spaceRatio,
|
|
4031
4262
|
spaceRatio = _ref$spaceRatio === void 0 ? 1 : _ref$spaceRatio,
|
|
4032
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4263
|
+
props = _objectWithoutProperties(_ref, _excluded$1e);
|
|
4033
4264
|
var theme$1 = theme.useTheme();
|
|
4034
4265
|
var _useScale = useScale(),
|
|
4035
4266
|
SCALES = _useScale.SCALES;
|
|
@@ -4061,7 +4292,7 @@ var LoadingComponent = function LoadingComponent(_ref) {
|
|
|
4061
4292
|
LoadingComponent.displayName = 'Loading';
|
|
4062
4293
|
var Loading = withScale(LoadingComponent);
|
|
4063
4294
|
|
|
4064
|
-
var _excluded$
|
|
4295
|
+
var _excluded$1d = ["options", "initialValue", "onSelect", "onSearch", "onChange", "searching", "children", "type", "color", "value", "clearable", "disabled", "dropdownClassName", "dropdownStyle", "disableMatchWidth", "disableFreeSolo", "getPopupContainer"];
|
|
4065
4296
|
var childrenToOptionsNode = function childrenToOptionsNode(options) {
|
|
4066
4297
|
return options.map(function (item, index) {
|
|
4067
4298
|
var key = "auto-complete-item-".concat(index);
|
|
@@ -4110,7 +4341,7 @@ var AutoCompleteComponent = /*#__PURE__*/React.forwardRef(function (_ref, userRe
|
|
|
4110
4341
|
_ref$disableFreeSolo = _ref.disableFreeSolo,
|
|
4111
4342
|
disableFreeSolo = _ref$disableFreeSolo === void 0 ? false : _ref$disableFreeSolo,
|
|
4112
4343
|
getPopupContainer = _ref.getPopupContainer,
|
|
4113
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4344
|
+
props = _objectWithoutProperties(_ref, _excluded$1d);
|
|
4114
4345
|
var resetTimer = React.useRef(0); // DEFAULT Value 0
|
|
4115
4346
|
var _useScale = useScale(),
|
|
4116
4347
|
SCALES = _useScale.SCALES,
|
|
@@ -4263,7 +4494,7 @@ AutoComplete.Option = AutoCompleteItemComponent;
|
|
|
4263
4494
|
AutoComplete.Searching = AutoCompleteSearch;
|
|
4264
4495
|
AutoComplete.Empty = AutoCompleteEmpty;
|
|
4265
4496
|
|
|
4266
|
-
var _excluded$
|
|
4497
|
+
var _excluded$1c = ["src", "errorSrc", "stacked", "text", "isSquare", "className", "children"];
|
|
4267
4498
|
var safeText = function safeText(text) {
|
|
4268
4499
|
if (text.length <= 4) return text;
|
|
4269
4500
|
return text.slice(0, 3);
|
|
@@ -4282,7 +4513,7 @@ var AvatarComponent = function AvatarComponent(_ref) {
|
|
|
4282
4513
|
_ref$className = _ref.className,
|
|
4283
4514
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
4284
4515
|
children = _ref.children,
|
|
4285
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4516
|
+
props = _objectWithoutProperties(_ref, _excluded$1c);
|
|
4286
4517
|
var theme$1 = theme.useTheme();
|
|
4287
4518
|
var fallbackSrc = theme$1.type === 'dark' ? errorImgDark : errorImgLight;
|
|
4288
4519
|
var _useScale = useScale(),
|
|
@@ -4343,7 +4574,7 @@ var AvatarGroup = withScale(AvatarGroupComponent);
|
|
|
4343
4574
|
|
|
4344
4575
|
Avatar.Group = AvatarGroup;
|
|
4345
4576
|
|
|
4346
|
-
var _excluded$
|
|
4577
|
+
var _excluded$1b = ["color", "className", "children", "dot"];
|
|
4347
4578
|
var getBgColor = function getBgColor(type, palette) {
|
|
4348
4579
|
var colors = {
|
|
4349
4580
|
"default": palette.foreground,
|
|
@@ -4362,7 +4593,7 @@ var BadgeComponent = function BadgeComponent(_ref) {
|
|
|
4362
4593
|
children = _ref.children,
|
|
4363
4594
|
_ref$dot = _ref.dot,
|
|
4364
4595
|
dot = _ref$dot === void 0 ? false : _ref$dot,
|
|
4365
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4596
|
+
props = _objectWithoutProperties(_ref, _excluded$1b);
|
|
4366
4597
|
var theme$1 = theme.useTheme();
|
|
4367
4598
|
var _useScale = useScale(),
|
|
4368
4599
|
SCALES = _useScale.SCALES;
|
|
@@ -4576,7 +4807,7 @@ var LinkIconComponent = function LinkIconComponent() {
|
|
|
4576
4807
|
LinkIconComponent.displayName = 'LinkIcon';
|
|
4577
4808
|
var LinkIcon = /*#__PURE__*/React.memo(LinkIconComponent);
|
|
4578
4809
|
|
|
4579
|
-
var _excluded$
|
|
4810
|
+
var _excluded$1a = ["href", "showColor", "underline", "children", "className", "block", "arrow", "icon"];
|
|
4580
4811
|
var LinkComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
4581
4812
|
var _ref$href = _ref.href,
|
|
4582
4813
|
href = _ref$href === void 0 ? '' : _ref$href,
|
|
@@ -4592,7 +4823,7 @@ var LinkComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
4592
4823
|
_ref$arrow = _ref.arrow,
|
|
4593
4824
|
arrow = _ref$arrow === void 0 ? false : _ref$arrow,
|
|
4594
4825
|
icon = _ref.icon,
|
|
4595
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4826
|
+
props = _objectWithoutProperties(_ref, _excluded$1a);
|
|
4596
4827
|
var theme$1 = theme.useTheme();
|
|
4597
4828
|
var _useScale = useScale(),
|
|
4598
4829
|
SCALES = _useScale.SCALES;
|
|
@@ -4620,7 +4851,7 @@ var LinkComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
4620
4851
|
LinkComponent.displayName = 'Link';
|
|
4621
4852
|
var Link = withScale(LinkComponent);
|
|
4622
4853
|
|
|
4623
|
-
var _excluded$
|
|
4854
|
+
var _excluded$19 = ["href", "nextLink", "onClick", "children", "className"];
|
|
4624
4855
|
var BreadcrumbsItem = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
4625
4856
|
var href = _ref.href,
|
|
4626
4857
|
_ref$nextLink = _ref.nextLink,
|
|
@@ -4629,7 +4860,7 @@ var BreadcrumbsItem = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
4629
4860
|
children = _ref.children,
|
|
4630
4861
|
_ref$className = _ref.className,
|
|
4631
4862
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
4632
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4863
|
+
props = _objectWithoutProperties(_ref, _excluded$19);
|
|
4633
4864
|
var isLink = React.useMemo(function () {
|
|
4634
4865
|
return href !== undefined || nextLink;
|
|
4635
4866
|
}, [href, nextLink]);
|
|
@@ -4736,7 +4967,7 @@ var ButtonLoading = function ButtonLoading(_ref) {
|
|
|
4736
4967
|
};
|
|
4737
4968
|
ButtonLoading.displayName = 'ButtonLoading';
|
|
4738
4969
|
|
|
4739
|
-
var _excluded$
|
|
4970
|
+
var _excluded$18 = ["isRight", "isSingle", "children", "className"];
|
|
4740
4971
|
var ButtonIcon = function ButtonIcon(_ref) {
|
|
4741
4972
|
var _ref$isRight = _ref.isRight,
|
|
4742
4973
|
isRight = _ref$isRight === void 0 ? false : _ref$isRight,
|
|
@@ -4744,7 +4975,7 @@ var ButtonIcon = function ButtonIcon(_ref) {
|
|
|
4744
4975
|
children = _ref.children,
|
|
4745
4976
|
_ref$className = _ref.className,
|
|
4746
4977
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
4747
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4978
|
+
props = _objectWithoutProperties(_ref, _excluded$18);
|
|
4748
4979
|
var classes = theme.useClasses('icon', {
|
|
4749
4980
|
right: isRight,
|
|
4750
4981
|
single: isSingle
|
|
@@ -5011,7 +5242,7 @@ var getButtonDripColor = function getButtonDripColor(palette, props) {
|
|
|
5011
5242
|
return isLightHover ? addColorAlpha(hoverColors.bg, 0.65) : addColorAlpha(palette.accents_2, 0.65);
|
|
5012
5243
|
};
|
|
5013
5244
|
|
|
5014
|
-
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"];
|
|
5015
5246
|
var ButtonComponent = /*#__PURE__*/React.forwardRef(function (btnProps, ref) {
|
|
5016
5247
|
var theme$1 = theme.useTheme();
|
|
5017
5248
|
// const navigate = useNavigate();
|
|
@@ -5065,7 +5296,7 @@ var ButtonComponent = /*#__PURE__*/React.forwardRef(function (btnProps, ref) {
|
|
|
5065
5296
|
_filteredProps$classN = filteredProps.className,
|
|
5066
5297
|
className = _filteredProps$classN === void 0 ? '' : _filteredProps$classN;
|
|
5067
5298
|
filteredProps.crossOrigin;
|
|
5068
|
-
var props = _objectWithoutProperties(filteredProps, _excluded$
|
|
5299
|
+
var props = _objectWithoutProperties(filteredProps, _excluded$17);
|
|
5069
5300
|
/* eslint-enable @typescript-eslint/no-unused-vars */
|
|
5070
5301
|
|
|
5071
5302
|
var _useMemo = React.useMemo(function () {
|
|
@@ -5328,7 +5559,7 @@ var useButtonDropdown = function useButtonDropdown() {
|
|
|
5328
5559
|
return React.useContext(ButtonDropdownContext);
|
|
5329
5560
|
};
|
|
5330
5561
|
|
|
5331
|
-
var _excluded$
|
|
5562
|
+
var _excluded$16 = ["children", "onClick", "className", "main", "icon", "type"];
|
|
5332
5563
|
var ButtonDropdownItem = function ButtonDropdownItem(_ref) {
|
|
5333
5564
|
var children = _ref.children,
|
|
5334
5565
|
_ref$onClick = _ref.onClick,
|
|
@@ -5339,7 +5570,7 @@ var ButtonDropdownItem = function ButtonDropdownItem(_ref) {
|
|
|
5339
5570
|
main = _ref$main === void 0 ? false : _ref$main,
|
|
5340
5571
|
icon = _ref.icon,
|
|
5341
5572
|
selfType = _ref.type,
|
|
5342
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5573
|
+
props = _objectWithoutProperties(_ref, _excluded$16);
|
|
5343
5574
|
var theme$1 = theme.useTheme();
|
|
5344
5575
|
var _useScale = useScale(),
|
|
5345
5576
|
SCALES = _useScale.SCALES;
|
|
@@ -5381,7 +5612,7 @@ var ButtonDropdownItem = function ButtonDropdownItem(_ref) {
|
|
|
5381
5612
|
};
|
|
5382
5613
|
ButtonDropdownItem.displayName = 'ButtonDropdownItem';
|
|
5383
5614
|
|
|
5384
|
-
var _excluded$
|
|
5615
|
+
var _excluded$15 = ["children", "type", "auto", "className", "disabled", "loading", "icon"];
|
|
5385
5616
|
var stopPropagation$1 = function stopPropagation(event) {
|
|
5386
5617
|
event.stopPropagation();
|
|
5387
5618
|
event.nativeEvent.stopImmediatePropagation();
|
|
@@ -5399,7 +5630,7 @@ var ButtonDropdownComponent = function ButtonDropdownComponent(_ref) {
|
|
|
5399
5630
|
_ref$loading = _ref.loading,
|
|
5400
5631
|
loading = _ref$loading === void 0 ? false : _ref$loading,
|
|
5401
5632
|
icon = _ref.icon,
|
|
5402
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5633
|
+
props = _objectWithoutProperties(_ref, _excluded$15);
|
|
5403
5634
|
var _useScale = useScale(),
|
|
5404
5635
|
SCALES = _useScale.SCALES;
|
|
5405
5636
|
var ref = React.useRef(null);
|
|
@@ -5481,7 +5712,7 @@ var ButtonDropdown = withScale(ButtonDropdownComponent);
|
|
|
5481
5712
|
/* "use client" */
|
|
5482
5713
|
ButtonDropdown.Item = ButtonDropdownItem;
|
|
5483
5714
|
|
|
5484
|
-
var _excluded$
|
|
5715
|
+
var _excluded$14 = ["disabled", "type", "ghost", "vertical", "children", "className"];
|
|
5485
5716
|
var getGroupBorderColors = function getGroupBorderColors(palette, props) {
|
|
5486
5717
|
var _props$ghost = props.ghost,
|
|
5487
5718
|
ghost = _props$ghost === void 0 ? false : _props$ghost,
|
|
@@ -5508,7 +5739,7 @@ var ButtonGroupComponent = function ButtonGroupComponent(groupProps) {
|
|
|
5508
5739
|
vertical = groupProps.vertical,
|
|
5509
5740
|
children = groupProps.children,
|
|
5510
5741
|
className = groupProps.className,
|
|
5511
|
-
props = _objectWithoutProperties(groupProps, _excluded$
|
|
5742
|
+
props = _objectWithoutProperties(groupProps, _excluded$14);
|
|
5512
5743
|
var initialValue = React.useMemo(function () {
|
|
5513
5744
|
return {
|
|
5514
5745
|
disabled: disabled,
|
|
@@ -5568,7 +5799,7 @@ var useProportions = function useProportions(value, max) {
|
|
|
5568
5799
|
}, [value, max, maxFixed]);
|
|
5569
5800
|
};
|
|
5570
5801
|
|
|
5571
|
-
var _excluded$
|
|
5802
|
+
var _excluded$13 = ["value", "limit", "color", "className"];
|
|
5572
5803
|
var getColor$3 = function getColor(val, palette) {
|
|
5573
5804
|
if (val < 33) return palette.cyan;
|
|
5574
5805
|
if (val < 66) return palette.warning;
|
|
@@ -5582,7 +5813,7 @@ var CapacityComponent = function CapacityComponent(_ref) {
|
|
|
5582
5813
|
userColor = _ref.color,
|
|
5583
5814
|
_ref$className = _ref.className,
|
|
5584
5815
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
5585
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5816
|
+
props = _objectWithoutProperties(_ref, _excluded$13);
|
|
5586
5817
|
var theme$1 = theme.useTheme();
|
|
5587
5818
|
var _useScale = useScale(),
|
|
5588
5819
|
SCALES = _useScale.SCALES;
|
|
@@ -5661,14 +5892,14 @@ var getStyles$1 = function getStyles(type, palette, isShadow) {
|
|
|
5661
5892
|
});
|
|
5662
5893
|
};
|
|
5663
5894
|
|
|
5664
|
-
var _excluded$
|
|
5895
|
+
var _excluded$12 = ["children", "className", "disableAutoMargin"];
|
|
5665
5896
|
var CardFooterComponent = function CardFooterComponent(_ref) {
|
|
5666
5897
|
var children = _ref.children,
|
|
5667
5898
|
_ref$className = _ref.className,
|
|
5668
5899
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
5669
5900
|
_ref$disableAutoMargi = _ref.disableAutoMargin,
|
|
5670
5901
|
disableAutoMargin = _ref$disableAutoMargi === void 0 ? false : _ref$disableAutoMargi,
|
|
5671
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5902
|
+
props = _objectWithoutProperties(_ref, _excluded$12);
|
|
5672
5903
|
var theme$1 = theme.useTheme();
|
|
5673
5904
|
var _useScale = useScale(),
|
|
5674
5905
|
SCALES = _useScale.SCALES;
|
|
@@ -5687,12 +5918,12 @@ var CardFooterComponent = function CardFooterComponent(_ref) {
|
|
|
5687
5918
|
CardFooterComponent.displayName = 'CardFooter';
|
|
5688
5919
|
var CardFooter = withScale(CardFooterComponent);
|
|
5689
5920
|
|
|
5690
|
-
var _excluded$
|
|
5921
|
+
var _excluded$11 = ["className", "children"];
|
|
5691
5922
|
var CardContentComponent = function CardContentComponent(_ref) {
|
|
5692
5923
|
var _ref$className = _ref.className,
|
|
5693
5924
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
5694
5925
|
children = _ref.children,
|
|
5695
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5926
|
+
props = _objectWithoutProperties(_ref, _excluded$11);
|
|
5696
5927
|
var _useScale = useScale(),
|
|
5697
5928
|
SCALES = _useScale.SCALES;
|
|
5698
5929
|
return /*#__PURE__*/jsxRuntime.jsxs("div", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
@@ -5707,11 +5938,11 @@ var CardContentComponent = function CardContentComponent(_ref) {
|
|
|
5707
5938
|
CardContentComponent.displayName = 'CardContent';
|
|
5708
5939
|
var CardContent = withScale(CardContentComponent);
|
|
5709
5940
|
|
|
5710
|
-
var _excluded$
|
|
5941
|
+
var _excluded$10 = ["opacity"];
|
|
5711
5942
|
var ImageSkeleton = /*#__PURE__*/React.memo(function (_ref) {
|
|
5712
5943
|
var _ref$opacity = _ref.opacity,
|
|
5713
5944
|
opacity = _ref$opacity === void 0 ? 0.5 : _ref$opacity,
|
|
5714
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5945
|
+
props = _objectWithoutProperties(_ref, _excluded$10);
|
|
5715
5946
|
var theme$1 = theme.useTheme();
|
|
5716
5947
|
return /*#__PURE__*/jsxRuntime.jsx("div", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
5717
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"),
|
|
@@ -5739,7 +5970,7 @@ var getHostFromUrl = function getHostFromUrl(url) {
|
|
|
5739
5970
|
}
|
|
5740
5971
|
};
|
|
5741
5972
|
|
|
5742
|
-
var _excluded
|
|
5973
|
+
var _excluded$$ = ["src", "disableSkeleton", "className", "maxDelay"];
|
|
5743
5974
|
var ImageComponent = function ImageComponent(_ref) {
|
|
5744
5975
|
var src = _ref.src,
|
|
5745
5976
|
_ref$disableSkeleton = _ref.disableSkeleton,
|
|
@@ -5748,7 +5979,7 @@ var ImageComponent = function ImageComponent(_ref) {
|
|
|
5748
5979
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
5749
5980
|
_ref$maxDelay = _ref.maxDelay,
|
|
5750
5981
|
maxDelay = _ref$maxDelay === void 0 ? 3000 : _ref$maxDelay,
|
|
5751
|
-
props = _objectWithoutProperties(_ref, _excluded
|
|
5982
|
+
props = _objectWithoutProperties(_ref, _excluded$$);
|
|
5752
5983
|
var _useScale = useScale(),
|
|
5753
5984
|
SCALES = _useScale.SCALES,
|
|
5754
5985
|
getScaleProps = _useScale.getScaleProps;
|
|
@@ -5848,7 +6079,7 @@ var getBrowserColors = function getBrowserColors(invert, palette) {
|
|
|
5848
6079
|
};
|
|
5849
6080
|
};
|
|
5850
6081
|
|
|
5851
|
-
var _excluded$
|
|
6082
|
+
var _excluded$_ = ["url", "title", "children", "showFullLink", "invert", "anchorProps", "className"];
|
|
5852
6083
|
var getTitle = function getTitle(title, colors) {
|
|
5853
6084
|
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
5854
6085
|
className: _JSXStyle.dynamic([["524099755", [colors.titleColor]]]) + " " + "title",
|
|
@@ -5890,7 +6121,7 @@ var ImageBrowserComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
5890
6121
|
anchorProps = _ref$anchorProps === void 0 ? {} : _ref$anchorProps,
|
|
5891
6122
|
_ref$className = _ref.className,
|
|
5892
6123
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
5893
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6124
|
+
props = _objectWithoutProperties(_ref, _excluded$_);
|
|
5894
6125
|
var theme$1 = theme.useTheme();
|
|
5895
6126
|
var _useScale = useScale(),
|
|
5896
6127
|
SCALES = _useScale.SCALES;
|
|
@@ -5930,7 +6161,7 @@ var ImageBrowser = withScale(ImageBrowserComponent);
|
|
|
5930
6161
|
|
|
5931
6162
|
Image.Browser = ImageBrowser;
|
|
5932
6163
|
|
|
5933
|
-
var _excluded$
|
|
6164
|
+
var _excluded$Z = ["children", "hoverable", "className", "shadow", "type"];
|
|
5934
6165
|
var CardComponent = function CardComponent(_ref) {
|
|
5935
6166
|
var children = _ref.children,
|
|
5936
6167
|
_ref$hoverable = _ref.hoverable,
|
|
@@ -5941,7 +6172,7 @@ var CardComponent = function CardComponent(_ref) {
|
|
|
5941
6172
|
shadow = _ref$shadow === void 0 ? false : _ref$shadow,
|
|
5942
6173
|
_ref$type = _ref.type,
|
|
5943
6174
|
type = _ref$type === void 0 ? 'default' : _ref$type,
|
|
5944
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6175
|
+
props = _objectWithoutProperties(_ref, _excluded$Z);
|
|
5945
6176
|
var theme$1 = theme.useTheme();
|
|
5946
6177
|
var _useScale = useScale(),
|
|
5947
6178
|
SCALES = _useScale.SCALES;
|
|
@@ -6085,7 +6316,7 @@ var getColors$6 = function getColors(palette, status) {
|
|
|
6085
6316
|
return colors[status];
|
|
6086
6317
|
};
|
|
6087
6318
|
|
|
6088
|
-
var _excluded
|
|
6319
|
+
var _excluded$Y = ["checked", "initialChecked", "disabled", "onChange", "className", "children", "type", "value", "block"];
|
|
6089
6320
|
var CheckboxComponent = function CheckboxComponent(_ref) {
|
|
6090
6321
|
var checked = _ref.checked,
|
|
6091
6322
|
_ref$initialChecked = _ref.initialChecked,
|
|
@@ -6102,7 +6333,7 @@ var CheckboxComponent = function CheckboxComponent(_ref) {
|
|
|
6102
6333
|
value = _ref$value === void 0 ? '' : _ref$value,
|
|
6103
6334
|
_ref$block = _ref.block,
|
|
6104
6335
|
block = _ref$block === void 0 ? false : _ref$block,
|
|
6105
|
-
props = _objectWithoutProperties(_ref, _excluded
|
|
6336
|
+
props = _objectWithoutProperties(_ref, _excluded$Y);
|
|
6106
6337
|
var theme$1 = theme.useTheme();
|
|
6107
6338
|
var _useScale = useScale(),
|
|
6108
6339
|
SCALES = _useScale.SCALES;
|
|
@@ -6185,7 +6416,7 @@ var CheckboxComponent = function CheckboxComponent(_ref) {
|
|
|
6185
6416
|
CheckboxComponent.displayName = 'Checkbox';
|
|
6186
6417
|
var Checkbox = withScale(CheckboxComponent);
|
|
6187
6418
|
|
|
6188
|
-
var _excluded$
|
|
6419
|
+
var _excluded$X = ["disabled", "onChange", "value", "children", "className"];
|
|
6189
6420
|
var CheckboxGroupComponent = function CheckboxGroupComponent(_ref) {
|
|
6190
6421
|
var _ref$disabled = _ref.disabled,
|
|
6191
6422
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
@@ -6194,7 +6425,7 @@ var CheckboxGroupComponent = function CheckboxGroupComponent(_ref) {
|
|
|
6194
6425
|
children = _ref.children,
|
|
6195
6426
|
_ref$className = _ref.className,
|
|
6196
6427
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
6197
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6428
|
+
props = _objectWithoutProperties(_ref, _excluded$X);
|
|
6198
6429
|
var _useScale = useScale(),
|
|
6199
6430
|
SCALES = _useScale.SCALES;
|
|
6200
6431
|
var _useState = React.useState([]),
|
|
@@ -6244,7 +6475,7 @@ var CheckboxGroup = withScale(CheckboxGroupComponent);
|
|
|
6244
6475
|
|
|
6245
6476
|
Checkbox.Group = CheckboxGroup;
|
|
6246
6477
|
|
|
6247
|
-
var _excluded$
|
|
6478
|
+
var _excluded$W = ["children", "block", "className", "name", "classic"];
|
|
6248
6479
|
var CodeComponent = function CodeComponent(_ref) {
|
|
6249
6480
|
var children = _ref.children,
|
|
6250
6481
|
_ref$block = _ref.block,
|
|
@@ -6255,7 +6486,7 @@ var CodeComponent = function CodeComponent(_ref) {
|
|
|
6255
6486
|
name = _ref$name === void 0 ? '' : _ref$name,
|
|
6256
6487
|
_ref$classic = _ref.classic,
|
|
6257
6488
|
classic = _ref$classic === void 0 ? false : _ref$classic,
|
|
6258
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6489
|
+
props = _objectWithoutProperties(_ref, _excluded$W);
|
|
6259
6490
|
var _useScale = useScale(),
|
|
6260
6491
|
SCALES = _useScale.SCALES;
|
|
6261
6492
|
var theme$1 = theme.useTheme();
|
|
@@ -6473,7 +6704,7 @@ var useCollapseContext = function useCollapseContext() {
|
|
|
6473
6704
|
return React.useContext(CollapseContext);
|
|
6474
6705
|
};
|
|
6475
6706
|
|
|
6476
|
-
var _excluded$
|
|
6707
|
+
var _excluded$V = ["children", "title", "subtitle", "initialVisible", "shadow", "className", "index"];
|
|
6477
6708
|
var CollapseComponent = function CollapseComponent(_ref) {
|
|
6478
6709
|
var children = _ref.children,
|
|
6479
6710
|
title = _ref.title,
|
|
@@ -6485,7 +6716,7 @@ var CollapseComponent = function CollapseComponent(_ref) {
|
|
|
6485
6716
|
_ref$className = _ref.className,
|
|
6486
6717
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
6487
6718
|
index = _ref.index,
|
|
6488
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6719
|
+
props = _objectWithoutProperties(_ref, _excluded$V);
|
|
6489
6720
|
var theme$1 = theme.useTheme();
|
|
6490
6721
|
var _useScale = useScale(),
|
|
6491
6722
|
SCALES = _useScale.SCALES;
|
|
@@ -6549,14 +6780,14 @@ var CollapseComponent = function CollapseComponent(_ref) {
|
|
|
6549
6780
|
CollapseComponent.displayName = 'Collapse';
|
|
6550
6781
|
var Collapse = withScale(CollapseComponent);
|
|
6551
6782
|
|
|
6552
|
-
var _excluded$
|
|
6783
|
+
var _excluded$U = ["children", "accordion", "className"];
|
|
6553
6784
|
var CollapseGroupComponent = function CollapseGroupComponent(_ref) {
|
|
6554
6785
|
var children = _ref.children,
|
|
6555
6786
|
_ref$accordion = _ref.accordion,
|
|
6556
6787
|
accordion = _ref$accordion === void 0 ? true : _ref$accordion,
|
|
6557
6788
|
_ref$className = _ref.className,
|
|
6558
6789
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
6559
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6790
|
+
props = _objectWithoutProperties(_ref, _excluded$U);
|
|
6560
6791
|
var _useScale = useScale(),
|
|
6561
6792
|
SCALES = _useScale.SCALES;
|
|
6562
6793
|
var _useCurrentState = theme.useCurrentState([]),
|
|
@@ -6612,7 +6843,7 @@ var CollapseGroup = withScale(CollapseGroupComponent);
|
|
|
6612
6843
|
|
|
6613
6844
|
Collapse.Group = CollapseGroup;
|
|
6614
6845
|
|
|
6615
|
-
var _excluded$
|
|
6846
|
+
var _excluded$T = ["title", "content", "className"];
|
|
6616
6847
|
var DescriptionComponent = function DescriptionComponent(_ref) {
|
|
6617
6848
|
var _ref$title = _ref.title,
|
|
6618
6849
|
title = _ref$title === void 0 ? 'Title' : _ref$title,
|
|
@@ -6620,7 +6851,7 @@ var DescriptionComponent = function DescriptionComponent(_ref) {
|
|
|
6620
6851
|
content = _ref$content === void 0 ? '' : _ref$content,
|
|
6621
6852
|
_ref$className = _ref.className,
|
|
6622
6853
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
6623
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6854
|
+
props = _objectWithoutProperties(_ref, _excluded$T);
|
|
6624
6855
|
var theme$1 = theme.useTheme();
|
|
6625
6856
|
var _useScale = useScale(),
|
|
6626
6857
|
SCALES = _useScale.SCALES;
|
|
@@ -6643,7 +6874,7 @@ var DescriptionComponent = function DescriptionComponent(_ref) {
|
|
|
6643
6874
|
DescriptionComponent.displayName = 'Description';
|
|
6644
6875
|
var Description = withScale(DescriptionComponent);
|
|
6645
6876
|
|
|
6646
|
-
var _excluded$
|
|
6877
|
+
var _excluded$S = ["children", "caption", "shadow", "className"];
|
|
6647
6878
|
var DisplayComponent = function DisplayComponent(_ref) {
|
|
6648
6879
|
var children = _ref.children,
|
|
6649
6880
|
_ref$caption = _ref.caption,
|
|
@@ -6652,7 +6883,7 @@ var DisplayComponent = function DisplayComponent(_ref) {
|
|
|
6652
6883
|
shadow = _ref$shadow === void 0 ? false : _ref$shadow,
|
|
6653
6884
|
_ref$className = _ref.className,
|
|
6654
6885
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
6655
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6886
|
+
props = _objectWithoutProperties(_ref, _excluded$S);
|
|
6656
6887
|
var theme$1 = theme.useTheme();
|
|
6657
6888
|
var _useScale = useScale(),
|
|
6658
6889
|
SCALES = _useScale.SCALES;
|
|
@@ -6678,7 +6909,7 @@ var DisplayComponent = function DisplayComponent(_ref) {
|
|
|
6678
6909
|
DisplayComponent.displayName = 'Display';
|
|
6679
6910
|
var Display = withScale(DisplayComponent);
|
|
6680
6911
|
|
|
6681
|
-
var _excluded$
|
|
6912
|
+
var _excluded$R = ["type", "align", "children", "className"];
|
|
6682
6913
|
var getColor$2 = function getColor(type, palette) {
|
|
6683
6914
|
var colors = {
|
|
6684
6915
|
"default": palette.border,
|
|
@@ -6699,7 +6930,7 @@ var DividerComponent = function DividerComponent(_ref) {
|
|
|
6699
6930
|
children = _ref.children,
|
|
6700
6931
|
_ref$className = _ref.className,
|
|
6701
6932
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
6702
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6933
|
+
props = _objectWithoutProperties(_ref, _excluded$R);
|
|
6703
6934
|
var theme$1 = theme.useTheme();
|
|
6704
6935
|
var _useScale = useScale(),
|
|
6705
6936
|
SCALES = _useScale.SCALES;
|
|
@@ -6731,7 +6962,7 @@ var DividerComponent = function DividerComponent(_ref) {
|
|
|
6731
6962
|
DividerComponent.displayName = 'Divider';
|
|
6732
6963
|
var Divider = withScale(DividerComponent);
|
|
6733
6964
|
|
|
6734
|
-
var _excluded$
|
|
6965
|
+
var _excluded$Q = ["type", "children", "className"];
|
|
6735
6966
|
var getColor$1 = function getColor(type, theme) {
|
|
6736
6967
|
var colors = {
|
|
6737
6968
|
"default": theme.palette.accents_2,
|
|
@@ -6747,7 +6978,7 @@ var DotComponent = function DotComponent(_ref) {
|
|
|
6747
6978
|
children = _ref.children,
|
|
6748
6979
|
_ref$className = _ref.className,
|
|
6749
6980
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
6750
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6981
|
+
props = _objectWithoutProperties(_ref, _excluded$Q);
|
|
6751
6982
|
var theme$1 = theme.useTheme();
|
|
6752
6983
|
var _useScale = useScale(),
|
|
6753
6984
|
SCALES = _useScale.SCALES;
|
|
@@ -7085,7 +7316,7 @@ var getDrawerTransform = function getDrawerTransform(placement) {
|
|
|
7085
7316
|
return translates[placement];
|
|
7086
7317
|
};
|
|
7087
7318
|
|
|
7088
|
-
var _excluded$
|
|
7319
|
+
var _excluded$P = ["className", "children", "visible", "placement"];
|
|
7089
7320
|
var DrawerWrapper = function DrawerWrapper(_ref) {
|
|
7090
7321
|
var _ref$className = _ref.className,
|
|
7091
7322
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
@@ -7093,7 +7324,7 @@ var DrawerWrapper = function DrawerWrapper(_ref) {
|
|
|
7093
7324
|
_ref$visible = _ref.visible,
|
|
7094
7325
|
visible = _ref$visible === void 0 ? false : _ref$visible,
|
|
7095
7326
|
placement = _ref.placement,
|
|
7096
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7327
|
+
props = _objectWithoutProperties(_ref, _excluded$P);
|
|
7097
7328
|
var theme$1 = theme.useTheme();
|
|
7098
7329
|
var _useScale = useScale(),
|
|
7099
7330
|
SCALES = _useScale.SCALES;
|
|
@@ -7156,7 +7387,7 @@ var DrawerWrapper = function DrawerWrapper(_ref) {
|
|
|
7156
7387
|
};
|
|
7157
7388
|
DrawerWrapper.displayName = 'DrawerWrapper';
|
|
7158
7389
|
|
|
7159
|
-
var _excluded$
|
|
7390
|
+
var _excluded$O = ["visible", "keyboard", "disableBackdropClick", "onClose", "onContentClick", "wrapClassName", "children", "placement"];
|
|
7160
7391
|
var DrawerComponent = function DrawerComponent(_ref) {
|
|
7161
7392
|
var customVisible = _ref.visible,
|
|
7162
7393
|
_ref$keyboard = _ref.keyboard,
|
|
@@ -7170,7 +7401,7 @@ var DrawerComponent = function DrawerComponent(_ref) {
|
|
|
7170
7401
|
children = _ref.children,
|
|
7171
7402
|
_ref$placement = _ref.placement,
|
|
7172
7403
|
placement = _ref$placement === void 0 ? 'right' : _ref$placement,
|
|
7173
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7404
|
+
props = _objectWithoutProperties(_ref, _excluded$O);
|
|
7174
7405
|
var portal = usePortal('drawer');
|
|
7175
7406
|
var _useState = React.useState(false),
|
|
7176
7407
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -7219,12 +7450,12 @@ var DrawerComponent = function DrawerComponent(_ref) {
|
|
|
7219
7450
|
};
|
|
7220
7451
|
DrawerComponent.displayName = 'Drawer';
|
|
7221
7452
|
|
|
7222
|
-
var _excluded$
|
|
7453
|
+
var _excluded$N = ["className", "children"];
|
|
7223
7454
|
var ModalTitleComponent = function ModalTitleComponent(_ref) {
|
|
7224
7455
|
var _ref$className = _ref.className,
|
|
7225
7456
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
7226
7457
|
children = _ref.children,
|
|
7227
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7458
|
+
props = _objectWithoutProperties(_ref, _excluded$N);
|
|
7228
7459
|
var theme$1 = theme.useTheme();
|
|
7229
7460
|
var _useScale = useScale(),
|
|
7230
7461
|
SCALES = _useScale.SCALES;
|
|
@@ -7242,12 +7473,12 @@ var ModalTitleComponent = function ModalTitleComponent(_ref) {
|
|
|
7242
7473
|
ModalTitleComponent.displayName = 'ModalTitle';
|
|
7243
7474
|
var ModalTitle = withScale(ModalTitleComponent);
|
|
7244
7475
|
|
|
7245
|
-
var _excluded$
|
|
7476
|
+
var _excluded$M = ["className", "children"];
|
|
7246
7477
|
var ModalSubtitleComponent = function ModalSubtitleComponent(_ref) {
|
|
7247
7478
|
var _ref$className = _ref.className,
|
|
7248
7479
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
7249
7480
|
children = _ref.children,
|
|
7250
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7481
|
+
props = _objectWithoutProperties(_ref, _excluded$M);
|
|
7251
7482
|
var theme$1 = theme.useTheme();
|
|
7252
7483
|
var _useScale = useScale(),
|
|
7253
7484
|
SCALES = _useScale.SCALES;
|
|
@@ -7265,12 +7496,12 @@ var ModalSubtitleComponent = function ModalSubtitleComponent(_ref) {
|
|
|
7265
7496
|
ModalSubtitleComponent.displayName = 'ModalSubtitle';
|
|
7266
7497
|
var ModalSubtitle = withScale(ModalSubtitleComponent);
|
|
7267
7498
|
|
|
7268
|
-
var _excluded$
|
|
7499
|
+
var _excluded$L = ["className", "children"];
|
|
7269
7500
|
var ModalContentComponent = function ModalContentComponent(_ref) {
|
|
7270
7501
|
var _ref$className = _ref.className,
|
|
7271
7502
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
7272
7503
|
children = _ref.children,
|
|
7273
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7504
|
+
props = _objectWithoutProperties(_ref, _excluded$L);
|
|
7274
7505
|
var _useScale = useScale(),
|
|
7275
7506
|
SCALES = _useScale.SCALES;
|
|
7276
7507
|
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
@@ -7292,12 +7523,12 @@ DrawerComponent.Title = ModalTitle;
|
|
|
7292
7523
|
DrawerComponent.Subtitle = ModalSubtitle;
|
|
7293
7524
|
DrawerComponent.Content = ModalContent;
|
|
7294
7525
|
|
|
7295
|
-
var _excluded$
|
|
7526
|
+
var _excluded$K = ["className", "children"];
|
|
7296
7527
|
var FieldsetTitle = function FieldsetTitle(_ref) {
|
|
7297
7528
|
var _ref$className = _ref.className,
|
|
7298
7529
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
7299
7530
|
children = _ref.children,
|
|
7300
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7531
|
+
props = _objectWithoutProperties(_ref, _excluded$K);
|
|
7301
7532
|
var classes = theme.useClasses('title', className);
|
|
7302
7533
|
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
7303
7534
|
children: [/*#__PURE__*/jsxRuntime.jsx("div", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
@@ -7311,12 +7542,12 @@ var FieldsetTitle = function FieldsetTitle(_ref) {
|
|
|
7311
7542
|
};
|
|
7312
7543
|
FieldsetTitle.displayName = 'FieldsetTitle';
|
|
7313
7544
|
|
|
7314
|
-
var _excluded$
|
|
7545
|
+
var _excluded$J = ["className", "children"];
|
|
7315
7546
|
var FieldsetSubtitle = function FieldsetSubtitle(_ref) {
|
|
7316
7547
|
var _ref$className = _ref.className,
|
|
7317
7548
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
7318
7549
|
children = _ref.children,
|
|
7319
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7550
|
+
props = _objectWithoutProperties(_ref, _excluded$J);
|
|
7320
7551
|
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
7321
7552
|
children: [/*#__PURE__*/jsxRuntime.jsx("div", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
7322
7553
|
className: "jsx-2265168013" + " " + (props && props.className != null && props.className || className || ""),
|
|
@@ -7329,12 +7560,12 @@ var FieldsetSubtitle = function FieldsetSubtitle(_ref) {
|
|
|
7329
7560
|
};
|
|
7330
7561
|
FieldsetSubtitle.displayName = 'FieldsetSubtitle';
|
|
7331
7562
|
|
|
7332
|
-
var _excluded$
|
|
7563
|
+
var _excluded$I = ["className", "children"];
|
|
7333
7564
|
var FieldsetFooterComponent = function FieldsetFooterComponent(_ref) {
|
|
7334
7565
|
var _ref$className = _ref.className,
|
|
7335
7566
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
7336
7567
|
children = _ref.children,
|
|
7337
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7568
|
+
props = _objectWithoutProperties(_ref, _excluded$I);
|
|
7338
7569
|
var theme$1 = theme.useTheme();
|
|
7339
7570
|
var _useScale = useScale(),
|
|
7340
7571
|
SCALES = _useScale.SCALES;
|
|
@@ -7350,12 +7581,12 @@ var FieldsetFooterComponent = function FieldsetFooterComponent(_ref) {
|
|
|
7350
7581
|
FieldsetFooterComponent.displayName = 'FieldsetFooter';
|
|
7351
7582
|
var FieldsetFooter = withScale(FieldsetFooterComponent);
|
|
7352
7583
|
|
|
7353
|
-
var _excluded$
|
|
7584
|
+
var _excluded$H = ["className", "children"];
|
|
7354
7585
|
var FieldsetContentComponent = function FieldsetContentComponent(_ref) {
|
|
7355
7586
|
var _ref$className = _ref.className,
|
|
7356
7587
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
7357
7588
|
children = _ref.children,
|
|
7358
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7589
|
+
props = _objectWithoutProperties(_ref, _excluded$H);
|
|
7359
7590
|
var _useScale = useScale(),
|
|
7360
7591
|
SCALES = _useScale.SCALES;
|
|
7361
7592
|
var classes = theme.useClasses('content', className);
|
|
@@ -7382,7 +7613,7 @@ var useFieldset = function useFieldset() {
|
|
|
7382
7613
|
return React.useContext(FieldsetContext);
|
|
7383
7614
|
};
|
|
7384
7615
|
|
|
7385
|
-
var _excluded$
|
|
7616
|
+
var _excluded$G = ["className", "title", "subtitle", "children", "value", "label"];
|
|
7386
7617
|
var FieldsetComponent = function FieldsetComponent(_ref) {
|
|
7387
7618
|
var _ref$className = _ref.className,
|
|
7388
7619
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
@@ -7395,7 +7626,7 @@ var FieldsetComponent = function FieldsetComponent(_ref) {
|
|
|
7395
7626
|
value = _ref$value === void 0 ? '' : _ref$value,
|
|
7396
7627
|
_ref$label = _ref.label,
|
|
7397
7628
|
label = _ref$label === void 0 ? '' : _ref$label,
|
|
7398
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7629
|
+
props = _objectWithoutProperties(_ref, _excluded$G);
|
|
7399
7630
|
var theme$1 = theme.useTheme();
|
|
7400
7631
|
var _useScale = useScale(),
|
|
7401
7632
|
SCALES = _useScale.SCALES;
|
|
@@ -7459,14 +7690,14 @@ var FieldsetComponent = function FieldsetComponent(_ref) {
|
|
|
7459
7690
|
FieldsetComponent.displayName = 'Fieldset';
|
|
7460
7691
|
var Fieldset = withScale(FieldsetComponent);
|
|
7461
7692
|
|
|
7462
|
-
var _excluded$
|
|
7693
|
+
var _excluded$F = ["className", "children", "value", "onChange"];
|
|
7463
7694
|
var FieldsetGroupComponent = function FieldsetGroupComponent(_ref) {
|
|
7464
7695
|
var _ref$className = _ref.className,
|
|
7465
7696
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
7466
7697
|
children = _ref.children,
|
|
7467
7698
|
value = _ref.value,
|
|
7468
7699
|
onChange = _ref.onChange,
|
|
7469
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7700
|
+
props = _objectWithoutProperties(_ref, _excluded$F);
|
|
7470
7701
|
var theme$1 = theme.useTheme();
|
|
7471
7702
|
var _useScale = useScale(),
|
|
7472
7703
|
SCALES = _useScale.SCALES;
|
|
@@ -12175,7 +12406,7 @@ function setNestedObjectValues(object, value) {
|
|
|
12175
12406
|
|
|
12176
12407
|
var __DEV__ = true;
|
|
12177
12408
|
|
|
12178
|
-
var _excluded$
|
|
12409
|
+
var _excluded$E = ["validateOnChange", "validateOnBlur", "validateOnMount", "isInitialValid", "enableReinitialize", "onSubmit"];
|
|
12179
12410
|
// State reducer
|
|
12180
12411
|
function formikReducer(state, msg) {
|
|
12181
12412
|
switch (msg.type) {
|
|
@@ -12259,7 +12490,7 @@ function useFormik(_ref) {
|
|
|
12259
12490
|
_ref$enableReinitiali = _ref.enableReinitialize,
|
|
12260
12491
|
enableReinitialize = _ref$enableReinitiali === void 0 ? false : _ref$enableReinitiali,
|
|
12261
12492
|
onSubmit = _ref.onSubmit,
|
|
12262
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
12493
|
+
rest = _objectWithoutProperties(_ref, _excluded$E);
|
|
12263
12494
|
var props = _objectSpread2({
|
|
12264
12495
|
validateOnChange: validateOnChange,
|
|
12265
12496
|
validateOnBlur: validateOnBlur,
|
|
@@ -13132,7 +13363,7 @@ function useEventCallback(fn) {
|
|
|
13132
13363
|
}, []);
|
|
13133
13364
|
}
|
|
13134
13365
|
|
|
13135
|
-
var _excluded$
|
|
13366
|
+
var _excluded$D = ["mapPropsToValues"],
|
|
13136
13367
|
_excluded2 = ["children"];
|
|
13137
13368
|
/**
|
|
13138
13369
|
* A public higher-order component to access the imperative API
|
|
@@ -13149,7 +13380,7 @@ function withFormik(_ref) {
|
|
|
13149
13380
|
}
|
|
13150
13381
|
return val;
|
|
13151
13382
|
} : _ref$mapPropsToValues,
|
|
13152
|
-
config = _objectWithoutProperties(_ref, _excluded$
|
|
13383
|
+
config = _objectWithoutProperties(_ref, _excluded$D);
|
|
13153
13384
|
return function createFormik(Component) {
|
|
13154
13385
|
var componentDisplayName = Component.displayName || Component.name || Component.constructor && Component.constructor.name || 'Component';
|
|
13155
13386
|
/**
|
|
@@ -13209,7 +13440,7 @@ function withFormik(_ref) {
|
|
|
13209
13440
|
};
|
|
13210
13441
|
}
|
|
13211
13442
|
|
|
13212
|
-
var _excluded$
|
|
13443
|
+
var _excluded$C = ["component", "formik", "render", "children", "name"];
|
|
13213
13444
|
var ErrorMessageImpl = /*#__PURE__*/function (_React$Component) {
|
|
13214
13445
|
function ErrorMessageImpl() {
|
|
13215
13446
|
_classCallCheck(this, ErrorMessageImpl);
|
|
@@ -13234,7 +13465,7 @@ var ErrorMessageImpl = /*#__PURE__*/function (_React$Component) {
|
|
|
13234
13465
|
render = _this$props.render,
|
|
13235
13466
|
children = _this$props.children,
|
|
13236
13467
|
name = _this$props.name,
|
|
13237
|
-
rest = _objectWithoutProperties(_this$props, _excluded$
|
|
13468
|
+
rest = _objectWithoutProperties(_this$props, _excluded$C);
|
|
13238
13469
|
var touch = getIn(formik.touched, name);
|
|
13239
13470
|
var error = getIn(formik.errors, name);
|
|
13240
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;
|
|
@@ -13243,152 +13474,6 @@ var ErrorMessageImpl = /*#__PURE__*/function (_React$Component) {
|
|
|
13243
13474
|
}(React__namespace.Component);
|
|
13244
13475
|
var ErrorMessage = connect(ErrorMessageImpl);
|
|
13245
13476
|
|
|
13246
|
-
var _excluded$E = ["xs", "sm", "md", "lg", "xl", "justify", "direction", "alignItems", "alignContent", "children", "className"];
|
|
13247
|
-
var getItemLayout = function getItemLayout(val) {
|
|
13248
|
-
var display = val === 0 ? 'display: none;' : 'display: inherit;';
|
|
13249
|
-
if (typeof val === 'number') {
|
|
13250
|
-
var width = 100 / 24 * val;
|
|
13251
|
-
var ratio = width > 100 ? '100%' : width < 0 ? '0' : "".concat(width, "%");
|
|
13252
|
-
return {
|
|
13253
|
-
grow: 0,
|
|
13254
|
-
display: display,
|
|
13255
|
-
width: ratio,
|
|
13256
|
-
basis: ratio
|
|
13257
|
-
};
|
|
13258
|
-
}
|
|
13259
|
-
return {
|
|
13260
|
-
grow: 1,
|
|
13261
|
-
display: display,
|
|
13262
|
-
width: '100%',
|
|
13263
|
-
basis: '0'
|
|
13264
|
-
};
|
|
13265
|
-
};
|
|
13266
|
-
var GridBasicItem = function GridBasicItem(_ref) {
|
|
13267
|
-
var _ref$xs = _ref.xs,
|
|
13268
|
-
xs = _ref$xs === void 0 ? false : _ref$xs,
|
|
13269
|
-
_ref$sm = _ref.sm,
|
|
13270
|
-
sm = _ref$sm === void 0 ? false : _ref$sm,
|
|
13271
|
-
_ref$md = _ref.md,
|
|
13272
|
-
md = _ref$md === void 0 ? false : _ref$md,
|
|
13273
|
-
_ref$lg = _ref.lg,
|
|
13274
|
-
lg = _ref$lg === void 0 ? false : _ref$lg,
|
|
13275
|
-
_ref$xl = _ref.xl,
|
|
13276
|
-
xl = _ref$xl === void 0 ? false : _ref$xl,
|
|
13277
|
-
justify = _ref.justify,
|
|
13278
|
-
direction = _ref.direction,
|
|
13279
|
-
alignItems = _ref.alignItems,
|
|
13280
|
-
alignContent = _ref.alignContent,
|
|
13281
|
-
children = _ref.children,
|
|
13282
|
-
_ref$className = _ref.className,
|
|
13283
|
-
className = _ref$className === void 0 ? '' : _ref$className,
|
|
13284
|
-
props = _objectWithoutProperties(_ref, _excluded$E);
|
|
13285
|
-
var theme$1 = theme.useTheme();
|
|
13286
|
-
var _useScale = useScale(),
|
|
13287
|
-
SCALES = _useScale.SCALES;
|
|
13288
|
-
var classes = React.useMemo(function () {
|
|
13289
|
-
var aligns = {
|
|
13290
|
-
justify: justify,
|
|
13291
|
-
direction: direction,
|
|
13292
|
-
alignItems: alignItems,
|
|
13293
|
-
alignContent: alignContent,
|
|
13294
|
-
xs: xs,
|
|
13295
|
-
sm: sm,
|
|
13296
|
-
md: md,
|
|
13297
|
-
lg: lg,
|
|
13298
|
-
xl: xl
|
|
13299
|
-
};
|
|
13300
|
-
var classString = Object.keys(aligns).reduce(function (pre, name) {
|
|
13301
|
-
if (aligns[name] !== undefined && aligns[name] !== false) return "".concat(pre, " ").concat(name);
|
|
13302
|
-
return pre;
|
|
13303
|
-
}, '');
|
|
13304
|
-
return classString.trim();
|
|
13305
|
-
}, [justify, direction, alignItems, alignContent, xs, sm, md, lg, xl]);
|
|
13306
|
-
var layout = React.useMemo(function () {
|
|
13307
|
-
return {
|
|
13308
|
-
xs: getItemLayout(xs),
|
|
13309
|
-
sm: getItemLayout(sm),
|
|
13310
|
-
md: getItemLayout(md),
|
|
13311
|
-
lg: getItemLayout(lg),
|
|
13312
|
-
xl: getItemLayout(xl)
|
|
13313
|
-
};
|
|
13314
|
-
}, [xs, sm, md, lg, xl]);
|
|
13315
|
-
return /*#__PURE__*/jsxRuntime.jsxs("div", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
13316
|
-
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) || ""),
|
|
13317
|
-
children: [children, /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
13318
|
-
id: "568430467",
|
|
13319
|
-
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],
|
|
13320
|
-
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, ";}}")
|
|
13321
|
-
})]
|
|
13322
|
-
}));
|
|
13323
|
-
};
|
|
13324
|
-
GridBasicItem.displayName = 'GridBasicItem';
|
|
13325
|
-
|
|
13326
|
-
var _excluded$D = ["children", "className"];
|
|
13327
|
-
var GridComponent = function GridComponent(_ref) {
|
|
13328
|
-
var children = _ref.children,
|
|
13329
|
-
_ref$className = _ref.className,
|
|
13330
|
-
className = _ref$className === void 0 ? '' : _ref$className,
|
|
13331
|
-
props = _objectWithoutProperties(_ref, _excluded$D);
|
|
13332
|
-
var _useScale = useScale(),
|
|
13333
|
-
SCALES = _useScale.SCALES;
|
|
13334
|
-
var _styles$className = {
|
|
13335
|
-
styles: /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
13336
|
-
id: "1271839607",
|
|
13337
|
-
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)')],
|
|
13338
|
-
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)'), ";}")
|
|
13339
|
-
}),
|
|
13340
|
-
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)')]]])
|
|
13341
|
-
},
|
|
13342
|
-
resolveClassName = _styles$className.className,
|
|
13343
|
-
styles = _styles$className.styles;
|
|
13344
|
-
var classes = theme.useClasses(resolveClassName, className);
|
|
13345
|
-
return /*#__PURE__*/jsxRuntime.jsxs(GridBasicItem, _objectSpread2(_objectSpread2({
|
|
13346
|
-
className: classes
|
|
13347
|
-
}, props), {}, {
|
|
13348
|
-
children: [children, styles]
|
|
13349
|
-
}));
|
|
13350
|
-
};
|
|
13351
|
-
GridComponent.displayName = 'Grid';
|
|
13352
|
-
var Grid = withScale(GridComponent);
|
|
13353
|
-
|
|
13354
|
-
var _excluded$C = ["gap", "wrap", "children", "className"];
|
|
13355
|
-
var GridContainerComponent = function GridContainerComponent(_ref) {
|
|
13356
|
-
var _ref$gap = _ref.gap,
|
|
13357
|
-
gap = _ref$gap === void 0 ? 0 : _ref$gap,
|
|
13358
|
-
_ref$wrap = _ref.wrap,
|
|
13359
|
-
wrap = _ref$wrap === void 0 ? 'wrap' : _ref$wrap,
|
|
13360
|
-
children = _ref.children,
|
|
13361
|
-
_ref$className = _ref.className,
|
|
13362
|
-
className = _ref$className === void 0 ? '' : _ref$className,
|
|
13363
|
-
props = _objectWithoutProperties(_ref, _excluded$C);
|
|
13364
|
-
var _useScale = useScale(),
|
|
13365
|
-
unit = _useScale.unit,
|
|
13366
|
-
SCALES = _useScale.SCALES;
|
|
13367
|
-
var gapUnit = React.useMemo(function () {
|
|
13368
|
-
return "calc(".concat(gap, " * ").concat(unit, " * 1/3)");
|
|
13369
|
-
}, [gap, unit]);
|
|
13370
|
-
var _styles$className = {
|
|
13371
|
-
styles: /*#__PURE__*/jsxRuntime.jsx(_JSXStyle, {
|
|
13372
|
-
id: "3631618093",
|
|
13373
|
-
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)')],
|
|
13374
|
-
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)'), ";}")
|
|
13375
|
-
}),
|
|
13376
|
-
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)')]]])
|
|
13377
|
-
},
|
|
13378
|
-
resolveClassName = _styles$className.className,
|
|
13379
|
-
styles = _styles$className.styles;
|
|
13380
|
-
var classes = theme.useClasses(resolveClassName, className);
|
|
13381
|
-
return /*#__PURE__*/jsxRuntime.jsxs(GridBasicItem, _objectSpread2(_objectSpread2({
|
|
13382
|
-
className: classes
|
|
13383
|
-
}, props), {}, {
|
|
13384
|
-
children: [children, styles]
|
|
13385
|
-
}));
|
|
13386
|
-
};
|
|
13387
|
-
GridContainerComponent.displayName = 'GridContainer';
|
|
13388
|
-
var GridContainer = withScale(GridContainerComponent);
|
|
13389
|
-
|
|
13390
|
-
Grid.Container = GridContainer;
|
|
13391
|
-
|
|
13392
13477
|
var Expandable = function Expandable(_ref) {
|
|
13393
13478
|
var children = _ref.children,
|
|
13394
13479
|
_ref$collapsedHeight = _ref.collapsedHeight,
|
|
@@ -13419,6 +13504,7 @@ var Expandable = function Expandable(_ref) {
|
|
|
13419
13504
|
|
|
13420
13505
|
// Measure content height and detect overflow
|
|
13421
13506
|
React.useEffect(function () {
|
|
13507
|
+
var _contentRef$current$q, _contentRef$current;
|
|
13422
13508
|
var el = contentRef.current;
|
|
13423
13509
|
if (!el) return;
|
|
13424
13510
|
var updateHeight = function updateHeight() {
|
|
@@ -13432,6 +13518,12 @@ var Expandable = function Expandable(_ref) {
|
|
|
13432
13518
|
setFadeColor(parentBg || "#fff");
|
|
13433
13519
|
};
|
|
13434
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
|
+
}
|
|
13435
13527
|
var observer = new ResizeObserver(updateHeight);
|
|
13436
13528
|
observer.observe(el);
|
|
13437
13529
|
return function () {
|
|
@@ -13477,7 +13569,7 @@ var Expandable = function Expandable(_ref) {
|
|
|
13477
13569
|
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
13478
13570
|
style: fadeStyle
|
|
13479
13571
|
})]
|
|
13480
|
-
}), isOverflowing && /*#__PURE__*/jsxRuntime.jsx(Button
|
|
13572
|
+
}), isOverflowing && /*#__PURE__*/jsxRuntime.jsx(Button, {
|
|
13481
13573
|
"aria-expanded": expanded,
|
|
13482
13574
|
onKeyDown: handleKey,
|
|
13483
13575
|
margin: 0,
|