@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,700 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 16-Factor Variant System - Factors 12-16
|
|
3
|
+
*
|
|
4
|
+
* Factor 12: Orientation - Layout direction options
|
|
5
|
+
* Factor 13: Density - Spacing and padding density
|
|
6
|
+
* Factor 14: LoadingState - Visual loading feedback
|
|
7
|
+
* Factor 15: Responsive - Breakpoint-based configuration
|
|
8
|
+
* Factor 16: Theme - Light/dark mode appearance
|
|
9
|
+
*
|
|
10
|
+
* @packageDocumentation
|
|
11
|
+
* @module generator/factors-12-16
|
|
12
|
+
* @since 2.0.0
|
|
13
|
+
*
|
|
14
|
+
* Powered by Nikkory
|
|
15
|
+
*/
|
|
16
|
+
import type { FactorOrientation, FactorDensity, FactorLoadingState, FactorResponsiveConfig, FactorResponsiveBreakpoint, FactorTheme } from './types';
|
|
17
|
+
/**
|
|
18
|
+
* Orientation options constant.
|
|
19
|
+
* @since 2.0.0
|
|
20
|
+
*/
|
|
21
|
+
export declare const ORIENTATIONS: {
|
|
22
|
+
readonly horizontal: "horizontal";
|
|
23
|
+
readonly vertical: "vertical";
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Orientation-specific Tailwind classes for different component contexts.
|
|
27
|
+
* @since 2.0.0
|
|
28
|
+
*/
|
|
29
|
+
export declare const orientationVariants: {
|
|
30
|
+
/** Flex container orientation */
|
|
31
|
+
readonly flex: {
|
|
32
|
+
readonly horizontal: "flex-row";
|
|
33
|
+
readonly vertical: "flex-col";
|
|
34
|
+
};
|
|
35
|
+
/** Tabs component orientation */
|
|
36
|
+
readonly tabs: {
|
|
37
|
+
readonly horizontal: "flex-row border-b";
|
|
38
|
+
readonly vertical: "flex-col border-r";
|
|
39
|
+
};
|
|
40
|
+
/** Divider orientation */
|
|
41
|
+
readonly divider: {
|
|
42
|
+
readonly horizontal: "w-full h-px";
|
|
43
|
+
readonly vertical: "h-full w-px";
|
|
44
|
+
};
|
|
45
|
+
/** Stepper orientation */
|
|
46
|
+
readonly stepper: {
|
|
47
|
+
readonly horizontal: "flex-row space-x-4";
|
|
48
|
+
readonly vertical: "flex-col space-y-4";
|
|
49
|
+
};
|
|
50
|
+
/** Button group orientation */
|
|
51
|
+
readonly buttonGroup: {
|
|
52
|
+
readonly horizontal: "flex-row";
|
|
53
|
+
readonly vertical: "flex-col";
|
|
54
|
+
};
|
|
55
|
+
/** List orientation */
|
|
56
|
+
readonly list: {
|
|
57
|
+
readonly horizontal: "flex-row flex-wrap gap-2";
|
|
58
|
+
readonly vertical: "flex-col gap-1";
|
|
59
|
+
};
|
|
60
|
+
/** Slider orientation */
|
|
61
|
+
readonly slider: {
|
|
62
|
+
readonly horizontal: "w-full h-2";
|
|
63
|
+
readonly vertical: "h-full w-2";
|
|
64
|
+
};
|
|
65
|
+
/** Stack orientation */
|
|
66
|
+
readonly stack: {
|
|
67
|
+
readonly horizontal: "flex-row";
|
|
68
|
+
readonly vertical: "flex-col";
|
|
69
|
+
};
|
|
70
|
+
/** Radio/Checkbox group */
|
|
71
|
+
readonly radioGroup: {
|
|
72
|
+
readonly horizontal: "flex-row gap-4";
|
|
73
|
+
readonly vertical: "flex-col gap-2";
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
export type OrientationVariantKey = keyof typeof orientationVariants;
|
|
77
|
+
/**
|
|
78
|
+
* Build orientation classes for a specific component context.
|
|
79
|
+
*
|
|
80
|
+
* @param context - Component context (flex, tabs, divider, etc.)
|
|
81
|
+
* @param orientation - Orientation value
|
|
82
|
+
* @returns Tailwind classes for orientation
|
|
83
|
+
*
|
|
84
|
+
* @example
|
|
85
|
+
* ```typescript
|
|
86
|
+
* buildOrientationClasses('tabs', 'vertical')
|
|
87
|
+
* // => "flex-col border-r"
|
|
88
|
+
* ```
|
|
89
|
+
*
|
|
90
|
+
* @since 2.0.0
|
|
91
|
+
*/
|
|
92
|
+
export declare function buildOrientationClasses(context: OrientationVariantKey, orientation: FactorOrientation): string;
|
|
93
|
+
/**
|
|
94
|
+
* Density options constant.
|
|
95
|
+
* @since 2.0.0
|
|
96
|
+
*/
|
|
97
|
+
export declare const DENSITIES: {
|
|
98
|
+
readonly compact: "compact";
|
|
99
|
+
readonly default: "default";
|
|
100
|
+
readonly comfortable: "comfortable";
|
|
101
|
+
readonly spacious: "spacious";
|
|
102
|
+
};
|
|
103
|
+
/**
|
|
104
|
+
* Density-specific Tailwind classes for different component contexts.
|
|
105
|
+
* @since 2.0.0
|
|
106
|
+
*/
|
|
107
|
+
export declare const densityVariants: {
|
|
108
|
+
/** Generic padding density */
|
|
109
|
+
readonly padding: {
|
|
110
|
+
readonly compact: "p-1";
|
|
111
|
+
readonly default: "p-2";
|
|
112
|
+
readonly comfortable: "p-4";
|
|
113
|
+
readonly spacious: "p-6";
|
|
114
|
+
};
|
|
115
|
+
/** Button density */
|
|
116
|
+
readonly button: {
|
|
117
|
+
readonly compact: "px-2 py-0.5 text-xs";
|
|
118
|
+
readonly default: "px-4 py-2 text-sm";
|
|
119
|
+
readonly comfortable: "px-6 py-3 text-base";
|
|
120
|
+
readonly spacious: "px-8 py-4 text-lg";
|
|
121
|
+
};
|
|
122
|
+
/** Input density */
|
|
123
|
+
readonly input: {
|
|
124
|
+
readonly compact: "px-2 py-1 text-xs h-7";
|
|
125
|
+
readonly default: "px-3 py-2 text-sm h-10";
|
|
126
|
+
readonly comfortable: "px-4 py-3 text-base h-12";
|
|
127
|
+
readonly spacious: "px-5 py-4 text-lg h-14";
|
|
128
|
+
};
|
|
129
|
+
/** Table row density */
|
|
130
|
+
readonly tableRow: {
|
|
131
|
+
readonly compact: "py-1 px-2";
|
|
132
|
+
readonly default: "py-2 px-4";
|
|
133
|
+
readonly comfortable: "py-3 px-6";
|
|
134
|
+
readonly spacious: "py-4 px-8";
|
|
135
|
+
};
|
|
136
|
+
/** List item density */
|
|
137
|
+
readonly listItem: {
|
|
138
|
+
readonly compact: "py-1 px-2";
|
|
139
|
+
readonly default: "py-2 px-3";
|
|
140
|
+
readonly comfortable: "py-3 px-4";
|
|
141
|
+
readonly spacious: "py-4 px-6";
|
|
142
|
+
};
|
|
143
|
+
/** Card density */
|
|
144
|
+
readonly card: {
|
|
145
|
+
readonly compact: "p-2";
|
|
146
|
+
readonly default: "p-4";
|
|
147
|
+
readonly comfortable: "p-6";
|
|
148
|
+
readonly spacious: "p-8";
|
|
149
|
+
};
|
|
150
|
+
/** Menu item density */
|
|
151
|
+
readonly menu: {
|
|
152
|
+
readonly compact: "px-2 py-1 text-xs";
|
|
153
|
+
readonly default: "px-3 py-2 text-sm";
|
|
154
|
+
readonly comfortable: "px-4 py-3 text-base";
|
|
155
|
+
readonly spacious: "px-6 py-4 text-lg";
|
|
156
|
+
};
|
|
157
|
+
/** Gap/spacing density */
|
|
158
|
+
readonly gap: {
|
|
159
|
+
readonly compact: "gap-1";
|
|
160
|
+
readonly default: "gap-2";
|
|
161
|
+
readonly comfortable: "gap-4";
|
|
162
|
+
readonly spacious: "gap-6";
|
|
163
|
+
};
|
|
164
|
+
/** Icon size density */
|
|
165
|
+
readonly icon: {
|
|
166
|
+
readonly compact: "w-3 h-3";
|
|
167
|
+
readonly default: "w-4 h-4";
|
|
168
|
+
readonly comfortable: "w-5 h-5";
|
|
169
|
+
readonly spacious: "w-6 h-6";
|
|
170
|
+
};
|
|
171
|
+
};
|
|
172
|
+
export type DensityVariantKey = keyof typeof densityVariants;
|
|
173
|
+
/**
|
|
174
|
+
* Build density classes for a specific component context.
|
|
175
|
+
*
|
|
176
|
+
* @param context - Component context (button, input, card, etc.)
|
|
177
|
+
* @param density - Density value
|
|
178
|
+
* @returns Tailwind classes for density
|
|
179
|
+
*
|
|
180
|
+
* @example
|
|
181
|
+
* ```typescript
|
|
182
|
+
* buildDensityClasses('button', 'compact')
|
|
183
|
+
* // => "px-2 py-0.5 text-xs"
|
|
184
|
+
* ```
|
|
185
|
+
*
|
|
186
|
+
* @since 2.0.0
|
|
187
|
+
*/
|
|
188
|
+
export declare function buildDensityClasses(context: DensityVariantKey, density: FactorDensity): string;
|
|
189
|
+
/**
|
|
190
|
+
* Loading state options constant.
|
|
191
|
+
* @since 2.0.0
|
|
192
|
+
*/
|
|
193
|
+
export declare const LOADING_STATES: {
|
|
194
|
+
readonly idle: "idle";
|
|
195
|
+
readonly loading: "loading";
|
|
196
|
+
readonly success: "success";
|
|
197
|
+
readonly error: "error";
|
|
198
|
+
};
|
|
199
|
+
/**
|
|
200
|
+
* Loading state-specific Tailwind classes for different contexts.
|
|
201
|
+
* @since 2.0.0
|
|
202
|
+
*/
|
|
203
|
+
export declare const loadingStateVariants: {
|
|
204
|
+
/** Visual indicator classes */
|
|
205
|
+
readonly visual: {
|
|
206
|
+
readonly idle: "";
|
|
207
|
+
readonly loading: "opacity-70 cursor-wait";
|
|
208
|
+
readonly success: "border-success-500 bg-success-50";
|
|
209
|
+
readonly error: "border-error-500 bg-error-50";
|
|
210
|
+
};
|
|
211
|
+
/** Button loading states */
|
|
212
|
+
readonly button: {
|
|
213
|
+
readonly idle: "";
|
|
214
|
+
readonly loading: "opacity-70 cursor-wait pointer-events-none";
|
|
215
|
+
readonly success: "bg-success-500 text-white";
|
|
216
|
+
readonly error: "bg-error-500 text-white";
|
|
217
|
+
};
|
|
218
|
+
/** Input loading states */
|
|
219
|
+
readonly input: {
|
|
220
|
+
readonly idle: "";
|
|
221
|
+
readonly loading: "bg-neutral-50 cursor-wait";
|
|
222
|
+
readonly success: "border-success-500 focus:ring-success-500";
|
|
223
|
+
readonly error: "border-error-500 focus:ring-error-500";
|
|
224
|
+
};
|
|
225
|
+
/** Card loading states */
|
|
226
|
+
readonly card: {
|
|
227
|
+
readonly idle: "";
|
|
228
|
+
readonly loading: "animate-pulse";
|
|
229
|
+
readonly success: "ring-2 ring-success-500";
|
|
230
|
+
readonly error: "ring-2 ring-error-500";
|
|
231
|
+
};
|
|
232
|
+
/** Form loading states */
|
|
233
|
+
readonly form: {
|
|
234
|
+
readonly idle: "";
|
|
235
|
+
readonly loading: "pointer-events-none opacity-60";
|
|
236
|
+
readonly success: "";
|
|
237
|
+
readonly error: "";
|
|
238
|
+
};
|
|
239
|
+
};
|
|
240
|
+
export type LoadingStateVariantKey = keyof typeof loadingStateVariants;
|
|
241
|
+
/**
|
|
242
|
+
* Build loading state classes for a specific component context.
|
|
243
|
+
*
|
|
244
|
+
* @param context - Component context (button, input, card, etc.)
|
|
245
|
+
* @param state - Loading state value
|
|
246
|
+
* @returns Tailwind classes for loading state
|
|
247
|
+
*
|
|
248
|
+
* @example
|
|
249
|
+
* ```typescript
|
|
250
|
+
* buildLoadingStateClasses('button', 'loading')
|
|
251
|
+
* // => "opacity-70 cursor-wait pointer-events-none"
|
|
252
|
+
* ```
|
|
253
|
+
*
|
|
254
|
+
* @since 2.0.0
|
|
255
|
+
*/
|
|
256
|
+
export declare function buildLoadingStateClasses(context: LoadingStateVariantKey, state: FactorLoadingState): string;
|
|
257
|
+
/**
|
|
258
|
+
* Responsive breakpoint options constant.
|
|
259
|
+
* @since 2.0.0
|
|
260
|
+
*/
|
|
261
|
+
export declare const RESPONSIVE_BREAKPOINTS: {
|
|
262
|
+
readonly sm: "sm";
|
|
263
|
+
readonly md: "md";
|
|
264
|
+
readonly lg: "lg";
|
|
265
|
+
readonly xl: "xl";
|
|
266
|
+
readonly '2xl': "2xl";
|
|
267
|
+
};
|
|
268
|
+
/**
|
|
269
|
+
* Breakpoint pixel values for reference.
|
|
270
|
+
* @since 2.0.0
|
|
271
|
+
*/
|
|
272
|
+
export declare const BREAKPOINT_VALUES: Record<FactorResponsiveBreakpoint, number>;
|
|
273
|
+
/**
|
|
274
|
+
* Responsive visibility classes.
|
|
275
|
+
* @since 2.0.0
|
|
276
|
+
*/
|
|
277
|
+
export declare const responsiveVisibility: {
|
|
278
|
+
/** Hide at breakpoint and above */
|
|
279
|
+
readonly hideUp: {
|
|
280
|
+
readonly sm: "sm:hidden";
|
|
281
|
+
readonly md: "md:hidden";
|
|
282
|
+
readonly lg: "lg:hidden";
|
|
283
|
+
readonly xl: "xl:hidden";
|
|
284
|
+
readonly '2xl': "2xl:hidden";
|
|
285
|
+
};
|
|
286
|
+
/** Show at breakpoint and above */
|
|
287
|
+
readonly showUp: {
|
|
288
|
+
readonly sm: "hidden sm:block";
|
|
289
|
+
readonly md: "hidden md:block";
|
|
290
|
+
readonly lg: "hidden lg:block";
|
|
291
|
+
readonly xl: "hidden xl:block";
|
|
292
|
+
readonly '2xl': "hidden 2xl:block";
|
|
293
|
+
};
|
|
294
|
+
/** Hide below breakpoint */
|
|
295
|
+
readonly hideDown: {
|
|
296
|
+
readonly sm: "max-sm:hidden";
|
|
297
|
+
readonly md: "max-md:hidden";
|
|
298
|
+
readonly lg: "max-lg:hidden";
|
|
299
|
+
readonly xl: "max-xl:hidden";
|
|
300
|
+
readonly '2xl': "max-2xl:hidden";
|
|
301
|
+
};
|
|
302
|
+
};
|
|
303
|
+
/**
|
|
304
|
+
* Apply responsive prefix to a class.
|
|
305
|
+
*
|
|
306
|
+
* @param breakpoint - Responsive breakpoint
|
|
307
|
+
* @param className - Class to prefix
|
|
308
|
+
* @returns Prefixed class string
|
|
309
|
+
*
|
|
310
|
+
* @example
|
|
311
|
+
* ```typescript
|
|
312
|
+
* applyResponsivePrefix('md', 'text-lg')
|
|
313
|
+
* // => "md:text-lg"
|
|
314
|
+
* ```
|
|
315
|
+
*
|
|
316
|
+
* @since 2.0.0
|
|
317
|
+
*/
|
|
318
|
+
export declare function applyResponsivePrefix(breakpoint: FactorResponsiveBreakpoint, className: string): string;
|
|
319
|
+
/**
|
|
320
|
+
* Build responsive classes from configuration.
|
|
321
|
+
*
|
|
322
|
+
* @param config - Responsive configuration object
|
|
323
|
+
* @returns Combined responsive classes
|
|
324
|
+
*
|
|
325
|
+
* @example
|
|
326
|
+
* ```typescript
|
|
327
|
+
* buildResponsiveClasses({ sm: 'hidden', md: 'block', lg: 'flex' })
|
|
328
|
+
* // => "sm:hidden md:block lg:flex"
|
|
329
|
+
* ```
|
|
330
|
+
*
|
|
331
|
+
* @since 2.0.0
|
|
332
|
+
*/
|
|
333
|
+
export declare function buildResponsiveClasses(config: FactorResponsiveConfig): string;
|
|
334
|
+
/**
|
|
335
|
+
* Theme options constant.
|
|
336
|
+
* @since 2.0.0
|
|
337
|
+
*/
|
|
338
|
+
export declare const THEMES: {
|
|
339
|
+
readonly light: "light";
|
|
340
|
+
readonly dark: "dark";
|
|
341
|
+
readonly system: "system";
|
|
342
|
+
};
|
|
343
|
+
/**
|
|
344
|
+
* Theme-specific Tailwind classes for different properties.
|
|
345
|
+
* @since 2.0.0
|
|
346
|
+
*/
|
|
347
|
+
export declare const themeVariants: {
|
|
348
|
+
/** Background colors */
|
|
349
|
+
readonly background: {
|
|
350
|
+
readonly light: "bg-white";
|
|
351
|
+
readonly dark: "dark:bg-neutral-900";
|
|
352
|
+
readonly system: "bg-white dark:bg-neutral-900";
|
|
353
|
+
};
|
|
354
|
+
/** Primary text colors */
|
|
355
|
+
readonly textPrimary: {
|
|
356
|
+
readonly light: "text-neutral-900";
|
|
357
|
+
readonly dark: "dark:text-white";
|
|
358
|
+
readonly system: "text-neutral-900 dark:text-white";
|
|
359
|
+
};
|
|
360
|
+
/** Secondary text colors */
|
|
361
|
+
readonly textSecondary: {
|
|
362
|
+
readonly light: "text-neutral-600";
|
|
363
|
+
readonly dark: "dark:text-neutral-400";
|
|
364
|
+
readonly system: "text-neutral-600 dark:text-neutral-400";
|
|
365
|
+
};
|
|
366
|
+
/** Border colors */
|
|
367
|
+
readonly border: {
|
|
368
|
+
readonly light: "border-neutral-200";
|
|
369
|
+
readonly dark: "dark:border-neutral-700";
|
|
370
|
+
readonly system: "border-neutral-200 dark:border-neutral-700";
|
|
371
|
+
};
|
|
372
|
+
/** Surface/card backgrounds */
|
|
373
|
+
readonly surface: {
|
|
374
|
+
readonly light: "bg-neutral-50";
|
|
375
|
+
readonly dark: "dark:bg-neutral-800";
|
|
376
|
+
readonly system: "bg-neutral-50 dark:bg-neutral-800";
|
|
377
|
+
};
|
|
378
|
+
/** Hover backgrounds */
|
|
379
|
+
readonly hoverBg: {
|
|
380
|
+
readonly light: "hover:bg-neutral-100";
|
|
381
|
+
readonly dark: "dark:hover:bg-neutral-700";
|
|
382
|
+
readonly system: "hover:bg-neutral-100 dark:hover:bg-neutral-700";
|
|
383
|
+
};
|
|
384
|
+
};
|
|
385
|
+
export type ThemeVariantKey = keyof typeof themeVariants;
|
|
386
|
+
/**
|
|
387
|
+
* Build theme classes for a specific property.
|
|
388
|
+
*
|
|
389
|
+
* @param property - Property to theme (background, text, border, etc.)
|
|
390
|
+
* @param theme - Theme value
|
|
391
|
+
* @returns Tailwind classes for theme
|
|
392
|
+
*
|
|
393
|
+
* @example
|
|
394
|
+
* ```typescript
|
|
395
|
+
* buildThemeClasses('background', 'system')
|
|
396
|
+
* // => "bg-white dark:bg-neutral-900"
|
|
397
|
+
* ```
|
|
398
|
+
*
|
|
399
|
+
* @since 2.0.0
|
|
400
|
+
*/
|
|
401
|
+
export declare function buildThemeClasses(property: ThemeVariantKey, theme: FactorTheme): string;
|
|
402
|
+
/**
|
|
403
|
+
* Get all theme classes for a complete component theme.
|
|
404
|
+
*
|
|
405
|
+
* @param theme - Theme value
|
|
406
|
+
* @returns Object with all themed property classes
|
|
407
|
+
*
|
|
408
|
+
* @since 2.0.0
|
|
409
|
+
*/
|
|
410
|
+
export declare function getThemeClasses(theme: FactorTheme): Record<ThemeVariantKey, string>;
|
|
411
|
+
/**
|
|
412
|
+
* Factor 12-16 configuration interface.
|
|
413
|
+
* @since 2.0.0
|
|
414
|
+
*/
|
|
415
|
+
export interface Factors12to16Config {
|
|
416
|
+
/** Factor 12: Orientation */
|
|
417
|
+
orientation?: FactorOrientation;
|
|
418
|
+
/** Factor 13: Density */
|
|
419
|
+
density?: FactorDensity;
|
|
420
|
+
/** Factor 14: Loading state */
|
|
421
|
+
loadingState?: FactorLoadingState;
|
|
422
|
+
/** Factor 15: Responsive config */
|
|
423
|
+
responsive?: FactorResponsiveConfig;
|
|
424
|
+
/** Factor 16: Theme */
|
|
425
|
+
theme?: FactorTheme;
|
|
426
|
+
}
|
|
427
|
+
/**
|
|
428
|
+
* Apply all Factor 12-16 configurations to generate classes.
|
|
429
|
+
*
|
|
430
|
+
* @param componentType - Type of component for context-aware classes
|
|
431
|
+
* @param config - Factor 12-16 configuration
|
|
432
|
+
* @returns Combined class string
|
|
433
|
+
*
|
|
434
|
+
* @example
|
|
435
|
+
* ```typescript
|
|
436
|
+
* applyFactors12to16('button', {
|
|
437
|
+
* orientation: 'horizontal',
|
|
438
|
+
* density: 'compact',
|
|
439
|
+
* loadingState: 'loading',
|
|
440
|
+
* theme: 'system'
|
|
441
|
+
* })
|
|
442
|
+
* ```
|
|
443
|
+
*
|
|
444
|
+
* @since 2.0.0
|
|
445
|
+
*/
|
|
446
|
+
export declare function applyFactors12to16(componentType: string, config: Factors12to16Config): string;
|
|
447
|
+
export declare const Factors12to16: {
|
|
448
|
+
ORIENTATIONS: {
|
|
449
|
+
readonly horizontal: "horizontal";
|
|
450
|
+
readonly vertical: "vertical";
|
|
451
|
+
};
|
|
452
|
+
orientationVariants: {
|
|
453
|
+
/** Flex container orientation */
|
|
454
|
+
readonly flex: {
|
|
455
|
+
readonly horizontal: "flex-row";
|
|
456
|
+
readonly vertical: "flex-col";
|
|
457
|
+
};
|
|
458
|
+
/** Tabs component orientation */
|
|
459
|
+
readonly tabs: {
|
|
460
|
+
readonly horizontal: "flex-row border-b";
|
|
461
|
+
readonly vertical: "flex-col border-r";
|
|
462
|
+
};
|
|
463
|
+
/** Divider orientation */
|
|
464
|
+
readonly divider: {
|
|
465
|
+
readonly horizontal: "w-full h-px";
|
|
466
|
+
readonly vertical: "h-full w-px";
|
|
467
|
+
};
|
|
468
|
+
/** Stepper orientation */
|
|
469
|
+
readonly stepper: {
|
|
470
|
+
readonly horizontal: "flex-row space-x-4";
|
|
471
|
+
readonly vertical: "flex-col space-y-4";
|
|
472
|
+
};
|
|
473
|
+
/** Button group orientation */
|
|
474
|
+
readonly buttonGroup: {
|
|
475
|
+
readonly horizontal: "flex-row";
|
|
476
|
+
readonly vertical: "flex-col";
|
|
477
|
+
};
|
|
478
|
+
/** List orientation */
|
|
479
|
+
readonly list: {
|
|
480
|
+
readonly horizontal: "flex-row flex-wrap gap-2";
|
|
481
|
+
readonly vertical: "flex-col gap-1";
|
|
482
|
+
};
|
|
483
|
+
/** Slider orientation */
|
|
484
|
+
readonly slider: {
|
|
485
|
+
readonly horizontal: "w-full h-2";
|
|
486
|
+
readonly vertical: "h-full w-2";
|
|
487
|
+
};
|
|
488
|
+
/** Stack orientation */
|
|
489
|
+
readonly stack: {
|
|
490
|
+
readonly horizontal: "flex-row";
|
|
491
|
+
readonly vertical: "flex-col";
|
|
492
|
+
};
|
|
493
|
+
/** Radio/Checkbox group */
|
|
494
|
+
readonly radioGroup: {
|
|
495
|
+
readonly horizontal: "flex-row gap-4";
|
|
496
|
+
readonly vertical: "flex-col gap-2";
|
|
497
|
+
};
|
|
498
|
+
};
|
|
499
|
+
buildOrientationClasses: typeof buildOrientationClasses;
|
|
500
|
+
DENSITIES: {
|
|
501
|
+
readonly compact: "compact";
|
|
502
|
+
readonly default: "default";
|
|
503
|
+
readonly comfortable: "comfortable";
|
|
504
|
+
readonly spacious: "spacious";
|
|
505
|
+
};
|
|
506
|
+
densityVariants: {
|
|
507
|
+
/** Generic padding density */
|
|
508
|
+
readonly padding: {
|
|
509
|
+
readonly compact: "p-1";
|
|
510
|
+
readonly default: "p-2";
|
|
511
|
+
readonly comfortable: "p-4";
|
|
512
|
+
readonly spacious: "p-6";
|
|
513
|
+
};
|
|
514
|
+
/** Button density */
|
|
515
|
+
readonly button: {
|
|
516
|
+
readonly compact: "px-2 py-0.5 text-xs";
|
|
517
|
+
readonly default: "px-4 py-2 text-sm";
|
|
518
|
+
readonly comfortable: "px-6 py-3 text-base";
|
|
519
|
+
readonly spacious: "px-8 py-4 text-lg";
|
|
520
|
+
};
|
|
521
|
+
/** Input density */
|
|
522
|
+
readonly input: {
|
|
523
|
+
readonly compact: "px-2 py-1 text-xs h-7";
|
|
524
|
+
readonly default: "px-3 py-2 text-sm h-10";
|
|
525
|
+
readonly comfortable: "px-4 py-3 text-base h-12";
|
|
526
|
+
readonly spacious: "px-5 py-4 text-lg h-14";
|
|
527
|
+
};
|
|
528
|
+
/** Table row density */
|
|
529
|
+
readonly tableRow: {
|
|
530
|
+
readonly compact: "py-1 px-2";
|
|
531
|
+
readonly default: "py-2 px-4";
|
|
532
|
+
readonly comfortable: "py-3 px-6";
|
|
533
|
+
readonly spacious: "py-4 px-8";
|
|
534
|
+
};
|
|
535
|
+
/** List item density */
|
|
536
|
+
readonly listItem: {
|
|
537
|
+
readonly compact: "py-1 px-2";
|
|
538
|
+
readonly default: "py-2 px-3";
|
|
539
|
+
readonly comfortable: "py-3 px-4";
|
|
540
|
+
readonly spacious: "py-4 px-6";
|
|
541
|
+
};
|
|
542
|
+
/** Card density */
|
|
543
|
+
readonly card: {
|
|
544
|
+
readonly compact: "p-2";
|
|
545
|
+
readonly default: "p-4";
|
|
546
|
+
readonly comfortable: "p-6";
|
|
547
|
+
readonly spacious: "p-8";
|
|
548
|
+
};
|
|
549
|
+
/** Menu item density */
|
|
550
|
+
readonly menu: {
|
|
551
|
+
readonly compact: "px-2 py-1 text-xs";
|
|
552
|
+
readonly default: "px-3 py-2 text-sm";
|
|
553
|
+
readonly comfortable: "px-4 py-3 text-base";
|
|
554
|
+
readonly spacious: "px-6 py-4 text-lg";
|
|
555
|
+
};
|
|
556
|
+
/** Gap/spacing density */
|
|
557
|
+
readonly gap: {
|
|
558
|
+
readonly compact: "gap-1";
|
|
559
|
+
readonly default: "gap-2";
|
|
560
|
+
readonly comfortable: "gap-4";
|
|
561
|
+
readonly spacious: "gap-6";
|
|
562
|
+
};
|
|
563
|
+
/** Icon size density */
|
|
564
|
+
readonly icon: {
|
|
565
|
+
readonly compact: "w-3 h-3";
|
|
566
|
+
readonly default: "w-4 h-4";
|
|
567
|
+
readonly comfortable: "w-5 h-5";
|
|
568
|
+
readonly spacious: "w-6 h-6";
|
|
569
|
+
};
|
|
570
|
+
};
|
|
571
|
+
buildDensityClasses: typeof buildDensityClasses;
|
|
572
|
+
LOADING_STATES: {
|
|
573
|
+
readonly idle: "idle";
|
|
574
|
+
readonly loading: "loading";
|
|
575
|
+
readonly success: "success";
|
|
576
|
+
readonly error: "error";
|
|
577
|
+
};
|
|
578
|
+
loadingStateVariants: {
|
|
579
|
+
/** Visual indicator classes */
|
|
580
|
+
readonly visual: {
|
|
581
|
+
readonly idle: "";
|
|
582
|
+
readonly loading: "opacity-70 cursor-wait";
|
|
583
|
+
readonly success: "border-success-500 bg-success-50";
|
|
584
|
+
readonly error: "border-error-500 bg-error-50";
|
|
585
|
+
};
|
|
586
|
+
/** Button loading states */
|
|
587
|
+
readonly button: {
|
|
588
|
+
readonly idle: "";
|
|
589
|
+
readonly loading: "opacity-70 cursor-wait pointer-events-none";
|
|
590
|
+
readonly success: "bg-success-500 text-white";
|
|
591
|
+
readonly error: "bg-error-500 text-white";
|
|
592
|
+
};
|
|
593
|
+
/** Input loading states */
|
|
594
|
+
readonly input: {
|
|
595
|
+
readonly idle: "";
|
|
596
|
+
readonly loading: "bg-neutral-50 cursor-wait";
|
|
597
|
+
readonly success: "border-success-500 focus:ring-success-500";
|
|
598
|
+
readonly error: "border-error-500 focus:ring-error-500";
|
|
599
|
+
};
|
|
600
|
+
/** Card loading states */
|
|
601
|
+
readonly card: {
|
|
602
|
+
readonly idle: "";
|
|
603
|
+
readonly loading: "animate-pulse";
|
|
604
|
+
readonly success: "ring-2 ring-success-500";
|
|
605
|
+
readonly error: "ring-2 ring-error-500";
|
|
606
|
+
};
|
|
607
|
+
/** Form loading states */
|
|
608
|
+
readonly form: {
|
|
609
|
+
readonly idle: "";
|
|
610
|
+
readonly loading: "pointer-events-none opacity-60";
|
|
611
|
+
readonly success: "";
|
|
612
|
+
readonly error: "";
|
|
613
|
+
};
|
|
614
|
+
};
|
|
615
|
+
buildLoadingStateClasses: typeof buildLoadingStateClasses;
|
|
616
|
+
RESPONSIVE_BREAKPOINTS: {
|
|
617
|
+
readonly sm: "sm";
|
|
618
|
+
readonly md: "md";
|
|
619
|
+
readonly lg: "lg";
|
|
620
|
+
readonly xl: "xl";
|
|
621
|
+
readonly '2xl': "2xl";
|
|
622
|
+
};
|
|
623
|
+
BREAKPOINT_VALUES: Record<FactorResponsiveBreakpoint, number>;
|
|
624
|
+
responsiveVisibility: {
|
|
625
|
+
/** Hide at breakpoint and above */
|
|
626
|
+
readonly hideUp: {
|
|
627
|
+
readonly sm: "sm:hidden";
|
|
628
|
+
readonly md: "md:hidden";
|
|
629
|
+
readonly lg: "lg:hidden";
|
|
630
|
+
readonly xl: "xl:hidden";
|
|
631
|
+
readonly '2xl': "2xl:hidden";
|
|
632
|
+
};
|
|
633
|
+
/** Show at breakpoint and above */
|
|
634
|
+
readonly showUp: {
|
|
635
|
+
readonly sm: "hidden sm:block";
|
|
636
|
+
readonly md: "hidden md:block";
|
|
637
|
+
readonly lg: "hidden lg:block";
|
|
638
|
+
readonly xl: "hidden xl:block";
|
|
639
|
+
readonly '2xl': "hidden 2xl:block";
|
|
640
|
+
};
|
|
641
|
+
/** Hide below breakpoint */
|
|
642
|
+
readonly hideDown: {
|
|
643
|
+
readonly sm: "max-sm:hidden";
|
|
644
|
+
readonly md: "max-md:hidden";
|
|
645
|
+
readonly lg: "max-lg:hidden";
|
|
646
|
+
readonly xl: "max-xl:hidden";
|
|
647
|
+
readonly '2xl': "max-2xl:hidden";
|
|
648
|
+
};
|
|
649
|
+
};
|
|
650
|
+
applyResponsivePrefix: typeof applyResponsivePrefix;
|
|
651
|
+
buildResponsiveClasses: typeof buildResponsiveClasses;
|
|
652
|
+
THEMES: {
|
|
653
|
+
readonly light: "light";
|
|
654
|
+
readonly dark: "dark";
|
|
655
|
+
readonly system: "system";
|
|
656
|
+
};
|
|
657
|
+
themeVariants: {
|
|
658
|
+
/** Background colors */
|
|
659
|
+
readonly background: {
|
|
660
|
+
readonly light: "bg-white";
|
|
661
|
+
readonly dark: "dark:bg-neutral-900";
|
|
662
|
+
readonly system: "bg-white dark:bg-neutral-900";
|
|
663
|
+
};
|
|
664
|
+
/** Primary text colors */
|
|
665
|
+
readonly textPrimary: {
|
|
666
|
+
readonly light: "text-neutral-900";
|
|
667
|
+
readonly dark: "dark:text-white";
|
|
668
|
+
readonly system: "text-neutral-900 dark:text-white";
|
|
669
|
+
};
|
|
670
|
+
/** Secondary text colors */
|
|
671
|
+
readonly textSecondary: {
|
|
672
|
+
readonly light: "text-neutral-600";
|
|
673
|
+
readonly dark: "dark:text-neutral-400";
|
|
674
|
+
readonly system: "text-neutral-600 dark:text-neutral-400";
|
|
675
|
+
};
|
|
676
|
+
/** Border colors */
|
|
677
|
+
readonly border: {
|
|
678
|
+
readonly light: "border-neutral-200";
|
|
679
|
+
readonly dark: "dark:border-neutral-700";
|
|
680
|
+
readonly system: "border-neutral-200 dark:border-neutral-700";
|
|
681
|
+
};
|
|
682
|
+
/** Surface/card backgrounds */
|
|
683
|
+
readonly surface: {
|
|
684
|
+
readonly light: "bg-neutral-50";
|
|
685
|
+
readonly dark: "dark:bg-neutral-800";
|
|
686
|
+
readonly system: "bg-neutral-50 dark:bg-neutral-800";
|
|
687
|
+
};
|
|
688
|
+
/** Hover backgrounds */
|
|
689
|
+
readonly hoverBg: {
|
|
690
|
+
readonly light: "hover:bg-neutral-100";
|
|
691
|
+
readonly dark: "dark:hover:bg-neutral-700";
|
|
692
|
+
readonly system: "hover:bg-neutral-100 dark:hover:bg-neutral-700";
|
|
693
|
+
};
|
|
694
|
+
};
|
|
695
|
+
buildThemeClasses: typeof buildThemeClasses;
|
|
696
|
+
getThemeClasses: typeof getThemeClasses;
|
|
697
|
+
applyFactors12to16: typeof applyFactors12to16;
|
|
698
|
+
};
|
|
699
|
+
export default Factors12to16;
|
|
700
|
+
//# sourceMappingURL=factors-12-16.d.ts.map
|