@pandacss/token-dictionary 0.0.0-dev-20230212160146 → 0.0.0-dev-20230212162719
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/index.js +4 -4
- package/dist/index.mjs +4 -4
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -225,10 +225,10 @@ var TokenTypes = {
|
|
|
225
225
|
// src/dictionary.ts
|
|
226
226
|
function expandBreakpoints(breakpoints) {
|
|
227
227
|
if (!breakpoints)
|
|
228
|
-
return {
|
|
228
|
+
return { breakpoints: {}, sizes: {} };
|
|
229
229
|
return {
|
|
230
|
-
|
|
231
|
-
sizes: Object.fromEntries(Object.entries(breakpoints).map(([key, value]) => [`
|
|
230
|
+
breakpoints: (0, import_shared3.mapObject)(breakpoints, (value) => ({ value })),
|
|
231
|
+
sizes: Object.fromEntries(Object.entries(breakpoints).map(([key, value]) => [`breakpoint-${key}`, { value }]))
|
|
232
232
|
};
|
|
233
233
|
}
|
|
234
234
|
var TokenDictionary = class {
|
|
@@ -242,7 +242,7 @@ var TokenDictionary = class {
|
|
|
242
242
|
const breakpointTokens = expandBreakpoints(breakpoints);
|
|
243
243
|
const computedTokens = (0, import_shared3.compact)({
|
|
244
244
|
...tokens,
|
|
245
|
-
|
|
245
|
+
breakpoints: breakpointTokens.breakpoints,
|
|
246
246
|
sizes: {
|
|
247
247
|
...tokens.sizes,
|
|
248
248
|
...breakpointTokens.sizes
|
package/dist/index.mjs
CHANGED
|
@@ -199,10 +199,10 @@ var TokenTypes = {
|
|
|
199
199
|
// src/dictionary.ts
|
|
200
200
|
function expandBreakpoints(breakpoints) {
|
|
201
201
|
if (!breakpoints)
|
|
202
|
-
return {
|
|
202
|
+
return { breakpoints: {}, sizes: {} };
|
|
203
203
|
return {
|
|
204
|
-
|
|
205
|
-
sizes: Object.fromEntries(Object.entries(breakpoints).map(([key, value]) => [`
|
|
204
|
+
breakpoints: mapObject(breakpoints, (value) => ({ value })),
|
|
205
|
+
sizes: Object.fromEntries(Object.entries(breakpoints).map(([key, value]) => [`breakpoint-${key}`, { value }]))
|
|
206
206
|
};
|
|
207
207
|
}
|
|
208
208
|
var TokenDictionary = class {
|
|
@@ -216,7 +216,7 @@ var TokenDictionary = class {
|
|
|
216
216
|
const breakpointTokens = expandBreakpoints(breakpoints);
|
|
217
217
|
const computedTokens = compact({
|
|
218
218
|
...tokens,
|
|
219
|
-
|
|
219
|
+
breakpoints: breakpointTokens.breakpoints,
|
|
220
220
|
sizes: {
|
|
221
221
|
...tokens.sizes,
|
|
222
222
|
...breakpointTokens.sizes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pandacss/token-dictionary",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-20230212162719",
|
|
4
4
|
"description": "Common error messages for css panda",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
],
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"ts-pattern": "4.1.4",
|
|
18
|
-
"@pandacss/types": "0.0.0-dev-
|
|
19
|
-
"@pandacss/shared": "0.0.0-dev-
|
|
18
|
+
"@pandacss/types": "0.0.0-dev-20230212162719",
|
|
19
|
+
"@pandacss/shared": "0.0.0-dev-20230212162719"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@pandacss/fixture": "0.0.0-dev-
|
|
22
|
+
"@pandacss/fixture": "0.0.0-dev-20230212162719"
|
|
23
23
|
},
|
|
24
24
|
"scripts": {
|
|
25
25
|
"build": "tsup src/index.ts --format=esm,cjs --dts",
|