@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,674 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 16-Factor Variant System - Factors 1-6
|
|
3
|
+
*
|
|
4
|
+
* Factor 1: Color - Color scheme options
|
|
5
|
+
* Factor 2: Size - Component size options
|
|
6
|
+
* Factor 3: Variant - Visual style variants
|
|
7
|
+
* Factor 4: Shape - Border radius and shape options
|
|
8
|
+
* Factor 5: Position - Layout position options
|
|
9
|
+
* Factor 6: IconPosition - Icon placement options
|
|
10
|
+
*
|
|
11
|
+
* @packageDocumentation
|
|
12
|
+
* @module generator/factors-1-6
|
|
13
|
+
* @since 2.0.0
|
|
14
|
+
*
|
|
15
|
+
* Powered by Nikkory
|
|
16
|
+
*/
|
|
17
|
+
/**
|
|
18
|
+
* Color scheme options for components.
|
|
19
|
+
* Maps to semantic color tokens in design systems.
|
|
20
|
+
*/
|
|
21
|
+
export declare const COLORS: {
|
|
22
|
+
readonly primary: "primary";
|
|
23
|
+
readonly secondary: "secondary";
|
|
24
|
+
readonly accent: "accent";
|
|
25
|
+
readonly success: "success";
|
|
26
|
+
readonly warning: "warning";
|
|
27
|
+
readonly error: "error";
|
|
28
|
+
readonly info: "info";
|
|
29
|
+
readonly neutral: "neutral";
|
|
30
|
+
};
|
|
31
|
+
export type Color = keyof typeof COLORS;
|
|
32
|
+
/**
|
|
33
|
+
* Color-specific Tailwind class prefixes.
|
|
34
|
+
* These are used with shade values (e.g., bg-primary-500).
|
|
35
|
+
*/
|
|
36
|
+
export declare const colorVariants: {
|
|
37
|
+
readonly primary: {
|
|
38
|
+
readonly bg: "bg-primary";
|
|
39
|
+
readonly text: "text-primary";
|
|
40
|
+
readonly border: "border-primary";
|
|
41
|
+
readonly ring: "ring-primary";
|
|
42
|
+
};
|
|
43
|
+
readonly secondary: {
|
|
44
|
+
readonly bg: "bg-secondary";
|
|
45
|
+
readonly text: "text-secondary";
|
|
46
|
+
readonly border: "border-secondary";
|
|
47
|
+
readonly ring: "ring-secondary";
|
|
48
|
+
};
|
|
49
|
+
readonly accent: {
|
|
50
|
+
readonly bg: "bg-accent";
|
|
51
|
+
readonly text: "text-accent";
|
|
52
|
+
readonly border: "border-accent";
|
|
53
|
+
readonly ring: "ring-accent";
|
|
54
|
+
};
|
|
55
|
+
readonly success: {
|
|
56
|
+
readonly bg: "bg-success";
|
|
57
|
+
readonly text: "text-success";
|
|
58
|
+
readonly border: "border-success";
|
|
59
|
+
readonly ring: "ring-success";
|
|
60
|
+
};
|
|
61
|
+
readonly warning: {
|
|
62
|
+
readonly bg: "bg-warning";
|
|
63
|
+
readonly text: "text-warning";
|
|
64
|
+
readonly border: "border-warning";
|
|
65
|
+
readonly ring: "ring-warning";
|
|
66
|
+
};
|
|
67
|
+
readonly error: {
|
|
68
|
+
readonly bg: "bg-error";
|
|
69
|
+
readonly text: "text-error";
|
|
70
|
+
readonly border: "border-error";
|
|
71
|
+
readonly ring: "ring-error";
|
|
72
|
+
};
|
|
73
|
+
readonly info: {
|
|
74
|
+
readonly bg: "bg-info";
|
|
75
|
+
readonly text: "text-info";
|
|
76
|
+
readonly border: "border-info";
|
|
77
|
+
readonly ring: "ring-info";
|
|
78
|
+
};
|
|
79
|
+
readonly neutral: {
|
|
80
|
+
readonly bg: "bg-neutral";
|
|
81
|
+
readonly text: "text-neutral";
|
|
82
|
+
readonly border: "border-neutral";
|
|
83
|
+
readonly ring: "ring-neutral";
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
/**
|
|
87
|
+
* Build color classes for a given color and shade.
|
|
88
|
+
*
|
|
89
|
+
* @param color - Color scheme
|
|
90
|
+
* @param shade - Color shade (50-900)
|
|
91
|
+
* @param property - CSS property (bg, text, border, ring)
|
|
92
|
+
* @returns Tailwind class string
|
|
93
|
+
*/
|
|
94
|
+
export declare function buildColorClass(color: Color, shade: 50 | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900, property: 'bg' | 'text' | 'border' | 'ring'): string;
|
|
95
|
+
/**
|
|
96
|
+
* Component size options.
|
|
97
|
+
*/
|
|
98
|
+
export declare const SIZES: {
|
|
99
|
+
readonly xs: "xs";
|
|
100
|
+
readonly sm: "sm";
|
|
101
|
+
readonly md: "md";
|
|
102
|
+
readonly lg: "lg";
|
|
103
|
+
readonly xl: "xl";
|
|
104
|
+
readonly '2xl': "2xl";
|
|
105
|
+
readonly full: "full";
|
|
106
|
+
};
|
|
107
|
+
export type Size = keyof typeof SIZES;
|
|
108
|
+
/**
|
|
109
|
+
* Size-specific Tailwind classes for common properties.
|
|
110
|
+
*/
|
|
111
|
+
export declare const sizeVariants: {
|
|
112
|
+
readonly xs: {
|
|
113
|
+
readonly height: "h-6";
|
|
114
|
+
readonly padding: "px-2 py-0.5";
|
|
115
|
+
readonly text: "text-xs";
|
|
116
|
+
readonly gap: "gap-1";
|
|
117
|
+
readonly icon: "w-3 h-3";
|
|
118
|
+
};
|
|
119
|
+
readonly sm: {
|
|
120
|
+
readonly height: "h-8";
|
|
121
|
+
readonly padding: "px-3 py-1";
|
|
122
|
+
readonly text: "text-sm";
|
|
123
|
+
readonly gap: "gap-1.5";
|
|
124
|
+
readonly icon: "w-4 h-4";
|
|
125
|
+
};
|
|
126
|
+
readonly md: {
|
|
127
|
+
readonly height: "h-10";
|
|
128
|
+
readonly padding: "px-4 py-2";
|
|
129
|
+
readonly text: "text-sm";
|
|
130
|
+
readonly gap: "gap-2";
|
|
131
|
+
readonly icon: "w-5 h-5";
|
|
132
|
+
};
|
|
133
|
+
readonly lg: {
|
|
134
|
+
readonly height: "h-11";
|
|
135
|
+
readonly padding: "px-5 py-2.5";
|
|
136
|
+
readonly text: "text-base";
|
|
137
|
+
readonly gap: "gap-2.5";
|
|
138
|
+
readonly icon: "w-5 h-5";
|
|
139
|
+
};
|
|
140
|
+
readonly xl: {
|
|
141
|
+
readonly height: "h-12";
|
|
142
|
+
readonly padding: "px-6 py-3";
|
|
143
|
+
readonly text: "text-base";
|
|
144
|
+
readonly gap: "gap-3";
|
|
145
|
+
readonly icon: "w-6 h-6";
|
|
146
|
+
};
|
|
147
|
+
readonly '2xl': {
|
|
148
|
+
readonly height: "h-14";
|
|
149
|
+
readonly padding: "px-8 py-4";
|
|
150
|
+
readonly text: "text-lg";
|
|
151
|
+
readonly gap: "gap-4";
|
|
152
|
+
readonly icon: "w-7 h-7";
|
|
153
|
+
};
|
|
154
|
+
readonly full: {
|
|
155
|
+
readonly height: "h-full";
|
|
156
|
+
readonly padding: "p-0";
|
|
157
|
+
readonly text: "text-base";
|
|
158
|
+
readonly gap: "gap-0";
|
|
159
|
+
readonly icon: "w-full h-full";
|
|
160
|
+
};
|
|
161
|
+
};
|
|
162
|
+
/**
|
|
163
|
+
* Build size classes for a component.
|
|
164
|
+
*
|
|
165
|
+
* @param size - Size option
|
|
166
|
+
* @param includeHeight - Whether to include height class
|
|
167
|
+
* @returns Combined size classes
|
|
168
|
+
*/
|
|
169
|
+
export declare function buildSizeClasses(size: Size, includeHeight?: boolean): string;
|
|
170
|
+
/**
|
|
171
|
+
* Visual style variants.
|
|
172
|
+
*/
|
|
173
|
+
export declare const VARIANTS: {
|
|
174
|
+
readonly solid: "solid";
|
|
175
|
+
readonly outline: "outline";
|
|
176
|
+
readonly ghost: "ghost";
|
|
177
|
+
readonly soft: "soft";
|
|
178
|
+
readonly link: "link";
|
|
179
|
+
};
|
|
180
|
+
export type Variant = keyof typeof VARIANTS;
|
|
181
|
+
/**
|
|
182
|
+
* Variant-specific Tailwind classes.
|
|
183
|
+
* These define the visual style without color.
|
|
184
|
+
*/
|
|
185
|
+
export declare const variantClasses: {
|
|
186
|
+
readonly solid: {
|
|
187
|
+
readonly base: "border-transparent";
|
|
188
|
+
readonly interactive: "hover:brightness-95 active:brightness-90";
|
|
189
|
+
};
|
|
190
|
+
readonly outline: {
|
|
191
|
+
readonly base: "bg-transparent border-2";
|
|
192
|
+
readonly interactive: "hover:bg-opacity-10 active:bg-opacity-20";
|
|
193
|
+
};
|
|
194
|
+
readonly ghost: {
|
|
195
|
+
readonly base: "bg-transparent border-transparent";
|
|
196
|
+
readonly interactive: "hover:bg-opacity-10 active:bg-opacity-20";
|
|
197
|
+
};
|
|
198
|
+
readonly soft: {
|
|
199
|
+
readonly base: "border-transparent";
|
|
200
|
+
readonly interactive: "hover:brightness-95 active:brightness-90";
|
|
201
|
+
};
|
|
202
|
+
readonly link: {
|
|
203
|
+
readonly base: "bg-transparent border-transparent underline-offset-4";
|
|
204
|
+
readonly interactive: "hover:underline";
|
|
205
|
+
};
|
|
206
|
+
};
|
|
207
|
+
/**
|
|
208
|
+
* Build variant classes for a component.
|
|
209
|
+
*
|
|
210
|
+
* @param variant - Variant option
|
|
211
|
+
* @param includeInteractive - Whether to include hover/active states
|
|
212
|
+
* @returns Combined variant classes
|
|
213
|
+
*/
|
|
214
|
+
export declare function buildVariantClasses(variant: Variant, includeInteractive?: boolean): string;
|
|
215
|
+
/**
|
|
216
|
+
* Shape/border radius options.
|
|
217
|
+
*/
|
|
218
|
+
export declare const SHAPES: {
|
|
219
|
+
readonly none: "none";
|
|
220
|
+
readonly sm: "sm";
|
|
221
|
+
readonly md: "md";
|
|
222
|
+
readonly lg: "lg";
|
|
223
|
+
readonly xl: "xl";
|
|
224
|
+
readonly full: "full";
|
|
225
|
+
readonly pill: "pill";
|
|
226
|
+
readonly square: "square";
|
|
227
|
+
readonly circle: "circle";
|
|
228
|
+
};
|
|
229
|
+
export type Shape = keyof typeof SHAPES;
|
|
230
|
+
/**
|
|
231
|
+
* Shape-specific Tailwind classes.
|
|
232
|
+
*/
|
|
233
|
+
export declare const shapeVariants: {
|
|
234
|
+
readonly none: "rounded-none";
|
|
235
|
+
readonly sm: "rounded-sm";
|
|
236
|
+
readonly md: "rounded-md";
|
|
237
|
+
readonly lg: "rounded-lg";
|
|
238
|
+
readonly xl: "rounded-xl";
|
|
239
|
+
readonly full: "rounded-full";
|
|
240
|
+
readonly pill: "rounded-full";
|
|
241
|
+
readonly square: "rounded-none aspect-square";
|
|
242
|
+
readonly circle: "rounded-full aspect-square";
|
|
243
|
+
};
|
|
244
|
+
/**
|
|
245
|
+
* Get shape class for a given shape option.
|
|
246
|
+
*
|
|
247
|
+
* @param shape - Shape option
|
|
248
|
+
* @returns Tailwind class string
|
|
249
|
+
*/
|
|
250
|
+
export declare function getShapeClass(shape: Shape): string;
|
|
251
|
+
/**
|
|
252
|
+
* Layout position options.
|
|
253
|
+
*/
|
|
254
|
+
export declare const POSITIONS: {
|
|
255
|
+
readonly left: "left";
|
|
256
|
+
readonly center: "center";
|
|
257
|
+
readonly right: "right";
|
|
258
|
+
readonly top: "top";
|
|
259
|
+
readonly bottom: "bottom";
|
|
260
|
+
readonly topLeft: "topLeft";
|
|
261
|
+
readonly topRight: "topRight";
|
|
262
|
+
readonly bottomLeft: "bottomLeft";
|
|
263
|
+
readonly bottomRight: "bottomRight";
|
|
264
|
+
readonly relative: "relative";
|
|
265
|
+
readonly absolute: "absolute";
|
|
266
|
+
readonly fixed: "fixed";
|
|
267
|
+
readonly sticky: "sticky";
|
|
268
|
+
};
|
|
269
|
+
export type Position = keyof typeof POSITIONS;
|
|
270
|
+
/**
|
|
271
|
+
* Position-specific Tailwind classes for absolute positioning.
|
|
272
|
+
*/
|
|
273
|
+
export declare const positionVariants: {
|
|
274
|
+
readonly left: "left-0";
|
|
275
|
+
readonly center: "left-1/2 -translate-x-1/2";
|
|
276
|
+
readonly right: "right-0";
|
|
277
|
+
readonly top: "top-0";
|
|
278
|
+
readonly bottom: "bottom-0";
|
|
279
|
+
readonly topLeft: "top-0 left-0";
|
|
280
|
+
readonly topRight: "top-0 right-0";
|
|
281
|
+
readonly bottomLeft: "bottom-0 left-0";
|
|
282
|
+
readonly bottomRight: "bottom-0 right-0";
|
|
283
|
+
readonly relative: "relative";
|
|
284
|
+
readonly absolute: "absolute";
|
|
285
|
+
readonly fixed: "fixed";
|
|
286
|
+
readonly sticky: "sticky";
|
|
287
|
+
};
|
|
288
|
+
/**
|
|
289
|
+
* Position classes for flex/grid layout alignment.
|
|
290
|
+
*/
|
|
291
|
+
export declare const layoutPositionVariants: {
|
|
292
|
+
readonly left: "justify-start";
|
|
293
|
+
readonly center: "justify-center";
|
|
294
|
+
readonly right: "justify-end";
|
|
295
|
+
readonly top: "items-start";
|
|
296
|
+
readonly bottom: "items-end";
|
|
297
|
+
readonly topLeft: "items-start justify-start";
|
|
298
|
+
readonly topRight: "items-start justify-end";
|
|
299
|
+
readonly bottomLeft: "items-end justify-start";
|
|
300
|
+
readonly bottomRight: "items-end justify-end";
|
|
301
|
+
readonly relative: "relative";
|
|
302
|
+
readonly absolute: "absolute";
|
|
303
|
+
readonly fixed: "fixed";
|
|
304
|
+
readonly sticky: "sticky";
|
|
305
|
+
};
|
|
306
|
+
/**
|
|
307
|
+
* Get position class for a given position option.
|
|
308
|
+
*
|
|
309
|
+
* @param position - Position option
|
|
310
|
+
* @param absolute - Whether to use absolute positioning classes
|
|
311
|
+
* @returns Tailwind class string
|
|
312
|
+
*/
|
|
313
|
+
export declare function getPositionClass(position: Position, absolute?: boolean): string;
|
|
314
|
+
/**
|
|
315
|
+
* Icon placement options.
|
|
316
|
+
*/
|
|
317
|
+
export declare const ICON_POSITIONS: {
|
|
318
|
+
readonly left: "left";
|
|
319
|
+
readonly right: "right";
|
|
320
|
+
readonly top: "top";
|
|
321
|
+
readonly bottom: "bottom";
|
|
322
|
+
readonly only: "only";
|
|
323
|
+
readonly start: "start";
|
|
324
|
+
readonly end: "end";
|
|
325
|
+
};
|
|
326
|
+
export type IconPosition = keyof typeof ICON_POSITIONS;
|
|
327
|
+
/**
|
|
328
|
+
* Icon position-specific flex classes.
|
|
329
|
+
*/
|
|
330
|
+
export declare const iconPositionVariants: {
|
|
331
|
+
readonly left: {
|
|
332
|
+
readonly container: "flex-row";
|
|
333
|
+
readonly iconOrder: "order-first";
|
|
334
|
+
readonly textOrder: "order-last";
|
|
335
|
+
};
|
|
336
|
+
readonly right: {
|
|
337
|
+
readonly container: "flex-row";
|
|
338
|
+
readonly iconOrder: "order-last";
|
|
339
|
+
readonly textOrder: "order-first";
|
|
340
|
+
};
|
|
341
|
+
readonly top: {
|
|
342
|
+
readonly container: "flex-col";
|
|
343
|
+
readonly iconOrder: "order-first";
|
|
344
|
+
readonly textOrder: "order-last";
|
|
345
|
+
};
|
|
346
|
+
readonly bottom: {
|
|
347
|
+
readonly container: "flex-col";
|
|
348
|
+
readonly iconOrder: "order-last";
|
|
349
|
+
readonly textOrder: "order-first";
|
|
350
|
+
};
|
|
351
|
+
readonly only: {
|
|
352
|
+
readonly container: "flex-row";
|
|
353
|
+
readonly iconOrder: "";
|
|
354
|
+
readonly textOrder: "sr-only";
|
|
355
|
+
};
|
|
356
|
+
readonly start: {
|
|
357
|
+
readonly container: "flex-row";
|
|
358
|
+
readonly iconOrder: "order-first";
|
|
359
|
+
readonly textOrder: "order-last";
|
|
360
|
+
};
|
|
361
|
+
readonly end: {
|
|
362
|
+
readonly container: "flex-row";
|
|
363
|
+
readonly iconOrder: "order-last";
|
|
364
|
+
readonly textOrder: "order-first";
|
|
365
|
+
};
|
|
366
|
+
};
|
|
367
|
+
/**
|
|
368
|
+
* Build icon position classes.
|
|
369
|
+
*
|
|
370
|
+
* @param position - Icon position option
|
|
371
|
+
* @returns Object with container, icon, and text classes
|
|
372
|
+
*/
|
|
373
|
+
export declare function buildIconPositionClasses(position: IconPosition): {
|
|
374
|
+
container: string;
|
|
375
|
+
iconClass: string;
|
|
376
|
+
textClass: string;
|
|
377
|
+
};
|
|
378
|
+
/**
|
|
379
|
+
* Factor 1-6 configuration.
|
|
380
|
+
*/
|
|
381
|
+
export interface Factors1to6Config {
|
|
382
|
+
/** Factor 1: Color scheme */
|
|
383
|
+
color?: Color;
|
|
384
|
+
/** Factor 2: Size */
|
|
385
|
+
size?: Size;
|
|
386
|
+
/** Factor 3: Variant */
|
|
387
|
+
variant?: Variant;
|
|
388
|
+
/** Factor 4: Shape */
|
|
389
|
+
shape?: Shape;
|
|
390
|
+
/** Factor 5: Position */
|
|
391
|
+
position?: Position;
|
|
392
|
+
/** Factor 6: Icon position */
|
|
393
|
+
iconPosition?: IconPosition;
|
|
394
|
+
}
|
|
395
|
+
/**
|
|
396
|
+
* Apply all Factor 1-6 configurations to generate classes.
|
|
397
|
+
*
|
|
398
|
+
* @param config - Factor configuration
|
|
399
|
+
* @returns Combined class string
|
|
400
|
+
*/
|
|
401
|
+
export declare function applyFactors1to6(config: Factors1to6Config): string;
|
|
402
|
+
export declare const Factors1to6: {
|
|
403
|
+
COLORS: {
|
|
404
|
+
readonly primary: "primary";
|
|
405
|
+
readonly secondary: "secondary";
|
|
406
|
+
readonly accent: "accent";
|
|
407
|
+
readonly success: "success";
|
|
408
|
+
readonly warning: "warning";
|
|
409
|
+
readonly error: "error";
|
|
410
|
+
readonly info: "info";
|
|
411
|
+
readonly neutral: "neutral";
|
|
412
|
+
};
|
|
413
|
+
colorVariants: {
|
|
414
|
+
readonly primary: {
|
|
415
|
+
readonly bg: "bg-primary";
|
|
416
|
+
readonly text: "text-primary";
|
|
417
|
+
readonly border: "border-primary";
|
|
418
|
+
readonly ring: "ring-primary";
|
|
419
|
+
};
|
|
420
|
+
readonly secondary: {
|
|
421
|
+
readonly bg: "bg-secondary";
|
|
422
|
+
readonly text: "text-secondary";
|
|
423
|
+
readonly border: "border-secondary";
|
|
424
|
+
readonly ring: "ring-secondary";
|
|
425
|
+
};
|
|
426
|
+
readonly accent: {
|
|
427
|
+
readonly bg: "bg-accent";
|
|
428
|
+
readonly text: "text-accent";
|
|
429
|
+
readonly border: "border-accent";
|
|
430
|
+
readonly ring: "ring-accent";
|
|
431
|
+
};
|
|
432
|
+
readonly success: {
|
|
433
|
+
readonly bg: "bg-success";
|
|
434
|
+
readonly text: "text-success";
|
|
435
|
+
readonly border: "border-success";
|
|
436
|
+
readonly ring: "ring-success";
|
|
437
|
+
};
|
|
438
|
+
readonly warning: {
|
|
439
|
+
readonly bg: "bg-warning";
|
|
440
|
+
readonly text: "text-warning";
|
|
441
|
+
readonly border: "border-warning";
|
|
442
|
+
readonly ring: "ring-warning";
|
|
443
|
+
};
|
|
444
|
+
readonly error: {
|
|
445
|
+
readonly bg: "bg-error";
|
|
446
|
+
readonly text: "text-error";
|
|
447
|
+
readonly border: "border-error";
|
|
448
|
+
readonly ring: "ring-error";
|
|
449
|
+
};
|
|
450
|
+
readonly info: {
|
|
451
|
+
readonly bg: "bg-info";
|
|
452
|
+
readonly text: "text-info";
|
|
453
|
+
readonly border: "border-info";
|
|
454
|
+
readonly ring: "ring-info";
|
|
455
|
+
};
|
|
456
|
+
readonly neutral: {
|
|
457
|
+
readonly bg: "bg-neutral";
|
|
458
|
+
readonly text: "text-neutral";
|
|
459
|
+
readonly border: "border-neutral";
|
|
460
|
+
readonly ring: "ring-neutral";
|
|
461
|
+
};
|
|
462
|
+
};
|
|
463
|
+
buildColorClass: typeof buildColorClass;
|
|
464
|
+
SIZES: {
|
|
465
|
+
readonly xs: "xs";
|
|
466
|
+
readonly sm: "sm";
|
|
467
|
+
readonly md: "md";
|
|
468
|
+
readonly lg: "lg";
|
|
469
|
+
readonly xl: "xl";
|
|
470
|
+
readonly '2xl': "2xl";
|
|
471
|
+
readonly full: "full";
|
|
472
|
+
};
|
|
473
|
+
sizeVariants: {
|
|
474
|
+
readonly xs: {
|
|
475
|
+
readonly height: "h-6";
|
|
476
|
+
readonly padding: "px-2 py-0.5";
|
|
477
|
+
readonly text: "text-xs";
|
|
478
|
+
readonly gap: "gap-1";
|
|
479
|
+
readonly icon: "w-3 h-3";
|
|
480
|
+
};
|
|
481
|
+
readonly sm: {
|
|
482
|
+
readonly height: "h-8";
|
|
483
|
+
readonly padding: "px-3 py-1";
|
|
484
|
+
readonly text: "text-sm";
|
|
485
|
+
readonly gap: "gap-1.5";
|
|
486
|
+
readonly icon: "w-4 h-4";
|
|
487
|
+
};
|
|
488
|
+
readonly md: {
|
|
489
|
+
readonly height: "h-10";
|
|
490
|
+
readonly padding: "px-4 py-2";
|
|
491
|
+
readonly text: "text-sm";
|
|
492
|
+
readonly gap: "gap-2";
|
|
493
|
+
readonly icon: "w-5 h-5";
|
|
494
|
+
};
|
|
495
|
+
readonly lg: {
|
|
496
|
+
readonly height: "h-11";
|
|
497
|
+
readonly padding: "px-5 py-2.5";
|
|
498
|
+
readonly text: "text-base";
|
|
499
|
+
readonly gap: "gap-2.5";
|
|
500
|
+
readonly icon: "w-5 h-5";
|
|
501
|
+
};
|
|
502
|
+
readonly xl: {
|
|
503
|
+
readonly height: "h-12";
|
|
504
|
+
readonly padding: "px-6 py-3";
|
|
505
|
+
readonly text: "text-base";
|
|
506
|
+
readonly gap: "gap-3";
|
|
507
|
+
readonly icon: "w-6 h-6";
|
|
508
|
+
};
|
|
509
|
+
readonly '2xl': {
|
|
510
|
+
readonly height: "h-14";
|
|
511
|
+
readonly padding: "px-8 py-4";
|
|
512
|
+
readonly text: "text-lg";
|
|
513
|
+
readonly gap: "gap-4";
|
|
514
|
+
readonly icon: "w-7 h-7";
|
|
515
|
+
};
|
|
516
|
+
readonly full: {
|
|
517
|
+
readonly height: "h-full";
|
|
518
|
+
readonly padding: "p-0";
|
|
519
|
+
readonly text: "text-base";
|
|
520
|
+
readonly gap: "gap-0";
|
|
521
|
+
readonly icon: "w-full h-full";
|
|
522
|
+
};
|
|
523
|
+
};
|
|
524
|
+
buildSizeClasses: typeof buildSizeClasses;
|
|
525
|
+
VARIANTS: {
|
|
526
|
+
readonly solid: "solid";
|
|
527
|
+
readonly outline: "outline";
|
|
528
|
+
readonly ghost: "ghost";
|
|
529
|
+
readonly soft: "soft";
|
|
530
|
+
readonly link: "link";
|
|
531
|
+
};
|
|
532
|
+
variantClasses: {
|
|
533
|
+
readonly solid: {
|
|
534
|
+
readonly base: "border-transparent";
|
|
535
|
+
readonly interactive: "hover:brightness-95 active:brightness-90";
|
|
536
|
+
};
|
|
537
|
+
readonly outline: {
|
|
538
|
+
readonly base: "bg-transparent border-2";
|
|
539
|
+
readonly interactive: "hover:bg-opacity-10 active:bg-opacity-20";
|
|
540
|
+
};
|
|
541
|
+
readonly ghost: {
|
|
542
|
+
readonly base: "bg-transparent border-transparent";
|
|
543
|
+
readonly interactive: "hover:bg-opacity-10 active:bg-opacity-20";
|
|
544
|
+
};
|
|
545
|
+
readonly soft: {
|
|
546
|
+
readonly base: "border-transparent";
|
|
547
|
+
readonly interactive: "hover:brightness-95 active:brightness-90";
|
|
548
|
+
};
|
|
549
|
+
readonly link: {
|
|
550
|
+
readonly base: "bg-transparent border-transparent underline-offset-4";
|
|
551
|
+
readonly interactive: "hover:underline";
|
|
552
|
+
};
|
|
553
|
+
};
|
|
554
|
+
buildVariantClasses: typeof buildVariantClasses;
|
|
555
|
+
SHAPES: {
|
|
556
|
+
readonly none: "none";
|
|
557
|
+
readonly sm: "sm";
|
|
558
|
+
readonly md: "md";
|
|
559
|
+
readonly lg: "lg";
|
|
560
|
+
readonly xl: "xl";
|
|
561
|
+
readonly full: "full";
|
|
562
|
+
readonly pill: "pill";
|
|
563
|
+
readonly square: "square";
|
|
564
|
+
readonly circle: "circle";
|
|
565
|
+
};
|
|
566
|
+
shapeVariants: {
|
|
567
|
+
readonly none: "rounded-none";
|
|
568
|
+
readonly sm: "rounded-sm";
|
|
569
|
+
readonly md: "rounded-md";
|
|
570
|
+
readonly lg: "rounded-lg";
|
|
571
|
+
readonly xl: "rounded-xl";
|
|
572
|
+
readonly full: "rounded-full";
|
|
573
|
+
readonly pill: "rounded-full";
|
|
574
|
+
readonly square: "rounded-none aspect-square";
|
|
575
|
+
readonly circle: "rounded-full aspect-square";
|
|
576
|
+
};
|
|
577
|
+
getShapeClass: typeof getShapeClass;
|
|
578
|
+
POSITIONS: {
|
|
579
|
+
readonly left: "left";
|
|
580
|
+
readonly center: "center";
|
|
581
|
+
readonly right: "right";
|
|
582
|
+
readonly top: "top";
|
|
583
|
+
readonly bottom: "bottom";
|
|
584
|
+
readonly topLeft: "topLeft";
|
|
585
|
+
readonly topRight: "topRight";
|
|
586
|
+
readonly bottomLeft: "bottomLeft";
|
|
587
|
+
readonly bottomRight: "bottomRight";
|
|
588
|
+
readonly relative: "relative";
|
|
589
|
+
readonly absolute: "absolute";
|
|
590
|
+
readonly fixed: "fixed";
|
|
591
|
+
readonly sticky: "sticky";
|
|
592
|
+
};
|
|
593
|
+
positionVariants: {
|
|
594
|
+
readonly left: "left-0";
|
|
595
|
+
readonly center: "left-1/2 -translate-x-1/2";
|
|
596
|
+
readonly right: "right-0";
|
|
597
|
+
readonly top: "top-0";
|
|
598
|
+
readonly bottom: "bottom-0";
|
|
599
|
+
readonly topLeft: "top-0 left-0";
|
|
600
|
+
readonly topRight: "top-0 right-0";
|
|
601
|
+
readonly bottomLeft: "bottom-0 left-0";
|
|
602
|
+
readonly bottomRight: "bottom-0 right-0";
|
|
603
|
+
readonly relative: "relative";
|
|
604
|
+
readonly absolute: "absolute";
|
|
605
|
+
readonly fixed: "fixed";
|
|
606
|
+
readonly sticky: "sticky";
|
|
607
|
+
};
|
|
608
|
+
layoutPositionVariants: {
|
|
609
|
+
readonly left: "justify-start";
|
|
610
|
+
readonly center: "justify-center";
|
|
611
|
+
readonly right: "justify-end";
|
|
612
|
+
readonly top: "items-start";
|
|
613
|
+
readonly bottom: "items-end";
|
|
614
|
+
readonly topLeft: "items-start justify-start";
|
|
615
|
+
readonly topRight: "items-start justify-end";
|
|
616
|
+
readonly bottomLeft: "items-end justify-start";
|
|
617
|
+
readonly bottomRight: "items-end justify-end";
|
|
618
|
+
readonly relative: "relative";
|
|
619
|
+
readonly absolute: "absolute";
|
|
620
|
+
readonly fixed: "fixed";
|
|
621
|
+
readonly sticky: "sticky";
|
|
622
|
+
};
|
|
623
|
+
getPositionClass: typeof getPositionClass;
|
|
624
|
+
ICON_POSITIONS: {
|
|
625
|
+
readonly left: "left";
|
|
626
|
+
readonly right: "right";
|
|
627
|
+
readonly top: "top";
|
|
628
|
+
readonly bottom: "bottom";
|
|
629
|
+
readonly only: "only";
|
|
630
|
+
readonly start: "start";
|
|
631
|
+
readonly end: "end";
|
|
632
|
+
};
|
|
633
|
+
iconPositionVariants: {
|
|
634
|
+
readonly left: {
|
|
635
|
+
readonly container: "flex-row";
|
|
636
|
+
readonly iconOrder: "order-first";
|
|
637
|
+
readonly textOrder: "order-last";
|
|
638
|
+
};
|
|
639
|
+
readonly right: {
|
|
640
|
+
readonly container: "flex-row";
|
|
641
|
+
readonly iconOrder: "order-last";
|
|
642
|
+
readonly textOrder: "order-first";
|
|
643
|
+
};
|
|
644
|
+
readonly top: {
|
|
645
|
+
readonly container: "flex-col";
|
|
646
|
+
readonly iconOrder: "order-first";
|
|
647
|
+
readonly textOrder: "order-last";
|
|
648
|
+
};
|
|
649
|
+
readonly bottom: {
|
|
650
|
+
readonly container: "flex-col";
|
|
651
|
+
readonly iconOrder: "order-last";
|
|
652
|
+
readonly textOrder: "order-first";
|
|
653
|
+
};
|
|
654
|
+
readonly only: {
|
|
655
|
+
readonly container: "flex-row";
|
|
656
|
+
readonly iconOrder: "";
|
|
657
|
+
readonly textOrder: "sr-only";
|
|
658
|
+
};
|
|
659
|
+
readonly start: {
|
|
660
|
+
readonly container: "flex-row";
|
|
661
|
+
readonly iconOrder: "order-first";
|
|
662
|
+
readonly textOrder: "order-last";
|
|
663
|
+
};
|
|
664
|
+
readonly end: {
|
|
665
|
+
readonly container: "flex-row";
|
|
666
|
+
readonly iconOrder: "order-last";
|
|
667
|
+
readonly textOrder: "order-first";
|
|
668
|
+
};
|
|
669
|
+
};
|
|
670
|
+
buildIconPositionClasses: typeof buildIconPositionClasses;
|
|
671
|
+
applyFactors1to6: typeof applyFactors1to6;
|
|
672
|
+
};
|
|
673
|
+
export default Factors1to6;
|
|
674
|
+
//# sourceMappingURL=factors-1-6.d.ts.map
|