@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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Textarea-CEwODEM3.js","sources":["../src/hooks/useSyncedRef.js","../src/components/Textarea.jsx"],"sourcesContent":["import { useEffect, useRef } from \"react\";\n\nconst useSyncedRef = ref => {\n const innerRef = useRef();\n\n useEffect(() => {\n if (!ref) return;\n\n if (typeof ref === \"function\") {\n ref(innerRef.current);\n } else {\n ref.current = innerRef.current;\n }\n });\n\n return innerRef;\n};\n\nexport default useSyncedRef;\n","import React, { useState, useEffect, forwardRef } from \"react\";\n\nimport classnames from \"classnames\";\nimport PropTypes from \"prop-types\";\n\nimport { useSyncedRef, useId } from \"hooks\";\nimport { hyphenize } from \"utils\";\n\nimport Label from \"./Label\";\n\nconst SIZES = { small: \"small\", medium: \"medium\", large: \"large\" };\n\nconst ROWS = { small: 1, medium: 3, large: 4 };\n\nconst RESIZE = { vertical: \"vertical\", none: \"none\" };\n\nconst Textarea = forwardRef(\n (\n {\n size = SIZES.medium,\n resize = RESIZE.vertical,\n suffix = null,\n prefix = null,\n disabled = false,\n required = false,\n nakedTextarea = false,\n helpText = \"\",\n error = \"\",\n label = \"\",\n className = \"\",\n maxLength,\n unlimitedChars = false,\n labelProps,\n onBlur,\n disableTrimOnBlur = false,\n ...otherProps\n },\n ref\n ) => {\n const [valueInternal, setValueInternal] = useState(\"\");\n\n const value = otherProps.value ?? valueInternal ?? \"\";\n\n const id = useId(otherProps.id);\n const errorId = `error_${id}`;\n const helpTextId = `helpText_${id}`;\n const textareaRef = useSyncedRef(ref);\n\n const describedByIds = [\n ...(error ? [errorId] : []),\n ...(helpText ? [helpTextId] : []),\n ].join(\" \");\n\n const valueLength = value?.toString().length || 0;\n const isCharacterLimitVisible = valueLength >= maxLength * 0.85;\n const maxLengthError = unlimitedChars && valueLength > maxLength;\n\n const onChangeInternal = e => setValueInternal(e.target.value);\n const onChange = otherProps.onChange ?? onChangeInternal;\n const isMaxLengthPresent = !!maxLength || maxLength === 0;\n\n useEffect(() => {\n textareaRef.current.style.minHeight = \"22px\";\n textareaRef.current.style.height = \"auto\";\n const scrollHeight = textareaRef.current.scrollHeight;\n textareaRef.current.style.height = `${scrollHeight + 1}px`;\n }, [value]);\n\n const handleTrimmedChangeOnBlur = e => {\n if (disableTrimOnBlur || typeof value !== \"string\") return;\n\n const trimmedValue = value.trim();\n if (value === trimmedValue) return;\n\n e.target.value = trimmedValue;\n onChange(e);\n };\n\n const handleOnBlur = e => {\n handleTrimmedChangeOnBlur(e);\n onBlur?.(e);\n };\n\n return (\n <div\n className={classnames([\"neeto-ui-input__wrapper\", className])}\n data-cy=\"nui-textarea-wrapper\"\n >\n <div className=\"neeto-ui-input__label-wrapper\">\n {label && (\n <Label\n {...{ required }}\n data-cy={`${hyphenize(label)}-label`}\n htmlFor={id}\n {...labelProps}\n >\n {label}\n </Label>\n )}\n {isCharacterLimitVisible && (\n <p\n className={classnames(\"neeto-ui-input__max-length\", {\n \"neeto-ui-input__max-length--error\": maxLengthError,\n })}\n >\n {valueLength}/{maxLength}\n </p>\n )}\n </div>\n <div\n data-cy={`${hyphenize(label)}-text-input-label`}\n className={classnames(\"neeto-ui-input\", \"neeto-ui-input--textarea\", {\n \"neeto-ui-input--error\": !!error,\n \"neeto-ui-input--disabled\": !!disabled,\n \"neeto-ui-input--naked\": !!nakedTextarea,\n \"neeto-ui-input--small\": size === SIZES.small,\n \"neeto-ui-input--medium\": size === SIZES.medium,\n \"neeto-ui-input--large\": size === SIZES.large,\n \"neeto-ui-input--resize--vertical\": resize === RESIZE.vertical,\n \"neeto-ui-input--resize--none\": resize === RESIZE.none,\n })}\n >\n {prefix && <div className=\"neeto-ui-input__prefix\">{prefix}</div>}\n <textarea\n data-cy={`${hyphenize(label)}-text-input`}\n ref={textareaRef}\n rows={ROWS[size]}\n {...{\n ...(describedByIds && { \"aria-describedby\": describedByIds }),\n \"aria-invalid\": !!error,\n \"aria-required\": required,\n disabled,\n ...(isMaxLengthPresent && !unlimitedChars && { maxLength }),\n ...otherProps,\n onChange,\n value,\n }}\n onBlur={handleOnBlur}\n />\n {suffix && <div className=\"neeto-ui-input__suffix\">{suffix}</div>}\n </div>\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 className=\"neeto-ui-input__help-text\" id={helpTextId}>\n {helpText}\n </p>\n )}\n </div>\n );\n }\n);\n\nTextarea.displayName = \"Textarea\";\n\nTextarea.propTypes = {\n /**\n * To specify the row height of the Textarea.\n */\n rows: PropTypes.number,\n /**\n * To specify the size of Textarea.\n */\n size: PropTypes.oneOf(Object.values(SIZES)),\n /**\n * To specify the label shown above the Textarea.\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 provide the value of the Textarea.\n */\n value: PropTypes.string,\n /**\n * To provide the error message shown below the Textarea.\n */\n error: PropTypes.string,\n /**\n * To provide the placeholder text for the Textarea.\n */\n placeholder: PropTypes.string,\n /**\n * To specify whether the Textarea is required.\n */\n required: PropTypes.bool,\n /**\n * To specify whether the Textarea is disabled.\n */\n disabled: PropTypes.bool,\n /**\n * To provide additional classnames to the Textarea container.\n */\n className: PropTypes.string,\n /**\n * The resize property sets whether the Textarea is resizable.\n */\n resize: PropTypes.oneOf(Object.values(RESIZE)),\n /**\n * To specify the text that appears below the Textarea.\n */\n helpText: PropTypes.string,\n /**\n * To create a Textarea without any borders.\n */\n nakedTextarea: PropTypes.bool,\n /**\n * To specify a maximum character limit to the Textarea. Charater limit is visible only if the Textarea value is greater than or equal to 85% of the maximum character limit.\n */\n maxLength: PropTypes.number,\n /**\n * To be used along with maxLength prop. When set to true the character limit will not be enforced and character count will be shown in error state if the character limit is exceeded.\n */\n unlimitedChars: PropTypes.bool,\n /**\n * To specify the content to be added at the end of the Textarea.\n */\n suffix: PropTypes.node,\n /**\n * To specify the content to be added at the beginning of the Textarea.\n */\n prefix: PropTypes.node,\n /**\n * To disable leading and trailing white spaces onBlur.\n */\n disableTrimOnBlur: PropTypes.bool,\n};\n\nexport default Textarea;\n"],"names":["useSyncedRef","ref","innerRef","useRef","useEffect","current","SIZES","small","medium","large","ROWS","RESIZE","vertical","none","Textarea","forwardRef","_ref","_ref2","_otherProps$value","_otherProps$onChange","_ref$size","size","_ref$resize","resize","_ref$suffix","suffix","_ref$prefix","prefix","_ref$disabled","disabled","_ref$required","required","_ref$nakedTextarea","nakedTextarea","_ref$helpText","helpText","_ref$error","error","_ref$label","label","_ref$className","className","maxLength","_ref$unlimitedChars","unlimitedChars","labelProps","onBlur","_ref$disableTrimOnBlu","disableTrimOnBlur","otherProps","_objectWithoutProperties","_excluded","_useState","useState","_useState2","_slicedToArray","valueInternal","setValueInternal","value","id","useId","errorId","concat","helpTextId","textareaRef","describedByIds","_toConsumableArray","join","valueLength","toString","length","isCharacterLimitVisible","maxLengthError","onChangeInternal","e","target","onChange","isMaxLengthPresent","style","minHeight","height","scrollHeight","handleTrimmedChangeOnBlur","trimmedValue","trim","handleOnBlur","_jsxs","classnames","children","_jsx","Label","_objectSpread","hyphenize","htmlFor","rows","displayName"],"mappings":";;;;;;;;;;;;;;;AAEA,IAAMA,YAAY,GAAG,SAAfA,YAAYA,CAAGC,GAAG,EAAI;AAC1B,EAAA,IAAMC,QAAQ,GAAGC,MAAM,EAAE;AAEzBC,EAAAA,SAAS,CAAC,YAAM;IACd,IAAI,CAACH,GAAG,EAAE;AAEV,IAAA,IAAI,OAAOA,GAAG,KAAK,UAAU,EAAE;AAC7BA,MAAAA,GAAG,CAACC,QAAQ,CAACG,OAAO,CAAC;AACvB,IAAA,CAAC,MAAM;AACLJ,MAAAA,GAAG,CAACI,OAAO,GAAGH,QAAQ,CAACG,OAAO;AAChC,IAAA;AACF,EAAA,CAAC,CAAC;AAEF,EAAA,OAAOH,QAAQ;AACjB;;;;;ACNA,IAAMI,KAAK,GAAG;AAAEC,EAAAA,KAAK,EAAE,OAAO;AAAEC,EAAAA,MAAM,EAAE,QAAQ;AAAEC,EAAAA,KAAK,EAAE;AAAQ,CAAC;AAElE,IAAMC,IAAI,GAAG;AAAEH,EAAAA,KAAK,EAAE,CAAC;AAAEC,EAAAA,MAAM,EAAE,CAAC;AAAEC,EAAAA,KAAK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AAA;AAAGhD,MAAAA,SAAS,EAAC,2BAA2B;AAACkB,MAAAA,EAAE,EAAEI,UAAW;AAAAyB,MAAAA,QAAA,EACrDrD;AAAQ,KACR,CACJ;AAAA,GACE,CAAC;AAEV,CACF;AAEArB,QAAQ,CAACiF,WAAW,GAAG,UAAU;;;;"}
|
package/dist/Textarea.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import '@babel/runtime/helpers/defineProperty';
|
|
2
|
+
import '@babel/runtime/helpers/toConsumableArray';
|
|
2
3
|
import '@babel/runtime/helpers/slicedToArray';
|
|
3
4
|
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
4
5
|
import 'react';
|
|
@@ -7,9 +8,9 @@ import './useId-Jj9hXm-g.js';
|
|
|
7
8
|
import 'react-router-dom';
|
|
8
9
|
import '@bigbinary/neeto-hotkeys';
|
|
9
10
|
import './overlayManager.js';
|
|
10
|
-
import './index-
|
|
11
|
+
import './index-DmicnBCQ.js';
|
|
11
12
|
import 'qs';
|
|
12
|
-
export { T as default } from './Textarea-
|
|
13
|
+
export { T as default } from './Textarea-CEwODEM3.js';
|
|
13
14
|
import './Label.js';
|
|
14
15
|
import 'react/jsx-runtime';
|
|
15
16
|
import '@babel/runtime/helpers/classCallCheck';
|
|
@@ -17,7 +18,6 @@ import '@babel/runtime/helpers/createClass';
|
|
|
17
18
|
import '@bigbinary/neeto-cist';
|
|
18
19
|
import 'ramda';
|
|
19
20
|
import './en-DVlE9xuu.js';
|
|
20
|
-
import '@babel/runtime/helpers/toConsumableArray';
|
|
21
21
|
import 'dayjs';
|
|
22
22
|
import 'dayjs/plugin/localeData';
|
|
23
23
|
import 'dayjs/plugin/utc';
|
package/dist/TimePicker.js
CHANGED
|
@@ -23,11 +23,11 @@ import '@babel/runtime/helpers/asyncToGenerator';
|
|
|
23
23
|
import '@babel/runtime/regenerator';
|
|
24
24
|
import '@bigbinary/neeto-icons/ColorPicker';
|
|
25
25
|
import 'react-colorful';
|
|
26
|
-
import './useRecentlyUsedColors-
|
|
26
|
+
import './useRecentlyUsedColors-zQ7y37Sk.js';
|
|
27
27
|
import './Dropdown.js';
|
|
28
|
-
import './index-
|
|
28
|
+
import './index-DmicnBCQ.js';
|
|
29
29
|
import '@bigbinary/neeto-icons/Down';
|
|
30
|
-
export { T as default } from './index-
|
|
30
|
+
export { T as default } from './index-Ui8-igXs.js';
|
|
31
31
|
import './Input.js';
|
|
32
32
|
import './Label.js';
|
|
33
33
|
import './MultiEmailInput.js';
|
|
@@ -38,7 +38,7 @@ import './useId-Jj9hXm-g.js';
|
|
|
38
38
|
import '@bigbinary/neeto-hotkeys';
|
|
39
39
|
import './overlayManager.js';
|
|
40
40
|
import 'qs';
|
|
41
|
-
import './Textarea-
|
|
41
|
+
import './Textarea-CEwODEM3.js';
|
|
42
42
|
import './Pane.js';
|
|
43
43
|
import './Popover.js';
|
|
44
44
|
import 'framer-motion';
|
|
@@ -78,7 +78,7 @@ import 'dayjs/plugin/weekday';
|
|
|
78
78
|
import 'dayjs/plugin/weekOfYear';
|
|
79
79
|
import './Spinner.js';
|
|
80
80
|
import './Tooltip.js';
|
|
81
|
-
import './useOverlayManager-
|
|
81
|
+
import './useOverlayManager-DGTN4LZe.js';
|
|
82
82
|
import '@babel/runtime/helpers/esm/objectWithoutPropertiesLoose';
|
|
83
83
|
import '@babel/runtime/helpers/esm/inheritsLoose';
|
|
84
84
|
import '@bigbinary/neeto-icons/Help';
|
package/dist/Toastr.js
CHANGED
|
@@ -9,7 +9,7 @@ import Warning from '@bigbinary/neeto-icons/Warning';
|
|
|
9
9
|
import Info from '@bigbinary/neeto-icons/Info';
|
|
10
10
|
import Close from '@bigbinary/neeto-icons/Close';
|
|
11
11
|
import { toast, Slide } from 'react-toastify';
|
|
12
|
-
import { n as noop, U as UniqueArray, g as getContentDir } from './index-
|
|
12
|
+
import { n as noop, U as UniqueArray, g as getContentDir } from './index-DmicnBCQ.js';
|
|
13
13
|
import Linkify from 'linkify-react';
|
|
14
14
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
15
15
|
import '@babel/runtime/helpers/classCallCheck';
|
package/dist/Tree.js
CHANGED
|
@@ -6,7 +6,7 @@ import 'react';
|
|
|
6
6
|
import classnames from 'classnames';
|
|
7
7
|
import { useTranslation } from 'react-i18next';
|
|
8
8
|
import { ANTD_LOCALE } from './constants.js';
|
|
9
|
-
import { A as ANT_DESIGN_GLOBAL_TOKEN_OVERRIDES } from './index-
|
|
9
|
+
import { A as ANT_DESIGN_GLOBAL_TOKEN_OVERRIDES } from './index-DmicnBCQ.js';
|
|
10
10
|
import Down from '@bigbinary/neeto-icons/Down';
|
|
11
11
|
import Right from '@bigbinary/neeto-icons/Right';
|
|
12
12
|
import { jsx } from 'react/jsx-runtime';
|
package/dist/TreeSelect.js
CHANGED
|
@@ -6,7 +6,7 @@ import { forwardRef } from 'react';
|
|
|
6
6
|
import classnames from 'classnames';
|
|
7
7
|
import Down from '@bigbinary/neeto-icons/Down';
|
|
8
8
|
import { useTranslation } from 'react-i18next';
|
|
9
|
-
import { a as getLocale, A as ANT_DESIGN_GLOBAL_TOKEN_OVERRIDES } from './index-
|
|
9
|
+
import { a as getLocale, A as ANT_DESIGN_GLOBAL_TOKEN_OVERRIDES } from './index-DmicnBCQ.js';
|
|
10
10
|
import { ANTD_LOCALE } from './constants.js';
|
|
11
11
|
import Label from './Label.js';
|
|
12
12
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
@@ -4,7 +4,7 @@ var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
|
|
4
4
|
var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
|
|
5
5
|
require('react');
|
|
6
6
|
var classnames = require('classnames');
|
|
7
|
-
var index = require('./index-
|
|
7
|
+
var index = require('./index-wzq3p_0z.js');
|
|
8
8
|
var Button = require('./Button.js');
|
|
9
9
|
var Dropdown = require('./Dropdown.js');
|
|
10
10
|
var jsxRuntime = require('react/jsx-runtime');
|
package/dist/cjs/Alert.js
CHANGED
|
@@ -15,7 +15,7 @@ require('@babel/runtime/helpers/slicedToArray');
|
|
|
15
15
|
require('@tippyjs/react');
|
|
16
16
|
require('tippy.js');
|
|
17
17
|
require('@bigbinary/neeto-icons/Close');
|
|
18
|
-
require('./useOverlayManager-
|
|
18
|
+
require('./useOverlayManager-BWAg7Jhg.js');
|
|
19
19
|
require('@babel/runtime/helpers/esm/extends');
|
|
20
20
|
require('@babel/runtime/helpers/esm/objectWithoutPropertiesLoose');
|
|
21
21
|
require('@babel/runtime/helpers/esm/inheritsLoose');
|
|
@@ -25,7 +25,7 @@ require('@bigbinary/neeto-hotkeys');
|
|
|
25
25
|
require('./overlayManager.js');
|
|
26
26
|
require('@babel/runtime/helpers/classCallCheck');
|
|
27
27
|
require('@babel/runtime/helpers/createClass');
|
|
28
|
-
require('./index-
|
|
28
|
+
require('./index-wzq3p_0z.js');
|
|
29
29
|
require('@bigbinary/neeto-cist');
|
|
30
30
|
require('qs');
|
|
31
31
|
require('./en-BfFI1Si2.js');
|
package/dist/cjs/Checkbox.js
CHANGED
|
@@ -9,7 +9,7 @@ require('@babel/runtime/helpers/slicedToArray');
|
|
|
9
9
|
require('react-router-dom');
|
|
10
10
|
require('@bigbinary/neeto-hotkeys');
|
|
11
11
|
require('./overlayManager.js');
|
|
12
|
-
var index = require('./index-
|
|
12
|
+
var index = require('./index-wzq3p_0z.js');
|
|
13
13
|
require('qs');
|
|
14
14
|
var Label = require('./Label.js');
|
|
15
15
|
var jsxRuntime = require('react/jsx-runtime');
|
|
@@ -61,7 +61,9 @@ var Checkbox = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
61
61
|
id: id,
|
|
62
62
|
ref: ref,
|
|
63
63
|
required: required,
|
|
64
|
+
"aria-describedby": error ? errorId : undefined,
|
|
64
65
|
"aria-invalid": !!error,
|
|
66
|
+
"aria-required": required,
|
|
65
67
|
className: "neeto-ui-checkbox",
|
|
66
68
|
"data-cy": "".concat(index.hyphenize(renderLabel), "-checkbox-input"),
|
|
67
69
|
name: id,
|
package/dist/cjs/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,gBAAU,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,WAAK,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,eAAA,CAAA,KAAA,EAAA;IAAKb,SAAS,EAAEc,UAAU,CAAC,CAAC,4BAA4B,EAAEd,SAAS,CAAC,CAAE;AAAAI,IAAAA,QAAA,gBACpES,eAAA,CAAA,KAAA,EAAA;AACEb,MAAAA,SAAS,EAAC,8BAA8B;AACxC,MAAA,SAAA,EAAQ,wBAAwB;MAAAI,QAAA,EAAA,cAEhCW,cAAA,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,gBAAU,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,UAA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,OAAA,EACRL,UAAU,CAAA,EAAA,EAAA,EAAA;AAAAC,QAAAA,QAAA,EAEbQ;AAAW,OAAA,CACP,CACR;AAAA,KACE,CAAC,EACL,CAAC,CAACd,KAAK,iBACNiB,cAAA,CAAA,GAAA,EAAA;AACEf,MAAAA,SAAS,EAAC,uBAAuB;AACjC,MAAA,SAAA,EAAA,EAAA,CAAAW,MAAA,CAAYO,eAAS,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/cjs/ColorPicker.js
CHANGED
|
@@ -10,11 +10,11 @@ var classnames = require('classnames');
|
|
|
10
10
|
var ColorPickerIcon = require('@bigbinary/neeto-icons/ColorPicker');
|
|
11
11
|
var reactColorful = require('react-colorful');
|
|
12
12
|
var reactI18next = require('react-i18next');
|
|
13
|
-
var useRecentlyUsedColors = require('./useRecentlyUsedColors-
|
|
13
|
+
var useRecentlyUsedColors = require('./useRecentlyUsedColors-zjpSW-oL.js');
|
|
14
14
|
var Button = require('./Button.js');
|
|
15
15
|
var Dropdown = require('./Dropdown.js');
|
|
16
16
|
var Typography = require('./Typography.js');
|
|
17
|
-
var index = require('./index-
|
|
17
|
+
var index = require('./index-wzq3p_0z.js');
|
|
18
18
|
var jsxRuntime = require('react/jsx-runtime');
|
|
19
19
|
var Down = require('@bigbinary/neeto-icons/Down');
|
|
20
20
|
require('@babel/runtime/helpers/objectWithoutProperties');
|
package/dist/cjs/DatePicker.js
CHANGED
|
@@ -29,11 +29,11 @@ require('@babel/runtime/regenerator');
|
|
|
29
29
|
require('@bigbinary/neeto-icons/ColorPicker');
|
|
30
30
|
require('react-colorful');
|
|
31
31
|
require('react-i18next');
|
|
32
|
-
require('./useRecentlyUsedColors-
|
|
32
|
+
require('./useRecentlyUsedColors-zjpSW-oL.js');
|
|
33
33
|
require('./Dropdown.js');
|
|
34
|
-
require('./index-
|
|
34
|
+
require('./index-wzq3p_0z.js');
|
|
35
35
|
require('@bigbinary/neeto-icons/Down');
|
|
36
|
-
var DatePicker = require('./index-
|
|
36
|
+
var DatePicker = require('./index-ouVGQMJ2.js');
|
|
37
37
|
require('./Input.js');
|
|
38
38
|
require('./Label.js');
|
|
39
39
|
require('./MultiEmailInput.js');
|
|
@@ -42,7 +42,7 @@ require('./useId-DXHUzdxd.js');
|
|
|
42
42
|
require('@bigbinary/neeto-hotkeys');
|
|
43
43
|
require('./overlayManager.js');
|
|
44
44
|
require('qs');
|
|
45
|
-
require('./Textarea-
|
|
45
|
+
require('./Textarea-CdPvAT3A.js');
|
|
46
46
|
require('./Pane.js');
|
|
47
47
|
require('./Popover.js');
|
|
48
48
|
require('framer-motion');
|
|
@@ -87,7 +87,7 @@ require('dayjs/plugin/weekday');
|
|
|
87
87
|
require('dayjs/plugin/weekOfYear');
|
|
88
88
|
require('./Spinner.js');
|
|
89
89
|
require('./Tooltip.js');
|
|
90
|
-
require('./useOverlayManager-
|
|
90
|
+
require('./useOverlayManager-BWAg7Jhg.js');
|
|
91
91
|
require('@babel/runtime/helpers/esm/objectWithoutPropertiesLoose');
|
|
92
92
|
require('@babel/runtime/helpers/esm/inheritsLoose');
|
|
93
93
|
require('@bigbinary/neeto-icons/Help');
|
package/dist/cjs/Dropdown.js
CHANGED
|
@@ -9,7 +9,7 @@ var classnames = require('classnames');
|
|
|
9
9
|
var Down = require('@bigbinary/neeto-icons/Down');
|
|
10
10
|
var ramda = require('ramda');
|
|
11
11
|
var Button = require('./Button.js');
|
|
12
|
-
var index = require('./index-
|
|
12
|
+
var index = require('./index-wzq3p_0z.js');
|
|
13
13
|
var jsxRuntime = require('react/jsx-runtime');
|
|
14
14
|
var neetoCist = require('@bigbinary/neeto-cist');
|
|
15
15
|
var Tooltip = require('./Tooltip.js');
|
package/dist/cjs/Input.js
CHANGED
|
@@ -10,7 +10,7 @@ var useId = require('./useId-DXHUzdxd.js');
|
|
|
10
10
|
require('react-router-dom');
|
|
11
11
|
require('@bigbinary/neeto-hotkeys');
|
|
12
12
|
require('./overlayManager.js');
|
|
13
|
-
var index = require('./index-
|
|
13
|
+
var index = require('./index-wzq3p_0z.js');
|
|
14
14
|
require('qs');
|
|
15
15
|
var Label = require('./Label.js');
|
|
16
16
|
var jsxRuntime = require('react/jsx-runtime');
|
package/dist/cjs/Modal.js
CHANGED
|
@@ -6,7 +6,7 @@ var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProp
|
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var classnames = require('classnames');
|
|
8
8
|
var Close = require('@bigbinary/neeto-icons/Close');
|
|
9
|
-
var useOverlayManager = require('./useOverlayManager-
|
|
9
|
+
var useOverlayManager = require('./useOverlayManager-BWAg7Jhg.js');
|
|
10
10
|
var Button = require('./Button.js');
|
|
11
11
|
require('react-router-dom');
|
|
12
12
|
require('qs');
|
|
@@ -21,7 +21,7 @@ require('@bigbinary/neeto-hotkeys');
|
|
|
21
21
|
require('./overlayManager.js');
|
|
22
22
|
require('@babel/runtime/helpers/classCallCheck');
|
|
23
23
|
require('@babel/runtime/helpers/createClass');
|
|
24
|
-
require('./index-
|
|
24
|
+
require('./index-wzq3p_0z.js');
|
|
25
25
|
require('@bigbinary/neeto-cist');
|
|
26
26
|
require('./en-BfFI1Si2.js');
|
|
27
27
|
require('@babel/runtime/helpers/toConsumableArray');
|
|
@@ -8,7 +8,7 @@ var React = require('react');
|
|
|
8
8
|
var classnames = require('classnames');
|
|
9
9
|
var ramda = require('ramda');
|
|
10
10
|
var reactSelectCreatable_esm = require('./react-select-creatable.esm-lcdODVBz.js');
|
|
11
|
-
var index = require('./index-
|
|
11
|
+
var index = require('./index-wzq3p_0z.js');
|
|
12
12
|
var _toArray = require('@babel/runtime/helpers/toArray');
|
|
13
13
|
var Close = require('@bigbinary/neeto-icons/Close');
|
|
14
14
|
var Tag = require('./Tag.js');
|
package/dist/cjs/Pagination.js
CHANGED
|
@@ -9,7 +9,7 @@ var reactRouterDom = require('react-router-dom');
|
|
|
9
9
|
require('@babel/runtime/helpers/slicedToArray');
|
|
10
10
|
require('@bigbinary/neeto-hotkeys');
|
|
11
11
|
require('./overlayManager.js');
|
|
12
|
-
var index = require('./index-
|
|
12
|
+
var index = require('./index-wzq3p_0z.js');
|
|
13
13
|
var useQueryParams = require('./useQueryParams-BrrbBvY_.js');
|
|
14
14
|
var _toConsumableArray = require('@babel/runtime/helpers/toConsumableArray');
|
|
15
15
|
var jsxRuntime = require('react/jsx-runtime');
|
package/dist/cjs/Pane.js
CHANGED
|
@@ -6,7 +6,7 @@ var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProp
|
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var classnames = require('classnames');
|
|
8
8
|
var Close = require('@bigbinary/neeto-icons/Close');
|
|
9
|
-
var useOverlayManager = require('./useOverlayManager-
|
|
9
|
+
var useOverlayManager = require('./useOverlayManager-BWAg7Jhg.js');
|
|
10
10
|
var Button = require('./Button.js');
|
|
11
11
|
require('react-router-dom');
|
|
12
12
|
require('qs');
|
|
@@ -20,7 +20,7 @@ require('@bigbinary/neeto-hotkeys');
|
|
|
20
20
|
require('./overlayManager.js');
|
|
21
21
|
require('@babel/runtime/helpers/classCallCheck');
|
|
22
22
|
require('@babel/runtime/helpers/createClass');
|
|
23
|
-
require('./index-
|
|
23
|
+
require('./index-wzq3p_0z.js');
|
|
24
24
|
require('@bigbinary/neeto-cist');
|
|
25
25
|
require('./en-BfFI1Si2.js');
|
|
26
26
|
require('@babel/runtime/helpers/toConsumableArray');
|
package/dist/cjs/Radio.js
CHANGED
|
@@ -10,7 +10,7 @@ var useId = require('./useId-DXHUzdxd.js');
|
|
|
10
10
|
require('react-router-dom');
|
|
11
11
|
require('@bigbinary/neeto-hotkeys');
|
|
12
12
|
require('./overlayManager.js');
|
|
13
|
-
var index = require('./index-
|
|
13
|
+
var index = require('./index-wzq3p_0z.js');
|
|
14
14
|
require('qs');
|
|
15
15
|
var jsxRuntime = require('react/jsx-runtime');
|
|
16
16
|
require('@bigbinary/neeto-icons/Help');
|
|
@@ -92,16 +92,23 @@ var Radio = function Radio(_ref) {
|
|
|
92
92
|
setInternalValue = _useState2[1];
|
|
93
93
|
var id = useId.useId(props.id);
|
|
94
94
|
var errorId = "error_".concat(id);
|
|
95
|
+
var labelId = label ? "label_".concat(id) : undefined;
|
|
96
|
+
var finalLabelId = label ? (labelProps === null || labelProps === void 0 ? void 0 : labelProps.id) || labelId : undefined;
|
|
95
97
|
var internalOnChange = function internalOnChange(e) {
|
|
96
98
|
return setInternalValue(e.target.value);
|
|
97
99
|
};
|
|
98
100
|
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
99
101
|
className: classnames(["neeto-ui-radio__wrapper", className]),
|
|
100
102
|
children: [label && /*#__PURE__*/jsxRuntime.jsx(Label, _objectSpread(_objectSpread({
|
|
101
|
-
className: "neeto-ui-radio__label"
|
|
103
|
+
className: "neeto-ui-radio__label",
|
|
104
|
+
id: finalLabelId
|
|
102
105
|
}, labelProps), {}, {
|
|
103
106
|
children: label
|
|
104
107
|
})), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
108
|
+
"aria-describedby": error ? errorId : undefined,
|
|
109
|
+
"aria-invalid": !!error,
|
|
110
|
+
"aria-labelledby": finalLabelId,
|
|
111
|
+
role: "radiogroup",
|
|
105
112
|
className: classnames(["neeto-ui-radio__container"], _defineProperty({
|
|
106
113
|
"neeto-ui-radio__container--stacked": stacked,
|
|
107
114
|
"neeto-ui-radio__container--error": error
|
package/dist/cjs/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,gBAAU,CACrB,UAAAC,IAAA,EASEC,GAAG,EACA;AAAA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,KACL,CACJ;AAAA,GACE,CAAC;AAEV;AAiCAN,KAAK,CAAC7B,IAAI,GAAGA,IAAI;;;;"}
|
package/dist/cjs/Select.js
CHANGED
|
@@ -28,7 +28,7 @@ var useId = require('./useId-DXHUzdxd.js');
|
|
|
28
28
|
require('react-router-dom');
|
|
29
29
|
require('@bigbinary/neeto-hotkeys');
|
|
30
30
|
require('./overlayManager.js');
|
|
31
|
-
var index = require('./index-
|
|
31
|
+
var index = require('./index-wzq3p_0z.js');
|
|
32
32
|
require('qs');
|
|
33
33
|
var Label = require('./Label.js');
|
|
34
34
|
var Spinner = require('./Spinner.js');
|
package/dist/cjs/Sidebar.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var React = require('react');
|
|
4
4
|
var classnames = require('classnames');
|
|
5
|
-
var index = require('./index-
|
|
5
|
+
var index = require('./index-wzq3p_0z.js');
|
|
6
6
|
var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
|
|
7
7
|
var Tooltip = require('./Tooltip.js');
|
|
8
8
|
var AppSwitcherIcon = require('@bigbinary/neeto-icons/AppSwitcher');
|
package/dist/cjs/Slider.js
CHANGED
|
@@ -13,7 +13,7 @@ require('@babel/runtime/helpers/slicedToArray');
|
|
|
13
13
|
require('react-router-dom');
|
|
14
14
|
require('@bigbinary/neeto-hotkeys');
|
|
15
15
|
require('./overlayManager.js');
|
|
16
|
-
var index = require('./index-
|
|
16
|
+
var index = require('./index-wzq3p_0z.js');
|
|
17
17
|
require('qs');
|
|
18
18
|
var jsxRuntime = require('react/jsx-runtime');
|
|
19
19
|
require('antd/locale/de_DE');
|
package/dist/cjs/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","t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edToArray');
|
|
|
11
11
|
require('react-router-dom');
|
|
12
12
|
require('@bigbinary/neeto-hotkeys');
|
|
13
13
|
require('./overlayManager.js');
|
|
14
|
-
var index = require('./index-
|
|
14
|
+
var index = require('./index-wzq3p_0z.js');
|
|
15
15
|
require('qs');
|
|
16
16
|
var Label = require('./Label.js');
|
|
17
17
|
var jsxRuntime = require('react/jsx-runtime');
|
|
@@ -66,7 +66,6 @@ var Switch = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
66
66
|
className: "neeto-ui-switch__container",
|
|
67
67
|
children: [/*#__PURE__*/jsxRuntime.jsxs("label", {
|
|
68
68
|
"data-cy": "nui-switch-item",
|
|
69
|
-
tabIndex: 0,
|
|
70
69
|
className: classnames("neeto-ui-switch__item", {
|
|
71
70
|
"neeto-ui-switch__item--checked": !!checked,
|
|
72
71
|
"neeto-ui-switch__item--disabled": disabled
|
|
@@ -74,6 +73,9 @@ var Switch = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
74
73
|
children: [/*#__PURE__*/jsxRuntime.jsx("input", _objectSpread({
|
|
75
74
|
id: id,
|
|
76
75
|
onChange: onChange,
|
|
76
|
+
"aria-describedby": error ? errorId : undefined,
|
|
77
|
+
"aria-invalid": !!error,
|
|
78
|
+
"aria-required": required,
|
|
77
79
|
type: "checkbox"
|
|
78
80
|
}, otherProps)), /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
79
81
|
"aria-hidden": "true",
|
package/dist/cjs/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,gBAAU,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,aAA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A,OAAO,EAAEnB;AAAG,OAAA,EACRL,UAAU,CAAA,EAAA,EAAA,EAAA;AACd,QAAA,SAAA,EAAA,EAAA,CAAAQ,MAAA,CAAYU,eAAS,CAACP,WAAW,CAAC,CAACc,OAAO,CACxC,cAAc,EACd,EACF,CAAC,EAAA,eAAA,CAAgB;AAAAxB,QAAAA,QAAA,EAEhBU;AAAW,OAAA,CACP,CACR;AAAA,KACE,CAAC,EACL,CAAC,CAACf,KAAK,iBACNkB,cAAA,CAAA,GAAA,EAAA;AACEpB,MAAAA,SAAS,EAAC,uBAAuB;AACjC,MAAA,SAAA,EAAA,EAAA,CAAAc,MAAA,CAAYU,eAAS,CAACP,WAAW,CAAC,EAAA,eAAA,CAAgB;AAClDN,MAAAA,EAAE,EAAEE,OAAQ;AAAAN,MAAAA,QAAA,EAEXL;AAAK,KACL,CACJ;AAAA,GACE,CAAC;AAEV,CACF;AAEAX,MAAM,CAACyC,WAAW,GAAG,QAAQ;;;;"}
|
package/dist/cjs/Tab.js
CHANGED
|
@@ -34,12 +34,15 @@ var Item = function Item(_ref) {
|
|
|
34
34
|
type: "button"
|
|
35
35
|
};
|
|
36
36
|
return /*#__PURE__*/jsxRuntime.jsxs(Parent, _objectSpread$1(_objectSpread$1({
|
|
37
|
+
"aria-selected": active,
|
|
37
38
|
"data-cy": "tab-item",
|
|
39
|
+
role: "tab",
|
|
38
40
|
className: classnames(["neeto-ui-tab neeto-ui-flex neeto-ui-items-center neeto-ui-justify-center neeto-ui-select-none", className], {
|
|
39
41
|
active: active
|
|
40
|
-
})
|
|
42
|
+
})
|
|
43
|
+
}, _objectSpread$1(_objectSpread$1({
|
|
41
44
|
onClick: onClick
|
|
42
|
-
},
|
|
45
|
+
}, otherProps), buttonAttributes)), {}, {
|
|
43
46
|
children: [icon && /*#__PURE__*/jsxRuntime.jsx(Icon, {
|
|
44
47
|
className: "neeto-ui-tab__icon"
|
|
45
48
|
}), children]
|
|
@@ -65,6 +68,7 @@ var Tab = function Tab(_ref) {
|
|
|
65
68
|
otherProps = _objectWithoutProperties(_ref, _excluded);
|
|
66
69
|
return /*#__PURE__*/jsxRuntime.jsx("div", _objectSpread(_objectSpread({
|
|
67
70
|
"data-cy": "tab-container",
|
|
71
|
+
role: "tablist",
|
|
68
72
|
className: classnames({
|
|
69
73
|
"neeto-ui-tab__wrapper neeto-ui-flex": true,
|
|
70
74
|
"neeto-ui-tab__wrapper--size-large": size === SIZES.large,
|