@xbg.solutions/create-frontend 1.1.1 → 1.2.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 (493) hide show
  1. package/bin/xbg-frontend.cjs +32 -0
  2. package/package.json +17 -3
  3. package/src/commands/add.cjs +470 -0
  4. package/src/commands/generate.cjs +24 -0
  5. package/src/manifest.json +1578 -0
  6. package/src/registry/advanced/ChartWrapper.svelte +587 -0
  7. package/src/registry/advanced/DataTable.svelte +645 -0
  8. package/src/registry/advanced/FormWizard.svelte +546 -0
  9. package/src/registry/advanced/ImageUpload.svelte +663 -0
  10. package/src/registry/advanced/index.ts +33 -0
  11. package/src/registry/atoms/calendar/Calendar.svelte +181 -0
  12. package/src/registry/atoms/calendar/index.ts +1 -0
  13. package/src/registry/atoms/dialog/Dialog.svelte +179 -0
  14. package/src/registry/atoms/dialog/DialogDescription.svelte +16 -0
  15. package/src/registry/atoms/dialog/DialogFooter.svelte +16 -0
  16. package/src/registry/atoms/dialog/DialogHeader.svelte +16 -0
  17. package/src/registry/atoms/dialog/DialogTitle.svelte +16 -0
  18. package/src/registry/atoms/dialog/index.ts +10 -0
  19. package/src/registry/atoms/icon/BrandIcon.svelte +47 -0
  20. package/src/registry/atoms/icon/DynamicIcon.svelte +49 -0
  21. package/src/registry/atoms/icon/index.ts +2 -0
  22. package/src/registry/atoms/legend/Legend.svelte +32 -0
  23. package/src/registry/atoms/legend/index.ts +1 -0
  24. package/src/registry/atoms/menu/MenuItem.svelte +85 -0
  25. package/src/registry/atoms/menu/index.ts +1 -0
  26. package/src/registry/atoms/message/Message.svelte +62 -0
  27. package/src/registry/atoms/message/index.ts +1 -0
  28. package/src/registry/atoms/nav/NavItem.svelte +67 -0
  29. package/src/registry/atoms/nav/index.ts +1 -0
  30. package/src/registry/atoms/notification-badge/NotificationBadge.svelte +30 -0
  31. package/src/registry/atoms/notification-badge/index.ts +1 -0
  32. package/src/registry/atoms/otp-input/OtpInput.svelte +108 -0
  33. package/src/registry/atoms/otp-input/index.ts +1 -0
  34. package/src/registry/atoms/select/Select.svelte +216 -0
  35. package/src/registry/atoms/select/index.ts +6 -0
  36. package/src/registry/atoms/settings-card/SettingsCard.svelte +48 -0
  37. package/src/registry/atoms/settings-card/index.ts +1 -0
  38. package/src/registry/atoms/sidebar-item/SidebarItem.svelte +90 -0
  39. package/src/registry/atoms/sidebar-item/index.ts +1 -0
  40. package/src/registry/atoms/statistic-card/StatisticCard.svelte +53 -0
  41. package/src/registry/atoms/statistic-card/index.ts +1 -0
  42. package/src/registry/atoms/text-editor/TextEditor.svelte +77 -0
  43. package/src/registry/atoms/text-editor/index.ts +1 -0
  44. package/src/registry/atoms/uploader/Uploader.svelte +102 -0
  45. package/src/registry/atoms/uploader/index.ts +1 -0
  46. package/src/registry/atoms/user-item/UserItem.svelte +39 -0
  47. package/src/registry/atoms/user-item/index.ts +1 -0
  48. package/src/registry/blocks/account-section/AccountSection01.svelte +112 -0
  49. package/src/registry/blocks/account-section/AccountSection02.svelte +190 -0
  50. package/src/registry/blocks/account-section/AccountSection03.svelte +161 -0
  51. package/src/registry/blocks/account-section/AccountSection04.svelte +164 -0
  52. package/src/registry/blocks/account-section/AccountSection05.svelte +76 -0
  53. package/src/registry/blocks/account-section/index.ts +5 -0
  54. package/src/registry/blocks/app-shell/AppShell01.svelte +74 -0
  55. package/src/registry/blocks/app-shell/AppShell02.svelte +87 -0
  56. package/src/registry/blocks/app-shell/AppShell03.svelte +79 -0
  57. package/src/registry/blocks/app-shell/AppShell04.svelte +177 -0
  58. package/src/registry/blocks/app-shell/index.ts +4 -0
  59. package/src/registry/blocks/auth/AuthSplitScreen.svelte +132 -0
  60. package/src/registry/blocks/auth/LoginBlock01.svelte +94 -0
  61. package/src/registry/blocks/auth/LoginBlock02.svelte +103 -0
  62. package/src/registry/blocks/auth/LoginBlock03.svelte +53 -0
  63. package/src/registry/blocks/auth/LoginBlock04.svelte +99 -0
  64. package/src/registry/blocks/auth/LoginBlock05.svelte +101 -0
  65. package/src/registry/blocks/auth/OtpBlock01.svelte +115 -0
  66. package/src/registry/blocks/auth/OtpBlock02.svelte +113 -0
  67. package/src/registry/blocks/auth/OtpBlock03.svelte +143 -0
  68. package/src/registry/blocks/auth/OtpBlock04.svelte +122 -0
  69. package/src/registry/blocks/auth/OtpBlock05.svelte +81 -0
  70. package/src/registry/blocks/auth/SignupBlock01.svelte +103 -0
  71. package/src/registry/blocks/auth/SignupBlock02.svelte +94 -0
  72. package/src/registry/blocks/auth/SignupBlock03.svelte +120 -0
  73. package/src/registry/blocks/auth/SignupBlock04.svelte +112 -0
  74. package/src/registry/blocks/auth/SignupBlock05.svelte +77 -0
  75. package/src/registry/blocks/auth/index.ts +31 -0
  76. package/src/registry/blocks/banner/Banner01.svelte +67 -0
  77. package/src/registry/blocks/banner/Banner02.svelte +61 -0
  78. package/src/registry/blocks/banner/Banner03.svelte +54 -0
  79. package/src/registry/blocks/banner/Banner04.svelte +49 -0
  80. package/src/registry/blocks/banner/Banner05.svelte +47 -0
  81. package/src/registry/blocks/banner/index.ts +5 -0
  82. package/src/registry/blocks/bento-grid/BentoGrid01.svelte +92 -0
  83. package/src/registry/blocks/bento-grid/BentoGrid02.svelte +79 -0
  84. package/src/registry/blocks/bento-grid/BentoGrid03.svelte +79 -0
  85. package/src/registry/blocks/bento-grid/BentoGrid04.svelte +58 -0
  86. package/src/registry/blocks/bento-grid/BentoGrid05.svelte +92 -0
  87. package/src/registry/blocks/bento-grid/BentoGrid06.svelte +42 -0
  88. package/src/registry/blocks/bento-grid/index.ts +14 -0
  89. package/src/registry/blocks/blog-section/BlogSection01.svelte +100 -0
  90. package/src/registry/blocks/blog-section/BlogSection02.svelte +93 -0
  91. package/src/registry/blocks/blog-section/BlogSection03.svelte +92 -0
  92. package/src/registry/blocks/blog-section/BlogSection04.svelte +97 -0
  93. package/src/registry/blocks/blog-section/BlogSection05.svelte +120 -0
  94. package/src/registry/blocks/blog-section/index.ts +15 -0
  95. package/src/registry/blocks/buttons/ButtonBookmark.svelte +37 -0
  96. package/src/registry/blocks/buttons/ButtonLike.svelte +37 -0
  97. package/src/registry/blocks/buttons/ButtonMenu.svelte +37 -0
  98. package/src/registry/blocks/buttons/ButtonSplitDropdown.svelte +46 -0
  99. package/src/registry/blocks/buttons/ButtonStepper.svelte +55 -0
  100. package/src/registry/blocks/buttons/ButtonSteps.svelte +73 -0
  101. package/src/registry/blocks/buttons/ButtonToggleGroup.svelte +35 -0
  102. package/src/registry/blocks/buttons/ButtonsGroup.svelte +63 -0
  103. package/src/registry/blocks/buttons/SocialButtonsHorizontal.svelte +41 -0
  104. package/src/registry/blocks/buttons/SocialButtonsVertical.svelte +53 -0
  105. package/src/registry/blocks/buttons/index.ts +10 -0
  106. package/src/registry/blocks/calendar/CalendarBlock01.svelte +169 -0
  107. package/src/registry/blocks/calendar/CalendarBlock02.svelte +133 -0
  108. package/src/registry/blocks/calendar/CalendarBlock03.svelte +194 -0
  109. package/src/registry/blocks/calendar/CalendarBlock04.svelte +96 -0
  110. package/src/registry/blocks/calendar/CalendarBlock05.svelte +97 -0
  111. package/src/registry/blocks/calendar/CalendarBlock06.svelte +98 -0
  112. package/src/registry/blocks/calendar/CalendarBlock07.svelte +109 -0
  113. package/src/registry/blocks/calendar/CalendarBlock08.svelte +71 -0
  114. package/src/registry/blocks/calendar/CalendarBlock09.svelte +99 -0
  115. package/src/registry/blocks/calendar/CalendarBlock10.svelte +88 -0
  116. package/src/registry/blocks/calendar/CalendarBlock11.svelte +99 -0
  117. package/src/registry/blocks/calendar/CalendarBlock12.svelte +121 -0
  118. package/src/registry/blocks/calendar/CalendarBlock13.svelte +92 -0
  119. package/src/registry/blocks/calendar/CalendarBlock14.svelte +71 -0
  120. package/src/registry/blocks/calendar/CalendarBlock15.svelte +96 -0
  121. package/src/registry/blocks/calendar/CalendarBlock16.svelte +98 -0
  122. package/src/registry/blocks/calendar/CalendarBlock17.svelte +88 -0
  123. package/src/registry/blocks/calendar/CalendarBlock18.svelte +84 -0
  124. package/src/registry/blocks/calendar/CalendarBlock19.svelte +105 -0
  125. package/src/registry/blocks/calendar/CalendarBlock20.svelte +78 -0
  126. package/src/registry/blocks/calendar/CalendarBlock21.svelte +115 -0
  127. package/src/registry/blocks/calendar/CalendarBlock22.svelte +136 -0
  128. package/src/registry/blocks/calendar/CalendarBlock23.svelte +112 -0
  129. package/src/registry/blocks/calendar/CalendarBlock24.svelte +116 -0
  130. package/src/registry/blocks/calendar/CalendarBlock25.svelte +144 -0
  131. package/src/registry/blocks/calendar/CalendarBlock26.svelte +163 -0
  132. package/src/registry/blocks/calendar/CalendarBlock27.svelte +112 -0
  133. package/src/registry/blocks/calendar/CalendarBlock28.svelte +109 -0
  134. package/src/registry/blocks/calendar/CalendarBlock29.svelte +126 -0
  135. package/src/registry/blocks/calendar/CalendarBlock30.svelte +122 -0
  136. package/src/registry/blocks/calendar/CalendarBlock31.svelte +161 -0
  137. package/src/registry/blocks/calendar/CalendarBlock32.svelte +154 -0
  138. package/src/registry/blocks/calendar/index.ts +32 -0
  139. package/src/registry/blocks/card/Card01.svelte +69 -0
  140. package/src/registry/blocks/card/Card02.svelte +50 -0
  141. package/src/registry/blocks/card/Card03.svelte +60 -0
  142. package/src/registry/blocks/card/Card04.svelte +89 -0
  143. package/src/registry/blocks/card/Card05.svelte +51 -0
  144. package/src/registry/blocks/card/Card06.svelte +77 -0
  145. package/src/registry/blocks/card/Card07.svelte +35 -0
  146. package/src/registry/blocks/card/Card08.svelte +36 -0
  147. package/src/registry/blocks/card/index.ts +8 -0
  148. package/src/registry/blocks/cart/Cart01.svelte +183 -0
  149. package/src/registry/blocks/cart/Cart02.svelte +103 -0
  150. package/src/registry/blocks/cart/Cart03.svelte +38 -0
  151. package/src/registry/blocks/cart/Cart04.svelte +174 -0
  152. package/src/registry/blocks/cart/index.ts +4 -0
  153. package/src/registry/blocks/checkout/Checkout01.svelte +237 -0
  154. package/src/registry/blocks/checkout/Checkout02.svelte +205 -0
  155. package/src/registry/blocks/checkout/Checkout03.svelte +189 -0
  156. package/src/registry/blocks/checkout/Checkout04.svelte +109 -0
  157. package/src/registry/blocks/checkout/index.ts +4 -0
  158. package/src/registry/blocks/comparison-section/ComparisonSection01.svelte +116 -0
  159. package/src/registry/blocks/comparison-section/ComparisonSection02.svelte +98 -0
  160. package/src/registry/blocks/comparison-section/ComparisonSection03.svelte +93 -0
  161. package/src/registry/blocks/comparison-section/ComparisonSection04.svelte +98 -0
  162. package/src/registry/blocks/comparison-section/ComparisonSection05.svelte +119 -0
  163. package/src/registry/blocks/comparison-section/ComparisonSection06.svelte +154 -0
  164. package/src/registry/blocks/comparison-section/index.ts +6 -0
  165. package/src/registry/blocks/contact-section/ContactSection01.svelte +64 -0
  166. package/src/registry/blocks/contact-section/ContactSection02.svelte +108 -0
  167. package/src/registry/blocks/contact-section/ContactSection03.svelte +64 -0
  168. package/src/registry/blocks/contact-section/ContactSection04.svelte +30 -0
  169. package/src/registry/blocks/contact-section/ContactSection05.svelte +71 -0
  170. package/src/registry/blocks/contact-section/ContactSection06.svelte +88 -0
  171. package/src/registry/blocks/contact-section/index.ts +6 -0
  172. package/src/registry/blocks/cta/CTA01.svelte +44 -0
  173. package/src/registry/blocks/cta/CTA02.svelte +48 -0
  174. package/src/registry/blocks/cta/CTA03.svelte +53 -0
  175. package/src/registry/blocks/cta/CTA04.svelte +60 -0
  176. package/src/registry/blocks/cta/CTA05.svelte +53 -0
  177. package/src/registry/blocks/cta/CTA06.svelte +44 -0
  178. package/src/registry/blocks/cta/CTA07.svelte +39 -0
  179. package/src/registry/blocks/cta/index.ts +7 -0
  180. package/src/registry/blocks/dashboard/ChartsBlock01.svelte +275 -0
  181. package/src/registry/blocks/dashboard/DashboardBlock01.svelte +207 -0
  182. package/src/registry/blocks/dashboard/DashboardBlock02.svelte +259 -0
  183. package/src/registry/blocks/dashboard/DashboardBlock03.svelte +315 -0
  184. package/src/registry/blocks/dashboard/DashboardBlock04.svelte +220 -0
  185. package/src/registry/blocks/dashboard/DashboardBlock05.svelte +158 -0
  186. package/src/registry/blocks/dashboard/DashboardBlock06.svelte +173 -0
  187. package/src/registry/blocks/dashboard/DashboardBlock07.svelte +103 -0
  188. package/src/registry/blocks/dashboard/index.ts +16 -0
  189. package/src/registry/blocks/description-list/DescriptionList01.svelte +75 -0
  190. package/src/registry/blocks/description-list/DescriptionList02.svelte +50 -0
  191. package/src/registry/blocks/description-list/DescriptionList03.svelte +74 -0
  192. package/src/registry/blocks/description-list/DescriptionList04.svelte +88 -0
  193. package/src/registry/blocks/description-list/index.ts +4 -0
  194. package/src/registry/blocks/empty-lp/EmptyLP01.svelte +46 -0
  195. package/src/registry/blocks/empty-lp/EmptyLP02.svelte +49 -0
  196. package/src/registry/blocks/empty-lp/EmptyLP03.svelte +61 -0
  197. package/src/registry/blocks/empty-lp/EmptyLP04.svelte +37 -0
  198. package/src/registry/blocks/empty-lp/index.ts +4 -0
  199. package/src/registry/blocks/empty-section/EmptySection01.svelte +47 -0
  200. package/src/registry/blocks/empty-section/EmptySection02.svelte +93 -0
  201. package/src/registry/blocks/empty-section/EmptySection03.svelte +101 -0
  202. package/src/registry/blocks/empty-section/EmptySection04.svelte +76 -0
  203. package/src/registry/blocks/empty-section/index.ts +4 -0
  204. package/src/registry/blocks/faq-section/FaqSection01.svelte +114 -0
  205. package/src/registry/blocks/faq-section/FaqSection02.svelte +137 -0
  206. package/src/registry/blocks/faq-section/FaqSection03.svelte +107 -0
  207. package/src/registry/blocks/faq-section/FaqSection04.svelte +74 -0
  208. package/src/registry/blocks/faq-section/FaqSection05.svelte +69 -0
  209. package/src/registry/blocks/faq-section/index.ts +11 -0
  210. package/src/registry/blocks/feature-section/FeatureSection01.svelte +94 -0
  211. package/src/registry/blocks/feature-section/FeatureSection02.svelte +61 -0
  212. package/src/registry/blocks/feature-section/FeatureSection03.svelte +85 -0
  213. package/src/registry/blocks/feature-section/FeatureSection04.svelte +67 -0
  214. package/src/registry/blocks/feature-section/FeatureSection05.svelte +61 -0
  215. package/src/registry/blocks/feature-section/FeatureSection06.svelte +58 -0
  216. package/src/registry/blocks/feature-section/FeatureSection07.svelte +79 -0
  217. package/src/registry/blocks/feature-section/FeatureSection08.svelte +92 -0
  218. package/src/registry/blocks/feature-section/FeatureSection09.svelte +58 -0
  219. package/src/registry/blocks/feature-section/FeatureSection10.svelte +87 -0
  220. package/src/registry/blocks/feature-section/FeatureSection11.svelte +118 -0
  221. package/src/registry/blocks/feature-section/FeatureSection12.svelte +76 -0
  222. package/src/registry/blocks/feature-section/FeatureSection13.svelte +88 -0
  223. package/src/registry/blocks/feature-section/FeatureSection14.svelte +119 -0
  224. package/src/registry/blocks/feature-section/FeatureSection15.svelte +122 -0
  225. package/src/registry/blocks/feature-section/FeatureSection16.svelte +113 -0
  226. package/src/registry/blocks/feature-section/FeatureSection17.svelte +93 -0
  227. package/src/registry/blocks/feature-section/FeatureSection18.svelte +97 -0
  228. package/src/registry/blocks/feature-section/FeatureSection19.svelte +74 -0
  229. package/src/registry/blocks/feature-section/FeatureSection20.svelte +69 -0
  230. package/src/registry/blocks/feature-section/index.ts +20 -0
  231. package/src/registry/blocks/footer/Footer01.svelte +62 -0
  232. package/src/registry/blocks/footer/Footer02.svelte +67 -0
  233. package/src/registry/blocks/footer/Footer03.svelte +87 -0
  234. package/src/registry/blocks/footer/Footer04.svelte +67 -0
  235. package/src/registry/blocks/footer/Footer05.svelte +20 -0
  236. package/src/registry/blocks/footer/Footer06.svelte +107 -0
  237. package/src/registry/blocks/footer/Footer07.svelte +88 -0
  238. package/src/registry/blocks/footer/Footer08.svelte +84 -0
  239. package/src/registry/blocks/footer/Footer09.svelte +65 -0
  240. package/src/registry/blocks/footer/index.ts +19 -0
  241. package/src/registry/blocks/forms/SettingsBlock.svelte +329 -0
  242. package/src/registry/blocks/forms/index.ts +1 -0
  243. package/src/registry/blocks/gallery-section/GallerySection01.svelte +43 -0
  244. package/src/registry/blocks/gallery-section/GallerySection02.svelte +45 -0
  245. package/src/registry/blocks/gallery-section/GallerySection03.svelte +43 -0
  246. package/src/registry/blocks/gallery-section/GallerySection04.svelte +49 -0
  247. package/src/registry/blocks/gallery-section/GallerySection05.svelte +45 -0
  248. package/src/registry/blocks/gallery-section/GallerySection06.svelte +49 -0
  249. package/src/registry/blocks/gallery-section/GallerySection07.svelte +48 -0
  250. package/src/registry/blocks/gallery-section/GallerySection08.svelte +43 -0
  251. package/src/registry/blocks/gallery-section/GallerySection09.svelte +55 -0
  252. package/src/registry/blocks/gallery-section/GallerySection10.svelte +43 -0
  253. package/src/registry/blocks/gallery-section/GallerySection11.svelte +75 -0
  254. package/src/registry/blocks/gallery-section/GallerySection12.svelte +76 -0
  255. package/src/registry/blocks/gallery-section/index.ts +12 -0
  256. package/src/registry/blocks/header-section/HeaderSection01.svelte +53 -0
  257. package/src/registry/blocks/header-section/HeaderSection02.svelte +53 -0
  258. package/src/registry/blocks/header-section/HeaderSection03.svelte +61 -0
  259. package/src/registry/blocks/header-section/HeaderSection04.svelte +63 -0
  260. package/src/registry/blocks/header-section/HeaderSection05.svelte +53 -0
  261. package/src/registry/blocks/header-section/HeaderSection06.svelte +70 -0
  262. package/src/registry/blocks/header-section/HeaderSection07.svelte +97 -0
  263. package/src/registry/blocks/header-section/HeaderSection08.svelte +61 -0
  264. package/src/registry/blocks/header-section/HeaderSection09.svelte +53 -0
  265. package/src/registry/blocks/header-section/HeaderSection10.svelte +63 -0
  266. package/src/registry/blocks/header-section/HeaderSection11.svelte +68 -0
  267. package/src/registry/blocks/header-section/HeaderSection12.svelte +60 -0
  268. package/src/registry/blocks/header-section/HeaderSection13.svelte +92 -0
  269. package/src/registry/blocks/header-section/HeaderSection14.svelte +77 -0
  270. package/src/registry/blocks/header-section/HeaderSection15.svelte +49 -0
  271. package/src/registry/blocks/header-section/HeaderSection16.svelte +74 -0
  272. package/src/registry/blocks/header-section/HeaderSection17.svelte +58 -0
  273. package/src/registry/blocks/header-section/HeaderSection18.svelte +66 -0
  274. package/src/registry/blocks/header-section/HeaderSection19.svelte +47 -0
  275. package/src/registry/blocks/header-section/HeaderSection20.svelte +53 -0
  276. package/src/registry/blocks/header-section/index.ts +20 -0
  277. package/src/registry/blocks/hero-section/HeroSection01.svelte +69 -0
  278. package/src/registry/blocks/hero-section/HeroSection02.svelte +47 -0
  279. package/src/registry/blocks/hero-section/HeroSection03.svelte +56 -0
  280. package/src/registry/blocks/hero-section/HeroSection04.svelte +69 -0
  281. package/src/registry/blocks/hero-section/HeroSection05.svelte +73 -0
  282. package/src/registry/blocks/hero-section/HeroSection06.svelte +78 -0
  283. package/src/registry/blocks/hero-section/HeroSection07.svelte +48 -0
  284. package/src/registry/blocks/hero-section/HeroSection08.svelte +73 -0
  285. package/src/registry/blocks/hero-section/HeroSection09.svelte +51 -0
  286. package/src/registry/blocks/hero-section/HeroSection10.svelte +47 -0
  287. package/src/registry/blocks/hero-section/HeroSection11.svelte +60 -0
  288. package/src/registry/blocks/hero-section/HeroSection12.svelte +74 -0
  289. package/src/registry/blocks/hero-section/HeroSection13.svelte +86 -0
  290. package/src/registry/blocks/hero-section/HeroSection14.svelte +116 -0
  291. package/src/registry/blocks/hero-section/HeroSection15.svelte +75 -0
  292. package/src/registry/blocks/hero-section/HeroSection16.svelte +92 -0
  293. package/src/registry/blocks/hero-section/HeroSection17.svelte +78 -0
  294. package/src/registry/blocks/hero-section/HeroSection18.svelte +82 -0
  295. package/src/registry/blocks/hero-section/HeroSection19.svelte +72 -0
  296. package/src/registry/blocks/hero-section/HeroSection20.svelte +79 -0
  297. package/src/registry/blocks/hero-section/HeroSection21.svelte +75 -0
  298. package/src/registry/blocks/hero-section/HeroSection22.svelte +103 -0
  299. package/src/registry/blocks/hero-section/index.ts +22 -0
  300. package/src/registry/blocks/logo-section/LogoSection01.svelte +54 -0
  301. package/src/registry/blocks/logo-section/LogoSection02.svelte +56 -0
  302. package/src/registry/blocks/logo-section/LogoSection03.svelte +58 -0
  303. package/src/registry/blocks/logo-section/LogoSection04.svelte +58 -0
  304. package/src/registry/blocks/logo-section/LogoSection05.svelte +43 -0
  305. package/src/registry/blocks/logo-section/LogoSection06.svelte +43 -0
  306. package/src/registry/blocks/logo-section/LogoSection07.svelte +56 -0
  307. package/src/registry/blocks/logo-section/index.ts +7 -0
  308. package/src/registry/blocks/lp-navbar/LPNavbar01.svelte +94 -0
  309. package/src/registry/blocks/lp-navbar/LPNavbar02.svelte +96 -0
  310. package/src/registry/blocks/lp-navbar/LPNavbar03.svelte +97 -0
  311. package/src/registry/blocks/lp-navbar/LPNavbar04.svelte +103 -0
  312. package/src/registry/blocks/lp-navbar/LPNavbar05.svelte +173 -0
  313. package/src/registry/blocks/lp-navbar/LPNavbar06.svelte +200 -0
  314. package/src/registry/blocks/lp-navbar/LPNavbar07.svelte +202 -0
  315. package/src/registry/blocks/lp-navbar/index.ts +7 -0
  316. package/src/registry/blocks/mail/MailBlock.svelte +321 -0
  317. package/src/registry/blocks/mail/index.ts +2 -0
  318. package/src/registry/blocks/music/MusicBlock.svelte +239 -0
  319. package/src/registry/blocks/music/index.ts +1 -0
  320. package/src/registry/blocks/navbar/Navbar01.svelte +234 -0
  321. package/src/registry/blocks/navbar/Navbar02.svelte +111 -0
  322. package/src/registry/blocks/navbar/Navbar03.svelte +88 -0
  323. package/src/registry/blocks/navbar/index.ts +3 -0
  324. package/src/registry/blocks/not-found/NotFound01.svelte +29 -0
  325. package/src/registry/blocks/not-found/NotFound02.svelte +28 -0
  326. package/src/registry/blocks/not-found/NotFound03.svelte +25 -0
  327. package/src/registry/blocks/not-found/index.ts +3 -0
  328. package/src/registry/blocks/order-history/OrderHistory01.svelte +208 -0
  329. package/src/registry/blocks/order-history/OrderHistory02.svelte +131 -0
  330. package/src/registry/blocks/order-history/OrderHistory03.svelte +133 -0
  331. package/src/registry/blocks/order-history/index.ts +3 -0
  332. package/src/registry/blocks/page-header/PageHeader01.svelte +39 -0
  333. package/src/registry/blocks/page-header/PageHeader02.svelte +58 -0
  334. package/src/registry/blocks/page-header/PageHeader03.svelte +64 -0
  335. package/src/registry/blocks/page-header/PageHeader04.svelte +49 -0
  336. package/src/registry/blocks/page-header/PageHeader05.svelte +49 -0
  337. package/src/registry/blocks/page-header/PageHeader06.svelte +58 -0
  338. package/src/registry/blocks/page-header/PageHeader07.svelte +64 -0
  339. package/src/registry/blocks/page-header/PageHeader08.svelte +68 -0
  340. package/src/registry/blocks/page-header/index.ts +8 -0
  341. package/src/registry/blocks/playground/PlaygroundBlock01.svelte +162 -0
  342. package/src/registry/blocks/playground/PlaygroundBlock02.svelte +156 -0
  343. package/src/registry/blocks/playground/index.ts +2 -0
  344. package/src/registry/blocks/pricing-section/PricingSection01.svelte +109 -0
  345. package/src/registry/blocks/pricing-section/PricingSection02.svelte +145 -0
  346. package/src/registry/blocks/pricing-section/PricingSection03.svelte +94 -0
  347. package/src/registry/blocks/pricing-section/PricingSection04.svelte +103 -0
  348. package/src/registry/blocks/pricing-section/PricingSection05.svelte +128 -0
  349. package/src/registry/blocks/pricing-section/index.ts +20 -0
  350. package/src/registry/blocks/product-card/ProductCard01.svelte +74 -0
  351. package/src/registry/blocks/product-card/ProductCard02.svelte +108 -0
  352. package/src/registry/blocks/product-card/ProductCard03.svelte +80 -0
  353. package/src/registry/blocks/product-card/ProductCard04.svelte +50 -0
  354. package/src/registry/blocks/product-card/ProductCard05.svelte +107 -0
  355. package/src/registry/blocks/product-card/index.ts +5 -0
  356. package/src/registry/blocks/product-detail/ProductDetail01.svelte +174 -0
  357. package/src/registry/blocks/product-detail/ProductDetail02.svelte +170 -0
  358. package/src/registry/blocks/product-detail/ProductDetail03.svelte +159 -0
  359. package/src/registry/blocks/product-detail/ProductDetail04.svelte +106 -0
  360. package/src/registry/blocks/product-detail/ProductDetail05.svelte +181 -0
  361. package/src/registry/blocks/product-detail/index.ts +5 -0
  362. package/src/registry/blocks/product-listing/ProductListing01.svelte +194 -0
  363. package/src/registry/blocks/product-listing/ProductListing02.svelte +163 -0
  364. package/src/registry/blocks/product-listing/ProductListing03.svelte +173 -0
  365. package/src/registry/blocks/product-listing/ProductListing04.svelte +179 -0
  366. package/src/registry/blocks/product-listing/ProductListing05.svelte +126 -0
  367. package/src/registry/blocks/product-listing/index.ts +5 -0
  368. package/src/registry/blocks/product-reviews/ProductReviews01.svelte +156 -0
  369. package/src/registry/blocks/product-reviews/ProductReviews02.svelte +139 -0
  370. package/src/registry/blocks/product-reviews/ProductReviews03.svelte +137 -0
  371. package/src/registry/blocks/product-reviews/ProductReviews04.svelte +129 -0
  372. package/src/registry/blocks/product-reviews/index.ts +4 -0
  373. package/src/registry/blocks/promo-section/PromoSection01.svelte +72 -0
  374. package/src/registry/blocks/promo-section/PromoSection02.svelte +61 -0
  375. package/src/registry/blocks/promo-section/PromoSection03.svelte +110 -0
  376. package/src/registry/blocks/promo-section/PromoSection04.svelte +103 -0
  377. package/src/registry/blocks/promo-section/index.ts +4 -0
  378. package/src/registry/blocks/rich-text/RichText01.svelte +30 -0
  379. package/src/registry/blocks/rich-text/RichText02.svelte +72 -0
  380. package/src/registry/blocks/rich-text/RichText03.svelte +52 -0
  381. package/src/registry/blocks/rich-text/RichText04.svelte +44 -0
  382. package/src/registry/blocks/rich-text/RichText05.svelte +56 -0
  383. package/src/registry/blocks/rich-text/index.ts +5 -0
  384. package/src/registry/blocks/section/Section01.svelte +38 -0
  385. package/src/registry/blocks/section/Section02.svelte +90 -0
  386. package/src/registry/blocks/section/Section03.svelte +95 -0
  387. package/src/registry/blocks/section/Section04.svelte +117 -0
  388. package/src/registry/blocks/section/index.ts +4 -0
  389. package/src/registry/blocks/section-footer/SectionFooter01.svelte +39 -0
  390. package/src/registry/blocks/section-footer/SectionFooter02.svelte +33 -0
  391. package/src/registry/blocks/section-footer/SectionFooter03.svelte +33 -0
  392. package/src/registry/blocks/section-footer/SectionFooter04.svelte +34 -0
  393. package/src/registry/blocks/section-footer/SectionFooter05.svelte +69 -0
  394. package/src/registry/blocks/section-footer/index.ts +5 -0
  395. package/src/registry/blocks/section-header/SectionHeader01.svelte +39 -0
  396. package/src/registry/blocks/section-header/SectionHeader02.svelte +58 -0
  397. package/src/registry/blocks/section-header/SectionHeader03.svelte +88 -0
  398. package/src/registry/blocks/section-header/SectionHeader04.svelte +45 -0
  399. package/src/registry/blocks/section-header/SectionHeader05.svelte +64 -0
  400. package/src/registry/blocks/section-header/index.ts +5 -0
  401. package/src/registry/blocks/settings/Settings01.svelte +202 -0
  402. package/src/registry/blocks/settings/Settings02.svelte +201 -0
  403. package/src/registry/blocks/settings/Settings03.svelte +156 -0
  404. package/src/registry/blocks/settings/Settings04.svelte +175 -0
  405. package/src/registry/blocks/settings/Settings05.svelte +248 -0
  406. package/src/registry/blocks/settings/Settings06.svelte +120 -0
  407. package/src/registry/blocks/settings/Settings07.svelte +136 -0
  408. package/src/registry/blocks/settings/index.ts +7 -0
  409. package/src/registry/blocks/sidebar/SidebarLayout01.svelte +108 -0
  410. package/src/registry/blocks/sidebar/SidebarLayout02.svelte +75 -0
  411. package/src/registry/blocks/sidebar/SidebarLayout03.svelte +108 -0
  412. package/src/registry/blocks/sidebar/SidebarLayout04.svelte +111 -0
  413. package/src/registry/blocks/sidebar/SidebarLayout05.svelte +103 -0
  414. package/src/registry/blocks/sidebar/SidebarLayout06.svelte +122 -0
  415. package/src/registry/blocks/sidebar/SidebarLayout07.svelte +183 -0
  416. package/src/registry/blocks/sidebar/SidebarLayout08.svelte +162 -0
  417. package/src/registry/blocks/sidebar/SidebarLayout09.svelte +167 -0
  418. package/src/registry/blocks/sidebar/SidebarLayout10.svelte +159 -0
  419. package/src/registry/blocks/sidebar/SidebarLayout11.svelte +135 -0
  420. package/src/registry/blocks/sidebar/SidebarLayout12.svelte +159 -0
  421. package/src/registry/blocks/sidebar/SidebarLayout13.svelte +103 -0
  422. package/src/registry/blocks/sidebar/SidebarLayout14.svelte +87 -0
  423. package/src/registry/blocks/sidebar/SidebarLayout15.svelte +228 -0
  424. package/src/registry/blocks/sidebar/index.ts +15 -0
  425. package/src/registry/blocks/sign-in/SignIn01.svelte +140 -0
  426. package/src/registry/blocks/sign-in/SignIn02.svelte +155 -0
  427. package/src/registry/blocks/sign-in/SignIn03.svelte +214 -0
  428. package/src/registry/blocks/sign-in/SignIn04.svelte +163 -0
  429. package/src/registry/blocks/sign-in/SignIn05.svelte +209 -0
  430. package/src/registry/blocks/sign-in/SignIn06.svelte +233 -0
  431. package/src/registry/blocks/sign-in/SignIn07.svelte +268 -0
  432. package/src/registry/blocks/sign-in/SignIn08.svelte +125 -0
  433. package/src/registry/blocks/sign-in/SignIn09.svelte +93 -0
  434. package/src/registry/blocks/sign-in/SignIn10.svelte +74 -0
  435. package/src/registry/blocks/sign-in/index.ts +10 -0
  436. package/src/registry/blocks/sign-up/SignUp01.svelte +124 -0
  437. package/src/registry/blocks/sign-up/SignUp02.svelte +110 -0
  438. package/src/registry/blocks/sign-up/SignUp03.svelte +182 -0
  439. package/src/registry/blocks/sign-up/SignUp04.svelte +126 -0
  440. package/src/registry/blocks/sign-up/SignUp05.svelte +182 -0
  441. package/src/registry/blocks/sign-up/SignUp06.svelte +221 -0
  442. package/src/registry/blocks/sign-up/SignUp07.svelte +98 -0
  443. package/src/registry/blocks/sign-up/index.ts +7 -0
  444. package/src/registry/blocks/stats-section/StatsSection01.svelte +66 -0
  445. package/src/registry/blocks/stats-section/StatsSection02.svelte +60 -0
  446. package/src/registry/blocks/stats-section/StatsSection03.svelte +66 -0
  447. package/src/registry/blocks/stats-section/StatsSection04.svelte +66 -0
  448. package/src/registry/blocks/stats-section/StatsSection05.svelte +60 -0
  449. package/src/registry/blocks/stats-section/StatsSection06.svelte +48 -0
  450. package/src/registry/blocks/stats-section/StatsSection07.svelte +66 -0
  451. package/src/registry/blocks/stats-section/index.ts +7 -0
  452. package/src/registry/blocks/store-navbar/StoreNavbar01.svelte +101 -0
  453. package/src/registry/blocks/store-navbar/StoreNavbar02.svelte +65 -0
  454. package/src/registry/blocks/store-navbar/StoreNavbar03.svelte +83 -0
  455. package/src/registry/blocks/store-navbar/StoreNavbar04.svelte +110 -0
  456. package/src/registry/blocks/store-navbar/StoreNavbar05.svelte +80 -0
  457. package/src/registry/blocks/store-navbar/index.ts +5 -0
  458. package/src/registry/blocks/table-header/TableHeader01.svelte +96 -0
  459. package/src/registry/blocks/table-header/TableHeader02.svelte +86 -0
  460. package/src/registry/blocks/table-header/TableHeader03.svelte +99 -0
  461. package/src/registry/blocks/table-header/TableHeader04.svelte +107 -0
  462. package/src/registry/blocks/table-header/index.ts +4 -0
  463. package/src/registry/blocks/tasks/TasksBlock.svelte +286 -0
  464. package/src/registry/blocks/tasks/index.ts +1 -0
  465. package/src/registry/blocks/team-section/TeamSection01.svelte +80 -0
  466. package/src/registry/blocks/team-section/TeamSection02.svelte +102 -0
  467. package/src/registry/blocks/team-section/TeamSection03.svelte +76 -0
  468. package/src/registry/blocks/team-section/TeamSection04.svelte +106 -0
  469. package/src/registry/blocks/team-section/index.ts +13 -0
  470. package/src/registry/blocks/testimonials/Testimonial01.svelte +74 -0
  471. package/src/registry/blocks/testimonials/Testimonial02.svelte +74 -0
  472. package/src/registry/blocks/testimonials/Testimonial03.svelte +79 -0
  473. package/src/registry/blocks/testimonials/Testimonial04.svelte +113 -0
  474. package/src/registry/blocks/testimonials/Testimonial05.svelte +74 -0
  475. package/src/registry/blocks/testimonials/Testimonial06.svelte +114 -0
  476. package/src/registry/blocks/testimonials/Testimonial07.svelte +131 -0
  477. package/src/registry/blocks/testimonials/Testimonials01.svelte +60 -0
  478. package/src/registry/blocks/testimonials/Testimonials02.svelte +61 -0
  479. package/src/registry/blocks/testimonials/Testimonials03.svelte +79 -0
  480. package/src/registry/blocks/testimonials/Testimonials04.svelte +74 -0
  481. package/src/registry/blocks/testimonials/Testimonials05.svelte +68 -0
  482. package/src/registry/blocks/testimonials/Testimonials06.svelte +82 -0
  483. package/src/registry/blocks/testimonials/Testimonials07.svelte +98 -0
  484. package/src/registry/blocks/testimonials/index.ts +16 -0
  485. package/src/registry/templates/cn.ts +42 -0
  486. package/src/index.ts +0 -2
  487. package/tsconfig.json +0 -20
  488. /package/src/{generate-component.cjs → commands/generate-component.cjs} +0 -0
  489. /package/src/{generate-route.cjs → commands/generate-route.cjs} +0 -0
  490. /package/src/{generate-service.cjs → commands/generate-service.cjs} +0 -0
  491. /package/src/{manage-auth-users.cjs → commands/manage-auth-users.cjs} +0 -0
  492. /package/src/{setup.cjs → commands/setup.cjs} +0 -0
  493. /package/src/{validate-setup.cjs → commands/validate.cjs} +0 -0
@@ -0,0 +1,163 @@
1
+ <!--
2
+ CalendarBlock26.svelte
3
+ "Web Analytics" card with a bar chart and a date-range picker button trigger that
4
+ opens a dual-month calendar popover.
5
+ -->
6
+ <script lang="ts">
7
+ import { cn } from '$lib/utils/cn';
8
+
9
+ let {
10
+ class: className = '',
11
+ title = 'Web Analytics',
12
+ startDate = null,
13
+ endDate = null,
14
+ chartData = [
15
+ { label: 'Jan', value: 40 },
16
+ { label: 'Feb', value: 65 },
17
+ { label: 'Mar', value: 50 },
18
+ { label: 'Apr', value: 80 },
19
+ { label: 'May', value: 55 },
20
+ { label: 'Jun', value: 90 },
21
+ { label: 'Jul', value: 70 },
22
+ { label: 'Aug', value: 45 },
23
+ { label: 'Sep', value: 75 },
24
+ { label: 'Oct', value: 60 },
25
+ { label: 'Nov', value: 85 },
26
+ { label: 'Dec', value: 95 }
27
+ ]
28
+ }: {
29
+ class?: string;
30
+ title?: string;
31
+ startDate?: Date | null;
32
+ endDate?: Date | null;
33
+ chartData?: Array<{ label: string; value: number }>;
34
+ } = $props();
35
+
36
+ const today = new Date();
37
+ let open = $state(false);
38
+ let viewYear = $state(today.getFullYear());
39
+ let viewMonth = $state(today.getMonth());
40
+
41
+ const DAYS = ['Su','Mo','Tu','We','Th','Fr','Sa'];
42
+ const MONTHS = ['January','February','March','April','May','June','July','August','September','October','November','December'];
43
+
44
+ const maxValue = $derived(Math.max(...chartData.map(d => d.value)));
45
+
46
+ function getDim(y: number, m: number) { return new Date(y, m + 1, 0).getDate(); }
47
+ function getCalDays(y: number, m: number) {
48
+ const dim = getDim(y, m), fd = new Date(y, m, 1).getDay(), prev = getDim(y, m - 1);
49
+ const days: Array<{ day: number; cur: boolean }> = [];
50
+ for (let i = fd - 1; i >= 0; i--) days.push({ day: prev - i, cur: false });
51
+ for (let i = 1; i <= dim; i++) days.push({ day: i, cur: true });
52
+ while (days.length < 42) days.push({ day: days.length - dim - fd + 2, cur: false });
53
+ return days;
54
+ }
55
+
56
+ function inRange(y: number, m: number, d: number) {
57
+ const n = new Date(y, m, d).getTime(), s = startDate?.getTime(), e = endDate?.getTime();
58
+ if (!s || !e) return false;
59
+ const [lo, hi] = s <= e ? [s, e] : [e, s];
60
+ return n >= lo && n <= hi;
61
+ }
62
+ function isEdge(y: number, m: number, d: number) {
63
+ const n = new Date(y, m, d).getTime();
64
+ return n === startDate?.getTime() || n === endDate?.getTime();
65
+ }
66
+
67
+ function handleClick(y: number, m: number, d: number) {
68
+ const clicked = new Date(y, m, d);
69
+ if (!startDate || endDate) { startDate = clicked; endDate = null; }
70
+ else { endDate = clicked; open = false; }
71
+ }
72
+
73
+ function formatShort(d: Date) {
74
+ return d.toLocaleDateString('en-US', { month: 'short', day: 'numeric', year: 'numeric' });
75
+ }
76
+
77
+ function rangeLabel() {
78
+ if (!startDate) return 'Select date range';
79
+ if (!endDate) return formatShort(startDate);
80
+ const [a, b] = startDate <= endDate ? [startDate, endDate] : [endDate, startDate];
81
+ return `${formatShort(a)} – ${formatShort(b)}`;
82
+ }
83
+
84
+ function prev() { if (viewMonth === 0) { viewMonth = 11; viewYear--; } else viewMonth--; }
85
+ function next() { if (viewMonth === 11) { viewMonth = 0; viewYear++; } else viewMonth++; }
86
+
87
+ let m2 = $derived(viewMonth === 11 ? 0 : viewMonth + 1);
88
+ let y2 = $derived(viewMonth === 11 ? viewYear + 1 : viewYear);
89
+ let leftDays = $derived(getCalDays(viewYear, viewMonth));
90
+ let rightDays = $derived(getCalDays(y2, m2));
91
+ </script>
92
+
93
+ <div class={cn('flex flex-col gap-4 rounded-xl border bg-background p-5 shadow-sm', className)}>
94
+ <!-- Card header -->
95
+ <div class="flex items-center justify-between">
96
+ <h2 class="text-base font-semibold">{title}</h2>
97
+ <!-- Date range button -->
98
+ <div class="relative">
99
+ <button
100
+ type="button"
101
+ onclick={() => (open = !open)}
102
+ class="flex items-center gap-1.5 rounded-md border px-3 py-1.5 text-xs font-medium hover:bg-muted"
103
+ >
104
+ <svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="18" x="3" y="4" rx="2"/><line x1="16" x2="16" y1="2" y2="6"/><line x1="8" x2="8" y1="2" y2="6"/><line x1="3" x2="21" y1="10" y2="10"/></svg>
105
+ {rangeLabel()}
106
+ <svg xmlns="http://www.w3.org/2000/svg" width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m6 9 6 6 6-6"/></svg>
107
+ </button>
108
+
109
+ {#if open}
110
+ <div class="absolute right-0 top-full z-20 mt-1 rounded-md border bg-background p-4 shadow-lg">
111
+ <div class="mb-3 flex items-center justify-between">
112
+ <button type="button" onclick={prev} class="flex h-7 w-7 items-center justify-center rounded hover:bg-muted">
113
+ <svg xmlns="http://www.w3.org/2000/svg" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m15 18-6-6 6-6"/></svg>
114
+ </button>
115
+ <span class="text-xs font-medium">{MONTHS[viewMonth]} {viewYear} – {MONTHS[m2]} {y2}</span>
116
+ <button type="button" onclick={next} class="flex h-7 w-7 items-center justify-center rounded hover:bg-muted">
117
+ <svg xmlns="http://www.w3.org/2000/svg" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m9 18 6-6-6-6"/></svg>
118
+ </button>
119
+ </div>
120
+ <div class="flex gap-6">
121
+ {#each [[viewYear,viewMonth,leftDays],[y2,m2,rightDays]] as [y,m,days]}
122
+ <div>
123
+ <h3 class="mb-1 text-center text-xs font-medium text-muted-foreground">{MONTHS[m as number]} {y}</h3>
124
+ <div class="grid grid-cols-7">
125
+ {#each DAYS as d}
126
+ <div class="flex h-7 w-7 items-center justify-center text-[10px] font-medium text-muted-foreground">{d}</div>
127
+ {/each}
128
+ {#each (days as Array<{day:number;cur:boolean}>) as { day, cur }}
129
+ <button
130
+ type="button"
131
+ class={cn(
132
+ 'flex h-7 w-7 items-center justify-center text-xs transition-colors',
133
+ !cur && 'text-muted-foreground/40 pointer-events-none',
134
+ cur && inRange(y as number,m as number,day) && !isEdge(y as number,m as number,day) && 'bg-muted',
135
+ cur && isEdge(y as number,m as number,day) && 'rounded-full bg-primary text-primary-foreground',
136
+ cur && !inRange(y as number,m as number,day) && 'rounded-full hover:bg-muted'
137
+ )}
138
+ onclick={() => cur && handleClick(y as number,m as number,day)}
139
+ disabled={!cur}
140
+ >{day}</button>
141
+ {/each}
142
+ </div>
143
+ </div>
144
+ {/each}
145
+ </div>
146
+ </div>
147
+ {/if}
148
+ </div>
149
+ </div>
150
+
151
+ <!-- Bar chart -->
152
+ <div class="flex items-end gap-1" style="height: 80px">
153
+ {#each chartData as { label, value }}
154
+ <div class="flex flex-1 flex-col items-center gap-1">
155
+ <div
156
+ class="w-full rounded-sm bg-primary/80 transition-all hover:bg-primary"
157
+ style="height: {(value / maxValue) * 64}px"
158
+ ></div>
159
+ <span class="text-[9px] text-muted-foreground">{label}</span>
160
+ </div>
161
+ {/each}
162
+ </div>
163
+ </div>
@@ -0,0 +1,112 @@
1
+ <!--
2
+ CalendarBlock27.svelte
3
+ "Subscription Date" — a date input with a calendar icon button that toggles
4
+ an inline single-month calendar popover.
5
+ -->
6
+ <script lang="ts">
7
+ import { cn } from '$lib/utils/cn';
8
+
9
+ let {
10
+ class: className = '',
11
+ label = 'Subscription Date',
12
+ selectedDate = null,
13
+ placeholder = 'Pick a date'
14
+ }: {
15
+ class?: string;
16
+ label?: string;
17
+ selectedDate?: Date | null;
18
+ placeholder?: string;
19
+ } = $props();
20
+
21
+ const today = new Date();
22
+ let open = $state(false);
23
+ let viewYear = $state(selectedDate?.getFullYear() ?? today.getFullYear());
24
+ let viewMonth = $state(selectedDate?.getMonth() ?? today.getMonth());
25
+
26
+ const DAYS = ['Su','Mo','Tu','We','Th','Fr','Sa'];
27
+ const MONTHS = ['January','February','March','April','May','June','July','August','September','October','November','December'];
28
+
29
+ function getDim(y: number, m: number) { return new Date(y, m + 1, 0).getDate(); }
30
+ function getCalDays(y: number, m: number) {
31
+ const dim = getDim(y, m), fd = new Date(y, m, 1).getDay(), prev = getDim(y, m - 1);
32
+ const days: Array<{ day: number; cur: boolean }> = [];
33
+ for (let i = fd - 1; i >= 0; i--) days.push({ day: prev - i, cur: false });
34
+ for (let i = 1; i <= dim; i++) days.push({ day: i, cur: true });
35
+ while (days.length < 42) days.push({ day: days.length - dim - fd + 2, cur: false });
36
+ return days;
37
+ }
38
+
39
+ function isSelected(d: number) { return selectedDate?.getFullYear() === viewYear && selectedDate?.getMonth() === viewMonth && selectedDate?.getDate() === d; }
40
+ function isToday(d: number) { return today.getFullYear() === viewYear && today.getMonth() === viewMonth && today.getDate() === d; }
41
+
42
+ function formatDate(d: Date) {
43
+ return d.toLocaleDateString('en-US', { month: 'long', day: 'numeric', year: 'numeric' });
44
+ }
45
+
46
+ function selectDay(day: number) {
47
+ selectedDate = new Date(viewYear, viewMonth, day);
48
+ open = false;
49
+ }
50
+
51
+ function prev() { if (viewMonth === 0) { viewMonth = 11; viewYear--; } else viewMonth--; }
52
+ function next() { if (viewMonth === 11) { viewMonth = 0; viewYear++; } else viewMonth++; }
53
+ let calDays = $derived(getCalDays(viewYear, viewMonth));
54
+ </script>
55
+
56
+ <div class={cn('flex flex-col gap-1.5', className)}>
57
+ {#if label}
58
+ <label class="text-sm font-medium">{label}</label>
59
+ {/if}
60
+
61
+ <!-- Input row with calendar icon -->
62
+ <div class="relative flex items-center rounded-md border focus-within:ring-2 focus-within:ring-ring">
63
+ <span class="flex h-9 w-9 items-center justify-center text-muted-foreground">
64
+ <svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="18" x="3" y="4" rx="2" ry="2"/><line x1="16" x2="16" y1="2" y2="6"/><line x1="8" x2="8" y1="2" y2="6"/><line x1="3" x2="21" y1="10" y2="10"/></svg>
65
+ </span>
66
+ <span class={cn('flex-1 text-sm', !selectedDate && 'text-muted-foreground')}>
67
+ {selectedDate ? formatDate(selectedDate) : placeholder}
68
+ </span>
69
+ <button
70
+ type="button"
71
+ onclick={() => (open = !open)}
72
+ class="flex h-9 w-9 items-center justify-center rounded-r-md hover:bg-muted"
73
+ aria-label="Open calendar"
74
+ >
75
+ <svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m6 9 6 6 6-6"/></svg>
76
+ </button>
77
+ </div>
78
+
79
+ <!-- Calendar popover -->
80
+ {#if open}
81
+ <div class="z-10 rounded-md border bg-background p-4 shadow-md">
82
+ <div class="mb-3 flex items-center justify-between">
83
+ <button type="button" onclick={prev} class="flex h-7 w-7 items-center justify-center rounded hover:bg-muted">
84
+ <svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m15 18-6-6 6-6"/></svg>
85
+ </button>
86
+ <span class="text-sm font-medium">{MONTHS[viewMonth]} {viewYear}</span>
87
+ <button type="button" onclick={next} class="flex h-7 w-7 items-center justify-center rounded hover:bg-muted">
88
+ <svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m9 18 6-6-6-6"/></svg>
89
+ </button>
90
+ </div>
91
+ <div class="grid grid-cols-7">
92
+ {#each DAYS as d}
93
+ <div class="flex h-8 w-8 items-center justify-center text-xs font-medium text-muted-foreground">{d}</div>
94
+ {/each}
95
+ {#each calDays as { day, cur }}
96
+ <button
97
+ type="button"
98
+ class={cn(
99
+ 'flex h-8 w-8 items-center justify-center rounded-full text-sm transition-colors',
100
+ !cur && 'text-muted-foreground/40 pointer-events-none',
101
+ cur && 'hover:bg-muted',
102
+ cur && isToday(day) && !isSelected(day) && 'border border-primary text-primary',
103
+ cur && isSelected(day) && 'bg-primary text-primary-foreground hover:bg-primary'
104
+ )}
105
+ onclick={() => cur && selectDay(day)}
106
+ disabled={!cur}
107
+ >{day}</button>
108
+ {/each}
109
+ </div>
110
+ </div>
111
+ {/if}
112
+ </div>
@@ -0,0 +1,109 @@
1
+ <!--
2
+ CalendarBlock28.svelte
3
+ "Schedule Date" — a relative-date input showing e.g. "In 2 Days" with
4
+ a text field and an inline single-month calendar.
5
+ -->
6
+ <script lang="ts">
7
+ import { cn } from '$lib/utils/cn';
8
+
9
+ let {
10
+ class: className = '',
11
+ label = 'Schedule Date',
12
+ selectedDate = null,
13
+ relativeLabel = 'In 2 Days'
14
+ }: {
15
+ class?: string;
16
+ label?: string;
17
+ selectedDate?: Date | null;
18
+ relativeLabel?: string;
19
+ } = $props();
20
+
21
+ const today = new Date();
22
+ let month = $state(selectedDate?.getMonth() ?? today.getMonth());
23
+ let year = $state(selectedDate?.getFullYear() ?? today.getFullYear());
24
+ let inputValue = $state(relativeLabel);
25
+
26
+ const DAYS = ['Su','Mo','Tu','We','Th','Fr','Sa'];
27
+ const MONTHS = ['January','February','March','April','May','June','July','August','September','October','November','December'];
28
+
29
+ function getDim(y: number, m: number) { return new Date(y, m + 1, 0).getDate(); }
30
+ function getCalDays(y: number, m: number) {
31
+ const dim = getDim(y, m), fd = new Date(y, m, 1).getDay(), prev = getDim(y, m - 1);
32
+ const days: Array<{ day: number; cur: boolean }> = [];
33
+ for (let i = fd - 1; i >= 0; i--) days.push({ day: prev - i, cur: false });
34
+ for (let i = 1; i <= dim; i++) days.push({ day: i, cur: true });
35
+ while (days.length < 42) days.push({ day: days.length - dim - fd + 2, cur: false });
36
+ return days;
37
+ }
38
+
39
+ function isSelected(d: number) { return selectedDate?.getFullYear() === year && selectedDate?.getMonth() === month && selectedDate?.getDate() === d; }
40
+ function isToday(d: number) { return today.getFullYear() === year && today.getMonth() === month && today.getDate() === d; }
41
+
42
+ function selectDay(day: number) {
43
+ selectedDate = new Date(year, month, day);
44
+ // Update relative label to reflect actual date
45
+ const diff = Math.round((selectedDate.getTime() - today.setHours(0,0,0,0)) / 86400000);
46
+ if (diff === 0) inputValue = 'Today';
47
+ else if (diff === 1) inputValue = 'Tomorrow';
48
+ else if (diff > 0) inputValue = `In ${diff} Days`;
49
+ else inputValue = `${Math.abs(diff)} Days ago`;
50
+ }
51
+
52
+ function prev() { if (month === 0) { month = 11; year--; } else month--; }
53
+ function next() { if (month === 11) { month = 0; year++; } else month++; }
54
+ let calDays = $derived(getCalDays(year, month));
55
+ </script>
56
+
57
+ <div class={cn('flex flex-col gap-2 rounded-md border p-4', className)}>
58
+ {#if label}
59
+ <label class="text-sm font-medium">{label}</label>
60
+ {/if}
61
+
62
+ <!-- Relative date input -->
63
+ <div class="flex items-center gap-2 rounded-md border px-3 py-2">
64
+ <svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="shrink-0 text-muted-foreground"><circle cx="12" cy="12" r="10"/><polyline points="12 6 12 12 16 14"/></svg>
65
+ <input
66
+ type="text"
67
+ bind:value={inputValue}
68
+ class="flex-1 bg-transparent text-sm outline-none"
69
+ placeholder="e.g. In 2 Days"
70
+ />
71
+ {#if selectedDate}
72
+ <span class="text-xs text-muted-foreground">
73
+ {selectedDate.toLocaleDateString('en-US', { month: 'short', day: 'numeric' })}
74
+ </span>
75
+ {/if}
76
+ </div>
77
+
78
+ <!-- Month navigator -->
79
+ <div class="flex items-center justify-between">
80
+ <button type="button" onclick={prev} class="flex h-7 w-7 items-center justify-center rounded hover:bg-muted">
81
+ <svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m15 18-6-6 6-6"/></svg>
82
+ </button>
83
+ <span class="text-sm font-medium">{MONTHS[month]} {year}</span>
84
+ <button type="button" onclick={next} class="flex h-7 w-7 items-center justify-center rounded hover:bg-muted">
85
+ <svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m9 18 6-6-6-6"/></svg>
86
+ </button>
87
+ </div>
88
+
89
+ <!-- Calendar grid -->
90
+ <div class="grid grid-cols-7">
91
+ {#each DAYS as d}
92
+ <div class="flex h-8 w-8 items-center justify-center text-xs font-medium text-muted-foreground">{d}</div>
93
+ {/each}
94
+ {#each calDays as { day, cur }}
95
+ <button
96
+ type="button"
97
+ class={cn(
98
+ 'flex h-8 w-8 items-center justify-center rounded-full text-sm transition-colors',
99
+ !cur && 'text-muted-foreground/40 pointer-events-none',
100
+ cur && 'hover:bg-muted',
101
+ cur && isToday(day) && !isSelected(day) && 'border border-primary text-primary',
102
+ cur && isSelected(day) && 'bg-primary text-primary-foreground hover:bg-primary'
103
+ )}
104
+ onclick={() => cur && selectDay(day)}
105
+ disabled={!cur}
106
+ >{day}</button>
107
+ {/each}
108
+ </div>
109
+ </div>
@@ -0,0 +1,126 @@
1
+ <!--
2
+ CalendarBlock29.svelte
3
+ "Select your stay" — a dropdown trigger displaying the selected date range,
4
+ with an inline single-month range-picker calendar below.
5
+ -->
6
+ <script lang="ts">
7
+ import { cn } from '$lib/utils/cn';
8
+
9
+ let {
10
+ class: className = '',
11
+ label = 'Select your stay',
12
+ startDate = null,
13
+ endDate = null
14
+ }: {
15
+ class?: string;
16
+ label?: string;
17
+ startDate?: Date | null;
18
+ endDate?: Date | null;
19
+ } = $props();
20
+
21
+ const today = new Date();
22
+ let open = $state(false);
23
+ let viewYear = $state(today.getFullYear());
24
+ let viewMonth = $state(today.getMonth());
25
+
26
+ const DAYS = ['Su','Mo','Tu','We','Th','Fr','Sa'];
27
+ const MONTHS = ['January','February','March','April','May','June','July','August','September','October','November','December'];
28
+
29
+ function getDim(y: number, m: number) { return new Date(y, m + 1, 0).getDate(); }
30
+ function getCalDays(y: number, m: number) {
31
+ const dim = getDim(y, m), fd = new Date(y, m, 1).getDay(), prev = getDim(y, m - 1);
32
+ const days: Array<{ day: number; cur: boolean }> = [];
33
+ for (let i = fd - 1; i >= 0; i--) days.push({ day: prev - i, cur: false });
34
+ for (let i = 1; i <= dim; i++) days.push({ day: i, cur: true });
35
+ while (days.length < 42) days.push({ day: days.length - dim - fd + 2, cur: false });
36
+ return days;
37
+ }
38
+
39
+ function inRange(d: number) {
40
+ const n = new Date(viewYear, viewMonth, d).getTime();
41
+ const s = startDate?.getTime(), e = endDate?.getTime();
42
+ if (!s || !e) return false;
43
+ const [lo, hi] = s <= e ? [s, e] : [e, s];
44
+ return n >= lo && n <= hi;
45
+ }
46
+ function isEdge(d: number) {
47
+ const n = new Date(viewYear, viewMonth, d).getTime();
48
+ return n === startDate?.getTime() || n === endDate?.getTime();
49
+ }
50
+
51
+ function handleClick(day: number) {
52
+ const clicked = new Date(viewYear, viewMonth, day);
53
+ if (!startDate || endDate) { startDate = clicked; endDate = null; }
54
+ else { endDate = clicked; open = false; }
55
+ }
56
+
57
+ function formatShort(d: Date) {
58
+ return d.toLocaleDateString('en-GB', { day: '2-digit', month: '2-digit', year: 'numeric' }).replace(/\//g, '.');
59
+ }
60
+
61
+ function rangeText() {
62
+ if (!startDate) return null;
63
+ if (!endDate) return formatShort(startDate);
64
+ const [a, b] = startDate <= endDate ? [startDate, endDate] : [endDate, startDate];
65
+ return `${formatShort(a)} – ${formatShort(b)}`;
66
+ }
67
+
68
+ function prev() { if (viewMonth === 0) { viewMonth = 11; viewYear--; } else viewMonth--; }
69
+ function next() { if (viewMonth === 11) { viewMonth = 0; viewYear++; } else viewMonth++; }
70
+ let calDays = $derived(getCalDays(viewYear, viewMonth));
71
+ let displayText = $derived(rangeText());
72
+ </script>
73
+
74
+ <div class={cn('flex flex-col gap-1.5', className)}>
75
+ {#if label}
76
+ <label class="text-sm font-medium">{label}</label>
77
+ {/if}
78
+
79
+ <!-- Trigger dropdown -->
80
+ <button
81
+ type="button"
82
+ onclick={() => (open = !open)}
83
+ class="flex w-full items-center justify-between rounded-md border px-3 py-2 text-sm hover:bg-muted"
84
+ >
85
+ <div class="flex items-center gap-2">
86
+ <svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="text-muted-foreground"><rect width="18" height="18" x="3" y="4" rx="2"/><line x1="16" x2="16" y1="2" y2="6"/><line x1="8" x2="8" y1="2" y2="6"/><line x1="3" x2="21" y1="10" y2="10"/></svg>
87
+ <span class={displayText ? '' : 'text-muted-foreground'}>{displayText ?? 'Select dates'}</span>
88
+ </div>
89
+ <svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="text-muted-foreground"><path d="m6 9 6 6 6-6"/></svg>
90
+ </button>
91
+
92
+ <!-- Inline calendar (opens below trigger) -->
93
+ {#if open}
94
+ <div class="rounded-md border bg-background p-4 shadow-sm">
95
+ <div class="mb-3 flex items-center justify-between">
96
+ <button type="button" onclick={prev} class="flex h-7 w-7 items-center justify-center rounded hover:bg-muted">
97
+ <svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m15 18-6-6 6-6"/></svg>
98
+ </button>
99
+ <span class="text-sm font-medium">{MONTHS[viewMonth]} {viewYear}</span>
100
+ <button type="button" onclick={next} class="flex h-7 w-7 items-center justify-center rounded hover:bg-muted">
101
+ <svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m9 18 6-6-6-6"/></svg>
102
+ </button>
103
+ </div>
104
+
105
+ <div class="grid grid-cols-7">
106
+ {#each DAYS as d}
107
+ <div class="flex h-8 w-8 items-center justify-center text-xs font-medium text-muted-foreground">{d}</div>
108
+ {/each}
109
+ {#each calDays as { day, cur }}
110
+ <button
111
+ type="button"
112
+ class={cn(
113
+ 'flex h-8 w-8 items-center justify-center text-sm transition-colors',
114
+ !cur && 'text-muted-foreground/40 pointer-events-none',
115
+ cur && inRange(day) && !isEdge(day) && 'bg-muted',
116
+ cur && isEdge(day) && 'rounded-full bg-primary text-primary-foreground',
117
+ cur && !inRange(day) && 'rounded-full hover:bg-muted'
118
+ )}
119
+ onclick={() => cur && handleClick(day)}
120
+ disabled={!cur}
121
+ >{day}</button>
122
+ {/each}
123
+ </div>
124
+ </div>
125
+ {/if}
126
+ </div>
@@ -0,0 +1,122 @@
1
+ <!--
2
+ CalendarBlock30.svelte
3
+ Single month calendar with an event agenda list below.
4
+ -->
5
+ <script lang="ts">
6
+ import { cn } from '$lib/utils/cn';
7
+ import { Button } from '$lib/components/ui';
8
+
9
+ interface CalEvent {
10
+ date: Date;
11
+ title: string;
12
+ time?: string;
13
+ color?: string;
14
+ }
15
+
16
+ let {
17
+ class: className = '',
18
+ selectedDate = null,
19
+ events = [] as CalEvent[],
20
+ month = new Date().getMonth(),
21
+ year = new Date().getFullYear()
22
+ }: {
23
+ class?: string;
24
+ selectedDate?: Date | null;
25
+ events?: CalEvent[];
26
+ month?: number;
27
+ year?: number;
28
+ } = $props();
29
+
30
+ const DAYS = ['Su','Mo','Tu','We','Th','Fr','Sa'];
31
+ const MONTHS = ['January','February','March','April','May','June','July','August','September','October','November','December'];
32
+
33
+ function getDim(y: number, m: number) { return new Date(y, m + 1, 0).getDate(); }
34
+ function getCalDays(y: number, m: number) {
35
+ const dim = getDim(y, m), fd = new Date(y, m, 1).getDay(), prev = getDim(y, m - 1);
36
+ const days: Array<{ day: number; cur: boolean }> = [];
37
+ for (let i = fd - 1; i >= 0; i--) days.push({ day: prev - i, cur: false });
38
+ for (let i = 1; i <= dim; i++) days.push({ day: i, cur: true });
39
+ while (days.length < 42) days.push({ day: days.length - dim - fd + 2, cur: false });
40
+ return days;
41
+ }
42
+
43
+ function isSelected(d: number) { return selectedDate?.getFullYear() === year && selectedDate?.getMonth() === month && selectedDate?.getDate() === d; }
44
+ function isToday(d: number) { const t = new Date(); return t.getFullYear() === year && t.getMonth() === month && t.getDate() === d; }
45
+ function hasEvent(d: number) { return events.some(e => e.date.getFullYear() === year && e.date.getMonth() === month && e.date.getDate() === d); }
46
+
47
+ function visibleEvents() {
48
+ if (selectedDate) {
49
+ return events.filter(e => e.date.toDateString() === selectedDate!.toDateString());
50
+ }
51
+ return events.filter(e => e.date.getFullYear() === year && e.date.getMonth() === month)
52
+ .sort((a, b) => a.date.getTime() - b.date.getTime());
53
+ }
54
+
55
+ function formatEventDate(d: Date) {
56
+ return d.toLocaleDateString('en-US', { weekday: 'short', month: 'short', day: 'numeric' });
57
+ }
58
+
59
+ function prev() { if (month === 0) { month = 11; year--; } else month--; }
60
+ function next() { if (month === 11) { month = 0; year++; } else month++; }
61
+ let calDays = $derived(getCalDays(year, month));
62
+ let agenda = $derived(visibleEvents());
63
+ </script>
64
+
65
+ <div class={cn('inline-flex flex-col rounded-md border p-4', className)}>
66
+ <div class="mb-4 flex items-center justify-between">
67
+ <Button variant="ghost" size="sm" onclick={prev}>&lt;</Button>
68
+ <h3 class="text-sm font-medium">{MONTHS[month]} {year}</h3>
69
+ <Button variant="ghost" size="sm" onclick={next}>&gt;</Button>
70
+ </div>
71
+
72
+ <div class="grid grid-cols-7">
73
+ {#each DAYS as d}
74
+ <div class="flex h-8 w-8 items-center justify-center text-xs font-medium text-muted-foreground">{d}</div>
75
+ {/each}
76
+ {#each calDays as { day, cur }}
77
+ <button
78
+ type="button"
79
+ class={cn(
80
+ 'relative flex h-8 w-8 items-center justify-center rounded-full text-sm transition-colors',
81
+ !cur && 'text-muted-foreground/40 pointer-events-none',
82
+ cur && 'hover:bg-muted',
83
+ cur && isToday(day) && !isSelected(day) && 'border border-primary text-primary',
84
+ cur && isSelected(day) && 'bg-primary text-primary-foreground hover:bg-primary'
85
+ )}
86
+ onclick={() => cur && (selectedDate = selectedDate?.getDate() === day && selectedDate?.getMonth() === month ? null : new Date(year, month, day))}
87
+ disabled={!cur}
88
+ >
89
+ {day}
90
+ {#if cur && hasEvent(day)}
91
+ <span class={cn('absolute bottom-0.5 left-1/2 h-1 w-1 -translate-x-1/2 rounded-full', isSelected(day) ? 'bg-primary-foreground' : 'bg-primary')}></span>
92
+ {/if}
93
+ </button>
94
+ {/each}
95
+ </div>
96
+
97
+ <!-- Agenda -->
98
+ {#if agenda.length > 0}
99
+ <div class="mt-4 flex flex-col gap-2 border-t pt-4">
100
+ <h4 class="text-xs font-medium text-muted-foreground">
101
+ {selectedDate ? formatEventDate(selectedDate) : `${MONTHS[month]} ${year}`}
102
+ </h4>
103
+ {#each agenda as event}
104
+ <div class="flex items-start gap-3 rounded-md p-2 hover:bg-muted">
105
+ <div class={cn('mt-1 h-2 w-2 shrink-0 rounded-full', event.color ?? 'bg-primary')}></div>
106
+ <div class="flex flex-col">
107
+ <span class="text-sm font-medium">{event.title}</span>
108
+ {#if event.time}
109
+ <span class="text-xs text-muted-foreground">{event.time}</span>
110
+ {/if}
111
+ </div>
112
+ </div>
113
+ {/each}
114
+ </div>
115
+ {:else}
116
+ <div class="mt-4 border-t pt-4">
117
+ <p class="text-center text-xs text-muted-foreground">
118
+ {selectedDate ? 'No events on this day' : 'No events this month'}
119
+ </p>
120
+ </div>
121
+ {/if}
122
+ </div>