digitinary-ui 1.0.6 → 1.0.7
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/index.js +2 -3
- package/package.json +1 -1
- package/dist/components/Accordion/Accordion.js +0 -28
- package/dist/components/Accordion/index.js +0 -1
- package/dist/components/Alert/Alert.js +0 -58
- package/dist/components/Alert/index.js +0 -1
- package/dist/components/Button/Button.js +0 -17
- package/dist/components/Button/index.js +0 -1
- package/dist/components/Card/Card.js +0 -6
- package/dist/components/Card/index.js +0 -1
- package/dist/components/Checkbox/Checkbox.js +0 -8
- package/dist/components/Checkbox/index.js +0 -1
- package/dist/components/Chip/Chip.js +0 -18
- package/dist/components/Chip/index.js +0 -1
- package/dist/components/Date/Date.js +0 -460
- package/dist/components/Date/index.js +0 -1
- package/dist/components/DateRange/DateRange.js +0 -206
- package/dist/components/DateRange/index.js +0 -1
- package/dist/components/Dialog/Dialog.js +0 -36
- package/dist/components/Dialog/index.js +0 -1
- package/dist/components/HelperText/HelperText.js +0 -6
- package/dist/components/HelperText/index.js +0 -1
- package/dist/components/Input/Input.js +0 -38
- package/dist/components/Input/index.js +0 -1
- package/dist/components/Label/Label.js +0 -6
- package/dist/components/Label/index.js +0 -1
- package/dist/components/Overlay/Overlay.js +0 -8
- package/dist/components/Overlay/index.js +0 -1
- package/dist/components/Pagination/Pagination.js +0 -26
- package/dist/components/Pagination/index.js +0 -1
- package/dist/components/Radio/Radio.js +0 -8
- package/dist/components/Radio/index.js +0 -1
- package/dist/components/RadioGroup/RadioGroup.js +0 -14
- package/dist/components/RadioGroup/index.js +0 -1
- package/dist/components/SelectGroup/SelectGroup.js +0 -251
- package/dist/components/SelectGroup/index.js +0 -1
- package/dist/components/SideDrawer/SideDrawer.js +0 -54
- package/dist/components/SideDrawer/index.js +0 -1
- package/dist/components/Switch/Switch.js +0 -6
- package/dist/components/Switch/index.js +0 -1
- package/dist/components/Table/Table.js +0 -60
- package/dist/components/Table/index.js +0 -1
- package/dist/components/TextArea/TextArea.js +0 -30
- package/dist/components/TextArea/index.js +0 -1
- package/dist/components/Tooltip/Tooltip.js +0 -8
- package/dist/components/index.js +0 -19
- package/dist/constants/index.js +0 -5
- package/dist/icons/AlertErrorIcon.js +0 -3
- package/dist/icons/AlertInfoIcon.js +0 -3
- package/dist/icons/AlertSuccessIcon.js +0 -3
- package/dist/icons/AlertWarningIcon.js +0 -3
- package/dist/icons/ArrowBottom.js +0 -3
- package/dist/icons/ArrowLeft.js +0 -3
- package/dist/icons/ArrowRight.js +0 -3
- package/dist/icons/ArrowUpIcon.js +0 -3
- package/dist/icons/Calendar.js +0 -3
- package/dist/icons/CheckMark.js +0 -3
- package/dist/icons/ClearField.js +0 -3
- package/dist/icons/CloseIcon.js +0 -3
- package/dist/icons/DoubleLeftArrow.js +0 -3
- package/dist/icons/DoubleRightArrow.js +0 -3
- package/dist/icons/ExcelIcon.js +0 -3
- package/dist/icons/HidePasswordIcon.js +0 -3
- package/dist/icons/InfoIcon.js +0 -3
- package/dist/icons/LeftArrowIcon.js +0 -3
- package/dist/icons/LoaderIcon.js +0 -3
- package/dist/icons/PdfIcon.js +0 -3
- package/dist/icons/RightArrowIcon.js +0 -3
- package/dist/icons/SearchIcon.js +0 -3
- package/dist/icons/SelectFieldDownArrow.js +0 -3
- package/dist/icons/SelectFieldUpArrow.js +0 -3
- package/dist/icons/ShowPasswordIcon.js +0 -3
- package/dist/icons/SortIcon.js +0 -3
- package/dist/types/enums.js +0 -25
- package/dist/types/index.js +0 -3
- package/dist/types/interfaces.js +0 -1
- package/dist/types/types.js +0 -1
- package/dist/utils/index.js +0 -8
|
@@ -1,251 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import React, { useEffect, useState, useRef } from 'react';
|
|
3
|
-
import CheckMark from '../../icons/CheckMark';
|
|
4
|
-
import ClearIcon from '../../icons/ClearField';
|
|
5
|
-
import ArrowUp from '../../icons/SelectFieldUpArrow';
|
|
6
|
-
import ArrowDown from '../../icons/SelectFieldDownArrow';
|
|
7
|
-
import SearchIcon from '../../icons/SearchIcon';
|
|
8
|
-
import styles from './SelectGroup.module.scss';
|
|
9
|
-
const SelectGroup = ({ label, placeholder = 'Select', options, value, onChange, isMultiple = true, disabled = false, className = '', errorMsg = '', helperText = '', withSearch = true, itemsLabel = 'Items', size = 'medium', required = false, }) => {
|
|
10
|
-
const [search, setSearch] = useState('');
|
|
11
|
-
const [isOpen, setIsOpen] = useState(false);
|
|
12
|
-
const [dropdownDirection, setDropdownDirection] = useState('down');
|
|
13
|
-
const [selectedValue, setSelectedValue] = useState(placeholder);
|
|
14
|
-
const optionRefs = useRef({});
|
|
15
|
-
const containerRef = useRef(null);
|
|
16
|
-
const dropdownRef = useRef(null);
|
|
17
|
-
const optionsContainerRef = useRef(null);
|
|
18
|
-
const [scrollPosition, setScrollPosition] = useState(0);
|
|
19
|
-
// Handle the opening and closing of the dropdown
|
|
20
|
-
const toggleDropdown = () => setIsOpen((prev) => {
|
|
21
|
-
prev && setDropdownDirection('down');
|
|
22
|
-
return !prev;
|
|
23
|
-
});
|
|
24
|
-
// extract text from label
|
|
25
|
-
const extractTextFromElement = (element) => {
|
|
26
|
-
// Base case: if the element is a string, return it directly
|
|
27
|
-
if (typeof element === 'string') {
|
|
28
|
-
return element;
|
|
29
|
-
}
|
|
30
|
-
// Check if the element is an object and has a 'props' with 'children'
|
|
31
|
-
if (element &&
|
|
32
|
-
typeof element === 'object' &&
|
|
33
|
-
'props' in element &&
|
|
34
|
-
'children' in element.props) {
|
|
35
|
-
return extractTextFromElement(element.props.children);
|
|
36
|
-
}
|
|
37
|
-
// If none of the above, return an empty string (for elements without children or non-text elements)
|
|
38
|
-
return '';
|
|
39
|
-
};
|
|
40
|
-
// handle options key down event
|
|
41
|
-
const optionsKeyDown = (e, key, listItem) => {
|
|
42
|
-
if (e.key === 'Escape') {
|
|
43
|
-
dropdownRef.current && dropdownRef.current.focus();
|
|
44
|
-
toggleDropdown();
|
|
45
|
-
}
|
|
46
|
-
else if (e.key === 'Enter') {
|
|
47
|
-
handleSelect(listItem);
|
|
48
|
-
!isMultiple && toggleDropdown();
|
|
49
|
-
}
|
|
50
|
-
else if (e.key === 'ArrowDown') {
|
|
51
|
-
e.preventDefault();
|
|
52
|
-
const nextKey = getNextKey(key);
|
|
53
|
-
const nextElement = optionRefs.current[nextKey];
|
|
54
|
-
if (nextElement) {
|
|
55
|
-
nextElement.focus();
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
else if (e.key === 'ArrowUp') {
|
|
59
|
-
e.preventDefault();
|
|
60
|
-
const previousKey = getPreviousKey(key);
|
|
61
|
-
const prevElement = optionRefs.current[previousKey];
|
|
62
|
-
if (prevElement) {
|
|
63
|
-
prevElement.focus();
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
};
|
|
67
|
-
const getNextKey = (currentKey) => {
|
|
68
|
-
const keys = Object.keys(optionRefs.current); // Get all keys
|
|
69
|
-
const currentIndex = keys.indexOf(currentKey);
|
|
70
|
-
const nextIndex = (currentIndex + 1) % keys.length; // Wrap around to the first item
|
|
71
|
-
return keys[nextIndex];
|
|
72
|
-
};
|
|
73
|
-
const getPreviousKey = (currentKey) => {
|
|
74
|
-
const keys = Object.keys(optionRefs.current);
|
|
75
|
-
const currentIndex = keys.indexOf(currentKey);
|
|
76
|
-
const previousIndex = (currentIndex - 1 + keys.length) % keys.length; // Wrap around to the last item
|
|
77
|
-
return keys[previousIndex];
|
|
78
|
-
};
|
|
79
|
-
// Filter options based on search input
|
|
80
|
-
const getFilteredOptions = () => {
|
|
81
|
-
// Check if there is any search input to filter by
|
|
82
|
-
if (!search.trim()) {
|
|
83
|
-
return options; // If no search term, return all options as is
|
|
84
|
-
}
|
|
85
|
-
// Filter each group's list based on the search term
|
|
86
|
-
const filteredOptions = options
|
|
87
|
-
.map((group) => {
|
|
88
|
-
// Filter the individual list items within the group
|
|
89
|
-
const filteredList = group.list.filter((item) => {
|
|
90
|
-
const text = extractTextFromElement(item.label);
|
|
91
|
-
return text.toLowerCase().includes(search.toLowerCase());
|
|
92
|
-
});
|
|
93
|
-
// Return the group only if there are matching items
|
|
94
|
-
if (filteredList.length > 0) {
|
|
95
|
-
return {
|
|
96
|
-
...group,
|
|
97
|
-
list: filteredList,
|
|
98
|
-
};
|
|
99
|
-
}
|
|
100
|
-
return null; // Return null for groups with no matching items
|
|
101
|
-
})
|
|
102
|
-
.filter((group) => group !== null); // Remove the null entries from the results
|
|
103
|
-
return filteredOptions;
|
|
104
|
-
};
|
|
105
|
-
// Handle item selection
|
|
106
|
-
const handleSelect = (newItem) => {
|
|
107
|
-
if (isMultiple) {
|
|
108
|
-
const formattedValue = value;
|
|
109
|
-
const newValue = formattedValue?.find((item) => item.value === newItem.value)
|
|
110
|
-
? formattedValue?.filter((item) => item.value !== newItem.value)
|
|
111
|
-
: [...formattedValue, newItem];
|
|
112
|
-
onChange(newValue);
|
|
113
|
-
}
|
|
114
|
-
else {
|
|
115
|
-
onChange(newItem);
|
|
116
|
-
setIsOpen(false); // Close the dropdown after selection for single select
|
|
117
|
-
}
|
|
118
|
-
};
|
|
119
|
-
const handleFlip = () => {
|
|
120
|
-
if (optionsContainerRef.current) {
|
|
121
|
-
const dropDownRect = optionsContainerRef.current.getBoundingClientRect();
|
|
122
|
-
// Setting the correct position based on the dropdown position (flipped or not).
|
|
123
|
-
const upDirection = {
|
|
124
|
-
x: dropDownRect.right,
|
|
125
|
-
y: dropDownRect.top,
|
|
126
|
-
};
|
|
127
|
-
const downDirection = {
|
|
128
|
-
x: dropDownRect.left,
|
|
129
|
-
y: dropDownRect.bottom,
|
|
130
|
-
};
|
|
131
|
-
// Fetching an element from the x and y coordinates provided by the (upDirection, downDirection) variables.
|
|
132
|
-
const elementFromPoint = document.elementFromPoint(dropdownDirection === 'down' ? downDirection.x + 5 : upDirection.x - 5, dropdownDirection === 'down' ? downDirection.y - 5 : upDirection.y + 5);
|
|
133
|
-
// Checking if the fetched element is a children of the options container,
|
|
134
|
-
// it will return null if the coordinates are outside of the window view.
|
|
135
|
-
const isDropdownOverlapped = !optionsContainerRef.current.contains(elementFromPoint);
|
|
136
|
-
if (elementFromPoint === null || isDropdownOverlapped) {
|
|
137
|
-
// flipping the dropdown position
|
|
138
|
-
setDropdownDirection(dropdownDirection === 'down' ? 'up' : 'down');
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
};
|
|
142
|
-
const filteredOptions = getFilteredOptions(); // filter options
|
|
143
|
-
const isEmpty = !filteredOptions.some((item) => item.list.length > 0); // check if options list is empty
|
|
144
|
-
const message = search ? 'No results found.' : 'No data available.'; // handle errorMsg message to display when options is empty
|
|
145
|
-
const hasGroupName = filteredOptions.some((group) => group.groupName); // check if at least one group name exist
|
|
146
|
-
useEffect(() => {
|
|
147
|
-
// Clean up refs that are no longer visible
|
|
148
|
-
Object.keys(optionRefs.current).forEach((key) => {
|
|
149
|
-
if (!filteredOptions.some((group) => group.list.some((item) => `${item.value}` === key))) {
|
|
150
|
-
delete optionRefs.current[key];
|
|
151
|
-
}
|
|
152
|
-
});
|
|
153
|
-
}, [filteredOptions]);
|
|
154
|
-
useEffect(() => {
|
|
155
|
-
search && setSearch(''); // empty search result on close
|
|
156
|
-
isOpen && handleFlip();
|
|
157
|
-
// auto scroll to selected value
|
|
158
|
-
if (isOpen && value && !isMultiple && !Array.isArray(value)) {
|
|
159
|
-
const keyToFocus = `${value.value}`;
|
|
160
|
-
const keys = Object.keys(optionRefs.current);
|
|
161
|
-
const currentIndex = keys.indexOf(keyToFocus);
|
|
162
|
-
const elementToFocus = optionRefs.current[keys[currentIndex]];
|
|
163
|
-
if (elementToFocus) {
|
|
164
|
-
elementToFocus.focus();
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
// Function to check if the click was outside the dropdown
|
|
168
|
-
const handleClickOutside = (event) => {
|
|
169
|
-
if (containerRef.current && !containerRef.current.contains(event.target)) {
|
|
170
|
-
setIsOpen(false); // Close the dropdown
|
|
171
|
-
setDropdownDirection('down');
|
|
172
|
-
}
|
|
173
|
-
};
|
|
174
|
-
if (isOpen) {
|
|
175
|
-
document.addEventListener('mousedown', handleClickOutside);
|
|
176
|
-
}
|
|
177
|
-
else {
|
|
178
|
-
document.removeEventListener('mousedown', handleClickOutside);
|
|
179
|
-
}
|
|
180
|
-
return () => {
|
|
181
|
-
document.removeEventListener('mousedown', handleClickOutside);
|
|
182
|
-
};
|
|
183
|
-
}, [isOpen, dropdownRef]);
|
|
184
|
-
useEffect(() => {
|
|
185
|
-
if (isMultiple) {
|
|
186
|
-
if (Array.isArray(value)) {
|
|
187
|
-
if (!value.length) {
|
|
188
|
-
setSelectedValue(placeholder);
|
|
189
|
-
}
|
|
190
|
-
else {
|
|
191
|
-
setSelectedValue(`${value.length} ${itemsLabel}`);
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
else {
|
|
195
|
-
setSelectedValue(placeholder);
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
else {
|
|
199
|
-
if (!value || Array.isArray(value)) {
|
|
200
|
-
setSelectedValue(placeholder);
|
|
201
|
-
}
|
|
202
|
-
else if (value.label && typeof value.label === 'string') {
|
|
203
|
-
setSelectedValue(value.label);
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
}, [value, isMultiple, placeholder, itemsLabel]);
|
|
207
|
-
const isSelected = (listItem) => {
|
|
208
|
-
if (Array.isArray(value)) {
|
|
209
|
-
return value?.find((item) => item.value === listItem.value) !== undefined;
|
|
210
|
-
}
|
|
211
|
-
else if (value) {
|
|
212
|
-
return value.value === listItem.value;
|
|
213
|
-
}
|
|
214
|
-
else {
|
|
215
|
-
return false;
|
|
216
|
-
}
|
|
217
|
-
};
|
|
218
|
-
const isActive = () => {
|
|
219
|
-
if (typeof value === 'object' && !Array.isArray(value) && value && 'label' in value) {
|
|
220
|
-
return value.label ? 'activeArrow' : '';
|
|
221
|
-
}
|
|
222
|
-
else if (Array.isArray(value) && value.length > 0) {
|
|
223
|
-
return 'activeArrow';
|
|
224
|
-
}
|
|
225
|
-
return '';
|
|
226
|
-
};
|
|
227
|
-
return (_jsxs("div", { className: `${styles.multiSelectGroup} ${className} ${disabled ? styles.disabled : ''}`, ref: containerRef, children: [label && (_jsxs("label", { className: styles.label, "data-id": `${String(label)?.toUpperCase()?.replaceAll(' ', '_')}_LABEL_ID`, children: [label, required && _jsx("span", { className: styles.required, children: "*" })] })), _jsx("div", { className: `${styles.selectDisplay} ${disabled ? styles.disabled : ''} ${styles[size]} ${isOpen ? styles.open : ''} ${dropdownDirection} ${errorMsg ? styles.error : ''}`, onClick: () => !disabled && toggleDropdown(), onKeyDown: (e) => e.key === 'Enter' && !disabled && toggleDropdown(), tabIndex: 0, "data-id": `${String(label)?.toUpperCase()?.replaceAll(' ', '_')}_FIELD_ID`, children: _jsxs("div", { className: styles.displayValueContainer, children: [_jsx("span", { className: `${styles.displayValue}
|
|
228
|
-
${selectedValue === placeholder ? styles.noSelection : ''}
|
|
229
|
-
${disabled ? styles.disabledField : ''}`, children: selectedValue }), _jsxs("div", { className: styles.iconsContainer, children: [value &&
|
|
230
|
-
((Array.isArray(value) && value.length > 0) || (!Array.isArray(value) && value)) &&
|
|
231
|
-
!disabled && (_jsx(ClearIcon, { width: "1rem", height: "1rem", onClick: (e) => {
|
|
232
|
-
e.stopPropagation();
|
|
233
|
-
setIsOpen(false);
|
|
234
|
-
isMultiple ? onChange([]) : onChange(null);
|
|
235
|
-
} })), isOpen ? (_jsx(ArrowUp, { className: `${styles.arrowIcon} ${disabled ? styles.disabled : ''} ${(typeof value === 'object' && !Array.isArray(value) && value?.label) ||
|
|
236
|
-
(Array.isArray(value) && value.length > 0)
|
|
237
|
-
? styles.activeArrow
|
|
238
|
-
: ''}`, "data-id": "SELECT_ARROW_ICON", width: "1.5rem", height: "1.5rem" })) : (_jsx(ArrowDown, { className: `${styles.arrowIcon} ${disabled ? styles.disabled : ''} ${(typeof value === 'object' && !Array.isArray(value) && value?.label) ||
|
|
239
|
-
(Array.isArray(value) && value.length > 0)
|
|
240
|
-
? styles.activeArrow
|
|
241
|
-
: ''}`, "data-id": "SELECT_ARROW_ICON", width: "1.5rem", height: "1.5rem" }))] })] }) }), isOpen && !disabled && (_jsxs("div", { className: `${styles.optionsList} ${styles[dropdownDirection]} ${label ? styles.withLabel : ''}`, ref: dropdownRef, children: [withSearch && (_jsxs("div", { className: styles.searchInputContainer, children: [_jsx("input", { className: styles.searchInput, value: search, onChange: (e) => setSearch(e.target.value), onKeyDown: (e) => {
|
|
242
|
-
if (e.key === 'Escape') {
|
|
243
|
-
toggleDropdown();
|
|
244
|
-
dropdownRef.current && dropdownRef.current.focus();
|
|
245
|
-
}
|
|
246
|
-
}, disabled: disabled, placeholder: "Search", autoFocus: true, "data-id": "SELECT_SEARCH_DATA_ID" }), _jsxs("div", { className: styles.iconsContainer, children: [search && (_jsx("button", { onClick: () => setSearch(''), className: styles.clearSearch, children: _jsx(ClearIcon, { width: "1rem", height: "1rem", "data-id": "CLEAR_SEARCH_DATA_ID" }) })), _jsx(SearchIcon, { className: styles.selectSearchIcon, width: '1.5rem', height: '1.5rem', "data-id": "SEARCH_ICON_SELECT_DATA_ID" })] })] })), isEmpty && _jsx("div", { className: styles.noResults, children: message }), _jsx("div", { className: `${styles.optionsContainer} ${withSearch ? styles.optionsContainerWithSearch : ''}`, ref: optionsContainerRef, children: !isEmpty &&
|
|
247
|
-
filteredOptions.map((group, index) => (_jsxs(React.Fragment, { children: [hasGroupName && _jsx("div", { className: styles.groupTitle, children: group.groupName }), group.list.map((listItem, index) => (_jsxs("div", { className: `${styles.option} ${isSelected(listItem) ? styles.selected : ''} ${!isMultiple ? styles.singleValue : ''} ${hasGroupName ? styles.gutterLeft : ''}`, onClick: () => handleSelect(listItem), onKeyDown: (e) => {
|
|
248
|
-
optionsKeyDown(e, `${listItem.value}`, listItem);
|
|
249
|
-
}, ref: (el) => (optionRefs.current[`${listItem.value}`] = el), tabIndex: 0, "data-id": `${index}_OPTION_DATA_ID`, children: [isMultiple && (_jsx("div", { className: styles.checkbox, children: _jsx(CheckMark, { width: "1rem", height: "1rem", "data-id": `${listItem.index}_CHECK_BOX_DATA_ID` }) })), _jsx("span", { children: listItem.label })] }, listItem.value)))] }, index))) })] })), errorMsg ? (_jsx("div", { className: styles.errorText, children: errorMsg })) : (helperText && _jsx("div", { className: styles.helperText, children: helperText }))] }));
|
|
250
|
-
};
|
|
251
|
-
export default SelectGroup;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './SelectGroup';
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { useRef, useEffect, useState } from 'react';
|
|
3
|
-
import styles from './sideDrawer.module.scss';
|
|
4
|
-
const SideDrawer = ({ open, setOpen, children, className, onClickOutSide, width = '40vw', anchor, }) => {
|
|
5
|
-
const container = useRef(null);
|
|
6
|
-
const modal = useRef(null);
|
|
7
|
-
const sideDrawer = useRef(null);
|
|
8
|
-
const prevOpen = useRef(false);
|
|
9
|
-
useEffect(() => {
|
|
10
|
-
prevOpen.current = open;
|
|
11
|
-
if (prevOpen.current && !open) {
|
|
12
|
-
if (sideDrawer.current) {
|
|
13
|
-
const timeOut = setTimeout(() => {
|
|
14
|
-
sideDrawer.current?.remove();
|
|
15
|
-
}, 500);
|
|
16
|
-
clearTimeout(timeOut);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
else if (!prevOpen.current && open && sideDrawer.current) {
|
|
20
|
-
container?.current?.appendChild(sideDrawer.current);
|
|
21
|
-
}
|
|
22
|
-
}, [open]);
|
|
23
|
-
const useMountTransition = (isMounted, unmountDelay) => {
|
|
24
|
-
const [hasTransitionedIn, setHasTransitionedIn] = useState(false);
|
|
25
|
-
useEffect(() => {
|
|
26
|
-
let timeoutId;
|
|
27
|
-
if (isMounted && !hasTransitionedIn) {
|
|
28
|
-
setHasTransitionedIn(true);
|
|
29
|
-
}
|
|
30
|
-
else if (!isMounted && hasTransitionedIn) {
|
|
31
|
-
timeoutId = setTimeout(() => setHasTransitionedIn(false), unmountDelay);
|
|
32
|
-
}
|
|
33
|
-
return () => {
|
|
34
|
-
clearTimeout(timeoutId);
|
|
35
|
-
};
|
|
36
|
-
}, [unmountDelay, isMounted, hasTransitionedIn]);
|
|
37
|
-
return hasTransitionedIn;
|
|
38
|
-
};
|
|
39
|
-
const hasTransitionedIn = useMountTransition(open, 0);
|
|
40
|
-
useEffect(() => {
|
|
41
|
-
if (modal && hasTransitionedIn) {
|
|
42
|
-
modal.current?.scrollTo({ top: 0 });
|
|
43
|
-
modal.current?.focus();
|
|
44
|
-
}
|
|
45
|
-
else {
|
|
46
|
-
document.getElementById('main-container')?.focus();
|
|
47
|
-
}
|
|
48
|
-
}, [hasTransitionedIn]);
|
|
49
|
-
return (_jsxs("div", { ref: container, className: `${styles.sideDrawerContainer} ${hasTransitionedIn && styles.active} ${className} ${anchor === 'left' ? styles.anchorLeft : styles.anchorRight}`, children: [_jsx("div", { id: "SIDE_DRAWER", onClick: () => {
|
|
50
|
-
setOpen(!open);
|
|
51
|
-
onClickOutSide && onClickOutSide();
|
|
52
|
-
}, className: `${styles.overlay} ${anchor === 'left' ? styles.anchorLeft : styles.anchorRight}` }), _jsx("div", { ref: sideDrawer, className: `${styles.sideDrawer} ${anchor === 'left' ? styles.anchorLeft : styles.anchorRight}`, "data-id": "SIDE_DRAWER_CONTAINER_ID", style: { width: width }, children: hasTransitionedIn && (_jsx("div", { tabIndex: -1, className: `${styles.modal} ${anchor === 'left' ? styles.anchorLeft : styles.anchorRight}`, ref: modal, children: children })) })] }));
|
|
53
|
-
};
|
|
54
|
-
export default SideDrawer;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './SideDrawer';
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import styles from './switch.module.scss';
|
|
3
|
-
const Switch = ({ checked, onClick, label, disabled = false, labelPlacement = 'left', color = 'primary', }) => {
|
|
4
|
-
return (_jsxs("div", { className: `${styles.switchContainer} ${labelPlacement}`, children: [label && _jsx("div", { className: styles.switchLabel, children: label }), _jsx("div", { role: "switch", className: `${styles.slider} ${checked ? `${styles.checked}` : `${styles.notChecked}`} ${disabled && `${styles.disabled}`} ${!disabled && styles[color]}`, onClick: onClick, "data-id": "SWITCH_CONTAINER_FIELD", children: _jsx("div", { role: "checkbox", className: `${styles.switchIndicator} ${!disabled && styles[color]}` }) })] }));
|
|
5
|
-
};
|
|
6
|
-
export default Switch;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './Switch';
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import BottomArrow from '../../icons/ArrowBottom';
|
|
3
|
-
import UpArrow from '../../icons/ArrowUpIcon';
|
|
4
|
-
import SortIcon from '../../icons/SortIcon';
|
|
5
|
-
import Tooltip from '../Tooltip/Tooltip';
|
|
6
|
-
import styles from './table.module.scss';
|
|
7
|
-
const Table = ({ id, headCells, data, sort, setSort, currentHeadCell, setCurrentHeadCell, fallback, footer, onRowClick, selectableRow = false, selectedRowId, rowDataId, }) => {
|
|
8
|
-
const setSortingValue = (headCell) => {
|
|
9
|
-
let newSortValue = '';
|
|
10
|
-
if (headCell.id !== currentHeadCell) {
|
|
11
|
-
setCurrentHeadCell(headCell.id);
|
|
12
|
-
newSortValue = 'asc';
|
|
13
|
-
}
|
|
14
|
-
else if (headCell.id === currentHeadCell && sort === 'asc') {
|
|
15
|
-
newSortValue = 'desc';
|
|
16
|
-
}
|
|
17
|
-
else {
|
|
18
|
-
setCurrentHeadCell('');
|
|
19
|
-
newSortValue = '';
|
|
20
|
-
}
|
|
21
|
-
setSort(newSortValue);
|
|
22
|
-
};
|
|
23
|
-
const setSortIcon = (currentLabel, columnName, sortable, onClick) => {
|
|
24
|
-
if (sortable) {
|
|
25
|
-
if (sort?.includes('asc') && columnName === currentHeadCell) {
|
|
26
|
-
return (_jsx(BottomArrow, { className: styles.ascArrow, "data-id": `${currentLabel.toUpperCase().replace(/[^a-zA-Z0-9s]+/g, '_')}_SORT_ICON`, onClick: onClick }));
|
|
27
|
-
}
|
|
28
|
-
else if (sort?.includes('desc') && columnName === currentHeadCell) {
|
|
29
|
-
return _jsx(UpArrow, { className: styles.descArrow, onClick: onClick });
|
|
30
|
-
}
|
|
31
|
-
else {
|
|
32
|
-
return _jsx(SortIcon, { className: styles.defaultSortArrow, onClick: onClick });
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
return (_jsxs("div", { className: styles.tableSectionContainer, children: [_jsx("div", { className: styles.tableContainer, children: _jsxs("table", { id: id || '', className: `${styles.table} ${styles.borderRadiusTop}`, children: [_jsx("thead", { className: styles.tableHead, children: _jsx("tr", { children: headCells?.map((headCell) => (_jsx("th", { className: `${styles.tableHeadCell} ${headCell.classes || ''}`, style: { width: headCell.width, minWidth: headCell.minWidth }, children: _jsxs("div", { className: styles.headContainer, "data-id": `${headCell.label
|
|
37
|
-
.toUpperCase()
|
|
38
|
-
.replace(/[^a-zA-Z0-9s]+/g, '_')}_COLUMN`, children: [headCell.label, setSortIcon(headCell.label, headCell.id, headCell.sortable, () => {
|
|
39
|
-
if (headCell.sortable && data?.length > 0) {
|
|
40
|
-
return setSortingValue(headCell);
|
|
41
|
-
}
|
|
42
|
-
})] }) }, headCell.id))) }) }), _jsx("tbody", { className: styles.tableBody, "data-id": "TABLE_BODY", children: data?.length > 0 ? (data?.map((row, rowIndex) => {
|
|
43
|
-
return (_jsx("tr", { onClick: () => {
|
|
44
|
-
onRowClick && onRowClick(row.id);
|
|
45
|
-
}, "data-i": rowDataId, className: `${styles.row} ${selectedRowId === row.id && selectableRow && `${styles.rowSelected}`}`, children: headCells?.map((headCell) => {
|
|
46
|
-
const cellContent = headCell.tooltip && row[headCell.id] !== '_' ? (_jsx(Tooltip, { content: row[headCell.id], children: _jsx("div", { className: styles.tableData, "data-id": "TEXT_DESCRIPTION", style: {
|
|
47
|
-
width: headCell.width,
|
|
48
|
-
minWidth: headCell.minWidth,
|
|
49
|
-
}, children: row[headCell.id] }) })) : (_jsx("div", { "data-id": "TEXT_DESCRIPTION", className: styles.tableData, style: {
|
|
50
|
-
width: headCell.width,
|
|
51
|
-
minWidth: headCell.minWidth,
|
|
52
|
-
}, children: row[headCell.id] }));
|
|
53
|
-
return (_jsx("td", { style: {
|
|
54
|
-
width: headCell.width,
|
|
55
|
-
minWidth: headCell.minWidth,
|
|
56
|
-
}, children: cellContent }, headCell.id));
|
|
57
|
-
}) }, rowIndex));
|
|
58
|
-
})) : (_jsx("tr", { className: styles.fallbackTableRow, children: fallback ? (_jsx("td", { colSpan: headCells?.length, children: fallback })) : (_jsx("td", { className: styles.fallbackContainer, colSpan: headCells?.length, children: _jsx("div", { className: styles.fallbackTextContainer, children: _jsx("span", { className: styles.fallbackText, children: " No Data Available" }) }) })) })) })] }) }), footer && _jsx("div", { className: styles.tableFooterContainer, children: footer })] }));
|
|
59
|
-
};
|
|
60
|
-
export default Table;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './Table';
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { useEffect, useState } from 'react';
|
|
3
|
-
import styles from './textArea.module.scss';
|
|
4
|
-
import Label from '../Label';
|
|
5
|
-
import HelperText from '../HelperText';
|
|
6
|
-
import ClearFieldSvg from '../../icons/ClearField';
|
|
7
|
-
import { Size } from '../../types';
|
|
8
|
-
const TextArea = ({ value, onChange, label, placeholder, name, size = Size.Medium, clearable = true, minRows, maxRows, errorMsg, disabled, maxLength = Infinity, required, startDecorator, endDecorator, className = '', dataId, direction = 'ltr', }) => {
|
|
9
|
-
const [textAreaRows, setTextAreaRows] = useState(minRows || 3);
|
|
10
|
-
useEffect(() => {
|
|
11
|
-
const numRows = (value?.match(/\n/g) || []).length + 1;
|
|
12
|
-
if (numRows > minRows && numRows <= maxRows) {
|
|
13
|
-
setTextAreaRows(numRows);
|
|
14
|
-
}
|
|
15
|
-
else if (numRows > maxRows) {
|
|
16
|
-
setTextAreaRows(maxRows);
|
|
17
|
-
}
|
|
18
|
-
}, [value, minRows, maxRows]);
|
|
19
|
-
return (_jsxs("div", { className: `${styles.textArea} ${errorMsg ? styles.errorMessage : ''} ${className}`, children: [label && _jsx(Label, { label: label, required: required }), _jsxs("div", { className: `${styles.containerTextArea} ${disabled ? styles.disabled : ''}`, dir: direction, children: [startDecorator && _jsx("div", { className: styles.startDecorator, children: startDecorator }), _jsx("textarea", { className: `${styles.inputField} ${startDecorator ? styles.withStartDecorator : ''} ${styles[size]} ${errorMsg ? styles.error : ''} `, "data-id": `${String(dataId ?? label)
|
|
20
|
-
?.toUpperCase()
|
|
21
|
-
?.replaceAll(' ', '_')}_TEXT_AREA_ID`, placeholder: placeholder, onChange: (e) => {
|
|
22
|
-
if (e.target.value?.length > maxLength) {
|
|
23
|
-
onChange?.(e.target.value?.slice(0, maxLength));
|
|
24
|
-
}
|
|
25
|
-
else {
|
|
26
|
-
onChange?.(e.target.value || '');
|
|
27
|
-
}
|
|
28
|
-
}, name: name, disabled: disabled, value: value || '', rows: textAreaRows }), endDecorator && _jsx("div", { className: styles.endDecorator, children: endDecorator }), clearable && !disabled && value && (_jsx("div", { className: `${styles.iconsContainer} ${direction === 'rtl' ? styles.rightToLeft : ''}`, children: _jsx(ClearFieldSvg, { width: '1rem', height: '1rem', "data-id": "CLEAR_ICON", onClick: () => onChange(''), className: `${styles.clearIcon} ${value ? styles.pointer : ''}` }) }))] }), errorMsg && _jsx(HelperText, { text: errorMsg, type: "error" })] }));
|
|
29
|
-
};
|
|
30
|
-
export default TextArea;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './TextArea';
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import Tippy from '@tippyjs/react';
|
|
3
|
-
import 'tippy.js/dist/tippy.css';
|
|
4
|
-
import './style.scss';
|
|
5
|
-
const Tooltip = ({ children, content, className = '', ...props }) => {
|
|
6
|
-
return (_jsx("div", { className: `${className} tooltipContainer`, children: _jsx(Tippy, { maxWidth: 390, delay: [400, 300], interactive: true, content: content, placement: "bottom-start", ...props, children: _jsx("div", { children: children }) }) }));
|
|
7
|
-
};
|
|
8
|
-
export default Tooltip;
|
package/dist/components/index.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export { default as Alert } from './Alert/index';
|
|
2
|
-
export { default as Button } from './Button/index';
|
|
3
|
-
export { default as Checkbox } from './Checkbox/index';
|
|
4
|
-
export { default as Chip } from './Chip/index';
|
|
5
|
-
export { default as Overlay } from './Overlay/index';
|
|
6
|
-
export { default as TextArea } from './TextArea/index';
|
|
7
|
-
export { default as Switch } from './Switch/index';
|
|
8
|
-
export { default as Dialog } from './Dialog/index';
|
|
9
|
-
export { default as Card } from './Card/index';
|
|
10
|
-
export { default as Radio } from './Radio/index';
|
|
11
|
-
export { default as SideDrawer } from './SideDrawer/index';
|
|
12
|
-
export { default as Accordion } from './Accordion/index';
|
|
13
|
-
export { default as Input } from './Input/index';
|
|
14
|
-
export { default as Table } from './Table/index';
|
|
15
|
-
export { default as RadioGroup } from './RadioGroup/index';
|
|
16
|
-
export { default as Date } from './Date/index';
|
|
17
|
-
export { default as DateRange } from './DateRange/index';
|
|
18
|
-
export { default as Pagination } from './Pagination/index';
|
|
19
|
-
export { default as SelectGroup } from './SelectGroup/index';
|
package/dist/constants/index.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
const AlertErrorIcon = ({ width = 18, height = 18, ...props }) => (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: width, height: height, fill: "none", viewBox: "0 0 18 18", ...props, children: _jsx("path", { fill: "#fff", fillRule: "evenodd", d: "M10.785 3.223a2.12 2.12 0 0 0-3.642.122L1.69 12.89l-.048.128c-.386 1.116.137 2.278 1.182 2.704l.167.06c.17.052.344.083.52.093l.063-.001.024.002h10.861l.132-.01a2.125 2.125 0 0 0 1.907-2.22 2.127 2.127 0 0 0-.154-.69l-5.49-9.618-.068-.115Zm-2.269.278a.996.996 0 0 1 1.357.388l5.461 9.56.016.072c.01.05.02.117.024.186a.997.997 0 0 1-.945 1.045L3.597 14.75h-.023l-.113-.012a.997.997 0 0 1-.762-1.359l5.425-9.484.061-.098a.985.985 0 0 1 .331-.297Zm-.078 8.701c0-.31.252-.567.562-.567a.56.56 0 0 1 .563.559v.008a.563.563 0 0 1-1.125 0ZM9.55 7.646a.563.563 0 0 0-1.12.076v2.325l.005.076a.563.563 0 0 0 1.12-.076V7.722l-.005-.076Z", clipRule: "evenodd" }) }));
|
|
3
|
-
export default AlertErrorIcon;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
const AlertInfoIcon = ({ width = 15, height = 16, ...props }) => (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: width, height: height, fill: "none", viewBox: "0 0 15 16", ...props, children: _jsx("path", { fill: "#12131A", fillRule: "evenodd", d: "M10.456.5H4.621C2.334.5.808 2.324.808 4.937v6.126c0 2.615 1.522 4.437 3.813 4.437h5.834c2.292 0 3.815-1.822 3.815-4.437V4.937C14.27 2.322 12.747.5 10.456.5ZM4.621 1.625h5.835c1.717 0 2.804 1.301 2.804 3.312v6.126c0 2.01-1.087 3.312-2.805 3.312H4.621c-1.716 0-2.803-1.301-2.803-3.312V4.937c0-2.008 1.09-3.312 2.803-3.312Zm2.917 2.966c.28 0 .505.251.505.562 0 .285-.19.52-.436.557l-.075.006c-.28 0-.505-.252-.505-.563 0-.285.19-.52.436-.557l.075-.005Zm-.006 2.38c.255 0 .466.21.5.485l.004.077v3.314c0 .31-.226.562-.504.562-.256 0-.467-.211-.5-.486l-.005-.076V7.533c0-.311.226-.563.505-.563Z", clipRule: "evenodd" }) }));
|
|
3
|
-
export default AlertInfoIcon;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
const AlertSuccessIcon = ({ width = 18, height = 18, ...props }) => (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: width, height: height, fill: "none", viewBox: "0 0 18 18", ...props, children: _jsx("path", { fill: "#fff", fillRule: "evenodd", d: "M12.251 1.5H5.749C3.201 1.5 1.5 3.325 1.5 5.937v6.126c0 2.615 1.697 4.437 4.25 4.437h6.5c2.554 0 4.25-1.822 4.25-4.437V5.937c0-2.615-1.696-4.437-4.249-4.437ZM5.749 2.625h6.502c1.913 0 3.125 1.301 3.125 3.312v6.126c0 2.011-1.212 3.312-3.126 3.312h-6.5c-1.913 0-3.125-1.3-3.125-3.312V5.937c0-2.008 1.216-3.312 3.124-3.312Zm6.319 4.198a.563.563 0 0 0-.796 0L8.11 9.984 6.728 8.602l-.063-.054a.563.563 0 0 0-.733.85l1.78 1.78.064.054c.22.164.533.145.732-.054l3.56-3.56.054-.063a.563.563 0 0 0-.054-.732Z", clipRule: "evenodd" }) }));
|
|
3
|
-
export default AlertSuccessIcon;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
const AlertWarningIcon = ({ width = 18, height = 18, ...props }) => (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: width, height: height, fill: "none", viewBox: "0 0 18 18", ...props, children: _jsx("path", { fill: "#200E32", fillRule: "evenodd", d: "M16.5 9a7.5 7.5 0 1 1-15.001-.001A7.5 7.5 0 0 1 16.5 9ZM2.625 9a6.375 6.375 0 1 0 12.75 0 6.375 6.375 0 0 0-12.75 0Zm6.379 3.41a.563.563 0 0 1-.558-.487l-.005-.076V8.533a.563.563 0 0 1 1.12-.077l.005.077v3.314c0 .31-.252.562-.562.562Zm-.57-6.257c0 .31.252.563.562.563l.084-.006a.563.563 0 0 0-.076-1.12l-.084.006a.563.563 0 0 0-.486.557Z", clipRule: "evenodd" }) }));
|
|
3
|
-
export default AlertWarningIcon;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
const ArrowBottom = ({ width = 24, height = 24, ...props }) => (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: width, height: height, fill: "none", viewBox: "0 0 24 24", ...props, children: _jsx("path", { d: "M15.671 14.981a.79.79 0 0 1-.53-.22l-2.94-3-2.94 3a.75.75 0 0 1-1.06-1.06l3.47-3.49a.77.77 0 0 1 1.06 0l3.47 3.49a.75.75 0 0 1 0 1.06.79.79 0 0 1-.53.22Z" }) }));
|
|
3
|
-
export default ArrowBottom;
|
package/dist/icons/ArrowLeft.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
const ArrowLeft = ({ width = 10, height = 16, ...props }) => (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: width, height: height, fill: "none", viewBox: "0 0 10 16", ...props, children: _jsx("path", { d: "M9.254.241c.298.292.325.75.081 1.072l-.08.092L2.526 8l6.727 6.595c.298.292.325.75.081 1.072l-.08.092a.852.852 0 0 1-1.094.08l-.094-.08L.746 8.582A.811.811 0 0 1 .665 7.51l.08-.092L8.068.241a.852.852 0 0 1 1.187 0Z" }) }));
|
|
3
|
-
export default ArrowLeft;
|
package/dist/icons/ArrowRight.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
const ArrowRight = ({ width = 10, height = 16, ...props }) => (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: width, height: height, fill: "none", viewBox: "0 0 10 16", ...props, children: _jsx("path", { d: "M.746 15.759a.811.811 0 0 1-.081-1.072l.08-.092L7.474 8 .746 1.405A.811.811 0 0 1 .665.333l.08-.092A.852.852 0 0 1 1.84.161l.094.08 7.321 7.177c.298.292.325.75.081 1.072l-.08.092-7.322 7.177a.851.851 0 0 1-1.187 0Z" }) }));
|
|
3
|
-
export default ArrowRight;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
const ArrowUpIcon = ({ width = 24, height = 24, ...props }) => (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: width, height: height, fill: "none", viewBox: "0 0 24 24", ...props, children: _jsx("path", { fill: "#142452", d: "M12.201 14.961a.75.75 0 0 1-.53-.22l-3.47-3.48a.75.75 0 0 1 1.06-1.06l2.94 3 2.94-3a.75.75 0 0 1 1.06 1.06l-3.47 3.49a.75.75 0 0 1-.53.21Z" }) }));
|
|
3
|
-
export default ArrowUpIcon;
|
package/dist/icons/Calendar.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
const Calendar = ({ width = 24, height = 24, ...props }) => (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: width, height: height, fill: "none", viewBox: "0 0 24 24", ...props, children: _jsx("path", { fill: "#BABDCC", fillRule: "evenodd", d: "M16.419 2.603A.694.694 0 0 0 15.733 2a.695.695 0 0 0-.693.698v.771H8.968v-.771l-.006-.095A.694.694 0 0 0 8.276 2a.695.695 0 0 0-.692.698v.788C4.747 3.682 3 5.52 3 8.486v8.418C3 20.087 4.958 22 8.096 22h7.808C19.045 22 21 20.12 21 16.974V8.486c.009-2.967-1.732-4.805-4.575-5v-.788l-.006-.095ZM15.04 4.864v.895l.007.095c.045.34.335.603.686.603a.695.695 0 0 0 .692-.698v-.874c2.069.172 3.197 1.418 3.19 3.599v.404H4.385v-.402c0-2.18 1.134-3.428 3.199-3.6v.873l.006.095c.046.34.335.603.686.603a.695.695 0 0 0 .692-.698v-.895h6.072ZM4.385 10.283v6.621c0 2.403 1.329 3.7 3.711 3.7h7.808c2.39 0 3.711-1.27 3.711-3.63v-6.691H4.385ZM16.8 13.218a.695.695 0 0 0-.692-.697l-.103.006a.696.696 0 0 0-.598.691c0 .386.31.698.7.698l.095-.006a.696.696 0 0 0 .598-.692Zm-4.788-.697c.382 0 .692.312.692.697 0 .354-.26.645-.598.692l-.094.006c-.391 0-.701-.312-.701-.698 0-.353.26-.645.598-.691l.103-.006Zm-3.413.697a.695.695 0 0 0-.692-.697l-.102.006a.696.696 0 0 0-.599.691c0 .386.31.698.693.698l.102-.006a.696.696 0 0 0 .598-.692Zm7.509 2.918c.382 0 .692.312.692.698 0 .353-.26.645-.598.691l-.094.006c-.391 0-.701-.312-.701-.697 0-.354.26-.645.598-.692l.103-.006Zm-3.404.698a.695.695 0 0 0-.692-.698l-.103.006a.696.696 0 0 0-.598.692c0 .385.31.697.7.697l.095-.006a.696.696 0 0 0 .598-.691Zm-4.797-.698c.382 0 .692.312.692.698 0 .353-.26.645-.598.691l-.102.006a.695.695 0 0 1-.693-.697c0-.354.26-.645.599-.692l.102-.006Z", clipRule: "evenodd" }) }));
|
|
3
|
-
export default Calendar;
|
package/dist/icons/CheckMark.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
const CheckMark = ({ width = 12, height = 12, ...props }) => (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: width, height: height, fill: "none", viewBox: "0 0 12 12", ...props, children: _jsx("path", { stroke: "#fff", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M10 3 4.5 8.5 2 6" }) }));
|
|
3
|
-
export default CheckMark;
|
package/dist/icons/ClearField.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
const ClearField = ({ width = 12, height = 12, ...props }) => (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: width, height: height, fill: "none", viewBox: "0 0 12 12", ...props, children: _jsx("path", { fill: "#9A9EB3", fillRule: "evenodd", d: "M12 6A6 6 0 1 1 0 6a6 6 0 0 1 12 0ZM3.46 3.46a.292.292 0 0 1 .413 0L6 5.588 8.127 3.46a.292.292 0 1 1 .413.413L6.412 6 8.54 8.127a.292.292 0 1 1-.413.413L6 6.412 3.873 8.54a.292.292 0 1 1-.413-.413L5.588 6 3.46 3.873a.292.292 0 0 1 0-.413Z", clipRule: "evenodd" }) }));
|
|
3
|
-
export default ClearField;
|
package/dist/icons/CloseIcon.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
const CloseIcon = ({ width = 24, height = 24, ...props }) => (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: width, height: height, fill: "none", viewBox: "0 0 24 24", ...props, children: _jsx("path", { stroke: "#000", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.5, d: "m6 6 12 12M18 6 6 18" }) }));
|
|
3
|
-
export default CloseIcon;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
const DoubleLeftArrow = ({ width = 24, height = 24, ...props }) => (_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: width, height: height, fill: "none", viewBox: "0 0 24 24", ...props, children: [_jsx("path", { fill: "#142452", d: "M12.754 19.759a.811.811 0 0 0 .081-1.072l-.08-.092L6.026 12l6.727-6.595a.811.811 0 0 0 .081-1.072l-.08-.092a.852.852 0 0 0-1.094-.08l-.094.08-7.321 7.177a.811.811 0 0 0-.081 1.072l.08.092 7.322 7.177a.851.851 0 0 0 1.187 0Z" }), _jsx("path", { fill: "#142452", d: "M20.254 19.759a.811.811 0 0 0 .081-1.072l-.08-.092L13.526 12l6.727-6.595a.811.811 0 0 0 .081-1.072l-.08-.092a.852.852 0 0 0-1.094-.08l-.094.08-7.321 7.177a.811.811 0 0 0-.081 1.072l.08.092 7.322 7.177a.851.851 0 0 0 1.187 0Z" })] }));
|
|
3
|
-
export default DoubleLeftArrow;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
const DoubleRightArrow = ({ width = 24, height = 24, ...props }) => (_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: width, height: height, fill: "none", viewBox: "0 0 24 24", ...props, children: [_jsx("path", { fill: "#142452", d: "M11.746 19.759a.811.811 0 0 1-.081-1.072l.08-.092L18.474 12l-6.727-6.595a.811.811 0 0 1-.081-1.072l.08-.092a.852.852 0 0 1 1.094-.08l.094.08 7.321 7.177c.298.292.325.75.081 1.072l-.08.092-7.322 7.177a.851.851 0 0 1-1.187 0Z" }), _jsx("path", { fill: "#142452", d: "M4.246 19.759a.811.811 0 0 1-.081-1.072l.08-.092L10.974 12 4.246 5.405a.811.811 0 0 1-.081-1.072l.08-.092a.852.852 0 0 1 1.094-.08l.094.08 7.321 7.177c.298.292.325.75.081 1.072l-.08.092-7.322 7.177a.851.851 0 0 1-1.187 0Z" })] }));
|
|
3
|
-
export default DoubleRightArrow;
|
package/dist/icons/ExcelIcon.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
const ExcelIcon = ({ width = 24, height = 24, ...props }) => (_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: width, height: height, fill: "none", viewBox: "0 0 24 24", ...props, children: [_jsx("path", { stroke: "#142452", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.5, d: "M13.716 3.23c.536 0 1.049.222 1.421.614l3.643 3.848c.353.373.55.869.55 1.384v7.957c.013 2.002-1.541 3.656-3.516 3.736H8.198c-1.99-.045-3.57-1.717-3.527-3.736V6.793c.047-1.987 1.653-3.571 3.614-3.563h5.43Z" }), _jsx("path", { stroke: "#142452", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.5, d: "M14.197 3.465V6.08c0 1.39 1.088 2.52 2.434 2.523h2.61M10.436 17.85h2.8c1.155 0 2.1-.944 2.1-2.1v-2.8c0-1.154-.945-2.1-2.1-2.1h-2.8c-1.155 0-2.1.946-2.1 2.1v2.8c0 1.156.945 2.1 2.1 2.1ZM11.836 10.85v7M8.336 14.35h7" })] }));
|
|
3
|
-
export default ExcelIcon;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
const HidePasswordIcon = ({ width = 20, height = 18, ...props }) => (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: width, height: height, fill: "none", viewBox: "0 0 20 18", ...props, children: _jsx("path", { d: "M18.418.716a.759.759 0 0 0-1.06 0l-2.089 2.055C13.656 1.663 11.855 1.075 10 1.075c-2.057 0-4.053.72-5.781 2.067C2.51 4.464 1.087 6.371.06 8.708a.727.727 0 0 0 0 .584c.885 2.03 2.075 3.733 3.493 5.008l-1.97 1.94-.074.083a.73.73 0 0 0 .073.96.758.758 0 0 0 1.06 0L18.419 1.76l.072-.083a.73.73 0 0 0-.072-.96ZM4.616 13.255l2.138-2.104A3.764 3.764 0 0 1 6.086 9c0-2.133 1.748-3.854 3.914-3.854.792 0 1.553.235 2.187.658l2.002-1.971C12.882 2.99 11.457 2.552 10 2.552c-1.71 0-3.38.602-4.852 1.749-1.41 1.091-2.619 2.66-3.53 4.6L1.57 9l.046.1c.793 1.694 1.814 3.103 3 4.154Zm6.478-6.375A2.44 2.44 0 0 0 10 6.624c-1.338 0-2.414 1.06-2.414 2.377 0 .384.09.748.26 1.075l3.248-3.196Zm2.043 1.936.101.01a.74.74 0 0 1 .605.858c-.287 1.573-1.544 2.812-3.14 3.097a.75.75 0 0 1-.873-.594.74.74 0 0 1 .604-.858 2.389 2.389 0 0 0 1.933-1.906.748.748 0 0 1 .77-.607Zm3.86-3.502a.758.758 0 0 1 1.05.146c.726.95 1.36 2.039 1.891 3.247a.727.727 0 0 1 0 .586c-2.077 4.736-5.803 7.631-9.938 7.631-.941 0-1.872-.15-2.77-.444a.736.736 0 0 1-.473-.934.753.753 0 0 1 .948-.466 7.339 7.339 0 0 0 2.295.368c3.305 0 6.381-2.262 8.273-6.118L18.428 9l-.053-.116a14.332 14.332 0 0 0-1.285-2.21l-.241-.327a.73.73 0 0 1 .148-1.034Z", clipRule: "evenodd" }) }));
|
|
3
|
-
export default HidePasswordIcon;
|
package/dist/icons/InfoIcon.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
const InfoIcon = ({ width = 18, height = 18, ...props }) => (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: width, height: height, fill: "none", viewBox: "0 0 18 18", ...props, children: _jsx("path", { fill: "#200E32", fillRule: "evenodd", d: "M16.5 9a7.5 7.5 0 1 1-15.001-.001A7.5 7.5 0 0 1 16.5 9ZM2.625 9a6.375 6.375 0 1 0 12.75 0 6.375 6.375 0 0 0-12.75 0Zm6.379 3.41a.563.563 0 0 1-.558-.487l-.005-.076V8.533a.563.563 0 0 1 1.12-.077l.005.077v3.314c0 .31-.252.562-.562.562Zm-.57-6.257c0 .31.252.563.562.563l.084-.006a.563.563 0 0 0-.076-1.12l-.084.006a.563.563 0 0 0-.486.557Z", clipRule: "evenodd" }) }));
|
|
3
|
-
export default InfoIcon;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
const LeftArrowIcon = ({ width = 8, height = 14, ...props }) => (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: width, height: height, fill: "none", viewBox: "0 0 8 14", ...props, children: _jsx("path", { stroke: "#142452", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M7 1 1 7l6 6" }) }));
|
|
3
|
-
export default LeftArrowIcon;
|
package/dist/icons/LoaderIcon.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
const LoaderIcon = ({ width = 24, height = 24, ...props }) => (_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: width, height: height, fill: "none", viewBox: "0 0 24 24", ...props, children: [_jsx("path", { fill: "#142452", d: "M24 12c0 6.627-5.373 12-12 12S0 18.627 0 12 5.373 0 12 0s12 5.373 12 12ZM2.4 12a9.6 9.6 0 1 0 19.2 0 9.6 9.6 0 0 0-19.2 0Z" }), _jsx("path", { fill: "#fff", d: "M12 0a12 12 0 1 1-6 22.392l1.2-2.078A9.6 9.6 0 1 0 12 2.4V0Z" })] }));
|
|
3
|
-
export default LoaderIcon;
|
package/dist/icons/PdfIcon.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
const PdfIcon = ({ width = 24, height = 24, ...props }) => (_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: width, height: height, fill: "none", viewBox: "0 0 24 24", ...props, children: [_jsx("path", { stroke: "#142452", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.5, d: "M19.831 12.952V9.16c0-.544-.21-1.067-.586-1.459L15.35 3.647A2.107 2.107 0 0 0 13.832 3H8.03a3.847 3.847 0 0 0-3.861 3.756v6.196" }), _jsx("path", { stroke: "#142452", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.5, d: "M14.328 3.063v2.97a2.628 2.628 0 0 0 2.623 2.63h2.813M4.416 19.472h1.397a1.547 1.547 0 0 0 0-3.093H4.416v4.615M19.83 16.375h-2.506v4.626m2.12-1.927h-2.12" }), _jsx("path", { stroke: "#142452", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.5, d: "M11.654 21a2.313 2.313 0 0 0 0-4.625h-1.156v4.626h1.156Z", clipRule: "evenodd" })] }));
|
|
3
|
-
export default PdfIcon;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
const RightArrowIcon = ({ width = 8, height = 14, ...props }) => (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: width, height: height, fill: "none", viewBox: "0 0 8 14", ...props, children: _jsx("path", { stroke: "#142452", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "m1 1 6 6-6 6" }) }));
|
|
3
|
-
export default RightArrowIcon;
|
package/dist/icons/SearchIcon.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
const SearchIcon = ({ width = 24, height = 24, ...props }) => (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: width, height: height, fill: "none", viewBox: "0 0 24 24", ...props, children: _jsx("path", { d: "M11.611 2C6.303 2 2 6.208 2 11.4c0 5.19 4.303 9.399 9.611 9.399 2.27 0 4.357-.77 6.002-2.058l3.124 3.048.083.07c.29.21.701.186.964-.072a.713.713 0 0 0-.002-1.023l-3.087-3.012a9.253 9.253 0 0 0 2.528-6.353C21.223 6.21 16.92 2 11.612 2Zm0 1.448c4.491 0 8.132 3.56 8.132 7.951 0 4.392-3.64 7.952-8.131 7.952S3.48 15.79 3.48 11.399c0-4.391 3.64-7.951 8.131-7.951Z", clipRule: "evenodd" }) }));
|
|
3
|
-
export default SearchIcon;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
const SelectFieldDownArrow = ({ width = 24, height = 24, ...props }) => (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: width, height: height, fill: "none", viewBox: "0 0 24 24", ...props, children: _jsx("path", { fill: "#142452", d: "M12.201 14.961a.75.75 0 0 1-.53-.22l-3.47-3.48a.75.75 0 0 1 1.06-1.06l2.94 3 2.94-3a.75.75 0 0 1 1.06 1.06l-3.47 3.49a.75.75 0 0 1-.53.21Z" }) }));
|
|
3
|
-
export default SelectFieldDownArrow;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
const SelectFieldUpArrow = ({ width = 24, height = 24, ...props }) => (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: width, height: height, fill: "none", viewBox: "0 0 24 24", ...props, children: _jsx("path", { fill: "#142452", d: "M15.671 14.981a.79.79 0 0 1-.53-.22l-2.94-3-2.94 3a.75.75 0 0 1-1.06-1.06l3.47-3.49a.77.77 0 0 1 1.06 0l3.47 3.49a.75.75 0 0 1 0 1.06.79.79 0 0 1-.53.22Z" }) }));
|
|
3
|
-
export default SelectFieldUpArrow;
|