@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
@@ -1,16 +1,13 @@
1
1
  'use client';
2
2
  import * as React from 'react';
3
- import React__default, { forwardRef, Children, createElement, cloneElement, memo, useCallback, useMemo, useLayoutEffect, useEffect, createContext, useState, useContext } from 'react';
3
+ import React__default, { forwardRef, Children, createElement, cloneElement, memo, useCallback, useMemo, useContext, useState, createContext, useLayoutEffect, useEffect } from 'react';
4
4
  import classNames from 'classnames';
5
5
  import icons from '@hyphen/hyphen-design-tokens/build/assets/icons/react';
6
6
  import * as AspectRatioPrimitive from '@radix-ui/react-aspect-ratio';
7
7
  import { Slottable, Slot } from '@radix-ui/react-slot';
8
+ import 'react-day-picker';
9
+ import 'react-day-picker/style.css';
8
10
  import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
9
- import format from 'date-fns/format';
10
- import ReactDatePicker from 'react-datepicker';
11
- import * as PopoverPrimitive from '@radix-ui/react-popover';
12
- import designTokens from '@hyphen/hyphen-design-tokens/build/json/variables';
13
- import '@hyphen/hyphen-design-tokens/build/assets/icons';
14
11
  import ReactModal from 'react-modal';
15
12
  import FocusLock from 'react-focus-lock';
16
13
  import { RemoveScroll } from 'react-remove-scroll';
@@ -20,7 +17,10 @@ import Select, { components } from 'react-select';
20
17
  import AsyncCreatableSelect from 'react-select/async-creatable';
21
18
  import AsyncSelect from 'react-select/async';
22
19
  import CreatableSelect from 'react-select/creatable';
20
+ import designTokens from '@hyphen/hyphen-design-tokens/build/json/variables';
21
+ import '@hyphen/hyphen-design-tokens/build/assets/icons';
23
22
  import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
23
+ import * as PopoverPrimitive from '@radix-ui/react-popover';
24
24
  import * as TooltipPrimitive from '@radix-ui/react-tooltip';
25
25
  import { v4 } from 'uuid';
26
26
  import * as TogglePrimitive from '@radix-ui/react-toggle';
@@ -253,9 +253,9 @@ Component, props, getDefault) {
253
253
  return defaultProps.as || 'div';
254
254
  }
255
255
 
256
- var styles$A = {"box-transition":"Box-module_box-transition__eQx8C"};
256
+ var styles$z = {"box-transition":"Box-module_box-transition__eQx8C"};
257
257
 
258
- 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"];
258
+ 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"];
259
259
  /**
260
260
  * A `<Box>` is a layout component to build UIs with consistent padding and spacing between
261
261
  * elements.
@@ -350,7 +350,7 @@ var Box = /*#__PURE__*/forwardRef(function (_ref, ref) {
350
350
  wordBreak = _ref$wordBreak === void 0 ? undefined : _ref$wordBreak,
351
351
  _ref$zIndex = _ref.zIndex,
352
352
  zIndex = _ref$zIndex === void 0 ? undefined : _ref$zIndex,
353
- restProps = _objectWithoutPropertiesLoose(_ref, _excluded$R);
353
+ restProps = _objectWithoutPropertiesLoose(_ref, _excluded$Q);
354
354
  var heightCss = getDimensionCss('h', height);
355
355
  var widthCss = getDimensionCss('w', width);
356
356
  var maxHeightCss = getDimensionCss('mh', maxHeight);
@@ -399,7 +399,7 @@ var Box = /*#__PURE__*/forwardRef(function (_ref, ref) {
399
399
  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 = {
400
400
  'flex-wrap': isFlexBox && wrap,
401
401
  'flex-nowrap': isFlexBox && wrap === false
402
- }, _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)]));
402
+ }, _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)]));
403
403
  var boxStyles = _extends({}, style, heightCss.styles, maxHeightCss.styles, maxWidthCss.styles, widthCss.styles, minHeightCss.styles, minWidthCss.styles);
404
404
  /**
405
405
  * Creates an object that maps the flex direction to either `right` or `bottom`
@@ -501,14 +501,14 @@ var Box = /*#__PURE__*/forwardRef(function (_ref, ref) {
501
501
  });
502
502
  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'];
503
503
 
504
- var _excluded$Q = ["className", "name", "color", "size"];
504
+ var _excluded$P = ["className", "name", "color", "size"];
505
505
  var Icon = /*#__PURE__*/forwardRef(function (_ref, ref) {
506
506
  var _ref$className = _ref.className,
507
507
  className = _ref$className === void 0 ? undefined : _ref$className,
508
508
  name = _ref.name,
509
509
  color = _ref.color,
510
510
  size = _ref.size,
511
- restProps = _objectWithoutPropertiesLoose(_ref, _excluded$Q);
511
+ restProps = _objectWithoutPropertiesLoose(_ref, _excluded$P);
512
512
  var IconComponent = icons[name];
513
513
  if (!IconComponent) console.error("Icon '" + name + "' not found"); // eslint-disable-line no-console
514
514
  var iconClasses = classNames(className, generateResponsiveClasses('font-color', color), generateResponsiveClasses('font-size', size));
@@ -526,7 +526,7 @@ var Icon = /*#__PURE__*/forwardRef(function (_ref, ref) {
526
526
  }, "???");
527
527
  });
528
528
 
529
- 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"};
529
+ 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"};
530
530
 
531
531
  var ALERT_ICONS_MAP = {
532
532
  "default": {
@@ -546,7 +546,7 @@ var ALERT_ICONS_MAP = {
546
546
  }
547
547
  };
548
548
 
549
- var _excluded$P = ["children", "className", "hasIcon", "isCompact", "message", "onClose", "render", "title", "variant"];
549
+ var _excluded$O = ["children", "className", "hasIcon", "isCompact", "message", "onClose", "render", "title", "variant"];
550
550
  var AlertComponent = function AlertComponent(_ref) {
551
551
  var children = _ref.children,
552
552
  _ref$className = _ref.className,
@@ -565,7 +565,7 @@ var AlertComponent = function AlertComponent(_ref) {
565
565
  title = _ref$title === void 0 ? '' : _ref$title,
566
566
  _ref$variant = _ref.variant,
567
567
  variant = _ref$variant === void 0 ? 'default' : _ref$variant,
568
- restProps = _objectWithoutPropertiesLoose(_ref, _excluded$P);
568
+ restProps = _objectWithoutPropertiesLoose(_ref, _excluded$O);
569
569
  var handleClose = useCallback(function (event) {
570
570
  if (!onClose) return;
571
571
  onClose(event);
@@ -574,13 +574,13 @@ var AlertComponent = function AlertComponent(_ref) {
574
574
  if (event.keyCode === 13) handleClose(event);
575
575
  }, [handleClose]);
576
576
  var alertContainerClasses = useMemo(function () {
577
- return classNames(styles$z["alert__" + variant], styles$z.alert, className);
577
+ return classNames(styles$y["alert__" + variant], styles$y.alert, className);
578
578
  }, [variant, className]);
579
579
  var alertIcon = useMemo(function () {
580
580
  if (!hasIcon) return null;
581
581
  return React__default.createElement(Box, {
582
582
  fontSize: "md",
583
- className: styles$z["alert__icon__" + variant]
583
+ className: styles$y["alert__icon__" + variant]
584
584
  }, React__default.createElement(Icon, {
585
585
  name: ALERT_ICONS_MAP[variant].icon,
586
586
  "data-testid": "alert-icon-" + variant + "-test-id"
@@ -591,7 +591,7 @@ var AlertComponent = function AlertComponent(_ref) {
591
591
  return React__default.createElement(Box, {
592
592
  margin: "0 0 0 auto",
593
593
  color: "secondary",
594
- className: styles$z['close-icon']
594
+ className: styles$y['close-icon']
595
595
  }, React__default.createElement("button", {
596
596
  type: "button",
597
597
  onClick: handleClose,
@@ -613,7 +613,7 @@ var AlertComponent = function AlertComponent(_ref) {
613
613
  as: "h4",
614
614
  fontSize: "sm",
615
615
  fontWeight: "semibold",
616
- className: styles$z['alert-heading']
616
+ className: styles$y['alert-heading']
617
617
  }, title), children != null ? children : message && (typeof message === 'string' ? React__default.createElement("p", null, message) : message));
618
618
  }, [render, message, title, children]);
619
619
  return React__default.createElement(Box, _extends({
@@ -631,9 +631,9 @@ var Alert = /*#__PURE__*/memo(AlertComponent);
631
631
 
632
632
  var AspectRatio = AspectRatioPrimitive.Root;
633
633
 
634
- 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"};
634
+ 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"};
635
635
 
636
- var _excluded$O = ["className", "message", "variant", "size", "children"];
636
+ var _excluded$N = ["className", "message", "variant", "size", "children"];
637
637
  var Badge = /*#__PURE__*/forwardRef(function (_ref, ref) {
638
638
  var _classNames;
639
639
  var _ref$className = _ref.className,
@@ -645,11 +645,11 @@ var Badge = /*#__PURE__*/forwardRef(function (_ref, ref) {
645
645
  _ref$size = _ref.size,
646
646
  size = _ref$size === void 0 ? 'md' : _ref$size,
647
647
  children = _ref.children,
648
- restProps = _objectWithoutPropertiesLoose(_ref, _excluded$O);
648
+ restProps = _objectWithoutPropertiesLoose(_ref, _excluded$N);
649
649
  var responsiveClasses = generateResponsiveClasses('size', size).map(function (c) {
650
- return styles$y[c];
650
+ return styles$x[c];
651
651
  });
652
- var badgeClasses = classNames(styles$y.badge, className, responsiveClasses, (_classNames = {}, _classNames[styles$y[variant]] = variant, _classNames));
652
+ var badgeClasses = classNames(styles$x.badge, className, responsiveClasses, (_classNames = {}, _classNames[styles$x[variant]] = variant, _classNames));
653
653
  return React__default.createElement(Box, _extends({
654
654
  ref: ref,
655
655
  className: badgeClasses,
@@ -659,13 +659,13 @@ var Badge = /*#__PURE__*/forwardRef(function (_ref, ref) {
659
659
  }, restProps), children || message);
660
660
  });
661
661
 
662
- var styles$x = {"spinner":"Spinner-module_spinner__SZoUP","spin":"Spinner-module_spin__Yk0wm"};
662
+ var styles$w = {"spinner":"Spinner-module_spinner__SZoUP","spin":"Spinner-module_spin__Yk0wm"};
663
663
 
664
664
  var Spinner = function Spinner(_ref) {
665
665
  var className = _ref.className,
666
666
  _ref$size = _ref.size,
667
667
  size = _ref$size === void 0 ? 'md' : _ref$size;
668
- var classes = classNames(className, styles$x.spinner);
668
+ var classes = classNames(className, styles$w.spinner);
669
669
  var sizeInPixels = function sizeInPixels() {
670
670
  var pixels;
671
671
  if (size === 'sm') pixels = '12';
@@ -752,9 +752,9 @@ var Spinner = function Spinner(_ref) {
752
752
  }))));
753
753
  };
754
754
 
755
- 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"};
755
+ 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"};
756
756
 
757
- var _excluded$N = ["asChild", "children", "className", "fullWidth", "iconPrefix", "iconSuffix", "isDisabled", "isLoading", "onClick", "onBlur", "onFocus", "shadow", "size", "type", "variant"];
757
+ var _excluded$M = ["asChild", "children", "className", "fullWidth", "iconPrefix", "iconSuffix", "isDisabled", "isLoading", "onClick", "onBlur", "onFocus", "shadow", "size", "type", "variant"];
758
758
  var Button = /*#__PURE__*/forwardRef(function (_ref, ref) {
759
759
  var _classNames;
760
760
  var asChild = _ref.asChild,
@@ -775,12 +775,12 @@ var Button = /*#__PURE__*/forwardRef(function (_ref, ref) {
775
775
  type = _ref$type === void 0 ? 'button' : _ref$type,
776
776
  _ref$variant = _ref.variant,
777
777
  variant = _ref$variant === void 0 ? 'primary' : _ref$variant,
778
- restProps = _objectWithoutPropertiesLoose(_ref, _excluded$N);
778
+ restProps = _objectWithoutPropertiesLoose(_ref, _excluded$M);
779
779
  var disabled = isLoading || isDisabled;
780
780
  var responsiveClasses = variant !== 'link' ? generateResponsiveClasses('size', size).map(function (c) {
781
- return styles$w[c];
781
+ return styles$v[c];
782
782
  }).filter(Boolean) : [];
783
- 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));
783
+ 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));
784
784
  var handleClick = !disabled ? onClick : undefined;
785
785
  var handleBlur = !disabled ? onBlur : undefined;
786
786
  var handleFocus = !disabled ? onFocus : undefined;
@@ -797,18 +797,18 @@ var Button = /*#__PURE__*/forwardRef(function (_ref, ref) {
797
797
  }, !asChild && {
798
798
  type: type
799
799
  }, restProps), isLoading && React__default.createElement(Spinner, {
800
- className: styles$w['spinner-wrapper']
800
+ className: styles$v['spinner-wrapper']
801
801
  }), iconPrefix && React__default.createElement(Icon, {
802
- className: styles$w.label,
802
+ className: styles$v.label,
803
803
  name: iconPrefix,
804
804
  "aria-hidden": "true",
805
805
  focusable: "false",
806
806
  "data-testid": "prefixIcon",
807
807
  size: size === 'md' ? 'sm' : size
808
808
  }), children && React__default.createElement(Slottable, null, asChild ? children : React__default.createElement("span", {
809
- className: styles$w.label
809
+ className: styles$v.label
810
810
  }, children)), iconSuffix && React__default.createElement(Icon, {
811
- className: styles$w.label,
811
+ className: styles$v.label,
812
812
  name: iconSuffix,
813
813
  "aria-hidden": "true",
814
814
  focusable: "false",
@@ -818,7 +818,7 @@ var Button = /*#__PURE__*/forwardRef(function (_ref, ref) {
818
818
  });
819
819
  Button.displayName = 'Button';
820
820
 
821
- var _excluded$M = ["background", "borderColor", "borderWidth", "children", "display", "padding"];
821
+ var _excluded$L = ["background", "borderColor", "borderWidth", "children", "display", "padding"];
822
822
  var CardFooter = function CardFooter(_ref) {
823
823
  var _ref$background = _ref.background,
824
824
  background = _ref$background === void 0 ? 'secondary' : _ref$background,
@@ -832,7 +832,7 @@ var CardFooter = function CardFooter(_ref) {
832
832
  display = _ref$display === void 0 ? 'block' : _ref$display,
833
833
  _ref$padding = _ref.padding,
834
834
  padding = _ref$padding === void 0 ? '2xl' : _ref$padding,
835
- restProps = _objectWithoutPropertiesLoose(_ref, _excluded$M);
835
+ restProps = _objectWithoutPropertiesLoose(_ref, _excluded$L);
836
836
  return React__default.createElement(Box, _extends({
837
837
  display: display,
838
838
  padding: padding,
@@ -851,9 +851,9 @@ var HEADING_DEFAULT_SIZE_MAP = {
851
851
  h6: 'sm'
852
852
  };
853
853
 
854
- var styles$v = {"heading":"Heading-module_heading__zKyv7"};
854
+ var styles$u = {"heading":"Heading-module_heading__zKyv7"};
855
855
 
856
- var _excluded$L = ["as", "children", "className", "color", "size"];
856
+ var _excluded$K = ["as", "children", "className", "color", "size"];
857
857
  var Heading = function Heading(_ref) {
858
858
  var _classNames;
859
859
  var _ref$as = _ref.as,
@@ -862,23 +862,23 @@ var Heading = function Heading(_ref) {
862
862
  className = _ref.className,
863
863
  color = _ref.color,
864
864
  size = _ref.size,
865
- restProps = _objectWithoutPropertiesLoose(_ref, _excluded$L);
865
+ restProps = _objectWithoutPropertiesLoose(_ref, _excluded$K);
866
866
  var element = getElementType(Heading, {
867
867
  as: as
868
868
  });
869
869
  var headingSize = size || HEADING_DEFAULT_SIZE_MAP[as];
870
- var classes = classNames(styles$v.heading, className, generateResponsiveClasses('heading', headingSize), (_classNames = {}, _classNames["font-color-" + color] = color, _classNames));
870
+ var classes = classNames(styles$u.heading, className, generateResponsiveClasses('heading', headingSize), (_classNames = {}, _classNames["font-color-" + color] = color, _classNames));
871
871
  return createElement(element, _extends({
872
872
  className: classes
873
873
  }, restProps), children);
874
874
  };
875
875
 
876
- var _excluded$K = ["children", "title", "description"];
876
+ var _excluded$J = ["children", "title", "description"];
877
877
  var CardHeader = function CardHeader(_ref) {
878
878
  var children = _ref.children,
879
879
  title = _ref.title,
880
880
  description = _ref.description,
881
- restProps = _objectWithoutPropertiesLoose(_ref, _excluded$K);
881
+ restProps = _objectWithoutPropertiesLoose(_ref, _excluded$J);
882
882
  return React__default.createElement(Box, _extends({
883
883
  padding: "2xl",
884
884
  direction: "row",
@@ -899,9 +899,9 @@ var CardHeader = function CardHeader(_ref) {
899
899
  }, description) : description)), children);
900
900
  };
901
901
 
902
- var styles$u = {"card-section-border":"Card-module_card-section-border__OefDX"};
902
+ var styles$t = {"card-section-border":"Card-module_card-section-border__OefDX"};
903
903
 
904
- var _excluded$J = ["background", "borderColor", "borderWidth", "children", "childGap", "gap", "className", "display", "padding", "subdued", "title"];
904
+ var _excluded$I = ["background", "borderColor", "borderWidth", "children", "childGap", "gap", "className", "display", "padding", "subdued", "title"];
905
905
  var CardSection = function CardSection(_ref) {
906
906
  var _classNames;
907
907
  var _ref$background = _ref.background,
@@ -926,7 +926,7 @@ var CardSection = function CardSection(_ref) {
926
926
  subdued = _ref$subdued === void 0 ? undefined : _ref$subdued,
927
927
  _ref$title = _ref.title,
928
928
  title = _ref$title === void 0 ? undefined : _ref$title,
929
- restProps = _objectWithoutPropertiesLoose(_ref, _excluded$J);
929
+ restProps = _objectWithoutPropertiesLoose(_ref, _excluded$I);
930
930
  var renderTitle = typeof title === 'string' ? React__default.createElement(Box, {
931
931
  className: "m-bottom-md"
932
932
  }, React__default.createElement(Box, {
@@ -935,7 +935,7 @@ var CardSection = function CardSection(_ref) {
935
935
  fontSize: "sm",
936
936
  color: "base"
937
937
  }, title)) : title;
938
- var sectionClasses = classNames((_classNames = {}, _classNames[styles$u['card-section-border']] = borderColor === undefined && borderWidth === undefined, _classNames[styles$u['card-subdued']] = subdued, _classNames), className);
938
+ var sectionClasses = classNames((_classNames = {}, _classNames[styles$t['card-section-border']] = borderColor === undefined && borderWidth === undefined, _classNames[styles$t['card-subdued']] = subdued, _classNames), className);
939
939
  return React__default.createElement(Box, _extends({
940
940
  background: background,
941
941
  borderColor: borderColor,
@@ -949,7 +949,7 @@ var CardSection = function CardSection(_ref) {
949
949
  }, children));
950
950
  };
951
951
 
952
- var _excluded$I = ["children", "subdued", "overflow", "display", "width"];
952
+ var _excluded$H = ["children", "subdued", "overflow", "display", "width"];
953
953
  var CardBaseComponent = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
954
954
  var children = _ref.children,
955
955
  subdued = _ref.subdued,
@@ -959,7 +959,7 @@ var CardBaseComponent = /*#__PURE__*/React__default.forwardRef(function (_ref, r
959
959
  display = _ref$display === void 0 ? 'block' : _ref$display,
960
960
  _ref$width = _ref.width,
961
961
  width = _ref$width === void 0 ? '100' : _ref$width,
962
- restProps = _objectWithoutPropertiesLoose(_ref, _excluded$I);
962
+ restProps = _objectWithoutPropertiesLoose(_ref, _excluded$H);
963
963
  return React__default.createElement(Box, _extends({
964
964
  background: subdued ? 'secondary' : 'primary',
965
965
  borderWidth: "sm",
@@ -982,7 +982,7 @@ var Card = /*#__PURE__*/function () {
982
982
  return Card;
983
983
  }();
984
984
 
985
- var _excluded$H = ["className", "error", "isChecked", "isDisabled", "isIndeterminate"];
985
+ var _excluded$G = ["className", "error", "isChecked", "isDisabled", "isIndeterminate"];
986
986
  var CheckboxIcon = function CheckboxIcon(_ref) {
987
987
  var _ref$className = _ref.className,
988
988
  className = _ref$className === void 0 ? undefined : _ref$className,
@@ -994,7 +994,7 @@ var CheckboxIcon = function CheckboxIcon(_ref) {
994
994
  isDisabled = _ref$isDisabled === void 0 ? false : _ref$isDisabled,
995
995
  _ref$isIndeterminate = _ref.isIndeterminate,
996
996
  isIndeterminate = _ref$isIndeterminate === void 0 ? false : _ref$isIndeterminate,
997
- restProps = _objectWithoutPropertiesLoose(_ref, _excluded$H);
997
+ restProps = _objectWithoutPropertiesLoose(_ref, _excluded$G);
998
998
  var color = 'base';
999
999
  var name = 'checkbox-btn';
1000
1000
  if (isChecked) name = 'checkbox-btn-checked';else name = 'checkbox-btn';
@@ -1017,9 +1017,9 @@ var CheckboxIcon = function CheckboxIcon(_ref) {
1017
1017
  }));
1018
1018
  };
1019
1019
 
1020
- 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"};
1020
+ 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"};
1021
1021
 
1022
- var _excluded$G = ["className", "display", "id", "isChecked", "label", "labelledby", "onChange", "error", "isDisabled", "isHidden", "isIndeterminate", "isRequired", "onBlur", "onFocus", "size", "value"];
1022
+ var _excluded$F = ["className", "display", "id", "isChecked", "label", "labelledby", "onChange", "error", "isDisabled", "isHidden", "isIndeterminate", "isRequired", "onBlur", "onFocus", "size", "value"];
1023
1023
  var Checkbox = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
1024
1024
  var _ref2;
1025
1025
  var _ref$className = _ref.className,
@@ -1049,7 +1049,7 @@ var Checkbox = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
1049
1049
  size = _ref$size === void 0 ? 'md' : _ref$size,
1050
1050
  _ref$value = _ref.value,
1051
1051
  value = _ref$value === void 0 ? undefined : _ref$value,
1052
- restProps = _objectWithoutPropertiesLoose(_ref, _excluded$G);
1052
+ restProps = _objectWithoutPropertiesLoose(_ref, _excluded$F);
1053
1053
  var inputRef = React__default.useRef(null);
1054
1054
  React__default.useEffect(function () {
1055
1055
  if (inputRef != null && inputRef.current) {
@@ -1083,11 +1083,11 @@ var Checkbox = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
1083
1083
  value: value
1084
1084
  });
1085
1085
  var responsiveClasses = generateResponsiveClasses('size', size);
1086
- var containerClasses = classNames.apply(void 0, [styles$t.checkbox, className].concat(responsiveClasses.map(function (c) {
1087
- return styles$t[c];
1088
- }), [(_ref2 = {}, _ref2[styles$t.hidden] = isHidden, _ref2)]));
1086
+ var containerClasses = classNames.apply(void 0, [styles$s.checkbox, className].concat(responsiveClasses.map(function (c) {
1087
+ return styles$s[c];
1088
+ }), [(_ref2 = {}, _ref2[styles$s.hidden] = isHidden, _ref2)]));
1089
1089
  var iconClasses = classNames.apply(void 0, responsiveClasses.map(function (c) {
1090
- return styles$t[c];
1090
+ return styles$s[c];
1091
1091
  }));
1092
1092
  return React__default.createElement(Box, _extends({
1093
1093
  display: display,
@@ -1110,35 +1110,35 @@ var Checkbox = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
1110
1110
  }));
1111
1111
  });
1112
1112
 
1113
- var styles$s = {"input-validation-message":"InputValidationMessage-module_input-validation-message__4MMMK"};
1113
+ var styles$r = {"input-validation-message":"InputValidationMessage-module_input-validation-message__4MMMK"};
1114
1114
 
1115
1115
  var InputValidationMessage = function InputValidationMessage(_ref) {
1116
1116
  var children = _ref.children,
1117
1117
  _ref$size = _ref.size,
1118
1118
  size = _ref$size === void 0 ? 'sm' : _ref$size;
1119
- var classes = classNames('hyphen-components__variables__form-control', styles$s['input-validation-message'], 'font-color-danger', "font-size-" + size, 'm-top-sm');
1119
+ var classes = classNames('hyphen-components__variables__form-control', styles$r['input-validation-message'], 'font-color-danger', "font-size-" + size, 'm-top-sm');
1120
1120
  return React__default.createElement("div", {
1121
1121
  className: classes
1122
1122
  }, children);
1123
1123
  };
1124
1124
 
1125
- 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"};
1125
+ 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"};
1126
1126
 
1127
- var styles$q = {"help-text":"HelpText-module_help-text__8WodW"};
1127
+ var styles$p = {"help-text":"HelpText-module_help-text__8WodW"};
1128
1128
 
1129
1129
  var HelpText = /*#__PURE__*/forwardRef(function (_ref, ref) {
1130
1130
  var children = _ref.children,
1131
1131
  className = _ref.className;
1132
1132
  return React__default.createElement(Box, {
1133
1133
  ref: ref,
1134
- className: classNames('hyphen-components__variables__form-control', styles$q['help-text'], className),
1134
+ className: classNames('hyphen-components__variables__form-control', styles$p['help-text'], className),
1135
1135
  display: "block",
1136
1136
  color: "secondary",
1137
1137
  fontSize: "sm"
1138
1138
  }, children);
1139
1139
  });
1140
1140
 
1141
- var _excluded$F = ["children", "inputId", "className", "display", "helpText", "isDisabled", "isFieldRequired", "isRadioInputLabel", "requiredIndicator", "margin", "padding", "size"];
1141
+ var _excluded$E = ["children", "inputId", "className", "display", "helpText", "isDisabled", "isFieldRequired", "isRadioInputLabel", "requiredIndicator", "margin", "padding", "size"];
1142
1142
  var FormLabel = function FormLabel(_ref) {
1143
1143
  var _classNames;
1144
1144
  var children = _ref.children,
@@ -1162,8 +1162,8 @@ var FormLabel = function FormLabel(_ref) {
1162
1162
  padding = _ref$padding === void 0 ? '0' : _ref$padding,
1163
1163
  _ref$size = _ref.size,
1164
1164
  size = _ref$size === void 0 ? 'md' : _ref$size,
1165
- restProps = _objectWithoutPropertiesLoose(_ref, _excluded$F);
1166
- 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));
1165
+ restProps = _objectWithoutPropertiesLoose(_ref, _excluded$E);
1166
+ 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));
1167
1167
  return React__default.createElement(Box, _extends({
1168
1168
  as: "label",
1169
1169
  id: inputId + "Label",
@@ -1175,7 +1175,7 @@ var FormLabel = function FormLabel(_ref) {
1175
1175
  }, restProps), children, isFieldRequired && requiredIndicator && React__default.createElement("span", null, requiredIndicator), helpText && React__default.createElement(HelpText, null, helpText));
1176
1176
  };
1177
1177
 
1178
- var _excluded$E = ["id", "isChecked", "label", "onChange", "className", "error", "hideLabel", "helpText", "isDisabled", "isIndeterminate", "isRequired", "onBlur", "onFocus", "requiredIndicator", "size"];
1178
+ var _excluded$D = ["id", "isChecked", "label", "onChange", "className", "error", "hideLabel", "helpText", "isDisabled", "isIndeterminate", "isRequired", "onBlur", "onFocus", "requiredIndicator", "size"];
1179
1179
  var labelMarginSizeMap = {
1180
1180
  sm: '2xs 0 0 0',
1181
1181
  md: 'xs 0 0 0',
@@ -1220,7 +1220,7 @@ var CheckboxInput = function CheckboxInput(_ref2) {
1220
1220
  requiredIndicator = _ref2$requiredIndicat === void 0 ? ' *' : _ref2$requiredIndicat,
1221
1221
  _ref2$size = _ref2.size,
1222
1222
  size = _ref2$size === void 0 ? 'md' : _ref2$size,
1223
- restProps = _objectWithoutPropertiesLoose(_ref2, _excluded$E);
1223
+ restProps = _objectWithoutPropertiesLoose(_ref2, _excluded$D);
1224
1224
  var handleBlur = function handleBlur(event) {
1225
1225
  if (onBlur) onBlur(event);
1226
1226
  };
@@ -1240,631 +1240,43 @@ var CheckboxInput = function CheckboxInput(_ref2) {
1240
1240
  onFocus: handleFocus,
1241
1241
  isRequired: isRequired,
1242
1242
  size: size,
1243
- label: label,
1244
- className: classNames('hyphen-components__variables__form-control', 'm-right-md'),
1245
- error: error
1246
- };
1247
- var labelProps = {
1248
- inputId: id,
1249
- helpText: helpText,
1250
- isDisabled: isDisabled,
1251
- isFieldRequired: isRequired,
1252
- requiredIndicator: requiredIndicator,
1253
- className: classNames.apply(void 0, cssShorthandToClasses('m', computedResponsiveSize(size)))
1254
- };
1255
- return React__default.createElement(Box, _extends({
1256
- className: className
1257
- }, restProps), React__default.createElement(Box, {
1258
- alignItems: "flex-start",
1259
- direction: "row"
1260
- }, React__default.createElement(Checkbox, _extends({}, checkboxProps, {
1261
- labelledby: id + "Label"
1262
- })), label && !hideLabel && React__default.createElement(FormLabel, _extends({}, labelProps), label)), error && error !== true && React__default.createElement(InputValidationMessage, null, error));
1263
- };
1264
-
1265
- var Collapsible = CollapsiblePrimitive.Root;
1266
- var CollapsibleTrigger = CollapsiblePrimitive.CollapsibleTrigger;
1267
- var CollapsibleContent = CollapsiblePrimitive.CollapsibleContent;
1268
-
1269
- var styles$p = {};
1270
-
1271
- var _excluded$D = ["children", "dayClassName", "maxDate", "minDate", "monthsShown", "openToDate", "startDate", "selected", "selectsRange", "showTwoColumnMonthYearPicker", "showFullMonthYearPicker", "showMonthYearPicker", "className", "formatWeekDay"];
1272
- var DatePicker = function DatePicker(_ref) {
1273
- var _ref$children = _ref.children,
1274
- children = _ref$children === void 0 ? null : _ref$children,
1275
- _ref$dayClassName = _ref.dayClassName,
1276
- dayClassName = _ref$dayClassName === void 0 ? undefined : _ref$dayClassName,
1277
- _ref$maxDate = _ref.maxDate,
1278
- maxDate = _ref$maxDate === void 0 ? undefined : _ref$maxDate,
1279
- _ref$minDate = _ref.minDate,
1280
- minDate = _ref$minDate === void 0 ? undefined : _ref$minDate,
1281
- _ref$monthsShown = _ref.monthsShown,
1282
- monthsShown = _ref$monthsShown === void 0 ? undefined : _ref$monthsShown,
1283
- _ref$openToDate = _ref.openToDate,
1284
- openToDate = _ref$openToDate === void 0 ? undefined : _ref$openToDate,
1285
- _ref$startDate = _ref.startDate,
1286
- startDate = _ref$startDate === void 0 ? undefined : _ref$startDate,
1287
- _ref$selected = _ref.selected,
1288
- selected = _ref$selected === void 0 ? undefined : _ref$selected,
1289
- _ref$selectsRange = _ref.selectsRange,
1290
- selectsRange = _ref$selectsRange === void 0 ? undefined : _ref$selectsRange,
1291
- _ref$showTwoColumnMon = _ref.showTwoColumnMonthYearPicker,
1292
- showTwoColumnMonthYearPicker = _ref$showTwoColumnMon === void 0 ? false : _ref$showTwoColumnMon,
1293
- _ref$showFullMonthYea = _ref.showFullMonthYearPicker,
1294
- showFullMonthYearPicker = _ref$showFullMonthYea === void 0 ? false : _ref$showFullMonthYea,
1295
- _ref$showMonthYearPic = _ref.showMonthYearPicker,
1296
- showMonthYearPicker = _ref$showMonthYearPic === void 0 ? false : _ref$showMonthYearPic,
1297
- _ref$className = _ref.className,
1298
- className = _ref$className === void 0 ? undefined : _ref$className,
1299
- _ref$formatWeekDay = _ref.formatWeekDay,
1300
- formatWeekDay = _ref$formatWeekDay === void 0 ? function (formattedDate) {
1301
- return formattedDate[0];
1302
- } : _ref$formatWeekDay,
1303
- restProps = _objectWithoutPropertiesLoose(_ref, _excluded$D);
1304
- var datePickerClasses = classNames(styles$p['react-datepicker'], className);
1305
- return React__default.createElement(ReactDatePicker, _extends({
1306
- inline: true,
1307
- calendarClassName: datePickerClasses,
1308
- formatWeekDay: formatWeekDay,
1309
- maxDate: maxDate,
1310
- minDate: minDate,
1311
- monthsShown: monthsShown,
1312
- openToDate: openToDate,
1313
- selected: selected,
1314
- startDate: startDate,
1315
- selectsRange: selectsRange,
1316
- showTwoColumnMonthYearPicker: showTwoColumnMonthYearPicker,
1317
- showFullMonthYearPicker: showFullMonthYearPicker,
1318
- showMonthYearPicker: showMonthYearPicker,
1319
- dayClassName: dayClassName
1320
- }, restProps), children);
1321
- };
1322
-
1323
- var _excluded$C = ["label", "hideLabel", "children", "error", "id", "isRequired", "helpText", "isDisabled", "requiredIndicator", "width"];
1324
- var FormControl = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
1325
- var label = _ref.label,
1326
- hideLabel = _ref.hideLabel,
1327
- children = _ref.children,
1328
- error = _ref.error,
1329
- id = _ref.id,
1330
- isRequired = _ref.isRequired,
1331
- helpText = _ref.helpText,
1332
- isDisabled = _ref.isDisabled,
1333
- requiredIndicator = _ref.requiredIndicator,
1334
- _ref$width = _ref.width,
1335
- width = _ref$width === void 0 ? '100' : _ref$width,
1336
- restProps = _objectWithoutPropertiesLoose(_ref, _excluded$C);
1337
- var labelProps = {
1338
- inputId: id,
1339
- helpText: helpText,
1340
- margin: '0 0 xs 0',
1341
- isDisabled: isDisabled,
1342
- isFieldRequired: isRequired,
1343
- requiredIndicator: requiredIndicator
1344
- };
1345
- return React__default.createElement(Box, _extends({
1346
- width: width,
1347
- ref: ref
1348
- }, restProps), label && !hideLabel && React__default.createElement(FormLabel, _extends({}, labelProps), label), children, error && error !== true && React__default.createElement(InputValidationMessage, null, error));
1349
- });
1350
-
1351
- // eslint-disable-next-line import/prefer-default-export
1352
- function getAutoCompleteValue(value) {
1353
- if (!value || typeof value !== 'boolean' && typeof value !== 'string') {
1354
- return 'off';
1355
- }
1356
- if (typeof value === 'boolean' && value) {
1357
- return 'on';
1358
- }
1359
- return value;
1360
- }
1361
-
1362
- 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"};
1363
-
1364
- 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"];
1365
- var TextInput = /*#__PURE__*/forwardRef(function (_ref, ref) {
1366
- var _ref2;
1367
- var id = _ref.id,
1368
- label = _ref.label,
1369
- onChange = _ref.onChange,
1370
- value = _ref.value,
1371
- _ref$autoComplete = _ref.autoComplete,
1372
- autoComplete = _ref$autoComplete === void 0 ? false : _ref$autoComplete,
1373
- _ref$autoFocus = _ref.autoFocus,
1374
- autoFocus = _ref$autoFocus === void 0 ? false : _ref$autoFocus,
1375
- _ref$error = _ref.error,
1376
- error = _ref$error === void 0 ? false : _ref$error,
1377
- helpText = _ref.helpText,
1378
- _ref$hideLabel = _ref.hideLabel,
1379
- hideLabel = _ref$hideLabel === void 0 ? false : _ref$hideLabel,
1380
- _ref$inputProps = _ref.inputProps,
1381
- inputProps = _ref$inputProps === void 0 ? {} : _ref$inputProps,
1382
- _ref$isDisabled = _ref.isDisabled,
1383
- isDisabled = _ref$isDisabled === void 0 ? false : _ref$isDisabled,
1384
- _ref$isRequired = _ref.isRequired,
1385
- isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired,
1386
- _ref$maxLength = _ref.maxLength,
1387
- maxLength = _ref$maxLength === void 0 ? undefined : _ref$maxLength,
1388
- _ref$name = _ref.name,
1389
- name = _ref$name === void 0 ? '' : _ref$name,
1390
- _ref$onBlur = _ref.onBlur,
1391
- onBlur = _ref$onBlur === void 0 ? undefined : _ref$onBlur,
1392
- _ref$onClear = _ref.onClear,
1393
- onClear = _ref$onClear === void 0 ? undefined : _ref$onClear,
1394
- _ref$onFocus = _ref.onFocus,
1395
- onFocus = _ref$onFocus === void 0 ? undefined : _ref$onFocus,
1396
- _ref$prefix = _ref.prefix,
1397
- prefix = _ref$prefix === void 0 ? undefined : _ref$prefix,
1398
- _ref$placeholder = _ref.placeholder,
1399
- placeholder = _ref$placeholder === void 0 ? '' : _ref$placeholder,
1400
- _ref$requiredIndicato = _ref.requiredIndicator,
1401
- requiredIndicator = _ref$requiredIndicato === void 0 ? ' *' : _ref$requiredIndicato,
1402
- _ref$suffix = _ref.suffix,
1403
- suffix = _ref$suffix === void 0 ? undefined : _ref$suffix,
1404
- _ref$size = _ref.size,
1405
- size = _ref$size === void 0 ? 'md' : _ref$size,
1406
- _ref$type = _ref.type,
1407
- type = _ref$type === void 0 ? 'text' : _ref$type,
1408
- restProps = _objectWithoutPropertiesLoose(_ref, _excluded$B);
1409
- var responsiveClasses = generateResponsiveClasses('size', size);
1410
- var inputWrapperClasses = classNames.apply(void 0, ['hyphen-components__variables__form-control', styles$o['text-input-wrapper']].concat(responsiveClasses.map(function (c) {
1411
- return styles$o[c];
1412
- }), [(_ref2 = {}, _ref2[styles$o.error] = error, _ref2[styles$o.disabled] = isDisabled, _ref2[styles$o['is-clearable']] = onClear, _ref2)]));
1413
- var clearBtnClasses = classNames(styles$o['clear-button'], styles$o.md);
1414
- var renderClearIcon = function renderClearIcon() {
1415
- var handleKeyPress = function handleKeyPress(event) {
1416
- if (event.keyCode === 13 && onClear) onClear(event);
1417
- };
1418
- return React__default.createElement("button", {
1419
- type: "button",
1420
- onClick: onClear,
1421
- onKeyUp: handleKeyPress,
1422
- className: clearBtnClasses,
1423
- "data-testid": "text-input-clear-button",
1424
- "aria-label": "clear input"
1425
- }, React__default.createElement(Icon, {
1426
- name: "remove",
1427
- className: "display-block"
1428
- }));
1429
- };
1430
- var computedInputProps = _extends({}, inputProps, {
1431
- // These are spread first so that we don't have top level props overwritten by the user.
1432
- 'aria-required': isRequired,
1433
- 'aria-invalid': !!error,
1434
- 'aria-label': label,
1435
- 'aria-labelledby': label && !hideLabel ? id + "Label" : undefined,
1436
- autoComplete: getAutoCompleteValue(autoComplete),
1437
- autoFocus: autoFocus,
1438
- disabled: isDisabled,
1439
- id: id,
1440
- maxLength: maxLength,
1441
- name: name,
1442
- onBlur: onBlur,
1443
- onChange: onChange,
1444
- onFocus: onFocus,
1445
- placeholder: placeholder,
1446
- required: isRequired,
1447
- type: type,
1448
- value: value,
1449
- className: classNames(inputProps.className, {
1450
- // 'p-left-xs p-left-xs-tablet p-left-xs-desktop p-left-xs-hd': prefix,
1451
- // 'p-right-xs p-right-xs-tablet p-right-xs-desktop p-right-xs-hd': suffix,
1452
- 'p-h-0': !suffix && !prefix
1453
- })
1454
- });
1455
- return React__default.createElement(FormControl, _extends({
1456
- helpText: helpText,
1457
- error: error,
1458
- label: label,
1459
- id: id,
1460
- hideLabel: hideLabel,
1461
- isDisabled: isDisabled,
1462
- isRequired: isRequired,
1463
- requiredIndicator: requiredIndicator,
1464
- ref: ref
1465
- }, restProps), React__default.createElement(Box, {
1466
- direction: "row",
1467
- overflow: "hidden",
1468
- className: inputWrapperClasses
1469
- }, prefix && React__default.createElement(Box, {
1470
- color: "secondary",
1471
- background: "secondary",
1472
- className: classNames(styles$o.prefix, 'ws-nowrap')
1473
- }, prefix), React__default.createElement(Box, _extends({
1474
- as: "input"
1475
- }, computedInputProps)), !!onClear && !!value && renderClearIcon(), suffix && React__default.createElement(Box, {
1476
- color: "secondary",
1477
- background: "secondary",
1478
- className: classNames(styles$o.suffix, 'ws-nowrap')
1479
- }, suffix)));
1480
- });
1481
-
1482
- 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"};
1483
-
1484
- var _excluded$A = ["className", "align", "sideOffset"];
1485
- var Popover = PopoverPrimitive.Root;
1486
- var PopoverTrigger = PopoverPrimitive.Trigger;
1487
- var PopoverAnchor = PopoverPrimitive.Anchor;
1488
- var PopoverPortal = PopoverPrimitive.Portal;
1489
- var PopoverContent = /*#__PURE__*/forwardRef(function (_ref, ref) {
1490
- var className = _ref.className,
1491
- _ref$align = _ref.align,
1492
- align = _ref$align === void 0 ? 'center' : _ref$align,
1493
- _ref$sideOffset = _ref.sideOffset,
1494
- sideOffset = _ref$sideOffset === void 0 ? 4 : _ref$sideOffset,
1495
- props = _objectWithoutPropertiesLoose(_ref, _excluded$A);
1496
- return React__default.createElement(PopoverPrimitive.Content, _extends({
1497
- ref: ref,
1498
- align: align,
1499
- sideOffset: sideOffset,
1500
- className: classNames(styles$n.PopoverContent, className)
1501
- }, props));
1502
- });
1503
-
1504
- // export const BREAKPOINT_VALUES = Object.values(designTokens.size.breakpoint);
1505
- var BREAKPOINTS = /*#__PURE__*/[].concat(Object.entries(designTokens.size.breakpoint), [['base', {
1506
- value: '0'
1507
- }]]).map(function (_ref) {
1508
- var name = _ref[0],
1509
- data = _ref[1];
1510
- if (typeof data === 'object' && data !== null && 'value' in data) {
1511
- return {
1512
- name: name,
1513
- minWidth: parseInt(data['value'], 10)
1514
- };
1515
- }
1516
- return undefined;
1517
- }).filter(function (breakpoint) {
1518
- return breakpoint !== undefined;
1519
- });
1520
- var Z_INDEX_VALUES = designTokens.size['z-index'];
1521
- // export const BOX_SHADOW_VALUES = designTokens.size['box-shadow'];
1522
-
1523
- // eslint-disable-next-line import/prefer-default-export
1524
- var useIsomorphicLayoutEffect = typeof window !== 'undefined' ? useLayoutEffect : useEffect;
1525
-
1526
- var ResponsiveContext = /*#__PURE__*/createContext({
1527
- isCreated: false
1528
- });
1529
- var ResponsiveProvider = function ResponsiveProvider(_ref) {
1530
- var _ref$children = _ref.children,
1531
- children = _ref$children === void 0 ? null : _ref$children,
1532
- _ref$throttle = _ref.throttle,
1533
- throttle = _ref$throttle === void 0 ? 50 : _ref$throttle;
1534
- var _useState = useState(0),
1535
- innerWidth = _useState[0],
1536
- setInnerWidth = _useState[1];
1537
- var _useState2 = useState(0),
1538
- innerHeight = _useState2[0],
1539
- setInnerHeight = _useState2[1];
1540
- var _useState3 = useState(0),
1541
- outerWidth = _useState3[0],
1542
- setOuterWidth = _useState3[1];
1543
- var _useState4 = useState(0),
1544
- outerHeight = _useState4[0],
1545
- setOuterHeight = _useState4[1];
1546
- var handleWindowResize = function handleWindowResize() {
1547
- var _window$innerWidth, _window, _window$innerHeight, _window2, _window$outerWidth, _window3, _window$outerHeight, _window4;
1548
- setInnerWidth((_window$innerWidth = (_window = window) == null ? void 0 : _window.innerWidth) != null ? _window$innerWidth : 0);
1549
- setInnerHeight((_window$innerHeight = (_window2 = window) == null ? void 0 : _window2.innerHeight) != null ? _window$innerHeight : 0);
1550
- setOuterWidth((_window$outerWidth = (_window3 = window) == null ? void 0 : _window3.outerWidth) != null ? _window$outerWidth : 0);
1551
- setOuterHeight((_window$outerHeight = (_window4 = window) == null ? void 0 : _window4.outerHeight) != null ? _window$outerHeight : 0);
1552
- };
1553
- useIsomorphicLayoutEffect(function () {
1554
- // eslint-disable-line consistent-return
1555
- if (typeof window !== 'undefined') {
1556
- // Set values on render if window wasn't available for useState initialization.
1557
- handleWindowResize();
1558
- var timeoutId; // eslint-disable-line
1559
- var throttledResize = function throttledResize() {
1560
- // prevent execution of previous setTimeout
1561
- clearTimeout(timeoutId);
1562
- // change width from the state object after throttle time has elapsed.
1563
- timeoutId = setTimeout(handleWindowResize, throttle);
1564
- };
1565
- window.addEventListener('resize', throttledResize);
1566
- return function () {
1567
- window.removeEventListener('resize', throttledResize);
1568
- clearTimeout(timeoutId);
1569
- };
1570
- }
1571
- }, [throttle]);
1572
- return React__default.createElement(ResponsiveContext.Provider, {
1573
- value: {
1574
- innerWidth: innerWidth,
1575
- innerHeight: innerHeight,
1576
- outerHeight: outerHeight,
1577
- outerWidth: outerWidth,
1578
- isCreated: true
1579
- }
1580
- }, children);
1581
- };
1582
-
1583
- var useWindowSize = function useWindowSize() {
1584
- var _React$useContext = React__default.useContext(ResponsiveContext),
1585
- innerWidth = _React$useContext.innerWidth,
1586
- innerHeight = _React$useContext.innerHeight,
1587
- outerHeight = _React$useContext.outerHeight,
1588
- outerWidth = _React$useContext.outerWidth,
1589
- isCreated = _React$useContext.isCreated;
1590
- if (isCreated) {
1591
- return {
1592
- innerHeight: innerHeight,
1593
- innerWidth: innerWidth,
1594
- outerHeight: outerHeight,
1595
- outerWidth: outerWidth
1596
- };
1597
- }
1598
- return {};
1599
- };
1600
-
1601
- var defaultBreakpoint = {
1602
- name: 'base',
1603
- minWidth: 0
1604
- };
1605
- var useBreakpoint = function useBreakpoint() {
1606
- var windowSize = useWindowSize();
1607
- var _useState = useState(_extends({}, defaultBreakpoint)),
1608
- breakpoint = _useState[0],
1609
- setBreakpoint = _useState[1];
1610
- useIsomorphicLayoutEffect(function () {
1611
- var sortedBreakpoints = [].concat(BREAKPOINTS).sort(function (a, b) {
1612
- return b.minWidth - a.minWidth;
1613
- });
1614
- var activeBreakpoint = windowSize && sortedBreakpoints.find(function (b) {
1615
- return b.minWidth <= windowSize.innerWidth;
1616
- });
1617
- setBreakpoint(activeBreakpoint || _extends({}, defaultBreakpoint));
1618
- // eslint-disable-next-line react-hooks/exhaustive-deps
1619
- }, [windowSize.innerWidth, windowSize.innerHeight, windowSize.outerWidth, windowSize.outerHeight]);
1620
- return {
1621
- isPhone: breakpoint.name === 'base',
1622
- isTablet: breakpoint.name === 'tablet',
1623
- isDesktop: breakpoint.name === 'desktop',
1624
- isHd: breakpoint.name === 'hd',
1625
- activeBreakpoint: breakpoint
1626
- };
1627
- };
1628
-
1629
- var desktopBreakpoint = /*#__PURE__*/BREAKPOINTS.find(function (b) {
1630
- return b.name === 'desktop';
1631
- });
1632
- var MOBILE_BREAKPOINT = desktopBreakpoint ? desktopBreakpoint.minWidth : 0; // min width in pixels
1633
- function useIsMobile() {
1634
- var _React$useState = React.useState(undefined),
1635
- isMobile = _React$useState[0],
1636
- setIsMobile = _React$useState[1];
1637
- React.useEffect(function () {
1638
- var mql = window.matchMedia("(max-width: " + (MOBILE_BREAKPOINT - 1) + "px)");
1639
- var onChange = function onChange() {
1640
- setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
1641
- };
1642
- mql.addEventListener('change', onChange);
1643
- setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
1644
- return function () {
1645
- return mql.removeEventListener('change', onChange);
1646
- };
1647
- }, []);
1648
- return !!isMobile;
1649
- }
1650
-
1651
- var useOpenClose = function useOpenClose(props) {
1652
- if (props === void 0) {
1653
- props = {};
1654
- }
1655
- var _props = props,
1656
- defaultIsOpen = _props.defaultIsOpen,
1657
- isOpenProp = _props.isOpen,
1658
- onCloseProp = _props.onClose,
1659
- onOpenProp = _props.onOpen;
1660
- var openCallback = useCallback(function () {
1661
- onOpenProp == null || onOpenProp();
1662
- }, [onOpenProp]);
1663
- var closeCallback = useCallback(function () {
1664
- onCloseProp == null || onCloseProp();
1665
- }, [onCloseProp]);
1666
- var _useState = useState(defaultIsOpen || false),
1667
- isOpenState = _useState[0],
1668
- setIsOpen = _useState[1];
1669
- var isOpen = isOpenProp !== undefined ? isOpenProp : isOpenState;
1670
- var isControlled = isOpenProp !== undefined;
1671
- var handleClose = useCallback(function () {
1672
- if (!isControlled) {
1673
- setIsOpen(false);
1674
- }
1675
- closeCallback == null || closeCallback();
1676
- }, [isControlled, closeCallback]);
1677
- var handleOpen = useCallback(function () {
1678
- if (!isControlled) {
1679
- setIsOpen(true);
1680
- }
1681
- openCallback == null || openCallback();
1682
- }, [isControlled, openCallback]);
1683
- var handleToggle = useCallback(function () {
1684
- if (isOpen) {
1685
- handleClose();
1686
- } else {
1687
- handleOpen();
1688
- }
1689
- }, [isOpen, handleOpen, handleClose]);
1690
- return {
1691
- isOpen: isOpen,
1692
- handleClose: handleClose,
1693
- handleOpen: handleOpen,
1694
- handleToggle: handleToggle
1695
- };
1696
- };
1697
-
1698
- var _excluded$z = ["children", "defaultTheme", "storageKey"];
1699
- var initialState = {
1700
- theme: 'system',
1701
- setTheme: function setTheme() {
1702
- return null;
1703
- }
1704
- };
1705
- var ThemeProviderContext = /*#__PURE__*/createContext(initialState);
1706
- function ThemeProvider(_ref) {
1707
- var children = _ref.children,
1708
- _ref$defaultTheme = _ref.defaultTheme,
1709
- defaultTheme = _ref$defaultTheme === void 0 ? 'system' : _ref$defaultTheme,
1710
- _ref$storageKey = _ref.storageKey,
1711
- storageKey = _ref$storageKey === void 0 ? 'hyphen-ui-theme' : _ref$storageKey,
1712
- props = _objectWithoutPropertiesLoose(_ref, _excluded$z);
1713
- var _useState = useState(function () {
1714
- return localStorage.getItem(storageKey) || defaultTheme;
1715
- }),
1716
- theme = _useState[0],
1717
- _setTheme = _useState[1];
1718
- useEffect(function () {
1719
- var root = window.document.documentElement;
1720
- root.classList.remove('light', 'dark');
1721
- if (theme === 'system') {
1722
- var systemTheme = window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';
1723
- root.classList.add(systemTheme);
1724
- return;
1725
- }
1726
- root.classList.add(theme);
1727
- }, [theme]);
1728
- var isDarkMode = theme === 'dark' || theme === 'system' && window.matchMedia('(prefers-color-scheme: dark)').matches;
1729
- var value = {
1730
- theme: theme,
1731
- setTheme: function setTheme(theme) {
1732
- localStorage.setItem(storageKey, theme);
1733
- _setTheme(theme);
1734
- },
1735
- isDarkMode: isDarkMode
1736
- };
1737
- return React__default.createElement(ThemeProviderContext.Provider, _extends({}, props, {
1738
- value: value
1739
- }), children);
1740
- }
1741
-
1742
- var useTheme = function useTheme() {
1743
- var context = React__default.useContext(ThemeProviderContext);
1744
- if (context === undefined) throw new Error('useTheme must be used within a ThemeProvider. Be sure your App is wrapped in ThemeProvider.');
1745
- return context;
1746
- };
1747
-
1748
- var defaultDatePickerProps = {
1749
- selected: null,
1750
- selectsRange: false
1751
- };
1752
- var defaultPopoverProps = {
1753
- align: 'start',
1754
- side: 'bottom'
1755
- };
1756
- var defaultTextInputProps = {
1757
- label: 'Select Date'
1758
- };
1759
- var DateInput = function DateInput(_ref) {
1760
- var _datePickerProps$sele, _datePickerProps$sele2, _popoverProps$side, _popoverProps$align;
1761
- var datePickerProps = _ref.datePickerProps,
1762
- textInputProps = _ref.textInputProps,
1763
- _ref$dateFormat = _ref.dateFormat,
1764
- dateFormat = _ref$dateFormat === void 0 ? 'MM/dd/yyyy' : _ref$dateFormat,
1765
- _ref$dateOptions = _ref.dateOptions,
1766
- dateOptions = _ref$dateOptions === void 0 ? undefined : _ref$dateOptions,
1767
- _ref$popoverProps = _ref.popoverProps,
1768
- popoverProps = _ref$popoverProps === void 0 ? _extends({}, defaultPopoverProps) : _ref$popoverProps;
1769
- var _useOpenClose = useOpenClose(),
1770
- isOpen = _useOpenClose.isOpen,
1771
- handleClose = _useOpenClose.handleClose,
1772
- handleOpen = _useOpenClose.handleOpen;
1773
- // Internal state for selected date if not controlled
1774
- var isControlled = datePickerProps.selected !== undefined;
1775
- var _useState = useState(Array.isArray(datePickerProps.selected) ? (_datePickerProps$sele = datePickerProps.selected[0]) != null ? _datePickerProps$sele : null : (_datePickerProps$sele2 = datePickerProps.selected) != null ? _datePickerProps$sele2 : null),
1776
- internalSelected = _useState[0],
1777
- setInternalSelected = _useState[1];
1778
- // Use controlled or internal state
1779
- var selectedDate = isControlled ? datePickerProps.selected : internalSelected;
1780
- var mergedDatePickerProps = _extends({}, defaultDatePickerProps, datePickerProps, {
1781
- selected: selectedDate
1782
- });
1783
- var mergedPopoverProps = _extends({}, defaultPopoverProps, popoverProps, {
1784
- side: (_popoverProps$side = popoverProps == null ? void 0 : popoverProps.side) != null ? _popoverProps$side : defaultPopoverProps.side,
1785
- align: (_popoverProps$align = popoverProps == null ? void 0 : popoverProps.align) != null ? _popoverProps$align : defaultPopoverProps.align,
1786
- onInteractOutside: handleClose
1787
- });
1788
- var mergedTextInputProps = _extends({}, defaultTextInputProps, textInputProps);
1789
- var getTextInputValue = function getTextInputValue() {
1790
- var selectsRange = mergedDatePickerProps.selectsRange,
1791
- startDate = mergedDatePickerProps.startDate,
1792
- endDate = mergedDatePickerProps.endDate,
1793
- selected = mergedDatePickerProps.selected;
1794
- // If selectsRange and selected is an array, use it for start/end
1795
- var rangeStart = startDate;
1796
- var rangeEnd = endDate;
1797
- if (selectsRange && Array.isArray(selected)) {
1798
- var _selected$, _selected$2;
1799
- rangeStart = (_selected$ = selected[0]) != null ? _selected$ : null;
1800
- rangeEnd = (_selected$2 = selected[1]) != null ? _selected$2 : null;
1801
- }
1802
- var formattedStartDate = rangeStart ? format(rangeStart, dateFormat, dateOptions) : '';
1803
- var formattedEndDate = rangeEnd ? format(rangeEnd, dateFormat, dateOptions) : '';
1804
- var formattedSelectedDate = selected && !selectsRange && !Array.isArray(selected) ? format(selected, dateFormat, dateOptions) : '';
1805
- if (selectsRange) {
1806
- return "" + formattedStartDate + (formattedStartDate || formattedEndDate ? ' - ' : '') + formattedEndDate;
1807
- }
1808
- return formattedSelectedDate;
1243
+ label: label,
1244
+ className: classNames('hyphen-components__variables__form-control', 'm-right-md'),
1245
+ error: error
1809
1246
  };
1810
- var handleDatePickerChange = function handleDatePickerChange(date, event) {
1811
- if (datePickerProps.onChange) {
1812
- datePickerProps.onChange(date, event);
1813
- }
1814
- if (!isControlled) {
1815
- // If not controlled, update internal state
1816
- if (Array.isArray(date)) {
1817
- var _date$;
1818
- setInternalSelected((_date$ = date[0]) != null ? _date$ : null);
1819
- } else {
1820
- setInternalSelected(date);
1821
- }
1822
- }
1823
- // Close popover when a date is selected (single) or when end date is selected (range)
1824
- if (mergedDatePickerProps.selectsRange) {
1825
- if (Array.isArray(date) && date[0] && date[1]) {
1826
- handleClose();
1827
- }
1828
- } else if (date) {
1829
- handleClose();
1830
- }
1247
+ var labelProps = {
1248
+ inputId: id,
1249
+ helpText: helpText,
1250
+ isDisabled: isDisabled,
1251
+ isFieldRequired: isRequired,
1252
+ requiredIndicator: requiredIndicator,
1253
+ className: classNames.apply(void 0, cssShorthandToClasses('m', computedResponsiveSize(size)))
1831
1254
  };
1832
- return React__default.createElement(Popover, {
1833
- open: isOpen
1834
- }, React__default.createElement(PopoverTrigger, {
1835
- asChild: true
1836
- }, React__default.createElement(TextInput, _extends({
1837
- id: mergedTextInputProps.id,
1838
- name: mergedTextInputProps.name,
1839
- label: mergedTextInputProps.label,
1840
- value: getTextInputValue(),
1841
- readOnly: true,
1842
- onClick: handleOpen,
1843
- inputProps: {
1844
- className: 'text-align-left'
1845
- },
1846
- type: "text",
1847
- onChange: function onChange() {
1848
- return null;
1849
- }
1850
- }, mergedTextInputProps))), React__default.createElement(PopoverPortal, null, React__default.createElement(PopoverContent, _extends({}, mergedPopoverProps), React__default.createElement(DatePicker, _extends({}, mergedDatePickerProps, {
1851
- onChange: handleDatePickerChange,
1852
- selected: selectedDate,
1853
- selectsRange: mergedDatePickerProps.selectsRange
1854
- })))));
1255
+ return React__default.createElement(Box, _extends({
1256
+ className: className
1257
+ }, restProps), React__default.createElement(Box, {
1258
+ alignItems: "flex-start",
1259
+ direction: "row"
1260
+ }, React__default.createElement(Checkbox, _extends({}, checkboxProps, {
1261
+ labelledby: id + "Label"
1262
+ })), label && !hideLabel && React__default.createElement(FormLabel, _extends({}, labelProps), label)), error && error !== true && React__default.createElement(InputValidationMessage, null, error));
1855
1263
  };
1856
1264
 
1265
+ var Collapsible = CollapsiblePrimitive.Root;
1266
+ var CollapsibleTrigger = CollapsiblePrimitive.CollapsibleTrigger;
1267
+ var CollapsibleContent = CollapsiblePrimitive.CollapsibleContent;
1268
+
1857
1269
  var ENTER = 13;
1858
1270
  var SPACE = 32;
1859
1271
 
1860
- var _excluded$y = ["children", "display", "isDetailsOpen", "onToggle"];
1272
+ var _excluded$C = ["children", "display", "isDetailsOpen", "onToggle"];
1861
1273
  var DetailsSummary = function DetailsSummary(_ref) {
1862
1274
  var children = _ref.children,
1863
1275
  _ref$display = _ref.display,
1864
1276
  display = _ref$display === void 0 ? 'block' : _ref$display,
1865
1277
  isDetailsOpen = _ref.isDetailsOpen,
1866
1278
  onToggle = _ref.onToggle,
1867
- restProps = _objectWithoutPropertiesLoose(_ref, _excluded$y);
1279
+ restProps = _objectWithoutPropertiesLoose(_ref, _excluded$C);
1868
1280
  var handleClick = function handleClick(event) {
1869
1281
  // Needed to avoid default `details` behavior on a click event and keep this as controlled component.
1870
1282
  event.preventDefault();
@@ -1900,17 +1312,17 @@ var DetailsSummary = function DetailsSummary(_ref) {
1900
1312
  }), children);
1901
1313
  };
1902
1314
 
1903
- var styles$m = {"details-reset":"Details-module_details-reset__HWtSD"};
1315
+ var styles$o = {"details-reset":"Details-module_details-reset__HWtSD"};
1904
1316
 
1905
- var _excluded$x = ["children", "className", "display", "isOpen"];
1317
+ var _excluded$B = ["children", "className", "display", "isOpen"];
1906
1318
  var DetailsBaseComponent = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
1907
1319
  var children = _ref.children,
1908
1320
  className = _ref.className,
1909
1321
  _ref$display = _ref.display,
1910
1322
  display = _ref$display === void 0 ? 'block' : _ref$display,
1911
1323
  isOpen = _ref.isOpen,
1912
- restProps = _objectWithoutPropertiesLoose(_ref, _excluded$x);
1913
- var detailsClasses = classNames(className, styles$m['details-reset'], styles$m.details);
1324
+ restProps = _objectWithoutPropertiesLoose(_ref, _excluded$B);
1325
+ var detailsClasses = classNames(className, styles$o['details-reset'], styles$o.details);
1914
1326
  return React__default.createElement(Box, _extends({
1915
1327
  as: "details",
1916
1328
  className: detailsClasses,
@@ -1927,9 +1339,9 @@ var Details = /*#__PURE__*/function () {
1927
1339
  return Details;
1928
1340
  }();
1929
1341
 
1930
- 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"};
1342
+ 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"};
1931
1343
 
1932
- var _excluded$w = ["defaultIsOpen", "open", "onOpenChange", "className", "children"],
1344
+ var _excluded$A = ["defaultIsOpen", "open", "onOpenChange", "className", "children"],
1933
1345
  _excluded2$3 = ["asChild", "onClick"],
1934
1346
  _excluded3$2 = ["className"],
1935
1347
  _excluded4$2 = ["className"],
@@ -1950,7 +1362,7 @@ var DrawerProvider = /*#__PURE__*/forwardRef(function (_ref, ref) {
1950
1362
  setOpenProp = _ref.onOpenChange,
1951
1363
  className = _ref.className,
1952
1364
  children = _ref.children,
1953
- props = _objectWithoutPropertiesLoose(_ref, _excluded$w);
1365
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$A);
1954
1366
  var _useState = useState(openProp != null ? openProp : defaultIsOpen),
1955
1367
  _open = _useState[0],
1956
1368
  _setOpen = _useState[1];
@@ -2069,8 +1481,8 @@ var Drawer = /*#__PURE__*/forwardRef(function (_ref3, ref) {
2069
1481
  }, [initialFocusRef]);
2070
1482
  var dynamicWidth = width;
2071
1483
  var dynamicStyle = (_dynamicStyle = {}, _dynamicStyle['--drawer-width'] = dynamicWidth, _dynamicStyle);
2072
- 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));
2073
- var contentClassnames = classNames(styles$l['drawer-content'], styles$l[placement], (_classNames2 = {}, _classNames2[styles$l['hide-overlay']] = hideOverlay, _classNames2));
1484
+ 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));
1485
+ var contentClassnames = classNames(styles$n['drawer-content'], styles$n[placement], (_classNames2 = {}, _classNames2[styles$n['hide-overlay']] = hideOverlay, _classNames2));
2074
1486
  var parentElement = containerRef != null && containerRef.current ? containerRef.current : document.body;
2075
1487
  var isDisabledFocusLock = hideOverlay || dangerouslyBypassFocusLock;
2076
1488
  var isDisabledRemoveScroll = hideOverlay || dangerouslyBypassScrollLock;
@@ -2180,7 +1592,7 @@ var DrawerContent = /*#__PURE__*/React__default.forwardRef(function (_ref7, ref)
2180
1592
  }, props));
2181
1593
  });
2182
1594
 
2183
- var _excluded$v = ["className", "inset"],
1595
+ var _excluded$z = ["className", "inset"],
2184
1596
  _excluded2$2 = ["className", "sideOffset"],
2185
1597
  _excluded3$1 = ["className", "inset"],
2186
1598
  _excluded4$1 = ["className"],
@@ -2196,7 +1608,7 @@ var DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
2196
1608
  var DropdownMenuItem = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
2197
1609
  var className = _ref.className,
2198
1610
  inset = _ref.inset,
2199
- props = _objectWithoutPropertiesLoose(_ref, _excluded$v);
1611
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$z);
2200
1612
  return React__default.createElement(DropdownMenuPrimitive.Item, _extends({
2201
1613
  ref: ref,
2202
1614
  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)
@@ -2276,7 +1688,35 @@ var DropdownMenuSubContent = /*#__PURE__*/React__default.forwardRef(function (_r
2276
1688
  });
2277
1689
  DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
2278
1690
 
2279
- var _excluded$u = ["field", "form", "onChange", "id", "label"];
1691
+ var _excluded$y = ["label", "hideLabel", "children", "error", "id", "isRequired", "helpText", "isDisabled", "requiredIndicator", "width"];
1692
+ var FormControl = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
1693
+ var label = _ref.label,
1694
+ hideLabel = _ref.hideLabel,
1695
+ children = _ref.children,
1696
+ error = _ref.error,
1697
+ id = _ref.id,
1698
+ isRequired = _ref.isRequired,
1699
+ helpText = _ref.helpText,
1700
+ isDisabled = _ref.isDisabled,
1701
+ requiredIndicator = _ref.requiredIndicator,
1702
+ _ref$width = _ref.width,
1703
+ width = _ref$width === void 0 ? '100' : _ref$width,
1704
+ restProps = _objectWithoutPropertiesLoose(_ref, _excluded$y);
1705
+ var labelProps = {
1706
+ inputId: id,
1707
+ helpText: helpText,
1708
+ margin: '0 0 xs 0',
1709
+ isDisabled: isDisabled,
1710
+ isFieldRequired: isRequired,
1711
+ requiredIndicator: requiredIndicator
1712
+ };
1713
+ return React__default.createElement(Box, _extends({
1714
+ width: width,
1715
+ ref: ref
1716
+ }, restProps), label && !hideLabel && React__default.createElement(FormLabel, _extends({}, labelProps), label), children, error && error !== true && React__default.createElement(InputValidationMessage, null, error));
1717
+ });
1718
+
1719
+ var _excluded$x = ["field", "form", "onChange", "id", "label"];
2280
1720
  var FormikCheckboxInput = function FormikCheckboxInput(_ref) {
2281
1721
  var _ref$field = _ref.field,
2282
1722
  name = _ref$field.name,
@@ -2289,7 +1729,7 @@ var FormikCheckboxInput = function FormikCheckboxInput(_ref) {
2289
1729
  onChange = _ref.onChange,
2290
1730
  id = _ref.id,
2291
1731
  label = _ref.label,
2292
- props = _objectWithoutPropertiesLoose(_ref, _excluded$u);
1732
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$x);
2293
1733
  return React__default.createElement(CheckboxInput, _extends({}, props, {
2294
1734
  id: id,
2295
1735
  label: label,
@@ -2300,7 +1740,7 @@ var FormikCheckboxInput = function FormikCheckboxInput(_ref) {
2300
1740
  }));
2301
1741
  };
2302
1742
 
2303
- var _excluded$t = ["className", "isSelected", "isDisabled", "error"];
1743
+ var _excluded$w = ["className", "isSelected", "isDisabled", "error"];
2304
1744
  var RadioInputIcon = function RadioInputIcon(_ref) {
2305
1745
  var _ref$className = _ref.className,
2306
1746
  className = _ref$className === void 0 ? undefined : _ref$className,
@@ -2310,7 +1750,7 @@ var RadioInputIcon = function RadioInputIcon(_ref) {
2310
1750
  isDisabled = _ref$isDisabled === void 0 ? false : _ref$isDisabled,
2311
1751
  _ref$error = _ref.error,
2312
1752
  error = _ref$error === void 0 ? null : _ref$error,
2313
- restProps = _objectWithoutPropertiesLoose(_ref, _excluded$t);
1753
+ restProps = _objectWithoutPropertiesLoose(_ref, _excluded$w);
2314
1754
  var color = 'secondary';
2315
1755
  var name = 'radio-btn-unchecked';
2316
1756
  if (isSelected && isDisabled) {
@@ -2332,7 +1772,7 @@ var RadioInputIcon = function RadioInputIcon(_ref) {
2332
1772
  }));
2333
1773
  };
2334
1774
 
2335
- 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"};
1775
+ 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"};
2336
1776
 
2337
1777
  var RadioInput = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
2338
1778
  var _classNames;
@@ -2356,7 +1796,7 @@ var RadioInput = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
2356
1796
  _ref$size = _ref.size,
2357
1797
  size = _ref$size === void 0 ? 'md' : _ref$size;
2358
1798
  var responsiveClasses = classNames.apply(void 0, generateResponsiveClasses('size', size).map(function (c) {
2359
- return styles$k[c];
1799
+ return styles$m[c];
2360
1800
  }));
2361
1801
  var labelProps = {
2362
1802
  inputId: option.id,
@@ -2365,7 +1805,7 @@ var RadioInput = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
2365
1805
  isRadioInputLabel: true,
2366
1806
  justifyContent: 'center'
2367
1807
  };
2368
- var containerClasses = classNames('hyphen-components__variables__form-control', className, styles$k['radio-container'], responsiveClasses, (_classNames = {}, _classNames[styles$k.hidden] = isHidden, _classNames));
1808
+ var containerClasses = classNames('hyphen-components__variables__form-control', className, styles$m['radio-container'], responsiveClasses, (_classNames = {}, _classNames[styles$m.hidden] = isHidden, _classNames));
2369
1809
  return React__default.createElement(React__default.Fragment, null, option && React__default.createElement(Box, {
2370
1810
  className: containerClasses,
2371
1811
  key: option.id,
@@ -2401,9 +1841,9 @@ var RadioInput = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
2401
1841
  }), option.label && React__default.createElement(FormLabel, _extends({}, labelProps), option.label)));
2402
1842
  });
2403
1843
 
2404
- 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-"};
1844
+ 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-"};
2405
1845
 
2406
- var _excluded$s = ["name", "onChange", "options", "className", "description", "direction", "error", "isDisabled", "isRequired", "onBlur", "onFocus", "requiredIndicator", "size", "title", "value"];
1846
+ var _excluded$v = ["name", "onChange", "options", "className", "description", "direction", "error", "isDisabled", "isRequired", "onBlur", "onFocus", "requiredIndicator", "size", "title", "value"];
2407
1847
  var RadioGroup = function RadioGroup(_ref) {
2408
1848
  var _classNames;
2409
1849
  var name = _ref.name,
@@ -2433,20 +1873,20 @@ var RadioGroup = function RadioGroup(_ref) {
2433
1873
  title = _ref$title === void 0 ? undefined : _ref$title,
2434
1874
  _ref$value = _ref.value,
2435
1875
  value = _ref$value === void 0 ? undefined : _ref$value,
2436
- restProps = _objectWithoutPropertiesLoose(_ref, _excluded$s);
2437
- var groupClasses = classNames('hyphen-components__variables__form-control', className, (_classNames = {}, _classNames[styles$j.loading] = error, _classNames));
1876
+ restProps = _objectWithoutPropertiesLoose(_ref, _excluded$v);
1877
+ var groupClasses = classNames('hyphen-components__variables__form-control', className, (_classNames = {}, _classNames[styles$l.loading] = error, _classNames));
2438
1878
  return React__default.createElement("div", _extends({
2439
- className: classNames(styles$j['radio-group'], groupClasses)
1879
+ className: classNames(styles$l['radio-group'], groupClasses)
2440
1880
  }, restProps), React__default.createElement("fieldset", {
2441
- className: styles$j.fieldset
1881
+ className: styles$l.fieldset
2442
1882
  }, (title || description) && React__default.createElement("legend", {
2443
- className: styles$j.legend
1883
+ className: styles$l.legend
2444
1884
  }, title, isRequired && React__default.createElement("span", null, requiredIndicator), description && React__default.createElement("div", {
2445
- className: styles$j.description
1885
+ className: styles$l.description
2446
1886
  }, description)), React__default.createElement(Box, {
2447
1887
  direction: direction,
2448
1888
  gap: "sm",
2449
- className: styles$j.options
1889
+ className: styles$l.options
2450
1890
  }, options && options.map(function (option) {
2451
1891
  return React__default.createElement(RadioInput, {
2452
1892
  key: option.id,
@@ -2463,7 +1903,7 @@ var RadioGroup = function RadioGroup(_ref) {
2463
1903
  }))), error && typeof error !== 'boolean' && React__default.createElement(InputValidationMessage, null, error));
2464
1904
  };
2465
1905
 
2466
- var _excluded$r = ["field", "form", "onChange", "options"];
1906
+ var _excluded$u = ["field", "form", "onChange", "options"];
2467
1907
  var FormikRadioGroup = function FormikRadioGroup(_ref) {
2468
1908
  var _ref$field = _ref.field,
2469
1909
  name = _ref$field.name,
@@ -2475,7 +1915,7 @@ var FormikRadioGroup = function FormikRadioGroup(_ref) {
2475
1915
  errors = _ref$form.errors,
2476
1916
  onChange = _ref.onChange,
2477
1917
  options = _ref.options,
2478
- props = _objectWithoutPropertiesLoose(_ref, _excluded$r);
1918
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$u);
2479
1919
  return React__default.createElement(RadioGroup, _extends({}, props, {
2480
1920
  options: options,
2481
1921
  name: name,
@@ -2486,6 +1926,17 @@ var FormikRadioGroup = function FormikRadioGroup(_ref) {
2486
1926
  }));
2487
1927
  };
2488
1928
 
1929
+ // eslint-disable-next-line import/prefer-default-export
1930
+ function getAutoCompleteValue(value) {
1931
+ if (!value || typeof value !== 'boolean' && typeof value !== 'string') {
1932
+ return 'off';
1933
+ }
1934
+ if (typeof value === 'boolean' && value) {
1935
+ return 'on';
1936
+ }
1937
+ return value;
1938
+ }
1939
+
2489
1940
  // eslint-disable-next-line import/prefer-default-export
2490
1941
  var getColumnKeys = function getColumnKeys(columns) {
2491
1942
  var INTERNAL_KEY_PREFIX = 'columnKeyPrefix';
@@ -2531,9 +1982,28 @@ valOrFunction, arg) {
2531
1982
  return isFunction(valOrFunction) ? valOrFunction(arg) : valOrFunction;
2532
1983
  };
2533
1984
 
2534
- 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"};
1985
+ // export const BREAKPOINT_VALUES = Object.values(designTokens.size.breakpoint);
1986
+ var BREAKPOINTS = /*#__PURE__*/[].concat(Object.entries(designTokens.size.breakpoint), [['base', {
1987
+ value: '0'
1988
+ }]]).map(function (_ref) {
1989
+ var name = _ref[0],
1990
+ data = _ref[1];
1991
+ if (typeof data === 'object' && data !== null && 'value' in data) {
1992
+ return {
1993
+ name: name,
1994
+ minWidth: parseInt(data['value'], 10)
1995
+ };
1996
+ }
1997
+ return undefined;
1998
+ }).filter(function (breakpoint) {
1999
+ return breakpoint !== undefined;
2000
+ });
2001
+ var Z_INDEX_VALUES = designTokens.size['z-index'];
2002
+ // export const BOX_SHADOW_VALUES = designTokens.size['box-shadow'];
2003
+
2004
+ 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"};
2535
2005
 
2536
- 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"];
2006
+ 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"];
2537
2007
  function SelectInput(props) {
2538
2008
  var _ref, _classNames;
2539
2009
  var id = props.id,
@@ -2576,7 +2046,7 @@ function SelectInput(props) {
2576
2046
  requiredIndicator = _props$requiredIndica === void 0 ? ' *' : _props$requiredIndica,
2577
2047
  _props$size = props.size,
2578
2048
  size = _props$size === void 0 ? 'md' : _props$size,
2579
- restProps = _objectWithoutPropertiesLoose(props, _excluded$q);
2049
+ restProps = _objectWithoutPropertiesLoose(props, _excluded$t);
2580
2050
  var handleChange = function handleChange(values) {
2581
2051
  var simulatedEventPayloadType = {
2582
2052
  target: {
@@ -2594,13 +2064,13 @@ function SelectInput(props) {
2594
2064
  };
2595
2065
  var responsiveClasses = generateResponsiveClasses('size', size);
2596
2066
  var wrapperClasses = classNames.apply(void 0, ['hyphen-components__variables__form-control', 'select-input-wrapper', className].concat(responsiveClasses.map(function (c) {
2597
- return styles$i[c];
2598
- }), [(_ref = {}, _ref[styles$i.disabled] = isDisabled, _ref)]));
2599
- var inputClasses = classNames('react-select', (_classNames = {}, _classNames[styles$i.error] = error, _classNames));
2067
+ return styles$k[c];
2068
+ }), [(_ref = {}, _ref[styles$k.disabled] = isDisabled, _ref)]));
2069
+ var inputClasses = classNames('react-select', (_classNames = {}, _classNames[styles$k.error] = error, _classNames));
2600
2070
  var labelProps = {
2601
2071
  inputId: id,
2602
2072
  helpText: helpText,
2603
- className: styles$i['select-input-label'],
2073
+ className: styles$k['select-input-label'],
2604
2074
  isDisabled: isDisabled,
2605
2075
  isFieldRequired: isRequired,
2606
2076
  requiredIndicator: requiredIndicator
@@ -2649,7 +2119,7 @@ function SelectInput(props) {
2649
2119
  })), error && typeof error !== 'boolean' && React__default.createElement(InputValidationMessage, null, error));
2650
2120
  }
2651
2121
 
2652
- var _excluded$p = ["field", "form", "onChange", "id", "label", "options", "error"];
2122
+ var _excluded$s = ["field", "form", "onChange", "id", "label", "options", "error"];
2653
2123
  var FormikSelectInput = function FormikSelectInput(_ref) {
2654
2124
  var _ref$field = _ref.field,
2655
2125
  name = _ref$field.name,
@@ -2664,7 +2134,7 @@ var FormikSelectInput = function FormikSelectInput(_ref) {
2664
2134
  label = _ref.label,
2665
2135
  options = _ref.options,
2666
2136
  errorProp = _ref.error,
2667
- props = _objectWithoutPropertiesLoose(_ref, _excluded$p);
2137
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$s);
2668
2138
  var errorMessage;
2669
2139
  var error = errorProp != null ? errorProp : getIn(touched, name) && getIn(errors, name);
2670
2140
  if (typeof error === 'string') {
@@ -2687,7 +2157,7 @@ var FormikSelectInput = function FormikSelectInput(_ref) {
2687
2157
  }, props));
2688
2158
  };
2689
2159
 
2690
- 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"};
2160
+ 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"};
2691
2161
 
2692
2162
  var SelectInputInset = /*#__PURE__*/forwardRef(function (_ref, ref) {
2693
2163
  var _ref2;
@@ -2729,10 +2199,10 @@ var SelectInputInset = /*#__PURE__*/forwardRef(function (_ref, ref) {
2729
2199
  };
2730
2200
  var optionsWithPlaceholder = [_extends({}, placeholderOption)].concat(options);
2731
2201
  var responsiveClasses = generateResponsiveClasses('size', size);
2732
- var inputWrapperClasses = classNames.apply(void 0, ['hyphen-components__variables__form-control', styles$h['text-input-wrapper']].concat(responsiveClasses.map(function (c) {
2733
- return styles$h[c];
2734
- }), [(_ref2 = {}, _ref2[styles$h.error] = error, _ref2[styles$h.disabled] = isDisabled, _ref2[styles$h['is-clearable']] = onClear, _ref2)]));
2735
- var clearBtnClasses = classNames(styles$h['clear-button'], styles$h.md);
2202
+ var inputWrapperClasses = classNames.apply(void 0, ['hyphen-components__variables__form-control', styles$j['text-input-wrapper']].concat(responsiveClasses.map(function (c) {
2203
+ return styles$j[c];
2204
+ }), [(_ref2 = {}, _ref2[styles$j.error] = error, _ref2[styles$j.disabled] = isDisabled, _ref2[styles$j['is-clearable']] = onClear, _ref2)]));
2205
+ var clearBtnClasses = classNames(styles$j['clear-button'], styles$j.md);
2736
2206
  var renderClearIcon = function renderClearIcon() {
2737
2207
  var handleKeyPress = function handleKeyPress(event) {
2738
2208
  if (event.keyCode === 13 && onClear) onClear(event);
@@ -2787,12 +2257,12 @@ var SelectInputInset = /*#__PURE__*/forwardRef(function (_ref, ref) {
2787
2257
  }, option.label);
2788
2258
  })), !!onClear && !!value && renderClearIcon(), React__default.createElement("label", {
2789
2259
  htmlFor: id,
2790
- className: styles$h['select-input-label'],
2260
+ className: styles$j['select-input-label'],
2791
2261
  id: id + "Label"
2792
2262
  }, label, isRequired && requiredIndicator && React__default.createElement("span", null, requiredIndicator))), helpText && React__default.createElement(HelpText, null, helpText), error && error !== true && React__default.createElement(InputValidationMessage, null, error));
2793
2263
  });
2794
2264
 
2795
- var _excluded$o = ["field", "form", "onChange", "id", "label", "options"];
2265
+ var _excluded$r = ["field", "form", "onChange", "id", "label", "options"];
2796
2266
  var FormikSelectInputInset = function FormikSelectInputInset(_ref) {
2797
2267
  var _ref$field = _ref.field,
2798
2268
  name = _ref$field.name,
@@ -2806,7 +2276,7 @@ var FormikSelectInputInset = function FormikSelectInputInset(_ref) {
2806
2276
  id = _ref.id,
2807
2277
  label = _ref.label,
2808
2278
  options = _ref.options,
2809
- props = _objectWithoutPropertiesLoose(_ref, _excluded$o);
2279
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$r);
2810
2280
  return React__default.createElement(SelectInputInset, _extends({}, props, {
2811
2281
  id: id,
2812
2282
  label: label,
@@ -2819,7 +2289,7 @@ var FormikSelectInputInset = function FormikSelectInputInset(_ref) {
2819
2289
  }));
2820
2290
  };
2821
2291
 
2822
- 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"};
2292
+ 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"};
2823
2293
 
2824
2294
  var TextareaInputInset = /*#__PURE__*/forwardRef(function (_ref, ref) {
2825
2295
  var _ref2, _classNames;
@@ -2862,9 +2332,9 @@ var TextareaInputInset = /*#__PURE__*/forwardRef(function (_ref, ref) {
2862
2332
  _ref$type = _ref.type,
2863
2333
  type = _ref$type === void 0 ? 'text' : _ref$type;
2864
2334
  var responsiveClasses = generateResponsiveClasses('size', size);
2865
- var inputWrapperClasses = classNames.apply(void 0, ['hyphen-components__variables__form-control', styles$g['text-input-wrapper']].concat(responsiveClasses.map(function (c) {
2866
- return styles$g[c];
2867
- }), [(_ref2 = {}, _ref2[styles$g.disabled] = isDisabled, _ref2)]));
2335
+ var inputWrapperClasses = classNames.apply(void 0, ['hyphen-components__variables__form-control', styles$i['text-input-wrapper']].concat(responsiveClasses.map(function (c) {
2336
+ return styles$i[c];
2337
+ }), [(_ref2 = {}, _ref2[styles$i.disabled] = isDisabled, _ref2)]));
2868
2338
  var computedInputProps = _extends({}, inputProps, {
2869
2339
  // These are spread first so that we don't have top level props overwritten by the user.
2870
2340
  'aria-required': isRequired,
@@ -2873,7 +2343,7 @@ var TextareaInputInset = /*#__PURE__*/forwardRef(function (_ref, ref) {
2873
2343
  'aria-labelledby': label ? id + "Label" : undefined,
2874
2344
  autoComplete: getAutoCompleteValue(autoComplete),
2875
2345
  autoFocus: autoFocus,
2876
- className: classNames(styles$g["textarea-resize-" + resize], (_classNames = {}, _classNames[styles$g.error] = error, _classNames)),
2346
+ className: classNames(styles$i["textarea-resize-" + resize], (_classNames = {}, _classNames[styles$i.error] = error, _classNames)),
2877
2347
  disabled: isDisabled,
2878
2348
  id: id,
2879
2349
  maxLength: maxLength,
@@ -2899,12 +2369,12 @@ var TextareaInputInset = /*#__PURE__*/forwardRef(function (_ref, ref) {
2899
2369
  as: "textarea"
2900
2370
  }, computedInputProps)), React__default.createElement("label", {
2901
2371
  htmlFor: id,
2902
- className: styles$g['text-input-label'],
2372
+ className: styles$i['text-input-label'],
2903
2373
  id: id + "Label"
2904
2374
  }, label, isRequired && requiredIndicator && React__default.createElement("span", null, requiredIndicator))), helpText && React__default.createElement(HelpText, null, helpText), error && error !== true && React__default.createElement(InputValidationMessage, null, error));
2905
2375
  });
2906
2376
 
2907
- var _excluded$n = ["field", "form", "onChange", "id", "label"];
2377
+ var _excluded$q = ["field", "form", "onChange", "id", "label"];
2908
2378
  var FormikTextareaInputInset = function FormikTextareaInputInset(_ref) {
2909
2379
  var _ref$field = _ref.field,
2910
2380
  name = _ref$field.name,
@@ -2917,7 +2387,7 @@ var FormikTextareaInputInset = function FormikTextareaInputInset(_ref) {
2917
2387
  onChange = _ref.onChange,
2918
2388
  id = _ref.id,
2919
2389
  label = _ref.label,
2920
- props = _objectWithoutPropertiesLoose(_ref, _excluded$n);
2390
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$q);
2921
2391
  return React__default.createElement(TextareaInputInset, _extends({}, props, {
2922
2392
  id: id,
2923
2393
  label: label,
@@ -2929,7 +2399,7 @@ var FormikTextareaInputInset = function FormikTextareaInputInset(_ref) {
2929
2399
  }));
2930
2400
  };
2931
2401
 
2932
- 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"};
2402
+ 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"};
2933
2403
 
2934
2404
  var TextInputInset = /*#__PURE__*/forwardRef(function (_ref, ref) {
2935
2405
  var _ref2;
@@ -2973,10 +2443,10 @@ var TextInputInset = /*#__PURE__*/forwardRef(function (_ref, ref) {
2973
2443
  _ref$type = _ref.type,
2974
2444
  type = _ref$type === void 0 ? 'text' : _ref$type;
2975
2445
  var responsiveClasses = generateResponsiveClasses('size', size);
2976
- var inputWrapperClasses = classNames.apply(void 0, ['hyphen-components__variables__form-control', styles$f['text-input-wrapper']].concat(responsiveClasses.map(function (c) {
2977
- return styles$f[c];
2978
- }), [(_ref2 = {}, _ref2[styles$f.error] = error, _ref2[styles$f.disabled] = isDisabled, _ref2[styles$f['is-clearable']] = onClear, _ref2)]));
2979
- var clearBtnClasses = classNames(styles$f['clear-button'], styles$f.md);
2446
+ var inputWrapperClasses = classNames.apply(void 0, ['hyphen-components__variables__form-control', styles$h['text-input-wrapper']].concat(responsiveClasses.map(function (c) {
2447
+ return styles$h[c];
2448
+ }), [(_ref2 = {}, _ref2[styles$h.error] = error, _ref2[styles$h.disabled] = isDisabled, _ref2[styles$h['is-clearable']] = onClear, _ref2)]));
2449
+ var clearBtnClasses = classNames(styles$h['clear-button'], styles$h.md);
2980
2450
  var renderClearIcon = function renderClearIcon() {
2981
2451
  var handleKeyPress = function handleKeyPress(event) {
2982
2452
  if (event.keyCode === 13 && onClear) onClear(event);
@@ -3025,7 +2495,7 @@ var TextInputInset = /*#__PURE__*/forwardRef(function (_ref, ref) {
3025
2495
  alignItems: "center",
3026
2496
  justifyContent: "center",
3027
2497
  background: "secondary",
3028
- className: classNames(styles$f.prefix, 'ws-nowrap')
2498
+ className: classNames(styles$h.prefix, 'ws-nowrap')
3029
2499
  }, prefix), React__default.createElement(Box, {
3030
2500
  direction: "row",
3031
2501
  position: "relative",
@@ -3035,16 +2505,16 @@ var TextInputInset = /*#__PURE__*/forwardRef(function (_ref, ref) {
3035
2505
  as: "input"
3036
2506
  }, computedInputProps)), !!onClear && !!value && renderClearIcon(), React__default.createElement("label", {
3037
2507
  htmlFor: id,
3038
- className: styles$f['text-input-label'],
2508
+ className: styles$h['text-input-label'],
3039
2509
  id: id + "Label"
3040
2510
  }, label, isRequired && requiredIndicator && React__default.createElement("span", null, requiredIndicator))), suffix && React__default.createElement(Box, {
3041
2511
  color: "base",
3042
2512
  background: "secondary",
3043
- className: classNames(styles$f.suffix, 'ws-nowrap')
2513
+ className: classNames(styles$h.suffix, 'ws-nowrap')
3044
2514
  }, suffix)), helpText && React__default.createElement(HelpText, null, helpText), error && error !== true && React__default.createElement(InputValidationMessage, null, error));
3045
2515
  });
3046
2516
 
3047
- var _excluded$m = ["field", "form", "onChange", "id", "label"];
2517
+ var _excluded$p = ["field", "form", "onChange", "id", "label"];
3048
2518
  var FormikTextInputInset = function FormikTextInputInset(_ref) {
3049
2519
  var _ref$field = _ref.field,
3050
2520
  name = _ref$field.name,
@@ -3057,7 +2527,7 @@ var FormikTextInputInset = function FormikTextInputInset(_ref) {
3057
2527
  onChange = _ref.onChange,
3058
2528
  id = _ref.id,
3059
2529
  label = _ref.label,
3060
- props = _objectWithoutPropertiesLoose(_ref, _excluded$m);
2530
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$p);
3061
2531
  return React__default.createElement(TextInputInset, _extends({}, props, {
3062
2532
  id: id,
3063
2533
  label: label,
@@ -3069,9 +2539,9 @@ var FormikTextInputInset = function FormikTextInputInset(_ref) {
3069
2539
  }));
3070
2540
  };
3071
2541
 
3072
- 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"};
2542
+ 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"};
3073
2543
 
3074
- var _excluded$l = ["autoFocus", "label", "hideLabel", "helpText", "error", "id", "isDisabled", "isRequired", "name", "value", "options", "onChange", "placeholder", "requiredIndicator", "size"];
2544
+ var _excluded$o = ["autoFocus", "label", "hideLabel", "helpText", "error", "id", "isDisabled", "isRequired", "name", "value", "options", "onChange", "placeholder", "requiredIndicator", "size"];
3075
2545
  var SelectInputNative = function SelectInputNative(_ref) {
3076
2546
  var _ref2;
3077
2547
  var _ref$autoFocus = _ref.autoFocus,
@@ -3093,16 +2563,16 @@ var SelectInputNative = function SelectInputNative(_ref) {
3093
2563
  requiredIndicator = _ref$requiredIndicato === void 0 ? ' *' : _ref$requiredIndicato,
3094
2564
  _ref$size = _ref.size,
3095
2565
  size = _ref$size === void 0 ? 'md' : _ref$size,
3096
- restProps = _objectWithoutPropertiesLoose(_ref, _excluded$l);
2566
+ restProps = _objectWithoutPropertiesLoose(_ref, _excluded$o);
3097
2567
  var placeholderOption = {
3098
2568
  value: '',
3099
2569
  label: placeholder
3100
2570
  };
3101
2571
  var optionsWithPlaceholder = [_extends({}, placeholderOption)].concat(options);
3102
2572
  var responsiveClasses = generateResponsiveClasses('size', size);
3103
- var selectWrapperClasses = classNames.apply(void 0, ['hyphen-components__variables__form-control', styles$e['select-input-native-wrapper']].concat(responsiveClasses.map(function (className) {
3104
- return styles$e[className];
3105
- }), [(_ref2 = {}, _ref2[styles$e.disabled] = isDisabled, _ref2[styles$e.error] = error, _ref2)]));
2573
+ var selectWrapperClasses = classNames.apply(void 0, ['hyphen-components__variables__form-control', styles$g['select-input-native-wrapper']].concat(responsiveClasses.map(function (className) {
2574
+ return styles$g[className];
2575
+ }), [(_ref2 = {}, _ref2[styles$g.disabled] = isDisabled, _ref2[styles$g.error] = error, _ref2)]));
3106
2576
  return React__default.createElement(FormControl, _extends({
3107
2577
  label: label,
3108
2578
  hideLabel: hideLabel,
@@ -3139,7 +2609,7 @@ var SelectInputNative = function SelectInputNative(_ref) {
3139
2609
  }))));
3140
2610
  };
3141
2611
 
3142
- var _excluded$k = ["field", "form", "onChange", "options", "id", "label"];
2612
+ var _excluded$n = ["field", "form", "onChange", "options", "id", "label"];
3143
2613
  var FormikSelectInputNative = function FormikSelectInputNative(_ref) {
3144
2614
  var _ref$field = _ref.field,
3145
2615
  name = _ref$field.name,
@@ -3153,7 +2623,7 @@ var FormikSelectInputNative = function FormikSelectInputNative(_ref) {
3153
2623
  options = _ref.options,
3154
2624
  id = _ref.id,
3155
2625
  label = _ref.label,
3156
- props = _objectWithoutPropertiesLoose(_ref, _excluded$k);
2626
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$n);
3157
2627
  return React__default.createElement(SelectInputNative, _extends({}, props, {
3158
2628
  options: options,
3159
2629
  id: id,
@@ -3166,7 +2636,127 @@ var FormikSelectInputNative = function FormikSelectInputNative(_ref) {
3166
2636
  }));
3167
2637
  };
3168
2638
 
3169
- var _excluded$j = ["field", "form", "onChange", "id", "label"];
2639
+ 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"};
2640
+
2641
+ 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"];
2642
+ var TextInput = /*#__PURE__*/forwardRef(function (_ref, ref) {
2643
+ var _ref2;
2644
+ var id = _ref.id,
2645
+ label = _ref.label,
2646
+ onChange = _ref.onChange,
2647
+ value = _ref.value,
2648
+ _ref$autoComplete = _ref.autoComplete,
2649
+ autoComplete = _ref$autoComplete === void 0 ? false : _ref$autoComplete,
2650
+ _ref$autoFocus = _ref.autoFocus,
2651
+ autoFocus = _ref$autoFocus === void 0 ? false : _ref$autoFocus,
2652
+ _ref$error = _ref.error,
2653
+ error = _ref$error === void 0 ? false : _ref$error,
2654
+ helpText = _ref.helpText,
2655
+ _ref$hideLabel = _ref.hideLabel,
2656
+ hideLabel = _ref$hideLabel === void 0 ? false : _ref$hideLabel,
2657
+ _ref$inputProps = _ref.inputProps,
2658
+ inputProps = _ref$inputProps === void 0 ? {} : _ref$inputProps,
2659
+ _ref$isDisabled = _ref.isDisabled,
2660
+ isDisabled = _ref$isDisabled === void 0 ? false : _ref$isDisabled,
2661
+ _ref$isRequired = _ref.isRequired,
2662
+ isRequired = _ref$isRequired === void 0 ? false : _ref$isRequired,
2663
+ _ref$maxLength = _ref.maxLength,
2664
+ maxLength = _ref$maxLength === void 0 ? undefined : _ref$maxLength,
2665
+ _ref$name = _ref.name,
2666
+ name = _ref$name === void 0 ? '' : _ref$name,
2667
+ _ref$onBlur = _ref.onBlur,
2668
+ onBlur = _ref$onBlur === void 0 ? undefined : _ref$onBlur,
2669
+ _ref$onClear = _ref.onClear,
2670
+ onClear = _ref$onClear === void 0 ? undefined : _ref$onClear,
2671
+ _ref$onFocus = _ref.onFocus,
2672
+ onFocus = _ref$onFocus === void 0 ? undefined : _ref$onFocus,
2673
+ _ref$prefix = _ref.prefix,
2674
+ prefix = _ref$prefix === void 0 ? undefined : _ref$prefix,
2675
+ _ref$placeholder = _ref.placeholder,
2676
+ placeholder = _ref$placeholder === void 0 ? '' : _ref$placeholder,
2677
+ _ref$requiredIndicato = _ref.requiredIndicator,
2678
+ requiredIndicator = _ref$requiredIndicato === void 0 ? ' *' : _ref$requiredIndicato,
2679
+ _ref$suffix = _ref.suffix,
2680
+ suffix = _ref$suffix === void 0 ? undefined : _ref$suffix,
2681
+ _ref$size = _ref.size,
2682
+ size = _ref$size === void 0 ? 'md' : _ref$size,
2683
+ _ref$type = _ref.type,
2684
+ type = _ref$type === void 0 ? 'text' : _ref$type,
2685
+ restProps = _objectWithoutPropertiesLoose(_ref, _excluded$m);
2686
+ var responsiveClasses = generateResponsiveClasses('size', size);
2687
+ var inputWrapperClasses = classNames.apply(void 0, ['hyphen-components__variables__form-control', styles$f['text-input-wrapper']].concat(responsiveClasses.map(function (c) {
2688
+ return styles$f[c];
2689
+ }), [(_ref2 = {}, _ref2[styles$f.error] = error, _ref2[styles$f.disabled] = isDisabled, _ref2[styles$f['is-clearable']] = onClear, _ref2)]));
2690
+ var clearBtnClasses = classNames(styles$f['clear-button'], styles$f.md);
2691
+ var renderClearIcon = function renderClearIcon() {
2692
+ var handleKeyPress = function handleKeyPress(event) {
2693
+ if (event.keyCode === 13 && onClear) onClear(event);
2694
+ };
2695
+ return React__default.createElement("button", {
2696
+ type: "button",
2697
+ onClick: onClear,
2698
+ onKeyUp: handleKeyPress,
2699
+ className: clearBtnClasses,
2700
+ "data-testid": "text-input-clear-button",
2701
+ "aria-label": "clear input"
2702
+ }, React__default.createElement(Icon, {
2703
+ name: "remove",
2704
+ className: "display-block"
2705
+ }));
2706
+ };
2707
+ var computedInputProps = _extends({}, inputProps, {
2708
+ // These are spread first so that we don't have top level props overwritten by the user.
2709
+ 'aria-required': isRequired,
2710
+ 'aria-invalid': !!error,
2711
+ 'aria-label': label,
2712
+ 'aria-labelledby': label && !hideLabel ? id + "Label" : undefined,
2713
+ autoComplete: getAutoCompleteValue(autoComplete),
2714
+ autoFocus: autoFocus,
2715
+ disabled: isDisabled,
2716
+ id: id,
2717
+ maxLength: maxLength,
2718
+ name: name,
2719
+ onBlur: onBlur,
2720
+ onChange: onChange,
2721
+ onFocus: onFocus,
2722
+ placeholder: placeholder,
2723
+ required: isRequired,
2724
+ type: type,
2725
+ value: value,
2726
+ className: classNames(inputProps.className, {
2727
+ // 'p-left-xs p-left-xs-tablet p-left-xs-desktop p-left-xs-hd': prefix,
2728
+ // 'p-right-xs p-right-xs-tablet p-right-xs-desktop p-right-xs-hd': suffix,
2729
+ 'p-h-0': !suffix && !prefix
2730
+ })
2731
+ });
2732
+ return React__default.createElement(FormControl, _extends({
2733
+ helpText: helpText,
2734
+ error: error,
2735
+ label: label,
2736
+ id: id,
2737
+ hideLabel: hideLabel,
2738
+ isDisabled: isDisabled,
2739
+ isRequired: isRequired,
2740
+ requiredIndicator: requiredIndicator,
2741
+ ref: ref
2742
+ }, restProps), React__default.createElement(Box, {
2743
+ direction: "row",
2744
+ overflow: "hidden",
2745
+ className: inputWrapperClasses
2746
+ }, prefix && React__default.createElement(Box, {
2747
+ color: "secondary",
2748
+ background: "secondary",
2749
+ className: classNames(styles$f.prefix, 'ws-nowrap')
2750
+ }, prefix), React__default.createElement(Box, _extends({
2751
+ as: "input"
2752
+ }, computedInputProps)), !!onClear && !!value && renderClearIcon(), suffix && React__default.createElement(Box, {
2753
+ color: "secondary",
2754
+ background: "secondary",
2755
+ className: classNames(styles$f.suffix, 'ws-nowrap')
2756
+ }, suffix)));
2757
+ });
2758
+
2759
+ var _excluded$l = ["field", "form", "onChange", "id", "label"];
3170
2760
  var FormikTextInput = function FormikTextInput(_ref) {
3171
2761
  var _ref$field = _ref.field,
3172
2762
  name = _ref$field.name,
@@ -3179,7 +2769,7 @@ var FormikTextInput = function FormikTextInput(_ref) {
3179
2769
  onChange = _ref.onChange,
3180
2770
  id = _ref.id,
3181
2771
  label = _ref.label,
3182
- props = _objectWithoutPropertiesLoose(_ref, _excluded$j);
2772
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$l);
3183
2773
  return React__default.createElement(TextInput, _extends({}, props, {
3184
2774
  id: id,
3185
2775
  label: label,
@@ -3191,9 +2781,9 @@ var FormikTextInput = function FormikTextInput(_ref) {
3191
2781
  }));
3192
2782
  };
3193
2783
 
3194
- 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"};
2784
+ 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"};
3195
2785
 
3196
- var _excluded$i = ["id", "label", "onChange", "value", "autoComplete", "autoFocus", "className", "error", "helpText", "hideLabel", "isDisabled", "isRequired", "maxLength", "name", "onBlur", "onFocus", "placeholder", "requiredIndicator", "resize", "rows", "size"];
2786
+ var _excluded$k = ["id", "label", "onChange", "value", "autoComplete", "autoFocus", "className", "error", "helpText", "hideLabel", "isDisabled", "isRequired", "maxLength", "name", "onBlur", "onFocus", "placeholder", "requiredIndicator", "resize", "rows", "size"];
3197
2787
  var TextareaInput = function TextareaInput(_ref) {
3198
2788
  var _ref2;
3199
2789
  var id = _ref.id,
@@ -3233,11 +2823,11 @@ var TextareaInput = function TextareaInput(_ref) {
3233
2823
  rows = _ref$rows === void 0 ? 3 : _ref$rows,
3234
2824
  _ref$size = _ref.size,
3235
2825
  size = _ref$size === void 0 ? 'md' : _ref$size,
3236
- restProps = _objectWithoutPropertiesLoose(_ref, _excluded$i);
2826
+ restProps = _objectWithoutPropertiesLoose(_ref, _excluded$k);
3237
2827
  var responsiveClasses = generateResponsiveClasses('size', size);
3238
- var inputWrapperClasses = classNames.apply(void 0, ['hyphen-components__variables__form-control', styles$d['textarea-input-wrapper']].concat(responsiveClasses.map(function (c) {
3239
- return styles$d[c];
3240
- }), [(_ref2 = {}, _ref2[styles$d.error] = error, _ref2[styles$d.disabled] = isDisabled, _ref2)]));
2828
+ var inputWrapperClasses = classNames.apply(void 0, ['hyphen-components__variables__form-control', styles$e['textarea-input-wrapper']].concat(responsiveClasses.map(function (c) {
2829
+ return styles$e[c];
2830
+ }), [(_ref2 = {}, _ref2[styles$e.error] = error, _ref2[styles$e.disabled] = isDisabled, _ref2)]));
3241
2831
  var inputProps = {
3242
2832
  'aria-required': isRequired,
3243
2833
  'aria-invalid': !!error,
@@ -3245,7 +2835,7 @@ var TextareaInput = function TextareaInput(_ref) {
3245
2835
  'aria-labelledby': label && !hideLabel ? id + "Label" : undefined,
3246
2836
  autoComplete: getAutoCompleteValue(autoComplete),
3247
2837
  autoFocus: autoFocus,
3248
- className: classNames(styles$d["textarea-resize-" + resize]),
2838
+ className: classNames(styles$e["textarea-resize-" + resize]),
3249
2839
  disabled: isDisabled,
3250
2840
  id: id,
3251
2841
  maxLength: maxLength,
@@ -3261,7 +2851,7 @@ var TextareaInput = function TextareaInput(_ref) {
3261
2851
  var labelProps = {
3262
2852
  inputId: id,
3263
2853
  helpText: helpText,
3264
- className: styles$d['textarea-input-label'],
2854
+ className: styles$e['textarea-input-label'],
3265
2855
  isDisabled: isDisabled,
3266
2856
  isFieldRequired: isRequired,
3267
2857
  requiredIndicator: requiredIndicator
@@ -3277,7 +2867,7 @@ var TextareaInput = function TextareaInput(_ref) {
3277
2867
  }, inputProps))), error && error !== true && React__default.createElement(InputValidationMessage, null, error));
3278
2868
  };
3279
2869
 
3280
- var _excluded$h = ["field", "form", "onChange", "id", "label"];
2870
+ var _excluded$j = ["field", "form", "onChange", "id", "label"];
3281
2871
  var FormikTextareaInput = function FormikTextareaInput(_ref) {
3282
2872
  var _ref$field = _ref.field,
3283
2873
  name = _ref$field.name,
@@ -3290,7 +2880,7 @@ var FormikTextareaInput = function FormikTextareaInput(_ref) {
3290
2880
  onChange = _ref.onChange,
3291
2881
  id = _ref.id,
3292
2882
  label = _ref.label,
3293
- props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
2883
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$j);
3294
2884
  return React__default.createElement(TextareaInput, _extends({}, props, {
3295
2885
  id: id,
3296
2886
  label: label,
@@ -3302,7 +2892,7 @@ var FormikTextareaInput = function FormikTextareaInput(_ref) {
3302
2892
  }));
3303
2893
  };
3304
2894
 
3305
- var _excluded$g = ["id", "name", "label", "onChange", "value", "dateDisplayOptions", "endTime", "interval", "locales", "placeholder", "startTime"];
2895
+ var _excluded$i = ["id", "name", "label", "onChange", "value", "dateDisplayOptions", "endTime", "interval", "locales", "placeholder", "startTime"];
3306
2896
  var TimePicker = function TimePicker(_ref) {
3307
2897
  var id = _ref.id,
3308
2898
  name = _ref.name,
@@ -3324,7 +2914,7 @@ var TimePicker = function TimePicker(_ref) {
3324
2914
  placeholder = _ref$placeholder === void 0 ? 'HH:MM' : _ref$placeholder,
3325
2915
  _ref$startTime = _ref.startTime,
3326
2916
  startTime = _ref$startTime === void 0 ? undefined : _ref$startTime,
3327
- restProps = _objectWithoutPropertiesLoose(_ref, _excluded$g);
2917
+ restProps = _objectWithoutPropertiesLoose(_ref, _excluded$i);
3328
2918
  var generateTimes = function generateTimes() {
3329
2919
  var first = new Date();
3330
2920
  first.setHours((startTime == null ? void 0 : startTime.hour) || 0, (startTime == null ? void 0 : startTime.minute) || 0, 0, 0);
@@ -3352,7 +2942,7 @@ var TimePicker = function TimePicker(_ref) {
3352
2942
  }));
3353
2943
  };
3354
2944
 
3355
- var _excluded$f = ["field", "form", "options", "onChange"];
2945
+ var _excluded$h = ["field", "form", "options", "onChange"];
3356
2946
  var FormikTimePicker = function FormikTimePicker(_ref) {
3357
2947
  var _ref$field = _ref.field,
3358
2948
  name = _ref$field.name,
@@ -3364,7 +2954,7 @@ var FormikTimePicker = function FormikTimePicker(_ref) {
3364
2954
  errors = _ref$form.errors,
3365
2955
  options = _ref.options,
3366
2956
  onChange = _ref.onChange,
3367
- props = _objectWithoutPropertiesLoose(_ref, _excluded$f);
2957
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
3368
2958
  return React__default.createElement(TimePicker, _extends({}, props, {
3369
2959
  name: name,
3370
2960
  onBlur: onBlur,
@@ -3375,7 +2965,7 @@ var FormikTimePicker = function FormikTimePicker(_ref) {
3375
2965
  }));
3376
2966
  };
3377
2967
 
3378
- var _excluded$e = ["id", "name", "label", "onChange", "value", "dateDisplayOptions", "endTime", "interval", "locales", "placeholder", "startTime"];
2968
+ var _excluded$g = ["id", "name", "label", "onChange", "value", "dateDisplayOptions", "endTime", "interval", "locales", "placeholder", "startTime"];
3379
2969
  var TimePickerNative = function TimePickerNative(_ref) {
3380
2970
  var id = _ref.id,
3381
2971
  name = _ref.name,
@@ -3397,7 +2987,7 @@ var TimePickerNative = function TimePickerNative(_ref) {
3397
2987
  placeholder = _ref$placeholder === void 0 ? 'HH:MM' : _ref$placeholder,
3398
2988
  _ref$startTime = _ref.startTime,
3399
2989
  startTime = _ref$startTime === void 0 ? undefined : _ref$startTime,
3400
- restProps = _objectWithoutPropertiesLoose(_ref, _excluded$e);
2990
+ restProps = _objectWithoutPropertiesLoose(_ref, _excluded$g);
3401
2991
  var generateTimes = function generateTimes() {
3402
2992
  var first = new Date();
3403
2993
  first.setHours((startTime == null ? void 0 : startTime.hour) || 0, (startTime == null ? void 0 : startTime.minute) || 0, 0, 0);
@@ -3426,7 +3016,7 @@ var TimePickerNative = function TimePickerNative(_ref) {
3426
3016
  }));
3427
3017
  };
3428
3018
 
3429
- var _excluded$d = ["field", "form", "onChange"];
3019
+ var _excluded$f = ["field", "form", "onChange"];
3430
3020
  var FormikTimePickerNative = function FormikTimePickerNative(_ref) {
3431
3021
  var _ref$field = _ref.field,
3432
3022
  name = _ref$field.name,
@@ -3437,7 +3027,7 @@ var FormikTimePickerNative = function FormikTimePickerNative(_ref) {
3437
3027
  touched = _ref$form.touched,
3438
3028
  errors = _ref$form.errors,
3439
3029
  onChange = _ref.onChange,
3440
- props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
3030
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$f);
3441
3031
  return React__default.createElement(TimePickerNative, _extends({}, props, {
3442
3032
  name: name,
3443
3033
  onBlur: onBlur,
@@ -3447,7 +3037,7 @@ var FormikTimePickerNative = function FormikTimePickerNative(_ref) {
3447
3037
  }));
3448
3038
  };
3449
3039
 
3450
- 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"};
3040
+ 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"};
3451
3041
 
3452
3042
  var Switch = function Switch(_ref) {
3453
3043
  var _classNames, _ref2;
@@ -3483,12 +3073,12 @@ var Switch = function Switch(_ref) {
3483
3073
  var handleFocus = function handleFocus(event) {
3484
3074
  if (onFocus) onFocus(event);
3485
3075
  };
3486
- var wrapperClasses = classNames('hyphen-components__variables__form-control', (_classNames = {}, _classNames[styles$c.disabled] = isDisabled, _classNames));
3487
- var trackClasses = classNames.apply(void 0, [styles$c['switch-track']].concat(generateResponsiveClasses('track-size', size).map(function (c) {
3488
- return styles$c[c];
3489
- }), [(_ref2 = {}, _ref2[styles$c.error] = error, _ref2)]));
3490
- var thumbClasses = classNames.apply(void 0, [styles$c['switch-thumb']].concat(generateResponsiveClasses('thumb-size', size).map(function (c) {
3491
- return styles$c[c];
3076
+ var wrapperClasses = classNames('hyphen-components__variables__form-control', (_classNames = {}, _classNames[styles$d.disabled] = isDisabled, _classNames));
3077
+ var trackClasses = classNames.apply(void 0, [styles$d['switch-track']].concat(generateResponsiveClasses('track-size', size).map(function (c) {
3078
+ return styles$d[c];
3079
+ }), [(_ref2 = {}, _ref2[styles$d.error] = error, _ref2)]));
3080
+ var thumbClasses = classNames.apply(void 0, [styles$d['switch-thumb']].concat(generateResponsiveClasses('thumb-size', size).map(function (c) {
3081
+ return styles$d[c];
3492
3082
  })));
3493
3083
  var inputProps = {
3494
3084
  'aria-required': isRequired,
@@ -3503,7 +3093,7 @@ var Switch = function Switch(_ref) {
3503
3093
  onFocus: handleFocus,
3504
3094
  required: isRequired,
3505
3095
  type: 'checkbox',
3506
- className: styles$c['switch-input']
3096
+ className: styles$d['switch-input']
3507
3097
  };
3508
3098
  var labelProps = {
3509
3099
  inputId: id,
@@ -3539,7 +3129,7 @@ var Switch = function Switch(_ref) {
3539
3129
  }, helpText)))), error && error !== true && React__default.createElement(InputValidationMessage, null, error));
3540
3130
  };
3541
3131
 
3542
- var _excluded$c = ["field", "form"];
3132
+ var _excluded$e = ["field", "form"];
3543
3133
  var FormikSwitch = function FormikSwitch(_ref) {
3544
3134
  var _ref$field = _ref.field,
3545
3135
  name = _ref$field.name,
@@ -3549,7 +3139,7 @@ var FormikSwitch = function FormikSwitch(_ref) {
3549
3139
  _ref$form = _ref.form,
3550
3140
  touched = _ref$form.touched,
3551
3141
  errors = _ref$form.errors,
3552
- props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
3142
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$e);
3553
3143
  return React__default.createElement(Switch, _extends({
3554
3144
  error: getIn(touched, name) && getIn(errors, name),
3555
3145
  isChecked: value,
@@ -3558,9 +3148,9 @@ var FormikSwitch = function FormikSwitch(_ref) {
3558
3148
  }, props));
3559
3149
  };
3560
3150
 
3561
- var styles$b = {"item":"ToggleGroup-module_item__dIBO0","outline":"ToggleGroup-module_outline__d5OlO"};
3151
+ var styles$c = {"item":"ToggleGroup-module_item__dIBO0","outline":"ToggleGroup-module_outline__d5OlO"};
3562
3152
 
3563
- var _excluded$b = ["className", "variant", "children", "gap", "error"],
3153
+ var _excluded$d = ["className", "variant", "children", "gap", "error"],
3564
3154
  _excluded2$1 = ["className", "children", "value", "variant"];
3565
3155
  var ToggleGroupContext = /*#__PURE__*/createContext({
3566
3156
  variant: 'default'
@@ -3573,7 +3163,7 @@ var ToggleGroup = /*#__PURE__*/forwardRef(function (_ref, ref) {
3573
3163
  _ref$gap = _ref.gap,
3574
3164
  gap = _ref$gap === void 0 ? 'xs' : _ref$gap,
3575
3165
  error = _ref.error,
3576
- props = _objectWithoutPropertiesLoose(_ref, _excluded$b);
3166
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
3577
3167
  return React__default.createElement("div", null, React__default.createElement(ToggleGroupPrimitive.Root, _extends({
3578
3168
  ref: ref,
3579
3169
  className: classNames('display-flex align-items-center justify-content-start', className, cssShorthandToClasses('g', gap))
@@ -3594,13 +3184,13 @@ var ToggleGroupItem = /*#__PURE__*/forwardRef(function (_ref2, ref) {
3594
3184
  var appliedVariant = variant || contextVariant;
3595
3185
  return React__default.createElement(ToggleGroupPrimitive.Item, _extends({
3596
3186
  ref: ref,
3597
- className: classNames('br-sm display-flex g-sm p-sm', styles$b.item, appliedVariant === 'outline' && styles$b.outline, className),
3187
+ className: classNames('br-sm display-flex g-sm p-sm', styles$c.item, appliedVariant === 'outline' && styles$c.outline, className),
3598
3188
  value: value
3599
3189
  }, props), children);
3600
3190
  });
3601
3191
  ToggleGroupItem.displayName = ToggleGroupPrimitive.Item.displayName;
3602
3192
 
3603
- var _excluded$a = ["field", "form", "options", "helpText", "label", "children"];
3193
+ var _excluded$c = ["field", "form", "options", "helpText", "label", "children"];
3604
3194
  var FormikToggleGroup = function FormikToggleGroup(_ref) {
3605
3195
  var _ref$field = _ref.field,
3606
3196
  name = _ref$field.name,
@@ -3614,7 +3204,7 @@ var FormikToggleGroup = function FormikToggleGroup(_ref) {
3614
3204
  helpText = _ref.helpText,
3615
3205
  label = _ref.label,
3616
3206
  children = _ref.children,
3617
- props = _objectWithoutPropertiesLoose(_ref, _excluded$a);
3207
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
3618
3208
  return React__default.createElement(Box, {
3619
3209
  gap: "sm"
3620
3210
  }, (label || helpText) && React__default.createElement("div", null, label && React__default.createElement(Box, {
@@ -3638,7 +3228,7 @@ var FormikToggleGroup = function FormikToggleGroup(_ref) {
3638
3228
  })));
3639
3229
  };
3640
3230
 
3641
- var _excluded$9 = ["name", "options", "helpText", "label", "children", "variant", "gap"];
3231
+ var _excluded$b = ["name", "options", "helpText", "label", "children", "variant", "gap"];
3642
3232
  var FormikToggleGroupMulti = function FormikToggleGroupMulti(_ref) {
3643
3233
  var name = _ref.name,
3644
3234
  options = _ref.options,
@@ -3647,7 +3237,7 @@ var FormikToggleGroupMulti = function FormikToggleGroupMulti(_ref) {
3647
3237
  children = _ref.children,
3648
3238
  variant = _ref.variant,
3649
3239
  gap = _ref.gap,
3650
- props = _objectWithoutPropertiesLoose(_ref, _excluded$9);
3240
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$b);
3651
3241
  var _useField = useField(name),
3652
3242
  field = _useField[0],
3653
3243
  meta = _useField[1],
@@ -3681,7 +3271,7 @@ var FormikToggleGroupMulti = function FormikToggleGroupMulti(_ref) {
3681
3271
  }));
3682
3272
  };
3683
3273
 
3684
- var _excluded$8 = ["children", "padding", "direction", "alignItems", "justifyContent", "gap", "style"];
3274
+ var _excluded$a = ["children", "padding", "direction", "alignItems", "justifyContent", "gap", "style"];
3685
3275
  var ModalFooter = function ModalFooter(_ref) {
3686
3276
  var children = _ref.children,
3687
3277
  padding = _ref.padding,
@@ -3694,7 +3284,7 @@ var ModalFooter = function ModalFooter(_ref) {
3694
3284
  _ref$gap = _ref.gap,
3695
3285
  gap = _ref$gap === void 0 ? 'md' : _ref$gap,
3696
3286
  style = _ref.style,
3697
- restProps = _objectWithoutPropertiesLoose(_ref, _excluded$8);
3287
+ restProps = _objectWithoutPropertiesLoose(_ref, _excluded$a);
3698
3288
  return React__default.createElement(Box, _extends({
3699
3289
  padding: padding,
3700
3290
  direction: direction,
@@ -3707,7 +3297,7 @@ var ModalFooter = function ModalFooter(_ref) {
3707
3297
  }, restProps), children);
3708
3298
  };
3709
3299
 
3710
- var _excluded$7 = ["id", "onDismiss", "direction", "alignItems", "title", "children", "style"];
3300
+ var _excluded$9 = ["id", "onDismiss", "direction", "alignItems", "title", "children", "style"];
3711
3301
  var ModalHeader = function ModalHeader(_ref) {
3712
3302
  var id = _ref.id,
3713
3303
  onDismiss = _ref.onDismiss,
@@ -3719,7 +3309,7 @@ var ModalHeader = function ModalHeader(_ref) {
3719
3309
  title = _ref$title === void 0 ? undefined : _ref$title,
3720
3310
  children = _ref.children,
3721
3311
  style = _ref.style,
3722
- restProps = _objectWithoutPropertiesLoose(_ref, _excluded$7);
3312
+ restProps = _objectWithoutPropertiesLoose(_ref, _excluded$9);
3723
3313
  var justifyContentValue = title || children ? 'space-between' : 'flex-end';
3724
3314
  return React__default.createElement(Box, _extends({
3725
3315
  direction: direction,
@@ -3748,7 +3338,7 @@ var ModalHeader = function ModalHeader(_ref) {
3748
3338
  }));
3749
3339
  };
3750
3340
 
3751
- var _excluded$6 = ["children", "flex", "overflow", "height"];
3341
+ var _excluded$8 = ["children", "flex", "overflow", "height"];
3752
3342
  var ModalBody = function ModalBody(_ref) {
3753
3343
  var children = _ref.children,
3754
3344
  _ref$flex = _ref.flex,
@@ -3757,7 +3347,7 @@ var ModalBody = function ModalBody(_ref) {
3757
3347
  overflow = _ref$overflow === void 0 ? 'auto' : _ref$overflow,
3758
3348
  _ref$height = _ref.height,
3759
3349
  height = _ref$height === void 0 ? '100' : _ref$height,
3760
- restProps = _objectWithoutPropertiesLoose(_ref, _excluded$6);
3350
+ restProps = _objectWithoutPropertiesLoose(_ref, _excluded$8);
3761
3351
  return React__default.createElement(Box, _extends({
3762
3352
  flex: flex,
3763
3353
  overflow: overflow,
@@ -3768,9 +3358,9 @@ var ModalBody = function ModalBody(_ref) {
3768
3358
  }, restProps), children);
3769
3359
  };
3770
3360
 
3771
- var styles$a = {"modal-close":"Modal-module_modal-close__1YmMa","modal":"Modal-module_modal__yNG-7","modal-content":"Modal-module_modal-content__GMtBm"};
3361
+ var styles$b = {"modal-close":"Modal-module_modal-close__1YmMa","modal":"Modal-module_modal__yNG-7","modal-content":"Modal-module_modal-content__GMtBm"};
3772
3362
 
3773
- var _excluded$5 = ["ariaLabel", "ariaLabelledBy", "allowPinchZoom", "background", "children", "className", "containerRef", "fullScreenMobile", "initialFocusRef", "isOpen", "maxWidth", "onDismiss", "overflow", "style"];
3363
+ var _excluded$7 = ["ariaLabel", "ariaLabelledBy", "allowPinchZoom", "background", "children", "className", "containerRef", "fullScreenMobile", "initialFocusRef", "isOpen", "maxWidth", "onDismiss", "overflow", "style"];
3774
3364
  var ModalBaseComponent = /*#__PURE__*/forwardRef(function (_ref, ref) {
3775
3365
  var _classNames;
3776
3366
  var ariaLabel = _ref.ariaLabel,
@@ -3793,7 +3383,7 @@ var ModalBaseComponent = /*#__PURE__*/forwardRef(function (_ref, ref) {
3793
3383
  _ref$overflow = _ref.overflow,
3794
3384
  overflow = _ref$overflow === void 0 ? 'hidden' : _ref$overflow,
3795
3385
  style = _ref.style,
3796
- restProps = _objectWithoutPropertiesLoose(_ref, _excluded$5);
3386
+ restProps = _objectWithoutPropertiesLoose(_ref, _excluded$7);
3797
3387
  var activateFocusLock = useCallback(function () {
3798
3388
  setTimeout(function () {
3799
3389
  if (initialFocusRef && initialFocusRef.current) {
@@ -3802,10 +3392,10 @@ var ModalBaseComponent = /*#__PURE__*/forwardRef(function (_ref, ref) {
3802
3392
  }, 100);
3803
3393
  }, [initialFocusRef]);
3804
3394
  var maxWidthCss = getDimensionCss('mw', maxWidth);
3805
- var overlayClassnames = classNames(styles$a.overlay, styles$a.modal, {
3395
+ var overlayClassnames = classNames(styles$b.overlay, styles$b.modal, {
3806
3396
  fullscreen: fullScreenMobile
3807
3397
  });
3808
- var contentClassnames = classNames(styles$a['modal-content'], className, maxWidthCss.classes, (_classNames = {}, _classNames["overflow-" + overflow] = overflow, _classNames));
3398
+ var contentClassnames = classNames(styles$b['modal-content'], className, maxWidthCss.classes, (_classNames = {}, _classNames["overflow-" + overflow] = overflow, _classNames));
3809
3399
  if (!isOpen) return null;
3810
3400
  var parentElement = containerRef != null && containerRef.current ? containerRef.current : undefined;
3811
3401
  return React__default.createElement(FocusLock, {
@@ -4018,9 +3608,31 @@ var Pagination = function Pagination(_ref) {
4018
3608
  }, isTotalVisible && activeListRangeText));
4019
3609
  };
4020
3610
 
3611
+ 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"};
3612
+
3613
+ var _excluded$6 = ["className", "align", "sideOffset"];
3614
+ var Popover = PopoverPrimitive.Root;
3615
+ var PopoverTrigger = PopoverPrimitive.Trigger;
3616
+ var PopoverAnchor = PopoverPrimitive.Anchor;
3617
+ var PopoverPortal = PopoverPrimitive.Portal;
3618
+ var PopoverContent = /*#__PURE__*/forwardRef(function (_ref, ref) {
3619
+ var className = _ref.className,
3620
+ _ref$align = _ref.align,
3621
+ align = _ref$align === void 0 ? 'center' : _ref$align,
3622
+ _ref$sideOffset = _ref.sideOffset,
3623
+ sideOffset = _ref$sideOffset === void 0 ? 4 : _ref$sideOffset,
3624
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$6);
3625
+ return React__default.createElement(PopoverPrimitive.Content, _extends({
3626
+ ref: ref,
3627
+ align: align,
3628
+ sideOffset: sideOffset,
3629
+ className: classNames(styles$a.PopoverContent, className)
3630
+ }, props));
3631
+ });
3632
+
4021
3633
  var styles$9 = {"slider":"RangeInput-module_slider__Z6D68","disabled":"RangeInput-module_disabled__gyu72"};
4022
3634
 
4023
- var _excluded$4 = ["value", "max", "id", "onChange", "className", "isDisabled"];
3635
+ var _excluded$5 = ["value", "max", "id", "onChange", "className", "isDisabled"];
4024
3636
  var RangeInput = function RangeInput(_ref) {
4025
3637
  var _classNames;
4026
3638
  var _ref$value = _ref.value,
@@ -4032,7 +3644,7 @@ var RangeInput = function RangeInput(_ref) {
4032
3644
  className = _ref.className,
4033
3645
  _ref$isDisabled = _ref.isDisabled,
4034
3646
  isDisabled = _ref$isDisabled === void 0 ? false : _ref$isDisabled,
4035
- restProps = _objectWithoutPropertiesLoose(_ref, _excluded$4);
3647
+ restProps = _objectWithoutPropertiesLoose(_ref, _excluded$5);
4036
3648
  var currentProgress = value > 0 ? value / max * 100 : 0;
4037
3649
  return React__default.createElement("input", _extends({}, restProps, {
4038
3650
  id: id,
@@ -4052,11 +3664,93 @@ var RangeInput = function RangeInput(_ref) {
4052
3664
  }));
4053
3665
  };
4054
3666
 
3667
+ // eslint-disable-next-line import/prefer-default-export
3668
+ var useIsomorphicLayoutEffect = typeof window !== 'undefined' ? useLayoutEffect : useEffect;
3669
+
3670
+ var ResponsiveContext = /*#__PURE__*/createContext({
3671
+ isCreated: false
3672
+ });
3673
+ var ResponsiveProvider = function ResponsiveProvider(_ref) {
3674
+ var _ref$children = _ref.children,
3675
+ children = _ref$children === void 0 ? null : _ref$children,
3676
+ _ref$throttle = _ref.throttle,
3677
+ throttle = _ref$throttle === void 0 ? 50 : _ref$throttle;
3678
+ var _useState = useState(0),
3679
+ innerWidth = _useState[0],
3680
+ setInnerWidth = _useState[1];
3681
+ var _useState2 = useState(0),
3682
+ innerHeight = _useState2[0],
3683
+ setInnerHeight = _useState2[1];
3684
+ var _useState3 = useState(0),
3685
+ outerWidth = _useState3[0],
3686
+ setOuterWidth = _useState3[1];
3687
+ var _useState4 = useState(0),
3688
+ outerHeight = _useState4[0],
3689
+ setOuterHeight = _useState4[1];
3690
+ var handleWindowResize = function handleWindowResize() {
3691
+ var _window$innerWidth, _window, _window$innerHeight, _window2, _window$outerWidth, _window3, _window$outerHeight, _window4;
3692
+ setInnerWidth((_window$innerWidth = (_window = window) == null ? void 0 : _window.innerWidth) != null ? _window$innerWidth : 0);
3693
+ setInnerHeight((_window$innerHeight = (_window2 = window) == null ? void 0 : _window2.innerHeight) != null ? _window$innerHeight : 0);
3694
+ setOuterWidth((_window$outerWidth = (_window3 = window) == null ? void 0 : _window3.outerWidth) != null ? _window$outerWidth : 0);
3695
+ setOuterHeight((_window$outerHeight = (_window4 = window) == null ? void 0 : _window4.outerHeight) != null ? _window$outerHeight : 0);
3696
+ };
3697
+ useIsomorphicLayoutEffect(function () {
3698
+ // eslint-disable-line consistent-return
3699
+ if (typeof window !== 'undefined') {
3700
+ // Set values on render if window wasn't available for useState initialization.
3701
+ handleWindowResize();
3702
+ var timeoutId; // eslint-disable-line
3703
+ var throttledResize = function throttledResize() {
3704
+ // prevent execution of previous setTimeout
3705
+ clearTimeout(timeoutId);
3706
+ // change width from the state object after throttle time has elapsed.
3707
+ timeoutId = setTimeout(handleWindowResize, throttle);
3708
+ };
3709
+ window.addEventListener('resize', throttledResize);
3710
+ return function () {
3711
+ window.removeEventListener('resize', throttledResize);
3712
+ clearTimeout(timeoutId);
3713
+ };
3714
+ }
3715
+ }, [throttle]);
3716
+ return React__default.createElement(ResponsiveContext.Provider, {
3717
+ value: {
3718
+ innerWidth: innerWidth,
3719
+ innerHeight: innerHeight,
3720
+ outerHeight: outerHeight,
3721
+ outerWidth: outerWidth,
3722
+ isCreated: true
3723
+ }
3724
+ }, children);
3725
+ };
3726
+
3727
+ var desktopBreakpoint = /*#__PURE__*/BREAKPOINTS.find(function (b) {
3728
+ return b.name === 'desktop';
3729
+ });
3730
+ var MOBILE_BREAKPOINT = desktopBreakpoint ? desktopBreakpoint.minWidth : 0; // min width in pixels
3731
+ function useIsMobile() {
3732
+ var _React$useState = React.useState(undefined),
3733
+ isMobile = _React$useState[0],
3734
+ setIsMobile = _React$useState[1];
3735
+ React.useEffect(function () {
3736
+ var mql = window.matchMedia("(max-width: " + (MOBILE_BREAKPOINT - 1) + "px)");
3737
+ var onChange = function onChange() {
3738
+ setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
3739
+ };
3740
+ mql.addEventListener('change', onChange);
3741
+ setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
3742
+ return function () {
3743
+ return mql.removeEventListener('change', onChange);
3744
+ };
3745
+ }, []);
3746
+ return !!isMobile;
3747
+ }
3748
+
4055
3749
  var styles$8 = {"rail":"Sidebar-module_rail__nWu0Q","group-data-":"Sidebar-module_group-data-__GTJmR"};
4056
3750
 
4057
3751
  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"};
4058
3752
 
4059
- var _excluded$3 = ["className", "sideOffset"];
3753
+ var _excluded$4 = ["className", "sideOffset"];
4060
3754
  var TooltipProvider = TooltipPrimitive.Provider;
4061
3755
  var Tooltip = TooltipPrimitive.Root;
4062
3756
  var TooltipTrigger = TooltipPrimitive.Trigger;
@@ -4065,7 +3759,7 @@ var TooltipContent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
4065
3759
  var className = _ref.className,
4066
3760
  _ref$sideOffset = _ref.sideOffset,
4067
3761
  sideOffset = _ref$sideOffset === void 0 ? 4 : _ref$sideOffset,
4068
- props = _objectWithoutPropertiesLoose(_ref, _excluded$3);
3762
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$4);
4069
3763
  return React.createElement(TooltipPrimitive.Content, _extends({
4070
3764
  ref: ref,
4071
3765
  sideOffset: sideOffset,
@@ -4074,7 +3768,7 @@ var TooltipContent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
4074
3768
  });
4075
3769
  TooltipContent.displayName = TooltipPrimitive.Content.displayName;
4076
3770
 
4077
- var _excluded$2 = ["defaultOpen", "open", "storageKey", "onOpenChange", "className", "style", "children"],
3771
+ var _excluded$3 = ["defaultOpen", "open", "storageKey", "onOpenChange", "className", "style", "children"],
4078
3772
  _excluded2 = ["side", "collapsible", "className", "children"],
4079
3773
  _excluded3 = ["className", "onClick"],
4080
3774
  _excluded4 = ["className"],
@@ -4112,7 +3806,7 @@ var SidebarProvider = /*#__PURE__*/forwardRef(function (_ref, ref) {
4112
3806
  className = _ref.className,
4113
3807
  style = _ref.style,
4114
3808
  children = _ref.children,
4115
- props = _objectWithoutPropertiesLoose(_ref, _excluded$2);
3809
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$3);
4116
3810
  var isMobile = useIsMobile();
4117
3811
  var _useState = useState(function () {
4118
3812
  return isMobile ? false : openProp != null ? openProp : defaultOpen;
@@ -4900,6 +4594,50 @@ var Table = function Table(_ref) {
4900
4594
  }))));
4901
4595
  };
4902
4596
 
4597
+ var _excluded$2 = ["children", "defaultTheme", "storageKey"];
4598
+ var initialState = {
4599
+ theme: 'system',
4600
+ setTheme: function setTheme() {
4601
+ return null;
4602
+ }
4603
+ };
4604
+ var ThemeProviderContext = /*#__PURE__*/createContext(initialState);
4605
+ function ThemeProvider(_ref) {
4606
+ var children = _ref.children,
4607
+ _ref$defaultTheme = _ref.defaultTheme,
4608
+ defaultTheme = _ref$defaultTheme === void 0 ? 'system' : _ref$defaultTheme,
4609
+ _ref$storageKey = _ref.storageKey,
4610
+ storageKey = _ref$storageKey === void 0 ? 'hyphen-ui-theme' : _ref$storageKey,
4611
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$2);
4612
+ var _useState = useState(function () {
4613
+ return localStorage.getItem(storageKey) || defaultTheme;
4614
+ }),
4615
+ theme = _useState[0],
4616
+ _setTheme = _useState[1];
4617
+ useEffect(function () {
4618
+ var root = window.document.documentElement;
4619
+ root.classList.remove('light', 'dark');
4620
+ if (theme === 'system') {
4621
+ var systemTheme = window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';
4622
+ root.classList.add(systemTheme);
4623
+ return;
4624
+ }
4625
+ root.classList.add(theme);
4626
+ }, [theme]);
4627
+ var isDarkMode = theme === 'dark' || theme === 'system' && window.matchMedia('(prefers-color-scheme: dark)').matches;
4628
+ var value = {
4629
+ theme: theme,
4630
+ setTheme: function setTheme(theme) {
4631
+ localStorage.setItem(storageKey, theme);
4632
+ _setTheme(theme);
4633
+ },
4634
+ isDarkMode: isDarkMode
4635
+ };
4636
+ return React__default.createElement(ThemeProviderContext.Provider, _extends({}, props, {
4637
+ value: value
4638
+ }), children);
4639
+ }
4640
+
4903
4641
  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"};
4904
4642
 
4905
4643
  var getAnimationClass = function getAnimationClass(position, visible) {
@@ -5460,5 +5198,104 @@ var Toggle = /*#__PURE__*/forwardRef(function (_ref, ref) {
5460
5198
  }, props), children);
5461
5199
  });
5462
5200
 
5463
- export { Alert, AspectRatio, Badge, Box, Button, Card, CardBaseComponent, Checkbox, CheckboxInput, Collapsible, CollapsibleContent, CollapsibleTrigger, DateInput, DatePicker, Details, DetailsBaseComponent, DetailsSummary, Drawer, DrawerCloseButton, DrawerContent, DrawerHeader, DrawerProvider, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, FormControl, FormLabel, FormikCheckboxInput, FormikRadioGroup, FormikSelectInput, FormikSelectInputInset, FormikSelectInputNative, FormikSwitch, FormikTextInput, FormikTextInputInset, FormikTextareaInput, FormikTextareaInputInset, FormikTimePicker, FormikTimePickerNative, FormikToggleGroup, FormikToggleGroupMulti, Heading, Icon, Modal, ModalBaseComponent, Pagination, Popover, PopoverAnchor, PopoverContent, PopoverPortal, PopoverTrigger, RadioGroup, RangeInput, ResponsiveContext, ResponsiveProvider, SelectInput, SelectInputInset, SelectInputNative, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupLabel, SidebarHeader, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarTrigger, Spinner, Switch, Table, TextInput, TextInputInset, TextareaInput, TextareaInputInset, ThemeProvider, ThemeProviderContext, TimePicker, TimePickerNative, ToastContainer, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipPortal, TooltipProvider, TooltipTrigger, boxPropsKeys, createRectRef, toast, useBreakpoint, useDrawer, useIsMobile, useIsomorphicLayoutEffect, useOpenClose, useSidebar, useTheme, useToasts, useWindowSize };
5201
+ var useWindowSize = function useWindowSize() {
5202
+ var _React$useContext = React__default.useContext(ResponsiveContext),
5203
+ innerWidth = _React$useContext.innerWidth,
5204
+ innerHeight = _React$useContext.innerHeight,
5205
+ outerHeight = _React$useContext.outerHeight,
5206
+ outerWidth = _React$useContext.outerWidth,
5207
+ isCreated = _React$useContext.isCreated;
5208
+ if (isCreated) {
5209
+ return {
5210
+ innerHeight: innerHeight,
5211
+ innerWidth: innerWidth,
5212
+ outerHeight: outerHeight,
5213
+ outerWidth: outerWidth
5214
+ };
5215
+ }
5216
+ return {};
5217
+ };
5218
+
5219
+ var defaultBreakpoint = {
5220
+ name: 'base',
5221
+ minWidth: 0
5222
+ };
5223
+ var useBreakpoint = function useBreakpoint() {
5224
+ var windowSize = useWindowSize();
5225
+ var _useState = useState(_extends({}, defaultBreakpoint)),
5226
+ breakpoint = _useState[0],
5227
+ setBreakpoint = _useState[1];
5228
+ useIsomorphicLayoutEffect(function () {
5229
+ var sortedBreakpoints = [].concat(BREAKPOINTS).sort(function (a, b) {
5230
+ return b.minWidth - a.minWidth;
5231
+ });
5232
+ var activeBreakpoint = windowSize && sortedBreakpoints.find(function (b) {
5233
+ return b.minWidth <= windowSize.innerWidth;
5234
+ });
5235
+ setBreakpoint(activeBreakpoint || _extends({}, defaultBreakpoint));
5236
+ // eslint-disable-next-line react-hooks/exhaustive-deps
5237
+ }, [windowSize.innerWidth, windowSize.innerHeight, windowSize.outerWidth, windowSize.outerHeight]);
5238
+ return {
5239
+ isPhone: breakpoint.name === 'base',
5240
+ isTablet: breakpoint.name === 'tablet',
5241
+ isDesktop: breakpoint.name === 'desktop',
5242
+ isHd: breakpoint.name === 'hd',
5243
+ activeBreakpoint: breakpoint
5244
+ };
5245
+ };
5246
+
5247
+ var useOpenClose = function useOpenClose(props) {
5248
+ if (props === void 0) {
5249
+ props = {};
5250
+ }
5251
+ var _props = props,
5252
+ defaultIsOpen = _props.defaultIsOpen,
5253
+ isOpenProp = _props.isOpen,
5254
+ onCloseProp = _props.onClose,
5255
+ onOpenProp = _props.onOpen;
5256
+ var openCallback = useCallback(function () {
5257
+ onOpenProp == null || onOpenProp();
5258
+ }, [onOpenProp]);
5259
+ var closeCallback = useCallback(function () {
5260
+ onCloseProp == null || onCloseProp();
5261
+ }, [onCloseProp]);
5262
+ var _useState = useState(defaultIsOpen || false),
5263
+ isOpenState = _useState[0],
5264
+ setIsOpen = _useState[1];
5265
+ var isOpen = isOpenProp !== undefined ? isOpenProp : isOpenState;
5266
+ var isControlled = isOpenProp !== undefined;
5267
+ var handleClose = useCallback(function () {
5268
+ if (!isControlled) {
5269
+ setIsOpen(false);
5270
+ }
5271
+ closeCallback == null || closeCallback();
5272
+ }, [isControlled, closeCallback]);
5273
+ var handleOpen = useCallback(function () {
5274
+ if (!isControlled) {
5275
+ setIsOpen(true);
5276
+ }
5277
+ openCallback == null || openCallback();
5278
+ }, [isControlled, openCallback]);
5279
+ var handleToggle = useCallback(function () {
5280
+ if (isOpen) {
5281
+ handleClose();
5282
+ } else {
5283
+ handleOpen();
5284
+ }
5285
+ }, [isOpen, handleOpen, handleClose]);
5286
+ return {
5287
+ isOpen: isOpen,
5288
+ handleClose: handleClose,
5289
+ handleOpen: handleOpen,
5290
+ handleToggle: handleToggle
5291
+ };
5292
+ };
5293
+
5294
+ var useTheme = function useTheme() {
5295
+ var context = React__default.useContext(ThemeProviderContext);
5296
+ if (context === undefined) throw new Error('useTheme must be used within a ThemeProvider. Be sure your App is wrapped in ThemeProvider.');
5297
+ return context;
5298
+ };
5299
+
5300
+ export { Alert, AspectRatio, Badge, Box, Button, Card, CardBaseComponent, Checkbox, CheckboxInput, Collapsible, CollapsibleContent, CollapsibleTrigger, Details, DetailsBaseComponent, DetailsSummary, Drawer, DrawerCloseButton, DrawerContent, DrawerHeader, DrawerProvider, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, FormControl, FormLabel, FormikCheckboxInput, FormikRadioGroup, FormikSelectInput, FormikSelectInputInset, FormikSelectInputNative, FormikSwitch, FormikTextInput, FormikTextInputInset, FormikTextareaInput, FormikTextareaInputInset, FormikTimePicker, FormikTimePickerNative, FormikToggleGroup, FormikToggleGroupMulti, Heading, Icon, Modal, ModalBaseComponent, Pagination, Popover, PopoverAnchor, PopoverContent, PopoverPortal, PopoverTrigger, RadioGroup, RangeInput, ResponsiveContext, ResponsiveProvider, SelectInput, SelectInputInset, SelectInputNative, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupLabel, SidebarHeader, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarTrigger, Spinner, Switch, Table, TextInput, TextInputInset, TextareaInput, TextareaInputInset, ThemeProvider, ThemeProviderContext, TimePicker, TimePickerNative, ToastContainer, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipPortal, TooltipProvider, TooltipTrigger, boxPropsKeys, createRectRef, toast, useBreakpoint, useDrawer, useIsMobile, useIsomorphicLayoutEffect, useOpenClose, useSidebar, useTheme, useToasts, useWindowSize };
5464
5301
  //# sourceMappingURL=hyphen-components.esm.js.map