@carbon/type 10.20.0-rc.0 → 10.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 +0 -6
- package/es/index.js +33 -1
- package/lib/index.js +33 -1
- package/package.json +7 -7
- package/scss/modules/_classes.scss +42 -0
- package/scss/modules/_font-family.scss +70 -0
- package/scss/modules/_prefix.scss +11 -0
- package/scss/modules/_reset.scss +92 -0
- package/scss/modules/_scale.scss +56 -0
- package/scss/modules/_styles.scss +713 -0
- package/scss/vendor/@carbon/layout/modules/_breakpoint.scss +232 -0
- package/scss/vendor/@carbon/layout/modules/_convert.scss +40 -0
- package/scss/vendor/@carbon/layout/modules/_spacing.scss +9 -0
- package/scss/vendor/@carbon/layout/modules/_utilities.scss +41 -0
- package/scss/vendor/@carbon/layout/modules/generated/_fluid-spacing.scss +37 -0
- package/scss/vendor/@carbon/layout/modules/generated/_spacing.scss +85 -0
- package/src/__tests__/exports-test.js +1 -1
- package/src/index.js +1 -1
- package/src/tokens.js +64 -31
- package/umd/index.js +33 -1
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright IBM Corp. 2018, 2018
|
|
3
|
+
//
|
|
4
|
+
// This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
+
// LICENSE file in the root directory of this source tree.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
// https://github.com/twbs/bootstrap/blob/v4-dev/scss/mixins/_breakpoints.scss
|
|
9
|
+
@use 'sass:list';
|
|
10
|
+
@use 'sass:map';
|
|
11
|
+
@use 'sass:meta';
|
|
12
|
+
@use 'convert';
|
|
13
|
+
@use 'utilities';
|
|
14
|
+
|
|
15
|
+
/// Carbon gutter size in rem
|
|
16
|
+
/// @type Number
|
|
17
|
+
/// @access public
|
|
18
|
+
/// @group @carbon/layout
|
|
19
|
+
$grid-gutter: convert.rem(32px);
|
|
20
|
+
|
|
21
|
+
/// Carbon condensed gutter size in rem
|
|
22
|
+
/// @type Number
|
|
23
|
+
/// @access public
|
|
24
|
+
/// @group @carbon/layout
|
|
25
|
+
$grid-gutter--condensed: convert.rem(1px);
|
|
26
|
+
|
|
27
|
+
// Initial map of our breakpoints and their values
|
|
28
|
+
/// @type Map
|
|
29
|
+
/// @access public
|
|
30
|
+
/// @group @carbon/layout
|
|
31
|
+
$grid-breakpoints: (
|
|
32
|
+
sm: (
|
|
33
|
+
columns: 4,
|
|
34
|
+
margin: 0,
|
|
35
|
+
width: convert.rem(320px),
|
|
36
|
+
),
|
|
37
|
+
md: (
|
|
38
|
+
columns: 8,
|
|
39
|
+
margin: convert.rem(16px),
|
|
40
|
+
width: convert.rem(672px),
|
|
41
|
+
),
|
|
42
|
+
lg: (
|
|
43
|
+
columns: 16,
|
|
44
|
+
margin: convert.rem(16px),
|
|
45
|
+
width: convert.rem(1056px),
|
|
46
|
+
),
|
|
47
|
+
xlg: (
|
|
48
|
+
columns: 16,
|
|
49
|
+
margin: convert.rem(16px),
|
|
50
|
+
width: convert.rem(1312px),
|
|
51
|
+
),
|
|
52
|
+
max: (
|
|
53
|
+
columns: 16,
|
|
54
|
+
margin: convert.rem(24px),
|
|
55
|
+
width: convert.rem(1584px),
|
|
56
|
+
),
|
|
57
|
+
) !default;
|
|
58
|
+
|
|
59
|
+
/// Get the value of the next breakpoint, or null for the last breakpoint
|
|
60
|
+
/// @param {String} $name - The name of the brekapoint
|
|
61
|
+
/// @param {Map} $breakpoints [$grid-breakpoints] - A map of breakpoints where the key is the name of the breakpoint and the value is the values for the breakpoint
|
|
62
|
+
/// @param {List} $breakpoint-names [map-keys($breakpoints)] - A list of names from the `$breakpoints` map
|
|
63
|
+
/// @return {String}
|
|
64
|
+
/// @access public
|
|
65
|
+
/// @group @carbon/layout
|
|
66
|
+
@function breakpoint-next(
|
|
67
|
+
$name,
|
|
68
|
+
$breakpoints: $grid-breakpoints,
|
|
69
|
+
$breakpoint-names: map.keys($breakpoints)
|
|
70
|
+
) {
|
|
71
|
+
$n: list.index($breakpoint-names, $name);
|
|
72
|
+
@if $n != null and $n < list.length($breakpoint-names) {
|
|
73
|
+
@return list.nth($breakpoint-names, $n + 1);
|
|
74
|
+
}
|
|
75
|
+
@return null;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/// Get the value of the previous breakpoint, or null for the first breakpoint
|
|
79
|
+
/// @param {String} $name - The name of the brekapoint
|
|
80
|
+
/// @param {Map} $breakpoints [$grid-breakpoints] - A map of breakpoints where the key is the name of the breakpoint and the value is the values for the breakpoint
|
|
81
|
+
/// @param {List} $breakpoint-names [map-keys($breakpoints)] - A list of names from the `$breakpoints` map
|
|
82
|
+
/// @return {String}
|
|
83
|
+
/// @access public
|
|
84
|
+
/// @group @carbon/layout
|
|
85
|
+
@function breakpoint-prev(
|
|
86
|
+
$name,
|
|
87
|
+
$breakpoints: $grid-breakpoints,
|
|
88
|
+
$breakpoint-names: map.keys($breakpoints)
|
|
89
|
+
) {
|
|
90
|
+
$n: list.index($breakpoint-names, $name);
|
|
91
|
+
@if $n != null and $n > 1 {
|
|
92
|
+
@return list.nth($breakpoint-names, $n - 1);
|
|
93
|
+
}
|
|
94
|
+
@return null;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/// Check to see if the given breakpoint name
|
|
98
|
+
/// @param {String} $name - The name of the brekapoint
|
|
99
|
+
/// @param {Map} $breakpoints [$grid-breakpoints] - A map of breakpoints where the key is the name of the breakpoint and the value is the values for the breakpoint
|
|
100
|
+
/// @return {Bool}
|
|
101
|
+
/// @access public
|
|
102
|
+
/// @group @carbon/layout
|
|
103
|
+
@function is-smallest-breakpoint($name, $breakpoints: $grid-breakpoints) {
|
|
104
|
+
@return list.index(map.keys($breakpoints), $name) == 1;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/// Returns the largest breakpoint name
|
|
108
|
+
/// @param {Map} $breakpoints [$grid-breakpoints] - A map of breakpoints where the key is the name
|
|
109
|
+
/// @return {String}
|
|
110
|
+
/// @access public
|
|
111
|
+
/// @group @carbon/layout
|
|
112
|
+
@function largest-breakpoint-name($breakpoints: $grid-breakpoints) {
|
|
113
|
+
$total-breakpoints: list.length($breakpoints);
|
|
114
|
+
@return key-by-index($breakpoints, $total-breakpoints);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/// Get the infix for a given breakpoint in a list of breakpoints. Usesful for generate the size part in a selector, for example: `.prefix--col-sm-2`.
|
|
118
|
+
/// @param {String} $name - The name of the breakpoint
|
|
119
|
+
/// @return {String}
|
|
120
|
+
/// @access public
|
|
121
|
+
/// @group @carbon/layout
|
|
122
|
+
@function breakpoint-infix($name) {
|
|
123
|
+
@return '-#{$name}';
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/// Generate a media query from the width of the given breakpoint to infinity
|
|
127
|
+
/// @param {String | Number} $name
|
|
128
|
+
/// @param {Map} $breakpoints [$grid-breakpoints] - A map of breakpoints where the key is the name
|
|
129
|
+
/// @content
|
|
130
|
+
/// @access public
|
|
131
|
+
/// @group @carbon/layout
|
|
132
|
+
@mixin breakpoint-up($name, $breakpoints: $grid-breakpoints) {
|
|
133
|
+
@if meta.type-of($name) == 'number' {
|
|
134
|
+
@media (min-width: $name) {
|
|
135
|
+
@content;
|
|
136
|
+
}
|
|
137
|
+
} @else if map.has-key($breakpoints, $name) {
|
|
138
|
+
$breakpoint: map.get($breakpoints, $name);
|
|
139
|
+
$width: map.get($breakpoint, width);
|
|
140
|
+
@if is-smallest-breakpoint($name, $breakpoints) {
|
|
141
|
+
@content;
|
|
142
|
+
} @else {
|
|
143
|
+
@media (min-width: $width) {
|
|
144
|
+
@content;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
} @else {
|
|
148
|
+
@error 'Unable to find a breakpoint with name `#{$name}`. Expected one of: (#{map.keys($breakpoints)})';
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
/// Generate a media query for the maximum width of the given styles
|
|
153
|
+
/// @param {String | Number} $name
|
|
154
|
+
/// @param {Map} $breakpoints [$grid-breakpoints] - A map of breakpoints where the key is the name
|
|
155
|
+
/// @content
|
|
156
|
+
/// @access public
|
|
157
|
+
/// @group @carbon/layout
|
|
158
|
+
@mixin breakpoint-down($name, $breakpoints: $grid-breakpoints) {
|
|
159
|
+
@if meta.type-of($name) == 'number' {
|
|
160
|
+
@media (max-width: $name) {
|
|
161
|
+
@content;
|
|
162
|
+
}
|
|
163
|
+
} @else if map.has-key($breakpoints, $name) {
|
|
164
|
+
// We borrow this logic from bootstrap for specifying the value of the
|
|
165
|
+
// max-width. The maximum width is calculated by finding the breakpoint and
|
|
166
|
+
// subtracting .02 from its value. This value is used instead of .01 to
|
|
167
|
+
// avoid rounding issues in Safari
|
|
168
|
+
// https://github.com/twbs/bootstrap/blob/c5b1919deaf5393fcca9e9b9d7ce9c338160d99d/scss/mixins/_breakpoints.scss#L34-L46
|
|
169
|
+
$breakpoint: map.get($breakpoints, $name);
|
|
170
|
+
$width: map.get($breakpoint, width) - 0.02;
|
|
171
|
+
@media (max-width: $width) {
|
|
172
|
+
@content;
|
|
173
|
+
}
|
|
174
|
+
} @else {
|
|
175
|
+
@error 'Unable to find a breakpoint with name `#{$name}`. Expected one of: (#{map.keys($breakpoints)})';
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
/// Generate a media query for the range between the lower and upper breakpoints
|
|
180
|
+
/// @param {String | Number} $lower
|
|
181
|
+
/// @param {String | Number} $upper
|
|
182
|
+
/// @param {Map} $breakpoints [$grid-breakpoints] - A map of breakpoints where the key is the name
|
|
183
|
+
/// @content
|
|
184
|
+
/// @access public
|
|
185
|
+
/// @group @carbon/layout
|
|
186
|
+
@mixin breakpoint-between($lower, $upper, $breakpoints: $grid-breakpoints) {
|
|
187
|
+
$is-number-lower: meta.type-of($lower) == 'number';
|
|
188
|
+
$is-number-upper: meta.type-of($upper) == 'number';
|
|
189
|
+
$min: if($is-number-lower, $lower, map.get($breakpoints, $lower));
|
|
190
|
+
$max: if($is-number-upper, $upper, map.get($breakpoints, $upper));
|
|
191
|
+
|
|
192
|
+
@if $min and $max {
|
|
193
|
+
$min-width: if(not $is-number-lower and $min, map.get($min, width), $min);
|
|
194
|
+
$max-width: if(not $is-number-upper and $max, map.get($max, width), $max);
|
|
195
|
+
@media (min-width: $min-width) and (max-width: $max-width) {
|
|
196
|
+
@content;
|
|
197
|
+
}
|
|
198
|
+
} @else if $min != null and $max == null {
|
|
199
|
+
@include breakpoint-up($lower) {
|
|
200
|
+
@content;
|
|
201
|
+
}
|
|
202
|
+
} @else if $min == null and $max != null {
|
|
203
|
+
@include breakpoint-down($upper) {
|
|
204
|
+
@content;
|
|
205
|
+
}
|
|
206
|
+
} @else {
|
|
207
|
+
@error 'Unable to find a breakpoint to satisfy: (#{$lower},#{$upper}). Expected both to be one of (#{map.keys($breakpoints)}).';
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
/// Generate media query for the largest breakpoint
|
|
212
|
+
/// @param {Map} $breakpoints [$grid-breakpoints] - A map of breakpoints where the key is the name
|
|
213
|
+
/// @content
|
|
214
|
+
/// @access public
|
|
215
|
+
/// @group @carbon/layout
|
|
216
|
+
@mixin largest-breakpoint($breakpoints: $grid-breakpoints) {
|
|
217
|
+
@include breakpoint(largest-breakpoint-name()) {
|
|
218
|
+
@content;
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
/// Generate a media query for a given breakpoint
|
|
223
|
+
/// @param {String | Number} $name
|
|
224
|
+
/// @param {Map} $breakpoints [$grid-breakpoints] - A map of breakpoints where the key is the name
|
|
225
|
+
/// @content
|
|
226
|
+
/// @access public
|
|
227
|
+
/// @group @carbon/layout
|
|
228
|
+
@mixin breakpoint($name, $breakpoints: $grid-breakpoints) {
|
|
229
|
+
@include breakpoint-up($name, $breakpoints) {
|
|
230
|
+
@content;
|
|
231
|
+
}
|
|
232
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright IBM Corp. 2018, 2018
|
|
3
|
+
//
|
|
4
|
+
// This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
+
// LICENSE file in the root directory of this source tree.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
/// Default font size
|
|
9
|
+
/// @type Number
|
|
10
|
+
/// @access public
|
|
11
|
+
/// @group @carbon/layout
|
|
12
|
+
$base-font-size: 16px !default;
|
|
13
|
+
|
|
14
|
+
/// Convert a given px unit to a rem unit
|
|
15
|
+
/// @param {Number} $px - Number with px unit
|
|
16
|
+
/// @return {Number} Number with rem unit
|
|
17
|
+
/// @access public
|
|
18
|
+
/// @group @carbon/layout
|
|
19
|
+
@function rem($px) {
|
|
20
|
+
@if unit($px) != 'px' {
|
|
21
|
+
// TODO: update to @error in v11
|
|
22
|
+
@warn "Expected argument $px to be of type `px`, instead received: `#{unit($px)}`";
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@return ($px / $base-font-size) * 1rem;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/// Convert a given px unit to a em unit
|
|
29
|
+
/// @param {Number} $px - Number with px unit
|
|
30
|
+
/// @return {Number} Number with em unit
|
|
31
|
+
/// @access public
|
|
32
|
+
/// @group @carbon/layout
|
|
33
|
+
@function em($px) {
|
|
34
|
+
@if unit($px) != 'px' {
|
|
35
|
+
// TODO: update to @error in v11
|
|
36
|
+
@warn "Expected argument $px to be of type `px`, instead received: `#{unit($px)}`";
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
@return ($px / $base-font-size) * 1em;
|
|
40
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright IBM Corp. 2018, 2018
|
|
3
|
+
//
|
|
4
|
+
// This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
+
// LICENSE file in the root directory of this source tree.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
/// Map deep get
|
|
9
|
+
/// @author Hugo Giraudel
|
|
10
|
+
/// @access public
|
|
11
|
+
/// @param {Map} $map - Map
|
|
12
|
+
/// @param {Arglist} $keys - Key chain
|
|
13
|
+
/// @return {*} Desired value
|
|
14
|
+
/// @group @carbon/layout
|
|
15
|
+
@function map-deep-get($map, $keys...) {
|
|
16
|
+
@each $key in $keys {
|
|
17
|
+
$map: map-get($map, $key);
|
|
18
|
+
}
|
|
19
|
+
@return $map;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/// Provide a map and index, and get back the relevant key value
|
|
23
|
+
/// @access public
|
|
24
|
+
/// @param {Map} $map - Map
|
|
25
|
+
/// @param {Integer} $index - Key chain
|
|
26
|
+
/// @return {String} Desired value
|
|
27
|
+
/// @group @carbon/layout
|
|
28
|
+
@function key-by-index($map, $index) {
|
|
29
|
+
$keys: map-keys($map);
|
|
30
|
+
@return nth($keys, $index);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/// Pass in a map, and get the last one in the list back
|
|
34
|
+
/// @access public
|
|
35
|
+
/// @param {Map} $map - Map
|
|
36
|
+
/// @return {*} Desired value
|
|
37
|
+
/// @group @carbon/layout
|
|
38
|
+
@function last-map-item($map) {
|
|
39
|
+
$total-length: length($map);
|
|
40
|
+
@return map-get($map, carbon--key-by-index($map, $total-length));
|
|
41
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
// Code generated by @carbon/layout. DO NOT EDIT.
|
|
2
|
+
//
|
|
3
|
+
// Copyright IBM Corp. 2018, 2019
|
|
4
|
+
//
|
|
5
|
+
// This source code is licensed under the Apache-2.0 license found in the
|
|
6
|
+
// LICENSE file in the root directory of this source tree.
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
/// @type Number
|
|
10
|
+
/// @access public
|
|
11
|
+
/// @group @carbon/layout
|
|
12
|
+
$fluid-spacing-01: 0 !default;
|
|
13
|
+
|
|
14
|
+
/// @type Number
|
|
15
|
+
/// @access public
|
|
16
|
+
/// @group @carbon/layout
|
|
17
|
+
$fluid-spacing-02: 2vw !default;
|
|
18
|
+
|
|
19
|
+
/// @type Number
|
|
20
|
+
/// @access public
|
|
21
|
+
/// @group @carbon/layout
|
|
22
|
+
$fluid-spacing-03: 5vw !default;
|
|
23
|
+
|
|
24
|
+
/// @type Number
|
|
25
|
+
/// @access public
|
|
26
|
+
/// @group @carbon/layout
|
|
27
|
+
$fluid-spacing-04: 10vw !default;
|
|
28
|
+
|
|
29
|
+
/// @type Map
|
|
30
|
+
/// @access public
|
|
31
|
+
/// @group @carbon/layout
|
|
32
|
+
$fluid-spacing: (
|
|
33
|
+
fluid-spacing-01: $fluid-spacing-01,
|
|
34
|
+
fluid-spacing-02: $fluid-spacing-02,
|
|
35
|
+
fluid-spacing-03: $fluid-spacing-03,
|
|
36
|
+
fluid-spacing-04: $fluid-spacing-04,
|
|
37
|
+
);
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
// Code generated by @carbon/layout. DO NOT EDIT.
|
|
2
|
+
//
|
|
3
|
+
// Copyright IBM Corp. 2018, 2019
|
|
4
|
+
//
|
|
5
|
+
// This source code is licensed under the Apache-2.0 license found in the
|
|
6
|
+
// LICENSE file in the root directory of this source tree.
|
|
7
|
+
//
|
|
8
|
+
|
|
9
|
+
/// @type Number
|
|
10
|
+
/// @access public
|
|
11
|
+
/// @group @carbon/layout
|
|
12
|
+
$spacing-01: 0.125rem !default;
|
|
13
|
+
|
|
14
|
+
/// @type Number
|
|
15
|
+
/// @access public
|
|
16
|
+
/// @group @carbon/layout
|
|
17
|
+
$spacing-02: 0.25rem !default;
|
|
18
|
+
|
|
19
|
+
/// @type Number
|
|
20
|
+
/// @access public
|
|
21
|
+
/// @group @carbon/layout
|
|
22
|
+
$spacing-03: 0.5rem !default;
|
|
23
|
+
|
|
24
|
+
/// @type Number
|
|
25
|
+
/// @access public
|
|
26
|
+
/// @group @carbon/layout
|
|
27
|
+
$spacing-04: 0.75rem !default;
|
|
28
|
+
|
|
29
|
+
/// @type Number
|
|
30
|
+
/// @access public
|
|
31
|
+
/// @group @carbon/layout
|
|
32
|
+
$spacing-05: 1rem !default;
|
|
33
|
+
|
|
34
|
+
/// @type Number
|
|
35
|
+
/// @access public
|
|
36
|
+
/// @group @carbon/layout
|
|
37
|
+
$spacing-06: 1.5rem !default;
|
|
38
|
+
|
|
39
|
+
/// @type Number
|
|
40
|
+
/// @access public
|
|
41
|
+
/// @group @carbon/layout
|
|
42
|
+
$spacing-07: 2rem !default;
|
|
43
|
+
|
|
44
|
+
/// @type Number
|
|
45
|
+
/// @access public
|
|
46
|
+
/// @group @carbon/layout
|
|
47
|
+
$spacing-08: 2.5rem !default;
|
|
48
|
+
|
|
49
|
+
/// @type Number
|
|
50
|
+
/// @access public
|
|
51
|
+
/// @group @carbon/layout
|
|
52
|
+
$spacing-09: 3rem !default;
|
|
53
|
+
|
|
54
|
+
/// @type Number
|
|
55
|
+
/// @access public
|
|
56
|
+
/// @group @carbon/layout
|
|
57
|
+
$spacing-10: 4rem !default;
|
|
58
|
+
|
|
59
|
+
/// @type Number
|
|
60
|
+
/// @access public
|
|
61
|
+
/// @group @carbon/layout
|
|
62
|
+
$spacing-11: 5rem !default;
|
|
63
|
+
|
|
64
|
+
/// @type Number
|
|
65
|
+
/// @access public
|
|
66
|
+
/// @group @carbon/layout
|
|
67
|
+
$spacing-12: 6rem !default;
|
|
68
|
+
|
|
69
|
+
/// @type Map
|
|
70
|
+
/// @access public
|
|
71
|
+
/// @group @carbon/layout
|
|
72
|
+
$spacing: (
|
|
73
|
+
spacing-01: $spacing-01,
|
|
74
|
+
spacing-02: $spacing-02,
|
|
75
|
+
spacing-03: $spacing-03,
|
|
76
|
+
spacing-04: $spacing-04,
|
|
77
|
+
spacing-05: $spacing-05,
|
|
78
|
+
spacing-06: $spacing-06,
|
|
79
|
+
spacing-07: $spacing-07,
|
|
80
|
+
spacing-08: $spacing-08,
|
|
81
|
+
spacing-09: $spacing-09,
|
|
82
|
+
spacing-10: $spacing-10,
|
|
83
|
+
spacing-11: $spacing-11,
|
|
84
|
+
spacing-12: $spacing-12,
|
|
85
|
+
);
|
|
@@ -22,6 +22,7 @@ describe('type', () => {
|
|
|
22
22
|
"getTypeSize",
|
|
23
23
|
"scale",
|
|
24
24
|
"fluid",
|
|
25
|
+
"unstable_tokens",
|
|
25
26
|
"styles",
|
|
26
27
|
"caption01",
|
|
27
28
|
"label01",
|
|
@@ -54,7 +55,6 @@ describe('type', () => {
|
|
|
54
55
|
"display02",
|
|
55
56
|
"display03",
|
|
56
57
|
"display04",
|
|
57
|
-
"unstable_tokens",
|
|
58
58
|
]
|
|
59
59
|
`);
|
|
60
60
|
});
|
package/src/index.js
CHANGED
package/src/tokens.js
CHANGED
|
@@ -5,36 +5,69 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
+
// Unstable tokens
|
|
9
|
+
export const caption01 = 'caption01';
|
|
10
|
+
export const label01 = 'label01';
|
|
11
|
+
export const helperText01 = 'helperText01';
|
|
12
|
+
export const bodyShort01 = 'bodyShort01';
|
|
13
|
+
export const bodyLong01 = 'bodyLong01';
|
|
14
|
+
export const bodyShort02 = 'bodyShort02';
|
|
15
|
+
export const bodyLong02 = 'bodyLong02';
|
|
16
|
+
export const code01 = 'code01';
|
|
17
|
+
export const code02 = 'code02';
|
|
18
|
+
export const heading01 = 'heading01';
|
|
19
|
+
export const productiveHeading01 = 'productiveHeading01';
|
|
20
|
+
export const heading02 = 'heading02';
|
|
21
|
+
export const productiveHeading02 = 'productiveHeading02';
|
|
22
|
+
export const productiveHeading03 = 'productiveHeading03';
|
|
23
|
+
export const productiveHeading04 = 'productiveHeading04';
|
|
24
|
+
export const productiveHeading05 = 'productiveHeading05';
|
|
25
|
+
export const productiveHeading06 = 'productiveHeading06';
|
|
26
|
+
export const productiveHeading07 = 'productiveHeading07';
|
|
27
|
+
export const expressiveHeading01 = 'expressiveHeading01';
|
|
28
|
+
export const expressiveHeading02 = 'expressiveHeading02';
|
|
29
|
+
export const expressiveHeading03 = 'expressiveHeading03';
|
|
30
|
+
export const expressiveHeading04 = 'expressiveHeading04';
|
|
31
|
+
export const expressiveHeading05 = 'expressiveHeading05';
|
|
32
|
+
export const expressiveHeading06 = 'expressiveHeading06';
|
|
33
|
+
export const expressiveParagraph01 = 'expressiveParagraph01';
|
|
34
|
+
export const quotation01 = 'quotation01';
|
|
35
|
+
export const quotation02 = 'quotation02';
|
|
36
|
+
export const display01 = 'display01';
|
|
37
|
+
export const display02 = 'display02';
|
|
38
|
+
export const display03 = 'display03';
|
|
39
|
+
export const display04 = 'display04';
|
|
40
|
+
|
|
8
41
|
export const unstable_tokens = [
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
42
|
+
caption01,
|
|
43
|
+
label01,
|
|
44
|
+
helperText01,
|
|
45
|
+
bodyShort01,
|
|
46
|
+
bodyLong01,
|
|
47
|
+
bodyShort02,
|
|
48
|
+
bodyLong02,
|
|
49
|
+
code01,
|
|
50
|
+
code02,
|
|
51
|
+
heading01,
|
|
52
|
+
productiveHeading01,
|
|
53
|
+
heading02,
|
|
54
|
+
productiveHeading02,
|
|
55
|
+
productiveHeading03,
|
|
56
|
+
productiveHeading04,
|
|
57
|
+
productiveHeading05,
|
|
58
|
+
productiveHeading06,
|
|
59
|
+
productiveHeading07,
|
|
60
|
+
expressiveHeading01,
|
|
61
|
+
expressiveHeading02,
|
|
62
|
+
expressiveHeading03,
|
|
63
|
+
expressiveHeading04,
|
|
64
|
+
expressiveHeading05,
|
|
65
|
+
expressiveHeading06,
|
|
66
|
+
expressiveParagraph01,
|
|
67
|
+
quotation01,
|
|
68
|
+
quotation02,
|
|
69
|
+
display01,
|
|
70
|
+
display02,
|
|
71
|
+
display03,
|
|
72
|
+
display04,
|
|
40
73
|
];
|
package/umd/index.js
CHANGED
|
@@ -719,7 +719,39 @@
|
|
|
719
719
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
720
720
|
* LICENSE file in the root directory of this source tree.
|
|
721
721
|
*/
|
|
722
|
-
|
|
722
|
+
// Unstable tokens
|
|
723
|
+
var caption01$1 = 'caption01';
|
|
724
|
+
var label01$1 = 'label01';
|
|
725
|
+
var helperText01$1 = 'helperText01';
|
|
726
|
+
var bodyShort01$1 = 'bodyShort01';
|
|
727
|
+
var bodyLong01$1 = 'bodyLong01';
|
|
728
|
+
var bodyShort02$1 = 'bodyShort02';
|
|
729
|
+
var bodyLong02$1 = 'bodyLong02';
|
|
730
|
+
var code01$1 = 'code01';
|
|
731
|
+
var code02$1 = 'code02';
|
|
732
|
+
var heading01$1 = 'heading01';
|
|
733
|
+
var productiveHeading01$1 = 'productiveHeading01';
|
|
734
|
+
var heading02$1 = 'heading02';
|
|
735
|
+
var productiveHeading02$1 = 'productiveHeading02';
|
|
736
|
+
var productiveHeading03$1 = 'productiveHeading03';
|
|
737
|
+
var productiveHeading04$1 = 'productiveHeading04';
|
|
738
|
+
var productiveHeading05$1 = 'productiveHeading05';
|
|
739
|
+
var productiveHeading06$1 = 'productiveHeading06';
|
|
740
|
+
var productiveHeading07$1 = 'productiveHeading07';
|
|
741
|
+
var expressiveHeading01$1 = 'expressiveHeading01';
|
|
742
|
+
var expressiveHeading02$1 = 'expressiveHeading02';
|
|
743
|
+
var expressiveHeading03$1 = 'expressiveHeading03';
|
|
744
|
+
var expressiveHeading04$1 = 'expressiveHeading04';
|
|
745
|
+
var expressiveHeading05$1 = 'expressiveHeading05';
|
|
746
|
+
var expressiveHeading06$1 = 'expressiveHeading06';
|
|
747
|
+
var expressiveParagraph01$1 = 'expressiveParagraph01';
|
|
748
|
+
var quotation01$1 = 'quotation01';
|
|
749
|
+
var quotation02$1 = 'quotation02';
|
|
750
|
+
var display01$1 = 'display01';
|
|
751
|
+
var display02$1 = 'display02';
|
|
752
|
+
var display03$1 = 'display03';
|
|
753
|
+
var display04$1 = 'display04';
|
|
754
|
+
var unstable_tokens = [caption01$1, label01$1, helperText01$1, bodyShort01$1, bodyLong01$1, bodyShort02$1, bodyLong02$1, code01$1, code02$1, heading01$1, productiveHeading01$1, heading02$1, productiveHeading02$1, productiveHeading03$1, productiveHeading04$1, productiveHeading05$1, productiveHeading06$1, productiveHeading07$1, expressiveHeading01$1, expressiveHeading02$1, expressiveHeading03$1, expressiveHeading04$1, expressiveHeading05$1, expressiveHeading06$1, expressiveParagraph01$1, quotation01$1, quotation02$1, display01$1, display02$1, display03$1, display04$1];
|
|
723
755
|
|
|
724
756
|
exports.bodyLong01 = bodyLong01;
|
|
725
757
|
exports.bodyLong02 = bodyLong02;
|