@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,80 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Groups Resolution - Basic Tier (Pattern A Wrapper)
|
|
3
|
+
*
|
|
4
|
+
* Simple wrapper around core group expansion.
|
|
5
|
+
* No validation - delegates directly to core.
|
|
6
|
+
* Used by basic tier components.
|
|
7
|
+
*
|
|
8
|
+
* @composition Basic = A wrapper (no validation)
|
|
9
|
+
*
|
|
10
|
+
* @packageDocumentation
|
|
11
|
+
* @module resolution/basic/groups-basic
|
|
12
|
+
* @since 3.0.0
|
|
13
|
+
*
|
|
14
|
+
* Powered by Nikkory
|
|
15
|
+
*/
|
|
16
|
+
import type { Factor24Config, VisualGroup, MotionGroup, LayoutGroup, ExperienceGroup, FactorGroups } from '../core/types-core';
|
|
17
|
+
/**
|
|
18
|
+
* Expand Visual Group to Factor24Config (basic tier).
|
|
19
|
+
* Simple wrapper - delegates to core.
|
|
20
|
+
*
|
|
21
|
+
* @param visual - The visual group configuration
|
|
22
|
+
* @returns Partial Factor24Config with visual-related factors
|
|
23
|
+
* @since 3.0.0
|
|
24
|
+
*/
|
|
25
|
+
export declare function expandVisualGroup(visual: VisualGroup): Partial<Factor24Config>;
|
|
26
|
+
/**
|
|
27
|
+
* Expand Motion Group to Factor24Config (basic tier).
|
|
28
|
+
* Simple wrapper - delegates to core.
|
|
29
|
+
*
|
|
30
|
+
* @param motion - The motion group configuration
|
|
31
|
+
* @returns Partial Factor24Config with motion-related factors
|
|
32
|
+
* @since 3.0.0
|
|
33
|
+
*/
|
|
34
|
+
export declare function expandMotionGroup(motion: MotionGroup): Partial<Factor24Config>;
|
|
35
|
+
/**
|
|
36
|
+
* Expand Layout Group to Factor24Config (basic tier).
|
|
37
|
+
* Simple wrapper - delegates to core.
|
|
38
|
+
*
|
|
39
|
+
* @param layout - The layout group configuration
|
|
40
|
+
* @returns Partial Factor24Config with layout-related factors
|
|
41
|
+
* @since 3.0.0
|
|
42
|
+
*/
|
|
43
|
+
export declare function expandLayoutGroup(layout: LayoutGroup): Partial<Factor24Config>;
|
|
44
|
+
/**
|
|
45
|
+
* Expand Experience Group to Factor24Config (basic tier).
|
|
46
|
+
* Simple wrapper - delegates to core.
|
|
47
|
+
*
|
|
48
|
+
* @param experience - The experience group configuration
|
|
49
|
+
* @returns Partial Factor24Config with experience-related factors
|
|
50
|
+
* @since 3.0.0
|
|
51
|
+
*/
|
|
52
|
+
export declare function expandExperienceGroup(experience: ExperienceGroup): Partial<Factor24Config>;
|
|
53
|
+
/**
|
|
54
|
+
* Expand all factor groups to Factor24Config (basic tier).
|
|
55
|
+
* Simple wrapper - delegates to core.
|
|
56
|
+
*
|
|
57
|
+
* @param groups - The factor groups to expand
|
|
58
|
+
* @returns Partial Factor24Config with all group factors
|
|
59
|
+
* @since 3.0.0
|
|
60
|
+
*/
|
|
61
|
+
export declare function expandGroups(groups: FactorGroups): Partial<Factor24Config>;
|
|
62
|
+
/**
|
|
63
|
+
* Merge multiple FactorGroups configurations (basic tier).
|
|
64
|
+
* Simple wrapper - delegates to core.
|
|
65
|
+
*
|
|
66
|
+
* @param groupsList - Factor groups to merge
|
|
67
|
+
* @returns Merged factor groups
|
|
68
|
+
* @since 3.0.0
|
|
69
|
+
*/
|
|
70
|
+
export declare function mergeFactorGroups(...groupsList: FactorGroups[]): FactorGroups;
|
|
71
|
+
/**
|
|
72
|
+
* Extract all factor groups from a Factor24Config (basic tier).
|
|
73
|
+
* Simple wrapper - delegates to core.
|
|
74
|
+
*
|
|
75
|
+
* @param config - The full Factor24Config
|
|
76
|
+
* @returns Extracted factor groups
|
|
77
|
+
* @since 3.0.0
|
|
78
|
+
*/
|
|
79
|
+
export declare function extractAllGroups(config: Partial<Factor24Config>): FactorGroups;
|
|
80
|
+
//# sourceMappingURL=groups-basic.d.ts.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Resolution Basic Tier - Barrel Export
|
|
3
|
+
*
|
|
4
|
+
* Central export point for basic tier resolution modules.
|
|
5
|
+
* Simple wrappers around Pattern A (core logic).
|
|
6
|
+
*
|
|
7
|
+
* @composition Basic = A wrapper (no validation)
|
|
8
|
+
*
|
|
9
|
+
* @packageDocumentation
|
|
10
|
+
* @module resolution/basic
|
|
11
|
+
* @since 3.0.0
|
|
12
|
+
*
|
|
13
|
+
* Powered by Nikkory
|
|
14
|
+
*/
|
|
15
|
+
export type { Factor24Config, MultiLevelProps, SemanticIntent, SemanticMood, IntentDefinition, MoodModifierDefinition, PresetDefinition, LookShorthand, FeelShorthand, SurfaceShorthand, SpacingShorthand, VisualGroup, MotionGroup, LayoutGroup, ExperienceGroup, FactorGroups, } from '../core/types-core';
|
|
16
|
+
export { expandVisualGroup, expandMotionGroup, expandLayoutGroup, expandExperienceGroup, expandGroups, mergeFactorGroups, extractAllGroups, } from './groups-basic';
|
|
17
|
+
export { LOOK_MAPPINGS, FEEL_MAPPINGS, SURFACE_MAPPINGS, SPACING_MAPPINGS, expandLook, expandFeel, expandSurface, expandSpacingShorthand, expandShorthands, type ShorthandProps, } from './shorthands-basic';
|
|
18
|
+
export { PRESET_STORAGE, registerPreset, registerPresets, resolvePreset, hasPreset, unregisterPreset, clearPresets, getAllPresetIds, getPresetCount, getAllPresetConfigs, } from './presets-basic';
|
|
19
|
+
export { INTENT_STORAGE, MOOD_STORAGE, registerIntent, registerIntents, registerMood, registerMoods, resolveIntent, resolveMood, hasIntent, hasMood, applyMood, resolveIntentWithMood, unregisterIntent, unregisterMood, clearIntents, clearMoods, getAllIntentIds, getAllMoodIds, getIntentCount, getMoodCount, getAllIntentConfigs, getAllMoodAdjustments, } from './intents-basic';
|
|
20
|
+
export { extractLevel1Factors, extractLevel2Groups, extractLevel3Shorthands, extractLevel4Preset, extractLevel5Intent, mergeConfigs, resolveProps, detectLevels, } from './resolver-basic';
|
|
21
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Intents Resolution - Basic Tier (Pattern A Wrapper)
|
|
3
|
+
*
|
|
4
|
+
* Simple wrapper around core intent resolution.
|
|
5
|
+
* No validation - delegates directly to core.
|
|
6
|
+
* Used by basic tier components.
|
|
7
|
+
*
|
|
8
|
+
* @composition Basic = A wrapper (no validation)
|
|
9
|
+
*
|
|
10
|
+
* @packageDocumentation
|
|
11
|
+
* @module resolution/basic/intents-basic
|
|
12
|
+
* @since 3.0.0
|
|
13
|
+
*
|
|
14
|
+
* Powered by Nikkory
|
|
15
|
+
*/
|
|
16
|
+
import type { Factor24Config, IntentDefinition, MoodModifierDefinition, SemanticIntent, SemanticMood } from '../core/types-core';
|
|
17
|
+
/**
|
|
18
|
+
* Intent storage (basic tier).
|
|
19
|
+
* @since 3.0.0
|
|
20
|
+
*/
|
|
21
|
+
export declare const INTENT_STORAGE: Map<SemanticIntent, Partial<Factor24Config>>;
|
|
22
|
+
/**
|
|
23
|
+
* Mood storage (basic tier).
|
|
24
|
+
* @since 3.0.0
|
|
25
|
+
*/
|
|
26
|
+
export declare const MOOD_STORAGE: Map<SemanticMood, Partial<Factor24Config>>;
|
|
27
|
+
/**
|
|
28
|
+
* Register an intent (basic tier).
|
|
29
|
+
* Simple wrapper - delegates to core.
|
|
30
|
+
*
|
|
31
|
+
* @param intent - The intent definition to register
|
|
32
|
+
* @since 3.0.0
|
|
33
|
+
*/
|
|
34
|
+
export declare function registerIntent(intent: IntentDefinition): void;
|
|
35
|
+
/**
|
|
36
|
+
* Register multiple intents (basic tier).
|
|
37
|
+
* Simple wrapper - delegates to core.
|
|
38
|
+
*
|
|
39
|
+
* @param intents - Array of intent definitions to register
|
|
40
|
+
* @since 3.0.0
|
|
41
|
+
*/
|
|
42
|
+
export declare function registerIntents(intents: ReadonlyArray<IntentDefinition>): void;
|
|
43
|
+
/**
|
|
44
|
+
* Register a mood modifier (basic tier).
|
|
45
|
+
* Simple wrapper - delegates to core.
|
|
46
|
+
*
|
|
47
|
+
* @param mood - The mood definition to register
|
|
48
|
+
* @since 3.0.0
|
|
49
|
+
*/
|
|
50
|
+
export declare function registerMood(mood: MoodModifierDefinition): void;
|
|
51
|
+
/**
|
|
52
|
+
* Register multiple moods (basic tier).
|
|
53
|
+
* Simple wrapper - delegates to core.
|
|
54
|
+
*
|
|
55
|
+
* @param moods - Array of mood definitions to register
|
|
56
|
+
* @since 3.0.0
|
|
57
|
+
*/
|
|
58
|
+
export declare function registerMoods(moods: ReadonlyArray<MoodModifierDefinition>): void;
|
|
59
|
+
/**
|
|
60
|
+
* Resolve an intent ID to Factor24Config (basic tier).
|
|
61
|
+
* Simple wrapper - delegates to core.
|
|
62
|
+
*
|
|
63
|
+
* @param intentId - The intent ID to resolve
|
|
64
|
+
* @returns The intent's base config or undefined
|
|
65
|
+
* @since 3.0.0
|
|
66
|
+
*/
|
|
67
|
+
export declare function resolveIntent(intentId: SemanticIntent): Partial<Factor24Config> | undefined;
|
|
68
|
+
/**
|
|
69
|
+
* Resolve a mood ID to its adjustments (basic tier).
|
|
70
|
+
* Simple wrapper - delegates to core.
|
|
71
|
+
*
|
|
72
|
+
* @param moodId - The mood ID to resolve
|
|
73
|
+
* @returns The mood's adjustments or undefined
|
|
74
|
+
* @since 3.0.0
|
|
75
|
+
*/
|
|
76
|
+
export declare function resolveMood(moodId: SemanticMood): Partial<Factor24Config> | undefined;
|
|
77
|
+
/**
|
|
78
|
+
* Check if an intent exists (basic tier).
|
|
79
|
+
* Simple wrapper - delegates to core.
|
|
80
|
+
*
|
|
81
|
+
* @param intentId - The intent ID to check
|
|
82
|
+
* @returns True if intent exists
|
|
83
|
+
* @since 3.0.0
|
|
84
|
+
*/
|
|
85
|
+
export declare function hasIntent(intentId: SemanticIntent): boolean;
|
|
86
|
+
/**
|
|
87
|
+
* Check if a mood exists (basic tier).
|
|
88
|
+
* Simple wrapper - delegates to core.
|
|
89
|
+
*
|
|
90
|
+
* @param moodId - The mood ID to check
|
|
91
|
+
* @returns True if mood exists
|
|
92
|
+
* @since 3.0.0
|
|
93
|
+
*/
|
|
94
|
+
export declare function hasMood(moodId: SemanticMood): boolean;
|
|
95
|
+
/**
|
|
96
|
+
* Apply mood adjustments to a base config (basic tier).
|
|
97
|
+
* Simple wrapper - delegates to core.
|
|
98
|
+
*
|
|
99
|
+
* @param baseConfig - The base configuration
|
|
100
|
+
* @param moodAdjustments - The mood adjustments to apply
|
|
101
|
+
* @returns Merged configuration
|
|
102
|
+
* @since 3.0.0
|
|
103
|
+
*/
|
|
104
|
+
export declare function applyMood(baseConfig: Partial<Factor24Config>, moodAdjustments: Partial<Factor24Config>): Partial<Factor24Config>;
|
|
105
|
+
/**
|
|
106
|
+
* Resolve intent with mood application (basic tier).
|
|
107
|
+
* Simple wrapper - delegates to core.
|
|
108
|
+
*
|
|
109
|
+
* @param intentId - The intent ID to resolve
|
|
110
|
+
* @param moodId - The mood ID to apply (optional)
|
|
111
|
+
* @returns Resolved and mood-adjusted config or undefined
|
|
112
|
+
* @since 3.0.0
|
|
113
|
+
*/
|
|
114
|
+
export declare function resolveIntentWithMood(intentId: SemanticIntent, moodId?: SemanticMood): Partial<Factor24Config> | undefined;
|
|
115
|
+
/**
|
|
116
|
+
* Remove an intent (basic tier).
|
|
117
|
+
* Simple wrapper - delegates to core.
|
|
118
|
+
*
|
|
119
|
+
* @param intentId - The intent ID to remove
|
|
120
|
+
* @returns True if intent was removed
|
|
121
|
+
* @since 3.0.0
|
|
122
|
+
*/
|
|
123
|
+
export declare function unregisterIntent(intentId: SemanticIntent): boolean;
|
|
124
|
+
/**
|
|
125
|
+
* Remove a mood (basic tier).
|
|
126
|
+
* Simple wrapper - delegates to core.
|
|
127
|
+
*
|
|
128
|
+
* @param moodId - The mood ID to remove
|
|
129
|
+
* @returns True if mood was removed
|
|
130
|
+
* @since 3.0.0
|
|
131
|
+
*/
|
|
132
|
+
export declare function unregisterMood(moodId: SemanticMood): boolean;
|
|
133
|
+
/**
|
|
134
|
+
* Clear all intents (basic tier).
|
|
135
|
+
* Simple wrapper - delegates to core.
|
|
136
|
+
*
|
|
137
|
+
* @since 3.0.0
|
|
138
|
+
*/
|
|
139
|
+
export declare function clearIntents(): void;
|
|
140
|
+
/**
|
|
141
|
+
* Clear all moods (basic tier).
|
|
142
|
+
* Simple wrapper - delegates to core.
|
|
143
|
+
*
|
|
144
|
+
* @since 3.0.0
|
|
145
|
+
*/
|
|
146
|
+
export declare function clearMoods(): void;
|
|
147
|
+
/**
|
|
148
|
+
* Get all intent IDs (basic tier).
|
|
149
|
+
* Simple wrapper - delegates to core.
|
|
150
|
+
*
|
|
151
|
+
* @returns Array of all registered intent IDs
|
|
152
|
+
* @since 3.0.0
|
|
153
|
+
*/
|
|
154
|
+
export declare function getAllIntentIds(): SemanticIntent[];
|
|
155
|
+
/**
|
|
156
|
+
* Get all mood IDs (basic tier).
|
|
157
|
+
* Simple wrapper - delegates to core.
|
|
158
|
+
*
|
|
159
|
+
* @returns Array of all registered mood IDs
|
|
160
|
+
* @since 3.0.0
|
|
161
|
+
*/
|
|
162
|
+
export declare function getAllMoodIds(): SemanticMood[];
|
|
163
|
+
/**
|
|
164
|
+
* Get total intent count (basic tier).
|
|
165
|
+
* Simple wrapper - delegates to core.
|
|
166
|
+
*
|
|
167
|
+
* @returns Total number of registered intents
|
|
168
|
+
* @since 3.0.0
|
|
169
|
+
*/
|
|
170
|
+
export declare function getIntentCount(): number;
|
|
171
|
+
/**
|
|
172
|
+
* Get total mood count (basic tier).
|
|
173
|
+
* Simple wrapper - delegates to core.
|
|
174
|
+
*
|
|
175
|
+
* @returns Total number of registered moods
|
|
176
|
+
* @since 3.0.0
|
|
177
|
+
*/
|
|
178
|
+
export declare function getMoodCount(): number;
|
|
179
|
+
/**
|
|
180
|
+
* Get all intent configs (basic tier).
|
|
181
|
+
* Simple wrapper - delegates to core.
|
|
182
|
+
*
|
|
183
|
+
* @returns Array of all intent configs
|
|
184
|
+
* @since 3.0.0
|
|
185
|
+
*/
|
|
186
|
+
export declare function getAllIntentConfigs(): Array<Partial<Factor24Config>>;
|
|
187
|
+
/**
|
|
188
|
+
* Get all mood adjustment configs (basic tier).
|
|
189
|
+
* Simple wrapper - delegates to core.
|
|
190
|
+
*
|
|
191
|
+
* @returns Array of all mood adjustment configs
|
|
192
|
+
* @since 3.0.0
|
|
193
|
+
*/
|
|
194
|
+
export declare function getAllMoodAdjustments(): Array<Partial<Factor24Config>>;
|
|
195
|
+
//# sourceMappingURL=intents-basic.d.ts.map
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Presets Resolution - Basic Tier (Pattern A Wrapper)
|
|
3
|
+
*
|
|
4
|
+
* Simple wrapper around core preset resolution.
|
|
5
|
+
* No validation - delegates directly to core.
|
|
6
|
+
* Used by basic tier components.
|
|
7
|
+
*
|
|
8
|
+
* @composition Basic = A wrapper (no validation)
|
|
9
|
+
*
|
|
10
|
+
* @packageDocumentation
|
|
11
|
+
* @module resolution/basic/presets-basic
|
|
12
|
+
* @since 3.0.0
|
|
13
|
+
*
|
|
14
|
+
* Powered by Nikkory
|
|
15
|
+
*/
|
|
16
|
+
import type { Factor24Config, PresetDefinition } from '../core/types-core';
|
|
17
|
+
/**
|
|
18
|
+
* Preset storage (basic tier).
|
|
19
|
+
* @since 3.0.0
|
|
20
|
+
*/
|
|
21
|
+
export declare const PRESET_STORAGE: Map<string, Partial<Factor24Config>>;
|
|
22
|
+
/**
|
|
23
|
+
* Register a preset (basic tier).
|
|
24
|
+
* Simple wrapper - delegates to core.
|
|
25
|
+
*
|
|
26
|
+
* @param preset - The preset definition to register
|
|
27
|
+
* @since 3.0.0
|
|
28
|
+
*/
|
|
29
|
+
export declare function registerPreset(preset: PresetDefinition): void;
|
|
30
|
+
/**
|
|
31
|
+
* Register multiple presets (basic tier).
|
|
32
|
+
* Simple wrapper - delegates to core.
|
|
33
|
+
*
|
|
34
|
+
* @param presets - Array of preset definitions to register
|
|
35
|
+
* @since 3.0.0
|
|
36
|
+
*/
|
|
37
|
+
export declare function registerPresets(presets: ReadonlyArray<PresetDefinition>): void;
|
|
38
|
+
/**
|
|
39
|
+
* Resolve a preset ID to Factor24Config (basic tier).
|
|
40
|
+
* Simple wrapper - delegates to core.
|
|
41
|
+
*
|
|
42
|
+
* @param presetId - The preset ID to resolve
|
|
43
|
+
* @returns The preset's config or undefined if not found
|
|
44
|
+
* @since 3.0.0
|
|
45
|
+
*/
|
|
46
|
+
export declare function resolvePreset(presetId: string): Partial<Factor24Config> | undefined;
|
|
47
|
+
/**
|
|
48
|
+
* Check if a preset exists (basic tier).
|
|
49
|
+
* Simple wrapper - delegates to core.
|
|
50
|
+
*
|
|
51
|
+
* @param presetId - The preset ID to check
|
|
52
|
+
* @returns True if preset exists
|
|
53
|
+
* @since 3.0.0
|
|
54
|
+
*/
|
|
55
|
+
export declare function hasPreset(presetId: string): boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Remove a preset (basic tier).
|
|
58
|
+
* Simple wrapper - delegates to core.
|
|
59
|
+
*
|
|
60
|
+
* @param presetId - The preset ID to remove
|
|
61
|
+
* @returns True if preset was removed
|
|
62
|
+
* @since 3.0.0
|
|
63
|
+
*/
|
|
64
|
+
export declare function unregisterPreset(presetId: string): boolean;
|
|
65
|
+
/**
|
|
66
|
+
* Clear all presets (basic tier).
|
|
67
|
+
* Simple wrapper - delegates to core.
|
|
68
|
+
*
|
|
69
|
+
* @since 3.0.0
|
|
70
|
+
*/
|
|
71
|
+
export declare function clearPresets(): void;
|
|
72
|
+
/**
|
|
73
|
+
* Get all preset IDs (basic tier).
|
|
74
|
+
* Simple wrapper - delegates to core.
|
|
75
|
+
*
|
|
76
|
+
* @returns Array of all registered preset IDs
|
|
77
|
+
* @since 3.0.0
|
|
78
|
+
*/
|
|
79
|
+
export declare function getAllPresetIds(): string[];
|
|
80
|
+
/**
|
|
81
|
+
* Get total preset count (basic tier).
|
|
82
|
+
* Simple wrapper - delegates to core.
|
|
83
|
+
*
|
|
84
|
+
* @returns Total number of registered presets
|
|
85
|
+
* @since 3.0.0
|
|
86
|
+
*/
|
|
87
|
+
export declare function getPresetCount(): number;
|
|
88
|
+
/**
|
|
89
|
+
* Get all preset configs (basic tier).
|
|
90
|
+
* Simple wrapper - delegates to core.
|
|
91
|
+
*
|
|
92
|
+
* @returns Array of all preset configs
|
|
93
|
+
* @since 3.0.0
|
|
94
|
+
*/
|
|
95
|
+
export declare function getAllPresetConfigs(): Array<Partial<Factor24Config>>;
|
|
96
|
+
//# sourceMappingURL=presets-basic.d.ts.map
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Resolution Orchestrator - Basic Tier (Pattern A Wrapper)
|
|
3
|
+
*
|
|
4
|
+
* Simple wrapper around core 5-level resolution.
|
|
5
|
+
* No validation, no debug - delegates directly to core.
|
|
6
|
+
* Used by basic tier components.
|
|
7
|
+
*
|
|
8
|
+
* @composition Basic = A wrapper (no validation)
|
|
9
|
+
*
|
|
10
|
+
* @packageDocumentation
|
|
11
|
+
* @module resolution/basic/resolver-basic
|
|
12
|
+
* @since 3.0.0
|
|
13
|
+
*
|
|
14
|
+
* Powered by Nikkory
|
|
15
|
+
*/
|
|
16
|
+
import type { ShorthandPropsCore } from '../core/shorthands-core';
|
|
17
|
+
import type { Factor24Config, MultiLevelProps, FactorGroups, SemanticIntent, SemanticMood } from '../core/types-core';
|
|
18
|
+
/**
|
|
19
|
+
* Extract Level 1 (raw factors) from MultiLevelProps (basic tier).
|
|
20
|
+
* Simple wrapper - delegates to core.
|
|
21
|
+
*
|
|
22
|
+
* @param props - The multi-level props
|
|
23
|
+
* @returns Partial Factor24Config with Level 1 factors
|
|
24
|
+
* @since 3.0.0
|
|
25
|
+
*/
|
|
26
|
+
export declare function extractLevel1Factors(props: MultiLevelProps): Partial<Factor24Config>;
|
|
27
|
+
/**
|
|
28
|
+
* Extract Level 2 (groups) from MultiLevelProps (basic tier).
|
|
29
|
+
* Simple wrapper - delegates to core.
|
|
30
|
+
*
|
|
31
|
+
* @param props - The multi-level props
|
|
32
|
+
* @returns FactorGroups
|
|
33
|
+
* @since 3.0.0
|
|
34
|
+
*/
|
|
35
|
+
export declare function extractLevel2Groups(props: MultiLevelProps): FactorGroups;
|
|
36
|
+
/**
|
|
37
|
+
* Extract Level 3 (shorthands) from MultiLevelProps (basic tier).
|
|
38
|
+
* Simple wrapper - delegates to core.
|
|
39
|
+
*
|
|
40
|
+
* @param props - The multi-level props
|
|
41
|
+
* @returns ShorthandPropsCore
|
|
42
|
+
* @since 3.0.0
|
|
43
|
+
*/
|
|
44
|
+
export declare function extractLevel3Shorthands(props: MultiLevelProps): ShorthandPropsCore;
|
|
45
|
+
/**
|
|
46
|
+
* Extract Level 4 (preset) from MultiLevelProps (basic tier).
|
|
47
|
+
* Simple wrapper - delegates to core.
|
|
48
|
+
*
|
|
49
|
+
* @param props - The multi-level props
|
|
50
|
+
* @returns Preset ID or undefined
|
|
51
|
+
* @since 3.0.0
|
|
52
|
+
*/
|
|
53
|
+
export declare function extractLevel4Preset(props: MultiLevelProps): string | undefined;
|
|
54
|
+
/**
|
|
55
|
+
* Extract Level 5 (intent + mood) from MultiLevelProps (basic tier).
|
|
56
|
+
* Simple wrapper - delegates to core.
|
|
57
|
+
*
|
|
58
|
+
* @param props - The multi-level props
|
|
59
|
+
* @returns Object with intent and mood IDs
|
|
60
|
+
* @since 3.0.0
|
|
61
|
+
*/
|
|
62
|
+
export declare function extractLevel5Intent(props: MultiLevelProps): {
|
|
63
|
+
intent?: SemanticIntent;
|
|
64
|
+
mood?: SemanticMood;
|
|
65
|
+
};
|
|
66
|
+
/**
|
|
67
|
+
* Merge multiple Factor24Configs (basic tier).
|
|
68
|
+
* Simple wrapper - delegates to core.
|
|
69
|
+
*
|
|
70
|
+
* @param configs - Configs to merge in priority order
|
|
71
|
+
* @returns Merged configuration
|
|
72
|
+
* @since 3.0.0
|
|
73
|
+
*/
|
|
74
|
+
export declare function mergeConfigs(...configs: Array<Partial<Factor24Config>>): Partial<Factor24Config>;
|
|
75
|
+
/**
|
|
76
|
+
* Resolve MultiLevelProps to Factor24Config (basic tier).
|
|
77
|
+
* Simple wrapper - delegates to core.
|
|
78
|
+
*
|
|
79
|
+
* Priority: Level 1 > Level 2 > Level 3 > Level 4 > Level 5
|
|
80
|
+
*
|
|
81
|
+
* @param props - MultiLevelProps to resolve
|
|
82
|
+
* @returns Resolved Partial Factor24Config
|
|
83
|
+
* @since 3.0.0
|
|
84
|
+
*
|
|
85
|
+
* @example
|
|
86
|
+
* ```typescript
|
|
87
|
+
* // Using Level 5 (Intent + Mood)
|
|
88
|
+
* const config1 = resolveProps({
|
|
89
|
+
* intent: 'cta',
|
|
90
|
+
* mood: 'professional'
|
|
91
|
+
* });
|
|
92
|
+
*
|
|
93
|
+
* // Using Level 3 (Shorthands) with Level 1 override
|
|
94
|
+
* const config2 = resolveProps({
|
|
95
|
+
* look: 'bold',
|
|
96
|
+
* feel: 'snappy',
|
|
97
|
+
* size: 'lg' // Level 1 overrides shorthand
|
|
98
|
+
* });
|
|
99
|
+
*
|
|
100
|
+
* // Mixing all levels
|
|
101
|
+
* const config3 = resolveProps({
|
|
102
|
+
* intent: 'primary', // Level 5 (lowest priority)
|
|
103
|
+
* preset: 'button-cta', // Level 4
|
|
104
|
+
* look: 'elevated', // Level 3
|
|
105
|
+
* visual: { shape: 'lg' }, // Level 2
|
|
106
|
+
* colorScheme: 'secondary', // Level 1 (highest priority)
|
|
107
|
+
* });
|
|
108
|
+
* ```
|
|
109
|
+
*/
|
|
110
|
+
export declare function resolveProps(props: MultiLevelProps): Partial<Factor24Config>;
|
|
111
|
+
/**
|
|
112
|
+
* Detect which levels are present in MultiLevelProps (basic tier).
|
|
113
|
+
* Simple wrapper - delegates to core.
|
|
114
|
+
*
|
|
115
|
+
* @param props - The multi-level props to analyze
|
|
116
|
+
* @returns Object indicating which levels are present
|
|
117
|
+
* @since 3.0.0
|
|
118
|
+
*/
|
|
119
|
+
export declare function detectLevels(props: MultiLevelProps): {
|
|
120
|
+
hasLevel5: boolean;
|
|
121
|
+
hasLevel4: boolean;
|
|
122
|
+
hasLevel3: boolean;
|
|
123
|
+
hasLevel2: boolean;
|
|
124
|
+
hasLevel1: boolean;
|
|
125
|
+
levels: number[];
|
|
126
|
+
};
|
|
127
|
+
//# sourceMappingURL=resolver-basic.d.ts.map
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shorthands Resolution - Basic Tier (Pattern A Wrapper)
|
|
3
|
+
*
|
|
4
|
+
* Simple wrapper around core shorthand expansion.
|
|
5
|
+
* No validation - delegates directly to core.
|
|
6
|
+
* Used by basic tier components.
|
|
7
|
+
*
|
|
8
|
+
* @composition Basic = A wrapper (no validation)
|
|
9
|
+
*
|
|
10
|
+
* @packageDocumentation
|
|
11
|
+
* @module resolution/basic/shorthands-basic
|
|
12
|
+
* @since 3.0.0
|
|
13
|
+
*
|
|
14
|
+
* Powered by Nikkory
|
|
15
|
+
*/
|
|
16
|
+
import type { ShorthandPropsCore } from '../core/shorthands-core';
|
|
17
|
+
import type { Factor24Config, LookShorthand, FeelShorthand, SurfaceShorthand, SpacingShorthand } from '../core/types-core';
|
|
18
|
+
/**
|
|
19
|
+
* Look shorthand mappings (basic tier).
|
|
20
|
+
* @since 3.0.0
|
|
21
|
+
*/
|
|
22
|
+
export declare const LOOK_MAPPINGS: Record<LookShorthand, Partial<Factor24Config>>;
|
|
23
|
+
/**
|
|
24
|
+
* Feel shorthand mappings (basic tier).
|
|
25
|
+
* @since 3.0.0
|
|
26
|
+
*/
|
|
27
|
+
export declare const FEEL_MAPPINGS: Record<FeelShorthand, Partial<Factor24Config>>;
|
|
28
|
+
/**
|
|
29
|
+
* Surface shorthand mappings (basic tier).
|
|
30
|
+
* @since 3.0.0
|
|
31
|
+
*/
|
|
32
|
+
export declare const SURFACE_MAPPINGS: Record<SurfaceShorthand, Partial<Factor24Config>>;
|
|
33
|
+
/**
|
|
34
|
+
* Spacing shorthand mappings (basic tier).
|
|
35
|
+
* @since 3.0.0
|
|
36
|
+
*/
|
|
37
|
+
export declare const SPACING_MAPPINGS: Record<SpacingShorthand, Partial<Factor24Config>>;
|
|
38
|
+
/**
|
|
39
|
+
* Expand look shorthand to Factor24Config (basic tier).
|
|
40
|
+
* Simple wrapper - delegates to core.
|
|
41
|
+
*
|
|
42
|
+
* @param look - The look shorthand value
|
|
43
|
+
* @returns Partial Factor24Config with look-related factors
|
|
44
|
+
* @since 3.0.0
|
|
45
|
+
*/
|
|
46
|
+
export declare function expandLook(look: LookShorthand): Partial<Factor24Config>;
|
|
47
|
+
/**
|
|
48
|
+
* Expand feel shorthand to Factor24Config (basic tier).
|
|
49
|
+
* Simple wrapper - delegates to core.
|
|
50
|
+
*
|
|
51
|
+
* @param feel - The feel shorthand value
|
|
52
|
+
* @returns Partial Factor24Config with feel-related factors
|
|
53
|
+
* @since 3.0.0
|
|
54
|
+
*/
|
|
55
|
+
export declare function expandFeel(feel: FeelShorthand): Partial<Factor24Config>;
|
|
56
|
+
/**
|
|
57
|
+
* Expand surface shorthand to Factor24Config (basic tier).
|
|
58
|
+
* Simple wrapper - delegates to core.
|
|
59
|
+
*
|
|
60
|
+
* @param surface - The surface shorthand value
|
|
61
|
+
* @returns Partial Factor24Config with surface-related factors
|
|
62
|
+
* @since 3.0.0
|
|
63
|
+
*/
|
|
64
|
+
export declare function expandSurface(surface: SurfaceShorthand): Partial<Factor24Config>;
|
|
65
|
+
/**
|
|
66
|
+
* Expand spacing shorthand to Factor24Config (basic tier).
|
|
67
|
+
* Simple wrapper - delegates to core.
|
|
68
|
+
*
|
|
69
|
+
* @param spacing - The spacing shorthand value
|
|
70
|
+
* @returns Partial Factor24Config with spacing-related factors
|
|
71
|
+
* @since 3.0.0
|
|
72
|
+
*/
|
|
73
|
+
export declare function expandSpacingShorthand(spacing: SpacingShorthand): Partial<Factor24Config>;
|
|
74
|
+
/**
|
|
75
|
+
* Expand all shorthands to Factor24Config (basic tier).
|
|
76
|
+
* Simple wrapper - delegates to core.
|
|
77
|
+
*
|
|
78
|
+
* @param shorthands - The shorthand props to expand
|
|
79
|
+
* @returns Partial Factor24Config with all shorthand factors
|
|
80
|
+
* @since 3.0.0
|
|
81
|
+
*/
|
|
82
|
+
export declare function expandShorthands(shorthands: ShorthandPropsCore): Partial<Factor24Config>;
|
|
83
|
+
/**
|
|
84
|
+
* Shorthand props type (basic tier).
|
|
85
|
+
* @since 3.0.0
|
|
86
|
+
*/
|
|
87
|
+
export type ShorthandProps = ShorthandPropsCore;
|
|
88
|
+
//# sourceMappingURL=shorthands-basic.d.ts.map
|