diff --git a/libra.config.js b/libra.config.js index 5464f7c..9b4ac35 100644 --- a/libra.config.js +++ b/libra.config.js @@ -1,9 +1,7 @@ import { resolve } from 'path'; +import { defineConfig } from '@sweatpants/libra/config'; -/** - * @type {import('@sweatpants/libra').Config} - */ -export default { +export default defineConfig({ title: 'Sweatpants', port: 8080, inspect: true, @@ -21,4 +19,4 @@ export default { } }; } -}; +}); diff --git a/libra/DefaultLayout.tsx b/libra/DefaultLayout.tsx index f7eb21b..ea255e0 100644 --- a/libra/DefaultLayout.tsx +++ b/libra/DefaultLayout.tsx @@ -1,4 +1,3 @@ -import { FC, PropsWithChildren } from 'react'; import './index.css'; import { css } from '@styles/css'; import { @@ -8,6 +7,7 @@ import { Stack, Text } from '../packages/react/src'; +import type { LibraLayout } from '@sweatpants/libra'; const styles = css({ p: '8', @@ -15,10 +15,7 @@ const styles = css({ minH: '100vh' }); -const Layout: FC> = ({ - children, - scheme -}) => { +const Layout: LibraLayout = ({ children, scheme }) => { if (!children) { return ( diff --git a/package-lock.json b/package-lock.json index 71b8513..2313137 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16,7 +16,7 @@ "@changesets/cli": "2.26.2", "@pandacss/dev": "0.18.2", "@rollup/plugin-alias": "5.0.1", - "@sweatpants/libra": "0.0.31", + "@sweatpants/libra": "0.0.33", "@types/react": "18.2.37", "@types/react-dom": "18.2.15", "framer-motion": "10.16.4", @@ -1206,6 +1206,18 @@ "sisteransi": "^1.0.5" } }, + "node_modules/@clack/prompts/node_modules/is-unicode-supported": { + "version": "1.3.0", + "extraneous": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/@emmetio/abbreviation": { "version": "2.3.3", "resolved": "https://registry.npmjs.org/@emmetio/abbreviation/-/abbreviation-2.3.3.tgz", @@ -2777,23 +2789,23 @@ } }, "node_modules/@sweatpants/libra": { - "version": "0.0.31", - "resolved": "https://registry.npmjs.org/@sweatpants/libra/-/libra-0.0.31.tgz", - "integrity": "sha512-FolmRGcICZ0JZLwV6dydF3pwpOS07Dd7qJ4FxKqDYURITZvuIX6gDeW9xRAlsJu5XLIGa0w0Ip1Ejkll4OkGkw==", + "version": "0.0.33", + "resolved": "https://registry.npmjs.org/@sweatpants/libra/-/libra-0.0.33.tgz", + "integrity": "sha512-njp5EU9/2AfkTYnHOcauJKW2kunzkS0vroN5dBsag0TX3KlzH12jUospY9lAwmY2/Kl3Rue1BKb0T3z9HDDS/A==", "dev": true, "dependencies": { "@sweatpants/react": "0.7.12", - "@vitejs/plugin-react": "4.1.0", + "@vitejs/plugin-react": "4.1.1", "classnames": "2.3.2", "commander": "11.0.0", "esbuild": "0.19.5", - "fast-glob": "3.3.1", + "fast-glob": "3.3.2", "framecast": "0.0.5", "picocolors": "1.0.0", "react-error-boundary": "3.1.4", "react-router-dom": "6.16.0", "vite": "4.5.0", - "vite-plugin-inspect": "0.7.38" + "vite-plugin-inspect": "0.7.42" }, "bin": { "libra": "dist/cli.mjs" @@ -3347,9 +3359,9 @@ } }, "node_modules/@types/babel__core": { - "version": "7.20.2", - "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.2.tgz", - "integrity": "sha512-pNpr1T1xLUc2l3xJKuPtsEky3ybxN3m4fJkknfIpTCTfIZCDW57oAg+EfCgIIp2rvCe0Wn++/FfodDS4YXxBwA==", + "version": "7.20.4", + "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.4.tgz", + "integrity": "sha512-mLnSC22IC4vcWiuObSRjrLd9XcBTGf59vUSoq2jkQDJ/QQ8PMI9rSuzE+aEV8karUMbskw07bKYoUJCKTUaygg==", "dependencies": { "@babel/parser": "^7.20.7", "@babel/types": "^7.20.7", @@ -3509,15 +3521,15 @@ "integrity": "sha512-iO9ZQHkZxHn4mSakYV0vFHAVDyEOIJQrV2uZ06HxEPcx+mt8swXoZHIbaaJ2crJYFfErySgktuTZ3BeLz+XmFA==" }, "node_modules/@vitejs/plugin-react": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-4.1.0.tgz", - "integrity": "sha512-rM0SqazU9iqPUraQ2JlIvReeaxOoRj6n+PzB1C0cBzIbd8qP336nC39/R9yPi3wVcah7E7j/kdU1uCUqMEU4OQ==", + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-4.1.1.tgz", + "integrity": "sha512-Jie2HERK+uh27e+ORXXwEP5h0Y2lS9T2PRGbfebiHGlwzDO0dEnd2aNtOR/qjBlPb1YgxwAONeblL1xqLikLag==", "dev": true, "dependencies": { - "@babel/core": "^7.22.20", + "@babel/core": "^7.23.2", "@babel/plugin-transform-react-jsx-self": "^7.22.5", "@babel/plugin-transform-react-jsx-source": "^7.22.5", - "@types/babel__core": "^7.20.2", + "@types/babel__core": "^7.20.3", "react-refresh": "^0.14.0" }, "engines": { @@ -6948,8 +6960,9 @@ } }, "node_modules/fast-glob": { - "version": "3.3.1", - "license": "MIT", + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.2.tgz", + "integrity": "sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==", "dependencies": { "@nodelib/fs.stat": "^2.0.2", "@nodelib/fs.walk": "^1.2.3", @@ -12565,13 +12578,13 @@ } }, "node_modules/vite-plugin-inspect": { - "version": "0.7.38", - "resolved": "https://registry.npmjs.org/vite-plugin-inspect/-/vite-plugin-inspect-0.7.38.tgz", - "integrity": "sha512-+p6pJVtBOLGv+RBrcKAFUdx+euizg0bjL35HhPyM0MjtKlqoC5V9xkCmO9Ctc8JrTyXqODbHqiLWJKumu5zJ7g==", + "version": "0.7.42", + "resolved": "https://registry.npmjs.org/vite-plugin-inspect/-/vite-plugin-inspect-0.7.42.tgz", + "integrity": "sha512-JCyX86wr3siQc+p9Kd0t8VkFHAJag0RaQVIpdFGSv5FEaePEVB6+V/RGtz2dQkkGSXQzRWrPs4cU3dRKg32bXw==", "dev": true, "dependencies": { - "@antfu/utils": "^0.7.5", - "@rollup/pluginutils": "^5.0.2", + "@antfu/utils": "^0.7.6", + "@rollup/pluginutils": "^5.0.5", "debug": "^4.3.4", "error-stack-parser-es": "^0.1.1", "fs-extra": "^11.1.1", @@ -12586,7 +12599,7 @@ "url": "https://github.com/sponsors/antfu" }, "peerDependencies": { - "vite": "^3.1.0 || ^4.0.0" + "vite": "^3.1.0 || ^4.0.0 || ^5.0.0-0" }, "peerDependenciesMeta": { "@nuxt/kit": { @@ -13401,7 +13414,7 @@ }, "packages/react": { "name": "@sweatpants/react", - "version": "0.7.13", + "version": "0.7.16", "license": "MIT", "dependencies": { "@radix-ui/react-dialog": "1.0.4", diff --git a/package.json b/package.json index 4770fe9..5017dcc 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "@changesets/cli": "2.26.2", "@pandacss/dev": "0.18.2", "@rollup/plugin-alias": "5.0.1", - "@sweatpants/libra": "0.0.31", + "@sweatpants/libra": "0.0.33", "@types/react": "18.2.37", "@types/react-dom": "18.2.15", "framer-motion": "10.16.4",