@oyolincc/create 0.4.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (391) hide show
  1. package/package.json +2 -2
  2. package/templates/hono-fullstack/.codegraph/.gitignore +5 -0
  3. package/templates/hono-fullstack/README.md +22 -1
  4. package/templates/hono-fullstack/_gitignore +1 -0
  5. package/templates/hono-fullstack/apps/server/package.json +7 -2
  6. package/templates/hono-fullstack/apps/server/src/adapters/cloudflare/entry.ts +4 -30
  7. package/templates/hono-fullstack/apps/server/src/adapters/nodejs/bootstrap.ts +20 -12
  8. package/templates/hono-fullstack/apps/server/src/adapters/nodejs/entry.ts +7 -57
  9. package/templates/hono-fullstack/apps/server/src/app.ts +37 -21
  10. package/templates/hono-fullstack/apps/server/src/config.ts +1 -1
  11. package/templates/hono-fullstack/apps/server/src/di-container.ts +51 -0
  12. package/templates/hono-fullstack/apps/server/src/infra/logger/getter.ts +1 -1
  13. package/templates/hono-fullstack/apps/server/src/infra/logger/pino.ts +21 -34
  14. package/templates/hono-fullstack/apps/server/src/infra/work-runner/errors.ts +22 -0
  15. package/templates/hono-fullstack/apps/server/src/infra/work-runner/pass-through/runner.ts +28 -22
  16. package/templates/hono-fullstack/apps/server/src/infra/work-runner/piscina/runner.ts +11 -34
  17. package/templates/hono-fullstack/apps/server/src/infra/work-runner/{example → piscina}/worker-entry.ts +6 -2
  18. package/templates/hono-fullstack/apps/server/src/infra/work-runner/types.ts +2 -16
  19. package/templates/hono-fullstack/apps/server/src/infra/work-runner/utils/business-error.ts +10 -5
  20. package/templates/hono-fullstack/apps/server/src/infra/work-runner/utils/message.ts +5 -17
  21. package/templates/hono-fullstack/apps/server/src/middlewares/cors.ts +16 -22
  22. package/templates/hono-fullstack/apps/server/src/middlewares/logger.ts +34 -0
  23. package/templates/hono-fullstack/apps/server/src/modules/example/module.ts +8 -0
  24. package/templates/hono-fullstack/apps/server/src/modules/example/queries.ts +8 -0
  25. package/templates/hono-fullstack/apps/server/src/modules/example/routes.ts +74 -68
  26. package/templates/hono-fullstack/apps/server/src/modules/example/service.test.ts +53 -0
  27. package/templates/hono-fullstack/apps/server/src/modules/example/service.ts +54 -0
  28. package/templates/hono-fullstack/apps/server/src/modules/example/types.ts +12 -0
  29. package/templates/hono-fullstack/apps/server/src/modules/example/work-task/tasks.test.ts +9 -35
  30. package/templates/hono-fullstack/apps/server/src/modules/example/work-task/tasks.ts +15 -46
  31. package/templates/hono-fullstack/apps/server/src/shared/errors/defs/index.ts +6 -1
  32. package/templates/hono-fullstack/apps/server/src/shared/errors/handler.ts +1 -1
  33. package/templates/hono-fullstack/apps/server/src/shared/network/openapi/index.ts +1 -1
  34. package/templates/hono-fullstack/apps/server/src/shared/types/app.ts +51 -0
  35. package/templates/hono-fullstack/apps/server/src/shared/types/db.ts +126 -0
  36. package/templates/hono-fullstack/apps/server/src/shared/utils/data-access/check.ts +19 -0
  37. package/templates/hono-fullstack/apps/server/src/shared/utils/data-access/model.ts +47 -0
  38. package/templates/hono-fullstack/apps/server/src/shared/utils/data-access/params.ts +105 -0
  39. package/templates/hono-fullstack/apps/server/src/shared/utils/data-access/query.test.ts +139 -0
  40. package/templates/hono-fullstack/apps/server/src/shared/utils/data-access/query.ts +236 -0
  41. package/templates/hono-fullstack/apps/server/vite.config.ts +2 -2
  42. package/templates/hono-fullstack/apps/server/wrangler.jsonc +1 -1
  43. package/templates/hono-fullstack/apps/stack/frontend/assets/styles.css +6 -0
  44. package/templates/hono-fullstack/apps/stack/frontend/components/general/ErrorMessage.tsx +3 -1
  45. package/templates/hono-fullstack/apps/stack/frontend/components/layouts/AppLayout.tsx +2 -1
  46. package/templates/hono-fullstack/apps/stack/frontend/components/layouts/Header.tsx +14 -2
  47. package/templates/hono-fullstack/apps/stack/frontend/components/layouts/Page.tsx +2 -1
  48. package/templates/hono-fullstack/apps/stack/frontend/components/layouts/PageContainer.tsx +4 -1
  49. package/templates/hono-fullstack/apps/stack/frontend/modules/example/api.ts +16 -9
  50. package/templates/hono-fullstack/apps/stack/frontend/modules/example/components/ExampleForm.tsx +25 -12
  51. package/templates/hono-fullstack/apps/stack/frontend/modules/example/components/ExampleList.tsx +13 -4
  52. package/templates/hono-fullstack/apps/stack/frontend/modules/example/hooks/api-hooks.ts +3 -3
  53. package/templates/hono-fullstack/apps/stack/frontend/routes/__root.tsx +1 -1
  54. package/templates/hono-fullstack/apps/stack/frontend/routes/index.tsx +16 -4
  55. package/templates/hono-fullstack/apps/stack/package.json +9 -4
  56. package/templates/hono-fullstack/apps/stack/panda.config.ts +31 -0
  57. package/templates/hono-fullstack/apps/stack/tsconfig.json +1 -0
  58. package/templates/hono-fullstack/apps/stack/turbo.json +20 -0
  59. package/templates/hono-fullstack/apps/stack/vite.config.ts +48 -12
  60. package/templates/hono-fullstack/apps/stack/wrangler.jsonc +1 -1
  61. package/templates/hono-fullstack/envs/.env.example.sqlite-d1 +1 -0
  62. package/templates/hono-fullstack/libs/db/drizzle-kit/sqlite-d1.config.ts +29 -10
  63. package/templates/hono-fullstack/libs/db/package.json +1 -0
  64. package/templates/hono-fullstack/libs/db/src/dialects/sqlite/schema/columns.ts +1 -1
  65. package/templates/hono-fullstack/libs/db/src/dialects/sqlite/schema/modules/examples/examples.ts +6 -3
  66. package/templates/hono-fullstack/libs/db/src/dialects/sqlite/schema/vo.ts +7 -1
  67. package/templates/hono-fullstack/libs/definition/README.md +81 -0
  68. package/templates/hono-fullstack/libs/definition/package.json +3 -1
  69. package/templates/hono-fullstack/libs/definition/src/constants/index.ts +1 -0
  70. package/templates/hono-fullstack/libs/definition/src/constants/pagination.ts +3 -0
  71. package/templates/hono-fullstack/libs/definition/src/modules/common-contracts.ts +24 -0
  72. package/templates/hono-fullstack/libs/definition/src/modules/example/contracts.ts +34 -0
  73. package/templates/hono-fullstack/libs/definition/src/modules/example/index.ts +1 -16
  74. package/templates/hono-fullstack/libs/definition/src/modules/index.ts +2 -0
  75. package/templates/hono-fullstack/libs/definition/src/modules/vo-generated-types.ts +12 -0
  76. package/templates/hono-fullstack/libs/ui/.storybook/main.ts +32 -0
  77. package/templates/hono-fullstack/libs/ui/.storybook/panda.config.ts +22 -0
  78. package/templates/hono-fullstack/libs/ui/.storybook/preview.tsx +79 -0
  79. package/templates/hono-fullstack/libs/ui/.storybook/styles.css +1 -0
  80. package/templates/hono-fullstack/libs/ui/.storybook/vite.config.ts +37 -0
  81. package/templates/hono-fullstack/libs/ui/components.json +15 -0
  82. package/templates/hono-fullstack/libs/ui/package.json +114 -0
  83. package/templates/hono-fullstack/libs/ui/panda.config.ts +41 -0
  84. package/templates/hono-fullstack/libs/ui/src/Tooltip.tsx +47 -0
  85. package/templates/hono-fullstack/libs/ui/src/components/atoms/buttons/Button.tsx +80 -0
  86. package/templates/hono-fullstack/libs/ui/src/components/atoms/buttons/CloseButton.tsx +15 -0
  87. package/templates/hono-fullstack/libs/ui/src/components/atoms/buttons/IconButton.tsx +10 -0
  88. package/templates/hono-fullstack/libs/ui/src/components/atoms/collections/Combobox.tsx +91 -0
  89. package/templates/hono-fullstack/libs/ui/src/components/atoms/collections/Select.tsx +88 -0
  90. package/templates/hono-fullstack/libs/ui/src/components/atoms/collections/TreeView.tsx +142 -0
  91. package/templates/hono-fullstack/libs/ui/src/components/atoms/data-display/Avatar.tsx +64 -0
  92. package/templates/hono-fullstack/libs/ui/src/components/atoms/data-display/Badge.tsx +7 -0
  93. package/templates/hono-fullstack/libs/ui/src/components/atoms/data-display/Card.tsx +23 -0
  94. package/templates/hono-fullstack/libs/ui/src/components/atoms/data-display/Clipboard.tsx +77 -0
  95. package/templates/hono-fullstack/libs/ui/src/components/atoms/data-display/Icon.tsx +9 -0
  96. package/templates/hono-fullstack/libs/ui/src/components/atoms/data-display/Table.tsx +51 -0
  97. package/templates/hono-fullstack/libs/ui/src/components/atoms/data-display/Tag.tsx +23 -0
  98. package/templates/hono-fullstack/libs/ui/src/components/atoms/data-display/Timeline.tsx +33 -0
  99. package/templates/hono-fullstack/libs/ui/src/components/atoms/date-and-time/DatePicker.tsx +255 -0
  100. package/templates/hono-fullstack/libs/ui/src/components/atoms/disclosure/Accordion.tsx +48 -0
  101. package/templates/hono-fullstack/libs/ui/src/components/atoms/disclosure/Breadcrumb.tsx +50 -0
  102. package/templates/hono-fullstack/libs/ui/src/components/atoms/disclosure/Collapsible.tsx +34 -0
  103. package/templates/hono-fullstack/libs/ui/src/components/atoms/disclosure/Pagination.tsx +74 -0
  104. package/templates/hono-fullstack/libs/ui/src/components/atoms/disclosure/Steps.tsx +91 -0
  105. package/templates/hono-fullstack/libs/ui/src/components/atoms/disclosure/Tabs.tsx +37 -0
  106. package/templates/hono-fullstack/libs/ui/src/components/atoms/feedback/Alert.tsx +52 -0
  107. package/templates/hono-fullstack/libs/ui/src/components/atoms/feedback/Progress.tsx +41 -0
  108. package/templates/hono-fullstack/libs/ui/src/components/atoms/feedback/ProgressCircle.tsx +40 -0
  109. package/templates/hono-fullstack/libs/ui/src/components/atoms/feedback/Skeleton.tsx +37 -0
  110. package/templates/hono-fullstack/libs/ui/src/components/atoms/feedback/Spinner.tsx +7 -0
  111. package/templates/hono-fullstack/libs/ui/src/components/atoms/feedback/Toast.tsx +99 -0
  112. package/templates/hono-fullstack/libs/ui/src/components/atoms/forms/Checkbox.tsx +95 -0
  113. package/templates/hono-fullstack/libs/ui/src/components/atoms/forms/ColorPicker.tsx +148 -0
  114. package/templates/hono-fullstack/libs/ui/src/components/atoms/forms/Editable.tsx +44 -0
  115. package/templates/hono-fullstack/libs/ui/src/components/atoms/forms/Field.tsx +36 -0
  116. package/templates/hono-fullstack/libs/ui/src/components/atoms/forms/Fieldset.tsx +34 -0
  117. package/templates/hono-fullstack/libs/ui/src/components/atoms/forms/FileUpload.tsx +143 -0
  118. package/templates/hono-fullstack/libs/ui/src/components/atoms/forms/Input.tsx +7 -0
  119. package/templates/hono-fullstack/libs/ui/src/components/atoms/forms/InputAddon.tsx +7 -0
  120. package/templates/hono-fullstack/libs/ui/src/components/atoms/forms/InputGroup.tsx +61 -0
  121. package/templates/hono-fullstack/libs/ui/src/components/atoms/forms/NativeSelect.tsx +81 -0
  122. package/templates/hono-fullstack/libs/ui/src/components/atoms/forms/NumberInput.tsx +63 -0
  123. package/templates/hono-fullstack/libs/ui/src/components/atoms/forms/PasswordInput.tsx +76 -0
  124. package/templates/hono-fullstack/libs/ui/src/components/atoms/forms/PinInput.tsx +36 -0
  125. package/templates/hono-fullstack/libs/ui/src/components/atoms/forms/RadioCard.tsx +96 -0
  126. package/templates/hono-fullstack/libs/ui/src/components/atoms/forms/RadioGroup.tsx +61 -0
  127. package/templates/hono-fullstack/libs/ui/src/components/atoms/forms/RatingGroup.tsx +106 -0
  128. package/templates/hono-fullstack/libs/ui/src/components/atoms/forms/SegmentGroup.tsx +68 -0
  129. package/templates/hono-fullstack/libs/ui/src/components/atoms/forms/Slider.tsx +87 -0
  130. package/templates/hono-fullstack/libs/ui/src/components/atoms/forms/Switch.tsx +74 -0
  131. package/templates/hono-fullstack/libs/ui/src/components/atoms/forms/TagsInput.tsx +77 -0
  132. package/templates/hono-fullstack/libs/ui/src/components/atoms/forms/Textarea.tsx +7 -0
  133. package/templates/hono-fullstack/libs/ui/src/components/atoms/index.ts +98 -0
  134. package/templates/hono-fullstack/libs/ui/src/components/atoms/internal/AbsoluteCenter.tsx +7 -0
  135. package/templates/hono-fullstack/libs/ui/src/components/atoms/internal/Loader.tsx +69 -0
  136. package/templates/hono-fullstack/libs/ui/src/components/atoms/internal/Span.tsx +5 -0
  137. package/templates/hono-fullstack/libs/ui/src/components/atoms/internal/create-layout.ts +18 -0
  138. package/templates/hono-fullstack/libs/ui/src/components/atoms/layout/Float.tsx +7 -0
  139. package/templates/hono-fullstack/libs/ui/src/components/atoms/layout/Grid.tsx +17 -0
  140. package/templates/hono-fullstack/libs/ui/src/components/atoms/layout/Group.tsx +7 -0
  141. package/templates/hono-fullstack/libs/ui/src/components/atoms/layout/ScrollArea.tsx +46 -0
  142. package/templates/hono-fullstack/libs/ui/src/components/atoms/layout/Separator.tsx +26 -0
  143. package/templates/hono-fullstack/libs/ui/src/components/atoms/layout/Stack.tsx +54 -0
  144. package/templates/hono-fullstack/libs/ui/src/components/atoms/overlays/Dialog.tsx +69 -0
  145. package/templates/hono-fullstack/libs/ui/src/components/atoms/overlays/Drawer.tsx +49 -0
  146. package/templates/hono-fullstack/libs/ui/src/components/atoms/overlays/HoverCard.tsx +37 -0
  147. package/templates/hono-fullstack/libs/ui/src/components/atoms/overlays/Menu.tsx +74 -0
  148. package/templates/hono-fullstack/libs/ui/src/components/atoms/overlays/OverlayManager.test.ts +124 -0
  149. package/templates/hono-fullstack/libs/ui/src/components/atoms/overlays/OverlayManager.tsx +189 -0
  150. package/templates/hono-fullstack/libs/ui/src/components/atoms/overlays/Popover.tsx +57 -0
  151. package/templates/hono-fullstack/libs/ui/src/components/atoms/overlays/Tooltip.tsx +37 -0
  152. package/templates/hono-fullstack/libs/ui/src/components/atoms/typography/Heading.tsx +6 -0
  153. package/templates/hono-fullstack/libs/ui/src/components/atoms/typography/Link.tsx +7 -0
  154. package/templates/hono-fullstack/libs/ui/src/components/atoms/typography/LinkOverlay.tsx +21 -0
  155. package/templates/hono-fullstack/libs/ui/src/components/atoms/typography/Text.tsx +6 -0
  156. package/templates/hono-fullstack/libs/ui/src/components/atoms/utilities/VisuallyHidden.tsx +13 -0
  157. package/templates/hono-fullstack/libs/ui/src/hooks.ts +242 -0
  158. package/templates/hono-fullstack/libs/ui/src/index.ts +19 -0
  159. package/templates/hono-fullstack/libs/ui/src/theme/animation-styles.ts +50 -0
  160. package/templates/hono-fullstack/libs/ui/src/theme/breakpoints.ts +7 -0
  161. package/templates/hono-fullstack/libs/ui/src/theme/conditions.ts +12 -0
  162. package/templates/hono-fullstack/libs/ui/src/theme/containers.ts +16 -0
  163. package/templates/hono-fullstack/libs/ui/src/theme/global-css.ts +12 -0
  164. package/templates/hono-fullstack/libs/ui/src/theme/keyframes.ts +157 -0
  165. package/templates/hono-fullstack/libs/ui/src/theme/layer-styles.ts +11 -0
  166. package/templates/hono-fullstack/libs/ui/src/theme/patterns/grid.ts +51 -0
  167. package/templates/hono-fullstack/libs/ui/src/theme/patterns/index.ts +60 -0
  168. package/templates/hono-fullstack/libs/ui/src/theme/patterns/stack.ts +46 -0
  169. package/templates/hono-fullstack/libs/ui/src/theme/recipes/absolute-center.ts +38 -0
  170. package/templates/hono-fullstack/libs/ui/src/theme/recipes/accordion.ts +68 -0
  171. package/templates/hono-fullstack/libs/ui/src/theme/recipes/alert.ts +83 -0
  172. package/templates/hono-fullstack/libs/ui/src/theme/recipes/avatar.ts +155 -0
  173. package/templates/hono-fullstack/libs/ui/src/theme/recipes/badge.ts +67 -0
  174. package/templates/hono-fullstack/libs/ui/src/theme/recipes/breadcrumb.ts +69 -0
  175. package/templates/hono-fullstack/libs/ui/src/theme/recipes/button.ts +149 -0
  176. package/templates/hono-fullstack/libs/ui/src/theme/recipes/card.ts +36 -0
  177. package/templates/hono-fullstack/libs/ui/src/theme/recipes/checkbox.ts +120 -0
  178. package/templates/hono-fullstack/libs/ui/src/theme/recipes/clipboard.ts +22 -0
  179. package/templates/hono-fullstack/libs/ui/src/theme/recipes/collapsible.ts +26 -0
  180. package/templates/hono-fullstack/libs/ui/src/theme/recipes/color-picker.ts +299 -0
  181. package/templates/hono-fullstack/libs/ui/src/theme/recipes/combobox.ts +141 -0
  182. package/templates/hono-fullstack/libs/ui/src/theme/recipes/date-picker.ts +302 -0
  183. package/templates/hono-fullstack/libs/ui/src/theme/recipes/dialog.ts +191 -0
  184. package/templates/hono-fullstack/libs/ui/src/theme/recipes/drawer.ts +170 -0
  185. package/templates/hono-fullstack/libs/ui/src/theme/recipes/editable.ts +64 -0
  186. package/templates/hono-fullstack/libs/ui/src/theme/recipes/field.ts +41 -0
  187. package/templates/hono-fullstack/libs/ui/src/theme/recipes/fieldset.ts +47 -0
  188. package/templates/hono-fullstack/libs/ui/src/theme/recipes/file-upload.ts +86 -0
  189. package/templates/hono-fullstack/libs/ui/src/theme/recipes/group.ts +78 -0
  190. package/templates/hono-fullstack/libs/ui/src/theme/recipes/heading.ts +24 -0
  191. package/templates/hono-fullstack/libs/ui/src/theme/recipes/hover-card.ts +47 -0
  192. package/templates/hono-fullstack/libs/ui/src/theme/recipes/icon.ts +25 -0
  193. package/templates/hono-fullstack/libs/ui/src/theme/recipes/index.ts +120 -0
  194. package/templates/hono-fullstack/libs/ui/src/theme/recipes/input-addon.ts +51 -0
  195. package/templates/hono-fullstack/libs/ui/src/theme/recipes/input-group.ts +77 -0
  196. package/templates/hono-fullstack/libs/ui/src/theme/recipes/input.ts +99 -0
  197. package/templates/hono-fullstack/libs/ui/src/theme/recipes/link.ts +36 -0
  198. package/templates/hono-fullstack/libs/ui/src/theme/recipes/menu.ts +114 -0
  199. package/templates/hono-fullstack/libs/ui/src/theme/recipes/native-select.ts +92 -0
  200. package/templates/hono-fullstack/libs/ui/src/theme/recipes/number-input.ts +91 -0
  201. package/templates/hono-fullstack/libs/ui/src/theme/recipes/pagination.ts +9 -0
  202. package/templates/hono-fullstack/libs/ui/src/theme/recipes/pin-input.ts +33 -0
  203. package/templates/hono-fullstack/libs/ui/src/theme/recipes/popover.ts +78 -0
  204. package/templates/hono-fullstack/libs/ui/src/theme/recipes/progress-circle.ts +50 -0
  205. package/templates/hono-fullstack/libs/ui/src/theme/recipes/progress.ts +112 -0
  206. package/templates/hono-fullstack/libs/ui/src/theme/recipes/radio-card.ts +223 -0
  207. package/templates/hono-fullstack/libs/ui/src/theme/recipes/radio-group.ts +78 -0
  208. package/templates/hono-fullstack/libs/ui/src/theme/recipes/rating-group.ts +98 -0
  209. package/templates/hono-fullstack/libs/ui/src/theme/recipes/scroll-area.ts +119 -0
  210. package/templates/hono-fullstack/libs/ui/src/theme/recipes/segment-group.ts +162 -0
  211. package/templates/hono-fullstack/libs/ui/src/theme/recipes/select.ts +157 -0
  212. package/templates/hono-fullstack/libs/ui/src/theme/recipes/separator.ts +25 -0
  213. package/templates/hono-fullstack/libs/ui/src/theme/recipes/skeleton.ts +65 -0
  214. package/templates/hono-fullstack/libs/ui/src/theme/recipes/slider.ts +164 -0
  215. package/templates/hono-fullstack/libs/ui/src/theme/recipes/spinner.ts +34 -0
  216. package/templates/hono-fullstack/libs/ui/src/theme/recipes/steps.ts +162 -0
  217. package/templates/hono-fullstack/libs/ui/src/theme/recipes/switch.ts +150 -0
  218. package/templates/hono-fullstack/libs/ui/src/theme/recipes/table.ts +150 -0
  219. package/templates/hono-fullstack/libs/ui/src/theme/recipes/tabs.ts +128 -0
  220. package/templates/hono-fullstack/libs/ui/src/theme/recipes/tag.ts +114 -0
  221. package/templates/hono-fullstack/libs/ui/src/theme/recipes/tags-input.ts +201 -0
  222. package/templates/hono-fullstack/libs/ui/src/theme/recipes/text.ts +7 -0
  223. package/templates/hono-fullstack/libs/ui/src/theme/recipes/textarea.ts +90 -0
  224. package/templates/hono-fullstack/libs/ui/src/theme/recipes/timeline.ts +137 -0
  225. package/templates/hono-fullstack/libs/ui/src/theme/recipes/toast.ts +52 -0
  226. package/templates/hono-fullstack/libs/ui/src/theme/recipes/tooltip.ts +44 -0
  227. package/templates/hono-fullstack/libs/ui/src/theme/recipes/tree-view.ts +200 -0
  228. package/templates/hono-fullstack/libs/ui/src/theme/semanticTokens/colors/amber.ts +91 -0
  229. package/templates/hono-fullstack/libs/ui/src/theme/semanticTokens/colors/gray.ts +103 -0
  230. package/templates/hono-fullstack/libs/ui/src/theme/semanticTokens/colors/green.ts +88 -0
  231. package/templates/hono-fullstack/libs/ui/src/theme/semanticTokens/colors/index.ts +14 -0
  232. package/templates/hono-fullstack/libs/ui/src/theme/semanticTokens/colors/lime.ts +91 -0
  233. package/templates/hono-fullstack/libs/ui/src/theme/semanticTokens/colors/red.ts +88 -0
  234. package/templates/hono-fullstack/libs/ui/src/theme/semanticTokens/index.ts +8 -0
  235. package/templates/hono-fullstack/libs/ui/src/theme/semanticTokens/shadows.ts +46 -0
  236. package/templates/hono-fullstack/libs/ui/src/theme/text-styles.ts +82 -0
  237. package/templates/hono-fullstack/libs/ui/src/theme/tokens/animations.ts +8 -0
  238. package/templates/hono-fullstack/libs/ui/src/theme/tokens/aspect-ratio.ts +6 -0
  239. package/templates/hono-fullstack/libs/ui/src/theme/tokens/borders.ts +5 -0
  240. package/templates/hono-fullstack/libs/ui/src/theme/tokens/colors.ts +35 -0
  241. package/templates/hono-fullstack/libs/ui/src/theme/tokens/durations.ts +11 -0
  242. package/templates/hono-fullstack/libs/ui/src/theme/tokens/easings.ts +9 -0
  243. package/templates/hono-fullstack/libs/ui/src/theme/tokens/index.ts +42 -0
  244. package/templates/hono-fullstack/libs/ui/src/theme/tokens/radii.ts +13 -0
  245. package/templates/hono-fullstack/libs/ui/src/theme/tokens/sizes.ts +27 -0
  246. package/templates/hono-fullstack/libs/ui/src/theme/tokens/spacing.ts +41 -0
  247. package/templates/hono-fullstack/libs/ui/src/theme/tokens/typography.ts +86 -0
  248. package/templates/hono-fullstack/libs/ui/src/theme/tokens/z-index.ts +43 -0
  249. package/templates/hono-fullstack/libs/ui/stories/README.md +107 -0
  250. package/templates/hono-fullstack/libs/ui/stories/actions/Button.stories.tsx +260 -0
  251. package/templates/hono-fullstack/libs/ui/stories/actions/Clipboard.stories.tsx +87 -0
  252. package/templates/hono-fullstack/libs/ui/stories/actions/IconButton.stories.tsx +33 -0
  253. package/templates/hono-fullstack/libs/ui/stories/collections/Combobox.stories.tsx +334 -0
  254. package/templates/hono-fullstack/libs/ui/stories/collections/Select.stories.tsx +342 -0
  255. package/templates/hono-fullstack/libs/ui/stories/collections/TreeView.stories.tsx +252 -0
  256. package/templates/hono-fullstack/libs/ui/stories/color/ColorPicker.stories.tsx +217 -0
  257. package/templates/hono-fullstack/libs/ui/stories/date/DatePicker.stories.tsx +302 -0
  258. package/templates/hono-fullstack/libs/ui/stories/disclosure/Accordion.stories.tsx +105 -0
  259. package/templates/hono-fullstack/libs/ui/stories/disclosure/Collapsible.stories.tsx +55 -0
  260. package/templates/hono-fullstack/libs/ui/stories/disclosure/Steps.stories.tsx +208 -0
  261. package/templates/hono-fullstack/libs/ui/stories/disclosure/Tabs.stories.tsx +176 -0
  262. package/templates/hono-fullstack/libs/ui/stories/display/Avatar.stories.tsx +108 -0
  263. package/templates/hono-fullstack/libs/ui/stories/display/Badge.stories.tsx +90 -0
  264. package/templates/hono-fullstack/libs/ui/stories/display/Card.stories.tsx +121 -0
  265. package/templates/hono-fullstack/libs/ui/stories/display/Heading.stories.tsx +62 -0
  266. package/templates/hono-fullstack/libs/ui/stories/display/Icon.stories.tsx +51 -0
  267. package/templates/hono-fullstack/libs/ui/stories/display/Table.stories.tsx +222 -0
  268. package/templates/hono-fullstack/libs/ui/stories/display/Tag.stories.tsx +168 -0
  269. package/templates/hono-fullstack/libs/ui/stories/display/Text.stories.tsx +32 -0
  270. package/templates/hono-fullstack/libs/ui/stories/display/Timeline.stories.tsx +241 -0
  271. package/templates/hono-fullstack/libs/ui/stories/feedback/Alert.stories.tsx +122 -0
  272. package/templates/hono-fullstack/libs/ui/stories/feedback/Progress.stories.tsx +163 -0
  273. package/templates/hono-fullstack/libs/ui/stories/feedback/ProgressCircle.stories.tsx +176 -0
  274. package/templates/hono-fullstack/libs/ui/stories/feedback/Skeleton.stories.tsx +75 -0
  275. package/templates/hono-fullstack/libs/ui/stories/feedback/Spinner.stories.tsx +49 -0
  276. package/templates/hono-fullstack/libs/ui/stories/feedback/Toast.stories.tsx +145 -0
  277. package/templates/hono-fullstack/libs/ui/stories/forms/Checkbox.stories.tsx +281 -0
  278. package/templates/hono-fullstack/libs/ui/stories/forms/Editable.stories.tsx +94 -0
  279. package/templates/hono-fullstack/libs/ui/stories/forms/Field.stories.tsx +72 -0
  280. package/templates/hono-fullstack/libs/ui/stories/forms/Fieldset.stories.tsx +109 -0
  281. package/templates/hono-fullstack/libs/ui/stories/forms/FileUpload.stories.tsx +115 -0
  282. package/templates/hono-fullstack/libs/ui/stories/forms/Form.stories.tsx +120 -0
  283. package/templates/hono-fullstack/libs/ui/stories/forms/Input.stories.tsx +155 -0
  284. package/templates/hono-fullstack/libs/ui/stories/forms/InputGroup.stories.tsx +79 -0
  285. package/templates/hono-fullstack/libs/ui/stories/forms/NativeSelect.stories.tsx +160 -0
  286. package/templates/hono-fullstack/libs/ui/stories/forms/NumberInput.stories.tsx +149 -0
  287. package/templates/hono-fullstack/libs/ui/stories/forms/PasswordInput.stories.tsx +141 -0
  288. package/templates/hono-fullstack/libs/ui/stories/forms/PinInput.stories.tsx +155 -0
  289. package/templates/hono-fullstack/libs/ui/stories/forms/RadioCard.stories.tsx +265 -0
  290. package/templates/hono-fullstack/libs/ui/stories/forms/RadioGroup.stories.tsx +109 -0
  291. package/templates/hono-fullstack/libs/ui/stories/forms/RatingGroup.stories.tsx +123 -0
  292. package/templates/hono-fullstack/libs/ui/stories/forms/SegmentGroup.stories.tsx +130 -0
  293. package/templates/hono-fullstack/libs/ui/stories/forms/Slider.stories.tsx +190 -0
  294. package/templates/hono-fullstack/libs/ui/stories/forms/Switch.stories.tsx +124 -0
  295. package/templates/hono-fullstack/libs/ui/stories/forms/TagsInput.stories.tsx +154 -0
  296. package/templates/hono-fullstack/libs/ui/stories/forms/Textarea.stories.tsx +148 -0
  297. package/templates/hono-fullstack/libs/ui/stories/layout/Grid.stories.tsx +60 -0
  298. package/templates/hono-fullstack/libs/ui/stories/layout/Positioning.stories.tsx +90 -0
  299. package/templates/hono-fullstack/libs/ui/stories/layout/ScrollArea.stories.tsx +68 -0
  300. package/templates/hono-fullstack/libs/ui/stories/layout/Stack.stories.tsx +87 -0
  301. package/templates/hono-fullstack/libs/ui/stories/navigation/Breadcrumb.stories.tsx +104 -0
  302. package/templates/hono-fullstack/libs/ui/stories/navigation/Link.stories.tsx +62 -0
  303. package/templates/hono-fullstack/libs/ui/stories/navigation/LinkBox.stories.tsx +45 -0
  304. package/templates/hono-fullstack/libs/ui/stories/navigation/Pagination.stories.tsx +74 -0
  305. package/templates/hono-fullstack/libs/ui/stories/overlays/Dialog.stories.tsx +255 -0
  306. package/templates/hono-fullstack/libs/ui/stories/overlays/Drawer.stories.tsx +114 -0
  307. package/templates/hono-fullstack/libs/ui/stories/overlays/HoverCard.stories.tsx +47 -0
  308. package/templates/hono-fullstack/libs/ui/stories/overlays/Menu.stories.tsx +133 -0
  309. package/templates/hono-fullstack/libs/ui/stories/overlays/OverlayManager.stories.tsx +206 -0
  310. package/templates/hono-fullstack/libs/ui/stories/overlays/Popover.stories.tsx +73 -0
  311. package/templates/hono-fullstack/libs/ui/stories/overlays/Tooltip.stories.tsx +114 -0
  312. package/templates/hono-fullstack/libs/ui/stories/tsconfig.json +14 -0
  313. package/templates/hono-fullstack/libs/ui/tsconfig.build.json +5 -0
  314. package/templates/hono-fullstack/libs/ui/tsconfig.json +13 -0
  315. package/templates/hono-fullstack/libs/ui/turbo.json +28 -0
  316. package/templates/hono-fullstack/libs/ui/vite.config.ts +33 -0
  317. package/templates/hono-fullstack/oyo.config.json +30 -4
  318. package/templates/hono-fullstack/package.json +1 -0
  319. package/templates/hono-fullstack/pnpm-workspace.yaml +20 -10
  320. package/templates/hono-fullstack/turbo.json +10 -0
  321. package/templates/hono-server/.codegraph/.gitignore +5 -0
  322. package/templates/hono-server/README.md +9 -1
  323. package/templates/hono-server/_gitignore +1 -0
  324. package/templates/hono-server/apps/server/package.json +7 -2
  325. package/templates/hono-server/apps/server/src/adapters/cloudflare/entry.ts +4 -30
  326. package/templates/hono-server/apps/server/src/adapters/nodejs/bootstrap.ts +20 -12
  327. package/templates/hono-server/apps/server/src/adapters/nodejs/entry.ts +7 -57
  328. package/templates/hono-server/apps/server/src/app.ts +37 -21
  329. package/templates/hono-server/apps/server/src/config.ts +1 -1
  330. package/templates/hono-server/apps/server/src/di-container.ts +51 -0
  331. package/templates/hono-server/apps/server/src/infra/logger/getter.ts +1 -1
  332. package/templates/hono-server/apps/server/src/infra/logger/pino.ts +21 -34
  333. package/templates/hono-server/apps/server/src/infra/work-runner/errors.ts +22 -0
  334. package/templates/hono-server/apps/server/src/infra/work-runner/pass-through/runner.ts +28 -22
  335. package/templates/hono-server/apps/server/src/infra/work-runner/piscina/runner.ts +11 -34
  336. package/templates/hono-server/apps/server/src/infra/work-runner/{example → piscina}/worker-entry.ts +6 -2
  337. package/templates/hono-server/apps/server/src/infra/work-runner/types.ts +2 -16
  338. package/templates/hono-server/apps/server/src/infra/work-runner/utils/business-error.ts +10 -5
  339. package/templates/hono-server/apps/server/src/infra/work-runner/utils/message.ts +5 -17
  340. package/templates/hono-server/apps/server/src/middlewares/cors.ts +16 -22
  341. package/templates/hono-server/apps/server/src/middlewares/logger.ts +34 -0
  342. package/templates/hono-server/apps/server/src/modules/example/module.ts +8 -0
  343. package/templates/hono-server/apps/server/src/modules/example/queries.ts +8 -0
  344. package/templates/hono-server/apps/server/src/modules/example/routes.ts +74 -68
  345. package/templates/hono-server/apps/server/src/modules/example/service.test.ts +53 -0
  346. package/templates/hono-server/apps/server/src/modules/example/service.ts +54 -0
  347. package/templates/hono-server/apps/server/src/modules/example/types.ts +12 -0
  348. package/templates/hono-server/apps/server/src/modules/example/work-task/tasks.test.ts +9 -35
  349. package/templates/hono-server/apps/server/src/modules/example/work-task/tasks.ts +15 -46
  350. package/templates/hono-server/apps/server/src/shared/errors/defs/index.ts +6 -1
  351. package/templates/hono-server/apps/server/src/shared/errors/handler.ts +1 -1
  352. package/templates/hono-server/apps/server/src/shared/network/openapi/index.ts +1 -1
  353. package/templates/hono-server/apps/server/src/shared/types/app.ts +51 -0
  354. package/templates/hono-server/apps/server/src/shared/types/db.ts +126 -0
  355. package/templates/hono-server/apps/server/src/shared/utils/data-access/check.ts +19 -0
  356. package/templates/hono-server/apps/server/src/shared/utils/data-access/model.ts +47 -0
  357. package/templates/hono-server/apps/server/src/shared/utils/data-access/params.ts +105 -0
  358. package/templates/hono-server/apps/server/src/shared/utils/data-access/query.test.ts +139 -0
  359. package/templates/hono-server/apps/server/src/shared/utils/data-access/query.ts +236 -0
  360. package/templates/hono-server/apps/server/vite.config.ts +2 -2
  361. package/templates/hono-server/apps/server/wrangler.jsonc +1 -1
  362. package/templates/hono-server/docker/README.md +1 -1
  363. package/templates/hono-server/envs/.env.example.sqlite-d1 +1 -0
  364. package/templates/hono-server/libs/db/drizzle-kit/sqlite-d1.config.ts +29 -10
  365. package/templates/hono-server/libs/db/package.json +1 -0
  366. package/templates/hono-server/libs/db/src/dialects/sqlite/schema/columns.ts +1 -1
  367. package/templates/hono-server/libs/db/src/dialects/sqlite/schema/modules/examples/examples.ts +6 -3
  368. package/templates/hono-server/libs/db/src/dialects/sqlite/schema/vo.ts +7 -1
  369. package/templates/hono-server/libs/definition/README.md +81 -0
  370. package/templates/hono-server/libs/definition/package.json +3 -1
  371. package/templates/hono-server/libs/definition/src/constants/index.ts +1 -0
  372. package/templates/hono-server/libs/definition/src/constants/pagination.ts +3 -0
  373. package/templates/hono-server/libs/definition/src/modules/common-contracts.ts +24 -0
  374. package/templates/hono-server/libs/definition/src/modules/example/contracts.ts +34 -0
  375. package/templates/hono-server/libs/definition/src/modules/example/index.ts +1 -16
  376. package/templates/hono-server/libs/definition/src/modules/index.ts +2 -0
  377. package/templates/hono-server/libs/definition/src/modules/vo-generated-types.ts +12 -0
  378. package/templates/hono-server/oyo.config.json +30 -4
  379. package/templates/hono-server/package.json +1 -0
  380. package/templates/hono-server/pnpm-workspace.yaml +9 -7
  381. package/templates/hono-server/turbo.json +10 -0
  382. package/templates/monorepo/.codegraph/.gitignore +5 -0
  383. package/templates/monorepo/_gitignore +1 -0
  384. package/templates/monorepo/oyo.config.json +6 -4
  385. package/templates/monorepo/pnpm-workspace.yaml +4 -4
  386. package/templates/monorepo/turbo.json +10 -0
  387. package/templates/hono-fullstack/apps/server/src/modules/example/contracts.ts +0 -9
  388. package/templates/hono-fullstack/apps/server/src/shared/app/types.ts +0 -44
  389. package/templates/hono-fullstack/apps/stack/frontend/styles.css +0 -23
  390. package/templates/hono-server/apps/server/src/modules/example/contracts.ts +0 -9
  391. package/templates/hono-server/apps/server/src/shared/app/types.ts +0 -44
@@ -0,0 +1,112 @@
1
+ import { progressAnatomy } from '@ark-ui/react/anatomy'
2
+ import { defineSlotRecipe } from '@pandacss/dev'
3
+
4
+ const stripeBackground = `linear-gradient(45deg, var(--stripe-color) 25%, transparent 25%, transparent 50%, var(--stripe-color) 50%, var(--stripe-color) 75%, transparent 75%, transparent)`
5
+
6
+ const sizeStyles = {
7
+ root: { textStyle: 'sm' },
8
+ label: { gap: '1' },
9
+ valueText: { textStyle: 'xs', lineHeight: '1' },
10
+ } as const
11
+
12
+ const appearance = {
13
+ range: {
14
+ '--track-color': 'colors.colorPalette.bg.default',
15
+ bgColor: 'var(--track-color)',
16
+ _indeterminate: {
17
+ backgroundImage: `linear-gradient(to right, transparent 0%, var(--track-color) 50%, transparent 100%)`,
18
+ },
19
+ },
20
+ label: { fontWeight: 'medium' },
21
+ valueText: { fontWeight: 'medium' },
22
+ } as const
23
+
24
+ export const progress = defineSlotRecipe({
25
+ slots: progressAnatomy.keys(),
26
+ className: 'app-progress',
27
+ jsx: ['Progress.Root', 'Progress.RootProvider'],
28
+ base: {
29
+ root: { position: 'relative' },
30
+ track: { overflow: 'hidden', position: 'relative' },
31
+ range: {
32
+ display: 'flex',
33
+ alignItems: 'center',
34
+ justifyContent: 'center',
35
+ transitionProperty: 'width, height',
36
+ transitionDuration: 'slow',
37
+ height: '100%',
38
+ _indeterminate: {
39
+ '--animate-from-x': '-40%',
40
+ '--animate-to-x': '100%',
41
+ position: 'absolute',
42
+ willChange: 'inset-inline-start',
43
+ minWidth: '50%',
44
+ animation: 'position 1s ease infinite normal none running',
45
+ },
46
+ },
47
+ label: { display: 'inline-flex', alignItems: 'center' },
48
+ },
49
+ variants: {
50
+ variant: {
51
+ solid: {
52
+ ...appearance,
53
+ track: { bgColor: 'gray.bg.subtle' },
54
+ range: {
55
+ ...appearance.range,
56
+ bgColor: 'var(--track-color)',
57
+ color: 'colorPalette.fg.onSolid',
58
+ },
59
+ },
60
+ subtle: {
61
+ ...appearance,
62
+ track: { bgColor: 'colorPalette.bg.subtle.active' },
63
+ range: {
64
+ ...appearance.range,
65
+ bgColor: 'var(--track-color)',
66
+ color: 'colorPalette.fg.onSolid',
67
+ },
68
+ },
69
+ unstyled: {},
70
+ },
71
+ shape: {
72
+ square: {},
73
+ rounded: { track: { borderRadius: 'xs' } },
74
+ full: { track: { borderRadius: 'full' } },
75
+ unstyled: {},
76
+ },
77
+ striped: {
78
+ true: {
79
+ range: {
80
+ backgroundImage: stripeBackground,
81
+ backgroundSize: `var(--stripe-size) var(--stripe-size)`,
82
+ '--stripe-size': '1rem',
83
+ '--stripe-color': { _light: 'rgba(255, 255, 255, 0.3)', _dark: 'rgba(0, 0, 0, 0.3)' },
84
+ },
85
+ },
86
+ },
87
+ animated: {
88
+ true: {
89
+ range: {
90
+ '--animate-from': 'var(--stripe-size)',
91
+ animation: 'bg-position 1s linear infinite',
92
+ },
93
+ },
94
+ },
95
+ size: {
96
+ xs: { ...sizeStyles, track: { h: '1.5' } },
97
+ sm: { ...sizeStyles, track: { h: '2' } },
98
+ md: { ...sizeStyles, track: { h: '2.5' } },
99
+ lg: { ...sizeStyles, track: { h: '3' } },
100
+ xl: { ...sizeStyles, track: { h: '3.5' } },
101
+ unstyled: {},
102
+ },
103
+ },
104
+ compoundVariants: [
105
+ {
106
+ variant: ['solid', 'subtle'],
107
+ striped: true,
108
+ css: { range: { _indeterminate: { backgroundImage: stripeBackground } } },
109
+ },
110
+ ],
111
+ defaultVariants: { variant: 'solid', size: 'md', shape: 'rounded' },
112
+ })
@@ -0,0 +1,223 @@
1
+ import { radioGroupAnatomy } from '@ark-ui/react/anatomy'
2
+ import { defineSlotRecipe } from '@pandacss/dev'
3
+
4
+ const appearance = {
5
+ item: {
6
+ borderRadius: 'sm',
7
+ cursor: 'pointer',
8
+ _focusVisible: { focusVisibleRing: 'outside' },
9
+ _disabled: { layerStyle: 'disabled' },
10
+ },
11
+ itemControl: { borderRadius: 'inherit' },
12
+ itemDescription: { opacity: '0.64' },
13
+ itemAddon: { borderBottomRadius: 'inherit', borderColor: 'inherit', borderTopWidth: '1px' },
14
+ itemIndicator: {
15
+ borderRadius: 'full',
16
+ _after: { content: '""', borderRadius: 'full' },
17
+ },
18
+ } as const
19
+
20
+ const sizeStyles = {
21
+ root: { gap: '1.5' },
22
+ label: { textStyle: 'label' },
23
+ itemContent: { gap: '1' },
24
+ itemDescription: { textStyle: 'sm' },
25
+ } as const
26
+
27
+ export const radioCard = defineSlotRecipe({
28
+ className: 'app-radio-card',
29
+ jsx: ['RadioCard.Root', 'RadioCard.RootProvider'],
30
+ slots: radioGroupAnatomy
31
+ .extendWith('itemContent', 'itemDescription', 'itemAddon', 'itemIndicator')
32
+ .keys(),
33
+ base: {
34
+ root: {
35
+ display: 'flex',
36
+ flexDirection: 'column',
37
+ width: 'full',
38
+ },
39
+ item: {
40
+ flexDirection: 'column',
41
+ display: 'flex',
42
+ userSelect: 'none',
43
+ width: 'full',
44
+ position: 'relative',
45
+ },
46
+ itemControl: {
47
+ display: 'flex',
48
+ width: 'full',
49
+ justifyContent: 'var(--radio-card-justify)',
50
+ alignItems: 'var(--radio-card-align)',
51
+ },
52
+ itemContent: {
53
+ display: 'flex',
54
+ flexDirection: 'column',
55
+ flex: '1',
56
+ minWidth: '0',
57
+ justifyContent: 'var(--radio-card-justify)',
58
+ alignItems: 'var(--radio-card-align)',
59
+ },
60
+ itemIndicator: {
61
+ _after: { display: 'block' },
62
+ '&[data-custom]': { _after: { display: 'none' } },
63
+ alignItems: 'center',
64
+ display: 'inline-flex',
65
+ flexShrink: '0',
66
+ justifyContent: 'center',
67
+ verticalAlign: 'top',
68
+ },
69
+ },
70
+ defaultVariants: {
71
+ variant: 'outline',
72
+ size: 'md',
73
+ align: 'start',
74
+ justify: 'start',
75
+ orientation: 'horizontal',
76
+ },
77
+ variants: {
78
+ variant: {
79
+ unstyled: {},
80
+ subtle: {
81
+ ...appearance,
82
+ item: {
83
+ ...appearance.item,
84
+ background: 'gray.bg.subtle',
85
+ color: 'gray.fg.default',
86
+ _checked: {
87
+ background: 'colorPalette.bg.subtle',
88
+ color: 'colorPalette.fg.default',
89
+ },
90
+ },
91
+ itemIndicator: {
92
+ ...appearance.itemIndicator,
93
+ borderWidth: '1px',
94
+ borderColor: 'gray.border.default',
95
+ _checked: {
96
+ borderColor: 'colorPalette.bg.default',
97
+ color: 'colorPalette.bg.default',
98
+ _after: {
99
+ bg: 'colorPalette.bg.default',
100
+ },
101
+ },
102
+ },
103
+ },
104
+ outline: {
105
+ ...appearance,
106
+ item: {
107
+ ...appearance.item,
108
+ borderWidth: '1px',
109
+ borderColor: 'gray.border.strong',
110
+ _checked: {
111
+ boxShadow: '0 0 0 1px var(--shadow-color)',
112
+ boxShadowColor: 'colorPalette.bg.default',
113
+ borderColor: 'colorPalette.bg.default',
114
+ },
115
+ },
116
+ itemIndicator: {
117
+ ...appearance.itemIndicator,
118
+ borderWidth: '1px',
119
+ borderColor: 'gray.border.strong',
120
+ _checked: {
121
+ bg: 'colorPalette.bg.default',
122
+ color: 'colorPalette.fg.onSolid',
123
+ borderColor: 'colorPalette.bg.default',
124
+ _after: {
125
+ background: 'colorPalette.fg.onSolid',
126
+ },
127
+ },
128
+ },
129
+ },
130
+ surface: {
131
+ ...appearance,
132
+ item: {
133
+ ...appearance.item,
134
+ borderWidth: '1px',
135
+ background: 'gray.bg.surface',
136
+ borderColor: 'gray.border.default',
137
+ color: 'gray.fg.default',
138
+ _checked: {
139
+ boxShadow: '0 0 0 1px var(--shadow-color)',
140
+ boxShadowColor: 'colorPalette.bg.default',
141
+ borderColor: 'colorPalette.bg.default',
142
+ },
143
+ },
144
+ itemIndicator: {
145
+ ...appearance.itemIndicator,
146
+ borderWidth: '1px',
147
+ borderColor: 'gray.border.strong',
148
+ _checked: {
149
+ background: 'colorPalette.bg.default',
150
+ color: 'colorPalette.fg.onSolid',
151
+ borderColor: 'colorPalette.bg.default',
152
+ _after: {
153
+ background: 'colorPalette.fg.onSolid',
154
+ },
155
+ },
156
+ },
157
+ },
158
+ solid: {
159
+ ...appearance,
160
+ item: {
161
+ ...appearance.item,
162
+ borderWidth: '1px',
163
+ _checked: {
164
+ bg: 'colorPalette.bg.default',
165
+ color: 'colorPalette.fg.onSolid',
166
+ borderColor: 'colorPalette.bg.default',
167
+ },
168
+ },
169
+ itemIndicator: {
170
+ ...appearance.itemIndicator,
171
+ borderWidth: '1px',
172
+ borderColor: 'gray.border.strong',
173
+ _checked: {
174
+ background: 'colorPalette.fg.onSolid',
175
+ color: 'colorPalette.bg.default',
176
+ borderColor: 'colorPalette.fg.onSolid',
177
+ _after: {
178
+ bg: 'colorPalette.bg.default',
179
+ },
180
+ },
181
+ },
182
+ },
183
+ },
184
+ size: {
185
+ unstyled: {},
186
+ sm: {
187
+ ...sizeStyles,
188
+ itemControl: { gap: '1.5', p: '3' },
189
+ itemAddon: { px: '3', py: '1.5' },
190
+ itemIndicator: { boxSize: '4.5', _after: { boxSize: '1.5' } },
191
+ itemText: { textStyle: 'sm' },
192
+ },
193
+ md: {
194
+ ...sizeStyles,
195
+ itemControl: { gap: '2', p: '4' },
196
+ itemAddon: { px: '4', py: '2' },
197
+ itemIndicator: { boxSize: '5', _after: { boxSize: '2' } },
198
+ itemText: { textStyle: 'sm' },
199
+ },
200
+ lg: {
201
+ ...sizeStyles,
202
+ itemControl: { gap: '3', p: '4' },
203
+ itemAddon: { px: '4', py: '2' },
204
+ itemIndicator: { boxSize: '5.5', _after: { boxSize: '2.5' } },
205
+ itemText: { textStyle: 'md' },
206
+ },
207
+ },
208
+ justify: {
209
+ start: { item: { '--radio-card-justify': 'flex-start' } },
210
+ center: { item: { '--radio-card-justify': 'center' } },
211
+ end: { item: { '--radio-card-justify': 'flex-end' } },
212
+ },
213
+ align: {
214
+ start: { item: { '--radio-card-align': 'flex-start' }, itemControl: { textAlign: 'start' } },
215
+ center: { item: { '--radio-card-align': 'center' }, itemControl: { textAlign: 'center' } },
216
+ end: { item: { '--radio-card-align': 'flex-end' }, itemControl: { textAlign: 'end' } },
217
+ },
218
+ orientation: {
219
+ horizontal: { itemControl: { flexDirection: 'row' } },
220
+ vertical: { itemControl: { flexDirection: 'column' } },
221
+ },
222
+ },
223
+ })
@@ -0,0 +1,78 @@
1
+ import { radioGroupAnatomy } from '@ark-ui/react/anatomy'
2
+ import { defineSlotRecipe } from '@pandacss/dev'
3
+
4
+ export const radioGroup = defineSlotRecipe({
5
+ className: 'app-radio-group',
6
+ jsx: ['RadioGroup.Root', 'RadioGroup.RootProvider'],
7
+ slots: radioGroupAnatomy.keys(),
8
+ base: {
9
+ root: {
10
+ display: 'flex',
11
+ flexDirection: 'column',
12
+ },
13
+ itemControl: {
14
+ '&[data-custom]': { _after: { display: 'none' } },
15
+ alignItems: 'center',
16
+ borderRadius: 'full',
17
+ display: 'inline-flex',
18
+ flexShrink: 0,
19
+ justifyContent: 'center',
20
+ verticalAlign: 'top',
21
+ _after: { content: '""', display: 'block', borderRadius: 'full' },
22
+ _focusVisible: { focusVisibleRing: 'outside' },
23
+ },
24
+ item: {
25
+ alignItems: 'center',
26
+ cursor: 'pointer',
27
+ display: 'flex',
28
+ _disabled: { layerStyle: 'disabled' },
29
+ },
30
+ itemText: {
31
+ fontWeight: 'medium',
32
+ userSelect: 'none',
33
+ },
34
+ },
35
+ defaultVariants: {
36
+ variant: 'solid',
37
+ size: 'md',
38
+ },
39
+ variants: {
40
+ variant: {
41
+ solid: {
42
+ itemControl: {
43
+ boxShadow: 'inset 0 0 0 1px var(--shadow-color)',
44
+ boxShadowColor: 'gray.border.default',
45
+ _checked: {
46
+ bg: 'colorPalette.bg.default',
47
+ color: 'colorPalette.fg.onSolid',
48
+ boxShadowColor: 'colorPalette.bg.default',
49
+ _after: {
50
+ background: 'colorPalette.fg.onSolid',
51
+ },
52
+ },
53
+ },
54
+ },
55
+ },
56
+ size: {
57
+ unstyled: {},
58
+ sm: {
59
+ root: { gap: '3' },
60
+ item: { gap: '2' },
61
+ itemControl: { boxSize: '4.5', _after: { boxSize: '40%' } },
62
+ itemText: { textStyle: 'sm' },
63
+ },
64
+ md: {
65
+ root: { gap: '3' },
66
+ item: { gap: '3' },
67
+ itemControl: { boxSize: '5', _after: { boxSize: '40%' } },
68
+ itemText: { textStyle: 'md' },
69
+ },
70
+ lg: {
71
+ root: { gap: '3' },
72
+ item: { gap: '3' },
73
+ itemControl: { boxSize: '5.5', _after: { boxSize: '40%' } },
74
+ itemText: { textStyle: 'lg' },
75
+ },
76
+ },
77
+ },
78
+ })
@@ -0,0 +1,98 @@
1
+ import { ratingGroupAnatomy } from '@ark-ui/react/anatomy'
2
+ import { defineSlotRecipe } from '@pandacss/dev'
3
+
4
+ export const ratingGroup = defineSlotRecipe({
5
+ className: 'app-rating-group',
6
+ jsx: ['RatingGroup.Root', 'RatingGroup.RootProvider'],
7
+ slots: ratingGroupAnatomy.extendWith('itemIndicator').keys(),
8
+ base: {
9
+ root: {
10
+ alignItems: 'center',
11
+ display: 'inline-flex',
12
+ verticalAlign: 'top',
13
+ },
14
+ control: {
15
+ alignItems: 'center',
16
+ display: 'inline-flex',
17
+ },
18
+ item: {
19
+ alignItems: 'center',
20
+ display: 'inline-flex',
21
+ justifyContent: 'center',
22
+ userSelect: 'none',
23
+ },
24
+ label: {
25
+ fontWeight: 'medium',
26
+ userSelect: 'none',
27
+ },
28
+ itemIndicator: {
29
+ display: 'inline-flex',
30
+ alignItems: 'center',
31
+ justifyContent: 'center',
32
+ position: 'relative',
33
+ '--clip-path': { base: 'inset(0 50% 0 0)', _rtl: 'inset(0 0 0 50%)' },
34
+ _icon: {
35
+ stroke: 'currentColor',
36
+ display: 'inline-block',
37
+ flexShrink: 0,
38
+ position: 'absolute',
39
+ width: 'inherit',
40
+ height: 'inherit',
41
+ left: 0,
42
+ top: 0,
43
+ },
44
+ '& [data-bg]': {
45
+ color: 'gray.bg.subtle',
46
+ },
47
+ '& [data-fg]': {
48
+ color: 'transparent',
49
+ },
50
+ '&[data-highlighted]:not([data-half])': {
51
+ '& [data-fg]': {
52
+ color: 'colorPalette.bg.default',
53
+ },
54
+ },
55
+ '&[data-half]': {
56
+ '& [data-fg]': {
57
+ color: 'colorPalette.bg.default',
58
+ clipPath: 'var(--clip-path)',
59
+ },
60
+ },
61
+ },
62
+ },
63
+
64
+ variants: {
65
+ size: {
66
+ unstyled: {},
67
+ xs: {
68
+ root: { gap: '2' },
69
+ control: { gap: '0.5' },
70
+ itemIndicator: { width: '4', height: '4' },
71
+ },
72
+ sm: {
73
+ root: { gap: '2' },
74
+ control: { gap: '0.5' },
75
+ itemIndicator: { width: '4.5', height: '4.5' },
76
+ },
77
+ md: {
78
+ root: { gap: '3' },
79
+ control: { gap: '0.5' },
80
+ itemIndicator: { width: '5', height: '5' },
81
+ },
82
+ lg: {
83
+ root: { gap: '3' },
84
+ control: { gap: '0.5' },
85
+ itemIndicator: { width: '5.5', height: '5.5' },
86
+ },
87
+ xl: {
88
+ root: { gap: '3' },
89
+ control: { gap: '0.5' },
90
+ itemIndicator: { width: '6', height: '6' },
91
+ },
92
+ },
93
+ },
94
+
95
+ defaultVariants: {
96
+ size: 'md',
97
+ },
98
+ })
@@ -0,0 +1,119 @@
1
+ import { defineSlotRecipe } from '@pandacss/dev'
2
+
3
+ export const scrollArea = defineSlotRecipe({
4
+ className: 'app-scroll-area',
5
+ jsx: ['ScrollArea.Root', 'ScrollArea.RootProvider'],
6
+ slots: ['root', 'viewport', 'content', 'scrollbar', 'thumb', 'corner'],
7
+ base: {
8
+ root: {
9
+ display: 'flex',
10
+ flexDirection: 'column',
11
+ width: '100%',
12
+ height: '100%',
13
+ position: 'relative',
14
+ overflow: 'hidden',
15
+ '--scrollbar-margin': '0px',
16
+ '--scrollbar-size': 'calc(var(--thumb-size) + calc(var(--scrollbar-margin) * 2))',
17
+ },
18
+ viewport: {
19
+ display: 'flex',
20
+ flexDirection: 'column',
21
+ height: '100%',
22
+ width: '100%',
23
+ WebkitOverflowScrolling: 'touch',
24
+ scrollbarWidth: 'none',
25
+ '&::-webkit-scrollbar': {
26
+ display: 'none',
27
+ },
28
+ '&[data-overflow-x] [data-pinned]': {
29
+ _after: {
30
+ content: '""',
31
+ position: 'absolute',
32
+ pointerEvents: 'none',
33
+ top: '0',
34
+ bottom: '-1px',
35
+ width: '32px',
36
+ },
37
+ },
38
+ '&[data-overflow-x]:not([data-at-left]) [data-pinned="left"]': {
39
+ _after: {
40
+ insetInlineEnd: '0',
41
+ translate: '100% 0',
42
+ boxShadow: 'inset',
43
+ },
44
+ },
45
+ },
46
+ scrollbar: {
47
+ alignItems: 'center',
48
+ display: 'flex',
49
+ position: 'relative',
50
+ touchAction: 'none',
51
+ userSelect: 'none',
52
+ zIndex: 'overlay',
53
+ _vertical: {
54
+ flexDirection: 'column',
55
+ width: 'var(--scrollbar-size)',
56
+ py: 'var(--scrollbar-margin)',
57
+ '&:not([data-overflow-y])': {
58
+ display: 'none',
59
+ },
60
+ },
61
+ _horizontal: {
62
+ flexDirection: 'row',
63
+ height: 'var(--scrollbar-size)',
64
+ px: 'var(--scrollbar-margin)',
65
+ '&:not([data-overflow-x])': {
66
+ display: 'none',
67
+ },
68
+ },
69
+ },
70
+ thumb: {
71
+ borderRadius: 'full',
72
+ bg: 'var(--thumb-bg)',
73
+ transitionDuration: 'normal',
74
+ transitionProperty: 'background, color, box-shadow',
75
+ transitionTimingFunction: 'default',
76
+ _vertical: { width: 'var(--thumb-size)' },
77
+ _horizontal: { height: 'var(--thumb-size)' },
78
+ },
79
+ corner: {},
80
+ },
81
+ defaultVariants: {
82
+ size: 'md',
83
+ scrollbar: 'auto',
84
+ },
85
+ variants: {
86
+ scrollbar: {
87
+ auto: {
88
+ scrollbar: {
89
+ '&[data-scrolling], &[data-hover]': {
90
+ '--thumb-bg': '{colors.gray.bg.subtle.active}',
91
+ },
92
+ },
93
+ },
94
+ visible: {
95
+ content: {
96
+ '&[data-overflow-y]': {
97
+ pe: 'var(--scrollbar-size)',
98
+ },
99
+ '&[data-overflow-x]': {
100
+ pb: 'var(--scrollbar-size)',
101
+ },
102
+ },
103
+ scrollbar: {
104
+ bg: 'gray.bg.subtle',
105
+ borderRadius: 'full',
106
+ },
107
+ thumb: {
108
+ '--thumb-bg': '{colors.gray.bg.subtle.active}',
109
+ },
110
+ },
111
+ },
112
+ size: {
113
+ xs: { root: { '--thumb-size': 'sizes.1' } },
114
+ sm: { root: { '--thumb-size': 'sizes.1.5' } },
115
+ md: { root: { '--thumb-size': 'sizes.2' } },
116
+ lg: { root: { '--thumb-size': 'sizes.2.5' } },
117
+ },
118
+ },
119
+ })