@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
|
@@ -275,7 +275,7 @@ Component, props, getDefault) {
|
|
|
275
275
|
return defaultProps.as || 'div';
|
|
276
276
|
}
|
|
277
277
|
|
|
278
|
-
var styles$
|
|
278
|
+
var styles$y = {"box-transition":"Box-module_box-transition__eQx8C"};
|
|
279
279
|
|
|
280
280
|
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"];
|
|
281
281
|
/**
|
|
@@ -413,7 +413,7 @@ var Box = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
413
413
|
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 = {
|
|
414
414
|
'flex-wrap': isFlexBox && wrap,
|
|
415
415
|
'flex-nowrap': isFlexBox && wrap === false
|
|
416
|
-
}, _ref3["background-color-" + background] = background, _ref3["font-color-" + color] = color, _ref3["border-color-" + borderColor] = borderColor, _ref3["cursor-" + cursor] = cursor, _ref3[styles$
|
|
416
|
+
}, _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)]));
|
|
417
417
|
var boxStyles = _extends({}, style, heightCss.styles, maxHeightCss.styles, maxWidthCss.styles, widthCss.styles, minHeightCss.styles, minWidthCss.styles);
|
|
418
418
|
/**
|
|
419
419
|
* Creates an object that maps the flex direction to either `right` or `bottom`
|
|
@@ -540,7 +540,7 @@ var Icon = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
540
540
|
}, "???");
|
|
541
541
|
});
|
|
542
542
|
|
|
543
|
-
var styles$
|
|
543
|
+
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"};
|
|
544
544
|
|
|
545
545
|
// eslint-disable-next-line import/prefer-default-export
|
|
546
546
|
var ALERT_ICONS_MAP = {
|
|
@@ -591,7 +591,7 @@ var Alert = function Alert(_ref) {
|
|
|
591
591
|
var renderAlertIcon = function renderAlertIcon() {
|
|
592
592
|
return React.createElement(Box, {
|
|
593
593
|
fontSize: "md",
|
|
594
|
-
className: styles$
|
|
594
|
+
className: styles$x["alert__icon__" + variant]
|
|
595
595
|
}, React.createElement(Icon, {
|
|
596
596
|
name: ALERT_ICONS_MAP[variant].icon,
|
|
597
597
|
"data-testid": "alert-icon-" + variant + "-test-id"
|
|
@@ -604,7 +604,7 @@ var Alert = function Alert(_ref) {
|
|
|
604
604
|
return React.createElement(Box, {
|
|
605
605
|
margin: "0 0 0 auto",
|
|
606
606
|
color: "secondary",
|
|
607
|
-
className: styles$
|
|
607
|
+
className: styles$x['close-icon']
|
|
608
608
|
}, React.createElement("button", {
|
|
609
609
|
type: "button",
|
|
610
610
|
onClick: handleClose,
|
|
@@ -614,7 +614,7 @@ var Alert = function Alert(_ref) {
|
|
|
614
614
|
"data-testid": "alert-close-icon-test-id"
|
|
615
615
|
})));
|
|
616
616
|
};
|
|
617
|
-
var alertContainerClasses = classNames(styles$
|
|
617
|
+
var alertContainerClasses = classNames(styles$x["alert__" + variant], styles$x.alert, className);
|
|
618
618
|
return React.createElement(Box, _extends({
|
|
619
619
|
alignItems: "flex-start",
|
|
620
620
|
gap: "md",
|
|
@@ -631,11 +631,11 @@ var Alert = function Alert(_ref) {
|
|
|
631
631
|
as: "h4",
|
|
632
632
|
fontSize: "sm",
|
|
633
633
|
fontWeight: "semibold",
|
|
634
|
-
className: styles$
|
|
634
|
+
className: styles$x['alert-heading']
|
|
635
635
|
}, title), message && (typeof message === 'string' ? React.createElement("p", null, message) : message))), isClosable && renderCloseIcon());
|
|
636
636
|
};
|
|
637
637
|
|
|
638
|
-
var styles$
|
|
638
|
+
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"};
|
|
639
639
|
|
|
640
640
|
var _excluded$K = ["className", "message", "variant", "size"];
|
|
641
641
|
var Badge = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
@@ -650,9 +650,9 @@ var Badge = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
650
650
|
size = _ref$size === void 0 ? 'md' : _ref$size,
|
|
651
651
|
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$K);
|
|
652
652
|
var responsiveClasses = generateResponsiveClasses('size', size).map(function (c) {
|
|
653
|
-
return styles$
|
|
653
|
+
return styles$w[c];
|
|
654
654
|
});
|
|
655
|
-
var badgeClasses = classNames(styles$
|
|
655
|
+
var badgeClasses = classNames(styles$w.badge, className, responsiveClasses, (_classNames = {}, _classNames[styles$w[variant]] = variant, _classNames));
|
|
656
656
|
return React.createElement(Box, _extends({
|
|
657
657
|
ref: ref,
|
|
658
658
|
className: badgeClasses,
|
|
@@ -660,13 +660,13 @@ var Badge = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
660
660
|
}, restProps), message);
|
|
661
661
|
});
|
|
662
662
|
|
|
663
|
-
var styles$
|
|
663
|
+
var styles$v = {"spinner":"Spinner-module_spinner__SZoUP","spin":"Spinner-module_spin__Yk0wm"};
|
|
664
664
|
|
|
665
665
|
var Spinner = function Spinner(_ref) {
|
|
666
666
|
var className = _ref.className,
|
|
667
667
|
_ref$size = _ref.size,
|
|
668
668
|
size = _ref$size === void 0 ? 'md' : _ref$size;
|
|
669
|
-
var classes = classNames(className, styles$
|
|
669
|
+
var classes = classNames(className, styles$v.spinner);
|
|
670
670
|
var sizeInPixels = function sizeInPixels() {
|
|
671
671
|
var pixels;
|
|
672
672
|
if (size === 'sm') pixels = '12';
|
|
@@ -753,7 +753,7 @@ var Spinner = function Spinner(_ref) {
|
|
|
753
753
|
}))));
|
|
754
754
|
};
|
|
755
755
|
|
|
756
|
-
var styles$
|
|
756
|
+
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"};
|
|
757
757
|
|
|
758
758
|
var _excluded$J = ["asChild", "children", "className", "fullWidth", "iconPrefix", "iconSuffix", "isDisabled", "isLoading", "onClick", "onBlur", "onFocus", "shadow", "size", "type", "variant"];
|
|
759
759
|
var Button = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
@@ -779,9 +779,9 @@ var Button = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
779
779
|
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$J);
|
|
780
780
|
var disabled = isLoading || isDisabled;
|
|
781
781
|
var responsiveClasses = generateResponsiveClasses('size', size).map(function (c) {
|
|
782
|
-
return styles$
|
|
782
|
+
return styles$u[c];
|
|
783
783
|
}).filter(Boolean);
|
|
784
|
-
var buttonClasses = classNames('hyphen-components__variables__form-control', styles$
|
|
784
|
+
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));
|
|
785
785
|
var handleClick = !disabled ? onClick : undefined;
|
|
786
786
|
var handleBlur = !disabled ? onBlur : undefined;
|
|
787
787
|
var handleFocus = !disabled ? onFocus : undefined;
|
|
@@ -798,18 +798,18 @@ var Button = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
798
798
|
}, !asChild && {
|
|
799
799
|
type: type
|
|
800
800
|
}, restProps), isLoading && React.createElement(Spinner, {
|
|
801
|
-
className: styles$
|
|
801
|
+
className: styles$u['spinner-wrapper']
|
|
802
802
|
}), iconPrefix && React.createElement(Icon, {
|
|
803
|
-
className: styles$
|
|
803
|
+
className: styles$u.label,
|
|
804
804
|
name: iconPrefix,
|
|
805
805
|
"aria-hidden": "true",
|
|
806
806
|
focusable: "false",
|
|
807
807
|
"data-testid": "prefixIcon",
|
|
808
808
|
size: size === 'md' ? 'sm' : size
|
|
809
809
|
}), children && React.createElement(reactSlot.Slottable, null, asChild ? children : React.createElement("span", {
|
|
810
|
-
className: styles$
|
|
810
|
+
className: styles$u.label
|
|
811
811
|
}, children)), iconSuffix && React.createElement(Icon, {
|
|
812
|
-
className: styles$
|
|
812
|
+
className: styles$u.label,
|
|
813
813
|
name: iconSuffix,
|
|
814
814
|
"aria-hidden": "true",
|
|
815
815
|
focusable: "false",
|
|
@@ -852,7 +852,7 @@ var HEADING_DEFAULT_SIZE_MAP = {
|
|
|
852
852
|
h6: 'sm'
|
|
853
853
|
};
|
|
854
854
|
|
|
855
|
-
var styles$
|
|
855
|
+
var styles$t = {"heading":"Heading-module_heading__zKyv7"};
|
|
856
856
|
|
|
857
857
|
var _excluded$H = ["as", "children", "className", "color", "size"];
|
|
858
858
|
var Heading = function Heading(_ref) {
|
|
@@ -868,7 +868,7 @@ var Heading = function Heading(_ref) {
|
|
|
868
868
|
as: as
|
|
869
869
|
});
|
|
870
870
|
var headingSize = size || HEADING_DEFAULT_SIZE_MAP[as];
|
|
871
|
-
var classes = classNames(styles$
|
|
871
|
+
var classes = classNames(styles$t.heading, className, generateResponsiveClasses('heading', headingSize), (_classNames = {}, _classNames["font-color-" + color] = color, _classNames));
|
|
872
872
|
return React.createElement(element, _extends({
|
|
873
873
|
className: classes
|
|
874
874
|
}, restProps), children);
|
|
@@ -900,7 +900,7 @@ var CardHeader = function CardHeader(_ref) {
|
|
|
900
900
|
}, description) : description)), children);
|
|
901
901
|
};
|
|
902
902
|
|
|
903
|
-
var styles$
|
|
903
|
+
var styles$s = {"card-section-border":"Card-module_card-section-border__OefDX"};
|
|
904
904
|
|
|
905
905
|
var _excluded$F = ["background", "borderColor", "borderWidth", "children", "childGap", "gap", "className", "display", "padding", "subdued", "title"];
|
|
906
906
|
var CardSection = function CardSection(_ref) {
|
|
@@ -936,7 +936,7 @@ var CardSection = function CardSection(_ref) {
|
|
|
936
936
|
fontSize: "sm",
|
|
937
937
|
color: "base"
|
|
938
938
|
}, title)) : title;
|
|
939
|
-
var sectionClasses = classNames((_classNames = {}, _classNames[styles$
|
|
939
|
+
var sectionClasses = classNames((_classNames = {}, _classNames[styles$s['card-section-border']] = borderColor === undefined && borderWidth === undefined, _classNames[styles$s['card-subdued']] = subdued, _classNames), className);
|
|
940
940
|
return React.createElement(Box, _extends({
|
|
941
941
|
background: background,
|
|
942
942
|
borderColor: borderColor,
|
|
@@ -1018,7 +1018,7 @@ var CheckboxIcon = function CheckboxIcon(_ref) {
|
|
|
1018
1018
|
}));
|
|
1019
1019
|
};
|
|
1020
1020
|
|
|
1021
|
-
var styles$
|
|
1021
|
+
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"};
|
|
1022
1022
|
|
|
1023
1023
|
var _excluded$C = ["className", "display", "id", "isChecked", "label", "labelledby", "onChange", "error", "isDisabled", "isHidden", "isIndeterminate", "isRequired", "onBlur", "onFocus", "size", "value"];
|
|
1024
1024
|
var Checkbox = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
@@ -1084,11 +1084,11 @@ var Checkbox = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
1084
1084
|
value: value
|
|
1085
1085
|
});
|
|
1086
1086
|
var responsiveClasses = generateResponsiveClasses('size', size);
|
|
1087
|
-
var containerClasses = classNames.apply(void 0, [styles$
|
|
1088
|
-
return styles$
|
|
1089
|
-
}), [(_ref2 = {}, _ref2[styles$
|
|
1087
|
+
var containerClasses = classNames.apply(void 0, [styles$r.checkbox, className].concat(responsiveClasses.map(function (c) {
|
|
1088
|
+
return styles$r[c];
|
|
1089
|
+
}), [(_ref2 = {}, _ref2[styles$r.hidden] = isHidden, _ref2)]));
|
|
1090
1090
|
var iconClasses = classNames.apply(void 0, responsiveClasses.map(function (c) {
|
|
1091
|
-
return styles$
|
|
1091
|
+
return styles$r[c];
|
|
1092
1092
|
}));
|
|
1093
1093
|
return React.createElement(Box, _extends({
|
|
1094
1094
|
display: display,
|
|
@@ -1111,28 +1111,28 @@ var Checkbox = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
1111
1111
|
}));
|
|
1112
1112
|
});
|
|
1113
1113
|
|
|
1114
|
-
var styles$
|
|
1114
|
+
var styles$q = {"input-validation-message":"InputValidationMessage-module_input-validation-message__4MMMK"};
|
|
1115
1115
|
|
|
1116
1116
|
var InputValidationMessage = function InputValidationMessage(_ref) {
|
|
1117
1117
|
var children = _ref.children,
|
|
1118
1118
|
_ref$size = _ref.size,
|
|
1119
1119
|
size = _ref$size === void 0 ? 'sm' : _ref$size;
|
|
1120
|
-
var classes = classNames('hyphen-components__variables__form-control', styles$
|
|
1120
|
+
var classes = classNames('hyphen-components__variables__form-control', styles$q['input-validation-message'], 'font-color-danger', "font-size-" + size, 'm-top-sm');
|
|
1121
1121
|
return React.createElement("div", {
|
|
1122
1122
|
className: classes
|
|
1123
1123
|
}, children);
|
|
1124
1124
|
};
|
|
1125
1125
|
|
|
1126
|
-
var styles$
|
|
1126
|
+
var styles$p = {"label":"FormLabel-module_label__qTUB9","radio-input-label":"FormLabel-module_radio-input-label__IpAiN","disabled":"FormLabel-module_disabled__83oiH"};
|
|
1127
1127
|
|
|
1128
|
-
var styles$
|
|
1128
|
+
var styles$o = {"help-text":"HelpText-module_help-text__8WodW"};
|
|
1129
1129
|
|
|
1130
1130
|
var HelpText = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
1131
1131
|
var children = _ref.children,
|
|
1132
1132
|
className = _ref.className;
|
|
1133
1133
|
return React.createElement(Box, {
|
|
1134
1134
|
ref: ref,
|
|
1135
|
-
className: classNames('hyphen-components__variables__form-control', styles$
|
|
1135
|
+
className: classNames('hyphen-components__variables__form-control', styles$o['help-text'], className),
|
|
1136
1136
|
display: "block",
|
|
1137
1137
|
color: "secondary",
|
|
1138
1138
|
fontSize: "sm"
|
|
@@ -1162,7 +1162,7 @@ var FormLabel = function FormLabel(_ref) {
|
|
|
1162
1162
|
_ref$padding = _ref.padding,
|
|
1163
1163
|
padding = _ref$padding === void 0 ? '0' : _ref$padding,
|
|
1164
1164
|
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$B);
|
|
1165
|
-
var labelClasses = classNames('hyphen-components__variables__form-control', styles$
|
|
1165
|
+
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));
|
|
1166
1166
|
return React.createElement(Box, _extends({
|
|
1167
1167
|
as: "label",
|
|
1168
1168
|
id: inputId + "Label",
|
|
@@ -1265,7 +1265,7 @@ var Collapsible = CollapsiblePrimitive__namespace.Root;
|
|
|
1265
1265
|
var CollapsibleTrigger = CollapsiblePrimitive__namespace.CollapsibleTrigger;
|
|
1266
1266
|
var CollapsibleContent = CollapsiblePrimitive__namespace.CollapsibleContent;
|
|
1267
1267
|
|
|
1268
|
-
var styles$
|
|
1268
|
+
var styles$n = {};
|
|
1269
1269
|
|
|
1270
1270
|
var _excluded$z = ["children", "dayClassName", "maxDate", "minDate", "monthsShown", "openToDate", "startDate", "selected", "selectsRange", "showTwoColumnMonthYearPicker", "showFullMonthYearPicker", "showMonthYearPicker", "className", "formatWeekDay"];
|
|
1271
1271
|
var DatePicker = function DatePicker(_ref) {
|
|
@@ -1300,7 +1300,7 @@ var DatePicker = function DatePicker(_ref) {
|
|
|
1300
1300
|
return formattedDate[0];
|
|
1301
1301
|
} : _ref$formatWeekDay,
|
|
1302
1302
|
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$z);
|
|
1303
|
-
var datePickerClasses = classNames(styles$
|
|
1303
|
+
var datePickerClasses = classNames(styles$n['react-datepicker'], className);
|
|
1304
1304
|
return React.createElement(ReactDatePicker, _extends({
|
|
1305
1305
|
inline: true,
|
|
1306
1306
|
calendarClassName: datePickerClasses,
|
|
@@ -1358,7 +1358,7 @@ function getAutoCompleteValue(value) {
|
|
|
1358
1358
|
return value;
|
|
1359
1359
|
}
|
|
1360
1360
|
|
|
1361
|
-
var styles$
|
|
1361
|
+
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"};
|
|
1362
1362
|
|
|
1363
1363
|
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"];
|
|
1364
1364
|
var TextInput = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
@@ -1406,10 +1406,10 @@ var TextInput = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
1406
1406
|
type = _ref$type === void 0 ? 'text' : _ref$type,
|
|
1407
1407
|
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$x);
|
|
1408
1408
|
var responsiveClasses = generateResponsiveClasses('size', size);
|
|
1409
|
-
var inputWrapperClasses = classNames.apply(void 0, ['hyphen-components__variables__form-control', styles$
|
|
1410
|
-
return styles$
|
|
1411
|
-
}), [(_ref2 = {}, _ref2[styles$
|
|
1412
|
-
var clearBtnClasses = classNames(styles$
|
|
1409
|
+
var inputWrapperClasses = classNames.apply(void 0, ['hyphen-components__variables__form-control', styles$m['text-input-wrapper']].concat(responsiveClasses.map(function (c) {
|
|
1410
|
+
return styles$m[c];
|
|
1411
|
+
}), [(_ref2 = {}, _ref2[styles$m.error] = error, _ref2[styles$m.disabled] = isDisabled, _ref2[styles$m['is-clearable']] = onClear, _ref2)]));
|
|
1412
|
+
var clearBtnClasses = classNames(styles$m['clear-button'], styles$m.md);
|
|
1413
1413
|
var renderClearIcon = function renderClearIcon() {
|
|
1414
1414
|
var handleKeyPress = function handleKeyPress(event) {
|
|
1415
1415
|
if (event.keyCode === 13 && onClear) onClear(event);
|
|
@@ -1468,17 +1468,17 @@ var TextInput = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
1468
1468
|
}, prefix && React.createElement(Box, {
|
|
1469
1469
|
color: "secondary",
|
|
1470
1470
|
background: "secondary",
|
|
1471
|
-
className: classNames(styles$
|
|
1471
|
+
className: classNames(styles$m.prefix, 'ws-nowrap')
|
|
1472
1472
|
}, prefix), React.createElement(Box, _extends({
|
|
1473
1473
|
as: "input"
|
|
1474
1474
|
}, computedInputProps)), !!onClear && !!value && renderClearIcon(), suffix && React.createElement(Box, {
|
|
1475
1475
|
color: "secondary",
|
|
1476
1476
|
background: "secondary",
|
|
1477
|
-
className: classNames(styles$
|
|
1477
|
+
className: classNames(styles$m.suffix, 'ws-nowrap')
|
|
1478
1478
|
}, suffix)));
|
|
1479
1479
|
});
|
|
1480
1480
|
|
|
1481
|
-
var styles$
|
|
1481
|
+
var styles$l = {"popover":"Popover-module_popover__rvS3X","fadeIn":"Popover-module_fadeIn__0btE5","popover-arrow":"Popover-module_popover-arrow__SLtPW"};
|
|
1482
1482
|
|
|
1483
1483
|
// eslint-disable-next-line import/prefer-default-export
|
|
1484
1484
|
var getColumnKeys = function getColumnKeys(columns) {
|
|
@@ -1639,14 +1639,14 @@ var Popover = function Popover(_ref) {
|
|
|
1639
1639
|
attributes = _usePopper.attributes;
|
|
1640
1640
|
var containerBoxProps = _extends({}, contentContainerDefaults, contentContainerProps);
|
|
1641
1641
|
var computedArrowColor = arrowColor || containerBoxProps.background;
|
|
1642
|
-
var arrowClasses = classNames(styles$
|
|
1642
|
+
var arrowClasses = classNames(styles$l['popover-arrow'], "background-color-" + computedArrowColor, {
|
|
1643
1643
|
'display-none': !hasArrow
|
|
1644
1644
|
});
|
|
1645
1645
|
var renderPopperContent = function renderPopperContent() {
|
|
1646
1646
|
var renderPopperBox = function renderPopperBox() {
|
|
1647
1647
|
return React.createElement(Box, _extends({
|
|
1648
1648
|
ref: popperRef,
|
|
1649
|
-
className: classNames(styles$
|
|
1649
|
+
className: classNames(styles$l.popover, className),
|
|
1650
1650
|
style: popperStyles.popper,
|
|
1651
1651
|
role: "dialog",
|
|
1652
1652
|
"aria-label": "Popover",
|
|
@@ -1831,7 +1831,7 @@ var DetailsSummary = function DetailsSummary(_ref) {
|
|
|
1831
1831
|
}), children);
|
|
1832
1832
|
};
|
|
1833
1833
|
|
|
1834
|
-
var styles$
|
|
1834
|
+
var styles$k = {"details-reset":"Details-module_details-reset__HWtSD"};
|
|
1835
1835
|
|
|
1836
1836
|
var _excluded$t = ["children", "className", "display", "isOpen"];
|
|
1837
1837
|
var DetailsBaseComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
@@ -1841,7 +1841,7 @@ var DetailsBaseComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
1841
1841
|
display = _ref$display === void 0 ? 'block' : _ref$display,
|
|
1842
1842
|
isOpen = _ref.isOpen,
|
|
1843
1843
|
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$t);
|
|
1844
|
-
var detailsClasses = classNames(className, styles$
|
|
1844
|
+
var detailsClasses = classNames(className, styles$k['details-reset'], styles$k.details);
|
|
1845
1845
|
return React.createElement(Box, _extends({
|
|
1846
1846
|
as: "details",
|
|
1847
1847
|
className: detailsClasses,
|
|
@@ -1858,7 +1858,7 @@ var Details = /*#__PURE__*/function () {
|
|
|
1858
1858
|
return Details;
|
|
1859
1859
|
}();
|
|
1860
1860
|
|
|
1861
|
-
var styles$
|
|
1861
|
+
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"};
|
|
1862
1862
|
|
|
1863
1863
|
var _excluded$s = ["defaultIsOpen", "open", "onOpenChange", "className", "children"],
|
|
1864
1864
|
_excluded2$2 = ["asChild", "onClick"],
|
|
@@ -1999,8 +1999,8 @@ var Drawer = /*#__PURE__*/React.forwardRef(function (_ref3, ref) {
|
|
|
1999
1999
|
}, [initialFocusRef]);
|
|
2000
2000
|
var dynamicWidth = width;
|
|
2001
2001
|
var dynamicStyle = (_dynamicStyle = {}, _dynamicStyle['--drawer-width'] = dynamicWidth, _dynamicStyle);
|
|
2002
|
-
var overlayClassnames = classNames(styles$
|
|
2003
|
-
var contentClassnames = classNames(styles$
|
|
2002
|
+
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));
|
|
2003
|
+
var contentClassnames = classNames(styles$j['drawer-content'], styles$j[placement], (_classNames2 = {}, _classNames2[styles$j['hide-overlay']] = hideOverlay, _classNames2));
|
|
2004
2004
|
var parentElement = containerRef != null && containerRef.current ? containerRef.current : document.body;
|
|
2005
2005
|
var isDisabledFocusLock = hideOverlay || dangerouslyBypassFocusLock;
|
|
2006
2006
|
var isDisabledRemoveScroll = hideOverlay || dangerouslyBypassScrollLock;
|
|
@@ -2256,7 +2256,7 @@ var RadioInputIcon = function RadioInputIcon(_ref) {
|
|
|
2256
2256
|
}));
|
|
2257
2257
|
};
|
|
2258
2258
|
|
|
2259
|
-
var styles$
|
|
2259
|
+
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"};
|
|
2260
2260
|
|
|
2261
2261
|
var RadioInput = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
2262
2262
|
var _classNames;
|
|
@@ -2280,7 +2280,7 @@ var RadioInput = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
2280
2280
|
_ref$size = _ref.size,
|
|
2281
2281
|
size = _ref$size === void 0 ? 'md' : _ref$size;
|
|
2282
2282
|
var responsiveClasses = classNames.apply(void 0, generateResponsiveClasses('size', size).map(function (c) {
|
|
2283
|
-
return styles$
|
|
2283
|
+
return styles$i[c];
|
|
2284
2284
|
}));
|
|
2285
2285
|
var labelProps = {
|
|
2286
2286
|
inputId: option.id,
|
|
@@ -2289,7 +2289,7 @@ var RadioInput = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
2289
2289
|
isRadioInputLabel: true,
|
|
2290
2290
|
justifyContent: 'center'
|
|
2291
2291
|
};
|
|
2292
|
-
var containerClasses = classNames('hyphen-components__variables__form-control', className, styles$
|
|
2292
|
+
var containerClasses = classNames('hyphen-components__variables__form-control', className, styles$i['radio-container'], responsiveClasses, (_classNames = {}, _classNames[styles$i.hidden] = isHidden, _classNames));
|
|
2293
2293
|
return React.createElement(React.Fragment, null, option && React.createElement(Box, {
|
|
2294
2294
|
className: containerClasses,
|
|
2295
2295
|
key: option.id,
|
|
@@ -2325,7 +2325,7 @@ var RadioInput = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
2325
2325
|
}), option.label && React.createElement(FormLabel, _extends({}, labelProps), option.label)));
|
|
2326
2326
|
});
|
|
2327
2327
|
|
|
2328
|
-
var styles$
|
|
2328
|
+
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-"};
|
|
2329
2329
|
|
|
2330
2330
|
var _excluded$o = ["name", "onChange", "options", "className", "description", "direction", "error", "isDisabled", "isRequired", "onBlur", "onFocus", "requiredIndicator", "size", "title", "value"];
|
|
2331
2331
|
var RadioGroup = function RadioGroup(_ref) {
|
|
@@ -2358,19 +2358,19 @@ var RadioGroup = function RadioGroup(_ref) {
|
|
|
2358
2358
|
_ref$value = _ref.value,
|
|
2359
2359
|
value = _ref$value === void 0 ? undefined : _ref$value,
|
|
2360
2360
|
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$o);
|
|
2361
|
-
var groupClasses = classNames('hyphen-components__variables__form-control', className, (_classNames = {}, _classNames[styles$
|
|
2361
|
+
var groupClasses = classNames('hyphen-components__variables__form-control', className, (_classNames = {}, _classNames[styles$h.loading] = error, _classNames));
|
|
2362
2362
|
return React.createElement("div", _extends({
|
|
2363
|
-
className: classNames(styles$
|
|
2363
|
+
className: classNames(styles$h['radio-group'], groupClasses)
|
|
2364
2364
|
}, restProps), React.createElement("fieldset", {
|
|
2365
|
-
className: styles$
|
|
2365
|
+
className: styles$h.fieldset
|
|
2366
2366
|
}, (title || description) && React.createElement("legend", {
|
|
2367
|
-
className: styles$
|
|
2367
|
+
className: styles$h.legend
|
|
2368
2368
|
}, title, isRequired && React.createElement("span", null, requiredIndicator), description && React.createElement("div", {
|
|
2369
|
-
className: styles$
|
|
2369
|
+
className: styles$h.description
|
|
2370
2370
|
}, description)), React.createElement(Box, {
|
|
2371
2371
|
direction: direction,
|
|
2372
2372
|
gap: "sm",
|
|
2373
|
-
className: styles$
|
|
2373
|
+
className: styles$h.options
|
|
2374
2374
|
}, options && options.map(function (option) {
|
|
2375
2375
|
return React.createElement(RadioInput, {
|
|
2376
2376
|
key: option.id,
|
|
@@ -2410,7 +2410,7 @@ var FormikRadioGroup = function FormikRadioGroup(_ref) {
|
|
|
2410
2410
|
}));
|
|
2411
2411
|
};
|
|
2412
2412
|
|
|
2413
|
-
var styles$
|
|
2413
|
+
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"};
|
|
2414
2414
|
|
|
2415
2415
|
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"];
|
|
2416
2416
|
function SelectInput(props) {
|
|
@@ -2473,13 +2473,13 @@ function SelectInput(props) {
|
|
|
2473
2473
|
};
|
|
2474
2474
|
var responsiveClasses = generateResponsiveClasses('size', size);
|
|
2475
2475
|
var wrapperClasses = classNames.apply(void 0, ['hyphen-components__variables__form-control', 'select-input-wrapper', className].concat(responsiveClasses.map(function (c) {
|
|
2476
|
-
return styles$
|
|
2477
|
-
}), [(_ref = {}, _ref[styles$
|
|
2478
|
-
var inputClasses = classNames('react-select', (_classNames = {}, _classNames[styles$
|
|
2476
|
+
return styles$g[c];
|
|
2477
|
+
}), [(_ref = {}, _ref[styles$g.disabled] = isDisabled, _ref)]));
|
|
2478
|
+
var inputClasses = classNames('react-select', (_classNames = {}, _classNames[styles$g.error] = error, _classNames));
|
|
2479
2479
|
var labelProps = {
|
|
2480
2480
|
inputId: id,
|
|
2481
2481
|
helpText: helpText,
|
|
2482
|
-
className: styles$
|
|
2482
|
+
className: styles$g['select-input-label'],
|
|
2483
2483
|
isDisabled: isDisabled,
|
|
2484
2484
|
isFieldRequired: isRequired,
|
|
2485
2485
|
requiredIndicator: requiredIndicator
|
|
@@ -2566,7 +2566,7 @@ var FormikSelectInput = function FormikSelectInput(_ref) {
|
|
|
2566
2566
|
}, props));
|
|
2567
2567
|
};
|
|
2568
2568
|
|
|
2569
|
-
var styles$
|
|
2569
|
+
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"};
|
|
2570
2570
|
|
|
2571
2571
|
var SelectInputInset = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
2572
2572
|
var _ref2;
|
|
@@ -2608,10 +2608,10 @@ var SelectInputInset = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
2608
2608
|
};
|
|
2609
2609
|
var optionsWithPlaceholder = [_extends({}, placeholderOption)].concat(options);
|
|
2610
2610
|
var responsiveClasses = generateResponsiveClasses('size', size);
|
|
2611
|
-
var inputWrapperClasses = classNames.apply(void 0, ['hyphen-components__variables__form-control', styles$
|
|
2612
|
-
return styles$
|
|
2613
|
-
}), [(_ref2 = {}, _ref2[styles$
|
|
2614
|
-
var clearBtnClasses = classNames(styles$
|
|
2611
|
+
var inputWrapperClasses = classNames.apply(void 0, ['hyphen-components__variables__form-control', styles$f['text-input-wrapper']].concat(responsiveClasses.map(function (c) {
|
|
2612
|
+
return styles$f[c];
|
|
2613
|
+
}), [(_ref2 = {}, _ref2[styles$f.error] = error, _ref2[styles$f.disabled] = isDisabled, _ref2[styles$f['is-clearable']] = onClear, _ref2)]));
|
|
2614
|
+
var clearBtnClasses = classNames(styles$f['clear-button'], styles$f.md);
|
|
2615
2615
|
var renderClearIcon = function renderClearIcon() {
|
|
2616
2616
|
var handleKeyPress = function handleKeyPress(event) {
|
|
2617
2617
|
if (event.keyCode === 13 && onClear) onClear(event);
|
|
@@ -2666,7 +2666,7 @@ var SelectInputInset = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
2666
2666
|
}, option.label);
|
|
2667
2667
|
})), !!onClear && !!value && renderClearIcon(), React.createElement("label", {
|
|
2668
2668
|
htmlFor: id,
|
|
2669
|
-
className: styles$
|
|
2669
|
+
className: styles$f['select-input-label'],
|
|
2670
2670
|
id: id + "Label"
|
|
2671
2671
|
}, label, isRequired && requiredIndicator && React.createElement("span", null, requiredIndicator))), helpText && React.createElement(HelpText, null, helpText), error && error !== true && React.createElement(InputValidationMessage, null, error));
|
|
2672
2672
|
});
|
|
@@ -2698,7 +2698,7 @@ var FormikSelectInputInset = function FormikSelectInputInset(_ref) {
|
|
|
2698
2698
|
}));
|
|
2699
2699
|
};
|
|
2700
2700
|
|
|
2701
|
-
var styles$
|
|
2701
|
+
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"};
|
|
2702
2702
|
|
|
2703
2703
|
var TextareaInputInset = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
2704
2704
|
var _ref2, _classNames;
|
|
@@ -2741,9 +2741,9 @@ var TextareaInputInset = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
2741
2741
|
_ref$type = _ref.type,
|
|
2742
2742
|
type = _ref$type === void 0 ? 'text' : _ref$type;
|
|
2743
2743
|
var responsiveClasses = generateResponsiveClasses('size', size);
|
|
2744
|
-
var inputWrapperClasses = classNames.apply(void 0, ['hyphen-components__variables__form-control', styles$
|
|
2745
|
-
return styles$
|
|
2746
|
-
}), [(_ref2 = {}, _ref2[styles$
|
|
2744
|
+
var inputWrapperClasses = classNames.apply(void 0, ['hyphen-components__variables__form-control', styles$e['text-input-wrapper']].concat(responsiveClasses.map(function (c) {
|
|
2745
|
+
return styles$e[c];
|
|
2746
|
+
}), [(_ref2 = {}, _ref2[styles$e.disabled] = isDisabled, _ref2)]));
|
|
2747
2747
|
var computedInputProps = _extends({}, inputProps, {
|
|
2748
2748
|
// These are spread first so that we don't have top level props overwritten by the user.
|
|
2749
2749
|
'aria-required': isRequired,
|
|
@@ -2752,7 +2752,7 @@ var TextareaInputInset = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
2752
2752
|
'aria-labelledby': label ? id + "Label" : undefined,
|
|
2753
2753
|
autoComplete: getAutoCompleteValue(autoComplete),
|
|
2754
2754
|
autoFocus: autoFocus,
|
|
2755
|
-
className: classNames(styles$
|
|
2755
|
+
className: classNames(styles$e["textarea-resize-" + resize], (_classNames = {}, _classNames[styles$e.error] = error, _classNames)),
|
|
2756
2756
|
disabled: isDisabled,
|
|
2757
2757
|
id: id,
|
|
2758
2758
|
maxLength: maxLength,
|
|
@@ -2778,7 +2778,7 @@ var TextareaInputInset = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
2778
2778
|
as: "textarea"
|
|
2779
2779
|
}, computedInputProps)), React.createElement("label", {
|
|
2780
2780
|
htmlFor: id,
|
|
2781
|
-
className: styles$
|
|
2781
|
+
className: styles$e['text-input-label'],
|
|
2782
2782
|
id: id + "Label"
|
|
2783
2783
|
}, label, isRequired && requiredIndicator && React.createElement("span", null, requiredIndicator))), helpText && React.createElement(HelpText, null, helpText), error && error !== true && React.createElement(InputValidationMessage, null, error));
|
|
2784
2784
|
});
|
|
@@ -2808,7 +2808,7 @@ var FormikTextareaInputInset = function FormikTextareaInputInset(_ref) {
|
|
|
2808
2808
|
}));
|
|
2809
2809
|
};
|
|
2810
2810
|
|
|
2811
|
-
var styles$
|
|
2811
|
+
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"};
|
|
2812
2812
|
|
|
2813
2813
|
var TextInputInset = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
2814
2814
|
var _ref2;
|
|
@@ -2852,10 +2852,10 @@ var TextInputInset = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
2852
2852
|
_ref$type = _ref.type,
|
|
2853
2853
|
type = _ref$type === void 0 ? 'text' : _ref$type;
|
|
2854
2854
|
var responsiveClasses = generateResponsiveClasses('size', size);
|
|
2855
|
-
var inputWrapperClasses = classNames.apply(void 0, ['hyphen-components__variables__form-control', styles$
|
|
2856
|
-
return styles$
|
|
2857
|
-
}), [(_ref2 = {}, _ref2[styles$
|
|
2858
|
-
var clearBtnClasses = classNames(styles$
|
|
2855
|
+
var inputWrapperClasses = classNames.apply(void 0, ['hyphen-components__variables__form-control', styles$d['text-input-wrapper']].concat(responsiveClasses.map(function (c) {
|
|
2856
|
+
return styles$d[c];
|
|
2857
|
+
}), [(_ref2 = {}, _ref2[styles$d.error] = error, _ref2[styles$d.disabled] = isDisabled, _ref2[styles$d['is-clearable']] = onClear, _ref2)]));
|
|
2858
|
+
var clearBtnClasses = classNames(styles$d['clear-button'], styles$d.md);
|
|
2859
2859
|
var renderClearIcon = function renderClearIcon() {
|
|
2860
2860
|
var handleKeyPress = function handleKeyPress(event) {
|
|
2861
2861
|
if (event.keyCode === 13 && onClear) onClear(event);
|
|
@@ -2904,7 +2904,7 @@ var TextInputInset = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
2904
2904
|
alignItems: "center",
|
|
2905
2905
|
justifyContent: "center",
|
|
2906
2906
|
background: "secondary",
|
|
2907
|
-
className: classNames(styles$
|
|
2907
|
+
className: classNames(styles$d.prefix, 'ws-nowrap')
|
|
2908
2908
|
}, prefix), React.createElement(Box, {
|
|
2909
2909
|
direction: "row",
|
|
2910
2910
|
position: "relative",
|
|
@@ -2914,12 +2914,12 @@ var TextInputInset = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
2914
2914
|
as: "input"
|
|
2915
2915
|
}, computedInputProps)), !!onClear && !!value && renderClearIcon(), React.createElement("label", {
|
|
2916
2916
|
htmlFor: id,
|
|
2917
|
-
className: styles$
|
|
2917
|
+
className: styles$d['text-input-label'],
|
|
2918
2918
|
id: id + "Label"
|
|
2919
2919
|
}, label, isRequired && requiredIndicator && React.createElement("span", null, requiredIndicator))), suffix && React.createElement(Box, {
|
|
2920
2920
|
color: "base",
|
|
2921
2921
|
background: "secondary",
|
|
2922
|
-
className: classNames(styles$
|
|
2922
|
+
className: classNames(styles$d.suffix, 'ws-nowrap')
|
|
2923
2923
|
}, suffix)), helpText && React.createElement(HelpText, null, helpText), error && error !== true && React.createElement(InputValidationMessage, null, error));
|
|
2924
2924
|
});
|
|
2925
2925
|
|
|
@@ -2948,7 +2948,7 @@ var FormikTextInputInset = function FormikTextInputInset(_ref) {
|
|
|
2948
2948
|
}));
|
|
2949
2949
|
};
|
|
2950
2950
|
|
|
2951
|
-
var styles$
|
|
2951
|
+
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"};
|
|
2952
2952
|
|
|
2953
2953
|
var _excluded$h = ["autoFocus", "label", "hideLabel", "helpText", "error", "id", "isDisabled", "isRequired", "name", "value", "options", "onChange", "placeholder", "requiredIndicator", "size"];
|
|
2954
2954
|
var SelectInputNative = function SelectInputNative(_ref) {
|
|
@@ -2979,9 +2979,9 @@ var SelectInputNative = function SelectInputNative(_ref) {
|
|
|
2979
2979
|
};
|
|
2980
2980
|
var optionsWithPlaceholder = [_extends({}, placeholderOption)].concat(options);
|
|
2981
2981
|
var responsiveClasses = generateResponsiveClasses('size', size);
|
|
2982
|
-
var selectWrapperClasses = classNames.apply(void 0, ['hyphen-components__variables__form-control', styles$
|
|
2983
|
-
return styles$
|
|
2984
|
-
}), [(_ref2 = {}, _ref2[styles$
|
|
2982
|
+
var selectWrapperClasses = classNames.apply(void 0, ['hyphen-components__variables__form-control', styles$c['select-input-native-wrapper']].concat(responsiveClasses.map(function (className) {
|
|
2983
|
+
return styles$c[className];
|
|
2984
|
+
}), [(_ref2 = {}, _ref2[styles$c.disabled] = isDisabled, _ref2[styles$c.error] = error, _ref2)]));
|
|
2985
2985
|
return React.createElement(FormControl, _extends({
|
|
2986
2986
|
label: label,
|
|
2987
2987
|
hideLabel: hideLabel,
|
|
@@ -3070,7 +3070,7 @@ var FormikTextInput = function FormikTextInput(_ref) {
|
|
|
3070
3070
|
}));
|
|
3071
3071
|
};
|
|
3072
3072
|
|
|
3073
|
-
var styles$
|
|
3073
|
+
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"};
|
|
3074
3074
|
|
|
3075
3075
|
var _excluded$e = ["id", "label", "onChange", "value", "autoComplete", "autoFocus", "className", "error", "helpText", "hideLabel", "isDisabled", "isRequired", "maxLength", "name", "onBlur", "onFocus", "placeholder", "requiredIndicator", "resize", "rows", "size"];
|
|
3076
3076
|
var TextareaInput = function TextareaInput(_ref) {
|
|
@@ -3114,9 +3114,9 @@ var TextareaInput = function TextareaInput(_ref) {
|
|
|
3114
3114
|
size = _ref$size === void 0 ? 'md' : _ref$size,
|
|
3115
3115
|
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$e);
|
|
3116
3116
|
var responsiveClasses = generateResponsiveClasses('size', size);
|
|
3117
|
-
var inputWrapperClasses = classNames.apply(void 0, ['hyphen-components__variables__form-control', styles$
|
|
3118
|
-
return styles$
|
|
3119
|
-
}), [(_ref2 = {}, _ref2[styles$
|
|
3117
|
+
var inputWrapperClasses = classNames.apply(void 0, ['hyphen-components__variables__form-control', styles$b['textarea-input-wrapper']].concat(responsiveClasses.map(function (c) {
|
|
3118
|
+
return styles$b[c];
|
|
3119
|
+
}), [(_ref2 = {}, _ref2[styles$b.error] = error, _ref2[styles$b.disabled] = isDisabled, _ref2)]));
|
|
3120
3120
|
var inputProps = {
|
|
3121
3121
|
'aria-required': isRequired,
|
|
3122
3122
|
'aria-invalid': !!error,
|
|
@@ -3124,7 +3124,7 @@ var TextareaInput = function TextareaInput(_ref) {
|
|
|
3124
3124
|
'aria-labelledby': label && !hideLabel ? id + "Label" : undefined,
|
|
3125
3125
|
autoComplete: getAutoCompleteValue(autoComplete),
|
|
3126
3126
|
autoFocus: autoFocus,
|
|
3127
|
-
className: classNames(styles$
|
|
3127
|
+
className: classNames(styles$b["textarea-resize-" + resize]),
|
|
3128
3128
|
disabled: isDisabled,
|
|
3129
3129
|
id: id,
|
|
3130
3130
|
maxLength: maxLength,
|
|
@@ -3140,7 +3140,7 @@ var TextareaInput = function TextareaInput(_ref) {
|
|
|
3140
3140
|
var labelProps = {
|
|
3141
3141
|
inputId: id,
|
|
3142
3142
|
helpText: helpText,
|
|
3143
|
-
className: styles$
|
|
3143
|
+
className: styles$b['textarea-input-label'],
|
|
3144
3144
|
isDisabled: isDisabled,
|
|
3145
3145
|
isFieldRequired: isRequired,
|
|
3146
3146
|
requiredIndicator: requiredIndicator
|
|
@@ -3326,7 +3326,7 @@ var FormikTimePickerNative = function FormikTimePickerNative(_ref) {
|
|
|
3326
3326
|
}));
|
|
3327
3327
|
};
|
|
3328
3328
|
|
|
3329
|
-
var styles$
|
|
3329
|
+
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"};
|
|
3330
3330
|
|
|
3331
3331
|
var Toggle = function Toggle(_ref) {
|
|
3332
3332
|
var _classNames, _ref2;
|
|
@@ -3362,12 +3362,12 @@ var Toggle = function Toggle(_ref) {
|
|
|
3362
3362
|
var handleFocus = function handleFocus(event) {
|
|
3363
3363
|
if (onFocus) onFocus(event);
|
|
3364
3364
|
};
|
|
3365
|
-
var wrapperClasses = classNames('hyphen-components__variables__form-control', (_classNames = {}, _classNames[styles$
|
|
3366
|
-
var trackClasses = classNames.apply(void 0, [styles$
|
|
3367
|
-
return styles$
|
|
3368
|
-
}), [(_ref2 = {}, _ref2[styles$
|
|
3369
|
-
var thumbClasses = classNames.apply(void 0, [styles$
|
|
3370
|
-
return styles$
|
|
3365
|
+
var wrapperClasses = classNames('hyphen-components__variables__form-control', (_classNames = {}, _classNames[styles$a.disabled] = isDisabled, _classNames));
|
|
3366
|
+
var trackClasses = classNames.apply(void 0, [styles$a['toggle-track']].concat(generateResponsiveClasses('track-size', size).map(function (c) {
|
|
3367
|
+
return styles$a[c];
|
|
3368
|
+
}), [(_ref2 = {}, _ref2[styles$a.error] = error, _ref2)]));
|
|
3369
|
+
var thumbClasses = classNames.apply(void 0, [styles$a['toggle-thumb']].concat(generateResponsiveClasses('thumb-size', size).map(function (c) {
|
|
3370
|
+
return styles$a[c];
|
|
3371
3371
|
})));
|
|
3372
3372
|
var inputProps = {
|
|
3373
3373
|
'aria-required': isRequired,
|
|
@@ -3382,7 +3382,7 @@ var Toggle = function Toggle(_ref) {
|
|
|
3382
3382
|
onFocus: handleFocus,
|
|
3383
3383
|
required: isRequired,
|
|
3384
3384
|
type: 'checkbox',
|
|
3385
|
-
className: styles$
|
|
3385
|
+
className: styles$a['toggle-input']
|
|
3386
3386
|
};
|
|
3387
3387
|
var labelProps = {
|
|
3388
3388
|
inputId: id,
|
|
@@ -3513,7 +3513,7 @@ var ModalBody = function ModalBody(_ref) {
|
|
|
3513
3513
|
}, restProps), children);
|
|
3514
3514
|
};
|
|
3515
3515
|
|
|
3516
|
-
var styles$
|
|
3516
|
+
var styles$9 = {"modal-close":"Modal-module_modal-close__1YmMa","modal":"Modal-module_modal__yNG-7","modal-content":"Modal-module_modal-content__GMtBm"};
|
|
3517
3517
|
|
|
3518
3518
|
var _excluded$5 = ["ariaLabel", "ariaLabelledBy", "allowPinchZoom", "children", "className", "containerRef", "fullScreenMobile", "initialFocusRef", "isOpen", "maxWidth", "onDismiss", "overflow"];
|
|
3519
3519
|
var ModalBaseComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
@@ -3544,10 +3544,10 @@ var ModalBaseComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
3544
3544
|
}, 100);
|
|
3545
3545
|
}, [initialFocusRef]);
|
|
3546
3546
|
var maxWidthCss = getDimensionCss('mw', maxWidth);
|
|
3547
|
-
var overlayClassnames = classNames(styles$
|
|
3547
|
+
var overlayClassnames = classNames(styles$9.overlay, styles$9.modal, {
|
|
3548
3548
|
fullscreen: fullScreenMobile
|
|
3549
3549
|
});
|
|
3550
|
-
var contentClassnames = classNames(styles$
|
|
3550
|
+
var contentClassnames = classNames(styles$9['modal-content'], className, maxWidthCss.classes, (_classNames = {}, _classNames["overflow-" + overflow] = overflow, _classNames));
|
|
3551
3551
|
if (!isOpen) return null;
|
|
3552
3552
|
var parentElement = containerRef != null && containerRef.current ? containerRef.current : undefined;
|
|
3553
3553
|
return React.createElement(FocusLock, {
|
|
@@ -3759,7 +3759,7 @@ var Pagination = function Pagination(_ref) {
|
|
|
3759
3759
|
}, isTotalVisible && activeListRangeText));
|
|
3760
3760
|
};
|
|
3761
3761
|
|
|
3762
|
-
var styles$
|
|
3762
|
+
var styles$8 = {"slider":"RangeInput-module_slider__Z6D68","disabled":"RangeInput-module_disabled__gyu72"};
|
|
3763
3763
|
|
|
3764
3764
|
var _excluded$4 = ["value", "max", "id", "onChange", "className", "isDisabled"];
|
|
3765
3765
|
var RangeInput = function RangeInput(_ref) {
|
|
@@ -3784,7 +3784,7 @@ var RangeInput = function RangeInput(_ref) {
|
|
|
3784
3784
|
"aria-valuemax": max,
|
|
3785
3785
|
"aria-valuenow": value,
|
|
3786
3786
|
"aria-label": "range input",
|
|
3787
|
-
className: classNames(styles$
|
|
3787
|
+
className: classNames(styles$8.slider, className, (_classNames = {}, _classNames[styles$8.disabled] = isDisabled, _classNames)),
|
|
3788
3788
|
onChange: onChange,
|
|
3789
3789
|
disabled: isDisabled,
|
|
3790
3790
|
style: {
|
|
@@ -3874,7 +3874,7 @@ function useIsMobile() {
|
|
|
3874
3874
|
return !!isMobile;
|
|
3875
3875
|
}
|
|
3876
3876
|
|
|
3877
|
-
var styles$
|
|
3877
|
+
var styles$7 = {"rail":"Sidebar-module_rail__nWu0Q"};
|
|
3878
3878
|
|
|
3879
3879
|
var _excluded$3 = ["defaultOpen", "open", "onOpenChange", "className", "style", "children"],
|
|
3880
3880
|
_excluded2 = ["side", "collapsible", "className", "children"],
|
|
@@ -4264,7 +4264,7 @@ var SidebarRail = /*#__PURE__*/React.forwardRef(function (_ref17, ref) {
|
|
|
4264
4264
|
tabIndex: -1,
|
|
4265
4265
|
onClick: toggleSidebar,
|
|
4266
4266
|
title: "Toggle Sidebar [",
|
|
4267
|
-
className: classNames(styles$
|
|
4267
|
+
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', {
|
|
4268
4268
|
'cursor-w-resize': open,
|
|
4269
4269
|
'cursor-e-resize': !open
|
|
4270
4270
|
}, className),
|
|
@@ -4282,6 +4282,10 @@ var SidebarRail = /*#__PURE__*/React.forwardRef(function (_ref17, ref) {
|
|
|
4282
4282
|
padding: "xs",
|
|
4283
4283
|
margin: "0",
|
|
4284
4284
|
shadow: "xs",
|
|
4285
|
+
width: "3xl",
|
|
4286
|
+
height: "3xl",
|
|
4287
|
+
alignItems: "center",
|
|
4288
|
+
justifyContent: "center",
|
|
4285
4289
|
className: classNames('hover-child', {
|
|
4286
4290
|
'cursor-w-resize': open,
|
|
4287
4291
|
'cursor-e-resize': !open
|
|
@@ -4306,13 +4310,13 @@ var SidebarMenuBadge = /*#__PURE__*/React.forwardRef(function (_ref18, ref) {
|
|
|
4306
4310
|
});
|
|
4307
4311
|
SidebarMenuBadge.displayName = 'SidebarMenuBadge';
|
|
4308
4312
|
|
|
4309
|
-
var styles$
|
|
4313
|
+
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"};
|
|
4310
4314
|
|
|
4311
|
-
var styles$
|
|
4315
|
+
var styles$5 = {"table-body":"TableBody-module_table-body__Y5WbD","striped":"TableBody-module_striped__5MlEr","hover":"TableBody-module_hover__2CRgY"};
|
|
4312
4316
|
|
|
4313
|
-
var styles$
|
|
4317
|
+
var styles$4 = {"table-row":"TableRow-module_table-row__-Y9FQ","hoverable":"TableRow-module_hoverable__53-l9"};
|
|
4314
4318
|
|
|
4315
|
-
var styles$
|
|
4319
|
+
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"};
|
|
4316
4320
|
|
|
4317
4321
|
var TableBodyCell = function TableBodyCell(_ref) {
|
|
4318
4322
|
var _classNames;
|
|
@@ -4335,7 +4339,7 @@ var TableBodyCell = function TableBodyCell(_ref) {
|
|
|
4335
4339
|
_ref$width = _ref.width,
|
|
4336
4340
|
width = _ref$width === void 0 ? undefined : _ref$width;
|
|
4337
4341
|
var columnIsSticky = sticky === 'left' || sticky === 'right';
|
|
4338
|
-
var tableCellClasses = classNames(styles$
|
|
4342
|
+
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);
|
|
4339
4343
|
return React.createElement(Box, {
|
|
4340
4344
|
as: columnIsSticky ? 'th' : 'td',
|
|
4341
4345
|
className: tableCellClasses,
|
|
@@ -4349,7 +4353,7 @@ var TableBodyCell = function TableBodyCell(_ref) {
|
|
|
4349
4353
|
}, children === null || typeof children === 'undefined' || children === '' ? emptyCellPlaceholder : children);
|
|
4350
4354
|
};
|
|
4351
4355
|
|
|
4352
|
-
var styles$
|
|
4356
|
+
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"};
|
|
4353
4357
|
|
|
4354
4358
|
// eslint-disable-line import/prefer-default-export
|
|
4355
4359
|
var TableHeaderCell = function TableHeaderCell(_ref) {
|
|
@@ -4408,7 +4412,7 @@ var TableHeaderCell = function TableHeaderCell(_ref) {
|
|
|
4408
4412
|
});
|
|
4409
4413
|
};
|
|
4410
4414
|
return React.createElement("span", {
|
|
4411
|
-
className: styles$
|
|
4415
|
+
className: styles$2['sort-icon']
|
|
4412
4416
|
}, renderArrows());
|
|
4413
4417
|
};
|
|
4414
4418
|
var handleKeyPress = function handleKeyPress(event) {
|
|
@@ -4429,7 +4433,7 @@ var TableHeaderCell = function TableHeaderCell(_ref) {
|
|
|
4429
4433
|
});
|
|
4430
4434
|
onSort(eventWithKey);
|
|
4431
4435
|
};
|
|
4432
|
-
var tableHeaderClasses = classNames(styles$
|
|
4436
|
+
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);
|
|
4433
4437
|
return React.createElement(Box, {
|
|
4434
4438
|
as: "th",
|
|
4435
4439
|
display: "table-cell",
|
|
@@ -4441,7 +4445,7 @@ var TableHeaderCell = function TableHeaderCell(_ref) {
|
|
|
4441
4445
|
onKeyDown: handleKeyPress,
|
|
4442
4446
|
scope: "col"
|
|
4443
4447
|
}, React.createElement("div", {
|
|
4444
|
-
className: styles$
|
|
4448
|
+
className: styles$2.heading
|
|
4445
4449
|
}, column.heading, isSortable && renderIcon()));
|
|
4446
4450
|
};
|
|
4447
4451
|
|
|
@@ -4474,7 +4478,7 @@ var TableRow = function TableRow(_ref) {
|
|
|
4474
4478
|
rowIndex = _ref$rowIndex === void 0 ? undefined : _ref$rowIndex,
|
|
4475
4479
|
_ref$truncateOverflow = _ref.truncateOverflow,
|
|
4476
4480
|
truncateOverflow = _ref$truncateOverflow === void 0 ? false : _ref$truncateOverflow;
|
|
4477
|
-
var tableRowClasses = classNames(styles$
|
|
4481
|
+
var tableRowClasses = classNames(styles$4['table-row'], (_classNames = {}, _classNames[styles$4.hoverable] = isHoverable, _classNames), className);
|
|
4478
4482
|
var renderCellContent = function renderCellContent(column) {
|
|
4479
4483
|
if (column.render) {
|
|
4480
4484
|
var cellValue = column.dataKey && row ? row[column.dataKey] : undefined;
|
|
@@ -4543,7 +4547,7 @@ var TableBody = function TableBody(_ref) {
|
|
|
4543
4547
|
isStriped = _ref$isStriped === void 0 ? false : _ref$isStriped,
|
|
4544
4548
|
_ref$truncateOverflow = _ref.truncateOverflow,
|
|
4545
4549
|
truncateOverflow = _ref$truncateOverflow === void 0 ? false : _ref$truncateOverflow;
|
|
4546
|
-
var tableBodyClasses = classNames(styles$
|
|
4550
|
+
var tableBodyClasses = classNames(styles$5['table-body'], (_classNames = {}, _classNames[styles$5.striped] = isStriped, _classNames[styles$5.hover] = hoverableRows, _classNames), className);
|
|
4547
4551
|
return React.createElement("tbody", {
|
|
4548
4552
|
className: tableBodyClasses
|
|
4549
4553
|
}, rows.map(function (row, rowIndex) {
|
|
@@ -4628,13 +4632,13 @@ var Table = function Table(_ref) {
|
|
|
4628
4632
|
useFixedTableLayout = _ref$useFixedTableLay === void 0 ? false : _ref$useFixedTableLay,
|
|
4629
4633
|
_ref$truncateOverflow = _ref.truncateOverflow,
|
|
4630
4634
|
truncateOverflow = _ref$truncateOverflow === void 0 ? false : _ref$truncateOverflow;
|
|
4631
|
-
var containerClasses = classNames(styles$
|
|
4632
|
-
var scrollContainerClasses = classNames(styles$
|
|
4633
|
-
var tableClasses = classNames(styles$
|
|
4635
|
+
var containerClasses = classNames(styles$6.container, (_classNames = {}, _classNames[styles$6['full-height']] = !!(isScrollable != null && isScrollable.y), _classNames));
|
|
4636
|
+
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);
|
|
4637
|
+
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));
|
|
4634
4638
|
return React.createElement("div", {
|
|
4635
4639
|
className: containerClasses
|
|
4636
4640
|
}, isLoading && React.createElement("div", {
|
|
4637
|
-
className: styles$
|
|
4641
|
+
className: styles$6['loading-mask']
|
|
4638
4642
|
}, React.createElement(Spinner, {
|
|
4639
4643
|
size: "xl"
|
|
4640
4644
|
})), React.createElement("div", {
|
|
@@ -4709,13 +4713,13 @@ function ThemeProvider(_ref) {
|
|
|
4709
4713
|
}), children);
|
|
4710
4714
|
}
|
|
4711
4715
|
|
|
4712
|
-
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"};
|
|
4716
|
+
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"};
|
|
4713
4717
|
|
|
4714
4718
|
var getAnimationClass = function getAnimationClass(position, visible) {
|
|
4715
4719
|
var verticalPosition = position.includes('top') ? 'top' : 'bottom';
|
|
4716
4720
|
var horizontalPosition = position.includes('left') ? 'left' : 'right';
|
|
4717
4721
|
var isCentered = position.includes('center');
|
|
4718
|
-
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)]],
|
|
4722
|
+
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)]],
|
|
4719
4723
|
enter = _ref[0],
|
|
4720
4724
|
exit = _ref[1];
|
|
4721
4725
|
return visible ? enter : exit;
|
|
@@ -4749,7 +4753,7 @@ var renderDismissIcon = function renderDismissIcon(toast, onDismiss) {
|
|
|
4749
4753
|
return React.createElement(Box, {
|
|
4750
4754
|
as: "button",
|
|
4751
4755
|
borderWidth: "0",
|
|
4752
|
-
className: styles['toast-dismiss'],
|
|
4756
|
+
className: styles$1['toast-dismiss'],
|
|
4753
4757
|
padding: "0 0 0 sm",
|
|
4754
4758
|
alignItems: "center",
|
|
4755
4759
|
justifyContent: "center",
|
|
@@ -4780,9 +4784,9 @@ var ToastNotification = /*#__PURE__*/React.memo(function (_ref2) {
|
|
|
4780
4784
|
}
|
|
4781
4785
|
}, toast.ariaProps), resolveValue(toast.message, toast));
|
|
4782
4786
|
var animationClass = toast != null && toast.height ? getAnimationClass(toast.position || position, toast.visible) : undefined;
|
|
4783
|
-
var classes = classNames(toast.className, styles['toast-notification'], animationClass, (_classNames = {
|
|
4787
|
+
var classes = classNames(toast.className, styles$1['toast-notification'], animationClass, (_classNames = {
|
|
4784
4788
|
'toast-notification--not-visible': !toast.visible
|
|
4785
|
-
}, _classNames[styles['toast-error']] = toast.type === 'error', _classNames));
|
|
4789
|
+
}, _classNames[styles$1['toast-error']] = toast.type === 'error', _classNames));
|
|
4786
4790
|
return React.createElement(Box, {
|
|
4787
4791
|
alignItems: "center",
|
|
4788
4792
|
maxWidth: "300px",
|
|
@@ -5254,6 +5258,8 @@ var ToastContainer = function ToastContainer(_ref) {
|
|
|
5254
5258
|
}));
|
|
5255
5259
|
};
|
|
5256
5260
|
|
|
5261
|
+
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"};
|
|
5262
|
+
|
|
5257
5263
|
var _excluded = ["className", "sideOffset"];
|
|
5258
5264
|
var TooltipProvider = TooltipPrimitive__namespace.Provider;
|
|
5259
5265
|
var Tooltip = TooltipPrimitive__namespace.Root;
|
|
@@ -5267,7 +5273,7 @@ var TooltipContent = /*#__PURE__*/React__namespace.forwardRef(function (_ref, re
|
|
|
5267
5273
|
return React__namespace.createElement(TooltipPrimitive__namespace.Content, _extends({
|
|
5268
5274
|
ref: ref,
|
|
5269
5275
|
sideOffset: sideOffset,
|
|
5270
|
-
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)
|
|
5276
|
+
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)
|
|
5271
5277
|
}, props));
|
|
5272
5278
|
});
|
|
5273
5279
|
TooltipContent.displayName = TooltipPrimitive__namespace.Content.displayName;
|