@rt-tools/ui-kit 0.0.4

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 (69) hide show
  1. package/README.md +99 -0
  2. package/fesm2022/rt-tools-ui-kit.mjs +5143 -0
  3. package/fesm2022/rt-tools-ui-kit.mjs.map +1 -0
  4. package/package.json +43 -0
  5. package/rt-tools-ui-kit-0.0.4.tgz +0 -0
  6. package/src/lib/ui-kit/action-bar/components/bar/rtui-action-bar.component.scss +104 -0
  7. package/src/lib/ui-kit/action-bar/components/container/rtui-action-bar-container.component.scss +12 -0
  8. package/src/lib/ui-kit/aside/components/container/aside-container.component.scss +20 -0
  9. package/src/lib/ui-kit/aside/components/error-notification/aside-error-box.component.scss +37 -0
  10. package/src/lib/ui-kit/aside/components/panel/aside-panel.component.scss +243 -0
  11. package/src/lib/ui-kit/aside/stories/aside-component/test-aside.component.scss +4 -0
  12. package/src/lib/ui-kit/buttons/icon-round/rtui-round-icon-button.component.scss +44 -0
  13. package/src/lib/ui-kit/buttons/multi-button/rtui-multi-button.component.scss +92 -0
  14. package/src/lib/ui-kit/checkbox/rtui-checkbox.component.scss +68 -0
  15. package/src/lib/ui-kit/checkbox/stories/component/test-checkbox.component.scss +9 -0
  16. package/src/lib/ui-kit/dynamic-selectors/components/actions/rtui-dynamic-selector-list-actions.component.scss +63 -0
  17. package/src/lib/ui-kit/dynamic-selectors/components/dynamic-input/rtui-dynamic-input.component.scss +3 -0
  18. package/src/lib/ui-kit/dynamic-selectors/components/dynamic-selector/rtui-dynamic-selector.component.scss +7 -0
  19. package/src/lib/ui-kit/dynamic-selectors/components/multi-selector-popup/rtui-multi-selector-popup.component.scss +229 -0
  20. package/src/lib/ui-kit/dynamic-selectors/components/placeholder/rtui-dynamic-selector-placeholder.component.scss +59 -0
  21. package/src/lib/ui-kit/dynamic-selectors/components/selected-list/rtui-dynamic-selector-selected-list.component.scss +35 -0
  22. package/src/lib/ui-kit/dynamic-selectors/strories/component/input/test-dynamic-input.component.scss +16 -0
  23. package/src/lib/ui-kit/dynamic-selectors/strories/component/selector/test-selector.component.scss +22 -0
  24. package/src/lib/ui-kit/file-uploader/rtui-file-upload.component.scss +69 -0
  25. package/src/lib/ui-kit/file-uploader/stories/component/test-file-upload.component.scss +6 -0
  26. package/src/lib/ui-kit/header/header.component.scss +0 -0
  27. package/src/lib/ui-kit/header/stories/component/test-header.component.scss +14 -0
  28. package/src/lib/ui-kit/image-uploader/image-uploader/rtui-image-upload.component.scss +93 -0
  29. package/src/lib/ui-kit/image-uploader/stories/component/test-image-upload.component.scss +9 -0
  30. package/src/lib/ui-kit/info-badge/info-badge.component.scss +62 -0
  31. package/src/lib/ui-kit/info-badge/stories/component/test-info-badge/test-info-badge.component.scss +11 -0
  32. package/src/lib/ui-kit/modal/modal.component.scss +115 -0
  33. package/src/lib/ui-kit/modal/stories/test-modal.component.scss +4 -0
  34. package/src/lib/ui-kit/popover/rtui-popover-container.component.scss +13 -0
  35. package/src/lib/ui-kit/scrollable/scrollable-container.component.scss +64 -0
  36. package/src/lib/ui-kit/side-menu/menu/rtui-side-menu.component.scss +185 -0
  37. package/src/lib/ui-kit/side-menu/menu-sub-item/rtui-side-menu-sub-item.component.scss +97 -0
  38. package/src/lib/ui-kit/side-menu/stories/component/test-side-menu-wrapper.component.scss +48 -0
  39. package/src/lib/ui-kit/snack-bar/snack-bar.component.scss +100 -0
  40. package/src/lib/ui-kit/snack-bar/stories/component/test-snack-bar.component.scss +30 -0
  41. package/src/lib/ui-kit/spinner/spinner.component.scss +49 -0
  42. package/src/lib/ui-kit/table/components/clear-search-button/rtui-clear-button.component.scss +50 -0
  43. package/src/lib/ui-kit/table/components/pagination-view/rtui-pagination.component.scss +191 -0
  44. package/src/lib/ui-kit/table/components/table/rtui-table.component.scss +4 -0
  45. package/src/lib/ui-kit/table/components/table-base-cell/table-base-cell.component.scss +133 -0
  46. package/src/lib/ui-kit/table/components/table-config-aside/rt-table-config-aside.component.scss +4 -0
  47. package/src/lib/ui-kit/table/components/table-container/table-container.component.scss +212 -0
  48. package/src/lib/ui-kit/table/components/table-header-cell/table-header-cell.component.scss +115 -0
  49. package/src/lib/ui-kit/table/components/table-header-filter-cell/table-header-filter-cell.component.scss +11 -0
  50. package/src/lib/ui-kit/table/dynamic-list.component.scss +6 -0
  51. package/src/lib/ui-kit/table/stories/dynamic-list/test-dynamic-list.component.scss +15 -0
  52. package/src/lib/ui-kit/table/stories/pagination/test-pagination-component.scss +16 -0
  53. package/src/lib/ui-kit/table/stories/table/test-table-component.scss +7 -0
  54. package/src/lib/ui-kit/toggle/rtui-toggle.component.scss +174 -0
  55. package/src/lib/ui-kit/toggle/stories/component/test-toggle.component.scss +9 -0
  56. package/src/lib/ui-kit/toolbar/toolbar.component.scss +99 -0
  57. package/src/styles/base/_base.scss +71 -0
  58. package/src/styles/base/_mixin.scss +66 -0
  59. package/src/styles/base/_variables.scss +34 -0
  60. package/src/styles/components/_action-bar.scss +84 -0
  61. package/src/styles/components/_button.scss +364 -0
  62. package/src/styles/components/_checkbox.scss +40 -0
  63. package/src/styles/components/_dynamic-selectors.scss +134 -0
  64. package/src/styles/components/_form.scss +90 -0
  65. package/src/styles/components/_rtui_button.scss +452 -0
  66. package/src/styles/components/_snackbar.scss +103 -0
  67. package/src/styles/components/_table.scss +239 -0
  68. package/src/styles/main.scss +14 -0
  69. package/types/rt-tools-ui-kit.d.ts +1875 -0
@@ -0,0 +1,11 @@
1
+ .block {
2
+ display: flex;
3
+ flex-direction: column;
4
+ gap: 10px;
5
+
6
+ &__container {
7
+ border: 1px grey dashed;
8
+ max-width: 200px;
9
+ padding: 5px;
10
+ }
11
+ }
@@ -0,0 +1,115 @@
1
+ @use '../../../styles/base/variables' as vars;
2
+ @use '../../../styles/base/mixin' as mixins;
3
+
4
+ $modal: (
5
+ title: (
6
+ font-size: 1.25rem,
7
+ color: var(--clr-txt),
8
+ font-weight: 400,
9
+ ),
10
+ content: (
11
+ padding: 1rem 1.5rem,
12
+ color: var(--clr-black-80),
13
+ font-size: 0.8rem,
14
+ text-align: center,
15
+ word-wrap: break-word,
16
+ ),
17
+ input: (
18
+ margin-top: 1.5rem,
19
+ font-weight: 600,
20
+ text-align: left,
21
+ ),
22
+ textarea: (
23
+ margin-top: 1.5rem,
24
+ ),
25
+ select: (
26
+ margin-top: 1.5rem,
27
+ ),
28
+ text-highlited: (
29
+ font-weight: 600,
30
+ color: var(--clr-black-100),
31
+ ),
32
+ text-warn: (
33
+ display: inline,
34
+ font-size: 1rem,
35
+ font-weight: 600,
36
+ color: var(--clr-red-100),
37
+ ),
38
+ );
39
+
40
+ :host {
41
+ @each $element, $elements in $modal {
42
+ @each $style-token, $value in $elements {
43
+ #{mixins.generateCssVar('modal', #{$element}, #{$style-token})}: #{$value};
44
+ }
45
+ }
46
+
47
+ ::ng-deep {
48
+ .--highlighted {
49
+ display: inline;
50
+ font-weight: var(--rt-modal-text-highlited-font-weight);
51
+ color: var(--rt-modal-text-highlited-color);
52
+ }
53
+
54
+ .--warn {
55
+ display: inline;
56
+ font-size: var(--rt-modal-text-warn-font-size);
57
+ font-weight: var(--rt-modal-text-warn-font-weight);
58
+ color: var(--rt-modal-text-warn-color);
59
+ }
60
+ }
61
+
62
+ .rtui-modal {
63
+ &__title {
64
+ h1 {
65
+ font-size: var(--rt-modal-title-font-size);
66
+ color: var(--rt-modal-title-color);
67
+ font-weight: var(--rt-modal-title-font-weight);
68
+ }
69
+
70
+ h1,
71
+ h2 {
72
+ text-align: center;
73
+ }
74
+ }
75
+
76
+ &__input {
77
+ margin-top: var(--rt-modal-input-margin-top);
78
+ font-weight: var(--rt-modal-input-font-weight);
79
+ text-align: var(--rt-modal-input-text-align);
80
+ }
81
+
82
+ &__textarea {
83
+ margin-top: var(--rt-modal-textarea-margin-top);
84
+ }
85
+
86
+ &__select {
87
+ margin-top: var(--rt-modal-select-margin-top);
88
+ }
89
+ }
90
+
91
+ .mat-icon {
92
+ width: auto;
93
+ height: auto;
94
+ }
95
+
96
+ .mdc-dialog__title::before {
97
+ height: 100%;
98
+ }
99
+
100
+ mat-dialog-content {
101
+ padding: var(--rt-modal-content-padding);
102
+ color: var(--rt-modal-content-color);
103
+ font-size: var(--rt-modal-content-font-size);
104
+ text-align: var(--rt-modal-content-text-align);
105
+ word-wrap: var(--rt-modal-content-word-wrap);
106
+
107
+ mat-form-field {
108
+ width: 100%;
109
+
110
+ textarea {
111
+ resize: none;
112
+ }
113
+ }
114
+ }
115
+ }
@@ -0,0 +1,4 @@
1
+ :host {
2
+ display: flex;
3
+ gap: 1rem;
4
+ }
@@ -0,0 +1,13 @@
1
+ :host {
2
+ position: absolute;
3
+ width: fit-content;
4
+ display: block;
5
+
6
+ /* Hack to show properly popover on mouse hover */
7
+ padding-top: 20px;
8
+ text-align: left;
9
+
10
+ transition:
11
+ transform 0.1s,
12
+ opacity 0.5s;
13
+ }
@@ -0,0 +1,64 @@
1
+ @use '../../../styles/base/variables' as vars;
2
+ @use '../../../styles/base/mixin' as mixins;
3
+
4
+ $scrollable: (
5
+ host: (
6
+ height: 100%,
7
+ width: 100%,
8
+ display: flex,
9
+ flex-direction: column,
10
+ background-color: var(--clr-white-100),
11
+ ),
12
+ header: (
13
+ padding: 0.5rem 1rem,
14
+ background-color: var(--clr-white-100),
15
+ ),
16
+ content: (
17
+ display: flex,
18
+ flex-direction: column,
19
+ flex-grow: 1,
20
+ padding: 1rem,
21
+ background-color: var(--clr-white-100),
22
+ ),
23
+ footer: (
24
+ padding: 1rem,
25
+ background-color: var(--clr-white-100),
26
+ ),
27
+ );
28
+
29
+ :host {
30
+ height: var(--rt-scrollable-host-height);
31
+ width: var(--rt-scrollable-host-width);
32
+
33
+ display: var(--rt-scrollable-host-display);
34
+ flex-direction: var(--rt-scrollable-host-flex-direction);
35
+
36
+ background-color: var(--rt-scrollable-host-background-color);
37
+
38
+ @each $element, $elements in $scrollable {
39
+ @each $style-token, $value in $elements {
40
+ #{mixins.generateCssVar('scrollable', #{$element}, #{$style-token})}: #{$value};
41
+ }
42
+ }
43
+
44
+ .rtui-scrollable {
45
+ &__header {
46
+ padding: var(--rt-scrollable-header-padding);
47
+ background-color: var(--rt-scrollable-header-background-color);
48
+ }
49
+
50
+ &__content {
51
+ display: var(--rt-scrollable-content-display);
52
+ flex-direction: var(--rt-scrollable-content-flex-direction);
53
+ flex-grow: var(--rt-scrollable-content-flex-grow);
54
+ padding: var(--rt-scrollable-content-padding);
55
+ background-color: var(--rt-scrollable-content-background-color);
56
+ overflow: auto;
57
+ }
58
+
59
+ &__footer {
60
+ padding: var(--rt-scrollable-footer-padding);
61
+ background-color: var(--rt-scrollable-footer-background-color);
62
+ }
63
+ }
64
+ }
@@ -0,0 +1,185 @@
1
+ @use '../../../../styles/base/mixin' as mixins;
2
+
3
+ $side-menu: (
4
+ base: (
5
+ width: 5.5rem,
6
+ margin-top-between-items: 0.75rem,
7
+ ),
8
+ item: (
9
+ width: 3.5rem,
10
+ height: 2rem,
11
+ font-size: 0.75rem,
12
+ text-align: center,
13
+ line-height: 1.1,
14
+ ),
15
+ mobile-item: (
16
+ icon-size: 1.5rem,
17
+ title-font-size: 0.75rem,
18
+ additional-icon-size: 1rem,
19
+ ),
20
+ sub-menu: (
21
+ width: 15rem,
22
+ ),
23
+ sub-menu-item: (
24
+ width: 13.75rem,
25
+ title-font-size: 0.85rem,
26
+ ),
27
+ );
28
+
29
+ :host {
30
+ @each $element, $elements in $side-menu {
31
+ @each $style-token, $value in $elements {
32
+ #{mixins.generateCssVar('side-menu', #{$element}, #{$style-token})}: #{$value};
33
+ }
34
+ }
35
+
36
+ // Hide drawer mask
37
+ --mat-sidenav-scrim-color: transparent;
38
+
39
+ .rtui-mobile-side-menu {
40
+ width: var(--rt-side-menu-sub-menu-width);
41
+
42
+ .rtui-mobile-side-menu-list {
43
+ display: flex;
44
+ flex-direction: column;
45
+ width: 100%;
46
+
47
+ &--scrollable {
48
+ width: fit-content;
49
+ }
50
+
51
+ &__sub {
52
+ opacity: 0;
53
+ animation: fadeInAnimation 0.15s ease-in-out 0.15s forwards;
54
+ }
55
+
56
+ .rtui-mobile-side-menu-list-main {
57
+ opacity: 0;
58
+ animation: fadeInAnimation 0.15s ease-in-out 0.15s forwards;
59
+
60
+ .rtui-mobile-side-menu-item {
61
+ &__icon {
62
+ width: var(--rt-side-menu-mobile-item-icon-size);
63
+ height: var(--rt-side-menu-mobile-item-icon-size);
64
+ font-size: var(--rt-side-menu-mobile-item-icon-size);
65
+ }
66
+
67
+ .rtui-mobile-side-menu-item-title {
68
+ display: flex;
69
+ justify-content: space-between;
70
+ align-items: center;
71
+
72
+ &__text {
73
+ font-size: 0.75rem;
74
+ text-overflow: ellipsis;
75
+ white-space: nowrap;
76
+ overflow: hidden;
77
+ }
78
+
79
+ .rtui-mobile-side-menu-item-title-button {
80
+ display: flex;
81
+ justify-content: center;
82
+ align-items: center;
83
+ margin-left: 0.5rem;
84
+ border-radius: 50%;
85
+
86
+ &__icon {
87
+ width: var(--rt-side-menu-mobile-item-additional-icon-size);
88
+ height: var(--rt-side-menu-mobile-item-additional-icon-size);
89
+ font-size: var(--rt-side-menu-mobile-item-additional-icon-size);
90
+ }
91
+ }
92
+ }
93
+ }
94
+
95
+ .rtui-mobile-side-menu-item + .rtui-mobile-side-menu-item {
96
+ margin-top: 0.5rem;
97
+ }
98
+ }
99
+ }
100
+ }
101
+
102
+ .rtui-side-menu {
103
+ width: var(--rt-side-menu-base-width);
104
+
105
+ &__list {
106
+ display: flex;
107
+ flex-direction: column;
108
+ align-items: center;
109
+ width: 100%;
110
+
111
+ .rtui-side-menu-item {
112
+ display: flex;
113
+ flex-direction: column;
114
+ justify-content: center;
115
+ align-items: center;
116
+ cursor: pointer;
117
+ width: 100%;
118
+
119
+ .rtui-side-menu-item-button {
120
+ padding: 0;
121
+ display: flex;
122
+ justify-content: center;
123
+ align-items: center;
124
+ height: var(--rt-side-menu-item-height);
125
+ width: var(--rt-side-menu-item-width);
126
+
127
+ &__icon {
128
+ display: flex;
129
+ justify-content: center;
130
+ align-items: center;
131
+ }
132
+ }
133
+
134
+ &__title {
135
+ font-size: var(--rt-side-menu-item-font-size);
136
+ text-align: var(--rt-side-menu-item-text-align);
137
+ line-height: var(--rt-side-menu-item-line-height);
138
+ }
139
+ }
140
+
141
+ .rtui-side-menu-item + .rtui-side-menu-item {
142
+ margin-top: var(--rt-side-menu-base-margin-top-between-items);
143
+ }
144
+ }
145
+ }
146
+
147
+ .rtui-sub-side-menu {
148
+ position: fixed;
149
+ top: 0;
150
+ left: var(--rt-side-menu-base-width);
151
+ width: 0;
152
+ height: 100%;
153
+ background-color: transparent;
154
+
155
+ &--opened {
156
+ width: 100%;
157
+ }
158
+
159
+ .rtui-sub-side-menu-content {
160
+ width: var(--rt-side-menu-sub-menu-width);
161
+ height: 100%;
162
+ border-left: 1px solid var(--clr-black-20);
163
+ box-shadow:
164
+ 14px 0 28px rgba(0, 0, 0, 0.25),
165
+ 10px 0 10px rgba(0, 0, 0, 0.22);
166
+
167
+ &__list {
168
+ width: 100%;
169
+
170
+ opacity: 0;
171
+ animation: fadeInAnimation 0.15s ease-in-out 0.15s forwards;
172
+
173
+ &--scrollable {
174
+ min-width: fit-content;
175
+ }
176
+ }
177
+ }
178
+ }
179
+ }
180
+
181
+ @keyframes fadeInAnimation {
182
+ to {
183
+ opacity: 1;
184
+ }
185
+ }
@@ -0,0 +1,97 @@
1
+ :host {
2
+ &::ng-deep {
3
+ // Set expansion panel header padding
4
+ .mat-expansion-indicator {
5
+ padding: 0 1.5rem 0 1.5rem;
6
+ }
7
+
8
+ // Set expansion panel body padding
9
+ .mat-expansion-panel-body {
10
+ padding: 0 0 0 1rem;
11
+ }
12
+
13
+ // Set expansion panel transparent container
14
+ --mat-expansion-container-background-color: transparent;
15
+
16
+ // Set permanent expansion header height
17
+ --mat-expansion-header-expanded-state-height: var(--mat-expansion-header-collapsed-state-height);
18
+ }
19
+
20
+ .rtui-side-menu-sub-item {
21
+ max-width: var(--rt-side-menu-sub-menu-item-width);
22
+
23
+ &--fixed {
24
+ min-width: var(--rt-side-menu-sub-menu-item-width);
25
+ }
26
+
27
+ .rtui-side-menu-sub-item-title {
28
+ display: flex;
29
+ justify-content: space-between;
30
+ align-items: center;
31
+
32
+ &__text {
33
+ font-size: var(--rt-side-menu-sub-menu-item-title-font-size);
34
+ text-overflow: ellipsis;
35
+ white-space: nowrap;
36
+ overflow: hidden;
37
+ }
38
+
39
+ .rtui-side-menu-sub-item-title-button {
40
+ display: flex;
41
+ justify-content: center;
42
+ align-items: center;
43
+ padding: 0.1rem;
44
+ margin-left: 0.5rem;
45
+ border-radius: 50%;
46
+ cursor: pointer;
47
+ border: 1.5px solid transparent;
48
+
49
+ &__icon {
50
+ width: 1.25rem;
51
+ height: 1.25rem;
52
+ font-size: 1.25rem;
53
+ }
54
+
55
+ &:hover {
56
+ border-color: var(--clr-black-60);
57
+ }
58
+ }
59
+ }
60
+ }
61
+
62
+ .rtui-side-menu-expand-sub-item {
63
+ padding: 0;
64
+ box-shadow: none;
65
+ // Set expand sub item header border like menu item border
66
+ border-radius: 1.35rem;
67
+
68
+ &--fixed {
69
+ min-width: var(--rt-side-menu-sub-menu-item-width);
70
+ }
71
+
72
+ .rtui-side-menu-expand-sub-item-header {
73
+ max-width: var(--rt-side-menu-sub-menu-item-width);
74
+ padding: 0;
75
+
76
+ &--activated {
77
+ background-color: var(--mat-list-active-indicator-color);
78
+ }
79
+
80
+ &__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
+ color: var(--mdc-list-list-item-leading-icon-color);
84
+ }
85
+
86
+ &__title {
87
+ font-size: var(--rt-side-menu-sub-menu-item-title-font-size);
88
+ }
89
+
90
+ &:hover {
91
+ .rtui-side-menu-expand-sub-item-header__icon {
92
+ color: var(--mdc-list-list-item-hover-leading-icon-color);
93
+ }
94
+ }
95
+ }
96
+ }
97
+ }
@@ -0,0 +1,48 @@
1
+ :host {
2
+ &::ng-deep {
3
+ // Set menu paddings
4
+ rtui-scrollable {
5
+ --rt-scrollable-header-padding: 1rem;
6
+ --rt-scrollable-content-padding: 0.5rem;
7
+ --rt-scrollable-footer-padding: 1rem;
8
+ }
9
+ }
10
+
11
+ display: flex;
12
+ width: fit-content;
13
+ height: 100vh;
14
+ margin: -1rem;
15
+ box-shadow:
16
+ 0 14px 28px rgba(0, 0, 0, 0.25),
17
+ 0 10px 10px rgba(0, 0, 0, 0.22);
18
+
19
+ .side-menu-wrapper {
20
+ &__header {
21
+ display: flex;
22
+ align-items: center;
23
+ justify-content: center;
24
+ width: 100%;
25
+ padding: 0.5rem 0 1rem 0;
26
+ cursor: pointer;
27
+ border-bottom: 1px solid var(--clr-black-20);
28
+ }
29
+
30
+ .footer {
31
+ display: flex;
32
+ flex-direction: column;
33
+ align-items: center;
34
+ justify-content: center;
35
+ width: 100%;
36
+ gap: 0.5rem;
37
+ padding-top: 0.5rem;
38
+ border-top: 1px solid var(--clr-black-20);
39
+
40
+ &__icon {
41
+ height: 2rem;
42
+ width: 2rem;
43
+ font-size: 2rem;
44
+ cursor: pointer;
45
+ }
46
+ }
47
+ }
48
+ }
@@ -0,0 +1,100 @@
1
+ @use '../../../styles/base/mixin' as mixins;
2
+
3
+ $snack-bar: (
4
+ content: (
5
+ gap: 1rem,
6
+ ),
7
+ icon: (
8
+ size: 2rem,
9
+ color: var(--clr-white-100),
10
+ ),
11
+ message: (
12
+ line-clamp: 5,
13
+ ),
14
+ action: (
15
+ padding: 0.5rem,
16
+ margin: 0 0.25rem,
17
+ color: var(--clr-blue-80),
18
+ background-color: var(--clr-blue-100),
19
+ ),
20
+ progress: (
21
+ height: 0.5rem,
22
+ ),
23
+ close-button: (
24
+ color: var(--clr-white-100),
25
+ ),
26
+ );
27
+
28
+ :host {
29
+ height: 100%;
30
+ width: 100%;
31
+ display: flex;
32
+ align-items: center;
33
+ justify-content: space-between;
34
+
35
+ @each $element, $elements in $snack-bar {
36
+ @each $style-token, $value in $elements {
37
+ #{mixins.generateCssVar('snack-bar', #{$element}, #{$style-token})}: #{$value};
38
+ }
39
+ }
40
+
41
+ .rt-snack-bar {
42
+ &__content {
43
+ height: 100%;
44
+ width: 100%;
45
+ position: relative;
46
+ display: flex;
47
+ align-items: center;
48
+ gap: var(--rt-snack-bar-content-gap);
49
+
50
+ &-icon-wrapper {
51
+ margin-bottom: auto;
52
+ line-height: 0.5;
53
+ }
54
+
55
+ &-icon {
56
+ width: var(--rt-snack-bar-icon-size);
57
+ min-width: var(--rt-snack-bar-icon-size);
58
+ height: var(--rt-snack-bar-icon-size);
59
+ font-size: var(--rt-snack-bar-icon-size);
60
+ color: var(--rt-snack-bar-icon-color);
61
+ }
62
+
63
+ &-message {
64
+ display: -webkit-box;
65
+ overflow: hidden;
66
+ text-overflow: ellipsis;
67
+ -webkit-line-clamp: var(--rt-snack-bar-message-line-clamp);
68
+ -webkit-box-orient: vertical;
69
+ }
70
+ }
71
+
72
+ &__action-button {
73
+ position: relative;
74
+ height: 100%;
75
+ padding: var(--rt-snack-bar-action-padding);
76
+ margin: var(--rt-snack-bar-action-margin);
77
+ color: var(--rt-snack-bar-action-color);
78
+ }
79
+
80
+ &__close-button {
81
+ margin-bottom: auto;
82
+
83
+ &-icon {
84
+ color: var(--rt-snack-bar-close-button-color);
85
+ }
86
+ }
87
+
88
+ &__progress {
89
+ position: absolute;
90
+ bottom: 0;
91
+ left: 0;
92
+ right: 0;
93
+ height: var(--rt-snack-bar-progress-height);
94
+ width: 100%;
95
+ background-color: var(--mat-button-filled-container-color);
96
+ border-bottom-left-radius: var(--mat-snack-bar-container-shape);
97
+ border-bottom-right-radius: var(--mat-snack-bar-container-shape);
98
+ }
99
+ }
100
+ }
@@ -0,0 +1,30 @@
1
+ :host {
2
+ width: 100vw;
3
+ height: 100vh;
4
+ display: flex;
5
+ flex-direction: column;
6
+ margin: -1rem;
7
+
8
+ rtui-toolbar {
9
+ --rt-toolbar-body-height: 3.25rem;
10
+ }
11
+
12
+ .content {
13
+ flex-grow: 1;
14
+ display: flex;
15
+ justify-content: center;
16
+ align-items: flex-start;
17
+ }
18
+
19
+ .action {
20
+ margin-left: 1rem;
21
+
22
+ button {
23
+ width: 8rem;
24
+ }
25
+
26
+ button + button {
27
+ margin-left: 1rem;
28
+ }
29
+ }
30
+ }