Skip to content

Commit 91ece0a

Browse files
committed
chore(adaptui): 🚚 move files to adaptui namespace
1 parent d7407b6 commit 91ece0a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+710
-1255
lines changed

.all-contributorsrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"projectName": "react-components-template",
3-
"projectOwner": "navin@timeless.co",
2+
"projectName": "@adaptui/react-tailwind",
3+
"projectOwner": "hello@timeless.co",
44
"repoType": "github",
55
"repoHost": "https://github.com",
66
"files": [

.eslintrc.json

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,7 @@
1414
// https://github.com/lydell/eslint-plugin-simple-import-sort#custom-grouping
1515
"groups": [
1616
// Packages. `react` related packages come first.
17-
[
18-
"^react",
19-
"^reakit-system",
20-
"^reakit",
21-
"^@renderlesskit/react",
22-
"^@?\\w"
23-
],
17+
["^react", "^ariakit", "^ariakit-utils", "^@adaptui/react", "^@?\\w"],
2418
// Parent imports. Put `..` last.
2519
["^\\.\\.(?!/?$)", "^\\.\\./?$"],
2620
// Other relative imports. Put same-folder imports and `.` last.

.storybook/preview.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import "focus-visible";
22

33
import "./tailwind.css";
4-
import theme from "../renderlesskit.config.ts";
5-
import { RenderlesskitProvider } from "../src/theme";
4+
import theme from "../adaptui.config.ts";
5+
import { AdaptUIProvider } from "../src/theme";
66

77
export const parameters = {
88
actions: { argTypesRegex: "^on[A-Z].*" },
@@ -19,9 +19,9 @@ export const decorators = [
1919
document.body.classList.add("antialiased");
2020

2121
return (
22-
<RenderlesskitProvider extend={theme}>
22+
<AdaptUIProvider extend={theme}>
2323
<Story />
24-
</RenderlesskitProvider>
24+
</AdaptUIProvider>
2525
);
2626
},
2727
];

.storybook/utils.tsx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ const NEXT_JS_CODESANDBOX: CodeSandboxTemplate = (
119119
lint: "next lint",
120120
},
121121
dependencies: {
122-
"@renderlesskit/react-tailwind": "0.0.1-alpha.33",
122+
"@adaptui/react-tailwind": "0.0.1-alpha.33",
123123
next: "12.0.7",
124124
react: "17.0.2",
125125
"react-dom": "17.0.2",
@@ -133,11 +133,11 @@ const NEXT_JS_CODESANDBOX: CodeSandboxTemplate = (
133133
},
134134
files: {
135135
"pages/_app.js":
136-
'import { RenderlesskitProvider } from "@renderlesskit/react-tailwind";\n\nimport "../styles/index.css";\nimport theme from "../renderlesskit.config";\n\nfunction MyApp({ Component, pageProps }) {\n return (\n <RenderlesskitProvider extend={theme}>\n <Component {...pageProps} />\n </RenderlesskitProvider>\n );\n}\n\nexport default MyApp;\n',
136+
'import { AdaptUIProvider } from "@adaptui/react-tailwind";\n\nimport "../styles/index.css";\nimport theme from "../adaptui.config";\n\nfunction MyApp({ Component, pageProps }) {\n return (\n <AdaptUIProvider extend={theme}>\n <Component {...pageProps} />\n </AdaptUIProvider>\n );\n}\n\nexport default MyApp;\n',
137137
"pages/_document.js":
138138
"import Document, { Html, Head, Main, NextScript } from \"next/document\";\n\nclass MyDocument extends Document {\n render() {\n return (\n <Html>\n <Head>\n <link href='https://rsms.me/inter/inter.css' rel='stylesheet' />\n </Head>\n <body>\n <Main />\n <NextScript />\n </body>\n </Html>\n );\n }\n}\n\nexport default MyDocument;\n",
139139
"pages/index.js":
140-
"import Head from \"next/head\";\nimport Component from \"../components\";\n\nexport default function Home() {\n return (\n <div>\n <Head>\n <title>Renderlesskit React Tailwind Example</title>\n <link rel='icon' href='/favicon.ico' />\n </Head>\n\n <main className='flex items-center justify-center min-h-screen'>\n <Component />\n </main>\n </div>\n );\n}\n",
140+
"import Head from \"next/head\";\nimport Component from \"../components\";\n\nexport default function Home() {\n return (\n <div>\n <Head>\n <title>AdaptUI React Tailwind Example</title>\n <link rel='icon' href='/favicon.ico' />\n </Head>\n\n <main className='flex items-center justify-center min-h-screen'>\n <Component />\n </main>\n </div>\n );\n}\n",
141141
"styles/index.css":
142142
"@tailwind base;\n@tailwind components;\n@tailwind utilities;",
143143
".babelrc": '{\n "presets": ["next/babel"]\n}\n',
@@ -148,10 +148,10 @@ const NEXT_JS_CODESANDBOX: CodeSandboxTemplate = (
148148
'// If you want to use other PostCSS plugins, see the following:\n// https://tailwindcss.com/docs/using-with-preprocessors\nmodule.exports = {\n plugins: ["tailwindcss", "autoprefixer"],\n};\n',
149149
"README.md":
150150
"# next-tailwind-jit\n\n[View on Vercel](https://next-tailwind-jit.vercel.app/)\n\n[Edit on StackBlitz ⚡️](https://stackblitz.com/edit/next-tailwind-jit-evzkdg)\n",
151-
"renderlesskit.config.js":
152-
'import { extendTheme } from "@renderlesskit/react-tailwind";\n\nexport const theme = extendTheme({\n // This only affected the Storybook, doesn\'t go or merge when used this config as preset\n extend: {\n button: {\n variant: {\n default: {\n tertiary: "bg-purple-600 text-white",\n },\n },\n size: {\n default: {\n xxl: "h-14 min-w-14 px-6 rounded-xl text-xl",\n },\n },\n },\n },\n});\n\nexport default theme;\n',
151+
"adaptui.config.js":
152+
'import { extendTheme } from "@adaptui/react-tailwind";\n\nexport const theme = extendTheme({\n // This only affected the Storybook, doesn\'t go or merge when used this config as preset\n extend: {\n button: {\n variant: {\n default: {\n tertiary: "bg-purple-600 text-white",\n },\n },\n size: {\n default: {\n xxl: "h-14 min-w-14 px-6 rounded-xl text-xl",\n },\n },\n },\n },\n});\n\nexport default theme;\n',
153153
"tailwind.config.js":
154-
'module.exports = {\n presets: [require("@renderlesskit/react-tailwind/preset")],\n content: [\n "./components/**/*",\n "./pages/**/*",\n "./renderlesskit.config.ts",\n "node_modules/@renderlesskit/react-tailwind/**/*",\n ],\n theme: {},\n variants: {},\n plugins: [],\n};\n',
154+
'module.exports = {\n presets: [require("@adaptui/react-tailwind/preset")],\n content: [\n "./components/**/*",\n "./pages/**/*",\n "./adaptui.config.ts",\n "node_modules/@adaptui/react-tailwind/**/*",\n ],\n theme: {},\n variants: {},\n plugins: [],\n};\n',
155155
...files,
156156
},
157157
};
@@ -170,7 +170,7 @@ const NEXT_TS_CODESANDBOX: CodeSandboxTemplate = (
170170
lint: "next lint",
171171
},
172172
dependencies: {
173-
"@renderlesskit/react-tailwind": "0.0.1-alpha.33",
173+
"@adaptui/react-tailwind": "0.0.1-alpha.33",
174174
next: "12.0.7",
175175
react: "17.0.2",
176176
"react-dom": "17.0.2",
@@ -188,7 +188,7 @@ const NEXT_TS_CODESANDBOX: CodeSandboxTemplate = (
188188
},
189189
files: {
190190
"pages/_app.tsx":
191-
'import type { AppProps } from "next/app";\nimport React from "react";\nimport { RenderlesskitProvider } from "@renderlesskit/react-tailwind";\n\nimport "../styles/index.css";\nimport theme from "../renderlesskit.config";\n\nfunction MyApp({ Component, pageProps }: AppProps) {\n return (\n <RenderlesskitProvider extend={theme}>\n <Component {...pageProps} />\n </RenderlesskitProvider>\n );\n}\n\nexport default MyApp;\n',
191+
'import type { AppProps } from "next/app";\nimport React from "react";\nimport { AdaptUIProvider } from "@adaptui/react-tailwind";\n\nimport "../styles/index.css";\nimport theme from "../adaptui.config";\n\nfunction MyApp({ Component, pageProps }: AppProps) {\n return (\n <AdaptUIProvider extend={theme}>\n <Component {...pageProps} />\n </AdaptUIProvider>\n );\n}\n\nexport default MyApp;\n',
192192
"pages/_document.tsx":
193193
"import Document, { Html, Head, Main, NextScript } from \"next/document\";\n\nclass MyDocument extends Document {\n render() {\n return (\n <Html>\n <Head>\n <link href='https://rsms.me/inter/inter.css' rel='stylesheet' />\n </Head>\n <body>\n <Main />\n <NextScript />\n </body>\n </Html>\n );\n }\n}\n\nexport default MyDocument;\n",
194194
"pages/index.tsx":
@@ -205,10 +205,10 @@ const NEXT_TS_CODESANDBOX: CodeSandboxTemplate = (
205205
'// If you want to use other PostCSS plugins, see the following:\n// https://tailwindcss.com/docs/using-with-preprocessors\nmodule.exports = {\n plugins: ["tailwindcss", "autoprefixer"],\n};\n',
206206
"README.md":
207207
"# next-tailwind-jit-ts\n\n[View on Vercel](https://next-tailwind-jit-ts.vercel.app/)\n\n[Edit on StackBlitz ⚡️](https://stackblitz.com/edit/github-jntzof)\n",
208-
"renderlesskit.config.js":
209-
'import { extendTheme } from "@renderlesskit/react-tailwind";\n\nexport const theme = extendTheme({\n // This only affected the Storybook, doesn\'t go or merge when used this config as preset\n extend: {\n button: {\n variant: {\n default: {\n tertiary: "bg-purple-600 text-white",\n },\n },\n size: {\n default: {\n xxl: "h-14 min-w-14 px-6 rounded-xl text-xl",\n },\n },\n },\n },\n});\n\nexport default theme;\n',
208+
"adaptui.config.js":
209+
'import { extendTheme } from "@adaptui/react-tailwind";\n\nexport const theme = extendTheme({\n // This only affected the Storybook, doesn\'t go or merge when used this config as preset\n extend: {\n button: {\n variant: {\n default: {\n tertiary: "bg-purple-600 text-white",\n },\n },\n size: {\n default: {\n xxl: "h-14 min-w-14 px-6 rounded-xl text-xl",\n },\n },\n },\n },\n});\n\nexport default theme;\n',
210210
"tailwind.config.js":
211-
'module.exports = {\n presets: [require("@renderlesskit/react-tailwind/preset")],\n content: [\n "./components/**/*",\n "./pages/**/*",\n "./renderlesskit.config.ts",\n "node_modules/@renderlesskit/react-tailwind/**/*",\n ],\n theme: {},\n variants: {},\n plugins: [],\n};\n',
211+
'module.exports = {\n presets: [require("@adaptui/react-tailwind/preset")],\n content: [\n "./components/**/*",\n "./pages/**/*",\n "./adaptui.config.ts",\n "node_modules/@adaptui/react-tailwind/**/*",\n ],\n theme: {},\n variants: {},\n plugins: [],\n};\n',
212212
"tsconfig.json":
213213
'{\n "compilerOptions": {\n "target": "es5",\n "lib": ["dom", "dom.iterable", "esnext"],\n "allowJs": true,\n "skipLibCheck": true,\n "strict": true,\n "forceConsistentCasingInFileNames": true,\n "noEmit": true,\n "esModuleInterop": true,\n "module": "esnext",\n "moduleResolution": "node",\n "resolveJsonModule": true,\n "isolatedModules": true,\n "jsx": "preserve",\n "incremental": true\n },\n "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],\n "exclude": ["node_modules"]\n}\n',
214214
...files,

0 commit comments

Comments
 (0)