@umituz/react-native-design-system 1.3.0 → 1.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/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 +38 -4
- package/src/domains/icons/domain/interfaces/IIconAdapter.ts +6 -3
- package/src/domains/icons/infrastructure/adapters/LucideAdapter.ts +1 -1
- package/src/presentation/atoms/AtomicButton.tsx +1 -1
- package/src/presentation/molecules/AtomicConfirmationModal.tsx +1 -1
- package/src/presentation/molecules/languageswitcher/hooks/useLanguageNavigation.ts +1 -2
- package/src/presentation/tokens/core/ColorPalette.ts +2 -0
|
@@ -0,0 +1,299 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AtomicPicker Component
|
|
3
|
+
*
|
|
4
|
+
* A reusable option picker/dropdown component for selecting from a list of options.
|
|
5
|
+
*
|
|
6
|
+
* Features:
|
|
7
|
+
* - Single and multi-select support
|
|
8
|
+
* - Modal display mode (full-screen on mobile)
|
|
9
|
+
* - Optional search/filter capability
|
|
10
|
+
* - Error and disabled states
|
|
11
|
+
* - Theme-aware styling
|
|
12
|
+
* - Icons for options
|
|
13
|
+
* - Clearable selection
|
|
14
|
+
* - react-hook-form integration ready
|
|
15
|
+
*
|
|
16
|
+
* Architecture:
|
|
17
|
+
* - Follows AtomicButton pattern with separated types and styles
|
|
18
|
+
* - Uses helper functions from picker/styles/pickerStyles.ts
|
|
19
|
+
* - Types defined in picker/types/index.ts
|
|
20
|
+
* - Zero inline StyleSheet.create()
|
|
21
|
+
*
|
|
22
|
+
* Usage:
|
|
23
|
+
* ```tsx
|
|
24
|
+
* const [partyType, setPartyType] = useState('birthday');
|
|
25
|
+
*
|
|
26
|
+
* <AtomicPicker
|
|
27
|
+
* value={partyType}
|
|
28
|
+
* onChange={setPartyType}
|
|
29
|
+
* options={[
|
|
30
|
+
* { label: 'Birthday Party', value: 'birthday', icon: 'cake' },
|
|
31
|
+
* { label: 'Wedding', value: 'wedding', icon: 'heart' },
|
|
32
|
+
* { label: 'Corporate Event', value: 'corporate', icon: 'briefcase' },
|
|
33
|
+
* ]}
|
|
34
|
+
* label="Party Type"
|
|
35
|
+
* placeholder="Select party type"
|
|
36
|
+
* searchable
|
|
37
|
+
* />
|
|
38
|
+
* ```
|
|
39
|
+
*
|
|
40
|
+
* @module AtomicPicker
|
|
41
|
+
*/
|
|
42
|
+
import React, { useState, useMemo } from 'react';
|
|
43
|
+
import { View, TouchableOpacity, Modal, FlatList, TextInput, useWindowDimensions, StyleSheet, } from 'react-native';
|
|
44
|
+
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
45
|
+
import { useAppDesignTokens } from '../hooks/useAppDesignTokens';
|
|
46
|
+
import { AtomicIcon } from './AtomicIcon';
|
|
47
|
+
import { AtomicText } from './AtomicText';
|
|
48
|
+
import { getPickerContainerStyles, getPickerLabelStyles, getPickerPlaceholderStyles, getPickerValueStyles, getPickerErrorStyles, getModalOverlayStyles, getModalContainerStyles, getModalHeaderStyles, getModalTitleStyles, getSearchContainerStyles, getSearchInputStyles, getOptionContainerStyles, getOptionTextStyles, getOptionDescriptionStyles, getEmptyStateStyles, getEmptyStateTextStyles, getChipContainerStyles, getChipStyles, getChipTextStyles, } from './picker/styles/pickerStyles';
|
|
49
|
+
/**
|
|
50
|
+
* AtomicPicker - Universal option picker component
|
|
51
|
+
*
|
|
52
|
+
* Displays a button that opens a modal for selection.
|
|
53
|
+
* Supports single/multi-select, search, and custom rendering.
|
|
54
|
+
*/
|
|
55
|
+
export const AtomicPicker = ({ value, onChange, options, label, placeholder = 'Select...', error, disabled = false, multiple = false, searchable = false, clearable = false, autoClose = true, color = 'primary', size = 'md', modalTitle, emptyMessage = 'No options available', style, labelStyle, testID, }) => {
|
|
56
|
+
const tokens = useAppDesignTokens();
|
|
57
|
+
const { height } = useWindowDimensions();
|
|
58
|
+
const insets = useSafeAreaInsets();
|
|
59
|
+
const [modalVisible, setModalVisible] = useState(false);
|
|
60
|
+
const [searchQuery, setSearchQuery] = useState('');
|
|
61
|
+
// Get style helpers with design tokens
|
|
62
|
+
const containerStyles = getPickerContainerStyles(tokens);
|
|
63
|
+
const labelStyles = getPickerLabelStyles(tokens);
|
|
64
|
+
const placeholderStyles = getPickerPlaceholderStyles(tokens);
|
|
65
|
+
const valueStyles = getPickerValueStyles(tokens);
|
|
66
|
+
const errorStyles = getPickerErrorStyles(tokens);
|
|
67
|
+
const modalOverlayStyles = getModalOverlayStyles(tokens);
|
|
68
|
+
const modalContainerStyles = getModalContainerStyles(tokens, height * 0.85);
|
|
69
|
+
const modalHeaderStyles = getModalHeaderStyles(tokens);
|
|
70
|
+
const modalTitleStyles = getModalTitleStyles(tokens);
|
|
71
|
+
const searchContainerStyles = getSearchContainerStyles(tokens);
|
|
72
|
+
const searchInputStyles = getSearchInputStyles(tokens);
|
|
73
|
+
const emptyStateStyles = getEmptyStateStyles(tokens);
|
|
74
|
+
const emptyStateTextStyles = getEmptyStateTextStyles(tokens);
|
|
75
|
+
const chipContainerStyles = getChipContainerStyles(tokens);
|
|
76
|
+
const chipStyles = getChipStyles(tokens);
|
|
77
|
+
const chipTextStyles = getChipTextStyles(tokens);
|
|
78
|
+
/**
|
|
79
|
+
* Normalize value to array for consistent handling
|
|
80
|
+
*/
|
|
81
|
+
const selectedValues = useMemo(() => {
|
|
82
|
+
if (multiple) {
|
|
83
|
+
return Array.isArray(value) ? value : [];
|
|
84
|
+
}
|
|
85
|
+
return value ? [value] : [];
|
|
86
|
+
}, [value, multiple]);
|
|
87
|
+
/**
|
|
88
|
+
* Get selected option objects
|
|
89
|
+
*/
|
|
90
|
+
const selectedOptions = useMemo(() => {
|
|
91
|
+
return options.filter((opt) => selectedValues.includes(opt.value));
|
|
92
|
+
}, [options, selectedValues]);
|
|
93
|
+
/**
|
|
94
|
+
* Filter options based on search query
|
|
95
|
+
*/
|
|
96
|
+
const filteredOptions = useMemo(() => {
|
|
97
|
+
if (!searchQuery.trim())
|
|
98
|
+
return options;
|
|
99
|
+
const query = searchQuery.toLowerCase();
|
|
100
|
+
return options.filter((opt) => opt.label.toLowerCase().includes(query) ||
|
|
101
|
+
opt.description?.toLowerCase().includes(query));
|
|
102
|
+
}, [options, searchQuery]);
|
|
103
|
+
/**
|
|
104
|
+
* Format display text for selected value(s)
|
|
105
|
+
*/
|
|
106
|
+
const displayText = useMemo(() => {
|
|
107
|
+
if (selectedOptions.length === 0) {
|
|
108
|
+
return placeholder;
|
|
109
|
+
}
|
|
110
|
+
if (multiple) {
|
|
111
|
+
return selectedOptions.length === 1
|
|
112
|
+
? selectedOptions[0].label
|
|
113
|
+
: `${selectedOptions.length} selected`;
|
|
114
|
+
}
|
|
115
|
+
return selectedOptions[0]?.label || placeholder;
|
|
116
|
+
}, [selectedOptions, placeholder, multiple]);
|
|
117
|
+
/**
|
|
118
|
+
* Handle modal open
|
|
119
|
+
*/
|
|
120
|
+
const openModal = () => {
|
|
121
|
+
if (disabled)
|
|
122
|
+
return;
|
|
123
|
+
setModalVisible(true);
|
|
124
|
+
setSearchQuery('');
|
|
125
|
+
};
|
|
126
|
+
/**
|
|
127
|
+
* Handle modal close
|
|
128
|
+
*/
|
|
129
|
+
const closeModal = () => {
|
|
130
|
+
setModalVisible(false);
|
|
131
|
+
setSearchQuery('');
|
|
132
|
+
};
|
|
133
|
+
/**
|
|
134
|
+
* Handle option selection
|
|
135
|
+
*/
|
|
136
|
+
const handleSelect = (optionValue) => {
|
|
137
|
+
if (multiple) {
|
|
138
|
+
const newValues = selectedValues.includes(optionValue)
|
|
139
|
+
? selectedValues.filter((v) => v !== optionValue)
|
|
140
|
+
: [...selectedValues, optionValue];
|
|
141
|
+
onChange(newValues);
|
|
142
|
+
}
|
|
143
|
+
else {
|
|
144
|
+
onChange(optionValue);
|
|
145
|
+
if (autoClose) {
|
|
146
|
+
closeModal();
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
};
|
|
150
|
+
/**
|
|
151
|
+
* Handle clear selection
|
|
152
|
+
*/
|
|
153
|
+
const handleClear = () => {
|
|
154
|
+
onChange(multiple ? [] : '');
|
|
155
|
+
};
|
|
156
|
+
/**
|
|
157
|
+
* Handle search query change
|
|
158
|
+
*/
|
|
159
|
+
const handleSearch = (query) => {
|
|
160
|
+
setSearchQuery(query);
|
|
161
|
+
};
|
|
162
|
+
/**
|
|
163
|
+
* Check if option is selected
|
|
164
|
+
*/
|
|
165
|
+
const isSelected = (optionValue) => {
|
|
166
|
+
return selectedValues.includes(optionValue);
|
|
167
|
+
};
|
|
168
|
+
/**
|
|
169
|
+
* Render single option
|
|
170
|
+
*/
|
|
171
|
+
const renderOption = ({ item }) => {
|
|
172
|
+
const selected = isSelected(item.value);
|
|
173
|
+
const itemDisabled = item.disabled || false;
|
|
174
|
+
const optionContainerStyle = getOptionContainerStyles(tokens, selected, itemDisabled);
|
|
175
|
+
const optionTextStyle = getOptionTextStyles(tokens, selected);
|
|
176
|
+
const optionDescriptionStyle = getOptionDescriptionStyles(tokens);
|
|
177
|
+
return (<TouchableOpacity onPress={() => !itemDisabled && handleSelect(item.value)} disabled={itemDisabled} testID={item.testID || `${testID}-option-${item.value}`} style={optionContainerStyle}>
|
|
178
|
+
{/* Option Icon */}
|
|
179
|
+
{item.icon && (<AtomicIcon name={item.icon} size="md" color={selected ? 'primary' : 'secondary'}/>)}
|
|
180
|
+
|
|
181
|
+
{/* Option Content */}
|
|
182
|
+
<View style={{ flex: 1 }}>
|
|
183
|
+
<AtomicText style={optionTextStyle}>{item.label}</AtomicText>
|
|
184
|
+
{item.description && (<AtomicText style={optionDescriptionStyle}>
|
|
185
|
+
{item.description}
|
|
186
|
+
</AtomicText>)}
|
|
187
|
+
</View>
|
|
188
|
+
|
|
189
|
+
{/* Selected Indicator */}
|
|
190
|
+
{selected && (<AtomicIcon name="CheckCircle" size="md" color="primary"/>)}
|
|
191
|
+
</TouchableOpacity>);
|
|
192
|
+
};
|
|
193
|
+
/**
|
|
194
|
+
* Render selected chips for multi-select
|
|
195
|
+
*/
|
|
196
|
+
const renderSelectedChips = () => {
|
|
197
|
+
if (!multiple || selectedOptions.length === 0)
|
|
198
|
+
return null;
|
|
199
|
+
return (<View style={chipContainerStyles}>
|
|
200
|
+
{selectedOptions.map((opt) => (<View key={opt.value} style={chipStyles}>
|
|
201
|
+
<AtomicText style={chipTextStyles}>{opt.label}</AtomicText>
|
|
202
|
+
<TouchableOpacity onPress={(e) => {
|
|
203
|
+
e.stopPropagation();
|
|
204
|
+
handleSelect(opt.value);
|
|
205
|
+
}} hitSlop={{ top: 4, bottom: 4, left: 4, right: 4 }}>
|
|
206
|
+
<AtomicIcon name="X" size="sm" color="primary"/>
|
|
207
|
+
</TouchableOpacity>
|
|
208
|
+
</View>))}
|
|
209
|
+
</View>);
|
|
210
|
+
};
|
|
211
|
+
const pickerContainerStyle = StyleSheet.flatten([
|
|
212
|
+
containerStyles.base,
|
|
213
|
+
containerStyles.size[size],
|
|
214
|
+
error ? containerStyles.state.error : undefined,
|
|
215
|
+
disabled ? containerStyles.state.disabled : undefined,
|
|
216
|
+
style,
|
|
217
|
+
]);
|
|
218
|
+
const pickerLabelStyle = StyleSheet.flatten([
|
|
219
|
+
labelStyles.base,
|
|
220
|
+
labelStyles.size[size],
|
|
221
|
+
labelStyle,
|
|
222
|
+
]);
|
|
223
|
+
const pickerValueStyle = StyleSheet.flatten([
|
|
224
|
+
selectedOptions.length > 0 ? valueStyles.base : placeholderStyles.base,
|
|
225
|
+
selectedOptions.length > 0
|
|
226
|
+
? valueStyles.size[size]
|
|
227
|
+
: placeholderStyles.size[size],
|
|
228
|
+
]);
|
|
229
|
+
return (<View>
|
|
230
|
+
{/* Label */}
|
|
231
|
+
{label && <AtomicText style={pickerLabelStyle}>{label}</AtomicText>}
|
|
232
|
+
|
|
233
|
+
{/* Picker Button */}
|
|
234
|
+
<TouchableOpacity onPress={openModal} disabled={disabled} accessibilityRole="button" accessibilityLabel={label || placeholder} accessibilityState={{ disabled }} testID={testID} style={pickerContainerStyle}>
|
|
235
|
+
{/* Display Text */}
|
|
236
|
+
<AtomicText style={pickerValueStyle} numberOfLines={1}>
|
|
237
|
+
{displayText}
|
|
238
|
+
</AtomicText>
|
|
239
|
+
|
|
240
|
+
{/* Icons */}
|
|
241
|
+
<View style={{ flexDirection: 'row', alignItems: 'center', gap: tokens.spacing.xs }}>
|
|
242
|
+
{/* Clear Button */}
|
|
243
|
+
{clearable && selectedOptions.length > 0 && !disabled && (<TouchableOpacity onPress={handleClear} hitSlop={{ top: 8, bottom: 8, left: 8, right: 8 }} accessibilityRole="button" accessibilityLabel="Clear selection" testID={`${testID}-clear`}>
|
|
244
|
+
<AtomicIcon name="cancel" size="sm" color="secondary"/>
|
|
245
|
+
</TouchableOpacity>)}
|
|
246
|
+
|
|
247
|
+
{/* Dropdown Icon */}
|
|
248
|
+
<AtomicIcon name={modalVisible ? 'expand-less' : 'expand-more'} size="sm" color={disabled ? 'surfaceVariant' : 'secondary'}/>
|
|
249
|
+
</View>
|
|
250
|
+
</TouchableOpacity>
|
|
251
|
+
|
|
252
|
+
{/* Selected Chips (Multi-select) */}
|
|
253
|
+
{renderSelectedChips()}
|
|
254
|
+
|
|
255
|
+
{/* Error Message */}
|
|
256
|
+
{error && <AtomicText style={errorStyles}>{error}</AtomicText>}
|
|
257
|
+
|
|
258
|
+
{/* Selection Modal */}
|
|
259
|
+
<Modal visible={modalVisible} animationType="slide" transparent onRequestClose={closeModal} testID={`${testID}-modal`}>
|
|
260
|
+
<View style={modalOverlayStyles}>
|
|
261
|
+
<View style={[
|
|
262
|
+
modalContainerStyles,
|
|
263
|
+
{ paddingBottom: insets.bottom + tokens.spacing.md },
|
|
264
|
+
]}>
|
|
265
|
+
{/* Modal Header */}
|
|
266
|
+
<View style={modalHeaderStyles}>
|
|
267
|
+
{/* Title */}
|
|
268
|
+
<AtomicText style={modalTitleStyles}>
|
|
269
|
+
{modalTitle || label || 'Select'}
|
|
270
|
+
</AtomicText>
|
|
271
|
+
|
|
272
|
+
{/* Close Button */}
|
|
273
|
+
<TouchableOpacity onPress={closeModal} hitSlop={{ top: 8, bottom: 8, left: 8, right: 8 }} accessibilityRole="button" accessibilityLabel="Close picker" testID={`${testID}-close`}>
|
|
274
|
+
<AtomicIcon name="X" size="md" color="primary"/>
|
|
275
|
+
</TouchableOpacity>
|
|
276
|
+
</View>
|
|
277
|
+
|
|
278
|
+
{/* Search Bar */}
|
|
279
|
+
{searchable && (<View style={searchContainerStyles}>
|
|
280
|
+
<AtomicIcon name="Search" size="sm" color="secondary"/>
|
|
281
|
+
<TextInput value={searchQuery} onChangeText={handleSearch} placeholder="Search..." placeholderTextColor={tokens.colors.textSecondary} style={searchInputStyles} testID={`${testID}-search`}/>
|
|
282
|
+
{searchQuery.length > 0 && (<TouchableOpacity onPress={() => handleSearch('')}>
|
|
283
|
+
<AtomicIcon name="cancel" size="sm" color="secondary"/>
|
|
284
|
+
</TouchableOpacity>)}
|
|
285
|
+
</View>)}
|
|
286
|
+
|
|
287
|
+
{/* Options List */}
|
|
288
|
+
{filteredOptions.length > 0 ? (<FlatList data={filteredOptions} keyExtractor={(item) => item.value} renderItem={renderOption} showsVerticalScrollIndicator testID={`${testID}-list`}/>) : (<View style={emptyStateStyles}>
|
|
289
|
+
<AtomicIcon name="error-outline" size="xl" color="secondary"/>
|
|
290
|
+
<AtomicText style={emptyStateTextStyles}>
|
|
291
|
+
{emptyMessage}
|
|
292
|
+
</AtomicText>
|
|
293
|
+
</View>)}
|
|
294
|
+
</View>
|
|
295
|
+
</View>
|
|
296
|
+
</Modal>
|
|
297
|
+
</View>);
|
|
298
|
+
};
|
|
299
|
+
//# sourceMappingURL=AtomicPicker.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AtomicPicker.js","sourceRoot":"","sources":["../../../src/presentation/atoms/AtomicPicker.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AAEH,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EACL,IAAI,EACJ,gBAAgB,EAChB,KAAK,EACL,QAAQ,EACR,SAAS,EACT,mBAAmB,EACnB,UAAU,GACX,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAEjE,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM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AAC,CACzB,4BAA4B,CAC5B,MAAM,CAAC,CAAC,GAAG,MAAM,OAAO,CAAC,EACzB,CACH,CAAC,CAAC,CAAC,CACF,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,gBAAgB,CAAC,CAC5B;gBAAA,CAAC,UAAU,CAAC,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,WAAW,EAC5D;gBAAA,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,oBAAoB,CAAC,CACtC;kBAAA,CAAC,YAAY,CACf;gBAAA,EAAE,UAAU,CACd;cAAA,EAAE,IAAI,CAAC,CACR,CACH;UAAA,EAAE,IAAI,CACR;QAAA,EAAE,IAAI,CACR;MAAA,EAAE,KAAK,CACT;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AtomicProgress - Universal Progress Bar Component
|
|
3
|
+
*
|
|
4
|
+
* Displays progress bars for completion tracking
|
|
5
|
+
* Theme: {{THEME_NAME}} ({{CATEGORY}} category)
|
|
6
|
+
*
|
|
7
|
+
* Atomic Design Level: ATOM
|
|
8
|
+
* Purpose: Progress indication and completion tracking
|
|
9
|
+
*
|
|
10
|
+
* Usage:
|
|
11
|
+
* - File upload progress
|
|
12
|
+
* - Task completion progress
|
|
13
|
+
* - Loading progress
|
|
14
|
+
* - Achievement progress
|
|
15
|
+
* - Form completion
|
|
16
|
+
*/
|
|
17
|
+
import React from 'react';
|
|
18
|
+
import { ViewStyle } from 'react-native';
|
|
19
|
+
export interface AtomicProgressProps {
|
|
20
|
+
/** Progress value (0-100) */
|
|
21
|
+
value: number;
|
|
22
|
+
/** Progress bar height */
|
|
23
|
+
height?: number;
|
|
24
|
+
/** Progress bar width */
|
|
25
|
+
width?: number | string;
|
|
26
|
+
/** Progress bar color */
|
|
27
|
+
color?: string;
|
|
28
|
+
/** Background color */
|
|
29
|
+
backgroundColor?: string;
|
|
30
|
+
/** Progress bar shape */
|
|
31
|
+
shape?: 'rounded' | 'square';
|
|
32
|
+
/** Whether to show percentage text */
|
|
33
|
+
showPercentage?: boolean;
|
|
34
|
+
/** Whether to show value text */
|
|
35
|
+
showValue?: boolean;
|
|
36
|
+
/** Custom text color */
|
|
37
|
+
textColor?: string;
|
|
38
|
+
/** Animation duration in milliseconds */
|
|
39
|
+
animationDuration?: number;
|
|
40
|
+
/** Style overrides */
|
|
41
|
+
style?: ViewStyle | ViewStyle[];
|
|
42
|
+
/** Test ID for testing */
|
|
43
|
+
testID?: string;
|
|
44
|
+
}
|
|
45
|
+
export declare const AtomicProgress: React.FC<AtomicProgressProps>;
|
|
46
|
+
export default AtomicProgress;
|
|
47
|
+
//# sourceMappingURL=AtomicProgress.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AtomicProgress.d.ts","sourceRoot":"","sources":["../../../src/presentation/atoms/AtomicProgress.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAoB,SAAS,EAAwB,MAAM,cAAc,CAAC;AAOjF,MAAM,WAAW,mBAAmB;IAClC,6BAA6B;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,0BAA0B;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,yBAAyB;IACzB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,yBAAyB;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,uBAAuB;IACvB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,yBAAyB;IACzB,KAAK,CAAC,EAAE,SAAS,GAAG,QAAQ,CAAC;IAC7B,sCAAsC;IACtC,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,iCAAiC;IACjC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,wBAAwB;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yCAAyC;IACzC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,sBAAsB;IACtB,KAAK,CAAC,EAAE,SAAS,GAAG,SAAS,EAAE,CAAC;IAChC,0BAA0B;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAMD,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAgExD,CAAC;AAsBF,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AtomicProgress - Universal Progress Bar Component
|
|
3
|
+
*
|
|
4
|
+
* Displays progress bars for completion tracking
|
|
5
|
+
* Theme: {{THEME_NAME}} ({{CATEGORY}} category)
|
|
6
|
+
*
|
|
7
|
+
* Atomic Design Level: ATOM
|
|
8
|
+
* Purpose: Progress indication and completion tracking
|
|
9
|
+
*
|
|
10
|
+
* Usage:
|
|
11
|
+
* - File upload progress
|
|
12
|
+
* - Task completion progress
|
|
13
|
+
* - Loading progress
|
|
14
|
+
* - Achievement progress
|
|
15
|
+
* - Form completion
|
|
16
|
+
*/
|
|
17
|
+
import React from 'react';
|
|
18
|
+
import { View, StyleSheet, Text } from 'react-native';
|
|
19
|
+
import { useAppDesignTokens } from '../hooks/useAppDesignTokens';
|
|
20
|
+
// =============================================================================
|
|
21
|
+
// COMPONENT IMPLEMENTATION
|
|
22
|
+
// =============================================================================
|
|
23
|
+
export const AtomicProgress = ({ value, height = 8, width = '100%', color, backgroundColor, shape = 'rounded', showPercentage = false, showValue = false, textColor, animationDuration = 300, style, testID, }) => {
|
|
24
|
+
const tokens = useAppDesignTokens();
|
|
25
|
+
// Clamp value between 0 and 100
|
|
26
|
+
const clampedValue = Math.max(0, Math.min(100, value));
|
|
27
|
+
// Default colors
|
|
28
|
+
const progressColor = color || tokens.colors.primary;
|
|
29
|
+
const progressBackground = backgroundColor || tokens.colors.surfaceVariant;
|
|
30
|
+
const progressTextColor = textColor || tokens.colors.textPrimary;
|
|
31
|
+
// Calculate progress width
|
|
32
|
+
const progressWidth = `${clampedValue}%`;
|
|
33
|
+
// Border radius based on shape
|
|
34
|
+
const borderRadius = shape === 'rounded' ? height / 2 : 0;
|
|
35
|
+
const containerStyle = {
|
|
36
|
+
width: width,
|
|
37
|
+
height,
|
|
38
|
+
backgroundColor: progressBackground,
|
|
39
|
+
borderRadius,
|
|
40
|
+
overflow: 'hidden',
|
|
41
|
+
};
|
|
42
|
+
const progressStyle = {
|
|
43
|
+
width: progressWidth,
|
|
44
|
+
height: '100%',
|
|
45
|
+
backgroundColor: progressColor,
|
|
46
|
+
borderRadius,
|
|
47
|
+
};
|
|
48
|
+
const textStyle = {
|
|
49
|
+
fontSize: tokens.typography.bodySmall.fontSize,
|
|
50
|
+
fontWeight: tokens.typography.labelMedium.fontWeight,
|
|
51
|
+
color: progressTextColor,
|
|
52
|
+
textAlign: 'center',
|
|
53
|
+
};
|
|
54
|
+
return (<View style={[containerStyle, style]} testID={testID}>
|
|
55
|
+
<View style={progressStyle}/>
|
|
56
|
+
{(showPercentage || showValue) && (<View style={styles.textContainer}>
|
|
57
|
+
<Text style={textStyle}>
|
|
58
|
+
{showPercentage ? `${Math.round(clampedValue)}%` : `${Math.round(clampedValue)}`}
|
|
59
|
+
</Text>
|
|
60
|
+
</View>)}
|
|
61
|
+
</View>);
|
|
62
|
+
};
|
|
63
|
+
// =============================================================================
|
|
64
|
+
// STYLES
|
|
65
|
+
// =============================================================================
|
|
66
|
+
const styles = StyleSheet.create({
|
|
67
|
+
textContainer: {
|
|
68
|
+
position: 'absolute',
|
|
69
|
+
top: 0,
|
|
70
|
+
left: 0,
|
|
71
|
+
right: 0,
|
|
72
|
+
bottom: 0,
|
|
73
|
+
justifyContent: 'center',
|
|
74
|
+
alignItems: 'center',
|
|
75
|
+
},
|
|
76
|
+
});
|
|
77
|
+
// =============================================================================
|
|
78
|
+
// EXPORTS
|
|
79
|
+
// =============================================================================
|
|
80
|
+
export default AtomicProgress;
|
|
81
|
+
//# sourceMappingURL=AtomicProgress.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AtomicProgress.js","sourceRoot":"","sources":["../../../src/presentation/atoms/AtomicProgress.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,UAAU,EAA6B,IAAI,EAAE,MAAM,cAAc,CAAC;AACjF,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAiCjE,gFAAgF;AAChF,2BAA2B;AAC3B,gFAAgF;AAEhF,MAAM,CAAC,MAAM,cAAc,GAAkC,CAAC,EAC5D,KAAK,EACL,MAAM,GAAG,CAAC,EACV,KAAK,GAAG,MAAM,EACd,KAAK,EACL,eAAe,EACf,KAAK,GAAG,SAAS,EACjB,cAAc,GAAG,KAAK,EACtB,SAAS,GAAG,KAAK,EACjB,SAAS,EACT,iBAAiB,GAAG,GAAG,EACvB,KAAK,EACL,MAAM,GACP,EAAE,EAAE;IACH,MAAM,MAAM,GAAG,kBAAkB,EAAE,CAAC;IAEpC,gCAAgC;IAChC,MAAM,YAAY,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC;IAEvD,iBAAiB;IACjB,MAAM,aAAa,GAAG,KAAK,IAAI,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC;IACrD,MAAM,kBAAkB,GAAG,eAAe,IAAI,MAAM,CAAC,MAAM,CAAC,cAAc,CAAC;IAC3E,MAAM,iBAAiB,GAAG,SAAS,IAAI,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC;IAEjE,2BAA2B;IAC3B,MAAM,aAAa,GAAG,GAAG,YAAY,GAAG,CAAC;IAEzC,+BAA+B;IAC/B,MAAM,YAAY,GAAG,KAAK,KAAK,SAAS,CAAC,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M,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,aAAa,EAAE;QACb,QAAQ,EAAE,UAAU;QACpB,GAAG,EAAE,CAAC;QACN,IAAI,EAAE,CAAC;QACP,KAAK,EAAE,CAAC;QACR,MAAM,EAAE,CAAC;QACT,cAAc,EAAE,QAAQ;QACxB,UAAU,EAAE,QAAQ;KACrB;CACF,CAAC,CAAC;AAEH,gFAAgF;AAChF,UAAU;AACV,gFAAgF;AAEhF,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { StyleProp, ViewStyle, TextStyle } from 'react-native';
|
|
3
|
+
export interface AtomicSearchBarProps {
|
|
4
|
+
value: string;
|
|
5
|
+
onChangeText: (text: string) => void;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
autoFocus?: boolean;
|
|
8
|
+
editable?: boolean;
|
|
9
|
+
onClear?: () => void;
|
|
10
|
+
onFocus?: () => void;
|
|
11
|
+
onBlur?: () => void;
|
|
12
|
+
onSubmitEditing?: () => void;
|
|
13
|
+
style?: StyleProp<ViewStyle>;
|
|
14
|
+
inputStyle?: StyleProp<TextStyle>;
|
|
15
|
+
accessibilityLabel?: string;
|
|
16
|
+
accessibilityHint?: string;
|
|
17
|
+
}
|
|
18
|
+
export declare const AtomicSearchBar: React.FC<AtomicSearchBarProps>;
|
|
19
|
+
//# sourceMappingURL=AtomicSearchBar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AtomicSearchBar.d.ts","sourceRoot":"","sources":["../../../src/presentation/atoms/AtomicSearchBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAIpE,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,UAAU,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAClC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CA2F1D,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { View, TextInput, TouchableOpacity } from 'react-native';
|
|
3
|
+
import { useAppDesignTokens } from '../hooks/useAppDesignTokens';
|
|
4
|
+
import { AtomicIcon } from './AtomicIcon';
|
|
5
|
+
export const AtomicSearchBar = ({ value, onChangeText, placeholder = 'Search...', autoFocus = false, editable = true, onClear, onFocus, onBlur, onSubmitEditing, style, inputStyle, accessibilityLabel = 'Search input', accessibilityHint, }) => {
|
|
6
|
+
const tokens = useAppDesignTokens();
|
|
7
|
+
const handleClear = () => {
|
|
8
|
+
onChangeText('');
|
|
9
|
+
onClear?.();
|
|
10
|
+
};
|
|
11
|
+
return (<View style={[
|
|
12
|
+
{
|
|
13
|
+
flexDirection: 'row',
|
|
14
|
+
alignItems: 'center',
|
|
15
|
+
backgroundColor: tokens.colors.surfaceSecondary,
|
|
16
|
+
borderRadius: tokens.borders.radius.lg,
|
|
17
|
+
borderWidth: 1,
|
|
18
|
+
borderColor: tokens.colors.border,
|
|
19
|
+
paddingHorizontal: tokens.spacing.md,
|
|
20
|
+
paddingVertical: tokens.spacing.sm,
|
|
21
|
+
gap: tokens.spacing.sm,
|
|
22
|
+
minHeight: 48,
|
|
23
|
+
},
|
|
24
|
+
style,
|
|
25
|
+
]} accessibilityRole="search">
|
|
26
|
+
<AtomicIcon name="Search" size="sm" color="secondary"/>
|
|
27
|
+
|
|
28
|
+
<TextInput value={value} onChangeText={onChangeText} placeholder={placeholder} placeholderTextColor={tokens.colors.textSecondary} autoFocus={autoFocus} editable={editable} onFocus={onFocus} onBlur={onBlur} onSubmitEditing={onSubmitEditing} style={[
|
|
29
|
+
{
|
|
30
|
+
flex: 1,
|
|
31
|
+
...tokens.typography.bodyMedium,
|
|
32
|
+
color: tokens.colors.textPrimary,
|
|
33
|
+
padding: 0,
|
|
34
|
+
margin: 0,
|
|
35
|
+
},
|
|
36
|
+
inputStyle,
|
|
37
|
+
]} accessibilityLabel={accessibilityLabel} accessibilityHint={accessibilityHint} returnKeyType="search" underlineColorAndroid="transparent"/>
|
|
38
|
+
|
|
39
|
+
{value.length > 0 && (<TouchableOpacity onPress={handleClear} style={{
|
|
40
|
+
padding: tokens.spacing.xs,
|
|
41
|
+
}} accessibilityLabel="Clear search" accessibilityRole="button">
|
|
42
|
+
<AtomicIcon name="X" size="sm" color="secondary"/>
|
|
43
|
+
</TouchableOpacity>)}
|
|
44
|
+
</View>);
|
|
45
|
+
};
|
|
46
|
+
//# sourceMappingURL=AtomicSearchBar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AtomicSearchBar.js","sourceRoot":"","sources":["../../../src/presentation/atoms/AtomicSearchBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,gBAAgB,EAAc,MAAM,cAAc,CAAC;AAE7E,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,EAAE,UA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AC,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,CAClD,SAAS,CAAC,CAAC,SAAS,CAAC,CACrB,QAAQ,CAAC,CAAC,QAAQ,CAAC,CACnB,OAAO,CAAC,CAAC,OAAO,CAAC,CACjB,MAAM,CAAC,CAAC,MAAM,CAAC,CACf,eAAe,CAAC,CAAC,eAAe,CAAC,CACjC,KAAK,CAAC,CAAC;YACL;gBACE,IAAI,EAAE,CAAC;gBACP,GAAG,MAAM,CAAC,UAAU,CAAC,UAAU;gBAC/B,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,WAAW;gBAChC,OAAO,EAAE,CAAC;gBACV,MAAM,EAAE,CAAC;aACV;YACD,UAAU;SACX,CAAC,CACF,kBAAkB,CAAC,CAAC,kBAAkB,CAAC,CACvC,iBAAiB,CAAC,CAAC,iBAAiB,CAAC,CACrC,aAAa,CAAC,QAAQ,CACtB,qBAAqB,CAAC,aAAa,EAGrC;;MAAA,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,IAAI,CACnB,CAAC,gBAAgB,CACf,OAAO,CAAC,CAAC,WAAW,CAAC,CACrB,KAAK,CAAC,CAAC;gBACL,OAAO,EAAE,MAAM,CAAC,OAAO,CAAC,EAAE;aAC3B,CAAC,CACF,kBAAkB,CAAC,cAAc,CACjC,iBAAiB,CAAC,QAAQ,CAE1B;UAAA,CAAC,UAAU,CACT,IAAI,CAAC,GAAG,CACR,IAAI,CAAC,IAAI,CACT,KAAK,CAAC,WAAW,EAErB;QAAA,EAAE,gBAAgB,CAAC,CACpB,CACH;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AtomicSkeleton - Universal Skeleton Loading Component
|
|
3
|
+
*
|
|
4
|
+
* Displays animated skeleton placeholders for loading states
|
|
5
|
+
* Theme: {{THEME_NAME}} ({{CATEGORY}} category)
|
|
6
|
+
*
|
|
7
|
+
* Atomic Design Level: ATOM
|
|
8
|
+
* Purpose: Loading state placeholder
|
|
9
|
+
*
|
|
10
|
+
* Usage:
|
|
11
|
+
* - Content loading placeholders
|
|
12
|
+
* - List item skeletons
|
|
13
|
+
* - Card skeletons
|
|
14
|
+
* - Text line skeletons
|
|
15
|
+
* - Image placeholders
|
|
16
|
+
*/
|
|
17
|
+
import React from 'react';
|
|
18
|
+
import { ViewStyle } from 'react-native';
|
|
19
|
+
export interface AtomicSkeletonProps {
|
|
20
|
+
/** Skeleton width */
|
|
21
|
+
width?: number | string;
|
|
22
|
+
/** Skeleton height */
|
|
23
|
+
height?: number | string;
|
|
24
|
+
/** Skeleton shape */
|
|
25
|
+
shape?: 'rectangle' | 'circle' | 'rounded';
|
|
26
|
+
/** Border radius for rounded shapes */
|
|
27
|
+
borderRadius?: number;
|
|
28
|
+
/** Animation duration in milliseconds */
|
|
29
|
+
duration?: number;
|
|
30
|
+
/** Whether to show animation */
|
|
31
|
+
animated?: boolean;
|
|
32
|
+
/** Skeleton color */
|
|
33
|
+
color?: string;
|
|
34
|
+
/** Highlight color for animation */
|
|
35
|
+
highlightColor?: string;
|
|
36
|
+
/** Style overrides */
|
|
37
|
+
style?: ViewStyle;
|
|
38
|
+
/** Test ID for testing */
|
|
39
|
+
testID?: string;
|
|
40
|
+
}
|
|
41
|
+
export declare const AtomicSkeleton: React.FC<AtomicSkeletonProps>;
|
|
42
|
+
export default AtomicSkeleton;
|
|
43
|
+
//# sourceMappingURL=AtomicSkeleton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AtomicSkeleton.d.ts","sourceRoot":"","sources":["../../../src/presentation/atoms/AtomicSkeleton.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAA4B,MAAM,OAAO,CAAC;AACjD,OAAO,EAAoB,SAAS,EAA4B,MAAM,cAAc,CAAC;AAOrF,MAAM,WAAW,mBAAmB;IAClC,qBAAqB;IACrB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,sBAAsB;IACtB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,qBAAqB;IACrB,KAAK,CAAC,EAAE,WAAW,GAAG,QAAQ,GAAG,SAAS,CAAC;IAC3C,uCAAuC;IACvC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,yCAAyC;IACzC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,gCAAgC;IAChC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,qBAAqB;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,oCAAoC;IACpC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,sBAAsB;IACtB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,0BAA0B;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAMD,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAuFxD,CAAC;AAMF,eAAe,cAAc,CAAC"}
|