jy-headless 0.0.5 → 0.0.6
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/.idea/aws.xml +11 -0
- package/.idea/git_toolbox_prj.xml +15 -0
- package/.idea/inspectionProfiles/Project_Default.xml +6 -0
- package/.idea/jpa-buddy.xml +6 -0
- package/.idea/jy-headless.iml +9 -0
- package/.idea/misc.xml +9 -0
- package/.idea/modules.xml +8 -0
- package/.idea/vcs.xml +6 -0
- package/dist/components/button/Button.d.ts +6 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.esm.js +9 -0
- package/dist/index.esm.js.map +1 -0
- package/dist/index.js +11 -0
- package/dist/index.js.map +1 -0
- package/package.json +23 -53
- package/rollup.config.mjs +27 -0
- package/src/components/button/Button.tsx +11 -0
- package/src/index.tsx +3 -0
- package/tsconfig.json +15 -0
- package/README.md +0 -117
- package/dist/index.es.js +0 -2
- package/dist/index.es.js.map +0 -1
- package/dist/index.umd.js +0 -2
- package/dist/index.umd.js.map +0 -1
- package/dist/src/components/buttons/Button.d.ts +0 -4
- package/dist/src/index.d.ts +0 -2
- package/dist/src/utils/ArrayUtils.d.ts +0 -5
- package/dist/src/utils/index.d.ts +0 -0
- package/dist/vite.svg +0 -1
package/.idea/aws.xml
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="accountSettings">
|
|
4
|
+
<option name="activeRegion" value="us-east-1" />
|
|
5
|
+
<option name="recentlyUsedRegions">
|
|
6
|
+
<list>
|
|
7
|
+
<option value="us-east-1" />
|
|
8
|
+
</list>
|
|
9
|
+
</option>
|
|
10
|
+
</component>
|
|
11
|
+
</project>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="GitToolBoxProjectSettings">
|
|
4
|
+
<option name="commitMessageIssueKeyValidationOverride">
|
|
5
|
+
<BoolValueOverride>
|
|
6
|
+
<option name="enabled" value="true" />
|
|
7
|
+
</BoolValueOverride>
|
|
8
|
+
</option>
|
|
9
|
+
<option name="commitMessageValidationEnabledOverride">
|
|
10
|
+
<BoolValueOverride>
|
|
11
|
+
<option name="enabled" value="true" />
|
|
12
|
+
</BoolValueOverride>
|
|
13
|
+
</option>
|
|
14
|
+
</component>
|
|
15
|
+
</project>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<module type="JAVA_MODULE" version="4">
|
|
3
|
+
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
|
4
|
+
<exclude-output />
|
|
5
|
+
<content url="file://$MODULE_DIR$" />
|
|
6
|
+
<orderEntry type="inheritedJdk" />
|
|
7
|
+
<orderEntry type="sourceFolder" forTests="false" />
|
|
8
|
+
</component>
|
|
9
|
+
</module>
|
package/.idea/misc.xml
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="ProjectRootManager" version="2" languageLevel="JDK_21" default="true" project-jdk-name="openjdk-21" project-jdk-type="JavaSDK">
|
|
4
|
+
<output url="file://$PROJECT_DIR$/out" />
|
|
5
|
+
</component>
|
|
6
|
+
<component name="ProjectType">
|
|
7
|
+
<option name="id" value="jpab" />
|
|
8
|
+
</component>
|
|
9
|
+
</project>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="ProjectModuleManager">
|
|
4
|
+
<modules>
|
|
5
|
+
<module fileurl="file://$PROJECT_DIR$/.idea/jy-headless.iml" filepath="$PROJECT_DIR$/.idea/jy-headless.iml" />
|
|
6
|
+
</modules>
|
|
7
|
+
</component>
|
|
8
|
+
</project>
|
package/.idea/vcs.xml
ADDED
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
|
package/package.json
CHANGED
|
@@ -1,53 +1,23 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "jy-headless",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
"
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
"react": "^
|
|
18
|
-
"react-dom": "^
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
"@types/react-dom": "^18.3.5",
|
|
25
|
-
"@vitejs/plugin-react": "^4.3.4",
|
|
26
|
-
"eslint": "^9.17.0",
|
|
27
|
-
"eslint-plugin-react-hooks": "^5.0.0",
|
|
28
|
-
"eslint-plugin-react-refresh": "^0.4.16",
|
|
29
|
-
"eslint-plugin-storybook": "^0.11.2",
|
|
30
|
-
"globals": "^15.14.0",
|
|
31
|
-
"typescript": "~5.6.2",
|
|
32
|
-
"typescript-eslint": "^8.18.2",
|
|
33
|
-
"vite": "^6.0.5",
|
|
34
|
-
"vite-plugin-dts": "^4.5.0"
|
|
35
|
-
},
|
|
36
|
-
"main": "dist/index.es.js",
|
|
37
|
-
"typings": "dist/index.d.ts",
|
|
38
|
-
"module": "dist/jy-headless.esm.js",
|
|
39
|
-
"exports": {
|
|
40
|
-
"types": {
|
|
41
|
-
"import": "./dist/index.d.ts",
|
|
42
|
-
"require": "./dist/index.d.cts"
|
|
43
|
-
},
|
|
44
|
-
"import": "./dist/jy-headless.esm.js",
|
|
45
|
-
"require": "./dist/index.cjs"
|
|
46
|
-
},
|
|
47
|
-
"files": [
|
|
48
|
-
"/dist"
|
|
49
|
-
],
|
|
50
|
-
"publishConfig": {
|
|
51
|
-
"access": "public"
|
|
52
|
-
}
|
|
53
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "jy-headless",
|
|
3
|
+
"version": "0.0.6",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
8
|
+
},
|
|
9
|
+
"keywords": [],
|
|
10
|
+
"author": "",
|
|
11
|
+
"license": "ISC",
|
|
12
|
+
"devDependencies": {
|
|
13
|
+
"@rollup/plugin-commonjs": "^28.0.2",
|
|
14
|
+
"@rollup/plugin-node-resolve": "^16.0.0",
|
|
15
|
+
"@types/react": "^19.0.7",
|
|
16
|
+
"@types/react-dom": "^19.0.3",
|
|
17
|
+
"react": "^19.0.0",
|
|
18
|
+
"react-dom": "^19.0.0",
|
|
19
|
+
"rollup": "^4.31.0",
|
|
20
|
+
"rollup-plugin-typescript2": "^0.36.0",
|
|
21
|
+
"typescript": "^5.7.3"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import typescript from 'rollup-plugin-typescript2';
|
|
2
|
+
import resolve from '@rollup/plugin-node-resolve';
|
|
3
|
+
import commonjs from '@rollup/plugin-commonjs';
|
|
4
|
+
|
|
5
|
+
export default {
|
|
6
|
+
input: 'src/index.tsx',
|
|
7
|
+
output: [
|
|
8
|
+
{
|
|
9
|
+
file: 'dist/index.js',
|
|
10
|
+
format: 'cjs',
|
|
11
|
+
sourcemap: true,
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
file: 'dist/index.esm.js',
|
|
15
|
+
format: 'esm',
|
|
16
|
+
sourcemap: true,
|
|
17
|
+
},
|
|
18
|
+
],
|
|
19
|
+
plugins: [
|
|
20
|
+
resolve(),
|
|
21
|
+
commonjs(),
|
|
22
|
+
typescript({
|
|
23
|
+
tsconfig: './tsconfig.json',
|
|
24
|
+
}),
|
|
25
|
+
],
|
|
26
|
+
external: ['react', 'react-dom'],
|
|
27
|
+
};
|
package/src/index.tsx
ADDED
package/tsconfig.json
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES5",
|
|
4
|
+
"module": "ESNext",
|
|
5
|
+
"moduleResolution": "Node",
|
|
6
|
+
"jsx": "react",
|
|
7
|
+
"declaration": true,
|
|
8
|
+
"declarationDir": "dist/types",
|
|
9
|
+
"outDir": "dist",
|
|
10
|
+
"esModuleInterop": true,
|
|
11
|
+
"skipLibCheck": true,
|
|
12
|
+
"forceConsistentCasingInFileNames": true
|
|
13
|
+
},
|
|
14
|
+
"include": ["src/**/*"]
|
|
15
|
+
}
|
package/README.md
DELETED
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
# jy-headless
|
|
2
|
-
A collection of headless UI components built with React, Tailwind CSS, and TypeScript. This library provides accessible,
|
|
3
|
-
unstyled components that can be easily customized and integrated into your projects.
|
|
4
|
-
|
|
5
|
-
## Installation
|
|
6
|
-
To install the library, run:
|
|
7
|
-
```bash
|
|
8
|
-
npm install jy-headless
|
|
9
|
-
#or
|
|
10
|
-
pnpm install jy-headless
|
|
11
|
-
#or
|
|
12
|
-
yarn add jy-headless
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## Prerequisites
|
|
16
|
-
This library requires Tailwind CSS, PostCSS, and Autoprefixer for styling. If you haven't set these up in your project yet, follow the steps below:
|
|
17
|
-
|
|
18
|
-
1. Install Tailwind CSS and its dependencies:
|
|
19
|
-
```bash
|
|
20
|
-
npm install tailwindcss postcss autoprefixer
|
|
21
|
-
|
|
22
|
-
```
|
|
23
|
-
2. Initialize Tailwind CSS and PostCSS:
|
|
24
|
-
```bash
|
|
25
|
-
npx tailwindcss init
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
This will generate a tailwind.config.js file. You can modify it to fit your styling needs.
|
|
29
|
-
|
|
30
|
-
3. Create a postcss.config.js file in the root of your project if it doesn't exist:
|
|
31
|
-
```bash
|
|
32
|
-
module.exports = {
|
|
33
|
-
plugins: {
|
|
34
|
-
tailwindcss: {},
|
|
35
|
-
autoprefixer: {},
|
|
36
|
-
},
|
|
37
|
-
};
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
4. Add the following to your src/index.css (or wherever you're importing your global styles):
|
|
41
|
-
```bash
|
|
42
|
-
@tailwind base;
|
|
43
|
-
@tailwind components;
|
|
44
|
-
@tailwind utilities;
|
|
45
|
-
```
|
|
46
|
-
5. Ensure that your bundler is set up to process PostCSS and Tailwind CSS files.
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
## Icon License Information
|
|
50
|
-
1. **[scarlab](https://www.svgrepo.com/author/scarlab/)**
|
|
51
|
-
- **Icons**
|
|
52
|
-
- [Home](https://www.svgrepo.com/svg/507739/home-alt)
|
|
53
|
-
- [Search](https://www.svgrepo.com/svg/507850/search-alt)
|
|
54
|
-
- [Globe](https://www.svgrepo.com/svg/507722/globe-alt)
|
|
55
|
-
- [Download](https://www.svgrepo.com/svg/507665/download)
|
|
56
|
-
- [Upload](http://svgrepo.com/svg/507878/upload)
|
|
57
|
-
- [Edit](https://www.svgrepo.com/svg/507668/edit)
|
|
58
|
-
- **License**: [MIT License](https://www.svgrepo.com/page/licensing#MIT)
|
|
59
|
-
- **Modifications**: Changed the color and resized the icon.
|
|
60
|
-
|
|
61
|
-
2. **[krystonschwarze](https://www.svgrepo.com/author/krystonschwarze/)**
|
|
62
|
-
- **Icons**
|
|
63
|
-
- [User](https://www.svgrepo.com/svg/511185/user-02)
|
|
64
|
-
- [Gear](https://www.svgrepo.com/svg/511122/settings)
|
|
65
|
-
- [Bell](https://www.svgrepo.com/svg/510846/bell)
|
|
66
|
-
- [Credit Card](http://svgrepo.com/svg/510942/credit-card-01?edit=true)
|
|
67
|
-
- **License**: [CC Attribution License](https://www.svgrepo.com/page/licensing#CC%20Attribution)
|
|
68
|
-
- **Modifications**: Changed the color and resized the icon.
|
|
69
|
-
|
|
70
|
-
3. **[Amir Baqian](https://www.svgrepo.com/author/Amir%20Baqian/)**
|
|
71
|
-
- **Icons**
|
|
72
|
-
- [Setting](https://www.svgrepo.com/svg/417812/setting-2)
|
|
73
|
-
- **License**: [CC Attribution License](https://www.svgrepo.com/page/licensing#CC%20Attribution)
|
|
74
|
-
- **Modifications**: Changed the color and resized the icon.
|
|
75
|
-
|
|
76
|
-
4. **[Element Plus](https://www.svgrepo.com/author/element-plus/)**
|
|
77
|
-
- **Icons**
|
|
78
|
-
- [Close](https://www.svgrepo.com/svg/500512/close-bold)
|
|
79
|
-
- **License**: [MIT License](https://www.svgrepo.com/page/licensing#MIT)
|
|
80
|
-
- **Modifications**: Changed the color and resized the icon.
|
|
81
|
-
-
|
|
82
|
-
4. **[Gabriele Malaspina](https://www.svgrepo.com/author/Gabriele%20Malaspina/)**
|
|
83
|
-
- **Icons**
|
|
84
|
-
- [Lock](https://www.svgrepo.com/svg/489031/lock)
|
|
85
|
-
- [UnLock](https://www.svgrepo.com/svg/489034/lock-open)
|
|
86
|
-
- [Refresh](https://www.svgrepo.com/svg/489105/refresh)
|
|
87
|
-
- **License**: [PD License.](https://www.svgrepo.com/page/licensing#PD)
|
|
88
|
-
- **Modifications**: Changed the color and resized the icon.
|
|
89
|
-
|
|
90
|
-
5. **[Dazzle UI](https://www.svgrepo.com/author/Dazzle%20UI/)**
|
|
91
|
-
- **Icons**
|
|
92
|
-
- [Heart](https://www.svgrepo.com/svg/532468/heart-alt)
|
|
93
|
-
- [Cloud](https://www.svgrepo.com/svg/532033/cloud)
|
|
94
|
-
- [Cart](https://www.svgrepo.com/svg/533043/cart-shopping)
|
|
95
|
-
- [AddCart](https://www.svgrepo.com/svg/533036/cart-arrow-down)
|
|
96
|
-
- [RemoveCart](https://www.svgrepo.com/svg/533039/cart-arrow-up)
|
|
97
|
-
- [File](http://svgrepo.com/svg/532747/file-alt)
|
|
98
|
-
- [Folder](http://svgrepo.com/svg/532810/folder)
|
|
99
|
-
- [Camera](https://www.svgrepo.com/svg/533059/camera)
|
|
100
|
-
- [Video](https://www.svgrepo.com/svg/532727/video)
|
|
101
|
-
- [Image](https://www.svgrepo.com/svg/532576/image-square)
|
|
102
|
-
- **License**: [CC Attribution License](https://www.svgrepo.com/page/licensing#CC%20Attribution)
|
|
103
|
-
- **Modifications**: Changed the color and resized the icon.
|
|
104
|
-
|
|
105
|
-
6. **[Solar Icons](https://www.svgrepo.com/author/Solar%20Icons/)**
|
|
106
|
-
- **Icons**
|
|
107
|
-
- [Star](https://www.svgrepo.com/svg/523056/star)
|
|
108
|
-
- **License**: [CC Attribution License](https://www.svgrepo.com/page/licensing#CC%20Attribution)
|
|
109
|
-
- **Modifications**: Changed the color and resized the icon.
|
|
110
|
-
|
|
111
|
-
7. **[afnizarnur](https://www.svgrepo.com/author/afnizarnur/)**
|
|
112
|
-
- **Icons**
|
|
113
|
-
- [Minus](https://www.svgrepo.com/svg/509380/minus)
|
|
114
|
-
- [Plus](https://www.svgrepo.com/svg/509386/plus)
|
|
115
|
-
- **License**: [MIT License](https://www.svgrepo.com/page/licensing#MIT)
|
|
116
|
-
- **Modifications**: Changed the color and resized the icon.
|
|
117
|
-
|
package/dist/index.es.js
DELETED
package/dist/index.es.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/index.umd.js
DELETED
package/dist/index.umd.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.umd.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/src/index.d.ts
DELETED
|
File without changes
|
package/dist/vite.svg
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
|