@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,400 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Style Generator Types
|
|
3
|
+
*
|
|
4
|
+
* Type definitions for the style generation system.
|
|
5
|
+
* These types are used by StyleGenerator to create component styles from design tokens.
|
|
6
|
+
*
|
|
7
|
+
* @packageDocumentation
|
|
8
|
+
* @module generator/types
|
|
9
|
+
* @since 2.0.0
|
|
10
|
+
*/
|
|
11
|
+
/**
|
|
12
|
+
* Supported component types for style generation.
|
|
13
|
+
*
|
|
14
|
+
* @since 2.0.0
|
|
15
|
+
*/
|
|
16
|
+
export type ComponentType = 'button' | 'input' | 'textarea' | 'select' | 'checkbox' | 'radio' | 'radioGroup' | 'switch' | 'slider' | 'numberInput' | 'rangeSlider' | 'rating' | 'pinInput' | 'inputOtp' | 'inputPassword' | 'inputSearch' | 'inputPhone' | 'inputCurrency' | 'inputGroup' | 'tagInput' | 'multiSelect' | 'combobox' | 'autocomplete' | 'richTextEditor' | 'datePicker' | 'dateRangePicker' | 'dateTimePicker' | 'timePicker' | 'calendar' | 'fileUpload' | 'fileDropzone' | 'imageUpload' | 'card' | 'modal' | 'drawer' | 'popover' | 'tooltip' | 'sheet' | 'box' | 'flex' | 'grid' | 'gridItem' | 'stack' | 'hstack' | 'vstack' | 'center' | 'container' | 'simpleGrid' | 'wrap' | 'aspectRatio' | 'spacer' | 'resizablePanel' | 'alert' | 'toast' | 'badge' | 'chip' | 'progress' | 'progressCircle' | 'progressSteps' | 'spinner' | 'skeleton' | 'notification' | 'notificationBadge' | 'loadingOverlay' | 'loadingState' | 'emptyState' | 'errorState' | 'resultState' | 'callout' | 'banner' | 'meter' | 'statusBadge' | 'statusDot' | 'tabs' | 'menu' | 'dropdown' | 'accordion' | 'breadcrumb' | 'pagination' | 'stepper' | 'link' | 'navLink' | 'navbar' | 'navGroup' | 'navItem' | 'sidebar' | 'sidebarGroup' | 'sidebarItem' | 'commandPalette' | 'avatar' | 'table' | 'dataTable' | 'list' | 'divider' | 'stat' | 'timeline' | 'virtualList' | 'infiniteScroll' | 'confirmationModal' | 'alertDialog' | 'portal' | 'focusTrap' | 'closeButton' | 'iconButton' | 'linkOverlay' | 'icon' | 'colorPicker' | 'colorSwatch' | 'collapse' | 'scrollArea' | 'scrollToTop' | 'show' | 'hide' | 'visuallyHidden' | 'transition' | 'scaleFade' | 'slideFade' | 'formControl' | 'textareaAutosize';
|
|
17
|
+
/**
|
|
18
|
+
* Button variants.
|
|
19
|
+
*
|
|
20
|
+
* @since 2.0.0
|
|
21
|
+
*/
|
|
22
|
+
export type ButtonVariant = 'filled' | 'outlined' | 'ghost' | 'soft' | 'link';
|
|
23
|
+
/**
|
|
24
|
+
* Input variants.
|
|
25
|
+
*
|
|
26
|
+
* @since 2.0.0
|
|
27
|
+
*/
|
|
28
|
+
export type InputVariant = 'outlined' | 'filled' | 'underlined' | 'unstyled';
|
|
29
|
+
/**
|
|
30
|
+
* Card variants.
|
|
31
|
+
*
|
|
32
|
+
* @since 2.0.0
|
|
33
|
+
*/
|
|
34
|
+
export type CardVariant = 'elevated' | 'outlined' | 'filled' | 'ghost';
|
|
35
|
+
/**
|
|
36
|
+
* Alert variants.
|
|
37
|
+
*
|
|
38
|
+
* @since 2.0.0
|
|
39
|
+
*/
|
|
40
|
+
export type AlertVariant = 'filled' | 'outlined' | 'soft' | 'ghost';
|
|
41
|
+
/**
|
|
42
|
+
* Badge variants.
|
|
43
|
+
*
|
|
44
|
+
* @since 2.0.0
|
|
45
|
+
*/
|
|
46
|
+
export type BadgeVariant = 'solid' | 'soft' | 'outlined' | 'ghost';
|
|
47
|
+
/**
|
|
48
|
+
* Component sizes.
|
|
49
|
+
*
|
|
50
|
+
* @since 2.0.0
|
|
51
|
+
*/
|
|
52
|
+
export type ComponentSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | 'full';
|
|
53
|
+
/**
|
|
54
|
+
* Color schemes for components.
|
|
55
|
+
*
|
|
56
|
+
* @since 2.0.0
|
|
57
|
+
*/
|
|
58
|
+
export type ColorScheme = 'primary' | 'secondary' | 'accent' | 'success' | 'warning' | 'error' | 'info' | 'neutral' | 'surface' | 'glass' | 'inverse' | 'transparent';
|
|
59
|
+
/**
|
|
60
|
+
* Factor 4: Shape options.
|
|
61
|
+
* Controls border radius and aspect ratio of components.
|
|
62
|
+
*
|
|
63
|
+
* @since 2.0.0
|
|
64
|
+
*/
|
|
65
|
+
export type FactorShape = 'none' | 'sm' | 'md' | 'lg' | 'xl' | 'full' | 'pill' | 'square' | 'circle';
|
|
66
|
+
/**
|
|
67
|
+
* Factor 5: Position options.
|
|
68
|
+
* Controls layout positioning of elements.
|
|
69
|
+
*
|
|
70
|
+
* @since 2.0.0
|
|
71
|
+
*/
|
|
72
|
+
export type FactorPosition = 'left' | 'center' | 'right' | 'top' | 'bottom' | 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight' | 'relative' | 'absolute' | 'fixed' | 'sticky';
|
|
73
|
+
/**
|
|
74
|
+
* Factor 6: Icon position options.
|
|
75
|
+
* Controls icon placement relative to content.
|
|
76
|
+
*
|
|
77
|
+
* @since 2.0.0
|
|
78
|
+
*/
|
|
79
|
+
export type FactorIconPosition = 'left' | 'right' | 'top' | 'bottom' | 'only' | 'start' | 'end';
|
|
80
|
+
/**
|
|
81
|
+
* Factor 7: State options.
|
|
82
|
+
* @since 2.0.0
|
|
83
|
+
*/
|
|
84
|
+
export type FactorState = 'default' | 'hover' | 'focus' | 'active' | 'disabled' | 'loading' | 'error' | 'success';
|
|
85
|
+
/**
|
|
86
|
+
* Factor 8: Animation options.
|
|
87
|
+
* @since 2.0.0
|
|
88
|
+
*/
|
|
89
|
+
export type FactorAnimation = 'none' | 'subtle' | 'standard' | 'smooth' | 'bounce' | 'pulse' | 'spin' | 'ping';
|
|
90
|
+
/**
|
|
91
|
+
* Factor 9: Elevation options.
|
|
92
|
+
* @since 2.0.0
|
|
93
|
+
*/
|
|
94
|
+
export type FactorElevation = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | 'inner' | 'neumorphic';
|
|
95
|
+
/**
|
|
96
|
+
* Factor 10: Accessibility level options.
|
|
97
|
+
* @since 2.0.0
|
|
98
|
+
*/
|
|
99
|
+
export type FactorA11y = 'standard' | 'enhanced' | 'maximum';
|
|
100
|
+
/**
|
|
101
|
+
* Factor 11: Alignment options.
|
|
102
|
+
* @since 2.0.0
|
|
103
|
+
*/
|
|
104
|
+
export type FactorAlignment = 'start' | 'center' | 'end' | 'between' | 'around' | 'evenly' | 'stretch' | 'baseline';
|
|
105
|
+
/**
|
|
106
|
+
* Factor 12: Orientation options.
|
|
107
|
+
* Controls layout direction of components.
|
|
108
|
+
*
|
|
109
|
+
* @since 2.0.0
|
|
110
|
+
*/
|
|
111
|
+
export type FactorOrientation = 'horizontal' | 'vertical';
|
|
112
|
+
/**
|
|
113
|
+
* Factor 13: Density options.
|
|
114
|
+
* Controls spacing and padding density.
|
|
115
|
+
*
|
|
116
|
+
* @since 2.0.0
|
|
117
|
+
*/
|
|
118
|
+
export type FactorDensity = 'compact' | 'default' | 'comfortable' | 'spacious';
|
|
119
|
+
/**
|
|
120
|
+
* Factor 14: Loading state options.
|
|
121
|
+
* Controls visual loading state feedback.
|
|
122
|
+
*
|
|
123
|
+
* @since 2.0.0
|
|
124
|
+
*/
|
|
125
|
+
export type FactorLoadingState = 'idle' | 'loading' | 'success' | 'error';
|
|
126
|
+
/**
|
|
127
|
+
* Factor 15: Responsive breakpoint options.
|
|
128
|
+
* @since 2.0.0
|
|
129
|
+
*/
|
|
130
|
+
export type FactorResponsiveBreakpoint = 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
131
|
+
/**
|
|
132
|
+
* Factor 15: Responsive configuration.
|
|
133
|
+
* Maps breakpoints to visibility or size values.
|
|
134
|
+
*
|
|
135
|
+
* @since 2.0.0
|
|
136
|
+
*/
|
|
137
|
+
export interface FactorResponsiveConfig {
|
|
138
|
+
/** Show/hide or size at sm breakpoint (640px) */
|
|
139
|
+
sm?: string | boolean;
|
|
140
|
+
/** Show/hide or size at md breakpoint (768px) */
|
|
141
|
+
md?: string | boolean;
|
|
142
|
+
/** Show/hide or size at lg breakpoint (1024px) */
|
|
143
|
+
lg?: string | boolean;
|
|
144
|
+
/** Show/hide or size at xl breakpoint (1280px) */
|
|
145
|
+
xl?: string | boolean;
|
|
146
|
+
/** Show/hide or size at 2xl breakpoint (1536px) */
|
|
147
|
+
'2xl'?: string | boolean;
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* Factor 16: Theme options.
|
|
151
|
+
* Controls light/dark mode appearance.
|
|
152
|
+
*
|
|
153
|
+
* @since 2.0.0
|
|
154
|
+
*/
|
|
155
|
+
export type FactorTheme = 'light' | 'dark' | 'system';
|
|
156
|
+
/**
|
|
157
|
+
* Factor 17: Spacing options.
|
|
158
|
+
* Controls internal spacing and margins.
|
|
159
|
+
*
|
|
160
|
+
* @since 2.1.0
|
|
161
|
+
*/
|
|
162
|
+
export type FactorSpacing = 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl';
|
|
163
|
+
/**
|
|
164
|
+
* Factor 18: Typography options.
|
|
165
|
+
* Controls text styling presets.
|
|
166
|
+
*
|
|
167
|
+
* @since 2.1.0
|
|
168
|
+
*/
|
|
169
|
+
export type FactorTypography = 'body' | 'bodyLarge' | 'bodySm' | 'heading' | 'headingLg' | 'headingSm' | 'display' | 'displayLg' | 'displaySm' | 'caption' | 'overline' | 'mono' | 'label' | 'labelLg' | 'labelSm';
|
|
170
|
+
/**
|
|
171
|
+
* Factor 19: Border options.
|
|
172
|
+
* Controls border style and width.
|
|
173
|
+
*
|
|
174
|
+
* @since 2.1.0
|
|
175
|
+
*/
|
|
176
|
+
export type FactorBorder = 'none' | 'subtle' | 'solid' | 'bold' | 'dashed' | 'dotted' | 'double' | 'ring' | 'ringBold';
|
|
177
|
+
/**
|
|
178
|
+
* Factor 20: Opacity options.
|
|
179
|
+
* Controls transparency levels.
|
|
180
|
+
*
|
|
181
|
+
* @since 2.1.0
|
|
182
|
+
*/
|
|
183
|
+
export type FactorOpacity = 'transparent' | 'dim' | 'light' | 'low' | 'medium' | 'high' | 'full';
|
|
184
|
+
/**
|
|
185
|
+
* Factor 21: Overflow options.
|
|
186
|
+
* Controls content overflow behavior.
|
|
187
|
+
*
|
|
188
|
+
* @since 2.1.0
|
|
189
|
+
*/
|
|
190
|
+
export type FactorOverflow = 'visible' | 'hidden' | 'scroll' | 'auto' | 'clip' | 'scrollX' | 'scrollY' | 'hiddenX' | 'hiddenY';
|
|
191
|
+
/**
|
|
192
|
+
* Factor 22: Cursor options.
|
|
193
|
+
* Controls cursor style on hover.
|
|
194
|
+
*
|
|
195
|
+
* @since 2.1.0
|
|
196
|
+
*/
|
|
197
|
+
export type FactorCursor = 'default' | 'pointer' | 'grab' | 'grabbing' | 'move' | 'notAllowed' | 'wait' | 'progress' | 'text' | 'crosshair' | 'help' | 'zoomIn' | 'zoomOut' | 'none';
|
|
198
|
+
/**
|
|
199
|
+
* Factor 23: Z-Index options.
|
|
200
|
+
* Controls stacking order.
|
|
201
|
+
*
|
|
202
|
+
* @since 2.1.0
|
|
203
|
+
*/
|
|
204
|
+
export type FactorZIndex = 'auto' | 'base' | 'docked' | 'dropdown' | 'sticky' | 'banner' | 'overlay' | 'modal' | 'drawer' | 'popover' | 'skipLink' | 'toast' | 'tooltip' | 'max';
|
|
205
|
+
/**
|
|
206
|
+
* Factor 24: Transition options.
|
|
207
|
+
* Controls transition timing and duration.
|
|
208
|
+
*
|
|
209
|
+
* @since 2.1.0
|
|
210
|
+
*/
|
|
211
|
+
export type FactorTransition = 'none' | 'instant' | 'fast' | 'default' | 'slow' | 'slower' | 'smooth' | 'spring' | 'bounce' | 'easeIn' | 'easeOut' | 'easeInOut';
|
|
212
|
+
/**
|
|
213
|
+
* Style configuration for component generation.
|
|
214
|
+
*
|
|
215
|
+
* @since 2.0.0
|
|
216
|
+
*/
|
|
217
|
+
export interface StyleConfig {
|
|
218
|
+
/** Component variant (component-specific) */
|
|
219
|
+
variant?: string;
|
|
220
|
+
/** Component size */
|
|
221
|
+
size?: ComponentSize;
|
|
222
|
+
/** Color scheme */
|
|
223
|
+
colorScheme?: ColorScheme;
|
|
224
|
+
/** Disabled state */
|
|
225
|
+
disabled?: boolean;
|
|
226
|
+
/** Loading state */
|
|
227
|
+
loading?: boolean;
|
|
228
|
+
/** Full width */
|
|
229
|
+
fullWidth?: boolean;
|
|
230
|
+
/** Rounded corners (override token default) */
|
|
231
|
+
rounded?: 'none' | 'sm' | 'md' | 'lg' | 'xl' | 'full';
|
|
232
|
+
/** Custom class names to merge */
|
|
233
|
+
className?: string;
|
|
234
|
+
/** Factor 4: Shape - Border radius and aspect ratio */
|
|
235
|
+
factorShape?: FactorShape;
|
|
236
|
+
/** Factor 5: Position - Layout positioning */
|
|
237
|
+
factorPosition?: FactorPosition;
|
|
238
|
+
/** Factor 6: IconPosition - Icon placement relative to content */
|
|
239
|
+
factorIconPosition?: FactorIconPosition;
|
|
240
|
+
/** Factor 7: State - Component interaction state */
|
|
241
|
+
factorState?: FactorState;
|
|
242
|
+
/** Factor 8: Animation - Transition and animation preset */
|
|
243
|
+
factorAnimation?: FactorAnimation;
|
|
244
|
+
/** Factor 9: Elevation - Shadow/depth level */
|
|
245
|
+
factorElevation?: FactorElevation;
|
|
246
|
+
/** Factor 10: A11y - Accessibility enhancement level */
|
|
247
|
+
factorA11y?: FactorA11y;
|
|
248
|
+
/** Factor 11: Justify - Main axis alignment */
|
|
249
|
+
factorJustify?: FactorAlignment;
|
|
250
|
+
/** Factor 11: Align - Cross axis alignment */
|
|
251
|
+
factorAlign?: FactorAlignment;
|
|
252
|
+
/** Factor 12: Orientation - Layout direction */
|
|
253
|
+
factorOrientation?: FactorOrientation;
|
|
254
|
+
/** Factor 13: Density - Spacing and padding density */
|
|
255
|
+
factorDensity?: FactorDensity;
|
|
256
|
+
/** Factor 14: LoadingState - Visual loading feedback */
|
|
257
|
+
factorLoadingState?: FactorLoadingState;
|
|
258
|
+
/** Factor 15: Responsive - Breakpoint-based configuration */
|
|
259
|
+
factorResponsive?: FactorResponsiveConfig;
|
|
260
|
+
/** Factor 16: Theme - Light/dark mode appearance */
|
|
261
|
+
factorTheme?: FactorTheme;
|
|
262
|
+
/** Factor 17: Spacing - Internal spacing and margins */
|
|
263
|
+
factorSpacing?: FactorSpacing;
|
|
264
|
+
/** Factor 18: Typography - Text styling preset */
|
|
265
|
+
factorTypography?: FactorTypography;
|
|
266
|
+
/** Factor 19: Border - Border style and width */
|
|
267
|
+
factorBorder?: FactorBorder;
|
|
268
|
+
/** Factor 20: Opacity - Transparency level */
|
|
269
|
+
factorOpacity?: FactorOpacity;
|
|
270
|
+
/** Factor 21: Overflow - Content overflow behavior */
|
|
271
|
+
factorOverflow?: FactorOverflow;
|
|
272
|
+
/** Factor 22: Cursor - Cursor style on hover */
|
|
273
|
+
factorCursor?: FactorCursor;
|
|
274
|
+
/** Factor 23: ZIndex - Stacking order */
|
|
275
|
+
factorZIndex?: FactorZIndex;
|
|
276
|
+
/** Factor 24: Transition - Transition timing and duration */
|
|
277
|
+
factorTransition?: FactorTransition;
|
|
278
|
+
/** Additional component-specific config */
|
|
279
|
+
[key: string]: unknown;
|
|
280
|
+
}
|
|
281
|
+
/**
|
|
282
|
+
* Generated styles output from StyleGenerator.
|
|
283
|
+
*
|
|
284
|
+
* @since 2.0.0
|
|
285
|
+
*/
|
|
286
|
+
export interface GeneratedStyles {
|
|
287
|
+
/** Base classes (always applied) */
|
|
288
|
+
base: string;
|
|
289
|
+
/** Variant-specific classes */
|
|
290
|
+
variant: string;
|
|
291
|
+
/** Size-specific classes */
|
|
292
|
+
size: string;
|
|
293
|
+
/** State classes (disabled, loading, etc.) */
|
|
294
|
+
state: string;
|
|
295
|
+
/** Color scheme classes */
|
|
296
|
+
colorScheme: string;
|
|
297
|
+
/** Combined class string (all above merged) */
|
|
298
|
+
className: string;
|
|
299
|
+
/** CSS variables for dynamic styling (optional) */
|
|
300
|
+
cssVars?: Record<string, string>;
|
|
301
|
+
}
|
|
302
|
+
/**
|
|
303
|
+
* Style generator function signature.
|
|
304
|
+
*
|
|
305
|
+
* @since 2.0.0
|
|
306
|
+
*/
|
|
307
|
+
export type StyleGeneratorFn<T = unknown> = (tokens: T, config: StyleConfig) => Omit<GeneratedStyles, 'className'>;
|
|
308
|
+
/**
|
|
309
|
+
* Style generator registry type.
|
|
310
|
+
*
|
|
311
|
+
* @since 2.0.0
|
|
312
|
+
*/
|
|
313
|
+
export type StyleGeneratorRegistry<T = unknown> = Record<ComponentType, StyleGeneratorFn<T>>;
|
|
314
|
+
/**
|
|
315
|
+
* Button-specific style configuration.
|
|
316
|
+
*
|
|
317
|
+
* @since 2.0.0
|
|
318
|
+
*/
|
|
319
|
+
export interface ButtonStyleConfig extends StyleConfig {
|
|
320
|
+
variant?: ButtonVariant;
|
|
321
|
+
leftIcon?: boolean;
|
|
322
|
+
rightIcon?: boolean;
|
|
323
|
+
iconOnly?: boolean;
|
|
324
|
+
}
|
|
325
|
+
/**
|
|
326
|
+
* Input-specific style configuration.
|
|
327
|
+
*
|
|
328
|
+
* @since 2.0.0
|
|
329
|
+
*/
|
|
330
|
+
export interface InputStyleConfig extends StyleConfig {
|
|
331
|
+
variant?: InputVariant;
|
|
332
|
+
hasError?: boolean;
|
|
333
|
+
hasSuccess?: boolean;
|
|
334
|
+
hasPrefix?: boolean;
|
|
335
|
+
hasSuffix?: boolean;
|
|
336
|
+
}
|
|
337
|
+
/**
|
|
338
|
+
* Card-specific style configuration.
|
|
339
|
+
*
|
|
340
|
+
* @since 2.0.0
|
|
341
|
+
*/
|
|
342
|
+
export interface CardStyleConfig extends StyleConfig {
|
|
343
|
+
variant?: CardVariant;
|
|
344
|
+
hoverable?: boolean;
|
|
345
|
+
clickable?: boolean;
|
|
346
|
+
noPadding?: boolean;
|
|
347
|
+
}
|
|
348
|
+
/**
|
|
349
|
+
* Alert-specific style configuration.
|
|
350
|
+
*
|
|
351
|
+
* @since 2.0.0
|
|
352
|
+
*/
|
|
353
|
+
export interface AlertStyleConfig extends StyleConfig {
|
|
354
|
+
variant?: AlertVariant;
|
|
355
|
+
dismissible?: boolean;
|
|
356
|
+
hasIcon?: boolean;
|
|
357
|
+
}
|
|
358
|
+
/**
|
|
359
|
+
* Badge-specific style configuration.
|
|
360
|
+
*
|
|
361
|
+
* @since 2.0.0
|
|
362
|
+
*/
|
|
363
|
+
export interface BadgeStyleConfig extends StyleConfig {
|
|
364
|
+
variant?: BadgeVariant;
|
|
365
|
+
dot?: boolean;
|
|
366
|
+
pill?: boolean;
|
|
367
|
+
}
|
|
368
|
+
/**
|
|
369
|
+
* Modal-specific style configuration.
|
|
370
|
+
*
|
|
371
|
+
* @since 2.0.0
|
|
372
|
+
*/
|
|
373
|
+
export interface ModalStyleConfig extends Omit<StyleConfig, 'size'> {
|
|
374
|
+
size?: 'sm' | 'md' | 'lg' | 'xl' | 'full';
|
|
375
|
+
centered?: boolean;
|
|
376
|
+
scrollBehavior?: 'inside' | 'outside';
|
|
377
|
+
}
|
|
378
|
+
/**
|
|
379
|
+
* Tabs-specific style configuration.
|
|
380
|
+
*
|
|
381
|
+
* @since 2.0.0
|
|
382
|
+
*/
|
|
383
|
+
export interface TabsStyleConfig extends StyleConfig {
|
|
384
|
+
variant?: 'line' | 'enclosed' | 'soft' | 'solid';
|
|
385
|
+
orientation?: 'horizontal' | 'vertical';
|
|
386
|
+
fitted?: boolean;
|
|
387
|
+
}
|
|
388
|
+
/**
|
|
389
|
+
* Progress-specific style configuration.
|
|
390
|
+
*
|
|
391
|
+
* @since 2.0.0
|
|
392
|
+
*/
|
|
393
|
+
export interface ProgressStyleConfig extends StyleConfig {
|
|
394
|
+
variant?: 'linear' | 'circular';
|
|
395
|
+
indeterminate?: boolean;
|
|
396
|
+
showValue?: boolean;
|
|
397
|
+
striped?: boolean;
|
|
398
|
+
animated?: boolean;
|
|
399
|
+
}
|
|
400
|
+
//# sourceMappingURL=types.d.ts.map
|