@rt-tools/ui-kit-v2 0.25.0 → 0.27.0
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/README.md +10 -0
- package/fesm2022/rt-tools-ui-kit-v2-core.mjs +15 -0
- package/fesm2022/rt-tools-ui-kit-v2-core.mjs.map +1 -1
- package/fesm2022/rt-tools-ui-kit-v2-pdf-viewer.mjs +677 -0
- package/fesm2022/rt-tools-ui-kit-v2-pdf-viewer.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2-service-logo.mjs +154 -0
- package/fesm2022/rt-tools-ui-kit-v2-service-logo.mjs.map +1 -0
- package/fesm2022/rt-tools-ui-kit-v2.mjs +1 -0
- package/package.json +13 -1
- package/src/lib/components/CONTEXT.md +1 -1
- package/src/lib/components/pdf-viewer/CONTEXT.md +54 -0
- package/src/lib/components/pdf-viewer/rt-pdf-viewer.component.scss +231 -0
- package/src/lib/components/service-logo/CONTEXT.md +40 -0
- package/src/lib/components/service-logo/rt-service-logo.component.scss +68 -0
- package/src/styles/_primitives.scss +11 -0
- package/src/styles/_semantic.scss +4 -0
- package/styles/tokens.css +33 -0
- package/types/rt-tools-ui-kit-v2-core.d.ts +10 -1
- package/types/rt-tools-ui-kit-v2-pdf-viewer.d.ts +243 -0
- package/types/rt-tools-ui-kit-v2-service-logo.d.ts +57 -0
- package/types/rt-tools-ui-kit-v2.d.ts +1 -0
package/README.md
CHANGED
|
@@ -23,6 +23,16 @@ import { RtChatComponent, RtMessageComposerComponent, RtRichEditorComponent } fr
|
|
|
23
23
|
|
|
24
24
|
Основной вход quill не называет, и приложение без этих трёх компонентов собирается без него.
|
|
25
25
|
|
|
26
|
+
`pdfjs-dist` нужен только тем, кто открывает просмотрщик документа PDF. Он стоит отдельным входом
|
|
27
|
+
`@rt-tools/ui-kit-v2/pdf-viewer`, а файл воркера `pdf.worker.min.mjs` приложение кладёт себе в
|
|
28
|
+
`assets/pdfjs/` при сборке — подробности на странице обзора `rt-pdf-viewer`:
|
|
29
|
+
|
|
30
|
+
```typescript
|
|
31
|
+
import { RtPdfViewerComponent } from '@rt-tools/ui-kit-v2/pdf-viewer';
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Основной вход `pdfjs-dist` не называет, и приложение без просмотрщика собирается без него.
|
|
35
|
+
|
|
26
36
|
### Точки входа компонентов
|
|
27
37
|
|
|
28
38
|
Каждый компонент собран своей точкой входа по имени своего каталога: `@rt-tools/ui-kit-v2/table`,
|
|
@@ -126,6 +126,15 @@ const RT_KIT_LABELS_EN = {
|
|
|
126
126
|
fieldErrorMinLength: "Value is too short",
|
|
127
127
|
fieldErrorPattern: "Invalid format",
|
|
128
128
|
fieldErrorRequired: "Required field",
|
|
129
|
+
pdfViewerClose: "Close document",
|
|
130
|
+
pdfViewerDownload: "Download",
|
|
131
|
+
pdfViewerErrorText: "You can download the file and open it on your computer.",
|
|
132
|
+
pdfViewerErrorTitle: "Couldn't show the document",
|
|
133
|
+
pdfViewerFitWidth: "Fit to width",
|
|
134
|
+
pdfViewerPageOf: "Page {{page}} of {{total}}",
|
|
135
|
+
pdfViewerPrint: "Print",
|
|
136
|
+
pdfViewerZoomIn: "Zoom in",
|
|
137
|
+
pdfViewerZoomOut: "Zoom out",
|
|
129
138
|
photoViewerClose: "Close viewer",
|
|
130
139
|
photoViewerNext: "Next photo",
|
|
131
140
|
photoViewerPrev: "Previous photo",
|
|
@@ -930,6 +939,8 @@ const RT_DESIGN_TOKEN_NAMES = [
|
|
|
930
939
|
"--rt-color-border-strong",
|
|
931
940
|
"--rt-color-border-subtle",
|
|
932
941
|
"--rt-color-field-fill-underline",
|
|
942
|
+
"--rt-color-service-logo-bg",
|
|
943
|
+
"--rt-color-service-logo-mark",
|
|
933
944
|
"--rt-color-skeleton-base",
|
|
934
945
|
"--rt-color-skeleton-wave",
|
|
935
946
|
"--rt-color-state-danger",
|
|
@@ -1161,6 +1172,7 @@ const RT_DESIGN_TOKEN_NAMES = [
|
|
|
1161
1172
|
"--rt-mat-shadow-fab-hover",
|
|
1162
1173
|
"--rt-mat-shadow-level-2",
|
|
1163
1174
|
"--rt-mat-yellow-100",
|
|
1175
|
+
"--rt-mist-50",
|
|
1164
1176
|
"--rt-nav-caret-size",
|
|
1165
1177
|
"--rt-nav-color-disabled",
|
|
1166
1178
|
"--rt-nav-color-focus",
|
|
@@ -1321,6 +1333,9 @@ const RT_DESIGN_TOKEN_NAMES = [
|
|
|
1321
1333
|
"--rt-shadow-nav-panel",
|
|
1322
1334
|
"--rt-shadow-none",
|
|
1323
1335
|
"--rt-shadow-profile-menu",
|
|
1336
|
+
"--rt-shadow-service-logo-lg",
|
|
1337
|
+
"--rt-shadow-service-logo-md",
|
|
1338
|
+
"--rt-shadow-service-logo-sm",
|
|
1324
1339
|
"--rt-shadow-sm",
|
|
1325
1340
|
"--rt-shadow-status-dot",
|
|
1326
1341
|
"--rt-shadow-step-indicator",
|