@bigbinary/neeto-atoms 1.0.44 → 1.0.46
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/{ColorPicker-D7Y1gZNn.js → ColorPicker-ClnRUq9y.js} +2 -2
- package/dist/{ColorPicker-D7Y1gZNn.js.map → ColorPicker-ClnRUq9y.js.map} +1 -1
- package/dist/{DataTable-DZYQUYKJ.js → DataTable-zlEvl0ny.js} +11 -9
- package/dist/DataTable-zlEvl0ny.js.map +1 -0
- package/dist/{DatePicker-CV3nsugu.js → DatePicker-D-0HMiNG.js} +17 -5
- package/dist/DatePicker-D-0HMiNG.js.map +1 -0
- package/dist/{Input-xjYQfsaz.js → Input-DrpfsLAw.js} +22 -6
- package/dist/Input-DrpfsLAw.js.map +1 -0
- package/dist/{MultiEmailInput-L-QJg0hh.js → MultiEmailInput-DhjSEXbS.js} +6 -5
- package/dist/MultiEmailInput-DhjSEXbS.js.map +1 -0
- package/dist/{Select-o0yJaN0P.js → Select-BiyQTuiQ.js} +20 -12
- package/dist/Select-BiyQTuiQ.js.map +1 -0
- package/dist/{TimePicker-XE0sCXE6.js → TimePicker-CSjiggpr.js} +17 -5
- package/dist/TimePicker-CSjiggpr.js.map +1 -0
- package/dist/{TreeSelect-Dk299XMv.js → TreeSelect-BwF2rY6f.js} +7 -4
- package/dist/{TreeSelect-Dk299XMv.js.map → TreeSelect-BwF2rY6f.js.map} +1 -1
- package/dist/cjs/{ColorPicker-Co1Gffsu.js → ColorPicker-rhCnblTv.js} +2 -2
- package/dist/cjs/{ColorPicker-Co1Gffsu.js.map → ColorPicker-rhCnblTv.js.map} +1 -1
- package/dist/cjs/{DataTable-D4suNizi.js → DataTable-buERtmN8.js} +11 -9
- package/dist/cjs/DataTable-buERtmN8.js.map +1 -0
- package/dist/cjs/{DatePicker-CqnlwzLe.js → DatePicker-JhQ7D2bu.js} +17 -5
- package/dist/cjs/DatePicker-JhQ7D2bu.js.map +1 -0
- package/dist/cjs/{Input-CpuJXazH.js → Input-Lc77SV8e.js} +22 -6
- package/dist/cjs/Input-Lc77SV8e.js.map +1 -0
- package/dist/cjs/{MultiEmailInput-CPXODFvs.js → MultiEmailInput-BZtzoX7D.js} +6 -5
- package/dist/cjs/MultiEmailInput-BZtzoX7D.js.map +1 -0
- package/dist/cjs/{Select-DbfPhEu0.js → Select-DC23xcMU.js} +20 -12
- package/dist/cjs/Select-DC23xcMU.js.map +1 -0
- package/dist/cjs/{TimePicker-BGWNGfVR.js → TimePicker-CU7qJpoT.js} +17 -5
- package/dist/cjs/TimePicker-CU7qJpoT.js.map +1 -0
- package/dist/cjs/{TreeSelect-Cmm5yYq3.js → TreeSelect-qLtRIP-s.js} +7 -4
- package/dist/cjs/{TreeSelect-Cmm5yYq3.js.map → TreeSelect-qLtRIP-s.js.map} +1 -1
- package/dist/cjs/components/ColorPicker.js +1 -1
- package/dist/cjs/components/DataTable.js +1 -1
- package/dist/cjs/components/DatePicker.js +1 -1
- package/dist/cjs/components/Input.js +2 -1
- package/dist/cjs/components/Input.js.map +1 -1
- package/dist/cjs/components/MultiEmailInput.js +2 -1
- package/dist/cjs/components/MultiEmailInput.js.map +1 -1
- package/dist/cjs/components/Select.js +1 -1
- package/dist/cjs/components/TimePicker.js +1 -1
- package/dist/cjs/components/TreeSelect.js +1 -1
- package/dist/cjs/components/index.js +9 -8
- package/dist/cjs/components/index.js.map +1 -1
- package/dist/cjs/formik/Input.js +2 -1
- package/dist/cjs/formik/Input.js.map +1 -1
- package/dist/cjs/formik/MultiEmailInput.js +2 -1
- package/dist/cjs/formik/MultiEmailInput.js.map +1 -1
- package/dist/cjs/formik/Select.js +1 -1
- package/dist/cjs/formik/TreeSelect.js +1 -1
- package/dist/cjs/formik/index.js +5 -4
- package/dist/cjs/formik/index.js.map +1 -1
- package/dist/cjs/index.js +9 -8
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/withIconSize-BKUwVY6t.js +19 -0
- package/dist/cjs/withIconSize-BKUwVY6t.js.map +1 -0
- package/dist/components/ColorPicker.js +1 -1
- package/dist/components/DataTable.js +1 -1
- package/dist/components/DatePicker/constants.d.ts +7 -4
- package/dist/components/DatePicker.js +1 -1
- package/dist/components/Input/constants.d.ts +3 -0
- package/dist/components/Input.js +2 -1
- package/dist/components/Input.js.map +1 -1
- package/dist/components/MultiEmailInput.js +2 -1
- package/dist/components/MultiEmailInput.js.map +1 -1
- package/dist/components/Select/MultiSelectCombobox.types.d.ts +1 -0
- package/dist/components/Select/SelectCombobox.types.d.ts +1 -0
- package/dist/components/Select/constants.d.ts +1 -0
- package/dist/components/Select.js +1 -1
- package/dist/components/TimePicker.js +1 -1
- package/dist/components/TreeSelect.js +1 -1
- package/dist/components/index.js +9 -8
- package/dist/components/index.js.map +1 -1
- package/dist/formik/Input.js +2 -1
- package/dist/formik/Input.js.map +1 -1
- package/dist/formik/MultiEmailInput.js +2 -1
- package/dist/formik/MultiEmailInput.js.map +1 -1
- package/dist/formik/Select.js +1 -1
- package/dist/formik/TreeSelect.js +1 -1
- package/dist/formik/index.js +5 -4
- package/dist/formik/index.js.map +1 -1
- package/dist/hooks/useMultiSelectState.d.ts +1 -0
- package/dist/hooks/useSelectState.d.ts +1 -0
- package/dist/index.js +9 -8
- package/dist/index.js.map +1 -1
- package/dist/utils/withIconSize.d.ts +12 -0
- package/dist/withIconSize-Czt1EelO.js +13 -0
- package/dist/withIconSize-Czt1EelO.js.map +1 -0
- package/package.json +1 -1
- package/dist/DataTable-DZYQUYKJ.js.map +0 -1
- package/dist/DatePicker-CV3nsugu.js.map +0 -1
- package/dist/Input-xjYQfsaz.js.map +0 -1
- package/dist/MultiEmailInput-L-QJg0hh.js.map +0 -1
- package/dist/Select-o0yJaN0P.js.map +0 -1
- package/dist/TimePicker-XE0sCXE6.js.map +0 -1
- package/dist/cjs/DataTable-D4suNizi.js.map +0 -1
- package/dist/cjs/DatePicker-CqnlwzLe.js.map +0 -1
- package/dist/cjs/Input-CpuJXazH.js.map +0 -1
- package/dist/cjs/MultiEmailInput-CPXODFvs.js.map +0 -1
- package/dist/cjs/Select-DbfPhEu0.js.map +0 -1
- package/dist/cjs/TimePicker-BGWNGfVR.js.map +0 -1
|
@@ -2,15 +2,18 @@ export declare const DEFAULT_DATE_FORMAT = "dd/MM/yyyy";
|
|
|
2
2
|
export declare const DEFAULT_TIME_FORMAT = "HH:mm:ss";
|
|
3
3
|
export declare const SIZE_CONFIG: {
|
|
4
4
|
readonly small: {
|
|
5
|
-
readonly trigger: "h-
|
|
5
|
+
readonly trigger: "h-8 md:h-7";
|
|
6
|
+
readonly input: "text-base md:text-xs";
|
|
6
7
|
readonly icon: "size-3.5";
|
|
7
8
|
};
|
|
8
9
|
readonly medium: {
|
|
9
|
-
readonly trigger: "h-8
|
|
10
|
+
readonly trigger: "h-8";
|
|
11
|
+
readonly input: "text-base md:text-sm";
|
|
10
12
|
readonly icon: "size-4";
|
|
11
13
|
};
|
|
12
14
|
readonly large: {
|
|
13
|
-
readonly trigger: "h-10
|
|
14
|
-
readonly
|
|
15
|
+
readonly trigger: "h-10";
|
|
16
|
+
readonly input: "text-base md:text-sm";
|
|
17
|
+
readonly icon: "size-5";
|
|
15
18
|
};
|
|
16
19
|
};
|
|
@@ -3,15 +3,18 @@ export declare const SIZE_CONFIG: {
|
|
|
3
3
|
group: string;
|
|
4
4
|
input: string;
|
|
5
5
|
addon: string;
|
|
6
|
+
icon: string;
|
|
6
7
|
};
|
|
7
8
|
medium: {
|
|
8
9
|
group: string;
|
|
9
10
|
input: string;
|
|
10
11
|
addon: string;
|
|
12
|
+
icon: string;
|
|
11
13
|
};
|
|
12
14
|
large: {
|
|
13
15
|
group: string;
|
|
14
16
|
input: string;
|
|
15
17
|
addon: string;
|
|
18
|
+
icon: string;
|
|
16
19
|
};
|
|
17
20
|
};
|
package/dist/components/Input.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { I as Input } from '../Input-
|
|
1
|
+
export { I as Input } from '../Input-DrpfsLAw.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '../utils-BJnb9o5c.js';
|
|
@@ -15,4 +15,5 @@ import '../button-CrEMzWKw.js';
|
|
|
15
15
|
import '../index-CfriMyrd.js';
|
|
16
16
|
import '../input-1J5oQa1u.js';
|
|
17
17
|
import '../textarea-B0vzA497.js';
|
|
18
|
+
import '../withIconSize-Czt1EelO.js';
|
|
18
19
|
//# sourceMappingURL=Input.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Input.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { M as MultiEmailInput } from '../MultiEmailInput-
|
|
1
|
+
export { M as MultiEmailInput } from '../MultiEmailInput-DhjSEXbS.js';
|
|
2
2
|
import 'react/jsx-runtime';
|
|
3
3
|
import 'react';
|
|
4
4
|
import '../utils-BJnb9o5c.js';
|
|
@@ -9,6 +9,7 @@ import '../index-DhnfW8wQ.js';
|
|
|
9
9
|
import 'react-dom';
|
|
10
10
|
import '../index-BtkPdosV.js';
|
|
11
11
|
import '../separator-ByRsc-y-.js';
|
|
12
|
+
import '../withIconSize-Czt1EelO.js';
|
|
12
13
|
import '../x-_o2T3n6D.js';
|
|
13
14
|
import '../createLucideIcon-C8ycilSN.js';
|
|
14
15
|
//# sourceMappingURL=MultiEmailInput.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MultiEmailInput.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MultiEmailInput.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;"}
|
package/dist/components/index.js
CHANGED
|
@@ -6,20 +6,20 @@ export { B as Badge } from '../Badge-DC6zxOwS.js';
|
|
|
6
6
|
export { B as Button } from '../Button-BCWJgHDy.js';
|
|
7
7
|
export { C as Callout } from '../Callout-ClNFeMbn.js';
|
|
8
8
|
export { C as Checkbox } from '../Checkbox-C_Rd2-8Z.js';
|
|
9
|
-
export { C as ColorPicker } from '../ColorPicker-
|
|
10
|
-
export { D as DataTable, u as useColumnOrdering, a as useColumnPinning, b as useColumnVisibility, c as useTablePagination, d as useTableSelection, e as useTableSort } from '../DataTable-
|
|
11
|
-
export { D as DatePicker } from '../DatePicker-
|
|
9
|
+
export { C as ColorPicker } from '../ColorPicker-ClnRUq9y.js';
|
|
10
|
+
export { D as DataTable, u as useColumnOrdering, a as useColumnPinning, b as useColumnVisibility, c as useTablePagination, d as useTableSelection, e as useTableSort } from '../DataTable-zlEvl0ny.js';
|
|
11
|
+
export { D as DatePicker } from '../DatePicker-D-0HMiNG.js';
|
|
12
12
|
export { D as Dialog } from '../Dialog-BOcBeB8v.js';
|
|
13
13
|
export { E as Empty } from '../Empty-fV1Yplri.js';
|
|
14
|
-
export { I as Input } from '../Input-
|
|
14
|
+
export { I as Input } from '../Input-DrpfsLAw.js';
|
|
15
15
|
export { K as Kbd } from '../Kbd-CJOM9x4C.js';
|
|
16
16
|
export { L as Label } from '../Label-CrCRic4I.js';
|
|
17
|
-
export { M as MultiEmailInput } from '../MultiEmailInput-
|
|
17
|
+
export { M as MultiEmailInput } from '../MultiEmailInput-DhjSEXbS.js';
|
|
18
18
|
export { P as Pagination } from '../Pagination-C_X9kgc8.js';
|
|
19
19
|
export { P as Popover } from '../Popover-Cco_6txS.js';
|
|
20
20
|
export { P as Progress } from '../Progress-DURemsl_.js';
|
|
21
21
|
export { R as RadioGroup } from '../RadioGroup-BTemSonO.js';
|
|
22
|
-
export { S as Select } from '../Select-
|
|
22
|
+
export { S as Select } from '../Select-BiyQTuiQ.js';
|
|
23
23
|
export { S as Sheet } from '../Sheet-DVoy6if3.js';
|
|
24
24
|
export { S as Slider } from '../Slider-DNcH5X7b.js';
|
|
25
25
|
export { S as Spinner } from '../Spinner-DgV3mILN.js';
|
|
@@ -27,13 +27,13 @@ export { S as Stepper } from '../Stepper-7OpfOfas.js';
|
|
|
27
27
|
export { S as Switch } from '../Switch-OAB7pfNn.js';
|
|
28
28
|
export { T as Tabs } from '../Tabs-DTbbJITd.js';
|
|
29
29
|
export { T as Textarea } from '../Textarea-B2Uhx-Yy.js';
|
|
30
|
-
export { T as TimePicker } from '../TimePicker-
|
|
30
|
+
export { T as TimePicker } from '../TimePicker-CSjiggpr.js';
|
|
31
31
|
export { T as TimePickerPanel } from '../TimePickerPanel-zWmOy3Eo.js';
|
|
32
32
|
export { T as Toastr } from '../Toastr-BimwuEnS.js';
|
|
33
33
|
export { T as Tooltip } from '../Tooltip-CA3irJ2q.js';
|
|
34
34
|
export { T as TranslationProvider } from '../TranslationProvider-BvRvUsPS.js';
|
|
35
35
|
export { T as Tree } from '../Tree-BlzjThRi.js';
|
|
36
|
-
export { T as TreeSelect } from '../TreeSelect-
|
|
36
|
+
export { T as TreeSelect } from '../TreeSelect-BwF2rY6f.js';
|
|
37
37
|
export { T as Typography, t as typographyVariants } from '../Typography-CiQzW5Fy.js';
|
|
38
38
|
export { f as flattenTreeData, g as getExpandedKeysFromSearch, a as getParentKey } from '../search-B5K8FsJs.js';
|
|
39
39
|
import 'react/jsx-runtime';
|
|
@@ -110,6 +110,7 @@ import '../primitives/InputGroup.js';
|
|
|
110
110
|
import '../input-group-BKkj65Uq.js';
|
|
111
111
|
import '../input-1J5oQa1u.js';
|
|
112
112
|
import '../textarea-B0vzA497.js';
|
|
113
|
+
import '../withIconSize-Czt1EelO.js';
|
|
113
114
|
import '../primitives/Kbd.js';
|
|
114
115
|
import '../primitives/Label.js';
|
|
115
116
|
import '../primitives/HoverCard.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/formik/Input.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
2
2
|
import { forwardRef } from 'react';
|
|
3
3
|
import { Field, getIn } from 'formik';
|
|
4
4
|
import { dissoc } from 'ramda';
|
|
5
|
-
import { I as Input } from '../Input-
|
|
5
|
+
import { I as Input } from '../Input-DrpfsLAw.js';
|
|
6
6
|
import '../utils-BJnb9o5c.js';
|
|
7
7
|
import '../primitives/Field.js';
|
|
8
8
|
import '../index-Bo3AAQJp.js';
|
|
@@ -17,6 +17,7 @@ import '../button-CrEMzWKw.js';
|
|
|
17
17
|
import '../index-CfriMyrd.js';
|
|
18
18
|
import '../input-1J5oQa1u.js';
|
|
19
19
|
import '../textarea-B0vzA497.js';
|
|
20
|
+
import '../withIconSize-Czt1EelO.js';
|
|
20
21
|
|
|
21
22
|
const FormikInput = forwardRef(
|
|
22
23
|
({ name, onChange: onChangeProp, ...rest }, ref) => /* @__PURE__ */ jsx(Field, { name, children: ({ field, meta, form }) => {
|
package/dist/formik/Input.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.js","sources":["../../src/formik/Input.tsx"],"sourcesContent":["import React, { forwardRef } from \"react\";\n\nimport { Field, getIn, FieldProps } from \"formik\";\nimport { dissoc } from \"ramda\";\n\nimport { Input, InputProps } from \"src/components/Input\";\n\nexport interface FormikInputProps extends Omit<InputProps, \"name\"> {\n /** Formik field name. */\n name: string;\n}\n\nconst FormikInput = forwardRef<HTMLInputElement, FormikInputProps>(\n ({ name, onChange: onChangeProp, ...rest }, ref) => (\n <Field name={name}>\n {({ field, meta, form }: FieldProps) => {\n const { status = {}, setStatus } = form;\n const fieldStatus = getIn(status, name);\n\n const fieldProps = {\n ...field,\n onChange: (e: React.ChangeEvent<HTMLInputElement>) => {\n setStatus(dissoc(name, status));\n field.onChange(e);\n onChangeProp?.(e);\n },\n };\n\n return (\n <Input\n ref={ref}\n {...fieldProps}\n error={meta.touched ? meta.error || fieldStatus : \"\"}\n {...rest}\n />\n );\n }}\n </Field>\n )\n);\n\nFormikInput.displayName = \"FormikInput\";\n\nexport { FormikInput };\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Input.js","sources":["../../src/formik/Input.tsx"],"sourcesContent":["import React, { forwardRef } from \"react\";\n\nimport { Field, getIn, FieldProps } from \"formik\";\nimport { dissoc } from \"ramda\";\n\nimport { Input, InputProps } from \"src/components/Input\";\n\nexport interface FormikInputProps extends Omit<InputProps, \"name\"> {\n /** Formik field name. */\n name: string;\n}\n\nconst FormikInput = forwardRef<HTMLInputElement, FormikInputProps>(\n ({ name, onChange: onChangeProp, ...rest }, ref) => (\n <Field name={name}>\n {({ field, meta, form }: FieldProps) => {\n const { status = {}, setStatus } = form;\n const fieldStatus = getIn(status, name);\n\n const fieldProps = {\n ...field,\n onChange: (e: React.ChangeEvent<HTMLInputElement>) => {\n setStatus(dissoc(name, status));\n field.onChange(e);\n onChangeProp?.(e);\n },\n };\n\n return (\n <Input\n ref={ref}\n {...fieldProps}\n error={meta.touched ? meta.error || fieldStatus : \"\"}\n {...rest}\n />\n );\n }}\n </Field>\n )\n);\n\nFormikInput.displayName = \"FormikInput\";\n\nexport { FormikInput };\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAYA,MAAM,WAAA,GAAc,UAAA;AAAA,EAClB,CAAC,EAAE,IAAA,EAAM,QAAA,EAAU,YAAA,EAAc,GAAG,IAAA,EAAK,EAAG,GAAA,qBAC1C,GAAA,CAAC,SAAM,IAAA,EACJ,QAAA,EAAA,CAAC,EAAE,KAAA,EAAO,IAAA,EAAM,MAAK,KAAkB;AACtC,IAAA,MAAM,EAAE,MAAA,GAAS,EAAC,EAAG,WAAU,GAAI,IAAA;AACnC,IAAA,MAAM,WAAA,GAAc,KAAA,CAAM,MAAA,EAAQ,IAAI,CAAA;AAEtC,IAAA,MAAM,UAAA,GAAa;AAAA,MACjB,GAAG,KAAA;AAAA,MACH,QAAA,EAAU,CAAC,CAAA,KAA2C;AACpD,QAAA,SAAA,CAAU,MAAA,CAAO,IAAA,EAAM,MAAM,CAAC,CAAA;AAC9B,QAAA,KAAA,CAAM,SAAS,CAAC,CAAA;AAChB,QAAA,YAAA,GAAe,CAAC,CAAA;AAAA,MAClB;AAAA,KACF;AAEA,IAAA,uBACE,GAAA;AAAA,MAAC,KAAA;AAAA,MAAA;AAAA,QACC,GAAA;AAAA,QACC,GAAG,UAAA;AAAA,QACJ,KAAA,EAAO,IAAA,CAAK,OAAA,GAAU,IAAA,CAAK,SAAS,WAAA,GAAc,EAAA;AAAA,QACjD,GAAG;AAAA;AAAA,KACN;AAAA,EAEJ,CAAA,EACF;AAEJ;AAEA,WAAA,CAAY,WAAA,GAAc,aAAA;;;;"}
|
|
@@ -2,7 +2,7 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
2
2
|
import { forwardRef } from 'react';
|
|
3
3
|
import { useField, useFormikContext, getIn } from 'formik';
|
|
4
4
|
import { dissoc } from 'ramda';
|
|
5
|
-
import { M as MultiEmailInput } from '../MultiEmailInput-
|
|
5
|
+
import { M as MultiEmailInput } from '../MultiEmailInput-DhjSEXbS.js';
|
|
6
6
|
import '../utils-BJnb9o5c.js';
|
|
7
7
|
import '../primitives/Field.js';
|
|
8
8
|
import '../index-Bo3AAQJp.js';
|
|
@@ -11,6 +11,7 @@ import '../index-DhnfW8wQ.js';
|
|
|
11
11
|
import 'react-dom';
|
|
12
12
|
import '../index-BtkPdosV.js';
|
|
13
13
|
import '../separator-ByRsc-y-.js';
|
|
14
|
+
import '../withIconSize-Czt1EelO.js';
|
|
14
15
|
import '../x-_o2T3n6D.js';
|
|
15
16
|
import '../createLucideIcon-C8ycilSN.js';
|
|
16
17
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MultiEmailInput.js","sources":["../../src/formik/MultiEmailInput.tsx"],"sourcesContent":["import { forwardRef } from \"react\";\n\nimport { useField, useFormikContext, getIn } from \"formik\";\nimport { dissoc } from \"ramda\";\n\nimport {\n MultiEmailInput,\n MultiEmailInputProps,\n} from \"src/components/MultiEmailInput\";\n\nexport interface FormikMultiEmailInputProps extends MultiEmailInputProps {\n /** Formik field name. */\n name: string;\n}\n\nconst FormikMultiEmailInput = forwardRef<\n HTMLInputElement,\n FormikMultiEmailInputProps\n>(({ name, onChange: onChangeProp, ...otherProps }, ref) => {\n const [field, meta, { setValue, setTouched }] = useField(name);\n const { status = {}, setStatus } = useFormikContext();\n const fieldStatus = getIn(status, name);\n\n return (\n <MultiEmailInput\n ref={ref}\n error={meta.touched ? meta.error || fieldStatus : \"\"}\n value={field.value}\n onBlur={() => setTouched(true)}\n onChange={value => {\n setStatus(dissoc(name, status));\n setValue(value);\n onChangeProp?.(value);\n }}\n {...otherProps}\n />\n );\n});\n\nFormikMultiEmailInput.displayName = \"FormikMultiEmailInput\";\n\nexport { FormikMultiEmailInput };\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MultiEmailInput.js","sources":["../../src/formik/MultiEmailInput.tsx"],"sourcesContent":["import { forwardRef } from \"react\";\n\nimport { useField, useFormikContext, getIn } from \"formik\";\nimport { dissoc } from \"ramda\";\n\nimport {\n MultiEmailInput,\n MultiEmailInputProps,\n} from \"src/components/MultiEmailInput\";\n\nexport interface FormikMultiEmailInputProps extends MultiEmailInputProps {\n /** Formik field name. */\n name: string;\n}\n\nconst FormikMultiEmailInput = forwardRef<\n HTMLInputElement,\n FormikMultiEmailInputProps\n>(({ name, onChange: onChangeProp, ...otherProps }, ref) => {\n const [field, meta, { setValue, setTouched }] = useField(name);\n const { status = {}, setStatus } = useFormikContext();\n const fieldStatus = getIn(status, name);\n\n return (\n <MultiEmailInput\n ref={ref}\n error={meta.touched ? meta.error || fieldStatus : \"\"}\n value={field.value}\n onBlur={() => setTouched(true)}\n onChange={value => {\n setStatus(dissoc(name, status));\n setValue(value);\n onChangeProp?.(value);\n }}\n {...otherProps}\n />\n );\n});\n\nFormikMultiEmailInput.displayName = \"FormikMultiEmailInput\";\n\nexport { FormikMultiEmailInput };\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAeA,MAAM,qBAAA,GAAwB,UAAA,CAG5B,CAAC,EAAE,IAAA,EAAM,UAAU,YAAA,EAAc,GAAG,UAAA,EAAW,EAAG,GAAA,KAAQ;AAC1D,EAAA,MAAM,CAAC,OAAO,IAAA,EAAM,EAAE,UAAU,UAAA,EAAY,CAAA,GAAI,QAAA,CAAS,IAAI,CAAA;AAC7D,EAAA,MAAM,EAAE,MAAA,GAAS,EAAC,EAAG,SAAA,KAAc,gBAAA,EAAiB;AACpD,EAAA,MAAM,WAAA,GAAc,KAAA,CAAM,MAAA,EAAQ,IAAI,CAAA;AAEtC,EAAA,uBACE,GAAA;AAAA,IAAC,eAAA;AAAA,IAAA;AAAA,MACC,GAAA;AAAA,MACA,KAAA,EAAO,IAAA,CAAK,OAAA,GAAU,IAAA,CAAK,SAAS,WAAA,GAAc,EAAA;AAAA,MAClD,OAAO,KAAA,CAAM,KAAA;AAAA,MACb,MAAA,EAAQ,MAAM,UAAA,CAAW,IAAI,CAAA;AAAA,MAC7B,UAAU,CAAA,KAAA,KAAS;AACjB,QAAA,SAAA,CAAU,MAAA,CAAO,IAAA,EAAM,MAAM,CAAC,CAAA;AAC9B,QAAA,QAAA,CAAS,KAAK,CAAA;AACd,QAAA,YAAA,GAAe,KAAK,CAAA;AAAA,MACtB,CAAA;AAAA,MACC,GAAG;AAAA;AAAA,GACN;AAEJ,CAAC;AAED,qBAAA,CAAsB,WAAA,GAAc,uBAAA;;;;"}
|
package/dist/formik/Select.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
2
2
|
import { forwardRef } from 'react';
|
|
3
3
|
import { useField, useFormikContext, getIn } from 'formik';
|
|
4
4
|
import { dissoc } from 'ramda';
|
|
5
|
-
import { S as Select } from '../Select-
|
|
5
|
+
import { S as Select } from '../Select-BiyQTuiQ.js';
|
|
6
6
|
import '../SelectFieldWrapper-CiBARDsn.js';
|
|
7
7
|
import '../primitives/Field.js';
|
|
8
8
|
import '../index-Bo3AAQJp.js';
|
|
@@ -2,7 +2,7 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
2
2
|
import { forwardRef } from 'react';
|
|
3
3
|
import { useField, useFormikContext, getIn } from 'formik';
|
|
4
4
|
import { dissoc } from 'ramda';
|
|
5
|
-
import { T as TreeSelect } from '../TreeSelect-
|
|
5
|
+
import { T as TreeSelect } from '../TreeSelect-BwF2rY6f.js';
|
|
6
6
|
import '../utils-BJnb9o5c.js';
|
|
7
7
|
import '../primitives/Popover.js';
|
|
8
8
|
import '../index-DNzunGHb.js';
|
package/dist/formik/index.js
CHANGED
|
@@ -15,7 +15,7 @@ import 'react/jsx-runtime';
|
|
|
15
15
|
import 'react';
|
|
16
16
|
import 'formik';
|
|
17
17
|
import 'ramda';
|
|
18
|
-
import '../Input-
|
|
18
|
+
import '../Input-DrpfsLAw.js';
|
|
19
19
|
import '../utils-BJnb9o5c.js';
|
|
20
20
|
import '../primitives/Field.js';
|
|
21
21
|
import '../index-Bo3AAQJp.js';
|
|
@@ -30,9 +30,10 @@ import '../button-CrEMzWKw.js';
|
|
|
30
30
|
import '../index-CfriMyrd.js';
|
|
31
31
|
import '../input-1J5oQa1u.js';
|
|
32
32
|
import '../textarea-B0vzA497.js';
|
|
33
|
+
import '../withIconSize-Czt1EelO.js';
|
|
33
34
|
import '../Textarea-B2Uhx-Yy.js';
|
|
34
35
|
import '../primitives/Textarea.js';
|
|
35
|
-
import '../Select-
|
|
36
|
+
import '../Select-BiyQTuiQ.js';
|
|
36
37
|
import '../SelectFieldWrapper-CiBARDsn.js';
|
|
37
38
|
import '../primitives/Combobox.js';
|
|
38
39
|
import '../check-Cpkv29p1.js';
|
|
@@ -68,7 +69,7 @@ import '../primitives/Switch.js';
|
|
|
68
69
|
import '../Slider-DNcH5X7b.js';
|
|
69
70
|
import '../primitives/Slider.js';
|
|
70
71
|
import '../index-BfAAoDv6.js';
|
|
71
|
-
import '../TreeSelect-
|
|
72
|
+
import '../TreeSelect-BwF2rY6f.js';
|
|
72
73
|
import '../primitives/Popover.js';
|
|
73
74
|
import '../index-BNPynZWM.js';
|
|
74
75
|
import '../index-Jr4soqx3.js';
|
|
@@ -77,7 +78,7 @@ import '../index-fV_U4ZJM.js';
|
|
|
77
78
|
import '../Tree-BlzjThRi.js';
|
|
78
79
|
import '../chevron-right-DQnrO-ek.js';
|
|
79
80
|
import '../redux-BKH6DnBB.js';
|
|
80
|
-
import '../MultiEmailInput-
|
|
81
|
+
import '../MultiEmailInput-DhjSEXbS.js';
|
|
81
82
|
import '../Button-BCWJgHDy.js';
|
|
82
83
|
import 'react-router-dom';
|
|
83
84
|
import '../renderIcon-C6twJSqH.js';
|
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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index.js
CHANGED
|
@@ -11,21 +11,21 @@ export { B as Badge } from './Badge-DC6zxOwS.js';
|
|
|
11
11
|
export { B as Button } from './Button-BCWJgHDy.js';
|
|
12
12
|
export { C as Callout } from './Callout-ClNFeMbn.js';
|
|
13
13
|
export { C as Checkbox } from './Checkbox-C_Rd2-8Z.js';
|
|
14
|
-
export { C as ColorPicker } from './ColorPicker-
|
|
15
|
-
export { D as DataTable, u as useColumnOrdering, a as useColumnPinning, b as useColumnVisibility, c as useTablePagination, d as useTableSelection, e as useTableSort } from './DataTable-
|
|
16
|
-
export { D as DatePicker } from './DatePicker-
|
|
14
|
+
export { C as ColorPicker } from './ColorPicker-ClnRUq9y.js';
|
|
15
|
+
export { D as DataTable, u as useColumnOrdering, a as useColumnPinning, b as useColumnVisibility, c as useTablePagination, d as useTableSelection, e as useTableSort } from './DataTable-zlEvl0ny.js';
|
|
16
|
+
export { D as DatePicker } from './DatePicker-D-0HMiNG.js';
|
|
17
17
|
export { D as Dialog } from './Dialog-BOcBeB8v.js';
|
|
18
18
|
export { D as DirectionProvider } from './DirectionProvider-weqLz_BJ.js';
|
|
19
19
|
export { E as Empty } from './Empty-fV1Yplri.js';
|
|
20
|
-
export { I as Input } from './Input-
|
|
20
|
+
export { I as Input } from './Input-DrpfsLAw.js';
|
|
21
21
|
export { K as Kbd } from './Kbd-CJOM9x4C.js';
|
|
22
22
|
export { L as Label } from './Label-CrCRic4I.js';
|
|
23
|
-
export { M as MultiEmailInput } from './MultiEmailInput-
|
|
23
|
+
export { M as MultiEmailInput } from './MultiEmailInput-DhjSEXbS.js';
|
|
24
24
|
export { P as Pagination } from './Pagination-C_X9kgc8.js';
|
|
25
25
|
export { P as Popover } from './Popover-Cco_6txS.js';
|
|
26
26
|
export { P as Progress } from './Progress-DURemsl_.js';
|
|
27
27
|
export { R as RadioGroup } from './RadioGroup-BTemSonO.js';
|
|
28
|
-
export { S as Select } from './Select-
|
|
28
|
+
export { S as Select } from './Select-BiyQTuiQ.js';
|
|
29
29
|
export { S as Sheet } from './Sheet-DVoy6if3.js';
|
|
30
30
|
export { S as Slider } from './Slider-DNcH5X7b.js';
|
|
31
31
|
export { S as Spinner } from './Spinner-DgV3mILN.js';
|
|
@@ -33,11 +33,11 @@ export { S as Stepper } from './Stepper-7OpfOfas.js';
|
|
|
33
33
|
export { S as Switch } from './Switch-OAB7pfNn.js';
|
|
34
34
|
export { T as Tabs } from './Tabs-DTbbJITd.js';
|
|
35
35
|
export { T as Textarea } from './Textarea-B2Uhx-Yy.js';
|
|
36
|
-
export { T as TimePicker } from './TimePicker-
|
|
36
|
+
export { T as TimePicker } from './TimePicker-CSjiggpr.js';
|
|
37
37
|
export { T as Toastr } from './Toastr-BimwuEnS.js';
|
|
38
38
|
export { T as Tooltip } from './Tooltip-CA3irJ2q.js';
|
|
39
39
|
export { T as Tree } from './Tree-BlzjThRi.js';
|
|
40
|
-
export { T as TreeSelect } from './TreeSelect-
|
|
40
|
+
export { T as TreeSelect } from './TreeSelect-BwF2rY6f.js';
|
|
41
41
|
export { T as Typography, t as typographyVariants } from './Typography-CiQzW5Fy.js';
|
|
42
42
|
import 'react/jsx-runtime';
|
|
43
43
|
import 'react';
|
|
@@ -115,6 +115,7 @@ import './primitives/InputGroup.js';
|
|
|
115
115
|
import './input-group-BKkj65Uq.js';
|
|
116
116
|
import './input-1J5oQa1u.js';
|
|
117
117
|
import './textarea-B0vzA497.js';
|
|
118
|
+
import './withIconSize-Czt1EelO.js';
|
|
118
119
|
import './primitives/Kbd.js';
|
|
119
120
|
import './primitives/Label.js';
|
|
120
121
|
import './primitives/HoverCard.js';
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../src/utils/timezone.ts"],"sourcesContent":["import type { Dayjs } from \"dayjs\";\nimport { dayjs } from \"@bigbinary/neeto-commons-frontend/utils\";\n\n/**\n * Apply the configured timezone to a date value.\n * Strips the original timezone and reinterprets via neetocommons' dayjs wrapper.\n * Handles both single dates and arrays (for date ranges).\n */\nexport const getTimezoneAppliedDateTime = (\n inputDateTime: Dayjs | Dayjs[] | null\n): Dayjs | (Dayjs | null)[] | null => {\n const apply = (date: Dayjs | null): Dayjs | null =>\n date && typeof date.format === \"function\"\n ? dayjs(date.format(\"YYYY-MM-DD HH:mm:ss\"))\n : null;\n\n return Array.isArray(inputDateTime)\n ? inputDateTime.map(apply)\n : apply(inputDateTime);\n};\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../src/utils/timezone.ts"],"sourcesContent":["import type { Dayjs } from \"dayjs\";\nimport { dayjs } from \"@bigbinary/neeto-commons-frontend/utils\";\n\n/**\n * Apply the configured timezone to a date value.\n * Strips the original timezone and reinterprets via neetocommons' dayjs wrapper.\n * Handles both single dates and arrays (for date ranges).\n */\nexport const getTimezoneAppliedDateTime = (\n inputDateTime: Dayjs | Dayjs[] | null\n): Dayjs | (Dayjs | null)[] | null => {\n const apply = (date: Dayjs | null): Dayjs | null =>\n date && typeof date.format === \"function\"\n ? dayjs(date.format(\"YYYY-MM-DD HH:mm:ss\"))\n : null;\n\n return Array.isArray(inputDateTime)\n ? inputDateTime.map(apply)\n : apply(inputDateTime);\n};\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQO,MAAM,0BAAA,GAA6B,CACxC,aAAA,KACoC;AACpC,EAAA,MAAM,KAAA,GAAQ,CAAC,IAAA,KACb,IAAA,IAAQ,OAAO,IAAA,CAAK,MAAA,KAAW,UAAA,GAC3B,KAAA,CAAM,IAAA,CAAK,MAAA,CAAO,qBAAqB,CAAC,CAAA,GACxC,IAAA;AAEN,EAAA,OAAO,KAAA,CAAM,QAAQ,aAAa,CAAA,GAC9B,cAAc,GAAA,CAAI,KAAK,CAAA,GACvB,KAAA,CAAM,aAAa,CAAA;AACzB;;;;"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Injects an icon size className on a React element so shadcn's
|
|
4
|
+
* `[&_svg:not([class*='size-'])]:size-X` guard rules skip it and our
|
|
5
|
+
* variant-aware size wins. Caller-provided classes are preserved via cn().
|
|
6
|
+
*
|
|
7
|
+
* - If `node` is not a valid React element (string, number, fragment,
|
|
8
|
+
* null/undefined), returns it as-is. No size is injected.
|
|
9
|
+
* - If `node` already has a `className` prop, the injected size is prepended
|
|
10
|
+
* so tailwind-merge lets the caller's className win if it conflicts.
|
|
11
|
+
*/
|
|
12
|
+
export declare function withIconSize(node: React.ReactNode, sizeClassName: string): React.ReactNode;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { c as cn } from './utils-BJnb9o5c.js';
|
|
3
|
+
|
|
4
|
+
function withIconSize(node, sizeClassName) {
|
|
5
|
+
if (!React__default.isValidElement(node)) return node;
|
|
6
|
+
const element = node;
|
|
7
|
+
return React__default.cloneElement(element, {
|
|
8
|
+
className: cn(sizeClassName, element.props.className)
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export { withIconSize as w };
|
|
13
|
+
//# sourceMappingURL=withIconSize-Czt1EelO.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"withIconSize-Czt1EelO.js","sources":["../src/utils/withIconSize.ts"],"sourcesContent":["import React from \"react\";\n\nimport { cn } from \"src/shadcn/lib/utils\";\n\n/**\n * Injects an icon size className on a React element so shadcn's\n * `[&_svg:not([class*='size-'])]:size-X` guard rules skip it and our\n * variant-aware size wins. Caller-provided classes are preserved via cn().\n *\n * - If `node` is not a valid React element (string, number, fragment,\n * null/undefined), returns it as-is. No size is injected.\n * - If `node` already has a `className` prop, the injected size is prepended\n * so tailwind-merge lets the caller's className win if it conflicts.\n */\nexport function withIconSize(\n node: React.ReactNode,\n sizeClassName: string\n): React.ReactNode {\n if (!React.isValidElement(node)) return node;\n\n const element = node as React.ReactElement<{ className?: string }>;\n\n return React.cloneElement(element, {\n className: cn(sizeClassName, element.props.className),\n });\n}\n"],"names":["React"],"mappings":";;;AAcO,SAAS,YAAA,CACd,MACA,aAAA,EACiB;AACjB,EAAA,IAAI,CAACA,cAAA,CAAM,cAAA,CAAe,IAAI,GAAG,OAAO,IAAA;AAExC,EAAA,MAAM,OAAA,GAAU,IAAA;AAEhB,EAAA,OAAOA,cAAA,CAAM,aAAa,OAAA,EAAS;AAAA,IACjC,SAAA,EAAW,EAAA,CAAG,aAAA,EAAe,OAAA,CAAQ,MAAM,SAAS;AAAA,GACrD,CAAA;AACH;;;;"}
|