@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,213 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Component Registry
|
|
3
|
+
*
|
|
4
|
+
* Central registry for all 169 components in the Nikkory Vibe library.
|
|
5
|
+
* Each component has full 16-Factor Dynamic Matrix support with 3 tiers (Basic, Standard, Enterprise).
|
|
6
|
+
*
|
|
7
|
+
* @packageDocumentation
|
|
8
|
+
* @module presets/component-registry
|
|
9
|
+
* @since 2.0.0
|
|
10
|
+
*
|
|
11
|
+
* Powered by Nikkory
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* Component category types.
|
|
15
|
+
*/
|
|
16
|
+
export type ComponentCategory = 'form' | 'feedback' | 'navigation' | 'data-display' | 'overlay' | 'layout' | 'media' | 'utility' | 'advanced' | 'social' | 'ecommerce' | 'content';
|
|
17
|
+
/**
|
|
18
|
+
* Component complexity level.
|
|
19
|
+
*/
|
|
20
|
+
export type ComponentComplexity = 'low' | 'medium' | 'high';
|
|
21
|
+
/**
|
|
22
|
+
* Component status in the library.
|
|
23
|
+
*/
|
|
24
|
+
export type ComponentStatus = 'stable' | 'beta' | 'alpha' | 'planned' | 'deprecated';
|
|
25
|
+
import type { DesignSystem, Tier } from '../types';
|
|
26
|
+
/**
|
|
27
|
+
* Registry component definition with UI display fields.
|
|
28
|
+
* This is the unified type for both code generation and UI display.
|
|
29
|
+
* @since 2.1.0
|
|
30
|
+
*/
|
|
31
|
+
export interface RegistryComponentDefinition {
|
|
32
|
+
/** Unique component ID (kebab-case) */
|
|
33
|
+
readonly id: string;
|
|
34
|
+
/** Display name */
|
|
35
|
+
readonly name: string;
|
|
36
|
+
/** Category */
|
|
37
|
+
readonly category: ComponentCategory;
|
|
38
|
+
/** Complexity level */
|
|
39
|
+
readonly complexity: ComponentComplexity;
|
|
40
|
+
/** Component status */
|
|
41
|
+
readonly status: ComponentStatus;
|
|
42
|
+
/** HTML element type */
|
|
43
|
+
readonly element: string;
|
|
44
|
+
/** Dependencies on other components */
|
|
45
|
+
readonly dependencies: readonly string[];
|
|
46
|
+
/** Brief description */
|
|
47
|
+
readonly description: string;
|
|
48
|
+
/** Keywords for search */
|
|
49
|
+
readonly keywords: readonly string[];
|
|
50
|
+
/** Phase when component was/will be added */
|
|
51
|
+
readonly phase: string;
|
|
52
|
+
/** Lucide icon name for UI display */
|
|
53
|
+
readonly icon: string;
|
|
54
|
+
/** Emoji for quick visual identification */
|
|
55
|
+
readonly emoji: string;
|
|
56
|
+
/** Supported design systems */
|
|
57
|
+
readonly designSystems: readonly DesignSystem[];
|
|
58
|
+
/** Available quality tiers */
|
|
59
|
+
readonly tiers: readonly Tier[];
|
|
60
|
+
/** Show "NEW" badge in UI */
|
|
61
|
+
readonly isNew?: boolean;
|
|
62
|
+
/** Show "POPULAR" badge in UI */
|
|
63
|
+
readonly isPopular?: boolean;
|
|
64
|
+
/** Additional search tags for UI filtering */
|
|
65
|
+
readonly tags: readonly string[];
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* @deprecated Use RegistryComponentDefinition instead. Will be removed in v3.0.0.
|
|
69
|
+
*/
|
|
70
|
+
export type ComponentDefinition = RegistryComponentDefinition;
|
|
71
|
+
/**
|
|
72
|
+
* All components in the registry with UI fields.
|
|
73
|
+
* Total: 169 components with full 16-Factor Dynamic Matrix support
|
|
74
|
+
*/
|
|
75
|
+
export declare const ALL_COMPONENTS: readonly RegistryComponentDefinition[];
|
|
76
|
+
/**
|
|
77
|
+
* Component registry indexed by ID.
|
|
78
|
+
*/
|
|
79
|
+
export declare const COMPONENT_REGISTRY: Record<string, RegistryComponentDefinition>;
|
|
80
|
+
/**
|
|
81
|
+
* All valid component IDs.
|
|
82
|
+
* This type is derived from the registry and auto-updates when components are added.
|
|
83
|
+
*/
|
|
84
|
+
export type ComponentId = (typeof ALL_COMPONENTS)[number]['id'];
|
|
85
|
+
/**
|
|
86
|
+
* Get all component IDs.
|
|
87
|
+
*/
|
|
88
|
+
export declare function getAllComponentIds(): string[];
|
|
89
|
+
/**
|
|
90
|
+
* Get component by ID.
|
|
91
|
+
*/
|
|
92
|
+
export declare function getComponent(id: string): RegistryComponentDefinition | undefined;
|
|
93
|
+
/**
|
|
94
|
+
* Check if component ID is valid.
|
|
95
|
+
*/
|
|
96
|
+
export declare function isValidComponentId(id: string): boolean;
|
|
97
|
+
/**
|
|
98
|
+
* Get components by category.
|
|
99
|
+
*/
|
|
100
|
+
export declare function getComponentsByCategory(category: ComponentCategory): RegistryComponentDefinition[];
|
|
101
|
+
/**
|
|
102
|
+
* Get components by status.
|
|
103
|
+
*/
|
|
104
|
+
export declare function getComponentsByStatus(status: ComponentStatus): RegistryComponentDefinition[];
|
|
105
|
+
/**
|
|
106
|
+
* Get components by phase.
|
|
107
|
+
*/
|
|
108
|
+
export declare function getComponentsByPhase(phase: string): RegistryComponentDefinition[];
|
|
109
|
+
/**
|
|
110
|
+
* Get stable components only.
|
|
111
|
+
*/
|
|
112
|
+
export declare function getStableComponents(): RegistryComponentDefinition[];
|
|
113
|
+
/**
|
|
114
|
+
* Get planned components only.
|
|
115
|
+
*/
|
|
116
|
+
export declare function getPlannedComponents(): RegistryComponentDefinition[];
|
|
117
|
+
/**
|
|
118
|
+
* Search components by keyword.
|
|
119
|
+
*/
|
|
120
|
+
export declare function searchComponents(keyword: string): RegistryComponentDefinition[];
|
|
121
|
+
/**
|
|
122
|
+
* Get component dependencies (recursive).
|
|
123
|
+
*/
|
|
124
|
+
export declare function getComponentDependencies(id: string, visited?: Set<string>): string[];
|
|
125
|
+
/**
|
|
126
|
+
* Get components that depend on a given component.
|
|
127
|
+
*/
|
|
128
|
+
export declare function getComponentDependents(id: string): RegistryComponentDefinition[];
|
|
129
|
+
/**
|
|
130
|
+
* Get registry statistics.
|
|
131
|
+
*/
|
|
132
|
+
export declare function getRegistryStats(): {
|
|
133
|
+
total: number;
|
|
134
|
+
stable: number;
|
|
135
|
+
planned: number;
|
|
136
|
+
byCategory: Record<ComponentCategory, number>;
|
|
137
|
+
byPhase: Record<string, number>;
|
|
138
|
+
};
|
|
139
|
+
/**
|
|
140
|
+
* Get popular components (marked with isPopular: true).
|
|
141
|
+
* @returns Array of popular components sorted by name
|
|
142
|
+
* @since 2.1.0
|
|
143
|
+
*/
|
|
144
|
+
export declare function getPopularComponents(): RegistryComponentDefinition[];
|
|
145
|
+
/**
|
|
146
|
+
* Get new components (marked with isNew: true).
|
|
147
|
+
* @returns Array of new components sorted by name
|
|
148
|
+
* @since 2.1.0
|
|
149
|
+
*/
|
|
150
|
+
export declare function getNewComponents(): RegistryComponentDefinition[];
|
|
151
|
+
/**
|
|
152
|
+
* Search components for UI display with enhanced matching.
|
|
153
|
+
* Searches in: id, name, description, keywords, tags, emoji.
|
|
154
|
+
*
|
|
155
|
+
* @param query - Search query string
|
|
156
|
+
* @returns Array of matching components sorted by relevance
|
|
157
|
+
* @since 2.1.0
|
|
158
|
+
*/
|
|
159
|
+
export declare function searchUIComponents(query: string): RegistryComponentDefinition[];
|
|
160
|
+
/**
|
|
161
|
+
* Get components by design system.
|
|
162
|
+
* @param designSystem - Design system ID to filter by
|
|
163
|
+
* @returns Array of components supporting the design system
|
|
164
|
+
* @since 2.1.0
|
|
165
|
+
*/
|
|
166
|
+
export declare function getComponentsByDesignSystem(designSystem: DesignSystem): RegistryComponentDefinition[];
|
|
167
|
+
/**
|
|
168
|
+
* Get components by tier.
|
|
169
|
+
* @param tier - Tier to filter by
|
|
170
|
+
* @returns Array of components supporting the tier
|
|
171
|
+
* @since 2.1.0
|
|
172
|
+
*/
|
|
173
|
+
export declare function getComponentsByTier(tier: Tier): RegistryComponentDefinition[];
|
|
174
|
+
/**
|
|
175
|
+
* Get components by icon name.
|
|
176
|
+
* @param icon - Lucide icon name
|
|
177
|
+
* @returns Array of components with that icon
|
|
178
|
+
* @since 2.1.0
|
|
179
|
+
*/
|
|
180
|
+
export declare function getComponentsByIcon(icon: string): RegistryComponentDefinition[];
|
|
181
|
+
/**
|
|
182
|
+
* Get all unique icons used in the registry.
|
|
183
|
+
* @returns Array of unique icon names
|
|
184
|
+
* @since 2.1.0
|
|
185
|
+
*/
|
|
186
|
+
export declare function getAllIcons(): string[];
|
|
187
|
+
/**
|
|
188
|
+
* Get all unique emojis used in the registry.
|
|
189
|
+
* @returns Array of unique emojis
|
|
190
|
+
* @since 2.1.0
|
|
191
|
+
*/
|
|
192
|
+
export declare function getAllEmojis(): string[];
|
|
193
|
+
/**
|
|
194
|
+
* Get components grouped by category for UI display.
|
|
195
|
+
* @returns Record of category to components array
|
|
196
|
+
* @since 2.1.0
|
|
197
|
+
*/
|
|
198
|
+
export declare function getComponentsGroupedByCategory(): Record<ComponentCategory, RegistryComponentDefinition[]>;
|
|
199
|
+
/**
|
|
200
|
+
* Get UI statistics for the registry.
|
|
201
|
+
* @returns Statistics including popular/new counts and category breakdown
|
|
202
|
+
* @since 2.1.0
|
|
203
|
+
*/
|
|
204
|
+
export declare function getUIStats(): {
|
|
205
|
+
total: number;
|
|
206
|
+
popular: number;
|
|
207
|
+
new: number;
|
|
208
|
+
byCategory: Record<ComponentCategory, number>;
|
|
209
|
+
byDesignSystem: Record<DesignSystem, number>;
|
|
210
|
+
byTier: Record<Tier, number>;
|
|
211
|
+
};
|
|
212
|
+
export default COMPONENT_REGISTRY;
|
|
213
|
+
//# sourceMappingURL=component-registry.d.ts.map
|
|
@@ -0,0 +1,364 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Factor Registry - Unified Granularity Architecture
|
|
3
|
+
*
|
|
4
|
+
* This file defines the 24 factors with level and cascadeDown fields,
|
|
5
|
+
* replacing hardcoded 8/13/24 factor arrays with a dynamic registry-based approach.
|
|
6
|
+
*
|
|
7
|
+
* Each factor specifies:
|
|
8
|
+
* - `level`: Minimum granularity level where this factor applies
|
|
9
|
+
* - `cascadeDown`: Whether factor cascades DOWN to child granularities
|
|
10
|
+
*
|
|
11
|
+
* Factor Distribution by Level:
|
|
12
|
+
* - Template (level 6): 8 factors - cascadeDown=true
|
|
13
|
+
* - Page (level 4): 5 additional factors
|
|
14
|
+
* - Section (level 3): 5 additional factors
|
|
15
|
+
* - Component (level 2): 6 additional factors
|
|
16
|
+
* - Total: 24 factors
|
|
17
|
+
*
|
|
18
|
+
* @packageDocumentation
|
|
19
|
+
* @module presets/factor-registry
|
|
20
|
+
* @since 4.0.0
|
|
21
|
+
*
|
|
22
|
+
* Powered by Nikkory
|
|
23
|
+
*/
|
|
24
|
+
import type { GranularityFactorDefinition, GranularityFactorCategory } from '../types/granularity';
|
|
25
|
+
/**
|
|
26
|
+
* Color Primary - Primary brand color
|
|
27
|
+
*
|
|
28
|
+
* @category visual
|
|
29
|
+
* @since 4.0.0
|
|
30
|
+
*
|
|
31
|
+
* Powered by Nikkory
|
|
32
|
+
*/
|
|
33
|
+
export declare const colorPrimaryFactor: GranularityFactorDefinition;
|
|
34
|
+
/**
|
|
35
|
+
* Color Secondary - Secondary accent color
|
|
36
|
+
*
|
|
37
|
+
* @category visual
|
|
38
|
+
* @since 4.0.0
|
|
39
|
+
*
|
|
40
|
+
* Powered by Nikkory
|
|
41
|
+
*/
|
|
42
|
+
export declare const colorSecondaryFactor: GranularityFactorDefinition;
|
|
43
|
+
/**
|
|
44
|
+
* Typography Scale - Font sizing scale
|
|
45
|
+
*
|
|
46
|
+
* @category visual
|
|
47
|
+
* @since 4.0.0
|
|
48
|
+
*
|
|
49
|
+
* Powered by Nikkory
|
|
50
|
+
*/
|
|
51
|
+
export declare const typographyScaleFactor: GranularityFactorDefinition;
|
|
52
|
+
/**
|
|
53
|
+
* Border Radius - Corner rounding style
|
|
54
|
+
*
|
|
55
|
+
* @category visual
|
|
56
|
+
* @since 4.0.0
|
|
57
|
+
*
|
|
58
|
+
* Powered by Nikkory
|
|
59
|
+
*/
|
|
60
|
+
export declare const borderRadiusFactor: GranularityFactorDefinition;
|
|
61
|
+
/**
|
|
62
|
+
* Shadow Style - Box shadow intensity
|
|
63
|
+
*
|
|
64
|
+
* @category visual
|
|
65
|
+
* @since 4.0.0
|
|
66
|
+
*
|
|
67
|
+
* Powered by Nikkory
|
|
68
|
+
*/
|
|
69
|
+
export declare const shadowStyleFactor: GranularityFactorDefinition;
|
|
70
|
+
/**
|
|
71
|
+
* Theme Mode - Light/dark mode preference
|
|
72
|
+
*
|
|
73
|
+
* @category visual
|
|
74
|
+
* @since 4.0.0
|
|
75
|
+
*
|
|
76
|
+
* Powered by Nikkory
|
|
77
|
+
*/
|
|
78
|
+
export declare const themeModeFactor: GranularityFactorDefinition;
|
|
79
|
+
/**
|
|
80
|
+
* Icon Style - Icon set and style
|
|
81
|
+
*
|
|
82
|
+
* @category visual
|
|
83
|
+
* @since 4.0.0
|
|
84
|
+
*
|
|
85
|
+
* Powered by Nikkory
|
|
86
|
+
*/
|
|
87
|
+
export declare const iconStyleFactor: GranularityFactorDefinition;
|
|
88
|
+
/**
|
|
89
|
+
* Surface Style - Background surface treatment
|
|
90
|
+
*
|
|
91
|
+
* @category visual
|
|
92
|
+
* @since 4.0.0
|
|
93
|
+
*
|
|
94
|
+
* Powered by Nikkory
|
|
95
|
+
*/
|
|
96
|
+
export declare const surfaceStyleFactor: GranularityFactorDefinition;
|
|
97
|
+
/**
|
|
98
|
+
* Spacing Scale - Global spacing scale
|
|
99
|
+
*
|
|
100
|
+
* @category layout
|
|
101
|
+
* @since 4.0.0
|
|
102
|
+
*
|
|
103
|
+
* Powered by Nikkory
|
|
104
|
+
*/
|
|
105
|
+
export declare const spacingScaleFactor: GranularityFactorDefinition;
|
|
106
|
+
/**
|
|
107
|
+
* Container Width - Max container width
|
|
108
|
+
*
|
|
109
|
+
* @category layout
|
|
110
|
+
* @since 4.0.0
|
|
111
|
+
*
|
|
112
|
+
* Powered by Nikkory
|
|
113
|
+
*/
|
|
114
|
+
export declare const containerWidthFactor: GranularityFactorDefinition;
|
|
115
|
+
/**
|
|
116
|
+
* Grid Columns - Default grid column count
|
|
117
|
+
*
|
|
118
|
+
* @category layout
|
|
119
|
+
* @since 4.0.0
|
|
120
|
+
*
|
|
121
|
+
* Powered by Nikkory
|
|
122
|
+
*/
|
|
123
|
+
export declare const gridColumnsFactor: GranularityFactorDefinition;
|
|
124
|
+
/**
|
|
125
|
+
* Gap Size - Gap between grid/flex items
|
|
126
|
+
*
|
|
127
|
+
* @category layout
|
|
128
|
+
* @since 4.0.0
|
|
129
|
+
*
|
|
130
|
+
* Powered by Nikkory
|
|
131
|
+
*/
|
|
132
|
+
export declare const gapSizeFactor: GranularityFactorDefinition;
|
|
133
|
+
/**
|
|
134
|
+
* Alignment - Default content alignment
|
|
135
|
+
*
|
|
136
|
+
* @category layout
|
|
137
|
+
* @since 4.0.0
|
|
138
|
+
*
|
|
139
|
+
* Powered by Nikkory
|
|
140
|
+
*/
|
|
141
|
+
export declare const alignmentFactor: GranularityFactorDefinition;
|
|
142
|
+
/**
|
|
143
|
+
* Layout Type - Default layout structure
|
|
144
|
+
*
|
|
145
|
+
* @category layout
|
|
146
|
+
* @since 4.0.0
|
|
147
|
+
*
|
|
148
|
+
* Powered by Nikkory
|
|
149
|
+
*/
|
|
150
|
+
export declare const layoutTypeFactor: GranularityFactorDefinition;
|
|
151
|
+
/**
|
|
152
|
+
* Aspect Ratio - Default media aspect ratio
|
|
153
|
+
*
|
|
154
|
+
* @category layout
|
|
155
|
+
* @since 4.0.0
|
|
156
|
+
*
|
|
157
|
+
* Powered by Nikkory
|
|
158
|
+
*/
|
|
159
|
+
export declare const aspectRatioFactor: GranularityFactorDefinition;
|
|
160
|
+
/**
|
|
161
|
+
* Animation Duration - Default animation timing
|
|
162
|
+
*
|
|
163
|
+
* @category behavior
|
|
164
|
+
* @since 4.0.0
|
|
165
|
+
*
|
|
166
|
+
* Powered by Nikkory
|
|
167
|
+
*/
|
|
168
|
+
export declare const animationDurationFactor: GranularityFactorDefinition;
|
|
169
|
+
/**
|
|
170
|
+
* Animation Easing - Default easing function
|
|
171
|
+
*
|
|
172
|
+
* @category behavior
|
|
173
|
+
* @since 4.0.0
|
|
174
|
+
*
|
|
175
|
+
* Powered by Nikkory
|
|
176
|
+
*/
|
|
177
|
+
export declare const animationEasingFactor: GranularityFactorDefinition;
|
|
178
|
+
/**
|
|
179
|
+
* Hover Effect - Default hover interaction
|
|
180
|
+
*
|
|
181
|
+
* @category behavior
|
|
182
|
+
* @since 4.0.0
|
|
183
|
+
*
|
|
184
|
+
* Powered by Nikkory
|
|
185
|
+
*/
|
|
186
|
+
export declare const hoverEffectFactor: GranularityFactorDefinition;
|
|
187
|
+
/**
|
|
188
|
+
* Loading Style - Default loading indicator
|
|
189
|
+
*
|
|
190
|
+
* @category behavior
|
|
191
|
+
* @since 4.0.0
|
|
192
|
+
*
|
|
193
|
+
* Powered by Nikkory
|
|
194
|
+
*/
|
|
195
|
+
export declare const loadingStyleFactor: GranularityFactorDefinition;
|
|
196
|
+
/**
|
|
197
|
+
* Breakpoint Strategy - Responsive breakpoint approach
|
|
198
|
+
*
|
|
199
|
+
* @category responsive
|
|
200
|
+
* @since 4.0.0
|
|
201
|
+
*
|
|
202
|
+
* Powered by Nikkory
|
|
203
|
+
*/
|
|
204
|
+
export declare const breakpointStrategyFactor: GranularityFactorDefinition;
|
|
205
|
+
/**
|
|
206
|
+
* Mobile Behavior - Mobile-specific adaptations
|
|
207
|
+
*
|
|
208
|
+
* @category responsive
|
|
209
|
+
* @since 4.0.0
|
|
210
|
+
*
|
|
211
|
+
* Powered by Nikkory
|
|
212
|
+
*/
|
|
213
|
+
export declare const mobileBehaviorFactor: GranularityFactorDefinition;
|
|
214
|
+
/**
|
|
215
|
+
* Touch Target Size - Minimum touch target
|
|
216
|
+
*
|
|
217
|
+
* @category responsive
|
|
218
|
+
* @since 4.0.0
|
|
219
|
+
*
|
|
220
|
+
* Powered by Nikkory
|
|
221
|
+
*/
|
|
222
|
+
export declare const touchTargetSizeFactor: GranularityFactorDefinition;
|
|
223
|
+
/**
|
|
224
|
+
* Focus Style - Focus indicator style
|
|
225
|
+
*
|
|
226
|
+
* @category a11y
|
|
227
|
+
* @since 4.0.0
|
|
228
|
+
*
|
|
229
|
+
* Powered by Nikkory
|
|
230
|
+
*/
|
|
231
|
+
export declare const focusStyleFactor: GranularityFactorDefinition;
|
|
232
|
+
/**
|
|
233
|
+
* Reduced Motion - Motion preference handling
|
|
234
|
+
*
|
|
235
|
+
* @category a11y
|
|
236
|
+
* @since 4.0.0
|
|
237
|
+
*
|
|
238
|
+
* Powered by Nikkory
|
|
239
|
+
*/
|
|
240
|
+
export declare const reducedMotionFactor: GranularityFactorDefinition;
|
|
241
|
+
/**
|
|
242
|
+
* Factor Registry - All 24 factors with level and cascadeDown
|
|
243
|
+
*
|
|
244
|
+
* This array replaces hardcoded PAGE_FACTORS, SECTION_FACTORS arrays.
|
|
245
|
+
* Use `getFactorsForLevel()` to dynamically query applicable factors.
|
|
246
|
+
*
|
|
247
|
+
* @category constants
|
|
248
|
+
* @since 4.0.0
|
|
249
|
+
*
|
|
250
|
+
* @example
|
|
251
|
+
* ```typescript
|
|
252
|
+
* // Get all factors
|
|
253
|
+
* console.log(FACTOR_REGISTRY.length); // 24
|
|
254
|
+
*
|
|
255
|
+
* // Filter by category
|
|
256
|
+
* const visualFactors = FACTOR_REGISTRY.filter(f => f.category === 'visual');
|
|
257
|
+
*
|
|
258
|
+
* // Use getFactorsForLevel() instead of hardcoded arrays
|
|
259
|
+
* import { getFactorsForLevel } from '../utils/factor-resolver';
|
|
260
|
+
* const pageFactors = getFactorsForLevel('page');
|
|
261
|
+
* ```
|
|
262
|
+
*
|
|
263
|
+
* Powered by Nikkory
|
|
264
|
+
*/
|
|
265
|
+
export declare const FACTOR_REGISTRY: readonly GranularityFactorDefinition[];
|
|
266
|
+
/**
|
|
267
|
+
* Get factor by ID
|
|
268
|
+
*
|
|
269
|
+
* @category utils
|
|
270
|
+
* @since 4.0.0
|
|
271
|
+
*
|
|
272
|
+
* @param factorId - The factor ID to look up
|
|
273
|
+
* @returns The factor definition or undefined if not found
|
|
274
|
+
*
|
|
275
|
+
* @example
|
|
276
|
+
* ```typescript
|
|
277
|
+
* const factor = getFactorById('spacing');
|
|
278
|
+
* if (factor) {
|
|
279
|
+
* console.log(factor.name); // 'Spacing Scale'
|
|
280
|
+
* }
|
|
281
|
+
* ```
|
|
282
|
+
*
|
|
283
|
+
* Powered by Nikkory
|
|
284
|
+
*/
|
|
285
|
+
export declare function getFactorById(factorId: string): GranularityFactorDefinition | undefined;
|
|
286
|
+
/**
|
|
287
|
+
* Get factors by category
|
|
288
|
+
*
|
|
289
|
+
* @category utils
|
|
290
|
+
* @since 4.0.0
|
|
291
|
+
*
|
|
292
|
+
* @param category - The category to filter by
|
|
293
|
+
* @returns Array of factors in the specified category
|
|
294
|
+
*
|
|
295
|
+
* @example
|
|
296
|
+
* ```typescript
|
|
297
|
+
* const visualFactors = getFactorsByCategory('visual');
|
|
298
|
+
* console.log(visualFactors.length); // 8
|
|
299
|
+
* ```
|
|
300
|
+
*
|
|
301
|
+
* Powered by Nikkory
|
|
302
|
+
*/
|
|
303
|
+
export declare function getFactorsByCategory(category: GranularityFactorCategory): readonly GranularityFactorDefinition[];
|
|
304
|
+
/**
|
|
305
|
+
* Get all factor IDs
|
|
306
|
+
*
|
|
307
|
+
* @category utils
|
|
308
|
+
* @since 4.0.0
|
|
309
|
+
*
|
|
310
|
+
* @returns Array of all factor IDs
|
|
311
|
+
*
|
|
312
|
+
* @example
|
|
313
|
+
* ```typescript
|
|
314
|
+
* const ids = getAllFactorIds();
|
|
315
|
+
* console.log(ids); // ['colorPrimary', 'colorSecondary', ...]
|
|
316
|
+
* ```
|
|
317
|
+
*
|
|
318
|
+
* Powered by Nikkory
|
|
319
|
+
*/
|
|
320
|
+
export declare function getAllFactorIds(): readonly string[];
|
|
321
|
+
/**
|
|
322
|
+
* Check if a factor ID is valid
|
|
323
|
+
*
|
|
324
|
+
* @category utils
|
|
325
|
+
* @since 4.0.0
|
|
326
|
+
*
|
|
327
|
+
* @param factorId - The factor ID to check
|
|
328
|
+
* @returns True if the factor exists in the registry
|
|
329
|
+
*
|
|
330
|
+
* @example
|
|
331
|
+
* ```typescript
|
|
332
|
+
* isValidFactorId('spacing'); // true
|
|
333
|
+
* isValidFactorId('invalid'); // false
|
|
334
|
+
* ```
|
|
335
|
+
*
|
|
336
|
+
* Powered by Nikkory
|
|
337
|
+
*/
|
|
338
|
+
export declare function isValidFactorId(factorId: string): boolean;
|
|
339
|
+
/**
|
|
340
|
+
* Get registry statistics
|
|
341
|
+
*
|
|
342
|
+
* @category utils
|
|
343
|
+
* @since 4.0.0
|
|
344
|
+
*
|
|
345
|
+
* @returns Statistics about the factor registry
|
|
346
|
+
*
|
|
347
|
+
* @example
|
|
348
|
+
* ```typescript
|
|
349
|
+
* const stats = getFactorRegistryStats();
|
|
350
|
+
* console.log(stats.total); // 24
|
|
351
|
+
* console.log(stats.byCategory.visual); // 8
|
|
352
|
+
* ```
|
|
353
|
+
*
|
|
354
|
+
* Powered by Nikkory
|
|
355
|
+
*/
|
|
356
|
+
export declare function getFactorRegistryStats(): {
|
|
357
|
+
readonly total: number;
|
|
358
|
+
readonly byCategory: Record<GranularityFactorCategory, number>;
|
|
359
|
+
readonly byCascadeDown: {
|
|
360
|
+
cascading: number;
|
|
361
|
+
nonCascading: number;
|
|
362
|
+
};
|
|
363
|
+
};
|
|
364
|
+
//# sourceMappingURL=factor-registry.d.ts.map
|