corpushub-design-system 0.1.0 → 0.1.1

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.
Files changed (142) hide show
  1. package/dist/common/AppDropzone/AppDropzoneBody.js +2 -1
  2. package/dist/common/AppDropzone/UploadedFile.d.ts +2 -0
  3. package/dist/common/AppDropzone/index.d.ts +2 -0
  4. package/dist/common/AppDropzone/index.js +1 -0
  5. package/dist/common/AppDropzone/toMediaDisplayUrl.d.ts +10 -0
  6. package/dist/common/AppDropzone/toMediaDisplayUrl.js +27 -0
  7. package/dist/common/AppPicture/AppPicture.js +1 -1
  8. package/dist/common/AppTable/styles.scss +6 -2
  9. package/dist/common/index.d.ts +1 -1
  10. package/dist/common/index.js +1 -1
  11. package/dist/configs/Localization.js +4 -0
  12. package/dist/configs/api/applyAuthErrorHandling.js +5 -0
  13. package/dist/configs/api/index.js +2 -0
  14. package/dist/configs/auth/authApi.js +6 -0
  15. package/dist/configs/auth/installAuthRefreshInterceptor.js +5 -0
  16. package/dist/configs/auth/isPublicAuthRequest.d.ts +6 -0
  17. package/dist/configs/auth/isPublicAuthRequest.js +28 -0
  18. package/dist/configs/auth/session.js +8 -6
  19. package/dist/configs/brand.d.ts +6 -0
  20. package/dist/configs/brand.js +10 -3
  21. package/dist/configs/index.d.ts +3 -2
  22. package/dist/configs/index.js +2 -1
  23. package/dist/configs/localization/BackupTexts.d.ts +74 -0
  24. package/dist/configs/localization/BackupTexts.js +74 -0
  25. package/dist/configs/localization/CommentsTexts.d.ts +145 -145
  26. package/dist/configs/localization/CommentsTexts.js +145 -145
  27. package/dist/configs/localization/CommonTexts.d.ts +15 -0
  28. package/dist/configs/localization/CommonTexts.js +18 -3
  29. package/dist/configs/localization/HeaderTexts.js +3 -3
  30. package/dist/configs/localization/HelpTexts.d.ts +44 -2
  31. package/dist/configs/localization/HelpTexts.js +53 -11
  32. package/dist/configs/localization/HistoryTexts.d.ts +6 -0
  33. package/dist/configs/localization/HistoryTexts.js +6 -0
  34. package/dist/configs/localization/ParserRuleGroupsTexts.d.ts +53 -0
  35. package/dist/configs/localization/ParserRuleGroupsTexts.js +53 -0
  36. package/dist/configs/services/ProfileService.js +3 -3
  37. package/dist/configs/tour/index.d.ts +1 -1
  38. package/dist/configs/types/CorpusImage.d.ts +3 -0
  39. package/dist/features/AccessControl/AccessControlService.d.ts +9 -0
  40. package/dist/features/AccessControl/AccessControlService.js +22 -8
  41. package/dist/features/AccessControl/AccessGrant/AccessGrant.js +3 -1
  42. package/dist/features/AccessControl/AccessUser/AccessData.d.ts +2 -2
  43. package/dist/features/AccessControl/AccessUser/AccessData.js +21 -21
  44. package/dist/features/AccessControl/AccessUser/AccessUser.js +20 -3
  45. package/dist/features/AccessControl/AccessUser/AccessUserGroups.d.ts +8 -0
  46. package/dist/features/AccessControl/AccessUser/AccessUserGroups.js +77 -0
  47. package/dist/features/AccessControl/AccessUser/style.scss +41 -3
  48. package/dist/features/AccessControl/AccessUsers/AccessUsers.js +44 -29
  49. package/dist/features/AccessControl/AccessUsers/styles.scss +5 -0
  50. package/dist/features/AccessControl/index.d.ts +1 -0
  51. package/dist/features/AccessControl/types/CorpusGroup.d.ts +10 -0
  52. package/dist/features/AccessControl/types/CorpusGroup.js +1 -0
  53. package/dist/features/AccessControl/types/UserAccessResponse.d.ts +4 -0
  54. package/dist/features/Backup/BackupCreate/BackupCreate.d.ts +11 -0
  55. package/dist/features/Backup/BackupCreate/BackupCreate.js +89 -0
  56. package/dist/features/Backup/BackupCreate/index.d.ts +2 -0
  57. package/dist/features/Backup/BackupCreate/index.js +2 -0
  58. package/dist/features/Backup/BackupCreate/style.scss +5 -0
  59. package/dist/features/Backup/BackupInfo/BackupInfo.d.ts +8 -0
  60. package/dist/features/Backup/BackupInfo/BackupInfo.js +36 -0
  61. package/dist/features/Backup/BackupInfo/index.d.ts +2 -0
  62. package/dist/features/Backup/BackupInfo/index.js +2 -0
  63. package/dist/features/Backup/BackupInfo/style.scss +23 -0
  64. package/dist/features/Backup/BackupRestore/BackupRestore.d.ts +7 -0
  65. package/dist/features/Backup/BackupRestore/BackupRestore.js +52 -0
  66. package/dist/features/Backup/BackupRestore/index.d.ts +3 -0
  67. package/dist/features/Backup/BackupRestore/index.js +2 -0
  68. package/dist/features/Backup/BackupRestore/style.scss +17 -0
  69. package/dist/features/Backup/BackupService.d.ts +20 -0
  70. package/dist/features/Backup/BackupService.js +43 -0
  71. package/dist/features/Backup/BackupTable/BackupSearchFilter.d.ts +5 -0
  72. package/dist/features/Backup/BackupTable/BackupSearchFilter.js +4 -0
  73. package/dist/features/Backup/BackupTable/BackupTable.d.ts +8 -0
  74. package/dist/features/Backup/BackupTable/BackupTable.js +121 -0
  75. package/dist/features/Backup/BackupTable/index.d.ts +4 -0
  76. package/dist/features/Backup/BackupTable/index.js +3 -0
  77. package/dist/features/Backup/BackupTable/style.scss +19 -0
  78. package/dist/features/Backup/index.d.ts +7 -0
  79. package/dist/features/Backup/index.js +4 -0
  80. package/dist/features/Backup/types/Backup.d.ts +14 -0
  81. package/dist/features/Backup/types/Backup.js +1 -0
  82. package/dist/features/Comments/CommentService.js +2 -1
  83. package/dist/features/PageRender/PageRenderView.d.ts +1 -1
  84. package/dist/features/PageRender/PageRenderView.js +67 -9
  85. package/dist/features/PageRender/style.scss +27 -5
  86. package/dist/features/PageRender/types.d.ts +5 -1
  87. package/dist/features/ParserRuleGroups/ParserRuleGroupItem.d.ts +9 -0
  88. package/dist/features/ParserRuleGroups/ParserRuleGroupItem.js +18 -0
  89. package/dist/features/ParserRuleGroups/ParserRuleGroupsEditor.d.ts +17 -0
  90. package/dist/features/ParserRuleGroups/ParserRuleGroupsEditor.js +129 -0
  91. package/dist/features/ParserRuleGroups/index.d.ts +2 -0
  92. package/dist/features/ParserRuleGroups/index.js +2 -0
  93. package/dist/features/ParserRuleGroups/style.scss +81 -0
  94. package/dist/features/ServerErrorReport/ServerErrorReport.js +9 -48
  95. package/dist/features/ServerErrorReport/ServerErrorReportForm.d.ts +22 -0
  96. package/dist/features/ServerErrorReport/ServerErrorReportForm.js +85 -0
  97. package/dist/features/ServerErrorReport/captureTabScreenshot.d.ts +1 -1
  98. package/dist/features/ServerErrorReport/captureTabScreenshot.js +5 -20
  99. package/dist/features/ServerErrorReport/index.d.ts +2 -0
  100. package/dist/features/ServerErrorReport/index.js +1 -0
  101. package/dist/features/ServerErrorReport/styles.scss +22 -9
  102. package/dist/features/index.d.ts +5 -1
  103. package/dist/features/index.js +2 -0
  104. package/dist/primitives/AsyncSelectField/AsyncSelectField.js +2 -2
  105. package/dist/primitives/AsyncSelectField/styles.scss +31 -31
  106. package/dist/primitives/Button/Button.d.ts +5 -4
  107. package/dist/primitives/Button/Button.js +19 -19
  108. package/dist/primitives/DropdownButton/DropdownButton.d.ts +2 -1
  109. package/dist/primitives/DropdownButton/DropdownButton.js +2 -2
  110. package/dist/primitives/DropdownMenu/DropdownMenu.js +7 -1
  111. package/dist/primitives/Icon/Icon.d.ts +2 -1
  112. package/dist/primitives/Icon/Icon.js +2 -2
  113. package/dist/primitives/IconButton/IconButton.d.ts +2 -1
  114. package/dist/primitives/IconButton/IconButton.js +2 -2
  115. package/dist/primitives/Tag/Tag.d.ts +2 -1
  116. package/dist/primitives/Tag/Tag.js +3 -3
  117. package/dist/primitives/index.js +1 -1
  118. package/dist/shell/Header/HelpButton/HelpModal.js +3 -69
  119. package/dist/shell/Header/HelpButton/HelpModalMainColumn.d.ts +5 -0
  120. package/dist/shell/Header/HelpButton/HelpModalMainColumn.js +76 -0
  121. package/dist/shell/Header/HelpButton/HelpModalSideColumn.d.ts +7 -0
  122. package/dist/shell/Header/HelpButton/HelpModalSideColumn.js +18 -0
  123. package/dist/shell/Header/HelpButton/live-tour.png +0 -0
  124. package/dist/shell/Header/HelpButton/style.scss +330 -47
  125. package/dist/styles/base/_typographs.scss +376 -1
  126. package/dist/styles/main.scss +112 -1
  127. package/package.json +1 -1
  128. package/dist/primitives/styles/base/_typographs.scss +0 -376
  129. package/dist/primitives/styles/font-googleapis.scss +0 -222
  130. package/dist/primitives/styles/main.scss +0 -112
  131. /package/dist/{primitives/fonts → fonts}/material-symbols-outlined.woff2 +0 -0
  132. /package/dist/{primitives/fonts → fonts}/work-sans-latin-ext.woff2 +0 -0
  133. /package/dist/{primitives/fonts → fonts}/work-sans-latin.woff2 +0 -0
  134. /package/dist/{primitives/fonts → fonts}/work-sans-vietnamese.woff2 +0 -0
  135. /package/dist/{primitives/fonts.d.ts → fonts.d.ts} +0 -0
  136. /package/dist/{primitives/fonts.js → fonts.js} +0 -0
  137. /package/dist/{primitives/styles → styles}/base/_borders.scss +0 -0
  138. /package/dist/{primitives/styles → styles}/base/_colors.scss +0 -0
  139. /package/dist/{primitives/styles → styles}/base/_displays.scss +0 -0
  140. /package/dist/{primitives/styles → styles}/base/_margins.css +0 -0
  141. /package/dist/{primitives/styles → styles}/base/_spacing.scss +0 -0
  142. /package/dist/{primitives/styles → styles}/base/_tokens.scss +0 -0
@@ -1,58 +1,306 @@
1
1
  .help-modal {
2
- max-width: 60vw !important;
3
- width: 60vw !important;
2
+ max-width: min(1400px, 85vw) !important;
3
+ width: min(1400px, 85vw) !important;
4
+ top: 50% !important;
5
+ max-height: 88vh;
4
6
 
5
- .body {
7
+ > .body {
8
+ display: flex;
9
+ flex-direction: column;
10
+ max-height: calc(88vh - 88px);
11
+ overflow: hidden;
12
+ padding-top: var(--spacing-200);
13
+ }
14
+
15
+ &__layout {
6
16
  display: grid;
7
- grid-template-columns: repeat(3, minmax(0, 1fr));
17
+ grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
18
+ gap: 8px;
19
+ min-height: 0;
20
+ flex: 1;
21
+ animation: help-modal-fade-in 220ms ease-out;
22
+ }
23
+
24
+ &__main {
25
+ display: flex;
26
+ flex-direction: column;
8
27
  gap: var(--spacing-200);
28
+ min-height: 0;
29
+ overflow-y: auto;
30
+ padding-right: 4px;
31
+ }
9
32
 
10
- .item {
11
- display: flex;
12
- flex-direction: column;
13
- min-width: 0;
14
- padding: 24px 24px 16px;
15
- border: 1px solid var(--border-subtle-2);
16
- border-radius: var(--radius-100);
17
-
18
- > .title {
19
- @include subtitle-small-2;
20
- color: var(--text-primary);
21
- margin-bottom: 4px;
22
- }
23
-
24
- > .desc {
25
- @include body-medium-1;
26
- color: var(--text-secondary);
27
- }
28
-
29
- > .ds-button {
30
- margin-top: auto;
31
- }
33
+ &__tour {
34
+ display: flex;
35
+ flex-direction: column;
36
+ gap: var(--spacing-200);
37
+ padding: 16px;
38
+ border: 1px solid var(--border-subtle-2);
39
+ border-radius: var(--radius-200);
40
+ background-color: #ebeff8;
41
+ color: var(--text-primary);
42
+ }
43
+
44
+ &__tour-header {
45
+ display: flex;
46
+ flex-direction: column;
47
+ gap: var(--spacing-100);
48
+ width: 100%;
49
+ }
50
+
51
+ &__tour-body {
52
+ display: grid;
53
+ grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
54
+ gap: var(--spacing-300);
55
+ align-items: center;
56
+ width: 100%;
57
+ }
58
+
59
+ &__tour-content {
60
+ display: flex;
61
+ flex-direction: column;
62
+ gap: var(--spacing-100);
63
+ min-width: 0;
64
+ }
65
+
66
+ &__tour-title {
67
+ margin: 0;
68
+ @include subtitle-medium-2;
69
+ color: var(--text-primary);
70
+ }
71
+
72
+ &__tour-desc {
73
+ margin: 0;
74
+ @include body-medium-1;
75
+ color: var(--text-secondary);
76
+ }
77
+
78
+ &__tour-steps {
79
+ margin: 0;
80
+ padding-left: 1.25rem;
81
+ display: flex;
82
+ flex-direction: column;
83
+ gap: var(--spacing-050);
84
+ @include body-medium-1;
85
+ color: var(--text-secondary);
86
+
87
+ li::marker {
88
+ color: var(--text-primary);
89
+ font-weight: 600;
90
+ }
91
+ }
92
+
93
+ &__tour-media {
94
+ display: flex;
95
+ justify-content: center;
96
+ align-items: center;
97
+ min-width: 0;
98
+ }
99
+
100
+ &__tour-image {
101
+ display: block;
102
+ width: 100%;
103
+ max-width: 240px;
104
+ height: auto;
105
+ aspect-ratio: 240 / 180;
106
+ object-fit: contain;
107
+ }
108
+
109
+ &__side {
110
+ display: flex;
111
+ flex-direction: column;
112
+ gap: var(--spacing-200);
113
+ min-height: 0;
114
+ overflow-y: auto;
115
+ }
116
+
117
+ &__youtube {
118
+ display: grid;
119
+ grid-template-columns: minmax(0, 1fr) auto;
120
+ gap: var(--spacing-200);
121
+ align-items: center;
122
+ padding: 16px;
123
+ border: 1px solid rgba(255, 255, 255, 0.08);
124
+ border-radius: var(--radius-200);
125
+ background:
126
+ radial-gradient(
127
+ 120% 140% at 100% 0%,
128
+ rgba(255, 0, 0, 0.28) 0%,
129
+ transparent 55%
130
+ ),
131
+ linear-gradient(145deg, #1a1c22 0%, #111318 100%);
132
+ color: #f5f6f8;
133
+ overflow: hidden;
134
+ animation: help-youtube-rise 320ms ease-out;
135
+ }
136
+
137
+ &__youtube-copy {
138
+ display: flex;
139
+ flex-direction: column;
140
+ gap: var(--spacing-100);
141
+ min-width: 0;
142
+ }
143
+
144
+ &__youtube-title {
145
+ margin: 0;
146
+ @include subtitle-medium-2;
147
+ color: #ffffff;
148
+ }
149
+
150
+ &__youtube-desc {
151
+ margin: 0;
152
+ @include body-medium-1;
153
+ color: rgba(245, 246, 248, 0.78);
154
+ }
155
+
156
+ &__youtube-media {
157
+ display: flex;
158
+ align-items: center;
159
+ justify-content: center;
160
+ flex-shrink: 0;
161
+ }
162
+
163
+ &__youtube-mark {
164
+ display: block;
165
+ width: 56px;
166
+ height: 56px;
167
+ object-fit: contain;
168
+ filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
169
+ transition: transform 180ms ease, filter 180ms ease;
170
+ }
171
+
172
+ &__youtube:hover &__youtube-mark {
173
+ transform: translateY(-2px) scale(1.04);
174
+ filter: drop-shadow(0 10px 18px rgba(255, 0, 0, 0.28));
175
+ }
176
+
177
+ &__youtube .ds-button.filled {
178
+ align-self: flex-start;
179
+ margin-top: var(--spacing-050);
180
+ background: #ff0000;
181
+ border: 1px solid #ff0000;
182
+ color: #ffffff;
183
+
184
+ &:hover {
185
+ background: #e60000;
186
+ border-color: #e60000;
187
+ color: #ffffff;
32
188
  }
189
+ }
190
+
191
+ &__resources,
192
+ &__feedback {
193
+ display: flex;
194
+ flex-direction: column;
195
+ gap: var(--spacing-150);
196
+ padding: 16px;
197
+ border: 1px solid var(--border-subtle-2);
198
+ border-radius: var(--radius-200);
199
+ background-color: var(--background-default);
200
+ }
33
201
 
34
- .item-tour {
35
- background-color: #ebeff8;
202
+ &__resources {
203
+ flex: 1;
204
+ min-height: 0;
205
+ }
36
206
 
37
- .help-checkbox-label {
38
- display: flex;
39
- align-items: center;
40
- gap: var(--spacing-100);
41
- cursor: pointer;
42
- margin: 8px 0;
207
+ &__section-title {
208
+ margin: 0;
209
+ @include subtitle-medium-2;
210
+ color: var(--text-primary);
211
+ }
212
+
213
+ &__section-desc {
214
+ margin: 0;
215
+ @include body-medium-1;
216
+ color: var(--text-secondary);
217
+ }
43
218
 
44
- .help-checkbox {
45
- cursor: pointer;
46
- }
47
- }
219
+ &__action-list {
220
+ list-style: none;
221
+ margin: 8px 0 0;
222
+ padding: 0;
223
+ display: flex;
224
+ flex-direction: column;
225
+ gap: var(--spacing-150);
226
+ }
227
+
228
+ &__action-item {
229
+ display: flex;
230
+ align-items: flex-start;
231
+ justify-content: space-between;
232
+ gap: var(--spacing-150);
233
+ padding-bottom: var(--spacing-150);
234
+ border-bottom: 1px solid var(--border-subtle-1);
235
+
236
+ &:last-child {
237
+ padding-bottom: 0;
238
+ border-bottom: none;
239
+ }
240
+
241
+ > .ds-button {
242
+ flex-shrink: 0;
48
243
  }
49
244
  }
245
+
246
+ &__action-title {
247
+ @include label-medium-2;
248
+ color: var(--text-primary);
249
+ margin-bottom: 2px;
250
+ }
251
+
252
+ &__action-desc {
253
+ @include body-small-1;
254
+ color: var(--text-secondary);
255
+ }
256
+
257
+ .help-checkbox-label {
258
+ display: flex;
259
+ align-items: center;
260
+ gap: var(--spacing-100);
261
+ cursor: pointer;
262
+ user-select: none;
263
+ @include body-medium-1;
264
+ color: var(--text-primary);
265
+ margin: var(--spacing-100) 0 var(--spacing-200);
266
+
267
+ .help-checkbox {
268
+ cursor: pointer;
269
+ }
270
+ }
271
+ }
272
+
273
+ @keyframes help-modal-fade-in {
274
+ from {
275
+ opacity: 0;
276
+ transform: translateY(6px);
277
+ }
278
+ to {
279
+ opacity: 1;
280
+ transform: translateY(0);
281
+ }
282
+ }
283
+
284
+ @keyframes help-youtube-rise {
285
+ from {
286
+ opacity: 0;
287
+ transform: translateY(8px);
288
+ }
289
+ to {
290
+ opacity: 1;
291
+ transform: translateY(0);
292
+ }
50
293
  }
51
294
 
52
295
  @media (max-width: 1366px) {
53
296
  .help-modal {
54
- max-width: 80vw !important;
55
- width: 80vw !important;
297
+ &__tour-body {
298
+ grid-template-columns: 1fr;
299
+ }
300
+
301
+ &__tour-media {
302
+ display: none;
303
+ }
56
304
  }
57
305
  }
58
306
 
@@ -60,21 +308,56 @@
60
308
  .help-modal {
61
309
  max-width: 90vw !important;
62
310
  width: 90vw !important;
311
+ top: 50% !important;
312
+ max-height: 95vh !important;
313
+
314
+ &__layout {
315
+ display: flex;
316
+ flex-direction: column-reverse;
317
+ min-height: unset;
318
+ }
319
+
320
+ > .body {
321
+ overflow-y: auto;
322
+ max-height: 95vh !important;
323
+ }
63
324
 
64
- .body {
65
- grid-template-columns: repeat(2, minmax(0, 1fr));
325
+ &__main,
326
+ &__side {
327
+ overflow: visible;
328
+ padding-right: 0;
329
+ min-height: unset;
66
330
  }
67
331
  }
68
332
  }
69
333
 
70
334
  @media (max-width: 767px) {
71
335
  .help-modal {
72
- top: 50% !important;
336
+ max-width: 95vw !important;
337
+ width: 95vw !important;
73
338
 
74
- .body {
75
- grid-template-columns: repeat(1, minmax(0, 1fr));
76
- max-height: 86vh;
77
- overflow-y: auto;
339
+ &__tour,
340
+ &__resources,
341
+ &__feedback,
342
+ &__youtube {
343
+ padding: var(--spacing-200);
344
+ }
345
+
346
+ &__youtube {
347
+ grid-template-columns: 1fr;
348
+ }
349
+
350
+ &__youtube-media {
351
+ justify-content: flex-start;
352
+ }
353
+
354
+ &__tour-image {
355
+ max-width: 200px;
356
+ }
357
+
358
+ &__action-item {
359
+ flex-direction: column;
360
+ align-items: stretch;
78
361
  }
79
362
  }
80
363
  }