@rojaostudio/ds 2.0.0-next.12 → 2.0.0-next.14
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/README.md +42 -2
- package/THIRD_PARTY_NOTICES.md +1 -1
- package/dist/components/floating-stepper.d.ts +11 -28
- package/dist/components/floating-stepper.js +2 -31
- package/dist/components/image-crop-dialog.d.ts +60 -0
- package/dist/components/image-crop-dialog.js +240 -0
- package/dist/components/image-crop-modal.d.ts +12 -56
- package/dist/components/image-crop-modal.js +2 -235
- package/dist/components/image-upload.d.ts +2 -2
- package/dist/components/image-upload.js +2 -2
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +2 -0
- package/dist/components/number-input.d.ts +1 -1
- package/dist/components/stepper.d.ts +33 -0
- package/dist/components/stepper.js +36 -0
- package/dist/components/toast.d.ts +16 -5
- package/dist/components/toast.js +5 -3
- package/package.json +3 -4
- package/styles/base.css +13 -1
- package/styles/rds/components-styles.css +39 -39
- package/styles/rds/components.css +5 -5
- package/styles/rds/foundation.css +1 -1
- package/styles/rds/theme.css +36 -28
- package/styles/rds.css +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* GENERATED by scripts/build-rds-tokens.ts from tokens/figma/*.txt. Do not edit. */
|
|
2
2
|
@layer rds.tokens {
|
|
3
|
-
:root, .ds-scope, .dark, .ds-plate {
|
|
3
|
+
:root, .ds-scope, [data-rds-scope], .dark, [data-rds-mode], .ds-plate, [data-rds-plate] {
|
|
4
4
|
/* actions */
|
|
5
5
|
--actionbar-background: var(--colors-primary-default);
|
|
6
6
|
--actionbar-divider: var(--colors-primary-light);
|
|
@@ -1006,9 +1006,9 @@
|
|
|
1006
1006
|
--sheet-text: var(--text-body);
|
|
1007
1007
|
--sheet-title: var(--text-heading);
|
|
1008
1008
|
--dialog-scrim: var(--surface-scrim);
|
|
1009
|
-
--image-crop-
|
|
1010
|
-
--image-crop-
|
|
1011
|
-
--image-crop-
|
|
1012
|
-
--image-crop-
|
|
1009
|
+
--image-crop-dialog-shade: var(--surface-scrim);
|
|
1010
|
+
--image-crop-dialog-selection: var(--text-on-cover);
|
|
1011
|
+
--image-crop-dialog-handle: var(--text-on-cover);
|
|
1012
|
+
--image-crop-dialog-stage-background: var(--surface-muted);
|
|
1013
1013
|
}
|
|
1014
1014
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* GENERATED by scripts/build-rds-tokens.ts from ds-core/figma/foundation.txt. Do not edit. */
|
|
2
2
|
@layer rds.tokens {
|
|
3
|
-
:root, .ds-scope, .dark, .ds-plate {
|
|
3
|
+
:root, .ds-scope, [data-rds-scope], .dark, [data-rds-mode], .ds-plate, [data-rds-plate] {
|
|
4
4
|
--radius-large: 12px;
|
|
5
5
|
--radius-small: 8px;
|
|
6
6
|
--radius-full: 9999px;
|
package/styles/rds/theme.css
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
/* GENERATED by scripts/build-rds-tokens.ts from ds-core/figma/
|
|
1
|
+
/* GENERATED by scripts/build-rds-tokens.ts from ds-core/figma/brands/rojao.rds.json (the Figma [RDS] brand table, figma/export-brand.js). Do not edit. */
|
|
2
2
|
@layer rds.theme {
|
|
3
|
-
:root, .ds-scope {
|
|
3
|
+
:root, .ds-scope, [data-rds-scope] {
|
|
4
4
|
--colors-primary-light: #6b7488;
|
|
5
5
|
--colors-primary-default: #1b2a4a;
|
|
6
6
|
--colors-primary-dark: #1b2a4a;
|
|
7
7
|
--colors-secondary-light: #6b7488;
|
|
8
8
|
--colors-secondary-default: #1b2a4a;
|
|
9
9
|
--colors-secondary-active: #26344f;
|
|
10
|
-
--colors-accent-highlight: #
|
|
10
|
+
--colors-accent-highlight: #ffe2c6;
|
|
11
11
|
--colors-accent-default: #ff6a00;
|
|
12
12
|
--colors-accent-hover: #ff9640;
|
|
13
13
|
--colors-accent-invert: #ffffff;
|
|
@@ -18,15 +18,15 @@
|
|
|
18
18
|
--surface-card: #ffffff;
|
|
19
19
|
--surface-panel: #fafafa;
|
|
20
20
|
--border-default: #e4e4e7;
|
|
21
|
-
--surface-tint-default: #
|
|
21
|
+
--surface-tint-default: #e2f0ff;
|
|
22
22
|
--text-on-action-tonal: #3a465f;
|
|
23
23
|
--text-on-primary: #ffffff;
|
|
24
24
|
--text-on-secondary: #ffffff;
|
|
25
|
-
--text-on-accent: #
|
|
26
|
-
--text-on-tint: #
|
|
25
|
+
--text-on-accent: #1b2a4a;
|
|
26
|
+
--text-on-tint: #1b2a4a;
|
|
27
27
|
--colors-state-error: #c50003;
|
|
28
28
|
--colors-state-error-strong: #6f0000;
|
|
29
|
-
--surface-tint-strong: #
|
|
29
|
+
--surface-tint-strong: #bddeff;
|
|
30
30
|
--text-on-error: #ffffff;
|
|
31
31
|
--surface-action-default: #e2f0ff;
|
|
32
32
|
--surface-action-strong: #bddeff;
|
|
@@ -52,8 +52,8 @@
|
|
|
52
52
|
--colors-state-success: #4caf50;
|
|
53
53
|
--text-on-success: #000000;
|
|
54
54
|
--colors-state-success-strong: #0a7e1c;
|
|
55
|
-
--surface-cover: #
|
|
56
|
-
--text-on-cover: #
|
|
55
|
+
--surface-cover: #00518d;
|
|
56
|
+
--text-on-cover: #ffffff;
|
|
57
57
|
--text-subtle: #52525b;
|
|
58
58
|
--surface-muted: #f4f4f5;
|
|
59
59
|
--surface-error: #ffe8e5;
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
--border-strong: #71717a;
|
|
66
66
|
--border-strong-hover: #52525b;
|
|
67
67
|
--colors-state-info: #2196f3;
|
|
68
|
-
--text-on-info: #
|
|
68
|
+
--text-on-info: #ffffff;
|
|
69
69
|
--colors-state-warning: #ff9800;
|
|
70
70
|
--colors-state-warning-strong: #dc7f00;
|
|
71
71
|
--text-on-warning: #000000;
|
|
@@ -84,8 +84,8 @@
|
|
|
84
84
|
--chart-series-3: #009688;
|
|
85
85
|
--chart-series-4: #bc4ad0;
|
|
86
86
|
--chart-series-5: #379c3d;
|
|
87
|
-
--colors-accent-mark: #
|
|
88
|
-
--text-on-accent-mark: #
|
|
87
|
+
--colors-accent-mark: #006bb5;
|
|
88
|
+
--text-on-accent-mark: #ffffff;
|
|
89
89
|
--type-font-mono: "Roboto Mono", monospace;
|
|
90
90
|
--surface-scrim: #00000080;
|
|
91
91
|
--shadow-ambient: #0000000d;
|
|
@@ -103,16 +103,20 @@
|
|
|
103
103
|
--colors-state-info-strong: #2196f3;
|
|
104
104
|
--colors-state-neutral-strong: #52525b;
|
|
105
105
|
--text-on-primary-subtle: #ffffff4d;
|
|
106
|
-
--surface-tint-subtle: #
|
|
106
|
+
--surface-tint-subtle: #f4f6f9;
|
|
107
|
+
--rojao-primary: #1b2a4a;
|
|
108
|
+
--rojao-secondary: #1b2a4a;
|
|
109
|
+
--rojao-accent: #ff6a00;
|
|
110
|
+
--rojao-invert: #ffffff;
|
|
107
111
|
}
|
|
108
112
|
|
|
109
|
-
:root.dark, .dark, .ds-scope.dark, .dark .ds-scope {
|
|
113
|
+
:root.dark, .dark, :root[data-rds-mode="dark"], [data-rds-mode="dark"], .ds-scope.dark, .dark .ds-scope, .ds-scope[data-rds-mode="dark"], [data-rds-mode="dark"] .ds-scope, [data-rds-scope].dark, .dark [data-rds-scope], [data-rds-scope][data-rds-mode="dark"], [data-rds-mode="dark"] [data-rds-scope] {
|
|
110
114
|
--colors-primary-light: #8a91a1;
|
|
111
115
|
--colors-primary-default: #c9cdd8;
|
|
112
116
|
--colors-primary-dark: #e4e6ec;
|
|
113
|
-
--colors-secondary-default: #
|
|
114
|
-
--colors-secondary-active: #
|
|
115
|
-
--colors-accent-highlight: #
|
|
117
|
+
--colors-secondary-default: #8cc6ff;
|
|
118
|
+
--colors-secondary-active: #44a7ff;
|
|
119
|
+
--colors-accent-highlight: #3a465f;
|
|
116
120
|
--colors-accent-default: #ffb066;
|
|
117
121
|
--colors-accent-hover: #ffca96;
|
|
118
122
|
--text-heading: #fafafa;
|
|
@@ -122,13 +126,14 @@
|
|
|
122
126
|
--surface-card: #18181b;
|
|
123
127
|
--surface-panel: #18181b;
|
|
124
128
|
--border-default: #27272a;
|
|
125
|
-
--surface-tint-default: #
|
|
129
|
+
--surface-tint-default: #003966;
|
|
126
130
|
--text-on-action-tonal: #c9cdd8;
|
|
127
|
-
--text-on-primary: #
|
|
128
|
-
--text-on-secondary: #
|
|
131
|
+
--text-on-primary: #1b2a4a;
|
|
132
|
+
--text-on-secondary: #1b2a4a;
|
|
133
|
+
--text-on-accent: #000000;
|
|
129
134
|
--text-on-tint: #ffffff;
|
|
130
135
|
--colors-state-error-strong: #ff6c5c;
|
|
131
|
-
--surface-tint-strong: #
|
|
136
|
+
--surface-tint-strong: #00518d;
|
|
132
137
|
--surface-action-default: #002445;
|
|
133
138
|
--surface-action-strong: #003966;
|
|
134
139
|
--focus-ring: #f4f4f5;
|
|
@@ -142,7 +147,7 @@
|
|
|
142
147
|
--text-on-lift-action: #ffffff;
|
|
143
148
|
--surface-lift-action-strong: #3a465f;
|
|
144
149
|
--text-on-primary-strong: #000000;
|
|
145
|
-
--colors-secondary-hover: #
|
|
150
|
+
--colors-secondary-hover: #bddeff;
|
|
146
151
|
--colors-state-success-strong: #82d982;
|
|
147
152
|
--text-subtle: #a1a1aa;
|
|
148
153
|
--surface-muted: #27272a;
|
|
@@ -166,7 +171,8 @@
|
|
|
166
171
|
--chart-series-3: #45b7a8;
|
|
167
172
|
--chart-series-4: #db6def;
|
|
168
173
|
--chart-series-5: #4caf50;
|
|
169
|
-
--colors-accent-mark: #
|
|
174
|
+
--colors-accent-mark: #8cc6ff;
|
|
175
|
+
--text-on-accent-mark: #000000;
|
|
170
176
|
--surface-scrim: #000000b3;
|
|
171
177
|
--shadow-ambient: #00000033;
|
|
172
178
|
--shadow-key: #00000066;
|
|
@@ -179,30 +185,31 @@
|
|
|
179
185
|
--colors-state-info-strong: #8cc6ff;
|
|
180
186
|
--colors-state-neutral-strong: #a1a1aa;
|
|
181
187
|
--text-on-primary-subtle: #0000004d;
|
|
182
|
-
--surface-tint-subtle: #
|
|
188
|
+
--surface-tint-subtle: #002445;
|
|
183
189
|
}
|
|
184
190
|
|
|
185
|
-
.ds-plate {
|
|
191
|
+
.ds-plate, [data-rds-plate] {
|
|
186
192
|
--colors-primary-light: #aeb6c4;
|
|
187
193
|
--colors-primary-default: #ffffff;
|
|
188
194
|
--colors-primary-dark: #e4e6ec;
|
|
189
195
|
--colors-secondary-light: #aeb6c4;
|
|
190
196
|
--colors-secondary-default: #ffffff;
|
|
191
197
|
--colors-secondary-active: #c9cdd8;
|
|
192
|
-
--colors-accent-highlight: #
|
|
198
|
+
--colors-accent-highlight: #3a465f;
|
|
193
199
|
--colors-accent-default: #ffb066;
|
|
194
200
|
--colors-accent-hover: #ffca96;
|
|
195
201
|
--text-heading: #ffffff;
|
|
196
202
|
--text-body: #ffffff;
|
|
197
203
|
--text-link: #ffffff;
|
|
198
204
|
--surface-page: #1b2a4a;
|
|
199
|
-
--surface-card: #
|
|
205
|
+
--surface-card: #26344f;
|
|
200
206
|
--surface-panel: #1b2a4a;
|
|
201
207
|
--border-default: #ffffff33;
|
|
202
208
|
--surface-tint-default: #ffffff1a;
|
|
203
209
|
--text-on-action-tonal: #ffffff;
|
|
204
210
|
--text-on-primary: #1b2a4a;
|
|
205
211
|
--text-on-secondary: #1b2a4a;
|
|
212
|
+
--text-on-accent: #000000;
|
|
206
213
|
--text-on-tint: #ffffff;
|
|
207
214
|
--colors-state-error-strong: #ff6c5c;
|
|
208
215
|
--surface-tint-strong: #ffffff33;
|
|
@@ -244,7 +251,8 @@
|
|
|
244
251
|
--chart-series-3: #45b7a8;
|
|
245
252
|
--chart-series-4: #db6def;
|
|
246
253
|
--chart-series-5: #4caf50;
|
|
247
|
-
--colors-accent-mark: #
|
|
254
|
+
--colors-accent-mark: #8cc6ff;
|
|
255
|
+
--text-on-accent-mark: #000000;
|
|
248
256
|
--surface-scrim: #000000b3;
|
|
249
257
|
--shadow-ambient: #00000033;
|
|
250
258
|
--shadow-key: #00000066;
|
package/styles/rds.css
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* GENERATED by scripts/build-rds-tokens.ts. Import once: @import "@rojaostudio/ds/styles/rds.css". */
|
|
2
|
-
@layer rds.theme, rds.tokens, rds.components;
|
|
2
|
+
@layer rds.legacy, rds.theme, rds.tokens, rds.components;
|
|
3
3
|
@import "./rds/theme.css";
|
|
4
4
|
@import "./rds/foundation.css";
|
|
5
5
|
@import "./rds/components.css";
|