@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
|
@@ -243,9 +243,9 @@ Component, props, getDefault) {
|
|
|
243
243
|
return defaultProps.as || 'div';
|
|
244
244
|
}
|
|
245
245
|
|
|
246
|
-
var styles$
|
|
246
|
+
var styles$w = {"box-transition":"Box-module_box-transition__eQx8C"};
|
|
247
247
|
|
|
248
|
-
var _excluded$
|
|
248
|
+
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"];
|
|
249
249
|
/**
|
|
250
250
|
* A `<Box>` is a layout component to build UIs with consistent padding and spacing between
|
|
251
251
|
* elements.
|
|
@@ -332,7 +332,7 @@ var Box = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
332
332
|
width = _ref$width === void 0 ? undefined : _ref$width,
|
|
333
333
|
_ref$zIndex = _ref.zIndex,
|
|
334
334
|
zIndex = _ref$zIndex === void 0 ? undefined : _ref$zIndex,
|
|
335
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
335
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$J);
|
|
336
336
|
var heightCss = getDimensionCss('h', height);
|
|
337
337
|
var widthCss = getDimensionCss('w', width);
|
|
338
338
|
var maxHeightCss = getDimensionCss('mh', maxHeight);
|
|
@@ -381,7 +381,7 @@ var Box = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
381
381
|
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 = {
|
|
382
382
|
'flex-wrap': isFlexBox && wrap,
|
|
383
383
|
'flex-nowrap': isFlexBox && wrap === false
|
|
384
|
-
}, _ref3["background-color-" + background] = background, _ref3["font-color-" + color] = color, _ref3["border-color-" + borderColor] = borderColor, _ref3["cursor-" + cursor] = cursor, _ref3[styles$
|
|
384
|
+
}, _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)]));
|
|
385
385
|
var boxStyles = _extends({}, style, heightCss.styles, maxHeightCss.styles, maxWidthCss.styles, widthCss.styles, minHeightCss.styles, minWidthCss.styles);
|
|
386
386
|
/**
|
|
387
387
|
* Creates an object that maps the flex direction to either `right` or `bottom`
|
|
@@ -483,14 +483,14 @@ var Box = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
483
483
|
});
|
|
484
484
|
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'];
|
|
485
485
|
|
|
486
|
-
var _excluded$
|
|
486
|
+
var _excluded$I = ["className", "name", "color", "size"];
|
|
487
487
|
var Icon = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
488
488
|
var _ref$className = _ref.className,
|
|
489
489
|
className = _ref$className === void 0 ? undefined : _ref$className,
|
|
490
490
|
name = _ref.name,
|
|
491
491
|
color = _ref.color,
|
|
492
492
|
size = _ref.size,
|
|
493
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
493
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$I);
|
|
494
494
|
var IconComponent = icons[name];
|
|
495
495
|
if (!IconComponent) console.error("Icon '" + name + "' not found"); // eslint-disable-line no-console
|
|
496
496
|
var iconClasses = classNames(className, generateResponsiveClasses('font-color', color), generateResponsiveClasses('font-size', size));
|
|
@@ -508,7 +508,7 @@ var Icon = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
508
508
|
}, "???");
|
|
509
509
|
});
|
|
510
510
|
|
|
511
|
-
var styles$
|
|
511
|
+
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"};
|
|
512
512
|
|
|
513
513
|
// eslint-disable-next-line import/prefer-default-export
|
|
514
514
|
var ALERT_ICONS_MAP = {
|
|
@@ -529,7 +529,7 @@ var ALERT_ICONS_MAP = {
|
|
|
529
529
|
}
|
|
530
530
|
};
|
|
531
531
|
|
|
532
|
-
var _excluded$
|
|
532
|
+
var _excluded$H = ["className", "closeText", "hasIcon", "isCompact", "isClosable", "message", "onClose", "render", "title", "variant"];
|
|
533
533
|
var Alert = function Alert(_ref) {
|
|
534
534
|
var _ref$className = _ref.className,
|
|
535
535
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
@@ -551,7 +551,7 @@ var Alert = function Alert(_ref) {
|
|
|
551
551
|
title = _ref$title === void 0 ? '' : _ref$title,
|
|
552
552
|
_ref$variant = _ref.variant,
|
|
553
553
|
variant = _ref$variant === void 0 ? 'default' : _ref$variant,
|
|
554
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
554
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$H);
|
|
555
555
|
var handleClose = function handleClose(event) {
|
|
556
556
|
if (!onClose) return;
|
|
557
557
|
onClose(event);
|
|
@@ -559,7 +559,7 @@ var Alert = function Alert(_ref) {
|
|
|
559
559
|
var renderAlertIcon = function renderAlertIcon() {
|
|
560
560
|
return React.createElement(Box, {
|
|
561
561
|
fontSize: "md",
|
|
562
|
-
className: styles$
|
|
562
|
+
className: styles$v["alert__icon__" + variant]
|
|
563
563
|
}, React.createElement(Icon, {
|
|
564
564
|
name: ALERT_ICONS_MAP[variant].icon,
|
|
565
565
|
"data-testid": "alert-icon-" + variant + "-test-id"
|
|
@@ -572,7 +572,7 @@ var Alert = function Alert(_ref) {
|
|
|
572
572
|
return React.createElement(Box, {
|
|
573
573
|
margin: "0 0 0 auto",
|
|
574
574
|
color: "secondary",
|
|
575
|
-
className: styles$
|
|
575
|
+
className: styles$v['close-icon']
|
|
576
576
|
}, React.createElement("button", {
|
|
577
577
|
type: "button",
|
|
578
578
|
onClick: handleClose,
|
|
@@ -582,7 +582,7 @@ var Alert = function Alert(_ref) {
|
|
|
582
582
|
"data-testid": "alert-close-icon-test-id"
|
|
583
583
|
})));
|
|
584
584
|
};
|
|
585
|
-
var alertContainerClasses = classNames(styles$
|
|
585
|
+
var alertContainerClasses = classNames(styles$v["alert__" + variant], styles$v.alert, className);
|
|
586
586
|
return React.createElement(Box, _extends({
|
|
587
587
|
alignItems: "flex-start",
|
|
588
588
|
gap: "md",
|
|
@@ -599,13 +599,13 @@ var Alert = function Alert(_ref) {
|
|
|
599
599
|
as: "h4",
|
|
600
600
|
fontSize: "sm",
|
|
601
601
|
fontWeight: "semibold",
|
|
602
|
-
className: styles$
|
|
602
|
+
className: styles$v['alert-heading']
|
|
603
603
|
}, title), message && (typeof message === 'string' ? React.createElement("p", null, message) : message))), isClosable && renderCloseIcon());
|
|
604
604
|
};
|
|
605
605
|
|
|
606
|
-
var styles$
|
|
606
|
+
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"};
|
|
607
607
|
|
|
608
|
-
var _excluded$
|
|
608
|
+
var _excluded$G = ["className", "message", "variant", "size"];
|
|
609
609
|
var Badge = function Badge(_ref) {
|
|
610
610
|
var _classNames;
|
|
611
611
|
var _ref$className = _ref.className,
|
|
@@ -616,24 +616,24 @@ var Badge = function Badge(_ref) {
|
|
|
616
616
|
variant = _ref$variant === void 0 ? 'light-grey' : _ref$variant,
|
|
617
617
|
_ref$size = _ref.size,
|
|
618
618
|
size = _ref$size === void 0 ? 'md' : _ref$size,
|
|
619
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
619
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$G);
|
|
620
620
|
var responsiveClasses = generateResponsiveClasses('size', size).map(function (c) {
|
|
621
|
-
return styles$
|
|
621
|
+
return styles$u[c];
|
|
622
622
|
});
|
|
623
|
-
var badgeClasses = classNames(styles$
|
|
623
|
+
var badgeClasses = classNames(styles$u.badge, className, responsiveClasses, (_classNames = {}, _classNames[styles$u[variant]] = variant, _classNames));
|
|
624
624
|
return React.createElement(Box, _extends({
|
|
625
625
|
className: badgeClasses,
|
|
626
626
|
display: "inline-block"
|
|
627
627
|
}, restProps), message);
|
|
628
628
|
};
|
|
629
629
|
|
|
630
|
-
var styles$
|
|
630
|
+
var styles$t = {"spinner":"Spinner-module_spinner__SZoUP","spin":"Spinner-module_spin__Yk0wm"};
|
|
631
631
|
|
|
632
632
|
var Spinner = function Spinner(_ref) {
|
|
633
633
|
var className = _ref.className,
|
|
634
634
|
_ref$size = _ref.size,
|
|
635
635
|
size = _ref$size === void 0 ? 'md' : _ref$size;
|
|
636
|
-
var classes = classNames(className, styles$
|
|
636
|
+
var classes = classNames(className, styles$t.spinner);
|
|
637
637
|
var sizeInPixels = function sizeInPixels() {
|
|
638
638
|
var pixels;
|
|
639
639
|
if (size === 'sm') pixels = '12';
|
|
@@ -749,9 +749,9 @@ var handleReactRouterClick = function handleReactRouterClick(event, onClick, tar
|
|
|
749
749
|
}
|
|
750
750
|
};
|
|
751
751
|
|
|
752
|
-
var styles$
|
|
752
|
+
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"};
|
|
753
753
|
|
|
754
|
-
var _excluded$
|
|
754
|
+
var _excluded$F = ["children", "as", "className", "fullWidth", "id", "href", "iconPrefix", "iconSuffix", "isDisabled", "isLoading", "navigate", "onClick", "onFocus", "onBlur", "tabIndex", "target", "type", "size", "variant"];
|
|
755
755
|
var Button = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
756
756
|
var _classNames;
|
|
757
757
|
var _ref$children = _ref.children,
|
|
@@ -792,12 +792,12 @@ var Button = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
792
792
|
size = _ref$size === void 0 ? 'md' : _ref$size,
|
|
793
793
|
_ref$variant = _ref.variant,
|
|
794
794
|
variant = _ref$variant === void 0 ? 'primary' : _ref$variant,
|
|
795
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
795
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$F);
|
|
796
796
|
var disabled = isLoading || isDisabled;
|
|
797
797
|
var responsiveClasses = generateResponsiveClasses('size', size).map(function (c) {
|
|
798
|
-
return styles$
|
|
798
|
+
return styles$s[c];
|
|
799
799
|
});
|
|
800
|
-
var buttonClasses = classNames('hyphen-components__variables__form-control', styles$
|
|
800
|
+
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));
|
|
801
801
|
var handleClick = handleReactRouterClick;
|
|
802
802
|
var handleFocus = function handleFocus(event) {
|
|
803
803
|
if (onFocus) onFocus(event);
|
|
@@ -811,29 +811,29 @@ var Button = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
811
811
|
alignItems: "center",
|
|
812
812
|
gap: "md"
|
|
813
813
|
}, isLoading && React.createElement(Spinner, {
|
|
814
|
-
className: styles$
|
|
814
|
+
className: styles$s['spinner-wrapper']
|
|
815
815
|
}), iconPrefix && React.createElement(Icon, {
|
|
816
|
-
className: styles$
|
|
816
|
+
className: styles$s.label,
|
|
817
817
|
name: iconPrefix,
|
|
818
818
|
"aria-hidden": "true",
|
|
819
819
|
focusable: "false",
|
|
820
820
|
"data-testid": "prefixIcon",
|
|
821
821
|
size: size === 'md' ? 'sm' : size
|
|
822
822
|
}), children && React.createElement("span", {
|
|
823
|
-
className: styles$
|
|
823
|
+
className: styles$s.label
|
|
824
824
|
}, children), iconSuffix && React.createElement(Icon, {
|
|
825
|
-
className: styles$
|
|
825
|
+
className: styles$s.label,
|
|
826
826
|
name: iconSuffix,
|
|
827
827
|
"aria-hidden": "true",
|
|
828
828
|
focusable: "false",
|
|
829
829
|
"data-testid": "suffixIcon",
|
|
830
830
|
size: size === 'md' ? 'sm' : size
|
|
831
831
|
})) : React.createElement(React.Fragment, null, isLoading && React.createElement(Spinner, {
|
|
832
|
-
className: styles$
|
|
832
|
+
className: styles$s['spinner-wrapper']
|
|
833
833
|
}), function () {
|
|
834
834
|
if (children) {
|
|
835
835
|
return React.createElement("span", {
|
|
836
|
-
className: styles$
|
|
836
|
+
className: styles$s.label
|
|
837
837
|
}, children);
|
|
838
838
|
}
|
|
839
839
|
return null;
|
|
@@ -858,7 +858,7 @@ var Button = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
858
858
|
}, restProps), buttonContent);
|
|
859
859
|
});
|
|
860
860
|
|
|
861
|
-
var _excluded$
|
|
861
|
+
var _excluded$E = ["background", "borderColor", "borderWidth", "children", "display", "padding"];
|
|
862
862
|
var CardFooter = function CardFooter(_ref) {
|
|
863
863
|
var _ref$background = _ref.background,
|
|
864
864
|
background = _ref$background === void 0 ? 'secondary' : _ref$background,
|
|
@@ -872,7 +872,7 @@ var CardFooter = function CardFooter(_ref) {
|
|
|
872
872
|
display = _ref$display === void 0 ? 'block' : _ref$display,
|
|
873
873
|
_ref$padding = _ref.padding,
|
|
874
874
|
padding = _ref$padding === void 0 ? '2xl' : _ref$padding,
|
|
875
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
875
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$E);
|
|
876
876
|
return React.createElement(Box, _extends({
|
|
877
877
|
display: display,
|
|
878
878
|
padding: padding,
|
|
@@ -891,9 +891,9 @@ var HEADING_DEFAULT_SIZE_MAP = {
|
|
|
891
891
|
h6: 'sm'
|
|
892
892
|
};
|
|
893
893
|
|
|
894
|
-
var styles$
|
|
894
|
+
var styles$r = {"heading":"Heading-module_heading__zKyv7"};
|
|
895
895
|
|
|
896
|
-
var _excluded$
|
|
896
|
+
var _excluded$D = ["as", "children", "className", "color", "size"];
|
|
897
897
|
var Heading = function Heading(_ref) {
|
|
898
898
|
var _classNames;
|
|
899
899
|
var _ref$as = _ref.as,
|
|
@@ -902,18 +902,18 @@ var Heading = function Heading(_ref) {
|
|
|
902
902
|
className = _ref.className,
|
|
903
903
|
color = _ref.color,
|
|
904
904
|
size = _ref.size,
|
|
905
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
905
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$D);
|
|
906
906
|
var element = getElementType(Heading, {
|
|
907
907
|
as: as
|
|
908
908
|
});
|
|
909
909
|
var headingSize = size || HEADING_DEFAULT_SIZE_MAP[as];
|
|
910
|
-
var classes = classNames(styles$
|
|
910
|
+
var classes = classNames(styles$r.heading, className, generateResponsiveClasses('heading', headingSize), (_classNames = {}, _classNames["font-color-" + color] = color, _classNames));
|
|
911
911
|
return React.createElement(element, _extends({
|
|
912
912
|
className: classes
|
|
913
913
|
}, restProps), children);
|
|
914
914
|
};
|
|
915
915
|
|
|
916
|
-
var _excluded$
|
|
916
|
+
var _excluded$C = ["childGap", "children", "className", "display", "padding", "title"];
|
|
917
917
|
var CardHeader = function CardHeader(_ref) {
|
|
918
918
|
var _ref$childGap = _ref.childGap,
|
|
919
919
|
childGap = _ref$childGap === void 0 ? '2xs' : _ref$childGap,
|
|
@@ -927,7 +927,7 @@ var CardHeader = function CardHeader(_ref) {
|
|
|
927
927
|
padding = _ref$padding === void 0 ? '2xl' : _ref$padding,
|
|
928
928
|
_ref$title = _ref.title,
|
|
929
929
|
title = _ref$title === void 0 ? null : _ref$title,
|
|
930
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
930
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$C);
|
|
931
931
|
var renderTitle = function renderTitle() {
|
|
932
932
|
return typeof title === 'string' ? React.createElement(Heading, {
|
|
933
933
|
size: "sm",
|
|
@@ -942,9 +942,9 @@ var CardHeader = function CardHeader(_ref) {
|
|
|
942
942
|
}, restProps), title && renderTitle(), children);
|
|
943
943
|
};
|
|
944
944
|
|
|
945
|
-
var styles$
|
|
945
|
+
var styles$q = {"card-section-border":"Card-module_card-section-border__OefDX"};
|
|
946
946
|
|
|
947
|
-
var _excluded$
|
|
947
|
+
var _excluded$B = ["background", "borderColor", "borderWidth", "children", "childGap", "gap", "className", "display", "padding", "subdued", "title"];
|
|
948
948
|
var CardSection = function CardSection(_ref) {
|
|
949
949
|
var _classNames;
|
|
950
950
|
var _ref$background = _ref.background,
|
|
@@ -969,7 +969,7 @@ var CardSection = function CardSection(_ref) {
|
|
|
969
969
|
subdued = _ref$subdued === void 0 ? undefined : _ref$subdued,
|
|
970
970
|
_ref$title = _ref.title,
|
|
971
971
|
title = _ref$title === void 0 ? undefined : _ref$title,
|
|
972
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
972
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$B);
|
|
973
973
|
var renderTitle = typeof title === 'string' ? React.createElement(Box, {
|
|
974
974
|
className: "m-bottom-md"
|
|
975
975
|
}, React.createElement(Box, {
|
|
@@ -978,7 +978,7 @@ var CardSection = function CardSection(_ref) {
|
|
|
978
978
|
fontSize: "sm",
|
|
979
979
|
color: "base"
|
|
980
980
|
}, title)) : title;
|
|
981
|
-
var sectionClasses = classNames((_classNames = {}, _classNames[styles$
|
|
981
|
+
var sectionClasses = classNames((_classNames = {}, _classNames[styles$q['card-section-border']] = borderColor === undefined && borderWidth === undefined, _classNames[styles$q['card-subdued']] = subdued, _classNames), className);
|
|
982
982
|
return React.createElement(Box, _extends({
|
|
983
983
|
background: background,
|
|
984
984
|
borderColor: borderColor,
|
|
@@ -992,7 +992,7 @@ var CardSection = function CardSection(_ref) {
|
|
|
992
992
|
}, children));
|
|
993
993
|
};
|
|
994
994
|
|
|
995
|
-
var _excluded$
|
|
995
|
+
var _excluded$A = ["children", "subdued", "overflow", "display", "width"];
|
|
996
996
|
var CardBaseComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
997
997
|
var children = _ref.children,
|
|
998
998
|
subdued = _ref.subdued,
|
|
@@ -1002,7 +1002,7 @@ var CardBaseComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
1002
1002
|
display = _ref$display === void 0 ? 'block' : _ref$display,
|
|
1003
1003
|
_ref$width = _ref.width,
|
|
1004
1004
|
width = _ref$width === void 0 ? '100' : _ref$width,
|
|
1005
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1005
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$A);
|
|
1006
1006
|
return React.createElement(Box, _extends({
|
|
1007
1007
|
background: subdued ? 'secondary' : 'primary',
|
|
1008
1008
|
borderWidth: "sm",
|
|
@@ -1025,7 +1025,7 @@ var Card = /*#__PURE__*/function () {
|
|
|
1025
1025
|
return Card;
|
|
1026
1026
|
}();
|
|
1027
1027
|
|
|
1028
|
-
var _excluded$
|
|
1028
|
+
var _excluded$z = ["className", "error", "isChecked", "isDisabled", "isIndeterminate"];
|
|
1029
1029
|
var CheckboxIcon = function CheckboxIcon(_ref) {
|
|
1030
1030
|
var _ref$className = _ref.className,
|
|
1031
1031
|
className = _ref$className === void 0 ? undefined : _ref$className,
|
|
@@ -1037,7 +1037,7 @@ var CheckboxIcon = function CheckboxIcon(_ref) {
|
|
|
1037
1037
|
isDisabled = _ref$isDisabled === void 0 ? false : _ref$isDisabled,
|
|
1038
1038
|
_ref$isIndeterminate = _ref.isIndeterminate,
|
|
1039
1039
|
isIndeterminate = _ref$isIndeterminate === void 0 ? false : _ref$isIndeterminate,
|
|
1040
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1040
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$z);
|
|
1041
1041
|
var color = 'base';
|
|
1042
1042
|
var name = 'checkbox-btn';
|
|
1043
1043
|
if (isChecked) name = 'checkbox-btn-checked';else name = 'checkbox-btn';
|
|
@@ -1060,9 +1060,9 @@ var CheckboxIcon = function CheckboxIcon(_ref) {
|
|
|
1060
1060
|
}));
|
|
1061
1061
|
};
|
|
1062
1062
|
|
|
1063
|
-
var styles$
|
|
1063
|
+
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"};
|
|
1064
1064
|
|
|
1065
|
-
var _excluded$
|
|
1065
|
+
var _excluded$y = ["className", "display", "id", "isChecked", "label", "labelledby", "onChange", "error", "isDisabled", "isHidden", "isIndeterminate", "isRequired", "onBlur", "onFocus", "size", "value"];
|
|
1066
1066
|
var Checkbox = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
1067
1067
|
var _ref2;
|
|
1068
1068
|
var _ref$className = _ref.className,
|
|
@@ -1092,7 +1092,7 @@ var Checkbox = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
1092
1092
|
size = _ref$size === void 0 ? 'md' : _ref$size,
|
|
1093
1093
|
_ref$value = _ref.value,
|
|
1094
1094
|
value = _ref$value === void 0 ? undefined : _ref$value,
|
|
1095
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1095
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$y);
|
|
1096
1096
|
var inputRef = React.useRef(null);
|
|
1097
1097
|
React.useEffect(function () {
|
|
1098
1098
|
if (inputRef != null && inputRef.current) {
|
|
@@ -1126,11 +1126,11 @@ var Checkbox = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
1126
1126
|
value: value
|
|
1127
1127
|
});
|
|
1128
1128
|
var responsiveClasses = generateResponsiveClasses('size', size);
|
|
1129
|
-
var containerClasses = classNames.apply(void 0, [styles$
|
|
1130
|
-
return styles$
|
|
1131
|
-
}), [(_ref2 = {}, _ref2[styles$
|
|
1129
|
+
var containerClasses = classNames.apply(void 0, [styles$p.checkbox, className].concat(responsiveClasses.map(function (c) {
|
|
1130
|
+
return styles$p[c];
|
|
1131
|
+
}), [(_ref2 = {}, _ref2[styles$p.hidden] = isHidden, _ref2)]));
|
|
1132
1132
|
var iconClasses = classNames.apply(void 0, responsiveClasses.map(function (c) {
|
|
1133
|
-
return styles$
|
|
1133
|
+
return styles$p[c];
|
|
1134
1134
|
}));
|
|
1135
1135
|
return React.createElement(Box, _extends({
|
|
1136
1136
|
display: display,
|
|
@@ -1153,35 +1153,35 @@ var Checkbox = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
1153
1153
|
}));
|
|
1154
1154
|
});
|
|
1155
1155
|
|
|
1156
|
-
var styles$
|
|
1156
|
+
var styles$o = {"input-validation-message":"InputValidationMessage-module_input-validation-message__4MMMK"};
|
|
1157
1157
|
|
|
1158
1158
|
var InputValidationMessage = function InputValidationMessage(_ref) {
|
|
1159
1159
|
var children = _ref.children,
|
|
1160
1160
|
_ref$size = _ref.size,
|
|
1161
1161
|
size = _ref$size === void 0 ? 'sm' : _ref$size;
|
|
1162
|
-
var classes = classNames('hyphen-components__variables__form-control', styles$
|
|
1162
|
+
var classes = classNames('hyphen-components__variables__form-control', styles$o['input-validation-message'], 'font-color-danger', "font-size-" + size, 'm-top-sm');
|
|
1163
1163
|
return React.createElement("div", {
|
|
1164
1164
|
className: classes
|
|
1165
1165
|
}, children);
|
|
1166
1166
|
};
|
|
1167
1167
|
|
|
1168
|
-
var styles$
|
|
1168
|
+
var styles$n = {"label":"FormLabel-module_label__qTUB9","radio-input-label":"FormLabel-module_radio-input-label__IpAiN","disabled":"FormLabel-module_disabled__83oiH"};
|
|
1169
1169
|
|
|
1170
|
-
var styles$
|
|
1170
|
+
var styles$m = {"help-text":"HelpText-module_help-text__8WodW"};
|
|
1171
1171
|
|
|
1172
1172
|
var HelpText = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
1173
1173
|
var children = _ref.children,
|
|
1174
1174
|
className = _ref.className;
|
|
1175
1175
|
return React.createElement(Box, {
|
|
1176
1176
|
ref: ref,
|
|
1177
|
-
className: classNames('hyphen-components__variables__form-control', styles$
|
|
1177
|
+
className: classNames('hyphen-components__variables__form-control', styles$m['help-text'], className),
|
|
1178
1178
|
display: "block",
|
|
1179
1179
|
color: "secondary",
|
|
1180
1180
|
fontSize: "sm"
|
|
1181
1181
|
}, children);
|
|
1182
1182
|
});
|
|
1183
1183
|
|
|
1184
|
-
var _excluded$
|
|
1184
|
+
var _excluded$x = ["children", "inputId", "className", "display", "helpText", "isDisabled", "isFieldRequired", "isRadioInputLabel", "requiredIndicator", "margin", "padding"];
|
|
1185
1185
|
var FormLabel = function FormLabel(_ref) {
|
|
1186
1186
|
var _classNames;
|
|
1187
1187
|
var children = _ref.children,
|
|
@@ -1203,8 +1203,8 @@ var FormLabel = function FormLabel(_ref) {
|
|
|
1203
1203
|
margin = _ref$margin === void 0 ? '0' : _ref$margin,
|
|
1204
1204
|
_ref$padding = _ref.padding,
|
|
1205
1205
|
padding = _ref$padding === void 0 ? '0' : _ref$padding,
|
|
1206
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1207
|
-
var labelClasses = classNames('hyphen-components__variables__form-control', styles$
|
|
1206
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$x);
|
|
1207
|
+
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));
|
|
1208
1208
|
return React.createElement(Box, _extends({
|
|
1209
1209
|
as: "label",
|
|
1210
1210
|
id: inputId + "Label",
|
|
@@ -1216,7 +1216,7 @@ var FormLabel = function FormLabel(_ref) {
|
|
|
1216
1216
|
}, restProps), children, isFieldRequired && requiredIndicator && React.createElement("span", null, requiredIndicator), helpText && React.createElement(HelpText, null, helpText));
|
|
1217
1217
|
};
|
|
1218
1218
|
|
|
1219
|
-
var _excluded$
|
|
1219
|
+
var _excluded$w = ["id", "isChecked", "label", "onChange", "className", "error", "hideLabel", "helpText", "isDisabled", "isIndeterminate", "isRequired", "onBlur", "onFocus", "requiredIndicator", "size"];
|
|
1220
1220
|
var labelMarginSizeMap = {
|
|
1221
1221
|
sm: '2xs 0 0 0',
|
|
1222
1222
|
md: 'xs 0 0 0',
|
|
@@ -1261,7 +1261,7 @@ var CheckboxInput = function CheckboxInput(_ref2) {
|
|
|
1261
1261
|
requiredIndicator = _ref2$requiredIndicat === void 0 ? ' *' : _ref2$requiredIndicat,
|
|
1262
1262
|
_ref2$size = _ref2.size,
|
|
1263
1263
|
size = _ref2$size === void 0 ? 'md' : _ref2$size,
|
|
1264
|
-
restProps = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
1264
|
+
restProps = _objectWithoutPropertiesLoose(_ref2, _excluded$w);
|
|
1265
1265
|
var handleBlur = function handleBlur(event) {
|
|
1266
1266
|
if (onBlur) onBlur(event);
|
|
1267
1267
|
};
|
|
@@ -1303,9 +1303,9 @@ var CheckboxInput = function CheckboxInput(_ref2) {
|
|
|
1303
1303
|
})), label && !hideLabel && React.createElement(FormLabel, _extends({}, labelProps), label)), error && error !== true && React.createElement(InputValidationMessage, null, error));
|
|
1304
1304
|
};
|
|
1305
1305
|
|
|
1306
|
-
var styles$
|
|
1306
|
+
var styles$l = {};
|
|
1307
1307
|
|
|
1308
|
-
var _excluded$
|
|
1308
|
+
var _excluded$v = ["children", "dayClassName", "maxDate", "minDate", "monthsShown", "openToDate", "startDate", "selected", "selectsRange", "showTwoColumnMonthYearPicker", "showFullMonthYearPicker", "showMonthYearPicker", "className", "formatWeekDay"];
|
|
1309
1309
|
var DatePicker = function DatePicker(_ref) {
|
|
1310
1310
|
var _ref$children = _ref.children,
|
|
1311
1311
|
children = _ref$children === void 0 ? null : _ref$children,
|
|
@@ -1337,8 +1337,8 @@ var DatePicker = function DatePicker(_ref) {
|
|
|
1337
1337
|
formatWeekDay = _ref$formatWeekDay === void 0 ? function (formattedDate) {
|
|
1338
1338
|
return formattedDate[0];
|
|
1339
1339
|
} : _ref$formatWeekDay,
|
|
1340
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1341
|
-
var datePickerClasses = classNames(styles$
|
|
1340
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$v);
|
|
1341
|
+
var datePickerClasses = classNames(styles$l['react-datepicker'], className);
|
|
1342
1342
|
return React.createElement(ReactDatePicker, _extends({
|
|
1343
1343
|
inline: true,
|
|
1344
1344
|
calendarClassName: datePickerClasses,
|
|
@@ -1357,7 +1357,7 @@ var DatePicker = function DatePicker(_ref) {
|
|
|
1357
1357
|
}, restProps), children);
|
|
1358
1358
|
};
|
|
1359
1359
|
|
|
1360
|
-
var _excluded$
|
|
1360
|
+
var _excluded$u = ["label", "hideLabel", "children", "error", "id", "isRequired", "helpText", "isDisabled", "requiredIndicator", "width"];
|
|
1361
1361
|
var FormControl = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
1362
1362
|
var label = _ref.label,
|
|
1363
1363
|
hideLabel = _ref.hideLabel,
|
|
@@ -1370,7 +1370,7 @@ var FormControl = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
1370
1370
|
requiredIndicator = _ref.requiredIndicator,
|
|
1371
1371
|
_ref$width = _ref.width,
|
|
1372
1372
|
width = _ref$width === void 0 ? '100' : _ref$width,
|
|
1373
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1373
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$u);
|
|
1374
1374
|
var labelProps = {
|
|
1375
1375
|
inputId: id,
|
|
1376
1376
|
helpText: helpText,
|
|
@@ -1396,9 +1396,9 @@ function getAutoCompleteValue(value) {
|
|
|
1396
1396
|
return value;
|
|
1397
1397
|
}
|
|
1398
1398
|
|
|
1399
|
-
var styles$
|
|
1399
|
+
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"};
|
|
1400
1400
|
|
|
1401
|
-
var _excluded$
|
|
1401
|
+
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"];
|
|
1402
1402
|
var TextInput = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
1403
1403
|
var _ref2;
|
|
1404
1404
|
var id = _ref.id,
|
|
@@ -1442,12 +1442,12 @@ var TextInput = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
1442
1442
|
size = _ref$size === void 0 ? 'md' : _ref$size,
|
|
1443
1443
|
_ref$type = _ref.type,
|
|
1444
1444
|
type = _ref$type === void 0 ? 'text' : _ref$type,
|
|
1445
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1445
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$t);
|
|
1446
1446
|
var responsiveClasses = generateResponsiveClasses('size', size);
|
|
1447
|
-
var inputWrapperClasses = classNames.apply(void 0, ['hyphen-components__variables__form-control', styles$
|
|
1448
|
-
return styles$
|
|
1449
|
-
}), [(_ref2 = {}, _ref2[styles$
|
|
1450
|
-
var clearBtnClasses = classNames(styles$
|
|
1447
|
+
var inputWrapperClasses = classNames.apply(void 0, ['hyphen-components__variables__form-control', styles$k['text-input-wrapper']].concat(responsiveClasses.map(function (c) {
|
|
1448
|
+
return styles$k[c];
|
|
1449
|
+
}), [(_ref2 = {}, _ref2[styles$k.error] = error, _ref2[styles$k.disabled] = isDisabled, _ref2[styles$k['is-clearable']] = onClear, _ref2)]));
|
|
1450
|
+
var clearBtnClasses = classNames(styles$k['clear-button'], styles$k.md);
|
|
1451
1451
|
var renderClearIcon = function renderClearIcon() {
|
|
1452
1452
|
var handleKeyPress = function handleKeyPress(event) {
|
|
1453
1453
|
if (event.keyCode === 13 && onClear) onClear(event);
|
|
@@ -1506,17 +1506,17 @@ var TextInput = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
1506
1506
|
}, prefix && React.createElement(Box, {
|
|
1507
1507
|
color: "secondary",
|
|
1508
1508
|
background: "secondary",
|
|
1509
|
-
className: classNames(styles$
|
|
1509
|
+
className: classNames(styles$k.prefix, 'ws-nowrap')
|
|
1510
1510
|
}, prefix), React.createElement(Box, _extends({
|
|
1511
1511
|
as: "input"
|
|
1512
1512
|
}, computedInputProps)), !!onClear && !!value && renderClearIcon(), suffix && React.createElement(Box, {
|
|
1513
1513
|
color: "secondary",
|
|
1514
1514
|
background: "secondary",
|
|
1515
|
-
className: classNames(styles$
|
|
1515
|
+
className: classNames(styles$k.suffix, 'ws-nowrap')
|
|
1516
1516
|
}, suffix)));
|
|
1517
1517
|
});
|
|
1518
1518
|
|
|
1519
|
-
var styles$
|
|
1519
|
+
var styles$j = {"popover":"Popover-module_popover__rvS3X","fadeIn":"Popover-module_fadeIn__0btE5","popover-arrow":"Popover-module_popover-arrow__SLtPW"};
|
|
1520
1520
|
|
|
1521
1521
|
// eslint-disable-next-line import/prefer-default-export
|
|
1522
1522
|
var getColumnKeys = function getColumnKeys(columns) {
|
|
@@ -1591,7 +1591,7 @@ var BREAKPOINTS = /*#__PURE__*/[].concat(Object.entries(designTokens.size.breakp
|
|
|
1591
1591
|
var Z_INDEX_VALUES = designTokens.size['z-index'];
|
|
1592
1592
|
// export const BOX_SHADOW_VALUES = designTokens.size['box-shadow'];
|
|
1593
1593
|
|
|
1594
|
-
var _excluded$
|
|
1594
|
+
var _excluded$s = ["className", "isOpen", "children", "content", "arrowColor", "contentContainerProps", "hasArrow", "offsetFromTarget", "onClickOutside", "placement", "withPortal", "portalTarget", "trapFocus"];
|
|
1595
1595
|
var contentContainerDefaults = {
|
|
1596
1596
|
background: 'primary',
|
|
1597
1597
|
padding: 'sm',
|
|
@@ -1620,7 +1620,7 @@ var Popover = function Popover(_ref) {
|
|
|
1620
1620
|
portalTarget = _ref.portalTarget,
|
|
1621
1621
|
_ref$trapFocus = _ref.trapFocus,
|
|
1622
1622
|
trapFocus = _ref$trapFocus === void 0 ? false : _ref$trapFocus,
|
|
1623
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1623
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$s);
|
|
1624
1624
|
var triggerRef = React.useRef(null);
|
|
1625
1625
|
var popperRef = React.useRef(null);
|
|
1626
1626
|
var _useState = React.useState(null),
|
|
@@ -1674,14 +1674,14 @@ var Popover = function Popover(_ref) {
|
|
|
1674
1674
|
attributes = _usePopper.attributes;
|
|
1675
1675
|
var containerBoxProps = _extends({}, contentContainerDefaults, contentContainerProps);
|
|
1676
1676
|
var computedArrowColor = arrowColor || containerBoxProps.background;
|
|
1677
|
-
var arrowClasses = classNames(styles$
|
|
1677
|
+
var arrowClasses = classNames(styles$j['popover-arrow'], "background-color-" + computedArrowColor, {
|
|
1678
1678
|
'display-none': !hasArrow
|
|
1679
1679
|
});
|
|
1680
1680
|
var renderPopperContent = function renderPopperContent() {
|
|
1681
1681
|
var renderPopperBox = function renderPopperBox() {
|
|
1682
1682
|
return React.createElement(Box, _extends({
|
|
1683
1683
|
ref: popperRef,
|
|
1684
|
-
className: classNames(styles$
|
|
1684
|
+
className: classNames(styles$j.popover, className),
|
|
1685
1685
|
style: popperStyles.popper,
|
|
1686
1686
|
role: "dialog",
|
|
1687
1687
|
"aria-label": "Popover",
|
|
@@ -1726,7 +1726,7 @@ var Popover = function Popover(_ref) {
|
|
|
1726
1726
|
withPortal && portalTarget ? reactDom.createPortal(renderPopperContent(), portalTarget) : renderPopperContent()));
|
|
1727
1727
|
};
|
|
1728
1728
|
|
|
1729
|
-
var _excluded$
|
|
1729
|
+
var _excluded$r = ["datePickerProps", "textInputProps", "dateFormat", "dateOptions", "popoverProps"];
|
|
1730
1730
|
var defaultDatePickerProps = {
|
|
1731
1731
|
selected: null,
|
|
1732
1732
|
selectsRange: false
|
|
@@ -1746,7 +1746,7 @@ var DateInput = function DateInput(_ref) {
|
|
|
1746
1746
|
dateOptions = _ref$dateOptions === void 0 ? undefined : _ref$dateOptions,
|
|
1747
1747
|
_ref$popoverProps = _ref.popoverProps,
|
|
1748
1748
|
popoverProps = _ref$popoverProps === void 0 ? _extends({}, defaultPopoverProps) : _ref$popoverProps,
|
|
1749
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1749
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$r);
|
|
1750
1750
|
var mergedDatePickerProps = _extends({}, defaultDatePickerProps, datePickerProps);
|
|
1751
1751
|
var mergedPopoverProps = _extends({}, defaultPopoverProps, popoverProps);
|
|
1752
1752
|
var mergedTextInputProps = _extends({}, defaultTextInputProps, textInputProps);
|
|
@@ -1823,14 +1823,14 @@ var DateInput = function DateInput(_ref) {
|
|
|
1823
1823
|
var ENTER = 13;
|
|
1824
1824
|
var SPACE = 32;
|
|
1825
1825
|
|
|
1826
|
-
var _excluded$
|
|
1826
|
+
var _excluded$q = ["children", "display", "isDetailsOpen", "onToggle"];
|
|
1827
1827
|
var DetailsSummary = function DetailsSummary(_ref) {
|
|
1828
1828
|
var children = _ref.children,
|
|
1829
1829
|
_ref$display = _ref.display,
|
|
1830
1830
|
display = _ref$display === void 0 ? 'block' : _ref$display,
|
|
1831
1831
|
isDetailsOpen = _ref.isDetailsOpen,
|
|
1832
1832
|
onToggle = _ref.onToggle,
|
|
1833
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1833
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$q);
|
|
1834
1834
|
var handleClick = function handleClick(event) {
|
|
1835
1835
|
// Needed to avoid default `details` behavior on a click event and keep this as controlled component.
|
|
1836
1836
|
event.preventDefault();
|
|
@@ -1866,17 +1866,17 @@ var DetailsSummary = function DetailsSummary(_ref) {
|
|
|
1866
1866
|
}), children);
|
|
1867
1867
|
};
|
|
1868
1868
|
|
|
1869
|
-
var styles$
|
|
1869
|
+
var styles$i = {"details-reset":"Details-module_details-reset__HWtSD"};
|
|
1870
1870
|
|
|
1871
|
-
var _excluded$
|
|
1871
|
+
var _excluded$p = ["children", "className", "display", "isOpen"];
|
|
1872
1872
|
var DetailsBaseComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
1873
1873
|
var children = _ref.children,
|
|
1874
1874
|
className = _ref.className,
|
|
1875
1875
|
_ref$display = _ref.display,
|
|
1876
1876
|
display = _ref$display === void 0 ? 'block' : _ref$display,
|
|
1877
1877
|
isOpen = _ref.isOpen,
|
|
1878
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1879
|
-
var detailsClasses = classNames(className, styles$
|
|
1878
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$p);
|
|
1879
|
+
var detailsClasses = classNames(className, styles$i['details-reset'], styles$i.details);
|
|
1880
1880
|
return React.createElement(Box, _extends({
|
|
1881
1881
|
as: "details",
|
|
1882
1882
|
className: detailsClasses,
|
|
@@ -1893,7 +1893,7 @@ var Details = /*#__PURE__*/function () {
|
|
|
1893
1893
|
return Details;
|
|
1894
1894
|
}();
|
|
1895
1895
|
|
|
1896
|
-
var styles$
|
|
1896
|
+
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"};
|
|
1897
1897
|
|
|
1898
1898
|
var Drawer = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
1899
1899
|
var _dynamicStyle, _classNames, _classNames2;
|
|
@@ -1939,8 +1939,8 @@ var Drawer = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
1939
1939
|
}, [initialFocusRef]);
|
|
1940
1940
|
var dynamicWidth = width;
|
|
1941
1941
|
var dynamicStyle = (_dynamicStyle = {}, _dynamicStyle['--w'] = dynamicWidth, _dynamicStyle);
|
|
1942
|
-
var overlayClassnames = classNames(styles$
|
|
1943
|
-
var contentClassnames = classNames(styles$
|
|
1942
|
+
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));
|
|
1943
|
+
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));
|
|
1944
1944
|
var renderHeader = function renderHeader() {
|
|
1945
1945
|
if (closeButton && onDismiss && !title) {
|
|
1946
1946
|
return React.createElement(Box, {
|
|
@@ -1962,7 +1962,7 @@ var Drawer = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
1962
1962
|
alignItems: "center",
|
|
1963
1963
|
padding: "2xl"
|
|
1964
1964
|
}, React.createElement(Box, {
|
|
1965
|
-
className: styles$
|
|
1965
|
+
className: styles$h.title,
|
|
1966
1966
|
fontWeight: "bold"
|
|
1967
1967
|
}, title), onDismiss && React.createElement(Button, {
|
|
1968
1968
|
variant: "tertiary",
|
|
@@ -2010,7 +2010,7 @@ var Drawer = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
2010
2010
|
}, renderHeader(), content)))));
|
|
2011
2011
|
});
|
|
2012
2012
|
|
|
2013
|
-
var _excluded$
|
|
2013
|
+
var _excluded$o = ["field", "form", "onChange", "id", "label"];
|
|
2014
2014
|
var FormikCheckboxInput = function FormikCheckboxInput(_ref) {
|
|
2015
2015
|
var _ref$field = _ref.field,
|
|
2016
2016
|
name = _ref$field.name,
|
|
@@ -2023,7 +2023,7 @@ var FormikCheckboxInput = function FormikCheckboxInput(_ref) {
|
|
|
2023
2023
|
onChange = _ref.onChange,
|
|
2024
2024
|
id = _ref.id,
|
|
2025
2025
|
label = _ref.label,
|
|
2026
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2026
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$o);
|
|
2027
2027
|
return React.createElement(CheckboxInput, _extends({}, props, {
|
|
2028
2028
|
id: id,
|
|
2029
2029
|
label: label,
|
|
@@ -2034,7 +2034,7 @@ var FormikCheckboxInput = function FormikCheckboxInput(_ref) {
|
|
|
2034
2034
|
}));
|
|
2035
2035
|
};
|
|
2036
2036
|
|
|
2037
|
-
var _excluded$
|
|
2037
|
+
var _excluded$n = ["className", "isSelected", "isDisabled", "error"];
|
|
2038
2038
|
var RadioInputIcon = function RadioInputIcon(_ref) {
|
|
2039
2039
|
var _ref$className = _ref.className,
|
|
2040
2040
|
className = _ref$className === void 0 ? undefined : _ref$className,
|
|
@@ -2044,7 +2044,7 @@ var RadioInputIcon = function RadioInputIcon(_ref) {
|
|
|
2044
2044
|
isDisabled = _ref$isDisabled === void 0 ? false : _ref$isDisabled,
|
|
2045
2045
|
_ref$error = _ref.error,
|
|
2046
2046
|
error = _ref$error === void 0 ? null : _ref$error,
|
|
2047
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2047
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$n);
|
|
2048
2048
|
var color = 'secondary';
|
|
2049
2049
|
var name = 'radio-btn-unchecked';
|
|
2050
2050
|
if (isSelected && isDisabled) {
|
|
@@ -2066,7 +2066,7 @@ var RadioInputIcon = function RadioInputIcon(_ref) {
|
|
|
2066
2066
|
}));
|
|
2067
2067
|
};
|
|
2068
2068
|
|
|
2069
|
-
var styles$
|
|
2069
|
+
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"};
|
|
2070
2070
|
|
|
2071
2071
|
var RadioInput = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
2072
2072
|
var _classNames;
|
|
@@ -2090,7 +2090,7 @@ var RadioInput = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
2090
2090
|
_ref$size = _ref.size,
|
|
2091
2091
|
size = _ref$size === void 0 ? 'md' : _ref$size;
|
|
2092
2092
|
var responsiveClasses = classNames.apply(void 0, generateResponsiveClasses('size', size).map(function (c) {
|
|
2093
|
-
return styles$
|
|
2093
|
+
return styles$g[c];
|
|
2094
2094
|
}));
|
|
2095
2095
|
var labelProps = {
|
|
2096
2096
|
inputId: option.id,
|
|
@@ -2099,7 +2099,7 @@ var RadioInput = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
2099
2099
|
isRadioInputLabel: true,
|
|
2100
2100
|
justifyContent: 'center'
|
|
2101
2101
|
};
|
|
2102
|
-
var containerClasses = classNames('hyphen-components__variables__form-control', className, styles$
|
|
2102
|
+
var containerClasses = classNames('hyphen-components__variables__form-control', className, styles$g['radio-container'], responsiveClasses, (_classNames = {}, _classNames[styles$g.hidden] = isHidden, _classNames));
|
|
2103
2103
|
return React.createElement(React.Fragment, null, option && React.createElement(Box, {
|
|
2104
2104
|
className: containerClasses,
|
|
2105
2105
|
key: option.id,
|
|
@@ -2135,9 +2135,9 @@ var RadioInput = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
2135
2135
|
}), option.label && React.createElement(FormLabel, _extends({}, labelProps), option.label)));
|
|
2136
2136
|
});
|
|
2137
2137
|
|
|
2138
|
-
var styles$
|
|
2138
|
+
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-"};
|
|
2139
2139
|
|
|
2140
|
-
var _excluded$
|
|
2140
|
+
var _excluded$m = ["name", "onChange", "options", "className", "description", "direction", "error", "isDisabled", "isRequired", "onBlur", "onFocus", "requiredIndicator", "size", "title", "value"];
|
|
2141
2141
|
var RadioGroup = function RadioGroup(_ref) {
|
|
2142
2142
|
var _classNames;
|
|
2143
2143
|
var name = _ref.name,
|
|
@@ -2167,20 +2167,20 @@ var RadioGroup = function RadioGroup(_ref) {
|
|
|
2167
2167
|
title = _ref$title === void 0 ? undefined : _ref$title,
|
|
2168
2168
|
_ref$value = _ref.value,
|
|
2169
2169
|
value = _ref$value === void 0 ? undefined : _ref$value,
|
|
2170
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2171
|
-
var groupClasses = classNames('hyphen-components__variables__form-control', className, (_classNames = {}, _classNames[styles$
|
|
2170
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$m);
|
|
2171
|
+
var groupClasses = classNames('hyphen-components__variables__form-control', className, (_classNames = {}, _classNames[styles$f.loading] = error, _classNames));
|
|
2172
2172
|
return React.createElement("div", _extends({
|
|
2173
|
-
className: classNames(styles$
|
|
2173
|
+
className: classNames(styles$f['radio-group'], groupClasses)
|
|
2174
2174
|
}, restProps), React.createElement("fieldset", {
|
|
2175
|
-
className: styles$
|
|
2175
|
+
className: styles$f.fieldset
|
|
2176
2176
|
}, (title || description) && React.createElement("legend", {
|
|
2177
|
-
className: styles$
|
|
2177
|
+
className: styles$f.legend
|
|
2178
2178
|
}, title, isRequired && React.createElement("span", null, requiredIndicator), description && React.createElement("div", {
|
|
2179
|
-
className: styles$
|
|
2179
|
+
className: styles$f.description
|
|
2180
2180
|
}, description)), React.createElement(Box, {
|
|
2181
2181
|
direction: direction,
|
|
2182
2182
|
gap: "sm",
|
|
2183
|
-
className: styles$
|
|
2183
|
+
className: styles$f.options
|
|
2184
2184
|
}, options && options.map(function (option) {
|
|
2185
2185
|
return React.createElement(RadioInput, {
|
|
2186
2186
|
key: option.id,
|
|
@@ -2197,7 +2197,7 @@ var RadioGroup = function RadioGroup(_ref) {
|
|
|
2197
2197
|
}))), error && typeof error !== 'boolean' && React.createElement(InputValidationMessage, null, error));
|
|
2198
2198
|
};
|
|
2199
2199
|
|
|
2200
|
-
var _excluded$
|
|
2200
|
+
var _excluded$l = ["field", "form", "onChange", "options"];
|
|
2201
2201
|
var FormikRadioGroup = function FormikRadioGroup(_ref) {
|
|
2202
2202
|
var _ref$field = _ref.field,
|
|
2203
2203
|
name = _ref$field.name,
|
|
@@ -2209,7 +2209,7 @@ var FormikRadioGroup = function FormikRadioGroup(_ref) {
|
|
|
2209
2209
|
errors = _ref$form.errors,
|
|
2210
2210
|
onChange = _ref.onChange,
|
|
2211
2211
|
options = _ref.options,
|
|
2212
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2212
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$l);
|
|
2213
2213
|
return React.createElement(RadioGroup, _extends({}, props, {
|
|
2214
2214
|
options: options,
|
|
2215
2215
|
name: name,
|
|
@@ -2220,9 +2220,9 @@ var FormikRadioGroup = function FormikRadioGroup(_ref) {
|
|
|
2220
2220
|
}));
|
|
2221
2221
|
};
|
|
2222
2222
|
|
|
2223
|
-
var styles$
|
|
2223
|
+
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"};
|
|
2224
2224
|
|
|
2225
|
-
var _excluded$
|
|
2225
|
+
var _excluded$k = ["id", "label", "onChange", "options", "value", "autoFocus", "className", "error", "helpText", "hideLabel", "isClearable", "isDisabled", "isMulti", "isRequired", "menuPortalTarget", "name", "onFocus", "onBlur", "placeholder", "requiredIndicator", "size"];
|
|
2226
2226
|
var SelectInput = function SelectInput(_ref) {
|
|
2227
2227
|
var _ref2, _classNames;
|
|
2228
2228
|
var id = _ref.id,
|
|
@@ -2261,7 +2261,7 @@ var SelectInput = function SelectInput(_ref) {
|
|
|
2261
2261
|
requiredIndicator = _ref$requiredIndicato === void 0 ? ' *' : _ref$requiredIndicato,
|
|
2262
2262
|
_ref$size = _ref.size,
|
|
2263
2263
|
size = _ref$size === void 0 ? 'md' : _ref$size,
|
|
2264
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2264
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$k);
|
|
2265
2265
|
var handleChange = function handleChange(values) {
|
|
2266
2266
|
var simulatedEventPayloadType = {
|
|
2267
2267
|
target: {
|
|
@@ -2279,13 +2279,13 @@ var SelectInput = function SelectInput(_ref) {
|
|
|
2279
2279
|
};
|
|
2280
2280
|
var responsiveClasses = generateResponsiveClasses('size', size);
|
|
2281
2281
|
var wrapperClasses = classNames.apply(void 0, ['hyphen-components__variables__form-control', 'select-input-wrapper', className].concat(responsiveClasses.map(function (c) {
|
|
2282
|
-
return styles$
|
|
2283
|
-
}), [(_ref2 = {}, _ref2[styles$
|
|
2284
|
-
var inputClasses = classNames('react-select', (_classNames = {}, _classNames[styles$
|
|
2282
|
+
return styles$e[c];
|
|
2283
|
+
}), [(_ref2 = {}, _ref2[styles$e.disabled] = isDisabled, _ref2)]));
|
|
2284
|
+
var inputClasses = classNames('react-select', (_classNames = {}, _classNames[styles$e.error] = error, _classNames));
|
|
2285
2285
|
var labelProps = {
|
|
2286
2286
|
inputId: id,
|
|
2287
2287
|
helpText: helpText,
|
|
2288
|
-
className: styles$
|
|
2288
|
+
className: styles$e['select-input-label'],
|
|
2289
2289
|
isDisabled: isDisabled,
|
|
2290
2290
|
isFieldRequired: isRequired,
|
|
2291
2291
|
requiredIndicator: requiredIndicator
|
|
@@ -2329,7 +2329,7 @@ var SelectInput = function SelectInput(_ref) {
|
|
|
2329
2329
|
})), error && typeof error !== 'boolean' && React.createElement(InputValidationMessage, null, error));
|
|
2330
2330
|
};
|
|
2331
2331
|
|
|
2332
|
-
var _excluded$
|
|
2332
|
+
var _excluded$j = ["field", "form", "onChange", "id", "label", "options"];
|
|
2333
2333
|
var FormikSelectInput = function FormikSelectInput(_ref) {
|
|
2334
2334
|
var _ref$field = _ref.field,
|
|
2335
2335
|
name = _ref$field.name,
|
|
@@ -2343,7 +2343,7 @@ var FormikSelectInput = function FormikSelectInput(_ref) {
|
|
|
2343
2343
|
id = _ref.id,
|
|
2344
2344
|
label = _ref.label,
|
|
2345
2345
|
options = _ref.options,
|
|
2346
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2346
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$j);
|
|
2347
2347
|
return React.createElement(SelectInput, _extends({}, props, {
|
|
2348
2348
|
id: id,
|
|
2349
2349
|
label: label,
|
|
@@ -2356,7 +2356,7 @@ var FormikSelectInput = function FormikSelectInput(_ref) {
|
|
|
2356
2356
|
}));
|
|
2357
2357
|
};
|
|
2358
2358
|
|
|
2359
|
-
var styles$
|
|
2359
|
+
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"};
|
|
2360
2360
|
|
|
2361
2361
|
var SelectInputInset = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
2362
2362
|
var _ref2;
|
|
@@ -2398,10 +2398,10 @@ var SelectInputInset = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
2398
2398
|
};
|
|
2399
2399
|
var optionsWithPlaceholder = [_extends({}, placeholderOption)].concat(options);
|
|
2400
2400
|
var responsiveClasses = generateResponsiveClasses('size', size);
|
|
2401
|
-
var inputWrapperClasses = classNames.apply(void 0, ['hyphen-components__variables__form-control', styles$
|
|
2402
|
-
return styles$
|
|
2403
|
-
}), [(_ref2 = {}, _ref2[styles$
|
|
2404
|
-
var clearBtnClasses = classNames(styles$
|
|
2401
|
+
var inputWrapperClasses = classNames.apply(void 0, ['hyphen-components__variables__form-control', styles$d['text-input-wrapper']].concat(responsiveClasses.map(function (c) {
|
|
2402
|
+
return styles$d[c];
|
|
2403
|
+
}), [(_ref2 = {}, _ref2[styles$d.error] = error, _ref2[styles$d.disabled] = isDisabled, _ref2[styles$d['is-clearable']] = onClear, _ref2)]));
|
|
2404
|
+
var clearBtnClasses = classNames(styles$d['clear-button'], styles$d.md);
|
|
2405
2405
|
var renderClearIcon = function renderClearIcon() {
|
|
2406
2406
|
var handleKeyPress = function handleKeyPress(event) {
|
|
2407
2407
|
if (event.keyCode === 13 && onClear) onClear(event);
|
|
@@ -2456,12 +2456,12 @@ var SelectInputInset = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
2456
2456
|
}, option.label);
|
|
2457
2457
|
})), !!onClear && !!value && renderClearIcon(), React.createElement("label", {
|
|
2458
2458
|
htmlFor: id,
|
|
2459
|
-
className: styles$
|
|
2459
|
+
className: styles$d['select-input-label'],
|
|
2460
2460
|
id: id + "Label"
|
|
2461
2461
|
}, label, isRequired && requiredIndicator && React.createElement("span", null, requiredIndicator))), helpText && React.createElement(HelpText, null, helpText), error && error !== true && React.createElement(InputValidationMessage, null, error));
|
|
2462
2462
|
});
|
|
2463
2463
|
|
|
2464
|
-
var _excluded$
|
|
2464
|
+
var _excluded$i = ["field", "form", "onChange", "id", "label", "options"];
|
|
2465
2465
|
var FormikSelectInputInset = function FormikSelectInputInset(_ref) {
|
|
2466
2466
|
var _ref$field = _ref.field,
|
|
2467
2467
|
name = _ref$field.name,
|
|
@@ -2475,7 +2475,7 @@ var FormikSelectInputInset = function FormikSelectInputInset(_ref) {
|
|
|
2475
2475
|
id = _ref.id,
|
|
2476
2476
|
label = _ref.label,
|
|
2477
2477
|
options = _ref.options,
|
|
2478
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2478
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
|
|
2479
2479
|
return React.createElement(SelectInputInset, _extends({}, props, {
|
|
2480
2480
|
id: id,
|
|
2481
2481
|
label: label,
|
|
@@ -2488,7 +2488,7 @@ var FormikSelectInputInset = function FormikSelectInputInset(_ref) {
|
|
|
2488
2488
|
}));
|
|
2489
2489
|
};
|
|
2490
2490
|
|
|
2491
|
-
var styles$
|
|
2491
|
+
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"};
|
|
2492
2492
|
|
|
2493
2493
|
var TextareaInputInset = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
2494
2494
|
var _ref2, _classNames;
|
|
@@ -2531,9 +2531,9 @@ var TextareaInputInset = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
2531
2531
|
_ref$type = _ref.type,
|
|
2532
2532
|
type = _ref$type === void 0 ? 'text' : _ref$type;
|
|
2533
2533
|
var responsiveClasses = generateResponsiveClasses('size', size);
|
|
2534
|
-
var inputWrapperClasses = classNames.apply(void 0, ['hyphen-components__variables__form-control', styles$
|
|
2535
|
-
return styles$
|
|
2536
|
-
}), [(_ref2 = {}, _ref2[styles$
|
|
2534
|
+
var inputWrapperClasses = classNames.apply(void 0, ['hyphen-components__variables__form-control', styles$c['text-input-wrapper']].concat(responsiveClasses.map(function (c) {
|
|
2535
|
+
return styles$c[c];
|
|
2536
|
+
}), [(_ref2 = {}, _ref2[styles$c.disabled] = isDisabled, _ref2)]));
|
|
2537
2537
|
var computedInputProps = _extends({}, inputProps, {
|
|
2538
2538
|
// These are spread first so that we don't have top level props overwritten by the user.
|
|
2539
2539
|
'aria-required': isRequired,
|
|
@@ -2542,7 +2542,7 @@ var TextareaInputInset = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
2542
2542
|
'aria-labelledby': label ? id + "Label" : undefined,
|
|
2543
2543
|
autoComplete: getAutoCompleteValue(autoComplete),
|
|
2544
2544
|
autoFocus: autoFocus,
|
|
2545
|
-
className: classNames(styles$
|
|
2545
|
+
className: classNames(styles$c["textarea-resize-" + resize], (_classNames = {}, _classNames[styles$c.error] = error, _classNames)),
|
|
2546
2546
|
disabled: isDisabled,
|
|
2547
2547
|
id: id,
|
|
2548
2548
|
maxLength: maxLength,
|
|
@@ -2568,12 +2568,12 @@ var TextareaInputInset = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
2568
2568
|
as: "textarea"
|
|
2569
2569
|
}, computedInputProps)), React.createElement("label", {
|
|
2570
2570
|
htmlFor: id,
|
|
2571
|
-
className: styles$
|
|
2571
|
+
className: styles$c['text-input-label'],
|
|
2572
2572
|
id: id + "Label"
|
|
2573
2573
|
}, label, isRequired && requiredIndicator && React.createElement("span", null, requiredIndicator))), helpText && React.createElement(HelpText, null, helpText), error && error !== true && React.createElement(InputValidationMessage, null, error));
|
|
2574
2574
|
});
|
|
2575
2575
|
|
|
2576
|
-
var _excluded$
|
|
2576
|
+
var _excluded$h = ["field", "form", "onChange", "id", "label"];
|
|
2577
2577
|
var FormikTextareaInputInset = function FormikTextareaInputInset(_ref) {
|
|
2578
2578
|
var _ref$field = _ref.field,
|
|
2579
2579
|
name = _ref$field.name,
|
|
@@ -2586,7 +2586,7 @@ var FormikTextareaInputInset = function FormikTextareaInputInset(_ref) {
|
|
|
2586
2586
|
onChange = _ref.onChange,
|
|
2587
2587
|
id = _ref.id,
|
|
2588
2588
|
label = _ref.label,
|
|
2589
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2589
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
|
|
2590
2590
|
return React.createElement(TextareaInputInset, _extends({}, props, {
|
|
2591
2591
|
id: id,
|
|
2592
2592
|
label: label,
|
|
@@ -2598,7 +2598,7 @@ var FormikTextareaInputInset = function FormikTextareaInputInset(_ref) {
|
|
|
2598
2598
|
}));
|
|
2599
2599
|
};
|
|
2600
2600
|
|
|
2601
|
-
var styles$
|
|
2601
|
+
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"};
|
|
2602
2602
|
|
|
2603
2603
|
var TextInputInset = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
2604
2604
|
var _ref2;
|
|
@@ -2642,10 +2642,10 @@ var TextInputInset = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
2642
2642
|
_ref$type = _ref.type,
|
|
2643
2643
|
type = _ref$type === void 0 ? 'text' : _ref$type;
|
|
2644
2644
|
var responsiveClasses = generateResponsiveClasses('size', size);
|
|
2645
|
-
var inputWrapperClasses = classNames.apply(void 0, ['hyphen-components__variables__form-control', styles$
|
|
2646
|
-
return styles$
|
|
2647
|
-
}), [(_ref2 = {}, _ref2[styles$
|
|
2648
|
-
var clearBtnClasses = classNames(styles$
|
|
2645
|
+
var inputWrapperClasses = classNames.apply(void 0, ['hyphen-components__variables__form-control', styles$b['text-input-wrapper']].concat(responsiveClasses.map(function (c) {
|
|
2646
|
+
return styles$b[c];
|
|
2647
|
+
}), [(_ref2 = {}, _ref2[styles$b.error] = error, _ref2[styles$b.disabled] = isDisabled, _ref2[styles$b['is-clearable']] = onClear, _ref2)]));
|
|
2648
|
+
var clearBtnClasses = classNames(styles$b['clear-button'], styles$b.md);
|
|
2649
2649
|
var renderClearIcon = function renderClearIcon() {
|
|
2650
2650
|
var handleKeyPress = function handleKeyPress(event) {
|
|
2651
2651
|
if (event.keyCode === 13 && onClear) onClear(event);
|
|
@@ -2694,7 +2694,7 @@ var TextInputInset = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
2694
2694
|
alignItems: "center",
|
|
2695
2695
|
justifyContent: "center",
|
|
2696
2696
|
background: "secondary",
|
|
2697
|
-
className: classNames(styles$
|
|
2697
|
+
className: classNames(styles$b.prefix, 'ws-nowrap')
|
|
2698
2698
|
}, prefix), React.createElement(Box, {
|
|
2699
2699
|
direction: "row",
|
|
2700
2700
|
position: "relative",
|
|
@@ -2704,16 +2704,16 @@ var TextInputInset = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
2704
2704
|
as: "input"
|
|
2705
2705
|
}, computedInputProps)), !!onClear && !!value && renderClearIcon(), React.createElement("label", {
|
|
2706
2706
|
htmlFor: id,
|
|
2707
|
-
className: styles$
|
|
2707
|
+
className: styles$b['text-input-label'],
|
|
2708
2708
|
id: id + "Label"
|
|
2709
2709
|
}, label, isRequired && requiredIndicator && React.createElement("span", null, requiredIndicator))), suffix && React.createElement(Box, {
|
|
2710
2710
|
color: "base",
|
|
2711
2711
|
background: "secondary",
|
|
2712
|
-
className: classNames(styles$
|
|
2712
|
+
className: classNames(styles$b.suffix, 'ws-nowrap')
|
|
2713
2713
|
}, suffix)), helpText && React.createElement(HelpText, null, helpText), error && error !== true && React.createElement(InputValidationMessage, null, error));
|
|
2714
2714
|
});
|
|
2715
2715
|
|
|
2716
|
-
var _excluded$
|
|
2716
|
+
var _excluded$g = ["field", "form", "onChange", "id", "label"];
|
|
2717
2717
|
var FormikTextInputInset = function FormikTextInputInset(_ref) {
|
|
2718
2718
|
var _ref$field = _ref.field,
|
|
2719
2719
|
name = _ref$field.name,
|
|
@@ -2726,7 +2726,7 @@ var FormikTextInputInset = function FormikTextInputInset(_ref) {
|
|
|
2726
2726
|
onChange = _ref.onChange,
|
|
2727
2727
|
id = _ref.id,
|
|
2728
2728
|
label = _ref.label,
|
|
2729
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2729
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$g);
|
|
2730
2730
|
return React.createElement(TextInputInset, _extends({}, props, {
|
|
2731
2731
|
id: id,
|
|
2732
2732
|
label: label,
|
|
@@ -2738,9 +2738,9 @@ var FormikTextInputInset = function FormikTextInputInset(_ref) {
|
|
|
2738
2738
|
}));
|
|
2739
2739
|
};
|
|
2740
2740
|
|
|
2741
|
-
var styles$
|
|
2741
|
+
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"};
|
|
2742
2742
|
|
|
2743
|
-
var _excluded$
|
|
2743
|
+
var _excluded$f = ["autoFocus", "label", "hideLabel", "helpText", "error", "id", "isDisabled", "isRequired", "name", "value", "options", "onChange", "placeholder", "requiredIndicator", "size"];
|
|
2744
2744
|
var SelectInputNative = function SelectInputNative(_ref) {
|
|
2745
2745
|
var _ref2;
|
|
2746
2746
|
var _ref$autoFocus = _ref.autoFocus,
|
|
@@ -2762,16 +2762,16 @@ var SelectInputNative = function SelectInputNative(_ref) {
|
|
|
2762
2762
|
requiredIndicator = _ref$requiredIndicato === void 0 ? ' *' : _ref$requiredIndicato,
|
|
2763
2763
|
_ref$size = _ref.size,
|
|
2764
2764
|
size = _ref$size === void 0 ? 'md' : _ref$size,
|
|
2765
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2765
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$f);
|
|
2766
2766
|
var placeholderOption = {
|
|
2767
2767
|
value: '',
|
|
2768
2768
|
label: placeholder
|
|
2769
2769
|
};
|
|
2770
2770
|
var optionsWithPlaceholder = [_extends({}, placeholderOption)].concat(options);
|
|
2771
2771
|
var responsiveClasses = generateResponsiveClasses('size', size);
|
|
2772
|
-
var selectWrapperClasses = classNames.apply(void 0, ['hyphen-components__variables__form-control', styles$
|
|
2773
|
-
return styles$
|
|
2774
|
-
}), [(_ref2 = {}, _ref2[styles$
|
|
2772
|
+
var selectWrapperClasses = classNames.apply(void 0, ['hyphen-components__variables__form-control', styles$a['select-input-native-wrapper']].concat(responsiveClasses.map(function (className) {
|
|
2773
|
+
return styles$a[className];
|
|
2774
|
+
}), [(_ref2 = {}, _ref2[styles$a.disabled] = isDisabled, _ref2[styles$a.error] = error, _ref2)]));
|
|
2775
2775
|
return React.createElement(FormControl, _extends({
|
|
2776
2776
|
label: label,
|
|
2777
2777
|
hideLabel: hideLabel,
|
|
@@ -2808,7 +2808,7 @@ var SelectInputNative = function SelectInputNative(_ref) {
|
|
|
2808
2808
|
}))));
|
|
2809
2809
|
};
|
|
2810
2810
|
|
|
2811
|
-
var _excluded$
|
|
2811
|
+
var _excluded$e = ["field", "form", "onChange", "options", "id", "label"];
|
|
2812
2812
|
var FormikSelectInputNative = function FormikSelectInputNative(_ref) {
|
|
2813
2813
|
var _ref$field = _ref.field,
|
|
2814
2814
|
name = _ref$field.name,
|
|
@@ -2822,7 +2822,7 @@ var FormikSelectInputNative = function FormikSelectInputNative(_ref) {
|
|
|
2822
2822
|
options = _ref.options,
|
|
2823
2823
|
id = _ref.id,
|
|
2824
2824
|
label = _ref.label,
|
|
2825
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2825
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$e);
|
|
2826
2826
|
return React.createElement(SelectInputNative, _extends({}, props, {
|
|
2827
2827
|
options: options,
|
|
2828
2828
|
id: id,
|
|
@@ -2835,7 +2835,7 @@ var FormikSelectInputNative = function FormikSelectInputNative(_ref) {
|
|
|
2835
2835
|
}));
|
|
2836
2836
|
};
|
|
2837
2837
|
|
|
2838
|
-
var _excluded$
|
|
2838
|
+
var _excluded$d = ["field", "form", "onChange", "id", "label"];
|
|
2839
2839
|
var FormikTextInput = function FormikTextInput(_ref) {
|
|
2840
2840
|
var _ref$field = _ref.field,
|
|
2841
2841
|
name = _ref$field.name,
|
|
@@ -2848,7 +2848,7 @@ var FormikTextInput = function FormikTextInput(_ref) {
|
|
|
2848
2848
|
onChange = _ref.onChange,
|
|
2849
2849
|
id = _ref.id,
|
|
2850
2850
|
label = _ref.label,
|
|
2851
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2851
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
|
|
2852
2852
|
return React.createElement(TextInput, _extends({}, props, {
|
|
2853
2853
|
id: id,
|
|
2854
2854
|
label: label,
|
|
@@ -2860,9 +2860,9 @@ var FormikTextInput = function FormikTextInput(_ref) {
|
|
|
2860
2860
|
}));
|
|
2861
2861
|
};
|
|
2862
2862
|
|
|
2863
|
-
var styles$
|
|
2863
|
+
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"};
|
|
2864
2864
|
|
|
2865
|
-
var _excluded$
|
|
2865
|
+
var _excluded$c = ["id", "label", "onChange", "value", "autoComplete", "autoFocus", "className", "error", "helpText", "hideLabel", "isDisabled", "isRequired", "maxLength", "name", "onBlur", "onFocus", "placeholder", "requiredIndicator", "resize", "rows", "size"];
|
|
2866
2866
|
var TextareaInput = function TextareaInput(_ref) {
|
|
2867
2867
|
var _ref2;
|
|
2868
2868
|
var id = _ref.id,
|
|
@@ -2902,11 +2902,11 @@ var TextareaInput = function TextareaInput(_ref) {
|
|
|
2902
2902
|
rows = _ref$rows === void 0 ? 3 : _ref$rows,
|
|
2903
2903
|
_ref$size = _ref.size,
|
|
2904
2904
|
size = _ref$size === void 0 ? 'md' : _ref$size,
|
|
2905
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2905
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$c);
|
|
2906
2906
|
var responsiveClasses = generateResponsiveClasses('size', size);
|
|
2907
|
-
var inputWrapperClasses = classNames.apply(void 0, ['hyphen-components__variables__form-control', styles$
|
|
2908
|
-
return styles$
|
|
2909
|
-
}), [(_ref2 = {}, _ref2[styles$
|
|
2907
|
+
var inputWrapperClasses = classNames.apply(void 0, ['hyphen-components__variables__form-control', styles$9['textarea-input-wrapper']].concat(responsiveClasses.map(function (c) {
|
|
2908
|
+
return styles$9[c];
|
|
2909
|
+
}), [(_ref2 = {}, _ref2[styles$9.error] = error, _ref2[styles$9.disabled] = isDisabled, _ref2)]));
|
|
2910
2910
|
var inputProps = {
|
|
2911
2911
|
'aria-required': isRequired,
|
|
2912
2912
|
'aria-invalid': !!error,
|
|
@@ -2914,7 +2914,7 @@ var TextareaInput = function TextareaInput(_ref) {
|
|
|
2914
2914
|
'aria-labelledby': label && !hideLabel ? id + "Label" : undefined,
|
|
2915
2915
|
autoComplete: getAutoCompleteValue(autoComplete),
|
|
2916
2916
|
autoFocus: autoFocus,
|
|
2917
|
-
className: classNames(styles$
|
|
2917
|
+
className: classNames(styles$9["textarea-resize-" + resize]),
|
|
2918
2918
|
disabled: isDisabled,
|
|
2919
2919
|
id: id,
|
|
2920
2920
|
maxLength: maxLength,
|
|
@@ -2930,7 +2930,7 @@ var TextareaInput = function TextareaInput(_ref) {
|
|
|
2930
2930
|
var labelProps = {
|
|
2931
2931
|
inputId: id,
|
|
2932
2932
|
helpText: helpText,
|
|
2933
|
-
className: styles$
|
|
2933
|
+
className: styles$9['textarea-input-label'],
|
|
2934
2934
|
isDisabled: isDisabled,
|
|
2935
2935
|
isFieldRequired: isRequired,
|
|
2936
2936
|
requiredIndicator: requiredIndicator
|
|
@@ -2946,7 +2946,7 @@ var TextareaInput = function TextareaInput(_ref) {
|
|
|
2946
2946
|
}, inputProps))), error && error !== true && React.createElement(InputValidationMessage, null, error));
|
|
2947
2947
|
};
|
|
2948
2948
|
|
|
2949
|
-
var _excluded$
|
|
2949
|
+
var _excluded$b = ["field", "form", "onChange", "id", "label"];
|
|
2950
2950
|
var FormikTextareaInput = function FormikTextareaInput(_ref) {
|
|
2951
2951
|
var _ref$field = _ref.field,
|
|
2952
2952
|
name = _ref$field.name,
|
|
@@ -2959,7 +2959,7 @@ var FormikTextareaInput = function FormikTextareaInput(_ref) {
|
|
|
2959
2959
|
onChange = _ref.onChange,
|
|
2960
2960
|
id = _ref.id,
|
|
2961
2961
|
label = _ref.label,
|
|
2962
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2962
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$b);
|
|
2963
2963
|
return React.createElement(TextareaInput, _extends({}, props, {
|
|
2964
2964
|
id: id,
|
|
2965
2965
|
label: label,
|
|
@@ -2971,7 +2971,7 @@ var FormikTextareaInput = function FormikTextareaInput(_ref) {
|
|
|
2971
2971
|
}));
|
|
2972
2972
|
};
|
|
2973
2973
|
|
|
2974
|
-
var _excluded$
|
|
2974
|
+
var _excluded$a = ["id", "name", "label", "onChange", "value", "dateDisplayOptions", "endTime", "interval", "locales", "placeholder", "startTime"];
|
|
2975
2975
|
var TimePicker = function TimePicker(_ref) {
|
|
2976
2976
|
var id = _ref.id,
|
|
2977
2977
|
name = _ref.name,
|
|
@@ -2993,7 +2993,7 @@ var TimePicker = function TimePicker(_ref) {
|
|
|
2993
2993
|
placeholder = _ref$placeholder === void 0 ? 'HH:MM' : _ref$placeholder,
|
|
2994
2994
|
_ref$startTime = _ref.startTime,
|
|
2995
2995
|
startTime = _ref$startTime === void 0 ? undefined : _ref$startTime,
|
|
2996
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2996
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$a);
|
|
2997
2997
|
var generateTimes = function generateTimes() {
|
|
2998
2998
|
var first = new Date();
|
|
2999
2999
|
first.setHours((startTime == null ? void 0 : startTime.hour) || 0, (startTime == null ? void 0 : startTime.minute) || 0, 0, 0);
|
|
@@ -3021,7 +3021,7 @@ var TimePicker = function TimePicker(_ref) {
|
|
|
3021
3021
|
}));
|
|
3022
3022
|
};
|
|
3023
3023
|
|
|
3024
|
-
var _excluded$
|
|
3024
|
+
var _excluded$9 = ["field", "form", "options", "onChange"];
|
|
3025
3025
|
var FormikTimePicker = function FormikTimePicker(_ref) {
|
|
3026
3026
|
var _ref$field = _ref.field,
|
|
3027
3027
|
name = _ref$field.name,
|
|
@@ -3033,7 +3033,7 @@ var FormikTimePicker = function FormikTimePicker(_ref) {
|
|
|
3033
3033
|
errors = _ref$form.errors,
|
|
3034
3034
|
options = _ref.options,
|
|
3035
3035
|
onChange = _ref.onChange,
|
|
3036
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3036
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$9);
|
|
3037
3037
|
return React.createElement(TimePicker, _extends({}, props, {
|
|
3038
3038
|
name: name,
|
|
3039
3039
|
onBlur: onBlur,
|
|
@@ -3044,7 +3044,7 @@ var FormikTimePicker = function FormikTimePicker(_ref) {
|
|
|
3044
3044
|
}));
|
|
3045
3045
|
};
|
|
3046
3046
|
|
|
3047
|
-
var _excluded$
|
|
3047
|
+
var _excluded$8 = ["id", "name", "label", "onChange", "value", "dateDisplayOptions", "endTime", "interval", "locales", "placeholder", "startTime"];
|
|
3048
3048
|
var TimePickerNative = function TimePickerNative(_ref) {
|
|
3049
3049
|
var id = _ref.id,
|
|
3050
3050
|
name = _ref.name,
|
|
@@ -3066,7 +3066,7 @@ var TimePickerNative = function TimePickerNative(_ref) {
|
|
|
3066
3066
|
placeholder = _ref$placeholder === void 0 ? 'HH:MM' : _ref$placeholder,
|
|
3067
3067
|
_ref$startTime = _ref.startTime,
|
|
3068
3068
|
startTime = _ref$startTime === void 0 ? undefined : _ref$startTime,
|
|
3069
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3069
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$8);
|
|
3070
3070
|
var generateTimes = function generateTimes() {
|
|
3071
3071
|
var first = new Date();
|
|
3072
3072
|
first.setHours((startTime == null ? void 0 : startTime.hour) || 0, (startTime == null ? void 0 : startTime.minute) || 0, 0, 0);
|
|
@@ -3095,7 +3095,7 @@ var TimePickerNative = function TimePickerNative(_ref) {
|
|
|
3095
3095
|
}));
|
|
3096
3096
|
};
|
|
3097
3097
|
|
|
3098
|
-
var _excluded$
|
|
3098
|
+
var _excluded$7 = ["field", "form", "onChange"];
|
|
3099
3099
|
var FormikTimePickerNative = function FormikTimePickerNative(_ref) {
|
|
3100
3100
|
var _ref$field = _ref.field,
|
|
3101
3101
|
name = _ref$field.name,
|
|
@@ -3106,7 +3106,7 @@ var FormikTimePickerNative = function FormikTimePickerNative(_ref) {
|
|
|
3106
3106
|
touched = _ref$form.touched,
|
|
3107
3107
|
errors = _ref$form.errors,
|
|
3108
3108
|
onChange = _ref.onChange,
|
|
3109
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3109
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$7);
|
|
3110
3110
|
return React.createElement(TimePickerNative, _extends({}, props, {
|
|
3111
3111
|
name: name,
|
|
3112
3112
|
onBlur: onBlur,
|
|
@@ -3116,7 +3116,7 @@ var FormikTimePickerNative = function FormikTimePickerNative(_ref) {
|
|
|
3116
3116
|
}));
|
|
3117
3117
|
};
|
|
3118
3118
|
|
|
3119
|
-
var styles$
|
|
3119
|
+
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"};
|
|
3120
3120
|
|
|
3121
3121
|
var Toggle = function Toggle(_ref) {
|
|
3122
3122
|
var _classNames, _ref2;
|
|
@@ -3152,12 +3152,12 @@ var Toggle = function Toggle(_ref) {
|
|
|
3152
3152
|
var handleFocus = function handleFocus(event) {
|
|
3153
3153
|
if (onFocus) onFocus(event);
|
|
3154
3154
|
};
|
|
3155
|
-
var wrapperClasses = classNames('hyphen-components__variables__form-control', (_classNames = {}, _classNames[styles$
|
|
3156
|
-
var trackClasses = classNames.apply(void 0, [styles$
|
|
3157
|
-
return styles$
|
|
3158
|
-
}), [(_ref2 = {}, _ref2[styles$
|
|
3159
|
-
var thumbClasses = classNames.apply(void 0, [styles$
|
|
3160
|
-
return styles$
|
|
3155
|
+
var wrapperClasses = classNames('hyphen-components__variables__form-control', (_classNames = {}, _classNames[styles$8.disabled] = isDisabled, _classNames));
|
|
3156
|
+
var trackClasses = classNames.apply(void 0, [styles$8['toggle-track']].concat(generateResponsiveClasses('track-size', size).map(function (c) {
|
|
3157
|
+
return styles$8[c];
|
|
3158
|
+
}), [(_ref2 = {}, _ref2[styles$8.error] = error, _ref2)]));
|
|
3159
|
+
var thumbClasses = classNames.apply(void 0, [styles$8['toggle-thumb']].concat(generateResponsiveClasses('thumb-size', size).map(function (c) {
|
|
3160
|
+
return styles$8[c];
|
|
3161
3161
|
})));
|
|
3162
3162
|
var inputProps = {
|
|
3163
3163
|
'aria-required': isRequired,
|
|
@@ -3172,7 +3172,7 @@ var Toggle = function Toggle(_ref) {
|
|
|
3172
3172
|
onFocus: handleFocus,
|
|
3173
3173
|
required: isRequired,
|
|
3174
3174
|
type: 'checkbox',
|
|
3175
|
-
className: styles$
|
|
3175
|
+
className: styles$8['toggle-input']
|
|
3176
3176
|
};
|
|
3177
3177
|
var labelProps = {
|
|
3178
3178
|
inputId: id,
|
|
@@ -3207,7 +3207,7 @@ var Toggle = function Toggle(_ref) {
|
|
|
3207
3207
|
}, helpText)))), error && error !== true && React.createElement(InputValidationMessage, null, error));
|
|
3208
3208
|
};
|
|
3209
3209
|
|
|
3210
|
-
var _excluded$
|
|
3210
|
+
var _excluded$6 = ["field", "form"];
|
|
3211
3211
|
var FormikToggle = function FormikToggle(_ref) {
|
|
3212
3212
|
var _ref$field = _ref.field,
|
|
3213
3213
|
name = _ref$field.name,
|
|
@@ -3217,7 +3217,7 @@ var FormikToggle = function FormikToggle(_ref) {
|
|
|
3217
3217
|
_ref$form = _ref.form,
|
|
3218
3218
|
touched = _ref$form.touched,
|
|
3219
3219
|
errors = _ref$form.errors,
|
|
3220
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3220
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$6);
|
|
3221
3221
|
return React.createElement(Toggle, _extends({
|
|
3222
3222
|
error: formik.getIn(touched, name) && formik.getIn(errors, name),
|
|
3223
3223
|
isChecked: value,
|
|
@@ -3226,7 +3226,7 @@ var FormikToggle = function FormikToggle(_ref) {
|
|
|
3226
3226
|
}, props));
|
|
3227
3227
|
};
|
|
3228
3228
|
|
|
3229
|
-
var _excluded$
|
|
3229
|
+
var _excluded$5 = ["children", "padding", "direction", "alignItems", "justifyContent", "background", "gap", "style"];
|
|
3230
3230
|
var ModalFooter = function ModalFooter(_ref) {
|
|
3231
3231
|
var children = _ref.children,
|
|
3232
3232
|
_ref$padding = _ref.padding,
|
|
@@ -3242,7 +3242,7 @@ var ModalFooter = function ModalFooter(_ref) {
|
|
|
3242
3242
|
_ref$gap = _ref.gap,
|
|
3243
3243
|
gap = _ref$gap === void 0 ? 'sm' : _ref$gap,
|
|
3244
3244
|
style = _ref.style,
|
|
3245
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3245
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$5);
|
|
3246
3246
|
return React.createElement(Box, _extends({
|
|
3247
3247
|
background: background,
|
|
3248
3248
|
padding: padding,
|
|
@@ -3258,7 +3258,7 @@ var ModalFooter = function ModalFooter(_ref) {
|
|
|
3258
3258
|
}, restProps), children);
|
|
3259
3259
|
};
|
|
3260
3260
|
|
|
3261
|
-
var styles$
|
|
3261
|
+
var styles$7 = {"modal-close":"Modal-module_modal-close__1YmMa","modal":"Modal-module_modal__yNG-7","modal-content":"Modal-module_modal-content__GMtBm"};
|
|
3262
3262
|
|
|
3263
3263
|
var ModalHeader = function ModalHeader(_ref) {
|
|
3264
3264
|
var id = _ref.id,
|
|
@@ -3286,14 +3286,14 @@ var ModalHeader = function ModalHeader(_ref) {
|
|
|
3286
3286
|
}, title), onDismiss && React.createElement("button", {
|
|
3287
3287
|
"aria-label": "close",
|
|
3288
3288
|
type: "button",
|
|
3289
|
-
className: styles$
|
|
3289
|
+
className: styles$7['modal-close'],
|
|
3290
3290
|
onClick: onDismiss
|
|
3291
3291
|
}, React.createElement(Icon, {
|
|
3292
3292
|
name: "remove"
|
|
3293
3293
|
})));
|
|
3294
3294
|
};
|
|
3295
3295
|
|
|
3296
|
-
var _excluded$
|
|
3296
|
+
var _excluded$4 = ["children", "flex", "padding", "overflow", "height"];
|
|
3297
3297
|
var ModalBody = function ModalBody(_ref) {
|
|
3298
3298
|
var children = _ref.children,
|
|
3299
3299
|
_ref$flex = _ref.flex,
|
|
@@ -3304,7 +3304,7 @@ var ModalBody = function ModalBody(_ref) {
|
|
|
3304
3304
|
overflow = _ref$overflow === void 0 ? 'auto' : _ref$overflow,
|
|
3305
3305
|
_ref$height = _ref.height,
|
|
3306
3306
|
height = _ref$height === void 0 ? '100' : _ref$height,
|
|
3307
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3307
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$4);
|
|
3308
3308
|
return React.createElement(Box, _extends({
|
|
3309
3309
|
padding: padding,
|
|
3310
3310
|
flex: flex,
|
|
@@ -3316,7 +3316,7 @@ var ModalBody = function ModalBody(_ref) {
|
|
|
3316
3316
|
}, restProps), children);
|
|
3317
3317
|
};
|
|
3318
3318
|
|
|
3319
|
-
var _excluded$
|
|
3319
|
+
var _excluded$3 = ["ariaLabel", "ariaLabelledBy", "allowPinchZoom", "children", "className", "containerRef", "fullScreenMobile", "initialFocusRef", "isOpen", "maxWidth", "onDismiss", "overflow"];
|
|
3320
3320
|
var ModalBaseComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
3321
3321
|
var _classNames;
|
|
3322
3322
|
var ariaLabel = _ref.ariaLabel,
|
|
@@ -3336,7 +3336,7 @@ var ModalBaseComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
3336
3336
|
onDismiss = _ref.onDismiss,
|
|
3337
3337
|
_ref$overflow = _ref.overflow,
|
|
3338
3338
|
overflow = _ref$overflow === void 0 ? 'hidden' : _ref$overflow,
|
|
3339
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3339
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$3);
|
|
3340
3340
|
var activateFocusLock = React.useCallback(function () {
|
|
3341
3341
|
setTimeout(function () {
|
|
3342
3342
|
if (initialFocusRef && initialFocusRef.current) {
|
|
@@ -3345,10 +3345,10 @@ var ModalBaseComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
3345
3345
|
}, 100);
|
|
3346
3346
|
}, [initialFocusRef]);
|
|
3347
3347
|
var maxWidthCss = getDimensionCss('mw', maxWidth);
|
|
3348
|
-
var overlayClassnames = classNames(styles$
|
|
3348
|
+
var overlayClassnames = classNames(styles$7.overlay, styles$7.modal, {
|
|
3349
3349
|
fullscreen: fullScreenMobile
|
|
3350
3350
|
});
|
|
3351
|
-
var contentClassnames = classNames(styles$
|
|
3351
|
+
var contentClassnames = classNames(styles$7['modal-content'], className, maxWidthCss.classes, (_classNames = {}, _classNames["overflow-" + overflow] = overflow, _classNames));
|
|
3352
3352
|
var parentElement = containerRef != null && containerRef.current ? containerRef.current : undefined;
|
|
3353
3353
|
return React.createElement(FocusLock, {
|
|
3354
3354
|
autoFocus: true,
|
|
@@ -3551,6 +3551,40 @@ var Pagination = function Pagination(_ref) {
|
|
|
3551
3551
|
}, isTotalVisible && "Showing " + activeListRange.first + "-" + activeListRange.last + " of " + totalItemsCount));
|
|
3552
3552
|
};
|
|
3553
3553
|
|
|
3554
|
+
var styles$6 = {"slider":"RangeInput-module_slider__Z6D68","disabled":"RangeInput-module_disabled__gyu72"};
|
|
3555
|
+
|
|
3556
|
+
var _excluded$2 = ["value", "max", "id", "onChange", "className", "isDisabled"];
|
|
3557
|
+
var RangeInput = function RangeInput(_ref) {
|
|
3558
|
+
var _classNames;
|
|
3559
|
+
var _ref$value = _ref.value,
|
|
3560
|
+
value = _ref$value === void 0 ? 0 : _ref$value,
|
|
3561
|
+
_ref$max = _ref.max,
|
|
3562
|
+
max = _ref$max === void 0 ? 0 : _ref$max,
|
|
3563
|
+
id = _ref.id,
|
|
3564
|
+
onChange = _ref.onChange,
|
|
3565
|
+
className = _ref.className,
|
|
3566
|
+
_ref$isDisabled = _ref.isDisabled,
|
|
3567
|
+
isDisabled = _ref$isDisabled === void 0 ? false : _ref$isDisabled,
|
|
3568
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$2);
|
|
3569
|
+
var currentProgress = value > 0 ? value / max * 100 : 0;
|
|
3570
|
+
return React.createElement("input", _extends({}, restProps, {
|
|
3571
|
+
id: id,
|
|
3572
|
+
type: "range",
|
|
3573
|
+
min: "0",
|
|
3574
|
+
value: value,
|
|
3575
|
+
max: max,
|
|
3576
|
+
"aria-valuemax": max,
|
|
3577
|
+
"aria-valuenow": value,
|
|
3578
|
+
"aria-label": "range input",
|
|
3579
|
+
className: classNames(styles$6.slider, className, (_classNames = {}, _classNames[styles$6.disabled] = isDisabled, _classNames)),
|
|
3580
|
+
onChange: onChange,
|
|
3581
|
+
disabled: isDisabled,
|
|
3582
|
+
style: {
|
|
3583
|
+
background: "linear-gradient(to right, var(--color-base-grey-400) " + currentProgress + "%, var(--color-base-grey-700) " + currentProgress + "%)"
|
|
3584
|
+
}
|
|
3585
|
+
}));
|
|
3586
|
+
};
|
|
3587
|
+
|
|
3554
3588
|
// eslint-disable-next-line import/prefer-default-export
|
|
3555
3589
|
var useIsomorphicLayoutEffect = typeof window !== 'undefined' ? React.useLayoutEffect : React.useEffect;
|
|
3556
3590
|
|
|
@@ -4693,6 +4727,7 @@ exports.ModalBaseComponent = ModalBaseComponent;
|
|
|
4693
4727
|
exports.Pagination = Pagination;
|
|
4694
4728
|
exports.Popover = Popover;
|
|
4695
4729
|
exports.RadioGroup = RadioGroup;
|
|
4730
|
+
exports.RangeInput = RangeInput;
|
|
4696
4731
|
exports.ResponsiveContext = ResponsiveContext;
|
|
4697
4732
|
exports.ResponsiveProvider = ResponsiveProvider;
|
|
4698
4733
|
exports.SelectInput = SelectInput;
|