@licklist/design 0.78.5-dev.105 → 0.78.5-dev.107

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 (371) hide show
  1. package/.vscode/settings.json +3 -0
  2. package/bitbucket-pipelines.yml +13 -4
  3. package/dist/index.js +1 -1
  4. package/dist/product-set/form/ProductsControl.d.ts +2 -1
  5. package/dist/product-set/form/ProductsControl.d.ts.map +1 -1
  6. package/dist/product-set/form/ProductsControl.js +0 -24
  7. package/dist/v2/components/DataTable/DataTable.d.ts.map +1 -1
  8. package/dist/v2/components/DataTable/DataTable.js +86 -2
  9. package/dist/v2/components/InputCheckbox/InputCheckbox.scss.js +1 -1
  10. package/dist/v2/components/Modal/DeleteModal.d.ts.map +1 -1
  11. package/dist/v2/components/Modal/DeleteModal.js +13 -11
  12. package/dist/v2/components/Toggle/Toggle.d.ts.map +1 -1
  13. package/dist/v2/components/Toggle/Toggle.js +8 -5
  14. package/dist/v2/components/ZoneCard/ZoneCard.scss.js +1 -1
  15. package/dist/v2/components/index.d.ts +1 -1
  16. package/dist/v2/components/index.d.ts.map +1 -1
  17. package/dist/v2/icons/index.d.ts +4 -0
  18. package/dist/v2/icons/index.d.ts.map +1 -1
  19. package/dist/v2/icons/index.js +47 -16
  20. package/dist/v2/index.d.ts +0 -4
  21. package/dist/v2/index.d.ts.map +1 -1
  22. package/dist/v2/pages/Settings/components/SidebarCustomisation.js +0 -3
  23. package/dist/v2/pages/Settings/components/SidebarNavItem.js +0 -3
  24. package/package.json +6 -6
  25. package/rollup.config.js +16 -2
  26. package/src/iframe/payment/payment-status-page/PaymentStatusPage.tsx +1 -1
  27. package/src/product-set/form/ProductsControl.tsx +2 -1
  28. package/src/v2/components/DataTable/DataTable.tsx +23 -1
  29. package/src/v2/components/InputCheckbox/InputCheckbox.scss +6 -6
  30. package/src/v2/components/Modal/DeleteModal.tsx +12 -20
  31. package/src/v2/components/Toggle/Toggle.tsx +6 -5
  32. package/src/v2/components/ZoneCard/ZoneCard.scss +78 -0
  33. package/src/v2/components/index.ts +1 -0
  34. package/src/v2/icons/index.tsx +10 -0
  35. package/src/v2/index.ts +0 -73
  36. package/src/v2/navigation/Navigation/Navigation.stories.tsx +137 -0
  37. package/dist/v2/shadcn/components/ui/accordion.d.ts +0 -8
  38. package/dist/v2/shadcn/components/ui/accordion.d.ts.map +0 -1
  39. package/dist/v2/shadcn/components/ui/alert-dialog.d.ts +0 -21
  40. package/dist/v2/shadcn/components/ui/alert-dialog.d.ts.map +0 -1
  41. package/dist/v2/shadcn/components/ui/alert.d.ts +0 -9
  42. package/dist/v2/shadcn/components/ui/alert.d.ts.map +0 -1
  43. package/dist/v2/shadcn/components/ui/aspect-ratio.d.ts +0 -4
  44. package/dist/v2/shadcn/components/ui/aspect-ratio.d.ts.map +0 -1
  45. package/dist/v2/shadcn/components/ui/avatar.d.ts +0 -7
  46. package/dist/v2/shadcn/components/ui/avatar.d.ts.map +0 -1
  47. package/dist/v2/shadcn/components/ui/badge.d.ts +0 -10
  48. package/dist/v2/shadcn/components/ui/badge.d.ts.map +0 -1
  49. package/dist/v2/shadcn/components/ui/breadcrumb.d.ts +0 -20
  50. package/dist/v2/shadcn/components/ui/breadcrumb.d.ts.map +0 -1
  51. package/dist/v2/shadcn/components/ui/button.d.ts +0 -14
  52. package/dist/v2/shadcn/components/ui/button.d.ts.map +0 -1
  53. package/dist/v2/shadcn/components/ui/calendar.d.ts +0 -9
  54. package/dist/v2/shadcn/components/ui/calendar.d.ts.map +0 -1
  55. package/dist/v2/shadcn/components/ui/card.d.ts +0 -9
  56. package/dist/v2/shadcn/components/ui/card.d.ts.map +0 -1
  57. package/dist/v2/shadcn/components/ui/carousel.d.ts +0 -19
  58. package/dist/v2/shadcn/components/ui/carousel.d.ts.map +0 -1
  59. package/dist/v2/shadcn/components/ui/checkbox.d.ts +0 -6
  60. package/dist/v2/shadcn/components/ui/checkbox.d.ts.map +0 -1
  61. package/dist/v2/shadcn/components/ui/checkbox.js +0 -115
  62. package/dist/v2/shadcn/components/ui/checkbox.scss.js +0 -6
  63. package/dist/v2/shadcn/components/ui/collapsible.d.ts +0 -6
  64. package/dist/v2/shadcn/components/ui/collapsible.d.ts.map +0 -1
  65. package/dist/v2/shadcn/components/ui/command.d.ts +0 -83
  66. package/dist/v2/shadcn/components/ui/command.d.ts.map +0 -1
  67. package/dist/v2/shadcn/components/ui/context-menu.d.ts +0 -28
  68. package/dist/v2/shadcn/components/ui/context-menu.d.ts.map +0 -1
  69. package/dist/v2/shadcn/components/ui/dialog.d.ts +0 -20
  70. package/dist/v2/shadcn/components/ui/dialog.d.ts.map +0 -1
  71. package/dist/v2/shadcn/components/ui/dialog.js +0 -169
  72. package/dist/v2/shadcn/components/ui/drawer.d.ts +0 -23
  73. package/dist/v2/shadcn/components/ui/drawer.d.ts.map +0 -1
  74. package/dist/v2/shadcn/components/ui/dropdown-menu.d.ts +0 -28
  75. package/dist/v2/shadcn/components/ui/dropdown-menu.d.ts.map +0 -1
  76. package/dist/v2/shadcn/components/ui/form.d.ts +0 -24
  77. package/dist/v2/shadcn/components/ui/form.d.ts.map +0 -1
  78. package/dist/v2/shadcn/components/ui/hover-card.d.ts +0 -7
  79. package/dist/v2/shadcn/components/ui/hover-card.d.ts.map +0 -1
  80. package/dist/v2/shadcn/components/ui/input-otp.d.ts +0 -35
  81. package/dist/v2/shadcn/components/ui/input-otp.d.ts.map +0 -1
  82. package/dist/v2/shadcn/components/ui/input.d.ts +0 -6
  83. package/dist/v2/shadcn/components/ui/input.d.ts.map +0 -1
  84. package/dist/v2/shadcn/components/ui/label.d.ts +0 -6
  85. package/dist/v2/shadcn/components/ui/label.d.ts.map +0 -1
  86. package/dist/v2/shadcn/components/ui/menubar.d.ts +0 -34
  87. package/dist/v2/shadcn/components/ui/menubar.d.ts.map +0 -1
  88. package/dist/v2/shadcn/components/ui/navigation-menu.d.ts +0 -13
  89. package/dist/v2/shadcn/components/ui/navigation-menu.d.ts.map +0 -1
  90. package/dist/v2/shadcn/components/ui/pagination.d.ts +0 -29
  91. package/dist/v2/shadcn/components/ui/pagination.d.ts.map +0 -1
  92. package/dist/v2/shadcn/components/ui/popover.d.ts +0 -7
  93. package/dist/v2/shadcn/components/ui/popover.d.ts.map +0 -1
  94. package/dist/v2/shadcn/components/ui/progress.d.ts +0 -5
  95. package/dist/v2/shadcn/components/ui/progress.d.ts.map +0 -1
  96. package/dist/v2/shadcn/components/ui/radio-card.d.ts +0 -12
  97. package/dist/v2/shadcn/components/ui/radio-card.d.ts.map +0 -1
  98. package/dist/v2/shadcn/components/ui/radio-group.d.ts +0 -6
  99. package/dist/v2/shadcn/components/ui/radio-group.d.ts.map +0 -1
  100. package/dist/v2/shadcn/components/ui/scroll-area.d.ts +0 -6
  101. package/dist/v2/shadcn/components/ui/scroll-area.d.ts.map +0 -1
  102. package/dist/v2/shadcn/components/ui/select.d.ts +0 -14
  103. package/dist/v2/shadcn/components/ui/select.d.ts.map +0 -1
  104. package/dist/v2/shadcn/components/ui/separator.d.ts +0 -5
  105. package/dist/v2/shadcn/components/ui/separator.d.ts.map +0 -1
  106. package/dist/v2/shadcn/components/ui/sheet.d.ts +0 -26
  107. package/dist/v2/shadcn/components/ui/sheet.d.ts.map +0 -1
  108. package/dist/v2/shadcn/components/ui/sidebar.d.ts +0 -67
  109. package/dist/v2/shadcn/components/ui/sidebar.d.ts.map +0 -1
  110. package/dist/v2/shadcn/components/ui/skeleton.d.ts +0 -3
  111. package/dist/v2/shadcn/components/ui/skeleton.d.ts.map +0 -1
  112. package/dist/v2/shadcn/components/ui/slider.d.ts +0 -5
  113. package/dist/v2/shadcn/components/ui/slider.d.ts.map +0 -1
  114. package/dist/v2/shadcn/components/ui/switch.d.ts +0 -6
  115. package/dist/v2/shadcn/components/ui/switch.d.ts.map +0 -1
  116. package/dist/v2/shadcn/components/ui/switch.js +0 -115
  117. package/dist/v2/shadcn/components/ui/switch.scss.js +0 -6
  118. package/dist/v2/shadcn/components/ui/table-pagination.d.ts +0 -11
  119. package/dist/v2/shadcn/components/ui/table-pagination.d.ts.map +0 -1
  120. package/dist/v2/shadcn/components/ui/table.d.ts +0 -11
  121. package/dist/v2/shadcn/components/ui/table.d.ts.map +0 -1
  122. package/dist/v2/shadcn/components/ui/tabs.d.ts +0 -8
  123. package/dist/v2/shadcn/components/ui/tabs.d.ts.map +0 -1
  124. package/dist/v2/shadcn/components/ui/textarea.d.ts +0 -6
  125. package/dist/v2/shadcn/components/ui/textarea.d.ts.map +0 -1
  126. package/dist/v2/shadcn/components/ui/toast.d.ts +0 -16
  127. package/dist/v2/shadcn/components/ui/toast.d.ts.map +0 -1
  128. package/dist/v2/shadcn/components/ui/toaster.d.ts +0 -2
  129. package/dist/v2/shadcn/components/ui/toaster.d.ts.map +0 -1
  130. package/dist/v2/shadcn/components/ui/toggle-group.d.ts +0 -13
  131. package/dist/v2/shadcn/components/ui/toggle-group.d.ts.map +0 -1
  132. package/dist/v2/shadcn/components/ui/toggle.d.ts +0 -13
  133. package/dist/v2/shadcn/components/ui/toggle.d.ts.map +0 -1
  134. package/dist/v2/shadcn/components/ui/tooltip.d.ts +0 -8
  135. package/dist/v2/shadcn/components/ui/tooltip.d.ts.map +0 -1
  136. package/dist/v2/shadcn/components/ui/use-toast.d.ts +0 -3
  137. package/dist/v2/shadcn/components/ui/use-toast.d.ts.map +0 -1
  138. package/dist/v2/shadcn/hooks/use-mobile.d.ts +0 -2
  139. package/dist/v2/shadcn/hooks/use-mobile.d.ts.map +0 -1
  140. package/dist/v2/shadcn/hooks/use-toast.d.ts +0 -45
  141. package/dist/v2/shadcn/hooks/use-toast.d.ts.map +0 -1
  142. package/dist/v2/shadcn/index.d.ts +0 -20
  143. package/dist/v2/shadcn/index.d.ts.map +0 -1
  144. package/dist/v2/shadcn/lib/utils.d.ts +0 -3
  145. package/dist/v2/shadcn/lib/utils.d.ts.map +0 -1
  146. package/dist/v2/shadcn/lib/utils.js +0 -11
  147. package/dist/v2/shadcn/styles/globals.css +0 -112
  148. package/src/v2/shadcn/_reference/AccountManagerCard.tsx +0 -45
  149. package/src/v2/shadcn/_reference/AffiliatesTable.tsx +0 -178
  150. package/src/v2/shadcn/_reference/AuditArchive.tsx +0 -165
  151. package/src/v2/shadcn/_reference/AuditContent.tsx +0 -270
  152. package/src/v2/shadcn/_reference/AutomationsGeneralSettings.tsx +0 -251
  153. package/src/v2/shadcn/_reference/AvatarUpload.tsx +0 -150
  154. package/src/v2/shadcn/_reference/BookingsSummaryCard.tsx +0 -268
  155. package/src/v2/shadcn/_reference/CodeCleanUpAudit.tsx +0 -274
  156. package/src/v2/shadcn/_reference/CompaniesTable.tsx +0 -387
  157. package/src/v2/shadcn/_reference/ComponentAudit.tsx +0 -239
  158. package/src/v2/shadcn/_reference/ConfigureSettingsCard.tsx +0 -95
  159. package/src/v2/shadcn/_reference/CustomerCard.tsx +0 -155
  160. package/src/v2/shadcn/_reference/DashboardCards.tsx +0 -50
  161. package/src/v2/shadcn/_reference/DashboardFooter.tsx +0 -18
  162. package/src/v2/shadcn/_reference/DiarySettings.tsx +0 -187
  163. package/src/v2/shadcn/_reference/DiaryView.tsx +0 -998
  164. package/src/v2/shadcn/_reference/EmptyState.tsx +0 -76
  165. package/src/v2/shadcn/_reference/EntityInfoCard.tsx +0 -48
  166. package/src/v2/shadcn/_reference/ExistingUserAssignments.tsx +0 -131
  167. package/src/v2/shadcn/_reference/FeatureToggle.tsx +0 -72
  168. package/src/v2/shadcn/_reference/FlowCard.tsx +0 -170
  169. package/src/v2/shadcn/_reference/FlowsContent.tsx +0 -688
  170. package/src/v2/shadcn/_reference/FlowsGeneralSettings.tsx +0 -27
  171. package/src/v2/shadcn/_reference/GeneralSettings.tsx +0 -33
  172. package/src/v2/shadcn/_reference/InventoryGeneralSettings.tsx +0 -82
  173. package/src/v2/shadcn/_reference/LanguageSelector.tsx +0 -97
  174. package/src/v2/shadcn/_reference/LoadingScreen.tsx +0 -25
  175. package/src/v2/shadcn/_reference/LoadingSpinner.tsx +0 -41
  176. package/src/v2/shadcn/_reference/ManagedClientsList.tsx +0 -121
  177. package/src/v2/shadcn/_reference/NPSScore.tsx +0 -379
  178. package/src/v2/shadcn/_reference/NPSSummaryCard.tsx +0 -181
  179. package/src/v2/shadcn/_reference/NotificationBanner.tsx +0 -129
  180. package/src/v2/shadcn/_reference/NotificationPanel.tsx +0 -208
  181. package/src/v2/shadcn/_reference/OnlineUsersCard.tsx +0 -73
  182. package/src/v2/shadcn/_reference/ProtectedRoute.tsx +0 -39
  183. package/src/v2/shadcn/_reference/ProvidersTable.tsx +0 -353
  184. package/src/v2/shadcn/_reference/QuickAddPanel.tsx +0 -1057
  185. package/src/v2/shadcn/_reference/QuickFilters.tsx +0 -112
  186. package/src/v2/shadcn/_reference/ScheduleView.tsx +0 -410
  187. package/src/v2/shadcn/_reference/ScrollToTop.tsx +0 -14
  188. package/src/v2/shadcn/_reference/SecondaryNav.tsx +0 -50
  189. package/src/v2/shadcn/_reference/SecuritySettings.tsx +0 -258
  190. package/src/v2/shadcn/_reference/SessionDetailView.tsx +0 -294
  191. package/src/v2/shadcn/_reference/Sidebar.tsx +0 -14
  192. package/src/v2/shadcn/_reference/SidebarAwareLayout.tsx +0 -30
  193. package/src/v2/shadcn/_reference/SidebarLabelCustomization.tsx +0 -285
  194. package/src/v2/shadcn/_reference/SimulationBanner.tsx +0 -57
  195. package/src/v2/shadcn/_reference/SortControls.tsx +0 -65
  196. package/src/v2/shadcn/_reference/StatusBadge.tsx +0 -49
  197. package/src/v2/shadcn/_reference/StyleGuideContent.tsx +0 -331
  198. package/src/v2/shadcn/_reference/TableActionMenu.tsx +0 -126
  199. package/src/v2/shadcn/_reference/ThemeProvider.tsx +0 -119
  200. package/src/v2/shadcn/_reference/ThemeSettings.tsx +0 -73
  201. package/src/v2/shadcn/_reference/TopNavigation.tsx +0 -332
  202. package/src/v2/shadcn/_reference/UserActivityHistory.tsx +0 -209
  203. package/src/v2/shadcn/_reference/UserLanguageSettings.tsx +0 -94
  204. package/src/v2/shadcn/_reference/UserPanel.tsx +0 -472
  205. package/src/v2/shadcn/_reference/UsersTable.tsx +0 -1023
  206. package/src/v2/shadcn/_reference/WaiverForm.tsx +0 -301
  207. package/src/v2/shadcn/_reference/WaiversGeneralSettings.tsx +0 -46
  208. package/src/v2/shadcn/_reference/WaiversTable.tsx +0 -290
  209. package/src/v2/shadcn/_reference/WaiversTemplatesSettings.tsx +0 -416
  210. package/src/v2/shadcn/_reference/ai/AIChatPanel.tsx +0 -313
  211. package/src/v2/shadcn/_reference/ai/AIChatSearchBar.tsx +0 -36
  212. package/src/v2/shadcn/_reference/ai/ChatInteractiveBlock.tsx +0 -298
  213. package/src/v2/shadcn/_reference/ai/ChatMessageContent.tsx +0 -40
  214. package/src/v2/shadcn/_reference/ai/parseInteractiveBlocks.ts +0 -142
  215. package/src/v2/shadcn/_reference/auth/AuthLayout.tsx +0 -55
  216. package/src/v2/shadcn/_reference/auth/CreatePasswordForm.tsx +0 -285
  217. package/src/v2/shadcn/_reference/auth/CreatePasswordPanel.tsx +0 -20
  218. package/src/v2/shadcn/_reference/auth/LoginFooter.tsx +0 -14
  219. package/src/v2/shadcn/_reference/auth/LoginForm.tsx +0 -205
  220. package/src/v2/shadcn/_reference/auth/LoginPanel.tsx +0 -41
  221. package/src/v2/shadcn/_reference/auth/ResetPasswordForm.tsx +0 -102
  222. package/src/v2/shadcn/_reference/auth/ResetPasswordPanel.tsx +0 -20
  223. package/src/v2/shadcn/_reference/auth/VerifyEmailForm.tsx +0 -95
  224. package/src/v2/shadcn/_reference/auth/VerifyEmailPanel.tsx +0 -20
  225. package/src/v2/shadcn/_reference/email/EmailAttachment.tsx +0 -119
  226. package/src/v2/shadcn/_reference/email/EmailAutomation.tsx +0 -92
  227. package/src/v2/shadcn/_reference/email/EmailPlaceholders.tsx +0 -64
  228. package/src/v2/shadcn/_reference/email/UnlayerEmailEditor.tsx +0 -41
  229. package/src/v2/shadcn/_reference/email/emailTemplateData.ts +0 -53
  230. package/src/v2/shadcn/_reference/emptyStateIcons.tsx +0 -103
  231. package/src/v2/shadcn/_reference/games/MazeGame.tsx +0 -394
  232. package/src/v2/shadcn/_reference/games/RunnerGame.tsx +0 -497
  233. package/src/v2/shadcn/_reference/logos/BookedLogoFull.tsx +0 -36
  234. package/src/v2/shadcn/_reference/logos/BookedLogoMark.tsx +0 -31
  235. package/src/v2/shadcn/_reference/logos/BookedLogoNew.tsx +0 -36
  236. package/src/v2/shadcn/_reference/pricing/DynamicPricingRulesEditor.tsx +0 -401
  237. package/src/v2/shadcn/_reference/pricing/DynamicPricingTierCard.tsx +0 -77
  238. package/src/v2/shadcn/_reference/pricing/DynamicPricingTiersList.tsx +0 -218
  239. package/src/v2/shadcn/_reference/pricing/PricingCalendar.tsx +0 -810
  240. package/src/v2/shadcn/_reference/pricing/PricingPeriodCard.tsx +0 -152
  241. package/src/v2/shadcn/_reference/pricing/PricingPeriodForm.tsx +0 -377
  242. package/src/v2/shadcn/_reference/pricing/PricingPeriodsList.tsx +0 -213
  243. package/src/v2/shadcn/_reference/pricing/getRuleSummary.ts +0 -39
  244. package/src/v2/shadcn/_reference/products/AvailabilityRulesSection.tsx +0 -184
  245. package/src/v2/shadcn/_reference/products/AvailabilitySection.tsx +0 -677
  246. package/src/v2/shadcn/_reference/products/BookingTypeConfigOptions.tsx +0 -40
  247. package/src/v2/shadcn/_reference/products/CapacityPeriodsSection.tsx +0 -238
  248. package/src/v2/shadcn/_reference/products/DynamicPricingTiersSection.tsx +0 -131
  249. package/src/v2/shadcn/_reference/products/GiftCardOrdersTab.tsx +0 -192
  250. package/src/v2/shadcn/_reference/products/GiftCardSettings.tsx +0 -342
  251. package/src/v2/shadcn/_reference/products/PackageProductsSection.tsx +0 -322
  252. package/src/v2/shadcn/_reference/products/PricingSection.tsx +0 -173
  253. package/src/v2/shadcn/_reference/products/ProductTypeFields.tsx +0 -353
  254. package/src/v2/shadcn/_reference/products/ProductTypeIcon.tsx +0 -95
  255. package/src/v2/shadcn/_reference/products/VariablePricingSection.tsx +0 -140
  256. package/src/v2/shadcn/_reference/products/productTypeConfig.ts +0 -182
  257. package/src/v2/shadcn/_reference/shared/BackButton.tsx +0 -50
  258. package/src/v2/shadcn/_reference/shared/CancelConfirmationDialog.tsx +0 -18
  259. package/src/v2/shadcn/_reference/shared/ConfirmationDialog.tsx +0 -136
  260. package/src/v2/shadcn/_reference/shared/DeleteConfirmationDialog.tsx +0 -18
  261. package/src/v2/shadcn/_reference/shared/DeleteEntityPage.tsx +0 -221
  262. package/src/v2/shadcn/_reference/shared/SidebarIcons.tsx +0 -108
  263. package/src/v2/shadcn/_reference/shared/UnifiedSidebar.tsx +0 -722
  264. package/src/v2/shadcn/_reference/tables/BulkActionsBar.tsx +0 -68
  265. package/src/v2/shadcn/_reference/tables/DataTable.tsx +0 -221
  266. package/src/v2/shadcn/_reference/tables/TableControls.tsx +0 -94
  267. package/src/v2/shadcn/_reference/tables/index.ts +0 -3
  268. package/src/v2/shadcn/_reference/tables/types.ts +0 -79
  269. package/src/v2/shadcn/_reference/zones/LegacyZoneSettings.tsx +0 -299
  270. package/src/v2/shadcn/components/ui/accordion.stories.tsx +0 -63
  271. package/src/v2/shadcn/components/ui/accordion.tsx +0 -52
  272. package/src/v2/shadcn/components/ui/alert-dialog.stories.tsx +0 -44
  273. package/src/v2/shadcn/components/ui/alert-dialog.tsx +0 -104
  274. package/src/v2/shadcn/components/ui/alert.stories.tsx +0 -44
  275. package/src/v2/shadcn/components/ui/alert.tsx +0 -43
  276. package/src/v2/shadcn/components/ui/aspect-ratio.stories.tsx +0 -46
  277. package/src/v2/shadcn/components/ui/aspect-ratio.tsx +0 -5
  278. package/src/v2/shadcn/components/ui/avatar.stories.tsx +0 -39
  279. package/src/v2/shadcn/components/ui/avatar.tsx +0 -38
  280. package/src/v2/shadcn/components/ui/badge.stories.tsx +0 -17
  281. package/src/v2/shadcn/components/ui/badge.tsx +0 -30
  282. package/src/v2/shadcn/components/ui/breadcrumb.stories.tsx +0 -91
  283. package/src/v2/shadcn/components/ui/breadcrumb.tsx +0 -90
  284. package/src/v2/shadcn/components/ui/button.stories.tsx +0 -20
  285. package/src/v2/shadcn/components/ui/button.tsx +0 -60
  286. package/src/v2/shadcn/components/ui/calendar.stories.tsx +0 -61
  287. package/src/v2/shadcn/components/ui/calendar.tsx +0 -54
  288. package/src/v2/shadcn/components/ui/card.stories.tsx +0 -37
  289. package/src/v2/shadcn/components/ui/card.tsx +0 -43
  290. package/src/v2/shadcn/components/ui/carousel.stories.tsx +0 -92
  291. package/src/v2/shadcn/components/ui/carousel.tsx +0 -224
  292. package/src/v2/shadcn/components/ui/checkbox.scss +0 -38
  293. package/src/v2/shadcn/components/ui/checkbox.stories.tsx +0 -23
  294. package/src/v2/shadcn/components/ui/checkbox.tsx +0 -24
  295. package/src/v2/shadcn/components/ui/collapsible.stories.tsx +0 -59
  296. package/src/v2/shadcn/components/ui/collapsible.tsx +0 -9
  297. package/src/v2/shadcn/components/ui/command.stories.tsx +0 -70
  298. package/src/v2/shadcn/components/ui/command.tsx +0 -132
  299. package/src/v2/shadcn/components/ui/context-menu.stories.tsx +0 -72
  300. package/src/v2/shadcn/components/ui/context-menu.tsx +0 -178
  301. package/src/v2/shadcn/components/ui/dialog.stories.tsx +0 -67
  302. package/src/v2/shadcn/components/ui/dialog.tsx +0 -95
  303. package/src/v2/shadcn/components/ui/drawer.stories.tsx +0 -50
  304. package/src/v2/shadcn/components/ui/drawer.tsx +0 -87
  305. package/src/v2/shadcn/components/ui/dropdown-menu.stories.tsx +0 -73
  306. package/src/v2/shadcn/components/ui/dropdown-menu.tsx +0 -179
  307. package/src/v2/shadcn/components/ui/form.stories.tsx +0 -105
  308. package/src/v2/shadcn/components/ui/form.tsx +0 -129
  309. package/src/v2/shadcn/components/ui/hover-card.stories.tsx +0 -35
  310. package/src/v2/shadcn/components/ui/hover-card.tsx +0 -27
  311. package/src/v2/shadcn/components/ui/input-otp.stories.tsx +0 -72
  312. package/src/v2/shadcn/components/ui/input-otp.tsx +0 -61
  313. package/src/v2/shadcn/components/ui/input.stories.tsx +0 -16
  314. package/src/v2/shadcn/components/ui/input.tsx +0 -25
  315. package/src/v2/shadcn/components/ui/label.stories.tsx +0 -13
  316. package/src/v2/shadcn/components/ui/label.tsx +0 -17
  317. package/src/v2/shadcn/components/ui/menubar.stories.tsx +0 -86
  318. package/src/v2/shadcn/components/ui/menubar.tsx +0 -207
  319. package/src/v2/shadcn/components/ui/navigation-menu.stories.tsx +0 -68
  320. package/src/v2/shadcn/components/ui/navigation-menu.tsx +0 -120
  321. package/src/v2/shadcn/components/ui/pagination.stories.tsx +0 -78
  322. package/src/v2/shadcn/components/ui/pagination.tsx +0 -81
  323. package/src/v2/shadcn/components/ui/popover.stories.tsx +0 -44
  324. package/src/v2/shadcn/components/ui/popover.tsx +0 -29
  325. package/src/v2/shadcn/components/ui/progress.stories.tsx +0 -17
  326. package/src/v2/shadcn/components/ui/progress.tsx +0 -23
  327. package/src/v2/shadcn/components/ui/radio-card.stories.tsx +0 -68
  328. package/src/v2/shadcn/components/ui/radio-card.tsx +0 -52
  329. package/src/v2/shadcn/components/ui/radio-group.stories.tsx +0 -77
  330. package/src/v2/shadcn/components/ui/radio-group.tsx +0 -35
  331. package/src/v2/shadcn/components/ui/scroll-area.stories.tsx +0 -56
  332. package/src/v2/shadcn/components/ui/scroll-area.tsx +0 -38
  333. package/src/v2/shadcn/components/ui/select.stories.tsx +0 -60
  334. package/src/v2/shadcn/components/ui/select.tsx +0 -148
  335. package/src/v2/shadcn/components/ui/separator.stories.tsx +0 -30
  336. package/src/v2/shadcn/components/ui/separator.tsx +0 -20
  337. package/src/v2/shadcn/components/ui/sheet.stories.tsx +0 -115
  338. package/src/v2/shadcn/components/ui/sheet.tsx +0 -107
  339. package/src/v2/shadcn/components/ui/sidebar.stories.tsx +0 -167
  340. package/src/v2/shadcn/components/ui/sidebar.tsx +0 -637
  341. package/src/v2/shadcn/components/ui/skeleton.stories.tsx +0 -36
  342. package/src/v2/shadcn/components/ui/skeleton.tsx +0 -7
  343. package/src/v2/shadcn/components/ui/slider.stories.tsx +0 -16
  344. package/src/v2/shadcn/components/ui/slider.tsx +0 -23
  345. package/src/v2/shadcn/components/ui/switch.scss +0 -63
  346. package/src/v2/shadcn/components/ui/switch.stories.tsx +0 -23
  347. package/src/v2/shadcn/components/ui/switch.tsx +0 -24
  348. package/src/v2/shadcn/components/ui/table-pagination.stories.tsx +0 -81
  349. package/src/v2/shadcn/components/ui/table-pagination.tsx +0 -61
  350. package/src/v2/shadcn/components/ui/table.stories.tsx +0 -40
  351. package/src/v2/shadcn/components/ui/table.tsx +0 -72
  352. package/src/v2/shadcn/components/ui/tabs.stories.tsx +0 -85
  353. package/src/v2/shadcn/components/ui/tabs.tsx +0 -53
  354. package/src/v2/shadcn/components/ui/textarea.stories.tsx +0 -15
  355. package/src/v2/shadcn/components/ui/textarea.tsx +0 -21
  356. package/src/v2/shadcn/components/ui/toast.stories.tsx +0 -77
  357. package/src/v2/shadcn/components/ui/toast.tsx +0 -111
  358. package/src/v2/shadcn/components/ui/toaster.stories.tsx +0 -46
  359. package/src/v2/shadcn/components/ui/toaster.tsx +0 -24
  360. package/src/v2/shadcn/components/ui/toggle-group.stories.tsx +0 -95
  361. package/src/v2/shadcn/components/ui/toggle-group.tsx +0 -49
  362. package/src/v2/shadcn/components/ui/toggle.stories.tsx +0 -18
  363. package/src/v2/shadcn/components/ui/toggle.tsx +0 -37
  364. package/src/v2/shadcn/components/ui/tooltip.stories.tsx +0 -57
  365. package/src/v2/shadcn/components/ui/tooltip.tsx +0 -28
  366. package/src/v2/shadcn/components/ui/use-toast.ts +0 -3
  367. package/src/v2/shadcn/hooks/use-mobile.tsx +0 -19
  368. package/src/v2/shadcn/hooks/use-toast.ts +0 -184
  369. package/src/v2/shadcn/index.ts +0 -76
  370. package/src/v2/shadcn/lib/utils.ts +0 -6
  371. package/src/v2/shadcn/styles/globals.css +0 -112
@@ -1,23 +0,0 @@
1
- import * as React from "react";
2
- import * as SliderPrimitive from "@radix-ui/react-slider";
3
-
4
- import { cn } from "../../lib/utils";
5
-
6
- const Slider = React.forwardRef<
7
- React.ElementRef<typeof SliderPrimitive.Root>,
8
- React.ComponentPropsWithoutRef<typeof SliderPrimitive.Root>
9
- >(({ className, ...props }, ref) => (
10
- <SliderPrimitive.Root
11
- ref={ref}
12
- className={cn("relative flex w-full touch-none select-none items-center", className)}
13
- {...props}
14
- >
15
- <SliderPrimitive.Track className="relative h-2 w-full grow overflow-hidden rounded-full bg-surface-secondary">
16
- <SliderPrimitive.Range className="absolute h-full bg-fill-action" />
17
- </SliderPrimitive.Track>
18
- <SliderPrimitive.Thumb className="block h-5 w-5 rounded-full border-2 border-fill-action bg-surface-primary ring-offset-surface-primary transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-actions-regular focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50" />
19
- </SliderPrimitive.Root>
20
- ));
21
- Slider.displayName = SliderPrimitive.Root.displayName;
22
-
23
- export { Slider };
@@ -1,63 +0,0 @@
1
- .bkit-switch {
2
- display: inline-flex;
3
- align-items: center;
4
- width: 52px;
5
- height: 28px;
6
- flex-shrink: 0;
7
- cursor: pointer;
8
- border-radius: 9999px;
9
- border: none;
10
- padding: 2px;
11
- transition: background-color 0.2s ease;
12
- position: relative;
13
-
14
- &[data-state='unchecked'] {
15
- background: var(--surface-tertiary, #D1D5E0);
16
- }
17
-
18
- &[data-state='checked'] {
19
- background: var(--fill-primary, #14215A);
20
- }
21
-
22
- &:disabled {
23
- opacity: 0.5;
24
- cursor: not-allowed;
25
- }
26
-
27
- &:focus-visible {
28
- outline: 2px solid var(--border-selected, #6200EE);
29
- outline-offset: 2px;
30
- }
31
- }
32
-
33
- .bkit-switch__thumb {
34
- display: flex;
35
- align-items: center;
36
- justify-content: center;
37
- width: 24px;
38
- height: 24px;
39
- background: #ffffff;
40
- border-radius: 9999px;
41
- box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
42
- transition: transform 0.2s ease;
43
- pointer-events: none;
44
-
45
- &[data-state='unchecked'] {
46
- transform: translateX(0);
47
- }
48
-
49
- &[data-state='checked'] {
50
- transform: translateX(24px);
51
- }
52
- }
53
-
54
- .bkit-switch__icon {
55
- color: transparent;
56
- transition: color 0.15s ease;
57
-
58
- &--check {
59
- .bkit-switch__thumb[data-state='checked'] & {
60
- color: var(--fill-primary, #14215A);
61
- }
62
- }
63
- }
@@ -1,23 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react'
2
- import { Switch } from './switch'
3
- import { Label } from './label'
4
-
5
- export default {
6
- title: 'v2/Shadcn/Switch',
7
- component: Switch,
8
- parameters: { layout: 'padded' },
9
- } as Meta<typeof Switch>
10
-
11
- type Story = StoryObj<typeof Switch>
12
-
13
- export const Default: Story = { args: { id: 'sw1' } }
14
- export const Checked: Story = { args: { id: 'sw2', defaultChecked: true } }
15
- export const Disabled: Story = { args: { id: 'sw3', disabled: true } }
16
- export const WithLabel: Story = {
17
- render: () => (
18
- <div className="flex items-center gap-2">
19
- <Switch id="sw4" />
20
- <Label htmlFor="sw4">Enable notifications</Label>
21
- </div>
22
- ),
23
- }
@@ -1,24 +0,0 @@
1
- import * as React from "react";
2
- import * as SwitchPrimitives from "@radix-ui/react-switch";
3
- import { cn } from "../../lib/utils";
4
- import './switch.scss';
5
-
6
- const Switch = React.forwardRef<
7
- React.ElementRef<typeof SwitchPrimitives.Root>,
8
- React.ComponentPropsWithoutRef<typeof SwitchPrimitives.Root>
9
- >(({ className, ...props }, ref) => (
10
- <SwitchPrimitives.Root
11
- className={cn("bkit-switch", className)}
12
- {...props}
13
- ref={ref}
14
- >
15
- <SwitchPrimitives.Thumb className="bkit-switch__thumb">
16
- <svg className="bkit-switch__icon bkit-switch__icon--check" width="14" height="14" viewBox="0 0 24 24" fill="none">
17
- <path d="M20 6L9 17L4 12" stroke="currentColor" strokeWidth="3" strokeLinecap="round" strokeLinejoin="round"/>
18
- </svg>
19
- </SwitchPrimitives.Thumb>
20
- </SwitchPrimitives.Root>
21
- ));
22
- Switch.displayName = SwitchPrimitives.Root.displayName;
23
-
24
- export { Switch };
@@ -1,81 +0,0 @@
1
- import React from 'react'
2
- import type { Meta, StoryObj } from '@storybook/react'
3
- import { TablePagination } from './table-pagination'
4
-
5
- function TablePaginationDefault() {
6
- const [page, setPage] = React.useState(1)
7
- return (
8
- <div className="w-[500px] border border-border-primary rounded-md">
9
- <TablePagination
10
- currentPage={page}
11
- totalPages={10}
12
- totalItems={95}
13
- itemsPerPage={10}
14
- onPageChange={setPage}
15
- />
16
- </div>
17
- )
18
- }
19
-
20
- export default {
21
- title: 'v2/Shadcn/TablePagination',
22
- component: TablePagination,
23
- parameters: { layout: 'padded' },
24
- } as Meta<typeof TablePagination>
25
-
26
- type Story = StoryObj<typeof TablePagination>
27
-
28
- export const Default: Story = {
29
- render: () => React.createElement(TablePaginationDefault),
30
- }
31
-
32
- export const FirstPage: Story = {
33
- args: {
34
- currentPage: 1,
35
- totalPages: 5,
36
- totalItems: 50,
37
- itemsPerPage: 10,
38
- onPageChange: () => {},
39
- },
40
- }
41
-
42
- export const LastPage: Story = {
43
- args: {
44
- currentPage: 5,
45
- totalPages: 5,
46
- totalItems: 50,
47
- itemsPerPage: 10,
48
- onPageChange: () => {},
49
- },
50
- }
51
-
52
- export const MiddlePage: Story = {
53
- args: {
54
- currentPage: 3,
55
- totalPages: 5,
56
- totalItems: 50,
57
- itemsPerPage: 10,
58
- onPageChange: () => {},
59
- },
60
- }
61
-
62
- export const CustomEntityName: Story = {
63
- args: {
64
- currentPage: 2,
65
- totalPages: 8,
66
- totalItems: 156,
67
- itemsPerPage: 20,
68
- onPageChange: () => {},
69
- entityName: 'users',
70
- },
71
- }
72
-
73
- export const SinglePage: Story = {
74
- args: {
75
- currentPage: 1,
76
- totalPages: 1,
77
- totalItems: 5,
78
- itemsPerPage: 10,
79
- onPageChange: () => {},
80
- },
81
- }
@@ -1,61 +0,0 @@
1
- import { Button } from './button';
2
- import { IconArrowLeft, IconArrowRight } from '../../../icons';
3
-
4
- interface TablePaginationProps {
5
- currentPage: number;
6
- totalPages: number;
7
- totalItems: number;
8
- itemsPerPage: number;
9
- onPageChange: (page: number) => void;
10
- entityName?: string;
11
- }
12
-
13
- export function TablePagination({
14
- currentPage,
15
- totalPages,
16
- totalItems,
17
- itemsPerPage,
18
- onPageChange,
19
- entityName = 'entries',
20
- }: TablePaginationProps) {
21
- const startItem = (currentPage - 1) * itemsPerPage + 1;
22
- const endItem = Math.min(currentPage * itemsPerPage, totalItems);
23
-
24
- const isFirstPage = currentPage === 1;
25
- const isLastPage = currentPage === totalPages;
26
-
27
- return (
28
- <div className="flex items-center gap-3 px-4 py-3 border-t border-border-primary">
29
- <div className="flex items-center gap-2">
30
- <Button
31
- variant="ghost"
32
- size="icon"
33
- onClick={() => onPageChange(currentPage - 1)}
34
- disabled={isFirstPage}
35
- className="h-8 w-8 rounded-full bg-surface-action-soft hover:bg-surface-action-soft-hover disabled:bg-disabled-lightest disabled:hover:bg-disabled-lightest disabled:opacity-100 disabled:cursor-not-allowed"
36
- >
37
- <IconArrowLeft className="h-4 w-4 fill-fill-primary" />
38
- </Button>
39
-
40
- <Button
41
- variant="ghost"
42
- size="icon"
43
- onClick={() => onPageChange(currentPage + 1)}
44
- disabled={isLastPage}
45
- className="h-8 w-8 rounded-full bg-surface-action-soft hover:bg-surface-action-soft-hover disabled:bg-disabled-lightest disabled:hover:bg-disabled-lightest disabled:opacity-100 disabled:cursor-not-allowed"
46
- >
47
- <IconArrowRight className="h-4 w-4 fill-fill-primary" />
48
- </Button>
49
- </div>
50
-
51
- <div className="flex flex-col">
52
- <span className="text-label-primary text-sm font-medium">
53
- Page {currentPage}
54
- </span>
55
- <span className="text-label-secondary text-xs">
56
- Showing {entityName} {startItem}-{endItem} of {totalItems}
57
- </span>
58
- </div>
59
- </div>
60
- );
61
- }
@@ -1,40 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react'
2
- import { Table, TableHeader, TableBody, TableHead, TableRow, TableCell, TableCaption } from './table'
3
-
4
- export default {
5
- title: 'v2/Shadcn/Table',
6
- component: Table,
7
- parameters: { layout: 'padded' },
8
- } as Meta<typeof Table>
9
-
10
- type Story = StoryObj<typeof Table>
11
-
12
- export const Default: Story = {
13
- render: () => (
14
- <Table>
15
- <TableCaption>A list of recent invoices.</TableCaption>
16
- <TableHeader>
17
- <TableRow>
18
- <TableHead>Invoice</TableHead>
19
- <TableHead>Status</TableHead>
20
- <TableHead>Method</TableHead>
21
- <TableHead className="text-right">Amount</TableHead>
22
- </TableRow>
23
- </TableHeader>
24
- <TableBody>
25
- {[
26
- { id: 'INV001', status: 'Paid', method: 'Credit Card', amount: '£250.00' },
27
- { id: 'INV002', status: 'Pending', method: 'PayPal', amount: '£150.00' },
28
- { id: 'INV003', status: 'Unpaid', method: 'Bank Transfer', amount: '£350.00' },
29
- ].map((row) => (
30
- <TableRow key={row.id}>
31
- <TableCell className="font-medium">{row.id}</TableCell>
32
- <TableCell>{row.status}</TableCell>
33
- <TableCell>{row.method}</TableCell>
34
- <TableCell className="text-right">{row.amount}</TableCell>
35
- </TableRow>
36
- ))}
37
- </TableBody>
38
- </Table>
39
- ),
40
- }
@@ -1,72 +0,0 @@
1
- import * as React from "react";
2
-
3
- import { cn } from "../../lib/utils";
4
-
5
- const Table = React.forwardRef<HTMLTableElement, React.HTMLAttributes<HTMLTableElement>>(
6
- ({ className, ...props }, ref) => (
7
- <div className="relative w-full overflow-auto">
8
- <table ref={ref} className={cn("w-full caption-bottom text-sm", className)} {...props} />
9
- </div>
10
- ),
11
- );
12
- Table.displayName = "Table";
13
-
14
- const TableHeader = React.forwardRef<HTMLTableSectionElement, React.HTMLAttributes<HTMLTableSectionElement>>(
15
- ({ className, ...props }, ref) => <thead ref={ref} className={cn("[&_tr]:border-b", className)} {...props} />,
16
- );
17
- TableHeader.displayName = "TableHeader";
18
-
19
- const TableBody = React.forwardRef<HTMLTableSectionElement, React.HTMLAttributes<HTMLTableSectionElement>>(
20
- ({ className, ...props }, ref) => (
21
- <tbody ref={ref} className={cn("[&_tr:last-child]:border-0", className)} {...props} />
22
- ),
23
- );
24
- TableBody.displayName = "TableBody";
25
-
26
- const TableFooter = React.forwardRef<HTMLTableSectionElement, React.HTMLAttributes<HTMLTableSectionElement>>(
27
- ({ className, ...props }, ref) => (
28
- <tfoot ref={ref} className={cn("border-t bg-surface-secondary/50 font-medium [&>tr]:last:border-b-0", className)} {...props} />
29
- ),
30
- );
31
- TableFooter.displayName = "TableFooter";
32
-
33
- const TableRow = React.forwardRef<HTMLTableRowElement, React.HTMLAttributes<HTMLTableRowElement>>(
34
- ({ className, ...props }, ref) => (
35
- <tr
36
- ref={ref}
37
- className={cn("border-b transition-colors data-[state=selected]:bg-surface-secondary hover:bg-surface-secondary/50", className)}
38
- {...props}
39
- />
40
- ),
41
- );
42
- TableRow.displayName = "TableRow";
43
-
44
- const TableHead = React.forwardRef<HTMLTableCellElement, React.ThHTMLAttributes<HTMLTableCellElement>>(
45
- ({ className, ...props }, ref) => (
46
- <th
47
- ref={ref}
48
- className={cn(
49
- "h-12 px-4 text-left align-middle font-medium text-label-secondary [&:has([role=checkbox])]:pr-0",
50
- className,
51
- )}
52
- {...props}
53
- />
54
- ),
55
- );
56
- TableHead.displayName = "TableHead";
57
-
58
- const TableCell = React.forwardRef<HTMLTableCellElement, React.TdHTMLAttributes<HTMLTableCellElement>>(
59
- ({ className, ...props }, ref) => (
60
- <td ref={ref} className={cn("p-4 align-middle [&:has([role=checkbox])]:pr-0", className)} {...props} />
61
- ),
62
- );
63
- TableCell.displayName = "TableCell";
64
-
65
- const TableCaption = React.forwardRef<HTMLTableCaptionElement, React.HTMLAttributes<HTMLTableCaptionElement>>(
66
- ({ className, ...props }, ref) => (
67
- <caption ref={ref} className={cn("mt-4 text-sm text-label-secondary", className)} {...props} />
68
- ),
69
- );
70
- TableCaption.displayName = "TableCaption";
71
-
72
- export { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption };
@@ -1,85 +0,0 @@
1
- import React from 'react'
2
- import type { Meta, StoryObj } from '@storybook/react'
3
- import { Tabs, TabsList, TabsTrigger, TabsContent } from './tabs'
4
-
5
- function TabsDefault() {
6
- return (
7
- <Tabs defaultValue="account" className="w-[400px]">
8
- <TabsList>
9
- <TabsTrigger value="account">Account</TabsTrigger>
10
- <TabsTrigger value="password">Password</TabsTrigger>
11
- </TabsList>
12
- <TabsContent value="account">
13
- <div className="p-4 rounded-md border border-border-primary">
14
- <h3 className="text-lg font-medium">Account</h3>
15
- <p className="text-sm text-label-secondary mt-1">Make changes to your account here.</p>
16
- </div>
17
- </TabsContent>
18
- <TabsContent value="password">
19
- <div className="p-4 rounded-md border border-border-primary">
20
- <h3 className="text-lg font-medium">Password</h3>
21
- <p className="text-sm text-label-secondary mt-1">Change your password here.</p>
22
- </div>
23
- </TabsContent>
24
- </Tabs>
25
- )
26
- }
27
-
28
- function TabsThree() {
29
- return (
30
- <Tabs defaultValue="overview" className="w-[500px]">
31
- <TabsList>
32
- <TabsTrigger value="overview">Overview</TabsTrigger>
33
- <TabsTrigger value="analytics">Analytics</TabsTrigger>
34
- <TabsTrigger value="reports">Reports</TabsTrigger>
35
- </TabsList>
36
- <TabsContent value="overview">
37
- <p className="text-sm text-label-secondary p-4">Overview content</p>
38
- </TabsContent>
39
- <TabsContent value="analytics">
40
- <p className="text-sm text-label-secondary p-4">Analytics content</p>
41
- </TabsContent>
42
- <TabsContent value="reports">
43
- <p className="text-sm text-label-secondary p-4">Reports content</p>
44
- </TabsContent>
45
- </Tabs>
46
- )
47
- }
48
-
49
- function TabsWithDisabled() {
50
- return (
51
- <Tabs defaultValue="active" className="w-[400px]">
52
- <TabsList>
53
- <TabsTrigger value="active">Active</TabsTrigger>
54
- <TabsTrigger value="disabled" disabled>Disabled</TabsTrigger>
55
- <TabsTrigger value="other">Other</TabsTrigger>
56
- </TabsList>
57
- <TabsContent value="active">
58
- <p className="text-sm text-label-secondary p-4">Active tab content</p>
59
- </TabsContent>
60
- <TabsContent value="other">
61
- <p className="text-sm text-label-secondary p-4">Other tab content</p>
62
- </TabsContent>
63
- </Tabs>
64
- )
65
- }
66
-
67
- export default {
68
- title: 'v2/Shadcn/Tabs',
69
- component: Tabs,
70
- parameters: { layout: 'padded' },
71
- } as Meta<typeof Tabs>
72
-
73
- type Story = StoryObj<typeof Tabs>
74
-
75
- export const Default: Story = {
76
- render: () => React.createElement(TabsDefault),
77
- }
78
-
79
- export const ThreeTabs: Story = {
80
- render: () => React.createElement(TabsThree),
81
- }
82
-
83
- export const DisabledTab: Story = {
84
- render: () => React.createElement(TabsWithDisabled),
85
- }
@@ -1,53 +0,0 @@
1
- import * as React from "react";
2
- import * as TabsPrimitive from "@radix-ui/react-tabs";
3
-
4
- import { cn } from "../../lib/utils";
5
-
6
- const Tabs = TabsPrimitive.Root;
7
-
8
- const TabsList = React.forwardRef<
9
- React.ElementRef<typeof TabsPrimitive.List>,
10
- React.ComponentPropsWithoutRef<typeof TabsPrimitive.List>
11
- >(({ className, ...props }, ref) => (
12
- <TabsPrimitive.List
13
- ref={ref}
14
- className={cn(
15
- "inline-flex h-10 items-center justify-center rounded-md bg-surface-secondary p-1 text-label-secondary",
16
- className,
17
- )}
18
- {...props}
19
- />
20
- ));
21
- TabsList.displayName = TabsPrimitive.List.displayName;
22
-
23
- const TabsTrigger = React.forwardRef<
24
- React.ElementRef<typeof TabsPrimitive.Trigger>,
25
- React.ComponentPropsWithoutRef<typeof TabsPrimitive.Trigger>
26
- >(({ className, ...props }, ref) => (
27
- <TabsPrimitive.Trigger
28
- ref={ref}
29
- className={cn(
30
- "inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-surface-primary transition-all data-[state=active]:bg-surface-primary data-[state=active]:text-label-primary data-[state=active]:shadow-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-actions-regular focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",
31
- className,
32
- )}
33
- {...props}
34
- />
35
- ));
36
- TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
37
-
38
- const TabsContent = React.forwardRef<
39
- React.ElementRef<typeof TabsPrimitive.Content>,
40
- React.ComponentPropsWithoutRef<typeof TabsPrimitive.Content>
41
- >(({ className, ...props }, ref) => (
42
- <TabsPrimitive.Content
43
- ref={ref}
44
- className={cn(
45
- "mt-2 ring-offset-surface-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-actions-regular focus-visible:ring-offset-2",
46
- className,
47
- )}
48
- {...props}
49
- />
50
- ));
51
- TabsContent.displayName = TabsPrimitive.Content.displayName;
52
-
53
- export { Tabs, TabsList, TabsTrigger, TabsContent };
@@ -1,15 +0,0 @@
1
- import type { Meta, StoryObj } from '@storybook/react'
2
- import { Textarea } from './textarea'
3
-
4
- export default {
5
- title: 'v2/Shadcn/Textarea',
6
- component: Textarea,
7
- parameters: { layout: 'padded' },
8
- } as Meta<typeof Textarea>
9
-
10
- type Story = StoryObj<typeof Textarea>
11
-
12
- export const Default: Story = { args: { placeholder: 'Type your message here.' } }
13
- export const WithValue: Story = { args: { defaultValue: 'This is a textarea with some content already filled in.', className: 'w-[400px]' } }
14
- export const Disabled: Story = { args: { placeholder: 'Disabled textarea', disabled: true } }
15
- export const WithRows: Story = { args: { placeholder: 'Tall textarea...', rows: 8, className: 'w-[400px]' } }
@@ -1,21 +0,0 @@
1
- import * as React from "react";
2
-
3
- import { cn } from "../../lib/utils";
4
-
5
- export interface TextareaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {}
6
-
7
- const Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(({ className, ...props }, ref) => {
8
- return (
9
- <textarea
10
- className={cn(
11
- "flex min-h-[80px] w-full rounded-md border border-border-primary bg-surface-primary px-3 py-2 text-sm text-label-primary placeholder:text-label-secondary focus-visible:outline-none focus-visible:border-border-selected disabled:cursor-not-allowed disabled:opacity-50",
12
- className,
13
- )}
14
- ref={ref}
15
- {...props}
16
- />
17
- );
18
- });
19
- Textarea.displayName = "Textarea";
20
-
21
- export { Textarea };
@@ -1,77 +0,0 @@
1
- import React from 'react'
2
- import type { Meta, StoryObj } from '@storybook/react'
3
- import {
4
- Toast,
5
- ToastProvider,
6
- ToastViewport,
7
- ToastTitle,
8
- ToastDescription,
9
- ToastAction,
10
- ToastClose,
11
- } from './toast'
12
-
13
- function ToastDefault() {
14
- return (
15
- <ToastProvider>
16
- <Toast open>
17
- <div className="grid gap-1">
18
- <ToastTitle>Scheduled: Catch up</ToastTitle>
19
- <ToastDescription>Friday, February 10, 2025 at 5:57 PM</ToastDescription>
20
- </div>
21
- <ToastClose />
22
- </Toast>
23
- <ToastViewport />
24
- </ToastProvider>
25
- )
26
- }
27
-
28
- function ToastDestructive() {
29
- return (
30
- <ToastProvider>
31
- <Toast variant="destructive" open>
32
- <div className="grid gap-1">
33
- <ToastTitle>Uh oh! Something went wrong.</ToastTitle>
34
- <ToastDescription>There was a problem with your request.</ToastDescription>
35
- </div>
36
- <ToastClose />
37
- </Toast>
38
- <ToastViewport />
39
- </ToastProvider>
40
- )
41
- }
42
-
43
- function ToastWithAction() {
44
- return (
45
- <ToastProvider>
46
- <Toast open>
47
- <div className="grid gap-1">
48
- <ToastTitle>Event created</ToastTitle>
49
- <ToastDescription>Your event has been created successfully.</ToastDescription>
50
- </div>
51
- <ToastAction altText="Undo">Undo</ToastAction>
52
- <ToastClose />
53
- </Toast>
54
- <ToastViewport />
55
- </ToastProvider>
56
- )
57
- }
58
-
59
- export default {
60
- title: 'v2/Shadcn/Toast',
61
- component: Toast,
62
- parameters: { layout: 'padded' },
63
- } as Meta<typeof Toast>
64
-
65
- type Story = StoryObj<typeof Toast>
66
-
67
- export const Default: Story = {
68
- render: () => React.createElement(ToastDefault),
69
- }
70
-
71
- export const Destructive: Story = {
72
- render: () => React.createElement(ToastDestructive),
73
- }
74
-
75
- export const WithAction: Story = {
76
- render: () => React.createElement(ToastWithAction),
77
- }