linkedunion-design-kit 1.5.2 → 1.5.3

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 (425) hide show
  1. package/dist/app/layout.d.ts +1 -1
  2. package/dist/app/layout.js +7 -11
  3. package/dist/app/layout.jsx +13 -0
  4. package/dist/app/page.js +4 -10
  5. package/dist/app/page.jsx +71 -0
  6. package/dist/build/types/app/layout.d.ts +12 -0
  7. package/dist/build/types/app/layout.js +22 -0
  8. package/dist/build/types/app/page.d.ts +12 -0
  9. package/dist/build/types/app/page.js +22 -0
  10. package/dist/index.d.ts +13 -12
  11. package/dist/index.js +13 -30
  12. package/dist/jest.config.js +15 -21
  13. package/dist/jest.setup.d.ts +0 -1
  14. package/dist/jest.setup.js +3 -12
  15. package/dist/src/components/Accordion/Accordion.d.ts +5 -0
  16. package/dist/src/components/Accordion/Accordion.js +7 -0
  17. package/dist/{components/Color/TextColor/TextColor.stories.d.ts → src/components/Accordion/Accordion.stories.d.ts} +2 -2
  18. package/dist/src/components/Accordion/Accordion.stories.js +32 -0
  19. package/dist/src/components/Accordion/EditorAccordion.d.ts +5 -0
  20. package/dist/src/components/Accordion/EditorAccordion.js +7 -0
  21. package/dist/src/components/Accordion/EditorAccordion.stories.d.ts +6 -0
  22. package/dist/src/components/Accordion/EditorAccordion.stories.js +33 -0
  23. package/dist/src/components/Accordion/type.d.ts +5 -0
  24. package/dist/{components → src/components}/Avatar/Avatar.d.ts +1 -1
  25. package/dist/src/components/Avatar/Avatar.js +12 -0
  26. package/dist/src/components/Avatar/Avatar.jsx +17 -0
  27. package/dist/src/components/Avatar/Avatar.stories.js +43 -0
  28. package/dist/src/components/Avatar/Avatar.stories.jsx +31 -0
  29. package/dist/src/components/Avatar/Avatar.test.js +50 -0
  30. package/dist/src/components/Avatar/Avatar.test.jsx +51 -0
  31. package/dist/src/components/Avatar/index.d.ts +32 -0
  32. package/dist/src/components/Avatar/index.js +32 -0
  33. package/dist/src/components/Avatar/type.d.ts +11 -0
  34. package/dist/src/components/Button/Button.d.ts +3 -0
  35. package/dist/src/components/Button/Button.js +7 -0
  36. package/dist/src/components/Button/Button.jsx +10 -0
  37. package/dist/{components → src/components}/Button/Button.stories.d.ts +2 -1
  38. package/dist/src/components/Button/Button.stories.js +56 -0
  39. package/dist/src/components/Button/Button.stories.jsx +44 -0
  40. package/dist/src/components/Button/Button.test.js +62 -0
  41. package/dist/src/components/Button/Button.test.jsx +65 -0
  42. package/dist/src/components/Button/IconButton.d.ts +3 -0
  43. package/dist/src/components/Button/IconButton.js +8 -0
  44. package/dist/src/components/Button/IconButton.jsx +9 -0
  45. package/dist/src/components/Button/IconButton.stories.d.ts +4 -0
  46. package/dist/src/components/Button/IconButton.stories.js +53 -0
  47. package/dist/src/components/Button/IconButton.stories.jsx +41 -0
  48. package/dist/src/components/Button/IconButton.test.js +30 -0
  49. package/dist/src/components/Button/IconButton.test.jsx +29 -0
  50. package/dist/src/components/Button/index.d.ts +39 -0
  51. package/dist/src/components/Button/index.js +39 -0
  52. package/dist/src/components/Button/type.d.ts +25 -0
  53. package/dist/src/components/ColorPicker/ColorPicker.d.ts +3 -0
  54. package/dist/src/components/ColorPicker/ColorPicker.js +27 -0
  55. package/dist/src/components/ColorPicker/ColorPicker.jsx +34 -0
  56. package/dist/src/components/ColorPicker/ColorPicker.stories.d.ts +5 -0
  57. package/dist/src/components/ColorPicker/ColorPicker.stories.js +24 -0
  58. package/dist/src/components/ColorPicker/ColorPicker.stories.jsx +12 -0
  59. package/dist/src/components/ColorPicker/type.d.ts +4 -0
  60. package/dist/src/components/Colors/color.d.ts +4 -0
  61. package/dist/src/components/Colors/color.js +6 -0
  62. package/dist/src/components/Colors/color.jsx +5 -0
  63. package/dist/src/components/Colors/color.stories.d.ts +7 -0
  64. package/dist/src/components/Colors/color.stories.js +32 -0
  65. package/dist/src/components/Colors/color.stories.jsx +20 -0
  66. package/dist/src/components/Colors/color.test.js +24 -0
  67. package/dist/src/components/Colors/color.test.jsx +23 -0
  68. package/dist/src/components/EditorTooltip/EditorTooltip.d.ts +4 -0
  69. package/dist/src/components/EditorTooltip/EditorTooltip.js +9 -0
  70. package/dist/src/components/EditorTooltip/EditorTooltip.jsx +18 -0
  71. package/dist/src/components/EditorTooltip/EditorTooltip.stories.d.ts +6 -0
  72. package/dist/src/components/EditorTooltip/EditorTooltip.stories.js +24 -0
  73. package/dist/src/components/EditorTooltip/EditorTooltip.stories.jsx +12 -0
  74. package/dist/src/components/EditorTooltip/type.d.ts +3 -0
  75. package/dist/{components → src/components}/Icons/IconList.test.js +18 -20
  76. package/dist/src/components/Icons/IconList.test.jsx +57 -0
  77. package/dist/src/components/Icons/IconView.js +8 -0
  78. package/dist/src/components/Icons/IconView.jsx +25 -0
  79. package/dist/{components → src/components}/Icons/IconView.stories.js +6 -9
  80. package/dist/src/components/Icons/IconView.stories.jsx +8 -0
  81. package/dist/src/components/Icons/LUIcon.d.ts +3 -0
  82. package/dist/src/components/Icons/LUIcon.js +32 -0
  83. package/dist/src/components/Icons/LUIcon.jsx +31 -0
  84. package/dist/src/components/Icons/LUIcon.stories.js +44 -0
  85. package/dist/src/components/Icons/LUIcon.stories.jsx +32 -0
  86. package/dist/src/components/Icons/SingleIcon.test.js +67 -0
  87. package/dist/src/components/Icons/SingleIcon.test.jsx +55 -0
  88. package/dist/src/components/Icons/index.d.ts +16 -0
  89. package/dist/src/components/Icons/index.js +16 -0
  90. package/dist/src/components/Icons/type.d.ts +8 -0
  91. package/dist/src/components/Icons/type.js +1 -0
  92. package/dist/src/components/ImageUploader/ImageUploader.stories.d.ts +6 -0
  93. package/dist/src/components/ImageUploader/ImageUploader.stories.js +18 -0
  94. package/dist/src/components/ImageUploader/type.d.ts +8 -0
  95. package/dist/src/components/ImageUploader/type.js +1 -0
  96. package/dist/src/components/Images/LuImage.d.ts +3 -0
  97. package/dist/{components/Typography/Body/Body.js → src/components/Images/LuImage.js} +8 -9
  98. package/dist/src/components/Images/LuImage.jsx +19 -0
  99. package/dist/src/components/Images/LuImage.stories.d.ts +6 -0
  100. package/dist/src/components/Images/LuImage.stories.js +166 -0
  101. package/dist/src/components/Images/LuImage.stories.jsx +154 -0
  102. package/dist/src/components/Images/LuImage.test.d.ts +1 -0
  103. package/dist/src/components/Images/LuImage.test.js +56 -0
  104. package/dist/src/components/Images/LuImage.test.jsx +44 -0
  105. package/dist/src/components/Images/index.d.ts +19 -0
  106. package/dist/src/components/Images/index.js +19 -0
  107. package/dist/src/components/Images/type.d.ts +7 -0
  108. package/dist/src/components/Images/type.js +1 -0
  109. package/dist/src/components/Input/Input.d.ts +3 -0
  110. package/dist/{components/Typography/Headings/Headings.js → src/components/Input/Input.js} +6 -9
  111. package/dist/src/components/Input/Input.jsx +19 -0
  112. package/dist/src/components/Input/Input.stories.d.ts +5 -0
  113. package/dist/src/components/Input/Input.stories.js +30 -0
  114. package/dist/src/components/Input/Input.stories.jsx +18 -0
  115. package/dist/src/components/Input/index.d.ts +10 -0
  116. package/dist/src/components/Input/index.js +10 -0
  117. package/dist/src/components/Input/type.d.ts +8 -0
  118. package/dist/src/components/Input/type.js +1 -0
  119. package/dist/src/components/Label/Label.d.ts +3 -0
  120. package/dist/{components/Typography/Display/Display.js → src/components/Label/Label.js} +6 -9
  121. package/dist/src/components/Label/Label.jsx +19 -0
  122. package/dist/src/components/Label/Label.stories.d.ts +5 -0
  123. package/dist/src/components/Label/Label.stories.js +36 -0
  124. package/dist/src/components/Label/Label.stories.jsx +24 -0
  125. package/dist/src/components/Label/index.d.ts +4 -0
  126. package/dist/src/components/Label/index.js +5 -0
  127. package/dist/src/components/Label/type.d.ts +9 -0
  128. package/dist/src/components/Label/type.js +1 -0
  129. package/dist/src/components/MediaCard/Card.d.ts +3 -0
  130. package/dist/src/components/MediaCard/Card.js +45 -0
  131. package/dist/src/components/MediaCard/Card.jsx +36 -0
  132. package/dist/src/components/MediaCard/Card.stories.js +57 -0
  133. package/dist/src/components/MediaCard/Card.stories.jsx +56 -0
  134. package/dist/src/components/MediaCard/Card.test.js +28 -0
  135. package/dist/src/components/MediaCard/Card.test.jsx +27 -0
  136. package/dist/{components → src/components}/MediaCard/ContactProfile/ContactProfile.d.ts +1 -1
  137. package/dist/src/components/MediaCard/ContactProfile/ContactProfile.js +27 -0
  138. package/dist/src/components/MediaCard/ContactProfile/ContactProfile.jsx +22 -0
  139. package/dist/src/components/MediaCard/ContactProfile/ContactProfile.test.d.ts +1 -0
  140. package/dist/src/components/MediaCard/ContactProfile/ContactProfile.test.js +61 -0
  141. package/dist/{components/MediaCard/ContactProfile/ContactProfile.test.js → src/components/MediaCard/ContactProfile/ContactProfile.test.jsx} +16 -13
  142. package/dist/{components → src/components}/MediaCard/ContactProfile/ContactProfileTheme1.d.ts +1 -1
  143. package/dist/src/components/MediaCard/ContactProfile/ContactProfileTheme1.js +8 -0
  144. package/dist/src/components/MediaCard/ContactProfile/ContactProfileTheme1.jsx +28 -0
  145. package/dist/{components → src/components}/MediaCard/ContactProfile/ContactProfileTheme1.test.js +15 -38
  146. package/dist/src/components/MediaCard/ContactProfile/ContactProfileTheme1.test.jsx +87 -0
  147. package/dist/{components → src/components}/MediaCard/ContactProfile/ContactProfileTheme2.d.ts +1 -1
  148. package/dist/src/components/MediaCard/ContactProfile/ContactProfileTheme2.js +8 -0
  149. package/dist/src/components/MediaCard/ContactProfile/ContactProfileTheme2.jsx +24 -0
  150. package/dist/{components → src/components}/MediaCard/ContactProfile/ContactProfileTheme2.test.js +15 -38
  151. package/dist/src/components/MediaCard/ContactProfile/ContactProfileTheme2.test.jsx +87 -0
  152. package/dist/{components → src/components}/MediaCard/PostByCategory/PostByCategory.d.ts +1 -1
  153. package/dist/src/components/MediaCard/PostByCategory/PostByCategory.js +31 -0
  154. package/dist/src/components/MediaCard/PostByCategory/PostByCategory.jsx +24 -0
  155. package/dist/src/components/MediaCard/PostByCategory/PostByCategory.test.d.ts +1 -0
  156. package/dist/src/components/MediaCard/PostByCategory/PostByCategory.test.js +62 -0
  157. package/dist/{components/MediaCard/PostByCategory/PostByCategory.test.js → src/components/MediaCard/PostByCategory/PostByCategory.test.jsx} +17 -13
  158. package/dist/{components → src/components}/MediaCard/PostByCategory/PostByCategoryTheme1.d.ts +1 -1
  159. package/dist/src/components/MediaCard/PostByCategory/PostByCategoryTheme1.js +8 -0
  160. package/dist/src/components/MediaCard/PostByCategory/PostByCategoryTheme1.jsx +26 -0
  161. package/dist/{components → src/components}/MediaCard/PostByCategory/PostByCategoryTheme1.test.js +15 -38
  162. package/dist/src/components/MediaCard/PostByCategory/PostByCategoryTheme1.test.jsx +87 -0
  163. package/dist/{components → src/components}/MediaCard/PostByCategory/PostByCategoryTheme2.d.ts +1 -1
  164. package/dist/src/components/MediaCard/PostByCategory/PostByCategoryTheme2.js +8 -0
  165. package/dist/src/components/MediaCard/PostByCategory/PostByCategoryTheme2.jsx +24 -0
  166. package/dist/{components → src/components}/MediaCard/PostByCategory/PostByCategoryTheme2.test.js +16 -39
  167. package/dist/src/components/MediaCard/PostByCategory/PostByCategoryTheme2.test.jsx +87 -0
  168. package/dist/{components → src/components}/MediaCard/index.js +2 -5
  169. package/dist/src/components/MediaCard/type.d.ts +26 -0
  170. package/dist/src/components/MediaCard/type.js +1 -0
  171. package/dist/src/components/Switch/Switch.d.ts +3 -0
  172. package/dist/src/components/Switch/Switch.js +7 -0
  173. package/dist/src/components/Switch/Switch.jsx +6 -0
  174. package/dist/src/components/Switch/Switch.stories.d.ts +5 -0
  175. package/dist/src/components/Switch/Switch.stories.js +44 -0
  176. package/dist/src/components/Switch/Switch.stories.jsx +32 -0
  177. package/dist/src/components/Switch/type.d.ts +5 -0
  178. package/dist/src/components/Switch/type.js +1 -0
  179. package/dist/src/components/Title/Title.js +8 -0
  180. package/dist/src/components/Title/Title.jsx +8 -0
  181. package/dist/src/components/Title/Title.module.css +43 -0
  182. package/dist/{components → src/components}/Title/Title.stories.js +9 -15
  183. package/dist/src/components/Title/Title.stories.jsx +37 -0
  184. package/dist/src/components/Title/Title.test.d.ts +1 -0
  185. package/dist/src/components/Title/Title.test.js +25 -0
  186. package/dist/src/components/Title/Title.test.jsx +24 -0
  187. package/dist/src/components/Typography/Typography.d.ts +3 -0
  188. package/dist/src/components/Typography/Typography.js +29 -0
  189. package/dist/src/components/Typography/Typography.jsx +19 -0
  190. package/dist/src/components/Typography/Typography.stories.d.ts +5 -0
  191. package/dist/src/components/Typography/Typography.stories.js +37 -0
  192. package/dist/src/components/Typography/Typography.stories.jsx +25 -0
  193. package/dist/src/components/Typography/type.d.ts +7 -0
  194. package/dist/src/components/Typography/type.js +1 -0
  195. package/dist/src/components/ui/accordion.d.ts +7 -0
  196. package/dist/src/components/ui/accordion.js +43 -0
  197. package/dist/src/components/ui/button.d.ts +10 -0
  198. package/dist/src/components/ui/button.js +54 -0
  199. package/dist/src/components/ui/button.jsx +43 -0
  200. package/dist/src/components/ui/imageUploader.d.ts +3 -0
  201. package/dist/src/components/ui/imageUploader.js +68 -0
  202. package/dist/src/components/ui/input.d.ts +3 -0
  203. package/dist/src/components/ui/input.js +29 -0
  204. package/dist/src/components/ui/input.jsx +18 -0
  205. package/dist/src/components/ui/label.d.ts +12 -0
  206. package/dist/src/components/ui/label.js +41 -0
  207. package/dist/src/components/ui/label.jsx +30 -0
  208. package/dist/src/components/ui/switch.d.ts +22 -0
  209. package/dist/src/components/ui/switch.js +70 -0
  210. package/dist/src/components/ui/switch.jsx +61 -0
  211. package/dist/src/components/ui/tooltip.d.ts +7 -0
  212. package/dist/src/components/ui/tooltip.js +42 -0
  213. package/dist/src/components/ui/tooltip.jsx +38 -0
  214. package/dist/src/components/ui/typography.d.ts +26 -0
  215. package/dist/src/components/ui/typography.js +65 -0
  216. package/dist/src/components/ui/typography.jsx +56 -0
  217. package/dist/src/lib/utils.d.ts +2 -0
  218. package/dist/src/lib/utils.js +9 -0
  219. package/dist/src/utils/colors.d.ts +70 -0
  220. package/dist/src/utils/colors.js +70 -0
  221. package/dist/{utils → src/utils}/constants.d.ts +2 -0
  222. package/dist/src/utils/constants.js +4 -0
  223. package/dist/src/utils/enums.d.ts +9 -0
  224. package/dist/src/utils/enums.js +11 -0
  225. package/dist/{utils → src/utils}/iconList.js +1 -4
  226. package/dist/src/utils/index.d.ts +18 -0
  227. package/dist/src/utils/index.js +20 -0
  228. package/dist/styles/global.css +2719 -4132
  229. package/dist/tailwind.config.js +10 -178
  230. package/package.json +19 -7
  231. package/dist/.next/types/app/page.d.ts +0 -8
  232. package/dist/.next/types/app/page.js +0 -57
  233. package/dist/app/scripts.d.ts +0 -2
  234. package/dist/app/scripts.js +0 -16
  235. package/dist/components/Avatar/Avatar.js +0 -15
  236. package/dist/components/Avatar/Avatar.stories.js +0 -52
  237. package/dist/components/Avatar/Avatar.test.js +0 -54
  238. package/dist/components/Border/BorderRadius/BorderRadius.d.ts +0 -2
  239. package/dist/components/Border/BorderRadius/BorderRadius.js +0 -11
  240. package/dist/components/Border/BorderRadius/BorderRadius.stories.d.ts +0 -4
  241. package/dist/components/Border/BorderRadius/BorderRadius.stories.js +0 -38
  242. package/dist/components/Border/BorderRadius/BorderRadius.test.js +0 -25
  243. package/dist/components/Border/BorderRadius/BorderRadiusTable.d.ts +0 -1
  244. package/dist/components/Border/BorderRadius/BorderRadiusTable.js +0 -9
  245. package/dist/components/Border/BorderRadius/BorderRadiusView.d.ts +0 -2
  246. package/dist/components/Border/BorderRadius/BorderRadiusView.js +0 -9
  247. package/dist/components/Border/BorderWidth/BorderWidth.d.ts +0 -2
  248. package/dist/components/Border/BorderWidth/BorderWidth.js +0 -11
  249. package/dist/components/Border/BorderWidth/BorderWidth.stories.d.ts +0 -4
  250. package/dist/components/Border/BorderWidth/BorderWidth.stories.js +0 -38
  251. package/dist/components/Border/BorderWidth/BorderWidth.test.js +0 -25
  252. package/dist/components/Border/BorderWidth/BorderWidthTable.d.ts +0 -1
  253. package/dist/components/Border/BorderWidth/BorderWidthTable.js +0 -9
  254. package/dist/components/Border/BorderWidth/ViewBorderWidth.d.ts +0 -2
  255. package/dist/components/Border/BorderWidth/ViewBorderWidth.js +0 -9
  256. package/dist/components/Button/Button.d.ts +0 -3
  257. package/dist/components/Button/Button.js +0 -22
  258. package/dist/components/Button/Button.stories.js +0 -160
  259. package/dist/components/Button/Button.test.d.ts +0 -1
  260. package/dist/components/Button/Button.test.js +0 -54
  261. package/dist/components/Button/index.d.ts +0 -4
  262. package/dist/components/Button/index.js +0 -8
  263. package/dist/components/Color/BackgroundColor/BackgroundColor.d.ts +0 -2
  264. package/dist/components/Color/BackgroundColor/BackgroundColor.js +0 -9
  265. package/dist/components/Color/BackgroundColor/BackgroundColor.stories.d.ts +0 -10
  266. package/dist/components/Color/BackgroundColor/BackgroundColor.stories.js +0 -103
  267. package/dist/components/Color/BackgroundColor/BackgroundColor.test.js +0 -17
  268. package/dist/components/Color/BackgroundColor/index.d.ts +0 -7
  269. package/dist/components/Color/BackgroundColor/index.js +0 -18
  270. package/dist/components/Color/Color.test.d.ts +0 -1
  271. package/dist/components/Color/Color.test.js +0 -38
  272. package/dist/components/Color/TextColor/TextColor.d.ts +0 -3
  273. package/dist/components/Color/TextColor/TextColor.js +0 -9
  274. package/dist/components/Color/TextColor/TextColor.stories.js +0 -35
  275. package/dist/components/Color/TextColor/TextColor.test.d.ts +0 -1
  276. package/dist/components/Color/TextColor/TextColor.test.js +0 -43
  277. package/dist/components/Icons/IconView.js +0 -11
  278. package/dist/components/Icons/LUIcon.d.ts +0 -3
  279. package/dist/components/Icons/LUIcon.js +0 -11
  280. package/dist/components/Icons/LUIcon.stories.js +0 -56
  281. package/dist/components/Icons/SingleIcon.test.js +0 -53
  282. package/dist/components/Images/LuImage.d.ts +0 -3
  283. package/dist/components/Images/LuImage.js +0 -14
  284. package/dist/components/Images/LuImage.stories.d.ts +0 -4
  285. package/dist/components/Images/LuImage.stories.js +0 -53
  286. package/dist/components/Images/LuImage.test.d.ts +0 -1
  287. package/dist/components/Images/LuImage.test.js +0 -68
  288. package/dist/components/MediaCard/Card.d.ts +0 -3
  289. package/dist/components/MediaCard/Card.js +0 -48
  290. package/dist/components/MediaCard/Card.stories.js +0 -61
  291. package/dist/components/MediaCard/Card.test.js +0 -33
  292. package/dist/components/MediaCard/ContactProfile/ContactProfile.js +0 -27
  293. package/dist/components/MediaCard/ContactProfile/ContactProfileTheme1.js +0 -16
  294. package/dist/components/MediaCard/ContactProfile/ContactProfileTheme2.js +0 -16
  295. package/dist/components/MediaCard/PostByCategory/PostByCategory.js +0 -27
  296. package/dist/components/MediaCard/PostByCategory/PostByCategoryTheme1.js +0 -16
  297. package/dist/components/MediaCard/PostByCategory/PostByCategoryTheme2.js +0 -16
  298. package/dist/components/MediaCard/card.module.css +0 -52
  299. package/dist/components/Size/MinWidthHeight.d.ts +0 -3
  300. package/dist/components/Size/MinWidthHeight.js +0 -8
  301. package/dist/components/Size/MinWidthHeight.stories.d.ts +0 -5
  302. package/dist/components/Size/MinWidthHeight.stories.js +0 -46
  303. package/dist/components/Size/MinWidthHeight.test.d.ts +0 -1
  304. package/dist/components/Size/MinWidthHeight.test.js +0 -34
  305. package/dist/components/Size/Size.d.ts +0 -4
  306. package/dist/components/Size/Size.js +0 -10
  307. package/dist/components/Size/Size.stories.d.ts +0 -6
  308. package/dist/components/Size/Size.stories.js +0 -35
  309. package/dist/components/Size/Size.test.d.ts +0 -1
  310. package/dist/components/Size/Size.test.js +0 -73
  311. package/dist/components/Size/WidthAndHeight.test.d.ts +0 -1
  312. package/dist/components/Size/WidthAndHeight.test.js +0 -34
  313. package/dist/components/Size/WidthHeight.d.ts +0 -3
  314. package/dist/components/Size/WidthHeight.js +0 -8
  315. package/dist/components/Size/WidthHeight.stories.d.ts +0 -5
  316. package/dist/components/Size/WidthHeight.stories.js +0 -46
  317. package/dist/components/Spacing/Margin/Margin.d.ts +0 -1
  318. package/dist/components/Spacing/Margin/Margin.js +0 -9
  319. package/dist/components/Spacing/Margin/MarginBottom.d.ts +0 -1
  320. package/dist/components/Spacing/Margin/MarginBottom.js +0 -9
  321. package/dist/components/Spacing/Margin/MarginLeft.d.ts +0 -1
  322. package/dist/components/Spacing/Margin/MarginLeft.js +0 -9
  323. package/dist/components/Spacing/Margin/MarginRight.d.ts +0 -1
  324. package/dist/components/Spacing/Margin/MarginRight.js +0 -9
  325. package/dist/components/Spacing/Margin/MarginToken.d.ts +0 -1
  326. package/dist/components/Spacing/Margin/MarginToken.js +0 -16
  327. package/dist/components/Spacing/Margin/MarginToken.stories.d.ts +0 -4
  328. package/dist/components/Spacing/Margin/MarginToken.stories.js +0 -22
  329. package/dist/components/Spacing/Margin/MarginToken.test.js +0 -22
  330. package/dist/components/Spacing/Margin/MarginTop.d.ts +0 -1
  331. package/dist/components/Spacing/Margin/MarginTop.js +0 -9
  332. package/dist/components/Spacing/Margin/MarginX.d.ts +0 -1
  333. package/dist/components/Spacing/Margin/MarginX.js +0 -9
  334. package/dist/components/Spacing/Margin/MarginY.d.ts +0 -1
  335. package/dist/components/Spacing/Margin/MarginY.js +0 -9
  336. package/dist/components/Spacing/Padding/Padding.d.ts +0 -1
  337. package/dist/components/Spacing/Padding/Padding.js +0 -9
  338. package/dist/components/Spacing/Padding/PaddingBottom.d.ts +0 -1
  339. package/dist/components/Spacing/Padding/PaddingBottom.js +0 -9
  340. package/dist/components/Spacing/Padding/PaddingLeft.d.ts +0 -1
  341. package/dist/components/Spacing/Padding/PaddingLeft.js +0 -9
  342. package/dist/components/Spacing/Padding/PaddingRight.d.ts +0 -1
  343. package/dist/components/Spacing/Padding/PaddingRight.js +0 -9
  344. package/dist/components/Spacing/Padding/PaddingToken.d.ts +0 -1
  345. package/dist/components/Spacing/Padding/PaddingToken.js +0 -16
  346. package/dist/components/Spacing/Padding/PaddingToken.stories.d.ts +0 -4
  347. package/dist/components/Spacing/Padding/PaddingToken.stories.js +0 -22
  348. package/dist/components/Spacing/Padding/PaddingToken.test.js +0 -22
  349. package/dist/components/Spacing/Padding/PaddingTop.d.ts +0 -1
  350. package/dist/components/Spacing/Padding/PaddingTop.js +0 -9
  351. package/dist/components/Spacing/Padding/PaddingX.d.ts +0 -1
  352. package/dist/components/Spacing/Padding/PaddingX.js +0 -9
  353. package/dist/components/Spacing/Padding/PaddingY.d.ts +0 -1
  354. package/dist/components/Spacing/Padding/PaddingY.js +0 -9
  355. package/dist/components/Title/Title.js +0 -13
  356. package/dist/components/Title/Title.module.css +0 -56
  357. package/dist/components/Title/Title.test.js +0 -30
  358. package/dist/components/Typography/Body/Body.d.ts +0 -3
  359. package/dist/components/Typography/Body/Body.stories.d.ts +0 -6
  360. package/dist/components/Typography/Body/Body.stories.js +0 -75
  361. package/dist/components/Typography/Body/body.test.d.ts +0 -1
  362. package/dist/components/Typography/Body/body.test.js +0 -49
  363. package/dist/components/Typography/Body/index.d.ts +0 -14
  364. package/dist/components/Typography/Body/index.js +0 -53
  365. package/dist/components/Typography/Body/type.d.ts +0 -7
  366. package/dist/components/Typography/Body/type.js +0 -2
  367. package/dist/components/Typography/Display/Display.d.ts +0 -3
  368. package/dist/components/Typography/Display/Display.stories.d.ts +0 -6
  369. package/dist/components/Typography/Display/Display.stories.js +0 -79
  370. package/dist/components/Typography/Display/Display.test.d.ts +0 -1
  371. package/dist/components/Typography/Display/Display.test.js +0 -49
  372. package/dist/components/Typography/Display/index.d.ts +0 -38
  373. package/dist/components/Typography/Display/index.js +0 -64
  374. package/dist/components/Typography/Display/type.d.ts +0 -8
  375. package/dist/components/Typography/Display/type.js +0 -2
  376. package/dist/components/Typography/Headings/Heading.test.d.ts +0 -1
  377. package/dist/components/Typography/Headings/Heading.test.js +0 -49
  378. package/dist/components/Typography/Headings/Headings.d.ts +0 -3
  379. package/dist/components/Typography/Headings/Headings.stories.d.ts +0 -6
  380. package/dist/components/Typography/Headings/Headings.stories.js +0 -69
  381. package/dist/components/Typography/Headings/index.d.ts +0 -21
  382. package/dist/components/Typography/Headings/index.js +0 -71
  383. package/dist/components/Typography/Headings/type.d.ts +0 -6
  384. package/dist/components/Typography/Headings/type.js +0 -2
  385. package/dist/components/Typography/Typography.css +0 -3016
  386. package/dist/components/Typography/Typography.d.ts +0 -2
  387. package/dist/components/Typography/Typography.js +0 -9
  388. package/dist/components/Typography/Typography.stories.d.ts +0 -5
  389. package/dist/components/Typography/Typography.stories.js +0 -87
  390. package/dist/components/Typography/Typography.test.d.ts +0 -1
  391. package/dist/components/Typography/Typography.test.js +0 -42
  392. package/dist/global/components/Table/Table.d.ts +0 -14
  393. package/dist/global/components/Table/Table.js +0 -14
  394. package/dist/utils/colors.d.ts +0 -7
  395. package/dist/utils/colors.js +0 -10
  396. package/dist/utils/constants.js +0 -5
  397. package/dist/utils/enums.d.ts +0 -60
  398. package/dist/utils/enums.js +0 -69
  399. package/dist/utils/index.d.ts +0 -1448
  400. package/dist/utils/index.js +0 -1597
  401. /package/dist/{components/Avatar/Avatar.test.d.ts → src/components/Accordion/type.js} +0 -0
  402. /package/dist/{components → src/components}/Avatar/Avatar.stories.d.ts +0 -0
  403. /package/dist/{components/Border/BorderRadius/BorderRadius.test.d.ts → src/components/Avatar/Avatar.test.d.ts} +0 -0
  404. /package/dist/{components/Border/BorderWidth/BorderWidth.test.d.ts → src/components/Avatar/type.js} +0 -0
  405. /package/dist/{components/Color/BackgroundColor/BackgroundColor.test.d.ts → src/components/Button/Button.test.d.ts} +0 -0
  406. /package/dist/{components/Icons/IconList.test.d.ts → src/components/Button/IconButton.test.d.ts} +0 -0
  407. /package/dist/{components/Icons/SingleIcon.test.d.ts → src/components/Button/type.js} +0 -0
  408. /package/dist/{components/MediaCard/ContactProfile/ContactProfile.test.d.ts → src/components/ColorPicker/type.js} +0 -0
  409. /package/dist/{components/MediaCard/PostByCategory/PostByCategory.test.d.ts → src/components/Colors/color.test.d.ts} +0 -0
  410. /package/dist/{components/Spacing/Margin/MarginToken.test.d.ts → src/components/EditorTooltip/type.js} +0 -0
  411. /package/dist/{components/Spacing/Padding/PaddingToken.test.d.ts → src/components/Icons/IconList.test.d.ts} +0 -0
  412. /package/dist/{components → src/components}/Icons/IconView.d.ts +0 -0
  413. /package/dist/{components → src/components}/Icons/IconView.stories.d.ts +0 -0
  414. /package/dist/{components → src/components}/Icons/LUIcon.stories.d.ts +0 -0
  415. /package/dist/{components/Title/Title.test.d.ts → src/components/Icons/SingleIcon.test.d.ts} +0 -0
  416. /package/dist/{components → src/components}/MediaCard/Card.stories.d.ts +0 -0
  417. /package/dist/{components → src/components}/MediaCard/Card.test.d.ts +0 -0
  418. /package/dist/{components → src/components}/MediaCard/ContactProfile/ContactProfileTheme1.test.d.ts +0 -0
  419. /package/dist/{components → src/components}/MediaCard/ContactProfile/ContactProfileTheme2.test.d.ts +0 -0
  420. /package/dist/{components → src/components}/MediaCard/PostByCategory/PostByCategoryTheme1.test.d.ts +0 -0
  421. /package/dist/{components → src/components}/MediaCard/PostByCategory/PostByCategoryTheme2.test.d.ts +0 -0
  422. /package/dist/{components → src/components}/MediaCard/index.d.ts +0 -0
  423. /package/dist/{components → src/components}/Title/Title.d.ts +0 -0
  424. /package/dist/{components → src/components}/Title/Title.stories.d.ts +0 -0
  425. /package/dist/{utils → src/utils}/iconList.d.ts +0 -0
@@ -0,0 +1,154 @@
1
+ import LuImage from "./LuImage";
2
+ import { aspectRatio } from ".";
3
+ export default {
4
+ title: "Components/Image",
5
+ component: LuImage,
6
+ argTypes: {
7
+ src: {
8
+ control: "text",
9
+ description: "Image source URL",
10
+ table: {
11
+ type: { summary: "string" },
12
+ },
13
+ },
14
+ width: {
15
+ control: "number",
16
+ description: "Image width",
17
+ table: {
18
+ type: { summary: "number" },
19
+ defaultValue: { summary: "240" },
20
+ },
21
+ },
22
+ height: {
23
+ control: "number",
24
+ description: "Image width",
25
+ table: {
26
+ type: { summary: "number" },
27
+ defaultValue: { summary: "240" },
28
+ },
29
+ },
30
+ alt: {
31
+ control: "text",
32
+ description: "Image alt text",
33
+ table: {
34
+ type: { summary: "string" },
35
+ defaultValue: { summary: "Demo Image" },
36
+ },
37
+ },
38
+ loader: {
39
+ control: false,
40
+ description: "loader={imageLoader}",
41
+ table: {
42
+ type: { summary: "function" },
43
+ },
44
+ },
45
+ fill: {
46
+ control: "boolean",
47
+ description: "fill={false}",
48
+ table: {
49
+ type: { summary: "boolean" },
50
+ },
51
+ },
52
+ sizes: {
53
+ control: "text",
54
+ description: "sizes=(max-width: 768px) 100vw, 33vw",
55
+ table: {
56
+ type: { summary: "string" },
57
+ },
58
+ },
59
+ quality: {
60
+ control: "number",
61
+ description: "Image quality",
62
+ table: {
63
+ type: { summary: "Integer (1-100)" },
64
+ },
65
+ },
66
+ priority: {
67
+ control: "boolean",
68
+ description: "priority={false}",
69
+ table: {
70
+ type: { summary: "boolean" },
71
+ },
72
+ },
73
+ placeholder: {
74
+ control: "select",
75
+ options: ["blur", "empty"],
76
+ description: "placeholder={blur}",
77
+ table: {
78
+ type: { summary: "string" },
79
+ },
80
+ },
81
+ style: {
82
+ control: "object",
83
+ description: "stye={{ objectFit: contain }}",
84
+ table: {
85
+ type: { summary: "object" },
86
+ },
87
+ },
88
+ className: { control: "text" },
89
+ onLoad: {
90
+ control: false,
91
+ description: "onLoad={event => done())}",
92
+ table: {
93
+ type: { summary: "function" },
94
+ },
95
+ },
96
+ onError: {
97
+ description: "onError={event => fail()}",
98
+ table: {
99
+ type: { summary: "function" },
100
+ },
101
+ control: false,
102
+ },
103
+ loading: {
104
+ control: "select",
105
+ options: ["lazy", "eager"],
106
+ description: "Image loading",
107
+ table: {
108
+ type: { summary: "string" },
109
+ },
110
+ },
111
+ blurDataURL: {
112
+ control: "text",
113
+ description: "blurDataURL=data:image/jpeg...",
114
+ table: {
115
+ type: { summary: "string" },
116
+ },
117
+ },
118
+ overrideSrc: {
119
+ control: "text",
120
+ description: "overrideSrc=/seo.png",
121
+ table: {
122
+ type: { summary: "string" },
123
+ },
124
+ },
125
+ ratio: {
126
+ control: "select",
127
+ options: Object.keys(aspectRatio),
128
+ description: "Aspect ratio of the image",
129
+ table: {
130
+ type: { summary: "string" },
131
+ defaultValue: { summary: "square" },
132
+ },
133
+ },
134
+ },
135
+ };
136
+ var Template = function (args) { return <LuImage {...args}/>; };
137
+ export var _Image = Template.bind({});
138
+ _Image.args = {
139
+ src: "/images/demo-image.jpg",
140
+ ratio: "square",
141
+ width: 240,
142
+ height: 240,
143
+ alt: "Demo Image",
144
+ };
145
+ _Image.argTypes = {
146
+ ratio: {
147
+ control: {
148
+ type: "select",
149
+ labels: Object.keys(aspectRatio),
150
+ },
151
+ options: Object.keys(aspectRatio),
152
+ defaultValue: "square",
153
+ },
154
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,56 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ import { render, screen } from "@testing-library/react";
14
+ import LuImage from "./LuImage";
15
+ import { aspectRatio } from ".";
16
+ // Mock next/image to render a basic `img` element for testing
17
+ jest.mock("next/image", function () { return ({
18
+ __esModule: true,
19
+ default: function (props) {
20
+ // eslint-disable-next-line @next/next/no-img-element
21
+ return _jsx("img", __assign({ alt: "" }, props));
22
+ },
23
+ }); });
24
+ describe("LuImage component", function () {
25
+ it("renders with default props", function () {
26
+ render(_jsx(LuImage, { src: "/test.jpg", width: 100, height: 100, alt: "Demo Image" }));
27
+ var image = screen.getByAltText("Demo Image");
28
+ expect(image).toBeInTheDocument();
29
+ expect(image).toHaveAttribute("src", "/test.jpg");
30
+ expect(image).toHaveClass("aspect-square");
31
+ });
32
+ it("uses correct aspect ratio class", function () {
33
+ var ratio = "aspect-4/3";
34
+ render(_jsx(LuImage, { src: "/test.jpg", width: 100, height: 100, ratio: ratio, alt: "Demo Image" }));
35
+ var image = screen.getByAltText("Demo Image");
36
+ expect(image).toHaveClass(aspectRatio[ratio]);
37
+ });
38
+ it("accepts custom alt text", function () {
39
+ render(_jsx(LuImage, { src: "/test.jpg", width: 100, height: 100, alt: "Custom Alt" }));
40
+ var image = screen.getByAltText("Custom Alt");
41
+ expect(image).toBeInTheDocument();
42
+ });
43
+ it("accepts additional className", function () {
44
+ render(_jsx(LuImage, { src: "/test.jpg", width: 100, height: 100, className: "rounded-full", alt: "Demo Image" }));
45
+ var image = screen.getByAltText("Demo Image");
46
+ expect(image).toHaveClass("rounded-full");
47
+ });
48
+ it("renders with different aspect ratios", function () {
49
+ for (var ratio in aspectRatio) {
50
+ var typedRatio = ratio;
51
+ render(_jsx(LuImage, { src: "/test.jpg", width: 100, height: 100, ratio: typedRatio, alt: "Image with ratio ".concat(typedRatio) }, typedRatio));
52
+ var image = screen.getByAltText("Image with ratio ".concat(typedRatio));
53
+ expect(image).toHaveClass(aspectRatio[typedRatio]);
54
+ }
55
+ });
56
+ });
@@ -0,0 +1,44 @@
1
+ import { render, screen } from "@testing-library/react";
2
+ import LuImage from "./LuImage";
3
+ import { aspectRatio } from ".";
4
+ // Mock next/image to render a basic `img` element for testing
5
+ jest.mock("next/image", function () { return ({
6
+ __esModule: true,
7
+ default: function (props) {
8
+ // eslint-disable-next-line @next/next/no-img-element
9
+ return <img alt="" {...props}/>;
10
+ },
11
+ }); });
12
+ describe("LuImage component", function () {
13
+ it("renders with default props", function () {
14
+ render(<LuImage src="/test.jpg" width={100} height={100} alt="Demo Image"/>);
15
+ var image = screen.getByAltText("Demo Image");
16
+ expect(image).toBeInTheDocument();
17
+ expect(image).toHaveAttribute("src", "/test.jpg");
18
+ expect(image).toHaveClass("aspect-square");
19
+ });
20
+ it("uses correct aspect ratio class", function () {
21
+ var ratio = "aspect-4/3";
22
+ render(<LuImage src="/test.jpg" width={100} height={100} ratio={ratio} alt="Demo Image"/>);
23
+ var image = screen.getByAltText("Demo Image");
24
+ expect(image).toHaveClass(aspectRatio[ratio]);
25
+ });
26
+ it("accepts custom alt text", function () {
27
+ render(<LuImage src="/test.jpg" width={100} height={100} alt="Custom Alt"/>);
28
+ var image = screen.getByAltText("Custom Alt");
29
+ expect(image).toBeInTheDocument();
30
+ });
31
+ it("accepts additional className", function () {
32
+ render(<LuImage src="/test.jpg" width={100} height={100} className="rounded-full" alt="Demo Image"/>);
33
+ var image = screen.getByAltText("Demo Image");
34
+ expect(image).toHaveClass("rounded-full");
35
+ });
36
+ it("renders with different aspect ratios", function () {
37
+ for (var ratio in aspectRatio) {
38
+ var typedRatio = ratio;
39
+ render(<LuImage key={typedRatio} src="/test.jpg" width={100} height={100} ratio={typedRatio} alt={"Image with ratio ".concat(typedRatio)}/>);
40
+ var image = screen.getByAltText("Image with ratio ".concat(typedRatio));
41
+ expect(image).toHaveClass(aspectRatio[typedRatio]);
42
+ }
43
+ });
44
+ });
@@ -0,0 +1,19 @@
1
+ export declare const aspectRatio: {
2
+ square: string;
3
+ "aspect-5/4": string;
4
+ "aspect-4/5": string;
5
+ "aspect-4/3": string;
6
+ "aspect-3/4": string;
7
+ "aspect-7/5": string;
8
+ "aspect-5/7": string;
9
+ "aspect-3/2": string;
10
+ "aspect-2/3": string;
11
+ "aspect-16/10": string;
12
+ "aspect-10/16": string;
13
+ "aspect-5/3": string;
14
+ "aspect-3/5": string;
15
+ "aspect-16/9": string;
16
+ "aspect-9/16": string;
17
+ "aspect-2/1": string;
18
+ "aspect-1/2": string;
19
+ };
@@ -0,0 +1,19 @@
1
+ export var aspectRatio = {
2
+ square: "aspect-square",
3
+ "aspect-5/4": "aspect-5/4",
4
+ "aspect-4/5": "aspect-4/5",
5
+ "aspect-4/3": "aspect-4/3",
6
+ "aspect-3/4": "aspect-3/4",
7
+ "aspect-7/5": "aspect-7/5",
8
+ "aspect-5/7": "aspect-5/7",
9
+ "aspect-3/2": "aspect-3/2",
10
+ "aspect-2/3": "aspect-2/3",
11
+ "aspect-16/10": "aspect-16/10",
12
+ "aspect-10/16": "aspect-10/16",
13
+ "aspect-5/3": "aspect-5/3",
14
+ "aspect-3/5": "aspect-3/5",
15
+ "aspect-16/9": "aspect-16/9",
16
+ "aspect-9/16": "aspect-9/16",
17
+ "aspect-2/1": "aspect-2/1",
18
+ "aspect-1/2": "aspect-1/2",
19
+ };
@@ -0,0 +1,7 @@
1
+ import { ImageProps } from "next/image";
2
+ import { aspectRatio } from ".";
3
+ type aspectRatio = keyof typeof aspectRatio;
4
+ export interface AspectRatioProps extends ImageProps {
5
+ ratio?: aspectRatio;
6
+ }
7
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ import { InputFieldProps } from "./type";
2
+ declare const Input: ({ type, placeholder, className, ...props }: InputFieldProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default Input;
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  var __assign = (this && this.__assign) || function () {
3
2
  __assign = Object.assign || function(t) {
4
3
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -21,12 +20,10 @@ var __rest = (this && this.__rest) || function (s, e) {
21
20
  }
22
21
  return t;
23
22
  };
24
- Object.defineProperty(exports, "__esModule", { value: true });
25
- var jsx_runtime_1 = require("react/jsx-runtime");
26
- var constants_1 = require("../../../utils/constants");
27
- var _1 = require("./");
28
- var Heading = function (_a) {
29
- var _b = _a.heading, heading = _b === void 0 ? _1.Heading_Classes["lu-heading-h1"] : _b, _c = _a.label, label = _c === void 0 ? constants_1.Dummy_Para : _c, _d = _a.className, className = _d === void 0 ? "" : _d, props = __rest(_a, ["heading", "label", "className"]);
30
- return ((0, jsx_runtime_1.jsx)("h1", __assign({}, props, { className: "".concat(heading, " ").concat(className), children: label })));
23
+ import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
24
+ import { Input as ShadInput } from "../../components/ui/input";
25
+ var Input = function (_a) {
26
+ var _b = _a.type, type = _b === void 0 ? "text" : _b, _c = _a.placeholder, placeholder = _c === void 0 ? "Type Placeholder here" : _c, className = _a.className, props = __rest(_a, ["type", "placeholder", "className"]);
27
+ return (_jsx(_Fragment, { children: _jsx(ShadInput, __assign({ type: type, placeholder: placeholder, className: className }, props)) }));
31
28
  };
32
- exports.default = Heading;
29
+ export default Input;
@@ -0,0 +1,19 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import { Input as ShadInput } from "../../components/ui/input";
13
+ var Input = function (_a) {
14
+ var _b = _a.type, type = _b === void 0 ? "text" : _b, _c = _a.placeholder, placeholder = _c === void 0 ? "Type Placeholder here" : _c, className = _a.className, props = __rest(_a, ["type", "placeholder", "className"]);
15
+ return (<>
16
+ <ShadInput type={type} placeholder={placeholder} className={className} {...props}/>
17
+ </>);
18
+ };
19
+ export default Input;
@@ -0,0 +1,5 @@
1
+ import { Meta } from "@storybook/react";
2
+ import { InputFieldProps } from "./type";
3
+ declare const _default: Meta;
4
+ export default _default;
5
+ export declare const _Input: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, InputFieldProps>;
@@ -0,0 +1,30 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ import Input from "./Input";
14
+ import { inputType } from ".";
15
+ export default {
16
+ title: "Components/Input",
17
+ component: Input,
18
+ tags: ["autodocs"],
19
+ };
20
+ var Template = function (args) { return _jsx(Input, __assign({}, args)); };
21
+ export var _Input = Template.bind({});
22
+ _Input.argTypes = {
23
+ type: {
24
+ control: {
25
+ type: "select",
26
+ labels: Object.keys(inputType),
27
+ },
28
+ options: Object.keys(inputType),
29
+ },
30
+ };
@@ -0,0 +1,18 @@
1
+ import Input from "./Input";
2
+ import { inputType } from ".";
3
+ export default {
4
+ title: "Components/Input",
5
+ component: Input,
6
+ tags: ["autodocs"],
7
+ };
8
+ var Template = function (args) { return <Input {...args}/>; };
9
+ export var _Input = Template.bind({});
10
+ _Input.argTypes = {
11
+ type: {
12
+ control: {
13
+ type: "select",
14
+ labels: Object.keys(inputType),
15
+ },
16
+ options: Object.keys(inputType),
17
+ },
18
+ };
@@ -0,0 +1,10 @@
1
+ export declare const inputType: {
2
+ text: string;
3
+ password: string;
4
+ email: string;
5
+ file: string;
6
+ number: string;
7
+ search: string;
8
+ tel: string;
9
+ url: string;
10
+ };
@@ -0,0 +1,10 @@
1
+ export var inputType = {
2
+ text: "text",
3
+ password: "password",
4
+ email: "email",
5
+ file: "file",
6
+ number: "number",
7
+ search: "search",
8
+ tel: "tel",
9
+ url: "url",
10
+ };
@@ -0,0 +1,8 @@
1
+ export interface InputFieldProps extends React.HTMLAttributes<HTMLInputElement> {
2
+ type: string;
3
+ id?: string;
4
+ placeholder?: string;
5
+ className?: string;
6
+ onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
7
+ value?: string;
8
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ import { LabelProps } from "./type";
2
+ declare const Label: ({ htmlFor, children, ...props }: LabelProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default Label;
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  var __assign = (this && this.__assign) || function () {
3
2
  __assign = Object.assign || function(t) {
4
3
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -21,12 +20,10 @@ var __rest = (this && this.__rest) || function (s, e) {
21
20
  }
22
21
  return t;
23
22
  };
24
- Object.defineProperty(exports, "__esModule", { value: true });
25
- var jsx_runtime_1 = require("react/jsx-runtime");
26
- var constants_1 = require("../../../utils/constants");
27
- var _1 = require("./");
28
- var Display = function (_a) {
29
- var _b = _a.display, display = _b === void 0 ? _1.Display_Classes["lu-display-1"] : _b, _c = _a.label, label = _c === void 0 ? constants_1.Dummy_Para : _c, _d = _a.className, className = _d === void 0 ? "" : _d, props = __rest(_a, ["display", "label", "className"]);
30
- return ((0, jsx_runtime_1.jsx)("div", __assign({}, props, { className: "".concat(display, " ").concat(className, " "), children: label })));
23
+ import { jsx as _jsx } from "react/jsx-runtime";
24
+ import { Label as ShadLabel } from "../../components/ui/label";
25
+ var Label = function (_a) {
26
+ var _b = _a.htmlFor, htmlFor = _b === void 0 ? "text" : _b, _c = _a.children, children = _c === void 0 ? "Label" : _c, props = __rest(_a, ["htmlFor", "children"]);
27
+ return (_jsx(ShadLabel, __assign({ htmlFor: htmlFor }, props, { children: children })));
31
28
  };
32
- exports.default = Display;
29
+ export default Label;
@@ -0,0 +1,19 @@
1
+ var __rest = (this && this.__rest) || function (s, e) {
2
+ var t = {};
3
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
+ t[p] = s[p];
5
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
+ t[p[i]] = s[p[i]];
9
+ }
10
+ return t;
11
+ };
12
+ import { Label as ShadLabel } from "../../components/ui/label";
13
+ var Label = function (_a) {
14
+ var _b = _a.htmlFor, htmlFor = _b === void 0 ? "text" : _b, _c = _a.children, children = _c === void 0 ? "Label" : _c, props = __rest(_a, ["htmlFor", "children"]);
15
+ return (<ShadLabel htmlFor={htmlFor} {...props}>
16
+ {children}
17
+ </ShadLabel>);
18
+ };
19
+ export default Label;
@@ -0,0 +1,5 @@
1
+ import { Meta } from "@storybook/react";
2
+ import { LabelProps } from "./type";
3
+ declare const _default: Meta;
4
+ export default _default;
5
+ export declare const _Label: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, LabelProps>;
@@ -0,0 +1,36 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ import Label from "./Label";
14
+ import { variant } from "../ui/label";
15
+ export default {
16
+ title: "Components/Label",
17
+ component: Label,
18
+ tags: ["autodocs"],
19
+ };
20
+ var Template = function (args) { return _jsx(Label, __assign({}, args)); };
21
+ export var _Label = Template.bind({});
22
+ _Label.args = {
23
+ children: "Label",
24
+ variant: "default",
25
+ };
26
+ _Label.argTypes = {
27
+ variant: {
28
+ control: { type: "select" },
29
+ options: Object.keys(variant),
30
+ description: "Label variant",
31
+ table: {
32
+ defaultValue: { summary: "default" },
33
+ type: { summary: "string" },
34
+ },
35
+ },
36
+ };
@@ -0,0 +1,24 @@
1
+ import Label from "./Label";
2
+ import { variant } from "../ui/label";
3
+ export default {
4
+ title: "Components/Label",
5
+ component: Label,
6
+ tags: ["autodocs"],
7
+ };
8
+ var Template = function (args) { return <Label {...args}></Label>; };
9
+ export var _Label = Template.bind({});
10
+ _Label.args = {
11
+ children: "Label",
12
+ variant: "default",
13
+ };
14
+ _Label.argTypes = {
15
+ variant: {
16
+ control: { type: "select" },
17
+ options: Object.keys(variant),
18
+ description: "Label variant",
19
+ table: {
20
+ defaultValue: { summary: "default" },
21
+ type: { summary: "string" },
22
+ },
23
+ },
24
+ };
@@ -0,0 +1,4 @@
1
+ export declare enum VariantEnum {
2
+ default = "default",
3
+ editorLabel = "editorLabel"
4
+ }
@@ -0,0 +1,5 @@
1
+ export var VariantEnum;
2
+ (function (VariantEnum) {
3
+ VariantEnum["default"] = "default";
4
+ VariantEnum["editorLabel"] = "editorLabel";
5
+ })(VariantEnum || (VariantEnum = {}));
@@ -0,0 +1,9 @@
1
+ import { VariantProps } from "class-variance-authority";
2
+ import React from "react";
3
+ import { labelVariants } from "../ui/label";
4
+ export interface LabelProps extends React.HTMLAttributes<HTMLLabelElement> {
5
+ htmlFor?: string;
6
+ className?: string;
7
+ children: React.ReactNode;
8
+ variant?: VariantProps<typeof labelVariants>["variant"];
9
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ import { CardProps } from "./type";
2
+ declare const Card: ({ type, layout, id, className, image, heading, body, href, btnLabel, cardStyle, }: CardProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default Card;
@@ -0,0 +1,45 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
13
+ import { PostByCategory } from "./PostByCategory/PostByCategory";
14
+ import { colors } from "../../utils/colors";
15
+ import { defaultCardProps } from "../../utils";
16
+ import { ContactProfile } from "./ContactProfile/ContactProfile";
17
+ import { SectionTypeEnum } from "./index";
18
+ import { OrientationEnum } from "../../utils/enums";
19
+ var Card = function (_a) {
20
+ var _b = _a.type, type = _b === void 0 ? SectionTypeEnum.postByCategoriesTheme : _b, _c = _a.layout, layout = _c === void 0 ? OrientationEnum.horizontal : _c, _d = _a.id, id = _d === void 0 ? 1 : _d, _e = _a.className, className = _e === void 0 ? "" : _e, _f = _a.image, image = _f === void 0 ? defaultCardProps.image : _f, _g = _a.heading, heading = _g === void 0 ? defaultCardProps.heading : _g, _h = _a.body, body = _h === void 0 ? defaultCardProps.body : _h, _j = _a.href, href = _j === void 0 ? defaultCardProps.href : _j, _k = _a.btnLabel, btnLabel = _k === void 0 ? defaultCardProps.btnLabel : _k, _l = _a.cardStyle, cardStyle = _l === void 0 ? {
21
+ card_title_color: "",
22
+ card_description_color: "",
23
+ card_shadow_toggle: 1,
24
+ card_shadow_color: "rgba(52, 52, 52, 0.15)",
25
+ card_background_color: colors.white,
26
+ card_button_background_color: colors["neutral-0"],
27
+ card_button_text_color: colors.black,
28
+ card_image_border_color: colors === null || colors === void 0 ? void 0 : colors.black,
29
+ card_image_border_radius: "0",
30
+ card_image_border: "0",
31
+ } : _l;
32
+ var data = {
33
+ id: id,
34
+ image: image,
35
+ layout: layout,
36
+ heading: heading,
37
+ body: body,
38
+ className: className,
39
+ btnLabel: btnLabel,
40
+ href: href,
41
+ cardStyle: cardStyle,
42
+ };
43
+ return (_jsxs(_Fragment, { children: [type === SectionTypeEnum.postByCategoriesTheme && (_jsx(PostByCategory, __assign({}, data))), type === SectionTypeEnum.contactsProfileTheme && (_jsx(ContactProfile, __assign({}, data)))] }));
44
+ };
45
+ export default Card;