@umituz/react-native-design-system 1.7.1 → 1.7.3
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/README.md +2 -2
- package/package.json +61 -35
- package/src/index.ts +71 -271
- package/lib/index.d.ts +0 -59
- package/lib/index.d.ts.map +0 -1
- package/lib/index.js +0 -99
- package/lib/index.js.map +0 -1
- package/lib/presentation/atoms/AtomicAvatar.d.ts +0 -48
- package/lib/presentation/atoms/AtomicAvatar.d.ts.map +0 -1
- package/lib/presentation/atoms/AtomicAvatar.js +0 -85
- package/lib/presentation/atoms/AtomicAvatar.js.map +0 -1
- package/lib/presentation/atoms/AtomicAvatarGroup.d.ts +0 -56
- package/lib/presentation/atoms/AtomicAvatarGroup.d.ts.map +0 -1
- package/lib/presentation/atoms/AtomicAvatarGroup.js +0 -83
- package/lib/presentation/atoms/AtomicAvatarGroup.js.map +0 -1
- package/lib/presentation/atoms/AtomicBadge.d.ts +0 -42
- package/lib/presentation/atoms/AtomicBadge.d.ts.map +0 -1
- package/lib/presentation/atoms/AtomicBadge.js +0 -168
- package/lib/presentation/atoms/AtomicBadge.js.map +0 -1
- package/lib/presentation/atoms/AtomicButton.d.ts +0 -21
- package/lib/presentation/atoms/AtomicButton.d.ts.map +0 -1
- package/lib/presentation/atoms/AtomicButton.js +0 -172
- package/lib/presentation/atoms/AtomicButton.js.map +0 -1
- package/lib/presentation/atoms/AtomicCard.d.ts +0 -15
- package/lib/presentation/atoms/AtomicCard.d.ts.map +0 -1
- package/lib/presentation/atoms/AtomicCard.js +0 -70
- package/lib/presentation/atoms/AtomicCard.js.map +0 -1
- package/lib/presentation/atoms/AtomicChip.d.ts +0 -53
- package/lib/presentation/atoms/AtomicChip.d.ts.map +0 -1
- package/lib/presentation/atoms/AtomicChip.js +0 -131
- package/lib/presentation/atoms/AtomicChip.js.map +0 -1
- package/lib/presentation/atoms/AtomicDatePicker.d.ts +0 -75
- package/lib/presentation/atoms/AtomicDatePicker.d.ts.map +0 -1
- package/lib/presentation/atoms/AtomicDatePicker.js +0 -246
- package/lib/presentation/atoms/AtomicDatePicker.js.map +0 -1
- package/lib/presentation/atoms/AtomicDivider.d.ts +0 -45
- package/lib/presentation/atoms/AtomicDivider.d.ts.map +0 -1
- package/lib/presentation/atoms/AtomicDivider.js +0 -58
- package/lib/presentation/atoms/AtomicDivider.js.map +0 -1
- package/lib/presentation/atoms/AtomicFab.d.ts +0 -37
- package/lib/presentation/atoms/AtomicFab.d.ts.map +0 -1
- package/lib/presentation/atoms/AtomicFab.js +0 -68
- package/lib/presentation/atoms/AtomicFab.js.map +0 -1
- package/lib/presentation/atoms/AtomicFilter.d.ts +0 -37
- package/lib/presentation/atoms/AtomicFilter.d.ts.map +0 -1
- package/lib/presentation/atoms/AtomicFilter.js +0 -104
- package/lib/presentation/atoms/AtomicFilter.js.map +0 -1
- package/lib/presentation/atoms/AtomicFormError.d.ts +0 -30
- package/lib/presentation/atoms/AtomicFormError.d.ts.map +0 -1
- package/lib/presentation/atoms/AtomicFormError.js +0 -64
- package/lib/presentation/atoms/AtomicFormError.js.map +0 -1
- package/lib/presentation/atoms/AtomicIcon.d.ts +0 -35
- package/lib/presentation/atoms/AtomicIcon.d.ts.map +0 -1
- package/lib/presentation/atoms/AtomicIcon.js +0 -30
- package/lib/presentation/atoms/AtomicIcon.js.map +0 -1
- package/lib/presentation/atoms/AtomicImage.d.ts +0 -40
- package/lib/presentation/atoms/AtomicImage.d.ts.map +0 -1
- package/lib/presentation/atoms/AtomicImage.js +0 -92
- package/lib/presentation/atoms/AtomicImage.js.map +0 -1
- package/lib/presentation/atoms/AtomicInput.d.ts +0 -71
- package/lib/presentation/atoms/AtomicInput.d.ts.map +0 -1
- package/lib/presentation/atoms/AtomicInput.js +0 -196
- package/lib/presentation/atoms/AtomicInput.js.map +0 -1
- package/lib/presentation/atoms/AtomicNumberInput.d.ts +0 -69
- package/lib/presentation/atoms/AtomicNumberInput.d.ts.map +0 -1
- package/lib/presentation/atoms/AtomicNumberInput.js +0 -125
- package/lib/presentation/atoms/AtomicNumberInput.js.map +0 -1
- package/lib/presentation/atoms/AtomicPicker.d.ts +0 -52
- package/lib/presentation/atoms/AtomicPicker.d.ts.map +0 -1
- package/lib/presentation/atoms/AtomicPicker.js +0 -299
- package/lib/presentation/atoms/AtomicPicker.js.map +0 -1
- package/lib/presentation/atoms/AtomicProgress.d.ts +0 -44
- package/lib/presentation/atoms/AtomicProgress.d.ts.map +0 -1
- package/lib/presentation/atoms/AtomicProgress.js +0 -80
- package/lib/presentation/atoms/AtomicProgress.js.map +0 -1
- package/lib/presentation/atoms/AtomicSearchBar.d.ts +0 -19
- package/lib/presentation/atoms/AtomicSearchBar.d.ts.map +0 -1
- package/lib/presentation/atoms/AtomicSearchBar.js +0 -46
- package/lib/presentation/atoms/AtomicSearchBar.js.map +0 -1
- package/lib/presentation/atoms/AtomicSort.d.ts +0 -72
- package/lib/presentation/atoms/AtomicSort.d.ts.map +0 -1
- package/lib/presentation/atoms/AtomicSort.js +0 -77
- package/lib/presentation/atoms/AtomicSort.js.map +0 -1
- package/lib/presentation/atoms/AtomicSwitch.d.ts +0 -43
- package/lib/presentation/atoms/AtomicSwitch.d.ts.map +0 -1
- package/lib/presentation/atoms/AtomicSwitch.js +0 -104
- package/lib/presentation/atoms/AtomicSwitch.js.map +0 -1
- package/lib/presentation/atoms/AtomicText.d.ts +0 -14
- package/lib/presentation/atoms/AtomicText.d.ts.map +0 -1
- package/lib/presentation/atoms/AtomicText.js +0 -36
- package/lib/presentation/atoms/AtomicText.js.map +0 -1
- package/lib/presentation/atoms/AtomicTextArea.d.ts +0 -85
- package/lib/presentation/atoms/AtomicTextArea.d.ts.map +0 -1
- package/lib/presentation/atoms/AtomicTextArea.js +0 -196
- package/lib/presentation/atoms/AtomicTextArea.js.map +0 -1
- package/lib/presentation/atoms/AtomicTouchable.d.ts +0 -77
- package/lib/presentation/atoms/AtomicTouchable.d.ts.map +0 -1
- package/lib/presentation/atoms/AtomicTouchable.js +0 -138
- package/lib/presentation/atoms/AtomicTouchable.js.map +0 -1
- package/lib/presentation/atoms/fab/styles/fabStyles.d.ts +0 -23
- package/lib/presentation/atoms/fab/styles/fabStyles.d.ts.map +0 -1
- package/lib/presentation/atoms/fab/styles/fabStyles.js +0 -63
- package/lib/presentation/atoms/fab/styles/fabStyles.js.map +0 -1
- package/lib/presentation/atoms/fab/types/index.d.ts +0 -71
- package/lib/presentation/atoms/fab/types/index.d.ts.map +0 -1
- package/lib/presentation/atoms/fab/types/index.js +0 -2
- package/lib/presentation/atoms/fab/types/index.js.map +0 -1
- package/lib/presentation/atoms/filter/styles/filterStyles.d.ts +0 -15
- package/lib/presentation/atoms/filter/styles/filterStyles.d.ts.map +0 -1
- package/lib/presentation/atoms/filter/styles/filterStyles.js +0 -29
- package/lib/presentation/atoms/filter/styles/filterStyles.js.map +0 -1
- package/lib/presentation/atoms/filter/types/index.d.ts +0 -76
- package/lib/presentation/atoms/filter/types/index.d.ts.map +0 -1
- package/lib/presentation/atoms/filter/types/index.js +0 -2
- package/lib/presentation/atoms/filter/types/index.js.map +0 -1
- package/lib/presentation/atoms/index.d.ts +0 -273
- package/lib/presentation/atoms/index.d.ts.map +0 -1
- package/lib/presentation/atoms/index.js +0 -146
- package/lib/presentation/atoms/index.js.map +0 -1
- package/lib/presentation/atoms/input/hooks/useInputState.d.ts +0 -7
- package/lib/presentation/atoms/input/hooks/useInputState.d.ts.map +0 -1
- package/lib/presentation/atoms/input/hooks/useInputState.js +0 -13
- package/lib/presentation/atoms/input/hooks/useInputState.js.map +0 -1
- package/lib/presentation/atoms/input/styles/inputStyles.d.ts +0 -13
- package/lib/presentation/atoms/input/styles/inputStyles.d.ts.map +0 -1
- package/lib/presentation/atoms/input/styles/inputStyles.js +0 -59
- package/lib/presentation/atoms/input/styles/inputStyles.js.map +0 -1
- package/lib/presentation/atoms/input/types/index.d.ts +0 -24
- package/lib/presentation/atoms/input/types/index.d.ts.map +0 -1
- package/lib/presentation/atoms/input/types/index.js +0 -2
- package/lib/presentation/atoms/input/types/index.js.map +0 -1
- package/lib/presentation/atoms/picker/styles/pickerStyles.d.ts +0 -85
- package/lib/presentation/atoms/picker/styles/pickerStyles.d.ts.map +0 -1
- package/lib/presentation/atoms/picker/styles/pickerStyles.js +0 -177
- package/lib/presentation/atoms/picker/styles/pickerStyles.js.map +0 -1
- package/lib/presentation/atoms/picker/types/index.d.ts +0 -38
- package/lib/presentation/atoms/picker/types/index.d.ts.map +0 -1
- package/lib/presentation/atoms/picker/types/index.js +0 -2
- package/lib/presentation/atoms/picker/types/index.js.map +0 -1
- package/lib/presentation/atoms/touchable/styles/touchableStyles.d.ts +0 -31
- package/lib/presentation/atoms/touchable/styles/touchableStyles.d.ts.map +0 -1
- package/lib/presentation/atoms/touchable/styles/touchableStyles.js +0 -54
- package/lib/presentation/atoms/touchable/styles/touchableStyles.js.map +0 -1
- package/lib/presentation/atoms/touchable/types/index.d.ts +0 -134
- package/lib/presentation/atoms/touchable/types/index.d.ts.map +0 -1
- package/lib/presentation/atoms/touchable/types/index.js +0 -2
- package/lib/presentation/atoms/touchable/types/index.js.map +0 -1
- package/lib/presentation/hooks/useAppDesignTokens.d.ts +0 -13
- package/lib/presentation/hooks/useAppDesignTokens.d.ts.map +0 -1
- package/lib/presentation/hooks/useAppDesignTokens.js +0 -13
- package/lib/presentation/hooks/useAppDesignTokens.js.map +0 -1
- package/lib/presentation/hooks/useResponsive.d.ts +0 -80
- package/lib/presentation/hooks/useResponsive.d.ts.map +0 -1
- package/lib/presentation/hooks/useResponsive.js +0 -82
- package/lib/presentation/hooks/useResponsive.js.map +0 -1
- package/lib/presentation/molecules/AtomicConfirmationModal.d.ts +0 -73
- package/lib/presentation/molecules/AtomicConfirmationModal.d.ts.map +0 -1
- package/lib/presentation/molecules/AtomicConfirmationModal.js +0 -154
- package/lib/presentation/molecules/AtomicConfirmationModal.js.map +0 -1
- package/lib/presentation/molecules/EmptyState.d.ts +0 -41
- package/lib/presentation/molecules/EmptyState.d.ts.map +0 -1
- package/lib/presentation/molecules/EmptyState.js +0 -68
- package/lib/presentation/molecules/EmptyState.js.map +0 -1
- package/lib/presentation/molecules/FormField.d.ts +0 -22
- package/lib/presentation/molecules/FormField.d.ts.map +0 -1
- package/lib/presentation/molecules/FormField.js +0 -76
- package/lib/presentation/molecules/FormField.js.map +0 -1
- package/lib/presentation/molecules/GridContainer.d.ts +0 -40
- package/lib/presentation/molecules/GridContainer.d.ts.map +0 -1
- package/lib/presentation/molecules/GridContainer.js +0 -77
- package/lib/presentation/molecules/GridContainer.js.map +0 -1
- package/lib/presentation/molecules/IconContainer.d.ts +0 -29
- package/lib/presentation/molecules/IconContainer.d.ts.map +0 -1
- package/lib/presentation/molecules/IconContainer.js +0 -60
- package/lib/presentation/molecules/IconContainer.js.map +0 -1
- package/lib/presentation/molecules/ListItem.d.ts +0 -5
- package/lib/presentation/molecules/ListItem.d.ts.map +0 -1
- package/lib/presentation/molecules/ListItem.js +0 -24
- package/lib/presentation/molecules/ListItem.js.map +0 -1
- package/lib/presentation/molecules/ScreenHeader.d.ts +0 -55
- package/lib/presentation/molecules/ScreenHeader.d.ts.map +0 -1
- package/lib/presentation/molecules/ScreenHeader.js +0 -94
- package/lib/presentation/molecules/ScreenHeader.js.map +0 -1
- package/lib/presentation/molecules/SearchBar.d.ts +0 -18
- package/lib/presentation/molecules/SearchBar.d.ts.map +0 -1
- package/lib/presentation/molecules/SearchBar.js +0 -47
- package/lib/presentation/molecules/SearchBar.js.map +0 -1
- package/lib/presentation/molecules/SectionCard.d.ts +0 -25
- package/lib/presentation/molecules/SectionCard.d.ts.map +0 -1
- package/lib/presentation/molecules/SectionCard.js +0 -47
- package/lib/presentation/molecules/SectionCard.js.map +0 -1
- package/lib/presentation/molecules/SectionContainer.d.ts +0 -33
- package/lib/presentation/molecules/SectionContainer.d.ts.map +0 -1
- package/lib/presentation/molecules/SectionContainer.js +0 -64
- package/lib/presentation/molecules/SectionContainer.js.map +0 -1
- package/lib/presentation/molecules/SectionHeader.d.ts +0 -37
- package/lib/presentation/molecules/SectionHeader.d.ts.map +0 -1
- package/lib/presentation/molecules/SectionHeader.js +0 -73
- package/lib/presentation/molecules/SectionHeader.js.map +0 -1
- package/lib/presentation/molecules/confirmation-modal/styles/confirmationModalStyles.d.ts +0 -50
- package/lib/presentation/molecules/confirmation-modal/styles/confirmationModalStyles.d.ts.map +0 -1
- package/lib/presentation/molecules/confirmation-modal/styles/confirmationModalStyles.js +0 -115
- package/lib/presentation/molecules/confirmation-modal/styles/confirmationModalStyles.js.map +0 -1
- package/lib/presentation/molecules/confirmation-modal/types/index.d.ts +0 -86
- package/lib/presentation/molecules/confirmation-modal/types/index.d.ts.map +0 -1
- package/lib/presentation/molecules/confirmation-modal/types/index.js +0 -7
- package/lib/presentation/molecules/confirmation-modal/types/index.js.map +0 -1
- package/lib/presentation/molecules/index.d.ts +0 -27
- package/lib/presentation/molecules/index.d.ts.map +0 -1
- package/lib/presentation/molecules/index.js +0 -17
- package/lib/presentation/molecules/index.js.map +0 -1
- package/lib/presentation/molecules/listitem/styles/listItemStyles.d.ts +0 -12
- package/lib/presentation/molecules/listitem/styles/listItemStyles.d.ts.map +0 -1
- package/lib/presentation/molecules/listitem/styles/listItemStyles.js +0 -15
- package/lib/presentation/molecules/listitem/styles/listItemStyles.js.map +0 -1
- package/lib/presentation/molecules/listitem/types/index.d.ts +0 -17
- package/lib/presentation/molecules/listitem/types/index.d.ts.map +0 -1
- package/lib/presentation/molecules/listitem/types/index.js +0 -2
- package/lib/presentation/molecules/listitem/types/index.js.map +0 -1
- package/lib/presentation/organisms/AppHeader.d.ts +0 -31
- package/lib/presentation/organisms/AppHeader.d.ts.map +0 -1
- package/lib/presentation/organisms/AppHeader.js +0 -78
- package/lib/presentation/organisms/AppHeader.js.map +0 -1
- package/lib/presentation/organisms/FormContainer.d.ts +0 -76
- package/lib/presentation/organisms/FormContainer.d.ts.map +0 -1
- package/lib/presentation/organisms/FormContainer.js +0 -127
- package/lib/presentation/organisms/FormContainer.js.map +0 -1
- package/lib/presentation/organisms/ScreenLayout.d.ts +0 -84
- package/lib/presentation/organisms/ScreenLayout.d.ts.map +0 -1
- package/lib/presentation/organisms/ScreenLayout.js +0 -69
- package/lib/presentation/organisms/ScreenLayout.js.map +0 -1
- package/lib/presentation/organisms/index.d.ts +0 -16
- package/lib/presentation/organisms/index.d.ts.map +0 -1
- package/lib/presentation/organisms/index.js +0 -14
- package/lib/presentation/organisms/index.js.map +0 -1
- package/lib/presentation/tokens/commonStyles.d.ts +0 -122
- package/lib/presentation/tokens/commonStyles.d.ts.map +0 -1
- package/lib/presentation/tokens/commonStyles.js +0 -220
- package/lib/presentation/tokens/commonStyles.js.map +0 -1
- package/lib/presentation/utils/platformConstants.d.ts +0 -100
- package/lib/presentation/utils/platformConstants.d.ts.map +0 -1
- package/lib/presentation/utils/platformConstants.js +0 -114
- package/lib/presentation/utils/platformConstants.js.map +0 -1
- package/lib/presentation/utils/responsive.d.ts +0 -218
- package/lib/presentation/utils/responsive.d.ts.map +0 -1
- package/lib/presentation/utils/responsive.js +0 -452
- package/lib/presentation/utils/responsive.js.map +0 -1
- package/lib/presentation/utils/variants/compound.d.ts +0 -10
- package/lib/presentation/utils/variants/compound.d.ts.map +0 -1
- package/lib/presentation/utils/variants/compound.js +0 -16
- package/lib/presentation/utils/variants/compound.js.map +0 -1
- package/lib/presentation/utils/variants/core.d.ts +0 -15
- package/lib/presentation/utils/variants/core.d.ts.map +0 -1
- package/lib/presentation/utils/variants/core.js +0 -23
- package/lib/presentation/utils/variants/core.js.map +0 -1
- package/lib/presentation/utils/variants/helpers.d.ts +0 -5
- package/lib/presentation/utils/variants/helpers.d.ts.map +0 -1
- package/lib/presentation/utils/variants/helpers.js +0 -10
- package/lib/presentation/utils/variants/helpers.js.map +0 -1
- package/lib/presentation/utils/variants.d.ts +0 -4
- package/lib/presentation/utils/variants.d.ts.map +0 -1
- package/lib/presentation/utils/variants.js +0 -4
- package/lib/presentation/utils/variants.js.map +0 -1
- package/src/presentation/atoms/AtomicAvatar.tsx +0 -157
- package/src/presentation/atoms/AtomicAvatarGroup.tsx +0 -169
- package/src/presentation/atoms/AtomicBadge.tsx +0 -232
- package/src/presentation/atoms/AtomicButton.tsx +0 -236
- package/src/presentation/atoms/AtomicCard.tsx +0 -107
- package/src/presentation/atoms/AtomicChip.tsx +0 -223
- package/src/presentation/atoms/AtomicDatePicker.tsx +0 -354
- package/src/presentation/atoms/AtomicDivider.tsx +0 -114
- package/src/presentation/atoms/AtomicFab.tsx +0 -98
- package/src/presentation/atoms/AtomicFilter.tsx +0 -154
- package/src/presentation/atoms/AtomicFormError.tsx +0 -105
- package/src/presentation/atoms/AtomicIcon.tsx +0 -40
- package/src/presentation/atoms/AtomicImage.tsx +0 -149
- package/src/presentation/atoms/AtomicInput.tsx +0 -350
- package/src/presentation/atoms/AtomicNumberInput.tsx +0 -182
- package/src/presentation/atoms/AtomicPicker.tsx +0 -458
- package/src/presentation/atoms/AtomicProgress.tsx +0 -139
- package/src/presentation/atoms/AtomicSearchBar.tsx +0 -114
- package/src/presentation/atoms/AtomicSort.tsx +0 -145
- package/src/presentation/atoms/AtomicSwitch.tsx +0 -166
- package/src/presentation/atoms/AtomicText.tsx +0 -82
- package/src/presentation/atoms/AtomicTextArea.tsx +0 -313
- package/src/presentation/atoms/AtomicTouchable.tsx +0 -209
- package/src/presentation/atoms/fab/styles/fabStyles.ts +0 -69
- package/src/presentation/atoms/fab/types/index.ts +0 -82
- package/src/presentation/atoms/filter/styles/filterStyles.ts +0 -32
- package/src/presentation/atoms/filter/types/index.ts +0 -89
- package/src/presentation/atoms/index.ts +0 -366
- package/src/presentation/atoms/input/hooks/useInputState.ts +0 -15
- package/src/presentation/atoms/input/styles/inputStyles.ts +0 -66
- package/src/presentation/atoms/input/types/index.ts +0 -25
- package/src/presentation/atoms/picker/styles/pickerStyles.ts +0 -220
- package/src/presentation/atoms/picker/types/index.ts +0 -40
- package/src/presentation/atoms/touchable/styles/touchableStyles.ts +0 -62
- package/src/presentation/atoms/touchable/types/index.ts +0 -155
- package/src/presentation/hooks/useAppDesignTokens.ts +0 -13
- package/src/presentation/hooks/useResponsive.ts +0 -180
- package/src/presentation/molecules/AtomicConfirmationModal.tsx +0 -243
- package/src/presentation/molecules/EmptyState.tsx +0 -130
- package/src/presentation/molecules/FormField.tsx +0 -128
- package/src/presentation/molecules/GridContainer.tsx +0 -124
- package/src/presentation/molecules/IconContainer.tsx +0 -94
- package/src/presentation/molecules/ListItem.tsx +0 -36
- package/src/presentation/molecules/ScreenHeader.tsx +0 -140
- package/src/presentation/molecules/SearchBar.tsx +0 -85
- package/src/presentation/molecules/SectionCard.tsx +0 -74
- package/src/presentation/molecules/SectionContainer.tsx +0 -106
- package/src/presentation/molecules/SectionHeader.tsx +0 -125
- package/src/presentation/molecules/confirmation-modal/styles/confirmationModalStyles.ts +0 -133
- package/src/presentation/molecules/confirmation-modal/types/index.ts +0 -105
- package/src/presentation/molecules/index.ts +0 -41
- package/src/presentation/molecules/listitem/styles/listItemStyles.ts +0 -19
- package/src/presentation/molecules/listitem/types/index.ts +0 -17
- package/src/presentation/organisms/AppHeader.tsx +0 -137
- package/src/presentation/organisms/FormContainer.tsx +0 -180
- package/src/presentation/organisms/ScreenLayout.tsx +0 -171
- package/src/presentation/organisms/index.ts +0 -25
- package/src/presentation/tokens/commonStyles.ts +0 -253
- package/src/presentation/utils/platformConstants.ts +0 -124
- package/src/presentation/utils/responsive.ts +0 -516
|
@@ -1,366 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Atomic Components Export Index
|
|
3
|
-
*
|
|
4
|
-
* Centralized export file for all atomic design components
|
|
5
|
-
* Following atomic design principles with React Native implementation
|
|
6
|
-
*
|
|
7
|
-
* Generated for {{APP_NAME}} - {{CATEGORY}} category
|
|
8
|
-
* Theme: {{THEME_NAME}}
|
|
9
|
-
*
|
|
10
|
-
* Usage:
|
|
11
|
-
* ```typescript
|
|
12
|
-
* import { AtomicButton, AtomicText, AtomicCard } from '@domains/design-system';
|
|
13
|
-
*
|
|
14
|
-
* // Or individual imports
|
|
15
|
-
* import { AtomicButton } from '@domains/design-system';
|
|
16
|
-
* ```
|
|
17
|
-
*/
|
|
18
|
-
|
|
19
|
-
// STEP 1: Import all components first (required for default export)
|
|
20
|
-
import {
|
|
21
|
-
AtomicButton,
|
|
22
|
-
type AtomicButtonProps,
|
|
23
|
-
} from './AtomicButton';
|
|
24
|
-
|
|
25
|
-
import {
|
|
26
|
-
AtomicText,
|
|
27
|
-
type AtomicTextProps,
|
|
28
|
-
} from './AtomicText';
|
|
29
|
-
|
|
30
|
-
import {
|
|
31
|
-
AtomicCard,
|
|
32
|
-
type AtomicCardProps,
|
|
33
|
-
type AtomicCardVariant,
|
|
34
|
-
type AtomicCardPadding,
|
|
35
|
-
} from './AtomicCard';
|
|
36
|
-
|
|
37
|
-
import {
|
|
38
|
-
AtomicInput,
|
|
39
|
-
type AtomicInputProps,
|
|
40
|
-
type AtomicInputVariant,
|
|
41
|
-
type AtomicInputState,
|
|
42
|
-
type AtomicInputSize,
|
|
43
|
-
} from './AtomicInput';
|
|
44
|
-
|
|
45
|
-
import {
|
|
46
|
-
AtomicIcon,
|
|
47
|
-
type AtomicIconProps,
|
|
48
|
-
type AtomicIconSize,
|
|
49
|
-
type AtomicIconColor,
|
|
50
|
-
} from './AtomicIcon';
|
|
51
|
-
|
|
52
|
-
import {
|
|
53
|
-
AtomicImage,
|
|
54
|
-
type AtomicImageProps,
|
|
55
|
-
} from './AtomicImage';
|
|
56
|
-
|
|
57
|
-
import {
|
|
58
|
-
AtomicSwitch,
|
|
59
|
-
type AtomicSwitchProps,
|
|
60
|
-
} from './AtomicSwitch';
|
|
61
|
-
|
|
62
|
-
import {
|
|
63
|
-
AtomicBadge,
|
|
64
|
-
type AtomicBadgeProps,
|
|
65
|
-
} from './AtomicBadge';
|
|
66
|
-
|
|
67
|
-
import {
|
|
68
|
-
AtomicFormError,
|
|
69
|
-
type AtomicFormErrorProps,
|
|
70
|
-
} from './AtomicFormError';
|
|
71
|
-
|
|
72
|
-
import {
|
|
73
|
-
AtomicAvatar,
|
|
74
|
-
type AtomicAvatarProps,
|
|
75
|
-
} from './AtomicAvatar';
|
|
76
|
-
|
|
77
|
-
import {
|
|
78
|
-
AtomicChip,
|
|
79
|
-
type AtomicChipProps,
|
|
80
|
-
} from './AtomicChip';
|
|
81
|
-
|
|
82
|
-
import {
|
|
83
|
-
AtomicDivider,
|
|
84
|
-
type AtomicDividerProps,
|
|
85
|
-
} from './AtomicDivider';
|
|
86
|
-
|
|
87
|
-
import {
|
|
88
|
-
AtomicProgress,
|
|
89
|
-
type AtomicProgressProps,
|
|
90
|
-
} from './AtomicProgress';
|
|
91
|
-
|
|
92
|
-
import {
|
|
93
|
-
AtomicAvatarGroup,
|
|
94
|
-
type AtomicAvatarGroupProps,
|
|
95
|
-
type AvatarData,
|
|
96
|
-
} from './AtomicAvatarGroup';
|
|
97
|
-
|
|
98
|
-
import {
|
|
99
|
-
AtomicFab,
|
|
100
|
-
type AtomicFabProps,
|
|
101
|
-
type FabSize,
|
|
102
|
-
type FabVariant,
|
|
103
|
-
getFabVariants,
|
|
104
|
-
} from './AtomicFab';
|
|
105
|
-
|
|
106
|
-
import {
|
|
107
|
-
AtomicFilter,
|
|
108
|
-
type AtomicFilterProps,
|
|
109
|
-
type FilterOption,
|
|
110
|
-
getFilterContainerStyle,
|
|
111
|
-
getClearAllContainerStyle,
|
|
112
|
-
getScrollContentContainerStyle,
|
|
113
|
-
} from './AtomicFilter';
|
|
114
|
-
|
|
115
|
-
import {
|
|
116
|
-
AtomicTouchable,
|
|
117
|
-
type AtomicTouchableProps,
|
|
118
|
-
type TouchableFeedback,
|
|
119
|
-
type FeedbackStrength,
|
|
120
|
-
type HitSlop,
|
|
121
|
-
TouchablePresets,
|
|
122
|
-
getOpacityValue,
|
|
123
|
-
normalizeHitSlop,
|
|
124
|
-
} from './AtomicTouchable';
|
|
125
|
-
|
|
126
|
-
// STEP 2: Re-export all components (for named imports)
|
|
127
|
-
export {
|
|
128
|
-
AtomicButton,
|
|
129
|
-
type AtomicButtonProps,
|
|
130
|
-
};
|
|
131
|
-
|
|
132
|
-
// Helper types extracted from ButtonVariantConfig
|
|
133
|
-
|
|
134
|
-
export {
|
|
135
|
-
AtomicText,
|
|
136
|
-
type AtomicTextProps,
|
|
137
|
-
};
|
|
138
|
-
|
|
139
|
-
export {
|
|
140
|
-
AtomicCard,
|
|
141
|
-
type AtomicCardProps,
|
|
142
|
-
type AtomicCardVariant,
|
|
143
|
-
type AtomicCardPadding,
|
|
144
|
-
};
|
|
145
|
-
|
|
146
|
-
export {
|
|
147
|
-
AtomicInput,
|
|
148
|
-
type AtomicInputProps,
|
|
149
|
-
type AtomicInputVariant,
|
|
150
|
-
type AtomicInputState,
|
|
151
|
-
type AtomicInputSize,
|
|
152
|
-
};
|
|
153
|
-
|
|
154
|
-
export {
|
|
155
|
-
AtomicIcon,
|
|
156
|
-
type AtomicIconProps,
|
|
157
|
-
type AtomicIconSize,
|
|
158
|
-
type AtomicIconColor,
|
|
159
|
-
};
|
|
160
|
-
|
|
161
|
-
export {
|
|
162
|
-
AtomicImage,
|
|
163
|
-
type AtomicImageProps,
|
|
164
|
-
};
|
|
165
|
-
|
|
166
|
-
export {
|
|
167
|
-
AtomicSwitch,
|
|
168
|
-
type AtomicSwitchProps,
|
|
169
|
-
};
|
|
170
|
-
|
|
171
|
-
export {
|
|
172
|
-
AtomicBadge,
|
|
173
|
-
type AtomicBadgeProps,
|
|
174
|
-
};
|
|
175
|
-
|
|
176
|
-
export {
|
|
177
|
-
AtomicFormError,
|
|
178
|
-
type AtomicFormErrorProps,
|
|
179
|
-
};
|
|
180
|
-
|
|
181
|
-
export {
|
|
182
|
-
AtomicAvatar,
|
|
183
|
-
type AtomicAvatarProps,
|
|
184
|
-
};
|
|
185
|
-
|
|
186
|
-
export {
|
|
187
|
-
AtomicChip,
|
|
188
|
-
type AtomicChipProps,
|
|
189
|
-
};
|
|
190
|
-
|
|
191
|
-
export {
|
|
192
|
-
AtomicDivider,
|
|
193
|
-
type AtomicDividerProps,
|
|
194
|
-
};
|
|
195
|
-
|
|
196
|
-
export {
|
|
197
|
-
AtomicProgress,
|
|
198
|
-
type AtomicProgressProps,
|
|
199
|
-
};
|
|
200
|
-
|
|
201
|
-
export {
|
|
202
|
-
AtomicAvatarGroup,
|
|
203
|
-
type AtomicAvatarGroupProps,
|
|
204
|
-
type AvatarData,
|
|
205
|
-
};
|
|
206
|
-
|
|
207
|
-
export {
|
|
208
|
-
AtomicFab,
|
|
209
|
-
type AtomicFabProps,
|
|
210
|
-
type FabSize,
|
|
211
|
-
type FabVariant,
|
|
212
|
-
getFabVariants,
|
|
213
|
-
};
|
|
214
|
-
|
|
215
|
-
export {
|
|
216
|
-
AtomicFilter,
|
|
217
|
-
type AtomicFilterProps,
|
|
218
|
-
type FilterOption,
|
|
219
|
-
getFilterContainerStyle,
|
|
220
|
-
getClearAllContainerStyle,
|
|
221
|
-
getScrollContentContainerStyle,
|
|
222
|
-
};
|
|
223
|
-
|
|
224
|
-
export {
|
|
225
|
-
AtomicTouchable,
|
|
226
|
-
type AtomicTouchableProps,
|
|
227
|
-
type TouchableFeedback,
|
|
228
|
-
type FeedbackStrength,
|
|
229
|
-
type HitSlop,
|
|
230
|
-
TouchablePresets,
|
|
231
|
-
getOpacityValue,
|
|
232
|
-
normalizeHitSlop,
|
|
233
|
-
};
|
|
234
|
-
|
|
235
|
-
/**
|
|
236
|
-
* Convenience re-exports for common patterns
|
|
237
|
-
*/
|
|
238
|
-
|
|
239
|
-
// All atomic component types
|
|
240
|
-
export type AtomicComponentProps =
|
|
241
|
-
| AtomicButtonProps
|
|
242
|
-
| AtomicTextProps
|
|
243
|
-
| AtomicCardProps
|
|
244
|
-
| AtomicInputProps
|
|
245
|
-
| AtomicIconProps
|
|
246
|
-
| AtomicImageProps
|
|
247
|
-
| AtomicSwitchProps
|
|
248
|
-
| AtomicBadgeProps
|
|
249
|
-
| AtomicFormErrorProps
|
|
250
|
-
| AtomicAvatarProps
|
|
251
|
-
| AtomicChipProps
|
|
252
|
-
| AtomicDividerProps
|
|
253
|
-
| AtomicProgressProps
|
|
254
|
-
| AtomicAvatarGroupProps
|
|
255
|
-
| AtomicFabProps
|
|
256
|
-
| AtomicFilterProps
|
|
257
|
-
| AtomicTouchableProps;
|
|
258
|
-
|
|
259
|
-
// All variant types for theme consistency
|
|
260
|
-
export type AtomicVariants = {
|
|
261
|
-
card: AtomicCardVariant;
|
|
262
|
-
input: AtomicInputVariant;
|
|
263
|
-
icon: AtomicIconSize;
|
|
264
|
-
};
|
|
265
|
-
|
|
266
|
-
// All color types for design system consistency
|
|
267
|
-
export type AtomicColors = AtomicIconColor;
|
|
268
|
-
|
|
269
|
-
/**
|
|
270
|
-
* Atomic component utilities
|
|
271
|
-
*/
|
|
272
|
-
export const AtomicUtils = {
|
|
273
|
-
/**
|
|
274
|
-
* Get recommended component combinations for common UI patterns
|
|
275
|
-
*/
|
|
276
|
-
getRecommendedCombinations: () => ({
|
|
277
|
-
// Card with header
|
|
278
|
-
cardWithHeader: {
|
|
279
|
-
card: { variant: 'elevated' as const, padding: 'lg' as const },
|
|
280
|
-
title: { variant: 'titleLarge' as const, color: 'primary' as const },
|
|
281
|
-
description: { variant: 'bodyMedium' as const, color: 'secondary' as const },
|
|
282
|
-
},
|
|
283
|
-
|
|
284
|
-
// Form field
|
|
285
|
-
formField: {
|
|
286
|
-
input: { variant: 'outlined' as const, size: 'md' as const },
|
|
287
|
-
label: { variant: 'labelMedium' as const, color: 'primary' as const },
|
|
288
|
-
helper: { variant: 'bodySmall' as const, color: 'secondary' as const },
|
|
289
|
-
},
|
|
290
|
-
|
|
291
|
-
// Action button
|
|
292
|
-
primaryAction: {
|
|
293
|
-
button: { variant: 'primary' as const, size: 'lg' as const },
|
|
294
|
-
text: { variant: 'labelLarge' as const, color: 'onPrimary' as const },
|
|
295
|
-
icon: { size: 'md' as const, color: 'onPrimary' as const },
|
|
296
|
-
},
|
|
297
|
-
|
|
298
|
-
// Secondary action
|
|
299
|
-
secondaryAction: {
|
|
300
|
-
button: { variant: 'outline' as const, size: 'md' as const },
|
|
301
|
-
text: { variant: 'labelMedium' as const, color: 'primary' as const },
|
|
302
|
-
icon: { size: 'sm' as const, color: 'primary' as const },
|
|
303
|
-
},
|
|
304
|
-
}),
|
|
305
|
-
|
|
306
|
-
/**
|
|
307
|
-
* Validate component prop combinations
|
|
308
|
-
*/
|
|
309
|
-
validatePropCombination: (componentType: keyof AtomicVariants, props: any): boolean => {
|
|
310
|
-
// Add validation logic here for prop combinations
|
|
311
|
-
// This helps catch design system violations early
|
|
312
|
-
return true;
|
|
313
|
-
},
|
|
314
|
-
|
|
315
|
-
/**
|
|
316
|
-
* Get accessibility guidelines for component combinations
|
|
317
|
-
*/
|
|
318
|
-
getAccessibilityGuidelines: () => ({
|
|
319
|
-
button: {
|
|
320
|
-
minimumTouchTarget: 48,
|
|
321
|
-
requiresAccessibilityLabel: true,
|
|
322
|
-
supportsAccessibilityHint: true,
|
|
323
|
-
},
|
|
324
|
-
input: {
|
|
325
|
-
requiresLabel: true,
|
|
326
|
-
supportsHelperText: true,
|
|
327
|
-
requiresAccessibilityLabel: true,
|
|
328
|
-
},
|
|
329
|
-
card: {
|
|
330
|
-
supportsAccessibilityRole: true,
|
|
331
|
-
canBeAccessibilityContainer: true,
|
|
332
|
-
},
|
|
333
|
-
text: {
|
|
334
|
-
supportsAccessibilityLabel: true,
|
|
335
|
-
respectsSystemTextSize: true,
|
|
336
|
-
},
|
|
337
|
-
icon: {
|
|
338
|
-
requiresAccessibilityLabel: true,
|
|
339
|
-
supportsAccessibilityHint: false,
|
|
340
|
-
},
|
|
341
|
-
}),
|
|
342
|
-
};
|
|
343
|
-
|
|
344
|
-
// STEP 3: Default export (now all components are available in scope)
|
|
345
|
-
const defaultExport = {
|
|
346
|
-
AtomicButton,
|
|
347
|
-
AtomicText,
|
|
348
|
-
AtomicCard,
|
|
349
|
-
AtomicInput,
|
|
350
|
-
AtomicIcon,
|
|
351
|
-
AtomicImage,
|
|
352
|
-
AtomicSwitch,
|
|
353
|
-
AtomicBadge,
|
|
354
|
-
AtomicFormError,
|
|
355
|
-
AtomicAvatar,
|
|
356
|
-
AtomicChip,
|
|
357
|
-
AtomicDivider,
|
|
358
|
-
AtomicProgress,
|
|
359
|
-
AtomicAvatarGroup,
|
|
360
|
-
AtomicFab,
|
|
361
|
-
AtomicFilter,
|
|
362
|
-
AtomicTouchable,
|
|
363
|
-
AtomicUtils,
|
|
364
|
-
};
|
|
365
|
-
|
|
366
|
-
export default defaultExport;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { useState } from 'react';
|
|
2
|
-
|
|
3
|
-
export const useInputState = (secureTextEntry: boolean = false) => {
|
|
4
|
-
const [isFocused, setIsFocused] = useState(false);
|
|
5
|
-
const [isPasswordVisible, setIsPasswordVisible] = useState(!secureTextEntry);
|
|
6
|
-
|
|
7
|
-
const togglePasswordVisibility = () => setIsPasswordVisible(!isPasswordVisible);
|
|
8
|
-
|
|
9
|
-
return {
|
|
10
|
-
isFocused,
|
|
11
|
-
setIsFocused,
|
|
12
|
-
isPasswordVisible,
|
|
13
|
-
togglePasswordVisibility,
|
|
14
|
-
};
|
|
15
|
-
};
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { ViewStyle, TextStyle } from 'react-native';
|
|
2
|
-
import { useAppDesignTokens } from '../../../hooks/useAppDesignTokens';
|
|
3
|
-
import { AtomicInputVariant, AtomicInputSize, AtomicInputState } from '../types';
|
|
4
|
-
|
|
5
|
-
type DesignTokens = ReturnType<typeof useAppDesignTokens>;
|
|
6
|
-
|
|
7
|
-
export const getContainerVariantStyles = (tokens: DesignTokens): Record<AtomicInputVariant, ViewStyle> => ({
|
|
8
|
-
outlined: {
|
|
9
|
-
borderWidth: 1,
|
|
10
|
-
borderRadius: 12,
|
|
11
|
-
borderColor: tokens.colors.outline,
|
|
12
|
-
},
|
|
13
|
-
filled: {
|
|
14
|
-
backgroundColor: tokens.colors.surfaceVariant,
|
|
15
|
-
borderRadius: 12,
|
|
16
|
-
borderBottomWidth: 2,
|
|
17
|
-
borderBottomColor: tokens.colors.outline,
|
|
18
|
-
},
|
|
19
|
-
underlined: {
|
|
20
|
-
borderBottomWidth: 1,
|
|
21
|
-
borderBottomColor: tokens.colors.outline,
|
|
22
|
-
backgroundColor: 'transparent',
|
|
23
|
-
},
|
|
24
|
-
});
|
|
25
|
-
|
|
26
|
-
export const containerSizeStyles: Record<AtomicInputSize, ViewStyle> = {
|
|
27
|
-
sm: { height: 40, paddingHorizontal: 12, paddingVertical: 8 },
|
|
28
|
-
md: { height: 56, paddingHorizontal: 16, paddingVertical: 16 },
|
|
29
|
-
lg: { height: 64, paddingHorizontal: 24, paddingVertical: 20 },
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
export const getInputSizeStyles = (tokens: DesignTokens): Record<AtomicInputSize, TextStyle> => ({
|
|
33
|
-
sm: { fontSize: tokens.typography.bodyMedium.fontSize },
|
|
34
|
-
md: { fontSize: tokens.typography.bodyLarge.fontSize },
|
|
35
|
-
lg: { fontSize: tokens.typography.bodyLarge.fontSize },
|
|
36
|
-
});
|
|
37
|
-
|
|
38
|
-
export const getLabelSizeStyles = (tokens: DesignTokens): Record<AtomicInputSize, TextStyle> => ({
|
|
39
|
-
sm: { fontSize: tokens.typography.bodySmall.fontSize },
|
|
40
|
-
md: { fontSize: tokens.typography.bodyMedium.fontSize },
|
|
41
|
-
lg: { fontSize: tokens.typography.bodyLarge.fontSize },
|
|
42
|
-
});
|
|
43
|
-
|
|
44
|
-
export const getStateStyles = (tokens: DesignTokens): Record<AtomicInputState, ViewStyle> => ({
|
|
45
|
-
default: {},
|
|
46
|
-
error: { borderColor: tokens.colors.error },
|
|
47
|
-
success: { borderColor: tokens.colors.success },
|
|
48
|
-
disabled: {
|
|
49
|
-
backgroundColor: tokens.colors.surfaceDisabled,
|
|
50
|
-
borderColor: tokens.colors.outlineDisabled,
|
|
51
|
-
},
|
|
52
|
-
});
|
|
53
|
-
|
|
54
|
-
export const getFocusStyles = (tokens: DesignTokens): Record<AtomicInputVariant, ViewStyle> => ({
|
|
55
|
-
outlined: { borderColor: tokens.colors.primary, borderWidth: 2 },
|
|
56
|
-
filled: { borderBottomColor: tokens.colors.primary, borderBottomWidth: 2 },
|
|
57
|
-
underlined: { borderBottomColor: tokens.colors.primary, borderBottomWidth: 2 },
|
|
58
|
-
});
|
|
59
|
-
|
|
60
|
-
export const getStateColor = (tokens: DesignTokens, state: AtomicInputState, isFocused: boolean, isDisabled: boolean): string => {
|
|
61
|
-
if (isDisabled) return tokens.colors.onSurfaceDisabled;
|
|
62
|
-
if (state === 'error') return tokens.colors.error;
|
|
63
|
-
if (state === 'success') return tokens.colors.success;
|
|
64
|
-
if (isFocused) return tokens.colors.primary;
|
|
65
|
-
return tokens.colors.surfaceVariant;
|
|
66
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { TextInputProps, ViewStyle, TextStyle } from 'react-native';
|
|
2
|
-
|
|
3
|
-
export type AtomicInputVariant = 'outlined' | 'filled' | 'underlined';
|
|
4
|
-
export type AtomicInputState = 'default' | 'error' | 'success' | 'disabled';
|
|
5
|
-
export type AtomicInputSize = 'sm' | 'md' | 'lg';
|
|
6
|
-
|
|
7
|
-
export interface AtomicInputProps extends Omit<TextInputProps, 'style'> {
|
|
8
|
-
variant?: AtomicInputVariant;
|
|
9
|
-
state?: AtomicInputState;
|
|
10
|
-
size?: AtomicInputSize;
|
|
11
|
-
label: string; // Required per CLAUDE.md Rule 16
|
|
12
|
-
helperText?: string;
|
|
13
|
-
leadingIcon?: React.ReactNode;
|
|
14
|
-
trailingIcon?: React.ReactNode;
|
|
15
|
-
showPasswordToggle?: boolean;
|
|
16
|
-
maxLength?: number;
|
|
17
|
-
showCharacterCount?: boolean;
|
|
18
|
-
disabled?: boolean;
|
|
19
|
-
style?: ViewStyle | ViewStyle[];
|
|
20
|
-
containerStyle?: ViewStyle | ViewStyle[];
|
|
21
|
-
inputStyle?: TextStyle | TextStyle[];
|
|
22
|
-
labelStyle?: TextStyle | TextStyle[];
|
|
23
|
-
helperTextStyle?: TextStyle | TextStyle[];
|
|
24
|
-
testID?: string;
|
|
25
|
-
}
|
|
@@ -1,220 +0,0 @@
|
|
|
1
|
-
import { ViewStyle, TextStyle } from 'react-native';
|
|
2
|
-
import { useAppDesignTokens } from '../../../hooks/useAppDesignTokens';
|
|
3
|
-
import { PickerSize } from '../types';
|
|
4
|
-
import { IOS_HIG, getMinTouchTarget } from '../../../utils/platformConstants';
|
|
5
|
-
import type { DesignTokens } from '@umituz/react-native-theme';
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Picker container styles with iOS HIG compliance
|
|
9
|
-
*
|
|
10
|
-
* All picker sizes meet Apple's minimum touch target requirement of 44pt.
|
|
11
|
-
* @see https://developer.apple.com/design/human-interface-guidelines/layout
|
|
12
|
-
*/
|
|
13
|
-
export const getPickerContainerStyles = (tokens: DesignTokens) => ({
|
|
14
|
-
base: {
|
|
15
|
-
flexDirection: 'row' as const,
|
|
16
|
-
alignItems: 'center' as const,
|
|
17
|
-
justifyContent: 'space-between' as const,
|
|
18
|
-
borderWidth: tokens.borders.width.thin,
|
|
19
|
-
borderColor: tokens.colors.border,
|
|
20
|
-
backgroundColor: tokens.colors.surface,
|
|
21
|
-
},
|
|
22
|
-
size: {
|
|
23
|
-
// ✅ iOS HIG Compliant: All sizes >= 44pt minimum touch target
|
|
24
|
-
sm: {
|
|
25
|
-
height: IOS_HIG.MIN_TOUCH_TARGET, // 44pt - iOS minimum
|
|
26
|
-
paddingHorizontal: tokens.spacing.sm,
|
|
27
|
-
borderRadius: tokens.borders.radius.sm,
|
|
28
|
-
},
|
|
29
|
-
md: {
|
|
30
|
-
height: getMinTouchTarget('input'), // 48pt - Recommended
|
|
31
|
-
paddingHorizontal: tokens.spacing.md,
|
|
32
|
-
borderRadius: tokens.borders.radius.md,
|
|
33
|
-
},
|
|
34
|
-
lg: {
|
|
35
|
-
height: 56, // 56pt - Large touch target
|
|
36
|
-
paddingHorizontal: tokens.spacing.lg,
|
|
37
|
-
borderRadius: tokens.borders.radius.md,
|
|
38
|
-
},
|
|
39
|
-
},
|
|
40
|
-
state: {
|
|
41
|
-
error: {
|
|
42
|
-
borderColor: tokens.colors.error,
|
|
43
|
-
borderWidth: tokens.borders.width.medium,
|
|
44
|
-
},
|
|
45
|
-
disabled: {
|
|
46
|
-
backgroundColor: tokens.colors.surfaceDisabled,
|
|
47
|
-
opacity: 0.6,
|
|
48
|
-
},
|
|
49
|
-
},
|
|
50
|
-
});
|
|
51
|
-
|
|
52
|
-
export const getPickerLabelStyles = (tokens: DesignTokens): {
|
|
53
|
-
base: TextStyle;
|
|
54
|
-
size: {
|
|
55
|
-
sm: TextStyle;
|
|
56
|
-
md: TextStyle;
|
|
57
|
-
lg: TextStyle;
|
|
58
|
-
};
|
|
59
|
-
} => ({
|
|
60
|
-
base: {
|
|
61
|
-
marginBottom: tokens.spacing.xs,
|
|
62
|
-
color: tokens.colors.textPrimary,
|
|
63
|
-
fontWeight: '600' as const,
|
|
64
|
-
},
|
|
65
|
-
size: {
|
|
66
|
-
sm: tokens.typography.bodySmall,
|
|
67
|
-
md: tokens.typography.bodyMedium,
|
|
68
|
-
lg: tokens.typography.bodyLarge,
|
|
69
|
-
},
|
|
70
|
-
});
|
|
71
|
-
|
|
72
|
-
export const getPickerPlaceholderStyles = (tokens: DesignTokens): {
|
|
73
|
-
base: TextStyle;
|
|
74
|
-
size: {
|
|
75
|
-
sm: TextStyle;
|
|
76
|
-
md: TextStyle;
|
|
77
|
-
lg: TextStyle;
|
|
78
|
-
};
|
|
79
|
-
} => ({
|
|
80
|
-
base: {
|
|
81
|
-
color: tokens.colors.textSecondary,
|
|
82
|
-
},
|
|
83
|
-
size: {
|
|
84
|
-
sm: tokens.typography.bodySmall,
|
|
85
|
-
md: tokens.typography.bodyMedium,
|
|
86
|
-
lg: tokens.typography.bodyLarge,
|
|
87
|
-
},
|
|
88
|
-
});
|
|
89
|
-
|
|
90
|
-
export const getPickerValueStyles = (tokens: DesignTokens): {
|
|
91
|
-
base: TextStyle;
|
|
92
|
-
size: {
|
|
93
|
-
sm: TextStyle;
|
|
94
|
-
md: TextStyle;
|
|
95
|
-
lg: TextStyle;
|
|
96
|
-
};
|
|
97
|
-
} => ({
|
|
98
|
-
base: {
|
|
99
|
-
flex: 1,
|
|
100
|
-
color: tokens.colors.textPrimary,
|
|
101
|
-
},
|
|
102
|
-
size: {
|
|
103
|
-
sm: tokens.typography.bodySmall,
|
|
104
|
-
md: tokens.typography.bodyMedium,
|
|
105
|
-
lg: tokens.typography.bodyLarge,
|
|
106
|
-
},
|
|
107
|
-
});
|
|
108
|
-
|
|
109
|
-
export const getPickerErrorStyles = (tokens: DesignTokens): TextStyle => ({
|
|
110
|
-
marginTop: tokens.spacing.xs,
|
|
111
|
-
color: tokens.colors.error,
|
|
112
|
-
...tokens.typography.bodySmall,
|
|
113
|
-
});
|
|
114
|
-
|
|
115
|
-
export const getModalOverlayStyles = (tokens: DesignTokens): ViewStyle => ({
|
|
116
|
-
flex: 1,
|
|
117
|
-
backgroundColor: tokens.colors.overlayMedium,
|
|
118
|
-
justifyContent: 'flex-start',
|
|
119
|
-
});
|
|
120
|
-
|
|
121
|
-
export const getModalContainerStyles = (tokens: DesignTokens, maxHeight: number): ViewStyle => ({
|
|
122
|
-
backgroundColor: tokens.colors.backgroundPrimary,
|
|
123
|
-
borderTopLeftRadius: tokens.borders.radius.lg,
|
|
124
|
-
borderTopRightRadius: tokens.borders.radius.lg,
|
|
125
|
-
maxHeight: maxHeight,
|
|
126
|
-
paddingBottom: tokens.spacing.lg,
|
|
127
|
-
});
|
|
128
|
-
|
|
129
|
-
export const getModalHeaderStyles = (tokens: DesignTokens): ViewStyle => ({
|
|
130
|
-
flexDirection: 'row',
|
|
131
|
-
alignItems: 'center',
|
|
132
|
-
justifyContent: 'space-between',
|
|
133
|
-
paddingHorizontal: tokens.spacing.lg,
|
|
134
|
-
paddingVertical: tokens.spacing.md,
|
|
135
|
-
borderBottomWidth: tokens.borders.width.thin,
|
|
136
|
-
borderBottomColor: tokens.colors.border,
|
|
137
|
-
});
|
|
138
|
-
|
|
139
|
-
export const getModalTitleStyles = (tokens: DesignTokens): TextStyle => ({
|
|
140
|
-
...tokens.typography.titleLarge,
|
|
141
|
-
color: tokens.colors.textPrimary,
|
|
142
|
-
fontWeight: '600',
|
|
143
|
-
});
|
|
144
|
-
|
|
145
|
-
export const getSearchContainerStyles = (tokens: DesignTokens): ViewStyle => ({
|
|
146
|
-
flexDirection: 'row',
|
|
147
|
-
alignItems: 'center',
|
|
148
|
-
backgroundColor: tokens.colors.surfaceVariant,
|
|
149
|
-
paddingHorizontal: tokens.spacing.md,
|
|
150
|
-
paddingVertical: tokens.spacing.sm,
|
|
151
|
-
marginHorizontal: tokens.spacing.lg,
|
|
152
|
-
marginTop: tokens.spacing.md,
|
|
153
|
-
borderRadius: tokens.borders.radius.md,
|
|
154
|
-
});
|
|
155
|
-
|
|
156
|
-
export const getSearchInputStyles = (tokens: DesignTokens): TextStyle => ({
|
|
157
|
-
flex: 1,
|
|
158
|
-
marginLeft: tokens.spacing.sm,
|
|
159
|
-
...tokens.typography.bodyMedium,
|
|
160
|
-
color: tokens.colors.textPrimary,
|
|
161
|
-
});
|
|
162
|
-
|
|
163
|
-
export const getOptionContainerStyles = (tokens: DesignTokens, isSelected: boolean, isDisabled: boolean): ViewStyle => ({
|
|
164
|
-
flexDirection: 'row',
|
|
165
|
-
alignItems: 'center',
|
|
166
|
-
paddingHorizontal: tokens.spacing.lg,
|
|
167
|
-
paddingVertical: tokens.spacing.md,
|
|
168
|
-
backgroundColor: isSelected ? tokens.colors.primaryContainer : 'transparent',
|
|
169
|
-
opacity: isDisabled ? 0.5 : 1,
|
|
170
|
-
});
|
|
171
|
-
|
|
172
|
-
export const getOptionTextStyles = (tokens: DesignTokens, isSelected: boolean): TextStyle => ({
|
|
173
|
-
flex: 1,
|
|
174
|
-
marginLeft: tokens.spacing.sm,
|
|
175
|
-
...tokens.typography.bodyLarge,
|
|
176
|
-
color: isSelected ? tokens.colors.primary : tokens.colors.textPrimary,
|
|
177
|
-
fontWeight: isSelected ? '600' : '400',
|
|
178
|
-
});
|
|
179
|
-
|
|
180
|
-
export const getOptionDescriptionStyles = (tokens: DesignTokens): TextStyle => ({
|
|
181
|
-
...tokens.typography.bodySmall,
|
|
182
|
-
color: tokens.colors.textSecondary,
|
|
183
|
-
marginLeft: tokens.spacing.sm,
|
|
184
|
-
marginTop: tokens.spacing.xs,
|
|
185
|
-
});
|
|
186
|
-
|
|
187
|
-
export const getEmptyStateStyles = (tokens: DesignTokens): ViewStyle => ({
|
|
188
|
-
alignItems: 'center',
|
|
189
|
-
justifyContent: 'center',
|
|
190
|
-
paddingVertical: tokens.spacing.xxl,
|
|
191
|
-
});
|
|
192
|
-
|
|
193
|
-
export const getEmptyStateTextStyles = (tokens: DesignTokens): TextStyle => ({
|
|
194
|
-
...tokens.typography.bodyLarge,
|
|
195
|
-
color: tokens.colors.textSecondary,
|
|
196
|
-
textAlign: 'center',
|
|
197
|
-
marginTop: tokens.spacing.md,
|
|
198
|
-
});
|
|
199
|
-
|
|
200
|
-
export const getChipContainerStyles = (tokens: DesignTokens): ViewStyle => ({
|
|
201
|
-
flexDirection: 'row',
|
|
202
|
-
flexWrap: 'wrap',
|
|
203
|
-
gap: tokens.spacing.xs,
|
|
204
|
-
marginTop: tokens.spacing.xs,
|
|
205
|
-
});
|
|
206
|
-
|
|
207
|
-
export const getChipStyles = (tokens: DesignTokens): ViewStyle => ({
|
|
208
|
-
flexDirection: 'row',
|
|
209
|
-
alignItems: 'center',
|
|
210
|
-
backgroundColor: tokens.colors.primaryContainer,
|
|
211
|
-
paddingHorizontal: tokens.spacing.sm,
|
|
212
|
-
paddingVertical: tokens.spacing.xs,
|
|
213
|
-
borderRadius: tokens.borders.radius.sm,
|
|
214
|
-
});
|
|
215
|
-
|
|
216
|
-
export const getChipTextStyles = (tokens: DesignTokens): TextStyle => ({
|
|
217
|
-
...tokens.typography.bodySmall,
|
|
218
|
-
color: tokens.colors.primary,
|
|
219
|
-
marginRight: tokens.spacing.xs,
|
|
220
|
-
});
|