@helpdice/ui 2.6.1-beta.5 → 2.6.1-beta.6

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.
@@ -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>>;
@@ -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';
@@ -5025,7 +5025,7 @@ function setNestedObjectValues(object, value) {
5025
5025
 
5026
5026
  var __DEV__ = true;
5027
5027
 
5028
- var _excluded$2 = ["validateOnChange", "validateOnBlur", "validateOnMount", "isInitialValid", "enableReinitialize", "onSubmit"];
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$2);
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
@@ -1173,7 +1173,7 @@ var generateGetAllScaleProps = function generateGetAllScaleProps(props) {
1173
1173
  return getAllScaleProps;
1174
1174
  };
1175
1175
 
1176
- var _excluded$1o = ["children"];
1176
+ var _excluded$1p = ["children"];
1177
1177
  var reduceScaleCoefficient = function reduceScaleCoefficient(scale) {
1178
1178
  if (scale === 1) return scale;
1179
1179
  var diff = Math.abs((scale - 1) / 2);
@@ -1183,7 +1183,7 @@ var withScale = function withScale(Render) {
1183
1183
  var ScaleFC = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
1184
1184
  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
1185
  var children = _ref.children,
1186
- props = _objectWithoutProperties(_ref, _excluded$1o);
1186
+ props = _objectWithoutProperties(_ref, _excluded$1p);
1187
1187
  var _useTheme = theme.useTheme(),
1188
1188
  layout = _useTheme.layout;
1189
1189
  var paddingLeft = props.paddingLeft,
@@ -1268,7 +1268,7 @@ var withScale = function withScale(Render) {
1268
1268
  return ScaleFC;
1269
1269
  };
1270
1270
 
1271
- var _excluded$1n = ["children", "tag", "className", "color"];
1271
+ var _excluded$1o = ["children", "tag", "className", "color"];
1272
1272
  var getTypeColor = function getTypeColor(type, palette) {
1273
1273
  var colors = {
1274
1274
  "default": 'inherit',
@@ -1286,7 +1286,7 @@ var TextChild = function TextChild(_ref) {
1286
1286
  className = _ref$className === void 0 ? '' : _ref$className,
1287
1287
  _ref$color = _ref.color,
1288
1288
  color = _ref$color === void 0 ? 'default' : _ref$color,
1289
- props = _objectWithoutProperties(_ref, _excluded$1n);
1289
+ props = _objectWithoutProperties(_ref, _excluded$1o);
1290
1290
  var Component = tag;
1291
1291
  var theme$1 = theme.useTheme();
1292
1292
  var _useScale = useScale(),
@@ -1334,7 +1334,7 @@ var TextChild = function TextChild(_ref) {
1334
1334
  };
1335
1335
  TextChild.displayName = 'TextChild';
1336
1336
 
1337
- var _excluded$1m = ["h1", "h2", "h3", "h4", "h5", "h6", "p", "b", "small", "i", "span", "del", "em", "blockquote", "noWrap", "children", "className", "display", "alignItems", "justify"];
1337
+ var _excluded$1n = ["h1", "h2", "h3", "h4", "h5", "h6", "p", "b", "small", "i", "span", "del", "em", "blockquote", "noWrap", "children", "className", "display", "alignItems", "justify"];
1338
1338
  var _getModifierChild = function getModifierChild(tags, children) {
1339
1339
  if (!tags.length) return children;
1340
1340
  var nextTag = tags.slice(1, tags.length);
@@ -1381,7 +1381,7 @@ var TextComponent = function TextComponent(_ref) {
1381
1381
  display = _ref$display === void 0 ? 'block' : _ref$display,
1382
1382
  alignItems = _ref.alignItems,
1383
1383
  justify = _ref.justify,
1384
- props = _objectWithoutProperties(_ref, _excluded$1m);
1384
+ props = _objectWithoutProperties(_ref, _excluded$1n);
1385
1385
  var elements = {
1386
1386
  h1: h1,
1387
1387
  h2: h2,
@@ -1576,7 +1576,7 @@ var getColors$7 = function getColors(palette, status) {
1576
1576
  return colors[status];
1577
1577
  };
1578
1578
 
1579
- var _excluded$1l = ["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"];
1579
+ 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
1580
  var simulateChangeEvent = function simulateChangeEvent(el, event) {
1581
1581
  return _objectSpread2(_objectSpread2({}, event), {}, {
1582
1582
  target: el,
@@ -1623,7 +1623,7 @@ var InputComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
1623
1623
  _ref$fullWidth = _ref.fullWidth,
1624
1624
  fullWidth = _ref$fullWidth === void 0 ? false : _ref$fullWidth,
1625
1625
  required = _ref.required,
1626
- props = _objectWithoutProperties(_ref, _excluded$1l);
1626
+ props = _objectWithoutProperties(_ref, _excluded$1m);
1627
1627
  var theme$1 = theme.useTheme();
1628
1628
  var _useScale = useScale(),
1629
1629
  SCALES = _useScale.SCALES;
@@ -1783,7 +1783,7 @@ tuple('hover', 'click');
1783
1783
  tuple('top', 'topStart', 'topEnd', 'left', 'leftStart', 'leftEnd', 'bottom', 'bottomStart', 'bottomEnd', 'right', 'rightStart', 'rightEnd');
1784
1784
  tuple('start', 'center', 'end', 'left', 'right');
1785
1785
 
1786
- var _excluded$1k = ["type", "disabled", "readOnly", "onFocus", "onBlur", "className", "initialValue", "onChange", "value", "placeholder", "helperText", "error", "label", "required", "resize"];
1786
+ var _excluded$1l = ["type", "disabled", "readOnly", "onFocus", "onBlur", "className", "initialValue", "onChange", "value", "placeholder", "helperText", "error", "label", "required", "resize"];
1787
1787
  tuple('none', 'both', 'horizontal', 'vertical', 'initial', 'inherit');
1788
1788
  var TextareaComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
1789
1789
  var _ref$type = _ref.type,
@@ -1807,7 +1807,7 @@ var TextareaComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
1807
1807
  required = _ref.required,
1808
1808
  _ref$resize = _ref.resize,
1809
1809
  resize = _ref$resize === void 0 ? 'none' : _ref$resize,
1810
- props = _objectWithoutProperties(_ref, _excluded$1k);
1810
+ props = _objectWithoutProperties(_ref, _excluded$1l);
1811
1811
  var theme$1 = theme.useTheme();
1812
1812
  var _useScale = useScale(),
1813
1813
  SCALES = _useScale.SCALES;
@@ -1931,11 +1931,11 @@ var PasswordIcon = function PasswordIcon(_ref) {
1931
1931
  };
1932
1932
  var MemoPasswordIcon = /*#__PURE__*/React.memo(PasswordIcon);
1933
1933
 
1934
- var _excluded$1j = ["hideToggle", "children"];
1934
+ var _excluded$1k = ["hideToggle", "children"];
1935
1935
  var InputPasswordComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
1936
1936
  var hideToggle = _ref.hideToggle,
1937
1937
  children = _ref.children,
1938
- props = _objectWithoutProperties(_ref, _excluded$1j);
1938
+ props = _objectWithoutProperties(_ref, _excluded$1k);
1939
1939
  var _useScale = useScale(),
1940
1940
  getAllScaleProps = _useScale.getAllScaleProps;
1941
1941
  var inputRef = React.useRef(null);
@@ -3543,7 +3543,7 @@ var repositionCursor = function repositionCursor(_ref) {
3543
3543
  };
3544
3544
  };
3545
3545
 
3546
- var _excluded$1i = ["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"];
3546
+ 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
3547
  var InputCurrency = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
3548
3548
  var _ref$allowDecimals = _ref.allowDecimals,
3549
3549
  allowDecimals = _ref$allowDecimals === void 0 ? true : _ref$allowDecimals,
@@ -3585,7 +3585,7 @@ var InputCurrency = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
3585
3585
  _ref$formatValueOnBlu = _ref.formatValueOnBlur,
3586
3586
  formatValueOnBlur = _ref$formatValueOnBlu === void 0 ? true : _ref$formatValueOnBlu,
3587
3587
  children = _ref.children,
3588
- props = _objectWithoutProperties(_ref, _excluded$1i);
3588
+ props = _objectWithoutProperties(_ref, _excluded$1j);
3589
3589
  var _useScale = useScale(),
3590
3590
  SCALES = _useScale.SCALES;
3591
3591
  var theme$1 = theme.useTheme();
@@ -3941,7 +3941,7 @@ var InputCurrency = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
3941
3941
 
3942
3942
  var CurrencyInput = withScale(InputCurrency);
3943
3943
 
3944
- var _excluded$1h = ["xs", "sm", "md", "lg", "xl", "justify", "direction", "alignItems", "alignContent", "children", "className"];
3944
+ var _excluded$1i = ["xs", "sm", "md", "lg", "xl", "justify", "direction", "alignItems", "alignContent", "children", "className"];
3945
3945
  var getItemLayout = function getItemLayout(val) {
3946
3946
  var display = val === 0 ? 'display: none;' : 'display: inherit;';
3947
3947
  if (typeof val === 'number') {
@@ -3979,7 +3979,7 @@ var GridBasicItem = function GridBasicItem(_ref) {
3979
3979
  children = _ref.children,
3980
3980
  _ref$className = _ref.className,
3981
3981
  className = _ref$className === void 0 ? '' : _ref$className,
3982
- props = _objectWithoutProperties(_ref, _excluded$1h);
3982
+ props = _objectWithoutProperties(_ref, _excluded$1i);
3983
3983
  var theme$1 = theme.useTheme();
3984
3984
  var _useScale = useScale(),
3985
3985
  SCALES = _useScale.SCALES;
@@ -4021,12 +4021,12 @@ var GridBasicItem = function GridBasicItem(_ref) {
4021
4021
  };
4022
4022
  GridBasicItem.displayName = 'GridBasicItem';
4023
4023
 
4024
- var _excluded$1g = ["children", "className"];
4024
+ var _excluded$1h = ["children", "className"];
4025
4025
  var GridComponent = function GridComponent(_ref) {
4026
4026
  var children = _ref.children,
4027
4027
  _ref$className = _ref.className,
4028
4028
  className = _ref$className === void 0 ? '' : _ref$className,
4029
- props = _objectWithoutProperties(_ref, _excluded$1g);
4029
+ props = _objectWithoutProperties(_ref, _excluded$1h);
4030
4030
  var _useScale = useScale(),
4031
4031
  SCALES = _useScale.SCALES;
4032
4032
  var _styles$className = {
@@ -4049,7 +4049,7 @@ var GridComponent = function GridComponent(_ref) {
4049
4049
  GridComponent.displayName = 'Grid';
4050
4050
  var Grid = withScale(GridComponent);
4051
4051
 
4052
- var _excluded$1f = ["gap", "wrap", "children", "className"];
4052
+ var _excluded$1g = ["gap", "wrap", "children", "className"];
4053
4053
  var GridContainerComponent = function GridContainerComponent(_ref) {
4054
4054
  var _ref$gap = _ref.gap,
4055
4055
  gap = _ref$gap === void 0 ? 0 : _ref$gap,
@@ -4058,7 +4058,7 @@ var GridContainerComponent = function GridContainerComponent(_ref) {
4058
4058
  children = _ref.children,
4059
4059
  _ref$className = _ref.className,
4060
4060
  className = _ref$className === void 0 ? '' : _ref$className,
4061
- props = _objectWithoutProperties(_ref, _excluded$1f);
4061
+ props = _objectWithoutProperties(_ref, _excluded$1g);
4062
4062
  var _useScale = useScale(),
4063
4063
  unit = _useScale.unit,
4064
4064
  SCALES = _useScale.SCALES;
@@ -4349,7 +4349,7 @@ var AutoCompleteEmpty = function AutoCompleteEmpty(_ref) {
4349
4349
  };
4350
4350
  AutoCompleteEmpty.displayName = 'AutoCompleteEmpty';
4351
4351
 
4352
- var _excluded$1e = ["children", "type", "color", "className", "spaceRatio"];
4352
+ var _excluded$1f = ["children", "type", "color", "className", "spaceRatio"];
4353
4353
  var getIconBgColor = function getIconBgColor(type, palette, color) {
4354
4354
  var colors = {
4355
4355
  "default": palette.accents_6,
@@ -4369,7 +4369,7 @@ var LoadingComponent = function LoadingComponent(_ref) {
4369
4369
  className = _ref$className === void 0 ? '' : _ref$className,
4370
4370
  _ref$spaceRatio = _ref.spaceRatio,
4371
4371
  spaceRatio = _ref$spaceRatio === void 0 ? 1 : _ref$spaceRatio,
4372
- props = _objectWithoutProperties(_ref, _excluded$1e);
4372
+ props = _objectWithoutProperties(_ref, _excluded$1f);
4373
4373
  var theme$1 = theme.useTheme();
4374
4374
  var _useScale = useScale(),
4375
4375
  SCALES = _useScale.SCALES;
@@ -4401,7 +4401,7 @@ var LoadingComponent = function LoadingComponent(_ref) {
4401
4401
  LoadingComponent.displayName = 'Loading';
4402
4402
  var Loading = withScale(LoadingComponent);
4403
4403
 
4404
- var _excluded$1d = ["options", "initialValue", "onSelect", "onSearch", "onChange", "searching", "children", "type", "color", "value", "clearable", "disabled", "dropdownClassName", "dropdownStyle", "disableMatchWidth", "disableFreeSolo", "getPopupContainer"];
4404
+ var _excluded$1e = ["options", "initialValue", "onSelect", "onSearch", "onChange", "searching", "children", "type", "color", "value", "clearable", "disabled", "dropdownClassName", "dropdownStyle", "disableMatchWidth", "disableFreeSolo", "getPopupContainer"];
4405
4405
  var childrenToOptionsNode = function childrenToOptionsNode(options) {
4406
4406
  return options.map(function (item, index) {
4407
4407
  var key = "auto-complete-item-".concat(index);
@@ -4450,7 +4450,7 @@ var AutoCompleteComponent = /*#__PURE__*/React.forwardRef(function (_ref, userRe
4450
4450
  _ref$disableFreeSolo = _ref.disableFreeSolo,
4451
4451
  disableFreeSolo = _ref$disableFreeSolo === void 0 ? false : _ref$disableFreeSolo,
4452
4452
  getPopupContainer = _ref.getPopupContainer,
4453
- props = _objectWithoutProperties(_ref, _excluded$1d);
4453
+ props = _objectWithoutProperties(_ref, _excluded$1e);
4454
4454
  var resetTimer = React.useRef(0); // DEFAULT Value 0
4455
4455
  var _useScale = useScale(),
4456
4456
  SCALES = _useScale.SCALES,
@@ -4603,7 +4603,7 @@ AutoComplete.Option = AutoCompleteItemComponent;
4603
4603
  AutoComplete.Searching = AutoCompleteSearch;
4604
4604
  AutoComplete.Empty = AutoCompleteEmpty;
4605
4605
 
4606
- var _excluded$1c = ["src", "errorSrc", "stacked", "text", "isSquare", "className", "children"];
4606
+ var _excluded$1d = ["src", "errorSrc", "stacked", "text", "isSquare", "className", "children"];
4607
4607
  var safeText = function safeText(text) {
4608
4608
  if (text.length <= 4) return text;
4609
4609
  return text.slice(0, 3);
@@ -4622,7 +4622,7 @@ var AvatarComponent = function AvatarComponent(_ref) {
4622
4622
  _ref$className = _ref.className,
4623
4623
  className = _ref$className === void 0 ? '' : _ref$className,
4624
4624
  children = _ref.children,
4625
- props = _objectWithoutProperties(_ref, _excluded$1c);
4625
+ props = _objectWithoutProperties(_ref, _excluded$1d);
4626
4626
  var theme$1 = theme.useTheme();
4627
4627
  var fallbackSrc = theme$1.type === 'dark' ? errorImgDark : errorImgLight;
4628
4628
  var _useScale = useScale(),
@@ -4683,7 +4683,7 @@ var AvatarGroup = withScale(AvatarGroupComponent);
4683
4683
 
4684
4684
  Avatar.Group = AvatarGroup;
4685
4685
 
4686
- var _excluded$1b = ["color", "className", "children", "dot"];
4686
+ var _excluded$1c = ["color", "className", "children", "dot"];
4687
4687
  var getBgColor = function getBgColor(type, palette) {
4688
4688
  var colors = {
4689
4689
  "default": palette.foreground,
@@ -4702,7 +4702,7 @@ var BadgeComponent = function BadgeComponent(_ref) {
4702
4702
  children = _ref.children,
4703
4703
  _ref$dot = _ref.dot,
4704
4704
  dot = _ref$dot === void 0 ? false : _ref$dot,
4705
- props = _objectWithoutProperties(_ref, _excluded$1b);
4705
+ props = _objectWithoutProperties(_ref, _excluded$1c);
4706
4706
  var theme$1 = theme.useTheme();
4707
4707
  var _useScale = useScale(),
4708
4708
  SCALES = _useScale.SCALES;
@@ -4916,7 +4916,7 @@ var LinkIconComponent = function LinkIconComponent() {
4916
4916
  LinkIconComponent.displayName = 'LinkIcon';
4917
4917
  var LinkIcon = /*#__PURE__*/React.memo(LinkIconComponent);
4918
4918
 
4919
- var _excluded$1a = ["href", "showColor", "underline", "children", "className", "block", "arrow", "icon"];
4919
+ var _excluded$1b = ["href", "showColor", "underline", "children", "className", "block", "arrow", "icon"];
4920
4920
  var LinkComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
4921
4921
  var _ref$href = _ref.href,
4922
4922
  href = _ref$href === void 0 ? '' : _ref$href,
@@ -4932,7 +4932,7 @@ var LinkComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
4932
4932
  _ref$arrow = _ref.arrow,
4933
4933
  arrow = _ref$arrow === void 0 ? false : _ref$arrow,
4934
4934
  icon = _ref.icon,
4935
- props = _objectWithoutProperties(_ref, _excluded$1a);
4935
+ props = _objectWithoutProperties(_ref, _excluded$1b);
4936
4936
  var theme$1 = theme.useTheme();
4937
4937
  var _useScale = useScale(),
4938
4938
  SCALES = _useScale.SCALES;
@@ -4960,7 +4960,7 @@ var LinkComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
4960
4960
  LinkComponent.displayName = 'Link';
4961
4961
  var Link = withScale(LinkComponent);
4962
4962
 
4963
- var _excluded$19 = ["href", "nextLink", "onClick", "children", "className"];
4963
+ var _excluded$1a = ["href", "nextLink", "onClick", "children", "className"];
4964
4964
  var BreadcrumbsItem = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
4965
4965
  var href = _ref.href,
4966
4966
  _ref$nextLink = _ref.nextLink,
@@ -4969,7 +4969,7 @@ var BreadcrumbsItem = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
4969
4969
  children = _ref.children,
4970
4970
  _ref$className = _ref.className,
4971
4971
  className = _ref$className === void 0 ? '' : _ref$className,
4972
- props = _objectWithoutProperties(_ref, _excluded$19);
4972
+ props = _objectWithoutProperties(_ref, _excluded$1a);
4973
4973
  var isLink = React.useMemo(function () {
4974
4974
  return href !== undefined || nextLink;
4975
4975
  }, [href, nextLink]);
@@ -5076,7 +5076,7 @@ var ButtonLoading = function ButtonLoading(_ref) {
5076
5076
  };
5077
5077
  ButtonLoading.displayName = 'ButtonLoading';
5078
5078
 
5079
- var _excluded$18 = ["isRight", "isSingle", "children", "className"];
5079
+ var _excluded$19 = ["isRight", "isSingle", "children", "className"];
5080
5080
  var ButtonIcon = function ButtonIcon(_ref) {
5081
5081
  var _ref$isRight = _ref.isRight,
5082
5082
  isRight = _ref$isRight === void 0 ? false : _ref$isRight,
@@ -5084,7 +5084,7 @@ var ButtonIcon = function ButtonIcon(_ref) {
5084
5084
  children = _ref.children,
5085
5085
  _ref$className = _ref.className,
5086
5086
  className = _ref$className === void 0 ? '' : _ref$className,
5087
- props = _objectWithoutProperties(_ref, _excluded$18);
5087
+ props = _objectWithoutProperties(_ref, _excluded$19);
5088
5088
  var classes = theme.useClasses('icon', {
5089
5089
  right: isRight,
5090
5090
  single: isSingle
@@ -5351,7 +5351,7 @@ var getButtonDripColor = function getButtonDripColor(palette, props) {
5351
5351
  return isLightHover ? addColorAlpha(hoverColors.bg, 0.65) : addColorAlpha(palette.accents_2, 0.65);
5352
5352
  };
5353
5353
 
5354
- var _excluded$17 = ["children", "disabled", "color", "loading", "shadow", "ghost", "effect", "round", "relative", "replace", "a", "to", "onClick", "auto", "icon", "type", "iconRight", "className", "crossOrigin"];
5354
+ var _excluded$18 = ["children", "disabled", "color", "loading", "shadow", "ghost", "effect", "round", "relative", "replace", "a", "to", "onClick", "auto", "icon", "type", "iconRight", "className", "crossOrigin"];
5355
5355
  var ButtonComponent = /*#__PURE__*/React.forwardRef(function (btnProps, ref) {
5356
5356
  var theme$1 = theme.useTheme();
5357
5357
  // const navigate = useNavigate();
@@ -5405,7 +5405,7 @@ var ButtonComponent = /*#__PURE__*/React.forwardRef(function (btnProps, ref) {
5405
5405
  _filteredProps$classN = filteredProps.className,
5406
5406
  className = _filteredProps$classN === void 0 ? '' : _filteredProps$classN;
5407
5407
  filteredProps.crossOrigin;
5408
- var props = _objectWithoutProperties(filteredProps, _excluded$17);
5408
+ var props = _objectWithoutProperties(filteredProps, _excluded$18);
5409
5409
  /* eslint-enable @typescript-eslint/no-unused-vars */
5410
5410
 
5411
5411
  var _useMemo = React.useMemo(function () {
@@ -5668,7 +5668,7 @@ var useButtonDropdown = function useButtonDropdown() {
5668
5668
  return React.useContext(ButtonDropdownContext);
5669
5669
  };
5670
5670
 
5671
- var _excluded$16 = ["children", "onClick", "className", "main", "icon", "type"];
5671
+ var _excluded$17 = ["children", "onClick", "className", "main", "icon", "type"];
5672
5672
  var ButtonDropdownItem = function ButtonDropdownItem(_ref) {
5673
5673
  var children = _ref.children,
5674
5674
  _ref$onClick = _ref.onClick,
@@ -5679,7 +5679,7 @@ var ButtonDropdownItem = function ButtonDropdownItem(_ref) {
5679
5679
  main = _ref$main === void 0 ? false : _ref$main,
5680
5680
  icon = _ref.icon,
5681
5681
  selfType = _ref.type,
5682
- props = _objectWithoutProperties(_ref, _excluded$16);
5682
+ props = _objectWithoutProperties(_ref, _excluded$17);
5683
5683
  var theme$1 = theme.useTheme();
5684
5684
  var _useScale = useScale(),
5685
5685
  SCALES = _useScale.SCALES;
@@ -5721,7 +5721,7 @@ var ButtonDropdownItem = function ButtonDropdownItem(_ref) {
5721
5721
  };
5722
5722
  ButtonDropdownItem.displayName = 'ButtonDropdownItem';
5723
5723
 
5724
- var _excluded$15 = ["children", "type", "auto", "className", "disabled", "loading", "icon"];
5724
+ var _excluded$16 = ["children", "type", "auto", "className", "disabled", "loading", "icon"];
5725
5725
  var stopPropagation$1 = function stopPropagation(event) {
5726
5726
  event.stopPropagation();
5727
5727
  event.nativeEvent.stopImmediatePropagation();
@@ -5739,7 +5739,7 @@ var ButtonDropdownComponent = function ButtonDropdownComponent(_ref) {
5739
5739
  _ref$loading = _ref.loading,
5740
5740
  loading = _ref$loading === void 0 ? false : _ref$loading,
5741
5741
  icon = _ref.icon,
5742
- props = _objectWithoutProperties(_ref, _excluded$15);
5742
+ props = _objectWithoutProperties(_ref, _excluded$16);
5743
5743
  var _useScale = useScale(),
5744
5744
  SCALES = _useScale.SCALES;
5745
5745
  var ref = React.useRef(null);
@@ -5821,7 +5821,7 @@ var ButtonDropdown = withScale(ButtonDropdownComponent);
5821
5821
  /* "use client" */
5822
5822
  ButtonDropdown.Item = ButtonDropdownItem;
5823
5823
 
5824
- var _excluded$14 = ["disabled", "type", "ghost", "vertical", "children", "className"];
5824
+ var _excluded$15 = ["disabled", "type", "ghost", "vertical", "children", "className"];
5825
5825
  var getGroupBorderColors = function getGroupBorderColors(palette, props) {
5826
5826
  var _props$ghost = props.ghost,
5827
5827
  ghost = _props$ghost === void 0 ? false : _props$ghost,
@@ -5848,7 +5848,7 @@ var ButtonGroupComponent = function ButtonGroupComponent(groupProps) {
5848
5848
  vertical = groupProps.vertical,
5849
5849
  children = groupProps.children,
5850
5850
  className = groupProps.className,
5851
- props = _objectWithoutProperties(groupProps, _excluded$14);
5851
+ props = _objectWithoutProperties(groupProps, _excluded$15);
5852
5852
  var initialValue = React.useMemo(function () {
5853
5853
  return {
5854
5854
  disabled: disabled,
@@ -5908,7 +5908,7 @@ var useProportions = function useProportions(value, max) {
5908
5908
  }, [value, max, maxFixed]);
5909
5909
  };
5910
5910
 
5911
- var _excluded$13 = ["value", "limit", "color", "className"];
5911
+ var _excluded$14 = ["value", "limit", "color", "className"];
5912
5912
  var getColor$3 = function getColor(val, palette) {
5913
5913
  if (val < 33) return palette.cyan;
5914
5914
  if (val < 66) return palette.warning;
@@ -5922,7 +5922,7 @@ var CapacityComponent = function CapacityComponent(_ref) {
5922
5922
  userColor = _ref.color,
5923
5923
  _ref$className = _ref.className,
5924
5924
  className = _ref$className === void 0 ? '' : _ref$className,
5925
- props = _objectWithoutProperties(_ref, _excluded$13);
5925
+ props = _objectWithoutProperties(_ref, _excluded$14);
5926
5926
  var theme$1 = theme.useTheme();
5927
5927
  var _useScale = useScale(),
5928
5928
  SCALES = _useScale.SCALES;
@@ -6001,14 +6001,14 @@ var getStyles$1 = function getStyles(type, palette, isShadow) {
6001
6001
  });
6002
6002
  };
6003
6003
 
6004
- var _excluded$12 = ["children", "className", "disableAutoMargin"];
6004
+ var _excluded$13 = ["children", "className", "disableAutoMargin"];
6005
6005
  var CardFooterComponent = function CardFooterComponent(_ref) {
6006
6006
  var children = _ref.children,
6007
6007
  _ref$className = _ref.className,
6008
6008
  className = _ref$className === void 0 ? '' : _ref$className,
6009
6009
  _ref$disableAutoMargi = _ref.disableAutoMargin,
6010
6010
  disableAutoMargin = _ref$disableAutoMargi === void 0 ? false : _ref$disableAutoMargi,
6011
- props = _objectWithoutProperties(_ref, _excluded$12);
6011
+ props = _objectWithoutProperties(_ref, _excluded$13);
6012
6012
  var theme$1 = theme.useTheme();
6013
6013
  var _useScale = useScale(),
6014
6014
  SCALES = _useScale.SCALES;
@@ -6027,12 +6027,12 @@ var CardFooterComponent = function CardFooterComponent(_ref) {
6027
6027
  CardFooterComponent.displayName = 'CardFooter';
6028
6028
  var CardFooter = withScale(CardFooterComponent);
6029
6029
 
6030
- var _excluded$11 = ["className", "children"];
6030
+ var _excluded$12 = ["className", "children"];
6031
6031
  var CardContentComponent = function CardContentComponent(_ref) {
6032
6032
  var _ref$className = _ref.className,
6033
6033
  className = _ref$className === void 0 ? '' : _ref$className,
6034
6034
  children = _ref.children,
6035
- props = _objectWithoutProperties(_ref, _excluded$11);
6035
+ props = _objectWithoutProperties(_ref, _excluded$12);
6036
6036
  var _useScale = useScale(),
6037
6037
  SCALES = _useScale.SCALES;
6038
6038
  return /*#__PURE__*/jsxRuntime.jsxs("div", _objectSpread2(_objectSpread2({}, props), {}, {
@@ -6047,11 +6047,11 @@ var CardContentComponent = function CardContentComponent(_ref) {
6047
6047
  CardContentComponent.displayName = 'CardContent';
6048
6048
  var CardContent = withScale(CardContentComponent);
6049
6049
 
6050
- var _excluded$10 = ["opacity"];
6050
+ var _excluded$11 = ["opacity"];
6051
6051
  var ImageSkeleton = /*#__PURE__*/React.memo(function (_ref) {
6052
6052
  var _ref$opacity = _ref.opacity,
6053
6053
  opacity = _ref$opacity === void 0 ? 0.5 : _ref$opacity,
6054
- props = _objectWithoutProperties(_ref, _excluded$10);
6054
+ props = _objectWithoutProperties(_ref, _excluded$11);
6055
6055
  var theme$1 = theme.useTheme();
6056
6056
  return /*#__PURE__*/jsxRuntime.jsx("div", _objectSpread2(_objectSpread2({}, props), {}, {
6057
6057
  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 +6079,7 @@ var getHostFromUrl = function getHostFromUrl(url) {
6079
6079
  }
6080
6080
  };
6081
6081
 
6082
- var _excluded$$ = ["src", "disableSkeleton", "className", "maxDelay"];
6082
+ var _excluded$10 = ["src", "disableSkeleton", "className", "maxDelay"];
6083
6083
  var ImageComponent = function ImageComponent(_ref) {
6084
6084
  var src = _ref.src,
6085
6085
  _ref$disableSkeleton = _ref.disableSkeleton,
@@ -6088,7 +6088,7 @@ var ImageComponent = function ImageComponent(_ref) {
6088
6088
  className = _ref$className === void 0 ? '' : _ref$className,
6089
6089
  _ref$maxDelay = _ref.maxDelay,
6090
6090
  maxDelay = _ref$maxDelay === void 0 ? 3000 : _ref$maxDelay,
6091
- props = _objectWithoutProperties(_ref, _excluded$$);
6091
+ props = _objectWithoutProperties(_ref, _excluded$10);
6092
6092
  var _useScale = useScale(),
6093
6093
  SCALES = _useScale.SCALES,
6094
6094
  getScaleProps = _useScale.getScaleProps;
@@ -6188,7 +6188,7 @@ var getBrowserColors = function getBrowserColors(invert, palette) {
6188
6188
  };
6189
6189
  };
6190
6190
 
6191
- var _excluded$_ = ["url", "title", "children", "showFullLink", "invert", "anchorProps", "className"];
6191
+ var _excluded$$ = ["url", "title", "children", "showFullLink", "invert", "anchorProps", "className"];
6192
6192
  var getTitle = function getTitle(title, colors) {
6193
6193
  return /*#__PURE__*/jsxRuntime.jsxs("div", {
6194
6194
  className: _JSXStyle.dynamic([["524099755", [colors.titleColor]]]) + " " + "title",
@@ -6230,7 +6230,7 @@ var ImageBrowserComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
6230
6230
  anchorProps = _ref$anchorProps === void 0 ? {} : _ref$anchorProps,
6231
6231
  _ref$className = _ref.className,
6232
6232
  className = _ref$className === void 0 ? '' : _ref$className,
6233
- props = _objectWithoutProperties(_ref, _excluded$_);
6233
+ props = _objectWithoutProperties(_ref, _excluded$$);
6234
6234
  var theme$1 = theme.useTheme();
6235
6235
  var _useScale = useScale(),
6236
6236
  SCALES = _useScale.SCALES;
@@ -6270,7 +6270,7 @@ var ImageBrowser = withScale(ImageBrowserComponent);
6270
6270
 
6271
6271
  Image.Browser = ImageBrowser;
6272
6272
 
6273
- var _excluded$Z = ["children", "hoverable", "className", "shadow", "type"];
6273
+ var _excluded$_ = ["children", "hoverable", "className", "shadow", "type"];
6274
6274
  var CardComponent = function CardComponent(_ref) {
6275
6275
  var children = _ref.children,
6276
6276
  _ref$hoverable = _ref.hoverable,
@@ -6281,7 +6281,7 @@ var CardComponent = function CardComponent(_ref) {
6281
6281
  shadow = _ref$shadow === void 0 ? false : _ref$shadow,
6282
6282
  _ref$type = _ref.type,
6283
6283
  type = _ref$type === void 0 ? 'default' : _ref$type,
6284
- props = _objectWithoutProperties(_ref, _excluded$Z);
6284
+ props = _objectWithoutProperties(_ref, _excluded$_);
6285
6285
  var theme$1 = theme.useTheme();
6286
6286
  var _useScale = useScale(),
6287
6287
  SCALES = _useScale.SCALES;
@@ -6425,7 +6425,7 @@ var getColors$6 = function getColors(palette, status) {
6425
6425
  return colors[status];
6426
6426
  };
6427
6427
 
6428
- var _excluded$Y = ["checked", "initialChecked", "disabled", "onChange", "className", "children", "type", "value", "block"];
6428
+ var _excluded$Z = ["checked", "initialChecked", "disabled", "onChange", "className", "children", "type", "value", "block"];
6429
6429
  var CheckboxComponent = function CheckboxComponent(_ref) {
6430
6430
  var checked = _ref.checked,
6431
6431
  _ref$initialChecked = _ref.initialChecked,
@@ -6442,7 +6442,7 @@ var CheckboxComponent = function CheckboxComponent(_ref) {
6442
6442
  value = _ref$value === void 0 ? '' : _ref$value,
6443
6443
  _ref$block = _ref.block,
6444
6444
  block = _ref$block === void 0 ? false : _ref$block,
6445
- props = _objectWithoutProperties(_ref, _excluded$Y);
6445
+ props = _objectWithoutProperties(_ref, _excluded$Z);
6446
6446
  var theme$1 = theme.useTheme();
6447
6447
  var _useScale = useScale(),
6448
6448
  SCALES = _useScale.SCALES;
@@ -6525,7 +6525,7 @@ var CheckboxComponent = function CheckboxComponent(_ref) {
6525
6525
  CheckboxComponent.displayName = 'Checkbox';
6526
6526
  var Checkbox = withScale(CheckboxComponent);
6527
6527
 
6528
- var _excluded$X = ["disabled", "onChange", "value", "children", "className"];
6528
+ var _excluded$Y = ["disabled", "onChange", "value", "children", "className"];
6529
6529
  var CheckboxGroupComponent = function CheckboxGroupComponent(_ref) {
6530
6530
  var _ref$disabled = _ref.disabled,
6531
6531
  disabled = _ref$disabled === void 0 ? false : _ref$disabled,
@@ -6534,7 +6534,7 @@ var CheckboxGroupComponent = function CheckboxGroupComponent(_ref) {
6534
6534
  children = _ref.children,
6535
6535
  _ref$className = _ref.className,
6536
6536
  className = _ref$className === void 0 ? '' : _ref$className,
6537
- props = _objectWithoutProperties(_ref, _excluded$X);
6537
+ props = _objectWithoutProperties(_ref, _excluded$Y);
6538
6538
  var _useScale = useScale(),
6539
6539
  SCALES = _useScale.SCALES;
6540
6540
  var _useState = React.useState([]),
@@ -6584,7 +6584,7 @@ var CheckboxGroup = withScale(CheckboxGroupComponent);
6584
6584
 
6585
6585
  Checkbox.Group = CheckboxGroup;
6586
6586
 
6587
- var _excluded$W = ["children", "block", "className", "name", "classic"];
6587
+ var _excluded$X = ["children", "block", "className", "name", "classic"];
6588
6588
  var CodeComponent = function CodeComponent(_ref) {
6589
6589
  var children = _ref.children,
6590
6590
  _ref$block = _ref.block,
@@ -6595,7 +6595,7 @@ var CodeComponent = function CodeComponent(_ref) {
6595
6595
  name = _ref$name === void 0 ? '' : _ref$name,
6596
6596
  _ref$classic = _ref.classic,
6597
6597
  classic = _ref$classic === void 0 ? false : _ref$classic,
6598
- props = _objectWithoutProperties(_ref, _excluded$W);
6598
+ props = _objectWithoutProperties(_ref, _excluded$X);
6599
6599
  var _useScale = useScale(),
6600
6600
  SCALES = _useScale.SCALES;
6601
6601
  var theme$1 = theme.useTheme();
@@ -6813,7 +6813,7 @@ var useCollapseContext = function useCollapseContext() {
6813
6813
  return React.useContext(CollapseContext);
6814
6814
  };
6815
6815
 
6816
- var _excluded$V = ["children", "title", "subtitle", "initialVisible", "shadow", "className", "index"];
6816
+ var _excluded$W = ["children", "title", "subtitle", "initialVisible", "shadow", "className", "index"];
6817
6817
  var CollapseComponent = function CollapseComponent(_ref) {
6818
6818
  var children = _ref.children,
6819
6819
  title = _ref.title,
@@ -6825,7 +6825,7 @@ var CollapseComponent = function CollapseComponent(_ref) {
6825
6825
  _ref$className = _ref.className,
6826
6826
  className = _ref$className === void 0 ? '' : _ref$className,
6827
6827
  index = _ref.index,
6828
- props = _objectWithoutProperties(_ref, _excluded$V);
6828
+ props = _objectWithoutProperties(_ref, _excluded$W);
6829
6829
  var theme$1 = theme.useTheme();
6830
6830
  var _useScale = useScale(),
6831
6831
  SCALES = _useScale.SCALES;
@@ -6889,14 +6889,14 @@ var CollapseComponent = function CollapseComponent(_ref) {
6889
6889
  CollapseComponent.displayName = 'Collapse';
6890
6890
  var Collapse = withScale(CollapseComponent);
6891
6891
 
6892
- var _excluded$U = ["children", "accordion", "className"];
6892
+ var _excluded$V = ["children", "accordion", "className"];
6893
6893
  var CollapseGroupComponent = function CollapseGroupComponent(_ref) {
6894
6894
  var children = _ref.children,
6895
6895
  _ref$accordion = _ref.accordion,
6896
6896
  accordion = _ref$accordion === void 0 ? true : _ref$accordion,
6897
6897
  _ref$className = _ref.className,
6898
6898
  className = _ref$className === void 0 ? '' : _ref$className,
6899
- props = _objectWithoutProperties(_ref, _excluded$U);
6899
+ props = _objectWithoutProperties(_ref, _excluded$V);
6900
6900
  var _useScale = useScale(),
6901
6901
  SCALES = _useScale.SCALES;
6902
6902
  var _useCurrentState = theme.useCurrentState([]),
@@ -6952,7 +6952,7 @@ var CollapseGroup = withScale(CollapseGroupComponent);
6952
6952
 
6953
6953
  Collapse.Group = CollapseGroup;
6954
6954
 
6955
- var _excluded$T = ["title", "content", "className"];
6955
+ var _excluded$U = ["title", "content", "className"];
6956
6956
  var DescriptionComponent = function DescriptionComponent(_ref) {
6957
6957
  var _ref$title = _ref.title,
6958
6958
  title = _ref$title === void 0 ? 'Title' : _ref$title,
@@ -6960,7 +6960,7 @@ var DescriptionComponent = function DescriptionComponent(_ref) {
6960
6960
  content = _ref$content === void 0 ? '' : _ref$content,
6961
6961
  _ref$className = _ref.className,
6962
6962
  className = _ref$className === void 0 ? '' : _ref$className,
6963
- props = _objectWithoutProperties(_ref, _excluded$T);
6963
+ props = _objectWithoutProperties(_ref, _excluded$U);
6964
6964
  var theme$1 = theme.useTheme();
6965
6965
  var _useScale = useScale(),
6966
6966
  SCALES = _useScale.SCALES;
@@ -6983,7 +6983,7 @@ var DescriptionComponent = function DescriptionComponent(_ref) {
6983
6983
  DescriptionComponent.displayName = 'Description';
6984
6984
  var Description = withScale(DescriptionComponent);
6985
6985
 
6986
- var _excluded$S = ["children", "caption", "shadow", "className"];
6986
+ var _excluded$T = ["children", "caption", "shadow", "className"];
6987
6987
  var DisplayComponent = function DisplayComponent(_ref) {
6988
6988
  var children = _ref.children,
6989
6989
  _ref$caption = _ref.caption,
@@ -6992,7 +6992,7 @@ var DisplayComponent = function DisplayComponent(_ref) {
6992
6992
  shadow = _ref$shadow === void 0 ? false : _ref$shadow,
6993
6993
  _ref$className = _ref.className,
6994
6994
  className = _ref$className === void 0 ? '' : _ref$className,
6995
- props = _objectWithoutProperties(_ref, _excluded$S);
6995
+ props = _objectWithoutProperties(_ref, _excluded$T);
6996
6996
  var theme$1 = theme.useTheme();
6997
6997
  var _useScale = useScale(),
6998
6998
  SCALES = _useScale.SCALES;
@@ -7018,7 +7018,7 @@ var DisplayComponent = function DisplayComponent(_ref) {
7018
7018
  DisplayComponent.displayName = 'Display';
7019
7019
  var Display = withScale(DisplayComponent);
7020
7020
 
7021
- var _excluded$R = ["type", "align", "children", "className"];
7021
+ var _excluded$S = ["type", "align", "children", "className"];
7022
7022
  var getColor$2 = function getColor(type, palette) {
7023
7023
  var colors = {
7024
7024
  "default": palette.border,
@@ -7039,7 +7039,7 @@ var DividerComponent = function DividerComponent(_ref) {
7039
7039
  children = _ref.children,
7040
7040
  _ref$className = _ref.className,
7041
7041
  className = _ref$className === void 0 ? '' : _ref$className,
7042
- props = _objectWithoutProperties(_ref, _excluded$R);
7042
+ props = _objectWithoutProperties(_ref, _excluded$S);
7043
7043
  var theme$1 = theme.useTheme();
7044
7044
  var _useScale = useScale(),
7045
7045
  SCALES = _useScale.SCALES;
@@ -7071,7 +7071,7 @@ var DividerComponent = function DividerComponent(_ref) {
7071
7071
  DividerComponent.displayName = 'Divider';
7072
7072
  var Divider = withScale(DividerComponent);
7073
7073
 
7074
- var _excluded$Q = ["type", "children", "className"];
7074
+ var _excluded$R = ["type", "children", "className"];
7075
7075
  var getColor$1 = function getColor(type, theme) {
7076
7076
  var colors = {
7077
7077
  "default": theme.palette.accents_2,
@@ -7087,7 +7087,7 @@ var DotComponent = function DotComponent(_ref) {
7087
7087
  children = _ref.children,
7088
7088
  _ref$className = _ref.className,
7089
7089
  className = _ref$className === void 0 ? '' : _ref$className,
7090
- props = _objectWithoutProperties(_ref, _excluded$Q);
7090
+ props = _objectWithoutProperties(_ref, _excluded$R);
7091
7091
  var theme$1 = theme.useTheme();
7092
7092
  var _useScale = useScale(),
7093
7093
  SCALES = _useScale.SCALES;
@@ -7425,7 +7425,7 @@ var getDrawerTransform = function getDrawerTransform(placement) {
7425
7425
  return translates[placement];
7426
7426
  };
7427
7427
 
7428
- var _excluded$P = ["className", "children", "visible", "placement"];
7428
+ var _excluded$Q = ["className", "children", "visible", "placement"];
7429
7429
  var DrawerWrapper = function DrawerWrapper(_ref) {
7430
7430
  var _ref$className = _ref.className,
7431
7431
  className = _ref$className === void 0 ? '' : _ref$className,
@@ -7433,7 +7433,7 @@ var DrawerWrapper = function DrawerWrapper(_ref) {
7433
7433
  _ref$visible = _ref.visible,
7434
7434
  visible = _ref$visible === void 0 ? false : _ref$visible,
7435
7435
  placement = _ref.placement,
7436
- props = _objectWithoutProperties(_ref, _excluded$P);
7436
+ props = _objectWithoutProperties(_ref, _excluded$Q);
7437
7437
  var theme$1 = theme.useTheme();
7438
7438
  var _useScale = useScale(),
7439
7439
  SCALES = _useScale.SCALES;
@@ -7496,7 +7496,7 @@ var DrawerWrapper = function DrawerWrapper(_ref) {
7496
7496
  };
7497
7497
  DrawerWrapper.displayName = 'DrawerWrapper';
7498
7498
 
7499
- var _excluded$O = ["visible", "keyboard", "disableBackdropClick", "onClose", "onContentClick", "wrapClassName", "children", "placement"];
7499
+ var _excluded$P = ["visible", "keyboard", "disableBackdropClick", "onClose", "onContentClick", "wrapClassName", "children", "placement"];
7500
7500
  var DrawerComponent = function DrawerComponent(_ref) {
7501
7501
  var customVisible = _ref.visible,
7502
7502
  _ref$keyboard = _ref.keyboard,
@@ -7510,7 +7510,7 @@ var DrawerComponent = function DrawerComponent(_ref) {
7510
7510
  children = _ref.children,
7511
7511
  _ref$placement = _ref.placement,
7512
7512
  placement = _ref$placement === void 0 ? 'right' : _ref$placement,
7513
- props = _objectWithoutProperties(_ref, _excluded$O);
7513
+ props = _objectWithoutProperties(_ref, _excluded$P);
7514
7514
  var portal = usePortal('drawer');
7515
7515
  var _useState = React.useState(false),
7516
7516
  _useState2 = _slicedToArray(_useState, 2),
@@ -7559,12 +7559,12 @@ var DrawerComponent = function DrawerComponent(_ref) {
7559
7559
  };
7560
7560
  DrawerComponent.displayName = 'Drawer';
7561
7561
 
7562
- var _excluded$N = ["className", "children"];
7562
+ var _excluded$O = ["className", "children"];
7563
7563
  var ModalTitleComponent = function ModalTitleComponent(_ref) {
7564
7564
  var _ref$className = _ref.className,
7565
7565
  className = _ref$className === void 0 ? '' : _ref$className,
7566
7566
  children = _ref.children,
7567
- props = _objectWithoutProperties(_ref, _excluded$N);
7567
+ props = _objectWithoutProperties(_ref, _excluded$O);
7568
7568
  var theme$1 = theme.useTheme();
7569
7569
  var _useScale = useScale(),
7570
7570
  SCALES = _useScale.SCALES;
@@ -7582,12 +7582,12 @@ var ModalTitleComponent = function ModalTitleComponent(_ref) {
7582
7582
  ModalTitleComponent.displayName = 'ModalTitle';
7583
7583
  var ModalTitle = withScale(ModalTitleComponent);
7584
7584
 
7585
- var _excluded$M = ["className", "children"];
7585
+ var _excluded$N = ["className", "children"];
7586
7586
  var ModalSubtitleComponent = function ModalSubtitleComponent(_ref) {
7587
7587
  var _ref$className = _ref.className,
7588
7588
  className = _ref$className === void 0 ? '' : _ref$className,
7589
7589
  children = _ref.children,
7590
- props = _objectWithoutProperties(_ref, _excluded$M);
7590
+ props = _objectWithoutProperties(_ref, _excluded$N);
7591
7591
  var theme$1 = theme.useTheme();
7592
7592
  var _useScale = useScale(),
7593
7593
  SCALES = _useScale.SCALES;
@@ -7605,12 +7605,12 @@ var ModalSubtitleComponent = function ModalSubtitleComponent(_ref) {
7605
7605
  ModalSubtitleComponent.displayName = 'ModalSubtitle';
7606
7606
  var ModalSubtitle = withScale(ModalSubtitleComponent);
7607
7607
 
7608
- var _excluded$L = ["className", "children"];
7608
+ var _excluded$M = ["className", "children"];
7609
7609
  var ModalContentComponent = function ModalContentComponent(_ref) {
7610
7610
  var _ref$className = _ref.className,
7611
7611
  className = _ref$className === void 0 ? '' : _ref$className,
7612
7612
  children = _ref.children,
7613
- props = _objectWithoutProperties(_ref, _excluded$L);
7613
+ props = _objectWithoutProperties(_ref, _excluded$M);
7614
7614
  var _useScale = useScale(),
7615
7615
  SCALES = _useScale.SCALES;
7616
7616
  return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
@@ -7632,12 +7632,12 @@ DrawerComponent.Title = ModalTitle;
7632
7632
  DrawerComponent.Subtitle = ModalSubtitle;
7633
7633
  DrawerComponent.Content = ModalContent;
7634
7634
 
7635
- var _excluded$K = ["className", "children"];
7635
+ var _excluded$L = ["className", "children"];
7636
7636
  var FieldsetTitle = function FieldsetTitle(_ref) {
7637
7637
  var _ref$className = _ref.className,
7638
7638
  className = _ref$className === void 0 ? '' : _ref$className,
7639
7639
  children = _ref.children,
7640
- props = _objectWithoutProperties(_ref, _excluded$K);
7640
+ props = _objectWithoutProperties(_ref, _excluded$L);
7641
7641
  var classes = theme.useClasses('title', className);
7642
7642
  return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
7643
7643
  children: [/*#__PURE__*/jsxRuntime.jsx("div", _objectSpread2(_objectSpread2({}, props), {}, {
@@ -7651,12 +7651,12 @@ var FieldsetTitle = function FieldsetTitle(_ref) {
7651
7651
  };
7652
7652
  FieldsetTitle.displayName = 'FieldsetTitle';
7653
7653
 
7654
- var _excluded$J = ["className", "children"];
7654
+ var _excluded$K = ["className", "children"];
7655
7655
  var FieldsetSubtitle = function FieldsetSubtitle(_ref) {
7656
7656
  var _ref$className = _ref.className,
7657
7657
  className = _ref$className === void 0 ? '' : _ref$className,
7658
7658
  children = _ref.children,
7659
- props = _objectWithoutProperties(_ref, _excluded$J);
7659
+ props = _objectWithoutProperties(_ref, _excluded$K);
7660
7660
  return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
7661
7661
  children: [/*#__PURE__*/jsxRuntime.jsx("div", _objectSpread2(_objectSpread2({}, props), {}, {
7662
7662
  className: "jsx-2265168013" + " " + (props && props.className != null && props.className || className || ""),
@@ -7669,12 +7669,12 @@ var FieldsetSubtitle = function FieldsetSubtitle(_ref) {
7669
7669
  };
7670
7670
  FieldsetSubtitle.displayName = 'FieldsetSubtitle';
7671
7671
 
7672
- var _excluded$I = ["className", "children"];
7672
+ var _excluded$J = ["className", "children"];
7673
7673
  var FieldsetFooterComponent = function FieldsetFooterComponent(_ref) {
7674
7674
  var _ref$className = _ref.className,
7675
7675
  className = _ref$className === void 0 ? '' : _ref$className,
7676
7676
  children = _ref.children,
7677
- props = _objectWithoutProperties(_ref, _excluded$I);
7677
+ props = _objectWithoutProperties(_ref, _excluded$J);
7678
7678
  var theme$1 = theme.useTheme();
7679
7679
  var _useScale = useScale(),
7680
7680
  SCALES = _useScale.SCALES;
@@ -7690,12 +7690,12 @@ var FieldsetFooterComponent = function FieldsetFooterComponent(_ref) {
7690
7690
  FieldsetFooterComponent.displayName = 'FieldsetFooter';
7691
7691
  var FieldsetFooter = withScale(FieldsetFooterComponent);
7692
7692
 
7693
- var _excluded$H = ["className", "children"];
7693
+ var _excluded$I = ["className", "children"];
7694
7694
  var FieldsetContentComponent = function FieldsetContentComponent(_ref) {
7695
7695
  var _ref$className = _ref.className,
7696
7696
  className = _ref$className === void 0 ? '' : _ref$className,
7697
7697
  children = _ref.children,
7698
- props = _objectWithoutProperties(_ref, _excluded$H);
7698
+ props = _objectWithoutProperties(_ref, _excluded$I);
7699
7699
  var _useScale = useScale(),
7700
7700
  SCALES = _useScale.SCALES;
7701
7701
  var classes = theme.useClasses('content', className);
@@ -7722,7 +7722,7 @@ var useFieldset = function useFieldset() {
7722
7722
  return React.useContext(FieldsetContext);
7723
7723
  };
7724
7724
 
7725
- var _excluded$G = ["className", "title", "subtitle", "children", "value", "label"];
7725
+ var _excluded$H = ["className", "title", "subtitle", "children", "value", "label"];
7726
7726
  var FieldsetComponent = function FieldsetComponent(_ref) {
7727
7727
  var _ref$className = _ref.className,
7728
7728
  className = _ref$className === void 0 ? '' : _ref$className,
@@ -7735,7 +7735,7 @@ var FieldsetComponent = function FieldsetComponent(_ref) {
7735
7735
  value = _ref$value === void 0 ? '' : _ref$value,
7736
7736
  _ref$label = _ref.label,
7737
7737
  label = _ref$label === void 0 ? '' : _ref$label,
7738
- props = _objectWithoutProperties(_ref, _excluded$G);
7738
+ props = _objectWithoutProperties(_ref, _excluded$H);
7739
7739
  var theme$1 = theme.useTheme();
7740
7740
  var _useScale = useScale(),
7741
7741
  SCALES = _useScale.SCALES;
@@ -7799,14 +7799,14 @@ var FieldsetComponent = function FieldsetComponent(_ref) {
7799
7799
  FieldsetComponent.displayName = 'Fieldset';
7800
7800
  var Fieldset = withScale(FieldsetComponent);
7801
7801
 
7802
- var _excluded$F = ["className", "children", "value", "onChange"];
7802
+ var _excluded$G = ["className", "children", "value", "onChange"];
7803
7803
  var FieldsetGroupComponent = function FieldsetGroupComponent(_ref) {
7804
7804
  var _ref$className = _ref.className,
7805
7805
  className = _ref$className === void 0 ? '' : _ref$className,
7806
7806
  children = _ref.children,
7807
7807
  value = _ref.value,
7808
7808
  onChange = _ref.onChange,
7809
- props = _objectWithoutProperties(_ref, _excluded$F);
7809
+ props = _objectWithoutProperties(_ref, _excluded$G);
7810
7810
  var theme$1 = theme.useTheme();
7811
7811
  var _useScale = useScale(),
7812
7812
  SCALES = _useScale.SCALES;
@@ -12515,7 +12515,7 @@ function setNestedObjectValues(object, value) {
12515
12515
 
12516
12516
  var __DEV__ = true;
12517
12517
 
12518
- var _excluded$E = ["validateOnChange", "validateOnBlur", "validateOnMount", "isInitialValid", "enableReinitialize", "onSubmit"];
12518
+ var _excluded$F = ["validateOnChange", "validateOnBlur", "validateOnMount", "isInitialValid", "enableReinitialize", "onSubmit"];
12519
12519
  // State reducer
12520
12520
  function formikReducer(state, msg) {
12521
12521
  switch (msg.type) {
@@ -12599,7 +12599,7 @@ function useFormik(_ref) {
12599
12599
  _ref$enableReinitiali = _ref.enableReinitialize,
12600
12600
  enableReinitialize = _ref$enableReinitiali === void 0 ? false : _ref$enableReinitiali,
12601
12601
  onSubmit = _ref.onSubmit,
12602
- rest = _objectWithoutProperties(_ref, _excluded$E);
12602
+ rest = _objectWithoutProperties(_ref, _excluded$F);
12603
12603
  var props = _objectSpread2({
12604
12604
  validateOnChange: validateOnChange,
12605
12605
  validateOnBlur: validateOnBlur,
@@ -13472,6 +13472,26 @@ function useEventCallback(fn) {
13472
13472
  }, []);
13473
13473
  }
13474
13474
 
13475
+ var _excluded$E = ["action"];
13476
+ // @todo tests
13477
+ var Form = /*#__PURE__*/React__namespace.forwardRef(function (props, ref) {
13478
+ // iOS needs an "action" attribute for nice input: https://stackoverflow.com/a/39485162/406725
13479
+ // We default the action to "#" in case the preventDefault fails (just updates the URL hash)
13480
+ var action = props.action,
13481
+ rest = _objectWithoutProperties(props, _excluded$E);
13482
+ var _action = action !== null && action !== void 0 ? action : '#';
13483
+ var _useFormikContext = useFormikContext(),
13484
+ handleReset = _useFormikContext.handleReset,
13485
+ handleSubmit = _useFormikContext.handleSubmit;
13486
+ return /*#__PURE__*/jsxRuntime.jsx("form", _objectSpread2({
13487
+ onSubmit: handleSubmit,
13488
+ ref: ref,
13489
+ onReset: handleReset,
13490
+ action: _action
13491
+ }, rest));
13492
+ });
13493
+ Form.displayName = 'Form';
13494
+
13475
13495
  var _excluded$D = ["mapPropsToValues"],
13476
13496
  _excluded2 = ["children"];
13477
13497
  /**
@@ -42792,6 +42812,7 @@ exports.Drawer = DrawerComponent;
42792
42812
  exports.ErrorMessage = ErrorMessage;
42793
42813
  exports.Expandable = Expandable;
42794
42814
  exports.Fieldset = Fieldset;
42815
+ exports.Form = Form;
42795
42816
  exports.FormWrapper = FormWrapper;
42796
42817
  exports.FormikConsumer = FormikConsumer;
42797
42818
  exports.FormikContext = FormikContext;
@@ -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>>;
@@ -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
- // export * from './Form';
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';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@helpdice/ui",
3
- "version": "2.6.1-beta.5",
3
+ "version": "2.6.1-beta.6",
4
4
  "main": "dist/index.js",
5
5
  "types": "esm/index.d.ts",
6
6
  "unpkg": "dist/index.min.js",