Skip to content

Commit

Permalink
Merge pull request #38 from fold-dev/update-minor-0.9.x
Browse files Browse the repository at this point in the history
refactor: update Fold minor version to 0.9.0
  • Loading branch information
joduplessis authored Apr 20, 2024
2 parents 15d05f2 + b2be0af commit fad9db3
Show file tree
Hide file tree
Showing 13 changed files with 651 additions and 1,063 deletions.
32 changes: 16 additions & 16 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fold-dev/docs",
"version": "24.4.7.0",
"version": "24.4.20.0",
"description": "UI components for product teams.",
"scripts": {
"prepare": "husky install",
Expand All @@ -11,8 +11,8 @@
"prettier": "prettier --write 'src/**/*.{ts,tsx}' --print-width 120"
},
"dependencies": {
"@fold-dev/core": "^0.8.0",
"@fold-dev/design": "^0.8.0",
"@fold-dev/core": "^0.9.0",
"@fold-dev/design": "^0.9.0",
"@heroicons/react": "^2.0.18",
"@mdx-js/loader": "^2.3.0",
"@mdx-js/react": "^2.3.0",
Expand Down
2 changes: 1 addition & 1 deletion src/layouts/docs.layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@ export default function DocsLayout(props: any) {
color={Token.ColorNeonpink400}
subtle
fontWeight={800}>
v0.8.0
v0.9.0
</Pill>
<Link
href="/"
Expand Down
1,135 changes: 582 additions & 553 deletions src/navigation.ts

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions src/pages/docs/core/attachment.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export const HeroPosterOverlay = () => {
> Incomplete information & error states.
export const States = () => (<View column gap={10} width={500}>
<Attachment width={500} mime="image/png" filesize={24325} label="filename.png" href="https://fold.dev"/>
<Attachment width={500} mime="video/mpeg" filesize={24325} label="filename.mpg" href="https://fold.dev"/>
<Attachment width={500} poster="/photos/01.jpg" mime="image/png" filesize={24325} label="filename.png" loading loadingProgress={56} href="https://fold.dev"/>
<Attachment error mime="image/png" width={500} filesize={24325} label="filename.png" href="https://fold.dev"/>
<Attachment width={500} poster="/photos/01.jpg" mime="image/png" filesize={24325} label="filename.png" href="https://fold.dev"/>
Expand All @@ -135,7 +135,7 @@ export const States = () => (<View column gap={10} width={500}>
<States />
</div>

<CodeComponent filename="States.tsx" code="ZXhwb3J0IGNvbnN0IFN0YXRlcyA9ICgpID0+ICgKICAgIDxWaWV3CiAgICAgICAgY29sdW1uCiAgICAgICAgZ2FwPXsxMH0KICAgICAgICB3aWR0aD17NTAwfT4KICAgICAgICA8QXR0YWNobWVudAogICAgICAgICAgICB3aWR0aD17NTAwfQogICAgICAgICAgICBtaW1lPSJpbWFnZS9wbmciCiAgICAgICAgICAgIGZpbGVzaXplPXsyNDMyNX0KICAgICAgICAgICAgbGFiZWw9ImZpbGVuYW1lLnBuZyIKICAgICAgICAgICAgaHJlZj0iaHR0cHM6Ly9mb2xkLmRldiIKICAgICAgICAvPgogICAgICAgIDxBdHRhY2htZW50CiAgICAgICAgICAgIHdpZHRoPXs1MDB9CiAgICAgICAgICAgIHBvc3Rlcj0iL3Bob3Rvcy8wMS5qcGciCiAgICAgICAgICAgIG1pbWU9ImltYWdlL3BuZyIKICAgICAgICAgICAgZmlsZXNpemU9ezI0MzI1fQogICAgICAgICAgICBsYWJlbD0iZmlsZW5hbWUucG5nIgogICAgICAgICAgICBsb2FkaW5nCiAgICAgICAgICAgIGxvYWRpbmdQcm9ncmVzcz17NTZ9CiAgICAgICAgICAgIGhyZWY9Imh0dHBzOi8vZm9sZC5kZXYiCiAgICAgICAgLz4KICAgICAgICA8QXR0YWNobWVudAogICAgICAgICAgICBlcnJvcgogICAgICAgICAgICBtaW1lPSJpbWFnZS9wbmciCiAgICAgICAgICAgIHdpZHRoPXs1MDB9CiAgICAgICAgICAgIGZpbGVzaXplPXsyNDMyNX0KICAgICAgICAgICAgbGFiZWw9ImZpbGVuYW1lLnBuZyIKICAgICAgICAgICAgaHJlZj0iaHR0cHM6Ly9mb2xkLmRldiIKICAgICAgICAvPgogICAgICAgIDxBdHRhY2htZW50CiAgICAgICAgICAgIHdpZHRoPXs1MDB9CiAgICAgICAgICAgIHBvc3Rlcj0iL3Bob3Rvcy8wMS5qcGciCiAgICAgICAgICAgIG1pbWU9ImltYWdlL3BuZyIKICAgICAgICAgICAgZmlsZXNpemU9ezI0MzI1fQogICAgICAgICAgICBsYWJlbD0iZmlsZW5hbWUucG5nIgogICAgICAgICAgICBocmVmPSJodHRwczovL2ZvbGQuZGV2IgogICAgICAgIC8+CiAgICA8L1ZpZXc+Cik=" />
<CodeComponent filename="States.tsx" code="ZXhwb3J0IGNvbnN0IFN0YXRlcyA9ICgpID0+ICgKICAgIDxWaWV3CiAgICAgICAgY29sdW1uCiAgICAgICAgZ2FwPXsxMH0KICAgICAgICB3aWR0aD17NTAwfT4KICAgICAgICA8QXR0YWNobWVudAogICAgICAgICAgICB3aWR0aD17NTAwfQogICAgICAgICAgICBtaW1lPSJ2aWRlby9tcGVnIgogICAgICAgICAgICBmaWxlc2l6ZT17MjQzMjV9CiAgICAgICAgICAgIGxhYmVsPSJmaWxlbmFtZS5tcGciCiAgICAgICAgICAgIGhyZWY9Imh0dHBzOi8vZm9sZC5kZXYiCiAgICAgICAgLz4KICAgICAgICA8QXR0YWNobWVudAogICAgICAgICAgICB3aWR0aD17NTAwfQogICAgICAgICAgICBwb3N0ZXI9Ii9waG90b3MvMDEuanBnIgogICAgICAgICAgICBtaW1lPSJpbWFnZS9wbmciCiAgICAgICAgICAgIGZpbGVzaXplPXsyNDMyNX0KICAgICAgICAgICAgbGFiZWw9ImZpbGVuYW1lLnBuZyIKICAgICAgICAgICAgbG9hZGluZwogICAgICAgICAgICBsb2FkaW5nUHJvZ3Jlc3M9ezU2fQogICAgICAgICAgICBocmVmPSJodHRwczovL2ZvbGQuZGV2IgogICAgICAgIC8+CiAgICAgICAgPEF0dGFjaG1lbnQKICAgICAgICAgICAgZXJyb3IKICAgICAgICAgICAgbWltZT0iaW1hZ2UvcG5nIgogICAgICAgICAgICB3aWR0aD17NTAwfQogICAgICAgICAgICBmaWxlc2l6ZT17MjQzMjV9CiAgICAgICAgICAgIGxhYmVsPSJmaWxlbmFtZS5wbmciCiAgICAgICAgICAgIGhyZWY9Imh0dHBzOi8vZm9sZC5kZXYiCiAgICAgICAgLz4KICAgICAgICA8QXR0YWNobWVudAogICAgICAgICAgICB3aWR0aD17NTAwfQogICAgICAgICAgICBwb3N0ZXI9Ii9waG90b3MvMDEuanBnIgogICAgICAgICAgICBtaW1lPSJpbWFnZS9wbmciCiAgICAgICAgICAgIGZpbGVzaXplPXsyNDMyNX0KICAgICAgICAgICAgbGFiZWw9ImZpbGVuYW1lLnBuZyIKICAgICAgICAgICAgaHJlZj0iaHR0cHM6Ly9mb2xkLmRldiIKICAgICAgICAvPgogICAgPC9WaWV3Pgop" />

```tsx
export const States = () => (
Expand All @@ -145,9 +145,9 @@ export const States = () => (
width={500}>
<Attachment
width={500}
mime="image/png"
mime="video/mpeg"
filesize={24325}
label="filename.png"
label="filename.mpg"
href="https://fold.dev"
/>
<Attachment
Expand Down
2 changes: 1 addition & 1 deletion src/pages/docs/core/cookie.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const docs = {
"In today's internet landscape, safeguarding data is critical. The Cookie component offers a developer-friendly & extensible experience to facilitate compliance.",
}

export const props = [{"tags":{},"filePath":"packages/core/src/cookie/cookie.tsx","description":"","displayName":"Cookie","methods":[],"props":{"title":{"defaultValue":null,"description":"","name":"title","declarations":[{"fileName":"packages/core/src/cookie/cookie.tsx","name":"TypeLiteral"}],"required":false,"type":{"name":"string"},"tags":{}},"description":{"defaultValue":null,"description":"","name":"description","declarations":[{"fileName":"packages/core/src/cookie/cookie.tsx","name":"TypeLiteral"}],"required":false,"type":{"name":"ReactElement<any, string | JSXElementConstructor<any>>"},"tags":{}},"buttons":{"defaultValue":null,"description":"","name":"buttons","declarations":[{"fileName":"packages/core/src/cookie/cookie.tsx","name":"TypeLiteral"}],"required":false,"type":{"name":"CookieButton[]"},"tags":{}},"onOkay":{"defaultValue":null,"description":"","name":"onOkay","declarations":[{"fileName":"packages/core/src/cookie/cookie.tsx","name":"TypeLiteral"}],"required":false,"type":{"name":"any"},"tags":{}},"onCancel":{"defaultValue":null,"description":"","name":"onCancel","declarations":[{"fileName":"packages/core/src/cookie/cookie.tsx","name":"TypeLiteral"}],"required":false,"type":{"name":"any"},"tags":{}},"focusTrap":{"defaultValue":null,"description":"","name":"focusTrap","declarations":[{"fileName":"fold/packages/core/src/modal/modal.tsx","name":"TypeLiteral"}],"required":false,"type":{"name":"boolean"},"tags":{}},"anchor":{"defaultValue":null,"description":"","name":"anchor","declarations":[{"fileName":"fold/packages/core/src/modal/modal.tsx","name":"TypeLiteral"}],"required":false,"type":{"name":"ModalAnchor"},"tags":{}},"isVisible":{"defaultValue":null,"description":"","name":"isVisible","declarations":[{"fileName":"fold/packages/core/src/modal/modal.tsx","name":"TypeLiteral"}],"required":true,"type":{"name":"boolean"},"tags":{}},"footer":{"defaultValue":null,"description":"","name":"footer","declarations":[{"fileName":"fold/packages/core/src/modal/modal.tsx","name":"TypeLiteral"}],"required":false,"type":{"name":"ReactElement<any, string | JSXElementConstructor<any>> | ReactElement<any, string | JSXElementConstructor<any>>[]"},"tags":{}},"header":{"defaultValue":null,"description":"","name":"header","declarations":[{"fileName":"fold/packages/core/src/modal/modal.tsx","name":"TypeLiteral"}],"required":false,"type":{"name":"ReactElement<any, string | JSXElementConstructor<any>> | ReactElement<any, string | JSXElementConstructor<any>>[]"},"tags":{}},"borderless":{"defaultValue":null,"description":"","name":"borderless","declarations":[{"fileName":"fold/packages/core/src/modal/modal.tsx","name":"TypeLiteral"}],"required":false,"type":{"name":"boolean"},"tags":{}},"disableBackgroundDismiss":{"defaultValue":null,"description":"","name":"disableBackgroundDismiss","declarations":[{"fileName":"fold/packages/core/src/modal/modal.tsx","name":"TypeLiteral"}],"required":false,"type":{"name":"boolean"},"tags":{}},"noOverlay":{"defaultValue":null,"description":"","name":"noOverlay","declarations":[{"fileName":"fold/packages/core/src/modal/modal.tsx","name":"TypeLiteral"}],"required":false,"type":{"name":"boolean"},"tags":{}},"portal":{"defaultValue":null,"description":"","name":"portal","declarations":[{"fileName":"fold/packages/core/src/modal/modal.tsx","name":"TypeLiteral"}],"required":false,"type":{"name":"any"},"tags":{}},"onDismiss":{"defaultValue":null,"description":"","name":"onDismiss","declarations":[{"fileName":"fold/packages/core/src/modal/modal.tsx","name":"TypeLiteral"}],"required":false,"type":{"name":"any"},"tags":{}}}}]
export const props = [{"tags":{},"filePath":"packages/core/src/cookie/cookie.tsx","description":"","displayName":"Cookie","methods":[],"props":{"title":{"defaultValue":null,"description":"","name":"title","declarations":[{"fileName":"packages/core/src/cookie/cookie.tsx","name":"TypeLiteral"}],"required":false,"type":{"name":"string"},"tags":{}},"description":{"defaultValue":null,"description":"","name":"description","declarations":[{"fileName":"packages/core/src/cookie/cookie.tsx","name":"TypeLiteral"}],"required":false,"type":{"name":"ReactElement<any, string | JSXElementConstructor<any>>"},"tags":{}},"buttons":{"defaultValue":null,"description":"","name":"buttons","declarations":[{"fileName":"packages/core/src/cookie/cookie.tsx","name":"TypeLiteral"}],"required":false,"type":{"name":"CookieButton[]"},"tags":{}},"onOkay":{"defaultValue":null,"description":"","name":"onOkay","declarations":[{"fileName":"packages/core/src/cookie/cookie.tsx","name":"TypeLiteral"}],"required":false,"type":{"name":"any"},"tags":{}},"onCancel":{"defaultValue":null,"description":"","name":"onCancel","declarations":[{"fileName":"packages/core/src/cookie/cookie.tsx","name":"TypeLiteral"}],"required":false,"type":{"name":"any"},"tags":{}},"focusTrap":{"defaultValue":null,"description":"","name":"focusTrap","declarations":[{"fileName":"fold/packages/core/src/modal/modal.tsx","name":"TypeLiteral"}],"required":false,"type":{"name":"boolean"},"tags":{}},"anchor":{"defaultValue":null,"description":"","name":"anchor","declarations":[{"fileName":"fold/packages/core/src/modal/modal.tsx","name":"TypeLiteral"}],"required":false,"type":{"name":"ModalAnchor"},"tags":{}},"isVisible":{"defaultValue":null,"description":"","name":"isVisible","declarations":[{"fileName":"fold/packages/core/src/modal/modal.tsx","name":"TypeLiteral"}],"required":true,"type":{"name":"boolean"},"tags":{}},"footer":{"defaultValue":null,"description":"","name":"footer","declarations":[{"fileName":"fold/packages/core/src/modal/modal.tsx","name":"TypeLiteral"}],"required":false,"type":{"name":"ReactElement<any, string | JSXElementConstructor<any>> | ReactElement<any, string | JSXElementConstructor<any>>[]"},"tags":{}},"header":{"defaultValue":null,"description":"","name":"header","declarations":[{"fileName":"fold/packages/core/src/modal/modal.tsx","name":"TypeLiteral"}],"required":false,"type":{"name":"ReactElement<any, string | JSXElementConstructor<any>> | ReactElement<any, string | JSXElementConstructor<any>>[]"},"tags":{}},"borderless":{"defaultValue":null,"description":"","name":"borderless","declarations":[{"fileName":"fold/packages/core/src/modal/modal.tsx","name":"TypeLiteral"}],"required":false,"type":{"name":"boolean"},"tags":{}},"disableBackgroundDismiss":{"defaultValue":null,"description":"","name":"disableBackgroundDismiss","declarations":[{"fileName":"fold/packages/core/src/modal/modal.tsx","name":"TypeLiteral"}],"required":false,"type":{"name":"boolean"},"tags":{}},"disableBackgroundEventPropagation":{"defaultValue":null,"description":"","name":"disableBackgroundEventPropagation","declarations":[{"fileName":"fold/packages/core/src/modal/modal.tsx","name":"TypeLiteral"}],"required":false,"type":{"name":"boolean"},"tags":{}},"noOverlay":{"defaultValue":null,"description":"","name":"noOverlay","declarations":[{"fileName":"fold/packages/core/src/modal/modal.tsx","name":"TypeLiteral"}],"required":false,"type":{"name":"boolean"},"tags":{}},"portal":{"defaultValue":null,"description":"","name":"portal","declarations":[{"fileName":"fold/packages/core/src/modal/modal.tsx","name":"TypeLiteral"}],"required":false,"type":{"name":"any"},"tags":{}},"onDismiss":{"defaultValue":null,"description":"","name":"onDismiss","declarations":[{"fileName":"fold/packages/core/src/modal/modal.tsx","name":"TypeLiteral"}],"required":false,"type":{"name":"any"},"tags":{}}}}]

export const css = [[["--f-cookie-margin","var(--f-size-10)"],["--f-cookie-button-spacing","1px"]]]

Expand Down
Loading

0 comments on commit fad9db3

Please sign in to comment.