@rt-tools/ui-kit 0.3.1 → 0.5.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 +1 -1
- package/fesm2022/rt-tools-ui-kit.mjs +4394 -3750
- package/fesm2022/rt-tools-ui-kit.mjs.map +1 -1
- package/package.json +3 -4
- package/rt-tools-ui-kit-0.5.0.tgz +0 -0
- package/src/lib/ui-kit/action-bar/components/bar/rtui-action-bar.component.scss +14 -0
- package/src/lib/ui-kit/action-bar/components/container/rtui-action-bar-container.component.scss +47 -0
- package/src/lib/ui-kit/action-bar/stories/component/test-action-bar.component.scss +15 -0
- package/src/lib/ui-kit/aside/components/container/aside-container.component.scss +4 -1
- package/src/lib/ui-kit/aside/components/error-notification/aside-error-box.component.scss +1 -1
- package/src/lib/ui-kit/aside/components/panel/aside-panel.component.scss +24 -0
- package/src/lib/ui-kit/buttons/unified-button/rtui-button.component.scss +210 -206
- package/src/lib/ui-kit/buttons/unified-button/stories/component/test-button-matrix.component.scss +38 -0
- package/src/lib/ui-kit/icon/rtui-icon.component.scss +43 -24
- package/src/lib/ui-kit/info-badge/info-badge.component.scss +23 -23
- package/src/lib/ui-kit/popover/stories/component/test-popover.component.scss +32 -0
- package/src/lib/ui-kit/scrollable/scrollable-container.component.scss +57 -0
- package/src/lib/ui-kit/scrollable/stories/component/test-scrollable.component.scss +17 -0
- package/src/lib/ui-kit/side-menu/menu/rtui-side-menu.component.scss +185 -4
- package/src/lib/ui-kit/side-menu/menu-sub-item/rtui-side-menu-sub-item.component.scss +45 -4
- package/src/lib/ui-kit/snack-bar/snack-bar.component.scss +20 -0
- package/src/lib/ui-kit/spinner/spinner.component.scss +1 -1
- package/src/lib/ui-kit/table/components/pagination-view/rtui-pagination.component.scss +20 -17
- package/src/lib/ui-kit/table/components/table-base-cell/table-base-cell.component.scss +21 -0
- package/src/lib/ui-kit/table/components/table-container/table-container.component.scss +26 -0
- package/src/lib/ui-kit/table/stories/dynamic-list/test-dynamic-list.component.scss +18 -0
- package/src/lib/ui-kit/toolbar/stories/component/test-toolbar.component.scss +22 -0
- package/src/styles/TOKENS.md +25 -16
- package/src/styles/base/_base.scss +6 -3
- package/src/styles/base/_tokens.scss +24 -0
- package/src/styles/color-scheme.spec.ts +4 -1
- package/src/styles/components/_rtui_button.scss +13 -547
- package/src/styles/components/button/_base.scss +64 -0
- package/src/styles/components/button/_map.scss +184 -0
- package/src/styles/components/button/_palettes.scss +218 -0
- package/src/styles/components/button/_sizes.scss +29 -0
- package/src/styles/components/button/_text.scss +68 -0
- package/src/styles/main.scss +0 -1
- package/styles/tokens.css +11 -0
- package/types/rt-tools-ui-kit.d.ts +614 -361
- package/rt-tools-ui-kit-0.3.1.tgz +0 -0
- package/src/styles/components/_button.scss +0 -372
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rt-tools/ui-kit",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"author": "Yauheni Krumin",
|
|
6
6
|
"type": "module",
|
|
@@ -8,13 +8,12 @@
|
|
|
8
8
|
"tslib": "^2.8.0",
|
|
9
9
|
"@rt-tools/core": "^0.3.1",
|
|
10
10
|
"@rt-tools/store": "^0.3.1",
|
|
11
|
-
"@rt-tools/utils": "^0.
|
|
11
|
+
"@rt-tools/utils": "^0.4.0"
|
|
12
12
|
},
|
|
13
13
|
"peerDependencies": {
|
|
14
14
|
"@rt-tools/core": "^0.3.1",
|
|
15
15
|
"@rt-tools/store": "^0.3.1",
|
|
16
|
-
"@rt-tools/utils": "^0.
|
|
17
|
-
"@angular/animations": "^22.0.0",
|
|
16
|
+
"@rt-tools/utils": "^0.4.0",
|
|
18
17
|
"@angular/cdk": "^22.0.0",
|
|
19
18
|
"@angular/common": "^22.0.0",
|
|
20
19
|
"@angular/compiler": "^22.0.0",
|
|
Binary file
|
|
@@ -27,8 +27,12 @@
|
|
|
27
27
|
align-items: center;
|
|
28
28
|
justify-content: center;
|
|
29
29
|
padding: var(--rt-action-bar-action-padding);
|
|
30
|
+
border: 0;
|
|
30
31
|
border-radius: var(--rt-action-bar-action-border-radius);
|
|
32
|
+
background-color: transparent;
|
|
33
|
+
color: inherit;
|
|
31
34
|
cursor: pointer;
|
|
35
|
+
font-family: inherit;
|
|
32
36
|
font-size: var(--rt-action-bar-action-font-size);
|
|
33
37
|
font-weight: var(--rt-action-bar-action-font-weight);
|
|
34
38
|
gap: var(--rt-action-bar-action-gap);
|
|
@@ -39,7 +43,13 @@
|
|
|
39
43
|
}
|
|
40
44
|
|
|
41
45
|
&__close-button {
|
|
46
|
+
display: flex;
|
|
47
|
+
align-items: center;
|
|
48
|
+
padding: 0;
|
|
49
|
+
border: 0;
|
|
42
50
|
margin-left: auto;
|
|
51
|
+
background-color: transparent;
|
|
52
|
+
color: inherit;
|
|
43
53
|
cursor: pointer;
|
|
44
54
|
|
|
45
55
|
svg {
|
|
@@ -81,8 +91,12 @@
|
|
|
81
91
|
align-items: center;
|
|
82
92
|
justify-content: center;
|
|
83
93
|
padding: var(--rt-action-bar-action-menu-action-padding);
|
|
94
|
+
border: 0;
|
|
84
95
|
border-radius: var(--rt-action-bar-action-menu-action-border-radius);
|
|
96
|
+
background-color: transparent;
|
|
97
|
+
color: inherit;
|
|
85
98
|
cursor: pointer;
|
|
99
|
+
font-family: inherit;
|
|
86
100
|
font-size: var(--rt-action-bar-action-menu-action-font-size);
|
|
87
101
|
font-weight: var(--rt-action-bar-action-menu-action-font-weight);
|
|
88
102
|
gap: var(--rt-action-bar-action-menu-action-gap);
|
package/src/lib/ui-kit/action-bar/components/container/rtui-action-bar-container.component.scss
CHANGED
|
@@ -8,3 +8,50 @@
|
|
|
8
8
|
inset: var(--rt-action-bar-container-top) var(--rt-action-bar-container-right) var(--rt-action-bar-container-bottom)
|
|
9
9
|
var(--rt-action-bar-container-left);
|
|
10
10
|
}
|
|
11
|
+
|
|
12
|
+
// Выезд панели: снизу, с проскоком выше места и возвратом — тем же порядком долей, каким он шёл
|
|
13
|
+
// прежде. Проскок и делает движение живым, а не равномерным.
|
|
14
|
+
@keyframes rtui-action-bar-enter {
|
|
15
|
+
0% {
|
|
16
|
+
opacity: 0;
|
|
17
|
+
transform: translateY(100%);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
30% {
|
|
21
|
+
opacity: 1;
|
|
22
|
+
transform: translateY(-15px);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
100% {
|
|
26
|
+
opacity: 1;
|
|
27
|
+
transform: translateY(0);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
// Уход панели: тот же путь в обратную сторону, и проскок стоит ближе к концу.
|
|
32
|
+
@keyframes rtui-action-bar-leave {
|
|
33
|
+
0% {
|
|
34
|
+
opacity: 1;
|
|
35
|
+
transform: translateY(0);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
70% {
|
|
39
|
+
opacity: 1;
|
|
40
|
+
transform: translateY(-15px);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
100% {
|
|
44
|
+
opacity: 0;
|
|
45
|
+
transform: translateY(100%);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.rtui-action-bar-container__bar {
|
|
50
|
+
animation: rtui-action-bar-enter 300ms;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.rtui-action-bar-container__bar--leaving {
|
|
54
|
+
// `forwards`: панель держится за нижней кромкой до того мига, когда её снимет разметка.
|
|
55
|
+
// Без него она возвращается на место в конце ухода и успевает мигнуть на своём месте.
|
|
56
|
+
animation: rtui-action-bar-leave 300ms forwards;
|
|
57
|
+
}
|
|
@@ -4,7 +4,10 @@
|
|
|
4
4
|
--rt-scrollable-content-padding: 0;
|
|
5
5
|
--rt-scrollable-footer-padding: 0;
|
|
6
6
|
|
|
7
|
-
//
|
|
7
|
+
// Направление тела решает, куда тянется его единственный ребёнок — содержимое панели.
|
|
8
|
+
// При `row` он растягивается по высоте зоны: 305 против 290 при замере, и форма,
|
|
9
|
+
// рассчитанная на всю высоту, стоит на месте. При `column` он растянулся бы по ширине
|
|
10
|
+
// переполнения — 589 против видимых 525 — и уехал бы за правый край вместе с фоном.
|
|
8
11
|
--rt-scrollable-content-flex-direction: row;
|
|
9
12
|
|
|
10
13
|
@supports (height: 100dvh) {
|
|
@@ -74,6 +74,10 @@ $aside: (
|
|
|
74
74
|
tab-badge-incorrect: (
|
|
75
75
|
color: var(--rt-text-accent-danger),
|
|
76
76
|
),
|
|
77
|
+
slide: (
|
|
78
|
+
duration: 200ms,
|
|
79
|
+
timing: ease-in,
|
|
80
|
+
),
|
|
77
81
|
);
|
|
78
82
|
|
|
79
83
|
// NOTE: emitted at :root on purpose (ViewEncapsulation.None): consumers override
|
|
@@ -91,6 +95,26 @@ $aside: (
|
|
|
91
95
|
--rt-aside-footer-margin-left-betwen-buttons: var(--rt-aside-footer-margin-left-between-buttons);
|
|
92
96
|
}
|
|
93
97
|
|
|
98
|
+
// SLIDE
|
|
99
|
+
// Шторка выезжает из-за своей кромки и уходит туда же. Начальное положение задаёт сторона,
|
|
100
|
+
// конечное — модификатор открытия: он объявлен ниже и потому перебивает сторону.
|
|
101
|
+
.rtui-aside-panel {
|
|
102
|
+
display: block;
|
|
103
|
+
transition: transform var(--rt-aside-slide-duration) var(--rt-aside-slide-timing);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.rtui-aside-panel--left {
|
|
107
|
+
transform: translateX(-100%);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.rtui-aside-panel--right {
|
|
111
|
+
transform: translateX(100%);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.rtui-aside-panel--open {
|
|
115
|
+
transform: translateX(0);
|
|
116
|
+
}
|
|
117
|
+
|
|
94
118
|
// BADGE
|
|
95
119
|
.icon-badge {
|
|
96
120
|
position: absolute !important;
|