@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
package/styles/tokens.css
CHANGED
|
@@ -1,24 +1,26 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
1
2
|
/* Material Theme */
|
|
2
3
|
/* Base */
|
|
3
4
|
/* Device Definitions */
|
|
4
5
|
/* Fonts */
|
|
5
|
-
/*
|
|
6
|
+
/* Button palette seeds (static — fed to sass color.scale() for hover/active states) */
|
|
6
7
|
/* Components */
|
|
7
8
|
/* ============================== Tier 1: primitives ============================== */
|
|
9
|
+
/* ------------------------------ Accent-role ramps (indirection layer) ------------------------------ */
|
|
8
10
|
/* ============================== Tier 2: semantic ============================== */
|
|
9
11
|
/* ============================== Foundations (mode-independent) ============================== */
|
|
10
12
|
/* ============================== Emission ============================== */
|
|
11
13
|
:root {
|
|
12
14
|
color-scheme: light;
|
|
13
15
|
/* --- Tier 1: primitives --- */
|
|
14
|
-
--rt-color-neutral-0: #
|
|
16
|
+
--rt-color-neutral-0: #fff;
|
|
15
17
|
--rt-color-neutral-5: #f5f6f8;
|
|
16
18
|
--rt-color-neutral-10: #f3f3f3;
|
|
17
|
-
--rt-color-neutral-15: #
|
|
19
|
+
--rt-color-neutral-15: #eee;
|
|
18
20
|
--rt-color-neutral-20: #e8e8e8;
|
|
19
21
|
--rt-color-neutral-25: #e0e0e0;
|
|
20
22
|
--rt-color-neutral-30: #d1d1d1;
|
|
21
|
-
--rt-color-neutral-35: #
|
|
23
|
+
--rt-color-neutral-35: #ccc;
|
|
22
24
|
--rt-color-neutral-40: #a3a3a3;
|
|
23
25
|
--rt-color-neutral-60: #747474;
|
|
24
26
|
--rt-color-neutral-80: #323033;
|
|
@@ -127,41 +129,59 @@
|
|
|
127
129
|
--rt-color-light-a80: rgba(255, 255, 255, 0.8);
|
|
128
130
|
--rt-color-dark-a90: rgba(24, 24, 24, 0.9);
|
|
129
131
|
--rt-color-light-a90: rgba(255, 255, 255, 0.9);
|
|
132
|
+
--rt-color-primary-20: var(--mat-sys-primary-container, #eaedfc);
|
|
133
|
+
--rt-color-primary-40: #b3ceef;
|
|
134
|
+
--rt-color-primary-60: var(--mat-sys-primary, #6d96e8);
|
|
135
|
+
--rt-color-primary-100: var(--mat-sys-primary, #4284d7);
|
|
136
|
+
--rt-color-info-20: #eaedfc;
|
|
137
|
+
--rt-color-info-80: #4285f4;
|
|
138
|
+
--rt-color-info-100: #4284d7;
|
|
139
|
+
--rt-color-success-10: #e5f8f4;
|
|
140
|
+
--rt-color-success-80: #21b18e;
|
|
141
|
+
--rt-color-success-100: #01af8d;
|
|
142
|
+
--rt-color-warning-10: #e8cbbf;
|
|
143
|
+
--rt-color-warning-80: #ee7a34;
|
|
144
|
+
--rt-color-warning-100: #ef7128;
|
|
145
|
+
--rt-color-danger-10: var(--mat-sys-error-container, #fdedee);
|
|
146
|
+
--rt-color-danger-60: #e88487;
|
|
147
|
+
--rt-color-danger-100: var(--mat-sys-error, #eb5055);
|
|
148
|
+
--rt-color-brand-20: var(--mat-sys-primary, #e8e8e8);
|
|
149
|
+
--rt-color-brand-100: var(--mat-sys-primary, #0d1c2b);
|
|
130
150
|
/* --- Tier 2: semantic --- */
|
|
131
|
-
--rt-bg-base-base: var(--mat-sys-surface, light-dark(#
|
|
132
|
-
--rt-bg-base-elevated: var(--mat-sys-surface-container, light-dark(#
|
|
151
|
+
--rt-bg-base-base: var(--mat-sys-surface, light-dark(#fff, #1c1b1e));
|
|
152
|
+
--rt-bg-base-elevated: var(--mat-sys-surface-container, light-dark(#fff, #2a292d));
|
|
133
153
|
--rt-bg-base-subtle: light-dark(#f5f6f8, #232226);
|
|
134
154
|
--rt-bg-base-hover: light-dark(#f3f3f3, rgba(255, 255, 255, 0.06));
|
|
135
|
-
--rt-bg-base-active: light-dark(#
|
|
155
|
+
--rt-bg-base-active: light-dark(#eee, rgba(255, 255, 255, 0.1));
|
|
136
156
|
--rt-bg-base-strong: light-dark(#e0e0e0, #3f3e43);
|
|
137
157
|
--rt-bg-base-emphasis: light-dark(#747474, #a3a3a3);
|
|
138
158
|
--rt-bg-base-emphasis-soft: light-dark(#a3a3a3, #747474);
|
|
139
159
|
--rt-bg-base-inverse: var(--mat-sys-inverse-surface, light-dark(#181818, #f3f3f3));
|
|
140
|
-
--rt-bg-base-inverse-soft: light-dark(#323033, #
|
|
160
|
+
--rt-bg-base-inverse-soft: light-dark(#323033, #eee);
|
|
141
161
|
--rt-bg-base-overlay: light-dark(rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.6));
|
|
142
|
-
--rt-bg-static-light: #
|
|
162
|
+
--rt-bg-static-light: #fff;
|
|
143
163
|
--rt-bg-static-dark: #181818;
|
|
144
164
|
--rt-bg-static-none: transparent;
|
|
145
|
-
--rt-bg-accent-primary-subtle: var(--
|
|
146
|
-
--rt-bg-accent-primary-solid: var(--
|
|
147
|
-
--rt-bg-accent-primary-hover: light-dark(color-mix(in srgb,
|
|
148
|
-
--rt-bg-accent-primary-disabled: color-mix(in srgb,
|
|
149
|
-
--rt-bg-accent-success-subtle: light-dark(
|
|
150
|
-
--rt-bg-accent-success-solid:
|
|
151
|
-
--rt-bg-accent-success-hover: light-dark(color-mix(in srgb,
|
|
152
|
-
--rt-bg-accent-success-disabled: color-mix(in srgb,
|
|
153
|
-
--rt-bg-accent-warning-subtle: light-dark(
|
|
154
|
-
--rt-bg-accent-warning-solid:
|
|
155
|
-
--rt-bg-accent-warning-hover: light-dark(color-mix(in srgb,
|
|
156
|
-
--rt-bg-accent-warning-disabled: color-mix(in srgb,
|
|
157
|
-
--rt-bg-accent-danger-subtle: var(--
|
|
158
|
-
--rt-bg-accent-danger-solid: var(--
|
|
159
|
-
--rt-bg-accent-danger-hover: light-dark(color-mix(in srgb,
|
|
160
|
-
--rt-bg-accent-danger-disabled: color-mix(in srgb,
|
|
161
|
-
--rt-bg-accent-info-subtle: light-dark(
|
|
162
|
-
--rt-bg-accent-info-solid:
|
|
163
|
-
--rt-bg-accent-info-hover: light-dark(color-mix(in srgb,
|
|
164
|
-
--rt-bg-accent-info-disabled: color-mix(in srgb,
|
|
165
|
+
--rt-bg-accent-primary-subtle: light-dark(var(--rt-color-primary-20), color-mix(in srgb, var(--rt-color-primary-100) 18%, #1c1b1e));
|
|
166
|
+
--rt-bg-accent-primary-solid: var(--rt-color-primary-100);
|
|
167
|
+
--rt-bg-accent-primary-hover: light-dark(color-mix(in srgb, var(--rt-color-primary-100) 90%, #000), color-mix(in srgb, var(--rt-color-primary-100) 90%, #fff));
|
|
168
|
+
--rt-bg-accent-primary-disabled: color-mix(in srgb, var(--rt-color-primary-100) 38%, transparent);
|
|
169
|
+
--rt-bg-accent-success-subtle: light-dark(var(--rt-color-success-10), color-mix(in srgb, var(--rt-color-success-100) 18%, #1c1b1e));
|
|
170
|
+
--rt-bg-accent-success-solid: var(--rt-color-success-80);
|
|
171
|
+
--rt-bg-accent-success-hover: light-dark(color-mix(in srgb, var(--rt-color-success-80) 90%, #000), color-mix(in srgb, var(--rt-color-success-80) 90%, #fff));
|
|
172
|
+
--rt-bg-accent-success-disabled: color-mix(in srgb, var(--rt-color-success-80) 38%, transparent);
|
|
173
|
+
--rt-bg-accent-warning-subtle: light-dark(var(--rt-color-warning-10), color-mix(in srgb, var(--rt-color-warning-100) 18%, #1c1b1e));
|
|
174
|
+
--rt-bg-accent-warning-solid: var(--rt-color-warning-80);
|
|
175
|
+
--rt-bg-accent-warning-hover: light-dark(color-mix(in srgb, var(--rt-color-warning-80) 90%, #000), color-mix(in srgb, var(--rt-color-warning-80) 90%, #fff));
|
|
176
|
+
--rt-bg-accent-warning-disabled: color-mix(in srgb, var(--rt-color-warning-80) 38%, transparent);
|
|
177
|
+
--rt-bg-accent-danger-subtle: light-dark(var(--rt-color-danger-10), color-mix(in srgb, var(--rt-color-danger-100) 18%, #1c1b1e));
|
|
178
|
+
--rt-bg-accent-danger-solid: var(--rt-color-danger-100);
|
|
179
|
+
--rt-bg-accent-danger-hover: light-dark(color-mix(in srgb, var(--rt-color-danger-100) 90%, #000), color-mix(in srgb, var(--rt-color-danger-100) 90%, #fff));
|
|
180
|
+
--rt-bg-accent-danger-disabled: color-mix(in srgb, var(--rt-color-danger-100) 38%, transparent);
|
|
181
|
+
--rt-bg-accent-info-subtle: light-dark(var(--rt-color-info-20), color-mix(in srgb, var(--rt-color-info-100) 18%, #1c1b1e));
|
|
182
|
+
--rt-bg-accent-info-solid: var(--rt-color-info-100);
|
|
183
|
+
--rt-bg-accent-info-hover: light-dark(color-mix(in srgb, var(--rt-color-info-100) 90%, #000), color-mix(in srgb, var(--rt-color-info-100) 90%, #fff));
|
|
184
|
+
--rt-bg-accent-info-disabled: color-mix(in srgb, var(--rt-color-info-100) 38%, transparent);
|
|
165
185
|
--rt-bg-accent-neutral-subtle: light-dark(#f3f3f3, rgba(255, 255, 255, 0.06));
|
|
166
186
|
--rt-bg-accent-neutral-solid: light-dark(#747474, #a3a3a3);
|
|
167
187
|
--rt-bg-accent-neutral-hover: light-dark(#a3a3a3, #747474);
|
|
@@ -171,48 +191,48 @@
|
|
|
171
191
|
--rt-text-base-soft: light-dark(#323033, #e0e0e0);
|
|
172
192
|
--rt-text-base-secondary: var(--mat-sys-on-surface-variant, light-dark(#747474, #a3a3a3));
|
|
173
193
|
--rt-text-base-disabled: light-dark(#a3a3a3, #747474);
|
|
174
|
-
--rt-text-base-inverse: var(--mat-sys-inverse-on-surface, light-dark(#
|
|
175
|
-
--rt-text-static-light: #
|
|
194
|
+
--rt-text-base-inverse: var(--mat-sys-inverse-on-surface, light-dark(#fff, #181818));
|
|
195
|
+
--rt-text-static-light: #fff;
|
|
176
196
|
--rt-text-static-dark: #181818;
|
|
177
|
-
--rt-text-accent-brand: var(--
|
|
178
|
-
--rt-text-accent-primary: var(--
|
|
179
|
-
--rt-text-accent-success:
|
|
180
|
-
--rt-text-accent-success-soft:
|
|
181
|
-
--rt-text-accent-warning:
|
|
182
|
-
--rt-text-accent-warning-soft:
|
|
183
|
-
--rt-text-accent-danger: var(--
|
|
184
|
-
--rt-text-accent-danger-soft:
|
|
185
|
-
--rt-text-accent-info:
|
|
186
|
-
--rt-text-accent-info-soft:
|
|
197
|
+
--rt-text-accent-brand: light-dark(var(--rt-color-brand-100), var(--rt-color-brand-20));
|
|
198
|
+
--rt-text-accent-primary: light-dark(var(--rt-color-primary-100), var(--rt-color-primary-60));
|
|
199
|
+
--rt-text-accent-success: var(--rt-color-success-100);
|
|
200
|
+
--rt-text-accent-success-soft: var(--rt-color-success-80);
|
|
201
|
+
--rt-text-accent-warning: var(--rt-color-warning-100);
|
|
202
|
+
--rt-text-accent-warning-soft: var(--rt-color-warning-80);
|
|
203
|
+
--rt-text-accent-danger: var(--rt-color-danger-100);
|
|
204
|
+
--rt-text-accent-danger-soft: var(--rt-color-danger-60);
|
|
205
|
+
--rt-text-accent-info: var(--rt-color-info-100);
|
|
206
|
+
--rt-text-accent-info-soft: var(--rt-color-info-80);
|
|
187
207
|
--rt-icon-neutral-default: light-dark(#323033, #e0e0e0);
|
|
188
208
|
--rt-icon-neutral-soft: light-dark(#747474, #a3a3a3);
|
|
189
209
|
--rt-icon-neutral-disabled: light-dark(#a3a3a3, #747474);
|
|
190
|
-
--rt-icon-neutral-inverse: light-dark(#
|
|
191
|
-
--rt-icon-static-light: #
|
|
210
|
+
--rt-icon-neutral-inverse: light-dark(#fff, #181818);
|
|
211
|
+
--rt-icon-static-light: #fff;
|
|
192
212
|
--rt-icon-static-dark: #181818;
|
|
193
|
-
--rt-icon-accent-brand: var(--
|
|
194
|
-
--rt-icon-accent-primary: var(--
|
|
195
|
-
--rt-icon-accent-success:
|
|
196
|
-
--rt-icon-accent-warning:
|
|
197
|
-
--rt-icon-accent-danger: var(--
|
|
198
|
-
--rt-icon-accent-info:
|
|
213
|
+
--rt-icon-accent-brand: light-dark(var(--rt-color-brand-100), var(--rt-color-brand-20));
|
|
214
|
+
--rt-icon-accent-primary: light-dark(var(--rt-color-primary-100), var(--rt-color-primary-60));
|
|
215
|
+
--rt-icon-accent-success: var(--rt-color-success-100);
|
|
216
|
+
--rt-icon-accent-warning: var(--rt-color-warning-100);
|
|
217
|
+
--rt-icon-accent-danger: var(--rt-color-danger-100);
|
|
218
|
+
--rt-icon-accent-info: var(--rt-color-info-100);
|
|
199
219
|
--rt-border-neutral-subtle: light-dark(#e8e8e8, #2e2d31);
|
|
200
220
|
--rt-border-neutral-default: var(--mat-sys-outline-variant, light-dark(#e0e0e0, #3f3e43));
|
|
201
221
|
--rt-border-neutral-medium: light-dark(#d1d1d1, #4a494e);
|
|
202
|
-
--rt-border-neutral-divider: light-dark(#
|
|
222
|
+
--rt-border-neutral-divider: light-dark(#ccc, #4a494e);
|
|
203
223
|
--rt-border-neutral-strong: var(--mat-sys-outline, light-dark(#a3a3a3, #5c5b60));
|
|
204
224
|
--rt-border-neutral-emphasis: light-dark(#747474, #a3a3a3);
|
|
205
|
-
--rt-border-accent-primary: var(--
|
|
206
|
-
--rt-border-accent-success:
|
|
207
|
-
--rt-border-accent-warning:
|
|
208
|
-
--rt-border-accent-danger: var(--
|
|
209
|
-
--rt-border-accent-danger-soft:
|
|
210
|
-
--rt-border-accent-info:
|
|
211
|
-
--rt-border-focus: light-dark(
|
|
225
|
+
--rt-border-accent-primary: light-dark(var(--rt-color-primary-100), var(--rt-color-primary-60));
|
|
226
|
+
--rt-border-accent-success: var(--rt-color-success-100);
|
|
227
|
+
--rt-border-accent-warning: var(--rt-color-warning-100);
|
|
228
|
+
--rt-border-accent-danger: var(--rt-color-danger-100);
|
|
229
|
+
--rt-border-accent-danger-soft: var(--rt-color-danger-60);
|
|
230
|
+
--rt-border-accent-info: var(--rt-color-info-100);
|
|
231
|
+
--rt-border-focus: light-dark(var(--rt-color-primary-40), var(--rt-color-primary-60));
|
|
212
232
|
--rt-control-track: light-dark(#e8e8e8, #4a494e);
|
|
213
|
-
--rt-control-thumb: light-dark(#
|
|
233
|
+
--rt-control-thumb: light-dark(#fff, #eee);
|
|
214
234
|
--rt-control-checked: light-dark(#323033, #e0e0e0);
|
|
215
|
-
--rt-scrollbar-thumb: light-dark(#
|
|
235
|
+
--rt-scrollbar-thumb: light-dark(#ccc, #4a494e);
|
|
216
236
|
--rt-scrollbar-thumb-hover: light-dark(#a3a3a3, #5c5b60);
|
|
217
237
|
--rt-shadow-color: light-dark(#747474, rgba(0, 0, 0, 0.6));
|
|
218
238
|
/* --- Foundations --- */
|
|
@@ -263,48 +283,6 @@
|
|
|
263
283
|
--rt-breakpoint-md: 960px;
|
|
264
284
|
--rt-breakpoint-lg: 1280px;
|
|
265
285
|
--rt-breakpoint-xl: 1920px;
|
|
266
|
-
/* --- Deprecated aliases (legacy --clr-*; remove after consumers migrate) --- */
|
|
267
|
-
--clr-white-100: var(--rt-color-neutral-0);
|
|
268
|
-
--clr-gray-5: var(--rt-color-neutral-5);
|
|
269
|
-
--clr-gray-10: var(--rt-color-neutral-20);
|
|
270
|
-
--clr-gray-15: var(--rt-color-neutral-30);
|
|
271
|
-
--clr-gray-20: var(--rt-color-neutral-35);
|
|
272
|
-
--clr-black-10: var(--rt-color-neutral-10);
|
|
273
|
-
--clr-black-15: var(--rt-color-neutral-15);
|
|
274
|
-
--clr-black-20: var(--rt-color-neutral-25);
|
|
275
|
-
--clr-black-30: #b2cbca;
|
|
276
|
-
--clr-black-40: var(--rt-color-neutral-40);
|
|
277
|
-
--clr-black-60: var(--rt-color-neutral-60);
|
|
278
|
-
--clr-black-80: var(--rt-color-neutral-80);
|
|
279
|
-
--clr-black-100: var(--rt-color-neutral-100);
|
|
280
|
-
--clr-red-10: var(--rt-color-red-10);
|
|
281
|
-
--clr-red-20: var(--rt-color-red-20);
|
|
282
|
-
--clr-red-40: var(--rt-color-red-40);
|
|
283
|
-
--clr-red-60: var(--rt-color-red-60);
|
|
284
|
-
--clr-red-80: var(--rt-color-red-80);
|
|
285
|
-
--clr-red-100: var(--rt-color-red-100);
|
|
286
|
-
--clr-orange-5: var(--rt-color-orange-5);
|
|
287
|
-
--clr-orange-10: var(--rt-color-orange-10);
|
|
288
|
-
--clr-orange-20: var(--rt-color-orange-20);
|
|
289
|
-
--clr-orange-40: var(--rt-color-orange-40);
|
|
290
|
-
--clr-orange-60: var(--rt-color-orange-60);
|
|
291
|
-
--clr-orange-70: var(--rt-color-orange-70);
|
|
292
|
-
--clr-orange-80: var(--rt-color-orange-80);
|
|
293
|
-
--clr-orange-100: var(--rt-color-orange-100);
|
|
294
|
-
--clr-blue-20: var(--rt-color-blue-20);
|
|
295
|
-
--clr-blue-40: var(--rt-color-blue-40);
|
|
296
|
-
--clr-blue-60: var(--rt-color-blue-60);
|
|
297
|
-
--clr-blue-80: var(--rt-color-blue-80);
|
|
298
|
-
--clr-blue-100: var(--rt-color-blue-100);
|
|
299
|
-
--clr-green-10: var(--rt-color-green-10);
|
|
300
|
-
--clr-green-20: var(--rt-color-green-20);
|
|
301
|
-
--clr-green-40: var(--rt-color-green-40);
|
|
302
|
-
--clr-green-60: var(--rt-color-green-60);
|
|
303
|
-
--clr-green-80: var(--rt-color-green-80);
|
|
304
|
-
--clr-green-100: var(--rt-color-green-100);
|
|
305
|
-
--clr-txt: var(--rt-text-base-primary);
|
|
306
|
-
--clr-base-accent: var(--rt-color-brand);
|
|
307
|
-
--clr-white-rgb: 255, 255, 255;
|
|
308
286
|
}
|
|
309
287
|
|
|
310
288
|
/* Theme switching: global class + nested local contexts (GMT data-theme analogue) */
|
|
@@ -9,10 +9,11 @@ import { MatDrawer } from '@angular/material/sidenav';
|
|
|
9
9
|
import { OverlayRef, ComponentType, ConnectedPosition, CdkOverlayOrigin } from '@angular/cdk/overlay';
|
|
10
10
|
import { ComponentType as ComponentType$1 } from '@angular/cdk/portal';
|
|
11
11
|
import { HttpErrorResponse } from '@angular/common/http';
|
|
12
|
-
import { MatFormFieldAppearance } from '@angular/material/form-field';
|
|
13
|
-
import { PageModel, SortModel, FilterOperatorType, FilterModel, FILTER_OPERATOR_TYPE_ENUM, POSITION_ENUM, OSTypes } from '@rt-tools/utils';
|
|
14
12
|
import { BooleanInput, NumberInput } from '@angular/cdk/coercion';
|
|
13
|
+
import * as i1 from '@angular/material/tooltip';
|
|
15
14
|
import { TooltipPosition } from '@angular/material/tooltip';
|
|
15
|
+
import { MatFormFieldAppearance } from '@angular/material/form-field';
|
|
16
|
+
import { PageModel, SortModel, FilterOperatorType, FilterModel, FILTER_OPERATOR_TYPE_ENUM, POSITION_ENUM, OSTypes } from '@rt-tools/utils';
|
|
16
17
|
import { AnimationPlayer, AnimationTriggerMetadata } from '@angular/animations';
|
|
17
18
|
import { MatSnackBarConfig, MatSnackBarRef } from '@angular/material/snack-bar';
|
|
18
19
|
import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
@@ -282,39 +283,52 @@ declare class RtuiAsideContainerComponent {
|
|
|
282
283
|
static ɵcmp: i0.ɵɵComponentDeclaration<RtuiAsideContainerComponent, "rtui-aside-container", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; "isMobile": { "alias": "isMobile"; "required": true; "isSignal": true; }; "isSubmitButtonDisabled": { "alias": "isSubmitButtonDisabled"; "required": true; "isSignal": true; }; "isFooterShown": { "alias": "isFooterShown"; "required": false; "isSignal": true; }; "pending": { "alias": "pending"; "required": false; "isSignal": true; }; "isRequestErrorShown": { "alias": "isRequestErrorShown"; "required": false; "isSignal": true; }; "headerActionsButtons": { "alias": "headerActionsButtons"; "required": false; "isSignal": true; }; "requestError": { "alias": "requestError"; "required": false; "isSignal": true; }; "submitButtonTitle": { "alias": "submitButtonTitle"; "required": false; "isSignal": true; }; "cancelButtonTitle": { "alias": "cancelButtonTitle"; "required": false; "isSignal": true; }; "submitButtonTooltip": { "alias": "submitButtonTooltip"; "required": false; "isSignal": true; }; }, { "submitAction": "submitAction"; "cancelAction": "cancelAction"; "headerAction": "headerAction"; }, ["headerTpl"], ["*"], true, never>;
|
|
283
284
|
}
|
|
284
285
|
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
286
|
+
type RtuiIconSizeType = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl' | '3xl';
|
|
287
|
+
type RtuiIconThemeType = 'inherit' | 'primary' | 'primary-strong' | 'neutral' | 'disabled' | 'muted' | 'white' | 'danger' | 'success';
|
|
288
|
+
declare class RtuiIconComponent {
|
|
289
|
+
#private;
|
|
290
|
+
protected readonly fontLoaded: Signal<boolean>;
|
|
291
|
+
protected readonly hostClasses: Signal<string>;
|
|
292
|
+
readonly size: InputSignal<RtuiIconSizeType>;
|
|
293
|
+
readonly theme: InputSignal<RtuiIconThemeType>;
|
|
294
|
+
readonly glyph: InputSignalWithTransform<string, unknown>;
|
|
295
|
+
readonly outlined: InputSignalWithTransform<boolean, BooleanInput>;
|
|
296
|
+
readonly rotate: InputSignalWithTransform<boolean, BooleanInput>;
|
|
297
|
+
constructor();
|
|
298
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RtuiIconComponent, never>;
|
|
299
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RtuiIconComponent, "rtui-icon", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; "theme": { "alias": "theme"; "required": false; "isSignal": true; }; "glyph": { "alias": "glyph"; "required": false; "isSignal": true; }; "outlined": { "alias": "outlined"; "required": false; "isSignal": true; }; "rotate": { "alias": "rotate"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, [{ directive: typeof i1.MatTooltip; inputs: { "matTooltip": "tooltip"; "matTooltipPosition": "tooltipPosition"; "matTooltipDisabled": "tooltipDisabled"; }; outputs: {}; }]>;
|
|
289
300
|
}
|
|
290
301
|
|
|
291
|
-
declare
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
type
|
|
298
|
-
declare enum BUTTON_COLOR {
|
|
299
|
-
ACCENT = "accent",
|
|
300
|
-
SUCCESS = "success",
|
|
301
|
-
SECONDARY = "secondary",
|
|
302
|
-
ERROR = "error",
|
|
303
|
-
WARNING = "warning"
|
|
304
|
-
}
|
|
305
|
-
type ButtonColorType = BUTTON_COLOR.ACCENT | BUTTON_COLOR.SUCCESS | BUTTON_COLOR.ERROR | BUTTON_COLOR.WARNING | BUTTON_COLOR.SECONDARY;
|
|
306
|
-
declare enum BUTTON_APPEARANCE {
|
|
307
|
-
OUTLINE = "outline",
|
|
308
|
-
LIGHT = "light"
|
|
302
|
+
declare namespace IRtuiButton {
|
|
303
|
+
type Type = 'icon' | 'fab' | 'pill';
|
|
304
|
+
type Variant = 'default' | 'primary' | 'danger' | 'success' | 'warning' | 'accent';
|
|
305
|
+
type Size = 'xs' | 'sm' | 'md' | 'lg';
|
|
306
|
+
type Radius = 'none' | 'sm' | 'md' | 'lg' | 'full';
|
|
307
|
+
type Appearance = 'solid' | 'outline' | 'light' | 'text';
|
|
308
|
+
type IconPosition = 'start' | 'end';
|
|
309
309
|
}
|
|
310
|
-
type ButtonAppearanceType = BUTTON_APPEARANCE.OUTLINE | BUTTON_APPEARANCE.LIGHT;
|
|
311
310
|
declare class RtuiButtonComponent {
|
|
312
|
-
readonly
|
|
313
|
-
readonly
|
|
314
|
-
readonly
|
|
315
|
-
readonly
|
|
311
|
+
protected readonly resolvedIconSize: Signal<RtuiIconSizeType>;
|
|
312
|
+
protected readonly spinnerSize: Signal<number>;
|
|
313
|
+
protected readonly modifiers: Signal<Record<string, boolean>>;
|
|
314
|
+
readonly type: InputSignal<IRtuiButton.Type>;
|
|
315
|
+
readonly variant: InputSignal<IRtuiButton.Variant>;
|
|
316
|
+
readonly appearance: InputSignal<IRtuiButton.Appearance | undefined>;
|
|
317
|
+
readonly size: InputSignal<IRtuiButton.Size>;
|
|
318
|
+
readonly radius: InputSignal<IRtuiButton.Radius>;
|
|
319
|
+
readonly icon: InputSignalWithTransform<string, unknown>;
|
|
320
|
+
readonly iconPosition: InputSignal<IRtuiButton.IconPosition>;
|
|
321
|
+
readonly iconSize: InputSignal<RtuiIconSizeType | undefined>;
|
|
322
|
+
readonly text: InputSignalWithTransform<string, unknown>;
|
|
323
|
+
readonly loading: InputSignalWithTransform<boolean, BooleanInput>;
|
|
324
|
+
readonly disabled: InputSignalWithTransform<boolean, BooleanInput>;
|
|
325
|
+
readonly outlined: InputSignalWithTransform<boolean, BooleanInput>;
|
|
326
|
+
readonly fullWidth: InputSignalWithTransform<boolean, BooleanInput>;
|
|
327
|
+
readonly spinnerDiameter: InputSignal<number | undefined>;
|
|
328
|
+
readonly clicked: OutputEmitterRef<void>;
|
|
329
|
+
protected onClick(): void;
|
|
316
330
|
static ɵfac: i0.ɵɵFactoryDeclaration<RtuiButtonComponent, never>;
|
|
317
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<RtuiButtonComponent, "
|
|
331
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RtuiButtonComponent, "rtui-button", never, { "type": { "alias": "type"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "appearance": { "alias": "appearance"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "radius": { "alias": "radius"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "iconPosition": { "alias": "iconPosition"; "required": false; "isSignal": true; }; "iconSize": { "alias": "iconSize"; "required": false; "isSignal": true; }; "text": { "alias": "text"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "outlined": { "alias": "outlined"; "required": false; "isSignal": true; }; "fullWidth": { "alias": "fullWidth"; "required": false; "isSignal": true; }; "spinnerDiameter": { "alias": "spinnerDiameter"; "required": false; "isSignal": true; }; }, { "clicked": "clicked"; }, never, ["*"], true, [{ directive: typeof i1.MatTooltip; inputs: { "matTooltip": "tooltip"; "matTooltipPosition": "tooltipPosition"; "matTooltipDisabled": "tooltipDisabled"; "matTooltipClass": "tooltipClass"; }; outputs: {}; }]>;
|
|
318
332
|
}
|
|
319
333
|
|
|
320
334
|
declare class RtuiMultiButtonComponent {
|
|
@@ -1600,23 +1614,71 @@ declare const RT_THEME_STORAGE_KEY: string;
|
|
|
1600
1614
|
declare const RT_DARK_CLASS: string;
|
|
1601
1615
|
declare const RT_THEME_AUTO_CLASS: string;
|
|
1602
1616
|
declare const RT_THEME_ATTRIBUTE: string;
|
|
1617
|
+
/**
|
|
1618
|
+
* Accent roles whose `--rt-color-{role}-{0..100}` indirection rows a custom
|
|
1619
|
+
* color scheme may override. The semantic accent tier
|
|
1620
|
+
* (`--rt-bg/text/icon/border-accent-*`) derives entirely from these rows.
|
|
1621
|
+
*/
|
|
1622
|
+
declare enum RT_ACCENT_ROLE_ENUM {
|
|
1623
|
+
PRIMARY = "primary",
|
|
1624
|
+
INFO = "info",
|
|
1625
|
+
SUCCESS = "success",
|
|
1626
|
+
WARNING = "warning",
|
|
1627
|
+
DANGER = "danger",
|
|
1628
|
+
BRAND = "brand"
|
|
1629
|
+
}
|
|
1630
|
+
type RtAccentRole = `${RT_ACCENT_ROLE_ENUM}`;
|
|
1631
|
+
/**
|
|
1632
|
+
* A brand palette: per accent role, a tonal ramp mapping tone step (0–100)
|
|
1633
|
+
* to a CSS color. One ramp serves both light and dark (the mode picks the tone).
|
|
1634
|
+
* Partial ramps are allowed — unset tones keep the rt-tools defaults.
|
|
1635
|
+
*
|
|
1636
|
+
* @example
|
|
1637
|
+
* const teal: RtColorSchemeRamp = {
|
|
1638
|
+
* primary: { 20: '#b3e3e1', 40: '#5cb8b5', 60: '#1a9d99', 100: '#008582' },
|
|
1639
|
+
* brand: { 20: '#e8e8e8', 100: '#008582' },
|
|
1640
|
+
* };
|
|
1641
|
+
*/
|
|
1642
|
+
type RtColorSchemeRamp = Partial<Record<RtAccentRole, Record<number, string>>>;
|
|
1643
|
+
/** `'default'`/`null` clears the active scheme (back to the rt-tools palette). */
|
|
1644
|
+
declare const RT_DEFAULT_SCHEME: string;
|
|
1645
|
+
declare const RT_COLOR_SCHEME_STORAGE_KEY: string;
|
|
1646
|
+
declare const RT_SCHEME_ATTRIBUTE: string;
|
|
1603
1647
|
|
|
1604
1648
|
/**
|
|
1605
|
-
* Global theme switcher for the rt-tools design tokens.
|
|
1649
|
+
* Global theme + color-scheme switcher for the rt-tools design tokens.
|
|
1606
1650
|
*
|
|
1607
|
-
*
|
|
1608
|
-
* (`--rt-*`) adapt through `color-scheme` + `light-dark()`.
|
|
1609
|
-
*
|
|
1651
|
+
* **Theme** (`light`/`dark`/`auto`): applies `.rt-dark` / `.rt-theme-auto` to
|
|
1652
|
+
* `<html>`; semantic tokens (`--rt-*`) adapt through `color-scheme` + `light-dark()`.
|
|
1653
|
+
* Persisted to localStorage (`rt-theme`). `auto` follows the OS preference.
|
|
1610
1654
|
*
|
|
1611
|
-
*
|
|
1655
|
+
* **Color scheme** (brand palette): toggles `data-rt-scheme="<name>"` on `<html>`,
|
|
1656
|
+
* which activates a `[data-rt-scheme]` block (emitted by the `rt.color-scheme` Sass
|
|
1657
|
+
* mixin or injected at runtime via {@link registerColorScheme}). It overrides only
|
|
1658
|
+
* the accent-role rows `--rt-color-{role}-{N}`, so the whole accent layer recolors
|
|
1659
|
+
* while semantic token names stay stable. Orthogonal to light/dark; persisted to
|
|
1660
|
+
* localStorage (`rt-color-scheme`).
|
|
1612
1661
|
*/
|
|
1613
1662
|
declare class RtThemeService {
|
|
1614
1663
|
#private;
|
|
1615
1664
|
readonly theme: Signal<RtThemeType>;
|
|
1665
|
+
readonly colorScheme: Signal<string | null>;
|
|
1616
1666
|
constructor();
|
|
1617
1667
|
setTheme(theme: RtThemeType): void;
|
|
1618
1668
|
/** Toggles between light and dark (auto resolves to its opposite visual state). */
|
|
1619
1669
|
toggle(): void;
|
|
1670
|
+
/**
|
|
1671
|
+
* Activates a registered color scheme by name, or clears it with `null`/`'default'`.
|
|
1672
|
+
* Orthogonal to the light/dark theme; persisted to localStorage.
|
|
1673
|
+
*/
|
|
1674
|
+
setColorScheme(name: string | null): void;
|
|
1675
|
+
/**
|
|
1676
|
+
* Injects (or replaces) a color scheme's `[data-rt-scheme]` block at runtime —
|
|
1677
|
+
* the JS twin of the `rt.color-scheme` Sass mixin. Browser-only (no-op on server;
|
|
1678
|
+
* for SSR/brand-critical schemes prefer the Sass path). Does not activate the
|
|
1679
|
+
* scheme — call {@link setColorScheme} afterwards.
|
|
1680
|
+
*/
|
|
1681
|
+
registerColorScheme(name: string, ramp: RtColorSchemeRamp): void;
|
|
1620
1682
|
static ɵfac: i0.ɵɵFactoryDeclaration<RtThemeService, never>;
|
|
1621
1683
|
static ɵprov: i0.ɵɵInjectableDeclaration<RtThemeService>;
|
|
1622
1684
|
}
|
|
@@ -1641,5 +1703,5 @@ declare class RtThemeDirective {
|
|
|
1641
1703
|
static ɵdir: i0.ɵɵDirectiveDeclaration<RtThemeDirective, "[rtTheme]", never, { "rtTheme": { "alias": "rtTheme"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1642
1704
|
}
|
|
1643
1705
|
|
|
1644
|
-
export { ASIDE_BUTTONS_ENUM, ASIDE_REF, AsideRef,
|
|
1645
|
-
export type { AsideButtonsType, AsidePositions,
|
|
1706
|
+
export { ASIDE_BUTTONS_ENUM, ASIDE_REF, AsideRef, DEFAULT_PAGE_MODEL, DEFAULT_PAGE_SIZE, IAside, IModal, INFO_BADGE_SIZE_ENUM, INFO_BADGE_TYPE_ENUM, IRtActionBar, IRtSnackBar, IRtuiButton, ISideMenu, ITable, MODAL_WINDOW_SIZE_ENUM, RTUI_TABLE_COMPONENT_TOKEN, RTUI_TABLE_STOP_ROW_CLICK_ATTRIBUTE, RT_ACCENT_ROLE_ENUM, RT_COLOR_SCHEME_STORAGE_KEY, RT_DARK_CLASS, RT_DEFAULT_SCHEME, RT_SCHEME_ATTRIBUTE, RT_THEME_ATTRIBUTE, RT_THEME_AUTO_CLASS, RT_THEME_ENUM, RT_THEME_STORAGE_KEY, RtActionBarService, RtAsideService, RtDynamicListSelectorsDirective, RtModalService, RtPopoverDirective, RtSnackBarService, RtTableConfigService, RtTableSelectorsDirective, RtThemeDirective, RtThemeService, RtuiActionBarComponent, RtuiActionBarContainerComponent, RtuiAsideContainerComponent, RtuiAsideContainerHeaderDirective, RtuiButtonComponent, RtuiClearButtonComponent, RtuiCustomTableCellsDirective, RtuiDynamicInputAdditionalControlDirective, RtuiDynamicInputComponent, RtuiDynamicListComponent, RtuiDynamicListCustomTableCellsDirective, RtuiDynamicListRowActionsDirective, RtuiDynamicListRowAdditionalActionsDirective, RtuiDynamicListToolbarActionsDirective, RtuiDynamicListToolbarSelectorsDirective, RtuiDynamicSelectorAdditionalControlDirective, RtuiDynamicSelectorComponent, RtuiDynamicSelectorItemAdditionalControlDirective, RtuiDynamicSelectorItemTitleDirective, RtuiDynamicSelectorItemTitleProjectionDirective, RtuiDynamicSelectorListActionsComponent, RtuiDynamicSelectorPlaceholderComponent, RtuiDynamicSelectorSelectedListComponent, RtuiFileUploadComponent, RtuiHeaderCenterDirective, RtuiHeaderComponent, RtuiHeaderLeftDirective, RtuiHeaderRightDirective, RtuiIconComponent, RtuiImageUploadComponent, RtuiInfoBadgeComponent, RtuiModalComponent, RtuiMultiButtonComponent, RtuiMultiSelectorPopupComponent, RtuiPaginationComponent, RtuiScrollableContainerComponent, RtuiScrollableContainerContentDirective, RtuiScrollableContainerFooterDirective, RtuiScrollableContainerHeaderDirective, RtuiSideMenuComponent, RtuiSideMenuFooterDirective, RtuiSideMenuHeaderDirective, RtuiSnackBarComponent, RtuiSpinnerComponent, RtuiStopTableRowClickDirective, RtuiTableAdditionalRowActionsDirective, RtuiTableComponent, RtuiTableRowActionsDirective, RtuiTableRowClickDirective, RtuiToggleComponent, RtuiToolbarCenterDirective, RtuiToolbarComponent, RtuiToolbarLeftDirective, RtuiToolbarRightDirective, TABLE_COLUMN_FILTER_TYPES_ENUM, TABLE_COLUMN_TYPES_ENUM, TEXT_CELL_COLOR_ENUM, TOGGLE_SIZE_TYPE_ENUM, darkenHexColor, ddServices, getColorBasedOnBackground, progressDecreaseAnimation, progressIncreaseAnimation, provideRtUi };
|
|
1707
|
+
export type { AsideButtonsType, AsidePositions, IImageUploadFormat, IInfoBadgeSizeType, IRtuiTable, Icon, IconSideType, InfoBadgeType, MenuItemTrigger, ModalWindowSizeType, NameValueType, RtAccentRole, RtColorSchemeRamp, RtThemeType, RtuiIconSizeType, RtuiIconThemeType, Select, ToggleSizeType };
|
|
Binary file
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
@use '../../../../styles/base/mixin' as mixins;
|
|
2
|
-
|
|
3
|
-
$round-icon-button: (
|
|
4
|
-
host: (
|
|
5
|
-
size: 1.5rem,
|
|
6
|
-
padding: 0.25rem,
|
|
7
|
-
z-index: 1,
|
|
8
|
-
background-color: var(--mat-list-active-indicator-color),
|
|
9
|
-
),
|
|
10
|
-
icon: (
|
|
11
|
-
size: 1.25rem,
|
|
12
|
-
),
|
|
13
|
-
);
|
|
14
|
-
|
|
15
|
-
:host {
|
|
16
|
-
@each $element, $elements in $round-icon-button {
|
|
17
|
-
@each $style-token, $value in $elements {
|
|
18
|
-
#{mixins.generateCssVar('round-icon-button', #{$element}, #{$style-token})}: #{$value};
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.round-icon-button {
|
|
23
|
-
display: flex;
|
|
24
|
-
justify-content: center;
|
|
25
|
-
align-items: center;
|
|
26
|
-
width: var(--rt-round-icon-button-host-size);
|
|
27
|
-
height: var(--rt-round-icon-button-host-size);
|
|
28
|
-
padding: var(--rt-round-icon-button-host-padding);
|
|
29
|
-
z-index: var(--rt-round-icon-button-host-z-index);
|
|
30
|
-
border-radius: 50%;
|
|
31
|
-
cursor: pointer;
|
|
32
|
-
|
|
33
|
-
&__icon {
|
|
34
|
-
width: var(--rt-round-icon-button-icon-size);
|
|
35
|
-
height: var(--rt-round-icon-button-icon-size);
|
|
36
|
-
font-size: var(--rt-round-icon-button-icon-size);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
&:hover {
|
|
40
|
-
background-color: var(--rt-round-icon-button-host-background-color);
|
|
41
|
-
box-shadow: var(--rt-button-box-shadow);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
}
|