@cfx-dev/ui-components 4.5.0 → 4.5.3
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/all_css.css +2 -0
- package/dist/assets/css/Input.css +1 -1
- package/dist/assets/css/StyledInput.css +1 -0
- package/dist/assets/css/StyledTextarea.css +1 -0
- package/dist/assets/css/Textarea.css +1 -1
- package/dist/assets/general/global.css +1 -1
- package/dist/components/Checkbox/Checkbox.d.ts +1 -0
- package/dist/components/Checkbox/Checkbox.js +139 -129
- package/dist/components/DropdownSelect/DropdownSelect.d.ts +2 -1
- package/dist/components/DropdownSelect/DropdownSelect.js +53 -44
- package/dist/components/DropdownSelect/DropdownSelectShowcase.js +13 -12
- package/dist/components/Input/Input.d.ts +3 -2
- package/dist/components/Input/Input.js +94 -89
- package/dist/components/Input/Input.types.d.ts +2 -0
- package/dist/components/Input/Input.types.js +1 -0
- package/dist/components/Input/RichInput.d.ts +1 -1
- package/dist/components/Input/index.d.ts +2 -1
- package/dist/components/InputDropzone/InputDropzone.d.ts +1 -0
- package/dist/components/InputDropzone/InputDropzone.js +135 -134
- package/dist/components/InputDropzone/InputDropzoneShowcase.js +6 -5
- package/dist/components/Radio/Radio.d.ts +1 -0
- package/dist/components/Radio/Radio.js +21 -19
- package/dist/components/StyledInput/StyledInput.d.ts +12 -0
- package/dist/components/StyledInput/StyledInput.js +46 -0
- package/dist/components/StyledInput/index.d.ts +2 -0
- package/dist/components/StyledInput/index.js +4 -0
- package/dist/components/StyledTextarea/StyledTextarea.d.ts +10 -0
- package/dist/components/StyledTextarea/StyledTextarea.js +32 -0
- package/dist/components/StyledTextarea/index.d.ts +2 -0
- package/dist/components/StyledTextarea/index.js +4 -0
- package/dist/components/Switch/Switch.js +61 -49
- package/dist/components/Tabular/Tabular.d.ts +12 -0
- package/dist/components/Tabular/Tabular.js +34 -33
- package/dist/components/Tabular/index.d.ts +1 -1
- package/dist/components/Textarea/Textarea.d.ts +7 -3
- package/dist/components/Textarea/Textarea.js +46 -43
- package/dist/components/ToggleGroup/ToggleGroup.d.ts +1 -0
- package/dist/components/ToggleGroup/ToggleGroup.js +57 -47
- package/dist/main.d.ts +5 -1
- package/dist/main.js +126 -122
- package/dist/rsc.d.ts +4 -0
- package/dist/rsc.js +12 -8
- package/dist/styles-scss/_ui.scss +4 -2
- package/dist/styles-scss/global.scss +1 -1
- package/dist/styles-scss/tokens.scss +19 -20
- package/package.json +1 -1
|
@@ -52,6 +52,25 @@
|
|
|
52
52
|
@include ui.define-font-size('xlarge', ui.q(4), 1.2);
|
|
53
53
|
@include ui.define-font-size('xxlarge', ui.q(5), 1.2);
|
|
54
54
|
@include ui.define-font-size('xxxlarge', ui.q(7), 1.2);
|
|
55
|
+
@include ui.def('font-weight-thin', 100);
|
|
56
|
+
@include ui.def('font-weight-small', 300);
|
|
57
|
+
@include ui.def('font-weight-normal', 400);
|
|
58
|
+
@include ui.def('font-weight-bold', 700);
|
|
59
|
+
@include ui.def('font-weight-bolder', 800);
|
|
60
|
+
@include ui.def('font-weight-boldest', 900);
|
|
61
|
+
@include ui.def('letter-spacing-normal', -0.025em);
|
|
62
|
+
@include ui.def('letter-spacing-large', 0);
|
|
63
|
+
@include ui.def('font-family-primary', 'HelveticaNowText');
|
|
64
|
+
@include ui.def('font-family-secondary', 'HelveticaNowDisplay');
|
|
65
|
+
@include ui.define-color-token('text', ui.color('primary', 'pure'));
|
|
66
|
+
@include ui.def('text-opacity-10', 0.1);
|
|
67
|
+
@include ui.define-color-token('text-a10', ui.color('primary', $alpha: 0.1));
|
|
68
|
+
@include ui.def('text-opacity-25', 0.25);
|
|
69
|
+
@include ui.define-color-token('text-a25', ui.color('primary', $alpha: 0.25));
|
|
70
|
+
@include ui.def('text-opacity-50', 0.5);
|
|
71
|
+
@include ui.define-color-token('text-a50', ui.color('primary', $alpha: 0.5));
|
|
72
|
+
@include ui.def('text-opacity-75', 0.75);
|
|
73
|
+
@include ui.define-color-token('text-a75', ui.color('primary', $alpha: 0.75));
|
|
55
74
|
|
|
56
75
|
@include ui.media-min('medium') {
|
|
57
76
|
@include ui.define-font-size('xxxsmall', ui.q(1.5), 1.5);
|
|
@@ -91,26 +110,6 @@
|
|
|
91
110
|
@include ui.define-font-size('xxlarge', ui.q(6.25), 1.3);
|
|
92
111
|
@include ui.define-font-size('xxxlarge', ui.q(7.5), 1.2);
|
|
93
112
|
}
|
|
94
|
-
|
|
95
|
-
@include ui.def('font-weight-thin', 100);
|
|
96
|
-
@include ui.def('font-weight-small', 300);
|
|
97
|
-
@include ui.def('font-weight-normal', 400);
|
|
98
|
-
@include ui.def('font-weight-bold', 700);
|
|
99
|
-
@include ui.def('font-weight-bolder', 800);
|
|
100
|
-
@include ui.def('font-weight-boldest', 900);
|
|
101
|
-
@include ui.def('letter-spacing-normal', -0.025em);
|
|
102
|
-
@include ui.def('letter-spacing-large', 0);
|
|
103
|
-
@include ui.def('font-family-primary', 'HelveticaNowText');
|
|
104
|
-
@include ui.def('font-family-secondary', 'HelveticaNowDisplay');
|
|
105
|
-
@include ui.define-color-token('text', ui.color('primary', 'pure'));
|
|
106
|
-
@include ui.def('text-opacity-10', 0.1);
|
|
107
|
-
@include ui.define-color-token('text-a10', ui.color('primary', $alpha: 0.1));
|
|
108
|
-
@include ui.def('text-opacity-25', 0.25);
|
|
109
|
-
@include ui.define-color-token('text-a25', ui.color('primary', $alpha: 0.25));
|
|
110
|
-
@include ui.def('text-opacity-50', 0.5);
|
|
111
|
-
@include ui.define-color-token('text-a50', ui.color('primary', $alpha: 0.5));
|
|
112
|
-
@include ui.def('text-opacity-75', 0.75);
|
|
113
|
-
@include ui.define-color-token('text-a75', ui.color('primary', $alpha: 0.75));
|
|
114
113
|
}
|
|
115
114
|
|
|
116
115
|
@mixin offset-tokens() {
|