@primer/primitives 11.3.2-rc.49de51de → 11.4.0-rc.9888784

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.
@@ -0,0 +1,18 @@
1
+ :root {
2
+ --base-duration-0: 0ms;
3
+ --base-duration-100: 100ms;
4
+ --base-duration-1000: 1s;
5
+ --base-duration-200: 200ms;
6
+ --base-duration-300: 300ms;
7
+ --base-duration-400: 400ms;
8
+ --base-duration-50: 50ms;
9
+ --base-duration-500: 500ms;
10
+ --base-duration-600: 600ms;
11
+ --base-duration-700: 700ms;
12
+ --base-duration-800: 800ms;
13
+ --base-duration-900: 900ms;
14
+ --base-easing-easeIn: cubic-bezier(0.7, 0.1, 0.75, 0.9); /** Ideal for movement that starts on the page and ends off the page. */
15
+ --base-easing-easeInOut: cubic-bezier(0.6, 0, 0.2, 1); /** Ideal for movement that starts and ends on the page. */
16
+ --base-easing-easeOut: cubic-bezier(0.3, 0.8, 0.6, 1); /** Ideal for movement that starts off the page and ends on the page. */
17
+ --base-easing-linear: cubic-bezier(0, 0, 1, 1); /** Ideal for non-movement properties, like opacity or background color. */
18
+ }
@@ -1,6 +1,7 @@
1
1
  @import './base/motion/motion.css';
2
2
  @import './base/size/size.css';
3
3
  @import './base/typography/typography.css';
4
+ @import './functional/motion/motion.css';
4
5
  @import './functional/size/border.css';
5
6
  @import './functional/size/breakpoints.css';
6
7
  @import './functional/size/size-coarse.css';
@@ -0,0 +1,250 @@
1
+ {
2
+ "base-duration-0": {
3
+ "key": "{base.duration.0}",
4
+ "filePath": "src/tokens/base/motion/timing.json5",
5
+ "isSource": true,
6
+ "original": {
7
+ "$value": "0ms",
8
+ "$type": "duration",
9
+ "key": "{base.duration.0}"
10
+ },
11
+ "name": "base-duration-0",
12
+ "attributes": {},
13
+ "path": ["base", "duration", "0"],
14
+ "value": "0ms",
15
+ "type": "duration"
16
+ },
17
+ "base-duration-100": {
18
+ "key": "{base.duration.100}",
19
+ "filePath": "src/tokens/base/motion/timing.json5",
20
+ "isSource": true,
21
+ "original": {
22
+ "$value": "100ms",
23
+ "$type": "duration",
24
+ "key": "{base.duration.100}"
25
+ },
26
+ "name": "base-duration-100",
27
+ "attributes": {},
28
+ "path": ["base", "duration", "100"],
29
+ "value": "100ms",
30
+ "type": "duration"
31
+ },
32
+ "base-duration-1000": {
33
+ "key": "{base.duration.1000}",
34
+ "filePath": "src/tokens/base/motion/timing.json5",
35
+ "isSource": true,
36
+ "original": {
37
+ "$value": "1000ms",
38
+ "$type": "duration",
39
+ "key": "{base.duration.1000}"
40
+ },
41
+ "name": "base-duration-1000",
42
+ "attributes": {},
43
+ "path": ["base", "duration", "1000"],
44
+ "value": "1000ms",
45
+ "type": "duration"
46
+ },
47
+ "base-duration-200": {
48
+ "key": "{base.duration.200}",
49
+ "filePath": "src/tokens/base/motion/timing.json5",
50
+ "isSource": true,
51
+ "original": {
52
+ "$value": "200ms",
53
+ "$type": "duration",
54
+ "key": "{base.duration.200}"
55
+ },
56
+ "name": "base-duration-200",
57
+ "attributes": {},
58
+ "path": ["base", "duration", "200"],
59
+ "value": "200ms",
60
+ "type": "duration"
61
+ },
62
+ "base-duration-300": {
63
+ "key": "{base.duration.300}",
64
+ "filePath": "src/tokens/base/motion/timing.json5",
65
+ "isSource": true,
66
+ "original": {
67
+ "$value": "300ms",
68
+ "$type": "duration",
69
+ "key": "{base.duration.300}"
70
+ },
71
+ "name": "base-duration-300",
72
+ "attributes": {},
73
+ "path": ["base", "duration", "300"],
74
+ "value": "300ms",
75
+ "type": "duration"
76
+ },
77
+ "base-duration-400": {
78
+ "key": "{base.duration.400}",
79
+ "filePath": "src/tokens/base/motion/timing.json5",
80
+ "isSource": true,
81
+ "original": {
82
+ "$value": "400ms",
83
+ "$type": "duration",
84
+ "key": "{base.duration.400}"
85
+ },
86
+ "name": "base-duration-400",
87
+ "attributes": {},
88
+ "path": ["base", "duration", "400"],
89
+ "value": "400ms",
90
+ "type": "duration"
91
+ },
92
+ "base-duration-50": {
93
+ "key": "{base.duration.50}",
94
+ "filePath": "src/tokens/base/motion/timing.json5",
95
+ "isSource": true,
96
+ "original": {
97
+ "$value": "50ms",
98
+ "$type": "duration",
99
+ "key": "{base.duration.50}"
100
+ },
101
+ "name": "base-duration-50",
102
+ "attributes": {},
103
+ "path": ["base", "duration", "50"],
104
+ "value": "50ms",
105
+ "type": "duration"
106
+ },
107
+ "base-duration-500": {
108
+ "key": "{base.duration.500}",
109
+ "filePath": "src/tokens/base/motion/timing.json5",
110
+ "isSource": true,
111
+ "original": {
112
+ "$value": "500ms",
113
+ "$type": "duration",
114
+ "key": "{base.duration.500}"
115
+ },
116
+ "name": "base-duration-500",
117
+ "attributes": {},
118
+ "path": ["base", "duration", "500"],
119
+ "value": "500ms",
120
+ "type": "duration"
121
+ },
122
+ "base-duration-600": {
123
+ "key": "{base.duration.600}",
124
+ "filePath": "src/tokens/base/motion/timing.json5",
125
+ "isSource": true,
126
+ "original": {
127
+ "$value": "600ms",
128
+ "$type": "duration",
129
+ "key": "{base.duration.600}"
130
+ },
131
+ "name": "base-duration-600",
132
+ "attributes": {},
133
+ "path": ["base", "duration", "600"],
134
+ "value": "600ms",
135
+ "type": "duration"
136
+ },
137
+ "base-duration-700": {
138
+ "key": "{base.duration.700}",
139
+ "filePath": "src/tokens/base/motion/timing.json5",
140
+ "isSource": true,
141
+ "original": {
142
+ "$value": "700ms",
143
+ "$type": "duration",
144
+ "key": "{base.duration.700}"
145
+ },
146
+ "name": "base-duration-700",
147
+ "attributes": {},
148
+ "path": ["base", "duration", "700"],
149
+ "value": "700ms",
150
+ "type": "duration"
151
+ },
152
+ "base-duration-800": {
153
+ "key": "{base.duration.800}",
154
+ "filePath": "src/tokens/base/motion/timing.json5",
155
+ "isSource": true,
156
+ "original": {
157
+ "$value": "800ms",
158
+ "$type": "duration",
159
+ "key": "{base.duration.800}"
160
+ },
161
+ "name": "base-duration-800",
162
+ "attributes": {},
163
+ "path": ["base", "duration", "800"],
164
+ "value": "800ms",
165
+ "type": "duration"
166
+ },
167
+ "base-duration-900": {
168
+ "key": "{base.duration.900}",
169
+ "filePath": "src/tokens/base/motion/timing.json5",
170
+ "isSource": true,
171
+ "original": {
172
+ "$value": "900ms",
173
+ "$type": "duration",
174
+ "key": "{base.duration.900}"
175
+ },
176
+ "name": "base-duration-900",
177
+ "attributes": {},
178
+ "path": ["base", "duration", "900"],
179
+ "value": "900ms",
180
+ "type": "duration"
181
+ },
182
+ "base-easing-easeIn": {
183
+ "key": "{base.easing.easeIn}",
184
+ "filePath": "src/tokens/base/motion/easing.json5",
185
+ "isSource": true,
186
+ "original": {
187
+ "$value": [0.7, 0.1, 0.75, 0.9],
188
+ "$type": "cubicBezier",
189
+ "$description": "Ideal for movement that starts on the page and ends off the page.",
190
+ "key": "{base.easing.easeIn}"
191
+ },
192
+ "name": "base-easing-easeIn",
193
+ "attributes": {},
194
+ "path": ["base", "easing", "easeIn"],
195
+ "value": [0.7, 0.1, 0.75, 0.9],
196
+ "type": "cubicBezier",
197
+ "description": "Ideal for movement that starts on the page and ends off the page."
198
+ },
199
+ "base-easing-easeInOut": {
200
+ "key": "{base.easing.easeInOut}",
201
+ "filePath": "src/tokens/base/motion/easing.json5",
202
+ "isSource": true,
203
+ "original": {
204
+ "$value": [0.6, 0, 0.2, 1],
205
+ "$type": "cubicBezier",
206
+ "$description": "Ideal for movement that starts and ends on the page.",
207
+ "key": "{base.easing.easeInOut}"
208
+ },
209
+ "name": "base-easing-easeInOut",
210
+ "attributes": {},
211
+ "path": ["base", "easing", "easeInOut"],
212
+ "value": [0.6, 0, 0.2, 1],
213
+ "type": "cubicBezier",
214
+ "description": "Ideal for movement that starts and ends on the page."
215
+ },
216
+ "base-easing-easeOut": {
217
+ "key": "{base.easing.easeOut}",
218
+ "filePath": "src/tokens/base/motion/easing.json5",
219
+ "isSource": true,
220
+ "original": {
221
+ "$value": [0.3, 0.8, 0.6, 1],
222
+ "$type": "cubicBezier",
223
+ "$description": "Ideal for movement that starts off the page and ends on the page.",
224
+ "key": "{base.easing.easeOut}"
225
+ },
226
+ "name": "base-easing-easeOut",
227
+ "attributes": {},
228
+ "path": ["base", "easing", "easeOut"],
229
+ "value": [0.3, 0.8, 0.6, 1],
230
+ "type": "cubicBezier",
231
+ "description": "Ideal for movement that starts off the page and ends on the page."
232
+ },
233
+ "base-easing-linear": {
234
+ "key": "{base.easing.linear}",
235
+ "filePath": "src/tokens/base/motion/easing.json5",
236
+ "isSource": true,
237
+ "original": {
238
+ "$value": [0, 0, 1, 1],
239
+ "$type": "cubicBezier",
240
+ "$description": "Ideal for non-movement properties, like opacity or background color.",
241
+ "key": "{base.easing.linear}"
242
+ },
243
+ "name": "base-easing-linear",
244
+ "attributes": {},
245
+ "path": ["base", "easing", "linear"],
246
+ "value": [0, 0, 1, 1],
247
+ "type": "cubicBezier",
248
+ "description": "Ideal for non-movement properties, like opacity or background color."
249
+ }
250
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "--base-easing-linear": [0, 0, 1, 1],
3
+ "--base-easing-easeIn": [0.7, 0.1, 0.75, 0.9],
4
+ "--base-easing-easeOut": [0.3, 0.8, 0.6, 1],
5
+ "--base-easing-easeInOut": [0.6, 0, 0.2, 1],
6
+ "--base-duration-0": "0ms",
7
+ "--base-duration-50": "50ms",
8
+ "--base-duration-100": "100ms",
9
+ "--base-duration-200": "200ms",
10
+ "--base-duration-300": "300ms",
11
+ "--base-duration-400": "400ms",
12
+ "--base-duration-500": "500ms",
13
+ "--base-duration-600": "600ms",
14
+ "--base-duration-700": "700ms",
15
+ "--base-duration-800": "800ms",
16
+ "--base-duration-900": "900ms",
17
+ "--base-duration-1000": "1000ms"
18
+ }
@@ -0,0 +1,250 @@
1
+ {
2
+ "base-duration-0": {
3
+ "key": "{base.duration.0}",
4
+ "$value": "0ms",
5
+ "$type": "duration",
6
+ "filePath": "src/tokens/base/motion/timing.json5",
7
+ "isSource": true,
8
+ "original": {
9
+ "$value": "0ms",
10
+ "$type": "duration",
11
+ "key": "{base.duration.0}"
12
+ },
13
+ "name": "base-duration-0",
14
+ "attributes": {},
15
+ "path": ["base", "duration", "0"]
16
+ },
17
+ "base-duration-100": {
18
+ "key": "{base.duration.100}",
19
+ "$value": "100ms",
20
+ "$type": "duration",
21
+ "filePath": "src/tokens/base/motion/timing.json5",
22
+ "isSource": true,
23
+ "original": {
24
+ "$value": "100ms",
25
+ "$type": "duration",
26
+ "key": "{base.duration.100}"
27
+ },
28
+ "name": "base-duration-100",
29
+ "attributes": {},
30
+ "path": ["base", "duration", "100"]
31
+ },
32
+ "base-duration-1000": {
33
+ "key": "{base.duration.1000}",
34
+ "$value": "1000ms",
35
+ "$type": "duration",
36
+ "filePath": "src/tokens/base/motion/timing.json5",
37
+ "isSource": true,
38
+ "original": {
39
+ "$value": "1000ms",
40
+ "$type": "duration",
41
+ "key": "{base.duration.1000}"
42
+ },
43
+ "name": "base-duration-1000",
44
+ "attributes": {},
45
+ "path": ["base", "duration", "1000"]
46
+ },
47
+ "base-duration-200": {
48
+ "key": "{base.duration.200}",
49
+ "$value": "200ms",
50
+ "$type": "duration",
51
+ "filePath": "src/tokens/base/motion/timing.json5",
52
+ "isSource": true,
53
+ "original": {
54
+ "$value": "200ms",
55
+ "$type": "duration",
56
+ "key": "{base.duration.200}"
57
+ },
58
+ "name": "base-duration-200",
59
+ "attributes": {},
60
+ "path": ["base", "duration", "200"]
61
+ },
62
+ "base-duration-300": {
63
+ "key": "{base.duration.300}",
64
+ "$value": "300ms",
65
+ "$type": "duration",
66
+ "filePath": "src/tokens/base/motion/timing.json5",
67
+ "isSource": true,
68
+ "original": {
69
+ "$value": "300ms",
70
+ "$type": "duration",
71
+ "key": "{base.duration.300}"
72
+ },
73
+ "name": "base-duration-300",
74
+ "attributes": {},
75
+ "path": ["base", "duration", "300"]
76
+ },
77
+ "base-duration-400": {
78
+ "key": "{base.duration.400}",
79
+ "$value": "400ms",
80
+ "$type": "duration",
81
+ "filePath": "src/tokens/base/motion/timing.json5",
82
+ "isSource": true,
83
+ "original": {
84
+ "$value": "400ms",
85
+ "$type": "duration",
86
+ "key": "{base.duration.400}"
87
+ },
88
+ "name": "base-duration-400",
89
+ "attributes": {},
90
+ "path": ["base", "duration", "400"]
91
+ },
92
+ "base-duration-50": {
93
+ "key": "{base.duration.50}",
94
+ "$value": "50ms",
95
+ "$type": "duration",
96
+ "filePath": "src/tokens/base/motion/timing.json5",
97
+ "isSource": true,
98
+ "original": {
99
+ "$value": "50ms",
100
+ "$type": "duration",
101
+ "key": "{base.duration.50}"
102
+ },
103
+ "name": "base-duration-50",
104
+ "attributes": {},
105
+ "path": ["base", "duration", "50"]
106
+ },
107
+ "base-duration-500": {
108
+ "key": "{base.duration.500}",
109
+ "$value": "500ms",
110
+ "$type": "duration",
111
+ "filePath": "src/tokens/base/motion/timing.json5",
112
+ "isSource": true,
113
+ "original": {
114
+ "$value": "500ms",
115
+ "$type": "duration",
116
+ "key": "{base.duration.500}"
117
+ },
118
+ "name": "base-duration-500",
119
+ "attributes": {},
120
+ "path": ["base", "duration", "500"]
121
+ },
122
+ "base-duration-600": {
123
+ "key": "{base.duration.600}",
124
+ "$value": "600ms",
125
+ "$type": "duration",
126
+ "filePath": "src/tokens/base/motion/timing.json5",
127
+ "isSource": true,
128
+ "original": {
129
+ "$value": "600ms",
130
+ "$type": "duration",
131
+ "key": "{base.duration.600}"
132
+ },
133
+ "name": "base-duration-600",
134
+ "attributes": {},
135
+ "path": ["base", "duration", "600"]
136
+ },
137
+ "base-duration-700": {
138
+ "key": "{base.duration.700}",
139
+ "$value": "700ms",
140
+ "$type": "duration",
141
+ "filePath": "src/tokens/base/motion/timing.json5",
142
+ "isSource": true,
143
+ "original": {
144
+ "$value": "700ms",
145
+ "$type": "duration",
146
+ "key": "{base.duration.700}"
147
+ },
148
+ "name": "base-duration-700",
149
+ "attributes": {},
150
+ "path": ["base", "duration", "700"]
151
+ },
152
+ "base-duration-800": {
153
+ "key": "{base.duration.800}",
154
+ "$value": "800ms",
155
+ "$type": "duration",
156
+ "filePath": "src/tokens/base/motion/timing.json5",
157
+ "isSource": true,
158
+ "original": {
159
+ "$value": "800ms",
160
+ "$type": "duration",
161
+ "key": "{base.duration.800}"
162
+ },
163
+ "name": "base-duration-800",
164
+ "attributes": {},
165
+ "path": ["base", "duration", "800"]
166
+ },
167
+ "base-duration-900": {
168
+ "key": "{base.duration.900}",
169
+ "$value": "900ms",
170
+ "$type": "duration",
171
+ "filePath": "src/tokens/base/motion/timing.json5",
172
+ "isSource": true,
173
+ "original": {
174
+ "$value": "900ms",
175
+ "$type": "duration",
176
+ "key": "{base.duration.900}"
177
+ },
178
+ "name": "base-duration-900",
179
+ "attributes": {},
180
+ "path": ["base", "duration", "900"]
181
+ },
182
+ "base-easing-easeIn": {
183
+ "key": "{base.easing.easeIn}",
184
+ "$value": [0.7, 0.1, 0.75, 0.9],
185
+ "$type": "cubicBezier",
186
+ "$description": "Ideal for movement that starts on the page and ends off the page.",
187
+ "filePath": "src/tokens/base/motion/easing.json5",
188
+ "isSource": true,
189
+ "original": {
190
+ "$value": [0.7, 0.1, 0.75, 0.9],
191
+ "$type": "cubicBezier",
192
+ "$description": "Ideal for movement that starts on the page and ends off the page.",
193
+ "key": "{base.easing.easeIn}"
194
+ },
195
+ "name": "base-easing-easeIn",
196
+ "attributes": {},
197
+ "path": ["base", "easing", "easeIn"]
198
+ },
199
+ "base-easing-easeInOut": {
200
+ "key": "{base.easing.easeInOut}",
201
+ "$value": [0.6, 0, 0.2, 1],
202
+ "$type": "cubicBezier",
203
+ "$description": "Ideal for movement that starts and ends on the page.",
204
+ "filePath": "src/tokens/base/motion/easing.json5",
205
+ "isSource": true,
206
+ "original": {
207
+ "$value": [0.6, 0, 0.2, 1],
208
+ "$type": "cubicBezier",
209
+ "$description": "Ideal for movement that starts and ends on the page.",
210
+ "key": "{base.easing.easeInOut}"
211
+ },
212
+ "name": "base-easing-easeInOut",
213
+ "attributes": {},
214
+ "path": ["base", "easing", "easeInOut"]
215
+ },
216
+ "base-easing-easeOut": {
217
+ "key": "{base.easing.easeOut}",
218
+ "$value": [0.3, 0.8, 0.6, 1],
219
+ "$type": "cubicBezier",
220
+ "$description": "Ideal for movement that starts off the page and ends on the page.",
221
+ "filePath": "src/tokens/base/motion/easing.json5",
222
+ "isSource": true,
223
+ "original": {
224
+ "$value": [0.3, 0.8, 0.6, 1],
225
+ "$type": "cubicBezier",
226
+ "$description": "Ideal for movement that starts off the page and ends on the page.",
227
+ "key": "{base.easing.easeOut}"
228
+ },
229
+ "name": "base-easing-easeOut",
230
+ "attributes": {},
231
+ "path": ["base", "easing", "easeOut"]
232
+ },
233
+ "base-easing-linear": {
234
+ "key": "{base.easing.linear}",
235
+ "$value": [0, 0, 1, 1],
236
+ "$type": "cubicBezier",
237
+ "$description": "Ideal for non-movement properties, like opacity or background color.",
238
+ "filePath": "src/tokens/base/motion/easing.json5",
239
+ "isSource": true,
240
+ "original": {
241
+ "$value": [0, 0, 1, 1],
242
+ "$type": "cubicBezier",
243
+ "$description": "Ideal for non-movement properties, like opacity or background color.",
244
+ "key": "{base.easing.linear}"
245
+ },
246
+ "name": "base-easing-linear",
247
+ "attributes": {},
248
+ "path": ["base", "easing", "linear"]
249
+ }
250
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primer/primitives",
3
- "version": "11.3.2-rc.49de51de",
3
+ "version": "11.4.0-rc.09888784",
4
4
  "description": "Typography, spacing, and color primitives for Primer design system",
5
5
  "type": "module",
6
6
  "files": [
@@ -58,6 +58,7 @@
58
58
  "@vitest/coverage-v8": "^3.2.4",
59
59
  "color-blend": "^4.0.0",
60
60
  "color2k": "^2.0.3",
61
+ "concurrently": "^9.2.1",
61
62
  "console-table-printer": "^2.12.1",
62
63
  "eslint": "^9.34.0",
63
64
  "eslint-config-prettier": "^10.1.8",