@bigbinary/neetoui 6.6.0 → 6.7.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/README.md +2 -5
- package/dist/Accordion.js +2 -290
- package/dist/Accordion.js.map +1 -1
- package/dist/ActionDropdown.js +4 -3
- package/dist/ActionDropdown.js.map +1 -1
- package/dist/Alert.js +5 -4
- package/dist/Alert.js.map +1 -1
- package/dist/Avatar.js +9 -1128
- package/dist/Avatar.js.map +1 -1
- package/dist/Button.js +3 -2
- package/dist/Button.js.map +1 -1
- package/dist/Checkbox.js +3 -2
- package/dist/Checkbox.js.map +1 -1
- package/dist/ColorPicker.js +8 -8
- package/dist/ColorPicker.js.map +1 -1
- package/dist/DatePicker.js +3 -2
- package/dist/DatePicker.js.map +1 -1
- package/dist/DateTimePicker.js +7 -5
- package/dist/DateTimePicker.js.map +1 -1
- package/dist/Dropdown.js +4 -3
- package/dist/Dropdown.js.map +1 -1
- package/dist/Input.js +3 -2
- package/dist/Input.js.map +1 -1
- package/dist/Kbd.js +2 -1
- package/dist/Kbd.js.map +1 -1
- package/dist/Label.js +2 -1
- package/dist/Label.js.map +1 -1
- package/dist/Modal.js +5 -4
- package/dist/Modal.js.map +1 -1
- package/dist/MultiEmailInput.js +6 -4
- package/dist/MultiEmailInput.js.map +1 -1
- package/dist/NoData.js +3 -2
- package/dist/NoData.js.map +1 -1
- package/dist/Pagination.js +2 -2
- package/dist/Pane.js +5 -4
- package/dist/Pane.js.map +1 -1
- package/dist/Popover.js +2 -1
- package/dist/Popover.js.map +1 -1
- package/dist/ProgressBar.js +1 -1
- package/dist/Radio.js +3 -2
- package/dist/Radio.js.map +1 -1
- package/dist/Select.js +30 -182
- package/dist/Select.js.map +1 -1
- package/dist/Sidebar.js +4 -2
- package/dist/Sidebar.js.map +1 -1
- package/dist/Slider.js +3 -2
- package/dist/Slider.js.map +1 -1
- package/dist/Switch.js +3 -2
- package/dist/Switch.js.map +1 -1
- package/dist/Table.js +405 -4540
- package/dist/Table.js.map +1 -1
- package/dist/Textarea.js +3 -2
- package/dist/Textarea.js.map +1 -1
- package/dist/TimePicker.js +3 -2
- package/dist/TimePicker.js.map +1 -1
- package/dist/TimePickerInput.js +8 -6
- package/dist/TimePickerInput.js.map +1 -1
- package/dist/Toastr.js +3 -1653
- package/dist/Toastr.js.map +1 -1
- package/dist/Tooltip.js +2 -1
- package/dist/Tooltip.js.map +1 -1
- package/dist/Tree.js +1 -1
- package/dist/TreeSelect.js +3 -2
- package/dist/TreeSelect.js.map +1 -1
- package/dist/cjs/Accordion.js +3 -309
- package/dist/cjs/Accordion.js.map +1 -1
- package/dist/cjs/ActionDropdown.js +4 -3
- package/dist/cjs/ActionDropdown.js.map +1 -1
- package/dist/cjs/Alert.js +5 -4
- package/dist/cjs/Alert.js.map +1 -1
- package/dist/cjs/Avatar.js +10 -1128
- package/dist/cjs/Avatar.js.map +1 -1
- package/dist/cjs/Button.js +6 -5
- package/dist/cjs/Button.js.map +1 -1
- package/dist/cjs/Checkbox.js +3 -2
- package/dist/cjs/Checkbox.js.map +1 -1
- package/dist/cjs/ColorPicker.js +7 -7
- package/dist/cjs/ColorPicker.js.map +1 -1
- package/dist/cjs/DatePicker.js +3 -2
- package/dist/cjs/DatePicker.js.map +1 -1
- package/dist/cjs/DateTimePicker.js +7 -5
- package/dist/cjs/DateTimePicker.js.map +1 -1
- package/dist/cjs/Dropdown.js +4 -3
- package/dist/cjs/Dropdown.js.map +1 -1
- package/dist/cjs/Input.js +3 -2
- package/dist/cjs/Input.js.map +1 -1
- package/dist/cjs/Kbd.js +2 -1
- package/dist/cjs/Kbd.js.map +1 -1
- package/dist/cjs/Label.js +2 -1
- package/dist/cjs/Label.js.map +1 -1
- package/dist/cjs/Modal.js +5 -4
- package/dist/cjs/Modal.js.map +1 -1
- package/dist/cjs/MultiEmailInput.js +15 -12
- package/dist/cjs/MultiEmailInput.js.map +1 -1
- package/dist/cjs/NoData.js +3 -2
- package/dist/cjs/NoData.js.map +1 -1
- package/dist/cjs/Pagination.js +2 -2
- package/dist/cjs/Pane.js +5 -4
- package/dist/cjs/Pane.js.map +1 -1
- package/dist/cjs/Popover.js +2 -1
- package/dist/cjs/Popover.js.map +1 -1
- package/dist/cjs/ProgressBar.js +2 -2
- package/dist/cjs/ProgressBar.js.map +1 -1
- package/dist/cjs/Radio.js +3 -2
- package/dist/cjs/Radio.js.map +1 -1
- package/dist/cjs/Select.js +26 -192
- package/dist/cjs/Select.js.map +1 -1
- package/dist/cjs/Sidebar.js +4 -2
- package/dist/cjs/Sidebar.js.map +1 -1
- package/dist/cjs/Slider.js +3 -2
- package/dist/cjs/Slider.js.map +1 -1
- package/dist/cjs/Switch.js +3 -2
- package/dist/cjs/Switch.js.map +1 -1
- package/dist/cjs/Table.js +430 -4565
- package/dist/cjs/Table.js.map +1 -1
- package/dist/cjs/Textarea.js +3 -2
- package/dist/cjs/Textarea.js.map +1 -1
- package/dist/cjs/TimePicker.js +3 -2
- package/dist/cjs/TimePicker.js.map +1 -1
- package/dist/cjs/TimePickerInput.js +8 -6
- package/dist/cjs/TimePickerInput.js.map +1 -1
- package/dist/cjs/Toastr.js +6 -1656
- package/dist/cjs/Toastr.js.map +1 -1
- package/dist/cjs/Tooltip.js +2 -1
- package/dist/cjs/Tooltip.js.map +1 -1
- package/dist/cjs/Tree.js +1 -1
- package/dist/cjs/TreeSelect.js +3 -2
- package/dist/cjs/TreeSelect.js.map +1 -1
- package/dist/cjs/formik/ActionBlock.js +3 -2
- package/dist/cjs/formik/ActionBlock.js.map +1 -1
- package/dist/cjs/formik/BlockNavigation.js +5 -4
- package/dist/cjs/formik/BlockNavigation.js.map +1 -1
- package/dist/cjs/formik/Button.js +3 -2
- package/dist/cjs/formik/Button.js.map +1 -1
- package/dist/cjs/formik/Checkbox.js +3 -2
- package/dist/cjs/formik/Checkbox.js.map +1 -1
- package/dist/cjs/formik/Input.js +3 -2
- package/dist/cjs/formik/Input.js.map +1 -1
- package/dist/cjs/formik/MultiEmailInput.js +6 -4
- package/dist/cjs/formik/MultiEmailInput.js.map +1 -1
- package/dist/cjs/formik/Radio.js +3 -2
- package/dist/cjs/formik/Radio.js.map +1 -1
- package/dist/cjs/formik/Select.js +8 -4
- package/dist/cjs/formik/Select.js.map +1 -1
- package/dist/cjs/formik/Slider.js +3 -2
- package/dist/cjs/formik/Slider.js.map +1 -1
- package/dist/cjs/formik/Switch.js +3 -2
- package/dist/cjs/formik/Switch.js.map +1 -1
- package/dist/cjs/formik/Textarea.js +3 -2
- package/dist/cjs/formik/Textarea.js.map +1 -1
- package/dist/cjs/formik/TreeSelect.js +3 -2
- package/dist/cjs/formik/TreeSelect.js.map +1 -1
- package/dist/cjs/formik/index.js +9 -5
- package/dist/cjs/formik/index.js.map +1 -1
- package/dist/cjs/{index-16ef19ed.js → index-6e09c7bc.js} +1 -23
- package/dist/cjs/index-6e09c7bc.js.map +1 -0
- package/dist/cjs/index-773961dd.js +453 -0
- package/dist/cjs/index-773961dd.js.map +1 -0
- package/dist/cjs/index-becc6543.js +262 -0
- package/dist/cjs/index-becc6543.js.map +1 -0
- package/dist/cjs/index.js +18 -7
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/layouts.js +4 -2
- package/dist/cjs/layouts.js.map +1 -1
- package/dist/cjs/{useOverlayManager-53380ba5.js → useOverlayManager-359ed795.js} +2 -2
- package/dist/cjs/{useOverlayManager-53380ba5.js.map → useOverlayManager-359ed795.js.map} +1 -1
- package/dist/cjs/{useQueryParams-3ddcf459.js → useQueryParams-14f054b3.js} +2 -2
- package/dist/cjs/{useQueryParams-3ddcf459.js.map → useQueryParams-14f054b3.js.map} +1 -1
- package/dist/formik/ActionBlock.js +3 -2
- package/dist/formik/ActionBlock.js.map +1 -1
- package/dist/formik/BlockNavigation.js +5 -4
- package/dist/formik/BlockNavigation.js.map +1 -1
- package/dist/formik/Button.js +3 -2
- package/dist/formik/Button.js.map +1 -1
- package/dist/formik/Checkbox.js +3 -2
- package/dist/formik/Checkbox.js.map +1 -1
- package/dist/formik/Input.js +3 -2
- package/dist/formik/Input.js.map +1 -1
- package/dist/formik/MultiEmailInput.js +6 -4
- package/dist/formik/MultiEmailInput.js.map +1 -1
- package/dist/formik/Radio.js +3 -2
- package/dist/formik/Radio.js.map +1 -1
- package/dist/formik/Select.js +8 -4
- package/dist/formik/Select.js.map +1 -1
- package/dist/formik/Slider.js +3 -2
- package/dist/formik/Slider.js.map +1 -1
- package/dist/formik/Switch.js +3 -2
- package/dist/formik/Switch.js.map +1 -1
- package/dist/formik/Textarea.js +3 -2
- package/dist/formik/Textarea.js.map +1 -1
- package/dist/formik/TreeSelect.js +3 -2
- package/dist/formik/TreeSelect.js.map +1 -1
- package/dist/formik/index.js +9 -5
- package/dist/formik/index.js.map +1 -1
- package/dist/index-661b9fd6.js +253 -0
- package/dist/index-661b9fd6.js.map +1 -0
- package/dist/index-c442518b.js +445 -0
- package/dist/index-c442518b.js.map +1 -0
- package/dist/{index-26f3deee.js → index-c8d9113c.js} +2 -23
- package/dist/index-c8d9113c.js.map +1 -0
- package/dist/index.js +18 -7
- package/dist/index.js.map +1 -1
- package/dist/layouts.js +4 -2
- package/dist/layouts.js.map +1 -1
- package/dist/{useOverlayManager-e76af01f.js → useOverlayManager-95a474d5.js} +2 -2
- package/dist/{useOverlayManager-e76af01f.js.map → useOverlayManager-95a474d5.js.map} +1 -1
- package/dist/{useQueryParams-4731dc94.js → useQueryParams-4e7ddcf8.js} +2 -2
- package/dist/{useQueryParams-4731dc94.js.map → useQueryParams-4e7ddcf8.js.map} +1 -1
- package/package.json +13 -2
- package/dist/cjs/index-0e68cfff.js +0 -3934
- package/dist/cjs/index-0e68cfff.js.map +0 -1
- package/dist/cjs/index-16ef19ed.js.map +0 -1
- package/dist/cjs/index-e722fedf.js +0 -3844
- package/dist/cjs/index-e722fedf.js.map +0 -1
- package/dist/cjs/motion-a1906aff.js +0 -8892
- package/dist/cjs/motion-a1906aff.js.map +0 -1
- package/dist/cjs/react-select-creatable.esm-b39742a3.js +0 -6675
- package/dist/cjs/react-select-creatable.esm-b39742a3.js.map +0 -1
- package/dist/index-2123b5e9.js +0 -3927
- package/dist/index-2123b5e9.js.map +0 -1
- package/dist/index-26f3deee.js.map +0 -1
- package/dist/index-8ff7d9a1.js +0 -3837
- package/dist/index-8ff7d9a1.js.map +0 -1
- package/dist/motion-087daf52.js +0 -8862
- package/dist/motion-087daf52.js.map +0 -1
- package/dist/react-select-creatable.esm-93affeca.js +0 -6644
- package/dist/react-select-creatable.esm-93affeca.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionBlock.js","sources":["../../src/formik/ActionBlock.jsx"],"sourcesContent":["import React from \"react\";\n\nimport classnames from \"classnames\";\nimport { useFormikContext } from \"formik\";\nimport PropTypes from \"prop-types\";\n\nimport Button from \"components/Button\";\n\nimport SubmitButton from \"./Button\";\n\nconst POSITIONS = { left: \"left\", right: \"right\" };\n\nconst ActionBlock = ({\n className,\n submitButtonProps,\n cancelButtonProps,\n isSubmitting: isFormSubmitting,\n position = POSITIONS.left,\n}) => {\n const {\n handleReset,\n isSubmitting: isFormikSubmitting,\n dirty,\n } = useFormikContext();\n\n const isSubmitting = isFormSubmitting ?? isFormikSubmitting;\n const isButtonPositionRight = position === POSITIONS.right;\n\n const cancelButton = (\n <Button\n data-cy=\"cancel-button\"\n data-test-id=\"cancel-button\"\n disabled={isSubmitting}\n label=\"Cancel\"\n style=\"text\"\n onClick={handleReset}\n onMouseDown={e => e.preventDefault()}\n {...cancelButtonProps}\n />\n );\n\n const submitButton = (\n <SubmitButton\n data-cy=\"save-changes-button\"\n data-test-id=\"save-changes-button\"\n disabled={isSubmitting || !dirty}\n label=\"Save changes\"\n loading={isSubmitting}\n style=\"primary\"\n type=\"submit\"\n {...submitButtonProps}\n />\n );\n\n return (\n <div\n className={classnames([\n \"neeto-ui-action-block__wrapper\",\n { \"justify-end\": isButtonPositionRight },\n className,\n ])}\n >\n {isButtonPositionRight ? (\n <>\n {cancelButton}\n {submitButton}\n </>\n ) : (\n <>\n {submitButton}\n {cancelButton}\n </>\n )}\n </div>\n );\n};\n\nActionBlock.propTypes = {\n /**\n * To specify additional classnames for action block.\n */\n className: PropTypes.string,\n /**\n * To provide props for submit button.\n */\n submitButtonProps: PropTypes.object,\n /**\n * To provide props for cancel button.\n */\n cancelButtonProps: PropTypes.object,\n /**\n * Optional prop to specify the state of form submission, typically used to provide React Query mutation loading state. If not provided, Formik's `isSubmitting` prop is used.\n */\n isSubmitting: PropTypes.bool,\n /**\n * Determines the alignment of buttons in ActionBlock components. Set to `right` when using ActionBlock to right-align both buttons. Defaults to `left`, left-aligning both buttons.\n */\n position: PropTypes.oneOf(Object.values(POSITIONS)),\n};\n\nexport default ActionBlock;\n"],"names":["POSITIONS","left","right","ActionBlock","_ref","className","submitButtonProps","cancelButtonProps","isFormSubmitting","isSubmitting","_ref$position","position","_useFormikContext","useFormikContext","handleReset","isFormikSubmitting","dirty","isButtonPositionRight","cancelButton","React","createElement","Button","_extends","disabled","label","style","onClick","onMouseDown","e","preventDefault","submitButton","SubmitButton","loading","type","classnames","Fragment"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ActionBlock.js","sources":["../../src/formik/ActionBlock.jsx"],"sourcesContent":["import React from \"react\";\n\nimport classnames from \"classnames\";\nimport { useFormikContext } from \"formik\";\nimport PropTypes from \"prop-types\";\n\nimport Button from \"components/Button\";\n\nimport SubmitButton from \"./Button\";\n\nconst POSITIONS = { left: \"left\", right: \"right\" };\n\nconst ActionBlock = ({\n className,\n submitButtonProps,\n cancelButtonProps,\n isSubmitting: isFormSubmitting,\n position = POSITIONS.left,\n}) => {\n const {\n handleReset,\n isSubmitting: isFormikSubmitting,\n dirty,\n } = useFormikContext();\n\n const isSubmitting = isFormSubmitting ?? isFormikSubmitting;\n const isButtonPositionRight = position === POSITIONS.right;\n\n const cancelButton = (\n <Button\n data-cy=\"cancel-button\"\n data-test-id=\"cancel-button\"\n disabled={isSubmitting}\n label=\"Cancel\"\n style=\"text\"\n onClick={handleReset}\n onMouseDown={e => e.preventDefault()}\n {...cancelButtonProps}\n />\n );\n\n const submitButton = (\n <SubmitButton\n data-cy=\"save-changes-button\"\n data-test-id=\"save-changes-button\"\n disabled={isSubmitting || !dirty}\n label=\"Save changes\"\n loading={isSubmitting}\n style=\"primary\"\n type=\"submit\"\n {...submitButtonProps}\n />\n );\n\n return (\n <div\n className={classnames([\n \"neeto-ui-action-block__wrapper\",\n { \"justify-end\": isButtonPositionRight },\n className,\n ])}\n >\n {isButtonPositionRight ? (\n <>\n {cancelButton}\n {submitButton}\n </>\n ) : (\n <>\n {submitButton}\n {cancelButton}\n </>\n )}\n </div>\n );\n};\n\nActionBlock.propTypes = {\n /**\n * To specify additional classnames for action block.\n */\n className: PropTypes.string,\n /**\n * To provide props for submit button.\n */\n submitButtonProps: PropTypes.object,\n /**\n * To provide props for cancel button.\n */\n cancelButtonProps: PropTypes.object,\n /**\n * Optional prop to specify the state of form submission, typically used to provide React Query mutation loading state. If not provided, Formik's `isSubmitting` prop is used.\n */\n isSubmitting: PropTypes.bool,\n /**\n * Determines the alignment of buttons in ActionBlock components. Set to `right` when using ActionBlock to right-align both buttons. Defaults to `left`, left-aligning both buttons.\n */\n position: PropTypes.oneOf(Object.values(POSITIONS)),\n};\n\nexport default ActionBlock;\n"],"names":["POSITIONS","left","right","ActionBlock","_ref","className","submitButtonProps","cancelButtonProps","isFormSubmitting","isSubmitting","_ref$position","position","_useFormikContext","useFormikContext","handleReset","isFormikSubmitting","dirty","isButtonPositionRight","cancelButton","React","createElement","Button","_extends","disabled","label","style","onClick","onMouseDown","e","preventDefault","submitButton","SubmitButton","loading","type","classnames","Fragment"],"mappings":";;;;;;;;;;;;;;;;;AAUA,IAAMA,SAAS,GAAG;AAAEC,EAAAA,IAAI,EAAE,MAAM;AAAEC,EAAAA,KAAK,EAAE,OAAA;AAAQ,CAAC,CAAA;AAElD,IAAMC,WAAW,GAAG,SAAdA,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AAA,SAAA,EAAQ,qBAAqB;AAC7B,IAAA,cAAA,EAAa,qBAAqB;AAClCC,IAAAA,QAAQ,EAAEd,YAAY,IAAI,CAACO,KAAM;AACjCQ,IAAAA,KAAK,EAAC,cAAc;AACpBQ,IAAAA,OAAO,EAAEvB,YAAa;AACtBgB,IAAAA,KAAK,EAAC,SAAS;AACfQ,IAAAA,IAAI,EAAC,QAAA;AAAQ,GAAA,EACT3B,iBAAiB,CAExB,CAAA,CAAA;EAED,oBACEa,cAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;AACEf,IAAAA,SAAS,EAAE6B,UAAU,CAAC,CACpB,gCAAgC,EAChC;AAAE,MAAA,aAAa,EAAEjB,qBAAAA;KAAuB,EACxCZ,SAAS,CACV,CAAA;GAEAY,EAAAA,qBAAqB,gBACpBE,cAAA,CAAAC,aAAA,CAAAD,cAAA,CAAAgB,QAAA,EACGjB,IAAAA,EAAAA,YAAY,EACZY,YAAY,CACZ,gBAEHX,cAAA,CAAAC,aAAA,CAAAD,cAAA,CAAAgB,QAAA,EAAA,IAAA,EACGL,YAAY,EACZZ,YAAY,CAEhB,CACG,CAAA;AAEV;;;;"}
|
|
@@ -7,17 +7,18 @@ import { _ as _slicedToArray } from '../slicedToArray-45fa766e.js';
|
|
|
7
7
|
import { useHistory } from 'react-router-dom';
|
|
8
8
|
import '../index-7fae3611.js';
|
|
9
9
|
import '../overlayManager.js';
|
|
10
|
-
import '../index-
|
|
10
|
+
import '../index-c8d9113c.js';
|
|
11
11
|
import '../Button.js';
|
|
12
12
|
import '../defineProperty-e5245270.js';
|
|
13
13
|
import '../toPropertyKey-bdc24cb9.js';
|
|
14
14
|
import '../index-3659771d.js';
|
|
15
|
-
import '
|
|
16
|
-
import '../index-
|
|
15
|
+
import 'framer-motion';
|
|
16
|
+
import '../index-c442518b.js';
|
|
17
|
+
import 'tippy.js';
|
|
17
18
|
import 'react-dom';
|
|
18
19
|
import '../Modal.js';
|
|
19
20
|
import '@bigbinary/neeto-icons';
|
|
20
|
-
import '../useOverlayManager-
|
|
21
|
+
import '../useOverlayManager-95a474d5.js';
|
|
21
22
|
import '../index-283bc6a6.js';
|
|
22
23
|
import 'ramda';
|
|
23
24
|
import '../Typography.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BlockNavigation.js","sources":["../../src/hooks/useNavPrompt.js","../../src/formik/BlockNavigation.jsx"],"sourcesContent":["import { useEffect, useRef, useState } from \"react\";\n\nimport { useHistory } from \"react-router-dom\";\n\nconst useNavPrompt = ({ shouldBlock = true }) => {\n const [isBlocked, setIsBlocked] = useState(false);\n\n const history = useHistory();\n const unblockRef = useRef();\n const navRef = useRef();\n\n const continueNavigation = () => {\n if (isBlocked && unblockRef.current) {\n unblockRef.current?.();\n setIsBlocked(false);\n if (navRef.current) {\n const { action, transition } = navRef.current;\n handleNavigation(action, transition);\n }\n }\n };\n\n const hidePrompt = () => setIsBlocked(false);\n\n const handleNavigation = (action, transition) => {\n switch (action) {\n case \"PUSH\":\n history.push(transition);\n break;\n case \"REPLACE\":\n history.replace(transition);\n break;\n case \"POP\":\n history.goBack();\n break;\n }\n };\n\n useEffect(() => {\n if (shouldBlock) {\n unblockRef.current = history.block((transition, action) => {\n setIsBlocked(true);\n navRef.current = { transition, action };\n\n return false;\n });\n\n return () => {\n if (unblockRef.current) {\n unblockRef.current();\n }\n };\n }\n\n return undefined;\n }, [shouldBlock]);\n\n return { isBlocked, continueNavigation, hidePrompt };\n};\n\nexport default useNavPrompt;\n","import React from \"react\";\n\nimport { useFormikContext } from \"formik\";\nimport PropTypes from \"prop-types\";\n\nimport Alert from \"components/Alert\";\nimport { useNavPrompt } from \"hooks\";\n\nconst BlockNavigation = ({ isDirty = false, ...otherProps }) => {\n const formikContext = useFormikContext();\n const shouldBlock =\n isDirty || (Boolean(formikContext) && Boolean(formikContext.dirty));\n\n const { isBlocked, continueNavigation, hidePrompt } = useNavPrompt({\n shouldBlock,\n });\n\n const continueAction = () => {\n if (formikContext) formikContext.resetForm();\n continueNavigation();\n };\n\n return (\n <Alert\n isOpen={isBlocked}\n message=\"All of your unsaved changes will be lost. This can't be undone.\"\n submitButtonLabel=\"Discard changes\"\n title=\"You have unsaved changes\"\n onClose={hidePrompt}\n onSubmit={continueAction}\n {...otherProps}\n />\n );\n};\n\nBlockNavigation.propTypes = {\n isDirty: PropTypes.bool,\n message: PropTypes.string,\n title: PropTypes.string,\n submitButtonLabel: PropTypes.string,\n};\n\nexport default BlockNavigation;\n"],"names":["useNavPrompt","_ref","_ref$shouldBlock","shouldBlock","_useState","useState","_useState2","_slicedToArray","isBlocked","setIsBlocked","history","useHistory","unblockRef","useRef","navRef","continueNavigation","current","_unblockRef$current","call","_navRef$current","action","transition","handleNavigation","hidePrompt","push","replace","goBack","useEffect","block","undefined","BlockNavigation","_ref$isDirty","isDirty","otherProps","_objectWithoutProperties","_excluded","formikContext","useFormikContext","Boolean","dirty","_useNavPrompt","continueAction","resetForm","React","createElement","Alert","_extends","isOpen","message","submitButtonLabel","title","onClose","onSubmit"],"mappings":"
|
|
1
|
+
{"version":3,"file":"BlockNavigation.js","sources":["../../src/hooks/useNavPrompt.js","../../src/formik/BlockNavigation.jsx"],"sourcesContent":["import { useEffect, useRef, useState } from \"react\";\n\nimport { useHistory } from \"react-router-dom\";\n\nconst useNavPrompt = ({ shouldBlock = true }) => {\n const [isBlocked, setIsBlocked] = useState(false);\n\n const history = useHistory();\n const unblockRef = useRef();\n const navRef = useRef();\n\n const continueNavigation = () => {\n if (isBlocked && unblockRef.current) {\n unblockRef.current?.();\n setIsBlocked(false);\n if (navRef.current) {\n const { action, transition } = navRef.current;\n handleNavigation(action, transition);\n }\n }\n };\n\n const hidePrompt = () => setIsBlocked(false);\n\n const handleNavigation = (action, transition) => {\n switch (action) {\n case \"PUSH\":\n history.push(transition);\n break;\n case \"REPLACE\":\n history.replace(transition);\n break;\n case \"POP\":\n history.goBack();\n break;\n }\n };\n\n useEffect(() => {\n if (shouldBlock) {\n unblockRef.current = history.block((transition, action) => {\n setIsBlocked(true);\n navRef.current = { transition, action };\n\n return false;\n });\n\n return () => {\n if (unblockRef.current) {\n unblockRef.current();\n }\n };\n }\n\n return undefined;\n }, [shouldBlock]);\n\n return { isBlocked, continueNavigation, hidePrompt };\n};\n\nexport default useNavPrompt;\n","import React from \"react\";\n\nimport { useFormikContext } from \"formik\";\nimport PropTypes from \"prop-types\";\n\nimport Alert from \"components/Alert\";\nimport { useNavPrompt } from \"hooks\";\n\nconst BlockNavigation = ({ isDirty = false, ...otherProps }) => {\n const formikContext = useFormikContext();\n const shouldBlock =\n isDirty || (Boolean(formikContext) && Boolean(formikContext.dirty));\n\n const { isBlocked, continueNavigation, hidePrompt } = useNavPrompt({\n shouldBlock,\n });\n\n const continueAction = () => {\n if (formikContext) formikContext.resetForm();\n continueNavigation();\n };\n\n return (\n <Alert\n isOpen={isBlocked}\n message=\"All of your unsaved changes will be lost. This can't be undone.\"\n submitButtonLabel=\"Discard changes\"\n title=\"You have unsaved changes\"\n onClose={hidePrompt}\n onSubmit={continueAction}\n {...otherProps}\n />\n );\n};\n\nBlockNavigation.propTypes = {\n isDirty: PropTypes.bool,\n message: PropTypes.string,\n title: PropTypes.string,\n submitButtonLabel: PropTypes.string,\n};\n\nexport default BlockNavigation;\n"],"names":["useNavPrompt","_ref","_ref$shouldBlock","shouldBlock","_useState","useState","_useState2","_slicedToArray","isBlocked","setIsBlocked","history","useHistory","unblockRef","useRef","navRef","continueNavigation","current","_unblockRef$current","call","_navRef$current","action","transition","handleNavigation","hidePrompt","push","replace","goBack","useEffect","block","undefined","BlockNavigation","_ref$isDirty","isDirty","otherProps","_objectWithoutProperties","_excluded","formikContext","useFormikContext","Boolean","dirty","_useNavPrompt","continueAction","resetForm","React","createElement","Alert","_extends","isOpen","message","submitButtonLabel","title","onClose","onSubmit"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAMA,YAAY,GAAG,SAAfA,YAAYA,CAAAC,IAAA,EAA+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AAA,OAAO,GAAAD,YAAA,KAAG,KAAA,CAAA,GAAA,KAAK,GAAAA,YAAA;AAAKE,IAAAA,UAAU,GAAAC,wBAAA,CAAAjC,IAAA,EAAAkC,SAAA,CAAA,CAAA;EACvD,IAAMC,aAAa,GAAGC,gBAAgB,EAAE,CAAA;AACxC,EAAA,IAAMlC,WAAW,GACf6B,OAAO,IAAKM,OAAO,CAACF,aAAa,CAAC,IAAIE,OAAO,CAACF,aAAa,CAACG,KAAK,CAAE,CAAA;EAErE,IAAAC,aAAA,GAAsDxC,YAAY,CAAC;AACjEG,MAAAA,WAAW,EAAXA,WAAAA;AACF,KAAC,CAAC;IAFMK,SAAS,GAAAgC,aAAA,CAAThC,SAAS;IAAEO,kBAAkB,GAAAyB,aAAA,CAAlBzB,kBAAkB;IAAEQ,UAAU,GAAAiB,aAAA,CAAVjB,UAAU,CAAA;AAIjD,EAAA,IAAMkB,cAAc,GAAG,SAAjBA,cAAcA,GAAS;AAC3B,IAAA,IAAIL,aAAa,EAAEA,aAAa,CAACM,SAAS,EAAE,CAAA;AAC5C3B,IAAAA,kBAAkB,EAAE,CAAA;GACrB,CAAA;AAED,EAAA,oBACE4B,cAAA,CAAAC,aAAA,CAACC,KAAK,EAAAC,QAAA,CAAA;AACJC,IAAAA,MAAM,EAAEvC,SAAU;AAClBwC,IAAAA,OAAO,EAAC,iEAAiE;AACzEC,IAAAA,iBAAiB,EAAC,iBAAiB;AACnCC,IAAAA,KAAK,EAAC,0BAA0B;AAChCC,IAAAA,OAAO,EAAE5B,UAAW;AACpB6B,IAAAA,QAAQ,EAAEX,cAAAA;AAAe,GAAA,EACrBR,UAAU,CACd,CAAA,CAAA;AAEN;;;;"}
|
package/dist/formik/Button.js
CHANGED
|
@@ -8,9 +8,10 @@ import '../defineProperty-e5245270.js';
|
|
|
8
8
|
import '../toPropertyKey-bdc24cb9.js';
|
|
9
9
|
import '../index-3659771d.js';
|
|
10
10
|
import 'react-router-dom';
|
|
11
|
-
import '
|
|
12
|
-
import '../index-
|
|
11
|
+
import 'framer-motion';
|
|
12
|
+
import '../index-c442518b.js';
|
|
13
13
|
import '../slicedToArray-45fa766e.js';
|
|
14
|
+
import 'tippy.js';
|
|
14
15
|
import 'react-dom';
|
|
15
16
|
|
|
16
17
|
var _excluded = ["disabled"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.js","sources":["../../src/formik/Button.jsx"],"sourcesContent":["import React, { forwardRef } from \"react\";\n\nimport { useFormikContext } from \"formik\";\nimport { equals } from \"ramda\";\n\nimport Button from \"components/Button\";\n\nconst FormikButton = forwardRef(({ disabled, ...otherProps }, ref) => {\n const { handleSubmit, isSubmitting, values, initialValues, isValid } =\n useFormikContext();\n\n const isDisabled =\n disabled ?? (isSubmitting || equals(values, initialValues));\n\n return (\n <Button\n {...{ ref }}\n disabled={isDisabled}\n loading={isSubmitting && isValid}\n onClick={handleSubmit}\n {...otherProps}\n />\n );\n});\n\nFormikButton.displayName = \"FormikButton\";\n\nexport default FormikButton;\n"],"names":["FormikButton","forwardRef","_ref","ref","disabled","otherProps","_objectWithoutProperties","_excluded","_useFormikContext","useFormikContext","handleSubmit","isSubmitting","values","initialValues","isValid","isDisabled","equals","React","createElement","Button","_extends","loading","onClick","displayName"],"mappings":"
|
|
1
|
+
{"version":3,"file":"Button.js","sources":["../../src/formik/Button.jsx"],"sourcesContent":["import React, { forwardRef } from \"react\";\n\nimport { useFormikContext } from \"formik\";\nimport { equals } from \"ramda\";\n\nimport Button from \"components/Button\";\n\nconst FormikButton = forwardRef(({ disabled, ...otherProps }, ref) => {\n const { handleSubmit, isSubmitting, values, initialValues, isValid } =\n useFormikContext();\n\n const isDisabled =\n disabled ?? (isSubmitting || equals(values, initialValues));\n\n return (\n <Button\n {...{ ref }}\n disabled={isDisabled}\n loading={isSubmitting && isValid}\n onClick={handleSubmit}\n {...otherProps}\n />\n );\n});\n\nFormikButton.displayName = \"FormikButton\";\n\nexport default FormikButton;\n"],"names":["FormikButton","forwardRef","_ref","ref","disabled","otherProps","_objectWithoutProperties","_excluded","_useFormikContext","useFormikContext","handleSubmit","isSubmitting","values","initialValues","isValid","isDisabled","equals","React","createElement","Button","_extends","loading","onClick","displayName"],"mappings":";;;;;;;;;;;;;;;;;AAOMA,IAAAA,YAAY,gBAAGC,UAAU,CAAC,UAAAC,IAAA,EAA8BC,GAAG,EAAK;AAAA,EAAA,IAAnCC,QAAQ,GAAAF,IAAA,CAARE,QAAQ;AAAKC,IAAAA,UAAU,GAAAC,wBAAA,CAAAJ,IAAA,EAAAK,SAAA,CAAA,CAAA;EACxD,IAAAC,iBAAA,GACEC,gBAAgB,EAAE;IADZC,YAAY,GAAAF,iBAAA,CAAZE,YAAY;IAAEC,YAAY,GAAAH,iBAAA,CAAZG,YAAY;IAAEC,MAAM,GAAAJ,iBAAA,CAANI,MAAM;IAAEC,aAAa,GAAAL,iBAAA,CAAbK,aAAa;IAAEC,OAAO,GAAAN,iBAAA,CAAPM,OAAO,CAAA;AAGlE,EAAA,IAAMC,UAAU,GACdX,QAAQ,KAAA,IAAA,IAARA,QAAQ,KAARA,KAAAA,CAAAA,GAAAA,QAAQ,GAAKO,YAAY,IAAIK,MAAM,CAACJ,MAAM,EAAEC,aAAa,CAAE,CAAA;AAE7D,EAAA,oBACEI,cAAA,CAAAC,aAAA,CAACC,MAAM,EAAAC,QAAA,CAAA;AACCjB,IAAAA,GAAG,EAAHA,GAAG;AACTC,IAAAA,QAAQ,EAAEW,UAAW;IACrBM,OAAO,EAAEV,YAAY,IAAIG,OAAQ;AACjCQ,IAAAA,OAAO,EAAEZ,YAAAA;AAAa,GAAA,EAClBL,UAAU,CACd,CAAA,CAAA;AAEN,CAAC,EAAC;AAEFL,YAAY,CAACuB,WAAW,GAAG,cAAc;;;;"}
|
package/dist/formik/Checkbox.js
CHANGED
|
@@ -13,13 +13,14 @@ import '../index-7fae3611.js';
|
|
|
13
13
|
import 'ramda';
|
|
14
14
|
import '../overlayManager.js';
|
|
15
15
|
import '../createClass-601a36b2.js';
|
|
16
|
-
import '../index-
|
|
16
|
+
import '../index-c8d9113c.js';
|
|
17
17
|
import '../slicedToArray-45fa766e.js';
|
|
18
18
|
import '@bigbinary/neeto-cist';
|
|
19
19
|
import 'util';
|
|
20
20
|
import '../Label.js';
|
|
21
21
|
import '@bigbinary/neeto-icons';
|
|
22
|
-
import '../index-
|
|
22
|
+
import '../index-c442518b.js';
|
|
23
|
+
import 'tippy.js';
|
|
23
24
|
import 'react-dom';
|
|
24
25
|
|
|
25
26
|
var _excluded = ["name"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox.js","sources":["../../src/formik/Checkbox.jsx"],"sourcesContent":["import React, { forwardRef } from \"react\";\n\nimport { Field } from \"formik\";\nimport PropTypes from \"prop-types\";\n\nimport CheckboxField from \"components/Checkbox\";\n\nconst Checkbox = forwardRef(({ name, ...rest }, ref) => (\n <Field {...{ name }}>\n {({ field, meta }) => (\n <CheckboxField\n checked={field.value}\n {...{ ...field, ref }}\n error={meta.touched ? meta.error : \"\"}\n {...rest}\n />\n )}\n </Field>\n));\n\nCheckbox.displayName = \"Checkbox\";\n\nCheckbox.propTypes = {\n /**\n * The name of the Checkbox.\n */\n name: PropTypes.string,\n};\n\nexport default Checkbox;\n"],"names":["Checkbox","forwardRef","_ref","ref","name","rest","_objectWithoutProperties","_excluded","React","createElement","Field","_ref2","field","meta","CheckboxField","_extends","checked","value","_objectSpread","error","touched","displayName","propTypes","PropTypes","string"],"mappings":"
|
|
1
|
+
{"version":3,"file":"Checkbox.js","sources":["../../src/formik/Checkbox.jsx"],"sourcesContent":["import React, { forwardRef } from \"react\";\n\nimport { Field } from \"formik\";\nimport PropTypes from \"prop-types\";\n\nimport CheckboxField from \"components/Checkbox\";\n\nconst Checkbox = forwardRef(({ name, ...rest }, ref) => (\n <Field {...{ name }}>\n {({ field, meta }) => (\n <CheckboxField\n checked={field.value}\n {...{ ...field, ref }}\n error={meta.touched ? meta.error : \"\"}\n {...rest}\n />\n )}\n </Field>\n));\n\nCheckbox.displayName = \"Checkbox\";\n\nCheckbox.propTypes = {\n /**\n * The name of the Checkbox.\n */\n name: PropTypes.string,\n};\n\nexport default Checkbox;\n"],"names":["Checkbox","forwardRef","_ref","ref","name","rest","_objectWithoutProperties","_excluded","React","createElement","Field","_ref2","field","meta","CheckboxField","_extends","checked","value","_objectSpread","error","touched","displayName","propTypes","PropTypes","string"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,IAAMA,QAAQ,gBAAGC,UAAU,CAAC,UAAAC,IAAA,EAAoBC,GAAG,EAAA;AAAA,EAAA,IAApBC,IAAI,GAAAF,IAAA,CAAJE,IAAI;AAAKC,IAAAA,IAAI,GAAAC,wBAAA,CAAAJ,IAAA,EAAAK,SAAA,CAAA,CAAA;AAAA,EAAA,oBAC1CC,cAAA,CAAAC,aAAA,CAACC,KAAK,EAAA;AAAON,IAAAA,IAAI,EAAJA,IAAAA;AAAI,GAAA,EACd,UAAAO,KAAA,EAAA;AAAA,IAAA,IAAGC,KAAK,GAAAD,KAAA,CAALC,KAAK;MAAEC,IAAI,GAAAF,KAAA,CAAJE,IAAI,CAAA;AAAA,IAAA,oBACbL,cAAA,CAAAC,aAAA,CAACK,UAAa,EAAAC,QAAA,CAAA;MACZC,OAAO,EAAEJ,KAAK,CAACK,KAAAA;AAAM,KAAA,EAAAC,aAAA,CAAAA,aAAA,CAAA,EAAA,EACZN,KAAK,CAAA,EAAA,EAAA,EAAA;AAAET,MAAAA,GAAG,EAAHA,GAAAA;AAAG,KAAA,CAAA,EAAA;MACnBgB,KAAK,EAAEN,IAAI,CAACO,OAAO,GAAGP,IAAI,CAACM,KAAK,GAAG,EAAA;AAAG,KAAA,EAClCd,IAAI,CACR,CAAA,CAAA;AAAA,GACH,CACK,CAAA;AAAA,CACT,EAAC;AAEFL,QAAQ,CAACqB,WAAW,GAAG,UAAU,CAAA;AAEjCrB,QAAQ,CAACsB,SAAS,GAAG;AACnB;AACF;AACA;EACElB,IAAI,EAAEmB,iBAAS,CAACC,MAAAA;AAClB,CAAC;;;;"}
|
package/dist/formik/Input.js
CHANGED
|
@@ -14,12 +14,13 @@ import 'react-router-dom';
|
|
|
14
14
|
import '../index-7fae3611.js';
|
|
15
15
|
import '../overlayManager.js';
|
|
16
16
|
import '../createClass-601a36b2.js';
|
|
17
|
-
import '../index-
|
|
17
|
+
import '../index-c8d9113c.js';
|
|
18
18
|
import '@bigbinary/neeto-cist';
|
|
19
19
|
import 'util';
|
|
20
20
|
import '../Label.js';
|
|
21
21
|
import '@bigbinary/neeto-icons';
|
|
22
|
-
import '../index-
|
|
22
|
+
import '../index-c442518b.js';
|
|
23
|
+
import 'tippy.js';
|
|
23
24
|
import 'react-dom';
|
|
24
25
|
|
|
25
26
|
var _excluded = ["name"];
|
package/dist/formik/Input.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.js","sources":["../../src/formik/Input.jsx"],"sourcesContent":["import React, { forwardRef } from \"react\";\n\nimport { Field } from \"formik\";\nimport PropTypes from \"prop-types\";\n\nimport Input from \"components/Input\";\n\nconst FormikInput = forwardRef(({ name, ...rest }, ref) => (\n <Field {...{ name }}>\n {({ field, meta }) => (\n <Input\n {...{ ref, ...field }}\n error={meta.touched ? meta.error : \"\"}\n {...rest}\n />\n )}\n </Field>\n));\n\nFormikInput.displayName = \"FormikInput\";\n\nFormikInput.propTypes = {\n /**\n * The name of the input field.\n */\n name: PropTypes.string,\n};\n\nexport default FormikInput;\n"],"names":["FormikInput","forwardRef","_ref","ref","name","rest","_objectWithoutProperties","_excluded","React","createElement","Field","_ref2","field","meta","Input","_extends","_objectSpread","error","touched","displayName","propTypes","PropTypes","string"],"mappings":"
|
|
1
|
+
{"version":3,"file":"Input.js","sources":["../../src/formik/Input.jsx"],"sourcesContent":["import React, { forwardRef } from \"react\";\n\nimport { Field } from \"formik\";\nimport PropTypes from \"prop-types\";\n\nimport Input from \"components/Input\";\n\nconst FormikInput = forwardRef(({ name, ...rest }, ref) => (\n <Field {...{ name }}>\n {({ field, meta }) => (\n <Input\n {...{ ref, ...field }}\n error={meta.touched ? meta.error : \"\"}\n {...rest}\n />\n )}\n </Field>\n));\n\nFormikInput.displayName = \"FormikInput\";\n\nFormikInput.propTypes = {\n /**\n * The name of the input field.\n */\n name: PropTypes.string,\n};\n\nexport default FormikInput;\n"],"names":["FormikInput","forwardRef","_ref","ref","name","rest","_objectWithoutProperties","_excluded","React","createElement","Field","_ref2","field","meta","Input","_extends","_objectSpread","error","touched","displayName","propTypes","PropTypes","string"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,IAAMA,WAAW,gBAAGC,UAAU,CAAC,UAAAC,IAAA,EAAoBC,GAAG,EAAA;AAAA,EAAA,IAApBC,IAAI,GAAAF,IAAA,CAAJE,IAAI;AAAKC,IAAAA,IAAI,GAAAC,wBAAA,CAAAJ,IAAA,EAAAK,SAAA,CAAA,CAAA;AAAA,EAAA,oBAC7CC,cAAA,CAAAC,aAAA,CAACC,KAAK,EAAA;AAAON,IAAAA,IAAI,EAAJA,IAAAA;AAAI,GAAA,EACd,UAAAO,KAAA,EAAA;AAAA,IAAA,IAAGC,KAAK,GAAAD,KAAA,CAALC,KAAK;MAAEC,IAAI,GAAAF,KAAA,CAAJE,IAAI,CAAA;IAAA,oBACbL,cAAA,CAAAC,aAAA,CAACK,KAAK,EAAAC,QAAA,KAAAC,aAAA,CAAA;AACEb,MAAAA,GAAG,EAAHA,GAAAA;AAAG,KAAA,EAAKS,KAAK,CAAA,EAAA;MACnBK,KAAK,EAAEJ,IAAI,CAACK,OAAO,GAAGL,IAAI,CAACI,KAAK,GAAG,EAAA;AAAG,KAAA,EAClCZ,IAAI,CACR,CAAA,CAAA;AAAA,GACH,CACK,CAAA;AAAA,CACT,EAAC;AAEFL,WAAW,CAACmB,WAAW,GAAG,aAAa,CAAA;AAEvCnB,WAAW,CAACoB,SAAS,GAAG;AACtB;AACF;AACA;EACEhB,IAAI,EAAEiB,iBAAS,CAACC,MAAAA;AAClB,CAAC;;;;"}
|
|
@@ -9,16 +9,18 @@ import '../toPropertyKey-bdc24cb9.js';
|
|
|
9
9
|
import '../toConsumableArray-1186e144.js';
|
|
10
10
|
import '../index-3659771d.js';
|
|
11
11
|
import 'ramda';
|
|
12
|
-
import '
|
|
13
|
-
import '
|
|
14
|
-
import '../index-26f3deee.js';
|
|
12
|
+
import 'react-select/creatable';
|
|
13
|
+
import '../index-c8d9113c.js';
|
|
15
14
|
import '../createClass-601a36b2.js';
|
|
16
15
|
import '@bigbinary/neeto-cist';
|
|
17
16
|
import 'util';
|
|
18
17
|
import '@bigbinary/neeto-icons';
|
|
18
|
+
import 'react-select';
|
|
19
19
|
import '../Tag.js';
|
|
20
20
|
import '../Label.js';
|
|
21
|
-
import '../index-
|
|
21
|
+
import '../index-c442518b.js';
|
|
22
|
+
import 'tippy.js';
|
|
23
|
+
import 'react-dom';
|
|
22
24
|
|
|
23
25
|
var _excluded = ["name"];
|
|
24
26
|
var FormikMultiEmailInput = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MultiEmailInput.js","sources":["../../src/formik/MultiEmailInput.jsx"],"sourcesContent":["import React, { forwardRef } from \"react\";\n\nimport { useField } from \"formik\";\nimport PropTypes from \"prop-types\";\n\nimport EmailInput from \"components/MultiEmailInput\";\n\nconst FormikMultiEmailInput = forwardRef(({ name, ...otherProps }, ref) => {\n const [field, meta, { setValue, setTouched }] = useField(name);\n\n return (\n <EmailInput\n {...{ ref }}\n error={meta.touched ? meta.error : \"\"}\n name={field.name}\n value={field.value}\n onBlur={() => setTouched(true)}\n onChange={value => setValue(value)}\n {...otherProps}\n />\n );\n});\n\nFormikMultiEmailInput.displayName = \"FormikMultiEmailInput\";\n\nFormikMultiEmailInput.propTypes = {\n /**\n * The name of the email input field.\n */\n name: PropTypes.string,\n};\n\nexport default FormikMultiEmailInput;\n"],"names":["FormikMultiEmailInput","forwardRef","_ref","ref","name","otherProps","_objectWithoutProperties","_excluded","_useField","useField","_useField2","_slicedToArray","field","meta","_useField2$","setValue","setTouched","React","createElement","EmailInput","_extends","error","touched","value","onBlur","onChange","displayName"],"mappings":"
|
|
1
|
+
{"version":3,"file":"MultiEmailInput.js","sources":["../../src/formik/MultiEmailInput.jsx"],"sourcesContent":["import React, { forwardRef } from \"react\";\n\nimport { useField } from \"formik\";\nimport PropTypes from \"prop-types\";\n\nimport EmailInput from \"components/MultiEmailInput\";\n\nconst FormikMultiEmailInput = forwardRef(({ name, ...otherProps }, ref) => {\n const [field, meta, { setValue, setTouched }] = useField(name);\n\n return (\n <EmailInput\n {...{ ref }}\n error={meta.touched ? meta.error : \"\"}\n name={field.name}\n value={field.value}\n onBlur={() => setTouched(true)}\n onChange={value => setValue(value)}\n {...otherProps}\n />\n );\n});\n\nFormikMultiEmailInput.displayName = \"FormikMultiEmailInput\";\n\nFormikMultiEmailInput.propTypes = {\n /**\n * The name of the email input field.\n */\n name: PropTypes.string,\n};\n\nexport default FormikMultiEmailInput;\n"],"names":["FormikMultiEmailInput","forwardRef","_ref","ref","name","otherProps","_objectWithoutProperties","_excluded","_useField","useField","_useField2","_slicedToArray","field","meta","_useField2$","setValue","setTouched","React","createElement","EmailInput","_extends","error","touched","value","onBlur","onChange","displayName"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAOMA,IAAAA,qBAAqB,gBAAGC,UAAU,CAAC,UAAAC,IAAA,EAA0BC,GAAG,EAAK;AAAA,EAAA,IAA/BC,IAAI,GAAAF,IAAA,CAAJE,IAAI;AAAKC,IAAAA,UAAU,GAAAC,wBAAA,CAAAJ,IAAA,EAAAK,SAAA,CAAA,CAAA;AAC7D,EAAA,IAAAC,SAAA,GAAgDC,QAAQ,CAACL,IAAI,CAAC;IAAAM,UAAA,GAAAC,cAAA,CAAAH,SAAA,EAAA,CAAA,CAAA;AAAvDI,IAAAA,KAAK,GAAAF,UAAA,CAAA,CAAA,CAAA;AAAEG,IAAAA,IAAI,GAAAH,UAAA,CAAA,CAAA,CAAA;AAAAI,IAAAA,WAAA,GAAAJ,UAAA,CAAA,CAAA,CAAA;IAAIK,QAAQ,GAAAD,WAAA,CAARC,QAAQ;IAAEC,UAAU,GAAAF,WAAA,CAAVE,UAAU,CAAA;AAE1C,EAAA,oBACEC,cAAA,CAAAC,aAAA,CAACC,eAAU,EAAAC,QAAA,CAAA;AACHjB,IAAAA,GAAG,EAAHA,GAAG;IACTkB,KAAK,EAAER,IAAI,CAACS,OAAO,GAAGT,IAAI,CAACQ,KAAK,GAAG,EAAG;IACtCjB,IAAI,EAAEQ,KAAK,CAACR,IAAK;IACjBmB,KAAK,EAAEX,KAAK,CAACW,KAAM;IACnBC,MAAM,EAAE,SAAAA,MAAA,GAAA;MAAA,OAAMR,UAAU,CAAC,IAAI,CAAC,CAAA;KAAC;IAC/BS,QAAQ,EAAE,SAAAA,QAAAA,CAAAF,KAAK,EAAA;MAAA,OAAIR,QAAQ,CAACQ,KAAK,CAAC,CAAA;AAAA,KAAA;AAAC,GAAA,EAC/BlB,UAAU,CACd,CAAA,CAAA;AAEN,CAAC,EAAC;AAEFL,qBAAqB,CAAC0B,WAAW,GAAG,uBAAuB;;;;"}
|
package/dist/formik/Radio.js
CHANGED
|
@@ -9,7 +9,8 @@ import '../toPropertyKey-bdc24cb9.js';
|
|
|
9
9
|
import '../index-3659771d.js';
|
|
10
10
|
import '../Label.js';
|
|
11
11
|
import '@bigbinary/neeto-icons';
|
|
12
|
-
import '../index-
|
|
12
|
+
import '../index-c442518b.js';
|
|
13
|
+
import 'tippy.js';
|
|
13
14
|
import 'react-dom';
|
|
14
15
|
import '../useId-c1d20bba.js';
|
|
15
16
|
import 'react-router-dom';
|
|
@@ -17,7 +18,7 @@ import '../index-7fae3611.js';
|
|
|
17
18
|
import 'ramda';
|
|
18
19
|
import '../overlayManager.js';
|
|
19
20
|
import '../createClass-601a36b2.js';
|
|
20
|
-
import '../index-
|
|
21
|
+
import '../index-c8d9113c.js';
|
|
21
22
|
import '@bigbinary/neeto-cist';
|
|
22
23
|
import 'util';
|
|
23
24
|
|
package/dist/formik/Radio.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Radio.js","sources":["../../src/formik/Radio.jsx"],"sourcesContent":["import React from \"react\";\n\nimport { useField, useFormikContext } from \"formik\";\n\nimport Radio from \"components/Radio\";\n\nconst RadioGroup = ({ label, name, className = \"\", ...props }) => {\n const { setFieldValue } = useFormikContext();\n const [field, meta] = useField({ name });\n\n return (\n <Radio\n error={meta.touched ? meta.error : \"\"}\n onChange={event => setFieldValue(name, event.target.value)}\n {...{ className, label, ...field, ...props }}\n />\n );\n};\n\nRadioGroup.Item = Radio.Item;\n\nRadioGroup.propTypes = Radio.propTypes;\n\nexport default RadioGroup;\n"],"names":["RadioGroup","_ref","label","name","_ref$className","className","props","_objectWithoutProperties","_excluded","_useFormikContext","useFormikContext","setFieldValue","_useField","useField","_useField2","_slicedToArray","field","meta","React","createElement","Radio","_extends","error","touched","onChange","event","target","value","_objectSpread","Item"],"mappings":"
|
|
1
|
+
{"version":3,"file":"Radio.js","sources":["../../src/formik/Radio.jsx"],"sourcesContent":["import React from \"react\";\n\nimport { useField, useFormikContext } from \"formik\";\n\nimport Radio from \"components/Radio\";\n\nconst RadioGroup = ({ label, name, className = \"\", ...props }) => {\n const { setFieldValue } = useFormikContext();\n const [field, meta] = useField({ name });\n\n return (\n <Radio\n error={meta.touched ? meta.error : \"\"}\n onChange={event => setFieldValue(name, event.target.value)}\n {...{ className, label, ...field, ...props }}\n />\n );\n};\n\nRadioGroup.Item = Radio.Item;\n\nRadioGroup.propTypes = Radio.propTypes;\n\nexport default RadioGroup;\n"],"names":["RadioGroup","_ref","label","name","_ref$className","className","props","_objectWithoutProperties","_excluded","_useFormikContext","useFormikContext","setFieldValue","_useField","useField","_useField2","_slicedToArray","field","meta","React","createElement","Radio","_extends","error","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AC;AAEDN,UAAU,CAAC6B,IAAI,GAAGT,KAAK,CAACS,IAAI;;;;"}
|
package/dist/formik/Select.js
CHANGED
|
@@ -10,17 +10,21 @@ import '../defineProperty-e5245270.js';
|
|
|
10
10
|
import '../index-3659771d.js';
|
|
11
11
|
import '@bigbinary/neeto-cist';
|
|
12
12
|
import '@bigbinary/neeto-icons';
|
|
13
|
-
import '
|
|
14
|
-
import 'react-
|
|
13
|
+
import 'react-select';
|
|
14
|
+
import 'react-select/async';
|
|
15
|
+
import 'react-select/async-creatable';
|
|
16
|
+
import 'react-select/creatable';
|
|
15
17
|
import '../useId-c1d20bba.js';
|
|
16
18
|
import 'react-router-dom';
|
|
17
19
|
import '../index-7fae3611.js';
|
|
18
20
|
import '../overlayManager.js';
|
|
19
21
|
import '../createClass-601a36b2.js';
|
|
20
|
-
import '../index-
|
|
22
|
+
import '../index-c8d9113c.js';
|
|
21
23
|
import 'util';
|
|
22
24
|
import '../Label.js';
|
|
23
|
-
import '../index-
|
|
25
|
+
import '../index-c442518b.js';
|
|
26
|
+
import 'tippy.js';
|
|
27
|
+
import 'react-dom';
|
|
24
28
|
import '../Spinner.js';
|
|
25
29
|
|
|
26
30
|
var _excluded = ["name", "options", "getOptionValue", "isMulti"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.js","sources":["../../src/formik/Select.jsx"],"sourcesContent":["import React, { forwardRef, useRef, startTransition } from \"react\";\n\nimport { useField } from \"formik\";\nimport PropTypes from \"prop-types\";\nimport { prop, either, isNil, isEmpty } from \"ramda\";\n\nimport Select from \"components/Select\";\n\nconst SelectField = forwardRef((props, ref) => {\n const {\n name = \"\",\n options = [],\n getOptionValue = null,\n isMulti = false,\n ...otherProps\n } = props;\n const [field, meta, { setValue, setTouched }] = useField(name);\n\n const isMenuOpen = useRef(otherProps.defaultMenuIsOpen);\n\n const getRealOptionValue = option => {\n if (typeof getOptionValue !== \"function\") {\n return option.value;\n }\n\n return getOptionValue(option);\n };\n\n const buildValueObj = (value, options) => {\n if (typeof value === \"object\") return value;\n\n return options.filter(option => getRealOptionValue(option) === value)[0];\n };\n\n return (\n <Select\n {...{ options }}\n error={meta.touched ? meta.error : \"\"}\n getOptionValue={getOptionValue || prop(\"value\")}\n innerRef={ref}\n isMulti={!!isMulti}\n name={field.name}\n value={\n either(isNil, isEmpty)(field.value)\n ? null\n : buildValueObj(field.value, options)\n }\n onChange={value => setValue(value)}\n onBlur={() =>\n startTransition(() => {\n setTouched(true);\n })\n }\n {...otherProps}\n onKeyDown={event => {\n if (event.key === \"Enter\" && isMenuOpen.current) {\n event.stopPropagation();\n }\n otherProps.onKeyDown?.(event);\n }}\n onMenuClose={() => {\n isMenuOpen.current = false;\n otherProps.onMenuClose?.();\n }}\n onMenuOpen={() => {\n isMenuOpen.current = true;\n otherProps.onMenuOpen?.();\n }}\n />\n );\n});\n\nSelectField.displayName = \"SelectField\";\n\nSelectField.propTypes = {\n /**\n * The name of the select input.\n */\n name: PropTypes.string,\n /**\n * To provide the options to be displayed in the select component.\n */\n options: PropTypes.array,\n /**\n * To provide the function to get the value of the option.\n */\n getOptionValue: PropTypes.string,\n /**\n * To specify whether multiple options can be selected.\n */\n isMulti: PropTypes.bool,\n};\n\nexport default SelectField;\n"],"names":["SelectField","forwardRef","props","ref","_props$name","name","_props$options","options","_props$getOptionValue","getOptionValue","_props$isMulti","isMulti","otherProps","_objectWithoutProperties","_excluded","_useField","useField","_useField2","_slicedToArray","field","meta","_useField2$","setValue","setTouched","isMenuOpen","useRef","defaultMenuIsOpen","getRealOptionValue","option","value","buildValueObj","_typeof","filter","React","createElement","Select","_extends","error","touched","prop","innerRef","either","isNil","isEmpty","onChange","onBlur","startTransition","onKeyDown","event","_otherProps$onKeyDown","key","current","stopPropagation","call","onMenuClose","_otherProps$onMenuClo","onMenuOpen","_otherProps$onMenuOpe","displayName"],"mappings":"
|
|
1
|
+
{"version":3,"file":"Select.js","sources":["../../src/formik/Select.jsx"],"sourcesContent":["import React, { forwardRef, useRef, startTransition } from \"react\";\n\nimport { useField } from \"formik\";\nimport PropTypes from \"prop-types\";\nimport { prop, either, isNil, isEmpty } from \"ramda\";\n\nimport Select from \"components/Select\";\n\nconst SelectField = forwardRef((props, ref) => {\n const {\n name = \"\",\n options = [],\n getOptionValue = null,\n isMulti = false,\n ...otherProps\n } = props;\n const [field, meta, { setValue, setTouched }] = useField(name);\n\n const isMenuOpen = useRef(otherProps.defaultMenuIsOpen);\n\n const getRealOptionValue = option => {\n if (typeof getOptionValue !== \"function\") {\n return option.value;\n }\n\n return getOptionValue(option);\n };\n\n const buildValueObj = (value, options) => {\n if (typeof value === \"object\") return value;\n\n return options.filter(option => getRealOptionValue(option) === value)[0];\n };\n\n return (\n <Select\n {...{ options }}\n error={meta.touched ? meta.error : \"\"}\n getOptionValue={getOptionValue || prop(\"value\")}\n innerRef={ref}\n isMulti={!!isMulti}\n name={field.name}\n value={\n either(isNil, isEmpty)(field.value)\n ? null\n : buildValueObj(field.value, options)\n }\n onChange={value => setValue(value)}\n onBlur={() =>\n startTransition(() => {\n setTouched(true);\n })\n }\n {...otherProps}\n onKeyDown={event => {\n if (event.key === \"Enter\" && isMenuOpen.current) {\n event.stopPropagation();\n }\n otherProps.onKeyDown?.(event);\n }}\n onMenuClose={() => {\n isMenuOpen.current = false;\n otherProps.onMenuClose?.();\n }}\n onMenuOpen={() => {\n isMenuOpen.current = true;\n otherProps.onMenuOpen?.();\n }}\n />\n );\n});\n\nSelectField.displayName = \"SelectField\";\n\nSelectField.propTypes = {\n /**\n * The name of the select input.\n */\n name: PropTypes.string,\n /**\n * To provide the options to be displayed in the select component.\n */\n options: PropTypes.array,\n /**\n * To provide the function to get the value of the option.\n */\n getOptionValue: PropTypes.string,\n /**\n * To specify whether multiple options can be selected.\n */\n isMulti: PropTypes.bool,\n};\n\nexport default SelectField;\n"],"names":["SelectField","forwardRef","props","ref","_props$name","name","_props$options","options","_props$getOptionValue","getOptionValue","_props$isMulti","isMulti","otherProps","_objectWithoutProperties","_excluded","_useField","useField","_useField2","_slicedToArray","field","meta","_useField2$","setValue","setTouched","isMenuOpen","useRef","defaultMenuIsOpen","getRealOptionValue","option","value","buildValueObj","_typeof","filter","React","createElement","Select","_extends","error","touched","prop","innerRef","either","isNil","isEmpty","onChange","onBlur","startTransition","onKeyDown","event","_otherProps$onKeyDown","key","current","stopPropagation","call","onMenuClose","_otherProps$onMenuClo","onMenuOpen","_otherProps$onMenuOpe","displayName"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQMA,IAAAA,WAAW,gBAAGC,UAAU,CAAC,UAACC,KAAK,EAAEC,GAAG,EAAK;AAC7C,EAAA,IAAAC,WAAA,GAMIF,KAAK,CALPG,IAAI;AAAJA,IAAAA,IAAI,GAAAD,WAAA,KAAG,KAAA,CAAA,GAAA,EAAE,GAAAA,WAAA;IAAAE,cAAA,GAKPJ,KAAK,CAJPK,OAAO;AAAPA,IAAAA,OAAO,GAAAD,cAAA,KAAG,KAAA,CAAA,GAAA,EAAE,GAAAA,cAAA;IAAAE,qBAAA,GAIVN,KAAK,CAHPO,cAAc;AAAdA,IAAAA,cAAc,GAAAD,qBAAA,KAAG,KAAA,CAAA,GAAA,IAAI,GAAAA,qBAAA;IAAAE,cAAA,GAGnBR,KAAK,CAFPS,OAAO;AAAPA,IAAAA,OAAO,GAAAD,cAAA,KAAG,KAAA,CAAA,GAAA,KAAK,GAAAA,cAAA;AACZE,IAAAA,UAAU,GAAAC,wBAAA,CACXX,KAAK,EAAAY,SAAA,CAAA,CAAA;AACT,EAAA,IAAAC,SAAA,GAAgDC,QAAQ,CAACX,IAAI,CAAC;IAAAY,UAAA,GAAAC,cAAA,CAAAH,SAAA,EAAA,CAAA,CAAA;AAAvDI,IAAAA,KAAK,GAAAF,UAAA,CAAA,CAAA,CAAA;AAAEG,IAAAA,IAAI,GAAAH,UAAA,CAAA,CAAA,CAAA;AAAAI,IAAAA,WAAA,GAAAJ,UAAA,CAAA,CAAA,CAAA;I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,CAAe,CAAA;AAC3B,KAAA;GACA,CAAA,CAAA,CAAA;AAEN,CAAC,EAAC;AAEFZ,WAAW,CAAC0D,WAAW,GAAG,aAAa;;;;"}
|
package/dist/formik/Slider.js
CHANGED
|
@@ -11,7 +11,8 @@ import 'antd/lib/slider';
|
|
|
11
11
|
import '../Label.js';
|
|
12
12
|
import '../index-3659771d.js';
|
|
13
13
|
import '@bigbinary/neeto-icons';
|
|
14
|
-
import '../index-
|
|
14
|
+
import '../index-c442518b.js';
|
|
15
|
+
import 'tippy.js';
|
|
15
16
|
import 'react-dom';
|
|
16
17
|
import '../useId-c1d20bba.js';
|
|
17
18
|
import 'react-router-dom';
|
|
@@ -19,7 +20,7 @@ import '../index-7fae3611.js';
|
|
|
19
20
|
import 'ramda';
|
|
20
21
|
import '../overlayManager.js';
|
|
21
22
|
import '../createClass-601a36b2.js';
|
|
22
|
-
import '../index-
|
|
23
|
+
import '../index-c8d9113c.js';
|
|
23
24
|
import '@bigbinary/neeto-cist';
|
|
24
25
|
import 'util';
|
|
25
26
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Slider.js","sources":["../../src/formik/Slider.jsx"],"sourcesContent":["import React, { forwardRef } from \"react\";\n\nimport { useField } from \"formik\";\n\nimport Slider from \"components/Slider\";\n\nconst FormikSlider = forwardRef(({ name, ...otherProps }, ref) => {\n const [field, meta, { setValue, setTouched }] = useField(name);\n\n return (\n <Slider\n error={meta.error || \"\"}\n {...{ ref, ...field, name }}\n onBlur={() => setTouched(true)}\n onChange={value => setValue(value)}\n {...otherProps}\n />\n );\n});\n\nFormikSlider.displayName = \"Slider\";\n\nexport default FormikSlider;\n"],"names":["FormikSlider","forwardRef","_ref","ref","name","otherProps","_objectWithoutProperties","_excluded","_useField","useField","_useField2","_slicedToArray","field","meta","_useField2$","setValue","setTouched","React","createElement","Slider","_extends","error","_objectSpread","onBlur","onChange","value","displayName"],"mappings":"
|
|
1
|
+
{"version":3,"file":"Slider.js","sources":["../../src/formik/Slider.jsx"],"sourcesContent":["import React, { forwardRef } from \"react\";\n\nimport { useField } from \"formik\";\n\nimport Slider from \"components/Slider\";\n\nconst FormikSlider = forwardRef(({ name, ...otherProps }, ref) => {\n const [field, meta, { setValue, setTouched }] = useField(name);\n\n return (\n <Slider\n error={meta.error || \"\"}\n {...{ ref, ...field, name }}\n onBlur={() => setTouched(true)}\n onChange={value => setValue(value)}\n {...otherProps}\n />\n );\n});\n\nFormikSlider.displayName = \"Slider\";\n\nexport default FormikSlider;\n"],"names":["FormikSlider","forwardRef","_ref","ref","name","otherProps","_objectWithoutProperties","_excluded","_useField","useField","_useField2","_slicedToArray","field","meta","_useField2$","setValue","setTouched","React","createElement","Slider","_extends","error","_objectSpread","onBlur","onChange","value","displayName"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMMA,IAAAA,YAAY,gBAAGC,UAAU,CAAC,UAAAC,IAAA,EAA0BC,GAAG,EAAK;AAAA,EAAA,IAA/BC,IAAI,GAAAF,IAAA,CAAJE,IAAI;AAAKC,IAAAA,UAAU,GAAAC,wBAAA,CAAAJ,IAAA,EAAAK,SAAA,CAAA,CAAA;AACpD,EAAA,IAAAC,SAAA,GAAgDC,QAAQ,CAACL,IAAI,CAAC;IAAAM,UAAA,GAAAC,cAAA,CAAAH,SAAA,EAAA,CAAA,CAAA;AAAvDI,IAAAA,KAAK,GAAAF,UAAA,CAAA,CAAA,CAAA;AAAEG,IAAAA,IAAI,GAAAH,UAAA,CAAA,CAAA,CAAA;AAAAI,IAAAA,WAAA,GAAAJ,UAAA,CAAA,CAAA,CAAA;IAAIK,QAAQ,GAAAD,WAAA,CAARC,QAAQ;IAAEC,UAAU,GAAAF,WAAA,CAAVE,UAAU,CAAA;AAE1C,EAAA,oBACEC,cAAA,CAAAC,aAAA,CAACC,MAAM,EAAAC,QAAA,CAAA;AACLC,IAAAA,KAAK,EAAER,IAAI,CAACQ,KAAK,IAAI,EAAA;GAAGC,EAAAA,aAAA,CAAAA,aAAA,CAAA;AAClBnB,IAAAA,GAAG,EAAHA,GAAAA;AAAG,GAAA,EAAKS,KAAK,CAAA,EAAA,EAAA,EAAA;AAAER,IAAAA,IAAI,EAAJA,IAAAA;AAAI,GAAA,CAAA,EAAA;IACzBmB,MAAM,EAAE,SAAAA,MAAA,GAAA;MAAA,OAAMP,UAAU,CAAC,IAAI,CAAC,CAAA;KAAC;IAC/BQ,QAAQ,EAAE,SAAAA,QAAAA,CAAAC,KAAK,EAAA;MAAA,OAAIV,QAAQ,CAACU,KAAK,CAAC,CAAA;AAAA,KAAA;AAAC,GAAA,EAC/BpB,UAAU,CACd,CAAA,CAAA;AAEN,CAAC,EAAC;AAEFL,YAAY,CAAC0B,WAAW,GAAG,QAAQ;;;;"}
|
package/dist/formik/Switch.js
CHANGED
|
@@ -13,12 +13,13 @@ import '../index-7fae3611.js';
|
|
|
13
13
|
import 'ramda';
|
|
14
14
|
import '../overlayManager.js';
|
|
15
15
|
import '../createClass-601a36b2.js';
|
|
16
|
-
import '../index-
|
|
16
|
+
import '../index-c8d9113c.js';
|
|
17
17
|
import '../slicedToArray-45fa766e.js';
|
|
18
18
|
import '@bigbinary/neeto-cist';
|
|
19
19
|
import 'util';
|
|
20
20
|
import '../Label.js';
|
|
21
|
-
import '../index-
|
|
21
|
+
import '../index-c442518b.js';
|
|
22
|
+
import 'tippy.js';
|
|
22
23
|
import 'react-dom';
|
|
23
24
|
|
|
24
25
|
var _excluded = ["name"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Switch.js","sources":["../../src/formik/Switch.jsx"],"sourcesContent":["import React from \"react\";\n\nimport { Field } from \"formik\";\nimport PropTypes from \"prop-types\";\n\nimport Switch from \"components/Switch\";\n\nconst FormikSwitch = ({ name, ...rest }) => (\n <Field {...{ name }}>\n {({ field, meta: { error } }) => (\n <Switch checked={field.value} {...{ error, name, ...field, ...rest }} />\n )}\n </Field>\n);\n\nFormikSwitch.propTypes = {\n /**\n * The name of the switch.\n */\n name: PropTypes.string,\n};\n\nexport default FormikSwitch;\n"],"names":["FormikSwitch","_ref","name","rest","_objectWithoutProperties","_excluded","React","createElement","Field","_ref2","field","error","meta","Switch","_extends","checked","value","_objectSpread"],"mappings":"
|
|
1
|
+
{"version":3,"file":"Switch.js","sources":["../../src/formik/Switch.jsx"],"sourcesContent":["import React from \"react\";\n\nimport { Field } from \"formik\";\nimport PropTypes from \"prop-types\";\n\nimport Switch from \"components/Switch\";\n\nconst FormikSwitch = ({ name, ...rest }) => (\n <Field {...{ name }}>\n {({ field, meta: { error } }) => (\n <Switch checked={field.value} {...{ error, name, ...field, ...rest }} />\n )}\n </Field>\n);\n\nFormikSwitch.propTypes = {\n /**\n * The name of the switch.\n */\n name: PropTypes.string,\n};\n\nexport default FormikSwitch;\n"],"names":["FormikSwitch","_ref","name","rest","_objectWithoutProperties","_excluded","React","createElement","Field","_ref2","field","error","meta","Switch","_extends","checked","value","_objectSpread"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,IAAMA,YAAY,GAAG,SAAfA,YAAYA,CAAAC,IAAA,EAAA;AAAA,EAAA,IAAMC,IAAI,GAAAD,IAAA,CAAJC,IAAI;AAAKC,IAAAA,IAAI,GAAAC,wBAAA,CAAAH,IAAA,EAAAI,SAAA,CAAA,CAAA;AAAA,EAAA,oBACnCC,cAAA,CAAAC,aAAA,CAACC,KAAK,EAAA;AAAON,IAAAA,IAAI,EAAJA,IAAAA;AAAI,GAAA,EACd,UAAAO,KAAA,EAAA;AAAA,IAAA,IAAGC,KAAK,GAAAD,KAAA,CAALC,KAAK;AAAUC,MAAAA,KAAK,GAAAF,KAAA,CAAbG,IAAI,CAAID,KAAK,CAAA;AAAA,IAAA,oBACtBL,cAAA,CAAAC,aAAA,CAACM,MAAM,EAAAC,QAAA,CAAA;MAACC,OAAO,EAAEL,KAAK,CAACM,KAAAA;KAAMC,EAAAA,aAAA,CAAAA,aAAA,CAAA;AAAON,MAAAA,KAAK,EAALA,KAAK;AAAET,MAAAA,IAAI,EAAJA,IAAAA;KAASQ,EAAAA,KAAK,CAAKP,EAAAA,IAAI,CAAM,CAAA,CAAA,CAAA;AAAA,GACzE,CACK,CAAA;AAAA;;;;"}
|
package/dist/formik/Textarea.js
CHANGED
|
@@ -14,13 +14,14 @@ import '../index-7fae3611.js';
|
|
|
14
14
|
import 'ramda';
|
|
15
15
|
import '../overlayManager.js';
|
|
16
16
|
import '../createClass-601a36b2.js';
|
|
17
|
-
import '../index-
|
|
17
|
+
import '../index-c8d9113c.js';
|
|
18
18
|
import '@bigbinary/neeto-cist';
|
|
19
19
|
import 'util';
|
|
20
20
|
import '../useSyncedRef-226a3dbc.js';
|
|
21
21
|
import '../Label.js';
|
|
22
22
|
import '@bigbinary/neeto-icons';
|
|
23
|
-
import '../index-
|
|
23
|
+
import '../index-c442518b.js';
|
|
24
|
+
import 'tippy.js';
|
|
24
25
|
import 'react-dom';
|
|
25
26
|
|
|
26
27
|
var _excluded = ["name"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Textarea.js","sources":["../../src/formik/Textarea.jsx"],"sourcesContent":["import React, { forwardRef } from \"react\";\n\nimport { Field } from \"formik\";\nimport PropTypes from \"prop-types\";\n\nimport Textarea from \"components/Textarea\";\n\nconst FormikTextarea = forwardRef(({ name, ...rest }, ref) => (\n <Field {...{ name }}>\n {({ field, meta }) => (\n <Textarea\n error={meta.touched ? meta.error : \"\"}\n {...{ ref, ...field, ...rest }}\n />\n )}\n </Field>\n));\n\nFormikTextarea.displayName = \"FormikTextarea\";\n\nFormikTextarea.propTypes = {\n /**\n * The name of the textarea field.\n */\n name: PropTypes.string,\n};\n\nexport default FormikTextarea;\n"],"names":["FormikTextarea","forwardRef","_ref","ref","name","rest","_objectWithoutProperties","_excluded","React","createElement","Field","_ref2","field","meta","Textarea","_extends","error","touched","_objectSpread","displayName","propTypes","PropTypes","string"],"mappings":"
|
|
1
|
+
{"version":3,"file":"Textarea.js","sources":["../../src/formik/Textarea.jsx"],"sourcesContent":["import React, { forwardRef } from \"react\";\n\nimport { Field } from \"formik\";\nimport PropTypes from \"prop-types\";\n\nimport Textarea from \"components/Textarea\";\n\nconst FormikTextarea = forwardRef(({ name, ...rest }, ref) => (\n <Field {...{ name }}>\n {({ field, meta }) => (\n <Textarea\n error={meta.touched ? meta.error : \"\"}\n {...{ ref, ...field, ...rest }}\n />\n )}\n </Field>\n));\n\nFormikTextarea.displayName = \"FormikTextarea\";\n\nFormikTextarea.propTypes = {\n /**\n * The name of the textarea field.\n */\n name: PropTypes.string,\n};\n\nexport default FormikTextarea;\n"],"names":["FormikTextarea","forwardRef","_ref","ref","name","rest","_objectWithoutProperties","_excluded","React","createElement","Field","_ref2","field","meta","Textarea","_extends","error","touched","_objectSpread","displayName","propTypes","PropTypes","string"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,IAAMA,cAAc,gBAAGC,UAAU,CAAC,UAAAC,IAAA,EAAoBC,GAAG,EAAA;AAAA,EAAA,IAApBC,IAAI,GAAAF,IAAA,CAAJE,IAAI;AAAKC,IAAAA,IAAI,GAAAC,wBAAA,CAAAJ,IAAA,EAAAK,SAAA,CAAA,CAAA;AAAA,EAAA,oBAChDC,cAAA,CAAAC,aAAA,CAACC,KAAK,EAAA;AAAON,IAAAA,IAAI,EAAJA,IAAAA;AAAI,GAAA,EACd,UAAAO,KAAA,EAAA;AAAA,IAAA,IAAGC,KAAK,GAAAD,KAAA,CAALC,KAAK;MAAEC,IAAI,GAAAF,KAAA,CAAJE,IAAI,CAAA;AAAA,IAAA,oBACbL,cAAA,CAAAC,aAAA,CAACK,QAAQ,EAAAC,QAAA,CAAA;MACPC,KAAK,EAAEH,IAAI,CAACI,OAAO,GAAGJ,IAAI,CAACG,KAAK,GAAG,EAAA;KAAGE,EAAAA,aAAA,CAAAA,aAAA,CAAA;AAChCf,MAAAA,GAAG,EAAHA,GAAAA;KAAQS,EAAAA,KAAK,CAAKP,EAAAA,IAAI,CAC5B,CAAA,CAAA,CAAA;AAAA,GACH,CACK,CAAA;AAAA,CACT,EAAC;AAEFL,cAAc,CAACmB,WAAW,GAAG,gBAAgB,CAAA;AAE7CnB,cAAc,CAACoB,SAAS,GAAG;AACzB;AACF;AACA;EACEhB,IAAI,EAAEiB,iBAAS,CAACC,MAAAA;AAClB,CAAC;;;;"}
|
|
@@ -10,13 +10,14 @@ import '../defineProperty-e5245270.js';
|
|
|
10
10
|
import '../toPropertyKey-bdc24cb9.js';
|
|
11
11
|
import '../index-3659771d.js';
|
|
12
12
|
import '@bigbinary/neeto-icons';
|
|
13
|
-
import '../index-
|
|
13
|
+
import '../index-c8d9113c.js';
|
|
14
14
|
import '../createClass-601a36b2.js';
|
|
15
15
|
import '@bigbinary/neeto-cist';
|
|
16
16
|
import 'util';
|
|
17
17
|
import 'ramda';
|
|
18
18
|
import '../Label.js';
|
|
19
|
-
import '../index-
|
|
19
|
+
import '../index-c442518b.js';
|
|
20
|
+
import 'tippy.js';
|
|
20
21
|
import 'react-dom';
|
|
21
22
|
|
|
22
23
|
var _excluded = ["name"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TreeSelect.js","sources":["../../src/formik/TreeSelect.jsx"],"sourcesContent":["import React, { forwardRef } from \"react\";\n\nimport { useField } from \"formik\";\n\nimport TreeSelect from \"components/TreeSelect\";\n\nconst FormikTreeSelect = forwardRef(({ name, ...otherProps }, ref) => {\n const [field, meta, { setValue, setTouched }] = useField(name);\n\n return (\n <TreeSelect\n {...{ ref }}\n error={meta.error || \"\"}\n name={field.name}\n value={field.value}\n onBlur={() => setTouched(true)}\n onChange={value => setValue(value)}\n {...otherProps}\n />\n );\n});\n\nFormikTreeSelect.displayName = \"TreeSelect\";\n\nexport default FormikTreeSelect;\n"],"names":["FormikTreeSelect","forwardRef","_ref","ref","name","otherProps","_objectWithoutProperties","_excluded","_useField","useField","_useField2","_slicedToArray","field","meta","_useField2$","setValue","setTouched","React","createElement","TreeSelect","_extends","error","value","onBlur","onChange","displayName"],"mappings":"
|
|
1
|
+
{"version":3,"file":"TreeSelect.js","sources":["../../src/formik/TreeSelect.jsx"],"sourcesContent":["import React, { forwardRef } from \"react\";\n\nimport { useField } from \"formik\";\n\nimport TreeSelect from \"components/TreeSelect\";\n\nconst FormikTreeSelect = forwardRef(({ name, ...otherProps }, ref) => {\n const [field, meta, { setValue, setTouched }] = useField(name);\n\n return (\n <TreeSelect\n {...{ ref }}\n error={meta.error || \"\"}\n name={field.name}\n value={field.value}\n onBlur={() => setTouched(true)}\n onChange={value => setValue(value)}\n {...otherProps}\n />\n );\n});\n\nFormikTreeSelect.displayName = \"TreeSelect\";\n\nexport default FormikTreeSelect;\n"],"names":["FormikTreeSelect","forwardRef","_ref","ref","name","otherProps","_objectWithoutProperties","_excluded","_useField","useField","_useField2","_slicedToArray","field","meta","_useField2$","setValue","setTouched","React","createElement","TreeSelect","_extends","error","value","onBlur","onChange","displayName"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAMMA,IAAAA,gBAAgB,gBAAGC,UAAU,CAAC,UAAAC,IAAA,EAA0BC,GAAG,EAAK;AAAA,EAAA,IAA/BC,IAAI,GAAAF,IAAA,CAAJE,IAAI;AAAKC,IAAAA,UAAU,GAAAC,wBAAA,CAAAJ,IAAA,EAAAK,SAAA,CAAA,CAAA;AACxD,EAAA,IAAAC,SAAA,GAAgDC,QAAQ,CAACL,IAAI,CAAC;IAAAM,UAAA,GAAAC,cAAA,CAAAH,SAAA,EAAA,CAAA,CAAA;AAAvDI,IAAAA,KAAK,GAAAF,UAAA,CAAA,CAAA,CAAA;AAAEG,IAAAA,IAAI,GAAAH,UAAA,CAAA,CAAA,CAAA;AAAAI,IAAAA,WAAA,GAAAJ,UAAA,CAAA,CAAA,CAAA;IAAIK,QAAQ,GAAAD,WAAA,CAARC,QAAQ;IAAEC,UAAU,GAAAF,WAAA,CAAVE,UAAU,CAAA;AAE1C,EAAA,oBACEC,cAAA,CAAAC,aAAA,CAACC,UAAU,EAAAC,QAAA,CAAA;AACHjB,IAAAA,GAAG,EAAHA,GAAG;AACTkB,IAAAA,KAAK,EAAER,IAAI,CAACQ,KAAK,IAAI,EAAG;IACxBjB,IAAI,EAAEQ,KAAK,CAACR,IAAK;IACjBkB,KAAK,EAAEV,KAAK,CAACU,KAAM;IACnBC,MAAM,EAAE,SAAAA,MAAA,GAAA;MAAA,OAAMP,UAAU,CAAC,IAAI,CAAC,CAAA;KAAC;IAC/BQ,QAAQ,EAAE,SAAAA,QAAAA,CAAAF,KAAK,EAAA;MAAA,OAAIP,QAAQ,CAACO,KAAK,CAAC,CAAA;AAAA,KAAA;AAAC,GAAA,EAC/BjB,UAAU,CACd,CAAA,CAAA;AAEN,CAAC,EAAC;AAEFL,gBAAgB,CAACyB,WAAW,GAAG,YAAY;;;;"}
|
package/dist/formik/index.js
CHANGED
|
@@ -20,20 +20,21 @@ import '../defineProperty-e5245270.js';
|
|
|
20
20
|
import '../toPropertyKey-bdc24cb9.js';
|
|
21
21
|
import '../objectWithoutProperties-a0edb288.js';
|
|
22
22
|
import 'react-router-dom';
|
|
23
|
-
import '
|
|
24
|
-
import '../index-
|
|
23
|
+
import 'framer-motion';
|
|
24
|
+
import '../index-c442518b.js';
|
|
25
25
|
import '../slicedToArray-45fa766e.js';
|
|
26
|
+
import 'tippy.js';
|
|
26
27
|
import 'react-dom';
|
|
27
28
|
import '../Alert.js';
|
|
28
29
|
import '../Modal.js';
|
|
29
30
|
import '@bigbinary/neeto-icons';
|
|
30
|
-
import '../useOverlayManager-
|
|
31
|
+
import '../useOverlayManager-95a474d5.js';
|
|
31
32
|
import '../index-283bc6a6.js';
|
|
32
33
|
import 'ramda';
|
|
33
34
|
import '../index-7fae3611.js';
|
|
34
35
|
import '../overlayManager.js';
|
|
35
36
|
import '../createClass-601a36b2.js';
|
|
36
|
-
import '../index-
|
|
37
|
+
import '../index-c8d9113c.js';
|
|
37
38
|
import '@bigbinary/neeto-cist';
|
|
38
39
|
import 'util';
|
|
39
40
|
import '../Typography.js';
|
|
@@ -44,10 +45,13 @@ import '../index-34956d66.js';
|
|
|
44
45
|
import '../toConsumableArray-1186e144.js';
|
|
45
46
|
import '../Input.js';
|
|
46
47
|
import '../MultiEmailInput.js';
|
|
47
|
-
import '
|
|
48
|
+
import 'react-select/creatable';
|
|
49
|
+
import 'react-select';
|
|
48
50
|
import '../Tag.js';
|
|
49
51
|
import '../Radio.js';
|
|
50
52
|
import '../Select.js';
|
|
53
|
+
import 'react-select/async';
|
|
54
|
+
import 'react-select/async-creatable';
|
|
51
55
|
import '../Spinner.js';
|
|
52
56
|
import '../Slider.js';
|
|
53
57
|
import 'antd/lib/config-provider';
|
package/dist/formik/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|