@umituz/react-native-design-system 1.5.0 → 1.5.2
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/lib/index.d.ts +4 -4
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +13 -11
- package/lib/index.js.map +1 -1
- package/lib/presentation/atoms/AtomicAvatar.js +1 -1
- package/lib/presentation/atoms/AtomicAvatar.js.map +1 -1
- package/lib/presentation/atoms/AtomicAvatarGroup.js +1 -1
- package/lib/presentation/atoms/AtomicAvatarGroup.js.map +1 -1
- package/lib/presentation/atoms/AtomicBadge.js +1 -1
- package/lib/presentation/atoms/AtomicBadge.js.map +1 -1
- package/lib/presentation/atoms/AtomicButton.d.ts +1 -1
- package/lib/presentation/atoms/AtomicButton.d.ts.map +1 -1
- package/lib/presentation/atoms/AtomicButton.js +2 -2
- package/lib/presentation/atoms/AtomicButton.js.map +1 -1
- package/lib/presentation/atoms/AtomicCard.js +1 -1
- package/lib/presentation/atoms/AtomicCard.js.map +1 -1
- package/lib/presentation/atoms/AtomicChip.js +1 -1
- package/lib/presentation/atoms/AtomicChip.js.map +1 -1
- package/lib/presentation/atoms/AtomicDatePicker.js +1 -1
- package/lib/presentation/atoms/AtomicDatePicker.js.map +1 -1
- package/lib/presentation/atoms/AtomicDivider.js +1 -1
- package/lib/presentation/atoms/AtomicDivider.js.map +1 -1
- package/lib/presentation/atoms/AtomicFab.js +1 -1
- package/lib/presentation/atoms/AtomicFab.js.map +1 -1
- package/lib/presentation/atoms/AtomicFilter.js +1 -1
- package/lib/presentation/atoms/AtomicFilter.js.map +1 -1
- package/lib/presentation/atoms/AtomicFormError.js +2 -2
- package/lib/presentation/atoms/AtomicFormError.js.map +1 -1
- package/lib/presentation/atoms/AtomicIcon.d.ts +2 -3
- package/lib/presentation/atoms/AtomicIcon.d.ts.map +1 -1
- package/lib/presentation/atoms/AtomicIcon.js +1 -1
- package/lib/presentation/atoms/AtomicIcon.js.map +1 -1
- package/lib/presentation/atoms/AtomicImage.js +1 -1
- package/lib/presentation/atoms/AtomicImage.js.map +1 -1
- package/lib/presentation/atoms/AtomicInput.js +1 -1
- package/lib/presentation/atoms/AtomicInput.js.map +1 -1
- package/lib/presentation/atoms/AtomicPicker.js +1 -1
- package/lib/presentation/atoms/AtomicPicker.js.map +1 -1
- package/lib/presentation/atoms/AtomicProgress.js +1 -1
- package/lib/presentation/atoms/AtomicProgress.js.map +1 -1
- package/lib/presentation/atoms/AtomicSearchBar.js +1 -1
- package/lib/presentation/atoms/AtomicSearchBar.js.map +1 -1
- package/lib/presentation/atoms/AtomicSort.js +1 -1
- package/lib/presentation/atoms/AtomicSort.js.map +1 -1
- package/lib/presentation/atoms/AtomicSwitch.js +1 -1
- package/lib/presentation/atoms/AtomicSwitch.js.map +1 -1
- package/lib/presentation/atoms/AtomicText.d.ts +21 -1
- package/lib/presentation/atoms/AtomicText.d.ts.map +1 -1
- package/lib/presentation/atoms/AtomicText.js +33 -10
- package/lib/presentation/atoms/AtomicText.js.map +1 -1
- package/lib/presentation/atoms/AtomicTextArea.js +1 -1
- package/lib/presentation/atoms/AtomicTextArea.js.map +1 -1
- package/lib/presentation/atoms/AtomicTouchable.js +1 -1
- package/lib/presentation/atoms/AtomicTouchable.js.map +1 -1
- package/lib/presentation/atoms/fab/styles/fabStyles.d.ts +1 -1
- package/lib/presentation/atoms/fab/styles/fabStyles.d.ts.map +1 -1
- package/lib/presentation/atoms/index.d.ts +1 -1
- package/lib/presentation/atoms/input/styles/inputStyles.d.ts +1 -1
- package/lib/presentation/atoms/input/styles/inputStyles.d.ts.map +1 -1
- package/lib/presentation/atoms/picker/styles/pickerStyles.d.ts +12 -23
- package/lib/presentation/atoms/picker/styles/pickerStyles.d.ts.map +1 -1
- package/lib/presentation/atoms/picker/styles/pickerStyles.js.map +1 -1
- package/lib/presentation/molecules/AtomicConfirmationModal.js +1 -1
- package/lib/presentation/molecules/AtomicConfirmationModal.js.map +1 -1
- package/lib/presentation/molecules/EmptyState.js +1 -1
- package/lib/presentation/molecules/EmptyState.js.map +1 -1
- package/lib/presentation/molecules/FormField.js +1 -1
- package/lib/presentation/molecules/FormField.js.map +1 -1
- package/lib/presentation/molecules/IconContainer.js +1 -1
- package/lib/presentation/molecules/IconContainer.js.map +1 -1
- package/lib/presentation/molecules/ListItem.js +1 -1
- package/lib/presentation/molecules/ListItem.js.map +1 -1
- package/lib/presentation/molecules/ScreenHeader.js +1 -1
- package/lib/presentation/molecules/ScreenHeader.js.map +1 -1
- package/lib/presentation/molecules/SearchBar.js +1 -1
- package/lib/presentation/molecules/SearchBar.js.map +1 -1
- package/lib/presentation/molecules/SectionCard.js +1 -1
- package/lib/presentation/molecules/SectionCard.js.map +1 -1
- package/lib/presentation/molecules/SectionContainer.js +1 -1
- package/lib/presentation/molecules/SectionContainer.js.map +1 -1
- package/lib/presentation/molecules/SectionHeader.js +1 -1
- package/lib/presentation/molecules/SectionHeader.js.map +1 -1
- package/lib/presentation/molecules/confirmation-modal/styles/confirmationModalStyles.d.ts +1 -1
- package/lib/presentation/molecules/confirmation-modal/styles/confirmationModalStyles.d.ts.map +1 -1
- package/lib/presentation/molecules/listitem/styles/listItemStyles.d.ts +1 -1
- package/lib/presentation/molecules/listitem/styles/listItemStyles.d.ts.map +1 -1
- package/lib/presentation/organisms/AppHeader.d.ts +3 -2
- package/lib/presentation/organisms/AppHeader.d.ts.map +1 -1
- package/lib/presentation/organisms/AppHeader.js +1 -1
- package/lib/presentation/organisms/AppHeader.js.map +1 -1
- package/lib/presentation/organisms/FormContainer.js +1 -1
- package/lib/presentation/organisms/FormContainer.js.map +1 -1
- package/lib/presentation/organisms/ScreenLayout.js +1 -1
- package/lib/presentation/organisms/ScreenLayout.js.map +1 -1
- package/lib/presentation/tokens/commonStyles.js +1 -1
- package/lib/presentation/tokens/commonStyles.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +16 -16
- package/src/presentation/atoms/AtomicAvatar.tsx +1 -1
- package/src/presentation/atoms/AtomicAvatarGroup.tsx +1 -1
- package/src/presentation/atoms/AtomicBadge.tsx +2 -2
- package/src/presentation/atoms/AtomicButton.tsx +3 -3
- package/src/presentation/atoms/AtomicCard.tsx +1 -1
- package/src/presentation/atoms/AtomicChip.tsx +1 -1
- package/src/presentation/atoms/AtomicDatePicker.tsx +1 -1
- package/src/presentation/atoms/AtomicDivider.tsx +1 -1
- package/src/presentation/atoms/AtomicFab.tsx +1 -1
- package/src/presentation/atoms/AtomicFilter.tsx +1 -1
- package/src/presentation/atoms/AtomicFormError.tsx +2 -2
- package/src/presentation/atoms/AtomicIcon.tsx +3 -4
- package/src/presentation/atoms/AtomicImage.tsx +1 -1
- package/src/presentation/atoms/AtomicInput.tsx +1 -1
- package/src/presentation/atoms/AtomicPicker.tsx +1 -1
- package/src/presentation/atoms/AtomicProgress.tsx +1 -1
- package/src/presentation/atoms/AtomicSearchBar.tsx +1 -1
- package/src/presentation/atoms/AtomicSort.tsx +1 -1
- package/src/presentation/atoms/AtomicSwitch.tsx +1 -1
- package/src/presentation/atoms/AtomicText.tsx +83 -13
- package/src/presentation/atoms/AtomicTextArea.tsx +1 -1
- package/src/presentation/atoms/AtomicTouchable.tsx +1 -1
- package/src/presentation/atoms/fab/styles/fabStyles.ts +1 -1
- package/src/presentation/atoms/input/styles/inputStyles.ts +1 -1
- package/src/presentation/atoms/picker/styles/pickerStyles.ts +13 -6
- package/src/presentation/molecules/AtomicConfirmationModal.tsx +1 -1
- package/src/presentation/molecules/EmptyState.tsx +1 -1
- package/src/presentation/molecules/FormField.tsx +1 -1
- package/src/presentation/molecules/IconContainer.tsx +1 -1
- package/src/presentation/molecules/ListItem.tsx +1 -1
- package/src/presentation/molecules/ScreenHeader.tsx +1 -1
- package/src/presentation/molecules/SearchBar.tsx +1 -1
- package/src/presentation/molecules/SectionCard.tsx +1 -1
- package/src/presentation/molecules/SectionContainer.tsx +1 -1
- package/src/presentation/molecules/SectionHeader.tsx +1 -1
- package/src/presentation/molecules/confirmation-modal/styles/confirmationModalStyles.ts +1 -1
- package/src/presentation/molecules/listitem/styles/listItemStyles.ts +1 -1
- package/src/presentation/organisms/AppHeader.tsx +4 -3
- package/src/presentation/organisms/FormContainer.tsx +1 -1
- package/src/presentation/organisms/ScreenLayout.tsx +1 -1
- package/src/presentation/tokens/commonStyles.ts +1 -1
- package/lib/domains/icons/domain/config/IconLibraryConfig.d.ts +0 -91
- package/lib/domains/icons/domain/config/IconLibraryConfig.d.ts.map +0 -1
- package/lib/domains/icons/domain/config/IconLibraryConfig.js +0 -85
- package/lib/domains/icons/domain/config/IconLibraryConfig.js.map +0 -1
- package/lib/domains/icons/domain/entities/Icon.d.ts +0 -111
- package/lib/domains/icons/domain/entities/Icon.d.ts.map +0 -1
- package/lib/domains/icons/domain/entities/Icon.js +0 -87
- package/lib/domains/icons/domain/entities/Icon.js.map +0 -1
- package/lib/domains/icons/domain/interfaces/IIconAdapter.d.ts +0 -114
- package/lib/domains/icons/domain/interfaces/IIconAdapter.d.ts.map +0 -1
- package/lib/domains/icons/domain/interfaces/IIconAdapter.js +0 -17
- package/lib/domains/icons/domain/interfaces/IIconAdapter.js.map +0 -1
- package/lib/domains/icons/index.d.ts +0 -84
- package/lib/domains/icons/index.d.ts.map +0 -1
- package/lib/domains/icons/index.js +0 -89
- package/lib/domains/icons/index.js.map +0 -1
- package/lib/domains/icons/infrastructure/adapters/LucideAdapter.d.ts +0 -24
- package/lib/domains/icons/infrastructure/adapters/LucideAdapter.d.ts.map +0 -1
- package/lib/domains/icons/infrastructure/adapters/LucideAdapter.js +0 -85
- package/lib/domains/icons/infrastructure/adapters/LucideAdapter.js.map +0 -1
- package/lib/domains/icons/infrastructure/registries/ExpoIconRegistry.d.ts +0 -23
- package/lib/domains/icons/infrastructure/registries/ExpoIconRegistry.d.ts.map +0 -1
- package/lib/domains/icons/infrastructure/registries/ExpoIconRegistry.js +0 -178
- package/lib/domains/icons/infrastructure/registries/ExpoIconRegistry.js.map +0 -1
- package/lib/domains/icons/presentation/components/Icon.d.ts +0 -42
- package/lib/domains/icons/presentation/components/Icon.d.ts.map +0 -1
- package/lib/domains/icons/presentation/components/Icon.js +0 -86
- package/lib/domains/icons/presentation/components/Icon.js.map +0 -1
- package/lib/domains/icons/presentation/hooks/useIconLibrary.d.ts +0 -38
- package/lib/domains/icons/presentation/hooks/useIconLibrary.d.ts.map +0 -1
- package/lib/domains/icons/presentation/hooks/useIconLibrary.js +0 -114
- package/lib/domains/icons/presentation/hooks/useIconLibrary.js.map +0 -1
- package/lib/infrastructure/theme/globalThemeStore.d.ts +0 -42
- package/lib/infrastructure/theme/globalThemeStore.d.ts.map +0 -1
- package/lib/infrastructure/theme/globalThemeStore.js +0 -38
- package/lib/infrastructure/theme/globalThemeStore.js.map +0 -1
- package/lib/presentation/hooks/useAppDesignTokens.d.ts +0 -34
- package/lib/presentation/hooks/useAppDesignTokens.d.ts.map +0 -1
- package/lib/presentation/hooks/useAppDesignTokens.js +0 -39
- package/lib/presentation/hooks/useAppDesignTokens.js.map +0 -1
- package/lib/presentation/tokens/AppDesignTokens.d.ts +0 -14
- package/lib/presentation/tokens/AppDesignTokens.d.ts.map +0 -1
- package/lib/presentation/tokens/AppDesignTokens.js +0 -23
- package/lib/presentation/tokens/AppDesignTokens.js.map +0 -1
- package/lib/presentation/tokens/core/BaseTokens.d.ts +0 -312
- package/lib/presentation/tokens/core/BaseTokens.d.ts.map +0 -1
- package/lib/presentation/tokens/core/BaseTokens.js +0 -304
- package/lib/presentation/tokens/core/BaseTokens.js.map +0 -1
- package/lib/presentation/tokens/core/ColorPalette.d.ts +0 -216
- package/lib/presentation/tokens/core/ColorPalette.d.ts.map +0 -1
- package/lib/presentation/tokens/core/ColorPalette.js +0 -330
- package/lib/presentation/tokens/core/ColorPalette.js.map +0 -1
- package/lib/presentation/tokens/core/TokenFactory.d.ts +0 -216
- package/lib/presentation/tokens/core/TokenFactory.d.ts.map +0 -1
- package/lib/presentation/tokens/core/TokenFactory.js +0 -86
- package/lib/presentation/tokens/core/TokenFactory.js.map +0 -1
- package/src/domains/icons/domain/config/IconLibraryConfig.ts +0 -93
- package/src/domains/icons/domain/entities/Icon.ts +0 -143
- package/src/domains/icons/domain/interfaces/IIconAdapter.ts +0 -147
- package/src/domains/icons/index.ts +0 -109
- package/src/domains/icons/infrastructure/adapters/LucideAdapter.ts +0 -100
- package/src/domains/icons/infrastructure/registries/ExpoIconRegistry.ts +0 -191
- package/src/domains/icons/presentation/components/Icon.tsx +0 -132
- package/src/domains/icons/presentation/hooks/useIconLibrary.ts +0 -141
- package/src/infrastructure/theme/globalThemeStore.ts +0 -51
- package/src/presentation/hooks/useAppDesignTokens.ts +0 -40
- package/src/presentation/tokens/AppDesignTokens.ts +0 -55
- package/src/presentation/tokens/core/BaseTokens.ts +0 -372
- package/src/presentation/tokens/core/ColorPalette.ts +0 -400
- package/src/presentation/tokens/core/TokenFactory.ts +0 -118
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* useAppDesignTokens Hook - Theme-Aware Design Tokens
|
|
3
|
-
*
|
|
4
|
-
* ✅ Automatically reads theme from global store
|
|
5
|
-
* ✅ No parameters needed - fully automatic!
|
|
6
|
-
* ✅ Returns tokens for current theme (light/dark)
|
|
7
|
-
* ✅ Single source of truth
|
|
8
|
-
*
|
|
9
|
-
* @example Usage (fully automatic theme-aware)
|
|
10
|
-
* ```typescript
|
|
11
|
-
* import { useAppDesignTokens } from '@umituz/react-native-design-system';
|
|
12
|
-
*
|
|
13
|
-
* const MyComponent = () => {
|
|
14
|
-
* const tokens = useAppDesignTokens(); // Automatically uses current theme!
|
|
15
|
-
* return (
|
|
16
|
-
* <View style={{
|
|
17
|
-
* backgroundColor: tokens.colors.primary,
|
|
18
|
-
* padding: tokens.spacing.md
|
|
19
|
-
* }}>
|
|
20
|
-
* <Text style={tokens.typography.bodyLarge}>Hello!</Text>
|
|
21
|
-
* </View>
|
|
22
|
-
* );
|
|
23
|
-
* };
|
|
24
|
-
* ```
|
|
25
|
-
*
|
|
26
|
-
* How it works:
|
|
27
|
-
* - Reads themeMode from global store (useDesignSystemTheme)
|
|
28
|
-
* - App's theme store syncs to global store automatically
|
|
29
|
-
* - All components get correct tokens without prop drilling
|
|
30
|
-
* - Change theme once, everything updates!
|
|
31
|
-
*/
|
|
32
|
-
import { useMemo } from 'react';
|
|
33
|
-
import { createDesignTokens } from '../tokens/core/TokenFactory';
|
|
34
|
-
import { useDesignSystemTheme } from '../../infrastructure/theme/globalThemeStore';
|
|
35
|
-
export const useAppDesignTokens = () => {
|
|
36
|
-
const { themeMode } = useDesignSystemTheme();
|
|
37
|
-
return useMemo(() => createDesignTokens(themeMode), [themeMode]);
|
|
38
|
-
};
|
|
39
|
-
//# sourceMappingURL=useAppDesignTokens.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useAppDesignTokens.js","sourceRoot":"","sources":["../../../src/presentation/hooks/useAppDesignTokens.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,EAAE,kBAAkB,EAAqB,MAAM,6BAA6B,CAAC;AACpF,OAAO,EAAE,oBAAoB,EAAE,MAAM,6CAA6C,CAAC;AAEnF,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAiB,EAAE;IACnD,MAAM,EAAE,SAAS,EAAE,GAAG,oBAAoB,EAAE,CAAC;IAC7C,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,kBAAkB,CAAC,SAAS,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC;AACnE,CAAC,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* DESIGN TOKENS - PUBLIC API
|
|
3
|
-
*
|
|
4
|
-
* ✅ CLEAN BARREL EXPORT - Single source of truth
|
|
5
|
-
* ✅ ZERO DUPLICATION - All tokens from TokenFactory
|
|
6
|
-
* ✅ TYPE-SAFE - Full TypeScript support
|
|
7
|
-
* ✅ FACTORY-FIRST - Benefits all 100+ generated apps
|
|
8
|
-
*
|
|
9
|
-
* @module AppDesignTokens
|
|
10
|
-
*/
|
|
11
|
-
export { createDesignTokens, STATIC_DESIGN_TOKENS, STATIC_TOKENS, withAlpha, type DesignTokens, type ThemeMode, type ColorPalette, } from './core/TokenFactory';
|
|
12
|
-
export { BASE_TOKENS, spacing, typography, borders, iconSizes, opacity, avatarSizes, type Spacing, type Typography, type Borders, type IconSizes, type Opacity, type AvatarSizes, type BaseTokens, } from './core/BaseTokens';
|
|
13
|
-
export { lightColors, darkColors, getColorPalette, } from './core/ColorPalette';
|
|
14
|
-
//# sourceMappingURL=AppDesignTokens.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AppDesignTokens.d.ts","sourceRoot":"","sources":["../../../src/presentation/tokens/AppDesignTokens.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAMH,OAAO,EACL,kBAAkB,EAClB,oBAAoB,EACpB,aAAa,EACb,SAAS,EACT,KAAK,YAAY,EACjB,KAAK,SAAS,EACd,KAAK,YAAY,GAClB,MAAM,qBAAqB,CAAC;AAM7B,OAAO,EACL,WAAW,EACX,OAAO,EACP,UAAU,EACV,OAAO,EACP,SAAS,EACT,OAAO,EACP,WAAW,EACX,KAAK,OAAO,EACZ,KAAK,UAAU,EACf,KAAK,OAAO,EACZ,KAAK,SAAS,EACd,KAAK,OAAO,EACZ,KAAK,WAAW,EAChB,KAAK,UAAU,GAChB,MAAM,mBAAmB,CAAC;AAM3B,OAAO,EACL,WAAW,EACX,UAAU,EACV,eAAe,GAChB,MAAM,qBAAqB,CAAC"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* DESIGN TOKENS - PUBLIC API
|
|
3
|
-
*
|
|
4
|
-
* ✅ CLEAN BARREL EXPORT - Single source of truth
|
|
5
|
-
* ✅ ZERO DUPLICATION - All tokens from TokenFactory
|
|
6
|
-
* ✅ TYPE-SAFE - Full TypeScript support
|
|
7
|
-
* ✅ FACTORY-FIRST - Benefits all 100+ generated apps
|
|
8
|
-
*
|
|
9
|
-
* @module AppDesignTokens
|
|
10
|
-
*/
|
|
11
|
-
// =============================================================================
|
|
12
|
-
// CORE EXPORTS (from TokenFactory)
|
|
13
|
-
// =============================================================================
|
|
14
|
-
export { createDesignTokens, STATIC_DESIGN_TOKENS, STATIC_TOKENS, withAlpha, } from './core/TokenFactory';
|
|
15
|
-
// =============================================================================
|
|
16
|
-
// BASE TOKEN EXPORTS
|
|
17
|
-
// =============================================================================
|
|
18
|
-
export { BASE_TOKENS, spacing, typography, borders, iconSizes, opacity, avatarSizes, } from './core/BaseTokens';
|
|
19
|
-
// =============================================================================
|
|
20
|
-
// COLOR PALETTE EXPORTS
|
|
21
|
-
// =============================================================================
|
|
22
|
-
export { lightColors, darkColors, getColorPalette, } from './core/ColorPalette';
|
|
23
|
-
//# sourceMappingURL=AppDesignTokens.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AppDesignTokens.js","sourceRoot":"","sources":["../../../src/presentation/tokens/AppDesignTokens.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,gFAAgF;AAChF,mCAAmC;AACnC,gFAAgF;AAEhF,OAAO,EACL,kBAAkB,EAClB,oBAAoB,EACpB,aAAa,EACb,SAAS,GAIV,MAAM,qBAAqB,CAAC;AAE7B,gFAAgF;AAChF,qBAAqB;AACrB,gFAAgF;AAEhF,OAAO,EACL,WAAW,EACX,OAAO,EACP,UAAU,EACV,OAAO,EACP,SAAS,EACT,OAAO,EACP,WAAW,GAQZ,MAAM,mBAAmB,CAAC;AAE3B,gFAAgF;AAChF,wBAAwB;AACxB,gFAAgF;AAEhF,OAAO,EACL,WAAW,EACX,UAAU,EACV,eAAe,GAChB,MAAM,qBAAqB,CAAC"}
|
|
@@ -1,312 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* BASE DESIGN TOKENS - SINGLE SOURCE OF TRUTH
|
|
3
|
-
*
|
|
4
|
-
* ✅ STATIC tokens that don't change with theme
|
|
5
|
-
* ✅ DRY Principle - Each value defined ONCE
|
|
6
|
-
* ✅ Type-safe with full TypeScript support
|
|
7
|
-
* ✅ Factory-first design for 100+ generated apps
|
|
8
|
-
*
|
|
9
|
-
* @module BaseTokens
|
|
10
|
-
*/
|
|
11
|
-
import { TextStyle } from 'react-native';
|
|
12
|
-
export declare const spacing: {
|
|
13
|
-
readonly xs: 4;
|
|
14
|
-
readonly sm: 8;
|
|
15
|
-
readonly md: 16;
|
|
16
|
-
readonly lg: 24;
|
|
17
|
-
readonly xl: 32;
|
|
18
|
-
readonly xxl: 48;
|
|
19
|
-
readonly xxxl: 64;
|
|
20
|
-
readonly screenPadding: 20;
|
|
21
|
-
readonly cardPadding: 16;
|
|
22
|
-
readonly buttonPadding: 16;
|
|
23
|
-
readonly inputPadding: 8;
|
|
24
|
-
readonly sectionSpacing: 24;
|
|
25
|
-
readonly iconSizeSmall: 16;
|
|
26
|
-
readonly iconSizeMedium: 20;
|
|
27
|
-
readonly iconSizeLarge: 24;
|
|
28
|
-
readonly iconSizeXLarge: 32;
|
|
29
|
-
readonly iconSizeHero: 64;
|
|
30
|
-
readonly buttonHeight: 48;
|
|
31
|
-
readonly inputHeight: 48;
|
|
32
|
-
readonly appBarHeight: 56;
|
|
33
|
-
readonly tabBarHeight: 60;
|
|
34
|
-
};
|
|
35
|
-
export declare const typography: {
|
|
36
|
-
readonly fontPrimary: "System";
|
|
37
|
-
readonly fontSecondary: "System";
|
|
38
|
-
readonly fontMono: "Courier New";
|
|
39
|
-
readonly xs: 12;
|
|
40
|
-
readonly sm: 14;
|
|
41
|
-
readonly md: 16;
|
|
42
|
-
readonly lg: 18;
|
|
43
|
-
readonly xl: 20;
|
|
44
|
-
readonly xxl: 24;
|
|
45
|
-
readonly xxxl: 32;
|
|
46
|
-
readonly light: "300";
|
|
47
|
-
readonly regular: "400";
|
|
48
|
-
readonly medium: "500";
|
|
49
|
-
readonly semibold: "600";
|
|
50
|
-
readonly bold: "700";
|
|
51
|
-
readonly lineHeightTight: 1.2;
|
|
52
|
-
readonly lineHeightNormal: 1.5;
|
|
53
|
-
readonly lineHeightRelaxed: 1.7;
|
|
54
|
-
readonly displayLarge: TextStyle;
|
|
55
|
-
readonly displayMedium: TextStyle;
|
|
56
|
-
readonly displaySmall: TextStyle;
|
|
57
|
-
readonly headlineLarge: TextStyle;
|
|
58
|
-
readonly headlineMedium: TextStyle;
|
|
59
|
-
readonly headlineSmall: TextStyle;
|
|
60
|
-
readonly titleLarge: TextStyle;
|
|
61
|
-
readonly titleMedium: TextStyle;
|
|
62
|
-
readonly titleSmall: TextStyle;
|
|
63
|
-
readonly bodyLarge: TextStyle;
|
|
64
|
-
readonly bodyMedium: TextStyle;
|
|
65
|
-
readonly bodySmall: TextStyle;
|
|
66
|
-
readonly labelLarge: TextStyle;
|
|
67
|
-
readonly labelMedium: TextStyle;
|
|
68
|
-
readonly labelSmall: TextStyle;
|
|
69
|
-
readonly headingLarge: TextStyle;
|
|
70
|
-
readonly headingMedium: TextStyle;
|
|
71
|
-
readonly headingSmall: TextStyle;
|
|
72
|
-
readonly button: TextStyle;
|
|
73
|
-
readonly caption: TextStyle;
|
|
74
|
-
readonly overline: TextStyle;
|
|
75
|
-
};
|
|
76
|
-
export declare const opacity: {
|
|
77
|
-
readonly disabled: 0.6;
|
|
78
|
-
readonly subtle: 0.8;
|
|
79
|
-
readonly medium: 0.5;
|
|
80
|
-
readonly light: 0.3;
|
|
81
|
-
readonly veryLight: 0.1;
|
|
82
|
-
};
|
|
83
|
-
export declare const borders: {
|
|
84
|
-
readonly radius: {
|
|
85
|
-
readonly none: 0;
|
|
86
|
-
readonly xs: 2;
|
|
87
|
-
readonly sm: 4;
|
|
88
|
-
readonly md: 8;
|
|
89
|
-
readonly lg: 12;
|
|
90
|
-
readonly xl: 16;
|
|
91
|
-
readonly xxl: 24;
|
|
92
|
-
readonly full: 9999;
|
|
93
|
-
};
|
|
94
|
-
readonly width: {
|
|
95
|
-
readonly none: 0;
|
|
96
|
-
readonly thin: 1;
|
|
97
|
-
readonly medium: 2;
|
|
98
|
-
readonly thick: 4;
|
|
99
|
-
};
|
|
100
|
-
readonly button: {
|
|
101
|
-
readonly borderRadius: 8;
|
|
102
|
-
readonly borderWidth: 0;
|
|
103
|
-
};
|
|
104
|
-
readonly card: {
|
|
105
|
-
readonly borderRadius: 12;
|
|
106
|
-
readonly borderWidth: 1;
|
|
107
|
-
};
|
|
108
|
-
readonly input: {
|
|
109
|
-
readonly borderRadius: 8;
|
|
110
|
-
readonly borderWidth: 1;
|
|
111
|
-
};
|
|
112
|
-
readonly pill: {
|
|
113
|
-
readonly borderRadius: 9999;
|
|
114
|
-
readonly borderWidth: 0;
|
|
115
|
-
};
|
|
116
|
-
};
|
|
117
|
-
export declare const sizes: {
|
|
118
|
-
readonly touchTarget: 44;
|
|
119
|
-
readonly touchTargetSmall: 36;
|
|
120
|
-
readonly touchTargetLarge: 56;
|
|
121
|
-
readonly buttonHeight: {
|
|
122
|
-
readonly sm: 40;
|
|
123
|
-
readonly md: 48;
|
|
124
|
-
readonly lg: 56;
|
|
125
|
-
readonly xl: 64;
|
|
126
|
-
};
|
|
127
|
-
readonly dot: {
|
|
128
|
-
readonly inactive: 8;
|
|
129
|
-
readonly active: 24;
|
|
130
|
-
};
|
|
131
|
-
readonly progressBar: {
|
|
132
|
-
readonly thin: 2;
|
|
133
|
-
readonly normal: 4;
|
|
134
|
-
readonly thick: 6;
|
|
135
|
-
};
|
|
136
|
-
readonly divider: 1;
|
|
137
|
-
readonly separator: 2;
|
|
138
|
-
};
|
|
139
|
-
export declare const iconSizes: {
|
|
140
|
-
readonly xs: 12;
|
|
141
|
-
readonly sm: 16;
|
|
142
|
-
readonly md: 20;
|
|
143
|
-
readonly lg: 24;
|
|
144
|
-
readonly xl: 32;
|
|
145
|
-
readonly xxl: 40;
|
|
146
|
-
};
|
|
147
|
-
export declare const avatarSizes: {
|
|
148
|
-
readonly xs: 24;
|
|
149
|
-
readonly sm: 32;
|
|
150
|
-
readonly md: 40;
|
|
151
|
-
readonly lg: 48;
|
|
152
|
-
readonly xl: 64;
|
|
153
|
-
readonly xxl: 80;
|
|
154
|
-
};
|
|
155
|
-
/**
|
|
156
|
-
* All static design tokens in one place
|
|
157
|
-
* These values DON'T change with theme (light/dark)
|
|
158
|
-
*/
|
|
159
|
-
export declare const BASE_TOKENS: {
|
|
160
|
-
readonly spacing: {
|
|
161
|
-
readonly xs: 4;
|
|
162
|
-
readonly sm: 8;
|
|
163
|
-
readonly md: 16;
|
|
164
|
-
readonly lg: 24;
|
|
165
|
-
readonly xl: 32;
|
|
166
|
-
readonly xxl: 48;
|
|
167
|
-
readonly xxxl: 64;
|
|
168
|
-
readonly screenPadding: 20;
|
|
169
|
-
readonly cardPadding: 16;
|
|
170
|
-
readonly buttonPadding: 16;
|
|
171
|
-
readonly inputPadding: 8;
|
|
172
|
-
readonly sectionSpacing: 24;
|
|
173
|
-
readonly iconSizeSmall: 16;
|
|
174
|
-
readonly iconSizeMedium: 20;
|
|
175
|
-
readonly iconSizeLarge: 24;
|
|
176
|
-
readonly iconSizeXLarge: 32;
|
|
177
|
-
readonly iconSizeHero: 64;
|
|
178
|
-
readonly buttonHeight: 48;
|
|
179
|
-
readonly inputHeight: 48;
|
|
180
|
-
readonly appBarHeight: 56;
|
|
181
|
-
readonly tabBarHeight: 60;
|
|
182
|
-
};
|
|
183
|
-
readonly typography: {
|
|
184
|
-
readonly fontPrimary: "System";
|
|
185
|
-
readonly fontSecondary: "System";
|
|
186
|
-
readonly fontMono: "Courier New";
|
|
187
|
-
readonly xs: 12;
|
|
188
|
-
readonly sm: 14;
|
|
189
|
-
readonly md: 16;
|
|
190
|
-
readonly lg: 18;
|
|
191
|
-
readonly xl: 20;
|
|
192
|
-
readonly xxl: 24;
|
|
193
|
-
readonly xxxl: 32;
|
|
194
|
-
readonly light: "300";
|
|
195
|
-
readonly regular: "400";
|
|
196
|
-
readonly medium: "500";
|
|
197
|
-
readonly semibold: "600";
|
|
198
|
-
readonly bold: "700";
|
|
199
|
-
readonly lineHeightTight: 1.2;
|
|
200
|
-
readonly lineHeightNormal: 1.5;
|
|
201
|
-
readonly lineHeightRelaxed: 1.7;
|
|
202
|
-
readonly displayLarge: TextStyle;
|
|
203
|
-
readonly displayMedium: TextStyle;
|
|
204
|
-
readonly displaySmall: TextStyle;
|
|
205
|
-
readonly headlineLarge: TextStyle;
|
|
206
|
-
readonly headlineMedium: TextStyle;
|
|
207
|
-
readonly headlineSmall: TextStyle;
|
|
208
|
-
readonly titleLarge: TextStyle;
|
|
209
|
-
readonly titleMedium: TextStyle;
|
|
210
|
-
readonly titleSmall: TextStyle;
|
|
211
|
-
readonly bodyLarge: TextStyle;
|
|
212
|
-
readonly bodyMedium: TextStyle;
|
|
213
|
-
readonly bodySmall: TextStyle;
|
|
214
|
-
readonly labelLarge: TextStyle;
|
|
215
|
-
readonly labelMedium: TextStyle;
|
|
216
|
-
readonly labelSmall: TextStyle;
|
|
217
|
-
readonly headingLarge: TextStyle;
|
|
218
|
-
readonly headingMedium: TextStyle;
|
|
219
|
-
readonly headingSmall: TextStyle;
|
|
220
|
-
readonly button: TextStyle;
|
|
221
|
-
readonly caption: TextStyle;
|
|
222
|
-
readonly overline: TextStyle;
|
|
223
|
-
};
|
|
224
|
-
readonly opacity: {
|
|
225
|
-
readonly disabled: 0.6;
|
|
226
|
-
readonly subtle: 0.8;
|
|
227
|
-
readonly medium: 0.5;
|
|
228
|
-
readonly light: 0.3;
|
|
229
|
-
readonly veryLight: 0.1;
|
|
230
|
-
};
|
|
231
|
-
readonly borders: {
|
|
232
|
-
readonly radius: {
|
|
233
|
-
readonly none: 0;
|
|
234
|
-
readonly xs: 2;
|
|
235
|
-
readonly sm: 4;
|
|
236
|
-
readonly md: 8;
|
|
237
|
-
readonly lg: 12;
|
|
238
|
-
readonly xl: 16;
|
|
239
|
-
readonly xxl: 24;
|
|
240
|
-
readonly full: 9999;
|
|
241
|
-
};
|
|
242
|
-
readonly width: {
|
|
243
|
-
readonly none: 0;
|
|
244
|
-
readonly thin: 1;
|
|
245
|
-
readonly medium: 2;
|
|
246
|
-
readonly thick: 4;
|
|
247
|
-
};
|
|
248
|
-
readonly button: {
|
|
249
|
-
readonly borderRadius: 8;
|
|
250
|
-
readonly borderWidth: 0;
|
|
251
|
-
};
|
|
252
|
-
readonly card: {
|
|
253
|
-
readonly borderRadius: 12;
|
|
254
|
-
readonly borderWidth: 1;
|
|
255
|
-
};
|
|
256
|
-
readonly input: {
|
|
257
|
-
readonly borderRadius: 8;
|
|
258
|
-
readonly borderWidth: 1;
|
|
259
|
-
};
|
|
260
|
-
readonly pill: {
|
|
261
|
-
readonly borderRadius: 9999;
|
|
262
|
-
readonly borderWidth: 0;
|
|
263
|
-
};
|
|
264
|
-
};
|
|
265
|
-
readonly sizes: {
|
|
266
|
-
readonly touchTarget: 44;
|
|
267
|
-
readonly touchTargetSmall: 36;
|
|
268
|
-
readonly touchTargetLarge: 56;
|
|
269
|
-
readonly buttonHeight: {
|
|
270
|
-
readonly sm: 40;
|
|
271
|
-
readonly md: 48;
|
|
272
|
-
readonly lg: 56;
|
|
273
|
-
readonly xl: 64;
|
|
274
|
-
};
|
|
275
|
-
readonly dot: {
|
|
276
|
-
readonly inactive: 8;
|
|
277
|
-
readonly active: 24;
|
|
278
|
-
};
|
|
279
|
-
readonly progressBar: {
|
|
280
|
-
readonly thin: 2;
|
|
281
|
-
readonly normal: 4;
|
|
282
|
-
readonly thick: 6;
|
|
283
|
-
};
|
|
284
|
-
readonly divider: 1;
|
|
285
|
-
readonly separator: 2;
|
|
286
|
-
};
|
|
287
|
-
readonly iconSizes: {
|
|
288
|
-
readonly xs: 12;
|
|
289
|
-
readonly sm: 16;
|
|
290
|
-
readonly md: 20;
|
|
291
|
-
readonly lg: 24;
|
|
292
|
-
readonly xl: 32;
|
|
293
|
-
readonly xxl: 40;
|
|
294
|
-
};
|
|
295
|
-
readonly avatarSizes: {
|
|
296
|
-
readonly xs: 24;
|
|
297
|
-
readonly sm: 32;
|
|
298
|
-
readonly md: 40;
|
|
299
|
-
readonly lg: 48;
|
|
300
|
-
readonly xl: 64;
|
|
301
|
-
readonly xxl: 80;
|
|
302
|
-
};
|
|
303
|
-
};
|
|
304
|
-
export type Spacing = typeof spacing;
|
|
305
|
-
export type Typography = typeof typography;
|
|
306
|
-
export type Opacity = typeof opacity;
|
|
307
|
-
export type Borders = typeof borders;
|
|
308
|
-
export type Sizes = typeof sizes;
|
|
309
|
-
export type IconSizes = typeof iconSizes;
|
|
310
|
-
export type AvatarSizes = typeof avatarSizes;
|
|
311
|
-
export type BaseTokens = typeof BASE_TOKENS;
|
|
312
|
-
//# sourceMappingURL=BaseTokens.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BaseTokens.d.ts","sourceRoot":"","sources":["../../../../src/presentation/tokens/core/BaseTokens.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAMzC,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;CA6BV,CAAC;AAMX,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;2BAoChB,SAAS;4BAMT,SAAS;2BAMT,SAAS;4BAOT,SAAS;6BAMT,SAAS;4BAMT,SAAS;yBAOT,SAAS;0BAMT,SAAS;yBAMT,SAAS;wBAOT,SAAS;yBAMT,SAAS;wBAMT,SAAS;yBAOT,SAAS;0BAMT,SAAS;yBAMT,SAAS;2BAUT,SAAS;4BAMT,SAAS;2BAMT,SAAS;qBAMT,SAAS;sBAMT,SAAS;uBAQT,SAAS;CACN,CAAC;AAMX,eAAO,MAAM,OAAO;;;;;;CAMV,CAAC;AAMX,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyCV,CAAC;AAMX,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;CA8BR,CAAC;AAMX,eAAO,MAAM,SAAS;;;;;;;CAOZ,CAAC;AAMX,eAAO,MAAM,WAAW;;;;;;;CAOd,CAAC;AAMX;;;GAGG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+BAtQjB,SAAS;gCAMT,SAAS;+BAMT,SAAS;gCAOT,SAAS;iCAMT,SAAS;gCAMT,SAAS;6BAOT,SAAS;8BAMT,SAAS;6BAMT,SAAS;4BAOT,SAAS;6BAMT,SAAS;4BAMT,SAAS;6BAOT,SAAS;8BAMT,SAAS;6BAMT,SAAS;+BAUT,SAAS;gCAMT,SAAS;+BAMT,SAAS;yBAMT,SAAS;0BAMT,SAAS;2BAQT,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4IN,CAAC;AAMX,MAAM,MAAM,OAAO,GAAG,OAAO,OAAO,CAAC;AACrC,MAAM,MAAM,UAAU,GAAG,OAAO,UAAU,CAAC;AAC3C,MAAM,MAAM,OAAO,GAAG,OAAO,OAAO,CAAC;AACrC,MAAM,MAAM,OAAO,GAAG,OAAO,OAAO,CAAC;AACrC,MAAM,MAAM,KAAK,GAAG,OAAO,KAAK,CAAC;AACjC,MAAM,MAAM,SAAS,GAAG,OAAO,SAAS,CAAC;AACzC,MAAM,MAAM,WAAW,GAAG,OAAO,WAAW,CAAC;AAC7C,MAAM,MAAM,UAAU,GAAG,OAAO,WAAW,CAAC"}
|