@cfx-dev/ui-components 4.5.17 → 4.5.19
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/dist/assets/css/Flyout.css +1 -1
- package/dist/assets/css/Popover.css +1 -1
- package/dist/assets/general/global.css +1 -1
- package/dist/components/Accordion/Accordion.d.ts +2 -0
- package/dist/components/Accordion/Accordion.js +125 -107
- package/dist/components/Accordion/AccordionShowcase.js +76 -63
- package/dist/components/Flyout/Flyout.d.ts +7 -3
- package/dist/components/Flyout/Flyout.js +61 -48
- package/dist/components/Flyout/FlyoutShowcase.d.ts +5 -0
- package/dist/components/Flyout/FlyoutShowcase.js +28 -0
- package/dist/components/Flyout/index.d.ts +1 -1
- package/dist/components/Flyout/index.js +5 -3
- package/dist/main.d.ts +1 -1
- package/dist/main.js +176 -174
- package/dist/styles-scss/_ui.scss +1 -0
- package/dist/styles-scss/global.scss +2 -0
- package/dist/styles-scss/tokens.scss +26 -21
- package/package.json +1 -1
|
@@ -42,16 +42,6 @@
|
|
|
42
42
|
|
|
43
43
|
// font size is responsive, and one size in different media queries can have different values
|
|
44
44
|
@mixin text-tokens() {
|
|
45
|
-
@include ui.define-font-size('xxxsmall', ui.q(1.5), 1.5);
|
|
46
|
-
@include ui.define-font-size('xxsmall', ui.q(1.5), 1.5);
|
|
47
|
-
@include ui.define-font-size('xsmall', ui.q(1.75), 1.5);
|
|
48
|
-
@include ui.define-font-size('small', ui.q(2), 1.5);
|
|
49
|
-
@include ui.define-font-size('normal', ui.q(2), 1.5);
|
|
50
|
-
@include ui.define-font-size('medium', ui.q(2.5), 1.2);
|
|
51
|
-
@include ui.define-font-size('large', ui.q(3), 1.2);
|
|
52
|
-
@include ui.define-font-size('xlarge', ui.q(4), 1.2);
|
|
53
|
-
@include ui.define-font-size('xxlarge', ui.q(5), 1.2);
|
|
54
|
-
@include ui.define-font-size('xxxlarge', ui.q(7), 1.2);
|
|
55
45
|
@include ui.def('font-weight-thin', 100);
|
|
56
46
|
@include ui.def('font-weight-small', 300);
|
|
57
47
|
@include ui.def('font-weight-normal', 400);
|
|
@@ -73,6 +63,19 @@
|
|
|
73
63
|
@include ui.def('text-opacity-75', 0.75);
|
|
74
64
|
@include ui.define-color-token('text-a75', ui.color('primary', $alpha: 0.75));
|
|
75
65
|
|
|
66
|
+
// Mobile font sizes
|
|
67
|
+
@include ui.define-font-size('xxxsmall', ui.q(1.5), 1.5);
|
|
68
|
+
@include ui.define-font-size('xxsmall', ui.q(1.5), 1.5);
|
|
69
|
+
@include ui.define-font-size('xsmall', ui.q(1.75), 1.5);
|
|
70
|
+
@include ui.define-font-size('small', ui.q(2), 1.5);
|
|
71
|
+
@include ui.define-font-size('normal', ui.q(2), 1.5);
|
|
72
|
+
@include ui.define-font-size('medium', ui.q(2.5), 1.2);
|
|
73
|
+
@include ui.define-font-size('large', ui.q(3), 1.2);
|
|
74
|
+
@include ui.define-font-size('xlarge', ui.q(4), 1.2);
|
|
75
|
+
@include ui.define-font-size('xxlarge', ui.q(5), 1.2);
|
|
76
|
+
@include ui.define-font-size('xxxlarge', ui.q(7), 1.2);
|
|
77
|
+
|
|
78
|
+
// Tablet font sizes
|
|
76
79
|
@include ui.media-min('medium') {
|
|
77
80
|
@include ui.define-font-size('xxxsmall', ui.q(1.5), 1.5);
|
|
78
81
|
@include ui.define-font-size('xxsmall', ui.q(1.5), 1.5);
|
|
@@ -86,6 +89,7 @@
|
|
|
86
89
|
@include ui.define-font-size('xxxlarge', ui.q(7), 1.2);
|
|
87
90
|
}
|
|
88
91
|
|
|
92
|
+
// Desktop font sizes
|
|
89
93
|
@include ui.media-min('large') {
|
|
90
94
|
@include ui.define-font-size('xxxsmall', ui.q(1.5), 1.5);
|
|
91
95
|
@include ui.define-font-size('xxsmall', ui.q(1.75), 1.5);
|
|
@@ -99,6 +103,7 @@
|
|
|
99
103
|
@include ui.define-font-size('xxxlarge', ui.q(7.5), 1.2);
|
|
100
104
|
}
|
|
101
105
|
|
|
106
|
+
// Large Desktop font sizes - same as desktop
|
|
102
107
|
@include ui.media-min('xlg') {
|
|
103
108
|
@include ui.define-font-size('xxxsmall', ui.q(1.5), 1.5);
|
|
104
109
|
@include ui.define-font-size('xxsmall', ui.q(1.75), 1.5);
|
|
@@ -337,6 +342,17 @@
|
|
|
337
342
|
@include ui.define-color-token('separator-background', ui.color('secondary', $alpha: 0.2));
|
|
338
343
|
}
|
|
339
344
|
|
|
345
|
+
@mixin flyout-tokens() {
|
|
346
|
+
@include ui.define-color-token('flyout-holder-border', ui.color('primary', 100, 0.25));
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
@mixin shadow-tokens() {
|
|
350
|
+
@include ui.define-color-token('shadow-small', rgba(0, 0, 0, 0.5));
|
|
351
|
+
@include ui.def('shadow-small', 0 ui.q(0.25) ui.q(0.75) ui.color-token('shadow-small'));
|
|
352
|
+
@include ui.define-color-token('shadow-large', rgba(0, 0, 0, 0.5));
|
|
353
|
+
@include ui.def('shadow-large', 0 ui.q(2) ui.q(8) ui.q(0.25) ui.color-token('shadow-large'));
|
|
354
|
+
}
|
|
355
|
+
|
|
340
356
|
/**
|
|
341
357
|
* LEGACY
|
|
342
358
|
* Look for usages by searching for `ui.color-token('name')`
|
|
@@ -345,13 +361,6 @@
|
|
|
345
361
|
@include ui.define-color-token('li-marker', ui.color('main', 950, 0.75));
|
|
346
362
|
@include ui.define-color-token('kbd-border', ui.color('main', 300));
|
|
347
363
|
@include ui.define-color-token('kbd-background', ui.color('main', 200));
|
|
348
|
-
@include ui.define-color-token('shadow-small', rgba(0, 0, 0, 0.5));
|
|
349
|
-
@include ui.def('shadow-small', 0 2.5px 5px ui.color-token('shadow-small'));
|
|
350
|
-
@include ui.define-color-token('shadow-large', rgba(0, 0, 0, 0.5));
|
|
351
|
-
@include ui.def('shadow-large', 0 ui.q(2) ui.q(8) 2px ui.color-token('shadow-large'));
|
|
352
|
-
|
|
353
|
-
// TODO: add text warning, success and error
|
|
354
|
-
|
|
355
364
|
@include ui.define-color-token('link-hover-decoration', ui.color('primary', 950));
|
|
356
365
|
@include ui.define-color-token('scrollbar', ui.color('secondary', $alpha: 0.4));
|
|
357
366
|
@include ui.define-color-token('scrollbar-hover', ui.color('secondary', $alpha: 0.6));
|
|
@@ -370,10 +379,6 @@
|
|
|
370
379
|
@include ui.define-color-token('checkbox-border', ui.color('main', 950, 0.25));
|
|
371
380
|
@include ui.define-color-token('checkbox-background', ui.color('main', 950, 0.1));
|
|
372
381
|
@include ui.define-color-token('checkbox-hover-background', ui.color('main', 950, 0.05));
|
|
373
|
-
@include ui.define-color-token('flyout-backdrop-background', ui.color('main', 100, 0.9));
|
|
374
|
-
@include ui.define-color-token('flyout-holder-border', ui.color('main', 100, 0.25));
|
|
375
|
-
@include ui.define-color-token('flyout-holder-blur-background', ui.color('main', 50, 0.75));
|
|
376
|
-
@include ui.define-color-token('flyout-holder-unblur-background', ui.color('main'));
|
|
377
382
|
@include ui.define-color-token('indicator-bright', ui.color('primary'));
|
|
378
383
|
@include ui.define-color-token('indicator-dim', transparent);
|
|
379
384
|
@include ui.define-color-token('island-border', ui.color('main', 50, 0.25));
|