@cerebruminc/cerebellum 12.2.1 → 13.0.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.
Files changed (77) hide show
  1. package/lib/cjs/{ConfirmModal-479fb68e.js → ConfirmModal-162405a7.js} +3 -3
  2. package/lib/cjs/ConfirmModal-162405a7.js.map +1 -0
  3. package/lib/cjs/ConfirmModal.cjs +1 -1
  4. package/lib/cjs/CountryDropdown-75ca6885.js +1671 -0
  5. package/lib/cjs/CountryDropdown-75ca6885.js.map +1 -0
  6. package/lib/cjs/CountryDropdown.cjs +68 -0
  7. package/lib/cjs/CountryDropdown.cjs.map +1 -0
  8. package/lib/cjs/Form.cjs +3 -2
  9. package/lib/cjs/Form.cjs.map +1 -1
  10. package/lib/cjs/FormFieldTypeEnum.cjs +6 -0
  11. package/lib/cjs/FormFieldTypeEnum.cjs.map +1 -1
  12. package/lib/cjs/{FormStyles-244ea0b3.js → FormStyles-91ec9d95.js} +25 -18
  13. package/lib/cjs/{FormStyles-244ea0b3.js.map → FormStyles-91ec9d95.js.map} +1 -1
  14. package/lib/cjs/FormWrapper.cjs +1 -1
  15. package/lib/cjs/{FormikContainer-ee106db6.js → FormikContainer-d5d9c1d3.js} +47 -8
  16. package/lib/{esm/FormikContainer-5cce2479.js.map → cjs/FormikContainer-d5d9c1d3.js.map} +1 -1
  17. package/lib/cjs/{RJSForm-e368090c.js → RJSForm-5b02b6d2.js} +2 -2
  18. package/lib/cjs/{RJSForm-e368090c.js.map → RJSForm-5b02b6d2.js.map} +1 -1
  19. package/lib/cjs/RJSForm.cjs +2 -2
  20. package/lib/cjs/altPostalCodeNames.cjs +68 -0
  21. package/lib/cjs/altPostalCodeNames.cjs.map +1 -0
  22. package/lib/cjs/altRegionNames.cjs +68 -0
  23. package/lib/cjs/altRegionNames.cjs.map +1 -0
  24. package/lib/cjs/countryList.cjs +68 -0
  25. package/lib/cjs/countryList.cjs.map +1 -0
  26. package/lib/cjs/countryLookup.cjs +68 -0
  27. package/lib/cjs/countryLookup.cjs.map +1 -0
  28. package/lib/cjs/index.cjs +10 -4
  29. package/lib/cjs/index.cjs.map +1 -1
  30. package/lib/esm/{ConfirmModal-6a35295a.js → ConfirmModal-d81758f0.js} +3 -3
  31. package/lib/esm/ConfirmModal-d81758f0.js.map +1 -0
  32. package/lib/esm/ConfirmModal.js +1 -1
  33. package/lib/esm/CountryDropdown-062fcebd.js +1643 -0
  34. package/lib/esm/CountryDropdown-062fcebd.js.map +1 -0
  35. package/lib/esm/CountryDropdown.js +56 -0
  36. package/lib/esm/CountryDropdown.js.map +1 -0
  37. package/lib/esm/Form.js +3 -2
  38. package/lib/esm/Form.js.map +1 -1
  39. package/lib/esm/FormFieldTypeEnum.js +6 -1
  40. package/lib/esm/FormFieldTypeEnum.js.map +1 -1
  41. package/lib/esm/{FormStyles-e3b99008.js → FormStyles-6cb7c6ff.js} +26 -19
  42. package/lib/esm/{FormStyles-e3b99008.js.map → FormStyles-6cb7c6ff.js.map} +1 -1
  43. package/lib/esm/FormWrapper.js +1 -1
  44. package/lib/esm/{FormikContainer-5cce2479.js → FormikContainer-23e9e82c.js} +48 -9
  45. package/lib/{cjs/FormikContainer-ee106db6.js.map → esm/FormikContainer-23e9e82c.js.map} +1 -1
  46. package/lib/esm/{RJSForm-2589dc39.js → RJSForm-476553a2.js} +2 -2
  47. package/lib/esm/{RJSForm-2589dc39.js.map → RJSForm-476553a2.js.map} +1 -1
  48. package/lib/esm/RJSForm.js +2 -2
  49. package/lib/esm/altPostalCodeNames.js +56 -0
  50. package/lib/esm/altPostalCodeNames.js.map +1 -0
  51. package/lib/esm/altRegionNames.js +56 -0
  52. package/lib/esm/altRegionNames.js.map +1 -0
  53. package/lib/esm/countryList.js +56 -0
  54. package/lib/esm/countryList.js.map +1 -0
  55. package/lib/esm/countryLookup.js +56 -0
  56. package/lib/esm/countryLookup.js.map +1 -0
  57. package/lib/esm/index.js +6 -5
  58. package/lib/esm/index.js.map +1 -1
  59. package/lib/types/src/components/ConfirmModal/types.d.ts +4 -0
  60. package/lib/types/src/components/Form/FormikContainer.d.ts +1 -0
  61. package/lib/types/src/components/Form/const.d.ts +1 -0
  62. package/lib/types/src/components/Form/fields/CountrySelectField/CountrySelectField.d.ts +4 -0
  63. package/lib/types/src/components/Form/fields/CountrySelectField/DynamicLabelsExample.d.ts +1 -0
  64. package/lib/types/src/components/Form/fields/index.d.ts +2 -1
  65. package/lib/types/src/components/Form/mocks/fields.d.ts +77 -3
  66. package/lib/types/src/components/Form/types.d.ts +43 -3
  67. package/lib/types/src/configuredComponents/CountryDropdown/CountryDropdown.d.ts +3 -0
  68. package/lib/types/src/configuredComponents/CountryDropdown/CountryDropdownStyles.d.ts +2 -0
  69. package/lib/types/src/configuredComponents/CountryDropdown/Flag.d.ts +3 -0
  70. package/lib/types/src/configuredComponents/CountryDropdown/countryList.d.ts +318 -0
  71. package/lib/types/src/configuredComponents/CountryDropdown/flagImports.d.ts +256 -0
  72. package/lib/types/src/configuredComponents/CountryDropdown/index.d.ts +3 -0
  73. package/lib/types/src/configuredComponents/CountryDropdown/types.d.ts +8 -0
  74. package/lib/types/src/index.d.ts +2 -0
  75. package/package.json +2 -1
  76. package/lib/cjs/ConfirmModal-479fb68e.js.map +0 -1
  77. package/lib/esm/ConfirmModal-6a35295a.js.map +0 -1
@@ -55,7 +55,7 @@ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, temp
55
55
 
56
56
  var ConfirmModal = function (_a) {
57
57
  var _b, _c, _d, _e, _f, _g;
58
- var children = _a.children, header = _a.header, Icon = _a.Icon, onPrimaryClick = _a.onPrimaryClick, onSecondaryClick = _a.onSecondaryClick, onXClick = _a.onXClick, primaryButtonText = _a.primaryButtonText, primaryButtonLoading = _a.primaryButtonLoading, _h = _a.primaryColorFamily, primaryColorFamily = _h === void 0 ? ButtonColorFamilyEnum.ButtonColorFamilyEnum.Blue : _h, primaryColorFamilyOverride = _a.primaryColorFamilyOverride, secondaryAsText = _a.secondaryAsText, secondaryButtonText = _a.secondaryButtonText, secondaryButtonLoading = _a.secondaryButtonLoading, secondaryColorFamily = _a.secondaryColorFamily, secondaryColorFamilyOverride = _a.secondaryColorFamilyOverride, show = _a.show, text = _a.text, themeOverride = _a.themeOverride;
58
+ var children = _a.children, header = _a.header, Icon = _a.Icon, onPrimaryClick = _a.onPrimaryClick, onSecondaryClick = _a.onSecondaryClick, onXClick = _a.onXClick, primaryButtonDisabled = _a.primaryButtonDisabled, primaryButtonText = _a.primaryButtonText, primaryButtonLoading = _a.primaryButtonLoading, _h = _a.primaryColorFamily, primaryColorFamily = _h === void 0 ? ButtonColorFamilyEnum.ButtonColorFamilyEnum.Blue : _h, primaryColorFamilyOverride = _a.primaryColorFamilyOverride, secondaryButtonDisabled = _a.secondaryButtonDisabled, secondaryAsText = _a.secondaryAsText, secondaryButtonText = _a.secondaryButtonText, secondaryButtonLoading = _a.secondaryButtonLoading, secondaryColorFamily = _a.secondaryColorFamily, secondaryColorFamilyOverride = _a.secondaryColorFamilyOverride, show = _a.show, text = _a.text, themeOverride = _a.themeOverride;
59
59
  var theme = styled.useTheme();
60
60
  var colorFamilies = theme.colorFamilies;
61
61
  var primaryColorGroup = primaryColorFamilyOverride || colorFamilies[primaryColorFamily];
@@ -68,7 +68,7 @@ var ConfirmModal = function (_a) {
68
68
  var modalPaddingString = "".concat(topPadding, "px ").concat(sidePadding, "px ").concat(bottomPadding, "px");
69
69
  var textSpace = modalWidth - sidePadding * 2;
70
70
  var buttonWidth = (textSpace - buttonGap) / 2;
71
- return (jsxRuntime.jsx(Modal.Modal, _tslib.__assign({ borderRadius: (_b = themeOverride === null || themeOverride === void 0 ? void 0 : themeOverride.borderRadius) !== null && _b !== void 0 ? _b : theme.confirmModal.borderRadius, closeFunction: show ? onXClick : undefined, show: show, minWidth: modalWidth, mobileBreakpoint: modalWidth + 20, paddingString: modalPaddingString, showBoxShadow: (_c = themeOverride === null || themeOverride === void 0 ? void 0 : themeOverride.showBoxShadow) !== null && _c !== void 0 ? _c : theme.confirmModal.showBoxShadow, showOverflow: (_d = themeOverride === null || themeOverride === void 0 ? void 0 : themeOverride.showOverflow) !== null && _d !== void 0 ? _d : theme.confirmModal.showOverflow, slideDown: (_e = themeOverride === null || themeOverride === void 0 ? void 0 : themeOverride.slideDown) !== null && _e !== void 0 ? _e : theme.confirmModal.slideDown, xColor: (_f = themeOverride === null || themeOverride === void 0 ? void 0 : themeOverride.xColor) !== null && _f !== void 0 ? _f : theme.confirmModal.xColor }, { children: jsxRuntime.jsxs(BoundingBox, _tslib.__assign({ "$fixedWidth": modalWidth }, { children: [Icon && (jsxRuntime.jsx(IconBox, { children: jsxRuntime.jsx(Icon, { fill: primaryColorGroup.hover }, void 0) }, void 0)), jsxRuntime.jsx(Header, _tslib.__assign({ "$textBelow": !!text, "$themeOverride": themeOverride }, { children: header }), void 0), jsxRuntime.jsx(Text, _tslib.__assign({ "$childrenBelow": !!children, "$themeOverride": themeOverride }, { children: text }), void 0), children, jsxRuntime.jsxs(ButtonGroup, _tslib.__assign({ "$secondaryAsText": secondaryAsText, "$themeOverride": themeOverride }, { children: [onSecondaryClick && !secondaryAsText && (jsxRuntime.jsx(OutlineButton.OutlineButton, { buttonHeight: (themeOverride === null || themeOverride === void 0 ? void 0 : themeOverride.buttonHeight) || theme.confirmModal.buttonHeight, buttonWidth: (themeOverride === null || themeOverride === void 0 ? void 0 : themeOverride.secondaryButtonWidth) || buttonWidth, disabled: !show, colorFamily: secondaryColorFamily || (secondaryAsText ? ButtonColorFamilyEnum.ButtonColorFamilyEnum.CoolGrey : ButtonColorFamilyEnum.ButtonColorFamilyEnum.Blue), colorFamilyOverride: secondaryColorFamilyOverride, onClick: onSecondaryClick, text: secondaryButtonText || "", loading: secondaryButtonLoading }, void 0)), onSecondaryClick && secondaryAsText && (jsxRuntime.jsx(TextButtonSleeve, { children: jsxRuntime.jsx(TextButton.TextButton, { buttonWidth: buttonWidth, disabled: !show, colorFamily: secondaryColorFamily || (secondaryAsText ? ButtonColorFamilyEnum.ButtonColorFamilyEnum.CoolGrey : ButtonColorFamilyEnum.ButtonColorFamilyEnum.Blue), colorFamilyOverride: secondaryColorFamilyOverride, onClick: onSecondaryClick, text: secondaryButtonText || "", loading: secondaryButtonLoading }, void 0) }, void 0)), onPrimaryClick && (jsxRuntime.jsx(PrimaryButton.PrimaryButton, { disabled: !show, colorFamily: primaryColorFamily, colorFamilyOverride: primaryColorFamilyOverride, onClick: onPrimaryClick, text: primaryButtonText || "", buttonHeight: (themeOverride === null || themeOverride === void 0 ? void 0 : themeOverride.buttonHeight) || theme.confirmModal.buttonHeight, buttonWidth: (themeOverride === null || themeOverride === void 0 ? void 0 : themeOverride.primaryButtonWidth) || buttonWidth, shadow: (_g = themeOverride === null || themeOverride === void 0 ? void 0 : themeOverride.primaryButtonShadow) !== null && _g !== void 0 ? _g : theme.confirmModal.primaryButtonShadow, loading: primaryButtonLoading }, void 0))] }), void 0)] }), void 0) }), void 0));
71
+ return (jsxRuntime.jsx(Modal.Modal, _tslib.__assign({ borderRadius: (_b = themeOverride === null || themeOverride === void 0 ? void 0 : themeOverride.borderRadius) !== null && _b !== void 0 ? _b : theme.confirmModal.borderRadius, closeFunction: show ? onXClick : undefined, show: show, minWidth: modalWidth, mobileBreakpoint: modalWidth + 20, paddingString: modalPaddingString, showBoxShadow: (_c = themeOverride === null || themeOverride === void 0 ? void 0 : themeOverride.showBoxShadow) !== null && _c !== void 0 ? _c : theme.confirmModal.showBoxShadow, showOverflow: (_d = themeOverride === null || themeOverride === void 0 ? void 0 : themeOverride.showOverflow) !== null && _d !== void 0 ? _d : theme.confirmModal.showOverflow, slideDown: (_e = themeOverride === null || themeOverride === void 0 ? void 0 : themeOverride.slideDown) !== null && _e !== void 0 ? _e : theme.confirmModal.slideDown, xColor: (_f = themeOverride === null || themeOverride === void 0 ? void 0 : themeOverride.xColor) !== null && _f !== void 0 ? _f : theme.confirmModal.xColor }, { children: jsxRuntime.jsxs(BoundingBox, _tslib.__assign({ "$fixedWidth": modalWidth }, { children: [Icon && (jsxRuntime.jsx(IconBox, { children: jsxRuntime.jsx(Icon, { fill: primaryColorGroup.hover }, void 0) }, void 0)), jsxRuntime.jsx(Header, _tslib.__assign({ "$textBelow": !!text, "$themeOverride": themeOverride }, { children: header }), void 0), jsxRuntime.jsx(Text, _tslib.__assign({ "$childrenBelow": !!children, "$themeOverride": themeOverride }, { children: text }), void 0), children, jsxRuntime.jsxs(ButtonGroup, _tslib.__assign({ "$secondaryAsText": secondaryAsText, "$themeOverride": themeOverride }, { children: [onSecondaryClick && !secondaryAsText && (jsxRuntime.jsx(OutlineButton.OutlineButton, { buttonHeight: (themeOverride === null || themeOverride === void 0 ? void 0 : themeOverride.buttonHeight) || theme.confirmModal.buttonHeight, buttonWidth: (themeOverride === null || themeOverride === void 0 ? void 0 : themeOverride.secondaryButtonWidth) || buttonWidth, disabled: !show || secondaryButtonDisabled, colorFamily: secondaryColorFamily || (secondaryAsText ? ButtonColorFamilyEnum.ButtonColorFamilyEnum.CoolGrey : ButtonColorFamilyEnum.ButtonColorFamilyEnum.Blue), colorFamilyOverride: secondaryColorFamilyOverride, onClick: onSecondaryClick, text: secondaryButtonText || "", loading: secondaryButtonLoading }, void 0)), onSecondaryClick && secondaryAsText && (jsxRuntime.jsx(TextButtonSleeve, { children: jsxRuntime.jsx(TextButton.TextButton, { buttonWidth: buttonWidth, disabled: !show || secondaryButtonDisabled, colorFamily: secondaryColorFamily || (secondaryAsText ? ButtonColorFamilyEnum.ButtonColorFamilyEnum.CoolGrey : ButtonColorFamilyEnum.ButtonColorFamilyEnum.Blue), colorFamilyOverride: secondaryColorFamilyOverride, onClick: onSecondaryClick, text: secondaryButtonText || "", loading: secondaryButtonLoading }, void 0) }, void 0)), onPrimaryClick && (jsxRuntime.jsx(PrimaryButton.PrimaryButton, { disabled: !show || primaryButtonDisabled, colorFamily: primaryColorFamily, colorFamilyOverride: primaryColorFamilyOverride, onClick: onPrimaryClick, text: primaryButtonText || "", buttonHeight: (themeOverride === null || themeOverride === void 0 ? void 0 : themeOverride.buttonHeight) || theme.confirmModal.buttonHeight, buttonWidth: (themeOverride === null || themeOverride === void 0 ? void 0 : themeOverride.primaryButtonWidth) || buttonWidth, shadow: (_g = themeOverride === null || themeOverride === void 0 ? void 0 : themeOverride.primaryButtonShadow) !== null && _g !== void 0 ? _g : theme.confirmModal.primaryButtonShadow, loading: primaryButtonLoading }, void 0))] }), void 0)] }), void 0) }), void 0));
72
72
  };
73
73
  ConfirmModal.defaultProps = {
74
74
  primaryButtonText: "Okay",
@@ -77,4 +77,4 @@ ConfirmModal.defaultProps = {
77
77
  };
78
78
 
79
79
  exports.ConfirmModal = ConfirmModal;
80
- //# sourceMappingURL=ConfirmModal-479fb68e.js.map
80
+ //# sourceMappingURL=ConfirmModal-162405a7.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConfirmModal-162405a7.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var ConfirmModal = require('./ConfirmModal-479fb68e.js');
5
+ var ConfirmModal = require('./ConfirmModal-162405a7.js');
6
6
  require('./_tslib-955e611e.js');
7
7
  require('react/jsx-runtime');
8
8
  require('styled-components');