@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,189 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Intents Module - Semantic Intent Resolution
|
|
3
|
+
*
|
|
4
|
+
* Central export point for all intent-related functionality.
|
|
5
|
+
* Provides resolution of semantic intents and mood modifiers
|
|
6
|
+
* to Factor24 configurations.
|
|
7
|
+
*
|
|
8
|
+
* @packageDocumentation
|
|
9
|
+
* @module resolution/intents
|
|
10
|
+
* @since 2.1.0
|
|
11
|
+
*
|
|
12
|
+
* Powered by Nikkory
|
|
13
|
+
*/
|
|
14
|
+
import { isValidMoodModifier, getAllMoodIds } from './mood-modifiers';
|
|
15
|
+
import type { IntentDefinition, SemanticIntent, SemanticMood, Factor24Config, IntentRegistry as IIntentRegistry, MoodModifierDefinition } from '../types';
|
|
16
|
+
/**
|
|
17
|
+
* Intent registry implementation.
|
|
18
|
+
*
|
|
19
|
+
* @since 2.1.0
|
|
20
|
+
*/
|
|
21
|
+
declare class IntentRegistryImpl implements IIntentRegistry {
|
|
22
|
+
/** Intent storage */
|
|
23
|
+
readonly intents: Map<SemanticIntent, IntentDefinition>;
|
|
24
|
+
/** Mood modifier storage */
|
|
25
|
+
readonly moods: Map<SemanticMood, MoodModifierDefinition>;
|
|
26
|
+
/** Index by component type for fast lookups */
|
|
27
|
+
private readonly componentTypeIndex;
|
|
28
|
+
/**
|
|
29
|
+
* Creates a new intent registry.
|
|
30
|
+
*
|
|
31
|
+
* @param initialIntents - Optional initial intents
|
|
32
|
+
* @param initialMoods - Optional initial mood modifiers
|
|
33
|
+
*/
|
|
34
|
+
constructor(initialIntents?: ReadonlyArray<IntentDefinition>, initialMoods?: ReadonlyArray<MoodModifierDefinition>);
|
|
35
|
+
/**
|
|
36
|
+
* Get an intent by ID.
|
|
37
|
+
*
|
|
38
|
+
* @param id - The intent ID
|
|
39
|
+
* @returns The intent definition or undefined
|
|
40
|
+
*/
|
|
41
|
+
getIntent(id: SemanticIntent): IntentDefinition | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* Get a mood modifier by ID.
|
|
44
|
+
*
|
|
45
|
+
* @param id - The mood ID
|
|
46
|
+
* @returns The mood modifier definition or undefined
|
|
47
|
+
*/
|
|
48
|
+
getMood(id: SemanticMood): MoodModifierDefinition | undefined;
|
|
49
|
+
/**
|
|
50
|
+
* Register a new intent.
|
|
51
|
+
*
|
|
52
|
+
* @param intent - The intent to register
|
|
53
|
+
*/
|
|
54
|
+
registerIntent(intent: IntentDefinition): void;
|
|
55
|
+
/**
|
|
56
|
+
* Register a mood modifier.
|
|
57
|
+
*
|
|
58
|
+
* @param mood - The mood modifier to register
|
|
59
|
+
*/
|
|
60
|
+
registerMood(mood: MoodModifierDefinition): void;
|
|
61
|
+
/**
|
|
62
|
+
* Get all intents for a component type.
|
|
63
|
+
*
|
|
64
|
+
* @param componentType - The component type
|
|
65
|
+
* @returns Array of intents for the component
|
|
66
|
+
*/
|
|
67
|
+
getIntentsByComponentType(componentType: string): IntentDefinition[];
|
|
68
|
+
/**
|
|
69
|
+
* Get all registered intents.
|
|
70
|
+
*
|
|
71
|
+
* @returns Array of all intents
|
|
72
|
+
*/
|
|
73
|
+
getAllIntents(): IntentDefinition[];
|
|
74
|
+
/**
|
|
75
|
+
* Get all registered moods.
|
|
76
|
+
*
|
|
77
|
+
* @returns Array of all mood modifiers
|
|
78
|
+
*/
|
|
79
|
+
getAllMoods(): MoodModifierDefinition[];
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Global intent registry instance.
|
|
83
|
+
* Pre-populated with all built-in intents and moods.
|
|
84
|
+
*
|
|
85
|
+
* @since 2.1.0
|
|
86
|
+
*/
|
|
87
|
+
export declare const intentRegistry: IntentRegistryImpl;
|
|
88
|
+
/**
|
|
89
|
+
* Resolve an intent to its Factor24Config.
|
|
90
|
+
*
|
|
91
|
+
* @param intentId - The intent ID to resolve
|
|
92
|
+
* @param mood - Optional mood modifier to apply
|
|
93
|
+
* @returns The resolved Factor24Config or undefined
|
|
94
|
+
* @since 2.1.0
|
|
95
|
+
*/
|
|
96
|
+
export declare function resolveIntent(intentId: SemanticIntent, mood?: SemanticMood): Partial<Factor24Config> | undefined;
|
|
97
|
+
/**
|
|
98
|
+
* Resolve an intent with fallback to component-specific registries.
|
|
99
|
+
*
|
|
100
|
+
* @param intentId - The intent ID to resolve
|
|
101
|
+
* @param mood - Optional mood modifier
|
|
102
|
+
* @param componentType - Optional component type for fallback
|
|
103
|
+
* @returns The resolved Factor24Config or undefined
|
|
104
|
+
* @since 2.1.0
|
|
105
|
+
*/
|
|
106
|
+
export declare function resolveIntentWithFallback(intentId: SemanticIntent, mood?: SemanticMood, componentType?: string): Partial<Factor24Config> | undefined;
|
|
107
|
+
/**
|
|
108
|
+
* Resolve a mood modifier to its adjustments.
|
|
109
|
+
*
|
|
110
|
+
* @param moodId - The mood ID to resolve
|
|
111
|
+
* @returns The mood adjustments or undefined
|
|
112
|
+
* @since 2.1.0
|
|
113
|
+
*/
|
|
114
|
+
export declare function resolveMood(moodId: SemanticMood): Partial<Factor24Config> | undefined;
|
|
115
|
+
/**
|
|
116
|
+
* Get all intents for a specific component type.
|
|
117
|
+
*
|
|
118
|
+
* @param componentType - The component type
|
|
119
|
+
* @returns Array of intent definitions
|
|
120
|
+
* @since 2.1.0
|
|
121
|
+
*/
|
|
122
|
+
export declare function getIntentsForComponent(componentType: string): IntentDefinition[];
|
|
123
|
+
/**
|
|
124
|
+
* Check if an intent ID is valid.
|
|
125
|
+
*
|
|
126
|
+
* @param intentId - The intent ID to check
|
|
127
|
+
* @returns True if valid
|
|
128
|
+
* @since 2.1.0
|
|
129
|
+
*/
|
|
130
|
+
export declare function isValidIntent(intentId: string): intentId is SemanticIntent;
|
|
131
|
+
/**
|
|
132
|
+
* Check if a mood ID is valid.
|
|
133
|
+
*
|
|
134
|
+
* @param moodId - The mood ID to check
|
|
135
|
+
* @returns True if valid
|
|
136
|
+
* @since 2.1.0
|
|
137
|
+
*/
|
|
138
|
+
export { isValidMoodModifier as isValidMood };
|
|
139
|
+
/**
|
|
140
|
+
* Get all available intent IDs.
|
|
141
|
+
*
|
|
142
|
+
* @returns Array of all intent IDs
|
|
143
|
+
* @since 2.1.0
|
|
144
|
+
*/
|
|
145
|
+
export declare function getAllIntentIds(): SemanticIntent[];
|
|
146
|
+
/**
|
|
147
|
+
* Get all available mood IDs.
|
|
148
|
+
*
|
|
149
|
+
* @returns Array of all mood IDs
|
|
150
|
+
* @since 2.1.0
|
|
151
|
+
*/
|
|
152
|
+
export { getAllMoodIds };
|
|
153
|
+
/**
|
|
154
|
+
* Get intent metadata without config.
|
|
155
|
+
*
|
|
156
|
+
* @param intentId - The intent ID
|
|
157
|
+
* @returns Intent metadata or undefined
|
|
158
|
+
* @since 2.1.0
|
|
159
|
+
*/
|
|
160
|
+
export declare function getIntentMetadata(intentId: SemanticIntent): Omit<IntentDefinition, 'config' | 'moodModifiers'> | undefined;
|
|
161
|
+
/**
|
|
162
|
+
* Get intent count statistics.
|
|
163
|
+
*
|
|
164
|
+
* @returns Object with intent and mood counts
|
|
165
|
+
* @since 2.1.0
|
|
166
|
+
*/
|
|
167
|
+
export declare function getIntentStats(): {
|
|
168
|
+
totalIntents: number;
|
|
169
|
+
totalMoods: number;
|
|
170
|
+
byComponentType: Record<string, number>;
|
|
171
|
+
};
|
|
172
|
+
/**
|
|
173
|
+
* Create a new intent registry instance.
|
|
174
|
+
*
|
|
175
|
+
* @param initialIntents - Optional initial intents
|
|
176
|
+
* @param initialMoods - Optional initial moods
|
|
177
|
+
* @returns New intent registry instance
|
|
178
|
+
* @since 2.1.0
|
|
179
|
+
*/
|
|
180
|
+
export declare function createIntentRegistry(initialIntents?: ReadonlyArray<IntentDefinition>, initialMoods?: ReadonlyArray<MoodModifierDefinition>): IIntentRegistry;
|
|
181
|
+
export { BUTTON_INTENTS, BUTTON_INTENTS_MAP, getButtonIntent, isButtonIntent, applyMoodToIntent, INTENT_CTA, INTENT_PRIMARY, INTENT_SECONDARY, INTENT_TERTIARY, INTENT_DESTRUCTIVE, INTENT_CONFIRM, INTENT_CANCEL, INTENT_NAV, INTENT_NAV_ACTIVE, INTENT_NAV_SUBTLE, INTENT_LINK, INTENT_SUCCESS, INTENT_WARNING, INTENT_ERROR, INTENT_INFO, INTENT_GHOST, INTENT_SUBTLE, INTENT_HERO, INTENT_PREMIUM, INTENT_BRAND, } from './button-intents';
|
|
182
|
+
export { MOOD_MODIFIERS, MOOD_MODIFIERS_MAP, getMoodModifier, applyMood, applyMoodWithIntensity, combineMoods, getMoodDescriptions, MOOD_PROFESSIONAL, MOOD_FRIENDLY, MOOD_PLAYFUL, MOOD_SERIOUS, MOOD_LUXURIOUS, MOOD_MINIMAL, MOOD_BOLD, } from './mood-modifiers';
|
|
183
|
+
export type { MoodIntensity } from './mood-modifiers';
|
|
184
|
+
export { CARD_INTENTS, CARD_INTENTS_MAP, getCardIntent, isCardIntent, applyMoodToCardIntent, INTENT_CARD_CONTENT, INTENT_CARD_FEATURED, INTENT_CARD_ARTICLE, INTENT_CARD_INTERACTIVE, INTENT_CARD_SELECTABLE, INTENT_CARD_DRAGGABLE, INTENT_CARD_PRODUCT, INTENT_CARD_PRICING, INTENT_CARD_PROFILE, INTENT_CARD_TESTIMONIAL, INTENT_CARD_STATS, INTENT_CARD_NOTIFICATION, INTENT_CARD_GLASS, INTENT_CARD_NEUMORPHIC, } from './card-intents';
|
|
185
|
+
export { INPUT_INTENTS, INPUT_INTENTS_MAP, getInputIntent, isInputIntent, applyMoodToInputIntent, INTENT_INPUT_TEXT, INTENT_INPUT_EMAIL, INTENT_INPUT_PASSWORD, INTENT_INPUT_SEARCH, INTENT_INPUT_CODE, INTENT_INPUT_NUMBER, INTENT_INPUT_CURRENCY, INTENT_INPUT_SELECT, INTENT_INPUT_MULTISELECT, INTENT_INPUT_AUTOCOMPLETE, INTENT_INPUT_CHECKBOX, INTENT_INPUT_SWITCH, INTENT_INPUT_RADIO, INTENT_INPUT_SLIDER, INTENT_INPUT_RATING, INTENT_INPUT_TEXTAREA, INTENT_INPUT_RICHTEXT, INTENT_INPUT_ERROR, INTENT_INPUT_SUCCESS, INTENT_INPUT_DISABLED, } from './input-intents';
|
|
186
|
+
export { FEEDBACK_INTENTS, FEEDBACK_INTENTS_MAP, getFeedbackIntent, isFeedbackIntent, applyMoodToFeedbackIntent, INTENT_ALERT_INFO, INTENT_ALERT_SUCCESS, INTENT_ALERT_WARNING, INTENT_ALERT_ERROR, INTENT_TOAST_DEFAULT, INTENT_TOAST_SUCCESS, INTENT_TOAST_ERROR, INTENT_TOAST_ACTION, INTENT_PROGRESS_LINEAR, INTENT_PROGRESS_CIRCULAR, INTENT_SKELETON, INTENT_BADGE_DEFAULT, INTENT_BADGE_STATUS, INTENT_BADGE_COUNT, INTENT_CHIP_DEFAULT, INTENT_CHIP_SELECTABLE, INTENT_CHIP_DELETABLE, INTENT_TOOLTIP_DEFAULT, INTENT_TOOLTIP_RICH, } from './feedback-intents';
|
|
187
|
+
export { IntentRegistryImpl };
|
|
188
|
+
export type { IIntentRegistry };
|
|
189
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Input Intents - Semantic Intent Definitions for Inputs
|
|
3
|
+
*
|
|
4
|
+
* Defines the mapping from semantic intents to Factor24 configurations
|
|
5
|
+
* specifically optimized for input and form components.
|
|
6
|
+
*
|
|
7
|
+
* @packageDocumentation
|
|
8
|
+
* @module resolution/intents/input-intents
|
|
9
|
+
* @since 2.1.0
|
|
10
|
+
*
|
|
11
|
+
* Powered by Nikkory
|
|
12
|
+
*/
|
|
13
|
+
import type { IntentDefinition, SemanticMood, Factor24Config } from '../types';
|
|
14
|
+
/**
|
|
15
|
+
* Text Intent - Standard text input
|
|
16
|
+
*
|
|
17
|
+
* General text entry field.
|
|
18
|
+
* Clean, accessible appearance.
|
|
19
|
+
*
|
|
20
|
+
* @since 2.1.0
|
|
21
|
+
*/
|
|
22
|
+
export declare const INTENT_INPUT_TEXT: IntentDefinition;
|
|
23
|
+
/**
|
|
24
|
+
* Email Intent - Email input
|
|
25
|
+
*
|
|
26
|
+
* Email-specific text entry.
|
|
27
|
+
* Validation-ready styling.
|
|
28
|
+
*
|
|
29
|
+
* @since 2.1.0
|
|
30
|
+
*/
|
|
31
|
+
export declare const INTENT_INPUT_EMAIL: IntentDefinition;
|
|
32
|
+
/**
|
|
33
|
+
* Password Intent - Password input
|
|
34
|
+
*
|
|
35
|
+
* Secure password entry.
|
|
36
|
+
* Enhanced security indicators.
|
|
37
|
+
*
|
|
38
|
+
* @since 2.1.0
|
|
39
|
+
*/
|
|
40
|
+
export declare const INTENT_INPUT_PASSWORD: IntentDefinition;
|
|
41
|
+
/**
|
|
42
|
+
* Search Intent - Search input
|
|
43
|
+
*
|
|
44
|
+
* Search field with action icon.
|
|
45
|
+
* Quick access and feedback.
|
|
46
|
+
*
|
|
47
|
+
* @since 2.1.0
|
|
48
|
+
*/
|
|
49
|
+
export declare const INTENT_INPUT_SEARCH: IntentDefinition;
|
|
50
|
+
/**
|
|
51
|
+
* Code Intent - Code input
|
|
52
|
+
*
|
|
53
|
+
* Code/monospace entry.
|
|
54
|
+
* Syntax-friendly styling.
|
|
55
|
+
*
|
|
56
|
+
* @since 2.1.0
|
|
57
|
+
*/
|
|
58
|
+
export declare const INTENT_INPUT_CODE: IntentDefinition;
|
|
59
|
+
/**
|
|
60
|
+
* Number Intent - Numeric input
|
|
61
|
+
*
|
|
62
|
+
* Numeric value entry.
|
|
63
|
+
* Spinner/stepper support.
|
|
64
|
+
*
|
|
65
|
+
* @since 2.1.0
|
|
66
|
+
*/
|
|
67
|
+
export declare const INTENT_INPUT_NUMBER: IntentDefinition;
|
|
68
|
+
/**
|
|
69
|
+
* Currency Intent - Currency input
|
|
70
|
+
*
|
|
71
|
+
* Monetary value entry.
|
|
72
|
+
* Format and symbol support.
|
|
73
|
+
*
|
|
74
|
+
* @since 2.1.0
|
|
75
|
+
*/
|
|
76
|
+
export declare const INTENT_INPUT_CURRENCY: IntentDefinition;
|
|
77
|
+
/**
|
|
78
|
+
* Select Intent - Dropdown select
|
|
79
|
+
*
|
|
80
|
+
* Single selection dropdown.
|
|
81
|
+
* Clear selection feedback.
|
|
82
|
+
*
|
|
83
|
+
* @since 2.1.0
|
|
84
|
+
*/
|
|
85
|
+
export declare const INTENT_INPUT_SELECT: IntentDefinition;
|
|
86
|
+
/**
|
|
87
|
+
* Multiselect Intent - Multiple selection
|
|
88
|
+
*
|
|
89
|
+
* Multiple choice selection.
|
|
90
|
+
* Chip/tag display for selections.
|
|
91
|
+
*
|
|
92
|
+
* @since 2.1.0
|
|
93
|
+
*/
|
|
94
|
+
export declare const INTENT_INPUT_MULTISELECT: IntentDefinition;
|
|
95
|
+
/**
|
|
96
|
+
* Autocomplete Intent - Autocomplete input
|
|
97
|
+
*
|
|
98
|
+
* Text with suggestions.
|
|
99
|
+
* Typeahead functionality.
|
|
100
|
+
*
|
|
101
|
+
* @since 2.1.0
|
|
102
|
+
*/
|
|
103
|
+
export declare const INTENT_INPUT_AUTOCOMPLETE: IntentDefinition;
|
|
104
|
+
/**
|
|
105
|
+
* Checkbox Intent - Checkbox input
|
|
106
|
+
*
|
|
107
|
+
* Binary on/off selection.
|
|
108
|
+
* Clear checked state.
|
|
109
|
+
*
|
|
110
|
+
* @since 2.1.0
|
|
111
|
+
*/
|
|
112
|
+
export declare const INTENT_INPUT_CHECKBOX: IntentDefinition;
|
|
113
|
+
/**
|
|
114
|
+
* Switch Intent - Toggle switch
|
|
115
|
+
*
|
|
116
|
+
* On/off toggle control.
|
|
117
|
+
* iOS/Android style.
|
|
118
|
+
*
|
|
119
|
+
* @since 2.1.0
|
|
120
|
+
*/
|
|
121
|
+
export declare const INTENT_INPUT_SWITCH: IntentDefinition;
|
|
122
|
+
/**
|
|
123
|
+
* Radio Intent - Radio button
|
|
124
|
+
*
|
|
125
|
+
* Single selection from group.
|
|
126
|
+
* Exclusive choice pattern.
|
|
127
|
+
*
|
|
128
|
+
* @since 2.1.0
|
|
129
|
+
*/
|
|
130
|
+
export declare const INTENT_INPUT_RADIO: IntentDefinition;
|
|
131
|
+
/**
|
|
132
|
+
* Slider Intent - Range slider
|
|
133
|
+
*
|
|
134
|
+
* Value selection via slider.
|
|
135
|
+
* Continuous or stepped values.
|
|
136
|
+
*
|
|
137
|
+
* @since 2.1.0
|
|
138
|
+
*/
|
|
139
|
+
export declare const INTENT_INPUT_SLIDER: IntentDefinition;
|
|
140
|
+
/**
|
|
141
|
+
* Rating Intent - Star rating
|
|
142
|
+
*
|
|
143
|
+
* Rating value input.
|
|
144
|
+
* Star or icon-based.
|
|
145
|
+
*
|
|
146
|
+
* @since 2.1.0
|
|
147
|
+
*/
|
|
148
|
+
export declare const INTENT_INPUT_RATING: IntentDefinition;
|
|
149
|
+
/**
|
|
150
|
+
* Textarea Intent - Multiline text
|
|
151
|
+
*
|
|
152
|
+
* Long-form text entry.
|
|
153
|
+
* Resizable container.
|
|
154
|
+
*
|
|
155
|
+
* @since 2.1.0
|
|
156
|
+
*/
|
|
157
|
+
export declare const INTENT_INPUT_TEXTAREA: IntentDefinition;
|
|
158
|
+
/**
|
|
159
|
+
* Rich Text Intent - WYSIWYG editor
|
|
160
|
+
*
|
|
161
|
+
* Rich text editing.
|
|
162
|
+
* Toolbar and formatting.
|
|
163
|
+
*
|
|
164
|
+
* @since 2.1.0
|
|
165
|
+
*/
|
|
166
|
+
export declare const INTENT_INPUT_RICHTEXT: IntentDefinition;
|
|
167
|
+
/**
|
|
168
|
+
* Error Intent - Error state
|
|
169
|
+
*
|
|
170
|
+
* Invalid input indication.
|
|
171
|
+
* Clear error messaging.
|
|
172
|
+
*
|
|
173
|
+
* @since 2.1.0
|
|
174
|
+
*/
|
|
175
|
+
export declare const INTENT_INPUT_ERROR: IntentDefinition;
|
|
176
|
+
/**
|
|
177
|
+
* Success Intent - Success state
|
|
178
|
+
*
|
|
179
|
+
* Valid input indication.
|
|
180
|
+
* Confirmation feedback.
|
|
181
|
+
*
|
|
182
|
+
* @since 2.1.0
|
|
183
|
+
*/
|
|
184
|
+
export declare const INTENT_INPUT_SUCCESS: IntentDefinition;
|
|
185
|
+
/**
|
|
186
|
+
* Disabled Intent - Disabled state
|
|
187
|
+
*
|
|
188
|
+
* Non-interactive input.
|
|
189
|
+
* Reduced visual prominence.
|
|
190
|
+
*
|
|
191
|
+
* @since 2.1.0
|
|
192
|
+
*/
|
|
193
|
+
export declare const INTENT_INPUT_DISABLED: IntentDefinition;
|
|
194
|
+
/**
|
|
195
|
+
* All input intents as an array.
|
|
196
|
+
*
|
|
197
|
+
* @since 2.1.0
|
|
198
|
+
*/
|
|
199
|
+
export declare const INPUT_INTENTS: ReadonlyArray<IntentDefinition>;
|
|
200
|
+
/**
|
|
201
|
+
* Input intents as a map for quick lookup.
|
|
202
|
+
*
|
|
203
|
+
* @since 2.1.0
|
|
204
|
+
*/
|
|
205
|
+
export declare const INPUT_INTENTS_MAP: ReadonlyMap<string, IntentDefinition>;
|
|
206
|
+
/**
|
|
207
|
+
* Get an input intent by ID.
|
|
208
|
+
*
|
|
209
|
+
* @param id - The intent ID
|
|
210
|
+
* @returns The intent definition or undefined if not found
|
|
211
|
+
* @since 2.1.0
|
|
212
|
+
*/
|
|
213
|
+
export declare function getInputIntent(id: string): IntentDefinition | undefined;
|
|
214
|
+
/**
|
|
215
|
+
* Check if an intent ID is a valid input intent.
|
|
216
|
+
*
|
|
217
|
+
* @param id - The intent ID to check
|
|
218
|
+
* @returns True if the ID is a valid input intent
|
|
219
|
+
* @since 2.1.0
|
|
220
|
+
*/
|
|
221
|
+
export declare function isInputIntent(id: string): boolean;
|
|
222
|
+
/**
|
|
223
|
+
* Apply mood modifier to input intent.
|
|
224
|
+
*
|
|
225
|
+
* @param intentId - The intent ID
|
|
226
|
+
* @param mood - The mood to apply
|
|
227
|
+
* @returns Modified Factor24Config or undefined
|
|
228
|
+
* @since 2.1.0
|
|
229
|
+
*/
|
|
230
|
+
export declare function applyMoodToInputIntent(intentId: string, mood: SemanticMood): Partial<Factor24Config> | undefined;
|
|
231
|
+
//# sourceMappingURL=input-intents.d.ts.map
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Mood Modifiers - Emotional Tone Adjustments
|
|
3
|
+
*
|
|
4
|
+
* Defines how different moods modify the base Factor24 configuration.
|
|
5
|
+
* Moods adjust animation, spacing, and visual weight to convey
|
|
6
|
+
* different emotional tones.
|
|
7
|
+
*
|
|
8
|
+
* @packageDocumentation
|
|
9
|
+
* @module resolution/intents/mood-modifiers
|
|
10
|
+
* @since 2.1.0
|
|
11
|
+
*
|
|
12
|
+
* Powered by Nikkory
|
|
13
|
+
*/
|
|
14
|
+
import type { MoodModifierDefinition, SemanticMood, Factor24Config } from '../types';
|
|
15
|
+
/**
|
|
16
|
+
* Professional Mood
|
|
17
|
+
*
|
|
18
|
+
* Corporate, formal tone.
|
|
19
|
+
* Reduced animation, clean lines, subtle transitions.
|
|
20
|
+
*
|
|
21
|
+
* @since 2.1.0
|
|
22
|
+
*/
|
|
23
|
+
export declare const MOOD_PROFESSIONAL: MoodModifierDefinition;
|
|
24
|
+
/**
|
|
25
|
+
* Friendly Mood
|
|
26
|
+
*
|
|
27
|
+
* Approachable, warm tone.
|
|
28
|
+
* Slightly more animation, softer shapes.
|
|
29
|
+
*
|
|
30
|
+
* @since 2.1.0
|
|
31
|
+
*/
|
|
32
|
+
export declare const MOOD_FRIENDLY: MoodModifierDefinition;
|
|
33
|
+
/**
|
|
34
|
+
* Playful Mood
|
|
35
|
+
*
|
|
36
|
+
* Fun, animated tone.
|
|
37
|
+
* Bouncy animations, rounded shapes, vibrant.
|
|
38
|
+
*
|
|
39
|
+
* @since 2.1.0
|
|
40
|
+
*/
|
|
41
|
+
export declare const MOOD_PLAYFUL: MoodModifierDefinition;
|
|
42
|
+
/**
|
|
43
|
+
* Serious Mood
|
|
44
|
+
*
|
|
45
|
+
* Formal, minimal animation.
|
|
46
|
+
* Static elements, sharp focus.
|
|
47
|
+
*
|
|
48
|
+
* @since 2.1.0
|
|
49
|
+
*/
|
|
50
|
+
export declare const MOOD_SERIOUS: MoodModifierDefinition;
|
|
51
|
+
/**
|
|
52
|
+
* Luxurious Mood
|
|
53
|
+
*
|
|
54
|
+
* Premium, elegant tone.
|
|
55
|
+
* Slow transitions, subtle depth, refined aesthetics.
|
|
56
|
+
*
|
|
57
|
+
* @since 2.1.0
|
|
58
|
+
*/
|
|
59
|
+
export declare const MOOD_LUXURIOUS: MoodModifierDefinition;
|
|
60
|
+
/**
|
|
61
|
+
* Minimal Mood
|
|
62
|
+
*
|
|
63
|
+
* Clean, sparse tone.
|
|
64
|
+
* Reduced visual elements, focus on content.
|
|
65
|
+
*
|
|
66
|
+
* @since 2.1.0
|
|
67
|
+
*/
|
|
68
|
+
export declare const MOOD_MINIMAL: MoodModifierDefinition;
|
|
69
|
+
/**
|
|
70
|
+
* Bold Mood
|
|
71
|
+
*
|
|
72
|
+
* Strong, impactful tone.
|
|
73
|
+
* Enhanced visual weight, prominent elements.
|
|
74
|
+
*
|
|
75
|
+
* @since 2.1.0
|
|
76
|
+
*/
|
|
77
|
+
export declare const MOOD_BOLD: MoodModifierDefinition;
|
|
78
|
+
/**
|
|
79
|
+
* All mood modifiers as an array.
|
|
80
|
+
*
|
|
81
|
+
* @since 2.1.0
|
|
82
|
+
*/
|
|
83
|
+
export declare const MOOD_MODIFIERS: ReadonlyArray<MoodModifierDefinition>;
|
|
84
|
+
/**
|
|
85
|
+
* Mood modifiers as a map for quick lookup.
|
|
86
|
+
*
|
|
87
|
+
* @since 2.1.0
|
|
88
|
+
*/
|
|
89
|
+
export declare const MOOD_MODIFIERS_MAP: ReadonlyMap<SemanticMood, MoodModifierDefinition>;
|
|
90
|
+
/**
|
|
91
|
+
* Get a mood modifier by ID.
|
|
92
|
+
*
|
|
93
|
+
* @param id - The mood ID
|
|
94
|
+
* @returns The mood modifier definition or undefined if not found
|
|
95
|
+
* @since 2.1.0
|
|
96
|
+
*/
|
|
97
|
+
export declare function getMoodModifier(id: SemanticMood): MoodModifierDefinition | undefined;
|
|
98
|
+
/**
|
|
99
|
+
* Check if a mood ID is valid.
|
|
100
|
+
*
|
|
101
|
+
* @param id - The mood ID to check
|
|
102
|
+
* @returns True if the ID is a valid mood
|
|
103
|
+
* @since 2.1.0
|
|
104
|
+
*/
|
|
105
|
+
export declare function isValidMoodModifier(id: string): id is SemanticMood;
|
|
106
|
+
/**
|
|
107
|
+
* Apply mood adjustments to a base config.
|
|
108
|
+
*
|
|
109
|
+
* @param baseConfig - The base Factor24 configuration
|
|
110
|
+
* @param mood - The mood to apply
|
|
111
|
+
* @returns Modified Factor24Config
|
|
112
|
+
* @since 2.1.0
|
|
113
|
+
*/
|
|
114
|
+
export declare function applyMood(baseConfig: Partial<Factor24Config>, mood: SemanticMood): Partial<Factor24Config>;
|
|
115
|
+
/**
|
|
116
|
+
* Get all mood IDs.
|
|
117
|
+
*
|
|
118
|
+
* @returns Array of all mood IDs
|
|
119
|
+
* @since 2.1.0
|
|
120
|
+
*/
|
|
121
|
+
export declare function getAllMoodIds(): SemanticMood[];
|
|
122
|
+
/**
|
|
123
|
+
* Get mood descriptions for documentation.
|
|
124
|
+
*
|
|
125
|
+
* @returns Object with mood ID as key and description as value
|
|
126
|
+
* @since 2.1.0
|
|
127
|
+
*/
|
|
128
|
+
export declare function getMoodDescriptions(): Record<SemanticMood, string>;
|
|
129
|
+
/**
|
|
130
|
+
* Intensity levels for mood application.
|
|
131
|
+
*
|
|
132
|
+
* @since 2.1.0
|
|
133
|
+
*/
|
|
134
|
+
export type MoodIntensity = 'subtle' | 'standard' | 'strong';
|
|
135
|
+
/**
|
|
136
|
+
* Apply mood with intensity scaling.
|
|
137
|
+
*
|
|
138
|
+
* @param baseConfig - The base Factor24 configuration
|
|
139
|
+
* @param mood - The mood to apply
|
|
140
|
+
* @param _intensity - How strongly to apply the mood (currently unused, for future implementation)
|
|
141
|
+
* @returns Modified Factor24Config
|
|
142
|
+
* @since 2.1.0
|
|
143
|
+
*/
|
|
144
|
+
export declare function applyMoodWithIntensity(baseConfig: Partial<Factor24Config>, mood: SemanticMood, _intensity?: MoodIntensity): Partial<Factor24Config>;
|
|
145
|
+
/**
|
|
146
|
+
* Combine multiple moods (later moods override earlier).
|
|
147
|
+
*
|
|
148
|
+
* @param baseConfig - The base Factor24 configuration
|
|
149
|
+
* @param moods - Array of moods to apply in order
|
|
150
|
+
* @returns Modified Factor24Config
|
|
151
|
+
* @since 2.1.0
|
|
152
|
+
*/
|
|
153
|
+
export declare function combineMoods(baseConfig: Partial<Factor24Config>, moods: SemanticMood[]): Partial<Factor24Config>;
|
|
154
|
+
//# sourceMappingURL=mood-modifiers.d.ts.map
|