@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
@@ -0,0 +1,279 @@
1
+ import { IColor } from "../@interfaces";
2
+
3
+ export const colors: IColor[] = [
4
+ {
5
+ bgClass: "bg-gray-2",
6
+ code: 25,
7
+ hex: "#FCFCF",
8
+ },
9
+ {
10
+ bgClass: "bg-gray-50",
11
+ code: 50,
12
+ hex: "#F9FAFB",
13
+ },
14
+ {
15
+ bgClass: "bg-gray-100",
16
+ code: 100,
17
+ hex: "#F2F4F7",
18
+ },
19
+ {
20
+ bgClass: "bg-gray-200",
21
+ code: 200,
22
+ hex: "#E4E7EC",
23
+ },
24
+ {
25
+ bgClass: "bg-gray-300",
26
+ code: 300,
27
+ hex: "#D0D5DD",
28
+ },
29
+ {
30
+ bgClass: "bg-gray-400",
31
+ code: 400,
32
+ hex: "#98A2B3",
33
+ },
34
+ {
35
+ bgClass: "bg-gray-500",
36
+ code: 500,
37
+ hex: "#667085",
38
+ },
39
+ {
40
+ bgClass: "bg-gray-600",
41
+ code: 600,
42
+ hex: "#475467",
43
+ },
44
+ {
45
+ bgClass: "bg-gray-700",
46
+ code: 700,
47
+ hex: "#344054",
48
+ },
49
+ {
50
+ bgClass: "bg-gray-800",
51
+ code: 800,
52
+ hex: "#1D2939",
53
+ },
54
+ {
55
+ bgClass: "bg-gray-900",
56
+ code: 900,
57
+ hex: "#101828",
58
+ },
59
+ {
60
+ bgClass: "bg-primary-25",
61
+ code: 25,
62
+ hex: "#F5FAFF",
63
+ },
64
+ {
65
+ bgClass: "bg-primary-50",
66
+ code: 50,
67
+ hex: "#EFF8FF",
68
+ },
69
+ {
70
+ bgClass: "bg-primary-100",
71
+ code: 100,
72
+ hex: "#D1E9FF",
73
+ },
74
+ {
75
+ bgClass: "bg-primary-200",
76
+ code: 200,
77
+ hex: "#B2DDFF",
78
+ },
79
+ {
80
+ bgClass: "bg-primary-300",
81
+ code: 300,
82
+ hex: "#84CAFF",
83
+ },
84
+ {
85
+ bgClass: "bg-primary-400",
86
+ code: 400,
87
+ hex: "#53B1FD",
88
+ },
89
+ {
90
+ bgClass: "bg-primary-500",
91
+ code: 500,
92
+ hex: "#2E90FA",
93
+ },
94
+ {
95
+ bgClass: "bg-primary-600",
96
+ code: 600,
97
+ hex: "#1570EF",
98
+ },
99
+ {
100
+ bgClass: "bg-primary-700",
101
+ code: 700,
102
+ hex: "#175CD3",
103
+ },
104
+ {
105
+ bgClass: "bg-primary-800",
106
+ code: 800,
107
+ hex: "#1849A9",
108
+ },
109
+ {
110
+ bgClass: "bg-primary-900",
111
+ code: 900,
112
+ hex: "#194185",
113
+ },
114
+ {
115
+ bgClass: "bg-error-25",
116
+ code: 25,
117
+ hex: "#FFFBFA",
118
+ },
119
+ {
120
+ bgClass: "bg-error-50",
121
+ code: 50,
122
+ hex: "#FEF3F2",
123
+ },
124
+ {
125
+ bgClass: "bg-error-100",
126
+ code: 100,
127
+ hex: "#FEE4E2",
128
+ },
129
+ {
130
+ bgClass: "bg-error-200",
131
+ code: 200,
132
+ hex: "#FECDCA",
133
+ },
134
+ {
135
+ bgClass: "bg-error-300",
136
+ code: 300,
137
+ hex: "#FDA29B",
138
+ },
139
+ {
140
+ bgClass: "bg-error-400",
141
+ code: 400,
142
+ hex: "#F97066",
143
+ },
144
+ {
145
+ bgClass: "bg-error-500",
146
+ code: 500,
147
+ hex: "#F04438",
148
+ },
149
+ {
150
+ bgClass: "bg-error-600",
151
+ code: 600,
152
+ hex: "#D92D20",
153
+ },
154
+ {
155
+ bgClass: "bg-error-700",
156
+ code: 700,
157
+ hex: "#B42318",
158
+ },
159
+ {
160
+ bgClass: "bg-error-800",
161
+ code: 800,
162
+ hex: "#912018",
163
+ },
164
+ {
165
+ bgClass: "bg-error-900",
166
+ code: 900,
167
+ hex: "#7A271A",
168
+ },
169
+ {
170
+ bgClass: "bg-warning-25",
171
+ code: 25,
172
+ hex: "#FFFCF5",
173
+ },
174
+ {
175
+ bgClass: "bg-warning-50",
176
+ code: 50,
177
+ hex: "#FFFAEB",
178
+ },
179
+ {
180
+ bgClass: "bg-warning-100",
181
+ code: 100,
182
+ hex: "#FEF0C7",
183
+ },
184
+ {
185
+ bgClass: "bg-warning-200",
186
+ code: 200,
187
+ hex: "#FEDF89",
188
+ },
189
+ {
190
+ bgClass: "bg-warning-300",
191
+ code: 300,
192
+ hex: "#FEC84B",
193
+ },
194
+ {
195
+ bgClass: "bg-warning-400",
196
+ code: 400,
197
+ hex: "#FDB022",
198
+ },
199
+ {
200
+ bgClass: "bg-warning-500",
201
+ code: 500,
202
+ hex: "#F79009",
203
+ },
204
+ {
205
+ bgClass: "bg-warning-600",
206
+ code: 600,
207
+ hex: "#DC6803",
208
+ },
209
+ {
210
+ bgClass: "bg-warning-700",
211
+ code: 700,
212
+ hex: "#B54708",
213
+ },
214
+ {
215
+ bgClass: "bg-warning-800",
216
+ code: 800,
217
+ hex: "#93370D",
218
+ },
219
+ {
220
+ bgClass: "bg-warning-900",
221
+ code: 900,
222
+ hex: "#7A2E0E",
223
+ },
224
+ {
225
+ bgClass: "bg-success-25",
226
+ code: 25,
227
+ hex: "#F6FEF9",
228
+ },
229
+ {
230
+ bgClass: "bg-success-50",
231
+ code: 50,
232
+ hex: "#ECFDF3",
233
+ },
234
+ {
235
+ bgClass: "bg-success-100",
236
+ code: 100,
237
+ hex: "#D1FADF",
238
+ },
239
+ {
240
+ bgClass: "bg-success-200",
241
+ code: 200,
242
+ hex: "#A6F4C5",
243
+ },
244
+ {
245
+ bgClass: "bg-success-300",
246
+ code: 300,
247
+ hex: "#6CE9A6",
248
+ },
249
+ {
250
+ bgClass: "bg-success-400",
251
+ code: 400,
252
+ hex: "#32D583",
253
+ },
254
+ {
255
+ bgClass: "bg-success-500",
256
+ code: 500,
257
+ hex: "#12B76A",
258
+ },
259
+ {
260
+ bgClass: "bg-success-600",
261
+ code: 600,
262
+ hex: "#039855",
263
+ },
264
+ {
265
+ bgClass: "bg-success-700",
266
+ code: 700,
267
+ hex: "#027A48",
268
+ },
269
+ {
270
+ bgClass: "bg-success-800",
271
+ code: 800,
272
+ hex: "#05603A",
273
+ },
274
+ {
275
+ bgClass: "bg-success-900",
276
+ code: 900,
277
+ hex: "#054F31",
278
+ },
279
+ ];
@@ -0,0 +1,57 @@
1
+ import React from "react";
2
+ import { IOption } from "../@interfaces";
3
+ import { CountryISO, images } from "./images";
4
+
5
+ interface ICountry {
6
+ city: string;
7
+ countryISO: CountryISO;
8
+ }
9
+
10
+ const countriesData: ICountry[] = [
11
+ {
12
+ city: "Ahmedabad",
13
+ countryISO: "IN",
14
+ },
15
+ {
16
+ city: "Amsterdam",
17
+ countryISO: "NL",
18
+ },
19
+ {
20
+ city: "Rome",
21
+ countryISO: "IT",
22
+ },
23
+ {
24
+ city: "Berlin",
25
+ countryISO: "DE",
26
+ },
27
+ {
28
+ city: "Paris",
29
+ countryISO: "FR",
30
+ },
31
+ {
32
+ city: "Washington",
33
+ countryISO: "US",
34
+ },
35
+ {
36
+ city: "Moscow",
37
+ countryISO: "RU",
38
+ },
39
+ {
40
+ city: "Brussels",
41
+ countryISO: "BE",
42
+ },
43
+ ];
44
+
45
+ export const countries: IOption[] = countriesData.map((country) => ({
46
+ value: country.countryISO,
47
+ label: (
48
+ <>
49
+ <img
50
+ src={images[country.countryISO]}
51
+ alt={country.countryISO.toLowerCase()}
52
+ className="w-5 h-5 mr-2"
53
+ />{" "}
54
+ {`${country.city}, ${country.countryISO}`}
55
+ </>
56
+ ),
57
+ }));
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="512" height="512" viewBox="0 0 512 512"><mask id="a"><circle cx="256" cy="256" r="256" fill="#fff"/></mask><g mask="url(#a)"><path fill="#333" d="M0 0h167l38.2 252.6L167 512H0z"/><path fill="#d80027" d="M345 0h167v512H345l-36.7-256z"/><path fill="#ffda44" d="M167 0h178v512H167z"/></g></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="512" height="512" viewBox="0 0 512 512"><mask id="a"><circle cx="256" cy="256" r="256" fill="#fff"/></mask><g mask="url(#a)"><path fill="#ffda44" d="m0 345 256.7-25.5L512 345v167H0z"/><path fill="#d80027" d="m0 167 255-23 257 23v178H0z"/><path fill="#333" d="M0 0h512v167H0z"/></g></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="512" height="512" viewBox="0 0 512 512"><mask id="a"><circle cx="256" cy="256" r="256" fill="#fff"/></mask><g mask="url(#a)"><path fill="#eee" d="M167 0h178l25.9 252.3L345 512H167l-29.8-253.4z"/><path fill="#0052b4" d="M0 0h167v512H0z"/><path fill="#d80027" d="M345 0h167v512H345z"/></g></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="512" height="512" viewBox="0 0 512 512"><mask id="a"><circle cx="256" cy="256" r="256" fill="#fff"/></mask><g mask="url(#a)"><path fill="#eee" d="m0 160 256-32 256 32v192l-256 32L0 352z"/><path fill="#ff9811" d="M0 0h512v160H0Z"/><path fill="#6da544" d="M0 352h512v160H0Z"/><circle cx="256" cy="256" r="72" fill="#0052b4"/><circle cx="256" cy="256" r="48" fill="#eee"/><circle cx="256" cy="256" r="24" fill="#0052b4"/></g></svg>
@@ -0,0 +1,33 @@
1
+ export type CountryISO = "IN" | "BE" | "DE" | "FR" | "IT" | "NL" | "RU" | "US";
2
+
3
+ type image = CountryISO | "logo";
4
+
5
+ // Development images
6
+ // const devImages: Record<image, string> = {
7
+ // logo: require("./logo.png"),
8
+ // IN: require("./in.svg"),
9
+ // BE: require("./be.svg"),
10
+ // DE: require("./de.svg"),
11
+ // FR: require("./fr.svg"),
12
+ // IT: require("./it.svg"),
13
+ // NL: require("./nl.svg"),
14
+ // RU: require("./ru.svg"),
15
+ // US: require("./us.svg"),
16
+
17
+ // };
18
+
19
+ // Production images (CDN)
20
+ const prodImages: Record<image, string> = {
21
+ logo: "https://media-hosting.imagekit.io/0ec1ca8b900e4e8b/logo.svg?Expires=1838348369&Key-Pair-Id=K2ZIVPTIP2VGHC&Signature=pCHsmoIdugCAGgRQuivkSFGORbcd0DMZjw-l9LQlxqEs77-19RpmN8TrGsMdYdKwLic46nDsKt44NPaRyu~mxJDKX7I0acu5x53nLqrjh-fs6s8VATv5eHASNeV83rLF3LXgXwMkXubchLy79xPaEHKlRlvJgcqrjZd3cE4C8QXC0KIG4dSjtkd0rECwtweKFuh1BrJIwcKIxiu5cEJUKgDvi4TUS22KVFh4c52c9CjBGa0ulrxxyZHMj2eXff-uQBkecyW-QYillwmsuz2i5PFf6Ud~9JZ2xYOBWwrq4VRSY-8p~c6Czqagg-w6gqyk-3xEM-f-cDfor~11~xwtTg__",
22
+ IN: "https://kapowaz.github.io/circle-flags/flags/in.svg",
23
+ BE: "https://kapowaz.github.io/circle-flags/flags/be.svg",
24
+ DE: "https://kapowaz.github.io/circle-flags/flags/de.svg",
25
+ FR: "https://kapowaz.github.io/circle-flags/flags/fr.svg",
26
+ IT: "https://kapowaz.github.io/circle-flags/flags/it.svg",
27
+ NL: "https://kapowaz.github.io/circle-flags/flags/nl.svg",
28
+ RU: "https://kapowaz.github.io/circle-flags/flags/ru.svg",
29
+ US: "https://kapowaz.github.io/circle-flags/flags/us.svg",
30
+ };
31
+
32
+ export const images = prodImages;
33
+ // export const images = process.env.NODE_ENV === "production" ? prodImages : devImages;
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="512" height="512" viewBox="0 0 512 512"><mask id="a"><circle cx="256" cy="256" r="256" fill="#fff"/></mask><g mask="url(#a)"><path fill="#eee" d="M167 0h178l25.9 252.3L345 512H167l-29.8-253.4z"/><path fill="#6da544" d="M0 0h167v512H0z"/><path fill="#d80027" d="M345 0h167v512H345z"/></g></svg>
@@ -0,0 +1,23 @@
1
+ <svg width="200" height="200" viewBox="0 0 200 200" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <defs>
3
+ <linearGradient id="blueGradient" x1="0" y1="0" x2="1" y2="1">
4
+ <stop offset="0%" stop-color="#66b2ff"/>
5
+ <stop offset="100%" stop-color="#007bff"/>
6
+ </linearGradient>
7
+ </defs>
8
+
9
+ <!-- Outer Box with Rounded Corners -->
10
+ <rect x="10" y="10" width="180" height="180" rx="20" stroke="white" stroke-width="4" fill="url(#blueGradient)"/>
11
+
12
+ <!-- Vertical Slider -->
13
+ <line x1="50" y1="50" x2="50" y2="150" stroke="white" stroke-width="6"/>
14
+ <circle cx="50" cy="100" r="10" fill="white"/>
15
+
16
+ <!-- Rounded Button -->
17
+ <rect x="90" y="85" width="30" height="30" rx="6" fill="white"/>
18
+
19
+ <!-- Hamburger Menu -->
20
+ <line x1="140" y1="90" x2="170" y2="90" stroke="white" stroke-width="4"/>
21
+ <line x1="140" y1="100" x2="170" y2="100" stroke="white" stroke-width="4"/>
22
+ <line x1="140" y1="110" x2="170" y2="110" stroke="white" stroke-width="4"/>
23
+ </svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="512" height="512" viewBox="0 0 512 512"><mask id="a"><circle cx="256" cy="256" r="256" fill="#fff"/></mask><g mask="url(#a)"><path fill="#eee" d="m0 167 253.8-19.3L512 167v178l-254.9 32.3L0 345z"/><path fill="#a2001d" d="M0 0h512v167H0z"/><path fill="#0052b4" d="M0 345h512v167H0z"/></g></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="512" height="512" viewBox="0 0 512 512"><mask id="a"><circle cx="256" cy="256" r="256" fill="#fff"/></mask><g mask="url(#a)"><path fill="#0052b4" d="M512 170v172l-256 32L0 342V170l256-32z"/><path fill="#eee" d="M512 0v170H0V0Z"/><path fill="#d80027" d="M512 342v170H0V342Z"/></g></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="512" height="512" viewBox="0 0 512 512"><mask id="a"><circle cx="256" cy="256" r="256" fill="#fff"/></mask><g mask="url(#a)"><path fill="#eee" d="M256 0h256v64l-32 32 32 32v64l-32 32 32 32v64l-32 32 32 32v64l-256 32L0 448v-64l32-32-32-32v-64z"/><path fill="#d80027" d="M224 64h288v64H224Zm0 128h288v64H256ZM0 320h512v64H0Zm0 128h512v64H0Z"/><path fill="#0052b4" d="M0 0h256v256H0Z"/><path fill="#eee" d="m187 243 57-41h-70l57 41-22-67zm-81 0 57-41H93l57 41-22-67zm-81 0 57-41H12l57 41-22-67zm162-81 57-41h-70l57 41-22-67zm-81 0 57-41H93l57 41-22-67zm-81 0 57-41H12l57 41-22-67Zm162-82 57-41h-70l57 41-22-67Zm-81 0 57-41H93l57 41-22-67zm-81 0 57-41H12l57 41-22-67Z"/></g></svg>
@@ -0,0 +1,5 @@
1
+ export * from "./colors";
2
+ export * from "./countries";
3
+ export * from "./prices";
4
+ export * from "./navItems";
5
+ export * from "./options";
@@ -0,0 +1,109 @@
1
+ import React from "react";
2
+ import { INavItem } from "../@interfaces";
3
+ import {
4
+ FiArrowLeft,
5
+ FiBarChart2,
6
+ FiCheckSquare,
7
+ FiHome,
8
+ FiLayers,
9
+ FiSettings,
10
+ FiFlag,
11
+ FiMapPin,
12
+ } from "react-icons/fi";
13
+
14
+ const Home = FiHome as React.FC<any>;
15
+ const Layers = FiLayers as React.FC<any>;
16
+ const Settings = FiSettings as React.FC<any>;
17
+ const Flag = FiFlag as React.FC<any>;
18
+ const MapPin = FiMapPin as React.FC<any>;
19
+ const CheckSquare = FiCheckSquare as React.FC<any>;
20
+ const BarChart = FiBarChart2 as React.FC<any>;
21
+ const ArrowLeft = FiArrowLeft as React.FC<any>;
22
+
23
+ export const navItemsTop: INavItem[] = [
24
+ {
25
+ order: 0,
26
+ path: "home",
27
+ label: "Home",
28
+ icon: <Home />,
29
+ },
30
+ {
31
+ order: 1,
32
+ path: "dashboard",
33
+ label: "Dashboard",
34
+ icon: <BarChart />,
35
+ subItems: [
36
+ {
37
+ order: 0,
38
+ path: "analytics",
39
+ label: "Analytics",
40
+ },
41
+ {
42
+ order: 1,
43
+ path: "apps",
44
+ label: "Apps",
45
+ },
46
+ {
47
+ order: 2,
48
+ path: "learn",
49
+ label: "Learn",
50
+ },
51
+ ],
52
+ },
53
+ {
54
+ order: 2,
55
+ path: "projects",
56
+ label: "Projects",
57
+ icon: <Layers />,
58
+ },
59
+ {
60
+ order: 3,
61
+ path: "tasks",
62
+ label: "Tasks",
63
+ icon: <CheckSquare />,
64
+ },
65
+ {
66
+ order: 4,
67
+ path: "reporting",
68
+ label: "Reporting",
69
+ icon: <Flag />,
70
+ },
71
+ {
72
+ order: 5,
73
+ path: "rentals",
74
+ label: "Rentals",
75
+ icon: <MapPin />,
76
+ subItems: [
77
+ {
78
+ order: 0,
79
+ path: "all",
80
+ label: "All rentals",
81
+ },
82
+ {
83
+ order: 1,
84
+ path: "popular",
85
+ label: "Popular",
86
+ },
87
+ {
88
+ order: 2,
89
+ path: "recent",
90
+ label: "Recently added",
91
+ },
92
+ ],
93
+ },
94
+ ];
95
+
96
+ export const navItemsBottom: INavItem[] = [
97
+ {
98
+ order: 0,
99
+ path: "settings",
100
+ label: "Settings",
101
+ icon: <Settings />,
102
+ },
103
+ {
104
+ order: 1,
105
+ label: "Close Navbar",
106
+ icon: <ArrowLeft />,
107
+ toggleSidebar: true,
108
+ },
109
+ ];
@@ -0,0 +1,51 @@
1
+ import React from 'react'
2
+ import { IButtonItem } from "../@interfaces";
3
+ import { FiCircle, FiList, FiGrid } from "react-icons/fi";
4
+
5
+
6
+ const Circle = FiCircle as React.FC<any>;
7
+
8
+ const List = FiList as React.FC<any>;
9
+
10
+ const Grid = FiGrid as React.FC<any>;
11
+
12
+ export const options1: IButtonItem[] = [
13
+ { value: "Leading", content: "Leading" },
14
+ { value: "Middle", content: "Middle" },
15
+ { value: "Trailing", content: "Trailing" },
16
+ ];
17
+
18
+ export const options2: IButtonItem[] = [
19
+ {
20
+ value: "first",
21
+ content: (
22
+ <>
23
+ <span><Circle size={20} className='mr-2'/></span>
24
+ First
25
+ </>
26
+ ),
27
+ },
28
+ {
29
+ value: "second",
30
+ content: (
31
+ <>
32
+ <span><Circle size={20} className='mr-2'/></span>
33
+ Second
34
+ </>
35
+ ),
36
+ },
37
+ {
38
+ value: "third",
39
+ content: (
40
+ <>
41
+ <span><Circle size={20} className='mr-2'/></span>
42
+ Third
43
+ </>
44
+ ),
45
+ },
46
+ ];
47
+
48
+ export const options3: IButtonItem[] = [
49
+ {value:'list', content:<List size={20}/>},
50
+ {value:'grid', content:<Grid size={20}/>},
51
+ ]
@@ -0,0 +1,36 @@
1
+ import { IOption } from "../@interfaces";
2
+
3
+ export const prices: IOption[] = [
4
+ {
5
+ label: "Any price",
6
+ value: "-1",
7
+ },
8
+ {
9
+ label: "Below 50",
10
+ value: "0",
11
+ },
12
+ {
13
+ label: "50 - 100",
14
+ value: "50",
15
+ },
16
+ {
17
+ label: "100 - 200",
18
+ value: "100",
19
+ },
20
+ {
21
+ label: "200 - 300",
22
+ value: "200",
23
+ },
24
+ {
25
+ label: "300 - 400",
26
+ value: "300",
27
+ },
28
+ {
29
+ label: "400 - 500",
30
+ value: "400",
31
+ },
32
+ {
33
+ label: "500 - 600",
34
+ value: "500",
35
+ },
36
+ ];
@@ -0,0 +1,14 @@
1
+ import { ReactElement, cloneElement, isValidElement } from "react";
2
+ import classNames from "classnames";
3
+
4
+ export const useIconClassName = () => {
5
+ const setClassName = (icon: ReactElement, additionalClass: string) => {
6
+ return isValidElement<{ className?: string }>(icon)
7
+ ? cloneElement(icon, {
8
+ className: classNames(icon.props.className, additionalClass),
9
+ })
10
+ : icon;
11
+ };
12
+
13
+ return { setClassName };
14
+ };
@@ -0,0 +1,19 @@
1
+ import { ReactElement, cloneElement, isValidElement } from "react";
2
+ import classNames from "classnames";
3
+
4
+ export const useIconProps = () => {
5
+ const setProps = (
6
+ icon: ReactElement,
7
+ iconSize: number,
8
+ additionalClass: string
9
+ ) => {
10
+ return isValidElement<{ size?: number; className?: string }>(icon)
11
+ ? cloneElement(icon, {
12
+ size: iconSize,
13
+ className: classNames(icon.props.className, additionalClass),
14
+ })
15
+ : icon;
16
+ };
17
+
18
+ return { setProps };
19
+ };
package/src/index.js ADDED
@@ -0,0 +1,15 @@
1
+ export * from "./Badge";
2
+ export * from "./Button";
3
+ export * from "./ButtonGroup";
4
+ export * from "./ColorBox";
5
+ export * from "./Paginate";
6
+ export * from "./Select";
7
+ export * from "./TextInput";
8
+ export * from "./Typography";
9
+
10
+ export * from "./Nav/SideNav";
11
+ export * from "./Nav/MobileNav";
12
+
13
+ export * from "./@interfaces";
14
+ export * from "./data";
15
+ export * from "./data/images";
@@ -0,0 +1 @@
1
+ /// <reference types="react-scripts" />