@hyphen/hyphen-components 6.15.1 → 7.0.0-beta.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.
Files changed (31) hide show
  1. package/dist/components/Calendar/Calendar.d.ts +5 -0
  2. package/dist/components/Calendar/Calendar.stories.d.ts +12 -0
  3. package/dist/css/index.css +2 -3
  4. package/dist/css/utilities.css +8 -0
  5. package/dist/hyphen-components.cjs.development.js +644 -809
  6. package/dist/hyphen-components.cjs.development.js.map +1 -1
  7. package/dist/hyphen-components.cjs.production.min.js +1 -1
  8. package/dist/hyphen-components.cjs.production.min.js.map +1 -1
  9. package/dist/hyphen-components.esm.js +645 -808
  10. package/dist/hyphen-components.esm.js.map +1 -1
  11. package/dist/index.d.ts +1 -2
  12. package/package.json +2 -3
  13. package/src/components/Calendar/Calendar.mdx +28 -0
  14. package/src/components/Calendar/Calendar.stories.tsx +217 -0
  15. package/src/components/Calendar/Calendar.tsx +117 -0
  16. package/src/components/Formik/Formik.stories.tsx +10 -21
  17. package/src/index.ts +1 -2
  18. package/src/styles/utilities.scss +8 -0
  19. package/dist/components/DateInput/DateInput.d.ts +0 -57
  20. package/dist/components/DateInput/DateInput.stories.d.ts +0 -11
  21. package/dist/components/DatePicker/DatePicker.d.ts +0 -86
  22. package/dist/components/DatePicker/DatePicker.stories.d.ts +0 -13
  23. package/src/components/DateInput/DateInput.mdx +0 -61
  24. package/src/components/DateInput/DateInput.stories.tsx +0 -168
  25. package/src/components/DateInput/DateInput.test.tsx +0 -176
  26. package/src/components/DateInput/DateInput.tsx +0 -212
  27. package/src/components/DatePicker/DatePicker.mdx +0 -52
  28. package/src/components/DatePicker/DatePicker.module.scss +0 -603
  29. package/src/components/DatePicker/DatePicker.stories.tsx +0 -199
  30. package/src/components/DatePicker/DatePicker.test.tsx +0 -26
  31. package/src/components/DatePicker/DatePicker.tsx +0 -138
@@ -8,12 +8,9 @@ var classNames = require('classnames');
8
8
  var icons = require('@hyphen/hyphen-design-tokens/build/assets/icons/react');
9
9
  var AspectRatioPrimitive = require('@radix-ui/react-aspect-ratio');
10
10
  var reactSlot = require('@radix-ui/react-slot');
11
+ require('react-day-picker');
12
+ require('react-day-picker/style.css');
11
13
  var CollapsiblePrimitive = require('@radix-ui/react-collapsible');
12
- var format = require('date-fns/format');
13
- var ReactDatePicker = require('react-datepicker');
14
- var PopoverPrimitive = require('@radix-ui/react-popover');
15
- var designTokens = require('@hyphen/hyphen-design-tokens/build/json/variables');
16
- require('@hyphen/hyphen-design-tokens/build/assets/icons');
17
14
  var ReactModal = require('react-modal');
18
15
  var FocusLock = require('react-focus-lock');
19
16
  var reactRemoveScroll = require('react-remove-scroll');
@@ -23,7 +20,10 @@ var Select = require('react-select');
23
20
  var AsyncCreatableSelect = require('react-select/async-creatable');
24
21
  var AsyncSelect = require('react-select/async');
25
22
  var CreatableSelect = require('react-select/creatable');
23
+ var designTokens = require('@hyphen/hyphen-design-tokens/build/json/variables');
24
+ require('@hyphen/hyphen-design-tokens/build/assets/icons');
26
25
  var ToggleGroupPrimitive = require('@radix-ui/react-toggle-group');
26
+ var PopoverPrimitive = require('@radix-ui/react-popover');
27
27
  var TooltipPrimitive = require('@radix-ui/react-tooltip');
28
28
  var uuid = require('uuid');
29
29
  var TogglePrimitive = require('@radix-ui/react-toggle');
@@ -48,9 +48,9 @@ function _interopNamespaceDefault(e) {
48
48
  var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
49
49
  var AspectRatioPrimitive__namespace = /*#__PURE__*/_interopNamespaceDefault(AspectRatioPrimitive);
50
50
  var CollapsiblePrimitive__namespace = /*#__PURE__*/_interopNamespaceDefault(CollapsiblePrimitive);
51
- var PopoverPrimitive__namespace = /*#__PURE__*/_interopNamespaceDefault(PopoverPrimitive);
52
51
  var DropdownMenuPrimitive__namespace = /*#__PURE__*/_interopNamespaceDefault(DropdownMenuPrimitive);
53
52
  var ToggleGroupPrimitive__namespace = /*#__PURE__*/_interopNamespaceDefault(ToggleGroupPrimitive);
53
+ var PopoverPrimitive__namespace = /*#__PURE__*/_interopNamespaceDefault(PopoverPrimitive);
54
54
  var TooltipPrimitive__namespace = /*#__PURE__*/_interopNamespaceDefault(TooltipPrimitive);
55
55
  var TogglePrimitive__namespace = /*#__PURE__*/_interopNamespaceDefault(TogglePrimitive);
56
56
 
@@ -282,9 +282,9 @@ Component, props, getDefault) {
282
282
  return defaultProps.as || 'div';
283
283
  }
284
284
 
285
- var styles$A = {"box-transition":"Box-module_box-transition__eQx8C"};
285
+ var styles$z = {"box-transition":"Box-module_box-transition__eQx8C"};
286
286
 
287
- var _excluded$R = ["as", "alignItems", "alignContent", "alignSelf", "background", "borderColor", "borderWidth", "children", "childGap", "className", "color", "columnGap", "cursor", "display", "direction", "flex", "fontFamily", "fontSize", "focus", "fontWeight", "gap", "height", "hover", "justifyContent", "margin", "maxHeight", "minHeight", "maxWidth", "minWidth", "overflow", "padding", "position", "radius", "rowGap", "shadow", "style", "textAlign", "textTransform", "textWrap", "wrap", "whiteSpace", "width", "wordBreak", "zIndex"];
287
+ var _excluded$Q = ["as", "alignItems", "alignContent", "alignSelf", "background", "borderColor", "borderWidth", "children", "childGap", "className", "color", "columnGap", "cursor", "display", "direction", "flex", "fontFamily", "fontSize", "focus", "fontWeight", "gap", "height", "hover", "justifyContent", "margin", "maxHeight", "minHeight", "maxWidth", "minWidth", "overflow", "padding", "position", "radius", "rowGap", "shadow", "style", "textAlign", "textTransform", "textWrap", "wrap", "whiteSpace", "width", "wordBreak", "zIndex"];
288
288
  /**
289
289
  * A `<Box>` is a layout component to build UIs with consistent padding and spacing between
290
290
  * elements.
@@ -379,7 +379,7 @@ var Box = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
379
379
  wordBreak = _ref$wordBreak === void 0 ? undefined : _ref$wordBreak,
380
380
  _ref$zIndex = _ref.zIndex,
381
381
  zIndex = _ref$zIndex === void 0 ? undefined : _ref$zIndex,
382
- restProps = _objectWithoutPropertiesLoose(_ref, _excluded$R);
382
+ restProps = _objectWithoutPropertiesLoose(_ref, _excluded$Q);
383
383
  var heightCss = getDimensionCss('h', height);
384
384
  var widthCss = getDimensionCss('w', width);
385
385
  var maxHeightCss = getDimensionCss('mh', maxHeight);
@@ -428,7 +428,7 @@ var Box = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
428
428
  var boxClasses = classNames.apply(void 0, [className, cssShorthandToClasses('m', margin), cssShorthandToClasses('p', padding), cssShorthandToClasses('br', radius), cssShorthandToClasses('g', gap), cssShorthandToClasses('cg', columnGap), cssShorthandToClasses('rg', rowGap), heightCss.classes, maxHeightCss.classes, minHeightCss.classes, maxWidthCss.classes, minWidthCss.classes, widthCss.classes, flexDirectionClasses, generateResponsiveClasses('display', display), generateResponsiveClasses('justify-content', justifyContent), generateResponsiveClasses('align-items', alignItems), generateResponsiveClasses('align-content', alignContent), generateResponsiveClasses('align-self', alignSelf), generateResponsiveClasses('font-family', fontFamily), generateResponsiveClasses('font-size', fontSize), generateResponsiveClasses('overflow', overflow), generateResponsiveClasses('shadow', shadow), generateResponsiveClasses('flex', flex), cssShorthandToClasses('bw', borderWidth), generateResponsiveClasses('font-weight', fontWeight), generateResponsiveClasses('text-align', textAlign), generateResponsiveClasses('transform', textTransform), generateResponsiveClasses('text-wrap', textWrap), generateResponsiveClasses('position', position), generateResponsiveClasses('z-index', zIndex), generateResponsiveClasses('whitespace', whiteSpace), generateResponsiveClasses('break', wordBreak)].concat(hoverClasses != null ? hoverClasses : [], focusClasses != null ? focusClasses : [], [(_ref3 = {
429
429
  'flex-wrap': isFlexBox && wrap,
430
430
  'flex-nowrap': isFlexBox && wrap === false
431
- }, _ref3["background-color-" + background] = background, _ref3["font-color-" + color] = color, _ref3["border-color-" + borderColor] = borderColor, _ref3["cursor-" + cursor] = cursor, _ref3[styles$A['box-transition']] = hover || focus, _ref3)]));
431
+ }, _ref3["background-color-" + background] = background, _ref3["font-color-" + color] = color, _ref3["border-color-" + borderColor] = borderColor, _ref3["cursor-" + cursor] = cursor, _ref3[styles$z['box-transition']] = hover || focus, _ref3)]));
432
432
  var boxStyles = _extends({}, style, heightCss.styles, maxHeightCss.styles, maxWidthCss.styles, widthCss.styles, minHeightCss.styles, minWidthCss.styles);
433
433
  /**
434
434
  * Creates an object that maps the flex direction to either `right` or `bottom`
@@ -530,14 +530,14 @@ var Box = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
530
530
  });
531
531
  var boxPropsKeys = ['as', 'alignItems', 'alignContent', 'alignSelf', 'background', 'borderColor', 'borderWidth', 'className', 'childGap', 'children', 'color', 'columnGap', 'cursor', 'direction', 'display', 'flex', 'focus', 'fontFamily', 'fontSize', 'fontWeight', 'gap', 'height', 'hover', 'justifyContent', 'margin', 'maxHeight', 'minHeight', 'maxWidth', 'minWidth', 'overflow', 'padding', 'position', 'radius', 'rowGap', 'shadow', 'style', 'textAlign', 'textTransform', 'textWrap', 'wrap', 'width', 'zIndex'];
532
532
 
533
- var _excluded$Q = ["className", "name", "color", "size"];
533
+ var _excluded$P = ["className", "name", "color", "size"];
534
534
  var Icon = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
535
535
  var _ref$className = _ref.className,
536
536
  className = _ref$className === void 0 ? undefined : _ref$className,
537
537
  name = _ref.name,
538
538
  color = _ref.color,
539
539
  size = _ref.size,
540
- restProps = _objectWithoutPropertiesLoose(_ref, _excluded$Q);
540
+ restProps = _objectWithoutPropertiesLoose(_ref, _excluded$P);
541
541
  var IconComponent = icons[name];
542
542
  if (!IconComponent) console.error("Icon '" + name + "' not found"); // eslint-disable-line no-console
543
543
  var iconClasses = classNames(className, generateResponsiveClasses('font-color', color), generateResponsiveClasses('font-size', size));
@@ -555,7 +555,7 @@ var Icon = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
555
555
  }, "???");
556
556
  });
557
557
 
558
- var styles$z = {"alert":"Alert-module_alert__zP4AL","close-icon":"Alert-module_close-icon__zs4Xk","alert-heading":"Alert-module_alert-heading__VguTk","alert__default":"Alert-module_alert__default__-pcBw","alert__info":"Alert-module_alert__info__UZeOd","alert__success":"Alert-module_alert__success__o2IHF","alert__warning":"Alert-module_alert__warning__lzTY-","alert__danger":"Alert-module_alert__danger__M-XFh","alert__icon__default":"Alert-module_alert__icon__default__cCx9C","alert__icon__info":"Alert-module_alert__icon__info__2W0Bi","alert__icon__success":"Alert-module_alert__icon__success__NBCDO","alert__icon__warning":"Alert-module_alert__icon__warning__nY4hy","alert__icon__danger":"Alert-module_alert__icon__danger__NcOrf"};
558
+ var styles$y = {"alert":"Alert-module_alert__zP4AL","close-icon":"Alert-module_close-icon__zs4Xk","alert-heading":"Alert-module_alert-heading__VguTk","alert__default":"Alert-module_alert__default__-pcBw","alert__info":"Alert-module_alert__info__UZeOd","alert__success":"Alert-module_alert__success__o2IHF","alert__warning":"Alert-module_alert__warning__lzTY-","alert__danger":"Alert-module_alert__danger__M-XFh","alert__icon__default":"Alert-module_alert__icon__default__cCx9C","alert__icon__info":"Alert-module_alert__icon__info__2W0Bi","alert__icon__success":"Alert-module_alert__icon__success__NBCDO","alert__icon__warning":"Alert-module_alert__icon__warning__nY4hy","alert__icon__danger":"Alert-module_alert__icon__danger__NcOrf"};
559
559
 
560
560
  var ALERT_ICONS_MAP = {
561
561
  "default": {
@@ -575,7 +575,7 @@ var ALERT_ICONS_MAP = {
575
575
  }
576
576
  };
577
577
 
578
- var _excluded$P = ["children", "className", "hasIcon", "isCompact", "message", "onClose", "render", "title", "variant"];
578
+ var _excluded$O = ["children", "className", "hasIcon", "isCompact", "message", "onClose", "render", "title", "variant"];
579
579
  var AlertComponent = function AlertComponent(_ref) {
580
580
  var children = _ref.children,
581
581
  _ref$className = _ref.className,
@@ -594,7 +594,7 @@ var AlertComponent = function AlertComponent(_ref) {
594
594
  title = _ref$title === void 0 ? '' : _ref$title,
595
595
  _ref$variant = _ref.variant,
596
596
  variant = _ref$variant === void 0 ? 'default' : _ref$variant,
597
- restProps = _objectWithoutPropertiesLoose(_ref, _excluded$P);
597
+ restProps = _objectWithoutPropertiesLoose(_ref, _excluded$O);
598
598
  var handleClose = React.useCallback(function (event) {
599
599
  if (!onClose) return;
600
600
  onClose(event);
@@ -603,13 +603,13 @@ var AlertComponent = function AlertComponent(_ref) {
603
603
  if (event.keyCode === 13) handleClose(event);
604
604
  }, [handleClose]);
605
605
  var alertContainerClasses = React.useMemo(function () {
606
- return classNames(styles$z["alert__" + variant], styles$z.alert, className);
606
+ return classNames(styles$y["alert__" + variant], styles$y.alert, className);
607
607
  }, [variant, className]);
608
608
  var alertIcon = React.useMemo(function () {
609
609
  if (!hasIcon) return null;
610
610
  return React.createElement(Box, {
611
611
  fontSize: "md",
612
- className: styles$z["alert__icon__" + variant]
612
+ className: styles$y["alert__icon__" + variant]
613
613
  }, React.createElement(Icon, {
614
614
  name: ALERT_ICONS_MAP[variant].icon,
615
615
  "data-testid": "alert-icon-" + variant + "-test-id"
@@ -620,7 +620,7 @@ var AlertComponent = function AlertComponent(_ref) {
620
620
  return React.createElement(Box, {
621
621
  margin: "0 0 0 auto",
622
622
  color: "secondary",
623
- className: styles$z['close-icon']
623
+ className: styles$y['close-icon']
624
624
  }, React.createElement("button", {
625
625
  type: "button",
626
626
  onClick: handleClose,
@@ -642,7 +642,7 @@ var AlertComponent = function AlertComponent(_ref) {
642
642
  as: "h4",
643
643
  fontSize: "sm",
644
644
  fontWeight: "semibold",
645
- className: styles$z['alert-heading']
645
+ className: styles$y['alert-heading']
646
646
  }, title), children != null ? children : message && (typeof message === 'string' ? React.createElement("p", null, message) : message));
647
647
  }, [render, message, title, children]);
648
648
  return React.createElement(Box, _extends({
@@ -660,9 +660,9 @@ var Alert = /*#__PURE__*/React.memo(AlertComponent);
660
660
 
661
661
  var AspectRatio = AspectRatioPrimitive__namespace.Root;
662
662
 
663
- var styles$y = {"badge":"Badge-module_badge__ZbEBU","size-sm":"Badge-module_size-sm__rL8a6","size-md":"Badge-module_size-md__kf6IH","size-lg":"Badge-module_size-lg__of6XJ","inverse":"Badge-module_inverse__qZCFA","purple":"Badge-module_purple__rX-xW","green":"Badge-module_green__W03uU","red":"Badge-module_red__fl2jg","blue":"Badge-module_blue__C7kyV","yellow":"Badge-module_yellow__gGZ6R","light-grey":"Badge-module_light-grey__Wtrhx","dark-grey":"Badge-module_dark-grey__X-807","hyphen":"Badge-module_hyphen__9pe7x","size-sm-tablet":"Badge-module_size-sm-tablet__6xMVk","size-md-tablet":"Badge-module_size-md-tablet__4w-7I","size-lg-tablet":"Badge-module_size-lg-tablet__8xyRF","size-sm-desktop":"Badge-module_size-sm-desktop__Ayf5L","size-md-desktop":"Badge-module_size-md-desktop__XSq7m","size-lg-desktop":"Badge-module_size-lg-desktop__Baw3S","size-sm-hd":"Badge-module_size-sm-hd__Da6Au","size-md-hd":"Badge-module_size-md-hd__-VNMk","size-lg-hd":"Badge-module_size-lg-hd__6MOwL"};
663
+ var styles$x = {"badge":"Badge-module_badge__ZbEBU","size-sm":"Badge-module_size-sm__rL8a6","size-md":"Badge-module_size-md__kf6IH","size-lg":"Badge-module_size-lg__of6XJ","inverse":"Badge-module_inverse__qZCFA","purple":"Badge-module_purple__rX-xW","green":"Badge-module_green__W03uU","red":"Badge-module_red__fl2jg","blue":"Badge-module_blue__C7kyV","yellow":"Badge-module_yellow__gGZ6R","light-grey":"Badge-module_light-grey__Wtrhx","dark-grey":"Badge-module_dark-grey__X-807","hyphen":"Badge-module_hyphen__9pe7x","size-sm-tablet":"Badge-module_size-sm-tablet__6xMVk","size-md-tablet":"Badge-module_size-md-tablet__4w-7I","size-lg-tablet":"Badge-module_size-lg-tablet__8xyRF","size-sm-desktop":"Badge-module_size-sm-desktop__Ayf5L","size-md-desktop":"Badge-module_size-md-desktop__XSq7m","size-lg-desktop":"Badge-module_size-lg-desktop__Baw3S","size-sm-hd":"Badge-module_size-sm-hd__Da6Au","size-md-hd":"Badge-module_size-md-hd__-VNMk","size-lg-hd":"Badge-module_size-lg-hd__6MOwL"};
664
664
 
665
- var _excluded$O = ["className", "message", "variant", "size", "children"];
665
+ var _excluded$N = ["className", "message", "variant", "size", "children"];
666
666
  var Badge = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
667
667
  var _classNames;
668
668
  var _ref$className = _ref.className,
@@ -674,11 +674,11 @@ var Badge = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
674
674
  _ref$size = _ref.size,
675
675
  size = _ref$size === void 0 ? 'md' : _ref$size,
676
676
  children = _ref.children,
677
- restProps = _objectWithoutPropertiesLoose(_ref, _excluded$O);
677
+ restProps = _objectWithoutPropertiesLoose(_ref, _excluded$N);
678
678
  var responsiveClasses = generateResponsiveClasses('size', size).map(function (c) {
679
- return styles$y[c];
679
+ return styles$x[c];
680
680
  });
681
- var badgeClasses = classNames(styles$y.badge, className, responsiveClasses, (_classNames = {}, _classNames[styles$y[variant]] = variant, _classNames));
681
+ var badgeClasses = classNames(styles$x.badge, className, responsiveClasses, (_classNames = {}, _classNames[styles$x[variant]] = variant, _classNames));
682
682
  return React.createElement(Box, _extends({
683
683
  ref: ref,
684
684
  className: badgeClasses,
@@ -688,13 +688,13 @@ var Badge = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
688
688
  }, restProps), children || message);
689
689
  });
690
690
 
691
- var styles$x = {"spinner":"Spinner-module_spinner__SZoUP","spin":"Spinner-module_spin__Yk0wm"};
691
+ var styles$w = {"spinner":"Spinner-module_spinner__SZoUP","spin":"Spinner-module_spin__Yk0wm"};
692
692
 
693
693
  var Spinner = function Spinner(_ref) {
694
694
  var className = _ref.className,
695
695
  _ref$size = _ref.size,
696
696
  size = _ref$size === void 0 ? 'md' : _ref$size;
697
- var classes = classNames(className, styles$x.spinner);
697
+ var classes = classNames(className, styles$w.spinner);
698
698
  var sizeInPixels = function sizeInPixels() {
699
699
  var pixels;
700
700
  if (size === 'sm') pixels = '12';
@@ -781,9 +781,9 @@ var Spinner = function Spinner(_ref) {
781
781
  }))));
782
782
  };
783
783
 
784
- var styles$w = {"button":"Button-module_button__18Bed","size-sm":"Button-module_size-sm__6Xrjw","size-md":"Button-module_size-md__BkuGu","size-lg":"Button-module_size-lg__JVYWV","primary":"Button-module_primary__st6yY","secondary":"Button-module_secondary__j-3rj","tertiary":"Button-module_tertiary__Nd7xM","danger":"Button-module_danger__Hxs5n","link":"Button-module_link__MzvJO","size-sm-tablet":"Button-module_size-sm-tablet__9XaSx","size-md-tablet":"Button-module_size-md-tablet__YQxaI","size-lg-tablet":"Button-module_size-lg-tablet__h3l97","size-sm-desktop":"Button-module_size-sm-desktop__8tTsg","size-md-desktop":"Button-module_size-md-desktop__OCdDi","size-lg-desktop":"Button-module_size-lg-desktop__uFc4f","size-sm-hd":"Button-module_size-sm-hd__INFfD","size-md-hd":"Button-module_size-md-hd__8e2mW","size-lg-hd":"Button-module_size-lg-hd__DH60l","loading":"Button-module_loading__QfItr","label":"Button-module_label__1PsXG","full-width":"Button-module_full-width__qDri6","spinner-wrapper":"Button-module_spinner-wrapper__rALNw"};
784
+ var styles$v = {"button":"Button-module_button__18Bed","size-sm":"Button-module_size-sm__6Xrjw","size-md":"Button-module_size-md__BkuGu","size-lg":"Button-module_size-lg__JVYWV","primary":"Button-module_primary__st6yY","secondary":"Button-module_secondary__j-3rj","tertiary":"Button-module_tertiary__Nd7xM","danger":"Button-module_danger__Hxs5n","link":"Button-module_link__MzvJO","size-sm-tablet":"Button-module_size-sm-tablet__9XaSx","size-md-tablet":"Button-module_size-md-tablet__YQxaI","size-lg-tablet":"Button-module_size-lg-tablet__h3l97","size-sm-desktop":"Button-module_size-sm-desktop__8tTsg","size-md-desktop":"Button-module_size-md-desktop__OCdDi","size-lg-desktop":"Button-module_size-lg-desktop__uFc4f","size-sm-hd":"Button-module_size-sm-hd__INFfD","size-md-hd":"Button-module_size-md-hd__8e2mW","size-lg-hd":"Button-module_size-lg-hd__DH60l","loading":"Button-module_loading__QfItr","label":"Button-module_label__1PsXG","full-width":"Button-module_full-width__qDri6","spinner-wrapper":"Button-module_spinner-wrapper__rALNw"};
785
785
 
786
- var _excluded$N = ["asChild", "children", "className", "fullWidth", "iconPrefix", "iconSuffix", "isDisabled", "isLoading", "onClick", "onBlur", "onFocus", "shadow", "size", "type", "variant"];
786
+ var _excluded$M = ["asChild", "children", "className", "fullWidth", "iconPrefix", "iconSuffix", "isDisabled", "isLoading", "onClick", "onBlur", "onFocus", "shadow", "size", "type", "variant"];
787
787
  var Button = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
788
788
  var _classNames;
789
789
  var asChild = _ref.asChild,
@@ -804,12 +804,12 @@ var Button = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
804
804
  type = _ref$type === void 0 ? 'button' : _ref$type,
805
805
  _ref$variant = _ref.variant,
806
806
  variant = _ref$variant === void 0 ? 'primary' : _ref$variant,
807
- restProps = _objectWithoutPropertiesLoose(_ref, _excluded$N);
807
+ restProps = _objectWithoutPropertiesLoose(_ref, _excluded$M);
808
808
  var disabled = isLoading || isDisabled;
809
809
  var responsiveClasses = variant !== 'link' ? generateResponsiveClasses('size', size).map(function (c) {
810
- return styles$w[c];
810
+ return styles$v[c];
811
811
  }).filter(Boolean) : [];
812
- var buttonClasses = classNames('hyphen-components__variables__form-control', styles$w.button, className, responsiveClasses, generateResponsiveClasses('shadow', shadow), (_classNames = {}, _classNames[styles$w.loading] = isLoading, _classNames[styles$w[variant]] = variant, _classNames[styles$w['full-width']] = fullWidth, _classNames));
812
+ var buttonClasses = classNames('hyphen-components__variables__form-control', styles$v.button, className, responsiveClasses, generateResponsiveClasses('shadow', shadow), (_classNames = {}, _classNames[styles$v.loading] = isLoading, _classNames[styles$v[variant]] = variant, _classNames[styles$v['full-width']] = fullWidth, _classNames));
813
813
  var handleClick = !disabled ? onClick : undefined;
814
814
  var handleBlur = !disabled ? onBlur : undefined;
815
815
  var handleFocus = !disabled ? onFocus : undefined;
@@ -826,18 +826,18 @@ var Button = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
826
826
  }, !asChild && {
827
827
  type: type
828
828
  }, restProps), isLoading && React.createElement(Spinner, {
829
- className: styles$w['spinner-wrapper']
829
+ className: styles$v['spinner-wrapper']
830
830
  }), iconPrefix && React.createElement(Icon, {
831
- className: styles$w.label,
831
+ className: styles$v.label,
832
832
  name: iconPrefix,
833
833
  "aria-hidden": "true",
834
834
  focusable: "false",
835
835
  "data-testid": "prefixIcon",
836
836
  size: size === 'md' ? 'sm' : size
837
837
  }), children && React.createElement(reactSlot.Slottable, null, asChild ? children : React.createElement("span", {
838
- className: styles$w.label
838
+ className: styles$v.label
839
839
  }, children)), iconSuffix && React.createElement(Icon, {
840
- className: styles$w.label,
840
+ className: styles$v.label,
841
841
  name: iconSuffix,
842
842
  "aria-hidden": "true",
843
843
  focusable: "false",
@@ -847,7 +847,7 @@ var Button = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
847
847
  });
848
848
  Button.displayName = 'Button';
849
849
 
850
- var _excluded$M = ["background", "borderColor", "borderWidth", "children", "display", "padding"];
850
+ var _excluded$L = ["background", "borderColor", "borderWidth", "children", "display", "padding"];
851
851
  var CardFooter = function CardFooter(_ref) {
852
852
  var _ref$background = _ref.background,
853
853
  background = _ref$background === void 0 ? 'secondary' : _ref$background,
@@ -861,7 +861,7 @@ var CardFooter = function CardFooter(_ref) {
861
861
  display = _ref$display === void 0 ? 'block' : _ref$display,
862
862
  _ref$padding = _ref.padding,
863
863
  padding = _ref$padding === void 0 ? '2xl' : _ref$padding,
864
- restProps = _objectWithoutPropertiesLoose(_ref, _excluded$M);
864
+ restProps = _objectWithoutPropertiesLoose(_ref, _excluded$L);
865
865
  return React.createElement(Box, _extends({
866
866
  display: display,
867
867
  padding: padding,
@@ -880,9 +880,9 @@ var HEADING_DEFAULT_SIZE_MAP = {
880
880
  h6: 'sm'
881
881
  };
882
882
 
883
- var styles$v = {"heading":"Heading-module_heading__zKyv7"};
883
+ var styles$u = {"heading":"Heading-module_heading__zKyv7"};
884
884
 
885
- var _excluded$L = ["as", "children", "className", "color", "size"];
885
+ var _excluded$K = ["as", "children", "className", "color", "size"];
886
886
  var Heading = function Heading(_ref) {
887
887
  var _classNames;
888
888
  var _ref$as = _ref.as,
@@ -891,23 +891,23 @@ var Heading = function Heading(_ref) {
891
891
  className = _ref.className,
892
892
  color = _ref.color,
893
893
  size = _ref.size,
894
- restProps = _objectWithoutPropertiesLoose(_ref, _excluded$L);
894
+ restProps = _objectWithoutPropertiesLoose(_ref, _excluded$K);
895
895
  var element = getElementType(Heading, {
896
896
  as: as
897
897
  });
898
898
  var headingSize = size || HEADING_DEFAULT_SIZE_MAP[as];
899
- var classes = classNames(styles$v.heading, className, generateResponsiveClasses('heading', headingSize), (_classNames = {}, _classNames["font-color-" + color] = color, _classNames));
899
+ var classes = classNames(styles$u.heading, className, generateResponsiveClasses('heading', headingSize), (_classNames = {}, _classNames["font-color-" + color] = color, _classNames));
900
900
  return React.createElement(element, _extends({
901
901
  className: classes
902
902
  }, restProps), children);
903
903
  };
904
904
 
905
- var _excluded$K = ["children", "title", "description"];
905
+ var _excluded$J = ["children", "title", "description"];
906
906
  var CardHeader = function CardHeader(_ref) {
907
907
  var children = _ref.children,
908
908
  title = _ref.title,
909
909
  description = _ref.description,
910
- restProps = _objectWithoutPropertiesLoose(_ref, _excluded$K);
910
+ restProps = _objectWithoutPropertiesLoose(_ref, _excluded$J);
911
911
  return React.createElement(Box, _extends({
912
912
  padding: "2xl",
913
913
  direction: "row",
@@ -928,9 +928,9 @@ var CardHeader = function CardHeader(_ref) {
928
928
  }, description) : description)), children);
929
929
  };
930
930
 
931
- var styles$u = {"card-section-border":"Card-module_card-section-border__OefDX"};
931
+ var styles$t = {"card-section-border":"Card-module_card-section-border__OefDX"};
932
932
 
933
- var _excluded$J = ["background", "borderColor", "borderWidth", "children", "childGap", "gap", "className", "display", "padding", "subdued", "title"];
933
+ var _excluded$I = ["background", "borderColor", "borderWidth", "children", "childGap", "gap", "className", "display", "padding", "subdued", "title"];
934
934
  var CardSection = function CardSection(_ref) {
935
935
  var _classNames;
936
936
  var _ref$background = _ref.background,
@@ -955,7 +955,7 @@ var CardSection = function CardSection(_ref) {
955
955
  subdued = _ref$subdued === void 0 ? undefined : _ref$subdued,
956
956
  _ref$title = _ref.title,
957
957
  title = _ref$title === void 0 ? undefined : _ref$title,
958
- restProps = _objectWithoutPropertiesLoose(_ref, _excluded$J);
958
+ restProps = _objectWithoutPropertiesLoose(_ref, _excluded$I);
959
959
  var renderTitle = typeof title === 'string' ? React.createElement(Box, {
960
960
  className: "m-bottom-md"
961
961
  }, React.createElement(Box, {
@@ -964,7 +964,7 @@ var CardSection = function CardSection(_ref) {
964
964
  fontSize: "sm",
965
965
  color: "base"
966
966
  }, title)) : title;
967
- var sectionClasses = classNames((_classNames = {}, _classNames[styles$u['card-section-border']] = borderColor === undefined && borderWidth === undefined, _classNames[styles$u['card-subdued']] = subdued, _classNames), className);
967
+ var sectionClasses = classNames((_classNames = {}, _classNames[styles$t['card-section-border']] = borderColor === undefined && borderWidth === undefined, _classNames[styles$t['card-subdued']] = subdued, _classNames), className);
968
968
  return React.createElement(Box, _extends({
969
969
  background: background,
970
970
  borderColor: borderColor,
@@ -978,7 +978,7 @@ var CardSection = function CardSection(_ref) {
978
978
  }, children));
979
979
  };
980
980
 
981
- var _excluded$I = ["children", "subdued", "overflow", "display", "width"];
981
+ var _excluded$H = ["children", "subdued", "overflow", "display", "width"];
982
982
  var CardBaseComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
983
983
  var children = _ref.children,
984
984
  subdued = _ref.subdued,
@@ -988,7 +988,7 @@ var CardBaseComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
988
988
  display = _ref$display === void 0 ? 'block' : _ref$display,
989
989
  _ref$width = _ref.width,
990
990
  width = _ref$width === void 0 ? '100' : _ref$width,
991
- restProps = _objectWithoutPropertiesLoose(_ref, _excluded$I);
991
+ restProps = _objectWithoutPropertiesLoose(_ref, _excluded$H);
992
992
  return React.createElement(Box, _extends({
993
993
  background: subdued ? 'secondary' : 'primary',
994
994
  borderWidth: "sm",
@@ -1011,7 +1011,7 @@ var Card = /*#__PURE__*/function () {
1011
1011
  return Card;
1012
1012
  }();
1013
1013
 
1014
- var _excluded$H = ["className", "error", "isChecked", "isDisabled", "isIndeterminate"];
1014
+ var _excluded$G = ["className", "error", "isChecked", "isDisabled", "isIndeterminate"];
1015
1015
  var CheckboxIcon = function CheckboxIcon(_ref) {
1016
1016
  var _ref$className = _ref.className,
1017
1017
  className = _ref$className === void 0 ? undefined : _ref$className,
@@ -1023,7 +1023,7 @@ var CheckboxIcon = function CheckboxIcon(_ref) {
1023
1023
  isDisabled = _ref$isDisabled === void 0 ? false : _ref$isDisabled,
1024
1024
  _ref$isIndeterminate = _ref.isIndeterminate,
1025
1025
  isIndeterminate = _ref$isIndeterminate === void 0 ? false : _ref$isIndeterminate,
1026
- restProps = _objectWithoutPropertiesLoose(_ref, _excluded$H);
1026
+ restProps = _objectWithoutPropertiesLoose(_ref, _excluded$G);
1027
1027
  var color = 'base';
1028
1028
  var name = 'checkbox-btn';
1029
1029
  if (isChecked) name = 'checkbox-btn-checked';else name = 'checkbox-btn';
@@ -1046,9 +1046,9 @@ var CheckboxIcon = function CheckboxIcon(_ref) {
1046
1046
  }));
1047
1047
  };
1048
1048
 
1049
- var styles$t = {"checkbox":"Checkbox-module_checkbox__dY-7P","size-sm":"Checkbox-module_size-sm__mJkMQ","size-md":"Checkbox-module_size-md__I2s8g","size-lg":"Checkbox-module_size-lg__rFFnb","hidden":"Checkbox-module_hidden__2y7Zr","size-sm-tablet":"Checkbox-module_size-sm-tablet__GhQUW","size-md-tablet":"Checkbox-module_size-md-tablet__XRHf4","size-lg-tablet":"Checkbox-module_size-lg-tablet__quoAJ","size-sm-desktop":"Checkbox-module_size-sm-desktop__fqeEc","size-md-desktop":"Checkbox-module_size-md-desktop__9a278","size-lg-desktop":"Checkbox-module_size-lg-desktop__WQnv0","size-sm-hd":"Checkbox-module_size-sm-hd__X3yIF","size-md-hd":"Checkbox-module_size-md-hd__6T0dF","size-lg-hd":"Checkbox-module_size-lg-hd__UXCt1"};
1049
+ var styles$s = {"checkbox":"Checkbox-module_checkbox__dY-7P","size-sm":"Checkbox-module_size-sm__mJkMQ","size-md":"Checkbox-module_size-md__I2s8g","size-lg":"Checkbox-module_size-lg__rFFnb","hidden":"Checkbox-module_hidden__2y7Zr","size-sm-tablet":"Checkbox-module_size-sm-tablet__GhQUW","size-md-tablet":"Checkbox-module_size-md-tablet__XRHf4","size-lg-tablet":"Checkbox-module_size-lg-tablet__quoAJ","size-sm-desktop":"Checkbox-module_size-sm-desktop__fqeEc","size-md-desktop":"Checkbox-module_size-md-desktop__9a278","size-lg-desktop":"Checkbox-module_size-lg-desktop__WQnv0","size-sm-hd":"Checkbox-module_size-sm-hd__X3yIF","size-md-hd":"Checkbox-module_size-md-hd__6T0dF","size-lg-hd":"Checkbox-module_size-lg-hd__UXCt1"};
1050
1050
 
1051
- var _excluded$G = ["className", "display", "id", "isChecked", "label", "labelledby", "onChange", "error", "isDisabled", "isHidden", "isIndeterminate", "isRequired", "onBlur", "onFocus", "size", "value"];
1051
+ var _excluded$F = ["className", "display", "id", "isChecked", "label", "labelledby", "onChange", "error", "isDisabled", "isHidden", "isIndeterminate", "isRequired", "onBlur", "onFocus", "size", "value"];
1052
1052
  var Checkbox = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
1053
1053
  var _ref2;
1054
1054
  var _ref$className = _ref.className,
@@ -1078,7 +1078,7 @@ var Checkbox = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
1078
1078
  size = _ref$size === void 0 ? 'md' : _ref$size,
1079
1079
  _ref$value = _ref.value,
1080
1080
  value = _ref$value === void 0 ? undefined : _ref$value,
1081
- restProps = _objectWithoutPropertiesLoose(_ref, _excluded$G);
1081
+ restProps = _objectWithoutPropertiesLoose(_ref, _excluded$F);
1082
1082
  var inputRef = React.useRef(null);
1083
1083
  React.useEffect(function () {
1084
1084
  if (inputRef != null && inputRef.current) {
@@ -1112,11 +1112,11 @@ var Checkbox = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
1112
1112
  value: value
1113
1113
  });
1114
1114
  var responsiveClasses = generateResponsiveClasses('size', size);
1115
- var containerClasses = classNames.apply(void 0, [styles$t.checkbox, className].concat(responsiveClasses.map(function (c) {
1116
- return styles$t[c];
1117
- }), [(_ref2 = {}, _ref2[styles$t.hidden] = isHidden, _ref2)]));
1115
+ var containerClasses = classNames.apply(void 0, [styles$s.checkbox, className].concat(responsiveClasses.map(function (c) {
1116
+ return styles$s[c];
1117
+ }), [(_ref2 = {}, _ref2[styles$s.hidden] = isHidden, _ref2)]));
1118
1118
  var iconClasses = classNames.apply(void 0, responsiveClasses.map(function (c) {
1119
- return styles$t[c];
1119
+ return styles$s[c];
1120
1120
  }));
1121
1121
  return React.createElement(Box, _extends({
1122
1122
  display: display,
@@ -1139,35 +1139,35 @@ var Checkbox = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
1139
1139
  }));
1140
1140
  });
1141
1141
 
1142
- var styles$s = {"input-validation-message":"InputValidationMessage-module_input-validation-message__4MMMK"};
1142
+ var styles$r = {"input-validation-message":"InputValidationMessage-module_input-validation-message__4MMMK"};
1143
1143
 
1144
1144
  var InputValidationMessage = function InputValidationMessage(_ref) {
1145
1145
  var children = _ref.children,
1146
1146
  _ref$size = _ref.size,
1147
1147
  size = _ref$size === void 0 ? 'sm' : _ref$size;
1148
- var classes = classNames('hyphen-components__variables__form-control', styles$s['input-validation-message'], 'font-color-danger', "font-size-" + size, 'm-top-sm');
1148
+ var classes = classNames('hyphen-components__variables__form-control', styles$r['input-validation-message'], 'font-color-danger', "font-size-" + size, 'm-top-sm');
1149
1149
  return React.createElement("div", {
1150
1150
  className: classes
1151
1151
  }, children);
1152
1152
  };
1153
1153
 
1154
- var styles$r = {"label":"FormLabel-module_label__qTUB9","radio-input-label":"FormLabel-module_radio-input-label__IpAiN","disabled":"FormLabel-module_disabled__83oiH","sm":"FormLabel-module_sm__6PwRr"};
1154
+ var styles$q = {"label":"FormLabel-module_label__qTUB9","radio-input-label":"FormLabel-module_radio-input-label__IpAiN","disabled":"FormLabel-module_disabled__83oiH","sm":"FormLabel-module_sm__6PwRr"};
1155
1155
 
1156
- var styles$q = {"help-text":"HelpText-module_help-text__8WodW"};
1156
+ var styles$p = {"help-text":"HelpText-module_help-text__8WodW"};
1157
1157
 
1158
1158
  var HelpText = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
1159
1159
  var children = _ref.children,
1160
1160
  className = _ref.className;
1161
1161
  return React.createElement(Box, {
1162
1162
  ref: ref,
1163
- className: classNames('hyphen-components__variables__form-control', styles$q['help-text'], className),
1163
+ className: classNames('hyphen-components__variables__form-control', styles$p['help-text'], className),
1164
1164
  display: "block",
1165
1165
  color: "secondary",
1166
1166
  fontSize: "sm"
1167
1167
  }, children);
1168
1168
  });
1169
1169
 
1170
- var _excluded$F = ["children", "inputId", "className", "display", "helpText", "isDisabled", "isFieldRequired", "isRadioInputLabel", "requiredIndicator", "margin", "padding", "size"];
1170
+ var _excluded$E = ["children", "inputId", "className", "display", "helpText", "isDisabled", "isFieldRequired", "isRadioInputLabel", "requiredIndicator", "margin", "padding", "size"];
1171
1171
  var FormLabel = function FormLabel(_ref) {
1172
1172
  var _classNames;
1173
1173
  var children = _ref.children,
@@ -1191,8 +1191,8 @@ var FormLabel = function FormLabel(_ref) {
1191
1191
  padding = _ref$padding === void 0 ? '0' : _ref$padding,
1192
1192
  _ref$size = _ref.size,
1193
1193
  size = _ref$size === void 0 ? 'md' : _ref$size,
1194
- restProps = _objectWithoutPropertiesLoose(_ref, _excluded$F);
1195
- var labelClasses = classNames('hyphen-components__variables__form-control', styles$r.label, className, (_classNames = {}, _classNames[styles$r.sm] = size === 'sm', _classNames[styles$r.disabled] = isDisabled, _classNames[styles$r['radio-input-label']] = isRadioInputLabel, _classNames));
1194
+ restProps = _objectWithoutPropertiesLoose(_ref, _excluded$E);
1195
+ var labelClasses = classNames('hyphen-components__variables__form-control', styles$q.label, className, (_classNames = {}, _classNames[styles$q.sm] = size === 'sm', _classNames[styles$q.disabled] = isDisabled, _classNames[styles$q['radio-input-label']] = isRadioInputLabel, _classNames));
1196
1196
  return React.createElement(Box, _extends({
1197
1197
  as: "label",
1198
1198
  id: inputId + "Label",
@@ -1204,7 +1204,7 @@ var FormLabel = function FormLabel(_ref) {
1204
1204
  }, restProps), children, isFieldRequired && requiredIndicator && React.createElement("span", null, requiredIndicator), helpText && React.createElement(HelpText, null, helpText));
1205
1205
  };
1206
1206
 
1207
- var _excluded$E = ["id", "isChecked", "label", "onChange", "className", "error", "hideLabel", "helpText", "isDisabled", "isIndeterminate", "isRequired", "onBlur", "onFocus", "requiredIndicator", "size"];
1207
+ var _excluded$D = ["id", "isChecked", "label", "onChange", "className", "error", "hideLabel", "helpText", "isDisabled", "isIndeterminate", "isRequired", "onBlur", "onFocus", "requiredIndicator", "size"];
1208
1208
  var labelMarginSizeMap = {
1209
1209
  sm: '2xs 0 0 0',
1210
1210
  md: 'xs 0 0 0',
@@ -1249,7 +1249,7 @@ var CheckboxInput = function CheckboxInput(_ref2) {
1249
1249
  requiredIndicator = _ref2$requiredIndicat === void 0 ? ' *' : _ref2$requiredIndicat,
1250
1250
  _ref2$size = _ref2.size,
1251
1251
  size = _ref2$size === void 0 ? 'md' : _ref2$size,
1252
- restProps = _objectWithoutPropertiesLoose(_ref2, _excluded$E);
1252
+ restProps = _objectWithoutPropertiesLoose(_ref2, _excluded$D);
1253
1253
  var handleBlur = function handleBlur(event) {
1254
1254
  if (onBlur) onBlur(event);
1255
1255
  };
@@ -1269,631 +1269,43 @@ var CheckboxInput = function CheckboxInput(_ref2) {
1269
1269
  onFocus: handleFocus,
1270
1270
  isRequired: isRequired,
1271
1271
  size: size,
1272
- label: label,
1273
- className: classNames('hyphen-components__variables__form-control', 'm-right-md'),
1274
- error: error
1275
- };
1276
- var labelProps = {
1277
- inputId: id,
1278
- helpText: helpText,
1279
- isDisabled: isDisabled,
1280
- isFieldRequired: isRequired,
1281
- requiredIndicator: requiredIndicator,
1282
- className: classNames.apply(void 0, cssShorthandToClasses('m', computedResponsiveSize(size)))
1283
- };
1284
- return React.createElement(Box, _extends({
1285
- className: className
1286
- }, restProps), React.createElement(Box, {
1287
- alignItems: "flex-start",
1288
- direction: "row"
1289
- }, React.createElement(Checkbox, _extends({}, checkboxProps, {
1290
- labelledby: id + "Label"
1291
- })), label && !hideLabel && React.createElement(FormLabel, _extends({}, labelProps), label)), error && error !== true && React.createElement(InputValidationMessage, null, error));
1292
- };
1293
-
1294
- var Collapsible = CollapsiblePrimitive__namespace.Root;
1295
- var CollapsibleTrigger = CollapsiblePrimitive__namespace.CollapsibleTrigger;
1296
- var CollapsibleContent = CollapsiblePrimitive__namespace.CollapsibleContent;
1297
-
1298
- var styles$p = {};
1299
-
1300
- var _excluded$D = ["children", "dayClassName", "maxDate", "minDate", "monthsShown", "openToDate", "startDate", "selected", "selectsRange", "showTwoColumnMonthYearPicker", "showFullMonthYearPicker", "showMonthYearPicker", "className", "formatWeekDay"];
1301
- var DatePicker = function DatePicker(_ref) {
1302
- var _ref$children = _ref.children,
1303
- children = _ref$children === void 0 ? null : _ref$children,
1304
- _ref$dayClassName = _ref.dayClassName,
1305
- dayClassName = _ref$dayClassName === void 0 ? undefined : _ref$dayClassName,
1306
- _ref$maxDate = _ref.maxDate,
1307
- maxDate = _ref$maxDate === void 0 ? undefined : _ref$maxDate,
1308
- _ref$minDate = _ref.minDate,
1309
- minDate = _ref$minDate === void 0 ? undefined : _ref$minDate,
1310
- _ref$monthsShown = _ref.monthsShown,
1311
- monthsShown = _ref$monthsShown === void 0 ? undefined : _ref$monthsShown,
1312
- _ref$openToDate = _ref.openToDate,
1313
- openToDate = _ref$openToDate === void 0 ? undefined : _ref$openToDate,
1314
- _ref$startDate = _ref.startDate,
1315
- startDate = _ref$startDate === void 0 ? undefined : _ref$startDate,
1316
- _ref$selected = _ref.selected,
1317
- selected = _ref$selected === void 0 ? undefined : _ref$selected,
1318
- _ref$selectsRange = _ref.selectsRange,
1319
- selectsRange = _ref$selectsRange === void 0 ? undefined : _ref$selectsRange,
1320
- _ref$showTwoColumnMon = _ref.showTwoColumnMonthYearPicker,
1321
- showTwoColumnMonthYearPicker = _ref$showTwoColumnMon === void 0 ? false : _ref$showTwoColumnMon,
1322
- _ref$showFullMonthYea = _ref.showFullMonthYearPicker,
1323
- showFullMonthYearPicker = _ref$showFullMonthYea === void 0 ? false : _ref$showFullMonthYea,
1324
- _ref$showMonthYearPic = _ref.showMonthYearPicker,
1325
- showMonthYearPicker = _ref$showMonthYearPic === void 0 ? false : _ref$showMonthYearPic,
1326
- _ref$className = _ref.className,
1327
- className = _ref$className === void 0 ? undefined : _ref$className,
1328
- _ref$formatWeekDay = _ref.formatWeekDay,
1329
- formatWeekDay = _ref$formatWeekDay === void 0 ? function (formattedDate) {
1330
- return formattedDate[0];
1331
- } : _ref$formatWeekDay,
1332
- restProps = _objectWithoutPropertiesLoose(_ref, _excluded$D);
1333
- var datePickerClasses = classNames(styles$p['react-datepicker'], className);
1334
- return React.createElement(ReactDatePicker, _extends({
1335
- inline: true,
1336
- calendarClassName: datePickerClasses,
1337
- formatWeekDay: formatWeekDay,
1338
- maxDate: maxDate,
1339
- minDate: minDate,
1340
- monthsShown: monthsShown,
1341
- openToDate: openToDate,
1342
- selected: selected,
1343
- startDate: startDate,
1344
- selectsRange: selectsRange,
1345
- showTwoColumnMonthYearPicker: showTwoColumnMonthYearPicker,
1346
- showFullMonthYearPicker: showFullMonthYearPicker,
1347
- showMonthYearPicker: showMonthYearPicker,
1348
- dayClassName: dayClassName
1349
- }, restProps), children);
1350
- };
1351
-
1352
- var _excluded$C = ["label", "hideLabel", "children", "error", "id", "isRequired", "helpText", "isDisabled", "requiredIndicator", "width"];
1353
- var FormControl = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
1354
- var label = _ref.label,
1355
- hideLabel = _ref.hideLabel,
1356
- children = _ref.children,
1357
- error = _ref.error,
1358
- id = _ref.id,
1359
- isRequired = _ref.isRequired,
1360
- helpText = _ref.helpText,
1361
- isDisabled = _ref.isDisabled,
1362
- requiredIndicator = _ref.requiredIndicator,
1363
- _ref$width = _ref.width,
1364
- width = _ref$width === void 0 ? '100' : _ref$width,
1365
- restProps = _objectWithoutPropertiesLoose(_ref, _excluded$C);
1366
- var labelProps = {
1367
- inputId: id,
1368
- helpText: helpText,
1369
- margin: '0 0 xs 0',
1370
- isDisabled: isDisabled,
1371
- isFieldRequired: isRequired,
1372
- requiredIndicator: requiredIndicator
1373
- };
1374
- return React.createElement(Box, _extends({
1375
- width: width,
1376
- ref: ref
1377
- }, restProps), label && !hideLabel && React.createElement(FormLabel, _extends({}, labelProps), label), children, error && error !== true && React.createElement(InputValidationMessage, null, error));
1378
- });
1379
-
1380
- // eslint-disable-next-line import/prefer-default-export
1381
- function getAutoCompleteValue(value) {
1382
- if (!value || typeof value !== 'boolean' && typeof value !== 'string') {
1383
- return 'off';
1384
- }
1385
- if (typeof value === 'boolean' && value) {
1386
- return 'on';
1387
- }
1388
- return value;
1389
- }
1390
-
1391
- var styles$o = {"text-input-wrapper":"TextInput-module_text-input-wrapper__HCnQD","size-sm":"TextInput-module_size-sm__qWJn7","prefix":"TextInput-module_prefix__-wFO9","suffix":"TextInput-module_suffix__327yL","clear-button":"TextInput-module_clear-button__LUJpO","is-clearable":"TextInput-module_is-clearable__ExAY3","size-md":"TextInput-module_size-md__UFPtt","size-lg":"TextInput-module_size-lg__Hjfez","disabled":"TextInput-module_disabled__lrifj","size-sm-tablet":"TextInput-module_size-sm-tablet__neC5C","size-md-tablet":"TextInput-module_size-md-tablet__u29oc","size-lg-tablet":"TextInput-module_size-lg-tablet__3PUB3","size-sm-desktop":"TextInput-module_size-sm-desktop__kA12V","size-md-desktop":"TextInput-module_size-md-desktop__yLJGr","size-lg-desktop":"TextInput-module_size-lg-desktop__A1pcS","size-sm-hd":"TextInput-module_size-sm-hd__f7Thr","size-md-hd":"TextInput-module_size-md-hd__Tsnqc","size-lg-hd":"TextInput-module_size-lg-hd__XLMos","error":"TextInput-module_error__p6zZq","text-input-label":"TextInput-module_text-input-label__3PlSG"};
1392
-
1393
- var _excluded$B = ["id", "label", "onChange", "value", "autoComplete", "autoFocus", "error", "helpText", "hideLabel", "inputProps", "isDisabled", "isRequired", "maxLength", "name", "onBlur", "onClear", "onFocus", "prefix", "placeholder", "requiredIndicator", "suffix", "size", "type"];
1394
- var TextInput = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
1395
- var _ref2;
1396
- var id = _ref.id,
1397
- label = _ref.label,
1398
- onChange = _ref.onChange,
1399
- value = _ref.value,
1400
- _ref$autoComplete = _ref.autoComplete,
1401
- autoComplete = _ref$autoComplete === void 0 ? false : _ref$autoComplete,
1402
- _ref$autoFocus = _ref.autoFocus,
1403
- autoFocus = _ref$autoFocus === void 0 ? false : _ref$autoFocus,
1404
- _ref$error = _ref.error,
1405
- error = _ref$error === void 0 ? false : _ref$error,
1406
- helpText = _ref.helpText,
1407
- _ref$hideLabel = _ref.hideLabel,
1408
- hideLabel = _ref$hideLabel === void 0 ? false : _ref$hideLabel,
1409
- _ref$inputProps = _ref.inputProps,
1410
- inputProps = _ref$inputProps === void 0 ? {} : _ref$inputProps,
1411
- _ref$isDisabled = _ref.isDisabled,
1412
- isDisabled = _ref$isDisabled === void 0 ? false : _ref$isDisabled,
1413
- _ref$isRequired = _ref.isRequired,
1414
- isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired,
1415
- _ref$maxLength = _ref.maxLength,
1416
- maxLength = _ref$maxLength === void 0 ? undefined : _ref$maxLength,
1417
- _ref$name = _ref.name,
1418
- name = _ref$name === void 0 ? '' : _ref$name,
1419
- _ref$onBlur = _ref.onBlur,
1420
- onBlur = _ref$onBlur === void 0 ? undefined : _ref$onBlur,
1421
- _ref$onClear = _ref.onClear,
1422
- onClear = _ref$onClear === void 0 ? undefined : _ref$onClear,
1423
- _ref$onFocus = _ref.onFocus,
1424
- onFocus = _ref$onFocus === void 0 ? undefined : _ref$onFocus,
1425
- _ref$prefix = _ref.prefix,
1426
- prefix = _ref$prefix === void 0 ? undefined : _ref$prefix,
1427
- _ref$placeholder = _ref.placeholder,
1428
- placeholder = _ref$placeholder === void 0 ? '' : _ref$placeholder,
1429
- _ref$requiredIndicato = _ref.requiredIndicator,
1430
- requiredIndicator = _ref$requiredIndicato === void 0 ? ' *' : _ref$requiredIndicato,
1431
- _ref$suffix = _ref.suffix,
1432
- suffix = _ref$suffix === void 0 ? undefined : _ref$suffix,
1433
- _ref$size = _ref.size,
1434
- size = _ref$size === void 0 ? 'md' : _ref$size,
1435
- _ref$type = _ref.type,
1436
- type = _ref$type === void 0 ? 'text' : _ref$type,
1437
- restProps = _objectWithoutPropertiesLoose(_ref, _excluded$B);
1438
- var responsiveClasses = generateResponsiveClasses('size', size);
1439
- var inputWrapperClasses = classNames.apply(void 0, ['hyphen-components__variables__form-control', styles$o['text-input-wrapper']].concat(responsiveClasses.map(function (c) {
1440
- return styles$o[c];
1441
- }), [(_ref2 = {}, _ref2[styles$o.error] = error, _ref2[styles$o.disabled] = isDisabled, _ref2[styles$o['is-clearable']] = onClear, _ref2)]));
1442
- var clearBtnClasses = classNames(styles$o['clear-button'], styles$o.md);
1443
- var renderClearIcon = function renderClearIcon() {
1444
- var handleKeyPress = function handleKeyPress(event) {
1445
- if (event.keyCode === 13 && onClear) onClear(event);
1446
- };
1447
- return React.createElement("button", {
1448
- type: "button",
1449
- onClick: onClear,
1450
- onKeyUp: handleKeyPress,
1451
- className: clearBtnClasses,
1452
- "data-testid": "text-input-clear-button",
1453
- "aria-label": "clear input"
1454
- }, React.createElement(Icon, {
1455
- name: "remove",
1456
- className: "display-block"
1457
- }));
1458
- };
1459
- var computedInputProps = _extends({}, inputProps, {
1460
- // These are spread first so that we don't have top level props overwritten by the user.
1461
- 'aria-required': isRequired,
1462
- 'aria-invalid': !!error,
1463
- 'aria-label': label,
1464
- 'aria-labelledby': label && !hideLabel ? id + "Label" : undefined,
1465
- autoComplete: getAutoCompleteValue(autoComplete),
1466
- autoFocus: autoFocus,
1467
- disabled: isDisabled,
1468
- id: id,
1469
- maxLength: maxLength,
1470
- name: name,
1471
- onBlur: onBlur,
1472
- onChange: onChange,
1473
- onFocus: onFocus,
1474
- placeholder: placeholder,
1475
- required: isRequired,
1476
- type: type,
1477
- value: value,
1478
- className: classNames(inputProps.className, {
1479
- // 'p-left-xs p-left-xs-tablet p-left-xs-desktop p-left-xs-hd': prefix,
1480
- // 'p-right-xs p-right-xs-tablet p-right-xs-desktop p-right-xs-hd': suffix,
1481
- 'p-h-0': !suffix && !prefix
1482
- })
1483
- });
1484
- return React.createElement(FormControl, _extends({
1485
- helpText: helpText,
1486
- error: error,
1487
- label: label,
1488
- id: id,
1489
- hideLabel: hideLabel,
1490
- isDisabled: isDisabled,
1491
- isRequired: isRequired,
1492
- requiredIndicator: requiredIndicator,
1493
- ref: ref
1494
- }, restProps), React.createElement(Box, {
1495
- direction: "row",
1496
- overflow: "hidden",
1497
- className: inputWrapperClasses
1498
- }, prefix && React.createElement(Box, {
1499
- color: "secondary",
1500
- background: "secondary",
1501
- className: classNames(styles$o.prefix, 'ws-nowrap')
1502
- }, prefix), React.createElement(Box, _extends({
1503
- as: "input"
1504
- }, computedInputProps)), !!onClear && !!value && renderClearIcon(), suffix && React.createElement(Box, {
1505
- color: "secondary",
1506
- background: "secondary",
1507
- className: classNames(styles$o.suffix, 'ws-nowrap')
1508
- }, suffix)));
1509
- });
1510
-
1511
- var styles$n = {"PopoverContent":"Popover-module_PopoverContent__1Ki2o","slideUp":"Popover-module_slideUp__z1H3Z","slideDown":"Popover-module_slideDown__KPRrt","slideLeft":"Popover-module_slideLeft__BVjMh","slideRight":"Popover-module_slideRight__PoOkh"};
1512
-
1513
- var _excluded$A = ["className", "align", "sideOffset"];
1514
- var Popover = PopoverPrimitive__namespace.Root;
1515
- var PopoverTrigger = PopoverPrimitive__namespace.Trigger;
1516
- var PopoverAnchor = PopoverPrimitive__namespace.Anchor;
1517
- var PopoverPortal = PopoverPrimitive__namespace.Portal;
1518
- var PopoverContent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
1519
- var className = _ref.className,
1520
- _ref$align = _ref.align,
1521
- align = _ref$align === void 0 ? 'center' : _ref$align,
1522
- _ref$sideOffset = _ref.sideOffset,
1523
- sideOffset = _ref$sideOffset === void 0 ? 4 : _ref$sideOffset,
1524
- props = _objectWithoutPropertiesLoose(_ref, _excluded$A);
1525
- return React.createElement(PopoverPrimitive__namespace.Content, _extends({
1526
- ref: ref,
1527
- align: align,
1528
- sideOffset: sideOffset,
1529
- className: classNames(styles$n.PopoverContent, className)
1530
- }, props));
1531
- });
1532
-
1533
- // export const BREAKPOINT_VALUES = Object.values(designTokens.size.breakpoint);
1534
- var BREAKPOINTS = /*#__PURE__*/[].concat(Object.entries(designTokens.size.breakpoint), [['base', {
1535
- value: '0'
1536
- }]]).map(function (_ref) {
1537
- var name = _ref[0],
1538
- data = _ref[1];
1539
- if (typeof data === 'object' && data !== null && 'value' in data) {
1540
- return {
1541
- name: name,
1542
- minWidth: parseInt(data['value'], 10)
1543
- };
1544
- }
1545
- return undefined;
1546
- }).filter(function (breakpoint) {
1547
- return breakpoint !== undefined;
1548
- });
1549
- var Z_INDEX_VALUES = designTokens.size['z-index'];
1550
- // export const BOX_SHADOW_VALUES = designTokens.size['box-shadow'];
1551
-
1552
- // eslint-disable-next-line import/prefer-default-export
1553
- var useIsomorphicLayoutEffect = typeof window !== 'undefined' ? React.useLayoutEffect : React.useEffect;
1554
-
1555
- var ResponsiveContext = /*#__PURE__*/React.createContext({
1556
- isCreated: false
1557
- });
1558
- var ResponsiveProvider = function ResponsiveProvider(_ref) {
1559
- var _ref$children = _ref.children,
1560
- children = _ref$children === void 0 ? null : _ref$children,
1561
- _ref$throttle = _ref.throttle,
1562
- throttle = _ref$throttle === void 0 ? 50 : _ref$throttle;
1563
- var _useState = React.useState(0),
1564
- innerWidth = _useState[0],
1565
- setInnerWidth = _useState[1];
1566
- var _useState2 = React.useState(0),
1567
- innerHeight = _useState2[0],
1568
- setInnerHeight = _useState2[1];
1569
- var _useState3 = React.useState(0),
1570
- outerWidth = _useState3[0],
1571
- setOuterWidth = _useState3[1];
1572
- var _useState4 = React.useState(0),
1573
- outerHeight = _useState4[0],
1574
- setOuterHeight = _useState4[1];
1575
- var handleWindowResize = function handleWindowResize() {
1576
- var _window$innerWidth, _window, _window$innerHeight, _window2, _window$outerWidth, _window3, _window$outerHeight, _window4;
1577
- setInnerWidth((_window$innerWidth = (_window = window) == null ? void 0 : _window.innerWidth) != null ? _window$innerWidth : 0);
1578
- setInnerHeight((_window$innerHeight = (_window2 = window) == null ? void 0 : _window2.innerHeight) != null ? _window$innerHeight : 0);
1579
- setOuterWidth((_window$outerWidth = (_window3 = window) == null ? void 0 : _window3.outerWidth) != null ? _window$outerWidth : 0);
1580
- setOuterHeight((_window$outerHeight = (_window4 = window) == null ? void 0 : _window4.outerHeight) != null ? _window$outerHeight : 0);
1581
- };
1582
- useIsomorphicLayoutEffect(function () {
1583
- // eslint-disable-line consistent-return
1584
- if (typeof window !== 'undefined') {
1585
- // Set values on render if window wasn't available for useState initialization.
1586
- handleWindowResize();
1587
- var timeoutId; // eslint-disable-line
1588
- var throttledResize = function throttledResize() {
1589
- // prevent execution of previous setTimeout
1590
- clearTimeout(timeoutId);
1591
- // change width from the state object after throttle time has elapsed.
1592
- timeoutId = setTimeout(handleWindowResize, throttle);
1593
- };
1594
- window.addEventListener('resize', throttledResize);
1595
- return function () {
1596
- window.removeEventListener('resize', throttledResize);
1597
- clearTimeout(timeoutId);
1598
- };
1599
- }
1600
- }, [throttle]);
1601
- return React.createElement(ResponsiveContext.Provider, {
1602
- value: {
1603
- innerWidth: innerWidth,
1604
- innerHeight: innerHeight,
1605
- outerHeight: outerHeight,
1606
- outerWidth: outerWidth,
1607
- isCreated: true
1608
- }
1609
- }, children);
1610
- };
1611
-
1612
- var useWindowSize = function useWindowSize() {
1613
- var _React$useContext = React.useContext(ResponsiveContext),
1614
- innerWidth = _React$useContext.innerWidth,
1615
- innerHeight = _React$useContext.innerHeight,
1616
- outerHeight = _React$useContext.outerHeight,
1617
- outerWidth = _React$useContext.outerWidth,
1618
- isCreated = _React$useContext.isCreated;
1619
- if (isCreated) {
1620
- return {
1621
- innerHeight: innerHeight,
1622
- innerWidth: innerWidth,
1623
- outerHeight: outerHeight,
1624
- outerWidth: outerWidth
1625
- };
1626
- }
1627
- return {};
1628
- };
1629
-
1630
- var defaultBreakpoint = {
1631
- name: 'base',
1632
- minWidth: 0
1633
- };
1634
- var useBreakpoint = function useBreakpoint() {
1635
- var windowSize = useWindowSize();
1636
- var _useState = React.useState(_extends({}, defaultBreakpoint)),
1637
- breakpoint = _useState[0],
1638
- setBreakpoint = _useState[1];
1639
- useIsomorphicLayoutEffect(function () {
1640
- var sortedBreakpoints = [].concat(BREAKPOINTS).sort(function (a, b) {
1641
- return b.minWidth - a.minWidth;
1642
- });
1643
- var activeBreakpoint = windowSize && sortedBreakpoints.find(function (b) {
1644
- return b.minWidth <= windowSize.innerWidth;
1645
- });
1646
- setBreakpoint(activeBreakpoint || _extends({}, defaultBreakpoint));
1647
- // eslint-disable-next-line react-hooks/exhaustive-deps
1648
- }, [windowSize.innerWidth, windowSize.innerHeight, windowSize.outerWidth, windowSize.outerHeight]);
1649
- return {
1650
- isPhone: breakpoint.name === 'base',
1651
- isTablet: breakpoint.name === 'tablet',
1652
- isDesktop: breakpoint.name === 'desktop',
1653
- isHd: breakpoint.name === 'hd',
1654
- activeBreakpoint: breakpoint
1655
- };
1656
- };
1657
-
1658
- var desktopBreakpoint = /*#__PURE__*/BREAKPOINTS.find(function (b) {
1659
- return b.name === 'desktop';
1660
- });
1661
- var MOBILE_BREAKPOINT = desktopBreakpoint ? desktopBreakpoint.minWidth : 0; // min width in pixels
1662
- function useIsMobile() {
1663
- var _React$useState = React__namespace.useState(undefined),
1664
- isMobile = _React$useState[0],
1665
- setIsMobile = _React$useState[1];
1666
- React__namespace.useEffect(function () {
1667
- var mql = window.matchMedia("(max-width: " + (MOBILE_BREAKPOINT - 1) + "px)");
1668
- var onChange = function onChange() {
1669
- setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
1670
- };
1671
- mql.addEventListener('change', onChange);
1672
- setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
1673
- return function () {
1674
- return mql.removeEventListener('change', onChange);
1675
- };
1676
- }, []);
1677
- return !!isMobile;
1678
- }
1679
-
1680
- var useOpenClose = function useOpenClose(props) {
1681
- if (props === void 0) {
1682
- props = {};
1683
- }
1684
- var _props = props,
1685
- defaultIsOpen = _props.defaultIsOpen,
1686
- isOpenProp = _props.isOpen,
1687
- onCloseProp = _props.onClose,
1688
- onOpenProp = _props.onOpen;
1689
- var openCallback = React.useCallback(function () {
1690
- onOpenProp == null || onOpenProp();
1691
- }, [onOpenProp]);
1692
- var closeCallback = React.useCallback(function () {
1693
- onCloseProp == null || onCloseProp();
1694
- }, [onCloseProp]);
1695
- var _useState = React.useState(defaultIsOpen || false),
1696
- isOpenState = _useState[0],
1697
- setIsOpen = _useState[1];
1698
- var isOpen = isOpenProp !== undefined ? isOpenProp : isOpenState;
1699
- var isControlled = isOpenProp !== undefined;
1700
- var handleClose = React.useCallback(function () {
1701
- if (!isControlled) {
1702
- setIsOpen(false);
1703
- }
1704
- closeCallback == null || closeCallback();
1705
- }, [isControlled, closeCallback]);
1706
- var handleOpen = React.useCallback(function () {
1707
- if (!isControlled) {
1708
- setIsOpen(true);
1709
- }
1710
- openCallback == null || openCallback();
1711
- }, [isControlled, openCallback]);
1712
- var handleToggle = React.useCallback(function () {
1713
- if (isOpen) {
1714
- handleClose();
1715
- } else {
1716
- handleOpen();
1717
- }
1718
- }, [isOpen, handleOpen, handleClose]);
1719
- return {
1720
- isOpen: isOpen,
1721
- handleClose: handleClose,
1722
- handleOpen: handleOpen,
1723
- handleToggle: handleToggle
1724
- };
1725
- };
1726
-
1727
- var _excluded$z = ["children", "defaultTheme", "storageKey"];
1728
- var initialState = {
1729
- theme: 'system',
1730
- setTheme: function setTheme() {
1731
- return null;
1732
- }
1733
- };
1734
- var ThemeProviderContext = /*#__PURE__*/React.createContext(initialState);
1735
- function ThemeProvider(_ref) {
1736
- var children = _ref.children,
1737
- _ref$defaultTheme = _ref.defaultTheme,
1738
- defaultTheme = _ref$defaultTheme === void 0 ? 'system' : _ref$defaultTheme,
1739
- _ref$storageKey = _ref.storageKey,
1740
- storageKey = _ref$storageKey === void 0 ? 'hyphen-ui-theme' : _ref$storageKey,
1741
- props = _objectWithoutPropertiesLoose(_ref, _excluded$z);
1742
- var _useState = React.useState(function () {
1743
- return localStorage.getItem(storageKey) || defaultTheme;
1744
- }),
1745
- theme = _useState[0],
1746
- _setTheme = _useState[1];
1747
- React.useEffect(function () {
1748
- var root = window.document.documentElement;
1749
- root.classList.remove('light', 'dark');
1750
- if (theme === 'system') {
1751
- var systemTheme = window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';
1752
- root.classList.add(systemTheme);
1753
- return;
1754
- }
1755
- root.classList.add(theme);
1756
- }, [theme]);
1757
- var isDarkMode = theme === 'dark' || theme === 'system' && window.matchMedia('(prefers-color-scheme: dark)').matches;
1758
- var value = {
1759
- theme: theme,
1760
- setTheme: function setTheme(theme) {
1761
- localStorage.setItem(storageKey, theme);
1762
- _setTheme(theme);
1763
- },
1764
- isDarkMode: isDarkMode
1765
- };
1766
- return React.createElement(ThemeProviderContext.Provider, _extends({}, props, {
1767
- value: value
1768
- }), children);
1769
- }
1770
-
1771
- var useTheme = function useTheme() {
1772
- var context = React.useContext(ThemeProviderContext);
1773
- if (context === undefined) throw new Error('useTheme must be used within a ThemeProvider. Be sure your App is wrapped in ThemeProvider.');
1774
- return context;
1775
- };
1776
-
1777
- var defaultDatePickerProps = {
1778
- selected: null,
1779
- selectsRange: false
1780
- };
1781
- var defaultPopoverProps = {
1782
- align: 'start',
1783
- side: 'bottom'
1784
- };
1785
- var defaultTextInputProps = {
1786
- label: 'Select Date'
1787
- };
1788
- var DateInput = function DateInput(_ref) {
1789
- var _datePickerProps$sele, _datePickerProps$sele2, _popoverProps$side, _popoverProps$align;
1790
- var datePickerProps = _ref.datePickerProps,
1791
- textInputProps = _ref.textInputProps,
1792
- _ref$dateFormat = _ref.dateFormat,
1793
- dateFormat = _ref$dateFormat === void 0 ? 'MM/dd/yyyy' : _ref$dateFormat,
1794
- _ref$dateOptions = _ref.dateOptions,
1795
- dateOptions = _ref$dateOptions === void 0 ? undefined : _ref$dateOptions,
1796
- _ref$popoverProps = _ref.popoverProps,
1797
- popoverProps = _ref$popoverProps === void 0 ? _extends({}, defaultPopoverProps) : _ref$popoverProps;
1798
- var _useOpenClose = useOpenClose(),
1799
- isOpen = _useOpenClose.isOpen,
1800
- handleClose = _useOpenClose.handleClose,
1801
- handleOpen = _useOpenClose.handleOpen;
1802
- // Internal state for selected date if not controlled
1803
- var isControlled = datePickerProps.selected !== undefined;
1804
- var _useState = React.useState(Array.isArray(datePickerProps.selected) ? (_datePickerProps$sele = datePickerProps.selected[0]) != null ? _datePickerProps$sele : null : (_datePickerProps$sele2 = datePickerProps.selected) != null ? _datePickerProps$sele2 : null),
1805
- internalSelected = _useState[0],
1806
- setInternalSelected = _useState[1];
1807
- // Use controlled or internal state
1808
- var selectedDate = isControlled ? datePickerProps.selected : internalSelected;
1809
- var mergedDatePickerProps = _extends({}, defaultDatePickerProps, datePickerProps, {
1810
- selected: selectedDate
1811
- });
1812
- var mergedPopoverProps = _extends({}, defaultPopoverProps, popoverProps, {
1813
- side: (_popoverProps$side = popoverProps == null ? void 0 : popoverProps.side) != null ? _popoverProps$side : defaultPopoverProps.side,
1814
- align: (_popoverProps$align = popoverProps == null ? void 0 : popoverProps.align) != null ? _popoverProps$align : defaultPopoverProps.align,
1815
- onInteractOutside: handleClose
1816
- });
1817
- var mergedTextInputProps = _extends({}, defaultTextInputProps, textInputProps);
1818
- var getTextInputValue = function getTextInputValue() {
1819
- var selectsRange = mergedDatePickerProps.selectsRange,
1820
- startDate = mergedDatePickerProps.startDate,
1821
- endDate = mergedDatePickerProps.endDate,
1822
- selected = mergedDatePickerProps.selected;
1823
- // If selectsRange and selected is an array, use it for start/end
1824
- var rangeStart = startDate;
1825
- var rangeEnd = endDate;
1826
- if (selectsRange && Array.isArray(selected)) {
1827
- var _selected$, _selected$2;
1828
- rangeStart = (_selected$ = selected[0]) != null ? _selected$ : null;
1829
- rangeEnd = (_selected$2 = selected[1]) != null ? _selected$2 : null;
1830
- }
1831
- var formattedStartDate = rangeStart ? format(rangeStart, dateFormat, dateOptions) : '';
1832
- var formattedEndDate = rangeEnd ? format(rangeEnd, dateFormat, dateOptions) : '';
1833
- var formattedSelectedDate = selected && !selectsRange && !Array.isArray(selected) ? format(selected, dateFormat, dateOptions) : '';
1834
- if (selectsRange) {
1835
- return "" + formattedStartDate + (formattedStartDate || formattedEndDate ? ' - ' : '') + formattedEndDate;
1836
- }
1837
- return formattedSelectedDate;
1272
+ label: label,
1273
+ className: classNames('hyphen-components__variables__form-control', 'm-right-md'),
1274
+ error: error
1838
1275
  };
1839
- var handleDatePickerChange = function handleDatePickerChange(date, event) {
1840
- if (datePickerProps.onChange) {
1841
- datePickerProps.onChange(date, event);
1842
- }
1843
- if (!isControlled) {
1844
- // If not controlled, update internal state
1845
- if (Array.isArray(date)) {
1846
- var _date$;
1847
- setInternalSelected((_date$ = date[0]) != null ? _date$ : null);
1848
- } else {
1849
- setInternalSelected(date);
1850
- }
1851
- }
1852
- // Close popover when a date is selected (single) or when end date is selected (range)
1853
- if (mergedDatePickerProps.selectsRange) {
1854
- if (Array.isArray(date) && date[0] && date[1]) {
1855
- handleClose();
1856
- }
1857
- } else if (date) {
1858
- handleClose();
1859
- }
1276
+ var labelProps = {
1277
+ inputId: id,
1278
+ helpText: helpText,
1279
+ isDisabled: isDisabled,
1280
+ isFieldRequired: isRequired,
1281
+ requiredIndicator: requiredIndicator,
1282
+ className: classNames.apply(void 0, cssShorthandToClasses('m', computedResponsiveSize(size)))
1860
1283
  };
1861
- return React.createElement(Popover, {
1862
- open: isOpen
1863
- }, React.createElement(PopoverTrigger, {
1864
- asChild: true
1865
- }, React.createElement(TextInput, _extends({
1866
- id: mergedTextInputProps.id,
1867
- name: mergedTextInputProps.name,
1868
- label: mergedTextInputProps.label,
1869
- value: getTextInputValue(),
1870
- readOnly: true,
1871
- onClick: handleOpen,
1872
- inputProps: {
1873
- className: 'text-align-left'
1874
- },
1875
- type: "text",
1876
- onChange: function onChange() {
1877
- return null;
1878
- }
1879
- }, mergedTextInputProps))), React.createElement(PopoverPortal, null, React.createElement(PopoverContent, _extends({}, mergedPopoverProps), React.createElement(DatePicker, _extends({}, mergedDatePickerProps, {
1880
- onChange: handleDatePickerChange,
1881
- selected: selectedDate,
1882
- selectsRange: mergedDatePickerProps.selectsRange
1883
- })))));
1284
+ return React.createElement(Box, _extends({
1285
+ className: className
1286
+ }, restProps), React.createElement(Box, {
1287
+ alignItems: "flex-start",
1288
+ direction: "row"
1289
+ }, React.createElement(Checkbox, _extends({}, checkboxProps, {
1290
+ labelledby: id + "Label"
1291
+ })), label && !hideLabel && React.createElement(FormLabel, _extends({}, labelProps), label)), error && error !== true && React.createElement(InputValidationMessage, null, error));
1884
1292
  };
1885
1293
 
1294
+ var Collapsible = CollapsiblePrimitive__namespace.Root;
1295
+ var CollapsibleTrigger = CollapsiblePrimitive__namespace.CollapsibleTrigger;
1296
+ var CollapsibleContent = CollapsiblePrimitive__namespace.CollapsibleContent;
1297
+
1886
1298
  var ENTER = 13;
1887
1299
  var SPACE = 32;
1888
1300
 
1889
- var _excluded$y = ["children", "display", "isDetailsOpen", "onToggle"];
1301
+ var _excluded$C = ["children", "display", "isDetailsOpen", "onToggle"];
1890
1302
  var DetailsSummary = function DetailsSummary(_ref) {
1891
1303
  var children = _ref.children,
1892
1304
  _ref$display = _ref.display,
1893
1305
  display = _ref$display === void 0 ? 'block' : _ref$display,
1894
1306
  isDetailsOpen = _ref.isDetailsOpen,
1895
1307
  onToggle = _ref.onToggle,
1896
- restProps = _objectWithoutPropertiesLoose(_ref, _excluded$y);
1308
+ restProps = _objectWithoutPropertiesLoose(_ref, _excluded$C);
1897
1309
  var handleClick = function handleClick(event) {
1898
1310
  // Needed to avoid default `details` behavior on a click event and keep this as controlled component.
1899
1311
  event.preventDefault();
@@ -1929,17 +1341,17 @@ var DetailsSummary = function DetailsSummary(_ref) {
1929
1341
  }), children);
1930
1342
  };
1931
1343
 
1932
- var styles$m = {"details-reset":"Details-module_details-reset__HWtSD"};
1344
+ var styles$o = {"details-reset":"Details-module_details-reset__HWtSD"};
1933
1345
 
1934
- var _excluded$x = ["children", "className", "display", "isOpen"];
1346
+ var _excluded$B = ["children", "className", "display", "isOpen"];
1935
1347
  var DetailsBaseComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
1936
1348
  var children = _ref.children,
1937
1349
  className = _ref.className,
1938
1350
  _ref$display = _ref.display,
1939
1351
  display = _ref$display === void 0 ? 'block' : _ref$display,
1940
1352
  isOpen = _ref.isOpen,
1941
- restProps = _objectWithoutPropertiesLoose(_ref, _excluded$x);
1942
- var detailsClasses = classNames(className, styles$m['details-reset'], styles$m.details);
1353
+ restProps = _objectWithoutPropertiesLoose(_ref, _excluded$B);
1354
+ var detailsClasses = classNames(className, styles$o['details-reset'], styles$o.details);
1943
1355
  return React.createElement(Box, _extends({
1944
1356
  as: "details",
1945
1357
  className: detailsClasses,
@@ -1956,9 +1368,9 @@ var Details = /*#__PURE__*/function () {
1956
1368
  return Details;
1957
1369
  }();
1958
1370
 
1959
- var styles$l = {"drawer":"Drawer-module_drawer__IKoOm","hide-overlay-right":"Drawer-module_hide-overlay-right__FANA9","hide-overlay-left":"Drawer-module_hide-overlay-left__xZFa3","hide-overlay-bottom":"Drawer-module_hide-overlay-bottom__11EB1","hide-overlay-top":"Drawer-module_hide-overlay-top__kEsV5","drawer-content":"Drawer-module_drawer-content__zZ9xR","left":"Drawer-module_left__pwTcW","right":"Drawer-module_right__EzGpI","bottom":"Drawer-module_bottom__r3Q5Z","top":"Drawer-module_top__xQejO"};
1371
+ var styles$n = {"drawer":"Drawer-module_drawer__IKoOm","hide-overlay-right":"Drawer-module_hide-overlay-right__FANA9","hide-overlay-left":"Drawer-module_hide-overlay-left__xZFa3","hide-overlay-bottom":"Drawer-module_hide-overlay-bottom__11EB1","hide-overlay-top":"Drawer-module_hide-overlay-top__kEsV5","drawer-content":"Drawer-module_drawer-content__zZ9xR","left":"Drawer-module_left__pwTcW","right":"Drawer-module_right__EzGpI","bottom":"Drawer-module_bottom__r3Q5Z","top":"Drawer-module_top__xQejO"};
1960
1372
 
1961
- var _excluded$w = ["defaultIsOpen", "open", "onOpenChange", "className", "children"],
1373
+ var _excluded$A = ["defaultIsOpen", "open", "onOpenChange", "className", "children"],
1962
1374
  _excluded2$3 = ["asChild", "onClick"],
1963
1375
  _excluded3$2 = ["className"],
1964
1376
  _excluded4$2 = ["className"],
@@ -1979,7 +1391,7 @@ var DrawerProvider = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
1979
1391
  setOpenProp = _ref.onOpenChange,
1980
1392
  className = _ref.className,
1981
1393
  children = _ref.children,
1982
- props = _objectWithoutPropertiesLoose(_ref, _excluded$w);
1394
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$A);
1983
1395
  var _useState = React.useState(openProp != null ? openProp : defaultIsOpen),
1984
1396
  _open = _useState[0],
1985
1397
  _setOpen = _useState[1];
@@ -2098,8 +1510,8 @@ var Drawer = /*#__PURE__*/React.forwardRef(function (_ref3, ref) {
2098
1510
  }, [initialFocusRef]);
2099
1511
  var dynamicWidth = width;
2100
1512
  var dynamicStyle = (_dynamicStyle = {}, _dynamicStyle['--drawer-width'] = dynamicWidth, _dynamicStyle);
2101
- var overlayClassnames = classNames(styles$l.overlay, styles$l.drawer, (_classNames = {}, _classNames[styles$l['hide-overlay']] = hideOverlay, _classNames[styles$l["hide-overlay-" + placement]] = hideOverlay, _classNames['position-fixed'] = containerRef === undefined, _classNames['position-absolute'] = containerRef !== undefined, _classNames));
2102
- var contentClassnames = classNames(styles$l['drawer-content'], styles$l[placement], (_classNames2 = {}, _classNames2[styles$l['hide-overlay']] = hideOverlay, _classNames2));
1513
+ var overlayClassnames = classNames(styles$n.overlay, styles$n.drawer, (_classNames = {}, _classNames[styles$n['hide-overlay']] = hideOverlay, _classNames[styles$n["hide-overlay-" + placement]] = hideOverlay, _classNames['position-fixed'] = containerRef === undefined, _classNames['position-absolute'] = containerRef !== undefined, _classNames));
1514
+ var contentClassnames = classNames(styles$n['drawer-content'], styles$n[placement], (_classNames2 = {}, _classNames2[styles$n['hide-overlay']] = hideOverlay, _classNames2));
2103
1515
  var parentElement = containerRef != null && containerRef.current ? containerRef.current : document.body;
2104
1516
  var isDisabledFocusLock = hideOverlay || dangerouslyBypassFocusLock;
2105
1517
  var isDisabledRemoveScroll = hideOverlay || dangerouslyBypassScrollLock;
@@ -2209,7 +1621,7 @@ var DrawerContent = /*#__PURE__*/React.forwardRef(function (_ref7, ref) {
2209
1621
  }, props));
2210
1622
  });
2211
1623
 
2212
- var _excluded$v = ["className", "inset"],
1624
+ var _excluded$z = ["className", "inset"],
2213
1625
  _excluded2$2 = ["className", "sideOffset"],
2214
1626
  _excluded3$1 = ["className", "inset"],
2215
1627
  _excluded4$1 = ["className"],
@@ -2225,7 +1637,7 @@ var DropdownMenuRadioGroup = DropdownMenuPrimitive__namespace.RadioGroup;
2225
1637
  var DropdownMenuItem = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
2226
1638
  var className = _ref.className,
2227
1639
  inset = _ref.inset,
2228
- props = _objectWithoutPropertiesLoose(_ref, _excluded$v);
1640
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$z);
2229
1641
  return React.createElement(DropdownMenuPrimitive__namespace.Item, _extends({
2230
1642
  ref: ref,
2231
1643
  className: classNames('font-size-sm position-relative cursor-default display-flex br-sm align-items-center p-sm g-sm outline-none', inset && 'p-left-md', !props.disabled && 'hover:background-color-secondary focus:background-color-secondary', props.disabled && 'cursor-not-allowed font-color-disabled', className)
@@ -2305,7 +1717,35 @@ var DropdownMenuSubContent = /*#__PURE__*/React.forwardRef(function (_ref7, ref)
2305
1717
  });
2306
1718
  DropdownMenuSubContent.displayName = DropdownMenuPrimitive__namespace.SubContent.displayName;
2307
1719
 
2308
- var _excluded$u = ["field", "form", "onChange", "id", "label"];
1720
+ var _excluded$y = ["label", "hideLabel", "children", "error", "id", "isRequired", "helpText", "isDisabled", "requiredIndicator", "width"];
1721
+ var FormControl = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
1722
+ var label = _ref.label,
1723
+ hideLabel = _ref.hideLabel,
1724
+ children = _ref.children,
1725
+ error = _ref.error,
1726
+ id = _ref.id,
1727
+ isRequired = _ref.isRequired,
1728
+ helpText = _ref.helpText,
1729
+ isDisabled = _ref.isDisabled,
1730
+ requiredIndicator = _ref.requiredIndicator,
1731
+ _ref$width = _ref.width,
1732
+ width = _ref$width === void 0 ? '100' : _ref$width,
1733
+ restProps = _objectWithoutPropertiesLoose(_ref, _excluded$y);
1734
+ var labelProps = {
1735
+ inputId: id,
1736
+ helpText: helpText,
1737
+ margin: '0 0 xs 0',
1738
+ isDisabled: isDisabled,
1739
+ isFieldRequired: isRequired,
1740
+ requiredIndicator: requiredIndicator
1741
+ };
1742
+ return React.createElement(Box, _extends({
1743
+ width: width,
1744
+ ref: ref
1745
+ }, restProps), label && !hideLabel && React.createElement(FormLabel, _extends({}, labelProps), label), children, error && error !== true && React.createElement(InputValidationMessage, null, error));
1746
+ });
1747
+
1748
+ var _excluded$x = ["field", "form", "onChange", "id", "label"];
2309
1749
  var FormikCheckboxInput = function FormikCheckboxInput(_ref) {
2310
1750
  var _ref$field = _ref.field,
2311
1751
  name = _ref$field.name,
@@ -2318,7 +1758,7 @@ var FormikCheckboxInput = function FormikCheckboxInput(_ref) {
2318
1758
  onChange = _ref.onChange,
2319
1759
  id = _ref.id,
2320
1760
  label = _ref.label,
2321
- props = _objectWithoutPropertiesLoose(_ref, _excluded$u);
1761
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$x);
2322
1762
  return React.createElement(CheckboxInput, _extends({}, props, {
2323
1763
  id: id,
2324
1764
  label: label,
@@ -2329,7 +1769,7 @@ var FormikCheckboxInput = function FormikCheckboxInput(_ref) {
2329
1769
  }));
2330
1770
  };
2331
1771
 
2332
- var _excluded$t = ["className", "isSelected", "isDisabled", "error"];
1772
+ var _excluded$w = ["className", "isSelected", "isDisabled", "error"];
2333
1773
  var RadioInputIcon = function RadioInputIcon(_ref) {
2334
1774
  var _ref$className = _ref.className,
2335
1775
  className = _ref$className === void 0 ? undefined : _ref$className,
@@ -2339,7 +1779,7 @@ var RadioInputIcon = function RadioInputIcon(_ref) {
2339
1779
  isDisabled = _ref$isDisabled === void 0 ? false : _ref$isDisabled,
2340
1780
  _ref$error = _ref.error,
2341
1781
  error = _ref$error === void 0 ? null : _ref$error,
2342
- restProps = _objectWithoutPropertiesLoose(_ref, _excluded$t);
1782
+ restProps = _objectWithoutPropertiesLoose(_ref, _excluded$w);
2343
1783
  var color = 'secondary';
2344
1784
  var name = 'radio-btn-unchecked';
2345
1785
  if (isSelected && isDisabled) {
@@ -2361,7 +1801,7 @@ var RadioInputIcon = function RadioInputIcon(_ref) {
2361
1801
  }));
2362
1802
  };
2363
1803
 
2364
- var styles$k = {"size-sm":"RadioInput-module_size-sm__6DLmn","size-md":"RadioInput-module_size-md__wiJ4R","size-lg":"RadioInput-module_size-lg__pX8S8","radio-container":"RadioInput-module_radio-container__EBRgV","hidden":"RadioInput-module_hidden__KF4as","size-sm-tablet":"RadioInput-module_size-sm-tablet__x7edi","size-md-tablet":"RadioInput-module_size-md-tablet__T-HTa","size-lg-tablet":"RadioInput-module_size-lg-tablet__0Hkim","size-sm-desktop":"RadioInput-module_size-sm-desktop__HjeWG","size-md-desktop":"RadioInput-module_size-md-desktop__3Y1fn","size-lg-desktop":"RadioInput-module_size-lg-desktop__z3nKW","size-sm-hd":"RadioInput-module_size-sm-hd__oxAR7","size-md-hd":"RadioInput-module_size-md-hd__ws7ro","size-lg-hd":"RadioInput-module_size-lg-hd__87uii"};
1804
+ var styles$m = {"size-sm":"RadioInput-module_size-sm__6DLmn","size-md":"RadioInput-module_size-md__wiJ4R","size-lg":"RadioInput-module_size-lg__pX8S8","radio-container":"RadioInput-module_radio-container__EBRgV","hidden":"RadioInput-module_hidden__KF4as","size-sm-tablet":"RadioInput-module_size-sm-tablet__x7edi","size-md-tablet":"RadioInput-module_size-md-tablet__T-HTa","size-lg-tablet":"RadioInput-module_size-lg-tablet__0Hkim","size-sm-desktop":"RadioInput-module_size-sm-desktop__HjeWG","size-md-desktop":"RadioInput-module_size-md-desktop__3Y1fn","size-lg-desktop":"RadioInput-module_size-lg-desktop__z3nKW","size-sm-hd":"RadioInput-module_size-sm-hd__oxAR7","size-md-hd":"RadioInput-module_size-md-hd__ws7ro","size-lg-hd":"RadioInput-module_size-lg-hd__87uii"};
2365
1805
 
2366
1806
  var RadioInput = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
2367
1807
  var _classNames;
@@ -2385,7 +1825,7 @@ var RadioInput = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
2385
1825
  _ref$size = _ref.size,
2386
1826
  size = _ref$size === void 0 ? 'md' : _ref$size;
2387
1827
  var responsiveClasses = classNames.apply(void 0, generateResponsiveClasses('size', size).map(function (c) {
2388
- return styles$k[c];
1828
+ return styles$m[c];
2389
1829
  }));
2390
1830
  var labelProps = {
2391
1831
  inputId: option.id,
@@ -2394,7 +1834,7 @@ var RadioInput = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
2394
1834
  isRadioInputLabel: true,
2395
1835
  justifyContent: 'center'
2396
1836
  };
2397
- var containerClasses = classNames('hyphen-components__variables__form-control', className, styles$k['radio-container'], responsiveClasses, (_classNames = {}, _classNames[styles$k.hidden] = isHidden, _classNames));
1837
+ var containerClasses = classNames('hyphen-components__variables__form-control', className, styles$m['radio-container'], responsiveClasses, (_classNames = {}, _classNames[styles$m.hidden] = isHidden, _classNames));
2398
1838
  return React.createElement(React.Fragment, null, option && React.createElement(Box, {
2399
1839
  className: containerClasses,
2400
1840
  key: option.id,
@@ -2430,9 +1870,9 @@ var RadioInput = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
2430
1870
  }), option.label && React.createElement(FormLabel, _extends({}, labelProps), option.label)));
2431
1871
  });
2432
1872
 
2433
- var styles$j = {"radio-group":"RadioGroup-module_radio-group__FWPcT","fieldset":"RadioGroup-module_fieldset__PEUXI","legend":"RadioGroup-module_legend__tcfV7","description":"RadioGroup-module_description__8fzM-"};
1873
+ var styles$l = {"radio-group":"RadioGroup-module_radio-group__FWPcT","fieldset":"RadioGroup-module_fieldset__PEUXI","legend":"RadioGroup-module_legend__tcfV7","description":"RadioGroup-module_description__8fzM-"};
2434
1874
 
2435
- var _excluded$s = ["name", "onChange", "options", "className", "description", "direction", "error", "isDisabled", "isRequired", "onBlur", "onFocus", "requiredIndicator", "size", "title", "value"];
1875
+ var _excluded$v = ["name", "onChange", "options", "className", "description", "direction", "error", "isDisabled", "isRequired", "onBlur", "onFocus", "requiredIndicator", "size", "title", "value"];
2436
1876
  var RadioGroup = function RadioGroup(_ref) {
2437
1877
  var _classNames;
2438
1878
  var name = _ref.name,
@@ -2462,20 +1902,20 @@ var RadioGroup = function RadioGroup(_ref) {
2462
1902
  title = _ref$title === void 0 ? undefined : _ref$title,
2463
1903
  _ref$value = _ref.value,
2464
1904
  value = _ref$value === void 0 ? undefined : _ref$value,
2465
- restProps = _objectWithoutPropertiesLoose(_ref, _excluded$s);
2466
- var groupClasses = classNames('hyphen-components__variables__form-control', className, (_classNames = {}, _classNames[styles$j.loading] = error, _classNames));
1905
+ restProps = _objectWithoutPropertiesLoose(_ref, _excluded$v);
1906
+ var groupClasses = classNames('hyphen-components__variables__form-control', className, (_classNames = {}, _classNames[styles$l.loading] = error, _classNames));
2467
1907
  return React.createElement("div", _extends({
2468
- className: classNames(styles$j['radio-group'], groupClasses)
1908
+ className: classNames(styles$l['radio-group'], groupClasses)
2469
1909
  }, restProps), React.createElement("fieldset", {
2470
- className: styles$j.fieldset
1910
+ className: styles$l.fieldset
2471
1911
  }, (title || description) && React.createElement("legend", {
2472
- className: styles$j.legend
1912
+ className: styles$l.legend
2473
1913
  }, title, isRequired && React.createElement("span", null, requiredIndicator), description && React.createElement("div", {
2474
- className: styles$j.description
1914
+ className: styles$l.description
2475
1915
  }, description)), React.createElement(Box, {
2476
1916
  direction: direction,
2477
1917
  gap: "sm",
2478
- className: styles$j.options
1918
+ className: styles$l.options
2479
1919
  }, options && options.map(function (option) {
2480
1920
  return React.createElement(RadioInput, {
2481
1921
  key: option.id,
@@ -2492,7 +1932,7 @@ var RadioGroup = function RadioGroup(_ref) {
2492
1932
  }))), error && typeof error !== 'boolean' && React.createElement(InputValidationMessage, null, error));
2493
1933
  };
2494
1934
 
2495
- var _excluded$r = ["field", "form", "onChange", "options"];
1935
+ var _excluded$u = ["field", "form", "onChange", "options"];
2496
1936
  var FormikRadioGroup = function FormikRadioGroup(_ref) {
2497
1937
  var _ref$field = _ref.field,
2498
1938
  name = _ref$field.name,
@@ -2504,7 +1944,7 @@ var FormikRadioGroup = function FormikRadioGroup(_ref) {
2504
1944
  errors = _ref$form.errors,
2505
1945
  onChange = _ref.onChange,
2506
1946
  options = _ref.options,
2507
- props = _objectWithoutPropertiesLoose(_ref, _excluded$r);
1947
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$u);
2508
1948
  return React.createElement(RadioGroup, _extends({}, props, {
2509
1949
  options: options,
2510
1950
  name: name,
@@ -2515,6 +1955,17 @@ var FormikRadioGroup = function FormikRadioGroup(_ref) {
2515
1955
  }));
2516
1956
  };
2517
1957
 
1958
+ // eslint-disable-next-line import/prefer-default-export
1959
+ function getAutoCompleteValue(value) {
1960
+ if (!value || typeof value !== 'boolean' && typeof value !== 'string') {
1961
+ return 'off';
1962
+ }
1963
+ if (typeof value === 'boolean' && value) {
1964
+ return 'on';
1965
+ }
1966
+ return value;
1967
+ }
1968
+
2518
1969
  // eslint-disable-next-line import/prefer-default-export
2519
1970
  var getColumnKeys = function getColumnKeys(columns) {
2520
1971
  var INTERNAL_KEY_PREFIX = 'columnKeyPrefix';
@@ -2560,9 +2011,28 @@ valOrFunction, arg) {
2560
2011
  return isFunction(valOrFunction) ? valOrFunction(arg) : valOrFunction;
2561
2012
  };
2562
2013
 
2563
- var styles$i = {"react-select-icon":"SelectInput-module_react-select-icon__PvocB","size-sm":"SelectInput-module_size-sm__PKB-J","size-md":"SelectInput-module_size-md__n9Fj8","size-lg":"SelectInput-module_size-lg__LQ-uG","error":"SelectInput-module_error__Avf98","size-sm-tablet":"SelectInput-module_size-sm-tablet__2Dg01","size-md-tablet":"SelectInput-module_size-md-tablet__-iOSg","size-lg-tablet":"SelectInput-module_size-lg-tablet__9xmuJ","size-sm-desktop":"SelectInput-module_size-sm-desktop__tOWI4","size-md-desktop":"SelectInput-module_size-md-desktop__vo-UC","size-lg-desktop":"SelectInput-module_size-lg-desktop__nxQdj","size-sm-hd":"SelectInput-module_size-sm-hd__qamTH","size-md-hd":"SelectInput-module_size-md-hd__Cf8hk","size-lg-hd":"SelectInput-module_size-lg-hd__E4-mZ","disabled":"SelectInput-module_disabled__4ezAy","select-input-label":"SelectInput-module_select-input-label__eqEYa"};
2014
+ // export const BREAKPOINT_VALUES = Object.values(designTokens.size.breakpoint);
2015
+ var BREAKPOINTS = /*#__PURE__*/[].concat(Object.entries(designTokens.size.breakpoint), [['base', {
2016
+ value: '0'
2017
+ }]]).map(function (_ref) {
2018
+ var name = _ref[0],
2019
+ data = _ref[1];
2020
+ if (typeof data === 'object' && data !== null && 'value' in data) {
2021
+ return {
2022
+ name: name,
2023
+ minWidth: parseInt(data['value'], 10)
2024
+ };
2025
+ }
2026
+ return undefined;
2027
+ }).filter(function (breakpoint) {
2028
+ return breakpoint !== undefined;
2029
+ });
2030
+ var Z_INDEX_VALUES = designTokens.size['z-index'];
2031
+ // export const BOX_SHADOW_VALUES = designTokens.size['box-shadow'];
2032
+
2033
+ var styles$k = {"react-select-icon":"SelectInput-module_react-select-icon__PvocB","size-sm":"SelectInput-module_size-sm__PKB-J","size-md":"SelectInput-module_size-md__n9Fj8","size-lg":"SelectInput-module_size-lg__LQ-uG","error":"SelectInput-module_error__Avf98","size-sm-tablet":"SelectInput-module_size-sm-tablet__2Dg01","size-md-tablet":"SelectInput-module_size-md-tablet__-iOSg","size-lg-tablet":"SelectInput-module_size-lg-tablet__9xmuJ","size-sm-desktop":"SelectInput-module_size-sm-desktop__tOWI4","size-md-desktop":"SelectInput-module_size-md-desktop__vo-UC","size-lg-desktop":"SelectInput-module_size-lg-desktop__nxQdj","size-sm-hd":"SelectInput-module_size-sm-hd__qamTH","size-md-hd":"SelectInput-module_size-md-hd__Cf8hk","size-lg-hd":"SelectInput-module_size-lg-hd__E4-mZ","disabled":"SelectInput-module_disabled__4ezAy","select-input-label":"SelectInput-module_select-input-label__eqEYa"};
2564
2034
 
2565
- var _excluded$q = ["id", "label", "onChange", "options", "value", "autoFocus", "className", "error", "helpText", "hideLabel", "isClearable", "isAsync", "isCreatable", "isDisabled", "isMulti", "isRequired", "menuPortalTarget", "name", "onFocus", "onBlur", "placeholder", "requiredIndicator", "size"];
2035
+ var _excluded$t = ["id", "label", "onChange", "options", "value", "autoFocus", "className", "error", "helpText", "hideLabel", "isClearable", "isAsync", "isCreatable", "isDisabled", "isMulti", "isRequired", "menuPortalTarget", "name", "onFocus", "onBlur", "placeholder", "requiredIndicator", "size"];
2566
2036
  function SelectInput(props) {
2567
2037
  var _ref, _classNames;
2568
2038
  var id = props.id,
@@ -2605,7 +2075,7 @@ function SelectInput(props) {
2605
2075
  requiredIndicator = _props$requiredIndica === void 0 ? ' *' : _props$requiredIndica,
2606
2076
  _props$size = props.size,
2607
2077
  size = _props$size === void 0 ? 'md' : _props$size,
2608
- restProps = _objectWithoutPropertiesLoose(props, _excluded$q);
2078
+ restProps = _objectWithoutPropertiesLoose(props, _excluded$t);
2609
2079
  var handleChange = function handleChange(values) {
2610
2080
  var simulatedEventPayloadType = {
2611
2081
  target: {
@@ -2623,13 +2093,13 @@ function SelectInput(props) {
2623
2093
  };
2624
2094
  var responsiveClasses = generateResponsiveClasses('size', size);
2625
2095
  var wrapperClasses = classNames.apply(void 0, ['hyphen-components__variables__form-control', 'select-input-wrapper', className].concat(responsiveClasses.map(function (c) {
2626
- return styles$i[c];
2627
- }), [(_ref = {}, _ref[styles$i.disabled] = isDisabled, _ref)]));
2628
- var inputClasses = classNames('react-select', (_classNames = {}, _classNames[styles$i.error] = error, _classNames));
2096
+ return styles$k[c];
2097
+ }), [(_ref = {}, _ref[styles$k.disabled] = isDisabled, _ref)]));
2098
+ var inputClasses = classNames('react-select', (_classNames = {}, _classNames[styles$k.error] = error, _classNames));
2629
2099
  var labelProps = {
2630
2100
  inputId: id,
2631
2101
  helpText: helpText,
2632
- className: styles$i['select-input-label'],
2102
+ className: styles$k['select-input-label'],
2633
2103
  isDisabled: isDisabled,
2634
2104
  isFieldRequired: isRequired,
2635
2105
  requiredIndicator: requiredIndicator
@@ -2678,7 +2148,7 @@ function SelectInput(props) {
2678
2148
  })), error && typeof error !== 'boolean' && React.createElement(InputValidationMessage, null, error));
2679
2149
  }
2680
2150
 
2681
- var _excluded$p = ["field", "form", "onChange", "id", "label", "options", "error"];
2151
+ var _excluded$s = ["field", "form", "onChange", "id", "label", "options", "error"];
2682
2152
  var FormikSelectInput = function FormikSelectInput(_ref) {
2683
2153
  var _ref$field = _ref.field,
2684
2154
  name = _ref$field.name,
@@ -2693,7 +2163,7 @@ var FormikSelectInput = function FormikSelectInput(_ref) {
2693
2163
  label = _ref.label,
2694
2164
  options = _ref.options,
2695
2165
  errorProp = _ref.error,
2696
- props = _objectWithoutPropertiesLoose(_ref, _excluded$p);
2166
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$s);
2697
2167
  var errorMessage;
2698
2168
  var error = errorProp != null ? errorProp : formik.getIn(touched, name) && formik.getIn(errors, name);
2699
2169
  if (typeof error === 'string') {
@@ -2716,7 +2186,7 @@ var FormikSelectInput = function FormikSelectInput(_ref) {
2716
2186
  }, props));
2717
2187
  };
2718
2188
 
2719
- var styles$h = {"text-input-wrapper":"SelectInputInset-module_text-input-wrapper__hZ4Fy","size-md":"SelectInputInset-module_size-md__6MFcV","select-input-label":"SelectInputInset-module_select-input-label__6XdR6","clear-button":"SelectInputInset-module_clear-button__xbZaY","size-lg":"SelectInputInset-module_size-lg__i2Bzf","disabled":"SelectInputInset-module_disabled__DYSr2","size-md-tablet":"SelectInputInset-module_size-md-tablet__xwoPz","size-lg-tablet":"SelectInputInset-module_size-lg-tablet__2DgFa","size-md-desktop":"SelectInputInset-module_size-md-desktop__MfemS","size-lg-desktop":"SelectInputInset-module_size-lg-desktop__etLGJ","size-md-hd":"SelectInputInset-module_size-md-hd__NWb1q","size-lg-hd":"SelectInputInset-module_size-lg-hd__ycjXC","error":"SelectInputInset-module_error__j-jgS"};
2189
+ var styles$j = {"text-input-wrapper":"SelectInputInset-module_text-input-wrapper__hZ4Fy","size-md":"SelectInputInset-module_size-md__6MFcV","select-input-label":"SelectInputInset-module_select-input-label__6XdR6","clear-button":"SelectInputInset-module_clear-button__xbZaY","size-lg":"SelectInputInset-module_size-lg__i2Bzf","disabled":"SelectInputInset-module_disabled__DYSr2","size-md-tablet":"SelectInputInset-module_size-md-tablet__xwoPz","size-lg-tablet":"SelectInputInset-module_size-lg-tablet__2DgFa","size-md-desktop":"SelectInputInset-module_size-md-desktop__MfemS","size-lg-desktop":"SelectInputInset-module_size-lg-desktop__etLGJ","size-md-hd":"SelectInputInset-module_size-md-hd__NWb1q","size-lg-hd":"SelectInputInset-module_size-lg-hd__ycjXC","error":"SelectInputInset-module_error__j-jgS"};
2720
2190
 
2721
2191
  var SelectInputInset = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
2722
2192
  var _ref2;
@@ -2758,10 +2228,10 @@ var SelectInputInset = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
2758
2228
  };
2759
2229
  var optionsWithPlaceholder = [_extends({}, placeholderOption)].concat(options);
2760
2230
  var responsiveClasses = generateResponsiveClasses('size', size);
2761
- var inputWrapperClasses = classNames.apply(void 0, ['hyphen-components__variables__form-control', styles$h['text-input-wrapper']].concat(responsiveClasses.map(function (c) {
2762
- return styles$h[c];
2763
- }), [(_ref2 = {}, _ref2[styles$h.error] = error, _ref2[styles$h.disabled] = isDisabled, _ref2[styles$h['is-clearable']] = onClear, _ref2)]));
2764
- var clearBtnClasses = classNames(styles$h['clear-button'], styles$h.md);
2231
+ var inputWrapperClasses = classNames.apply(void 0, ['hyphen-components__variables__form-control', styles$j['text-input-wrapper']].concat(responsiveClasses.map(function (c) {
2232
+ return styles$j[c];
2233
+ }), [(_ref2 = {}, _ref2[styles$j.error] = error, _ref2[styles$j.disabled] = isDisabled, _ref2[styles$j['is-clearable']] = onClear, _ref2)]));
2234
+ var clearBtnClasses = classNames(styles$j['clear-button'], styles$j.md);
2765
2235
  var renderClearIcon = function renderClearIcon() {
2766
2236
  var handleKeyPress = function handleKeyPress(event) {
2767
2237
  if (event.keyCode === 13 && onClear) onClear(event);
@@ -2816,12 +2286,12 @@ var SelectInputInset = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
2816
2286
  }, option.label);
2817
2287
  })), !!onClear && !!value && renderClearIcon(), React.createElement("label", {
2818
2288
  htmlFor: id,
2819
- className: styles$h['select-input-label'],
2289
+ className: styles$j['select-input-label'],
2820
2290
  id: id + "Label"
2821
2291
  }, label, isRequired && requiredIndicator && React.createElement("span", null, requiredIndicator))), helpText && React.createElement(HelpText, null, helpText), error && error !== true && React.createElement(InputValidationMessage, null, error));
2822
2292
  });
2823
2293
 
2824
- var _excluded$o = ["field", "form", "onChange", "id", "label", "options"];
2294
+ var _excluded$r = ["field", "form", "onChange", "id", "label", "options"];
2825
2295
  var FormikSelectInputInset = function FormikSelectInputInset(_ref) {
2826
2296
  var _ref$field = _ref.field,
2827
2297
  name = _ref$field.name,
@@ -2835,7 +2305,7 @@ var FormikSelectInputInset = function FormikSelectInputInset(_ref) {
2835
2305
  id = _ref.id,
2836
2306
  label = _ref.label,
2837
2307
  options = _ref.options,
2838
- props = _objectWithoutPropertiesLoose(_ref, _excluded$o);
2308
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$r);
2839
2309
  return React.createElement(SelectInputInset, _extends({}, props, {
2840
2310
  id: id,
2841
2311
  label: label,
@@ -2848,7 +2318,7 @@ var FormikSelectInputInset = function FormikSelectInputInset(_ref) {
2848
2318
  }));
2849
2319
  };
2850
2320
 
2851
- var styles$g = {"text-input-wrapper":"TextareaInputInset-module_text-input-wrapper__0VNFI","size-md":"TextareaInputInset-module_size-md__Hkdpr","text-input-label":"TextareaInputInset-module_text-input-label__yHDss","size-lg":"TextareaInputInset-module_size-lg__wOXof","disabled":"TextareaInputInset-module_disabled__U-Fpa","size-md-tablet":"TextareaInputInset-module_size-md-tablet__KnN-9","size-lg-tablet":"TextareaInputInset-module_size-lg-tablet__oJ0ib","size-md-desktop":"TextareaInputInset-module_size-md-desktop__uBIxD","size-lg-desktop":"TextareaInputInset-module_size-lg-desktop__3qmko","size-md-hd":"TextareaInputInset-module_size-md-hd__6340p","size-lg-hd":"TextareaInputInset-module_size-lg-hd__PtVQT","error":"TextareaInputInset-module_error__sxX-U","textarea-resize-both":"TextareaInputInset-module_textarea-resize-both__53-Ff","textarea-resize-horizontal":"TextareaInputInset-module_textarea-resize-horizontal__X0ibH","textarea-resize-vertical":"TextareaInputInset-module_textarea-resize-vertical__YlsyR","textarea-resize-none":"TextareaInputInset-module_textarea-resize-none__p0eJB"};
2321
+ var styles$i = {"text-input-wrapper":"TextareaInputInset-module_text-input-wrapper__0VNFI","size-md":"TextareaInputInset-module_size-md__Hkdpr","text-input-label":"TextareaInputInset-module_text-input-label__yHDss","size-lg":"TextareaInputInset-module_size-lg__wOXof","disabled":"TextareaInputInset-module_disabled__U-Fpa","size-md-tablet":"TextareaInputInset-module_size-md-tablet__KnN-9","size-lg-tablet":"TextareaInputInset-module_size-lg-tablet__oJ0ib","size-md-desktop":"TextareaInputInset-module_size-md-desktop__uBIxD","size-lg-desktop":"TextareaInputInset-module_size-lg-desktop__3qmko","size-md-hd":"TextareaInputInset-module_size-md-hd__6340p","size-lg-hd":"TextareaInputInset-module_size-lg-hd__PtVQT","error":"TextareaInputInset-module_error__sxX-U","textarea-resize-both":"TextareaInputInset-module_textarea-resize-both__53-Ff","textarea-resize-horizontal":"TextareaInputInset-module_textarea-resize-horizontal__X0ibH","textarea-resize-vertical":"TextareaInputInset-module_textarea-resize-vertical__YlsyR","textarea-resize-none":"TextareaInputInset-module_textarea-resize-none__p0eJB"};
2852
2322
 
2853
2323
  var TextareaInputInset = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
2854
2324
  var _ref2, _classNames;
@@ -2891,9 +2361,9 @@ var TextareaInputInset = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
2891
2361
  _ref$type = _ref.type,
2892
2362
  type = _ref$type === void 0 ? 'text' : _ref$type;
2893
2363
  var responsiveClasses = generateResponsiveClasses('size', size);
2894
- var inputWrapperClasses = classNames.apply(void 0, ['hyphen-components__variables__form-control', styles$g['text-input-wrapper']].concat(responsiveClasses.map(function (c) {
2895
- return styles$g[c];
2896
- }), [(_ref2 = {}, _ref2[styles$g.disabled] = isDisabled, _ref2)]));
2364
+ var inputWrapperClasses = classNames.apply(void 0, ['hyphen-components__variables__form-control', styles$i['text-input-wrapper']].concat(responsiveClasses.map(function (c) {
2365
+ return styles$i[c];
2366
+ }), [(_ref2 = {}, _ref2[styles$i.disabled] = isDisabled, _ref2)]));
2897
2367
  var computedInputProps = _extends({}, inputProps, {
2898
2368
  // These are spread first so that we don't have top level props overwritten by the user.
2899
2369
  'aria-required': isRequired,
@@ -2902,7 +2372,7 @@ var TextareaInputInset = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
2902
2372
  'aria-labelledby': label ? id + "Label" : undefined,
2903
2373
  autoComplete: getAutoCompleteValue(autoComplete),
2904
2374
  autoFocus: autoFocus,
2905
- className: classNames(styles$g["textarea-resize-" + resize], (_classNames = {}, _classNames[styles$g.error] = error, _classNames)),
2375
+ className: classNames(styles$i["textarea-resize-" + resize], (_classNames = {}, _classNames[styles$i.error] = error, _classNames)),
2906
2376
  disabled: isDisabled,
2907
2377
  id: id,
2908
2378
  maxLength: maxLength,
@@ -2928,12 +2398,12 @@ var TextareaInputInset = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
2928
2398
  as: "textarea"
2929
2399
  }, computedInputProps)), React.createElement("label", {
2930
2400
  htmlFor: id,
2931
- className: styles$g['text-input-label'],
2401
+ className: styles$i['text-input-label'],
2932
2402
  id: id + "Label"
2933
2403
  }, label, isRequired && requiredIndicator && React.createElement("span", null, requiredIndicator))), helpText && React.createElement(HelpText, null, helpText), error && error !== true && React.createElement(InputValidationMessage, null, error));
2934
2404
  });
2935
2405
 
2936
- var _excluded$n = ["field", "form", "onChange", "id", "label"];
2406
+ var _excluded$q = ["field", "form", "onChange", "id", "label"];
2937
2407
  var FormikTextareaInputInset = function FormikTextareaInputInset(_ref) {
2938
2408
  var _ref$field = _ref.field,
2939
2409
  name = _ref$field.name,
@@ -2946,7 +2416,7 @@ var FormikTextareaInputInset = function FormikTextareaInputInset(_ref) {
2946
2416
  onChange = _ref.onChange,
2947
2417
  id = _ref.id,
2948
2418
  label = _ref.label,
2949
- props = _objectWithoutPropertiesLoose(_ref, _excluded$n);
2419
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$q);
2950
2420
  return React.createElement(TextareaInputInset, _extends({}, props, {
2951
2421
  id: id,
2952
2422
  label: label,
@@ -2958,7 +2428,7 @@ var FormikTextareaInputInset = function FormikTextareaInputInset(_ref) {
2958
2428
  }));
2959
2429
  };
2960
2430
 
2961
- var styles$f = {"text-input-wrapper":"TextInputInset-module_text-input-wrapper__qQzOh","size-md":"TextInputInset-module_size-md__Lg91X","label-input-wrapper":"TextInputInset-module_label-input-wrapper__opMsd","text-input-label":"TextInputInset-module_text-input-label__zADJM","prefix":"TextInputInset-module_prefix__i-iby","suffix":"TextInputInset-module_suffix__r9ZnM","clear-button":"TextInputInset-module_clear-button__kV9pf","size-lg":"TextInputInset-module_size-lg__ggigL","disabled":"TextInputInset-module_disabled__udCEB","size-md-tablet":"TextInputInset-module_size-md-tablet__adPUS","size-lg-tablet":"TextInputInset-module_size-lg-tablet__HZTUo","size-md-desktop":"TextInputInset-module_size-md-desktop__Pjze7","size-lg-desktop":"TextInputInset-module_size-lg-desktop__5ov91","size-md-hd":"TextInputInset-module_size-md-hd__jyglU","size-lg-hd":"TextInputInset-module_size-lg-hd__ymgTS","error":"TextInputInset-module_error__LZghB"};
2431
+ var styles$h = {"text-input-wrapper":"TextInputInset-module_text-input-wrapper__qQzOh","size-md":"TextInputInset-module_size-md__Lg91X","label-input-wrapper":"TextInputInset-module_label-input-wrapper__opMsd","text-input-label":"TextInputInset-module_text-input-label__zADJM","prefix":"TextInputInset-module_prefix__i-iby","suffix":"TextInputInset-module_suffix__r9ZnM","clear-button":"TextInputInset-module_clear-button__kV9pf","size-lg":"TextInputInset-module_size-lg__ggigL","disabled":"TextInputInset-module_disabled__udCEB","size-md-tablet":"TextInputInset-module_size-md-tablet__adPUS","size-lg-tablet":"TextInputInset-module_size-lg-tablet__HZTUo","size-md-desktop":"TextInputInset-module_size-md-desktop__Pjze7","size-lg-desktop":"TextInputInset-module_size-lg-desktop__5ov91","size-md-hd":"TextInputInset-module_size-md-hd__jyglU","size-lg-hd":"TextInputInset-module_size-lg-hd__ymgTS","error":"TextInputInset-module_error__LZghB"};
2962
2432
 
2963
2433
  var TextInputInset = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
2964
2434
  var _ref2;
@@ -3002,10 +2472,10 @@ var TextInputInset = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
3002
2472
  _ref$type = _ref.type,
3003
2473
  type = _ref$type === void 0 ? 'text' : _ref$type;
3004
2474
  var responsiveClasses = generateResponsiveClasses('size', size);
3005
- var inputWrapperClasses = classNames.apply(void 0, ['hyphen-components__variables__form-control', styles$f['text-input-wrapper']].concat(responsiveClasses.map(function (c) {
3006
- return styles$f[c];
3007
- }), [(_ref2 = {}, _ref2[styles$f.error] = error, _ref2[styles$f.disabled] = isDisabled, _ref2[styles$f['is-clearable']] = onClear, _ref2)]));
3008
- var clearBtnClasses = classNames(styles$f['clear-button'], styles$f.md);
2475
+ var inputWrapperClasses = classNames.apply(void 0, ['hyphen-components__variables__form-control', styles$h['text-input-wrapper']].concat(responsiveClasses.map(function (c) {
2476
+ return styles$h[c];
2477
+ }), [(_ref2 = {}, _ref2[styles$h.error] = error, _ref2[styles$h.disabled] = isDisabled, _ref2[styles$h['is-clearable']] = onClear, _ref2)]));
2478
+ var clearBtnClasses = classNames(styles$h['clear-button'], styles$h.md);
3009
2479
  var renderClearIcon = function renderClearIcon() {
3010
2480
  var handleKeyPress = function handleKeyPress(event) {
3011
2481
  if (event.keyCode === 13 && onClear) onClear(event);
@@ -3054,7 +2524,7 @@ var TextInputInset = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
3054
2524
  alignItems: "center",
3055
2525
  justifyContent: "center",
3056
2526
  background: "secondary",
3057
- className: classNames(styles$f.prefix, 'ws-nowrap')
2527
+ className: classNames(styles$h.prefix, 'ws-nowrap')
3058
2528
  }, prefix), React.createElement(Box, {
3059
2529
  direction: "row",
3060
2530
  position: "relative",
@@ -3064,16 +2534,16 @@ var TextInputInset = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
3064
2534
  as: "input"
3065
2535
  }, computedInputProps)), !!onClear && !!value && renderClearIcon(), React.createElement("label", {
3066
2536
  htmlFor: id,
3067
- className: styles$f['text-input-label'],
2537
+ className: styles$h['text-input-label'],
3068
2538
  id: id + "Label"
3069
2539
  }, label, isRequired && requiredIndicator && React.createElement("span", null, requiredIndicator))), suffix && React.createElement(Box, {
3070
2540
  color: "base",
3071
2541
  background: "secondary",
3072
- className: classNames(styles$f.suffix, 'ws-nowrap')
2542
+ className: classNames(styles$h.suffix, 'ws-nowrap')
3073
2543
  }, suffix)), helpText && React.createElement(HelpText, null, helpText), error && error !== true && React.createElement(InputValidationMessage, null, error));
3074
2544
  });
3075
2545
 
3076
- var _excluded$m = ["field", "form", "onChange", "id", "label"];
2546
+ var _excluded$p = ["field", "form", "onChange", "id", "label"];
3077
2547
  var FormikTextInputInset = function FormikTextInputInset(_ref) {
3078
2548
  var _ref$field = _ref.field,
3079
2549
  name = _ref$field.name,
@@ -3086,7 +2556,7 @@ var FormikTextInputInset = function FormikTextInputInset(_ref) {
3086
2556
  onChange = _ref.onChange,
3087
2557
  id = _ref.id,
3088
2558
  label = _ref.label,
3089
- props = _objectWithoutPropertiesLoose(_ref, _excluded$m);
2559
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$p);
3090
2560
  return React.createElement(TextInputInset, _extends({}, props, {
3091
2561
  id: id,
3092
2562
  label: label,
@@ -3098,9 +2568,9 @@ var FormikTextInputInset = function FormikTextInputInset(_ref) {
3098
2568
  }));
3099
2569
  };
3100
2570
 
3101
- var styles$e = {"select-input-native-wrapper":"SelectInputNative-module_select-input-native-wrapper__-vvFm","disabled":"SelectInputNative-module_disabled__gKmV4","size-sm":"SelectInputNative-module_size-sm__7Ql4z","size-md":"SelectInputNative-module_size-md__ofleh","size-lg":"SelectInputNative-module_size-lg__ewS-6","size-sm-tablet":"SelectInputNative-module_size-sm-tablet__3wbFA","size-md-tablet":"SelectInputNative-module_size-md-tablet__nLo2t","size-lg-tablet":"SelectInputNative-module_size-lg-tablet__fLu2T","size-sm-desktop":"SelectInputNative-module_size-sm-desktop__aUL7D","size-md-desktop":"SelectInputNative-module_size-md-desktop__s1uoc","size-lg-desktop":"SelectInputNative-module_size-lg-desktop__Ri2Ka","size-sm-hd":"SelectInputNative-module_size-sm-hd__RVm4G","size-md-hd":"SelectInputNative-module_size-md-hd__m4Rqf","size-lg-hd":"SelectInputNative-module_size-lg-hd__V6i8b","error":"SelectInputNative-module_error__RBOZT","text-input-label":"SelectInputNative-module_text-input-label__-YjDc"};
2571
+ var styles$g = {"select-input-native-wrapper":"SelectInputNative-module_select-input-native-wrapper__-vvFm","disabled":"SelectInputNative-module_disabled__gKmV4","size-sm":"SelectInputNative-module_size-sm__7Ql4z","size-md":"SelectInputNative-module_size-md__ofleh","size-lg":"SelectInputNative-module_size-lg__ewS-6","size-sm-tablet":"SelectInputNative-module_size-sm-tablet__3wbFA","size-md-tablet":"SelectInputNative-module_size-md-tablet__nLo2t","size-lg-tablet":"SelectInputNative-module_size-lg-tablet__fLu2T","size-sm-desktop":"SelectInputNative-module_size-sm-desktop__aUL7D","size-md-desktop":"SelectInputNative-module_size-md-desktop__s1uoc","size-lg-desktop":"SelectInputNative-module_size-lg-desktop__Ri2Ka","size-sm-hd":"SelectInputNative-module_size-sm-hd__RVm4G","size-md-hd":"SelectInputNative-module_size-md-hd__m4Rqf","size-lg-hd":"SelectInputNative-module_size-lg-hd__V6i8b","error":"SelectInputNative-module_error__RBOZT","text-input-label":"SelectInputNative-module_text-input-label__-YjDc"};
3102
2572
 
3103
- var _excluded$l = ["autoFocus", "label", "hideLabel", "helpText", "error", "id", "isDisabled", "isRequired", "name", "value", "options", "onChange", "placeholder", "requiredIndicator", "size"];
2573
+ var _excluded$o = ["autoFocus", "label", "hideLabel", "helpText", "error", "id", "isDisabled", "isRequired", "name", "value", "options", "onChange", "placeholder", "requiredIndicator", "size"];
3104
2574
  var SelectInputNative = function SelectInputNative(_ref) {
3105
2575
  var _ref2;
3106
2576
  var _ref$autoFocus = _ref.autoFocus,
@@ -3122,16 +2592,16 @@ var SelectInputNative = function SelectInputNative(_ref) {
3122
2592
  requiredIndicator = _ref$requiredIndicato === void 0 ? ' *' : _ref$requiredIndicato,
3123
2593
  _ref$size = _ref.size,
3124
2594
  size = _ref$size === void 0 ? 'md' : _ref$size,
3125
- restProps = _objectWithoutPropertiesLoose(_ref, _excluded$l);
2595
+ restProps = _objectWithoutPropertiesLoose(_ref, _excluded$o);
3126
2596
  var placeholderOption = {
3127
2597
  value: '',
3128
2598
  label: placeholder
3129
2599
  };
3130
2600
  var optionsWithPlaceholder = [_extends({}, placeholderOption)].concat(options);
3131
2601
  var responsiveClasses = generateResponsiveClasses('size', size);
3132
- var selectWrapperClasses = classNames.apply(void 0, ['hyphen-components__variables__form-control', styles$e['select-input-native-wrapper']].concat(responsiveClasses.map(function (className) {
3133
- return styles$e[className];
3134
- }), [(_ref2 = {}, _ref2[styles$e.disabled] = isDisabled, _ref2[styles$e.error] = error, _ref2)]));
2602
+ var selectWrapperClasses = classNames.apply(void 0, ['hyphen-components__variables__form-control', styles$g['select-input-native-wrapper']].concat(responsiveClasses.map(function (className) {
2603
+ return styles$g[className];
2604
+ }), [(_ref2 = {}, _ref2[styles$g.disabled] = isDisabled, _ref2[styles$g.error] = error, _ref2)]));
3135
2605
  return React.createElement(FormControl, _extends({
3136
2606
  label: label,
3137
2607
  hideLabel: hideLabel,
@@ -3168,7 +2638,7 @@ var SelectInputNative = function SelectInputNative(_ref) {
3168
2638
  }))));
3169
2639
  };
3170
2640
 
3171
- var _excluded$k = ["field", "form", "onChange", "options", "id", "label"];
2641
+ var _excluded$n = ["field", "form", "onChange", "options", "id", "label"];
3172
2642
  var FormikSelectInputNative = function FormikSelectInputNative(_ref) {
3173
2643
  var _ref$field = _ref.field,
3174
2644
  name = _ref$field.name,
@@ -3182,7 +2652,7 @@ var FormikSelectInputNative = function FormikSelectInputNative(_ref) {
3182
2652
  options = _ref.options,
3183
2653
  id = _ref.id,
3184
2654
  label = _ref.label,
3185
- props = _objectWithoutPropertiesLoose(_ref, _excluded$k);
2655
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$n);
3186
2656
  return React.createElement(SelectInputNative, _extends({}, props, {
3187
2657
  options: options,
3188
2658
  id: id,
@@ -3195,7 +2665,127 @@ var FormikSelectInputNative = function FormikSelectInputNative(_ref) {
3195
2665
  }));
3196
2666
  };
3197
2667
 
3198
- var _excluded$j = ["field", "form", "onChange", "id", "label"];
2668
+ var styles$f = {"text-input-wrapper":"TextInput-module_text-input-wrapper__HCnQD","size-sm":"TextInput-module_size-sm__qWJn7","prefix":"TextInput-module_prefix__-wFO9","suffix":"TextInput-module_suffix__327yL","clear-button":"TextInput-module_clear-button__LUJpO","is-clearable":"TextInput-module_is-clearable__ExAY3","size-md":"TextInput-module_size-md__UFPtt","size-lg":"TextInput-module_size-lg__Hjfez","disabled":"TextInput-module_disabled__lrifj","size-sm-tablet":"TextInput-module_size-sm-tablet__neC5C","size-md-tablet":"TextInput-module_size-md-tablet__u29oc","size-lg-tablet":"TextInput-module_size-lg-tablet__3PUB3","size-sm-desktop":"TextInput-module_size-sm-desktop__kA12V","size-md-desktop":"TextInput-module_size-md-desktop__yLJGr","size-lg-desktop":"TextInput-module_size-lg-desktop__A1pcS","size-sm-hd":"TextInput-module_size-sm-hd__f7Thr","size-md-hd":"TextInput-module_size-md-hd__Tsnqc","size-lg-hd":"TextInput-module_size-lg-hd__XLMos","error":"TextInput-module_error__p6zZq","text-input-label":"TextInput-module_text-input-label__3PlSG"};
2669
+
2670
+ var _excluded$m = ["id", "label", "onChange", "value", "autoComplete", "autoFocus", "error", "helpText", "hideLabel", "inputProps", "isDisabled", "isRequired", "maxLength", "name", "onBlur", "onClear", "onFocus", "prefix", "placeholder", "requiredIndicator", "suffix", "size", "type"];
2671
+ var TextInput = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
2672
+ var _ref2;
2673
+ var id = _ref.id,
2674
+ label = _ref.label,
2675
+ onChange = _ref.onChange,
2676
+ value = _ref.value,
2677
+ _ref$autoComplete = _ref.autoComplete,
2678
+ autoComplete = _ref$autoComplete === void 0 ? false : _ref$autoComplete,
2679
+ _ref$autoFocus = _ref.autoFocus,
2680
+ autoFocus = _ref$autoFocus === void 0 ? false : _ref$autoFocus,
2681
+ _ref$error = _ref.error,
2682
+ error = _ref$error === void 0 ? false : _ref$error,
2683
+ helpText = _ref.helpText,
2684
+ _ref$hideLabel = _ref.hideLabel,
2685
+ hideLabel = _ref$hideLabel === void 0 ? false : _ref$hideLabel,
2686
+ _ref$inputProps = _ref.inputProps,
2687
+ inputProps = _ref$inputProps === void 0 ? {} : _ref$inputProps,
2688
+ _ref$isDisabled = _ref.isDisabled,
2689
+ isDisabled = _ref$isDisabled === void 0 ? false : _ref$isDisabled,
2690
+ _ref$isRequired = _ref.isRequired,
2691
+ isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired,
2692
+ _ref$maxLength = _ref.maxLength,
2693
+ maxLength = _ref$maxLength === void 0 ? undefined : _ref$maxLength,
2694
+ _ref$name = _ref.name,
2695
+ name = _ref$name === void 0 ? '' : _ref$name,
2696
+ _ref$onBlur = _ref.onBlur,
2697
+ onBlur = _ref$onBlur === void 0 ? undefined : _ref$onBlur,
2698
+ _ref$onClear = _ref.onClear,
2699
+ onClear = _ref$onClear === void 0 ? undefined : _ref$onClear,
2700
+ _ref$onFocus = _ref.onFocus,
2701
+ onFocus = _ref$onFocus === void 0 ? undefined : _ref$onFocus,
2702
+ _ref$prefix = _ref.prefix,
2703
+ prefix = _ref$prefix === void 0 ? undefined : _ref$prefix,
2704
+ _ref$placeholder = _ref.placeholder,
2705
+ placeholder = _ref$placeholder === void 0 ? '' : _ref$placeholder,
2706
+ _ref$requiredIndicato = _ref.requiredIndicator,
2707
+ requiredIndicator = _ref$requiredIndicato === void 0 ? ' *' : _ref$requiredIndicato,
2708
+ _ref$suffix = _ref.suffix,
2709
+ suffix = _ref$suffix === void 0 ? undefined : _ref$suffix,
2710
+ _ref$size = _ref.size,
2711
+ size = _ref$size === void 0 ? 'md' : _ref$size,
2712
+ _ref$type = _ref.type,
2713
+ type = _ref$type === void 0 ? 'text' : _ref$type,
2714
+ restProps = _objectWithoutPropertiesLoose(_ref, _excluded$m);
2715
+ var responsiveClasses = generateResponsiveClasses('size', size);
2716
+ var inputWrapperClasses = classNames.apply(void 0, ['hyphen-components__variables__form-control', styles$f['text-input-wrapper']].concat(responsiveClasses.map(function (c) {
2717
+ return styles$f[c];
2718
+ }), [(_ref2 = {}, _ref2[styles$f.error] = error, _ref2[styles$f.disabled] = isDisabled, _ref2[styles$f['is-clearable']] = onClear, _ref2)]));
2719
+ var clearBtnClasses = classNames(styles$f['clear-button'], styles$f.md);
2720
+ var renderClearIcon = function renderClearIcon() {
2721
+ var handleKeyPress = function handleKeyPress(event) {
2722
+ if (event.keyCode === 13 && onClear) onClear(event);
2723
+ };
2724
+ return React.createElement("button", {
2725
+ type: "button",
2726
+ onClick: onClear,
2727
+ onKeyUp: handleKeyPress,
2728
+ className: clearBtnClasses,
2729
+ "data-testid": "text-input-clear-button",
2730
+ "aria-label": "clear input"
2731
+ }, React.createElement(Icon, {
2732
+ name: "remove",
2733
+ className: "display-block"
2734
+ }));
2735
+ };
2736
+ var computedInputProps = _extends({}, inputProps, {
2737
+ // These are spread first so that we don't have top level props overwritten by the user.
2738
+ 'aria-required': isRequired,
2739
+ 'aria-invalid': !!error,
2740
+ 'aria-label': label,
2741
+ 'aria-labelledby': label && !hideLabel ? id + "Label" : undefined,
2742
+ autoComplete: getAutoCompleteValue(autoComplete),
2743
+ autoFocus: autoFocus,
2744
+ disabled: isDisabled,
2745
+ id: id,
2746
+ maxLength: maxLength,
2747
+ name: name,
2748
+ onBlur: onBlur,
2749
+ onChange: onChange,
2750
+ onFocus: onFocus,
2751
+ placeholder: placeholder,
2752
+ required: isRequired,
2753
+ type: type,
2754
+ value: value,
2755
+ className: classNames(inputProps.className, {
2756
+ // 'p-left-xs p-left-xs-tablet p-left-xs-desktop p-left-xs-hd': prefix,
2757
+ // 'p-right-xs p-right-xs-tablet p-right-xs-desktop p-right-xs-hd': suffix,
2758
+ 'p-h-0': !suffix && !prefix
2759
+ })
2760
+ });
2761
+ return React.createElement(FormControl, _extends({
2762
+ helpText: helpText,
2763
+ error: error,
2764
+ label: label,
2765
+ id: id,
2766
+ hideLabel: hideLabel,
2767
+ isDisabled: isDisabled,
2768
+ isRequired: isRequired,
2769
+ requiredIndicator: requiredIndicator,
2770
+ ref: ref
2771
+ }, restProps), React.createElement(Box, {
2772
+ direction: "row",
2773
+ overflow: "hidden",
2774
+ className: inputWrapperClasses
2775
+ }, prefix && React.createElement(Box, {
2776
+ color: "secondary",
2777
+ background: "secondary",
2778
+ className: classNames(styles$f.prefix, 'ws-nowrap')
2779
+ }, prefix), React.createElement(Box, _extends({
2780
+ as: "input"
2781
+ }, computedInputProps)), !!onClear && !!value && renderClearIcon(), suffix && React.createElement(Box, {
2782
+ color: "secondary",
2783
+ background: "secondary",
2784
+ className: classNames(styles$f.suffix, 'ws-nowrap')
2785
+ }, suffix)));
2786
+ });
2787
+
2788
+ var _excluded$l = ["field", "form", "onChange", "id", "label"];
3199
2789
  var FormikTextInput = function FormikTextInput(_ref) {
3200
2790
  var _ref$field = _ref.field,
3201
2791
  name = _ref$field.name,
@@ -3208,7 +2798,7 @@ var FormikTextInput = function FormikTextInput(_ref) {
3208
2798
  onChange = _ref.onChange,
3209
2799
  id = _ref.id,
3210
2800
  label = _ref.label,
3211
- props = _objectWithoutPropertiesLoose(_ref, _excluded$j);
2801
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$l);
3212
2802
  return React.createElement(TextInput, _extends({}, props, {
3213
2803
  id: id,
3214
2804
  label: label,
@@ -3220,9 +2810,9 @@ var FormikTextInput = function FormikTextInput(_ref) {
3220
2810
  }));
3221
2811
  };
3222
2812
 
3223
- var styles$d = {"textarea-input-wrapper":"TextareaInput-module_textarea-input-wrapper__mJBZN","size-sm":"TextareaInput-module_size-sm__-YCcV","size-md":"TextareaInput-module_size-md__uPOvN","size-lg":"TextareaInput-module_size-lg__P5SYv","size-sm-tablet":"TextareaInput-module_size-sm-tablet__rYP2T","size-md-tablet":"TextareaInput-module_size-md-tablet__D1PYq","size-lg-tablet":"TextareaInput-module_size-lg-tablet__N-UED","size-sm-desktop":"TextareaInput-module_size-sm-desktop__Z-Zdg","size-md-desktop":"TextareaInput-module_size-md-desktop__W3jIm","size-lg-desktop":"TextareaInput-module_size-lg-desktop__XLwk0","size-sm-hd":"TextareaInput-module_size-sm-hd__KP21d","size-md-hd":"TextareaInput-module_size-md-hd__3me0R","size-lg-hd":"TextareaInput-module_size-lg-hd__BcgC-","error":"TextareaInput-module_error__JpCpt","textarea-input-label":"TextareaInput-module_textarea-input-label__1zb77","textarea-resize-both":"TextareaInput-module_textarea-resize-both__Gn3Zh","textarea-resize-horizontal":"TextareaInput-module_textarea-resize-horizontal__0aRED","textarea-resize-vertical":"TextareaInput-module_textarea-resize-vertical__DbKar","textarea-resize-none":"TextareaInput-module_textarea-resize-none__l6dRF"};
2813
+ var styles$e = {"textarea-input-wrapper":"TextareaInput-module_textarea-input-wrapper__mJBZN","size-sm":"TextareaInput-module_size-sm__-YCcV","size-md":"TextareaInput-module_size-md__uPOvN","size-lg":"TextareaInput-module_size-lg__P5SYv","size-sm-tablet":"TextareaInput-module_size-sm-tablet__rYP2T","size-md-tablet":"TextareaInput-module_size-md-tablet__D1PYq","size-lg-tablet":"TextareaInput-module_size-lg-tablet__N-UED","size-sm-desktop":"TextareaInput-module_size-sm-desktop__Z-Zdg","size-md-desktop":"TextareaInput-module_size-md-desktop__W3jIm","size-lg-desktop":"TextareaInput-module_size-lg-desktop__XLwk0","size-sm-hd":"TextareaInput-module_size-sm-hd__KP21d","size-md-hd":"TextareaInput-module_size-md-hd__3me0R","size-lg-hd":"TextareaInput-module_size-lg-hd__BcgC-","error":"TextareaInput-module_error__JpCpt","textarea-input-label":"TextareaInput-module_textarea-input-label__1zb77","textarea-resize-both":"TextareaInput-module_textarea-resize-both__Gn3Zh","textarea-resize-horizontal":"TextareaInput-module_textarea-resize-horizontal__0aRED","textarea-resize-vertical":"TextareaInput-module_textarea-resize-vertical__DbKar","textarea-resize-none":"TextareaInput-module_textarea-resize-none__l6dRF"};
3224
2814
 
3225
- var _excluded$i = ["id", "label", "onChange", "value", "autoComplete", "autoFocus", "className", "error", "helpText", "hideLabel", "isDisabled", "isRequired", "maxLength", "name", "onBlur", "onFocus", "placeholder", "requiredIndicator", "resize", "rows", "size"];
2815
+ var _excluded$k = ["id", "label", "onChange", "value", "autoComplete", "autoFocus", "className", "error", "helpText", "hideLabel", "isDisabled", "isRequired", "maxLength", "name", "onBlur", "onFocus", "placeholder", "requiredIndicator", "resize", "rows", "size"];
3226
2816
  var TextareaInput = function TextareaInput(_ref) {
3227
2817
  var _ref2;
3228
2818
  var id = _ref.id,
@@ -3262,11 +2852,11 @@ var TextareaInput = function TextareaInput(_ref) {
3262
2852
  rows = _ref$rows === void 0 ? 3 : _ref$rows,
3263
2853
  _ref$size = _ref.size,
3264
2854
  size = _ref$size === void 0 ? 'md' : _ref$size,
3265
- restProps = _objectWithoutPropertiesLoose(_ref, _excluded$i);
2855
+ restProps = _objectWithoutPropertiesLoose(_ref, _excluded$k);
3266
2856
  var responsiveClasses = generateResponsiveClasses('size', size);
3267
- var inputWrapperClasses = classNames.apply(void 0, ['hyphen-components__variables__form-control', styles$d['textarea-input-wrapper']].concat(responsiveClasses.map(function (c) {
3268
- return styles$d[c];
3269
- }), [(_ref2 = {}, _ref2[styles$d.error] = error, _ref2[styles$d.disabled] = isDisabled, _ref2)]));
2857
+ var inputWrapperClasses = classNames.apply(void 0, ['hyphen-components__variables__form-control', styles$e['textarea-input-wrapper']].concat(responsiveClasses.map(function (c) {
2858
+ return styles$e[c];
2859
+ }), [(_ref2 = {}, _ref2[styles$e.error] = error, _ref2[styles$e.disabled] = isDisabled, _ref2)]));
3270
2860
  var inputProps = {
3271
2861
  'aria-required': isRequired,
3272
2862
  'aria-invalid': !!error,
@@ -3274,7 +2864,7 @@ var TextareaInput = function TextareaInput(_ref) {
3274
2864
  'aria-labelledby': label && !hideLabel ? id + "Label" : undefined,
3275
2865
  autoComplete: getAutoCompleteValue(autoComplete),
3276
2866
  autoFocus: autoFocus,
3277
- className: classNames(styles$d["textarea-resize-" + resize]),
2867
+ className: classNames(styles$e["textarea-resize-" + resize]),
3278
2868
  disabled: isDisabled,
3279
2869
  id: id,
3280
2870
  maxLength: maxLength,
@@ -3290,7 +2880,7 @@ var TextareaInput = function TextareaInput(_ref) {
3290
2880
  var labelProps = {
3291
2881
  inputId: id,
3292
2882
  helpText: helpText,
3293
- className: styles$d['textarea-input-label'],
2883
+ className: styles$e['textarea-input-label'],
3294
2884
  isDisabled: isDisabled,
3295
2885
  isFieldRequired: isRequired,
3296
2886
  requiredIndicator: requiredIndicator
@@ -3306,7 +2896,7 @@ var TextareaInput = function TextareaInput(_ref) {
3306
2896
  }, inputProps))), error && error !== true && React.createElement(InputValidationMessage, null, error));
3307
2897
  };
3308
2898
 
3309
- var _excluded$h = ["field", "form", "onChange", "id", "label"];
2899
+ var _excluded$j = ["field", "form", "onChange", "id", "label"];
3310
2900
  var FormikTextareaInput = function FormikTextareaInput(_ref) {
3311
2901
  var _ref$field = _ref.field,
3312
2902
  name = _ref$field.name,
@@ -3319,7 +2909,7 @@ var FormikTextareaInput = function FormikTextareaInput(_ref) {
3319
2909
  onChange = _ref.onChange,
3320
2910
  id = _ref.id,
3321
2911
  label = _ref.label,
3322
- props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
2912
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$j);
3323
2913
  return React.createElement(TextareaInput, _extends({}, props, {
3324
2914
  id: id,
3325
2915
  label: label,
@@ -3331,7 +2921,7 @@ var FormikTextareaInput = function FormikTextareaInput(_ref) {
3331
2921
  }));
3332
2922
  };
3333
2923
 
3334
- var _excluded$g = ["id", "name", "label", "onChange", "value", "dateDisplayOptions", "endTime", "interval", "locales", "placeholder", "startTime"];
2924
+ var _excluded$i = ["id", "name", "label", "onChange", "value", "dateDisplayOptions", "endTime", "interval", "locales", "placeholder", "startTime"];
3335
2925
  var TimePicker = function TimePicker(_ref) {
3336
2926
  var id = _ref.id,
3337
2927
  name = _ref.name,
@@ -3353,7 +2943,7 @@ var TimePicker = function TimePicker(_ref) {
3353
2943
  placeholder = _ref$placeholder === void 0 ? 'HH:MM' : _ref$placeholder,
3354
2944
  _ref$startTime = _ref.startTime,
3355
2945
  startTime = _ref$startTime === void 0 ? undefined : _ref$startTime,
3356
- restProps = _objectWithoutPropertiesLoose(_ref, _excluded$g);
2946
+ restProps = _objectWithoutPropertiesLoose(_ref, _excluded$i);
3357
2947
  var generateTimes = function generateTimes() {
3358
2948
  var first = new Date();
3359
2949
  first.setHours((startTime == null ? void 0 : startTime.hour) || 0, (startTime == null ? void 0 : startTime.minute) || 0, 0, 0);
@@ -3381,7 +2971,7 @@ var TimePicker = function TimePicker(_ref) {
3381
2971
  }));
3382
2972
  };
3383
2973
 
3384
- var _excluded$f = ["field", "form", "options", "onChange"];
2974
+ var _excluded$h = ["field", "form", "options", "onChange"];
3385
2975
  var FormikTimePicker = function FormikTimePicker(_ref) {
3386
2976
  var _ref$field = _ref.field,
3387
2977
  name = _ref$field.name,
@@ -3393,7 +2983,7 @@ var FormikTimePicker = function FormikTimePicker(_ref) {
3393
2983
  errors = _ref$form.errors,
3394
2984
  options = _ref.options,
3395
2985
  onChange = _ref.onChange,
3396
- props = _objectWithoutPropertiesLoose(_ref, _excluded$f);
2986
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
3397
2987
  return React.createElement(TimePicker, _extends({}, props, {
3398
2988
  name: name,
3399
2989
  onBlur: onBlur,
@@ -3404,7 +2994,7 @@ var FormikTimePicker = function FormikTimePicker(_ref) {
3404
2994
  }));
3405
2995
  };
3406
2996
 
3407
- var _excluded$e = ["id", "name", "label", "onChange", "value", "dateDisplayOptions", "endTime", "interval", "locales", "placeholder", "startTime"];
2997
+ var _excluded$g = ["id", "name", "label", "onChange", "value", "dateDisplayOptions", "endTime", "interval", "locales", "placeholder", "startTime"];
3408
2998
  var TimePickerNative = function TimePickerNative(_ref) {
3409
2999
  var id = _ref.id,
3410
3000
  name = _ref.name,
@@ -3426,7 +3016,7 @@ var TimePickerNative = function TimePickerNative(_ref) {
3426
3016
  placeholder = _ref$placeholder === void 0 ? 'HH:MM' : _ref$placeholder,
3427
3017
  _ref$startTime = _ref.startTime,
3428
3018
  startTime = _ref$startTime === void 0 ? undefined : _ref$startTime,
3429
- restProps = _objectWithoutPropertiesLoose(_ref, _excluded$e);
3019
+ restProps = _objectWithoutPropertiesLoose(_ref, _excluded$g);
3430
3020
  var generateTimes = function generateTimes() {
3431
3021
  var first = new Date();
3432
3022
  first.setHours((startTime == null ? void 0 : startTime.hour) || 0, (startTime == null ? void 0 : startTime.minute) || 0, 0, 0);
@@ -3455,7 +3045,7 @@ var TimePickerNative = function TimePickerNative(_ref) {
3455
3045
  }));
3456
3046
  };
3457
3047
 
3458
- var _excluded$d = ["field", "form", "onChange"];
3048
+ var _excluded$f = ["field", "form", "onChange"];
3459
3049
  var FormikTimePickerNative = function FormikTimePickerNative(_ref) {
3460
3050
  var _ref$field = _ref.field,
3461
3051
  name = _ref$field.name,
@@ -3466,7 +3056,7 @@ var FormikTimePickerNative = function FormikTimePickerNative(_ref) {
3466
3056
  touched = _ref$form.touched,
3467
3057
  errors = _ref$form.errors,
3468
3058
  onChange = _ref.onChange,
3469
- props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
3059
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$f);
3470
3060
  return React.createElement(TimePickerNative, _extends({}, props, {
3471
3061
  name: name,
3472
3062
  onBlur: onBlur,
@@ -3476,7 +3066,7 @@ var FormikTimePickerNative = function FormikTimePickerNative(_ref) {
3476
3066
  }));
3477
3067
  };
3478
3068
 
3479
- var styles$c = {"thumb-size-sm":"Switch-module_thumb-size-sm__0cIei","thumb-size-md":"Switch-module_thumb-size-md__wB9aa","thumb-size-lg":"Switch-module_thumb-size-lg__sD9d9","track-size-sm":"Switch-module_track-size-sm__6dGMb","track-size-md":"Switch-module_track-size-md__XXrdH","track-size-lg":"Switch-module_track-size-lg__Rm3qX","thumb-size-sm-tablet":"Switch-module_thumb-size-sm-tablet__kMoMh","thumb-size-md-tablet":"Switch-module_thumb-size-md-tablet__xWxiX","thumb-size-lg-tablet":"Switch-module_thumb-size-lg-tablet__sFOqF","track-size-sm-tablet":"Switch-module_track-size-sm-tablet__iaxm-","track-size-md-tablet":"Switch-module_track-size-md-tablet__UJUGh","track-size-lg-tablet":"Switch-module_track-size-lg-tablet__Azrsy","thumb-size-sm-desktop":"Switch-module_thumb-size-sm-desktop__8HEdQ","thumb-size-md-desktop":"Switch-module_thumb-size-md-desktop__Zc9eN","thumb-size-lg-desktop":"Switch-module_thumb-size-lg-desktop__nctEB","track-size-sm-desktop":"Switch-module_track-size-sm-desktop__M4yd-","track-size-md-desktop":"Switch-module_track-size-md-desktop__4PYHn","track-size-lg-desktop":"Switch-module_track-size-lg-desktop__3fzJY","thumb-size-sm-hd":"Switch-module_thumb-size-sm-hd__No76h","thumb-size-md-hd":"Switch-module_thumb-size-md-hd__3MR-O","thumb-size-lg-hd":"Switch-module_thumb-size-lg-hd__4AQ8O","track-size-sm-hd":"Switch-module_track-size-sm-hd__gQTpP","track-size-md-hd":"Switch-module_track-size-md-hd__JOSCe","track-size-lg-hd":"Switch-module_track-size-lg-hd__CBQq3","disabled":"Switch-module_disabled__VeSGJ","switch-thumb":"Switch-module_switch-thumb__bTWJz","switch-track":"Switch-module_switch-track__rAmhp","error":"Switch-module_error__OBYv6","switch-input":"Switch-module_switch-input__oQwtt"};
3069
+ var styles$d = {"thumb-size-sm":"Switch-module_thumb-size-sm__0cIei","thumb-size-md":"Switch-module_thumb-size-md__wB9aa","thumb-size-lg":"Switch-module_thumb-size-lg__sD9d9","track-size-sm":"Switch-module_track-size-sm__6dGMb","track-size-md":"Switch-module_track-size-md__XXrdH","track-size-lg":"Switch-module_track-size-lg__Rm3qX","thumb-size-sm-tablet":"Switch-module_thumb-size-sm-tablet__kMoMh","thumb-size-md-tablet":"Switch-module_thumb-size-md-tablet__xWxiX","thumb-size-lg-tablet":"Switch-module_thumb-size-lg-tablet__sFOqF","track-size-sm-tablet":"Switch-module_track-size-sm-tablet__iaxm-","track-size-md-tablet":"Switch-module_track-size-md-tablet__UJUGh","track-size-lg-tablet":"Switch-module_track-size-lg-tablet__Azrsy","thumb-size-sm-desktop":"Switch-module_thumb-size-sm-desktop__8HEdQ","thumb-size-md-desktop":"Switch-module_thumb-size-md-desktop__Zc9eN","thumb-size-lg-desktop":"Switch-module_thumb-size-lg-desktop__nctEB","track-size-sm-desktop":"Switch-module_track-size-sm-desktop__M4yd-","track-size-md-desktop":"Switch-module_track-size-md-desktop__4PYHn","track-size-lg-desktop":"Switch-module_track-size-lg-desktop__3fzJY","thumb-size-sm-hd":"Switch-module_thumb-size-sm-hd__No76h","thumb-size-md-hd":"Switch-module_thumb-size-md-hd__3MR-O","thumb-size-lg-hd":"Switch-module_thumb-size-lg-hd__4AQ8O","track-size-sm-hd":"Switch-module_track-size-sm-hd__gQTpP","track-size-md-hd":"Switch-module_track-size-md-hd__JOSCe","track-size-lg-hd":"Switch-module_track-size-lg-hd__CBQq3","disabled":"Switch-module_disabled__VeSGJ","switch-thumb":"Switch-module_switch-thumb__bTWJz","switch-track":"Switch-module_switch-track__rAmhp","error":"Switch-module_error__OBYv6","switch-input":"Switch-module_switch-input__oQwtt"};
3480
3070
 
3481
3071
  var Switch = function Switch(_ref) {
3482
3072
  var _classNames, _ref2;
@@ -3512,12 +3102,12 @@ var Switch = function Switch(_ref) {
3512
3102
  var handleFocus = function handleFocus(event) {
3513
3103
  if (onFocus) onFocus(event);
3514
3104
  };
3515
- var wrapperClasses = classNames('hyphen-components__variables__form-control', (_classNames = {}, _classNames[styles$c.disabled] = isDisabled, _classNames));
3516
- var trackClasses = classNames.apply(void 0, [styles$c['switch-track']].concat(generateResponsiveClasses('track-size', size).map(function (c) {
3517
- return styles$c[c];
3518
- }), [(_ref2 = {}, _ref2[styles$c.error] = error, _ref2)]));
3519
- var thumbClasses = classNames.apply(void 0, [styles$c['switch-thumb']].concat(generateResponsiveClasses('thumb-size', size).map(function (c) {
3520
- return styles$c[c];
3105
+ var wrapperClasses = classNames('hyphen-components__variables__form-control', (_classNames = {}, _classNames[styles$d.disabled] = isDisabled, _classNames));
3106
+ var trackClasses = classNames.apply(void 0, [styles$d['switch-track']].concat(generateResponsiveClasses('track-size', size).map(function (c) {
3107
+ return styles$d[c];
3108
+ }), [(_ref2 = {}, _ref2[styles$d.error] = error, _ref2)]));
3109
+ var thumbClasses = classNames.apply(void 0, [styles$d['switch-thumb']].concat(generateResponsiveClasses('thumb-size', size).map(function (c) {
3110
+ return styles$d[c];
3521
3111
  })));
3522
3112
  var inputProps = {
3523
3113
  'aria-required': isRequired,
@@ -3532,7 +3122,7 @@ var Switch = function Switch(_ref) {
3532
3122
  onFocus: handleFocus,
3533
3123
  required: isRequired,
3534
3124
  type: 'checkbox',
3535
- className: styles$c['switch-input']
3125
+ className: styles$d['switch-input']
3536
3126
  };
3537
3127
  var labelProps = {
3538
3128
  inputId: id,
@@ -3568,7 +3158,7 @@ var Switch = function Switch(_ref) {
3568
3158
  }, helpText)))), error && error !== true && React.createElement(InputValidationMessage, null, error));
3569
3159
  };
3570
3160
 
3571
- var _excluded$c = ["field", "form"];
3161
+ var _excluded$e = ["field", "form"];
3572
3162
  var FormikSwitch = function FormikSwitch(_ref) {
3573
3163
  var _ref$field = _ref.field,
3574
3164
  name = _ref$field.name,
@@ -3578,7 +3168,7 @@ var FormikSwitch = function FormikSwitch(_ref) {
3578
3168
  _ref$form = _ref.form,
3579
3169
  touched = _ref$form.touched,
3580
3170
  errors = _ref$form.errors,
3581
- props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
3171
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$e);
3582
3172
  return React.createElement(Switch, _extends({
3583
3173
  error: formik.getIn(touched, name) && formik.getIn(errors, name),
3584
3174
  isChecked: value,
@@ -3587,9 +3177,9 @@ var FormikSwitch = function FormikSwitch(_ref) {
3587
3177
  }, props));
3588
3178
  };
3589
3179
 
3590
- var styles$b = {"item":"ToggleGroup-module_item__dIBO0","outline":"ToggleGroup-module_outline__d5OlO"};
3180
+ var styles$c = {"item":"ToggleGroup-module_item__dIBO0","outline":"ToggleGroup-module_outline__d5OlO"};
3591
3181
 
3592
- var _excluded$b = ["className", "variant", "children", "gap", "error"],
3182
+ var _excluded$d = ["className", "variant", "children", "gap", "error"],
3593
3183
  _excluded2$1 = ["className", "children", "value", "variant"];
3594
3184
  var ToggleGroupContext = /*#__PURE__*/React.createContext({
3595
3185
  variant: 'default'
@@ -3602,7 +3192,7 @@ var ToggleGroup = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
3602
3192
  _ref$gap = _ref.gap,
3603
3193
  gap = _ref$gap === void 0 ? 'xs' : _ref$gap,
3604
3194
  error = _ref.error,
3605
- props = _objectWithoutPropertiesLoose(_ref, _excluded$b);
3195
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
3606
3196
  return React.createElement("div", null, React.createElement(ToggleGroupPrimitive__namespace.Root, _extends({
3607
3197
  ref: ref,
3608
3198
  className: classNames('display-flex align-items-center justify-content-start', className, cssShorthandToClasses('g', gap))
@@ -3623,13 +3213,13 @@ var ToggleGroupItem = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
3623
3213
  var appliedVariant = variant || contextVariant;
3624
3214
  return React.createElement(ToggleGroupPrimitive__namespace.Item, _extends({
3625
3215
  ref: ref,
3626
- className: classNames('br-sm display-flex g-sm p-sm', styles$b.item, appliedVariant === 'outline' && styles$b.outline, className),
3216
+ className: classNames('br-sm display-flex g-sm p-sm', styles$c.item, appliedVariant === 'outline' && styles$c.outline, className),
3627
3217
  value: value
3628
3218
  }, props), children);
3629
3219
  });
3630
3220
  ToggleGroupItem.displayName = ToggleGroupPrimitive__namespace.Item.displayName;
3631
3221
 
3632
- var _excluded$a = ["field", "form", "options", "helpText", "label", "children"];
3222
+ var _excluded$c = ["field", "form", "options", "helpText", "label", "children"];
3633
3223
  var FormikToggleGroup = function FormikToggleGroup(_ref) {
3634
3224
  var _ref$field = _ref.field,
3635
3225
  name = _ref$field.name,
@@ -3643,7 +3233,7 @@ var FormikToggleGroup = function FormikToggleGroup(_ref) {
3643
3233
  helpText = _ref.helpText,
3644
3234
  label = _ref.label,
3645
3235
  children = _ref.children,
3646
- props = _objectWithoutPropertiesLoose(_ref, _excluded$a);
3236
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
3647
3237
  return React.createElement(Box, {
3648
3238
  gap: "sm"
3649
3239
  }, (label || helpText) && React.createElement("div", null, label && React.createElement(Box, {
@@ -3667,7 +3257,7 @@ var FormikToggleGroup = function FormikToggleGroup(_ref) {
3667
3257
  })));
3668
3258
  };
3669
3259
 
3670
- var _excluded$9 = ["name", "options", "helpText", "label", "children", "variant", "gap"];
3260
+ var _excluded$b = ["name", "options", "helpText", "label", "children", "variant", "gap"];
3671
3261
  var FormikToggleGroupMulti = function FormikToggleGroupMulti(_ref) {
3672
3262
  var name = _ref.name,
3673
3263
  options = _ref.options,
@@ -3676,7 +3266,7 @@ var FormikToggleGroupMulti = function FormikToggleGroupMulti(_ref) {
3676
3266
  children = _ref.children,
3677
3267
  variant = _ref.variant,
3678
3268
  gap = _ref.gap,
3679
- props = _objectWithoutPropertiesLoose(_ref, _excluded$9);
3269
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$b);
3680
3270
  var _useField = formik.useField(name),
3681
3271
  field = _useField[0],
3682
3272
  meta = _useField[1],
@@ -3710,7 +3300,7 @@ var FormikToggleGroupMulti = function FormikToggleGroupMulti(_ref) {
3710
3300
  }));
3711
3301
  };
3712
3302
 
3713
- var _excluded$8 = ["children", "padding", "direction", "alignItems", "justifyContent", "gap", "style"];
3303
+ var _excluded$a = ["children", "padding", "direction", "alignItems", "justifyContent", "gap", "style"];
3714
3304
  var ModalFooter = function ModalFooter(_ref) {
3715
3305
  var children = _ref.children,
3716
3306
  padding = _ref.padding,
@@ -3723,7 +3313,7 @@ var ModalFooter = function ModalFooter(_ref) {
3723
3313
  _ref$gap = _ref.gap,
3724
3314
  gap = _ref$gap === void 0 ? 'md' : _ref$gap,
3725
3315
  style = _ref.style,
3726
- restProps = _objectWithoutPropertiesLoose(_ref, _excluded$8);
3316
+ restProps = _objectWithoutPropertiesLoose(_ref, _excluded$a);
3727
3317
  return React.createElement(Box, _extends({
3728
3318
  padding: padding,
3729
3319
  direction: direction,
@@ -3736,7 +3326,7 @@ var ModalFooter = function ModalFooter(_ref) {
3736
3326
  }, restProps), children);
3737
3327
  };
3738
3328
 
3739
- var _excluded$7 = ["id", "onDismiss", "direction", "alignItems", "title", "children", "style"];
3329
+ var _excluded$9 = ["id", "onDismiss", "direction", "alignItems", "title", "children", "style"];
3740
3330
  var ModalHeader = function ModalHeader(_ref) {
3741
3331
  var id = _ref.id,
3742
3332
  onDismiss = _ref.onDismiss,
@@ -3748,7 +3338,7 @@ var ModalHeader = function ModalHeader(_ref) {
3748
3338
  title = _ref$title === void 0 ? undefined : _ref$title,
3749
3339
  children = _ref.children,
3750
3340
  style = _ref.style,
3751
- restProps = _objectWithoutPropertiesLoose(_ref, _excluded$7);
3341
+ restProps = _objectWithoutPropertiesLoose(_ref, _excluded$9);
3752
3342
  var justifyContentValue = title || children ? 'space-between' : 'flex-end';
3753
3343
  return React.createElement(Box, _extends({
3754
3344
  direction: direction,
@@ -3777,7 +3367,7 @@ var ModalHeader = function ModalHeader(_ref) {
3777
3367
  }));
3778
3368
  };
3779
3369
 
3780
- var _excluded$6 = ["children", "flex", "overflow", "height"];
3370
+ var _excluded$8 = ["children", "flex", "overflow", "height"];
3781
3371
  var ModalBody = function ModalBody(_ref) {
3782
3372
  var children = _ref.children,
3783
3373
  _ref$flex = _ref.flex,
@@ -3786,7 +3376,7 @@ var ModalBody = function ModalBody(_ref) {
3786
3376
  overflow = _ref$overflow === void 0 ? 'auto' : _ref$overflow,
3787
3377
  _ref$height = _ref.height,
3788
3378
  height = _ref$height === void 0 ? '100' : _ref$height,
3789
- restProps = _objectWithoutPropertiesLoose(_ref, _excluded$6);
3379
+ restProps = _objectWithoutPropertiesLoose(_ref, _excluded$8);
3790
3380
  return React.createElement(Box, _extends({
3791
3381
  flex: flex,
3792
3382
  overflow: overflow,
@@ -3797,9 +3387,9 @@ var ModalBody = function ModalBody(_ref) {
3797
3387
  }, restProps), children);
3798
3388
  };
3799
3389
 
3800
- var styles$a = {"modal-close":"Modal-module_modal-close__1YmMa","modal":"Modal-module_modal__yNG-7","modal-content":"Modal-module_modal-content__GMtBm"};
3390
+ var styles$b = {"modal-close":"Modal-module_modal-close__1YmMa","modal":"Modal-module_modal__yNG-7","modal-content":"Modal-module_modal-content__GMtBm"};
3801
3391
 
3802
- var _excluded$5 = ["ariaLabel", "ariaLabelledBy", "allowPinchZoom", "background", "children", "className", "containerRef", "fullScreenMobile", "initialFocusRef", "isOpen", "maxWidth", "onDismiss", "overflow", "style"];
3392
+ var _excluded$7 = ["ariaLabel", "ariaLabelledBy", "allowPinchZoom", "background", "children", "className", "containerRef", "fullScreenMobile", "initialFocusRef", "isOpen", "maxWidth", "onDismiss", "overflow", "style"];
3803
3393
  var ModalBaseComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
3804
3394
  var _classNames;
3805
3395
  var ariaLabel = _ref.ariaLabel,
@@ -3822,7 +3412,7 @@ var ModalBaseComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
3822
3412
  _ref$overflow = _ref.overflow,
3823
3413
  overflow = _ref$overflow === void 0 ? 'hidden' : _ref$overflow,
3824
3414
  style = _ref.style,
3825
- restProps = _objectWithoutPropertiesLoose(_ref, _excluded$5);
3415
+ restProps = _objectWithoutPropertiesLoose(_ref, _excluded$7);
3826
3416
  var activateFocusLock = React.useCallback(function () {
3827
3417
  setTimeout(function () {
3828
3418
  if (initialFocusRef && initialFocusRef.current) {
@@ -3831,10 +3421,10 @@ var ModalBaseComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
3831
3421
  }, 100);
3832
3422
  }, [initialFocusRef]);
3833
3423
  var maxWidthCss = getDimensionCss('mw', maxWidth);
3834
- var overlayClassnames = classNames(styles$a.overlay, styles$a.modal, {
3424
+ var overlayClassnames = classNames(styles$b.overlay, styles$b.modal, {
3835
3425
  fullscreen: fullScreenMobile
3836
3426
  });
3837
- var contentClassnames = classNames(styles$a['modal-content'], className, maxWidthCss.classes, (_classNames = {}, _classNames["overflow-" + overflow] = overflow, _classNames));
3427
+ var contentClassnames = classNames(styles$b['modal-content'], className, maxWidthCss.classes, (_classNames = {}, _classNames["overflow-" + overflow] = overflow, _classNames));
3838
3428
  if (!isOpen) return null;
3839
3429
  var parentElement = containerRef != null && containerRef.current ? containerRef.current : undefined;
3840
3430
  return React.createElement(FocusLock, {
@@ -4047,9 +3637,31 @@ var Pagination = function Pagination(_ref) {
4047
3637
  }, isTotalVisible && activeListRangeText));
4048
3638
  };
4049
3639
 
3640
+ var styles$a = {"PopoverContent":"Popover-module_PopoverContent__1Ki2o","slideUp":"Popover-module_slideUp__z1H3Z","slideDown":"Popover-module_slideDown__KPRrt","slideLeft":"Popover-module_slideLeft__BVjMh","slideRight":"Popover-module_slideRight__PoOkh"};
3641
+
3642
+ var _excluded$6 = ["className", "align", "sideOffset"];
3643
+ var Popover = PopoverPrimitive__namespace.Root;
3644
+ var PopoverTrigger = PopoverPrimitive__namespace.Trigger;
3645
+ var PopoverAnchor = PopoverPrimitive__namespace.Anchor;
3646
+ var PopoverPortal = PopoverPrimitive__namespace.Portal;
3647
+ var PopoverContent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
3648
+ var className = _ref.className,
3649
+ _ref$align = _ref.align,
3650
+ align = _ref$align === void 0 ? 'center' : _ref$align,
3651
+ _ref$sideOffset = _ref.sideOffset,
3652
+ sideOffset = _ref$sideOffset === void 0 ? 4 : _ref$sideOffset,
3653
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$6);
3654
+ return React.createElement(PopoverPrimitive__namespace.Content, _extends({
3655
+ ref: ref,
3656
+ align: align,
3657
+ sideOffset: sideOffset,
3658
+ className: classNames(styles$a.PopoverContent, className)
3659
+ }, props));
3660
+ });
3661
+
4050
3662
  var styles$9 = {"slider":"RangeInput-module_slider__Z6D68","disabled":"RangeInput-module_disabled__gyu72"};
4051
3663
 
4052
- var _excluded$4 = ["value", "max", "id", "onChange", "className", "isDisabled"];
3664
+ var _excluded$5 = ["value", "max", "id", "onChange", "className", "isDisabled"];
4053
3665
  var RangeInput = function RangeInput(_ref) {
4054
3666
  var _classNames;
4055
3667
  var _ref$value = _ref.value,
@@ -4061,7 +3673,7 @@ var RangeInput = function RangeInput(_ref) {
4061
3673
  className = _ref.className,
4062
3674
  _ref$isDisabled = _ref.isDisabled,
4063
3675
  isDisabled = _ref$isDisabled === void 0 ? false : _ref$isDisabled,
4064
- restProps = _objectWithoutPropertiesLoose(_ref, _excluded$4);
3676
+ restProps = _objectWithoutPropertiesLoose(_ref, _excluded$5);
4065
3677
  var currentProgress = value > 0 ? value / max * 100 : 0;
4066
3678
  return React.createElement("input", _extends({}, restProps, {
4067
3679
  id: id,
@@ -4081,11 +3693,93 @@ var RangeInput = function RangeInput(_ref) {
4081
3693
  }));
4082
3694
  };
4083
3695
 
3696
+ // eslint-disable-next-line import/prefer-default-export
3697
+ var useIsomorphicLayoutEffect = typeof window !== 'undefined' ? React.useLayoutEffect : React.useEffect;
3698
+
3699
+ var ResponsiveContext = /*#__PURE__*/React.createContext({
3700
+ isCreated: false
3701
+ });
3702
+ var ResponsiveProvider = function ResponsiveProvider(_ref) {
3703
+ var _ref$children = _ref.children,
3704
+ children = _ref$children === void 0 ? null : _ref$children,
3705
+ _ref$throttle = _ref.throttle,
3706
+ throttle = _ref$throttle === void 0 ? 50 : _ref$throttle;
3707
+ var _useState = React.useState(0),
3708
+ innerWidth = _useState[0],
3709
+ setInnerWidth = _useState[1];
3710
+ var _useState2 = React.useState(0),
3711
+ innerHeight = _useState2[0],
3712
+ setInnerHeight = _useState2[1];
3713
+ var _useState3 = React.useState(0),
3714
+ outerWidth = _useState3[0],
3715
+ setOuterWidth = _useState3[1];
3716
+ var _useState4 = React.useState(0),
3717
+ outerHeight = _useState4[0],
3718
+ setOuterHeight = _useState4[1];
3719
+ var handleWindowResize = function handleWindowResize() {
3720
+ var _window$innerWidth, _window, _window$innerHeight, _window2, _window$outerWidth, _window3, _window$outerHeight, _window4;
3721
+ setInnerWidth((_window$innerWidth = (_window = window) == null ? void 0 : _window.innerWidth) != null ? _window$innerWidth : 0);
3722
+ setInnerHeight((_window$innerHeight = (_window2 = window) == null ? void 0 : _window2.innerHeight) != null ? _window$innerHeight : 0);
3723
+ setOuterWidth((_window$outerWidth = (_window3 = window) == null ? void 0 : _window3.outerWidth) != null ? _window$outerWidth : 0);
3724
+ setOuterHeight((_window$outerHeight = (_window4 = window) == null ? void 0 : _window4.outerHeight) != null ? _window$outerHeight : 0);
3725
+ };
3726
+ useIsomorphicLayoutEffect(function () {
3727
+ // eslint-disable-line consistent-return
3728
+ if (typeof window !== 'undefined') {
3729
+ // Set values on render if window wasn't available for useState initialization.
3730
+ handleWindowResize();
3731
+ var timeoutId; // eslint-disable-line
3732
+ var throttledResize = function throttledResize() {
3733
+ // prevent execution of previous setTimeout
3734
+ clearTimeout(timeoutId);
3735
+ // change width from the state object after throttle time has elapsed.
3736
+ timeoutId = setTimeout(handleWindowResize, throttle);
3737
+ };
3738
+ window.addEventListener('resize', throttledResize);
3739
+ return function () {
3740
+ window.removeEventListener('resize', throttledResize);
3741
+ clearTimeout(timeoutId);
3742
+ };
3743
+ }
3744
+ }, [throttle]);
3745
+ return React.createElement(ResponsiveContext.Provider, {
3746
+ value: {
3747
+ innerWidth: innerWidth,
3748
+ innerHeight: innerHeight,
3749
+ outerHeight: outerHeight,
3750
+ outerWidth: outerWidth,
3751
+ isCreated: true
3752
+ }
3753
+ }, children);
3754
+ };
3755
+
3756
+ var desktopBreakpoint = /*#__PURE__*/BREAKPOINTS.find(function (b) {
3757
+ return b.name === 'desktop';
3758
+ });
3759
+ var MOBILE_BREAKPOINT = desktopBreakpoint ? desktopBreakpoint.minWidth : 0; // min width in pixels
3760
+ function useIsMobile() {
3761
+ var _React$useState = React__namespace.useState(undefined),
3762
+ isMobile = _React$useState[0],
3763
+ setIsMobile = _React$useState[1];
3764
+ React__namespace.useEffect(function () {
3765
+ var mql = window.matchMedia("(max-width: " + (MOBILE_BREAKPOINT - 1) + "px)");
3766
+ var onChange = function onChange() {
3767
+ setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
3768
+ };
3769
+ mql.addEventListener('change', onChange);
3770
+ setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
3771
+ return function () {
3772
+ return mql.removeEventListener('change', onChange);
3773
+ };
3774
+ }, []);
3775
+ return !!isMobile;
3776
+ }
3777
+
4084
3778
  var styles$8 = {"rail":"Sidebar-module_rail__nWu0Q","group-data-":"Sidebar-module_group-data-__GTJmR"};
4085
3779
 
4086
3780
  var styles$7 = {"TooltipContent":"Tooltip-module_TooltipContent__wLEZU","tooltip-slideUpAndFade":"Tooltip-module_tooltip-slideUpAndFade__Y05jp","tooltip-slideRightAndFade":"Tooltip-module_tooltip-slideRightAndFade__K04p9","tooltip-slideDownAndFade":"Tooltip-module_tooltip-slideDownAndFade__1wMd-","tooltip-slideLeftAndFade":"Tooltip-module_tooltip-slideLeftAndFade__iQ1fp"};
4087
3781
 
4088
- var _excluded$3 = ["className", "sideOffset"];
3782
+ var _excluded$4 = ["className", "sideOffset"];
4089
3783
  var TooltipProvider = TooltipPrimitive__namespace.Provider;
4090
3784
  var Tooltip = TooltipPrimitive__namespace.Root;
4091
3785
  var TooltipTrigger = TooltipPrimitive__namespace.Trigger;
@@ -4094,7 +3788,7 @@ var TooltipContent = /*#__PURE__*/React__namespace.forwardRef(function (_ref, re
4094
3788
  var className = _ref.className,
4095
3789
  _ref$sideOffset = _ref.sideOffset,
4096
3790
  sideOffset = _ref$sideOffset === void 0 ? 4 : _ref$sideOffset,
4097
- props = _objectWithoutPropertiesLoose(_ref, _excluded$3);
3791
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$4);
4098
3792
  return React__namespace.createElement(TooltipPrimitive__namespace.Content, _extends({
4099
3793
  ref: ref,
4100
3794
  sideOffset: sideOffset,
@@ -4103,7 +3797,7 @@ var TooltipContent = /*#__PURE__*/React__namespace.forwardRef(function (_ref, re
4103
3797
  });
4104
3798
  TooltipContent.displayName = TooltipPrimitive__namespace.Content.displayName;
4105
3799
 
4106
- var _excluded$2 = ["defaultOpen", "open", "storageKey", "onOpenChange", "className", "style", "children"],
3800
+ var _excluded$3 = ["defaultOpen", "open", "storageKey", "onOpenChange", "className", "style", "children"],
4107
3801
  _excluded2 = ["side", "collapsible", "className", "children"],
4108
3802
  _excluded3 = ["className", "onClick"],
4109
3803
  _excluded4 = ["className"],
@@ -4141,7 +3835,7 @@ var SidebarProvider = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
4141
3835
  className = _ref.className,
4142
3836
  style = _ref.style,
4143
3837
  children = _ref.children,
4144
- props = _objectWithoutPropertiesLoose(_ref, _excluded$2);
3838
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$3);
4145
3839
  var isMobile = useIsMobile();
4146
3840
  var _useState = React.useState(function () {
4147
3841
  return isMobile ? false : openProp != null ? openProp : defaultOpen;
@@ -4929,6 +4623,50 @@ var Table = function Table(_ref) {
4929
4623
  }))));
4930
4624
  };
4931
4625
 
4626
+ var _excluded$2 = ["children", "defaultTheme", "storageKey"];
4627
+ var initialState = {
4628
+ theme: 'system',
4629
+ setTheme: function setTheme() {
4630
+ return null;
4631
+ }
4632
+ };
4633
+ var ThemeProviderContext = /*#__PURE__*/React.createContext(initialState);
4634
+ function ThemeProvider(_ref) {
4635
+ var children = _ref.children,
4636
+ _ref$defaultTheme = _ref.defaultTheme,
4637
+ defaultTheme = _ref$defaultTheme === void 0 ? 'system' : _ref$defaultTheme,
4638
+ _ref$storageKey = _ref.storageKey,
4639
+ storageKey = _ref$storageKey === void 0 ? 'hyphen-ui-theme' : _ref$storageKey,
4640
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$2);
4641
+ var _useState = React.useState(function () {
4642
+ return localStorage.getItem(storageKey) || defaultTheme;
4643
+ }),
4644
+ theme = _useState[0],
4645
+ _setTheme = _useState[1];
4646
+ React.useEffect(function () {
4647
+ var root = window.document.documentElement;
4648
+ root.classList.remove('light', 'dark');
4649
+ if (theme === 'system') {
4650
+ var systemTheme = window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';
4651
+ root.classList.add(systemTheme);
4652
+ return;
4653
+ }
4654
+ root.classList.add(theme);
4655
+ }, [theme]);
4656
+ var isDarkMode = theme === 'dark' || theme === 'system' && window.matchMedia('(prefers-color-scheme: dark)').matches;
4657
+ var value = {
4658
+ theme: theme,
4659
+ setTheme: function setTheme(theme) {
4660
+ localStorage.setItem(storageKey, theme);
4661
+ _setTheme(theme);
4662
+ },
4663
+ isDarkMode: isDarkMode
4664
+ };
4665
+ return React.createElement(ThemeProviderContext.Provider, _extends({}, props, {
4666
+ value: value
4667
+ }), children);
4668
+ }
4669
+
4932
4670
  var styles$1 = {"toast-notification":"ToastNotification-module_toast-notification__2xiTW","toast-error":"ToastNotification-module_toast-error__4ArAY","toast-dismiss":"ToastNotification-module_toast-dismiss__xxmkb","toast-notification-enter-top":"ToastNotification-module_toast-notification-enter-top__ZZDCr","toast-notification-exit-top":"ToastNotification-module_toast-notification-exit-top__fOIkZ","toast-notification-enter-bottom":"ToastNotification-module_toast-notification-enter-bottom__So3w7","toast-notification-exit-bottom":"ToastNotification-module_toast-notification-exit-bottom__DDthi","toast-notification-exit-left":"ToastNotification-module_toast-notification-exit-left__Fh1hC","toast-notification-exit-right":"ToastNotification-module_toast-notification-exit-right__C1jQ9","toast-notification-fade-in":"ToastNotification-module_toast-notification-fade-in__JlSGi","toast-notification-fade-out":"ToastNotification-module_toast-notification-fade-out__r6q4Q"};
4933
4671
 
4934
4672
  var getAnimationClass = function getAnimationClass(position, visible) {
@@ -5489,6 +5227,105 @@ var Toggle = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
5489
5227
  }, props), children);
5490
5228
  });
5491
5229
 
5230
+ var useWindowSize = function useWindowSize() {
5231
+ var _React$useContext = React.useContext(ResponsiveContext),
5232
+ innerWidth = _React$useContext.innerWidth,
5233
+ innerHeight = _React$useContext.innerHeight,
5234
+ outerHeight = _React$useContext.outerHeight,
5235
+ outerWidth = _React$useContext.outerWidth,
5236
+ isCreated = _React$useContext.isCreated;
5237
+ if (isCreated) {
5238
+ return {
5239
+ innerHeight: innerHeight,
5240
+ innerWidth: innerWidth,
5241
+ outerHeight: outerHeight,
5242
+ outerWidth: outerWidth
5243
+ };
5244
+ }
5245
+ return {};
5246
+ };
5247
+
5248
+ var defaultBreakpoint = {
5249
+ name: 'base',
5250
+ minWidth: 0
5251
+ };
5252
+ var useBreakpoint = function useBreakpoint() {
5253
+ var windowSize = useWindowSize();
5254
+ var _useState = React.useState(_extends({}, defaultBreakpoint)),
5255
+ breakpoint = _useState[0],
5256
+ setBreakpoint = _useState[1];
5257
+ useIsomorphicLayoutEffect(function () {
5258
+ var sortedBreakpoints = [].concat(BREAKPOINTS).sort(function (a, b) {
5259
+ return b.minWidth - a.minWidth;
5260
+ });
5261
+ var activeBreakpoint = windowSize && sortedBreakpoints.find(function (b) {
5262
+ return b.minWidth <= windowSize.innerWidth;
5263
+ });
5264
+ setBreakpoint(activeBreakpoint || _extends({}, defaultBreakpoint));
5265
+ // eslint-disable-next-line react-hooks/exhaustive-deps
5266
+ }, [windowSize.innerWidth, windowSize.innerHeight, windowSize.outerWidth, windowSize.outerHeight]);
5267
+ return {
5268
+ isPhone: breakpoint.name === 'base',
5269
+ isTablet: breakpoint.name === 'tablet',
5270
+ isDesktop: breakpoint.name === 'desktop',
5271
+ isHd: breakpoint.name === 'hd',
5272
+ activeBreakpoint: breakpoint
5273
+ };
5274
+ };
5275
+
5276
+ var useOpenClose = function useOpenClose(props) {
5277
+ if (props === void 0) {
5278
+ props = {};
5279
+ }
5280
+ var _props = props,
5281
+ defaultIsOpen = _props.defaultIsOpen,
5282
+ isOpenProp = _props.isOpen,
5283
+ onCloseProp = _props.onClose,
5284
+ onOpenProp = _props.onOpen;
5285
+ var openCallback = React.useCallback(function () {
5286
+ onOpenProp == null || onOpenProp();
5287
+ }, [onOpenProp]);
5288
+ var closeCallback = React.useCallback(function () {
5289
+ onCloseProp == null || onCloseProp();
5290
+ }, [onCloseProp]);
5291
+ var _useState = React.useState(defaultIsOpen || false),
5292
+ isOpenState = _useState[0],
5293
+ setIsOpen = _useState[1];
5294
+ var isOpen = isOpenProp !== undefined ? isOpenProp : isOpenState;
5295
+ var isControlled = isOpenProp !== undefined;
5296
+ var handleClose = React.useCallback(function () {
5297
+ if (!isControlled) {
5298
+ setIsOpen(false);
5299
+ }
5300
+ closeCallback == null || closeCallback();
5301
+ }, [isControlled, closeCallback]);
5302
+ var handleOpen = React.useCallback(function () {
5303
+ if (!isControlled) {
5304
+ setIsOpen(true);
5305
+ }
5306
+ openCallback == null || openCallback();
5307
+ }, [isControlled, openCallback]);
5308
+ var handleToggle = React.useCallback(function () {
5309
+ if (isOpen) {
5310
+ handleClose();
5311
+ } else {
5312
+ handleOpen();
5313
+ }
5314
+ }, [isOpen, handleOpen, handleClose]);
5315
+ return {
5316
+ isOpen: isOpen,
5317
+ handleClose: handleClose,
5318
+ handleOpen: handleOpen,
5319
+ handleToggle: handleToggle
5320
+ };
5321
+ };
5322
+
5323
+ var useTheme = function useTheme() {
5324
+ var context = React.useContext(ThemeProviderContext);
5325
+ if (context === undefined) throw new Error('useTheme must be used within a ThemeProvider. Be sure your App is wrapped in ThemeProvider.');
5326
+ return context;
5327
+ };
5328
+
5492
5329
  exports.Alert = Alert;
5493
5330
  exports.AspectRatio = AspectRatio;
5494
5331
  exports.Badge = Badge;
@@ -5501,8 +5338,6 @@ exports.CheckboxInput = CheckboxInput;
5501
5338
  exports.Collapsible = Collapsible;
5502
5339
  exports.CollapsibleContent = CollapsibleContent;
5503
5340
  exports.CollapsibleTrigger = CollapsibleTrigger;
5504
- exports.DateInput = DateInput;
5505
- exports.DatePicker = DatePicker;
5506
5341
  exports.Details = Details;
5507
5342
  exports.DetailsBaseComponent = DetailsBaseComponent;
5508
5343
  exports.DetailsSummary = DetailsSummary;