@cerebruminc/cerebellum 13.2.0 → 13.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/Form.cjs +29 -1
- package/lib/cjs/Form.cjs.map +1 -1
- package/lib/cjs/{FormikContainer-9b075257.js → FormikContainer-d27ecf3e.js} +2 -2
- package/lib/cjs/{FormikContainer-9b075257.js.map → FormikContainer-d27ecf3e.js.map} +1 -1
- package/lib/cjs/{Select-d6726128.js → Select-a0e392fa.js} +3 -3
- package/lib/cjs/{Select-d6726128.js.map → Select-a0e392fa.js.map} +1 -1
- package/lib/cjs/Select.cjs +1 -1
- package/lib/cjs/index.cjs +30 -2
- package/lib/cjs/index.cjs.map +1 -1
- package/lib/esm/Form.js +2 -2
- package/lib/esm/{FormikContainer-172805ec.js → FormikContainer-68671cc3.js} +2 -2
- package/lib/esm/{FormikContainer-172805ec.js.map → FormikContainer-68671cc3.js.map} +1 -1
- package/lib/esm/{Select-b0c1809a.js → Select-a9d92b4a.js} +3 -3
- package/lib/esm/{Select-b0c1809a.js.map → Select-a9d92b4a.js.map} +1 -1
- package/lib/esm/Select.js +1 -1
- package/lib/esm/index.js +3 -3
- package/lib/types/src/components/AddressInput/index.d.ts +2 -2
- package/lib/types/src/components/Form/index.d.ts +2 -2
- package/lib/types/src/components/Form/types.d.ts +2 -1
- package/lib/types/src/components/Select/types.d.ts +2 -0
- package/lib/types/src/index.d.ts +2 -0
- package/package.json +2 -2
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-d27ecf3e.js');
|
|
7
7
|
var FormFieldTypeEnum = require('./FormFieldTypeEnum.cjs');
|
|
8
8
|
require('./_tslib-955e611e.js');
|
|
9
9
|
require('styled-components');
|
|
@@ -151,4 +151,32 @@ Object.defineProperty(exports, 'RemovableFieldTypeEnum', {
|
|
|
151
151
|
enumerable: true,
|
|
152
152
|
get: function () { return FormFieldTypeEnum.RemovableFieldTypeEnum; }
|
|
153
153
|
});
|
|
154
|
+
exports.isAddress = FormFieldTypeEnum.isAddress;
|
|
155
|
+
exports.isCheckbox = FormFieldTypeEnum.isCheckbox;
|
|
156
|
+
exports.isCheckboxGroup = FormFieldTypeEnum.isCheckboxGroup;
|
|
157
|
+
exports.isConfigurableInput = FormFieldTypeEnum.isConfigurableInput;
|
|
158
|
+
exports.isCountrySelect = FormFieldTypeEnum.isCountrySelect;
|
|
159
|
+
exports.isCountySelect = FormFieldTypeEnum.isCountySelect;
|
|
160
|
+
exports.isCreditCard = FormFieldTypeEnum.isCreditCard;
|
|
161
|
+
exports.isCurrency = FormFieldTypeEnum.isCurrency;
|
|
162
|
+
exports.isDatePicker = FormFieldTypeEnum.isDatePicker;
|
|
163
|
+
exports.isDescriptiveDropdownInput = FormFieldTypeEnum.isDescriptiveDropdownInput;
|
|
164
|
+
exports.isEmail = FormFieldTypeEnum.isEmail;
|
|
165
|
+
exports.isFormFieldType = FormFieldTypeEnum.isFormFieldType;
|
|
166
|
+
exports.isImagePicker = FormFieldTypeEnum.isImagePicker;
|
|
167
|
+
exports.isMultiSelect = FormFieldTypeEnum.isMultiSelect;
|
|
168
|
+
exports.isNumber = FormFieldTypeEnum.isNumber;
|
|
169
|
+
exports.isPassword = FormFieldTypeEnum.isPassword;
|
|
170
|
+
exports.isPhone = FormFieldTypeEnum.isPhone;
|
|
171
|
+
exports.isRadioGroup = FormFieldTypeEnum.isRadioGroup;
|
|
172
|
+
exports.isRemovable = FormFieldTypeEnum.isRemovable;
|
|
173
|
+
exports.isSectionHeader = FormFieldTypeEnum.isSectionHeader;
|
|
174
|
+
exports.isSelect = FormFieldTypeEnum.isSelect;
|
|
175
|
+
exports.isSocialSecurity = FormFieldTypeEnum.isSocialSecurity;
|
|
176
|
+
exports.isSplitLine = FormFieldTypeEnum.isSplitLine;
|
|
177
|
+
exports.isStateSelect = FormFieldTypeEnum.isStateSelect;
|
|
178
|
+
exports.isTextarea = FormFieldTypeEnum.isTextarea;
|
|
179
|
+
exports.isToggle = FormFieldTypeEnum.isToggle;
|
|
180
|
+
exports.isToggleGroup = FormFieldTypeEnum.isToggleGroup;
|
|
181
|
+
exports.isZipCode = FormFieldTypeEnum.isZipCode;
|
|
154
182
|
//# sourceMappingURL=Form.cjs.map
|
package/lib/cjs/Form.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Form.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Form.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -128,7 +128,7 @@ var AddressField = function (_a) {
|
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
130
|
handleChange(event);
|
|
131
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(event);
|
|
131
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(event, addressObject);
|
|
132
132
|
}, onInputBlur: function (event) {
|
|
133
133
|
setSubmitAttempt(false);
|
|
134
134
|
handleBlur(event);
|
|
@@ -1295,4 +1295,4 @@ FormikContainer.defaultProps = {
|
|
|
1295
1295
|
};
|
|
1296
1296
|
|
|
1297
1297
|
exports.FormikContainer = FormikContainer;
|
|
1298
|
-
//# sourceMappingURL=FormikContainer-
|
|
1298
|
+
//# sourceMappingURL=FormikContainer-d27ecf3e.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormikContainer-
|
|
1
|
+
{"version":3,"file":"FormikContainer-d27ecf3e.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -89,7 +89,7 @@ var BUTTON_PADDING_RIGHT = 33;
|
|
|
89
89
|
var CARET_SIZE = 10;
|
|
90
90
|
var OPTIONS_SIDE_PADDING = 15;
|
|
91
91
|
var Select = function (props) {
|
|
92
|
-
var activeId = props.activeId, alternateCaret = props.alternateCaret, disabled = props.disabled, _a = props.defaultOpen, defaultOpen = _a === void 0 ? false : _a, deselectFunction = props.deselectFunction, _b = props.deselectText, deselectText = _b === void 0 ? "None" : _b, buttonBackgroundColor = props.buttonBackgroundColor, buttonBackgroundColorHover = props.buttonBackgroundColorHover, buttonBorderColor = props.buttonBorderColor, buttonBorderColorHover = props.buttonBorderColorHover, buttonBoxShadow = props.buttonBoxShadow, buttonBoxShadowHover = props.buttonBoxShadowHover, buttonBorderRadius = props.buttonBorderRadius, buttonHeight = props.buttonHeight, _c = props.buttonPaddingLeft, buttonPaddingLeft = _c === void 0 ? BUTTON_PADDING_LEFT : _c, _d = props.buttonPaddingRight, buttonPaddingRight = _d === void 0 ? BUTTON_PADDING_RIGHT : _d, caretColor = props.caretColor, _e = props.caretSize, caretSize = _e === void 0 ? CARET_SIZE : _e, hideDeselect = props.hideDeselect, _f = props.idField, idField = _f === void 0 ? "id" : _f, _g = props.innerSearch, innerSearch = _g === void 0 ? false : _g, label = props.label, _h = props.labelField, labelField = _h === void 0 ? "label" : _h, labelColor = props.labelColor, onClickout = props.onClickout, onSelect = props.onSelect, options = props.options, optionsBorderColor = props.optionsBorderColor, optionsBorderRadius = props.optionsBorderRadius, optionsBoxShadow = props.optionsBoxShadow, optionsHeight = props.optionsHeight, _j = props.optionsSidePadding, optionsSidePadding = _j === void 0 ? OPTIONS_SIDE_PADDING : _j, placeholderText = props.placeholderText, placeholderTextColor = props.placeholderTextColor, _k = props.preventDeselect, preventDeselect = _k === void 0 ? false : _k, selectWidth = props.selectWidth, showSearch = props.showSearch, _l = props.showSearchThreshold, showSearchThreshold = _l === void 0 ? 10 : _l, renderOptionLabel = props.renderOptionLabel, renderSelectedLabel = props.renderSelectedLabel, textColor = props.textColor, topLabel = props.topLabel, buttonFontSize = props.buttonFontSize, valueFontWeight = props.valueFontWeight;
|
|
92
|
+
var activeId = props.activeId, alternateCaret = props.alternateCaret, disabled = props.disabled, _a = props.defaultOpen, defaultOpen = _a === void 0 ? false : _a, deselectFunction = props.deselectFunction, _b = props.deselectText, deselectText = _b === void 0 ? "None" : _b, buttonBackgroundColor = props.buttonBackgroundColor, buttonBackgroundColorHover = props.buttonBackgroundColorHover, buttonBorderColor = props.buttonBorderColor, buttonBorderColorHover = props.buttonBorderColorHover, buttonBoxShadow = props.buttonBoxShadow, buttonBoxShadowHover = props.buttonBoxShadowHover, buttonBorderRadius = props.buttonBorderRadius, buttonHeight = props.buttonHeight, _c = props.buttonPaddingLeft, buttonPaddingLeft = _c === void 0 ? BUTTON_PADDING_LEFT : _c, _d = props.buttonPaddingRight, buttonPaddingRight = _d === void 0 ? BUTTON_PADDING_RIGHT : _d, caretColor = props.caretColor, _e = props.caretSize, caretSize = _e === void 0 ? CARET_SIZE : _e, hideDeselect = props.hideDeselect, id = props.id, _f = props.idField, idField = _f === void 0 ? "id" : _f, _g = props.innerSearch, innerSearch = _g === void 0 ? false : _g, label = props.label, _h = props.labelField, labelField = _h === void 0 ? "label" : _h, labelColor = props.labelColor, onClickout = props.onClickout, onSelect = props.onSelect, options = props.options, optionsBorderColor = props.optionsBorderColor, optionsBorderRadius = props.optionsBorderRadius, optionsBoxShadow = props.optionsBoxShadow, optionsHeight = props.optionsHeight, _j = props.optionsSidePadding, optionsSidePadding = _j === void 0 ? OPTIONS_SIDE_PADDING : _j, placeholderText = props.placeholderText, placeholderTextColor = props.placeholderTextColor, _k = props.preventDeselect, preventDeselect = _k === void 0 ? false : _k, selectWidth = props.selectWidth, showSearch = props.showSearch, _l = props.showSearchThreshold, showSearchThreshold = _l === void 0 ? 10 : _l, renderOptionLabel = props.renderOptionLabel, renderSelectedLabel = props.renderSelectedLabel, textColor = props.textColor, topLabel = props.topLabel, buttonFontSize = props.buttonFontSize, valueFontWeight = props.valueFontWeight;
|
|
93
93
|
var defaultOption = findOptionById({ id: activeId, idField: idField, options: options });
|
|
94
94
|
var _m = React.useState(defaultOpen), showOption = _m[0], setShowOption = _m[1];
|
|
95
95
|
var _o = React.useState(defaultOption !== null && defaultOption !== void 0 ? defaultOption : false), selectedOption = _o[0], setSelectedOption = _o[1];
|
|
@@ -163,7 +163,7 @@ var Select = function (props) {
|
|
|
163
163
|
}
|
|
164
164
|
setShowOption(false);
|
|
165
165
|
};
|
|
166
|
-
return (jsxRuntime.jsxs(SelectRoot, _tslib.__assign({ "$selectWidth": selectWidth }, { children: [topLabel ? (typeof label === "string" ? (jsxRuntime.jsx(TopLabel, _tslib.__assign({ "$labelColor": labelColor }, { children: label }), void 0)) : (showLabel.showLabel({ inputLabel: label }))) : undefined, jsxRuntime.jsxs(SelectButton, _tslib.__assign({ "$buttonBackgroundColor": buttonBackgroundColor, "$buttonBackgroundColorHover": buttonBackgroundColorHover, "$buttonBorderColor": buttonBorderColor, "$buttonBorderColorHover": buttonBorderColorHover, "$buttonBoxShadow": buttonBoxShadow, "$buttonBoxShadowHover": buttonBoxShadowHover, "$buttonBorderRadius": buttonBorderRadius, "$buttonHeight": buttonHeight, "$buttonPaddingLeft": buttonPaddingLeft, "$buttonPaddingRight": buttonPaddingRight, onClick: function () {
|
|
166
|
+
return (jsxRuntime.jsxs(SelectRoot, _tslib.__assign({ id: id, "$selectWidth": selectWidth }, { children: [topLabel ? (typeof label === "string" ? (jsxRuntime.jsx(TopLabel, _tslib.__assign({ "$labelColor": labelColor }, { children: label }), void 0)) : (showLabel.showLabel({ inputLabel: label }))) : undefined, jsxRuntime.jsxs(SelectButton, _tslib.__assign({ "$buttonBackgroundColor": buttonBackgroundColor, "$buttonBackgroundColorHover": buttonBackgroundColorHover, "$buttonBorderColor": buttonBorderColor, "$buttonBorderColorHover": buttonBorderColorHover, "$buttonBoxShadow": buttonBoxShadow, "$buttonBoxShadowHover": buttonBoxShadowHover, "$buttonBorderRadius": buttonBorderRadius, "$buttonHeight": buttonHeight, "$buttonPaddingLeft": buttonPaddingLeft, "$buttonPaddingRight": buttonPaddingRight, onClick: function () {
|
|
167
167
|
if (!disabled)
|
|
168
168
|
setShowOption(!showOption);
|
|
169
169
|
}, onKeyPress: function (event) {
|
|
@@ -243,4 +243,4 @@ Select.defaultProps = {
|
|
|
243
243
|
};
|
|
244
244
|
|
|
245
245
|
exports.Select = Select;
|
|
246
|
-
//# sourceMappingURL=Select-
|
|
246
|
+
//# sourceMappingURL=Select-a0e392fa.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select-
|
|
1
|
+
{"version":3,"file":"Select-a0e392fa.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/lib/cjs/Select.cjs
CHANGED
package/lib/cjs/index.cjs
CHANGED
|
@@ -46,7 +46,7 @@ var helpers = require('./helpers-b07f14f3.js');
|
|
|
46
46
|
var DrawerDivider = require('./DrawerDivider-8f1e423f.js');
|
|
47
47
|
var EmailInput = require('./EmailInput-ee2e8ac8.js');
|
|
48
48
|
var Footer = require('./Footer.cjs');
|
|
49
|
-
var FormikContainer = require('./FormikContainer-
|
|
49
|
+
var FormikContainer = require('./FormikContainer-d27ecf3e.js');
|
|
50
50
|
var FormFieldTypeEnum = require('./FormFieldTypeEnum.cjs');
|
|
51
51
|
var FiltersBar = require('./FiltersBar-1c53d614.js');
|
|
52
52
|
var HorizontalTabMenu = require('./HorizontalTabMenu-55955f88.js');
|
|
@@ -84,7 +84,7 @@ require('react-dom');
|
|
|
84
84
|
var ButtonColorFamilyEnum = require('./ButtonColorFamilyEnum.cjs');
|
|
85
85
|
var addOrRemoveById = require('./addOrRemoveById.cjs');
|
|
86
86
|
var SearchMenu = require('./SearchMenu-ef04455d.js');
|
|
87
|
-
var Select = require('./Select-
|
|
87
|
+
var Select = require('./Select-a0e392fa.js');
|
|
88
88
|
var SelectSearch = require('./SelectSearch-1f719a93.js');
|
|
89
89
|
var SlideIn = require('./SlideIn-7538f9a2.js');
|
|
90
90
|
var InlineSsnInput = require('./InlineSsnInput.cjs');
|
|
@@ -653,6 +653,34 @@ Object.defineProperty(exports, 'RemovableFieldTypeEnum', {
|
|
|
653
653
|
enumerable: true,
|
|
654
654
|
get: function () { return FormFieldTypeEnum.RemovableFieldTypeEnum; }
|
|
655
655
|
});
|
|
656
|
+
exports.isAddress = FormFieldTypeEnum.isAddress;
|
|
657
|
+
exports.isCheckbox = FormFieldTypeEnum.isCheckbox;
|
|
658
|
+
exports.isCheckboxGroup = FormFieldTypeEnum.isCheckboxGroup;
|
|
659
|
+
exports.isConfigurableInput = FormFieldTypeEnum.isConfigurableInput;
|
|
660
|
+
exports.isCountrySelect = FormFieldTypeEnum.isCountrySelect;
|
|
661
|
+
exports.isCountySelect = FormFieldTypeEnum.isCountySelect;
|
|
662
|
+
exports.isCreditCard = FormFieldTypeEnum.isCreditCard;
|
|
663
|
+
exports.isCurrency = FormFieldTypeEnum.isCurrency;
|
|
664
|
+
exports.isDatePicker = FormFieldTypeEnum.isDatePicker;
|
|
665
|
+
exports.isDescriptiveDropdownInput = FormFieldTypeEnum.isDescriptiveDropdownInput;
|
|
666
|
+
exports.isEmail = FormFieldTypeEnum.isEmail;
|
|
667
|
+
exports.isFormFieldType = FormFieldTypeEnum.isFormFieldType;
|
|
668
|
+
exports.isImagePicker = FormFieldTypeEnum.isImagePicker;
|
|
669
|
+
exports.isMultiSelect = FormFieldTypeEnum.isMultiSelect;
|
|
670
|
+
exports.isNumber = FormFieldTypeEnum.isNumber;
|
|
671
|
+
exports.isPassword = FormFieldTypeEnum.isPassword;
|
|
672
|
+
exports.isPhone = FormFieldTypeEnum.isPhone;
|
|
673
|
+
exports.isRadioGroup = FormFieldTypeEnum.isRadioGroup;
|
|
674
|
+
exports.isRemovable = FormFieldTypeEnum.isRemovable;
|
|
675
|
+
exports.isSectionHeader = FormFieldTypeEnum.isSectionHeader;
|
|
676
|
+
exports.isSelect = FormFieldTypeEnum.isSelect;
|
|
677
|
+
exports.isSocialSecurity = FormFieldTypeEnum.isSocialSecurity;
|
|
678
|
+
exports.isSplitLine = FormFieldTypeEnum.isSplitLine;
|
|
679
|
+
exports.isStateSelect = FormFieldTypeEnum.isStateSelect;
|
|
680
|
+
exports.isTextarea = FormFieldTypeEnum.isTextarea;
|
|
681
|
+
exports.isToggle = FormFieldTypeEnum.isToggle;
|
|
682
|
+
exports.isToggleGroup = FormFieldTypeEnum.isToggleGroup;
|
|
683
|
+
exports.isZipCode = FormFieldTypeEnum.isZipCode;
|
|
656
684
|
exports.FiltersBar = FiltersBar.FiltersBar;
|
|
657
685
|
exports.HorizontalTabMenu = HorizontalTabMenu.HorizontalTabMenu;
|
|
658
686
|
exports.IconButton = IconButton.IconButton;
|
package/lib/cjs/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/lib/esm/Form.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { F as FormWrapper } from './FormStyles-bf01f03c.js';
|
|
2
|
-
export { F as Form } from './FormikContainer-
|
|
3
|
-
export { FormFieldTypeEnum, RemovableFieldTypeEnum } from './FormFieldTypeEnum.js';
|
|
2
|
+
export { F as Form } from './FormikContainer-68671cc3.js';
|
|
3
|
+
export { FormFieldTypeEnum, RemovableFieldTypeEnum, isAddress, isCheckbox, isCheckboxGroup, isConfigurableInput, isCountrySelect, isCountySelect, isCreditCard, isCurrency, isDatePicker, isDescriptiveDropdownInput, isEmail, isFormFieldType, isImagePicker, isMultiSelect, isNumber, isPassword, isPhone, isRadioGroup, isRemovable, isSectionHeader, isSelect, isSocialSecurity, isSplitLine, isStateSelect, isTextarea, isToggle, isToggleGroup, isZipCode } from './FormFieldTypeEnum.js';
|
|
4
4
|
import './_tslib-1a4c929e.js';
|
|
5
5
|
import 'styled-components';
|
|
6
6
|
import './colors.js';
|
|
@@ -126,7 +126,7 @@ var AddressField = function (_a) {
|
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
128
|
handleChange(event);
|
|
129
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(event);
|
|
129
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(event, addressObject);
|
|
130
130
|
}, onInputBlur: function (event) {
|
|
131
131
|
setSubmitAttempt(false);
|
|
132
132
|
handleBlur(event);
|
|
@@ -1293,4 +1293,4 @@ FormikContainer.defaultProps = {
|
|
|
1293
1293
|
};
|
|
1294
1294
|
|
|
1295
1295
|
export { FormikContainer as F };
|
|
1296
|
-
//# sourceMappingURL=FormikContainer-
|
|
1296
|
+
//# sourceMappingURL=FormikContainer-68671cc3.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormikContainer-
|
|
1
|
+
{"version":3,"file":"FormikContainer-68671cc3.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -87,7 +87,7 @@ var BUTTON_PADDING_RIGHT = 33;
|
|
|
87
87
|
var CARET_SIZE = 10;
|
|
88
88
|
var OPTIONS_SIDE_PADDING = 15;
|
|
89
89
|
var Select = function (props) {
|
|
90
|
-
var activeId = props.activeId, alternateCaret = props.alternateCaret, disabled = props.disabled, _a = props.defaultOpen, defaultOpen = _a === void 0 ? false : _a, deselectFunction = props.deselectFunction, _b = props.deselectText, deselectText = _b === void 0 ? "None" : _b, buttonBackgroundColor = props.buttonBackgroundColor, buttonBackgroundColorHover = props.buttonBackgroundColorHover, buttonBorderColor = props.buttonBorderColor, buttonBorderColorHover = props.buttonBorderColorHover, buttonBoxShadow = props.buttonBoxShadow, buttonBoxShadowHover = props.buttonBoxShadowHover, buttonBorderRadius = props.buttonBorderRadius, buttonHeight = props.buttonHeight, _c = props.buttonPaddingLeft, buttonPaddingLeft = _c === void 0 ? BUTTON_PADDING_LEFT : _c, _d = props.buttonPaddingRight, buttonPaddingRight = _d === void 0 ? BUTTON_PADDING_RIGHT : _d, caretColor = props.caretColor, _e = props.caretSize, caretSize = _e === void 0 ? CARET_SIZE : _e, hideDeselect = props.hideDeselect, _f = props.idField, idField = _f === void 0 ? "id" : _f, _g = props.innerSearch, innerSearch = _g === void 0 ? false : _g, label = props.label, _h = props.labelField, labelField = _h === void 0 ? "label" : _h, labelColor = props.labelColor, onClickout = props.onClickout, onSelect = props.onSelect, options = props.options, optionsBorderColor = props.optionsBorderColor, optionsBorderRadius = props.optionsBorderRadius, optionsBoxShadow = props.optionsBoxShadow, optionsHeight = props.optionsHeight, _j = props.optionsSidePadding, optionsSidePadding = _j === void 0 ? OPTIONS_SIDE_PADDING : _j, placeholderText = props.placeholderText, placeholderTextColor = props.placeholderTextColor, _k = props.preventDeselect, preventDeselect = _k === void 0 ? false : _k, selectWidth = props.selectWidth, showSearch = props.showSearch, _l = props.showSearchThreshold, showSearchThreshold = _l === void 0 ? 10 : _l, renderOptionLabel = props.renderOptionLabel, renderSelectedLabel = props.renderSelectedLabel, textColor = props.textColor, topLabel = props.topLabel, buttonFontSize = props.buttonFontSize, valueFontWeight = props.valueFontWeight;
|
|
90
|
+
var activeId = props.activeId, alternateCaret = props.alternateCaret, disabled = props.disabled, _a = props.defaultOpen, defaultOpen = _a === void 0 ? false : _a, deselectFunction = props.deselectFunction, _b = props.deselectText, deselectText = _b === void 0 ? "None" : _b, buttonBackgroundColor = props.buttonBackgroundColor, buttonBackgroundColorHover = props.buttonBackgroundColorHover, buttonBorderColor = props.buttonBorderColor, buttonBorderColorHover = props.buttonBorderColorHover, buttonBoxShadow = props.buttonBoxShadow, buttonBoxShadowHover = props.buttonBoxShadowHover, buttonBorderRadius = props.buttonBorderRadius, buttonHeight = props.buttonHeight, _c = props.buttonPaddingLeft, buttonPaddingLeft = _c === void 0 ? BUTTON_PADDING_LEFT : _c, _d = props.buttonPaddingRight, buttonPaddingRight = _d === void 0 ? BUTTON_PADDING_RIGHT : _d, caretColor = props.caretColor, _e = props.caretSize, caretSize = _e === void 0 ? CARET_SIZE : _e, hideDeselect = props.hideDeselect, id = props.id, _f = props.idField, idField = _f === void 0 ? "id" : _f, _g = props.innerSearch, innerSearch = _g === void 0 ? false : _g, label = props.label, _h = props.labelField, labelField = _h === void 0 ? "label" : _h, labelColor = props.labelColor, onClickout = props.onClickout, onSelect = props.onSelect, options = props.options, optionsBorderColor = props.optionsBorderColor, optionsBorderRadius = props.optionsBorderRadius, optionsBoxShadow = props.optionsBoxShadow, optionsHeight = props.optionsHeight, _j = props.optionsSidePadding, optionsSidePadding = _j === void 0 ? OPTIONS_SIDE_PADDING : _j, placeholderText = props.placeholderText, placeholderTextColor = props.placeholderTextColor, _k = props.preventDeselect, preventDeselect = _k === void 0 ? false : _k, selectWidth = props.selectWidth, showSearch = props.showSearch, _l = props.showSearchThreshold, showSearchThreshold = _l === void 0 ? 10 : _l, renderOptionLabel = props.renderOptionLabel, renderSelectedLabel = props.renderSelectedLabel, textColor = props.textColor, topLabel = props.topLabel, buttonFontSize = props.buttonFontSize, valueFontWeight = props.valueFontWeight;
|
|
91
91
|
var defaultOption = findOptionById({ id: activeId, idField: idField, options: options });
|
|
92
92
|
var _m = useState(defaultOpen), showOption = _m[0], setShowOption = _m[1];
|
|
93
93
|
var _o = useState(defaultOption !== null && defaultOption !== void 0 ? defaultOption : false), selectedOption = _o[0], setSelectedOption = _o[1];
|
|
@@ -161,7 +161,7 @@ var Select = function (props) {
|
|
|
161
161
|
}
|
|
162
162
|
setShowOption(false);
|
|
163
163
|
};
|
|
164
|
-
return (jsxs(SelectRoot, __assign({ "$selectWidth": selectWidth }, { children: [topLabel ? (typeof label === "string" ? (jsx(TopLabel, __assign({ "$labelColor": labelColor }, { children: label }), void 0)) : (showLabel({ inputLabel: label }))) : undefined, jsxs(SelectButton, __assign({ "$buttonBackgroundColor": buttonBackgroundColor, "$buttonBackgroundColorHover": buttonBackgroundColorHover, "$buttonBorderColor": buttonBorderColor, "$buttonBorderColorHover": buttonBorderColorHover, "$buttonBoxShadow": buttonBoxShadow, "$buttonBoxShadowHover": buttonBoxShadowHover, "$buttonBorderRadius": buttonBorderRadius, "$buttonHeight": buttonHeight, "$buttonPaddingLeft": buttonPaddingLeft, "$buttonPaddingRight": buttonPaddingRight, onClick: function () {
|
|
164
|
+
return (jsxs(SelectRoot, __assign({ id: id, "$selectWidth": selectWidth }, { children: [topLabel ? (typeof label === "string" ? (jsx(TopLabel, __assign({ "$labelColor": labelColor }, { children: label }), void 0)) : (showLabel({ inputLabel: label }))) : undefined, jsxs(SelectButton, __assign({ "$buttonBackgroundColor": buttonBackgroundColor, "$buttonBackgroundColorHover": buttonBackgroundColorHover, "$buttonBorderColor": buttonBorderColor, "$buttonBorderColorHover": buttonBorderColorHover, "$buttonBoxShadow": buttonBoxShadow, "$buttonBoxShadowHover": buttonBoxShadowHover, "$buttonBorderRadius": buttonBorderRadius, "$buttonHeight": buttonHeight, "$buttonPaddingLeft": buttonPaddingLeft, "$buttonPaddingRight": buttonPaddingRight, onClick: function () {
|
|
165
165
|
if (!disabled)
|
|
166
166
|
setShowOption(!showOption);
|
|
167
167
|
}, onKeyPress: function (event) {
|
|
@@ -241,4 +241,4 @@ Select.defaultProps = {
|
|
|
241
241
|
};
|
|
242
242
|
|
|
243
243
|
export { Select as S };
|
|
244
|
-
//# sourceMappingURL=Select-
|
|
244
|
+
//# sourceMappingURL=Select-a9d92b4a.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select-
|
|
1
|
+
{"version":3,"file":"Select-a9d92b4a.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/lib/esm/Select.js
CHANGED
package/lib/esm/index.js
CHANGED
|
@@ -47,8 +47,8 @@ import { A as ASTERISK_OFFSET_SPACE } from './helpers-e2f33583.js';
|
|
|
47
47
|
export { D as DrawerDivider } from './DrawerDivider-5b10a31b.js';
|
|
48
48
|
export { E as EmailInput } from './EmailInput-3d43f7fe.js';
|
|
49
49
|
export { Footer } from './Footer.js';
|
|
50
|
-
export { F as Form } from './FormikContainer-
|
|
51
|
-
export { FormFieldTypeEnum, RemovableFieldTypeEnum } from './FormFieldTypeEnum.js';
|
|
50
|
+
export { F as Form } from './FormikContainer-68671cc3.js';
|
|
51
|
+
export { FormFieldTypeEnum, RemovableFieldTypeEnum, isAddress, isCheckbox, isCheckboxGroup, isConfigurableInput, isCountrySelect, isCountySelect, isCreditCard, isCurrency, isDatePicker, isDescriptiveDropdownInput, isEmail, isFormFieldType, isImagePicker, isMultiSelect, isNumber, isPassword, isPhone, isRadioGroup, isRemovable, isSectionHeader, isSelect, isSocialSecurity, isSplitLine, isStateSelect, isTextarea, isToggle, isToggleGroup, isZipCode } from './FormFieldTypeEnum.js';
|
|
52
52
|
export { F as FiltersBar } from './FiltersBar-25250ff0.js';
|
|
53
53
|
export { H as HorizontalTabMenu } from './HorizontalTabMenu-7f72f11a.js';
|
|
54
54
|
export { I as IconButton } from './IconButton-3083ac19.js';
|
|
@@ -88,7 +88,7 @@ import 'react-dom';
|
|
|
88
88
|
export { ButtonColorFamilyEnum, ConnotationColorEnum, CountryMaskEnum, FileTypeEnum, InputTheme, SnackTypeEnum, TextStyleEnum, USStatesEnum } from './ButtonColorFamilyEnum.js';
|
|
89
89
|
export { addOrRemoveById, addOrRemoveString, getObjectById, makeIdString, removeById, removeByIdArray, removeString, replaceObjectById, setAllKeysToValue, setObjectById, toggleObjectById } from './addOrRemoveById.js';
|
|
90
90
|
export { S as SearchMenu } from './SearchMenu-8ca12f8a.js';
|
|
91
|
-
export { S as Select } from './Select-
|
|
91
|
+
export { S as Select } from './Select-a9d92b4a.js';
|
|
92
92
|
export { S as SelectSearch } from './SelectSearch-9616212d.js';
|
|
93
93
|
export { S as SlideIn } from './SlideIn-cb86494c.js';
|
|
94
94
|
export { InlineSsnInput } from './InlineSsnInput.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export {
|
|
1
|
+
export { AddressInput } from "./AddressInput";
|
|
2
|
+
export type { AddressInputType, AddressDetailsType } from "./types";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FormWrapper } from "./FormStyles";
|
|
2
2
|
import { FormikContainer as Form } from "./FormikContainer";
|
|
3
|
-
import { AddressOptionsType, CheckboxGroupOptionsType, CheckboxOptionsType, CountySelectOptionsType, CreditCardOptionsType, CurrencyOptionsType, DatePickerOptionsType, EmailOptionsType, FormFieldType, FormFieldTypeEnum, FormReturnType, FormWrapperType, IconCheckboxesOptionsType, MultiSelectOptionsType, NumberOptionsType, PasswordOptionsType, PhoneOptionsType, RadioGroupOptionsType, RemovableFieldType, RemovableFieldTypeEnum, SelectOptionType, SelectOptionsType, ShowIfType, SingleOrMultipleFieldType, SocialSecurityOptionsType, SplitLineFieldType, StateSelectOptionsType, TextOptionsType, TextareaOptionsType, ToggleGroupOptionsType, ToggleOptionsType, ZipCodeOptionsType } from "./types";
|
|
4
|
-
export { Form, FormFieldTypeEnum, FormWrapper, RemovableFieldTypeEnum };
|
|
3
|
+
import { AddressOptionsType, CheckboxGroupOptionsType, CheckboxOptionsType, CountySelectOptionsType, CreditCardOptionsType, CurrencyOptionsType, DatePickerOptionsType, EmailOptionsType, FormFieldType, FormFieldTypeEnum, FormReturnType, FormWrapperType, IconCheckboxesOptionsType, MultiSelectOptionsType, NumberOptionsType, PasswordOptionsType, PhoneOptionsType, RadioGroupOptionsType, RemovableFieldType, RemovableFieldTypeEnum, SelectOptionType, SelectOptionsType, ShowIfType, SingleOrMultipleFieldType, SocialSecurityOptionsType, SplitLineFieldType, StateSelectOptionsType, TextOptionsType, TextareaOptionsType, ToggleGroupOptionsType, ToggleOptionsType, ZipCodeOptionsType, isAddress, isCheckbox, isCheckboxGroup, isConfigurableInput, isCountrySelect, isCountySelect, isCreditCard, isCurrency, isDatePicker, isDescriptiveDropdownInput, isEmail, isFormFieldType, isImagePicker, isMultiSelect, isNumber, isPassword, isPhone, isRadioGroup, isRemovable, isSectionHeader, isSelect, isSocialSecurity, isSplitLine, isStateSelect, isTextarea, isToggle, isToggleGroup, isZipCode } from "./types";
|
|
4
|
+
export { Form, FormFieldTypeEnum, FormWrapper, RemovableFieldTypeEnum, isAddress, isCheckbox, isCheckboxGroup, isConfigurableInput, isCountrySelect, isCountySelect, isCreditCard, isCurrency, isDatePicker, isDescriptiveDropdownInput, isEmail, isFormFieldType, isImagePicker, isMultiSelect, isNumber, isPassword, isPhone, isRadioGroup, isRemovable, isSectionHeader, isSelect, isSocialSecurity, isSplitLine, isStateSelect, isTextarea, isToggle, isToggleGroup, isZipCode, };
|
|
5
5
|
export type { AddressOptionsType, CheckboxOptionsType, CheckboxGroupOptionsType, CountySelectOptionsType, CreditCardOptionsType, CurrencyOptionsType, DatePickerOptionsType, EmailOptionsType, FormFieldType, FormReturnType, FormWrapperType, IconCheckboxesOptionsType, MultiSelectOptionsType, NumberOptionsType, PasswordOptionsType, PhoneOptionsType, RadioGroupOptionsType, RemovableFieldType, SelectOptionType, SelectOptionsType, ShowIfType, SingleOrMultipleFieldType, SocialSecurityOptionsType, SplitLineFieldType, StateSelectOptionsType, TextOptionsType, TextareaOptionsType, ToggleOptionsType, ToggleGroupOptionsType, ZipCodeOptionsType, };
|
|
@@ -7,6 +7,7 @@ import { IconType } from "../Icons";
|
|
|
7
7
|
import { ResizeEnum } from "../Textarea";
|
|
8
8
|
import { ButtonColorFamilyEnum, CountryMaskEnum, USStatesEnum } from "../../sharedTypes/enums";
|
|
9
9
|
import { ColorFamilyType, FilterClickResponse, OptionType, RenderOptionLabelProps, SwitchGroupSwitchType, YupSchema } from "../../sharedTypes/types";
|
|
10
|
+
import { AddressDetailsType } from "./../AddressInput/types";
|
|
10
11
|
export interface FormType<FormData extends Record<string, any> = Record<string, any>> {
|
|
11
12
|
/** Installs a button for each item at the bottom of the form */
|
|
12
13
|
addButtons?: Array<AddButtonType>;
|
|
@@ -169,7 +170,7 @@ export interface AddressOptionsType {
|
|
|
169
170
|
value: string;
|
|
170
171
|
name?: string;
|
|
171
172
|
};
|
|
172
|
-
}) => void;
|
|
173
|
+
}, addressObject?: AddressDetailsType) => void;
|
|
173
174
|
placeholder?: string;
|
|
174
175
|
stateAbbrFieldName?: string;
|
|
175
176
|
stateFieldName?: string;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { OptionType, RenderOptionLabelProps } from "../../sharedTypes/types";
|
|
3
3
|
export interface SelectType {
|
|
4
|
+
/** The ID attribute for the Select component root element*/
|
|
5
|
+
id?: string;
|
|
4
6
|
/** The id of the default option */
|
|
5
7
|
activeId?: string | number;
|
|
6
8
|
/** Will use an alternate, more compact caret icon */
|
package/lib/types/src/index.d.ts
CHANGED
|
@@ -123,6 +123,7 @@ export { useFocus } from "./hooks/useFocus";
|
|
|
123
123
|
export { useMediaQuery } from "./hooks/useMediaQuery";
|
|
124
124
|
export { usePrevious } from "./hooks/usePrevious";
|
|
125
125
|
export type { AccordionType, AccordionDrawerType } from "./components/Accordion";
|
|
126
|
+
export type { AddressInputType, AddressDetailsType } from "./components/AddressInput";
|
|
126
127
|
export type { AlertCountType } from "./components/AlertCount";
|
|
127
128
|
export type { AvatarType } from "./components/Avatar";
|
|
128
129
|
export type { ButtonType, SingleButtonType, LoadingConfigurationType } from "./components/Button";
|
|
@@ -230,4 +231,5 @@ export { SwitchTypeEnum } from "./components/DescriptiveSwitchMenu";
|
|
|
230
231
|
export { TextVariantEnum } from "./components/Typography";
|
|
231
232
|
export { ButtonColorFamilyEnum, ConnotationColorEnum, CountryMaskEnum, FileTypeEnum, InputTheme, SnackTypeEnum, TextStyleEnum, USStatesEnum, } from "./sharedTypes/enums";
|
|
232
233
|
export { isUSStatesEnum } from "./sharedTypes/types";
|
|
234
|
+
export { isAddress, isCheckbox, isCheckboxGroup, isConfigurableInput, isCountrySelect, isCountySelect, isCreditCard, isCurrency, isDatePicker, isDescriptiveDropdownInput, isEmail, isFormFieldType, isImagePicker, isMultiSelect, isNumber, isPassword, isPhone, isRadioGroup, isRemovable, isSectionHeader, isSelect, isSocialSecurity, isSplitLine, isStateSelect, isTextarea, isToggle, isToggleGroup, isZipCode, } from "./components/Form";
|
|
233
235
|
export { CheckboxCellWrapper, ToggleCell, PhoneCell } from "./examples/tableComponentWrappers";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cerebruminc/cerebellum",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.3.0",
|
|
4
4
|
"description": "Cerebrum's React Component Library",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/cjs/index.cjs",
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
"rollup-plugin-typescript2": "^0.36.0",
|
|
115
115
|
"rollup-plugin-visualizer": "^5.9.2",
|
|
116
116
|
"storybook": "^7.0.18",
|
|
117
|
-
"ts-jest": "29.1.
|
|
117
|
+
"ts-jest": "29.1.5",
|
|
118
118
|
"ttypescript": "^1.5.13",
|
|
119
119
|
"typescript": "^4.5.4",
|
|
120
120
|
"typescript-transform-paths": "^3.4.6",
|