@feminab/box-ui 0.1.0

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 (295) hide show
  1. package/.babelrc +15 -0
  2. package/.storybook/main.ts +20 -0
  3. package/.storybook/preview.ts +15 -0
  4. package/README.md +46 -0
  5. package/dist/@interfaces/Badge.d.d.ts +12 -0
  6. package/dist/@interfaces/Badge.d.d.ts.map +1 -0
  7. package/dist/@interfaces/Button.d.d.ts +15 -0
  8. package/dist/@interfaces/Button.d.d.ts.map +1 -0
  9. package/dist/@interfaces/Color.d.d.ts +6 -0
  10. package/dist/@interfaces/Color.d.d.ts.map +1 -0
  11. package/dist/@interfaces/IButtonItem.d.d.ts +6 -0
  12. package/dist/@interfaces/IButtonItem.d.d.ts.map +1 -0
  13. package/dist/@interfaces/ISubNavItem.d.d.ts +9 -0
  14. package/dist/@interfaces/ISubNavItem.d.d.ts.map +1 -0
  15. package/dist/@interfaces/MobileNavProps.d.d.ts +5 -0
  16. package/dist/@interfaces/MobileNavProps.d.d.ts.map +1 -0
  17. package/dist/@interfaces/NavItem.d.d.ts +22 -0
  18. package/dist/@interfaces/NavItem.d.d.ts.map +1 -0
  19. package/dist/@interfaces/Pagination.d.d.ts +8 -0
  20. package/dist/@interfaces/Pagination.d.d.ts.map +1 -0
  21. package/dist/@interfaces/Select.d.d.ts +14 -0
  22. package/dist/@interfaces/Select.d.d.ts.map +1 -0
  23. package/dist/@interfaces/SideNavProps.d.d.ts +11 -0
  24. package/dist/@interfaces/SideNavProps.d.d.ts.map +1 -0
  25. package/dist/@interfaces/TextInput.d.d.ts +15 -0
  26. package/dist/@interfaces/TextInput.d.d.ts.map +1 -0
  27. package/dist/@interfaces/index.d.ts +12 -0
  28. package/dist/@interfaces/index.d.ts.map +1 -0
  29. package/dist/Badge.d.ts +4 -0
  30. package/dist/Badge.d.ts.map +1 -0
  31. package/dist/Button.d.ts +4 -0
  32. package/dist/Button.d.ts.map +1 -0
  33. package/dist/ButtonGroup.d.ts +9 -0
  34. package/dist/ButtonGroup.d.ts.map +1 -0
  35. package/dist/ColorBox.d.ts +4 -0
  36. package/dist/ColorBox.d.ts.map +1 -0
  37. package/dist/Header.d.ts +13 -0
  38. package/dist/Header.d.ts.map +1 -0
  39. package/dist/Nav/MobileNav.d.ts +4 -0
  40. package/dist/Nav/MobileNav.d.ts.map +1 -0
  41. package/dist/Nav/NavItem.d.ts +4 -0
  42. package/dist/Nav/NavItem.d.ts.map +1 -0
  43. package/dist/Nav/SideNav.d.ts +5 -0
  44. package/dist/Nav/SideNav.d.ts.map +1 -0
  45. package/dist/Nav/SubNavItem.d.ts +4 -0
  46. package/dist/Nav/SubNavItem.d.ts.map +1 -0
  47. package/dist/Page.d.ts +3 -0
  48. package/dist/Page.d.ts.map +1 -0
  49. package/dist/Paginate.d.ts +4 -0
  50. package/dist/Paginate.d.ts.map +1 -0
  51. package/dist/Select.d.ts +4 -0
  52. package/dist/Select.d.ts.map +1 -0
  53. package/dist/StoryLayout.d.ts +9 -0
  54. package/dist/StoryLayout.d.ts.map +1 -0
  55. package/dist/TextInput.d.ts +4 -0
  56. package/dist/TextInput.d.ts.map +1 -0
  57. package/dist/Typography.d.ts +14 -0
  58. package/dist/Typography.d.ts.map +1 -0
  59. package/dist/box-ui.cjs.development.js +1122 -0
  60. package/dist/box-ui.cjs.development.js.map +1 -0
  61. package/dist/box-ui.cjs.production.min.js +2 -0
  62. package/dist/box-ui.cjs.production.min.js.map +1 -0
  63. package/dist/box-ui.esm.js +1096 -0
  64. package/dist/box-ui.esm.js.map +1 -0
  65. package/dist/data/colors.d.ts +3 -0
  66. package/dist/data/colors.d.ts.map +1 -0
  67. package/dist/data/countries.d.ts +3 -0
  68. package/dist/data/countries.d.ts.map +1 -0
  69. package/dist/data/images/index.d.ts +5 -0
  70. package/dist/data/images/index.d.ts.map +1 -0
  71. package/dist/data/index.d.ts +6 -0
  72. package/dist/data/index.d.ts.map +1 -0
  73. package/dist/data/navItems.d.ts +4 -0
  74. package/dist/data/navItems.d.ts.map +1 -0
  75. package/dist/data/options.d.ts +5 -0
  76. package/dist/data/options.d.ts.map +1 -0
  77. package/dist/data/prices.d.ts +3 -0
  78. package/dist/data/prices.d.ts.map +1 -0
  79. package/dist/hooks/useIconClassName.d.ts +5 -0
  80. package/dist/hooks/useIconClassName.d.ts.map +1 -0
  81. package/dist/hooks/useIconProps.d.ts +5 -0
  82. package/dist/hooks/useIconProps.d.ts.map +1 -0
  83. package/dist/index.d.ts +14 -0
  84. package/dist/index.d.ts.map +1 -0
  85. package/dist/index.js +8 -0
  86. package/dist/reportWebVitals.d.ts +4 -0
  87. package/dist/reportWebVitals.d.ts.map +1 -0
  88. package/dist/setupTests.d.ts +2 -0
  89. package/dist/setupTests.d.ts.map +1 -0
  90. package/dist/stories/Badge.stories.d.ts +13 -0
  91. package/dist/stories/Badge.stories.d.ts.map +1 -0
  92. package/dist/stories/Button.stories.d.ts +16 -0
  93. package/dist/stories/Button.stories.d.ts.map +1 -0
  94. package/dist/stories/ButtonGroup.stories.d.ts +11 -0
  95. package/dist/stories/ButtonGroup.stories.d.ts.map +1 -0
  96. package/dist/stories/Colors.stories.d.ts +8 -0
  97. package/dist/stories/Colors.stories.d.ts.map +1 -0
  98. package/dist/stories/Header.stories.d.ts +20 -0
  99. package/dist/stories/Header.stories.d.ts.map +1 -0
  100. package/dist/stories/MobileNav.stories.d.ts +10 -0
  101. package/dist/stories/MobileNav.stories.d.ts.map +1 -0
  102. package/dist/stories/Page.stories.d.ts +14 -0
  103. package/dist/stories/Page.stories.d.ts.map +1 -0
  104. package/dist/stories/Paginate.stories.d.ts +11 -0
  105. package/dist/stories/Paginate.stories.d.ts.map +1 -0
  106. package/dist/stories/Select.stories.d.ts +11 -0
  107. package/dist/stories/Select.stories.d.ts.map +1 -0
  108. package/dist/stories/SideNav.stories.d.ts +10 -0
  109. package/dist/stories/SideNav.stories.d.ts.map +1 -0
  110. package/dist/stories/TextInput.stories.d.ts +11 -0
  111. package/dist/stories/TextInput.stories.d.ts.map +1 -0
  112. package/dist/stories/Typography.stories.d.ts +11 -0
  113. package/dist/stories/Typography.stories.d.ts.map +1 -0
  114. package/output.css +639 -0
  115. package/package.json +91 -0
  116. package/postcss.config.js +6 -0
  117. package/public/favicon.ico +0 -0
  118. package/public/index.html +43 -0
  119. package/public/logo192.png +0 -0
  120. package/public/logo512.png +0 -0
  121. package/public/manifest.json +25 -0
  122. package/public/robots.txt +3 -0
  123. package/src/@interfaces/Badge.d.tsx +13 -0
  124. package/src/@interfaces/Button.d.tsx +17 -0
  125. package/src/@interfaces/Color.d.tsx +5 -0
  126. package/src/@interfaces/IButtonItem.d.tsx +6 -0
  127. package/src/@interfaces/ISubNavItem.d.tsx +10 -0
  128. package/src/@interfaces/MobileNavProps.d.tsx +4 -0
  129. package/src/@interfaces/NavItem.d.tsx +22 -0
  130. package/src/@interfaces/Pagination.d.tsx +7 -0
  131. package/src/@interfaces/Select.d.tsx +12 -0
  132. package/src/@interfaces/SideNavProps.d.tsx +11 -0
  133. package/src/@interfaces/TextInput.d.tsx +13 -0
  134. package/src/@interfaces/index.tsx +11 -0
  135. package/src/Badge.tsx +44 -0
  136. package/src/Button.tsx +132 -0
  137. package/src/ButtonGroup.tsx +37 -0
  138. package/src/ColorBox.tsx +15 -0
  139. package/src/Header.tsx +55 -0
  140. package/src/Nav/MobileNav.tsx +35 -0
  141. package/src/Nav/NavItem.tsx +101 -0
  142. package/src/Nav/SideNav.tsx +165 -0
  143. package/src/Nav/SubNavItem.tsx +39 -0
  144. package/src/Page.tsx +72 -0
  145. package/src/Paginate.tsx +102 -0
  146. package/src/Select.tsx +102 -0
  147. package/src/StoryLayout.tsx +17 -0
  148. package/src/TextInput.tsx +103 -0
  149. package/src/Typography.tsx +81 -0
  150. package/src/data/colors.tsx +279 -0
  151. package/src/data/countries.tsx +57 -0
  152. package/src/data/images/be.svg +1 -0
  153. package/src/data/images/de.svg +1 -0
  154. package/src/data/images/fr.svg +1 -0
  155. package/src/data/images/in.svg +1 -0
  156. package/src/data/images/index.tsx +33 -0
  157. package/src/data/images/it.svg +1 -0
  158. package/src/data/images/logo.svg +23 -0
  159. package/src/data/images/nl.svg +1 -0
  160. package/src/data/images/ru.svg +1 -0
  161. package/src/data/images/us.svg +1 -0
  162. package/src/data/index.tsx +5 -0
  163. package/src/data/navItems.tsx +109 -0
  164. package/src/data/options.tsx +51 -0
  165. package/src/data/prices.tsx +36 -0
  166. package/src/hooks/useIconClassName.tsx +14 -0
  167. package/src/hooks/useIconProps.tsx +19 -0
  168. package/src/index.js +15 -0
  169. package/src/react-app-env.d.ts +1 -0
  170. package/src/reportWebVitals.ts +15 -0
  171. package/src/setupTests.ts +5 -0
  172. package/src/stories/Badge.stories.tsx +86 -0
  173. package/src/stories/Button.stories.tsx +104 -0
  174. package/src/stories/ButtonGroup.stories.tsx +83 -0
  175. package/src/stories/Colors.stories.tsx +31 -0
  176. package/src/stories/Configure.mdx +364 -0
  177. package/src/stories/Header.stories.ts +33 -0
  178. package/src/stories/MobileNav.stories.tsx +60 -0
  179. package/src/stories/Page.stories.ts +32 -0
  180. package/src/stories/Paginate.stories.tsx +64 -0
  181. package/src/stories/Select.stories.tsx +77 -0
  182. package/src/stories/SideNav.stories.tsx +38 -0
  183. package/src/stories/TextInput.stories.tsx +100 -0
  184. package/src/stories/Typography.stories.tsx +115 -0
  185. package/src/stories/assets/accessibility.png +0 -0
  186. package/src/stories/assets/accessibility.svg +1 -0
  187. package/src/stories/assets/addon-library.png +0 -0
  188. package/src/stories/assets/assets.png +0 -0
  189. package/src/stories/assets/avif-test-image.avif +0 -0
  190. package/src/stories/assets/context.png +0 -0
  191. package/src/stories/assets/discord.svg +1 -0
  192. package/src/stories/assets/docs.png +0 -0
  193. package/src/stories/assets/figma-plugin.png +0 -0
  194. package/src/stories/assets/github.svg +1 -0
  195. package/src/stories/assets/share.png +0 -0
  196. package/src/stories/assets/styling.png +0 -0
  197. package/src/stories/assets/testing.png +0 -0
  198. package/src/stories/assets/theming.png +0 -0
  199. package/src/stories/assets/tutorials.svg +1 -0
  200. package/src/stories/assets/youtube.svg +1 -0
  201. package/src/styles/global.css +367 -0
  202. package/storybook-static/125.65b26339.iframe.bundle.js +405 -0
  203. package/storybook-static/125.65b26339.iframe.bundle.js.LICENSE.txt +9 -0
  204. package/storybook-static/125.65b26339.iframe.bundle.js.map +1 -0
  205. package/storybook-static/13.0638081a.iframe.bundle.js +2 -0
  206. package/storybook-static/13.0638081a.iframe.bundle.js.LICENSE.txt +9 -0
  207. package/storybook-static/161.a19908ac.iframe.bundle.js +2 -0
  208. package/storybook-static/161.a19908ac.iframe.bundle.js.LICENSE.txt +9 -0
  209. package/storybook-static/161528bb6c25115b3f83.png +0 -0
  210. package/storybook-static/167.3fa3a909.iframe.bundle.js +1 -0
  211. package/storybook-static/294.ce38f65c.iframe.bundle.js +1 -0
  212. package/storybook-static/2dbc69731c3f9930a271.png +0 -0
  213. package/storybook-static/314.568bd9af.iframe.bundle.js +2 -0
  214. package/storybook-static/314.568bd9af.iframe.bundle.js.LICENSE.txt +15 -0
  215. package/storybook-static/364.0b18ef67.iframe.bundle.js +1 -0
  216. package/storybook-static/735.1625d9f4.iframe.bundle.js +2 -0
  217. package/storybook-static/735.1625d9f4.iframe.bundle.js.LICENSE.txt +9 -0
  218. package/storybook-static/742.597501f6.iframe.bundle.js +1 -0
  219. package/storybook-static/7a58d2cb9a6358f85e9b.png +0 -0
  220. package/storybook-static/844.aec20bdb.iframe.bundle.js +95 -0
  221. package/storybook-static/844.aec20bdb.iframe.bundle.js.LICENSE.txt +19 -0
  222. package/storybook-static/844.aec20bdb.iframe.bundle.js.map +1 -0
  223. package/storybook-static/9335a1a91b80ad4fec70.png +0 -0
  224. package/storybook-static/936.fd850a3f.iframe.bundle.js +1 -0
  225. package/storybook-static/961.0e5457c5.iframe.bundle.js +2 -0
  226. package/storybook-static/961.0e5457c5.iframe.bundle.js.LICENSE.txt +9 -0
  227. package/storybook-static/c720ced26387af8a9cb2.png +0 -0
  228. package/storybook-static/e93de094692245f1ec04.png +0 -0
  229. package/storybook-static/f7d8b9a8cec7528e0e36.png +0 -0
  230. package/storybook-static/favicon.ico +0 -0
  231. package/storybook-static/favicon.svg +1 -0
  232. package/storybook-static/iframe.html +511 -0
  233. package/storybook-static/index.html +185 -0
  234. package/storybook-static/index.json +1 -0
  235. package/storybook-static/logo192.png +0 -0
  236. package/storybook-static/logo512.png +0 -0
  237. package/storybook-static/main.069281cf.iframe.bundle.js +1 -0
  238. package/storybook-static/manifest.json +25 -0
  239. package/storybook-static/nunito-sans-bold-italic.woff2 +0 -0
  240. package/storybook-static/nunito-sans-bold.woff2 +0 -0
  241. package/storybook-static/nunito-sans-italic.woff2 +0 -0
  242. package/storybook-static/nunito-sans-regular.woff2 +0 -0
  243. package/storybook-static/project.json +1 -0
  244. package/storybook-static/robots.txt +3 -0
  245. package/storybook-static/runtime~main.295ddda4.iframe.bundle.js +1 -0
  246. package/storybook-static/sb-addons/chromatic-com-storybook-10/manager-bundle.js +331 -0
  247. package/storybook-static/sb-addons/chromatic-com-storybook-10/manager-bundle.js.LEGAL.txt +51 -0
  248. package/storybook-static/sb-addons/essentials-actions-2/manager-bundle.js +3 -0
  249. package/storybook-static/sb-addons/essentials-backgrounds-4/manager-bundle.js +12 -0
  250. package/storybook-static/sb-addons/essentials-controls-1/manager-bundle.js +402 -0
  251. package/storybook-static/sb-addons/essentials-docs-3/manager-bundle.js +242 -0
  252. package/storybook-static/sb-addons/essentials-measure-7/manager-bundle.js +3 -0
  253. package/storybook-static/sb-addons/essentials-outline-8/manager-bundle.js +3 -0
  254. package/storybook-static/sb-addons/essentials-toolbars-6/manager-bundle.js +3 -0
  255. package/storybook-static/sb-addons/essentials-viewport-5/manager-bundle.js +3 -0
  256. package/storybook-static/sb-addons/interactions-11/manager-bundle.js +222 -0
  257. package/storybook-static/sb-addons/links-12/manager-bundle.js +3 -0
  258. package/storybook-static/sb-addons/onboarding-9/manager-bundle.js +127 -0
  259. package/storybook-static/sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js +3 -0
  260. package/storybook-static/sb-common-assets/favicon.svg +1 -0
  261. package/storybook-static/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
  262. package/storybook-static/sb-common-assets/nunito-sans-bold.woff2 +0 -0
  263. package/storybook-static/sb-common-assets/nunito-sans-italic.woff2 +0 -0
  264. package/storybook-static/sb-common-assets/nunito-sans-regular.woff2 +0 -0
  265. package/storybook-static/sb-manager/globals-module-info.js +1051 -0
  266. package/storybook-static/sb-manager/globals-runtime.js +41591 -0
  267. package/storybook-static/sb-manager/globals.js +48 -0
  268. package/storybook-static/sb-manager/runtime.js +12048 -0
  269. package/storybook-static/sb-preview/globals.js +33 -0
  270. package/storybook-static/sb-preview/runtime.js +7745 -0
  271. package/storybook-static/static/css/main.08036cd2.css +2294 -0
  272. package/storybook-static/static/css/main.08036cd2.css.map +1 -0
  273. package/storybook-static/static/media/discord.d85804c7f88be863ff119366ab74d826.svg +1 -0
  274. package/storybook-static/static/media/github.e4e8df827592b1ed0288e4678e1965ce.svg +1 -0
  275. package/storybook-static/static/media/tutorials.fde6e46fc254fa77b6e39d1118470f7c.svg +1 -0
  276. package/storybook-static/static/media/youtube.fd046a09fac357359f94cc21068d6560.svg +1 -0
  277. package/storybook-static/stories-Badge-stories.484f7206.iframe.bundle.js +1 -0
  278. package/storybook-static/stories-Button-stories.5e29be85.iframe.bundle.js +1 -0
  279. package/storybook-static/stories-ButtonGroup-stories.cc89968c.iframe.bundle.js +1 -0
  280. package/storybook-static/stories-Colors-stories.f892dc75.iframe.bundle.js +2 -0
  281. package/storybook-static/stories-Colors-stories.f892dc75.iframe.bundle.js.LICENSE.txt +15 -0
  282. package/storybook-static/stories-Configure-mdx.81346d97.iframe.bundle.js +1 -0
  283. package/storybook-static/stories-Header-stories.cf691094.iframe.bundle.js +2 -0
  284. package/storybook-static/stories-Header-stories.cf691094.iframe.bundle.js.LICENSE.txt +15 -0
  285. package/storybook-static/stories-MobileNav-stories.f04cccdd.iframe.bundle.js +1 -0
  286. package/storybook-static/stories-Page-stories.0c9aa29d.iframe.bundle.js +2 -0
  287. package/storybook-static/stories-Page-stories.0c9aa29d.iframe.bundle.js.LICENSE.txt +15 -0
  288. package/storybook-static/stories-Paginate-stories.3b161781.iframe.bundle.js +1 -0
  289. package/storybook-static/stories-Select-stories.7556ae0d.iframe.bundle.js +1 -0
  290. package/storybook-static/stories-SideNav-stories.093fac6a.iframe.bundle.js +1 -0
  291. package/storybook-static/stories-TextInput-stories.6d3e15c6.iframe.bundle.js +1 -0
  292. package/storybook-static/stories-Typography-stories.6640f7ac.iframe.bundle.js +2 -0
  293. package/storybook-static/stories-Typography-stories.6640f7ac.iframe.bundle.js.LICENSE.txt +15 -0
  294. package/tailwind.config.js +113 -0
  295. package/tsconfig.json +29 -0
package/output.css ADDED
@@ -0,0 +1,639 @@
1
+ *, ::before, ::after {
2
+ --tw-border-spacing-x: 0;
3
+ --tw-border-spacing-y: 0;
4
+ --tw-translate-x: 0;
5
+ --tw-translate-y: 0;
6
+ --tw-rotate: 0;
7
+ --tw-skew-x: 0;
8
+ --tw-skew-y: 0;
9
+ --tw-scale-x: 1;
10
+ --tw-scale-y: 1;
11
+ --tw-pan-x: ;
12
+ --tw-pan-y: ;
13
+ --tw-pinch-zoom: ;
14
+ --tw-scroll-snap-strictness: proximity;
15
+ --tw-gradient-from-position: ;
16
+ --tw-gradient-via-position: ;
17
+ --tw-gradient-to-position: ;
18
+ --tw-ordinal: ;
19
+ --tw-slashed-zero: ;
20
+ --tw-numeric-figure: ;
21
+ --tw-numeric-spacing: ;
22
+ --tw-numeric-fraction: ;
23
+ --tw-ring-inset: ;
24
+ --tw-ring-offset-width: 0px;
25
+ --tw-ring-offset-color: #fff;
26
+ --tw-ring-color: rgb(59 130 246 / 0.5);
27
+ --tw-ring-offset-shadow: 0 0 #0000;
28
+ --tw-ring-shadow: 0 0 #0000;
29
+ --tw-shadow: 0 0 #0000;
30
+ --tw-shadow-colored: 0 0 #0000;
31
+ --tw-blur: ;
32
+ --tw-brightness: ;
33
+ --tw-contrast: ;
34
+ --tw-grayscale: ;
35
+ --tw-hue-rotate: ;
36
+ --tw-invert: ;
37
+ --tw-saturate: ;
38
+ --tw-sepia: ;
39
+ --tw-drop-shadow: ;
40
+ --tw-backdrop-blur: ;
41
+ --tw-backdrop-brightness: ;
42
+ --tw-backdrop-contrast: ;
43
+ --tw-backdrop-grayscale: ;
44
+ --tw-backdrop-hue-rotate: ;
45
+ --tw-backdrop-invert: ;
46
+ --tw-backdrop-opacity: ;
47
+ --tw-backdrop-saturate: ;
48
+ --tw-backdrop-sepia: ;
49
+ --tw-contain-size: ;
50
+ --tw-contain-layout: ;
51
+ --tw-contain-paint: ;
52
+ --tw-contain-style: ;
53
+ }
54
+
55
+ ::backdrop {
56
+ --tw-border-spacing-x: 0;
57
+ --tw-border-spacing-y: 0;
58
+ --tw-translate-x: 0;
59
+ --tw-translate-y: 0;
60
+ --tw-rotate: 0;
61
+ --tw-skew-x: 0;
62
+ --tw-skew-y: 0;
63
+ --tw-scale-x: 1;
64
+ --tw-scale-y: 1;
65
+ --tw-pan-x: ;
66
+ --tw-pan-y: ;
67
+ --tw-pinch-zoom: ;
68
+ --tw-scroll-snap-strictness: proximity;
69
+ --tw-gradient-from-position: ;
70
+ --tw-gradient-via-position: ;
71
+ --tw-gradient-to-position: ;
72
+ --tw-ordinal: ;
73
+ --tw-slashed-zero: ;
74
+ --tw-numeric-figure: ;
75
+ --tw-numeric-spacing: ;
76
+ --tw-numeric-fraction: ;
77
+ --tw-ring-inset: ;
78
+ --tw-ring-offset-width: 0px;
79
+ --tw-ring-offset-color: #fff;
80
+ --tw-ring-color: rgb(59 130 246 / 0.5);
81
+ --tw-ring-offset-shadow: 0 0 #0000;
82
+ --tw-ring-shadow: 0 0 #0000;
83
+ --tw-shadow: 0 0 #0000;
84
+ --tw-shadow-colored: 0 0 #0000;
85
+ --tw-blur: ;
86
+ --tw-brightness: ;
87
+ --tw-contrast: ;
88
+ --tw-grayscale: ;
89
+ --tw-hue-rotate: ;
90
+ --tw-invert: ;
91
+ --tw-saturate: ;
92
+ --tw-sepia: ;
93
+ --tw-drop-shadow: ;
94
+ --tw-backdrop-blur: ;
95
+ --tw-backdrop-brightness: ;
96
+ --tw-backdrop-contrast: ;
97
+ --tw-backdrop-grayscale: ;
98
+ --tw-backdrop-hue-rotate: ;
99
+ --tw-backdrop-invert: ;
100
+ --tw-backdrop-opacity: ;
101
+ --tw-backdrop-saturate: ;
102
+ --tw-backdrop-sepia: ;
103
+ --tw-contain-size: ;
104
+ --tw-contain-layout: ;
105
+ --tw-contain-paint: ;
106
+ --tw-contain-style: ;
107
+ }
108
+
109
+ /*
110
+ ! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com
111
+ */
112
+
113
+ /*
114
+ 1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
115
+ 2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
116
+ */
117
+
118
+ *,
119
+ ::before,
120
+ ::after {
121
+ box-sizing: border-box;
122
+ /* 1 */
123
+ border-width: 0;
124
+ /* 2 */
125
+ border-style: solid;
126
+ /* 2 */
127
+ border-color: #E9EAEB;
128
+ /* 2 */
129
+ }
130
+
131
+ ::before,
132
+ ::after {
133
+ --tw-content: '';
134
+ }
135
+
136
+ /*
137
+ 1. Use a consistent sensible line-height in all browsers.
138
+ 2. Prevent adjustments of font size after orientation changes in iOS.
139
+ 3. Use a more readable tab size.
140
+ 4. Use the user's configured `sans` font-family by default.
141
+ 5. Use the user's configured `sans` font-feature-settings by default.
142
+ 6. Use the user's configured `sans` font-variation-settings by default.
143
+ 7. Disable tap highlights on iOS
144
+ */
145
+
146
+ html,
147
+ :host {
148
+ line-height: 1.5;
149
+ /* 1 */
150
+ -webkit-text-size-adjust: 100%;
151
+ /* 2 */
152
+ /* 3 */
153
+ tab-size: 4;
154
+ /* 3 */
155
+ font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
156
+ /* 4 */
157
+ font-feature-settings: normal;
158
+ /* 5 */
159
+ font-variation-settings: normal;
160
+ /* 6 */
161
+ -webkit-tap-highlight-color: transparent;
162
+ /* 7 */
163
+ }
164
+
165
+ /*
166
+ 1. Remove the margin in all browsers.
167
+ 2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
168
+ */
169
+
170
+ body {
171
+ margin: 0;
172
+ /* 1 */
173
+ line-height: inherit;
174
+ /* 2 */
175
+ }
176
+
177
+ /*
178
+ 1. Add the correct height in Firefox.
179
+ 2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
180
+ 3. Ensure horizontal rules are visible by default.
181
+ */
182
+
183
+ hr {
184
+ height: 0;
185
+ /* 1 */
186
+ color: inherit;
187
+ /* 2 */
188
+ border-top-width: 1px;
189
+ /* 3 */
190
+ }
191
+
192
+ /*
193
+ Add the correct text decoration in Chrome, Edge, and Safari.
194
+ */
195
+
196
+ abbr:where([title]) {
197
+ -webkit-text-decoration: underline dotted;
198
+ text-decoration: underline dotted;
199
+ }
200
+
201
+ /*
202
+ Remove the default font size and weight for headings.
203
+ */
204
+
205
+ h1,
206
+ h2,
207
+ h3,
208
+ h4,
209
+ h5,
210
+ h6 {
211
+ font-size: inherit;
212
+ font-weight: inherit;
213
+ }
214
+
215
+ /*
216
+ Reset links to optimize for opt-in styling instead of opt-out.
217
+ */
218
+
219
+ a {
220
+ color: inherit;
221
+ text-decoration: inherit;
222
+ }
223
+
224
+ /*
225
+ Add the correct font weight in Edge and Safari.
226
+ */
227
+
228
+ b,
229
+ strong {
230
+ font-weight: bolder;
231
+ }
232
+
233
+ /*
234
+ 1. Use the user's configured `mono` font-family by default.
235
+ 2. Use the user's configured `mono` font-feature-settings by default.
236
+ 3. Use the user's configured `mono` font-variation-settings by default.
237
+ 4. Correct the odd `em` font sizing in all browsers.
238
+ */
239
+
240
+ code,
241
+ kbd,
242
+ samp,
243
+ pre {
244
+ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
245
+ /* 1 */
246
+ font-feature-settings: normal;
247
+ /* 2 */
248
+ font-variation-settings: normal;
249
+ /* 3 */
250
+ font-size: 1em;
251
+ /* 4 */
252
+ }
253
+
254
+ /*
255
+ Add the correct font size in all browsers.
256
+ */
257
+
258
+ small {
259
+ font-size: 80%;
260
+ }
261
+
262
+ /*
263
+ Prevent `sub` and `sup` elements from affecting the line height in all browsers.
264
+ */
265
+
266
+ sub,
267
+ sup {
268
+ font-size: 75%;
269
+ line-height: 0;
270
+ position: relative;
271
+ vertical-align: baseline;
272
+ }
273
+
274
+ sub {
275
+ bottom: -0.25em;
276
+ }
277
+
278
+ sup {
279
+ top: -0.5em;
280
+ }
281
+
282
+ /*
283
+ 1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
284
+ 2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
285
+ 3. Remove gaps between table borders by default.
286
+ */
287
+
288
+ table {
289
+ text-indent: 0;
290
+ /* 1 */
291
+ border-color: inherit;
292
+ /* 2 */
293
+ border-collapse: collapse;
294
+ /* 3 */
295
+ }
296
+
297
+ /*
298
+ 1. Change the font styles in all browsers.
299
+ 2. Remove the margin in Firefox and Safari.
300
+ 3. Remove default padding in all browsers.
301
+ */
302
+
303
+ button,
304
+ input,
305
+ optgroup,
306
+ select,
307
+ textarea {
308
+ font-family: inherit;
309
+ /* 1 */
310
+ font-feature-settings: inherit;
311
+ /* 1 */
312
+ font-variation-settings: inherit;
313
+ /* 1 */
314
+ font-size: 100%;
315
+ /* 1 */
316
+ font-weight: inherit;
317
+ /* 1 */
318
+ line-height: inherit;
319
+ /* 1 */
320
+ letter-spacing: inherit;
321
+ /* 1 */
322
+ color: inherit;
323
+ /* 1 */
324
+ margin: 0;
325
+ /* 2 */
326
+ padding: 0;
327
+ /* 3 */
328
+ }
329
+
330
+ /*
331
+ Remove the inheritance of text transform in Edge and Firefox.
332
+ */
333
+
334
+ button,
335
+ select {
336
+ text-transform: none;
337
+ }
338
+
339
+ /*
340
+ 1. Correct the inability to style clickable types in iOS and Safari.
341
+ 2. Remove default button styles.
342
+ */
343
+
344
+ button,
345
+ input:where([type='button']),
346
+ input:where([type='reset']),
347
+ input:where([type='submit']) {
348
+ -webkit-appearance: button;
349
+ /* 1 */
350
+ background-color: transparent;
351
+ /* 2 */
352
+ background-image: none;
353
+ /* 2 */
354
+ }
355
+
356
+ /*
357
+ Use the modern Firefox focus style for all focusable elements.
358
+ */
359
+
360
+ :-moz-focusring {
361
+ outline: auto;
362
+ }
363
+
364
+ /*
365
+ Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
366
+ */
367
+
368
+ :-moz-ui-invalid {
369
+ box-shadow: none;
370
+ }
371
+
372
+ /*
373
+ Add the correct vertical alignment in Chrome and Firefox.
374
+ */
375
+
376
+ progress {
377
+ vertical-align: baseline;
378
+ }
379
+
380
+ /*
381
+ Correct the cursor style of increment and decrement buttons in Safari.
382
+ */
383
+
384
+ ::-webkit-inner-spin-button,
385
+ ::-webkit-outer-spin-button {
386
+ height: auto;
387
+ }
388
+
389
+ /*
390
+ 1. Correct the odd appearance in Chrome and Safari.
391
+ 2. Correct the outline style in Safari.
392
+ */
393
+
394
+ [type='search'] {
395
+ -webkit-appearance: textfield;
396
+ /* 1 */
397
+ outline-offset: -2px;
398
+ /* 2 */
399
+ }
400
+
401
+ /*
402
+ Remove the inner padding in Chrome and Safari on macOS.
403
+ */
404
+
405
+ ::-webkit-search-decoration {
406
+ -webkit-appearance: none;
407
+ }
408
+
409
+ /*
410
+ 1. Correct the inability to style clickable types in iOS and Safari.
411
+ 2. Change font properties to `inherit` in Safari.
412
+ */
413
+
414
+ ::-webkit-file-upload-button {
415
+ -webkit-appearance: button;
416
+ /* 1 */
417
+ font: inherit;
418
+ /* 2 */
419
+ }
420
+
421
+ /*
422
+ Add the correct display in Chrome and Safari.
423
+ */
424
+
425
+ summary {
426
+ display: list-item;
427
+ }
428
+
429
+ /*
430
+ Removes the default spacing and border for appropriate elements.
431
+ */
432
+
433
+ blockquote,
434
+ dl,
435
+ dd,
436
+ h1,
437
+ h2,
438
+ h3,
439
+ h4,
440
+ h5,
441
+ h6,
442
+ hr,
443
+ figure,
444
+ p,
445
+ pre {
446
+ margin: 0;
447
+ }
448
+
449
+ fieldset {
450
+ margin: 0;
451
+ padding: 0;
452
+ }
453
+
454
+ legend {
455
+ padding: 0;
456
+ }
457
+
458
+ ol,
459
+ ul,
460
+ menu {
461
+ list-style: none;
462
+ margin: 0;
463
+ padding: 0;
464
+ }
465
+
466
+ /*
467
+ Reset default styling for dialogs.
468
+ */
469
+
470
+ dialog {
471
+ padding: 0;
472
+ }
473
+
474
+ /*
475
+ Prevent resizing textareas horizontally by default.
476
+ */
477
+
478
+ textarea {
479
+ resize: vertical;
480
+ }
481
+
482
+ /*
483
+ 1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
484
+ 2. Set the default placeholder color to the user's configured gray 400 color.
485
+ */
486
+
487
+ input::placeholder,
488
+ textarea::placeholder {
489
+ opacity: 1;
490
+ /* 1 */
491
+ color: #A4A7AE;
492
+ /* 2 */
493
+ }
494
+
495
+ /*
496
+ Set the default cursor for buttons.
497
+ */
498
+
499
+ button,
500
+ [role="button"] {
501
+ cursor: pointer;
502
+ }
503
+
504
+ /*
505
+ Make sure disabled buttons don't get the pointer cursor.
506
+ */
507
+
508
+ :disabled {
509
+ cursor: default;
510
+ }
511
+
512
+ /*
513
+ 1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
514
+ 2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
515
+ This can trigger a poorly considered lint error in some tools but is included by design.
516
+ */
517
+
518
+ img,
519
+ svg,
520
+ video,
521
+ canvas,
522
+ audio,
523
+ iframe,
524
+ embed,
525
+ object {
526
+ display: block;
527
+ /* 1 */
528
+ vertical-align: middle;
529
+ /* 2 */
530
+ }
531
+
532
+ /*
533
+ Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
534
+ */
535
+
536
+ img,
537
+ video {
538
+ max-width: 100%;
539
+ height: auto;
540
+ }
541
+
542
+ /* Make elements with the HTML hidden attribute stay hidden by default */
543
+
544
+ [hidden]:where(:not([hidden="until-found"])) {
545
+ display: none;
546
+ }
547
+
548
+ .-m-4 {
549
+ margin: -1rem;
550
+ }
551
+
552
+ .mx-3 {
553
+ margin-left: 0.75rem;
554
+ margin-right: 0.75rem;
555
+ }
556
+
557
+ .my-3 {
558
+ margin-top: 0.75rem;
559
+ margin-bottom: 0.75rem;
560
+ }
561
+
562
+ .flex {
563
+ display: flex;
564
+ }
565
+
566
+ .grid {
567
+ display: grid;
568
+ }
569
+
570
+ .contents {
571
+ display: contents;
572
+ }
573
+
574
+ .h-20 {
575
+ height: 5rem;
576
+ }
577
+
578
+ .transform {
579
+ transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
580
+ }
581
+
582
+ .grid-cols-2 {
583
+ grid-template-columns: repeat(2, minmax(0, 1fr));
584
+ }
585
+
586
+ .flex-col {
587
+ flex-direction: column;
588
+ }
589
+
590
+ .gap-4 {
591
+ gap: 1rem;
592
+ }
593
+
594
+ .rounded-lg {
595
+ border-radius: 0.5rem;
596
+ }
597
+
598
+ .rounded-t-lg {
599
+ border-top-left-radius: 0.5rem;
600
+ border-top-right-radius: 0.5rem;
601
+ }
602
+
603
+ .border {
604
+ border-width: 1px;
605
+ }
606
+
607
+ .antialiased {
608
+ -webkit-font-smoothing: antialiased;
609
+ -moz-osx-font-smoothing: grayscale;
610
+ }
611
+
612
+ .shadow-lg {
613
+ --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
614
+ --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
615
+ box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
616
+ }
617
+
618
+ .grayscale {
619
+ --tw-grayscale: grayscale(100%);
620
+ filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
621
+ }
622
+
623
+ @media (min-width: 768px) {
624
+ .md\:grid-cols-4 {
625
+ grid-template-columns: repeat(4, minmax(0, 1fr));
626
+ }
627
+ }
628
+
629
+ @media (min-width: 1024px) {
630
+ .lg\:grid-cols-6 {
631
+ grid-template-columns: repeat(6, minmax(0, 1fr));
632
+ }
633
+ }
634
+
635
+ @media (min-width: 1280px) {
636
+ .xl\:grid-cols-11 {
637
+ grid-template-columns: repeat(11, minmax(0, 1fr));
638
+ }
639
+ }
package/package.json ADDED
@@ -0,0 +1,91 @@
1
+ {
2
+ "name": "@feminab/box-ui",
3
+ "version": "0.1.0",
4
+ "private": false,
5
+ "publishConfig": {
6
+ "access": "public"
7
+ },
8
+ "dependencies": {
9
+ "@headlessui/react": "^2.2.0",
10
+ "@testing-library/dom": "^10.4.0",
11
+ "@testing-library/jest-dom": "^6.6.3",
12
+ "@testing-library/react": "^16.2.0",
13
+ "@testing-library/user-event": "^13.5.0",
14
+ "@types/jest": "^27.5.2",
15
+ "@types/node": "^16.18.126",
16
+ "@types/react": "^19.0.10",
17
+ "@types/react-dom": "^19.0.4",
18
+ "classnames": "^2.5.1",
19
+ "react": "^19.0.0",
20
+ "react-dom": "^19.0.0",
21
+ "react-headless-pagination": "^1.1.0",
22
+ "react-icons": "^5.5.0",
23
+ "react-scripts": "5.0.1",
24
+ "web-vitals": "^2.1.4"
25
+ },
26
+ "scripts": {
27
+ "start": "tsdx start",
28
+ "build": "NODE_ENV=production tsdx build",
29
+ "test": "tsdx test",
30
+ "eject": "tsdx eject",
31
+ "storybook": "storybook dev -p 6006",
32
+ "build-storybook": "storybook build",
33
+ "storybook:build": "build-storybook",
34
+ "storybook:deploy": "gh-pages -d storybook-static",
35
+ "build:css": "postcss ./src/styles/tailwind.css build -o css/tailwind.dist.css --minify"
36
+ },
37
+ "eslintConfig": {
38
+ "extends": [
39
+ "react-app",
40
+ "react-app/jest",
41
+ "plugin:storybook/recommended"
42
+ ]
43
+ },
44
+ "browserslist": {
45
+ "production": [
46
+ ">0.2%",
47
+ "not dead",
48
+ "not op_mini all"
49
+ ],
50
+ "development": [
51
+ "last 1 chrome version",
52
+ "last 1 firefox version",
53
+ "last 1 safari version"
54
+ ]
55
+ },
56
+ "devDependencies": {
57
+ "@babel/core": "^7.26.10",
58
+ "@babel/plugin-proposal-optional-chaining": "^7.21.0",
59
+ "@babel/preset-env": "^7.26.9",
60
+ "@babel/preset-react": "^7.26.3",
61
+ "@babel/preset-typescript": "^7.27.0",
62
+ "@chromatic-com/storybook": "^3.2.6",
63
+ "@storybook/addon-essentials": "^8.6.0",
64
+ "@storybook/addon-interactions": "^8.6.0",
65
+ "@storybook/addon-links": "^8.6.12",
66
+ "@storybook/addon-onboarding": "^8.6.0",
67
+ "@storybook/blocks": "^8.6.0",
68
+ "@storybook/preset-create-react-app": "^8.6.0",
69
+ "@storybook/react": "^8.6.0",
70
+ "@storybook/react-webpack5": "^8.6.0",
71
+ "@storybook/test": "^8.6.0",
72
+ "ajv": "^8.17.1",
73
+ "ajv-keywords": "^5.1.0",
74
+ "autoprefixer": "^10.4.20",
75
+ "eslint": "^8.57.1",
76
+ "eslint-config-prettier": "^10.0.1",
77
+ "eslint-plugin-react": "^7.37.4",
78
+ "eslint-plugin-storybook": "^0.11.3",
79
+ "eslint-plugin-tailwindcss": "^3.18.0",
80
+ "gh-pages": "^6.3.0",
81
+ "postcss": "^8.5.3",
82
+ "prettier": "^3.5.2",
83
+ "prop-types": "^15.8.1",
84
+ "react-refresh": "^0.17.0",
85
+ "storybook": "^8.6.0",
86
+ "tailwindcss": "^3.4.17",
87
+ "tsdx": "^0.14.1",
88
+ "typescript": "^5.8.2",
89
+ "webpack": "^5.98.0"
90
+ }
91
+ }
@@ -0,0 +1,6 @@
1
+ module.exports = {
2
+ plugins: {
3
+ tailwindcss: {},
4
+ autoprefixer: {},
5
+ },
6
+ };