@rt-tools/ui-kit 0.0.19 → 0.0.21
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/fesm2022/rt-tools-ui-kit.mjs +338 -144
- package/fesm2022/rt-tools-ui-kit.mjs.map +1 -1
- package/package.json +5 -5
- package/rt-tools-ui-kit-0.0.21.tgz +0 -0
- package/src/lib/ui-kit/action-bar/components/bar/rtui-action-bar.component.scss +18 -18
- package/src/lib/ui-kit/action-bar/components/container/rtui-action-bar-container.component.scss +5 -7
- package/src/lib/ui-kit/aside/components/container/aside-container.component.scss +1 -0
- package/src/lib/ui-kit/aside/components/error-notification/aside-error-box.component.scss +6 -6
- package/src/lib/ui-kit/aside/components/panel/aside-panel.component.scss +25 -32
- package/src/lib/ui-kit/aside/stories/aside-component/test-aside.component.scss +1 -1
- package/src/lib/ui-kit/buttons/multi-button/rtui-multi-button.component.scss +7 -7
- package/src/lib/ui-kit/buttons/unified-button/rtui-button.component.scss +247 -0
- package/src/lib/ui-kit/checkbox/rtui-checkbox.component.scss +10 -10
- package/src/lib/ui-kit/checkbox/stories/component/test-checkbox.component.scss +2 -2
- package/src/lib/ui-kit/dynamic-selectors/components/actions/rtui-dynamic-selector-list-actions.component.scss +2 -2
- package/src/lib/ui-kit/dynamic-selectors/components/dynamic-selector/rtui-dynamic-selector.component.scss +3 -3
- package/src/lib/ui-kit/dynamic-selectors/components/multi-selector-popup/rtui-multi-selector-popup.component.scss +17 -17
- package/src/lib/ui-kit/dynamic-selectors/components/placeholder/rtui-dynamic-selector-placeholder.component.scss +3 -4
- package/src/lib/ui-kit/dynamic-selectors/components/selected-list/rtui-dynamic-selector-selected-list.component.scss +2 -2
- package/src/lib/ui-kit/dynamic-selectors/strories/component/input/test-dynamic-input.component.scss +2 -3
- package/src/lib/ui-kit/dynamic-selectors/strories/component/selector/test-selector.component.scss +4 -5
- package/src/lib/ui-kit/file-uploader/rtui-file-upload.component.scss +5 -5
- package/src/lib/ui-kit/file-uploader/stories/component/test-file-upload.component.scss +1 -1
- package/src/lib/ui-kit/header/header.component.scss +1 -0
- package/src/lib/ui-kit/header/stories/component/test-header.component.scss +3 -3
- package/src/lib/ui-kit/icon/rtui-icon.component.scss +110 -0
- package/src/lib/ui-kit/image-uploader/image-uploader/rtui-image-upload.component.scss +5 -5
- package/src/lib/ui-kit/image-uploader/stories/component/test-image-upload.component.scss +2 -2
- package/src/lib/ui-kit/info-badge/info-badge.component.scss +20 -19
- package/src/lib/ui-kit/info-badge/stories/component/test-info-badge/test-info-badge.component.scss +1 -1
- package/src/lib/ui-kit/modal/modal.component.scss +5 -5
- package/src/lib/ui-kit/popover/rtui-popover-container.component.scss +2 -3
- package/src/lib/ui-kit/scrollable/scrollable-container.component.scss +3 -5
- package/src/lib/ui-kit/side-menu/menu/rtui-side-menu.component.scss +25 -25
- package/src/lib/ui-kit/side-menu/menu-sub-item/rtui-side-menu-sub-item.component.scss +14 -14
- package/src/lib/ui-kit/side-menu/stories/component/test-side-menu-wrapper.component.scss +10 -10
- package/src/lib/ui-kit/snack-bar/snack-bar.component.scss +9 -9
- package/src/lib/ui-kit/snack-bar/stories/component/test-snack-bar.component.scss +3 -3
- package/src/lib/ui-kit/spinner/spinner.component.scss +10 -13
- package/src/lib/ui-kit/table/components/clear-search-button/rtui-clear-button.component.scss +5 -5
- package/src/lib/ui-kit/table/components/pagination-view/rtui-pagination.component.scss +14 -22
- package/src/lib/ui-kit/table/components/table-base-cell/table-base-cell.component.scss +8 -9
- package/src/lib/ui-kit/table/components/table-config-aside/rt-table-config-aside.component.scss +1 -1
- package/src/lib/ui-kit/table/components/table-container/table-container.component.scss +16 -14
- package/src/lib/ui-kit/table/components/table-header-cell/table-header-cell.component.scss +6 -7
- package/src/lib/ui-kit/table/components/table-header-filter-cell/table-header-filter-cell.component.scss +3 -3
- package/src/lib/ui-kit/table/dynamic-list.component.scss +2 -2
- package/src/lib/ui-kit/table/stories/dynamic-list/test-dynamic-list.component.scss +1 -1
- package/src/lib/ui-kit/table/stories/pagination/test-pagination-component.scss +4 -4
- package/src/lib/ui-kit/table/stories/table/test-table-component.scss +1 -1
- package/src/lib/ui-kit/toggle/rtui-toggle.component.scss +15 -21
- package/src/lib/ui-kit/toggle/stories/component/test-toggle.component.scss +2 -2
- package/src/lib/ui-kit/toolbar/toolbar.component.scss +5 -10
- package/src/styles/TOKENS.md +95 -2
- package/src/styles/base/_base.scss +4 -5
- package/src/styles/base/_color-scheme.scss +86 -0
- package/src/styles/base/_mixin.scss +12 -15
- package/src/styles/base/_tokens.scss +139 -99
- package/src/styles/base/_variables.scss +5 -11
- package/src/styles/color-scheme.spec.ts +236 -0
- package/src/styles/components/_button.scss +32 -24
- package/src/styles/components/_dynamic-selectors.scss +9 -10
- package/src/styles/components/_form.scss +8 -13
- package/src/styles/components/_material-bridge.scss +30 -0
- package/src/styles/components/_rtui_button.scss +100 -5
- package/src/styles/components/_table.scss +23 -39
- package/src/styles/main.scss +4 -0
- package/styles/tokens.css +79 -101
- package/types/rt-tools-ui-kit.d.ts +99 -37
- package/rt-tools-ui-kit-0.0.19.tgz +0 -0
- package/src/lib/ui-kit/buttons/icon-round/rtui-round-icon-button.component.scss +0 -44
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
:host {
|
|
2
2
|
position: absolute;
|
|
3
|
-
width: fit-content;
|
|
4
3
|
display: block;
|
|
4
|
+
width: fit-content;
|
|
5
5
|
|
|
6
6
|
/* Hack to show properly popover on mouse hover */
|
|
7
|
-
padding-top:
|
|
7
|
+
padding-top: var(--rt-spacing-20);
|
|
8
8
|
text-align: left;
|
|
9
|
-
|
|
10
9
|
transition:
|
|
11
10
|
transform 0.1s,
|
|
12
11
|
opacity 0.5s;
|
|
@@ -27,12 +27,10 @@ $scrollable: (
|
|
|
27
27
|
);
|
|
28
28
|
|
|
29
29
|
:host {
|
|
30
|
-
height: var(--rt-scrollable-host-height);
|
|
31
|
-
width: var(--rt-scrollable-host-width);
|
|
32
|
-
|
|
33
30
|
display: var(--rt-scrollable-host-display);
|
|
31
|
+
width: var(--rt-scrollable-host-width);
|
|
32
|
+
height: var(--rt-scrollable-host-height);
|
|
34
33
|
flex-direction: var(--rt-scrollable-host-flex-direction);
|
|
35
|
-
|
|
36
34
|
background-color: var(--rt-scrollable-host-background-color);
|
|
37
35
|
|
|
38
36
|
@each $element, $elements in $scrollable {
|
|
@@ -49,11 +47,11 @@ $scrollable: (
|
|
|
49
47
|
|
|
50
48
|
&__content {
|
|
51
49
|
display: var(--rt-scrollable-content-display);
|
|
50
|
+
overflow: auto;
|
|
52
51
|
flex-direction: var(--rt-scrollable-content-flex-direction);
|
|
53
52
|
flex-grow: var(--rt-scrollable-content-flex-grow);
|
|
54
53
|
padding: var(--rt-scrollable-content-padding);
|
|
55
54
|
background-color: var(--rt-scrollable-content-background-color);
|
|
56
|
-
overflow: auto;
|
|
57
55
|
}
|
|
58
56
|
|
|
59
57
|
&__footer {
|
|
@@ -41,21 +41,21 @@ $side-menu: (
|
|
|
41
41
|
|
|
42
42
|
.rtui-mobile-side-menu-list {
|
|
43
43
|
display: flex;
|
|
44
|
-
flex-direction: column;
|
|
45
44
|
width: 100%;
|
|
45
|
+
flex-direction: column;
|
|
46
46
|
|
|
47
47
|
&--scrollable {
|
|
48
48
|
width: fit-content;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
&__sub {
|
|
52
|
+
animation: fade-in-animation 0.15s ease-in-out 0.15s forwards;
|
|
52
53
|
opacity: 0;
|
|
53
|
-
animation: fadeInAnimation 0.15s ease-in-out 0.15s forwards;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
.rtui-mobile-side-menu-list-main {
|
|
57
|
+
animation: fade-in-animation 0.15s ease-in-out 0.15s forwards;
|
|
57
58
|
opacity: 0;
|
|
58
|
-
animation: fadeInAnimation 0.15s ease-in-out 0.15s forwards;
|
|
59
59
|
|
|
60
60
|
.rtui-mobile-side-menu-item {
|
|
61
61
|
&__icon {
|
|
@@ -66,22 +66,22 @@ $side-menu: (
|
|
|
66
66
|
|
|
67
67
|
.rtui-mobile-side-menu-item-title {
|
|
68
68
|
display: flex;
|
|
69
|
-
justify-content: space-between;
|
|
70
69
|
align-items: center;
|
|
70
|
+
justify-content: space-between;
|
|
71
71
|
|
|
72
72
|
&__text {
|
|
73
|
-
|
|
73
|
+
overflow: hidden;
|
|
74
|
+
font-size: var(--rt-font-size-xs);
|
|
74
75
|
text-overflow: ellipsis;
|
|
75
76
|
white-space: nowrap;
|
|
76
|
-
overflow: hidden;
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
.rtui-mobile-side-menu-item-title-button {
|
|
80
80
|
display: flex;
|
|
81
|
-
justify-content: center;
|
|
82
81
|
align-items: center;
|
|
83
|
-
|
|
84
|
-
border-radius:
|
|
82
|
+
justify-content: center;
|
|
83
|
+
border-radius: var(--rt-radius-full);
|
|
84
|
+
margin-left: var(--rt-spacing-8);
|
|
85
85
|
|
|
86
86
|
&__icon {
|
|
87
87
|
width: var(--rt-side-menu-mobile-item-additional-icon-size);
|
|
@@ -93,7 +93,7 @@ $side-menu: (
|
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
.rtui-mobile-side-menu-item + .rtui-mobile-side-menu-item {
|
|
96
|
-
margin-top:
|
|
96
|
+
margin-top: var(--rt-spacing-8);
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
}
|
|
@@ -104,37 +104,37 @@ $side-menu: (
|
|
|
104
104
|
|
|
105
105
|
&__list {
|
|
106
106
|
display: flex;
|
|
107
|
+
width: 100%;
|
|
107
108
|
flex-direction: column;
|
|
108
109
|
align-items: center;
|
|
109
|
-
width: 100%;
|
|
110
110
|
|
|
111
111
|
.rtui-side-menu-item {
|
|
112
112
|
display: flex;
|
|
113
|
+
width: 100%;
|
|
113
114
|
flex-direction: column;
|
|
114
|
-
justify-content: center;
|
|
115
115
|
align-items: center;
|
|
116
|
+
justify-content: center;
|
|
116
117
|
cursor: pointer;
|
|
117
|
-
width: 100%;
|
|
118
118
|
|
|
119
119
|
.rtui-side-menu-item-button {
|
|
120
|
-
padding: 0;
|
|
121
120
|
display: flex;
|
|
122
|
-
justify-content: center;
|
|
123
|
-
align-items: center;
|
|
124
|
-
height: var(--rt-side-menu-item-height);
|
|
125
121
|
width: var(--rt-side-menu-item-width);
|
|
122
|
+
height: var(--rt-side-menu-item-height);
|
|
123
|
+
align-items: center;
|
|
124
|
+
justify-content: center;
|
|
125
|
+
padding: 0;
|
|
126
126
|
|
|
127
127
|
&__icon {
|
|
128
128
|
display: flex;
|
|
129
|
-
justify-content: center;
|
|
130
129
|
align-items: center;
|
|
130
|
+
justify-content: center;
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
133
|
|
|
134
134
|
&__title {
|
|
135
135
|
font-size: var(--rt-side-menu-item-font-size);
|
|
136
|
-
text-align: var(--rt-side-menu-item-text-align);
|
|
137
136
|
line-height: var(--rt-side-menu-item-line-height);
|
|
137
|
+
text-align: var(--rt-side-menu-item-text-align);
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
140
|
|
|
@@ -157,18 +157,18 @@ $side-menu: (
|
|
|
157
157
|
}
|
|
158
158
|
|
|
159
159
|
.rtui-sub-side-menu-content {
|
|
160
|
+
// Component-local elevation token for the slide-out sub-menu drawer.
|
|
161
|
+
--rt-side-menu-sub-content-shadow: 14px 0 28px rgb(0 0 0 / 25%), 10px 0 10px rgb(0 0 0 / 22%);
|
|
162
|
+
|
|
160
163
|
width: var(--rt-side-menu-sub-menu-width);
|
|
161
164
|
height: 100%;
|
|
162
165
|
border-left: 1px solid var(--rt-border-neutral-default);
|
|
163
|
-
box-shadow:
|
|
164
|
-
14px 0 28px rgba(0, 0, 0, 0.25),
|
|
165
|
-
10px 0 10px rgba(0, 0, 0, 0.22);
|
|
166
|
+
box-shadow: var(--rt-side-menu-sub-content-shadow);
|
|
166
167
|
|
|
167
168
|
&__list {
|
|
168
169
|
width: 100%;
|
|
169
|
-
|
|
170
|
+
animation: fade-in-animation 0.15s ease-in-out 0.15s forwards;
|
|
170
171
|
opacity: 0;
|
|
171
|
-
animation: fadeInAnimation 0.15s ease-in-out 0.15s forwards;
|
|
172
172
|
|
|
173
173
|
&--scrollable {
|
|
174
174
|
min-width: fit-content;
|
|
@@ -178,7 +178,7 @@ $side-menu: (
|
|
|
178
178
|
}
|
|
179
179
|
}
|
|
180
180
|
|
|
181
|
-
@keyframes
|
|
181
|
+
@keyframes fade-in-animation {
|
|
182
182
|
to {
|
|
183
183
|
opacity: 1;
|
|
184
184
|
}
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
&::ng-deep {
|
|
3
3
|
// Set expansion panel header padding
|
|
4
4
|
.mat-expansion-indicator {
|
|
5
|
-
padding: 0
|
|
5
|
+
padding: 0 var(--rt-spacing-24);
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
// Set expansion panel body padding
|
|
9
9
|
.mat-expansion-panel-body {
|
|
10
|
-
padding: 0 0 0
|
|
10
|
+
padding: 0 0 0 var(--rt-spacing-16);
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
// Set expansion panel transparent container
|
|
@@ -26,30 +26,30 @@
|
|
|
26
26
|
|
|
27
27
|
.rtui-side-menu-sub-item-title {
|
|
28
28
|
display: flex;
|
|
29
|
-
justify-content: space-between;
|
|
30
29
|
align-items: center;
|
|
30
|
+
justify-content: space-between;
|
|
31
31
|
|
|
32
32
|
&__text {
|
|
33
|
+
overflow: hidden;
|
|
33
34
|
font-size: var(--rt-side-menu-sub-menu-item-title-font-size);
|
|
34
35
|
text-overflow: ellipsis;
|
|
35
36
|
white-space: nowrap;
|
|
36
|
-
overflow: hidden;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
.rtui-side-menu-sub-item-title-button {
|
|
40
40
|
display: flex;
|
|
41
|
-
justify-content: center;
|
|
42
41
|
align-items: center;
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
border-radius: 50%;
|
|
46
|
-
cursor: pointer;
|
|
42
|
+
justify-content: center;
|
|
43
|
+
padding: var(--rt-spacing-2);
|
|
47
44
|
border: 1.5px solid transparent;
|
|
45
|
+
border-radius: var(--rt-radius-full);
|
|
46
|
+
margin-left: var(--rt-spacing-8);
|
|
47
|
+
cursor: pointer;
|
|
48
48
|
|
|
49
49
|
&__icon {
|
|
50
50
|
width: 1.25rem;
|
|
51
51
|
height: 1.25rem;
|
|
52
|
-
font-size:
|
|
52
|
+
font-size: var(--rt-font-size-lg);
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
&:hover {
|
|
@@ -61,9 +61,10 @@
|
|
|
61
61
|
|
|
62
62
|
.rtui-side-menu-expand-sub-item {
|
|
63
63
|
padding: 0;
|
|
64
|
-
|
|
64
|
+
|
|
65
65
|
// Set expand sub item header border like menu item border
|
|
66
|
-
border-radius:
|
|
66
|
+
border-radius: var(--rt-radius-xl);
|
|
67
|
+
box-shadow: none;
|
|
67
68
|
|
|
68
69
|
&--fixed {
|
|
69
70
|
min-width: var(--rt-side-menu-sub-menu-item-width);
|
|
@@ -78,9 +79,8 @@
|
|
|
78
79
|
}
|
|
79
80
|
|
|
80
81
|
&__icon {
|
|
81
|
-
margin-inline-start: var(--mat-list-list-item-leading-icon-start-space);
|
|
82
|
-
margin-inline-end: var(--mat-list-list-item-leading-icon-end-space);
|
|
83
82
|
color: var(--mdc-list-list-item-leading-icon-color);
|
|
83
|
+
margin-inline: var(--mat-list-list-item-leading-icon-start-space) var(--mat-list-list-item-leading-icon-end-space);
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
&__title {
|
|
@@ -13,35 +13,35 @@
|
|
|
13
13
|
height: 100vh;
|
|
14
14
|
margin: -1rem;
|
|
15
15
|
box-shadow:
|
|
16
|
-
0 14px 28px
|
|
17
|
-
0 10px 10px
|
|
16
|
+
0 14px 28px rgb(0 0 0 / 25%),
|
|
17
|
+
0 10px 10px rgb(0 0 0 / 22%);
|
|
18
18
|
|
|
19
19
|
.side-menu-wrapper {
|
|
20
20
|
&__header {
|
|
21
21
|
display: flex;
|
|
22
|
+
width: 100%;
|
|
22
23
|
align-items: center;
|
|
23
24
|
justify-content: center;
|
|
24
|
-
|
|
25
|
-
|
|
25
|
+
padding: 0.5rem 0 1rem;
|
|
26
|
+
border-bottom: 1px solid var(--rt-color-neutral-25);
|
|
26
27
|
cursor: pointer;
|
|
27
|
-
border-bottom: 1px solid var(--clr-black-20);
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
.footer {
|
|
31
31
|
display: flex;
|
|
32
|
+
width: 100%;
|
|
32
33
|
flex-direction: column;
|
|
33
34
|
align-items: center;
|
|
34
35
|
justify-content: center;
|
|
35
|
-
width: 100%;
|
|
36
|
-
gap: 0.5rem;
|
|
37
36
|
padding-top: 0.5rem;
|
|
38
|
-
border-top: 1px solid var(--
|
|
37
|
+
border-top: 1px solid var(--rt-color-neutral-25);
|
|
38
|
+
gap: 0.5rem;
|
|
39
39
|
|
|
40
40
|
&__icon {
|
|
41
|
-
height: 2rem;
|
|
42
41
|
width: 2rem;
|
|
43
|
-
|
|
42
|
+
height: 2rem;
|
|
44
43
|
cursor: pointer;
|
|
44
|
+
font-size: 2rem;
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
}
|
|
@@ -26,9 +26,9 @@ $snack-bar: (
|
|
|
26
26
|
);
|
|
27
27
|
|
|
28
28
|
:host {
|
|
29
|
-
height: 100%;
|
|
30
|
-
width: 100%;
|
|
31
29
|
display: flex;
|
|
30
|
+
width: 100%;
|
|
31
|
+
height: 100%;
|
|
32
32
|
align-items: center;
|
|
33
33
|
justify-content: space-between;
|
|
34
34
|
|
|
@@ -40,10 +40,10 @@ $snack-bar: (
|
|
|
40
40
|
|
|
41
41
|
.rt-snack-bar {
|
|
42
42
|
&__content {
|
|
43
|
-
height: 100%;
|
|
44
|
-
width: 100%;
|
|
45
43
|
position: relative;
|
|
46
44
|
display: flex;
|
|
45
|
+
width: 100%;
|
|
46
|
+
height: 100%;
|
|
47
47
|
align-items: center;
|
|
48
48
|
gap: var(--rt-snack-bar-content-gap);
|
|
49
49
|
|
|
@@ -56,16 +56,16 @@ $snack-bar: (
|
|
|
56
56
|
width: var(--rt-snack-bar-icon-size);
|
|
57
57
|
min-width: var(--rt-snack-bar-icon-size);
|
|
58
58
|
height: var(--rt-snack-bar-icon-size);
|
|
59
|
-
font-size: var(--rt-snack-bar-icon-size);
|
|
60
59
|
color: var(--rt-snack-bar-icon-color);
|
|
60
|
+
font-size: var(--rt-snack-bar-icon-size);
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
&-message {
|
|
64
64
|
display: -webkit-box;
|
|
65
65
|
overflow: hidden;
|
|
66
|
-
text-overflow: ellipsis;
|
|
67
|
-
-webkit-line-clamp: var(--rt-snack-bar-message-line-clamp);
|
|
68
66
|
-webkit-box-orient: vertical;
|
|
67
|
+
-webkit-line-clamp: var(--rt-snack-bar-message-line-clamp);
|
|
68
|
+
text-overflow: ellipsis;
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
|
|
@@ -87,11 +87,11 @@ $snack-bar: (
|
|
|
87
87
|
|
|
88
88
|
&__progress {
|
|
89
89
|
position: absolute;
|
|
90
|
+
right: 0;
|
|
90
91
|
bottom: 0;
|
|
91
92
|
left: 0;
|
|
92
|
-
right: 0;
|
|
93
|
-
height: var(--rt-snack-bar-progress-height);
|
|
94
93
|
width: 100%;
|
|
94
|
+
height: var(--rt-snack-bar-progress-height);
|
|
95
95
|
background-color: var(--mat-button-filled-container-color);
|
|
96
96
|
border-bottom-left-radius: var(--mat-snack-bar-container-shape);
|
|
97
97
|
border-bottom-right-radius: var(--mat-snack-bar-container-shape);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
:host {
|
|
2
|
+
display: flex;
|
|
2
3
|
width: 100vw;
|
|
3
4
|
height: 100vh;
|
|
4
|
-
display: flex;
|
|
5
5
|
flex-direction: column;
|
|
6
6
|
margin: -1rem;
|
|
7
7
|
|
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
.content {
|
|
13
|
-
flex-grow: 1;
|
|
14
13
|
display: flex;
|
|
15
|
-
|
|
14
|
+
flex-grow: 1;
|
|
16
15
|
align-items: flex-start;
|
|
16
|
+
justify-content: center;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
.action {
|
|
@@ -1,25 +1,22 @@
|
|
|
1
1
|
:host {
|
|
2
|
-
z-index: 10000;
|
|
3
2
|
position: absolute;
|
|
4
|
-
|
|
3
|
+
z-index: 10000;
|
|
4
|
+
display: flex;
|
|
5
5
|
width: 100%;
|
|
6
6
|
height: 100%;
|
|
7
|
-
|
|
8
|
-
display: flex;
|
|
9
|
-
justify-content: center;
|
|
10
7
|
align-items: center;
|
|
8
|
+
justify-content: center;
|
|
11
9
|
|
|
12
10
|
.c-spinner {
|
|
13
11
|
&__container {
|
|
12
|
+
display: flex;
|
|
14
13
|
width: 100%;
|
|
15
14
|
height: 100%;
|
|
16
|
-
|
|
17
|
-
display: flex;
|
|
18
15
|
align-items: center;
|
|
19
16
|
justify-content: center;
|
|
20
17
|
|
|
21
18
|
&--bgr-color {
|
|
22
|
-
background-color:
|
|
19
|
+
background-color: color-mix(in srgb, var(--rt-bg-base-subtle) 85%, transparent);
|
|
23
20
|
}
|
|
24
21
|
}
|
|
25
22
|
|
|
@@ -35,14 +32,14 @@
|
|
|
35
32
|
}
|
|
36
33
|
|
|
37
34
|
&--bgr-color {
|
|
35
|
+
// Component-local elevation token for the spinner's circular backdrop.
|
|
36
|
+
--rt-spinner-backdrop-shadow: 0 1px 3px rgb(0 0 0 / 12%), 0 1px 2px rgb(0 0 0 / 24%);
|
|
37
|
+
|
|
38
38
|
width: 3rem;
|
|
39
39
|
height: 3rem;
|
|
40
|
-
|
|
40
|
+
border-radius: var(--rt-radius-full);
|
|
41
41
|
background: var(--rt-bg-base-base);
|
|
42
|
-
|
|
43
|
-
box-shadow:
|
|
44
|
-
0 1px 3px rgba(0, 0, 0, 0.12),
|
|
45
|
-
0 1px 2px rgba(0, 0, 0, 0.24);
|
|
42
|
+
box-shadow: var(--rt-spinner-backdrop-shadow);
|
|
46
43
|
}
|
|
47
44
|
}
|
|
48
45
|
}
|
package/src/lib/ui-kit/table/components/clear-search-button/rtui-clear-button.component.scss
CHANGED
|
@@ -24,23 +24,23 @@ $clear-button: (
|
|
|
24
24
|
|
|
25
25
|
.rtui-clear-button {
|
|
26
26
|
display: flex;
|
|
27
|
-
justify-content: center;
|
|
28
27
|
align-items: center;
|
|
28
|
+
justify-content: center;
|
|
29
|
+
padding: var(--rt-clear-button-host-padding);
|
|
29
30
|
border: none;
|
|
30
|
-
border-radius:
|
|
31
|
+
border-radius: var(--rt-radius-full);
|
|
31
32
|
margin: var(--rt-clear-button-host-margin);
|
|
32
|
-
padding: var(--rt-clear-button-host-padding);
|
|
33
33
|
background-color: var(--rt-clear-button-host-background-color);
|
|
34
34
|
|
|
35
35
|
&--invisible {
|
|
36
|
-
@include mixins.visually-hidden
|
|
36
|
+
@include mixins.visually-hidden;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
&__icon {
|
|
40
40
|
width: var(--rt-clear-button-icon-size);
|
|
41
41
|
height: var(--rt-clear-button-icon-size);
|
|
42
|
-
font-size: var(--rt-clear-button-icon-size);
|
|
43
42
|
color: var(--rt-clear-button-icon-color);
|
|
43
|
+
font-size: var(--rt-clear-button-icon-size);
|
|
44
44
|
|
|
45
45
|
&:hover {
|
|
46
46
|
color: var(--rt-clear-button-icon-hover-color);
|
|
@@ -48,9 +48,9 @@ $pagination: (
|
|
|
48
48
|
);
|
|
49
49
|
|
|
50
50
|
:host {
|
|
51
|
+
display: flex;
|
|
51
52
|
width: fit-content;
|
|
52
53
|
height: 100%;
|
|
53
|
-
display: flex;
|
|
54
54
|
|
|
55
55
|
@each $element, $elements in $pagination {
|
|
56
56
|
@each $style-token, $value in $elements {
|
|
@@ -60,21 +60,19 @@ $pagination: (
|
|
|
60
60
|
|
|
61
61
|
.pagination-container {
|
|
62
62
|
position: relative;
|
|
63
|
-
|
|
64
63
|
display: flex;
|
|
65
|
-
justify-content: flex-start;
|
|
66
64
|
align-items: center;
|
|
67
|
-
|
|
68
|
-
|
|
65
|
+
justify-content: flex-start;
|
|
69
66
|
color: var(--rt-table-pagination-container-color);
|
|
70
67
|
font-size: var(--rt-table-pagination-container-font-size);
|
|
71
68
|
font-weight: var(--rt-table-pagination-container-font-weight);
|
|
69
|
+
gap: var(--rt-table-pagination-container-gap);
|
|
72
70
|
line-height: var(--rt-table-pagination-container-line-height);
|
|
73
71
|
|
|
74
72
|
&--clipped {
|
|
75
73
|
flex-direction: column;
|
|
76
|
-
justify-content: center;
|
|
77
74
|
align-items: flex-start;
|
|
75
|
+
justify-content: center;
|
|
78
76
|
gap: var(--rt-table-pagination-container-mobile-gap);
|
|
79
77
|
}
|
|
80
78
|
|
|
@@ -85,26 +83,23 @@ $pagination: (
|
|
|
85
83
|
|
|
86
84
|
.paging {
|
|
87
85
|
display: flex;
|
|
88
|
-
justify-content: center;
|
|
89
86
|
align-items: center;
|
|
90
|
-
|
|
87
|
+
justify-content: center;
|
|
91
88
|
margin: var(--rt-table-pagination-container-margin);
|
|
89
|
+
gap: var(--rt-table-pagination-paging-gap);
|
|
92
90
|
|
|
93
91
|
&--clipped {
|
|
94
92
|
margin: var(--rt-table-pagination-paging-mobile-margin);
|
|
95
93
|
}
|
|
96
94
|
|
|
97
95
|
&__item {
|
|
96
|
+
position: relative;
|
|
98
97
|
display: flex;
|
|
99
|
-
justify-content: center;
|
|
100
98
|
align-items: center;
|
|
101
|
-
|
|
102
|
-
position: relative;
|
|
103
|
-
|
|
99
|
+
justify-content: center;
|
|
104
100
|
padding: var(--rt-table-pagination-paging-item-padding);
|
|
105
101
|
border: var(--rt-table-pagination-paging-item-border);
|
|
106
102
|
border-radius: var(--rt-table-pagination-paging-item-border-radius);
|
|
107
|
-
|
|
108
103
|
background-color: transparent;
|
|
109
104
|
cursor: default;
|
|
110
105
|
pointer-events: none;
|
|
@@ -119,13 +114,13 @@ $pagination: (
|
|
|
119
114
|
}
|
|
120
115
|
|
|
121
116
|
&:hover:not(.divider) {
|
|
122
|
-
color: var(--rt-table-pagination-paging-item-hover-color);
|
|
123
117
|
background-color: var(--rt-table-pagination-paging-item-hover-background-color);
|
|
118
|
+
color: var(--rt-table-pagination-paging-item-hover-color);
|
|
124
119
|
}
|
|
125
120
|
|
|
126
121
|
&--active {
|
|
127
|
-
color: var(--rt-table-pagination-paging-item-active-color);
|
|
128
122
|
background-color: var(--rt-table-pagination-paging-item-active-background-color);
|
|
123
|
+
color: var(--rt-table-pagination-paging-item-active-color);
|
|
129
124
|
}
|
|
130
125
|
|
|
131
126
|
&--enabled {
|
|
@@ -138,9 +133,9 @@ $pagination: (
|
|
|
138
133
|
}
|
|
139
134
|
|
|
140
135
|
&--divider {
|
|
136
|
+
border: none;
|
|
141
137
|
cursor: default;
|
|
142
138
|
pointer-events: none;
|
|
143
|
-
border: none;
|
|
144
139
|
}
|
|
145
140
|
}
|
|
146
141
|
}
|
|
@@ -148,10 +143,10 @@ $pagination: (
|
|
|
148
143
|
.page-size-toggle {
|
|
149
144
|
display: flex;
|
|
150
145
|
flex-direction: row;
|
|
151
|
-
justify-content: center;
|
|
152
146
|
align-items: center;
|
|
153
|
-
|
|
147
|
+
justify-content: center;
|
|
154
148
|
margin: var(--rt-table-pagination-container-margin);
|
|
149
|
+
gap: var(--rt-table-pagination-size-toggle-gap);
|
|
155
150
|
|
|
156
151
|
&--clipped {
|
|
157
152
|
margin: var(--rt-table-pagination-size-toggle-selector-mobile-margin);
|
|
@@ -165,14 +160,11 @@ $pagination: (
|
|
|
165
160
|
width: auto;
|
|
166
161
|
min-width: var(--rt-table-pagination-size-toggle-selector-min-width);
|
|
167
162
|
height: var(--rt-table-pagination-size-toggle-selector-height);
|
|
168
|
-
|
|
169
163
|
border: var(--rt-table-pagination-paging-item-border);
|
|
170
164
|
border-radius: var(--rt-table-pagination-paging-item-border-radius);
|
|
171
|
-
|
|
172
165
|
background-color: transparent;
|
|
173
|
-
cursor: pointer;
|
|
174
|
-
|
|
175
166
|
color: var(--rt-table-pagination-container-color);
|
|
167
|
+
cursor: pointer;
|
|
176
168
|
font-size: var(--rt-table-pagination-container-font-size);
|
|
177
169
|
font-weight: var(--rt-table-pagination-container-font-weight);
|
|
178
170
|
line-height: var(--rt-table-pagination-container-line-height);
|
|
@@ -26,15 +26,13 @@ $base-cell: (
|
|
|
26
26
|
);
|
|
27
27
|
|
|
28
28
|
:host {
|
|
29
|
-
|
|
30
|
-
width: 100%;
|
|
31
|
-
|
|
29
|
+
position: relative;
|
|
32
30
|
display: flex;
|
|
31
|
+
width: 100%;
|
|
32
|
+
height: 100%;
|
|
33
33
|
align-items: center;
|
|
34
34
|
gap: var(--rt-table-base-cell-host-gap);
|
|
35
35
|
|
|
36
|
-
position: relative;
|
|
37
|
-
|
|
38
36
|
@each $element, $elements in $base-cell {
|
|
39
37
|
@each $style-token, $value in $elements {
|
|
40
38
|
#{mixins.generateCssVar('table-base-cell', #{$element}, #{$style-token})}: #{$value};
|
|
@@ -49,16 +47,16 @@ $base-cell: (
|
|
|
49
47
|
}
|
|
50
48
|
|
|
51
49
|
&__title {
|
|
52
|
-
width: 100%;
|
|
53
50
|
display: table;
|
|
51
|
+
width: 100%;
|
|
54
52
|
table-layout: fixed;
|
|
55
53
|
|
|
56
54
|
&-text {
|
|
55
|
+
overflow: hidden;
|
|
57
56
|
width: 100%;
|
|
58
57
|
padding: var(--rt-table-base-cell-title-padding);
|
|
59
|
-
white-space: nowrap;
|
|
60
|
-
overflow: hidden;
|
|
61
58
|
text-overflow: ellipsis;
|
|
59
|
+
white-space: nowrap;
|
|
62
60
|
}
|
|
63
61
|
|
|
64
62
|
&--align {
|
|
@@ -90,14 +88,15 @@ $base-cell: (
|
|
|
90
88
|
|
|
91
89
|
&__copy-button {
|
|
92
90
|
position: absolute;
|
|
93
|
-
visibility: hidden;
|
|
94
91
|
padding: var(--rt-table-base-cell-copy-button-padding);
|
|
95
92
|
background-color: var(--rt-table-base-cell-copy-button-background-color);
|
|
93
|
+
visibility: hidden;
|
|
96
94
|
|
|
97
95
|
&--position {
|
|
98
96
|
&--left {
|
|
99
97
|
left: var(--rt-table-base-cell-copy-button-position-left);
|
|
100
98
|
}
|
|
99
|
+
|
|
101
100
|
&--right {
|
|
102
101
|
right: var(--rt-table-base-cell-copy-button-position-right);
|
|
103
102
|
}
|