@nikkory/vibe-engine 4.0.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/PUBLISH-GUIDE.md +250 -0
- package/README.md +1267 -0
- package/bin/vibe.js +22 -0
- package/dist/adapters/index.d.ts +19 -0
- package/dist/browser.d.ts +25 -0
- package/dist/browser.js +15083 -0
- package/dist/browser.mjs +15000 -0
- package/dist/cli/batch-command.d.ts +142 -0
- package/dist/cli/generate-command.d.ts +119 -0
- package/dist/cli/index.d.ts +34 -0
- package/dist/constants/ComponentTypes.d.ts +65 -0
- package/dist/constants/DesignSystems.d.ts +64 -0
- package/dist/constants/Frameworks.d.ts +71 -0
- package/dist/constants/Tiers.d.ts +72 -0
- package/dist/constants/index.d.ts +10 -0
- package/dist/converters/index.d.ts +12 -0
- package/dist/converters/section-converter.d.ts +176 -0
- package/dist/index.d.ts +58 -0
- package/dist/index.js +19819 -0
- package/dist/index.mjs +19496 -0
- package/dist/resolution/basic/groups-basic.d.ts +80 -0
- package/dist/resolution/basic/index.d.ts +21 -0
- package/dist/resolution/basic/intents-basic.d.ts +195 -0
- package/dist/resolution/basic/presets-basic.d.ts +96 -0
- package/dist/resolution/basic/resolver-basic.d.ts +127 -0
- package/dist/resolution/basic/shorthands-basic.d.ts +88 -0
- package/dist/resolution/core/groups-core.d.ts +160 -0
- package/dist/resolution/core/index.d.ts +21 -0
- package/dist/resolution/core/intents-core.d.ts +355 -0
- package/dist/resolution/core/presets-core.d.ts +160 -0
- package/dist/resolution/core/resolver-core.d.ts +207 -0
- package/dist/resolution/core/shorthands-core.d.ts +144 -0
- package/dist/resolution/core/types-core.d.ts +167 -0
- package/dist/resolution/debugger.d.ts +183 -0
- package/dist/resolution/demo.d.ts +57 -0
- package/dist/resolution/enterprise/index.d.ts +22 -0
- package/dist/resolution/enterprise/metrics.d.ts +152 -0
- package/dist/resolution/enterprise/resolver-enterprise.d.ts +108 -0
- package/dist/resolution/examples.d.ts +486 -0
- package/dist/resolution/groups/experience-group.d.ts +197 -0
- package/dist/resolution/groups/index.d.ts +196 -0
- package/dist/resolution/groups/layout-group.d.ts +192 -0
- package/dist/resolution/groups/motion-group.d.ts +127 -0
- package/dist/resolution/groups/visual-group.d.ts +146 -0
- package/dist/resolution/index.d.ts +41 -0
- package/dist/resolution/intents/button-intents.d.ts +231 -0
- package/dist/resolution/intents/card-intents.d.ts +177 -0
- package/dist/resolution/intents/feedback-intents.d.ts +222 -0
- package/dist/resolution/intents/index.d.ts +189 -0
- package/dist/resolution/intents/input-intents.d.ts +231 -0
- package/dist/resolution/intents/mood-modifiers.d.ts +154 -0
- package/dist/resolution/performance.d.ts +264 -0
- package/dist/resolution/presets/button-presets.d.ts +243 -0
- package/dist/resolution/presets/card-presets.d.ts +216 -0
- package/dist/resolution/presets/data-display-presets.d.ts +290 -0
- package/dist/resolution/presets/feedback-presets.d.ts +335 -0
- package/dist/resolution/presets/form-presets.d.ts +308 -0
- package/dist/resolution/presets/index.d.ts +22 -0
- package/dist/resolution/presets/input-presets.d.ts +207 -0
- package/dist/resolution/presets/nav-presets.d.ts +235 -0
- package/dist/resolution/presets/overlay-presets.d.ts +216 -0
- package/dist/resolution/presets/preset-registry.d.ts +212 -0
- package/dist/resolution/resolveProps.d.ts +235 -0
- package/dist/resolution/shorthand/feel-mappings.d.ts +140 -0
- package/dist/resolution/shorthand/index.d.ts +172 -0
- package/dist/resolution/shorthand/look-mappings.d.ts +107 -0
- package/dist/resolution/shorthand/spacing-mappings.d.ts +164 -0
- package/dist/resolution/shorthand/surface-mappings.d.ts +139 -0
- package/dist/resolution/standard/groups-standard.d.ts +98 -0
- package/dist/resolution/standard/index.d.ts +28 -0
- package/dist/resolution/standard/intents-standard.d.ts +232 -0
- package/dist/resolution/standard/presets-standard.d.ts +123 -0
- package/dist/resolution/standard/resolver-standard.d.ts +204 -0
- package/dist/resolution/standard/shorthands-standard.d.ts +98 -0
- package/dist/resolution/standard/validators.d.ts +141 -0
- package/dist/resolution/types.d.ts +461 -0
- package/dist/resolution/validators/factor24-validator.d.ts +418 -0
- package/dist/resolution/validators/index.d.ts +14 -0
- package/dist/scripts/generate-react-library.d.ts +15 -0
- package/dist/scripts/write-react-library.d.ts +18 -0
- package/dist/storage/cloud-sync.d.ts +182 -0
- package/dist/storage/index.d.ts +69 -0
- package/dist/storage/local-storage.d.ts +131 -0
- package/dist/storage/section-storage.d.ts +191 -0
- package/dist/styling/StyleGenerator.d.ts +76 -0
- package/dist/styling/TokenStyleResolver.d.ts +163 -0
- package/dist/styling/factor-migration.d.ts +192 -0
- package/dist/styling/factor-validators.d.ts +327 -0
- package/dist/styling/factors-1-6.d.ts +674 -0
- package/dist/styling/factors-12-16.d.ts +700 -0
- package/dist/styling/factors-17-24.d.ts +668 -0
- package/dist/styling/factors-all.d.ts +348 -0
- package/dist/styling/factors.d.ts +291 -0
- package/dist/styling/index.d.ts +31 -0
- package/dist/styling/types.d.ts +400 -0
- package/dist/tokens/schema.d.ts +486 -0
- package/dist/types/Option.d.ts +178 -0
- package/dist/types/Result.d.ts +148 -0
- package/dist/types/algorithm-engine.types.d.ts +298 -0
- package/dist/types/granularity/base.types.d.ts +268 -0
- package/dist/types/granularity/config.types.d.ts +177 -0
- package/dist/types/granularity/factors.types.d.ts +194 -0
- package/dist/types/granularity/index.d.ts +57 -0
- package/dist/types/granularity/slot.types.d.ts +128 -0
- package/dist/types/granularity/template.types.d.ts +179 -0
- package/dist/types/granularity-levels/atom.config.d.ts +151 -0
- package/dist/types/granularity-levels/component.config.d.ts +175 -0
- package/dist/types/granularity-levels/index.d.ts +47 -0
- package/dist/types/granularity-levels/layout.config.d.ts +278 -0
- package/dist/types/granularity-levels/page.config.d.ts +210 -0
- package/dist/types/granularity-levels/section.config.d.ts +188 -0
- package/dist/types/granularity-levels/template.config.d.ts +340 -0
- package/dist/types/index.d.ts +152 -0
- package/dist/types/section-slot.types.d.ts +169 -0
- package/dist/types/section-storage.types.d.ts +298 -0
- package/dist/types/section-template.types.d.ts +170 -0
- package/dist/types/section.types.d.ts +326 -0
- package/dist/ui-studio/ComponentGenerator.d.ts +219 -0
- package/dist/ui-studio/composition/FactorPropagator.d.ts +268 -0
- package/dist/ui-studio/composition/PageGenerator.d.ts +176 -0
- package/dist/ui-studio/composition/SectionGenerator.d.ts +312 -0
- package/dist/ui-studio/composition/SlotResolver.d.ts +295 -0
- package/dist/ui-studio/composition/section-orchestrator.d.ts +306 -0
- package/dist/ui-studio/granularity/FactorCascade.d.ts +328 -0
- package/dist/ui-studio/granularity/GranularityGenerator.d.ts +266 -0
- package/dist/ui-studio/granularity/RecursiveGenerator.d.ts +328 -0
- package/dist/ui-studio/index.d.ts +94 -0
- package/dist/ui-studio/matrix/ClassMapper.d.ts +128 -0
- package/dist/ui-studio/matrix/MatrixResolver.d.ts +203 -0
- package/dist/ui-studio/matrix/types.d.ts +96 -0
- package/dist/ui-studio/presets/IndustryDetector.d.ts +183 -0
- package/dist/ui-studio/presets/component-registry.d.ts +213 -0
- package/dist/ui-studio/presets/factor-registry.d.ts +364 -0
- package/dist/ui-studio/presets/granularity-registry.d.ts +252 -0
- package/dist/ui-studio/presets/index.d.ts +32 -0
- package/dist/ui-studio/presets/industries.d.ts +143 -0
- package/dist/ui-studio/presets/layout-registry.d.ts +21 -0
- package/dist/ui-studio/presets/matrix-groups.d.ts +195 -0
- package/dist/ui-studio/presets/page-registry.d.ts +24 -0
- package/dist/ui-studio/presets/registry.constants.d.ts +69 -0
- package/dist/ui-studio/presets/registry.types.d.ts +166 -0
- package/dist/ui-studio/presets/section-defaults.d.ts +175 -0
- package/dist/ui-studio/presets/section-registry.d.ts +83 -0
- package/dist/ui-studio/presets/section-registry.defaults.d.ts +106 -0
- package/dist/ui-studio/presets/section-registry.helpers.d.ts +112 -0
- package/dist/ui-studio/presets/section-registry.types.d.ts +181 -0
- package/dist/ui-studio/presets/template-registry.d.ts +23 -0
- package/dist/ui-studio/presets/variants.d.ts +1038 -0
- package/dist/ui-studio/registries/components-registry.d.ts +193 -0
- package/dist/ui-studio/registries/design-systems-registry.d.ts +153 -0
- package/dist/ui-studio/registries/factors-registry.d.ts +145 -0
- package/dist/ui-studio/registries/tiers-registry.d.ts +150 -0
- package/dist/ui-studio/resolution/FactorResolver.d.ts +201 -0
- package/dist/ui-studio/templates/TestGenerator.d.ts +55 -0
- package/dist/ui-studio/templates/TierGenerator.d.ts +153 -0
- package/dist/ui-studio/templates/TypesGenerator.d.ts +51 -0
- package/dist/ui-studio/types/granularity/base.types.d.ts +268 -0
- package/dist/ui-studio/types/granularity/config.types.d.ts +177 -0
- package/dist/ui-studio/types/granularity/factors.types.d.ts +194 -0
- package/dist/ui-studio/types/granularity/index.d.ts +57 -0
- package/dist/ui-studio/types/granularity/slot.types.d.ts +128 -0
- package/dist/ui-studio/types/granularity/template.types.d.ts +179 -0
- package/dist/ui-studio/types/granularity-levels/atom.config.d.ts +151 -0
- package/dist/ui-studio/types/granularity-levels/component.config.d.ts +175 -0
- package/dist/ui-studio/types/granularity-levels/index.d.ts +47 -0
- package/dist/ui-studio/types/granularity-levels/layout.config.d.ts +278 -0
- package/dist/ui-studio/types/granularity-levels/page.config.d.ts +210 -0
- package/dist/ui-studio/types/granularity-levels/section.config.d.ts +188 -0
- package/dist/ui-studio/types/granularity-levels/template.config.d.ts +340 -0
- package/dist/ui-studio/types.d.ts +323 -0
- package/dist/utils/CodeUtils.d.ts +103 -0
- package/dist/utils/GenerateComponentValidator.d.ts +35 -0
- package/dist/utils/Logger.d.ts +101 -0
- package/dist/utils/StringUtils.d.ts +120 -0
- package/dist/utils/ValidationUtils.d.ts +71 -0
- package/dist/utils/errors/BaseError.d.ts +23 -0
- package/dist/utils/errors/GenerationError.d.ts +14 -0
- package/dist/utils/errors/TemplateNotFoundError.d.ts +13 -0
- package/dist/utils/errors/ValidationError.d.ts +13 -0
- package/dist/utils/errors/index.d.ts +12 -0
- package/dist/utils/factor-resolver.d.ts +294 -0
- package/dist/utils/granularity-helpers.d.ts +359 -0
- package/dist/utils/index.d.ts +20 -0
- package/dist/utils/performance.d.ts +26 -0
- package/dist/utils/stringify.d.ts +28 -0
- package/dist/validators/component-validator.d.ts +86 -0
- package/dist/validators/design-system-validator.d.ts +95 -0
- package/dist/validators/factor-validator.d.ts +101 -0
- package/dist/validators/index.d.ts +263 -0
- package/dist/validators/section-validator.d.ts +120 -0
- package/dist/validators/slot-validator.d.ts +161 -0
- package/dist/validators/tier-validator.d.ts +102 -0
- package/package.json +67 -0
- package/tests/16-factor-integration.test.d.ts +14 -0
- package/tests/16-factor-visual.test.d.ts +14 -0
- package/tests/5-level-integration.test.d.ts +14 -0
- package/tests/CodeUtils.test.d.ts +7 -0
- package/tests/DesignSystems.test.d.ts +7 -0
- package/tests/GenerateComponentValidator.test.d.ts +7 -0
- package/tests/Logger.test.d.ts +7 -0
- package/tests/StringUtils.test.d.ts +7 -0
- package/tests/StyleGenerator.test.d.ts +13 -0
- package/tests/Tiers.test.d.ts +7 -0
- package/tests/TokenRegistry.test.d.ts +14 -0
- package/tests/TokenStyleResolver.test.d.ts +13 -0
- package/tests/ValidationUtils.test.d.ts +7 -0
- package/tests/_pending_fix/Accordion.test.d.ts +13 -0
- package/tests/_pending_fix/Alert.test.d.ts +13 -0
- package/tests/_pending_fix/AlertDialog.test.d.ts +13 -0
- package/tests/_pending_fix/AspectRatio.test.d.ts +13 -0
- package/tests/_pending_fix/Autocomplete.test.d.ts +13 -0
- package/tests/_pending_fix/Avatar.test.d.ts +13 -0
- package/tests/_pending_fix/Badge.test.d.ts +13 -0
- package/tests/_pending_fix/Banner.test.d.ts +13 -0
- package/tests/_pending_fix/Box.test.d.ts +13 -0
- package/tests/_pending_fix/Breadcrumb.test.d.ts +13 -0
- package/tests/_pending_fix/Callout.test.d.ts +13 -0
- package/tests/_pending_fix/Card.test.d.ts +13 -0
- package/tests/_pending_fix/Center.test.d.ts +13 -0
- package/tests/_pending_fix/Checkbox.test.d.ts +13 -0
- package/tests/_pending_fix/Chip.test.d.ts +13 -0
- package/tests/_pending_fix/ColorPicker.test.d.ts +13 -0
- package/tests/_pending_fix/Combobox.test.d.ts +13 -0
- package/tests/_pending_fix/CommandPalette.test.d.ts +13 -0
- package/tests/_pending_fix/ConfirmationModal.test.d.ts +13 -0
- package/tests/_pending_fix/Container.test.d.ts +13 -0
- package/tests/_pending_fix/DataTable.test.d.ts +13 -0
- package/tests/_pending_fix/DatePicker.test.d.ts +13 -0
- package/tests/_pending_fix/DateRangePicker.test.d.ts +13 -0
- package/tests/_pending_fix/DateTimePicker.test.d.ts +13 -0
- package/tests/_pending_fix/Divider.test.d.ts +13 -0
- package/tests/_pending_fix/Drawer.test.d.ts +13 -0
- package/tests/_pending_fix/Dropdown.test.d.ts +13 -0
- package/tests/_pending_fix/EmptyState.test.d.ts +13 -0
- package/tests/_pending_fix/ErrorState.test.d.ts +13 -0
- package/tests/_pending_fix/FileDropzone.test.d.ts +13 -0
- package/tests/_pending_fix/FileUpload.test.d.ts +13 -0
- package/tests/_pending_fix/Flex.test.d.ts +13 -0
- package/tests/_pending_fix/Grid.test.d.ts +13 -0
- package/tests/_pending_fix/GridItem.test.d.ts +13 -0
- package/tests/_pending_fix/HStack.test.d.ts +13 -0
- package/tests/_pending_fix/Input.test.d.ts +13 -0
- package/tests/_pending_fix/InputCurrency.test.d.ts +13 -0
- package/tests/_pending_fix/InputGroup.test.d.ts +13 -0
- package/tests/_pending_fix/InputOTP.test.d.ts +13 -0
- package/tests/_pending_fix/InputPassword.test.d.ts +13 -0
- package/tests/_pending_fix/InputPhone.test.d.ts +13 -0
- package/tests/_pending_fix/InputSearch.test.d.ts +13 -0
- package/tests/_pending_fix/Link.test.d.ts +13 -0
- package/tests/_pending_fix/List.test.d.ts +13 -0
- package/tests/_pending_fix/LoadingOverlay.test.d.ts +13 -0
- package/tests/_pending_fix/Menu.test.d.ts +13 -0
- package/tests/_pending_fix/Modal.test.d.ts +13 -0
- package/tests/_pending_fix/MultiSelect.test.d.ts +13 -0
- package/tests/_pending_fix/NavGroup.test.d.ts +13 -0
- package/tests/_pending_fix/NavItem.test.d.ts +13 -0
- package/tests/_pending_fix/NavLink.test.d.ts +13 -0
- package/tests/_pending_fix/Navbar.test.d.ts +13 -0
- package/tests/_pending_fix/Notification.test.d.ts +13 -0
- package/tests/_pending_fix/NotificationBadge.test.d.ts +13 -0
- package/tests/_pending_fix/NumberInput.test.d.ts +13 -0
- package/tests/_pending_fix/Pagination.test.d.ts +13 -0
- package/tests/_pending_fix/Popover.test.d.ts +13 -0
- package/tests/_pending_fix/Progress.test.d.ts +13 -0
- package/tests/_pending_fix/ProgressCircle.test.d.ts +13 -0
- package/tests/_pending_fix/ProgressSteps.test.d.ts +13 -0
- package/tests/_pending_fix/Radio.test.d.ts +13 -0
- package/tests/_pending_fix/RangeSlider.test.d.ts +13 -0
- package/tests/_pending_fix/ResizablePanel.test.d.ts +13 -0
- package/tests/_pending_fix/ResultState.test.d.ts +13 -0
- package/tests/_pending_fix/ScrollArea.test.d.ts +13 -0
- package/tests/_pending_fix/Select.test.d.ts +14 -0
- package/tests/_pending_fix/Sheet.test.d.ts +13 -0
- package/tests/_pending_fix/Sidebar.test.d.ts +13 -0
- package/tests/_pending_fix/SimpleGrid.test.d.ts +13 -0
- package/tests/_pending_fix/Skeleton.test.d.ts +13 -0
- package/tests/_pending_fix/Slider.test.d.ts +13 -0
- package/tests/_pending_fix/Spacer.test.d.ts +13 -0
- package/tests/_pending_fix/Spinner.test.d.ts +13 -0
- package/tests/_pending_fix/Stack.test.d.ts +13 -0
- package/tests/_pending_fix/Stat.test.d.ts +13 -0
- package/tests/_pending_fix/Stepper.test.d.ts +14 -0
- package/tests/_pending_fix/Switch.test.d.ts +13 -0
- package/tests/_pending_fix/Table.test.d.ts +13 -0
- package/tests/_pending_fix/Tabs.test.d.ts +13 -0
- package/tests/_pending_fix/Textarea.test.d.ts +13 -0
- package/tests/_pending_fix/Timeline.test.d.ts +13 -0
- package/tests/_pending_fix/Toast.test.d.ts +14 -0
- package/tests/_pending_fix/Tooltip.test.d.ts +14 -0
- package/tests/_pending_fix/VStack.test.d.ts +13 -0
- package/tests/alert.test.d.ts +13 -0
- package/tests/badge.test.d.ts +13 -0
- package/tests/benchmarks/factor-resolution.bench.d.ts +41 -0
- package/tests/button.test.d.ts +16 -0
- package/tests/card.test.d.ts +19 -0
- package/tests/checkbox.test.d.ts +13 -0
- package/tests/component-16-factor-types.test.d.ts +13 -0
- package/tests/component-5level-integration.test.d.ts +14 -0
- package/tests/component-registry-ui.test.d.ts +13 -0
- package/tests/e2e/16-factor-visual.test.d.ts +14 -0
- package/tests/edge-cases.test.d.ts +14 -0
- package/tests/factor-17-24-integration.test.d.ts +14 -0
- package/tests/factor-17-24-performance.test.d.ts +14 -0
- package/tests/factor-validators.test.d.ts +13 -0
- package/tests/factors-1-6.test.d.ts +13 -0
- package/tests/factors-12-16.test.d.ts +13 -0
- package/tests/factors-17-24.test.d.ts +21 -0
- package/tests/factors-all.test.d.ts +13 -0
- package/tests/factors-registry.test.d.ts +11 -0
- package/tests/factors.test.d.ts +13 -0
- package/tests/granularity-types.test.d.ts +18 -0
- package/tests/groups.test.d.ts +14 -0
- package/tests/input.test.d.ts +16 -0
- package/tests/intents.test.d.ts +14 -0
- package/tests/memory-leak.test.d.ts +14 -0
- package/tests/modal.test.d.ts +19 -0
- package/tests/presets.test.d.ts +14 -0
- package/tests/radio.test.d.ts +13 -0
- package/tests/resolution-intents.test.d.ts +13 -0
- package/tests/resolution-presets.test.d.ts +13 -0
- package/tests/resolveProps.test.d.ts +14 -0
- package/tests/section-integration.test.d.ts +16 -0
- package/tests/section-types.test.d.ts +11 -0
- package/tests/setup.d.ts +13 -0
- package/tests/shorthands.test.d.ts +14 -0
- package/tests/switch.test.d.ts +13 -0
- package/tests/tabs.test.d.ts +13 -0
- package/tests/tiers-registry.test.d.ts +11 -0
- package/tests/useComponentStyles.test.d.ts +11 -0
- package/tests/useFactors.test.d.ts +13 -0
- package/tests/validators-invalid-input.test.d.ts +13 -0
- package/tsup.config.d.ts +11 -0
- package/vitest.config.d.ts +3 -0
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Registry Constants
|
|
3
|
+
* @packageDocumentation
|
|
4
|
+
* @module presets/registry-constants
|
|
5
|
+
* @since 4.0.0
|
|
6
|
+
*
|
|
7
|
+
* Powered by Nikkory
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* Section category constants
|
|
11
|
+
*/
|
|
12
|
+
export declare const SECTION_CATEGORIES: readonly ["hero", "features", "testimonials", "pricing", "cta", "faq", "team", "contact", "gallery", "stats"];
|
|
13
|
+
/**
|
|
14
|
+
* Page category constants
|
|
15
|
+
*/
|
|
16
|
+
export declare const PAGE_CATEGORIES: readonly ["marketing", "e-commerce", "saas", "portfolio", "blog", "docs", "app"];
|
|
17
|
+
/**
|
|
18
|
+
* Layout category constants
|
|
19
|
+
*/
|
|
20
|
+
export declare const LAYOUT_CATEGORIES: readonly ["standard", "dashboard", "landing", "app", "blog"];
|
|
21
|
+
/**
|
|
22
|
+
* Template category constants
|
|
23
|
+
*/
|
|
24
|
+
export declare const TEMPLATE_CATEGORIES: readonly ["saas", "e-commerce", "portfolio", "blog", "startup", "agency"];
|
|
25
|
+
/**
|
|
26
|
+
* Page type constants
|
|
27
|
+
*/
|
|
28
|
+
export declare const PAGE_TYPES: readonly ["landing", "product", "checkout", "about", "contact", "blog-post"];
|
|
29
|
+
/**
|
|
30
|
+
* Section height constants
|
|
31
|
+
*/
|
|
32
|
+
export declare const SECTION_HEIGHTS: readonly ["compact", "standard", "tall", "fullscreen"];
|
|
33
|
+
/**
|
|
34
|
+
* Section alignment constants
|
|
35
|
+
*/
|
|
36
|
+
export declare const SECTION_ALIGNMENTS: readonly ["left", "center", "right"];
|
|
37
|
+
/**
|
|
38
|
+
* Section layout constants
|
|
39
|
+
*/
|
|
40
|
+
export declare const SECTION_LAYOUTS: readonly ["single-column", "two-column", "three-column", "grid"];
|
|
41
|
+
/**
|
|
42
|
+
* Layout structure constants
|
|
43
|
+
*/
|
|
44
|
+
export declare const LAYOUT_STRUCTURES: readonly ["standard", "sidebar", "dashboard", "split"];
|
|
45
|
+
/**
|
|
46
|
+
* Layout responsive behavior constants
|
|
47
|
+
*/
|
|
48
|
+
export declare const LAYOUT_RESPONSIVE_TYPES: readonly ["fluid", "fixed", "hybrid"];
|
|
49
|
+
/**
|
|
50
|
+
* Header type constants
|
|
51
|
+
*/
|
|
52
|
+
export declare const HEADER_TYPES: readonly ["fixed", "sticky", "static", "none"];
|
|
53
|
+
/**
|
|
54
|
+
* Footer type constants
|
|
55
|
+
*/
|
|
56
|
+
export declare const FOOTER_TYPES: readonly ["standard", "minimal", "none"];
|
|
57
|
+
/**
|
|
58
|
+
* SEO importance level constants
|
|
59
|
+
*/
|
|
60
|
+
export declare const SEO_LEVELS: readonly ["critical", "important", "standard"];
|
|
61
|
+
/**
|
|
62
|
+
* Template complexity level constants
|
|
63
|
+
*/
|
|
64
|
+
export declare const COMPLEXITY_LEVELS: readonly ["starter", "intermediate", "advanced"];
|
|
65
|
+
/**
|
|
66
|
+
* Registry status constants
|
|
67
|
+
*/
|
|
68
|
+
export declare const REGISTRY_STATUSES: readonly ["stable", "beta", "planned"];
|
|
69
|
+
//# sourceMappingURL=registry.constants.d.ts.map
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Registry Types - SINGLE SOURCE OF TRUTH
|
|
3
|
+
* @packageDocumentation
|
|
4
|
+
* @module presets/registry-types
|
|
5
|
+
* @since 4.0.0
|
|
6
|
+
*
|
|
7
|
+
* Powered by Nikkory
|
|
8
|
+
*/
|
|
9
|
+
import type { DesignSystem, Tier } from '../types';
|
|
10
|
+
import type { LayoutType, SpacingLevel, SlotConfig, StyleOverrides } from '../../types/section.types';
|
|
11
|
+
/**
|
|
12
|
+
* Base definition interface that ALL registry items extend from
|
|
13
|
+
* Source: Derived from existing component-registry.ts pattern
|
|
14
|
+
*/
|
|
15
|
+
export interface BaseRegistryDefinition {
|
|
16
|
+
/** Unique identifier (kebab-case) */
|
|
17
|
+
readonly id: string;
|
|
18
|
+
/** Display name (human-readable) */
|
|
19
|
+
readonly name: string;
|
|
20
|
+
/** Current status */
|
|
21
|
+
readonly status: 'stable' | 'beta' | 'planned';
|
|
22
|
+
/** Description for documentation */
|
|
23
|
+
readonly description: string;
|
|
24
|
+
/** Search keywords */
|
|
25
|
+
readonly keywords: readonly string[];
|
|
26
|
+
/** Implementation phase */
|
|
27
|
+
readonly phase: string;
|
|
28
|
+
/** Lucide icon name for UI */
|
|
29
|
+
readonly icon: string;
|
|
30
|
+
/** Emoji for visual representation */
|
|
31
|
+
readonly emoji: string;
|
|
32
|
+
/** Available design systems */
|
|
33
|
+
readonly designSystems: readonly DesignSystem[];
|
|
34
|
+
/** Available tiers */
|
|
35
|
+
readonly tiers: readonly Tier[];
|
|
36
|
+
/** Show NEW badge in UI */
|
|
37
|
+
readonly isNew?: boolean;
|
|
38
|
+
/** Show POPULAR badge in UI */
|
|
39
|
+
readonly isPopular?: boolean;
|
|
40
|
+
/** Additional tags for filtering */
|
|
41
|
+
readonly tags: readonly string[];
|
|
42
|
+
}
|
|
43
|
+
import type { SectionCategory } from '../../types/section.types';
|
|
44
|
+
export type { SectionCategory };
|
|
45
|
+
/**
|
|
46
|
+
* Page category types
|
|
47
|
+
*/
|
|
48
|
+
export type PageCategory = 'marketing' | 'e-commerce' | 'saas' | 'portfolio' | 'blog' | 'docs' | 'app';
|
|
49
|
+
/**
|
|
50
|
+
* Layout category types
|
|
51
|
+
*/
|
|
52
|
+
export type LayoutCategory = 'standard' | 'dashboard' | 'landing' | 'app' | 'blog';
|
|
53
|
+
/**
|
|
54
|
+
* Template category types
|
|
55
|
+
*/
|
|
56
|
+
export type TemplateCategory = 'saas' | 'e-commerce' | 'portfolio' | 'blog' | 'startup' | 'agency';
|
|
57
|
+
/**
|
|
58
|
+
* Page type identifiers
|
|
59
|
+
*/
|
|
60
|
+
export type PageType = 'landing' | 'product' | 'checkout' | 'about' | 'contact' | 'blog-post';
|
|
61
|
+
/**
|
|
62
|
+
* Section registry definition
|
|
63
|
+
* Sections are page subdivisions (hero, features, pricing, etc.)
|
|
64
|
+
*
|
|
65
|
+
* @remarks
|
|
66
|
+
* Includes all 14 SectionConfig fields as required by Section Architecture:
|
|
67
|
+
* - Section-Level (6): sectionId(id), sectionType(category), title, subtitle, designSystem, tier
|
|
68
|
+
* - Layout (3): layout, columns, spacing
|
|
69
|
+
* - Generation (2): slots, itemCount
|
|
70
|
+
* - Component-Specific (3): showCta, showMedia, styleOverrides
|
|
71
|
+
*
|
|
72
|
+
* Field Name Mapping (Registry → SectionConfig):
|
|
73
|
+
* - `id` → `sectionId` (BaseRegistryDefinition.id maps to SectionConfig.sectionId)
|
|
74
|
+
* - `category` → `sectionType` (use category for filtering, sectionType in runtime)
|
|
75
|
+
* - `sectionLayout` → `layout` (sectionLayout for UI display, layout for generation)
|
|
76
|
+
*
|
|
77
|
+
* Use `toSectionConfig()` from `converters/section-converter` to convert
|
|
78
|
+
* a RegistrySectionDefinition to a SectionConfig for runtime use.
|
|
79
|
+
*
|
|
80
|
+
* @see {@link ../converters/section-converter#toSectionConfig}
|
|
81
|
+
*/
|
|
82
|
+
export interface RegistrySectionDefinition extends BaseRegistryDefinition {
|
|
83
|
+
/** Section category (maps to sectionType in SectionConfig) */
|
|
84
|
+
readonly category: SectionCategory;
|
|
85
|
+
/** Section title for display */
|
|
86
|
+
readonly title: string;
|
|
87
|
+
/** Section subtitle/description for display */
|
|
88
|
+
readonly subtitle?: string;
|
|
89
|
+
/** Default design system to use when generating */
|
|
90
|
+
readonly defaultDesignSystem: DesignSystem;
|
|
91
|
+
/** Default tier to use when generating */
|
|
92
|
+
readonly defaultTier: Tier;
|
|
93
|
+
/** Layout type for generation */
|
|
94
|
+
readonly sectionLayout: LayoutType;
|
|
95
|
+
/** Number of columns for grid layout */
|
|
96
|
+
readonly columns: 1 | 2 | 3 | 4 | 6;
|
|
97
|
+
/** Spacing between elements */
|
|
98
|
+
readonly spacing: SpacingLevel;
|
|
99
|
+
/** Optional slots configuration */
|
|
100
|
+
readonly slots?: readonly SlotConfig[];
|
|
101
|
+
/** Number of items to generate */
|
|
102
|
+
readonly itemCount?: number;
|
|
103
|
+
/** Show CTA button */
|
|
104
|
+
readonly showCta?: boolean;
|
|
105
|
+
/** Show images/media */
|
|
106
|
+
readonly showMedia?: boolean;
|
|
107
|
+
/** Custom styling overrides */
|
|
108
|
+
readonly styleOverrides?: StyleOverrides;
|
|
109
|
+
/** Typical height for UI preview */
|
|
110
|
+
readonly height: 'compact' | 'standard' | 'tall' | 'fullscreen';
|
|
111
|
+
/** Content alignment for UI display */
|
|
112
|
+
readonly alignment: 'left' | 'center' | 'right';
|
|
113
|
+
/** Layout pattern for UI display (legacy, use sectionLayout for generation) */
|
|
114
|
+
readonly layout: 'single-column' | 'two-column' | 'three-column' | 'grid';
|
|
115
|
+
/** Dependencies on other sections */
|
|
116
|
+
readonly dependencies: readonly string[];
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* Page registry definition
|
|
120
|
+
* Pages are complete layouts (landing, product, checkout, etc.)
|
|
121
|
+
*/
|
|
122
|
+
export interface RegistryPageDefinition extends BaseRegistryDefinition {
|
|
123
|
+
/** Page category */
|
|
124
|
+
readonly category: PageCategory;
|
|
125
|
+
/** Required sections */
|
|
126
|
+
readonly sections: readonly string[];
|
|
127
|
+
/** Page type (marketing, e-commerce, app, etc.) */
|
|
128
|
+
readonly pageType: PageType;
|
|
129
|
+
/** SEO importance level */
|
|
130
|
+
readonly seo: 'critical' | 'important' | 'standard';
|
|
131
|
+
/** Conversion tracking */
|
|
132
|
+
readonly hasConversion: boolean;
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* Layout registry definition
|
|
136
|
+
* Layouts are structural patterns (header+content+footer, sidebar, etc.)
|
|
137
|
+
*/
|
|
138
|
+
export interface RegistryLayoutDefinition extends BaseRegistryDefinition {
|
|
139
|
+
/** Layout category */
|
|
140
|
+
readonly category: LayoutCategory;
|
|
141
|
+
/** Layout structure */
|
|
142
|
+
readonly structure: 'standard' | 'sidebar' | 'dashboard' | 'split';
|
|
143
|
+
/** Responsive behavior */
|
|
144
|
+
readonly responsive: 'fluid' | 'fixed' | 'hybrid';
|
|
145
|
+
/** Header type */
|
|
146
|
+
readonly header: 'fixed' | 'sticky' | 'static' | 'none';
|
|
147
|
+
/** Footer type */
|
|
148
|
+
readonly footer: 'standard' | 'minimal' | 'none';
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* Template registry definition
|
|
152
|
+
* Templates are complete multi-page applications
|
|
153
|
+
*/
|
|
154
|
+
export interface RegistryTemplateDefinition extends BaseRegistryDefinition {
|
|
155
|
+
/** Template category */
|
|
156
|
+
readonly category: TemplateCategory;
|
|
157
|
+
/** Included pages */
|
|
158
|
+
readonly pages: readonly string[];
|
|
159
|
+
/** Technology stack */
|
|
160
|
+
readonly stack: readonly string[];
|
|
161
|
+
/** Target industry */
|
|
162
|
+
readonly industry: readonly string[];
|
|
163
|
+
/** Complexity level */
|
|
164
|
+
readonly complexity: 'starter' | 'intermediate' | 'advanced';
|
|
165
|
+
}
|
|
166
|
+
//# sourceMappingURL=registry.types.d.ts.map
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Section Defaults - Default SectionFactors per Design System
|
|
3
|
+
*
|
|
4
|
+
* @packageDocumentation
|
|
5
|
+
* @module presets/section-defaults
|
|
6
|
+
* @since 4.0.0
|
|
7
|
+
*
|
|
8
|
+
* Powered by Nikkory
|
|
9
|
+
*/
|
|
10
|
+
import type { DesignSystem } from '../types';
|
|
11
|
+
import type { SectionFactors } from '../../types/section.types';
|
|
12
|
+
/**
|
|
13
|
+
* Material Design 3 default section factors
|
|
14
|
+
*
|
|
15
|
+
* @remarks
|
|
16
|
+
* Based on Google's Material Design 3 specifications.
|
|
17
|
+
* Uses rounded corners, elevated surfaces, and dynamic color.
|
|
18
|
+
*/
|
|
19
|
+
export declare const MATERIAL_DESIGN_DEFAULTS: SectionFactors;
|
|
20
|
+
/**
|
|
21
|
+
* Apple Human Interface Guidelines default section factors
|
|
22
|
+
*
|
|
23
|
+
* @remarks
|
|
24
|
+
* Based on Apple's HIG specifications.
|
|
25
|
+
* Uses system fonts, subtle shadows, and native feel.
|
|
26
|
+
*/
|
|
27
|
+
export declare const IOS_HIG_DEFAULTS: SectionFactors;
|
|
28
|
+
/**
|
|
29
|
+
* Glassmorphism default section factors
|
|
30
|
+
*
|
|
31
|
+
* @remarks
|
|
32
|
+
* Features frosted glass effects, transparency, and blur.
|
|
33
|
+
* Requires backdrop-filter support.
|
|
34
|
+
*/
|
|
35
|
+
export declare const GLASSMORPHISM_DEFAULTS: SectionFactors;
|
|
36
|
+
/**
|
|
37
|
+
* Neumorphism (Soft UI) default section factors
|
|
38
|
+
*
|
|
39
|
+
* @remarks
|
|
40
|
+
* Features soft shadows, subtle depth, and monochromatic palettes.
|
|
41
|
+
* Uses inset and outset shadows for depth effect.
|
|
42
|
+
*/
|
|
43
|
+
export declare const NEUMORPHISM_DEFAULTS: SectionFactors;
|
|
44
|
+
/**
|
|
45
|
+
* Brutalism default section factors
|
|
46
|
+
*
|
|
47
|
+
* @remarks
|
|
48
|
+
* Features bold colors, sharp edges, and raw aesthetics.
|
|
49
|
+
* Uses strong contrasts and unconventional layouts.
|
|
50
|
+
*/
|
|
51
|
+
export declare const BRUTALISM_DEFAULTS: SectionFactors;
|
|
52
|
+
/**
|
|
53
|
+
* Minimalism default section factors
|
|
54
|
+
*
|
|
55
|
+
* @remarks
|
|
56
|
+
* Features clean lines, ample whitespace, and essential elements only.
|
|
57
|
+
* Focuses on typography and content hierarchy.
|
|
58
|
+
*/
|
|
59
|
+
export declare const MINIMALISM_DEFAULTS: SectionFactors;
|
|
60
|
+
/**
|
|
61
|
+
* Cyberpunk default section factors
|
|
62
|
+
*
|
|
63
|
+
* @remarks
|
|
64
|
+
* Features neon colors, dark backgrounds, and futuristic aesthetics.
|
|
65
|
+
* Uses glitch effects and high-tech visual language.
|
|
66
|
+
*/
|
|
67
|
+
export declare const CYBERPUNK_DEFAULTS: SectionFactors;
|
|
68
|
+
/**
|
|
69
|
+
* Flat Design default section factors
|
|
70
|
+
*
|
|
71
|
+
* @remarks
|
|
72
|
+
* Features flat colors, no gradients, and 2D aesthetics.
|
|
73
|
+
* Emphasizes bold colors and clean shapes.
|
|
74
|
+
*/
|
|
75
|
+
export declare const FLAT_DESIGN_DEFAULTS: SectionFactors;
|
|
76
|
+
/**
|
|
77
|
+
* Retro/Vintage default section factors
|
|
78
|
+
*
|
|
79
|
+
* @remarks
|
|
80
|
+
* Features muted colors, vintage typography, and nostalgic aesthetics.
|
|
81
|
+
* Uses textures and ornamental elements.
|
|
82
|
+
*/
|
|
83
|
+
export declare const RETRO_VINTAGE_DEFAULTS: SectionFactors;
|
|
84
|
+
/**
|
|
85
|
+
* Microsoft Fluent Design default section factors
|
|
86
|
+
*
|
|
87
|
+
* @remarks
|
|
88
|
+
* Based on Microsoft's Fluent Design System.
|
|
89
|
+
* Features depth, motion, and material-based visuals.
|
|
90
|
+
*/
|
|
91
|
+
export declare const FLUENT_DESIGN_DEFAULTS: SectionFactors;
|
|
92
|
+
/**
|
|
93
|
+
* IBM Carbon Design default section factors
|
|
94
|
+
*
|
|
95
|
+
* @remarks
|
|
96
|
+
* Based on IBM's Carbon Design System.
|
|
97
|
+
* Features structured layouts, technical aesthetics, and accessibility focus.
|
|
98
|
+
*/
|
|
99
|
+
export declare const CARBON_DESIGN_DEFAULTS: SectionFactors;
|
|
100
|
+
/**
|
|
101
|
+
* Ant Design default section factors
|
|
102
|
+
*
|
|
103
|
+
* @remarks
|
|
104
|
+
* Based on Ant Design System by Alibaba.
|
|
105
|
+
* Features enterprise-focused aesthetics and comprehensive components.
|
|
106
|
+
*/
|
|
107
|
+
export declare const ANT_DESIGN_DEFAULTS: SectionFactors;
|
|
108
|
+
/**
|
|
109
|
+
* Map of design system to default section factors
|
|
110
|
+
*
|
|
111
|
+
* @remarks
|
|
112
|
+
* Use this to get defaults for any supported design system.
|
|
113
|
+
*
|
|
114
|
+
* @example
|
|
115
|
+
* ```typescript
|
|
116
|
+
* const materialDefaults = DESIGN_SYSTEM_DEFAULTS['material-design'];
|
|
117
|
+
* const iosDefaults = DESIGN_SYSTEM_DEFAULTS['ios-hig'];
|
|
118
|
+
* ```
|
|
119
|
+
*/
|
|
120
|
+
export declare const DESIGN_SYSTEM_DEFAULTS: Readonly<Record<DesignSystem, SectionFactors>>;
|
|
121
|
+
/**
|
|
122
|
+
* Get default section factors for a design system
|
|
123
|
+
*
|
|
124
|
+
* @param designSystem - The design system to get defaults for
|
|
125
|
+
* @returns Default SectionFactors for the specified design system
|
|
126
|
+
*
|
|
127
|
+
* @example
|
|
128
|
+
* ```typescript
|
|
129
|
+
* const factors = getDefaultFactors('material-design');
|
|
130
|
+
* console.log(factors.colorPrimary); // '#6750a4'
|
|
131
|
+
* ```
|
|
132
|
+
*/
|
|
133
|
+
export declare function getDefaultFactors(designSystem: DesignSystem): SectionFactors;
|
|
134
|
+
/**
|
|
135
|
+
* Merge custom factors with design system defaults
|
|
136
|
+
*
|
|
137
|
+
* @param designSystem - The base design system
|
|
138
|
+
* @param overrides - Partial factors to override defaults
|
|
139
|
+
* @returns Merged SectionFactors
|
|
140
|
+
*
|
|
141
|
+
* @example
|
|
142
|
+
* ```typescript
|
|
143
|
+
* const customFactors = mergeWithDefaults('material-design', {
|
|
144
|
+
* colorPrimary: '#ff0000',
|
|
145
|
+
* elevation: 'lg',
|
|
146
|
+
* });
|
|
147
|
+
* ```
|
|
148
|
+
*/
|
|
149
|
+
export declare function mergeWithDefaults(designSystem: DesignSystem, overrides: Partial<SectionFactors>): SectionFactors;
|
|
150
|
+
/**
|
|
151
|
+
* Get all available design systems with defaults
|
|
152
|
+
*
|
|
153
|
+
* @returns Array of design system IDs
|
|
154
|
+
*
|
|
155
|
+
* @example
|
|
156
|
+
* ```typescript
|
|
157
|
+
* const systems = getAvailableDesignSystems();
|
|
158
|
+
* // ['material-design', 'ios-hig', 'glassmorphism', ...]
|
|
159
|
+
* ```
|
|
160
|
+
*/
|
|
161
|
+
export declare function getAvailableDesignSystems(): readonly DesignSystem[];
|
|
162
|
+
/**
|
|
163
|
+
* Check if a design system is supported
|
|
164
|
+
*
|
|
165
|
+
* @param designSystem - Design system ID to check
|
|
166
|
+
* @returns True if the design system has defaults defined
|
|
167
|
+
*
|
|
168
|
+
* @example
|
|
169
|
+
* ```typescript
|
|
170
|
+
* isDesignSystemSupported('material-design'); // true
|
|
171
|
+
* isDesignSystemSupported('unknown'); // false
|
|
172
|
+
* ```
|
|
173
|
+
*/
|
|
174
|
+
export declare function isDesignSystemSupported(designSystem: string): designSystem is DesignSystem;
|
|
175
|
+
//# sourceMappingURL=section-defaults.d.ts.map
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Section Registry - 50 Section Definitions
|
|
3
|
+
* Optimized using factory pattern to reduce duplication
|
|
4
|
+
*
|
|
5
|
+
* @packageDocumentation
|
|
6
|
+
* @module presets/section-registry
|
|
7
|
+
* @since 4.0.0
|
|
8
|
+
*
|
|
9
|
+
* @remarks
|
|
10
|
+
* Uses `withSectionDefaultsArray()` factory to auto-generate:
|
|
11
|
+
* - designSystems, tiers (from category defaults)
|
|
12
|
+
* - icon, emoji (from category mappings)
|
|
13
|
+
* - height, alignment (from category defaults)
|
|
14
|
+
* - layout display pattern (derived from sectionLayout + columns)
|
|
15
|
+
*
|
|
16
|
+
* Powered by Nikkory
|
|
17
|
+
*/
|
|
18
|
+
import type { RegistrySectionDefinition } from './registry.types';
|
|
19
|
+
/**
|
|
20
|
+
* Hero sections with full definitions (10)
|
|
21
|
+
*/
|
|
22
|
+
declare const HERO_SECTIONS: readonly RegistrySectionDefinition[];
|
|
23
|
+
/**
|
|
24
|
+
* Features sections with full definitions (8)
|
|
25
|
+
*/
|
|
26
|
+
declare const FEATURES_SECTIONS: readonly RegistrySectionDefinition[];
|
|
27
|
+
/**
|
|
28
|
+
* Testimonials sections with full definitions (6)
|
|
29
|
+
*/
|
|
30
|
+
declare const TESTIMONIALS_SECTIONS: readonly RegistrySectionDefinition[];
|
|
31
|
+
/**
|
|
32
|
+
* Pricing sections with full definitions (5)
|
|
33
|
+
*/
|
|
34
|
+
declare const PRICING_SECTIONS: readonly RegistrySectionDefinition[];
|
|
35
|
+
/**
|
|
36
|
+
* CTA sections with full definitions (4)
|
|
37
|
+
*/
|
|
38
|
+
declare const CTA_SECTIONS: readonly RegistrySectionDefinition[];
|
|
39
|
+
/**
|
|
40
|
+
* FAQ sections with full definitions (3)
|
|
41
|
+
*/
|
|
42
|
+
declare const FAQ_SECTIONS: readonly RegistrySectionDefinition[];
|
|
43
|
+
/**
|
|
44
|
+
* Team sections with full definitions (3)
|
|
45
|
+
*/
|
|
46
|
+
declare const TEAM_SECTIONS: readonly RegistrySectionDefinition[];
|
|
47
|
+
/**
|
|
48
|
+
* Contact sections with full definitions (3)
|
|
49
|
+
*/
|
|
50
|
+
declare const CONTACT_SECTIONS: readonly RegistrySectionDefinition[];
|
|
51
|
+
/**
|
|
52
|
+
* Gallery sections with full definitions (3)
|
|
53
|
+
*/
|
|
54
|
+
declare const GALLERY_SECTIONS: readonly RegistrySectionDefinition[];
|
|
55
|
+
/**
|
|
56
|
+
* Stats sections with full definitions (5)
|
|
57
|
+
*/
|
|
58
|
+
declare const STATS_SECTIONS: readonly RegistrySectionDefinition[];
|
|
59
|
+
/**
|
|
60
|
+
* All section definitions (50 total)
|
|
61
|
+
*
|
|
62
|
+
* @remarks
|
|
63
|
+
* Combined from all 10 categories:
|
|
64
|
+
* - Hero: 10
|
|
65
|
+
* - Features: 8
|
|
66
|
+
* - Testimonials: 6
|
|
67
|
+
* - Pricing: 5
|
|
68
|
+
* - CTA: 4
|
|
69
|
+
* - FAQ: 3
|
|
70
|
+
* - Team: 3
|
|
71
|
+
* - Contact: 3
|
|
72
|
+
* - Gallery: 3
|
|
73
|
+
* - Stats: 5
|
|
74
|
+
*
|
|
75
|
+
* Total: 50 sections
|
|
76
|
+
*
|
|
77
|
+
* Each definition includes all 14 SectionConfig fields (Section Architecture v4.0)
|
|
78
|
+
* auto-generated by the factory pattern.
|
|
79
|
+
*/
|
|
80
|
+
export declare const ALL_SECTIONS: readonly RegistrySectionDefinition[];
|
|
81
|
+
export { HERO_SECTIONS, FEATURES_SECTIONS, TESTIMONIALS_SECTIONS, PRICING_SECTIONS, CTA_SECTIONS, FAQ_SECTIONS, TEAM_SECTIONS, CONTACT_SECTIONS, GALLERY_SECTIONS, STATS_SECTIONS, };
|
|
82
|
+
export type { RegistrySectionDefinition };
|
|
83
|
+
//# sourceMappingURL=section-registry.d.ts.map
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Section Registry Defaults
|
|
3
|
+
* Default values per category for factory pattern
|
|
4
|
+
*
|
|
5
|
+
* @packageDocumentation
|
|
6
|
+
* @module presets/section-registry-defaults
|
|
7
|
+
* @since 4.1.0
|
|
8
|
+
*
|
|
9
|
+
* Powered by Nikkory
|
|
10
|
+
*/
|
|
11
|
+
import type { SectionCategory } from '../types';
|
|
12
|
+
import type { SectionCategoryDefaults } from './section-registry.types';
|
|
13
|
+
/**
|
|
14
|
+
* Icon mapping per category (Lucide icon names)
|
|
15
|
+
*
|
|
16
|
+
* @remarks
|
|
17
|
+
* These icons are used in the UI to visually identify section categories.
|
|
18
|
+
* All icons are from the Lucide icon library.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```typescript
|
|
22
|
+
* import { SECTION_CATEGORY_ICONS } from './section-registry.defaults';
|
|
23
|
+
* import { Rocket } from 'lucide-react';
|
|
24
|
+
*
|
|
25
|
+
* const iconName = SECTION_CATEGORY_ICONS['hero']; // 'Rocket'
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
export declare const SECTION_CATEGORY_ICONS: Record<SectionCategory, string>;
|
|
29
|
+
/**
|
|
30
|
+
* Emoji mapping per category
|
|
31
|
+
*
|
|
32
|
+
* @remarks
|
|
33
|
+
* These emojis are used for quick visual identification in UIs,
|
|
34
|
+
* documentation, and search results.
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```typescript
|
|
38
|
+
* import { SECTION_CATEGORY_EMOJIS } from './section-registry.defaults';
|
|
39
|
+
*
|
|
40
|
+
* const emoji = SECTION_CATEGORY_EMOJIS['hero']; // '🚀'
|
|
41
|
+
* console.log(`${emoji} Hero Section`); // '🚀 Hero Section'
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
export declare const SECTION_CATEGORY_EMOJIS: Record<SectionCategory, string>;
|
|
45
|
+
/**
|
|
46
|
+
* Default values per category
|
|
47
|
+
*
|
|
48
|
+
* @remarks
|
|
49
|
+
* These defaults are applied by `withSectionDefaults()` when creating
|
|
50
|
+
* full section definitions. Each category has optimized defaults based
|
|
51
|
+
* on typical use cases.
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* ```typescript
|
|
55
|
+
* import { SECTION_CATEGORY_DEFAULTS } from './section-registry.defaults';
|
|
56
|
+
*
|
|
57
|
+
* const heroDefaults = SECTION_CATEGORY_DEFAULTS['hero'];
|
|
58
|
+
* console.log(heroDefaults.height); // 'fullscreen'
|
|
59
|
+
* console.log(heroDefaults.showCta); // true
|
|
60
|
+
* ```
|
|
61
|
+
*/
|
|
62
|
+
export declare const SECTION_CATEGORY_DEFAULTS: Record<SectionCategory, SectionCategoryDefaults>;
|
|
63
|
+
/**
|
|
64
|
+
* Get defaults for a category
|
|
65
|
+
*
|
|
66
|
+
* @param category - Section category
|
|
67
|
+
* @returns Category defaults
|
|
68
|
+
*
|
|
69
|
+
* @example
|
|
70
|
+
* ```typescript
|
|
71
|
+
* const defaults = getCategoryDefaults('hero');
|
|
72
|
+
* console.log(defaults.height); // 'fullscreen'
|
|
73
|
+
* ```
|
|
74
|
+
*/
|
|
75
|
+
export declare function getCategoryDefaults(category: SectionCategory): SectionCategoryDefaults;
|
|
76
|
+
/**
|
|
77
|
+
* Get icon for a category
|
|
78
|
+
*
|
|
79
|
+
* @param category - Section category
|
|
80
|
+
* @returns Lucide icon name
|
|
81
|
+
*
|
|
82
|
+
* @example
|
|
83
|
+
* ```typescript
|
|
84
|
+
* const icon = getCategoryIcon('hero'); // 'Rocket'
|
|
85
|
+
* ```
|
|
86
|
+
*/
|
|
87
|
+
export declare function getCategoryIcon(category: SectionCategory): string;
|
|
88
|
+
/**
|
|
89
|
+
* Get emoji for a category
|
|
90
|
+
*
|
|
91
|
+
* @param category - Section category
|
|
92
|
+
* @returns Category emoji
|
|
93
|
+
*
|
|
94
|
+
* @example
|
|
95
|
+
* ```typescript
|
|
96
|
+
* const emoji = getCategoryEmoji('hero'); // '🚀'
|
|
97
|
+
* ```
|
|
98
|
+
*/
|
|
99
|
+
export declare function getCategoryEmoji(category: SectionCategory): string;
|
|
100
|
+
/**
|
|
101
|
+
* Get all section categories
|
|
102
|
+
*
|
|
103
|
+
* @returns Array of all section categories
|
|
104
|
+
*/
|
|
105
|
+
export declare function getAllSectionCategories(): readonly SectionCategory[];
|
|
106
|
+
//# sourceMappingURL=section-registry.defaults.d.ts.map
|