@contember/create 2.1.0-alpha.3 → 2.1.0-alpha.35

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 (314) hide show
  1. package/dist/development/run.cjs +6 -4
  2. package/dist/development/run.cjs.map +1 -1
  3. package/dist/development/run.js +6 -4
  4. package/dist/development/run.js.map +1 -1
  5. package/dist/development/src/commands/WorkspaceCreateCommand.cjs +37 -23
  6. package/dist/development/src/commands/WorkspaceCreateCommand.cjs.map +1 -1
  7. package/dist/development/src/commands/WorkspaceCreateCommand.js +37 -23
  8. package/dist/development/src/commands/WorkspaceCreateCommand.js.map +1 -1
  9. package/dist/development/src/lib/FileSystem.cjs +1 -0
  10. package/dist/development/src/lib/FileSystem.cjs.map +1 -1
  11. package/dist/development/src/lib/FileSystem.js +1 -0
  12. package/dist/development/src/lib/FileSystem.js.map +1 -1
  13. package/dist/development/src/lib/TemplateInstaller.cjs +28 -12
  14. package/dist/development/src/lib/TemplateInstaller.cjs.map +1 -1
  15. package/dist/development/src/lib/TemplateInstaller.js +28 -12
  16. package/dist/development/src/lib/TemplateInstaller.js.map +1 -1
  17. package/dist/development/src/lib/packageManagerDetector.cjs +22 -0
  18. package/dist/development/src/lib/packageManagerDetector.cjs.map +1 -0
  19. package/dist/development/src/lib/packageManagerDetector.js +22 -0
  20. package/dist/development/src/lib/packageManagerDetector.js.map +1 -0
  21. package/dist/development/src/lib/version.cjs.map +1 -1
  22. package/dist/development/src/lib/version.js.map +1 -1
  23. package/dist/development/src/paths.cjs.map +1 -1
  24. package/dist/development/src/paths.js.map +1 -1
  25. package/dist/production/run.cjs +6 -4
  26. package/dist/production/run.cjs.map +1 -1
  27. package/dist/production/run.js +6 -4
  28. package/dist/production/run.js.map +1 -1
  29. package/dist/production/src/commands/WorkspaceCreateCommand.cjs +37 -23
  30. package/dist/production/src/commands/WorkspaceCreateCommand.cjs.map +1 -1
  31. package/dist/production/src/commands/WorkspaceCreateCommand.js +37 -23
  32. package/dist/production/src/commands/WorkspaceCreateCommand.js.map +1 -1
  33. package/dist/production/src/lib/FileSystem.cjs +1 -0
  34. package/dist/production/src/lib/FileSystem.cjs.map +1 -1
  35. package/dist/production/src/lib/FileSystem.js +1 -0
  36. package/dist/production/src/lib/FileSystem.js.map +1 -1
  37. package/dist/production/src/lib/TemplateInstaller.cjs +28 -12
  38. package/dist/production/src/lib/TemplateInstaller.cjs.map +1 -1
  39. package/dist/production/src/lib/TemplateInstaller.js +28 -12
  40. package/dist/production/src/lib/TemplateInstaller.js.map +1 -1
  41. package/dist/production/src/lib/packageManagerDetector.cjs +22 -0
  42. package/dist/production/src/lib/packageManagerDetector.cjs.map +1 -0
  43. package/dist/production/src/lib/packageManagerDetector.js +22 -0
  44. package/dist/production/src/lib/packageManagerDetector.js.map +1 -0
  45. package/dist/production/src/lib/version.cjs.map +1 -1
  46. package/dist/production/src/lib/version.js.map +1 -1
  47. package/dist/production/src/paths.cjs.map +1 -1
  48. package/dist/production/src/paths.js.map +1 -1
  49. package/dist/types/commands/WorkspaceCreateCommand.d.ts +4 -2
  50. package/dist/types/commands/WorkspaceCreateCommand.d.ts.map +1 -1
  51. package/dist/types/lib/FileSystem.d.ts +1 -0
  52. package/dist/types/lib/FileSystem.d.ts.map +1 -1
  53. package/dist/types/lib/TemplateInstaller.d.ts.map +1 -1
  54. package/dist/types/lib/packageManagerDetector.d.ts +3 -0
  55. package/dist/types/lib/packageManagerDetector.d.ts.map +1 -0
  56. package/package.json +15 -6
  57. package/resources/templates/{template-workspace → default}/.github/workflows/deploy.yaml +1 -1
  58. package/resources/templates/default/.gitignore.dist +154 -0
  59. package/resources/templates/default/README.md +98 -0
  60. package/resources/templates/{template-workspace → default}/admin/.env.development +1 -0
  61. package/resources/templates/default/admin/.env.production +6 -0
  62. package/resources/templates/{template-workspace → default}/admin/app/components/layout.tsx +7 -3
  63. package/resources/templates/default/admin/app/components/navigation.tsx +85 -0
  64. package/resources/templates/{template-workspace → default}/admin/app/index.tsx +4 -4
  65. package/resources/templates/default/admin/app/pages/tenant.tsx +160 -0
  66. package/resources/templates/default/admin/entrypoint/components/layout.tsx +14 -0
  67. package/resources/templates/default/admin/entrypoint/components/logged-in.tsx +47 -0
  68. package/resources/templates/default/admin/entrypoint/components/login.tsx +103 -0
  69. package/resources/templates/default/admin/entrypoint/config.ts +35 -0
  70. package/resources/templates/default/admin/entrypoint/contexts/login.tsx +18 -0
  71. package/resources/templates/default/admin/entrypoint/index.tsx +12 -0
  72. package/resources/templates/default/admin/entrypoint/login-entrypoint.tsx +24 -0
  73. package/resources/templates/default/admin/entrypoint/pages/index.tsx +48 -0
  74. package/resources/templates/default/admin/entrypoint/pages/magicLink.tsx +56 -0
  75. package/resources/templates/default/admin/entrypoint/pages/magicLinkSent.tsx +63 -0
  76. package/resources/templates/default/admin/entrypoint/pages/passwordReset.tsx +44 -0
  77. package/resources/templates/default/admin/entrypoint/pages/resetRequest.tsx +35 -0
  78. package/resources/templates/default/admin/entrypoint/pages/resetRequestSuccess.tsx +34 -0
  79. package/resources/templates/default/admin/index.css +94 -0
  80. package/resources/templates/{template-workspace → default}/admin/index.html +1 -1
  81. package/resources/templates/{template-workspace → default}/admin/lib/binding/binding.tsx +0 -2
  82. package/resources/templates/{template-workspace → default}/admin/lib/binding/hooks.tsx +14 -8
  83. package/resources/templates/default/admin/lib/binding/identity.tsx +51 -0
  84. package/resources/templates/{template-workspace → default}/admin/lib/binding/navigation-guard-dialog.tsx +12 -8
  85. package/resources/templates/{template-workspace → default}/admin/lib/binding/persist.tsx +7 -5
  86. package/resources/templates/{template-workspace → default}/admin/lib/block-repeater/block-repeater.tsx +14 -16
  87. package/resources/templates/{template-workspace → default}/admin/lib/board/board.tsx +61 -47
  88. package/resources/templates/{template-workspace → default}/admin/lib/buttons/back-button.tsx +1 -1
  89. package/resources/templates/{template-workspace → default}/admin/lib/datagrid/cells.tsx +49 -35
  90. package/resources/templates/{template-workspace → default}/admin/lib/datagrid/column-header.tsx +47 -38
  91. package/resources/templates/{template-workspace → default}/admin/lib/datagrid/columns.tsx +128 -105
  92. package/resources/templates/default/admin/lib/datagrid/elements.tsx +63 -0
  93. package/resources/templates/{template-workspace → default}/admin/lib/datagrid/empty.tsx +1 -1
  94. package/resources/templates/{template-workspace → default}/admin/lib/datagrid/filters/boolean.tsx +1 -4
  95. package/resources/templates/{template-workspace → default}/admin/lib/datagrid/filters/common.tsx +14 -14
  96. package/resources/templates/{template-workspace → default}/admin/lib/datagrid/filters/date.tsx +35 -21
  97. package/resources/templates/{template-workspace → default}/admin/lib/datagrid/filters/defined.tsx +0 -1
  98. package/resources/templates/{template-workspace → default}/admin/lib/datagrid/filters/enum.tsx +24 -30
  99. package/resources/templates/{template-workspace → default}/admin/lib/datagrid/filters/mobile.tsx +2 -3
  100. package/resources/templates/{template-workspace → default}/admin/lib/datagrid/filters/number.tsx +0 -3
  101. package/resources/templates/{template-workspace → default}/admin/lib/datagrid/filters/relation.tsx +36 -30
  102. package/resources/templates/{template-workspace → default}/admin/lib/datagrid/labels.tsx +0 -1
  103. package/resources/templates/{template-workspace → default}/admin/lib/datagrid/loader.tsx +2 -7
  104. package/resources/templates/{template-workspace → default}/admin/lib/datagrid/pagination.tsx +33 -38
  105. package/resources/templates/{template-workspace → default}/admin/lib/datagrid/table.tsx +8 -6
  106. package/resources/templates/{template-workspace → default}/admin/lib/datagrid/tiles.tsx +10 -5
  107. package/resources/templates/{template-workspace → default}/admin/lib/datagrid/toolbar.tsx +10 -7
  108. package/resources/templates/{template-workspace → default}/admin/lib/datagrid/ui.tsx +12 -15
  109. package/resources/templates/{template-workspace → default}/admin/lib/dev/login-panel.tsx +23 -16
  110. package/resources/templates/{template-workspace → default}/admin/lib/dict.ts +17 -5
  111. package/resources/templates/default/admin/lib/dimensions/dimensions.tsx +159 -0
  112. package/resources/templates/{template-workspace → default}/admin/lib/editor/block-editor.tsx +22 -10
  113. package/resources/templates/{template-workspace → default}/admin/lib/editor/common/baseEditorPlugins.tsx +0 -2
  114. package/resources/templates/default/admin/lib/editor/common/buttons.tsx +205 -0
  115. package/resources/templates/{template-workspace → default}/admin/lib/editor/common/editor-block-toolbar.tsx +3 -1
  116. package/resources/templates/{template-workspace → default}/admin/lib/editor/common/editor-canvas.tsx +6 -4
  117. package/resources/templates/{template-workspace → default}/admin/lib/editor/common/editor-editable-canvas.tsx +0 -1
  118. package/resources/templates/{template-workspace → default}/admin/lib/editor/common/editor-inline-toolbar.tsx +5 -2
  119. package/resources/templates/{template-workspace → default}/admin/lib/editor/common/elements/AnchorRenderer.tsx +18 -16
  120. package/resources/templates/default/admin/lib/editor/common/elements/BlockElement.tsx +60 -0
  121. package/resources/templates/{template-workspace → default}/admin/lib/editor/common/elements/HeadingRenderer.tsx +1 -1
  122. package/resources/templates/{template-workspace → default}/admin/lib/editor/common/elements/TableCellElementRenderer.tsx +1 -1
  123. package/resources/templates/{template-workspace → default}/admin/lib/editor/common/elements/TableElementRenderer.tsx +2 -7
  124. package/resources/templates/{template-workspace → default}/admin/lib/editor/common/elements/TableRowElementRenderer.tsx +1 -5
  125. package/resources/templates/{template-workspace → default}/admin/lib/editor/editor-block.tsx +17 -10
  126. package/resources/templates/{template-workspace → default}/admin/lib/editor/rich-text-view.tsx +11 -6
  127. package/resources/templates/{template-workspace → default}/admin/lib/editor/rich-text.tsx +6 -7
  128. package/resources/templates/default/admin/lib/editor/sortable-block.tsx +57 -0
  129. package/resources/templates/default/admin/lib/form/container.tsx +72 -0
  130. package/resources/templates/{template-workspace → default}/admin/lib/form/inputs.tsx +14 -12
  131. package/resources/templates/{template-workspace → default}/admin/lib/form/select.tsx +93 -51
  132. package/resources/templates/{template-workspace → default}/admin/lib/form/ui.tsx +1 -1
  133. package/resources/templates/default/admin/lib/form/upload-repeaters.tsx +221 -0
  134. package/resources/templates/{template-workspace → default}/admin/lib/form/upload.tsx +61 -62
  135. package/resources/templates/{template-workspace → default}/admin/lib/labels/enum-labels.ts +6 -3
  136. package/resources/templates/{template-workspace → default}/admin/lib/labels/field-labels.ts +4 -2
  137. package/resources/templates/{template-workspace → default}/admin/lib/layout/layout-boxed.tsx +39 -29
  138. package/resources/templates/{template-workspace → default}/admin/lib/layout/slots.tsx +1 -4
  139. package/resources/templates/{template-workspace → default}/admin/lib/outdated-application-dialog/outdated-application-dialog.tsx +10 -4
  140. package/resources/templates/{template-workspace → default}/admin/lib/repeater/repeater.tsx +24 -15
  141. package/resources/templates/{template-workspace → default}/admin/lib/select/create-new.tsx +0 -3
  142. package/resources/templates/{template-workspace → default}/admin/lib/select/filter.tsx +0 -1
  143. package/resources/templates/{template-workspace → default}/admin/lib/select/list.tsx +33 -28
  144. package/resources/templates/default/admin/lib/select/multi-select.tsx +92 -0
  145. package/resources/templates/default/admin/lib/select/select.tsx +109 -0
  146. package/resources/templates/default/admin/lib/select/sortable-select.tsx +138 -0
  147. package/resources/templates/{template-workspace → default}/admin/lib/select/ui.tsx +13 -11
  148. package/resources/templates/{template-workspace → default}/admin/lib/tenant/forms/change-my-password.tsx +21 -8
  149. package/resources/templates/{template-workspace → default}/admin/lib/tenant/forms/common.tsx +21 -12
  150. package/resources/templates/{template-workspace → default}/admin/lib/tenant/forms/create-api-key.tsx +9 -5
  151. package/resources/templates/{template-workspace → default}/admin/lib/tenant/forms/invite.tsx +12 -7
  152. package/resources/templates/{template-workspace → default}/admin/lib/tenant/forms/login.tsx +26 -7
  153. package/resources/templates/{template-workspace → default}/admin/lib/tenant/forms/memberships-control.tsx +32 -20
  154. package/resources/templates/{template-workspace → default}/admin/lib/tenant/forms/password-reset-request.tsx +9 -5
  155. package/resources/templates/{template-workspace → default}/admin/lib/tenant/forms/password-reset.tsx +21 -8
  156. package/resources/templates/{template-workspace → default}/admin/lib/tenant/forms/passwordless-signin-init.tsx +9 -5
  157. package/resources/templates/{template-workspace → default}/admin/lib/tenant/forms/passwordless-signin.tsx +25 -12
  158. package/resources/templates/{template-workspace → default}/admin/lib/tenant/forms/update-project-member.tsx +3 -4
  159. package/resources/templates/{template-workspace → default}/admin/lib/tenant/hooks/useInviteUser.tsx +2 -3
  160. package/resources/templates/{template-workspace → default}/admin/lib/tenant/listing/api-key-list.tsx +5 -3
  161. package/resources/templates/{template-workspace → default}/admin/lib/tenant/listing/member-delete-dialog.tsx +13 -2
  162. package/resources/templates/{template-workspace → default}/admin/lib/tenant/listing/member-list.tsx +17 -11
  163. package/resources/templates/{template-workspace → default}/admin/lib/tenant/listing/person-list.tsx +6 -4
  164. package/resources/templates/{template-workspace → default}/admin/lib/tenant/otp/otp-setup.tsx +86 -59
  165. package/resources/templates/default/admin/lib/toast/toast.tsx +113 -0
  166. package/resources/templates/{template-workspace → default}/admin/lib/toast/toaster.tsx +0 -1
  167. package/resources/templates/{template-workspace → default}/admin/lib/ui/alert-dialog.tsx +4 -3
  168. package/resources/templates/default/admin/lib/ui/button.tsx +30 -0
  169. package/resources/templates/{template-workspace → default}/admin/lib/ui/card.tsx +1 -1
  170. package/resources/templates/{template-workspace → default}/admin/lib/ui/dialog.tsx +12 -8
  171. package/resources/templates/default/admin/lib/ui/dimension.tsx +9 -0
  172. package/resources/templates/{template-workspace → default}/admin/lib/ui/dropdown.tsx +18 -15
  173. package/resources/templates/default/admin/lib/ui/input.tsx +68 -0
  174. package/resources/templates/{template-workspace → default}/admin/lib/ui/loader.tsx +1 -1
  175. package/resources/templates/{template-workspace → default}/admin/lib/ui/menu.tsx +3 -11
  176. package/resources/templates/{template-workspace → default}/admin/lib/ui/overlay.tsx +11 -9
  177. package/resources/templates/{template-workspace → default}/admin/lib/ui/popover.tsx +2 -2
  178. package/resources/templates/{template-workspace → default}/admin/lib/ui/property-list.tsx +5 -5
  179. package/resources/templates/{template-workspace → default}/admin/lib/ui/scroll-area.tsx +11 -11
  180. package/resources/templates/{template-workspace → default}/admin/lib/ui/select.tsx +4 -5
  181. package/resources/templates/{template-workspace → default}/admin/lib/ui/sheet.tsx +9 -8
  182. package/resources/templates/{template-workspace → default}/admin/lib/ui/sidebar.tsx +53 -42
  183. package/resources/templates/{template-workspace → default}/admin/lib/ui/sortable.tsx +1 -1
  184. package/resources/templates/default/admin/lib/ui/switch.tsx +11 -0
  185. package/resources/templates/{template-workspace → default}/admin/lib/ui/table.tsx +3 -3
  186. package/resources/templates/{template-workspace → default}/admin/lib/ui/textarea.tsx +10 -7
  187. package/resources/templates/{template-workspace → default}/admin/lib/ui/toggle-group.tsx +9 -5
  188. package/resources/templates/{template-workspace → default}/admin/lib/ui/toggle.tsx +3 -5
  189. package/resources/templates/{template-workspace → default}/admin/lib/ui/tooltip.tsx +4 -3
  190. package/resources/templates/{template-workspace → default}/admin/lib/upload/dropzone.tsx +14 -10
  191. package/resources/templates/{template-workspace → default}/admin/lib/upload/repeater.tsx +0 -1
  192. package/resources/templates/{template-workspace → default}/admin/lib/upload/ui.tsx +4 -8
  193. package/resources/templates/{template-workspace → default}/admin/lib/upload/upload-progress.tsx +28 -12
  194. package/resources/templates/{template-workspace → default}/admin/lib/upload/view.tsx +130 -68
  195. package/resources/templates/{template-workspace → default}/admin/lib/utils/createComponentOpenHooks.tsx +10 -6
  196. package/resources/templates/{template-workspace → default}/admin/lib/utils/uic.tsx +24 -14
  197. package/resources/templates/{template-workspace → default}/admin/lib/utils/use-mobile.ts +1 -3
  198. package/resources/templates/{template-workspace → default}/admin/package.json +6 -4
  199. package/resources/templates/default/admin/sentry.ts +26 -0
  200. package/resources/templates/{template-workspace → default}/admin/tsconfig.json +1 -9
  201. package/resources/templates/default/admin/vite-env.d.ts +12 -0
  202. package/resources/templates/default/admin/vite.config.ts +11 -0
  203. package/resources/templates/default/api/README.md +87 -0
  204. package/resources/templates/{template-workspace → default}/biome.json +1 -1
  205. package/resources/templates/default/client/README.md +285 -0
  206. package/resources/templates/{template-workspace → default}/contember.template.yaml +5 -0
  207. package/resources/templates/{template-workspace → default}/package.json +1 -1
  208. package/resources/templates/default/scripts/generate-client.sh +7 -0
  209. package/resources/templates/default/scripts/update-ui-lib.sh +344 -0
  210. package/src/commands/WorkspaceCreateCommand.ts +41 -25
  211. package/src/lib/FileSystem.ts +1 -0
  212. package/src/lib/TemplateInstaller.ts +32 -12
  213. package/src/lib/packageManagerDetector.ts +24 -0
  214. package/src/run.ts +8 -7
  215. package/dist/types/tsconfig.tsbuildinfo +0 -1
  216. package/resources/templates/template-workspace/.gitignore.dist +0 -3
  217. package/resources/templates/template-workspace/admin/app/components/navigation.tsx +0 -1
  218. package/resources/templates/template-workspace/admin/index.css +0 -53
  219. package/resources/templates/template-workspace/admin/index.tsx +0 -268
  220. package/resources/templates/template-workspace/admin/lib/binding/identity.tsx +0 -50
  221. package/resources/templates/template-workspace/admin/lib/datagrid/elements.tsx +0 -48
  222. package/resources/templates/template-workspace/admin/lib/dimensions/dimensions.tsx +0 -135
  223. package/resources/templates/template-workspace/admin/lib/editor/common/buttons.tsx +0 -83
  224. package/resources/templates/template-workspace/admin/lib/editor/common/elements/BlockElement.tsx +0 -48
  225. package/resources/templates/template-workspace/admin/lib/editor/sortable-block.tsx +0 -51
  226. package/resources/templates/template-workspace/admin/lib/form/container.tsx +0 -59
  227. package/resources/templates/template-workspace/admin/lib/form/upload-repeaters.tsx +0 -188
  228. package/resources/templates/template-workspace/admin/lib/select/multi-select.tsx +0 -96
  229. package/resources/templates/template-workspace/admin/lib/select/select.tsx +0 -104
  230. package/resources/templates/template-workspace/admin/lib/select/sortable-select.tsx +0 -136
  231. package/resources/templates/template-workspace/admin/lib/toast/toast.tsx +0 -112
  232. package/resources/templates/template-workspace/admin/lib/ui/button.tsx +0 -29
  233. package/resources/templates/template-workspace/admin/lib/ui/input.tsx +0 -69
  234. package/resources/templates/template-workspace/admin/lib/ui/switch.tsx +0 -9
  235. package/resources/templates/template-workspace/admin/postcss.config.js +0 -6
  236. package/resources/templates/template-workspace/admin/tailwind.config.js +0 -73
  237. package/resources/templates/template-workspace/admin/vite-env.d.ts +0 -7
  238. package/resources/templates/template-workspace/scripts/generate-client.sh +0 -8
  239. package/resources/templates/{template-workspace → default}/.github/scripts/setup-actions-variables.sh +0 -0
  240. package/resources/templates/{template-workspace → default}/admin/app/components/logo.tsx +0 -0
  241. package/resources/templates/{template-workspace → default}/admin/app/config.ts +0 -0
  242. package/resources/templates/{template-workspace → default}/admin/app/index.html +0 -0
  243. package/resources/templates/{template-workspace → default}/admin/app/pages/index.tsx +0 -0
  244. package/resources/templates/{template-workspace → default}/admin/lib/binding/delete.tsx +0 -0
  245. package/resources/templates/{template-workspace → default}/admin/lib/binding/index.ts +0 -0
  246. package/resources/templates/{template-workspace → default}/admin/lib/block-repeater/index.ts +0 -0
  247. package/resources/templates/{template-workspace → default}/admin/lib/board/index.ts +0 -0
  248. package/resources/templates/{template-workspace → default}/admin/lib/buttons/index.ts +0 -0
  249. package/resources/templates/{template-workspace → default}/admin/lib/buttons/link-back-button.tsx +0 -0
  250. package/resources/templates/{template-workspace → default}/admin/lib/datagrid/column-leaf.tsx +0 -0
  251. package/resources/templates/{template-workspace → default}/admin/lib/datagrid/export.tsx +0 -0
  252. package/resources/templates/{template-workspace → default}/admin/lib/datagrid/filters/index.ts +0 -0
  253. package/resources/templates/{template-workspace → default}/admin/lib/datagrid/filters/text.tsx +0 -0
  254. package/resources/templates/{template-workspace → default}/admin/lib/datagrid/grid.tsx +0 -0
  255. package/resources/templates/{template-workspace → default}/admin/lib/datagrid/index.ts +21 -21
  256. /package/resources/templates/{template-workspace → default}/admin/lib/datagrid/layout-switcher.tsx +0 -0
  257. /package/resources/templates/{template-workspace → default}/admin/lib/dev/index.ts +0 -0
  258. /package/resources/templates/{template-workspace → default}/admin/lib/dev/todo.tsx +0 -0
  259. /package/resources/templates/{template-workspace → default}/admin/lib/dimensions/index.ts +0 -0
  260. /package/resources/templates/{template-workspace → default}/admin/lib/editor/common/elements/HorizontalRuleRenderer.tsx +0 -0
  261. /package/resources/templates/{template-workspace → default}/admin/lib/editor/common/elements/ListItemRenderer.tsx +0 -0
  262. /package/resources/templates/{template-workspace → default}/admin/lib/editor/common/elements/OrderedListRenderer.tsx +0 -0
  263. /package/resources/templates/{template-workspace → default}/admin/lib/editor/common/elements/ParagraphRenderer.tsx +0 -0
  264. /package/resources/templates/{template-workspace → default}/admin/lib/editor/common/elements/ScrollTargetRenderer.tsx +0 -0
  265. /package/resources/templates/{template-workspace → default}/admin/lib/editor/common/elements/UnorderedListRenderer.tsx +0 -0
  266. /package/resources/templates/{template-workspace → default}/admin/lib/editor/common/index.ts +0 -0
  267. /package/resources/templates/{template-workspace → default}/admin/lib/editor/index.ts +0 -0
  268. /package/resources/templates/{template-workspace → default}/admin/lib/editor/plugins.tsx +0 -0
  269. /package/resources/templates/{template-workspace → default}/admin/lib/errors/error-boundary.tsx +0 -0
  270. /package/resources/templates/{template-workspace → default}/admin/lib/errors/index.ts +0 -0
  271. /package/resources/templates/{template-workspace → default}/admin/lib/errors/use-error-formatter.ts +0 -0
  272. /package/resources/templates/{template-workspace → default}/admin/lib/field/formatted-field.tsx +0 -0
  273. /package/resources/templates/{template-workspace → default}/admin/lib/field/index.ts +0 -0
  274. /package/resources/templates/{template-workspace → default}/admin/lib/form/index.ts +0 -0
  275. /package/resources/templates/{template-workspace → default}/admin/lib/form/labels.tsx +0 -0
  276. /package/resources/templates/{template-workspace → default}/admin/lib/formatting/formatting.ts +0 -0
  277. /package/resources/templates/{template-workspace → default}/admin/lib/formatting/index.ts +0 -0
  278. /package/resources/templates/{template-workspace → default}/admin/lib/images/formatImageResizeUrl.ts +0 -0
  279. /package/resources/templates/{template-workspace → default}/admin/lib/images/index.ts +0 -0
  280. /package/resources/templates/{template-workspace → default}/admin/lib/labels/index.ts +0 -0
  281. /package/resources/templates/{template-workspace → default}/admin/lib/layout/index.ts +0 -0
  282. /package/resources/templates/{template-workspace → default}/admin/lib/layout/layout.tsx +0 -0
  283. /package/resources/templates/{template-workspace → default}/admin/lib/outdated-application-dialog/index.ts +0 -0
  284. /package/resources/templates/{template-workspace → default}/admin/lib/repeater/index.ts +0 -0
  285. /package/resources/templates/{template-workspace → default}/admin/lib/select/highlight.tsx +0 -0
  286. /package/resources/templates/{template-workspace → default}/admin/lib/select/index.ts +0 -0
  287. /package/resources/templates/{template-workspace → default}/admin/lib/tenant/forms/index.ts +0 -0
  288. /package/resources/templates/{template-workspace → default}/admin/lib/tenant/hooks/useInvite.ts +0 -0
  289. /package/resources/templates/{template-workspace → default}/admin/lib/tenant/index.ts +0 -0
  290. /package/resources/templates/{template-workspace → default}/admin/lib/tenant/listing/index.ts +0 -0
  291. /package/resources/templates/{template-workspace → default}/admin/lib/tenant/otp/index.ts +0 -0
  292. /package/resources/templates/{template-workspace → default}/admin/lib/toast/index.ts +0 -0
  293. /package/resources/templates/{template-workspace → default}/admin/lib/ui/avatar.tsx +0 -0
  294. /package/resources/templates/{template-workspace → default}/admin/lib/ui/collapsible.tsx +0 -0
  295. /package/resources/templates/{template-workspace → default}/admin/lib/ui/divider.tsx +0 -0
  296. /package/resources/templates/{template-workspace → default}/admin/lib/ui/label.tsx +0 -0
  297. /package/resources/templates/{template-workspace → default}/admin/lib/ui/progress.tsx +0 -0
  298. /package/resources/templates/{template-workspace → default}/admin/lib/ui/separator.tsx +0 -0
  299. /package/resources/templates/{template-workspace → default}/admin/lib/ui/skeleton.tsx +0 -0
  300. /package/resources/templates/{template-workspace → default}/admin/lib/upload/index.ts +0 -0
  301. /package/resources/templates/{template-workspace → default}/admin/lib/utils/cn.ts +0 -0
  302. /package/resources/templates/{template-workspace → default}/admin/lib/utils/index.ts +0 -0
  303. /package/resources/templates/{template-workspace → default}/admin/public/favicon.png +0 -0
  304. /package/resources/templates/{template-workspace → default}/api/index.ts +0 -0
  305. /package/resources/templates/{template-workspace → default}/api/migrations/.gitkeep +0 -0
  306. /package/resources/templates/{template-workspace → default}/api/model/index.ts +0 -0
  307. /package/resources/templates/{template-workspace → default}/api/package.json +0 -0
  308. /package/resources/templates/{template-workspace → default}/api/tsconfig.json +0 -0
  309. /package/resources/templates/{template-workspace → default}/client/package.json +0 -0
  310. /package/resources/templates/{template-workspace → default}/client/src/index.ts +0 -0
  311. /package/resources/templates/{template-workspace → default}/client/tsconfig.json +0 -0
  312. /package/resources/templates/{template-workspace → default}/docker-compose.yaml +0 -0
  313. /package/resources/templates/{template-workspace → default}/tsconfig.json +0 -0
  314. /package/resources/templates/{template-workspace → default}/tsconfig.settings.json +0 -0
@@ -21,33 +21,34 @@ export const DropdownMenuSub = DropdownMenuPrimitive.Sub
21
21
 
22
22
  export const DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup
23
23
 
24
-
25
24
  export const DropdownMenuSubTrigger = uic(DropdownMenuPrimitive.SubTrigger, {
26
- baseClass: 'flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent',
27
- beforeChildren: (
28
- <ChevronRight className="ml-auto h-4 w-4" />
29
- ),
25
+ baseClass: 'flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-hidden focus:bg-accent data-[state=open]:bg-accent',
26
+ beforeChildren: <ChevronRight className="ml-auto h-4 w-4" />,
30
27
  displayName: 'DropdownMenuSubTrigger',
31
28
  })
32
29
 
33
30
  export const DropdownMenuSubContent = uic(DropdownMenuPrimitive.SubContent, {
34
- baseClass: 'z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2',
31
+ baseClass:
32
+ 'z-50 min-w-[8rem] overflow-hidden rounded-md border border-gray-200 bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2',
35
33
  displayName: 'DropdownMenuSubContent',
36
34
  })
37
35
 
38
36
  export const DropdownMenuContent = uic(DropdownMenuPrimitive.DropdownMenuContent, {
39
37
  wrapOuter: ({ children }) => <DropdownMenuPrimitive.Portal>{children}</DropdownMenuPrimitive.Portal>,
40
- baseClass: 'z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2',
38
+ baseClass:
39
+ 'z-50 min-w-[8rem] overflow-hidden rounded-md border border-gray-200 bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2',
41
40
  displayName: 'DropdownMenuContent',
42
41
  })
43
42
 
44
43
  export const DropdownMenuItem = uic(DropdownMenuPrimitive.Item, {
45
- baseClass: 'relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50',
44
+ baseClass:
45
+ 'relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-hidden transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50',
46
46
  displayName: 'DropdownMenuItem',
47
47
  })
48
48
 
49
49
  export const DropdownMenuCheckboxItem = uic(DropdownMenuPrimitive.CheckboxItem, {
50
- baseClass: 'relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50',
50
+ baseClass:
51
+ 'relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-hidden transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50',
51
52
  beforeChildren: (
52
53
  <span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">
53
54
  <DropdownMenuPrimitive.ItemIndicator>
@@ -59,7 +60,8 @@ export const DropdownMenuCheckboxItem = uic(DropdownMenuPrimitive.CheckboxItem,
59
60
  })
60
61
 
61
62
  export const DropdownMenuRadioItem = uic(DropdownMenuPrimitive.RadioItem, {
62
- baseClass: 'relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50',
63
+ baseClass:
64
+ 'relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-hidden transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50',
63
65
  beforeChildren: (
64
66
  <span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">
65
67
  <DropdownMenuPrimitive.ItemIndicator>
@@ -70,7 +72,6 @@ export const DropdownMenuRadioItem = uic(DropdownMenuPrimitive.RadioItem, {
70
72
  displayName: 'DropdownMenuRadioItem',
71
73
  })
72
74
 
73
-
74
75
  export const DropdownMenuLabel = uic(DropdownMenuPrimitive.Label, {
75
76
  baseClass: 'px-2 py-1.5 text-sm font-semibold',
76
77
  displayName: 'DropdownMenuLabel',
@@ -93,10 +94,12 @@ export const DropDownTriggerButton = uic('button', {
93
94
  variant: 'ghost',
94
95
  },
95
96
  displayName: 'DropDownTriggerButton',
96
- beforeChildren: <>
97
- <MoreHorizontalIcon className="h-4 w-4" />
98
- <span className="sr-only">Open menu</span>
99
- </>,
97
+ beforeChildren: (
98
+ <>
99
+ <MoreHorizontalIcon className="h-4 w-4" />
100
+ <span className="sr-only">Open menu</span>
101
+ </>
102
+ ),
100
103
  })
101
104
 
102
105
  export const DefaultDropdown = ({ children }: { children: ReactNode }) => (
@@ -0,0 +1,68 @@
1
+ import { uic, uiconfig } from '../utils'
2
+
3
+ export const inputConfig = uiconfig({
4
+ baseClass: [
5
+ 'flex w-full bg-background',
6
+ 'file:border-0 file:bg-transparent file:text-sm file:font-medium',
7
+ 'placeholder:text-muted-foreground',
8
+ 'focus-visible:outline-none',
9
+ 'disabled:cursor-not-allowed disabled:opacity-50',
10
+ 'read-only:bg-gray-100',
11
+ // Uncomment this if you want to see inputs in dirty state
12
+ // 'data-[dirty]:border-yellow-500 focus-visible:data-[dirty]:border-input',
13
+ 'data-[invalid]:border-destructive data-[invalid]:ring-destructive',
14
+ ],
15
+ variants: {
16
+ inputSize: {
17
+ default: 'h-10 rounded-md p-2 text-sm',
18
+ sm: 'h-8 rounded-sm p-1 text-sm',
19
+ lg: 'h-12 rounded-lg p-3 text-lg',
20
+ },
21
+ variant: {
22
+ default: 'border border-input ring-offset-background focus-visible:ring-2 focus-visible:ring-ring',
23
+ ghost: 'border-transparent border-b border-gray-200 focus-visible:ring-transparent rounded-none',
24
+ },
25
+ },
26
+ defaultVariants: {
27
+ variant: 'default',
28
+ inputSize: 'default',
29
+ },
30
+ })
31
+
32
+ export const Input = uic('input', {
33
+ ...inputConfig,
34
+ displayName: 'Input',
35
+ })
36
+
37
+ export const InputLike = uic('div', {
38
+ baseClass: [
39
+ 'flex items-center min-h-10 w-full rounded-md border border-input bg-background p-2 text-sm ring-offset-background',
40
+ 'file:border-0 file:bg-transparent file:text-sm file:font-medium',
41
+ 'placeholder:text-muted-foreground',
42
+ 'focus-within:outline-none focus-within:ring-2 focus-within:ring-ring focus-within:ring-offset-2',
43
+ 'disabled:cursor-not-allowed disabled:opacity-50',
44
+ ],
45
+ displayName: 'InputLike',
46
+ })
47
+
48
+ /**
49
+ * without any styling, without ring, border etc; so it must be resetted
50
+ */
51
+ export const InputBare = uic('input', {
52
+ baseClass: 'w-full h-full focus-visible:outline-hidden',
53
+ displayName: 'InputBare',
54
+ })
55
+
56
+ export const CheckboxInput = uic('input', {
57
+ baseClass: 'w-4 h-4',
58
+ defaultProps: {
59
+ type: 'checkbox',
60
+ },
61
+ })
62
+
63
+ export const RadioInput = uic('input', {
64
+ baseClass: `
65
+ appearance-none bg-background rounded-full w-4 h-4 ring-1 ring-gray-400 hover:ring-gray-600 grid place-items-center
66
+ before:rounded-full before:bg-gray-600 before:w-2 before:h-2 before:ring-2 before:ring-white before:content-[''] before:transform before:transition-all before:scale-0 checked:before:scale-100
67
+ `,
68
+ })
@@ -21,7 +21,7 @@ export const LoaderIcon = uic(Loader2Icon, {
21
21
  },
22
22
  })
23
23
 
24
- export const Loader = ({ size, ...props }: LoaderProps) => {
24
+ export const Loader = ({ size, ...props }: LoaderProps) => {
25
25
  return (
26
26
  <Overlay {...props}>
27
27
  <LoaderIcon size={size} />
@@ -1,10 +1,4 @@
1
- import {
2
- Link,
3
- type RoleCondition,
4
- type RoutingLinkTarget,
5
- useCurrentRequest,
6
- useProjectUserRoles,
7
- } from '@contember/interface'
1
+ import { Link, type RoleCondition, type RoutingLinkTarget, useCurrentRequest, useProjectUserRoles } from '@contember/interface'
8
2
  import { createContext } from '@contember/react-utils'
9
3
  import { VariantProps } from 'class-variance-authority'
10
4
  import { ChevronRight } from 'lucide-react'
@@ -55,7 +49,7 @@ const useHasActiveChild = (children: ReactNode) => {
55
49
  const checkChild = (child: ReactNode): boolean => {
56
50
  if (!isValidElement(child)) return false
57
51
 
58
- const { to, children: grandChildren } = child.props
52
+ const { to, children: grandChildren } = child.props as Record<string, any>
59
53
 
60
54
  if (to && isMatchingPage(to)) return true
61
55
 
@@ -110,9 +104,7 @@ export const MenuItem = ({ icon, label, to, children, role, expandedByDefault, .
110
104
  <SidebarMenuButton isActive={isActive} tooltip={label} {...menuButtonProps}>
111
105
  {icon}
112
106
  <span>{label}</span>
113
- {hasChildren && (
114
- <ChevronRight className="ml-auto transition-transform duration-200" />
115
- )}
107
+ {hasChildren && <ChevronRight className="ml-auto transition-transform duration-200" />}
116
108
  </SidebarMenuButton>
117
109
  </CollapsibleTrigger>
118
110
  {hasChildren && (
@@ -8,7 +8,7 @@ export interface OverlayProps {
8
8
  showImmediately?: boolean
9
9
  }
10
10
 
11
- export const Overlay = ({ position = 'fixed', className, children, showImmediately }: OverlayProps) => {
11
+ export const Overlay = ({ position = 'fixed', className, children, showImmediately }: OverlayProps) => {
12
12
  const [show, setShow] = React.useState(showImmediately ?? false)
13
13
  React.useEffect(() => {
14
14
  requestAnimationFrame(() => {
@@ -17,14 +17,16 @@ export const Overlay = ({ position = 'fixed', className, children, showImmediat
17
17
  }, [])
18
18
 
19
19
  return (
20
- <div className={cn(
21
- 'z-50 bg-white bg-opacity-50 backdrop-blur-sm transition-all duration-300 delay-200',
22
- show ? 'opacity-100' : 'opacity-0',
23
- position === 'fixed' && 'w-full h-full fixed top-0 left-0',
24
- position === 'absolute' && 'w-full h-full absolute top-0 left-0',
25
- position === 'static' && '',
26
- className,
27
- )}>
20
+ <div
21
+ className={cn(
22
+ 'z-50 bg-background/50 backdrop-blur-xs transition-all duration-300 delay-200',
23
+ show ? 'opacity-100' : 'opacity-0',
24
+ position === 'fixed' && 'w-full h-full fixed top-0 left-0',
25
+ position === 'absolute' && 'w-full h-full absolute top-0 left-0',
26
+ position === 'static' && '',
27
+ className,
28
+ )}
29
+ >
28
30
  <div className="flex justify-center items-center h-full w-full">
29
31
  {children}
30
32
  </div>
@@ -19,7 +19,7 @@ const PopoverContent = React.forwardRef<
19
19
  align={align}
20
20
  sideOffset={sideOffset}
21
21
  className={cn(
22
- 'z-50 min-w-40 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none',
22
+ 'z-50 min-w-40 rounded-md border border-gray-200 bg-popover p-4 text-popover-foreground shadow-md outline-hidden',
23
23
  'data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2',
24
24
  className,
25
25
  )}
@@ -29,4 +29,4 @@ const PopoverContent = React.forwardRef<
29
29
  ))
30
30
  PopoverContent.displayName = PopoverPrimitive.Content.displayName
31
31
 
32
- export { Popover, PopoverTrigger, PopoverContent, PopoverAnchor }
32
+ export { Popover, PopoverAnchor, PopoverContent, PopoverTrigger }
@@ -2,7 +2,7 @@ import { ReactNode } from 'react'
2
2
  import { uic } from '../utils'
3
3
 
4
4
  export const PropertyList = uic('div', {
5
- baseClass: 'relative overflow-auto bg-gray-50/50 max-w-lg border rounded-md grid grid-cols-[max-content,1fr]',
5
+ baseClass: 'relative overflow-auto bg-gray-50/50 max-w-lg border border-gray-200 rounded-md grid grid-cols-[max-content_1fr]',
6
6
  displayName: 'PropertyList',
7
7
  })
8
8
 
@@ -11,23 +11,23 @@ export const PropertyRow = uic('div', {
11
11
  })
12
12
 
13
13
  export const PropertyLabel = uic('div', {
14
- baseClass: 'text-sm min-w-32 border-b group-last:border-b-none px-4 py-3',
14
+ baseClass: 'text-sm min-w-32 border-b border-gray-200 group-last:border-b-none px-4 py-3',
15
15
  displayName: 'PropertyLabel',
16
16
  })
17
17
 
18
18
  export const PropertyValue = uic('div', {
19
- baseClass: 'text-sm font-semibold border-b group-last:border-b-none px-4 py-3',
19
+ baseClass: 'text-sm font-semibold border-b border-gray-200 group-last:border-b-none px-4 py-3',
20
20
  displayName: 'PropertyValue',
21
21
  })
22
22
 
23
23
  /**
24
24
  * Shortcut for creating a property list item with a label and a value.
25
25
  */
26
- export const PropertyItem = (({ label, children }: { label: string; children: ReactNode }) => {
26
+ export const PropertyItem = ({ label, children }: { label: string; children: ReactNode }) => {
27
27
  return (
28
28
  <PropertyRow>
29
29
  <PropertyLabel>{label}</PropertyLabel>
30
30
  <PropertyValue>{children}</PropertyValue>
31
31
  </PropertyRow>
32
32
  )
33
- })
33
+ }
@@ -3,8 +3,8 @@ import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area'
3
3
  import { cn } from '../utils'
4
4
 
5
5
  const ScrollArea = React.forwardRef<
6
- React.ElementRef<typeof ScrollAreaPrimitive.Root>,
7
- React.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.Root>
6
+ React.ElementRef<typeof ScrollAreaPrimitive.Root>,
7
+ React.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.Root>
8
8
  >(({ className, children, ...props }, ref) => (
9
9
  <ScrollAreaPrimitive.Root
10
10
  ref={ref}
@@ -14,30 +14,30 @@ const ScrollArea = React.forwardRef<
14
14
  <ScrollAreaPrimitive.Viewport className={cn('h-full w-full rounded-[inherit]', className)}>
15
15
  {children}
16
16
  </ScrollAreaPrimitive.Viewport>
17
- <ScrollBar/>
18
- <ScrollAreaPrimitive.Corner/>
17
+ <ScrollBar />
18
+ <ScrollAreaPrimitive.Corner />
19
19
  </ScrollAreaPrimitive.Root>
20
20
  ))
21
21
  ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName
22
22
 
23
23
  const ScrollBar = React.forwardRef<
24
- React.ElementRef<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>,
25
- React.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>
24
+ React.ElementRef<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>,
25
+ React.ComponentPropsWithoutRef<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>
26
26
  >(({ className, orientation = 'vertical', ...props }, ref) => (
27
27
  <ScrollAreaPrimitive.ScrollAreaScrollbar
28
28
  ref={ref}
29
29
  orientation={orientation}
30
30
  className={cn(
31
31
  'flex touch-none select-none transition-colors',
32
- orientation === 'vertical' &&
33
- 'h-full w-2.5 border-l border-l-transparent p-[1px]',
34
- orientation === 'horizontal' &&
35
- 'h-2.5 flex-col border-t border-t-transparent p-[1px]',
32
+ orientation === 'vertical'
33
+ && 'h-full w-2.5 border-l border-l-transparent p-[1px]',
34
+ orientation === 'horizontal'
35
+ && 'h-2.5 flex-col border-t border-t-transparent p-[1px]',
36
36
  className,
37
37
  )}
38
38
  {...props}
39
39
  >
40
- <ScrollAreaPrimitive.ScrollAreaThumb className="relative flex-1 rounded-full bg-border"/>
40
+ <ScrollAreaPrimitive.ScrollAreaThumb className="relative flex-1 rounded-full bg-border" />
41
41
  </ScrollAreaPrimitive.ScrollAreaScrollbar>
42
42
  ))
43
43
  ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName
@@ -11,7 +11,7 @@ export const SelectValue = SelectPrimitive.Value
11
11
 
12
12
  export const SelectTrigger = uic(SelectPrimitive.Trigger, {
13
13
  baseClass:
14
- 'flex gap-1 h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1',
14
+ 'flex gap-1 h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1',
15
15
  afterChildren: (
16
16
  <SelectPrimitive.Icon asChild>
17
17
  <ChevronDown className="h-4 w-4 opacity-50" />
@@ -34,12 +34,11 @@ export const SelectScrollDownButton = uic(SelectPrimitive.ScrollDownButton, {
34
34
 
35
35
  export const SelectContent = uic(SelectPrimitive.Content, {
36
36
  baseClass:
37
- 'relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2',
37
+ 'relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border border-gray-200 bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2',
38
38
  displayName: SelectPrimitive.Content.displayName,
39
39
  variants: {
40
40
  position: {
41
- popper:
42
- 'data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1',
41
+ popper: 'data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1',
43
42
  },
44
43
  },
45
44
  defaultVariants: {
@@ -63,7 +62,7 @@ export const SelectLabel = uic(SelectPrimitive.Label, {
63
62
 
64
63
  export const SelectItem = uic(SelectPrimitive.Item, {
65
64
  baseClass:
66
- 'relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50',
65
+ 'relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50',
67
66
  beforeChildren: (
68
67
  <span className="absolute left-2 flex h-3.5 w-3.5 items-center justify-center">
69
68
  <SelectPrimitive.ItemIndicator>
@@ -13,17 +13,20 @@ export const SheetClose = SheetPrimitive.Close
13
13
  export const SheetPortal = SheetPrimitive.Portal
14
14
 
15
15
  export const SheetOverlay = uic(SheetPrimitive.Overlay, {
16
- baseClass: 'fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0',
16
+ baseClass:
17
+ 'fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0',
17
18
  displayName: 'SheetOverlay',
18
19
  })
19
20
 
20
21
  export const SheetContent = uic(SheetPrimitive.Content, {
21
- baseClass: 'fixed z-50 gap-4 bg-background p-6 shadow-lg overflow-auto transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500',
22
+ baseClass:
23
+ 'fixed z-50 gap-4 bg-background p-6 shadow-lg overflow-auto transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500',
22
24
  variants: {
23
25
  side: {
24
- top: 'inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top',
25
- bottom: 'inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom',
26
- left: 'inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm',
26
+ top: 'inset-x-0 top-0 border-b border-gray-200 data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top',
27
+ bottom: 'inset-x-0 bottom-0 border-t border-gray-200 data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom',
28
+ left:
29
+ 'inset-y-0 left-0 h-full w-3/4 border-r border-gray-200 data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm',
27
30
  right: 'inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm',
28
31
  },
29
32
  },
@@ -35,7 +38,7 @@ export const SheetContent = uic(SheetPrimitive.Content, {
35
38
  <SheetPortal>
36
39
  {/*<SheetOverlay />*/}
37
40
  {props.children}
38
- <SheetPrimitive.Close className="absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary">
41
+ <SheetPrimitive.Close className="absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary">
39
42
  <XIcon className="h-4 w-4" />
40
43
  <span className="sr-only">Close</span>
41
44
  </SheetPrimitive.Close>
@@ -43,13 +46,11 @@ export const SheetContent = uic(SheetPrimitive.Content, {
43
46
  ),
44
47
  })
45
48
 
46
-
47
49
  export const SheetHeader = uic('div', {
48
50
  baseClass: 'flex flex-col space-y-2 text-center sm:text-left',
49
51
  displayName: 'SheetHeader',
50
52
  })
51
53
 
52
-
53
54
  export const SheetFooter = uic('div', {
54
55
  baseClass: 'flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2',
55
56
  displayName: 'SheetFooter',