master-components-react-ts 2.1.1 → 2.1.3
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/assets/Icons/IconErrorDash.d.ts +2 -3
- package/dist/assets/Icons/IconErrorDash.js +15 -0
- package/dist/assets/Icons/IconLoading.js +22 -0
- package/dist/assets/Icons/IconSuccess.js +15 -0
- package/dist/assets/components/ActionDropdown/ActionDropdown.module-CJpBa8kB.css +85 -0
- package/dist/assets/components/Checkbox/Checkbox.module-_XqqEodq.css +82 -0
- package/dist/assets/components/DatePicker/Calendar.module-D3fcZWFD.css +316 -0
- package/dist/assets/components/DatePicker/Datepicker.module-BxWRyQpP.css +39 -0
- package/dist/assets/components/Dropdown/Dropdown.module-DgjqziBo.css +242 -0
- package/dist/assets/components/FormInput/FormInput.module-DvfUbgbC.css +240 -0
- package/dist/assets/components/InlineLoading/InlineLoading.module-iVTVTMU0.css +40 -0
- package/dist/assets/components/MainButton/MainButton.module-8Us8t8Lb.css +306 -0
- package/dist/assets/components/NotificationToast/NotificationToast.module-mSanXElM.css +179 -0
- package/dist/assets/components/Popup/Popup.module-C1XFPW6u.css +152 -0
- package/dist/assets/components/Radio/Radio.module-BvqKw6WX.css +21 -0
- package/dist/assets/components/Skeleton/Skeleton.module-BxbVrXDg.css +57 -0
- package/dist/assets/components/Textarea/Textarea.module-BxaBUjlU.css +167 -0
- package/dist/assets/components/TimePicker/TimePicker.module-DfRiUaeb.css +150 -0
- package/dist/assets/components/Toggle/Toggle.module-DBfTR8Br.css +75 -0
- package/dist/assets/components/Tooltip/Tooltip.module-DEYqvQtd.css +113 -0
- package/dist/components/Dropdown/Dropdown.js +3 -2
- package/dist/components/Dropdown/Dropdown.types.d.ts +2 -2
- package/dist/components/FormInput/FormInput.js +8 -1
- package/dist/components/InlineLoading/InlineLoading.d.ts +3 -0
- package/dist/components/InlineLoading/InlineLoading.js +24 -0
- package/dist/components/InlineLoading/InlineLoading.module.scss.js +11 -0
- package/dist/components/InlineLoading/InlineLoading.types.d.ts +24 -0
- package/dist/components/Textarea/Textarea.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -2221
- package/package.json +57 -60
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
@font-face {
|
|
2
|
+
font-family: "Inter-Regular";
|
|
3
|
+
src: url("/assets/Inter_24pt-Regular-C7SEt4-L.woff2") format("woff2"), url("../../assets/fonts/Inter_24pt-Regular.woff") format("woff");
|
|
4
|
+
}
|
|
5
|
+
@font-face {
|
|
6
|
+
font-family: "Inter-SemiBold";
|
|
7
|
+
src: url("/assets/Inter_24pt-SemiBold-DIQUEucn.woff2") format("woff2"), url("../../assets/fonts/Inter_24pt-SemiBold.woff") format("woff");
|
|
8
|
+
}
|
|
9
|
+
@font-face {
|
|
10
|
+
font-family: "Inter-Medium";
|
|
11
|
+
src: url("/assets/Inter_24pt-Medium-C1cYvkz2.woff2") format("woff2"), url("../../assets/fonts/Inter_24pt-Medium.woff") format("woff");
|
|
12
|
+
}
|
|
13
|
+
.Skeleton-module__skeleton {
|
|
14
|
+
background-color: #e0e0e0;
|
|
15
|
+
border-radius: 4px;
|
|
16
|
+
position: relative;
|
|
17
|
+
overflow: hidden;
|
|
18
|
+
display: grid;
|
|
19
|
+
place-items: center;
|
|
20
|
+
}
|
|
21
|
+
.Skeleton-module__skeleton::after {
|
|
22
|
+
content: "";
|
|
23
|
+
position: absolute;
|
|
24
|
+
top: 0;
|
|
25
|
+
left: 0;
|
|
26
|
+
right: 0;
|
|
27
|
+
bottom: 0;
|
|
28
|
+
background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0) 100%);
|
|
29
|
+
animation: Skeleton-module__shimmer 1.5s infinite;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.Skeleton-module__text {
|
|
33
|
+
height: 1rem;
|
|
34
|
+
width: 100%;
|
|
35
|
+
margin: 8px 0;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.Skeleton-module__avatar {
|
|
39
|
+
height: 40px;
|
|
40
|
+
width: 40px;
|
|
41
|
+
border-radius: 50%;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
@keyframes Skeleton-module__shimmer {
|
|
45
|
+
0% {
|
|
46
|
+
transform: translateX(-100%);
|
|
47
|
+
}
|
|
48
|
+
100% {
|
|
49
|
+
transform: translateX(100%);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
.Skeleton-module__dark.Skeleton-module__skeleton {
|
|
53
|
+
background-color: #5a5a5a;
|
|
54
|
+
}
|
|
55
|
+
.Skeleton-module__dark.Skeleton-module__skeleton::after {
|
|
56
|
+
background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
|
|
57
|
+
}
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
@font-face {
|
|
2
|
+
font-family: "Inter-Regular";
|
|
3
|
+
src: url("/assets/Inter_24pt-Regular-C7SEt4-L.woff2") format("woff2"), url("../../assets/fonts/Inter_24pt-Regular.woff") format("woff");
|
|
4
|
+
}
|
|
5
|
+
@font-face {
|
|
6
|
+
font-family: "Inter-SemiBold";
|
|
7
|
+
src: url("/assets/Inter_24pt-SemiBold-DIQUEucn.woff2") format("woff2"), url("../../assets/fonts/Inter_24pt-SemiBold.woff") format("woff");
|
|
8
|
+
}
|
|
9
|
+
@font-face {
|
|
10
|
+
font-family: "Inter-Medium";
|
|
11
|
+
src: url("/assets/Inter_24pt-Medium-C1cYvkz2.woff2") format("woff2"), url("../../assets/fonts/Inter_24pt-Medium.woff") format("woff");
|
|
12
|
+
}
|
|
13
|
+
.Textarea-module__textareaContainer {
|
|
14
|
+
width: 100%;
|
|
15
|
+
display: flex;
|
|
16
|
+
flex-direction: column;
|
|
17
|
+
align-items: flex-start;
|
|
18
|
+
gap: 0.375rem;
|
|
19
|
+
flex-shrink: 0;
|
|
20
|
+
}
|
|
21
|
+
.Textarea-module__textareaContainer .Textarea-module__textAreaLabel {
|
|
22
|
+
display: flex;
|
|
23
|
+
justify-content: space-between;
|
|
24
|
+
display: flex;
|
|
25
|
+
align-items: center;
|
|
26
|
+
gap: 0.125rem;
|
|
27
|
+
width: 100%;
|
|
28
|
+
}
|
|
29
|
+
.Textarea-module__textareaContainer .Textarea-module__textAreaLabel p {
|
|
30
|
+
width: 100%;
|
|
31
|
+
width: 100%;
|
|
32
|
+
overflow: hidden;
|
|
33
|
+
color: #131314;
|
|
34
|
+
font-family: "Inter-Medium";
|
|
35
|
+
font-size: 12px;
|
|
36
|
+
font-style: normal;
|
|
37
|
+
font-weight: 450;
|
|
38
|
+
line-height: 16px; /* 171.429% */
|
|
39
|
+
letter-spacing: 0.1px;
|
|
40
|
+
}
|
|
41
|
+
.Textarea-module__textareaContainer .Textarea-module__textAreaLabel .Textarea-module__required {
|
|
42
|
+
color: #d92d20;
|
|
43
|
+
font-size: 0.875rem;
|
|
44
|
+
font-family: "Inter-Regular", sans-serif;
|
|
45
|
+
font-style: normal;
|
|
46
|
+
font-weight: 500;
|
|
47
|
+
line-height: 1.25rem;
|
|
48
|
+
}
|
|
49
|
+
.Textarea-module__textareaContainer .Textarea-module__wrap {
|
|
50
|
+
position: relative;
|
|
51
|
+
display: inline-block;
|
|
52
|
+
width: 100%;
|
|
53
|
+
position: relative;
|
|
54
|
+
}
|
|
55
|
+
.Textarea-module__textareaContainer .Textarea-module__wrap.Textarea-module__resize textarea {
|
|
56
|
+
resize: both;
|
|
57
|
+
}
|
|
58
|
+
.Textarea-module__textareaContainer .Textarea-module__wrap.Textarea-module__resize:after {
|
|
59
|
+
content: url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%3e%3cpath%20d='M10%202L2%2010'%20stroke='%23D5D7DA'%20stroke-linecap='round'/%3e%3cpath%20d='M11%207L7%2011'%20stroke='%23D5D7DA'%20stroke-linecap='round'/%3e%3c/svg%3e");
|
|
60
|
+
width: 0.9375rem;
|
|
61
|
+
background: transparent;
|
|
62
|
+
position: absolute;
|
|
63
|
+
right: 0.125rem;
|
|
64
|
+
bottom: 0.3125rem;
|
|
65
|
+
pointer-events: none;
|
|
66
|
+
border-radius: 25%;
|
|
67
|
+
}
|
|
68
|
+
.Textarea-module__textareaContainer .Textarea-module__wrap .Textarea-module__textareaIconClose {
|
|
69
|
+
position: absolute;
|
|
70
|
+
right: 8px;
|
|
71
|
+
top: 8px;
|
|
72
|
+
cursor: pointer;
|
|
73
|
+
}
|
|
74
|
+
.Textarea-module__textareaContainer .Textarea-module__wrap .Textarea-module__textarea {
|
|
75
|
+
width: 100%;
|
|
76
|
+
border-radius: 6px;
|
|
77
|
+
border: 1px solid #c1c2c7;
|
|
78
|
+
background: #fff;
|
|
79
|
+
padding: 8px 12px;
|
|
80
|
+
resize: none;
|
|
81
|
+
width: 100%;
|
|
82
|
+
overflow: hidden;
|
|
83
|
+
color: #131314;
|
|
84
|
+
text-overflow: ellipsis;
|
|
85
|
+
font-family: "Inter-Regular";
|
|
86
|
+
font-size: 14px;
|
|
87
|
+
font-style: normal;
|
|
88
|
+
font-weight: 400;
|
|
89
|
+
line-height: 24px; /* 171.429% */
|
|
90
|
+
letter-spacing: 0.1px;
|
|
91
|
+
}
|
|
92
|
+
.Textarea-module__textareaContainer .Textarea-module__wrap .Textarea-module__textarea::-webkit-resizer {
|
|
93
|
+
display: none;
|
|
94
|
+
}
|
|
95
|
+
.Textarea-module__textareaContainer .Textarea-module__wrap .Textarea-module__textarea::-webkit-scrollbar {
|
|
96
|
+
width: 0;
|
|
97
|
+
}
|
|
98
|
+
.Textarea-module__textareaContainer .Textarea-module__wrap .Textarea-module__textarea::-webkit-scrollbar-track {
|
|
99
|
+
-webkit-box-shadow: none;
|
|
100
|
+
}
|
|
101
|
+
.Textarea-module__textareaContainer .Textarea-module__wrap .Textarea-module__textarea::-webkit-scrollbar-thumb {
|
|
102
|
+
background-color: none;
|
|
103
|
+
outline: 0;
|
|
104
|
+
}
|
|
105
|
+
.Textarea-module__textareaContainer .Textarea-module__wrap .Textarea-module__textarea.Textarea-module__errorState {
|
|
106
|
+
border-radius: 6px;
|
|
107
|
+
background: #fff;
|
|
108
|
+
outline: 1px solid #f63e45;
|
|
109
|
+
outline-offset: -1px;
|
|
110
|
+
box-shadow: none;
|
|
111
|
+
}
|
|
112
|
+
.Textarea-module__textareaContainer .Textarea-module__wrap .Textarea-module__textarea.Textarea-module__focused {
|
|
113
|
+
border-radius: 6px;
|
|
114
|
+
background: #fff;
|
|
115
|
+
outline: 2px solid #0058ff;
|
|
116
|
+
outline-offset: -2px;
|
|
117
|
+
box-shadow: none;
|
|
118
|
+
}
|
|
119
|
+
.Textarea-module__textareaContainer .Textarea-module__wrap .Textarea-module__textarea.Textarea-module__active {
|
|
120
|
+
border-radius: 6px;
|
|
121
|
+
background: #fff;
|
|
122
|
+
outline: 1.5px solid #0058ff;
|
|
123
|
+
outline-offset: -1.5px;
|
|
124
|
+
box-shadow: 0 0 0 2px #dee9fc;
|
|
125
|
+
}
|
|
126
|
+
.Textarea-module__textareaContainer .Textarea-module__wrap .Textarea-module__textarea.Textarea-module__errorFocused {
|
|
127
|
+
border-radius: 6px;
|
|
128
|
+
background: #fff;
|
|
129
|
+
outline: 2px solid #f63e45;
|
|
130
|
+
outline-offset: -2px;
|
|
131
|
+
box-shadow: none;
|
|
132
|
+
}
|
|
133
|
+
.Textarea-module__textareaContainer .Textarea-module__wrap .Textarea-module__textarea.Textarea-module__errorActive {
|
|
134
|
+
border-radius: 6px;
|
|
135
|
+
background: #fff;
|
|
136
|
+
outline: 1.5px solid #f63e45;
|
|
137
|
+
outline-offset: -1.5px;
|
|
138
|
+
box-shadow: 0 0 0 2px #fcdcdd;
|
|
139
|
+
}
|
|
140
|
+
.Textarea-module__textareaContainer .Textarea-module__wrap .Textarea-module__textarea::placeholder {
|
|
141
|
+
width: 100%;
|
|
142
|
+
overflow: hidden;
|
|
143
|
+
color: #646569;
|
|
144
|
+
text-overflow: ellipsis;
|
|
145
|
+
font-family: "Inter-Regular";
|
|
146
|
+
font-size: 14px;
|
|
147
|
+
font-style: normal;
|
|
148
|
+
font-weight: 400;
|
|
149
|
+
line-height: 24px; /* 171.429% */
|
|
150
|
+
letter-spacing: 0.1px;
|
|
151
|
+
}
|
|
152
|
+
.Textarea-module__textareaContainer .Textarea-module__textareaFooter {
|
|
153
|
+
width: 100%;
|
|
154
|
+
display: flex;
|
|
155
|
+
justify-content: flex-end;
|
|
156
|
+
align-items: center;
|
|
157
|
+
}
|
|
158
|
+
.Textarea-module__textareaContainer .Textarea-module__textareaFooter p {
|
|
159
|
+
color: #131314;
|
|
160
|
+
text-align: right;
|
|
161
|
+
font-family: "Inter-Medium", sans-serif;
|
|
162
|
+
font-size: 12px;
|
|
163
|
+
font-style: normal;
|
|
164
|
+
font-weight: 450;
|
|
165
|
+
line-height: 16px; /* 133.333% */
|
|
166
|
+
letter-spacing: 0.1px;
|
|
167
|
+
}
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
@font-face {
|
|
2
|
+
font-family: "Inter-Regular";
|
|
3
|
+
src: url("/assets/Inter_24pt-Regular-C7SEt4-L.woff2") format("woff2"), url("../../assets/fonts/Inter_24pt-Regular.woff") format("woff");
|
|
4
|
+
}
|
|
5
|
+
@font-face {
|
|
6
|
+
font-family: "Inter-SemiBold";
|
|
7
|
+
src: url("/assets/Inter_24pt-SemiBold-DIQUEucn.woff2") format("woff2"), url("../../assets/fonts/Inter_24pt-SemiBold.woff") format("woff");
|
|
8
|
+
}
|
|
9
|
+
@font-face {
|
|
10
|
+
font-family: "Inter-Medium";
|
|
11
|
+
src: url("/assets/Inter_24pt-Medium-C1cYvkz2.woff2") format("woff2"), url("../../assets/fonts/Inter_24pt-Medium.woff") format("woff");
|
|
12
|
+
}
|
|
13
|
+
.TimePicker-module__timepickerWrapper {
|
|
14
|
+
user-select: none;
|
|
15
|
+
scroll-behavior: smooth;
|
|
16
|
+
width: 100%;
|
|
17
|
+
}
|
|
18
|
+
.TimePicker-module__timepickerWrapper * {
|
|
19
|
+
scrollbar-width: none;
|
|
20
|
+
}
|
|
21
|
+
.TimePicker-module__timepickerWrapper *::-webkit-scrollbar {
|
|
22
|
+
display: none;
|
|
23
|
+
}
|
|
24
|
+
.TimePicker-module__timepickerWrapper .TimePicker-module__timepickerInputWrapper {
|
|
25
|
+
width: 100%;
|
|
26
|
+
}
|
|
27
|
+
.TimePicker-module__timepickerWrapper .TimePicker-module__timepickerInputWrapper .TimePicker-module__dropdownRightIcon {
|
|
28
|
+
display: flex;
|
|
29
|
+
align-items: center;
|
|
30
|
+
gap: 8px;
|
|
31
|
+
margin: 8px;
|
|
32
|
+
}
|
|
33
|
+
.TimePicker-module__timepickerWrapper .TimePicker-module__timepickerInputWrapper .TimePicker-module__dropdownRightIcon .TimePicker-module__dropdownRightIconClose {
|
|
34
|
+
display: flex;
|
|
35
|
+
align-items: center;
|
|
36
|
+
justify-content: center;
|
|
37
|
+
cursor: pointer;
|
|
38
|
+
}
|
|
39
|
+
.TimePicker-module__timepickerWrapper .TimePicker-module__timepickerInputWrapper .TimePicker-module__dropdownRightIcon .TimePicker-module__dropdownRightIconArrow {
|
|
40
|
+
display: flex;
|
|
41
|
+
align-items: center;
|
|
42
|
+
justify-content: center;
|
|
43
|
+
cursor: pointer;
|
|
44
|
+
transition: transform 0.2s ease-in-out;
|
|
45
|
+
}
|
|
46
|
+
.TimePicker-module__timepickerWrapper .TimePicker-module__timepickerInputWrapper .TimePicker-module__dropdownRightIcon.TimePicker-module__focused .TimePicker-module__dropdownRightIconArrow {
|
|
47
|
+
transform: rotate(180deg);
|
|
48
|
+
}
|
|
49
|
+
.TimePicker-module__timepickerWrapper .TimePicker-module__timepickerDropdownWrapper {
|
|
50
|
+
width: 218px;
|
|
51
|
+
border-radius: 12px;
|
|
52
|
+
box-shadow: 0px 2px 4px 0px rgba(19, 19, 20, 0.04);
|
|
53
|
+
border: 1px solid #e6e6e6;
|
|
54
|
+
background: #fff;
|
|
55
|
+
display: flex;
|
|
56
|
+
flex-direction: column;
|
|
57
|
+
gap: 8px;
|
|
58
|
+
}
|
|
59
|
+
.TimePicker-module__timepickerWrapper .TimePicker-module__timepickerDropdownWrapper .TimePicker-module__timepickerDropdownHeader {
|
|
60
|
+
padding: 8px 8px 0 8px;
|
|
61
|
+
}
|
|
62
|
+
.TimePicker-module__timepickerWrapper .TimePicker-module__timepickerDropdownWrapper .TimePicker-module__timepickerDropdownHeader .TimePicker-module__timepickerDropdownHeaderButtons {
|
|
63
|
+
width: 100%;
|
|
64
|
+
display: flex;
|
|
65
|
+
justify-content: space-between;
|
|
66
|
+
gap: 2px;
|
|
67
|
+
border-radius: 8px;
|
|
68
|
+
background: #f2f2f2;
|
|
69
|
+
padding: 2px;
|
|
70
|
+
}
|
|
71
|
+
.TimePicker-module__timepickerWrapper .TimePicker-module__timepickerDropdownWrapper .TimePicker-module__timepickerDropdownHeader p {
|
|
72
|
+
padding: 5px 20px;
|
|
73
|
+
color: #646569;
|
|
74
|
+
font-feature-settings: "liga" off, "clig" off;
|
|
75
|
+
font-family: "Inter-Regular", sans-serif;
|
|
76
|
+
font-size: 14px;
|
|
77
|
+
font-style: normal;
|
|
78
|
+
font-weight: 400;
|
|
79
|
+
line-height: 24px; /* 171.429% */
|
|
80
|
+
letter-spacing: 0.1px;
|
|
81
|
+
cursor: pointer;
|
|
82
|
+
}
|
|
83
|
+
.TimePicker-module__timepickerWrapper .TimePicker-module__timepickerDropdownWrapper .TimePicker-module__timepickerDropdownHeader p.TimePicker-module__active {
|
|
84
|
+
color: #131314;
|
|
85
|
+
border-radius: 6px 6px 6px 6px;
|
|
86
|
+
background: #fff;
|
|
87
|
+
box-shadow: 0px 2px 4px 0px rgba(19, 19, 20, 0.04);
|
|
88
|
+
}
|
|
89
|
+
.TimePicker-module__timepickerWrapper .TimePicker-module__timepickerDropdownWrapper .TimePicker-module__timepickerDropdownBody {
|
|
90
|
+
width: 100%;
|
|
91
|
+
display: flex;
|
|
92
|
+
border-top: 1px solid #e6e6e6;
|
|
93
|
+
border-bottom: 1px solid #e6e6e6;
|
|
94
|
+
}
|
|
95
|
+
.TimePicker-module__timepickerWrapper .TimePicker-module__timepickerDropdownWrapper .TimePicker-module__timepickerDropdownBody .TimePicker-module__timepickerDropdownBodyHours {
|
|
96
|
+
width: 50%;
|
|
97
|
+
display: flex;
|
|
98
|
+
flex-direction: column;
|
|
99
|
+
align-items: center;
|
|
100
|
+
height: 230px;
|
|
101
|
+
overflow-y: auto;
|
|
102
|
+
border-right: 1px solid #e6e6e6;
|
|
103
|
+
padding: 8px;
|
|
104
|
+
}
|
|
105
|
+
.TimePicker-module__timepickerWrapper .TimePicker-module__timepickerDropdownWrapper .TimePicker-module__timepickerDropdownBody .TimePicker-module__timepickerDropdownBodyMinutes {
|
|
106
|
+
width: 50%;
|
|
107
|
+
display: flex;
|
|
108
|
+
flex-direction: column;
|
|
109
|
+
align-items: center;
|
|
110
|
+
height: 230px;
|
|
111
|
+
overflow-y: auto;
|
|
112
|
+
padding: 8px;
|
|
113
|
+
}
|
|
114
|
+
.TimePicker-module__timepickerWrapper .TimePicker-module__timepickerDropdownWrapper .TimePicker-module__timepickerDropdownBody .TimePicker-module__timepickerDropdownBodyAmPm {
|
|
115
|
+
width: 50%;
|
|
116
|
+
display: flex;
|
|
117
|
+
flex-direction: column;
|
|
118
|
+
align-items: center;
|
|
119
|
+
height: 230px;
|
|
120
|
+
overflow-y: auto;
|
|
121
|
+
border-left: 1px solid #e6e6e6;
|
|
122
|
+
padding: 8px;
|
|
123
|
+
}
|
|
124
|
+
.TimePicker-module__timepickerWrapper .TimePicker-module__timepickerDropdownWrapper .TimePicker-module__timepickerDropdownBody p {
|
|
125
|
+
padding: 6px 10px;
|
|
126
|
+
border-radius: 4px;
|
|
127
|
+
cursor: pointer;
|
|
128
|
+
width: 100%;
|
|
129
|
+
color: #131314;
|
|
130
|
+
text-align: center;
|
|
131
|
+
font-feature-settings: "liga" off, "clig" off;
|
|
132
|
+
text-overflow: ellipsis;
|
|
133
|
+
/* UI/14 regular */
|
|
134
|
+
font-family: "Inter-Regular", sans-serif;
|
|
135
|
+
font-size: 14px;
|
|
136
|
+
font-style: normal;
|
|
137
|
+
font-weight: 400;
|
|
138
|
+
line-height: 24px; /* 171.429% */
|
|
139
|
+
letter-spacing: 0.1px;
|
|
140
|
+
}
|
|
141
|
+
.TimePicker-module__timepickerWrapper .TimePicker-module__timepickerDropdownWrapper .TimePicker-module__timepickerDropdownBody p:hover {
|
|
142
|
+
background: #fafafa;
|
|
143
|
+
}
|
|
144
|
+
.TimePicker-module__timepickerWrapper .TimePicker-module__timepickerDropdownWrapper .TimePicker-module__timepickerDropdownBody p.TimePicker-module__active {
|
|
145
|
+
background: #ECF3FF;
|
|
146
|
+
color: #0058FF;
|
|
147
|
+
}
|
|
148
|
+
.TimePicker-module__timepickerWrapper .TimePicker-module__timepickerDropdownWrapper .TimePicker-module__timepickerDropdownFooter {
|
|
149
|
+
padding: 8px;
|
|
150
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
@font-face {
|
|
2
|
+
font-family: "Inter-Regular";
|
|
3
|
+
src: url("/assets/Inter_24pt-Regular-C7SEt4-L.woff2") format("woff2"), url("../../assets/fonts/Inter_24pt-Regular.woff") format("woff");
|
|
4
|
+
}
|
|
5
|
+
@font-face {
|
|
6
|
+
font-family: "Inter-SemiBold";
|
|
7
|
+
src: url("/assets/Inter_24pt-SemiBold-DIQUEucn.woff2") format("woff2"), url("../../assets/fonts/Inter_24pt-SemiBold.woff") format("woff");
|
|
8
|
+
}
|
|
9
|
+
@font-face {
|
|
10
|
+
font-family: "Inter-Medium";
|
|
11
|
+
src: url("/assets/Inter_24pt-Medium-C1cYvkz2.woff2") format("woff2"), url("../../assets/fonts/Inter_24pt-Medium.woff") format("woff");
|
|
12
|
+
}
|
|
13
|
+
.Toggle-module__toggleWrapper {
|
|
14
|
+
position: relative;
|
|
15
|
+
overflow: hidden;
|
|
16
|
+
border-radius: 13.333px;
|
|
17
|
+
background: #c1c2c7;
|
|
18
|
+
padding: 4px;
|
|
19
|
+
cursor: pointer;
|
|
20
|
+
}
|
|
21
|
+
.Toggle-module__toggleWrapper.Toggle-module__checked {
|
|
22
|
+
background: #0058FF;
|
|
23
|
+
}
|
|
24
|
+
.Toggle-module__toggleWrapper.Toggle-module__error {
|
|
25
|
+
background: #e3292f;
|
|
26
|
+
}
|
|
27
|
+
.Toggle-module__toggleWrapper.Toggle-module__disabled {
|
|
28
|
+
background: #d4d5d6;
|
|
29
|
+
cursor: not-allowed;
|
|
30
|
+
}
|
|
31
|
+
.Toggle-module__toggleWrapper.Toggle-module__disabled.Toggle-module__checked {
|
|
32
|
+
background: #95969c;
|
|
33
|
+
}
|
|
34
|
+
.Toggle-module__toggleWrapper.Toggle-module__sm {
|
|
35
|
+
width: 24px;
|
|
36
|
+
height: 16px;
|
|
37
|
+
}
|
|
38
|
+
.Toggle-module__toggleWrapper.Toggle-module__sm.Toggle-module__checked .Toggle-module__toggleState {
|
|
39
|
+
left: calc(100% - 12px);
|
|
40
|
+
}
|
|
41
|
+
.Toggle-module__toggleWrapper.Toggle-module__sm .Toggle-module__toggleState {
|
|
42
|
+
width: 8px;
|
|
43
|
+
height: 8px;
|
|
44
|
+
}
|
|
45
|
+
.Toggle-module__toggleWrapper.Toggle-module__md {
|
|
46
|
+
width: 32px;
|
|
47
|
+
height: 20px;
|
|
48
|
+
}
|
|
49
|
+
.Toggle-module__toggleWrapper.Toggle-module__md.Toggle-module__checked .Toggle-module__toggleState {
|
|
50
|
+
left: calc(100% - 16px);
|
|
51
|
+
}
|
|
52
|
+
.Toggle-module__toggleWrapper.Toggle-module__md .Toggle-module__toggleState {
|
|
53
|
+
width: 12px;
|
|
54
|
+
height: 12px;
|
|
55
|
+
}
|
|
56
|
+
.Toggle-module__toggleWrapper.Toggle-module__lg {
|
|
57
|
+
width: 40px;
|
|
58
|
+
height: 24px;
|
|
59
|
+
}
|
|
60
|
+
.Toggle-module__toggleWrapper.Toggle-module__lg .Toggle-module__toggleState {
|
|
61
|
+
width: 16px;
|
|
62
|
+
height: 16px;
|
|
63
|
+
}
|
|
64
|
+
.Toggle-module__toggleWrapper.Toggle-module__lg.Toggle-module__checked .Toggle-module__toggleState {
|
|
65
|
+
left: calc(100% - 20px);
|
|
66
|
+
}
|
|
67
|
+
.Toggle-module__toggleWrapper .Toggle-module__toggleState {
|
|
68
|
+
border-radius: 8px;
|
|
69
|
+
background: #fff;
|
|
70
|
+
position: absolute;
|
|
71
|
+
top: 50%;
|
|
72
|
+
left: 4px;
|
|
73
|
+
transform: translateY(-50%);
|
|
74
|
+
transition: 0.2s all;
|
|
75
|
+
}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
@font-face {
|
|
2
|
+
font-family: "Inter-Regular";
|
|
3
|
+
src: url("/assets/Inter_24pt-Regular-C7SEt4-L.woff2") format("woff2"), url("../../assets/fonts/Inter_24pt-Regular.woff") format("woff");
|
|
4
|
+
}
|
|
5
|
+
@font-face {
|
|
6
|
+
font-family: "Inter-SemiBold";
|
|
7
|
+
src: url("/assets/Inter_24pt-SemiBold-DIQUEucn.woff2") format("woff2"), url("../../assets/fonts/Inter_24pt-SemiBold.woff") format("woff");
|
|
8
|
+
}
|
|
9
|
+
@font-face {
|
|
10
|
+
font-family: "Inter-Medium";
|
|
11
|
+
src: url("/assets/Inter_24pt-Medium-C1cYvkz2.woff2") format("woff2"), url("../../assets/fonts/Inter_24pt-Medium.woff") format("woff");
|
|
12
|
+
}
|
|
13
|
+
.Tooltip-module__tooltipContainer {
|
|
14
|
+
position: relative;
|
|
15
|
+
}
|
|
16
|
+
.Tooltip-module__tooltipContainer .Tooltip-module__tooltipContent {
|
|
17
|
+
border-radius: 0.5rem;
|
|
18
|
+
background: #181d27;
|
|
19
|
+
padding: 0.75rem;
|
|
20
|
+
max-width: 200px;
|
|
21
|
+
min-width: 118px;
|
|
22
|
+
position: absolute;
|
|
23
|
+
z-index: 99999;
|
|
24
|
+
word-break: break-word;
|
|
25
|
+
/* Absolute positioning */
|
|
26
|
+
/* CSS border triangles */
|
|
27
|
+
/* Absolute positioning */
|
|
28
|
+
/* CSS border triangles */
|
|
29
|
+
/* Absolute positioning */
|
|
30
|
+
/* CSS border triangles */
|
|
31
|
+
/* Absolute positioning */
|
|
32
|
+
/* CSS border triangles */
|
|
33
|
+
}
|
|
34
|
+
.Tooltip-module__tooltipContainer .Tooltip-module__tooltipContent.Tooltip-module__withoutPointer::before {
|
|
35
|
+
all: initial;
|
|
36
|
+
}
|
|
37
|
+
.Tooltip-module__tooltipContainer .Tooltip-module__tooltipContent::before {
|
|
38
|
+
content: " ";
|
|
39
|
+
left: 50%;
|
|
40
|
+
border: solid transparent;
|
|
41
|
+
height: 0;
|
|
42
|
+
width: 0;
|
|
43
|
+
position: absolute;
|
|
44
|
+
pointer-events: none;
|
|
45
|
+
border-width: 6px;
|
|
46
|
+
margin-left: -6px;
|
|
47
|
+
}
|
|
48
|
+
.Tooltip-module__tooltipContainer .Tooltip-module__tooltipContent.Tooltip-module__top::before {
|
|
49
|
+
top: 100%;
|
|
50
|
+
border-top-color: #181d27;
|
|
51
|
+
left: var(--pointer-position);
|
|
52
|
+
}
|
|
53
|
+
.Tooltip-module__tooltipContainer .Tooltip-module__tooltipContent.Tooltip-module__right::before {
|
|
54
|
+
left: -6px;
|
|
55
|
+
top: 50%;
|
|
56
|
+
transform: translateX(0) translateY(-50%);
|
|
57
|
+
border-right-color: #181d27;
|
|
58
|
+
}
|
|
59
|
+
.Tooltip-module__tooltipContainer .Tooltip-module__tooltipContent.Tooltip-module__bottom::before {
|
|
60
|
+
bottom: 100%;
|
|
61
|
+
left: var(--pointer-position);
|
|
62
|
+
border-bottom-color: #181d27;
|
|
63
|
+
}
|
|
64
|
+
.Tooltip-module__tooltipContainer .Tooltip-module__tooltipContent.Tooltip-module__left::before {
|
|
65
|
+
left: auto;
|
|
66
|
+
right: -12px;
|
|
67
|
+
top: 50%;
|
|
68
|
+
transform: translateX(0) translateY(-50%);
|
|
69
|
+
border-left-color: #181d27;
|
|
70
|
+
}
|
|
71
|
+
.Tooltip-module__tooltipContainer .Tooltip-module__tooltipContent .Tooltip-module__tooltipTitle {
|
|
72
|
+
width: 100%;
|
|
73
|
+
word-break: break-word;
|
|
74
|
+
color: #fff;
|
|
75
|
+
font-family: "Inter-Regular", sans-serif;
|
|
76
|
+
font-size: 0.75rem;
|
|
77
|
+
font-style: normal;
|
|
78
|
+
font-weight: 600;
|
|
79
|
+
line-height: 1.125rem; /* 150% */
|
|
80
|
+
}
|
|
81
|
+
.Tooltip-module__tooltipContainer .Tooltip-module__tooltipContent .Tooltip-module__tooltipText {
|
|
82
|
+
width: 100%;
|
|
83
|
+
word-break: break-word;
|
|
84
|
+
color: rgba(255, 255, 255, 0.9);
|
|
85
|
+
font-family: "Inter-Regular", sans-serif;
|
|
86
|
+
font-size: 0.75rem;
|
|
87
|
+
font-style: normal;
|
|
88
|
+
font-weight: 500;
|
|
89
|
+
line-height: 1.125rem; /* 150% */
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.Tooltip-module__dark.Tooltip-module__tooltipContainer .Tooltip-module__tooltipContent {
|
|
93
|
+
background: #ffffff;
|
|
94
|
+
}
|
|
95
|
+
.Tooltip-module__dark.Tooltip-module__tooltipContainer .Tooltip-module__tooltipContent.Tooltip-module__top::before {
|
|
96
|
+
border-top-color: #ffffff;
|
|
97
|
+
left: var(--pointer-position);
|
|
98
|
+
}
|
|
99
|
+
.Tooltip-module__dark.Tooltip-module__tooltipContainer .Tooltip-module__tooltipContent.Tooltip-module__right::before {
|
|
100
|
+
border-right-color: #ffffff;
|
|
101
|
+
}
|
|
102
|
+
.Tooltip-module__dark.Tooltip-module__tooltipContainer .Tooltip-module__tooltipContent.Tooltip-module__bottom::before {
|
|
103
|
+
border-bottom-color: #ffffff;
|
|
104
|
+
}
|
|
105
|
+
.Tooltip-module__dark.Tooltip-module__tooltipContainer .Tooltip-module__tooltipContent.Tooltip-module__left::before {
|
|
106
|
+
border-left-color: #ffffff;
|
|
107
|
+
}
|
|
108
|
+
.Tooltip-module__dark.Tooltip-module__tooltipContainer .Tooltip-module__tooltipContent .Tooltip-module__tooltipTitle {
|
|
109
|
+
color: #0c0e12;
|
|
110
|
+
}
|
|
111
|
+
.Tooltip-module__dark.Tooltip-module__tooltipContainer .Tooltip-module__tooltipContent .Tooltip-module__tooltipText {
|
|
112
|
+
color: rgba(12, 14, 18, 0.9);
|
|
113
|
+
}
|
|
@@ -84,6 +84,7 @@ const Dropdown = ({
|
|
|
84
84
|
if (!dropdownEl || !componentEl) return;
|
|
85
85
|
const componentRect = componentEl.getBoundingClientRect();
|
|
86
86
|
const windowHeight = window.innerHeight;
|
|
87
|
+
dropdownEl.style.zIndex = "100";
|
|
87
88
|
dropdownEl.style.position = "fixed";
|
|
88
89
|
dropdownEl.style.width = componentRect.width + "px";
|
|
89
90
|
dropdownEl.style.left = `${componentRect.left + window.pageXOffset}px`;
|
|
@@ -249,7 +250,7 @@ const Dropdown = ({
|
|
|
249
250
|
style: dropdownInputSlotItemStyle ?? {},
|
|
250
251
|
onClick: (e) => e.stopPropagation(),
|
|
251
252
|
children: [
|
|
252
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("p", { title: el.label, className: style.dropdownInputSlotItemLabel, style: dropdownInputSlotItemLabelStyle ?? {}, children: el.customLabel ? el.customLabel(el) : el.label }),
|
|
253
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("p", { title: el.label, className: style.dropdownInputSlotItemLabel, style: dropdownInputSlotItemLabelStyle ?? {}, children: typeof el.customLabel === "function" ? el.customLabel(el) : el.label }),
|
|
253
254
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
254
255
|
"div",
|
|
255
256
|
{
|
|
@@ -318,7 +319,7 @@ const Dropdown = ({
|
|
|
318
319
|
title: typeof item.label === "string" ? item.label : "",
|
|
319
320
|
className: `${item.id === "SELECT_ALL" ? style.selectAll : ""}`,
|
|
320
321
|
style: dropdownItemLabelTextStyle ?? {},
|
|
321
|
-
children: item.customLabel ? item.customLabel() : item.label
|
|
322
|
+
children: typeof item.customLabel === "function" ? item.customLabel(item) : item.label
|
|
322
323
|
}
|
|
323
324
|
),
|
|
324
325
|
withMultiselect && /* @__PURE__ */ jsxRuntimeExports.jsx("p", { children: item.id === "SELECT_ALL" ? `${Data.filter((el) => el.id !== "SELECT_ALL" && el.selected).length}/${data.length}` : "" })
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { FormInputProps } from '../FormInput/FormInput.types';
|
|
2
|
-
|
|
2
|
+
type DropdownItem = {
|
|
3
3
|
id: string | number;
|
|
4
4
|
label: string;
|
|
5
5
|
customLabel?: React.ReactNode | ((item: any) => React.ReactNode);
|
|
6
6
|
selected?: boolean;
|
|
7
7
|
disabled?: boolean;
|
|
8
8
|
[key: string]: any;
|
|
9
|
-
}
|
|
9
|
+
};
|
|
10
10
|
export interface DropdownProps extends FormInputProps {
|
|
11
11
|
data: DropdownItem[];
|
|
12
12
|
withFilter?: boolean;
|
|
@@ -62,7 +62,14 @@ const FormInput = ({
|
|
|
62
62
|
onBlur?.();
|
|
63
63
|
};
|
|
64
64
|
const handleKeyDown = (event) => {
|
|
65
|
-
|
|
65
|
+
const input = event.currentTarget.value;
|
|
66
|
+
const isFirstCharacter = input.length === 0;
|
|
67
|
+
if (type === "number") {
|
|
68
|
+
if (event.keyCode === 69 || !isFirstCharacter && (event.keyCode === 187 || event.keyCode === 107 || event.keyCode === 189 || event.keyCode === 109)) {
|
|
69
|
+
event.preventDefault();
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
if (event.key === "Enter" && input && input.length > 0) {
|
|
66
73
|
onEnter?.();
|
|
67
74
|
}
|
|
68
75
|
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { j as jsxRuntimeExports } from "../../node_modules/react/jsx-runtime.js";
|
|
2
|
+
import style from "./InlineLoading.module.scss.js";
|
|
3
|
+
import { IconErrorDash } from "../../assets/Icons/IconErrorDash.js";
|
|
4
|
+
import { IconLoading } from "../../assets/Icons/IconLoading.js";
|
|
5
|
+
import { IconSuccess } from "../../assets/Icons/IconSuccess.js";
|
|
6
|
+
const InlineLoading = ({ loading, success, error, msg }) => {
|
|
7
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: `${style.inlineLoadingWrapper}`, children: [
|
|
8
|
+
loading?.state && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: style.loading, children: [
|
|
9
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(IconLoading, { color1: loading?.color1 ?? "#BCC1C2", color2: loading?.color2, size: loading?.size }),
|
|
10
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { style: msg?.style ?? {}, children: msg?.text ?? "" })
|
|
11
|
+
] }),
|
|
12
|
+
!loading?.state && success?.state && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
|
|
13
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(IconSuccess, { size: success?.size, color: success?.color }),
|
|
14
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { style: msg?.style ?? {}, children: msg?.text ?? "" })
|
|
15
|
+
] }),
|
|
16
|
+
!loading?.state && error?.state && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
|
|
17
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(IconErrorDash, { size: error?.size, color: error?.color }),
|
|
18
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("span", { style: msg?.style ?? {}, children: msg?.text ?? "" })
|
|
19
|
+
] })
|
|
20
|
+
] });
|
|
21
|
+
};
|
|
22
|
+
export {
|
|
23
|
+
InlineLoading as default
|
|
24
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
/**InlineLoading Component Props */
|
|
3
|
+
export interface InlineLoadingProps {
|
|
4
|
+
loading?: {
|
|
5
|
+
state: boolean;
|
|
6
|
+
color1?: string;
|
|
7
|
+
color2?: string;
|
|
8
|
+
size?: string;
|
|
9
|
+
};
|
|
10
|
+
success?: {
|
|
11
|
+
state: boolean;
|
|
12
|
+
color?: string;
|
|
13
|
+
size?: string;
|
|
14
|
+
};
|
|
15
|
+
error?: {
|
|
16
|
+
state: boolean;
|
|
17
|
+
color?: string;
|
|
18
|
+
size?: string;
|
|
19
|
+
};
|
|
20
|
+
msg?: {
|
|
21
|
+
text?: string;
|
|
22
|
+
style?: CSSProperties;
|
|
23
|
+
};
|
|
24
|
+
}
|