@rt-tools/ui-kit 0.0.16 → 0.0.20
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 +310 -75
- package/fesm2022/rt-tools-ui-kit.mjs.map +1 -1
- package/package.json +1 -1
- package/rt-tools-ui-kit-0.0.20.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 +33 -40
- package/src/lib/ui-kit/aside/stories/aside-component/test-aside.component.scss +1 -1
- package/src/lib/ui-kit/buttons/icon-round/rtui-round-icon-button.component.scss +4 -4
- package/src/lib/ui-kit/buttons/multi-button/rtui-multi-button.component.scss +13 -13
- package/src/lib/ui-kit/checkbox/rtui-checkbox.component.scss +11 -11
- 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 +3 -3
- 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 +28 -28
- package/src/lib/ui-kit/dynamic-selectors/components/placeholder/rtui-dynamic-selector-placeholder.component.scss +6 -7
- 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 +8 -8
- 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/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 +9 -9
- package/src/lib/ui-kit/popover/rtui-popover-container.component.scss +2 -3
- package/src/lib/ui-kit/scrollable/scrollable-container.component.scss +7 -9
- package/src/lib/ui-kit/side-menu/menu/rtui-side-menu.component.scss +26 -26
- package/src/lib/ui-kit/side-menu/menu-sub-item/rtui-side-menu-sub-item.component.scss +15 -15
- 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 +13 -13
- 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 +12 -15
- package/src/lib/ui-kit/table/components/clear-search-button/rtui-clear-button.component.scss +8 -8
- package/src/lib/ui-kit/table/components/pagination-view/rtui-pagination.component.scss +20 -28
- package/src/lib/ui-kit/table/components/table-base-cell/table-base-cell.component.scss +9 -10
- 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 +21 -19
- package/src/lib/ui-kit/table/components/table-header-cell/table-header-cell.component.scss +8 -9
- 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 +23 -29
- package/src/lib/ui-kit/toggle/stories/component/test-toggle.component.scss +2 -2
- package/src/lib/ui-kit/toolbar/toolbar.component.scss +6 -11
- package/src/styles/TOKENS.md +121 -0
- package/src/styles/base/_base.scss +7 -15
- package/src/styles/base/_color-scheme.scss +86 -0
- package/src/styles/base/_mixin.scss +12 -15
- package/src/styles/base/_tokens.scss +426 -0
- package/src/styles/base/_variables.scss +7 -13
- package/src/styles/color-scheme.spec.ts +236 -0
- package/src/styles/components/_action-bar.scss +8 -8
- package/src/styles/components/_button.scss +63 -55
- package/src/styles/components/_checkbox.scss +5 -5
- package/src/styles/components/_dynamic-selectors.scss +13 -14
- package/src/styles/components/_form.scss +8 -13
- package/src/styles/components/_material-bridge.scss +30 -0
- package/src/styles/components/_rtui_button.scss +82 -82
- package/src/styles/components/_snackbar.scss +14 -14
- package/src/styles/components/_table.scss +34 -50
- package/src/styles/main.scss +5 -0
- package/src/styles/tokens.scss +5 -0
- package/styles/tokens.css +301 -0
- package/types/rt-tools-ui-kit.d.ts +101 -2
- package/rt-tools-ui-kit-0.0.16.tgz +0 -0
|
@@ -0,0 +1,301 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
/* Material Theme */
|
|
3
|
+
/* Base */
|
|
4
|
+
/* Device Definitions */
|
|
5
|
+
/* Fonts */
|
|
6
|
+
/* Button palette seeds (static — fed to sass color.scale() for hover/active states) */
|
|
7
|
+
/* Components */
|
|
8
|
+
/* ============================== Tier 1: primitives ============================== */
|
|
9
|
+
/* ------------------------------ Accent-role ramps (indirection layer) ------------------------------ */
|
|
10
|
+
/* ============================== Tier 2: semantic ============================== */
|
|
11
|
+
/* ============================== Foundations (mode-independent) ============================== */
|
|
12
|
+
/* ============================== Emission ============================== */
|
|
13
|
+
:root {
|
|
14
|
+
color-scheme: light;
|
|
15
|
+
/* --- Tier 1: primitives --- */
|
|
16
|
+
--rt-color-neutral-0: #fff;
|
|
17
|
+
--rt-color-neutral-5: #f5f6f8;
|
|
18
|
+
--rt-color-neutral-10: #f3f3f3;
|
|
19
|
+
--rt-color-neutral-15: #eee;
|
|
20
|
+
--rt-color-neutral-20: #e8e8e8;
|
|
21
|
+
--rt-color-neutral-25: #e0e0e0;
|
|
22
|
+
--rt-color-neutral-30: #d1d1d1;
|
|
23
|
+
--rt-color-neutral-35: #ccc;
|
|
24
|
+
--rt-color-neutral-40: #a3a3a3;
|
|
25
|
+
--rt-color-neutral-60: #747474;
|
|
26
|
+
--rt-color-neutral-80: #323033;
|
|
27
|
+
--rt-color-neutral-100: #181818;
|
|
28
|
+
--rt-color-red-10: #fdedee;
|
|
29
|
+
--rt-color-red-20: #efc0c1;
|
|
30
|
+
--rt-color-red-40: #f7b9bb;
|
|
31
|
+
--rt-color-red-60: #e88487;
|
|
32
|
+
--rt-color-red-80: #df6064;
|
|
33
|
+
--rt-color-red-100: #eb5055;
|
|
34
|
+
--rt-color-orange-5: #f6e4d9;
|
|
35
|
+
--rt-color-orange-10: #e8cbbf;
|
|
36
|
+
--rt-color-orange-20: #e1ba9e;
|
|
37
|
+
--rt-color-orange-40: #e4a985;
|
|
38
|
+
--rt-color-orange-60: #f1a05d;
|
|
39
|
+
--rt-color-orange-70: #f2994a;
|
|
40
|
+
--rt-color-orange-80: #ee7a34;
|
|
41
|
+
--rt-color-orange-100: #ef7128;
|
|
42
|
+
--rt-color-blue-20: #eaedfc;
|
|
43
|
+
--rt-color-blue-40: #b3ceef;
|
|
44
|
+
--rt-color-blue-60: #6d96e8;
|
|
45
|
+
--rt-color-blue-80: #4285f4;
|
|
46
|
+
--rt-color-blue-100: #4284d7;
|
|
47
|
+
--rt-color-green-10: #e5f8f4;
|
|
48
|
+
--rt-color-green-20: #baf4e0;
|
|
49
|
+
--rt-color-green-40: #5dbfbc;
|
|
50
|
+
--rt-color-green-60: #46c4c0;
|
|
51
|
+
--rt-color-green-80: #21b18e;
|
|
52
|
+
--rt-color-green-100: #01af8d;
|
|
53
|
+
--rt-color-red: #eb5055;
|
|
54
|
+
--rt-color-red-a5: color-mix(in srgb, #eb5055 5%, transparent);
|
|
55
|
+
--rt-color-red-a10: color-mix(in srgb, #eb5055 10%, transparent);
|
|
56
|
+
--rt-color-red-a20: color-mix(in srgb, #eb5055 20%, transparent);
|
|
57
|
+
--rt-color-red-a30: color-mix(in srgb, #eb5055 30%, transparent);
|
|
58
|
+
--rt-color-red-a40: color-mix(in srgb, #eb5055 40%, transparent);
|
|
59
|
+
--rt-color-red-a50: color-mix(in srgb, #eb5055 50%, transparent);
|
|
60
|
+
--rt-color-red-a60: color-mix(in srgb, #eb5055 60%, transparent);
|
|
61
|
+
--rt-color-red-a70: color-mix(in srgb, #eb5055 70%, transparent);
|
|
62
|
+
--rt-color-red-a80: color-mix(in srgb, #eb5055 80%, transparent);
|
|
63
|
+
--rt-color-red-a90: color-mix(in srgb, #eb5055 90%, transparent);
|
|
64
|
+
--rt-color-orange: #ef7128;
|
|
65
|
+
--rt-color-orange-a5: color-mix(in srgb, #ef7128 5%, transparent);
|
|
66
|
+
--rt-color-orange-a10: color-mix(in srgb, #ef7128 10%, transparent);
|
|
67
|
+
--rt-color-orange-a20: color-mix(in srgb, #ef7128 20%, transparent);
|
|
68
|
+
--rt-color-orange-a30: color-mix(in srgb, #ef7128 30%, transparent);
|
|
69
|
+
--rt-color-orange-a40: color-mix(in srgb, #ef7128 40%, transparent);
|
|
70
|
+
--rt-color-orange-a50: color-mix(in srgb, #ef7128 50%, transparent);
|
|
71
|
+
--rt-color-orange-a60: color-mix(in srgb, #ef7128 60%, transparent);
|
|
72
|
+
--rt-color-orange-a70: color-mix(in srgb, #ef7128 70%, transparent);
|
|
73
|
+
--rt-color-orange-a80: color-mix(in srgb, #ef7128 80%, transparent);
|
|
74
|
+
--rt-color-orange-a90: color-mix(in srgb, #ef7128 90%, transparent);
|
|
75
|
+
--rt-color-blue: #4284d7;
|
|
76
|
+
--rt-color-blue-a5: color-mix(in srgb, #4284d7 5%, transparent);
|
|
77
|
+
--rt-color-blue-a10: color-mix(in srgb, #4284d7 10%, transparent);
|
|
78
|
+
--rt-color-blue-a20: color-mix(in srgb, #4284d7 20%, transparent);
|
|
79
|
+
--rt-color-blue-a30: color-mix(in srgb, #4284d7 30%, transparent);
|
|
80
|
+
--rt-color-blue-a40: color-mix(in srgb, #4284d7 40%, transparent);
|
|
81
|
+
--rt-color-blue-a50: color-mix(in srgb, #4284d7 50%, transparent);
|
|
82
|
+
--rt-color-blue-a60: color-mix(in srgb, #4284d7 60%, transparent);
|
|
83
|
+
--rt-color-blue-a70: color-mix(in srgb, #4284d7 70%, transparent);
|
|
84
|
+
--rt-color-blue-a80: color-mix(in srgb, #4284d7 80%, transparent);
|
|
85
|
+
--rt-color-blue-a90: color-mix(in srgb, #4284d7 90%, transparent);
|
|
86
|
+
--rt-color-green: #01af8d;
|
|
87
|
+
--rt-color-green-a5: color-mix(in srgb, #01af8d 5%, transparent);
|
|
88
|
+
--rt-color-green-a10: color-mix(in srgb, #01af8d 10%, transparent);
|
|
89
|
+
--rt-color-green-a20: color-mix(in srgb, #01af8d 20%, transparent);
|
|
90
|
+
--rt-color-green-a30: color-mix(in srgb, #01af8d 30%, transparent);
|
|
91
|
+
--rt-color-green-a40: color-mix(in srgb, #01af8d 40%, transparent);
|
|
92
|
+
--rt-color-green-a50: color-mix(in srgb, #01af8d 50%, transparent);
|
|
93
|
+
--rt-color-green-a60: color-mix(in srgb, #01af8d 60%, transparent);
|
|
94
|
+
--rt-color-green-a70: color-mix(in srgb, #01af8d 70%, transparent);
|
|
95
|
+
--rt-color-green-a80: color-mix(in srgb, #01af8d 80%, transparent);
|
|
96
|
+
--rt-color-green-a90: color-mix(in srgb, #01af8d 90%, transparent);
|
|
97
|
+
--rt-color-brand: #0d1c2b;
|
|
98
|
+
--rt-color-brand-a5: color-mix(in srgb, #0d1c2b 5%, transparent);
|
|
99
|
+
--rt-color-brand-a10: color-mix(in srgb, #0d1c2b 10%, transparent);
|
|
100
|
+
--rt-color-brand-a20: color-mix(in srgb, #0d1c2b 20%, transparent);
|
|
101
|
+
--rt-color-brand-a30: color-mix(in srgb, #0d1c2b 30%, transparent);
|
|
102
|
+
--rt-color-brand-a40: color-mix(in srgb, #0d1c2b 40%, transparent);
|
|
103
|
+
--rt-color-brand-a50: color-mix(in srgb, #0d1c2b 50%, transparent);
|
|
104
|
+
--rt-color-brand-a60: color-mix(in srgb, #0d1c2b 60%, transparent);
|
|
105
|
+
--rt-color-brand-a70: color-mix(in srgb, #0d1c2b 70%, transparent);
|
|
106
|
+
--rt-color-brand-a80: color-mix(in srgb, #0d1c2b 80%, transparent);
|
|
107
|
+
--rt-color-brand-a90: color-mix(in srgb, #0d1c2b 90%, transparent);
|
|
108
|
+
--rt-color-dark-a5: rgba(24, 24, 24, 0.05);
|
|
109
|
+
--rt-color-light-a5: rgba(255, 255, 255, 0.05);
|
|
110
|
+
--rt-color-dark-a10: rgba(24, 24, 24, 0.1);
|
|
111
|
+
--rt-color-light-a10: rgba(255, 255, 255, 0.1);
|
|
112
|
+
--rt-color-dark-a15: rgba(24, 24, 24, 0.15);
|
|
113
|
+
--rt-color-light-a15: rgba(255, 255, 255, 0.15);
|
|
114
|
+
--rt-color-dark-a20: rgba(24, 24, 24, 0.2);
|
|
115
|
+
--rt-color-light-a20: rgba(255, 255, 255, 0.2);
|
|
116
|
+
--rt-color-dark-a25: rgba(24, 24, 24, 0.25);
|
|
117
|
+
--rt-color-light-a25: rgba(255, 255, 255, 0.25);
|
|
118
|
+
--rt-color-dark-a30: rgba(24, 24, 24, 0.3);
|
|
119
|
+
--rt-color-light-a30: rgba(255, 255, 255, 0.3);
|
|
120
|
+
--rt-color-dark-a40: rgba(24, 24, 24, 0.4);
|
|
121
|
+
--rt-color-light-a40: rgba(255, 255, 255, 0.4);
|
|
122
|
+
--rt-color-dark-a50: rgba(24, 24, 24, 0.5);
|
|
123
|
+
--rt-color-light-a50: rgba(255, 255, 255, 0.5);
|
|
124
|
+
--rt-color-dark-a60: rgba(24, 24, 24, 0.6);
|
|
125
|
+
--rt-color-light-a60: rgba(255, 255, 255, 0.6);
|
|
126
|
+
--rt-color-dark-a70: rgba(24, 24, 24, 0.7);
|
|
127
|
+
--rt-color-light-a70: rgba(255, 255, 255, 0.7);
|
|
128
|
+
--rt-color-dark-a80: rgba(24, 24, 24, 0.8);
|
|
129
|
+
--rt-color-light-a80: rgba(255, 255, 255, 0.8);
|
|
130
|
+
--rt-color-dark-a90: rgba(24, 24, 24, 0.9);
|
|
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);
|
|
150
|
+
/* --- Tier 2: semantic --- */
|
|
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));
|
|
153
|
+
--rt-bg-base-subtle: light-dark(#f5f6f8, #232226);
|
|
154
|
+
--rt-bg-base-hover: light-dark(#f3f3f3, rgba(255, 255, 255, 0.06));
|
|
155
|
+
--rt-bg-base-active: light-dark(#eee, rgba(255, 255, 255, 0.1));
|
|
156
|
+
--rt-bg-base-strong: light-dark(#e0e0e0, #3f3e43);
|
|
157
|
+
--rt-bg-base-emphasis: light-dark(#747474, #a3a3a3);
|
|
158
|
+
--rt-bg-base-emphasis-soft: light-dark(#a3a3a3, #747474);
|
|
159
|
+
--rt-bg-base-inverse: var(--mat-sys-inverse-surface, light-dark(#181818, #f3f3f3));
|
|
160
|
+
--rt-bg-base-inverse-soft: light-dark(#323033, #eee);
|
|
161
|
+
--rt-bg-base-overlay: light-dark(rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.6));
|
|
162
|
+
--rt-bg-static-light: #fff;
|
|
163
|
+
--rt-bg-static-dark: #181818;
|
|
164
|
+
--rt-bg-static-none: transparent;
|
|
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);
|
|
185
|
+
--rt-bg-accent-neutral-subtle: light-dark(#f3f3f3, rgba(255, 255, 255, 0.06));
|
|
186
|
+
--rt-bg-accent-neutral-solid: light-dark(#747474, #a3a3a3);
|
|
187
|
+
--rt-bg-accent-neutral-hover: light-dark(#a3a3a3, #747474);
|
|
188
|
+
--rt-bg-accent-neutral-disabled: light-dark(rgba(116, 116, 116, 0.38), rgba(163, 163, 163, 0.38));
|
|
189
|
+
--rt-text-base-primary: var(--mat-sys-on-surface, light-dark(rgba(0, 0, 0, 0.87), rgba(255, 255, 255, 0.87)));
|
|
190
|
+
--rt-text-base-strong: light-dark(#181818, #f3f3f3);
|
|
191
|
+
--rt-text-base-soft: light-dark(#323033, #e0e0e0);
|
|
192
|
+
--rt-text-base-secondary: var(--mat-sys-on-surface-variant, light-dark(#747474, #a3a3a3));
|
|
193
|
+
--rt-text-base-disabled: light-dark(#a3a3a3, #747474);
|
|
194
|
+
--rt-text-base-inverse: var(--mat-sys-inverse-on-surface, light-dark(#fff, #181818));
|
|
195
|
+
--rt-text-static-light: #fff;
|
|
196
|
+
--rt-text-static-dark: #181818;
|
|
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);
|
|
207
|
+
--rt-icon-neutral-default: light-dark(#323033, #e0e0e0);
|
|
208
|
+
--rt-icon-neutral-soft: light-dark(#747474, #a3a3a3);
|
|
209
|
+
--rt-icon-neutral-disabled: light-dark(#a3a3a3, #747474);
|
|
210
|
+
--rt-icon-neutral-inverse: light-dark(#fff, #181818);
|
|
211
|
+
--rt-icon-static-light: #fff;
|
|
212
|
+
--rt-icon-static-dark: #181818;
|
|
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);
|
|
219
|
+
--rt-border-neutral-subtle: light-dark(#e8e8e8, #2e2d31);
|
|
220
|
+
--rt-border-neutral-default: var(--mat-sys-outline-variant, light-dark(#e0e0e0, #3f3e43));
|
|
221
|
+
--rt-border-neutral-medium: light-dark(#d1d1d1, #4a494e);
|
|
222
|
+
--rt-border-neutral-divider: light-dark(#ccc, #4a494e);
|
|
223
|
+
--rt-border-neutral-strong: var(--mat-sys-outline, light-dark(#a3a3a3, #5c5b60));
|
|
224
|
+
--rt-border-neutral-emphasis: light-dark(#747474, #a3a3a3);
|
|
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));
|
|
232
|
+
--rt-control-track: light-dark(#e8e8e8, #4a494e);
|
|
233
|
+
--rt-control-thumb: light-dark(#fff, #eee);
|
|
234
|
+
--rt-control-checked: light-dark(#323033, #e0e0e0);
|
|
235
|
+
--rt-scrollbar-thumb: light-dark(#ccc, #4a494e);
|
|
236
|
+
--rt-scrollbar-thumb-hover: light-dark(#a3a3a3, #5c5b60);
|
|
237
|
+
--rt-shadow-color: light-dark(#747474, rgba(0, 0, 0, 0.6));
|
|
238
|
+
/* --- Foundations --- */
|
|
239
|
+
--rt-spacing-0: 0;
|
|
240
|
+
--rt-spacing-2: 0.125rem;
|
|
241
|
+
--rt-spacing-4: 0.25rem;
|
|
242
|
+
--rt-spacing-6: 0.375rem;
|
|
243
|
+
--rt-spacing-8: 0.5rem;
|
|
244
|
+
--rt-spacing-12: 0.75rem;
|
|
245
|
+
--rt-spacing-16: 1rem;
|
|
246
|
+
--rt-spacing-20: 1.25rem;
|
|
247
|
+
--rt-spacing-24: 1.5rem;
|
|
248
|
+
--rt-spacing-32: 2rem;
|
|
249
|
+
--rt-spacing-40: 2.5rem;
|
|
250
|
+
--rt-spacing-48: 3rem;
|
|
251
|
+
--rt-spacing-56: 3.5rem;
|
|
252
|
+
--rt-spacing-64: 4rem;
|
|
253
|
+
--rt-radius-xs: 0.25rem;
|
|
254
|
+
--rt-radius-sm: 0.5rem;
|
|
255
|
+
--rt-radius-md: 0.75rem;
|
|
256
|
+
--rt-radius-lg: 1rem;
|
|
257
|
+
--rt-radius-xl: 1.5rem;
|
|
258
|
+
--rt-radius-2xl: 2rem;
|
|
259
|
+
--rt-radius-full: 624.9375rem;
|
|
260
|
+
--rt-font-size-xs: 0.75rem;
|
|
261
|
+
--rt-font-size-sm: 0.875rem;
|
|
262
|
+
--rt-font-size-md: 1rem;
|
|
263
|
+
--rt-font-size-lg: 1.25rem;
|
|
264
|
+
--rt-font-size-xl: 1.5rem;
|
|
265
|
+
--rt-font-weight-regular: 400;
|
|
266
|
+
--rt-font-weight-medium: 500;
|
|
267
|
+
--rt-font-weight-semibold: 600;
|
|
268
|
+
--rt-font-weight-bold: 700;
|
|
269
|
+
--rt-shadow-sm: 0 0.0625rem 0.25rem 0 rgba(0, 0, 0, 0.12);
|
|
270
|
+
--rt-shadow-md: 0 0.25rem 0.5rem 0 rgba(0, 0, 0, 0.14);
|
|
271
|
+
--rt-shadow-lg: 0 0.5rem 1rem 0 var(--rt-shadow-color);
|
|
272
|
+
--rt-transition-fast: 0.15s ease-in-out;
|
|
273
|
+
--rt-transition-base: 0.25s ease-in-out;
|
|
274
|
+
--rt-transition-slow: 0.4s ease-in-out;
|
|
275
|
+
--rt-z-index-dropdown: 1000;
|
|
276
|
+
--rt-z-index-sticky: 1020;
|
|
277
|
+
--rt-z-index-overlay: 1040;
|
|
278
|
+
--rt-z-index-modal: 1060;
|
|
279
|
+
--rt-z-index-popover: 1080;
|
|
280
|
+
--rt-z-index-tooltip: 1100;
|
|
281
|
+
--rt-breakpoint-xs: 600px;
|
|
282
|
+
--rt-breakpoint-sm: 720px;
|
|
283
|
+
--rt-breakpoint-md: 960px;
|
|
284
|
+
--rt-breakpoint-lg: 1280px;
|
|
285
|
+
--rt-breakpoint-xl: 1920px;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
/* Theme switching: global class + nested local contexts (GMT data-theme analogue) */
|
|
289
|
+
.rt-dark,
|
|
290
|
+
[data-rt-theme=dark] {
|
|
291
|
+
color-scheme: dark;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
[data-rt-theme=light] {
|
|
295
|
+
color-scheme: light;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
/* 'auto' follows prefers-color-scheme */
|
|
299
|
+
.rt-theme-auto {
|
|
300
|
+
color-scheme: light dark;
|
|
301
|
+
}
|
|
@@ -1590,5 +1590,104 @@ declare class RtActionBarService {
|
|
|
1590
1590
|
static ɵprov: i0.ɵɵInjectableDeclaration<RtActionBarService>;
|
|
1591
1591
|
}
|
|
1592
1592
|
|
|
1593
|
-
|
|
1594
|
-
|
|
1593
|
+
declare enum RT_THEME_ENUM {
|
|
1594
|
+
LIGHT = "light",
|
|
1595
|
+
DARK = "dark",
|
|
1596
|
+
AUTO = "auto"
|
|
1597
|
+
}
|
|
1598
|
+
type RtThemeType = `${RT_THEME_ENUM}`;
|
|
1599
|
+
declare const RT_THEME_STORAGE_KEY: string;
|
|
1600
|
+
declare const RT_DARK_CLASS: string;
|
|
1601
|
+
declare const RT_THEME_AUTO_CLASS: string;
|
|
1602
|
+
declare const RT_THEME_ATTRIBUTE: string;
|
|
1603
|
+
/**
|
|
1604
|
+
* Accent roles whose `--rt-color-{role}-{0..100}` indirection rows a custom
|
|
1605
|
+
* color scheme may override. The semantic accent tier
|
|
1606
|
+
* (`--rt-bg/text/icon/border-accent-*`) derives entirely from these rows.
|
|
1607
|
+
*/
|
|
1608
|
+
declare enum RT_ACCENT_ROLE_ENUM {
|
|
1609
|
+
PRIMARY = "primary",
|
|
1610
|
+
INFO = "info",
|
|
1611
|
+
SUCCESS = "success",
|
|
1612
|
+
WARNING = "warning",
|
|
1613
|
+
DANGER = "danger",
|
|
1614
|
+
BRAND = "brand"
|
|
1615
|
+
}
|
|
1616
|
+
type RtAccentRole = `${RT_ACCENT_ROLE_ENUM}`;
|
|
1617
|
+
/**
|
|
1618
|
+
* A brand palette: per accent role, a tonal ramp mapping tone step (0–100)
|
|
1619
|
+
* to a CSS color. One ramp serves both light and dark (the mode picks the tone).
|
|
1620
|
+
* Partial ramps are allowed — unset tones keep the rt-tools defaults.
|
|
1621
|
+
*
|
|
1622
|
+
* @example
|
|
1623
|
+
* const teal: RtColorSchemeRamp = {
|
|
1624
|
+
* primary: { 20: '#b3e3e1', 40: '#5cb8b5', 60: '#1a9d99', 100: '#008582' },
|
|
1625
|
+
* brand: { 20: '#e8e8e8', 100: '#008582' },
|
|
1626
|
+
* };
|
|
1627
|
+
*/
|
|
1628
|
+
type RtColorSchemeRamp = Partial<Record<RtAccentRole, Record<number, string>>>;
|
|
1629
|
+
/** `'default'`/`null` clears the active scheme (back to the rt-tools palette). */
|
|
1630
|
+
declare const RT_DEFAULT_SCHEME: string;
|
|
1631
|
+
declare const RT_COLOR_SCHEME_STORAGE_KEY: string;
|
|
1632
|
+
declare const RT_SCHEME_ATTRIBUTE: string;
|
|
1633
|
+
|
|
1634
|
+
/**
|
|
1635
|
+
* Global theme + color-scheme switcher for the rt-tools design tokens.
|
|
1636
|
+
*
|
|
1637
|
+
* **Theme** (`light`/`dark`/`auto`): applies `.rt-dark` / `.rt-theme-auto` to
|
|
1638
|
+
* `<html>`; semantic tokens (`--rt-*`) adapt through `color-scheme` + `light-dark()`.
|
|
1639
|
+
* Persisted to localStorage (`rt-theme`). `auto` follows the OS preference.
|
|
1640
|
+
*
|
|
1641
|
+
* **Color scheme** (brand palette): toggles `data-rt-scheme="<name>"` on `<html>`,
|
|
1642
|
+
* which activates a `[data-rt-scheme]` block (emitted by the `rt.color-scheme` Sass
|
|
1643
|
+
* mixin or injected at runtime via {@link registerColorScheme}). It overrides only
|
|
1644
|
+
* the accent-role rows `--rt-color-{role}-{N}`, so the whole accent layer recolors
|
|
1645
|
+
* while semantic token names stay stable. Orthogonal to light/dark; persisted to
|
|
1646
|
+
* localStorage (`rt-color-scheme`).
|
|
1647
|
+
*/
|
|
1648
|
+
declare class RtThemeService {
|
|
1649
|
+
#private;
|
|
1650
|
+
readonly theme: Signal<RtThemeType>;
|
|
1651
|
+
readonly colorScheme: Signal<string | null>;
|
|
1652
|
+
constructor();
|
|
1653
|
+
setTheme(theme: RtThemeType): void;
|
|
1654
|
+
/** Toggles between light and dark (auto resolves to its opposite visual state). */
|
|
1655
|
+
toggle(): void;
|
|
1656
|
+
/**
|
|
1657
|
+
* Activates a registered color scheme by name, or clears it with `null`/`'default'`.
|
|
1658
|
+
* Orthogonal to the light/dark theme; persisted to localStorage.
|
|
1659
|
+
*/
|
|
1660
|
+
setColorScheme(name: string | null): void;
|
|
1661
|
+
/**
|
|
1662
|
+
* Injects (or replaces) a color scheme's `[data-rt-scheme]` block at runtime —
|
|
1663
|
+
* the JS twin of the `rt.color-scheme` Sass mixin. Browser-only (no-op on server;
|
|
1664
|
+
* for SSR/brand-critical schemes prefer the Sass path). Does not activate the
|
|
1665
|
+
* scheme — call {@link setColorScheme} afterwards.
|
|
1666
|
+
*/
|
|
1667
|
+
registerColorScheme(name: string, ramp: RtColorSchemeRamp): void;
|
|
1668
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RtThemeService, never>;
|
|
1669
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<RtThemeService>;
|
|
1670
|
+
}
|
|
1671
|
+
|
|
1672
|
+
/**
|
|
1673
|
+
* Local theme context (GMT `data-theme` analogue).
|
|
1674
|
+
*
|
|
1675
|
+
* Sets `data-rt-theme` on the host, re-scoping all adaptive `--rt-*` tokens
|
|
1676
|
+
* inside the subtree through `color-scheme` + `light-dark()`:
|
|
1677
|
+
*
|
|
1678
|
+
* ```html
|
|
1679
|
+
* <!-- dark promo card inside a light page -->
|
|
1680
|
+
* <section [rtTheme]="'dark'">…</section>
|
|
1681
|
+
* ```
|
|
1682
|
+
*
|
|
1683
|
+
* Note: `color` is inherited as a resolved value — re-apply text tokens
|
|
1684
|
+
* on elements inside the context (e.g. `color: var(--rt-text-base-primary)`).
|
|
1685
|
+
*/
|
|
1686
|
+
declare class RtThemeDirective {
|
|
1687
|
+
readonly rtTheme: InputSignal<RtThemeType | ''>;
|
|
1688
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RtThemeDirective, never>;
|
|
1689
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RtThemeDirective, "[rtTheme]", never, { "rtTheme": { "alias": "rtTheme"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1690
|
+
}
|
|
1691
|
+
|
|
1692
|
+
export { ASIDE_BUTTONS_ENUM, ASIDE_REF, AsideRef, BUTTON_APPEARANCE, BUTTON_COLOR, BUTTON_SIZE, DEFAULT_PAGE_MODEL, DEFAULT_PAGE_SIZE, IAside, IModal, INFO_BADGE_SIZE_ENUM, INFO_BADGE_TYPE_ENUM, IRtActionBar, IRtSnackBar, 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, RtuiImageUploadComponent, RtuiInfoBadgeComponent, RtuiModalComponent, RtuiMultiButtonComponent, RtuiMultiSelectorPopupComponent, RtuiPaginationComponent, RtuiRoundIconButtonComponent, 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 };
|
|
1693
|
+
export type { AsideButtonsType, AsidePositions, ButtonAppearanceType, ButtonColorType, ButtonSizeType, IImageUploadFormat, IInfoBadgeSizeType, IRtuiTable, Icon, IconSideType, InfoBadgeType, MenuItemTrigger, ModalWindowSizeType, NameValueType, RtAccentRole, RtColorSchemeRamp, RtThemeType, Select, ToggleSizeType };
|
|
Binary file
|