@hyphen/hyphen-components 5.2.0 → 5.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/components/Sidebar/Sidebar.d.ts +1 -0
- package/dist/components/Sidebar/Sidebar.stories.d.ts +1 -0
- package/dist/css/index.css +3 -3
- package/dist/css/utilities.css +7 -1
- package/dist/css/variables.css +4 -2
- package/dist/hyphen-components.cjs.development.js +273 -203
- 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 +273 -204
- package/dist/hyphen-components.esm.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/lib/tokens.d.ts +1 -1
- package/package.json +9 -9
- package/src/components/Sidebar/Sidebar.module.scss +15 -0
- package/src/components/Sidebar/Sidebar.stories.tsx +347 -227
- package/src/components/Sidebar/Sidebar.tsx +102 -53
- package/src/index.ts +1 -0
|
@@ -25,9 +25,9 @@ var AsyncCreatableSelect = require('react-select/async-creatable');
|
|
|
25
25
|
var AsyncSelect = require('react-select/async');
|
|
26
26
|
var CreatableSelect = require('react-select/creatable');
|
|
27
27
|
var ToggleGroupPrimitive = require('@radix-ui/react-toggle-group');
|
|
28
|
+
var TooltipPrimitive = require('@radix-ui/react-tooltip');
|
|
28
29
|
var uuid = require('uuid');
|
|
29
30
|
var TogglePrimitive = require('@radix-ui/react-toggle');
|
|
30
|
-
var TooltipPrimitive = require('@radix-ui/react-tooltip');
|
|
31
31
|
|
|
32
32
|
function _interopNamespaceDefault(e) {
|
|
33
33
|
var n = Object.create(null);
|
|
@@ -50,8 +50,8 @@ var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
|
|
|
50
50
|
var CollapsiblePrimitive__namespace = /*#__PURE__*/_interopNamespaceDefault(CollapsiblePrimitive);
|
|
51
51
|
var DropdownMenuPrimitive__namespace = /*#__PURE__*/_interopNamespaceDefault(DropdownMenuPrimitive);
|
|
52
52
|
var ToggleGroupPrimitive__namespace = /*#__PURE__*/_interopNamespaceDefault(ToggleGroupPrimitive);
|
|
53
|
-
var TogglePrimitive__namespace = /*#__PURE__*/_interopNamespaceDefault(TogglePrimitive);
|
|
54
53
|
var TooltipPrimitive__namespace = /*#__PURE__*/_interopNamespaceDefault(TooltipPrimitive);
|
|
54
|
+
var TogglePrimitive__namespace = /*#__PURE__*/_interopNamespaceDefault(TogglePrimitive);
|
|
55
55
|
|
|
56
56
|
function _extends() {
|
|
57
57
|
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
@@ -69,7 +69,7 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
|
69
69
|
if (null == r) return {};
|
|
70
70
|
var t = {};
|
|
71
71
|
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
72
|
-
if (e.indexOf(n)
|
|
72
|
+
if (-1 !== e.indexOf(n)) continue;
|
|
73
73
|
t[n] = r[n];
|
|
74
74
|
}
|
|
75
75
|
return t;
|
|
@@ -281,7 +281,7 @@ Component, props, getDefault) {
|
|
|
281
281
|
|
|
282
282
|
var styles$A = {"box-transition":"Box-module_box-transition__eQx8C"};
|
|
283
283
|
|
|
284
|
-
var _excluded$
|
|
284
|
+
var _excluded$R = ["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"];
|
|
285
285
|
/**
|
|
286
286
|
* A `<Box>` is a layout component to build UIs with consistent padding and spacing between
|
|
287
287
|
* elements.
|
|
@@ -368,7 +368,7 @@ var Box = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
368
368
|
width = _ref$width === void 0 ? undefined : _ref$width,
|
|
369
369
|
_ref$zIndex = _ref.zIndex,
|
|
370
370
|
zIndex = _ref$zIndex === void 0 ? undefined : _ref$zIndex,
|
|
371
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
371
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$R);
|
|
372
372
|
var heightCss = getDimensionCss('h', height);
|
|
373
373
|
var widthCss = getDimensionCss('w', width);
|
|
374
374
|
var maxHeightCss = getDimensionCss('mh', maxHeight);
|
|
@@ -519,14 +519,14 @@ var Box = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
519
519
|
});
|
|
520
520
|
var boxPropsKeys = ['as', 'alignItems', 'alignContent', 'alignSelf', 'background', 'borderColor', 'borderWidth', 'className', 'childGap', 'children', 'color', 'columnGap', 'cursor', 'direction', 'display', 'flex', 'focus', 'fontFamily', 'fontSize', 'fontWeight', 'gap', 'height', 'hover', 'justifyContent', 'margin', 'maxHeight', 'minHeight', 'maxWidth', 'minWidth', 'overflow', 'padding', 'position', 'radius', 'rowGap', 'shadow', 'style', 'textAlign', 'wrap', 'width', 'zIndex'];
|
|
521
521
|
|
|
522
|
-
var _excluded$
|
|
522
|
+
var _excluded$Q = ["className", "name", "color", "size"];
|
|
523
523
|
var Icon = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
524
524
|
var _ref$className = _ref.className,
|
|
525
525
|
className = _ref$className === void 0 ? undefined : _ref$className,
|
|
526
526
|
name = _ref.name,
|
|
527
527
|
color = _ref.color,
|
|
528
528
|
size = _ref.size,
|
|
529
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
529
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$Q);
|
|
530
530
|
var IconComponent = icons[name];
|
|
531
531
|
if (!IconComponent) console.error("Icon '" + name + "' not found"); // eslint-disable-line no-console
|
|
532
532
|
var iconClasses = classNames(className, generateResponsiveClasses('font-color', color), generateResponsiveClasses('font-size', size));
|
|
@@ -565,7 +565,7 @@ var ALERT_ICONS_MAP = {
|
|
|
565
565
|
}
|
|
566
566
|
};
|
|
567
567
|
|
|
568
|
-
var _excluded$
|
|
568
|
+
var _excluded$P = ["className", "closeText", "hasIcon", "isCompact", "isClosable", "message", "onClose", "render", "title", "variant"];
|
|
569
569
|
var Alert = function Alert(_ref) {
|
|
570
570
|
var _ref$className = _ref.className,
|
|
571
571
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
@@ -587,7 +587,7 @@ var Alert = function Alert(_ref) {
|
|
|
587
587
|
title = _ref$title === void 0 ? '' : _ref$title,
|
|
588
588
|
_ref$variant = _ref.variant,
|
|
589
589
|
variant = _ref$variant === void 0 ? 'default' : _ref$variant,
|
|
590
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
590
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$P);
|
|
591
591
|
var handleClose = function handleClose(event) {
|
|
592
592
|
if (!onClose) return;
|
|
593
593
|
onClose(event);
|
|
@@ -641,7 +641,7 @@ var Alert = function Alert(_ref) {
|
|
|
641
641
|
|
|
642
642
|
var styles$y = {"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"};
|
|
643
643
|
|
|
644
|
-
var _excluded$
|
|
644
|
+
var _excluded$O = ["className", "message", "variant", "size"];
|
|
645
645
|
var Badge = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
646
646
|
var _classNames;
|
|
647
647
|
var _ref$className = _ref.className,
|
|
@@ -652,7 +652,7 @@ var Badge = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
652
652
|
variant = _ref$variant === void 0 ? 'light-grey' : _ref$variant,
|
|
653
653
|
_ref$size = _ref.size,
|
|
654
654
|
size = _ref$size === void 0 ? 'md' : _ref$size,
|
|
655
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
655
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$O);
|
|
656
656
|
var responsiveClasses = generateResponsiveClasses('size', size).map(function (c) {
|
|
657
657
|
return styles$y[c];
|
|
658
658
|
});
|
|
@@ -759,7 +759,7 @@ var Spinner = function Spinner(_ref) {
|
|
|
759
759
|
|
|
760
760
|
var styles$w = {"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"};
|
|
761
761
|
|
|
762
|
-
var _excluded$
|
|
762
|
+
var _excluded$N = ["asChild", "children", "className", "fullWidth", "iconPrefix", "iconSuffix", "isDisabled", "isLoading", "onClick", "onBlur", "onFocus", "shadow", "size", "type", "variant"];
|
|
763
763
|
var Button = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
764
764
|
var _classNames;
|
|
765
765
|
var asChild = _ref.asChild,
|
|
@@ -780,7 +780,7 @@ var Button = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
780
780
|
type = _ref$type === void 0 ? 'button' : _ref$type,
|
|
781
781
|
_ref$variant = _ref.variant,
|
|
782
782
|
variant = _ref$variant === void 0 ? 'primary' : _ref$variant,
|
|
783
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
783
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$N);
|
|
784
784
|
var disabled = isLoading || isDisabled;
|
|
785
785
|
var responsiveClasses = generateResponsiveClasses('size', size).map(function (c) {
|
|
786
786
|
return styles$w[c];
|
|
@@ -823,7 +823,7 @@ var Button = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
823
823
|
});
|
|
824
824
|
Button.displayName = 'Button';
|
|
825
825
|
|
|
826
|
-
var _excluded$
|
|
826
|
+
var _excluded$M = ["background", "borderColor", "borderWidth", "children", "display", "padding"];
|
|
827
827
|
var CardFooter = function CardFooter(_ref) {
|
|
828
828
|
var _ref$background = _ref.background,
|
|
829
829
|
background = _ref$background === void 0 ? 'secondary' : _ref$background,
|
|
@@ -837,7 +837,7 @@ var CardFooter = function CardFooter(_ref) {
|
|
|
837
837
|
display = _ref$display === void 0 ? 'block' : _ref$display,
|
|
838
838
|
_ref$padding = _ref.padding,
|
|
839
839
|
padding = _ref$padding === void 0 ? '2xl' : _ref$padding,
|
|
840
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
840
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$M);
|
|
841
841
|
return React.createElement(Box, _extends({
|
|
842
842
|
display: display,
|
|
843
843
|
padding: padding,
|
|
@@ -858,7 +858,7 @@ var HEADING_DEFAULT_SIZE_MAP = {
|
|
|
858
858
|
|
|
859
859
|
var styles$v = {"heading":"Heading-module_heading__zKyv7"};
|
|
860
860
|
|
|
861
|
-
var _excluded$
|
|
861
|
+
var _excluded$L = ["as", "children", "className", "color", "size"];
|
|
862
862
|
var Heading = function Heading(_ref) {
|
|
863
863
|
var _classNames;
|
|
864
864
|
var _ref$as = _ref.as,
|
|
@@ -867,7 +867,7 @@ var Heading = function Heading(_ref) {
|
|
|
867
867
|
className = _ref.className,
|
|
868
868
|
color = _ref.color,
|
|
869
869
|
size = _ref.size,
|
|
870
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
870
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$L);
|
|
871
871
|
var element = getElementType(Heading, {
|
|
872
872
|
as: as
|
|
873
873
|
});
|
|
@@ -878,12 +878,12 @@ var Heading = function Heading(_ref) {
|
|
|
878
878
|
}, restProps), children);
|
|
879
879
|
};
|
|
880
880
|
|
|
881
|
-
var _excluded$
|
|
881
|
+
var _excluded$K = ["children", "title", "description"];
|
|
882
882
|
var CardHeader = function CardHeader(_ref) {
|
|
883
883
|
var children = _ref.children,
|
|
884
884
|
title = _ref.title,
|
|
885
885
|
description = _ref.description,
|
|
886
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
886
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$K);
|
|
887
887
|
return React.createElement(Box, _extends({
|
|
888
888
|
padding: "2xl",
|
|
889
889
|
direction: "row",
|
|
@@ -906,7 +906,7 @@ var CardHeader = function CardHeader(_ref) {
|
|
|
906
906
|
|
|
907
907
|
var styles$u = {"card-section-border":"Card-module_card-section-border__OefDX"};
|
|
908
908
|
|
|
909
|
-
var _excluded$
|
|
909
|
+
var _excluded$J = ["background", "borderColor", "borderWidth", "children", "childGap", "gap", "className", "display", "padding", "subdued", "title"];
|
|
910
910
|
var CardSection = function CardSection(_ref) {
|
|
911
911
|
var _classNames;
|
|
912
912
|
var _ref$background = _ref.background,
|
|
@@ -931,7 +931,7 @@ var CardSection = function CardSection(_ref) {
|
|
|
931
931
|
subdued = _ref$subdued === void 0 ? undefined : _ref$subdued,
|
|
932
932
|
_ref$title = _ref.title,
|
|
933
933
|
title = _ref$title === void 0 ? undefined : _ref$title,
|
|
934
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
934
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$J);
|
|
935
935
|
var renderTitle = typeof title === 'string' ? React.createElement(Box, {
|
|
936
936
|
className: "m-bottom-md"
|
|
937
937
|
}, React.createElement(Box, {
|
|
@@ -954,7 +954,7 @@ var CardSection = function CardSection(_ref) {
|
|
|
954
954
|
}, children));
|
|
955
955
|
};
|
|
956
956
|
|
|
957
|
-
var _excluded$
|
|
957
|
+
var _excluded$I = ["children", "subdued", "overflow", "display", "width"];
|
|
958
958
|
var CardBaseComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
959
959
|
var children = _ref.children,
|
|
960
960
|
subdued = _ref.subdued,
|
|
@@ -964,7 +964,7 @@ var CardBaseComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
964
964
|
display = _ref$display === void 0 ? 'block' : _ref$display,
|
|
965
965
|
_ref$width = _ref.width,
|
|
966
966
|
width = _ref$width === void 0 ? '100' : _ref$width,
|
|
967
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
967
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$I);
|
|
968
968
|
return React.createElement(Box, _extends({
|
|
969
969
|
background: subdued ? 'secondary' : 'primary',
|
|
970
970
|
borderWidth: "sm",
|
|
@@ -987,7 +987,7 @@ var Card = /*#__PURE__*/function () {
|
|
|
987
987
|
return Card;
|
|
988
988
|
}();
|
|
989
989
|
|
|
990
|
-
var _excluded$
|
|
990
|
+
var _excluded$H = ["className", "error", "isChecked", "isDisabled", "isIndeterminate"];
|
|
991
991
|
var CheckboxIcon = function CheckboxIcon(_ref) {
|
|
992
992
|
var _ref$className = _ref.className,
|
|
993
993
|
className = _ref$className === void 0 ? undefined : _ref$className,
|
|
@@ -999,7 +999,7 @@ var CheckboxIcon = function CheckboxIcon(_ref) {
|
|
|
999
999
|
isDisabled = _ref$isDisabled === void 0 ? false : _ref$isDisabled,
|
|
1000
1000
|
_ref$isIndeterminate = _ref.isIndeterminate,
|
|
1001
1001
|
isIndeterminate = _ref$isIndeterminate === void 0 ? false : _ref$isIndeterminate,
|
|
1002
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1002
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$H);
|
|
1003
1003
|
var color = 'base';
|
|
1004
1004
|
var name = 'checkbox-btn';
|
|
1005
1005
|
if (isChecked) name = 'checkbox-btn-checked';else name = 'checkbox-btn';
|
|
@@ -1024,7 +1024,7 @@ var CheckboxIcon = function CheckboxIcon(_ref) {
|
|
|
1024
1024
|
|
|
1025
1025
|
var styles$t = {"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"};
|
|
1026
1026
|
|
|
1027
|
-
var _excluded$
|
|
1027
|
+
var _excluded$G = ["className", "display", "id", "isChecked", "label", "labelledby", "onChange", "error", "isDisabled", "isHidden", "isIndeterminate", "isRequired", "onBlur", "onFocus", "size", "value"];
|
|
1028
1028
|
var Checkbox = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
1029
1029
|
var _ref2;
|
|
1030
1030
|
var _ref$className = _ref.className,
|
|
@@ -1054,7 +1054,7 @@ var Checkbox = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
1054
1054
|
size = _ref$size === void 0 ? 'md' : _ref$size,
|
|
1055
1055
|
_ref$value = _ref.value,
|
|
1056
1056
|
value = _ref$value === void 0 ? undefined : _ref$value,
|
|
1057
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1057
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$G);
|
|
1058
1058
|
var inputRef = React.useRef(null);
|
|
1059
1059
|
React.useEffect(function () {
|
|
1060
1060
|
if (inputRef != null && inputRef.current) {
|
|
@@ -1143,7 +1143,7 @@ var HelpText = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
1143
1143
|
}, children);
|
|
1144
1144
|
});
|
|
1145
1145
|
|
|
1146
|
-
var _excluded$
|
|
1146
|
+
var _excluded$F = ["children", "inputId", "className", "display", "helpText", "isDisabled", "isFieldRequired", "isRadioInputLabel", "requiredIndicator", "margin", "padding", "size"];
|
|
1147
1147
|
var FormLabel = function FormLabel(_ref) {
|
|
1148
1148
|
var _classNames;
|
|
1149
1149
|
var children = _ref.children,
|
|
@@ -1167,7 +1167,7 @@ var FormLabel = function FormLabel(_ref) {
|
|
|
1167
1167
|
padding = _ref$padding === void 0 ? '0' : _ref$padding,
|
|
1168
1168
|
_ref$size = _ref.size,
|
|
1169
1169
|
size = _ref$size === void 0 ? 'md' : _ref$size,
|
|
1170
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1170
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$F);
|
|
1171
1171
|
var labelClasses = classNames('hyphen-components__variables__form-control', styles$r.label, className, (_classNames = {}, _classNames[styles$r.sm] = size === 'sm', _classNames[styles$r.disabled] = isDisabled, _classNames[styles$r['radio-input-label']] = isRadioInputLabel, _classNames));
|
|
1172
1172
|
return React.createElement(Box, _extends({
|
|
1173
1173
|
as: "label",
|
|
@@ -1180,7 +1180,7 @@ var FormLabel = function FormLabel(_ref) {
|
|
|
1180
1180
|
}, restProps), children, isFieldRequired && requiredIndicator && React.createElement("span", null, requiredIndicator), helpText && React.createElement(HelpText, null, helpText));
|
|
1181
1181
|
};
|
|
1182
1182
|
|
|
1183
|
-
var _excluded$
|
|
1183
|
+
var _excluded$E = ["id", "isChecked", "label", "onChange", "className", "error", "hideLabel", "helpText", "isDisabled", "isIndeterminate", "isRequired", "onBlur", "onFocus", "requiredIndicator", "size"];
|
|
1184
1184
|
var labelMarginSizeMap = {
|
|
1185
1185
|
sm: '2xs 0 0 0',
|
|
1186
1186
|
md: 'xs 0 0 0',
|
|
@@ -1225,7 +1225,7 @@ var CheckboxInput = function CheckboxInput(_ref2) {
|
|
|
1225
1225
|
requiredIndicator = _ref2$requiredIndicat === void 0 ? ' *' : _ref2$requiredIndicat,
|
|
1226
1226
|
_ref2$size = _ref2.size,
|
|
1227
1227
|
size = _ref2$size === void 0 ? 'md' : _ref2$size,
|
|
1228
|
-
restProps = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
1228
|
+
restProps = _objectWithoutPropertiesLoose(_ref2, _excluded$E);
|
|
1229
1229
|
var handleBlur = function handleBlur(event) {
|
|
1230
1230
|
if (onBlur) onBlur(event);
|
|
1231
1231
|
};
|
|
@@ -1273,7 +1273,7 @@ var CollapsibleContent = CollapsiblePrimitive__namespace.CollapsibleContent;
|
|
|
1273
1273
|
|
|
1274
1274
|
var styles$p = {};
|
|
1275
1275
|
|
|
1276
|
-
var _excluded$
|
|
1276
|
+
var _excluded$D = ["children", "dayClassName", "maxDate", "minDate", "monthsShown", "openToDate", "startDate", "selected", "selectsRange", "showTwoColumnMonthYearPicker", "showFullMonthYearPicker", "showMonthYearPicker", "className", "formatWeekDay"];
|
|
1277
1277
|
var DatePicker = function DatePicker(_ref) {
|
|
1278
1278
|
var _ref$children = _ref.children,
|
|
1279
1279
|
children = _ref$children === void 0 ? null : _ref$children,
|
|
@@ -1305,7 +1305,7 @@ var DatePicker = function DatePicker(_ref) {
|
|
|
1305
1305
|
formatWeekDay = _ref$formatWeekDay === void 0 ? function (formattedDate) {
|
|
1306
1306
|
return formattedDate[0];
|
|
1307
1307
|
} : _ref$formatWeekDay,
|
|
1308
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1308
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$D);
|
|
1309
1309
|
var datePickerClasses = classNames(styles$p['react-datepicker'], className);
|
|
1310
1310
|
return React.createElement(ReactDatePicker, _extends({
|
|
1311
1311
|
inline: true,
|
|
@@ -1325,7 +1325,7 @@ var DatePicker = function DatePicker(_ref) {
|
|
|
1325
1325
|
}, restProps), children);
|
|
1326
1326
|
};
|
|
1327
1327
|
|
|
1328
|
-
var _excluded$
|
|
1328
|
+
var _excluded$C = ["label", "hideLabel", "children", "error", "id", "isRequired", "helpText", "isDisabled", "requiredIndicator", "width"];
|
|
1329
1329
|
var FormControl = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
1330
1330
|
var label = _ref.label,
|
|
1331
1331
|
hideLabel = _ref.hideLabel,
|
|
@@ -1338,7 +1338,7 @@ var FormControl = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
1338
1338
|
requiredIndicator = _ref.requiredIndicator,
|
|
1339
1339
|
_ref$width = _ref.width,
|
|
1340
1340
|
width = _ref$width === void 0 ? '100' : _ref$width,
|
|
1341
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1341
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$C);
|
|
1342
1342
|
var labelProps = {
|
|
1343
1343
|
inputId: id,
|
|
1344
1344
|
helpText: helpText,
|
|
@@ -1366,7 +1366,7 @@ function getAutoCompleteValue(value) {
|
|
|
1366
1366
|
|
|
1367
1367
|
var styles$o = {"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"};
|
|
1368
1368
|
|
|
1369
|
-
var _excluded$
|
|
1369
|
+
var _excluded$B = ["id", "label", "onChange", "value", "autoComplete", "autoFocus", "error", "helpText", "hideLabel", "inputProps", "isDisabled", "isRequired", "maxLength", "name", "onBlur", "onClear", "onFocus", "prefix", "placeholder", "requiredIndicator", "suffix", "size", "type"];
|
|
1370
1370
|
var TextInput = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
1371
1371
|
var _ref2;
|
|
1372
1372
|
var id = _ref.id,
|
|
@@ -1410,7 +1410,7 @@ var TextInput = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
1410
1410
|
size = _ref$size === void 0 ? 'md' : _ref$size,
|
|
1411
1411
|
_ref$type = _ref.type,
|
|
1412
1412
|
type = _ref$type === void 0 ? 'text' : _ref$type,
|
|
1413
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1413
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$B);
|
|
1414
1414
|
var responsiveClasses = generateResponsiveClasses('size', size);
|
|
1415
1415
|
var inputWrapperClasses = classNames.apply(void 0, ['hyphen-components__variables__form-control', styles$o['text-input-wrapper']].concat(responsiveClasses.map(function (c) {
|
|
1416
1416
|
return styles$o[c];
|
|
@@ -1562,7 +1562,7 @@ var BREAKPOINTS = /*#__PURE__*/[].concat(Object.entries(designTokens.size.breakp
|
|
|
1562
1562
|
var Z_INDEX_VALUES = designTokens.size['z-index'];
|
|
1563
1563
|
// export const BOX_SHADOW_VALUES = designTokens.size['box-shadow'];
|
|
1564
1564
|
|
|
1565
|
-
var _excluded$
|
|
1565
|
+
var _excluded$A = ["className", "isOpen", "children", "content", "arrowColor", "contentContainerProps", "hasArrow", "offsetFromTarget", "onClickOutside", "placement", "withPortal", "portalTarget", "trapFocus"];
|
|
1566
1566
|
var contentContainerDefaults = {
|
|
1567
1567
|
background: 'primary',
|
|
1568
1568
|
padding: 'sm',
|
|
@@ -1591,7 +1591,7 @@ var Popover = function Popover(_ref) {
|
|
|
1591
1591
|
portalTarget = _ref.portalTarget,
|
|
1592
1592
|
_ref$trapFocus = _ref.trapFocus,
|
|
1593
1593
|
trapFocus = _ref$trapFocus === void 0 ? false : _ref$trapFocus,
|
|
1594
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1594
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$A);
|
|
1595
1595
|
var triggerRef = React.useRef(null);
|
|
1596
1596
|
var popperRef = React.useRef(null);
|
|
1597
1597
|
var _useState = React.useState(null),
|
|
@@ -1697,7 +1697,7 @@ var Popover = function Popover(_ref) {
|
|
|
1697
1697
|
withPortal && portalTarget ? reactDom.createPortal(renderPopperContent(), portalTarget) : renderPopperContent()));
|
|
1698
1698
|
};
|
|
1699
1699
|
|
|
1700
|
-
var _excluded$
|
|
1700
|
+
var _excluded$z = ["datePickerProps", "textInputProps", "dateFormat", "dateOptions", "popoverProps"];
|
|
1701
1701
|
var defaultDatePickerProps = {
|
|
1702
1702
|
selected: null,
|
|
1703
1703
|
selectsRange: false
|
|
@@ -1717,7 +1717,7 @@ var DateInput = function DateInput(_ref) {
|
|
|
1717
1717
|
dateOptions = _ref$dateOptions === void 0 ? undefined : _ref$dateOptions,
|
|
1718
1718
|
_ref$popoverProps = _ref.popoverProps,
|
|
1719
1719
|
popoverProps = _ref$popoverProps === void 0 ? _extends({}, defaultPopoverProps) : _ref$popoverProps,
|
|
1720
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1720
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$z);
|
|
1721
1721
|
var mergedDatePickerProps = _extends({}, defaultDatePickerProps, datePickerProps);
|
|
1722
1722
|
var mergedPopoverProps = _extends({}, defaultPopoverProps, popoverProps);
|
|
1723
1723
|
var mergedTextInputProps = _extends({}, defaultTextInputProps, textInputProps);
|
|
@@ -1794,14 +1794,14 @@ var DateInput = function DateInput(_ref) {
|
|
|
1794
1794
|
var ENTER = 13;
|
|
1795
1795
|
var SPACE = 32;
|
|
1796
1796
|
|
|
1797
|
-
var _excluded$
|
|
1797
|
+
var _excluded$y = ["children", "display", "isDetailsOpen", "onToggle"];
|
|
1798
1798
|
var DetailsSummary = function DetailsSummary(_ref) {
|
|
1799
1799
|
var children = _ref.children,
|
|
1800
1800
|
_ref$display = _ref.display,
|
|
1801
1801
|
display = _ref$display === void 0 ? 'block' : _ref$display,
|
|
1802
1802
|
isDetailsOpen = _ref.isDetailsOpen,
|
|
1803
1803
|
onToggle = _ref.onToggle,
|
|
1804
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1804
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$y);
|
|
1805
1805
|
var handleClick = function handleClick(event) {
|
|
1806
1806
|
// Needed to avoid default `details` behavior on a click event and keep this as controlled component.
|
|
1807
1807
|
event.preventDefault();
|
|
@@ -1839,14 +1839,14 @@ var DetailsSummary = function DetailsSummary(_ref) {
|
|
|
1839
1839
|
|
|
1840
1840
|
var styles$m = {"details-reset":"Details-module_details-reset__HWtSD"};
|
|
1841
1841
|
|
|
1842
|
-
var _excluded$
|
|
1842
|
+
var _excluded$x = ["children", "className", "display", "isOpen"];
|
|
1843
1843
|
var DetailsBaseComponent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
1844
1844
|
var children = _ref.children,
|
|
1845
1845
|
className = _ref.className,
|
|
1846
1846
|
_ref$display = _ref.display,
|
|
1847
1847
|
display = _ref$display === void 0 ? 'block' : _ref$display,
|
|
1848
1848
|
isOpen = _ref.isOpen,
|
|
1849
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1849
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$x);
|
|
1850
1850
|
var detailsClasses = classNames(className, styles$m['details-reset'], styles$m.details);
|
|
1851
1851
|
return React.createElement(Box, _extends({
|
|
1852
1852
|
as: "details",
|
|
@@ -1866,7 +1866,7 @@ var Details = /*#__PURE__*/function () {
|
|
|
1866
1866
|
|
|
1867
1867
|
var styles$l = {"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"};
|
|
1868
1868
|
|
|
1869
|
-
var _excluded$
|
|
1869
|
+
var _excluded$w = ["defaultIsOpen", "open", "onOpenChange", "className", "children"],
|
|
1870
1870
|
_excluded2$3 = ["asChild", "onClick"],
|
|
1871
1871
|
_excluded3$2 = ["className"],
|
|
1872
1872
|
_excluded4$2 = ["className", "onClick", "onClose"],
|
|
@@ -1886,7 +1886,7 @@ var DrawerProvider = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
1886
1886
|
setOpenProp = _ref.onOpenChange,
|
|
1887
1887
|
className = _ref.className,
|
|
1888
1888
|
children = _ref.children,
|
|
1889
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1889
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$w);
|
|
1890
1890
|
var _useState = React.useState(openProp != null ? openProp : defaultIsOpen),
|
|
1891
1891
|
_open = _useState[0],
|
|
1892
1892
|
_setOpen = _useState[1];
|
|
@@ -2110,7 +2110,7 @@ var DrawerContent = /*#__PURE__*/React.forwardRef(function (_ref7, ref) {
|
|
|
2110
2110
|
}, props));
|
|
2111
2111
|
});
|
|
2112
2112
|
|
|
2113
|
-
var _excluded$
|
|
2113
|
+
var _excluded$v = ["className", "inset"],
|
|
2114
2114
|
_excluded2$2 = ["className", "sideOffset"],
|
|
2115
2115
|
_excluded3$1 = ["className", "inset"],
|
|
2116
2116
|
_excluded4$1 = ["className"],
|
|
@@ -2126,7 +2126,7 @@ var DropdownMenuRadioGroup = DropdownMenuPrimitive__namespace.RadioGroup;
|
|
|
2126
2126
|
var DropdownMenuItem = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
2127
2127
|
var className = _ref.className,
|
|
2128
2128
|
inset = _ref.inset,
|
|
2129
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2129
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$v);
|
|
2130
2130
|
return React.createElement(DropdownMenuPrimitive__namespace.Item, _extends({
|
|
2131
2131
|
ref: ref,
|
|
2132
2132
|
className: classNames('font-size-sm position-relative cursor-default display-flex br-sm align-items-center p-sm g-sm outline-none', inset && 'p-left-md', !props.disabled && 'hover:background-color-secondary focus:background-color-secondary', props.disabled && 'cursor-not-allowed font-color-disabled', className)
|
|
@@ -2206,7 +2206,7 @@ var DropdownMenuSubContent = /*#__PURE__*/React.forwardRef(function (_ref7, ref)
|
|
|
2206
2206
|
});
|
|
2207
2207
|
DropdownMenuSubContent.displayName = DropdownMenuPrimitive__namespace.SubContent.displayName;
|
|
2208
2208
|
|
|
2209
|
-
var _excluded$
|
|
2209
|
+
var _excluded$u = ["field", "form", "onChange", "id", "label"];
|
|
2210
2210
|
var FormikCheckboxInput = function FormikCheckboxInput(_ref) {
|
|
2211
2211
|
var _ref$field = _ref.field,
|
|
2212
2212
|
name = _ref$field.name,
|
|
@@ -2219,7 +2219,7 @@ var FormikCheckboxInput = function FormikCheckboxInput(_ref) {
|
|
|
2219
2219
|
onChange = _ref.onChange,
|
|
2220
2220
|
id = _ref.id,
|
|
2221
2221
|
label = _ref.label,
|
|
2222
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2222
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$u);
|
|
2223
2223
|
return React.createElement(CheckboxInput, _extends({}, props, {
|
|
2224
2224
|
id: id,
|
|
2225
2225
|
label: label,
|
|
@@ -2230,7 +2230,7 @@ var FormikCheckboxInput = function FormikCheckboxInput(_ref) {
|
|
|
2230
2230
|
}));
|
|
2231
2231
|
};
|
|
2232
2232
|
|
|
2233
|
-
var _excluded$
|
|
2233
|
+
var _excluded$t = ["className", "isSelected", "isDisabled", "error"];
|
|
2234
2234
|
var RadioInputIcon = function RadioInputIcon(_ref) {
|
|
2235
2235
|
var _ref$className = _ref.className,
|
|
2236
2236
|
className = _ref$className === void 0 ? undefined : _ref$className,
|
|
@@ -2240,7 +2240,7 @@ var RadioInputIcon = function RadioInputIcon(_ref) {
|
|
|
2240
2240
|
isDisabled = _ref$isDisabled === void 0 ? false : _ref$isDisabled,
|
|
2241
2241
|
_ref$error = _ref.error,
|
|
2242
2242
|
error = _ref$error === void 0 ? null : _ref$error,
|
|
2243
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2243
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$t);
|
|
2244
2244
|
var color = 'secondary';
|
|
2245
2245
|
var name = 'radio-btn-unchecked';
|
|
2246
2246
|
if (isSelected && isDisabled) {
|
|
@@ -2333,7 +2333,7 @@ var RadioInput = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
2333
2333
|
|
|
2334
2334
|
var styles$j = {"radio-group":"RadioGroup-module_radio-group__FWPcT","fieldset":"RadioGroup-module_fieldset__PEUXI","legend":"RadioGroup-module_legend__tcfV7","description":"RadioGroup-module_description__8fzM-"};
|
|
2335
2335
|
|
|
2336
|
-
var _excluded$
|
|
2336
|
+
var _excluded$s = ["name", "onChange", "options", "className", "description", "direction", "error", "isDisabled", "isRequired", "onBlur", "onFocus", "requiredIndicator", "size", "title", "value"];
|
|
2337
2337
|
var RadioGroup = function RadioGroup(_ref) {
|
|
2338
2338
|
var _classNames;
|
|
2339
2339
|
var name = _ref.name,
|
|
@@ -2363,7 +2363,7 @@ var RadioGroup = function RadioGroup(_ref) {
|
|
|
2363
2363
|
title = _ref$title === void 0 ? undefined : _ref$title,
|
|
2364
2364
|
_ref$value = _ref.value,
|
|
2365
2365
|
value = _ref$value === void 0 ? undefined : _ref$value,
|
|
2366
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2366
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$s);
|
|
2367
2367
|
var groupClasses = classNames('hyphen-components__variables__form-control', className, (_classNames = {}, _classNames[styles$j.loading] = error, _classNames));
|
|
2368
2368
|
return React.createElement("div", _extends({
|
|
2369
2369
|
className: classNames(styles$j['radio-group'], groupClasses)
|
|
@@ -2393,7 +2393,7 @@ var RadioGroup = function RadioGroup(_ref) {
|
|
|
2393
2393
|
}))), error && typeof error !== 'boolean' && React.createElement(InputValidationMessage, null, error));
|
|
2394
2394
|
};
|
|
2395
2395
|
|
|
2396
|
-
var _excluded$
|
|
2396
|
+
var _excluded$r = ["field", "form", "onChange", "options"];
|
|
2397
2397
|
var FormikRadioGroup = function FormikRadioGroup(_ref) {
|
|
2398
2398
|
var _ref$field = _ref.field,
|
|
2399
2399
|
name = _ref$field.name,
|
|
@@ -2405,7 +2405,7 @@ var FormikRadioGroup = function FormikRadioGroup(_ref) {
|
|
|
2405
2405
|
errors = _ref$form.errors,
|
|
2406
2406
|
onChange = _ref.onChange,
|
|
2407
2407
|
options = _ref.options,
|
|
2408
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2408
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$r);
|
|
2409
2409
|
return React.createElement(RadioGroup, _extends({}, props, {
|
|
2410
2410
|
options: options,
|
|
2411
2411
|
name: name,
|
|
@@ -2418,7 +2418,7 @@ var FormikRadioGroup = function FormikRadioGroup(_ref) {
|
|
|
2418
2418
|
|
|
2419
2419
|
var styles$i = {"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"};
|
|
2420
2420
|
|
|
2421
|
-
var _excluded$
|
|
2421
|
+
var _excluded$q = ["id", "label", "onChange", "options", "value", "autoFocus", "className", "error", "helpText", "hideLabel", "isClearable", "isAsync", "isCreatable", "isDisabled", "isMulti", "isRequired", "menuPortalTarget", "name", "onFocus", "onBlur", "placeholder", "requiredIndicator", "size"];
|
|
2422
2422
|
function SelectInput(props) {
|
|
2423
2423
|
var _ref, _classNames;
|
|
2424
2424
|
var id = props.id,
|
|
@@ -2461,7 +2461,7 @@ function SelectInput(props) {
|
|
|
2461
2461
|
requiredIndicator = _props$requiredIndica === void 0 ? ' *' : _props$requiredIndica,
|
|
2462
2462
|
_props$size = props.size,
|
|
2463
2463
|
size = _props$size === void 0 ? 'md' : _props$size,
|
|
2464
|
-
restProps = _objectWithoutPropertiesLoose(props, _excluded$
|
|
2464
|
+
restProps = _objectWithoutPropertiesLoose(props, _excluded$q);
|
|
2465
2465
|
var handleChange = function handleChange(values) {
|
|
2466
2466
|
var simulatedEventPayloadType = {
|
|
2467
2467
|
target: {
|
|
@@ -2534,7 +2534,7 @@ function SelectInput(props) {
|
|
|
2534
2534
|
})), error && typeof error !== 'boolean' && React.createElement(InputValidationMessage, null, error));
|
|
2535
2535
|
}
|
|
2536
2536
|
|
|
2537
|
-
var _excluded$
|
|
2537
|
+
var _excluded$p = ["field", "form", "onChange", "id", "label", "options", "error"];
|
|
2538
2538
|
var FormikSelectInput = function FormikSelectInput(_ref) {
|
|
2539
2539
|
var _ref$field = _ref.field,
|
|
2540
2540
|
name = _ref$field.name,
|
|
@@ -2549,7 +2549,7 @@ var FormikSelectInput = function FormikSelectInput(_ref) {
|
|
|
2549
2549
|
label = _ref.label,
|
|
2550
2550
|
options = _ref.options,
|
|
2551
2551
|
errorProp = _ref.error,
|
|
2552
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2552
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$p);
|
|
2553
2553
|
var errorMessage;
|
|
2554
2554
|
var error = errorProp != null ? errorProp : formik.getIn(touched, name) && formik.getIn(errors, name);
|
|
2555
2555
|
if (typeof error === 'string') {
|
|
@@ -2677,7 +2677,7 @@ var SelectInputInset = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
2677
2677
|
}, label, isRequired && requiredIndicator && React.createElement("span", null, requiredIndicator))), helpText && React.createElement(HelpText, null, helpText), error && error !== true && React.createElement(InputValidationMessage, null, error));
|
|
2678
2678
|
});
|
|
2679
2679
|
|
|
2680
|
-
var _excluded$
|
|
2680
|
+
var _excluded$o = ["field", "form", "onChange", "id", "label", "options"];
|
|
2681
2681
|
var FormikSelectInputInset = function FormikSelectInputInset(_ref) {
|
|
2682
2682
|
var _ref$field = _ref.field,
|
|
2683
2683
|
name = _ref$field.name,
|
|
@@ -2691,7 +2691,7 @@ var FormikSelectInputInset = function FormikSelectInputInset(_ref) {
|
|
|
2691
2691
|
id = _ref.id,
|
|
2692
2692
|
label = _ref.label,
|
|
2693
2693
|
options = _ref.options,
|
|
2694
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2694
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$o);
|
|
2695
2695
|
return React.createElement(SelectInputInset, _extends({}, props, {
|
|
2696
2696
|
id: id,
|
|
2697
2697
|
label: label,
|
|
@@ -2789,7 +2789,7 @@ var TextareaInputInset = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
2789
2789
|
}, label, isRequired && requiredIndicator && React.createElement("span", null, requiredIndicator))), helpText && React.createElement(HelpText, null, helpText), error && error !== true && React.createElement(InputValidationMessage, null, error));
|
|
2790
2790
|
});
|
|
2791
2791
|
|
|
2792
|
-
var _excluded$
|
|
2792
|
+
var _excluded$n = ["field", "form", "onChange", "id", "label"];
|
|
2793
2793
|
var FormikTextareaInputInset = function FormikTextareaInputInset(_ref) {
|
|
2794
2794
|
var _ref$field = _ref.field,
|
|
2795
2795
|
name = _ref$field.name,
|
|
@@ -2802,7 +2802,7 @@ var FormikTextareaInputInset = function FormikTextareaInputInset(_ref) {
|
|
|
2802
2802
|
onChange = _ref.onChange,
|
|
2803
2803
|
id = _ref.id,
|
|
2804
2804
|
label = _ref.label,
|
|
2805
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2805
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$n);
|
|
2806
2806
|
return React.createElement(TextareaInputInset, _extends({}, props, {
|
|
2807
2807
|
id: id,
|
|
2808
2808
|
label: label,
|
|
@@ -2929,7 +2929,7 @@ var TextInputInset = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
2929
2929
|
}, suffix)), helpText && React.createElement(HelpText, null, helpText), error && error !== true && React.createElement(InputValidationMessage, null, error));
|
|
2930
2930
|
});
|
|
2931
2931
|
|
|
2932
|
-
var _excluded$
|
|
2932
|
+
var _excluded$m = ["field", "form", "onChange", "id", "label"];
|
|
2933
2933
|
var FormikTextInputInset = function FormikTextInputInset(_ref) {
|
|
2934
2934
|
var _ref$field = _ref.field,
|
|
2935
2935
|
name = _ref$field.name,
|
|
@@ -2942,7 +2942,7 @@ var FormikTextInputInset = function FormikTextInputInset(_ref) {
|
|
|
2942
2942
|
onChange = _ref.onChange,
|
|
2943
2943
|
id = _ref.id,
|
|
2944
2944
|
label = _ref.label,
|
|
2945
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2945
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$m);
|
|
2946
2946
|
return React.createElement(TextInputInset, _extends({}, props, {
|
|
2947
2947
|
id: id,
|
|
2948
2948
|
label: label,
|
|
@@ -2956,7 +2956,7 @@ var FormikTextInputInset = function FormikTextInputInset(_ref) {
|
|
|
2956
2956
|
|
|
2957
2957
|
var styles$e = {"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"};
|
|
2958
2958
|
|
|
2959
|
-
var _excluded$
|
|
2959
|
+
var _excluded$l = ["autoFocus", "label", "hideLabel", "helpText", "error", "id", "isDisabled", "isRequired", "name", "value", "options", "onChange", "placeholder", "requiredIndicator", "size"];
|
|
2960
2960
|
var SelectInputNative = function SelectInputNative(_ref) {
|
|
2961
2961
|
var _ref2;
|
|
2962
2962
|
var _ref$autoFocus = _ref.autoFocus,
|
|
@@ -2978,7 +2978,7 @@ var SelectInputNative = function SelectInputNative(_ref) {
|
|
|
2978
2978
|
requiredIndicator = _ref$requiredIndicato === void 0 ? ' *' : _ref$requiredIndicato,
|
|
2979
2979
|
_ref$size = _ref.size,
|
|
2980
2980
|
size = _ref$size === void 0 ? 'md' : _ref$size,
|
|
2981
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2981
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$l);
|
|
2982
2982
|
var placeholderOption = {
|
|
2983
2983
|
value: '',
|
|
2984
2984
|
label: placeholder
|
|
@@ -3024,7 +3024,7 @@ var SelectInputNative = function SelectInputNative(_ref) {
|
|
|
3024
3024
|
}))));
|
|
3025
3025
|
};
|
|
3026
3026
|
|
|
3027
|
-
var _excluded$
|
|
3027
|
+
var _excluded$k = ["field", "form", "onChange", "options", "id", "label"];
|
|
3028
3028
|
var FormikSelectInputNative = function FormikSelectInputNative(_ref) {
|
|
3029
3029
|
var _ref$field = _ref.field,
|
|
3030
3030
|
name = _ref$field.name,
|
|
@@ -3038,7 +3038,7 @@ var FormikSelectInputNative = function FormikSelectInputNative(_ref) {
|
|
|
3038
3038
|
options = _ref.options,
|
|
3039
3039
|
id = _ref.id,
|
|
3040
3040
|
label = _ref.label,
|
|
3041
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3041
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$k);
|
|
3042
3042
|
return React.createElement(SelectInputNative, _extends({}, props, {
|
|
3043
3043
|
options: options,
|
|
3044
3044
|
id: id,
|
|
@@ -3051,7 +3051,7 @@ var FormikSelectInputNative = function FormikSelectInputNative(_ref) {
|
|
|
3051
3051
|
}));
|
|
3052
3052
|
};
|
|
3053
3053
|
|
|
3054
|
-
var _excluded$
|
|
3054
|
+
var _excluded$j = ["field", "form", "onChange", "id", "label"];
|
|
3055
3055
|
var FormikTextInput = function FormikTextInput(_ref) {
|
|
3056
3056
|
var _ref$field = _ref.field,
|
|
3057
3057
|
name = _ref$field.name,
|
|
@@ -3064,7 +3064,7 @@ var FormikTextInput = function FormikTextInput(_ref) {
|
|
|
3064
3064
|
onChange = _ref.onChange,
|
|
3065
3065
|
id = _ref.id,
|
|
3066
3066
|
label = _ref.label,
|
|
3067
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3067
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$j);
|
|
3068
3068
|
return React.createElement(TextInput, _extends({}, props, {
|
|
3069
3069
|
id: id,
|
|
3070
3070
|
label: label,
|
|
@@ -3078,7 +3078,7 @@ var FormikTextInput = function FormikTextInput(_ref) {
|
|
|
3078
3078
|
|
|
3079
3079
|
var styles$d = {"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"};
|
|
3080
3080
|
|
|
3081
|
-
var _excluded$
|
|
3081
|
+
var _excluded$i = ["id", "label", "onChange", "value", "autoComplete", "autoFocus", "className", "error", "helpText", "hideLabel", "isDisabled", "isRequired", "maxLength", "name", "onBlur", "onFocus", "placeholder", "requiredIndicator", "resize", "rows", "size"];
|
|
3082
3082
|
var TextareaInput = function TextareaInput(_ref) {
|
|
3083
3083
|
var _ref2;
|
|
3084
3084
|
var id = _ref.id,
|
|
@@ -3118,7 +3118,7 @@ var TextareaInput = function TextareaInput(_ref) {
|
|
|
3118
3118
|
rows = _ref$rows === void 0 ? 3 : _ref$rows,
|
|
3119
3119
|
_ref$size = _ref.size,
|
|
3120
3120
|
size = _ref$size === void 0 ? 'md' : _ref$size,
|
|
3121
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3121
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$i);
|
|
3122
3122
|
var responsiveClasses = generateResponsiveClasses('size', size);
|
|
3123
3123
|
var inputWrapperClasses = classNames.apply(void 0, ['hyphen-components__variables__form-control', styles$d['textarea-input-wrapper']].concat(responsiveClasses.map(function (c) {
|
|
3124
3124
|
return styles$d[c];
|
|
@@ -3162,7 +3162,7 @@ var TextareaInput = function TextareaInput(_ref) {
|
|
|
3162
3162
|
}, inputProps))), error && error !== true && React.createElement(InputValidationMessage, null, error));
|
|
3163
3163
|
};
|
|
3164
3164
|
|
|
3165
|
-
var _excluded$
|
|
3165
|
+
var _excluded$h = ["field", "form", "onChange", "id", "label"];
|
|
3166
3166
|
var FormikTextareaInput = function FormikTextareaInput(_ref) {
|
|
3167
3167
|
var _ref$field = _ref.field,
|
|
3168
3168
|
name = _ref$field.name,
|
|
@@ -3175,7 +3175,7 @@ var FormikTextareaInput = function FormikTextareaInput(_ref) {
|
|
|
3175
3175
|
onChange = _ref.onChange,
|
|
3176
3176
|
id = _ref.id,
|
|
3177
3177
|
label = _ref.label,
|
|
3178
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3178
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
|
|
3179
3179
|
return React.createElement(TextareaInput, _extends({}, props, {
|
|
3180
3180
|
id: id,
|
|
3181
3181
|
label: label,
|
|
@@ -3187,7 +3187,7 @@ var FormikTextareaInput = function FormikTextareaInput(_ref) {
|
|
|
3187
3187
|
}));
|
|
3188
3188
|
};
|
|
3189
3189
|
|
|
3190
|
-
var _excluded$
|
|
3190
|
+
var _excluded$g = ["id", "name", "label", "onChange", "value", "dateDisplayOptions", "endTime", "interval", "locales", "placeholder", "startTime"];
|
|
3191
3191
|
var TimePicker = function TimePicker(_ref) {
|
|
3192
3192
|
var id = _ref.id,
|
|
3193
3193
|
name = _ref.name,
|
|
@@ -3209,7 +3209,7 @@ var TimePicker = function TimePicker(_ref) {
|
|
|
3209
3209
|
placeholder = _ref$placeholder === void 0 ? 'HH:MM' : _ref$placeholder,
|
|
3210
3210
|
_ref$startTime = _ref.startTime,
|
|
3211
3211
|
startTime = _ref$startTime === void 0 ? undefined : _ref$startTime,
|
|
3212
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3212
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$g);
|
|
3213
3213
|
var generateTimes = function generateTimes() {
|
|
3214
3214
|
var first = new Date();
|
|
3215
3215
|
first.setHours((startTime == null ? void 0 : startTime.hour) || 0, (startTime == null ? void 0 : startTime.minute) || 0, 0, 0);
|
|
@@ -3237,7 +3237,7 @@ var TimePicker = function TimePicker(_ref) {
|
|
|
3237
3237
|
}));
|
|
3238
3238
|
};
|
|
3239
3239
|
|
|
3240
|
-
var _excluded$
|
|
3240
|
+
var _excluded$f = ["field", "form", "options", "onChange"];
|
|
3241
3241
|
var FormikTimePicker = function FormikTimePicker(_ref) {
|
|
3242
3242
|
var _ref$field = _ref.field,
|
|
3243
3243
|
name = _ref$field.name,
|
|
@@ -3249,7 +3249,7 @@ var FormikTimePicker = function FormikTimePicker(_ref) {
|
|
|
3249
3249
|
errors = _ref$form.errors,
|
|
3250
3250
|
options = _ref.options,
|
|
3251
3251
|
onChange = _ref.onChange,
|
|
3252
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3252
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$f);
|
|
3253
3253
|
return React.createElement(TimePicker, _extends({}, props, {
|
|
3254
3254
|
name: name,
|
|
3255
3255
|
onBlur: onBlur,
|
|
@@ -3260,7 +3260,7 @@ var FormikTimePicker = function FormikTimePicker(_ref) {
|
|
|
3260
3260
|
}));
|
|
3261
3261
|
};
|
|
3262
3262
|
|
|
3263
|
-
var _excluded$
|
|
3263
|
+
var _excluded$e = ["id", "name", "label", "onChange", "value", "dateDisplayOptions", "endTime", "interval", "locales", "placeholder", "startTime"];
|
|
3264
3264
|
var TimePickerNative = function TimePickerNative(_ref) {
|
|
3265
3265
|
var id = _ref.id,
|
|
3266
3266
|
name = _ref.name,
|
|
@@ -3282,7 +3282,7 @@ var TimePickerNative = function TimePickerNative(_ref) {
|
|
|
3282
3282
|
placeholder = _ref$placeholder === void 0 ? 'HH:MM' : _ref$placeholder,
|
|
3283
3283
|
_ref$startTime = _ref.startTime,
|
|
3284
3284
|
startTime = _ref$startTime === void 0 ? undefined : _ref$startTime,
|
|
3285
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3285
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$e);
|
|
3286
3286
|
var generateTimes = function generateTimes() {
|
|
3287
3287
|
var first = new Date();
|
|
3288
3288
|
first.setHours((startTime == null ? void 0 : startTime.hour) || 0, (startTime == null ? void 0 : startTime.minute) || 0, 0, 0);
|
|
@@ -3311,7 +3311,7 @@ var TimePickerNative = function TimePickerNative(_ref) {
|
|
|
3311
3311
|
}));
|
|
3312
3312
|
};
|
|
3313
3313
|
|
|
3314
|
-
var _excluded$
|
|
3314
|
+
var _excluded$d = ["field", "form", "onChange"];
|
|
3315
3315
|
var FormikTimePickerNative = function FormikTimePickerNative(_ref) {
|
|
3316
3316
|
var _ref$field = _ref.field,
|
|
3317
3317
|
name = _ref$field.name,
|
|
@@ -3322,7 +3322,7 @@ var FormikTimePickerNative = function FormikTimePickerNative(_ref) {
|
|
|
3322
3322
|
touched = _ref$form.touched,
|
|
3323
3323
|
errors = _ref$form.errors,
|
|
3324
3324
|
onChange = _ref.onChange,
|
|
3325
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3325
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
|
|
3326
3326
|
return React.createElement(TimePickerNative, _extends({}, props, {
|
|
3327
3327
|
name: name,
|
|
3328
3328
|
onBlur: onBlur,
|
|
@@ -3424,7 +3424,7 @@ var Switch = function Switch(_ref) {
|
|
|
3424
3424
|
}, helpText)))), error && error !== true && React.createElement(InputValidationMessage, null, error));
|
|
3425
3425
|
};
|
|
3426
3426
|
|
|
3427
|
-
var _excluded$
|
|
3427
|
+
var _excluded$c = ["field", "form"];
|
|
3428
3428
|
var FormikSwitch = function FormikSwitch(_ref) {
|
|
3429
3429
|
var _ref$field = _ref.field,
|
|
3430
3430
|
name = _ref$field.name,
|
|
@@ -3434,7 +3434,7 @@ var FormikSwitch = function FormikSwitch(_ref) {
|
|
|
3434
3434
|
_ref$form = _ref.form,
|
|
3435
3435
|
touched = _ref$form.touched,
|
|
3436
3436
|
errors = _ref$form.errors,
|
|
3437
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3437
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
|
|
3438
3438
|
return React.createElement(Switch, _extends({
|
|
3439
3439
|
error: formik.getIn(touched, name) && formik.getIn(errors, name),
|
|
3440
3440
|
isChecked: value,
|
|
@@ -3445,7 +3445,7 @@ var FormikSwitch = function FormikSwitch(_ref) {
|
|
|
3445
3445
|
|
|
3446
3446
|
var styles$b = {"item":"ToggleGroup-module_item__dIBO0","outline":"ToggleGroup-module_outline__d5OlO"};
|
|
3447
3447
|
|
|
3448
|
-
var _excluded$
|
|
3448
|
+
var _excluded$b = ["className", "variant", "children", "gap", "error"],
|
|
3449
3449
|
_excluded2$1 = ["className", "children", "value", "variant"];
|
|
3450
3450
|
var ToggleGroupContext = /*#__PURE__*/React.createContext({
|
|
3451
3451
|
variant: 'default'
|
|
@@ -3458,7 +3458,7 @@ var ToggleGroup = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
3458
3458
|
_ref$gap = _ref.gap,
|
|
3459
3459
|
gap = _ref$gap === void 0 ? 'xs' : _ref$gap,
|
|
3460
3460
|
error = _ref.error,
|
|
3461
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3461
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$b);
|
|
3462
3462
|
return React.createElement("div", null, React.createElement(ToggleGroupPrimitive__namespace.Root, _extends({
|
|
3463
3463
|
ref: ref,
|
|
3464
3464
|
className: classNames('display-flex align-items-center justify-content-start', className, cssShorthandToClasses('g', gap))
|
|
@@ -3485,7 +3485,7 @@ var ToggleGroupItem = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
|
|
|
3485
3485
|
});
|
|
3486
3486
|
ToggleGroupItem.displayName = ToggleGroupPrimitive__namespace.Item.displayName;
|
|
3487
3487
|
|
|
3488
|
-
var _excluded$
|
|
3488
|
+
var _excluded$a = ["field", "form", "options", "helpText", "label", "children"];
|
|
3489
3489
|
var FormikToggleGroup = function FormikToggleGroup(_ref) {
|
|
3490
3490
|
var _ref$field = _ref.field,
|
|
3491
3491
|
name = _ref$field.name,
|
|
@@ -3499,7 +3499,7 @@ var FormikToggleGroup = function FormikToggleGroup(_ref) {
|
|
|
3499
3499
|
helpText = _ref.helpText,
|
|
3500
3500
|
label = _ref.label,
|
|
3501
3501
|
children = _ref.children,
|
|
3502
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3502
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$a);
|
|
3503
3503
|
return React.createElement(Box, {
|
|
3504
3504
|
gap: "sm"
|
|
3505
3505
|
}, (label || helpText) && React.createElement("div", null, label && React.createElement(Box, {
|
|
@@ -3523,6 +3523,47 @@ var FormikToggleGroup = function FormikToggleGroup(_ref) {
|
|
|
3523
3523
|
})));
|
|
3524
3524
|
};
|
|
3525
3525
|
|
|
3526
|
+
var _excluded$9 = ["name", "options", "helpText", "label", "children", "variant"];
|
|
3527
|
+
var FormikToggleGroupMulti = function FormikToggleGroupMulti(_ref) {
|
|
3528
|
+
var name = _ref.name,
|
|
3529
|
+
options = _ref.options,
|
|
3530
|
+
helpText = _ref.helpText,
|
|
3531
|
+
label = _ref.label,
|
|
3532
|
+
children = _ref.children,
|
|
3533
|
+
variant = _ref.variant,
|
|
3534
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$9);
|
|
3535
|
+
var _useField = formik.useField(name),
|
|
3536
|
+
field = _useField[0],
|
|
3537
|
+
meta = _useField[1],
|
|
3538
|
+
helpers = _useField[2];
|
|
3539
|
+
return React.createElement(Box, {
|
|
3540
|
+
gap: "sm"
|
|
3541
|
+
}, (label || helpText) && React.createElement("div", null, label && React.createElement(Box, {
|
|
3542
|
+
fontSize: "sm"
|
|
3543
|
+
}, label), helpText && React.createElement(HelpText, null, helpText)), React.createElement(formik.FieldArray, {
|
|
3544
|
+
name: name
|
|
3545
|
+
}, function () {
|
|
3546
|
+
return React.createElement(ToggleGroup, _extends({}, props, {
|
|
3547
|
+
name: name,
|
|
3548
|
+
onValueChange: function onValueChange(selectedValues) {
|
|
3549
|
+
helpers.setValue(selectedValues);
|
|
3550
|
+
helpers.setTouched(true);
|
|
3551
|
+
},
|
|
3552
|
+
value: field.value,
|
|
3553
|
+
error: meta.error,
|
|
3554
|
+
type: "multiple",
|
|
3555
|
+
variant: variant
|
|
3556
|
+
}), children ? children : options.map(function (option) {
|
|
3557
|
+
return React.createElement(ToggleGroupItem, {
|
|
3558
|
+
key: option.id,
|
|
3559
|
+
id: option.id,
|
|
3560
|
+
value: option.value,
|
|
3561
|
+
disabled: !!option.disabled
|
|
3562
|
+
}, option.label);
|
|
3563
|
+
}));
|
|
3564
|
+
}));
|
|
3565
|
+
};
|
|
3566
|
+
|
|
3526
3567
|
var _excluded$8 = ["children", "padding", "direction", "alignItems", "justifyContent", "gap", "style"];
|
|
3527
3568
|
var ModalFooter = function ModalFooter(_ref) {
|
|
3528
3569
|
var children = _ref.children,
|
|
@@ -3961,9 +4002,29 @@ function useIsMobile() {
|
|
|
3961
4002
|
return !!isMobile;
|
|
3962
4003
|
}
|
|
3963
4004
|
|
|
3964
|
-
var styles$8 = {"rail":"Sidebar-module_rail__nWu0Q"};
|
|
4005
|
+
var styles$8 = {"rail":"Sidebar-module_rail__nWu0Q","group-data-":"Sidebar-module_group-data-__GTJmR"};
|
|
4006
|
+
|
|
4007
|
+
var styles$7 = {"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"};
|
|
3965
4008
|
|
|
3966
|
-
var _excluded$4 = ["
|
|
4009
|
+
var _excluded$4 = ["className", "sideOffset"];
|
|
4010
|
+
var TooltipProvider = TooltipPrimitive__namespace.Provider;
|
|
4011
|
+
var Tooltip = TooltipPrimitive__namespace.Root;
|
|
4012
|
+
var TooltipTrigger = TooltipPrimitive__namespace.Trigger;
|
|
4013
|
+
var TooltipPortal = TooltipPrimitive__namespace.Portal;
|
|
4014
|
+
var TooltipContent = /*#__PURE__*/React__namespace.forwardRef(function (_ref, ref) {
|
|
4015
|
+
var className = _ref.className,
|
|
4016
|
+
_ref$sideOffset = _ref.sideOffset,
|
|
4017
|
+
sideOffset = _ref$sideOffset === void 0 ? 4 : _ref$sideOffset,
|
|
4018
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$4);
|
|
4019
|
+
return React__namespace.createElement(TooltipPrimitive__namespace.Content, _extends({
|
|
4020
|
+
ref: ref,
|
|
4021
|
+
sideOffset: sideOffset,
|
|
4022
|
+
className: classNames(styles$7.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)
|
|
4023
|
+
}, props));
|
|
4024
|
+
});
|
|
4025
|
+
TooltipContent.displayName = TooltipPrimitive__namespace.Content.displayName;
|
|
4026
|
+
|
|
4027
|
+
var _excluded$3 = ["defaultOpen", "open", "onOpenChange", "className", "style", "children"],
|
|
3967
4028
|
_excluded2 = ["side", "collapsible", "className", "children"],
|
|
3968
4029
|
_excluded3 = ["className", "onClick"],
|
|
3969
4030
|
_excluded4 = ["className"],
|
|
@@ -3972,18 +4033,18 @@ var _excluded$4 = ["defaultOpen", "open", "onOpenChange", "className", "style",
|
|
|
3972
4033
|
_excluded7 = ["className"],
|
|
3973
4034
|
_excluded8 = ["className"],
|
|
3974
4035
|
_excluded9 = ["className"],
|
|
3975
|
-
|
|
4036
|
+
_excluded0 = ["asChild", "isActive", "icon", "tooltip", "className"],
|
|
4037
|
+
_excluded1 = ["className"],
|
|
4038
|
+
_excluded10 = ["className"],
|
|
3976
4039
|
_excluded11 = ["className"],
|
|
3977
|
-
_excluded12 = ["className"],
|
|
3978
|
-
_excluded13 = ["className"],
|
|
3979
|
-
_excluded14 = ["
|
|
3980
|
-
_excluded15 = ["className"
|
|
3981
|
-
|
|
3982
|
-
_excluded17 = ["className"];
|
|
3983
|
-
var SIDEBAR_COOKIE_NAME = 'sidebar:state';
|
|
4040
|
+
_excluded12 = ["asChild", "isActive", "className"],
|
|
4041
|
+
_excluded13 = ["className", "asChild"],
|
|
4042
|
+
_excluded14 = ["className"],
|
|
4043
|
+
_excluded15 = ["className"];
|
|
4044
|
+
var SIDEBAR_COOKIE_NAME = 'sidebar_expanded';
|
|
3984
4045
|
var SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
|
|
3985
4046
|
var SIDEBAR_WIDTH = '16rem';
|
|
3986
|
-
var SIDEBAR_WIDTH_ICON = '
|
|
4047
|
+
var SIDEBAR_WIDTH_ICON = '44px';
|
|
3987
4048
|
var SIDEBAR_KEYBOARD_SHORTCUT = '[';
|
|
3988
4049
|
var SidebarContext = /*#__PURE__*/React.createContext(null);
|
|
3989
4050
|
function useSidebar() {
|
|
@@ -4001,7 +4062,7 @@ var SidebarProvider = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
4001
4062
|
className = _ref.className,
|
|
4002
4063
|
style = _ref.style,
|
|
4003
4064
|
children = _ref.children,
|
|
4004
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4065
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$3);
|
|
4005
4066
|
var isMobile = useIsMobile();
|
|
4006
4067
|
var _useState = React.useState(function () {
|
|
4007
4068
|
return isMobile ? false : openProp != null ? openProp : defaultOpen;
|
|
@@ -4069,6 +4130,8 @@ var SidebarProvider = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
4069
4130
|
}, [state, open, setOpen, isMobile, openMobile, setOpenMobile, toggleSidebar]);
|
|
4070
4131
|
return React.createElement(SidebarContext.Provider, {
|
|
4071
4132
|
value: contextValue
|
|
4133
|
+
}, React.createElement(TooltipProvider, {
|
|
4134
|
+
delayDuration: 0
|
|
4072
4135
|
}, React.createElement("div", _extends({
|
|
4073
4136
|
style: _extends({
|
|
4074
4137
|
'--sidebar-width': SIDEBAR_WIDTH,
|
|
@@ -4077,7 +4140,7 @@ var SidebarProvider = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
4077
4140
|
}, style),
|
|
4078
4141
|
className: classNames('display-flex w-100 background-color-secondary', className),
|
|
4079
4142
|
ref: ref
|
|
4080
|
-
}, props), children));
|
|
4143
|
+
}, props), children)));
|
|
4081
4144
|
});
|
|
4082
4145
|
SidebarProvider.displayName = 'SidebarProvider';
|
|
4083
4146
|
var Sidebar = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
|
|
@@ -4108,7 +4171,7 @@ var Sidebar = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
|
|
|
4108
4171
|
}
|
|
4109
4172
|
if (collapsible === 'none') {
|
|
4110
4173
|
return React.createElement("div", _extends({
|
|
4111
|
-
className: classNames('display-flex h-100 font-size-xs flex-direction-column background-color-secondary font-color-base', className),
|
|
4174
|
+
className: classNames('group display-flex h-100 font-size-xs flex-direction-column background-color-secondary font-color-base', className),
|
|
4112
4175
|
style: {
|
|
4113
4176
|
width: 'var(--sidebar-width)'
|
|
4114
4177
|
},
|
|
@@ -4127,7 +4190,8 @@ var Sidebar = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
|
|
|
4127
4190
|
position: "relative",
|
|
4128
4191
|
"data-state": state,
|
|
4129
4192
|
"data-collapsible": collapsible,
|
|
4130
|
-
"data-side": side
|
|
4193
|
+
"data-side": side,
|
|
4194
|
+
className: "group"
|
|
4131
4195
|
}, React.createElement("div", {
|
|
4132
4196
|
style: {
|
|
4133
4197
|
animationTimingFunction: 'var(--sidebar-transition-timing, linear)',
|
|
@@ -4135,14 +4199,14 @@ var Sidebar = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
|
|
|
4135
4199
|
transitionDuration: 'var(--sidebar-transition-duration, 200ms)',
|
|
4136
4200
|
animationDuration: 'var(--sidebar-transition-duration, 200ms)',
|
|
4137
4201
|
transitionProperty: 'width',
|
|
4138
|
-
width: state === 'collapsed' ? '0' : 'var(--sidebar-width)',
|
|
4202
|
+
width: state === 'collapsed' && collapsible === 'icon' ? 'var(--sidebar-width-icon)' : state === 'collapsed' ? '0' : 'var(--sidebar-width)',
|
|
4139
4203
|
height: '100svh'
|
|
4140
4204
|
},
|
|
4141
4205
|
className: classNames('position-relative', className)
|
|
4142
4206
|
}), React.createElement("div", _extends({
|
|
4143
4207
|
className: classNames('position-absolute display-none display-flex-desktop ', className),
|
|
4144
4208
|
style: {
|
|
4145
|
-
left: state === 'expanded' ? '0' : 'calc(var(--sidebar-width)*-1)',
|
|
4209
|
+
left: state === 'expanded' || collapsible === 'icon' ? '0' : 'calc(var(--sidebar-width)*-1)',
|
|
4146
4210
|
top: '0',
|
|
4147
4211
|
bottom: '0',
|
|
4148
4212
|
zIndex: 'var(--size-z-index-drawer)',
|
|
@@ -4151,7 +4215,7 @@ var Sidebar = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
|
|
|
4151
4215
|
transitionDuration: 'var(--sidebar-transition-duration, 200ms)',
|
|
4152
4216
|
animationDuration: 'var(--sidebar-transition-duration, 200ms)',
|
|
4153
4217
|
transitionProperty: 'left, right, width',
|
|
4154
|
-
width: 'var(--sidebar-width)',
|
|
4218
|
+
width: state === 'collapsed' && collapsible === 'icon' ? 'var(--sidebar-width-icon)' : 'var(--sidebar-width)',
|
|
4155
4219
|
height: '100svh'
|
|
4156
4220
|
}
|
|
4157
4221
|
}, props), React.createElement("div", {
|
|
@@ -4196,7 +4260,7 @@ var SidebarHeader = /*#__PURE__*/React.forwardRef(function (_ref5, ref) {
|
|
|
4196
4260
|
return React.createElement("div", _extends({
|
|
4197
4261
|
ref: ref,
|
|
4198
4262
|
"data-sidebar": "header",
|
|
4199
|
-
className: classNames('display-flex g-sm p-v-md p-h-md p-right-0-desktop', className)
|
|
4263
|
+
className: classNames('display-flex g-sm p-v-md p-h-md p-right-0-desktop overflow-hidden', className)
|
|
4200
4264
|
}, props));
|
|
4201
4265
|
});
|
|
4202
4266
|
SidebarHeader.displayName = 'SidebarHeader';
|
|
@@ -4206,7 +4270,7 @@ var SidebarFooter = /*#__PURE__*/React.forwardRef(function (_ref6, ref) {
|
|
|
4206
4270
|
return React.createElement("div", _extends({
|
|
4207
4271
|
ref: ref,
|
|
4208
4272
|
"data-sidebar": "footer",
|
|
4209
|
-
className: classNames('display-flex g-sm p-v-md p-h-md p-right-0-desktop', className)
|
|
4273
|
+
className: classNames('display-flex g-sm p-v-md p-h-md p-right-0-desktop overflow-hidden', className)
|
|
4210
4274
|
}, props));
|
|
4211
4275
|
});
|
|
4212
4276
|
SidebarFooter.displayName = 'SidebarFooter';
|
|
@@ -4216,7 +4280,11 @@ var SidebarContent = /*#__PURE__*/React.forwardRef(function (_ref7, ref) {
|
|
|
4216
4280
|
return React.createElement("div", _extends({
|
|
4217
4281
|
ref: ref,
|
|
4218
4282
|
"data-sidebar": "content",
|
|
4219
|
-
className: classNames('display-flex flex-direction-column g-xl minh-0 flex-auto
|
|
4283
|
+
className: classNames('display-flex flex-direction-column g-xl minh-0 flex-auto', className),
|
|
4284
|
+
style: {
|
|
4285
|
+
overflowX: 'hidden',
|
|
4286
|
+
overflowY: 'auto'
|
|
4287
|
+
}
|
|
4220
4288
|
}, props));
|
|
4221
4289
|
});
|
|
4222
4290
|
SidebarContent.displayName = 'SidebarContent';
|
|
@@ -4239,18 +4307,25 @@ var SidebarMenuItem = /*#__PURE__*/React.forwardRef(function (_ref9, ref) {
|
|
|
4239
4307
|
return React.createElement("li", _extends({
|
|
4240
4308
|
ref: ref,
|
|
4241
4309
|
"data-sidebar": "menu-item",
|
|
4242
|
-
className: classNames('font-size-sm position-relative', className)
|
|
4310
|
+
className: classNames('font-size-sm position-relative', className),
|
|
4311
|
+
style: {
|
|
4312
|
+
whiteSpace: 'nowrap'
|
|
4313
|
+
}
|
|
4243
4314
|
}, props));
|
|
4244
4315
|
});
|
|
4245
4316
|
SidebarMenuItem.displayName = 'SidebarMenuItem';
|
|
4246
|
-
var SidebarMenuButton = /*#__PURE__*/React.forwardRef(function (
|
|
4247
|
-
var
|
|
4248
|
-
asChild =
|
|
4249
|
-
|
|
4250
|
-
isActive =
|
|
4251
|
-
|
|
4252
|
-
|
|
4317
|
+
var SidebarMenuButton = /*#__PURE__*/React.forwardRef(function (_ref0, ref) {
|
|
4318
|
+
var _ref0$asChild = _ref0.asChild,
|
|
4319
|
+
asChild = _ref0$asChild === void 0 ? false : _ref0$asChild,
|
|
4320
|
+
_ref0$isActive = _ref0.isActive,
|
|
4321
|
+
isActive = _ref0$isActive === void 0 ? false : _ref0$isActive,
|
|
4322
|
+
tooltip = _ref0.tooltip,
|
|
4323
|
+
className = _ref0.className,
|
|
4324
|
+
props = _objectWithoutPropertiesLoose(_ref0, _excluded0);
|
|
4253
4325
|
var Comp = asChild ? reactSlot.Slot : 'button';
|
|
4326
|
+
var _useSidebar3 = useSidebar(),
|
|
4327
|
+
isMobile = _useSidebar3.isMobile,
|
|
4328
|
+
state = _useSidebar3.state;
|
|
4254
4329
|
var button = React.createElement(Comp, _extends({
|
|
4255
4330
|
ref: ref,
|
|
4256
4331
|
"data-sidebar": "menu-button",
|
|
@@ -4260,32 +4335,46 @@ var SidebarMenuButton = /*#__PURE__*/React.forwardRef(function (_ref10, ref) {
|
|
|
4260
4335
|
'background-color-transparent': !isActive
|
|
4261
4336
|
}, className)
|
|
4262
4337
|
}, props), props.children);
|
|
4263
|
-
|
|
4338
|
+
if (!tooltip) {
|
|
4339
|
+
return button;
|
|
4340
|
+
}
|
|
4341
|
+
if (typeof tooltip === 'string') {
|
|
4342
|
+
tooltip = {
|
|
4343
|
+
children: tooltip
|
|
4344
|
+
};
|
|
4345
|
+
}
|
|
4346
|
+
return React.createElement(Tooltip, null, React.createElement(TooltipTrigger, {
|
|
4347
|
+
asChild: true
|
|
4348
|
+
}, button), React.createElement(TooltipContent, _extends({
|
|
4349
|
+
side: "right",
|
|
4350
|
+
align: "center",
|
|
4351
|
+
hidden: state !== 'collapsed' || isMobile
|
|
4352
|
+
}, tooltip)));
|
|
4264
4353
|
});
|
|
4265
4354
|
SidebarMenuButton.displayName = 'SidebarMenuButton';
|
|
4266
|
-
var SidebarGroup = /*#__PURE__*/React.forwardRef(function (
|
|
4267
|
-
var className =
|
|
4268
|
-
props = _objectWithoutPropertiesLoose(
|
|
4355
|
+
var SidebarGroup = /*#__PURE__*/React.forwardRef(function (_ref1, ref) {
|
|
4356
|
+
var className = _ref1.className,
|
|
4357
|
+
props = _objectWithoutPropertiesLoose(_ref1, _excluded1);
|
|
4269
4358
|
return React.createElement("div", _extends({
|
|
4270
4359
|
ref: ref,
|
|
4271
4360
|
"data-sidebar": "group",
|
|
4272
|
-
className: classNames('position-relative p-h-md p-right-0-desktop display-flex w-100 minw-0 flex-direction-column', className)
|
|
4361
|
+
className: classNames('position-relative p-h-md p-right-0-desktop display-flex w-100 minw-0 flex-direction-column ', className)
|
|
4273
4362
|
}, props));
|
|
4274
4363
|
});
|
|
4275
4364
|
SidebarGroup.displayName = 'SidebarGroup';
|
|
4276
|
-
var SidebarGroupLabel = /*#__PURE__*/React.forwardRef(function (
|
|
4277
|
-
var className =
|
|
4278
|
-
props = _objectWithoutPropertiesLoose(
|
|
4365
|
+
var SidebarGroupLabel = /*#__PURE__*/React.forwardRef(function (_ref10, ref) {
|
|
4366
|
+
var className = _ref10.className,
|
|
4367
|
+
props = _objectWithoutPropertiesLoose(_ref10, _excluded10);
|
|
4279
4368
|
return React.createElement("div", _extends({
|
|
4280
4369
|
ref: ref,
|
|
4281
4370
|
"data-sidebar": "group-label",
|
|
4282
|
-
className: classNames('display-flex h-3xl align-items-center br-sm p-h-sm font-color-secondary font-size-xs font-weight-medium outline-none', className)
|
|
4371
|
+
className: classNames('group-data-collapsible-icon-hidden display-flex h-3xl align-items-center br-sm p-h-sm font-color-secondary font-size-xs font-weight-medium outline-none', className)
|
|
4283
4372
|
}, props));
|
|
4284
4373
|
});
|
|
4285
4374
|
SidebarGroupLabel.displayName = 'SidebarGroupLabel';
|
|
4286
|
-
var SidebarMenuSub = /*#__PURE__*/React.forwardRef(function (
|
|
4287
|
-
var className =
|
|
4288
|
-
props = _objectWithoutPropertiesLoose(
|
|
4375
|
+
var SidebarMenuSub = /*#__PURE__*/React.forwardRef(function (_ref11, ref) {
|
|
4376
|
+
var className = _ref11.className,
|
|
4377
|
+
props = _objectWithoutPropertiesLoose(_ref11, _excluded11);
|
|
4289
4378
|
return React.createElement("ul", _extends({
|
|
4290
4379
|
ref: ref,
|
|
4291
4380
|
"data-sidebar": "menu-sub",
|
|
@@ -4296,19 +4385,19 @@ var SidebarMenuSub = /*#__PURE__*/React.forwardRef(function (_ref13, ref) {
|
|
|
4296
4385
|
}, props));
|
|
4297
4386
|
});
|
|
4298
4387
|
SidebarMenuSub.displayName = 'SidebarMenuSub';
|
|
4299
|
-
var SidebarMenuSubItem = /*#__PURE__*/React.forwardRef(function (
|
|
4300
|
-
var props = _extends({}, (_objectDestructuringEmpty(
|
|
4388
|
+
var SidebarMenuSubItem = /*#__PURE__*/React.forwardRef(function (_ref12, ref) {
|
|
4389
|
+
var props = _extends({}, (_objectDestructuringEmpty(_ref12), _ref12));
|
|
4301
4390
|
return React.createElement("li", _extends({
|
|
4302
4391
|
ref: ref
|
|
4303
4392
|
}, props));
|
|
4304
4393
|
});
|
|
4305
4394
|
SidebarMenuSubItem.displayName = 'SidebarMenuSubItem';
|
|
4306
|
-
var SidebarMenuSubButton = /*#__PURE__*/React.forwardRef(function (
|
|
4307
|
-
var
|
|
4308
|
-
asChild =
|
|
4309
|
-
isActive =
|
|
4310
|
-
className =
|
|
4311
|
-
props = _objectWithoutPropertiesLoose(
|
|
4395
|
+
var SidebarMenuSubButton = /*#__PURE__*/React.forwardRef(function (_ref13, ref) {
|
|
4396
|
+
var _ref13$asChild = _ref13.asChild,
|
|
4397
|
+
asChild = _ref13$asChild === void 0 ? false : _ref13$asChild,
|
|
4398
|
+
isActive = _ref13.isActive,
|
|
4399
|
+
className = _ref13.className,
|
|
4400
|
+
props = _objectWithoutPropertiesLoose(_ref13, _excluded12);
|
|
4312
4401
|
var Comp = asChild ? reactSlot.Slot : 'a';
|
|
4313
4402
|
return React.createElement(Comp, _extends({
|
|
4314
4403
|
ref: ref,
|
|
@@ -4321,11 +4410,11 @@ var SidebarMenuSubButton = /*#__PURE__*/React.forwardRef(function (_ref15, ref)
|
|
|
4321
4410
|
}, props));
|
|
4322
4411
|
});
|
|
4323
4412
|
SidebarMenuSubButton.displayName = 'SidebarMenuSubButton';
|
|
4324
|
-
var SidebarMenuAction = /*#__PURE__*/React.forwardRef(function (
|
|
4325
|
-
var className =
|
|
4326
|
-
|
|
4327
|
-
asChild =
|
|
4328
|
-
props = _objectWithoutPropertiesLoose(
|
|
4413
|
+
var SidebarMenuAction = /*#__PURE__*/React.forwardRef(function (_ref14, ref) {
|
|
4414
|
+
var className = _ref14.className,
|
|
4415
|
+
_ref14$asChild = _ref14.asChild,
|
|
4416
|
+
asChild = _ref14$asChild === void 0 ? false : _ref14$asChild,
|
|
4417
|
+
props = _objectWithoutPropertiesLoose(_ref14, _excluded13);
|
|
4329
4418
|
var Comp = asChild ? reactSlot.Slot : 'button';
|
|
4330
4419
|
return React.createElement(Comp, _extends({
|
|
4331
4420
|
ref: ref,
|
|
@@ -4338,12 +4427,12 @@ var SidebarMenuAction = /*#__PURE__*/React.forwardRef(function (_ref16, ref) {
|
|
|
4338
4427
|
}, props));
|
|
4339
4428
|
});
|
|
4340
4429
|
SidebarMenuAction.displayName = 'SidebarMenuAction';
|
|
4341
|
-
var SidebarRail = /*#__PURE__*/React.forwardRef(function (
|
|
4342
|
-
var className =
|
|
4343
|
-
props = _objectWithoutPropertiesLoose(
|
|
4344
|
-
var
|
|
4345
|
-
open =
|
|
4346
|
-
toggleSidebar =
|
|
4430
|
+
var SidebarRail = /*#__PURE__*/React.forwardRef(function (_ref15, ref) {
|
|
4431
|
+
var className = _ref15.className,
|
|
4432
|
+
props = _objectWithoutPropertiesLoose(_ref15, _excluded14);
|
|
4433
|
+
var _useSidebar4 = useSidebar(),
|
|
4434
|
+
open = _useSidebar4.open,
|
|
4435
|
+
toggleSidebar = _useSidebar4.toggleSidebar;
|
|
4347
4436
|
var caretIcon = open ? 'caret-sm-left' : 'caret-sm-right';
|
|
4348
4437
|
return React.createElement("button", _extends({
|
|
4349
4438
|
ref: ref,
|
|
@@ -4383,13 +4472,13 @@ var SidebarRail = /*#__PURE__*/React.forwardRef(function (_ref17, ref) {
|
|
|
4383
4472
|
})));
|
|
4384
4473
|
});
|
|
4385
4474
|
SidebarRail.displayName = 'SidebarRail';
|
|
4386
|
-
var SidebarMenuBadge = /*#__PURE__*/React.forwardRef(function (
|
|
4387
|
-
var className =
|
|
4388
|
-
props = _objectWithoutPropertiesLoose(
|
|
4475
|
+
var SidebarMenuBadge = /*#__PURE__*/React.forwardRef(function (_ref16, ref) {
|
|
4476
|
+
var className = _ref16.className,
|
|
4477
|
+
props = _objectWithoutPropertiesLoose(_ref16, _excluded15);
|
|
4389
4478
|
return React.createElement("div", _extends({
|
|
4390
4479
|
ref: ref,
|
|
4391
4480
|
"data-sidebar": "menu-badge",
|
|
4392
|
-
className: classNames('position-absolute font-size-xs cursor-default lh-none p-xs font-color-base minw-0 align-items-center bw-0 br-sm outline-none background-color-transparent', className),
|
|
4481
|
+
className: classNames('group-data-collapsible-icon-hidden position-absolute font-size-xs cursor-default lh-none p-xs font-color-base minw-0 align-items-center bw-0 br-sm outline-none background-color-transparent', className),
|
|
4393
4482
|
style: {
|
|
4394
4483
|
top: 'var(--size-spacing-sm)',
|
|
4395
4484
|
right: 'var(--size-spacing-xs)'
|
|
@@ -4398,13 +4487,13 @@ var SidebarMenuBadge = /*#__PURE__*/React.forwardRef(function (_ref18, ref) {
|
|
|
4398
4487
|
});
|
|
4399
4488
|
SidebarMenuBadge.displayName = 'SidebarMenuBadge';
|
|
4400
4489
|
|
|
4401
|
-
var styles$
|
|
4490
|
+
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"};
|
|
4402
4491
|
|
|
4403
|
-
var styles$
|
|
4492
|
+
var styles$5 = {"table-body":"TableBody-module_table-body__Y5WbD","striped":"TableBody-module_striped__5MlEr","hover":"TableBody-module_hover__2CRgY"};
|
|
4404
4493
|
|
|
4405
|
-
var styles$
|
|
4494
|
+
var styles$4 = {"table-row":"TableRow-module_table-row__-Y9FQ","hoverable":"TableRow-module_hoverable__53-l9"};
|
|
4406
4495
|
|
|
4407
|
-
var styles$
|
|
4496
|
+
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"};
|
|
4408
4497
|
|
|
4409
4498
|
var TableBodyCell = function TableBodyCell(_ref) {
|
|
4410
4499
|
var _classNames;
|
|
@@ -4427,7 +4516,7 @@ var TableBodyCell = function TableBodyCell(_ref) {
|
|
|
4427
4516
|
_ref$width = _ref.width,
|
|
4428
4517
|
width = _ref$width === void 0 ? undefined : _ref$width;
|
|
4429
4518
|
var columnIsSticky = sticky === 'left' || sticky === 'right';
|
|
4430
|
-
var tableCellClasses = classNames(styles$
|
|
4519
|
+
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);
|
|
4431
4520
|
return React.createElement(Box, {
|
|
4432
4521
|
as: columnIsSticky ? 'th' : 'td',
|
|
4433
4522
|
className: tableCellClasses,
|
|
@@ -4441,7 +4530,7 @@ var TableBodyCell = function TableBodyCell(_ref) {
|
|
|
4441
4530
|
}, children === null || typeof children === 'undefined' || children === '' ? emptyCellPlaceholder : children);
|
|
4442
4531
|
};
|
|
4443
4532
|
|
|
4444
|
-
var styles$
|
|
4533
|
+
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"};
|
|
4445
4534
|
|
|
4446
4535
|
// eslint-disable-line import/prefer-default-export
|
|
4447
4536
|
var TableHeaderCell = function TableHeaderCell(_ref) {
|
|
@@ -4500,7 +4589,7 @@ var TableHeaderCell = function TableHeaderCell(_ref) {
|
|
|
4500
4589
|
});
|
|
4501
4590
|
};
|
|
4502
4591
|
return React.createElement("span", {
|
|
4503
|
-
className: styles$
|
|
4592
|
+
className: styles$2['sort-icon']
|
|
4504
4593
|
}, renderArrows());
|
|
4505
4594
|
};
|
|
4506
4595
|
var handleKeyPress = function handleKeyPress(event) {
|
|
@@ -4521,7 +4610,7 @@ var TableHeaderCell = function TableHeaderCell(_ref) {
|
|
|
4521
4610
|
});
|
|
4522
4611
|
onSort(eventWithKey);
|
|
4523
4612
|
};
|
|
4524
|
-
var tableHeaderClasses = classNames(styles$
|
|
4613
|
+
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);
|
|
4525
4614
|
return React.createElement(Box, {
|
|
4526
4615
|
as: "th",
|
|
4527
4616
|
display: "table-cell",
|
|
@@ -4533,7 +4622,7 @@ var TableHeaderCell = function TableHeaderCell(_ref) {
|
|
|
4533
4622
|
onKeyDown: handleKeyPress,
|
|
4534
4623
|
scope: "col"
|
|
4535
4624
|
}, React.createElement("div", {
|
|
4536
|
-
className: styles$
|
|
4625
|
+
className: styles$2.heading
|
|
4537
4626
|
}, column.heading, isSortable && renderIcon()));
|
|
4538
4627
|
};
|
|
4539
4628
|
|
|
@@ -4566,7 +4655,7 @@ var TableRow = function TableRow(_ref) {
|
|
|
4566
4655
|
rowIndex = _ref$rowIndex === void 0 ? undefined : _ref$rowIndex,
|
|
4567
4656
|
_ref$truncateOverflow = _ref.truncateOverflow,
|
|
4568
4657
|
truncateOverflow = _ref$truncateOverflow === void 0 ? false : _ref$truncateOverflow;
|
|
4569
|
-
var tableRowClasses = classNames(styles$
|
|
4658
|
+
var tableRowClasses = classNames(styles$4['table-row'], (_classNames = {}, _classNames[styles$4.hoverable] = isHoverable, _classNames), className);
|
|
4570
4659
|
var renderCellContent = function renderCellContent(column) {
|
|
4571
4660
|
if (column.render) {
|
|
4572
4661
|
var cellValue = column.dataKey && row ? row[column.dataKey] : undefined;
|
|
@@ -4635,7 +4724,7 @@ var TableBody = function TableBody(_ref) {
|
|
|
4635
4724
|
isStriped = _ref$isStriped === void 0 ? false : _ref$isStriped,
|
|
4636
4725
|
_ref$truncateOverflow = _ref.truncateOverflow,
|
|
4637
4726
|
truncateOverflow = _ref$truncateOverflow === void 0 ? false : _ref$truncateOverflow;
|
|
4638
|
-
var tableBodyClasses = classNames(styles$
|
|
4727
|
+
var tableBodyClasses = classNames(styles$5['table-body'], (_classNames = {}, _classNames[styles$5.striped] = isStriped, _classNames[styles$5.hover] = hoverableRows, _classNames), className);
|
|
4639
4728
|
return React.createElement("tbody", {
|
|
4640
4729
|
className: tableBodyClasses
|
|
4641
4730
|
}, rows.map(function (row, rowIndex) {
|
|
@@ -4720,13 +4809,13 @@ var Table = function Table(_ref) {
|
|
|
4720
4809
|
useFixedTableLayout = _ref$useFixedTableLay === void 0 ? false : _ref$useFixedTableLay,
|
|
4721
4810
|
_ref$truncateOverflow = _ref.truncateOverflow,
|
|
4722
4811
|
truncateOverflow = _ref$truncateOverflow === void 0 ? false : _ref$truncateOverflow;
|
|
4723
|
-
var containerClasses = classNames(styles$
|
|
4724
|
-
var scrollContainerClasses = classNames(styles$
|
|
4725
|
-
var tableClasses = classNames(styles$
|
|
4812
|
+
var containerClasses = classNames(styles$6.container, (_classNames = {}, _classNames[styles$6['full-height']] = !!(isScrollable != null && isScrollable.y), _classNames));
|
|
4813
|
+
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);
|
|
4814
|
+
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));
|
|
4726
4815
|
return React.createElement("div", {
|
|
4727
4816
|
className: containerClasses
|
|
4728
4817
|
}, isLoading && React.createElement("div", {
|
|
4729
|
-
className: styles$
|
|
4818
|
+
className: styles$6['loading-mask']
|
|
4730
4819
|
}, React.createElement(Spinner, {
|
|
4731
4820
|
size: "xl"
|
|
4732
4821
|
})), React.createElement("div", {
|
|
@@ -4757,7 +4846,7 @@ var Table = function Table(_ref) {
|
|
|
4757
4846
|
}))));
|
|
4758
4847
|
};
|
|
4759
4848
|
|
|
4760
|
-
var _excluded$
|
|
4849
|
+
var _excluded$2 = ["children", "defaultTheme", "storageKey"];
|
|
4761
4850
|
var initialState = {
|
|
4762
4851
|
theme: 'system',
|
|
4763
4852
|
setTheme: function setTheme() {
|
|
@@ -4771,7 +4860,7 @@ function ThemeProvider(_ref) {
|
|
|
4771
4860
|
defaultTheme = _ref$defaultTheme === void 0 ? 'system' : _ref$defaultTheme,
|
|
4772
4861
|
_ref$storageKey = _ref.storageKey,
|
|
4773
4862
|
storageKey = _ref$storageKey === void 0 ? 'hyphen-ui-theme' : _ref$storageKey,
|
|
4774
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4863
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$2);
|
|
4775
4864
|
var _useState = React.useState(function () {
|
|
4776
4865
|
return localStorage.getItem(storageKey) || defaultTheme;
|
|
4777
4866
|
}),
|
|
@@ -4801,13 +4890,13 @@ function ThemeProvider(_ref) {
|
|
|
4801
4890
|
}), children);
|
|
4802
4891
|
}
|
|
4803
4892
|
|
|
4804
|
-
var styles$
|
|
4893
|
+
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"};
|
|
4805
4894
|
|
|
4806
4895
|
var getAnimationClass = function getAnimationClass(position, visible) {
|
|
4807
4896
|
var verticalPosition = position.includes('top') ? 'top' : 'bottom';
|
|
4808
4897
|
var horizontalPosition = position.includes('left') ? 'left' : 'right';
|
|
4809
4898
|
var isCentered = position.includes('center');
|
|
4810
|
-
var _ref = prefersReducedMotion() ? [styles$
|
|
4899
|
+
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)]],
|
|
4811
4900
|
enter = _ref[0],
|
|
4812
4901
|
exit = _ref[1];
|
|
4813
4902
|
return visible ? enter : exit;
|
|
@@ -4841,7 +4930,7 @@ var renderDismissIcon = function renderDismissIcon(toast, onDismiss) {
|
|
|
4841
4930
|
return React.createElement(Box, {
|
|
4842
4931
|
as: "button",
|
|
4843
4932
|
borderWidth: "0",
|
|
4844
|
-
className: styles$
|
|
4933
|
+
className: styles$1['toast-dismiss'],
|
|
4845
4934
|
padding: "0 0 0 sm",
|
|
4846
4935
|
alignItems: "center",
|
|
4847
4936
|
justifyContent: "center",
|
|
@@ -4872,9 +4961,9 @@ var ToastNotification = /*#__PURE__*/React.memo(function (_ref2) {
|
|
|
4872
4961
|
}
|
|
4873
4962
|
}, toast.ariaProps), resolveValue(toast.message, toast));
|
|
4874
4963
|
var animationClass = toast != null && toast.height ? getAnimationClass(toast.position || position, toast.visible) : undefined;
|
|
4875
|
-
var classes = classNames(toast.className, styles$
|
|
4964
|
+
var classes = classNames(toast.className, styles$1['toast-notification'], animationClass, (_classNames = {
|
|
4876
4965
|
'toast-notification--not-visible': !toast.visible
|
|
4877
|
-
}, _classNames[styles$
|
|
4966
|
+
}, _classNames[styles$1['toast-error']] = toast.type === 'error', _classNames));
|
|
4878
4967
|
return React.createElement(Box, {
|
|
4879
4968
|
alignItems: "center",
|
|
4880
4969
|
maxWidth: "300px",
|
|
@@ -5247,7 +5336,7 @@ var useToasts = function useToasts(toastOptions) {
|
|
|
5247
5336
|
};
|
|
5248
5337
|
};
|
|
5249
5338
|
|
|
5250
|
-
var _excluded$
|
|
5339
|
+
var _excluded$1 = ["children", "containerStyle", "containerClassName", "gutter", "position", "reverseOrder", "toastOptions"];
|
|
5251
5340
|
var createRectRef = function createRectRef(onRect) {
|
|
5252
5341
|
return function (el) {
|
|
5253
5342
|
if (el) {
|
|
@@ -5308,7 +5397,7 @@ var ToastContainer = function ToastContainer(_ref) {
|
|
|
5308
5397
|
_ref$reverseOrder = _ref.reverseOrder,
|
|
5309
5398
|
reverseOrder = _ref$reverseOrder === void 0 ? false : _ref$reverseOrder,
|
|
5310
5399
|
toastOptions = _ref.toastOptions,
|
|
5311
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
5400
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$1);
|
|
5312
5401
|
var _useToasts = useToasts(toastOptions),
|
|
5313
5402
|
toasts = _useToasts.toasts,
|
|
5314
5403
|
handlers = _useToasts.handlers;
|
|
@@ -5346,41 +5435,21 @@ var ToastContainer = function ToastContainer(_ref) {
|
|
|
5346
5435
|
}));
|
|
5347
5436
|
};
|
|
5348
5437
|
|
|
5349
|
-
var styles
|
|
5438
|
+
var styles = {"item":"Toggle-module_item__NQ7iu","outline":"Toggle-module_outline__tR6T1"};
|
|
5350
5439
|
|
|
5351
|
-
var _excluded
|
|
5440
|
+
var _excluded = ["className", "variant", "children"];
|
|
5352
5441
|
var Toggle = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
5353
5442
|
var className = _ref.className,
|
|
5354
5443
|
_ref$variant = _ref.variant,
|
|
5355
5444
|
variant = _ref$variant === void 0 ? 'default' : _ref$variant,
|
|
5356
5445
|
children = _ref.children,
|
|
5357
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded
|
|
5446
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
5358
5447
|
return React.createElement(TogglePrimitive__namespace.Root, _extends({
|
|
5359
5448
|
ref: ref,
|
|
5360
|
-
className: classNames('br-sm display-flex g-sm p-sm', styles
|
|
5449
|
+
className: classNames('br-sm display-flex g-sm p-sm', styles.item, variant === 'outline' && styles.outline, className)
|
|
5361
5450
|
}, props), children);
|
|
5362
5451
|
});
|
|
5363
5452
|
|
|
5364
|
-
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"};
|
|
5365
|
-
|
|
5366
|
-
var _excluded = ["className", "sideOffset"];
|
|
5367
|
-
var TooltipProvider = TooltipPrimitive__namespace.Provider;
|
|
5368
|
-
var Tooltip = TooltipPrimitive__namespace.Root;
|
|
5369
|
-
var TooltipTrigger = TooltipPrimitive__namespace.Trigger;
|
|
5370
|
-
var TooltipPortal = TooltipPrimitive__namespace.Portal;
|
|
5371
|
-
var TooltipContent = /*#__PURE__*/React__namespace.forwardRef(function (_ref, ref) {
|
|
5372
|
-
var className = _ref.className,
|
|
5373
|
-
_ref$sideOffset = _ref.sideOffset,
|
|
5374
|
-
sideOffset = _ref$sideOffset === void 0 ? 4 : _ref$sideOffset,
|
|
5375
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
5376
|
-
return React__namespace.createElement(TooltipPrimitive__namespace.Content, _extends({
|
|
5377
|
-
ref: ref,
|
|
5378
|
-
sideOffset: sideOffset,
|
|
5379
|
-
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)
|
|
5380
|
-
}, props));
|
|
5381
|
-
});
|
|
5382
|
-
TooltipContent.displayName = TooltipPrimitive__namespace.Content.displayName;
|
|
5383
|
-
|
|
5384
5453
|
var useWindowSize = function useWindowSize() {
|
|
5385
5454
|
var _React$useContext = React.useContext(ResponsiveContext),
|
|
5386
5455
|
innerWidth = _React$useContext.innerWidth,
|
|
@@ -5531,6 +5600,7 @@ exports.FormikTextareaInputInset = FormikTextareaInputInset;
|
|
|
5531
5600
|
exports.FormikTimePicker = FormikTimePicker;
|
|
5532
5601
|
exports.FormikTimePickerNative = FormikTimePickerNative;
|
|
5533
5602
|
exports.FormikToggleGroup = FormikToggleGroup;
|
|
5603
|
+
exports.FormikToggleGroupMulti = FormikToggleGroupMulti;
|
|
5534
5604
|
exports.Heading = Heading;
|
|
5535
5605
|
exports.Icon = Icon;
|
|
5536
5606
|
exports.Modal = Modal;
|