@hyphen/hyphen-components 2.12.3 → 2.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/RangeInput/RangeInput.d.ts +29 -0
- package/dist/components/RangeInput/RangeInput.stories.d.ts +7 -0
- package/dist/css/index.css +2 -1
- package/dist/hyphen-components.cjs.development.js +232 -197
- package/dist/hyphen-components.cjs.development.js.map +1 -1
- package/dist/hyphen-components.cjs.production.min.js +1 -1
- package/dist/hyphen-components.cjs.production.min.js.map +1 -1
- package/dist/hyphen-components.esm.js +232 -198
- package/dist/hyphen-components.esm.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/package.json +1 -1
- package/src/components/Modal/Modal.module.scss +1 -1
- package/src/components/RangeInput/RangeInput.mdx +25 -0
- package/src/components/RangeInput/RangeInput.module.scss +25 -0
- package/src/components/RangeInput/RangeInput.stories.tsx +43 -0
- package/src/components/RangeInput/RangeInput.test.tsx +36 -0
- package/src/components/RangeInput/RangeInput.tsx +65 -0
- package/src/index.ts +1 -0
|
@@ -239,9 +239,9 @@ Component, props, getDefault) {
|
|
|
239
239
|
return defaultProps.as || 'div';
|
|
240
240
|
}
|
|
241
241
|
|
|
242
|
-
var styles$
|
|
242
|
+
var styles$w = {"box-transition":"Box-module_box-transition__eQx8C"};
|
|
243
243
|
|
|
244
|
-
var _excluded$
|
|
244
|
+
var _excluded$J = ["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", "wrap", "width", "zIndex"];
|
|
245
245
|
/**
|
|
246
246
|
* A `<Box>` is a layout component to build UIs with consistent padding and spacing between
|
|
247
247
|
* elements.
|
|
@@ -328,7 +328,7 @@ var Box = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
328
328
|
width = _ref$width === void 0 ? undefined : _ref$width,
|
|
329
329
|
_ref$zIndex = _ref.zIndex,
|
|
330
330
|
zIndex = _ref$zIndex === void 0 ? undefined : _ref$zIndex,
|
|
331
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
331
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$J);
|
|
332
332
|
var heightCss = getDimensionCss('h', height);
|
|
333
333
|
var widthCss = getDimensionCss('w', width);
|
|
334
334
|
var maxHeightCss = getDimensionCss('mh', maxHeight);
|
|
@@ -377,7 +377,7 @@ var Box = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
377
377
|
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('position', position), generateResponsiveClasses('z-index', zIndex)].concat(hoverClasses != null ? hoverClasses : [], focusClasses != null ? focusClasses : [], [(_ref3 = {
|
|
378
378
|
'flex-wrap': isFlexBox && wrap,
|
|
379
379
|
'flex-nowrap': isFlexBox && wrap === false
|
|
380
|
-
}, _ref3["background-color-" + background] = background, _ref3["font-color-" + color] = color, _ref3["border-color-" + borderColor] = borderColor, _ref3["cursor-" + cursor] = cursor, _ref3[styles$
|
|
380
|
+
}, _ref3["background-color-" + background] = background, _ref3["font-color-" + color] = color, _ref3["border-color-" + borderColor] = borderColor, _ref3["cursor-" + cursor] = cursor, _ref3[styles$w['box-transition']] = hover || focus, _ref3)]));
|
|
381
381
|
var boxStyles = _extends({}, style, heightCss.styles, maxHeightCss.styles, maxWidthCss.styles, widthCss.styles, minHeightCss.styles, minWidthCss.styles);
|
|
382
382
|
/**
|
|
383
383
|
* Creates an object that maps the flex direction to either `right` or `bottom`
|
|
@@ -479,14 +479,14 @@ var Box = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
479
479
|
});
|
|
480
480
|
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', 'wrap', 'width', 'zIndex'];
|
|
481
481
|
|
|
482
|
-
var _excluded$
|
|
482
|
+
var _excluded$I = ["className", "name", "color", "size"];
|
|
483
483
|
var Icon = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
484
484
|
var _ref$className = _ref.className,
|
|
485
485
|
className = _ref$className === void 0 ? undefined : _ref$className,
|
|
486
486
|
name = _ref.name,
|
|
487
487
|
color = _ref.color,
|
|
488
488
|
size = _ref.size,
|
|
489
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
489
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$I);
|
|
490
490
|
var IconComponent = icons[name];
|
|
491
491
|
if (!IconComponent) console.error("Icon '" + name + "' not found"); // eslint-disable-line no-console
|
|
492
492
|
var iconClasses = classNames(className, generateResponsiveClasses('font-color', color), generateResponsiveClasses('font-size', size));
|
|
@@ -504,7 +504,7 @@ var Icon = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
504
504
|
}, "???");
|
|
505
505
|
});
|
|
506
506
|
|
|
507
|
-
var styles$
|
|
507
|
+
var styles$v = {"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"};
|
|
508
508
|
|
|
509
509
|
// eslint-disable-next-line import/prefer-default-export
|
|
510
510
|
var ALERT_ICONS_MAP = {
|
|
@@ -525,7 +525,7 @@ var ALERT_ICONS_MAP = {
|
|
|
525
525
|
}
|
|
526
526
|
};
|
|
527
527
|
|
|
528
|
-
var _excluded$
|
|
528
|
+
var _excluded$H = ["className", "closeText", "hasIcon", "isCompact", "isClosable", "message", "onClose", "render", "title", "variant"];
|
|
529
529
|
var Alert = function Alert(_ref) {
|
|
530
530
|
var _ref$className = _ref.className,
|
|
531
531
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
@@ -547,7 +547,7 @@ var Alert = function Alert(_ref) {
|
|
|
547
547
|
title = _ref$title === void 0 ? '' : _ref$title,
|
|
548
548
|
_ref$variant = _ref.variant,
|
|
549
549
|
variant = _ref$variant === void 0 ? 'default' : _ref$variant,
|
|
550
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
550
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$H);
|
|
551
551
|
var handleClose = function handleClose(event) {
|
|
552
552
|
if (!onClose) return;
|
|
553
553
|
onClose(event);
|
|
@@ -555,7 +555,7 @@ var Alert = function Alert(_ref) {
|
|
|
555
555
|
var renderAlertIcon = function renderAlertIcon() {
|
|
556
556
|
return React.createElement(Box, {
|
|
557
557
|
fontSize: "md",
|
|
558
|
-
className: styles$
|
|
558
|
+
className: styles$v["alert__icon__" + variant]
|
|
559
559
|
}, React.createElement(Icon, {
|
|
560
560
|
name: ALERT_ICONS_MAP[variant].icon,
|
|
561
561
|
"data-testid": "alert-icon-" + variant + "-test-id"
|
|
@@ -568,7 +568,7 @@ var Alert = function Alert(_ref) {
|
|
|
568
568
|
return React.createElement(Box, {
|
|
569
569
|
margin: "0 0 0 auto",
|
|
570
570
|
color: "secondary",
|
|
571
|
-
className: styles$
|
|
571
|
+
className: styles$v['close-icon']
|
|
572
572
|
}, React.createElement("button", {
|
|
573
573
|
type: "button",
|
|
574
574
|
onClick: handleClose,
|
|
@@ -578,7 +578,7 @@ var Alert = function Alert(_ref) {
|
|
|
578
578
|
"data-testid": "alert-close-icon-test-id"
|
|
579
579
|
})));
|
|
580
580
|
};
|
|
581
|
-
var alertContainerClasses = classNames(styles$
|
|
581
|
+
var alertContainerClasses = classNames(styles$v["alert__" + variant], styles$v.alert, className);
|
|
582
582
|
return React.createElement(Box, _extends({
|
|
583
583
|
alignItems: "flex-start",
|
|
584
584
|
gap: "md",
|
|
@@ -595,13 +595,13 @@ var Alert = function Alert(_ref) {
|
|
|
595
595
|
as: "h4",
|
|
596
596
|
fontSize: "sm",
|
|
597
597
|
fontWeight: "semibold",
|
|
598
|
-
className: styles$
|
|
598
|
+
className: styles$v['alert-heading']
|
|
599
599
|
}, title), message && (typeof message === 'string' ? React.createElement("p", null, message) : message))), isClosable && renderCloseIcon());
|
|
600
600
|
};
|
|
601
601
|
|
|
602
|
-
var styles$
|
|
602
|
+
var styles$u = {"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"};
|
|
603
603
|
|
|
604
|
-
var _excluded$
|
|
604
|
+
var _excluded$G = ["className", "message", "variant", "size"];
|
|
605
605
|
var Badge = function Badge(_ref) {
|
|
606
606
|
var _classNames;
|
|
607
607
|
var _ref$className = _ref.className,
|
|
@@ -612,24 +612,24 @@ var Badge = function Badge(_ref) {
|
|
|
612
612
|
variant = _ref$variant === void 0 ? 'light-grey' : _ref$variant,
|
|
613
613
|
_ref$size = _ref.size,
|
|
614
614
|
size = _ref$size === void 0 ? 'md' : _ref$size,
|
|
615
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
615
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$G);
|
|
616
616
|
var responsiveClasses = generateResponsiveClasses('size', size).map(function (c) {
|
|
617
|
-
return styles$
|
|
617
|
+
return styles$u[c];
|
|
618
618
|
});
|
|
619
|
-
var badgeClasses = classNames(styles$
|
|
619
|
+
var badgeClasses = classNames(styles$u.badge, className, responsiveClasses, (_classNames = {}, _classNames[styles$u[variant]] = variant, _classNames));
|
|
620
620
|
return React.createElement(Box, _extends({
|
|
621
621
|
className: badgeClasses,
|
|
622
622
|
display: "inline-block"
|
|
623
623
|
}, restProps), message);
|
|
624
624
|
};
|
|
625
625
|
|
|
626
|
-
var styles$
|
|
626
|
+
var styles$t = {"spinner":"Spinner-module_spinner__SZoUP","spin":"Spinner-module_spin__Yk0wm"};
|
|
627
627
|
|
|
628
628
|
var Spinner = function Spinner(_ref) {
|
|
629
629
|
var className = _ref.className,
|
|
630
630
|
_ref$size = _ref.size,
|
|
631
631
|
size = _ref$size === void 0 ? 'md' : _ref$size;
|
|
632
|
-
var classes = classNames(className, styles$
|
|
632
|
+
var classes = classNames(className, styles$t.spinner);
|
|
633
633
|
var sizeInPixels = function sizeInPixels() {
|
|
634
634
|
var pixels;
|
|
635
635
|
if (size === 'sm') pixels = '12';
|
|
@@ -745,9 +745,9 @@ var handleReactRouterClick = function handleReactRouterClick(event, onClick, tar
|
|
|
745
745
|
}
|
|
746
746
|
};
|
|
747
747
|
|
|
748
|
-
var styles$
|
|
748
|
+
var styles$s = {"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","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"};
|
|
749
749
|
|
|
750
|
-
var _excluded$
|
|
750
|
+
var _excluded$F = ["children", "as", "className", "fullWidth", "id", "href", "iconPrefix", "iconSuffix", "isDisabled", "isLoading", "navigate", "onClick", "onFocus", "onBlur", "tabIndex", "target", "type", "size", "variant"];
|
|
751
751
|
var Button = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
752
752
|
var _classNames;
|
|
753
753
|
var _ref$children = _ref.children,
|
|
@@ -788,12 +788,12 @@ var Button = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
788
788
|
size = _ref$size === void 0 ? 'md' : _ref$size,
|
|
789
789
|
_ref$variant = _ref.variant,
|
|
790
790
|
variant = _ref$variant === void 0 ? 'primary' : _ref$variant,
|
|
791
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
791
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$F);
|
|
792
792
|
var disabled = isLoading || isDisabled;
|
|
793
793
|
var responsiveClasses = generateResponsiveClasses('size', size).map(function (c) {
|
|
794
|
-
return styles$
|
|
794
|
+
return styles$s[c];
|
|
795
795
|
});
|
|
796
|
-
var buttonClasses = classNames('hyphen-components__variables__form-control', styles$
|
|
796
|
+
var buttonClasses = classNames('hyphen-components__variables__form-control', styles$s.button, className, responsiveClasses, (_classNames = {}, _classNames[styles$s.loading] = isLoading, _classNames[styles$s[variant]] = variant, _classNames[styles$s['full-width']] = fullWidth, _classNames));
|
|
797
797
|
var handleClick = handleReactRouterClick;
|
|
798
798
|
var handleFocus = function handleFocus(event) {
|
|
799
799
|
if (onFocus) onFocus(event);
|
|
@@ -807,29 +807,29 @@ var Button = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
807
807
|
alignItems: "center",
|
|
808
808
|
gap: "md"
|
|
809
809
|
}, isLoading && React.createElement(Spinner, {
|
|
810
|
-
className: styles$
|
|
810
|
+
className: styles$s['spinner-wrapper']
|
|
811
811
|
}), iconPrefix && React.createElement(Icon, {
|
|
812
|
-
className: styles$
|
|
812
|
+
className: styles$s.label,
|
|
813
813
|
name: iconPrefix,
|
|
814
814
|
"aria-hidden": "true",
|
|
815
815
|
focusable: "false",
|
|
816
816
|
"data-testid": "prefixIcon",
|
|
817
817
|
size: size === 'md' ? 'sm' : size
|
|
818
818
|
}), children && React.createElement("span", {
|
|
819
|
-
className: styles$
|
|
819
|
+
className: styles$s.label
|
|
820
820
|
}, children), iconSuffix && React.createElement(Icon, {
|
|
821
|
-
className: styles$
|
|
821
|
+
className: styles$s.label,
|
|
822
822
|
name: iconSuffix,
|
|
823
823
|
"aria-hidden": "true",
|
|
824
824
|
focusable: "false",
|
|
825
825
|
"data-testid": "suffixIcon",
|
|
826
826
|
size: size === 'md' ? 'sm' : size
|
|
827
827
|
})) : React.createElement(React.Fragment, null, isLoading && React.createElement(Spinner, {
|
|
828
|
-
className: styles$
|
|
828
|
+
className: styles$s['spinner-wrapper']
|
|
829
829
|
}), function () {
|
|
830
830
|
if (children) {
|
|
831
831
|
return React.createElement("span", {
|
|
832
|
-
className: styles$
|
|
832
|
+
className: styles$s.label
|
|
833
833
|
}, children);
|
|
834
834
|
}
|
|
835
835
|
return null;
|
|
@@ -854,7 +854,7 @@ var Button = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
854
854
|
}, restProps), buttonContent);
|
|
855
855
|
});
|
|
856
856
|
|
|
857
|
-
var _excluded$
|
|
857
|
+
var _excluded$E = ["background", "borderColor", "borderWidth", "children", "display", "padding"];
|
|
858
858
|
var CardFooter = function CardFooter(_ref) {
|
|
859
859
|
var _ref$background = _ref.background,
|
|
860
860
|
background = _ref$background === void 0 ? 'secondary' : _ref$background,
|
|
@@ -868,7 +868,7 @@ var CardFooter = function CardFooter(_ref) {
|
|
|
868
868
|
display = _ref$display === void 0 ? 'block' : _ref$display,
|
|
869
869
|
_ref$padding = _ref.padding,
|
|
870
870
|
padding = _ref$padding === void 0 ? '2xl' : _ref$padding,
|
|
871
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
871
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$E);
|
|
872
872
|
return React.createElement(Box, _extends({
|
|
873
873
|
display: display,
|
|
874
874
|
padding: padding,
|
|
@@ -887,9 +887,9 @@ var HEADING_DEFAULT_SIZE_MAP = {
|
|
|
887
887
|
h6: 'sm'
|
|
888
888
|
};
|
|
889
889
|
|
|
890
|
-
var styles$
|
|
890
|
+
var styles$r = {"heading":"Heading-module_heading__zKyv7"};
|
|
891
891
|
|
|
892
|
-
var _excluded$
|
|
892
|
+
var _excluded$D = ["as", "children", "className", "color", "size"];
|
|
893
893
|
var Heading = function Heading(_ref) {
|
|
894
894
|
var _classNames;
|
|
895
895
|
var _ref$as = _ref.as,
|
|
@@ -898,18 +898,18 @@ var Heading = function Heading(_ref) {
|
|
|
898
898
|
className = _ref.className,
|
|
899
899
|
color = _ref.color,
|
|
900
900
|
size = _ref.size,
|
|
901
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
901
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$D);
|
|
902
902
|
var element = getElementType(Heading, {
|
|
903
903
|
as: as
|
|
904
904
|
});
|
|
905
905
|
var headingSize = size || HEADING_DEFAULT_SIZE_MAP[as];
|
|
906
|
-
var classes = classNames(styles$
|
|
906
|
+
var classes = classNames(styles$r.heading, className, generateResponsiveClasses('heading', headingSize), (_classNames = {}, _classNames["font-color-" + color] = color, _classNames));
|
|
907
907
|
return createElement(element, _extends({
|
|
908
908
|
className: classes
|
|
909
909
|
}, restProps), children);
|
|
910
910
|
};
|
|
911
911
|
|
|
912
|
-
var _excluded$
|
|
912
|
+
var _excluded$C = ["childGap", "children", "className", "display", "padding", "title"];
|
|
913
913
|
var CardHeader = function CardHeader(_ref) {
|
|
914
914
|
var _ref$childGap = _ref.childGap,
|
|
915
915
|
childGap = _ref$childGap === void 0 ? '2xs' : _ref$childGap,
|
|
@@ -923,7 +923,7 @@ var CardHeader = function CardHeader(_ref) {
|
|
|
923
923
|
padding = _ref$padding === void 0 ? '2xl' : _ref$padding,
|
|
924
924
|
_ref$title = _ref.title,
|
|
925
925
|
title = _ref$title === void 0 ? null : _ref$title,
|
|
926
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
926
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$C);
|
|
927
927
|
var renderTitle = function renderTitle() {
|
|
928
928
|
return typeof title === 'string' ? React.createElement(Heading, {
|
|
929
929
|
size: "sm",
|
|
@@ -938,9 +938,9 @@ var CardHeader = function CardHeader(_ref) {
|
|
|
938
938
|
}, restProps), title && renderTitle(), children);
|
|
939
939
|
};
|
|
940
940
|
|
|
941
|
-
var styles$
|
|
941
|
+
var styles$q = {"card-section-border":"Card-module_card-section-border__OefDX"};
|
|
942
942
|
|
|
943
|
-
var _excluded$
|
|
943
|
+
var _excluded$B = ["background", "borderColor", "borderWidth", "children", "childGap", "gap", "className", "display", "padding", "subdued", "title"];
|
|
944
944
|
var CardSection = function CardSection(_ref) {
|
|
945
945
|
var _classNames;
|
|
946
946
|
var _ref$background = _ref.background,
|
|
@@ -965,7 +965,7 @@ var CardSection = function CardSection(_ref) {
|
|
|
965
965
|
subdued = _ref$subdued === void 0 ? undefined : _ref$subdued,
|
|
966
966
|
_ref$title = _ref.title,
|
|
967
967
|
title = _ref$title === void 0 ? undefined : _ref$title,
|
|
968
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
968
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$B);
|
|
969
969
|
var renderTitle = typeof title === 'string' ? React.createElement(Box, {
|
|
970
970
|
className: "m-bottom-md"
|
|
971
971
|
}, React.createElement(Box, {
|
|
@@ -974,7 +974,7 @@ var CardSection = function CardSection(_ref) {
|
|
|
974
974
|
fontSize: "sm",
|
|
975
975
|
color: "base"
|
|
976
976
|
}, title)) : title;
|
|
977
|
-
var sectionClasses = classNames((_classNames = {}, _classNames[styles$
|
|
977
|
+
var sectionClasses = classNames((_classNames = {}, _classNames[styles$q['card-section-border']] = borderColor === undefined && borderWidth === undefined, _classNames[styles$q['card-subdued']] = subdued, _classNames), className);
|
|
978
978
|
return React.createElement(Box, _extends({
|
|
979
979
|
background: background,
|
|
980
980
|
borderColor: borderColor,
|
|
@@ -988,7 +988,7 @@ var CardSection = function CardSection(_ref) {
|
|
|
988
988
|
}, children));
|
|
989
989
|
};
|
|
990
990
|
|
|
991
|
-
var _excluded$
|
|
991
|
+
var _excluded$A = ["children", "subdued", "overflow", "display", "width"];
|
|
992
992
|
var CardBaseComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
993
993
|
var children = _ref.children,
|
|
994
994
|
subdued = _ref.subdued,
|
|
@@ -998,7 +998,7 @@ var CardBaseComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
998
998
|
display = _ref$display === void 0 ? 'block' : _ref$display,
|
|
999
999
|
_ref$width = _ref.width,
|
|
1000
1000
|
width = _ref$width === void 0 ? '100' : _ref$width,
|
|
1001
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1001
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$A);
|
|
1002
1002
|
return React.createElement(Box, _extends({
|
|
1003
1003
|
background: subdued ? 'secondary' : 'primary',
|
|
1004
1004
|
borderWidth: "sm",
|
|
@@ -1021,7 +1021,7 @@ var Card = /*#__PURE__*/function () {
|
|
|
1021
1021
|
return Card;
|
|
1022
1022
|
}();
|
|
1023
1023
|
|
|
1024
|
-
var _excluded$
|
|
1024
|
+
var _excluded$z = ["className", "error", "isChecked", "isDisabled", "isIndeterminate"];
|
|
1025
1025
|
var CheckboxIcon = function CheckboxIcon(_ref) {
|
|
1026
1026
|
var _ref$className = _ref.className,
|
|
1027
1027
|
className = _ref$className === void 0 ? undefined : _ref$className,
|
|
@@ -1033,7 +1033,7 @@ var CheckboxIcon = function CheckboxIcon(_ref) {
|
|
|
1033
1033
|
isDisabled = _ref$isDisabled === void 0 ? false : _ref$isDisabled,
|
|
1034
1034
|
_ref$isIndeterminate = _ref.isIndeterminate,
|
|
1035
1035
|
isIndeterminate = _ref$isIndeterminate === void 0 ? false : _ref$isIndeterminate,
|
|
1036
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1036
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$z);
|
|
1037
1037
|
var color = 'base';
|
|
1038
1038
|
var name = 'checkbox-btn';
|
|
1039
1039
|
if (isChecked) name = 'checkbox-btn-checked';else name = 'checkbox-btn';
|
|
@@ -1056,9 +1056,9 @@ var CheckboxIcon = function CheckboxIcon(_ref) {
|
|
|
1056
1056
|
}));
|
|
1057
1057
|
};
|
|
1058
1058
|
|
|
1059
|
-
var styles$
|
|
1059
|
+
var styles$p = {"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"};
|
|
1060
1060
|
|
|
1061
|
-
var _excluded$
|
|
1061
|
+
var _excluded$y = ["className", "display", "id", "isChecked", "label", "labelledby", "onChange", "error", "isDisabled", "isHidden", "isIndeterminate", "isRequired", "onBlur", "onFocus", "size", "value"];
|
|
1062
1062
|
var Checkbox = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
1063
1063
|
var _ref2;
|
|
1064
1064
|
var _ref$className = _ref.className,
|
|
@@ -1088,7 +1088,7 @@ var Checkbox = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
1088
1088
|
size = _ref$size === void 0 ? 'md' : _ref$size,
|
|
1089
1089
|
_ref$value = _ref.value,
|
|
1090
1090
|
value = _ref$value === void 0 ? undefined : _ref$value,
|
|
1091
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1091
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$y);
|
|
1092
1092
|
var inputRef = React.useRef(null);
|
|
1093
1093
|
React.useEffect(function () {
|
|
1094
1094
|
if (inputRef != null && inputRef.current) {
|
|
@@ -1122,11 +1122,11 @@ var Checkbox = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
1122
1122
|
value: value
|
|
1123
1123
|
});
|
|
1124
1124
|
var responsiveClasses = generateResponsiveClasses('size', size);
|
|
1125
|
-
var containerClasses = classNames.apply(void 0, [styles$
|
|
1126
|
-
return styles$
|
|
1127
|
-
}), [(_ref2 = {}, _ref2[styles$
|
|
1125
|
+
var containerClasses = classNames.apply(void 0, [styles$p.checkbox, className].concat(responsiveClasses.map(function (c) {
|
|
1126
|
+
return styles$p[c];
|
|
1127
|
+
}), [(_ref2 = {}, _ref2[styles$p.hidden] = isHidden, _ref2)]));
|
|
1128
1128
|
var iconClasses = classNames.apply(void 0, responsiveClasses.map(function (c) {
|
|
1129
|
-
return styles$
|
|
1129
|
+
return styles$p[c];
|
|
1130
1130
|
}));
|
|
1131
1131
|
return React.createElement(Box, _extends({
|
|
1132
1132
|
display: display,
|
|
@@ -1149,35 +1149,35 @@ var Checkbox = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
1149
1149
|
}));
|
|
1150
1150
|
});
|
|
1151
1151
|
|
|
1152
|
-
var styles$
|
|
1152
|
+
var styles$o = {"input-validation-message":"InputValidationMessage-module_input-validation-message__4MMMK"};
|
|
1153
1153
|
|
|
1154
1154
|
var InputValidationMessage = function InputValidationMessage(_ref) {
|
|
1155
1155
|
var children = _ref.children,
|
|
1156
1156
|
_ref$size = _ref.size,
|
|
1157
1157
|
size = _ref$size === void 0 ? 'sm' : _ref$size;
|
|
1158
|
-
var classes = classNames('hyphen-components__variables__form-control', styles$
|
|
1158
|
+
var classes = classNames('hyphen-components__variables__form-control', styles$o['input-validation-message'], 'font-color-danger', "font-size-" + size, 'm-top-sm');
|
|
1159
1159
|
return React.createElement("div", {
|
|
1160
1160
|
className: classes
|
|
1161
1161
|
}, children);
|
|
1162
1162
|
};
|
|
1163
1163
|
|
|
1164
|
-
var styles$
|
|
1164
|
+
var styles$n = {"label":"FormLabel-module_label__qTUB9","radio-input-label":"FormLabel-module_radio-input-label__IpAiN","disabled":"FormLabel-module_disabled__83oiH"};
|
|
1165
1165
|
|
|
1166
|
-
var styles$
|
|
1166
|
+
var styles$m = {"help-text":"HelpText-module_help-text__8WodW"};
|
|
1167
1167
|
|
|
1168
1168
|
var HelpText = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
1169
1169
|
var children = _ref.children,
|
|
1170
1170
|
className = _ref.className;
|
|
1171
1171
|
return React.createElement(Box, {
|
|
1172
1172
|
ref: ref,
|
|
1173
|
-
className: classNames('hyphen-components__variables__form-control', styles$
|
|
1173
|
+
className: classNames('hyphen-components__variables__form-control', styles$m['help-text'], className),
|
|
1174
1174
|
display: "block",
|
|
1175
1175
|
color: "secondary",
|
|
1176
1176
|
fontSize: "sm"
|
|
1177
1177
|
}, children);
|
|
1178
1178
|
});
|
|
1179
1179
|
|
|
1180
|
-
var _excluded$
|
|
1180
|
+
var _excluded$x = ["children", "inputId", "className", "display", "helpText", "isDisabled", "isFieldRequired", "isRadioInputLabel", "requiredIndicator", "margin", "padding"];
|
|
1181
1181
|
var FormLabel = function FormLabel(_ref) {
|
|
1182
1182
|
var _classNames;
|
|
1183
1183
|
var children = _ref.children,
|
|
@@ -1199,8 +1199,8 @@ var FormLabel = function FormLabel(_ref) {
|
|
|
1199
1199
|
margin = _ref$margin === void 0 ? '0' : _ref$margin,
|
|
1200
1200
|
_ref$padding = _ref.padding,
|
|
1201
1201
|
padding = _ref$padding === void 0 ? '0' : _ref$padding,
|
|
1202
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1203
|
-
var labelClasses = classNames('hyphen-components__variables__form-control', styles$
|
|
1202
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$x);
|
|
1203
|
+
var labelClasses = classNames('hyphen-components__variables__form-control', styles$n.label, className, (_classNames = {}, _classNames[styles$n.disabled] = isDisabled, _classNames[styles$n.disabled] = isDisabled, _classNames[styles$n['radio-input-label']] = isRadioInputLabel, _classNames));
|
|
1204
1204
|
return React.createElement(Box, _extends({
|
|
1205
1205
|
as: "label",
|
|
1206
1206
|
id: inputId + "Label",
|
|
@@ -1212,7 +1212,7 @@ var FormLabel = function FormLabel(_ref) {
|
|
|
1212
1212
|
}, restProps), children, isFieldRequired && requiredIndicator && React.createElement("span", null, requiredIndicator), helpText && React.createElement(HelpText, null, helpText));
|
|
1213
1213
|
};
|
|
1214
1214
|
|
|
1215
|
-
var _excluded$
|
|
1215
|
+
var _excluded$w = ["id", "isChecked", "label", "onChange", "className", "error", "hideLabel", "helpText", "isDisabled", "isIndeterminate", "isRequired", "onBlur", "onFocus", "requiredIndicator", "size"];
|
|
1216
1216
|
var labelMarginSizeMap = {
|
|
1217
1217
|
sm: '2xs 0 0 0',
|
|
1218
1218
|
md: 'xs 0 0 0',
|
|
@@ -1257,7 +1257,7 @@ var CheckboxInput = function CheckboxInput(_ref2) {
|
|
|
1257
1257
|
requiredIndicator = _ref2$requiredIndicat === void 0 ? ' *' : _ref2$requiredIndicat,
|
|
1258
1258
|
_ref2$size = _ref2.size,
|
|
1259
1259
|
size = _ref2$size === void 0 ? 'md' : _ref2$size,
|
|
1260
|
-
restProps = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
1260
|
+
restProps = _objectWithoutPropertiesLoose(_ref2, _excluded$w);
|
|
1261
1261
|
var handleBlur = function handleBlur(event) {
|
|
1262
1262
|
if (onBlur) onBlur(event);
|
|
1263
1263
|
};
|
|
@@ -1299,9 +1299,9 @@ var CheckboxInput = function CheckboxInput(_ref2) {
|
|
|
1299
1299
|
})), label && !hideLabel && React.createElement(FormLabel, _extends({}, labelProps), label)), error && error !== true && React.createElement(InputValidationMessage, null, error));
|
|
1300
1300
|
};
|
|
1301
1301
|
|
|
1302
|
-
var styles$
|
|
1302
|
+
var styles$l = {};
|
|
1303
1303
|
|
|
1304
|
-
var _excluded$
|
|
1304
|
+
var _excluded$v = ["children", "dayClassName", "maxDate", "minDate", "monthsShown", "openToDate", "startDate", "selected", "selectsRange", "showTwoColumnMonthYearPicker", "showFullMonthYearPicker", "showMonthYearPicker", "className", "formatWeekDay"];
|
|
1305
1305
|
var DatePicker = function DatePicker(_ref) {
|
|
1306
1306
|
var _ref$children = _ref.children,
|
|
1307
1307
|
children = _ref$children === void 0 ? null : _ref$children,
|
|
@@ -1333,8 +1333,8 @@ var DatePicker = function DatePicker(_ref) {
|
|
|
1333
1333
|
formatWeekDay = _ref$formatWeekDay === void 0 ? function (formattedDate) {
|
|
1334
1334
|
return formattedDate[0];
|
|
1335
1335
|
} : _ref$formatWeekDay,
|
|
1336
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1337
|
-
var datePickerClasses = classNames(styles$
|
|
1336
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$v);
|
|
1337
|
+
var datePickerClasses = classNames(styles$l['react-datepicker'], className);
|
|
1338
1338
|
return React.createElement(ReactDatePicker, _extends({
|
|
1339
1339
|
inline: true,
|
|
1340
1340
|
calendarClassName: datePickerClasses,
|
|
@@ -1353,7 +1353,7 @@ var DatePicker = function DatePicker(_ref) {
|
|
|
1353
1353
|
}, restProps), children);
|
|
1354
1354
|
};
|
|
1355
1355
|
|
|
1356
|
-
var _excluded$
|
|
1356
|
+
var _excluded$u = ["label", "hideLabel", "children", "error", "id", "isRequired", "helpText", "isDisabled", "requiredIndicator", "width"];
|
|
1357
1357
|
var FormControl = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
1358
1358
|
var label = _ref.label,
|
|
1359
1359
|
hideLabel = _ref.hideLabel,
|
|
@@ -1366,7 +1366,7 @@ var FormControl = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
1366
1366
|
requiredIndicator = _ref.requiredIndicator,
|
|
1367
1367
|
_ref$width = _ref.width,
|
|
1368
1368
|
width = _ref$width === void 0 ? '100' : _ref$width,
|
|
1369
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1369
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$u);
|
|
1370
1370
|
var labelProps = {
|
|
1371
1371
|
inputId: id,
|
|
1372
1372
|
helpText: helpText,
|
|
@@ -1392,9 +1392,9 @@ function getAutoCompleteValue(value) {
|
|
|
1392
1392
|
return value;
|
|
1393
1393
|
}
|
|
1394
1394
|
|
|
1395
|
-
var styles$
|
|
1395
|
+
var styles$k = {"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"};
|
|
1396
1396
|
|
|
1397
|
-
var _excluded$
|
|
1397
|
+
var _excluded$t = ["id", "label", "onChange", "value", "autoComplete", "autoFocus", "error", "helpText", "hideLabel", "inputProps", "isDisabled", "isRequired", "maxLength", "name", "onBlur", "onClear", "onFocus", "prefix", "placeholder", "requiredIndicator", "suffix", "size", "type"];
|
|
1398
1398
|
var TextInput = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
1399
1399
|
var _ref2;
|
|
1400
1400
|
var id = _ref.id,
|
|
@@ -1438,12 +1438,12 @@ var TextInput = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
1438
1438
|
size = _ref$size === void 0 ? 'md' : _ref$size,
|
|
1439
1439
|
_ref$type = _ref.type,
|
|
1440
1440
|
type = _ref$type === void 0 ? 'text' : _ref$type,
|
|
1441
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1441
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$t);
|
|
1442
1442
|
var responsiveClasses = generateResponsiveClasses('size', size);
|
|
1443
|
-
var inputWrapperClasses = classNames.apply(void 0, ['hyphen-components__variables__form-control', styles$
|
|
1444
|
-
return styles$
|
|
1445
|
-
}), [(_ref2 = {}, _ref2[styles$
|
|
1446
|
-
var clearBtnClasses = classNames(styles$
|
|
1443
|
+
var inputWrapperClasses = classNames.apply(void 0, ['hyphen-components__variables__form-control', styles$k['text-input-wrapper']].concat(responsiveClasses.map(function (c) {
|
|
1444
|
+
return styles$k[c];
|
|
1445
|
+
}), [(_ref2 = {}, _ref2[styles$k.error] = error, _ref2[styles$k.disabled] = isDisabled, _ref2[styles$k['is-clearable']] = onClear, _ref2)]));
|
|
1446
|
+
var clearBtnClasses = classNames(styles$k['clear-button'], styles$k.md);
|
|
1447
1447
|
var renderClearIcon = function renderClearIcon() {
|
|
1448
1448
|
var handleKeyPress = function handleKeyPress(event) {
|
|
1449
1449
|
if (event.keyCode === 13 && onClear) onClear(event);
|
|
@@ -1502,17 +1502,17 @@ var TextInput = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
1502
1502
|
}, prefix && React.createElement(Box, {
|
|
1503
1503
|
color: "secondary",
|
|
1504
1504
|
background: "secondary",
|
|
1505
|
-
className: classNames(styles$
|
|
1505
|
+
className: classNames(styles$k.prefix, 'ws-nowrap')
|
|
1506
1506
|
}, prefix), React.createElement(Box, _extends({
|
|
1507
1507
|
as: "input"
|
|
1508
1508
|
}, computedInputProps)), !!onClear && !!value && renderClearIcon(), suffix && React.createElement(Box, {
|
|
1509
1509
|
color: "secondary",
|
|
1510
1510
|
background: "secondary",
|
|
1511
|
-
className: classNames(styles$
|
|
1511
|
+
className: classNames(styles$k.suffix, 'ws-nowrap')
|
|
1512
1512
|
}, suffix)));
|
|
1513
1513
|
});
|
|
1514
1514
|
|
|
1515
|
-
var styles$
|
|
1515
|
+
var styles$j = {"popover":"Popover-module_popover__rvS3X","fadeIn":"Popover-module_fadeIn__0btE5","popover-arrow":"Popover-module_popover-arrow__SLtPW"};
|
|
1516
1516
|
|
|
1517
1517
|
// eslint-disable-next-line import/prefer-default-export
|
|
1518
1518
|
var getColumnKeys = function getColumnKeys(columns) {
|
|
@@ -1587,7 +1587,7 @@ var BREAKPOINTS = /*#__PURE__*/[].concat(Object.entries(designTokens.size.breakp
|
|
|
1587
1587
|
var Z_INDEX_VALUES = designTokens.size['z-index'];
|
|
1588
1588
|
// export const BOX_SHADOW_VALUES = designTokens.size['box-shadow'];
|
|
1589
1589
|
|
|
1590
|
-
var _excluded$
|
|
1590
|
+
var _excluded$s = ["className", "isOpen", "children", "content", "arrowColor", "contentContainerProps", "hasArrow", "offsetFromTarget", "onClickOutside", "placement", "withPortal", "portalTarget", "trapFocus"];
|
|
1591
1591
|
var contentContainerDefaults = {
|
|
1592
1592
|
background: 'primary',
|
|
1593
1593
|
padding: 'sm',
|
|
@@ -1616,7 +1616,7 @@ var Popover = function Popover(_ref) {
|
|
|
1616
1616
|
portalTarget = _ref.portalTarget,
|
|
1617
1617
|
_ref$trapFocus = _ref.trapFocus,
|
|
1618
1618
|
trapFocus = _ref$trapFocus === void 0 ? false : _ref$trapFocus,
|
|
1619
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1619
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$s);
|
|
1620
1620
|
var triggerRef = useRef(null);
|
|
1621
1621
|
var popperRef = useRef(null);
|
|
1622
1622
|
var _useState = useState(null),
|
|
@@ -1670,14 +1670,14 @@ var Popover = function Popover(_ref) {
|
|
|
1670
1670
|
attributes = _usePopper.attributes;
|
|
1671
1671
|
var containerBoxProps = _extends({}, contentContainerDefaults, contentContainerProps);
|
|
1672
1672
|
var computedArrowColor = arrowColor || containerBoxProps.background;
|
|
1673
|
-
var arrowClasses = classNames(styles$
|
|
1673
|
+
var arrowClasses = classNames(styles$j['popover-arrow'], "background-color-" + computedArrowColor, {
|
|
1674
1674
|
'display-none': !hasArrow
|
|
1675
1675
|
});
|
|
1676
1676
|
var renderPopperContent = function renderPopperContent() {
|
|
1677
1677
|
var renderPopperBox = function renderPopperBox() {
|
|
1678
1678
|
return React.createElement(Box, _extends({
|
|
1679
1679
|
ref: popperRef,
|
|
1680
|
-
className: classNames(styles$
|
|
1680
|
+
className: classNames(styles$j.popover, className),
|
|
1681
1681
|
style: popperStyles.popper,
|
|
1682
1682
|
role: "dialog",
|
|
1683
1683
|
"aria-label": "Popover",
|
|
@@ -1722,7 +1722,7 @@ var Popover = function Popover(_ref) {
|
|
|
1722
1722
|
withPortal && portalTarget ? createPortal(renderPopperContent(), portalTarget) : renderPopperContent()));
|
|
1723
1723
|
};
|
|
1724
1724
|
|
|
1725
|
-
var _excluded$
|
|
1725
|
+
var _excluded$r = ["datePickerProps", "textInputProps", "dateFormat", "dateOptions", "popoverProps"];
|
|
1726
1726
|
var defaultDatePickerProps = {
|
|
1727
1727
|
selected: null,
|
|
1728
1728
|
selectsRange: false
|
|
@@ -1742,7 +1742,7 @@ var DateInput = function DateInput(_ref) {
|
|
|
1742
1742
|
dateOptions = _ref$dateOptions === void 0 ? undefined : _ref$dateOptions,
|
|
1743
1743
|
_ref$popoverProps = _ref.popoverProps,
|
|
1744
1744
|
popoverProps = _ref$popoverProps === void 0 ? _extends({}, defaultPopoverProps) : _ref$popoverProps,
|
|
1745
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1745
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$r);
|
|
1746
1746
|
var mergedDatePickerProps = _extends({}, defaultDatePickerProps, datePickerProps);
|
|
1747
1747
|
var mergedPopoverProps = _extends({}, defaultPopoverProps, popoverProps);
|
|
1748
1748
|
var mergedTextInputProps = _extends({}, defaultTextInputProps, textInputProps);
|
|
@@ -1819,14 +1819,14 @@ var DateInput = function DateInput(_ref) {
|
|
|
1819
1819
|
var ENTER = 13;
|
|
1820
1820
|
var SPACE = 32;
|
|
1821
1821
|
|
|
1822
|
-
var _excluded$
|
|
1822
|
+
var _excluded$q = ["children", "display", "isDetailsOpen", "onToggle"];
|
|
1823
1823
|
var DetailsSummary = function DetailsSummary(_ref) {
|
|
1824
1824
|
var children = _ref.children,
|
|
1825
1825
|
_ref$display = _ref.display,
|
|
1826
1826
|
display = _ref$display === void 0 ? 'block' : _ref$display,
|
|
1827
1827
|
isDetailsOpen = _ref.isDetailsOpen,
|
|
1828
1828
|
onToggle = _ref.onToggle,
|
|
1829
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1829
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$q);
|
|
1830
1830
|
var handleClick = function handleClick(event) {
|
|
1831
1831
|
// Needed to avoid default `details` behavior on a click event and keep this as controlled component.
|
|
1832
1832
|
event.preventDefault();
|
|
@@ -1862,17 +1862,17 @@ var DetailsSummary = function DetailsSummary(_ref) {
|
|
|
1862
1862
|
}), children);
|
|
1863
1863
|
};
|
|
1864
1864
|
|
|
1865
|
-
var styles$
|
|
1865
|
+
var styles$i = {"details-reset":"Details-module_details-reset__HWtSD"};
|
|
1866
1866
|
|
|
1867
|
-
var _excluded$
|
|
1867
|
+
var _excluded$p = ["children", "className", "display", "isOpen"];
|
|
1868
1868
|
var DetailsBaseComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
1869
1869
|
var children = _ref.children,
|
|
1870
1870
|
className = _ref.className,
|
|
1871
1871
|
_ref$display = _ref.display,
|
|
1872
1872
|
display = _ref$display === void 0 ? 'block' : _ref$display,
|
|
1873
1873
|
isOpen = _ref.isOpen,
|
|
1874
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1875
|
-
var detailsClasses = classNames(className, styles$
|
|
1874
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$p);
|
|
1875
|
+
var detailsClasses = classNames(className, styles$i['details-reset'], styles$i.details);
|
|
1876
1876
|
return React.createElement(Box, _extends({
|
|
1877
1877
|
as: "details",
|
|
1878
1878
|
className: detailsClasses,
|
|
@@ -1889,7 +1889,7 @@ var Details = /*#__PURE__*/function () {
|
|
|
1889
1889
|
return Details;
|
|
1890
1890
|
}();
|
|
1891
1891
|
|
|
1892
|
-
var styles$
|
|
1892
|
+
var styles$h = {"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"};
|
|
1893
1893
|
|
|
1894
1894
|
var Drawer = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
1895
1895
|
var _dynamicStyle, _classNames, _classNames2;
|
|
@@ -1935,8 +1935,8 @@ var Drawer = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
1935
1935
|
}, [initialFocusRef]);
|
|
1936
1936
|
var dynamicWidth = width;
|
|
1937
1937
|
var dynamicStyle = (_dynamicStyle = {}, _dynamicStyle['--w'] = dynamicWidth, _dynamicStyle);
|
|
1938
|
-
var overlayClassnames = classNames(styles$
|
|
1939
|
-
var contentClassnames = classNames(styles$
|
|
1938
|
+
var overlayClassnames = classNames(styles$h.overlay, styles$h.drawer, (_classNames = {}, _classNames[styles$h['hide-overlay']] = hideOverlay, _classNames[styles$h["hide-overlay-" + placement]] = hideOverlay, _classNames['position-fixed'] = containerRef === undefined, _classNames['position-absolute'] = containerRef !== undefined, _classNames));
|
|
1939
|
+
var contentClassnames = classNames(styles$h['drawer-content'], styles$h[placement], (_classNames2 = {}, _classNames2[styles$h['hide-overlay']] = hideOverlay, _classNames2['overflow-auto'] = !closeButton && !title, _classNames2.className = className, _classNames2));
|
|
1940
1940
|
var renderHeader = function renderHeader() {
|
|
1941
1941
|
if (closeButton && onDismiss && !title) {
|
|
1942
1942
|
return React.createElement(Box, {
|
|
@@ -1958,7 +1958,7 @@ var Drawer = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
1958
1958
|
alignItems: "center",
|
|
1959
1959
|
padding: "2xl"
|
|
1960
1960
|
}, React.createElement(Box, {
|
|
1961
|
-
className: styles$
|
|
1961
|
+
className: styles$h.title,
|
|
1962
1962
|
fontWeight: "bold"
|
|
1963
1963
|
}, title), onDismiss && React.createElement(Button, {
|
|
1964
1964
|
variant: "tertiary",
|
|
@@ -2006,7 +2006,7 @@ var Drawer = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
2006
2006
|
}, renderHeader(), content)))));
|
|
2007
2007
|
});
|
|
2008
2008
|
|
|
2009
|
-
var _excluded$
|
|
2009
|
+
var _excluded$o = ["field", "form", "onChange", "id", "label"];
|
|
2010
2010
|
var FormikCheckboxInput = function FormikCheckboxInput(_ref) {
|
|
2011
2011
|
var _ref$field = _ref.field,
|
|
2012
2012
|
name = _ref$field.name,
|
|
@@ -2019,7 +2019,7 @@ var FormikCheckboxInput = function FormikCheckboxInput(_ref) {
|
|
|
2019
2019
|
onChange = _ref.onChange,
|
|
2020
2020
|
id = _ref.id,
|
|
2021
2021
|
label = _ref.label,
|
|
2022
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2022
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$o);
|
|
2023
2023
|
return React.createElement(CheckboxInput, _extends({}, props, {
|
|
2024
2024
|
id: id,
|
|
2025
2025
|
label: label,
|
|
@@ -2030,7 +2030,7 @@ var FormikCheckboxInput = function FormikCheckboxInput(_ref) {
|
|
|
2030
2030
|
}));
|
|
2031
2031
|
};
|
|
2032
2032
|
|
|
2033
|
-
var _excluded$
|
|
2033
|
+
var _excluded$n = ["className", "isSelected", "isDisabled", "error"];
|
|
2034
2034
|
var RadioInputIcon = function RadioInputIcon(_ref) {
|
|
2035
2035
|
var _ref$className = _ref.className,
|
|
2036
2036
|
className = _ref$className === void 0 ? undefined : _ref$className,
|
|
@@ -2040,7 +2040,7 @@ var RadioInputIcon = function RadioInputIcon(_ref) {
|
|
|
2040
2040
|
isDisabled = _ref$isDisabled === void 0 ? false : _ref$isDisabled,
|
|
2041
2041
|
_ref$error = _ref.error,
|
|
2042
2042
|
error = _ref$error === void 0 ? null : _ref$error,
|
|
2043
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2043
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$n);
|
|
2044
2044
|
var color = 'secondary';
|
|
2045
2045
|
var name = 'radio-btn-unchecked';
|
|
2046
2046
|
if (isSelected && isDisabled) {
|
|
@@ -2062,7 +2062,7 @@ var RadioInputIcon = function RadioInputIcon(_ref) {
|
|
|
2062
2062
|
}));
|
|
2063
2063
|
};
|
|
2064
2064
|
|
|
2065
|
-
var styles$
|
|
2065
|
+
var styles$g = {"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"};
|
|
2066
2066
|
|
|
2067
2067
|
var RadioInput = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
2068
2068
|
var _classNames;
|
|
@@ -2086,7 +2086,7 @@ var RadioInput = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
2086
2086
|
_ref$size = _ref.size,
|
|
2087
2087
|
size = _ref$size === void 0 ? 'md' : _ref$size;
|
|
2088
2088
|
var responsiveClasses = classNames.apply(void 0, generateResponsiveClasses('size', size).map(function (c) {
|
|
2089
|
-
return styles$
|
|
2089
|
+
return styles$g[c];
|
|
2090
2090
|
}));
|
|
2091
2091
|
var labelProps = {
|
|
2092
2092
|
inputId: option.id,
|
|
@@ -2095,7 +2095,7 @@ var RadioInput = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
2095
2095
|
isRadioInputLabel: true,
|
|
2096
2096
|
justifyContent: 'center'
|
|
2097
2097
|
};
|
|
2098
|
-
var containerClasses = classNames('hyphen-components__variables__form-control', className, styles$
|
|
2098
|
+
var containerClasses = classNames('hyphen-components__variables__form-control', className, styles$g['radio-container'], responsiveClasses, (_classNames = {}, _classNames[styles$g.hidden] = isHidden, _classNames));
|
|
2099
2099
|
return React.createElement(React.Fragment, null, option && React.createElement(Box, {
|
|
2100
2100
|
className: containerClasses,
|
|
2101
2101
|
key: option.id,
|
|
@@ -2131,9 +2131,9 @@ var RadioInput = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
2131
2131
|
}), option.label && React.createElement(FormLabel, _extends({}, labelProps), option.label)));
|
|
2132
2132
|
});
|
|
2133
2133
|
|
|
2134
|
-
var styles$
|
|
2134
|
+
var styles$f = {"radio-group":"RadioGroup-module_radio-group__FWPcT","fieldset":"RadioGroup-module_fieldset__PEUXI","legend":"RadioGroup-module_legend__tcfV7","description":"RadioGroup-module_description__8fzM-"};
|
|
2135
2135
|
|
|
2136
|
-
var _excluded$
|
|
2136
|
+
var _excluded$m = ["name", "onChange", "options", "className", "description", "direction", "error", "isDisabled", "isRequired", "onBlur", "onFocus", "requiredIndicator", "size", "title", "value"];
|
|
2137
2137
|
var RadioGroup = function RadioGroup(_ref) {
|
|
2138
2138
|
var _classNames;
|
|
2139
2139
|
var name = _ref.name,
|
|
@@ -2163,20 +2163,20 @@ var RadioGroup = function RadioGroup(_ref) {
|
|
|
2163
2163
|
title = _ref$title === void 0 ? undefined : _ref$title,
|
|
2164
2164
|
_ref$value = _ref.value,
|
|
2165
2165
|
value = _ref$value === void 0 ? undefined : _ref$value,
|
|
2166
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2167
|
-
var groupClasses = classNames('hyphen-components__variables__form-control', className, (_classNames = {}, _classNames[styles$
|
|
2166
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$m);
|
|
2167
|
+
var groupClasses = classNames('hyphen-components__variables__form-control', className, (_classNames = {}, _classNames[styles$f.loading] = error, _classNames));
|
|
2168
2168
|
return React.createElement("div", _extends({
|
|
2169
|
-
className: classNames(styles$
|
|
2169
|
+
className: classNames(styles$f['radio-group'], groupClasses)
|
|
2170
2170
|
}, restProps), React.createElement("fieldset", {
|
|
2171
|
-
className: styles$
|
|
2171
|
+
className: styles$f.fieldset
|
|
2172
2172
|
}, (title || description) && React.createElement("legend", {
|
|
2173
|
-
className: styles$
|
|
2173
|
+
className: styles$f.legend
|
|
2174
2174
|
}, title, isRequired && React.createElement("span", null, requiredIndicator), description && React.createElement("div", {
|
|
2175
|
-
className: styles$
|
|
2175
|
+
className: styles$f.description
|
|
2176
2176
|
}, description)), React.createElement(Box, {
|
|
2177
2177
|
direction: direction,
|
|
2178
2178
|
gap: "sm",
|
|
2179
|
-
className: styles$
|
|
2179
|
+
className: styles$f.options
|
|
2180
2180
|
}, options && options.map(function (option) {
|
|
2181
2181
|
return React.createElement(RadioInput, {
|
|
2182
2182
|
key: option.id,
|
|
@@ -2193,7 +2193,7 @@ var RadioGroup = function RadioGroup(_ref) {
|
|
|
2193
2193
|
}))), error && typeof error !== 'boolean' && React.createElement(InputValidationMessage, null, error));
|
|
2194
2194
|
};
|
|
2195
2195
|
|
|
2196
|
-
var _excluded$
|
|
2196
|
+
var _excluded$l = ["field", "form", "onChange", "options"];
|
|
2197
2197
|
var FormikRadioGroup = function FormikRadioGroup(_ref) {
|
|
2198
2198
|
var _ref$field = _ref.field,
|
|
2199
2199
|
name = _ref$field.name,
|
|
@@ -2205,7 +2205,7 @@ var FormikRadioGroup = function FormikRadioGroup(_ref) {
|
|
|
2205
2205
|
errors = _ref$form.errors,
|
|
2206
2206
|
onChange = _ref.onChange,
|
|
2207
2207
|
options = _ref.options,
|
|
2208
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2208
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$l);
|
|
2209
2209
|
return React.createElement(RadioGroup, _extends({}, props, {
|
|
2210
2210
|
options: options,
|
|
2211
2211
|
name: name,
|
|
@@ -2216,9 +2216,9 @@ var FormikRadioGroup = function FormikRadioGroup(_ref) {
|
|
|
2216
2216
|
}));
|
|
2217
2217
|
};
|
|
2218
2218
|
|
|
2219
|
-
var styles$
|
|
2219
|
+
var styles$e = {"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"};
|
|
2220
2220
|
|
|
2221
|
-
var _excluded$
|
|
2221
|
+
var _excluded$k = ["id", "label", "onChange", "options", "value", "autoFocus", "className", "error", "helpText", "hideLabel", "isClearable", "isDisabled", "isMulti", "isRequired", "menuPortalTarget", "name", "onFocus", "onBlur", "placeholder", "requiredIndicator", "size"];
|
|
2222
2222
|
var SelectInput = function SelectInput(_ref) {
|
|
2223
2223
|
var _ref2, _classNames;
|
|
2224
2224
|
var id = _ref.id,
|
|
@@ -2257,7 +2257,7 @@ var SelectInput = function SelectInput(_ref) {
|
|
|
2257
2257
|
requiredIndicator = _ref$requiredIndicato === void 0 ? ' *' : _ref$requiredIndicato,
|
|
2258
2258
|
_ref$size = _ref.size,
|
|
2259
2259
|
size = _ref$size === void 0 ? 'md' : _ref$size,
|
|
2260
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2260
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$k);
|
|
2261
2261
|
var handleChange = function handleChange(values) {
|
|
2262
2262
|
var simulatedEventPayloadType = {
|
|
2263
2263
|
target: {
|
|
@@ -2275,13 +2275,13 @@ var SelectInput = function SelectInput(_ref) {
|
|
|
2275
2275
|
};
|
|
2276
2276
|
var responsiveClasses = generateResponsiveClasses('size', size);
|
|
2277
2277
|
var wrapperClasses = classNames.apply(void 0, ['hyphen-components__variables__form-control', 'select-input-wrapper', className].concat(responsiveClasses.map(function (c) {
|
|
2278
|
-
return styles$
|
|
2279
|
-
}), [(_ref2 = {}, _ref2[styles$
|
|
2280
|
-
var inputClasses = classNames('react-select', (_classNames = {}, _classNames[styles$
|
|
2278
|
+
return styles$e[c];
|
|
2279
|
+
}), [(_ref2 = {}, _ref2[styles$e.disabled] = isDisabled, _ref2)]));
|
|
2280
|
+
var inputClasses = classNames('react-select', (_classNames = {}, _classNames[styles$e.error] = error, _classNames));
|
|
2281
2281
|
var labelProps = {
|
|
2282
2282
|
inputId: id,
|
|
2283
2283
|
helpText: helpText,
|
|
2284
|
-
className: styles$
|
|
2284
|
+
className: styles$e['select-input-label'],
|
|
2285
2285
|
isDisabled: isDisabled,
|
|
2286
2286
|
isFieldRequired: isRequired,
|
|
2287
2287
|
requiredIndicator: requiredIndicator
|
|
@@ -2325,7 +2325,7 @@ var SelectInput = function SelectInput(_ref) {
|
|
|
2325
2325
|
})), error && typeof error !== 'boolean' && React.createElement(InputValidationMessage, null, error));
|
|
2326
2326
|
};
|
|
2327
2327
|
|
|
2328
|
-
var _excluded$
|
|
2328
|
+
var _excluded$j = ["field", "form", "onChange", "id", "label", "options"];
|
|
2329
2329
|
var FormikSelectInput = function FormikSelectInput(_ref) {
|
|
2330
2330
|
var _ref$field = _ref.field,
|
|
2331
2331
|
name = _ref$field.name,
|
|
@@ -2339,7 +2339,7 @@ var FormikSelectInput = function FormikSelectInput(_ref) {
|
|
|
2339
2339
|
id = _ref.id,
|
|
2340
2340
|
label = _ref.label,
|
|
2341
2341
|
options = _ref.options,
|
|
2342
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2342
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$j);
|
|
2343
2343
|
return React.createElement(SelectInput, _extends({}, props, {
|
|
2344
2344
|
id: id,
|
|
2345
2345
|
label: label,
|
|
@@ -2352,7 +2352,7 @@ var FormikSelectInput = function FormikSelectInput(_ref) {
|
|
|
2352
2352
|
}));
|
|
2353
2353
|
};
|
|
2354
2354
|
|
|
2355
|
-
var styles$
|
|
2355
|
+
var styles$d = {"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"};
|
|
2356
2356
|
|
|
2357
2357
|
var SelectInputInset = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
2358
2358
|
var _ref2;
|
|
@@ -2394,10 +2394,10 @@ var SelectInputInset = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
2394
2394
|
};
|
|
2395
2395
|
var optionsWithPlaceholder = [_extends({}, placeholderOption)].concat(options);
|
|
2396
2396
|
var responsiveClasses = generateResponsiveClasses('size', size);
|
|
2397
|
-
var inputWrapperClasses = classNames.apply(void 0, ['hyphen-components__variables__form-control', styles$
|
|
2398
|
-
return styles$
|
|
2399
|
-
}), [(_ref2 = {}, _ref2[styles$
|
|
2400
|
-
var clearBtnClasses = classNames(styles$
|
|
2397
|
+
var inputWrapperClasses = classNames.apply(void 0, ['hyphen-components__variables__form-control', styles$d['text-input-wrapper']].concat(responsiveClasses.map(function (c) {
|
|
2398
|
+
return styles$d[c];
|
|
2399
|
+
}), [(_ref2 = {}, _ref2[styles$d.error] = error, _ref2[styles$d.disabled] = isDisabled, _ref2[styles$d['is-clearable']] = onClear, _ref2)]));
|
|
2400
|
+
var clearBtnClasses = classNames(styles$d['clear-button'], styles$d.md);
|
|
2401
2401
|
var renderClearIcon = function renderClearIcon() {
|
|
2402
2402
|
var handleKeyPress = function handleKeyPress(event) {
|
|
2403
2403
|
if (event.keyCode === 13 && onClear) onClear(event);
|
|
@@ -2452,12 +2452,12 @@ var SelectInputInset = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
2452
2452
|
}, option.label);
|
|
2453
2453
|
})), !!onClear && !!value && renderClearIcon(), React.createElement("label", {
|
|
2454
2454
|
htmlFor: id,
|
|
2455
|
-
className: styles$
|
|
2455
|
+
className: styles$d['select-input-label'],
|
|
2456
2456
|
id: id + "Label"
|
|
2457
2457
|
}, label, isRequired && requiredIndicator && React.createElement("span", null, requiredIndicator))), helpText && React.createElement(HelpText, null, helpText), error && error !== true && React.createElement(InputValidationMessage, null, error));
|
|
2458
2458
|
});
|
|
2459
2459
|
|
|
2460
|
-
var _excluded$
|
|
2460
|
+
var _excluded$i = ["field", "form", "onChange", "id", "label", "options"];
|
|
2461
2461
|
var FormikSelectInputInset = function FormikSelectInputInset(_ref) {
|
|
2462
2462
|
var _ref$field = _ref.field,
|
|
2463
2463
|
name = _ref$field.name,
|
|
@@ -2471,7 +2471,7 @@ var FormikSelectInputInset = function FormikSelectInputInset(_ref) {
|
|
|
2471
2471
|
id = _ref.id,
|
|
2472
2472
|
label = _ref.label,
|
|
2473
2473
|
options = _ref.options,
|
|
2474
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2474
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
|
|
2475
2475
|
return React.createElement(SelectInputInset, _extends({}, props, {
|
|
2476
2476
|
id: id,
|
|
2477
2477
|
label: label,
|
|
@@ -2484,7 +2484,7 @@ var FormikSelectInputInset = function FormikSelectInputInset(_ref) {
|
|
|
2484
2484
|
}));
|
|
2485
2485
|
};
|
|
2486
2486
|
|
|
2487
|
-
var styles$
|
|
2487
|
+
var styles$c = {"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"};
|
|
2488
2488
|
|
|
2489
2489
|
var TextareaInputInset = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
2490
2490
|
var _ref2, _classNames;
|
|
@@ -2527,9 +2527,9 @@ var TextareaInputInset = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
2527
2527
|
_ref$type = _ref.type,
|
|
2528
2528
|
type = _ref$type === void 0 ? 'text' : _ref$type;
|
|
2529
2529
|
var responsiveClasses = generateResponsiveClasses('size', size);
|
|
2530
|
-
var inputWrapperClasses = classNames.apply(void 0, ['hyphen-components__variables__form-control', styles$
|
|
2531
|
-
return styles$
|
|
2532
|
-
}), [(_ref2 = {}, _ref2[styles$
|
|
2530
|
+
var inputWrapperClasses = classNames.apply(void 0, ['hyphen-components__variables__form-control', styles$c['text-input-wrapper']].concat(responsiveClasses.map(function (c) {
|
|
2531
|
+
return styles$c[c];
|
|
2532
|
+
}), [(_ref2 = {}, _ref2[styles$c.disabled] = isDisabled, _ref2)]));
|
|
2533
2533
|
var computedInputProps = _extends({}, inputProps, {
|
|
2534
2534
|
// These are spread first so that we don't have top level props overwritten by the user.
|
|
2535
2535
|
'aria-required': isRequired,
|
|
@@ -2538,7 +2538,7 @@ var TextareaInputInset = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
2538
2538
|
'aria-labelledby': label ? id + "Label" : undefined,
|
|
2539
2539
|
autoComplete: getAutoCompleteValue(autoComplete),
|
|
2540
2540
|
autoFocus: autoFocus,
|
|
2541
|
-
className: classNames(styles$
|
|
2541
|
+
className: classNames(styles$c["textarea-resize-" + resize], (_classNames = {}, _classNames[styles$c.error] = error, _classNames)),
|
|
2542
2542
|
disabled: isDisabled,
|
|
2543
2543
|
id: id,
|
|
2544
2544
|
maxLength: maxLength,
|
|
@@ -2564,12 +2564,12 @@ var TextareaInputInset = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
2564
2564
|
as: "textarea"
|
|
2565
2565
|
}, computedInputProps)), React.createElement("label", {
|
|
2566
2566
|
htmlFor: id,
|
|
2567
|
-
className: styles$
|
|
2567
|
+
className: styles$c['text-input-label'],
|
|
2568
2568
|
id: id + "Label"
|
|
2569
2569
|
}, label, isRequired && requiredIndicator && React.createElement("span", null, requiredIndicator))), helpText && React.createElement(HelpText, null, helpText), error && error !== true && React.createElement(InputValidationMessage, null, error));
|
|
2570
2570
|
});
|
|
2571
2571
|
|
|
2572
|
-
var _excluded$
|
|
2572
|
+
var _excluded$h = ["field", "form", "onChange", "id", "label"];
|
|
2573
2573
|
var FormikTextareaInputInset = function FormikTextareaInputInset(_ref) {
|
|
2574
2574
|
var _ref$field = _ref.field,
|
|
2575
2575
|
name = _ref$field.name,
|
|
@@ -2582,7 +2582,7 @@ var FormikTextareaInputInset = function FormikTextareaInputInset(_ref) {
|
|
|
2582
2582
|
onChange = _ref.onChange,
|
|
2583
2583
|
id = _ref.id,
|
|
2584
2584
|
label = _ref.label,
|
|
2585
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2585
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
|
|
2586
2586
|
return React.createElement(TextareaInputInset, _extends({}, props, {
|
|
2587
2587
|
id: id,
|
|
2588
2588
|
label: label,
|
|
@@ -2594,7 +2594,7 @@ var FormikTextareaInputInset = function FormikTextareaInputInset(_ref) {
|
|
|
2594
2594
|
}));
|
|
2595
2595
|
};
|
|
2596
2596
|
|
|
2597
|
-
var styles$
|
|
2597
|
+
var styles$b = {"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"};
|
|
2598
2598
|
|
|
2599
2599
|
var TextInputInset = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
2600
2600
|
var _ref2;
|
|
@@ -2638,10 +2638,10 @@ var TextInputInset = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
2638
2638
|
_ref$type = _ref.type,
|
|
2639
2639
|
type = _ref$type === void 0 ? 'text' : _ref$type;
|
|
2640
2640
|
var responsiveClasses = generateResponsiveClasses('size', size);
|
|
2641
|
-
var inputWrapperClasses = classNames.apply(void 0, ['hyphen-components__variables__form-control', styles$
|
|
2642
|
-
return styles$
|
|
2643
|
-
}), [(_ref2 = {}, _ref2[styles$
|
|
2644
|
-
var clearBtnClasses = classNames(styles$
|
|
2641
|
+
var inputWrapperClasses = classNames.apply(void 0, ['hyphen-components__variables__form-control', styles$b['text-input-wrapper']].concat(responsiveClasses.map(function (c) {
|
|
2642
|
+
return styles$b[c];
|
|
2643
|
+
}), [(_ref2 = {}, _ref2[styles$b.error] = error, _ref2[styles$b.disabled] = isDisabled, _ref2[styles$b['is-clearable']] = onClear, _ref2)]));
|
|
2644
|
+
var clearBtnClasses = classNames(styles$b['clear-button'], styles$b.md);
|
|
2645
2645
|
var renderClearIcon = function renderClearIcon() {
|
|
2646
2646
|
var handleKeyPress = function handleKeyPress(event) {
|
|
2647
2647
|
if (event.keyCode === 13 && onClear) onClear(event);
|
|
@@ -2690,7 +2690,7 @@ var TextInputInset = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
2690
2690
|
alignItems: "center",
|
|
2691
2691
|
justifyContent: "center",
|
|
2692
2692
|
background: "secondary",
|
|
2693
|
-
className: classNames(styles$
|
|
2693
|
+
className: classNames(styles$b.prefix, 'ws-nowrap')
|
|
2694
2694
|
}, prefix), React.createElement(Box, {
|
|
2695
2695
|
direction: "row",
|
|
2696
2696
|
position: "relative",
|
|
@@ -2700,16 +2700,16 @@ var TextInputInset = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
2700
2700
|
as: "input"
|
|
2701
2701
|
}, computedInputProps)), !!onClear && !!value && renderClearIcon(), React.createElement("label", {
|
|
2702
2702
|
htmlFor: id,
|
|
2703
|
-
className: styles$
|
|
2703
|
+
className: styles$b['text-input-label'],
|
|
2704
2704
|
id: id + "Label"
|
|
2705
2705
|
}, label, isRequired && requiredIndicator && React.createElement("span", null, requiredIndicator))), suffix && React.createElement(Box, {
|
|
2706
2706
|
color: "base",
|
|
2707
2707
|
background: "secondary",
|
|
2708
|
-
className: classNames(styles$
|
|
2708
|
+
className: classNames(styles$b.suffix, 'ws-nowrap')
|
|
2709
2709
|
}, suffix)), helpText && React.createElement(HelpText, null, helpText), error && error !== true && React.createElement(InputValidationMessage, null, error));
|
|
2710
2710
|
});
|
|
2711
2711
|
|
|
2712
|
-
var _excluded$
|
|
2712
|
+
var _excluded$g = ["field", "form", "onChange", "id", "label"];
|
|
2713
2713
|
var FormikTextInputInset = function FormikTextInputInset(_ref) {
|
|
2714
2714
|
var _ref$field = _ref.field,
|
|
2715
2715
|
name = _ref$field.name,
|
|
@@ -2722,7 +2722,7 @@ var FormikTextInputInset = function FormikTextInputInset(_ref) {
|
|
|
2722
2722
|
onChange = _ref.onChange,
|
|
2723
2723
|
id = _ref.id,
|
|
2724
2724
|
label = _ref.label,
|
|
2725
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2725
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$g);
|
|
2726
2726
|
return React.createElement(TextInputInset, _extends({}, props, {
|
|
2727
2727
|
id: id,
|
|
2728
2728
|
label: label,
|
|
@@ -2734,9 +2734,9 @@ var FormikTextInputInset = function FormikTextInputInset(_ref) {
|
|
|
2734
2734
|
}));
|
|
2735
2735
|
};
|
|
2736
2736
|
|
|
2737
|
-
var styles$
|
|
2737
|
+
var styles$a = {"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"};
|
|
2738
2738
|
|
|
2739
|
-
var _excluded$
|
|
2739
|
+
var _excluded$f = ["autoFocus", "label", "hideLabel", "helpText", "error", "id", "isDisabled", "isRequired", "name", "value", "options", "onChange", "placeholder", "requiredIndicator", "size"];
|
|
2740
2740
|
var SelectInputNative = function SelectInputNative(_ref) {
|
|
2741
2741
|
var _ref2;
|
|
2742
2742
|
var _ref$autoFocus = _ref.autoFocus,
|
|
@@ -2758,16 +2758,16 @@ var SelectInputNative = function SelectInputNative(_ref) {
|
|
|
2758
2758
|
requiredIndicator = _ref$requiredIndicato === void 0 ? ' *' : _ref$requiredIndicato,
|
|
2759
2759
|
_ref$size = _ref.size,
|
|
2760
2760
|
size = _ref$size === void 0 ? 'md' : _ref$size,
|
|
2761
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2761
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$f);
|
|
2762
2762
|
var placeholderOption = {
|
|
2763
2763
|
value: '',
|
|
2764
2764
|
label: placeholder
|
|
2765
2765
|
};
|
|
2766
2766
|
var optionsWithPlaceholder = [_extends({}, placeholderOption)].concat(options);
|
|
2767
2767
|
var responsiveClasses = generateResponsiveClasses('size', size);
|
|
2768
|
-
var selectWrapperClasses = classNames.apply(void 0, ['hyphen-components__variables__form-control', styles$
|
|
2769
|
-
return styles$
|
|
2770
|
-
}), [(_ref2 = {}, _ref2[styles$
|
|
2768
|
+
var selectWrapperClasses = classNames.apply(void 0, ['hyphen-components__variables__form-control', styles$a['select-input-native-wrapper']].concat(responsiveClasses.map(function (className) {
|
|
2769
|
+
return styles$a[className];
|
|
2770
|
+
}), [(_ref2 = {}, _ref2[styles$a.disabled] = isDisabled, _ref2[styles$a.error] = error, _ref2)]));
|
|
2771
2771
|
return React.createElement(FormControl, _extends({
|
|
2772
2772
|
label: label,
|
|
2773
2773
|
hideLabel: hideLabel,
|
|
@@ -2804,7 +2804,7 @@ var SelectInputNative = function SelectInputNative(_ref) {
|
|
|
2804
2804
|
}))));
|
|
2805
2805
|
};
|
|
2806
2806
|
|
|
2807
|
-
var _excluded$
|
|
2807
|
+
var _excluded$e = ["field", "form", "onChange", "options", "id", "label"];
|
|
2808
2808
|
var FormikSelectInputNative = function FormikSelectInputNative(_ref) {
|
|
2809
2809
|
var _ref$field = _ref.field,
|
|
2810
2810
|
name = _ref$field.name,
|
|
@@ -2818,7 +2818,7 @@ var FormikSelectInputNative = function FormikSelectInputNative(_ref) {
|
|
|
2818
2818
|
options = _ref.options,
|
|
2819
2819
|
id = _ref.id,
|
|
2820
2820
|
label = _ref.label,
|
|
2821
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2821
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$e);
|
|
2822
2822
|
return React.createElement(SelectInputNative, _extends({}, props, {
|
|
2823
2823
|
options: options,
|
|
2824
2824
|
id: id,
|
|
@@ -2831,7 +2831,7 @@ var FormikSelectInputNative = function FormikSelectInputNative(_ref) {
|
|
|
2831
2831
|
}));
|
|
2832
2832
|
};
|
|
2833
2833
|
|
|
2834
|
-
var _excluded$
|
|
2834
|
+
var _excluded$d = ["field", "form", "onChange", "id", "label"];
|
|
2835
2835
|
var FormikTextInput = function FormikTextInput(_ref) {
|
|
2836
2836
|
var _ref$field = _ref.field,
|
|
2837
2837
|
name = _ref$field.name,
|
|
@@ -2844,7 +2844,7 @@ var FormikTextInput = function FormikTextInput(_ref) {
|
|
|
2844
2844
|
onChange = _ref.onChange,
|
|
2845
2845
|
id = _ref.id,
|
|
2846
2846
|
label = _ref.label,
|
|
2847
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2847
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
|
|
2848
2848
|
return React.createElement(TextInput, _extends({}, props, {
|
|
2849
2849
|
id: id,
|
|
2850
2850
|
label: label,
|
|
@@ -2856,9 +2856,9 @@ var FormikTextInput = function FormikTextInput(_ref) {
|
|
|
2856
2856
|
}));
|
|
2857
2857
|
};
|
|
2858
2858
|
|
|
2859
|
-
var styles$
|
|
2859
|
+
var styles$9 = {"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"};
|
|
2860
2860
|
|
|
2861
|
-
var _excluded$
|
|
2861
|
+
var _excluded$c = ["id", "label", "onChange", "value", "autoComplete", "autoFocus", "className", "error", "helpText", "hideLabel", "isDisabled", "isRequired", "maxLength", "name", "onBlur", "onFocus", "placeholder", "requiredIndicator", "resize", "rows", "size"];
|
|
2862
2862
|
var TextareaInput = function TextareaInput(_ref) {
|
|
2863
2863
|
var _ref2;
|
|
2864
2864
|
var id = _ref.id,
|
|
@@ -2898,11 +2898,11 @@ var TextareaInput = function TextareaInput(_ref) {
|
|
|
2898
2898
|
rows = _ref$rows === void 0 ? 3 : _ref$rows,
|
|
2899
2899
|
_ref$size = _ref.size,
|
|
2900
2900
|
size = _ref$size === void 0 ? 'md' : _ref$size,
|
|
2901
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2901
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$c);
|
|
2902
2902
|
var responsiveClasses = generateResponsiveClasses('size', size);
|
|
2903
|
-
var inputWrapperClasses = classNames.apply(void 0, ['hyphen-components__variables__form-control', styles$
|
|
2904
|
-
return styles$
|
|
2905
|
-
}), [(_ref2 = {}, _ref2[styles$
|
|
2903
|
+
var inputWrapperClasses = classNames.apply(void 0, ['hyphen-components__variables__form-control', styles$9['textarea-input-wrapper']].concat(responsiveClasses.map(function (c) {
|
|
2904
|
+
return styles$9[c];
|
|
2905
|
+
}), [(_ref2 = {}, _ref2[styles$9.error] = error, _ref2[styles$9.disabled] = isDisabled, _ref2)]));
|
|
2906
2906
|
var inputProps = {
|
|
2907
2907
|
'aria-required': isRequired,
|
|
2908
2908
|
'aria-invalid': !!error,
|
|
@@ -2910,7 +2910,7 @@ var TextareaInput = function TextareaInput(_ref) {
|
|
|
2910
2910
|
'aria-labelledby': label && !hideLabel ? id + "Label" : undefined,
|
|
2911
2911
|
autoComplete: getAutoCompleteValue(autoComplete),
|
|
2912
2912
|
autoFocus: autoFocus,
|
|
2913
|
-
className: classNames(styles$
|
|
2913
|
+
className: classNames(styles$9["textarea-resize-" + resize]),
|
|
2914
2914
|
disabled: isDisabled,
|
|
2915
2915
|
id: id,
|
|
2916
2916
|
maxLength: maxLength,
|
|
@@ -2926,7 +2926,7 @@ var TextareaInput = function TextareaInput(_ref) {
|
|
|
2926
2926
|
var labelProps = {
|
|
2927
2927
|
inputId: id,
|
|
2928
2928
|
helpText: helpText,
|
|
2929
|
-
className: styles$
|
|
2929
|
+
className: styles$9['textarea-input-label'],
|
|
2930
2930
|
isDisabled: isDisabled,
|
|
2931
2931
|
isFieldRequired: isRequired,
|
|
2932
2932
|
requiredIndicator: requiredIndicator
|
|
@@ -2942,7 +2942,7 @@ var TextareaInput = function TextareaInput(_ref) {
|
|
|
2942
2942
|
}, inputProps))), error && error !== true && React.createElement(InputValidationMessage, null, error));
|
|
2943
2943
|
};
|
|
2944
2944
|
|
|
2945
|
-
var _excluded$
|
|
2945
|
+
var _excluded$b = ["field", "form", "onChange", "id", "label"];
|
|
2946
2946
|
var FormikTextareaInput = function FormikTextareaInput(_ref) {
|
|
2947
2947
|
var _ref$field = _ref.field,
|
|
2948
2948
|
name = _ref$field.name,
|
|
@@ -2955,7 +2955,7 @@ var FormikTextareaInput = function FormikTextareaInput(_ref) {
|
|
|
2955
2955
|
onChange = _ref.onChange,
|
|
2956
2956
|
id = _ref.id,
|
|
2957
2957
|
label = _ref.label,
|
|
2958
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2958
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$b);
|
|
2959
2959
|
return React.createElement(TextareaInput, _extends({}, props, {
|
|
2960
2960
|
id: id,
|
|
2961
2961
|
label: label,
|
|
@@ -2967,7 +2967,7 @@ var FormikTextareaInput = function FormikTextareaInput(_ref) {
|
|
|
2967
2967
|
}));
|
|
2968
2968
|
};
|
|
2969
2969
|
|
|
2970
|
-
var _excluded$
|
|
2970
|
+
var _excluded$a = ["id", "name", "label", "onChange", "value", "dateDisplayOptions", "endTime", "interval", "locales", "placeholder", "startTime"];
|
|
2971
2971
|
var TimePicker = function TimePicker(_ref) {
|
|
2972
2972
|
var id = _ref.id,
|
|
2973
2973
|
name = _ref.name,
|
|
@@ -2989,7 +2989,7 @@ var TimePicker = function TimePicker(_ref) {
|
|
|
2989
2989
|
placeholder = _ref$placeholder === void 0 ? 'HH:MM' : _ref$placeholder,
|
|
2990
2990
|
_ref$startTime = _ref.startTime,
|
|
2991
2991
|
startTime = _ref$startTime === void 0 ? undefined : _ref$startTime,
|
|
2992
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2992
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$a);
|
|
2993
2993
|
var generateTimes = function generateTimes() {
|
|
2994
2994
|
var first = new Date();
|
|
2995
2995
|
first.setHours((startTime == null ? void 0 : startTime.hour) || 0, (startTime == null ? void 0 : startTime.minute) || 0, 0, 0);
|
|
@@ -3017,7 +3017,7 @@ var TimePicker = function TimePicker(_ref) {
|
|
|
3017
3017
|
}));
|
|
3018
3018
|
};
|
|
3019
3019
|
|
|
3020
|
-
var _excluded$
|
|
3020
|
+
var _excluded$9 = ["field", "form", "options", "onChange"];
|
|
3021
3021
|
var FormikTimePicker = function FormikTimePicker(_ref) {
|
|
3022
3022
|
var _ref$field = _ref.field,
|
|
3023
3023
|
name = _ref$field.name,
|
|
@@ -3029,7 +3029,7 @@ var FormikTimePicker = function FormikTimePicker(_ref) {
|
|
|
3029
3029
|
errors = _ref$form.errors,
|
|
3030
3030
|
options = _ref.options,
|
|
3031
3031
|
onChange = _ref.onChange,
|
|
3032
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3032
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$9);
|
|
3033
3033
|
return React.createElement(TimePicker, _extends({}, props, {
|
|
3034
3034
|
name: name,
|
|
3035
3035
|
onBlur: onBlur,
|
|
@@ -3040,7 +3040,7 @@ var FormikTimePicker = function FormikTimePicker(_ref) {
|
|
|
3040
3040
|
}));
|
|
3041
3041
|
};
|
|
3042
3042
|
|
|
3043
|
-
var _excluded$
|
|
3043
|
+
var _excluded$8 = ["id", "name", "label", "onChange", "value", "dateDisplayOptions", "endTime", "interval", "locales", "placeholder", "startTime"];
|
|
3044
3044
|
var TimePickerNative = function TimePickerNative(_ref) {
|
|
3045
3045
|
var id = _ref.id,
|
|
3046
3046
|
name = _ref.name,
|
|
@@ -3062,7 +3062,7 @@ var TimePickerNative = function TimePickerNative(_ref) {
|
|
|
3062
3062
|
placeholder = _ref$placeholder === void 0 ? 'HH:MM' : _ref$placeholder,
|
|
3063
3063
|
_ref$startTime = _ref.startTime,
|
|
3064
3064
|
startTime = _ref$startTime === void 0 ? undefined : _ref$startTime,
|
|
3065
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3065
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$8);
|
|
3066
3066
|
var generateTimes = function generateTimes() {
|
|
3067
3067
|
var first = new Date();
|
|
3068
3068
|
first.setHours((startTime == null ? void 0 : startTime.hour) || 0, (startTime == null ? void 0 : startTime.minute) || 0, 0, 0);
|
|
@@ -3091,7 +3091,7 @@ var TimePickerNative = function TimePickerNative(_ref) {
|
|
|
3091
3091
|
}));
|
|
3092
3092
|
};
|
|
3093
3093
|
|
|
3094
|
-
var _excluded$
|
|
3094
|
+
var _excluded$7 = ["field", "form", "onChange"];
|
|
3095
3095
|
var FormikTimePickerNative = function FormikTimePickerNative(_ref) {
|
|
3096
3096
|
var _ref$field = _ref.field,
|
|
3097
3097
|
name = _ref$field.name,
|
|
@@ -3102,7 +3102,7 @@ var FormikTimePickerNative = function FormikTimePickerNative(_ref) {
|
|
|
3102
3102
|
touched = _ref$form.touched,
|
|
3103
3103
|
errors = _ref$form.errors,
|
|
3104
3104
|
onChange = _ref.onChange,
|
|
3105
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3105
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$7);
|
|
3106
3106
|
return React.createElement(TimePickerNative, _extends({}, props, {
|
|
3107
3107
|
name: name,
|
|
3108
3108
|
onBlur: onBlur,
|
|
@@ -3112,7 +3112,7 @@ var FormikTimePickerNative = function FormikTimePickerNative(_ref) {
|
|
|
3112
3112
|
}));
|
|
3113
3113
|
};
|
|
3114
3114
|
|
|
3115
|
-
var styles$
|
|
3115
|
+
var styles$8 = {"thumb-size-sm":"Toggle-module_thumb-size-sm__GeodE","thumb-size-md":"Toggle-module_thumb-size-md__hZP-v","thumb-size-lg":"Toggle-module_thumb-size-lg__vTfiF","track-size-sm":"Toggle-module_track-size-sm__9H8xR","track-size-md":"Toggle-module_track-size-md__7tLlO","track-size-lg":"Toggle-module_track-size-lg__9drMt","thumb-size-sm-tablet":"Toggle-module_thumb-size-sm-tablet__pbksf","thumb-size-md-tablet":"Toggle-module_thumb-size-md-tablet__-TDJj","thumb-size-lg-tablet":"Toggle-module_thumb-size-lg-tablet__Q0isC","track-size-sm-tablet":"Toggle-module_track-size-sm-tablet__vpDN9","track-size-md-tablet":"Toggle-module_track-size-md-tablet__jBAOT","track-size-lg-tablet":"Toggle-module_track-size-lg-tablet__MLRv2","thumb-size-sm-desktop":"Toggle-module_thumb-size-sm-desktop__8a93z","thumb-size-md-desktop":"Toggle-module_thumb-size-md-desktop__VaAlw","thumb-size-lg-desktop":"Toggle-module_thumb-size-lg-desktop__c9vh7","track-size-sm-desktop":"Toggle-module_track-size-sm-desktop__LqFN-","track-size-md-desktop":"Toggle-module_track-size-md-desktop__3ClrR","track-size-lg-desktop":"Toggle-module_track-size-lg-desktop__ruWSF","thumb-size-sm-hd":"Toggle-module_thumb-size-sm-hd__m5Lwq","thumb-size-md-hd":"Toggle-module_thumb-size-md-hd__4VcAY","thumb-size-lg-hd":"Toggle-module_thumb-size-lg-hd__L-oay","track-size-sm-hd":"Toggle-module_track-size-sm-hd__0m-1g","track-size-md-hd":"Toggle-module_track-size-md-hd__S19uj","track-size-lg-hd":"Toggle-module_track-size-lg-hd__Go0mj","disabled":"Toggle-module_disabled__sxlCk","toggle-thumb":"Toggle-module_toggle-thumb__6hl8Y","toggle-track":"Toggle-module_toggle-track__Jv1qD","error":"Toggle-module_error__f1tIX","toggle-input":"Toggle-module_toggle-input__sNnss"};
|
|
3116
3116
|
|
|
3117
3117
|
var Toggle = function Toggle(_ref) {
|
|
3118
3118
|
var _classNames, _ref2;
|
|
@@ -3148,12 +3148,12 @@ var Toggle = function Toggle(_ref) {
|
|
|
3148
3148
|
var handleFocus = function handleFocus(event) {
|
|
3149
3149
|
if (onFocus) onFocus(event);
|
|
3150
3150
|
};
|
|
3151
|
-
var wrapperClasses = classNames('hyphen-components__variables__form-control', (_classNames = {}, _classNames[styles$
|
|
3152
|
-
var trackClasses = classNames.apply(void 0, [styles$
|
|
3153
|
-
return styles$
|
|
3154
|
-
}), [(_ref2 = {}, _ref2[styles$
|
|
3155
|
-
var thumbClasses = classNames.apply(void 0, [styles$
|
|
3156
|
-
return styles$
|
|
3151
|
+
var wrapperClasses = classNames('hyphen-components__variables__form-control', (_classNames = {}, _classNames[styles$8.disabled] = isDisabled, _classNames));
|
|
3152
|
+
var trackClasses = classNames.apply(void 0, [styles$8['toggle-track']].concat(generateResponsiveClasses('track-size', size).map(function (c) {
|
|
3153
|
+
return styles$8[c];
|
|
3154
|
+
}), [(_ref2 = {}, _ref2[styles$8.error] = error, _ref2)]));
|
|
3155
|
+
var thumbClasses = classNames.apply(void 0, [styles$8['toggle-thumb']].concat(generateResponsiveClasses('thumb-size', size).map(function (c) {
|
|
3156
|
+
return styles$8[c];
|
|
3157
3157
|
})));
|
|
3158
3158
|
var inputProps = {
|
|
3159
3159
|
'aria-required': isRequired,
|
|
@@ -3168,7 +3168,7 @@ var Toggle = function Toggle(_ref) {
|
|
|
3168
3168
|
onFocus: handleFocus,
|
|
3169
3169
|
required: isRequired,
|
|
3170
3170
|
type: 'checkbox',
|
|
3171
|
-
className: styles$
|
|
3171
|
+
className: styles$8['toggle-input']
|
|
3172
3172
|
};
|
|
3173
3173
|
var labelProps = {
|
|
3174
3174
|
inputId: id,
|
|
@@ -3203,7 +3203,7 @@ var Toggle = function Toggle(_ref) {
|
|
|
3203
3203
|
}, helpText)))), error && error !== true && React.createElement(InputValidationMessage, null, error));
|
|
3204
3204
|
};
|
|
3205
3205
|
|
|
3206
|
-
var _excluded$
|
|
3206
|
+
var _excluded$6 = ["field", "form"];
|
|
3207
3207
|
var FormikToggle = function FormikToggle(_ref) {
|
|
3208
3208
|
var _ref$field = _ref.field,
|
|
3209
3209
|
name = _ref$field.name,
|
|
@@ -3213,7 +3213,7 @@ var FormikToggle = function FormikToggle(_ref) {
|
|
|
3213
3213
|
_ref$form = _ref.form,
|
|
3214
3214
|
touched = _ref$form.touched,
|
|
3215
3215
|
errors = _ref$form.errors,
|
|
3216
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3216
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$6);
|
|
3217
3217
|
return React.createElement(Toggle, _extends({
|
|
3218
3218
|
error: getIn(touched, name) && getIn(errors, name),
|
|
3219
3219
|
isChecked: value,
|
|
@@ -3222,7 +3222,7 @@ var FormikToggle = function FormikToggle(_ref) {
|
|
|
3222
3222
|
}, props));
|
|
3223
3223
|
};
|
|
3224
3224
|
|
|
3225
|
-
var _excluded$
|
|
3225
|
+
var _excluded$5 = ["children", "padding", "direction", "alignItems", "justifyContent", "background", "gap", "style"];
|
|
3226
3226
|
var ModalFooter = function ModalFooter(_ref) {
|
|
3227
3227
|
var children = _ref.children,
|
|
3228
3228
|
_ref$padding = _ref.padding,
|
|
@@ -3238,7 +3238,7 @@ var ModalFooter = function ModalFooter(_ref) {
|
|
|
3238
3238
|
_ref$gap = _ref.gap,
|
|
3239
3239
|
gap = _ref$gap === void 0 ? 'sm' : _ref$gap,
|
|
3240
3240
|
style = _ref.style,
|
|
3241
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3241
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$5);
|
|
3242
3242
|
return React.createElement(Box, _extends({
|
|
3243
3243
|
background: background,
|
|
3244
3244
|
padding: padding,
|
|
@@ -3254,7 +3254,7 @@ var ModalFooter = function ModalFooter(_ref) {
|
|
|
3254
3254
|
}, restProps), children);
|
|
3255
3255
|
};
|
|
3256
3256
|
|
|
3257
|
-
var styles$
|
|
3257
|
+
var styles$7 = {"modal-close":"Modal-module_modal-close__1YmMa","modal":"Modal-module_modal__yNG-7","modal-content":"Modal-module_modal-content__GMtBm"};
|
|
3258
3258
|
|
|
3259
3259
|
var ModalHeader = function ModalHeader(_ref) {
|
|
3260
3260
|
var id = _ref.id,
|
|
@@ -3282,14 +3282,14 @@ var ModalHeader = function ModalHeader(_ref) {
|
|
|
3282
3282
|
}, title), onDismiss && React.createElement("button", {
|
|
3283
3283
|
"aria-label": "close",
|
|
3284
3284
|
type: "button",
|
|
3285
|
-
className: styles$
|
|
3285
|
+
className: styles$7['modal-close'],
|
|
3286
3286
|
onClick: onDismiss
|
|
3287
3287
|
}, React.createElement(Icon, {
|
|
3288
3288
|
name: "remove"
|
|
3289
3289
|
})));
|
|
3290
3290
|
};
|
|
3291
3291
|
|
|
3292
|
-
var _excluded$
|
|
3292
|
+
var _excluded$4 = ["children", "flex", "padding", "overflow", "height"];
|
|
3293
3293
|
var ModalBody = function ModalBody(_ref) {
|
|
3294
3294
|
var children = _ref.children,
|
|
3295
3295
|
_ref$flex = _ref.flex,
|
|
@@ -3300,7 +3300,7 @@ var ModalBody = function ModalBody(_ref) {
|
|
|
3300
3300
|
overflow = _ref$overflow === void 0 ? 'auto' : _ref$overflow,
|
|
3301
3301
|
_ref$height = _ref.height,
|
|
3302
3302
|
height = _ref$height === void 0 ? '100' : _ref$height,
|
|
3303
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3303
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$4);
|
|
3304
3304
|
return React.createElement(Box, _extends({
|
|
3305
3305
|
padding: padding,
|
|
3306
3306
|
flex: flex,
|
|
@@ -3312,7 +3312,7 @@ var ModalBody = function ModalBody(_ref) {
|
|
|
3312
3312
|
}, restProps), children);
|
|
3313
3313
|
};
|
|
3314
3314
|
|
|
3315
|
-
var _excluded$
|
|
3315
|
+
var _excluded$3 = ["ariaLabel", "ariaLabelledBy", "allowPinchZoom", "children", "className", "containerRef", "fullScreenMobile", "initialFocusRef", "isOpen", "maxWidth", "onDismiss", "overflow"];
|
|
3316
3316
|
var ModalBaseComponent = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
3317
3317
|
var _classNames;
|
|
3318
3318
|
var ariaLabel = _ref.ariaLabel,
|
|
@@ -3332,7 +3332,7 @@ var ModalBaseComponent = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
3332
3332
|
onDismiss = _ref.onDismiss,
|
|
3333
3333
|
_ref$overflow = _ref.overflow,
|
|
3334
3334
|
overflow = _ref$overflow === void 0 ? 'hidden' : _ref$overflow,
|
|
3335
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3335
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$3);
|
|
3336
3336
|
var activateFocusLock = useCallback(function () {
|
|
3337
3337
|
setTimeout(function () {
|
|
3338
3338
|
if (initialFocusRef && initialFocusRef.current) {
|
|
@@ -3341,10 +3341,10 @@ var ModalBaseComponent = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
3341
3341
|
}, 100);
|
|
3342
3342
|
}, [initialFocusRef]);
|
|
3343
3343
|
var maxWidthCss = getDimensionCss('mw', maxWidth);
|
|
3344
|
-
var overlayClassnames = classNames(styles$
|
|
3344
|
+
var overlayClassnames = classNames(styles$7.overlay, styles$7.modal, {
|
|
3345
3345
|
fullscreen: fullScreenMobile
|
|
3346
3346
|
});
|
|
3347
|
-
var contentClassnames = classNames(styles$
|
|
3347
|
+
var contentClassnames = classNames(styles$7['modal-content'], className, maxWidthCss.classes, (_classNames = {}, _classNames["overflow-" + overflow] = overflow, _classNames));
|
|
3348
3348
|
var parentElement = containerRef != null && containerRef.current ? containerRef.current : undefined;
|
|
3349
3349
|
return React.createElement(FocusLock, {
|
|
3350
3350
|
autoFocus: true,
|
|
@@ -3547,6 +3547,40 @@ var Pagination = function Pagination(_ref) {
|
|
|
3547
3547
|
}, isTotalVisible && "Showing " + activeListRange.first + "-" + activeListRange.last + " of " + totalItemsCount));
|
|
3548
3548
|
};
|
|
3549
3549
|
|
|
3550
|
+
var styles$6 = {"slider":"RangeInput-module_slider__Z6D68","disabled":"RangeInput-module_disabled__gyu72"};
|
|
3551
|
+
|
|
3552
|
+
var _excluded$2 = ["value", "max", "id", "onChange", "className", "isDisabled"];
|
|
3553
|
+
var RangeInput = function RangeInput(_ref) {
|
|
3554
|
+
var _classNames;
|
|
3555
|
+
var _ref$value = _ref.value,
|
|
3556
|
+
value = _ref$value === void 0 ? 0 : _ref$value,
|
|
3557
|
+
_ref$max = _ref.max,
|
|
3558
|
+
max = _ref$max === void 0 ? 0 : _ref$max,
|
|
3559
|
+
id = _ref.id,
|
|
3560
|
+
onChange = _ref.onChange,
|
|
3561
|
+
className = _ref.className,
|
|
3562
|
+
_ref$isDisabled = _ref.isDisabled,
|
|
3563
|
+
isDisabled = _ref$isDisabled === void 0 ? false : _ref$isDisabled,
|
|
3564
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$2);
|
|
3565
|
+
var currentProgress = value > 0 ? value / max * 100 : 0;
|
|
3566
|
+
return React.createElement("input", _extends({}, restProps, {
|
|
3567
|
+
id: id,
|
|
3568
|
+
type: "range",
|
|
3569
|
+
min: "0",
|
|
3570
|
+
value: value,
|
|
3571
|
+
max: max,
|
|
3572
|
+
"aria-valuemax": max,
|
|
3573
|
+
"aria-valuenow": value,
|
|
3574
|
+
"aria-label": "range input",
|
|
3575
|
+
className: classNames(styles$6.slider, className, (_classNames = {}, _classNames[styles$6.disabled] = isDisabled, _classNames)),
|
|
3576
|
+
onChange: onChange,
|
|
3577
|
+
disabled: isDisabled,
|
|
3578
|
+
style: {
|
|
3579
|
+
background: "linear-gradient(to right, var(--color-base-grey-400) " + currentProgress + "%, var(--color-base-grey-700) " + currentProgress + "%)"
|
|
3580
|
+
}
|
|
3581
|
+
}));
|
|
3582
|
+
};
|
|
3583
|
+
|
|
3550
3584
|
// eslint-disable-next-line import/prefer-default-export
|
|
3551
3585
|
var useIsomorphicLayoutEffect = typeof window !== 'undefined' ? useLayoutEffect : useEffect;
|
|
3552
3586
|
|
|
@@ -4654,5 +4688,5 @@ var useTheme = function useTheme() {
|
|
|
4654
4688
|
return context;
|
|
4655
4689
|
};
|
|
4656
4690
|
|
|
4657
|
-
export { Alert, Badge, Box, Button, Card, CardBaseComponent, Checkbox, CheckboxInput, DateInput, DatePicker, Details, DetailsBaseComponent, DetailsSummary, Drawer, FormControl, FormLabel, FormikCheckboxInput, FormikRadioGroup, FormikSelectInput, FormikSelectInputInset, FormikSelectInputNative, FormikTextInput, FormikTextInputInset, FormikTextareaInput, FormikTextareaInputInset, FormikTimePicker, FormikTimePickerNative, FormikToggle, Heading, Icon, Modal, ModalBaseComponent, Pagination, Popover, RadioGroup, ResponsiveContext, ResponsiveProvider, SelectInput, SelectInputInset, SelectInputNative, Spinner, Table, TextInput, TextInputInset, TextareaInput, TextareaInputInset, ThemeProvider, ThemeProviderContext, TimePicker, TimePickerNative, ToastContainer, Toggle, boxPropsKeys, createRectRef, toast, useBreakpoint, useIsomorphicLayoutEffect, useOpenClose, useTheme, useToasts, useWindowSize };
|
|
4691
|
+
export { Alert, Badge, Box, Button, Card, CardBaseComponent, Checkbox, CheckboxInput, DateInput, DatePicker, Details, DetailsBaseComponent, DetailsSummary, Drawer, FormControl, FormLabel, FormikCheckboxInput, FormikRadioGroup, FormikSelectInput, FormikSelectInputInset, FormikSelectInputNative, FormikTextInput, FormikTextInputInset, FormikTextareaInput, FormikTextareaInputInset, FormikTimePicker, FormikTimePickerNative, FormikToggle, Heading, Icon, Modal, ModalBaseComponent, Pagination, Popover, RadioGroup, RangeInput, ResponsiveContext, ResponsiveProvider, SelectInput, SelectInputInset, SelectInputNative, Spinner, Table, TextInput, TextInputInset, TextareaInput, TextareaInputInset, ThemeProvider, ThemeProviderContext, TimePicker, TimePickerNative, ToastContainer, Toggle, boxPropsKeys, createRectRef, toast, useBreakpoint, useIsomorphicLayoutEffect, useOpenClose, useTheme, useToasts, useWindowSize };
|
|
4658
4692
|
//# sourceMappingURL=hyphen-components.esm.js.map
|