@umituz/react-native-design-system 1.3.1 → 1.3.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 +1 -1
- package/lib/domains/icons/domain/config/IconLibraryConfig.d.ts +91 -0
- package/lib/domains/icons/domain/config/IconLibraryConfig.d.ts.map +1 -0
- package/lib/domains/icons/domain/config/IconLibraryConfig.js +85 -0
- package/lib/domains/icons/domain/config/IconLibraryConfig.js.map +1 -0
- package/lib/domains/icons/domain/entities/Icon.d.ts +111 -0
- package/lib/domains/icons/domain/entities/Icon.d.ts.map +1 -0
- package/lib/domains/icons/domain/entities/Icon.js +87 -0
- package/lib/domains/icons/domain/entities/Icon.js.map +1 -0
- package/lib/domains/icons/domain/interfaces/IIconAdapter.d.ts +114 -0
- package/lib/domains/icons/domain/interfaces/IIconAdapter.d.ts.map +1 -0
- package/lib/domains/icons/domain/interfaces/IIconAdapter.js +17 -0
- package/lib/domains/icons/domain/interfaces/IIconAdapter.js.map +1 -0
- package/lib/domains/icons/index.d.ts +84 -0
- package/lib/domains/icons/index.d.ts.map +1 -0
- package/lib/domains/icons/index.js +89 -0
- package/lib/domains/icons/index.js.map +1 -0
- package/lib/domains/icons/infrastructure/adapters/LucideAdapter.d.ts +24 -0
- package/lib/domains/icons/infrastructure/adapters/LucideAdapter.d.ts.map +1 -0
- package/lib/domains/icons/infrastructure/adapters/LucideAdapter.js +85 -0
- package/lib/domains/icons/infrastructure/adapters/LucideAdapter.js.map +1 -0
- package/lib/domains/icons/infrastructure/registries/ExpoIconRegistry.d.ts +23 -0
- package/lib/domains/icons/infrastructure/registries/ExpoIconRegistry.d.ts.map +1 -0
- package/lib/domains/icons/infrastructure/registries/ExpoIconRegistry.js +178 -0
- package/lib/domains/icons/infrastructure/registries/ExpoIconRegistry.js.map +1 -0
- package/lib/domains/icons/presentation/components/Icon.d.ts +42 -0
- package/lib/domains/icons/presentation/components/Icon.d.ts.map +1 -0
- package/lib/domains/icons/presentation/components/Icon.js +86 -0
- package/lib/domains/icons/presentation/components/Icon.js.map +1 -0
- package/lib/domains/icons/presentation/hooks/useIconLibrary.d.ts +38 -0
- package/lib/domains/icons/presentation/hooks/useIconLibrary.d.ts.map +1 -0
- package/lib/domains/icons/presentation/hooks/useIconLibrary.js +114 -0
- package/lib/domains/icons/presentation/hooks/useIconLibrary.js.map +1 -0
- package/lib/index.d.ts +66 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +106 -0
- package/lib/index.js.map +1 -0
- package/lib/infrastructure/theme/globalThemeStore.d.ts +42 -0
- package/lib/infrastructure/theme/globalThemeStore.d.ts.map +1 -0
- package/lib/infrastructure/theme/globalThemeStore.js +38 -0
- package/lib/infrastructure/theme/globalThemeStore.js.map +1 -0
- package/lib/presentation/atoms/AtomicAvatar.d.ts +48 -0
- package/lib/presentation/atoms/AtomicAvatar.d.ts.map +1 -0
- package/lib/presentation/atoms/AtomicAvatar.js +85 -0
- package/lib/presentation/atoms/AtomicAvatar.js.map +1 -0
- package/lib/presentation/atoms/AtomicAvatarGroup.d.ts +56 -0
- package/lib/presentation/atoms/AtomicAvatarGroup.d.ts.map +1 -0
- package/lib/presentation/atoms/AtomicAvatarGroup.js +83 -0
- package/lib/presentation/atoms/AtomicAvatarGroup.js.map +1 -0
- package/lib/presentation/atoms/AtomicBadge.d.ts +42 -0
- package/lib/presentation/atoms/AtomicBadge.d.ts.map +1 -0
- package/lib/presentation/atoms/AtomicBadge.js +168 -0
- package/lib/presentation/atoms/AtomicBadge.js.map +1 -0
- package/lib/presentation/atoms/AtomicButton.d.ts +22 -0
- package/lib/presentation/atoms/AtomicButton.d.ts.map +1 -0
- package/lib/presentation/atoms/AtomicButton.js +193 -0
- package/lib/presentation/atoms/AtomicButton.js.map +1 -0
- package/lib/presentation/atoms/AtomicCard.d.ts +15 -0
- package/lib/presentation/atoms/AtomicCard.d.ts.map +1 -0
- package/lib/presentation/atoms/AtomicCard.js +89 -0
- package/lib/presentation/atoms/AtomicCard.js.map +1 -0
- package/lib/presentation/atoms/AtomicChip.d.ts +53 -0
- package/lib/presentation/atoms/AtomicChip.d.ts.map +1 -0
- package/lib/presentation/atoms/AtomicChip.js +131 -0
- package/lib/presentation/atoms/AtomicChip.js.map +1 -0
- package/lib/presentation/atoms/AtomicDatePicker.d.ts +75 -0
- package/lib/presentation/atoms/AtomicDatePicker.d.ts.map +1 -0
- package/lib/presentation/atoms/AtomicDatePicker.js +246 -0
- package/lib/presentation/atoms/AtomicDatePicker.js.map +1 -0
- package/lib/presentation/atoms/AtomicDivider.d.ts +45 -0
- package/lib/presentation/atoms/AtomicDivider.d.ts.map +1 -0
- package/lib/presentation/atoms/AtomicDivider.js +58 -0
- package/lib/presentation/atoms/AtomicDivider.js.map +1 -0
- package/lib/presentation/atoms/AtomicFab.d.ts +38 -0
- package/lib/presentation/atoms/AtomicFab.d.ts.map +1 -0
- package/lib/presentation/atoms/AtomicFab.js +69 -0
- package/lib/presentation/atoms/AtomicFab.js.map +1 -0
- package/lib/presentation/atoms/AtomicFilter.d.ts +37 -0
- package/lib/presentation/atoms/AtomicFilter.d.ts.map +1 -0
- package/lib/presentation/atoms/AtomicFilter.js +104 -0
- package/lib/presentation/atoms/AtomicFilter.js.map +1 -0
- package/lib/presentation/atoms/AtomicFormError.d.ts +30 -0
- package/lib/presentation/atoms/AtomicFormError.d.ts.map +1 -0
- package/lib/presentation/atoms/AtomicFormError.js +64 -0
- package/lib/presentation/atoms/AtomicFormError.js.map +1 -0
- package/lib/presentation/atoms/AtomicIcon.d.ts +36 -0
- package/lib/presentation/atoms/AtomicIcon.d.ts.map +1 -0
- package/lib/presentation/atoms/AtomicIcon.js +30 -0
- package/lib/presentation/atoms/AtomicIcon.js.map +1 -0
- package/lib/presentation/atoms/AtomicImage.d.ts +40 -0
- package/lib/presentation/atoms/AtomicImage.d.ts.map +1 -0
- package/lib/presentation/atoms/AtomicImage.js +92 -0
- package/lib/presentation/atoms/AtomicImage.js.map +1 -0
- package/lib/presentation/atoms/AtomicInput.d.ts +71 -0
- package/lib/presentation/atoms/AtomicInput.d.ts.map +1 -0
- package/lib/presentation/atoms/AtomicInput.js +196 -0
- package/lib/presentation/atoms/AtomicInput.js.map +1 -0
- package/lib/presentation/atoms/AtomicNumberInput.d.ts +69 -0
- package/lib/presentation/atoms/AtomicNumberInput.d.ts.map +1 -0
- package/lib/presentation/atoms/AtomicNumberInput.js +125 -0
- package/lib/presentation/atoms/AtomicNumberInput.js.map +1 -0
- package/lib/presentation/atoms/AtomicPicker.d.ts +52 -0
- package/lib/presentation/atoms/AtomicPicker.d.ts.map +1 -0
- package/lib/presentation/atoms/AtomicPicker.js +299 -0
- package/lib/presentation/atoms/AtomicPicker.js.map +1 -0
- package/lib/presentation/atoms/AtomicProgress.d.ts +47 -0
- package/lib/presentation/atoms/AtomicProgress.d.ts.map +1 -0
- package/lib/presentation/atoms/AtomicProgress.js +81 -0
- package/lib/presentation/atoms/AtomicProgress.js.map +1 -0
- package/lib/presentation/atoms/AtomicSearchBar.d.ts +19 -0
- package/lib/presentation/atoms/AtomicSearchBar.d.ts.map +1 -0
- package/lib/presentation/atoms/AtomicSearchBar.js +46 -0
- package/lib/presentation/atoms/AtomicSearchBar.js.map +1 -0
- package/lib/presentation/atoms/AtomicSkeleton.d.ts +43 -0
- package/lib/presentation/atoms/AtomicSkeleton.d.ts.map +1 -0
- package/lib/presentation/atoms/AtomicSkeleton.js +84 -0
- package/lib/presentation/atoms/AtomicSkeleton.js.map +1 -0
- package/lib/presentation/atoms/AtomicSort.d.ts +72 -0
- package/lib/presentation/atoms/AtomicSort.d.ts.map +1 -0
- package/lib/presentation/atoms/AtomicSort.js +77 -0
- package/lib/presentation/atoms/AtomicSort.js.map +1 -0
- package/lib/presentation/atoms/AtomicSwitch.d.ts +43 -0
- package/lib/presentation/atoms/AtomicSwitch.d.ts.map +1 -0
- package/lib/presentation/atoms/AtomicSwitch.js +104 -0
- package/lib/presentation/atoms/AtomicSwitch.js.map +1 -0
- package/lib/presentation/atoms/AtomicText.d.ts +14 -0
- package/lib/presentation/atoms/AtomicText.d.ts.map +1 -0
- package/lib/presentation/atoms/AtomicText.js +36 -0
- package/lib/presentation/atoms/AtomicText.js.map +1 -0
- package/lib/presentation/atoms/AtomicTextArea.d.ts +85 -0
- package/lib/presentation/atoms/AtomicTextArea.d.ts.map +1 -0
- package/lib/presentation/atoms/AtomicTextArea.js +196 -0
- package/lib/presentation/atoms/AtomicTextArea.js.map +1 -0
- package/lib/presentation/atoms/AtomicTouchable.d.ts +87 -0
- package/lib/presentation/atoms/AtomicTouchable.d.ts.map +1 -0
- package/lib/presentation/atoms/AtomicTouchable.js +151 -0
- package/lib/presentation/atoms/AtomicTouchable.js.map +1 -0
- package/lib/presentation/atoms/fab/styles/fabStyles.d.ts +23 -0
- package/lib/presentation/atoms/fab/styles/fabStyles.d.ts.map +1 -0
- package/lib/presentation/atoms/fab/styles/fabStyles.js +63 -0
- package/lib/presentation/atoms/fab/styles/fabStyles.js.map +1 -0
- package/lib/presentation/atoms/fab/types/index.d.ts +76 -0
- package/lib/presentation/atoms/fab/types/index.d.ts.map +1 -0
- package/lib/presentation/atoms/fab/types/index.js +2 -0
- package/lib/presentation/atoms/fab/types/index.js.map +1 -0
- package/lib/presentation/atoms/filter/styles/filterStyles.d.ts +15 -0
- package/lib/presentation/atoms/filter/styles/filterStyles.d.ts.map +1 -0
- package/lib/presentation/atoms/filter/styles/filterStyles.js +29 -0
- package/lib/presentation/atoms/filter/styles/filterStyles.js.map +1 -0
- package/lib/presentation/atoms/filter/types/index.d.ts +76 -0
- package/lib/presentation/atoms/filter/types/index.d.ts.map +1 -0
- package/lib/presentation/atoms/filter/types/index.js +2 -0
- package/lib/presentation/atoms/filter/types/index.js.map +1 -0
- package/lib/presentation/atoms/index.d.ts +276 -0
- package/lib/presentation/atoms/index.d.ts.map +1 -0
- package/lib/presentation/atoms/index.js +149 -0
- package/lib/presentation/atoms/index.js.map +1 -0
- package/lib/presentation/atoms/input/hooks/useInputState.d.ts +7 -0
- package/lib/presentation/atoms/input/hooks/useInputState.d.ts.map +1 -0
- package/lib/presentation/atoms/input/hooks/useInputState.js +13 -0
- package/lib/presentation/atoms/input/hooks/useInputState.js.map +1 -0
- package/lib/presentation/atoms/input/styles/inputStyles.d.ts +13 -0
- package/lib/presentation/atoms/input/styles/inputStyles.d.ts.map +1 -0
- package/lib/presentation/atoms/input/styles/inputStyles.js +59 -0
- package/lib/presentation/atoms/input/styles/inputStyles.js.map +1 -0
- package/lib/presentation/atoms/input/types/index.d.ts +24 -0
- package/lib/presentation/atoms/input/types/index.d.ts.map +1 -0
- package/lib/presentation/atoms/input/types/index.js +2 -0
- package/lib/presentation/atoms/input/types/index.js.map +1 -0
- package/lib/presentation/atoms/picker/styles/pickerStyles.d.ts +96 -0
- package/lib/presentation/atoms/picker/styles/pickerStyles.d.ts.map +1 -0
- package/lib/presentation/atoms/picker/styles/pickerStyles.js +177 -0
- package/lib/presentation/atoms/picker/styles/pickerStyles.js.map +1 -0
- package/lib/presentation/atoms/picker/types/index.d.ts +38 -0
- package/lib/presentation/atoms/picker/types/index.d.ts.map +1 -0
- package/lib/presentation/atoms/picker/types/index.js +2 -0
- package/lib/presentation/atoms/picker/types/index.js.map +1 -0
- package/lib/presentation/atoms/touchable/styles/touchableStyles.d.ts +36 -0
- package/lib/presentation/atoms/touchable/styles/touchableStyles.d.ts.map +1 -0
- package/lib/presentation/atoms/touchable/styles/touchableStyles.js +62 -0
- package/lib/presentation/atoms/touchable/styles/touchableStyles.js.map +1 -0
- package/lib/presentation/atoms/touchable/types/index.d.ts +140 -0
- package/lib/presentation/atoms/touchable/types/index.d.ts.map +1 -0
- package/lib/presentation/atoms/touchable/types/index.js +2 -0
- package/lib/presentation/atoms/touchable/types/index.js.map +1 -0
- package/lib/presentation/hooks/useAppDesignTokens.d.ts +34 -0
- package/lib/presentation/hooks/useAppDesignTokens.d.ts.map +1 -0
- package/lib/presentation/hooks/useAppDesignTokens.js +39 -0
- package/lib/presentation/hooks/useAppDesignTokens.js.map +1 -0
- package/lib/presentation/hooks/useResponsive.d.ts +80 -0
- package/lib/presentation/hooks/useResponsive.d.ts.map +1 -0
- package/lib/presentation/hooks/useResponsive.js +82 -0
- package/lib/presentation/hooks/useResponsive.js.map +1 -0
- package/lib/presentation/loading/index.d.ts +23 -0
- package/lib/presentation/loading/index.d.ts.map +1 -0
- package/lib/presentation/loading/index.js +26 -0
- package/lib/presentation/loading/index.js.map +1 -0
- package/lib/presentation/loading/presentation/components/LoadingSpinner.d.ts +28 -0
- package/lib/presentation/loading/presentation/components/LoadingSpinner.d.ts.map +1 -0
- package/lib/presentation/loading/presentation/components/LoadingSpinner.js +77 -0
- package/lib/presentation/loading/presentation/components/LoadingSpinner.js.map +1 -0
- package/lib/presentation/loading/presentation/components/LoadingState.d.ts +39 -0
- package/lib/presentation/loading/presentation/components/LoadingState.d.ts.map +1 -0
- package/lib/presentation/loading/presentation/components/LoadingState.js +123 -0
- package/lib/presentation/loading/presentation/components/LoadingState.js.map +1 -0
- package/lib/presentation/loading/presentation/hooks/useLoading.d.ts +50 -0
- package/lib/presentation/loading/presentation/hooks/useLoading.d.ts.map +1 -0
- package/lib/presentation/loading/presentation/hooks/useLoading.js +49 -0
- package/lib/presentation/loading/presentation/hooks/useLoading.js.map +1 -0
- package/lib/presentation/molecules/AtomicConfirmationModal.d.ts +73 -0
- package/lib/presentation/molecules/AtomicConfirmationModal.d.ts.map +1 -0
- package/lib/presentation/molecules/AtomicConfirmationModal.js +172 -0
- package/lib/presentation/molecules/AtomicConfirmationModal.js.map +1 -0
- package/lib/presentation/molecules/EmptyState.d.ts +41 -0
- package/lib/presentation/molecules/EmptyState.d.ts.map +1 -0
- package/lib/presentation/molecules/EmptyState.js +68 -0
- package/lib/presentation/molecules/EmptyState.js.map +1 -0
- package/lib/presentation/molecules/FormField.d.ts +22 -0
- package/lib/presentation/molecules/FormField.d.ts.map +1 -0
- package/lib/presentation/molecules/FormField.js +76 -0
- package/lib/presentation/molecules/FormField.js.map +1 -0
- package/lib/presentation/molecules/GridContainer.d.ts +40 -0
- package/lib/presentation/molecules/GridContainer.d.ts.map +1 -0
- package/lib/presentation/molecules/GridContainer.js +77 -0
- package/lib/presentation/molecules/GridContainer.js.map +1 -0
- package/lib/presentation/molecules/IconContainer.d.ts +29 -0
- package/lib/presentation/molecules/IconContainer.d.ts.map +1 -0
- package/lib/presentation/molecules/IconContainer.js +60 -0
- package/lib/presentation/molecules/IconContainer.js.map +1 -0
- package/lib/presentation/molecules/LanguageSwitcher.d.ts +10 -0
- package/lib/presentation/molecules/LanguageSwitcher.d.ts.map +1 -0
- package/lib/presentation/molecules/LanguageSwitcher.js +24 -0
- package/lib/presentation/molecules/LanguageSwitcher.js.map +1 -0
- package/lib/presentation/molecules/ListItem.d.ts +5 -0
- package/lib/presentation/molecules/ListItem.d.ts.map +1 -0
- package/lib/presentation/molecules/ListItem.js +24 -0
- package/lib/presentation/molecules/ListItem.js.map +1 -0
- package/lib/presentation/molecules/ScreenHeader.d.ts +55 -0
- package/lib/presentation/molecules/ScreenHeader.d.ts.map +1 -0
- package/lib/presentation/molecules/ScreenHeader.js +94 -0
- package/lib/presentation/molecules/ScreenHeader.js.map +1 -0
- package/lib/presentation/molecules/SearchBar.d.ts +18 -0
- package/lib/presentation/molecules/SearchBar.d.ts.map +1 -0
- package/lib/presentation/molecules/SearchBar.js +47 -0
- package/lib/presentation/molecules/SearchBar.js.map +1 -0
- package/lib/presentation/molecules/SectionCard.d.ts +25 -0
- package/lib/presentation/molecules/SectionCard.d.ts.map +1 -0
- package/lib/presentation/molecules/SectionCard.js +47 -0
- package/lib/presentation/molecules/SectionCard.js.map +1 -0
- package/lib/presentation/molecules/SectionContainer.d.ts +33 -0
- package/lib/presentation/molecules/SectionContainer.d.ts.map +1 -0
- package/lib/presentation/molecules/SectionContainer.js +64 -0
- package/lib/presentation/molecules/SectionContainer.js.map +1 -0
- package/lib/presentation/molecules/SectionHeader.d.ts +37 -0
- package/lib/presentation/molecules/SectionHeader.d.ts.map +1 -0
- package/lib/presentation/molecules/SectionHeader.js +73 -0
- package/lib/presentation/molecules/SectionHeader.js.map +1 -0
- package/lib/presentation/molecules/confirmation-modal/styles/confirmationModalStyles.d.ts +50 -0
- package/lib/presentation/molecules/confirmation-modal/styles/confirmationModalStyles.d.ts.map +1 -0
- package/lib/presentation/molecules/confirmation-modal/styles/confirmationModalStyles.js +115 -0
- package/lib/presentation/molecules/confirmation-modal/styles/confirmationModalStyles.js.map +1 -0
- package/lib/presentation/molecules/confirmation-modal/types/index.d.ts +88 -0
- package/lib/presentation/molecules/confirmation-modal/types/index.d.ts.map +1 -0
- package/lib/presentation/molecules/confirmation-modal/types/index.js +7 -0
- package/lib/presentation/molecules/confirmation-modal/types/index.js.map +1 -0
- package/lib/presentation/molecules/index.d.ts +28 -0
- package/lib/presentation/molecules/index.d.ts.map +1 -0
- package/lib/presentation/molecules/index.js +18 -0
- package/lib/presentation/molecules/index.js.map +1 -0
- package/lib/presentation/molecules/languageswitcher/config/languageSwitcherConfig.d.ts +11 -0
- package/lib/presentation/molecules/languageswitcher/config/languageSwitcherConfig.d.ts.map +1 -0
- package/lib/presentation/molecules/languageswitcher/config/languageSwitcherConfig.js +6 -0
- package/lib/presentation/molecules/languageswitcher/config/languageSwitcherConfig.js.map +1 -0
- package/lib/presentation/molecules/languageswitcher/hooks/useLanguageNavigation.d.ts +5 -0
- package/lib/presentation/molecules/languageswitcher/hooks/useLanguageNavigation.d.ts.map +1 -0
- package/lib/presentation/molecules/languageswitcher/hooks/useLanguageNavigation.js +12 -0
- package/lib/presentation/molecules/languageswitcher/hooks/useLanguageNavigation.js.map +1 -0
- package/lib/presentation/molecules/listitem/styles/listItemStyles.d.ts +12 -0
- package/lib/presentation/molecules/listitem/styles/listItemStyles.d.ts.map +1 -0
- package/lib/presentation/molecules/listitem/styles/listItemStyles.js +15 -0
- package/lib/presentation/molecules/listitem/styles/listItemStyles.js.map +1 -0
- package/lib/presentation/molecules/listitem/types/index.d.ts +17 -0
- package/lib/presentation/molecules/listitem/types/index.d.ts.map +1 -0
- package/lib/presentation/molecules/listitem/types/index.js +2 -0
- package/lib/presentation/molecules/listitem/types/index.js.map +1 -0
- package/lib/presentation/organisms/AppHeader.d.ts +30 -0
- package/lib/presentation/organisms/AppHeader.d.ts.map +1 -0
- package/lib/presentation/organisms/AppHeader.js +78 -0
- package/lib/presentation/organisms/AppHeader.js.map +1 -0
- package/lib/presentation/organisms/FormContainer.d.ts +76 -0
- package/lib/presentation/organisms/FormContainer.d.ts.map +1 -0
- package/lib/presentation/organisms/FormContainer.js +127 -0
- package/lib/presentation/organisms/FormContainer.js.map +1 -0
- package/lib/presentation/organisms/ScreenLayout.d.ts +99 -0
- package/lib/presentation/organisms/ScreenLayout.d.ts.map +1 -0
- package/lib/presentation/organisms/ScreenLayout.js +78 -0
- package/lib/presentation/organisms/ScreenLayout.js.map +1 -0
- package/lib/presentation/organisms/index.d.ts +16 -0
- package/lib/presentation/organisms/index.d.ts.map +1 -0
- package/lib/presentation/organisms/index.js +14 -0
- package/lib/presentation/organisms/index.js.map +1 -0
- package/lib/presentation/tokens/AppDesignTokens.d.ts +14 -0
- package/lib/presentation/tokens/AppDesignTokens.d.ts.map +1 -0
- package/lib/presentation/tokens/AppDesignTokens.js +23 -0
- package/lib/presentation/tokens/AppDesignTokens.js.map +1 -0
- package/lib/presentation/tokens/commonStyles.d.ts +122 -0
- package/lib/presentation/tokens/commonStyles.d.ts.map +1 -0
- package/lib/presentation/tokens/commonStyles.js +220 -0
- package/lib/presentation/tokens/commonStyles.js.map +1 -0
- package/lib/presentation/tokens/core/BaseTokens.d.ts +337 -0
- package/lib/presentation/tokens/core/BaseTokens.d.ts.map +1 -0
- package/lib/presentation/tokens/core/BaseTokens.js +322 -0
- package/lib/presentation/tokens/core/BaseTokens.js.map +1 -0
- package/lib/presentation/tokens/core/ColorPalette.d.ts +216 -0
- package/lib/presentation/tokens/core/ColorPalette.d.ts.map +1 -0
- package/lib/presentation/tokens/core/ColorPalette.js +330 -0
- package/lib/presentation/tokens/core/ColorPalette.js.map +1 -0
- package/lib/presentation/tokens/core/TokenFactory.d.ts +229 -0
- package/lib/presentation/tokens/core/TokenFactory.d.ts.map +1 -0
- package/lib/presentation/tokens/core/TokenFactory.js +87 -0
- package/lib/presentation/tokens/core/TokenFactory.js.map +1 -0
- package/lib/presentation/utils/platformConstants.d.ts +100 -0
- package/lib/presentation/utils/platformConstants.d.ts.map +1 -0
- package/lib/presentation/utils/platformConstants.js +114 -0
- package/lib/presentation/utils/platformConstants.js.map +1 -0
- package/lib/presentation/utils/responsive.d.ts +218 -0
- package/lib/presentation/utils/responsive.d.ts.map +1 -0
- package/lib/presentation/utils/responsive.js +452 -0
- package/lib/presentation/utils/responsive.js.map +1 -0
- package/lib/presentation/utils/variants/compound.d.ts +10 -0
- package/lib/presentation/utils/variants/compound.d.ts.map +1 -0
- package/lib/presentation/utils/variants/compound.js +16 -0
- package/lib/presentation/utils/variants/compound.js.map +1 -0
- package/lib/presentation/utils/variants/core.d.ts +15 -0
- package/lib/presentation/utils/variants/core.d.ts.map +1 -0
- package/lib/presentation/utils/variants/core.js +23 -0
- package/lib/presentation/utils/variants/core.js.map +1 -0
- package/lib/presentation/utils/variants/helpers.d.ts +5 -0
- package/lib/presentation/utils/variants/helpers.d.ts.map +1 -0
- package/lib/presentation/utils/variants/helpers.js +10 -0
- package/lib/presentation/utils/variants/helpers.js.map +1 -0
- package/lib/presentation/utils/variants.d.ts +4 -0
- package/lib/presentation/utils/variants.d.ts.map +1 -0
- package/lib/presentation/utils/variants.js +4 -0
- package/lib/presentation/utils/variants.js.map +1 -0
- package/package.json +40 -4
- package/src/domains/icons/domain/interfaces/IIconAdapter.ts +5 -3
- package/src/domains/icons/infrastructure/adapters/LucideAdapter.ts +1 -1
- package/src/presentation/molecules/AtomicConfirmationModal.tsx +1 -1
- package/src/presentation/molecules/languageswitcher/hooks/useLanguageNavigation.ts +1 -2
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Filter container styles
|
|
3
|
+
* Horizontal scrollable filter chip list
|
|
4
|
+
*/
|
|
5
|
+
export const getFilterContainerStyle = () => ({
|
|
6
|
+
flexDirection: 'row',
|
|
7
|
+
paddingHorizontal: 16,
|
|
8
|
+
paddingVertical: 12,
|
|
9
|
+
gap: 8, // Space between chips
|
|
10
|
+
});
|
|
11
|
+
/**
|
|
12
|
+
* Clear all button container styles
|
|
13
|
+
*/
|
|
14
|
+
export const getClearAllContainerStyle = () => ({
|
|
15
|
+
marginLeft: 8,
|
|
16
|
+
paddingHorizontal: 12,
|
|
17
|
+
paddingVertical: 6,
|
|
18
|
+
borderRadius: 16,
|
|
19
|
+
justifyContent: 'center',
|
|
20
|
+
alignItems: 'center',
|
|
21
|
+
});
|
|
22
|
+
/**
|
|
23
|
+
* ScrollView content container style
|
|
24
|
+
*/
|
|
25
|
+
export const getScrollContentContainerStyle = () => ({
|
|
26
|
+
alignItems: 'center',
|
|
27
|
+
gap: 8,
|
|
28
|
+
});
|
|
29
|
+
//# sourceMappingURL=filterStyles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filterStyles.js","sourceRoot":"","sources":["../../../../../src/presentation/atoms/filter/styles/filterStyles.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,GAAc,EAAE,CAAC,CAAC;IACvD,aAAa,EAAE,KAAK;IACpB,iBAAiB,EAAE,EAAE;IACrB,eAAe,EAAE,EAAE;IACnB,GAAG,EAAE,CAAC,EAAE,sBAAsB;CAC/B,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,GAAc,EAAE,CAAC,CAAC;IACzD,UAAU,EAAE,CAAC;IACb,iBAAiB,EAAE,EAAE;IACrB,eAAe,EAAE,CAAC;IAClB,YAAY,EAAE,EAAE;IAChB,cAAc,EAAE,QAAQ;IACxB,UAAU,EAAE,QAAQ;CACrB,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAAG,GAAc,EAAE,CAAC,CAAC;IAC9D,UAAU,EAAE,QAAQ;IACpB,GAAG,EAAE,CAAC;CACP,CAAC,CAAC"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { StyleProp, ViewStyle } from 'react-native';
|
|
2
|
+
/**
|
|
3
|
+
* Filter option interface
|
|
4
|
+
* Represents a single filterable option
|
|
5
|
+
*/
|
|
6
|
+
export interface FilterOption {
|
|
7
|
+
/**
|
|
8
|
+
* Unique identifier for the filter option
|
|
9
|
+
*/
|
|
10
|
+
id: string;
|
|
11
|
+
/**
|
|
12
|
+
* Display label for the filter
|
|
13
|
+
*/
|
|
14
|
+
label: string;
|
|
15
|
+
/**
|
|
16
|
+
* Optional value associated with the filter
|
|
17
|
+
* Can be used for backend filtering
|
|
18
|
+
*/
|
|
19
|
+
value?: unknown;
|
|
20
|
+
/**
|
|
21
|
+
* Optional icon name to display
|
|
22
|
+
*/
|
|
23
|
+
icon?: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* AtomicFilter component props
|
|
27
|
+
*/
|
|
28
|
+
export interface AtomicFilterProps {
|
|
29
|
+
/**
|
|
30
|
+
* Array of filter options to display
|
|
31
|
+
*/
|
|
32
|
+
options: FilterOption[];
|
|
33
|
+
/**
|
|
34
|
+
* Array of currently selected filter IDs
|
|
35
|
+
*/
|
|
36
|
+
selectedIds: string[];
|
|
37
|
+
/**
|
|
38
|
+
* Callback when selection changes
|
|
39
|
+
* @param selectedIds - New array of selected IDs
|
|
40
|
+
*/
|
|
41
|
+
onSelectionChange: (selectedIds: string[]) => void;
|
|
42
|
+
/**
|
|
43
|
+
* Enable multi-select mode
|
|
44
|
+
* @default true
|
|
45
|
+
*/
|
|
46
|
+
multiSelect?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Show "Clear All" button when filters are active
|
|
49
|
+
* @default true
|
|
50
|
+
*/
|
|
51
|
+
showClearAll?: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Chip variant style
|
|
54
|
+
* @default 'outlined'
|
|
55
|
+
*/
|
|
56
|
+
variant?: 'filled' | 'outlined' | 'soft';
|
|
57
|
+
/**
|
|
58
|
+
* Chip color theme
|
|
59
|
+
* @default 'primary'
|
|
60
|
+
*/
|
|
61
|
+
color?: 'primary' | 'secondary' | 'success' | 'warning' | 'error' | 'info';
|
|
62
|
+
/**
|
|
63
|
+
* Chip size
|
|
64
|
+
* @default 'md'
|
|
65
|
+
*/
|
|
66
|
+
size?: 'sm' | 'md' | 'lg';
|
|
67
|
+
/**
|
|
68
|
+
* Custom style for the container
|
|
69
|
+
*/
|
|
70
|
+
style?: StyleProp<ViewStyle>;
|
|
71
|
+
/**
|
|
72
|
+
* Test ID for testing
|
|
73
|
+
*/
|
|
74
|
+
testID?: string;
|
|
75
|
+
}
|
|
76
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/atoms/filter/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEpD;;;GAGG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAEhB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,OAAO,EAAE,YAAY,EAAE,CAAC;IAExB;;OAEG;IACH,WAAW,EAAE,MAAM,EAAE,CAAC;IAEtB;;;OAGG;IACH,iBAAiB,EAAE,CAAC,WAAW,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IAEnD;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;;OAGG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB;;;OAGG;IACH,OAAO,CAAC,EAAE,QAAQ,GAAG,UAAU,GAAG,MAAM,CAAC;IAEzC;;;OAGG;IACH,KAAK,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,CAAC;IAE3E;;;OAGG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAE1B;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAE7B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/presentation/atoms/filter/types/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,276 @@
|
|
|
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
|
+
import { AtomicButton, type AtomicButtonProps } from './AtomicButton';
|
|
19
|
+
import { AtomicText, type AtomicTextProps } from './AtomicText';
|
|
20
|
+
import { AtomicCard, type AtomicCardProps, type AtomicCardVariant, type AtomicCardPadding } from './AtomicCard';
|
|
21
|
+
import { AtomicInput, type AtomicInputProps, type AtomicInputVariant, type AtomicInputState, type AtomicInputSize } from './AtomicInput';
|
|
22
|
+
import { AtomicIcon, type AtomicIconProps, type AtomicIconSize, type AtomicIconColor } from './AtomicIcon';
|
|
23
|
+
import { AtomicImage, type AtomicImageProps } from './AtomicImage';
|
|
24
|
+
import { AtomicSwitch, type AtomicSwitchProps } from './AtomicSwitch';
|
|
25
|
+
import { AtomicBadge, type AtomicBadgeProps } from './AtomicBadge';
|
|
26
|
+
import { AtomicFormError, type AtomicFormErrorProps } from './AtomicFormError';
|
|
27
|
+
import { AtomicAvatar, type AtomicAvatarProps } from './AtomicAvatar';
|
|
28
|
+
import { AtomicChip, type AtomicChipProps } from './AtomicChip';
|
|
29
|
+
import { AtomicDivider, type AtomicDividerProps } from './AtomicDivider';
|
|
30
|
+
import { AtomicSkeleton, type AtomicSkeletonProps } from './AtomicSkeleton';
|
|
31
|
+
import { AtomicProgress, type AtomicProgressProps } from './AtomicProgress';
|
|
32
|
+
import { AtomicAvatarGroup, type AtomicAvatarGroupProps, type AvatarData } from './AtomicAvatarGroup';
|
|
33
|
+
import { AtomicFab, type AtomicFabProps, type FabSize, type FabVariant, getFabVariants } from './AtomicFab';
|
|
34
|
+
import { AtomicFilter, type AtomicFilterProps, type FilterOption, getFilterContainerStyle, getClearAllContainerStyle, getScrollContentContainerStyle } from './AtomicFilter';
|
|
35
|
+
import { AtomicTouchable, type AtomicTouchableProps, type TouchableFeedback, type FeedbackStrength, type HitSlop, TouchablePresets, getOpacityValue, normalizeHitSlop } from './AtomicTouchable';
|
|
36
|
+
export { AtomicButton, type AtomicButtonProps, };
|
|
37
|
+
export { AtomicText, type AtomicTextProps, };
|
|
38
|
+
export { AtomicCard, type AtomicCardProps, type AtomicCardVariant, type AtomicCardPadding, };
|
|
39
|
+
export { AtomicInput, type AtomicInputProps, type AtomicInputVariant, type AtomicInputState, type AtomicInputSize, };
|
|
40
|
+
export { AtomicIcon, type AtomicIconProps, type AtomicIconSize, type AtomicIconColor, };
|
|
41
|
+
export { AtomicImage, type AtomicImageProps, };
|
|
42
|
+
export { AtomicSwitch, type AtomicSwitchProps, };
|
|
43
|
+
export { AtomicBadge, type AtomicBadgeProps, };
|
|
44
|
+
export { AtomicFormError, type AtomicFormErrorProps, };
|
|
45
|
+
export { AtomicAvatar, type AtomicAvatarProps, };
|
|
46
|
+
export { AtomicChip, type AtomicChipProps, };
|
|
47
|
+
export { AtomicDivider, type AtomicDividerProps, };
|
|
48
|
+
export { AtomicSkeleton, type AtomicSkeletonProps, };
|
|
49
|
+
export { AtomicProgress, type AtomicProgressProps, };
|
|
50
|
+
export { AtomicAvatarGroup, type AtomicAvatarGroupProps, type AvatarData, };
|
|
51
|
+
export { AtomicFab, type AtomicFabProps, type FabSize, type FabVariant, getFabVariants, };
|
|
52
|
+
export { AtomicFilter, type AtomicFilterProps, type FilterOption, getFilterContainerStyle, getClearAllContainerStyle, getScrollContentContainerStyle, };
|
|
53
|
+
export { AtomicTouchable, type AtomicTouchableProps, type TouchableFeedback, type FeedbackStrength, type HitSlop, TouchablePresets, getOpacityValue, normalizeHitSlop, };
|
|
54
|
+
/**
|
|
55
|
+
* Convenience re-exports for common patterns
|
|
56
|
+
*/
|
|
57
|
+
export type AtomicComponentProps = AtomicButtonProps | AtomicTextProps | AtomicCardProps | AtomicInputProps | AtomicIconProps | AtomicImageProps | AtomicSwitchProps | AtomicBadgeProps | AtomicFormErrorProps | AtomicAvatarProps | AtomicChipProps | AtomicDividerProps | AtomicSkeletonProps | AtomicProgressProps | AtomicAvatarGroupProps | AtomicFabProps | AtomicFilterProps | AtomicTouchableProps;
|
|
58
|
+
export type AtomicVariants = {
|
|
59
|
+
card: AtomicCardVariant;
|
|
60
|
+
input: AtomicInputVariant;
|
|
61
|
+
icon: AtomicIconSize;
|
|
62
|
+
};
|
|
63
|
+
export type AtomicColors = AtomicIconColor;
|
|
64
|
+
/**
|
|
65
|
+
* Atomic component utilities
|
|
66
|
+
*/
|
|
67
|
+
export declare const AtomicUtils: {
|
|
68
|
+
/**
|
|
69
|
+
* Get recommended component combinations for common UI patterns
|
|
70
|
+
*/
|
|
71
|
+
getRecommendedCombinations: () => {
|
|
72
|
+
cardWithHeader: {
|
|
73
|
+
card: {
|
|
74
|
+
variant: "elevated";
|
|
75
|
+
padding: "lg";
|
|
76
|
+
};
|
|
77
|
+
title: {
|
|
78
|
+
variant: "titleLarge";
|
|
79
|
+
color: "primary";
|
|
80
|
+
};
|
|
81
|
+
description: {
|
|
82
|
+
variant: "bodyMedium";
|
|
83
|
+
color: "secondary";
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
formField: {
|
|
87
|
+
input: {
|
|
88
|
+
variant: "outlined";
|
|
89
|
+
size: "md";
|
|
90
|
+
};
|
|
91
|
+
label: {
|
|
92
|
+
variant: "labelMedium";
|
|
93
|
+
color: "primary";
|
|
94
|
+
};
|
|
95
|
+
helper: {
|
|
96
|
+
variant: "bodySmall";
|
|
97
|
+
color: "secondary";
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
primaryAction: {
|
|
101
|
+
button: {
|
|
102
|
+
variant: "primary";
|
|
103
|
+
size: "lg";
|
|
104
|
+
};
|
|
105
|
+
text: {
|
|
106
|
+
variant: "labelLarge";
|
|
107
|
+
color: "onPrimary";
|
|
108
|
+
};
|
|
109
|
+
icon: {
|
|
110
|
+
size: "md";
|
|
111
|
+
color: "onPrimary";
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
secondaryAction: {
|
|
115
|
+
button: {
|
|
116
|
+
variant: "outline";
|
|
117
|
+
size: "md";
|
|
118
|
+
};
|
|
119
|
+
text: {
|
|
120
|
+
variant: "labelMedium";
|
|
121
|
+
color: "primary";
|
|
122
|
+
};
|
|
123
|
+
icon: {
|
|
124
|
+
size: "sm";
|
|
125
|
+
color: "primary";
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
/**
|
|
130
|
+
* Validate component prop combinations
|
|
131
|
+
*/
|
|
132
|
+
validatePropCombination: (componentType: keyof AtomicVariants, props: any) => boolean;
|
|
133
|
+
/**
|
|
134
|
+
* Get accessibility guidelines for component combinations
|
|
135
|
+
*/
|
|
136
|
+
getAccessibilityGuidelines: () => {
|
|
137
|
+
button: {
|
|
138
|
+
minimumTouchTarget: number;
|
|
139
|
+
requiresAccessibilityLabel: boolean;
|
|
140
|
+
supportsAccessibilityHint: boolean;
|
|
141
|
+
};
|
|
142
|
+
input: {
|
|
143
|
+
requiresLabel: boolean;
|
|
144
|
+
supportsHelperText: boolean;
|
|
145
|
+
requiresAccessibilityLabel: boolean;
|
|
146
|
+
};
|
|
147
|
+
card: {
|
|
148
|
+
supportsAccessibilityRole: boolean;
|
|
149
|
+
canBeAccessibilityContainer: boolean;
|
|
150
|
+
};
|
|
151
|
+
text: {
|
|
152
|
+
supportsAccessibilityLabel: boolean;
|
|
153
|
+
respectsSystemTextSize: boolean;
|
|
154
|
+
};
|
|
155
|
+
icon: {
|
|
156
|
+
requiresAccessibilityLabel: boolean;
|
|
157
|
+
supportsAccessibilityHint: boolean;
|
|
158
|
+
};
|
|
159
|
+
};
|
|
160
|
+
};
|
|
161
|
+
declare const defaultExport: {
|
|
162
|
+
AtomicButton: import("react").FC<AtomicButtonProps>;
|
|
163
|
+
AtomicText: import("react").FC<AtomicTextProps>;
|
|
164
|
+
AtomicCard: import("react").FC<AtomicCardProps>;
|
|
165
|
+
AtomicInput: import("react").FC<AtomicInputProps>;
|
|
166
|
+
AtomicIcon: import("react").FC<import("../..").IconProps>;
|
|
167
|
+
AtomicImage: import("react").FC<AtomicImageProps>;
|
|
168
|
+
AtomicSwitch: import("react").FC<AtomicSwitchProps>;
|
|
169
|
+
AtomicBadge: import("react").FC<AtomicBadgeProps>;
|
|
170
|
+
AtomicFormError: import("react").FC<AtomicFormErrorProps>;
|
|
171
|
+
AtomicAvatar: import("react").FC<AtomicAvatarProps>;
|
|
172
|
+
AtomicChip: import("react").FC<AtomicChipProps>;
|
|
173
|
+
AtomicDivider: import("react").FC<AtomicDividerProps>;
|
|
174
|
+
AtomicSkeleton: import("react").FC<AtomicSkeletonProps>;
|
|
175
|
+
AtomicProgress: import("react").FC<AtomicProgressProps>;
|
|
176
|
+
AtomicAvatarGroup: import("react").FC<AtomicAvatarGroupProps>;
|
|
177
|
+
AtomicFab: import("react").FC<AtomicFabProps>;
|
|
178
|
+
AtomicFilter: import("react").FC<AtomicFilterProps>;
|
|
179
|
+
AtomicTouchable: import("react").FC<AtomicTouchableProps>;
|
|
180
|
+
AtomicUtils: {
|
|
181
|
+
/**
|
|
182
|
+
* Get recommended component combinations for common UI patterns
|
|
183
|
+
*/
|
|
184
|
+
getRecommendedCombinations: () => {
|
|
185
|
+
cardWithHeader: {
|
|
186
|
+
card: {
|
|
187
|
+
variant: "elevated";
|
|
188
|
+
padding: "lg";
|
|
189
|
+
};
|
|
190
|
+
title: {
|
|
191
|
+
variant: "titleLarge";
|
|
192
|
+
color: "primary";
|
|
193
|
+
};
|
|
194
|
+
description: {
|
|
195
|
+
variant: "bodyMedium";
|
|
196
|
+
color: "secondary";
|
|
197
|
+
};
|
|
198
|
+
};
|
|
199
|
+
formField: {
|
|
200
|
+
input: {
|
|
201
|
+
variant: "outlined";
|
|
202
|
+
size: "md";
|
|
203
|
+
};
|
|
204
|
+
label: {
|
|
205
|
+
variant: "labelMedium";
|
|
206
|
+
color: "primary";
|
|
207
|
+
};
|
|
208
|
+
helper: {
|
|
209
|
+
variant: "bodySmall";
|
|
210
|
+
color: "secondary";
|
|
211
|
+
};
|
|
212
|
+
};
|
|
213
|
+
primaryAction: {
|
|
214
|
+
button: {
|
|
215
|
+
variant: "primary";
|
|
216
|
+
size: "lg";
|
|
217
|
+
};
|
|
218
|
+
text: {
|
|
219
|
+
variant: "labelLarge";
|
|
220
|
+
color: "onPrimary";
|
|
221
|
+
};
|
|
222
|
+
icon: {
|
|
223
|
+
size: "md";
|
|
224
|
+
color: "onPrimary";
|
|
225
|
+
};
|
|
226
|
+
};
|
|
227
|
+
secondaryAction: {
|
|
228
|
+
button: {
|
|
229
|
+
variant: "outline";
|
|
230
|
+
size: "md";
|
|
231
|
+
};
|
|
232
|
+
text: {
|
|
233
|
+
variant: "labelMedium";
|
|
234
|
+
color: "primary";
|
|
235
|
+
};
|
|
236
|
+
icon: {
|
|
237
|
+
size: "sm";
|
|
238
|
+
color: "primary";
|
|
239
|
+
};
|
|
240
|
+
};
|
|
241
|
+
};
|
|
242
|
+
/**
|
|
243
|
+
* Validate component prop combinations
|
|
244
|
+
*/
|
|
245
|
+
validatePropCombination: (componentType: keyof AtomicVariants, props: any) => boolean;
|
|
246
|
+
/**
|
|
247
|
+
* Get accessibility guidelines for component combinations
|
|
248
|
+
*/
|
|
249
|
+
getAccessibilityGuidelines: () => {
|
|
250
|
+
button: {
|
|
251
|
+
minimumTouchTarget: number;
|
|
252
|
+
requiresAccessibilityLabel: boolean;
|
|
253
|
+
supportsAccessibilityHint: boolean;
|
|
254
|
+
};
|
|
255
|
+
input: {
|
|
256
|
+
requiresLabel: boolean;
|
|
257
|
+
supportsHelperText: boolean;
|
|
258
|
+
requiresAccessibilityLabel: boolean;
|
|
259
|
+
};
|
|
260
|
+
card: {
|
|
261
|
+
supportsAccessibilityRole: boolean;
|
|
262
|
+
canBeAccessibilityContainer: boolean;
|
|
263
|
+
};
|
|
264
|
+
text: {
|
|
265
|
+
supportsAccessibilityLabel: boolean;
|
|
266
|
+
respectsSystemTextSize: boolean;
|
|
267
|
+
};
|
|
268
|
+
icon: {
|
|
269
|
+
requiresAccessibilityLabel: boolean;
|
|
270
|
+
supportsAccessibilityHint: boolean;
|
|
271
|
+
};
|
|
272
|
+
};
|
|
273
|
+
};
|
|
274
|
+
};
|
|
275
|
+
export default defaultExport;
|
|
276
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/presentation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QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;QAxEjB;;WAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QA+BH;;WAEG;iDACsC,MAAM,cAAc,SAAS,GAAG,KAAG,OAAO;QAMnF;;WAEG;;;;;;;;;;;;;;;;;;;;;;;;;;CAgDJ,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,149 @@
|
|
|
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
|
+
// STEP 1: Import all components first (required for default export)
|
|
19
|
+
import { AtomicButton, } from './AtomicButton';
|
|
20
|
+
import { AtomicText, } from './AtomicText';
|
|
21
|
+
import { AtomicCard, } from './AtomicCard';
|
|
22
|
+
import { AtomicInput, } from './AtomicInput';
|
|
23
|
+
import { AtomicIcon, } from './AtomicIcon';
|
|
24
|
+
import { AtomicImage, } from './AtomicImage';
|
|
25
|
+
import { AtomicSwitch, } from './AtomicSwitch';
|
|
26
|
+
import { AtomicBadge, } from './AtomicBadge';
|
|
27
|
+
import { AtomicFormError, } from './AtomicFormError';
|
|
28
|
+
import { AtomicAvatar, } from './AtomicAvatar';
|
|
29
|
+
import { AtomicChip, } from './AtomicChip';
|
|
30
|
+
import { AtomicDivider, } from './AtomicDivider';
|
|
31
|
+
import { AtomicSkeleton, } from './AtomicSkeleton';
|
|
32
|
+
import { AtomicProgress, } from './AtomicProgress';
|
|
33
|
+
import { AtomicAvatarGroup, } from './AtomicAvatarGroup';
|
|
34
|
+
import { AtomicFab, getFabVariants, } from './AtomicFab';
|
|
35
|
+
import { AtomicFilter, getFilterContainerStyle, getClearAllContainerStyle, getScrollContentContainerStyle, } from './AtomicFilter';
|
|
36
|
+
import { AtomicTouchable, TouchablePresets, getOpacityValue, normalizeHitSlop, } from './AtomicTouchable';
|
|
37
|
+
// STEP 2: Re-export all components (for named imports)
|
|
38
|
+
export { AtomicButton, };
|
|
39
|
+
// Helper types extracted from ButtonVariantConfig
|
|
40
|
+
export { AtomicText, };
|
|
41
|
+
export { AtomicCard, };
|
|
42
|
+
export { AtomicInput, };
|
|
43
|
+
export { AtomicIcon, };
|
|
44
|
+
export { AtomicImage, };
|
|
45
|
+
export { AtomicSwitch, };
|
|
46
|
+
export { AtomicBadge, };
|
|
47
|
+
export { AtomicFormError, };
|
|
48
|
+
export { AtomicAvatar, };
|
|
49
|
+
export { AtomicChip, };
|
|
50
|
+
export { AtomicDivider, };
|
|
51
|
+
export { AtomicSkeleton, };
|
|
52
|
+
export { AtomicProgress, };
|
|
53
|
+
export { AtomicAvatarGroup, };
|
|
54
|
+
export { AtomicFab, getFabVariants, };
|
|
55
|
+
export { AtomicFilter, getFilterContainerStyle, getClearAllContainerStyle, getScrollContentContainerStyle, };
|
|
56
|
+
export { AtomicTouchable, TouchablePresets, getOpacityValue, normalizeHitSlop, };
|
|
57
|
+
/**
|
|
58
|
+
* Atomic component utilities
|
|
59
|
+
*/
|
|
60
|
+
export const AtomicUtils = {
|
|
61
|
+
/**
|
|
62
|
+
* Get recommended component combinations for common UI patterns
|
|
63
|
+
*/
|
|
64
|
+
getRecommendedCombinations: () => ({
|
|
65
|
+
// Card with header
|
|
66
|
+
cardWithHeader: {
|
|
67
|
+
card: { variant: 'elevated', padding: 'lg' },
|
|
68
|
+
title: { variant: 'titleLarge', color: 'primary' },
|
|
69
|
+
description: { variant: 'bodyMedium', color: 'secondary' },
|
|
70
|
+
},
|
|
71
|
+
// Form field
|
|
72
|
+
formField: {
|
|
73
|
+
input: { variant: 'outlined', size: 'md' },
|
|
74
|
+
label: { variant: 'labelMedium', color: 'primary' },
|
|
75
|
+
helper: { variant: 'bodySmall', color: 'secondary' },
|
|
76
|
+
},
|
|
77
|
+
// Action button
|
|
78
|
+
primaryAction: {
|
|
79
|
+
button: { variant: 'primary', size: 'lg' },
|
|
80
|
+
text: { variant: 'labelLarge', color: 'onPrimary' },
|
|
81
|
+
icon: { size: 'md', color: 'onPrimary' },
|
|
82
|
+
},
|
|
83
|
+
// Secondary action
|
|
84
|
+
secondaryAction: {
|
|
85
|
+
button: { variant: 'outline', size: 'md' },
|
|
86
|
+
text: { variant: 'labelMedium', color: 'primary' },
|
|
87
|
+
icon: { size: 'sm', color: 'primary' },
|
|
88
|
+
},
|
|
89
|
+
}),
|
|
90
|
+
/**
|
|
91
|
+
* Validate component prop combinations
|
|
92
|
+
*/
|
|
93
|
+
validatePropCombination: (componentType, props) => {
|
|
94
|
+
// Add validation logic here for prop combinations
|
|
95
|
+
// This helps catch design system violations early
|
|
96
|
+
return true;
|
|
97
|
+
},
|
|
98
|
+
/**
|
|
99
|
+
* Get accessibility guidelines for component combinations
|
|
100
|
+
*/
|
|
101
|
+
getAccessibilityGuidelines: () => ({
|
|
102
|
+
button: {
|
|
103
|
+
minimumTouchTarget: 48,
|
|
104
|
+
requiresAccessibilityLabel: true,
|
|
105
|
+
supportsAccessibilityHint: true,
|
|
106
|
+
},
|
|
107
|
+
input: {
|
|
108
|
+
requiresLabel: true,
|
|
109
|
+
supportsHelperText: true,
|
|
110
|
+
requiresAccessibilityLabel: true,
|
|
111
|
+
},
|
|
112
|
+
card: {
|
|
113
|
+
supportsAccessibilityRole: true,
|
|
114
|
+
canBeAccessibilityContainer: true,
|
|
115
|
+
},
|
|
116
|
+
text: {
|
|
117
|
+
supportsAccessibilityLabel: true,
|
|
118
|
+
respectsSystemTextSize: true,
|
|
119
|
+
},
|
|
120
|
+
icon: {
|
|
121
|
+
requiresAccessibilityLabel: true,
|
|
122
|
+
supportsAccessibilityHint: false,
|
|
123
|
+
},
|
|
124
|
+
}),
|
|
125
|
+
};
|
|
126
|
+
// STEP 3: Default export (now all components are available in scope)
|
|
127
|
+
const defaultExport = {
|
|
128
|
+
AtomicButton,
|
|
129
|
+
AtomicText,
|
|
130
|
+
AtomicCard,
|
|
131
|
+
AtomicInput,
|
|
132
|
+
AtomicIcon,
|
|
133
|
+
AtomicImage,
|
|
134
|
+
AtomicSwitch,
|
|
135
|
+
AtomicBadge,
|
|
136
|
+
AtomicFormError,
|
|
137
|
+
AtomicAvatar,
|
|
138
|
+
AtomicChip,
|
|
139
|
+
AtomicDivider,
|
|
140
|
+
AtomicSkeleton,
|
|
141
|
+
AtomicProgress,
|
|
142
|
+
AtomicAvatarGroup,
|
|
143
|
+
AtomicFab,
|
|
144
|
+
AtomicFilter,
|
|
145
|
+
AtomicTouchable,
|
|
146
|
+
AtomicUtils,
|
|
147
|
+
};
|
|
148
|
+
export default defaultExport;
|
|
149
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/presentation/atoms/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,oEAAoE;AACpE,OAAO,EACL,YAAY,GAEb,MAAM,gBAAgB,CAAC;AAExB,OAAO,EACL,UAAU,GAEX,MAAM,cAAc,CAAC;AAEtB,OAAO,EACL,UAAU,GAIX,MAAM,cAAc,CAAC;AAEtB,OAAO,EACL,WAAW,GAKZ,MAAM,eAAe,CAAC;AAEvB,OAAO,EACL,UAAU,GAIX,MAAM,cAAc,CAAC;AAEtB,OAAO,EACL,WAAW,GAEZ,MAAM,eAAe,CAAC;AAEvB,OAAO,EACL,YAAY,GAEb,MAAM,gBAAgB,CAAC;AAExB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AE;YACpE,IAAI,EAAE,EAAE,IAAI,EAAE,IAAa,EAAE,KAAK,EAAE,SAAkB,EAAE;SACzD;KACF,CAAC;IAEF;;OAEG;IACH,uBAAuB,EAAE,CAAC,aAAmC,EAAE,KAAU,EAAW,EAAE;QACpF,kDAAkD;QAClD,kDAAkD;QAClD,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;OAEG;IACH,0BAA0B,EAAE,GAAG,EAAE,CAAC,CAAC;QACjC,MAAM,EAAE;YACN,kBAAkB,EAAE,EAAE;YACtB,0BAA0B,EAAE,IAAI;YAChC,yBAAyB,EAAE,IAAI;SAChC;QACD,KAAK,EAAE;YACL,aAAa,EAAE,IAAI;YACnB,kBAAkB,EAAE,IAAI;YACxB,0BAA0B,EAAE,IAAI;SACjC;QACD,IAAI,EAAE;YACJ,yBAAyB,EAAE,IAAI;YAC/B,2BAA2B,EAAE,IAAI;SAClC;QACD,IAAI,EAAE;YACJ,0BAA0B,EAAE,IAAI;YAChC,sBAAsB,EAAE,IAAI;SAC7B;QACD,IAAI,EAAE;YACJ,0BAA0B,EAAE,IAAI;YAChC,yBAAyB,EAAE,KAAK;SACjC;KACF,CAAC;CACH,CAAC;AAEF,qEAAqE;AACrE,MAAM,aAAa,GAAG;IACpB,YAAY;IACZ,UAAU;IACV,UAAU;IACV,WAAW;IACX,UAAU;IACV,WAAW;IACX,YAAY;IACZ,WAAW;IACX,eAAe;IACf,YAAY;IACZ,UAAU;IACV,aAAa;IACb,cAAc;IACd,cAAc;IACd,iBAAiB;IACjB,SAAS;IACT,YAAY;IACZ,eAAe;IACf,WAAW;CACZ,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const useInputState: (secureTextEntry?: boolean) => {
|
|
2
|
+
isFocused: boolean;
|
|
3
|
+
setIsFocused: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
4
|
+
isPasswordVisible: boolean;
|
|
5
|
+
togglePasswordVisibility: () => void;
|
|
6
|
+
};
|
|
7
|
+
//# sourceMappingURL=useInputState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useInputState.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/atoms/input/hooks/useInputState.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,GAAI,kBAAiB,OAAe;;;;;CAY7D,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
2
|
+
export const useInputState = (secureTextEntry = false) => {
|
|
3
|
+
const [isFocused, setIsFocused] = useState(false);
|
|
4
|
+
const [isPasswordVisible, setIsPasswordVisible] = useState(!secureTextEntry);
|
|
5
|
+
const togglePasswordVisibility = () => setIsPasswordVisible(!isPasswordVisible);
|
|
6
|
+
return {
|
|
7
|
+
isFocused,
|
|
8
|
+
setIsFocused,
|
|
9
|
+
isPasswordVisible,
|
|
10
|
+
togglePasswordVisibility,
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=useInputState.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useInputState.js","sourceRoot":"","sources":["../../../../../src/presentation/atoms/input/hooks/useInputState.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,kBAA2B,KAAK,EAAE,EAAE;IAChE,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAClD,MAAM,CAAC,iBAAiB,EAAE,oBAAoB,CAAC,GAAG,QAAQ,CAAC,CAAC,eAAe,CAAC,CAAC;IAE7E,MAAM,wBAAwB,GAAG,GAAG,EAAE,CAAC,oBAAoB,CAAC,CAAC,iBAAiB,CAAC,CAAC;IAEhF,OAAO;QACL,SAAS;QACT,YAAY;QACZ,iBAAiB;QACjB,wBAAwB;KACzB,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ViewStyle, TextStyle } from 'react-native';
|
|
2
|
+
import { useAppDesignTokens } from '../../../hooks/useAppDesignTokens';
|
|
3
|
+
import { AtomicInputVariant, AtomicInputSize, AtomicInputState } from '../types';
|
|
4
|
+
type DesignTokens = ReturnType<typeof useAppDesignTokens>;
|
|
5
|
+
export declare const getContainerVariantStyles: (tokens: DesignTokens) => Record<AtomicInputVariant, ViewStyle>;
|
|
6
|
+
export declare const containerSizeStyles: Record<AtomicInputSize, ViewStyle>;
|
|
7
|
+
export declare const getInputSizeStyles: (tokens: DesignTokens) => Record<AtomicInputSize, TextStyle>;
|
|
8
|
+
export declare const getLabelSizeStyles: (tokens: DesignTokens) => Record<AtomicInputSize, TextStyle>;
|
|
9
|
+
export declare const getStateStyles: (tokens: DesignTokens) => Record<AtomicInputState, ViewStyle>;
|
|
10
|
+
export declare const getFocusStyles: (tokens: DesignTokens) => Record<AtomicInputVariant, ViewStyle>;
|
|
11
|
+
export declare const getStateColor: (tokens: DesignTokens, state: AtomicInputState, isFocused: boolean, isDisabled: boolean) => string;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=inputStyles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inputStyles.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/atoms/input/styles/inputStyles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AACvE,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAEjF,KAAK,YAAY,GAAG,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE1D,eAAO,MAAM,yBAAyB,GAAI,QAAQ,YAAY,KAAG,MAAM,CAAC,kBAAkB,EAAE,SAAS,CAiBnG,CAAC;AAEH,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,eAAe,EAAE,SAAS,CAIlE,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAI,QAAQ,YAAY,KAAG,MAAM,CAAC,eAAe,EAAE,SAAS,CAIzF,CAAC;AAEH,eAAO,MAAM,kBAAkB,GAAI,QAAQ,YAAY,KAAG,MAAM,CAAC,eAAe,EAAE,SAAS,CAIzF,CAAC;AAEH,eAAO,MAAM,cAAc,GAAI,QAAQ,YAAY,KAAG,MAAM,CAAC,gBAAgB,EAAE,SAAS,CAQtF,CAAC;AAEH,eAAO,MAAM,cAAc,GAAI,QAAQ,YAAY,KAAG,MAAM,CAAC,kBAAkB,EAAE,SAAS,CAIxF,CAAC;AAEH,eAAO,MAAM,aAAa,GAAI,QAAQ,YAAY,EAAE,OAAO,gBAAgB,EAAE,WAAW,OAAO,EAAE,YAAY,OAAO,KAAG,MAMtH,CAAC"}
|