@usefui/components 1.5.1

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 (104) hide show
  1. package/CHANGELOG.md +233 -0
  2. package/LICENSE +21 -0
  3. package/README.md +0 -0
  4. package/babel.config.js +12 -0
  5. package/dist/index.d.mts +1299 -0
  6. package/dist/index.d.ts +1299 -0
  7. package/dist/index.js +3701 -0
  8. package/dist/index.mjs +3586 -0
  9. package/package.json +44 -0
  10. package/src/__tests__/Accordion.test.tsx +106 -0
  11. package/src/__tests__/Avatar.test.tsx +89 -0
  12. package/src/__tests__/Badge.test.tsx +58 -0
  13. package/src/__tests__/Button.test.tsx +88 -0
  14. package/src/__tests__/Checkbox.test.tsx +106 -0
  15. package/src/__tests__/Collapsible.test.tsx +79 -0
  16. package/src/__tests__/Dialog.test.tsx +109 -0
  17. package/src/__tests__/Dropdown.test.tsx +159 -0
  18. package/src/__tests__/Field.test.tsx +100 -0
  19. package/src/__tests__/OTPField.test.tsx +199 -0
  20. package/src/__tests__/Overlay.test.tsx +70 -0
  21. package/src/__tests__/Page.test.tsx +98 -0
  22. package/src/__tests__/Portal.test.tsx +28 -0
  23. package/src/__tests__/Sheet.test.tsx +125 -0
  24. package/src/__tests__/Switch.test.tsx +90 -0
  25. package/src/__tests__/Tabs.test.tsx +129 -0
  26. package/src/__tests__/Toggle.test.tsx +67 -0
  27. package/src/__tests__/Toolbar.test.tsx +147 -0
  28. package/src/__tests__/Tooltip.test.tsx +88 -0
  29. package/src/accordion/Accordion.stories.tsx +89 -0
  30. package/src/accordion/hooks/index.tsx +39 -0
  31. package/src/accordion/index.tsx +170 -0
  32. package/src/avatar/Avatar.stories.tsx +62 -0
  33. package/src/avatar/index.tsx +90 -0
  34. package/src/avatar/styles/index.ts +79 -0
  35. package/src/badge/Badge.stories.tsx +60 -0
  36. package/src/badge/index.tsx +58 -0
  37. package/src/badge/styles/index.ts +109 -0
  38. package/src/button/Button.stories.tsx +47 -0
  39. package/src/button/index.tsx +79 -0
  40. package/src/button/styles/index.ts +180 -0
  41. package/src/checkbox/Checkbox.stories.tsx +100 -0
  42. package/src/checkbox/hooks/index.tsx +40 -0
  43. package/src/checkbox/index.tsx +147 -0
  44. package/src/checkbox/styles/index.ts +139 -0
  45. package/src/collapsible/Collapsible.stories.tsx +95 -0
  46. package/src/collapsible/hooks/index.tsx +50 -0
  47. package/src/collapsible/index.tsx +137 -0
  48. package/src/dialog/Dialog.stories.tsx +73 -0
  49. package/src/dialog/hooks/index.tsx +35 -0
  50. package/src/dialog/index.tsx +221 -0
  51. package/src/dialog/styles/index.ts +72 -0
  52. package/src/divider/index.ts +10 -0
  53. package/src/dropdown/Dropdown.stories.tsx +100 -0
  54. package/src/dropdown/hooks/index.tsx +64 -0
  55. package/src/dropdown/index.tsx +316 -0
  56. package/src/dropdown/styles/index.ts +90 -0
  57. package/src/field/Field.stories.tsx +146 -0
  58. package/src/field/hooks/index.tsx +28 -0
  59. package/src/field/index.tsx +183 -0
  60. package/src/field/styles/index.ts +166 -0
  61. package/src/index.ts +33 -0
  62. package/src/otp-field/OTPField.stories.tsx +50 -0
  63. package/src/otp-field/hooks/index.tsx +13 -0
  64. package/src/otp-field/index.tsx +234 -0
  65. package/src/otp-field/styles/index.ts +33 -0
  66. package/src/otp-field/types/index.ts +23 -0
  67. package/src/overlay/Overlay.stories.tsx +59 -0
  68. package/src/overlay/index.tsx +58 -0
  69. package/src/overlay/styles/index.ts +26 -0
  70. package/src/page/Page.stories.tsx +85 -0
  71. package/src/page/index.tsx +265 -0
  72. package/src/page/styles/index.ts +59 -0
  73. package/src/portal/Portal.stories.tsx +27 -0
  74. package/src/portal/index.tsx +36 -0
  75. package/src/scrollarea/Scrollarea.stories.tsx +99 -0
  76. package/src/scrollarea/index.tsx +27 -0
  77. package/src/scrollarea/styles/index.ts +71 -0
  78. package/src/sheet/Sheet.stories.tsx +86 -0
  79. package/src/sheet/hooks/index.tsx +47 -0
  80. package/src/sheet/index.tsx +190 -0
  81. package/src/sheet/styles/index.ts +69 -0
  82. package/src/switch/Switch.stories.tsx +96 -0
  83. package/src/switch/hooks/index.tsx +33 -0
  84. package/src/switch/index.tsx +122 -0
  85. package/src/switch/styles/index.ts +118 -0
  86. package/src/table/index.tsx +138 -0
  87. package/src/table/styles/index.ts +48 -0
  88. package/src/tabs/Tabs.stories.tsx +87 -0
  89. package/src/tabs/hooks/index.tsx +35 -0
  90. package/src/tabs/index.tsx +161 -0
  91. package/src/tabs/styles/index.ts +9 -0
  92. package/src/toggle/Toggle.stories.tsx +118 -0
  93. package/src/toggle/index.tsx +55 -0
  94. package/src/toggle/styles/index.ts +0 -0
  95. package/src/toolbar/Toolbar.stories.tsx +89 -0
  96. package/src/toolbar/hooks/index.tsx +35 -0
  97. package/src/toolbar/index.tsx +243 -0
  98. package/src/toolbar/styles/index.ts +129 -0
  99. package/src/tooltip/Tooltip.stories.tsx +60 -0
  100. package/src/tooltip/index.tsx +177 -0
  101. package/src/tooltip/styles/index.ts +38 -0
  102. package/src/utils/index.ts +2 -0
  103. package/tsconfig.json +18 -0
  104. package/vitest.config.ts +16 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,233 @@
1
+ # @usefui/components
2
+
3
+ ## 1.5.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Prepare public deployment
8
+
9
+ ## 1.5.0
10
+
11
+ ### Minor Changes
12
+
13
+ - Update dependencies, remove outdated docs, add otp-field to /components
14
+
15
+ ## 1.4.8
16
+
17
+ ### Patch Changes
18
+
19
+ - Export component hooks
20
+
21
+ ## 1.4.7
22
+
23
+ ### Patch Changes
24
+
25
+ - Fix Button Styles, Update FUI SocialIcon
26
+
27
+ ## 1.4.6
28
+
29
+ ### Patch Changes
30
+
31
+ - Components maintenance
32
+
33
+ ## 1.4.5
34
+
35
+ ### Patch Changes
36
+
37
+ - Update components to always render on client
38
+
39
+ ## 1.4.4
40
+
41
+ ### Patch Changes
42
+
43
+ - Update Portal fix
44
+
45
+ ## 1.4.3
46
+
47
+ ### Patch Changes
48
+
49
+ - Prevent Portal to Break during SSR
50
+
51
+ ## 1.4.2
52
+
53
+ ### Patch Changes
54
+
55
+ - Prevent Overlay to break on SSR rendering
56
+
57
+ ## 1.4.1
58
+
59
+ ### Patch Changes
60
+
61
+ - Fix Tooltip's positioning behavior
62
+
63
+ ## 1.4.0
64
+
65
+ ### Minor Changes
66
+
67
+ - Cleanup codebase, ship Tooltip, Fix Sheet shortcuts
68
+
69
+ ## 1.3.7
70
+
71
+ ### Patch Changes
72
+
73
+ - Fix configs
74
+
75
+ ## 1.3.6
76
+
77
+ ### Patch Changes
78
+
79
+ - Update dependencies, Migrate to Vitest, cleanup packagesfrom duplicated/unused code, enhance code reliability
80
+
81
+ ## 1.3.5
82
+
83
+ ### Patch Changes
84
+
85
+ - Fix Dropdown types to prevent SSR rendering to break, update ColorMode types definitions
86
+
87
+ ## 1.3.4
88
+
89
+ ### Patch Changes
90
+
91
+ - Update dependencies and styles types
92
+
93
+ ## 1.3.3
94
+
95
+ ### Patch Changes
96
+
97
+ - Dependencies updates, Update window definition in ColorMode, remove obselete provider
98
+
99
+ ## 1.3.2
100
+
101
+ ### Patch Changes
102
+
103
+ - Fix Button's svg styles on primary variant
104
+
105
+ ## 1.3.1
106
+
107
+ ### Patch Changes
108
+
109
+ - Patch Button props to prevent error in strictly typed projects
110
+
111
+ ## 1.3.0
112
+
113
+ ### Minor Changes
114
+
115
+ - Update Button properties to support Icon styles updates
116
+
117
+ ## 1.2.0
118
+
119
+ ### Minor Changes
120
+
121
+ - 7903c2a: Republish packages
122
+ - Update packages versions
123
+
124
+ ## 1.1.0
125
+
126
+ ### Minor Changes
127
+
128
+ - Update tsconfs
129
+
130
+ ## 1.0.0
131
+
132
+ ### Major Changes
133
+
134
+ - Prepare Foundation's 1.0.0 release
135
+
136
+ ## 0.8.0
137
+
138
+ ### Minor Changes
139
+
140
+ - Update UBA Hooks, components stylings, Root stylings
141
+
142
+ ## 0.7.0
143
+
144
+ ### Minor Changes
145
+
146
+ - Enhance Core, Components and utils
147
+
148
+ ## 0.6.0
149
+
150
+ ### Minor Changes
151
+
152
+ - Components maintenance, Add User Behavior Analytics Hooks
153
+
154
+ ## 0.5.0
155
+
156
+ ### Minor Changes
157
+
158
+ - 7ee55c3: GH actions update
159
+ - Update Publish GH Actions
160
+
161
+ ## 0.4.0
162
+
163
+ ### Minor Changes
164
+
165
+ - Update components, monorepo structure, add css classes generators
166
+
167
+ ## 0.3.5
168
+
169
+ ### Patch Changes
170
+
171
+ - Update CI
172
+
173
+ ## 0.3.4
174
+
175
+ ### Patch Changes
176
+
177
+ - ee1f4a0: Edit docs
178
+
179
+ ## 0.3.3
180
+
181
+ ### Patch Changes
182
+
183
+ - 7ce56bd: Edit docs and pipelines
184
+
185
+ ## 0.3.2
186
+
187
+ ### Patch Changes
188
+
189
+ - Update CI
190
+
191
+ ## 0.3.1
192
+
193
+ ### Patch Changes
194
+
195
+ - Update CI
196
+
197
+ ## 0.3.0
198
+
199
+ ### Minor Changes
200
+
201
+ - e3dc43e: Deploy Foundation UI Packages
202
+ - aba3555: Publish Foundation UI Packages
203
+ - c46fcc4: Deploy Foundation UI Packages
204
+
205
+ ### Patch Changes
206
+
207
+ - 53f8b62: Edit CI/CD scripts
208
+ - d152bc6: Deploy Foundation UI Packages
209
+ - ec063de: Edit actions
210
+
211
+ ## 0.2.2
212
+
213
+ ### Patch Changes
214
+
215
+ - d27b930: Update CI/CD actions
216
+
217
+ ## 0.2.1
218
+
219
+ ### Patch Changes
220
+
221
+ - 3494bd0: Update release script
222
+
223
+ ## 0.2.0
224
+
225
+ ### Minor Changes
226
+
227
+ - d31e828: prepare packages
228
+
229
+ ## 0.1.1
230
+
231
+ ### Patch Changes
232
+
233
+ - Create foundation/components,core,tokens packages
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023 Foundation UI
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
File without changes
@@ -0,0 +1,12 @@
1
+ module.exports = {
2
+ presets: [
3
+ "@babel/preset-env",
4
+ "@babel/preset-typescript",
5
+ [
6
+ "@babel/preset-react",
7
+ {
8
+ runtime: "automatic",
9
+ },
10
+ ],
11
+ ],
12
+ };