@hyphen/hyphen-components 4.9.2 → 4.9.4
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/css/index.css +3 -2
- package/dist/css/utilities.css +7 -1
- package/dist/css/variables.css +4 -2
- package/dist/hyphen-components.cjs.development.js +138 -132
- 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 +138 -132
- package/dist/hyphen-components.esm.js.map +1 -1
- package/dist/lib/tokens.d.ts +1 -1
- package/package.json +2 -2
- package/src/components/Sidebar/Sidebar.module.scss +1 -1
- package/src/components/Sidebar/Sidebar.tsx +4 -0
- package/src/components/Tooltip/Tooltip.module.scss +66 -0
- package/src/components/Tooltip/Tooltip.tsx +2 -0
|
@@ -250,7 +250,7 @@ Component, props, getDefault) {
|
|
|
250
250
|
return defaultProps.as || 'div';
|
|
251
251
|
}
|
|
252
252
|
|
|
253
|
-
var styles$
|
|
253
|
+
var styles$y = {"box-transition":"Box-module_box-transition__eQx8C"};
|
|
254
254
|
|
|
255
255
|
var _excluded$N = ["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"];
|
|
256
256
|
/**
|
|
@@ -388,7 +388,7 @@ var Box = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
388
388
|
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 = {
|
|
389
389
|
'flex-wrap': isFlexBox && wrap,
|
|
390
390
|
'flex-nowrap': isFlexBox && wrap === false
|
|
391
|
-
}, _ref3["background-color-" + background] = background, _ref3["font-color-" + color] = color, _ref3["border-color-" + borderColor] = borderColor, _ref3["cursor-" + cursor] = cursor, _ref3[styles$
|
|
391
|
+
}, _ref3["background-color-" + background] = background, _ref3["font-color-" + color] = color, _ref3["border-color-" + borderColor] = borderColor, _ref3["cursor-" + cursor] = cursor, _ref3[styles$y['box-transition']] = hover || focus, _ref3)]));
|
|
392
392
|
var boxStyles = _extends({}, style, heightCss.styles, maxHeightCss.styles, maxWidthCss.styles, widthCss.styles, minHeightCss.styles, minWidthCss.styles);
|
|
393
393
|
/**
|
|
394
394
|
* Creates an object that maps the flex direction to either `right` or `bottom`
|
|
@@ -515,7 +515,7 @@ var Icon = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
515
515
|
}, "???");
|
|
516
516
|
});
|
|
517
517
|
|
|
518
|
-
var styles$
|
|
518
|
+
var styles$x = {"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"};
|
|
519
519
|
|
|
520
520
|
// eslint-disable-next-line import/prefer-default-export
|
|
521
521
|
var ALERT_ICONS_MAP = {
|
|
@@ -566,7 +566,7 @@ var Alert = function Alert(_ref) {
|
|
|
566
566
|
var renderAlertIcon = function renderAlertIcon() {
|
|
567
567
|
return React__default.createElement(Box, {
|
|
568
568
|
fontSize: "md",
|
|
569
|
-
className: styles$
|
|
569
|
+
className: styles$x["alert__icon__" + variant]
|
|
570
570
|
}, React__default.createElement(Icon, {
|
|
571
571
|
name: ALERT_ICONS_MAP[variant].icon,
|
|
572
572
|
"data-testid": "alert-icon-" + variant + "-test-id"
|
|
@@ -579,7 +579,7 @@ var Alert = function Alert(_ref) {
|
|
|
579
579
|
return React__default.createElement(Box, {
|
|
580
580
|
margin: "0 0 0 auto",
|
|
581
581
|
color: "secondary",
|
|
582
|
-
className: styles$
|
|
582
|
+
className: styles$x['close-icon']
|
|
583
583
|
}, React__default.createElement("button", {
|
|
584
584
|
type: "button",
|
|
585
585
|
onClick: handleClose,
|
|
@@ -589,7 +589,7 @@ var Alert = function Alert(_ref) {
|
|
|
589
589
|
"data-testid": "alert-close-icon-test-id"
|
|
590
590
|
})));
|
|
591
591
|
};
|
|
592
|
-
var alertContainerClasses = classNames(styles$
|
|
592
|
+
var alertContainerClasses = classNames(styles$x["alert__" + variant], styles$x.alert, className);
|
|
593
593
|
return React__default.createElement(Box, _extends({
|
|
594
594
|
alignItems: "flex-start",
|
|
595
595
|
gap: "md",
|
|
@@ -606,11 +606,11 @@ var Alert = function Alert(_ref) {
|
|
|
606
606
|
as: "h4",
|
|
607
607
|
fontSize: "sm",
|
|
608
608
|
fontWeight: "semibold",
|
|
609
|
-
className: styles$
|
|
609
|
+
className: styles$x['alert-heading']
|
|
610
610
|
}, title), message && (typeof message === 'string' ? React__default.createElement("p", null, message) : message))), isClosable && renderCloseIcon());
|
|
611
611
|
};
|
|
612
612
|
|
|
613
|
-
var styles$
|
|
613
|
+
var styles$w = {"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"};
|
|
614
614
|
|
|
615
615
|
var _excluded$K = ["className", "message", "variant", "size"];
|
|
616
616
|
var Badge = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
@@ -625,9 +625,9 @@ var Badge = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
625
625
|
size = _ref$size === void 0 ? 'md' : _ref$size,
|
|
626
626
|
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$K);
|
|
627
627
|
var responsiveClasses = generateResponsiveClasses('size', size).map(function (c) {
|
|
628
|
-
return styles$
|
|
628
|
+
return styles$w[c];
|
|
629
629
|
});
|
|
630
|
-
var badgeClasses = classNames(styles$
|
|
630
|
+
var badgeClasses = classNames(styles$w.badge, className, responsiveClasses, (_classNames = {}, _classNames[styles$w[variant]] = variant, _classNames));
|
|
631
631
|
return React__default.createElement(Box, _extends({
|
|
632
632
|
ref: ref,
|
|
633
633
|
className: badgeClasses,
|
|
@@ -635,13 +635,13 @@ var Badge = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
635
635
|
}, restProps), message);
|
|
636
636
|
});
|
|
637
637
|
|
|
638
|
-
var styles$
|
|
638
|
+
var styles$v = {"spinner":"Spinner-module_spinner__SZoUP","spin":"Spinner-module_spin__Yk0wm"};
|
|
639
639
|
|
|
640
640
|
var Spinner = function Spinner(_ref) {
|
|
641
641
|
var className = _ref.className,
|
|
642
642
|
_ref$size = _ref.size,
|
|
643
643
|
size = _ref$size === void 0 ? 'md' : _ref$size;
|
|
644
|
-
var classes = classNames(className, styles$
|
|
644
|
+
var classes = classNames(className, styles$v.spinner);
|
|
645
645
|
var sizeInPixels = function sizeInPixels() {
|
|
646
646
|
var pixels;
|
|
647
647
|
if (size === 'sm') pixels = '12';
|
|
@@ -728,7 +728,7 @@ var Spinner = function Spinner(_ref) {
|
|
|
728
728
|
}))));
|
|
729
729
|
};
|
|
730
730
|
|
|
731
|
-
var styles$
|
|
731
|
+
var styles$u = {"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"};
|
|
732
732
|
|
|
733
733
|
var _excluded$J = ["asChild", "children", "className", "fullWidth", "iconPrefix", "iconSuffix", "isDisabled", "isLoading", "onClick", "onBlur", "onFocus", "shadow", "size", "type", "variant"];
|
|
734
734
|
var Button = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
@@ -754,9 +754,9 @@ var Button = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
754
754
|
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$J);
|
|
755
755
|
var disabled = isLoading || isDisabled;
|
|
756
756
|
var responsiveClasses = generateResponsiveClasses('size', size).map(function (c) {
|
|
757
|
-
return styles$
|
|
757
|
+
return styles$u[c];
|
|
758
758
|
}).filter(Boolean);
|
|
759
|
-
var buttonClasses = classNames('hyphen-components__variables__form-control', styles$
|
|
759
|
+
var buttonClasses = classNames('hyphen-components__variables__form-control', styles$u.button, className, responsiveClasses, generateResponsiveClasses('shadow', shadow), (_classNames = {}, _classNames[styles$u.loading] = isLoading, _classNames[styles$u[variant]] = variant, _classNames[styles$u['full-width']] = fullWidth, _classNames));
|
|
760
760
|
var handleClick = !disabled ? onClick : undefined;
|
|
761
761
|
var handleBlur = !disabled ? onBlur : undefined;
|
|
762
762
|
var handleFocus = !disabled ? onFocus : undefined;
|
|
@@ -773,18 +773,18 @@ var Button = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
773
773
|
}, !asChild && {
|
|
774
774
|
type: type
|
|
775
775
|
}, restProps), isLoading && React__default.createElement(Spinner, {
|
|
776
|
-
className: styles$
|
|
776
|
+
className: styles$u['spinner-wrapper']
|
|
777
777
|
}), iconPrefix && React__default.createElement(Icon, {
|
|
778
|
-
className: styles$
|
|
778
|
+
className: styles$u.label,
|
|
779
779
|
name: iconPrefix,
|
|
780
780
|
"aria-hidden": "true",
|
|
781
781
|
focusable: "false",
|
|
782
782
|
"data-testid": "prefixIcon",
|
|
783
783
|
size: size === 'md' ? 'sm' : size
|
|
784
784
|
}), children && React__default.createElement(Slottable, null, asChild ? children : React__default.createElement("span", {
|
|
785
|
-
className: styles$
|
|
785
|
+
className: styles$u.label
|
|
786
786
|
}, children)), iconSuffix && React__default.createElement(Icon, {
|
|
787
|
-
className: styles$
|
|
787
|
+
className: styles$u.label,
|
|
788
788
|
name: iconSuffix,
|
|
789
789
|
"aria-hidden": "true",
|
|
790
790
|
focusable: "false",
|
|
@@ -827,7 +827,7 @@ var HEADING_DEFAULT_SIZE_MAP = {
|
|
|
827
827
|
h6: 'sm'
|
|
828
828
|
};
|
|
829
829
|
|
|
830
|
-
var styles$
|
|
830
|
+
var styles$t = {"heading":"Heading-module_heading__zKyv7"};
|
|
831
831
|
|
|
832
832
|
var _excluded$H = ["as", "children", "className", "color", "size"];
|
|
833
833
|
var Heading = function Heading(_ref) {
|
|
@@ -843,7 +843,7 @@ var Heading = function Heading(_ref) {
|
|
|
843
843
|
as: as
|
|
844
844
|
});
|
|
845
845
|
var headingSize = size || HEADING_DEFAULT_SIZE_MAP[as];
|
|
846
|
-
var classes = classNames(styles$
|
|
846
|
+
var classes = classNames(styles$t.heading, className, generateResponsiveClasses('heading', headingSize), (_classNames = {}, _classNames["font-color-" + color] = color, _classNames));
|
|
847
847
|
return createElement(element, _extends({
|
|
848
848
|
className: classes
|
|
849
849
|
}, restProps), children);
|
|
@@ -875,7 +875,7 @@ var CardHeader = function CardHeader(_ref) {
|
|
|
875
875
|
}, description) : description)), children);
|
|
876
876
|
};
|
|
877
877
|
|
|
878
|
-
var styles$
|
|
878
|
+
var styles$s = {"card-section-border":"Card-module_card-section-border__OefDX"};
|
|
879
879
|
|
|
880
880
|
var _excluded$F = ["background", "borderColor", "borderWidth", "children", "childGap", "gap", "className", "display", "padding", "subdued", "title"];
|
|
881
881
|
var CardSection = function CardSection(_ref) {
|
|
@@ -911,7 +911,7 @@ var CardSection = function CardSection(_ref) {
|
|
|
911
911
|
fontSize: "sm",
|
|
912
912
|
color: "base"
|
|
913
913
|
}, title)) : title;
|
|
914
|
-
var sectionClasses = classNames((_classNames = {}, _classNames[styles$
|
|
914
|
+
var sectionClasses = classNames((_classNames = {}, _classNames[styles$s['card-section-border']] = borderColor === undefined && borderWidth === undefined, _classNames[styles$s['card-subdued']] = subdued, _classNames), className);
|
|
915
915
|
return React__default.createElement(Box, _extends({
|
|
916
916
|
background: background,
|
|
917
917
|
borderColor: borderColor,
|
|
@@ -993,7 +993,7 @@ var CheckboxIcon = function CheckboxIcon(_ref) {
|
|
|
993
993
|
}));
|
|
994
994
|
};
|
|
995
995
|
|
|
996
|
-
var styles$
|
|
996
|
+
var styles$r = {"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"};
|
|
997
997
|
|
|
998
998
|
var _excluded$C = ["className", "display", "id", "isChecked", "label", "labelledby", "onChange", "error", "isDisabled", "isHidden", "isIndeterminate", "isRequired", "onBlur", "onFocus", "size", "value"];
|
|
999
999
|
var Checkbox = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
@@ -1059,11 +1059,11 @@ var Checkbox = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
|
1059
1059
|
value: value
|
|
1060
1060
|
});
|
|
1061
1061
|
var responsiveClasses = generateResponsiveClasses('size', size);
|
|
1062
|
-
var containerClasses = classNames.apply(void 0, [styles$
|
|
1063
|
-
return styles$
|
|
1064
|
-
}), [(_ref2 = {}, _ref2[styles$
|
|
1062
|
+
var containerClasses = classNames.apply(void 0, [styles$r.checkbox, className].concat(responsiveClasses.map(function (c) {
|
|
1063
|
+
return styles$r[c];
|
|
1064
|
+
}), [(_ref2 = {}, _ref2[styles$r.hidden] = isHidden, _ref2)]));
|
|
1065
1065
|
var iconClasses = classNames.apply(void 0, responsiveClasses.map(function (c) {
|
|
1066
|
-
return styles$
|
|
1066
|
+
return styles$r[c];
|
|
1067
1067
|
}));
|
|
1068
1068
|
return React__default.createElement(Box, _extends({
|
|
1069
1069
|
display: display,
|
|
@@ -1086,28 +1086,28 @@ var Checkbox = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
|
1086
1086
|
}));
|
|
1087
1087
|
});
|
|
1088
1088
|
|
|
1089
|
-
var styles$
|
|
1089
|
+
var styles$q = {"input-validation-message":"InputValidationMessage-module_input-validation-message__4MMMK"};
|
|
1090
1090
|
|
|
1091
1091
|
var InputValidationMessage = function InputValidationMessage(_ref) {
|
|
1092
1092
|
var children = _ref.children,
|
|
1093
1093
|
_ref$size = _ref.size,
|
|
1094
1094
|
size = _ref$size === void 0 ? 'sm' : _ref$size;
|
|
1095
|
-
var classes = classNames('hyphen-components__variables__form-control', styles$
|
|
1095
|
+
var classes = classNames('hyphen-components__variables__form-control', styles$q['input-validation-message'], 'font-color-danger', "font-size-" + size, 'm-top-sm');
|
|
1096
1096
|
return React__default.createElement("div", {
|
|
1097
1097
|
className: classes
|
|
1098
1098
|
}, children);
|
|
1099
1099
|
};
|
|
1100
1100
|
|
|
1101
|
-
var styles$
|
|
1101
|
+
var styles$p = {"label":"FormLabel-module_label__qTUB9","radio-input-label":"FormLabel-module_radio-input-label__IpAiN","disabled":"FormLabel-module_disabled__83oiH"};
|
|
1102
1102
|
|
|
1103
|
-
var styles$
|
|
1103
|
+
var styles$o = {"help-text":"HelpText-module_help-text__8WodW"};
|
|
1104
1104
|
|
|
1105
1105
|
var HelpText = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
1106
1106
|
var children = _ref.children,
|
|
1107
1107
|
className = _ref.className;
|
|
1108
1108
|
return React__default.createElement(Box, {
|
|
1109
1109
|
ref: ref,
|
|
1110
|
-
className: classNames('hyphen-components__variables__form-control', styles$
|
|
1110
|
+
className: classNames('hyphen-components__variables__form-control', styles$o['help-text'], className),
|
|
1111
1111
|
display: "block",
|
|
1112
1112
|
color: "secondary",
|
|
1113
1113
|
fontSize: "sm"
|
|
@@ -1137,7 +1137,7 @@ var FormLabel = function FormLabel(_ref) {
|
|
|
1137
1137
|
_ref$padding = _ref.padding,
|
|
1138
1138
|
padding = _ref$padding === void 0 ? '0' : _ref$padding,
|
|
1139
1139
|
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$B);
|
|
1140
|
-
var labelClasses = classNames('hyphen-components__variables__form-control', styles$
|
|
1140
|
+
var labelClasses = classNames('hyphen-components__variables__form-control', styles$p.label, className, (_classNames = {}, _classNames[styles$p.disabled] = isDisabled, _classNames[styles$p.disabled] = isDisabled, _classNames[styles$p['radio-input-label']] = isRadioInputLabel, _classNames));
|
|
1141
1141
|
return React__default.createElement(Box, _extends({
|
|
1142
1142
|
as: "label",
|
|
1143
1143
|
id: inputId + "Label",
|
|
@@ -1240,7 +1240,7 @@ var Collapsible = CollapsiblePrimitive.Root;
|
|
|
1240
1240
|
var CollapsibleTrigger = CollapsiblePrimitive.CollapsibleTrigger;
|
|
1241
1241
|
var CollapsibleContent = CollapsiblePrimitive.CollapsibleContent;
|
|
1242
1242
|
|
|
1243
|
-
var styles$
|
|
1243
|
+
var styles$n = {};
|
|
1244
1244
|
|
|
1245
1245
|
var _excluded$z = ["children", "dayClassName", "maxDate", "minDate", "monthsShown", "openToDate", "startDate", "selected", "selectsRange", "showTwoColumnMonthYearPicker", "showFullMonthYearPicker", "showMonthYearPicker", "className", "formatWeekDay"];
|
|
1246
1246
|
var DatePicker = function DatePicker(_ref) {
|
|
@@ -1275,7 +1275,7 @@ var DatePicker = function DatePicker(_ref) {
|
|
|
1275
1275
|
return formattedDate[0];
|
|
1276
1276
|
} : _ref$formatWeekDay,
|
|
1277
1277
|
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$z);
|
|
1278
|
-
var datePickerClasses = classNames(styles$
|
|
1278
|
+
var datePickerClasses = classNames(styles$n['react-datepicker'], className);
|
|
1279
1279
|
return React__default.createElement(ReactDatePicker, _extends({
|
|
1280
1280
|
inline: true,
|
|
1281
1281
|
calendarClassName: datePickerClasses,
|
|
@@ -1333,7 +1333,7 @@ function getAutoCompleteValue(value) {
|
|
|
1333
1333
|
return value;
|
|
1334
1334
|
}
|
|
1335
1335
|
|
|
1336
|
-
var styles$
|
|
1336
|
+
var styles$m = {"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"};
|
|
1337
1337
|
|
|
1338
1338
|
var _excluded$x = ["id", "label", "onChange", "value", "autoComplete", "autoFocus", "error", "helpText", "hideLabel", "inputProps", "isDisabled", "isRequired", "maxLength", "name", "onBlur", "onClear", "onFocus", "prefix", "placeholder", "requiredIndicator", "suffix", "size", "type"];
|
|
1339
1339
|
var TextInput = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
@@ -1381,10 +1381,10 @@ var TextInput = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
1381
1381
|
type = _ref$type === void 0 ? 'text' : _ref$type,
|
|
1382
1382
|
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$x);
|
|
1383
1383
|
var responsiveClasses = generateResponsiveClasses('size', size);
|
|
1384
|
-
var inputWrapperClasses = classNames.apply(void 0, ['hyphen-components__variables__form-control', styles$
|
|
1385
|
-
return styles$
|
|
1386
|
-
}), [(_ref2 = {}, _ref2[styles$
|
|
1387
|
-
var clearBtnClasses = classNames(styles$
|
|
1384
|
+
var inputWrapperClasses = classNames.apply(void 0, ['hyphen-components__variables__form-control', styles$m['text-input-wrapper']].concat(responsiveClasses.map(function (c) {
|
|
1385
|
+
return styles$m[c];
|
|
1386
|
+
}), [(_ref2 = {}, _ref2[styles$m.error] = error, _ref2[styles$m.disabled] = isDisabled, _ref2[styles$m['is-clearable']] = onClear, _ref2)]));
|
|
1387
|
+
var clearBtnClasses = classNames(styles$m['clear-button'], styles$m.md);
|
|
1388
1388
|
var renderClearIcon = function renderClearIcon() {
|
|
1389
1389
|
var handleKeyPress = function handleKeyPress(event) {
|
|
1390
1390
|
if (event.keyCode === 13 && onClear) onClear(event);
|
|
@@ -1443,17 +1443,17 @@ var TextInput = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
1443
1443
|
}, prefix && React__default.createElement(Box, {
|
|
1444
1444
|
color: "secondary",
|
|
1445
1445
|
background: "secondary",
|
|
1446
|
-
className: classNames(styles$
|
|
1446
|
+
className: classNames(styles$m.prefix, 'ws-nowrap')
|
|
1447
1447
|
}, prefix), React__default.createElement(Box, _extends({
|
|
1448
1448
|
as: "input"
|
|
1449
1449
|
}, computedInputProps)), !!onClear && !!value && renderClearIcon(), suffix && React__default.createElement(Box, {
|
|
1450
1450
|
color: "secondary",
|
|
1451
1451
|
background: "secondary",
|
|
1452
|
-
className: classNames(styles$
|
|
1452
|
+
className: classNames(styles$m.suffix, 'ws-nowrap')
|
|
1453
1453
|
}, suffix)));
|
|
1454
1454
|
});
|
|
1455
1455
|
|
|
1456
|
-
var styles$
|
|
1456
|
+
var styles$l = {"popover":"Popover-module_popover__rvS3X","fadeIn":"Popover-module_fadeIn__0btE5","popover-arrow":"Popover-module_popover-arrow__SLtPW"};
|
|
1457
1457
|
|
|
1458
1458
|
// eslint-disable-next-line import/prefer-default-export
|
|
1459
1459
|
var getColumnKeys = function getColumnKeys(columns) {
|
|
@@ -1614,14 +1614,14 @@ var Popover = function Popover(_ref) {
|
|
|
1614
1614
|
attributes = _usePopper.attributes;
|
|
1615
1615
|
var containerBoxProps = _extends({}, contentContainerDefaults, contentContainerProps);
|
|
1616
1616
|
var computedArrowColor = arrowColor || containerBoxProps.background;
|
|
1617
|
-
var arrowClasses = classNames(styles$
|
|
1617
|
+
var arrowClasses = classNames(styles$l['popover-arrow'], "background-color-" + computedArrowColor, {
|
|
1618
1618
|
'display-none': !hasArrow
|
|
1619
1619
|
});
|
|
1620
1620
|
var renderPopperContent = function renderPopperContent() {
|
|
1621
1621
|
var renderPopperBox = function renderPopperBox() {
|
|
1622
1622
|
return React__default.createElement(Box, _extends({
|
|
1623
1623
|
ref: popperRef,
|
|
1624
|
-
className: classNames(styles$
|
|
1624
|
+
className: classNames(styles$l.popover, className),
|
|
1625
1625
|
style: popperStyles.popper,
|
|
1626
1626
|
role: "dialog",
|
|
1627
1627
|
"aria-label": "Popover",
|
|
@@ -1806,7 +1806,7 @@ var DetailsSummary = function DetailsSummary(_ref) {
|
|
|
1806
1806
|
}), children);
|
|
1807
1807
|
};
|
|
1808
1808
|
|
|
1809
|
-
var styles$
|
|
1809
|
+
var styles$k = {"details-reset":"Details-module_details-reset__HWtSD"};
|
|
1810
1810
|
|
|
1811
1811
|
var _excluded$t = ["children", "className", "display", "isOpen"];
|
|
1812
1812
|
var DetailsBaseComponent = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
@@ -1816,7 +1816,7 @@ var DetailsBaseComponent = /*#__PURE__*/React__default.forwardRef(function (_ref
|
|
|
1816
1816
|
display = _ref$display === void 0 ? 'block' : _ref$display,
|
|
1817
1817
|
isOpen = _ref.isOpen,
|
|
1818
1818
|
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$t);
|
|
1819
|
-
var detailsClasses = classNames(className, styles$
|
|
1819
|
+
var detailsClasses = classNames(className, styles$k['details-reset'], styles$k.details);
|
|
1820
1820
|
return React__default.createElement(Box, _extends({
|
|
1821
1821
|
as: "details",
|
|
1822
1822
|
className: detailsClasses,
|
|
@@ -1833,7 +1833,7 @@ var Details = /*#__PURE__*/function () {
|
|
|
1833
1833
|
return Details;
|
|
1834
1834
|
}();
|
|
1835
1835
|
|
|
1836
|
-
var styles$
|
|
1836
|
+
var styles$j = {"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"};
|
|
1837
1837
|
|
|
1838
1838
|
var _excluded$s = ["defaultIsOpen", "open", "onOpenChange", "className", "children"],
|
|
1839
1839
|
_excluded2$2 = ["asChild", "onClick"],
|
|
@@ -1974,8 +1974,8 @@ var Drawer = /*#__PURE__*/forwardRef(function (_ref3, ref) {
|
|
|
1974
1974
|
}, [initialFocusRef]);
|
|
1975
1975
|
var dynamicWidth = width;
|
|
1976
1976
|
var dynamicStyle = (_dynamicStyle = {}, _dynamicStyle['--drawer-width'] = dynamicWidth, _dynamicStyle);
|
|
1977
|
-
var overlayClassnames = classNames(styles$
|
|
1978
|
-
var contentClassnames = classNames(styles$
|
|
1977
|
+
var overlayClassnames = classNames(styles$j.overlay, styles$j.drawer, (_classNames = {}, _classNames[styles$j['hide-overlay']] = hideOverlay, _classNames[styles$j["hide-overlay-" + placement]] = hideOverlay, _classNames['position-fixed'] = containerRef === undefined, _classNames['position-absolute'] = containerRef !== undefined, _classNames));
|
|
1978
|
+
var contentClassnames = classNames(styles$j['drawer-content'], styles$j[placement], (_classNames2 = {}, _classNames2[styles$j['hide-overlay']] = hideOverlay, _classNames2));
|
|
1979
1979
|
var parentElement = containerRef != null && containerRef.current ? containerRef.current : document.body;
|
|
1980
1980
|
var isDisabledFocusLock = hideOverlay || dangerouslyBypassFocusLock;
|
|
1981
1981
|
var isDisabledRemoveScroll = hideOverlay || dangerouslyBypassScrollLock;
|
|
@@ -2231,7 +2231,7 @@ var RadioInputIcon = function RadioInputIcon(_ref) {
|
|
|
2231
2231
|
}));
|
|
2232
2232
|
};
|
|
2233
2233
|
|
|
2234
|
-
var styles$
|
|
2234
|
+
var styles$i = {"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"};
|
|
2235
2235
|
|
|
2236
2236
|
var RadioInput = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
2237
2237
|
var _classNames;
|
|
@@ -2255,7 +2255,7 @@ var RadioInput = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
|
2255
2255
|
_ref$size = _ref.size,
|
|
2256
2256
|
size = _ref$size === void 0 ? 'md' : _ref$size;
|
|
2257
2257
|
var responsiveClasses = classNames.apply(void 0, generateResponsiveClasses('size', size).map(function (c) {
|
|
2258
|
-
return styles$
|
|
2258
|
+
return styles$i[c];
|
|
2259
2259
|
}));
|
|
2260
2260
|
var labelProps = {
|
|
2261
2261
|
inputId: option.id,
|
|
@@ -2264,7 +2264,7 @@ var RadioInput = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
|
2264
2264
|
isRadioInputLabel: true,
|
|
2265
2265
|
justifyContent: 'center'
|
|
2266
2266
|
};
|
|
2267
|
-
var containerClasses = classNames('hyphen-components__variables__form-control', className, styles$
|
|
2267
|
+
var containerClasses = classNames('hyphen-components__variables__form-control', className, styles$i['radio-container'], responsiveClasses, (_classNames = {}, _classNames[styles$i.hidden] = isHidden, _classNames));
|
|
2268
2268
|
return React__default.createElement(React__default.Fragment, null, option && React__default.createElement(Box, {
|
|
2269
2269
|
className: containerClasses,
|
|
2270
2270
|
key: option.id,
|
|
@@ -2300,7 +2300,7 @@ var RadioInput = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
|
2300
2300
|
}), option.label && React__default.createElement(FormLabel, _extends({}, labelProps), option.label)));
|
|
2301
2301
|
});
|
|
2302
2302
|
|
|
2303
|
-
var styles$
|
|
2303
|
+
var styles$h = {"radio-group":"RadioGroup-module_radio-group__FWPcT","fieldset":"RadioGroup-module_fieldset__PEUXI","legend":"RadioGroup-module_legend__tcfV7","description":"RadioGroup-module_description__8fzM-"};
|
|
2304
2304
|
|
|
2305
2305
|
var _excluded$o = ["name", "onChange", "options", "className", "description", "direction", "error", "isDisabled", "isRequired", "onBlur", "onFocus", "requiredIndicator", "size", "title", "value"];
|
|
2306
2306
|
var RadioGroup = function RadioGroup(_ref) {
|
|
@@ -2333,19 +2333,19 @@ var RadioGroup = function RadioGroup(_ref) {
|
|
|
2333
2333
|
_ref$value = _ref.value,
|
|
2334
2334
|
value = _ref$value === void 0 ? undefined : _ref$value,
|
|
2335
2335
|
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$o);
|
|
2336
|
-
var groupClasses = classNames('hyphen-components__variables__form-control', className, (_classNames = {}, _classNames[styles$
|
|
2336
|
+
var groupClasses = classNames('hyphen-components__variables__form-control', className, (_classNames = {}, _classNames[styles$h.loading] = error, _classNames));
|
|
2337
2337
|
return React__default.createElement("div", _extends({
|
|
2338
|
-
className: classNames(styles$
|
|
2338
|
+
className: classNames(styles$h['radio-group'], groupClasses)
|
|
2339
2339
|
}, restProps), React__default.createElement("fieldset", {
|
|
2340
|
-
className: styles$
|
|
2340
|
+
className: styles$h.fieldset
|
|
2341
2341
|
}, (title || description) && React__default.createElement("legend", {
|
|
2342
|
-
className: styles$
|
|
2342
|
+
className: styles$h.legend
|
|
2343
2343
|
}, title, isRequired && React__default.createElement("span", null, requiredIndicator), description && React__default.createElement("div", {
|
|
2344
|
-
className: styles$
|
|
2344
|
+
className: styles$h.description
|
|
2345
2345
|
}, description)), React__default.createElement(Box, {
|
|
2346
2346
|
direction: direction,
|
|
2347
2347
|
gap: "sm",
|
|
2348
|
-
className: styles$
|
|
2348
|
+
className: styles$h.options
|
|
2349
2349
|
}, options && options.map(function (option) {
|
|
2350
2350
|
return React__default.createElement(RadioInput, {
|
|
2351
2351
|
key: option.id,
|
|
@@ -2385,7 +2385,7 @@ var FormikRadioGroup = function FormikRadioGroup(_ref) {
|
|
|
2385
2385
|
}));
|
|
2386
2386
|
};
|
|
2387
2387
|
|
|
2388
|
-
var styles$
|
|
2388
|
+
var styles$g = {"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"};
|
|
2389
2389
|
|
|
2390
2390
|
var _excluded$m = ["id", "label", "onChange", "options", "value", "autoFocus", "className", "error", "helpText", "hideLabel", "isClearable", "isAsync", "isCreatable", "isDisabled", "isMulti", "isRequired", "menuPortalTarget", "name", "onFocus", "onBlur", "placeholder", "requiredIndicator", "size"];
|
|
2391
2391
|
function SelectInput(props) {
|
|
@@ -2448,13 +2448,13 @@ function SelectInput(props) {
|
|
|
2448
2448
|
};
|
|
2449
2449
|
var responsiveClasses = generateResponsiveClasses('size', size);
|
|
2450
2450
|
var wrapperClasses = classNames.apply(void 0, ['hyphen-components__variables__form-control', 'select-input-wrapper', className].concat(responsiveClasses.map(function (c) {
|
|
2451
|
-
return styles$
|
|
2452
|
-
}), [(_ref = {}, _ref[styles$
|
|
2453
|
-
var inputClasses = classNames('react-select', (_classNames = {}, _classNames[styles$
|
|
2451
|
+
return styles$g[c];
|
|
2452
|
+
}), [(_ref = {}, _ref[styles$g.disabled] = isDisabled, _ref)]));
|
|
2453
|
+
var inputClasses = classNames('react-select', (_classNames = {}, _classNames[styles$g.error] = error, _classNames));
|
|
2454
2454
|
var labelProps = {
|
|
2455
2455
|
inputId: id,
|
|
2456
2456
|
helpText: helpText,
|
|
2457
|
-
className: styles$
|
|
2457
|
+
className: styles$g['select-input-label'],
|
|
2458
2458
|
isDisabled: isDisabled,
|
|
2459
2459
|
isFieldRequired: isRequired,
|
|
2460
2460
|
requiredIndicator: requiredIndicator
|
|
@@ -2541,7 +2541,7 @@ var FormikSelectInput = function FormikSelectInput(_ref) {
|
|
|
2541
2541
|
}, props));
|
|
2542
2542
|
};
|
|
2543
2543
|
|
|
2544
|
-
var styles$
|
|
2544
|
+
var styles$f = {"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"};
|
|
2545
2545
|
|
|
2546
2546
|
var SelectInputInset = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
2547
2547
|
var _ref2;
|
|
@@ -2583,10 +2583,10 @@ var SelectInputInset = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
2583
2583
|
};
|
|
2584
2584
|
var optionsWithPlaceholder = [_extends({}, placeholderOption)].concat(options);
|
|
2585
2585
|
var responsiveClasses = generateResponsiveClasses('size', size);
|
|
2586
|
-
var inputWrapperClasses = classNames.apply(void 0, ['hyphen-components__variables__form-control', styles$
|
|
2587
|
-
return styles$
|
|
2588
|
-
}), [(_ref2 = {}, _ref2[styles$
|
|
2589
|
-
var clearBtnClasses = classNames(styles$
|
|
2586
|
+
var inputWrapperClasses = classNames.apply(void 0, ['hyphen-components__variables__form-control', styles$f['text-input-wrapper']].concat(responsiveClasses.map(function (c) {
|
|
2587
|
+
return styles$f[c];
|
|
2588
|
+
}), [(_ref2 = {}, _ref2[styles$f.error] = error, _ref2[styles$f.disabled] = isDisabled, _ref2[styles$f['is-clearable']] = onClear, _ref2)]));
|
|
2589
|
+
var clearBtnClasses = classNames(styles$f['clear-button'], styles$f.md);
|
|
2590
2590
|
var renderClearIcon = function renderClearIcon() {
|
|
2591
2591
|
var handleKeyPress = function handleKeyPress(event) {
|
|
2592
2592
|
if (event.keyCode === 13 && onClear) onClear(event);
|
|
@@ -2641,7 +2641,7 @@ var SelectInputInset = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
2641
2641
|
}, option.label);
|
|
2642
2642
|
})), !!onClear && !!value && renderClearIcon(), React__default.createElement("label", {
|
|
2643
2643
|
htmlFor: id,
|
|
2644
|
-
className: styles$
|
|
2644
|
+
className: styles$f['select-input-label'],
|
|
2645
2645
|
id: id + "Label"
|
|
2646
2646
|
}, label, isRequired && requiredIndicator && React__default.createElement("span", null, requiredIndicator))), helpText && React__default.createElement(HelpText, null, helpText), error && error !== true && React__default.createElement(InputValidationMessage, null, error));
|
|
2647
2647
|
});
|
|
@@ -2673,7 +2673,7 @@ var FormikSelectInputInset = function FormikSelectInputInset(_ref) {
|
|
|
2673
2673
|
}));
|
|
2674
2674
|
};
|
|
2675
2675
|
|
|
2676
|
-
var styles$
|
|
2676
|
+
var styles$e = {"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"};
|
|
2677
2677
|
|
|
2678
2678
|
var TextareaInputInset = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
2679
2679
|
var _ref2, _classNames;
|
|
@@ -2716,9 +2716,9 @@ var TextareaInputInset = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
2716
2716
|
_ref$type = _ref.type,
|
|
2717
2717
|
type = _ref$type === void 0 ? 'text' : _ref$type;
|
|
2718
2718
|
var responsiveClasses = generateResponsiveClasses('size', size);
|
|
2719
|
-
var inputWrapperClasses = classNames.apply(void 0, ['hyphen-components__variables__form-control', styles$
|
|
2720
|
-
return styles$
|
|
2721
|
-
}), [(_ref2 = {}, _ref2[styles$
|
|
2719
|
+
var inputWrapperClasses = classNames.apply(void 0, ['hyphen-components__variables__form-control', styles$e['text-input-wrapper']].concat(responsiveClasses.map(function (c) {
|
|
2720
|
+
return styles$e[c];
|
|
2721
|
+
}), [(_ref2 = {}, _ref2[styles$e.disabled] = isDisabled, _ref2)]));
|
|
2722
2722
|
var computedInputProps = _extends({}, inputProps, {
|
|
2723
2723
|
// These are spread first so that we don't have top level props overwritten by the user.
|
|
2724
2724
|
'aria-required': isRequired,
|
|
@@ -2727,7 +2727,7 @@ var TextareaInputInset = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
2727
2727
|
'aria-labelledby': label ? id + "Label" : undefined,
|
|
2728
2728
|
autoComplete: getAutoCompleteValue(autoComplete),
|
|
2729
2729
|
autoFocus: autoFocus,
|
|
2730
|
-
className: classNames(styles$
|
|
2730
|
+
className: classNames(styles$e["textarea-resize-" + resize], (_classNames = {}, _classNames[styles$e.error] = error, _classNames)),
|
|
2731
2731
|
disabled: isDisabled,
|
|
2732
2732
|
id: id,
|
|
2733
2733
|
maxLength: maxLength,
|
|
@@ -2753,7 +2753,7 @@ var TextareaInputInset = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
2753
2753
|
as: "textarea"
|
|
2754
2754
|
}, computedInputProps)), React__default.createElement("label", {
|
|
2755
2755
|
htmlFor: id,
|
|
2756
|
-
className: styles$
|
|
2756
|
+
className: styles$e['text-input-label'],
|
|
2757
2757
|
id: id + "Label"
|
|
2758
2758
|
}, label, isRequired && requiredIndicator && React__default.createElement("span", null, requiredIndicator))), helpText && React__default.createElement(HelpText, null, helpText), error && error !== true && React__default.createElement(InputValidationMessage, null, error));
|
|
2759
2759
|
});
|
|
@@ -2783,7 +2783,7 @@ var FormikTextareaInputInset = function FormikTextareaInputInset(_ref) {
|
|
|
2783
2783
|
}));
|
|
2784
2784
|
};
|
|
2785
2785
|
|
|
2786
|
-
var styles$
|
|
2786
|
+
var styles$d = {"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"};
|
|
2787
2787
|
|
|
2788
2788
|
var TextInputInset = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
2789
2789
|
var _ref2;
|
|
@@ -2827,10 +2827,10 @@ var TextInputInset = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
2827
2827
|
_ref$type = _ref.type,
|
|
2828
2828
|
type = _ref$type === void 0 ? 'text' : _ref$type;
|
|
2829
2829
|
var responsiveClasses = generateResponsiveClasses('size', size);
|
|
2830
|
-
var inputWrapperClasses = classNames.apply(void 0, ['hyphen-components__variables__form-control', styles$
|
|
2831
|
-
return styles$
|
|
2832
|
-
}), [(_ref2 = {}, _ref2[styles$
|
|
2833
|
-
var clearBtnClasses = classNames(styles$
|
|
2830
|
+
var inputWrapperClasses = classNames.apply(void 0, ['hyphen-components__variables__form-control', styles$d['text-input-wrapper']].concat(responsiveClasses.map(function (c) {
|
|
2831
|
+
return styles$d[c];
|
|
2832
|
+
}), [(_ref2 = {}, _ref2[styles$d.error] = error, _ref2[styles$d.disabled] = isDisabled, _ref2[styles$d['is-clearable']] = onClear, _ref2)]));
|
|
2833
|
+
var clearBtnClasses = classNames(styles$d['clear-button'], styles$d.md);
|
|
2834
2834
|
var renderClearIcon = function renderClearIcon() {
|
|
2835
2835
|
var handleKeyPress = function handleKeyPress(event) {
|
|
2836
2836
|
if (event.keyCode === 13 && onClear) onClear(event);
|
|
@@ -2879,7 +2879,7 @@ var TextInputInset = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
2879
2879
|
alignItems: "center",
|
|
2880
2880
|
justifyContent: "center",
|
|
2881
2881
|
background: "secondary",
|
|
2882
|
-
className: classNames(styles$
|
|
2882
|
+
className: classNames(styles$d.prefix, 'ws-nowrap')
|
|
2883
2883
|
}, prefix), React__default.createElement(Box, {
|
|
2884
2884
|
direction: "row",
|
|
2885
2885
|
position: "relative",
|
|
@@ -2889,12 +2889,12 @@ var TextInputInset = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
2889
2889
|
as: "input"
|
|
2890
2890
|
}, computedInputProps)), !!onClear && !!value && renderClearIcon(), React__default.createElement("label", {
|
|
2891
2891
|
htmlFor: id,
|
|
2892
|
-
className: styles$
|
|
2892
|
+
className: styles$d['text-input-label'],
|
|
2893
2893
|
id: id + "Label"
|
|
2894
2894
|
}, label, isRequired && requiredIndicator && React__default.createElement("span", null, requiredIndicator))), suffix && React__default.createElement(Box, {
|
|
2895
2895
|
color: "base",
|
|
2896
2896
|
background: "secondary",
|
|
2897
|
-
className: classNames(styles$
|
|
2897
|
+
className: classNames(styles$d.suffix, 'ws-nowrap')
|
|
2898
2898
|
}, suffix)), helpText && React__default.createElement(HelpText, null, helpText), error && error !== true && React__default.createElement(InputValidationMessage, null, error));
|
|
2899
2899
|
});
|
|
2900
2900
|
|
|
@@ -2923,7 +2923,7 @@ var FormikTextInputInset = function FormikTextInputInset(_ref) {
|
|
|
2923
2923
|
}));
|
|
2924
2924
|
};
|
|
2925
2925
|
|
|
2926
|
-
var styles$
|
|
2926
|
+
var styles$c = {"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"};
|
|
2927
2927
|
|
|
2928
2928
|
var _excluded$h = ["autoFocus", "label", "hideLabel", "helpText", "error", "id", "isDisabled", "isRequired", "name", "value", "options", "onChange", "placeholder", "requiredIndicator", "size"];
|
|
2929
2929
|
var SelectInputNative = function SelectInputNative(_ref) {
|
|
@@ -2954,9 +2954,9 @@ var SelectInputNative = function SelectInputNative(_ref) {
|
|
|
2954
2954
|
};
|
|
2955
2955
|
var optionsWithPlaceholder = [_extends({}, placeholderOption)].concat(options);
|
|
2956
2956
|
var responsiveClasses = generateResponsiveClasses('size', size);
|
|
2957
|
-
var selectWrapperClasses = classNames.apply(void 0, ['hyphen-components__variables__form-control', styles$
|
|
2958
|
-
return styles$
|
|
2959
|
-
}), [(_ref2 = {}, _ref2[styles$
|
|
2957
|
+
var selectWrapperClasses = classNames.apply(void 0, ['hyphen-components__variables__form-control', styles$c['select-input-native-wrapper']].concat(responsiveClasses.map(function (className) {
|
|
2958
|
+
return styles$c[className];
|
|
2959
|
+
}), [(_ref2 = {}, _ref2[styles$c.disabled] = isDisabled, _ref2[styles$c.error] = error, _ref2)]));
|
|
2960
2960
|
return React__default.createElement(FormControl, _extends({
|
|
2961
2961
|
label: label,
|
|
2962
2962
|
hideLabel: hideLabel,
|
|
@@ -3045,7 +3045,7 @@ var FormikTextInput = function FormikTextInput(_ref) {
|
|
|
3045
3045
|
}));
|
|
3046
3046
|
};
|
|
3047
3047
|
|
|
3048
|
-
var styles$
|
|
3048
|
+
var styles$b = {"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"};
|
|
3049
3049
|
|
|
3050
3050
|
var _excluded$e = ["id", "label", "onChange", "value", "autoComplete", "autoFocus", "className", "error", "helpText", "hideLabel", "isDisabled", "isRequired", "maxLength", "name", "onBlur", "onFocus", "placeholder", "requiredIndicator", "resize", "rows", "size"];
|
|
3051
3051
|
var TextareaInput = function TextareaInput(_ref) {
|
|
@@ -3089,9 +3089,9 @@ var TextareaInput = function TextareaInput(_ref) {
|
|
|
3089
3089
|
size = _ref$size === void 0 ? 'md' : _ref$size,
|
|
3090
3090
|
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$e);
|
|
3091
3091
|
var responsiveClasses = generateResponsiveClasses('size', size);
|
|
3092
|
-
var inputWrapperClasses = classNames.apply(void 0, ['hyphen-components__variables__form-control', styles$
|
|
3093
|
-
return styles$
|
|
3094
|
-
}), [(_ref2 = {}, _ref2[styles$
|
|
3092
|
+
var inputWrapperClasses = classNames.apply(void 0, ['hyphen-components__variables__form-control', styles$b['textarea-input-wrapper']].concat(responsiveClasses.map(function (c) {
|
|
3093
|
+
return styles$b[c];
|
|
3094
|
+
}), [(_ref2 = {}, _ref2[styles$b.error] = error, _ref2[styles$b.disabled] = isDisabled, _ref2)]));
|
|
3095
3095
|
var inputProps = {
|
|
3096
3096
|
'aria-required': isRequired,
|
|
3097
3097
|
'aria-invalid': !!error,
|
|
@@ -3099,7 +3099,7 @@ var TextareaInput = function TextareaInput(_ref) {
|
|
|
3099
3099
|
'aria-labelledby': label && !hideLabel ? id + "Label" : undefined,
|
|
3100
3100
|
autoComplete: getAutoCompleteValue(autoComplete),
|
|
3101
3101
|
autoFocus: autoFocus,
|
|
3102
|
-
className: classNames(styles$
|
|
3102
|
+
className: classNames(styles$b["textarea-resize-" + resize]),
|
|
3103
3103
|
disabled: isDisabled,
|
|
3104
3104
|
id: id,
|
|
3105
3105
|
maxLength: maxLength,
|
|
@@ -3115,7 +3115,7 @@ var TextareaInput = function TextareaInput(_ref) {
|
|
|
3115
3115
|
var labelProps = {
|
|
3116
3116
|
inputId: id,
|
|
3117
3117
|
helpText: helpText,
|
|
3118
|
-
className: styles$
|
|
3118
|
+
className: styles$b['textarea-input-label'],
|
|
3119
3119
|
isDisabled: isDisabled,
|
|
3120
3120
|
isFieldRequired: isRequired,
|
|
3121
3121
|
requiredIndicator: requiredIndicator
|
|
@@ -3301,7 +3301,7 @@ var FormikTimePickerNative = function FormikTimePickerNative(_ref) {
|
|
|
3301
3301
|
}));
|
|
3302
3302
|
};
|
|
3303
3303
|
|
|
3304
|
-
var styles$
|
|
3304
|
+
var styles$a = {"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"};
|
|
3305
3305
|
|
|
3306
3306
|
var Toggle = function Toggle(_ref) {
|
|
3307
3307
|
var _classNames, _ref2;
|
|
@@ -3337,12 +3337,12 @@ var Toggle = function Toggle(_ref) {
|
|
|
3337
3337
|
var handleFocus = function handleFocus(event) {
|
|
3338
3338
|
if (onFocus) onFocus(event);
|
|
3339
3339
|
};
|
|
3340
|
-
var wrapperClasses = classNames('hyphen-components__variables__form-control', (_classNames = {}, _classNames[styles$
|
|
3341
|
-
var trackClasses = classNames.apply(void 0, [styles$
|
|
3342
|
-
return styles$
|
|
3343
|
-
}), [(_ref2 = {}, _ref2[styles$
|
|
3344
|
-
var thumbClasses = classNames.apply(void 0, [styles$
|
|
3345
|
-
return styles$
|
|
3340
|
+
var wrapperClasses = classNames('hyphen-components__variables__form-control', (_classNames = {}, _classNames[styles$a.disabled] = isDisabled, _classNames));
|
|
3341
|
+
var trackClasses = classNames.apply(void 0, [styles$a['toggle-track']].concat(generateResponsiveClasses('track-size', size).map(function (c) {
|
|
3342
|
+
return styles$a[c];
|
|
3343
|
+
}), [(_ref2 = {}, _ref2[styles$a.error] = error, _ref2)]));
|
|
3344
|
+
var thumbClasses = classNames.apply(void 0, [styles$a['toggle-thumb']].concat(generateResponsiveClasses('thumb-size', size).map(function (c) {
|
|
3345
|
+
return styles$a[c];
|
|
3346
3346
|
})));
|
|
3347
3347
|
var inputProps = {
|
|
3348
3348
|
'aria-required': isRequired,
|
|
@@ -3357,7 +3357,7 @@ var Toggle = function Toggle(_ref) {
|
|
|
3357
3357
|
onFocus: handleFocus,
|
|
3358
3358
|
required: isRequired,
|
|
3359
3359
|
type: 'checkbox',
|
|
3360
|
-
className: styles$
|
|
3360
|
+
className: styles$a['toggle-input']
|
|
3361
3361
|
};
|
|
3362
3362
|
var labelProps = {
|
|
3363
3363
|
inputId: id,
|
|
@@ -3488,7 +3488,7 @@ var ModalBody = function ModalBody(_ref) {
|
|
|
3488
3488
|
}, restProps), children);
|
|
3489
3489
|
};
|
|
3490
3490
|
|
|
3491
|
-
var styles$
|
|
3491
|
+
var styles$9 = {"modal-close":"Modal-module_modal-close__1YmMa","modal":"Modal-module_modal__yNG-7","modal-content":"Modal-module_modal-content__GMtBm"};
|
|
3492
3492
|
|
|
3493
3493
|
var _excluded$5 = ["ariaLabel", "ariaLabelledBy", "allowPinchZoom", "children", "className", "containerRef", "fullScreenMobile", "initialFocusRef", "isOpen", "maxWidth", "onDismiss", "overflow"];
|
|
3494
3494
|
var ModalBaseComponent = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
@@ -3519,10 +3519,10 @@ var ModalBaseComponent = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
3519
3519
|
}, 100);
|
|
3520
3520
|
}, [initialFocusRef]);
|
|
3521
3521
|
var maxWidthCss = getDimensionCss('mw', maxWidth);
|
|
3522
|
-
var overlayClassnames = classNames(styles$
|
|
3522
|
+
var overlayClassnames = classNames(styles$9.overlay, styles$9.modal, {
|
|
3523
3523
|
fullscreen: fullScreenMobile
|
|
3524
3524
|
});
|
|
3525
|
-
var contentClassnames = classNames(styles$
|
|
3525
|
+
var contentClassnames = classNames(styles$9['modal-content'], className, maxWidthCss.classes, (_classNames = {}, _classNames["overflow-" + overflow] = overflow, _classNames));
|
|
3526
3526
|
if (!isOpen) return null;
|
|
3527
3527
|
var parentElement = containerRef != null && containerRef.current ? containerRef.current : undefined;
|
|
3528
3528
|
return React__default.createElement(FocusLock, {
|
|
@@ -3734,7 +3734,7 @@ var Pagination = function Pagination(_ref) {
|
|
|
3734
3734
|
}, isTotalVisible && activeListRangeText));
|
|
3735
3735
|
};
|
|
3736
3736
|
|
|
3737
|
-
var styles$
|
|
3737
|
+
var styles$8 = {"slider":"RangeInput-module_slider__Z6D68","disabled":"RangeInput-module_disabled__gyu72"};
|
|
3738
3738
|
|
|
3739
3739
|
var _excluded$4 = ["value", "max", "id", "onChange", "className", "isDisabled"];
|
|
3740
3740
|
var RangeInput = function RangeInput(_ref) {
|
|
@@ -3759,7 +3759,7 @@ var RangeInput = function RangeInput(_ref) {
|
|
|
3759
3759
|
"aria-valuemax": max,
|
|
3760
3760
|
"aria-valuenow": value,
|
|
3761
3761
|
"aria-label": "range input",
|
|
3762
|
-
className: classNames(styles$
|
|
3762
|
+
className: classNames(styles$8.slider, className, (_classNames = {}, _classNames[styles$8.disabled] = isDisabled, _classNames)),
|
|
3763
3763
|
onChange: onChange,
|
|
3764
3764
|
disabled: isDisabled,
|
|
3765
3765
|
style: {
|
|
@@ -3849,7 +3849,7 @@ function useIsMobile() {
|
|
|
3849
3849
|
return !!isMobile;
|
|
3850
3850
|
}
|
|
3851
3851
|
|
|
3852
|
-
var styles$
|
|
3852
|
+
var styles$7 = {"rail":"Sidebar-module_rail__nWu0Q"};
|
|
3853
3853
|
|
|
3854
3854
|
var _excluded$3 = ["defaultOpen", "open", "onOpenChange", "className", "style", "children"],
|
|
3855
3855
|
_excluded2 = ["side", "collapsible", "className", "children"],
|
|
@@ -4239,7 +4239,7 @@ var SidebarRail = /*#__PURE__*/React__default.forwardRef(function (_ref17, ref)
|
|
|
4239
4239
|
tabIndex: -1,
|
|
4240
4240
|
onClick: toggleSidebar,
|
|
4241
4241
|
title: "Toggle Sidebar [",
|
|
4242
|
-
className: classNames(styles$
|
|
4242
|
+
className: classNames(styles$7.rail, 'hover-show-child background-color-transparent display-flex p-top-5xl p-left-xl p-right-0 justify-content-center position-absolute', {
|
|
4243
4243
|
'cursor-w-resize': open,
|
|
4244
4244
|
'cursor-e-resize': !open
|
|
4245
4245
|
}, className),
|
|
@@ -4257,6 +4257,10 @@ var SidebarRail = /*#__PURE__*/React__default.forwardRef(function (_ref17, ref)
|
|
|
4257
4257
|
padding: "xs",
|
|
4258
4258
|
margin: "0",
|
|
4259
4259
|
shadow: "xs",
|
|
4260
|
+
width: "3xl",
|
|
4261
|
+
height: "3xl",
|
|
4262
|
+
alignItems: "center",
|
|
4263
|
+
justifyContent: "center",
|
|
4260
4264
|
className: classNames('hover-child', {
|
|
4261
4265
|
'cursor-w-resize': open,
|
|
4262
4266
|
'cursor-e-resize': !open
|
|
@@ -4281,13 +4285,13 @@ var SidebarMenuBadge = /*#__PURE__*/React__default.forwardRef(function (_ref18,
|
|
|
4281
4285
|
});
|
|
4282
4286
|
SidebarMenuBadge.displayName = 'SidebarMenuBadge';
|
|
4283
4287
|
|
|
4284
|
-
var styles$
|
|
4288
|
+
var styles$6 = {"container":"Table-module_container__BsXT7","loading-mask":"Table-module_loading-mask__qoRPG","scroll-container":"Table-module_scroll-container__5WV5T","table":"Table-module_table__-ZPCW","auto":"Table-module_auto__1R8wm","fixed":"Table-module_fixed__T-EXg","borderless":"Table-module_borderless__BbsqE","scrollable":"Table-module_scrollable__Apjbs","scrollable-x":"Table-module_scrollable-x__mguJX","scrollable-y":"Table-module_scrollable-y__292qB","table-bordered":"Table-module_table-bordered__wM9u-","full-height":"Table-module_full-height__MlrSg"};
|
|
4285
4289
|
|
|
4286
|
-
var styles$
|
|
4290
|
+
var styles$5 = {"table-body":"TableBody-module_table-body__Y5WbD","striped":"TableBody-module_striped__5MlEr","hover":"TableBody-module_hover__2CRgY"};
|
|
4287
4291
|
|
|
4288
|
-
var styles$
|
|
4292
|
+
var styles$4 = {"table-row":"TableRow-module_table-row__-Y9FQ","hoverable":"TableRow-module_hoverable__53-l9"};
|
|
4289
4293
|
|
|
4290
|
-
var styles$
|
|
4294
|
+
var styles$3 = {"table-cell":"TableBodyCell-module_table-cell__pKl29","borderless":"TableBodyCell-module_borderless__qwKQA","compact":"TableBodyCell-module_compact__zfdBf","truncated":"TableBodyCell-module_truncated__4YtPF","sticky-column-left":"TableBodyCell-module_sticky-column-left__tKIGW","sticky-column-right":"TableBodyCell-module_sticky-column-right__680hS","sticky-column":"TableBodyCell-module_sticky-column__QpEbV","align-right":"TableBodyCell-module_align-right__j-VqN","align-center":"TableBodyCell-module_align-center__saqzC"};
|
|
4291
4295
|
|
|
4292
4296
|
var TableBodyCell = function TableBodyCell(_ref) {
|
|
4293
4297
|
var _classNames;
|
|
@@ -4310,7 +4314,7 @@ var TableBodyCell = function TableBodyCell(_ref) {
|
|
|
4310
4314
|
_ref$width = _ref.width,
|
|
4311
4315
|
width = _ref$width === void 0 ? undefined : _ref$width;
|
|
4312
4316
|
var columnIsSticky = sticky === 'left' || sticky === 'right';
|
|
4313
|
-
var tableCellClasses = classNames(styles$
|
|
4317
|
+
var tableCellClasses = classNames(styles$3['table-cell'], (_classNames = {}, _classNames[styles$3.truncated] = truncateOverflow, _classNames[styles$3.compact] = isCompact, _classNames[styles$3.borderless] = isBorderless, _classNames[styles$3['sticky-column']] = columnIsSticky, _classNames[styles$3['sticky-column-left']] = sticky === 'left', _classNames[styles$3['sticky-column-right']] = sticky === 'right', _classNames[styles$3['align-right']] = align === 'right', _classNames[styles$3['align-center']] = align === 'center', _classNames), className);
|
|
4314
4318
|
return React__default.createElement(Box, {
|
|
4315
4319
|
as: columnIsSticky ? 'th' : 'td',
|
|
4316
4320
|
className: tableCellClasses,
|
|
@@ -4324,7 +4328,7 @@ var TableBodyCell = function TableBodyCell(_ref) {
|
|
|
4324
4328
|
}, children === null || typeof children === 'undefined' || children === '' ? emptyCellPlaceholder : children);
|
|
4325
4329
|
};
|
|
4326
4330
|
|
|
4327
|
-
var styles$
|
|
4331
|
+
var styles$2 = {"table-header-cell":"TableHeaderCell-module_table-header-cell__aufSm","sortable":"TableHeaderCell-module_sortable__qjrkY","borderless":"TableHeaderCell-module_borderless__uos2k","truncated":"TableHeaderCell-module_truncated__wmNfw","compact":"TableHeaderCell-module_compact__ujtrZ","sticky-header":"TableHeaderCell-module_sticky-header__PEP9t","sticky-column-left":"TableHeaderCell-module_sticky-column-left__t8qIz","sticky-column-right":"TableHeaderCell-module_sticky-column-right__6D8-X","sticky-column":"TableHeaderCell-module_sticky-column__g9ybV","align-right":"TableHeaderCell-module_align-right__Qw0YQ","align-center":"TableHeaderCell-module_align-center__1RmCS","heading":"TableHeaderCell-module_heading__fEcYT","sort-icon":"TableHeaderCell-module_sort-icon__SHgic"};
|
|
4328
4332
|
|
|
4329
4333
|
// eslint-disable-line import/prefer-default-export
|
|
4330
4334
|
var TableHeaderCell = function TableHeaderCell(_ref) {
|
|
@@ -4383,7 +4387,7 @@ var TableHeaderCell = function TableHeaderCell(_ref) {
|
|
|
4383
4387
|
});
|
|
4384
4388
|
};
|
|
4385
4389
|
return React__default.createElement("span", {
|
|
4386
|
-
className: styles$
|
|
4390
|
+
className: styles$2['sort-icon']
|
|
4387
4391
|
}, renderArrows());
|
|
4388
4392
|
};
|
|
4389
4393
|
var handleKeyPress = function handleKeyPress(event) {
|
|
@@ -4404,7 +4408,7 @@ var TableHeaderCell = function TableHeaderCell(_ref) {
|
|
|
4404
4408
|
});
|
|
4405
4409
|
onSort(eventWithKey);
|
|
4406
4410
|
};
|
|
4407
|
-
var tableHeaderClasses = classNames(styles$
|
|
4411
|
+
var tableHeaderClasses = classNames(styles$2['table-header-cell'], (_classNames = {}, _classNames[styles$2.sortable] = isSortable, _classNames[styles$2.compact] = isCompact, _classNames[styles$2.truncated] = truncateOverflow, _classNames[styles$2.borderless] = isBorderless, _classNames[styles$2['sticky-header']] = hasStickyHeader, _classNames[styles$2['sticky-column']] = sticky === 'left' || sticky === 'right', _classNames[styles$2['sticky-column-left']] = sticky === 'left', _classNames[styles$2['sticky-column-right']] = sticky === 'right', _classNames[styles$2['align-right']] = align === 'right', _classNames[styles$2['align-center']] = align === 'center', _classNames), className);
|
|
4408
4412
|
return React__default.createElement(Box, {
|
|
4409
4413
|
as: "th",
|
|
4410
4414
|
display: "table-cell",
|
|
@@ -4416,7 +4420,7 @@ var TableHeaderCell = function TableHeaderCell(_ref) {
|
|
|
4416
4420
|
onKeyDown: handleKeyPress,
|
|
4417
4421
|
scope: "col"
|
|
4418
4422
|
}, React__default.createElement("div", {
|
|
4419
|
-
className: styles$
|
|
4423
|
+
className: styles$2.heading
|
|
4420
4424
|
}, column.heading, isSortable && renderIcon()));
|
|
4421
4425
|
};
|
|
4422
4426
|
|
|
@@ -4449,7 +4453,7 @@ var TableRow = function TableRow(_ref) {
|
|
|
4449
4453
|
rowIndex = _ref$rowIndex === void 0 ? undefined : _ref$rowIndex,
|
|
4450
4454
|
_ref$truncateOverflow = _ref.truncateOverflow,
|
|
4451
4455
|
truncateOverflow = _ref$truncateOverflow === void 0 ? false : _ref$truncateOverflow;
|
|
4452
|
-
var tableRowClasses = classNames(styles$
|
|
4456
|
+
var tableRowClasses = classNames(styles$4['table-row'], (_classNames = {}, _classNames[styles$4.hoverable] = isHoverable, _classNames), className);
|
|
4453
4457
|
var renderCellContent = function renderCellContent(column) {
|
|
4454
4458
|
if (column.render) {
|
|
4455
4459
|
var cellValue = column.dataKey && row ? row[column.dataKey] : undefined;
|
|
@@ -4518,7 +4522,7 @@ var TableBody = function TableBody(_ref) {
|
|
|
4518
4522
|
isStriped = _ref$isStriped === void 0 ? false : _ref$isStriped,
|
|
4519
4523
|
_ref$truncateOverflow = _ref.truncateOverflow,
|
|
4520
4524
|
truncateOverflow = _ref$truncateOverflow === void 0 ? false : _ref$truncateOverflow;
|
|
4521
|
-
var tableBodyClasses = classNames(styles$
|
|
4525
|
+
var tableBodyClasses = classNames(styles$5['table-body'], (_classNames = {}, _classNames[styles$5.striped] = isStriped, _classNames[styles$5.hover] = hoverableRows, _classNames), className);
|
|
4522
4526
|
return React__default.createElement("tbody", {
|
|
4523
4527
|
className: tableBodyClasses
|
|
4524
4528
|
}, rows.map(function (row, rowIndex) {
|
|
@@ -4603,13 +4607,13 @@ var Table = function Table(_ref) {
|
|
|
4603
4607
|
useFixedTableLayout = _ref$useFixedTableLay === void 0 ? false : _ref$useFixedTableLay,
|
|
4604
4608
|
_ref$truncateOverflow = _ref.truncateOverflow,
|
|
4605
4609
|
truncateOverflow = _ref$truncateOverflow === void 0 ? false : _ref$truncateOverflow;
|
|
4606
|
-
var containerClasses = classNames(styles$
|
|
4607
|
-
var scrollContainerClasses = classNames(styles$
|
|
4608
|
-
var tableClasses = classNames(styles$
|
|
4610
|
+
var containerClasses = classNames(styles$6.container, (_classNames = {}, _classNames[styles$6['full-height']] = !!(isScrollable != null && isScrollable.y), _classNames));
|
|
4611
|
+
var scrollContainerClasses = classNames(styles$6['scroll-container'], (_classNames2 = {}, _classNames2[styles$6.scrollable] = !!(isScrollable != null && isScrollable.x) || !!(isScrollable != null && isScrollable.y), _classNames2[styles$6['scrollable-x']] = !!(isScrollable != null && isScrollable.x), _classNames2[styles$6['scrollable-y']] = !!(isScrollable != null && isScrollable.y), _classNames2), className);
|
|
4612
|
+
var tableClasses = classNames(styles$6.table, (_classNames3 = {}, _classNames3[styles$6.fixed] = useFixedTableLayout, _classNames3[styles$6.striped] = isStriped, _classNames3[styles$6.borderless] = isBorderless, _classNames3[styles$6.compact] = isCompact, _classNames3));
|
|
4609
4613
|
return React__default.createElement("div", {
|
|
4610
4614
|
className: containerClasses
|
|
4611
4615
|
}, isLoading && React__default.createElement("div", {
|
|
4612
|
-
className: styles$
|
|
4616
|
+
className: styles$6['loading-mask']
|
|
4613
4617
|
}, React__default.createElement(Spinner, {
|
|
4614
4618
|
size: "xl"
|
|
4615
4619
|
})), React__default.createElement("div", {
|
|
@@ -4684,13 +4688,13 @@ function ThemeProvider(_ref) {
|
|
|
4684
4688
|
}), children);
|
|
4685
4689
|
}
|
|
4686
4690
|
|
|
4687
|
-
var styles = {"toast-notification":"ToastNotification-module_toast-notification__2xiTW","toast-error":"ToastNotification-module_toast-error__4ArAY","toast-dismiss":"ToastNotification-module_toast-dismiss__xxmkb","toast-notification-enter-top":"ToastNotification-module_toast-notification-enter-top__ZZDCr","toast-notification-exit-top":"ToastNotification-module_toast-notification-exit-top__fOIkZ","toast-notification-enter-bottom":"ToastNotification-module_toast-notification-enter-bottom__So3w7","toast-notification-exit-bottom":"ToastNotification-module_toast-notification-exit-bottom__DDthi","toast-notification-exit-left":"ToastNotification-module_toast-notification-exit-left__Fh1hC","toast-notification-exit-right":"ToastNotification-module_toast-notification-exit-right__C1jQ9","toast-notification-fade-in":"ToastNotification-module_toast-notification-fade-in__JlSGi","toast-notification-fade-out":"ToastNotification-module_toast-notification-fade-out__r6q4Q"};
|
|
4691
|
+
var styles$1 = {"toast-notification":"ToastNotification-module_toast-notification__2xiTW","toast-error":"ToastNotification-module_toast-error__4ArAY","toast-dismiss":"ToastNotification-module_toast-dismiss__xxmkb","toast-notification-enter-top":"ToastNotification-module_toast-notification-enter-top__ZZDCr","toast-notification-exit-top":"ToastNotification-module_toast-notification-exit-top__fOIkZ","toast-notification-enter-bottom":"ToastNotification-module_toast-notification-enter-bottom__So3w7","toast-notification-exit-bottom":"ToastNotification-module_toast-notification-exit-bottom__DDthi","toast-notification-exit-left":"ToastNotification-module_toast-notification-exit-left__Fh1hC","toast-notification-exit-right":"ToastNotification-module_toast-notification-exit-right__C1jQ9","toast-notification-fade-in":"ToastNotification-module_toast-notification-fade-in__JlSGi","toast-notification-fade-out":"ToastNotification-module_toast-notification-fade-out__r6q4Q"};
|
|
4688
4692
|
|
|
4689
4693
|
var getAnimationClass = function getAnimationClass(position, visible) {
|
|
4690
4694
|
var verticalPosition = position.includes('top') ? 'top' : 'bottom';
|
|
4691
4695
|
var horizontalPosition = position.includes('left') ? 'left' : 'right';
|
|
4692
4696
|
var isCentered = position.includes('center');
|
|
4693
|
-
var _ref = prefersReducedMotion() ? [styles['toast-notification-fade-in'], styles['toast-notification-fade-out']] : [styles["toast-notification-enter-" + verticalPosition], styles["toast-notification-exit-" + (isCentered ? verticalPosition : horizontalPosition)]],
|
|
4697
|
+
var _ref = prefersReducedMotion() ? [styles$1['toast-notification-fade-in'], styles$1['toast-notification-fade-out']] : [styles$1["toast-notification-enter-" + verticalPosition], styles$1["toast-notification-exit-" + (isCentered ? verticalPosition : horizontalPosition)]],
|
|
4694
4698
|
enter = _ref[0],
|
|
4695
4699
|
exit = _ref[1];
|
|
4696
4700
|
return visible ? enter : exit;
|
|
@@ -4724,7 +4728,7 @@ var renderDismissIcon = function renderDismissIcon(toast, onDismiss) {
|
|
|
4724
4728
|
return React__default.createElement(Box, {
|
|
4725
4729
|
as: "button",
|
|
4726
4730
|
borderWidth: "0",
|
|
4727
|
-
className: styles['toast-dismiss'],
|
|
4731
|
+
className: styles$1['toast-dismiss'],
|
|
4728
4732
|
padding: "0 0 0 sm",
|
|
4729
4733
|
alignItems: "center",
|
|
4730
4734
|
justifyContent: "center",
|
|
@@ -4755,9 +4759,9 @@ var ToastNotification = /*#__PURE__*/React__default.memo(function (_ref2) {
|
|
|
4755
4759
|
}
|
|
4756
4760
|
}, toast.ariaProps), resolveValue(toast.message, toast));
|
|
4757
4761
|
var animationClass = toast != null && toast.height ? getAnimationClass(toast.position || position, toast.visible) : undefined;
|
|
4758
|
-
var classes = classNames(toast.className, styles['toast-notification'], animationClass, (_classNames = {
|
|
4762
|
+
var classes = classNames(toast.className, styles$1['toast-notification'], animationClass, (_classNames = {
|
|
4759
4763
|
'toast-notification--not-visible': !toast.visible
|
|
4760
|
-
}, _classNames[styles['toast-error']] = toast.type === 'error', _classNames));
|
|
4764
|
+
}, _classNames[styles$1['toast-error']] = toast.type === 'error', _classNames));
|
|
4761
4765
|
return React__default.createElement(Box, {
|
|
4762
4766
|
alignItems: "center",
|
|
4763
4767
|
maxWidth: "300px",
|
|
@@ -5229,6 +5233,8 @@ var ToastContainer = function ToastContainer(_ref) {
|
|
|
5229
5233
|
}));
|
|
5230
5234
|
};
|
|
5231
5235
|
|
|
5236
|
+
var styles = {"TooltipContent":"Tooltip-module_TooltipContent__wLEZU","tooltip-slideUpAndFade":"Tooltip-module_tooltip-slideUpAndFade__Y05jp","tooltip-slideRightAndFade":"Tooltip-module_tooltip-slideRightAndFade__K04p9","tooltip-slideDownAndFade":"Tooltip-module_tooltip-slideDownAndFade__1wMd-","tooltip-slideLeftAndFade":"Tooltip-module_tooltip-slideLeftAndFade__iQ1fp"};
|
|
5237
|
+
|
|
5232
5238
|
var _excluded = ["className", "sideOffset"];
|
|
5233
5239
|
var TooltipProvider = TooltipPrimitive.Provider;
|
|
5234
5240
|
var Tooltip = TooltipPrimitive.Root;
|
|
@@ -5242,7 +5248,7 @@ var TooltipContent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
5242
5248
|
return React.createElement(TooltipPrimitive.Content, _extends({
|
|
5243
5249
|
ref: ref,
|
|
5244
5250
|
sideOffset: sideOffset,
|
|
5245
|
-
className: classNames('background-color-tooltip font-color-tooltip font-size-xs z-index-popover overflow-hidden br-sm p-h-sm p-v-xs shadow-sm', className)
|
|
5251
|
+
className: classNames(styles.TooltipContent, 'background-color-tooltip font-color-tooltip font-size-xs z-index-popover overflow-hidden br-sm p-h-sm p-v-xs shadow-sm', className)
|
|
5246
5252
|
}, props));
|
|
5247
5253
|
});
|
|
5248
5254
|
TooltipContent.displayName = TooltipPrimitive.Content.displayName;
|