cortex-react-components 1.38.3 → 1.39.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 (365) hide show
  1. package/dist/{chunk-ZQX2AMAM.mjs → chunk-3G3SVIM2.mjs} +1 -1
  2. package/dist/{chunk-AUDD6XH7.mjs → chunk-3O45WZBW.mjs} +1 -1
  3. package/dist/{chunk-IB72MBM7.mjs → chunk-423OEU3K.mjs} +1 -1
  4. package/dist/{chunk-4N3XLFAD.mjs → chunk-4AVYTUS2.mjs} +1 -1
  5. package/dist/{chunk-U4NCHUCT.mjs → chunk-6TGQ2756.mjs} +1 -1
  6. package/dist/chunk-BXBLKTRB.mjs +4 -0
  7. package/dist/{chunk-BO4KMX4L.mjs → chunk-BYXEE5EN.mjs} +1 -1
  8. package/dist/{chunk-BVDQQP66.mjs → chunk-D2PXEOXW.mjs} +1 -1
  9. package/dist/{chunk-T6HU6M7P.mjs → chunk-D5DOMEF7.mjs} +1 -1
  10. package/dist/{chunk-3KUNT22C.mjs → chunk-DZCCRDJP.mjs} +1 -1
  11. package/dist/{chunk-OZWMFVUL.mjs → chunk-F3X4XMDX.mjs} +1 -1
  12. package/dist/{chunk-JHLO57EI.mjs → chunk-FF5RGGCG.mjs} +1 -1
  13. package/dist/{chunk-M2E6LWPZ.mjs → chunk-GMMJ5NQ2.mjs} +1 -1
  14. package/dist/{chunk-OEM7RQ4Q.mjs → chunk-HUN2X4VH.mjs} +1 -1
  15. package/dist/{chunk-QRNJ7O2L.mjs → chunk-ICTOXY7D.mjs} +1 -1
  16. package/dist/chunk-IK2XCY2B.mjs +4 -0
  17. package/dist/{chunk-DOKHWHYB.mjs → chunk-JVRJU2VL.mjs} +1 -1
  18. package/dist/{chunk-B5MYCLC4.mjs → chunk-KQLEXEOG.mjs} +1 -1
  19. package/dist/chunk-L73FONDI.mjs +4 -0
  20. package/dist/{chunk-63BUZTVI.mjs → chunk-MANZDSTF.mjs} +1 -1
  21. package/dist/{chunk-6AARBDPJ.mjs → chunk-OCZTJKMQ.mjs} +1 -1
  22. package/dist/chunk-OK5DPXKH.mjs +190 -0
  23. package/dist/{chunk-2S5YQVXM.mjs → chunk-OZ7CSBQO.mjs} +1 -1
  24. package/dist/{chunk-ZTAKQMSW.mjs → chunk-PC3JJLM4.mjs} +1 -1
  25. package/dist/{chunk-G4UZIH3Q.mjs → chunk-R75QPTHT.mjs} +1 -1
  26. package/dist/chunk-RMI4G7HJ.mjs +1 -0
  27. package/dist/chunk-S7OK7D5I.mjs +1 -0
  28. package/dist/{chunk-ODLDYXPZ.mjs → chunk-UK4IPFAO.mjs} +1 -1
  29. package/dist/{chunk-FQTQI56T.mjs → chunk-VAEKAYFF.mjs} +1 -1
  30. package/dist/{chunk-PAG346RY.mjs → chunk-VXZJ3JK5.mjs} +1 -1
  31. package/dist/chunk-XGQLOPHW.mjs +4 -0
  32. package/dist/{chunk-TAAX3A4F.mjs → chunk-XJIMKYBF.mjs} +1 -1
  33. package/dist/{chunk-MBCAGZ76.mjs → chunk-Y5CGMHFF.mjs} +1 -1
  34. package/dist/{chunk-UPEI7J4F.mjs → chunk-Y5LJ6MWY.mjs} +1 -1
  35. package/dist/chunk-YNDKGRL6.mjs +4 -0
  36. package/dist/chunk-ZGOBG76E.mjs +4 -0
  37. package/dist/common-types.mjs +1 -1
  38. package/dist/components/Blocks/Banner.js +1 -1
  39. package/dist/components/Blocks/Banner.mjs +1 -1
  40. package/dist/components/Blocks/CallToAction.js +1 -1
  41. package/dist/components/Blocks/CallToAction.mjs +1 -1
  42. package/dist/components/Blocks/CaseStudy.mjs +1 -1
  43. package/dist/components/Blocks/CaseStudy.stories.mjs +1 -1
  44. package/dist/components/Blocks/Code.client.mjs +1 -1
  45. package/dist/components/Blocks/Code.mjs +1 -1
  46. package/dist/components/Blocks/ConsultantProfile.mjs +1 -1
  47. package/dist/components/Blocks/ConsultantProfile.stories.mjs +1 -1
  48. package/dist/components/Blocks/Content.js +1 -1
  49. package/dist/components/Blocks/Content.mjs +1 -1
  50. package/dist/components/Blocks/CopyButton.mjs +1 -1
  51. package/dist/components/Blocks/FeaturesBlock.js +1 -1
  52. package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
  53. package/dist/components/Blocks/FeaturesBlock.stories.js +1 -1
  54. package/dist/components/Blocks/FeaturesBlock.stories.mjs +1 -1
  55. package/dist/components/Blocks/HeadingImage.mjs +1 -1
  56. package/dist/components/Blocks/HeadingImage.stories.mjs +1 -1
  57. package/dist/components/Blocks/ImageBlock.js +1 -1
  58. package/dist/components/Blocks/ImageBlock.mjs +1 -1
  59. package/dist/components/Blocks/InfoTile.mjs +1 -1
  60. package/dist/components/Blocks/InfoTile.stories.mjs +1 -1
  61. package/dist/components/Blocks/Insight.mjs +1 -1
  62. package/dist/components/Blocks/Insight.stories.mjs +1 -1
  63. package/dist/components/Blocks/MOTD.mjs +1 -1
  64. package/dist/components/Blocks/MOTD.stories.mjs +1 -1
  65. package/dist/components/Blocks/MediaBlock.js +1 -1
  66. package/dist/components/Blocks/MediaBlock.mjs +1 -1
  67. package/dist/components/Blocks/OrgChart.mjs +1 -1
  68. package/dist/components/Blocks/OrgChart.stories.mjs +1 -1
  69. package/dist/components/Blocks/ProposalSummary.mjs +1 -1
  70. package/dist/components/Blocks/ProposalSummary.stories.mjs +1 -1
  71. package/dist/components/Blocks/RelatedPosts.js +1 -1
  72. package/dist/components/Blocks/RelatedPosts.mjs +1 -1
  73. package/dist/components/Blocks/RenderBlocks.js +1 -1
  74. package/dist/components/Blocks/RenderBlocks.mjs +1 -1
  75. package/dist/components/Blocks/WhyUs.mjs +1 -1
  76. package/dist/components/Blocks/WhyUs.stories.mjs +1 -1
  77. package/dist/components/Blocks/index.js +1 -1
  78. package/dist/components/Blocks/index.mjs +1 -1
  79. package/dist/components/Cards/CustomerCard.mjs +1 -1
  80. package/dist/components/Cards/CustomerCard.stories.mjs +1 -1
  81. package/dist/components/Cards/EventCard.mjs +1 -1
  82. package/dist/components/Cards/EventCard.stories.mjs +1 -1
  83. package/dist/components/Cards/FeatureCard.mjs +1 -1
  84. package/dist/components/Cards/FeatureCard.stories.mjs +1 -1
  85. package/dist/components/Cards/Image.mjs +1 -1
  86. package/dist/components/Cards/Image.stories.mjs +1 -1
  87. package/dist/components/Cards/PricingCard.mjs +1 -1
  88. package/dist/components/Cards/PricingCard.stories.mjs +1 -1
  89. package/dist/components/Cards/ProjectCard.mjs +1 -1
  90. package/dist/components/Cards/ProjectCard.stories.mjs +1 -1
  91. package/dist/components/Cards/ServiceCard.mjs +1 -1
  92. package/dist/components/Cards/ServiceCard.stories.mjs +1 -1
  93. package/dist/components/Cards/index.mjs +1 -1
  94. package/dist/components/HeaderFooter/AppLauncher.mjs +1 -1
  95. package/dist/components/HeaderFooter/AppLauncher.stories.mjs +1 -1
  96. package/dist/components/HeaderFooter/BrandLogo.mjs +1 -1
  97. package/dist/components/HeaderFooter/Footer.mjs +1 -1
  98. package/dist/components/HeaderFooter/Footer.stories.mjs +1 -1
  99. package/dist/components/HeaderFooter/Header.mjs +1 -1
  100. package/dist/components/HeaderFooter/Header.stories.mjs +1 -1
  101. package/dist/components/HeaderFooter/HeaderDesktop.mjs +1 -1
  102. package/dist/components/HeaderFooter/HeaderDesktop.stories.mjs +1 -1
  103. package/dist/components/HeaderFooter/HeaderMenu.mjs +1 -1
  104. package/dist/components/HeaderFooter/HeaderMenu.stories.mjs +1 -1
  105. package/dist/components/HeaderFooter/HeaderMenuItem.mjs +1 -1
  106. package/dist/components/HeaderFooter/HeaderMobile.mjs +1 -1
  107. package/dist/components/HeaderFooter/HeaderMobile.stories.mjs +1 -1
  108. package/dist/components/HeaderFooter/SectionHeading.js +1 -1
  109. package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
  110. package/dist/components/HeaderFooter/SimpleHeader.mjs +1 -1
  111. package/dist/components/HeaderFooter/SimpleHeader.stories.mjs +1 -1
  112. package/dist/components/HeaderFooter/VideoHeader.mjs +1 -1
  113. package/dist/components/HeaderFooter/index.mjs +1 -1
  114. package/dist/components/Heros/HighImpact/index.js +1 -1
  115. package/dist/components/Heros/HighImpact/index.mjs +1 -1
  116. package/dist/components/Heros/LowImpact/index.js +1 -1
  117. package/dist/components/Heros/LowImpact/index.mjs +1 -1
  118. package/dist/components/Heros/MediumImpact/index.js +1 -1
  119. package/dist/components/Heros/MediumImpact/index.mjs +1 -1
  120. package/dist/components/Heros/PostHero/index.mjs +1 -1
  121. package/dist/components/Heros/RenderHero.js +1 -1
  122. package/dist/components/Heros/RenderHero.mjs +1 -1
  123. package/dist/components/Heros/SectionHero/index.mjs +1 -1
  124. package/dist/components/Heros/index.js +1 -1
  125. package/dist/components/Heros/index.mjs +1 -1
  126. package/dist/components/Holidays/ApproveLeave.d.ts +19 -0
  127. package/dist/components/Holidays/ApproveLeave.js +4 -0
  128. package/dist/components/Holidays/ApproveLeave.mjs +2 -0
  129. package/dist/components/Holidays/ApproveLeave.stories.js +193 -0
  130. package/dist/components/Holidays/ApproveLeave.stories.mjs +1 -0
  131. package/dist/components/Holidays/CalendarView.d.ts +17 -0
  132. package/dist/components/Holidays/CalendarView.js +4 -0
  133. package/dist/components/Holidays/CalendarView.mjs +2 -0
  134. package/dist/components/Holidays/CalendarView.stories.js +4 -0
  135. package/dist/components/Holidays/CalendarView.stories.mjs +1 -0
  136. package/dist/components/Holidays/HolidayGrid.d.ts +26 -0
  137. package/dist/components/Holidays/HolidayGrid.js +4 -0
  138. package/dist/components/Holidays/HolidayGrid.mjs +1 -0
  139. package/dist/components/Holidays/HolidayGrid.stories.js +4 -0
  140. package/dist/components/Holidays/HolidayGrid.stories.mjs +1 -0
  141. package/dist/components/Holidays/HolidayTracker.d.ts +44 -0
  142. package/dist/components/Holidays/HolidayTracker.js +5 -0
  143. package/dist/components/Holidays/HolidayTracker.mjs +2 -0
  144. package/dist/components/Holidays/HolidayTracker.stories.js +440 -0
  145. package/dist/components/Holidays/HolidayTracker.stories.mjs +1 -0
  146. package/dist/components/Holidays/RequestLeave.d.ts +11 -0
  147. package/dist/components/Holidays/RequestLeave.js +5 -0
  148. package/dist/components/Holidays/RequestLeave.mjs +2 -0
  149. package/dist/components/Holidays/RequestLeave.stories.js +194 -0
  150. package/dist/components/Holidays/RequestLeave.stories.mjs +1 -0
  151. package/dist/components/Holidays/index.d.ts +5 -0
  152. package/dist/components/Holidays/index.js +5 -0
  153. package/dist/components/Holidays/index.mjs +1 -0
  154. package/dist/components/Icons/ScrollDownIcon.mjs +1 -1
  155. package/dist/components/Icons/ScrollDownIcon.stories.mjs +1 -1
  156. package/dist/components/Images/DynamicIcon.mjs +1 -1
  157. package/dist/components/Images/DynamicIcon.stories.mjs +1 -1
  158. package/dist/components/Images/IconIndex.mjs +1 -1
  159. package/dist/components/Images/customIconList.mjs +1 -1
  160. package/dist/components/Images/index.mjs +1 -1
  161. package/dist/components/Layouts/BlogList.js +3 -3
  162. package/dist/components/Layouts/BlogList.mjs +1 -1
  163. package/dist/components/Layouts/BlogList.stories.js +3 -3
  164. package/dist/components/Layouts/BlogList.stories.mjs +1 -1
  165. package/dist/components/Layouts/FeatureGrid.mjs +1 -1
  166. package/dist/components/Layouts/FeatureGrid.stories.mjs +1 -1
  167. package/dist/components/Layouts/NewsGrid.mjs +1 -1
  168. package/dist/components/Layouts/NewsGrid.stories.mjs +1 -1
  169. package/dist/components/Layouts/NewsList.mjs +1 -1
  170. package/dist/components/Layouts/NewsList.stories.mjs +1 -1
  171. package/dist/components/Layouts/SlideShow.js +1 -1
  172. package/dist/components/Layouts/SlideShow.mjs +1 -1
  173. package/dist/components/Layouts/SlideShow.stories.js +1 -1
  174. package/dist/components/Layouts/SlideShow.stories.mjs +1 -1
  175. package/dist/components/Layouts/TextAndImages.mjs +1 -1
  176. package/dist/components/Layouts/TextAndImages.stories.mjs +1 -1
  177. package/dist/components/Layouts/index.js +3 -3
  178. package/dist/components/Layouts/index.mjs +1 -1
  179. package/dist/components/Menus/Categories.mjs +1 -1
  180. package/dist/components/Menus/Categories.stories.mjs +1 -1
  181. package/dist/components/Menus/Filter.mjs +1 -1
  182. package/dist/components/Menus/Filter.stories.mjs +1 -1
  183. package/dist/components/Menus/Pagination.mjs +1 -1
  184. package/dist/components/Menus/Pagination.stories.mjs +1 -1
  185. package/dist/components/Menus/ProjectTeam.mjs +1 -1
  186. package/dist/components/Menus/ProjectTeam.stories.mjs +1 -1
  187. package/dist/components/Menus/RelatedContent.mjs +1 -1
  188. package/dist/components/Menus/RelatedContent.stories.mjs +1 -1
  189. package/dist/components/Menus/SidebarLeft.mjs +1 -1
  190. package/dist/components/Menus/SidebarLeft.stories.mjs +1 -1
  191. package/dist/components/Menus/SidebarRight.mjs +1 -1
  192. package/dist/components/Menus/SidebarRight.stories.mjs +1 -1
  193. package/dist/components/Menus/index.mjs +1 -1
  194. package/dist/components/Other/AnimatedBorder.mjs +1 -1
  195. package/dist/components/Other/AnimatedBorder.stories.mjs +1 -1
  196. package/dist/components/Other/Container.mjs +1 -1
  197. package/dist/components/Other/CustomLink.mjs +1 -1
  198. package/dist/components/Other/ThemeProvider.mjs +1 -1
  199. package/dist/components/Other/index.mjs +1 -1
  200. package/dist/components/Payload/Card/index.js +1 -1
  201. package/dist/components/Payload/Card/index.mjs +1 -1
  202. package/dist/components/Payload/CollectionArchive/index.js +1 -1
  203. package/dist/components/Payload/CollectionArchive/index.mjs +1 -1
  204. package/dist/components/Payload/Link/index.mjs +1 -1
  205. package/dist/components/Payload/Logo/index.mjs +1 -1
  206. package/dist/components/Payload/Media/ImageMedia/index.js +1 -1
  207. package/dist/components/Payload/Media/ImageMedia/index.mjs +1 -1
  208. package/dist/components/Payload/Media/VideoMedia/index.mjs +1 -1
  209. package/dist/components/Payload/Media/index.js +1 -1
  210. package/dist/components/Payload/Media/index.mjs +1 -1
  211. package/dist/components/Payload/PageRange/index.mjs +1 -1
  212. package/dist/components/Payload/Pagination/index.mjs +1 -1
  213. package/dist/components/Payload/RichText/index.js +1 -1
  214. package/dist/components/Payload/RichText/index.mjs +1 -1
  215. package/dist/components/Payload/RichText/nodeFormat.mjs +1 -1
  216. package/dist/components/Payload/RichText/serialize.js +1 -1
  217. package/dist/components/Payload/RichText/serialize.mjs +1 -1
  218. package/dist/components/Payload/RichText.stories.js +1 -1
  219. package/dist/components/Payload/RichText.stories.mjs +1 -1
  220. package/dist/components/Payload/index.js +1 -1
  221. package/dist/components/Payload/index.mjs +1 -1
  222. package/dist/components/index.d.ts +1 -0
  223. package/dist/components/index.js +7 -6
  224. package/dist/components/index.mjs +1 -1
  225. package/dist/components/ui/alert.mjs +1 -1
  226. package/dist/components/ui/alert.stories.mjs +1 -1
  227. package/dist/components/ui/avatar.mjs +1 -1
  228. package/dist/components/ui/avatar.stories.mjs +1 -1
  229. package/dist/components/ui/badge.mjs +1 -1
  230. package/dist/components/ui/badge.stories.mjs +1 -1
  231. package/dist/components/ui/breadcrumb.mjs +1 -1
  232. package/dist/components/ui/breadcrumb.stories.mjs +1 -1
  233. package/dist/components/ui/button.mjs +1 -1
  234. package/dist/components/ui/button.stories.mjs +1 -1
  235. package/dist/components/ui/calendar.d.ts +8 -0
  236. package/dist/components/ui/calendar.js +4 -0
  237. package/dist/components/ui/calendar.mjs +2 -0
  238. package/dist/components/ui/card.mjs +1 -1
  239. package/dist/components/ui/card.stories.mjs +1 -1
  240. package/dist/components/ui/checkbox.mjs +1 -1
  241. package/dist/components/ui/collapsible.mjs +1 -1
  242. package/dist/components/ui/collapsible.stories.mjs +1 -1
  243. package/dist/components/ui/command.mjs +1 -1
  244. package/dist/components/ui/command.stories.mjs +1 -1
  245. package/dist/components/ui/dialog.mjs +1 -1
  246. package/dist/components/ui/dialog.stories.mjs +1 -1
  247. package/dist/components/ui/dropdown-menu.mjs +1 -1
  248. package/dist/components/ui/dropdown-menu.stories.mjs +1 -1
  249. package/dist/components/ui/hover-card.mjs +1 -1
  250. package/dist/components/ui/hover-card.stories.mjs +1 -1
  251. package/dist/components/ui/index.d.ts +1 -0
  252. package/dist/components/ui/index.js +2 -1
  253. package/dist/components/ui/index.mjs +1 -1
  254. package/dist/components/ui/input.mjs +1 -1
  255. package/dist/components/ui/input.stories.mjs +1 -1
  256. package/dist/components/ui/inputs/common/styles/index.mjs +1 -1
  257. package/dist/components/ui/inputs/text-input/index.mjs +1 -1
  258. package/dist/components/ui/inputs/textarea-input/index.mjs +1 -1
  259. package/dist/components/ui/label.mjs +1 -1
  260. package/dist/components/ui/label.stories.mjs +1 -1
  261. package/dist/components/ui/pagination.mjs +1 -1
  262. package/dist/components/ui/popover.mjs +1 -1
  263. package/dist/components/ui/popover.stories.mjs +1 -1
  264. package/dist/components/ui/scroll-area.mjs +1 -1
  265. package/dist/components/ui/scroll-area.stories.mjs +1 -1
  266. package/dist/components/ui/select.mjs +1 -1
  267. package/dist/components/ui/separator.mjs +1 -1
  268. package/dist/components/ui/separator.stories.mjs +1 -1
  269. package/dist/components/ui/sheet.mjs +1 -1
  270. package/dist/components/ui/sheet.stories.mjs +1 -1
  271. package/dist/components/ui/sidebar.mjs +1 -1
  272. package/dist/components/ui/skeleton.mjs +1 -1
  273. package/dist/components/ui/skeleton.stories.mjs +1 -1
  274. package/dist/components/ui/textarea.mjs +1 -1
  275. package/dist/components/ui/toast.mjs +1 -1
  276. package/dist/components/ui/toast.stories.mjs +1 -1
  277. package/dist/components/ui/toaster.mjs +1 -1
  278. package/dist/components/ui/toggle-group.mjs +1 -1
  279. package/dist/components/ui/toggle.mjs +1 -1
  280. package/dist/components/ui/toggle.stories.mjs +1 -1
  281. package/dist/components/ui/tooltip.mjs +1 -1
  282. package/dist/components/ui/tooltip.stories.mjs +1 -1
  283. package/dist/constants.mjs +1 -1
  284. package/dist/globals.css +1 -1
  285. package/dist/{graphql-BTAID7BU.mjs → graphql-VUJWHN7H.mjs} +1 -1
  286. package/dist/hooks/index.mjs +1 -1
  287. package/dist/hooks/use-mobile.mjs +1 -1
  288. package/dist/hooks/use-toast.mjs +1 -1
  289. package/dist/images/cortex-reply-bw.mjs +1 -1
  290. package/dist/images/cortex-reply-dark.mjs +1 -1
  291. package/dist/images/cortex-reply-gradient.mjs +1 -1
  292. package/dist/images/cortex-reply-light.mjs +1 -1
  293. package/dist/images/cortex-reply.mjs +1 -1
  294. package/dist/images/hero/hero-3.mjs +1 -1
  295. package/dist/images/hero/image-hero1.mjs +1 -1
  296. package/dist/images/hero/pattern-1.mjs +1 -1
  297. package/dist/images/hero/pattern-2.mjs +1 -1
  298. package/dist/index.js +7 -6
  299. package/dist/index.mjs +1 -1
  300. package/dist/metafile-cjs.json +1 -1
  301. package/dist/metafile-esm.json +1 -1
  302. package/dist/pages/Blog.js +1 -1
  303. package/dist/pages/Blog.mjs +1 -1
  304. package/dist/pages/Blog.stories.js +1 -1
  305. package/dist/pages/Blog.stories.mjs +1 -1
  306. package/dist/pages/Documentation.mjs +1 -1
  307. package/dist/pages/Documentation.stories.mjs +1 -1
  308. package/dist/pages/IndexPage.mjs +1 -1
  309. package/dist/pages/IndexPage.stories.mjs +1 -1
  310. package/dist/pages/Intranet.mjs +1 -1
  311. package/dist/pages/Intranet.stories.mjs +1 -1
  312. package/dist/pages/LandingPage.mjs +1 -1
  313. package/dist/pages/LandingPage.stories.mjs +1 -1
  314. package/dist/pages/Page.js +1 -1
  315. package/dist/pages/Page.mjs +1 -1
  316. package/dist/pages/Page.stories.js +134 -134
  317. package/dist/pages/Page.stories.mjs +1 -1
  318. package/dist/pages/Publish.js +1 -1
  319. package/dist/pages/Publish.mjs +1 -1
  320. package/dist/pages/Publish.stories.js +1 -1
  321. package/dist/pages/Publish.stories.mjs +1 -1
  322. package/dist/pages/Website.js +1 -1
  323. package/dist/pages/Website.mjs +1 -1
  324. package/dist/pages/Website.stories.js +1 -1
  325. package/dist/pages/Website.stories.mjs +1 -1
  326. package/dist/sections/AboutSection.js +1 -1
  327. package/dist/sections/AboutSection.mjs +1 -1
  328. package/dist/sections/AboutSection.stories.js +1 -1
  329. package/dist/sections/AboutSection.stories.mjs +1 -1
  330. package/dist/sections/BlogDetail.js +1 -1
  331. package/dist/sections/BlogDetail.mjs +1 -1
  332. package/dist/sections/BlogDetail.stories.js +1 -1
  333. package/dist/sections/BlogDetail.stories.mjs +1 -1
  334. package/dist/sections/BlogListSection.mjs +1 -1
  335. package/dist/sections/BlogListSection.stories.mjs +1 -1
  336. package/dist/sections/ContactSection.js +1 -1
  337. package/dist/sections/ContactSection.mjs +1 -1
  338. package/dist/sections/ContactSection.stories.js +1 -1
  339. package/dist/sections/ContactSection.stories.mjs +1 -1
  340. package/dist/sections/MainPageSection.mjs +1 -1
  341. package/dist/sections/PricingSection.js +1 -1
  342. package/dist/sections/PricingSection.mjs +1 -1
  343. package/dist/sections/PricingSection.stories.js +1 -1
  344. package/dist/sections/PricingSection.stories.mjs +1 -1
  345. package/dist/sections/ServiceSection.mjs +1 -1
  346. package/dist/sections/ServiceSection.stories.mjs +1 -1
  347. package/dist/sections/form/index.mjs +1 -1
  348. package/dist/sections/form/server/contact-us-form-submit.mjs +1 -1
  349. package/dist/sections/index.js +1 -1
  350. package/dist/sections/index.mjs +1 -1
  351. package/dist/styles/Colors.mjs +1 -1
  352. package/dist/styles/Colors.stories.mjs +1 -1
  353. package/dist/styles/Typography.mjs +1 -1
  354. package/dist/utils/AOSInit.mjs +1 -1
  355. package/dist/utils/canUseDOM.mjs +1 -1
  356. package/dist/utils/cn.mjs +1 -1
  357. package/dist/utils/formatDateTime.mjs +1 -1
  358. package/dist/utils/getTableOfContents.mjs +1 -1
  359. package/dist/utils/getURL.mjs +1 -1
  360. package/dist/utils/index.mjs +1 -1
  361. package/dist/utils/setStaggeredDelay.mjs +1 -1
  362. package/dist/utils/useClickableCard.mjs +1 -1
  363. package/package.json +4 -1
  364. package/dist/chunk-7WBETZEV.mjs +0 -4
  365. package/dist/chunk-D2WXBUVJ.mjs +0 -1
@@ -0,0 +1 @@
1
+ import{a as o}from"../../chunk-VXZJ3JK5.mjs";import{a}from"../../chunk-L73FONDI.mjs";import"../../chunk-RMI4G7HJ.mjs";import"../../chunk-IK2XCY2B.mjs";import"../../chunk-BXBLKTRB.mjs";import"../../chunk-ZGOBG76E.mjs";import"../../chunk-HWEPDRG6.mjs";import"../../chunk-DWRQHV42.mjs";import"../../chunk-XGQLOPHW.mjs";import"../../chunk-Y5ZFXDW5.mjs";import"../../chunk-SBM5HULF.mjs";import"../../chunk-Q6SEVCRG.mjs";import"../../chunk-GLEWUUGS.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import{d as r}from"../../chunk-S7OK7D5I.mjs";var e=r(o());import{jsx as t}from"react/jsx-runtime";var m={title:"Holidays/HolidayTracker",component:a,parameters:{layout:"fullscreen",nextjs:{appDirectory:!0}},decorators:[s=>t("div",{className:"container mx-auto p-4",children:t(s,{})})]},d=m,n={args:{currentDate:new Date(2025,0,1),holidays:[{id:"1",userId:"1",userName:"John Doe",startDate:"2025-01-05",endDate:"2025-01-10",status:"approved",totalDays:6,leaveType:"Full Day"},{id:"2",userId:"2",userName:"Jane Smith",startDate:"2025-01-15",endDate:"2025-01-15",status:"requested",totalDays:.5,leaveType:"Morning"},{id:"3",userId:"3",userName:"Bob Johnson",startDate:"2025-01-25",endDate:"2025-01-30",status:"approved",totalDays:6,leaveType:"Full Day"},{id:"4",userId:"4",userName:"Alice Brown",startDate:"2025-01-20",endDate:"2025-01-20",status:"approved",totalDays:.5,leaveType:"Afternoon"}],leaveApprovals:[{id:"1",userId:"1",userName:"John Doe",userEmail:"john.doe@example.com",userImage:"https://api.dicebear.com/7.x/avataaars/svg?seed=John",startDate:"2025-01-05",endDate:"2025-01-10",status:"requested",totalDays:6,leaveType:"Full Day"},{id:"2",userId:"2",userName:"Jane Smith",userEmail:"jane.smith@example.com",userImage:"https://api.dicebear.com/7.x/avataaars/svg?seed=Jane",startDate:"2025-01-15",endDate:"2025-01-15",status:"requested",totalDays:.5,leaveType:"Morning"},{id:"3",userId:"3",userName:"Bob Johnson",userEmail:"bob.johnson@example.com",userImage:"https://api.dicebear.com/7.x/avataaars/svg?seed=Bob",startDate:"2025-01-25",endDate:"2025-01-30",status:"requested",totalDays:6,leaveType:"Full Day"},{id:"4",userId:"4",userName:"Alice Brown",userEmail:"alice.brown@example.com",startDate:"2025-01-20",endDate:"2025-01-20",status:"requested",totalDays:.5,leaveType:"Afternoon"}],employees:[{id:"1",name:"John Doe",email:"john.doe@example.com",image:"https://api.dicebear.com/7.x/avataaars/svg?seed=John"},{id:"2",name:"Jane Smith",email:"jane.smith@example.com",image:"https://api.dicebear.com/7.x/avataaars/svg?seed=Jane"},{id:"3",name:"Bob Johnson",email:"bob.johnson@example.com",image:"https://api.dicebear.com/7.x/avataaars/svg?seed=Bob"},{id:"4",name:"Alice Brown",email:"alice.brown@example.com"}],submitLeaveRequest:(0,e.fn)(),setCurrentDate:(0,e.fn)(),userGrade:"Consultant 1"}},l={args:{...n.args,userGrade:"Manager"}};export{n as Default,l as Manger,d as default};
@@ -0,0 +1,11 @@
1
+ interface RequestLeaveProps {
2
+ userId: string;
3
+ userName: string;
4
+ remainingDays: number;
5
+ submitLeaveRequest?: (formData: FormData) => Promise<{
6
+ success: boolean;
7
+ message: string;
8
+ }>;
9
+ }
10
+ export declare function RequestLeave({ userId, userName, remainingDays, submitLeaveRequest }: RequestLeaveProps): import("react/jsx-runtime").JSX.Element;
11
+ export {};
@@ -0,0 +1,5 @@
1
+ "use client";
2
+ "use strict";
3
+ "use client"
4
+
5
+ "use strict";"use client";var Ie=Object.create;var O=Object.defineProperty;var Ee=Object.getOwnPropertyDescriptor;var Be=Object.getOwnPropertyNames;var Ve=Object.getPrototypeOf,De=Object.prototype.hasOwnProperty;var Fe=(e,t)=>{for(var r in t)O(e,r,{get:t[r],enumerable:!0})},fe=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Be(t))!De.call(e,n)&&n!==r&&O(e,n,{get:()=>t[n],enumerable:!(o=Ee(t,n))||o.enumerable});return e};var B=(e,t,r)=>(r=e!=null?Ie(Ve(e)):{},fe(t||!e||!e.__esModule?O(r,"default",{value:e,enumerable:!0}):r,e)),je=e=>fe(O({},"__esModule",{value:!0}),e);var Ct={};Fe(Ct,{RequestLeave:()=>wt});module.exports=je(Ct);var L=require("react");var Ce=require("clsx");var ee="-",We=e=>{let t=Oe(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:a=>{let i=a.split(ee);return i[0]===""&&i.length!==1&&i.shift(),he(i,t)||qe(a)},getConflictingClassGroupIds:(a,i)=>{let p=r[a]||[];return i&&o[a]?[...p,...o[a]]:p}}},he=(e,t)=>{var a;if(e.length===0)return t.classGroupId;let r=e[0],o=t.nextPart.get(r),n=o?he(e.slice(1),o):void 0;if(n)return n;if(t.validators.length===0)return;let s=e.join(ee);return(a=t.validators.find(({validator:i})=>i(s)))==null?void 0:a.classGroupId},ge=/^\[(.+)\]$/,qe=e=>{if(ge.test(e)){let t=ge.exec(e)[1],r=t==null?void 0:t.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},Oe=e=>{let{theme:t,prefix:r}=e,o={nextPart:new Map,validators:[]};return Ue(Object.entries(e.classGroups),r).forEach(([s,a])=>{Q(a,o,s,t)}),o},Q=(e,t,r,o)=>{e.forEach(n=>{if(typeof n=="string"){let s=n===""?t:be(t,n);s.classGroupId=r;return}if(typeof n=="function"){if($e(n)){Q(n(o),t,r,o);return}t.validators.push({validator:n,classGroupId:r});return}Object.entries(n).forEach(([s,a])=>{Q(a,be(t,s),r,o)})})},be=(e,t)=>{let r=e;return t.split(ee).forEach(o=>{r.nextPart.has(o)||r.nextPart.set(o,{nextPart:new Map,validators:[]}),r=r.nextPart.get(o)}),r},$e=e=>e.isThemeGetter,Ue=(e,t)=>t?e.map(([r,o])=>{let n=o.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([a,i])=>[t+a,i])):s);return[r,n]}):e,He=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,o=new Map,n=(s,a)=>{r.set(s,a),t++,t>e&&(t=0,o=r,r=new Map)};return{get(s){let a=r.get(s);if(a!==void 0)return a;if((a=o.get(s))!==void 0)return n(s,a),a},set(s,a){r.has(s)?r.set(s,a):n(s,a)}}},ye="!",Je=e=>{let{separator:t,experimentalParseClassName:r}=e,o=t.length===1,n=t[0],s=t.length,a=i=>{let p=[],b=0,h=0,x;for(let u=0;u<i.length;u++){let f=i[u];if(b===0){if(f===n&&(o||i.slice(u,u+s)===t)){p.push(i.slice(h,u)),h=u+s;continue}if(f==="/"){x=u;continue}}f==="["?b++:f==="]"&&b--}let w=p.length===0?i:i.substring(h),P=w.startsWith(ye),C=P?w.substring(1):w,d=x&&x>h?x-h:void 0;return{modifiers:p,hasImportantModifier:P,baseClassName:C,maybePostfixModifierPosition:d}};return r?i=>r({className:i,parseClassName:a}):a},Ke=e=>{if(e.length<=1)return e;let t=[],r=[];return e.forEach(o=>{o[0]==="["?(t.push(...r.sort(),o),r=[]):r.push(o)}),t.push(...r.sort()),t},Xe=e=>({cache:He(e.cacheSize),parseClassName:Je(e),...We(e)}),Ye=/\s+/,Ze=(e,t)=>{let{parseClassName:r,getClassGroupId:o,getConflictingClassGroupIds:n}=t,s=[],a=e.trim().split(Ye),i="";for(let p=a.length-1;p>=0;p-=1){let b=a[p],{modifiers:h,hasImportantModifier:x,baseClassName:w,maybePostfixModifierPosition:P}=r(b),C=!!P,d=o(C?w.substring(0,P):w);if(!d){if(!C){i=b+(i.length>0?" "+i:i);continue}if(d=o(w),!d){i=b+(i.length>0?" "+i:i);continue}C=!1}let u=Ke(h).join(":"),f=x?u+ye:u,y=f+d;if(s.includes(y))continue;s.push(y);let I=n(d,C);for(let M=0;M<I.length;++M){let j=I[M];s.push(f+j)}i=b+(i.length>0?" "+i:i)}return i};function Qe(){let e=0,t,r,o="";for(;e<arguments.length;)(t=arguments[e++])&&(r=ve(t))&&(o&&(o+=" "),o+=r);return o}var ve=e=>{if(typeof e=="string")return e;let t,r="";for(let o=0;o<e.length;o++)e[o]&&(t=ve(e[o]))&&(r&&(r+=" "),r+=t);return r};function et(e,...t){let r,o,n,s=a;function a(p){let b=t.reduce((h,x)=>x(h),e());return r=Xe(b),o=r.cache.get,n=r.cache.set,s=i,i(p)}function i(p){let b=o(p);if(b)return b;let h=Ze(p,r);return n(p,h),h}return function(){return s(Qe.apply(null,arguments))}}var m=e=>{let t=r=>r[e]||[];return t.isThemeGetter=!0,t},xe=/^\[(?:([a-z-]+):)?(.+)\]$/i,tt=/^\d+\/\d+$/,rt=new Set(["px","full","screen"]),ot=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,nt=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,st=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,at=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,it=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,N=e=>T(e)||rt.has(e)||tt.test(e),z=e=>_(e,"length",gt),T=e=>!!e&&!Number.isNaN(Number(e)),Z=e=>_(e,"number",T),V=e=>!!e&&Number.isInteger(Number(e)),lt=e=>e.endsWith("%")&&T(e.slice(0,-1)),l=e=>xe.test(e),S=e=>ot.test(e),ct=new Set(["length","size","percentage"]),dt=e=>_(e,ct,we),pt=e=>_(e,"position",we),ut=new Set(["image","url"]),mt=e=>_(e,ut,ht),ft=e=>_(e,"",bt),D=()=>!0,_=(e,t,r)=>{let o=xe.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):r(o[2]):!1},gt=e=>nt.test(e)&&!st.test(e),we=()=>!1,bt=e=>at.test(e),ht=e=>it.test(e);var yt=()=>{let e=m("colors"),t=m("spacing"),r=m("blur"),o=m("brightness"),n=m("borderColor"),s=m("borderRadius"),a=m("borderSpacing"),i=m("borderWidth"),p=m("contrast"),b=m("grayscale"),h=m("hueRotate"),x=m("invert"),w=m("gap"),P=m("gradientColorStops"),C=m("gradientColorStopPositions"),d=m("inset"),u=m("margin"),f=m("opacity"),y=m("padding"),I=m("saturate"),M=m("scale"),j=m("sepia"),ie=m("skew"),le=m("space"),ce=m("translate"),J=()=>["auto","contain","none"],K=()=>["auto","hidden","clip","visible","scroll"],X=()=>["auto",l,t],g=()=>[l,t],de=()=>["",N,z],W=()=>["auto",T,l],pe=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],q=()=>["solid","dashed","dotted","double","none"],ue=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Y=()=>["start","end","center","between","around","evenly","stretch"],E=()=>["","0",l],me=()=>["auto","avoid","all","avoid-page","page","left","right","column"],R=()=>[T,l];return{cacheSize:500,separator:":",theme:{colors:[D],spacing:[N,z],blur:["none","",S,l],brightness:R(),borderColor:[e],borderRadius:["none","","full",S,l],borderSpacing:g(),borderWidth:de(),contrast:R(),grayscale:E(),hueRotate:R(),invert:E(),gap:g(),gradientColorStops:[e],gradientColorStopPositions:[lt,z],inset:X(),margin:X(),opacity:R(),padding:g(),saturate:R(),scale:R(),sepia:E(),skew:R(),space:g(),translate:g()},classGroups:{aspect:[{aspect:["auto","square","video",l]}],container:["container"],columns:[{columns:[S]}],"break-after":[{"break-after":me()}],"break-before":[{"break-before":me()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...pe(),l]}],overflow:[{overflow:K()}],"overflow-x":[{"overflow-x":K()}],"overflow-y":[{"overflow-y":K()}],overscroll:[{overscroll:J()}],"overscroll-x":[{"overscroll-x":J()}],"overscroll-y":[{"overscroll-y":J()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[d]}],"inset-x":[{"inset-x":[d]}],"inset-y":[{"inset-y":[d]}],start:[{start:[d]}],end:[{end:[d]}],top:[{top:[d]}],right:[{right:[d]}],bottom:[{bottom:[d]}],left:[{left:[d]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",V,l]}],basis:[{basis:X()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",l]}],grow:[{grow:E()}],shrink:[{shrink:E()}],order:[{order:["first","last","none",V,l]}],"grid-cols":[{"grid-cols":[D]}],"col-start-end":[{col:["auto",{span:["full",V,l]},l]}],"col-start":[{"col-start":W()}],"col-end":[{"col-end":W()}],"grid-rows":[{"grid-rows":[D]}],"row-start-end":[{row:["auto",{span:[V,l]},l]}],"row-start":[{"row-start":W()}],"row-end":[{"row-end":W()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",l]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",l]}],gap:[{gap:[w]}],"gap-x":[{"gap-x":[w]}],"gap-y":[{"gap-y":[w]}],"justify-content":[{justify:["normal",...Y()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Y(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Y(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[u]}],mx:[{mx:[u]}],my:[{my:[u]}],ms:[{ms:[u]}],me:[{me:[u]}],mt:[{mt:[u]}],mr:[{mr:[u]}],mb:[{mb:[u]}],ml:[{ml:[u]}],"space-x":[{"space-x":[le]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[le]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",l,t]}],"min-w":[{"min-w":[l,t,"min","max","fit"]}],"max-w":[{"max-w":[l,t,"none","full","min","max","fit","prose",{screen:[S]},S]}],h:[{h:[l,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[l,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[l,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[l,t,"auto","min","max","fit"]}],"font-size":[{text:["base",S,z]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Z]}],"font-family":[{font:[D]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",l]}],"line-clamp":[{"line-clamp":["none",T,Z]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",N,l]}],"list-image":[{"list-image":["none",l]}],"list-style-type":[{list:["none","disc","decimal",l]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[f]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[f]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...q(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",N,z]}],"underline-offset":[{"underline-offset":["auto",N,l]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:g()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",l]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",l]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[f]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...pe(),pt]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",dt]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},mt]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[C]}],"gradient-via-pos":[{via:[C]}],"gradient-to-pos":[{to:[C]}],"gradient-from":[{from:[P]}],"gradient-via":[{via:[P]}],"gradient-to":[{to:[P]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[f]}],"border-style":[{border:[...q(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[f]}],"divide-style":[{divide:q()}],"border-color":[{border:[n]}],"border-color-x":[{"border-x":[n]}],"border-color-y":[{"border-y":[n]}],"border-color-s":[{"border-s":[n]}],"border-color-e":[{"border-e":[n]}],"border-color-t":[{"border-t":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-b":[{"border-b":[n]}],"border-color-l":[{"border-l":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:["",...q()]}],"outline-offset":[{"outline-offset":[N,l]}],"outline-w":[{outline:[N,z]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:de()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[f]}],"ring-offset-w":[{"ring-offset":[N,z]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",S,ft]}],"shadow-color":[{shadow:[D]}],opacity:[{opacity:[f]}],"mix-blend":[{"mix-blend":[...ue(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":ue()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[o]}],contrast:[{contrast:[p]}],"drop-shadow":[{"drop-shadow":["","none",S,l]}],grayscale:[{grayscale:[b]}],"hue-rotate":[{"hue-rotate":[h]}],invert:[{invert:[x]}],saturate:[{saturate:[I]}],sepia:[{sepia:[j]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[p]}],"backdrop-grayscale":[{"backdrop-grayscale":[b]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[h]}],"backdrop-invert":[{"backdrop-invert":[x]}],"backdrop-opacity":[{"backdrop-opacity":[f]}],"backdrop-saturate":[{"backdrop-saturate":[I]}],"backdrop-sepia":[{"backdrop-sepia":[j]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",l]}],duration:[{duration:R()}],ease:[{ease:["linear","in","out","in-out",l]}],delay:[{delay:R()}],animate:[{animate:["none","spin","ping","pulse","bounce",l]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[M]}],"scale-x":[{"scale-x":[M]}],"scale-y":[{"scale-y":[M]}],rotate:[{rotate:[V,l]}],"translate-x":[{"translate-x":[ce]}],"translate-y":[{"translate-y":[ce]}],"skew-x":[{"skew-x":[ie]}],"skew-y":[{"skew-y":[ie]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",l]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",l]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":g()}],"scroll-mx":[{"scroll-mx":g()}],"scroll-my":[{"scroll-my":g()}],"scroll-ms":[{"scroll-ms":g()}],"scroll-me":[{"scroll-me":g()}],"scroll-mt":[{"scroll-mt":g()}],"scroll-mr":[{"scroll-mr":g()}],"scroll-mb":[{"scroll-mb":g()}],"scroll-ml":[{"scroll-ml":g()}],"scroll-p":[{"scroll-p":g()}],"scroll-px":[{"scroll-px":g()}],"scroll-py":[{"scroll-py":g()}],"scroll-ps":[{"scroll-ps":g()}],"scroll-pe":[{"scroll-pe":g()}],"scroll-pt":[{"scroll-pt":g()}],"scroll-pr":[{"scroll-pr":g()}],"scroll-pb":[{"scroll-pb":g()}],"scroll-pl":[{"scroll-pl":g()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",l]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[N,z,Z]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}};var Pe=et(yt);function v(...e){return Pe((0,Ce.clsx)(e))}var ke=require("@radix-ui/react-slot"),Re=require("class-variance-authority"),Ne=B(require("react")),ze=require("react/jsx-runtime"),$=(0,Re.cva)("inline-flex items-center justify-center whitespace-nowrap rounded text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{defaultVariants:{size:"default",variant:"default"},variants:{size:{clear:"",default:"h-10 px-4 py-2",icon:"h-10 w-10",lg:"h-11 rounded px-8",sm:"h-9 rounded px-3"},variant:{default:"bg-primary text-primary-foreground hover:bg-primary-ON_HOVER",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",ghost:"hover:bg-card hover:text-accent-foreground",link:"text-primary items-start justify-start underline-offset-4 hover:underline",outline:"border border-border bg-background hover:bg-card hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80"}}}),G=Ne.forwardRef(({asChild:e=!1,className:t,size:r,variant:o,...n},s)=>(0,ze.jsx)(e?ke.Slot:"button",{className:v($({className:t,size:r,variant:o})),ref:s,...n}));G.displayName="Button";var Se=B(require("react")),te=B(require("@radix-ui/react-label"));var vt=(0,Re.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),F=Se.forwardRef(({className:e,...t},r)=>(0,ze.jsx)(te.Root,{ref:r,className:v(vt(),e),...t}));F.displayName=te.Root.displayName;var Ae=require("react-day-picker");function U({className:e,classNames:t,showOutsideDays:r=!0,...o}){return(0,ze.jsx)(Ae.DayPicker,{showOutsideDays:r,className:v("p-3",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:v($({variant:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-8 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:v("relative p-0 text-center text-sm focus-within:relative focus-within:z-20 [&:has([aria-selected])]:bg-accent [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected].day-range-end)]:rounded-r-md",o.mode==="range"?"[&:has(>.day-range-end)]:rounded-r-md [&:has(>.day-range-start)]:rounded-l-md first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md":"[&:has([aria-selected])]:rounded-md"),day:v($({variant:"ghost"}),"h-8 w-8 p-0 font-normal aria-selected:opacity-100"),day_range_start:"day-range-start",day_range_end:"day-range-end",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground aria-selected:bg-accent/50 aria-selected:text-muted-foreground",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...t},...o})}U.displayName="Calendar";var _e=B(require("react")),k=B(require("@radix-ui/react-popover"));var oe=k.Root,ne=k.Trigger;var H=_e.forwardRef(({className:e,align:t="center",sideOffset:r=4,...o},n)=>(0,ze.jsx)(k.Portal,{children:(0,ze.jsx)(k.Content,{ref:n,align:t,sideOffset:r,className:v("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...o})}));H.displayName=k.Content.displayName;var se=require("date-fns"),ae=require("lucide-react"),Ge=require("next/navigation"),A=require("sonner"),xt=({options:e,value:t,onChange:r,disabled:o=[]})=>(0,ze.jsx)("div",{className:"flex space-x-2",children:e.map((n,s)=>(0,ze.jsx)(G,{type:"button",variant:t===n?"default":"outline",onClick:()=>r(n),disabled:o[s],className:"flex-1 hover:bg-accent hover:text-accent-foreground",children:n},n))});function wt({userId:e,userName:t,remainingDays:r,submitLeaveRequest:o}){let[n,s]=(0,L.useState)(void 0),[a,i]=(0,L.useState)(void 0),[p,b]=(0,L.useState)("Full Day"),[h,x]=(0,L.useState)(!1),w=(0,Ge.useRouter)();(0,L.useEffect)(()=>{x(n!==a||!n||!a),h&&b("Full Day")},[n,a]);let P=d=>{b(d)};return(0,ze.jsxs)("div",{className:"max-w-2xl",children:[(0,ze.jsx)("h2",{className:"text-lg font-semibold mb-4",children:"Request Leave"}),(0,ze.jsxs)("p",{className:"text-sm text-gray-500 mb-4",children:["Remaining leave days: ",r]}),(0,ze.jsxs)("form",{onSubmit:async d=>{if(d.preventDefault(),!n||!a){A.toast.error("Please select both start and end dates");return}let u=Math.ceil((a.getTime()-n.getTime())/(1e3*60*60*24))+1;if((p==="Morning"||p==="Afternoon")&&(u=.5),u>r){A.toast.error("You do not have enough leave days remaining");return}let f=new FormData;f.append("userId",e),f.append("userName",t),f.append("startDate",n.toISOString()),f.append("endDate",a.toISOString()),f.append("leaveType",p),f.append("duration",u.toString());let y=await(o||Pt)(f);y.success?(A.toast.success(y.message),s(void 0),i(void 0),b("Full Day"),w.refresh()):A.toast.error(`Error: ${y.message}`)},className:"space-y-4",children:[(0,ze.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,ze.jsxs)("div",{className:"flex flex-col space-y-2",children:[(0,ze.jsx)(F,{htmlFor:"startDate",children:"Start Date"}),(0,ze.jsxs)(oe,{children:[(0,ze.jsx)(ne,{asChild:!0,children:(0,ze.jsxs)(G,{variant:"outline",className:v("w-full justify-start text-left font-normal",!n&&"text-muted-foreground"),children:[(0,ze.jsx)(ae.CalendarIcon,{className:"mr-2 h-4 w-4"}),n?(0,se.format)(n,"PPP"):(0,ze.jsx)("span",{children:"Pick a date"})]})}),(0,ze.jsx)(H,{className:"w-auto p-0",align:"start",children:(0,ze.jsx)(U,{mode:"single",selected:n,onSelect:d=>{s(d),d&&(!a||d>a)&&i(d)},initialFocus:!0})})]})]}),(0,ze.jsxs)("div",{className:"flex flex-col space-y-2",children:[(0,ze.jsx)(F,{htmlFor:"endDate",children:"End Date"}),(0,ze.jsxs)(oe,{children:[(0,ze.jsx)(ne,{asChild:!0,children:(0,ze.jsxs)(G,{variant:"outline",className:v("w-full justify-start text-left font-normal",!a&&"text-muted-foreground"),children:[(0,ze.jsx)(ae.CalendarIcon,{className:"mr-2 h-4 w-4"}),a?(0,se.format)(a,"PPP"):(0,ze.jsx)("span",{children:"Pick a date"})]})}),(0,ze.jsx)(H,{className:"w-auto p-0",align:"start",children:(0,ze.jsx)(U,{mode:"single",selected:a,onSelect:i,disabled:d=>n?d<n:!1,initialFocus:!0})})]})]})]}),(0,ze.jsxs)("div",{className:"space-y-2",children:[(0,ze.jsx)(F,{children:"Leave Type"}),(0,ze.jsx)(xt,{options:["Full Day","Morning","Afternoon"],value:p,onChange:P,disabled:[!1,h,h]})]}),(0,ze.jsx)(G,{type:"submit",className:"w-full hover:bg-accent hover:text-accent-foreground",children:"Submit Request"})]}),(0,ze.jsx)(A.Toaster,{richColors:!0,position:"top-right",closeButton:!0,visibleToasts:9})]})}var Pt=async e=>{let t={};return e.forEach((r,o)=>{t[o]=r}),console.log("Leave request submitted:",t),{success:!0,message:`Leave request submitted successfully for ${e.get("duration")}`}};0&&(module.exports={RequestLeave});
@@ -0,0 +1,2 @@
1
+ "use client";
2
+ "use strict";import{a}from"../../chunk-IK2XCY2B.mjs";import"../../chunk-HWEPDRG6.mjs";import"../../chunk-DWRQHV42.mjs";import"../../chunk-XGQLOPHW.mjs";import"../../chunk-GLEWUUGS.mjs";import"../../chunk-NIQ4466A.mjs";import"../../chunk-6K2R3OAD.mjs";import"../../chunk-S7OK7D5I.mjs";export{a as RequestLeave};