react-restyle-components 0.2.42 → 0.2.44
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/package.json +7 -5
- package/lib/src/App.css +45 -0
- package/lib/src/assets/styles/colors.css +217 -0
- package/lib/src/assets/styles/decorations.css +15 -0
- package/lib/src/assets/styles/fontface.css +17 -0
- package/lib/src/assets/styles/scrollbars.css +70 -0
- package/lib/src/assets/styles/typography.css +3 -0
- package/lib/src/core-components/atoms/button/button.component.d.ts +0 -3
- package/lib/src/core-components/atoms/button/button.component.d.ts.map +1 -1
- package/lib/src/core-components/atoms/button/button.component.js +1 -4
- package/lib/src/core-components/atoms/button/buttonGroup/buttonGroup.component.d.ts +0 -1
- package/lib/src/core-components/atoms/button/buttonGroup/buttonGroup.component.d.ts.map +1 -1
- package/lib/src/core-components/atoms/button/buttonGroup/buttonGroup.component.js +3 -2
- package/lib/src/core-components/atoms/check-box/checkBox.component.d.ts +0 -1
- package/lib/src/core-components/atoms/check-box/checkBox.component.d.ts.map +1 -1
- package/lib/src/core-components/atoms/check-box/checkBox.component.js +4 -5
- package/lib/src/core-components/atoms/date-picker/date-picker.component.d.ts +0 -1
- package/lib/src/core-components/atoms/date-picker/date-picker.component.d.ts.map +1 -1
- package/lib/src/core-components/atoms/date-picker/date-picker.component.js +4 -3
- package/lib/src/core-components/atoms/form/form.component.d.ts.map +1 -1
- package/lib/src/core-components/atoms/form/form.component.js +37 -13
- package/lib/src/core-components/atoms/grid/grid.component.d.ts +0 -1
- package/lib/src/core-components/atoms/grid/grid.component.d.ts.map +1 -1
- package/lib/src/core-components/atoms/grid/grid.component.js +3 -2
- package/lib/src/core-components/atoms/icons/icons.component.d.ts.map +1 -1
- package/lib/src/core-components/atoms/icons/icons.component.js +4 -2
- package/lib/src/core-components/atoms/input/input-otp.component.d.ts +0 -1
- package/lib/src/core-components/atoms/input/input-otp.component.d.ts.map +1 -1
- package/lib/src/core-components/atoms/input/input-otp.component.js +3 -2
- package/lib/src/core-components/atoms/input/input-otp.styles.css +35 -0
- package/lib/src/core-components/atoms/input/input.component.d.ts +0 -1
- package/lib/src/core-components/atoms/input/input.component.d.ts.map +1 -1
- package/lib/src/core-components/atoms/input/input.component.js +4 -3
- package/lib/src/core-components/atoms/input/input.styles.css +35 -0
- package/lib/src/core-components/atoms/input-dropdown/input-dropdown.component.d.ts.map +1 -1
- package/lib/src/core-components/atoms/input-dropdown/input-dropdown.component.js +5 -3
- package/lib/src/core-components/atoms/loader/loader.component.d.ts.map +1 -1
- package/lib/src/core-components/atoms/radio/radio.component.d.ts.map +1 -1
- package/lib/src/core-components/atoms/stepper/stepper.component.d.ts +0 -1
- package/lib/src/core-components/atoms/stepper/stepper.component.d.ts.map +1 -1
- package/lib/src/core-components/atoms/stepper/stepper.component.js +0 -1
- package/lib/src/core-components/atoms/tabs/tabs.module.css +238 -0
- package/lib/src/core-components/molecules/auto-complete-filter-single-select-multiple-fields-display/auto-complete-filter-single-select-multiple-fields-display.component.d.ts +2 -1
- package/lib/src/core-components/molecules/auto-complete-filter-single-select-multiple-fields-display/auto-complete-filter-single-select-multiple-fields-display.component.d.ts.map +1 -1
- package/lib/src/core-components/molecules/auto-complete-filter-single-select-multiple-fields-display/auto-complete-filter-single-select-multiple-fields-display.component.js +2 -2
- package/lib/src/core-components/molecules/autocomplete/autocomplete.css +37 -0
- package/lib/src/core-components/molecules/color-picker/color-picker.css +24 -0
- package/lib/src/core-components/molecules/color-picker-modal/color-picker-modal.css +24 -0
- package/lib/src/index.css +110 -0
- package/lib/src/tc.module.css +209 -754
- package/package.json +7 -5
|
@@ -8,10 +8,11 @@ interface AutoCompleteFilterSingleSelectMultiFieldsDisplayProps {
|
|
|
8
8
|
hasError?: boolean;
|
|
9
9
|
className?: string;
|
|
10
10
|
posstion?: string;
|
|
11
|
+
keyboard?: string;
|
|
11
12
|
onFilter?: (item: any) => void;
|
|
12
13
|
onSelect?: (item: any) => any;
|
|
13
14
|
onBlur?: (item: any) => any;
|
|
14
15
|
}
|
|
15
|
-
export declare const AutoCompleteFilterSingleSelectMultiFieldsDisplay: ({ disable, loader, displayValue, placeholder, data, hasError, className, posstion, onFilter, onSelect, onBlur, }: AutoCompleteFilterSingleSelectMultiFieldsDisplayProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export declare const AutoCompleteFilterSingleSelectMultiFieldsDisplay: ({ disable, loader, displayValue, placeholder, data, hasError, className, posstion, keyboard, onFilter, onSelect, onBlur, }: AutoCompleteFilterSingleSelectMultiFieldsDisplayProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
17
|
export {};
|
|
17
18
|
//# sourceMappingURL=auto-complete-filter-single-select-multiple-fields-display.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auto-complete-filter-single-select-multiple-fields-display.component.d.ts","sourceRoot":"","sources":["../../../../../src/core-components/molecules/auto-complete-filter-single-select-multiple-fields-display/auto-complete-filter-single-select-multiple-fields-display.component.tsx"],"names":[],"mappings":"AAIA,OAAO,wBAAwB,CAAC;AAEhC,UAAU,qDAAqD;IAC7D,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,GAAG,CAAC;IACV,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI,CAAC;IAC/B,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,GAAG,CAAC;IAC9B,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,GAAG,CAAC;CAC7B;AAED,eAAO,MAAM,gDAAgD,
|
|
1
|
+
{"version":3,"file":"auto-complete-filter-single-select-multiple-fields-display.component.d.ts","sourceRoot":"","sources":["../../../../../src/core-components/molecules/auto-complete-filter-single-select-multiple-fields-display/auto-complete-filter-single-select-multiple-fields-display.component.tsx"],"names":[],"mappings":"AAIA,OAAO,wBAAwB,CAAC;AAEhC,UAAU,qDAAqD;IAC7D,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,GAAG,CAAC;IACV,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI,CAAC;IAC/B,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,GAAG,CAAC;IAC9B,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,GAAG,CAAC;CAC7B;AAED,eAAO,MAAM,gDAAgD,+HAa1D,qDAAqD,4CA8JvD,CAAC"}
|
|
@@ -3,7 +3,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
3
3
|
import { useState, useEffect, useRef } from 'react';
|
|
4
4
|
import { Icon } from '../../atoms/icons/icons.component';
|
|
5
5
|
import '../../../tc.module.css';
|
|
6
|
-
export const AutoCompleteFilterSingleSelectMultiFieldsDisplay = ({ disable = false, loader = false, displayValue = '', placeholder = 'Search...', data, hasError = false, className, posstion = 'absolute', onFilter, onSelect, onBlur, }) => {
|
|
6
|
+
export const AutoCompleteFilterSingleSelectMultiFieldsDisplay = ({ disable = false, loader = false, displayValue = '', placeholder = 'Search...', data, hasError = false, className, posstion = 'absolute', keyboard = 'text', onFilter, onSelect, onBlur, }) => {
|
|
7
7
|
const [value, setValue] = useState(displayValue);
|
|
8
8
|
const [options, setOptions] = useState(data.list);
|
|
9
9
|
const [isListOpen, setIsListOpen] = useState(false);
|
|
@@ -55,7 +55,7 @@ export const AutoCompleteFilterSingleSelectMultiFieldsDisplay = ({ disable = fal
|
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
};
|
|
58
|
-
return (_jsx(_Fragment, { children: _jsxs("div", { ref: wrapperRef, className: "w-full relative", children: [_jsxs("div", { className: `flex items-center leading-4 p-2 focus:outline-none focus:ring w-full shadow-sm sm:text-base border-2 ${hasError ? 'border-red' : 'border-gray-300'} rounded-md dark:text-black`, children: [_jsx("input", { placeholder: placeholder, value: value, className: `${className} w-full focus:outline-none bg-none dark:text-black`, onKeyUp: onKeyUp, onChange: onChange, onClick: () => setIsListOpen(true), disabled: disable, onMouseDown: () => setValue(''), onBlur: (e) => onBlur && onBlur(e), onKeyDown: onKeyDown }), isListOpen ? (_jsx(Icon, { nameIcon: "FaChevronUp", propsIcon: {
|
|
58
|
+
return (_jsx(_Fragment, { children: _jsxs("div", { ref: wrapperRef, className: "w-full relative", children: [_jsxs("div", { className: `flex items-center leading-4 p-2 focus:outline-none focus:ring w-full shadow-sm sm:text-base border-2 ${hasError ? 'border-red' : 'border-gray-300'} rounded-md dark:text-black`, children: [_jsx("input", { placeholder: placeholder, type: keyboard, value: value, className: `${className} w-full focus:outline-none bg-none dark:text-black`, onKeyUp: onKeyUp, onChange: onChange, onClick: () => setIsListOpen(true), disabled: disable, onMouseDown: () => setValue(''), onBlur: (e) => onBlur && onBlur(e), onKeyDown: onKeyDown }), isListOpen ? (_jsx(Icon, { nameIcon: "FaChevronUp", propsIcon: {
|
|
59
59
|
color: '#000000',
|
|
60
60
|
size: 22,
|
|
61
61
|
} })) : (_jsx(Icon, { nameIcon: "FaChevronDown", propsIcon: {
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
.no-options {
|
|
2
|
+
position: relative;
|
|
3
|
+
padding: 0 10px 0px 10px;
|
|
4
|
+
/* background: white; */
|
|
5
|
+
background-color: #f3f6f4;
|
|
6
|
+
color: black;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.autocomplete-list {
|
|
10
|
+
list-style: none;
|
|
11
|
+
position: relative;
|
|
12
|
+
margin-top: 0;
|
|
13
|
+
padding: 0 10px 0px 10px;
|
|
14
|
+
min-height: auto;
|
|
15
|
+
max-height: 86vh;
|
|
16
|
+
overflow-y: auto;
|
|
17
|
+
/* background: white; */
|
|
18
|
+
background-color: #f3f6f4;
|
|
19
|
+
z-index: 1;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.autocomplete-list li {
|
|
23
|
+
/* padding: 4px; */
|
|
24
|
+
color: var(--input-autocomplete-item-text, #000);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.autocomplete-list li.active-option {
|
|
28
|
+
background-color: #f3f6f4;
|
|
29
|
+
background: var(--multiselect-item-hover);
|
|
30
|
+
cursor: pointer;
|
|
31
|
+
font-weight: bold;
|
|
32
|
+
}
|
|
33
|
+
.autocomplete-list li:hover {
|
|
34
|
+
background-color: #f3f6f4;
|
|
35
|
+
background: var(--multiselect-item-hover);
|
|
36
|
+
cursor: pointer;
|
|
37
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
.picker {
|
|
2
|
+
position: relative;
|
|
3
|
+
z-index: 999;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.swatch {
|
|
7
|
+
width: 28px;
|
|
8
|
+
height: 28px;
|
|
9
|
+
border-radius: 8px;
|
|
10
|
+
border: 3px solid #fff;
|
|
11
|
+
box-shadow:
|
|
12
|
+
0 0 0 1px rgba(0, 0, 0, 0.1),
|
|
13
|
+
inset 0 0 0 1px rgba(0, 0, 0, 0.1);
|
|
14
|
+
cursor: pointer;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.popover {
|
|
18
|
+
position: absolute;
|
|
19
|
+
top: calc(100% + 2px);
|
|
20
|
+
left: 0;
|
|
21
|
+
border-radius: 9px;
|
|
22
|
+
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
|
|
23
|
+
z-index: 999;
|
|
24
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
.picker-modal {
|
|
2
|
+
position: relative;
|
|
3
|
+
z-index: 999;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.swatch-modal {
|
|
7
|
+
width: 28px;
|
|
8
|
+
height: 28px;
|
|
9
|
+
border-radius: 8px;
|
|
10
|
+
border: 3px solid #fff;
|
|
11
|
+
box-shadow:
|
|
12
|
+
0 0 0 1px rgba(0, 0, 0, 0.1),
|
|
13
|
+
inset 0 0 0 1px rgba(0, 0, 0, 0.1);
|
|
14
|
+
cursor: pointer;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.popover-modal {
|
|
18
|
+
position: absolute;
|
|
19
|
+
top: calc(100% + 2px);
|
|
20
|
+
left: 0;
|
|
21
|
+
border-radius: 9px;
|
|
22
|
+
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
|
|
23
|
+
z-index: 999;
|
|
24
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
@tailwind base;
|
|
2
|
+
@tailwind components;
|
|
3
|
+
@tailwind utilities;
|
|
4
|
+
|
|
5
|
+
@layer base {
|
|
6
|
+
@font-face {
|
|
7
|
+
font-family: 'ArimaRegular';
|
|
8
|
+
src: url('./library/assets/fonts/arima/arima-regular.ttf');
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@layer components {
|
|
13
|
+
table {
|
|
14
|
+
@apply text-black dark:text-white;
|
|
15
|
+
}
|
|
16
|
+
table tr:hover {
|
|
17
|
+
@apply dark:bg-white;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
select {
|
|
21
|
+
@apply dark:text-black;
|
|
22
|
+
}
|
|
23
|
+
.main {
|
|
24
|
+
@apply bg-white;
|
|
25
|
+
}
|
|
26
|
+
.headerView {
|
|
27
|
+
@apply bg-white;
|
|
28
|
+
}
|
|
29
|
+
.headerView {
|
|
30
|
+
@apply dark:bg-boxdark;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
body {
|
|
35
|
+
font-size: 14px;
|
|
36
|
+
font-family: 'Arima Regular';
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.ps__rail-y {
|
|
40
|
+
background: none !important;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.scrollbar-container {
|
|
44
|
+
width: 97% !important;
|
|
45
|
+
}
|
|
46
|
+
.dropdown-menu {
|
|
47
|
+
min-width: 3rem;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.w-md-editor-show-live {
|
|
51
|
+
height: 800 !important;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.bg-orange1 {
|
|
55
|
+
background-color: '#EF4444';
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.react-pdf__Page__canvas {
|
|
59
|
+
min-height: 100vh !important;
|
|
60
|
+
max-width: 100vw !important;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/* :root {
|
|
64
|
+
scrollbar-color: transparent transparent;
|
|
65
|
+
} */
|
|
66
|
+
|
|
67
|
+
/* Outer box for reference */
|
|
68
|
+
.outer-box {
|
|
69
|
+
position: relative;
|
|
70
|
+
width: 300px;
|
|
71
|
+
height: 400px;
|
|
72
|
+
border: 2px solid #333;
|
|
73
|
+
overflow: hidden; /* Ensure the menu does not spill out */
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/* Parent container */
|
|
77
|
+
.parent-container {
|
|
78
|
+
position: relative;
|
|
79
|
+
padding: 20px;
|
|
80
|
+
background: #f0f0f0;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/* Menu styling */
|
|
84
|
+
.menu {
|
|
85
|
+
position: absolute; /* Allows the menu to exist independently */
|
|
86
|
+
top: 100%; /* Position it just below the parent */
|
|
87
|
+
left: 0;
|
|
88
|
+
width: 100%;
|
|
89
|
+
max-height: 200px; /* Define a max height for scrolling */
|
|
90
|
+
overflow-y: auto; /* Enable vertical scrolling */
|
|
91
|
+
background: #fff;
|
|
92
|
+
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
|
93
|
+
border: 1px solid #ccc;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/* Styling for the menu items */
|
|
97
|
+
.menu ul {
|
|
98
|
+
list-style: none;
|
|
99
|
+
margin: 0;
|
|
100
|
+
padding: 0;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.menu li {
|
|
104
|
+
padding: 10px;
|
|
105
|
+
border-bottom: 1px solid #ddd;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.menu li:last-child {
|
|
109
|
+
border-bottom: none;
|
|
110
|
+
}
|