react-restyle-components 0.2.92 → 0.2.94
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/lib/src/core-components/index.d.ts +1 -0
- package/lib/src/core-components/index.d.ts.map +1 -1
- package/lib/src/core-components/index.js +1 -0
- package/lib/src/core-components/jest.config.d.ts +2 -2
- package/lib/src/core-components/jest.config.js +2 -2
- package/lib/src/core-components/src/App.d.ts.map +1 -1
- package/lib/src/core-components/src/atoms/button/Button.spec.d.ts +2 -0
- package/lib/src/core-components/src/atoms/button/Button.spec.d.ts.map +1 -0
- package/lib/src/core-components/src/atoms/button/{Button.test.js → Button.spec.js} +1 -1
- package/lib/src/core-components/src/atoms/check-box/checkBox.spec.js +1 -2
- package/lib/src/core-components/src/molecules/auto-complete-filter-multi-select-selected-top-display/auto-complete-filter-multi-select-selected-top-display.component.d.ts +17 -0
- package/lib/src/core-components/src/molecules/auto-complete-filter-multi-select-selected-top-display/auto-complete-filter-multi-select-selected-top-display.component.d.ts.map +1 -0
- package/lib/src/core-components/src/molecules/auto-complete-filter-multi-select-selected-top-display/auto-complete-filter-multi-select-selected-top-display.component.js +90 -0
- package/lib/src/core-components/src/molecules/auto-complete-group-by/auto-complete-group-by.component.spec.d.ts +2 -0
- package/lib/src/core-components/src/molecules/auto-complete-group-by/auto-complete-group-by.component.spec.d.ts.map +1 -0
- package/lib/src/core-components/src/molecules/auto-complete-group-by/{auto-complete-group-by.component.test.js → auto-complete-group-by.component.spec.js} +1 -0
- package/lib/src/core-components/src/molecules/color-picker-modal/color-picker-modal.spec.js +5 -2
- package/lib/src/core-hooks/src/usePreventEKey/usePreventEKey.hook.d.ts +1 -0
- package/lib/src/core-hooks/src/usePreventEKey/usePreventEKey.hook.d.ts.map +1 -1
- package/lib/src/core-utils/src/uuid/uuid.util.js +1 -1
- package/package.json +1 -1
- package/lib/src/core-components/src/atoms/button/Button.test.d.ts +0 -2
- package/lib/src/core-components/src/atoms/button/Button.test.d.ts.map +0 -1
- package/lib/src/core-components/src/molecules/auto-complete-group-by/auto-complete-group-by.component.test.d.ts +0 -2
- package/lib/src/core-components/src/molecules/auto-complete-group-by/auto-complete-group-by.component.test.d.ts.map +0 -1
|
@@ -30,5 +30,6 @@ export * from './src/molecules/auto-complete-group-by/auto-complete-group-by.com
|
|
|
30
30
|
export * from './src/molecules/color-picker/color-picker.component';
|
|
31
31
|
export * from './src/molecules/color-picker-modal/color-picker-modal.component';
|
|
32
32
|
export * from './src/molecules/auto-complete-filter-single-select/auto-complete-filter-single-select.component';
|
|
33
|
+
export * from './src/molecules/auto-complete-filter-multi-select-selected-top-display/auto-complete-filter-multi-select-selected-top-display.component';
|
|
33
34
|
export { Form };
|
|
34
35
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core-components/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,iCAAiC,CAAC;AACxD,cAAc,qCAAqC,CAAC;AACpD,cAAc,sDAAsD,CAAC;AACrE,cAAc,0CAA0C,CAAC;AACzD,cAAc,+CAA+C,CAAC;AAC9D,cAAc,uCAAuC,CAAC;AACtD,cAAc,uCAAuC,CAAC;AACtD,cAAc,mCAAmC,CAAC;AAClD,cAAc,qDAAqD,CAAC;AACpE,cAAc,qCAAqC,CAAC;AACpD,cAAc,mCAAmC,CAAC;AAClD,cAAc,uCAAuC,CAAC;AACtD,cAAc,mCAAmC,CAAC;AAClD,cAAc,uCAAuC,CAAC;AACtD,cAAc,mCAAmC,CAAC;AAClD,cAAc,iCAAiC,CAAC;AAChD,cAAc,uCAAuC,CAAC;AACtD,cAAc,sCAAsC,CAAC;AACrD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,6CAA6C,CAAC;AAE5D,cAAc,mEAAmE,CAAC;AAClF,cAAc,qJAAqJ,CAAC;AACpK,cAAc,iJAAiJ,CAAC;AAChK,cAAc,qDAAqD,CAAC;AACpE,cAAc,2EAA2E,CAAC;AAC1F,cAAc,uCAAuC,CAAC;AACtD,cAAc,uDAAuD,CAAC;AACtE,cAAc,2CAA2C,CAAC;AAC1D,cAAc,yEAAyE,CAAC;AACxF,cAAc,qDAAqD,CAAC;AACpE,cAAc,iEAAiE,CAAC;AAChF,cAAc,iGAAiG,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core-components/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,iCAAiC,CAAC;AACxD,cAAc,qCAAqC,CAAC;AACpD,cAAc,sDAAsD,CAAC;AACrE,cAAc,0CAA0C,CAAC;AACzD,cAAc,+CAA+C,CAAC;AAC9D,cAAc,uCAAuC,CAAC;AACtD,cAAc,uCAAuC,CAAC;AACtD,cAAc,mCAAmC,CAAC;AAClD,cAAc,qDAAqD,CAAC;AACpE,cAAc,qCAAqC,CAAC;AACpD,cAAc,mCAAmC,CAAC;AAClD,cAAc,uCAAuC,CAAC;AACtD,cAAc,mCAAmC,CAAC;AAClD,cAAc,uCAAuC,CAAC;AACtD,cAAc,mCAAmC,CAAC;AAClD,cAAc,iCAAiC,CAAC;AAChD,cAAc,uCAAuC,CAAC;AACtD,cAAc,sCAAsC,CAAC;AACrD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,6CAA6C,CAAC;AAE5D,cAAc,mEAAmE,CAAC;AAClF,cAAc,qJAAqJ,CAAC;AACpK,cAAc,iJAAiJ,CAAC;AAChK,cAAc,qDAAqD,CAAC;AACpE,cAAc,2EAA2E,CAAC;AAC1F,cAAc,uCAAuC,CAAC;AACtD,cAAc,uDAAuD,CAAC;AACtE,cAAc,2CAA2C,CAAC;AAC1D,cAAc,yEAAyE,CAAC;AACxF,cAAc,qDAAqD,CAAC;AACpE,cAAc,iEAAiE,CAAC;AAChF,cAAc,iGAAiG,CAAC;AAChH,cAAc,yIAAyI,CAAC;AAExJ,OAAO,EAAC,IAAI,EAAC,CAAC"}
|
|
@@ -30,4 +30,5 @@ export * from './src/molecules/auto-complete-group-by/auto-complete-group-by.com
|
|
|
30
30
|
export * from './src/molecules/color-picker/color-picker.component';
|
|
31
31
|
export * from './src/molecules/color-picker-modal/color-picker-modal.component';
|
|
32
32
|
export * from './src/molecules/auto-complete-filter-single-select/auto-complete-filter-single-select.component';
|
|
33
|
+
export * from './src/molecules/auto-complete-filter-multi-select-selected-top-display/auto-complete-filter-multi-select-selected-top-display.component';
|
|
33
34
|
export { Form };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
-
|
|
2
|
+
preset: string;
|
|
3
3
|
testEnvironment: string;
|
|
4
4
|
transform: {
|
|
5
5
|
'^.+\\.tsx?$': string;
|
|
6
6
|
};
|
|
7
7
|
moduleNameMapper: {
|
|
8
|
-
'\\.(css|sass)$': string;
|
|
8
|
+
'\\.(css|scss|sass|less|style|svg)$': string;
|
|
9
9
|
};
|
|
10
10
|
};
|
|
11
11
|
export default _default;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export default {
|
|
2
|
-
|
|
2
|
+
preset: 'ts-jest',
|
|
3
3
|
testEnvironment: 'jest-environment-jsdom',
|
|
4
4
|
transform: {
|
|
5
5
|
'^.+\\.tsx?$': 'ts-jest',
|
|
6
6
|
},
|
|
7
7
|
moduleNameMapper: {
|
|
8
|
-
'\\.(css|sass)$': '<rootDir>/
|
|
8
|
+
'\\.(css|scss|sass|less|style|svg)$': '<rootDir>/__mocks__/styleMock.ts',
|
|
9
9
|
},
|
|
10
10
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../../../src/core-components/src/App.tsx"],"names":[],"mappings":"AACA,OAAO,WAAW,CAAC;AAInB,iBAAS,GAAG,
|
|
1
|
+
{"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../../../src/core-components/src/App.tsx"],"names":[],"mappings":"AACA,OAAO,WAAW,CAAC;AAInB,iBAAS,GAAG,4CAcX;AAED,eAAe,GAAG,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.spec.d.ts","sourceRoot":"","sources":["../../../../../../src/core-components/src/atoms/button/Button.spec.tsx"],"names":[],"mappings":"AAEA,OAAO,2BAA2B,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { describe, it, expect } from 'vitest';
|
|
3
2
|
import { render, screen, fireEvent } from '@testing-library/react';
|
|
3
|
+
import '@testing-library/jest-dom';
|
|
4
4
|
import { Button } from './button.component';
|
|
5
5
|
import { TooltipProvider } from '../tooltip/tooltip.component';
|
|
6
6
|
describe('Renders a button', async () => {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { render, screen, fireEvent } from '@testing-library/react';
|
|
3
3
|
import '@testing-library/jest-dom';
|
|
4
|
-
import { vi } from 'vitest';
|
|
5
4
|
import { CheckBox } from './checkBox.component';
|
|
6
5
|
describe('CheckBox Component', () => {
|
|
7
6
|
test('renders CheckBox with default props', () => {
|
|
@@ -15,7 +14,7 @@ describe('CheckBox Component', () => {
|
|
|
15
14
|
expect(screen.getByText('Custom Bank')).toBeInTheDocument();
|
|
16
15
|
});
|
|
17
16
|
test('calls onChange with correct arguments when checkbox is clicked', () => {
|
|
18
|
-
const handleChange =
|
|
17
|
+
const handleChange = jest.fn();
|
|
19
18
|
render(_jsx(CheckBox, { title: "Banks", data: [{ title: 'SBI Bank', checked: false }], onChange: handleChange }));
|
|
20
19
|
fireEvent.click(screen.getByText('SBI Bank'));
|
|
21
20
|
expect(handleChange).toHaveBeenCalledWith([
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface AutoCompleteFilterMultiSelectSelectedTopDisplayProps {
|
|
2
|
+
uniqueField?: string;
|
|
3
|
+
loader?: boolean;
|
|
4
|
+
placeholder?: string;
|
|
5
|
+
data: any;
|
|
6
|
+
hasError?: boolean;
|
|
7
|
+
disable?: boolean;
|
|
8
|
+
isUpperCase?: boolean;
|
|
9
|
+
name?: string;
|
|
10
|
+
onFilter?: (value: string) => void;
|
|
11
|
+
onUpdate: (item: any) => void;
|
|
12
|
+
onSelect: (item: any, isSelectedRemove?: boolean) => any;
|
|
13
|
+
onBlur?: (e: any) => void;
|
|
14
|
+
dynamicCheck?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare const AutoCompleteFilterMultiSelectSelectedTopDisplay: ({ uniqueField, placeholder, data, hasError, disable, isUpperCase, name, onFilter, onUpdate, onSelect, onBlur, dynamicCheck, }: AutoCompleteFilterMultiSelectSelectedTopDisplayProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
//# sourceMappingURL=auto-complete-filter-multi-select-selected-top-display.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auto-complete-filter-multi-select-selected-top-display.component.d.ts","sourceRoot":"","sources":["../../../../../../src/core-components/src/molecules/auto-complete-filter-multi-select-selected-top-display/auto-complete-filter-multi-select-selected-top-display.component.tsx"],"names":[],"mappings":"AAQA,MAAM,WAAW,oDAAoD;IACnE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,GAAG,CAAC;IACV,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,QAAQ,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI,CAAC;IAC9B,QAAQ,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,gBAAgB,CAAC,EAAE,OAAO,KAAK,GAAG,CAAC;IACzD,MAAM,CAAC,EAAE,CAAC,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,eAAO,MAAM,+CAA+C,kIAazD,oDAAoD,4CA6NtD,CAAC"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
import React, { useState, useEffect, useRef } from 'react';
|
|
4
|
+
import _ from 'lodash';
|
|
5
|
+
import { Icon } from '../../atoms/icons/icons.component';
|
|
6
|
+
import { debounce } from '@techabl/core-utils';
|
|
7
|
+
import s from '../../tc.module.css';
|
|
8
|
+
import { cn } from '../../utils';
|
|
9
|
+
export const AutoCompleteFilterMultiSelectSelectedTopDisplay = ({ uniqueField = '_id', placeholder = 'Search...', data, hasError = false, disable = false, isUpperCase = false, name, onFilter, onUpdate, onSelect, onBlur, dynamicCheck = 'panelCode', }) => {
|
|
10
|
+
const [value, setValue] = useState('');
|
|
11
|
+
const [options, setOptions] = useState();
|
|
12
|
+
const [originalOptions, setOriginalOptions] = useState();
|
|
13
|
+
const [isListOpen, setIsListOpen] = useState(false);
|
|
14
|
+
const useOutsideAlerter = (ref) => {
|
|
15
|
+
useEffect(() => {
|
|
16
|
+
function handleClickOutside(event) {
|
|
17
|
+
if (ref.current && !ref.current.contains(event.target) && isListOpen) {
|
|
18
|
+
if (originalOptions && options) {
|
|
19
|
+
if (isListOpen) {
|
|
20
|
+
onUpdate && onUpdate(data.selected);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
setIsListOpen(false);
|
|
24
|
+
setValue('');
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
document.addEventListener('mousedown', handleClickOutside);
|
|
28
|
+
return () => {
|
|
29
|
+
document.removeEventListener('mousedown', handleClickOutside);
|
|
30
|
+
};
|
|
31
|
+
}, [ref, isListOpen]);
|
|
32
|
+
};
|
|
33
|
+
const wrapperRef = useRef(null);
|
|
34
|
+
useOutsideAlerter(wrapperRef);
|
|
35
|
+
let count = 0;
|
|
36
|
+
const getSelectedItem = (selectedItem, list) => {
|
|
37
|
+
if (count === 0) {
|
|
38
|
+
const finalList = list?.filter((item, index) => {
|
|
39
|
+
item.selected = false;
|
|
40
|
+
selectedItem && selectedItem.length > 0
|
|
41
|
+
? selectedItem?.find((sItem, index) => {
|
|
42
|
+
if (sItem[uniqueField] === item[uniqueField]) {
|
|
43
|
+
item.selected = true;
|
|
44
|
+
}
|
|
45
|
+
})
|
|
46
|
+
: (item.selected = false);
|
|
47
|
+
count++;
|
|
48
|
+
return item;
|
|
49
|
+
});
|
|
50
|
+
list = finalList;
|
|
51
|
+
}
|
|
52
|
+
return list;
|
|
53
|
+
};
|
|
54
|
+
useEffect(() => {
|
|
55
|
+
setOriginalOptions(getSelectedItem(data.selected, data.list));
|
|
56
|
+
setOptions(getSelectedItem(data.selected, data.list));
|
|
57
|
+
}, [data, data.selected]);
|
|
58
|
+
const onChange = (e) => {
|
|
59
|
+
const search = e.target.value;
|
|
60
|
+
setValue(search);
|
|
61
|
+
debounce(() => {
|
|
62
|
+
onFilter && onFilter(search);
|
|
63
|
+
});
|
|
64
|
+
};
|
|
65
|
+
const onKeyUp = (e) => {
|
|
66
|
+
const charCode = e.which ? e.which : e.keyCode;
|
|
67
|
+
if (charCode === 8) {
|
|
68
|
+
const search = e.target.value;
|
|
69
|
+
debounce(() => {
|
|
70
|
+
onFilter && onFilter(search);
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
return (_jsx(_Fragment, { children: _jsxs("div", { ref: wrapperRef, className: cn(s['w-full'], s['relative']), children: [_jsxs("div", { className: cn(s['flex'], s['items-center'], s['leading-4'], s['p-2'], s['focus:outline-none'], s['focus:ring'], s['w-full'], s['shadow-sm'], s['sm:text-base'], s['border'], s['rounded-md'], {
|
|
75
|
+
[s['border-red']]: hasError,
|
|
76
|
+
[s['border-gray-300']]: !hasError,
|
|
77
|
+
}), children: [_jsx("input", { placeholder: placeholder, disabled: disable, name: name, value: !isListOpen
|
|
78
|
+
? `${(data.selected && data.selected.length) || 0} Items`
|
|
79
|
+
: isUpperCase
|
|
80
|
+
? value?.toUpperCase()
|
|
81
|
+
: value, className: cn(s['w-full'], s['focus:outline-none'], s['bg-none']), onKeyUp: onKeyUp, onChange: onChange, onClick: () => setIsListOpen(true), onBlur: (e) => onBlur && onBlur(e) }), isListOpen ? (_jsx(Icon, { nameIcon: "FaChevronUp" })) : (_jsx(Icon, { nameIcon: "FaChevronDown" }))] }), options && isListOpen ? (options?.length > 0 ? (_jsxs("div", { className: cn(s['mt-1'], s['absolute'], s['bg-gray-100'], s['p-2'], s['rounded-sm'], s['z-500']), style: { zIndex: 80, width: '100%' }, children: [_jsx("ul", { children: data.selected?.map((item, index) => (_jsx(React.Fragment, { children: _jsx("li", { className: cn(s['text-gray-400'], s['flex'], s['items-center']), children: _jsxs("label", { className: cn(s['flex']), children: [_jsx("input", { type: "checkbox", checked: true, onChange: () => onSelect({ ...item, selected: true }, true) }), ' ', _jsx("span", { className: cn(s['ml-2'], s['mt-1'], s['text-black']), children: data.displayKey
|
|
82
|
+
.map((key) => `${item[key]}
|
|
83
|
+
`)
|
|
84
|
+
.join(' - ') })] }) }, index) }, index))) }), _jsx("hr", {}), _jsx("ul", { className: cn(s['p-2'], s['rounded-sm']), children: _jsx("div", { children: _jsx("div", { style: { height: 'auto', maxHeight: '300px' }, children: options?.map((item, index) => (_jsx(React.Fragment, { children: _.some(data.selected, {
|
|
85
|
+
[dynamicCheck]: item[dynamicCheck],
|
|
86
|
+
}) == false && (_jsx("li", { className: cn(s['text-gray-400'], s['flex'], s['items-center']), children: _jsxs("label", { className: cn(s['flex']), children: [_jsx("input", { type: "checkbox", checked: item.selected, onChange: () => onSelect(item) }), ' ', _jsx("span", { className: cn(s['ml-2'], s['mt-1'], s['text-black']), children: data.displayKey
|
|
87
|
+
.map((key) => `${item[key]}
|
|
88
|
+
`)
|
|
89
|
+
.join(' - ') })] }) }, index)) }, index))) }) }) })] })) : (_jsx("span", { className: cn(s['text-gray-400'], s['p-2']), children: "Item not found!" }))) : null] }) }));
|
|
90
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auto-complete-group-by.component.spec.d.ts","sourceRoot":"","sources":["../../../../../../src/core-components/src/molecules/auto-complete-group-by/auto-complete-group-by.component.spec.tsx"],"names":[],"mappings":"AAEA,OAAO,2BAA2B,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { render } from '@testing-library/react';
|
|
3
|
+
import '@testing-library/jest-dom';
|
|
3
4
|
import { AutocompleteGroupBy } from './auto-complete-group-by.component';
|
|
4
5
|
describe('AutocompleteGroupBy component', () => {
|
|
5
6
|
it('render autocompleteGroupBy correctly', () => {
|
|
@@ -2,6 +2,9 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { render } from '@testing-library/react';
|
|
3
3
|
import '@testing-library/jest-dom';
|
|
4
4
|
import { ColorPickerModal } from './color-picker-modal.component';
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
describe('ColorPickerModal', () => {
|
|
6
|
+
it('renders without crashing', () => {
|
|
7
|
+
const { container } = render(_jsx(ColorPickerModal, { color: "#000000", onChange: () => { } }));
|
|
8
|
+
expect(container).toBeInTheDocument();
|
|
9
|
+
});
|
|
7
10
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usePreventEKey.hook.d.ts","sourceRoot":"","sources":["../../../../../src/core-hooks/src/usePreventEKey/usePreventEKey.hook.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"usePreventEKey.hook.d.ts","sourceRoot":"","sources":["../../../../../src/core-hooks/src/usePreventEKey/usePreventEKey.hook.ts"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAEzC,eAAO,MAAM,cAAc,YACF,mBAAmB,CAAC,gBAAgB,CAAC,SAK7D,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable unicorn/prefer-math-trunc */
|
|
2
|
-
import _ from 'lodash';
|
|
2
|
+
import * as _ from 'lodash';
|
|
3
3
|
export function uuidv4(len) {
|
|
4
4
|
return _.repeat('x', len).replace(/[xy]/g, function (c) {
|
|
5
5
|
const r = (Math.random() * len) | 0, v = c === 'x' ? r : (r & 0x3) | 0x8;
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Button.test.d.ts","sourceRoot":"","sources":["../../../../../../src/core-components/src/atoms/button/Button.test.tsx"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auto-complete-group-by.component.test.d.ts","sourceRoot":"","sources":["../../../../../../src/core-components/src/molecules/auto-complete-group-by/auto-complete-group-by.component.test.tsx"],"names":[],"mappings":""}
|