tp-react-elements 1.1.11 → 1.1.13
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/_virtual/index.esm5.js +2 -2
- package/dist/_virtual/index.esm6.js +2 -2
- package/dist/_virtual/index.esm7.js +2 -2
- package/dist/components/FormComponents/Select/MultiSelectv1.esm.js +3 -3
- package/dist/components/SelectField/MultiSelectFieldComponent.d.ts +2 -1
- package/dist/components/SelectField/MultiSelectFieldComponent.esm.js +3 -3
- package/dist/node_modules/react-date-range/dist/components/Calendar/index.esm.js +1 -1
- package/dist/node_modules/react-date-range/dist/components/DateRange/index.esm.js +1 -1
- package/dist/node_modules/react-date-range/dist/components/DefinedRange/index.esm.js +1 -1
- package/dist/utils/Interface/FormInterface.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var
|
|
1
|
+
var Calendar = {};
|
|
2
2
|
|
|
3
|
-
export {
|
|
3
|
+
export { Calendar as __exports };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var
|
|
1
|
+
var DateRange = {};
|
|
2
2
|
|
|
3
|
-
export {
|
|
3
|
+
export { DateRange as __exports };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var
|
|
1
|
+
var DefinedRange = {};
|
|
2
2
|
|
|
3
|
-
export {
|
|
3
|
+
export { DefinedRange as __exports };
|
|
@@ -88,7 +88,7 @@ function MultiSelectV1({ props, variant, }) {
|
|
|
88
88
|
width: '100%',
|
|
89
89
|
margin: 0,
|
|
90
90
|
// Remove pointerEvents: 'none' to allow label to trigger checkbox
|
|
91
|
-
'& .MuiFormControlLabel-label': { fontSize: '13px' }
|
|
91
|
+
'& .MuiFormControlLabel-label': { fontSize: props.item?.optionFontSize || '13px' }
|
|
92
92
|
} }) }), filterOptions.length !== 0 ? (filterOptions.map((option) => {
|
|
93
93
|
const selectedArray = fieldValue ? extractValuesToArray(fieldValue) : [];
|
|
94
94
|
const isChecked = selectedArray.includes(String(option.value));
|
|
@@ -99,8 +99,8 @@ function MultiSelectV1({ props, variant, }) {
|
|
|
99
99
|
py: 0.5,
|
|
100
100
|
px: 2,
|
|
101
101
|
minHeight: ITEM_HEIGHT,
|
|
102
|
-
}, children: [jsx(Checkbox, { checked: isChecked, size: "small", sx: { p: 1, mr: 1, pointerEvents: 'none' } }), jsx(ListItemText, { primary: option.label, primaryTypographyProps: {
|
|
103
|
-
fontSize: '13px',
|
|
102
|
+
}, children: [jsx(Checkbox, { checked: isChecked, size: "small", sx: { p: 1, mr: 1, pointerEvents: 'none' } }), jsx(ListItemText, { className: 'Mui-multi-select-option', primary: option.label, primaryTypographyProps: {
|
|
103
|
+
fontSize: props.item?.optionFontSize || '13px',
|
|
104
104
|
sx: {
|
|
105
105
|
whiteSpace: 'normal',
|
|
106
106
|
wordBreak: 'break-all',
|
|
@@ -6,6 +6,7 @@ interface MultiSelectProps {
|
|
|
6
6
|
}[];
|
|
7
7
|
onChangeFn: (e: any) => void;
|
|
8
8
|
disable?: boolean;
|
|
9
|
+
optionFontSize?: string;
|
|
9
10
|
}
|
|
10
|
-
export default function MultiSelectFieldComponent({ value, options, onChangeFn, disable, }: MultiSelectProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export default function MultiSelectFieldComponent({ value, options, onChangeFn, disable, optionFontSize, }: MultiSelectProps): import("react/jsx-runtime").JSX.Element;
|
|
11
12
|
export {};
|
|
@@ -15,7 +15,7 @@ const extractValuesToArray = (inputString) => {
|
|
|
15
15
|
const trimmedArray = valuesArray?.map((value) => value.trim());
|
|
16
16
|
return trimmedArray;
|
|
17
17
|
};
|
|
18
|
-
function MultiSelectFieldComponent({ value, options, onChangeFn, disable = false, }) {
|
|
18
|
+
function MultiSelectFieldComponent({ value, options, onChangeFn, disable = false, optionFontSize = '13px', }) {
|
|
19
19
|
const [personName, setPersonName] = require$$0.useState(value ? extractValuesToArray(value) : []);
|
|
20
20
|
const [searchText, setSearchText] = useState('');
|
|
21
21
|
const [filterOptions, setFilterOptions] = useState(options);
|
|
@@ -114,14 +114,14 @@ function MultiSelectFieldComponent({ value, options, onChangeFn, disable = false
|
|
|
114
114
|
} }), label: "Select All", sx: {
|
|
115
115
|
margin: 0,
|
|
116
116
|
width: '100%',
|
|
117
|
-
'& .MuiFormControlLabel-label': { fontSize:
|
|
117
|
+
'& .MuiFormControlLabel-label': { fontSize: optionFontSize }
|
|
118
118
|
} }) }), filterOptions.length !== 0 ? (filterOptions.map((option) => (jsxs(MenuItem, { value: `${option.value}`, sx: {
|
|
119
119
|
zIndex: 0,
|
|
120
120
|
py: 0,
|
|
121
121
|
px: 2,
|
|
122
122
|
minHeight: ITEM_HEIGHT
|
|
123
123
|
}, children: [jsx(Checkbox, { checked: fieldValue?.split(',').some((val) => String(val) === String(option.value)), size: "small", sx: { p: 1, mr: 1, pointerEvents: 'none' } }), jsx(ListItemText, { primary: option.label, primaryTypographyProps: {
|
|
124
|
-
fontSize:
|
|
124
|
+
fontSize: optionFontSize,
|
|
125
125
|
sx: {
|
|
126
126
|
whiteSpace: 'normal',
|
|
127
127
|
wordBreak: 'break-all',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __exports as Calendar } from '../../../../../_virtual/index.
|
|
1
|
+
import { __exports as Calendar } from '../../../../../_virtual/index.esm5.js';
|
|
2
2
|
import require$$0__default from 'react';
|
|
3
3
|
import { __require as requirePropTypes } from '../../../../prop-types/index.esm.js';
|
|
4
4
|
import { __require as requireDayCell } from '../DayCell/index.esm.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __exports as DateRange } from '../../../../../_virtual/index.
|
|
1
|
+
import { __exports as DateRange } from '../../../../../_virtual/index.esm6.js';
|
|
2
2
|
import require$$0__default from 'react';
|
|
3
3
|
import { __require as requirePropTypes } from '../../../../prop-types/index.esm.js';
|
|
4
4
|
import { __require as requireCalendar } from '../Calendar/index.esm.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __exports as DefinedRange } from '../../../../../_virtual/index.
|
|
1
|
+
import { __exports as DefinedRange } from '../../../../../_virtual/index.esm7.js';
|
|
2
2
|
import require$$0__default from 'react';
|
|
3
3
|
import { __require as requirePropTypes } from '../../../../prop-types/index.esm.js';
|
|
4
4
|
import { __require as requireStyles } from '../../styles.esm.js';
|