@rakeyshgidwani/roger-ui-bank-theme-stan-design 0.1.5 → 0.1.7

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 (82) hide show
  1. package/CHANGELOG.md +1 -1
  2. package/dist/index.d.ts +7 -0
  3. package/dist/index.esm.js +18 -1
  4. package/dist/index.js +18 -1
  5. package/dist/setupTests.d.ts +124 -0
  6. package/dist/setupTests.esm.js +122 -0
  7. package/dist/setupTests.js +122 -0
  8. package/dist/styles.css +1 -1
  9. package/package.json +1 -1
  10. package/src/index.css +1046 -0
  11. package/src/index.ts +18 -0
  12. package/src/plugins/theme-css-generator.ts +354 -0
  13. package/src/setupTests.ts +124 -0
  14. package/src/stories/README.md +39 -0
  15. package/src/stories/components/ThemeDebugger.tsx +143 -0
  16. package/src/stories/index.ts +29 -0
  17. package/src/stories/storybook-theme-imports.css +51 -0
  18. package/src/styles/base/fonts.css +30 -0
  19. package/src/styles/base/generated-theme-variables.css +573 -0
  20. package/src/styles/base/index.css +7 -0
  21. package/src/styles/base/reset.css +48 -0
  22. package/src/styles/base/theme.css +1068 -0
  23. package/src/styles/base/typography.css +68 -0
  24. package/src/styles/base/variables.css +5 -0
  25. package/src/styles/components/CLAUDE.md +62 -0
  26. package/src/styles/components/base/badge.css +428 -0
  27. package/src/styles/components/base/button.css +774 -0
  28. package/src/styles/components/base/card.css +601 -0
  29. package/src/styles/components/base/checkbox.css +442 -0
  30. package/src/styles/components/base/index.css +9 -0
  31. package/src/styles/components/base/input.css +887 -0
  32. package/src/styles/components/base/label.css +296 -0
  33. package/src/styles/components/data-display/chart.css +353 -0
  34. package/src/styles/components/data-display/data-grid.css +619 -0
  35. package/src/styles/components/data-display/index.css +9 -0
  36. package/src/styles/components/data-display/list.css +560 -0
  37. package/src/styles/components/data-display/table.css +498 -0
  38. package/src/styles/components/data-display/timeline.css +764 -0
  39. package/src/styles/components/data-display/tree.css +881 -0
  40. package/src/styles/components/feedback/alert.css +358 -0
  41. package/src/styles/components/feedback/index.css +7 -0
  42. package/src/styles/components/feedback/progress.css +435 -0
  43. package/src/styles/components/feedback/skeleton.css +337 -0
  44. package/src/styles/components/feedback/toast.css +564 -0
  45. package/src/styles/components/index.css +17 -0
  46. package/src/styles/components/navigation/breadcrumb.css +465 -0
  47. package/src/styles/components/navigation/index.css +9 -0
  48. package/src/styles/components/navigation/menu.css +572 -0
  49. package/src/styles/components/navigation/pagination.css +635 -0
  50. package/src/styles/components/navigation/sidebar.css +807 -0
  51. package/src/styles/components/navigation/stepper.css +519 -0
  52. package/src/styles/components/navigation/tabs.css +404 -0
  53. package/src/styles/components/overlay/backdrop.css +243 -0
  54. package/src/styles/components/overlay/index.css +8 -0
  55. package/src/styles/components/overlay/modal.css +482 -0
  56. package/src/styles/components/overlay/popover.css +607 -0
  57. package/src/styles/components/overlay/portal.css +213 -0
  58. package/src/styles/components/overlay/tooltip.css +488 -0
  59. package/src/styles/generated-theme-variables.css +573 -0
  60. package/src/styles/index.css +5 -0
  61. package/src/styles/layers/index.css +54 -0
  62. package/src/styles/layers/overrides.css +108 -0
  63. package/src/styles/layers/validation.css +159 -0
  64. package/src/styles/layers/validation.js +310 -0
  65. package/src/styles/themes/default.css +450 -0
  66. package/src/styles/themes/enterprise.css +370 -0
  67. package/src/styles/themes/harvey.css +436 -0
  68. package/src/styles/themes/index.css +4 -0
  69. package/src/styles/themes/stan-design.css +572 -0
  70. package/src/styles/utilities/advanced-transition-system.css +467 -0
  71. package/src/styles/utilities/battery-conscious-animations.css +289 -0
  72. package/src/styles/utilities/enterprise-mobile-experience.css +817 -0
  73. package/src/styles/utilities/hardware-acceleration.css +121 -0
  74. package/src/styles/utilities/index.css +20 -0
  75. package/src/styles/utilities/mobile-skeleton-loading.css +596 -0
  76. package/src/styles/utilities/semantic-input-system.css +451 -0
  77. package/src/styles/utilities/touch-friendly-interface.css +247 -0
  78. package/src/styles/utilities/touch-optimization.css +165 -0
  79. package/src/test-utils/index.ts +7 -0
  80. package/src/test-utils/theme-testing.tsx +219 -0
  81. package/src/testing/test-automation.ts +627 -0
  82. package/src/testing/test-utils.tsx +367 -0
@@ -0,0 +1,435 @@
1
+ /* Progress Component Styles */
2
+ /* Semantic CSS architecture following BEM methodology */
3
+
4
+ /* ============================================================================ */
5
+ /* PROGRESS CONTAINER */
6
+ /* ============================================================================ */
7
+
8
+ .progress {
9
+ --progress-border-radius: var(--cs-border-radius-full);
10
+ --progress-transition: var(--cs-transitions-properties-all);
11
+ --progress-track-color: var(--cs-colors-surface-divider);
12
+ --progress-color: var(--cs-colors-primary-500);
13
+ }
14
+
15
+ .progress__container {
16
+ position: relative;
17
+ width: 100%;
18
+ background-color: var(--progress-track-color);
19
+ border-radius: var(--progress-border-radius);
20
+ overflow: hidden;
21
+ }
22
+
23
+ /* Progress container sizes */
24
+ .progress__container--xs {
25
+ height: var(--cs-spacing-scale-1);
26
+ }
27
+
28
+ .progress__container--sm {
29
+ height: var(--cs-spacing-scale-2);
30
+ }
31
+
32
+ .progress__container--md {
33
+ height: var(--cs-spacing-scale-3);
34
+ }
35
+
36
+ .progress__container--lg {
37
+ height: var(--cs-spacing-scale-4);
38
+ }
39
+
40
+ .progress__container--xl {
41
+ height: var(--cs-spacing-scale-6);
42
+ }
43
+
44
+ /* Progress variants */
45
+ .progress__container--indeterminate {
46
+ background: linear-gradient(
47
+ 90deg,
48
+ var(--progress-track-color) 25%,
49
+ transparent 25%,
50
+ transparent 50%,
51
+ var(--progress-track-color) 50%,
52
+ var(--progress-track-color) 75%,
53
+ transparent 75%,
54
+ transparent
55
+ );
56
+ background-size: var(--cs-spacing-scale-10) var(--cs-spacing-scale-10);
57
+ animation: progress-indeterminate var(--cs-transitions-durations-slower) linear infinite;
58
+ }
59
+
60
+ /* ============================================================================ */
61
+ /* PROGRESS BAR */
62
+ /* ============================================================================ */
63
+
64
+ .progress__bar {
65
+ height: 100%;
66
+ background-color: var(--progress-color);
67
+ border-radius: var(--progress-border-radius);
68
+ transition: var(--progress-transition);
69
+ position: relative;
70
+ overflow: hidden;
71
+ }
72
+
73
+ .progress__bar--animated {
74
+ transition: width var(--cs-transitions-durations-normal) var(--cs-transitions-easings-ease-in-out);
75
+ }
76
+
77
+ .progress__bar--striped {
78
+ background-image: linear-gradient(
79
+ 45deg,
80
+ rgba(255, 255, 255, 0.15) 25%,
81
+ transparent 25%,
82
+ transparent 50%,
83
+ rgba(255, 255, 255, 0.15) 50%,
84
+ rgba(255, 255, 255, 0.15) 75%,
85
+ transparent 75%,
86
+ transparent
87
+ );
88
+ background-size: var(--cs-spacing-scale-4) var(--cs-spacing-scale-4);
89
+ }
90
+
91
+ .progress__bar--striped.progress__bar--animated {
92
+ animation: progress-stripes var(--cs-transitions-durations-slow) linear infinite;
93
+ }
94
+
95
+ /* Progress bar colors */
96
+ .progress__bar--success {
97
+ background-color: var(--cs-colors-semantic-success-500);
98
+ }
99
+
100
+ .progress__bar--warning {
101
+ background-color: var(--cs-colors-semantic-warning-500);
102
+ }
103
+
104
+ .progress__bar--error {
105
+ background-color: var(--cs-colors-semantic-error-500);
106
+ }
107
+
108
+ .progress__bar--info {
109
+ background-color: var(--cs-colors-primary-500);
110
+ }
111
+
112
+ /* ============================================================================ */
113
+ /* PROGRESS LABEL */
114
+ /* ============================================================================ */
115
+
116
+ .progress__label-container {
117
+ display: flex;
118
+ justify-content: space-between;
119
+ align-items: center;
120
+ margin-bottom: var(--cs-spacing-scale-2);
121
+ }
122
+
123
+ .progress__label {
124
+ font-size: var(--cs-fonts-primary-sizes-sm);
125
+ font-weight: var(--cs-fonts-primary-weights-medium);
126
+ color: var(--cs-colors-text-primary);
127
+ margin: 0;
128
+ }
129
+
130
+ .progress__value {
131
+ font-size: var(--cs-fonts-primary-sizes-sm);
132
+ font-weight: var(--cs-fonts-primary-weights-semibold);
133
+ color: var(--cs-colors-text-secondary);
134
+ }
135
+
136
+ /* ============================================================================ */
137
+ /* CIRCULAR PROGRESS */
138
+ /* ============================================================================ */
139
+
140
+ .progress__circular {
141
+ position: relative;
142
+ display: inline-flex;
143
+ align-items: center;
144
+ justify-content: center;
145
+ }
146
+
147
+ .progress__circle {
148
+ transform: rotate(-90deg);
149
+ }
150
+
151
+ .progress__circle-track {
152
+ fill: none;
153
+ stroke: var(--progress-track-color);
154
+ stroke-width: var(--cs-border-width-thick);
155
+ }
156
+
157
+ .progress__circle-progress {
158
+ fill: none;
159
+ stroke: var(--progress-color);
160
+ stroke-width: var(--cs-border-width-thick);
161
+ stroke-linecap: round;
162
+ transition: var(--progress-transition);
163
+ }
164
+
165
+ .progress__circle-progress--animated {
166
+ transition: stroke-dashoffset var(--cs-transitions-durations-normal) var(--cs-transitions-easings-ease-in-out);
167
+ }
168
+
169
+ .progress__circle-label {
170
+ position: absolute;
171
+ top: 50%;
172
+ left: 50%;
173
+ transform: translate(-50%, -50%);
174
+ font-size: var(--cs-fonts-primary-sizes-sm);
175
+ font-weight: var(--cs-fonts-primary-weights-semibold);
176
+ color: var(--cs-colors-text-primary);
177
+ }
178
+
179
+ /* Circular progress sizes */
180
+ .progress__circular--xs {
181
+ width: var(--cs-spacing-scale-12);
182
+ height: var(--cs-spacing-scale-12);
183
+ }
184
+
185
+ .progress__circular--xs .progress__circle-label {
186
+ font-size: var(--cs-fonts-primary-sizes-xs);
187
+ }
188
+
189
+ .progress__circular--sm {
190
+ width: var(--cs-spacing-scale-16);
191
+ height: var(--cs-spacing-scale-16);
192
+ }
193
+
194
+ .progress__circular--md {
195
+ width: var(--cs-spacing-scale-20);
196
+ height: var(--cs-spacing-scale-20);
197
+ }
198
+
199
+ .progress__circular--lg {
200
+ width: var(--cs-spacing-scale-24);
201
+ height: var(--cs-spacing-scale-24);
202
+ }
203
+
204
+ .progress__circular--lg .progress__circle-label {
205
+ font-size: var(--cs-fonts-primary-sizes-base);
206
+ }
207
+
208
+ .progress__circular--xl {
209
+ width: var(--cs-spacing-scale-32);
210
+ height: var(--cs-spacing-scale-32);
211
+ }
212
+
213
+ .progress__circular--xl .progress__circle-label {
214
+ font-size: var(--cs-fonts-primary-sizes-lg);
215
+ }
216
+
217
+ /* ============================================================================ */
218
+ /* STEPPED PROGRESS */
219
+ /* ============================================================================ */
220
+
221
+ .progress__steps {
222
+ display: flex;
223
+ align-items: center;
224
+ width: 100%;
225
+ }
226
+
227
+ .progress__step {
228
+ display: flex;
229
+ flex-direction: column;
230
+ align-items: center;
231
+ flex: 1;
232
+ position: relative;
233
+ }
234
+
235
+ .progress__step:not(:last-child) {
236
+ margin-right: var(--cs-spacing-scale-2);
237
+ }
238
+
239
+ .progress__step-indicator {
240
+ display: flex;
241
+ align-items: center;
242
+ justify-content: center;
243
+ width: var(--cs-spacing-scale-8);
244
+ height: var(--cs-spacing-scale-8);
245
+ border-radius: var(--cs-border-radius-full);
246
+ background-color: var(--cs-colors-surface-divider);
247
+ color: var(--cs-colors-text-secondary);
248
+ font-size: var(--cs-fonts-primary-sizes-sm);
249
+ font-weight: var(--cs-fonts-primary-weights-semibold);
250
+ transition: var(--progress-transition);
251
+ position: relative;
252
+ z-index: 2;
253
+ }
254
+
255
+ .progress__step-indicator--active {
256
+ background-color: var(--cs-colors-primary-500);
257
+ color: var(--cs-colors-surface-background);
258
+ }
259
+
260
+ .progress__step-indicator--completed {
261
+ background-color: var(--cs-colors-semantic-success-500);
262
+ color: var(--cs-colors-surface-background);
263
+ }
264
+
265
+ .progress__step-indicator--error {
266
+ background-color: var(--cs-colors-semantic-error-500);
267
+ color: var(--cs-colors-surface-background);
268
+ }
269
+
270
+ .progress__step-indicator--pending {
271
+ background-color: var(--cs-colors-surface-divider);
272
+ color: var(--cs-colors-text-secondary);
273
+ }
274
+
275
+ .progress__step-icon {
276
+ width: var(--cs-spacing-scale-4);
277
+ height: var(--cs-spacing-scale-4);
278
+ }
279
+
280
+ .progress__step-connector {
281
+ position: absolute;
282
+ top: var(--cs-spacing-scale-4);
283
+ left: 50%;
284
+ right: -50%;
285
+ height: var(--cs-border-width-thick);
286
+ background-color: var(--cs-colors-surface-divider);
287
+ z-index: 1;
288
+ }
289
+
290
+ .progress__step-connector--completed {
291
+ background-color: var(--cs-colors-semantic-success-500);
292
+ }
293
+
294
+ .progress__step-label {
295
+ margin-top: var(--cs-spacing-scale-2);
296
+ text-align: center;
297
+ font-size: var(--cs-fonts-primary-sizes-sm);
298
+ color: var(--cs-colors-text-secondary);
299
+ }
300
+
301
+ .progress__step-label--active {
302
+ color: var(--cs-colors-primary-500);
303
+ font-weight: var(--cs-fonts-primary-weights-semibold);
304
+ }
305
+
306
+ .progress__step-label--completed {
307
+ color: var(--cs-colors-semantic-success-500);
308
+ }
309
+
310
+ .progress__step-label--error {
311
+ color: var(--cs-colors-semantic-error-500);
312
+ }
313
+
314
+ .progress__step-label--pending {
315
+ color: var(--cs-colors-text-secondary);
316
+ }
317
+
318
+ .progress__step-title {
319
+ font-weight: var(--cs-fonts-primary-weights-medium);
320
+ margin-bottom: var(--cs-spacing-scale-0-5);
321
+ }
322
+
323
+ .progress__step-description {
324
+ font-size: var(--cs-fonts-primary-sizes-xs);
325
+ color: var(--cs-colors-text-muted);
326
+ max-width: var(--cs-spacing-scale-20);
327
+ overflow: hidden;
328
+ text-overflow: ellipsis;
329
+ white-space: nowrap;
330
+ }
331
+
332
+ /* ============================================================================ */
333
+ /* ANIMATIONS */
334
+ /* ============================================================================ */
335
+
336
+ @keyframes progress-stripes {
337
+ from {
338
+ background-position: var(--cs-spacing-scale-4) 0;
339
+ }
340
+ to {
341
+ background-position: 0 0;
342
+ }
343
+ }
344
+
345
+ @keyframes progress-indeterminate {
346
+ 0% {
347
+ background-position: 0 0;
348
+ }
349
+ 100% {
350
+ background-position: var(--cs-spacing-scale-10) 0;
351
+ }
352
+ }
353
+
354
+ @keyframes progress-pulse {
355
+ 0%, 100% {
356
+ opacity: 1;
357
+ }
358
+ 50% {
359
+ opacity: 0.5;
360
+ }
361
+ }
362
+
363
+ .progress__bar--pulse {
364
+ animation: progress-pulse var(--cs-transitions-durations-slower) var(--cs-transitions-easings-ease-in-out) infinite;
365
+ }
366
+
367
+ /* ============================================================================ */
368
+ /* RESPONSIVE DESIGN */
369
+ /* ============================================================================ */
370
+
371
+ @media (max-width: 640px) {
372
+ .progress__steps {
373
+ flex-direction: column;
374
+ align-items: stretch;
375
+ }
376
+
377
+ .progress__step {
378
+ flex-direction: column;
379
+ margin-right: 0;
380
+ margin-bottom: var(--cs-spacing-scale-4);
381
+ }
382
+
383
+ .progress__step:not(:last-child) {
384
+ margin-right: 0;
385
+ }
386
+
387
+ .progress__step-connector {
388
+ height: var(--cs-spacing-scale-4);
389
+ width: var(--cs-border-width-thick);
390
+ margin: var(--cs-spacing-scale-2) auto;
391
+ }
392
+
393
+ .progress__step-label {
394
+ margin-top: var(--cs-spacing-scale-1);
395
+ }
396
+ }
397
+
398
+ /* ============================================================================ */
399
+ /* ACCESSIBILITY */
400
+ /* ============================================================================ */
401
+
402
+ .progress__container:focus-within {
403
+ outline: var(--cs-border-width-thick) solid var(--cs-colors-interactive-focus);
404
+ outline-offset: var(--cs-spacing-scale-0-5);
405
+ }
406
+
407
+ /* High contrast mode support */
408
+ @media (prefers-contrast: high) {
409
+ .progress__container {
410
+ border: var(--cs-border-width-normal) solid;
411
+ }
412
+
413
+ .progress__bar {
414
+ border: var(--cs-border-width-normal) solid;
415
+ }
416
+
417
+ .progress__step-indicator {
418
+ border: var(--cs-border-width-thick) solid;
419
+ }
420
+ }
421
+
422
+ /* Reduced motion support */
423
+ @media (prefers-reduced-motion: reduce) {
424
+ .progress__bar,
425
+ .progress__circle-progress,
426
+ .progress__step-indicator {
427
+ transition: none;
428
+ }
429
+
430
+ .progress__bar--striped.progress__bar--animated,
431
+ .progress__container--indeterminate,
432
+ .progress__bar--pulse {
433
+ animation: none;
434
+ }
435
+ }