@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
|
@@ -5,22 +5,22 @@
|
|
|
5
5
|
gap: var(--rt-checkbox-container-gap);
|
|
6
6
|
|
|
7
7
|
&__input {
|
|
8
|
-
@include mixins.visually-hidden
|
|
8
|
+
@include mixins.visually-hidden;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
&__box {
|
|
12
12
|
display: flex;
|
|
13
|
-
align-items: center;
|
|
14
|
-
justify-content: center;
|
|
15
|
-
flex-shrink: 0;
|
|
16
13
|
width: var(--rt-checkbox-box-width);
|
|
17
14
|
height: var(--rt-checkbox-box-height);
|
|
15
|
+
flex-shrink: 0;
|
|
16
|
+
align-items: center;
|
|
17
|
+
justify-content: center;
|
|
18
18
|
border: var(--rt-checkbox-box-border);
|
|
19
19
|
border-radius: var(--rt-checkbox-box-border-radius);
|
|
20
|
-
color: var(--rt-checkbox-box-inactive-color);
|
|
21
20
|
background-color: var(--rt-checkbox-box-background-color);
|
|
22
|
-
|
|
21
|
+
color: var(--rt-checkbox-box-inactive-color);
|
|
23
22
|
cursor: pointer;
|
|
23
|
+
transition: border-color 0.15s linear;
|
|
24
24
|
|
|
25
25
|
svg {
|
|
26
26
|
opacity: 0;
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
|
|
31
31
|
&__input:checked + &__box,
|
|
32
32
|
&__input:indeterminate + &__box {
|
|
33
|
-
color: var(--rt-checkbox-box-active-color);
|
|
34
33
|
border-color: var(--rt-checkbox-box-active-color);
|
|
34
|
+
color: var(--rt-checkbox-box-active-color);
|
|
35
35
|
|
|
36
36
|
svg {
|
|
37
37
|
opacity: 1;
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
&__input:disabled + &__box {
|
|
42
|
-
color: var(--rt-text-base-disabled);
|
|
43
42
|
border-color: var(--rt-border-neutral-strong);
|
|
43
|
+
color: var(--rt-text-base-disabled);
|
|
44
44
|
cursor: default;
|
|
45
45
|
}
|
|
46
46
|
|
|
@@ -54,15 +54,15 @@
|
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
&__label {
|
|
57
|
+
color: var(--rt-checkbox-label-color);
|
|
57
58
|
font-size: var(--rt-checkbox-label-font-size);
|
|
58
59
|
font-weight: var(--rt-checkbox-label-font-weight);
|
|
59
|
-
color: var(--rt-checkbox-label-color);
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
&__description {
|
|
63
63
|
margin-top: var(--rt-checkbox-description-margin-top);
|
|
64
|
+
color: var(--rt-checkbox-description-color);
|
|
64
65
|
font-size: var(--rt-checkbox-description-font-size);
|
|
65
66
|
font-weight: var(--rt-checkbox-description-font-weight);
|
|
66
|
-
color: var(--rt-checkbox-description-color);
|
|
67
67
|
}
|
|
68
68
|
}
|
|
@@ -29,14 +29,14 @@ $dynamic-selector-list-actions: (
|
|
|
29
29
|
|
|
30
30
|
display: flex;
|
|
31
31
|
align-items: center;
|
|
32
|
-
margin-left: auto;
|
|
33
32
|
padding-right: var(--rt-dynamic-selector-list-actions-host-padding-right);
|
|
33
|
+
margin-left: auto;
|
|
34
34
|
|
|
35
35
|
.rtui-dynamic-selector-list-actions {
|
|
36
36
|
display: flex;
|
|
37
37
|
align-items: center;
|
|
38
|
-
margin-left: auto;
|
|
39
38
|
padding-right: var(--rt-dynamic-selector-list-actions-padding-right);
|
|
39
|
+
margin-left: auto;
|
|
40
40
|
|
|
41
41
|
&__control {
|
|
42
42
|
padding: var(--rt-dynamic-selector-list-actions-control-padding);
|
|
@@ -73,13 +73,13 @@ $multi-selector: (
|
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
display: flex;
|
|
76
|
-
flex-direction: column;
|
|
77
76
|
width: var(--rt-multi-selector-host-width);
|
|
78
77
|
height: var(--rt-multi-selector-host-height);
|
|
78
|
+
flex-direction: column;
|
|
79
79
|
padding: var(--rt-multi-selector-host-padding);
|
|
80
|
-
box-shadow: var(--rt-multi-selector-host-box-shadow);
|
|
81
80
|
border-radius: var(--rt-multi-selector-host-border-radius);
|
|
82
81
|
background-color: var(--rt-multi-selector-host-background-color);
|
|
82
|
+
box-shadow: var(--rt-multi-selector-host-box-shadow);
|
|
83
83
|
|
|
84
84
|
&::ng-deep {
|
|
85
85
|
// radiobutton
|
|
@@ -141,8 +141,8 @@ $multi-selector: (
|
|
|
141
141
|
|
|
142
142
|
&-info {
|
|
143
143
|
margin-left: var(--rt-multi-selector-header-controls-item-info-margin-left);
|
|
144
|
-
font-size: var(--rt-multi-selector-header-controls-item-info-font-size);
|
|
145
144
|
color: var(--rt-multi-selector-header-controls-item-info-color);
|
|
145
|
+
font-size: var(--rt-multi-selector-header-controls-item-info-font-size);
|
|
146
146
|
}
|
|
147
147
|
}
|
|
148
148
|
}
|
|
@@ -150,19 +150,19 @@ $multi-selector: (
|
|
|
150
150
|
|
|
151
151
|
.rtui-multi-selector-options {
|
|
152
152
|
display: flex;
|
|
153
|
-
flex-direction: column;
|
|
154
|
-
flex: 1 1 100%;
|
|
155
|
-
height: 100%;
|
|
156
153
|
width: 100%;
|
|
154
|
+
height: 100%;
|
|
155
|
+
flex: 1 1 100%;
|
|
156
|
+
flex-direction: column;
|
|
157
157
|
overflow-y: auto;
|
|
158
158
|
|
|
159
159
|
&__item {
|
|
160
160
|
&-title {
|
|
161
|
+
overflow: hidden;
|
|
161
162
|
width: 100%;
|
|
162
163
|
max-width: var(--rt-multi-selector-options-item-title-max-width);
|
|
163
|
-
white-space: nowrap;
|
|
164
|
-
overflow: hidden;
|
|
165
164
|
text-overflow: ellipsis;
|
|
165
|
+
white-space: nowrap;
|
|
166
166
|
}
|
|
167
167
|
|
|
168
168
|
&--separated {
|
|
@@ -172,38 +172,38 @@ $multi-selector: (
|
|
|
172
172
|
|
|
173
173
|
&__loader {
|
|
174
174
|
display: flex;
|
|
175
|
-
justify-content: center;
|
|
176
175
|
align-items: center;
|
|
176
|
+
justify-content: center;
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
179
|
|
|
180
180
|
.rtui-multi-selector-placeholder {
|
|
181
181
|
display: flex;
|
|
182
|
+
flex: 1 1 100%;
|
|
182
183
|
flex-direction: column;
|
|
183
|
-
justify-content: center;
|
|
184
184
|
align-items: center;
|
|
185
|
-
|
|
186
|
-
gap: var(--rt-multi-selector-placeholder-gap);
|
|
185
|
+
justify-content: center;
|
|
187
186
|
padding-right: var(--rt-multi-selector-placeholder-padding-right);
|
|
187
|
+
gap: var(--rt-multi-selector-placeholder-gap);
|
|
188
188
|
overflow-y: auto;
|
|
189
189
|
|
|
190
190
|
&__icon {
|
|
191
191
|
width: var(--rt-multi-selector-placeholder-icon-size);
|
|
192
192
|
height: var(--rt-multi-selector-placeholder-icon-size);
|
|
193
|
-
font-size: var(--rt-multi-selector-placeholder-icon-size);
|
|
194
193
|
color: var(--rt-multi-selector-placeholder-icon-color);
|
|
194
|
+
font-size: var(--rt-multi-selector-placeholder-icon-size);
|
|
195
195
|
}
|
|
196
196
|
|
|
197
197
|
&__title {
|
|
198
|
-
font-size: var(--rt-multi-selector-placeholder-title-font-size);
|
|
199
198
|
color: var(--rt-multi-selector-placeholder-title-color);
|
|
199
|
+
font-size: var(--rt-multi-selector-placeholder-title-font-size);
|
|
200
200
|
}
|
|
201
201
|
}
|
|
202
202
|
|
|
203
203
|
.rtui-multi-selector-footer {
|
|
204
204
|
display: flex;
|
|
205
|
-
justify-content: flex-end;
|
|
206
205
|
align-items: center;
|
|
206
|
+
justify-content: flex-end;
|
|
207
207
|
padding: var(--rt-multi-selector-footer-padding);
|
|
208
208
|
gap: var(--rt-multi-selector-footer-gap);
|
|
209
209
|
|
|
@@ -212,9 +212,9 @@ $multi-selector: (
|
|
|
212
212
|
}
|
|
213
213
|
|
|
214
214
|
&__nav-action {
|
|
215
|
-
text-decoration: none;
|
|
216
|
-
font-size: var(--rt-multi-selector-footer-nav-action-font-size);
|
|
217
215
|
color: var(--rt-multi-selector-footer-nav-action-color);
|
|
216
|
+
font-size: var(--rt-multi-selector-footer-nav-action-font-size);
|
|
217
|
+
text-decoration: none;
|
|
218
218
|
|
|
219
219
|
&:hover {
|
|
220
220
|
color: var(--rt-multi-selector-footer-nav-action-hover-color);
|
|
@@ -28,11 +28,10 @@ $dynamic-selector-placeholder: (
|
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
+
display: flex;
|
|
31
32
|
width: var(--rt-dynamic-selector-placeholder-host-width);
|
|
32
33
|
height: var(--rt-dynamic-selector-placeholder-host-height);
|
|
33
34
|
min-height: var(--rt-dynamic-selector-placeholder-host-min-height);
|
|
34
|
-
|
|
35
|
-
display: flex;
|
|
36
35
|
flex-direction: column;
|
|
37
36
|
align-items: center;
|
|
38
37
|
justify-content: center;
|
|
@@ -42,8 +41,8 @@ $dynamic-selector-placeholder: (
|
|
|
42
41
|
&__icon {
|
|
43
42
|
width: var(--rt-dynamic-selector-placeholder-icon-size);
|
|
44
43
|
height: var(--rt-dynamic-selector-placeholder-icon-size);
|
|
45
|
-
font-size: var(--rt-dynamic-selector-placeholder-icon-size);
|
|
46
44
|
color: var(--rt-dynamic-selector-placeholder-icon-color);
|
|
45
|
+
font-size: var(--rt-dynamic-selector-placeholder-icon-size);
|
|
47
46
|
|
|
48
47
|
&--warn {
|
|
49
48
|
color: var(--rt-dynamic-selector-placeholder-icon-warn-color);
|
|
@@ -51,9 +50,9 @@ $dynamic-selector-placeholder: (
|
|
|
51
50
|
}
|
|
52
51
|
|
|
53
52
|
&__description {
|
|
53
|
+
color: var(--rt-dynamic-selector-placeholder-description-color);
|
|
54
54
|
font-size: var(--rt-dynamic-selector-placeholder-description-font-size);
|
|
55
55
|
line-height: var(--rt-dynamic-selector-placeholder-description-line-height);
|
|
56
|
-
color: var(--rt-dynamic-selector-placeholder-description-color);
|
|
57
56
|
}
|
|
58
57
|
}
|
|
59
58
|
}
|
|
@@ -27,9 +27,9 @@
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
.cdk-drag-preview {
|
|
30
|
-
border: none;
|
|
31
30
|
box-sizing: border-box;
|
|
31
|
+
border: none;
|
|
32
32
|
border-radius: var(--rt-dynamic-selector-item-border-radius);
|
|
33
|
-
box-shadow: var(--rt-dynamic-selector-item-drag-preview-box-shadow);
|
|
34
33
|
background: var(--mat-option-selected-state-layer-color);
|
|
34
|
+
box-shadow: var(--rt-dynamic-selector-item-drag-preview-box-shadow);
|
|
35
35
|
}
|
package/src/lib/ui-kit/dynamic-selectors/strories/component/selector/test-selector.component.scss
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
:host {
|
|
2
|
+
display: flex;
|
|
2
3
|
width: 100vw;
|
|
3
4
|
height: 100vh;
|
|
4
|
-
|
|
5
|
-
display: flex;
|
|
6
5
|
flex-direction: column;
|
|
7
|
-
justify-content: flex-start;
|
|
8
6
|
align-items: center;
|
|
7
|
+
justify-content: flex-start;
|
|
9
8
|
margin: -1rem;
|
|
10
9
|
|
|
11
10
|
rtui-dynamic-selector {
|
|
@@ -23,13 +22,13 @@
|
|
|
23
22
|
.custom-title {
|
|
24
23
|
display: inline-flex;
|
|
25
24
|
align-items: center;
|
|
26
|
-
gap: 0.5rem;
|
|
27
25
|
font-size: 0.875rem;
|
|
26
|
+
gap: 0.5rem;
|
|
28
27
|
|
|
29
28
|
&__icon {
|
|
30
|
-
font-size: 1.125rem;
|
|
31
29
|
width: 1.125rem;
|
|
32
30
|
height: 1.125rem;
|
|
31
|
+
font-size: 1.125rem;
|
|
33
32
|
}
|
|
34
33
|
|
|
35
34
|
&__id {
|
|
@@ -35,18 +35,18 @@ $file-upload: (
|
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
+
display: var(--rt-file-upload-host-display);
|
|
38
39
|
width: var(--rt-file-upload-host-width);
|
|
39
40
|
max-width: var(--rt-file-upload-host-max-width);
|
|
40
41
|
height: var(--rt-file-upload-host-height);
|
|
41
42
|
max-height: var(--rt-file-upload-host-max-height);
|
|
42
|
-
display: var(--rt-file-upload-host-display);
|
|
43
43
|
flex-direction: var(--rt-file-upload-host-flex-direction);
|
|
44
|
-
justify-content: var(--rt-file-upload-host-justify-content);
|
|
45
44
|
align-items: var(--rt-file-upload-host-align-items);
|
|
46
|
-
|
|
45
|
+
justify-content: var(--rt-file-upload-host-justify-content);
|
|
47
46
|
padding: var(--rt-file-upload-host-padding);
|
|
48
47
|
border: var(--rt-file-upload-host-border);
|
|
49
48
|
border-radius: var(--rt-file-upload-host-border-radius);
|
|
49
|
+
gap: var(--rt-file-upload-host-gap);
|
|
50
50
|
transition: border-color 0.3s ease-in-out;
|
|
51
51
|
|
|
52
52
|
&.--dragged {
|
|
@@ -57,13 +57,13 @@ $file-upload: (
|
|
|
57
57
|
&__icon {
|
|
58
58
|
width: var(--rt-file-upload-icon-size);
|
|
59
59
|
height: var(--rt-file-upload-icon-size);
|
|
60
|
-
font-size: var(--rt-file-upload-icon-size);
|
|
61
60
|
color: var(--rt-file-upload-icon-color);
|
|
61
|
+
font-size: var(--rt-file-upload-icon-size);
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
&__title {
|
|
65
|
-
font-size: var(--rt-file-upload-title-font-size);
|
|
66
65
|
color: var(--rt-file-upload-title-color);
|
|
66
|
+
font-size: var(--rt-file-upload-title-font-size);
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
// Intentionally empty — header is styled entirely via host bindings and Material theme vars.
|
|
@@ -1,14 +1,14 @@
|
|
|
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
|
|
|
8
8
|
.content {
|
|
9
|
-
flex-grow: 1;
|
|
10
9
|
display: flex;
|
|
11
|
-
|
|
10
|
+
flex-grow: 1;
|
|
12
11
|
align-items: center;
|
|
12
|
+
justify-content: center;
|
|
13
13
|
}
|
|
14
14
|
}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
.rtui-icon {
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
justify-content: center;
|
|
5
|
+
|
|
6
|
+
&--loading {
|
|
7
|
+
visibility: hidden;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
&--rotate {
|
|
11
|
+
animation: rt-icon-rotation 1s linear infinite;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.mat-icon {
|
|
15
|
+
width: inherit;
|
|
16
|
+
height: inherit;
|
|
17
|
+
color: inherit;
|
|
18
|
+
font-size: inherit;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&--size-xs {
|
|
22
|
+
width: 0.875rem;
|
|
23
|
+
height: 0.875rem;
|
|
24
|
+
font-size: 0.875rem;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&--size-sm {
|
|
28
|
+
width: 1rem;
|
|
29
|
+
height: 1rem;
|
|
30
|
+
font-size: 1rem;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&--size-md {
|
|
34
|
+
width: 1.5rem;
|
|
35
|
+
height: 1.5rem;
|
|
36
|
+
font-size: 1.5rem;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&--size-lg {
|
|
40
|
+
width: 2rem;
|
|
41
|
+
height: 2rem;
|
|
42
|
+
font-size: 2rem;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&--size-xl {
|
|
46
|
+
width: 2.5rem;
|
|
47
|
+
height: 2.5rem;
|
|
48
|
+
font-size: 2.5rem;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&--size-xxl {
|
|
52
|
+
width: 3rem;
|
|
53
|
+
height: 3rem;
|
|
54
|
+
font-size: 3rem;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&--size-3xl {
|
|
58
|
+
width: 3.5rem;
|
|
59
|
+
height: 3.5rem;
|
|
60
|
+
font-size: 3.5rem;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
&--theme-inherit {
|
|
64
|
+
color: inherit;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&--theme-primary {
|
|
68
|
+
color: var(--rt-icon-accent-primary);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
&--theme-primary-strong {
|
|
72
|
+
color: var(--rt-icon-accent-primary);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
&--theme-neutral {
|
|
76
|
+
color: var(--rt-icon-neutral-soft);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
&--theme-disabled {
|
|
80
|
+
color: var(--rt-icon-neutral-disabled);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
&--theme-muted {
|
|
84
|
+
color: var(--rt-icon-neutral-soft);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
&--theme-white {
|
|
88
|
+
color: var(--rt-icon-static-light);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
&--theme-danger {
|
|
92
|
+
color: var(--rt-icon-accent-danger);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
&--theme-success {
|
|
96
|
+
color: var(--rt-icon-accent-success);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/* Inside a text-appearance button, every projected icon renders at a single
|
|
101
|
+
uniform size regardless of the `size` modifier it was given, so labelled
|
|
102
|
+
text buttons read consistently (e.g. report-header currency/hotels/period
|
|
103
|
+
triggers). This component is ViewEncapsulation.None, so the rule is global
|
|
104
|
+
and reaches the projected icon; specificity (0,2,0) wins over the icon's own
|
|
105
|
+
`--size-*` (0,1,0). */
|
|
106
|
+
.rtui-button--appearance-text .rtui-icon {
|
|
107
|
+
width: 1.375rem;
|
|
108
|
+
height: 1.375rem;
|
|
109
|
+
font-size: 1.375rem;
|
|
110
|
+
}
|
|
@@ -40,15 +40,15 @@ $image-upload: (
|
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
+
display: var(--rt-image-upload-host-display);
|
|
43
44
|
width: var(--rt-image-upload-host-width);
|
|
44
45
|
min-width: var(--rt-image-upload-host-min-height);
|
|
45
46
|
max-width: var(--rt-image-upload-host-max-width);
|
|
46
47
|
height: var(--rt-image-upload-host-height);
|
|
47
48
|
min-height: var(--rt-image-upload-host-min-height);
|
|
48
49
|
max-height: var(--rt-image-upload-host-max-height);
|
|
49
|
-
display: var(--rt-image-upload-host-display);
|
|
50
|
-
justify-content: var(--rt-image-upload-host-justify-content);
|
|
51
50
|
align-items: var(--rt-image-upload-host-align-items);
|
|
51
|
+
justify-content: var(--rt-image-upload-host-justify-content);
|
|
52
52
|
|
|
53
53
|
.rtui-image-cropper {
|
|
54
54
|
padding: var(--rt-image-upload-image-cropper-padding);
|
|
@@ -56,8 +56,8 @@ $image-upload: (
|
|
|
56
56
|
&__actions {
|
|
57
57
|
display: var(--rt-image-upload-image-cropper-actions-display);
|
|
58
58
|
justify-content: var(--rt-image-upload-image-cropper-actions-justify-content);
|
|
59
|
-
gap: var(--rt-image-upload-image-cropper-actions-gap);
|
|
60
59
|
margin-top: var(--rt-image-upload-image-cropper-actions-justify-margin-top);
|
|
60
|
+
gap: var(--rt-image-upload-image-cropper-actions-gap);
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
|
|
@@ -73,8 +73,8 @@ $image-upload: (
|
|
|
73
73
|
pointer-events: none;
|
|
74
74
|
|
|
75
75
|
&--active {
|
|
76
|
-
pointer-events: initial;
|
|
77
76
|
cursor: pointer;
|
|
77
|
+
pointer-events: initial;
|
|
78
78
|
|
|
79
79
|
&:hover {
|
|
80
80
|
opacity: 0.6;
|
|
@@ -84,9 +84,9 @@ $image-upload: (
|
|
|
84
84
|
|
|
85
85
|
&__action {
|
|
86
86
|
position: absolute;
|
|
87
|
+
z-index: 999;
|
|
87
88
|
top: 0;
|
|
88
89
|
right: 0;
|
|
89
|
-
z-index: 999;
|
|
90
90
|
backdrop-filter: blur(1.25rem);
|
|
91
91
|
}
|
|
92
92
|
}
|
|
@@ -1,62 +1,63 @@
|
|
|
1
1
|
:host {
|
|
2
|
-
border-radius: 9999px;
|
|
3
2
|
display: block;
|
|
4
|
-
line-height: normal;
|
|
5
3
|
max-width: fit-content;
|
|
4
|
+
border-radius: var(--rt-radius-full);
|
|
6
5
|
|
|
7
|
-
// default values
|
|
8
|
-
|
|
9
|
-
color: #
|
|
6
|
+
// default values (overridable by consumers; runtime variants set inline styles via InfoBadgeDirective)
|
|
7
|
+
/* stylelint-disable-next-line color-no-hex -- default brand blue has no palette token on purpose */
|
|
8
|
+
background-color: var(--rt-info-badge-background-color, #005cbb);
|
|
9
|
+
color: var(--rt-info-badge-color, var(--rt-text-static-light));
|
|
10
|
+
line-height: normal;
|
|
10
11
|
|
|
11
12
|
.c-info-badge {
|
|
12
13
|
display: flex;
|
|
13
|
-
|
|
14
|
+
box-sizing: border-box;
|
|
14
15
|
align-items: center;
|
|
15
16
|
justify-content: center;
|
|
16
|
-
|
|
17
|
+
gap: var(--rt-spacing-2);
|
|
17
18
|
line-height: normal;
|
|
18
19
|
|
|
19
20
|
&__content {
|
|
20
|
-
white-space: nowrap;
|
|
21
21
|
overflow: hidden;
|
|
22
22
|
text-overflow: ellipsis;
|
|
23
|
+
white-space: nowrap;
|
|
23
24
|
}
|
|
24
25
|
}
|
|
25
26
|
|
|
26
27
|
.size-l {
|
|
27
|
-
|
|
28
|
-
|
|
28
|
+
padding: var(--rt-spacing-4) var(--rt-spacing-12);
|
|
29
|
+
font-size: var(--rt-font-size-md);
|
|
29
30
|
|
|
30
31
|
.mat-icon {
|
|
31
|
-
font-size:
|
|
32
|
+
font-size: var(--rt-font-size-xl);
|
|
32
33
|
}
|
|
33
34
|
}
|
|
34
35
|
|
|
35
36
|
.size-m {
|
|
36
|
-
|
|
37
|
-
|
|
37
|
+
padding: var(--rt-spacing-4) var(--rt-spacing-12);
|
|
38
|
+
font-size: var(--rt-font-size-sm);
|
|
38
39
|
|
|
39
40
|
.mat-icon {
|
|
40
|
-
font-size:
|
|
41
|
+
font-size: var(--rt-font-size-md);
|
|
41
42
|
}
|
|
42
43
|
}
|
|
43
44
|
|
|
44
45
|
.size-s {
|
|
45
|
-
|
|
46
|
-
|
|
46
|
+
padding: var(--rt-spacing-4) var(--rt-spacing-12);
|
|
47
|
+
font-size: var(--rt-font-size-xs);
|
|
47
48
|
letter-spacing: 0.025rem;
|
|
48
49
|
|
|
49
50
|
.mat-icon {
|
|
50
|
-
font-size:
|
|
51
|
+
font-size: var(--rt-font-size-xs);
|
|
51
52
|
}
|
|
52
53
|
}
|
|
53
54
|
|
|
54
55
|
.mat-icon {
|
|
55
|
-
height: unset;
|
|
56
56
|
width: unset;
|
|
57
|
+
height: unset;
|
|
57
58
|
}
|
|
58
59
|
|
|
59
60
|
.bold {
|
|
60
|
-
font-weight:
|
|
61
|
+
font-weight: var(--rt-font-weight-bold);
|
|
61
62
|
}
|
|
62
63
|
}
|
|
@@ -47,23 +47,23 @@ $modal: (
|
|
|
47
47
|
::ng-deep {
|
|
48
48
|
.--highlighted {
|
|
49
49
|
display: inline;
|
|
50
|
-
font-weight: var(--rt-modal-text-highlited-font-weight);
|
|
51
50
|
color: var(--rt-modal-text-highlited-color);
|
|
51
|
+
font-weight: var(--rt-modal-text-highlited-font-weight);
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
.--warn {
|
|
55
55
|
display: inline;
|
|
56
|
+
color: var(--rt-modal-text-warn-color);
|
|
56
57
|
font-size: var(--rt-modal-text-warn-font-size);
|
|
57
58
|
font-weight: var(--rt-modal-text-warn-font-weight);
|
|
58
|
-
color: var(--rt-modal-text-warn-color);
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
.rtui-modal {
|
|
63
63
|
&__title {
|
|
64
64
|
h1 {
|
|
65
|
-
font-size: var(--rt-modal-title-font-size);
|
|
66
65
|
color: var(--rt-modal-title-color);
|
|
66
|
+
font-size: var(--rt-modal-title-font-size);
|
|
67
67
|
font-weight: var(--rt-modal-title-font-weight);
|
|
68
68
|
}
|
|
69
69
|
|
|
@@ -93,7 +93,7 @@ $modal: (
|
|
|
93
93
|
height: auto;
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
-
.mdc-dialog__title
|
|
96
|
+
.mdc-dialog__title:before {
|
|
97
97
|
height: 100%;
|
|
98
98
|
}
|
|
99
99
|
|
|
@@ -101,8 +101,8 @@ $modal: (
|
|
|
101
101
|
padding: var(--rt-modal-content-padding);
|
|
102
102
|
color: var(--rt-modal-content-color);
|
|
103
103
|
font-size: var(--rt-modal-content-font-size);
|
|
104
|
+
overflow-wrap: var(--rt-modal-content-word-wrap);
|
|
104
105
|
text-align: var(--rt-modal-content-text-align);
|
|
105
|
-
word-wrap: var(--rt-modal-content-word-wrap);
|
|
106
106
|
|
|
107
107
|
mat-form-field {
|
|
108
108
|
width: 100%;
|