@hyphen/hyphen-components 4.2.0 → 4.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/css/index.css +1 -0
- package/dist/hyphen-components.cjs.development.js +119 -118
- 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 +119 -118
- package/dist/hyphen-components.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Sidebar/Sidebar.module.scss +9 -0
- package/src/components/Sidebar/Sidebar.tsx +10 -12
|
@@ -273,7 +273,7 @@ Component, props, getDefault) {
|
|
|
273
273
|
return defaultProps.as || 'div';
|
|
274
274
|
}
|
|
275
275
|
|
|
276
|
-
var styles$
|
|
276
|
+
var styles$x = {"box-transition":"Box-module_box-transition__eQx8C"};
|
|
277
277
|
|
|
278
278
|
var _excluded$M = ["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"];
|
|
279
279
|
/**
|
|
@@ -411,7 +411,7 @@ var Box = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
411
411
|
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 = {
|
|
412
412
|
'flex-wrap': isFlexBox && wrap,
|
|
413
413
|
'flex-nowrap': isFlexBox && wrap === false
|
|
414
|
-
}, _ref3["background-color-" + background] = background, _ref3["font-color-" + color] = color, _ref3["border-color-" + borderColor] = borderColor, _ref3["cursor-" + cursor] = cursor, _ref3[styles$
|
|
414
|
+
}, _ref3["background-color-" + background] = background, _ref3["font-color-" + color] = color, _ref3["border-color-" + borderColor] = borderColor, _ref3["cursor-" + cursor] = cursor, _ref3[styles$x['box-transition']] = hover || focus, _ref3)]));
|
|
415
415
|
var boxStyles = _extends({}, style, heightCss.styles, maxHeightCss.styles, maxWidthCss.styles, widthCss.styles, minHeightCss.styles, minWidthCss.styles);
|
|
416
416
|
/**
|
|
417
417
|
* Creates an object that maps the flex direction to either `right` or `bottom`
|
|
@@ -538,7 +538,7 @@ var Icon = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
538
538
|
}, "???");
|
|
539
539
|
});
|
|
540
540
|
|
|
541
|
-
var styles$
|
|
541
|
+
var styles$w = {"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"};
|
|
542
542
|
|
|
543
543
|
// eslint-disable-next-line import/prefer-default-export
|
|
544
544
|
var ALERT_ICONS_MAP = {
|
|
@@ -589,7 +589,7 @@ var Alert = function Alert(_ref) {
|
|
|
589
589
|
var renderAlertIcon = function renderAlertIcon() {
|
|
590
590
|
return React.createElement(Box, {
|
|
591
591
|
fontSize: "md",
|
|
592
|
-
className: styles$
|
|
592
|
+
className: styles$w["alert__icon__" + variant]
|
|
593
593
|
}, React.createElement(Icon, {
|
|
594
594
|
name: ALERT_ICONS_MAP[variant].icon,
|
|
595
595
|
"data-testid": "alert-icon-" + variant + "-test-id"
|
|
@@ -602,7 +602,7 @@ var Alert = function Alert(_ref) {
|
|
|
602
602
|
return React.createElement(Box, {
|
|
603
603
|
margin: "0 0 0 auto",
|
|
604
604
|
color: "secondary",
|
|
605
|
-
className: styles$
|
|
605
|
+
className: styles$w['close-icon']
|
|
606
606
|
}, React.createElement("button", {
|
|
607
607
|
type: "button",
|
|
608
608
|
onClick: handleClose,
|
|
@@ -612,7 +612,7 @@ var Alert = function Alert(_ref) {
|
|
|
612
612
|
"data-testid": "alert-close-icon-test-id"
|
|
613
613
|
})));
|
|
614
614
|
};
|
|
615
|
-
var alertContainerClasses = classNames(styles$
|
|
615
|
+
var alertContainerClasses = classNames(styles$w["alert__" + variant], styles$w.alert, className);
|
|
616
616
|
return React.createElement(Box, _extends({
|
|
617
617
|
alignItems: "flex-start",
|
|
618
618
|
gap: "md",
|
|
@@ -629,11 +629,11 @@ var Alert = function Alert(_ref) {
|
|
|
629
629
|
as: "h4",
|
|
630
630
|
fontSize: "sm",
|
|
631
631
|
fontWeight: "semibold",
|
|
632
|
-
className: styles$
|
|
632
|
+
className: styles$w['alert-heading']
|
|
633
633
|
}, title), message && (typeof message === 'string' ? React.createElement("p", null, message) : message))), isClosable && renderCloseIcon());
|
|
634
634
|
};
|
|
635
635
|
|
|
636
|
-
var styles$
|
|
636
|
+
var styles$v = {"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"};
|
|
637
637
|
|
|
638
638
|
var _excluded$J = ["className", "message", "variant", "size"];
|
|
639
639
|
var Badge = function Badge(_ref) {
|
|
@@ -648,22 +648,22 @@ var Badge = function Badge(_ref) {
|
|
|
648
648
|
size = _ref$size === void 0 ? 'md' : _ref$size,
|
|
649
649
|
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$J);
|
|
650
650
|
var responsiveClasses = generateResponsiveClasses('size', size).map(function (c) {
|
|
651
|
-
return styles$
|
|
651
|
+
return styles$v[c];
|
|
652
652
|
});
|
|
653
|
-
var badgeClasses = classNames(styles$
|
|
653
|
+
var badgeClasses = classNames(styles$v.badge, className, responsiveClasses, (_classNames = {}, _classNames[styles$v[variant]] = variant, _classNames));
|
|
654
654
|
return React.createElement(Box, _extends({
|
|
655
655
|
className: badgeClasses,
|
|
656
656
|
display: "inline-block"
|
|
657
657
|
}, restProps), message);
|
|
658
658
|
};
|
|
659
659
|
|
|
660
|
-
var styles$
|
|
660
|
+
var styles$u = {"spinner":"Spinner-module_spinner__SZoUP","spin":"Spinner-module_spin__Yk0wm"};
|
|
661
661
|
|
|
662
662
|
var Spinner = function Spinner(_ref) {
|
|
663
663
|
var className = _ref.className,
|
|
664
664
|
_ref$size = _ref.size,
|
|
665
665
|
size = _ref$size === void 0 ? 'md' : _ref$size;
|
|
666
|
-
var classes = classNames(className, styles$
|
|
666
|
+
var classes = classNames(className, styles$u.spinner);
|
|
667
667
|
var sizeInPixels = function sizeInPixels() {
|
|
668
668
|
var pixels;
|
|
669
669
|
if (size === 'sm') pixels = '12';
|
|
@@ -750,7 +750,7 @@ var Spinner = function Spinner(_ref) {
|
|
|
750
750
|
}))));
|
|
751
751
|
};
|
|
752
752
|
|
|
753
|
-
var styles$
|
|
753
|
+
var styles$t = {"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"};
|
|
754
754
|
|
|
755
755
|
var _excluded$I = ["asChild", "children", "className", "fullWidth", "iconPrefix", "iconSuffix", "isDisabled", "isLoading", "onClick", "onBlur", "onFocus", "shadow", "size", "type", "variant"];
|
|
756
756
|
var Button = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
@@ -776,9 +776,9 @@ var Button = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
776
776
|
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$I);
|
|
777
777
|
var disabled = isLoading || isDisabled;
|
|
778
778
|
var responsiveClasses = generateResponsiveClasses('size', size).map(function (c) {
|
|
779
|
-
return styles$
|
|
779
|
+
return styles$t[c];
|
|
780
780
|
}).filter(Boolean);
|
|
781
|
-
var buttonClasses = classNames('hyphen-components__variables__form-control', styles$
|
|
781
|
+
var buttonClasses = classNames('hyphen-components__variables__form-control', styles$t.button, className, responsiveClasses, generateResponsiveClasses('shadow', shadow), (_classNames = {}, _classNames[styles$t.loading] = isLoading, _classNames[styles$t[variant]] = variant, _classNames[styles$t['full-width']] = fullWidth, _classNames));
|
|
782
782
|
var handleClick = !disabled ? onClick : undefined;
|
|
783
783
|
var handleBlur = !disabled ? onBlur : undefined;
|
|
784
784
|
var handleFocus = !disabled ? onFocus : undefined;
|
|
@@ -795,18 +795,18 @@ var Button = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
795
795
|
}, !asChild && {
|
|
796
796
|
type: type
|
|
797
797
|
}, restProps), isLoading && React.createElement(Spinner, {
|
|
798
|
-
className: styles$
|
|
798
|
+
className: styles$t['spinner-wrapper']
|
|
799
799
|
}), iconPrefix && React.createElement(Icon, {
|
|
800
|
-
className: styles$
|
|
800
|
+
className: styles$t.label,
|
|
801
801
|
name: iconPrefix,
|
|
802
802
|
"aria-hidden": "true",
|
|
803
803
|
focusable: "false",
|
|
804
804
|
"data-testid": "prefixIcon",
|
|
805
805
|
size: size === 'md' ? 'sm' : size
|
|
806
806
|
}), children && React.createElement(reactSlot.Slottable, null, asChild ? children : React.createElement("span", {
|
|
807
|
-
className: styles$
|
|
807
|
+
className: styles$t.label
|
|
808
808
|
}, children)), iconSuffix && React.createElement(Icon, {
|
|
809
|
-
className: styles$
|
|
809
|
+
className: styles$t.label,
|
|
810
810
|
name: iconSuffix,
|
|
811
811
|
"aria-hidden": "true",
|
|
812
812
|
focusable: "false",
|
|
@@ -849,7 +849,7 @@ var HEADING_DEFAULT_SIZE_MAP = {
|
|
|
849
849
|
h6: 'sm'
|
|
850
850
|
};
|
|
851
851
|
|
|
852
|
-
var styles$
|
|
852
|
+
var styles$s = {"heading":"Heading-module_heading__zKyv7"};
|
|
853
853
|
|
|
854
854
|
var _excluded$G = ["as", "children", "className", "color", "size"];
|
|
855
855
|
var Heading = function Heading(_ref) {
|
|
@@ -865,7 +865,7 @@ var Heading = function Heading(_ref) {
|
|
|
865
865
|
as: as
|
|
866
866
|
});
|
|
867
867
|
var headingSize = size || HEADING_DEFAULT_SIZE_MAP[as];
|
|
868
|
-
var classes = classNames(styles$
|
|
868
|
+
var classes = classNames(styles$s.heading, className, generateResponsiveClasses('heading', headingSize), (_classNames = {}, _classNames["font-color-" + color] = color, _classNames));
|
|
869
869
|
return React.createElement(element, _extends({
|
|
870
870
|
className: classes
|
|
871
871
|
}, restProps), children);
|
|
@@ -900,7 +900,7 @@ var CardHeader = function CardHeader(_ref) {
|
|
|
900
900
|
}, restProps), title && renderTitle(), children);
|
|
901
901
|
};
|
|
902
902
|
|
|
903
|
-
var styles$
|
|
903
|
+
var styles$r = {"card-section-border":"Card-module_card-section-border__OefDX"};
|
|
904
904
|
|
|
905
905
|
var _excluded$E = ["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$r['card-section-border']] = borderColor === undefined && borderWidth === undefined, _classNames[styles$r['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$q = {"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$B = ["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$q.checkbox, className].concat(responsiveClasses.map(function (c) {
|
|
1088
|
+
return styles$q[c];
|
|
1089
|
+
}), [(_ref2 = {}, _ref2[styles$q.hidden] = isHidden, _ref2)]));
|
|
1090
1090
|
var iconClasses = classNames.apply(void 0, responsiveClasses.map(function (c) {
|
|
1091
|
-
return styles$
|
|
1091
|
+
return styles$q[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$p = {"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$p['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$o = {"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$n = {"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$n['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$A);
|
|
1165
|
-
var labelClasses = classNames('hyphen-components__variables__form-control', styles$
|
|
1165
|
+
var labelClasses = classNames('hyphen-components__variables__form-control', styles$o.label, className, (_classNames = {}, _classNames[styles$o.disabled] = isDisabled, _classNames[styles$o.disabled] = isDisabled, _classNames[styles$o['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$m = {};
|
|
1269
1269
|
|
|
1270
1270
|
var _excluded$y = ["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$y);
|
|
1303
|
-
var datePickerClasses = classNames(styles$
|
|
1303
|
+
var datePickerClasses = classNames(styles$m['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$l = {"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$w = ["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$w);
|
|
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$l['text-input-wrapper']].concat(responsiveClasses.map(function (c) {
|
|
1410
|
+
return styles$l[c];
|
|
1411
|
+
}), [(_ref2 = {}, _ref2[styles$l.error] = error, _ref2[styles$l.disabled] = isDisabled, _ref2[styles$l['is-clearable']] = onClear, _ref2)]));
|
|
1412
|
+
var clearBtnClasses = classNames(styles$l['clear-button'], styles$l.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$l.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$l.suffix, 'ws-nowrap')
|
|
1478
1478
|
}, suffix)));
|
|
1479
1479
|
});
|
|
1480
1480
|
|
|
1481
|
-
var styles$
|
|
1481
|
+
var styles$k = {"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$k['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$k.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$j = {"details-reset":"Details-module_details-reset__HWtSD"};
|
|
1835
1835
|
|
|
1836
1836
|
var _excluded$s = ["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$s);
|
|
1844
|
-
var detailsClasses = classNames(className, styles$
|
|
1844
|
+
var detailsClasses = classNames(className, styles$j['details-reset'], styles$j.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$i = {"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$r = ["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$i.overlay, styles$i.drawer, (_classNames = {}, _classNames[styles$i['hide-overlay']] = hideOverlay, _classNames[styles$i["hide-overlay-" + placement]] = hideOverlay, _classNames['position-fixed'] = containerRef === undefined, _classNames['position-absolute'] = containerRef !== undefined, _classNames));
|
|
2003
|
+
var contentClassnames = classNames(styles$i['drawer-content'], styles$i[placement], (_classNames2 = {}, _classNames2[styles$i['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$h = {"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$h[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$h['radio-container'], responsiveClasses, (_classNames = {}, _classNames[styles$h.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$g = {"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$n = ["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$n);
|
|
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$g.loading] = error, _classNames));
|
|
2362
2362
|
return React.createElement("div", _extends({
|
|
2363
|
-
className: classNames(styles$
|
|
2363
|
+
className: classNames(styles$g['radio-group'], groupClasses)
|
|
2364
2364
|
}, restProps), React.createElement("fieldset", {
|
|
2365
|
-
className: styles$
|
|
2365
|
+
className: styles$g.fieldset
|
|
2366
2366
|
}, (title || description) && React.createElement("legend", {
|
|
2367
|
-
className: styles$
|
|
2367
|
+
className: styles$g.legend
|
|
2368
2368
|
}, title, isRequired && React.createElement("span", null, requiredIndicator), description && React.createElement("div", {
|
|
2369
|
-
className: styles$
|
|
2369
|
+
className: styles$g.description
|
|
2370
2370
|
}, description)), React.createElement(Box, {
|
|
2371
2371
|
direction: direction,
|
|
2372
2372
|
gap: "sm",
|
|
2373
|
-
className: styles$
|
|
2373
|
+
className: styles$g.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$f = {"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$l = ["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$f[c];
|
|
2477
|
+
}), [(_ref = {}, _ref[styles$f.disabled] = isDisabled, _ref)]));
|
|
2478
|
+
var inputClasses = classNames('react-select', (_classNames = {}, _classNames[styles$f.error] = error, _classNames));
|
|
2479
2479
|
var labelProps = {
|
|
2480
2480
|
inputId: id,
|
|
2481
2481
|
helpText: helpText,
|
|
2482
|
-
className: styles$
|
|
2482
|
+
className: styles$f['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$e = {"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$e['text-input-wrapper']].concat(responsiveClasses.map(function (c) {
|
|
2612
|
+
return styles$e[c];
|
|
2613
|
+
}), [(_ref2 = {}, _ref2[styles$e.error] = error, _ref2[styles$e.disabled] = isDisabled, _ref2[styles$e['is-clearable']] = onClear, _ref2)]));
|
|
2614
|
+
var clearBtnClasses = classNames(styles$e['clear-button'], styles$e.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$e['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$d = {"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$d['text-input-wrapper']].concat(responsiveClasses.map(function (c) {
|
|
2745
|
+
return styles$d[c];
|
|
2746
|
+
}), [(_ref2 = {}, _ref2[styles$d.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$d["textarea-resize-" + resize], (_classNames = {}, _classNames[styles$d.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$d['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$c = {"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$c['text-input-wrapper']].concat(responsiveClasses.map(function (c) {
|
|
2856
|
+
return styles$c[c];
|
|
2857
|
+
}), [(_ref2 = {}, _ref2[styles$c.error] = error, _ref2[styles$c.disabled] = isDisabled, _ref2[styles$c['is-clearable']] = onClear, _ref2)]));
|
|
2858
|
+
var clearBtnClasses = classNames(styles$c['clear-button'], styles$c.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$c.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$c['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$c.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$b = {"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$g = ["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$b['select-input-native-wrapper']].concat(responsiveClasses.map(function (className) {
|
|
2983
|
+
return styles$b[className];
|
|
2984
|
+
}), [(_ref2 = {}, _ref2[styles$b.disabled] = isDisabled, _ref2[styles$b.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$a = {"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$d = ["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$d);
|
|
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$a['textarea-input-wrapper']].concat(responsiveClasses.map(function (c) {
|
|
3118
|
+
return styles$a[c];
|
|
3119
|
+
}), [(_ref2 = {}, _ref2[styles$a.error] = error, _ref2[styles$a.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$a["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$a['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$9 = {"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$9.disabled] = isDisabled, _classNames));
|
|
3366
|
+
var trackClasses = classNames.apply(void 0, [styles$9['toggle-track']].concat(generateResponsiveClasses('track-size', size).map(function (c) {
|
|
3367
|
+
return styles$9[c];
|
|
3368
|
+
}), [(_ref2 = {}, _ref2[styles$9.error] = error, _ref2)]));
|
|
3369
|
+
var thumbClasses = classNames.apply(void 0, [styles$9['toggle-thumb']].concat(generateResponsiveClasses('thumb-size', size).map(function (c) {
|
|
3370
|
+
return styles$9[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$9['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$8 = {"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$4 = ["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$8.overlay, styles$8.modal, {
|
|
3548
3548
|
fullscreen: fullScreenMobile
|
|
3549
3549
|
});
|
|
3550
|
-
var contentClassnames = classNames(styles$
|
|
3550
|
+
var contentClassnames = classNames(styles$8['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$7 = {"slider":"RangeInput-module_slider__Z6D68","disabled":"RangeInput-module_disabled__gyu72"};
|
|
3763
3763
|
|
|
3764
3764
|
var _excluded$3 = ["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$7.slider, className, (_classNames = {}, _classNames[styles$7.disabled] = isDisabled, _classNames)),
|
|
3788
3788
|
onChange: onChange,
|
|
3789
3789
|
disabled: isDisabled,
|
|
3790
3790
|
style: {
|
|
@@ -3874,6 +3874,8 @@ function useIsMobile() {
|
|
|
3874
3874
|
return !!isMobile;
|
|
3875
3875
|
}
|
|
3876
3876
|
|
|
3877
|
+
var styles$6 = {"rail":"Sidebar-module_rail__nWu0Q"};
|
|
3878
|
+
|
|
3877
3879
|
var _excluded$2 = ["defaultOpen", "open", "onOpenChange", "className", "style", "children"],
|
|
3878
3880
|
_excluded2 = ["side", "collapsible", "className", "children"],
|
|
3879
3881
|
_excluded3 = ["className", "onClick"],
|
|
@@ -3955,7 +3957,7 @@ var SidebarProvider = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
3955
3957
|
// Keydown event handler for toggling sidebar
|
|
3956
3958
|
React.useEffect(function () {
|
|
3957
3959
|
var handleKeyDown = function handleKeyDown(event) {
|
|
3958
|
-
if (event.key === SIDEBAR_KEYBOARD_SHORTCUT
|
|
3960
|
+
if (event.key === SIDEBAR_KEYBOARD_SHORTCUT) {
|
|
3959
3961
|
event.preventDefault();
|
|
3960
3962
|
toggleSidebar();
|
|
3961
3963
|
}
|
|
@@ -4257,17 +4259,16 @@ var SidebarRail = /*#__PURE__*/React.forwardRef(function (_ref17, ref) {
|
|
|
4257
4259
|
"aria-label": "Toggle Sidebar",
|
|
4258
4260
|
tabIndex: -1,
|
|
4259
4261
|
onClick: toggleSidebar,
|
|
4260
|
-
title: "Toggle Sidebar",
|
|
4261
|
-
className: classNames('hover-show-child display-flex p-top-5xl justify-content-center position-absolute
|
|
4262
|
+
title: "Toggle Sidebar [",
|
|
4263
|
+
className: classNames(styles$6.rail, 'hover-show-child background-color-transparent display-flex p-top-5xl p-left-xl p-right-0 justify-content-center position-absolute', {
|
|
4262
4264
|
'cursor-w-resize': open,
|
|
4263
4265
|
'cursor-e-resize': !open
|
|
4264
4266
|
}, className),
|
|
4265
4267
|
style: {
|
|
4266
|
-
top: '
|
|
4267
|
-
bottom: '
|
|
4268
|
-
right: '-
|
|
4269
|
-
width: '
|
|
4270
|
-
zIndex: '-1'
|
|
4268
|
+
top: '20px',
|
|
4269
|
+
bottom: '20px',
|
|
4270
|
+
right: '-14px',
|
|
4271
|
+
width: '10px'
|
|
4271
4272
|
}
|
|
4272
4273
|
}, props), React.createElement(Box, {
|
|
4273
4274
|
radius: "xl",
|
|
@@ -4275,7 +4276,7 @@ var SidebarRail = /*#__PURE__*/React.forwardRef(function (_ref17, ref) {
|
|
|
4275
4276
|
color: "secondary",
|
|
4276
4277
|
borderWidth: "sm",
|
|
4277
4278
|
padding: "xs",
|
|
4278
|
-
margin: "0
|
|
4279
|
+
margin: "0",
|
|
4279
4280
|
shadow: "xs",
|
|
4280
4281
|
className: classNames('hover-child', {
|
|
4281
4282
|
'cursor-w-resize': open,
|