diff --git a/configs/src/versions.mjs b/configs/src/versions.mjs index 4e2adf8..eeb4dcc 100644 --- a/configs/src/versions.mjs +++ b/configs/src/versions.mjs @@ -1,4 +1,4 @@ -export const version = '0.6.1' +export const version = '0.7.0' export const nextTag = 'next' export const packages = ['panda-preset', 'icons', 'react', 'styled-system'] diff --git a/docs/app/preset/side-nav.json b/docs/app/preset/side-nav.json index 88f7d64..340c14a 100644 --- a/docs/app/preset/side-nav.json +++ b/docs/app/preset/side-nav.json @@ -20,14 +20,14 @@ "id": "2:a", "label": "Theme", "route": "/preset/theme", - "tag": "next", + "tag": "new", "type": "route" }, { "id": "2:b", "label": "Colors", "route": "/preset/colors", - "tag": "next", + "tag": "new", "type": "route" }, { @@ -41,7 +41,7 @@ "id": "2:d", "label": "Animation", "route": "/preset/animation", - "tag": "next", + "tag": "new", "type": "route" }, { diff --git a/docs/app/react/side-nav.json b/docs/app/react/side-nav.json index 145f19b..53b7e94 100644 --- a/docs/app/react/side-nav.json +++ b/docs/app/react/side-nav.json @@ -69,7 +69,7 @@ "id": "2:h", "label": "Tabs", "route": "/react/tabs", - "tag": "next", + "tag": "new", "type": "route" }, { @@ -104,21 +104,21 @@ "id": "2:m", "label": "Confirm Modal", "route": "/react/confirm-modal", - "tag": "next", + "tag": "new", "type": "route" }, { "id": "2:n", "label": "Prompt Modal", "route": "/react/prompt-modal", - "tag": "next", + "tag": "new", "type": "route" }, { "id": "2:o", "label": "Modal", "route": "/react/modal", - "tag": "next", + "tag": "new", "type": "route" }, { @@ -132,14 +132,14 @@ "id": "2:q", "label": "Portal", "route": "/react/portal", - "tag": "next", + "tag": "new", "type": "route" }, { "id": "2:r", "label": "Feature Flags", "route": "/react/feature-flags", - "tag": "next", + "tag": "new", "type": "route" }, { @@ -151,7 +151,7 @@ "id": "3:a", "label": "useModal", "route": "/react/use-modal", - "tag": "next", + "tag": "new", "type": "route" }, { @@ -184,7 +184,7 @@ "id": "4:a", "label": "trapFocus", "route": "/react/trap-focus", - "tag": "next", + "tag": "new", "type": "route" } ] diff --git a/packages/panda-preset/src/tokens/index.ts b/packages/panda-preset/src/tokens/index.ts index 48c9791..d708442 100644 --- a/packages/panda-preset/src/tokens/index.ts +++ b/packages/panda-preset/src/tokens/index.ts @@ -43,7 +43,10 @@ export type PrimitiveCollection = // helpers -export function deepGet(obj: PrimitiveCollection, keys: string[]) { +export function deepGet( + obj: PrimitiveCollection, + keys: string[], +): PrimitiveCollection { return keys.reduce( (xs, x) => xs?.[x as keyof PrimitiveCollection] ?? null, obj,