@omniumretail/component-library 1.2.71 → 1.2.73
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/package.json +6 -3
- package/NPMPUBLISH.md +0 -29
- package/bitbucket-pipelines.yml +0 -95
- package/dist/components/AnalyticsBar/AnalyticsBar.stories.d.ts +0 -5
- package/dist/components/BellNotifications/BellNotifications.stories.d.ts +0 -5
- package/dist/components/Button/Button.stories.d.ts +0 -6
- package/dist/components/Category/Category.stories.d.ts +0 -3
- package/dist/components/CategoryReadOnly/CategoryReadOnly.stories.d.ts +0 -3
- package/dist/components/CategoryResponse/CategoryResponse.stories.d.ts +0 -3
- package/dist/components/DatePicker/DatePicker.stories.d.ts +0 -5
- package/dist/components/DatePickerTag/DatePickerTag.stories.d.ts +0 -5
- package/dist/components/DropdownButton/DropdownButton.stories.d.ts +0 -5
- package/dist/components/ExportTableData/ExportTableData.stories.d.ts +0 -3
- package/dist/components/Footer/Footer.stories.d.ts +0 -5
- package/dist/components/Footer2/Footer.stories.d.ts +0 -6
- package/dist/components/Header/Header.stories.d.ts +0 -5
- package/dist/components/Input/Input.stories.d.ts +0 -5
- package/dist/components/InputCountryCode/inputCountryCode.stories.d.ts +0 -5
- package/dist/components/Label/Label.stories.d.ts +0 -6
- package/dist/components/Link/Link.stories.d.ts +0 -7
- package/dist/components/Menu/Menu.stories.d.ts +0 -5
- package/dist/components/MobileTable/MobileTable.stories.d.ts +0 -5
- package/dist/components/ModalConfirmation/ModalConfirmation.stories.d.ts +0 -5
- package/dist/components/ModalWithTable/ModalWithTable.stories.d.ts +0 -5
- package/dist/components/Navigation/Navigation.stories.d.ts +0 -5
- package/dist/components/Notification/Notification.stories.d.ts +0 -5
- package/dist/components/Questions/Questions.stories.d.ts +0 -3
- package/dist/components/Radio/Radio.stories.d.ts +0 -5
- package/dist/components/ResponseType/ResponseType.stories.d.ts +0 -3
- package/dist/components/ResponsiveTable/ResponsiveTable.stories.d.ts +0 -9
- package/dist/components/Select/Select.stories.d.ts +0 -6
- package/dist/components/Separator/Separator.stories.d.ts +0 -6
- package/dist/components/Sidebar/Sidebar.stories.d.ts +0 -6
- package/dist/components/Switch/Switch.stories.d.ts +0 -5
- package/dist/components/Table/Table.stories.d.ts +0 -9
- package/dist/components/Tag/Tag.stories.d.ts +0 -5
- package/dist/components/Upload/Upload.stories.d.ts +0 -3
- package/dist/components/UserInfo/UserInfo.stories.d.ts +0 -3
- package/dist/components/WebCam/WebCam.stories.d.ts +0 -3
- package/dist/types/index.d.ts +0 -2
- package/public/index.ts +0 -0
- package/src/assets/code-brackets.svg +0 -1
- package/src/assets/colors.svg +0 -1
- package/src/assets/comments.svg +0 -1
- package/src/assets/direction.svg +0 -1
- package/src/assets/flow.svg +0 -1
- package/src/assets/fonts/Silka-Bold.woff2 +0 -0
- package/src/assets/fonts/Silka-Regular.woff2 +0 -0
- package/src/assets/images/A2AI-logo.png +0 -0
- package/src/assets/images/omnium-retail-logo-white.png +0 -0
- package/src/assets/images/omnium-retail-logo.png +0 -0
- package/src/assets/images/omnium-retail_icon.png +0 -0
- package/src/assets/plugin.svg +0 -1
- package/src/assets/repo.svg +0 -1
- package/src/assets/scss/_combinations.scss +0 -0
- package/src/assets/scss/_global.scss +0 -89
- package/src/assets/scss/index.scss +0 -2
- package/src/assets/stackalt.svg +0 -1
- package/src/components/AnalyticsBar/AnalyticsBar.stories.tsx +0 -236
- package/src/components/AnalyticsBar/helpers/codeMutation.tsx +0 -19
- package/src/components/AnalyticsBar/index.tsx +0 -76
- package/src/components/AnalyticsBar/interfaces/analyticsBar.tsx +0 -13
- package/src/components/AnalyticsBar/styles.module.scss +0 -137
- package/src/components/BellNotifications/BellNotifications.stories.tsx +0 -200
- package/src/components/BellNotifications/index.tsx +0 -154
- package/src/components/BellNotifications/styles.module.scss +0 -239
- package/src/components/Button/Button.stories.tsx +0 -26
- package/src/components/Button/index.tsx +0 -24
- package/src/components/Button/styles.module.scss +0 -70
- package/src/components/Category/Category.stories.tsx +0 -371
- package/src/components/Category/CategoryContent/index.tsx +0 -255
- package/src/components/Category/CategoryContent/styles.module.scss +0 -69
- package/src/components/Category/CategorySidebar/index.tsx +0 -344
- package/src/components/Category/CategorySidebar/styles.module.scss +0 -28
- package/src/components/Category/index.tsx +0 -58
- package/src/components/Category/styles.module.scss +0 -13
- package/src/components/CategoryReadOnly/CategoryReadOnly.stories.tsx +0 -274
- package/src/components/CategoryReadOnly/evaluationOptions.tsx +0 -81
- package/src/components/CategoryReadOnly/index.tsx +0 -328
- package/src/components/CategoryReadOnly/styles.module.scss +0 -214
- package/src/components/CategoryResponse/CategoryResponse.stories.tsx +0 -311
- package/src/components/CategoryResponse/evaluationOptions.tsx +0 -81
- package/src/components/CategoryResponse/index.tsx +0 -502
- package/src/components/CategoryResponse/styles.module.scss +0 -365
- package/src/components/DatePicker/DatePicker.stories.tsx +0 -16
- package/src/components/DatePicker/index.tsx +0 -38
- package/src/components/DatePicker/styles.module.scss +0 -3
- package/src/components/DatePickerTag/DatePickerTag.stories.tsx +0 -19
- package/src/components/DatePickerTag/index.tsx +0 -91
- package/src/components/DatePickerTag/styles.module.scss +0 -32
- package/src/components/DropdownButton/DropdownButton.stories.tsx +0 -24
- package/src/components/DropdownButton/index.tsx +0 -36
- package/src/components/DropdownButton/styles.module.scss +0 -9
- package/src/components/ExportTableData/ExportTableData.stories.tsx +0 -43
- package/src/components/ExportTableData/index.tsx +0 -37
- package/src/components/ExportTableData/styles.module.scss +0 -4
- package/src/components/Footer/Footer.stories.tsx +0 -15
- package/src/components/Footer/index.tsx +0 -45
- package/src/components/Footer/styles.module.scss +0 -38
- package/src/components/Footer2/Footer.stories.tsx +0 -184
- package/src/components/Footer2/index.tsx +0 -322
- package/src/components/Footer2/styles.module.scss +0 -292
- package/src/components/Header/Header.data.ts +0 -26
- package/src/components/Header/Header.stories.tsx +0 -236
- package/src/components/Header/Header.types.ts +0 -32
- package/src/components/Header/README.md +0 -38
- package/src/components/Header/index.tsx +0 -200
- package/src/components/Header/styles.module.scss +0 -216
- package/src/components/Input/Input.stories.tsx +0 -13
- package/src/components/Input/index.tsx +0 -31
- package/src/components/Input/styles.module.scss +0 -8
- package/src/components/InputCountryCode/index.tsx +0 -79
- package/src/components/InputCountryCode/inputCountryCode.stories.tsx +0 -55
- package/src/components/InputCountryCode/styles.module.scss +0 -3
- package/src/components/Label/Label.stories.tsx +0 -21
- package/src/components/Label/index.tsx +0 -19
- package/src/components/Label/styles.module.scss +0 -17
- package/src/components/Link/Link.stories.tsx +0 -30
- package/src/components/Link/index.tsx +0 -21
- package/src/components/Link/styles.module.scss +0 -24
- package/src/components/Menu/Menu.stories.tsx +0 -178
- package/src/components/Menu/helpers/codeMutation.tsx +0 -19
- package/src/components/Menu/index.tsx +0 -24
- package/src/components/Menu/styles.module.scss +0 -0
- package/src/components/MobileTable/MobileTable.stories.tsx +0 -27
- package/src/components/MobileTable/index.tsx +0 -102
- package/src/components/MobileTable/styles.module.scss +0 -75
- package/src/components/ModalConfirmation/ModalConfirmation.stories.tsx +0 -40
- package/src/components/ModalConfirmation/ModalStatusList.tsx +0 -5
- package/src/components/ModalConfirmation/index.tsx +0 -71
- package/src/components/ModalConfirmation/styles.module.scss +0 -62
- package/src/components/ModalWithTable/ModalWithTable.stories.tsx +0 -99
- package/src/components/ModalWithTable/index.tsx +0 -238
- package/src/components/ModalWithTable/styles.module.scss +0 -77
- package/src/components/Navigation/Navigation.stories.tsx +0 -21
- package/src/components/Navigation/index.tsx +0 -91
- package/src/components/Navigation/styles.module.scss +0 -91
- package/src/components/Notification/Notification.stories.tsx +0 -32
- package/src/components/Notification/index.tsx +0 -28
- package/src/components/Questions/Questions.stories.tsx +0 -37
- package/src/components/Questions/SingleQuestion/index.tsx +0 -337
- package/src/components/Questions/SingleQuestion/styles.module.scss +0 -142
- package/src/components/Questions/index.tsx +0 -124
- package/src/components/Questions/styles.modules.scss +0 -0
- package/src/components/Radio/Radio.stories.tsx +0 -43
- package/src/components/Radio/index.tsx +0 -26
- package/src/components/Radio/styles.module.scss +0 -24
- package/src/components/ResponseType/ResponseType.stories.tsx +0 -393
- package/src/components/ResponseType/index.tsx +0 -100
- package/src/components/ResponseType/styles.module.scss +0 -31
- package/src/components/ResponsiveTable/ResponsiveTable.stories.tsx +0 -386
- package/src/components/ResponsiveTable/index.tsx +0 -389
- package/src/components/ResponsiveTable/styles.module.scss +0 -153
- package/src/components/Select/Select.stories.tsx +0 -39
- package/src/components/Select/index.tsx +0 -27
- package/src/components/Select/styles.module.scss +0 -19
- package/src/components/Separator/Separator.stories.tsx +0 -22
- package/src/components/Separator/index.tsx +0 -27
- package/src/components/Separator/styles.module.scss +0 -25
- package/src/components/Sidebar/Sidebar.stories.tsx +0 -85
- package/src/components/Sidebar/index.tsx +0 -127
- package/src/components/Sidebar/styles.module.scss +0 -141
- package/src/components/Switch/Switch.stories.tsx +0 -14
- package/src/components/Switch/index.tsx +0 -18
- package/src/components/Switch/styles.module.scss +0 -7
- package/src/components/Table/Table.stories.tsx +0 -337
- package/src/components/Table/index.tsx +0 -313
- package/src/components/Table/styles.module.scss +0 -97
- package/src/components/Tag/Tag.stories.tsx +0 -32
- package/src/components/Tag/index.tsx +0 -295
- package/src/components/Tag/styles.module.scss +0 -104
- package/src/components/Upload/Upload.stories.tsx +0 -45
- package/src/components/Upload/index.tsx +0 -112
- package/src/components/Upload/styles.module.scss +0 -29
- package/src/components/UserInfo/UserInfo.stories.tsx +0 -38
- package/src/components/UserInfo/index.tsx +0 -77
- package/src/components/UserInfo/styles.module.scss +0 -35
- package/src/components/WebCam/WebCam.stories.tsx +0 -24
- package/src/components/WebCam/index.tsx +0 -73
- package/src/components/WebCam/styles.module.scss +0 -37
- package/src/components/index.tsx +0 -34
- package/src/constants/i18n.ts +0 -25
- package/src/constants/logoCompanyHelper.ts +0 -52
- package/src/constants/translationHelper.ts +0 -7
- package/src/index.ts +0 -3
- package/src/locales/en.json +0 -142
- package/src/locales/es.json +0 -142
- package/src/locales/pt.json +0 -142
- package/src/types/Global.d.ts +0 -4
- package/tsconfig.json +0 -24
- package/vite.config.js +0 -51
|
@@ -1,365 +0,0 @@
|
|
|
1
|
-
.categoryResponse {
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-direction: column;
|
|
4
|
-
gap: 16px;
|
|
5
|
-
height: 100%;
|
|
6
|
-
|
|
7
|
-
@media(min-width: 600px) {
|
|
8
|
-
display: grid;
|
|
9
|
-
grid-template-columns: 220px auto;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
@media(min-width: 768px) {
|
|
13
|
-
grid-template-columns: 300px auto;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.sidebarWrapper {
|
|
18
|
-
background: #EBECED;
|
|
19
|
-
overflow: auto;
|
|
20
|
-
padding: 20px;
|
|
21
|
-
|
|
22
|
-
@media(max-width: 599px) {
|
|
23
|
-
padding: 20px 20px 0 20px;
|
|
24
|
-
max-height: 80px;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.contentWrapper {
|
|
29
|
-
background: var(--color-white);
|
|
30
|
-
overflow: auto;
|
|
31
|
-
padding: 20px;
|
|
32
|
-
|
|
33
|
-
@media(max-width: 599px) {
|
|
34
|
-
height: 100%;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.title {
|
|
39
|
-
font-size: var(--font-size-body-2);
|
|
40
|
-
color: var(--color-blue);
|
|
41
|
-
margin-bottom: 12px;
|
|
42
|
-
font-weight: var(--font-weight-semibold);
|
|
43
|
-
text-transform: uppercase;
|
|
44
|
-
|
|
45
|
-
@media(min-width: 768px) {
|
|
46
|
-
font-size: var(--font-size-body-4);
|
|
47
|
-
margin-bottom: 36px;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.label {
|
|
52
|
-
padding-bottom: 15px;
|
|
53
|
-
font-weight: var(--font-weight-bold);
|
|
54
|
-
font-size: var(--font-size-body-4);
|
|
55
|
-
|
|
56
|
-
@media(max-width: 767px) {
|
|
57
|
-
font-size: var(--font-size-body-3);
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.cursorPointer {
|
|
62
|
-
cursor: pointer;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.subCategory {
|
|
66
|
-
padding-left: 16px;
|
|
67
|
-
|
|
68
|
-
.label {
|
|
69
|
-
font-weight: var(--font-weight-semibold);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.labelWrapper {
|
|
73
|
-
.subCategory {
|
|
74
|
-
.label {
|
|
75
|
-
font-weight: var(--font-weight-light);
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
.labelWrapper {
|
|
82
|
-
display: block;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.active {
|
|
86
|
-
color: var(--color-orange);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
.details {
|
|
90
|
-
margin-bottom: 16px;
|
|
91
|
-
|
|
92
|
-
@media(min-width: 768px) {
|
|
93
|
-
margin-bottom: 24px;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.categoryName {
|
|
98
|
-
font-size: var(--font-size-body-3);
|
|
99
|
-
color: var(--color-blue);
|
|
100
|
-
font-weight: var(--font-weight-semibold);
|
|
101
|
-
margin-bottom: 8px;
|
|
102
|
-
|
|
103
|
-
@media(min-width: 768px) {
|
|
104
|
-
font-size: var(--font-size-body-4);
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.categoryDescription {
|
|
109
|
-
font-size: var(--font-size-body-2);
|
|
110
|
-
font-weight: var(--font-weight-light);
|
|
111
|
-
color: var(--color-black);
|
|
112
|
-
|
|
113
|
-
@media(min-width: 768px) {
|
|
114
|
-
font-size: var(--font-size-body-3);
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
// Questions
|
|
119
|
-
.questionWrapper {
|
|
120
|
-
display: flex;
|
|
121
|
-
flex-direction: row;
|
|
122
|
-
gap: 12px;
|
|
123
|
-
margin-bottom: 24px;
|
|
124
|
-
|
|
125
|
-
@media(min-width: 768px) {
|
|
126
|
-
margin-bottom: 36px;
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
.questionWrapperOpenAnswer {
|
|
131
|
-
flex-direction: column;
|
|
132
|
-
border-bottom: 1px solid rgba(var(--color-blue-rgb), .2);
|
|
133
|
-
margin-bottom: 24px;
|
|
134
|
-
|
|
135
|
-
.question {
|
|
136
|
-
width: 100%;
|
|
137
|
-
border-bottom: none;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
.answer {
|
|
141
|
-
width: 100%;
|
|
142
|
-
height: auto;
|
|
143
|
-
|
|
144
|
-
:global {
|
|
145
|
-
.ant-input {
|
|
146
|
-
min-height: 140px;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
.ant-form-item {
|
|
150
|
-
margin-bottom: 16px;
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
.question {
|
|
157
|
-
width: 100%;
|
|
158
|
-
border-bottom: 1px solid rgba(var(--color-blue-rgb), .2);
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
.answer {
|
|
162
|
-
width: 100px;
|
|
163
|
-
height: 50px;
|
|
164
|
-
align-self: flex-end;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
.subject {
|
|
168
|
-
font-size: var(--font-size-body-4);
|
|
169
|
-
font-weight: var(--font-weight-medium);
|
|
170
|
-
|
|
171
|
-
@media(max-width: 767px) {
|
|
172
|
-
font-size: var(--font-size-body-3);
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
.description {
|
|
177
|
-
font-weight: var(--font-weight-light);
|
|
178
|
-
font-size: var(--font-size-body-3);
|
|
179
|
-
margin-bottom: 4px;
|
|
180
|
-
|
|
181
|
-
@media(max-width: 767px) {
|
|
182
|
-
font-size: var(--font-size-body-2);
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
.noteContainer {
|
|
187
|
-
font-weight: var(--font-weight-light);
|
|
188
|
-
margin-top: 20px;
|
|
189
|
-
display: flex;
|
|
190
|
-
gap: 4px;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
.noteText {
|
|
194
|
-
word-wrap: break-word;
|
|
195
|
-
white-space: pre-wrap;
|
|
196
|
-
max-height: 100px;
|
|
197
|
-
overflow: auto;
|
|
198
|
-
font-size: var(--font-size-body-3);
|
|
199
|
-
|
|
200
|
-
@media(max-width: 767px) {
|
|
201
|
-
font-size: var(--font-size-body-2);
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
.note {
|
|
206
|
-
font-weight: var(--font-weight-semibold);
|
|
207
|
-
font-size: var(--font-size-body-3);
|
|
208
|
-
|
|
209
|
-
@media(max-width: 767px) {
|
|
210
|
-
font-size: var(--font-size-body-2);
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
.form {
|
|
215
|
-
margin-bottom: unset;
|
|
216
|
-
width: 100%;
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
.actionContainer {
|
|
220
|
-
font-weight: var(--font-weight-light);
|
|
221
|
-
margin-bottom: 4px;
|
|
222
|
-
margin-top: 16px;
|
|
223
|
-
display: flex;
|
|
224
|
-
gap: 4px;
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
.action {
|
|
228
|
-
display: flex;
|
|
229
|
-
flex-direction: column;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
.actionsButtonsContainer {
|
|
233
|
-
display: flex;
|
|
234
|
-
flex-direction: row;
|
|
235
|
-
justify-content: center;
|
|
236
|
-
gap: 20px;
|
|
237
|
-
margin-top: 12px;
|
|
238
|
-
margin-bottom: 12px;
|
|
239
|
-
width: 100%;
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
.buttonContainer {
|
|
243
|
-
cursor: pointer;
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
.actionsButtons {
|
|
247
|
-
color: var(--color-black);
|
|
248
|
-
background-color: var(--color-white);
|
|
249
|
-
border: 1px var(--color-black) solid;
|
|
250
|
-
min-width: 100px;
|
|
251
|
-
height: 20px;
|
|
252
|
-
font-size: 10px;
|
|
253
|
-
padding: unset;
|
|
254
|
-
|
|
255
|
-
&:hover {
|
|
256
|
-
background-color: var(--color-grey-light);
|
|
257
|
-
color: var(--color-black) !important;
|
|
258
|
-
border: 1px var(--color-black) solid !important;
|
|
259
|
-
}
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
.uploadContainer {
|
|
263
|
-
text-align: center;
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
.uploadIconContainer {
|
|
267
|
-
cursor: pointer;
|
|
268
|
-
|
|
269
|
-
@media(min-width: 768px) {
|
|
270
|
-
font-size: 4px;
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
.iconStyle {
|
|
275
|
-
font-size: 12px;
|
|
276
|
-
margin-right: 4px;
|
|
277
|
-
|
|
278
|
-
@media(min-width: 1350px) {
|
|
279
|
-
margin-top: 4px;
|
|
280
|
-
font-size: 16px !important;
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
@media(min-width: 768px) {
|
|
284
|
-
font-size: 14px;
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
.buttonLabel {
|
|
289
|
-
font-weight: 400 !important;
|
|
290
|
-
font-size: 12px;
|
|
291
|
-
text-transform: capitalize;
|
|
292
|
-
|
|
293
|
-
@media(min-width: 1350px) {
|
|
294
|
-
font-size: 16px !important;
|
|
295
|
-
margin-bottom: 0px;
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
@media(min-width: 768px) {
|
|
299
|
-
font-size: 14px;
|
|
300
|
-
margin-bottom: 0px;
|
|
301
|
-
}
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
.loadFile {
|
|
305
|
-
color: var(--color-black);
|
|
306
|
-
background-color: var(--color-white);
|
|
307
|
-
border: 1px var(--color-black) solid;
|
|
308
|
-
min-width: 100px;
|
|
309
|
-
height: 20px;
|
|
310
|
-
font-size: 10px;
|
|
311
|
-
padding: unset;
|
|
312
|
-
|
|
313
|
-
&:hover {
|
|
314
|
-
background-color: var(--color-grey-light);
|
|
315
|
-
color: var(--color-black) !important;
|
|
316
|
-
border: 1px var(--color-black) solid !important;
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
.selectAnswerStyle {
|
|
321
|
-
min-width: 100% !important;
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
.datePickerStyle {
|
|
325
|
-
width: 25%;
|
|
326
|
-
height: 40px;
|
|
327
|
-
|
|
328
|
-
@media(max-width: 767px) {
|
|
329
|
-
width: 50%;
|
|
330
|
-
}
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
.inputNumberStyle {
|
|
334
|
-
width: 25%;
|
|
335
|
-
height: 40px;
|
|
336
|
-
|
|
337
|
-
@media(max-width: 767px) {
|
|
338
|
-
width: 50%;
|
|
339
|
-
}
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
.textArea {
|
|
343
|
-
padding: unset;
|
|
344
|
-
color: unset !important;
|
|
345
|
-
}
|
|
346
|
-
|
|
347
|
-
:global {
|
|
348
|
-
.ant-upload-wrapper {
|
|
349
|
-
line-height: 12px;
|
|
350
|
-
}
|
|
351
|
-
|
|
352
|
-
.ant-upload-wrapper .ant-upload-list .ant-upload-list-item {
|
|
353
|
-
max-width: calc(100vw/5) !important;
|
|
354
|
-
font-size: 12px !important;
|
|
355
|
-
|
|
356
|
-
@media(max-width: 767px) {
|
|
357
|
-
font-size: 10px !important;
|
|
358
|
-
max-width: calc(100vw/2) !important;
|
|
359
|
-
}
|
|
360
|
-
}
|
|
361
|
-
|
|
362
|
-
:where(.css-dev-only-do-not-override-f7vrd6).ant-input-number .ant-input-number-input {
|
|
363
|
-
height: 35px;
|
|
364
|
-
}
|
|
365
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryFn } from "@storybook/react-vite";
|
|
2
|
-
import { CustomDatePicker, CustomDatePickerProps } from '.';
|
|
3
|
-
|
|
4
|
-
export default {
|
|
5
|
-
title: 'DatePicker',
|
|
6
|
-
component: CustomDatePicker,
|
|
7
|
-
} as Meta;
|
|
8
|
-
|
|
9
|
-
const Template: StoryFn<CustomDatePickerProps> = (args: any) => <CustomDatePicker {...args}></CustomDatePicker>;
|
|
10
|
-
|
|
11
|
-
export const Primary = Template.bind({});
|
|
12
|
-
Primary.args = {
|
|
13
|
-
onChange: (x: any, y: any) => {
|
|
14
|
-
console.log(x, y);
|
|
15
|
-
},
|
|
16
|
-
};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import styles from './styles.module.scss';
|
|
2
|
-
import { DatePicker, DatePickerProps } from 'antd';
|
|
3
|
-
|
|
4
|
-
export type CustomDatePickerProps = DatePickerProps & {
|
|
5
|
-
isRangePicker?: boolean;
|
|
6
|
-
onChange?: (a: any, b: any) => void;
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
defaultValue?: any;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
const { RangePicker } = DatePicker;
|
|
12
|
-
|
|
13
|
-
export const CustomDatePicker = ({
|
|
14
|
-
className, onChange, value, isRangePicker, disabled, defaultValue, ...rest
|
|
15
|
-
}: CustomDatePickerProps) => {
|
|
16
|
-
|
|
17
|
-
return (
|
|
18
|
-
<>
|
|
19
|
-
{ isRangePicker
|
|
20
|
-
?
|
|
21
|
-
<RangePicker
|
|
22
|
-
onChange={ onChange }
|
|
23
|
-
className={ `${styles.sitooDatePicker} ${className}` }
|
|
24
|
-
disabled={disabled}
|
|
25
|
-
defaultValue={defaultValue}
|
|
26
|
-
/>
|
|
27
|
-
:
|
|
28
|
-
<DatePicker
|
|
29
|
-
{ ...rest }
|
|
30
|
-
value={ value }
|
|
31
|
-
onChange={ onChange }
|
|
32
|
-
defaultValue={defaultValue}
|
|
33
|
-
className={ `${styles.sitooDatePicker} ${className}` }
|
|
34
|
-
/>
|
|
35
|
-
}
|
|
36
|
-
</>
|
|
37
|
-
);
|
|
38
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { Meta, StoryFn } from "@storybook/react-vite";
|
|
2
|
-
import { DatePickerTag } from '.';
|
|
3
|
-
import { TagProps } from 'antd';
|
|
4
|
-
import { useState } from "react";
|
|
5
|
-
|
|
6
|
-
export default {
|
|
7
|
-
title: 'DatePickerTag',
|
|
8
|
-
component: DatePickerTag,
|
|
9
|
-
} as Meta;
|
|
10
|
-
|
|
11
|
-
const Template: StoryFn<TagProps> = (args: any) => {
|
|
12
|
-
const [tagsInfo, setTagsInfo] = useState<any>({});
|
|
13
|
-
|
|
14
|
-
return <DatePickerTag {...args} tagsInfo={setTagsInfo}></DatePickerTag>;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export const Primary = Template.bind({});
|
|
18
|
-
Primary.args = {
|
|
19
|
-
};
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import React, { useEffect, useState } from 'react';
|
|
2
|
-
import type { Dayjs } from 'dayjs';
|
|
3
|
-
import { DatePicker, Tag, TagProps } from 'antd';
|
|
4
|
-
import { TweenOneGroup } from 'rc-tween-one';
|
|
5
|
-
import styles from './styles.module.scss';
|
|
6
|
-
import { t } from 'i18next';
|
|
7
|
-
import dayjs from "dayjs";
|
|
8
|
-
import locale from 'antd/es/date-picker/locale/pt_BR';
|
|
9
|
-
|
|
10
|
-
export interface DatePickerTagProps extends TagProps {
|
|
11
|
-
customTags?: any,
|
|
12
|
-
tagsInfo?: any;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
type DateValue = Dayjs | null;
|
|
16
|
-
|
|
17
|
-
export const DatePickerTag = (props: DatePickerTagProps) => {
|
|
18
|
-
const { customTags = [] } = props;
|
|
19
|
-
|
|
20
|
-
const [tags, setTags] = useState<any>(customTags);
|
|
21
|
-
const [dateValue, setDateValue] = useState<DateValue>(null);
|
|
22
|
-
|
|
23
|
-
const handleClose = (removedTag: any) => {
|
|
24
|
-
const newTags = tags.filter((tag: any) => tag !== removedTag);
|
|
25
|
-
setTags(newTags);
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
const handleChange = (date: DateValue, dateString: string) => {
|
|
29
|
-
const formattedDate = date?.format('DD/MM/YYYY');
|
|
30
|
-
setTags([...tags, formattedDate]);
|
|
31
|
-
setDateValue(null);
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
useEffect(() => {
|
|
35
|
-
props?.tagsInfo(tags);
|
|
36
|
-
}, [tags]);
|
|
37
|
-
|
|
38
|
-
const forMap = (tag: any) => {
|
|
39
|
-
const tagElem = (
|
|
40
|
-
<Tag
|
|
41
|
-
closable
|
|
42
|
-
onClose={(e) => {
|
|
43
|
-
e.preventDefault();
|
|
44
|
-
handleClose(tag);
|
|
45
|
-
}}
|
|
46
|
-
>
|
|
47
|
-
{tag}
|
|
48
|
-
</Tag>
|
|
49
|
-
);
|
|
50
|
-
return (
|
|
51
|
-
<span key={tag} className={styles.new} style={{ display: 'inline-block' }}>
|
|
52
|
-
{tagElem}
|
|
53
|
-
</span>
|
|
54
|
-
);
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
const tagChild = tags.map(forMap);
|
|
58
|
-
|
|
59
|
-
return (
|
|
60
|
-
<div className={styles.tagfield}>
|
|
61
|
-
<DatePicker
|
|
62
|
-
disabledDate={(current) => current && current < dayjs().endOf("day")}
|
|
63
|
-
value={dateValue}
|
|
64
|
-
onChange={handleChange as any}
|
|
65
|
-
className={styles.picker}
|
|
66
|
-
placeholder={t('components.datePickerTag.placeholder')!}
|
|
67
|
-
locale={locale}
|
|
68
|
-
/>
|
|
69
|
-
|
|
70
|
-
<div style={{ marginTop: 16 }}>
|
|
71
|
-
<TweenOneGroup
|
|
72
|
-
enter={{
|
|
73
|
-
scale: 0.8,
|
|
74
|
-
opacity: 0,
|
|
75
|
-
type: 'from',
|
|
76
|
-
duration: 100,
|
|
77
|
-
}}
|
|
78
|
-
onEnd={(e: any) => {
|
|
79
|
-
if (e.type === 'appear' || e.type === 'enter') {
|
|
80
|
-
(e.target as any).style = 'display: inline-block';
|
|
81
|
-
}
|
|
82
|
-
}}
|
|
83
|
-
leave={{ opacity: 0, width: 0, scale: 0, duration: 200 }}
|
|
84
|
-
appear={false}
|
|
85
|
-
>
|
|
86
|
-
{tagChild}
|
|
87
|
-
</TweenOneGroup>
|
|
88
|
-
</div>
|
|
89
|
-
</div>
|
|
90
|
-
);
|
|
91
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
.tagfield {
|
|
2
|
-
contain: inline-size;
|
|
3
|
-
|
|
4
|
-
.picker {
|
|
5
|
-
height: 50px;
|
|
6
|
-
width: 300px;
|
|
7
|
-
|
|
8
|
-
@media(min-width: 1024px) {
|
|
9
|
-
width: 450px;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.new {
|
|
14
|
-
:global {
|
|
15
|
-
.ant-tag {
|
|
16
|
-
background-color: var(--color-orange);
|
|
17
|
-
color: var(--color-white);
|
|
18
|
-
padding: 6px 16px;
|
|
19
|
-
max-width: 240px;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.anticon-close {
|
|
23
|
-
color: var(--color-white);
|
|
24
|
-
font-size: 12px;
|
|
25
|
-
|
|
26
|
-
&:hover {
|
|
27
|
-
color: var(--color-black);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Meta, StoryFn } from "@storybook/react-vite";
|
|
3
|
-
import { DropdownButton, DropdownButtonProps } from '.';
|
|
4
|
-
|
|
5
|
-
export default {
|
|
6
|
-
title: 'DropdownButton',
|
|
7
|
-
component: DropdownButton,
|
|
8
|
-
} as Meta;
|
|
9
|
-
|
|
10
|
-
const onLeft = () => {
|
|
11
|
-
console.log(9);
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
const Template: StoryFn<DropdownButtonProps> = (args: any) => <DropdownButton {...args} />;
|
|
15
|
-
|
|
16
|
-
export const BasicDropdown = Template.bind({});
|
|
17
|
-
BasicDropdown.args = {
|
|
18
|
-
buttonText: 'Dropdown',
|
|
19
|
-
options: [
|
|
20
|
-
{ label: 'Option 1', action: () => onLeft() },
|
|
21
|
-
{ label: 'Option 2', action: () => alert('Option 2 clicked') },
|
|
22
|
-
{ label: 'Option 3', action: () => alert('Option 3 clicked') },
|
|
23
|
-
],
|
|
24
|
-
};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Menu, Dropdown, DropdownProps } from 'antd';
|
|
3
|
-
import classNames from 'classnames';
|
|
4
|
-
import { Button } from '../Button';
|
|
5
|
-
import styles from './styles.module.scss';
|
|
6
|
-
|
|
7
|
-
export interface DropdownButtonProps extends DropdownProps {
|
|
8
|
-
options?: { label: string, action: () => void }[];
|
|
9
|
-
buttonText: string;
|
|
10
|
-
buttonClass?: string;
|
|
11
|
-
customButton?: React.ReactNode;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export const DropdownButton = ({ options, buttonText, buttonClass, customButton, ...props }: DropdownButtonProps) => {
|
|
15
|
-
const menu = (
|
|
16
|
-
<Menu>
|
|
17
|
-
{options && options.map((option, index) => (
|
|
18
|
-
<Menu.Item key={index} onClick={option.action}>{option.label}</Menu.Item>
|
|
19
|
-
))}
|
|
20
|
-
</Menu>
|
|
21
|
-
);
|
|
22
|
-
|
|
23
|
-
const linkClasses = classNames({
|
|
24
|
-
[`${buttonClass}`]: buttonClass,
|
|
25
|
-
}, [styles.dropdown]);
|
|
26
|
-
|
|
27
|
-
return (
|
|
28
|
-
<Dropdown overlay={menu} trigger={['click']}>
|
|
29
|
-
{customButton ? (
|
|
30
|
-
customButton
|
|
31
|
-
) : (
|
|
32
|
-
<Button className={linkClasses}>{buttonText}</Button>
|
|
33
|
-
)}
|
|
34
|
-
</Dropdown>
|
|
35
|
-
);
|
|
36
|
-
};
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Meta, StoryFn } from "@storybook/react-vite";
|
|
3
|
-
import { TableExportButton } from './index';
|
|
4
|
-
|
|
5
|
-
export default {
|
|
6
|
-
title: 'TableExportButton',
|
|
7
|
-
component: TableExportButton,
|
|
8
|
-
} as Meta;
|
|
9
|
-
|
|
10
|
-
const columnTranslations = {
|
|
11
|
-
id: 'ID',
|
|
12
|
-
name: 'Nome',
|
|
13
|
-
age: 'Idade',
|
|
14
|
-
occupation: 'Ocupação'
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
const Template: StoryFn<any> = (args: any) => <TableExportButton {...args} />;
|
|
18
|
-
|
|
19
|
-
export const ExportButton = Template.bind({});
|
|
20
|
-
ExportButton.args = {
|
|
21
|
-
data: [
|
|
22
|
-
{
|
|
23
|
-
id: 1,
|
|
24
|
-
name: 'John Doe',
|
|
25
|
-
age: 30,
|
|
26
|
-
occupation: 'Software Developer'
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
id: 2,
|
|
30
|
-
name: 'Jane Smith',
|
|
31
|
-
age: 28,
|
|
32
|
-
occupation: 'Data Scientist'
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
id: 3,
|
|
36
|
-
name: 'Michael Johnson',
|
|
37
|
-
age: 35,
|
|
38
|
-
occupation: 'Project Manager'
|
|
39
|
-
},
|
|
40
|
-
],
|
|
41
|
-
fileName: 'table_data',
|
|
42
|
-
columnTranslations: columnTranslations
|
|
43
|
-
};
|