@oyolincc/create 0.3.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.
- package/package.json +2 -2
- package/templates/hono-fullstack/.codegraph/.gitignore +5 -0
- 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-fullstack/apps/server/src/infra/work-runner/{example → 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 +21 -8
- package/templates/hono-fullstack/apps/stack/frontend/routes/__root.tsx +1 -1
- package/templates/hono-fullstack/apps/stack/frontend/routes/index.tsx +35 -12
- package/templates/hono-fullstack/apps/stack/frontend/shared/network/query-hooks.ts +33 -0
- 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 +31 -1
- 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/.codegraph/.gitignore +5 -0
- 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-server/apps/server/src/infra/work-runner/{example → 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 +31 -1
- 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/monorepo/.codegraph/.gitignore +5 -0
- package/templates/monorepo/_gitignore +1 -0
- package/templates/monorepo/oyo.config.json +7 -1
- package/templates/monorepo/pnpm-workspace.yaml +4 -4
- package/templates/monorepo/turbo.json +10 -0
- 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-server/apps/server/src/modules/example/contracts.ts +0 -9
- package/templates/hono-server/apps/server/src/shared/app/types.ts +0 -44
|
@@ -0,0 +1,302 @@
|
|
|
1
|
+
import { datePickerAnatomy } from '@ark-ui/react/anatomy'
|
|
2
|
+
import { defineSlotRecipe, defineStyles } from '@pandacss/dev'
|
|
3
|
+
import { input } from './input'
|
|
4
|
+
|
|
5
|
+
const nav = defineStyles({
|
|
6
|
+
display: 'inline-flex',
|
|
7
|
+
alignItems: 'center',
|
|
8
|
+
justifyContent: 'center',
|
|
9
|
+
'&[dir=rtl] svg': { transform: 'rotate(180deg)' },
|
|
10
|
+
})
|
|
11
|
+
const select = defineStyles({
|
|
12
|
+
borderWidth: '1px',
|
|
13
|
+
borderColor: 'gray.border.strong',
|
|
14
|
+
borderRadius: 'sm',
|
|
15
|
+
bg: 'gray.bg.page',
|
|
16
|
+
color: 'gray.fg.default',
|
|
17
|
+
outline: '0',
|
|
18
|
+
focusVisibleRing: 'inside',
|
|
19
|
+
_disabled: { layerStyle: 'disabled' },
|
|
20
|
+
_light: { colorScheme: 'light' },
|
|
21
|
+
_dark: { colorScheme: 'dark' },
|
|
22
|
+
'& option': { bg: 'gray.bg.page', color: 'gray.fg.default' },
|
|
23
|
+
})
|
|
24
|
+
const sizeStyles = {
|
|
25
|
+
trigger: { boxSize: '6', _icon: { boxSize: '4' } },
|
|
26
|
+
clearTrigger: { boxSize: '6', _icon: { boxSize: '4' } },
|
|
27
|
+
prevTrigger: { boxSize: 'var(--datepicker-nav-size)', _icon: { boxSize: '4' } },
|
|
28
|
+
nextTrigger: { boxSize: 'var(--datepicker-nav-size)', _icon: { boxSize: '4' } },
|
|
29
|
+
viewTrigger: {
|
|
30
|
+
boxSize: 'var(--datepicker-nav-size)',
|
|
31
|
+
width: 'auto',
|
|
32
|
+
_icon: { boxSize: '4' },
|
|
33
|
+
px: '2',
|
|
34
|
+
textStyle: 'sm',
|
|
35
|
+
},
|
|
36
|
+
presetTrigger: {
|
|
37
|
+
boxSize: 'var(--datepicker-nav-size)',
|
|
38
|
+
width: 'auto',
|
|
39
|
+
_icon: { boxSize: '4' },
|
|
40
|
+
px: '2',
|
|
41
|
+
textStyle: 'sm',
|
|
42
|
+
},
|
|
43
|
+
monthSelect: { height: 'var(--datepicker-select-height)', px: '2', textStyle: 'sm' },
|
|
44
|
+
yearSelect: { height: 'var(--datepicker-select-height)', px: '2', textStyle: 'sm' },
|
|
45
|
+
root: { gap: '1.5' },
|
|
46
|
+
label: { textStyle: 'sm' },
|
|
47
|
+
control: { gap: '2' },
|
|
48
|
+
input: { '&:has(~ [data-slot=indicatorGroup])': { pe: '16' } },
|
|
49
|
+
indicatorGroup: { insetInlineEnd: '2', gap: '1' },
|
|
50
|
+
content: { gap: '3', p: '3', minW: '18rem' },
|
|
51
|
+
view: { gap: '3' },
|
|
52
|
+
viewControl: { gap: '2', height: 'var(--datepicker-nav-size)' },
|
|
53
|
+
rangeText: { textStyle: 'sm' },
|
|
54
|
+
valueText: { textStyle: 'sm' },
|
|
55
|
+
tableHeader: { width: 'var(--table-cell-size)', py: '2', textStyle: 'xs' },
|
|
56
|
+
tableCell: { py: '0.5' },
|
|
57
|
+
weekNumberCellText: { boxSize: 'var(--table-cell-size)', textStyle: 'xs' },
|
|
58
|
+
tableCellTrigger: {
|
|
59
|
+
minWidth: 'var(--table-cell-size)',
|
|
60
|
+
minHeight: 'var(--table-cell-size)',
|
|
61
|
+
textStyle: 'sm',
|
|
62
|
+
'[data-view=month] &, [data-view=year] &': { minWidth: 'calc(var(--table-cell-size) * 1.75)' },
|
|
63
|
+
},
|
|
64
|
+
} as const
|
|
65
|
+
|
|
66
|
+
const appearance = {
|
|
67
|
+
trigger: {
|
|
68
|
+
borderRadius: 'sm',
|
|
69
|
+
color: 'gray.fg.muted',
|
|
70
|
+
outline: '0',
|
|
71
|
+
cursor: 'pointer',
|
|
72
|
+
focusVisibleRing: 'inside',
|
|
73
|
+
_hover: { bg: 'gray.bg.subtle' },
|
|
74
|
+
_disabled: { layerStyle: 'disabled', cursor: 'not-allowed' },
|
|
75
|
+
},
|
|
76
|
+
clearTrigger: {
|
|
77
|
+
borderRadius: 'sm',
|
|
78
|
+
color: 'gray.fg.muted',
|
|
79
|
+
outline: '0',
|
|
80
|
+
cursor: 'pointer',
|
|
81
|
+
focusVisibleRing: 'inside',
|
|
82
|
+
_hover: { bg: 'gray.bg.subtle' },
|
|
83
|
+
_disabled: { layerStyle: 'disabled', cursor: 'not-allowed' },
|
|
84
|
+
},
|
|
85
|
+
prevTrigger: {
|
|
86
|
+
borderRadius: 'sm',
|
|
87
|
+
color: 'gray.fg.default',
|
|
88
|
+
outline: '0',
|
|
89
|
+
cursor: 'pointer',
|
|
90
|
+
focusVisibleRing: 'inside',
|
|
91
|
+
_hover: { bg: 'gray.bg.subtle' },
|
|
92
|
+
_disabled: { layerStyle: 'disabled', cursor: 'not-allowed' },
|
|
93
|
+
},
|
|
94
|
+
nextTrigger: {
|
|
95
|
+
borderRadius: 'sm',
|
|
96
|
+
color: 'gray.fg.default',
|
|
97
|
+
outline: '0',
|
|
98
|
+
cursor: 'pointer',
|
|
99
|
+
focusVisibleRing: 'inside',
|
|
100
|
+
_hover: { bg: 'gray.bg.subtle' },
|
|
101
|
+
_disabled: { layerStyle: 'disabled', cursor: 'not-allowed' },
|
|
102
|
+
},
|
|
103
|
+
viewTrigger: {
|
|
104
|
+
borderRadius: 'sm',
|
|
105
|
+
color: 'gray.fg.default',
|
|
106
|
+
outline: '0',
|
|
107
|
+
cursor: 'pointer',
|
|
108
|
+
focusVisibleRing: 'inside',
|
|
109
|
+
_hover: { bg: 'gray.bg.subtle' },
|
|
110
|
+
_disabled: { layerStyle: 'disabled', cursor: 'not-allowed' },
|
|
111
|
+
fontWeight: 'semibold',
|
|
112
|
+
},
|
|
113
|
+
presetTrigger: {
|
|
114
|
+
borderRadius: 'sm',
|
|
115
|
+
color: 'gray.fg.default',
|
|
116
|
+
outline: '0',
|
|
117
|
+
cursor: 'pointer',
|
|
118
|
+
focusVisibleRing: 'inside',
|
|
119
|
+
_hover: { bg: 'gray.bg.subtle' },
|
|
120
|
+
_disabled: { layerStyle: 'disabled', cursor: 'not-allowed' },
|
|
121
|
+
},
|
|
122
|
+
monthSelect: select,
|
|
123
|
+
yearSelect: select,
|
|
124
|
+
root: { color: 'gray.fg.default' },
|
|
125
|
+
label: { fontWeight: 'medium', _disabled: { layerStyle: 'disabled' } },
|
|
126
|
+
input: { color: 'gray.fg.default' },
|
|
127
|
+
content: {
|
|
128
|
+
bg: 'gray.bg.surface',
|
|
129
|
+
color: 'gray.fg.default',
|
|
130
|
+
borderRadius: 'md',
|
|
131
|
+
borderWidth: '1px',
|
|
132
|
+
borderColor: 'gray.border.default',
|
|
133
|
+
boxShadow: 'lg',
|
|
134
|
+
outline: '0',
|
|
135
|
+
},
|
|
136
|
+
rangeText: { fontWeight: 'semibold' },
|
|
137
|
+
tableHeader: { fontWeight: 'medium', color: 'gray.fg.muted' },
|
|
138
|
+
weekNumberCellText: { color: 'gray.fg.muted' },
|
|
139
|
+
tableCellTrigger: {
|
|
140
|
+
borderRadius: 'sm',
|
|
141
|
+
cursor: 'pointer',
|
|
142
|
+
outline: '0',
|
|
143
|
+
focusVisibleRing: 'inside',
|
|
144
|
+
_hover: { bg: 'gray.bg.subtle' },
|
|
145
|
+
_today: {
|
|
146
|
+
fontWeight: 'semibold',
|
|
147
|
+
textDecoration: 'underline',
|
|
148
|
+
textUnderlineOffset: '3px',
|
|
149
|
+
textDecorationThickness: '2px',
|
|
150
|
+
},
|
|
151
|
+
'&[data-outside-range]': { color: 'gray.fg.subtle' },
|
|
152
|
+
'&[data-in-range]': {
|
|
153
|
+
bg: 'colorPalette.bg.subtle',
|
|
154
|
+
color: 'colorPalette.fg.default',
|
|
155
|
+
borderRadius: '0',
|
|
156
|
+
_hover: { bg: 'colorPalette.bg.subtle' },
|
|
157
|
+
},
|
|
158
|
+
'&[data-selected]': {
|
|
159
|
+
bg: 'colorPalette.bg.default',
|
|
160
|
+
color: 'colorPalette.fg.onSolid',
|
|
161
|
+
_hover: { bg: 'colorPalette.bg.default' },
|
|
162
|
+
},
|
|
163
|
+
'&[data-in-range][data-selected]': {
|
|
164
|
+
bg: 'colorPalette.bg.default',
|
|
165
|
+
color: 'colorPalette.fg.onSolid',
|
|
166
|
+
borderRadius: '0',
|
|
167
|
+
'&[data-range-start][data-range-end]': { borderRadius: 'sm' },
|
|
168
|
+
'&[data-range-start]:not([data-range-end])': {
|
|
169
|
+
borderStartStartRadius: 'sm',
|
|
170
|
+
borderEndStartRadius: 'sm',
|
|
171
|
+
},
|
|
172
|
+
'&[data-range-end]:not([data-range-start])': {
|
|
173
|
+
borderStartEndRadius: 'sm',
|
|
174
|
+
borderEndEndRadius: 'sm',
|
|
175
|
+
},
|
|
176
|
+
},
|
|
177
|
+
_disabled: { opacity: '0.4', cursor: 'not-allowed' },
|
|
178
|
+
_unavailable: { textDecoration: 'line-through', opacity: '0.4', cursor: 'not-allowed' },
|
|
179
|
+
},
|
|
180
|
+
} as const
|
|
181
|
+
|
|
182
|
+
export const datePicker = defineSlotRecipe({
|
|
183
|
+
className: 'app-date-picker',
|
|
184
|
+
jsx: ['DatePicker.Root', 'DatePicker.RootProvider'],
|
|
185
|
+
slots: datePickerAnatomy.extendWith('indicatorGroup', 'weekNumberCellText', 'valueText').keys(),
|
|
186
|
+
base: {
|
|
187
|
+
root: { display: 'flex', flexDirection: 'column', width: 'full' },
|
|
188
|
+
control: { display: 'flex', alignItems: 'center', width: 'full', position: 'relative' },
|
|
189
|
+
input: { ...input.base, flex: '1', minWidth: '0' },
|
|
190
|
+
indicatorGroup: {
|
|
191
|
+
position: 'absolute',
|
|
192
|
+
top: '50%',
|
|
193
|
+
transform: 'translateY(-50%)',
|
|
194
|
+
display: 'flex',
|
|
195
|
+
alignItems: 'center',
|
|
196
|
+
},
|
|
197
|
+
trigger: nav,
|
|
198
|
+
clearTrigger: { ...nav, flexShrink: '0' },
|
|
199
|
+
positioner: {
|
|
200
|
+
'--date-picker-z-index': '{zIndex.popover}',
|
|
201
|
+
zIndex: 'calc(var(--date-picker-z-index) + var(--layer-index, 0))',
|
|
202
|
+
},
|
|
203
|
+
content: {
|
|
204
|
+
display: 'flex',
|
|
205
|
+
flexDirection: 'column',
|
|
206
|
+
maxWidth: 'calc(100vw - 2rem)',
|
|
207
|
+
'--date-picker-z-index': '{zIndex.popover}',
|
|
208
|
+
zIndex: 'calc(var(--date-picker-z-index) + var(--layer-index, 0))',
|
|
209
|
+
transformOrigin: 'var(--transform-origin)',
|
|
210
|
+
_open: {
|
|
211
|
+
_motionSafe: { animationStyle: 'scale-fade-in', animationDuration: 'fast' },
|
|
212
|
+
},
|
|
213
|
+
_closed: {
|
|
214
|
+
_motionSafe: { animationStyle: 'scale-fade-out', animationDuration: 'faster' },
|
|
215
|
+
},
|
|
216
|
+
_hidden: { display: 'none' },
|
|
217
|
+
_motionReduce: { animation: 'none' },
|
|
218
|
+
},
|
|
219
|
+
view: { display: 'flex', flexDirection: 'column', _hidden: { display: 'none' } },
|
|
220
|
+
viewControl: { display: 'flex', alignItems: 'center', justifyContent: 'space-between' },
|
|
221
|
+
prevTrigger: nav,
|
|
222
|
+
nextTrigger: nav,
|
|
223
|
+
viewTrigger: { ...nav, width: 'auto', flex: '1' },
|
|
224
|
+
table: { width: 'full', borderCollapse: 'separate', borderSpacing: '0' },
|
|
225
|
+
tableHeader: { textAlign: 'center' },
|
|
226
|
+
tableCell: { textAlign: 'center' },
|
|
227
|
+
weekNumberCellText: { display: 'inline-flex', alignItems: 'center', justifyContent: 'center' },
|
|
228
|
+
tableCellTrigger: {
|
|
229
|
+
display: 'inline-flex',
|
|
230
|
+
alignItems: 'center',
|
|
231
|
+
justifyContent: 'center',
|
|
232
|
+
width: 'full',
|
|
233
|
+
position: 'relative',
|
|
234
|
+
},
|
|
235
|
+
presetTrigger: { ...nav, width: 'auto' },
|
|
236
|
+
},
|
|
237
|
+
variants: {
|
|
238
|
+
size: {
|
|
239
|
+
xs: {
|
|
240
|
+
...sizeStyles,
|
|
241
|
+
input: { ...sizeStyles.input, ...input.variants.size.xs, minWidth: '0' },
|
|
242
|
+
view: {
|
|
243
|
+
...sizeStyles.view,
|
|
244
|
+
'--table-cell-size': '{sizes.8}',
|
|
245
|
+
'--datepicker-nav-size': '{sizes.7}',
|
|
246
|
+
'--datepicker-select-height': '{sizes.8}',
|
|
247
|
+
},
|
|
248
|
+
},
|
|
249
|
+
sm: {
|
|
250
|
+
...sizeStyles,
|
|
251
|
+
input: { ...sizeStyles.input, ...input.variants.size.sm, minWidth: '0' },
|
|
252
|
+
view: {
|
|
253
|
+
...sizeStyles.view,
|
|
254
|
+
'--table-cell-size': '{sizes.9}',
|
|
255
|
+
'--datepicker-nav-size': '{sizes.8}',
|
|
256
|
+
'--datepicker-select-height': '{sizes.9}',
|
|
257
|
+
},
|
|
258
|
+
},
|
|
259
|
+
md: {
|
|
260
|
+
...sizeStyles,
|
|
261
|
+
input: { ...sizeStyles.input, ...input.variants.size.md, minWidth: '0' },
|
|
262
|
+
view: {
|
|
263
|
+
...sizeStyles.view,
|
|
264
|
+
'--table-cell-size': '{sizes.10}',
|
|
265
|
+
'--datepicker-nav-size': '{sizes.8}',
|
|
266
|
+
'--datepicker-select-height': '{sizes.10}',
|
|
267
|
+
},
|
|
268
|
+
},
|
|
269
|
+
lg: {
|
|
270
|
+
...sizeStyles,
|
|
271
|
+
input: { ...sizeStyles.input, ...input.variants.size.lg, minWidth: '0' },
|
|
272
|
+
view: {
|
|
273
|
+
...sizeStyles.view,
|
|
274
|
+
'--table-cell-size': '{sizes.10}',
|
|
275
|
+
'--datepicker-nav-size': '{sizes.9}',
|
|
276
|
+
'--datepicker-select-height': '{sizes.10}',
|
|
277
|
+
},
|
|
278
|
+
},
|
|
279
|
+
xl: {
|
|
280
|
+
...sizeStyles,
|
|
281
|
+
input: { ...sizeStyles.input, ...input.variants.size.xl, minWidth: '0' },
|
|
282
|
+
view: {
|
|
283
|
+
...sizeStyles.view,
|
|
284
|
+
'--table-cell-size': '{sizes.10}',
|
|
285
|
+
'--datepicker-nav-size': '{sizes.9}',
|
|
286
|
+
'--datepicker-select-height': '{sizes.10}',
|
|
287
|
+
},
|
|
288
|
+
},
|
|
289
|
+
unstyled: {},
|
|
290
|
+
},
|
|
291
|
+
variant: {
|
|
292
|
+
outline: { ...appearance, input: { ...appearance.input, ...input.variants.variant.outline } },
|
|
293
|
+
subtle: { ...appearance, input: { ...appearance.input, ...input.variants.variant.subtle } },
|
|
294
|
+
flushed: { ...appearance, input: { ...appearance.input, ...input.variants.variant.flushed } },
|
|
295
|
+
unstyled: {},
|
|
296
|
+
},
|
|
297
|
+
hideOutsideDays: {
|
|
298
|
+
true: { tableCellTrigger: { '&[data-outside-range]': { visibility: 'hidden' } } },
|
|
299
|
+
},
|
|
300
|
+
},
|
|
301
|
+
defaultVariants: { size: 'md', variant: 'outline' },
|
|
302
|
+
})
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
import { dialogAnatomy } from '@ark-ui/react/anatomy'
|
|
2
|
+
import { defineSlotRecipe } from '@pandacss/dev'
|
|
3
|
+
|
|
4
|
+
const sizeStyles = {
|
|
5
|
+
title: { textStyle: 'lg' },
|
|
6
|
+
description: { textStyle: 'sm' },
|
|
7
|
+
closeTrigger: { top: '3', insetEnd: '3' },
|
|
8
|
+
content: { textStyle: 'sm', py: { base: '4', md: '6' }, gap: { base: '4', md: '6' } },
|
|
9
|
+
header: { gap: '0.5', px: { base: '4', md: '6' } },
|
|
10
|
+
body: { px: { base: '4', md: '6' } },
|
|
11
|
+
footer: { gap: '3', px: { base: '4', md: '6' } },
|
|
12
|
+
} as const
|
|
13
|
+
|
|
14
|
+
export const dialog = defineSlotRecipe({
|
|
15
|
+
className: 'app-dialog',
|
|
16
|
+
jsx: ['Dialog.Root', 'Dialog.RootProvider'],
|
|
17
|
+
slots: dialogAnatomy.extendWith('header', 'body', 'footer').keys(),
|
|
18
|
+
base: {
|
|
19
|
+
backdrop: {
|
|
20
|
+
background: 'black.a7',
|
|
21
|
+
height: '100dvh',
|
|
22
|
+
left: '0',
|
|
23
|
+
position: 'fixed',
|
|
24
|
+
top: '0',
|
|
25
|
+
width: '100dvw',
|
|
26
|
+
zIndex: 'var(--z-index)',
|
|
27
|
+
_open: {
|
|
28
|
+
_motionSafe: {
|
|
29
|
+
animationName: 'fade-in',
|
|
30
|
+
animationTimingFunction: 'out',
|
|
31
|
+
animationDuration: 'normal',
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
_closed: {
|
|
35
|
+
_motionSafe: {
|
|
36
|
+
animationName: 'fade-out',
|
|
37
|
+
animationTimingFunction: 'in',
|
|
38
|
+
animationDuration: 'fast',
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
_motionReduce: { animation: 'none' },
|
|
42
|
+
},
|
|
43
|
+
positioner: {
|
|
44
|
+
'--dialog-z-index': 'zIndex.modal',
|
|
45
|
+
display: 'flex',
|
|
46
|
+
height: '100dvh',
|
|
47
|
+
justifyContent: 'center',
|
|
48
|
+
left: 0,
|
|
49
|
+
overscrollBehaviorY: 'none',
|
|
50
|
+
position: 'fixed',
|
|
51
|
+
top: 0,
|
|
52
|
+
width: '100dvw',
|
|
53
|
+
zIndex: 'calc(var(--dialog-z-index) + var(--layer-index, 0))',
|
|
54
|
+
},
|
|
55
|
+
title: { fontWeight: 'semibold' },
|
|
56
|
+
description: { color: 'gray.fg.muted' },
|
|
57
|
+
closeTrigger: { pos: 'absolute' },
|
|
58
|
+
content: {
|
|
59
|
+
'--dialog-z-index': 'zIndex.modal',
|
|
60
|
+
bg: 'gray.bg.surface',
|
|
61
|
+
borderRadius: 'md',
|
|
62
|
+
boxShadow: 'lg',
|
|
63
|
+
display: 'flex',
|
|
64
|
+
flexDirection: 'column',
|
|
65
|
+
my: 'var(--dialog-margin, var(--dialog-base-margin))',
|
|
66
|
+
outline: 0,
|
|
67
|
+
position: 'relative',
|
|
68
|
+
width: '100%',
|
|
69
|
+
zIndex: 'calc(var(--dialog-z-index) + var(--layer-index, 0))',
|
|
70
|
+
_open: {
|
|
71
|
+
_motionSafe: { animationDuration: 'slowest' },
|
|
72
|
+
},
|
|
73
|
+
_closed: {
|
|
74
|
+
_motionSafe: { animationDuration: 'normal' },
|
|
75
|
+
},
|
|
76
|
+
_motionReduce: { animation: 'none' },
|
|
77
|
+
},
|
|
78
|
+
header: { display: 'flex', flexDirection: 'column', flex: '0' },
|
|
79
|
+
body: { display: 'flex', flex: '1', flexDirection: 'column', alignItems: 'flex-start' },
|
|
80
|
+
footer: { display: 'flex', alignItems: 'center', justifyContent: 'flex-end', flex: '0' },
|
|
81
|
+
},
|
|
82
|
+
defaultVariants: {
|
|
83
|
+
size: 'md',
|
|
84
|
+
scrollBehavior: 'outside',
|
|
85
|
+
placement: 'center',
|
|
86
|
+
motionPreset: 'scale',
|
|
87
|
+
},
|
|
88
|
+
variants: {
|
|
89
|
+
motionPreset: {
|
|
90
|
+
scale: {
|
|
91
|
+
content: {
|
|
92
|
+
_open: {
|
|
93
|
+
_motionSafe: { animationName: 'scale-in, fade-in' },
|
|
94
|
+
},
|
|
95
|
+
_closed: {
|
|
96
|
+
_motionSafe: { animationName: 'scale-out, fade-out' },
|
|
97
|
+
},
|
|
98
|
+
},
|
|
99
|
+
},
|
|
100
|
+
'slide-in-bottom': {
|
|
101
|
+
content: {
|
|
102
|
+
_open: {
|
|
103
|
+
_motionSafe: { animationName: 'slide-from-bottom, fade-in' },
|
|
104
|
+
},
|
|
105
|
+
_closed: {
|
|
106
|
+
_motionSafe: { animationName: 'slide-to-bottom, fade-out' },
|
|
107
|
+
},
|
|
108
|
+
},
|
|
109
|
+
},
|
|
110
|
+
'slide-in-top': {
|
|
111
|
+
content: {
|
|
112
|
+
_open: {
|
|
113
|
+
_motionSafe: { animationName: 'slide-from-top, fade-in' },
|
|
114
|
+
},
|
|
115
|
+
_closed: {
|
|
116
|
+
_motionSafe: { animationName: 'slide-to-top, fade-out' },
|
|
117
|
+
},
|
|
118
|
+
},
|
|
119
|
+
},
|
|
120
|
+
'slide-in-left': {
|
|
121
|
+
content: {
|
|
122
|
+
_open: {
|
|
123
|
+
_motionSafe: { animationName: 'slide-from-left, fade-in' },
|
|
124
|
+
},
|
|
125
|
+
_closed: {
|
|
126
|
+
_motionSafe: { animationName: 'slide-to-left, fade-out' },
|
|
127
|
+
},
|
|
128
|
+
},
|
|
129
|
+
},
|
|
130
|
+
'slide-in-right': {
|
|
131
|
+
content: {
|
|
132
|
+
_open: {
|
|
133
|
+
_motionSafe: { animationName: 'slide-from-right, fade-in' },
|
|
134
|
+
},
|
|
135
|
+
_closed: {
|
|
136
|
+
_motionSafe: { animationName: 'slide-to-right, fade-out' },
|
|
137
|
+
},
|
|
138
|
+
},
|
|
139
|
+
},
|
|
140
|
+
none: {
|
|
141
|
+
backdrop: { _open: { animation: 'none' }, _closed: { animation: 'none' } },
|
|
142
|
+
content: { _open: { animation: 'none' }, _closed: { animation: 'none' } },
|
|
143
|
+
},
|
|
144
|
+
},
|
|
145
|
+
size: {
|
|
146
|
+
xs: { ...sizeStyles, content: { ...sizeStyles.content, maxW: 'xs' } },
|
|
147
|
+
sm: { ...sizeStyles, content: { ...sizeStyles.content, maxW: 'sm' } },
|
|
148
|
+
md: { ...sizeStyles, content: { ...sizeStyles.content, maxW: 'md' } },
|
|
149
|
+
lg: { ...sizeStyles, content: { ...sizeStyles.content, maxW: 'lg' } },
|
|
150
|
+
xl: { ...sizeStyles, content: { ...sizeStyles.content, maxW: 'xl' } },
|
|
151
|
+
cover: {
|
|
152
|
+
...sizeStyles,
|
|
153
|
+
positioner: { padding: '8' },
|
|
154
|
+
content: { ...sizeStyles.content, width: '100%', height: '100%', '--dialog-margin': '0' },
|
|
155
|
+
},
|
|
156
|
+
full: {
|
|
157
|
+
...sizeStyles,
|
|
158
|
+
content: {
|
|
159
|
+
...sizeStyles.content,
|
|
160
|
+
maxW: '100dvw',
|
|
161
|
+
minH: '100dvh',
|
|
162
|
+
'--dialog-margin': '0',
|
|
163
|
+
borderRadius: '0',
|
|
164
|
+
},
|
|
165
|
+
},
|
|
166
|
+
unstyled: {},
|
|
167
|
+
},
|
|
168
|
+
placement: {
|
|
169
|
+
center: {
|
|
170
|
+
positioner: { alignItems: 'center' },
|
|
171
|
+
content: { '--dialog-base-margin': 'auto', mx: 'auto' },
|
|
172
|
+
},
|
|
173
|
+
top: {
|
|
174
|
+
positioner: { alignItems: 'flex-start' },
|
|
175
|
+
content: { '--dialog-base-margin': 'spacing.16', mx: 'auto' },
|
|
176
|
+
},
|
|
177
|
+
bottom: {
|
|
178
|
+
positioner: { alignItems: 'flex-end' },
|
|
179
|
+
content: { '--dialog-base-margin': 'spacing.16', mx: 'auto' },
|
|
180
|
+
},
|
|
181
|
+
},
|
|
182
|
+
scrollBehavior: {
|
|
183
|
+
inside: {
|
|
184
|
+
positioner: { overflow: 'hidden' },
|
|
185
|
+
content: { maxH: 'calc(100% - 7.5rem)' },
|
|
186
|
+
body: { overflow: 'auto' },
|
|
187
|
+
},
|
|
188
|
+
outside: { positioner: { overflow: 'auto', pointerEvents: 'auto' } },
|
|
189
|
+
},
|
|
190
|
+
},
|
|
191
|
+
})
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import { dialogAnatomy } from '@ark-ui/react/anatomy'
|
|
2
|
+
import { defineSlotRecipe } from '@pandacss/dev'
|
|
3
|
+
|
|
4
|
+
const sizeStyles = {
|
|
5
|
+
title: { textStyle: 'xl' },
|
|
6
|
+
description: { textStyle: 'sm' },
|
|
7
|
+
closeTrigger: { top: '3', insetEnd: '3' },
|
|
8
|
+
header: { gap: '1', pt: { base: '4', md: '6' }, pb: '4', px: { base: '4', md: '6' } },
|
|
9
|
+
body: { p: { base: '4', md: '6' } },
|
|
10
|
+
footer: { gap: '3', py: '4', px: { base: '4', md: '6' } },
|
|
11
|
+
} as const
|
|
12
|
+
|
|
13
|
+
export const drawer = defineSlotRecipe({
|
|
14
|
+
className: 'app-drawer',
|
|
15
|
+
jsx: ['Drawer.Root', 'Drawer.RootProvider'],
|
|
16
|
+
slots: dialogAnatomy.extendWith('header', 'body', 'footer').keys(),
|
|
17
|
+
base: {
|
|
18
|
+
backdrop: {
|
|
19
|
+
background: 'black.a7',
|
|
20
|
+
position: 'fixed',
|
|
21
|
+
insetInlineStart: '0',
|
|
22
|
+
top: '0',
|
|
23
|
+
width: '100vw',
|
|
24
|
+
height: '100dvh',
|
|
25
|
+
zIndex: 'overlay',
|
|
26
|
+
_open: {
|
|
27
|
+
_motionSafe: {
|
|
28
|
+
animationName: 'fade-in',
|
|
29
|
+
animationTimingFunction: 'out',
|
|
30
|
+
animationDuration: 'slow',
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
_closed: {
|
|
34
|
+
_motionSafe: {
|
|
35
|
+
animationName: 'fade-out',
|
|
36
|
+
animationTimingFunction: 'in',
|
|
37
|
+
animationDuration: 'normal',
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
_motionReduce: { animation: 'none' },
|
|
41
|
+
},
|
|
42
|
+
positioner: {
|
|
43
|
+
display: 'flex',
|
|
44
|
+
width: '100vw',
|
|
45
|
+
height: '100dvh',
|
|
46
|
+
position: 'fixed',
|
|
47
|
+
insetInlineStart: '0',
|
|
48
|
+
top: '0',
|
|
49
|
+
zIndex: 'modal',
|
|
50
|
+
overscrollBehaviorY: 'none',
|
|
51
|
+
},
|
|
52
|
+
content: {
|
|
53
|
+
display: 'flex',
|
|
54
|
+
flexDirection: 'column',
|
|
55
|
+
position: 'relative',
|
|
56
|
+
width: '100%',
|
|
57
|
+
outline: 0,
|
|
58
|
+
zIndex: 'modal',
|
|
59
|
+
maxH: '100dvh',
|
|
60
|
+
color: 'inherit',
|
|
61
|
+
bg: 'gray.bg.surface',
|
|
62
|
+
boxShadow: 'lg',
|
|
63
|
+
_open: {
|
|
64
|
+
_motionSafe: {
|
|
65
|
+
animationDuration: 'slowest',
|
|
66
|
+
animationTimingFunction: 'cubic-bezier(0.05, 0.7, 0.1, 1.0)',
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
_closed: {
|
|
70
|
+
_motionSafe: {
|
|
71
|
+
animationDuration: 'normal',
|
|
72
|
+
animationTimingFunction: 'cubic-bezier(0.3, 0.0, 0.8, 0.15)',
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
_motionReduce: { animation: 'none' },
|
|
76
|
+
},
|
|
77
|
+
header: { display: 'flex', flexDirection: 'column', flex: '0' },
|
|
78
|
+
body: {
|
|
79
|
+
display: 'flex',
|
|
80
|
+
flexDirection: 'column',
|
|
81
|
+
alignItems: 'flex-start',
|
|
82
|
+
flex: '1',
|
|
83
|
+
overflow: 'auto',
|
|
84
|
+
},
|
|
85
|
+
footer: { display: 'flex', alignItems: 'center', justifyContent: 'flex-end', flex: '0' },
|
|
86
|
+
title: { color: 'gray.fg.default', fontWeight: 'semibold' },
|
|
87
|
+
description: { color: 'gray.fg.muted' },
|
|
88
|
+
closeTrigger: { pos: 'absolute' },
|
|
89
|
+
},
|
|
90
|
+
defaultVariants: { placement: 'end', size: 'sm' },
|
|
91
|
+
variants: {
|
|
92
|
+
size: {
|
|
93
|
+
xs: { ...sizeStyles, content: { maxW: 'xs' } },
|
|
94
|
+
sm: { ...sizeStyles, content: { maxW: 'sm' } },
|
|
95
|
+
md: { ...sizeStyles, content: { maxW: 'md' } },
|
|
96
|
+
lg: { ...sizeStyles, content: { maxW: 'lg' } },
|
|
97
|
+
xl: { ...sizeStyles, content: { maxW: 'xl' } },
|
|
98
|
+
full: { ...sizeStyles, content: { maxW: '100vw', h: '100dvh' } },
|
|
99
|
+
unstyled: {},
|
|
100
|
+
},
|
|
101
|
+
placement: {
|
|
102
|
+
start: {
|
|
103
|
+
positioner: { justifyContent: 'flex-start', alignItems: 'stretch' },
|
|
104
|
+
content: {
|
|
105
|
+
_open: {
|
|
106
|
+
_motionSafe: {
|
|
107
|
+
animationName: {
|
|
108
|
+
base: 'slide-from-left-full, fade-in',
|
|
109
|
+
_rtl: 'slide-from-right-full, fade-in',
|
|
110
|
+
},
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
_closed: {
|
|
114
|
+
_motionSafe: {
|
|
115
|
+
animationName: {
|
|
116
|
+
base: 'slide-to-left-full, fade-out',
|
|
117
|
+
_rtl: 'slide-to-right-full, fade-out',
|
|
118
|
+
},
|
|
119
|
+
},
|
|
120
|
+
},
|
|
121
|
+
},
|
|
122
|
+
},
|
|
123
|
+
end: {
|
|
124
|
+
positioner: { justifyContent: 'flex-end', alignItems: 'stretch' },
|
|
125
|
+
content: {
|
|
126
|
+
_open: {
|
|
127
|
+
_motionSafe: {
|
|
128
|
+
animationName: {
|
|
129
|
+
base: 'slide-from-right-full, fade-in',
|
|
130
|
+
_rtl: 'slide-from-left-full, fade-in',
|
|
131
|
+
},
|
|
132
|
+
},
|
|
133
|
+
},
|
|
134
|
+
_closed: {
|
|
135
|
+
_motionSafe: {
|
|
136
|
+
animationName: {
|
|
137
|
+
base: 'slide-to-right-full, fade-out',
|
|
138
|
+
_rtl: 'slide-to-left-full, fade-out',
|
|
139
|
+
},
|
|
140
|
+
},
|
|
141
|
+
},
|
|
142
|
+
},
|
|
143
|
+
},
|
|
144
|
+
top: {
|
|
145
|
+
positioner: { justifyContent: 'stretch', alignItems: 'flex-start' },
|
|
146
|
+
content: {
|
|
147
|
+
maxW: '100%',
|
|
148
|
+
_open: {
|
|
149
|
+
_motionSafe: { animationName: 'slide-from-top-full, fade-in' },
|
|
150
|
+
},
|
|
151
|
+
_closed: {
|
|
152
|
+
_motionSafe: { animationName: 'slide-to-top-full, fade-out' },
|
|
153
|
+
},
|
|
154
|
+
},
|
|
155
|
+
},
|
|
156
|
+
bottom: {
|
|
157
|
+
positioner: { justifyContent: 'stretch', alignItems: 'flex-end' },
|
|
158
|
+
content: {
|
|
159
|
+
maxW: '100%',
|
|
160
|
+
_open: {
|
|
161
|
+
_motionSafe: { animationName: 'slide-from-bottom-full, fade-in' },
|
|
162
|
+
},
|
|
163
|
+
_closed: {
|
|
164
|
+
_motionSafe: { animationName: 'slide-to-bottom-full, fade-out' },
|
|
165
|
+
},
|
|
166
|
+
},
|
|
167
|
+
},
|
|
168
|
+
},
|
|
169
|
+
},
|
|
170
|
+
})
|