linkedunion-design-kit 1.9.1 → 1.9.2

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 (262) hide show
  1. package/dist/index.d.ts +2 -1
  2. package/dist/index.js +2 -1
  3. package/dist/src/components/Accordion/accordion.js +1 -1
  4. package/dist/src/components/Alerts/Alert/alert.d.ts +19 -0
  5. package/dist/src/components/Alerts/Alert/alert.js +156 -0
  6. package/dist/src/components/Alerts/Alert/alert.stories.d.ts +30 -0
  7. package/dist/src/components/Alerts/Alert/alert.stories.js +166 -0
  8. package/dist/src/components/Alerts/AlertDialog/alert-dialog.d.ts +45 -0
  9. package/dist/src/components/Alerts/AlertDialog/alert-dialog.js +168 -0
  10. package/dist/src/components/Alerts/AlertDialog/alert-dialog.stories.d.ts +69 -0
  11. package/dist/src/components/Alerts/AlertDialog/alert-dialog.stories.js +213 -0
  12. package/dist/src/components/Alerts/AlertDialog/index.d.ts +44 -0
  13. package/dist/src/components/Alerts/AlertDialog/index.js +189 -0
  14. package/dist/src/components/Avatar/Avatar/Avatar.d.ts +12 -3
  15. package/dist/src/components/Avatar/Avatar/Avatar.js +49 -11
  16. package/dist/src/components/Avatar/Avatar/Avatar.stories.d.ts +16 -2
  17. package/dist/src/components/Avatar/Avatar/Avatar.stories.js +51 -25
  18. package/dist/src/components/Avatar/Avatar/Avatar.test.js +6 -46
  19. package/dist/src/components/Avatar/Avatar/Avatar1.stories.d.ts +17 -0
  20. package/dist/src/components/Avatar/Avatar/Avatar1.stories.js +68 -0
  21. package/dist/src/components/Avatar/Avatar/index.d.ts +51 -28
  22. package/dist/src/components/Avatar/Avatar/index.js +76 -28
  23. package/dist/src/components/Avatar/AvatarGroup/AvatarGroup.js +1 -1
  24. package/dist/src/components/Avatar/AvatarGroup/AvatarGroup.stories.js +1 -1
  25. package/dist/src/components/Avatar/StatusIndicator/StatusIndicator.d.ts +3 -0
  26. package/dist/src/components/Avatar/StatusIndicator/StatusIndicator.js +18 -0
  27. package/dist/src/components/Avatar/StatusIndicator/StatusIndicator.stories.d.ts +44 -0
  28. package/dist/src/components/Avatar/StatusIndicator/StatusIndicator.stories.js +41 -0
  29. package/dist/src/components/Avatar/StatusIndicator/index.d.ts +27 -0
  30. package/dist/src/components/Avatar/StatusIndicator/index.js +29 -0
  31. package/dist/src/components/Avatar/StatusIndicator/type.d.ts +6 -0
  32. package/dist/src/components/Badge/Badge.d.ts +21 -0
  33. package/dist/src/components/Badge/Badge.js +59 -0
  34. package/dist/src/components/Badge/Badge.stories.d.ts +719 -0
  35. package/dist/src/components/Badge/Badge.stories.js +145 -0
  36. package/dist/src/components/Badge/index.d.ts +47 -0
  37. package/dist/src/components/Badge/index.js +49 -0
  38. package/dist/src/components/Button/Button/Button.d.ts +2 -2
  39. package/dist/src/components/Button/Button/Button.stories.d.ts +4 -4
  40. package/dist/src/components/Button/IconButton/IconButton.d.ts +2 -2
  41. package/dist/src/components/Button/IconButton/IconButton.stories.d.ts +4 -4
  42. package/dist/src/components/Dropdown/Combobox/Combobox.d.ts +3 -0
  43. package/dist/src/components/Dropdown/Combobox/Combobox.js +160 -0
  44. package/dist/src/components/Dropdown/Combobox/Combobox.stories.d.ts +13 -0
  45. package/dist/src/components/Dropdown/Combobox/Combobox.stories.js +225 -0
  46. package/dist/src/components/Dropdown/Combobox/index.d.ts +35 -0
  47. package/dist/src/components/Dropdown/Combobox/index.js +36 -0
  48. package/dist/src/components/Dropdown/Combobox/type.d.ts +25 -0
  49. package/dist/src/components/Dropdown/Combobox/utils/getLabelVariant.d.ts +3 -0
  50. package/dist/src/components/Dropdown/Combobox/utils/getLabelVariant.js +7 -0
  51. package/dist/src/components/Dropdown/Combobox/utils/renderBadge.d.ts +6 -0
  52. package/dist/src/components/Dropdown/Combobox/utils/renderBadge.js +5 -0
  53. package/dist/src/components/Dropdown/Combobox/utils/useResponsiveBadge.d.ts +1 -0
  54. package/dist/src/components/Dropdown/Combobox/utils/useResponsiveBadge.js +14 -0
  55. package/dist/src/components/Dropdown/DropdownMenu/DropdownMenu.d.ts +37 -0
  56. package/dist/src/components/Dropdown/DropdownMenu/DropdownMenu.js +96 -0
  57. package/dist/src/components/Dropdown/DropdownMenu/DropdownMenu.stories.d.ts +25 -0
  58. package/dist/src/components/Dropdown/DropdownMenu/DropdownMenu.stories.js +253 -0
  59. package/dist/src/components/Dropdown/DropdownMenu/SelectAllSection.d.ts +3 -0
  60. package/dist/src/components/Dropdown/DropdownMenu/SelectAllSection.js +9 -0
  61. package/dist/src/components/Dropdown/DropdownMenu/index.d.ts +20 -0
  62. package/dist/src/components/Dropdown/DropdownMenu/index.js +21 -0
  63. package/dist/src/components/Dropdown/DropdownMenu/type.d.ts +7 -0
  64. package/dist/src/components/Dropdown/select.js +3 -3
  65. package/dist/src/components/Icons/LUIcon.d.ts +1 -1
  66. package/dist/src/components/Icons/LUIcon.js +15 -8
  67. package/dist/src/components/Icons/LUIcon.test.d.ts +0 -1
  68. package/dist/src/components/Icons/LUIcon.test.js +306 -253
  69. package/dist/src/components/Icons/index.d.ts +23 -8
  70. package/dist/src/components/Icons/index.js +43 -28
  71. package/dist/src/components/Icons/stories/InteractiveIconSelector.js +3 -3
  72. package/dist/src/components/Icons/stories/LUIcon.stories.d.ts +9 -5
  73. package/dist/src/components/Icons/stories/LUIcon.stories.js +28 -43
  74. package/dist/src/components/Icons/type.d.ts +0 -1
  75. package/dist/src/components/SweetAlert/SweetAlert.d.ts +40 -0
  76. package/dist/src/components/SweetAlert/SweetAlert.js +150 -0
  77. package/dist/src/components/SweetAlert/SweetAlert.stories.d.ts +86 -0
  78. package/dist/src/components/SweetAlert/SweetAlert.stories.js +305 -0
  79. package/dist/src/components/SweetAlert/index.d.ts +24 -0
  80. package/dist/src/components/SweetAlert/index.js +137 -0
  81. package/dist/src/components/ui/avatar.d.ts +10 -3
  82. package/dist/src/components/ui/avatar.js +27 -12
  83. package/dist/src/components/ui/command.d.ts +22 -0
  84. package/dist/src/components/ui/command.js +65 -0
  85. package/dist/src/components/ui/dialog.d.ts +15 -0
  86. package/dist/src/components/ui/dialog.js +68 -0
  87. package/dist/src/components/ui/popover.d.ts +7 -0
  88. package/dist/src/components/ui/popover.js +42 -0
  89. package/dist/src/utils/constants.d.ts +1 -0
  90. package/dist/src/utils/constants.js +1 -0
  91. package/dist/styles/global.css +727 -53
  92. package/dist/tailwind.config.js +6 -0
  93. package/package.json +6 -1
  94. package/dist/app/layout.jsx +0 -13
  95. package/dist/app/page.jsx +0 -5
  96. package/dist/next.config.d.ts +0 -8
  97. package/dist/next.config.js +0 -10
  98. package/dist/src/components/Accordion/Accordion.stories.jsx +0 -33
  99. package/dist/src/components/Accordion/accordion.jsx +0 -59
  100. package/dist/src/components/AppIcons/AndroidIcon.jsx +0 -24
  101. package/dist/src/components/AppIcons/AppIcon.jsx +0 -29
  102. package/dist/src/components/AppIcons/AppIcon.stories.jsx +0 -223
  103. package/dist/src/components/AppIcons/AppleIcon.jsx +0 -31
  104. package/dist/src/components/AppIcons/PlayStoreIcon.jsx +0 -29
  105. package/dist/src/components/Avatar/Avatar/Avatar.jsx +0 -17
  106. package/dist/src/components/Avatar/Avatar/Avatar.stories.jsx +0 -31
  107. package/dist/src/components/Avatar/Avatar/Avatar.test.jsx +0 -51
  108. package/dist/src/components/Avatar/AvatarGroup/AvatarGroup.jsx +0 -17
  109. package/dist/src/components/Avatar/AvatarGroup/AvatarGroup.stories.jsx +0 -32
  110. package/dist/src/components/Button/Button/Button.jsx +0 -73
  111. package/dist/src/components/Button/Button/Button.stories.jsx +0 -283
  112. package/dist/src/components/Button/Button/Button.test.jsx +0 -73
  113. package/dist/src/components/Button/Button/index.d.ts +0 -63
  114. package/dist/src/components/Button/Button/index.js +0 -64
  115. package/dist/src/components/Button/Button.d.ts +0 -20
  116. package/dist/src/components/Button/Button.js +0 -83
  117. package/dist/src/components/Button/Button.stories.d.ts +0 -725
  118. package/dist/src/components/Button/Button.stories.js +0 -288
  119. package/dist/src/components/Button/Button.test.js +0 -10
  120. package/dist/src/components/Button/IconButton/IconButton.jsx +0 -63
  121. package/dist/src/components/Button/IconButton/IconButton.stories.jsx +0 -128
  122. package/dist/src/components/Button/IconButton/IconButton.test.jsx +0 -28
  123. package/dist/src/components/Button/IconButton/index.d.ts +0 -0
  124. package/dist/src/components/Button/IconButton/index.js +0 -1
  125. package/dist/src/components/Button/IconButton.d.ts +0 -33
  126. package/dist/src/components/Button/IconButton.js +0 -79
  127. package/dist/src/components/Button/IconButton.stories.d.ts +0 -4
  128. package/dist/src/components/Button/IconButton.stories.js +0 -65
  129. package/dist/src/components/Button/IconButton.test.js +0 -28
  130. package/dist/src/components/Card/MultipleNews/MultiNews.jsx +0 -80
  131. package/dist/src/components/Card/MultipleNews/MultiNews.stories.jsx +0 -104
  132. package/dist/src/components/Card/PostByCategory/PostByCategory.jsx +0 -60
  133. package/dist/src/components/Card/PostByCategory/PostByCategory.stories.jsx +0 -106
  134. package/dist/src/components/Card/SinglePost/SinglePost.jsx +0 -26
  135. package/dist/src/components/Card/SinglePost/SinglePost.stories.jsx +0 -68
  136. package/dist/src/components/Card/card.jsx +0 -36
  137. package/dist/src/components/Card/contactProfile/ContactProfile.jsx +0 -60
  138. package/dist/src/components/Card/contactProfile/ContactProfile.stories.jsx +0 -103
  139. package/dist/src/components/Card/photoAlbum/PhotoAlbum.jsx +0 -41
  140. package/dist/src/components/Card/photoAlbum/PhotoAlbum.stories.jsx +0 -69
  141. package/dist/src/components/Card/photoGallery/PhotoGallery.jsx +0 -17
  142. package/dist/src/components/Card/photoGallery/PhotoGallery.stories.jsx +0 -39
  143. package/dist/src/components/Checkbox/checkbox.jsx +0 -47
  144. package/dist/src/components/Checkbox/checkbox.stories.jsx +0 -113
  145. package/dist/src/components/ColorPicker/ColorPicker.jsx +0 -67
  146. package/dist/src/components/ColorPicker/ColorPicker.stories.jsx +0 -138
  147. package/dist/src/components/Colors/color.jsx +0 -5
  148. package/dist/src/components/Colors/color.stories.jsx +0 -20
  149. package/dist/src/components/Colors/color.test.jsx +0 -23
  150. package/dist/src/components/Dropdown/Select.stories.jsx +0 -201
  151. package/dist/src/components/Dropdown/select.jsx +0 -94
  152. package/dist/src/components/Icons/IconList.test.d.ts +0 -1
  153. package/dist/src/components/Icons/IconList.test.js +0 -58
  154. package/dist/src/components/Icons/IconView.d.ts +0 -1
  155. package/dist/src/components/Icons/IconView.js +0 -8
  156. package/dist/src/components/Icons/IconView.stories.d.ts +0 -4
  157. package/dist/src/components/Icons/IconView.stories.js +0 -20
  158. package/dist/src/components/Icons/LUIcon.jsx +0 -36
  159. package/dist/src/components/Icons/LUIcon.stories.d.ts +0 -6
  160. package/dist/src/components/Icons/LUIcon.stories.js +0 -75
  161. package/dist/src/components/Icons/LUIcon.test.jsx +0 -243
  162. package/dist/src/components/Icons/SingleIcon.test.d.ts +0 -1
  163. package/dist/src/components/Icons/SingleIcon.test.js +0 -68
  164. package/dist/src/components/Icons/stories/IconDropdown.jsx +0 -67
  165. package/dist/src/components/Icons/stories/IconGallery.jsx +0 -77
  166. package/dist/src/components/Icons/stories/InteractiveIconSelector.jsx +0 -86
  167. package/dist/src/components/Icons/stories/LUIcon.stories.jsx +0 -96
  168. package/dist/src/components/ImageUploader/ImageUploader.stories.jsx +0 -50
  169. package/dist/src/components/ImageUploader/imageUploader.jsx +0 -94
  170. package/dist/src/components/Images/LuImage.jsx +0 -19
  171. package/dist/src/components/Images/LuImage.stories.jsx +0 -154
  172. package/dist/src/components/Images/LuImage.test.jsx +0 -44
  173. package/dist/src/components/Input/Input.stories.jsx +0 -250
  174. package/dist/src/components/Input/input.jsx +0 -110
  175. package/dist/src/components/Label/Label.jsx +0 -32
  176. package/dist/src/components/Label/Label.stories.jsx +0 -30
  177. package/dist/src/components/MediaCard/Card.d.ts +0 -3
  178. package/dist/src/components/MediaCard/Card.js +0 -45
  179. package/dist/src/components/MediaCard/Card.stories.d.ts +0 -4
  180. package/dist/src/components/MediaCard/Card.stories.js +0 -57
  181. package/dist/src/components/MediaCard/Card.test.d.ts +0 -1
  182. package/dist/src/components/MediaCard/Card.test.js +0 -28
  183. package/dist/src/components/MediaCard/ContactProfile/ContactProfile.d.ts +0 -2
  184. package/dist/src/components/MediaCard/ContactProfile/ContactProfile.js +0 -27
  185. package/dist/src/components/MediaCard/ContactProfile/ContactProfile.test.d.ts +0 -1
  186. package/dist/src/components/MediaCard/ContactProfile/ContactProfile.test.js +0 -61
  187. package/dist/src/components/MediaCard/ContactProfile/ContactProfileTheme1.d.ts +0 -2
  188. package/dist/src/components/MediaCard/ContactProfile/ContactProfileTheme1.js +0 -7
  189. package/dist/src/components/MediaCard/ContactProfile/ContactProfileTheme1.test.d.ts +0 -1
  190. package/dist/src/components/MediaCard/ContactProfile/ContactProfileTheme1.test.js +0 -99
  191. package/dist/src/components/MediaCard/ContactProfile/ContactProfileTheme2.d.ts +0 -2
  192. package/dist/src/components/MediaCard/ContactProfile/ContactProfileTheme2.js +0 -7
  193. package/dist/src/components/MediaCard/ContactProfile/ContactProfileTheme2.test.d.ts +0 -1
  194. package/dist/src/components/MediaCard/ContactProfile/ContactProfileTheme2.test.js +0 -99
  195. package/dist/src/components/MediaCard/PostByCategory/PostByCategory.d.ts +0 -2
  196. package/dist/src/components/MediaCard/PostByCategory/PostByCategory.js +0 -31
  197. package/dist/src/components/MediaCard/PostByCategory/PostByCategory.test.d.ts +0 -1
  198. package/dist/src/components/MediaCard/PostByCategory/PostByCategory.test.js +0 -62
  199. package/dist/src/components/MediaCard/PostByCategory/PostByCategoryTheme1.d.ts +0 -2
  200. package/dist/src/components/MediaCard/PostByCategory/PostByCategoryTheme1.js +0 -7
  201. package/dist/src/components/MediaCard/PostByCategory/PostByCategoryTheme1.test.d.ts +0 -1
  202. package/dist/src/components/MediaCard/PostByCategory/PostByCategoryTheme1.test.js +0 -99
  203. package/dist/src/components/MediaCard/PostByCategory/PostByCategoryTheme2.d.ts +0 -2
  204. package/dist/src/components/MediaCard/PostByCategory/PostByCategoryTheme2.js +0 -7
  205. package/dist/src/components/MediaCard/PostByCategory/PostByCategoryTheme2.test.d.ts +0 -1
  206. package/dist/src/components/MediaCard/PostByCategory/PostByCategoryTheme2.test.js +0 -99
  207. package/dist/src/components/MediaCard/VerticalCard/VerticalCard.d.ts +0 -3
  208. package/dist/src/components/MediaCard/VerticalCard/VerticalCard.js +0 -13
  209. package/dist/src/components/MediaCard/VerticalCard/VerticalCard.stories.d.ts +0 -5
  210. package/dist/src/components/MediaCard/VerticalCard/VerticalCard.stories.js +0 -40
  211. package/dist/src/components/MediaCard/index.d.ts +0 -9
  212. package/dist/src/components/MediaCard/index.js +0 -13
  213. package/dist/src/components/MediaCard/type.d.ts +0 -47
  214. package/dist/src/components/RadioButton/RadioButton.stories.d.ts +0 -10
  215. package/dist/src/components/RadioButton/RadioButton.stories.js +0 -82
  216. package/dist/src/components/RadioButton/RadioGroup.stories.d.ts +0 -10
  217. package/dist/src/components/RadioButton/RadioGroup.stories.js +0 -131
  218. package/dist/src/components/RadioButton/radio-button.d.ts +0 -14
  219. package/dist/src/components/RadioButton/radio-button.js +0 -57
  220. package/dist/src/components/RadioButton/radio-group.d.ts +0 -21
  221. package/dist/src/components/RadioButton/radio-group.js +0 -59
  222. package/dist/src/components/RadioGroup/RadioGroup.stories.jsx +0 -146
  223. package/dist/src/components/RadioGroup/radio-group.jsx +0 -49
  224. package/dist/src/components/Slider/Slider.stories.jsx +0 -159
  225. package/dist/src/components/Slider/slider.jsx +0 -31
  226. package/dist/src/components/Switch/Switch.stories.jsx +0 -66
  227. package/dist/src/components/Switch/switch.jsx +0 -61
  228. package/dist/src/components/Tabs/Tabs.stories.jsx +0 -29
  229. package/dist/src/components/Tabs/tabs.jsx +0 -32
  230. package/dist/src/components/Title/Title.jsx +0 -8
  231. package/dist/src/components/Title/Title.stories.jsx +0 -37
  232. package/dist/src/components/Title/Title.test.jsx +0 -24
  233. package/dist/src/components/ToolTip/Tooltip.jsx +0 -18
  234. package/dist/src/components/ToolTip/Tooltip.stories.jsx +0 -25
  235. package/dist/src/components/Typography/Body/Body.stories.jsx +0 -34
  236. package/dist/src/components/Typography/Body/body.jsx +0 -52
  237. package/dist/src/components/Typography/Caption/Caption.stories.jsx +0 -24
  238. package/dist/src/components/Typography/Caption/caption.jsx +0 -25
  239. package/dist/src/components/Typography/Display/Display.stories.jsx +0 -24
  240. package/dist/src/components/Typography/Display/display.jsx +0 -39
  241. package/dist/src/components/Typography/Heading/Heading.stories.jsx +0 -37
  242. package/dist/src/components/Typography/Heading/heading.jsx +0 -53
  243. package/dist/src/components/ui/accordion.d.ts +0 -7
  244. package/dist/src/components/ui/accordion.js +0 -64
  245. package/dist/src/components/ui/avatar.jsx +0 -27
  246. package/dist/src/components/ui/caption.d.ts +0 -8
  247. package/dist/src/components/ui/caption.js +0 -34
  248. package/dist/src/components/ui/checkbox.d.ts +0 -4
  249. package/dist/src/components/ui/checkbox.js +0 -31
  250. package/dist/src/components/ui/input.d.ts +0 -3
  251. package/dist/src/components/ui/input.js +0 -29
  252. package/dist/src/components/ui/switch.d.ts +0 -22
  253. package/dist/src/components/ui/switch.js +0 -70
  254. package/dist/src/components/ui/tooltip.jsx +0 -38
  255. package/dist/src/components/ui/typography.jsx +0 -56
  256. package/dist/src/context/LocalizationContext.d.ts +0 -23
  257. package/dist/src/context/LocalizationContext.js +0 -17
  258. package/dist/src/utils/index.d.ts +0 -17
  259. package/dist/src/utils/index.js +0 -20
  260. /package/dist/src/components/{MediaCard → Avatar/StatusIndicator}/type.js +0 -0
  261. /package/dist/src/components/{Button/Button.test.d.ts → Dropdown/Combobox/type.js} +0 -0
  262. /package/dist/src/components/{Button/IconButton.test.d.ts → Dropdown/DropdownMenu/type.js} +0 -0
@@ -1,64 +0,0 @@
1
- // Button style types
2
- export var buttonStyles = {
3
- fillColor: {
4
- blue: "bg-blue-600 text-blue-50 border-blue-600 hover:bg-blue-700 hover:border-blue-700 active:bg-blue-800 active:border-blue-800",
5
- "light-blue": "bg-blue-100 text-blue-600 border-blue-100 hover:bg-blue-700 hover:text-blue-50 hover:border-blue-700 active:bg-blue-800 active:text-blue-50 active:border-blue-800",
6
- green: "bg-green-600 text-green-50 border-green-600 hover:bg-green-700 hover:border-green-700 active:bg-green-800 active:border-green-800",
7
- "light-green": "bg-green-100 text-green-600 border-green-100 hover:bg-green-700 hover:text-green-50 hover:border-green-700 active:bg-green-800 active:text-green-50 active:border-green-800",
8
- yellow: "bg-yellow-500 text-yellow-950 border-yellow-500 hover:bg-yellow-600 hover:border-yellow-600 active:bg-yellow-700 active:border-yellow-700",
9
- "light-yellow": "bg-yellow-100 text-yellow-950 border-yellow-100 hover:bg-yellow-600 hover:border-yellow-600 active:bg-yellow-700 active:border-yellow-700",
10
- red: "bg-red-600 text-red-50 border-red-600 hover:bg-red-700 hover:border-red-700 active:bg-red-800 active:border-red-800",
11
- "light-red": "bg-red-100 text-red-600 border-red-100 hover:bg-red-700 hover:text-red-50 hover:border-red-700 active:bg-red-800 active:text-red-50 active:border-red-800",
12
- indigo: "bg-indigo-600 text-indigo-50 border-indigo-600 hover:bg-indigo-700 hover:border-indigo-700 active:bg-indigo-800 active:border-indigo-800",
13
- "light-indigo": "bg-indigo-100 text-indigo-600 border-indigo-100 hover:bg-indigo-700 hover:text-indigo-50 hover:border-indigo-700 active:bg-indigo-800 active:text-indigo-50 active:border-indigo-800",
14
- gray: "bg-gray-900 text-gray-50 border-gray-900 hover:bg-gray-100 hover:text-gray-950 hover:border-gray-100 active:bg-gray-300 active:text-gray-950 active:border-gray-300",
15
- "light-gray": "bg-gray-50 text-gray-950 border-gray-50 hover:bg-gray-100 hover:border-gray-100 active:bg-gray-300 active:border-gray-300",
16
- disabled: "bg-gray-100 text-gray-300 border-gray-100",
17
- },
18
- size: {
19
- xl: "h-13 !py-3.5 !px-6 !text-base !font-normal !leading-normal",
20
- lg: "h-12 !py-3 !px-5 !text-base !font-normal !leading-normal",
21
- md: "h-10 !py-2.5 !px-5 !text-sm !font-normal !leading-5",
22
- sm: "h-9 !py-2 !px-3 !text-sm !font-normal !leading-5",
23
- },
24
- shape: {
25
- "rounded-sm": "!rounded-sm",
26
- "rounded-full": "!rounded-full",
27
- },
28
- linkColor: {
29
- blue: "text-blue-600 hover:text-blue-700 active:text-blue-800",
30
- green: "text-green-600 hover:text-green-700 active:text-green-800",
31
- yellow: "text-yellow-500 hover:text-yellow-600 active:text-yellow-700",
32
- red: "text-red-600 hover:text-red-700 active:text-red-800",
33
- indigo: "text-indigo-600 hover:text-indigo-700 active:text-indigo-800",
34
- gray: "text-gray-500 hover:text-gray-600 active:text-gray-700",
35
- disabled: "text-gray-300 hover:no-underline",
36
- },
37
- linkSize: {
38
- lg: "!text-base !font-normal !leading-normal",
39
- md: "!text-sm !font-normal !leading-5",
40
- },
41
- outlineColor: {
42
- blue: "text-blue-600 hover:bg-blue-700 hover:text-blue-50 active:bg-blue-800 active:text-blue-50",
43
- "light-blue": "bg-blue-100 text-blue-600 border-blue-600 hover:bg-blue-700 hover:text-blue-50 active:bg-blue-800 active:text-blue-50",
44
- green: "text-green-600 hover:bg-green-700 hover:text-green-50 active:bg-green-800 active:text-green-50",
45
- "light-green": "bg-green-100 text-green-600 border-green-600 hover:bg-green-700 hover:text-green-50 active:bg-green-800 active:text-green-50",
46
- yellow: "text-yellow-500 hover:bg-yellow-600 hover:text-yellow-950 active:bg-yellow-700 active:text-yellow-950",
47
- "light-yellow": "bg-yellow-100 text-yellow-950 border-yellow-600 hover:bg-yellow-600 active:bg-yellow-700",
48
- red: "text-red-600 hover:bg-red-700 hover:text-red-50 active:bg-red-800 active:text-red-50",
49
- "light-red": "bg-red-100 text-red-600 border-red-600 hover:bg-red-700 hover:text-red-50 active:bg-red-800 active:text-red-50",
50
- indigo: "text-indigo-600 hover:bg-indigo-700 hover:text-indigo-50 active:bg-indigo-800 active:text-indigo-50",
51
- "light-indigo": "bg-indigo-100 text-indigo-600 border-indigo-600 hover:bg-indigo-700 hover:text-indigo-50 active:bg-indigo-800 active:text-indigo-50",
52
- gray: "bg-gray-100 text-gray-950 border-gray-900 hover:bg-gray-100 hover:text-gray-950 active:bg-gray-300 active:text-gray-950",
53
- "light-gray": "text-gray-950 border-gray-100 hover:bg-gray-100 hover:text-gray-950 active:bg-gray-300",
54
- disabled: "text-gray-300",
55
- },
56
- ghostColor: {
57
- blue: "text-blue-600 hover:bg-blue-100 active:bg-blue-600 active:text-blue-50",
58
- green: "text-green-600 hover:bg-green-100 active:bg-green-600 active:text-green-50",
59
- yellow: "text-yellow-500 hover:bg-yellow-600 hover:text-yellow-950 active:bg-yellow-500 active:text-yellow-950",
60
- red: "text-red-600 hover:bg-red-100 active:bg-red-600 active:text-red-50",
61
- indigo: "text-indigo-600 hover:bg-indigo-100 active:bg-indigo-600 active:text-indigo-50",
62
- gray: "text-gray-950 hover:bg-gray-50 active:bg-gray-950 active:text-gray-950",
63
- },
64
- };
@@ -1,20 +0,0 @@
1
- import * as React from "react";
2
- import { type VariantProps } from "class-variance-authority";
3
- export declare const variant: {
4
- default: string;
5
- link: string;
6
- outline: string;
7
- };
8
- declare const buttonVariants: (props?: ({
9
- color?: "blue" | "light-blue" | "green" | "light-green" | "yellow" | "light-yellow" | "red" | "light-red" | "indigo" | "light-indigo" | "gray" | "light-gray" | null | undefined;
10
- size?: "sm" | "md" | "lg" | "xl" | null | undefined;
11
- shape?: "rounded-full" | "rounded-sm" | null | undefined;
12
- variant?: "link" | "default" | "outline" | null | undefined;
13
- } & import("class-variance-authority/types").ClassProp) | undefined) => string;
14
- declare function Button({ className, color, size, shape, variant, asChild, startIcon, endIcon, ...props }: React.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
15
- asChild?: boolean;
16
- startIcon?: string;
17
- endIcon?: string;
18
- variant?: "default" | "link" | "outline";
19
- }): import("react/jsx-runtime").JSX.Element;
20
- export { Button, buttonVariants };
@@ -1,83 +0,0 @@
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
- var __rest = (this && this.__rest) || function (s, e) {
13
- var t = {};
14
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
- t[p] = s[p];
16
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
- t[p[i]] = s[p[i]];
20
- }
21
- return t;
22
- };
23
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
24
- import { Slot } from "@radix-ui/react-slot";
25
- import { cva } from "class-variance-authority";
26
- import { cn } from "../../lib/utils";
27
- import LUIcon from "../Icons/LUIcon";
28
- import { color, linkColor, outlineColor, shape, size } from ".";
29
- export var variant = {
30
- default: "",
31
- link: "bg-transparent hover:bg-transparent focus:bg-transparent active:bg-transparent !p-0 underline-offset-4 hover:underline border-none",
32
- outline: "bg-transparent",
33
- };
34
- var buttonVariants = cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive border", {
35
- variants: {
36
- color: color,
37
- size: size,
38
- shape: shape,
39
- variant: variant,
40
- },
41
- defaultVariants: {
42
- color: "blue",
43
- size: "md",
44
- shape: "rounded-sm",
45
- variant: "default",
46
- },
47
- // compoundVariants: [
48
- // {
49
- // variant: "outline",
50
- // class: "box-border", // ✅ add only when outline
51
- // },
52
- // ],
53
- });
54
- function Button(_a) {
55
- var className = _a.className, _b = _a.color, color = _b === void 0 ? "blue" : _b, size = _a.size, shape = _a.shape, _c = _a.variant, variant = _c === void 0 ? "default" : _c, _d = _a.asChild, asChild = _d === void 0 ? false : _d, startIcon = _a.startIcon, endIcon = _a.endIcon, props = __rest(_a, ["className", "color", "size", "shape", "variant", "asChild", "startIcon", "endIcon"]);
56
- var Comp = asChild ? Slot : "button";
57
- // Map button size to appropriate icon sizes for start and end icons
58
- var getIconSizes = function () {
59
- if (size === "xl" || size === "lg" || size === "md") {
60
- return {
61
- startIcon: "md", // 16px (size-6) - matches iconSize.xl
62
- endIcon: "xs", // 12px (size-3.5)
63
- };
64
- }
65
- return {
66
- startIcon: "sm", // 14px (size-4)
67
- endIcon: "xs", // 12px (size-3.5)
68
- };
69
- };
70
- // Get icon sizes based on button size
71
- var iconSizes = getIconSizes();
72
- // Use the calculated sizes based on button size
73
- var startIconSizeValue = iconSizes.startIcon;
74
- var endIconSizeValue = iconSizes.endIcon;
75
- // Apply appropriate text color for link variant
76
- var extraClasses = variant === "link" && color
77
- ? linkColor[color]
78
- : variant === "outline" && color
79
- ? outlineColor[color]
80
- : "";
81
- return (_jsxs(Comp, __assign({ "data-slot": "button", className: cn(buttonVariants({ variant: variant, color: color, size: size, shape: shape, className: className }), extraClasses) }, props, { children: [startIcon && (_jsx(LUIcon, { size: startIconSizeValue, "data-testid": "start-icon", icon: startIcon })), props.children, endIcon && (_jsx(LUIcon, { size: endIconSizeValue, "data-testid": "end-icon", icon: endIcon }))] })));
82
- }
83
- export { Button, buttonVariants };