@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,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Resolution Module - 5-Level Abstraction API
|
|
3
|
+
*
|
|
4
|
+
* This module provides the complete resolution engine for converting
|
|
5
|
+
* multi-level props (Level 1-5) into complete 24-factor configurations.
|
|
6
|
+
*
|
|
7
|
+
* @packageDocumentation
|
|
8
|
+
* @module resolution
|
|
9
|
+
* @since 2.1.0
|
|
10
|
+
*
|
|
11
|
+
* Powered by Nikkory
|
|
12
|
+
*/
|
|
13
|
+
export type { Factor24Config, SemanticIntent, SemanticMood, IntentDefinition, MoodModifierDefinition, PresetCategory, PresetDefinition, LookShorthand, FeelShorthand, SurfaceShorthand, SpacingShorthand, ShorthandMappings, VisualGroup, MotionGroup, LayoutGroup, ExperienceGroup, FactorGroups, MultiLevelProps, ResolutionResult, PresetRegistry, IntentRegistry, FactorShape, FactorPosition, FactorIconPosition, FactorState, FactorAnimation, FactorElevation, FactorA11y, FactorAlignment, FactorOrientation, FactorDensity, FactorLoadingState, FactorResponsiveConfig, FactorTheme, FactorSpacing, FactorTypography, FactorBorder, FactorOpacity, FactorOverflow, FactorCursor, FactorZIndex, FactorTransition, ComponentSize, ColorScheme, } from './types';
|
|
14
|
+
export { DEFAULT_FACTOR24_CONFIG, FACTOR24_KEYS, SEMANTIC_INTENTS, SEMANTIC_MOODS, getDefaultFactorValue, isValidFactor24Key, isValidIntent, isValidMood, } from './types';
|
|
15
|
+
export { resolveProps, resolveWithDefaults, resolveToConfig, resolveWithDebug, resolveIntent, resolveShorthands, detectLevels, validateMultiLevelProps, registerPreset, getPreset, hasPreset, getAllPresets, clearPresets, getAllIntents, getAllMoods, getIntent, getMood, INTENT_DEFINITIONS, MOOD_DEFINITIONS, DEFAULT_RESOLUTION_OPTIONS, } from './resolveProps';
|
|
16
|
+
export type { ResolutionOptions, ResolutionValidationResult, } from './resolveProps';
|
|
17
|
+
export { expandGroups, validateGroups, mergeFactorGroups, extractAllGroups, hasVisualGroupProps, hasMotionGroupProps, hasLayoutGroupProps, hasExperienceGroupProps, detectGroups, GROUP_NAMES, GROUP_FACTOR_KEYS, getGroupForFactor, } from './groups';
|
|
18
|
+
export type { GroupName, GroupValidationResult } from './groups';
|
|
19
|
+
export { expandVisualGroup, validateVisualGroup, mergeVisualGroups, extractVisualGroup, getVisualPreset, VISUAL_PRESETS, VALID_SHAPES, VALID_BORDERS, VALID_OPACITIES, VALID_ELEVATIONS, VALID_COLOR_SCHEMES, isValidShape, isValidBorder, isValidOpacity, isValidElevation, isValidColorScheme, } from './groups';
|
|
20
|
+
export { expandMotionGroup, validateMotionGroup, mergeMotionGroups, extractMotionGroup, getMotionPreset, MOTION_PRESETS, VALID_ANIMATIONS, VALID_TRANSITIONS, isValidAnimation, isValidTransition, getTransitionDuration, getAnimationEasing, shouldReduceMotion, } from './groups';
|
|
21
|
+
export { expandLayoutGroup, validateLayoutGroup, mergeLayoutGroups, extractLayoutGroup, getLayoutPreset, LAYOUT_PRESETS, VALID_POSITIONS, VALID_ORIENTATIONS, VALID_DENSITIES, VALID_SPACINGS, VALID_OVERFLOWS, VALID_ALIGNMENTS, isValidPosition, isValidOrientation, isValidDensity, isValidSpacing, isValidOverflow, isValidAlignment, getSpacingValue, getFlexDirection, getJustifyContent, getAlignItems, } from './groups';
|
|
22
|
+
export { expandExperienceGroup, validateExperienceGroup, mergeExperienceGroups, extractExperienceGroup, getExperiencePreset, EXPERIENCE_PRESETS, VALID_A11Y_LEVELS, VALID_CURSORS, VALID_Z_INDEXES, VALID_LOADING_STATES, isValidA11y, isValidCursor, isValidZIndex, isValidLoadingState, getZIndexValue, getCursorValue, shouldBeFocusable, getAriaAttributes, getLoadingStateMessage, isLoading, hasLoadingCompleted, } from './groups';
|
|
23
|
+
export { expandShorthands, validateShorthands, hasShorthandProps, extractShorthandProps, detectShorthands, mergeShorthandProps, getShorthandPreset, SHORTHAND_PRESETS, SHORTHAND_NAMES, SHORTHAND_VALUES, ALL_SHORTHAND_MAPPINGS, } from './shorthand';
|
|
24
|
+
export type { ShorthandProps, ShorthandName, ShorthandValidationResult, } from './shorthand';
|
|
25
|
+
export { expandLook, LOOK_MAPPINGS, VALID_LOOK_VALUES, isValidLook, getLookDescriptions, getLookCharacteristic, getLookWeight, getLookForWeight, hasVisibleBorder, hasElevation, getContrastingLook, } from './shorthand';
|
|
26
|
+
export { expandFeel, FEEL_MAPPINGS, VALID_FEEL_VALUES, isValidFeel, getFeelDescriptions, getFeelDuration, getFeelEnergy, hasAnimations, supportsReducedMotion, getReducedMotionAlternative, getFeelForEnergy, getFeelEasing, isInteractive, getCalmerFeel, getMoreEnergeticFeel, } from './shorthand';
|
|
27
|
+
export { expandSurface, SURFACE_MAPPINGS, VALID_SURFACE_VALUES, isValidSurface, getSurfaceDescriptions, getSurfaceDepth, hasSurfaceElevation, isOverlaySurface, getSurfaceZIndex, getSurfaceForDepth, getLowerSurface, getHigherSurface, getSurfaceShadow, needsBackdrop, getSurfaceRole, } from './shorthand';
|
|
28
|
+
export { expandSpacingShorthand, SPACING_MAPPINGS, VALID_SPACING_SHORTHAND_VALUES, isValidSpacingShorthand, getSpacingDescriptions, getSpacingMultiplier, getPaddingValue, getGapValue, getDensityLevel, getSpacingForDensity, getTighterSpacing, getLooserSpacing, isCompactSpacing, isComfortableSpacing, getInlineSpacing, getBlockSpacing, getResponsiveSpacing, } from './shorthand';
|
|
29
|
+
export { presetRegistry, resolvePreset, resolvePresetWithFallback, getPresetsForComponent, getPresetsByCategory, searchPresets, isValidPreset, getPresetMetadata, getAllPresetIds, getPresetStats, createPresetRegistry, PresetRegistryImpl, BUTTON_PRESETS, BUTTON_PRESETS_MAP, getButtonPreset, getButtonPresetsByTags, isButtonPreset, BUTTON_HERO_PRIMARY, BUTTON_HERO_SECONDARY, BUTTON_CTA_GRADIENT, BUTTON_CTA_MINIMAL, BUTTON_FORM_SUBMIT, BUTTON_FORM_CANCEL, BUTTON_FORM_DELETE, BUTTON_FORM_SAVE, BUTTON_FORM_RESET, BUTTON_NAV_MENU, BUTTON_NAV_LINK, BUTTON_BREADCRUMB, BUTTON_TAB, BUTTON_ICON_DEFAULT, BUTTON_ICON_CIRCLE, BUTTON_ICON_SUBTLE, BUTTON_COMPACT, BUTTON_PILL, BUTTON_LOADING, BUTTON_FAB, BUTTON_SPLIT, CARD_PRESETS, CARD_PRESETS_MAP, getCardPreset, getCardPresetsByTags, isCardPreset, CARD_CONTENT_DEFAULT, CARD_CONTENT_FEATURED, CARD_CONTENT_MINIMAL, CARD_PRODUCT_DEFAULT, CARD_PRODUCT_FEATURED, CARD_PRODUCT_COMPACT, CARD_PROFILE_DEFAULT, CARD_PROFILE_HORIZONTAL, CARD_PROFILE_COMPACT, CARD_INTERACTIVE_DEFAULT, CARD_INTERACTIVE_SELECTION, CARD_INTERACTIVE_DRAGGABLE, CARD_GLASS, CARD_NEUMORPHIC, CARD_STATS, CARD_PRICING, CARD_TESTIMONIAL, CARD_NOTIFICATION, INPUT_PRESETS, INPUT_PRESETS_MAP, getInputPreset, getInputPresetsByTags, isInputPreset, INPUT_DEFAULT, INPUT_FILLED, INPUT_UNDERLINE, INPUT_GHOST, INPUT_SEARCH_DEFAULT, INPUT_SEARCH_ELEVATED, INPUT_SEARCH_COMPACT, INPUT_PASSWORD, INPUT_CODE, INPUT_NUMBER, INPUT_TEXTAREA, INPUT_INLINE, INPUT_COMPACT, INPUT_LARGE, INPUT_ERROR, INPUT_SUCCESS, INPUT_DISABLED, } from './presets';
|
|
30
|
+
export type { IPresetRegistry } from './presets';
|
|
31
|
+
export { intentRegistry, resolveIntentWithFallback, resolveMood, getIntentsForComponent, getAllIntentIds, getAllMoodIds, getIntentMetadata, getIntentStats, createIntentRegistry, IntentRegistryImpl, 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, 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 './intents';
|
|
32
|
+
export type { MoodIntensity, IIntentRegistry } from './intents';
|
|
33
|
+
export { Factor24Validator, factor24Validator, validateFactor24Config, validateFactor, isValidFactor24Config, assertValidFactor24Config, VALID_SIZES, VALID_COLOR_SCHEMES as VALIDATOR_COLOR_SCHEMES, VALID_SHAPES as VALIDATOR_SHAPES, VALID_POSITIONS as VALIDATOR_POSITIONS, VALID_ICON_POSITIONS, VALID_STATES, VALID_ANIMATIONS as VALIDATOR_ANIMATIONS, VALID_ELEVATIONS as VALIDATOR_ELEVATIONS, VALID_A11Y_LEVELS as VALIDATOR_A11Y_LEVELS, VALID_ALIGNMENTS as VALIDATOR_ALIGNMENTS, VALID_ORIENTATIONS as VALIDATOR_ORIENTATIONS, VALID_DENSITIES as VALIDATOR_DENSITIES, VALID_LOADING_STATES as VALIDATOR_LOADING_STATES, VALID_THEMES, VALID_SPACINGS as VALIDATOR_SPACINGS, VALID_TYPOGRAPHIES, VALID_BORDERS as VALIDATOR_BORDERS, VALID_OPACITIES as VALIDATOR_OPACITIES, VALID_OVERFLOWS as VALIDATOR_OVERFLOWS, VALID_CURSORS as VALIDATOR_CURSORS, VALID_Z_INDICES, VALID_TRANSITIONS as VALIDATOR_TRANSITIONS, isValidSize, isValidColorScheme as isValidColorSchemeValue, isValidShape as isValidShapeValue, isValidPosition as isValidPositionValue, isValidIconPosition, isValidState, isValidAnimation as isValidAnimationValue, isValidElevation as isValidElevationValue, isValidA11y as isValidA11yValue, isValidAlignment as isValidAlignmentValue, isValidOrientation as isValidOrientationValue, isValidDensity as isValidDensityValue, isValidLoadingState as isValidLoadingStateValue, isValidTheme, isValidSpacing as isValidSpacingValue, isValidTypography, isValidBorder as isValidBorderValue, isValidOpacity as isValidOpacityValue, isValidOverflow as isValidOverflowValue, isValidCursor as isValidCursorValue, isValidZIndex as isValidZIndexValue, isValidTransition as isValidTransitionValue, } from './validators';
|
|
34
|
+
export type { Factor24ValidationError, Factor24ValidationResult, } from './validators';
|
|
35
|
+
export { LEVEL_5_EXAMPLES, LEVEL_3_EXAMPLES, LEVEL_2_EXAMPLES, LEVEL_1_EXAMPLES, MIXED_LEVEL_EXAMPLES, BUTTON_EXAMPLES, CARD_EXAMPLES, INPUT_EXAMPLES, A11Y_EXAMPLES, RESPONSIVE_EXAMPLES, ALL_EXAMPLES, getExample, listExamples, listCategories, } from './examples';
|
|
36
|
+
export { runAllDemos, runDemo$, interactiveResolve, demoLevel5, demoLevel3, demoLevel2, demoLevel1, demoMixedLevels, demoPriority, demoDebugMode, } from './demo';
|
|
37
|
+
export { createDebugTrace, formatDebugTrace, trackFactorChanges, diffConfigs, assertResolution, debugLogger, } from './debugger';
|
|
38
|
+
export type { DebugStep, DebugTrace, FactorChange } from './debugger';
|
|
39
|
+
export { ResolutionCache, globalCache, createMemoizedResolver, memoizeExpansion, memoizedResolve, batchResolve, resolveAsync, batchResolveAsync, createLazyResolver, ResolutionProfiler, profiler, areConfigsEqual, createConfigComparator, resolveFactors, } from './performance';
|
|
40
|
+
export type { PerformanceMetrics } from './performance';
|
|
41
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Button Intents - Semantic Intent Definitions for Buttons
|
|
3
|
+
*
|
|
4
|
+
* Defines the mapping from semantic intents to Factor24 configurations
|
|
5
|
+
* specifically optimized for button components.
|
|
6
|
+
*
|
|
7
|
+
* @packageDocumentation
|
|
8
|
+
* @module resolution/intents/button-intents
|
|
9
|
+
* @since 2.1.0
|
|
10
|
+
*
|
|
11
|
+
* Powered by Nikkory
|
|
12
|
+
*/
|
|
13
|
+
import type { IntentDefinition, SemanticIntent, SemanticMood, Factor24Config } from '../types';
|
|
14
|
+
/**
|
|
15
|
+
* CTA Intent - Call to Action
|
|
16
|
+
*
|
|
17
|
+
* Highest priority action for conversion.
|
|
18
|
+
* Maximum visual prominence and engagement.
|
|
19
|
+
*
|
|
20
|
+
* @since 2.1.0
|
|
21
|
+
*/
|
|
22
|
+
export declare const INTENT_CTA: IntentDefinition;
|
|
23
|
+
/**
|
|
24
|
+
* Primary Intent
|
|
25
|
+
*
|
|
26
|
+
* Main action in a context.
|
|
27
|
+
* Strong visual presence.
|
|
28
|
+
*
|
|
29
|
+
* @since 2.1.0
|
|
30
|
+
*/
|
|
31
|
+
export declare const INTENT_PRIMARY: IntentDefinition;
|
|
32
|
+
/**
|
|
33
|
+
* Secondary Intent
|
|
34
|
+
*
|
|
35
|
+
* Alternative action, less prominent.
|
|
36
|
+
* Outlined or subtle styling.
|
|
37
|
+
*
|
|
38
|
+
* @since 2.1.0
|
|
39
|
+
*/
|
|
40
|
+
export declare const INTENT_SECONDARY: IntentDefinition;
|
|
41
|
+
/**
|
|
42
|
+
* Tertiary Intent
|
|
43
|
+
*
|
|
44
|
+
* Low-emphasis action.
|
|
45
|
+
* Ghost or link styling.
|
|
46
|
+
*
|
|
47
|
+
* @since 2.1.0
|
|
48
|
+
*/
|
|
49
|
+
export declare const INTENT_TERTIARY: IntentDefinition;
|
|
50
|
+
/**
|
|
51
|
+
* Destructive Intent
|
|
52
|
+
*
|
|
53
|
+
* Dangerous or irreversible action.
|
|
54
|
+
* Warning/danger color scheme.
|
|
55
|
+
*
|
|
56
|
+
* @since 2.1.0
|
|
57
|
+
*/
|
|
58
|
+
export declare const INTENT_DESTRUCTIVE: IntentDefinition;
|
|
59
|
+
/**
|
|
60
|
+
* Confirm Intent
|
|
61
|
+
*
|
|
62
|
+
* Confirmation action (OK, Yes, Accept).
|
|
63
|
+
* Success-oriented styling.
|
|
64
|
+
*
|
|
65
|
+
* @since 2.1.0
|
|
66
|
+
*/
|
|
67
|
+
export declare const INTENT_CONFIRM: IntentDefinition;
|
|
68
|
+
/**
|
|
69
|
+
* Cancel Intent
|
|
70
|
+
*
|
|
71
|
+
* Dismissal action (Cancel, Close, No).
|
|
72
|
+
* Subtle styling to reduce accidental clicks.
|
|
73
|
+
*
|
|
74
|
+
* @since 2.1.0
|
|
75
|
+
*/
|
|
76
|
+
export declare const INTENT_CANCEL: IntentDefinition;
|
|
77
|
+
/**
|
|
78
|
+
* Navigation Intent
|
|
79
|
+
*
|
|
80
|
+
* Standard navigation action.
|
|
81
|
+
* Clean, unobtrusive styling.
|
|
82
|
+
*
|
|
83
|
+
* @since 2.1.0
|
|
84
|
+
*/
|
|
85
|
+
export declare const INTENT_NAV: IntentDefinition;
|
|
86
|
+
/**
|
|
87
|
+
* Navigation Active Intent
|
|
88
|
+
*
|
|
89
|
+
* Active/selected navigation state.
|
|
90
|
+
* Visual indication of current location.
|
|
91
|
+
*
|
|
92
|
+
* @since 2.1.0
|
|
93
|
+
*/
|
|
94
|
+
export declare const INTENT_NAV_ACTIVE: IntentDefinition;
|
|
95
|
+
/**
|
|
96
|
+
* Navigation Subtle Intent
|
|
97
|
+
*
|
|
98
|
+
* Subtle navigation for secondary menus.
|
|
99
|
+
* Minimal visual presence.
|
|
100
|
+
*
|
|
101
|
+
* @since 2.1.0
|
|
102
|
+
*/
|
|
103
|
+
export declare const INTENT_NAV_SUBTLE: IntentDefinition;
|
|
104
|
+
/**
|
|
105
|
+
* Link Intent
|
|
106
|
+
*
|
|
107
|
+
* Link-styled navigation.
|
|
108
|
+
* Text-like appearance with button semantics.
|
|
109
|
+
*
|
|
110
|
+
* @since 2.1.0
|
|
111
|
+
*/
|
|
112
|
+
export declare const INTENT_LINK: IntentDefinition;
|
|
113
|
+
/**
|
|
114
|
+
* Success Intent
|
|
115
|
+
*
|
|
116
|
+
* Success state indication.
|
|
117
|
+
* Positive feedback styling.
|
|
118
|
+
*
|
|
119
|
+
* @since 2.1.0
|
|
120
|
+
*/
|
|
121
|
+
export declare const INTENT_SUCCESS: IntentDefinition;
|
|
122
|
+
/**
|
|
123
|
+
* Warning Intent
|
|
124
|
+
*
|
|
125
|
+
* Warning state indication.
|
|
126
|
+
* Caution feedback styling.
|
|
127
|
+
*
|
|
128
|
+
* @since 2.1.0
|
|
129
|
+
*/
|
|
130
|
+
export declare const INTENT_WARNING: IntentDefinition;
|
|
131
|
+
/**
|
|
132
|
+
* Error Intent
|
|
133
|
+
*
|
|
134
|
+
* Error state indication.
|
|
135
|
+
* Negative feedback styling.
|
|
136
|
+
*
|
|
137
|
+
* @since 2.1.0
|
|
138
|
+
*/
|
|
139
|
+
export declare const INTENT_ERROR: IntentDefinition;
|
|
140
|
+
/**
|
|
141
|
+
* Info Intent
|
|
142
|
+
*
|
|
143
|
+
* Informational state.
|
|
144
|
+
* Neutral feedback styling.
|
|
145
|
+
*
|
|
146
|
+
* @since 2.1.0
|
|
147
|
+
*/
|
|
148
|
+
export declare const INTENT_INFO: IntentDefinition;
|
|
149
|
+
/**
|
|
150
|
+
* Ghost Intent
|
|
151
|
+
*
|
|
152
|
+
* Minimal visual presence.
|
|
153
|
+
* Only visible on interaction.
|
|
154
|
+
*
|
|
155
|
+
* @since 2.1.0
|
|
156
|
+
*/
|
|
157
|
+
export declare const INTENT_GHOST: IntentDefinition;
|
|
158
|
+
/**
|
|
159
|
+
* Subtle Intent
|
|
160
|
+
*
|
|
161
|
+
* Understated styling.
|
|
162
|
+
* Low visual weight.
|
|
163
|
+
*
|
|
164
|
+
* @since 2.1.0
|
|
165
|
+
*/
|
|
166
|
+
export declare const INTENT_SUBTLE: IntentDefinition;
|
|
167
|
+
/**
|
|
168
|
+
* Hero Intent
|
|
169
|
+
*
|
|
170
|
+
* Hero/featured styling.
|
|
171
|
+
* Maximum visual impact.
|
|
172
|
+
*
|
|
173
|
+
* @since 2.1.0
|
|
174
|
+
*/
|
|
175
|
+
export declare const INTENT_HERO: IntentDefinition;
|
|
176
|
+
/**
|
|
177
|
+
* Premium Intent
|
|
178
|
+
*
|
|
179
|
+
* Premium/luxury styling.
|
|
180
|
+
* Elegant and refined.
|
|
181
|
+
*
|
|
182
|
+
* @since 2.1.0
|
|
183
|
+
*/
|
|
184
|
+
export declare const INTENT_PREMIUM: IntentDefinition;
|
|
185
|
+
/**
|
|
186
|
+
* Brand Intent
|
|
187
|
+
*
|
|
188
|
+
* Brand emphasis styling.
|
|
189
|
+
* Uses brand colors prominently.
|
|
190
|
+
*
|
|
191
|
+
* @since 2.1.0
|
|
192
|
+
*/
|
|
193
|
+
export declare const INTENT_BRAND: IntentDefinition;
|
|
194
|
+
/**
|
|
195
|
+
* All button intents as an array.
|
|
196
|
+
*
|
|
197
|
+
* @since 2.1.0
|
|
198
|
+
*/
|
|
199
|
+
export declare const BUTTON_INTENTS: ReadonlyArray<IntentDefinition>;
|
|
200
|
+
/**
|
|
201
|
+
* Button intents as a map for quick lookup.
|
|
202
|
+
*
|
|
203
|
+
* @since 2.1.0
|
|
204
|
+
*/
|
|
205
|
+
export declare const BUTTON_INTENTS_MAP: ReadonlyMap<SemanticIntent, IntentDefinition>;
|
|
206
|
+
/**
|
|
207
|
+
* Get a button 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 getButtonIntent(id: SemanticIntent): IntentDefinition | undefined;
|
|
214
|
+
/**
|
|
215
|
+
* Check if an intent ID is a valid button intent.
|
|
216
|
+
*
|
|
217
|
+
* @param id - The intent ID to check
|
|
218
|
+
* @returns True if the ID is a valid button intent
|
|
219
|
+
* @since 2.1.0
|
|
220
|
+
*/
|
|
221
|
+
export declare function isButtonIntent(id: string): id is SemanticIntent;
|
|
222
|
+
/**
|
|
223
|
+
* Apply a mood modifier to an intent.
|
|
224
|
+
*
|
|
225
|
+
* @param intent - The intent definition
|
|
226
|
+
* @param mood - The mood to apply
|
|
227
|
+
* @returns Modified Factor24Config
|
|
228
|
+
* @since 2.1.0
|
|
229
|
+
*/
|
|
230
|
+
export declare function applyMoodToIntent(intent: IntentDefinition, mood: SemanticMood): Partial<Factor24Config>;
|
|
231
|
+
//# sourceMappingURL=button-intents.d.ts.map
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Card Intents - Semantic Intent Definitions for Cards
|
|
3
|
+
*
|
|
4
|
+
* Defines the mapping from semantic intents to Factor24 configurations
|
|
5
|
+
* specifically optimized for card components.
|
|
6
|
+
*
|
|
7
|
+
* @packageDocumentation
|
|
8
|
+
* @module resolution/intents/card-intents
|
|
9
|
+
* @since 2.1.0
|
|
10
|
+
*
|
|
11
|
+
* Powered by Nikkory
|
|
12
|
+
*/
|
|
13
|
+
import type { IntentDefinition, SemanticMood, Factor24Config } from '../types';
|
|
14
|
+
/**
|
|
15
|
+
* Content Intent - General content card
|
|
16
|
+
*
|
|
17
|
+
* Standard content presentation.
|
|
18
|
+
* Clean, readable appearance.
|
|
19
|
+
*
|
|
20
|
+
* @since 2.1.0
|
|
21
|
+
*/
|
|
22
|
+
export declare const INTENT_CARD_CONTENT: IntentDefinition;
|
|
23
|
+
/**
|
|
24
|
+
* Featured Intent - Highlighted content
|
|
25
|
+
*
|
|
26
|
+
* Featured/highlighted content presentation.
|
|
27
|
+
* More visual prominence than standard content.
|
|
28
|
+
*
|
|
29
|
+
* @since 2.1.0
|
|
30
|
+
*/
|
|
31
|
+
export declare const INTENT_CARD_FEATURED: IntentDefinition;
|
|
32
|
+
/**
|
|
33
|
+
* Article Intent - Long-form content
|
|
34
|
+
*
|
|
35
|
+
* Article/blog post card.
|
|
36
|
+
* Optimized for reading flow.
|
|
37
|
+
*
|
|
38
|
+
* @since 2.1.0
|
|
39
|
+
*/
|
|
40
|
+
export declare const INTENT_CARD_ARTICLE: IntentDefinition;
|
|
41
|
+
/**
|
|
42
|
+
* Interactive Intent - Clickable card
|
|
43
|
+
*
|
|
44
|
+
* Interactive card with hover/focus states.
|
|
45
|
+
* Clear affordance for interaction.
|
|
46
|
+
*
|
|
47
|
+
* @since 2.1.0
|
|
48
|
+
*/
|
|
49
|
+
export declare const INTENT_CARD_INTERACTIVE: IntentDefinition;
|
|
50
|
+
/**
|
|
51
|
+
* Selectable Intent - Selection card
|
|
52
|
+
*
|
|
53
|
+
* Card that can be selected/checked.
|
|
54
|
+
* Visual feedback for selected state.
|
|
55
|
+
*
|
|
56
|
+
* @since 2.1.0
|
|
57
|
+
*/
|
|
58
|
+
export declare const INTENT_CARD_SELECTABLE: IntentDefinition;
|
|
59
|
+
/**
|
|
60
|
+
* Draggable Intent - Drag-and-drop card
|
|
61
|
+
*
|
|
62
|
+
* Card that can be dragged and reordered.
|
|
63
|
+
* Grab cursor and drag feedback.
|
|
64
|
+
*
|
|
65
|
+
* @since 2.1.0
|
|
66
|
+
*/
|
|
67
|
+
export declare const INTENT_CARD_DRAGGABLE: IntentDefinition;
|
|
68
|
+
/**
|
|
69
|
+
* Product Intent - Product card
|
|
70
|
+
*
|
|
71
|
+
* E-commerce product presentation.
|
|
72
|
+
* Image-focused with price/action area.
|
|
73
|
+
*
|
|
74
|
+
* @since 2.1.0
|
|
75
|
+
*/
|
|
76
|
+
export declare const INTENT_CARD_PRODUCT: IntentDefinition;
|
|
77
|
+
/**
|
|
78
|
+
* Pricing Intent - Pricing card
|
|
79
|
+
*
|
|
80
|
+
* Pricing plan presentation.
|
|
81
|
+
* Clear tier comparison layout.
|
|
82
|
+
*
|
|
83
|
+
* @since 2.1.0
|
|
84
|
+
*/
|
|
85
|
+
export declare const INTENT_CARD_PRICING: IntentDefinition;
|
|
86
|
+
/**
|
|
87
|
+
* Profile Intent - User profile card
|
|
88
|
+
*
|
|
89
|
+
* User profile/avatar presentation.
|
|
90
|
+
* Focused on identity display.
|
|
91
|
+
*
|
|
92
|
+
* @since 2.1.0
|
|
93
|
+
*/
|
|
94
|
+
export declare const INTENT_CARD_PROFILE: IntentDefinition;
|
|
95
|
+
/**
|
|
96
|
+
* Testimonial Intent - Testimonial card
|
|
97
|
+
*
|
|
98
|
+
* Customer testimonial/review.
|
|
99
|
+
* Quote-focused layout.
|
|
100
|
+
*
|
|
101
|
+
* @since 2.1.0
|
|
102
|
+
*/
|
|
103
|
+
export declare const INTENT_CARD_TESTIMONIAL: IntentDefinition;
|
|
104
|
+
/**
|
|
105
|
+
* Stats Intent - Statistics card
|
|
106
|
+
*
|
|
107
|
+
* Numeric stats/KPI presentation.
|
|
108
|
+
* Large numbers with context.
|
|
109
|
+
*
|
|
110
|
+
* @since 2.1.0
|
|
111
|
+
*/
|
|
112
|
+
export declare const INTENT_CARD_STATS: IntentDefinition;
|
|
113
|
+
/**
|
|
114
|
+
* Notification Intent - Notification card
|
|
115
|
+
*
|
|
116
|
+
* Notification/alert card.
|
|
117
|
+
* Attention-grabbing with action.
|
|
118
|
+
*
|
|
119
|
+
* @since 2.1.0
|
|
120
|
+
*/
|
|
121
|
+
export declare const INTENT_CARD_NOTIFICATION: IntentDefinition;
|
|
122
|
+
/**
|
|
123
|
+
* Glass Intent - Glassmorphic card
|
|
124
|
+
*
|
|
125
|
+
* Frosted glass effect card.
|
|
126
|
+
* Modern, translucent appearance.
|
|
127
|
+
*
|
|
128
|
+
* @since 2.1.0
|
|
129
|
+
*/
|
|
130
|
+
export declare const INTENT_CARD_GLASS: IntentDefinition;
|
|
131
|
+
/**
|
|
132
|
+
* Neumorphic Intent - Neumorphic card
|
|
133
|
+
*
|
|
134
|
+
* Soft UI style with inset shadows.
|
|
135
|
+
* Modern, tactile appearance.
|
|
136
|
+
*
|
|
137
|
+
* @since 2.1.0
|
|
138
|
+
*/
|
|
139
|
+
export declare const INTENT_CARD_NEUMORPHIC: IntentDefinition;
|
|
140
|
+
/**
|
|
141
|
+
* All card intents as an array.
|
|
142
|
+
*
|
|
143
|
+
* @since 2.1.0
|
|
144
|
+
*/
|
|
145
|
+
export declare const CARD_INTENTS: ReadonlyArray<IntentDefinition>;
|
|
146
|
+
/**
|
|
147
|
+
* Card intents as a map for quick lookup.
|
|
148
|
+
*
|
|
149
|
+
* @since 2.1.0
|
|
150
|
+
*/
|
|
151
|
+
export declare const CARD_INTENTS_MAP: ReadonlyMap<string, IntentDefinition>;
|
|
152
|
+
/**
|
|
153
|
+
* Get a card intent by ID.
|
|
154
|
+
*
|
|
155
|
+
* @param id - The intent ID
|
|
156
|
+
* @returns The intent definition or undefined if not found
|
|
157
|
+
* @since 2.1.0
|
|
158
|
+
*/
|
|
159
|
+
export declare function getCardIntent(id: string): IntentDefinition | undefined;
|
|
160
|
+
/**
|
|
161
|
+
* Check if an intent ID is a valid card intent.
|
|
162
|
+
*
|
|
163
|
+
* @param id - The intent ID to check
|
|
164
|
+
* @returns True if the ID is a valid card intent
|
|
165
|
+
* @since 2.1.0
|
|
166
|
+
*/
|
|
167
|
+
export declare function isCardIntent(id: string): boolean;
|
|
168
|
+
/**
|
|
169
|
+
* Apply mood modifier to card intent.
|
|
170
|
+
*
|
|
171
|
+
* @param intentId - The intent ID
|
|
172
|
+
* @param mood - The mood to apply
|
|
173
|
+
* @returns Modified Factor24Config or undefined
|
|
174
|
+
* @since 2.1.0
|
|
175
|
+
*/
|
|
176
|
+
export declare function applyMoodToCardIntent(intentId: string, mood: SemanticMood): Partial<Factor24Config> | undefined;
|
|
177
|
+
//# sourceMappingURL=card-intents.d.ts.map
|
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Feedback Intents - Semantic Intent Definitions for Feedback Components
|
|
3
|
+
*
|
|
4
|
+
* Defines the mapping from semantic intents to Factor24 configurations
|
|
5
|
+
* specifically optimized for feedback and notification components.
|
|
6
|
+
*
|
|
7
|
+
* @packageDocumentation
|
|
8
|
+
* @module resolution/intents/feedback-intents
|
|
9
|
+
* @since 2.1.0
|
|
10
|
+
*
|
|
11
|
+
* Powered by Nikkory
|
|
12
|
+
*/
|
|
13
|
+
import type { IntentDefinition, SemanticMood, Factor24Config } from '../types';
|
|
14
|
+
/**
|
|
15
|
+
* Alert Info Intent - Informational alert
|
|
16
|
+
*
|
|
17
|
+
* Neutral informational message.
|
|
18
|
+
* Non-critical notification.
|
|
19
|
+
*
|
|
20
|
+
* @since 2.1.0
|
|
21
|
+
*/
|
|
22
|
+
export declare const INTENT_ALERT_INFO: IntentDefinition;
|
|
23
|
+
/**
|
|
24
|
+
* Alert Success Intent - Success alert
|
|
25
|
+
*
|
|
26
|
+
* Positive confirmation message.
|
|
27
|
+
* Action completed successfully.
|
|
28
|
+
*
|
|
29
|
+
* @since 2.1.0
|
|
30
|
+
*/
|
|
31
|
+
export declare const INTENT_ALERT_SUCCESS: IntentDefinition;
|
|
32
|
+
/**
|
|
33
|
+
* Alert Warning Intent - Warning alert
|
|
34
|
+
*
|
|
35
|
+
* Caution message for attention.
|
|
36
|
+
* Non-blocking but important.
|
|
37
|
+
*
|
|
38
|
+
* @since 2.1.0
|
|
39
|
+
*/
|
|
40
|
+
export declare const INTENT_ALERT_WARNING: IntentDefinition;
|
|
41
|
+
/**
|
|
42
|
+
* Alert Error Intent - Error alert
|
|
43
|
+
*
|
|
44
|
+
* Critical error message.
|
|
45
|
+
* Requires user attention/action.
|
|
46
|
+
*
|
|
47
|
+
* @since 2.1.0
|
|
48
|
+
*/
|
|
49
|
+
export declare const INTENT_ALERT_ERROR: IntentDefinition;
|
|
50
|
+
/**
|
|
51
|
+
* Toast Default Intent - Default toast
|
|
52
|
+
*
|
|
53
|
+
* Temporary notification message.
|
|
54
|
+
* Auto-dismissing feedback.
|
|
55
|
+
*
|
|
56
|
+
* @since 2.1.0
|
|
57
|
+
*/
|
|
58
|
+
export declare const INTENT_TOAST_DEFAULT: IntentDefinition;
|
|
59
|
+
/**
|
|
60
|
+
* Toast Success Intent - Success toast
|
|
61
|
+
*
|
|
62
|
+
* Quick success confirmation.
|
|
63
|
+
* Positive feedback toast.
|
|
64
|
+
*
|
|
65
|
+
* @since 2.1.0
|
|
66
|
+
*/
|
|
67
|
+
export declare const INTENT_TOAST_SUCCESS: IntentDefinition;
|
|
68
|
+
/**
|
|
69
|
+
* Toast Error Intent - Error toast
|
|
70
|
+
*
|
|
71
|
+
* Quick error notification.
|
|
72
|
+
* Dismissable error feedback.
|
|
73
|
+
*
|
|
74
|
+
* @since 2.1.0
|
|
75
|
+
*/
|
|
76
|
+
export declare const INTENT_TOAST_ERROR: IntentDefinition;
|
|
77
|
+
/**
|
|
78
|
+
* Toast Action Intent - Action toast
|
|
79
|
+
*
|
|
80
|
+
* Toast with action button.
|
|
81
|
+
* Undo or other action support.
|
|
82
|
+
*
|
|
83
|
+
* @since 2.1.0
|
|
84
|
+
*/
|
|
85
|
+
export declare const INTENT_TOAST_ACTION: IntentDefinition;
|
|
86
|
+
/**
|
|
87
|
+
* Progress Linear Intent - Linear progress
|
|
88
|
+
*
|
|
89
|
+
* Horizontal progress bar.
|
|
90
|
+
* Determinate or indeterminate.
|
|
91
|
+
*
|
|
92
|
+
* @since 2.1.0
|
|
93
|
+
*/
|
|
94
|
+
export declare const INTENT_PROGRESS_LINEAR: IntentDefinition;
|
|
95
|
+
/**
|
|
96
|
+
* Progress Circular Intent - Circular progress
|
|
97
|
+
*
|
|
98
|
+
* Circular progress indicator.
|
|
99
|
+
* Spinner or percentage display.
|
|
100
|
+
*
|
|
101
|
+
* @since 2.1.0
|
|
102
|
+
*/
|
|
103
|
+
export declare const INTENT_PROGRESS_CIRCULAR: IntentDefinition;
|
|
104
|
+
/**
|
|
105
|
+
* Skeleton Intent - Loading placeholder
|
|
106
|
+
*
|
|
107
|
+
* Content placeholder during load.
|
|
108
|
+
* Shimmer effect animation.
|
|
109
|
+
*
|
|
110
|
+
* @since 2.1.0
|
|
111
|
+
*/
|
|
112
|
+
export declare const INTENT_SKELETON: IntentDefinition;
|
|
113
|
+
/**
|
|
114
|
+
* Badge Default Intent - Default badge
|
|
115
|
+
*
|
|
116
|
+
* General status indicator.
|
|
117
|
+
* Compact label display.
|
|
118
|
+
*
|
|
119
|
+
* @since 2.1.0
|
|
120
|
+
*/
|
|
121
|
+
export declare const INTENT_BADGE_DEFAULT: IntentDefinition;
|
|
122
|
+
/**
|
|
123
|
+
* Badge Status Intent - Status badge
|
|
124
|
+
*
|
|
125
|
+
* Online/offline/busy indicator.
|
|
126
|
+
* Colored dot badge.
|
|
127
|
+
*
|
|
128
|
+
* @since 2.1.0
|
|
129
|
+
*/
|
|
130
|
+
export declare const INTENT_BADGE_STATUS: IntentDefinition;
|
|
131
|
+
/**
|
|
132
|
+
* Badge Count Intent - Notification count
|
|
133
|
+
*
|
|
134
|
+
* Numeric count badge.
|
|
135
|
+
* Notification/message counter.
|
|
136
|
+
*
|
|
137
|
+
* @since 2.1.0
|
|
138
|
+
*/
|
|
139
|
+
export declare const INTENT_BADGE_COUNT: IntentDefinition;
|
|
140
|
+
/**
|
|
141
|
+
* Chip Default Intent - Default chip
|
|
142
|
+
*
|
|
143
|
+
* Compact interactive label.
|
|
144
|
+
* Tag or filter display.
|
|
145
|
+
*
|
|
146
|
+
* @since 2.1.0
|
|
147
|
+
*/
|
|
148
|
+
export declare const INTENT_CHIP_DEFAULT: IntentDefinition;
|
|
149
|
+
/**
|
|
150
|
+
* Chip Selectable Intent - Selectable chip
|
|
151
|
+
*
|
|
152
|
+
* Toggleable selection chip.
|
|
153
|
+
* Filter or multi-select.
|
|
154
|
+
*
|
|
155
|
+
* @since 2.1.0
|
|
156
|
+
*/
|
|
157
|
+
export declare const INTENT_CHIP_SELECTABLE: IntentDefinition;
|
|
158
|
+
/**
|
|
159
|
+
* Chip Deletable Intent - Deletable chip
|
|
160
|
+
*
|
|
161
|
+
* Chip with remove button.
|
|
162
|
+
* Tag removal support.
|
|
163
|
+
*
|
|
164
|
+
* @since 2.1.0
|
|
165
|
+
*/
|
|
166
|
+
export declare const INTENT_CHIP_DELETABLE: IntentDefinition;
|
|
167
|
+
/**
|
|
168
|
+
* Tooltip Default Intent - Default tooltip
|
|
169
|
+
*
|
|
170
|
+
* Basic contextual information.
|
|
171
|
+
* Hover/focus triggered.
|
|
172
|
+
*
|
|
173
|
+
* @since 2.1.0
|
|
174
|
+
*/
|
|
175
|
+
export declare const INTENT_TOOLTIP_DEFAULT: IntentDefinition;
|
|
176
|
+
/**
|
|
177
|
+
* Tooltip Rich Intent - Rich tooltip
|
|
178
|
+
*
|
|
179
|
+
* Detailed information tooltip.
|
|
180
|
+
* May include formatting/links.
|
|
181
|
+
*
|
|
182
|
+
* @since 2.1.0
|
|
183
|
+
*/
|
|
184
|
+
export declare const INTENT_TOOLTIP_RICH: IntentDefinition;
|
|
185
|
+
/**
|
|
186
|
+
* All feedback intents as an array.
|
|
187
|
+
*
|
|
188
|
+
* @since 2.1.0
|
|
189
|
+
*/
|
|
190
|
+
export declare const FEEDBACK_INTENTS: ReadonlyArray<IntentDefinition>;
|
|
191
|
+
/**
|
|
192
|
+
* Feedback intents as a map for quick lookup.
|
|
193
|
+
*
|
|
194
|
+
* @since 2.1.0
|
|
195
|
+
*/
|
|
196
|
+
export declare const FEEDBACK_INTENTS_MAP: ReadonlyMap<string, IntentDefinition>;
|
|
197
|
+
/**
|
|
198
|
+
* Get a feedback intent by ID.
|
|
199
|
+
*
|
|
200
|
+
* @param id - The intent ID
|
|
201
|
+
* @returns The intent definition or undefined if not found
|
|
202
|
+
* @since 2.1.0
|
|
203
|
+
*/
|
|
204
|
+
export declare function getFeedbackIntent(id: string): IntentDefinition | undefined;
|
|
205
|
+
/**
|
|
206
|
+
* Check if an intent ID is a valid feedback intent.
|
|
207
|
+
*
|
|
208
|
+
* @param id - The intent ID to check
|
|
209
|
+
* @returns True if the ID is a valid feedback intent
|
|
210
|
+
* @since 2.1.0
|
|
211
|
+
*/
|
|
212
|
+
export declare function isFeedbackIntent(id: string): boolean;
|
|
213
|
+
/**
|
|
214
|
+
* Apply mood modifier to feedback intent.
|
|
215
|
+
*
|
|
216
|
+
* @param intentId - The intent ID
|
|
217
|
+
* @param mood - The mood to apply
|
|
218
|
+
* @returns Modified Factor24Config or undefined
|
|
219
|
+
* @since 2.1.0
|
|
220
|
+
*/
|
|
221
|
+
export declare function applyMoodToFeedbackIntent(intentId: string, mood: SemanticMood): Partial<Factor24Config> | undefined;
|
|
222
|
+
//# sourceMappingURL=feedback-intents.d.ts.map
|