@vialiq/flux-ui 0.20.0 → 0.21.0
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 +22 -0
- package/components/_accordion.scss +13 -13
- package/components/_alert.scss +7 -7
- package/components/_animation.scss +3 -3
- package/components/_badge.scss +8 -6
- package/components/_checkbox.scss +5 -4
- package/components/_chip.scss +4 -4
- package/components/_index.scss +1 -0
- package/components/_label.scss +3 -3
- package/components/_modal.scss +7 -5
- package/components/_radio.scss +7 -6
- package/components/_select.scss +6 -5
- package/components/_switch.scss +12 -11
- package/components/_tab-panel.scss +2 -1
- package/components/_tab.scss +8 -7
- package/components/_tabs.scss +17 -16
- package/components/_tag.scss +49 -66
- package/components/_tooltip.scss +10 -8
- package/flux-ui.css +1 -1
- package/flux-ui.css.map +1 -1
- package/package.json +1 -1
- package/styles/_flatpickr-core.scss +8 -7
- package/styles/_functions.scss +39 -0
- package/styles/_index.scss +1 -0
- package/styles/_layout.scss +1 -0
- package/styles/_utilities.scss +1 -1
- package/styles/_variables.scss +33 -37
package/styles/_index.scss
CHANGED
package/styles/_layout.scss
CHANGED
package/styles/_utilities.scss
CHANGED
package/styles/_variables.scss
CHANGED
|
@@ -13,6 +13,9 @@
|
|
|
13
13
|
* are not supported inside @media queries or as integer math operands.
|
|
14
14
|
*/
|
|
15
15
|
|
|
16
|
+
@use 'sass:math';
|
|
17
|
+
@use './functions' as *;
|
|
18
|
+
|
|
16
19
|
// Declare CSS layer order up-front so cascade is predictable regardless of
|
|
17
20
|
// import order. Between layers, later ones win. Within a layer, normal selector
|
|
18
21
|
// specificity still applies. Order: reset (lowest) → components → utilities (highest)
|
|
@@ -83,26 +86,17 @@ $color-blue-700: var(--vi-color-blue-700, #3676d0); // Deep azure (target)
|
|
|
83
86
|
$color-blue-800: var(--vi-color-blue-800, #2d5fa8);
|
|
84
87
|
$color-blue-900: var(--vi-color-blue-900, #254882); // Deep rich navy
|
|
85
88
|
|
|
86
|
-
// -- Palette: Purple (Vibrant Violet)
|
|
87
|
-
|
|
88
|
-
$color-purple-100: var(--vi-color-purple-100, #
|
|
89
|
-
$color-purple-200: var(--vi-color-purple-200, #e9d5ff);
|
|
90
|
-
$color-purple-300: var(--vi-color-purple-300, #d8b4fe);
|
|
91
|
-
$color-purple-400: var(--vi-color-purple-400, #c084fc);
|
|
92
|
-
$color-purple-500: var(--vi-color-purple-500, #a855f7);
|
|
93
|
-
$color-purple-600: var(--vi-color-purple-600, #9333ea);
|
|
94
|
-
$color-purple-700: var(--vi-color-purple-700, #7e22ce);
|
|
95
|
-
$color-purple-800: var(--vi-color-purple-800, #6b21a8);
|
|
96
|
-
$color-purple-900: var(--vi-color-purple-900, #581c87);
|
|
97
|
-
$color-purple-100: var(--vi-color-purple-100, #f0e5f9); // Soft pastel purple (target)
|
|
89
|
+
// -- Palette: Purple (Vibrant Violet) ----------------------------------------
|
|
90
|
+
// Custom curated violet scale. Goes from soft pastel to deep violet/navy.
|
|
91
|
+
$color-purple-100: var(--vi-color-purple-100, #f0e5f9); // Soft pastel purple
|
|
98
92
|
$color-purple-200: var(--vi-color-purple-200, #dbbdf2);
|
|
99
93
|
$color-purple-300: var(--vi-color-purple-300, #c18eeb);
|
|
100
94
|
$color-purple-400: var(--vi-color-purple-400, #a454e2);
|
|
101
|
-
$color-purple-500: var(--vi-color-purple-500, #7609d0); // Vibrant purple
|
|
95
|
+
$color-purple-500: var(--vi-color-purple-500, #7609d0); // Vibrant purple
|
|
102
96
|
$color-purple-600: var(--vi-color-purple-600, #6507c9);
|
|
103
97
|
$color-purple-700: var(--vi-color-purple-700, #5505c2);
|
|
104
98
|
$color-purple-800: var(--vi-color-purple-800, #4403bb);
|
|
105
|
-
$color-purple-900: var(--vi-color-purple-900, #3400b4); // Deep violet/navy
|
|
99
|
+
$color-purple-900: var(--vi-color-purple-900, #3400b4); // Deep violet/navy
|
|
106
100
|
|
|
107
101
|
// -- Semantic colors (brand + status) ----------------------------------------
|
|
108
102
|
// These map named design intents onto palette values.
|
|
@@ -120,7 +114,7 @@ $color-info: var(--vi-color-info, #3676d0); // blue-700
|
|
|
120
114
|
$typeahead-highlight-bg: var(--vi-typeahead-highlight-bg, #ebf5ff); // blue-100
|
|
121
115
|
$typeahead-highlight-color: var(--vi-typeahead-highlight-color, #3676d0); // primary / blue-700
|
|
122
116
|
|
|
123
|
-
// --
|
|
117
|
+
// -- Semantic SASS Tokens -------------------------------------------------------
|
|
124
118
|
|
|
125
119
|
$color-background: var(--vi-color-background, #ffffff);
|
|
126
120
|
$color-foreground: var(--vi-color-foreground, #111827); // grey-900
|
|
@@ -181,27 +175,28 @@ $focus-ring-error-glow: var(--vi-color-red-100, #ffccce); // alias for $color-re
|
|
|
181
175
|
$focus-ring-success-glow: var(--vi-color-green-100, #e6f0eb); // alias for $color-green-100
|
|
182
176
|
// -- Primitive: Spacing ------------------------------------------------------
|
|
183
177
|
|
|
184
|
-
$spacing-unit: var(--vi-spacing-unit,
|
|
185
|
-
$spacing-xs: var(--vi-spacing-xs, 8px);
|
|
186
|
-
$spacing-sm: var(--vi-spacing-sm,
|
|
187
|
-
$spacing-md: var(--vi-spacing-md,
|
|
188
|
-
$spacing-lg: var(--vi-spacing-lg,
|
|
189
|
-
$spacing-xl: var(--vi-spacing-xl,
|
|
190
|
-
$spacing-2xl: var(--vi-spacing-2xl, 48px);
|
|
191
|
-
$spacing-3xl: var(--vi-spacing-3xl,
|
|
178
|
+
$spacing-unit: var(--vi-spacing-unit, to-rem(4px));
|
|
179
|
+
$spacing-xs: var(--vi-spacing-xs, to-rem(8px));
|
|
180
|
+
$spacing-sm: var(--vi-spacing-sm, to-rem(12px));
|
|
181
|
+
$spacing-md: var(--vi-spacing-md, to-rem(16px));
|
|
182
|
+
$spacing-lg: var(--vi-spacing-lg, to-rem(24px));
|
|
183
|
+
$spacing-xl: var(--vi-spacing-xl, to-rem(32px));
|
|
184
|
+
$spacing-2xl: var(--vi-spacing-2xl, to-rem(48px));
|
|
185
|
+
$spacing-3xl: var(--vi-spacing-3xl, to-rem(64px));
|
|
192
186
|
|
|
193
187
|
// -- Primitive: Typography ---------------------------------------------------
|
|
194
188
|
|
|
195
189
|
$font-family-base: var(--vi-font-family-base, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
|
|
196
190
|
$font-family-mono: var(--vi-font-family-mono, 'Menlo', 'Monaco', 'Courier New', monospace);
|
|
197
191
|
|
|
198
|
-
|
|
199
|
-
$font-size-
|
|
200
|
-
$font-size-
|
|
201
|
-
$font-size-
|
|
202
|
-
$font-size-
|
|
203
|
-
$font-size-
|
|
204
|
-
$font-size-
|
|
192
|
+
// Typography scale: xs=12, sm=13, base=14, lg=16, xl=20
|
|
193
|
+
$font-size-xs: var(--vi-font-size-xs, to-rem(12px)); // Compact labels, captions
|
|
194
|
+
$font-size-sm: var(--vi-font-size-sm, to-rem(13px)); // Sub-labels, secondary text
|
|
195
|
+
$font-size-base: var(--vi-font-size-base, to-rem(14px)); // Standard body text
|
|
196
|
+
$font-size-lg: var(--vi-font-size-lg, to-rem(16px)); // Large text, subheadings
|
|
197
|
+
$font-size-xl: var(--vi-font-size-xl, to-rem(20px)); // Display, section headings
|
|
198
|
+
$font-size-2xl: var(--vi-font-size-2xl, to-rem(24px));
|
|
199
|
+
$font-size-3xl: var(--vi-font-size-3xl, to-rem(30px));
|
|
205
200
|
|
|
206
201
|
$font-weight-light: var(--vi-font-weight-light, 300);
|
|
207
202
|
$font-weight-normal: var(--vi-font-weight-normal, 400);
|
|
@@ -210,7 +205,7 @@ $font-weight-semibold: var(--vi-font-weight-semibold, 600);
|
|
|
210
205
|
$font-weight-bold: var(--vi-font-weight-bold, 700);
|
|
211
206
|
|
|
212
207
|
$line-height-tight: var(--vi-line-height-tight, 1.2);
|
|
213
|
-
$line-height-normal: var(--vi-line-height-normal, 1.
|
|
208
|
+
$line-height-normal: var(--vi-line-height-normal, 1.5715);
|
|
214
209
|
$line-height-relaxed: var(--vi-line-height-relaxed, 1.75);
|
|
215
210
|
|
|
216
211
|
// -- Primitive: Letter Spacing -----------------------------------------------
|
|
@@ -232,8 +227,8 @@ $shadow-xl: var(--vi-shadow-xl, 0 20px 25px -5px rgba(0, 0, 0, 0.1));
|
|
|
232
227
|
|
|
233
228
|
// -- Primitive: Border radius ------------------------------------------------
|
|
234
229
|
|
|
235
|
-
$border-radius-sm: var(--vi-border-radius-sm,
|
|
236
|
-
$border-radius-md: var(--vi-border-radius-md,
|
|
230
|
+
$border-radius-sm: var(--vi-border-radius-sm, 4px);
|
|
231
|
+
$border-radius-md: var(--vi-border-radius-md, 6px);
|
|
237
232
|
$border-radius-lg: var(--vi-border-radius-lg, 8px);
|
|
238
233
|
$border-radius-xl: var(--vi-border-radius-xl, 12px);
|
|
239
234
|
$border-radius-full: var(--vi-border-radius-full, 9999px);
|
|
@@ -345,6 +340,7 @@ $color-map: (
|
|
|
345
340
|
);
|
|
346
341
|
|
|
347
342
|
$spacing-map: (
|
|
343
|
+
'unit': $spacing-unit,
|
|
348
344
|
'xs': $spacing-xs,
|
|
349
345
|
'sm': $spacing-sm,
|
|
350
346
|
'md': $spacing-md,
|
|
@@ -408,9 +404,9 @@ $z-index-map: (
|
|
|
408
404
|
$modal-bg: var(--vi-modal-bg, $color-background);
|
|
409
405
|
$modal-border-radius: var(--vi-modal-border-radius, $border-radius-lg);
|
|
410
406
|
$modal-shadow: var(--vi-modal-shadow, $shadow-xl);
|
|
411
|
-
$modal-header-padding: var(--vi-modal-header-padding,
|
|
412
|
-
$modal-body-padding: var(--vi-modal-body-padding,
|
|
413
|
-
$modal-footer-padding: var(--vi-modal-footer-padding,
|
|
407
|
+
$modal-header-padding: var(--vi-modal-header-padding, #{$spacing-md} #{$spacing-lg});
|
|
408
|
+
$modal-body-padding: var(--vi-modal-body-padding, #{$spacing-lg});
|
|
409
|
+
$modal-footer-padding: var(--vi-modal-footer-padding, #{$spacing-xs} #{$spacing-md});
|
|
414
410
|
$modal-footer-bg: var(--vi-modal-footer-bg, $layer-02);
|
|
415
411
|
$modal-footer-border-color: var(--vi-modal-footer-border-color, $border-02);
|
|
416
412
|
$modal-backdrop-bg: var(--vi-modal-backdrop-bg, rgba(0, 0, 0, 0.5));
|
|
@@ -422,7 +418,7 @@ $modal-animation-duration: var(--vi-modal-animation-duration, 200ms);
|
|
|
422
418
|
|
|
423
419
|
$modal-max-width-xs: var(--vi-modal-max-width-xs, 320px);
|
|
424
420
|
$modal-max-width-sm: var(--vi-modal-max-width-sm, 480px);
|
|
425
|
-
$modal-max-width-md: var(--vi-modal-max-width-md,
|
|
421
|
+
$modal-max-width-md: var(--vi-modal-max-width-md, 520px);
|
|
426
422
|
$modal-max-width-lg: var(--vi-modal-max-width-lg, 800px);
|
|
427
423
|
$modal-max-width-xl: var(--vi-modal-max-width-xl, 960px);
|
|
428
424
|
|