@cerebruminc/cerebellum 13.1.9 → 13.2.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/lib/cjs/{CheckboxGroup-cd7e0cf4.js → CheckboxGroup-a274ce1f.js} +2 -2
- package/lib/cjs/CheckboxGroup-a274ce1f.js.map +1 -0
- package/lib/cjs/CheckboxGroup.cjs +2 -2
- package/lib/cjs/{CheckboxItem-ff56bd82.js → CheckboxItem-c0774182.js} +1 -1
- package/lib/cjs/CheckboxItem-c0774182.js.map +1 -0
- package/lib/cjs/CheckboxItem.cjs +1 -1
- package/lib/cjs/{ConfigurableInput-c5c39ca9.js → ConfigurableInput-90f3a78b.js} +2 -2
- package/lib/cjs/ConfigurableInput-90f3a78b.js.map +1 -0
- package/lib/cjs/ConfigurableInput.cjs +3 -3
- package/lib/cjs/{Drawer-29ddc5f0.js → Drawer-745d2a61.js} +1 -1
- package/lib/cjs/{Drawer-29ddc5f0.js.map → Drawer-745d2a61.js.map} +1 -1
- package/lib/cjs/Drawer.cjs +1 -1
- package/lib/cjs/Form.cjs +8 -8
- package/lib/cjs/{FormikContainer-badfc128.js → FormikContainer-9b075257.js} +7 -7
- package/lib/cjs/{FormikContainer-badfc128.js.map → FormikContainer-9b075257.js.map} +1 -1
- package/lib/cjs/{HorizontalTabMenu-a5d1ef88.js → HorizontalTabMenu-55955f88.js} +38 -39
- package/lib/cjs/{HorizontalTabMenu-a5d1ef88.js.map → HorizontalTabMenu-55955f88.js.map} +1 -1
- package/lib/cjs/HorizontalTabMenu.cjs +1 -1
- package/lib/cjs/{RJSForm-0c86efc2.js → RJSForm-e54c2a95.js} +2 -2
- package/lib/cjs/{RJSForm-0c86efc2.js.map → RJSForm-e54c2a95.js.map} +1 -1
- package/lib/cjs/RJSForm.cjs +2 -2
- package/lib/cjs/{RadioGroup-68bdc47e.js → RadioGroup-f6bb12c3.js} +2 -2
- package/lib/cjs/RadioGroup-f6bb12c3.js.map +1 -0
- package/lib/cjs/RadioGroup.cjs +2 -2
- package/lib/cjs/{RadioItem-a989b658.js → RadioItem-8d5f6119.js} +1 -1
- package/lib/cjs/RadioItem-8d5f6119.js.map +1 -0
- package/lib/cjs/RadioItem.cjs +1 -1
- package/lib/cjs/{StatusDropdown-d4e39f80.js → StatusDropdown-da93a6d5.js} +1 -1
- package/lib/cjs/StatusDropdown-da93a6d5.js.map +1 -0
- package/lib/cjs/StatusDropdown.cjs +1 -1
- package/lib/cjs/{Stepper-d230e9d3.js → Stepper-7f84921e.js} +24 -11
- package/lib/cjs/{Stepper-d230e9d3.js.map → Stepper-7f84921e.js.map} +1 -1
- package/lib/cjs/Stepper.cjs +1 -1
- package/lib/cjs/{TabModal-e7a7d22e.js → TabModal-8bdd668b.js} +2 -2
- package/lib/cjs/{TabModal-e7a7d22e.js.map → TabModal-8bdd668b.js.map} +1 -1
- package/lib/cjs/TabModal.cjs +2 -2
- package/lib/cjs/Table.cjs +1 -1
- package/lib/cjs/{ToggleGroup-cf2768b1.js → ToggleGroup-f9379c02.js} +2 -2
- package/lib/cjs/ToggleGroup-f9379c02.js.map +1 -0
- package/lib/cjs/ToggleGroup.cjs +2 -2
- package/lib/cjs/{ToggleItem-a6f1e156.js → ToggleItem-b7b234e3.js} +1 -1
- package/lib/cjs/ToggleItem-b7b234e3.js.map +1 -0
- package/lib/cjs/ToggleItem.cjs +1 -1
- package/lib/cjs/cerebellumTheme.cjs +5 -2
- package/lib/cjs/cerebellumTheme.cjs.map +1 -1
- package/lib/cjs/index.cjs +16 -18
- package/lib/cjs/index.cjs.map +1 -1
- package/lib/esm/{CheckboxGroup-38bedf00.js → CheckboxGroup-5917090d.js} +2 -2
- package/lib/esm/CheckboxGroup-5917090d.js.map +1 -0
- package/lib/esm/CheckboxGroup.js +2 -2
- package/lib/esm/{CheckboxItem-9ec470d3.js → CheckboxItem-f4231d7f.js} +1 -1
- package/lib/esm/CheckboxItem-f4231d7f.js.map +1 -0
- package/lib/esm/CheckboxItem.js +1 -1
- package/lib/esm/{ConfigurableInput-7f12e90c.js → ConfigurableInput-95bbd782.js} +2 -2
- package/lib/esm/ConfigurableInput-95bbd782.js.map +1 -0
- package/lib/esm/ConfigurableInput.js +3 -3
- package/lib/esm/{Drawer-3664b703.js → Drawer-2b429fc7.js} +1 -1
- package/lib/esm/{Drawer-3664b703.js.map → Drawer-2b429fc7.js.map} +1 -1
- package/lib/esm/Drawer.js +1 -1
- package/lib/esm/Form.js +8 -8
- package/lib/esm/{FormikContainer-334b50f5.js → FormikContainer-172805ec.js} +7 -7
- package/lib/esm/{FormikContainer-334b50f5.js.map → FormikContainer-172805ec.js.map} +1 -1
- package/lib/esm/{HorizontalTabMenu-50df635f.js → HorizontalTabMenu-7f72f11a.js} +38 -39
- package/lib/esm/{HorizontalTabMenu-50df635f.js.map → HorizontalTabMenu-7f72f11a.js.map} +1 -1
- package/lib/esm/HorizontalTabMenu.js +1 -1
- package/lib/esm/{RJSForm-a34846da.js → RJSForm-36c6596e.js} +2 -2
- package/lib/esm/{RJSForm-a34846da.js.map → RJSForm-36c6596e.js.map} +1 -1
- package/lib/esm/RJSForm.js +2 -2
- package/lib/esm/{RadioGroup-9c6828c7.js → RadioGroup-fcd2cb3b.js} +2 -2
- package/lib/esm/RadioGroup-fcd2cb3b.js.map +1 -0
- package/lib/esm/RadioGroup.js +2 -2
- package/lib/esm/{RadioItem-e9920117.js → RadioItem-ff07936b.js} +1 -1
- package/lib/esm/RadioItem-ff07936b.js.map +1 -0
- package/lib/esm/RadioItem.js +1 -1
- package/lib/esm/{StatusDropdown-4d627161.js → StatusDropdown-dd7cb4c6.js} +1 -1
- package/lib/esm/StatusDropdown-dd7cb4c6.js.map +1 -0
- package/lib/esm/StatusDropdown.js +1 -1
- package/lib/esm/{Stepper-2331bf61.js → Stepper-8363003c.js} +25 -12
- package/lib/esm/{Stepper-2331bf61.js.map → Stepper-8363003c.js.map} +1 -1
- package/lib/esm/Stepper.js +1 -1
- package/lib/esm/{TabModal-b7c1d7ee.js → TabModal-3e360bd1.js} +2 -2
- package/lib/esm/{TabModal-b7c1d7ee.js.map → TabModal-3e360bd1.js.map} +1 -1
- package/lib/esm/TabModal.js +2 -2
- package/lib/esm/Table.js +1 -1
- package/lib/esm/{ToggleGroup-7f381e5f.js → ToggleGroup-839d404d.js} +2 -2
- package/lib/esm/ToggleGroup-839d404d.js.map +1 -0
- package/lib/esm/ToggleGroup.js +2 -2
- package/lib/esm/{ToggleItem-a04d102c.js → ToggleItem-46261bd8.js} +1 -1
- package/lib/esm/ToggleItem-46261bd8.js.map +1 -0
- package/lib/esm/ToggleItem.js +1 -1
- package/lib/esm/cerebellumTheme.js +5 -2
- package/lib/esm/cerebellumTheme.js.map +1 -1
- package/lib/esm/index.js +19 -21
- package/lib/esm/index.js.map +1 -1
- package/lib/types/src/components/HorizontalTabMenu/HorizontalTabMenuStyles.d.ts +1 -2
- package/lib/types/src/components/HorizontalTabMenu/types.d.ts +20 -3
- package/lib/types/src/components/Stepper/StepperStyles.d.ts +4 -1
- package/lib/types/src/components/Stepper/mockSteps.d.ts +3 -4
- package/lib/types/src/components/Stepper/types.d.ts +11 -3
- package/lib/types/src/theme.d.ts +5 -2
- package/package.json +2 -2
- package/lib/cjs/CheckboxGroup-cd7e0cf4.js.map +0 -1
- package/lib/cjs/CheckboxItem-ff56bd82.js.map +0 -1
- package/lib/cjs/ConfigurableInput-c5c39ca9.js.map +0 -1
- package/lib/cjs/RadioGroup-68bdc47e.js.map +0 -1
- package/lib/cjs/RadioItem-a989b658.js.map +0 -1
- package/lib/cjs/StatusDropdown-d4e39f80.js.map +0 -1
- package/lib/cjs/ToggleGroup-cf2768b1.js.map +0 -1
- package/lib/cjs/ToggleItem-a6f1e156.js.map +0 -1
- package/lib/esm/CheckboxGroup-38bedf00.js.map +0 -1
- package/lib/esm/CheckboxItem-9ec470d3.js.map +0 -1
- package/lib/esm/ConfigurableInput-7f12e90c.js.map +0 -1
- package/lib/esm/RadioGroup-9c6828c7.js.map +0 -1
- package/lib/esm/RadioItem-e9920117.js.map +0 -1
- package/lib/esm/StatusDropdown-4d627161.js.map +0 -1
- package/lib/esm/ToggleGroup-7f381e5f.js.map +0 -1
- package/lib/esm/ToggleItem-a04d102c.js.map +0 -1
|
@@ -4,7 +4,7 @@ var _tslib = require('./_tslib-955e611e.js');
|
|
|
4
4
|
var jsxRuntime = require('react/jsx-runtime');
|
|
5
5
|
var BodyLEmphasis = require('./BodyLEmphasis.cjs');
|
|
6
6
|
var styled = require('styled-components');
|
|
7
|
-
var CheckboxItem = require('./CheckboxItem-
|
|
7
|
+
var CheckboxItem = require('./CheckboxItem-c0774182.js');
|
|
8
8
|
var Inputs = require('./Inputs-0137c1dc.js');
|
|
9
9
|
var Switches = require('./Switches-6717ab0c.js');
|
|
10
10
|
|
|
@@ -41,4 +41,4 @@ CheckboxGroup.defaultProps = {
|
|
|
41
41
|
};
|
|
42
42
|
|
|
43
43
|
exports.CheckboxGroup = CheckboxGroup;
|
|
44
|
-
//# sourceMappingURL=CheckboxGroup-
|
|
44
|
+
//# sourceMappingURL=CheckboxGroup-a274ce1f.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CheckboxGroup-a274ce1f.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var CheckboxGroup = require('./CheckboxGroup-
|
|
5
|
+
var CheckboxGroup = require('./CheckboxGroup-a274ce1f.js');
|
|
6
6
|
require('./_tslib-955e611e.js');
|
|
7
7
|
require('react/jsx-runtime');
|
|
8
8
|
require('./BodyLEmphasis.cjs');
|
|
9
9
|
require('styled-components');
|
|
10
|
-
require('./CheckboxItem-
|
|
10
|
+
require('./CheckboxItem-c0774182.js');
|
|
11
11
|
require('./Switches-6717ab0c.js');
|
|
12
12
|
require('./Inputs-0137c1dc.js');
|
|
13
13
|
require('./colors.cjs');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CheckboxItem-c0774182.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/lib/cjs/CheckboxItem.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var CheckboxItem = require('./CheckboxItem-
|
|
5
|
+
var CheckboxItem = require('./CheckboxItem-c0774182.js');
|
|
6
6
|
require('./_tslib-955e611e.js');
|
|
7
7
|
require('react/jsx-runtime');
|
|
8
8
|
require('./Switches-6717ab0c.js');
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var Input = require('./Input-9cf5b719.js');
|
|
6
|
-
var RadioGroup = require('./RadioGroup-
|
|
6
|
+
var RadioGroup = require('./RadioGroup-f6bb12c3.js');
|
|
7
7
|
var usePrevious = require('./usePrevious.cjs');
|
|
8
8
|
var styled = require('styled-components');
|
|
9
9
|
var _tslib = require('./_tslib-955e611e.js');
|
|
@@ -78,4 +78,4 @@ ConfigurableInput.defaultProps = {
|
|
|
78
78
|
};
|
|
79
79
|
|
|
80
80
|
exports.ConfigurableInput = ConfigurableInput;
|
|
81
|
-
//# sourceMappingURL=ConfigurableInput-
|
|
81
|
+
//# sourceMappingURL=ConfigurableInput-90f3a78b.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConfigurableInput-90f3a78b.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var ConfigurableInput = require('./ConfigurableInput-
|
|
5
|
+
var ConfigurableInput = require('./ConfigurableInput-90f3a78b.js');
|
|
6
6
|
require('react/jsx-runtime');
|
|
7
7
|
require('react');
|
|
8
8
|
require('./Input-9cf5b719.js');
|
|
@@ -22,9 +22,9 @@ require('./isEmptyObject.cjs');
|
|
|
22
22
|
require('./useIsomorphicLayoutEffect-e0094154.js');
|
|
23
23
|
require('./showLabel-8e3c09f1.js');
|
|
24
24
|
require('./helpers-b07f14f3.js');
|
|
25
|
-
require('./RadioGroup-
|
|
25
|
+
require('./RadioGroup-f6bb12c3.js');
|
|
26
26
|
require('./BodyLEmphasis.cjs');
|
|
27
|
-
require('./RadioItem-
|
|
27
|
+
require('./RadioItem-8d5f6119.js');
|
|
28
28
|
require('./Switches-6717ab0c.js');
|
|
29
29
|
require('./cerebellumTheme.cjs');
|
|
30
30
|
require('./ButtonColorFamilyEnum.cjs');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Drawer-
|
|
1
|
+
{"version":3,"file":"Drawer-745d2a61.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/lib/cjs/Drawer.cjs
CHANGED
package/lib/cjs/Form.cjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var FormWrapper = require('./FormStyles-0c0f28e0.js');
|
|
6
|
-
var FormikContainer = require('./FormikContainer-
|
|
6
|
+
var FormikContainer = require('./FormikContainer-9b075257.js');
|
|
7
7
|
var FormFieldTypeEnum = require('./FormFieldTypeEnum.cjs');
|
|
8
8
|
require('./_tslib-955e611e.js');
|
|
9
9
|
require('styled-components');
|
|
@@ -63,12 +63,12 @@ require('./showLabel-8e3c09f1.js');
|
|
|
63
63
|
require('./helpers-b07f14f3.js');
|
|
64
64
|
require('./stateAbbreviationLookup.cjs');
|
|
65
65
|
require('react-dom');
|
|
66
|
-
require('./CheckboxItem-
|
|
66
|
+
require('./CheckboxItem-c0774182.js');
|
|
67
67
|
require('./cerebellumTheme.cjs');
|
|
68
|
-
require('./CheckboxGroup-
|
|
69
|
-
require('./ConfigurableInput-
|
|
70
|
-
require('./RadioGroup-
|
|
71
|
-
require('./RadioItem-
|
|
68
|
+
require('./CheckboxGroup-a274ce1f.js');
|
|
69
|
+
require('./ConfigurableInput-90f3a78b.js');
|
|
70
|
+
require('./RadioGroup-f6bb12c3.js');
|
|
71
|
+
require('./RadioItem-8d5f6119.js');
|
|
72
72
|
require('./CountryDropdown-4532eb1d.js');
|
|
73
73
|
require('./DropdownInput-3e496c2f.js');
|
|
74
74
|
require('./InlineInputButton.cjs');
|
|
@@ -133,11 +133,11 @@ require('./usStates.cjs');
|
|
|
133
133
|
require('./InlineZipCodeInput.cjs');
|
|
134
134
|
require('./applyZipCodeMask.cjs');
|
|
135
135
|
require('./ZipCodeInput.cjs');
|
|
136
|
-
require('./ToggleItem-
|
|
136
|
+
require('./ToggleItem-b7b234e3.js');
|
|
137
137
|
require('./InlineTextarea.cjs');
|
|
138
138
|
require('./ResizeEnum.cjs');
|
|
139
139
|
require('./Textarea.cjs');
|
|
140
|
-
require('./ToggleGroup-
|
|
140
|
+
require('./ToggleGroup-f9379c02.js');
|
|
141
141
|
|
|
142
142
|
|
|
143
143
|
|
|
@@ -21,9 +21,9 @@ var FormWrapper = require('./FormStyles-0c0f28e0.js');
|
|
|
21
21
|
var AddressInput = require('./AddressInput-033a4894.js');
|
|
22
22
|
var Inputs = require('./Inputs-0137c1dc.js');
|
|
23
23
|
var ReactDOM = require('react-dom');
|
|
24
|
-
var CheckboxItem = require('./CheckboxItem-
|
|
25
|
-
var CheckboxGroup = require('./CheckboxGroup-
|
|
26
|
-
var ConfigurableInput = require('./ConfigurableInput-
|
|
24
|
+
var CheckboxItem = require('./CheckboxItem-c0774182.js');
|
|
25
|
+
var CheckboxGroup = require('./CheckboxGroup-a274ce1f.js');
|
|
26
|
+
var ConfigurableInput = require('./ConfigurableInput-90f3a78b.js');
|
|
27
27
|
var FormFieldTypeEnum = require('./FormFieldTypeEnum.cjs');
|
|
28
28
|
var CountryDropdown = require('./CountryDropdown-4532eb1d.js');
|
|
29
29
|
var stateAbbreviationLookup = require('./stateAbbreviationLookup.cjs');
|
|
@@ -50,7 +50,7 @@ var InlinePasswordInput = require('./InlinePasswordInput.cjs');
|
|
|
50
50
|
var PasswordInput = require('./PasswordInput.cjs');
|
|
51
51
|
var InlinePhoneInput = require('./InlinePhoneInput-53df46e5.js');
|
|
52
52
|
var PhoneInput = require('./PhoneInput-2a0a054d.js');
|
|
53
|
-
var RadioGroup = require('./RadioGroup-
|
|
53
|
+
var RadioGroup = require('./RadioGroup-f6bb12c3.js');
|
|
54
54
|
require('./colors.cjs');
|
|
55
55
|
require('./IconComponentStyles-64e1c8e7.js');
|
|
56
56
|
var PlusCircle = require('./PlusCircle.cjs');
|
|
@@ -61,11 +61,11 @@ var usStates = require('./usStates.cjs');
|
|
|
61
61
|
var InlineZipCodeInput = require('./InlineZipCodeInput.cjs');
|
|
62
62
|
var ZipCodeInput = require('./ZipCodeInput.cjs');
|
|
63
63
|
var applyZipCodeMask = require('./applyZipCodeMask.cjs');
|
|
64
|
-
var ToggleItem = require('./ToggleItem-
|
|
64
|
+
var ToggleItem = require('./ToggleItem-b7b234e3.js');
|
|
65
65
|
var InlineTextarea = require('./InlineTextarea.cjs');
|
|
66
66
|
var Textarea = require('./Textarea.cjs');
|
|
67
67
|
require('./ResizeEnum.cjs');
|
|
68
|
-
var ToggleGroup = require('./ToggleGroup-
|
|
68
|
+
var ToggleGroup = require('./ToggleGroup-f9379c02.js');
|
|
69
69
|
|
|
70
70
|
/** Used to generate unique IDs. */
|
|
71
71
|
var idCounter = 0;
|
|
@@ -1295,4 +1295,4 @@ FormikContainer.defaultProps = {
|
|
|
1295
1295
|
};
|
|
1296
1296
|
|
|
1297
1297
|
exports.FormikContainer = FormikContainer;
|
|
1298
|
-
//# sourceMappingURL=FormikContainer-
|
|
1298
|
+
//# sourceMappingURL=FormikContainer-9b075257.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormikContainer-
|
|
1
|
+
{"version":3,"file":"FormikContainer-9b075257.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -12,35 +12,31 @@ var Scroller = require('./Scroller.cjs');
|
|
|
12
12
|
var styled = require('styled-components');
|
|
13
13
|
|
|
14
14
|
var Container = styled.styled.nav(templateObject_1 || (templateObject_1 = _tslib.__makeTemplateObject(["\n position: relative;\n width: 100%;\n"], ["\n position: relative;\n width: 100%;\n"])));
|
|
15
|
-
var MenuContainer = styled.styled.div(templateObject_2 || (templateObject_2 = _tslib.__makeTemplateObject(["\n border-radius: ", "px;\n display: flex;\n flex-direction: column;\n height: 60px;\n overflow-x: auto;\n padding: ", "
|
|
16
|
-
var $floatingBorderRadius = _a.$floatingBorderRadius, theme = _a.theme, $floating = _a.$floating;
|
|
17
|
-
return $floating ? $floatingBorderRadius || theme.horizontalTabMenu.floatingBorderRadius : 0;
|
|
15
|
+
var MenuContainer = styled.styled.div(templateObject_2 || (templateObject_2 = _tslib.__makeTemplateObject(["\n border-radius: ", "px;\n display: flex;\n flex-direction: column;\n height: 60px;\n overflow-x: auto;\n padding: ", ";\n position: relative;\n width: calc(100% + ", "px);\n z-index: 1;\n"], ["\n border-radius: ", "px;\n display: flex;\n flex-direction: column;\n height: 60px;\n overflow-x: auto;\n padding: ", ";\n position: relative;\n width: calc(100% + ", "px);\n z-index: 1;\n"])), function (_a) {
|
|
16
|
+
var $floatingBorderRadius = _a.$floatingBorderRadius, theme = _a.theme, $floating = _a.$floating, $themeOverride = _a.$themeOverride;
|
|
17
|
+
return $floating ? ($themeOverride === null || $themeOverride === void 0 ? void 0 : $themeOverride.floatingBorderRadius) || $floatingBorderRadius || theme.horizontalTabMenu.floatingBorderRadius : 0;
|
|
18
18
|
}, function (_a) {
|
|
19
|
-
var $noMenuPadding = _a.$noMenuPadding, $floating = _a.$floating;
|
|
20
|
-
return ($noMenuPadding ? "7px 0 0 0" : "4px 0 0 ".concat($floating ? 30 : 10));
|
|
19
|
+
var $noMenuPadding = _a.$noMenuPadding, $floating = _a.$floating, $themeOverride = _a.$themeOverride;
|
|
20
|
+
return ($themeOverride === null || $themeOverride === void 0 ? void 0 : $themeOverride.menuPaddingString) || ($noMenuPadding ? "7px 0 0 0" : "4px 0 0 ".concat($floating ? 30 : 10, "px"));
|
|
21
21
|
}, function (_a) {
|
|
22
22
|
var $floating = _a.$floating;
|
|
23
23
|
return ($floating ? 30 : 10);
|
|
24
24
|
});
|
|
25
25
|
var FloatingShadow = styled.styled.div(templateObject_3 || (templateObject_3 = _tslib.__makeTemplateObject(["\n box-shadow: ", ";\n border-radius: ", "px;\n height: 60px;\n left: 0;\n position: absolute;\n opacity: ", ";\n top: 0;\n transition: opacity 350ms ease-out 50ms;\n width: 100%;\n z-index: 0;\n"], ["\n box-shadow: ", ";\n border-radius: ", "px;\n height: 60px;\n left: 0;\n position: absolute;\n opacity: ", ";\n top: 0;\n transition: opacity 350ms ease-out 50ms;\n width: 100%;\n z-index: 0;\n"])), function (_a) {
|
|
26
|
-
var $floatingShadow = _a.$floatingShadow, theme = _a.theme;
|
|
27
|
-
return $floatingShadow || theme.horizontalTabMenu.floatingShadow;
|
|
26
|
+
var $floatingShadow = _a.$floatingShadow, theme = _a.theme, $themeOverride = _a.$themeOverride;
|
|
27
|
+
return ($themeOverride === null || $themeOverride === void 0 ? void 0 : $themeOverride.floatingShadow) || $floatingShadow || theme.horizontalTabMenu.floatingShadow;
|
|
28
28
|
}, function (_a) {
|
|
29
|
-
var $floatingBorderRadius = _a.$floatingBorderRadius, theme = _a.theme;
|
|
30
|
-
return $floatingBorderRadius || theme.horizontalTabMenu.floatingBorderRadius;
|
|
29
|
+
var $floatingBorderRadius = _a.$floatingBorderRadius, theme = _a.theme, $themeOverride = _a.$themeOverride;
|
|
30
|
+
return ($themeOverride === null || $themeOverride === void 0 ? void 0 : $themeOverride.floatingBorderRadius) || $floatingBorderRadius || theme.horizontalTabMenu.floatingBorderRadius;
|
|
31
31
|
}, function (props) { return (props.$floating ? 1 : 0); });
|
|
32
|
-
styled.styled.div(templateObject_4 || (templateObject_4 = _tslib.__makeTemplateObject(["\n color: ", ";\n"], ["\n color: ", ";\n"])), function (_a) {
|
|
33
|
-
var
|
|
34
|
-
return
|
|
35
|
-
});
|
|
36
|
-
var Underline = styled.styled.div(templateObject_5 || (templateObject_5 = _tslib.__makeTemplateObject(["\n background-color: ", ";\n height: 1px;\n min-width: ", "px;\n"], ["\n background-color: ", ";\n height: 1px;\n min-width: ", "px;\n"])), function (_a) {
|
|
37
|
-
var $underlineColor = _a.$underlineColor, $floating = _a.$floating, theme = _a.theme;
|
|
38
|
-
return $floating ? "transparent" : $underlineColor || theme.horizontalTabMenu.underlineColor;
|
|
32
|
+
var Underline = styled.styled.div(templateObject_4 || (templateObject_4 = _tslib.__makeTemplateObject(["\n background-color: ", ";\n height: 1px;\n min-width: ", "px;\n"], ["\n background-color: ", ";\n height: 1px;\n min-width: ", "px;\n"])), function (_a) {
|
|
33
|
+
var $underlineColor = _a.$underlineColor, $floating = _a.$floating, theme = _a.theme, $themeOverride = _a.$themeOverride;
|
|
34
|
+
return $floating ? "transparent" : ($themeOverride === null || $themeOverride === void 0 ? void 0 : $themeOverride.underlineColor) || $underlineColor || theme.horizontalTabMenu.underlineColor;
|
|
39
35
|
}, function (_a) {
|
|
40
36
|
var $tabsWidth = _a.$tabsWidth;
|
|
41
37
|
return $tabsWidth;
|
|
42
38
|
});
|
|
43
|
-
var TabContainer = styled.styled.div(
|
|
39
|
+
var TabContainer = styled.styled.div(templateObject_5 || (templateObject_5 = _tslib.__makeTemplateObject(["\n align-items: center;\n cursor: ", ";\n display: inline-block;\n flex-shrink: 0;\n height: 100%;\n pointer-events: ", ";\n position: relative;\n min-width: ", "px;\n &:after {\n content: \"\";\n background-color: ", ";\n border-radius: 7px;\n bottom: 6px;\n position: absolute;\n left: -8px;\n opacity: 0;\n right: -8px;\n top: 9px;\n transition: opacity 350ms ease-out 50ms;\n z-index: -1;\n }\n &:focus-visible {\n outline: none;\n &:after {\n opacity: 1;\n }\n }\n"], ["\n align-items: center;\n cursor: ", ";\n display: inline-block;\n flex-shrink: 0;\n height: 100%;\n pointer-events: ", ";\n position: relative;\n min-width: ", "px;\n &:after {\n content: \"\";\n background-color: ", ";\n border-radius: 7px;\n bottom: 6px;\n position: absolute;\n left: -8px;\n opacity: 0;\n right: -8px;\n top: 9px;\n transition: opacity 350ms ease-out 50ms;\n z-index: -1;\n }\n &:focus-visible {\n outline: none;\n &:after {\n opacity: 1;\n }\n }\n"])), function (_a) {
|
|
44
40
|
var disabled = _a.disabled;
|
|
45
41
|
return (disabled ? "auto" : "pointer");
|
|
46
42
|
}, function (_a) {
|
|
@@ -50,47 +46,50 @@ var TabContainer = styled.styled.div(templateObject_6 || (templateObject_6 = _ts
|
|
|
50
46
|
var $minTabWidth = _a.$minTabWidth;
|
|
51
47
|
return $minTabWidth;
|
|
52
48
|
}, function (_a) {
|
|
53
|
-
var $focusedColor = _a.$focusedColor, theme = _a.theme;
|
|
54
|
-
return $focusedColor || theme.horizontalTabMenu.focusedColor;
|
|
49
|
+
var $focusedColor = _a.$focusedColor, theme = _a.theme, $themeOverride = _a.$themeOverride;
|
|
50
|
+
return ($themeOverride === null || $themeOverride === void 0 ? void 0 : $themeOverride.focusedColor) || $focusedColor || theme.horizontalTabMenu.focusedColor;
|
|
55
51
|
});
|
|
56
|
-
var Indicator = styled.styled.div(
|
|
52
|
+
var Indicator = styled.styled.div(templateObject_6 || (templateObject_6 = _tslib.__makeTemplateObject(["\n background-color: ", ";\n border-top-right-radius: 3px;\n border-top-left-radius: 3px;\n bottom: ", "px;\n height: 4px;\n left: 1px;\n position: relative;\n transform: translate3d(", "px, 0, 0);\n transition: ", ";\n width: ", "px;\n"], ["\n background-color: ", ";\n border-top-right-radius: 3px;\n border-top-left-radius: 3px;\n bottom: ", "px;\n height: 4px;\n left: 1px;\n position: relative;\n transform: translate3d(", "px, 0, 0);\n transition: ", ";\n width: ", "px;\n"])), function (_a) {
|
|
53
|
+
var $mainColor = _a.$mainColor, theme = _a.theme, $themeOverride = _a.$themeOverride;
|
|
54
|
+
return ($themeOverride === null || $themeOverride === void 0 ? void 0 : $themeOverride.mainColor) || $mainColor || theme.horizontalTabMenu.mainColor;
|
|
55
|
+
}, function (props) { return (props.$floating ? -1 : 0); }, function (props) { return props.$offsetX; }, function (_a) {
|
|
57
56
|
var allowAnimation = _a.$allowAnimation;
|
|
58
57
|
return allowAnimation
|
|
59
58
|
? "transform 350ms ease-out 50ms, opacity 350ms ease-out 50ms, width 350ms ease-out 50ms, bottom 350ms ease-out 50ms"
|
|
60
59
|
: "none";
|
|
61
60
|
}, function (props) { return props.$width; });
|
|
62
|
-
var TabName = styled.styled.p(
|
|
63
|
-
var NameContents = styled.styled.span(
|
|
64
|
-
var $activeTextColor = _a.$activeTextColor, disabled = _a.disabled, $disabledColor = _a.$disabledColor, $selected = _a.$selected, $textColor = _a.$textColor, theme = _a.theme;
|
|
61
|
+
var TabName = styled.styled.p(templateObject_7 || (templateObject_7 = _tslib.__makeTemplateObject(["\n display: flex;\n flex-direction: row;\n justify-content: center;\n font-size: 15px;\n font-weight: 600;\n height: 100%;\n padding-top: 4px;\n padding-bottom: ", "px;\n position: relative;\n text-align: center;\n white-space: nowrap;\n width: 100%;\n z-index: 1;\n"], ["\n display: flex;\n flex-direction: row;\n justify-content: center;\n font-size: 15px;\n font-weight: 600;\n height: 100%;\n padding-top: 4px;\n padding-bottom: ", "px;\n position: relative;\n text-align: center;\n white-space: nowrap;\n width: 100%;\n z-index: 1;\n"])), function (props) { return (props.$floating ? 1 : 0); });
|
|
62
|
+
var NameContents = styled.styled.span(templateObject_8 || (templateObject_8 = _tslib.__makeTemplateObject(["\n color: ", ";\n display: inline-block;\n margin: auto 0;\n min-width: ", "px;\n &:hover {\n color: ", ";\n }\n"], ["\n color: ", ";\n display: inline-block;\n margin: auto 0;\n min-width: ", "px;\n &:hover {\n color: ", ";\n }\n"])), function (_a) {
|
|
63
|
+
var $activeTextColor = _a.$activeTextColor, disabled = _a.disabled, $disabledColor = _a.$disabledColor, $selected = _a.$selected, $textColor = _a.$textColor, theme = _a.theme, $themeOverride = _a.$themeOverride;
|
|
65
64
|
return $selected
|
|
66
|
-
? $activeTextColor || theme.horizontalTabMenu.activeTextColor
|
|
65
|
+
? ($themeOverride === null || $themeOverride === void 0 ? void 0 : $themeOverride.activeTextColor) || $activeTextColor || theme.horizontalTabMenu.activeTextColor
|
|
67
66
|
: disabled
|
|
68
|
-
? $disabledColor || theme.horizontalTabMenu.disabledColor
|
|
69
|
-
: $textColor || theme.horizontalTabMenu.textColor;
|
|
67
|
+
? ($themeOverride === null || $themeOverride === void 0 ? void 0 : $themeOverride.disabledColor) || $disabledColor || theme.horizontalTabMenu.disabledColor
|
|
68
|
+
: ($themeOverride === null || $themeOverride === void 0 ? void 0 : $themeOverride.textColor) || $textColor || theme.horizontalTabMenu.textColor;
|
|
70
69
|
}, function (_a) {
|
|
71
70
|
var $minTabWidth = _a.$minTabWidth;
|
|
72
71
|
return $minTabWidth;
|
|
73
72
|
}, function (_a) {
|
|
74
|
-
var $activeTextColor = _a.$activeTextColor, disabled = _a.disabled, $disabledColor = _a.$disabledColor, $selected = _a.$selected, $textHoverColor = _a.$textHoverColor, theme = _a.theme;
|
|
73
|
+
var $activeTextColor = _a.$activeTextColor, disabled = _a.disabled, $disabledColor = _a.$disabledColor, $selected = _a.$selected, $textHoverColor = _a.$textHoverColor, theme = _a.theme, $themeOverride = _a.$themeOverride;
|
|
75
74
|
return $selected
|
|
76
|
-
? $activeTextColor || theme.horizontalTabMenu.activeTextColor
|
|
75
|
+
? ($themeOverride === null || $themeOverride === void 0 ? void 0 : $themeOverride.activeTextColor) || $activeTextColor || theme.horizontalTabMenu.activeTextColor
|
|
77
76
|
: disabled
|
|
78
|
-
? $disabledColor
|
|
79
|
-
: $textHoverColor || theme.horizontalTabMenu.textHoverColor;
|
|
77
|
+
? ($themeOverride === null || $themeOverride === void 0 ? void 0 : $themeOverride.disabledColor) || $disabledColor
|
|
78
|
+
: ($themeOverride === null || $themeOverride === void 0 ? void 0 : $themeOverride.textHoverColor) || $textHoverColor || theme.horizontalTabMenu.textHoverColor;
|
|
80
79
|
});
|
|
81
|
-
var AlertBox = styled.styled.span(
|
|
80
|
+
var AlertBox = styled.styled.span(templateObject_9 || (templateObject_9 = _tslib.__makeTemplateObject(["\n display: inline-block;\n margin: auto 0 auto 17px;\n opacity: ", ";\n"], ["\n display: inline-block;\n margin: auto 0 auto 17px;\n opacity: ", ";\n"])), function (_a) {
|
|
82
81
|
var disabled = _a.disabled;
|
|
83
82
|
return (disabled ? 0.3 : 1);
|
|
84
83
|
});
|
|
85
|
-
var MenuBar = styled.styled.div(
|
|
84
|
+
var MenuBar = styled.styled.div(templateObject_10 || (templateObject_10 = _tslib.__makeTemplateObject(["\n display: flex;\n gap: ", "px;\n height: 100%;\n flex: 1;\n z-index: 1;\n"], ["\n display: flex;\n gap: ", "px;\n height: 100%;\n flex: 1;\n z-index: 1;\n"])), function (_a) {
|
|
86
85
|
var $spaceBetweenTabs = _a.$spaceBetweenTabs;
|
|
87
86
|
return $spaceBetweenTabs;
|
|
88
87
|
});
|
|
89
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10
|
|
88
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10;
|
|
90
89
|
|
|
91
90
|
var SPACE_BETWEEN_TABS_DEFAULT = 65;
|
|
92
91
|
var HorizontalTabMenu = function (_a) {
|
|
93
|
-
var activeOption = _a.activeOption, activeTextColor = _a.activeTextColor, defaultOption = _a.defaultOption, disabledColor = _a.disabledColor, focusedColor = _a.focusedColor, floating = _a.floating, floatingBorderRadius = _a.floatingBorderRadius, floatingShadow = _a.floatingShadow, mainColor = _a.mainColor, _b = _a.minTabWidth, minTabWidth = _b === void 0 ? 0 : _b, noMenuPadding = _a.noMenuPadding, onOptionChange = _a.onOptionChange, options = _a.options, preventClick = _a.preventClick, _c = _a.spaceBetweenTabs, spaceBetweenTabs = _c === void 0 ? SPACE_BETWEEN_TABS_DEFAULT : _c, textColor = _a.textColor, textHoverColor = _a.textHoverColor, underlineColor = _a.underlineColor;
|
|
92
|
+
var activeOption = _a.activeOption, activeTextColor = _a.activeTextColor, defaultOption = _a.defaultOption, disabledColor = _a.disabledColor, focusedColor = _a.focusedColor, floating = _a.floating, floatingBorderRadius = _a.floatingBorderRadius, floatingShadow = _a.floatingShadow, mainColor = _a.mainColor, _b = _a.minTabWidth, minTabWidth = _b === void 0 ? 0 : _b, noMenuPadding = _a.noMenuPadding, onOptionChange = _a.onOptionChange, options = _a.options, preventClick = _a.preventClick, _c = _a.spaceBetweenTabs, spaceBetweenTabs = _c === void 0 ? SPACE_BETWEEN_TABS_DEFAULT : _c, textColor = _a.textColor, textHoverColor = _a.textHoverColor, underlineColor = _a.underlineColor, themeOverride = _a.themeOverride;
|
|
94
93
|
var theme = styled.useTheme();
|
|
95
94
|
var optionsIdString = addOrRemoveById.makeIdString({ array: options });
|
|
96
95
|
var _d = React.useState(false), allowAnimation = _d[0], setAllowAnimation = _d[1]; // disable animation until the component is set up
|
|
@@ -171,17 +170,17 @@ var HorizontalTabMenu = function (_a) {
|
|
|
171
170
|
onOptionChange(option.id);
|
|
172
171
|
}
|
|
173
172
|
};
|
|
174
|
-
return (jsxRuntime.jsxs(Container, { children: [jsxRuntime.jsxs(MenuContainer, _tslib.__assign({ "$floating": floating, "$floatingBorderRadius": floatingBorderRadius, as: Scroller.Scroller, "$noMenuPadding": noMenuPadding }, { children: [jsxRuntime.jsx(MenuBar, _tslib.__assign({ "$spaceBetweenTabs": spaceBetweenTabs, "data-testid": "horizontalTabMenu_menuBar" }, { children: options.map(function (option, index) {
|
|
173
|
+
return (jsxRuntime.jsxs(Container, { children: [jsxRuntime.jsxs(MenuContainer, _tslib.__assign({ "$floating": floating, "$floatingBorderRadius": floatingBorderRadius, as: Scroller.Scroller, "$noMenuPadding": noMenuPadding, "$themeOverride": themeOverride }, { children: [jsxRuntime.jsx(MenuBar, _tslib.__assign({ "$spaceBetweenTabs": spaceBetweenTabs, "data-testid": "horizontalTabMenu_menuBar" }, { children: options.map(function (option, index) {
|
|
175
174
|
return (jsxRuntime.jsx(TabContainer, _tslib.__assign({ disabled: option.disabled, "$focusedColor": focusedColor, "$minTabWidth": minTabWidth, onClick: function () {
|
|
176
175
|
onClickTab(option, index);
|
|
177
176
|
}, onKeyPress: function (event) {
|
|
178
177
|
if (pressedEnter.pressedEnter(event)) {
|
|
179
178
|
onClickTab(option, index);
|
|
180
179
|
}
|
|
181
|
-
}, "$preventClick": preventClick, ref: tabRefs[index], role: "button", tabIndex: option.disabled ? -1 : 0 }, { children: jsxRuntime.jsxs(TabName, _tslib.__assign({ "$floating": floating }, { children: [jsxRuntime.jsx(NameContents, _tslib.__assign({ "$activeTextColor": activeTextColor, disabled: option.disabled, "$disabledColor": disabledColor, "$minTabWidth": minTabWidth, "$selected": option.id === selectedOptionId, "$textColor": textColor, "$textHoverColor": textHoverColor }, { children: option.label }), void 0), !!option.alert && (jsxRuntime.jsx(AlertBox, _tslib.__assign({ className: "alertCountTarget", disabled: option.disabled }, { children: jsxRuntime.jsx(AlertCount.AlertCount, { disabled: option.disabled, count: formatBytesToString.formatNumberToString(option.alert), colorFamilyOverride: colors.makeOverrideObject({
|
|
182
|
-
color: option.alertColor || mainColor || theme.horizontalTabMenu.mainColor,
|
|
180
|
+
}, "$preventClick": preventClick, ref: tabRefs[index], role: "button", tabIndex: option.disabled ? -1 : 0, "$themeOverride": themeOverride }, { children: jsxRuntime.jsxs(TabName, _tslib.__assign({ "$floating": floating }, { children: [jsxRuntime.jsx(NameContents, _tslib.__assign({ "$activeTextColor": activeTextColor, disabled: option.disabled, "$disabledColor": disabledColor, "$minTabWidth": minTabWidth, "$selected": option.id === selectedOptionId, "$textColor": textColor, "$textHoverColor": textHoverColor, "$themeOverride": themeOverride }, { children: option.label }), void 0), !!option.alert && (jsxRuntime.jsx(AlertBox, _tslib.__assign({ className: "alertCountTarget", disabled: option.disabled }, { children: jsxRuntime.jsx(AlertCount.AlertCount, { disabled: option.disabled, count: formatBytesToString.formatNumberToString(option.alert), colorFamilyOverride: colors.makeOverrideObject({
|
|
181
|
+
color: option.alertColor || (themeOverride === null || themeOverride === void 0 ? void 0 : themeOverride.mainColor) || mainColor || theme.horizontalTabMenu.mainColor,
|
|
183
182
|
}) }, void 0) }), void 0))] }), void 0) }), option.id));
|
|
184
|
-
}) }), void 0), jsxRuntime.jsx(Indicator, { "$allowAnimation": allowAnimation, "$floating": floating, "$mainColor": mainColor, "$width": selectedTabWidth, "$offsetX": offsetX }, void 0), jsxRuntime.jsx(Underline, { "$floating": floating, "$underlineColor": underlineColor, "$tabsWidth": tabsWidth }, void 0)] }), void 0), jsxRuntime.jsx(FloatingShadow, { "$floatingBorderRadius": floatingBorderRadius, "$floating": floating, "$floatingShadow": floatingShadow }, void 0)] }, void 0));
|
|
183
|
+
}) }), void 0), jsxRuntime.jsx(Indicator, { "$allowAnimation": allowAnimation, "$floating": floating, "$mainColor": mainColor, "$width": selectedTabWidth, "$offsetX": offsetX, "$themeOverride": themeOverride }, void 0), jsxRuntime.jsx(Underline, { "$floating": floating, "$underlineColor": underlineColor, "$tabsWidth": tabsWidth, "$themeOverride": themeOverride }, void 0)] }), void 0), jsxRuntime.jsx(FloatingShadow, { "$floatingBorderRadius": floatingBorderRadius, "$floating": floating, "$floatingShadow": floatingShadow, "$themeOverride": themeOverride }, void 0)] }, void 0));
|
|
185
184
|
};
|
|
186
185
|
HorizontalTabMenu.defaultProps = {
|
|
187
186
|
minTabWidth: 0,
|
|
@@ -189,4 +188,4 @@ HorizontalTabMenu.defaultProps = {
|
|
|
189
188
|
};
|
|
190
189
|
|
|
191
190
|
exports.HorizontalTabMenu = HorizontalTabMenu;
|
|
192
|
-
//# sourceMappingURL=HorizontalTabMenu-
|
|
191
|
+
//# sourceMappingURL=HorizontalTabMenu-55955f88.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HorizontalTabMenu-
|
|
1
|
+
{"version":3,"file":"HorizontalTabMenu-55955f88.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var HorizontalTabMenu = require('./HorizontalTabMenu-
|
|
5
|
+
var HorizontalTabMenu = require('./HorizontalTabMenu-55955f88.js');
|
|
6
6
|
require('./_tslib-955e611e.js');
|
|
7
7
|
require('react/jsx-runtime');
|
|
8
8
|
require('react');
|
|
@@ -9,7 +9,7 @@ require('./Button.cjs');
|
|
|
9
9
|
var PrimaryButton = require('./PrimaryButton.cjs');
|
|
10
10
|
require('./ButtonVariantEnum.cjs');
|
|
11
11
|
var styled = require('styled-components');
|
|
12
|
-
var CheckboxItem = require('./CheckboxItem-
|
|
12
|
+
var CheckboxItem = require('./CheckboxItem-c0774182.js');
|
|
13
13
|
var dayjs = require('dayjs');
|
|
14
14
|
var DatePicker = require('./DatePicker.cjs');
|
|
15
15
|
var InlineDatePicker = require('./InlineDatePicker-fcb0e1ef.js');
|
|
@@ -369,4 +369,4 @@ RJSForm.defaultProps = {
|
|
|
369
369
|
};
|
|
370
370
|
|
|
371
371
|
exports.RJSForm = RJSForm;
|
|
372
|
-
//# sourceMappingURL=RJSForm-
|
|
372
|
+
//# sourceMappingURL=RJSForm-e54c2a95.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RJSForm-
|
|
1
|
+
{"version":3,"file":"RJSForm-e54c2a95.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/lib/cjs/RJSForm.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var RJSForm = require('./RJSForm-
|
|
5
|
+
var RJSForm = require('./RJSForm-e54c2a95.js');
|
|
6
6
|
var types = require('./types-92e1c1ae.js');
|
|
7
7
|
require('./_tslib-955e611e.js');
|
|
8
8
|
require('react/jsx-runtime');
|
|
@@ -23,7 +23,7 @@ require('./ButtonColorFamilyEnum.cjs');
|
|
|
23
23
|
require('./LoadingEllipsis-b9895744.js');
|
|
24
24
|
require('./PrimaryButton.cjs');
|
|
25
25
|
require('./ButtonVariantEnum.cjs');
|
|
26
|
-
require('./CheckboxItem-
|
|
26
|
+
require('./CheckboxItem-c0774182.js');
|
|
27
27
|
require('./Switches-6717ab0c.js');
|
|
28
28
|
require('./BodyLEmphasis.cjs');
|
|
29
29
|
require('./Inputs-0137c1dc.js');
|
|
@@ -5,7 +5,7 @@ var jsxRuntime = require('react/jsx-runtime');
|
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var BodyLEmphasis = require('./BodyLEmphasis.cjs');
|
|
7
7
|
var styled = require('styled-components');
|
|
8
|
-
var RadioItem = require('./RadioItem-
|
|
8
|
+
var RadioItem = require('./RadioItem-8d5f6119.js');
|
|
9
9
|
var Inputs = require('./Inputs-0137c1dc.js');
|
|
10
10
|
var Switches = require('./Switches-6717ab0c.js');
|
|
11
11
|
|
|
@@ -65,4 +65,4 @@ RadioGroup.defaultProps = {
|
|
|
65
65
|
};
|
|
66
66
|
|
|
67
67
|
exports.RadioGroup = RadioGroup;
|
|
68
|
-
//# sourceMappingURL=RadioGroup-
|
|
68
|
+
//# sourceMappingURL=RadioGroup-f6bb12c3.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RadioGroup-f6bb12c3.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/lib/cjs/RadioGroup.cjs
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var RadioGroup = require('./RadioGroup-
|
|
5
|
+
var RadioGroup = require('./RadioGroup-f6bb12c3.js');
|
|
6
6
|
require('./_tslib-955e611e.js');
|
|
7
7
|
require('react/jsx-runtime');
|
|
8
8
|
require('react');
|
|
9
9
|
require('./BodyLEmphasis.cjs');
|
|
10
10
|
require('styled-components');
|
|
11
|
-
require('./RadioItem-
|
|
11
|
+
require('./RadioItem-8d5f6119.js');
|
|
12
12
|
require('./Switches-6717ab0c.js');
|
|
13
13
|
require('./Inputs-0137c1dc.js');
|
|
14
14
|
require('./colors.cjs');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RadioItem-8d5f6119.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/lib/cjs/RadioItem.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var RadioItem = require('./RadioItem-
|
|
5
|
+
var RadioItem = require('./RadioItem-8d5f6119.js');
|
|
6
6
|
require('./_tslib-955e611e.js');
|
|
7
7
|
require('react/jsx-runtime');
|
|
8
8
|
require('./Switches-6717ab0c.js');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StatusDropdown-da93a6d5.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var StatusDropdown = require('./StatusDropdown-
|
|
5
|
+
var StatusDropdown = require('./StatusDropdown-da93a6d5.js');
|
|
6
6
|
require('./_tslib-955e611e.js');
|
|
7
7
|
require('react/jsx-runtime');
|
|
8
8
|
require('./Typography-78d16930.js');
|
|
@@ -63,8 +63,10 @@ var Step = styled.styled.div(templateObject_6 || (templateObject_6 = _tslib.__ma
|
|
|
63
63
|
});
|
|
64
64
|
var StepIcon = styled.styled.div(templateObject_7 || (templateObject_7 = _tslib.__makeTemplateObject(["\n height: 19px;\n margin-right: 16px;\n margin-top: 2px;\n vertical-align: middle;\n width: 19px;\n background-color: ", ";\n flex-shrink: 0;\n"], ["\n height: 19px;\n margin-right: 16px;\n margin-top: 2px;\n vertical-align: middle;\n width: 19px;\n background-color: ", ";\n flex-shrink: 0;\n"])), colors.colors.WHITE);
|
|
65
65
|
var CheckBox = styled.styled.div(templateObject_8 || (templateObject_8 = _tslib.__makeTemplateObject(["\n background-color: ", ";\n border-radius: 50%;\n height: 100%;\n padding: 5px;\n"], ["\n background-color: ", ";\n border-radius: 50%;\n height: 100%;\n padding: 5px;\n"])), function (_a) {
|
|
66
|
-
var $themeOverride = _a.$themeOverride, theme = _a.theme;
|
|
67
|
-
return
|
|
66
|
+
var $isAfterActive = _a.$isAfterActive, $themeOverride = _a.$themeOverride, theme = _a.theme;
|
|
67
|
+
return $isAfterActive
|
|
68
|
+
? ($themeOverride === null || $themeOverride === void 0 ? void 0 : $themeOverride.inactiveCheckmarkBgColor) || theme.stepper.inactiveCheckmarkBgColor
|
|
69
|
+
: ($themeOverride === null || $themeOverride === void 0 ? void 0 : $themeOverride.checkmarkBackgroundColor) || theme.stepper.checkmarkBackgroundColor;
|
|
68
70
|
});
|
|
69
71
|
var ActiveRadio = styled.styled.div(templateObject_9 || (templateObject_9 = _tslib.__makeTemplateObject(["\n background-color: ", ";\n border-radius: 50%;\n height: 100%;\n position: relative;\n width: 100%;\n &:after {\n ", ";\n background-color: ", ";\n border-radius: 50%;\n }\n"], ["\n background-color: ", ";\n border-radius: 50%;\n height: 100%;\n position: relative;\n width: 100%;\n &:after {\n ", ";\n background-color: ", ";\n border-radius: 50%;\n }\n"])), function (_a) {
|
|
70
72
|
var $halo = _a.$halo;
|
|
@@ -79,15 +81,19 @@ var StepText = styled.styled(BodyLEmphasis.BodyMSemiBold)(templateObject_10 || (
|
|
|
79
81
|
? ($themeOverride === null || $themeOverride === void 0 ? void 0 : $themeOverride.inactiveTextColor) || theme.stepper.inactiveTextColor
|
|
80
82
|
: ($themeOverride === null || $themeOverride === void 0 ? void 0 : $themeOverride.bodyTextColor) || theme.stepper.bodyTextColor;
|
|
81
83
|
});
|
|
82
|
-
var
|
|
84
|
+
var HelperText = styled.styled(BodyLEmphasis.BodySPrimary)(templateObject_11 || (templateObject_11 = _tslib.__makeTemplateObject(["\n color: ", ";\n\tdisplay: block;\n\tfont-style: italic;\n"], ["\n color: ", ";\n\tdisplay: block;\n\tfont-style: italic;\n"])), function (_a) {
|
|
85
|
+
var $themeOverride = _a.$themeOverride, theme = _a.theme;
|
|
86
|
+
return ($themeOverride === null || $themeOverride === void 0 ? void 0 : $themeOverride.helperTextColor) || theme.stepper.helperTextColor;
|
|
87
|
+
});
|
|
88
|
+
var Footer = styled.styled.div(templateObject_12 || (templateObject_12 = _tslib.__makeTemplateObject(["\n background-color: ", ";\n padding: 39px 0 35px;\n text-align: center;\n"], ["\n background-color: ", ";\n padding: 39px 0 35px;\n text-align: center;\n"])), function (_a) {
|
|
83
89
|
var $themeOverride = _a.$themeOverride, theme = _a.theme;
|
|
84
90
|
return ($themeOverride === null || $themeOverride === void 0 ? void 0 : $themeOverride.footerBackgroundColor) || theme.stepper.footerBackgroundColor;
|
|
85
91
|
});
|
|
86
|
-
var FooterImage = styled.styled.img(
|
|
87
|
-
var FooterText = styled.styled.div(
|
|
92
|
+
var FooterImage = styled.styled.img(templateObject_13 || (templateObject_13 = _tslib.__makeTemplateObject(["\n display: inline-block;\n max-width: 137px;\n"], ["\n display: inline-block;\n max-width: 137px;\n"])));
|
|
93
|
+
var FooterText = styled.styled.div(templateObject_14 || (templateObject_14 = _tslib.__makeTemplateObject(["\n display: block;\n margin-top: -3px;\n padding: 0 ", "px 51px;\n"], ["\n display: block;\n margin-top: -3px;\n padding: 0 ", "px 51px;\n"])), bodyLeftPadding);
|
|
88
94
|
// ---- storybook ----------------
|
|
89
|
-
styled.styled.div(
|
|
90
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14;
|
|
95
|
+
styled.styled.div(templateObject_15 || (templateObject_15 = _tslib.__makeTemplateObject(["\n display: flex;\n gap: 6px;\n"], ["\n display: flex;\n gap: 6px;\n"])));
|
|
96
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15;
|
|
91
97
|
|
|
92
98
|
var showFooterText = function (_a) {
|
|
93
99
|
var footerText = _a.footerText;
|
|
@@ -112,12 +118,19 @@ var Stepper = function (_a) {
|
|
|
112
118
|
var colorFamilies = theme.colorFamilies;
|
|
113
119
|
var colorGroup = colorFamilyOverride || colorFamilies[colorFamily];
|
|
114
120
|
return (jsxRuntime.jsxs(StepperBase, _tslib.__assign({ "$themeOverride": themeOverride, "$allowedWidth": width }, { children: [jsxRuntime.jsxs(Header, _tslib.__assign({ "$bgColor": colorGroup.hover, "$headerImage": headerImage, "$themeOverride": themeOverride, "data-testid": "stepperHeader" }, { children: [subTitle && jsxRuntime.jsx(SubTitle, _tslib.__assign({ "$textColor": colorGroup.text }, { children: subTitle }), void 0), jsxRuntime.jsx(Title, _tslib.__assign({ "$textColor": colorGroup.text, "$themeOverride": themeOverride }, { children: title }), void 0)] }), void 0), jsxRuntime.jsx(Body, _tslib.__assign({ "$themeOverride": themeOverride }, { children: steps.map(function (_a, index) {
|
|
115
|
-
var id = _a.id, label = _a.label;
|
|
121
|
+
var helperText = _a.helperText, id = _a.id, label = _a.label;
|
|
122
|
+
var activeIndex = steps.findIndex(function (_a) {
|
|
123
|
+
var id = _a.id;
|
|
124
|
+
return id === activeId;
|
|
125
|
+
});
|
|
116
126
|
var isActive = id === activeId;
|
|
117
127
|
var isComplete = completedSteps[id];
|
|
118
|
-
var
|
|
128
|
+
var isAfterActive = !allowFutureClicks && activeIndex >= 0 && index > activeIndex;
|
|
129
|
+
var isIncomplete = (!isActive && !isComplete) || (isComplete && isAfterActive && !allowFutureClicks);
|
|
119
130
|
var clickable = !!stepClick && !isActive && (isComplete || (allowFutureClicks && !disableIncompleteSteps));
|
|
120
|
-
return (jsxRuntime.jsxs(Step, _tslib.__assign({ "$clickable": clickable }, (clickable ? { onClick: function () { return stepClick(id); } } : {}), (clickable ? { onKeyPress: function (event) { return pressedEnter.pressedEnter(event) && stepClick(id); } } : {}), (clickable ? { role: "button" } : {}), { tabIndex: clickable ? 0 : -1, "$lastStep": index === steps.length - 1 }, { children: [jsxRuntime.jsx(StepIcon, { children: isActive ? (jsxRuntime.jsx(ActiveRadio, { "$bgColor": colorGroup.hover, "$halo": colorGroup.light, "aria-label": "".concat(label, " is active") }, void 0)) : isComplete ? (jsxRuntime.jsx(CheckBox, _tslib.__assign({ "$themeOverride": themeOverride, "aria-label": "".concat(label, " is complete")
|
|
131
|
+
return (jsxRuntime.jsxs(Step, _tslib.__assign({ "$clickable": clickable }, (clickable ? { onClick: function () { return stepClick(id); } } : {}), (clickable ? { onKeyPress: function (event) { return pressedEnter.pressedEnter(event) && stepClick(id); } } : {}), (clickable ? { role: "button" } : {}), { tabIndex: clickable ? 0 : -1, "$lastStep": index === steps.length - 1 }, { children: [jsxRuntime.jsx(StepIcon, { children: isActive ? (jsxRuntime.jsx(ActiveRadio, { "$bgColor": colorGroup.hover, "$halo": colorGroup.light, "aria-label": "".concat(label, " is active") }, void 0)) : isComplete ? (jsxRuntime.jsx(CheckBox, _tslib.__assign({ "$isAfterActive": isAfterActive, "$themeOverride": themeOverride, "aria-label": isAfterActive ? "".concat(label, " is inactive, but complete") : "".concat(label, " is complete") }, { children: jsxRuntime.jsx(Check.Check, { fill: isAfterActive
|
|
132
|
+
? (themeOverride === null || themeOverride === void 0 ? void 0 : themeOverride.inactiveCheckmarkColor) || theme.stepper.inactiveCheckmarkColor
|
|
133
|
+
: (themeOverride === null || themeOverride === void 0 ? void 0 : themeOverride.checkmarkColor) || theme.stepper.checkmarkColor }, void 0) }), void 0)) : (jsxRuntime.jsx(Inactive.Inactive, { fill: colors.colors.COOL_GREY_30 }, void 0)) }, void 0), jsxRuntime.jsxs("div", { children: [jsxRuntime.jsx(StepText, _tslib.__assign({ "$isIncomplete": isIncomplete, "$themeOverride": themeOverride }, { children: label }), void 0), helperText && jsxRuntime.jsx(HelperText, _tslib.__assign({ "$themeOverride": themeOverride }, { children: helperText }), void 0)] }, void 0)] }), id));
|
|
121
134
|
}) }), void 0), footerText && jsxRuntime.jsx(FooterText, { children: showFooterText({ footerText: footerText }) }, void 0), footerImage && (jsxRuntime.jsx(Footer, _tslib.__assign({ "$themeOverride": themeOverride, "data-testid": "stepperFooter" }, { children: jsxRuntime.jsx(FooterImage, { src: footerImage }, void 0) }), void 0))] }), void 0));
|
|
122
135
|
};
|
|
123
136
|
Stepper.defaultProps = {
|
|
@@ -125,4 +138,4 @@ Stepper.defaultProps = {
|
|
|
125
138
|
};
|
|
126
139
|
|
|
127
140
|
exports.Stepper = Stepper;
|
|
128
|
-
//# sourceMappingURL=Stepper-
|
|
141
|
+
//# sourceMappingURL=Stepper-7f84921e.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Stepper-
|
|
1
|
+
{"version":3,"file":"Stepper-7f84921e.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|