@bigbinary/neetoui 8.3.53 → 8.3.54
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/ActionDropdown.js +1 -1
- package/dist/Alert.js +2 -2
- package/dist/Checkbox.js +3 -1
- package/dist/Checkbox.js.map +1 -1
- package/dist/ColorPicker.js +2 -2
- package/dist/DatePicker.js +5 -5
- package/dist/Dropdown.js +1 -1
- package/dist/Input.js +1 -1
- package/dist/Modal.js +2 -2
- package/dist/MultiEmailInput.js +1 -1
- package/dist/Pagination.js +1 -1
- package/dist/Pane.js +2 -2
- package/dist/Radio.js +9 -2
- package/dist/Radio.js.map +1 -1
- package/dist/Select.js +1 -1
- package/dist/Sidebar.js +1 -1
- package/dist/Slider.js +1 -1
- package/dist/Slider.js.map +1 -1
- package/dist/Switch.js +4 -2
- package/dist/Switch.js.map +1 -1
- package/dist/Tab.js +6 -2
- package/dist/Tab.js.map +1 -1
- package/dist/Table.js +5 -5
- package/dist/{Textarea-D3WmOs_6.js → Textarea-CEwODEM3.js} +9 -3
- package/dist/Textarea-CEwODEM3.js.map +1 -0
- package/dist/Textarea.js +3 -3
- package/dist/TimePicker.js +5 -5
- package/dist/Toastr.js +1 -1
- package/dist/Tree.js +1 -1
- package/dist/TreeSelect.js +1 -1
- package/dist/cjs/ActionDropdown.js +1 -1
- package/dist/cjs/Alert.js +2 -2
- package/dist/cjs/Checkbox.js +3 -1
- package/dist/cjs/Checkbox.js.map +1 -1
- package/dist/cjs/ColorPicker.js +2 -2
- package/dist/cjs/DatePicker.js +5 -5
- package/dist/cjs/Dropdown.js +1 -1
- package/dist/cjs/Input.js +1 -1
- package/dist/cjs/Modal.js +2 -2
- package/dist/cjs/MultiEmailInput.js +1 -1
- package/dist/cjs/Pagination.js +1 -1
- package/dist/cjs/Pane.js +2 -2
- package/dist/cjs/Radio.js +9 -2
- package/dist/cjs/Radio.js.map +1 -1
- package/dist/cjs/Select.js +1 -1
- package/dist/cjs/Sidebar.js +1 -1
- package/dist/cjs/Slider.js +1 -1
- package/dist/cjs/Slider.js.map +1 -1
- package/dist/cjs/Switch.js +4 -2
- package/dist/cjs/Switch.js.map +1 -1
- package/dist/cjs/Tab.js +6 -2
- package/dist/cjs/Tab.js.map +1 -1
- package/dist/cjs/Table.js +5 -5
- package/dist/cjs/{Textarea-JUquK4ix.js → Textarea-CdPvAT3A.js} +9 -3
- package/dist/cjs/Textarea-CdPvAT3A.js.map +1 -0
- package/dist/cjs/Textarea.js +3 -3
- package/dist/cjs/TimePicker.js +5 -5
- package/dist/cjs/Toastr.js +1 -1
- package/dist/cjs/Tree.js +1 -1
- package/dist/cjs/TreeSelect.js +1 -1
- package/dist/cjs/formik/ActionBlock.js +1 -1
- package/dist/cjs/formik/BlockNavigation.js +2 -2
- package/dist/cjs/formik/Checkbox.js +1 -1
- package/dist/cjs/formik/Input.js +1 -1
- package/dist/cjs/formik/MultiEmailInput.js +1 -1
- package/dist/cjs/formik/Radio.js +1 -1
- package/dist/cjs/formik/Select.js +1 -1
- package/dist/cjs/formik/Slider.js +1 -1
- package/dist/cjs/formik/Switch.js +1 -1
- package/dist/cjs/formik/Textarea.js +3 -3
- package/dist/cjs/formik/TreeSelect.js +1 -1
- package/dist/cjs/formik/index.js +3 -3
- package/dist/cjs/{index-C7kNDKSZ.js → index-ouVGQMJ2.js} +4 -4
- package/dist/cjs/{index-C7kNDKSZ.js.map → index-ouVGQMJ2.js.map} +1 -1
- package/dist/cjs/{index-kRTNbSPu.js → index-wzq3p_0z.js} +2 -2
- package/dist/cjs/index-wzq3p_0z.js.map +1 -0
- package/dist/cjs/index.js +5 -5
- package/dist/cjs/layouts.js +1 -1
- package/dist/cjs/{useOverlayManager-BKMTt29E.js → useOverlayManager-BWAg7Jhg.js} +2 -2
- package/dist/cjs/{useOverlayManager-BKMTt29E.js.map → useOverlayManager-BWAg7Jhg.js.map} +1 -1
- package/dist/cjs/{useRecentlyUsedColors-Cqmsh4rp.js → useRecentlyUsedColors-zjpSW-oL.js} +2 -2
- package/dist/cjs/{useRecentlyUsedColors-Cqmsh4rp.js.map → useRecentlyUsedColors-zjpSW-oL.js.map} +1 -1
- package/dist/formik/ActionBlock.js +1 -1
- package/dist/formik/BlockNavigation.js +2 -2
- package/dist/formik/Checkbox.js +1 -1
- package/dist/formik/Input.js +1 -1
- package/dist/formik/MultiEmailInput.js +1 -1
- package/dist/formik/Radio.js +1 -1
- package/dist/formik/Select.js +1 -1
- package/dist/formik/Slider.js +1 -1
- package/dist/formik/Switch.js +1 -1
- package/dist/formik/Textarea.js +3 -3
- package/dist/formik/TreeSelect.js +1 -1
- package/dist/formik/index.js +3 -3
- package/dist/{index-D_BsZoxj.js → index-DmicnBCQ.js} +2 -2
- package/dist/index-DmicnBCQ.js.map +1 -0
- package/dist/{index-DasLFwoo.js → index-Ui8-igXs.js} +4 -4
- package/dist/{index-DasLFwoo.js.map → index-Ui8-igXs.js.map} +1 -1
- package/dist/index.js +5 -5
- package/dist/layouts.js +1 -1
- package/dist/{useOverlayManager-B2c6fBF6.js → useOverlayManager-DGTN4LZe.js} +2 -2
- package/dist/{useOverlayManager-B2c6fBF6.js.map → useOverlayManager-DGTN4LZe.js.map} +1 -1
- package/dist/{useRecentlyUsedColors-DVZT_MHc.js → useRecentlyUsedColors-zQ7y37Sk.js} +2 -2
- package/dist/{useRecentlyUsedColors-DVZT_MHc.js.map → useRecentlyUsedColors-zQ7y37Sk.js.map} +1 -1
- package/package.json +1 -1
- package/dist/Textarea-D3WmOs_6.js.map +0 -1
- package/dist/cjs/Textarea-JUquK4ix.js.map +0 -1
- package/dist/cjs/index-kRTNbSPu.js.map +0 -1
- package/dist/index-D_BsZoxj.js.map +0 -1
package/dist/ActionDropdown.js
CHANGED
|
@@ -2,7 +2,7 @@ import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
|
2
2
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
3
3
|
import 'react';
|
|
4
4
|
import classnames from 'classnames';
|
|
5
|
-
import { n as noop } from './index-
|
|
5
|
+
import { n as noop } from './index-DmicnBCQ.js';
|
|
6
6
|
import Button from './Button.js';
|
|
7
7
|
import Dropdown from './Dropdown.js';
|
|
8
8
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
package/dist/Alert.js
CHANGED
|
@@ -13,7 +13,7 @@ import '@babel/runtime/helpers/slicedToArray';
|
|
|
13
13
|
import '@tippyjs/react';
|
|
14
14
|
import 'tippy.js';
|
|
15
15
|
import '@bigbinary/neeto-icons/Close';
|
|
16
|
-
import './useOverlayManager-
|
|
16
|
+
import './useOverlayManager-DGTN4LZe.js';
|
|
17
17
|
import '@babel/runtime/helpers/esm/extends';
|
|
18
18
|
import '@babel/runtime/helpers/esm/objectWithoutPropertiesLoose';
|
|
19
19
|
import '@babel/runtime/helpers/esm/inheritsLoose';
|
|
@@ -23,7 +23,7 @@ import '@bigbinary/neeto-hotkeys';
|
|
|
23
23
|
import './overlayManager.js';
|
|
24
24
|
import '@babel/runtime/helpers/classCallCheck';
|
|
25
25
|
import '@babel/runtime/helpers/createClass';
|
|
26
|
-
import './index-
|
|
26
|
+
import './index-DmicnBCQ.js';
|
|
27
27
|
import '@bigbinary/neeto-cist';
|
|
28
28
|
import 'qs';
|
|
29
29
|
import './en-DVlE9xuu.js';
|
package/dist/Checkbox.js
CHANGED
|
@@ -7,7 +7,7 @@ import '@babel/runtime/helpers/slicedToArray';
|
|
|
7
7
|
import 'react-router-dom';
|
|
8
8
|
import '@bigbinary/neeto-hotkeys';
|
|
9
9
|
import './overlayManager.js';
|
|
10
|
-
import { h as hyphenize } from './index-
|
|
10
|
+
import { h as hyphenize } from './index-DmicnBCQ.js';
|
|
11
11
|
import 'qs';
|
|
12
12
|
import Label from './Label.js';
|
|
13
13
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
@@ -59,7 +59,9 @@ var Checkbox = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
59
59
|
id: id,
|
|
60
60
|
ref: ref,
|
|
61
61
|
required: required,
|
|
62
|
+
"aria-describedby": error ? errorId : undefined,
|
|
62
63
|
"aria-invalid": !!error,
|
|
64
|
+
"aria-required": required,
|
|
63
65
|
className: "neeto-ui-checkbox",
|
|
64
66
|
"data-cy": "".concat(hyphenize(renderLabel), "-checkbox-input"),
|
|
65
67
|
name: id,
|
package/dist/Checkbox.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox.js","sources":["../src/components/Checkbox.jsx"],"sourcesContent":["import React, { forwardRef } from \"react\";\n\nimport classnames from \"classnames\";\nimport PropTypes from \"prop-types\";\n\nimport { useId } from \"hooks\";\nimport { hyphenize } from \"utils\";\n\nimport Label from \"./Label\";\n\nconst Checkbox = forwardRef(\n (\n {\n label = \"\",\n error = \"\",\n className = \"\",\n required = false,\n labelProps,\n children,\n ...otherProps\n },\n ref\n ) => {\n const id = useId(otherProps.id);\n const errorId = `error_${id}`;\n const renderLabel = label || children;\n\n return (\n <div className={classnames([\"neeto-ui-checkbox__wrapper\", className])}>\n <div\n className=\"neeto-ui-checkbox__container\"\n data-cy=\"nui-checkbox-container\"\n >\n <input\n {...{ id, ref, required }}\n aria-invalid={!!error}\n className=\"neeto-ui-checkbox\"\n data-cy={`${hyphenize(renderLabel)}-checkbox-input`}\n name={id}\n type=\"checkbox\"\n {...otherProps}\n />\n {renderLabel && (\n <Label\n {...{ required }}\n data-cy={`${hyphenize(renderLabel)}-checkbox-label`}\n htmlFor={id}\n {...labelProps}\n >\n {renderLabel}\n </Label>\n )}\n </div>\n {!!error && (\n <p\n className=\"neeto-ui-input__error\"\n data-cy={`${hyphenize(renderLabel)}-checkbox-error`}\n id={errorId}\n >\n {error}\n </p>\n )}\n </div>\n );\n }\n);\n\nCheckbox.displayName = \"Checkbox\";\n\nCheckbox.propTypes = {\n /**\n * To specify a unique ID to the Checkbox component.\n */\n id: PropTypes.string,\n /**\n * To specify the text to be displayed next to the Checkbox.\n */\n label: PropTypes.string,\n /**\n * To specify the label props to be passed to the Label component.\n */\n labelProps: PropTypes.object,\n /**\n * To specify the error message to be shown.\n */\n error: PropTypes.string,\n /**\n * To provide external classnames to Checkbox component.\n */\n className: PropTypes.string,\n /**\n * To specify whether the Checkbox is a required field or not.\n */\n required: PropTypes.bool,\n /**\n * To specify the children label to be rendered inside the Checkbox.\n */\n children: PropTypes.string,\n};\n\nexport default Checkbox;\n"],"names":["Checkbox","forwardRef","_ref","ref","_ref$label","label","_ref$error","error","_ref$className","className","_ref$required","required","labelProps","children","otherProps","_objectWithoutProperties","_excluded","id","useId","errorId","concat","renderLabel","_jsxs","classnames","_jsx","_objectSpread","hyphenize","name","type","Label","htmlFor","displayName"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUA,IAAMA,QAAQ,gBAAGC,UAAU,CACzB,UAAAC,IAAA,EAUEC,GAAG,EACA;AAAA,EAAA,IAAAC,UAAA,GAAAF,IAAA,CATDG,KAAK;AAALA,IAAAA,KAAK,GAAAD,UAAA,KAAA,MAAA,GAAG,EAAE,GAAAA,UAAA;IAAAE,UAAA,GAAAJ,IAAA,CACVK,KAAK;AAALA,IAAAA,KAAK,GAAAD,UAAA,KAAA,MAAA,GAAG,EAAE,GAAAA,UAAA;IAAAE,cAAA,GAAAN,IAAA,CACVO,SAAS;AAATA,IAAAA,SAAS,GAAAD,cAAA,KAAA,MAAA,GAAG,EAAE,GAAAA,cAAA;IAAAE,aAAA,GAAAR,IAAA,CACdS,QAAQ;AAARA,IAAAA,QAAQ,GAAAD,aAAA,KAAA,MAAA,GAAG,KAAK,GAAAA,aAAA;IAChBE,UAAU,GAAAV,IAAA,CAAVU,UAAU;IACVC,QAAQ,GAAAX,IAAA,CAARW,QAAQ;AACLC,IAAAA,UAAU,GAAAC,wBAAA,CAAAb,IAAA,EAAAc,SAAA,CAAA;AAIf,EAAA,IAAMC,EAAE,GAAGC,KAAK,CAACJ,UAAU,CAACG,EAAE,CAAC;AAC/B,EAAA,IAAME,OAAO,GAAA,QAAA,CAAAC,MAAA,CAAYH,EAAE,CAAE;AAC7B,EAAA,IAAMI,WAAW,GAAGhB,KAAK,IAAIQ,QAAQ;AAErC,EAAA,oBACES,IAAA,CAAA,KAAA,EAAA;IAAKb,SAAS,EAAEc,UAAU,CAAC,CAAC,4BAA4B,EAAEd,SAAS,CAAC,CAAE;AAAAI,IAAAA,QAAA,gBACpES,IAAA,CAAA,KAAA,EAAA;AACEb,MAAAA,SAAS,EAAC,8BAA8B;AACxC,MAAA,SAAA,EAAQ,wBAAwB;MAAAI,QAAA,EAAA,cAEhCW,GAAA,CAAA,OAAA,EAAAC,aAAA,CAAA;AACQR,QAAAA,EAAE,EAAFA,EAAE;AAAEd,QAAAA,GAAG,EAAHA,GAAG;AAAEQ,QAAAA,QAAQ,EAARA,QAAQ;
|
|
1
|
+
{"version":3,"file":"Checkbox.js","sources":["../src/components/Checkbox.jsx"],"sourcesContent":["import React, { forwardRef } from \"react\";\n\nimport classnames from \"classnames\";\nimport PropTypes from \"prop-types\";\n\nimport { useId } from \"hooks\";\nimport { hyphenize } from \"utils\";\n\nimport Label from \"./Label\";\n\nconst Checkbox = forwardRef(\n (\n {\n label = \"\",\n error = \"\",\n className = \"\",\n required = false,\n labelProps,\n children,\n ...otherProps\n },\n ref\n ) => {\n const id = useId(otherProps.id);\n const errorId = `error_${id}`;\n const renderLabel = label || children;\n\n return (\n <div className={classnames([\"neeto-ui-checkbox__wrapper\", className])}>\n <div\n className=\"neeto-ui-checkbox__container\"\n data-cy=\"nui-checkbox-container\"\n >\n <input\n {...{ id, ref, required }}\n aria-describedby={error ? errorId : undefined}\n aria-invalid={!!error}\n aria-required={required}\n className=\"neeto-ui-checkbox\"\n data-cy={`${hyphenize(renderLabel)}-checkbox-input`}\n name={id}\n type=\"checkbox\"\n {...otherProps}\n />\n {renderLabel && (\n <Label\n {...{ required }}\n data-cy={`${hyphenize(renderLabel)}-checkbox-label`}\n htmlFor={id}\n {...labelProps}\n >\n {renderLabel}\n </Label>\n )}\n </div>\n {!!error && (\n <p\n className=\"neeto-ui-input__error\"\n data-cy={`${hyphenize(renderLabel)}-checkbox-error`}\n id={errorId}\n >\n {error}\n </p>\n )}\n </div>\n );\n }\n);\n\nCheckbox.displayName = \"Checkbox\";\n\nCheckbox.propTypes = {\n /**\n * To specify a unique ID to the Checkbox component.\n */\n id: PropTypes.string,\n /**\n * To specify the text to be displayed next to the Checkbox.\n */\n label: PropTypes.string,\n /**\n * To specify the label props to be passed to the Label component.\n */\n labelProps: PropTypes.object,\n /**\n * To specify the error message to be shown.\n */\n error: PropTypes.string,\n /**\n * To provide external classnames to Checkbox component.\n */\n className: PropTypes.string,\n /**\n * To specify whether the Checkbox is a required field or not.\n */\n required: PropTypes.bool,\n /**\n * To specify the children label to be rendered inside the Checkbox.\n */\n children: PropTypes.string,\n};\n\nexport default Checkbox;\n"],"names":["Checkbox","forwardRef","_ref","ref","_ref$label","label","_ref$error","error","_ref$className","className","_ref$required","required","labelProps","children","otherProps","_objectWithoutProperties","_excluded","id","useId","errorId","concat","renderLabel","_jsxs","classnames","_jsx","_objectSpread","undefined","hyphenize","name","type","Label","htmlFor","displayName"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUA,IAAMA,QAAQ,gBAAGC,UAAU,CACzB,UAAAC,IAAA,EAUEC,GAAG,EACA;AAAA,EAAA,IAAAC,UAAA,GAAAF,IAAA,CATDG,KAAK;AAALA,IAAAA,KAAK,GAAAD,UAAA,KAAA,MAAA,GAAG,EAAE,GAAAA,UAAA;IAAAE,UAAA,GAAAJ,IAAA,CACVK,KAAK;AAALA,IAAAA,KAAK,GAAAD,UAAA,KAAA,MAAA,GAAG,EAAE,GAAAA,UAAA;IAAAE,cAAA,GAAAN,IAAA,CACVO,SAAS;AAATA,IAAAA,SAAS,GAAAD,cAAA,KAAA,MAAA,GAAG,EAAE,GAAAA,cAAA;IAAAE,aAAA,GAAAR,IAAA,CAC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AAAA,aAAA,CAAA;AACEd,QAAAA,QAAQ,EAARA,QAAQ;AACd,QAAA,SAAA,EAAA,EAAA,CAAAS,MAAA,CAAYO,SAAS,CAACN,WAAW,CAAC,EAAA,iBAAA,CAAkB;AACpDU,QAAAA,OAAO,EAAEd;AAAG,OAAA,EACRL,UAAU,CAAA,EAAA,EAAA,EAAA;AAAAC,QAAAA,QAAA,EAEbQ;AAAW,OAAA,CACP,CACR;AAAA,KACE,CAAC,EACL,CAAC,CAACd,KAAK,iBACNiB,GAAA,CAAA,GAAA,EAAA;AACEf,MAAAA,SAAS,EAAC,uBAAuB;AACjC,MAAA,SAAA,EAAA,EAAA,CAAAW,MAAA,CAAYO,SAAS,CAACN,WAAW,CAAC,EAAA,iBAAA,CAAkB;AACpDJ,MAAAA,EAAE,EAAEE,OAAQ;AAAAN,MAAAA,QAAA,EAEXN;AAAK,KACL,CACJ;AAAA,GACE,CAAC;AAEV,CACF;AAEAP,QAAQ,CAACgC,WAAW,GAAG,UAAU;;;;"}
|
package/dist/ColorPicker.js
CHANGED
|
@@ -8,11 +8,11 @@ import classnames from 'classnames';
|
|
|
8
8
|
import ColorPickerIcon from '@bigbinary/neeto-icons/ColorPicker';
|
|
9
9
|
import { HexAlphaColorPicker, HexColorPicker, HexColorInput } from 'react-colorful';
|
|
10
10
|
import { useTranslation } from 'react-i18next';
|
|
11
|
-
import { t as tinycolor, u as useRecentlyUsedColors } from './useRecentlyUsedColors-
|
|
11
|
+
import { t as tinycolor, u as useRecentlyUsedColors } from './useRecentlyUsedColors-zQ7y37Sk.js';
|
|
12
12
|
import Button from './Button.js';
|
|
13
13
|
import Dropdown from './Dropdown.js';
|
|
14
14
|
import Typography from './Typography.js';
|
|
15
|
-
import { a as getLocale, n as noop } from './index-
|
|
15
|
+
import { a as getLocale, n as noop } from './index-DmicnBCQ.js';
|
|
16
16
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
17
17
|
import Down from '@bigbinary/neeto-icons/Down';
|
|
18
18
|
import '@babel/runtime/helpers/objectWithoutProperties';
|
package/dist/DatePicker.js
CHANGED
|
@@ -27,11 +27,11 @@ import '@babel/runtime/regenerator';
|
|
|
27
27
|
import '@bigbinary/neeto-icons/ColorPicker';
|
|
28
28
|
import 'react-colorful';
|
|
29
29
|
import 'react-i18next';
|
|
30
|
-
import './useRecentlyUsedColors-
|
|
30
|
+
import './useRecentlyUsedColors-zQ7y37Sk.js';
|
|
31
31
|
import './Dropdown.js';
|
|
32
|
-
import './index-
|
|
32
|
+
import './index-DmicnBCQ.js';
|
|
33
33
|
import '@bigbinary/neeto-icons/Down';
|
|
34
|
-
export { D as default } from './index-
|
|
34
|
+
export { D as default } from './index-Ui8-igXs.js';
|
|
35
35
|
import './Input.js';
|
|
36
36
|
import './Label.js';
|
|
37
37
|
import './MultiEmailInput.js';
|
|
@@ -40,7 +40,7 @@ import './useId-Jj9hXm-g.js';
|
|
|
40
40
|
import '@bigbinary/neeto-hotkeys';
|
|
41
41
|
import './overlayManager.js';
|
|
42
42
|
import 'qs';
|
|
43
|
-
import './Textarea-
|
|
43
|
+
import './Textarea-CEwODEM3.js';
|
|
44
44
|
import './Pane.js';
|
|
45
45
|
import './Popover.js';
|
|
46
46
|
import 'framer-motion';
|
|
@@ -85,7 +85,7 @@ import 'dayjs/plugin/weekday';
|
|
|
85
85
|
import 'dayjs/plugin/weekOfYear';
|
|
86
86
|
import './Spinner.js';
|
|
87
87
|
import './Tooltip.js';
|
|
88
|
-
import './useOverlayManager-
|
|
88
|
+
import './useOverlayManager-DGTN4LZe.js';
|
|
89
89
|
import '@babel/runtime/helpers/esm/objectWithoutPropertiesLoose';
|
|
90
90
|
import '@babel/runtime/helpers/esm/inheritsLoose';
|
|
91
91
|
import '@bigbinary/neeto-icons/Help';
|
package/dist/Dropdown.js
CHANGED
|
@@ -7,7 +7,7 @@ import classnames from 'classnames';
|
|
|
7
7
|
import Down from '@bigbinary/neeto-icons/Down';
|
|
8
8
|
import { isNil } from 'ramda';
|
|
9
9
|
import Button from './Button.js';
|
|
10
|
-
import { g as getContentDir, h as hyphenize, n as noop } from './index-
|
|
10
|
+
import { g as getContentDir, h as hyphenize, n as noop } from './index-DmicnBCQ.js';
|
|
11
11
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
12
12
|
import { isPresent } from '@bigbinary/neeto-cist';
|
|
13
13
|
import Tooltip from './Tooltip.js';
|
package/dist/Input.js
CHANGED
|
@@ -8,7 +8,7 @@ import { u as useId } from './useId-Jj9hXm-g.js';
|
|
|
8
8
|
import 'react-router-dom';
|
|
9
9
|
import '@bigbinary/neeto-hotkeys';
|
|
10
10
|
import './overlayManager.js';
|
|
11
|
-
import { h as hyphenize } from './index-
|
|
11
|
+
import { h as hyphenize } from './index-DmicnBCQ.js';
|
|
12
12
|
import 'qs';
|
|
13
13
|
import Label from './Label.js';
|
|
14
14
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
package/dist/Modal.js
CHANGED
|
@@ -4,7 +4,7 @@ import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProper
|
|
|
4
4
|
import React__default, { useState, useRef } from 'react';
|
|
5
5
|
import classnames from 'classnames';
|
|
6
6
|
import Close from '@bigbinary/neeto-icons/Close';
|
|
7
|
-
import { u as useOverlayManager, a as useOverlay, P as Portal, C as CSSTransition, B as Backdrop } from './useOverlayManager-
|
|
7
|
+
import { u as useOverlayManager, a as useOverlay, P as Portal, C as CSSTransition, B as Backdrop } from './useOverlayManager-DGTN4LZe.js';
|
|
8
8
|
import Button from './Button.js';
|
|
9
9
|
import 'react-router-dom';
|
|
10
10
|
import 'qs';
|
|
@@ -19,7 +19,7 @@ import '@bigbinary/neeto-hotkeys';
|
|
|
19
19
|
import './overlayManager.js';
|
|
20
20
|
import '@babel/runtime/helpers/classCallCheck';
|
|
21
21
|
import '@babel/runtime/helpers/createClass';
|
|
22
|
-
import './index-
|
|
22
|
+
import './index-DmicnBCQ.js';
|
|
23
23
|
import '@bigbinary/neeto-cist';
|
|
24
24
|
import './en-DVlE9xuu.js';
|
|
25
25
|
import '@babel/runtime/helpers/toConsumableArray';
|
package/dist/MultiEmailInput.js
CHANGED
|
@@ -6,7 +6,7 @@ import { useRef, useEffect, forwardRef, useState } from 'react';
|
|
|
6
6
|
import classnames from 'classnames';
|
|
7
7
|
import { assoc, pluck, mergeLeft, isEmpty } from 'ramda';
|
|
8
8
|
import { c as components, C as CreatableSelect } from './react-select-creatable.esm-opiJTCqo.js';
|
|
9
|
-
import { h as hyphenize, n as noop } from './index-
|
|
9
|
+
import { h as hyphenize, n as noop } from './index-DmicnBCQ.js';
|
|
10
10
|
import _toArray from '@babel/runtime/helpers/toArray';
|
|
11
11
|
import Close from '@bigbinary/neeto-icons/Close';
|
|
12
12
|
import Tag from './Tag.js';
|
package/dist/Pagination.js
CHANGED
|
@@ -7,7 +7,7 @@ import { useHistory } from 'react-router-dom';
|
|
|
7
7
|
import '@babel/runtime/helpers/slicedToArray';
|
|
8
8
|
import '@bigbinary/neeto-hotkeys';
|
|
9
9
|
import './overlayManager.js';
|
|
10
|
-
import { c as buildUrl } from './index-
|
|
10
|
+
import { c as buildUrl } from './index-DmicnBCQ.js';
|
|
11
11
|
import { u as useQueryParams } from './useQueryParams-BKsf4FPY.js';
|
|
12
12
|
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
13
13
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
package/dist/Pane.js
CHANGED
|
@@ -4,7 +4,7 @@ import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProper
|
|
|
4
4
|
import { useState, useRef, useEffect } from 'react';
|
|
5
5
|
import classnames from 'classnames';
|
|
6
6
|
import Close from '@bigbinary/neeto-icons/Close';
|
|
7
|
-
import { u as useOverlayManager, a as useOverlay, P as Portal, C as CSSTransition, B as Backdrop } from './useOverlayManager-
|
|
7
|
+
import { u as useOverlayManager, a as useOverlay, P as Portal, C as CSSTransition, B as Backdrop } from './useOverlayManager-DGTN4LZe.js';
|
|
8
8
|
import Button from './Button.js';
|
|
9
9
|
import 'react-router-dom';
|
|
10
10
|
import 'qs';
|
|
@@ -18,7 +18,7 @@ import '@bigbinary/neeto-hotkeys';
|
|
|
18
18
|
import './overlayManager.js';
|
|
19
19
|
import '@babel/runtime/helpers/classCallCheck';
|
|
20
20
|
import '@babel/runtime/helpers/createClass';
|
|
21
|
-
import './index-
|
|
21
|
+
import './index-DmicnBCQ.js';
|
|
22
22
|
import '@bigbinary/neeto-cist';
|
|
23
23
|
import './en-DVlE9xuu.js';
|
|
24
24
|
import '@babel/runtime/helpers/toConsumableArray';
|
package/dist/Radio.js
CHANGED
|
@@ -8,7 +8,7 @@ import { u as useId } from './useId-Jj9hXm-g.js';
|
|
|
8
8
|
import 'react-router-dom';
|
|
9
9
|
import '@bigbinary/neeto-hotkeys';
|
|
10
10
|
import './overlayManager.js';
|
|
11
|
-
import { h as hyphenize } from './index-
|
|
11
|
+
import { h as hyphenize } from './index-DmicnBCQ.js';
|
|
12
12
|
import 'qs';
|
|
13
13
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
14
14
|
import '@bigbinary/neeto-icons/Help';
|
|
@@ -90,16 +90,23 @@ var Radio = function Radio(_ref) {
|
|
|
90
90
|
setInternalValue = _useState2[1];
|
|
91
91
|
var id = useId(props.id);
|
|
92
92
|
var errorId = "error_".concat(id);
|
|
93
|
+
var labelId = label ? "label_".concat(id) : undefined;
|
|
94
|
+
var finalLabelId = label ? (labelProps === null || labelProps === void 0 ? void 0 : labelProps.id) || labelId : undefined;
|
|
93
95
|
var internalOnChange = function internalOnChange(e) {
|
|
94
96
|
return setInternalValue(e.target.value);
|
|
95
97
|
};
|
|
96
98
|
return /*#__PURE__*/jsxs("div", {
|
|
97
99
|
className: classnames(["neeto-ui-radio__wrapper", className]),
|
|
98
100
|
children: [label && /*#__PURE__*/jsx(Label, _objectSpread(_objectSpread({
|
|
99
|
-
className: "neeto-ui-radio__label"
|
|
101
|
+
className: "neeto-ui-radio__label",
|
|
102
|
+
id: finalLabelId
|
|
100
103
|
}, labelProps), {}, {
|
|
101
104
|
children: label
|
|
102
105
|
})), /*#__PURE__*/jsx("div", {
|
|
106
|
+
"aria-describedby": error ? errorId : undefined,
|
|
107
|
+
"aria-invalid": !!error,
|
|
108
|
+
"aria-labelledby": finalLabelId,
|
|
109
|
+
role: "radiogroup",
|
|
103
110
|
className: classnames(["neeto-ui-radio__container"], _defineProperty({
|
|
104
111
|
"neeto-ui-radio__container--stacked": stacked,
|
|
105
112
|
"neeto-ui-radio__container--error": error
|
package/dist/Radio.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Radio.js","sources":["../src/components/Radio/Item.jsx","../src/components/Radio/index.jsx"],"sourcesContent":["import React, { forwardRef } from \"react\";\n\nimport classnames from \"classnames\";\nimport PropTypes from \"prop-types\";\n\nimport Label from \"components/Label\";\nimport { useId } from \"hooks\";\nimport { hyphenize } from \"utils\";\n\nconst Item = forwardRef(\n (\n {\n name = \"\",\n label = \"\",\n className = \"\",\n labelProps,\n dataCy = \"\",\n ...otherProps\n },\n ref\n ) => {\n const id = useId(otherProps.id);\n\n return (\n <div className={classnames([\"neeto-ui-radio__item\", className])}>\n <input\n {...{ id, name, ref }}\n className=\"neeto-ui-radio\"\n data-cy={dataCy || `${hyphenize(label)}-radio-input`}\n type=\"radio\"\n {...otherProps}\n />\n {label && (\n <Label\n data-cy={dataCy || `${hyphenize(label)}-radio-label`}\n htmlFor={id}\n {...labelProps}\n >\n {label}\n </Label>\n )}\n </div>\n );\n }\n);\n\nItem.displayName = \"Radio.Item\";\n\nItem.propTypes = {\n /**\n * To specify the name of the radio group.\n */\n name: PropTypes.string,\n /**\n * To specify the label to be displayed for radio item.\n */\n label: PropTypes.node,\n /**\n * To specify external classnames as overrides to the radio item.\n */\n className: PropTypes.string,\n};\n\nexport default Item;\n","import React, { useState, Children, cloneElement } from \"react\";\n\nimport classnames from \"classnames\";\nimport PropTypes from \"prop-types\";\n\nimport Label from \"components/Label\";\nimport { useId } from \"hooks\";\nimport { hyphenize } from \"utils\";\n\nimport Item from \"./Item\";\n\nconst Radio = ({\n label = \"\",\n children,\n stacked = false,\n className = \"\",\n containerClassName = \"\",\n error = \"\",\n onChange,\n labelProps,\n ...props\n}) => {\n const [internalValue, setInternalValue] = useState(\"\");\n\n const id = useId(props.id);\n const errorId = `error_${id}`;\n\n const internalOnChange = e => setInternalValue(e.target.value);\n\n return (\n <div className={classnames([\"neeto-ui-radio__wrapper\", className])}>\n {label && (\n <Label
|
|
1
|
+
{"version":3,"file":"Radio.js","sources":["../src/components/Radio/Item.jsx","../src/components/Radio/index.jsx"],"sourcesContent":["import React, { forwardRef } from \"react\";\n\nimport classnames from \"classnames\";\nimport PropTypes from \"prop-types\";\n\nimport Label from \"components/Label\";\nimport { useId } from \"hooks\";\nimport { hyphenize } from \"utils\";\n\nconst Item = forwardRef(\n (\n {\n name = \"\",\n label = \"\",\n className = \"\",\n labelProps,\n dataCy = \"\",\n ...otherProps\n },\n ref\n ) => {\n const id = useId(otherProps.id);\n\n return (\n <div className={classnames([\"neeto-ui-radio__item\", className])}>\n <input\n {...{ id, name, ref }}\n className=\"neeto-ui-radio\"\n data-cy={dataCy || `${hyphenize(label)}-radio-input`}\n type=\"radio\"\n {...otherProps}\n />\n {label && (\n <Label\n data-cy={dataCy || `${hyphenize(label)}-radio-label`}\n htmlFor={id}\n {...labelProps}\n >\n {label}\n </Label>\n )}\n </div>\n );\n }\n);\n\nItem.displayName = \"Radio.Item\";\n\nItem.propTypes = {\n /**\n * To specify the name of the radio group.\n */\n name: PropTypes.string,\n /**\n * To specify the label to be displayed for radio item.\n */\n label: PropTypes.node,\n /**\n * To specify external classnames as overrides to the radio item.\n */\n className: PropTypes.string,\n};\n\nexport default Item;\n","import React, { useState, Children, cloneElement } from \"react\";\n\nimport classnames from \"classnames\";\nimport PropTypes from \"prop-types\";\n\nimport Label from \"components/Label\";\nimport { useId } from \"hooks\";\nimport { hyphenize } from \"utils\";\n\nimport Item from \"./Item\";\n\nconst Radio = ({\n label = \"\",\n children,\n stacked = false,\n className = \"\",\n containerClassName = \"\",\n error = \"\",\n onChange,\n labelProps,\n ...props\n}) => {\n const [internalValue, setInternalValue] = useState(\"\");\n\n const id = useId(props.id);\n const errorId = `error_${id}`;\n const labelId = label ? `label_${id}` : undefined;\n const finalLabelId = label ? labelProps?.id || labelId : undefined;\n\n const internalOnChange = e => setInternalValue(e.target.value);\n\n return (\n <div className={classnames([\"neeto-ui-radio__wrapper\", className])}>\n {label && (\n <Label\n className=\"neeto-ui-radio__label\"\n id={finalLabelId}\n {...labelProps}\n >\n {label}\n </Label>\n )}\n <div\n aria-describedby={error ? errorId : undefined}\n aria-invalid={!!error}\n aria-labelledby={finalLabelId}\n role=\"radiogroup\"\n className={classnames([\"neeto-ui-radio__container\"], {\n \"neeto-ui-radio__container--stacked\": stacked,\n \"neeto-ui-radio__container--error\": error,\n [containerClassName]: containerClassName,\n })}\n >\n {Children.map(children, child =>\n cloneElement(child, {\n ...child.props,\n ...props,\n value: child.props.value,\n checked:\n child.props.checked ??\n [internalValue, props.value].includes(child.props.value),\n onChange: child.props.onChange ?? onChange ?? internalOnChange,\n })\n )}\n </div>\n {!!error && (\n <p\n className=\"neeto-ui-radio-input__error\"\n data-cy={`${hyphenize(label)}-radio-input-error`}\n id={errorId}\n >\n {error}\n </p>\n )}\n </div>\n );\n};\n\nRadio.propTypes = {\n /**\n * To specify the label to be displayed for Radio component.\n */\n label: PropTypes.string,\n /**\n * To specify the label props to be passed to the Label component.\n */\n labelProps: PropTypes.object,\n /**\n * To specify the content to be rendered inside the Radio component.\n */\n children: PropTypes.node,\n /**\n * To specify whether the Radio items should be stacked vertically or not.\n */\n stacked: PropTypes.bool,\n /**\n * To specify external classnames as overrides to the Radio component.\n */\n className: PropTypes.string,\n /**\n * To specify external classnames for the container of Radio component.\n */\n containerClassName: PropTypes.string,\n /**\n * To specify the error message to be displayed when the Radio input is invalid.\n */\n error: PropTypes.string,\n};\n\nRadio.Item = Item;\n\nexport default Radio;\n"],"names":["Item","forwardRef","_ref","ref","_ref$name","name","_ref$label","label","_ref$className","className","labelProps","_ref$dataCy","dataCy","otherProps","_objectWithoutProperties","_excluded","id","useId","_jsxs","classnames","children","_jsx","_objectSpread","concat","hyphenize","type","Label","htmlFor","displayName","Radio","_ref$stacked","stacked","_ref$containerClassNa","containerClassName","_ref$error","error","onChange","props","_useState","useState","_useState2","_slicedToArray","internalValue","setInternalValue","errorId","labelId","undefined","finalLabelId","internalOnChange","e","target","value","role","_defineProperty","Children","map","child","_child$props$checked","_ref2","_child$props$onChange","cloneElement","checked","includes"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,IAAMA,IAAI,gBAAGC,UAAU,CACrB,UAAAC,IAAA,EASEC,GAAG,EACA;AAAA,EAAA,IAAAC,SAAA,GAAAF,IAAA,CARDG,IAAI;AAAJA,IAAAA,IAAI,GAAAD,SAAA,KAAA,MAAA,GAAG,EAAE,GAAAA,SAAA;IAAAE,UAAA,GAAAJ,IAAA,CACTK,KAAK;AAALA,IAAAA,KAAK,GAAAD,UAAA,KAAA,MAAA,GAAG,EAAE,GAAAA,UAAA;IAAAE,cAAA,GAAAN,IAAA,CACVO,SAAS;AAATA,IAAAA,SAAS,GAAAD,cAAA,KAAA,MAAA,GAAG,EAAE,GAAAA,cAAA;IACdE,UAAU,GAAAR,IAAA,CAAVQ,UAAU;IAAAC,WAAA,GAAAT,IAAA,CACVU,MAAM;AAANA,IAAAA,MAAM,GAAAD,WAAA,KAAA,MAAA,GAAG,EAAE,GAAAA,WAAA;AACRE,IAAAA,UAAU,GAAAC,wBAAA,CAAAZ,IAAA,EAAAa,WAAA,CAAA;AAIf,EAAA,IAAMC,EAAE,GAAGC,KAAK,CAACJ,UAAU,CAACG,EAAE,CAAC;AAE/B,EAAA,oBACEE,IAAA,CAAA,KAAA,EAAA;IAAKT,SAAS,EAAEU,UAAU,CAAC,CAAC,sBAAsB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AK,CAAC;UAC1Df,QAAQ,EAAA,CAAAsB,KAAA,GAAA,CAAAC,qBAAA,GAAEH,KAAK,CAACnB,KAAK,CAACD,QAAQ,cAAAuB,qBAAA,KAAA,MAAA,GAAAA,qBAAA,GAAIvB,QAAQ,cAAAsB,KAAA,KAAA,MAAA,GAAAA,KAAA,GAAIV;AAAgB,SAAA,CAC/D,CAAC;MAAA,CACJ;AAAC,KACE,CAAC,EACL,CAAC,CAACb,KAAK,iBACNd,GAAA,CAAA,GAAA,EAAA;AACEZ,MAAAA,SAAS,EAAC,6BAA6B;AACvC,MAAA,SAAA,EAAA,EAAA,CAAAc,MAAA,CAAYC,SAAS,CAACjB,KAAK,CAAC,EAAA,oBAAA,CAAqB;AACjDS,MAAAA,EAAE,EAAE4B,OAAQ;AAAAxB,MAAAA,QAAA,EAEXe;AAAK,KACL,CACJ;AAAA,GACE,CAAC;AAEV;AAiCAN,KAAK,CAAC7B,IAAI,GAAGA,IAAI;;;;"}
|
package/dist/Select.js
CHANGED
|
@@ -27,7 +27,7 @@ import { u as useId } from './useId-Jj9hXm-g.js';
|
|
|
27
27
|
import 'react-router-dom';
|
|
28
28
|
import '@bigbinary/neeto-hotkeys';
|
|
29
29
|
import './overlayManager.js';
|
|
30
|
-
import { h as hyphenize } from './index-
|
|
30
|
+
import { h as hyphenize } from './index-DmicnBCQ.js';
|
|
31
31
|
import 'qs';
|
|
32
32
|
import Label from './Label.js';
|
|
33
33
|
import Spinner from './Spinner.js';
|
package/dist/Sidebar.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { forwardRef, useState, createElement } from 'react';
|
|
2
2
|
import classnames from 'classnames';
|
|
3
|
-
import { n as noop } from './index-
|
|
3
|
+
import { n as noop } from './index-DmicnBCQ.js';
|
|
4
4
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
5
5
|
import Tooltip from './Tooltip.js';
|
|
6
6
|
import AppSwitcherIcon from '@bigbinary/neeto-icons/AppSwitcher';
|
package/dist/Slider.js
CHANGED
|
@@ -11,7 +11,7 @@ import '@babel/runtime/helpers/slicedToArray';
|
|
|
11
11
|
import 'react-router-dom';
|
|
12
12
|
import '@bigbinary/neeto-hotkeys';
|
|
13
13
|
import './overlayManager.js';
|
|
14
|
-
import { g as getContentDir, h as hyphenize, n as noop, A as ANT_DESIGN_GLOBAL_TOKEN_OVERRIDES } from './index-
|
|
14
|
+
import { g as getContentDir, h as hyphenize, n as noop, A as ANT_DESIGN_GLOBAL_TOKEN_OVERRIDES } from './index-DmicnBCQ.js';
|
|
15
15
|
import 'qs';
|
|
16
16
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
17
17
|
import 'antd/locale/de_DE';
|
package/dist/Slider.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Slider.js","sources":["../src/components/Slider/index.jsx"],"sourcesContent":["import React from \"react\";\n\nimport { Slider as AntdSlider, ConfigProvider } from \"antd\";\nimport PropTypes from \"prop-types\";\nimport { useTranslation } from \"react-i18next\";\n\nimport { ANTD_LOCALE } from \"components/constants\";\nimport Label from \"components/Label\";\nimport { useId } from \"hooks\";\nimport {\n ANT_DESIGN_GLOBAL_TOKEN_OVERRIDES,\n hyphenize,\n noop,\n getContentDir,\n} from \"utils\";\n\nconst Slider = ({\n min = 0,\n max = 100,\n defaultValue = 0,\n onChange = noop,\n value = undefined,\n label,\n required = false,\n labelProps = {},\n error,\n helpText,\n ...otherProps\n}) => {\n const id = useId(otherProps.id);\n const errorId = `error_${id}`;\n const helpTextId = `helpText_${id}`;\n\n const { i18n } = useTranslation();\n\n return (\n <ConfigProvider\n direction={getContentDir()}\n locale={ANTD_LOCALE[i18n.language || \"en\"]}\n theme={{\n token: { ...ANT_DESIGN_GLOBAL_TOKEN_OVERRIDES },\n components: {\n Slider: {\n dotActiveBorderColor: \"rgb(var(--neeto-ui-primary-500))\",\n dotBorderColor: \"rgb(var(--neeto-ui-gray-500))\",\n handleActiveColor: \"rgb(var(--neeto-ui-primary-600))\",\n handleColor: \"rgb(var(--neeto-ui-primary-500))\",\n railBg: \"rgb(var(--neeto-ui-gray-200))\",\n railHoverBg: \"rgb(var(--neeto-ui-gray-300))\",\n trackBg: \"rgb(var(--neeto-ui-primary-500))\",\n trackBgDisabled: \"rgb(var(--neeto-ui-gray-100))\",\n trackHoverBg: \"rgb(var(--neeto-ui-primary-600))\",\n\n // Global overrides\n colorFillContentHover: \"rgb(var(--neeto-ui-gray-600))\",\n },\n },\n }}\n >\n <div className=\"neeto-ui-input__wrapper\">\n <div className=\"neeto-ui-input__label-wrapper\">\n {label && (\n <Label\n {...{ required }}\n data-cy={`${hyphenize(label)}-slider-label`}\n htmlFor={id}\n {...labelProps}\n >\n {label}\n </Label>\n )}\n </div>\n <AntdSlider\n className=\"neeto-ui-w-full\"\n tooltip={{ formatter: null }}\n {...{
|
|
1
|
+
{"version":3,"file":"Slider.js","sources":["../src/components/Slider/index.jsx"],"sourcesContent":["import React from \"react\";\n\nimport { Slider as AntdSlider, ConfigProvider } from \"antd\";\nimport PropTypes from \"prop-types\";\nimport { useTranslation } from \"react-i18next\";\n\nimport { ANTD_LOCALE } from \"components/constants\";\nimport Label from \"components/Label\";\nimport { useId } from \"hooks\";\nimport {\n ANT_DESIGN_GLOBAL_TOKEN_OVERRIDES,\n hyphenize,\n noop,\n getContentDir,\n} from \"utils\";\n\nconst Slider = ({\n min = 0,\n max = 100,\n defaultValue = 0,\n onChange = noop,\n value = undefined,\n label,\n required = false,\n labelProps = {},\n error,\n helpText,\n ...otherProps\n}) => {\n const id = useId(otherProps.id);\n const errorId = `error_${id}`;\n const helpTextId = `helpText_${id}`;\n\n const { i18n } = useTranslation();\n\n return (\n <ConfigProvider\n direction={getContentDir()}\n locale={ANTD_LOCALE[i18n.language || \"en\"]}\n theme={{\n token: { ...ANT_DESIGN_GLOBAL_TOKEN_OVERRIDES },\n components: {\n Slider: {\n dotActiveBorderColor: \"rgb(var(--neeto-ui-primary-500))\",\n dotBorderColor: \"rgb(var(--neeto-ui-gray-500))\",\n handleActiveColor: \"rgb(var(--neeto-ui-primary-600))\",\n handleColor: \"rgb(var(--neeto-ui-primary-500))\",\n railBg: \"rgb(var(--neeto-ui-gray-200))\",\n railHoverBg: \"rgb(var(--neeto-ui-gray-300))\",\n trackBg: \"rgb(var(--neeto-ui-primary-500))\",\n trackBgDisabled: \"rgb(var(--neeto-ui-gray-100))\",\n trackHoverBg: \"rgb(var(--neeto-ui-primary-600))\",\n\n // Global overrides\n colorFillContentHover: \"rgb(var(--neeto-ui-gray-600))\",\n },\n },\n }}\n >\n <div className=\"neeto-ui-input__wrapper\">\n <div className=\"neeto-ui-input__label-wrapper\">\n {label && (\n <Label\n {...{ required }}\n data-cy={`${hyphenize(label)}-slider-label`}\n htmlFor={id}\n {...labelProps}\n >\n {label}\n </Label>\n )}\n </div>\n <AntdSlider\n className=\"neeto-ui-w-full\"\n tooltip={{ formatter: null }}\n {...{\n defaultValue,\n max,\n min,\n onChange,\n value,\n ...otherProps,\n id,\n }}\n />\n {!!error && (\n <p\n className=\"neeto-ui-input__error\"\n data-cy={`${hyphenize(label)}-input-error`}\n id={errorId}\n >\n {error}\n </p>\n )}\n {helpText && (\n <p\n className=\"neeto-ui-input__help-text\"\n data-cy={`${hyphenize(label)}-input-help`}\n id={helpTextId}\n >\n {helpText}\n </p>\n )}\n </div>\n </ConfigProvider>\n );\n};\n\nSlider.propTypes = {\n /**\n * To specify the minimum value the slider can slide to.\n */\n min: PropTypes.number,\n /**\n * To specify the maximum value the slider can slide to.\n */\n max: PropTypes.number,\n /**\n * Callback function that is fired when the user changes the slider's value.\n */\n onChange: PropTypes.func,\n /**\n * To specify the value of slider. When `range` is false, use number, otherwise, use [number, number]\n */\n value: PropTypes.oneOfType([PropTypes.number, PropTypes.array]),\n /**\n * To specify the default value of slider. When `range` is false, use number, otherwise, use [number, number]\n */\n defaultValue: PropTypes.oneOfType([PropTypes.number, PropTypes.array]),\n /**\n * To specify the text to be displayed above the Slider.\n */\n label: PropTypes.string,\n /**\n * To specify the label props to be passed to the Label component.\n */\n labelProps: PropTypes.object,\n /**\n * To specify the error message to be displayed in the Slider component.\n */\n error: PropTypes.string,\n /**\n * To specify whether the Slider is required or not.\n */\n required: PropTypes.bool,\n /**\n * To specify the help text that appears below the Slider component.\n */\n helpText: PropTypes.string,\n};\n\nexport default Slider;\n"],"names":["Slider","_ref","_ref$min","min","_ref$max","max","_ref$defaultValue","defaultValue","_ref$onChange","onChange","noop","_ref$value","value","undefined","label","_ref$required","required","_ref$labelProps","labelProps","error","helpText","otherProps","_objectWithoutProperties","_excluded","id","useId","errorId","concat","helpTextId","_useTranslation","useTranslation","i18n","_jsx","_ConfigProvider","direction","getContentDir","locale","ANTD_LOCALE","language","theme","token","_objectSpread","ANT_DESIGN_GLOBAL_TOKEN_OVERRIDES","components","dotActiveBorderColor","dotBorderColor","handleActiveColor","handleColor","railBg","railHoverBg","trackBg","trackBgDisabled","trackHoverBg","colorFillContentHover","children","_jsxs","className","Label","hyphenize","htmlFor","_Slider","tooltip","formatter"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgBA,IAAMA,MAAM,GAAG,SAATA,MAAMA,CAAAC,IAAA,EAYN;AAAA,EAAA,IAAAC,QAAA,GAAAD,IAAA,CAXJE,GAAG;AAAHA,IAAAA,GAAG,GAAAD,QAAA,KAAA,MAAA,GAAG,CAAC,GAAAA,QAAA;IAAAE,QAAA,GAAAH,IAAA,CACPI,GAAG;AAAHA,IAAAA,GAAG,GAAAD,QAAA,KAAA,MAAA,GAAG,GAAG,GAAAA,QAAA;IAAAE,iBAAA,GAAAL,IAAA,CACTM,YAAY;AAAZA,IAAAA,YAAY,GAAAD,iBAAA,KAAA,MAAA,GAAG,CAAC,GAAAA,iBAAA;IAAAE,aAAA,GAAAP,IAAA,CAChBQ,QAAQ;AAARA,IAAAA,QAAQ,GAAAD,aAAA,KAAA,MAAA,GAAGE,IAAI,G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AEL,CAAC,EACD,CAAC,CAACL,KAAK,iBACNa,GAAA,CAAA,GAAA,EAAA;AACEwB,QAAAA,SAAS,EAAC,uBAAuB;AACjC,QAAA,SAAA,EAAA,EAAA,CAAA7B,MAAA,CAAY+B,SAAS,CAAC5C,KAAK,CAAC,EAAA,cAAA,CAAe;AAC3CU,QAAAA,EAAE,EAAEE,OAAQ;AAAA4B,QAAAA,QAAA,EAEXnC;AAAK,OACL,CACJ,EACAC,QAAQ,iBACPY,GAAA,CAAA,GAAA,EAAA;AACEwB,QAAAA,SAAS,EAAC,2BAA2B;AACrC,QAAA,SAAA,EAAA,EAAA,CAAA7B,MAAA,CAAY+B,SAAS,CAAC5C,KAAK,CAAC,EAAA,aAAA,CAAc;AAC1CU,QAAAA,EAAE,EAAEI,UAAW;AAAA0B,QAAAA,QAAA,EAEdlC;AAAQ,OACR,CACJ;KACE;AAAC,GACQ,CAAC;AAErB;;;;"}
|
package/dist/Switch.js
CHANGED
|
@@ -9,7 +9,7 @@ import '@babel/runtime/helpers/slicedToArray';
|
|
|
9
9
|
import 'react-router-dom';
|
|
10
10
|
import '@bigbinary/neeto-hotkeys';
|
|
11
11
|
import './overlayManager.js';
|
|
12
|
-
import { h as hyphenize, n as noop } from './index-
|
|
12
|
+
import { h as hyphenize, n as noop } from './index-DmicnBCQ.js';
|
|
13
13
|
import 'qs';
|
|
14
14
|
import Label from './Label.js';
|
|
15
15
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
@@ -64,7 +64,6 @@ var Switch = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
64
64
|
className: "neeto-ui-switch__container",
|
|
65
65
|
children: [/*#__PURE__*/jsxs("label", {
|
|
66
66
|
"data-cy": "nui-switch-item",
|
|
67
|
-
tabIndex: 0,
|
|
68
67
|
className: classnames("neeto-ui-switch__item", {
|
|
69
68
|
"neeto-ui-switch__item--checked": !!checked,
|
|
70
69
|
"neeto-ui-switch__item--disabled": disabled
|
|
@@ -72,6 +71,9 @@ var Switch = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
72
71
|
children: [/*#__PURE__*/jsx("input", _objectSpread({
|
|
73
72
|
id: id,
|
|
74
73
|
onChange: onChange,
|
|
74
|
+
"aria-describedby": error ? errorId : undefined,
|
|
75
|
+
"aria-invalid": !!error,
|
|
76
|
+
"aria-required": required,
|
|
75
77
|
type: "checkbox"
|
|
76
78
|
}, otherProps)), /*#__PURE__*/jsx("span", {
|
|
77
79
|
"aria-hidden": "true",
|
package/dist/Switch.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Switch.js","sources":["../src/components/Switch.jsx"],"sourcesContent":["import React, { forwardRef } from \"react\";\n\nimport classnames from \"classnames\";\nimport { Check, Close } from \"neetoicons\";\nimport PropTypes from \"prop-types\";\n\nimport { useId } from \"hooks\";\nimport { hyphenize, noop } from \"utils\";\n\nimport Label from \"./Label\";\n\nconst Switch = forwardRef(\n (\n {\n label = \"\",\n required = false,\n className = \"\",\n error = \"\",\n onChange = noop,\n labelProps,\n children,\n ...otherProps\n },\n ref\n ) => {\n const id = useId(otherProps.id);\n const errorId = `error_${id}`;\n const { checked, disabled } = otherProps;\n const renderLabel = label || children;\n\n return (\n <div\n {...{ ref }}\n className={classnames([\"neeto-ui-switch__wrapper\", className])}\n data-cy=\"nui-switch-wrapper\"\n >\n <div className=\"neeto-ui-switch__container\">\n <label\n data-cy=\"nui-switch-item\"\n
|
|
1
|
+
{"version":3,"file":"Switch.js","sources":["../src/components/Switch.jsx"],"sourcesContent":["import React, { forwardRef } from \"react\";\n\nimport classnames from \"classnames\";\nimport { Check, Close } from \"neetoicons\";\nimport PropTypes from \"prop-types\";\n\nimport { useId } from \"hooks\";\nimport { hyphenize, noop } from \"utils\";\n\nimport Label from \"./Label\";\n\nconst Switch = forwardRef(\n (\n {\n label = \"\",\n required = false,\n className = \"\",\n error = \"\",\n onChange = noop,\n labelProps,\n children,\n ...otherProps\n },\n ref\n ) => {\n const id = useId(otherProps.id);\n const errorId = `error_${id}`;\n const { checked, disabled } = otherProps;\n const renderLabel = label || children;\n\n return (\n <div\n {...{ ref }}\n className={classnames([\"neeto-ui-switch__wrapper\", className])}\n data-cy=\"nui-switch-wrapper\"\n >\n <div className=\"neeto-ui-switch__container\">\n <label\n data-cy=\"nui-switch-item\"\n className={classnames(\"neeto-ui-switch__item\", {\n \"neeto-ui-switch__item--checked\": !!checked,\n \"neeto-ui-switch__item--disabled\": disabled,\n })}\n >\n <input\n {...{ id, onChange }}\n aria-describedby={error ? errorId : undefined}\n aria-invalid={!!error}\n aria-required={required}\n type=\"checkbox\"\n {...otherProps}\n />\n <span\n aria-hidden=\"true\"\n data-cy={`${hyphenize(renderLabel)}-switch`}\n className={classnames(\"neeto-ui-switch\", {\n \"neeto-ui-switch--checked\": !!checked,\n })}\n >\n {checked ? (\n <Check\n data-cy=\"check-icon\"\n data-testid=\"check-icon\"\n size=\"12\"\n strokeWidth={4}\n />\n ) : (\n <Close\n data-cy=\"close-icon\"\n data-testid=\"close-icon\"\n size=\"12\"\n strokeWidth={3}\n />\n )}\n </span>\n </label>\n {renderLabel && (\n <Label\n {...{ required }}\n htmlFor={id}\n {...labelProps}\n data-cy={`${hyphenize(renderLabel).replace(\n /[^a-z0-9-]/gi,\n \"\"\n )}-switch-label`}\n >\n {renderLabel}\n </Label>\n )}\n </div>\n {!!error && (\n <p\n className=\"neeto-ui-input__error\"\n data-cy={`${hyphenize(renderLabel)}-switch-error`}\n id={errorId}\n >\n {error}\n </p>\n )}\n </div>\n );\n }\n);\n\nSwitch.displayName = \"Switch\";\n\nSwitch.propTypes = {\n /**\n * Text to be displayed above the component\n */\n label: PropTypes.string,\n /**\n * To specify the label props to be passed to the Label component.\n */\n labelProps: PropTypes.object,\n /**\n * To specify whether to show the required asterisk.\n */\n required: PropTypes.bool,\n /**\n * Provide external classnames to spinner component.\n */\n className: PropTypes.string,\n /**\n * To specify the error message to be shown.\n */\n error: PropTypes.string,\n /**\n * Checks whether the Switch is checked or not\n */\n checked: PropTypes.bool,\n /**\n * To disable the component\n */\n disabled: PropTypes.bool,\n /**\n * To specify the children label to be rendered inside the Checkbox.\n */\n children: PropTypes.string,\n};\n\nexport default Switch;\n"],"names":["Switch","forwardRef","_ref","ref","_ref$label","label","_ref$required","required","_ref$className","className","_ref$error","error","_ref$onChange","onChange","noop","labelProps","children","otherProps","_objectWithoutProperties","_excluded","id","useId","errorId","concat","checked","disabled","renderLabel","_jsxs","classnames","_jsx","_objectSpread","undefined","type","hyphenize","Check","size","strokeWidth","Close","Label","htmlFor","replace","displayName"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAWA,IAAMA,MAAM,gBAAGC,UAAU,CACvB,UAAAC,IAAA,EAWEC,GAAG,EACA;AAAA,EAAA,IAAAC,UAAA,GAAAF,IAAA,CAVDG,KAAK;AAALA,IAAAA,KAAK,GAAAD,UAAA,KAAA,MAAA,GAAG,EAAE,GAAAA,UAAA;IAAAE,aAAA,GAAAJ,IAAA,CACVK,QAAQ;AAARA,IAAAA,QAAQ,GAAAD,aAAA,KAAA,MAAA,GAAG,KAAK,GAAAA,aAAA;IAAAE,cAAA,GAAAN,IAAA,CAChBO,SAAS;AAATA,IAAAA,SAAS,GAAAD,cAAA,KAAA,MAAA,GAAG,EAAE,GAAAA,cAAA;IAAAE,UAAA,GAAAR,IAAA,CACdS,KAAK;AAALA,IAAAA,KAAK,GAAAD,UAAA,KAAA,MAAA,GAAG,EAAE,GAAAA,UAAA;IAAAE,aAAA,GAAAV,IAAA,CACVW,QAAQ;AAARA,IAAAA,QAAQ,GAAAD,aAAA,KAAA,MAAA,GAAGE,IAAI,GAAAF,aAAA;IACfG,UAAU,GAAAb,IAAA,CAAVa,UAAU;IACVC,QAAQ,GAAAd,IAAA,CAARc,QAAQ;AACLC,IAAAA,UAAU,GAAAC,wBAAA,CAAAhB,IAAA,EAAAiB,SAAA,CAAA;AAIf,EAAA,IAAMC,EAAE,GAAG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package/dist/Tab.js
CHANGED
|
@@ -32,12 +32,15 @@ var Item = function Item(_ref) {
|
|
|
32
32
|
type: "button"
|
|
33
33
|
};
|
|
34
34
|
return /*#__PURE__*/jsxs(Parent, _objectSpread$1(_objectSpread$1({
|
|
35
|
+
"aria-selected": active,
|
|
35
36
|
"data-cy": "tab-item",
|
|
37
|
+
role: "tab",
|
|
36
38
|
className: classnames(["neeto-ui-tab neeto-ui-flex neeto-ui-items-center neeto-ui-justify-center neeto-ui-select-none", className], {
|
|
37
39
|
active: active
|
|
38
|
-
})
|
|
40
|
+
})
|
|
41
|
+
}, _objectSpread$1(_objectSpread$1({
|
|
39
42
|
onClick: onClick
|
|
40
|
-
},
|
|
43
|
+
}, otherProps), buttonAttributes)), {}, {
|
|
41
44
|
children: [icon && /*#__PURE__*/jsx(Icon, {
|
|
42
45
|
className: "neeto-ui-tab__icon"
|
|
43
46
|
}), children]
|
|
@@ -63,6 +66,7 @@ var Tab = function Tab(_ref) {
|
|
|
63
66
|
otherProps = _objectWithoutProperties(_ref, _excluded);
|
|
64
67
|
return /*#__PURE__*/jsx("div", _objectSpread(_objectSpread({
|
|
65
68
|
"data-cy": "tab-container",
|
|
69
|
+
role: "tablist",
|
|
66
70
|
className: classnames({
|
|
67
71
|
"neeto-ui-tab__wrapper neeto-ui-flex": true,
|
|
68
72
|
"neeto-ui-tab__wrapper--size-large": size === SIZES.large,
|
package/dist/Tab.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tab.js","sources":["../src/components/Tab/Item.jsx","../src/components/Tab/index.jsx"],"sourcesContent":["import React from \"react\";\n\nimport classnames from \"classnames\";\nimport PropTypes from \"prop-types\";\nimport { NavLink } from \"react-router-dom\";\n\nconst Item = ({\n active,\n className = \"\",\n children,\n icon = null,\n onClick = () => {},\n activeClassName = \"\",\n ...otherProps\n}) => {\n const Icon =\n typeof icon === \"string\"\n ? () => (\n <i className={icon} data-cy=\"tab-item-icon\" data-testid=\"tab-icon\" />\n )\n : icon || React.Fragment;\n\n const Parent = activeClassName ? NavLink : \"button\";\n const buttonAttributes = activeClassName ? {} : { type: \"button\" };\n\n return (\n <Parent\n data-cy=\"tab-item\"\n className={classnames(\n [\n \"neeto-ui-tab neeto-ui-flex neeto-ui-items-center neeto-ui-justify-center neeto-ui-select-none\",\n className,\n ],\n { active }\n )}\n
|
|
1
|
+
{"version":3,"file":"Tab.js","sources":["../src/components/Tab/Item.jsx","../src/components/Tab/index.jsx"],"sourcesContent":["import React from \"react\";\n\nimport classnames from \"classnames\";\nimport PropTypes from \"prop-types\";\nimport { NavLink } from \"react-router-dom\";\n\nconst Item = ({\n active,\n className = \"\",\n children,\n icon = null,\n onClick = () => {},\n activeClassName = \"\",\n ...otherProps\n}) => {\n const Icon =\n typeof icon === \"string\"\n ? () => (\n <i className={icon} data-cy=\"tab-item-icon\" data-testid=\"tab-icon\" />\n )\n : icon || React.Fragment;\n\n const Parent = activeClassName ? NavLink : \"button\";\n const buttonAttributes = activeClassName ? {} : { type: \"button\" };\n\n return (\n <Parent\n aria-selected={active}\n data-cy=\"tab-item\"\n role=\"tab\"\n className={classnames(\n [\n \"neeto-ui-tab neeto-ui-flex neeto-ui-items-center neeto-ui-justify-center neeto-ui-select-none\",\n className,\n ],\n { active }\n )}\n {...{ onClick, ...otherProps, ...buttonAttributes }}\n >\n {icon && <Icon className=\"neeto-ui-tab__icon\" />}\n {children}\n </Parent>\n );\n};\n\nItem.displayName = \"Tab.Item\";\n\nItem.propTypes = {\n /**\n * To set the active Tab\n */\n active: PropTypes.bool,\n /**\n * Extra classes can be provided to the TabItem\n */\n className: PropTypes.string,\n /**\n * To add content inside TabItem\n */\n children: PropTypes.node,\n /**\n * To add icons to TabItem\n */\n icon: PropTypes.oneOfType([PropTypes.string, PropTypes.elementType]),\n /**\n * Callback to be triggered when user clicks on the TabItem\n */\n onClick: PropTypes.func,\n activeClassName: PropTypes.string,\n};\n\nexport default Item;\n","import React from \"react\";\n\nimport classnames from \"classnames\";\nimport PropTypes from \"prop-types\";\n\nimport Item from \"./Item\";\n\nconst SIZES = { large: \"large\", small: \"small\" };\n\nconst Tab = ({\n size = SIZES.small,\n noUnderline = false,\n children,\n className = \"\",\n ...otherProps\n}) => (\n <div\n data-cy=\"tab-container\"\n role=\"tablist\"\n className={classnames(\n {\n \"neeto-ui-tab__wrapper neeto-ui-flex\": true,\n \"neeto-ui-tab__wrapper--size-large\": size === SIZES.large,\n \"neeto-ui-tab__wrapper--size-small\": size === SIZES.small,\n \"neeto-ui-tab__wrapper--underline-none\": noUnderline,\n },\n [className]\n )}\n {...otherProps}\n >\n {children}\n </div>\n);\n\nTab.propTypes = {\n /**\n * To hide the underline\n */\n noUnderline: PropTypes.bool,\n /**\n * Set the size of the Tabs.\n */\n size: PropTypes.oneOf(Object.values(SIZES)),\n /**\n * To add content inside the Tab\n */\n children: PropTypes.node,\n /**\n * Extra classes can be provided to the Tab\n */\n className: PropTypes.string,\n};\n\nTab.Item = Item;\n\nexport default Tab;\n"],"names":["Item","_ref","active","_ref$className","className","children","_ref$icon","icon","_ref$onClick","onClick","_ref$activeClassName","activeClassName","otherProps","_objectWithoutProperties","_excluded","Icon","_jsx","React","Fragment","Parent","NavLink","buttonAttributes","type","_jsxs","_objectSpread","role","classnames","displayName","SIZES","large","small","Tab","_ref$size","size","_ref$noUnderline","noUnderline"],"mappings":";;;;;;;;;;AAMA,IAAMA,IAAI,GAAG,SAAPA,IAAIA,CAAAC,IAAA,EAQJ;AAAA,EAAA,IAPJC,MAAM,GAAAD,IAAA,CAANC,MAAM;IAAAC,cAAA,GAAAF,IAAA,CACNG,SAAS;AAATA,IAAAA,SAAS,GAAAD,cAAA,KAAA,MAAA,GAAG,EAAE,GAAAA,cAAA;IACdE,QAAQ,GAAAJ,IAAA,CAARI,QAAQ;IAAAC,SAAA,GAAAL,IAAA,CACRM,IAAI;AAAJA,IAAAA,IAAI,GAAAD,SAAA,KAAA,MAAA,GAAG,IAAI,GAAAA,SAAA;IA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sBR0B,GAAG,CAAC/B,IAAI,GAAGA,IAAI;;;;"}
|
package/dist/Table.js
CHANGED
|
@@ -16,13 +16,13 @@ import { useHistory } from 'react-router-dom';
|
|
|
16
16
|
import { ANTD_LOCALE } from './constants.js';
|
|
17
17
|
import '@bigbinary/neeto-hotkeys';
|
|
18
18
|
import './overlayManager.js';
|
|
19
|
-
import { a as getLocale, b as getFromLocalStorage, r as removeFromLocalStorage, s as setToLocalStorage, h as hyphenize, g as getContentDir, c as buildUrl, n as noop$1, A as ANT_DESIGN_GLOBAL_TOKEN_OVERRIDES } from './index-
|
|
19
|
+
import { a as getLocale, b as getFromLocalStorage, r as removeFromLocalStorage, s as setToLocalStorage, h as hyphenize, g as getContentDir, c as buildUrl, n as noop$1, A as ANT_DESIGN_GLOBAL_TOKEN_OVERRIDES } from './index-DmicnBCQ.js';
|
|
20
20
|
import { u as useQueryParams } from './useQueryParams-BKsf4FPY.js';
|
|
21
21
|
import Button from './Button.js';
|
|
22
22
|
import Callout from './Callout.js';
|
|
23
23
|
import Typography from './Typography.js';
|
|
24
24
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
25
|
-
import { H as HeaderCellMenu, a as TABLE_SORT_ORDERS, b as TABLE_PAGINATION_HEIGHT, c as TABLE_ROW_HEIGHT, C as COLUMN_FIXED_VALUES, S as SELECT_ALL_ROWS_CALLOUT_MOBILE_HEIGHT, d as SELECT_ALL_ROWS_CALLOUT_DESKTOP_HEIGHT, U as URL_SORT_ORDERS, u as useRestoreScrollPosition, e as TABLE_DEFAULT_HEADER_HEIGHT, f as TableInfoPane } from './index-
|
|
25
|
+
import { H as HeaderCellMenu, a as TABLE_SORT_ORDERS, b as TABLE_PAGINATION_HEIGHT, c as TABLE_ROW_HEIGHT, C as COLUMN_FIXED_VALUES, S as SELECT_ALL_ROWS_CALLOUT_MOBILE_HEIGHT, d as SELECT_ALL_ROWS_CALLOUT_DESKTOP_HEIGHT, U as URL_SORT_ORDERS, u as useRestoreScrollPosition, e as TABLE_DEFAULT_HEADER_HEIGHT, f as TableInfoPane } from './index-Ui8-igXs.js';
|
|
26
26
|
import { Resizable as Resizable$1 } from 'react-resizable';
|
|
27
27
|
import '@babel/runtime/helpers/classCallCheck';
|
|
28
28
|
import '@babel/runtime/helpers/createClass';
|
|
@@ -58,7 +58,7 @@ import './Dropdown.js';
|
|
|
58
58
|
import '@bigbinary/neeto-icons/Down';
|
|
59
59
|
import './Modal.js';
|
|
60
60
|
import '@bigbinary/neeto-icons/Close';
|
|
61
|
-
import './useOverlayManager-
|
|
61
|
+
import './useOverlayManager-DGTN4LZe.js';
|
|
62
62
|
import '@babel/runtime/helpers/esm/extends';
|
|
63
63
|
import '@babel/runtime/helpers/esm/objectWithoutPropertiesLoose';
|
|
64
64
|
import '@babel/runtime/helpers/esm/inheritsLoose';
|
|
@@ -72,7 +72,7 @@ import '@babel/runtime/helpers/asyncToGenerator';
|
|
|
72
72
|
import '@babel/runtime/regenerator';
|
|
73
73
|
import '@bigbinary/neeto-icons/ColorPicker';
|
|
74
74
|
import 'react-colorful';
|
|
75
|
-
import './useRecentlyUsedColors-
|
|
75
|
+
import './useRecentlyUsedColors-zQ7y37Sk.js';
|
|
76
76
|
import 'antd/lib/date-picker';
|
|
77
77
|
import '@bigbinary/neeto-icons/Calendar';
|
|
78
78
|
import './Input.js';
|
|
@@ -97,7 +97,7 @@ import '@babel/runtime/helpers/taggedTemplateLiteral';
|
|
|
97
97
|
import '@babel/runtime/helpers/typeof';
|
|
98
98
|
import '@babel/runtime/helpers/toArray';
|
|
99
99
|
import './Tag.js';
|
|
100
|
-
import './Textarea-
|
|
100
|
+
import './Textarea-CEwODEM3.js';
|
|
101
101
|
import './Pane.js';
|
|
102
102
|
import './Radio.js';
|
|
103
103
|
import 'antd/lib/slider';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
2
|
+
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
2
3
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
3
4
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
4
5
|
import { useRef, useEffect, forwardRef, useState } from 'react';
|
|
@@ -7,7 +8,7 @@ import { u as useId } from './useId-Jj9hXm-g.js';
|
|
|
7
8
|
import 'react-router-dom';
|
|
8
9
|
import '@bigbinary/neeto-hotkeys';
|
|
9
10
|
import './overlayManager.js';
|
|
10
|
-
import { h as hyphenize } from './index-
|
|
11
|
+
import { h as hyphenize } from './index-DmicnBCQ.js';
|
|
11
12
|
import 'qs';
|
|
12
13
|
import Label from './Label.js';
|
|
13
14
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
@@ -83,6 +84,7 @@ var Textarea = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
83
84
|
var errorId = "error_".concat(id);
|
|
84
85
|
var helpTextId = "helpText_".concat(id);
|
|
85
86
|
var textareaRef = useSyncedRef(ref);
|
|
87
|
+
var describedByIds = [].concat(_toConsumableArray(error ? [errorId] : []), _toConsumableArray(helpText ? [helpTextId] : [])).join(" ");
|
|
86
88
|
var valueLength = (value === null || value === void 0 ? void 0 : value.toString().length) || 0;
|
|
87
89
|
var isCharacterLimitVisible = valueLength >= maxLength * 0.85;
|
|
88
90
|
var maxLengthError = unlimitedChars && valueLength > maxLength;
|
|
@@ -144,7 +146,11 @@ var Textarea = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
144
146
|
"data-cy": "".concat(hyphenize(label), "-text-input"),
|
|
145
147
|
ref: textareaRef,
|
|
146
148
|
rows: ROWS[size]
|
|
147
|
-
}, _objectSpread(_objectSpread(_objectSpread({
|
|
149
|
+
}, _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, describedByIds && {
|
|
150
|
+
"aria-describedby": describedByIds
|
|
151
|
+
}), {}, {
|
|
152
|
+
"aria-invalid": !!error,
|
|
153
|
+
"aria-required": required,
|
|
148
154
|
disabled: disabled
|
|
149
155
|
}, isMaxLengthPresent && !unlimitedChars && {
|
|
150
156
|
maxLength: maxLength
|
|
@@ -172,4 +178,4 @@ var Textarea = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
172
178
|
Textarea.displayName = "Textarea";
|
|
173
179
|
|
|
174
180
|
export { Textarea as T, useSyncedRef as u };
|
|
175
|
-
//# sourceMappingURL=Textarea-
|
|
181
|
+
//# sourceMappingURL=Textarea-CEwODEM3.js.map
|