@pro-laico/create-atomic-payload 0.1.4
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/bin/cli.js +159 -0
- package/package.json +29 -0
- package/template/.env.example +35 -0
- package/template/.gitattributes +2 -0
- package/template/.prettierrc.json +6 -0
- package/template/.vscode/extensions.json +3 -0
- package/template/.vscode/launch.json +24 -0
- package/template/.vscode/settings.json +86 -0
- package/template/.yarnrc +1 -0
- package/template/LICENSE.md +22 -0
- package/template/README.md +128 -0
- package/template/eslint.config.mjs +32 -0
- package/template/next-env.d.ts +6 -0
- package/template/next.config.ts +36 -0
- package/template/package.json +75 -0
- package/template/public/adminFavicon.svg +1 -0
- package/template/public/ogImage.webp +0 -0
- package/template/src/access/anyone.ts +3 -0
- package/template/src/access/authenticated.ts +7 -0
- package/template/src/access/authenticatedOrPublished.ts +6 -0
- package/template/src/app/(frontend)/[...slug]/page.tsx +48 -0
- package/template/src/app/(frontend)/layout.tsx +49 -0
- package/template/src/app/(frontend)/next/exit-preview/route.ts +7 -0
- package/template/src/app/(frontend)/next/preview/route.ts +45 -0
- package/template/src/app/(frontend)/next/seed/route.ts +31 -0
- package/template/src/app/(frontend)/not-found.tsx +93 -0
- package/template/src/app/(frontend)/page.tsx +5 -0
- package/template/src/app/(frontend)/sitemap.ts +14 -0
- package/template/src/app/(payload)/admin/[[...segments]]/not-found.tsx +24 -0
- package/template/src/app/(payload)/admin/[[...segments]]/page.tsx +24 -0
- package/template/src/app/(payload)/admin/importMap.js +85 -0
- package/template/src/app/(payload)/api/[...slug]/route.ts +19 -0
- package/template/src/app/(payload)/custom.scss +29 -0
- package/template/src/app/(payload)/layout.tsx +31 -0
- package/template/src/blocks/actions/blocks.ts +27 -0
- package/template/src/blocks/actions/cookieConsent/set/block.ts +17 -0
- package/template/src/blocks/actions/cookieConsent/set/filter.ts +3 -0
- package/template/src/blocks/actions/cookieConsent/set/options.ts +35 -0
- package/template/src/blocks/actions/cookieConsent/toDA/block.ts +14 -0
- package/template/src/blocks/actions/cookieConsent/toDA/filter.ts +3 -0
- package/template/src/blocks/actions/cookieConsent/toDA/options.ts +19 -0
- package/template/src/blocks/actions/dynamicStore/boolean/set/block.ts +15 -0
- package/template/src/blocks/actions/dynamicStore/boolean/set/filter.ts +4 -0
- package/template/src/blocks/actions/dynamicStore/boolean/set/options.ts +18 -0
- package/template/src/blocks/actions/dynamicStore/boolean/toDA/block.ts +10 -0
- package/template/src/blocks/actions/dynamicStore/boolean/toDA/filter.ts +3 -0
- package/template/src/blocks/actions/dynamicStore/boolean/toDA/options.ts +12 -0
- package/template/src/blocks/actions/dynamicStore/text/cycle/block.ts +41 -0
- package/template/src/blocks/actions/dynamicStore/text/cycle/filter.ts +4 -0
- package/template/src/blocks/actions/dynamicStore/text/cycle/options.ts +23 -0
- package/template/src/blocks/actions/dynamicStore/text/toDA/block.ts +10 -0
- package/template/src/blocks/actions/dynamicStore/text/toDA/filter.ts +3 -0
- package/template/src/blocks/actions/dynamicStore/text/toDA/options.ts +12 -0
- package/template/src/blocks/actions/filters.ts +27 -0
- package/template/src/blocks/actions/form/errorToDA/block.ts +18 -0
- package/template/src/blocks/actions/form/errorToDA/filter.ts +3 -0
- package/template/src/blocks/actions/form/errorToDA/options.ts +15 -0
- package/template/src/blocks/actions/form/reset/block.ts +18 -0
- package/template/src/blocks/actions/form/reset/filter.ts +3 -0
- package/template/src/blocks/actions/form/reset/options.ts +30 -0
- package/template/src/blocks/actions/form/statusToDA/block.ts +12 -0
- package/template/src/blocks/actions/form/statusToDA/filter.ts +3 -0
- package/template/src/blocks/actions/form/statusToDA/options.ts +15 -0
- package/template/src/blocks/actions/form/submit/block.ts +18 -0
- package/template/src/blocks/actions/form/submit/filter.ts +3 -0
- package/template/src/blocks/actions/form/submit/options.ts +35 -0
- package/template/src/blocks/actions/portal/set/block.ts +25 -0
- package/template/src/blocks/actions/portal/set/filter.ts +3 -0
- package/template/src/blocks/actions/portal/set/options.ts +43 -0
- package/template/src/blocks/actions/processor.ts +263 -0
- package/template/src/blocks/actions/theme/set/block.ts +10 -0
- package/template/src/blocks/actions/theme/set/filter.ts +3 -0
- package/template/src/blocks/actions/theme/set/options.ts +9 -0
- package/template/src/blocks/actions/zap.ts +4 -0
- package/template/src/blocks/children/atomic/block.ts +123 -0
- package/template/src/blocks/children/atomic/controlBar.ts +43 -0
- package/template/src/blocks/children/atomic/variants/button/typeField.ts +16 -0
- package/template/src/blocks/children/atomic/variants/button/variants/link/component.client.tsx +21 -0
- package/template/src/blocks/children/atomic/variants/button/variants/link/component.tsx +13 -0
- package/template/src/blocks/children/atomic/variants/button/variants/link/controlBar.ts +73 -0
- package/template/src/blocks/children/atomic/variants/button/variants/link/settings.ts +26 -0
- package/template/src/blocks/children/atomic/variants/button/variants/portal/controlBar.ts +35 -0
- package/template/src/blocks/children/atomic/variants/button/variants/portal/dialog/component.tsx +36 -0
- package/template/src/blocks/children/atomic/variants/button/variants/portal/dialog/settings.ts +24 -0
- package/template/src/blocks/children/atomic/variants/button/variants/portal/popover/component.tsx +41 -0
- package/template/src/blocks/children/atomic/variants/button/variants/portal/popover/settings.ts +111 -0
- package/template/src/blocks/children/atomic/variants/button/variants/regular/component.client.tsx +19 -0
- package/template/src/blocks/children/atomic/variants/button/variants/regular/component.tsx +11 -0
- package/template/src/blocks/children/atomic/variants/form/component.tsx +18 -0
- package/template/src/blocks/children/atomic/variants/form/controlBar.ts +22 -0
- package/template/src/blocks/children/atomic/variants/form/settings.ts +20 -0
- package/template/src/blocks/children/atomic/variants/input/autoCompleteOptions.ts +51 -0
- package/template/src/blocks/children/atomic/variants/input/controlBar.ts +13 -0
- package/template/src/blocks/children/atomic/variants/input/settings.ts +35 -0
- package/template/src/blocks/children/atomic/variants/input/typeField.ts +23 -0
- package/template/src/blocks/children/atomic/variants/input/variants/checkBox/component.client.tsx +12 -0
- package/template/src/blocks/children/atomic/variants/input/variants/checkBox/component.tsx +6 -0
- package/template/src/blocks/children/atomic/variants/input/variants/checkBox/settings.ts +9 -0
- package/template/src/blocks/children/atomic/variants/input/variants/number/component.client.tsx +12 -0
- package/template/src/blocks/children/atomic/variants/input/variants/number/component.tsx +6 -0
- package/template/src/blocks/children/atomic/variants/input/variants/number/settings.ts +9 -0
- package/template/src/blocks/children/atomic/variants/input/variants/radio/component.client.tsx +12 -0
- package/template/src/blocks/children/atomic/variants/input/variants/radio/component.tsx +6 -0
- package/template/src/blocks/children/atomic/variants/input/variants/radio/settings.ts +9 -0
- package/template/src/blocks/children/atomic/variants/input/variants/text/component.client.tsx +12 -0
- package/template/src/blocks/children/atomic/variants/input/variants/text/component.tsx +7 -0
- package/template/src/blocks/children/atomic/variants/input/variants/text/settings.ts +12 -0
- package/template/src/blocks/children/atomic/variants/tag/component.client.tsx +17 -0
- package/template/src/blocks/children/atomic/variants/tag/component.tsx +13 -0
- package/template/src/blocks/children/atomic/variants/tag/controlBar.ts +6 -0
- package/template/src/blocks/children/atomic/variants/tag/settings.ts +9 -0
- package/template/src/blocks/children/blocks.ts +13 -0
- package/template/src/blocks/children/icon/block.ts +41 -0
- package/template/src/blocks/children/icon/component.tsx +17 -0
- package/template/src/blocks/children/image/block.ts +80 -0
- package/template/src/blocks/children/image/component.tsx +21 -0
- package/template/src/blocks/children/richText/block.ts +50 -0
- package/template/src/blocks/children/richText/component/converters/index.tsx +10 -0
- package/template/src/blocks/children/richText/component/converters/internalLink.tsx +8 -0
- package/template/src/blocks/children/richText/component/index.tsx +10 -0
- package/template/src/blocks/children/richText/component.tsx +7 -0
- package/template/src/blocks/children/richText/defaultLexical.ts +65 -0
- package/template/src/blocks/children/simpleText/block.ts +41 -0
- package/template/src/blocks/children/simpleText/component.client.tsx +18 -0
- package/template/src/blocks/children/simpleText/component.tsx +11 -0
- package/template/src/blocks/children/svg/block.ts +39 -0
- package/template/src/blocks/children/svg/component.tsx +6 -0
- package/template/src/blocks/children/video/block.ts +70 -0
- package/template/src/blocks/children/video/component.tsx +11 -0
- package/template/src/blocks/children/zap.ts +54 -0
- package/template/src/blocks/submitForm/form/rateLimiting/blocks.ts +5 -0
- package/template/src/blocks/submitForm/form/rateLimiting/functions.ts +1 -0
- package/template/src/blocks/submitForm/form/rateLimiting/simpleSlidingWindow/block.ts +23 -0
- package/template/src/blocks/submitForm/form/rateLimiting/simpleSlidingWindow/serverFunction.ts +46 -0
- package/template/src/blocks/submitForm/form/sanitation/blocks.ts +6 -0
- package/template/src/blocks/submitForm/form/sanitation/combineTwoFields/block.ts +19 -0
- package/template/src/blocks/submitForm/form/sanitation/combineTwoFields/serverFunction.ts +22 -0
- package/template/src/blocks/submitForm/form/sanitation/functions.ts +1 -0
- package/template/src/blocks/submitForm/form/validation/blocks.ts +6 -0
- package/template/src/blocks/submitForm/form/validation/functions.ts +1 -0
- package/template/src/blocks/submitForm/form/validation/isUnique/block.ts +19 -0
- package/template/src/blocks/submitForm/form/validation/isUnique/serverFunction.ts +40 -0
- package/template/src/blocks/submitForm/form/zap.ts +8 -0
- package/template/src/blocks/submitForm/formProcessor.ts +222 -0
- package/template/src/blocks/submitForm/input/sanitation/blocks.ts +5 -0
- package/template/src/blocks/submitForm/input/sanitation/functions.ts +1 -0
- package/template/src/blocks/submitForm/input/sanitation/trimText/block.ts +24 -0
- package/template/src/blocks/submitForm/input/sanitation/trimText/serverFunction.ts +63 -0
- package/template/src/blocks/submitForm/input/useOn.ts +8 -0
- package/template/src/blocks/submitForm/input/validation/blocks.ts +6 -0
- package/template/src/blocks/submitForm/input/validation/contains/block.ts +12 -0
- package/template/src/blocks/submitForm/input/validation/contains/serverFunction.ts +23 -0
- package/template/src/blocks/submitForm/input/validation/doesNotContain/block.ts +12 -0
- package/template/src/blocks/submitForm/input/validation/doesNotContain/serverFunction.ts +23 -0
- package/template/src/blocks/submitForm/input/validation/functions.ts +2 -0
- package/template/src/blocks/submitForm/input/zap.ts +6 -0
- package/template/src/blocks/submitForm/serverFunction.ts +42 -0
- package/template/src/collections/designSets/collection.ts +44 -0
- package/template/src/collections/designSets/defaults.ts +20 -0
- package/template/src/collections/designSets/tabs/animation.ts +71 -0
- package/template/src/collections/designSets/tabs/colors.ts +31 -0
- package/template/src/collections/designSets/tabs/fonts.ts +53 -0
- package/template/src/collections/designSets/tabs/miscellaneous.ts +22 -0
- package/template/src/collections/designSets/tabs/prose.ts +151 -0
- package/template/src/collections/designSets/tabs/settings.ts +52 -0
- package/template/src/collections/designSets/tabs/sizes.ts +30 -0
- package/template/src/collections/designSets/tabs/storage.ts +51 -0
- package/template/src/collections/designSets/tabs/variables.ts +28 -0
- package/template/src/collections/favicons.ts +11 -0
- package/template/src/collections/fonts/collection.ts +20 -0
- package/template/src/collections/fonts/script.ts +199 -0
- package/template/src/collections/footers/collection.ts +48 -0
- package/template/src/collections/footers/component.tsx +13 -0
- package/template/src/collections/headers/collection.ts +47 -0
- package/template/src/collections/headers/component.tsx +13 -0
- package/template/src/collections/iconSets/collection.ts +80 -0
- package/template/src/collections/iconSets/defaults.ts +81 -0
- package/template/src/collections/icons.ts +20 -0
- package/template/src/collections/images.ts +29 -0
- package/template/src/collections/index.ts +17 -0
- package/template/src/collections/muxVideos.ts +13 -0
- package/template/src/collections/pages/collection.ts +88 -0
- package/template/src/collections/pages/tabs/SEO.ts +70 -0
- package/template/src/collections/pages/tabs/settings.ts +17 -0
- package/template/src/collections/posthogProperty.ts +48 -0
- package/template/src/collections/shortcutSets/collection.ts +30 -0
- package/template/src/collections/shortcutSets/defaults.ts +1 -0
- package/template/src/collections/shortcutSets/protectedNames.ts +135 -0
- package/template/src/collections/shortcutSets/tabs/settings.ts +13 -0
- package/template/src/collections/shortcutSets/tabs/shortcuts.ts +70 -0
- package/template/src/collections/users.ts +11 -0
- package/template/src/collections/zap.ts +59 -0
- package/template/src/components/child/SSRProps.ts +381 -0
- package/template/src/components/child/renderChildren.tsx +148 -0
- package/template/src/components/livePreviewListener.tsx +10 -0
- package/template/src/components/providers/formProvider.tsx +11 -0
- package/template/src/components/providers/tracking/gtm.tsx +11 -0
- package/template/src/components/providers/tracking/index.tsx +46 -0
- package/template/src/components/providers/tracking/postHog.tsx +41 -0
- package/template/src/components/providers/tracking/vercel.tsx +10 -0
- package/template/src/components/toast/index.module.css +142 -0
- package/template/src/components/toast/index.tsx +55 -0
- package/template/src/endpoints/seed/backendForm.ts +48 -0
- package/template/src/endpoints/seed/designSet.ts +476 -0
- package/template/src/endpoints/seed/footer.ts +389 -0
- package/template/src/endpoints/seed/header.ts +3511 -0
- package/template/src/endpoints/seed/iconSet.ts +19 -0
- package/template/src/endpoints/seed/icons/assets/check.svg +4 -0
- package/template/src/endpoints/seed/icons/assets/close.svg +4 -0
- package/template/src/endpoints/seed/icons/assets/cookie.svg +7 -0
- package/template/src/endpoints/seed/icons/assets/github.svg +1 -0
- package/template/src/endpoints/seed/icons/assets/logo.svg +11 -0
- package/template/src/endpoints/seed/icons/assets/menu.svg +4 -0
- package/template/src/endpoints/seed/icons/assets/theme.svg +4 -0
- package/template/src/endpoints/seed/icons/check.ts +14 -0
- package/template/src/endpoints/seed/icons/close.ts +14 -0
- package/template/src/endpoints/seed/icons/cookie.ts +14 -0
- package/template/src/endpoints/seed/icons/github.ts +14 -0
- package/template/src/endpoints/seed/icons/index.ts +7 -0
- package/template/src/endpoints/seed/icons/logo.ts +14 -0
- package/template/src/endpoints/seed/icons/menu.ts +14 -0
- package/template/src/endpoints/seed/icons/theme.ts +14 -0
- package/template/src/endpoints/seed/index.ts +100 -0
- package/template/src/endpoints/seed/pages/home.ts +858 -0
- package/template/src/endpoints/seed/pages/index.ts +4 -0
- package/template/src/endpoints/seed/pages/notFoundPage.ts +287 -0
- package/template/src/endpoints/seed/pages/prose.ts +1436 -0
- package/template/src/endpoints/seed/pages/testing.ts +2181 -0
- package/template/src/endpoints/seed/shortcutSet.ts +187 -0
- package/template/src/endpoints/seed/siteMetaData.ts +10 -0
- package/template/src/fields/actions/changeKey.ts +12 -0
- package/template/src/fields/actions/index.ts +6 -0
- package/template/src/fields/actions/initialValueCheckbox.ts +14 -0
- package/template/src/fields/actions/keyText.ts +10 -0
- package/template/src/fields/actions/persisted.ts +14 -0
- package/template/src/fields/actions/setData.ts +20 -0
- package/template/src/fields/actions/strict/index.ts +3 -0
- package/template/src/fields/actions/strict/keySelect.ts +28 -0
- package/template/src/fields/actions/strict/listenSelect.ts +28 -0
- package/template/src/fields/actions/strict/performSelect.ts +30 -0
- package/template/src/fields/actions/strict/registry/cookieConsent.ts +14 -0
- package/template/src/fields/actions/strict/registry/index.ts +6 -0
- package/template/src/fields/actions/strict/registry/theme.ts +9 -0
- package/template/src/fields/active.ts +16 -0
- package/template/src/fields/apf/index.ts +69 -0
- package/template/src/fields/apf/storage.ts +38 -0
- package/template/src/fields/blocks/actions.ts +30 -0
- package/template/src/fields/blocks/backdropChildren.ts +11 -0
- package/template/src/fields/blocks/children.ts +15 -0
- package/template/src/fields/blocks/submitForm/form.ts +24 -0
- package/template/src/fields/blocks/submitForm/input.ts +25 -0
- package/template/src/fields/className.ts +26 -0
- package/template/src/fields/coloredEnd.ts +5 -0
- package/template/src/fields/defaultOpen.ts +14 -0
- package/template/src/fields/designSets/value.ts +80 -0
- package/template/src/fields/devMode.ts +11 -0
- package/template/src/fields/favicon.ts +18 -0
- package/template/src/fields/for.ts +11 -0
- package/template/src/fields/keepMounted.ts +11 -0
- package/template/src/fields/modal.ts +16 -0
- package/template/src/fields/slug.ts +35 -0
- package/template/src/fields/staticDataAttributes.ts +29 -0
- package/template/src/fields/tabs/block/children/actions.ts +49 -0
- package/template/src/fields/tabs/block/children/backdrop.ts +17 -0
- package/template/src/fields/tabs/block/children/settings.ts +45 -0
- package/template/src/fields/tabs/block/children/submitForm/form.ts +23 -0
- package/template/src/fields/tabs/block/children/submitForm/input.ts +14 -0
- package/template/src/fields/tabs/block/children/tracking.ts +25 -0
- package/template/src/fields/tabs/collection/storage.ts +55 -0
- package/template/src/fields/tagType.ts +32 -0
- package/template/src/fields/testPath.ts +3 -0
- package/template/src/fields/uniqueTitle.ts +8 -0
- package/template/src/fields/validationMessage.ts +13 -0
- package/template/src/globals/index.ts +8 -0
- package/template/src/globals/settings.ts +36 -0
- package/template/src/globals/siteMetaData.ts +29 -0
- package/template/src/globals/storage.ts +15 -0
- package/template/src/globals/tracking/global.ts +25 -0
- package/template/src/globals/tracking/tabs/gtm.ts +18 -0
- package/template/src/globals/tracking/tabs/postHog.ts +35 -0
- package/template/src/hooks/collection/atomicHook/atomicHook.ts +223 -0
- package/template/src/hooks/collection/atomicHook/processors/cssProcessor.ts +60 -0
- package/template/src/hooks/collection/atomicHook/processors/processDesignSet/generatePreflights.ts +36 -0
- package/template/src/hooks/collection/atomicHook/processors/processDesignSet/index.ts +176 -0
- package/template/src/hooks/collection/atomicHook/processors/unsetActive.ts +24 -0
- package/template/src/hooks/collection/formatSVG.ts +157 -0
- package/template/src/hooks/collection/revalidate.ts +53 -0
- package/template/src/hooks/collection/sanitizeCollection.ts +5 -0
- package/template/src/hooks/field/apf.ts +59 -0
- package/template/src/hooks/field/formatSlug.ts +23 -0
- package/template/src/hooks/field/href.ts +6 -0
- package/template/src/hooks/field/publishedAt.ts +5 -0
- package/template/src/hooks/frontEnd/atomicStore/create.ts +69 -0
- package/template/src/hooks/frontEnd/atomicStore/index.tsx +20 -0
- package/template/src/hooks/frontEnd/atomicStore/slices/base.ts +7 -0
- package/template/src/hooks/frontEnd/atomicStore/slices/consent.ts +76 -0
- package/template/src/hooks/frontEnd/atomicStore/slices/dynamic.ts +51 -0
- package/template/src/hooks/frontEnd/useActions/dispatch/attributer/boolToDA/function.ts +14 -0
- package/template/src/hooks/frontEnd/useActions/dispatch/attributer/boolToDA/zap.ts +12 -0
- package/template/src/hooks/frontEnd/useActions/dispatch/attributer/cCToDA/function.ts +34 -0
- package/template/src/hooks/frontEnd/useActions/dispatch/attributer/cCToDA/zap.ts +17 -0
- package/template/src/hooks/frontEnd/useActions/dispatch/attributer/errorToDA/function.ts +22 -0
- package/template/src/hooks/frontEnd/useActions/dispatch/attributer/errorToDA/zap.ts +10 -0
- package/template/src/hooks/frontEnd/useActions/dispatch/attributer/function.ts +20 -0
- package/template/src/hooks/frontEnd/useActions/dispatch/attributer/statusToDA/function.ts +24 -0
- package/template/src/hooks/frontEnd/useActions/dispatch/attributer/statusToDA/zap.ts +10 -0
- package/template/src/hooks/frontEnd/useActions/dispatch/attributer/textToDA/function.ts +21 -0
- package/template/src/hooks/frontEnd/useActions/dispatch/attributer/textToDA/zap.ts +12 -0
- package/template/src/hooks/frontEnd/useActions/dispatch/attributer/zap.ts +15 -0
- package/template/src/hooks/frontEnd/useActions/dispatch/index.ts +2 -0
- package/template/src/hooks/frontEnd/useActions/dispatch/runner/cycleText/function.ts +30 -0
- package/template/src/hooks/frontEnd/useActions/dispatch/runner/cycleText/zap.ts +12 -0
- package/template/src/hooks/frontEnd/useActions/dispatch/runner/function.ts +21 -0
- package/template/src/hooks/frontEnd/useActions/dispatch/runner/resetForm/function.ts +7 -0
- package/template/src/hooks/frontEnd/useActions/dispatch/runner/resetForm/zap.ts +9 -0
- package/template/src/hooks/frontEnd/useActions/dispatch/runner/setBool/function.ts +10 -0
- package/template/src/hooks/frontEnd/useActions/dispatch/runner/setBool/zap.ts +11 -0
- package/template/src/hooks/frontEnd/useActions/dispatch/runner/setCCs/function.ts +33 -0
- package/template/src/hooks/frontEnd/useActions/dispatch/runner/setCCs/zap.ts +14 -0
- package/template/src/hooks/frontEnd/useActions/dispatch/runner/setThemes/function.ts +11 -0
- package/template/src/hooks/frontEnd/useActions/dispatch/runner/setThemes/zap.ts +10 -0
- package/template/src/hooks/frontEnd/useActions/dispatch/runner/submitForm/function.ts +32 -0
- package/template/src/hooks/frontEnd/useActions/dispatch/runner/submitForm/zap.ts +9 -0
- package/template/src/hooks/frontEnd/useActions/dispatch/runner/zap.ts +16 -0
- package/template/src/hooks/frontEnd/useActions/dispatch/zap.ts +2 -0
- package/template/src/hooks/frontEnd/useActions/index.ts +6 -0
- package/template/src/hooks/frontEnd/useActions/useActionContext.ts +21 -0
- package/template/src/hooks/frontEnd/useActions/useButtonActions.ts +17 -0
- package/template/src/hooks/frontEnd/useActions/useDaToText.ts +34 -0
- package/template/src/hooks/frontEnd/useActions/useForm.ts +114 -0
- package/template/src/hooks/frontEnd/useActions/usePortal.ts +33 -0
- package/template/src/hooks/frontEnd/useActions/useToDa.ts +12 -0
- package/template/src/hooks/global/revalidate.ts +26 -0
- package/template/src/payload.config.ts +78 -0
- package/template/src/plugins/blurDataUrls.ts +8 -0
- package/template/src/plugins/formBuilder.ts +40 -0
- package/template/src/plugins/index.ts +17 -0
- package/template/src/plugins/muxVideo.ts +13 -0
- package/template/src/plugins/nestedDocs.ts +9 -0
- package/template/src/plugins/vercelBlobStorage.ts +8 -0
- package/template/src/ts/JSONSchema.ts +93 -0
- package/template/src/ts/declarations.ts +24 -0
- package/template/src/ts/types/actions.ts +175 -0
- package/template/src/ts/types/apf.ts +108 -0
- package/template/src/ts/types/cache.ts +166 -0
- package/template/src/ts/types/css.ts +14 -0
- package/template/src/ts/types/forms.ts +214 -0
- package/template/src/ts/types/frontEnd.ts +115 -0
- package/template/src/ts/types/index.ts +49 -0
- package/template/src/ts/types/payload-types.ts +3684 -0
- package/template/src/ts/zap/ap.ts +82 -0
- package/template/src/ts/zap/index.ts +4 -0
- package/template/src/ui/apf/controls.tsx +88 -0
- package/template/src/ui/apf/field.tsx +81 -0
- package/template/src/ui/apf/index.scss +59 -0
- package/template/src/ui/apf/label.tsx +23 -0
- package/template/src/ui/assets/Icon.tsx +21 -0
- package/template/src/ui/assets/Logo.tsx +21 -0
- package/template/src/ui/assets/atomicIcon.tsx +27 -0
- package/template/src/ui/assets/warningIcon.ts +6 -0
- package/template/src/ui/blocks/actionBlock.tsx +44 -0
- package/template/src/ui/blocks/inputBlock.tsx +24 -0
- package/template/src/ui/decorative/coloredEnd.tsx +16 -0
- package/template/src/ui/decorative/index.scss +46 -0
- package/template/src/ui/fields/iconSelect/index.tsx +19 -0
- package/template/src/ui/fields/slug/index.scss +12 -0
- package/template/src/ui/fields/slug/index.tsx +72 -0
- package/template/src/ui/index.ts +32 -0
- package/template/src/ui/root/beforeDashboard/index.scss +22 -0
- package/template/src/ui/root/beforeDashboard/index.tsx +39 -0
- package/template/src/ui/root/beforeDashboard/seedButton/index.scss +12 -0
- package/template/src/ui/root/beforeDashboard/seedButton/index.tsx +84 -0
- package/template/src/ui/root/siteTriggers/index.scss +22 -0
- package/template/src/ui/root/siteTriggers/index.tsx +94 -0
- package/template/src/ui/root/siteTriggers/triggerVercelDeploy.ts +37 -0
- package/template/src/ui/rowLabels/animation.tsx +27 -0
- package/template/src/ui/rowLabels/atomic/index.scss +62 -0
- package/template/src/ui/rowLabels/atomic/index.tsx +96 -0
- package/template/src/ui/rowLabels/color.tsx +33 -0
- package/template/src/ui/rowLabels/designToken.tsx +30 -0
- package/template/src/ui/rowLabels/icon.tsx +32 -0
- package/template/src/ui/rowLabels/shortcut/index.scss +21 -0
- package/template/src/ui/rowLabels/shortcut/index.tsx +30 -0
- package/template/src/ui/rowLabels/simpleText.tsx +41 -0
- package/template/src/utilities/deepMerge.ts +30 -0
- package/template/src/utilities/extractSVG.ts +9 -0
- package/template/src/utilities/format/toKebabCase.ts +79 -0
- package/template/src/utilities/format/toTitleCase.ts +47 -0
- package/template/src/utilities/formatDurationWithTokens.ts +56 -0
- package/template/src/utilities/generateMetaData.ts +45 -0
- package/template/src/utilities/generatePreviewPath.ts +43 -0
- package/template/src/utilities/get/cache/getAtomicActions.ts +48 -0
- package/template/src/utilities/get/cache/getAtomicClasses.ts +20 -0
- package/template/src/utilities/get/cache/getDesignSet.ts +15 -0
- package/template/src/utilities/get/cache/getFooter.ts +17 -0
- package/template/src/utilities/get/cache/getFormSubmissions.ts +17 -0
- package/template/src/utilities/get/cache/getForms.ts +43 -0
- package/template/src/utilities/get/cache/getHeader.ts +17 -0
- package/template/src/utilities/get/cache/getIcon.ts +51 -0
- package/template/src/utilities/get/cache/getImage.ts +20 -0
- package/template/src/utilities/get/cache/getPage.ts +35 -0
- package/template/src/utilities/get/cache/getPages.ts +24 -0
- package/template/src/utilities/get/cache/getShortcutSet.ts +17 -0
- package/template/src/utilities/get/cache/getSiteCSS.ts +17 -0
- package/template/src/utilities/get/cache/getSiteMetadata.ts +14 -0
- package/template/src/utilities/get/cache/getSitemap.ts +50 -0
- package/template/src/utilities/get/cache/getTracking.ts +14 -0
- package/template/src/utilities/get/cache/index.ts +129 -0
- package/template/src/utilities/get/cache/react.ts +5 -0
- package/template/src/utilities/get/getImageURL.ts +20 -0
- package/template/src/utilities/get/getMeUser.ts +22 -0
- package/template/src/utilities/get/getURL.ts +20 -0
- package/template/src/utilities/log/cache.ts +8 -0
- package/template/src/utilities/log/manual.ts +11 -0
- package/template/src/utilities/log/revalidation.ts +6 -0
- package/template/src/utilities/mergeTags.ts +7 -0
- package/template/src/utilities/propertyApplicatorUtility.ts +20 -0
- package/template/src/utilities/revalidateTag.ts +55 -0
- package/template/src/utilities/runAPF.ts +10 -0
- package/template/src/utilities/sanitizeData.ts +24 -0
- package/template/src/utilities/seedNestedRelationship.ts +5 -0
- package/template/tailwind.config.js +9 -0
- package/template/tsconfig.json +49 -0
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
.Viewport {
|
|
2
|
+
position: fixed;
|
|
3
|
+
z-index: 999;
|
|
4
|
+
width: 250px;
|
|
5
|
+
margin: 0 auto;
|
|
6
|
+
bottom: 1rem;
|
|
7
|
+
right: 1rem;
|
|
8
|
+
left: auto;
|
|
9
|
+
top: auto;
|
|
10
|
+
|
|
11
|
+
@media (min-width: 500px) {
|
|
12
|
+
bottom: 2rem;
|
|
13
|
+
right: 2rem;
|
|
14
|
+
width: 300px;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.Toast {
|
|
19
|
+
--gap: 0.75rem;
|
|
20
|
+
--peek: 0.75rem;
|
|
21
|
+
--scale: calc(max(0, 1 - (var(--toast-index) * 0.1)));
|
|
22
|
+
--shrink: calc(1 - var(--scale));
|
|
23
|
+
--height: var(--toast-frontmost-height, var(--toast-height));
|
|
24
|
+
--offset-y: calc(var(--toast-offset-y) * -1 + (var(--toast-index) * var(--gap) * -1) + var(--toast-swipe-movement-y));
|
|
25
|
+
position: absolute;
|
|
26
|
+
right: 0;
|
|
27
|
+
margin: 0 auto;
|
|
28
|
+
box-sizing: border-box;
|
|
29
|
+
background: var(--background);
|
|
30
|
+
color: var(--foreground);
|
|
31
|
+
border: 1px solid var(--border);
|
|
32
|
+
padding: 1rem;
|
|
33
|
+
width: 100%;
|
|
34
|
+
box-shadow: 0 2px 10px rgb(0 0 0 / 0.1);
|
|
35
|
+
background-clip: padding-box;
|
|
36
|
+
border-radius: 0.5rem;
|
|
37
|
+
transform-origin: bottom center;
|
|
38
|
+
bottom: 0;
|
|
39
|
+
left: auto;
|
|
40
|
+
margin-right: 0;
|
|
41
|
+
-webkit-user-select: none;
|
|
42
|
+
user-select: none;
|
|
43
|
+
transition:
|
|
44
|
+
transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
|
|
45
|
+
opacity 0.5s,
|
|
46
|
+
height 0.15s;
|
|
47
|
+
cursor: default;
|
|
48
|
+
z-index: calc(1000 - var(--toast-index));
|
|
49
|
+
height: var(--height);
|
|
50
|
+
transform: translateX(var(--toast-swipe-movement-x))
|
|
51
|
+
translateY(calc(var(--toast-swipe-movement-y) - (var(--toast-index) * var(--peek)) - (var(--shrink) * var(--height)))) scale(var(--scale));
|
|
52
|
+
|
|
53
|
+
&[data-expanded] {
|
|
54
|
+
transform: translateX(var(--toast-swipe-movement-x)) translateY(var(--offset-y));
|
|
55
|
+
height: var(--toast-height);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&[data-starting-style],
|
|
59
|
+
&[data-ending-style] {
|
|
60
|
+
transform: translateY(150%);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
&[data-limited] {
|
|
64
|
+
opacity: 0;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&[data-ending-style] {
|
|
68
|
+
opacity: 0;
|
|
69
|
+
|
|
70
|
+
&[data-swipe-direction='up'] {
|
|
71
|
+
transform: translateY(calc(var(--toast-swipe-movement-y) - 150%));
|
|
72
|
+
}
|
|
73
|
+
&[data-swipe-direction='left'] {
|
|
74
|
+
transform: translateX(calc(var(--toast-swipe-movement-x) - 150%)) translateY(var(--offset-y));
|
|
75
|
+
}
|
|
76
|
+
&[data-swipe-direction='right'] {
|
|
77
|
+
transform: translateX(calc(var(--toast-swipe-movement-x) + 150%)) translateY(var(--offset-y));
|
|
78
|
+
}
|
|
79
|
+
&[data-swipe-direction='down'] {
|
|
80
|
+
transform: translateY(calc(var(--toast-swipe-movement-y) + 150%));
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
&::after {
|
|
85
|
+
content: '';
|
|
86
|
+
position: absolute;
|
|
87
|
+
width: 100%;
|
|
88
|
+
top: 100%;
|
|
89
|
+
left: 0;
|
|
90
|
+
height: calc(var(--gap) + 1px);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.Content {
|
|
95
|
+
overflow: hidden;
|
|
96
|
+
transition: opacity 0.25s;
|
|
97
|
+
|
|
98
|
+
&[data-behind] {
|
|
99
|
+
opacity: 0;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
&[data-expanded] {
|
|
103
|
+
opacity: 1;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.Title {
|
|
108
|
+
font-weight: 500;
|
|
109
|
+
font-size: 0.975rem;
|
|
110
|
+
line-height: 1.25rem;
|
|
111
|
+
margin: 0;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.Description {
|
|
115
|
+
font-size: 0.925rem;
|
|
116
|
+
line-height: 1.25rem;
|
|
117
|
+
margin: 0;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.Close {
|
|
121
|
+
position: absolute;
|
|
122
|
+
top: 0.5rem;
|
|
123
|
+
right: 0.5rem;
|
|
124
|
+
padding: 0;
|
|
125
|
+
border: none;
|
|
126
|
+
background: transparent;
|
|
127
|
+
width: 1.25rem;
|
|
128
|
+
height: 1.25rem;
|
|
129
|
+
display: flex;
|
|
130
|
+
align-items: center;
|
|
131
|
+
justify-content: center;
|
|
132
|
+
border-radius: 0.25rem;
|
|
133
|
+
|
|
134
|
+
&:hover {
|
|
135
|
+
background-color: var(--background);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.Icon {
|
|
140
|
+
width: 1rem;
|
|
141
|
+
height: 1rem;
|
|
142
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
import styles from './index.module.css'
|
|
3
|
+
import { Toast } from '@base-ui-components/react/toast'
|
|
4
|
+
|
|
5
|
+
const Toaster = ({ children }: { children: React.ReactNode }) => {
|
|
6
|
+
return (
|
|
7
|
+
<Toast.Provider>
|
|
8
|
+
{children}
|
|
9
|
+
<Toast.Portal>
|
|
10
|
+
<Toast.Viewport className={styles.Viewport}>
|
|
11
|
+
<ToastList />
|
|
12
|
+
</Toast.Viewport>
|
|
13
|
+
</Toast.Portal>
|
|
14
|
+
</Toast.Provider>
|
|
15
|
+
)
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
//TODO: Convert to atomic button variant
|
|
19
|
+
function ToastList() {
|
|
20
|
+
const { toasts } = Toast.useToastManager()
|
|
21
|
+
return toasts.map((toast) => (
|
|
22
|
+
<Toast.Root key={toast.id} toast={toast} className={styles.Toast}>
|
|
23
|
+
<Toast.Content className={styles.Content}>
|
|
24
|
+
<Toast.Title className={styles.Title} />
|
|
25
|
+
<Toast.Description className={styles.Description} />
|
|
26
|
+
<Toast.Close className={styles.Close} aria-label="Close">
|
|
27
|
+
<XIcon className={styles.Icon} />
|
|
28
|
+
</Toast.Close>
|
|
29
|
+
</Toast.Content>
|
|
30
|
+
</Toast.Root>
|
|
31
|
+
))
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
//TODO: Change to a stored icon
|
|
35
|
+
function XIcon(props: React.ComponentProps<'svg'>) {
|
|
36
|
+
return (
|
|
37
|
+
<svg
|
|
38
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
39
|
+
width="24"
|
|
40
|
+
height="24"
|
|
41
|
+
viewBox="0 0 24 24"
|
|
42
|
+
fill="none"
|
|
43
|
+
stroke="currentColor"
|
|
44
|
+
strokeWidth="2"
|
|
45
|
+
strokeLinecap="round"
|
|
46
|
+
strokeLinejoin="round"
|
|
47
|
+
{...props}
|
|
48
|
+
>
|
|
49
|
+
<path d="M18 6 6 18" />
|
|
50
|
+
<path d="m6 6 12 12" />
|
|
51
|
+
</svg>
|
|
52
|
+
)
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export { Toaster }
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type { Form } from '@/ts/types'
|
|
2
|
+
|
|
3
|
+
export const backendForm: Omit<Form, 'createdAt' | 'id' | 'updatedAt'> = {
|
|
4
|
+
title: 'Contact',
|
|
5
|
+
emails: [
|
|
6
|
+
{
|
|
7
|
+
emailTo: 'example@example.com',
|
|
8
|
+
cc: '',
|
|
9
|
+
bcc: '',
|
|
10
|
+
replyTo: '',
|
|
11
|
+
emailFrom: '',
|
|
12
|
+
subject: "You've received a new message.",
|
|
13
|
+
|
|
14
|
+
message: {
|
|
15
|
+
root: {
|
|
16
|
+
children: [
|
|
17
|
+
{
|
|
18
|
+
children: [
|
|
19
|
+
{
|
|
20
|
+
detail: 0,
|
|
21
|
+
format: 0,
|
|
22
|
+
mode: 'normal',
|
|
23
|
+
style: '',
|
|
24
|
+
text: 'Hey you got an email. Go check it out',
|
|
25
|
+
type: 'text',
|
|
26
|
+
version: 1,
|
|
27
|
+
},
|
|
28
|
+
],
|
|
29
|
+
direction: null,
|
|
30
|
+
format: '',
|
|
31
|
+
indent: 0,
|
|
32
|
+
type: 'paragraph',
|
|
33
|
+
version: 1,
|
|
34
|
+
textFormat: 0,
|
|
35
|
+
textStyle: '',
|
|
36
|
+
},
|
|
37
|
+
],
|
|
38
|
+
direction: null,
|
|
39
|
+
format: '',
|
|
40
|
+
indent: 0,
|
|
41
|
+
type: 'root',
|
|
42
|
+
version: 1,
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
id: '6913bf1adbbb6737477aac4e',
|
|
46
|
+
},
|
|
47
|
+
],
|
|
48
|
+
}
|
|
@@ -0,0 +1,476 @@
|
|
|
1
|
+
import { DesignSet, Page } from '@/ts/types'
|
|
2
|
+
|
|
3
|
+
type DesignSetArgs = { page: Page }
|
|
4
|
+
|
|
5
|
+
export const designSet: (args: DesignSetArgs) => Omit<DesignSet, 'createdAt' | 'updatedAt' | 'id'> = ({ page }) => {
|
|
6
|
+
return {
|
|
7
|
+
active: true,
|
|
8
|
+
title: 'Base Design Set',
|
|
9
|
+
_status: 'published',
|
|
10
|
+
|
|
11
|
+
testPath: page,
|
|
12
|
+
|
|
13
|
+
minify: false,
|
|
14
|
+
defaultTheme: 'dark',
|
|
15
|
+
htmlClassName: 'nice-scrollbar',
|
|
16
|
+
bodyClassName: 'group/body overscroll-none antialiased',
|
|
17
|
+
wrapperClassName: 'bg-background relative flex min-h-svh flex-col',
|
|
18
|
+
|
|
19
|
+
defaults: {
|
|
20
|
+
spacing: '0.25rem',
|
|
21
|
+
radius: '0.625rem',
|
|
22
|
+
},
|
|
23
|
+
|
|
24
|
+
variables: [],
|
|
25
|
+
|
|
26
|
+
colors: [
|
|
27
|
+
{
|
|
28
|
+
name: 'sampler',
|
|
29
|
+
light: '#ffffff',
|
|
30
|
+
dark: '#ffffff',
|
|
31
|
+
},
|
|
32
|
+
|
|
33
|
+
{
|
|
34
|
+
name: 'background',
|
|
35
|
+
light: 'oklch(1 0 0)',
|
|
36
|
+
dark: 'oklch(0.145 0 0)',
|
|
37
|
+
},
|
|
38
|
+
|
|
39
|
+
{
|
|
40
|
+
name: 'foreground',
|
|
41
|
+
light: 'oklch(0.145 0 0)',
|
|
42
|
+
dark: 'oklch(0.985 0 0)',
|
|
43
|
+
},
|
|
44
|
+
|
|
45
|
+
{
|
|
46
|
+
name: 'card',
|
|
47
|
+
light: 'oklch(1 0 0)',
|
|
48
|
+
dark: 'oklch(0.205 0 0)',
|
|
49
|
+
},
|
|
50
|
+
|
|
51
|
+
{
|
|
52
|
+
name: 'card-foreground',
|
|
53
|
+
light: 'oklch(0.145 0 0)',
|
|
54
|
+
dark: 'oklch(0.985 0 0)',
|
|
55
|
+
},
|
|
56
|
+
|
|
57
|
+
{
|
|
58
|
+
name: 'popover',
|
|
59
|
+
light: 'oklch(1 0 0)',
|
|
60
|
+
dark: 'oklch(0.205 0 0)',
|
|
61
|
+
},
|
|
62
|
+
|
|
63
|
+
{
|
|
64
|
+
name: 'popover-foreground',
|
|
65
|
+
light: 'oklch(0.145 0 0)',
|
|
66
|
+
dark: 'oklch(0.985 0 0)',
|
|
67
|
+
},
|
|
68
|
+
|
|
69
|
+
{
|
|
70
|
+
name: 'primary',
|
|
71
|
+
light: 'oklch(0.205 0 0)',
|
|
72
|
+
dark: 'oklch(0.922 0 0)',
|
|
73
|
+
},
|
|
74
|
+
|
|
75
|
+
{
|
|
76
|
+
name: 'primary-foreground',
|
|
77
|
+
light: 'oklch(0.985 0 0)',
|
|
78
|
+
dark: 'oklch(0.205 0 0)',
|
|
79
|
+
},
|
|
80
|
+
|
|
81
|
+
{
|
|
82
|
+
name: 'secondary',
|
|
83
|
+
light: 'oklch(0.97 0 0)',
|
|
84
|
+
dark: 'oklch(0.269 0 0)',
|
|
85
|
+
},
|
|
86
|
+
|
|
87
|
+
{
|
|
88
|
+
name: 'secondary-foreground',
|
|
89
|
+
light: 'oklch(0.205 0 0)',
|
|
90
|
+
dark: 'oklch(0.985 0 0)',
|
|
91
|
+
},
|
|
92
|
+
|
|
93
|
+
{
|
|
94
|
+
name: 'muted',
|
|
95
|
+
light: 'oklch(0.97 0 0)',
|
|
96
|
+
dark: 'oklch(0.269 0 0)',
|
|
97
|
+
},
|
|
98
|
+
|
|
99
|
+
{
|
|
100
|
+
name: 'muted-foreground',
|
|
101
|
+
light: 'oklch(0.556 0 0)',
|
|
102
|
+
dark: 'oklch(0.708 0 0)',
|
|
103
|
+
},
|
|
104
|
+
|
|
105
|
+
{
|
|
106
|
+
name: 'accent',
|
|
107
|
+
light: 'oklch(0.97 0 0)',
|
|
108
|
+
dark: 'oklch(0.269 0 0)',
|
|
109
|
+
},
|
|
110
|
+
|
|
111
|
+
{
|
|
112
|
+
name: 'accent-foreground',
|
|
113
|
+
light: 'oklch(0.205 0 0)',
|
|
114
|
+
dark: 'oklch(0.985 0 0)',
|
|
115
|
+
},
|
|
116
|
+
|
|
117
|
+
{
|
|
118
|
+
name: 'destructive',
|
|
119
|
+
light: 'oklch(0.577 0.245 27.325)',
|
|
120
|
+
dark: 'oklch(0.704 0.191 22.216)',
|
|
121
|
+
},
|
|
122
|
+
|
|
123
|
+
{
|
|
124
|
+
name: 'border',
|
|
125
|
+
light: 'oklch(0.922 0 0)',
|
|
126
|
+
dark: 'oklch(1 0 0 / 10%)',
|
|
127
|
+
},
|
|
128
|
+
|
|
129
|
+
{
|
|
130
|
+
name: 'input',
|
|
131
|
+
light: 'oklch(0.922 0 0)',
|
|
132
|
+
dark: 'oklch(1 0 0 / 15%)',
|
|
133
|
+
},
|
|
134
|
+
|
|
135
|
+
{
|
|
136
|
+
name: 'ring',
|
|
137
|
+
light: 'oklch(0.708 0 0)',
|
|
138
|
+
dark: 'oklch(0.556 0 0)',
|
|
139
|
+
},
|
|
140
|
+
|
|
141
|
+
{
|
|
142
|
+
name: 'success',
|
|
143
|
+
light: 'oklch(0.3 0.15 140)',
|
|
144
|
+
dark: 'oklch(0.9 0.1 140)',
|
|
145
|
+
},
|
|
146
|
+
|
|
147
|
+
{
|
|
148
|
+
name: 'brand-primary',
|
|
149
|
+
light: 'oklch(87.62% 0.240 148.61)',
|
|
150
|
+
dark: 'oklch(87.62% 0.240 148.61)',
|
|
151
|
+
},
|
|
152
|
+
|
|
153
|
+
{
|
|
154
|
+
name: 'brand-secondary',
|
|
155
|
+
light: 'oklch(73.03% 0.052 183.44)',
|
|
156
|
+
dark: 'oklch(73.03% 0.052 183.44)',
|
|
157
|
+
},
|
|
158
|
+
],
|
|
159
|
+
|
|
160
|
+
container: [],
|
|
161
|
+
|
|
162
|
+
breakpoint: [
|
|
163
|
+
{
|
|
164
|
+
name: '3xl',
|
|
165
|
+
value: '100rem',
|
|
166
|
+
},
|
|
167
|
+
|
|
168
|
+
{
|
|
169
|
+
name: '4xl',
|
|
170
|
+
value: '125rem',
|
|
171
|
+
},
|
|
172
|
+
],
|
|
173
|
+
|
|
174
|
+
spacing: [
|
|
175
|
+
{
|
|
176
|
+
name: 'hh',
|
|
177
|
+
value: 'calc(var(--spacing)*14)',
|
|
178
|
+
},
|
|
179
|
+
|
|
180
|
+
{
|
|
181
|
+
name: 'fh',
|
|
182
|
+
value: 'calc(var(--spacing)*14)',
|
|
183
|
+
},
|
|
184
|
+
],
|
|
185
|
+
|
|
186
|
+
radius: [
|
|
187
|
+
{
|
|
188
|
+
name: 'sm',
|
|
189
|
+
value: 'calc(var(--radius) - 4px)',
|
|
190
|
+
},
|
|
191
|
+
|
|
192
|
+
{
|
|
193
|
+
name: 'md',
|
|
194
|
+
value: 'calc(var(--radius) - 2px)',
|
|
195
|
+
},
|
|
196
|
+
|
|
197
|
+
{
|
|
198
|
+
name: 'lg',
|
|
199
|
+
value: 'var(--radius)',
|
|
200
|
+
},
|
|
201
|
+
|
|
202
|
+
{
|
|
203
|
+
name: 'xl',
|
|
204
|
+
value: 'calc(var(--radius) + 4px)',
|
|
205
|
+
},
|
|
206
|
+
],
|
|
207
|
+
|
|
208
|
+
font: {
|
|
209
|
+
display: null,
|
|
210
|
+
},
|
|
211
|
+
|
|
212
|
+
text: [],
|
|
213
|
+
|
|
214
|
+
fontWeight: [],
|
|
215
|
+
|
|
216
|
+
tracking: [],
|
|
217
|
+
|
|
218
|
+
leading: [],
|
|
219
|
+
|
|
220
|
+
textStrokeWidth: [],
|
|
221
|
+
|
|
222
|
+
animation: [],
|
|
223
|
+
|
|
224
|
+
ease: [],
|
|
225
|
+
|
|
226
|
+
property: [],
|
|
227
|
+
|
|
228
|
+
aria: [
|
|
229
|
+
{
|
|
230
|
+
value: 'invalid',
|
|
231
|
+
id: '69274d1058b4d28e286cff18',
|
|
232
|
+
},
|
|
233
|
+
],
|
|
234
|
+
|
|
235
|
+
blur: [],
|
|
236
|
+
|
|
237
|
+
media: [],
|
|
238
|
+
|
|
239
|
+
supports: [],
|
|
240
|
+
|
|
241
|
+
perspective: [],
|
|
242
|
+
|
|
243
|
+
shadow: [],
|
|
244
|
+
|
|
245
|
+
insetShadow: [],
|
|
246
|
+
|
|
247
|
+
dropShadow: [],
|
|
248
|
+
|
|
249
|
+
proseColors: {
|
|
250
|
+
body: {
|
|
251
|
+
light: 'var(--foreground)',
|
|
252
|
+
dark: 'var(--foreground)',
|
|
253
|
+
},
|
|
254
|
+
|
|
255
|
+
headings: {
|
|
256
|
+
light: 'var(--foreground)',
|
|
257
|
+
dark: 'var(--foreground)',
|
|
258
|
+
},
|
|
259
|
+
|
|
260
|
+
lead: {
|
|
261
|
+
light: 'var(--foreground)',
|
|
262
|
+
dark: 'ovar(--foreground)',
|
|
263
|
+
},
|
|
264
|
+
|
|
265
|
+
links: {
|
|
266
|
+
light: 'var(--foreground)',
|
|
267
|
+
dark: 'var(--foreground)',
|
|
268
|
+
},
|
|
269
|
+
|
|
270
|
+
bold: {
|
|
271
|
+
light: 'var(--foreground)',
|
|
272
|
+
dark: 'var(--foreground)',
|
|
273
|
+
},
|
|
274
|
+
|
|
275
|
+
counters: {
|
|
276
|
+
light: 'var(--foreground)',
|
|
277
|
+
dark: 'var(--brand-primary)',
|
|
278
|
+
},
|
|
279
|
+
|
|
280
|
+
bullets: {
|
|
281
|
+
light: 'var(--foreground)',
|
|
282
|
+
dark: 'var(--brand-primary)',
|
|
283
|
+
},
|
|
284
|
+
|
|
285
|
+
hr: {
|
|
286
|
+
light: 'var(--foreground)',
|
|
287
|
+
dark: 'var(--foreground)',
|
|
288
|
+
},
|
|
289
|
+
|
|
290
|
+
quotes: {
|
|
291
|
+
light: 'var(--foreground)',
|
|
292
|
+
dark: 'var(--foreground)',
|
|
293
|
+
},
|
|
294
|
+
|
|
295
|
+
'quote-borders': {
|
|
296
|
+
light: 'var(--foreground)',
|
|
297
|
+
dark: 'var(--brand-primary)',
|
|
298
|
+
},
|
|
299
|
+
|
|
300
|
+
captions: {
|
|
301
|
+
light: 'var(--foreground)',
|
|
302
|
+
dark: 'var(--foreground)',
|
|
303
|
+
},
|
|
304
|
+
|
|
305
|
+
kbd: {
|
|
306
|
+
light: 'var(--foreground)',
|
|
307
|
+
dark: 'var(--foreground)',
|
|
308
|
+
},
|
|
309
|
+
|
|
310
|
+
'kbd-shadows': {
|
|
311
|
+
light: 'var(--foreground)',
|
|
312
|
+
dark: 'var(--foreground)',
|
|
313
|
+
},
|
|
314
|
+
|
|
315
|
+
code: {
|
|
316
|
+
light: 'var(--foreground)',
|
|
317
|
+
dark: 'ovar(--foreground)',
|
|
318
|
+
},
|
|
319
|
+
|
|
320
|
+
'pre-code': {
|
|
321
|
+
light: 'oklch(0.145 0 0)',
|
|
322
|
+
dark: 'oklch(0.985 0 0)',
|
|
323
|
+
},
|
|
324
|
+
|
|
325
|
+
'pre-bg': {
|
|
326
|
+
light: 'var(--foreground)',
|
|
327
|
+
dark: 'var(--foreground)',
|
|
328
|
+
},
|
|
329
|
+
|
|
330
|
+
'th-borders': {
|
|
331
|
+
light: 'var(--foreground)',
|
|
332
|
+
dark: 'var(--foreground)',
|
|
333
|
+
},
|
|
334
|
+
|
|
335
|
+
'td-borders': {
|
|
336
|
+
light: 'var(--foreground)',
|
|
337
|
+
dark: 'var(--foreground)',
|
|
338
|
+
},
|
|
339
|
+
},
|
|
340
|
+
|
|
341
|
+
proseBaseStorage: {},
|
|
342
|
+
|
|
343
|
+
proseDefaultStorage: {},
|
|
344
|
+
|
|
345
|
+
proselgStorage: {},
|
|
346
|
+
|
|
347
|
+
prosesmStorage: {},
|
|
348
|
+
|
|
349
|
+
textShadow: [],
|
|
350
|
+
preflightStorage:
|
|
351
|
+
':root {\n--sampler: #ffffff;\n--background: oklch(1 0 0);\n--foreground: oklch(0.145 0 0);\n--card: oklch(1 0 0);\n--card-foreground: oklch(0.145 0 0);\n--popover: oklch(1 0 0);\n--popover-foreground: oklch(0.145 0 0);\n--primary: oklch(0.205 0 0);\n--primary-foreground: oklch(0.985 0 0);\n--secondary: oklch(0.97 0 0);\n--secondary-foreground: oklch(0.205 0 0);\n--muted: oklch(0.97 0 0);\n--muted-foreground: oklch(0.556 0 0);\n--accent: oklch(0.97 0 0);\n--accent-foreground: oklch(0.205 0 0);\n--destructive: oklch(0.577 0.245 27.325);\n--border: oklch(0.922 0 0);\n--input: oklch(0.922 0 0);\n--ring: oklch(0.708 0 0);\n--success: oklch(0.3 0.15 140);\n--brand-primary: oklch(87.62% 0.240 148.61);\n--brand-secondary: oklch(73.03% 0.052 183.44);\n--radius: 0.625rem;\n}\n.dark {\n--sampler: #ffffff;\n--background: oklch(0.145 0 0);\n--foreground: oklch(0.985 0 0);\n--card: oklch(0.205 0 0);\n--card-foreground: oklch(0.985 0 0);\n--popover: oklch(0.205 0 0);\n--popover-foreground: oklch(0.985 0 0);\n--primary: oklch(0.922 0 0);\n--primary-foreground: oklch(0.205 0 0);\n--secondary: oklch(0.269 0 0);\n--secondary-foreground: oklch(0.985 0 0);\n--muted: oklch(0.269 0 0);\n--muted-foreground: oklch(0.708 0 0);\n--accent: oklch(0.269 0 0);\n--accent-foreground: oklch(0.985 0 0);\n--destructive: oklch(0.704 0.191 22.216);\n--border: oklch(1 0 0 / 10%);\n--input: oklch(1 0 0 / 15%);\n--ring: oklch(0.556 0 0);\n--success: oklch(0.9 0.1 140);\n--brand-primary: oklch(87.62% 0.240 148.61);\n--brand-secondary: oklch(73.03% 0.052 183.44);\n}',
|
|
352
|
+
|
|
353
|
+
tokenStorage: {
|
|
354
|
+
colors: {
|
|
355
|
+
sampler: 'var(--sampler)',
|
|
356
|
+
background: 'var(--background)',
|
|
357
|
+
foreground: 'var(--foreground)',
|
|
358
|
+
card: 'var(--card)',
|
|
359
|
+
'card-foreground': 'var(--card-foreground)',
|
|
360
|
+
popover: 'var(--popover)',
|
|
361
|
+
'popover-foreground': 'var(--popover-foreground)',
|
|
362
|
+
primary: 'var(--primary)',
|
|
363
|
+
'primary-foreground': 'var(--primary-foreground)',
|
|
364
|
+
secondary: 'var(--secondary)',
|
|
365
|
+
'secondary-foreground': 'var(--secondary-foreground)',
|
|
366
|
+
muted: 'var(--muted)',
|
|
367
|
+
'muted-foreground': 'var(--muted-foreground)',
|
|
368
|
+
accent: 'var(--accent)',
|
|
369
|
+
'accent-foreground': 'var(--accent-foreground)',
|
|
370
|
+
destructive: 'var(--destructive)',
|
|
371
|
+
border: 'var(--border)',
|
|
372
|
+
input: 'var(--input)',
|
|
373
|
+
ring: 'var(--ring)',
|
|
374
|
+
success: 'var(--success)',
|
|
375
|
+
'brand-primary': 'var(--brand-primary)',
|
|
376
|
+
'brand-secondary': 'var(--brand-secondary)',
|
|
377
|
+
},
|
|
378
|
+
|
|
379
|
+
variables: {
|
|
380
|
+
spacing: '0.25rem',
|
|
381
|
+
radius: '0.625rem',
|
|
382
|
+
},
|
|
383
|
+
|
|
384
|
+
ease: {},
|
|
385
|
+
|
|
386
|
+
animation: {
|
|
387
|
+
category: {},
|
|
388
|
+
|
|
389
|
+
keyframes: {},
|
|
390
|
+
|
|
391
|
+
durations: {},
|
|
392
|
+
|
|
393
|
+
timingFns: {},
|
|
394
|
+
|
|
395
|
+
counts: {},
|
|
396
|
+
},
|
|
397
|
+
|
|
398
|
+
property: {},
|
|
399
|
+
|
|
400
|
+
aria: {
|
|
401
|
+
invalid: 'invalid="invalid"',
|
|
402
|
+
},
|
|
403
|
+
|
|
404
|
+
blur: {},
|
|
405
|
+
|
|
406
|
+
media: {},
|
|
407
|
+
|
|
408
|
+
supports: {},
|
|
409
|
+
|
|
410
|
+
perspective: {},
|
|
411
|
+
|
|
412
|
+
shadow: {},
|
|
413
|
+
|
|
414
|
+
textShadow: {},
|
|
415
|
+
|
|
416
|
+
dropShadow: {},
|
|
417
|
+
|
|
418
|
+
insetShadow: {},
|
|
419
|
+
|
|
420
|
+
radius: {
|
|
421
|
+
sm: 'calc(var(--radius) - 4px)',
|
|
422
|
+
md: 'calc(var(--radius) - 2px)',
|
|
423
|
+
lg: 'var(--radius)',
|
|
424
|
+
xl: 'calc(var(--radius) + 4px)',
|
|
425
|
+
},
|
|
426
|
+
|
|
427
|
+
spacing: {
|
|
428
|
+
hh: 'calc(var(--spacing)*14)',
|
|
429
|
+
fh: 'calc(var(--spacing)*14)',
|
|
430
|
+
},
|
|
431
|
+
|
|
432
|
+
container: {},
|
|
433
|
+
|
|
434
|
+
breakpoint: {
|
|
435
|
+
'3xl': '100rem',
|
|
436
|
+
'4xl': '125rem',
|
|
437
|
+
},
|
|
438
|
+
|
|
439
|
+
font: {
|
|
440
|
+
mono: 'var(--font-setMono)',
|
|
441
|
+
sans: 'var(--font-setSans)',
|
|
442
|
+
serif: 'var(--font-setSerif)',
|
|
443
|
+
display: 'var(--font-setDisplay)',
|
|
444
|
+
},
|
|
445
|
+
|
|
446
|
+
leading: {},
|
|
447
|
+
|
|
448
|
+
tracking: {},
|
|
449
|
+
|
|
450
|
+
fontWeight: {},
|
|
451
|
+
|
|
452
|
+
textStrokeWidth: {},
|
|
453
|
+
},
|
|
454
|
+
|
|
455
|
+
proseColorStorage: {
|
|
456
|
+
hr: ['var(--foreground)', 'var(--foreground)'],
|
|
457
|
+
kbd: ['var(--foreground)', 'var(--foreground)'],
|
|
458
|
+
body: ['var(--foreground)', 'var(--foreground)'],
|
|
459
|
+
lead: ['var(--foreground)', 'ovar(--foreground)'],
|
|
460
|
+
bold: ['var(--foreground)', 'var(--foreground)'],
|
|
461
|
+
code: ['var(--foreground)', 'ovar(--foreground)'],
|
|
462
|
+
links: ['var(--foreground)', 'var(--foreground)'],
|
|
463
|
+
quotes: ['var(--foreground)', 'var(--foreground)'],
|
|
464
|
+
'pre-bg': ['var(--foreground)', 'var(--foreground)'],
|
|
465
|
+
bullets: ['var(--foreground)', 'var(--brand-primary)'],
|
|
466
|
+
headings: ['var(--foreground)', 'var(--foreground)'],
|
|
467
|
+
counters: ['var(--foreground)', 'var(--brand-primary)'],
|
|
468
|
+
captions: ['var(--foreground)', 'var(--foreground)'],
|
|
469
|
+
'pre-code': ['oklch(0.145 0 0)', 'oklch(0.985 0 0)'],
|
|
470
|
+
'th-borders': ['var(--foreground)', 'var(--foreground)'],
|
|
471
|
+
'td-borders': ['var(--foreground)', 'var(--foreground)'],
|
|
472
|
+
'kbd-shadows': ['var(--foreground)', 'var(--foreground)'],
|
|
473
|
+
'quote-borders': ['var(--foreground)', 'var(--brand-primary)'],
|
|
474
|
+
},
|
|
475
|
+
}
|
|
476
|
+
}
|