@helpdice/ui 2.6.1-beta.5 → 2.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/form/Form.d.ts +3 -0
- package/dist/form/index.d.ts +1 -0
- package/dist/form/index.js +23 -2
- package/dist/index.js +124 -126
- package/dist/table/index.js +4 -27
- package/esm/form/Form.d.ts +3 -0
- package/esm/form/index.d.ts +1 -0
- package/esm/form/index.js +1 -1
- package/esm/login-with/LoginSocialPinterest/index.js +2 -2
- package/esm/table/table-body.js +7 -25
- package/package.json +1 -1
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export type FormikFormProps = Pick<React.FormHTMLAttributes<HTMLFormElement>, Exclude<keyof React.FormHTMLAttributes<HTMLFormElement>, 'onReset' | 'onSubmit'>>;
|
|
3
|
+
export declare const Form: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, "ref"> & React.RefAttributes<HTMLFormElement>>;
|
package/dist/form/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import connect from './connect';
|
|
2
2
|
import { FormWrapper, useFormik, yupToFormErrors, validateYupSchema, prepareDataForValidation } from './FormWrapper';
|
|
3
|
+
export * from './Form';
|
|
3
4
|
import withFormik from './withFormik';
|
|
4
5
|
import { isEmptyArray, isEmptyChildren, isInputEvent, isInteger, isObject, isPromise, isFunction, isNaN, isString, getActiveElement, getIn, setIn, setNestedObjectValues } from './utils';
|
|
5
6
|
import ErrorMessage from './ErrorMessage';
|
package/dist/form/index.js
CHANGED
|
@@ -5025,7 +5025,7 @@ function setNestedObjectValues(object, value) {
|
|
|
5025
5025
|
|
|
5026
5026
|
var __DEV__ = true;
|
|
5027
5027
|
|
|
5028
|
-
var _excluded$
|
|
5028
|
+
var _excluded$3 = ["validateOnChange", "validateOnBlur", "validateOnMount", "isInitialValid", "enableReinitialize", "onSubmit"];
|
|
5029
5029
|
// State reducer
|
|
5030
5030
|
function formikReducer(state, msg) {
|
|
5031
5031
|
switch (msg.type) {
|
|
@@ -5109,7 +5109,7 @@ function useFormik(_ref) {
|
|
|
5109
5109
|
_ref$enableReinitiali = _ref.enableReinitialize,
|
|
5110
5110
|
enableReinitialize = _ref$enableReinitiali === void 0 ? false : _ref$enableReinitiali,
|
|
5111
5111
|
onSubmit = _ref.onSubmit,
|
|
5112
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
5112
|
+
rest = _objectWithoutProperties(_ref, _excluded$3);
|
|
5113
5113
|
var props = _objectSpread2({
|
|
5114
5114
|
validateOnChange: validateOnChange,
|
|
5115
5115
|
validateOnBlur: validateOnBlur,
|
|
@@ -5982,6 +5982,26 @@ function useEventCallback(fn) {
|
|
|
5982
5982
|
}, []);
|
|
5983
5983
|
}
|
|
5984
5984
|
|
|
5985
|
+
var _excluded$2 = ["action"];
|
|
5986
|
+
// @todo tests
|
|
5987
|
+
var Form = /*#__PURE__*/React__namespace.forwardRef(function (props, ref) {
|
|
5988
|
+
// iOS needs an "action" attribute for nice input: https://stackoverflow.com/a/39485162/406725
|
|
5989
|
+
// We default the action to "#" in case the preventDefault fails (just updates the URL hash)
|
|
5990
|
+
var action = props.action,
|
|
5991
|
+
rest = _objectWithoutProperties(props, _excluded$2);
|
|
5992
|
+
var _action = action !== null && action !== void 0 ? action : '#';
|
|
5993
|
+
var _useFormikContext = useFormikContext(),
|
|
5994
|
+
handleReset = _useFormikContext.handleReset,
|
|
5995
|
+
handleSubmit = _useFormikContext.handleSubmit;
|
|
5996
|
+
return /*#__PURE__*/jsxRuntime.jsx("form", _objectSpread2({
|
|
5997
|
+
onSubmit: handleSubmit,
|
|
5998
|
+
ref: ref,
|
|
5999
|
+
onReset: handleReset,
|
|
6000
|
+
action: _action
|
|
6001
|
+
}, rest));
|
|
6002
|
+
});
|
|
6003
|
+
Form.displayName = 'Form';
|
|
6004
|
+
|
|
5985
6005
|
var _excluded$1 = ["mapPropsToValues"],
|
|
5986
6006
|
_excluded2 = ["children"];
|
|
5987
6007
|
/**
|
|
@@ -6094,6 +6114,7 @@ var ErrorMessageImpl = /*#__PURE__*/function (_React$Component) {
|
|
|
6094
6114
|
var ErrorMessage = connect(ErrorMessageImpl);
|
|
6095
6115
|
|
|
6096
6116
|
exports.ErrorMessage = ErrorMessage;
|
|
6117
|
+
exports.Form = Form;
|
|
6097
6118
|
exports.FormWrapper = FormWrapper;
|
|
6098
6119
|
exports.FormikConsumer = FormikConsumer;
|
|
6099
6120
|
exports.FormikContext = FormikContext;
|
package/dist/index.js
CHANGED
|
@@ -7,7 +7,6 @@ var ArrowRight = require('@helpdice/icons/curved/ArrowRight');
|
|
|
7
7
|
var framerMotion = require('framer-motion');
|
|
8
8
|
var reactDom = require('react-dom');
|
|
9
9
|
var reactDom$1 = require('@floating-ui/react-dom');
|
|
10
|
-
var pro = require('@helpdice/pro');
|
|
11
10
|
var ChevronLeft = require('@helpdice/icons/curved/ChevronLeft');
|
|
12
11
|
var ChevronRight = require('@helpdice/icons/curved/ChevronRight');
|
|
13
12
|
var reactSyntaxHighlighter = require('react-syntax-highlighter');
|
|
@@ -1173,7 +1172,7 @@ var generateGetAllScaleProps = function generateGetAllScaleProps(props) {
|
|
|
1173
1172
|
return getAllScaleProps;
|
|
1174
1173
|
};
|
|
1175
1174
|
|
|
1176
|
-
var _excluded$
|
|
1175
|
+
var _excluded$1p = ["children"];
|
|
1177
1176
|
var reduceScaleCoefficient = function reduceScaleCoefficient(scale) {
|
|
1178
1177
|
if (scale === 1) return scale;
|
|
1179
1178
|
var diff = Math.abs((scale - 1) / 2);
|
|
@@ -1183,7 +1182,7 @@ var withScale = function withScale(Render) {
|
|
|
1183
1182
|
var ScaleFC = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
1184
1183
|
var _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref0, _ref1, _ref10, _ref11, _ref12, _ref13, _ref14, _ref15, _ref16, _ref17, _ref18, _ref19, _ref20, _ref21, _ref22, _ref23, _ref24, _ref25, _ref26, _ref27, _ref28, _ref29, _ref30, _ref31;
|
|
1185
1184
|
var children = _ref.children,
|
|
1186
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1185
|
+
props = _objectWithoutProperties(_ref, _excluded$1p);
|
|
1187
1186
|
var _useTheme = theme.useTheme(),
|
|
1188
1187
|
layout = _useTheme.layout;
|
|
1189
1188
|
var paddingLeft = props.paddingLeft,
|
|
@@ -1268,7 +1267,7 @@ var withScale = function withScale(Render) {
|
|
|
1268
1267
|
return ScaleFC;
|
|
1269
1268
|
};
|
|
1270
1269
|
|
|
1271
|
-
var _excluded$
|
|
1270
|
+
var _excluded$1o = ["children", "tag", "className", "color"];
|
|
1272
1271
|
var getTypeColor = function getTypeColor(type, palette) {
|
|
1273
1272
|
var colors = {
|
|
1274
1273
|
"default": 'inherit',
|
|
@@ -1286,7 +1285,7 @@ var TextChild = function TextChild(_ref) {
|
|
|
1286
1285
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
1287
1286
|
_ref$color = _ref.color,
|
|
1288
1287
|
color = _ref$color === void 0 ? 'default' : _ref$color,
|
|
1289
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1288
|
+
props = _objectWithoutProperties(_ref, _excluded$1o);
|
|
1290
1289
|
var Component = tag;
|
|
1291
1290
|
var theme$1 = theme.useTheme();
|
|
1292
1291
|
var _useScale = useScale(),
|
|
@@ -1334,7 +1333,7 @@ var TextChild = function TextChild(_ref) {
|
|
|
1334
1333
|
};
|
|
1335
1334
|
TextChild.displayName = 'TextChild';
|
|
1336
1335
|
|
|
1337
|
-
var _excluded$
|
|
1336
|
+
var _excluded$1n = ["h1", "h2", "h3", "h4", "h5", "h6", "p", "b", "small", "i", "span", "del", "em", "blockquote", "noWrap", "children", "className", "display", "alignItems", "justify"];
|
|
1338
1337
|
var _getModifierChild = function getModifierChild(tags, children) {
|
|
1339
1338
|
if (!tags.length) return children;
|
|
1340
1339
|
var nextTag = tags.slice(1, tags.length);
|
|
@@ -1381,7 +1380,7 @@ var TextComponent = function TextComponent(_ref) {
|
|
|
1381
1380
|
display = _ref$display === void 0 ? 'block' : _ref$display,
|
|
1382
1381
|
alignItems = _ref.alignItems,
|
|
1383
1382
|
justify = _ref.justify,
|
|
1384
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1383
|
+
props = _objectWithoutProperties(_ref, _excluded$1n);
|
|
1385
1384
|
var elements = {
|
|
1386
1385
|
h1: h1,
|
|
1387
1386
|
h2: h2,
|
|
@@ -1576,7 +1575,7 @@ var getColors$7 = function getColors(palette, status) {
|
|
|
1576
1575
|
return colors[status];
|
|
1577
1576
|
};
|
|
1578
1577
|
|
|
1579
|
-
var _excluded$
|
|
1578
|
+
var _excluded$1m = ["label", "labelRight", "error", "color", "helperText", "type", "icon", "variant", "iconRight", "iconClickable", "onIconClick", "initialValue", "onChange", "readOnly", "value", "onClearClick", "clearable", "className", "onBlur", "onFocus", "onEnter", "autoComplete", "placeholder", "children", "disabled", "fullWidth", "required"];
|
|
1580
1579
|
var simulateChangeEvent = function simulateChangeEvent(el, event) {
|
|
1581
1580
|
return _objectSpread2(_objectSpread2({}, event), {}, {
|
|
1582
1581
|
target: el,
|
|
@@ -1623,7 +1622,7 @@ var InputComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
1623
1622
|
_ref$fullWidth = _ref.fullWidth,
|
|
1624
1623
|
fullWidth = _ref$fullWidth === void 0 ? false : _ref$fullWidth,
|
|
1625
1624
|
required = _ref.required,
|
|
1626
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1625
|
+
props = _objectWithoutProperties(_ref, _excluded$1m);
|
|
1627
1626
|
var theme$1 = theme.useTheme();
|
|
1628
1627
|
var _useScale = useScale(),
|
|
1629
1628
|
SCALES = _useScale.SCALES;
|
|
@@ -1783,7 +1782,7 @@ tuple('hover', 'click');
|
|
|
1783
1782
|
tuple('top', 'topStart', 'topEnd', 'left', 'leftStart', 'leftEnd', 'bottom', 'bottomStart', 'bottomEnd', 'right', 'rightStart', 'rightEnd');
|
|
1784
1783
|
tuple('start', 'center', 'end', 'left', 'right');
|
|
1785
1784
|
|
|
1786
|
-
var _excluded$
|
|
1785
|
+
var _excluded$1l = ["type", "disabled", "readOnly", "onFocus", "onBlur", "className", "initialValue", "onChange", "value", "placeholder", "helperText", "error", "label", "required", "resize"];
|
|
1787
1786
|
tuple('none', 'both', 'horizontal', 'vertical', 'initial', 'inherit');
|
|
1788
1787
|
var TextareaComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
1789
1788
|
var _ref$type = _ref.type,
|
|
@@ -1807,7 +1806,7 @@ var TextareaComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
1807
1806
|
required = _ref.required,
|
|
1808
1807
|
_ref$resize = _ref.resize,
|
|
1809
1808
|
resize = _ref$resize === void 0 ? 'none' : _ref$resize,
|
|
1810
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1809
|
+
props = _objectWithoutProperties(_ref, _excluded$1l);
|
|
1811
1810
|
var theme$1 = theme.useTheme();
|
|
1812
1811
|
var _useScale = useScale(),
|
|
1813
1812
|
SCALES = _useScale.SCALES;
|
|
@@ -1931,11 +1930,11 @@ var PasswordIcon = function PasswordIcon(_ref) {
|
|
|
1931
1930
|
};
|
|
1932
1931
|
var MemoPasswordIcon = /*#__PURE__*/React.memo(PasswordIcon);
|
|
1933
1932
|
|
|
1934
|
-
var _excluded$
|
|
1933
|
+
var _excluded$1k = ["hideToggle", "children"];
|
|
1935
1934
|
var InputPasswordComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
1936
1935
|
var hideToggle = _ref.hideToggle,
|
|
1937
1936
|
children = _ref.children,
|
|
1938
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1937
|
+
props = _objectWithoutProperties(_ref, _excluded$1k);
|
|
1939
1938
|
var _useScale = useScale(),
|
|
1940
1939
|
getAllScaleProps = _useScale.getAllScaleProps;
|
|
1941
1940
|
var inputRef = React.useRef(null);
|
|
@@ -3543,7 +3542,7 @@ var repositionCursor = function repositionCursor(_ref) {
|
|
|
3543
3542
|
};
|
|
3544
3543
|
};
|
|
3545
3544
|
|
|
3546
|
-
var _excluded$
|
|
3545
|
+
var _excluded$1j = ["allowDecimals", "allowNegativeValue", "id", "name", "className", "customInput", "decimalsLimit", "defaultValue", "disabled", "maxLength", "value", "onValueChange", "fixedDecimalLength", "placeholder", "decimalScale", "prefix", "suffix", "intlConfig", "fullWidth", "step", "min", "max", "disableGroupSeparators", "disableAbbreviations", "decimalSeparator", "groupSeparator", "onChange", "onFocus", "onBlur", "onKeyDown", "onKeyUp", "transformRawValue", "formatValueOnBlur", "children"];
|
|
3547
3546
|
var InputCurrency = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
3548
3547
|
var _ref$allowDecimals = _ref.allowDecimals,
|
|
3549
3548
|
allowDecimals = _ref$allowDecimals === void 0 ? true : _ref$allowDecimals,
|
|
@@ -3585,7 +3584,7 @@ var InputCurrency = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
3585
3584
|
_ref$formatValueOnBlu = _ref.formatValueOnBlur,
|
|
3586
3585
|
formatValueOnBlur = _ref$formatValueOnBlu === void 0 ? true : _ref$formatValueOnBlu,
|
|
3587
3586
|
children = _ref.children,
|
|
3588
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
3587
|
+
props = _objectWithoutProperties(_ref, _excluded$1j);
|
|
3589
3588
|
var _useScale = useScale(),
|
|
3590
3589
|
SCALES = _useScale.SCALES;
|
|
3591
3590
|
var theme$1 = theme.useTheme();
|
|
@@ -3941,7 +3940,7 @@ var InputCurrency = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
3941
3940
|
|
|
3942
3941
|
var CurrencyInput = withScale(InputCurrency);
|
|
3943
3942
|
|
|
3944
|
-
var _excluded$
|
|
3943
|
+
var _excluded$1i = ["xs", "sm", "md", "lg", "xl", "justify", "direction", "alignItems", "alignContent", "children", "className"];
|
|
3945
3944
|
var getItemLayout = function getItemLayout(val) {
|
|
3946
3945
|
var display = val === 0 ? 'display: none;' : 'display: inherit;';
|
|
3947
3946
|
if (typeof val === 'number') {
|
|
@@ -3979,7 +3978,7 @@ var GridBasicItem = function GridBasicItem(_ref) {
|
|
|
3979
3978
|
children = _ref.children,
|
|
3980
3979
|
_ref$className = _ref.className,
|
|
3981
3980
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
3982
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
3981
|
+
props = _objectWithoutProperties(_ref, _excluded$1i);
|
|
3983
3982
|
var theme$1 = theme.useTheme();
|
|
3984
3983
|
var _useScale = useScale(),
|
|
3985
3984
|
SCALES = _useScale.SCALES;
|
|
@@ -4021,12 +4020,12 @@ var GridBasicItem = function GridBasicItem(_ref) {
|
|
|
4021
4020
|
};
|
|
4022
4021
|
GridBasicItem.displayName = 'GridBasicItem';
|
|
4023
4022
|
|
|
4024
|
-
var _excluded$
|
|
4023
|
+
var _excluded$1h = ["children", "className"];
|
|
4025
4024
|
var GridComponent = function GridComponent(_ref) {
|
|
4026
4025
|
var children = _ref.children,
|
|
4027
4026
|
_ref$className = _ref.className,
|
|
4028
4027
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
4029
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4028
|
+
props = _objectWithoutProperties(_ref, _excluded$1h);
|
|
4030
4029
|
var _useScale = useScale(),
|
|
4031
4030
|
SCALES = _useScale.SCALES;
|
|
4032
4031
|
var _styles$className = {
|
|
@@ -4049,7 +4048,7 @@ var GridComponent = function GridComponent(_ref) {
|
|
|
4049
4048
|
GridComponent.displayName = 'Grid';
|
|
4050
4049
|
var Grid = withScale(GridComponent);
|
|
4051
4050
|
|
|
4052
|
-
var _excluded$
|
|
4051
|
+
var _excluded$1g = ["gap", "wrap", "children", "className"];
|
|
4053
4052
|
var GridContainerComponent = function GridContainerComponent(_ref) {
|
|
4054
4053
|
var _ref$gap = _ref.gap,
|
|
4055
4054
|
gap = _ref$gap === void 0 ? 0 : _ref$gap,
|
|
@@ -4058,7 +4057,7 @@ var GridContainerComponent = function GridContainerComponent(_ref) {
|
|
|
4058
4057
|
children = _ref.children,
|
|
4059
4058
|
_ref$className = _ref.className,
|
|
4060
4059
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
4061
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4060
|
+
props = _objectWithoutProperties(_ref, _excluded$1g);
|
|
4062
4061
|
var _useScale = useScale(),
|
|
4063
4062
|
unit = _useScale.unit,
|
|
4064
4063
|
SCALES = _useScale.SCALES;
|
|
@@ -4349,7 +4348,7 @@ var AutoCompleteEmpty = function AutoCompleteEmpty(_ref) {
|
|
|
4349
4348
|
};
|
|
4350
4349
|
AutoCompleteEmpty.displayName = 'AutoCompleteEmpty';
|
|
4351
4350
|
|
|
4352
|
-
var _excluded$
|
|
4351
|
+
var _excluded$1f = ["children", "type", "color", "className", "spaceRatio"];
|
|
4353
4352
|
var getIconBgColor = function getIconBgColor(type, palette, color) {
|
|
4354
4353
|
var colors = {
|
|
4355
4354
|
"default": palette.accents_6,
|
|
@@ -4369,7 +4368,7 @@ var LoadingComponent = function LoadingComponent(_ref) {
|
|
|
4369
4368
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
4370
4369
|
_ref$spaceRatio = _ref.spaceRatio,
|
|
4371
4370
|
spaceRatio = _ref$spaceRatio === void 0 ? 1 : _ref$spaceRatio,
|
|
4372
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4371
|
+
props = _objectWithoutProperties(_ref, _excluded$1f);
|
|
4373
4372
|
var theme$1 = theme.useTheme();
|
|
4374
4373
|
var _useScale = useScale(),
|
|
4375
4374
|
SCALES = _useScale.SCALES;
|
|
@@ -4401,7 +4400,7 @@ var LoadingComponent = function LoadingComponent(_ref) {
|
|
|
4401
4400
|
LoadingComponent.displayName = 'Loading';
|
|
4402
4401
|
var Loading = withScale(LoadingComponent);
|
|
4403
4402
|
|
|
4404
|
-
var _excluded$
|
|
4403
|
+
var _excluded$1e = ["options", "initialValue", "onSelect", "onSearch", "onChange", "searching", "children", "type", "color", "value", "clearable", "disabled", "dropdownClassName", "dropdownStyle", "disableMatchWidth", "disableFreeSolo", "getPopupContainer"];
|
|
4405
4404
|
var childrenToOptionsNode = function childrenToOptionsNode(options) {
|
|
4406
4405
|
return options.map(function (item, index) {
|
|
4407
4406
|
var key = "auto-complete-item-".concat(index);
|
|
@@ -4450,7 +4449,7 @@ var AutoCompleteComponent = /*#__PURE__*/React.forwardRef(function (_ref, userRe
|
|
|
4450
4449
|
_ref$disableFreeSolo = _ref.disableFreeSolo,
|
|
4451
4450
|
disableFreeSolo = _ref$disableFreeSolo === void 0 ? false : _ref$disableFreeSolo,
|
|
4452
4451
|
getPopupContainer = _ref.getPopupContainer,
|
|
4453
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4452
|
+
props = _objectWithoutProperties(_ref, _excluded$1e);
|
|
4454
4453
|
var resetTimer = React.useRef(0); // DEFAULT Value 0
|
|
4455
4454
|
var _useScale = useScale(),
|
|
4456
4455
|
SCALES = _useScale.SCALES,
|
|
@@ -4603,7 +4602,7 @@ AutoComplete.Option = AutoCompleteItemComponent;
|
|
|
4603
4602
|
AutoComplete.Searching = AutoCompleteSearch;
|
|
4604
4603
|
AutoComplete.Empty = AutoCompleteEmpty;
|
|
4605
4604
|
|
|
4606
|
-
var _excluded$
|
|
4605
|
+
var _excluded$1d = ["src", "errorSrc", "stacked", "text", "isSquare", "className", "children"];
|
|
4607
4606
|
var safeText = function safeText(text) {
|
|
4608
4607
|
if (text.length <= 4) return text;
|
|
4609
4608
|
return text.slice(0, 3);
|
|
@@ -4622,7 +4621,7 @@ var AvatarComponent = function AvatarComponent(_ref) {
|
|
|
4622
4621
|
_ref$className = _ref.className,
|
|
4623
4622
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
4624
4623
|
children = _ref.children,
|
|
4625
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4624
|
+
props = _objectWithoutProperties(_ref, _excluded$1d);
|
|
4626
4625
|
var theme$1 = theme.useTheme();
|
|
4627
4626
|
var fallbackSrc = theme$1.type === 'dark' ? errorImgDark : errorImgLight;
|
|
4628
4627
|
var _useScale = useScale(),
|
|
@@ -4683,7 +4682,7 @@ var AvatarGroup = withScale(AvatarGroupComponent);
|
|
|
4683
4682
|
|
|
4684
4683
|
Avatar.Group = AvatarGroup;
|
|
4685
4684
|
|
|
4686
|
-
var _excluded$
|
|
4685
|
+
var _excluded$1c = ["color", "className", "children", "dot"];
|
|
4687
4686
|
var getBgColor = function getBgColor(type, palette) {
|
|
4688
4687
|
var colors = {
|
|
4689
4688
|
"default": palette.foreground,
|
|
@@ -4702,7 +4701,7 @@ var BadgeComponent = function BadgeComponent(_ref) {
|
|
|
4702
4701
|
children = _ref.children,
|
|
4703
4702
|
_ref$dot = _ref.dot,
|
|
4704
4703
|
dot = _ref$dot === void 0 ? false : _ref$dot,
|
|
4705
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4704
|
+
props = _objectWithoutProperties(_ref, _excluded$1c);
|
|
4706
4705
|
var theme$1 = theme.useTheme();
|
|
4707
4706
|
var _useScale = useScale(),
|
|
4708
4707
|
SCALES = _useScale.SCALES;
|
|
@@ -4916,7 +4915,7 @@ var LinkIconComponent = function LinkIconComponent() {
|
|
|
4916
4915
|
LinkIconComponent.displayName = 'LinkIcon';
|
|
4917
4916
|
var LinkIcon = /*#__PURE__*/React.memo(LinkIconComponent);
|
|
4918
4917
|
|
|
4919
|
-
var _excluded$
|
|
4918
|
+
var _excluded$1b = ["href", "showColor", "underline", "children", "className", "block", "arrow", "icon"];
|
|
4920
4919
|
var LinkComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
4921
4920
|
var _ref$href = _ref.href,
|
|
4922
4921
|
href = _ref$href === void 0 ? '' : _ref$href,
|
|
@@ -4932,7 +4931,7 @@ var LinkComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
4932
4931
|
_ref$arrow = _ref.arrow,
|
|
4933
4932
|
arrow = _ref$arrow === void 0 ? false : _ref$arrow,
|
|
4934
4933
|
icon = _ref.icon,
|
|
4935
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4934
|
+
props = _objectWithoutProperties(_ref, _excluded$1b);
|
|
4936
4935
|
var theme$1 = theme.useTheme();
|
|
4937
4936
|
var _useScale = useScale(),
|
|
4938
4937
|
SCALES = _useScale.SCALES;
|
|
@@ -4960,7 +4959,7 @@ var LinkComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
4960
4959
|
LinkComponent.displayName = 'Link';
|
|
4961
4960
|
var Link = withScale(LinkComponent);
|
|
4962
4961
|
|
|
4963
|
-
var _excluded$
|
|
4962
|
+
var _excluded$1a = ["href", "nextLink", "onClick", "children", "className"];
|
|
4964
4963
|
var BreadcrumbsItem = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
4965
4964
|
var href = _ref.href,
|
|
4966
4965
|
_ref$nextLink = _ref.nextLink,
|
|
@@ -4969,7 +4968,7 @@ var BreadcrumbsItem = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
4969
4968
|
children = _ref.children,
|
|
4970
4969
|
_ref$className = _ref.className,
|
|
4971
4970
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
4972
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
4971
|
+
props = _objectWithoutProperties(_ref, _excluded$1a);
|
|
4973
4972
|
var isLink = React.useMemo(function () {
|
|
4974
4973
|
return href !== undefined || nextLink;
|
|
4975
4974
|
}, [href, nextLink]);
|
|
@@ -5076,7 +5075,7 @@ var ButtonLoading = function ButtonLoading(_ref) {
|
|
|
5076
5075
|
};
|
|
5077
5076
|
ButtonLoading.displayName = 'ButtonLoading';
|
|
5078
5077
|
|
|
5079
|
-
var _excluded$
|
|
5078
|
+
var _excluded$19 = ["isRight", "isSingle", "children", "className"];
|
|
5080
5079
|
var ButtonIcon = function ButtonIcon(_ref) {
|
|
5081
5080
|
var _ref$isRight = _ref.isRight,
|
|
5082
5081
|
isRight = _ref$isRight === void 0 ? false : _ref$isRight,
|
|
@@ -5084,7 +5083,7 @@ var ButtonIcon = function ButtonIcon(_ref) {
|
|
|
5084
5083
|
children = _ref.children,
|
|
5085
5084
|
_ref$className = _ref.className,
|
|
5086
5085
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
5087
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5086
|
+
props = _objectWithoutProperties(_ref, _excluded$19);
|
|
5088
5087
|
var classes = theme.useClasses('icon', {
|
|
5089
5088
|
right: isRight,
|
|
5090
5089
|
single: isSingle
|
|
@@ -5351,7 +5350,7 @@ var getButtonDripColor = function getButtonDripColor(palette, props) {
|
|
|
5351
5350
|
return isLightHover ? addColorAlpha(hoverColors.bg, 0.65) : addColorAlpha(palette.accents_2, 0.65);
|
|
5352
5351
|
};
|
|
5353
5352
|
|
|
5354
|
-
var _excluded$
|
|
5353
|
+
var _excluded$18 = ["children", "disabled", "color", "loading", "shadow", "ghost", "effect", "round", "relative", "replace", "a", "to", "onClick", "auto", "icon", "type", "iconRight", "className", "crossOrigin"];
|
|
5355
5354
|
var ButtonComponent = /*#__PURE__*/React.forwardRef(function (btnProps, ref) {
|
|
5356
5355
|
var theme$1 = theme.useTheme();
|
|
5357
5356
|
// const navigate = useNavigate();
|
|
@@ -5405,7 +5404,7 @@ var ButtonComponent = /*#__PURE__*/React.forwardRef(function (btnProps, ref) {
|
|
|
5405
5404
|
_filteredProps$classN = filteredProps.className,
|
|
5406
5405
|
className = _filteredProps$classN === void 0 ? '' : _filteredProps$classN;
|
|
5407
5406
|
filteredProps.crossOrigin;
|
|
5408
|
-
var props = _objectWithoutProperties(filteredProps, _excluded$
|
|
5407
|
+
var props = _objectWithoutProperties(filteredProps, _excluded$18);
|
|
5409
5408
|
/* eslint-enable @typescript-eslint/no-unused-vars */
|
|
5410
5409
|
|
|
5411
5410
|
var _useMemo = React.useMemo(function () {
|
|
@@ -5668,7 +5667,7 @@ var useButtonDropdown = function useButtonDropdown() {
|
|
|
5668
5667
|
return React.useContext(ButtonDropdownContext);
|
|
5669
5668
|
};
|
|
5670
5669
|
|
|
5671
|
-
var _excluded$
|
|
5670
|
+
var _excluded$17 = ["children", "onClick", "className", "main", "icon", "type"];
|
|
5672
5671
|
var ButtonDropdownItem = function ButtonDropdownItem(_ref) {
|
|
5673
5672
|
var children = _ref.children,
|
|
5674
5673
|
_ref$onClick = _ref.onClick,
|
|
@@ -5679,7 +5678,7 @@ var ButtonDropdownItem = function ButtonDropdownItem(_ref) {
|
|
|
5679
5678
|
main = _ref$main === void 0 ? false : _ref$main,
|
|
5680
5679
|
icon = _ref.icon,
|
|
5681
5680
|
selfType = _ref.type,
|
|
5682
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5681
|
+
props = _objectWithoutProperties(_ref, _excluded$17);
|
|
5683
5682
|
var theme$1 = theme.useTheme();
|
|
5684
5683
|
var _useScale = useScale(),
|
|
5685
5684
|
SCALES = _useScale.SCALES;
|
|
@@ -5721,7 +5720,7 @@ var ButtonDropdownItem = function ButtonDropdownItem(_ref) {
|
|
|
5721
5720
|
};
|
|
5722
5721
|
ButtonDropdownItem.displayName = 'ButtonDropdownItem';
|
|
5723
5722
|
|
|
5724
|
-
var _excluded$
|
|
5723
|
+
var _excluded$16 = ["children", "type", "auto", "className", "disabled", "loading", "icon"];
|
|
5725
5724
|
var stopPropagation$1 = function stopPropagation(event) {
|
|
5726
5725
|
event.stopPropagation();
|
|
5727
5726
|
event.nativeEvent.stopImmediatePropagation();
|
|
@@ -5739,7 +5738,7 @@ var ButtonDropdownComponent = function ButtonDropdownComponent(_ref) {
|
|
|
5739
5738
|
_ref$loading = _ref.loading,
|
|
5740
5739
|
loading = _ref$loading === void 0 ? false : _ref$loading,
|
|
5741
5740
|
icon = _ref.icon,
|
|
5742
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5741
|
+
props = _objectWithoutProperties(_ref, _excluded$16);
|
|
5743
5742
|
var _useScale = useScale(),
|
|
5744
5743
|
SCALES = _useScale.SCALES;
|
|
5745
5744
|
var ref = React.useRef(null);
|
|
@@ -5821,7 +5820,7 @@ var ButtonDropdown = withScale(ButtonDropdownComponent);
|
|
|
5821
5820
|
/* "use client" */
|
|
5822
5821
|
ButtonDropdown.Item = ButtonDropdownItem;
|
|
5823
5822
|
|
|
5824
|
-
var _excluded$
|
|
5823
|
+
var _excluded$15 = ["disabled", "type", "ghost", "vertical", "children", "className"];
|
|
5825
5824
|
var getGroupBorderColors = function getGroupBorderColors(palette, props) {
|
|
5826
5825
|
var _props$ghost = props.ghost,
|
|
5827
5826
|
ghost = _props$ghost === void 0 ? false : _props$ghost,
|
|
@@ -5848,7 +5847,7 @@ var ButtonGroupComponent = function ButtonGroupComponent(groupProps) {
|
|
|
5848
5847
|
vertical = groupProps.vertical,
|
|
5849
5848
|
children = groupProps.children,
|
|
5850
5849
|
className = groupProps.className,
|
|
5851
|
-
props = _objectWithoutProperties(groupProps, _excluded$
|
|
5850
|
+
props = _objectWithoutProperties(groupProps, _excluded$15);
|
|
5852
5851
|
var initialValue = React.useMemo(function () {
|
|
5853
5852
|
return {
|
|
5854
5853
|
disabled: disabled,
|
|
@@ -5908,7 +5907,7 @@ var useProportions = function useProportions(value, max) {
|
|
|
5908
5907
|
}, [value, max, maxFixed]);
|
|
5909
5908
|
};
|
|
5910
5909
|
|
|
5911
|
-
var _excluded$
|
|
5910
|
+
var _excluded$14 = ["value", "limit", "color", "className"];
|
|
5912
5911
|
var getColor$3 = function getColor(val, palette) {
|
|
5913
5912
|
if (val < 33) return palette.cyan;
|
|
5914
5913
|
if (val < 66) return palette.warning;
|
|
@@ -5922,7 +5921,7 @@ var CapacityComponent = function CapacityComponent(_ref) {
|
|
|
5922
5921
|
userColor = _ref.color,
|
|
5923
5922
|
_ref$className = _ref.className,
|
|
5924
5923
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
5925
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
5924
|
+
props = _objectWithoutProperties(_ref, _excluded$14);
|
|
5926
5925
|
var theme$1 = theme.useTheme();
|
|
5927
5926
|
var _useScale = useScale(),
|
|
5928
5927
|
SCALES = _useScale.SCALES;
|
|
@@ -6001,14 +6000,14 @@ var getStyles$1 = function getStyles(type, palette, isShadow) {
|
|
|
6001
6000
|
});
|
|
6002
6001
|
};
|
|
6003
6002
|
|
|
6004
|
-
var _excluded$
|
|
6003
|
+
var _excluded$13 = ["children", "className", "disableAutoMargin"];
|
|
6005
6004
|
var CardFooterComponent = function CardFooterComponent(_ref) {
|
|
6006
6005
|
var children = _ref.children,
|
|
6007
6006
|
_ref$className = _ref.className,
|
|
6008
6007
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
6009
6008
|
_ref$disableAutoMargi = _ref.disableAutoMargin,
|
|
6010
6009
|
disableAutoMargin = _ref$disableAutoMargi === void 0 ? false : _ref$disableAutoMargi,
|
|
6011
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6010
|
+
props = _objectWithoutProperties(_ref, _excluded$13);
|
|
6012
6011
|
var theme$1 = theme.useTheme();
|
|
6013
6012
|
var _useScale = useScale(),
|
|
6014
6013
|
SCALES = _useScale.SCALES;
|
|
@@ -6027,12 +6026,12 @@ var CardFooterComponent = function CardFooterComponent(_ref) {
|
|
|
6027
6026
|
CardFooterComponent.displayName = 'CardFooter';
|
|
6028
6027
|
var CardFooter = withScale(CardFooterComponent);
|
|
6029
6028
|
|
|
6030
|
-
var _excluded$
|
|
6029
|
+
var _excluded$12 = ["className", "children"];
|
|
6031
6030
|
var CardContentComponent = function CardContentComponent(_ref) {
|
|
6032
6031
|
var _ref$className = _ref.className,
|
|
6033
6032
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
6034
6033
|
children = _ref.children,
|
|
6035
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6034
|
+
props = _objectWithoutProperties(_ref, _excluded$12);
|
|
6036
6035
|
var _useScale = useScale(),
|
|
6037
6036
|
SCALES = _useScale.SCALES;
|
|
6038
6037
|
return /*#__PURE__*/jsxRuntime.jsxs("div", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
@@ -6047,11 +6046,11 @@ var CardContentComponent = function CardContentComponent(_ref) {
|
|
|
6047
6046
|
CardContentComponent.displayName = 'CardContent';
|
|
6048
6047
|
var CardContent = withScale(CardContentComponent);
|
|
6049
6048
|
|
|
6050
|
-
var _excluded$
|
|
6049
|
+
var _excluded$11 = ["opacity"];
|
|
6051
6050
|
var ImageSkeleton = /*#__PURE__*/React.memo(function (_ref) {
|
|
6052
6051
|
var _ref$opacity = _ref.opacity,
|
|
6053
6052
|
opacity = _ref$opacity === void 0 ? 0.5 : _ref$opacity,
|
|
6054
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6053
|
+
props = _objectWithoutProperties(_ref, _excluded$11);
|
|
6055
6054
|
var theme$1 = theme.useTheme();
|
|
6056
6055
|
return /*#__PURE__*/jsxRuntime.jsx("div", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
6057
6056
|
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"),
|
|
@@ -6079,7 +6078,7 @@ var getHostFromUrl = function getHostFromUrl(url) {
|
|
|
6079
6078
|
}
|
|
6080
6079
|
};
|
|
6081
6080
|
|
|
6082
|
-
var _excluded
|
|
6081
|
+
var _excluded$10 = ["src", "disableSkeleton", "className", "maxDelay"];
|
|
6083
6082
|
var ImageComponent = function ImageComponent(_ref) {
|
|
6084
6083
|
var src = _ref.src,
|
|
6085
6084
|
_ref$disableSkeleton = _ref.disableSkeleton,
|
|
@@ -6088,7 +6087,7 @@ var ImageComponent = function ImageComponent(_ref) {
|
|
|
6088
6087
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
6089
6088
|
_ref$maxDelay = _ref.maxDelay,
|
|
6090
6089
|
maxDelay = _ref$maxDelay === void 0 ? 3000 : _ref$maxDelay,
|
|
6091
|
-
props = _objectWithoutProperties(_ref, _excluded
|
|
6090
|
+
props = _objectWithoutProperties(_ref, _excluded$10);
|
|
6092
6091
|
var _useScale = useScale(),
|
|
6093
6092
|
SCALES = _useScale.SCALES,
|
|
6094
6093
|
getScaleProps = _useScale.getScaleProps;
|
|
@@ -6188,7 +6187,7 @@ var getBrowserColors = function getBrowserColors(invert, palette) {
|
|
|
6188
6187
|
};
|
|
6189
6188
|
};
|
|
6190
6189
|
|
|
6191
|
-
var _excluded
|
|
6190
|
+
var _excluded$$ = ["url", "title", "children", "showFullLink", "invert", "anchorProps", "className"];
|
|
6192
6191
|
var getTitle = function getTitle(title, colors) {
|
|
6193
6192
|
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
6194
6193
|
className: _JSXStyle.dynamic([["524099755", [colors.titleColor]]]) + " " + "title",
|
|
@@ -6230,7 +6229,7 @@ var ImageBrowserComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
6230
6229
|
anchorProps = _ref$anchorProps === void 0 ? {} : _ref$anchorProps,
|
|
6231
6230
|
_ref$className = _ref.className,
|
|
6232
6231
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
6233
|
-
props = _objectWithoutProperties(_ref, _excluded
|
|
6232
|
+
props = _objectWithoutProperties(_ref, _excluded$$);
|
|
6234
6233
|
var theme$1 = theme.useTheme();
|
|
6235
6234
|
var _useScale = useScale(),
|
|
6236
6235
|
SCALES = _useScale.SCALES;
|
|
@@ -6270,7 +6269,7 @@ var ImageBrowser = withScale(ImageBrowserComponent);
|
|
|
6270
6269
|
|
|
6271
6270
|
Image.Browser = ImageBrowser;
|
|
6272
6271
|
|
|
6273
|
-
var _excluded$
|
|
6272
|
+
var _excluded$_ = ["children", "hoverable", "className", "shadow", "type"];
|
|
6274
6273
|
var CardComponent = function CardComponent(_ref) {
|
|
6275
6274
|
var children = _ref.children,
|
|
6276
6275
|
_ref$hoverable = _ref.hoverable,
|
|
@@ -6281,7 +6280,7 @@ var CardComponent = function CardComponent(_ref) {
|
|
|
6281
6280
|
shadow = _ref$shadow === void 0 ? false : _ref$shadow,
|
|
6282
6281
|
_ref$type = _ref.type,
|
|
6283
6282
|
type = _ref$type === void 0 ? 'default' : _ref$type,
|
|
6284
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6283
|
+
props = _objectWithoutProperties(_ref, _excluded$_);
|
|
6285
6284
|
var theme$1 = theme.useTheme();
|
|
6286
6285
|
var _useScale = useScale(),
|
|
6287
6286
|
SCALES = _useScale.SCALES;
|
|
@@ -6425,7 +6424,7 @@ var getColors$6 = function getColors(palette, status) {
|
|
|
6425
6424
|
return colors[status];
|
|
6426
6425
|
};
|
|
6427
6426
|
|
|
6428
|
-
var _excluded$
|
|
6427
|
+
var _excluded$Z = ["checked", "initialChecked", "disabled", "onChange", "className", "children", "type", "value", "block"];
|
|
6429
6428
|
var CheckboxComponent = function CheckboxComponent(_ref) {
|
|
6430
6429
|
var checked = _ref.checked,
|
|
6431
6430
|
_ref$initialChecked = _ref.initialChecked,
|
|
@@ -6442,7 +6441,7 @@ var CheckboxComponent = function CheckboxComponent(_ref) {
|
|
|
6442
6441
|
value = _ref$value === void 0 ? '' : _ref$value,
|
|
6443
6442
|
_ref$block = _ref.block,
|
|
6444
6443
|
block = _ref$block === void 0 ? false : _ref$block,
|
|
6445
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6444
|
+
props = _objectWithoutProperties(_ref, _excluded$Z);
|
|
6446
6445
|
var theme$1 = theme.useTheme();
|
|
6447
6446
|
var _useScale = useScale(),
|
|
6448
6447
|
SCALES = _useScale.SCALES;
|
|
@@ -6525,7 +6524,7 @@ var CheckboxComponent = function CheckboxComponent(_ref) {
|
|
|
6525
6524
|
CheckboxComponent.displayName = 'Checkbox';
|
|
6526
6525
|
var Checkbox = withScale(CheckboxComponent);
|
|
6527
6526
|
|
|
6528
|
-
var _excluded$
|
|
6527
|
+
var _excluded$Y = ["disabled", "onChange", "value", "children", "className"];
|
|
6529
6528
|
var CheckboxGroupComponent = function CheckboxGroupComponent(_ref) {
|
|
6530
6529
|
var _ref$disabled = _ref.disabled,
|
|
6531
6530
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
@@ -6534,7 +6533,7 @@ var CheckboxGroupComponent = function CheckboxGroupComponent(_ref) {
|
|
|
6534
6533
|
children = _ref.children,
|
|
6535
6534
|
_ref$className = _ref.className,
|
|
6536
6535
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
6537
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6536
|
+
props = _objectWithoutProperties(_ref, _excluded$Y);
|
|
6538
6537
|
var _useScale = useScale(),
|
|
6539
6538
|
SCALES = _useScale.SCALES;
|
|
6540
6539
|
var _useState = React.useState([]),
|
|
@@ -6584,7 +6583,7 @@ var CheckboxGroup = withScale(CheckboxGroupComponent);
|
|
|
6584
6583
|
|
|
6585
6584
|
Checkbox.Group = CheckboxGroup;
|
|
6586
6585
|
|
|
6587
|
-
var _excluded$
|
|
6586
|
+
var _excluded$X = ["children", "block", "className", "name", "classic"];
|
|
6588
6587
|
var CodeComponent = function CodeComponent(_ref) {
|
|
6589
6588
|
var children = _ref.children,
|
|
6590
6589
|
_ref$block = _ref.block,
|
|
@@ -6595,7 +6594,7 @@ var CodeComponent = function CodeComponent(_ref) {
|
|
|
6595
6594
|
name = _ref$name === void 0 ? '' : _ref$name,
|
|
6596
6595
|
_ref$classic = _ref.classic,
|
|
6597
6596
|
classic = _ref$classic === void 0 ? false : _ref$classic,
|
|
6598
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6597
|
+
props = _objectWithoutProperties(_ref, _excluded$X);
|
|
6599
6598
|
var _useScale = useScale(),
|
|
6600
6599
|
SCALES = _useScale.SCALES;
|
|
6601
6600
|
var theme$1 = theme.useTheme();
|
|
@@ -6813,7 +6812,7 @@ var useCollapseContext = function useCollapseContext() {
|
|
|
6813
6812
|
return React.useContext(CollapseContext);
|
|
6814
6813
|
};
|
|
6815
6814
|
|
|
6816
|
-
var _excluded$
|
|
6815
|
+
var _excluded$W = ["children", "title", "subtitle", "initialVisible", "shadow", "className", "index"];
|
|
6817
6816
|
var CollapseComponent = function CollapseComponent(_ref) {
|
|
6818
6817
|
var children = _ref.children,
|
|
6819
6818
|
title = _ref.title,
|
|
@@ -6825,7 +6824,7 @@ var CollapseComponent = function CollapseComponent(_ref) {
|
|
|
6825
6824
|
_ref$className = _ref.className,
|
|
6826
6825
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
6827
6826
|
index = _ref.index,
|
|
6828
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6827
|
+
props = _objectWithoutProperties(_ref, _excluded$W);
|
|
6829
6828
|
var theme$1 = theme.useTheme();
|
|
6830
6829
|
var _useScale = useScale(),
|
|
6831
6830
|
SCALES = _useScale.SCALES;
|
|
@@ -6889,14 +6888,14 @@ var CollapseComponent = function CollapseComponent(_ref) {
|
|
|
6889
6888
|
CollapseComponent.displayName = 'Collapse';
|
|
6890
6889
|
var Collapse = withScale(CollapseComponent);
|
|
6891
6890
|
|
|
6892
|
-
var _excluded$
|
|
6891
|
+
var _excluded$V = ["children", "accordion", "className"];
|
|
6893
6892
|
var CollapseGroupComponent = function CollapseGroupComponent(_ref) {
|
|
6894
6893
|
var children = _ref.children,
|
|
6895
6894
|
_ref$accordion = _ref.accordion,
|
|
6896
6895
|
accordion = _ref$accordion === void 0 ? true : _ref$accordion,
|
|
6897
6896
|
_ref$className = _ref.className,
|
|
6898
6897
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
6899
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6898
|
+
props = _objectWithoutProperties(_ref, _excluded$V);
|
|
6900
6899
|
var _useScale = useScale(),
|
|
6901
6900
|
SCALES = _useScale.SCALES;
|
|
6902
6901
|
var _useCurrentState = theme.useCurrentState([]),
|
|
@@ -6952,7 +6951,7 @@ var CollapseGroup = withScale(CollapseGroupComponent);
|
|
|
6952
6951
|
|
|
6953
6952
|
Collapse.Group = CollapseGroup;
|
|
6954
6953
|
|
|
6955
|
-
var _excluded$
|
|
6954
|
+
var _excluded$U = ["title", "content", "className"];
|
|
6956
6955
|
var DescriptionComponent = function DescriptionComponent(_ref) {
|
|
6957
6956
|
var _ref$title = _ref.title,
|
|
6958
6957
|
title = _ref$title === void 0 ? 'Title' : _ref$title,
|
|
@@ -6960,7 +6959,7 @@ var DescriptionComponent = function DescriptionComponent(_ref) {
|
|
|
6960
6959
|
content = _ref$content === void 0 ? '' : _ref$content,
|
|
6961
6960
|
_ref$className = _ref.className,
|
|
6962
6961
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
6963
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6962
|
+
props = _objectWithoutProperties(_ref, _excluded$U);
|
|
6964
6963
|
var theme$1 = theme.useTheme();
|
|
6965
6964
|
var _useScale = useScale(),
|
|
6966
6965
|
SCALES = _useScale.SCALES;
|
|
@@ -6983,7 +6982,7 @@ var DescriptionComponent = function DescriptionComponent(_ref) {
|
|
|
6983
6982
|
DescriptionComponent.displayName = 'Description';
|
|
6984
6983
|
var Description = withScale(DescriptionComponent);
|
|
6985
6984
|
|
|
6986
|
-
var _excluded$
|
|
6985
|
+
var _excluded$T = ["children", "caption", "shadow", "className"];
|
|
6987
6986
|
var DisplayComponent = function DisplayComponent(_ref) {
|
|
6988
6987
|
var children = _ref.children,
|
|
6989
6988
|
_ref$caption = _ref.caption,
|
|
@@ -6992,7 +6991,7 @@ var DisplayComponent = function DisplayComponent(_ref) {
|
|
|
6992
6991
|
shadow = _ref$shadow === void 0 ? false : _ref$shadow,
|
|
6993
6992
|
_ref$className = _ref.className,
|
|
6994
6993
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
6995
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
6994
|
+
props = _objectWithoutProperties(_ref, _excluded$T);
|
|
6996
6995
|
var theme$1 = theme.useTheme();
|
|
6997
6996
|
var _useScale = useScale(),
|
|
6998
6997
|
SCALES = _useScale.SCALES;
|
|
@@ -7018,7 +7017,7 @@ var DisplayComponent = function DisplayComponent(_ref) {
|
|
|
7018
7017
|
DisplayComponent.displayName = 'Display';
|
|
7019
7018
|
var Display = withScale(DisplayComponent);
|
|
7020
7019
|
|
|
7021
|
-
var _excluded$
|
|
7020
|
+
var _excluded$S = ["type", "align", "children", "className"];
|
|
7022
7021
|
var getColor$2 = function getColor(type, palette) {
|
|
7023
7022
|
var colors = {
|
|
7024
7023
|
"default": palette.border,
|
|
@@ -7039,7 +7038,7 @@ var DividerComponent = function DividerComponent(_ref) {
|
|
|
7039
7038
|
children = _ref.children,
|
|
7040
7039
|
_ref$className = _ref.className,
|
|
7041
7040
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
7042
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7041
|
+
props = _objectWithoutProperties(_ref, _excluded$S);
|
|
7043
7042
|
var theme$1 = theme.useTheme();
|
|
7044
7043
|
var _useScale = useScale(),
|
|
7045
7044
|
SCALES = _useScale.SCALES;
|
|
@@ -7071,7 +7070,7 @@ var DividerComponent = function DividerComponent(_ref) {
|
|
|
7071
7070
|
DividerComponent.displayName = 'Divider';
|
|
7072
7071
|
var Divider = withScale(DividerComponent);
|
|
7073
7072
|
|
|
7074
|
-
var _excluded$
|
|
7073
|
+
var _excluded$R = ["type", "children", "className"];
|
|
7075
7074
|
var getColor$1 = function getColor(type, theme) {
|
|
7076
7075
|
var colors = {
|
|
7077
7076
|
"default": theme.palette.accents_2,
|
|
@@ -7087,7 +7086,7 @@ var DotComponent = function DotComponent(_ref) {
|
|
|
7087
7086
|
children = _ref.children,
|
|
7088
7087
|
_ref$className = _ref.className,
|
|
7089
7088
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
7090
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7089
|
+
props = _objectWithoutProperties(_ref, _excluded$R);
|
|
7091
7090
|
var theme$1 = theme.useTheme();
|
|
7092
7091
|
var _useScale = useScale(),
|
|
7093
7092
|
SCALES = _useScale.SCALES;
|
|
@@ -7425,7 +7424,7 @@ var getDrawerTransform = function getDrawerTransform(placement) {
|
|
|
7425
7424
|
return translates[placement];
|
|
7426
7425
|
};
|
|
7427
7426
|
|
|
7428
|
-
var _excluded$
|
|
7427
|
+
var _excluded$Q = ["className", "children", "visible", "placement"];
|
|
7429
7428
|
var DrawerWrapper = function DrawerWrapper(_ref) {
|
|
7430
7429
|
var _ref$className = _ref.className,
|
|
7431
7430
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
@@ -7433,7 +7432,7 @@ var DrawerWrapper = function DrawerWrapper(_ref) {
|
|
|
7433
7432
|
_ref$visible = _ref.visible,
|
|
7434
7433
|
visible = _ref$visible === void 0 ? false : _ref$visible,
|
|
7435
7434
|
placement = _ref.placement,
|
|
7436
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7435
|
+
props = _objectWithoutProperties(_ref, _excluded$Q);
|
|
7437
7436
|
var theme$1 = theme.useTheme();
|
|
7438
7437
|
var _useScale = useScale(),
|
|
7439
7438
|
SCALES = _useScale.SCALES;
|
|
@@ -7496,7 +7495,7 @@ var DrawerWrapper = function DrawerWrapper(_ref) {
|
|
|
7496
7495
|
};
|
|
7497
7496
|
DrawerWrapper.displayName = 'DrawerWrapper';
|
|
7498
7497
|
|
|
7499
|
-
var _excluded$
|
|
7498
|
+
var _excluded$P = ["visible", "keyboard", "disableBackdropClick", "onClose", "onContentClick", "wrapClassName", "children", "placement"];
|
|
7500
7499
|
var DrawerComponent = function DrawerComponent(_ref) {
|
|
7501
7500
|
var customVisible = _ref.visible,
|
|
7502
7501
|
_ref$keyboard = _ref.keyboard,
|
|
@@ -7510,7 +7509,7 @@ var DrawerComponent = function DrawerComponent(_ref) {
|
|
|
7510
7509
|
children = _ref.children,
|
|
7511
7510
|
_ref$placement = _ref.placement,
|
|
7512
7511
|
placement = _ref$placement === void 0 ? 'right' : _ref$placement,
|
|
7513
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7512
|
+
props = _objectWithoutProperties(_ref, _excluded$P);
|
|
7514
7513
|
var portal = usePortal('drawer');
|
|
7515
7514
|
var _useState = React.useState(false),
|
|
7516
7515
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -7559,12 +7558,12 @@ var DrawerComponent = function DrawerComponent(_ref) {
|
|
|
7559
7558
|
};
|
|
7560
7559
|
DrawerComponent.displayName = 'Drawer';
|
|
7561
7560
|
|
|
7562
|
-
var _excluded$
|
|
7561
|
+
var _excluded$O = ["className", "children"];
|
|
7563
7562
|
var ModalTitleComponent = function ModalTitleComponent(_ref) {
|
|
7564
7563
|
var _ref$className = _ref.className,
|
|
7565
7564
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
7566
7565
|
children = _ref.children,
|
|
7567
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7566
|
+
props = _objectWithoutProperties(_ref, _excluded$O);
|
|
7568
7567
|
var theme$1 = theme.useTheme();
|
|
7569
7568
|
var _useScale = useScale(),
|
|
7570
7569
|
SCALES = _useScale.SCALES;
|
|
@@ -7582,12 +7581,12 @@ var ModalTitleComponent = function ModalTitleComponent(_ref) {
|
|
|
7582
7581
|
ModalTitleComponent.displayName = 'ModalTitle';
|
|
7583
7582
|
var ModalTitle = withScale(ModalTitleComponent);
|
|
7584
7583
|
|
|
7585
|
-
var _excluded$
|
|
7584
|
+
var _excluded$N = ["className", "children"];
|
|
7586
7585
|
var ModalSubtitleComponent = function ModalSubtitleComponent(_ref) {
|
|
7587
7586
|
var _ref$className = _ref.className,
|
|
7588
7587
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
7589
7588
|
children = _ref.children,
|
|
7590
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7589
|
+
props = _objectWithoutProperties(_ref, _excluded$N);
|
|
7591
7590
|
var theme$1 = theme.useTheme();
|
|
7592
7591
|
var _useScale = useScale(),
|
|
7593
7592
|
SCALES = _useScale.SCALES;
|
|
@@ -7605,12 +7604,12 @@ var ModalSubtitleComponent = function ModalSubtitleComponent(_ref) {
|
|
|
7605
7604
|
ModalSubtitleComponent.displayName = 'ModalSubtitle';
|
|
7606
7605
|
var ModalSubtitle = withScale(ModalSubtitleComponent);
|
|
7607
7606
|
|
|
7608
|
-
var _excluded$
|
|
7607
|
+
var _excluded$M = ["className", "children"];
|
|
7609
7608
|
var ModalContentComponent = function ModalContentComponent(_ref) {
|
|
7610
7609
|
var _ref$className = _ref.className,
|
|
7611
7610
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
7612
7611
|
children = _ref.children,
|
|
7613
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7612
|
+
props = _objectWithoutProperties(_ref, _excluded$M);
|
|
7614
7613
|
var _useScale = useScale(),
|
|
7615
7614
|
SCALES = _useScale.SCALES;
|
|
7616
7615
|
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
@@ -7632,12 +7631,12 @@ DrawerComponent.Title = ModalTitle;
|
|
|
7632
7631
|
DrawerComponent.Subtitle = ModalSubtitle;
|
|
7633
7632
|
DrawerComponent.Content = ModalContent;
|
|
7634
7633
|
|
|
7635
|
-
var _excluded$
|
|
7634
|
+
var _excluded$L = ["className", "children"];
|
|
7636
7635
|
var FieldsetTitle = function FieldsetTitle(_ref) {
|
|
7637
7636
|
var _ref$className = _ref.className,
|
|
7638
7637
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
7639
7638
|
children = _ref.children,
|
|
7640
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7639
|
+
props = _objectWithoutProperties(_ref, _excluded$L);
|
|
7641
7640
|
var classes = theme.useClasses('title', className);
|
|
7642
7641
|
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
7643
7642
|
children: [/*#__PURE__*/jsxRuntime.jsx("div", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
@@ -7651,12 +7650,12 @@ var FieldsetTitle = function FieldsetTitle(_ref) {
|
|
|
7651
7650
|
};
|
|
7652
7651
|
FieldsetTitle.displayName = 'FieldsetTitle';
|
|
7653
7652
|
|
|
7654
|
-
var _excluded$
|
|
7653
|
+
var _excluded$K = ["className", "children"];
|
|
7655
7654
|
var FieldsetSubtitle = function FieldsetSubtitle(_ref) {
|
|
7656
7655
|
var _ref$className = _ref.className,
|
|
7657
7656
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
7658
7657
|
children = _ref.children,
|
|
7659
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7658
|
+
props = _objectWithoutProperties(_ref, _excluded$K);
|
|
7660
7659
|
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
7661
7660
|
children: [/*#__PURE__*/jsxRuntime.jsx("div", _objectSpread2(_objectSpread2({}, props), {}, {
|
|
7662
7661
|
className: "jsx-2265168013" + " " + (props && props.className != null && props.className || className || ""),
|
|
@@ -7669,12 +7668,12 @@ var FieldsetSubtitle = function FieldsetSubtitle(_ref) {
|
|
|
7669
7668
|
};
|
|
7670
7669
|
FieldsetSubtitle.displayName = 'FieldsetSubtitle';
|
|
7671
7670
|
|
|
7672
|
-
var _excluded$
|
|
7671
|
+
var _excluded$J = ["className", "children"];
|
|
7673
7672
|
var FieldsetFooterComponent = function FieldsetFooterComponent(_ref) {
|
|
7674
7673
|
var _ref$className = _ref.className,
|
|
7675
7674
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
7676
7675
|
children = _ref.children,
|
|
7677
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7676
|
+
props = _objectWithoutProperties(_ref, _excluded$J);
|
|
7678
7677
|
var theme$1 = theme.useTheme();
|
|
7679
7678
|
var _useScale = useScale(),
|
|
7680
7679
|
SCALES = _useScale.SCALES;
|
|
@@ -7690,12 +7689,12 @@ var FieldsetFooterComponent = function FieldsetFooterComponent(_ref) {
|
|
|
7690
7689
|
FieldsetFooterComponent.displayName = 'FieldsetFooter';
|
|
7691
7690
|
var FieldsetFooter = withScale(FieldsetFooterComponent);
|
|
7692
7691
|
|
|
7693
|
-
var _excluded$
|
|
7692
|
+
var _excluded$I = ["className", "children"];
|
|
7694
7693
|
var FieldsetContentComponent = function FieldsetContentComponent(_ref) {
|
|
7695
7694
|
var _ref$className = _ref.className,
|
|
7696
7695
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
7697
7696
|
children = _ref.children,
|
|
7698
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7697
|
+
props = _objectWithoutProperties(_ref, _excluded$I);
|
|
7699
7698
|
var _useScale = useScale(),
|
|
7700
7699
|
SCALES = _useScale.SCALES;
|
|
7701
7700
|
var classes = theme.useClasses('content', className);
|
|
@@ -7722,7 +7721,7 @@ var useFieldset = function useFieldset() {
|
|
|
7722
7721
|
return React.useContext(FieldsetContext);
|
|
7723
7722
|
};
|
|
7724
7723
|
|
|
7725
|
-
var _excluded$
|
|
7724
|
+
var _excluded$H = ["className", "title", "subtitle", "children", "value", "label"];
|
|
7726
7725
|
var FieldsetComponent = function FieldsetComponent(_ref) {
|
|
7727
7726
|
var _ref$className = _ref.className,
|
|
7728
7727
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
@@ -7735,7 +7734,7 @@ var FieldsetComponent = function FieldsetComponent(_ref) {
|
|
|
7735
7734
|
value = _ref$value === void 0 ? '' : _ref$value,
|
|
7736
7735
|
_ref$label = _ref.label,
|
|
7737
7736
|
label = _ref$label === void 0 ? '' : _ref$label,
|
|
7738
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7737
|
+
props = _objectWithoutProperties(_ref, _excluded$H);
|
|
7739
7738
|
var theme$1 = theme.useTheme();
|
|
7740
7739
|
var _useScale = useScale(),
|
|
7741
7740
|
SCALES = _useScale.SCALES;
|
|
@@ -7799,14 +7798,14 @@ var FieldsetComponent = function FieldsetComponent(_ref) {
|
|
|
7799
7798
|
FieldsetComponent.displayName = 'Fieldset';
|
|
7800
7799
|
var Fieldset = withScale(FieldsetComponent);
|
|
7801
7800
|
|
|
7802
|
-
var _excluded$
|
|
7801
|
+
var _excluded$G = ["className", "children", "value", "onChange"];
|
|
7803
7802
|
var FieldsetGroupComponent = function FieldsetGroupComponent(_ref) {
|
|
7804
7803
|
var _ref$className = _ref.className,
|
|
7805
7804
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
7806
7805
|
children = _ref.children,
|
|
7807
7806
|
value = _ref.value,
|
|
7808
7807
|
onChange = _ref.onChange,
|
|
7809
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7808
|
+
props = _objectWithoutProperties(_ref, _excluded$G);
|
|
7810
7809
|
var theme$1 = theme.useTheme();
|
|
7811
7810
|
var _useScale = useScale(),
|
|
7812
7811
|
SCALES = _useScale.SCALES;
|
|
@@ -12515,7 +12514,7 @@ function setNestedObjectValues(object, value) {
|
|
|
12515
12514
|
|
|
12516
12515
|
var __DEV__ = true;
|
|
12517
12516
|
|
|
12518
|
-
var _excluded$
|
|
12517
|
+
var _excluded$F = ["validateOnChange", "validateOnBlur", "validateOnMount", "isInitialValid", "enableReinitialize", "onSubmit"];
|
|
12519
12518
|
// State reducer
|
|
12520
12519
|
function formikReducer(state, msg) {
|
|
12521
12520
|
switch (msg.type) {
|
|
@@ -12599,7 +12598,7 @@ function useFormik(_ref) {
|
|
|
12599
12598
|
_ref$enableReinitiali = _ref.enableReinitialize,
|
|
12600
12599
|
enableReinitialize = _ref$enableReinitiali === void 0 ? false : _ref$enableReinitiali,
|
|
12601
12600
|
onSubmit = _ref.onSubmit,
|
|
12602
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
12601
|
+
rest = _objectWithoutProperties(_ref, _excluded$F);
|
|
12603
12602
|
var props = _objectSpread2({
|
|
12604
12603
|
validateOnChange: validateOnChange,
|
|
12605
12604
|
validateOnBlur: validateOnBlur,
|
|
@@ -13472,6 +13471,26 @@ function useEventCallback(fn) {
|
|
|
13472
13471
|
}, []);
|
|
13473
13472
|
}
|
|
13474
13473
|
|
|
13474
|
+
var _excluded$E = ["action"];
|
|
13475
|
+
// @todo tests
|
|
13476
|
+
var Form = /*#__PURE__*/React__namespace.forwardRef(function (props, ref) {
|
|
13477
|
+
// iOS needs an "action" attribute for nice input: https://stackoverflow.com/a/39485162/406725
|
|
13478
|
+
// We default the action to "#" in case the preventDefault fails (just updates the URL hash)
|
|
13479
|
+
var action = props.action,
|
|
13480
|
+
rest = _objectWithoutProperties(props, _excluded$E);
|
|
13481
|
+
var _action = action !== null && action !== void 0 ? action : '#';
|
|
13482
|
+
var _useFormikContext = useFormikContext(),
|
|
13483
|
+
handleReset = _useFormikContext.handleReset,
|
|
13484
|
+
handleSubmit = _useFormikContext.handleSubmit;
|
|
13485
|
+
return /*#__PURE__*/jsxRuntime.jsx("form", _objectSpread2({
|
|
13486
|
+
onSubmit: handleSubmit,
|
|
13487
|
+
ref: ref,
|
|
13488
|
+
onReset: handleReset,
|
|
13489
|
+
action: _action
|
|
13490
|
+
}, rest));
|
|
13491
|
+
});
|
|
13492
|
+
Form.displayName = 'Form';
|
|
13493
|
+
|
|
13475
13494
|
var _excluded$D = ["mapPropsToValues"],
|
|
13476
13495
|
_excluded2 = ["children"];
|
|
13477
13496
|
/**
|
|
@@ -35507,7 +35526,6 @@ function requireLodash () {
|
|
|
35507
35526
|
}
|
|
35508
35527
|
|
|
35509
35528
|
var lodashExports = requireLodash();
|
|
35510
|
-
var _ = /*@__PURE__*/getDefaultExportFromCjs(lodashExports);
|
|
35511
35529
|
|
|
35512
35530
|
var makeColgroup = function makeColgroup(width, columns) {
|
|
35513
35531
|
var colId = lodashExports.uniqueId('col');
|
|
@@ -35946,10 +35964,9 @@ var TableBody = function TableBody(_ref) {
|
|
|
35946
35964
|
return /*#__PURE__*/jsxRuntime.jsxs("tbody", {
|
|
35947
35965
|
className: _JSXStyle.dynamic([["1422656197", [theme$1.palette.accents_1, theme$1.palette.border, theme$1.palette.accents_6]]]),
|
|
35948
35966
|
children: [data.map(function (row, index) {
|
|
35949
|
-
|
|
35950
|
-
var qid = _.uniqueId();
|
|
35967
|
+
// const qid = _.uniqueId();
|
|
35951
35968
|
if (row === null || row === undefined) {
|
|
35952
|
-
var uid =
|
|
35969
|
+
var uid = lodashExports.uniqueId();
|
|
35953
35970
|
return /*#__PURE__*/jsxRuntime.jsx("tr", {
|
|
35954
35971
|
className: _JSXStyle.dynamic([["1422656197", [theme$1.palette.accents_1, theme$1.palette.border, theme$1.palette.accents_6]]]),
|
|
35955
35972
|
children: /*#__PURE__*/jsxRuntime.jsx("td", {
|
|
@@ -35959,28 +35976,8 @@ var TableBody = function TableBody(_ref) {
|
|
|
35959
35976
|
})
|
|
35960
35977
|
}, uid);
|
|
35961
35978
|
}
|
|
35962
|
-
return /*#__PURE__*/jsxRuntime.
|
|
35963
|
-
children:
|
|
35964
|
-
className: _JSXStyle.dynamic([["1422656197", [theme$1.palette.accents_1, theme$1.palette.border, theme$1.palette.accents_6]]]),
|
|
35965
|
-
children: /*#__PURE__*/jsxRuntime.jsx("td", {
|
|
35966
|
-
style: {
|
|
35967
|
-
padding: '1rem'
|
|
35968
|
-
},
|
|
35969
|
-
colSpan: columns.length,
|
|
35970
|
-
className: _JSXStyle.dynamic([["1422656197", [theme$1.palette.accents_1, theme$1.palette.border, theme$1.palette.accents_6]]]),
|
|
35971
|
-
children: /*#__PURE__*/jsxRuntime.jsx(pro.DataTable, {
|
|
35972
|
-
readOnly: true,
|
|
35973
|
-
stickyHeader: false,
|
|
35974
|
-
style: _objectSpread2({
|
|
35975
|
-
height: 'auto !important'
|
|
35976
|
-
}, row === null || row === void 0 || (_row$table = row.table) === null || _row$table === void 0 ? void 0 : _row$table.style),
|
|
35977
|
-
menu: (_row$table2 = row.table) === null || _row$table2 === void 0 ? void 0 : _row$table2.menu,
|
|
35978
|
-
rows: (_row$table3 = row.table) === null || _row$table3 === void 0 ? void 0 : _row$table3.rows,
|
|
35979
|
-
heading: (_row$table4 = row.table) === null || _row$table4 === void 0 ? void 0 : _row$table4.heading,
|
|
35980
|
-
cols: (_row$table5 = row.table) === null || _row$table5 === void 0 ? void 0 : _row$table5.cols
|
|
35981
|
-
})
|
|
35982
|
-
})
|
|
35983
|
-
}, qid)]
|
|
35979
|
+
return /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
35980
|
+
children: renderRow(columns, row, index)
|
|
35984
35981
|
});
|
|
35985
35982
|
|
|
35986
35983
|
// return (
|
|
@@ -39280,7 +39277,7 @@ var LoginSocialPinterest = function LoginSocialPinterest(_ref) {
|
|
|
39280
39277
|
formBody = [];
|
|
39281
39278
|
for (property in details) {
|
|
39282
39279
|
encodedKey = encodeURIComponent(property);
|
|
39283
|
-
encodedValue = encodeURIComponent(
|
|
39280
|
+
encodedValue = encodeURIComponent(lodashExports.get(details, property));
|
|
39284
39281
|
formBody.push(encodedKey + '=' + encodedValue);
|
|
39285
39282
|
}
|
|
39286
39283
|
formBody = formBody.join('&');
|
|
@@ -42792,6 +42789,7 @@ exports.Drawer = DrawerComponent;
|
|
|
42792
42789
|
exports.ErrorMessage = ErrorMessage;
|
|
42793
42790
|
exports.Expandable = Expandable;
|
|
42794
42791
|
exports.Fieldset = Fieldset;
|
|
42792
|
+
exports.Form = Form;
|
|
42795
42793
|
exports.FormWrapper = FormWrapper;
|
|
42796
42794
|
exports.FormikConsumer = FormikConsumer;
|
|
42797
42795
|
exports.FormikContext = FormikContext;
|
package/dist/table/index.js
CHANGED
|
@@ -6,7 +6,6 @@ var React = require('react');
|
|
|
6
6
|
var theme = require('@helpdice/theme');
|
|
7
7
|
var jsxRuntime = require('react/jsx-runtime');
|
|
8
8
|
var reactDom = require('react-dom');
|
|
9
|
-
var pro = require('@helpdice/pro');
|
|
10
9
|
var ChevronLeft = require('@helpdice/icons/curved/ChevronLeft');
|
|
11
10
|
var ChevronRight = require('@helpdice/icons/curved/ChevronRight');
|
|
12
11
|
|
|
@@ -21138,7 +21137,6 @@ function requireLodash () {
|
|
|
21138
21137
|
}
|
|
21139
21138
|
|
|
21140
21139
|
var lodashExports = requireLodash();
|
|
21141
|
-
var _ = /*@__PURE__*/getDefaultExportFromCjs(lodashExports);
|
|
21142
21140
|
|
|
21143
21141
|
var SelectIconComponent = function SelectIconComponent() {
|
|
21144
21142
|
return /*#__PURE__*/jsxRuntime.jsxs("svg", {
|
|
@@ -22716,10 +22714,9 @@ var TableBody = function TableBody(_ref) {
|
|
|
22716
22714
|
return /*#__PURE__*/jsxRuntime.jsxs("tbody", {
|
|
22717
22715
|
className: _JSXStyle.dynamic([["1422656197", [theme$1.palette.accents_1, theme$1.palette.border, theme$1.palette.accents_6]]]),
|
|
22718
22716
|
children: [data.map(function (row, index) {
|
|
22719
|
-
|
|
22720
|
-
var qid = _.uniqueId();
|
|
22717
|
+
// const qid = _.uniqueId();
|
|
22721
22718
|
if (row === null || row === undefined) {
|
|
22722
|
-
var uid =
|
|
22719
|
+
var uid = lodashExports.uniqueId();
|
|
22723
22720
|
return /*#__PURE__*/jsxRuntime.jsx("tr", {
|
|
22724
22721
|
className: _JSXStyle.dynamic([["1422656197", [theme$1.palette.accents_1, theme$1.palette.border, theme$1.palette.accents_6]]]),
|
|
22725
22722
|
children: /*#__PURE__*/jsxRuntime.jsx("td", {
|
|
@@ -22729,28 +22726,8 @@ var TableBody = function TableBody(_ref) {
|
|
|
22729
22726
|
})
|
|
22730
22727
|
}, uid);
|
|
22731
22728
|
}
|
|
22732
|
-
return /*#__PURE__*/jsxRuntime.
|
|
22733
|
-
children:
|
|
22734
|
-
className: _JSXStyle.dynamic([["1422656197", [theme$1.palette.accents_1, theme$1.palette.border, theme$1.palette.accents_6]]]),
|
|
22735
|
-
children: /*#__PURE__*/jsxRuntime.jsx("td", {
|
|
22736
|
-
style: {
|
|
22737
|
-
padding: '1rem'
|
|
22738
|
-
},
|
|
22739
|
-
colSpan: columns.length,
|
|
22740
|
-
className: _JSXStyle.dynamic([["1422656197", [theme$1.palette.accents_1, theme$1.palette.border, theme$1.palette.accents_6]]]),
|
|
22741
|
-
children: /*#__PURE__*/jsxRuntime.jsx(pro.DataTable, {
|
|
22742
|
-
readOnly: true,
|
|
22743
|
-
stickyHeader: false,
|
|
22744
|
-
style: _objectSpread2({
|
|
22745
|
-
height: 'auto !important'
|
|
22746
|
-
}, row === null || row === void 0 || (_row$table = row.table) === null || _row$table === void 0 ? void 0 : _row$table.style),
|
|
22747
|
-
menu: (_row$table2 = row.table) === null || _row$table2 === void 0 ? void 0 : _row$table2.menu,
|
|
22748
|
-
rows: (_row$table3 = row.table) === null || _row$table3 === void 0 ? void 0 : _row$table3.rows,
|
|
22749
|
-
heading: (_row$table4 = row.table) === null || _row$table4 === void 0 ? void 0 : _row$table4.heading,
|
|
22750
|
-
cols: (_row$table5 = row.table) === null || _row$table5 === void 0 ? void 0 : _row$table5.cols
|
|
22751
|
-
})
|
|
22752
|
-
})
|
|
22753
|
-
}, qid)]
|
|
22729
|
+
return /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
22730
|
+
children: renderRow(columns, row, index)
|
|
22754
22731
|
});
|
|
22755
22732
|
|
|
22756
22733
|
// return (
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export type FormikFormProps = Pick<React.FormHTMLAttributes<HTMLFormElement>, Exclude<keyof React.FormHTMLAttributes<HTMLFormElement>, 'onReset' | 'onSubmit'>>;
|
|
3
|
+
export declare const Form: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, "ref"> & React.RefAttributes<HTMLFormElement>>;
|
package/esm/form/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import connect from './connect';
|
|
2
2
|
import { FormWrapper, useFormik, yupToFormErrors, validateYupSchema, prepareDataForValidation } from './FormWrapper';
|
|
3
|
+
export * from './Form';
|
|
3
4
|
import withFormik from './withFormik';
|
|
4
5
|
import { isEmptyArray, isEmptyChildren, isInputEvent, isInteger, isObject, isPromise, isFunction, isNaN, isString, getActiveElement, getIn, setIn, setNestedObjectValues } from './utils';
|
|
5
6
|
import ErrorMessage from './ErrorMessage';
|
package/esm/form/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import connect from './connect';
|
|
3
3
|
import { FormWrapper, useFormik, yupToFormErrors, validateYupSchema, prepareDataForValidation } from './FormWrapper';
|
|
4
4
|
// export * from './Field';
|
|
5
|
-
|
|
5
|
+
export * from './Form';
|
|
6
6
|
import withFormik from './withFormik';
|
|
7
7
|
// import * as FieldArray from './FieldArray';
|
|
8
8
|
import { isEmptyArray, isEmptyChildren, isInputEvent, isInteger, isObject, isPromise, isFunction, isNaN, isString, getActiveElement, getIn, setIn, setNestedObjectValues } from './utils';
|
|
@@ -11,7 +11,7 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
|
11
11
|
/* "use client" */
|
|
12
12
|
|
|
13
13
|
import React, { memo, useCallback, useEffect } from 'react';
|
|
14
|
-
import
|
|
14
|
+
import { get } from 'lodash';
|
|
15
15
|
var PINTEREST_URL = 'https://www.pinterest.com/oauth';
|
|
16
16
|
var PINTEREST_URL_API = 'https://api.pinterest.com/v5';
|
|
17
17
|
var PREVENT_CORS_URL = '';
|
|
@@ -87,7 +87,7 @@ export var LoginSocialPinterest = function LoginSocialPinterest(_ref) {
|
|
|
87
87
|
formBody = [];
|
|
88
88
|
for (property in details) {
|
|
89
89
|
encodedKey = encodeURIComponent(property);
|
|
90
|
-
encodedValue = encodeURIComponent(
|
|
90
|
+
encodedValue = encodeURIComponent(get(details, property));
|
|
91
91
|
formBody.push(encodedKey + '=' + encodedValue);
|
|
92
92
|
}
|
|
93
93
|
formBody = formBody.join('&');
|
package/esm/table/table-body.js
CHANGED
|
@@ -3,11 +3,13 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
|
3
3
|
import _JSXStyle from "../styled-jsx.es.js";
|
|
4
4
|
import React, { useState } from 'react';
|
|
5
5
|
import { useTheme, useClasses } from '@helpdice/theme';
|
|
6
|
-
import
|
|
6
|
+
import { uniqueId } from 'lodash';
|
|
7
7
|
// import Placeholder from '../placeholder';
|
|
8
8
|
import TableCell from './table-cell';
|
|
9
9
|
import { useTableContext } from './table-context';
|
|
10
|
-
|
|
10
|
+
|
|
11
|
+
// import { DataTable } from '@helpdice/pro';
|
|
12
|
+
|
|
11
13
|
var TableBody = function TableBody(_ref) {
|
|
12
14
|
var data = _ref.data,
|
|
13
15
|
emptyText = _ref.emptyText,
|
|
@@ -138,10 +140,9 @@ var TableBody = function TableBody(_ref) {
|
|
|
138
140
|
return /*#__PURE__*/React.createElement("tbody", {
|
|
139
141
|
className: _JSXStyle.dynamic([["1422656197", [theme.palette.accents_1, theme.palette.border, theme.palette.accents_6]]])
|
|
140
142
|
}, data.map(function (row, index) {
|
|
141
|
-
|
|
142
|
-
var qid = _.uniqueId();
|
|
143
|
+
// const qid = _.uniqueId();
|
|
143
144
|
if (row === null || row === undefined) {
|
|
144
|
-
var uid =
|
|
145
|
+
var uid = uniqueId();
|
|
145
146
|
return /*#__PURE__*/React.createElement("tr", {
|
|
146
147
|
key: uid,
|
|
147
148
|
className: _JSXStyle.dynamic([["1422656197", [theme.palette.accents_1, theme.palette.border, theme.palette.accents_6]]])
|
|
@@ -150,26 +151,7 @@ var TableBody = function TableBody(_ref) {
|
|
|
150
151
|
className: _JSXStyle.dynamic([["1422656197", [theme.palette.accents_1, theme.palette.border, theme.palette.accents_6]]])
|
|
151
152
|
}, "\u2003"));
|
|
152
153
|
}
|
|
153
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, renderRow(columns, row, index)
|
|
154
|
-
key: qid,
|
|
155
|
-
className: _JSXStyle.dynamic([["1422656197", [theme.palette.accents_1, theme.palette.border, theme.palette.accents_6]]])
|
|
156
|
-
}, /*#__PURE__*/React.createElement("td", {
|
|
157
|
-
style: {
|
|
158
|
-
padding: '1rem'
|
|
159
|
-
},
|
|
160
|
-
colSpan: columns.length,
|
|
161
|
-
className: _JSXStyle.dynamic([["1422656197", [theme.palette.accents_1, theme.palette.border, theme.palette.accents_6]]])
|
|
162
|
-
}, /*#__PURE__*/React.createElement(DataTable, {
|
|
163
|
-
readOnly: true,
|
|
164
|
-
stickyHeader: false,
|
|
165
|
-
style: _extends({
|
|
166
|
-
height: 'auto !important'
|
|
167
|
-
}, row === null || row === void 0 || (_row$table = row.table) === null || _row$table === void 0 ? void 0 : _row$table.style),
|
|
168
|
-
menu: (_row$table2 = row.table) === null || _row$table2 === void 0 ? void 0 : _row$table2.menu,
|
|
169
|
-
rows: (_row$table3 = row.table) === null || _row$table3 === void 0 ? void 0 : _row$table3.rows,
|
|
170
|
-
heading: (_row$table4 = row.table) === null || _row$table4 === void 0 ? void 0 : _row$table4.heading,
|
|
171
|
-
cols: (_row$table5 = row.table) === null || _row$table5 === void 0 ? void 0 : _row$table5.cols
|
|
172
|
-
}))));
|
|
154
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, renderRow(columns, row, index));
|
|
173
155
|
|
|
174
156
|
// return (
|
|
175
157
|
// <tr
|