jy-headless 0.0.3 → 0.0.5

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.
Files changed (48) hide show
  1. package/README.md +117 -117
  2. package/dist/index.es.js +0 -1299
  3. package/dist/index.es.js.map +1 -1
  4. package/dist/index.umd.js +1 -32
  5. package/dist/index.umd.js.map +1 -1
  6. package/dist/src/components/buttons/Button.d.ts +4 -0
  7. package/dist/src/index.d.ts +2 -0
  8. package/dist/src/utils/ArrayUtils.d.ts +5 -2
  9. package/package.json +53 -73
  10. package/dist/index.css +0 -1
  11. package/dist/index.d.ts +0 -4
  12. package/dist/src/App.d.ts +0 -2
  13. package/dist/src/components/buttons/CommonButton.d.ts +0 -6
  14. package/dist/src/components/buttons/CommonButton.stories.d.ts +0 -9
  15. package/dist/src/components/buttons/iconButton/IconButton.d.ts +0 -1
  16. package/dist/src/components/icons/AddCartIcon.d.ts +0 -3
  17. package/dist/src/components/icons/BellIcon.d.ts +0 -3
  18. package/dist/src/components/icons/CameraIcon.d.ts +0 -3
  19. package/dist/src/components/icons/CartIcon.d.ts +0 -3
  20. package/dist/src/components/icons/CloseIcon.d.ts +0 -3
  21. package/dist/src/components/icons/CloudIcon.d.ts +0 -3
  22. package/dist/src/components/icons/CreditCardIcon.d.ts +0 -3
  23. package/dist/src/components/icons/DownloadIcon.d.ts +0 -3
  24. package/dist/src/components/icons/EditIcon.d.ts +0 -3
  25. package/dist/src/components/icons/FileIcon.d.ts +0 -3
  26. package/dist/src/components/icons/FolderIcon.d.ts +0 -3
  27. package/dist/src/components/icons/GearIcon.d.ts +0 -3
  28. package/dist/src/components/icons/GlobeIcon.d.ts +0 -3
  29. package/dist/src/components/icons/HeartIcon.d.ts +0 -3
  30. package/dist/src/components/icons/HomeIcon.d.ts +0 -3
  31. package/dist/src/components/icons/Icons.stories.d.ts +0 -14
  32. package/dist/src/components/icons/ImageIcon.d.ts +0 -3
  33. package/dist/src/components/icons/LockIcon.d.ts +0 -3
  34. package/dist/src/components/icons/MinusIcon.d.ts +0 -3
  35. package/dist/src/components/icons/PlusIcon.d.ts +0 -3
  36. package/dist/src/components/icons/RefreshIcon.d.ts +0 -3
  37. package/dist/src/components/icons/RemoveCartIcon.d.ts +0 -3
  38. package/dist/src/components/icons/SaveIcon.d.ts +0 -3
  39. package/dist/src/components/icons/SearchIcon.d.ts +0 -3
  40. package/dist/src/components/icons/SettingIcon.d.ts +0 -3
  41. package/dist/src/components/icons/StarIcon.d.ts +0 -3
  42. package/dist/src/components/icons/UnLockIcon.d.ts +0 -3
  43. package/dist/src/components/icons/UploadIcon.d.ts +0 -3
  44. package/dist/src/components/icons/UserIcon.d.ts +0 -3
  45. package/dist/src/components/icons/VideoIcon.d.ts +0 -3
  46. package/dist/src/components/icons/index.d.ts +0 -29
  47. package/dist/src/components/types.d.ts +0 -12
  48. package/dist/src/main.d.ts +0 -0
package/README.md CHANGED
@@ -1,117 +1,117 @@
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
-
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
+