@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,192 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Factor Migration Utility
|
|
3
|
+
*
|
|
4
|
+
* Utility for migrating components from 16-Factor to 24-Factor system.
|
|
5
|
+
* Provides tools for detecting, validating, and updating factor configurations.
|
|
6
|
+
*
|
|
7
|
+
* @packageDocumentation
|
|
8
|
+
* @module generator/factor-migration
|
|
9
|
+
* @since 2.1.0
|
|
10
|
+
*
|
|
11
|
+
* Powered by Nikkory
|
|
12
|
+
*/
|
|
13
|
+
import { type Factors17to24Config } from './factors-17-24';
|
|
14
|
+
import type { FactorSpacing, FactorTypography, FactorBorder, FactorOpacity, FactorOverflow, FactorCursor, FactorZIndex, FactorTransition } from './types';
|
|
15
|
+
/**
|
|
16
|
+
* 16-Factor configuration interface (legacy).
|
|
17
|
+
* @since 2.1.0
|
|
18
|
+
*/
|
|
19
|
+
export interface Factor16Config {
|
|
20
|
+
size?: string;
|
|
21
|
+
variant?: string;
|
|
22
|
+
colorScheme?: string;
|
|
23
|
+
shape?: string;
|
|
24
|
+
position?: string;
|
|
25
|
+
iconPosition?: string;
|
|
26
|
+
state?: string;
|
|
27
|
+
animation?: string;
|
|
28
|
+
elevation?: string;
|
|
29
|
+
a11y?: string;
|
|
30
|
+
justify?: string;
|
|
31
|
+
align?: string;
|
|
32
|
+
orientation?: string;
|
|
33
|
+
density?: string;
|
|
34
|
+
loadingState?: string;
|
|
35
|
+
theme?: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* 24-Factor configuration interface (current).
|
|
39
|
+
* @since 2.1.0
|
|
40
|
+
*/
|
|
41
|
+
export interface Factor24Config extends Factor16Config {
|
|
42
|
+
spacing?: FactorSpacing;
|
|
43
|
+
typography?: FactorTypography;
|
|
44
|
+
border?: FactorBorder;
|
|
45
|
+
opacity?: FactorOpacity;
|
|
46
|
+
overflow?: FactorOverflow;
|
|
47
|
+
cursor?: FactorCursor;
|
|
48
|
+
zIndex?: FactorZIndex;
|
|
49
|
+
transition?: FactorTransition;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Migration result interface.
|
|
53
|
+
* @since 2.1.0
|
|
54
|
+
*/
|
|
55
|
+
export interface MigrationResult {
|
|
56
|
+
/** Whether migration was successful */
|
|
57
|
+
success: boolean;
|
|
58
|
+
/** Original 16-Factor config */
|
|
59
|
+
original: Factor16Config;
|
|
60
|
+
/** Migrated 24-Factor config */
|
|
61
|
+
migrated: Factor24Config;
|
|
62
|
+
/** Factors that were added with defaults */
|
|
63
|
+
addedFactors: Array<keyof Factors17to24Config>;
|
|
64
|
+
/** Any warnings during migration */
|
|
65
|
+
warnings: string[];
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Migration options interface.
|
|
69
|
+
* @since 2.1.0
|
|
70
|
+
*/
|
|
71
|
+
export interface MigrationOptions {
|
|
72
|
+
/** Whether to apply defaults for missing Factor 17-24 */
|
|
73
|
+
applyDefaults?: boolean;
|
|
74
|
+
/** Custom defaults to use instead of FACTOR_17_24_DEFAULTS */
|
|
75
|
+
customDefaults?: Partial<Factors17to24Config>;
|
|
76
|
+
/** Whether to validate the result */
|
|
77
|
+
validate?: boolean;
|
|
78
|
+
/** Component type for context-aware defaults */
|
|
79
|
+
componentType?: string;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Component-specific default overrides for Factor 17-24.
|
|
83
|
+
* @since 2.1.0
|
|
84
|
+
*/
|
|
85
|
+
export declare const COMPONENT_DEFAULTS: Record<string, Partial<Factors17to24Config>>;
|
|
86
|
+
/**
|
|
87
|
+
* Detect if a config is using 16-Factor (legacy) format.
|
|
88
|
+
*
|
|
89
|
+
* @param config - Configuration to check
|
|
90
|
+
* @returns True if config is 16-Factor format
|
|
91
|
+
*
|
|
92
|
+
* @example
|
|
93
|
+
* ```typescript
|
|
94
|
+
* const is16Factor = is16FactorConfig({ size: 'md', variant: 'filled' });
|
|
95
|
+
* // => true (no Factor 17-24 present)
|
|
96
|
+
* ```
|
|
97
|
+
*
|
|
98
|
+
* @since 2.1.0
|
|
99
|
+
*/
|
|
100
|
+
export declare function is16FactorConfig(config: Factor16Config | Factor24Config): boolean;
|
|
101
|
+
/**
|
|
102
|
+
* Detect if a config is using 24-Factor (current) format.
|
|
103
|
+
*
|
|
104
|
+
* @param config - Configuration to check
|
|
105
|
+
* @returns True if config has any Factor 17-24 present
|
|
106
|
+
*
|
|
107
|
+
* @since 2.1.0
|
|
108
|
+
*/
|
|
109
|
+
export declare function is24FactorConfig(config: Factor16Config | Factor24Config): boolean;
|
|
110
|
+
/**
|
|
111
|
+
* Get missing Factor 17-24 keys from a config.
|
|
112
|
+
*
|
|
113
|
+
* @param config - Configuration to check
|
|
114
|
+
* @returns Array of missing Factor 17-24 keys
|
|
115
|
+
*
|
|
116
|
+
* @since 2.1.0
|
|
117
|
+
*/
|
|
118
|
+
export declare function getMissingFactor17to24(config: Partial<Factor24Config>): Array<keyof Factors17to24Config>;
|
|
119
|
+
/**
|
|
120
|
+
* Migrate a 16-Factor config to 24-Factor config.
|
|
121
|
+
*
|
|
122
|
+
* @param config - 16-Factor configuration to migrate
|
|
123
|
+
* @param options - Migration options
|
|
124
|
+
* @returns Migration result with migrated config
|
|
125
|
+
*
|
|
126
|
+
* @example
|
|
127
|
+
* ```typescript
|
|
128
|
+
* const result = migrate16to24(
|
|
129
|
+
* { size: 'md', variant: 'filled' },
|
|
130
|
+
* { applyDefaults: true, componentType: 'button' }
|
|
131
|
+
* );
|
|
132
|
+
* // Result includes migrated config with Factor 17-24 defaults
|
|
133
|
+
* ```
|
|
134
|
+
*
|
|
135
|
+
* @since 2.1.0
|
|
136
|
+
*/
|
|
137
|
+
export declare function migrate16to24(config: Factor16Config, options?: MigrationOptions): MigrationResult;
|
|
138
|
+
/**
|
|
139
|
+
* Batch migrate multiple 16-Factor configs to 24-Factor.
|
|
140
|
+
*
|
|
141
|
+
* @param configs - Array of 16-Factor configurations
|
|
142
|
+
* @param options - Migration options
|
|
143
|
+
* @returns Array of migration results
|
|
144
|
+
*
|
|
145
|
+
* @since 2.1.0
|
|
146
|
+
*/
|
|
147
|
+
export declare function batchMigrate16to24(configs: Factor16Config[], options?: MigrationOptions): MigrationResult[];
|
|
148
|
+
/**
|
|
149
|
+
* Validate a Factor 24 config completeness.
|
|
150
|
+
*
|
|
151
|
+
* @param config - Configuration to validate
|
|
152
|
+
* @returns Validation result with missing factors
|
|
153
|
+
*
|
|
154
|
+
* @since 2.1.0
|
|
155
|
+
*/
|
|
156
|
+
export declare function validateFactor24Completeness(config: Partial<Factor24Config>): {
|
|
157
|
+
isComplete: boolean;
|
|
158
|
+
missingFactors: string[];
|
|
159
|
+
completeness: number;
|
|
160
|
+
};
|
|
161
|
+
/**
|
|
162
|
+
* Create a complete Factor 24 config from a partial config.
|
|
163
|
+
*
|
|
164
|
+
* @param partial - Partial configuration
|
|
165
|
+
* @param componentType - Component type for context-aware defaults
|
|
166
|
+
* @returns Complete Factor 24 config with all factors defined
|
|
167
|
+
*
|
|
168
|
+
* @since 2.1.0
|
|
169
|
+
*/
|
|
170
|
+
export declare function completeFactorConfig(partial: Partial<Factor24Config>, componentType?: string): Factor24Config;
|
|
171
|
+
/**
|
|
172
|
+
* Generate a migration report for a batch of configs.
|
|
173
|
+
*
|
|
174
|
+
* @param results - Array of migration results
|
|
175
|
+
* @returns Formatted report string
|
|
176
|
+
*
|
|
177
|
+
* @since 2.1.0
|
|
178
|
+
*/
|
|
179
|
+
export declare function generateMigrationReport(results: MigrationResult[]): string;
|
|
180
|
+
export declare const FactorMigration: {
|
|
181
|
+
is16FactorConfig: typeof is16FactorConfig;
|
|
182
|
+
is24FactorConfig: typeof is24FactorConfig;
|
|
183
|
+
getMissingFactor17to24: typeof getMissingFactor17to24;
|
|
184
|
+
migrate16to24: typeof migrate16to24;
|
|
185
|
+
batchMigrate16to24: typeof batchMigrate16to24;
|
|
186
|
+
validateFactor24Completeness: typeof validateFactor24Completeness;
|
|
187
|
+
completeFactorConfig: typeof completeFactorConfig;
|
|
188
|
+
generateMigrationReport: typeof generateMigrationReport;
|
|
189
|
+
COMPONENT_DEFAULTS: Record<string, Partial<Factors17to24Config>>;
|
|
190
|
+
};
|
|
191
|
+
export default FactorMigration;
|
|
192
|
+
//# sourceMappingURL=factor-migration.d.ts.map
|
|
@@ -0,0 +1,327 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 24-Factor Validation System
|
|
3
|
+
*
|
|
4
|
+
* Runtime type guards and validators for all 24 customization factors.
|
|
5
|
+
* These utilities ensure type safety and provide helpful error messages.
|
|
6
|
+
*
|
|
7
|
+
* @packageDocumentation
|
|
8
|
+
* @module generator/factor-validators
|
|
9
|
+
* @since 2.0.0
|
|
10
|
+
* @updated 2.1.0 - Extended to 24 factors
|
|
11
|
+
*
|
|
12
|
+
* Powered by Nikkory
|
|
13
|
+
*/
|
|
14
|
+
import type { FactorShape, FactorPosition, FactorIconPosition, FactorState, FactorAnimation, FactorElevation, FactorA11y, FactorAlignment, FactorOrientation, FactorDensity, FactorLoadingState, FactorResponsiveBreakpoint, FactorResponsiveConfig, FactorTheme, ColorScheme, ComponentSize, FactorSpacing, FactorTypography, FactorBorder, FactorOpacity, FactorOverflow, FactorCursor, FactorZIndex, FactorTransition } from './types';
|
|
15
|
+
/** Valid color scheme values */
|
|
16
|
+
export declare const VALID_COLOR_SCHEMES: readonly ColorScheme[];
|
|
17
|
+
/** Valid component size values */
|
|
18
|
+
export declare const VALID_SIZES: readonly ComponentSize[];
|
|
19
|
+
/** Valid shape values (Factor 4) */
|
|
20
|
+
export declare const VALID_SHAPES: readonly FactorShape[];
|
|
21
|
+
/** Valid position values (Factor 5) */
|
|
22
|
+
export declare const VALID_POSITIONS: readonly FactorPosition[];
|
|
23
|
+
/** Valid icon position values (Factor 6) */
|
|
24
|
+
export declare const VALID_ICON_POSITIONS: readonly FactorIconPosition[];
|
|
25
|
+
/** Valid state values (Factor 7) */
|
|
26
|
+
export declare const VALID_STATES: readonly FactorState[];
|
|
27
|
+
/** Valid animation values (Factor 8) */
|
|
28
|
+
export declare const VALID_ANIMATIONS: readonly FactorAnimation[];
|
|
29
|
+
/** Valid elevation values (Factor 9) */
|
|
30
|
+
export declare const VALID_ELEVATIONS: readonly FactorElevation[];
|
|
31
|
+
/** Valid a11y level values (Factor 10) */
|
|
32
|
+
export declare const VALID_A11Y_LEVELS: readonly FactorA11y[];
|
|
33
|
+
/** Valid alignment values (Factor 11) */
|
|
34
|
+
export declare const VALID_ALIGNMENTS: readonly FactorAlignment[];
|
|
35
|
+
/** Valid orientation values (Factor 12) */
|
|
36
|
+
export declare const VALID_ORIENTATIONS: readonly FactorOrientation[];
|
|
37
|
+
/** Valid density values (Factor 13) */
|
|
38
|
+
export declare const VALID_DENSITIES: readonly FactorDensity[];
|
|
39
|
+
/** Valid loading state values (Factor 14) */
|
|
40
|
+
export declare const VALID_LOADING_STATES: readonly FactorLoadingState[];
|
|
41
|
+
/** Valid responsive breakpoint values (Factor 15) */
|
|
42
|
+
export declare const VALID_BREAKPOINTS: readonly FactorResponsiveBreakpoint[];
|
|
43
|
+
/** Valid theme values (Factor 16) */
|
|
44
|
+
export declare const VALID_THEMES: readonly FactorTheme[];
|
|
45
|
+
/** Valid spacing values (Factor 17) */
|
|
46
|
+
export declare const VALID_SPACINGS: readonly FactorSpacing[];
|
|
47
|
+
/** Valid typography values (Factor 18) */
|
|
48
|
+
export declare const VALID_TYPOGRAPHIES: readonly FactorTypography[];
|
|
49
|
+
/** Valid border values (Factor 19) */
|
|
50
|
+
export declare const VALID_BORDERS: readonly FactorBorder[];
|
|
51
|
+
/** Valid opacity values (Factor 20) */
|
|
52
|
+
export declare const VALID_OPACITIES: readonly FactorOpacity[];
|
|
53
|
+
/** Valid overflow values (Factor 21) */
|
|
54
|
+
export declare const VALID_OVERFLOWS: readonly FactorOverflow[];
|
|
55
|
+
/** Valid cursor values (Factor 22) */
|
|
56
|
+
export declare const VALID_CURSORS: readonly FactorCursor[];
|
|
57
|
+
/** Valid z-index values (Factor 23) */
|
|
58
|
+
export declare const VALID_Z_INDICES: readonly FactorZIndex[];
|
|
59
|
+
/** Valid transition values (Factor 24) */
|
|
60
|
+
export declare const VALID_TRANSITIONS: readonly FactorTransition[];
|
|
61
|
+
/**
|
|
62
|
+
* Check if value is a valid color scheme.
|
|
63
|
+
* @since 2.0.0
|
|
64
|
+
*/
|
|
65
|
+
export declare function isValidColorScheme(value: unknown): value is ColorScheme;
|
|
66
|
+
/**
|
|
67
|
+
* Check if value is a valid component size.
|
|
68
|
+
* @since 2.0.0
|
|
69
|
+
*/
|
|
70
|
+
export declare function isValidSize(value: unknown): value is ComponentSize;
|
|
71
|
+
/**
|
|
72
|
+
* Check if value is a valid shape (Factor 4).
|
|
73
|
+
* @since 2.0.0
|
|
74
|
+
*/
|
|
75
|
+
export declare function isValidShape(value: unknown): value is FactorShape;
|
|
76
|
+
/**
|
|
77
|
+
* Check if value is a valid position (Factor 5).
|
|
78
|
+
* @since 2.0.0
|
|
79
|
+
*/
|
|
80
|
+
export declare function isValidPosition(value: unknown): value is FactorPosition;
|
|
81
|
+
/**
|
|
82
|
+
* Check if value is a valid icon position (Factor 6).
|
|
83
|
+
* @since 2.0.0
|
|
84
|
+
*/
|
|
85
|
+
export declare function isValidIconPosition(value: unknown): value is FactorIconPosition;
|
|
86
|
+
/**
|
|
87
|
+
* Check if value is a valid state (Factor 7).
|
|
88
|
+
* @since 2.0.0
|
|
89
|
+
*/
|
|
90
|
+
export declare function isValidState(value: unknown): value is FactorState;
|
|
91
|
+
/**
|
|
92
|
+
* Check if value is a valid animation (Factor 8).
|
|
93
|
+
* @since 2.0.0
|
|
94
|
+
*/
|
|
95
|
+
export declare function isValidAnimation(value: unknown): value is FactorAnimation;
|
|
96
|
+
/**
|
|
97
|
+
* Check if value is a valid elevation (Factor 9).
|
|
98
|
+
* @since 2.0.0
|
|
99
|
+
*/
|
|
100
|
+
export declare function isValidElevation(value: unknown): value is FactorElevation;
|
|
101
|
+
/**
|
|
102
|
+
* Check if value is a valid a11y level (Factor 10).
|
|
103
|
+
* @since 2.0.0
|
|
104
|
+
*/
|
|
105
|
+
export declare function isValidA11yLevel(value: unknown): value is FactorA11y;
|
|
106
|
+
/**
|
|
107
|
+
* Check if value is a valid alignment (Factor 11).
|
|
108
|
+
* @since 2.0.0
|
|
109
|
+
*/
|
|
110
|
+
export declare function isValidAlignment(value: unknown): value is FactorAlignment;
|
|
111
|
+
/**
|
|
112
|
+
* Check if value is a valid orientation (Factor 12).
|
|
113
|
+
* @since 2.0.0
|
|
114
|
+
*/
|
|
115
|
+
export declare function isValidOrientation(value: unknown): value is FactorOrientation;
|
|
116
|
+
/**
|
|
117
|
+
* Check if value is a valid density (Factor 13).
|
|
118
|
+
* @since 2.0.0
|
|
119
|
+
*/
|
|
120
|
+
export declare function isValidDensity(value: unknown): value is FactorDensity;
|
|
121
|
+
/**
|
|
122
|
+
* Check if value is a valid loading state (Factor 14).
|
|
123
|
+
* @since 2.0.0
|
|
124
|
+
*/
|
|
125
|
+
export declare function isValidLoadingState(value: unknown): value is FactorLoadingState;
|
|
126
|
+
/**
|
|
127
|
+
* Check if value is a valid responsive breakpoint (Factor 15).
|
|
128
|
+
* @since 2.0.0
|
|
129
|
+
*/
|
|
130
|
+
export declare function isValidBreakpoint(value: unknown): value is FactorResponsiveBreakpoint;
|
|
131
|
+
/**
|
|
132
|
+
* Check if value is a valid responsive config (Factor 15).
|
|
133
|
+
* @since 2.0.0
|
|
134
|
+
*/
|
|
135
|
+
export declare function isValidResponsiveConfig(value: unknown): value is FactorResponsiveConfig;
|
|
136
|
+
/**
|
|
137
|
+
* Check if value is a valid theme (Factor 16).
|
|
138
|
+
* @since 2.0.0
|
|
139
|
+
*/
|
|
140
|
+
export declare function isValidTheme(value: unknown): value is FactorTheme;
|
|
141
|
+
/**
|
|
142
|
+
* Check if value is a valid spacing (Factor 17).
|
|
143
|
+
* @since 2.1.0
|
|
144
|
+
*/
|
|
145
|
+
export declare function isValidSpacing(value: unknown): value is FactorSpacing;
|
|
146
|
+
/**
|
|
147
|
+
* Check if value is a valid typography (Factor 18).
|
|
148
|
+
* @since 2.1.0
|
|
149
|
+
*/
|
|
150
|
+
export declare function isValidTypography(value: unknown): value is FactorTypography;
|
|
151
|
+
/**
|
|
152
|
+
* Check if value is a valid border (Factor 19).
|
|
153
|
+
* @since 2.1.0
|
|
154
|
+
*/
|
|
155
|
+
export declare function isValidBorder(value: unknown): value is FactorBorder;
|
|
156
|
+
/**
|
|
157
|
+
* Check if value is a valid opacity (Factor 20).
|
|
158
|
+
* @since 2.1.0
|
|
159
|
+
*/
|
|
160
|
+
export declare function isValidOpacity(value: unknown): value is FactorOpacity;
|
|
161
|
+
/**
|
|
162
|
+
* Check if value is a valid overflow (Factor 21).
|
|
163
|
+
* @since 2.1.0
|
|
164
|
+
*/
|
|
165
|
+
export declare function isValidOverflow(value: unknown): value is FactorOverflow;
|
|
166
|
+
/**
|
|
167
|
+
* Check if value is a valid cursor (Factor 22).
|
|
168
|
+
* @since 2.1.0
|
|
169
|
+
*/
|
|
170
|
+
export declare function isValidCursor(value: unknown): value is FactorCursor;
|
|
171
|
+
/**
|
|
172
|
+
* Check if value is a valid z-index (Factor 23).
|
|
173
|
+
* @since 2.1.0
|
|
174
|
+
*/
|
|
175
|
+
export declare function isValidZIndex(value: unknown): value is FactorZIndex;
|
|
176
|
+
/**
|
|
177
|
+
* Check if value is a valid transition (Factor 24).
|
|
178
|
+
* @since 2.1.0
|
|
179
|
+
*/
|
|
180
|
+
export declare function isValidTransition(value: unknown): value is FactorTransition;
|
|
181
|
+
/**
|
|
182
|
+
* Validation result interface.
|
|
183
|
+
* @since 2.0.0
|
|
184
|
+
*/
|
|
185
|
+
export interface FactorValidationResult {
|
|
186
|
+
/** Whether the value is valid */
|
|
187
|
+
valid: boolean;
|
|
188
|
+
/** Factor name */
|
|
189
|
+
factor: string;
|
|
190
|
+
/** The value that was validated */
|
|
191
|
+
value: unknown;
|
|
192
|
+
/** Error message if invalid */
|
|
193
|
+
error?: string;
|
|
194
|
+
/** Suggested valid values */
|
|
195
|
+
suggestions?: readonly string[];
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* Validate a factor value and return detailed result.
|
|
199
|
+
*
|
|
200
|
+
* @param factor - Factor name (1-24)
|
|
201
|
+
* @param value - Value to validate
|
|
202
|
+
* @returns Validation result with error details if invalid
|
|
203
|
+
*
|
|
204
|
+
* @example
|
|
205
|
+
* ```typescript
|
|
206
|
+
* const result = validateFactor('shape', 'invalid');
|
|
207
|
+
* // { valid: false, factor: 'shape', value: 'invalid',
|
|
208
|
+
* // error: 'Invalid shape value', suggestions: ['none', 'sm', ...] }
|
|
209
|
+
*
|
|
210
|
+
* const result2 = validateFactor('spacing', 'lg');
|
|
211
|
+
* // { valid: true, factor: 'spacing', value: 'lg' }
|
|
212
|
+
* ```
|
|
213
|
+
*
|
|
214
|
+
* @since 2.0.0
|
|
215
|
+
* @updated 2.1.0 - Extended to 24 factors
|
|
216
|
+
*/
|
|
217
|
+
export declare function validateFactor(factor: string, value: unknown): FactorValidationResult;
|
|
218
|
+
/**
|
|
219
|
+
* Validate multiple factors at once.
|
|
220
|
+
*
|
|
221
|
+
* @param config - Object with factor name keys and values to validate
|
|
222
|
+
* @returns Array of validation results (only invalid ones)
|
|
223
|
+
*
|
|
224
|
+
* @example
|
|
225
|
+
* ```typescript
|
|
226
|
+
* const errors = validateFactors({
|
|
227
|
+
* shape: 'pill',
|
|
228
|
+
* animation: 'invalid',
|
|
229
|
+
* theme: 'system'
|
|
230
|
+
* });
|
|
231
|
+
* // Returns: [{ valid: false, factor: 'animation', ... }]
|
|
232
|
+
* ```
|
|
233
|
+
*
|
|
234
|
+
* @since 2.0.0
|
|
235
|
+
*/
|
|
236
|
+
export declare function validateFactors(config: Record<string, unknown>): FactorValidationResult[];
|
|
237
|
+
/**
|
|
238
|
+
* Assert that a factor value is valid, throwing if not.
|
|
239
|
+
*
|
|
240
|
+
* @param factor - Factor name
|
|
241
|
+
* @param value - Value to validate
|
|
242
|
+
* @throws Error if value is invalid
|
|
243
|
+
*
|
|
244
|
+
* @example
|
|
245
|
+
* ```typescript
|
|
246
|
+
* assertValidFactor('shape', 'pill'); // OK
|
|
247
|
+
* assertValidFactor('shape', 'invalid'); // Throws Error
|
|
248
|
+
* ```
|
|
249
|
+
*
|
|
250
|
+
* @since 2.0.0
|
|
251
|
+
*/
|
|
252
|
+
export declare function assertValidFactor(factor: string, value: unknown): void;
|
|
253
|
+
/**
|
|
254
|
+
* Coerce a value to a valid factor value, returning default if invalid.
|
|
255
|
+
*
|
|
256
|
+
* @param factor - Factor name
|
|
257
|
+
* @param value - Value to coerce
|
|
258
|
+
* @param defaultValue - Default value if invalid
|
|
259
|
+
* @returns Valid factor value or default
|
|
260
|
+
*
|
|
261
|
+
* @example
|
|
262
|
+
* ```typescript
|
|
263
|
+
* coerceFactorValue('shape', 'invalid', 'md')
|
|
264
|
+
* // => 'md' (default, because 'invalid' is not valid)
|
|
265
|
+
*
|
|
266
|
+
* coerceFactorValue('shape', 'pill', 'md')
|
|
267
|
+
* // => 'pill' (valid value)
|
|
268
|
+
* ```
|
|
269
|
+
*
|
|
270
|
+
* @since 2.0.0
|
|
271
|
+
*/
|
|
272
|
+
export declare function coerceFactorValue<T>(factor: string, value: unknown, defaultValue: T): T;
|
|
273
|
+
export declare const FactorValidators: {
|
|
274
|
+
VALID_COLOR_SCHEMES: readonly ColorScheme[];
|
|
275
|
+
VALID_SIZES: readonly ComponentSize[];
|
|
276
|
+
VALID_SHAPES: readonly FactorShape[];
|
|
277
|
+
VALID_POSITIONS: readonly FactorPosition[];
|
|
278
|
+
VALID_ICON_POSITIONS: readonly FactorIconPosition[];
|
|
279
|
+
VALID_STATES: readonly FactorState[];
|
|
280
|
+
VALID_ANIMATIONS: readonly FactorAnimation[];
|
|
281
|
+
VALID_ELEVATIONS: readonly FactorElevation[];
|
|
282
|
+
VALID_A11Y_LEVELS: readonly FactorA11y[];
|
|
283
|
+
VALID_ALIGNMENTS: readonly FactorAlignment[];
|
|
284
|
+
VALID_ORIENTATIONS: readonly FactorOrientation[];
|
|
285
|
+
VALID_DENSITIES: readonly FactorDensity[];
|
|
286
|
+
VALID_LOADING_STATES: readonly FactorLoadingState[];
|
|
287
|
+
VALID_BREAKPOINTS: readonly FactorResponsiveBreakpoint[];
|
|
288
|
+
VALID_THEMES: readonly FactorTheme[];
|
|
289
|
+
VALID_SPACINGS: readonly FactorSpacing[];
|
|
290
|
+
VALID_TYPOGRAPHIES: readonly FactorTypography[];
|
|
291
|
+
VALID_BORDERS: readonly FactorBorder[];
|
|
292
|
+
VALID_OPACITIES: readonly FactorOpacity[];
|
|
293
|
+
VALID_OVERFLOWS: readonly FactorOverflow[];
|
|
294
|
+
VALID_CURSORS: readonly FactorCursor[];
|
|
295
|
+
VALID_Z_INDICES: readonly FactorZIndex[];
|
|
296
|
+
VALID_TRANSITIONS: readonly FactorTransition[];
|
|
297
|
+
isValidColorScheme: typeof isValidColorScheme;
|
|
298
|
+
isValidSize: typeof isValidSize;
|
|
299
|
+
isValidShape: typeof isValidShape;
|
|
300
|
+
isValidPosition: typeof isValidPosition;
|
|
301
|
+
isValidIconPosition: typeof isValidIconPosition;
|
|
302
|
+
isValidState: typeof isValidState;
|
|
303
|
+
isValidAnimation: typeof isValidAnimation;
|
|
304
|
+
isValidElevation: typeof isValidElevation;
|
|
305
|
+
isValidA11yLevel: typeof isValidA11yLevel;
|
|
306
|
+
isValidAlignment: typeof isValidAlignment;
|
|
307
|
+
isValidOrientation: typeof isValidOrientation;
|
|
308
|
+
isValidDensity: typeof isValidDensity;
|
|
309
|
+
isValidLoadingState: typeof isValidLoadingState;
|
|
310
|
+
isValidBreakpoint: typeof isValidBreakpoint;
|
|
311
|
+
isValidResponsiveConfig: typeof isValidResponsiveConfig;
|
|
312
|
+
isValidTheme: typeof isValidTheme;
|
|
313
|
+
isValidSpacing: typeof isValidSpacing;
|
|
314
|
+
isValidTypography: typeof isValidTypography;
|
|
315
|
+
isValidBorder: typeof isValidBorder;
|
|
316
|
+
isValidOpacity: typeof isValidOpacity;
|
|
317
|
+
isValidOverflow: typeof isValidOverflow;
|
|
318
|
+
isValidCursor: typeof isValidCursor;
|
|
319
|
+
isValidZIndex: typeof isValidZIndex;
|
|
320
|
+
isValidTransition: typeof isValidTransition;
|
|
321
|
+
validateFactor: typeof validateFactor;
|
|
322
|
+
validateFactors: typeof validateFactors;
|
|
323
|
+
assertValidFactor: typeof assertValidFactor;
|
|
324
|
+
coerceFactorValue: typeof coerceFactorValue;
|
|
325
|
+
};
|
|
326
|
+
export default FactorValidators;
|
|
327
|
+
//# sourceMappingURL=factor-validators.d.ts.map
|