@bigbinary/neeto-atoms 1.0.20 → 1.0.22
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/dist/{DataTable-DWR9gX9d.js → DataTable-CfcHsQuw.js} +4 -1
- package/dist/DataTable-CfcHsQuw.js.map +1 -0
- package/dist/cjs/{DataTable-CWs96k8n.js → DataTable-BOeCq0s4.js} +4 -1
- package/dist/cjs/DataTable-BOeCq0s4.js.map +1 -0
- package/dist/cjs/components/DataTable.js +1 -1
- package/dist/cjs/components/index.js +1 -1
- package/dist/cjs/formik/Select.js +3 -2
- package/dist/cjs/formik/Select.js.map +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/components/DataTable.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/formik/Select.js +3 -2
- package/dist/formik/Select.js.map +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/DataTable-DWR9gX9d.js.map +0 -1
- package/dist/cjs/DataTable-CWs96k8n.js.map +0 -1
|
@@ -8,7 +8,7 @@ var Button = require('../Button-Bt_AElge.js');
|
|
|
8
8
|
var Callout = require('../Callout-CS2U6pM7.js');
|
|
9
9
|
var Checkbox = require('../Checkbox-DOlS2oCD.js');
|
|
10
10
|
var ColorPicker = require('../ColorPicker-Uxgn8U0h.js');
|
|
11
|
-
var DataTable = require('../DataTable-
|
|
11
|
+
var DataTable = require('../DataTable-BOeCq0s4.js');
|
|
12
12
|
var DatePicker = require('../DatePicker-CA113xZV.js');
|
|
13
13
|
var Dialog = require('../Dialog-dYYmRaZU.js');
|
|
14
14
|
var components_DropdownMenu = require('./DropdownMenu.js');
|
|
@@ -33,7 +33,7 @@ require('react-i18next');
|
|
|
33
33
|
require('../loader-circle-Bw7zP2Gn.js');
|
|
34
34
|
|
|
35
35
|
const FormikSelect = React.forwardRef((props, ref) => {
|
|
36
|
-
const { name, onOpenChange, onChange:
|
|
36
|
+
const { name, onOpenChange, onChange: onChangeProp, ...otherProps } = props;
|
|
37
37
|
const [field, meta, { setValue, setTouched }] = formik.useField(name);
|
|
38
38
|
const { status = {}, setStatus } = formik.useFormikContext();
|
|
39
39
|
const fieldStatus = formik.getIn(status, name);
|
|
@@ -45,12 +45,13 @@ const FormikSelect = React.forwardRef((props, ref) => {
|
|
|
45
45
|
value: field.value,
|
|
46
46
|
onOpenChange: (open) => {
|
|
47
47
|
if (!open)
|
|
48
|
-
setTouched(true);
|
|
48
|
+
setTouched(true, false);
|
|
49
49
|
onOpenChange?.(open);
|
|
50
50
|
},
|
|
51
51
|
onChange: (value) => {
|
|
52
52
|
setStatus(ramda.dissoc(name, status));
|
|
53
53
|
setValue(value);
|
|
54
|
+
onChangeProp?.(value);
|
|
54
55
|
},
|
|
55
56
|
};
|
|
56
57
|
return jsxRuntime.jsx(Select.Select, { ...selectProps });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.js","sources":["../../../../src/formik/Select.tsx"],"sourcesContent":["import { forwardRef } from \"react\";\n\nimport { useField, useFormikContext, getIn } from \"formik\";\nimport { dissoc } from \"ramda\";\n\nimport { Select, SelectProps } from \"src/components/Select\";\n\nexport type FormikSelectProps = SelectProps & {\n /** Formik field name. */\n name: string;\n};\n\nconst FormikSelect = forwardRef<HTMLInputElement, FormikSelectProps>(\n (props, ref) => {\n const { name, onOpenChange, onChange:
|
|
1
|
+
{"version":3,"file":"Select.js","sources":["../../../../src/formik/Select.tsx"],"sourcesContent":["import { forwardRef } from \"react\";\n\nimport { useField, useFormikContext, getIn } from \"formik\";\nimport { dissoc } from \"ramda\";\n\nimport { Select, SelectProps } from \"src/components/Select\";\n\nexport type FormikSelectProps = SelectProps & {\n /** Formik field name. */\n name: string;\n};\n\nconst FormikSelect = forwardRef<HTMLInputElement, FormikSelectProps>(\n (props, ref) => {\n const { name, onOpenChange, onChange: onChangeProp, ...otherProps } = props;\n const [field, meta, { setValue, setTouched }] = useField(name);\n const { status = {}, setStatus } = useFormikContext();\n const fieldStatus = getIn(status, name);\n\n const selectProps = {\n ...otherProps,\n ref,\n error: meta.touched ? meta.error || fieldStatus : \"\",\n name: field.name,\n value: field.value,\n onOpenChange: (open: boolean) => {\n if (!open) setTouched(true, false);\n onOpenChange?.(open);\n },\n onChange: (value: unknown) => {\n setStatus(dissoc(name, status));\n setValue(value);\n (onChangeProp as ((v: unknown) => void) | undefined)?.(value);\n },\n };\n\n return <Select {...(selectProps as SelectProps)} />;\n }\n);\n\nFormikSelect.displayName = \"FormikSelect\";\n\nexport { FormikSelect };\n"],"names":["forwardRef","useField","useFormikContext","getIn","dissoc","_jsx","Select"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAYA,MAAM,YAAY,GAAGA,gBAAU,CAC7B,CAAC,KAAK,EAAE,GAAG,KAAI;AACb,IAAA,MAAM,EAAE,IAAI,EAAE,YAAY,EAAE,QAAQ,EAAE,YAAY,EAAE,GAAG,UAAU,EAAE,GAAG,KAAK;AAC3E,IAAA,MAAM,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,CAAC,GAAGC,eAAQ,CAAC,IAAI,CAAC;IAC9D,MAAM,EAAE,MAAM,GAAG,EAAE,EAAE,SAAS,EAAE,GAAGC,uBAAgB,EAAE;IACrD,MAAM,WAAW,GAAGC,YAAK,CAAC,MAAM,EAAE,IAAI,CAAC;AAEvC,IAAA,MAAM,WAAW,GAAG;AAClB,QAAA,GAAG,UAAU;QACb,GAAG;AACH,QAAA,KAAK,EAAE,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,KAAK,IAAI,WAAW,GAAG,EAAE;QACpD,IAAI,EAAE,KAAK,CAAC,IAAI;QAChB,KAAK,EAAE,KAAK,CAAC,KAAK;AAClB,QAAA,YAAY,EAAE,CAAC,IAAa,KAAI;AAC9B,YAAA,IAAI,CAAC,IAAI;AAAE,gBAAA,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC;AAClC,YAAA,YAAY,GAAG,IAAI,CAAC;QACtB,CAAC;AACD,QAAA,QAAQ,EAAE,CAAC,KAAc,KAAI;YAC3B,SAAS,CAACC,YAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;YAC/B,QAAQ,CAAC,KAAK,CAAC;AACd,YAAA,YAAmD,GAAG,KAAK,CAAC;QAC/D,CAAC;KACF;AAED,IAAA,OAAOC,cAAA,CAACC,aAAM,EAAA,EAAA,GAAM,WAA2B,GAAI;AACrD,CAAC;AAGH,YAAY,CAAC,WAAW,GAAG,cAAc;;;;"}
|
package/dist/cjs/index.js
CHANGED
|
@@ -40,7 +40,7 @@ var Tabs = require('./Tabs-D2247rd7.js');
|
|
|
40
40
|
var Textarea = require('./Textarea-BfdlAJ59.js');
|
|
41
41
|
var Tooltip = require('./Tooltip-criVUtIg.js');
|
|
42
42
|
var Typography = require('./Typography-DaZ0HTha.js');
|
|
43
|
-
var DataTable = require('./DataTable-
|
|
43
|
+
var DataTable = require('./DataTable-BOeCq0s4.js');
|
|
44
44
|
var Tree = require('./Tree-BPd0DuLh.js');
|
|
45
45
|
var TreeSelect = require('./TreeSelect-BoffO6qD.js');
|
|
46
46
|
var useMobile = require('./use-mobile-B-UYxtqX.js');
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { D as DataTable, u as useColumnOrdering, a as useColumnPinning, b as useColumnVisibility, c as useTablePagination, d as useTableSelection, e as useTableSort } from '../DataTable-
|
|
1
|
+
export { D as DataTable, u as useColumnOrdering, a as useColumnPinning, b as useColumnVisibility, c as useTablePagination, d as useTableSelection, e as useTableSort } from '../DataTable-CfcHsQuw.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '../primitives/Table.js';
|
package/dist/components/index.js
CHANGED
|
@@ -6,7 +6,7 @@ export { B as Button } from '../Button-Q7MPG6ph.js';
|
|
|
6
6
|
export { C as Callout } from '../Callout-B0w4GQtx.js';
|
|
7
7
|
export { C as Checkbox } from '../Checkbox-zCxgcZiC.js';
|
|
8
8
|
export { C as ColorPicker } from '../ColorPicker-DtOvy0Gy.js';
|
|
9
|
-
export { D as DataTable, u as useColumnOrdering, a as useColumnPinning, b as useColumnVisibility, c as useTablePagination, d as useTableSelection, e as useTableSort } from '../DataTable-
|
|
9
|
+
export { D as DataTable, u as useColumnOrdering, a as useColumnPinning, b as useColumnVisibility, c as useTablePagination, d as useTableSelection, e as useTableSort } from '../DataTable-CfcHsQuw.js';
|
|
10
10
|
export { D as DatePicker } from '../DatePicker-RvdQv1LE.js';
|
|
11
11
|
export { D as Dialog } from '../Dialog-B2dcw0Zz.js';
|
|
12
12
|
export { DropdownMenu } from './DropdownMenu.js';
|
package/dist/formik/Select.js
CHANGED
|
@@ -31,7 +31,7 @@ import 'react-i18next';
|
|
|
31
31
|
import '../loader-circle-DycHUAWN.js';
|
|
32
32
|
|
|
33
33
|
const FormikSelect = forwardRef((props, ref) => {
|
|
34
|
-
const { name, onOpenChange, onChange:
|
|
34
|
+
const { name, onOpenChange, onChange: onChangeProp, ...otherProps } = props;
|
|
35
35
|
const [field, meta, { setValue, setTouched }] = useField(name);
|
|
36
36
|
const { status = {}, setStatus } = useFormikContext();
|
|
37
37
|
const fieldStatus = getIn(status, name);
|
|
@@ -43,12 +43,13 @@ const FormikSelect = forwardRef((props, ref) => {
|
|
|
43
43
|
value: field.value,
|
|
44
44
|
onOpenChange: (open) => {
|
|
45
45
|
if (!open)
|
|
46
|
-
setTouched(true);
|
|
46
|
+
setTouched(true, false);
|
|
47
47
|
onOpenChange?.(open);
|
|
48
48
|
},
|
|
49
49
|
onChange: (value) => {
|
|
50
50
|
setStatus(dissoc(name, status));
|
|
51
51
|
setValue(value);
|
|
52
|
+
onChangeProp?.(value);
|
|
52
53
|
},
|
|
53
54
|
};
|
|
54
55
|
return jsx(Select, { ...selectProps });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.js","sources":["../../src/formik/Select.tsx"],"sourcesContent":["import { forwardRef } from \"react\";\n\nimport { useField, useFormikContext, getIn } from \"formik\";\nimport { dissoc } from \"ramda\";\n\nimport { Select, SelectProps } from \"src/components/Select\";\n\nexport type FormikSelectProps = SelectProps & {\n /** Formik field name. */\n name: string;\n};\n\nconst FormikSelect = forwardRef<HTMLInputElement, FormikSelectProps>(\n (props, ref) => {\n const { name, onOpenChange, onChange:
|
|
1
|
+
{"version":3,"file":"Select.js","sources":["../../src/formik/Select.tsx"],"sourcesContent":["import { forwardRef } from \"react\";\n\nimport { useField, useFormikContext, getIn } from \"formik\";\nimport { dissoc } from \"ramda\";\n\nimport { Select, SelectProps } from \"src/components/Select\";\n\nexport type FormikSelectProps = SelectProps & {\n /** Formik field name. */\n name: string;\n};\n\nconst FormikSelect = forwardRef<HTMLInputElement, FormikSelectProps>(\n (props, ref) => {\n const { name, onOpenChange, onChange: onChangeProp, ...otherProps } = props;\n const [field, meta, { setValue, setTouched }] = useField(name);\n const { status = {}, setStatus } = useFormikContext();\n const fieldStatus = getIn(status, name);\n\n const selectProps = {\n ...otherProps,\n ref,\n error: meta.touched ? meta.error || fieldStatus : \"\",\n name: field.name,\n value: field.value,\n onOpenChange: (open: boolean) => {\n if (!open) setTouched(true, false);\n onOpenChange?.(open);\n },\n onChange: (value: unknown) => {\n setStatus(dissoc(name, status));\n setValue(value);\n (onChangeProp as ((v: unknown) => void) | undefined)?.(value);\n },\n };\n\n return <Select {...(selectProps as SelectProps)} />;\n }\n);\n\nFormikSelect.displayName = \"FormikSelect\";\n\nexport { FormikSelect };\n"],"names":["_jsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAYA,MAAM,YAAY,GAAG,UAAU,CAC7B,CAAC,KAAK,EAAE,GAAG,KAAI;AACb,IAAA,MAAM,EAAE,IAAI,EAAE,YAAY,EAAE,QAAQ,EAAE,YAAY,EAAE,GAAG,UAAU,EAAE,GAAG,KAAK;AAC3E,IAAA,MAAM,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC;IAC9D,MAAM,EAAE,MAAM,GAAG,EAAE,EAAE,SAAS,EAAE,GAAG,gBAAgB,EAAE;IACrD,MAAM,WAAW,GAAG,KAAK,CAAC,MAAM,EAAE,IAAI,CAAC;AAEvC,IAAA,MAAM,WAAW,GAAG;AAClB,QAAA,GAAG,UAAU;QACb,GAAG;AACH,QAAA,KAAK,EAAE,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,KAAK,IAAI,WAAW,GAAG,EAAE;QACpD,IAAI,EAAE,KAAK,CAAC,IAAI;QAChB,KAAK,EAAE,KAAK,CAAC,KAAK;AAClB,QAAA,YAAY,EAAE,CAAC,IAAa,KAAI;AAC9B,YAAA,IAAI,CAAC,IAAI;AAAE,gBAAA,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC;AAClC,YAAA,YAAY,GAAG,IAAI,CAAC;QACtB,CAAC;AACD,QAAA,QAAQ,EAAE,CAAC,KAAc,KAAI;YAC3B,SAAS,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;YAC/B,QAAQ,CAAC,KAAK,CAAC;AACd,YAAA,YAAmD,GAAG,KAAK,CAAC;QAC/D,CAAC;KACF;AAED,IAAA,OAAOA,GAAA,CAAC,MAAM,EAAA,EAAA,GAAM,WAA2B,GAAI;AACrD,CAAC;AAGH,YAAY,CAAC,WAAW,GAAG,cAAc;;;;"}
|
package/dist/index.js
CHANGED
|
@@ -38,7 +38,7 @@ export { T as Tabs } from './Tabs-DWfKnl3S.js';
|
|
|
38
38
|
export { T as Textarea } from './Textarea-C0z50h0N.js';
|
|
39
39
|
export { T as Tooltip } from './Tooltip-3ZzQyaDV.js';
|
|
40
40
|
export { T as Typography, t as typographyVariants } from './Typography-ClPJbLjP.js';
|
|
41
|
-
export { D as DataTable, u as useColumnOrdering, a as useColumnPinning, b as useColumnVisibility, c as useTablePagination, d as useTableSelection, e as useTableSort } from './DataTable-
|
|
41
|
+
export { D as DataTable, u as useColumnOrdering, a as useColumnPinning, b as useColumnVisibility, c as useTablePagination, d as useTableSelection, e as useTableSort } from './DataTable-CfcHsQuw.js';
|
|
42
42
|
export { T as Tree } from './Tree-C7r10UY5.js';
|
|
43
43
|
export { T as TreeSelect } from './TreeSelect-BxsQrdjf.js';
|
|
44
44
|
export { u as useIsMobile } from './use-mobile-IRjN_mlT.js';
|