@helpdice/ui 1.1.0 → 1.1.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/index.js CHANGED
@@ -1721,7 +1721,7 @@ var generateGetAllScaleProps = function generateGetAllScaleProps(props) {
1721
1721
  return getAllScaleProps;
1722
1722
  };
1723
1723
 
1724
- var _excluded$1o = ["children"];
1724
+ var _excluded$1p = ["children"];
1725
1725
  var reduceScaleCoefficient = function reduceScaleCoefficient(scale) {
1726
1726
  if (scale === 1) return scale;
1727
1727
  var diff = Math.abs((scale - 1) / 2);
@@ -1731,7 +1731,7 @@ var withScale = function withScale(Render) {
1731
1731
  var ScaleFC = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
1732
1732
  var _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11, _ref12, _ref13, _ref14, _ref15, _ref16, _ref17, _ref18, _ref19, _ref20, _ref21, _ref22, _ref23, _ref24, _ref25, _ref26, _ref27, _ref28, _ref29, _ref30, _ref31, _ref32, _ref33;
1733
1733
  var children = _ref.children,
1734
- props = _objectWithoutProperties(_ref, _excluded$1o);
1734
+ props = _objectWithoutProperties(_ref, _excluded$1p);
1735
1735
  var _useTheme = useTheme(),
1736
1736
  layout = _useTheme.layout;
1737
1737
  var paddingLeft = props.paddingLeft,
@@ -1814,7 +1814,7 @@ var withScale = function withScale(Render) {
1814
1814
  return ScaleFC;
1815
1815
  };
1816
1816
 
1817
- var _excluded$1n = ["label", "labelRight", "type", "error", "htmlType", "icon", "iconRight", "iconClickable", "onIconClick", "initialValue", "onChange", "readOnly", "value", "onClearClick", "clearable", "className", "onBlur", "onFocus", "autoComplete", "placeholder", "children", "disabled"];
1817
+ var _excluded$1o = ["label", "labelRight", "type", "error", "htmlType", "icon", "iconRight", "iconClickable", "onIconClick", "initialValue", "onChange", "readOnly", "value", "onClearClick", "clearable", "className", "onBlur", "onFocus", "autoComplete", "placeholder", "children", "disabled"];
1818
1818
  var simulateChangeEvent = function simulateChangeEvent(el, event) {
1819
1819
  return _objectSpread2(_objectSpread2({}, event), {}, {
1820
1820
  target: el,
@@ -1854,7 +1854,7 @@ var InputComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
1854
1854
  children = _ref.children,
1855
1855
  _ref$disabled = _ref.disabled,
1856
1856
  disabled = _ref$disabled === undefined ? false : _ref$disabled,
1857
- props = _objectWithoutProperties(_ref, _excluded$1n);
1857
+ props = _objectWithoutProperties(_ref, _excluded$1o);
1858
1858
  var theme = useTheme();
1859
1859
  var _useScale = useScale(),
1860
1860
  SCALES = _useScale.SCALES;
@@ -2002,7 +2002,7 @@ tuple('hover', 'click');
2002
2002
  tuple('top', 'topStart', 'topEnd', 'left', 'leftStart', 'leftEnd', 'bottom', 'bottomStart', 'bottomEnd', 'right', 'rightStart', 'rightEnd');
2003
2003
  tuple('start', 'center', 'end', 'left', 'right');
2004
2004
 
2005
- var _excluded$1m = ["type", "disabled", "readOnly", "onFocus", "onBlur", "className", "initialValue", "onChange", "value", "placeholder", "resize"];
2005
+ var _excluded$1n = ["type", "disabled", "readOnly", "onFocus", "onBlur", "className", "initialValue", "onChange", "value", "placeholder", "resize"];
2006
2006
  tuple('none', 'both', 'horizontal', 'vertical', 'initial', 'inherit');
2007
2007
  var TextareaComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
2008
2008
  var _ref$type = _ref.type,
@@ -2022,7 +2022,7 @@ var TextareaComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
2022
2022
  placeholder = _ref.placeholder,
2023
2023
  _ref$resize = _ref.resize,
2024
2024
  resize = _ref$resize === undefined ? 'none' : _ref$resize,
2025
- props = _objectWithoutProperties(_ref, _excluded$1m);
2025
+ props = _objectWithoutProperties(_ref, _excluded$1n);
2026
2026
  var theme = useTheme();
2027
2027
  var _useScale = useScale(),
2028
2028
  SCALES = _useScale.SCALES;
@@ -2122,11 +2122,11 @@ var PasswordIcon = function PasswordIcon(_ref) {
2122
2122
  };
2123
2123
  var MemoPasswordIcon = /*#__PURE__*/React.memo(PasswordIcon);
2124
2124
 
2125
- var _excluded$1l = ["hideToggle", "children"];
2125
+ var _excluded$1m = ["hideToggle", "children"];
2126
2126
  var InputPasswordComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
2127
2127
  var hideToggle = _ref.hideToggle,
2128
2128
  children = _ref.children,
2129
- props = _objectWithoutProperties(_ref, _excluded$1l);
2129
+ props = _objectWithoutProperties(_ref, _excluded$1m);
2130
2130
  var _useScale = useScale(),
2131
2131
  getAllScaleProps = _useScale.getAllScaleProps;
2132
2132
  var inputRef = React.useRef(null);
@@ -2288,7 +2288,7 @@ var useResize = function useResize(callback) {
2288
2288
  }, []);
2289
2289
  };
2290
2290
 
2291
- var _excluded$1k = ["children", "className", "visible", "enterTime", "leaveTime", "clearTime", "name"];
2291
+ var _excluded$1l = ["children", "className", "visible", "enterTime", "leaveTime", "clearTime", "name"];
2292
2292
  var CssTransition = function CssTransition(_ref) {
2293
2293
  var children = _ref.children,
2294
2294
  _ref$className = _ref.className,
@@ -2303,7 +2303,7 @@ var CssTransition = function CssTransition(_ref) {
2303
2303
  clearTime = _ref$clearTime === undefined ? 60 : _ref$clearTime,
2304
2304
  _ref$name = _ref.name,
2305
2305
  name = _ref$name === undefined ? 'transition' : _ref$name,
2306
- props = _objectWithoutProperties(_ref, _excluded$1k);
2306
+ props = _objectWithoutProperties(_ref, _excluded$1l);
2307
2307
  var _useState = React.useState(''),
2308
2308
  _useState2 = _slicedToArray(_useState, 2),
2309
2309
  classes = _useState2[0],
@@ -2623,7 +2623,7 @@ var AutoCompleteEmpty = function AutoCompleteEmpty(_ref) {
2623
2623
  };
2624
2624
  AutoCompleteEmpty.displayName = 'AutoCompleteEmpty';
2625
2625
 
2626
- var _excluded$1j = ["children", "type", "color", "className", "spaceRatio"];
2626
+ var _excluded$1k = ["children", "type", "color", "className", "spaceRatio"];
2627
2627
  var getIconBgColor = function getIconBgColor(type, palette, color) {
2628
2628
  var colors = {
2629
2629
  "default": palette.accents_6,
@@ -2643,7 +2643,7 @@ var LoadingComponent = function LoadingComponent(_ref) {
2643
2643
  className = _ref$className === undefined ? '' : _ref$className,
2644
2644
  _ref$spaceRatio = _ref.spaceRatio,
2645
2645
  spaceRatio = _ref$spaceRatio === undefined ? 1 : _ref$spaceRatio,
2646
- props = _objectWithoutProperties(_ref, _excluded$1j);
2646
+ props = _objectWithoutProperties(_ref, _excluded$1k);
2647
2647
  var theme = useTheme();
2648
2648
  var _useScale = useScale(),
2649
2649
  SCALES = _useScale.SCALES;
@@ -12454,7 +12454,7 @@ const UserX = ({ color, strokeWidth, set }) => {
12454
12454
  UserX.displayName = "UserX";
12455
12455
  createIcon(UserX);
12456
12456
 
12457
- var _excluded$1i = ["options", "initialValue", "onSelect", "onSearch", "onChange", "searching", "children", "type", "value", "clearable", "disabled", "dropdownClassName", "dropdownStyle", "disableMatchWidth", "disableFreeSolo", "getPopupContainer"];
12457
+ var _excluded$1j = ["options", "initialValue", "onSelect", "onSearch", "onChange", "searching", "children", "type", "value", "clearable", "disabled", "dropdownClassName", "dropdownStyle", "disableMatchWidth", "disableFreeSolo", "getPopupContainer"];
12458
12458
  var childrenToOptionsNode = function childrenToOptionsNode(options) {
12459
12459
  return options.map(function (item, index) {
12460
12460
  var key = "auto-complete-item-".concat(index);
@@ -12502,7 +12502,7 @@ var AutoCompleteComponent = /*#__PURE__*/React.forwardRef(function (_ref, userRe
12502
12502
  _ref$disableFreeSolo = _ref.disableFreeSolo,
12503
12503
  disableFreeSolo = _ref$disableFreeSolo === undefined ? false : _ref$disableFreeSolo,
12504
12504
  getPopupContainer = _ref.getPopupContainer,
12505
- props = _objectWithoutProperties(_ref, _excluded$1i);
12505
+ props = _objectWithoutProperties(_ref, _excluded$1j);
12506
12506
  var resetTimer = React.useRef();
12507
12507
  var _useScale = useScale(),
12508
12508
  SCALES = _useScale.SCALES,
@@ -12644,7 +12644,7 @@ AutoCompleteComponent.Option = AutoCompleteItemComponent;
12644
12644
  AutoCompleteComponent.Searching = AutoCompleteSearch;
12645
12645
  AutoCompleteComponent.Empty = AutoCompleteEmpty;
12646
12646
 
12647
- var _excluded$1h = ["src", "stacked", "text", "isSquare", "className"];
12647
+ var _excluded$1i = ["src", "stacked", "text", "isSquare", "className"];
12648
12648
 
12649
12649
  // type NativeAttrs = Omit<
12650
12650
  // Partial<React.ImgHTMLAttributes<any> & React.HTMLAttributes<any>>,
@@ -12665,7 +12665,7 @@ var AvatarComponent = function AvatarComponent(_ref) {
12665
12665
  isSquare = _ref$isSquare === undefined ? false : _ref$isSquare,
12666
12666
  _ref$className = _ref.className,
12667
12667
  className = _ref$className === undefined ? '' : _ref$className,
12668
- props = _objectWithoutProperties(_ref, _excluded$1h);
12668
+ props = _objectWithoutProperties(_ref, _excluded$1i);
12669
12669
  var theme = useTheme();
12670
12670
  var _useScale = useScale(),
12671
12671
  SCALES = _useScale.SCALES;
@@ -12715,7 +12715,7 @@ var AvatarGroup = withScale(AvatarGroupComponent);
12715
12715
 
12716
12716
  Avatar.Group = AvatarGroup;
12717
12717
 
12718
- var _excluded$1g = ["type", "className", "children", "dot"];
12718
+ var _excluded$1h = ["type", "className", "children", "dot"];
12719
12719
  var getBgColor = function getBgColor(type, palette) {
12720
12720
  var colors = {
12721
12721
  "default": palette.foreground,
@@ -12734,7 +12734,7 @@ var BadgeComponent = function BadgeComponent(_ref) {
12734
12734
  children = _ref.children,
12735
12735
  _ref$dot = _ref.dot,
12736
12736
  dot = _ref$dot === undefined ? false : _ref$dot,
12737
- props = _objectWithoutProperties(_ref, _excluded$1g);
12737
+ props = _objectWithoutProperties(_ref, _excluded$1h);
12738
12738
  var theme = useTheme();
12739
12739
  var _useScale = useScale(),
12740
12740
  SCALES = _useScale.SCALES;
@@ -12935,7 +12935,7 @@ var LinkIconComponent = function LinkIconComponent() {
12935
12935
  LinkIconComponent.displayName = 'GeistLinkIcon';
12936
12936
  var LinkIcon = /*#__PURE__*/React.memo(LinkIconComponent);
12937
12937
 
12938
- var _excluded$1f = ["href", "showColor", "underline", "children", "className", "block", "icon"];
12938
+ var _excluded$1g = ["href", "showColor", "underline", "children", "className", "block", "icon"];
12939
12939
  var LinkComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
12940
12940
  var _ref$href = _ref.href,
12941
12941
  href = _ref$href === undefined ? '' : _ref$href,
@@ -12950,7 +12950,7 @@ var LinkComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
12950
12950
  block = _ref$block === undefined ? false : _ref$block,
12951
12951
  _ref$icon = _ref.icon,
12952
12952
  icon = _ref$icon === undefined ? false : _ref$icon,
12953
- props = _objectWithoutProperties(_ref, _excluded$1f);
12953
+ props = _objectWithoutProperties(_ref, _excluded$1g);
12954
12954
  var theme = useTheme();
12955
12955
  var _useScale = useScale(),
12956
12956
  SCALES = _useScale.SCALES;
@@ -12973,7 +12973,7 @@ var LinkComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
12973
12973
  LinkComponent.displayName = 'Link';
12974
12974
  var Link = withScale(LinkComponent);
12975
12975
 
12976
- var _excluded$1e = ["href", "nextLink", "onClick", "children", "className"];
12976
+ var _excluded$1f = ["href", "nextLink", "onClick", "children", "className"];
12977
12977
  var BreadcrumbsItem = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
12978
12978
  var href = _ref.href,
12979
12979
  _ref$nextLink = _ref.nextLink,
@@ -12982,7 +12982,7 @@ var BreadcrumbsItem = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
12982
12982
  children = _ref.children,
12983
12983
  _ref$className = _ref.className,
12984
12984
  className = _ref$className === undefined ? '' : _ref$className,
12985
- props = _objectWithoutProperties(_ref, _excluded$1e);
12985
+ props = _objectWithoutProperties(_ref, _excluded$1f);
12986
12986
  var isLink = React.useMemo(function () {
12987
12987
  return href !== undefined || nextLink;
12988
12988
  }, [href, nextLink]);
@@ -13079,7 +13079,7 @@ var ButtonLoading = function ButtonLoading(_ref) {
13079
13079
  };
13080
13080
  ButtonLoading.displayName = 'GeistButtonLoading';
13081
13081
 
13082
- var _excluded$1d = ["isRight", "isSingle", "children", "className"];
13082
+ var _excluded$1e = ["isRight", "isSingle", "children", "className"];
13083
13083
  var ButtonIcon = function ButtonIcon(_ref) {
13084
13084
  var _ref$isRight = _ref.isRight,
13085
13085
  isRight = _ref$isRight === undefined ? false : _ref$isRight,
@@ -13087,7 +13087,7 @@ var ButtonIcon = function ButtonIcon(_ref) {
13087
13087
  children = _ref.children,
13088
13088
  _ref$className = _ref.className,
13089
13089
  className = _ref$className === undefined ? '' : _ref$className,
13090
- props = _objectWithoutProperties(_ref, _excluded$1d);
13090
+ props = _objectWithoutProperties(_ref, _excluded$1e);
13091
13091
  var classes = useClasses('icon', {
13092
13092
  right: isRight,
13093
13093
  single: isSingle
@@ -13334,7 +13334,7 @@ var getButtonDripColor = function getButtonDripColor(palette, props) {
13334
13334
  return isLightHover ? addColorAlpha(hoverColors.bg, 0.65) : addColorAlpha(palette.accents_2, 0.65);
13335
13335
  };
13336
13336
 
13337
- var _excluded$1c = ["children", "disabled", "type", "loading", "shadow", "ghost", "effect", "onClick", "auto", "icon", "htmlType", "iconRight", "className", "crossOrigin"];
13337
+ var _excluded$1d = ["children", "disabled", "type", "loading", "shadow", "ghost", "effect", "onClick", "auto", "icon", "htmlType", "iconRight", "className", "crossOrigin"];
13338
13338
  var ButtonComponent = /*#__PURE__*/React.forwardRef(function (btnProps, ref) {
13339
13339
  var theme = useTheme();
13340
13340
  var _useScale = useScale(),
@@ -13380,7 +13380,7 @@ var ButtonComponent = /*#__PURE__*/React.forwardRef(function (btnProps, ref) {
13380
13380
  _filteredProps$classN = filteredProps.className,
13381
13381
  className = _filteredProps$classN === undefined ? '' : _filteredProps$classN;
13382
13382
  filteredProps.crossOrigin;
13383
- var props = _objectWithoutProperties(filteredProps, _excluded$1c);
13383
+ var props = _objectWithoutProperties(filteredProps, _excluded$1d);
13384
13384
  /* eslint-enable @typescript-eslint/no-unused-vars */
13385
13385
 
13386
13386
  var _useMemo = React.useMemo(function () {
@@ -13554,7 +13554,7 @@ var useButtonDropdown = function useButtonDropdown() {
13554
13554
  return React.useContext(ButtonDropdownContext);
13555
13555
  };
13556
13556
 
13557
- var _excluded$1b = ["children", "onClick", "className", "main", "icon", "type"];
13557
+ var _excluded$1c = ["children", "onClick", "className", "main", "icon", "type"];
13558
13558
  var ButtonDropdownItem = function ButtonDropdownItem(_ref) {
13559
13559
  var children = _ref.children,
13560
13560
  _ref$onClick = _ref.onClick,
@@ -13565,7 +13565,7 @@ var ButtonDropdownItem = function ButtonDropdownItem(_ref) {
13565
13565
  main = _ref$main === undefined ? false : _ref$main,
13566
13566
  icon = _ref.icon,
13567
13567
  selfType = _ref.type,
13568
- props = _objectWithoutProperties(_ref, _excluded$1b);
13568
+ props = _objectWithoutProperties(_ref, _excluded$1c);
13569
13569
  var theme = useTheme();
13570
13570
  var _useScale = useScale(),
13571
13571
  SCALES = _useScale.SCALES;
@@ -13602,7 +13602,7 @@ var ButtonDropdownItem = function ButtonDropdownItem(_ref) {
13602
13602
  };
13603
13603
  ButtonDropdownItem.displayName = 'ButtonDropdownItem';
13604
13604
 
13605
- var _excluded$1a = ["children", "type", "auto", "className", "disabled", "loading", "icon"];
13605
+ var _excluded$1b = ["children", "type", "auto", "className", "disabled", "loading", "icon"];
13606
13606
  var stopPropagation$1 = function stopPropagation(event) {
13607
13607
  event.stopPropagation();
13608
13608
  event.nativeEvent.stopImmediatePropagation();
@@ -13620,7 +13620,7 @@ var ButtonDropdownComponent = function ButtonDropdownComponent(_ref) {
13620
13620
  _ref$loading = _ref.loading,
13621
13621
  loading = _ref$loading === undefined ? false : _ref$loading,
13622
13622
  icon = _ref.icon,
13623
- props = _objectWithoutProperties(_ref, _excluded$1a);
13623
+ props = _objectWithoutProperties(_ref, _excluded$1b);
13624
13624
  var _useScale = useScale(),
13625
13625
  SCALES = _useScale.SCALES;
13626
13626
  var ref = React.useRef(null);
@@ -13694,7 +13694,7 @@ var ButtonDropdown = withScale(ButtonDropdownComponent);
13694
13694
  /* "use client" */
13695
13695
  ButtonDropdown.Item = ButtonDropdownItem;
13696
13696
 
13697
- var _excluded$19 = ["disabled", "type", "ghost", "vertical", "children", "className"];
13697
+ var _excluded$1a = ["disabled", "type", "ghost", "vertical", "children", "className"];
13698
13698
  var getGroupBorderColors = function getGroupBorderColors(palette, props) {
13699
13699
  var _props$ghost = props.ghost,
13700
13700
  ghost = _props$ghost === undefined ? false : _props$ghost,
@@ -13721,7 +13721,7 @@ var ButtonGroupComponent = function ButtonGroupComponent(groupProps) {
13721
13721
  vertical = groupProps.vertical,
13722
13722
  children = groupProps.children,
13723
13723
  className = groupProps.className,
13724
- props = _objectWithoutProperties(groupProps, _excluded$19);
13724
+ props = _objectWithoutProperties(groupProps, _excluded$1a);
13725
13725
  var initialValue = React.useMemo(function () {
13726
13726
  return {
13727
13727
  disabled: disabled,
@@ -13778,7 +13778,7 @@ var useProportions = function useProportions(value, max) {
13778
13778
  }, [value, max, maxFixed]);
13779
13779
  };
13780
13780
 
13781
- var _excluded$18 = ["value", "limit", "color", "className"];
13781
+ var _excluded$19 = ["value", "limit", "color", "className"];
13782
13782
  var getColor$3 = function getColor(val, palette) {
13783
13783
  if (val < 33) return palette.cyan;
13784
13784
  if (val < 66) return palette.warning;
@@ -13792,7 +13792,7 @@ var CapacityComponent = function CapacityComponent(_ref) {
13792
13792
  userColor = _ref.color,
13793
13793
  _ref$className = _ref.className,
13794
13794
  className = _ref$className === undefined ? '' : _ref$className,
13795
- props = _objectWithoutProperties(_ref, _excluded$18);
13795
+ props = _objectWithoutProperties(_ref, _excluded$19);
13796
13796
  var theme = useTheme();
13797
13797
  var _useScale = useScale(),
13798
13798
  SCALES = _useScale.SCALES;
@@ -13869,14 +13869,14 @@ var getStyles$1 = function getStyles(type, palette, isShadow) {
13869
13869
  });
13870
13870
  };
13871
13871
 
13872
- var _excluded$17 = ["children", "className", "disableAutoMargin"];
13872
+ var _excluded$18 = ["children", "className", "disableAutoMargin"];
13873
13873
  var CardFooterComponent = function CardFooterComponent(_ref) {
13874
13874
  var children = _ref.children,
13875
13875
  _ref$className = _ref.className,
13876
13876
  className = _ref$className === undefined ? '' : _ref$className,
13877
13877
  _ref$disableAutoMargi = _ref.disableAutoMargin,
13878
13878
  disableAutoMargin = _ref$disableAutoMargi === undefined ? false : _ref$disableAutoMargi,
13879
- props = _objectWithoutProperties(_ref, _excluded$17);
13879
+ props = _objectWithoutProperties(_ref, _excluded$18);
13880
13880
  var theme = useTheme();
13881
13881
  var _useScale = useScale(),
13882
13882
  SCALES = _useScale.SCALES;
@@ -13893,12 +13893,12 @@ var CardFooterComponent = function CardFooterComponent(_ref) {
13893
13893
  CardFooterComponent.displayName = 'CardFooter';
13894
13894
  var CardFooter = withScale(CardFooterComponent);
13895
13895
 
13896
- var _excluded$16 = ["className", "children"];
13896
+ var _excluded$17 = ["className", "children"];
13897
13897
  var CardContentComponent = function CardContentComponent(_ref) {
13898
13898
  var _ref$className = _ref.className,
13899
13899
  className = _ref$className === undefined ? '' : _ref$className,
13900
13900
  children = _ref.children,
13901
- props = _objectWithoutProperties(_ref, _excluded$16);
13901
+ props = _objectWithoutProperties(_ref, _excluded$17);
13902
13902
  var _useScale = useScale(),
13903
13903
  SCALES = _useScale.SCALES;
13904
13904
  return /*#__PURE__*/React.createElement("div", _extends({}, props, {
@@ -13911,11 +13911,11 @@ var CardContentComponent = function CardContentComponent(_ref) {
13911
13911
  CardContentComponent.displayName = 'CardContent';
13912
13912
  var CardContent = withScale(CardContentComponent);
13913
13913
 
13914
- var _excluded$15 = ["opacity"];
13914
+ var _excluded$16 = ["opacity"];
13915
13915
  var ImageSkeleton = /*#__PURE__*/React.memo(function (_ref) {
13916
13916
  var _ref$opacity = _ref.opacity,
13917
13917
  opacity = _ref$opacity === undefined ? 0.5 : _ref$opacity,
13918
- props = _objectWithoutProperties(_ref, _excluded$15);
13918
+ props = _objectWithoutProperties(_ref, _excluded$16);
13919
13919
  var theme = useTheme();
13920
13920
  return /*#__PURE__*/React.createElement("div", _extends({}, props, {
13921
13921
  className: _JSXStyle.dynamic([["2946022605", [theme.palette.accents_1, theme.palette.accents_2, theme.palette.accents_2, theme.palette.accents_1, opacity]]]) + " " + (props && props.className != null && props.className || "skeleton")
@@ -13941,7 +13941,7 @@ var getHostFromUrl = function getHostFromUrl(url) {
13941
13941
  }
13942
13942
  };
13943
13943
 
13944
- var _excluded$14 = ["src", "disableSkeleton", "className", "maxDelay"];
13944
+ var _excluded$15 = ["src", "disableSkeleton", "className", "maxDelay"];
13945
13945
  var ImageComponent = function ImageComponent(_ref) {
13946
13946
  var src = _ref.src,
13947
13947
  _ref$disableSkeleton = _ref.disableSkeleton,
@@ -13950,7 +13950,7 @@ var ImageComponent = function ImageComponent(_ref) {
13950
13950
  className = _ref$className === undefined ? '' : _ref$className,
13951
13951
  _ref$maxDelay = _ref.maxDelay,
13952
13952
  maxDelay = _ref$maxDelay === undefined ? 3000 : _ref$maxDelay,
13953
- props = _objectWithoutProperties(_ref, _excluded$14);
13953
+ props = _objectWithoutProperties(_ref, _excluded$15);
13954
13954
  var _useScale = useScale(),
13955
13955
  SCALES = _useScale.SCALES,
13956
13956
  getScaleProps = _useScale.getScaleProps;
@@ -14046,7 +14046,7 @@ var getBrowserColors = function getBrowserColors(invert, palette) {
14046
14046
  };
14047
14047
  };
14048
14048
 
14049
- var _excluded$13 = ["url", "title", "children", "showFullLink", "invert", "anchorProps", "className"];
14049
+ var _excluded$14 = ["url", "title", "children", "showFullLink", "invert", "anchorProps", "className"];
14050
14050
  var getTitle = function getTitle(title, colors) {
14051
14051
  return /*#__PURE__*/React.createElement("div", {
14052
14052
  className: _JSXStyle.dynamic([["524099755", [colors.titleColor]]]) + " " + "title"
@@ -14081,7 +14081,7 @@ var ImageBrowserComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
14081
14081
  anchorProps = _ref$anchorProps === undefined ? {} : _ref$anchorProps,
14082
14082
  _ref$className = _ref.className,
14083
14083
  className = _ref$className === undefined ? '' : _ref$className,
14084
- props = _objectWithoutProperties(_ref, _excluded$13);
14084
+ props = _objectWithoutProperties(_ref, _excluded$14);
14085
14085
  var theme = useTheme();
14086
14086
  var _useScale = useScale(),
14087
14087
  SCALES = _useScale.SCALES;
@@ -14117,7 +14117,7 @@ var ImageBrowser = withScale(ImageBrowserComponent);
14117
14117
 
14118
14118
  Image.Browser = ImageBrowser;
14119
14119
 
14120
- var _excluded$12 = ["children", "hoverable", "className", "shadow", "type"];
14120
+ var _excluded$13 = ["children", "hoverable", "className", "shadow", "type"];
14121
14121
  var CardComponent = function CardComponent(_ref) {
14122
14122
  var children = _ref.children,
14123
14123
  _ref$hoverable = _ref.hoverable,
@@ -14128,7 +14128,7 @@ var CardComponent = function CardComponent(_ref) {
14128
14128
  shadow = _ref$shadow === undefined ? false : _ref$shadow,
14129
14129
  _ref$type = _ref.type,
14130
14130
  type = _ref$type === undefined ? 'default' : _ref$type,
14131
- props = _objectWithoutProperties(_ref, _excluded$12);
14131
+ props = _objectWithoutProperties(_ref, _excluded$13);
14132
14132
  var theme = useTheme();
14133
14133
  var _useScale = useScale(),
14134
14134
  SCALES = _useScale.SCALES;
@@ -14250,7 +14250,7 @@ var getColors$7 = function getColors(palette, status) {
14250
14250
  return colors[status];
14251
14251
  };
14252
14252
 
14253
- var _excluded$11 = ["checked", "initialChecked", "disabled", "onChange", "className", "children", "type", "value"];
14253
+ var _excluded$12 = ["checked", "initialChecked", "disabled", "onChange", "className", "children", "type", "value"];
14254
14254
  var CheckboxComponent = function CheckboxComponent(_ref) {
14255
14255
  var checked = _ref.checked,
14256
14256
  _ref$initialChecked = _ref.initialChecked,
@@ -14265,7 +14265,7 @@ var CheckboxComponent = function CheckboxComponent(_ref) {
14265
14265
  type = _ref$type === undefined ? 'default' : _ref$type,
14266
14266
  _ref$value = _ref.value,
14267
14267
  value = _ref$value === undefined ? '' : _ref$value,
14268
- props = _objectWithoutProperties(_ref, _excluded$11);
14268
+ props = _objectWithoutProperties(_ref, _excluded$12);
14269
14269
  var theme = useTheme();
14270
14270
  var _useScale = useScale(),
14271
14271
  SCALES = _useScale.SCALES;
@@ -14339,7 +14339,7 @@ var CheckboxComponent = function CheckboxComponent(_ref) {
14339
14339
  CheckboxComponent.displayName = 'Checkbox';
14340
14340
  var Checkbox = withScale(CheckboxComponent);
14341
14341
 
14342
- var _excluded$10 = ["disabled", "onChange", "value", "children", "className"];
14342
+ var _excluded$11 = ["disabled", "onChange", "value", "children", "className"];
14343
14343
  var CheckboxGroupComponent = function CheckboxGroupComponent(_ref) {
14344
14344
  var _ref$disabled = _ref.disabled,
14345
14345
  disabled = _ref$disabled === undefined ? false : _ref$disabled,
@@ -14348,7 +14348,7 @@ var CheckboxGroupComponent = function CheckboxGroupComponent(_ref) {
14348
14348
  children = _ref.children,
14349
14349
  _ref$className = _ref.className,
14350
14350
  className = _ref$className === undefined ? '' : _ref$className,
14351
- props = _objectWithoutProperties(_ref, _excluded$10);
14351
+ props = _objectWithoutProperties(_ref, _excluded$11);
14352
14352
  var _useScale = useScale(),
14353
14353
  SCALES = _useScale.SCALES;
14354
14354
  var _useState = React.useState([]),
@@ -14395,7 +14395,7 @@ var CheckboxGroup = withScale(CheckboxGroupComponent);
14395
14395
 
14396
14396
  Checkbox.Group = CheckboxGroup;
14397
14397
 
14398
- var _excluded$$ = ["children", "block", "className", "name", "classic"];
14398
+ var _excluded$10 = ["children", "block", "className", "name", "classic"];
14399
14399
  var CodeComponent = function CodeComponent(_ref) {
14400
14400
  var children = _ref.children,
14401
14401
  _ref$block = _ref.block,
@@ -14406,7 +14406,7 @@ var CodeComponent = function CodeComponent(_ref) {
14406
14406
  name = _ref$name === undefined ? '' : _ref$name,
14407
14407
  _ref$classic = _ref.classic,
14408
14408
  classic = _ref$classic === undefined ? false : _ref$classic,
14409
- props = _objectWithoutProperties(_ref, _excluded$$);
14409
+ props = _objectWithoutProperties(_ref, _excluded$10);
14410
14410
  var _useScale = useScale(),
14411
14411
  SCALES = _useScale.SCALES;
14412
14412
  var theme = useTheme();
@@ -14439,6 +14439,244 @@ var CodeComponent = function CodeComponent(_ref) {
14439
14439
  CodeComponent.displayName = 'Code';
14440
14440
  var Code = withScale(CodeComponent);
14441
14441
 
14442
+ var VIEWBOX_WIDTH = 100;
14443
+ var VIEWBOX_HEIGHT = 100;
14444
+ var VIEWBOX_HEIGHT_HALF = 50;
14445
+ var VIEWBOX_CENTER_X = 50;
14446
+ var VIEWBOX_CENTER_Y = 50;
14447
+
14448
+ function Path(_ref) {
14449
+ var className = _ref.className,
14450
+ counterClockwise = _ref.counterClockwise,
14451
+ dashRatio = _ref.dashRatio,
14452
+ pathRadius = _ref.pathRadius,
14453
+ strokeWidth = _ref.strokeWidth,
14454
+ style = _ref.style;
14455
+ return /*#__PURE__*/React__namespace.createElement("path", {
14456
+ className: className,
14457
+ style: Object.assign({}, style, getDashStyle({
14458
+ pathRadius: pathRadius,
14459
+ dashRatio: dashRatio,
14460
+ counterClockwise: counterClockwise
14461
+ })),
14462
+ d: getPathDescription({
14463
+ pathRadius: pathRadius,
14464
+ counterClockwise: counterClockwise
14465
+ }),
14466
+ strokeWidth: strokeWidth,
14467
+ fillOpacity: 0
14468
+ });
14469
+ }
14470
+
14471
+ // SVG path description specifies how the path should be drawn
14472
+ function getPathDescription(_ref2) {
14473
+ var pathRadius = _ref2.pathRadius,
14474
+ counterClockwise = _ref2.counterClockwise;
14475
+ var radius = pathRadius;
14476
+ var rotation = counterClockwise ? 1 : 0;
14477
+
14478
+ // Move to center of canvas
14479
+ // Relative move to top canvas
14480
+ // Relative arc to bottom of canvas
14481
+ // Relative arc to top of canvas
14482
+ return "\n M ".concat(VIEWBOX_CENTER_X, ",").concat(VIEWBOX_CENTER_Y, "\n m 0,-").concat(radius, "\n a ").concat(radius, ",").concat(radius, " ").concat(rotation, " 1 1 0,").concat(2 * radius, "\n a ").concat(radius, ",").concat(radius, " ").concat(rotation, " 1 1 0,-").concat(2 * radius, "\n ");
14483
+ }
14484
+ function getDashStyle(_ref3) {
14485
+ var counterClockwise = _ref3.counterClockwise,
14486
+ dashRatio = _ref3.dashRatio,
14487
+ pathRadius = _ref3.pathRadius;
14488
+ var diameter = Math.PI * 2 * pathRadius;
14489
+ var gapLength = (1 - dashRatio) * diameter;
14490
+ return {
14491
+ // Have dash be full diameter, and gap be full diameter
14492
+ strokeDasharray: "".concat(diameter, "px ").concat(diameter, "px"),
14493
+ // Shift dash backward by gapLength, so gap starts appearing at correct distance
14494
+ strokeDashoffset: "".concat(counterClockwise ? -gapLength : gapLength, "px")
14495
+ };
14496
+ }
14497
+
14498
+ var CircularProgressbar = /*#__PURE__*/function (_React$Component) {
14499
+ function CircularProgressbar() {
14500
+ _classCallCheck(this, CircularProgressbar);
14501
+ return _callSuper(this, CircularProgressbar, arguments);
14502
+ }
14503
+ _inherits(CircularProgressbar, _React$Component);
14504
+ return _createClass(CircularProgressbar, [{
14505
+ key: "getBackgroundPadding",
14506
+ value: function getBackgroundPadding() {
14507
+ if (!this.props.background) {
14508
+ // Don't add padding if not displaying background
14509
+ return 0;
14510
+ }
14511
+ return this.props.backgroundPadding;
14512
+ }
14513
+ }, {
14514
+ key: "getPathRadius",
14515
+ value: function getPathRadius() {
14516
+ // The radius of the path is defined to be in the middle, so in order for the path to
14517
+ // fit perfectly inside the 100x100 viewBox, need to subtract half the strokeWidth
14518
+ return VIEWBOX_HEIGHT_HALF - this.props.strokeWidth / 2 - this.getBackgroundPadding();
14519
+ }
14520
+
14521
+ // Ratio of path length to trail length, as a value between 0 and 1
14522
+ }, {
14523
+ key: "getPathRatio",
14524
+ value: function getPathRatio() {
14525
+ var _this$props = this.props,
14526
+ value = _this$props.value,
14527
+ minValue = _this$props.minValue,
14528
+ maxValue = _this$props.maxValue;
14529
+ var boundedValue = Math.min(Math.max(value, minValue), maxValue);
14530
+ return (boundedValue - minValue) / (maxValue - minValue);
14531
+ }
14532
+ }, {
14533
+ key: "render",
14534
+ value: function render() {
14535
+ var _this$props2 = this.props,
14536
+ circleRatio = _this$props2.circleRatio,
14537
+ className = _this$props2.className,
14538
+ classes = _this$props2.classes,
14539
+ counterClockwise = _this$props2.counterClockwise,
14540
+ styles = _this$props2.styles,
14541
+ strokeWidth = _this$props2.strokeWidth,
14542
+ text = _this$props2.text;
14543
+ var pathRadius = this.getPathRadius();
14544
+ var pathRatio = this.getPathRatio();
14545
+ return /*#__PURE__*/React__namespace.createElement("svg", {
14546
+ className: "".concat(classes.root, " ").concat(className),
14547
+ style: styles.root,
14548
+ viewBox: "0 0 ".concat(VIEWBOX_WIDTH, " ").concat(VIEWBOX_HEIGHT),
14549
+ "data-test-id": "CircularProgressbar"
14550
+ }, this.props.background ? /*#__PURE__*/React__namespace.createElement("circle", {
14551
+ className: classes.background,
14552
+ style: styles.background,
14553
+ cx: VIEWBOX_CENTER_X,
14554
+ cy: VIEWBOX_CENTER_Y,
14555
+ r: VIEWBOX_HEIGHT_HALF
14556
+ }) : null, /*#__PURE__*/React__namespace.createElement(Path, {
14557
+ className: classes.trail,
14558
+ counterClockwise: counterClockwise,
14559
+ dashRatio: circleRatio,
14560
+ pathRadius: pathRadius,
14561
+ strokeWidth: strokeWidth,
14562
+ style: styles.trail
14563
+ }), /*#__PURE__*/React__namespace.createElement(Path, {
14564
+ className: classes.path,
14565
+ counterClockwise: counterClockwise,
14566
+ dashRatio: pathRatio * circleRatio,
14567
+ pathRadius: pathRadius,
14568
+ strokeWidth: strokeWidth,
14569
+ style: styles.path
14570
+ }), text ? /*#__PURE__*/React__namespace.createElement("text", {
14571
+ className: classes.text,
14572
+ style: styles.text,
14573
+ x: VIEWBOX_CENTER_X,
14574
+ y: VIEWBOX_CENTER_Y
14575
+ }, text) : null);
14576
+ }
14577
+ }]);
14578
+ }(React__namespace.Component);
14579
+ _defineProperty$1(CircularProgressbar, "defaultProps", {
14580
+ background: false,
14581
+ backgroundPadding: 0,
14582
+ circleRatio: 1,
14583
+ classes: {
14584
+ root: 'CircularProgressbar',
14585
+ trail: 'CircularProgressbar-trail',
14586
+ path: 'CircularProgressbar-path',
14587
+ text: 'CircularProgressbar-text',
14588
+ background: 'CircularProgressbar-background'
14589
+ },
14590
+ counterClockwise: false,
14591
+ className: '',
14592
+ maxValue: 100,
14593
+ minValue: 0,
14594
+ strokeWidth: 8,
14595
+ styles: {
14596
+ root: {},
14597
+ trail: {},
14598
+ path: {},
14599
+ text: {},
14600
+ background: {}
14601
+ },
14602
+ text: ''
14603
+ });
14604
+
14605
+ var _excluded$$ = ["children"];
14606
+ // This is a wrapper around CircularProgressbar that allows passing children,
14607
+ // which will be vertically and horizontally centered inside the progressbar automatically.
14608
+ function CircularProgressbarWithChildren(props) {
14609
+ props.children;
14610
+ var circularProgressbarProps = _objectWithoutProperties(props, _excluded$$);
14611
+ return /*#__PURE__*/React__namespace.createElement("div", {
14612
+ "data-test-id": "CircularProgressbarWithChildren"
14613
+ }, /*#__PURE__*/React__namespace.createElement("div", {
14614
+ style: {
14615
+ position: 'relative',
14616
+ width: '100%',
14617
+ height: '100%'
14618
+ }
14619
+ }, /*#__PURE__*/React__namespace.createElement(CircularProgressbar, circularProgressbarProps), props.children ? /*#__PURE__*/React__namespace.createElement("div", {
14620
+ "data-test-id": "CircularProgressbarWithChildren__children",
14621
+ style: {
14622
+ position: 'absolute',
14623
+ width: '100%',
14624
+ height: '100%',
14625
+ marginTop: '-100%',
14626
+ display: 'flex',
14627
+ flexDirection: 'column',
14628
+ justifyContent: 'center',
14629
+ alignItems: 'center'
14630
+ }
14631
+ }, props.children) : null));
14632
+ }
14633
+
14634
+ function buildStyles(_ref) {
14635
+ var rotation = _ref.rotation,
14636
+ strokeLinecap = _ref.strokeLinecap,
14637
+ textColor = _ref.textColor,
14638
+ textSize = _ref.textSize,
14639
+ pathColor = _ref.pathColor,
14640
+ pathTransition = _ref.pathTransition,
14641
+ pathTransitionDuration = _ref.pathTransitionDuration,
14642
+ trailColor = _ref.trailColor,
14643
+ backgroundColor = _ref.backgroundColor;
14644
+ var rotationTransform = rotation == null ? undefined : "rotate(".concat(rotation, "turn)");
14645
+ var rotationTransformOrigin = rotation == null ? undefined : 'center center';
14646
+ return {
14647
+ root: {},
14648
+ path: removeUndefinedValues({
14649
+ stroke: pathColor,
14650
+ strokeLinecap: strokeLinecap,
14651
+ transform: rotationTransform,
14652
+ transformOrigin: rotationTransformOrigin,
14653
+ transition: pathTransition,
14654
+ transitionDuration: pathTransitionDuration == null ? undefined : "".concat(pathTransitionDuration, "s")
14655
+ }),
14656
+ trail: removeUndefinedValues({
14657
+ stroke: trailColor,
14658
+ strokeLinecap: strokeLinecap,
14659
+ transform: rotationTransform,
14660
+ transformOrigin: rotationTransformOrigin
14661
+ }),
14662
+ text: removeUndefinedValues({
14663
+ fill: textColor,
14664
+ fontSize: textSize
14665
+ }),
14666
+ background: removeUndefinedValues({
14667
+ fill: backgroundColor
14668
+ })
14669
+ };
14670
+ }
14671
+ function removeUndefinedValues(obj) {
14672
+ Object.keys(obj).forEach(function (key) {
14673
+ if (obj[key] == null) {
14674
+ delete obj[key];
14675
+ }
14676
+ });
14677
+ return obj;
14678
+ }
14679
+
14442
14680
  var CollapseIcon = function CollapseIcon(_ref) {
14443
14681
  var active = _ref.active;
14444
14682
  return /*#__PURE__*/React.createElement("svg", {
@@ -44885,6 +45123,7 @@ exports.Capacity = Capacity;
44885
45123
  exports.Card = Card;
44886
45124
  exports.CartProvider = CartProvider;
44887
45125
  exports.Checkbox = Checkbox;
45126
+ exports.CircularProgress = CircularProgressbarWithChildren;
44888
45127
  exports.Code = Code;
44889
45128
  exports.Collapse = Collapse;
44890
45129
  exports.Container = GridContainer;
@@ -44946,6 +45185,7 @@ exports.Tooltip = Tooltip;
44946
45185
  exports.Tree = Tree;
44947
45186
  exports.UiProvider = HuiProvider;
44948
45187
  exports.User = User;
45188
+ exports.buildStyles = buildStyles;
44949
45189
  exports.connect = connect;
44950
45190
  exports.createCartIdentifier = createCartIdentifier;
44951
45191
  exports.getActiveElement = getActiveElement;