@cerebruminc/cerebellum 11.2.0 → 11.2.1
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-0b818a73.js → CheckboxGroup-61c52880.js} +2 -2
- package/lib/cjs/CheckboxGroup-61c52880.js.map +1 -0
- package/lib/cjs/CheckboxGroup.cjs +1 -1
- package/lib/cjs/Form.cjs +3 -3
- package/lib/cjs/{FormikContainer-22c468a8.js → FormikContainer-b5e70eec.js} +3 -3
- package/lib/cjs/{FormikContainer-22c468a8.js.map → FormikContainer-b5e70eec.js.map} +1 -1
- package/lib/cjs/{IconSwitcher-9156a7d0.js → IconSwitcher-a79777ca.js} +4 -1
- package/lib/cjs/IconSwitcher-a79777ca.js.map +1 -0
- package/lib/cjs/IconSwitcher.cjs +1 -1
- package/lib/cjs/{ToggleGroup-528f2152.js → ToggleGroup-9d2d1f75.js} +2 -2
- package/lib/cjs/ToggleGroup-9d2d1f75.js.map +1 -0
- package/lib/cjs/ToggleGroup.cjs +1 -1
- package/lib/cjs/index.cjs +4 -4
- package/lib/esm/{CheckboxGroup-c82d22bd.js → CheckboxGroup-05dc484c.js} +2 -2
- package/lib/esm/CheckboxGroup-05dc484c.js.map +1 -0
- package/lib/esm/CheckboxGroup.js +1 -1
- package/lib/esm/Form.js +3 -3
- package/lib/esm/{FormikContainer-b1005e89.js → FormikContainer-b144e3b9.js} +3 -3
- package/lib/esm/{FormikContainer-b1005e89.js.map → FormikContainer-b144e3b9.js.map} +1 -1
- package/lib/esm/{IconSwitcher-74f97895.js → IconSwitcher-8cff450c.js} +4 -1
- package/lib/esm/IconSwitcher-8cff450c.js.map +1 -0
- package/lib/esm/IconSwitcher.js +1 -1
- package/lib/esm/{ToggleGroup-b78d47b9.js → ToggleGroup-87825bf3.js} +3 -3
- package/lib/esm/ToggleGroup-87825bf3.js.map +1 -0
- package/lib/esm/ToggleGroup.js +1 -1
- package/lib/esm/index.js +4 -4
- package/lib/types/src/SharedStorybook/ComponentLabel.d.ts +4 -4
- package/lib/types/src/SharedStorybook/DocStyles.d.ts +3 -3
- package/lib/types/src/assets/CerebrumLogo.d.ts +1 -1
- package/lib/types/src/assets/EmptySearchIcon.d.ts +1 -1
- package/lib/types/src/components/AddressInput/AddressInputErrorBoundary.d.ts +1 -1
- package/lib/types/src/components/Button/ButtonComponentStyles.d.ts +2 -2
- package/lib/types/src/components/Button/types.d.ts +2 -2
- package/lib/types/src/components/CheckboxGroup/types.d.ts +2 -2
- package/lib/types/src/components/CheckboxItem/types.d.ts +2 -2
- package/lib/types/src/components/ConfirmModal/ConfirmModalStyles.d.ts +2 -2
- package/lib/types/src/components/ConfirmModal/types.d.ts +3 -3
- package/lib/types/src/components/ConfirmationModal/Button/Button.d.ts +2 -2
- package/lib/types/src/components/CreditCardInput/types.d.ts +2 -2
- package/lib/types/src/components/CurrencyInput/types.d.ts +2 -2
- package/lib/types/src/components/DatePicker/DatePickerStyles.d.ts +3 -3
- package/lib/types/src/components/DatePicker/types.d.ts +2 -2
- package/lib/types/src/components/DescriptiveSwitchMenu/DescriptiveSwitchMenuStyles.d.ts +2 -2
- package/lib/types/src/components/DescriptiveSwitchMenu/mocks/options.d.ts +4 -4
- package/lib/types/src/components/DescriptiveSwitchMenu/types.d.ts +2 -2
- package/lib/types/src/components/DigitalInput/types.d.ts +2 -2
- package/lib/types/src/components/Drawer/mocks.d.ts +5 -5
- package/lib/types/src/components/Drawer/types.d.ts +4 -4
- package/lib/types/src/components/EmailInput/types.d.ts +2 -2
- package/lib/types/src/components/Footer/FooterStyles.d.ts +1 -1
- package/lib/types/src/components/Form/Form.d.ts +1 -1
- package/lib/types/src/components/Form/FormLoader.d.ts +1 -1
- package/lib/types/src/components/Form/FormStyles.d.ts +7 -7
- package/lib/types/src/components/Form/FormikContainer.d.ts +1 -1
- package/lib/types/src/components/Form/mocks/fields.d.ts +1 -1
- package/lib/types/src/components/Form/types.d.ts +2 -2
- package/lib/types/src/components/IconTile/IconTileStyles.d.ts +1 -1
- package/lib/types/src/components/ImagePicker/ImagePickerStyles.d.ts +1 -1
- package/lib/types/src/components/ImagePicker/types.d.ts +2 -2
- package/lib/types/src/components/InlineInput/types.d.ts +1 -1
- package/lib/types/src/components/Input/types.d.ts +2 -2
- package/lib/types/src/components/InputButton/InputButtonStyles.d.ts +2 -2
- package/lib/types/src/components/InputButton/types.d.ts +1 -1
- package/lib/types/src/components/InteriorSidebar/types.d.ts +2 -2
- package/lib/types/src/components/LabelledIconGroup/LabelledIconGroupStyles.d.ts +1 -1
- package/lib/types/src/components/PhoneInput/types.d.ts +2 -2
- package/lib/types/src/components/RJSForm/fields/ArrayField.d.ts +1 -1
- package/lib/types/src/components/RadioGroup/types.d.ts +2 -2
- package/lib/types/src/components/RadioItem/RadioItemStyles.d.ts +1 -1
- package/lib/types/src/components/RadioItem/types.d.ts +2 -2
- package/lib/types/src/components/SearchMenu/SearchMenuStyles.d.ts +2 -2
- package/lib/types/src/components/SearchMenu/types.d.ts +2 -2
- package/lib/types/src/components/Select/SelectStyles.d.ts +1 -1
- package/lib/types/src/components/Select/types.d.ts +2 -2
- package/lib/types/src/components/SnackContainer/storybook/MultipleToastsExample.d.ts +1 -1
- package/lib/types/src/components/SnackContainer/storybook/SnackDialogExample.d.ts +1 -1
- package/lib/types/src/components/SnackContainer/storybook/SnackbarExample.d.ts +1 -1
- package/lib/types/src/components/SnackContainer/storybook/ToastExample.d.ts +1 -1
- package/lib/types/src/components/SsnInput/types.d.ts +2 -2
- package/lib/types/src/components/Stepper/StepperStyles.d.ts +3 -3
- package/lib/types/src/components/Stepper/showFooterText.d.ts +1 -1
- package/lib/types/src/components/TabModal/examples/Stepper.d.ts +1 -1
- package/lib/types/src/components/TabModal/mocks.d.ts +1 -1
- package/lib/types/src/components/TabModal/types.d.ts +3 -3
- package/lib/types/src/components/Table/LoadingRows.d.ts +1 -1
- package/lib/types/src/components/Table/TableStyles.d.ts +8 -8
- package/lib/types/src/components/Table/examples/ClickableCells.d.ts +1 -1
- package/lib/types/src/components/Table/examples/ExternalPagination.d.ts +1 -1
- package/lib/types/src/components/Table/helpers.d.ts +2 -2
- package/lib/types/src/components/Table/mocks/MockStyles.d.ts +2 -2
- package/lib/types/src/components/Table/mocks/mockColumns.d.ts +1 -1
- package/lib/types/src/components/Table/stories/templates.d.ts +2 -2
- package/lib/types/src/components/Table/types.d.ts +5 -4
- package/lib/types/src/components/TextLink/helpers.d.ts +2 -3
- package/lib/types/src/components/TextLink/types.d.ts +2 -2
- package/lib/types/src/components/Textarea/TextareaStyles.d.ts +1 -1
- package/lib/types/src/components/Textarea/types.d.ts +2 -2
- package/lib/types/src/components/ToggleGroup/types.d.ts +2 -2
- package/lib/types/src/components/ToggleItem/types.d.ts +2 -2
- package/lib/types/src/components/Tooltip/Tooltip.d.ts +2 -2
- package/lib/types/src/components/Tooltip/TooltipStyles.d.ts +1 -1
- package/lib/types/src/components/TooltipOptions/TooltipOptionsStyles.d.ts +2 -2
- package/lib/types/src/components/TooltipOptions/mockOptions.d.ts +3 -3
- package/lib/types/src/components/TooltipOptions/types.d.ts +3 -3
- package/lib/types/src/components/UploadDropzone/UploadDropzoneStyles.d.ts +1 -1
- package/lib/types/src/components/UploadDropzone/helpers.d.ts +1 -1
- package/lib/types/src/components/UserCard/UserCardModal.d.ts +1 -1
- package/lib/types/src/components/UserCard/UserCardStyles.d.ts +5 -5
- package/lib/types/src/components/UserInformationCard/UserInformationCardStyles.d.ts +3 -3
- package/lib/types/src/components/ZipCodeInput/types.d.ts +2 -2
- package/lib/types/src/configuredComponents/AddMenu/types.d.ts +2 -2
- package/lib/types/src/configuredComponents/CountyDropdown/types.d.ts +2 -2
- package/lib/types/src/configuredComponents/DescriptiveDropdownInput/types.d.ts +1 -1
- package/lib/types/src/configuredComponents/DropdownButton/DropdownButtonStyles.d.ts +1 -1
- package/lib/types/src/configuredComponents/DropdownInput/types.d.ts +2 -2
- package/lib/types/src/configuredComponents/IconSwitcher/IconSwitcherStyles.d.ts +2 -2
- package/lib/types/src/configuredComponents/InlineDropdown/types.d.ts +2 -2
- package/lib/types/src/configuredComponents/MoreMenuButton/RowExample.d.ts +1 -1
- package/lib/types/src/configuredComponents/StateDropdown/types.d.ts +2 -2
- package/lib/types/src/configuredComponents/StatusDropdown/types.d.ts +2 -2
- package/lib/types/src/configuredComponents/TableFiltersPanel/TableFiltersPanel.d.ts +1 -1
- package/lib/types/src/layout/NavLayout/NavLayout.d.ts +1 -1
- package/lib/types/src/pages/NotFound/NotFoundStyles.d.ts +2 -2
- package/lib/types/src/sharedHelpers/showLabel.d.ts +3 -3
- package/lib/types/src/sharedMocks/options.d.ts +6 -6
- package/lib/types/src/sharedStyle/Inputs.d.ts +2 -2
- package/lib/types/src/sharedStyle/Labels.d.ts +1 -1
- package/lib/types/src/sharedStyle/Switches.d.ts +3 -3
- package/lib/types/src/sharedTypes/types.d.ts +3 -3
- package/package.json +4 -4
- package/lib/cjs/CheckboxGroup-0b818a73.js.map +0 -1
- package/lib/cjs/IconSwitcher-9156a7d0.js.map +0 -1
- package/lib/cjs/ToggleGroup-528f2152.js.map +0 -1
- package/lib/esm/CheckboxGroup-c82d22bd.js.map +0 -1
- package/lib/esm/IconSwitcher-74f97895.js.map +0 -1
- package/lib/esm/ToggleGroup-b78d47b9.js.map +0 -1
|
@@ -30,11 +30,11 @@ var CheckboxGroup = function (_a) {
|
|
|
30
30
|
var activeColor = _a.activeColor, activeValues = _a.activeValues, asteriskColor = _a.asteriskColor, checkboxes = _a.checkboxes, checkboxesGap = _a.checkboxesGap, checkboxSize = _a.checkboxSize, checkColor = _a.checkColor, disableGroup = _a.disableGroup, disabledColor = _a.disabledColor, disabledColorLight = _a.disabledColorLight, disabledLabelColor = _a.disabledLabelColor, failColor = _a.failColor, focusedColor = _a.focusedColor, helperText = _a.helperText, helperTextColor = _a.helperTextColor, inactiveColor = _a.inactiveColor, label = _a.label, labelColor = _a.labelColor, labelGap = _a.labelGap, maxLabelWidth = _a.maxLabelWidth, name = _a.name, noBottomPadding = _a.noBottomPadding, onClick = _a.onClick, required = _a.required, showValidationMessage = _a.showValidationMessage, titleColor = _a.titleColor, validationMessage = _a.validationMessage, wrapText = _a.wrapText, breakText = _a.breakText;
|
|
31
31
|
var theme = styled.useTheme();
|
|
32
32
|
var disabledTextColor = disabledLabelColor || theme.text.disabledColor;
|
|
33
|
-
return (jsxRuntime.jsxs(CheckboxGroupBase, tslib_es6.__assign({ "$labelGap": labelGap, "$noBottomPadding": noBottomPadding }, { children: [label ? (typeof label === "string" ? (jsxRuntime.jsxs(BodyLEmphasis.BodyXSEmphasis, tslib_es6.__assign({ "$textColor": disableGroup ? disabledTextColor : titleColor }, { children: [label, required && (jsxRuntime.jsx(Inputs.Asterisk, tslib_es6.__assign({ "aria-label": "Required", "$asteriskColor": asteriskColor }, { children: "*" }), void 0))] }), void 0)) : (
|
|
33
|
+
return (jsxRuntime.jsxs(CheckboxGroupBase, tslib_es6.__assign({ "$labelGap": labelGap, "$noBottomPadding": noBottomPadding }, { children: [label ? (typeof label === "string" ? (jsxRuntime.jsxs(BodyLEmphasis.BodyXSEmphasis, tslib_es6.__assign({ "$textColor": disableGroup ? disabledTextColor : titleColor }, { children: [label, required && (jsxRuntime.jsx(Inputs.Asterisk, tslib_es6.__assign({ "aria-label": "Required", "$asteriskColor": asteriskColor }, { children: "*" }), void 0))] }), void 0)) : (label)) : null, helperText && (jsxRuntime.jsx(Switches.HelperText, tslib_es6.__assign({ "$disabled": disableGroup, "$disabledColor": disabledTextColor, "$helperTextColor": helperTextColor }, { children: helperText }), void 0)), jsxRuntime.jsx(CheckboxList, tslib_es6.__assign({ "$checkboxesGap": checkboxesGap, "$wrapText": wrapText }, { children: checkboxes.map(function (checkbox) { return (jsxRuntime.jsx(CheckboxItem.CheckboxItem, { label: checkbox.label || checkbox.value, disabled: disableGroup || checkbox.disabled, active: activeValues === null || activeValues === void 0 ? void 0 : activeValues.includes(checkbox.value), onClick: onClick, checkColor: checkColor, activeColor: activeColor, checkboxSize: checkboxSize, disabledColor: disabledColor, disabledColorLight: disabledColorLight, disabledLabelColor: disabledLabelColor, focusedColor: focusedColor, inactiveColor: inactiveColor, labelColor: labelColor, name: name, maxLabelWidth: maxLabelWidth, value: checkbox.value, wrapText: wrapText, breakText: breakText }, checkbox.value)); }) }), void 0), showValidationMessage && jsxRuntime.jsx(Switches.Error, tslib_es6.__assign({ "$failColor": failColor }, { children: validationMessage }), void 0)] }), void 0));
|
|
34
34
|
};
|
|
35
35
|
CheckboxGroup.defaultProps = {
|
|
36
36
|
noBottomPadding: false,
|
|
37
37
|
};
|
|
38
38
|
|
|
39
39
|
exports.CheckboxGroup = CheckboxGroup;
|
|
40
|
-
//# sourceMappingURL=CheckboxGroup-
|
|
40
|
+
//# sourceMappingURL=CheckboxGroup-61c52880.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CheckboxGroup-61c52880.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var CheckboxGroup = require('./CheckboxGroup-
|
|
5
|
+
var CheckboxGroup = require('./CheckboxGroup-61c52880.js');
|
|
6
6
|
require('./tslib.es6-e6f346c4.js');
|
|
7
7
|
require('react/jsx-runtime');
|
|
8
8
|
require('styled-components');
|
package/lib/cjs/Form.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var FormikContainer = require('./FormikContainer-
|
|
5
|
+
var FormikContainer = require('./FormikContainer-b5e70eec.js');
|
|
6
6
|
var FormWrapper = require('./FormStyles-a203f5d9.js');
|
|
7
7
|
var FormFieldTypeEnum = require('./FormFieldTypeEnum.cjs');
|
|
8
8
|
require('./tslib.es6-e6f346c4.js');
|
|
@@ -55,7 +55,7 @@ require('./Checkbox-2f16c7ee.js');
|
|
|
55
55
|
require('./CheckboxEmpty.cjs');
|
|
56
56
|
require('./CheckboxFull.cjs');
|
|
57
57
|
require('./Switches-c22ccfa1.js');
|
|
58
|
-
require('./CheckboxGroup-
|
|
58
|
+
require('./CheckboxGroup-61c52880.js');
|
|
59
59
|
require('./ConfigurableInput-0404c82f.js');
|
|
60
60
|
require('./RadioGroup-83e22272.js');
|
|
61
61
|
require('./RadioItem-ae4d8a2f.js');
|
|
@@ -134,7 +134,7 @@ require('./ToggleItem-a297644f.js');
|
|
|
134
134
|
require('./InlineTextarea.cjs');
|
|
135
135
|
require('./ResizeEnum.cjs');
|
|
136
136
|
require('./Textarea.cjs');
|
|
137
|
-
require('./ToggleGroup-
|
|
137
|
+
require('./ToggleGroup-9d2d1f75.js');
|
|
138
138
|
require('yup');
|
|
139
139
|
require('./northAmericanNumberingPlanRegex.cjs');
|
|
140
140
|
|
|
@@ -23,7 +23,7 @@ var AddressInput = require('./AddressInput-a192ebc6.js');
|
|
|
23
23
|
var Inputs = require('./Inputs-cb571a0e.js');
|
|
24
24
|
var ReactDOM = require('react-dom');
|
|
25
25
|
var CheckboxItem = require('./CheckboxItem-41bbef33.js');
|
|
26
|
-
var CheckboxGroup = require('./CheckboxGroup-
|
|
26
|
+
var CheckboxGroup = require('./CheckboxGroup-61c52880.js');
|
|
27
27
|
var ConfigurableInput = require('./ConfigurableInput-0404c82f.js');
|
|
28
28
|
var stateAbbreviationLookup = require('./stateAbbreviationLookup.cjs');
|
|
29
29
|
var usCounties = require('./usCounties.cjs');
|
|
@@ -66,7 +66,7 @@ var ToggleItem = require('./ToggleItem-a297644f.js');
|
|
|
66
66
|
var InlineTextarea = require('./InlineTextarea.cjs');
|
|
67
67
|
var Textarea = require('./Textarea.cjs');
|
|
68
68
|
require('./ResizeEnum.cjs');
|
|
69
|
-
var ToggleGroup = require('./ToggleGroup-
|
|
69
|
+
var ToggleGroup = require('./ToggleGroup-9d2d1f75.js');
|
|
70
70
|
|
|
71
71
|
/** Used to generate unique IDs. */
|
|
72
72
|
var idCounter = 0;
|
|
@@ -1230,4 +1230,4 @@ FormikContainer.defaultProps = {
|
|
|
1230
1230
|
};
|
|
1231
1231
|
|
|
1232
1232
|
exports.FormikContainer = FormikContainer;
|
|
1233
|
-
//# sourceMappingURL=FormikContainer-
|
|
1233
|
+
//# sourceMappingURL=FormikContainer-b5e70eec.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormikContainer-
|
|
1
|
+
{"version":3,"file":"FormikContainer-b5e70eec.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -62,6 +62,9 @@ var IconSwitcher = function (props) {
|
|
|
62
62
|
}, [disabled, selectedOption, textColor]);
|
|
63
63
|
var IconLabel = React.useCallback(function (_a) {
|
|
64
64
|
var option = _a.option;
|
|
65
|
+
if (!option) {
|
|
66
|
+
return null;
|
|
67
|
+
}
|
|
65
68
|
var Icon = option.Icon, iconColor = option.iconColor, id = option.id, label = option.label;
|
|
66
69
|
return (jsxRuntime.jsxs(LabelBox, tslib_es6.__assign({ hoverColor: optionHoverColor }, { children: [jsxRuntime.jsx(LabelIconBox, tslib_es6.__assign({ disabled: option.disabled }, { children: jsxRuntime.jsx(Icon, { fill: iconColor || colors.colors.BLUE_70, title: id }, void 0) }), void 0), jsxRuntime.jsx(Label, tslib_es6.__assign({ disabled: option.disabled, "$textColor": textColor }, { children: label }), void 0)] }), void 0));
|
|
67
70
|
}, [options, optionHoverColor, textColor]);
|
|
@@ -81,4 +84,4 @@ IconSwitcher.defaultProps = {
|
|
|
81
84
|
};
|
|
82
85
|
|
|
83
86
|
exports.IconSwitcher = IconSwitcher;
|
|
84
|
-
//# sourceMappingURL=IconSwitcher-
|
|
87
|
+
//# sourceMappingURL=IconSwitcher-a79777ca.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IconSwitcher-a79777ca.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/lib/cjs/IconSwitcher.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var IconSwitcher = require('./IconSwitcher-
|
|
5
|
+
var IconSwitcher = require('./IconSwitcher-a79777ca.js');
|
|
6
6
|
require('./tslib.es6-e6f346c4.js');
|
|
7
7
|
require('react/jsx-runtime');
|
|
8
8
|
require('react');
|
|
@@ -28,7 +28,7 @@ var ToggleGroup = function (props) {
|
|
|
28
28
|
var activeValues = props.activeValues, asteriskColor = props.asteriskColor, disabledLabelColor = props.disabledLabelColor, disableGroup = props.disableGroup, failColor = props.failColor, helperText = props.helperText, helperTextColor = props.helperTextColor, toggleGroupLabel = props.toggleGroupLabel, noBottomPadding = props.noBottomPadding, onToggle = props.onToggle, required = props.required, showValidationMessage = props.showValidationMessage, toggles = props.toggles, titleColor = props.titleColor, labelGap = props.labelGap, togglesGap = props.togglesGap, validationMessage = props.validationMessage;
|
|
29
29
|
var theme = styled.useTheme();
|
|
30
30
|
var disabledTextColor = disabledLabelColor || theme.text.disabledColor;
|
|
31
|
-
return (jsxRuntime.jsxs(ToggleGroupBase, tslib_es6.__assign({ "$labelGap": labelGap, "$noBottomPadding": noBottomPadding }, { children: [toggleGroupLabel ? (typeof toggleGroupLabel === "string" ? (jsxRuntime.jsxs(BodyLEmphasis.BodyXSEmphasis, tslib_es6.__assign({ "$textColor": disableGroup ? disabledTextColor : titleColor }, { children: [toggleGroupLabel, required && (jsxRuntime.jsx(Inputs.Asterisk, tslib_es6.__assign({ "aria-label": "Required", "$asteriskColor": asteriskColor }, { children: "*" }), void 0))] }), void 0)) : ({
|
|
31
|
+
return (jsxRuntime.jsxs(ToggleGroupBase, tslib_es6.__assign({ "$labelGap": labelGap, "$noBottomPadding": noBottomPadding }, { children: [toggleGroupLabel ? (typeof toggleGroupLabel === "string" ? (jsxRuntime.jsxs(BodyLEmphasis.BodyXSEmphasis, tslib_es6.__assign({ "$textColor": disableGroup ? disabledTextColor : titleColor }, { children: [toggleGroupLabel, required && (jsxRuntime.jsx(Inputs.Asterisk, tslib_es6.__assign({ "aria-label": "Required", "$asteriskColor": asteriskColor }, { children: "*" }), void 0))] }), void 0)) : (jsxRuntime.jsx(jsxRuntime.Fragment, { children: toggleGroupLabel }, void 0))) : null, helperText && (jsxRuntime.jsx(Switches.HelperText, tslib_es6.__assign({ "$disabled": disableGroup, "$disabledColor": disabledTextColor, "$helperTextColor": helperTextColor }, { children: helperText }), void 0)), jsxRuntime.jsx(ToggleList, tslib_es6.__assign({ "$togglesGap": togglesGap }, { children: toggles.map(function (_a) {
|
|
32
32
|
var value = _a.value, label = _a.label, disabled = _a.disabled;
|
|
33
33
|
return (React.createElement(ToggleItem.ToggleItem, tslib_es6.__assign({}, props, { key: value, active: activeValues === null || activeValues === void 0 ? void 0 : activeValues.includes(value), label: label, disabled: disableGroup || disabled, onToggle: onToggle, value: value })));
|
|
34
34
|
}) }), void 0), showValidationMessage && jsxRuntime.jsx(Switches.Error, tslib_es6.__assign({ "$failColor": failColor }, { children: validationMessage }), void 0)] }), void 0));
|
|
@@ -38,4 +38,4 @@ ToggleGroup.defaultProps = {
|
|
|
38
38
|
};
|
|
39
39
|
|
|
40
40
|
exports.ToggleGroup = ToggleGroup;
|
|
41
|
-
//# sourceMappingURL=ToggleGroup-
|
|
41
|
+
//# sourceMappingURL=ToggleGroup-9d2d1f75.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ToggleGroup-9d2d1f75.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/lib/cjs/ToggleGroup.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var ToggleGroup = require('./ToggleGroup-
|
|
5
|
+
var ToggleGroup = require('./ToggleGroup-9d2d1f75.js');
|
|
6
6
|
require('./tslib.es6-e6f346c4.js');
|
|
7
7
|
require('react');
|
|
8
8
|
require('react/jsx-runtime');
|
package/lib/cjs/index.cjs
CHANGED
|
@@ -22,7 +22,7 @@ var TextButton = require('./TextButton.cjs');
|
|
|
22
22
|
var ButtonVariantEnum = require('./ButtonVariantEnum.cjs');
|
|
23
23
|
var Checkbox = require('./Checkbox-2f16c7ee.js');
|
|
24
24
|
var CheckboxItem = require('./CheckboxItem-41bbef33.js');
|
|
25
|
-
var CheckboxGroup = require('./CheckboxGroup-
|
|
25
|
+
var CheckboxGroup = require('./CheckboxGroup-61c52880.js');
|
|
26
26
|
var ClearableTag = require('./ClearableTag-de4fe183.js');
|
|
27
27
|
var ClickOutHandler = require('./ClickOutHandler-71cd48fb.js');
|
|
28
28
|
var ColorButton = require('./ColorButton-ed76d173.js');
|
|
@@ -46,7 +46,7 @@ var helpers = require('./helpers-b07f14f3.js');
|
|
|
46
46
|
var DrawerDivider = require('./DrawerDivider-4d38a3df.js');
|
|
47
47
|
var EmailInput = require('./EmailInput-91f2b622.js');
|
|
48
48
|
var Footer = require('./Footer.cjs');
|
|
49
|
-
var FormikContainer = require('./FormikContainer-
|
|
49
|
+
var FormikContainer = require('./FormikContainer-b5e70eec.js');
|
|
50
50
|
var FormFieldTypeEnum = require('./FormFieldTypeEnum.cjs');
|
|
51
51
|
var FiltersBar = require('./FiltersBar-90bccccc.js');
|
|
52
52
|
var HorizontalTabMenu = require('./HorizontalTabMenu-bc121d93.js');
|
|
@@ -105,7 +105,7 @@ var ResizeEnum = require('./ResizeEnum.cjs');
|
|
|
105
105
|
var TextLink = require('./TextLink-197a70a8.js');
|
|
106
106
|
var Toggle = require('./Toggle-a0870c06.js');
|
|
107
107
|
var ToggleButtons = require('./ToggleButtons-05ab2e6b.js');
|
|
108
|
-
var ToggleGroup = require('./ToggleGroup-
|
|
108
|
+
var ToggleGroup = require('./ToggleGroup-9d2d1f75.js');
|
|
109
109
|
var ToggleItem = require('./ToggleItem-a297644f.js');
|
|
110
110
|
var Tooltip = require('./Tooltip-553dd898.js');
|
|
111
111
|
var TooltipLabel = require('./TooltipLabel-51b8084b.js');
|
|
@@ -128,7 +128,7 @@ var CountyDropdown = require('./CountyDropdown-5b6850fc.js');
|
|
|
128
128
|
var DescriptiveDropdownInput = require('./DescriptiveDropdownInput-9f3a7914.js');
|
|
129
129
|
var DropdownButton = require('./DropdownButton-1b23f002.js');
|
|
130
130
|
var DropdownInput = require('./DropdownInput-46078427.js');
|
|
131
|
-
var IconSwitcher = require('./IconSwitcher-
|
|
131
|
+
var IconSwitcher = require('./IconSwitcher-a79777ca.js');
|
|
132
132
|
var InlineDescriptiveDropdown = require('./InlineDescriptiveDropdown-bfebd9ac.js');
|
|
133
133
|
var InlineDropdown = require('./InlineDropdown-1e979ef7.js');
|
|
134
134
|
var MoreMenuButton = require('./MoreMenuButton-224bb177.js');
|
|
@@ -28,11 +28,11 @@ var CheckboxGroup = function (_a) {
|
|
|
28
28
|
var activeColor = _a.activeColor, activeValues = _a.activeValues, asteriskColor = _a.asteriskColor, checkboxes = _a.checkboxes, checkboxesGap = _a.checkboxesGap, checkboxSize = _a.checkboxSize, checkColor = _a.checkColor, disableGroup = _a.disableGroup, disabledColor = _a.disabledColor, disabledColorLight = _a.disabledColorLight, disabledLabelColor = _a.disabledLabelColor, failColor = _a.failColor, focusedColor = _a.focusedColor, helperText = _a.helperText, helperTextColor = _a.helperTextColor, inactiveColor = _a.inactiveColor, label = _a.label, labelColor = _a.labelColor, labelGap = _a.labelGap, maxLabelWidth = _a.maxLabelWidth, name = _a.name, noBottomPadding = _a.noBottomPadding, onClick = _a.onClick, required = _a.required, showValidationMessage = _a.showValidationMessage, titleColor = _a.titleColor, validationMessage = _a.validationMessage, wrapText = _a.wrapText, breakText = _a.breakText;
|
|
29
29
|
var theme = useTheme();
|
|
30
30
|
var disabledTextColor = disabledLabelColor || theme.text.disabledColor;
|
|
31
|
-
return (jsxs(CheckboxGroupBase, __assign({ "$labelGap": labelGap, "$noBottomPadding": noBottomPadding }, { children: [label ? (typeof label === "string" ? (jsxs(BodyXSEmphasis, __assign({ "$textColor": disableGroup ? disabledTextColor : titleColor }, { children: [label, required && (jsx(Asterisk, __assign({ "aria-label": "Required", "$asteriskColor": asteriskColor }, { children: "*" }), void 0))] }), void 0)) : (
|
|
31
|
+
return (jsxs(CheckboxGroupBase, __assign({ "$labelGap": labelGap, "$noBottomPadding": noBottomPadding }, { children: [label ? (typeof label === "string" ? (jsxs(BodyXSEmphasis, __assign({ "$textColor": disableGroup ? disabledTextColor : titleColor }, { children: [label, required && (jsx(Asterisk, __assign({ "aria-label": "Required", "$asteriskColor": asteriskColor }, { children: "*" }), void 0))] }), void 0)) : (label)) : null, helperText && (jsx(HelperText, __assign({ "$disabled": disableGroup, "$disabledColor": disabledTextColor, "$helperTextColor": helperTextColor }, { children: helperText }), void 0)), jsx(CheckboxList, __assign({ "$checkboxesGap": checkboxesGap, "$wrapText": wrapText }, { children: checkboxes.map(function (checkbox) { return (jsx(CheckboxItem, { label: checkbox.label || checkbox.value, disabled: disableGroup || checkbox.disabled, active: activeValues === null || activeValues === void 0 ? void 0 : activeValues.includes(checkbox.value), onClick: onClick, checkColor: checkColor, activeColor: activeColor, checkboxSize: checkboxSize, disabledColor: disabledColor, disabledColorLight: disabledColorLight, disabledLabelColor: disabledLabelColor, focusedColor: focusedColor, inactiveColor: inactiveColor, labelColor: labelColor, name: name, maxLabelWidth: maxLabelWidth, value: checkbox.value, wrapText: wrapText, breakText: breakText }, checkbox.value)); }) }), void 0), showValidationMessage && jsx(Error, __assign({ "$failColor": failColor }, { children: validationMessage }), void 0)] }), void 0));
|
|
32
32
|
};
|
|
33
33
|
CheckboxGroup.defaultProps = {
|
|
34
34
|
noBottomPadding: false,
|
|
35
35
|
};
|
|
36
36
|
|
|
37
37
|
export { CheckboxGroup as C };
|
|
38
|
-
//# sourceMappingURL=CheckboxGroup-
|
|
38
|
+
//# sourceMappingURL=CheckboxGroup-05dc484c.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CheckboxGroup-05dc484c.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/lib/esm/CheckboxGroup.js
CHANGED
package/lib/esm/Form.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { F as Form } from './FormikContainer-
|
|
1
|
+
export { F as Form } from './FormikContainer-b144e3b9.js';
|
|
2
2
|
export { F as FormWrapper } from './FormStyles-8d53d823.js';
|
|
3
3
|
export { FormFieldTypeEnum, RemovableFieldTypeEnum } from './FormFieldTypeEnum.js';
|
|
4
4
|
import './tslib.es6-1648722c.js';
|
|
@@ -51,7 +51,7 @@ import './Checkbox-702a7fea.js';
|
|
|
51
51
|
import './CheckboxEmpty.js';
|
|
52
52
|
import './CheckboxFull.js';
|
|
53
53
|
import './Switches-0c0b95dd.js';
|
|
54
|
-
import './CheckboxGroup-
|
|
54
|
+
import './CheckboxGroup-05dc484c.js';
|
|
55
55
|
import './ConfigurableInput-90ed2416.js';
|
|
56
56
|
import './RadioGroup-316e2368.js';
|
|
57
57
|
import './RadioItem-66b2fe64.js';
|
|
@@ -130,7 +130,7 @@ import './ToggleItem-60a9909b.js';
|
|
|
130
130
|
import './InlineTextarea.js';
|
|
131
131
|
import './ResizeEnum.js';
|
|
132
132
|
import './Textarea.js';
|
|
133
|
-
import './ToggleGroup-
|
|
133
|
+
import './ToggleGroup-87825bf3.js';
|
|
134
134
|
import 'yup';
|
|
135
135
|
import './northAmericanNumberingPlanRegex.js';
|
|
136
136
|
//# sourceMappingURL=Form.js.map
|
|
@@ -21,7 +21,7 @@ import { A as AddressInput } from './AddressInput-8408e58c.js';
|
|
|
21
21
|
import { A as Asterisk } from './Inputs-68e62601.js';
|
|
22
22
|
import { flushSync } from 'react-dom';
|
|
23
23
|
import { C as CheckboxItem } from './CheckboxItem-ea3b44d8.js';
|
|
24
|
-
import { C as CheckboxGroup } from './CheckboxGroup-
|
|
24
|
+
import { C as CheckboxGroup } from './CheckboxGroup-05dc484c.js';
|
|
25
25
|
import { C as ConfigurableInput } from './ConfigurableInput-90ed2416.js';
|
|
26
26
|
import { stateAbbreviationLookup } from './stateAbbreviationLookup.js';
|
|
27
27
|
import { usCounties } from './usCounties.js';
|
|
@@ -64,7 +64,7 @@ import { T as ToggleItem } from './ToggleItem-60a9909b.js';
|
|
|
64
64
|
import { InlineTextarea } from './InlineTextarea.js';
|
|
65
65
|
import { Textarea } from './Textarea.js';
|
|
66
66
|
import './ResizeEnum.js';
|
|
67
|
-
import { T as ToggleGroup } from './ToggleGroup-
|
|
67
|
+
import { T as ToggleGroup } from './ToggleGroup-87825bf3.js';
|
|
68
68
|
|
|
69
69
|
/** Used to generate unique IDs. */
|
|
70
70
|
var idCounter = 0;
|
|
@@ -1228,4 +1228,4 @@ FormikContainer.defaultProps = {
|
|
|
1228
1228
|
};
|
|
1229
1229
|
|
|
1230
1230
|
export { FormikContainer as F };
|
|
1231
|
-
//# sourceMappingURL=FormikContainer-
|
|
1231
|
+
//# sourceMappingURL=FormikContainer-b144e3b9.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormikContainer-
|
|
1
|
+
{"version":3,"file":"FormikContainer-b144e3b9.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -60,6 +60,9 @@ var IconSwitcher = function (props) {
|
|
|
60
60
|
}, [disabled, selectedOption, textColor]);
|
|
61
61
|
var IconLabel = useCallback(function (_a) {
|
|
62
62
|
var option = _a.option;
|
|
63
|
+
if (!option) {
|
|
64
|
+
return null;
|
|
65
|
+
}
|
|
63
66
|
var Icon = option.Icon, iconColor = option.iconColor, id = option.id, label = option.label;
|
|
64
67
|
return (jsxs(LabelBox, __assign({ hoverColor: optionHoverColor }, { children: [jsx(LabelIconBox, __assign({ disabled: option.disabled }, { children: jsx(Icon, { fill: iconColor || colors.BLUE_70, title: id }, void 0) }), void 0), jsx(Label, __assign({ disabled: option.disabled, "$textColor": textColor }, { children: label }), void 0)] }), void 0));
|
|
65
68
|
}, [options, optionHoverColor, textColor]);
|
|
@@ -79,4 +82,4 @@ IconSwitcher.defaultProps = {
|
|
|
79
82
|
};
|
|
80
83
|
|
|
81
84
|
export { IconSwitcher as I };
|
|
82
|
-
//# sourceMappingURL=IconSwitcher-
|
|
85
|
+
//# sourceMappingURL=IconSwitcher-8cff450c.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IconSwitcher-8cff450c.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/lib/esm/IconSwitcher.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as __makeTemplateObject, _ as __assign } from './tslib.es6-1648722c.js';
|
|
2
2
|
import { createElement } from 'react';
|
|
3
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
|
+
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
4
4
|
import { styled, useTheme } from 'styled-components';
|
|
5
5
|
import { T as ToggleItem } from './ToggleItem-60a9909b.js';
|
|
6
6
|
import { BodyXSEmphasis } from './BodyLEmphasis.js';
|
|
@@ -26,7 +26,7 @@ var ToggleGroup = function (props) {
|
|
|
26
26
|
var activeValues = props.activeValues, asteriskColor = props.asteriskColor, disabledLabelColor = props.disabledLabelColor, disableGroup = props.disableGroup, failColor = props.failColor, helperText = props.helperText, helperTextColor = props.helperTextColor, toggleGroupLabel = props.toggleGroupLabel, noBottomPadding = props.noBottomPadding, onToggle = props.onToggle, required = props.required, showValidationMessage = props.showValidationMessage, toggles = props.toggles, titleColor = props.titleColor, labelGap = props.labelGap, togglesGap = props.togglesGap, validationMessage = props.validationMessage;
|
|
27
27
|
var theme = useTheme();
|
|
28
28
|
var disabledTextColor = disabledLabelColor || theme.text.disabledColor;
|
|
29
|
-
return (jsxs(ToggleGroupBase, __assign({ "$labelGap": labelGap, "$noBottomPadding": noBottomPadding }, { children: [toggleGroupLabel ? (typeof toggleGroupLabel === "string" ? (jsxs(BodyXSEmphasis, __assign({ "$textColor": disableGroup ? disabledTextColor : titleColor }, { children: [toggleGroupLabel, required && (jsx(Asterisk, __assign({ "aria-label": "Required", "$asteriskColor": asteriskColor }, { children: "*" }), void 0))] }), void 0)) : ({
|
|
29
|
+
return (jsxs(ToggleGroupBase, __assign({ "$labelGap": labelGap, "$noBottomPadding": noBottomPadding }, { children: [toggleGroupLabel ? (typeof toggleGroupLabel === "string" ? (jsxs(BodyXSEmphasis, __assign({ "$textColor": disableGroup ? disabledTextColor : titleColor }, { children: [toggleGroupLabel, required && (jsx(Asterisk, __assign({ "aria-label": "Required", "$asteriskColor": asteriskColor }, { children: "*" }), void 0))] }), void 0)) : (jsx(Fragment, { children: toggleGroupLabel }, void 0))) : null, helperText && (jsx(HelperText, __assign({ "$disabled": disableGroup, "$disabledColor": disabledTextColor, "$helperTextColor": helperTextColor }, { children: helperText }), void 0)), jsx(ToggleList, __assign({ "$togglesGap": togglesGap }, { children: toggles.map(function (_a) {
|
|
30
30
|
var value = _a.value, label = _a.label, disabled = _a.disabled;
|
|
31
31
|
return (createElement(ToggleItem, __assign({}, props, { key: value, active: activeValues === null || activeValues === void 0 ? void 0 : activeValues.includes(value), label: label, disabled: disableGroup || disabled, onToggle: onToggle, value: value })));
|
|
32
32
|
}) }), void 0), showValidationMessage && jsx(Error, __assign({ "$failColor": failColor }, { children: validationMessage }), void 0)] }), void 0));
|
|
@@ -36,4 +36,4 @@ ToggleGroup.defaultProps = {
|
|
|
36
36
|
};
|
|
37
37
|
|
|
38
38
|
export { ToggleGroup as T };
|
|
39
|
-
//# sourceMappingURL=ToggleGroup-
|
|
39
|
+
//# sourceMappingURL=ToggleGroup-87825bf3.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ToggleGroup-87825bf3.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/lib/esm/ToggleGroup.js
CHANGED
package/lib/esm/index.js
CHANGED
|
@@ -20,7 +20,7 @@ export { TextButton } from './TextButton.js';
|
|
|
20
20
|
export { ButtonVariantEnum } from './ButtonVariantEnum.js';
|
|
21
21
|
export { C as Checkbox } from './Checkbox-702a7fea.js';
|
|
22
22
|
export { C as CheckboxItem } from './CheckboxItem-ea3b44d8.js';
|
|
23
|
-
export { C as CheckboxGroup } from './CheckboxGroup-
|
|
23
|
+
export { C as CheckboxGroup } from './CheckboxGroup-05dc484c.js';
|
|
24
24
|
export { C as ClearableTag } from './ClearableTag-6d18403d.js';
|
|
25
25
|
export { C as ClickOutHandler } from './ClickOutHandler-1bb9b06e.js';
|
|
26
26
|
export { C as ColorButton } from './ColorButton-5cc3f460.js';
|
|
@@ -47,7 +47,7 @@ import { A as ASTERISK_OFFSET_SPACE } from './helpers-e2f33583.js';
|
|
|
47
47
|
export { D as DrawerDivider } from './DrawerDivider-1dbb3312.js';
|
|
48
48
|
export { E as EmailInput } from './EmailInput-32bd8b8a.js';
|
|
49
49
|
export { Footer } from './Footer.js';
|
|
50
|
-
export { F as Form } from './FormikContainer-
|
|
50
|
+
export { F as Form } from './FormikContainer-b144e3b9.js';
|
|
51
51
|
export { FormFieldTypeEnum, RemovableFieldTypeEnum } from './FormFieldTypeEnum.js';
|
|
52
52
|
export { F as FiltersBar } from './FiltersBar-2a734d5f.js';
|
|
53
53
|
export { H as HorizontalTabMenu } from './HorizontalTabMenu-8775f37d.js';
|
|
@@ -109,7 +109,7 @@ export { ResizeEnum } from './ResizeEnum.js';
|
|
|
109
109
|
export { T as TextLink } from './TextLink-ae7a4ea6.js';
|
|
110
110
|
export { T as Toggle } from './Toggle-02d8a391.js';
|
|
111
111
|
export { T as ToggleButtons } from './ToggleButtons-bc952ec3.js';
|
|
112
|
-
export { T as ToggleGroup } from './ToggleGroup-
|
|
112
|
+
export { T as ToggleGroup } from './ToggleGroup-87825bf3.js';
|
|
113
113
|
export { T as ToggleItem } from './ToggleItem-60a9909b.js';
|
|
114
114
|
export { T as Tooltip } from './Tooltip-9a18d45a.js';
|
|
115
115
|
export { T as TooltipLabel } from './TooltipLabel-6447e19e.js';
|
|
@@ -132,7 +132,7 @@ export { C as CountyDropdown } from './CountyDropdown-c78659e7.js';
|
|
|
132
132
|
export { D as DescriptiveDropdownInput } from './DescriptiveDropdownInput-ca7c7f4a.js';
|
|
133
133
|
export { D as DropdownButton } from './DropdownButton-447eb556.js';
|
|
134
134
|
export { D as DropdownInput } from './DropdownInput-8753ea37.js';
|
|
135
|
-
export { I as IconSwitcher } from './IconSwitcher-
|
|
135
|
+
export { I as IconSwitcher } from './IconSwitcher-8cff450c.js';
|
|
136
136
|
export { I as InlineDescriptiveDropdown } from './InlineDescriptiveDropdown-f237503f.js';
|
|
137
137
|
export { I as InlineDropdown } from './InlineDropdown-2b8df111.js';
|
|
138
138
|
export { M as MoreMenuButton } from './MoreMenuButton-7bc8fc43.js';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { FC } from "react";
|
|
2
|
-
export declare const ComponentLabel: JSX.Element;
|
|
3
|
-
export declare const ComponentLabelFC: (text?: string) => JSX.Element;
|
|
4
|
-
export declare const SmallComponentLabel: JSX.Element;
|
|
2
|
+
export declare const ComponentLabel: import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare const ComponentLabelFC: (text?: string) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare const SmallComponentLabel: import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
interface TooltipFCTextType {
|
|
6
6
|
open?: boolean;
|
|
7
7
|
}
|
|
8
8
|
export declare const TooltipFCText: FC<TooltipFCTextType>;
|
|
9
|
-
export declare const VersionLabel: () => JSX.Element;
|
|
9
|
+
export declare const VersionLabel: () => import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
export {};
|
|
@@ -4,13 +4,13 @@ export declare const Description: import("styled-components").IStyledComponent<"
|
|
|
4
4
|
export declare const Table: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
5
5
|
export declare const Row: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
6
6
|
export declare const Col1: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, never>>;
|
|
7
|
-
export declare const Col2: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<
|
|
7
|
+
export declare const Col2: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, never>, "ref"> & {
|
|
8
8
|
ref?: ((instance: HTMLParagraphElement | null) => void) | import("react").RefObject<HTMLParagraphElement> | null | undefined;
|
|
9
9
|
}, never>> & Omit<import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, never>>, keyof import("react").Component<any, {}, any>>;
|
|
10
|
-
export declare const Col3: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<
|
|
10
|
+
export declare const Col3: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, never>, "ref"> & {
|
|
11
11
|
ref?: ((instance: HTMLParagraphElement | null) => void) | import("react").RefObject<HTMLParagraphElement> | null | undefined;
|
|
12
12
|
}, never>> & Omit<import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, never>>, keyof import("react").Component<any, {}, any>>;
|
|
13
|
-
export declare const Col4: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<
|
|
13
|
+
export declare const Col4: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, never>, "ref"> & {
|
|
14
14
|
ref?: ((instance: HTMLParagraphElement | null) => void) | import("react").RefObject<HTMLParagraphElement> | null | undefined;
|
|
15
15
|
}, never>> & Omit<import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, never>>, keyof import("react").Component<any, {}, any>>;
|
|
16
16
|
export declare const ContainsFixed: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const CerebrumLogo: (props: any) => JSX.Element;
|
|
1
|
+
export declare const CerebrumLogo: (props: any) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const EmptySearchIcon: () => JSX.Element;
|
|
1
|
+
export declare const EmptySearchIcon: () => import("react/jsx-runtime").JSX.Element;
|
|
2
2
|
export default EmptySearchIcon;
|
|
@@ -6,5 +6,5 @@ export declare class AddressInputErrorBoundary extends React.Component<ErrorBoun
|
|
|
6
6
|
hasError: boolean;
|
|
7
7
|
};
|
|
8
8
|
componentDidCatch(error: any, errorInfo: any): void;
|
|
9
|
-
render(): React.ReactNode;
|
|
9
|
+
render(): string | number | boolean | Iterable<React.ReactNode> | import("react/jsx-runtime").JSX.Element | null | undefined;
|
|
10
10
|
}
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import { ButtonElementProps, IconProps, TextProps, TextBackgroundProps, UnderlineProps, HiddenLoadingBoxProps, LoadingBoxProps } from "./types";
|
|
3
3
|
export declare const ButtonElement: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, ButtonElementProps>>;
|
|
4
4
|
export declare const IconBox: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, IconProps>>;
|
|
5
|
-
export declare const BackIconBox: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<
|
|
5
|
+
export declare const BackIconBox: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, keyof IconProps> & IconProps, "ref"> & {
|
|
6
6
|
ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
|
|
7
7
|
}, never>> & Omit<import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, IconProps>>, keyof import("react").Component<any, {}, any>>;
|
|
8
|
-
export declare const NextIconBox: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<
|
|
8
|
+
export declare const NextIconBox: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Omit<import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, keyof IconProps> & IconProps, "ref"> & {
|
|
9
9
|
ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
|
|
10
10
|
}, never>> & Omit<import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, IconProps>>, keyof import("react").Component<any, {}, any>>;
|
|
11
11
|
export declare const Text: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, TextProps>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { KeyboardEvent, MouseEvent } from "react";
|
|
2
2
|
import { IconType } from "../Icons";
|
|
3
3
|
import { ColorFamilyType } from "../../sharedTypes/types";
|
|
4
4
|
import { ButtonColorFamilyEnum } from "../../sharedTypes/enums";
|
|
@@ -81,7 +81,7 @@ export interface ButtonType {
|
|
|
81
81
|
/** target HTML anchor. Only applied when useA is true. */
|
|
82
82
|
target?: string;
|
|
83
83
|
/** Button text. Keep this brief (text should never wrap in a button). */
|
|
84
|
-
text:
|
|
84
|
+
text: React.ReactNode;
|
|
85
85
|
textButton?: boolean;
|
|
86
86
|
/** Button text font size, in pixels THEME PROP: default is 15 */
|
|
87
87
|
textFontSize?: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChangeEvent
|
|
1
|
+
import { ChangeEvent } from "react";
|
|
2
2
|
import { SwitchGroupSwitchType } from "../../sharedTypes/types";
|
|
3
3
|
import { CheckboxItemType } from "../CheckboxItem/types";
|
|
4
4
|
export interface CheckboxGroupType extends Omit<CheckboxItemType, "active" | "disabled" | "label" | "onClick" | "value"> {
|
|
@@ -19,7 +19,7 @@ export interface CheckboxGroupType extends Omit<CheckboxItemType, "active" | "di
|
|
|
19
19
|
/** The color for the helper text. THEME PROP: default is colors.COOL_GREY_60 */
|
|
20
20
|
helperTextColor?: string;
|
|
21
21
|
/** The label for CheckboxGroup. Not required, but strongly recommended */
|
|
22
|
-
label?:
|
|
22
|
+
label?: React.ReactNode;
|
|
23
23
|
/** Margin at the bottom of the title */
|
|
24
24
|
labelGap?: number;
|
|
25
25
|
/** Removes the bottom padding. This padding is necessary if you're using the `validationMessage` */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChangeEvent
|
|
1
|
+
import { ChangeEvent } from "react";
|
|
2
2
|
export interface CheckboxItemType {
|
|
3
3
|
/** Is the Checkbox active or not */
|
|
4
4
|
active: boolean;
|
|
@@ -27,7 +27,7 @@ export interface CheckboxItemType {
|
|
|
27
27
|
/** The checkbox's inactive color. Uses checkbox theme inactiveColor by default. THEME PROP: default is COOL_GREY_25 */
|
|
28
28
|
inactiveColor?: string;
|
|
29
29
|
/** Text to accompany the checkbox. Overrides value in the UI if present */
|
|
30
|
-
label?:
|
|
30
|
+
label?: React.ReactNode;
|
|
31
31
|
/** The label color. THEME PROP: default is BodySPrimary color*/
|
|
32
32
|
labelColor?: string;
|
|
33
33
|
/** Maximum width for the label */
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import { HeaderProps, TextProps, ButtonGroupProps, BoundingBoxProps } from "./types";
|
|
3
3
|
export declare const BoundingBox: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, BoundingBoxProps>>;
|
|
4
4
|
export declare const IconBox: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>>;
|
|
5
|
-
export declare const Header: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<
|
|
5
|
+
export declare const Header: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<Omit<import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, keyof import("../../const/types").TextProps> & import("../../const/types").TextProps, "ref"> & {
|
|
6
6
|
ref?: ((instance: HTMLHeadingElement | null) => void) | import("react").RefObject<HTMLHeadingElement> | null | undefined;
|
|
7
7
|
}, HeaderProps>> & Omit<import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>, import("../../const/types").TextProps>>, keyof import("react").Component<any, {}, any>>;
|
|
8
|
-
export declare const Text: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<
|
|
8
|
+
export declare const Text: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<Omit<import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, keyof import("../../const/types").TextProps> & import("../../const/types").TextProps, "ref"> & {
|
|
9
9
|
ref?: ((instance: HTMLParagraphElement | null) => void) | import("react").RefObject<HTMLParagraphElement> | null | undefined;
|
|
10
10
|
}, TextProps>> & Omit<import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, import("../../const/types").TextProps>>, keyof import("react").Component<any, {}, any>>;
|
|
11
11
|
export declare const ButtonGroup: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ButtonGroupProps>>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ButtonColorFamilyEnum } from "../../sharedTypes/enums";
|
|
2
2
|
import { ColorFamilyType } from "../../sharedTypes/types";
|
|
3
|
-
import {
|
|
3
|
+
import { ReactNode } from "react";
|
|
4
4
|
import { IconType } from "./../Icons";
|
|
5
5
|
export interface ConfirmModalType {
|
|
6
6
|
children?: ReactNode;
|
|
7
7
|
/** The large, bold text for the ConfirmModal. Keep it short. */
|
|
8
|
-
header?:
|
|
8
|
+
header?: React.ReactNode;
|
|
9
9
|
/** A Cerebellum Icon component. Appears above the header */
|
|
10
10
|
Icon?: IconType;
|
|
11
11
|
/** Displays a primary button, and is called when it is clicked. Not required, but it should be. */
|
|
@@ -35,7 +35,7 @@ export interface ConfirmModalType {
|
|
|
35
35
|
/** Displays the Modal, or not */
|
|
36
36
|
show: boolean;
|
|
37
37
|
/** The secondary text for the ConfirmModal. Expands on what is in the header. */
|
|
38
|
-
text?:
|
|
38
|
+
text?: React.ReactNode;
|
|
39
39
|
/** You can override the theme by passing a `themeOverride` object. See below for the available props. */
|
|
40
40
|
themeOverride?: ThemeOverride;
|
|
41
41
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { Props, State } from "./types";
|
|
3
3
|
export declare class Button extends React.PureComponent<Props, State> {
|
|
4
|
-
renderButtonComponent(): JSX.Element;
|
|
5
|
-
render(): JSX.Element;
|
|
4
|
+
renderButtonComponent(): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { InlineCreditCardInputType } from "../InlineCreditCardInput/types";
|
|
3
3
|
export interface CreditCardInputType extends Omit<InlineCreditCardInputType, "trailingTextColor"> {
|
|
4
4
|
/** Required asterisk color. THEME PROP: default is colors.BLUE_70 */
|
|
@@ -8,7 +8,7 @@ export interface CreditCardInputType extends Omit<InlineCreditCardInputType, "tr
|
|
|
8
8
|
/** The helper text color. Also used for trailing text. THEME PROP: default is colors.COOL_GREY_60 */
|
|
9
9
|
helperTextColor?: string;
|
|
10
10
|
/** A label for your input. Not required, but strongly recommended. */
|
|
11
|
-
inputLabel?:
|
|
11
|
+
inputLabel?: React.ReactNode;
|
|
12
12
|
/** The label color. THEME PROPS: default is colors.COOL_GREY_80 */
|
|
13
13
|
labelColor?: string;
|
|
14
14
|
/** A message for when the input fails validation. Only displays if `showValidationMessage: true` */
|