@oyolincc/create 0.4.0 → 0.5.1
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.
- package/package.json +2 -2
- package/templates/{monorepo/.agents/skills/grilling → hono-fullstack/.agents/skills/ask-grilling}/SKILL.md +1 -1
- package/templates/hono-fullstack/.agents/skills/build-api-and-interface-design/SKILL.md +369 -0
- package/templates/hono-fullstack/.agents/skills/build-context-engineering/SKILL.md +353 -0
- package/templates/hono-fullstack/.agents/skills/build-incremental-implementation/SKILL.md +249 -0
- package/templates/hono-fullstack/.agents/skills/build-observability-and-instrumentation/SKILL.md +239 -0
- package/templates/hono-fullstack/.agents/skills/plan-planning-and-task-breakdown/SKILL.md +257 -0
- package/templates/{monorepo/.agents/skills/prototype → hono-fullstack/.agents/skills/plan-prototype}/LOGIC.md +1 -1
- package/templates/{monorepo/.agents/skills/prototype → hono-fullstack/.agents/skills/plan-prototype}/SKILL.md +2 -2
- package/templates/hono-fullstack/.agents/skills/{prototype → plan-prototype}/UI.md +2 -2
- package/templates/{monorepo/.agents/skills/research → hono-fullstack/.agents/skills/plan-research}/SKILL.md +2 -2
- package/templates/hono-fullstack/.agents/skills/plan-using-agent-skills/SKILL.md +185 -0
- package/templates/{monorepo/.agents/skills/wayfinder → hono-fullstack/.agents/skills/plan-wayfinder}/SKILL.md +43 -29
- package/templates/hono-fullstack/.agents/skills/review-code-review-and-quality/SKILL.md +400 -0
- package/templates/hono-fullstack/.agents/skills/review-doubt-driven-development/SKILL.md +244 -0
- package/templates/hono-fullstack/.agents/skills/review-security-and-hardening/SKILL.md +216 -0
- package/templates/hono-fullstack/.agents/skills/review-security-and-hardening/references/hardening-patterns.md +331 -0
- package/templates/hono-fullstack/.agents/skills/ship-ci-cd-and-automation/SKILL.md +393 -0
- package/templates/hono-fullstack/.agents/skills/ship-deprecation-and-migration/SKILL.md +252 -0
- package/templates/hono-fullstack/.agents/skills/ship-documentation-and-adrs/SKILL.md +298 -0
- package/templates/hono-fullstack/.agents/skills/ship-git-workflow-and-versioning/SKILL.md +355 -0
- package/templates/hono-fullstack/.agents/skills/ship-shipping-and-launch/SKILL.md +336 -0
- package/templates/hono-fullstack/.agents/skills/simplify-code-simplification/SKILL.md +332 -0
- package/templates/hono-fullstack/.agents/skills/simplify-performance-optimization/SKILL.md +268 -0
- package/templates/hono-fullstack/.agents/skills/simplify-performance-optimization/references/optimization-patterns.md +250 -0
- package/templates/hono-fullstack/.agents/skills/spec-constraint-driven-development/SKILL.md +318 -0
- package/templates/hono-fullstack/.agents/skills/spec-constraint-driven-development/references/floor-guard.md +182 -0
- package/templates/hono-fullstack/.agents/skills/spec-constraint-driven-development/scripts/quality-gate.mjs +45 -0
- package/templates/hono-fullstack/.agents/skills/spec-driven-development/SKILL.md +261 -0
- package/templates/hono-fullstack/.agents/skills/test-browser-testing-with-devtools/SKILL.md +319 -0
- package/templates/hono-fullstack/.agents/skills/test-debugging-and-error-recovery/SKILL.md +300 -0
- package/templates/hono-fullstack/.agents/skills/test-driven-development/SKILL.md +400 -0
- package/templates/hono-fullstack/.codegraph/.gitignore +5 -0
- package/templates/hono-fullstack/AGENTS.md +9 -20
- package/templates/hono-fullstack/README.md +22 -1
- package/templates/hono-fullstack/_gitignore +1 -0
- package/templates/hono-fullstack/apps/server/package.json +7 -2
- package/templates/hono-fullstack/apps/server/src/adapters/cloudflare/entry.ts +4 -30
- package/templates/hono-fullstack/apps/server/src/adapters/nodejs/bootstrap.ts +20 -12
- package/templates/hono-fullstack/apps/server/src/adapters/nodejs/entry.ts +7 -57
- package/templates/hono-fullstack/apps/server/src/app.ts +37 -21
- package/templates/hono-fullstack/apps/server/src/config.ts +1 -1
- package/templates/hono-fullstack/apps/server/src/di-container.ts +51 -0
- package/templates/hono-fullstack/apps/server/src/infra/logger/getter.ts +1 -1
- package/templates/hono-fullstack/apps/server/src/infra/logger/pino.ts +21 -34
- package/templates/hono-fullstack/apps/server/src/infra/work-runner/errors.ts +22 -0
- package/templates/hono-fullstack/apps/server/src/infra/work-runner/pass-through/runner.ts +28 -22
- package/templates/hono-fullstack/apps/server/src/infra/work-runner/piscina/runner.ts +11 -34
- package/templates/{hono-server/apps/server/src/infra/work-runner/example → hono-fullstack/apps/server/src/infra/work-runner/piscina}/worker-entry.ts +6 -2
- package/templates/hono-fullstack/apps/server/src/infra/work-runner/types.ts +2 -16
- package/templates/hono-fullstack/apps/server/src/infra/work-runner/utils/business-error.ts +10 -5
- package/templates/hono-fullstack/apps/server/src/infra/work-runner/utils/message.ts +5 -17
- package/templates/hono-fullstack/apps/server/src/middlewares/cors.ts +16 -22
- package/templates/hono-fullstack/apps/server/src/middlewares/logger.ts +34 -0
- package/templates/hono-fullstack/apps/server/src/modules/example/module.ts +8 -0
- package/templates/hono-fullstack/apps/server/src/modules/example/queries.ts +8 -0
- package/templates/hono-fullstack/apps/server/src/modules/example/routes.ts +74 -68
- package/templates/hono-fullstack/apps/server/src/modules/example/service.test.ts +53 -0
- package/templates/hono-fullstack/apps/server/src/modules/example/service.ts +54 -0
- package/templates/hono-fullstack/apps/server/src/modules/example/types.ts +12 -0
- package/templates/hono-fullstack/apps/server/src/modules/example/work-task/tasks.test.ts +9 -35
- package/templates/hono-fullstack/apps/server/src/modules/example/work-task/tasks.ts +15 -46
- package/templates/hono-fullstack/apps/server/src/shared/errors/defs/index.ts +6 -1
- package/templates/hono-fullstack/apps/server/src/shared/errors/handler.ts +1 -1
- package/templates/hono-fullstack/apps/server/src/shared/network/openapi/index.ts +1 -1
- package/templates/hono-fullstack/apps/server/src/shared/types/app.ts +51 -0
- package/templates/hono-fullstack/apps/server/src/shared/types/db.ts +126 -0
- package/templates/hono-fullstack/apps/server/src/shared/utils/data-access/check.ts +19 -0
- package/templates/hono-fullstack/apps/server/src/shared/utils/data-access/model.ts +47 -0
- package/templates/hono-fullstack/apps/server/src/shared/utils/data-access/params.ts +105 -0
- package/templates/hono-fullstack/apps/server/src/shared/utils/data-access/query.test.ts +139 -0
- package/templates/hono-fullstack/apps/server/src/shared/utils/data-access/query.ts +236 -0
- package/templates/hono-fullstack/apps/server/vite.config.ts +2 -2
- package/templates/hono-fullstack/apps/server/wrangler.jsonc +1 -1
- package/templates/hono-fullstack/apps/stack/frontend/assets/styles.css +6 -0
- package/templates/hono-fullstack/apps/stack/frontend/components/general/ErrorMessage.tsx +3 -1
- package/templates/hono-fullstack/apps/stack/frontend/components/layouts/AppLayout.tsx +2 -1
- package/templates/hono-fullstack/apps/stack/frontend/components/layouts/Header.tsx +14 -2
- package/templates/hono-fullstack/apps/stack/frontend/components/layouts/Page.tsx +2 -1
- package/templates/hono-fullstack/apps/stack/frontend/components/layouts/PageContainer.tsx +4 -1
- package/templates/hono-fullstack/apps/stack/frontend/modules/example/api.ts +16 -9
- package/templates/hono-fullstack/apps/stack/frontend/modules/example/components/ExampleForm.tsx +25 -12
- package/templates/hono-fullstack/apps/stack/frontend/modules/example/components/ExampleList.tsx +13 -4
- package/templates/hono-fullstack/apps/stack/frontend/modules/example/hooks/api-hooks.ts +3 -3
- package/templates/hono-fullstack/apps/stack/frontend/routes/__root.tsx +1 -1
- package/templates/hono-fullstack/apps/stack/frontend/routes/index.tsx +16 -4
- package/templates/hono-fullstack/apps/stack/package.json +9 -4
- package/templates/hono-fullstack/apps/stack/panda.config.ts +31 -0
- package/templates/hono-fullstack/apps/stack/tsconfig.json +1 -0
- package/templates/hono-fullstack/apps/stack/turbo.json +20 -0
- package/templates/hono-fullstack/apps/stack/vite.config.ts +48 -12
- package/templates/hono-fullstack/apps/stack/wrangler.jsonc +1 -1
- package/templates/hono-fullstack/envs/.env.example.sqlite-d1 +1 -0
- package/templates/hono-fullstack/libs/db/drizzle-kit/sqlite-d1.config.ts +29 -10
- package/templates/hono-fullstack/libs/db/package.json +1 -0
- package/templates/hono-fullstack/libs/db/src/dialects/sqlite/schema/columns.ts +1 -1
- package/templates/hono-fullstack/libs/db/src/dialects/sqlite/schema/modules/examples/examples.ts +6 -3
- package/templates/hono-fullstack/libs/db/src/dialects/sqlite/schema/vo.ts +7 -1
- package/templates/hono-fullstack/libs/definition/README.md +81 -0
- package/templates/hono-fullstack/libs/definition/package.json +3 -1
- package/templates/hono-fullstack/libs/definition/src/constants/index.ts +1 -0
- package/templates/hono-fullstack/libs/definition/src/constants/pagination.ts +3 -0
- package/templates/hono-fullstack/libs/definition/src/modules/common-contracts.ts +24 -0
- package/templates/hono-fullstack/libs/definition/src/modules/example/contracts.ts +34 -0
- package/templates/hono-fullstack/libs/definition/src/modules/example/index.ts +1 -16
- package/templates/hono-fullstack/libs/definition/src/modules/index.ts +2 -0
- package/templates/hono-fullstack/libs/definition/src/modules/vo-generated-types.ts +12 -0
- package/templates/hono-fullstack/libs/ui/.storybook/main.ts +32 -0
- package/templates/hono-fullstack/libs/ui/.storybook/panda.config.ts +22 -0
- package/templates/hono-fullstack/libs/ui/.storybook/preview.tsx +79 -0
- package/templates/hono-fullstack/libs/ui/.storybook/styles.css +1 -0
- package/templates/hono-fullstack/libs/ui/.storybook/vite.config.ts +37 -0
- package/templates/hono-fullstack/libs/ui/components.json +15 -0
- package/templates/hono-fullstack/libs/ui/package.json +114 -0
- package/templates/hono-fullstack/libs/ui/panda.config.ts +41 -0
- package/templates/hono-fullstack/libs/ui/src/Tooltip.tsx +47 -0
- package/templates/hono-fullstack/libs/ui/src/components/atoms/buttons/Button.tsx +80 -0
- package/templates/hono-fullstack/libs/ui/src/components/atoms/buttons/CloseButton.tsx +15 -0
- package/templates/hono-fullstack/libs/ui/src/components/atoms/buttons/IconButton.tsx +10 -0
- package/templates/hono-fullstack/libs/ui/src/components/atoms/collections/Combobox.tsx +91 -0
- package/templates/hono-fullstack/libs/ui/src/components/atoms/collections/Select.tsx +88 -0
- package/templates/hono-fullstack/libs/ui/src/components/atoms/collections/TreeView.tsx +142 -0
- package/templates/hono-fullstack/libs/ui/src/components/atoms/data-display/Avatar.tsx +64 -0
- package/templates/hono-fullstack/libs/ui/src/components/atoms/data-display/Badge.tsx +7 -0
- package/templates/hono-fullstack/libs/ui/src/components/atoms/data-display/Card.tsx +23 -0
- package/templates/hono-fullstack/libs/ui/src/components/atoms/data-display/Clipboard.tsx +77 -0
- package/templates/hono-fullstack/libs/ui/src/components/atoms/data-display/Icon.tsx +9 -0
- package/templates/hono-fullstack/libs/ui/src/components/atoms/data-display/Table.tsx +51 -0
- package/templates/hono-fullstack/libs/ui/src/components/atoms/data-display/Tag.tsx +23 -0
- package/templates/hono-fullstack/libs/ui/src/components/atoms/data-display/Timeline.tsx +33 -0
- package/templates/hono-fullstack/libs/ui/src/components/atoms/date-and-time/DatePicker.tsx +255 -0
- package/templates/hono-fullstack/libs/ui/src/components/atoms/disclosure/Accordion.tsx +48 -0
- package/templates/hono-fullstack/libs/ui/src/components/atoms/disclosure/Breadcrumb.tsx +50 -0
- package/templates/hono-fullstack/libs/ui/src/components/atoms/disclosure/Collapsible.tsx +34 -0
- package/templates/hono-fullstack/libs/ui/src/components/atoms/disclosure/Pagination.tsx +74 -0
- package/templates/hono-fullstack/libs/ui/src/components/atoms/disclosure/Steps.tsx +91 -0
- package/templates/hono-fullstack/libs/ui/src/components/atoms/disclosure/Tabs.tsx +37 -0
- package/templates/hono-fullstack/libs/ui/src/components/atoms/feedback/Alert.tsx +52 -0
- package/templates/hono-fullstack/libs/ui/src/components/atoms/feedback/Progress.tsx +41 -0
- package/templates/hono-fullstack/libs/ui/src/components/atoms/feedback/ProgressCircle.tsx +40 -0
- package/templates/hono-fullstack/libs/ui/src/components/atoms/feedback/Skeleton.tsx +37 -0
- package/templates/hono-fullstack/libs/ui/src/components/atoms/feedback/Spinner.tsx +7 -0
- package/templates/hono-fullstack/libs/ui/src/components/atoms/feedback/Toast.tsx +99 -0
- package/templates/hono-fullstack/libs/ui/src/components/atoms/forms/Checkbox.tsx +95 -0
- package/templates/hono-fullstack/libs/ui/src/components/atoms/forms/ColorPicker.tsx +148 -0
- package/templates/hono-fullstack/libs/ui/src/components/atoms/forms/Editable.tsx +44 -0
- package/templates/hono-fullstack/libs/ui/src/components/atoms/forms/Field.tsx +36 -0
- package/templates/hono-fullstack/libs/ui/src/components/atoms/forms/Fieldset.tsx +34 -0
- package/templates/hono-fullstack/libs/ui/src/components/atoms/forms/FileUpload.tsx +143 -0
- package/templates/hono-fullstack/libs/ui/src/components/atoms/forms/Input.tsx +7 -0
- package/templates/hono-fullstack/libs/ui/src/components/atoms/forms/InputAddon.tsx +7 -0
- package/templates/hono-fullstack/libs/ui/src/components/atoms/forms/InputGroup.tsx +61 -0
- package/templates/hono-fullstack/libs/ui/src/components/atoms/forms/NativeSelect.tsx +81 -0
- package/templates/hono-fullstack/libs/ui/src/components/atoms/forms/NumberInput.tsx +63 -0
- package/templates/hono-fullstack/libs/ui/src/components/atoms/forms/PasswordInput.tsx +76 -0
- package/templates/hono-fullstack/libs/ui/src/components/atoms/forms/PinInput.tsx +36 -0
- package/templates/hono-fullstack/libs/ui/src/components/atoms/forms/RadioCard.tsx +96 -0
- package/templates/hono-fullstack/libs/ui/src/components/atoms/forms/RadioGroup.tsx +61 -0
- package/templates/hono-fullstack/libs/ui/src/components/atoms/forms/RatingGroup.tsx +106 -0
- package/templates/hono-fullstack/libs/ui/src/components/atoms/forms/SegmentGroup.tsx +68 -0
- package/templates/hono-fullstack/libs/ui/src/components/atoms/forms/Slider.tsx +87 -0
- package/templates/hono-fullstack/libs/ui/src/components/atoms/forms/Switch.tsx +74 -0
- package/templates/hono-fullstack/libs/ui/src/components/atoms/forms/TagsInput.tsx +77 -0
- package/templates/hono-fullstack/libs/ui/src/components/atoms/forms/Textarea.tsx +7 -0
- package/templates/hono-fullstack/libs/ui/src/components/atoms/index.ts +98 -0
- package/templates/hono-fullstack/libs/ui/src/components/atoms/internal/AbsoluteCenter.tsx +7 -0
- package/templates/hono-fullstack/libs/ui/src/components/atoms/internal/Loader.tsx +69 -0
- package/templates/hono-fullstack/libs/ui/src/components/atoms/internal/Span.tsx +5 -0
- package/templates/hono-fullstack/libs/ui/src/components/atoms/internal/create-layout.ts +18 -0
- package/templates/hono-fullstack/libs/ui/src/components/atoms/layout/Float.tsx +7 -0
- package/templates/hono-fullstack/libs/ui/src/components/atoms/layout/Grid.tsx +17 -0
- package/templates/hono-fullstack/libs/ui/src/components/atoms/layout/Group.tsx +7 -0
- package/templates/hono-fullstack/libs/ui/src/components/atoms/layout/ScrollArea.tsx +46 -0
- package/templates/hono-fullstack/libs/ui/src/components/atoms/layout/Separator.tsx +26 -0
- package/templates/hono-fullstack/libs/ui/src/components/atoms/layout/Stack.tsx +54 -0
- package/templates/hono-fullstack/libs/ui/src/components/atoms/overlays/Dialog.tsx +69 -0
- package/templates/hono-fullstack/libs/ui/src/components/atoms/overlays/Drawer.tsx +49 -0
- package/templates/hono-fullstack/libs/ui/src/components/atoms/overlays/HoverCard.tsx +37 -0
- package/templates/hono-fullstack/libs/ui/src/components/atoms/overlays/Menu.tsx +74 -0
- package/templates/hono-fullstack/libs/ui/src/components/atoms/overlays/OverlayManager.test.ts +124 -0
- package/templates/hono-fullstack/libs/ui/src/components/atoms/overlays/OverlayManager.tsx +189 -0
- package/templates/hono-fullstack/libs/ui/src/components/atoms/overlays/Popover.tsx +57 -0
- package/templates/hono-fullstack/libs/ui/src/components/atoms/overlays/Tooltip.tsx +37 -0
- package/templates/hono-fullstack/libs/ui/src/components/atoms/typography/Heading.tsx +6 -0
- package/templates/hono-fullstack/libs/ui/src/components/atoms/typography/Link.tsx +7 -0
- package/templates/hono-fullstack/libs/ui/src/components/atoms/typography/LinkOverlay.tsx +21 -0
- package/templates/hono-fullstack/libs/ui/src/components/atoms/typography/Text.tsx +6 -0
- package/templates/hono-fullstack/libs/ui/src/components/atoms/utilities/VisuallyHidden.tsx +13 -0
- package/templates/hono-fullstack/libs/ui/src/hooks.ts +242 -0
- package/templates/hono-fullstack/libs/ui/src/index.ts +19 -0
- package/templates/hono-fullstack/libs/ui/src/theme/animation-styles.ts +50 -0
- package/templates/hono-fullstack/libs/ui/src/theme/breakpoints.ts +7 -0
- package/templates/hono-fullstack/libs/ui/src/theme/conditions.ts +12 -0
- package/templates/hono-fullstack/libs/ui/src/theme/containers.ts +16 -0
- package/templates/hono-fullstack/libs/ui/src/theme/global-css.ts +12 -0
- package/templates/hono-fullstack/libs/ui/src/theme/keyframes.ts +157 -0
- package/templates/hono-fullstack/libs/ui/src/theme/layer-styles.ts +11 -0
- package/templates/hono-fullstack/libs/ui/src/theme/patterns/grid.ts +51 -0
- package/templates/hono-fullstack/libs/ui/src/theme/patterns/index.ts +60 -0
- package/templates/hono-fullstack/libs/ui/src/theme/patterns/stack.ts +46 -0
- package/templates/hono-fullstack/libs/ui/src/theme/recipes/absolute-center.ts +38 -0
- package/templates/hono-fullstack/libs/ui/src/theme/recipes/accordion.ts +68 -0
- package/templates/hono-fullstack/libs/ui/src/theme/recipes/alert.ts +83 -0
- package/templates/hono-fullstack/libs/ui/src/theme/recipes/avatar.ts +155 -0
- package/templates/hono-fullstack/libs/ui/src/theme/recipes/badge.ts +67 -0
- package/templates/hono-fullstack/libs/ui/src/theme/recipes/breadcrumb.ts +69 -0
- package/templates/hono-fullstack/libs/ui/src/theme/recipes/button.ts +149 -0
- package/templates/hono-fullstack/libs/ui/src/theme/recipes/card.ts +36 -0
- package/templates/hono-fullstack/libs/ui/src/theme/recipes/checkbox.ts +120 -0
- package/templates/hono-fullstack/libs/ui/src/theme/recipes/clipboard.ts +22 -0
- package/templates/hono-fullstack/libs/ui/src/theme/recipes/collapsible.ts +26 -0
- package/templates/hono-fullstack/libs/ui/src/theme/recipes/color-picker.ts +299 -0
- package/templates/hono-fullstack/libs/ui/src/theme/recipes/combobox.ts +141 -0
- package/templates/hono-fullstack/libs/ui/src/theme/recipes/date-picker.ts +302 -0
- package/templates/hono-fullstack/libs/ui/src/theme/recipes/dialog.ts +191 -0
- package/templates/hono-fullstack/libs/ui/src/theme/recipes/drawer.ts +170 -0
- package/templates/hono-fullstack/libs/ui/src/theme/recipes/editable.ts +64 -0
- package/templates/hono-fullstack/libs/ui/src/theme/recipes/field.ts +41 -0
- package/templates/hono-fullstack/libs/ui/src/theme/recipes/fieldset.ts +47 -0
- package/templates/hono-fullstack/libs/ui/src/theme/recipes/file-upload.ts +86 -0
- package/templates/hono-fullstack/libs/ui/src/theme/recipes/group.ts +78 -0
- package/templates/hono-fullstack/libs/ui/src/theme/recipes/heading.ts +24 -0
- package/templates/hono-fullstack/libs/ui/src/theme/recipes/hover-card.ts +47 -0
- package/templates/hono-fullstack/libs/ui/src/theme/recipes/icon.ts +25 -0
- package/templates/hono-fullstack/libs/ui/src/theme/recipes/index.ts +120 -0
- package/templates/hono-fullstack/libs/ui/src/theme/recipes/input-addon.ts +51 -0
- package/templates/hono-fullstack/libs/ui/src/theme/recipes/input-group.ts +77 -0
- package/templates/hono-fullstack/libs/ui/src/theme/recipes/input.ts +99 -0
- package/templates/hono-fullstack/libs/ui/src/theme/recipes/link.ts +36 -0
- package/templates/hono-fullstack/libs/ui/src/theme/recipes/menu.ts +114 -0
- package/templates/hono-fullstack/libs/ui/src/theme/recipes/native-select.ts +92 -0
- package/templates/hono-fullstack/libs/ui/src/theme/recipes/number-input.ts +91 -0
- package/templates/hono-fullstack/libs/ui/src/theme/recipes/pagination.ts +9 -0
- package/templates/hono-fullstack/libs/ui/src/theme/recipes/pin-input.ts +33 -0
- package/templates/hono-fullstack/libs/ui/src/theme/recipes/popover.ts +78 -0
- package/templates/hono-fullstack/libs/ui/src/theme/recipes/progress-circle.ts +50 -0
- package/templates/hono-fullstack/libs/ui/src/theme/recipes/progress.ts +112 -0
- package/templates/hono-fullstack/libs/ui/src/theme/recipes/radio-card.ts +223 -0
- package/templates/hono-fullstack/libs/ui/src/theme/recipes/radio-group.ts +78 -0
- package/templates/hono-fullstack/libs/ui/src/theme/recipes/rating-group.ts +98 -0
- package/templates/hono-fullstack/libs/ui/src/theme/recipes/scroll-area.ts +119 -0
- package/templates/hono-fullstack/libs/ui/src/theme/recipes/segment-group.ts +162 -0
- package/templates/hono-fullstack/libs/ui/src/theme/recipes/select.ts +157 -0
- package/templates/hono-fullstack/libs/ui/src/theme/recipes/separator.ts +25 -0
- package/templates/hono-fullstack/libs/ui/src/theme/recipes/skeleton.ts +65 -0
- package/templates/hono-fullstack/libs/ui/src/theme/recipes/slider.ts +164 -0
- package/templates/hono-fullstack/libs/ui/src/theme/recipes/spinner.ts +34 -0
- package/templates/hono-fullstack/libs/ui/src/theme/recipes/steps.ts +162 -0
- package/templates/hono-fullstack/libs/ui/src/theme/recipes/switch.ts +150 -0
- package/templates/hono-fullstack/libs/ui/src/theme/recipes/table.ts +150 -0
- package/templates/hono-fullstack/libs/ui/src/theme/recipes/tabs.ts +128 -0
- package/templates/hono-fullstack/libs/ui/src/theme/recipes/tag.ts +114 -0
- package/templates/hono-fullstack/libs/ui/src/theme/recipes/tags-input.ts +201 -0
- package/templates/hono-fullstack/libs/ui/src/theme/recipes/text.ts +7 -0
- package/templates/hono-fullstack/libs/ui/src/theme/recipes/textarea.ts +90 -0
- package/templates/hono-fullstack/libs/ui/src/theme/recipes/timeline.ts +137 -0
- package/templates/hono-fullstack/libs/ui/src/theme/recipes/toast.ts +52 -0
- package/templates/hono-fullstack/libs/ui/src/theme/recipes/tooltip.ts +44 -0
- package/templates/hono-fullstack/libs/ui/src/theme/recipes/tree-view.ts +200 -0
- package/templates/hono-fullstack/libs/ui/src/theme/semanticTokens/colors/amber.ts +91 -0
- package/templates/hono-fullstack/libs/ui/src/theme/semanticTokens/colors/gray.ts +103 -0
- package/templates/hono-fullstack/libs/ui/src/theme/semanticTokens/colors/green.ts +88 -0
- package/templates/hono-fullstack/libs/ui/src/theme/semanticTokens/colors/index.ts +14 -0
- package/templates/hono-fullstack/libs/ui/src/theme/semanticTokens/colors/lime.ts +91 -0
- package/templates/hono-fullstack/libs/ui/src/theme/semanticTokens/colors/red.ts +88 -0
- package/templates/hono-fullstack/libs/ui/src/theme/semanticTokens/index.ts +8 -0
- package/templates/hono-fullstack/libs/ui/src/theme/semanticTokens/shadows.ts +46 -0
- package/templates/hono-fullstack/libs/ui/src/theme/text-styles.ts +82 -0
- package/templates/hono-fullstack/libs/ui/src/theme/tokens/animations.ts +8 -0
- package/templates/hono-fullstack/libs/ui/src/theme/tokens/aspect-ratio.ts +6 -0
- package/templates/hono-fullstack/libs/ui/src/theme/tokens/borders.ts +5 -0
- package/templates/hono-fullstack/libs/ui/src/theme/tokens/colors.ts +35 -0
- package/templates/hono-fullstack/libs/ui/src/theme/tokens/durations.ts +11 -0
- package/templates/hono-fullstack/libs/ui/src/theme/tokens/easings.ts +9 -0
- package/templates/hono-fullstack/libs/ui/src/theme/tokens/index.ts +42 -0
- package/templates/hono-fullstack/libs/ui/src/theme/tokens/radii.ts +13 -0
- package/templates/hono-fullstack/libs/ui/src/theme/tokens/sizes.ts +27 -0
- package/templates/hono-fullstack/libs/ui/src/theme/tokens/spacing.ts +41 -0
- package/templates/hono-fullstack/libs/ui/src/theme/tokens/typography.ts +86 -0
- package/templates/hono-fullstack/libs/ui/src/theme/tokens/z-index.ts +43 -0
- package/templates/hono-fullstack/libs/ui/stories/README.md +107 -0
- package/templates/hono-fullstack/libs/ui/stories/actions/Button.stories.tsx +260 -0
- package/templates/hono-fullstack/libs/ui/stories/actions/Clipboard.stories.tsx +87 -0
- package/templates/hono-fullstack/libs/ui/stories/actions/IconButton.stories.tsx +33 -0
- package/templates/hono-fullstack/libs/ui/stories/collections/Combobox.stories.tsx +334 -0
- package/templates/hono-fullstack/libs/ui/stories/collections/Select.stories.tsx +342 -0
- package/templates/hono-fullstack/libs/ui/stories/collections/TreeView.stories.tsx +252 -0
- package/templates/hono-fullstack/libs/ui/stories/color/ColorPicker.stories.tsx +217 -0
- package/templates/hono-fullstack/libs/ui/stories/date/DatePicker.stories.tsx +302 -0
- package/templates/hono-fullstack/libs/ui/stories/disclosure/Accordion.stories.tsx +105 -0
- package/templates/hono-fullstack/libs/ui/stories/disclosure/Collapsible.stories.tsx +55 -0
- package/templates/hono-fullstack/libs/ui/stories/disclosure/Steps.stories.tsx +208 -0
- package/templates/hono-fullstack/libs/ui/stories/disclosure/Tabs.stories.tsx +176 -0
- package/templates/hono-fullstack/libs/ui/stories/display/Avatar.stories.tsx +108 -0
- package/templates/hono-fullstack/libs/ui/stories/display/Badge.stories.tsx +90 -0
- package/templates/hono-fullstack/libs/ui/stories/display/Card.stories.tsx +121 -0
- package/templates/hono-fullstack/libs/ui/stories/display/Heading.stories.tsx +62 -0
- package/templates/hono-fullstack/libs/ui/stories/display/Icon.stories.tsx +51 -0
- package/templates/hono-fullstack/libs/ui/stories/display/Table.stories.tsx +222 -0
- package/templates/hono-fullstack/libs/ui/stories/display/Tag.stories.tsx +168 -0
- package/templates/hono-fullstack/libs/ui/stories/display/Text.stories.tsx +32 -0
- package/templates/hono-fullstack/libs/ui/stories/display/Timeline.stories.tsx +241 -0
- package/templates/hono-fullstack/libs/ui/stories/feedback/Alert.stories.tsx +122 -0
- package/templates/hono-fullstack/libs/ui/stories/feedback/Progress.stories.tsx +163 -0
- package/templates/hono-fullstack/libs/ui/stories/feedback/ProgressCircle.stories.tsx +176 -0
- package/templates/hono-fullstack/libs/ui/stories/feedback/Skeleton.stories.tsx +75 -0
- package/templates/hono-fullstack/libs/ui/stories/feedback/Spinner.stories.tsx +49 -0
- package/templates/hono-fullstack/libs/ui/stories/feedback/Toast.stories.tsx +145 -0
- package/templates/hono-fullstack/libs/ui/stories/forms/Checkbox.stories.tsx +281 -0
- package/templates/hono-fullstack/libs/ui/stories/forms/Editable.stories.tsx +94 -0
- package/templates/hono-fullstack/libs/ui/stories/forms/Field.stories.tsx +72 -0
- package/templates/hono-fullstack/libs/ui/stories/forms/Fieldset.stories.tsx +109 -0
- package/templates/hono-fullstack/libs/ui/stories/forms/FileUpload.stories.tsx +115 -0
- package/templates/hono-fullstack/libs/ui/stories/forms/Form.stories.tsx +120 -0
- package/templates/hono-fullstack/libs/ui/stories/forms/Input.stories.tsx +155 -0
- package/templates/hono-fullstack/libs/ui/stories/forms/InputGroup.stories.tsx +79 -0
- package/templates/hono-fullstack/libs/ui/stories/forms/NativeSelect.stories.tsx +160 -0
- package/templates/hono-fullstack/libs/ui/stories/forms/NumberInput.stories.tsx +149 -0
- package/templates/hono-fullstack/libs/ui/stories/forms/PasswordInput.stories.tsx +141 -0
- package/templates/hono-fullstack/libs/ui/stories/forms/PinInput.stories.tsx +155 -0
- package/templates/hono-fullstack/libs/ui/stories/forms/RadioCard.stories.tsx +265 -0
- package/templates/hono-fullstack/libs/ui/stories/forms/RadioGroup.stories.tsx +109 -0
- package/templates/hono-fullstack/libs/ui/stories/forms/RatingGroup.stories.tsx +123 -0
- package/templates/hono-fullstack/libs/ui/stories/forms/SegmentGroup.stories.tsx +130 -0
- package/templates/hono-fullstack/libs/ui/stories/forms/Slider.stories.tsx +190 -0
- package/templates/hono-fullstack/libs/ui/stories/forms/Switch.stories.tsx +124 -0
- package/templates/hono-fullstack/libs/ui/stories/forms/TagsInput.stories.tsx +154 -0
- package/templates/hono-fullstack/libs/ui/stories/forms/Textarea.stories.tsx +148 -0
- package/templates/hono-fullstack/libs/ui/stories/layout/Grid.stories.tsx +60 -0
- package/templates/hono-fullstack/libs/ui/stories/layout/Positioning.stories.tsx +90 -0
- package/templates/hono-fullstack/libs/ui/stories/layout/ScrollArea.stories.tsx +68 -0
- package/templates/hono-fullstack/libs/ui/stories/layout/Stack.stories.tsx +87 -0
- package/templates/hono-fullstack/libs/ui/stories/navigation/Breadcrumb.stories.tsx +104 -0
- package/templates/hono-fullstack/libs/ui/stories/navigation/Link.stories.tsx +62 -0
- package/templates/hono-fullstack/libs/ui/stories/navigation/LinkBox.stories.tsx +45 -0
- package/templates/hono-fullstack/libs/ui/stories/navigation/Pagination.stories.tsx +74 -0
- package/templates/hono-fullstack/libs/ui/stories/overlays/Dialog.stories.tsx +255 -0
- package/templates/hono-fullstack/libs/ui/stories/overlays/Drawer.stories.tsx +114 -0
- package/templates/hono-fullstack/libs/ui/stories/overlays/HoverCard.stories.tsx +47 -0
- package/templates/hono-fullstack/libs/ui/stories/overlays/Menu.stories.tsx +133 -0
- package/templates/hono-fullstack/libs/ui/stories/overlays/OverlayManager.stories.tsx +206 -0
- package/templates/hono-fullstack/libs/ui/stories/overlays/Popover.stories.tsx +73 -0
- package/templates/hono-fullstack/libs/ui/stories/overlays/Tooltip.stories.tsx +114 -0
- package/templates/hono-fullstack/libs/ui/stories/tsconfig.json +14 -0
- package/templates/hono-fullstack/libs/ui/tsconfig.build.json +5 -0
- package/templates/hono-fullstack/libs/ui/tsconfig.json +13 -0
- package/templates/hono-fullstack/libs/ui/turbo.json +28 -0
- package/templates/hono-fullstack/libs/ui/vite.config.ts +33 -0
- package/templates/hono-fullstack/oyo.config.json +30 -4
- package/templates/hono-fullstack/package.json +1 -0
- package/templates/hono-fullstack/pnpm-workspace.yaml +20 -10
- package/templates/hono-fullstack/turbo.json +10 -0
- package/templates/hono-server/.agents/skills/{grilling → ask-grilling}/SKILL.md +1 -1
- package/templates/hono-server/.agents/skills/build-api-and-interface-design/SKILL.md +369 -0
- package/templates/hono-server/.agents/skills/build-context-engineering/SKILL.md +353 -0
- package/templates/hono-server/.agents/skills/build-incremental-implementation/SKILL.md +249 -0
- package/templates/hono-server/.agents/skills/build-observability-and-instrumentation/SKILL.md +239 -0
- package/templates/hono-server/.agents/skills/plan-planning-and-task-breakdown/SKILL.md +257 -0
- package/templates/hono-server/.agents/skills/{prototype → plan-prototype}/LOGIC.md +1 -1
- package/templates/hono-server/.agents/skills/{prototype → plan-prototype}/SKILL.md +2 -2
- package/templates/{monorepo/.agents/skills/prototype → hono-server/.agents/skills/plan-prototype}/UI.md +2 -2
- package/templates/{hono-fullstack/.agents/skills/research → hono-server/.agents/skills/plan-research}/SKILL.md +2 -2
- package/templates/hono-server/.agents/skills/plan-using-agent-skills/SKILL.md +185 -0
- package/templates/{hono-fullstack/.agents/skills/wayfinder → hono-server/.agents/skills/plan-wayfinder}/SKILL.md +43 -29
- package/templates/hono-server/.agents/skills/review-code-review-and-quality/SKILL.md +400 -0
- package/templates/hono-server/.agents/skills/review-doubt-driven-development/SKILL.md +244 -0
- package/templates/hono-server/.agents/skills/review-security-and-hardening/SKILL.md +216 -0
- package/templates/hono-server/.agents/skills/review-security-and-hardening/references/hardening-patterns.md +331 -0
- package/templates/hono-server/.agents/skills/ship-ci-cd-and-automation/SKILL.md +393 -0
- package/templates/hono-server/.agents/skills/ship-deprecation-and-migration/SKILL.md +252 -0
- package/templates/hono-server/.agents/skills/ship-documentation-and-adrs/SKILL.md +298 -0
- package/templates/hono-server/.agents/skills/ship-git-workflow-and-versioning/SKILL.md +355 -0
- package/templates/hono-server/.agents/skills/ship-shipping-and-launch/SKILL.md +336 -0
- package/templates/hono-server/.agents/skills/simplify-code-simplification/SKILL.md +332 -0
- package/templates/hono-server/.agents/skills/simplify-performance-optimization/SKILL.md +268 -0
- package/templates/hono-server/.agents/skills/simplify-performance-optimization/references/optimization-patterns.md +250 -0
- package/templates/hono-server/.agents/skills/spec-constraint-driven-development/SKILL.md +318 -0
- package/templates/hono-server/.agents/skills/spec-constraint-driven-development/references/floor-guard.md +182 -0
- package/templates/hono-server/.agents/skills/spec-constraint-driven-development/scripts/quality-gate.mjs +45 -0
- package/templates/hono-server/.agents/skills/spec-driven-development/SKILL.md +261 -0
- package/templates/hono-server/.agents/skills/test-browser-testing-with-devtools/SKILL.md +319 -0
- package/templates/hono-server/.agents/skills/test-debugging-and-error-recovery/SKILL.md +300 -0
- package/templates/hono-server/.agents/skills/test-driven-development/SKILL.md +400 -0
- package/templates/hono-server/.codegraph/.gitignore +5 -0
- package/templates/hono-server/AGENTS.md +9 -20
- package/templates/hono-server/README.md +9 -1
- package/templates/hono-server/_gitignore +1 -0
- package/templates/hono-server/apps/server/package.json +7 -2
- package/templates/hono-server/apps/server/src/adapters/cloudflare/entry.ts +4 -30
- package/templates/hono-server/apps/server/src/adapters/nodejs/bootstrap.ts +20 -12
- package/templates/hono-server/apps/server/src/adapters/nodejs/entry.ts +7 -57
- package/templates/hono-server/apps/server/src/app.ts +37 -21
- package/templates/hono-server/apps/server/src/config.ts +1 -1
- package/templates/hono-server/apps/server/src/di-container.ts +51 -0
- package/templates/hono-server/apps/server/src/infra/logger/getter.ts +1 -1
- package/templates/hono-server/apps/server/src/infra/logger/pino.ts +21 -34
- package/templates/hono-server/apps/server/src/infra/work-runner/errors.ts +22 -0
- package/templates/hono-server/apps/server/src/infra/work-runner/pass-through/runner.ts +28 -22
- package/templates/hono-server/apps/server/src/infra/work-runner/piscina/runner.ts +11 -34
- package/templates/{hono-fullstack/apps/server/src/infra/work-runner/example → hono-server/apps/server/src/infra/work-runner/piscina}/worker-entry.ts +6 -2
- package/templates/hono-server/apps/server/src/infra/work-runner/types.ts +2 -16
- package/templates/hono-server/apps/server/src/infra/work-runner/utils/business-error.ts +10 -5
- package/templates/hono-server/apps/server/src/infra/work-runner/utils/message.ts +5 -17
- package/templates/hono-server/apps/server/src/middlewares/cors.ts +16 -22
- package/templates/hono-server/apps/server/src/middlewares/logger.ts +34 -0
- package/templates/hono-server/apps/server/src/modules/example/module.ts +8 -0
- package/templates/hono-server/apps/server/src/modules/example/queries.ts +8 -0
- package/templates/hono-server/apps/server/src/modules/example/routes.ts +74 -68
- package/templates/hono-server/apps/server/src/modules/example/service.test.ts +53 -0
- package/templates/hono-server/apps/server/src/modules/example/service.ts +54 -0
- package/templates/hono-server/apps/server/src/modules/example/types.ts +12 -0
- package/templates/hono-server/apps/server/src/modules/example/work-task/tasks.test.ts +9 -35
- package/templates/hono-server/apps/server/src/modules/example/work-task/tasks.ts +15 -46
- package/templates/hono-server/apps/server/src/shared/errors/defs/index.ts +6 -1
- package/templates/hono-server/apps/server/src/shared/errors/handler.ts +1 -1
- package/templates/hono-server/apps/server/src/shared/network/openapi/index.ts +1 -1
- package/templates/hono-server/apps/server/src/shared/types/app.ts +51 -0
- package/templates/hono-server/apps/server/src/shared/types/db.ts +126 -0
- package/templates/hono-server/apps/server/src/shared/utils/data-access/check.ts +19 -0
- package/templates/hono-server/apps/server/src/shared/utils/data-access/model.ts +47 -0
- package/templates/hono-server/apps/server/src/shared/utils/data-access/params.ts +105 -0
- package/templates/hono-server/apps/server/src/shared/utils/data-access/query.test.ts +139 -0
- package/templates/hono-server/apps/server/src/shared/utils/data-access/query.ts +236 -0
- package/templates/hono-server/apps/server/vite.config.ts +2 -2
- package/templates/hono-server/apps/server/wrangler.jsonc +1 -1
- package/templates/hono-server/docker/README.md +1 -1
- package/templates/hono-server/envs/.env.example.sqlite-d1 +1 -0
- package/templates/hono-server/libs/db/drizzle-kit/sqlite-d1.config.ts +29 -10
- package/templates/hono-server/libs/db/package.json +1 -0
- package/templates/hono-server/libs/db/src/dialects/sqlite/schema/columns.ts +1 -1
- package/templates/hono-server/libs/db/src/dialects/sqlite/schema/modules/examples/examples.ts +6 -3
- package/templates/hono-server/libs/db/src/dialects/sqlite/schema/vo.ts +7 -1
- package/templates/hono-server/libs/definition/README.md +81 -0
- package/templates/hono-server/libs/definition/package.json +3 -1
- package/templates/hono-server/libs/definition/src/constants/index.ts +1 -0
- package/templates/hono-server/libs/definition/src/constants/pagination.ts +3 -0
- package/templates/hono-server/libs/definition/src/modules/common-contracts.ts +24 -0
- package/templates/hono-server/libs/definition/src/modules/example/contracts.ts +34 -0
- package/templates/hono-server/libs/definition/src/modules/example/index.ts +1 -16
- package/templates/hono-server/libs/definition/src/modules/index.ts +2 -0
- package/templates/hono-server/libs/definition/src/modules/vo-generated-types.ts +12 -0
- package/templates/hono-server/oyo.config.json +30 -4
- package/templates/hono-server/package.json +1 -0
- package/templates/hono-server/pnpm-workspace.yaml +9 -7
- package/templates/hono-server/turbo.json +10 -0
- package/templates/{hono-fullstack/.agents/skills/grilling → monorepo/.agents/skills/ask-grilling}/SKILL.md +1 -1
- package/templates/monorepo/.agents/skills/build-api-and-interface-design/SKILL.md +369 -0
- package/templates/monorepo/.agents/skills/build-context-engineering/SKILL.md +353 -0
- package/templates/monorepo/.agents/skills/build-incremental-implementation/SKILL.md +249 -0
- package/templates/monorepo/.agents/skills/build-observability-and-instrumentation/SKILL.md +239 -0
- package/templates/monorepo/.agents/skills/plan-planning-and-task-breakdown/SKILL.md +257 -0
- package/templates/{hono-fullstack/.agents/skills/prototype → monorepo/.agents/skills/plan-prototype}/LOGIC.md +1 -1
- package/templates/{hono-fullstack/.agents/skills/prototype → monorepo/.agents/skills/plan-prototype}/SKILL.md +2 -2
- package/templates/{hono-server/.agents/skills/prototype → monorepo/.agents/skills/plan-prototype}/UI.md +2 -2
- package/templates/{hono-server/.agents/skills/research → monorepo/.agents/skills/plan-research}/SKILL.md +2 -2
- package/templates/monorepo/.agents/skills/plan-using-agent-skills/SKILL.md +185 -0
- package/templates/{hono-server/.agents/skills/wayfinder → monorepo/.agents/skills/plan-wayfinder}/SKILL.md +43 -29
- package/templates/monorepo/.agents/skills/review-code-review-and-quality/SKILL.md +400 -0
- package/templates/monorepo/.agents/skills/review-doubt-driven-development/SKILL.md +244 -0
- package/templates/monorepo/.agents/skills/review-security-and-hardening/SKILL.md +216 -0
- package/templates/monorepo/.agents/skills/review-security-and-hardening/references/hardening-patterns.md +331 -0
- package/templates/monorepo/.agents/skills/ship-ci-cd-and-automation/SKILL.md +393 -0
- package/templates/monorepo/.agents/skills/ship-deprecation-and-migration/SKILL.md +252 -0
- package/templates/monorepo/.agents/skills/ship-documentation-and-adrs/SKILL.md +298 -0
- package/templates/monorepo/.agents/skills/ship-git-workflow-and-versioning/SKILL.md +355 -0
- package/templates/monorepo/.agents/skills/ship-shipping-and-launch/SKILL.md +336 -0
- package/templates/monorepo/.agents/skills/simplify-code-simplification/SKILL.md +332 -0
- package/templates/monorepo/.agents/skills/simplify-performance-optimization/SKILL.md +268 -0
- package/templates/monorepo/.agents/skills/simplify-performance-optimization/references/optimization-patterns.md +250 -0
- package/templates/monorepo/.agents/skills/spec-constraint-driven-development/SKILL.md +318 -0
- package/templates/monorepo/.agents/skills/spec-constraint-driven-development/references/floor-guard.md +182 -0
- package/templates/monorepo/.agents/skills/spec-constraint-driven-development/scripts/quality-gate.mjs +45 -0
- package/templates/monorepo/.agents/skills/spec-driven-development/SKILL.md +261 -0
- package/templates/monorepo/.agents/skills/test-browser-testing-with-devtools/SKILL.md +319 -0
- package/templates/monorepo/.agents/skills/test-debugging-and-error-recovery/SKILL.md +300 -0
- package/templates/monorepo/.agents/skills/test-driven-development/SKILL.md +400 -0
- package/templates/monorepo/.codegraph/.gitignore +5 -0
- package/templates/monorepo/AGENTS.md +9 -20
- package/templates/monorepo/_gitignore +1 -0
- package/templates/monorepo/oyo.config.json +6 -4
- package/templates/monorepo/pnpm-workspace.yaml +4 -4
- package/templates/monorepo/turbo.json +10 -0
- package/templates/hono-fullstack/.agents/skills/ask-matt/PHASE-BOUNDARIES.md +0 -55
- package/templates/hono-fullstack/.agents/skills/ask-matt/SKILL.md +0 -90
- package/templates/hono-fullstack/.agents/skills/ask-matt/agents/openai.yaml +0 -5
- package/templates/hono-fullstack/.agents/skills/code-review/SKILL.md +0 -87
- package/templates/hono-fullstack/.agents/skills/code-review/agents/openai.yaml +0 -3
- package/templates/hono-fullstack/.agents/skills/codebase-design/DEEPENING.md +0 -37
- package/templates/hono-fullstack/.agents/skills/codebase-design/DESIGN-IT-TWICE.md +0 -44
- package/templates/hono-fullstack/.agents/skills/codebase-design/SKILL.md +0 -114
- package/templates/hono-fullstack/.agents/skills/codebase-design/agents/openai.yaml +0 -3
- package/templates/hono-fullstack/.agents/skills/confirm-requirements/SKILL.md +0 -25
- package/templates/hono-fullstack/.agents/skills/diagnosing-bugs/SKILL.md +0 -140
- package/templates/hono-fullstack/.agents/skills/diagnosing-bugs/agents/openai.yaml +0 -3
- package/templates/hono-fullstack/.agents/skills/diagnosing-bugs/scripts/hitl-loop.template.sh +0 -44
- package/templates/hono-fullstack/.agents/skills/domain-modeling/ADR-FORMAT.md +0 -47
- package/templates/hono-fullstack/.agents/skills/domain-modeling/CONTEXT-FORMAT.md +0 -60
- package/templates/hono-fullstack/.agents/skills/domain-modeling/SKILL.md +0 -74
- package/templates/hono-fullstack/.agents/skills/domain-modeling/agents/openai.yaml +0 -3
- package/templates/hono-fullstack/.agents/skills/grill-me/SKILL.md +0 -7
- package/templates/hono-fullstack/.agents/skills/grill-me/agents/openai.yaml +0 -5
- package/templates/hono-fullstack/.agents/skills/implement/SKILL.md +0 -15
- package/templates/hono-fullstack/.agents/skills/implement/agents/openai.yaml +0 -5
- package/templates/hono-fullstack/.agents/skills/improve-codebase-architecture/HTML-REPORT.md +0 -123
- package/templates/hono-fullstack/.agents/skills/improve-codebase-architecture/SKILL.md +0 -71
- package/templates/hono-fullstack/.agents/skills/improve-codebase-architecture/agents/openai.yaml +0 -5
- package/templates/hono-fullstack/.agents/skills/resolving-merge-conflicts/SKILL.md +0 -14
- package/templates/hono-fullstack/.agents/skills/resolving-merge-conflicts/agents/openai.yaml +0 -3
- package/templates/hono-fullstack/.agents/skills/scoped-code-review/SKILL.md +0 -113
- package/templates/hono-fullstack/.agents/skills/setup-matt-pocock-skills/SKILL.md +0 -116
- package/templates/hono-fullstack/.agents/skills/setup-matt-pocock-skills/agents/openai.yaml +0 -5
- package/templates/hono-fullstack/.agents/skills/setup-matt-pocock-skills/domain.md +0 -51
- package/templates/hono-fullstack/.agents/skills/setup-matt-pocock-skills/issue-tracker-github.md +0 -45
- package/templates/hono-fullstack/.agents/skills/setup-matt-pocock-skills/issue-tracker-gitlab.md +0 -46
- package/templates/hono-fullstack/.agents/skills/setup-matt-pocock-skills/issue-tracker-local.md +0 -30
- package/templates/hono-fullstack/.agents/skills/setup-matt-pocock-skills/triage-labels.md +0 -15
- package/templates/hono-fullstack/.agents/skills/tdd/SKILL.md +0 -38
- package/templates/hono-fullstack/.agents/skills/tdd/agents/openai.yaml +0 -3
- package/templates/hono-fullstack/.agents/skills/tdd/mocking.md +0 -59
- package/templates/hono-fullstack/.agents/skills/tdd/tests.md +0 -77
- package/templates/hono-fullstack/.agents/skills/teach/GLOSSARY-FORMAT.md +0 -35
- package/templates/hono-fullstack/.agents/skills/teach/LEARNING-RECORD-FORMAT.md +0 -46
- package/templates/hono-fullstack/.agents/skills/teach/MISSION-FORMAT.md +0 -31
- package/templates/hono-fullstack/.agents/skills/teach/RESOURCES-FORMAT.md +0 -32
- package/templates/hono-fullstack/.agents/skills/teach/SKILL.md +0 -140
- package/templates/hono-fullstack/.agents/skills/teach/agents/openai.yaml +0 -5
- package/templates/hono-fullstack/.agents/skills/to-questionnaire/SKILL.md +0 -53
- package/templates/hono-fullstack/.agents/skills/to-questionnaire/agents/openai.yaml +0 -5
- package/templates/hono-fullstack/.agents/skills/triage/AGENT-BRIEF.md +0 -207
- package/templates/hono-fullstack/.agents/skills/triage/OUT-OF-SCOPE.md +0 -105
- package/templates/hono-fullstack/.agents/skills/triage/SKILL.md +0 -112
- package/templates/hono-fullstack/.agents/skills/triage/agents/openai.yaml +0 -5
- package/templates/hono-fullstack/.agents/skills/wait-what/SKILL.md +0 -7
- package/templates/hono-fullstack/.agents/skills/wait-what/agents/openai.yaml +0 -5
- package/templates/hono-fullstack/.agents/skills/wizard/SKILL.md +0 -44
- package/templates/hono-fullstack/.agents/skills/wizard/agents/openai.yaml +0 -3
- package/templates/hono-fullstack/.agents/skills/wizard/template.sh +0 -204
- package/templates/hono-fullstack/.agents/skills/writing-for-agents/SKILL-MECHANICS.md +0 -22
- package/templates/hono-fullstack/.agents/skills/writing-for-agents/SKILL.md +0 -81
- package/templates/hono-fullstack/.agents/skills/writing-for-agents/agents/openai.yaml +0 -3
- package/templates/hono-fullstack/apps/server/src/modules/example/contracts.ts +0 -9
- package/templates/hono-fullstack/apps/server/src/shared/app/types.ts +0 -44
- package/templates/hono-fullstack/apps/stack/frontend/styles.css +0 -23
- package/templates/hono-fullstack/docs/agents/domain.md +0 -41
- package/templates/hono-fullstack/docs/agents/issue-tracker.md +0 -30
- package/templates/hono-fullstack/docs/agents/triage-labels.md +0 -15
- package/templates/hono-server/.agents/skills/ask-matt/PHASE-BOUNDARIES.md +0 -55
- package/templates/hono-server/.agents/skills/ask-matt/SKILL.md +0 -90
- package/templates/hono-server/.agents/skills/ask-matt/agents/openai.yaml +0 -5
- package/templates/hono-server/.agents/skills/code-review/SKILL.md +0 -87
- package/templates/hono-server/.agents/skills/code-review/agents/openai.yaml +0 -3
- package/templates/hono-server/.agents/skills/codebase-design/DEEPENING.md +0 -37
- package/templates/hono-server/.agents/skills/codebase-design/DESIGN-IT-TWICE.md +0 -44
- package/templates/hono-server/.agents/skills/codebase-design/SKILL.md +0 -114
- package/templates/hono-server/.agents/skills/codebase-design/agents/openai.yaml +0 -3
- package/templates/hono-server/.agents/skills/confirm-requirements/SKILL.md +0 -25
- package/templates/hono-server/.agents/skills/diagnosing-bugs/SKILL.md +0 -140
- package/templates/hono-server/.agents/skills/diagnosing-bugs/agents/openai.yaml +0 -3
- package/templates/hono-server/.agents/skills/diagnosing-bugs/scripts/hitl-loop.template.sh +0 -44
- package/templates/hono-server/.agents/skills/domain-modeling/ADR-FORMAT.md +0 -47
- package/templates/hono-server/.agents/skills/domain-modeling/CONTEXT-FORMAT.md +0 -60
- package/templates/hono-server/.agents/skills/domain-modeling/SKILL.md +0 -74
- package/templates/hono-server/.agents/skills/domain-modeling/agents/openai.yaml +0 -3
- package/templates/hono-server/.agents/skills/grill-me/SKILL.md +0 -7
- package/templates/hono-server/.agents/skills/grill-me/agents/openai.yaml +0 -5
- package/templates/hono-server/.agents/skills/implement/SKILL.md +0 -15
- package/templates/hono-server/.agents/skills/implement/agents/openai.yaml +0 -5
- package/templates/hono-server/.agents/skills/improve-codebase-architecture/HTML-REPORT.md +0 -123
- package/templates/hono-server/.agents/skills/improve-codebase-architecture/SKILL.md +0 -71
- package/templates/hono-server/.agents/skills/improve-codebase-architecture/agents/openai.yaml +0 -5
- package/templates/hono-server/.agents/skills/resolving-merge-conflicts/SKILL.md +0 -14
- package/templates/hono-server/.agents/skills/resolving-merge-conflicts/agents/openai.yaml +0 -3
- package/templates/hono-server/.agents/skills/scoped-code-review/SKILL.md +0 -113
- package/templates/hono-server/.agents/skills/setup-matt-pocock-skills/SKILL.md +0 -116
- package/templates/hono-server/.agents/skills/setup-matt-pocock-skills/agents/openai.yaml +0 -5
- package/templates/hono-server/.agents/skills/setup-matt-pocock-skills/domain.md +0 -51
- package/templates/hono-server/.agents/skills/setup-matt-pocock-skills/issue-tracker-github.md +0 -45
- package/templates/hono-server/.agents/skills/setup-matt-pocock-skills/issue-tracker-gitlab.md +0 -46
- package/templates/hono-server/.agents/skills/setup-matt-pocock-skills/issue-tracker-local.md +0 -30
- package/templates/hono-server/.agents/skills/setup-matt-pocock-skills/triage-labels.md +0 -15
- package/templates/hono-server/.agents/skills/tdd/SKILL.md +0 -38
- package/templates/hono-server/.agents/skills/tdd/agents/openai.yaml +0 -3
- package/templates/hono-server/.agents/skills/tdd/mocking.md +0 -59
- package/templates/hono-server/.agents/skills/tdd/tests.md +0 -77
- package/templates/hono-server/.agents/skills/teach/GLOSSARY-FORMAT.md +0 -35
- package/templates/hono-server/.agents/skills/teach/LEARNING-RECORD-FORMAT.md +0 -46
- package/templates/hono-server/.agents/skills/teach/MISSION-FORMAT.md +0 -31
- package/templates/hono-server/.agents/skills/teach/RESOURCES-FORMAT.md +0 -32
- package/templates/hono-server/.agents/skills/teach/SKILL.md +0 -140
- package/templates/hono-server/.agents/skills/teach/agents/openai.yaml +0 -5
- package/templates/hono-server/.agents/skills/to-questionnaire/SKILL.md +0 -53
- package/templates/hono-server/.agents/skills/to-questionnaire/agents/openai.yaml +0 -5
- package/templates/hono-server/.agents/skills/triage/AGENT-BRIEF.md +0 -207
- package/templates/hono-server/.agents/skills/triage/OUT-OF-SCOPE.md +0 -105
- package/templates/hono-server/.agents/skills/triage/SKILL.md +0 -112
- package/templates/hono-server/.agents/skills/triage/agents/openai.yaml +0 -5
- package/templates/hono-server/.agents/skills/wait-what/SKILL.md +0 -7
- package/templates/hono-server/.agents/skills/wait-what/agents/openai.yaml +0 -5
- package/templates/hono-server/.agents/skills/wizard/SKILL.md +0 -44
- package/templates/hono-server/.agents/skills/wizard/agents/openai.yaml +0 -3
- package/templates/hono-server/.agents/skills/wizard/template.sh +0 -204
- package/templates/hono-server/.agents/skills/writing-for-agents/SKILL-MECHANICS.md +0 -22
- package/templates/hono-server/.agents/skills/writing-for-agents/SKILL.md +0 -81
- package/templates/hono-server/.agents/skills/writing-for-agents/agents/openai.yaml +0 -3
- package/templates/hono-server/apps/server/src/modules/example/contracts.ts +0 -9
- package/templates/hono-server/apps/server/src/shared/app/types.ts +0 -44
- package/templates/hono-server/docs/agents/domain.md +0 -41
- package/templates/hono-server/docs/agents/issue-tracker.md +0 -30
- package/templates/hono-server/docs/agents/triage-labels.md +0 -15
- package/templates/monorepo/.agents/skills/ask-matt/PHASE-BOUNDARIES.md +0 -55
- package/templates/monorepo/.agents/skills/ask-matt/SKILL.md +0 -90
- package/templates/monorepo/.agents/skills/ask-matt/agents/openai.yaml +0 -5
- package/templates/monorepo/.agents/skills/code-review/SKILL.md +0 -87
- package/templates/monorepo/.agents/skills/code-review/agents/openai.yaml +0 -3
- package/templates/monorepo/.agents/skills/codebase-design/DEEPENING.md +0 -37
- package/templates/monorepo/.agents/skills/codebase-design/DESIGN-IT-TWICE.md +0 -44
- package/templates/monorepo/.agents/skills/codebase-design/SKILL.md +0 -114
- package/templates/monorepo/.agents/skills/codebase-design/agents/openai.yaml +0 -3
- package/templates/monorepo/.agents/skills/confirm-requirements/SKILL.md +0 -25
- package/templates/monorepo/.agents/skills/diagnosing-bugs/SKILL.md +0 -140
- package/templates/monorepo/.agents/skills/diagnosing-bugs/agents/openai.yaml +0 -3
- package/templates/monorepo/.agents/skills/diagnosing-bugs/scripts/hitl-loop.template.sh +0 -44
- package/templates/monorepo/.agents/skills/domain-modeling/ADR-FORMAT.md +0 -47
- package/templates/monorepo/.agents/skills/domain-modeling/CONTEXT-FORMAT.md +0 -60
- package/templates/monorepo/.agents/skills/domain-modeling/SKILL.md +0 -74
- package/templates/monorepo/.agents/skills/domain-modeling/agents/openai.yaml +0 -3
- package/templates/monorepo/.agents/skills/grill-me/SKILL.md +0 -7
- package/templates/monorepo/.agents/skills/grill-me/agents/openai.yaml +0 -5
- package/templates/monorepo/.agents/skills/implement/SKILL.md +0 -15
- package/templates/monorepo/.agents/skills/implement/agents/openai.yaml +0 -5
- package/templates/monorepo/.agents/skills/improve-codebase-architecture/HTML-REPORT.md +0 -123
- package/templates/monorepo/.agents/skills/improve-codebase-architecture/SKILL.md +0 -71
- package/templates/monorepo/.agents/skills/improve-codebase-architecture/agents/openai.yaml +0 -5
- package/templates/monorepo/.agents/skills/resolving-merge-conflicts/SKILL.md +0 -14
- package/templates/monorepo/.agents/skills/resolving-merge-conflicts/agents/openai.yaml +0 -3
- package/templates/monorepo/.agents/skills/scoped-code-review/SKILL.md +0 -113
- package/templates/monorepo/.agents/skills/setup-matt-pocock-skills/SKILL.md +0 -116
- package/templates/monorepo/.agents/skills/setup-matt-pocock-skills/agents/openai.yaml +0 -5
- package/templates/monorepo/.agents/skills/setup-matt-pocock-skills/domain.md +0 -51
- package/templates/monorepo/.agents/skills/setup-matt-pocock-skills/issue-tracker-github.md +0 -45
- package/templates/monorepo/.agents/skills/setup-matt-pocock-skills/issue-tracker-gitlab.md +0 -46
- package/templates/monorepo/.agents/skills/setup-matt-pocock-skills/issue-tracker-local.md +0 -30
- package/templates/monorepo/.agents/skills/setup-matt-pocock-skills/triage-labels.md +0 -15
- package/templates/monorepo/.agents/skills/tdd/SKILL.md +0 -38
- package/templates/monorepo/.agents/skills/tdd/agents/openai.yaml +0 -3
- package/templates/monorepo/.agents/skills/tdd/mocking.md +0 -59
- package/templates/monorepo/.agents/skills/tdd/tests.md +0 -77
- package/templates/monorepo/.agents/skills/teach/GLOSSARY-FORMAT.md +0 -35
- package/templates/monorepo/.agents/skills/teach/LEARNING-RECORD-FORMAT.md +0 -46
- package/templates/monorepo/.agents/skills/teach/MISSION-FORMAT.md +0 -31
- package/templates/monorepo/.agents/skills/teach/RESOURCES-FORMAT.md +0 -32
- package/templates/monorepo/.agents/skills/teach/SKILL.md +0 -140
- package/templates/monorepo/.agents/skills/teach/agents/openai.yaml +0 -5
- package/templates/monorepo/.agents/skills/to-questionnaire/SKILL.md +0 -53
- package/templates/monorepo/.agents/skills/to-questionnaire/agents/openai.yaml +0 -5
- package/templates/monorepo/.agents/skills/triage/AGENT-BRIEF.md +0 -207
- package/templates/monorepo/.agents/skills/triage/OUT-OF-SCOPE.md +0 -105
- package/templates/monorepo/.agents/skills/triage/SKILL.md +0 -112
- package/templates/monorepo/.agents/skills/triage/agents/openai.yaml +0 -5
- package/templates/monorepo/.agents/skills/wait-what/SKILL.md +0 -7
- package/templates/monorepo/.agents/skills/wait-what/agents/openai.yaml +0 -5
- package/templates/monorepo/.agents/skills/wizard/SKILL.md +0 -44
- package/templates/monorepo/.agents/skills/wizard/agents/openai.yaml +0 -3
- package/templates/monorepo/.agents/skills/wizard/template.sh +0 -204
- package/templates/monorepo/.agents/skills/writing-for-agents/SKILL-MECHANICS.md +0 -22
- package/templates/monorepo/.agents/skills/writing-for-agents/SKILL.md +0 -81
- package/templates/monorepo/.agents/skills/writing-for-agents/agents/openai.yaml +0 -3
- package/templates/monorepo/docs/agents/domain.md +0 -41
- package/templates/monorepo/docs/agents/issue-tracker.md +0 -30
- package/templates/monorepo/docs/agents/triage-labels.md +0 -15
- /package/templates/hono-fullstack/.agents/skills/{grilling → ask-grilling}/agents/openai.yaml +0 -0
- /package/templates/hono-fullstack/.agents/skills/{prototype → plan-prototype}/agents/openai.yaml +0 -0
- /package/templates/hono-fullstack/.agents/skills/{research → plan-research}/agents/openai.yaml +0 -0
- /package/templates/hono-fullstack/.agents/skills/{wayfinder → plan-wayfinder}/agents/openai.yaml +0 -0
- /package/templates/hono-server/.agents/skills/{grilling → ask-grilling}/agents/openai.yaml +0 -0
- /package/templates/hono-server/.agents/skills/{prototype → plan-prototype}/agents/openai.yaml +0 -0
- /package/templates/hono-server/.agents/skills/{research → plan-research}/agents/openai.yaml +0 -0
- /package/templates/hono-server/.agents/skills/{wayfinder → plan-wayfinder}/agents/openai.yaml +0 -0
- /package/templates/monorepo/.agents/skills/{grilling → ask-grilling}/agents/openai.yaml +0 -0
- /package/templates/monorepo/.agents/skills/{prototype → plan-prototype}/agents/openai.yaml +0 -0
- /package/templates/monorepo/.agents/skills/{research → plan-research}/agents/openai.yaml +0 -0
- /package/templates/monorepo/.agents/skills/{wayfinder → plan-wayfinder}/agents/openai.yaml +0 -0
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
import { stepsAnatomy } from '@ark-ui/react/anatomy'
|
|
2
|
+
import { defineSlotRecipe } from '@pandacss/dev'
|
|
3
|
+
|
|
4
|
+
const sizeStyles = {
|
|
5
|
+
list: { '--steps-gutter': '{spacing.3}', '--steps-thickness': '2px' },
|
|
6
|
+
separator: {
|
|
7
|
+
_horizontal: { height: 'var(--steps-thickness)', mx: 'var(--steps-gutter)' },
|
|
8
|
+
_vertical: {
|
|
9
|
+
width: 'var(--steps-thickness)',
|
|
10
|
+
maxHeight: 'calc(100% - var(--steps-size) - var(--steps-gutter) * 2)',
|
|
11
|
+
top: 'calc(var(--steps-size) + var(--steps-gutter))',
|
|
12
|
+
insetInlineStart: 'calc((var(--steps-size) - var(--steps-thickness)) / 2)',
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
indicator: { boxSize: 'var(--steps-size)', _icon: { boxSize: 'var(--steps-icon-size)' } },
|
|
16
|
+
item: { gap: '3' },
|
|
17
|
+
trigger: { gap: '3' },
|
|
18
|
+
} as const
|
|
19
|
+
|
|
20
|
+
const appearance = {
|
|
21
|
+
root: { color: 'gray.fg.default' },
|
|
22
|
+
title: { fontWeight: 'medium', color: 'gray.fg.default' },
|
|
23
|
+
description: { color: 'gray.fg.muted' },
|
|
24
|
+
separator: { bg: 'gray.border.strong' },
|
|
25
|
+
indicator: { borderRadius: 'full', fontWeight: 'medium' },
|
|
26
|
+
trigger: {
|
|
27
|
+
outline: '0',
|
|
28
|
+
focusVisibleRing: 'outside',
|
|
29
|
+
borderRadius: 'sm',
|
|
30
|
+
cursor: 'pointer',
|
|
31
|
+
_disabled: { cursor: 'not-allowed', opacity: '0.5' },
|
|
32
|
+
},
|
|
33
|
+
content: { outline: '0', focusVisibleRing: 'outside' },
|
|
34
|
+
} as const
|
|
35
|
+
|
|
36
|
+
export const steps = defineSlotRecipe({
|
|
37
|
+
className: 'app-steps',
|
|
38
|
+
jsx: ['Steps.Root', 'Steps.RootProvider'],
|
|
39
|
+
slots: stepsAnatomy.extendWith('title', 'description').keys(),
|
|
40
|
+
base: {
|
|
41
|
+
root: {
|
|
42
|
+
display: 'flex',
|
|
43
|
+
width: 'full',
|
|
44
|
+
_horizontal: { flexDirection: 'column' },
|
|
45
|
+
_vertical: { flexDirection: 'row' },
|
|
46
|
+
},
|
|
47
|
+
list: {
|
|
48
|
+
display: 'flex',
|
|
49
|
+
justifyContent: 'space-between',
|
|
50
|
+
_horizontal: { flexDirection: 'row', alignItems: 'center' },
|
|
51
|
+
_vertical: { flexDirection: 'column', alignItems: 'flex-start' },
|
|
52
|
+
},
|
|
53
|
+
separator: {
|
|
54
|
+
flex: '1',
|
|
55
|
+
_horizontal: { width: 'full' },
|
|
56
|
+
_vertical: { position: 'absolute', height: 'full' },
|
|
57
|
+
},
|
|
58
|
+
indicator: {
|
|
59
|
+
display: 'flex',
|
|
60
|
+
justifyContent: 'center',
|
|
61
|
+
alignItems: 'center',
|
|
62
|
+
flexShrink: '0',
|
|
63
|
+
_icon: { flexShrink: '0' },
|
|
64
|
+
},
|
|
65
|
+
item: {
|
|
66
|
+
position: 'relative',
|
|
67
|
+
display: 'flex',
|
|
68
|
+
flex: '1 0 0',
|
|
69
|
+
_horizontal: { alignItems: 'center' },
|
|
70
|
+
_vertical: { alignItems: 'flex-start' },
|
|
71
|
+
'&:last-of-type': { flex: 'initial', '& [data-part=separator]': { display: 'none' } },
|
|
72
|
+
},
|
|
73
|
+
trigger: { display: 'flex', alignItems: 'center', textAlign: 'start' },
|
|
74
|
+
},
|
|
75
|
+
variants: {
|
|
76
|
+
variant: {
|
|
77
|
+
solid: {
|
|
78
|
+
...appearance,
|
|
79
|
+
indicator: {
|
|
80
|
+
...appearance.indicator,
|
|
81
|
+
'&[data-incomplete]': {
|
|
82
|
+
borderWidth: 'var(--steps-thickness, 2px)',
|
|
83
|
+
borderColor: 'gray.border.strong',
|
|
84
|
+
},
|
|
85
|
+
'&[data-current]': {
|
|
86
|
+
bg: 'colorPalette.bg.subtle',
|
|
87
|
+
borderWidth: 'var(--steps-thickness, 2px)',
|
|
88
|
+
borderColor: 'colorPalette.bg.default',
|
|
89
|
+
color: 'colorPalette.fg.default',
|
|
90
|
+
},
|
|
91
|
+
'&[data-complete]': { bg: 'colorPalette.bg.default', color: 'colorPalette.fg.onSolid' },
|
|
92
|
+
},
|
|
93
|
+
separator: {
|
|
94
|
+
...appearance.separator,
|
|
95
|
+
'&[data-complete]': { bg: 'colorPalette.bg.default' },
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
subtle: {
|
|
99
|
+
...appearance,
|
|
100
|
+
indicator: {
|
|
101
|
+
...appearance.indicator,
|
|
102
|
+
'&[data-incomplete]': { bg: 'gray.bg.subtle' },
|
|
103
|
+
'&[data-current]': { bg: 'colorPalette.bg.subtle', color: 'colorPalette.fg.default' },
|
|
104
|
+
'&[data-complete]': { bg: 'colorPalette.bg.surface', color: 'colorPalette.fg.default' },
|
|
105
|
+
},
|
|
106
|
+
separator: {
|
|
107
|
+
...appearance.separator,
|
|
108
|
+
'&[data-complete]': { bg: 'colorPalette.border.default' },
|
|
109
|
+
},
|
|
110
|
+
},
|
|
111
|
+
unstyled: {},
|
|
112
|
+
},
|
|
113
|
+
size: {
|
|
114
|
+
xs: {
|
|
115
|
+
...sizeStyles,
|
|
116
|
+
root: { gap: '2.5' },
|
|
117
|
+
list: {
|
|
118
|
+
...sizeStyles.list,
|
|
119
|
+
'--steps-size': '{sizes.6}',
|
|
120
|
+
'--steps-icon-size': '{sizes.3.5}',
|
|
121
|
+
textStyle: 'xs',
|
|
122
|
+
},
|
|
123
|
+
title: { textStyle: 'sm' },
|
|
124
|
+
},
|
|
125
|
+
sm: {
|
|
126
|
+
...sizeStyles,
|
|
127
|
+
root: { gap: '3' },
|
|
128
|
+
list: {
|
|
129
|
+
...sizeStyles.list,
|
|
130
|
+
'--steps-size': '{sizes.8}',
|
|
131
|
+
'--steps-icon-size': '{sizes.4}',
|
|
132
|
+
textStyle: 'xs',
|
|
133
|
+
},
|
|
134
|
+
title: { textStyle: 'sm' },
|
|
135
|
+
},
|
|
136
|
+
md: {
|
|
137
|
+
...sizeStyles,
|
|
138
|
+
root: { gap: '4' },
|
|
139
|
+
list: {
|
|
140
|
+
...sizeStyles.list,
|
|
141
|
+
'--steps-size': '{sizes.10}',
|
|
142
|
+
'--steps-icon-size': '{sizes.4}',
|
|
143
|
+
textStyle: 'sm',
|
|
144
|
+
},
|
|
145
|
+
title: { textStyle: 'sm' },
|
|
146
|
+
},
|
|
147
|
+
lg: {
|
|
148
|
+
...sizeStyles,
|
|
149
|
+
root: { gap: '6' },
|
|
150
|
+
list: {
|
|
151
|
+
...sizeStyles.list,
|
|
152
|
+
'--steps-size': '{sizes.11}',
|
|
153
|
+
'--steps-icon-size': '{sizes.5}',
|
|
154
|
+
textStyle: 'md',
|
|
155
|
+
},
|
|
156
|
+
title: { textStyle: 'md' },
|
|
157
|
+
},
|
|
158
|
+
unstyled: {},
|
|
159
|
+
},
|
|
160
|
+
},
|
|
161
|
+
defaultVariants: { size: 'md', variant: 'solid' },
|
|
162
|
+
})
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import { switchAnatomy } from '@ark-ui/react/anatomy'
|
|
2
|
+
import { defineSlotRecipe } from '@pandacss/dev'
|
|
3
|
+
|
|
4
|
+
const sizeStyles = {
|
|
5
|
+
root: {
|
|
6
|
+
'--switch-diff': 'calc(var(--switch-width) - var(--switch-height))',
|
|
7
|
+
'--switch-x': {
|
|
8
|
+
base: 'var(--switch-diff)',
|
|
9
|
+
_rtl: 'calc(var(--switch-diff) * -1)',
|
|
10
|
+
},
|
|
11
|
+
},
|
|
12
|
+
indicator: {
|
|
13
|
+
height: 'var(--switch-height)',
|
|
14
|
+
width: 'var(--switch-height)',
|
|
15
|
+
fontSize: 'var(--switch-indicator-font-size)',
|
|
16
|
+
insetInlineStart: 'calc(var(--switch-x) - 2px)',
|
|
17
|
+
_checked: { insetInlineStart: '2px' },
|
|
18
|
+
},
|
|
19
|
+
control: {
|
|
20
|
+
gap: '0.5rem',
|
|
21
|
+
width: 'var(--switch-width)',
|
|
22
|
+
height: 'var(--switch-height)',
|
|
23
|
+
},
|
|
24
|
+
thumb: {
|
|
25
|
+
width: 'var(--switch-height)',
|
|
26
|
+
height: 'var(--switch-height)',
|
|
27
|
+
scale: '0.8',
|
|
28
|
+
_checked: { translate: 'var(--switch-x) 0' },
|
|
29
|
+
},
|
|
30
|
+
} as const
|
|
31
|
+
|
|
32
|
+
export const switchRecipe = defineSlotRecipe({
|
|
33
|
+
className: 'app-switch',
|
|
34
|
+
jsx: ['Switch.Root', 'Switch.RootProvider'],
|
|
35
|
+
slots: switchAnatomy.extendWith('indicator').keys(),
|
|
36
|
+
base: {
|
|
37
|
+
root: {
|
|
38
|
+
display: 'inline-flex',
|
|
39
|
+
alignItems: 'center',
|
|
40
|
+
position: 'relative',
|
|
41
|
+
verticalAlign: 'middle',
|
|
42
|
+
},
|
|
43
|
+
label: {
|
|
44
|
+
fontWeight: 'medium',
|
|
45
|
+
userSelect: 'none',
|
|
46
|
+
},
|
|
47
|
+
indicator: {
|
|
48
|
+
position: 'absolute',
|
|
49
|
+
fontWeight: 'medium',
|
|
50
|
+
flexShrink: 0,
|
|
51
|
+
userSelect: 'none',
|
|
52
|
+
display: 'grid',
|
|
53
|
+
placeContent: 'center',
|
|
54
|
+
transition: 'inset-inline-start 0.12s ease',
|
|
55
|
+
},
|
|
56
|
+
control: {
|
|
57
|
+
display: 'inline-flex',
|
|
58
|
+
flexShrink: 0,
|
|
59
|
+
justifyContent: 'flex-start',
|
|
60
|
+
cursor: 'pointer',
|
|
61
|
+
borderRadius: 'full',
|
|
62
|
+
position: 'relative',
|
|
63
|
+
transition: 'background',
|
|
64
|
+
focusVisibleRing: 'outside',
|
|
65
|
+
_disabled: { layerStyle: 'disabled' },
|
|
66
|
+
_invalid: { outline: '2px solid', outlineColor: 'red.9', outlineOffset: '2px' },
|
|
67
|
+
},
|
|
68
|
+
thumb: {
|
|
69
|
+
display: 'flex',
|
|
70
|
+
alignItems: 'center',
|
|
71
|
+
justifyContent: 'center',
|
|
72
|
+
flexShrink: 0,
|
|
73
|
+
transitionProperty: 'translate',
|
|
74
|
+
transitionDuration: 'fast',
|
|
75
|
+
borderRadius: 'inherit',
|
|
76
|
+
},
|
|
77
|
+
},
|
|
78
|
+
defaultVariants: {
|
|
79
|
+
variant: 'solid',
|
|
80
|
+
size: 'md',
|
|
81
|
+
},
|
|
82
|
+
variants: {
|
|
83
|
+
variant: {
|
|
84
|
+
solid: {
|
|
85
|
+
control: {
|
|
86
|
+
borderRadius: 'full',
|
|
87
|
+
bg: 'gray.bg.subtle',
|
|
88
|
+
focusVisibleRing: 'outside',
|
|
89
|
+
_checked: {
|
|
90
|
+
bg: 'colorPalette.bg.default',
|
|
91
|
+
},
|
|
92
|
+
},
|
|
93
|
+
thumb: {
|
|
94
|
+
bg: 'white',
|
|
95
|
+
_checked: {
|
|
96
|
+
bg: 'colorPalette.fg.onSolid',
|
|
97
|
+
},
|
|
98
|
+
boxShadow: 'xs',
|
|
99
|
+
},
|
|
100
|
+
},
|
|
101
|
+
},
|
|
102
|
+
size: {
|
|
103
|
+
unstyled: {},
|
|
104
|
+
xs: {
|
|
105
|
+
...sizeStyles,
|
|
106
|
+
root: {
|
|
107
|
+
...sizeStyles.root,
|
|
108
|
+
gap: '2',
|
|
109
|
+
'--switch-width': 'sizes.8',
|
|
110
|
+
'--switch-height': 'sizes.4',
|
|
111
|
+
'--switch-indicator-font-size': 'fontSizes.xs',
|
|
112
|
+
},
|
|
113
|
+
label: { fontSize: 'sm', lineHeight: '1' },
|
|
114
|
+
},
|
|
115
|
+
sm: {
|
|
116
|
+
...sizeStyles,
|
|
117
|
+
root: {
|
|
118
|
+
...sizeStyles.root,
|
|
119
|
+
gap: '2',
|
|
120
|
+
'--switch-width': 'sizes.9',
|
|
121
|
+
'--switch-height': 'sizes.4.5',
|
|
122
|
+
'--switch-indicator-font-size': 'fontSizes.xs',
|
|
123
|
+
},
|
|
124
|
+
label: { fontSize: 'sm', lineHeight: '1' },
|
|
125
|
+
},
|
|
126
|
+
md: {
|
|
127
|
+
...sizeStyles,
|
|
128
|
+
root: {
|
|
129
|
+
...sizeStyles.root,
|
|
130
|
+
gap: '3',
|
|
131
|
+
'--switch-width': 'sizes.10',
|
|
132
|
+
'--switch-height': 'sizes.5',
|
|
133
|
+
'--switch-indicator-font-size': 'fontSizes.sm',
|
|
134
|
+
},
|
|
135
|
+
label: { fontSize: 'md', lineHeight: '1' },
|
|
136
|
+
},
|
|
137
|
+
lg: {
|
|
138
|
+
...sizeStyles,
|
|
139
|
+
root: {
|
|
140
|
+
...sizeStyles.root,
|
|
141
|
+
gap: '3',
|
|
142
|
+
'--switch-width': 'sizes.11',
|
|
143
|
+
'--switch-height': 'sizes.5.5',
|
|
144
|
+
'--switch-indicator-font-size': 'fontSizes.md',
|
|
145
|
+
},
|
|
146
|
+
label: { fontSize: 'lg', lineHeight: '1' },
|
|
147
|
+
},
|
|
148
|
+
},
|
|
149
|
+
},
|
|
150
|
+
})
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import { defineSlotRecipe } from '@pandacss/dev'
|
|
2
|
+
type SlotStyles = NonNullable<Parameters<typeof defineSlotRecipe>[0]['base']>
|
|
3
|
+
|
|
4
|
+
const sizeStyles = { head: { textStyle: 'xs' }, cell: { textStyle: 'sm' } } as const
|
|
5
|
+
|
|
6
|
+
const appearance = {
|
|
7
|
+
cell: {
|
|
8
|
+
color: 'gray.fg.muted',
|
|
9
|
+
boxShadow: 'inset 0 -1px 0 0 var(--shadow-color)',
|
|
10
|
+
shadowColor: 'gray.border.subtle',
|
|
11
|
+
_pinned: {
|
|
12
|
+
bg: 'inherit',
|
|
13
|
+
boxShadow: 'inset 0 -1px 0 0 var(--shadow-color)',
|
|
14
|
+
shadowColor: 'gray.border.subtle',
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
row: { _last: { '& td': { boxShadow: 'none' } } },
|
|
18
|
+
header: { boxShadow: 'inset 0 -1px 0 0 var(--shadow-color)', shadowColor: 'gray.border.subtle' },
|
|
19
|
+
head: { color: 'gray.fg.muted', fontWeight: 'semibold' },
|
|
20
|
+
caption: { color: 'gray.fg.subtle', fontWeight: 'medium' },
|
|
21
|
+
foot: {
|
|
22
|
+
fontWeight: 'medium',
|
|
23
|
+
'& td': {
|
|
24
|
+
boxShadow: 'inset 0 1px 0 0 var(--shadow-color)!',
|
|
25
|
+
shadowColor: 'gray.border.subtle',
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
} as const
|
|
29
|
+
|
|
30
|
+
const definition = {
|
|
31
|
+
className: 'app-table',
|
|
32
|
+
jsx: ['Table.Root'],
|
|
33
|
+
slots: ['root', 'body', 'cell', 'foot', 'head', 'header', 'row', 'caption'],
|
|
34
|
+
base: {
|
|
35
|
+
root: {
|
|
36
|
+
borderCollapse: 'collapse',
|
|
37
|
+
fontVariantNumeric: 'lining-nums tabular-nums',
|
|
38
|
+
textAlign: 'start',
|
|
39
|
+
verticalAlign: 'top',
|
|
40
|
+
width: 'full',
|
|
41
|
+
},
|
|
42
|
+
cell: {
|
|
43
|
+
alignItems: 'center',
|
|
44
|
+
textAlign: 'start',
|
|
45
|
+
textOverflow: 'ellipsis',
|
|
46
|
+
whiteSpace: 'nowrap',
|
|
47
|
+
overflow: 'hidden',
|
|
48
|
+
_pinned: { overflow: 'unset', position: 'sticky', zIndex: 1 },
|
|
49
|
+
},
|
|
50
|
+
header: {
|
|
51
|
+
textAlign: 'left',
|
|
52
|
+
verticalAlign: 'middle',
|
|
53
|
+
_pinned: { position: 'sticky', bg: 'inherit', zIndex: 2 },
|
|
54
|
+
},
|
|
55
|
+
head: { textAlign: 'start', whiteSpace: 'nowrap' },
|
|
56
|
+
caption: { captionSide: 'bottom' },
|
|
57
|
+
},
|
|
58
|
+
defaultVariants: { size: 'md' as const, variant: 'plain' as const },
|
|
59
|
+
variants: {
|
|
60
|
+
variant: {
|
|
61
|
+
surface: {
|
|
62
|
+
...appearance,
|
|
63
|
+
header: { ...appearance.header, bg: 'gray.bg.surface.hover' },
|
|
64
|
+
row: { ...appearance.row, bg: 'gray.bg.surface' },
|
|
65
|
+
},
|
|
66
|
+
plain: appearance,
|
|
67
|
+
line: appearance,
|
|
68
|
+
outline: {
|
|
69
|
+
...appearance,
|
|
70
|
+
root: { borderWidth: '1px', borderColor: 'gray.border.subtle' },
|
|
71
|
+
header: { ...appearance.header, bg: 'gray.bg.surface.hover' },
|
|
72
|
+
row: { ...appearance.row, bg: 'gray.bg.surface' },
|
|
73
|
+
},
|
|
74
|
+
unstyled: {},
|
|
75
|
+
},
|
|
76
|
+
striped: { true: { row: { '&:nth-of-type(odd) td': { bg: 'gray.bg.surface.hover' } } } },
|
|
77
|
+
interactive: { true: { body: { '& tr:hover > td': { bg: 'gray.bg.surface.hover' } } } },
|
|
78
|
+
columnBorder: {
|
|
79
|
+
true: {
|
|
80
|
+
header: { '&:not(:last-of-type)': { borderInlineEndWidth: '1px' } },
|
|
81
|
+
cell: { '&:not(:last-of-type)': { borderInlineEndWidth: '1px' } },
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
stickyHeader: {
|
|
85
|
+
true: {
|
|
86
|
+
head: {
|
|
87
|
+
bg: 'gray.bg.page',
|
|
88
|
+
'& :where(tr)': {
|
|
89
|
+
bg: 'inherit',
|
|
90
|
+
top: 'var(--table-sticky-offset, 0)',
|
|
91
|
+
position: 'sticky',
|
|
92
|
+
zIndex: 2,
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
size: {
|
|
98
|
+
sm: {
|
|
99
|
+
...sizeStyles,
|
|
100
|
+
root: { textStyle: 'xs' },
|
|
101
|
+
header: { px: '2', py: '2' },
|
|
102
|
+
cell: { textStyle: 'xs', px: '2', py: '2' },
|
|
103
|
+
},
|
|
104
|
+
lg: {
|
|
105
|
+
...sizeStyles,
|
|
106
|
+
root: { textStyle: 'md' },
|
|
107
|
+
header: { px: '4', py: '4' },
|
|
108
|
+
cell: { textStyle: 'md', px: '4', py: '4' },
|
|
109
|
+
},
|
|
110
|
+
md: {
|
|
111
|
+
...sizeStyles,
|
|
112
|
+
root: { textStyle: 'sm' },
|
|
113
|
+
header: { px: '3', py: '3' },
|
|
114
|
+
cell: { ...sizeStyles.cell, px: '3', py: '3' },
|
|
115
|
+
},
|
|
116
|
+
unstyled: {},
|
|
117
|
+
},
|
|
118
|
+
},
|
|
119
|
+
} satisfies Parameters<typeof defineSlotRecipe>[0]
|
|
120
|
+
|
|
121
|
+
const nativeSelectors = {
|
|
122
|
+
body: 'tbody',
|
|
123
|
+
cell: 'td',
|
|
124
|
+
foot: 'tfoot',
|
|
125
|
+
head: 'thead',
|
|
126
|
+
header: 'th',
|
|
127
|
+
row: 'tr',
|
|
128
|
+
caption: 'caption',
|
|
129
|
+
} as const
|
|
130
|
+
|
|
131
|
+
function withNativeStyles<T extends SlotStyles>(styles: T): T {
|
|
132
|
+
const selectors: Record<string, unknown> = {}
|
|
133
|
+
for (const [slot, selector] of Object.entries(nativeSelectors)) {
|
|
134
|
+
if (styles[slot]) selectors[`&[data-native] ${selector}`] = styles[slot]
|
|
135
|
+
}
|
|
136
|
+
return { ...styles, root: { ...styles.root, ...selectors } } as T
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export const table = defineSlotRecipe({
|
|
140
|
+
...definition,
|
|
141
|
+
base: withNativeStyles(definition.base),
|
|
142
|
+
variants: Object.fromEntries(
|
|
143
|
+
Object.entries(definition.variants).map(([name, variants]) => [
|
|
144
|
+
name,
|
|
145
|
+
Object.fromEntries(
|
|
146
|
+
Object.entries(variants).map(([value, styles]) => [value, withNativeStyles(styles)]),
|
|
147
|
+
),
|
|
148
|
+
]),
|
|
149
|
+
) as typeof definition.variants,
|
|
150
|
+
})
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import { tabsAnatomy } from '@ark-ui/react/anatomy'
|
|
2
|
+
import { defineSlotRecipe } from '@pandacss/dev'
|
|
3
|
+
|
|
4
|
+
const sizeStyles = { root: { _horizontal: { gap: '2' }, _vertical: { gap: '4' } } } as const
|
|
5
|
+
|
|
6
|
+
const appearance = {
|
|
7
|
+
trigger: {
|
|
8
|
+
cursor: 'pointer',
|
|
9
|
+
fontWeight: 'semibold',
|
|
10
|
+
outline: '0',
|
|
11
|
+
_disabled: { layerStyle: 'disabled' },
|
|
12
|
+
_focusVisible: { focusVisibleRing: 'outside' },
|
|
13
|
+
},
|
|
14
|
+
content: { focusVisibleRing: 'inside' },
|
|
15
|
+
} as const
|
|
16
|
+
|
|
17
|
+
export const tabs = defineSlotRecipe({
|
|
18
|
+
slots: tabsAnatomy.keys(),
|
|
19
|
+
className: 'app-tabs',
|
|
20
|
+
jsx: ['Tabs.Root', 'Tabs.RootProvider'],
|
|
21
|
+
base: {
|
|
22
|
+
root: {
|
|
23
|
+
position: 'relative',
|
|
24
|
+
display: 'flex',
|
|
25
|
+
alignItems: 'start',
|
|
26
|
+
_horizontal: { flexDirection: 'column' },
|
|
27
|
+
_vertical: { flexDirection: 'row' },
|
|
28
|
+
},
|
|
29
|
+
list: {
|
|
30
|
+
display: 'flex',
|
|
31
|
+
position: 'relative',
|
|
32
|
+
isolation: 'isolate',
|
|
33
|
+
_horizontal: { flexDirection: 'row' },
|
|
34
|
+
_vertical: { flexDirection: 'column' },
|
|
35
|
+
},
|
|
36
|
+
trigger: {
|
|
37
|
+
alignItems: 'center',
|
|
38
|
+
display: 'flex',
|
|
39
|
+
position: 'relative',
|
|
40
|
+
_focusVisible: { zIndex: 1 },
|
|
41
|
+
},
|
|
42
|
+
content: { _horizontal: { width: '100%' }, _vertical: { height: '100%' } },
|
|
43
|
+
indicator: { width: 'var(--width)', height: 'var(--height)', zIndex: -1 },
|
|
44
|
+
},
|
|
45
|
+
variants: {
|
|
46
|
+
size: {
|
|
47
|
+
xs: {
|
|
48
|
+
...sizeStyles,
|
|
49
|
+
list: { gap: '1' },
|
|
50
|
+
trigger: { h: '8', minW: '8', textStyle: 'xs', px: '3', gap: '2' },
|
|
51
|
+
},
|
|
52
|
+
sm: {
|
|
53
|
+
...sizeStyles,
|
|
54
|
+
list: { gap: '1' },
|
|
55
|
+
trigger: { h: '9', minW: '9', textStyle: 'sm', px: '3.5', gap: '2' },
|
|
56
|
+
},
|
|
57
|
+
md: {
|
|
58
|
+
...sizeStyles,
|
|
59
|
+
list: { gap: '1' },
|
|
60
|
+
trigger: { h: '10', minW: '10', textStyle: 'sm', px: '4', gap: '2' },
|
|
61
|
+
},
|
|
62
|
+
lg: {
|
|
63
|
+
...sizeStyles,
|
|
64
|
+
list: { gap: '1' },
|
|
65
|
+
trigger: { h: '11', minW: '11', textStyle: 'md', px: '4.5', gap: '2' },
|
|
66
|
+
},
|
|
67
|
+
unstyled: {},
|
|
68
|
+
},
|
|
69
|
+
variant: {
|
|
70
|
+
line: {
|
|
71
|
+
...appearance,
|
|
72
|
+
root: { alignItems: 'stretch' },
|
|
73
|
+
list: { _horizontal: { borderBottomWidth: '1px' }, _vertical: { borderStartWidth: '1px' } },
|
|
74
|
+
indicator: {
|
|
75
|
+
background: 'colorPalette.bg.default',
|
|
76
|
+
_horizontal: { bottom: '0', height: '0.5', transform: 'translateY(1px)' },
|
|
77
|
+
_vertical: { left: '0', width: '0.5', transform: 'translateX(-1px)' },
|
|
78
|
+
},
|
|
79
|
+
trigger: {
|
|
80
|
+
...appearance.trigger,
|
|
81
|
+
color: 'gray.fg.muted',
|
|
82
|
+
_selected: { color: 'colorPalette.fg.default' },
|
|
83
|
+
},
|
|
84
|
+
},
|
|
85
|
+
subtle: {
|
|
86
|
+
...appearance,
|
|
87
|
+
trigger: {
|
|
88
|
+
...appearance.trigger,
|
|
89
|
+
color: 'gray.fg.muted',
|
|
90
|
+
_selected: { color: 'colorPalette.fg.default' },
|
|
91
|
+
},
|
|
92
|
+
indicator: {
|
|
93
|
+
bg: 'colorPalette.bg.subtle',
|
|
94
|
+
color: 'colorPalette.fg.default',
|
|
95
|
+
borderRadius: 'sm',
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
enclosed: {
|
|
99
|
+
...appearance,
|
|
100
|
+
list: {
|
|
101
|
+
bg: { _light: 'gray.2', _dark: 'gray.1' },
|
|
102
|
+
boxShadow: 'inset 0 0 0px 1px var(--shadow-color)',
|
|
103
|
+
boxShadowColor: 'gray.border.subtle',
|
|
104
|
+
borderRadius: 'md',
|
|
105
|
+
p: '1',
|
|
106
|
+
},
|
|
107
|
+
trigger: {
|
|
108
|
+
...appearance.trigger,
|
|
109
|
+
color: 'gray.fg.muted',
|
|
110
|
+
_selected: { color: 'colorPalette.fg.default' },
|
|
111
|
+
},
|
|
112
|
+
indicator: {
|
|
113
|
+
borderRadius: 'sm',
|
|
114
|
+
boxShadow: { _light: 'xs', _dark: 'none' },
|
|
115
|
+
bg: { _light: 'white', _dark: 'gray.2' },
|
|
116
|
+
},
|
|
117
|
+
},
|
|
118
|
+
unstyled: {},
|
|
119
|
+
},
|
|
120
|
+
fitted: {
|
|
121
|
+
true: {
|
|
122
|
+
root: { alignItems: 'stretch' },
|
|
123
|
+
trigger: { flex: 1, textAlign: 'center', justifyContent: 'center' },
|
|
124
|
+
},
|
|
125
|
+
},
|
|
126
|
+
},
|
|
127
|
+
defaultVariants: { size: 'md', variant: 'line' },
|
|
128
|
+
})
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { defineSlotRecipe } from '@pandacss/dev'
|
|
2
|
+
import { badge } from './badge'
|
|
3
|
+
|
|
4
|
+
const sizeStyles = {
|
|
5
|
+
root: { lineHeight: '1' },
|
|
6
|
+
startElement: {
|
|
7
|
+
boxSize: 'var(--tag-element-size)',
|
|
8
|
+
ms: 'var(--tag-element-offset)',
|
|
9
|
+
'&:has([data-scope=avatar])': {
|
|
10
|
+
boxSize: 'var(--tag-avatar-size)',
|
|
11
|
+
ms: 'calc(var(--tag-element-offset) * 1.5)',
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
endElement: {
|
|
15
|
+
boxSize: 'var(--tag-element-size)',
|
|
16
|
+
me: 'var(--tag-element-offset)',
|
|
17
|
+
'&:has(button)': { ms: 'calc(var(--tag-element-offset) * -1)' },
|
|
18
|
+
},
|
|
19
|
+
} as const
|
|
20
|
+
|
|
21
|
+
const appearance = {
|
|
22
|
+
root: { focusRing: 'outside' },
|
|
23
|
+
closeTrigger: {
|
|
24
|
+
borderRadius: 'xs',
|
|
25
|
+
cursor: 'pointer',
|
|
26
|
+
focusRing: 'inside',
|
|
27
|
+
_disabled: { cursor: 'not-allowed', opacity: '0.5' },
|
|
28
|
+
},
|
|
29
|
+
} as const
|
|
30
|
+
|
|
31
|
+
export const tag = defineSlotRecipe({
|
|
32
|
+
className: 'app-tag',
|
|
33
|
+
jsx: ['Tag.Root'],
|
|
34
|
+
slots: ['root', 'label', 'startElement', 'endElement', 'closeTrigger'],
|
|
35
|
+
base: {
|
|
36
|
+
root: { ...badge.base, verticalAlign: 'top', maxWidth: 'full' },
|
|
37
|
+
label: { minWidth: '0', overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap' },
|
|
38
|
+
startElement: { flexShrink: '0', display: 'inline-flex', _icon: { boxSize: 'full' } },
|
|
39
|
+
endElement: { flexShrink: '0', display: 'inline-flex', _icon: { boxSize: 'full' } },
|
|
40
|
+
closeTrigger: {
|
|
41
|
+
display: 'inline-flex',
|
|
42
|
+
alignItems: 'center',
|
|
43
|
+
justifyContent: 'center',
|
|
44
|
+
boxSize: 'full',
|
|
45
|
+
color: 'currentColor',
|
|
46
|
+
_icon: { boxSize: 'full' },
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
variants: {
|
|
50
|
+
variant: {
|
|
51
|
+
subtle: { ...appearance, root: { ...appearance.root, ...badge.variants?.variant.subtle } },
|
|
52
|
+
solid: { ...appearance, root: { ...appearance.root, ...badge.variants?.variant.solid } },
|
|
53
|
+
outline: { ...appearance, root: { ...appearance.root, ...badge.variants?.variant.outline } },
|
|
54
|
+
surface: { ...appearance, root: { ...appearance.root, ...badge.variants?.variant.surface } },
|
|
55
|
+
unstyled: {},
|
|
56
|
+
},
|
|
57
|
+
size: {
|
|
58
|
+
sm: {
|
|
59
|
+
...sizeStyles,
|
|
60
|
+
root: {
|
|
61
|
+
...sizeStyles.root,
|
|
62
|
+
px: '1.5',
|
|
63
|
+
minH: '4.5',
|
|
64
|
+
gap: '1',
|
|
65
|
+
'--tag-element-size': '{spacing.3}',
|
|
66
|
+
'--tag-avatar-size': '{spacing.3}',
|
|
67
|
+
'--tag-element-offset': '-2px',
|
|
68
|
+
},
|
|
69
|
+
label: { textStyle: 'xs' },
|
|
70
|
+
},
|
|
71
|
+
md: {
|
|
72
|
+
...sizeStyles,
|
|
73
|
+
root: {
|
|
74
|
+
...sizeStyles.root,
|
|
75
|
+
px: '1.5',
|
|
76
|
+
minH: '5',
|
|
77
|
+
gap: '1',
|
|
78
|
+
'--tag-element-size': '{spacing.3.5}',
|
|
79
|
+
'--tag-avatar-size': '{spacing.3.5}',
|
|
80
|
+
'--tag-element-offset': '-2px',
|
|
81
|
+
},
|
|
82
|
+
label: { textStyle: 'xs' },
|
|
83
|
+
},
|
|
84
|
+
lg: {
|
|
85
|
+
...sizeStyles,
|
|
86
|
+
root: {
|
|
87
|
+
...sizeStyles.root,
|
|
88
|
+
px: '2',
|
|
89
|
+
minH: '6',
|
|
90
|
+
gap: '1.5',
|
|
91
|
+
'--tag-element-size': '{spacing.4}',
|
|
92
|
+
'--tag-avatar-size': '{spacing.4.5}',
|
|
93
|
+
'--tag-element-offset': '-3px',
|
|
94
|
+
},
|
|
95
|
+
label: { textStyle: 'sm' },
|
|
96
|
+
},
|
|
97
|
+
xl: {
|
|
98
|
+
...sizeStyles,
|
|
99
|
+
root: {
|
|
100
|
+
...sizeStyles.root,
|
|
101
|
+
px: '2.5',
|
|
102
|
+
minH: '8',
|
|
103
|
+
gap: '1.5',
|
|
104
|
+
'--tag-element-size': '{spacing.4.5}',
|
|
105
|
+
'--tag-avatar-size': '{spacing.6}',
|
|
106
|
+
'--tag-element-offset': '-4px',
|
|
107
|
+
},
|
|
108
|
+
label: { textStyle: 'sm' },
|
|
109
|
+
},
|
|
110
|
+
unstyled: {},
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
defaultVariants: { size: 'md', variant: 'surface' },
|
|
114
|
+
})
|