@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
|
@@ -16,15 +16,15 @@ import ReactModal from 'react-modal';
|
|
|
16
16
|
import FocusLock from 'react-focus-lock';
|
|
17
17
|
import { RemoveScroll } from 'react-remove-scroll';
|
|
18
18
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
19
|
-
import { getIn } from 'formik';
|
|
19
|
+
import { getIn, useField, FieldArray } from 'formik';
|
|
20
20
|
import Select, { components } from 'react-select';
|
|
21
21
|
import AsyncCreatableSelect from 'react-select/async-creatable';
|
|
22
22
|
import AsyncSelect from 'react-select/async';
|
|
23
23
|
import CreatableSelect from 'react-select/creatable';
|
|
24
24
|
import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
|
|
25
|
+
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
25
26
|
import { v4 } from 'uuid';
|
|
26
27
|
import * as TogglePrimitive from '@radix-ui/react-toggle';
|
|
27
|
-
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
28
28
|
|
|
29
29
|
function _extends() {
|
|
30
30
|
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
@@ -42,7 +42,7 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
|
42
42
|
if (null == r) return {};
|
|
43
43
|
var t = {};
|
|
44
44
|
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
45
|
-
if (e.indexOf(n)
|
|
45
|
+
if (-1 !== e.indexOf(n)) continue;
|
|
46
46
|
t[n] = r[n];
|
|
47
47
|
}
|
|
48
48
|
return t;
|
|
@@ -254,7 +254,7 @@ Component, props, getDefault) {
|
|
|
254
254
|
|
|
255
255
|
var styles$A = {"box-transition":"Box-module_box-transition__eQx8C"};
|
|
256
256
|
|
|
257
|
-
var _excluded$
|
|
257
|
+
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"];
|
|
258
258
|
/**
|
|
259
259
|
* A `<Box>` is a layout component to build UIs with consistent padding and spacing between
|
|
260
260
|
* elements.
|
|
@@ -341,7 +341,7 @@ var Box = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
341
341
|
width = _ref$width === void 0 ? undefined : _ref$width,
|
|
342
342
|
_ref$zIndex = _ref.zIndex,
|
|
343
343
|
zIndex = _ref$zIndex === void 0 ? undefined : _ref$zIndex,
|
|
344
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
344
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$R);
|
|
345
345
|
var heightCss = getDimensionCss('h', height);
|
|
346
346
|
var widthCss = getDimensionCss('w', width);
|
|
347
347
|
var maxHeightCss = getDimensionCss('mh', maxHeight);
|
|
@@ -492,14 +492,14 @@ var Box = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
492
492
|
});
|
|
493
493
|
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'];
|
|
494
494
|
|
|
495
|
-
var _excluded$
|
|
495
|
+
var _excluded$Q = ["className", "name", "color", "size"];
|
|
496
496
|
var Icon = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
497
497
|
var _ref$className = _ref.className,
|
|
498
498
|
className = _ref$className === void 0 ? undefined : _ref$className,
|
|
499
499
|
name = _ref.name,
|
|
500
500
|
color = _ref.color,
|
|
501
501
|
size = _ref.size,
|
|
502
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
502
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$Q);
|
|
503
503
|
var IconComponent = icons[name];
|
|
504
504
|
if (!IconComponent) console.error("Icon '" + name + "' not found"); // eslint-disable-line no-console
|
|
505
505
|
var iconClasses = classNames(className, generateResponsiveClasses('font-color', color), generateResponsiveClasses('font-size', size));
|
|
@@ -538,7 +538,7 @@ var ALERT_ICONS_MAP = {
|
|
|
538
538
|
}
|
|
539
539
|
};
|
|
540
540
|
|
|
541
|
-
var _excluded$
|
|
541
|
+
var _excluded$P = ["className", "closeText", "hasIcon", "isCompact", "isClosable", "message", "onClose", "render", "title", "variant"];
|
|
542
542
|
var Alert = function Alert(_ref) {
|
|
543
543
|
var _ref$className = _ref.className,
|
|
544
544
|
className = _ref$className === void 0 ? '' : _ref$className,
|
|
@@ -560,7 +560,7 @@ var Alert = function Alert(_ref) {
|
|
|
560
560
|
title = _ref$title === void 0 ? '' : _ref$title,
|
|
561
561
|
_ref$variant = _ref.variant,
|
|
562
562
|
variant = _ref$variant === void 0 ? 'default' : _ref$variant,
|
|
563
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
563
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$P);
|
|
564
564
|
var handleClose = function handleClose(event) {
|
|
565
565
|
if (!onClose) return;
|
|
566
566
|
onClose(event);
|
|
@@ -614,7 +614,7 @@ var Alert = function Alert(_ref) {
|
|
|
614
614
|
|
|
615
615
|
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"};
|
|
616
616
|
|
|
617
|
-
var _excluded$
|
|
617
|
+
var _excluded$O = ["className", "message", "variant", "size"];
|
|
618
618
|
var Badge = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
619
619
|
var _classNames;
|
|
620
620
|
var _ref$className = _ref.className,
|
|
@@ -625,7 +625,7 @@ var Badge = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
625
625
|
variant = _ref$variant === void 0 ? 'light-grey' : _ref$variant,
|
|
626
626
|
_ref$size = _ref.size,
|
|
627
627
|
size = _ref$size === void 0 ? 'md' : _ref$size,
|
|
628
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
628
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$O);
|
|
629
629
|
var responsiveClasses = generateResponsiveClasses('size', size).map(function (c) {
|
|
630
630
|
return styles$y[c];
|
|
631
631
|
});
|
|
@@ -732,7 +732,7 @@ var Spinner = function Spinner(_ref) {
|
|
|
732
732
|
|
|
733
733
|
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"};
|
|
734
734
|
|
|
735
|
-
var _excluded$
|
|
735
|
+
var _excluded$N = ["asChild", "children", "className", "fullWidth", "iconPrefix", "iconSuffix", "isDisabled", "isLoading", "onClick", "onBlur", "onFocus", "shadow", "size", "type", "variant"];
|
|
736
736
|
var Button = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
737
737
|
var _classNames;
|
|
738
738
|
var asChild = _ref.asChild,
|
|
@@ -753,7 +753,7 @@ var Button = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
753
753
|
type = _ref$type === void 0 ? 'button' : _ref$type,
|
|
754
754
|
_ref$variant = _ref.variant,
|
|
755
755
|
variant = _ref$variant === void 0 ? 'primary' : _ref$variant,
|
|
756
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
756
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$N);
|
|
757
757
|
var disabled = isLoading || isDisabled;
|
|
758
758
|
var responsiveClasses = generateResponsiveClasses('size', size).map(function (c) {
|
|
759
759
|
return styles$w[c];
|
|
@@ -796,7 +796,7 @@ var Button = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
796
796
|
});
|
|
797
797
|
Button.displayName = 'Button';
|
|
798
798
|
|
|
799
|
-
var _excluded$
|
|
799
|
+
var _excluded$M = ["background", "borderColor", "borderWidth", "children", "display", "padding"];
|
|
800
800
|
var CardFooter = function CardFooter(_ref) {
|
|
801
801
|
var _ref$background = _ref.background,
|
|
802
802
|
background = _ref$background === void 0 ? 'secondary' : _ref$background,
|
|
@@ -810,7 +810,7 @@ var CardFooter = function CardFooter(_ref) {
|
|
|
810
810
|
display = _ref$display === void 0 ? 'block' : _ref$display,
|
|
811
811
|
_ref$padding = _ref.padding,
|
|
812
812
|
padding = _ref$padding === void 0 ? '2xl' : _ref$padding,
|
|
813
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
813
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$M);
|
|
814
814
|
return React__default.createElement(Box, _extends({
|
|
815
815
|
display: display,
|
|
816
816
|
padding: padding,
|
|
@@ -831,7 +831,7 @@ var HEADING_DEFAULT_SIZE_MAP = {
|
|
|
831
831
|
|
|
832
832
|
var styles$v = {"heading":"Heading-module_heading__zKyv7"};
|
|
833
833
|
|
|
834
|
-
var _excluded$
|
|
834
|
+
var _excluded$L = ["as", "children", "className", "color", "size"];
|
|
835
835
|
var Heading = function Heading(_ref) {
|
|
836
836
|
var _classNames;
|
|
837
837
|
var _ref$as = _ref.as,
|
|
@@ -840,7 +840,7 @@ var Heading = function Heading(_ref) {
|
|
|
840
840
|
className = _ref.className,
|
|
841
841
|
color = _ref.color,
|
|
842
842
|
size = _ref.size,
|
|
843
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
843
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$L);
|
|
844
844
|
var element = getElementType(Heading, {
|
|
845
845
|
as: as
|
|
846
846
|
});
|
|
@@ -851,12 +851,12 @@ var Heading = function Heading(_ref) {
|
|
|
851
851
|
}, restProps), children);
|
|
852
852
|
};
|
|
853
853
|
|
|
854
|
-
var _excluded$
|
|
854
|
+
var _excluded$K = ["children", "title", "description"];
|
|
855
855
|
var CardHeader = function CardHeader(_ref) {
|
|
856
856
|
var children = _ref.children,
|
|
857
857
|
title = _ref.title,
|
|
858
858
|
description = _ref.description,
|
|
859
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
859
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$K);
|
|
860
860
|
return React__default.createElement(Box, _extends({
|
|
861
861
|
padding: "2xl",
|
|
862
862
|
direction: "row",
|
|
@@ -879,7 +879,7 @@ var CardHeader = function CardHeader(_ref) {
|
|
|
879
879
|
|
|
880
880
|
var styles$u = {"card-section-border":"Card-module_card-section-border__OefDX"};
|
|
881
881
|
|
|
882
|
-
var _excluded$
|
|
882
|
+
var _excluded$J = ["background", "borderColor", "borderWidth", "children", "childGap", "gap", "className", "display", "padding", "subdued", "title"];
|
|
883
883
|
var CardSection = function CardSection(_ref) {
|
|
884
884
|
var _classNames;
|
|
885
885
|
var _ref$background = _ref.background,
|
|
@@ -904,7 +904,7 @@ var CardSection = function CardSection(_ref) {
|
|
|
904
904
|
subdued = _ref$subdued === void 0 ? undefined : _ref$subdued,
|
|
905
905
|
_ref$title = _ref.title,
|
|
906
906
|
title = _ref$title === void 0 ? undefined : _ref$title,
|
|
907
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
907
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$J);
|
|
908
908
|
var renderTitle = typeof title === 'string' ? React__default.createElement(Box, {
|
|
909
909
|
className: "m-bottom-md"
|
|
910
910
|
}, React__default.createElement(Box, {
|
|
@@ -927,7 +927,7 @@ var CardSection = function CardSection(_ref) {
|
|
|
927
927
|
}, children));
|
|
928
928
|
};
|
|
929
929
|
|
|
930
|
-
var _excluded$
|
|
930
|
+
var _excluded$I = ["children", "subdued", "overflow", "display", "width"];
|
|
931
931
|
var CardBaseComponent = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
932
932
|
var children = _ref.children,
|
|
933
933
|
subdued = _ref.subdued,
|
|
@@ -937,7 +937,7 @@ var CardBaseComponent = /*#__PURE__*/React__default.forwardRef(function (_ref, r
|
|
|
937
937
|
display = _ref$display === void 0 ? 'block' : _ref$display,
|
|
938
938
|
_ref$width = _ref.width,
|
|
939
939
|
width = _ref$width === void 0 ? '100' : _ref$width,
|
|
940
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
940
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$I);
|
|
941
941
|
return React__default.createElement(Box, _extends({
|
|
942
942
|
background: subdued ? 'secondary' : 'primary',
|
|
943
943
|
borderWidth: "sm",
|
|
@@ -960,7 +960,7 @@ var Card = /*#__PURE__*/function () {
|
|
|
960
960
|
return Card;
|
|
961
961
|
}();
|
|
962
962
|
|
|
963
|
-
var _excluded$
|
|
963
|
+
var _excluded$H = ["className", "error", "isChecked", "isDisabled", "isIndeterminate"];
|
|
964
964
|
var CheckboxIcon = function CheckboxIcon(_ref) {
|
|
965
965
|
var _ref$className = _ref.className,
|
|
966
966
|
className = _ref$className === void 0 ? undefined : _ref$className,
|
|
@@ -972,7 +972,7 @@ var CheckboxIcon = function CheckboxIcon(_ref) {
|
|
|
972
972
|
isDisabled = _ref$isDisabled === void 0 ? false : _ref$isDisabled,
|
|
973
973
|
_ref$isIndeterminate = _ref.isIndeterminate,
|
|
974
974
|
isIndeterminate = _ref$isIndeterminate === void 0 ? false : _ref$isIndeterminate,
|
|
975
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
975
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$H);
|
|
976
976
|
var color = 'base';
|
|
977
977
|
var name = 'checkbox-btn';
|
|
978
978
|
if (isChecked) name = 'checkbox-btn-checked';else name = 'checkbox-btn';
|
|
@@ -997,7 +997,7 @@ var CheckboxIcon = function CheckboxIcon(_ref) {
|
|
|
997
997
|
|
|
998
998
|
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"};
|
|
999
999
|
|
|
1000
|
-
var _excluded$
|
|
1000
|
+
var _excluded$G = ["className", "display", "id", "isChecked", "label", "labelledby", "onChange", "error", "isDisabled", "isHidden", "isIndeterminate", "isRequired", "onBlur", "onFocus", "size", "value"];
|
|
1001
1001
|
var Checkbox = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
1002
1002
|
var _ref2;
|
|
1003
1003
|
var _ref$className = _ref.className,
|
|
@@ -1027,7 +1027,7 @@ var Checkbox = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
|
1027
1027
|
size = _ref$size === void 0 ? 'md' : _ref$size,
|
|
1028
1028
|
_ref$value = _ref.value,
|
|
1029
1029
|
value = _ref$value === void 0 ? undefined : _ref$value,
|
|
1030
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1030
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$G);
|
|
1031
1031
|
var inputRef = React__default.useRef(null);
|
|
1032
1032
|
React__default.useEffect(function () {
|
|
1033
1033
|
if (inputRef != null && inputRef.current) {
|
|
@@ -1116,7 +1116,7 @@ var HelpText = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
1116
1116
|
}, children);
|
|
1117
1117
|
});
|
|
1118
1118
|
|
|
1119
|
-
var _excluded$
|
|
1119
|
+
var _excluded$F = ["children", "inputId", "className", "display", "helpText", "isDisabled", "isFieldRequired", "isRadioInputLabel", "requiredIndicator", "margin", "padding", "size"];
|
|
1120
1120
|
var FormLabel = function FormLabel(_ref) {
|
|
1121
1121
|
var _classNames;
|
|
1122
1122
|
var children = _ref.children,
|
|
@@ -1140,7 +1140,7 @@ var FormLabel = function FormLabel(_ref) {
|
|
|
1140
1140
|
padding = _ref$padding === void 0 ? '0' : _ref$padding,
|
|
1141
1141
|
_ref$size = _ref.size,
|
|
1142
1142
|
size = _ref$size === void 0 ? 'md' : _ref$size,
|
|
1143
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1143
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$F);
|
|
1144
1144
|
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));
|
|
1145
1145
|
return React__default.createElement(Box, _extends({
|
|
1146
1146
|
as: "label",
|
|
@@ -1153,7 +1153,7 @@ var FormLabel = function FormLabel(_ref) {
|
|
|
1153
1153
|
}, restProps), children, isFieldRequired && requiredIndicator && React__default.createElement("span", null, requiredIndicator), helpText && React__default.createElement(HelpText, null, helpText));
|
|
1154
1154
|
};
|
|
1155
1155
|
|
|
1156
|
-
var _excluded$
|
|
1156
|
+
var _excluded$E = ["id", "isChecked", "label", "onChange", "className", "error", "hideLabel", "helpText", "isDisabled", "isIndeterminate", "isRequired", "onBlur", "onFocus", "requiredIndicator", "size"];
|
|
1157
1157
|
var labelMarginSizeMap = {
|
|
1158
1158
|
sm: '2xs 0 0 0',
|
|
1159
1159
|
md: 'xs 0 0 0',
|
|
@@ -1198,7 +1198,7 @@ var CheckboxInput = function CheckboxInput(_ref2) {
|
|
|
1198
1198
|
requiredIndicator = _ref2$requiredIndicat === void 0 ? ' *' : _ref2$requiredIndicat,
|
|
1199
1199
|
_ref2$size = _ref2.size,
|
|
1200
1200
|
size = _ref2$size === void 0 ? 'md' : _ref2$size,
|
|
1201
|
-
restProps = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
1201
|
+
restProps = _objectWithoutPropertiesLoose(_ref2, _excluded$E);
|
|
1202
1202
|
var handleBlur = function handleBlur(event) {
|
|
1203
1203
|
if (onBlur) onBlur(event);
|
|
1204
1204
|
};
|
|
@@ -1246,7 +1246,7 @@ var CollapsibleContent = CollapsiblePrimitive.CollapsibleContent;
|
|
|
1246
1246
|
|
|
1247
1247
|
var styles$p = {};
|
|
1248
1248
|
|
|
1249
|
-
var _excluded$
|
|
1249
|
+
var _excluded$D = ["children", "dayClassName", "maxDate", "minDate", "monthsShown", "openToDate", "startDate", "selected", "selectsRange", "showTwoColumnMonthYearPicker", "showFullMonthYearPicker", "showMonthYearPicker", "className", "formatWeekDay"];
|
|
1250
1250
|
var DatePicker = function DatePicker(_ref) {
|
|
1251
1251
|
var _ref$children = _ref.children,
|
|
1252
1252
|
children = _ref$children === void 0 ? null : _ref$children,
|
|
@@ -1278,7 +1278,7 @@ var DatePicker = function DatePicker(_ref) {
|
|
|
1278
1278
|
formatWeekDay = _ref$formatWeekDay === void 0 ? function (formattedDate) {
|
|
1279
1279
|
return formattedDate[0];
|
|
1280
1280
|
} : _ref$formatWeekDay,
|
|
1281
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1281
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$D);
|
|
1282
1282
|
var datePickerClasses = classNames(styles$p['react-datepicker'], className);
|
|
1283
1283
|
return React__default.createElement(ReactDatePicker, _extends({
|
|
1284
1284
|
inline: true,
|
|
@@ -1298,7 +1298,7 @@ var DatePicker = function DatePicker(_ref) {
|
|
|
1298
1298
|
}, restProps), children);
|
|
1299
1299
|
};
|
|
1300
1300
|
|
|
1301
|
-
var _excluded$
|
|
1301
|
+
var _excluded$C = ["label", "hideLabel", "children", "error", "id", "isRequired", "helpText", "isDisabled", "requiredIndicator", "width"];
|
|
1302
1302
|
var FormControl = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
1303
1303
|
var label = _ref.label,
|
|
1304
1304
|
hideLabel = _ref.hideLabel,
|
|
@@ -1311,7 +1311,7 @@ var FormControl = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
|
1311
1311
|
requiredIndicator = _ref.requiredIndicator,
|
|
1312
1312
|
_ref$width = _ref.width,
|
|
1313
1313
|
width = _ref$width === void 0 ? '100' : _ref$width,
|
|
1314
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1314
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$C);
|
|
1315
1315
|
var labelProps = {
|
|
1316
1316
|
inputId: id,
|
|
1317
1317
|
helpText: helpText,
|
|
@@ -1339,7 +1339,7 @@ function getAutoCompleteValue(value) {
|
|
|
1339
1339
|
|
|
1340
1340
|
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"};
|
|
1341
1341
|
|
|
1342
|
-
var _excluded$
|
|
1342
|
+
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"];
|
|
1343
1343
|
var TextInput = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
1344
1344
|
var _ref2;
|
|
1345
1345
|
var id = _ref.id,
|
|
@@ -1383,7 +1383,7 @@ var TextInput = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
1383
1383
|
size = _ref$size === void 0 ? 'md' : _ref$size,
|
|
1384
1384
|
_ref$type = _ref.type,
|
|
1385
1385
|
type = _ref$type === void 0 ? 'text' : _ref$type,
|
|
1386
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1386
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$B);
|
|
1387
1387
|
var responsiveClasses = generateResponsiveClasses('size', size);
|
|
1388
1388
|
var inputWrapperClasses = classNames.apply(void 0, ['hyphen-components__variables__form-control', styles$o['text-input-wrapper']].concat(responsiveClasses.map(function (c) {
|
|
1389
1389
|
return styles$o[c];
|
|
@@ -1535,7 +1535,7 @@ var BREAKPOINTS = /*#__PURE__*/[].concat(Object.entries(designTokens.size.breakp
|
|
|
1535
1535
|
var Z_INDEX_VALUES = designTokens.size['z-index'];
|
|
1536
1536
|
// export const BOX_SHADOW_VALUES = designTokens.size['box-shadow'];
|
|
1537
1537
|
|
|
1538
|
-
var _excluded$
|
|
1538
|
+
var _excluded$A = ["className", "isOpen", "children", "content", "arrowColor", "contentContainerProps", "hasArrow", "offsetFromTarget", "onClickOutside", "placement", "withPortal", "portalTarget", "trapFocus"];
|
|
1539
1539
|
var contentContainerDefaults = {
|
|
1540
1540
|
background: 'primary',
|
|
1541
1541
|
padding: 'sm',
|
|
@@ -1564,7 +1564,7 @@ var Popover = function Popover(_ref) {
|
|
|
1564
1564
|
portalTarget = _ref.portalTarget,
|
|
1565
1565
|
_ref$trapFocus = _ref.trapFocus,
|
|
1566
1566
|
trapFocus = _ref$trapFocus === void 0 ? false : _ref$trapFocus,
|
|
1567
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1567
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$A);
|
|
1568
1568
|
var triggerRef = useRef(null);
|
|
1569
1569
|
var popperRef = useRef(null);
|
|
1570
1570
|
var _useState = useState(null),
|
|
@@ -1670,7 +1670,7 @@ var Popover = function Popover(_ref) {
|
|
|
1670
1670
|
withPortal && portalTarget ? createPortal(renderPopperContent(), portalTarget) : renderPopperContent()));
|
|
1671
1671
|
};
|
|
1672
1672
|
|
|
1673
|
-
var _excluded$
|
|
1673
|
+
var _excluded$z = ["datePickerProps", "textInputProps", "dateFormat", "dateOptions", "popoverProps"];
|
|
1674
1674
|
var defaultDatePickerProps = {
|
|
1675
1675
|
selected: null,
|
|
1676
1676
|
selectsRange: false
|
|
@@ -1690,7 +1690,7 @@ var DateInput = function DateInput(_ref) {
|
|
|
1690
1690
|
dateOptions = _ref$dateOptions === void 0 ? undefined : _ref$dateOptions,
|
|
1691
1691
|
_ref$popoverProps = _ref.popoverProps,
|
|
1692
1692
|
popoverProps = _ref$popoverProps === void 0 ? _extends({}, defaultPopoverProps) : _ref$popoverProps,
|
|
1693
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1693
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$z);
|
|
1694
1694
|
var mergedDatePickerProps = _extends({}, defaultDatePickerProps, datePickerProps);
|
|
1695
1695
|
var mergedPopoverProps = _extends({}, defaultPopoverProps, popoverProps);
|
|
1696
1696
|
var mergedTextInputProps = _extends({}, defaultTextInputProps, textInputProps);
|
|
@@ -1767,14 +1767,14 @@ var DateInput = function DateInput(_ref) {
|
|
|
1767
1767
|
var ENTER = 13;
|
|
1768
1768
|
var SPACE = 32;
|
|
1769
1769
|
|
|
1770
|
-
var _excluded$
|
|
1770
|
+
var _excluded$y = ["children", "display", "isDetailsOpen", "onToggle"];
|
|
1771
1771
|
var DetailsSummary = function DetailsSummary(_ref) {
|
|
1772
1772
|
var children = _ref.children,
|
|
1773
1773
|
_ref$display = _ref.display,
|
|
1774
1774
|
display = _ref$display === void 0 ? 'block' : _ref$display,
|
|
1775
1775
|
isDetailsOpen = _ref.isDetailsOpen,
|
|
1776
1776
|
onToggle = _ref.onToggle,
|
|
1777
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1777
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$y);
|
|
1778
1778
|
var handleClick = function handleClick(event) {
|
|
1779
1779
|
// Needed to avoid default `details` behavior on a click event and keep this as controlled component.
|
|
1780
1780
|
event.preventDefault();
|
|
@@ -1812,14 +1812,14 @@ var DetailsSummary = function DetailsSummary(_ref) {
|
|
|
1812
1812
|
|
|
1813
1813
|
var styles$m = {"details-reset":"Details-module_details-reset__HWtSD"};
|
|
1814
1814
|
|
|
1815
|
-
var _excluded$
|
|
1815
|
+
var _excluded$x = ["children", "className", "display", "isOpen"];
|
|
1816
1816
|
var DetailsBaseComponent = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
1817
1817
|
var children = _ref.children,
|
|
1818
1818
|
className = _ref.className,
|
|
1819
1819
|
_ref$display = _ref.display,
|
|
1820
1820
|
display = _ref$display === void 0 ? 'block' : _ref$display,
|
|
1821
1821
|
isOpen = _ref.isOpen,
|
|
1822
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1822
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$x);
|
|
1823
1823
|
var detailsClasses = classNames(className, styles$m['details-reset'], styles$m.details);
|
|
1824
1824
|
return React__default.createElement(Box, _extends({
|
|
1825
1825
|
as: "details",
|
|
@@ -1839,7 +1839,7 @@ var Details = /*#__PURE__*/function () {
|
|
|
1839
1839
|
|
|
1840
1840
|
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"};
|
|
1841
1841
|
|
|
1842
|
-
var _excluded$
|
|
1842
|
+
var _excluded$w = ["defaultIsOpen", "open", "onOpenChange", "className", "children"],
|
|
1843
1843
|
_excluded2$3 = ["asChild", "onClick"],
|
|
1844
1844
|
_excluded3$2 = ["className"],
|
|
1845
1845
|
_excluded4$2 = ["className", "onClick", "onClose"],
|
|
@@ -1859,7 +1859,7 @@ var DrawerProvider = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
1859
1859
|
setOpenProp = _ref.onOpenChange,
|
|
1860
1860
|
className = _ref.className,
|
|
1861
1861
|
children = _ref.children,
|
|
1862
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1862
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$w);
|
|
1863
1863
|
var _useState = useState(openProp != null ? openProp : defaultIsOpen),
|
|
1864
1864
|
_open = _useState[0],
|
|
1865
1865
|
_setOpen = _useState[1];
|
|
@@ -2083,7 +2083,7 @@ var DrawerContent = /*#__PURE__*/React__default.forwardRef(function (_ref7, ref)
|
|
|
2083
2083
|
}, props));
|
|
2084
2084
|
});
|
|
2085
2085
|
|
|
2086
|
-
var _excluded$
|
|
2086
|
+
var _excluded$v = ["className", "inset"],
|
|
2087
2087
|
_excluded2$2 = ["className", "sideOffset"],
|
|
2088
2088
|
_excluded3$1 = ["className", "inset"],
|
|
2089
2089
|
_excluded4$1 = ["className"],
|
|
@@ -2099,7 +2099,7 @@ var DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
|
|
|
2099
2099
|
var DropdownMenuItem = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
2100
2100
|
var className = _ref.className,
|
|
2101
2101
|
inset = _ref.inset,
|
|
2102
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2102
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$v);
|
|
2103
2103
|
return React__default.createElement(DropdownMenuPrimitive.Item, _extends({
|
|
2104
2104
|
ref: ref,
|
|
2105
2105
|
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)
|
|
@@ -2179,7 +2179,7 @@ var DropdownMenuSubContent = /*#__PURE__*/React__default.forwardRef(function (_r
|
|
|
2179
2179
|
});
|
|
2180
2180
|
DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
|
2181
2181
|
|
|
2182
|
-
var _excluded$
|
|
2182
|
+
var _excluded$u = ["field", "form", "onChange", "id", "label"];
|
|
2183
2183
|
var FormikCheckboxInput = function FormikCheckboxInput(_ref) {
|
|
2184
2184
|
var _ref$field = _ref.field,
|
|
2185
2185
|
name = _ref$field.name,
|
|
@@ -2192,7 +2192,7 @@ var FormikCheckboxInput = function FormikCheckboxInput(_ref) {
|
|
|
2192
2192
|
onChange = _ref.onChange,
|
|
2193
2193
|
id = _ref.id,
|
|
2194
2194
|
label = _ref.label,
|
|
2195
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2195
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$u);
|
|
2196
2196
|
return React__default.createElement(CheckboxInput, _extends({}, props, {
|
|
2197
2197
|
id: id,
|
|
2198
2198
|
label: label,
|
|
@@ -2203,7 +2203,7 @@ var FormikCheckboxInput = function FormikCheckboxInput(_ref) {
|
|
|
2203
2203
|
}));
|
|
2204
2204
|
};
|
|
2205
2205
|
|
|
2206
|
-
var _excluded$
|
|
2206
|
+
var _excluded$t = ["className", "isSelected", "isDisabled", "error"];
|
|
2207
2207
|
var RadioInputIcon = function RadioInputIcon(_ref) {
|
|
2208
2208
|
var _ref$className = _ref.className,
|
|
2209
2209
|
className = _ref$className === void 0 ? undefined : _ref$className,
|
|
@@ -2213,7 +2213,7 @@ var RadioInputIcon = function RadioInputIcon(_ref) {
|
|
|
2213
2213
|
isDisabled = _ref$isDisabled === void 0 ? false : _ref$isDisabled,
|
|
2214
2214
|
_ref$error = _ref.error,
|
|
2215
2215
|
error = _ref$error === void 0 ? null : _ref$error,
|
|
2216
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2216
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$t);
|
|
2217
2217
|
var color = 'secondary';
|
|
2218
2218
|
var name = 'radio-btn-unchecked';
|
|
2219
2219
|
if (isSelected && isDisabled) {
|
|
@@ -2306,7 +2306,7 @@ var RadioInput = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
|
2306
2306
|
|
|
2307
2307
|
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-"};
|
|
2308
2308
|
|
|
2309
|
-
var _excluded$
|
|
2309
|
+
var _excluded$s = ["name", "onChange", "options", "className", "description", "direction", "error", "isDisabled", "isRequired", "onBlur", "onFocus", "requiredIndicator", "size", "title", "value"];
|
|
2310
2310
|
var RadioGroup = function RadioGroup(_ref) {
|
|
2311
2311
|
var _classNames;
|
|
2312
2312
|
var name = _ref.name,
|
|
@@ -2336,7 +2336,7 @@ var RadioGroup = function RadioGroup(_ref) {
|
|
|
2336
2336
|
title = _ref$title === void 0 ? undefined : _ref$title,
|
|
2337
2337
|
_ref$value = _ref.value,
|
|
2338
2338
|
value = _ref$value === void 0 ? undefined : _ref$value,
|
|
2339
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2339
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$s);
|
|
2340
2340
|
var groupClasses = classNames('hyphen-components__variables__form-control', className, (_classNames = {}, _classNames[styles$j.loading] = error, _classNames));
|
|
2341
2341
|
return React__default.createElement("div", _extends({
|
|
2342
2342
|
className: classNames(styles$j['radio-group'], groupClasses)
|
|
@@ -2366,7 +2366,7 @@ var RadioGroup = function RadioGroup(_ref) {
|
|
|
2366
2366
|
}))), error && typeof error !== 'boolean' && React__default.createElement(InputValidationMessage, null, error));
|
|
2367
2367
|
};
|
|
2368
2368
|
|
|
2369
|
-
var _excluded$
|
|
2369
|
+
var _excluded$r = ["field", "form", "onChange", "options"];
|
|
2370
2370
|
var FormikRadioGroup = function FormikRadioGroup(_ref) {
|
|
2371
2371
|
var _ref$field = _ref.field,
|
|
2372
2372
|
name = _ref$field.name,
|
|
@@ -2378,7 +2378,7 @@ var FormikRadioGroup = function FormikRadioGroup(_ref) {
|
|
|
2378
2378
|
errors = _ref$form.errors,
|
|
2379
2379
|
onChange = _ref.onChange,
|
|
2380
2380
|
options = _ref.options,
|
|
2381
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2381
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$r);
|
|
2382
2382
|
return React__default.createElement(RadioGroup, _extends({}, props, {
|
|
2383
2383
|
options: options,
|
|
2384
2384
|
name: name,
|
|
@@ -2391,7 +2391,7 @@ var FormikRadioGroup = function FormikRadioGroup(_ref) {
|
|
|
2391
2391
|
|
|
2392
2392
|
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"};
|
|
2393
2393
|
|
|
2394
|
-
var _excluded$
|
|
2394
|
+
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"];
|
|
2395
2395
|
function SelectInput(props) {
|
|
2396
2396
|
var _ref, _classNames;
|
|
2397
2397
|
var id = props.id,
|
|
@@ -2434,7 +2434,7 @@ function SelectInput(props) {
|
|
|
2434
2434
|
requiredIndicator = _props$requiredIndica === void 0 ? ' *' : _props$requiredIndica,
|
|
2435
2435
|
_props$size = props.size,
|
|
2436
2436
|
size = _props$size === void 0 ? 'md' : _props$size,
|
|
2437
|
-
restProps = _objectWithoutPropertiesLoose(props, _excluded$
|
|
2437
|
+
restProps = _objectWithoutPropertiesLoose(props, _excluded$q);
|
|
2438
2438
|
var handleChange = function handleChange(values) {
|
|
2439
2439
|
var simulatedEventPayloadType = {
|
|
2440
2440
|
target: {
|
|
@@ -2507,7 +2507,7 @@ function SelectInput(props) {
|
|
|
2507
2507
|
})), error && typeof error !== 'boolean' && React__default.createElement(InputValidationMessage, null, error));
|
|
2508
2508
|
}
|
|
2509
2509
|
|
|
2510
|
-
var _excluded$
|
|
2510
|
+
var _excluded$p = ["field", "form", "onChange", "id", "label", "options", "error"];
|
|
2511
2511
|
var FormikSelectInput = function FormikSelectInput(_ref) {
|
|
2512
2512
|
var _ref$field = _ref.field,
|
|
2513
2513
|
name = _ref$field.name,
|
|
@@ -2522,7 +2522,7 @@ var FormikSelectInput = function FormikSelectInput(_ref) {
|
|
|
2522
2522
|
label = _ref.label,
|
|
2523
2523
|
options = _ref.options,
|
|
2524
2524
|
errorProp = _ref.error,
|
|
2525
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2525
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$p);
|
|
2526
2526
|
var errorMessage;
|
|
2527
2527
|
var error = errorProp != null ? errorProp : getIn(touched, name) && getIn(errors, name);
|
|
2528
2528
|
if (typeof error === 'string') {
|
|
@@ -2650,7 +2650,7 @@ var SelectInputInset = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
2650
2650
|
}, label, isRequired && requiredIndicator && React__default.createElement("span", null, requiredIndicator))), helpText && React__default.createElement(HelpText, null, helpText), error && error !== true && React__default.createElement(InputValidationMessage, null, error));
|
|
2651
2651
|
});
|
|
2652
2652
|
|
|
2653
|
-
var _excluded$
|
|
2653
|
+
var _excluded$o = ["field", "form", "onChange", "id", "label", "options"];
|
|
2654
2654
|
var FormikSelectInputInset = function FormikSelectInputInset(_ref) {
|
|
2655
2655
|
var _ref$field = _ref.field,
|
|
2656
2656
|
name = _ref$field.name,
|
|
@@ -2664,7 +2664,7 @@ var FormikSelectInputInset = function FormikSelectInputInset(_ref) {
|
|
|
2664
2664
|
id = _ref.id,
|
|
2665
2665
|
label = _ref.label,
|
|
2666
2666
|
options = _ref.options,
|
|
2667
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2667
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$o);
|
|
2668
2668
|
return React__default.createElement(SelectInputInset, _extends({}, props, {
|
|
2669
2669
|
id: id,
|
|
2670
2670
|
label: label,
|
|
@@ -2762,7 +2762,7 @@ var TextareaInputInset = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
2762
2762
|
}, label, isRequired && requiredIndicator && React__default.createElement("span", null, requiredIndicator))), helpText && React__default.createElement(HelpText, null, helpText), error && error !== true && React__default.createElement(InputValidationMessage, null, error));
|
|
2763
2763
|
});
|
|
2764
2764
|
|
|
2765
|
-
var _excluded$
|
|
2765
|
+
var _excluded$n = ["field", "form", "onChange", "id", "label"];
|
|
2766
2766
|
var FormikTextareaInputInset = function FormikTextareaInputInset(_ref) {
|
|
2767
2767
|
var _ref$field = _ref.field,
|
|
2768
2768
|
name = _ref$field.name,
|
|
@@ -2775,7 +2775,7 @@ var FormikTextareaInputInset = function FormikTextareaInputInset(_ref) {
|
|
|
2775
2775
|
onChange = _ref.onChange,
|
|
2776
2776
|
id = _ref.id,
|
|
2777
2777
|
label = _ref.label,
|
|
2778
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2778
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$n);
|
|
2779
2779
|
return React__default.createElement(TextareaInputInset, _extends({}, props, {
|
|
2780
2780
|
id: id,
|
|
2781
2781
|
label: label,
|
|
@@ -2902,7 +2902,7 @@ var TextInputInset = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
2902
2902
|
}, suffix)), helpText && React__default.createElement(HelpText, null, helpText), error && error !== true && React__default.createElement(InputValidationMessage, null, error));
|
|
2903
2903
|
});
|
|
2904
2904
|
|
|
2905
|
-
var _excluded$
|
|
2905
|
+
var _excluded$m = ["field", "form", "onChange", "id", "label"];
|
|
2906
2906
|
var FormikTextInputInset = function FormikTextInputInset(_ref) {
|
|
2907
2907
|
var _ref$field = _ref.field,
|
|
2908
2908
|
name = _ref$field.name,
|
|
@@ -2915,7 +2915,7 @@ var FormikTextInputInset = function FormikTextInputInset(_ref) {
|
|
|
2915
2915
|
onChange = _ref.onChange,
|
|
2916
2916
|
id = _ref.id,
|
|
2917
2917
|
label = _ref.label,
|
|
2918
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2918
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$m);
|
|
2919
2919
|
return React__default.createElement(TextInputInset, _extends({}, props, {
|
|
2920
2920
|
id: id,
|
|
2921
2921
|
label: label,
|
|
@@ -2929,7 +2929,7 @@ var FormikTextInputInset = function FormikTextInputInset(_ref) {
|
|
|
2929
2929
|
|
|
2930
2930
|
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"};
|
|
2931
2931
|
|
|
2932
|
-
var _excluded$
|
|
2932
|
+
var _excluded$l = ["autoFocus", "label", "hideLabel", "helpText", "error", "id", "isDisabled", "isRequired", "name", "value", "options", "onChange", "placeholder", "requiredIndicator", "size"];
|
|
2933
2933
|
var SelectInputNative = function SelectInputNative(_ref) {
|
|
2934
2934
|
var _ref2;
|
|
2935
2935
|
var _ref$autoFocus = _ref.autoFocus,
|
|
@@ -2951,7 +2951,7 @@ var SelectInputNative = function SelectInputNative(_ref) {
|
|
|
2951
2951
|
requiredIndicator = _ref$requiredIndicato === void 0 ? ' *' : _ref$requiredIndicato,
|
|
2952
2952
|
_ref$size = _ref.size,
|
|
2953
2953
|
size = _ref$size === void 0 ? 'md' : _ref$size,
|
|
2954
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2954
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$l);
|
|
2955
2955
|
var placeholderOption = {
|
|
2956
2956
|
value: '',
|
|
2957
2957
|
label: placeholder
|
|
@@ -2997,7 +2997,7 @@ var SelectInputNative = function SelectInputNative(_ref) {
|
|
|
2997
2997
|
}))));
|
|
2998
2998
|
};
|
|
2999
2999
|
|
|
3000
|
-
var _excluded$
|
|
3000
|
+
var _excluded$k = ["field", "form", "onChange", "options", "id", "label"];
|
|
3001
3001
|
var FormikSelectInputNative = function FormikSelectInputNative(_ref) {
|
|
3002
3002
|
var _ref$field = _ref.field,
|
|
3003
3003
|
name = _ref$field.name,
|
|
@@ -3011,7 +3011,7 @@ var FormikSelectInputNative = function FormikSelectInputNative(_ref) {
|
|
|
3011
3011
|
options = _ref.options,
|
|
3012
3012
|
id = _ref.id,
|
|
3013
3013
|
label = _ref.label,
|
|
3014
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3014
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$k);
|
|
3015
3015
|
return React__default.createElement(SelectInputNative, _extends({}, props, {
|
|
3016
3016
|
options: options,
|
|
3017
3017
|
id: id,
|
|
@@ -3024,7 +3024,7 @@ var FormikSelectInputNative = function FormikSelectInputNative(_ref) {
|
|
|
3024
3024
|
}));
|
|
3025
3025
|
};
|
|
3026
3026
|
|
|
3027
|
-
var _excluded$
|
|
3027
|
+
var _excluded$j = ["field", "form", "onChange", "id", "label"];
|
|
3028
3028
|
var FormikTextInput = function FormikTextInput(_ref) {
|
|
3029
3029
|
var _ref$field = _ref.field,
|
|
3030
3030
|
name = _ref$field.name,
|
|
@@ -3037,7 +3037,7 @@ var FormikTextInput = function FormikTextInput(_ref) {
|
|
|
3037
3037
|
onChange = _ref.onChange,
|
|
3038
3038
|
id = _ref.id,
|
|
3039
3039
|
label = _ref.label,
|
|
3040
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3040
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$j);
|
|
3041
3041
|
return React__default.createElement(TextInput, _extends({}, props, {
|
|
3042
3042
|
id: id,
|
|
3043
3043
|
label: label,
|
|
@@ -3051,7 +3051,7 @@ var FormikTextInput = function FormikTextInput(_ref) {
|
|
|
3051
3051
|
|
|
3052
3052
|
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"};
|
|
3053
3053
|
|
|
3054
|
-
var _excluded$
|
|
3054
|
+
var _excluded$i = ["id", "label", "onChange", "value", "autoComplete", "autoFocus", "className", "error", "helpText", "hideLabel", "isDisabled", "isRequired", "maxLength", "name", "onBlur", "onFocus", "placeholder", "requiredIndicator", "resize", "rows", "size"];
|
|
3055
3055
|
var TextareaInput = function TextareaInput(_ref) {
|
|
3056
3056
|
var _ref2;
|
|
3057
3057
|
var id = _ref.id,
|
|
@@ -3091,7 +3091,7 @@ var TextareaInput = function TextareaInput(_ref) {
|
|
|
3091
3091
|
rows = _ref$rows === void 0 ? 3 : _ref$rows,
|
|
3092
3092
|
_ref$size = _ref.size,
|
|
3093
3093
|
size = _ref$size === void 0 ? 'md' : _ref$size,
|
|
3094
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3094
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$i);
|
|
3095
3095
|
var responsiveClasses = generateResponsiveClasses('size', size);
|
|
3096
3096
|
var inputWrapperClasses = classNames.apply(void 0, ['hyphen-components__variables__form-control', styles$d['textarea-input-wrapper']].concat(responsiveClasses.map(function (c) {
|
|
3097
3097
|
return styles$d[c];
|
|
@@ -3135,7 +3135,7 @@ var TextareaInput = function TextareaInput(_ref) {
|
|
|
3135
3135
|
}, inputProps))), error && error !== true && React__default.createElement(InputValidationMessage, null, error));
|
|
3136
3136
|
};
|
|
3137
3137
|
|
|
3138
|
-
var _excluded$
|
|
3138
|
+
var _excluded$h = ["field", "form", "onChange", "id", "label"];
|
|
3139
3139
|
var FormikTextareaInput = function FormikTextareaInput(_ref) {
|
|
3140
3140
|
var _ref$field = _ref.field,
|
|
3141
3141
|
name = _ref$field.name,
|
|
@@ -3148,7 +3148,7 @@ var FormikTextareaInput = function FormikTextareaInput(_ref) {
|
|
|
3148
3148
|
onChange = _ref.onChange,
|
|
3149
3149
|
id = _ref.id,
|
|
3150
3150
|
label = _ref.label,
|
|
3151
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3151
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$h);
|
|
3152
3152
|
return React__default.createElement(TextareaInput, _extends({}, props, {
|
|
3153
3153
|
id: id,
|
|
3154
3154
|
label: label,
|
|
@@ -3160,7 +3160,7 @@ var FormikTextareaInput = function FormikTextareaInput(_ref) {
|
|
|
3160
3160
|
}));
|
|
3161
3161
|
};
|
|
3162
3162
|
|
|
3163
|
-
var _excluded$
|
|
3163
|
+
var _excluded$g = ["id", "name", "label", "onChange", "value", "dateDisplayOptions", "endTime", "interval", "locales", "placeholder", "startTime"];
|
|
3164
3164
|
var TimePicker = function TimePicker(_ref) {
|
|
3165
3165
|
var id = _ref.id,
|
|
3166
3166
|
name = _ref.name,
|
|
@@ -3182,7 +3182,7 @@ var TimePicker = function TimePicker(_ref) {
|
|
|
3182
3182
|
placeholder = _ref$placeholder === void 0 ? 'HH:MM' : _ref$placeholder,
|
|
3183
3183
|
_ref$startTime = _ref.startTime,
|
|
3184
3184
|
startTime = _ref$startTime === void 0 ? undefined : _ref$startTime,
|
|
3185
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3185
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$g);
|
|
3186
3186
|
var generateTimes = function generateTimes() {
|
|
3187
3187
|
var first = new Date();
|
|
3188
3188
|
first.setHours((startTime == null ? void 0 : startTime.hour) || 0, (startTime == null ? void 0 : startTime.minute) || 0, 0, 0);
|
|
@@ -3210,7 +3210,7 @@ var TimePicker = function TimePicker(_ref) {
|
|
|
3210
3210
|
}));
|
|
3211
3211
|
};
|
|
3212
3212
|
|
|
3213
|
-
var _excluded$
|
|
3213
|
+
var _excluded$f = ["field", "form", "options", "onChange"];
|
|
3214
3214
|
var FormikTimePicker = function FormikTimePicker(_ref) {
|
|
3215
3215
|
var _ref$field = _ref.field,
|
|
3216
3216
|
name = _ref$field.name,
|
|
@@ -3222,7 +3222,7 @@ var FormikTimePicker = function FormikTimePicker(_ref) {
|
|
|
3222
3222
|
errors = _ref$form.errors,
|
|
3223
3223
|
options = _ref.options,
|
|
3224
3224
|
onChange = _ref.onChange,
|
|
3225
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3225
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$f);
|
|
3226
3226
|
return React__default.createElement(TimePicker, _extends({}, props, {
|
|
3227
3227
|
name: name,
|
|
3228
3228
|
onBlur: onBlur,
|
|
@@ -3233,7 +3233,7 @@ var FormikTimePicker = function FormikTimePicker(_ref) {
|
|
|
3233
3233
|
}));
|
|
3234
3234
|
};
|
|
3235
3235
|
|
|
3236
|
-
var _excluded$
|
|
3236
|
+
var _excluded$e = ["id", "name", "label", "onChange", "value", "dateDisplayOptions", "endTime", "interval", "locales", "placeholder", "startTime"];
|
|
3237
3237
|
var TimePickerNative = function TimePickerNative(_ref) {
|
|
3238
3238
|
var id = _ref.id,
|
|
3239
3239
|
name = _ref.name,
|
|
@@ -3255,7 +3255,7 @@ var TimePickerNative = function TimePickerNative(_ref) {
|
|
|
3255
3255
|
placeholder = _ref$placeholder === void 0 ? 'HH:MM' : _ref$placeholder,
|
|
3256
3256
|
_ref$startTime = _ref.startTime,
|
|
3257
3257
|
startTime = _ref$startTime === void 0 ? undefined : _ref$startTime,
|
|
3258
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3258
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$e);
|
|
3259
3259
|
var generateTimes = function generateTimes() {
|
|
3260
3260
|
var first = new Date();
|
|
3261
3261
|
first.setHours((startTime == null ? void 0 : startTime.hour) || 0, (startTime == null ? void 0 : startTime.minute) || 0, 0, 0);
|
|
@@ -3284,7 +3284,7 @@ var TimePickerNative = function TimePickerNative(_ref) {
|
|
|
3284
3284
|
}));
|
|
3285
3285
|
};
|
|
3286
3286
|
|
|
3287
|
-
var _excluded$
|
|
3287
|
+
var _excluded$d = ["field", "form", "onChange"];
|
|
3288
3288
|
var FormikTimePickerNative = function FormikTimePickerNative(_ref) {
|
|
3289
3289
|
var _ref$field = _ref.field,
|
|
3290
3290
|
name = _ref$field.name,
|
|
@@ -3295,7 +3295,7 @@ var FormikTimePickerNative = function FormikTimePickerNative(_ref) {
|
|
|
3295
3295
|
touched = _ref$form.touched,
|
|
3296
3296
|
errors = _ref$form.errors,
|
|
3297
3297
|
onChange = _ref.onChange,
|
|
3298
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3298
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$d);
|
|
3299
3299
|
return React__default.createElement(TimePickerNative, _extends({}, props, {
|
|
3300
3300
|
name: name,
|
|
3301
3301
|
onBlur: onBlur,
|
|
@@ -3397,7 +3397,7 @@ var Switch = function Switch(_ref) {
|
|
|
3397
3397
|
}, helpText)))), error && error !== true && React__default.createElement(InputValidationMessage, null, error));
|
|
3398
3398
|
};
|
|
3399
3399
|
|
|
3400
|
-
var _excluded$
|
|
3400
|
+
var _excluded$c = ["field", "form"];
|
|
3401
3401
|
var FormikSwitch = function FormikSwitch(_ref) {
|
|
3402
3402
|
var _ref$field = _ref.field,
|
|
3403
3403
|
name = _ref$field.name,
|
|
@@ -3407,7 +3407,7 @@ var FormikSwitch = function FormikSwitch(_ref) {
|
|
|
3407
3407
|
_ref$form = _ref.form,
|
|
3408
3408
|
touched = _ref$form.touched,
|
|
3409
3409
|
errors = _ref$form.errors,
|
|
3410
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3410
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$c);
|
|
3411
3411
|
return React__default.createElement(Switch, _extends({
|
|
3412
3412
|
error: getIn(touched, name) && getIn(errors, name),
|
|
3413
3413
|
isChecked: value,
|
|
@@ -3418,7 +3418,7 @@ var FormikSwitch = function FormikSwitch(_ref) {
|
|
|
3418
3418
|
|
|
3419
3419
|
var styles$b = {"item":"ToggleGroup-module_item__dIBO0","outline":"ToggleGroup-module_outline__d5OlO"};
|
|
3420
3420
|
|
|
3421
|
-
var _excluded$
|
|
3421
|
+
var _excluded$b = ["className", "variant", "children", "gap", "error"],
|
|
3422
3422
|
_excluded2$1 = ["className", "children", "value", "variant"];
|
|
3423
3423
|
var ToggleGroupContext = /*#__PURE__*/createContext({
|
|
3424
3424
|
variant: 'default'
|
|
@@ -3431,7 +3431,7 @@ var ToggleGroup = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
3431
3431
|
_ref$gap = _ref.gap,
|
|
3432
3432
|
gap = _ref$gap === void 0 ? 'xs' : _ref$gap,
|
|
3433
3433
|
error = _ref.error,
|
|
3434
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3434
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$b);
|
|
3435
3435
|
return React__default.createElement("div", null, React__default.createElement(ToggleGroupPrimitive.Root, _extends({
|
|
3436
3436
|
ref: ref,
|
|
3437
3437
|
className: classNames('display-flex align-items-center justify-content-start', className, cssShorthandToClasses('g', gap))
|
|
@@ -3458,7 +3458,7 @@ var ToggleGroupItem = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
3458
3458
|
});
|
|
3459
3459
|
ToggleGroupItem.displayName = ToggleGroupPrimitive.Item.displayName;
|
|
3460
3460
|
|
|
3461
|
-
var _excluded$
|
|
3461
|
+
var _excluded$a = ["field", "form", "options", "helpText", "label", "children"];
|
|
3462
3462
|
var FormikToggleGroup = function FormikToggleGroup(_ref) {
|
|
3463
3463
|
var _ref$field = _ref.field,
|
|
3464
3464
|
name = _ref$field.name,
|
|
@@ -3472,7 +3472,7 @@ var FormikToggleGroup = function FormikToggleGroup(_ref) {
|
|
|
3472
3472
|
helpText = _ref.helpText,
|
|
3473
3473
|
label = _ref.label,
|
|
3474
3474
|
children = _ref.children,
|
|
3475
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
3475
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$a);
|
|
3476
3476
|
return React__default.createElement(Box, {
|
|
3477
3477
|
gap: "sm"
|
|
3478
3478
|
}, (label || helpText) && React__default.createElement("div", null, label && React__default.createElement(Box, {
|
|
@@ -3496,6 +3496,47 @@ var FormikToggleGroup = function FormikToggleGroup(_ref) {
|
|
|
3496
3496
|
})));
|
|
3497
3497
|
};
|
|
3498
3498
|
|
|
3499
|
+
var _excluded$9 = ["name", "options", "helpText", "label", "children", "variant"];
|
|
3500
|
+
var FormikToggleGroupMulti = function FormikToggleGroupMulti(_ref) {
|
|
3501
|
+
var name = _ref.name,
|
|
3502
|
+
options = _ref.options,
|
|
3503
|
+
helpText = _ref.helpText,
|
|
3504
|
+
label = _ref.label,
|
|
3505
|
+
children = _ref.children,
|
|
3506
|
+
variant = _ref.variant,
|
|
3507
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$9);
|
|
3508
|
+
var _useField = useField(name),
|
|
3509
|
+
field = _useField[0],
|
|
3510
|
+
meta = _useField[1],
|
|
3511
|
+
helpers = _useField[2];
|
|
3512
|
+
return React__default.createElement(Box, {
|
|
3513
|
+
gap: "sm"
|
|
3514
|
+
}, (label || helpText) && React__default.createElement("div", null, label && React__default.createElement(Box, {
|
|
3515
|
+
fontSize: "sm"
|
|
3516
|
+
}, label), helpText && React__default.createElement(HelpText, null, helpText)), React__default.createElement(FieldArray, {
|
|
3517
|
+
name: name
|
|
3518
|
+
}, function () {
|
|
3519
|
+
return React__default.createElement(ToggleGroup, _extends({}, props, {
|
|
3520
|
+
name: name,
|
|
3521
|
+
onValueChange: function onValueChange(selectedValues) {
|
|
3522
|
+
helpers.setValue(selectedValues);
|
|
3523
|
+
helpers.setTouched(true);
|
|
3524
|
+
},
|
|
3525
|
+
value: field.value,
|
|
3526
|
+
error: meta.error,
|
|
3527
|
+
type: "multiple",
|
|
3528
|
+
variant: variant
|
|
3529
|
+
}), children ? children : options.map(function (option) {
|
|
3530
|
+
return React__default.createElement(ToggleGroupItem, {
|
|
3531
|
+
key: option.id,
|
|
3532
|
+
id: option.id,
|
|
3533
|
+
value: option.value,
|
|
3534
|
+
disabled: !!option.disabled
|
|
3535
|
+
}, option.label);
|
|
3536
|
+
}));
|
|
3537
|
+
}));
|
|
3538
|
+
};
|
|
3539
|
+
|
|
3499
3540
|
var _excluded$8 = ["children", "padding", "direction", "alignItems", "justifyContent", "gap", "style"];
|
|
3500
3541
|
var ModalFooter = function ModalFooter(_ref) {
|
|
3501
3542
|
var children = _ref.children,
|
|
@@ -3934,9 +3975,29 @@ function useIsMobile() {
|
|
|
3934
3975
|
return !!isMobile;
|
|
3935
3976
|
}
|
|
3936
3977
|
|
|
3937
|
-
var styles$8 = {"rail":"Sidebar-module_rail__nWu0Q"};
|
|
3978
|
+
var styles$8 = {"rail":"Sidebar-module_rail__nWu0Q","group-data-":"Sidebar-module_group-data-__GTJmR"};
|
|
3938
3979
|
|
|
3939
|
-
var
|
|
3980
|
+
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"};
|
|
3981
|
+
|
|
3982
|
+
var _excluded$4 = ["className", "sideOffset"];
|
|
3983
|
+
var TooltipProvider = TooltipPrimitive.Provider;
|
|
3984
|
+
var Tooltip = TooltipPrimitive.Root;
|
|
3985
|
+
var TooltipTrigger = TooltipPrimitive.Trigger;
|
|
3986
|
+
var TooltipPortal = TooltipPrimitive.Portal;
|
|
3987
|
+
var TooltipContent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
3988
|
+
var className = _ref.className,
|
|
3989
|
+
_ref$sideOffset = _ref.sideOffset,
|
|
3990
|
+
sideOffset = _ref$sideOffset === void 0 ? 4 : _ref$sideOffset,
|
|
3991
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$4);
|
|
3992
|
+
return React.createElement(TooltipPrimitive.Content, _extends({
|
|
3993
|
+
ref: ref,
|
|
3994
|
+
sideOffset: sideOffset,
|
|
3995
|
+
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)
|
|
3996
|
+
}, props));
|
|
3997
|
+
});
|
|
3998
|
+
TooltipContent.displayName = TooltipPrimitive.Content.displayName;
|
|
3999
|
+
|
|
4000
|
+
var _excluded$3 = ["defaultOpen", "open", "onOpenChange", "className", "style", "children"],
|
|
3940
4001
|
_excluded2 = ["side", "collapsible", "className", "children"],
|
|
3941
4002
|
_excluded3 = ["className", "onClick"],
|
|
3942
4003
|
_excluded4 = ["className"],
|
|
@@ -3945,18 +4006,18 @@ var _excluded$4 = ["defaultOpen", "open", "onOpenChange", "className", "style",
|
|
|
3945
4006
|
_excluded7 = ["className"],
|
|
3946
4007
|
_excluded8 = ["className"],
|
|
3947
4008
|
_excluded9 = ["className"],
|
|
3948
|
-
|
|
4009
|
+
_excluded0 = ["asChild", "isActive", "icon", "tooltip", "className"],
|
|
4010
|
+
_excluded1 = ["className"],
|
|
4011
|
+
_excluded10 = ["className"],
|
|
3949
4012
|
_excluded11 = ["className"],
|
|
3950
|
-
_excluded12 = ["className"],
|
|
3951
|
-
_excluded13 = ["className"],
|
|
3952
|
-
_excluded14 = ["
|
|
3953
|
-
_excluded15 = ["className"
|
|
3954
|
-
|
|
3955
|
-
_excluded17 = ["className"];
|
|
3956
|
-
var SIDEBAR_COOKIE_NAME = 'sidebar:state';
|
|
4013
|
+
_excluded12 = ["asChild", "isActive", "className"],
|
|
4014
|
+
_excluded13 = ["className", "asChild"],
|
|
4015
|
+
_excluded14 = ["className"],
|
|
4016
|
+
_excluded15 = ["className"];
|
|
4017
|
+
var SIDEBAR_COOKIE_NAME = 'sidebar_expanded';
|
|
3957
4018
|
var SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
|
|
3958
4019
|
var SIDEBAR_WIDTH = '16rem';
|
|
3959
|
-
var SIDEBAR_WIDTH_ICON = '
|
|
4020
|
+
var SIDEBAR_WIDTH_ICON = '44px';
|
|
3960
4021
|
var SIDEBAR_KEYBOARD_SHORTCUT = '[';
|
|
3961
4022
|
var SidebarContext = /*#__PURE__*/React__default.createContext(null);
|
|
3962
4023
|
function useSidebar() {
|
|
@@ -3974,7 +4035,7 @@ var SidebarProvider = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
3974
4035
|
className = _ref.className,
|
|
3975
4036
|
style = _ref.style,
|
|
3976
4037
|
children = _ref.children,
|
|
3977
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4038
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$3);
|
|
3978
4039
|
var isMobile = useIsMobile();
|
|
3979
4040
|
var _useState = useState(function () {
|
|
3980
4041
|
return isMobile ? false : openProp != null ? openProp : defaultOpen;
|
|
@@ -4042,6 +4103,8 @@ var SidebarProvider = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
4042
4103
|
}, [state, open, setOpen, isMobile, openMobile, setOpenMobile, toggleSidebar]);
|
|
4043
4104
|
return React__default.createElement(SidebarContext.Provider, {
|
|
4044
4105
|
value: contextValue
|
|
4106
|
+
}, React__default.createElement(TooltipProvider, {
|
|
4107
|
+
delayDuration: 0
|
|
4045
4108
|
}, React__default.createElement("div", _extends({
|
|
4046
4109
|
style: _extends({
|
|
4047
4110
|
'--sidebar-width': SIDEBAR_WIDTH,
|
|
@@ -4050,7 +4113,7 @@ var SidebarProvider = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
4050
4113
|
}, style),
|
|
4051
4114
|
className: classNames('display-flex w-100 background-color-secondary', className),
|
|
4052
4115
|
ref: ref
|
|
4053
|
-
}, props), children));
|
|
4116
|
+
}, props), children)));
|
|
4054
4117
|
});
|
|
4055
4118
|
SidebarProvider.displayName = 'SidebarProvider';
|
|
4056
4119
|
var Sidebar = /*#__PURE__*/React__default.forwardRef(function (_ref2, ref) {
|
|
@@ -4081,7 +4144,7 @@ var Sidebar = /*#__PURE__*/React__default.forwardRef(function (_ref2, ref) {
|
|
|
4081
4144
|
}
|
|
4082
4145
|
if (collapsible === 'none') {
|
|
4083
4146
|
return React__default.createElement("div", _extends({
|
|
4084
|
-
className: classNames('display-flex h-100 font-size-xs flex-direction-column background-color-secondary font-color-base', className),
|
|
4147
|
+
className: classNames('group display-flex h-100 font-size-xs flex-direction-column background-color-secondary font-color-base', className),
|
|
4085
4148
|
style: {
|
|
4086
4149
|
width: 'var(--sidebar-width)'
|
|
4087
4150
|
},
|
|
@@ -4100,7 +4163,8 @@ var Sidebar = /*#__PURE__*/React__default.forwardRef(function (_ref2, ref) {
|
|
|
4100
4163
|
position: "relative",
|
|
4101
4164
|
"data-state": state,
|
|
4102
4165
|
"data-collapsible": collapsible,
|
|
4103
|
-
"data-side": side
|
|
4166
|
+
"data-side": side,
|
|
4167
|
+
className: "group"
|
|
4104
4168
|
}, React__default.createElement("div", {
|
|
4105
4169
|
style: {
|
|
4106
4170
|
animationTimingFunction: 'var(--sidebar-transition-timing, linear)',
|
|
@@ -4108,14 +4172,14 @@ var Sidebar = /*#__PURE__*/React__default.forwardRef(function (_ref2, ref) {
|
|
|
4108
4172
|
transitionDuration: 'var(--sidebar-transition-duration, 200ms)',
|
|
4109
4173
|
animationDuration: 'var(--sidebar-transition-duration, 200ms)',
|
|
4110
4174
|
transitionProperty: 'width',
|
|
4111
|
-
width: state === 'collapsed' ? '0' : 'var(--sidebar-width)',
|
|
4175
|
+
width: state === 'collapsed' && collapsible === 'icon' ? 'var(--sidebar-width-icon)' : state === 'collapsed' ? '0' : 'var(--sidebar-width)',
|
|
4112
4176
|
height: '100svh'
|
|
4113
4177
|
},
|
|
4114
4178
|
className: classNames('position-relative', className)
|
|
4115
4179
|
}), React__default.createElement("div", _extends({
|
|
4116
4180
|
className: classNames('position-absolute display-none display-flex-desktop ', className),
|
|
4117
4181
|
style: {
|
|
4118
|
-
left: state === 'expanded' ? '0' : 'calc(var(--sidebar-width)*-1)',
|
|
4182
|
+
left: state === 'expanded' || collapsible === 'icon' ? '0' : 'calc(var(--sidebar-width)*-1)',
|
|
4119
4183
|
top: '0',
|
|
4120
4184
|
bottom: '0',
|
|
4121
4185
|
zIndex: 'var(--size-z-index-drawer)',
|
|
@@ -4124,7 +4188,7 @@ var Sidebar = /*#__PURE__*/React__default.forwardRef(function (_ref2, ref) {
|
|
|
4124
4188
|
transitionDuration: 'var(--sidebar-transition-duration, 200ms)',
|
|
4125
4189
|
animationDuration: 'var(--sidebar-transition-duration, 200ms)',
|
|
4126
4190
|
transitionProperty: 'left, right, width',
|
|
4127
|
-
width: 'var(--sidebar-width)',
|
|
4191
|
+
width: state === 'collapsed' && collapsible === 'icon' ? 'var(--sidebar-width-icon)' : 'var(--sidebar-width)',
|
|
4128
4192
|
height: '100svh'
|
|
4129
4193
|
}
|
|
4130
4194
|
}, props), React__default.createElement("div", {
|
|
@@ -4169,7 +4233,7 @@ var SidebarHeader = /*#__PURE__*/React__default.forwardRef(function (_ref5, ref)
|
|
|
4169
4233
|
return React__default.createElement("div", _extends({
|
|
4170
4234
|
ref: ref,
|
|
4171
4235
|
"data-sidebar": "header",
|
|
4172
|
-
className: classNames('display-flex g-sm p-v-md p-h-md p-right-0-desktop', className)
|
|
4236
|
+
className: classNames('display-flex g-sm p-v-md p-h-md p-right-0-desktop overflow-hidden', className)
|
|
4173
4237
|
}, props));
|
|
4174
4238
|
});
|
|
4175
4239
|
SidebarHeader.displayName = 'SidebarHeader';
|
|
@@ -4179,7 +4243,7 @@ var SidebarFooter = /*#__PURE__*/React__default.forwardRef(function (_ref6, ref)
|
|
|
4179
4243
|
return React__default.createElement("div", _extends({
|
|
4180
4244
|
ref: ref,
|
|
4181
4245
|
"data-sidebar": "footer",
|
|
4182
|
-
className: classNames('display-flex g-sm p-v-md p-h-md p-right-0-desktop', className)
|
|
4246
|
+
className: classNames('display-flex g-sm p-v-md p-h-md p-right-0-desktop overflow-hidden', className)
|
|
4183
4247
|
}, props));
|
|
4184
4248
|
});
|
|
4185
4249
|
SidebarFooter.displayName = 'SidebarFooter';
|
|
@@ -4189,7 +4253,11 @@ var SidebarContent = /*#__PURE__*/React__default.forwardRef(function (_ref7, ref
|
|
|
4189
4253
|
return React__default.createElement("div", _extends({
|
|
4190
4254
|
ref: ref,
|
|
4191
4255
|
"data-sidebar": "content",
|
|
4192
|
-
className: classNames('display-flex flex-direction-column g-xl minh-0 flex-auto
|
|
4256
|
+
className: classNames('display-flex flex-direction-column g-xl minh-0 flex-auto', className),
|
|
4257
|
+
style: {
|
|
4258
|
+
overflowX: 'hidden',
|
|
4259
|
+
overflowY: 'auto'
|
|
4260
|
+
}
|
|
4193
4261
|
}, props));
|
|
4194
4262
|
});
|
|
4195
4263
|
SidebarContent.displayName = 'SidebarContent';
|
|
@@ -4212,18 +4280,25 @@ var SidebarMenuItem = /*#__PURE__*/React__default.forwardRef(function (_ref9, re
|
|
|
4212
4280
|
return React__default.createElement("li", _extends({
|
|
4213
4281
|
ref: ref,
|
|
4214
4282
|
"data-sidebar": "menu-item",
|
|
4215
|
-
className: classNames('font-size-sm position-relative', className)
|
|
4283
|
+
className: classNames('font-size-sm position-relative', className),
|
|
4284
|
+
style: {
|
|
4285
|
+
whiteSpace: 'nowrap'
|
|
4286
|
+
}
|
|
4216
4287
|
}, props));
|
|
4217
4288
|
});
|
|
4218
4289
|
SidebarMenuItem.displayName = 'SidebarMenuItem';
|
|
4219
|
-
var SidebarMenuButton = /*#__PURE__*/React__default.forwardRef(function (
|
|
4220
|
-
var
|
|
4221
|
-
asChild =
|
|
4222
|
-
|
|
4223
|
-
isActive =
|
|
4224
|
-
|
|
4225
|
-
|
|
4290
|
+
var SidebarMenuButton = /*#__PURE__*/React__default.forwardRef(function (_ref0, ref) {
|
|
4291
|
+
var _ref0$asChild = _ref0.asChild,
|
|
4292
|
+
asChild = _ref0$asChild === void 0 ? false : _ref0$asChild,
|
|
4293
|
+
_ref0$isActive = _ref0.isActive,
|
|
4294
|
+
isActive = _ref0$isActive === void 0 ? false : _ref0$isActive,
|
|
4295
|
+
tooltip = _ref0.tooltip,
|
|
4296
|
+
className = _ref0.className,
|
|
4297
|
+
props = _objectWithoutPropertiesLoose(_ref0, _excluded0);
|
|
4226
4298
|
var Comp = asChild ? Slot : 'button';
|
|
4299
|
+
var _useSidebar3 = useSidebar(),
|
|
4300
|
+
isMobile = _useSidebar3.isMobile,
|
|
4301
|
+
state = _useSidebar3.state;
|
|
4227
4302
|
var button = React__default.createElement(Comp, _extends({
|
|
4228
4303
|
ref: ref,
|
|
4229
4304
|
"data-sidebar": "menu-button",
|
|
@@ -4233,32 +4308,46 @@ var SidebarMenuButton = /*#__PURE__*/React__default.forwardRef(function (_ref10,
|
|
|
4233
4308
|
'background-color-transparent': !isActive
|
|
4234
4309
|
}, className)
|
|
4235
4310
|
}, props), props.children);
|
|
4236
|
-
|
|
4311
|
+
if (!tooltip) {
|
|
4312
|
+
return button;
|
|
4313
|
+
}
|
|
4314
|
+
if (typeof tooltip === 'string') {
|
|
4315
|
+
tooltip = {
|
|
4316
|
+
children: tooltip
|
|
4317
|
+
};
|
|
4318
|
+
}
|
|
4319
|
+
return React__default.createElement(Tooltip, null, React__default.createElement(TooltipTrigger, {
|
|
4320
|
+
asChild: true
|
|
4321
|
+
}, button), React__default.createElement(TooltipContent, _extends({
|
|
4322
|
+
side: "right",
|
|
4323
|
+
align: "center",
|
|
4324
|
+
hidden: state !== 'collapsed' || isMobile
|
|
4325
|
+
}, tooltip)));
|
|
4237
4326
|
});
|
|
4238
4327
|
SidebarMenuButton.displayName = 'SidebarMenuButton';
|
|
4239
|
-
var SidebarGroup = /*#__PURE__*/React__default.forwardRef(function (
|
|
4240
|
-
var className =
|
|
4241
|
-
props = _objectWithoutPropertiesLoose(
|
|
4328
|
+
var SidebarGroup = /*#__PURE__*/React__default.forwardRef(function (_ref1, ref) {
|
|
4329
|
+
var className = _ref1.className,
|
|
4330
|
+
props = _objectWithoutPropertiesLoose(_ref1, _excluded1);
|
|
4242
4331
|
return React__default.createElement("div", _extends({
|
|
4243
4332
|
ref: ref,
|
|
4244
4333
|
"data-sidebar": "group",
|
|
4245
|
-
className: classNames('position-relative p-h-md p-right-0-desktop display-flex w-100 minw-0 flex-direction-column', className)
|
|
4334
|
+
className: classNames('position-relative p-h-md p-right-0-desktop display-flex w-100 minw-0 flex-direction-column ', className)
|
|
4246
4335
|
}, props));
|
|
4247
4336
|
});
|
|
4248
4337
|
SidebarGroup.displayName = 'SidebarGroup';
|
|
4249
|
-
var SidebarGroupLabel = /*#__PURE__*/React__default.forwardRef(function (
|
|
4250
|
-
var className =
|
|
4251
|
-
props = _objectWithoutPropertiesLoose(
|
|
4338
|
+
var SidebarGroupLabel = /*#__PURE__*/React__default.forwardRef(function (_ref10, ref) {
|
|
4339
|
+
var className = _ref10.className,
|
|
4340
|
+
props = _objectWithoutPropertiesLoose(_ref10, _excluded10);
|
|
4252
4341
|
return React__default.createElement("div", _extends({
|
|
4253
4342
|
ref: ref,
|
|
4254
4343
|
"data-sidebar": "group-label",
|
|
4255
|
-
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)
|
|
4344
|
+
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)
|
|
4256
4345
|
}, props));
|
|
4257
4346
|
});
|
|
4258
4347
|
SidebarGroupLabel.displayName = 'SidebarGroupLabel';
|
|
4259
|
-
var SidebarMenuSub = /*#__PURE__*/React__default.forwardRef(function (
|
|
4260
|
-
var className =
|
|
4261
|
-
props = _objectWithoutPropertiesLoose(
|
|
4348
|
+
var SidebarMenuSub = /*#__PURE__*/React__default.forwardRef(function (_ref11, ref) {
|
|
4349
|
+
var className = _ref11.className,
|
|
4350
|
+
props = _objectWithoutPropertiesLoose(_ref11, _excluded11);
|
|
4262
4351
|
return React__default.createElement("ul", _extends({
|
|
4263
4352
|
ref: ref,
|
|
4264
4353
|
"data-sidebar": "menu-sub",
|
|
@@ -4269,19 +4358,19 @@ var SidebarMenuSub = /*#__PURE__*/React__default.forwardRef(function (_ref13, re
|
|
|
4269
4358
|
}, props));
|
|
4270
4359
|
});
|
|
4271
4360
|
SidebarMenuSub.displayName = 'SidebarMenuSub';
|
|
4272
|
-
var SidebarMenuSubItem = /*#__PURE__*/React__default.forwardRef(function (
|
|
4273
|
-
var props = _extends({}, (_objectDestructuringEmpty(
|
|
4361
|
+
var SidebarMenuSubItem = /*#__PURE__*/React__default.forwardRef(function (_ref12, ref) {
|
|
4362
|
+
var props = _extends({}, (_objectDestructuringEmpty(_ref12), _ref12));
|
|
4274
4363
|
return React__default.createElement("li", _extends({
|
|
4275
4364
|
ref: ref
|
|
4276
4365
|
}, props));
|
|
4277
4366
|
});
|
|
4278
4367
|
SidebarMenuSubItem.displayName = 'SidebarMenuSubItem';
|
|
4279
|
-
var SidebarMenuSubButton = /*#__PURE__*/React__default.forwardRef(function (
|
|
4280
|
-
var
|
|
4281
|
-
asChild =
|
|
4282
|
-
isActive =
|
|
4283
|
-
className =
|
|
4284
|
-
props = _objectWithoutPropertiesLoose(
|
|
4368
|
+
var SidebarMenuSubButton = /*#__PURE__*/React__default.forwardRef(function (_ref13, ref) {
|
|
4369
|
+
var _ref13$asChild = _ref13.asChild,
|
|
4370
|
+
asChild = _ref13$asChild === void 0 ? false : _ref13$asChild,
|
|
4371
|
+
isActive = _ref13.isActive,
|
|
4372
|
+
className = _ref13.className,
|
|
4373
|
+
props = _objectWithoutPropertiesLoose(_ref13, _excluded12);
|
|
4285
4374
|
var Comp = asChild ? Slot : 'a';
|
|
4286
4375
|
return React__default.createElement(Comp, _extends({
|
|
4287
4376
|
ref: ref,
|
|
@@ -4294,11 +4383,11 @@ var SidebarMenuSubButton = /*#__PURE__*/React__default.forwardRef(function (_ref
|
|
|
4294
4383
|
}, props));
|
|
4295
4384
|
});
|
|
4296
4385
|
SidebarMenuSubButton.displayName = 'SidebarMenuSubButton';
|
|
4297
|
-
var SidebarMenuAction = /*#__PURE__*/React__default.forwardRef(function (
|
|
4298
|
-
var className =
|
|
4299
|
-
|
|
4300
|
-
asChild =
|
|
4301
|
-
props = _objectWithoutPropertiesLoose(
|
|
4386
|
+
var SidebarMenuAction = /*#__PURE__*/React__default.forwardRef(function (_ref14, ref) {
|
|
4387
|
+
var className = _ref14.className,
|
|
4388
|
+
_ref14$asChild = _ref14.asChild,
|
|
4389
|
+
asChild = _ref14$asChild === void 0 ? false : _ref14$asChild,
|
|
4390
|
+
props = _objectWithoutPropertiesLoose(_ref14, _excluded13);
|
|
4302
4391
|
var Comp = asChild ? Slot : 'button';
|
|
4303
4392
|
return React__default.createElement(Comp, _extends({
|
|
4304
4393
|
ref: ref,
|
|
@@ -4311,12 +4400,12 @@ var SidebarMenuAction = /*#__PURE__*/React__default.forwardRef(function (_ref16,
|
|
|
4311
4400
|
}, props));
|
|
4312
4401
|
});
|
|
4313
4402
|
SidebarMenuAction.displayName = 'SidebarMenuAction';
|
|
4314
|
-
var SidebarRail = /*#__PURE__*/React__default.forwardRef(function (
|
|
4315
|
-
var className =
|
|
4316
|
-
props = _objectWithoutPropertiesLoose(
|
|
4317
|
-
var
|
|
4318
|
-
open =
|
|
4319
|
-
toggleSidebar =
|
|
4403
|
+
var SidebarRail = /*#__PURE__*/React__default.forwardRef(function (_ref15, ref) {
|
|
4404
|
+
var className = _ref15.className,
|
|
4405
|
+
props = _objectWithoutPropertiesLoose(_ref15, _excluded14);
|
|
4406
|
+
var _useSidebar4 = useSidebar(),
|
|
4407
|
+
open = _useSidebar4.open,
|
|
4408
|
+
toggleSidebar = _useSidebar4.toggleSidebar;
|
|
4320
4409
|
var caretIcon = open ? 'caret-sm-left' : 'caret-sm-right';
|
|
4321
4410
|
return React__default.createElement("button", _extends({
|
|
4322
4411
|
ref: ref,
|
|
@@ -4356,13 +4445,13 @@ var SidebarRail = /*#__PURE__*/React__default.forwardRef(function (_ref17, ref)
|
|
|
4356
4445
|
})));
|
|
4357
4446
|
});
|
|
4358
4447
|
SidebarRail.displayName = 'SidebarRail';
|
|
4359
|
-
var SidebarMenuBadge = /*#__PURE__*/React__default.forwardRef(function (
|
|
4360
|
-
var className =
|
|
4361
|
-
props = _objectWithoutPropertiesLoose(
|
|
4448
|
+
var SidebarMenuBadge = /*#__PURE__*/React__default.forwardRef(function (_ref16, ref) {
|
|
4449
|
+
var className = _ref16.className,
|
|
4450
|
+
props = _objectWithoutPropertiesLoose(_ref16, _excluded15);
|
|
4362
4451
|
return React__default.createElement("div", _extends({
|
|
4363
4452
|
ref: ref,
|
|
4364
4453
|
"data-sidebar": "menu-badge",
|
|
4365
|
-
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),
|
|
4454
|
+
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),
|
|
4366
4455
|
style: {
|
|
4367
4456
|
top: 'var(--size-spacing-sm)',
|
|
4368
4457
|
right: 'var(--size-spacing-xs)'
|
|
@@ -4371,13 +4460,13 @@ var SidebarMenuBadge = /*#__PURE__*/React__default.forwardRef(function (_ref18,
|
|
|
4371
4460
|
});
|
|
4372
4461
|
SidebarMenuBadge.displayName = 'SidebarMenuBadge';
|
|
4373
4462
|
|
|
4374
|
-
var styles$
|
|
4463
|
+
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"};
|
|
4375
4464
|
|
|
4376
|
-
var styles$
|
|
4465
|
+
var styles$5 = {"table-body":"TableBody-module_table-body__Y5WbD","striped":"TableBody-module_striped__5MlEr","hover":"TableBody-module_hover__2CRgY"};
|
|
4377
4466
|
|
|
4378
|
-
var styles$
|
|
4467
|
+
var styles$4 = {"table-row":"TableRow-module_table-row__-Y9FQ","hoverable":"TableRow-module_hoverable__53-l9"};
|
|
4379
4468
|
|
|
4380
|
-
var styles$
|
|
4469
|
+
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"};
|
|
4381
4470
|
|
|
4382
4471
|
var TableBodyCell = function TableBodyCell(_ref) {
|
|
4383
4472
|
var _classNames;
|
|
@@ -4400,7 +4489,7 @@ var TableBodyCell = function TableBodyCell(_ref) {
|
|
|
4400
4489
|
_ref$width = _ref.width,
|
|
4401
4490
|
width = _ref$width === void 0 ? undefined : _ref$width;
|
|
4402
4491
|
var columnIsSticky = sticky === 'left' || sticky === 'right';
|
|
4403
|
-
var tableCellClasses = classNames(styles$
|
|
4492
|
+
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);
|
|
4404
4493
|
return React__default.createElement(Box, {
|
|
4405
4494
|
as: columnIsSticky ? 'th' : 'td',
|
|
4406
4495
|
className: tableCellClasses,
|
|
@@ -4414,7 +4503,7 @@ var TableBodyCell = function TableBodyCell(_ref) {
|
|
|
4414
4503
|
}, children === null || typeof children === 'undefined' || children === '' ? emptyCellPlaceholder : children);
|
|
4415
4504
|
};
|
|
4416
4505
|
|
|
4417
|
-
var styles$
|
|
4506
|
+
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"};
|
|
4418
4507
|
|
|
4419
4508
|
// eslint-disable-line import/prefer-default-export
|
|
4420
4509
|
var TableHeaderCell = function TableHeaderCell(_ref) {
|
|
@@ -4473,7 +4562,7 @@ var TableHeaderCell = function TableHeaderCell(_ref) {
|
|
|
4473
4562
|
});
|
|
4474
4563
|
};
|
|
4475
4564
|
return React__default.createElement("span", {
|
|
4476
|
-
className: styles$
|
|
4565
|
+
className: styles$2['sort-icon']
|
|
4477
4566
|
}, renderArrows());
|
|
4478
4567
|
};
|
|
4479
4568
|
var handleKeyPress = function handleKeyPress(event) {
|
|
@@ -4494,7 +4583,7 @@ var TableHeaderCell = function TableHeaderCell(_ref) {
|
|
|
4494
4583
|
});
|
|
4495
4584
|
onSort(eventWithKey);
|
|
4496
4585
|
};
|
|
4497
|
-
var tableHeaderClasses = classNames(styles$
|
|
4586
|
+
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);
|
|
4498
4587
|
return React__default.createElement(Box, {
|
|
4499
4588
|
as: "th",
|
|
4500
4589
|
display: "table-cell",
|
|
@@ -4506,7 +4595,7 @@ var TableHeaderCell = function TableHeaderCell(_ref) {
|
|
|
4506
4595
|
onKeyDown: handleKeyPress,
|
|
4507
4596
|
scope: "col"
|
|
4508
4597
|
}, React__default.createElement("div", {
|
|
4509
|
-
className: styles$
|
|
4598
|
+
className: styles$2.heading
|
|
4510
4599
|
}, column.heading, isSortable && renderIcon()));
|
|
4511
4600
|
};
|
|
4512
4601
|
|
|
@@ -4539,7 +4628,7 @@ var TableRow = function TableRow(_ref) {
|
|
|
4539
4628
|
rowIndex = _ref$rowIndex === void 0 ? undefined : _ref$rowIndex,
|
|
4540
4629
|
_ref$truncateOverflow = _ref.truncateOverflow,
|
|
4541
4630
|
truncateOverflow = _ref$truncateOverflow === void 0 ? false : _ref$truncateOverflow;
|
|
4542
|
-
var tableRowClasses = classNames(styles$
|
|
4631
|
+
var tableRowClasses = classNames(styles$4['table-row'], (_classNames = {}, _classNames[styles$4.hoverable] = isHoverable, _classNames), className);
|
|
4543
4632
|
var renderCellContent = function renderCellContent(column) {
|
|
4544
4633
|
if (column.render) {
|
|
4545
4634
|
var cellValue = column.dataKey && row ? row[column.dataKey] : undefined;
|
|
@@ -4608,7 +4697,7 @@ var TableBody = function TableBody(_ref) {
|
|
|
4608
4697
|
isStriped = _ref$isStriped === void 0 ? false : _ref$isStriped,
|
|
4609
4698
|
_ref$truncateOverflow = _ref.truncateOverflow,
|
|
4610
4699
|
truncateOverflow = _ref$truncateOverflow === void 0 ? false : _ref$truncateOverflow;
|
|
4611
|
-
var tableBodyClasses = classNames(styles$
|
|
4700
|
+
var tableBodyClasses = classNames(styles$5['table-body'], (_classNames = {}, _classNames[styles$5.striped] = isStriped, _classNames[styles$5.hover] = hoverableRows, _classNames), className);
|
|
4612
4701
|
return React__default.createElement("tbody", {
|
|
4613
4702
|
className: tableBodyClasses
|
|
4614
4703
|
}, rows.map(function (row, rowIndex) {
|
|
@@ -4693,13 +4782,13 @@ var Table = function Table(_ref) {
|
|
|
4693
4782
|
useFixedTableLayout = _ref$useFixedTableLay === void 0 ? false : _ref$useFixedTableLay,
|
|
4694
4783
|
_ref$truncateOverflow = _ref.truncateOverflow,
|
|
4695
4784
|
truncateOverflow = _ref$truncateOverflow === void 0 ? false : _ref$truncateOverflow;
|
|
4696
|
-
var containerClasses = classNames(styles$
|
|
4697
|
-
var scrollContainerClasses = classNames(styles$
|
|
4698
|
-
var tableClasses = classNames(styles$
|
|
4785
|
+
var containerClasses = classNames(styles$6.container, (_classNames = {}, _classNames[styles$6['full-height']] = !!(isScrollable != null && isScrollable.y), _classNames));
|
|
4786
|
+
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);
|
|
4787
|
+
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));
|
|
4699
4788
|
return React__default.createElement("div", {
|
|
4700
4789
|
className: containerClasses
|
|
4701
4790
|
}, isLoading && React__default.createElement("div", {
|
|
4702
|
-
className: styles$
|
|
4791
|
+
className: styles$6['loading-mask']
|
|
4703
4792
|
}, React__default.createElement(Spinner, {
|
|
4704
4793
|
size: "xl"
|
|
4705
4794
|
})), React__default.createElement("div", {
|
|
@@ -4730,7 +4819,7 @@ var Table = function Table(_ref) {
|
|
|
4730
4819
|
}))));
|
|
4731
4820
|
};
|
|
4732
4821
|
|
|
4733
|
-
var _excluded$
|
|
4822
|
+
var _excluded$2 = ["children", "defaultTheme", "storageKey"];
|
|
4734
4823
|
var initialState = {
|
|
4735
4824
|
theme: 'system',
|
|
4736
4825
|
setTheme: function setTheme() {
|
|
@@ -4744,7 +4833,7 @@ function ThemeProvider(_ref) {
|
|
|
4744
4833
|
defaultTheme = _ref$defaultTheme === void 0 ? 'system' : _ref$defaultTheme,
|
|
4745
4834
|
_ref$storageKey = _ref.storageKey,
|
|
4746
4835
|
storageKey = _ref$storageKey === void 0 ? 'hyphen-ui-theme' : _ref$storageKey,
|
|
4747
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
4836
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$2);
|
|
4748
4837
|
var _useState = useState(function () {
|
|
4749
4838
|
return localStorage.getItem(storageKey) || defaultTheme;
|
|
4750
4839
|
}),
|
|
@@ -4774,13 +4863,13 @@ function ThemeProvider(_ref) {
|
|
|
4774
4863
|
}), children);
|
|
4775
4864
|
}
|
|
4776
4865
|
|
|
4777
|
-
var styles$
|
|
4866
|
+
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"};
|
|
4778
4867
|
|
|
4779
4868
|
var getAnimationClass = function getAnimationClass(position, visible) {
|
|
4780
4869
|
var verticalPosition = position.includes('top') ? 'top' : 'bottom';
|
|
4781
4870
|
var horizontalPosition = position.includes('left') ? 'left' : 'right';
|
|
4782
4871
|
var isCentered = position.includes('center');
|
|
4783
|
-
var _ref = prefersReducedMotion() ? [styles$
|
|
4872
|
+
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)]],
|
|
4784
4873
|
enter = _ref[0],
|
|
4785
4874
|
exit = _ref[1];
|
|
4786
4875
|
return visible ? enter : exit;
|
|
@@ -4814,7 +4903,7 @@ var renderDismissIcon = function renderDismissIcon(toast, onDismiss) {
|
|
|
4814
4903
|
return React__default.createElement(Box, {
|
|
4815
4904
|
as: "button",
|
|
4816
4905
|
borderWidth: "0",
|
|
4817
|
-
className: styles$
|
|
4906
|
+
className: styles$1['toast-dismiss'],
|
|
4818
4907
|
padding: "0 0 0 sm",
|
|
4819
4908
|
alignItems: "center",
|
|
4820
4909
|
justifyContent: "center",
|
|
@@ -4845,9 +4934,9 @@ var ToastNotification = /*#__PURE__*/React__default.memo(function (_ref2) {
|
|
|
4845
4934
|
}
|
|
4846
4935
|
}, toast.ariaProps), resolveValue(toast.message, toast));
|
|
4847
4936
|
var animationClass = toast != null && toast.height ? getAnimationClass(toast.position || position, toast.visible) : undefined;
|
|
4848
|
-
var classes = classNames(toast.className, styles$
|
|
4937
|
+
var classes = classNames(toast.className, styles$1['toast-notification'], animationClass, (_classNames = {
|
|
4849
4938
|
'toast-notification--not-visible': !toast.visible
|
|
4850
|
-
}, _classNames[styles$
|
|
4939
|
+
}, _classNames[styles$1['toast-error']] = toast.type === 'error', _classNames));
|
|
4851
4940
|
return React__default.createElement(Box, {
|
|
4852
4941
|
alignItems: "center",
|
|
4853
4942
|
maxWidth: "300px",
|
|
@@ -5220,7 +5309,7 @@ var useToasts = function useToasts(toastOptions) {
|
|
|
5220
5309
|
};
|
|
5221
5310
|
};
|
|
5222
5311
|
|
|
5223
|
-
var _excluded$
|
|
5312
|
+
var _excluded$1 = ["children", "containerStyle", "containerClassName", "gutter", "position", "reverseOrder", "toastOptions"];
|
|
5224
5313
|
var createRectRef = function createRectRef(onRect) {
|
|
5225
5314
|
return function (el) {
|
|
5226
5315
|
if (el) {
|
|
@@ -5281,7 +5370,7 @@ var ToastContainer = function ToastContainer(_ref) {
|
|
|
5281
5370
|
_ref$reverseOrder = _ref.reverseOrder,
|
|
5282
5371
|
reverseOrder = _ref$reverseOrder === void 0 ? false : _ref$reverseOrder,
|
|
5283
5372
|
toastOptions = _ref.toastOptions,
|
|
5284
|
-
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
5373
|
+
restProps = _objectWithoutPropertiesLoose(_ref, _excluded$1);
|
|
5285
5374
|
var _useToasts = useToasts(toastOptions),
|
|
5286
5375
|
toasts = _useToasts.toasts,
|
|
5287
5376
|
handlers = _useToasts.handlers;
|
|
@@ -5319,41 +5408,21 @@ var ToastContainer = function ToastContainer(_ref) {
|
|
|
5319
5408
|
}));
|
|
5320
5409
|
};
|
|
5321
5410
|
|
|
5322
|
-
var styles
|
|
5411
|
+
var styles = {"item":"Toggle-module_item__NQ7iu","outline":"Toggle-module_outline__tR6T1"};
|
|
5323
5412
|
|
|
5324
|
-
var _excluded
|
|
5413
|
+
var _excluded = ["className", "variant", "children"];
|
|
5325
5414
|
var Toggle = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
5326
5415
|
var className = _ref.className,
|
|
5327
5416
|
_ref$variant = _ref.variant,
|
|
5328
5417
|
variant = _ref$variant === void 0 ? 'default' : _ref$variant,
|
|
5329
5418
|
children = _ref.children,
|
|
5330
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded
|
|
5419
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
5331
5420
|
return React__default.createElement(TogglePrimitive.Root, _extends({
|
|
5332
5421
|
ref: ref,
|
|
5333
|
-
className: classNames('br-sm display-flex g-sm p-sm', styles
|
|
5422
|
+
className: classNames('br-sm display-flex g-sm p-sm', styles.item, variant === 'outline' && styles.outline, className)
|
|
5334
5423
|
}, props), children);
|
|
5335
5424
|
});
|
|
5336
5425
|
|
|
5337
|
-
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"};
|
|
5338
|
-
|
|
5339
|
-
var _excluded = ["className", "sideOffset"];
|
|
5340
|
-
var TooltipProvider = TooltipPrimitive.Provider;
|
|
5341
|
-
var Tooltip = TooltipPrimitive.Root;
|
|
5342
|
-
var TooltipTrigger = TooltipPrimitive.Trigger;
|
|
5343
|
-
var TooltipPortal = TooltipPrimitive.Portal;
|
|
5344
|
-
var TooltipContent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
5345
|
-
var className = _ref.className,
|
|
5346
|
-
_ref$sideOffset = _ref.sideOffset,
|
|
5347
|
-
sideOffset = _ref$sideOffset === void 0 ? 4 : _ref$sideOffset,
|
|
5348
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
5349
|
-
return React.createElement(TooltipPrimitive.Content, _extends({
|
|
5350
|
-
ref: ref,
|
|
5351
|
-
sideOffset: sideOffset,
|
|
5352
|
-
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)
|
|
5353
|
-
}, props));
|
|
5354
|
-
});
|
|
5355
|
-
TooltipContent.displayName = TooltipPrimitive.Content.displayName;
|
|
5356
|
-
|
|
5357
5426
|
var useWindowSize = function useWindowSize() {
|
|
5358
5427
|
var _React$useContext = React__default.useContext(ResponsiveContext),
|
|
5359
5428
|
innerWidth = _React$useContext.innerWidth,
|
|
@@ -5453,5 +5522,5 @@ var useTheme = function useTheme() {
|
|
|
5453
5522
|
return context;
|
|
5454
5523
|
};
|
|
5455
5524
|
|
|
5456
|
-
export { Alert, Badge, Box, Button, Card, CardBaseComponent, Checkbox, CheckboxInput, Collapsible, CollapsibleContent, CollapsibleTrigger, DateInput, DatePicker, Details, DetailsBaseComponent, DetailsSummary, Drawer, DrawerCloseButton, DrawerContent, DrawerHeader, DrawerProvider, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, FormControl, FormLabel, FormikCheckboxInput, FormikRadioGroup, FormikSelectInput, FormikSelectInputInset, FormikSelectInputNative, FormikSwitch, FormikTextInput, FormikTextInputInset, FormikTextareaInput, FormikTextareaInputInset, FormikTimePicker, FormikTimePickerNative, FormikToggleGroup, Heading, Icon, Modal, ModalBaseComponent, Pagination, Popover, RadioGroup, RangeInput, ResponsiveContext, ResponsiveProvider, SelectInput, SelectInputInset, SelectInputNative, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupLabel, SidebarHeader, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarTrigger, Spinner, Switch, Table, TextInput, TextInputInset, TextareaInput, TextareaInputInset, ThemeProvider, ThemeProviderContext, TimePicker, TimePickerNative, ToastContainer, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipPortal, TooltipProvider, TooltipTrigger, boxPropsKeys, createRectRef, toast, useBreakpoint, useDrawer, useIsMobile, useIsomorphicLayoutEffect, useOpenClose, useSidebar, useTheme, useToasts, useWindowSize };
|
|
5525
|
+
export { Alert, Badge, Box, Button, Card, CardBaseComponent, Checkbox, CheckboxInput, Collapsible, CollapsibleContent, CollapsibleTrigger, DateInput, DatePicker, Details, DetailsBaseComponent, DetailsSummary, Drawer, DrawerCloseButton, DrawerContent, DrawerHeader, DrawerProvider, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, FormControl, FormLabel, FormikCheckboxInput, FormikRadioGroup, FormikSelectInput, FormikSelectInputInset, FormikSelectInputNative, FormikSwitch, FormikTextInput, FormikTextInputInset, FormikTextareaInput, FormikTextareaInputInset, FormikTimePicker, FormikTimePickerNative, FormikToggleGroup, FormikToggleGroupMulti, Heading, Icon, Modal, ModalBaseComponent, Pagination, Popover, RadioGroup, RangeInput, ResponsiveContext, ResponsiveProvider, SelectInput, SelectInputInset, SelectInputNative, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupLabel, SidebarHeader, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarTrigger, Spinner, Switch, Table, TextInput, TextInputInset, TextareaInput, TextareaInputInset, ThemeProvider, ThemeProviderContext, TimePicker, TimePickerNative, ToastContainer, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipPortal, TooltipProvider, TooltipTrigger, boxPropsKeys, createRectRef, toast, useBreakpoint, useDrawer, useIsMobile, useIsomorphicLayoutEffect, useOpenClose, useSidebar, useTheme, useToasts, useWindowSize };
|
|
5457
5526
|
//# sourceMappingURL=hyphen-components.esm.js.map
|