odaptos_design_system 2.0.52 → 2.0.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/Atoms/Checkbox/Checkbox.d.ts +2 -1
- package/dist/Organisms/MultiSelect/MultiSelect.d.ts +3 -1
- package/dist/Organisms/MultiSelect/MultiSelectWithCategories.d.ts +3 -1
- package/dist/Organisms/SingleSelect/SingleSelect.d.ts +3 -1
- package/dist/odaptos_design_system.cjs.development.js +71 -31
- package/dist/odaptos_design_system.cjs.development.js.map +1 -1
- package/dist/odaptos_design_system.cjs.production.min.js +1 -1
- package/dist/odaptos_design_system.cjs.production.min.js.map +1 -1
- package/dist/odaptos_design_system.esm.js +71 -31
- package/dist/odaptos_design_system.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/Atoms/Checkbox/Checkbox.tsx +26 -21
- package/src/Organisms/MultiSelect/MultiSelect.modules.scss +8 -3
- package/src/Organisms/MultiSelect/MultiSelect.tsx +18 -1
- package/src/Organisms/MultiSelect/MultiSelectWithCategories.modules.scss +8 -3
- package/src/Organisms/MultiSelect/MultiSelectWithCategories.tsx +18 -1
- package/src/Organisms/SingleSelect/SingleSelect.tsx +16 -1
|
@@ -8,6 +8,7 @@ interface CheckboxProps {
|
|
|
8
8
|
disabled?: boolean;
|
|
9
9
|
required?: boolean;
|
|
10
10
|
className?: string;
|
|
11
|
+
color?: string;
|
|
11
12
|
}
|
|
12
|
-
export declare const Checkbox: ({ label, leftLabel, onBlur, checked, disabled, onChange, required, className, }: CheckboxProps) => React.JSX.Element;
|
|
13
|
+
export declare const Checkbox: ({ label, leftLabel, onBlur, checked, disabled, onChange, required, className, color, }: CheckboxProps) => React.JSX.Element;
|
|
13
14
|
export {};
|
|
@@ -17,6 +17,8 @@ interface MultiSelectProps {
|
|
|
17
17
|
errorText?: string;
|
|
18
18
|
canAddNewOption?: boolean;
|
|
19
19
|
disableCloseOnSelect?: boolean;
|
|
20
|
+
rightIcon?: JSX.Element;
|
|
21
|
+
leftIcon?: JSX.Element;
|
|
20
22
|
onChange: (value: any) => void;
|
|
21
23
|
deleteOption: (value: any) => void;
|
|
22
24
|
limitTags?: number;
|
|
@@ -25,5 +27,5 @@ interface MultiSelectProps {
|
|
|
25
27
|
/**
|
|
26
28
|
* Use this component for multiselection !!
|
|
27
29
|
*/
|
|
28
|
-
export declare const MultiSelect: ({ options, label, placeholder, name, className, onChange, disabled, defaultValue, topLabel, topLabelWeight, topLabelSize, id, required, error, helperText, errorText, canAddNewOption, deleteOption, disableCloseOnSelect, limitTags, onBlur, ...props }: MultiSelectProps) => React.JSX.Element;
|
|
30
|
+
export declare const MultiSelect: ({ options, label, placeholder, name, className, onChange, disabled, defaultValue, topLabel, topLabelWeight, topLabelSize, id, required, error, helperText, errorText, canAddNewOption, deleteOption, disableCloseOnSelect, limitTags, rightIcon, leftIcon, onBlur, ...props }: MultiSelectProps) => React.JSX.Element;
|
|
29
31
|
export {};
|
|
@@ -17,6 +17,8 @@ interface MultiSelectProps {
|
|
|
17
17
|
errorText?: string;
|
|
18
18
|
canAddNewOption?: boolean;
|
|
19
19
|
disableCloseOnSelect?: boolean;
|
|
20
|
+
rightIcon?: JSX.Element;
|
|
21
|
+
leftIcon?: JSX.Element;
|
|
20
22
|
onChange: (value: any) => void;
|
|
21
23
|
deleteOption: (value: any) => void;
|
|
22
24
|
limitTags?: number;
|
|
@@ -25,5 +27,5 @@ interface MultiSelectProps {
|
|
|
25
27
|
/**
|
|
26
28
|
* Use this component for multiselection with caregories !!
|
|
27
29
|
*/
|
|
28
|
-
export declare const MultiSelectWithCategories: ({ options, label, placeholder, name, className, onChange, disabled, defaultValue, topLabel, topLabelWeight, topLabelSize, id, required, error, helperText, errorText, canAddNewOption, deleteOption, disableCloseOnSelect, limitTags, onBlur, ...props }: MultiSelectProps) => React.JSX.Element;
|
|
30
|
+
export declare const MultiSelectWithCategories: ({ options, label, placeholder, name, className, onChange, disabled, defaultValue, topLabel, topLabelWeight, topLabelSize, id, required, error, helperText, errorText, canAddNewOption, deleteOption, disableCloseOnSelect, limitTags, rightIcon, leftIcon, onBlur, ...props }: MultiSelectProps) => React.JSX.Element;
|
|
29
31
|
export {};
|
|
@@ -16,11 +16,13 @@ interface SingleSelectProps {
|
|
|
16
16
|
canAddNewOption?: boolean;
|
|
17
17
|
defaultValue: any;
|
|
18
18
|
options: any[];
|
|
19
|
+
rightIcon?: JSX.Element;
|
|
20
|
+
leftIcon?: JSX.Element;
|
|
19
21
|
onChange: (value: any) => void;
|
|
20
22
|
onBlur?: () => void;
|
|
21
23
|
}
|
|
22
24
|
/**
|
|
23
25
|
* Use this component for single selection !!
|
|
24
26
|
*/
|
|
25
|
-
export declare const SingleSelect: ({ options, label, placeholder, name, className, onChange, disabled, defaultValue, topLabel, topLabelWeight, topLabelSize, id, required, error, helperText, errorText, canAddNewOption, onBlur, ...props }: SingleSelectProps) => React.JSX.Element;
|
|
27
|
+
export declare const SingleSelect: ({ options, label, placeholder, name, className, onChange, disabled, defaultValue, topLabel, topLabelWeight, topLabelSize, id, required, error, helperText, errorText, canAddNewOption, onBlur, rightIcon, leftIcon, ...props }: SingleSelectProps) => React.JSX.Element;
|
|
26
28
|
export {};
|
|
@@ -28,7 +28,6 @@ var MuiModal = _interopDefault(require('@mui/material/Modal'));
|
|
|
28
28
|
var Fade = _interopDefault(require('@mui/material/Fade'));
|
|
29
29
|
var Autocomplete = require('@mui/material/Autocomplete');
|
|
30
30
|
var Autocomplete__default = _interopDefault(Autocomplete);
|
|
31
|
-
var TextField = _interopDefault(require('@mui/material/TextField'));
|
|
32
31
|
var system = require('@mui/system');
|
|
33
32
|
var Tab = _interopDefault(require('@mui/material/Tab'));
|
|
34
33
|
var Tabs$1 = _interopDefault(require('@mui/material/Tabs'));
|
|
@@ -11281,29 +11280,30 @@ const BpIcon = /*#__PURE__*/styles$15.styled('span')(() => ({
|
|
|
11281
11280
|
cursor: 'not-allowed'
|
|
11282
11281
|
}
|
|
11283
11282
|
}));
|
|
11284
|
-
const BpCheckedIcon = /*#__PURE__*/styles$15.styled(BpIcon)({
|
|
11285
|
-
backgroundColor: '#0077FF',
|
|
11286
|
-
backgroundImage: 'linear-gradient(180deg,hsla(0,0%,100%,.1),hsla(0,0%,100%,0))',
|
|
11287
|
-
border: `1px solid #0077FF`,
|
|
11288
|
-
'&:before': {
|
|
11289
|
-
display: 'block',
|
|
11290
|
-
height: '1rem',
|
|
11291
|
-
backgroundImage: "url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath" + " fill-rule='evenodd' clip-rule='evenodd' d='M12 5c-.28 0-.53.11-.71.29L7 9.59l-2.29-2.3a1.003 " + "1.003 0 00-1.42 1.42l3 3c.18.18.43.29.71.29s.53-.11.71-.29l5-5A1.003 1.003 0 0012 5z' fill='%23fff'/%3E%3C/svg%3E\")",
|
|
11292
|
-
content: '""'
|
|
11293
|
-
},
|
|
11294
|
-
'input:disabled ~ &': {
|
|
11295
|
-
border: `1px solid #0077FF`,
|
|
11296
|
-
background: '#0077FF',
|
|
11297
|
-
cursor: 'not-allowed'
|
|
11298
|
-
}
|
|
11299
|
-
});
|
|
11300
11283
|
function BpCheckbox({
|
|
11301
11284
|
checked,
|
|
11302
11285
|
disabled = false,
|
|
11303
11286
|
onChange,
|
|
11304
11287
|
required,
|
|
11305
|
-
onBlur
|
|
11288
|
+
onBlur,
|
|
11289
|
+
color = '#0077FF'
|
|
11306
11290
|
}) {
|
|
11291
|
+
const BpCheckedIcon = styles$15.styled(BpIcon)({
|
|
11292
|
+
backgroundColor: color,
|
|
11293
|
+
backgroundImage: 'linear-gradient(180deg,hsla(0,0%,100%,.1),hsla(0,0%,100%,0))',
|
|
11294
|
+
border: `1px solid ${color}`,
|
|
11295
|
+
'&:before': {
|
|
11296
|
+
display: 'block',
|
|
11297
|
+
height: '1rem',
|
|
11298
|
+
backgroundImage: "url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath" + " fill-rule='evenodd' clip-rule='evenodd' d='M12 5c-.28 0-.53.11-.71.29L7 9.59l-2.29-2.3a1.003 " + "1.003 0 00-1.42 1.42l3 3c.18.18.43.29.71.29s.53-.11.71-.29l5-5A1.003 1.003 0 0012 5z' fill='%23fff'/%3E%3C/svg%3E\")",
|
|
11299
|
+
content: '""'
|
|
11300
|
+
},
|
|
11301
|
+
'input:disabled ~ &': {
|
|
11302
|
+
border: `1px solid ${color}`,
|
|
11303
|
+
background: `${color}`,
|
|
11304
|
+
cursor: 'not-allowed'
|
|
11305
|
+
}
|
|
11306
|
+
});
|
|
11307
11307
|
return /*#__PURE__*/React__default.createElement(material.Checkbox, {
|
|
11308
11308
|
sx: {
|
|
11309
11309
|
'&:hover': {
|
|
@@ -11333,7 +11333,8 @@ const Checkbox = ({
|
|
|
11333
11333
|
disabled,
|
|
11334
11334
|
onChange,
|
|
11335
11335
|
required,
|
|
11336
|
-
className
|
|
11336
|
+
className,
|
|
11337
|
+
color
|
|
11337
11338
|
}) => {
|
|
11338
11339
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
11339
11340
|
className: `${styles$d.checkboxContainer} ${disabled ? styles$d.disabled : ''} ${className}`,
|
|
@@ -11349,7 +11350,8 @@ const Checkbox = ({
|
|
|
11349
11350
|
disabled: disabled,
|
|
11350
11351
|
onChange: onChange,
|
|
11351
11352
|
required: required,
|
|
11352
|
-
onBlur: onBlur
|
|
11353
|
+
onBlur: onBlur,
|
|
11354
|
+
color: color
|
|
11353
11355
|
}), label && /*#__PURE__*/React__default.createElement(Text, {
|
|
11354
11356
|
text: label,
|
|
11355
11357
|
size: "sm"
|
|
@@ -13198,12 +13200,12 @@ const Modal = ({
|
|
|
13198
13200
|
}
|
|
13199
13201
|
};
|
|
13200
13202
|
|
|
13201
|
-
var css_248z$z = ".MultiSelect-modules_newAutocomplete__GJptd{min-width:16rem;width:100%}.MultiSelect-modules_newAutocomplete__GJptd label,.MultiSelect-modules_newAutocomplete__GJptd span{font-family:Open Sans;font-size:.75rem;font-style:normal;font-weight:400;letter-spacing:.03em;line-height:1.3;margin:unset;text-align:left}.MultiSelect-modules_newAutocomplete__GJptd .MultiSelect-modules_MuiAutocomplete-endAdornment__JB-Bx{display:flex;gap:.5rem}.MultiSelect-modules_newAutocomplete__GJptd .MultiSelect-modules_MuiAutocomplete-endAdornment__JB-Bx svg{height:1rem;width:1rem}.MultiSelect-modules_newAutocomplete__GJptd .MultiSelect-modules_tags_container__I6anX{display:flex;flex-wrap:wrap;gap:.5rem;padding:0 .25rem}.MultiSelect-modules_newAutocomplete__GJptd .MultiSelect-modules_tags_container__I6anX span{font-size:.75rem}.MultiSelect-modules_newAutocomplete__GJptd .MultiSelect-modules_tags_container__I6anX p{text-overflow:ellipsis;white-space:nowrap}.MultiSelect-modules_MuiOutlinedInput-root__4WRgB.MultiSelect-modules_MuiInputBase-root__WOhMS.MultiSelect-modules_MuiInputBase-formControl__wtzWK{align-items:center;display:flex;flex-direction:row}.MultiSelect-modules_no_scrollbar__6KlOa{-ms-overflow-style:none;scrollbar-width:none}.MultiSelect-modules_no_scrollbar__6KlOa::-webkit-scrollbar{display:none}.MultiSelect-modules_input_top_label__JajPb{margin-bottom:.625rem}.MultiSelect-modules_text_below__ukXBz{margin:.25rem .5rem .25rem .75rem}.MultiSelect-modules_icon__GcgOt{height:1rem!important;margin-left:.25rem;width:1rem!important}";
|
|
13202
|
-
var styles$z = {"newAutocomplete":"MultiSelect-modules_newAutocomplete__GJptd","MuiAutocomplete-endAdornment":"MultiSelect-modules_MuiAutocomplete-endAdornment__JB-Bx","tags_container":"MultiSelect-modules_tags_container__I6anX","MuiOutlinedInput-root":"MultiSelect-modules_MuiOutlinedInput-root__4WRgB","MuiInputBase-root":"MultiSelect-modules_MuiInputBase-root__WOhMS","MuiInputBase-formControl":"MultiSelect-modules_MuiInputBase-formControl__wtzWK","no_scrollbar":"MultiSelect-modules_no_scrollbar__6KlOa","input_top_label":"MultiSelect-modules_input_top_label__JajPb","text_below":"MultiSelect-modules_text_below__ukXBz","icon":"MultiSelect-modules_icon__GcgOt"};
|
|
13203
|
+
var css_248z$z = ".MultiSelect-modules_newAutocomplete__GJptd{min-width:16rem;width:100%}.MultiSelect-modules_newAutocomplete__GJptd label,.MultiSelect-modules_newAutocomplete__GJptd span{font-family:Open Sans;font-size:.75rem;font-style:normal;font-weight:400;letter-spacing:.03em;line-height:1.3;margin:unset;text-align:left}.MultiSelect-modules_newAutocomplete__GJptd .MultiSelect-modules_MuiAutocomplete-endAdornment__JB-Bx{display:flex;gap:.5rem}.MultiSelect-modules_newAutocomplete__GJptd .MultiSelect-modules_MuiAutocomplete-endAdornment__JB-Bx svg{height:1rem;width:1rem}.MultiSelect-modules_newAutocomplete__GJptd .MultiSelect-modules_tags_container__I6anX{display:flex;flex-wrap:wrap;gap:.5rem;padding:0 .25rem}.MultiSelect-modules_newAutocomplete__GJptd .MultiSelect-modules_tags_container__I6anX span{font-size:.75rem}.MultiSelect-modules_newAutocomplete__GJptd .MultiSelect-modules_tags_container__I6anX .MultiSelect-modules_customBadge__2TSsr p{cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:85%}.MultiSelect-modules_MuiOutlinedInput-root__4WRgB.MultiSelect-modules_MuiInputBase-root__WOhMS.MultiSelect-modules_MuiInputBase-formControl__wtzWK{align-items:center;display:flex;flex-direction:row}.MultiSelect-modules_no_scrollbar__6KlOa{-ms-overflow-style:none;scrollbar-width:none}.MultiSelect-modules_no_scrollbar__6KlOa::-webkit-scrollbar{display:none}.MultiSelect-modules_input_top_label__JajPb{margin-bottom:.625rem}.MultiSelect-modules_text_below__ukXBz{margin:.25rem .5rem .25rem .75rem}.MultiSelect-modules_icon__GcgOt{height:1rem!important;margin-left:.25rem;width:1rem!important}";
|
|
13204
|
+
var styles$z = {"newAutocomplete":"MultiSelect-modules_newAutocomplete__GJptd","MuiAutocomplete-endAdornment":"MultiSelect-modules_MuiAutocomplete-endAdornment__JB-Bx","tags_container":"MultiSelect-modules_tags_container__I6anX","customBadge":"MultiSelect-modules_customBadge__2TSsr","MuiOutlinedInput-root":"MultiSelect-modules_MuiOutlinedInput-root__4WRgB","MuiInputBase-root":"MultiSelect-modules_MuiInputBase-root__WOhMS","MuiInputBase-formControl":"MultiSelect-modules_MuiInputBase-formControl__wtzWK","no_scrollbar":"MultiSelect-modules_no_scrollbar__6KlOa","input_top_label":"MultiSelect-modules_input_top_label__JajPb","text_below":"MultiSelect-modules_text_below__ukXBz","icon":"MultiSelect-modules_icon__GcgOt"};
|
|
13203
13205
|
styleInject(css_248z$z);
|
|
13204
13206
|
|
|
13205
13207
|
const filter = /*#__PURE__*/Autocomplete.createFilterOptions();
|
|
13206
|
-
const CssTextField$1 = /*#__PURE__*/styles$15.styled(TextField)({
|
|
13208
|
+
const CssTextField$1 = /*#__PURE__*/styles$15.styled(material.TextField)({
|
|
13207
13209
|
'& .MuiInputBase-input': {
|
|
13208
13210
|
color: '#26292E',
|
|
13209
13211
|
fontFamily: `'Open Sans' !important`,
|
|
@@ -13320,6 +13322,8 @@ const MultiSelect = ({
|
|
|
13320
13322
|
deleteOption,
|
|
13321
13323
|
disableCloseOnSelect = true,
|
|
13322
13324
|
limitTags,
|
|
13325
|
+
rightIcon,
|
|
13326
|
+
leftIcon,
|
|
13323
13327
|
onBlur,
|
|
13324
13328
|
...props
|
|
13325
13329
|
}) => {
|
|
@@ -13328,6 +13332,12 @@ const MultiSelect = ({
|
|
|
13328
13332
|
React.useEffect(() => {
|
|
13329
13333
|
setValue(defaultValue === undefined ? [] : defaultValue);
|
|
13330
13334
|
}, [defaultValue]);
|
|
13335
|
+
const endAdornment = rightIcon ? /*#__PURE__*/React__default.createElement(material.InputAdornment, {
|
|
13336
|
+
position: "end"
|
|
13337
|
+
}, rightIcon) : undefined;
|
|
13338
|
+
const startAdornment = leftIcon ? /*#__PURE__*/React__default.createElement(material.InputAdornment, {
|
|
13339
|
+
position: "start"
|
|
13340
|
+
}, leftIcon) : undefined;
|
|
13331
13341
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
13332
13342
|
className: `${className}`,
|
|
13333
13343
|
style: {
|
|
@@ -13378,7 +13388,11 @@ const MultiSelect = ({
|
|
|
13378
13388
|
required: required,
|
|
13379
13389
|
name: name,
|
|
13380
13390
|
error: error,
|
|
13381
|
-
onBlur: onBlur
|
|
13391
|
+
onBlur: onBlur,
|
|
13392
|
+
InputProps: {
|
|
13393
|
+
endAdornment,
|
|
13394
|
+
startAdornment
|
|
13395
|
+
}
|
|
13382
13396
|
})),
|
|
13383
13397
|
renderTags: value => {
|
|
13384
13398
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -13388,6 +13402,7 @@ const MultiSelect = ({
|
|
|
13388
13402
|
status: "idle",
|
|
13389
13403
|
size: "base",
|
|
13390
13404
|
key: `chipt-option-${index}`,
|
|
13405
|
+
className: styles$z.customBadge,
|
|
13391
13406
|
canBeRemoved: true,
|
|
13392
13407
|
iconRight: /*#__PURE__*/React__default.createElement(RemoveCircledIcon, {
|
|
13393
13408
|
fill: colors.neutral_700,
|
|
@@ -13452,8 +13467,8 @@ const MultiSelect = ({
|
|
|
13452
13467
|
}));
|
|
13453
13468
|
};
|
|
13454
13469
|
|
|
13455
|
-
var css_248z$A = ".MultiSelectWithCategories-modules_newAutocomplete__JGeHK{min-width:16rem;width:100%}.MultiSelectWithCategories-modules_newAutocomplete__JGeHK label,.MultiSelectWithCategories-modules_newAutocomplete__JGeHK span{font-family:Open Sans;font-size:.75rem;font-style:normal;font-weight:400;letter-spacing:.03em;line-height:1.3;margin:unset;text-align:left}.MultiSelectWithCategories-modules_newAutocomplete__JGeHK .MultiSelectWithCategories-modules_MuiAutocomplete-endAdornment__-DPXc{display:flex;gap:.5rem}.MultiSelectWithCategories-modules_newAutocomplete__JGeHK .MultiSelectWithCategories-modules_MuiAutocomplete-endAdornment__-DPXc svg{height:1rem;width:1rem}.MultiSelectWithCategories-modules_newAutocomplete__JGeHK .MultiSelectWithCategories-modules_tags_container__n-vll{display:flex;flex-wrap:wrap;gap:.5rem;padding:0 .25rem}.MultiSelectWithCategories-modules_newAutocomplete__JGeHK .MultiSelectWithCategories-modules_tags_container__n-vll span{font-size:.75rem}.MultiSelectWithCategories-modules_newAutocomplete__JGeHK .MultiSelectWithCategories-modules_tags_container__n-vll p{text-overflow:ellipsis;white-space:nowrap}.MultiSelectWithCategories-modules_MuiOutlinedInput-root__bXzfU.MultiSelectWithCategories-modules_MuiInputBase-root__etzVA.MultiSelectWithCategories-modules_MuiInputBase-formControl__kcPdx{align-items:center;display:flex;flex-direction:row}.MultiSelectWithCategories-modules_no_scrollbar__VQJjj{-ms-overflow-style:none;scrollbar-width:none}.MultiSelectWithCategories-modules_no_scrollbar__VQJjj::-webkit-scrollbar{display:none}.MultiSelectWithCategories-modules_input_top_label__dKzMb{margin-bottom:.625rem}.MultiSelectWithCategories-modules_text_below__wt9uX{margin:.25rem .5rem .25rem .75rem}.MultiSelectWithCategories-modules_icon__CPcPb{height:1rem!important;margin-left:.25rem;width:1rem!important}";
|
|
13456
|
-
var styles$A = {"newAutocomplete":"MultiSelectWithCategories-modules_newAutocomplete__JGeHK","MuiAutocomplete-endAdornment":"MultiSelectWithCategories-modules_MuiAutocomplete-endAdornment__-DPXc","tags_container":"MultiSelectWithCategories-modules_tags_container__n-vll","MuiOutlinedInput-root":"MultiSelectWithCategories-modules_MuiOutlinedInput-root__bXzfU","MuiInputBase-root":"MultiSelectWithCategories-modules_MuiInputBase-root__etzVA","MuiInputBase-formControl":"MultiSelectWithCategories-modules_MuiInputBase-formControl__kcPdx","no_scrollbar":"MultiSelectWithCategories-modules_no_scrollbar__VQJjj","input_top_label":"MultiSelectWithCategories-modules_input_top_label__dKzMb","text_below":"MultiSelectWithCategories-modules_text_below__wt9uX","icon":"MultiSelectWithCategories-modules_icon__CPcPb"};
|
|
13470
|
+
var css_248z$A = ".MultiSelectWithCategories-modules_newAutocomplete__JGeHK{min-width:16rem;width:100%}.MultiSelectWithCategories-modules_newAutocomplete__JGeHK label,.MultiSelectWithCategories-modules_newAutocomplete__JGeHK span{font-family:Open Sans;font-size:.75rem;font-style:normal;font-weight:400;letter-spacing:.03em;line-height:1.3;margin:unset;text-align:left}.MultiSelectWithCategories-modules_newAutocomplete__JGeHK .MultiSelectWithCategories-modules_MuiAutocomplete-endAdornment__-DPXc{display:flex;gap:.5rem}.MultiSelectWithCategories-modules_newAutocomplete__JGeHK .MultiSelectWithCategories-modules_MuiAutocomplete-endAdornment__-DPXc svg{height:1rem;width:1rem}.MultiSelectWithCategories-modules_newAutocomplete__JGeHK .MultiSelectWithCategories-modules_tags_container__n-vll{display:flex;flex-wrap:wrap;gap:.5rem;padding:0 .25rem}.MultiSelectWithCategories-modules_newAutocomplete__JGeHK .MultiSelectWithCategories-modules_tags_container__n-vll span{font-size:.75rem}.MultiSelectWithCategories-modules_newAutocomplete__JGeHK .MultiSelectWithCategories-modules_tags_container__n-vll .MultiSelectWithCategories-modules_customBadge__4-nXp p{cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:85%}.MultiSelectWithCategories-modules_MuiOutlinedInput-root__bXzfU.MultiSelectWithCategories-modules_MuiInputBase-root__etzVA.MultiSelectWithCategories-modules_MuiInputBase-formControl__kcPdx{align-items:center;display:flex;flex-direction:row}.MultiSelectWithCategories-modules_no_scrollbar__VQJjj{-ms-overflow-style:none;scrollbar-width:none}.MultiSelectWithCategories-modules_no_scrollbar__VQJjj::-webkit-scrollbar{display:none}.MultiSelectWithCategories-modules_input_top_label__dKzMb{margin-bottom:.625rem}.MultiSelectWithCategories-modules_text_below__wt9uX{margin:.25rem .5rem .25rem .75rem}.MultiSelectWithCategories-modules_icon__CPcPb{height:1rem!important;margin-left:.25rem;width:1rem!important}";
|
|
13471
|
+
var styles$A = {"newAutocomplete":"MultiSelectWithCategories-modules_newAutocomplete__JGeHK","MuiAutocomplete-endAdornment":"MultiSelectWithCategories-modules_MuiAutocomplete-endAdornment__-DPXc","tags_container":"MultiSelectWithCategories-modules_tags_container__n-vll","customBadge":"MultiSelectWithCategories-modules_customBadge__4-nXp","MuiOutlinedInput-root":"MultiSelectWithCategories-modules_MuiOutlinedInput-root__bXzfU","MuiInputBase-root":"MultiSelectWithCategories-modules_MuiInputBase-root__etzVA","MuiInputBase-formControl":"MultiSelectWithCategories-modules_MuiInputBase-formControl__kcPdx","no_scrollbar":"MultiSelectWithCategories-modules_no_scrollbar__VQJjj","input_top_label":"MultiSelectWithCategories-modules_input_top_label__dKzMb","text_below":"MultiSelectWithCategories-modules_text_below__wt9uX","icon":"MultiSelectWithCategories-modules_icon__CPcPb"};
|
|
13457
13472
|
styleInject(css_248z$A);
|
|
13458
13473
|
|
|
13459
13474
|
const filter$1 = /*#__PURE__*/Autocomplete.createFilterOptions();
|
|
@@ -13471,7 +13486,7 @@ const GroupHeader = /*#__PURE__*/styles$15.styled('div')(() => ({
|
|
|
13471
13486
|
const GroupItems = /*#__PURE__*/styles$15.styled('ul')({
|
|
13472
13487
|
padding: 0
|
|
13473
13488
|
});
|
|
13474
|
-
const CssTextField$2 = /*#__PURE__*/styles$15.styled(TextField)({
|
|
13489
|
+
const CssTextField$2 = /*#__PURE__*/styles$15.styled(material.TextField)({
|
|
13475
13490
|
'& .MuiInputBase-input': {
|
|
13476
13491
|
color: '#26292E',
|
|
13477
13492
|
fontFamily: `'Open Sans' !important`,
|
|
@@ -13588,6 +13603,8 @@ const MultiSelectWithCategories = ({
|
|
|
13588
13603
|
deleteOption,
|
|
13589
13604
|
disableCloseOnSelect = true,
|
|
13590
13605
|
limitTags,
|
|
13606
|
+
rightIcon,
|
|
13607
|
+
leftIcon,
|
|
13591
13608
|
onBlur,
|
|
13592
13609
|
...props
|
|
13593
13610
|
}) => {
|
|
@@ -13596,6 +13613,12 @@ const MultiSelectWithCategories = ({
|
|
|
13596
13613
|
React.useEffect(() => {
|
|
13597
13614
|
setValue(defaultValue === undefined ? [] : defaultValue);
|
|
13598
13615
|
}, [defaultValue]);
|
|
13616
|
+
const endAdornment = rightIcon ? /*#__PURE__*/React__default.createElement(material.InputAdornment, {
|
|
13617
|
+
position: "end"
|
|
13618
|
+
}, rightIcon) : undefined;
|
|
13619
|
+
const startAdornment = leftIcon ? /*#__PURE__*/React__default.createElement(material.InputAdornment, {
|
|
13620
|
+
position: "start"
|
|
13621
|
+
}, leftIcon) : undefined;
|
|
13599
13622
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
13600
13623
|
className: `${className}`,
|
|
13601
13624
|
style: {
|
|
@@ -13649,7 +13672,11 @@ const MultiSelectWithCategories = ({
|
|
|
13649
13672
|
required: required,
|
|
13650
13673
|
name: name,
|
|
13651
13674
|
error: error,
|
|
13652
|
-
onBlur: onBlur
|
|
13675
|
+
onBlur: onBlur,
|
|
13676
|
+
InputProps: {
|
|
13677
|
+
endAdornment,
|
|
13678
|
+
startAdornment
|
|
13679
|
+
}
|
|
13653
13680
|
})),
|
|
13654
13681
|
renderTags: value => {
|
|
13655
13682
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -13659,6 +13686,7 @@ const MultiSelectWithCategories = ({
|
|
|
13659
13686
|
status: "idle",
|
|
13660
13687
|
size: "base",
|
|
13661
13688
|
key: `chipt-option-${index}`,
|
|
13689
|
+
className: styles$A.customBadge,
|
|
13662
13690
|
canBeRemoved: true,
|
|
13663
13691
|
iconRight: /*#__PURE__*/React__default.createElement(RemoveCircledIcon, {
|
|
13664
13692
|
fill: colors.neutral_700,
|
|
@@ -14797,7 +14825,7 @@ const BpIcon$1 = /*#__PURE__*/styles$15.styled('span')(() => ({
|
|
|
14797
14825
|
cursor: 'not-allowed'
|
|
14798
14826
|
}
|
|
14799
14827
|
}));
|
|
14800
|
-
const BpCheckedIcon
|
|
14828
|
+
const BpCheckedIcon = /*#__PURE__*/styles$15.styled(BpIcon$1)({
|
|
14801
14829
|
backgroundColor: '#0077FF',
|
|
14802
14830
|
border: 'none',
|
|
14803
14831
|
width: '1.1rem',
|
|
@@ -14836,7 +14864,7 @@ const Radio = ({
|
|
|
14836
14864
|
}), /*#__PURE__*/React__default.createElement(material.Radio, {
|
|
14837
14865
|
disableRipple: true,
|
|
14838
14866
|
color: "default",
|
|
14839
|
-
checkedIcon: /*#__PURE__*/React__default.createElement(BpCheckedIcon
|
|
14867
|
+
checkedIcon: /*#__PURE__*/React__default.createElement(BpCheckedIcon, null),
|
|
14840
14868
|
icon: /*#__PURE__*/React__default.createElement(BpIcon$1, null),
|
|
14841
14869
|
checked: checked,
|
|
14842
14870
|
disabled: disabled,
|
|
@@ -15052,6 +15080,8 @@ const SingleSelect = ({
|
|
|
15052
15080
|
errorText,
|
|
15053
15081
|
canAddNewOption,
|
|
15054
15082
|
onBlur,
|
|
15083
|
+
rightIcon,
|
|
15084
|
+
leftIcon,
|
|
15055
15085
|
...props
|
|
15056
15086
|
}) => {
|
|
15057
15087
|
const [value, setValue] = React.useState(defaultValue === undefined ? null : defaultValue);
|
|
@@ -15059,6 +15089,12 @@ const SingleSelect = ({
|
|
|
15059
15089
|
React.useEffect(() => {
|
|
15060
15090
|
setValue(defaultValue === undefined ? null : defaultValue);
|
|
15061
15091
|
}, [defaultValue]);
|
|
15092
|
+
const endAdornment = rightIcon ? /*#__PURE__*/React__default.createElement(material.InputAdornment, {
|
|
15093
|
+
position: "end"
|
|
15094
|
+
}, rightIcon) : undefined;
|
|
15095
|
+
const startAdornment = leftIcon ? /*#__PURE__*/React__default.createElement(material.InputAdornment, {
|
|
15096
|
+
position: "start"
|
|
15097
|
+
}, leftIcon) : undefined;
|
|
15062
15098
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
15063
15099
|
className: `${className && className}`,
|
|
15064
15100
|
style: {
|
|
@@ -15108,7 +15144,11 @@ const SingleSelect = ({
|
|
|
15108
15144
|
size: "small",
|
|
15109
15145
|
required: required,
|
|
15110
15146
|
error: error,
|
|
15111
|
-
onBlur: onBlur
|
|
15147
|
+
onBlur: onBlur,
|
|
15148
|
+
InputProps: {
|
|
15149
|
+
endAdornment,
|
|
15150
|
+
startAdornment
|
|
15151
|
+
}
|
|
15112
15152
|
})),
|
|
15113
15153
|
clearIcon: /*#__PURE__*/React__default.createElement(RemoveCircledIcon, {
|
|
15114
15154
|
fill: "black",
|