reykit 1.0.6 → 1.0.8
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/package.json +14 -2
- package/src/index.ts +0 -1
- package/src/react.ts +0 -20
- package/tsconfig.json +0 -12
- package/vite.config.js +0 -20
- /package/dist/{reykit.mjs → index.js} +0 -0
- /package/dist/{reykit.umd.js → index.umd.cjs} +0 -0
package/package.json
CHANGED
|
@@ -1,10 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "reykit",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
4
4
|
"description": "Kit method set.",
|
|
5
5
|
"author": "reyxbo",
|
|
6
|
+
"keywords": ["rey", "reyxbo", "kit", "tool", "react", "tailwind", "shadcn"],
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/reyxbo/reykit-js"
|
|
10
|
+
},
|
|
6
11
|
"license": "MIT",
|
|
7
|
-
"
|
|
12
|
+
"files": ["dist"],
|
|
13
|
+
"type": "module",
|
|
14
|
+
"module": "./dist/index.js",
|
|
15
|
+
"main": "./dist/index.umd.cjs",
|
|
16
|
+
"exports": {
|
|
17
|
+
"import": "./dist/index.js",
|
|
18
|
+
"require": "./dist/index.umd.cjs"
|
|
19
|
+
},
|
|
8
20
|
"dependencies": {
|
|
9
21
|
"@base-ui/react": "^1.2.0",
|
|
10
22
|
"@fontsource-variable/inter": "^5.2.8",
|
package/src/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { renderReact } from './react'
|
package/src/react.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react'
|
|
2
|
-
import { createRoot } from 'react-dom/client'
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Render react note.
|
|
6
|
-
*
|
|
7
|
-
* Parameters
|
|
8
|
-
* ----------
|
|
9
|
-
* @param app React note.
|
|
10
|
-
* @param elementId Render HTML element ID.
|
|
11
|
-
*/
|
|
12
|
-
export function renderReact(app: ReactNode, elementId: string = 'root') {
|
|
13
|
-
|
|
14
|
-
// Render.
|
|
15
|
-
const element = document.getElementById(elementId)
|
|
16
|
-
if (!element) {
|
|
17
|
-
throw new Error('element ID not found')
|
|
18
|
-
}
|
|
19
|
-
createRoot(element).render(app)
|
|
20
|
-
}
|
package/tsconfig.json
DELETED
package/vite.config.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { defineConfig } from 'vite'
|
|
2
|
-
import react from '@vitejs/plugin-react'
|
|
3
|
-
import tailwindcss from '@tailwindcss/vite'
|
|
4
|
-
import { resolve } from 'path'
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export default defineConfig({
|
|
8
|
-
plugins: [react(), tailwindcss()],
|
|
9
|
-
resolve: {
|
|
10
|
-
alias: {
|
|
11
|
-
'@': resolve(__dirname, './src')
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
|
-
build: {
|
|
15
|
-
lib: {
|
|
16
|
-
entry: resolve(__dirname, './src/index.ts'),
|
|
17
|
-
name: 'reykit'
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
})
|
|
File without changes
|
|
File without changes
|