@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,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SectionCard Molecule Component
|
|
3
|
+
*
|
|
4
|
+
* Reusable section card with title and content area.
|
|
5
|
+
* Used throughout settings screens for consistent grouping.
|
|
6
|
+
*
|
|
7
|
+
* Features:
|
|
8
|
+
* - Automatic theme-aware styling
|
|
9
|
+
* - Uppercase section titles with proper spacing
|
|
10
|
+
* - Built on AtomicCard for consistency
|
|
11
|
+
* - Flexible content area
|
|
12
|
+
*
|
|
13
|
+
* Atomic Design: Molecule (Card + Text)
|
|
14
|
+
*/
|
|
15
|
+
import React from 'react';
|
|
16
|
+
interface SectionCardProps {
|
|
17
|
+
title: string;
|
|
18
|
+
children: React.ReactNode;
|
|
19
|
+
style?: object;
|
|
20
|
+
contentStyle?: object;
|
|
21
|
+
testID?: string;
|
|
22
|
+
}
|
|
23
|
+
export declare const SectionCard: React.FC<SectionCardProps>;
|
|
24
|
+
export {};
|
|
25
|
+
//# sourceMappingURL=SectionCard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SectionCard.d.ts","sourceRoot":"","sources":["../../../src/presentation/molecules/SectionCard.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,UAAU,gBAAgB;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CA4BlD,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SectionCard Molecule Component
|
|
3
|
+
*
|
|
4
|
+
* Reusable section card with title and content area.
|
|
5
|
+
* Used throughout settings screens for consistent grouping.
|
|
6
|
+
*
|
|
7
|
+
* Features:
|
|
8
|
+
* - Automatic theme-aware styling
|
|
9
|
+
* - Uppercase section titles with proper spacing
|
|
10
|
+
* - Built on AtomicCard for consistency
|
|
11
|
+
* - Flexible content area
|
|
12
|
+
*
|
|
13
|
+
* Atomic Design: Molecule (Card + Text)
|
|
14
|
+
*/
|
|
15
|
+
import React from 'react';
|
|
16
|
+
import { View, StyleSheet } from 'react-native';
|
|
17
|
+
import { useAppDesignTokens } from '../hooks/useAppDesignTokens';
|
|
18
|
+
import { AtomicCard } from '../atoms/AtomicCard';
|
|
19
|
+
import { AtomicText } from '../atoms/AtomicText';
|
|
20
|
+
export const SectionCard = ({ title, children, style, contentStyle, testID, }) => {
|
|
21
|
+
const tokens = useAppDesignTokens();
|
|
22
|
+
const styles = getStyles(tokens);
|
|
23
|
+
return (<AtomicCard variant="outlined" style={StyleSheet.flatten([styles.card, style])} testID={testID}>
|
|
24
|
+
<AtomicText type="labelLarge" color={tokens.colors.textSecondary} style={styles.title}>
|
|
25
|
+
{title.toUpperCase()}
|
|
26
|
+
</AtomicText>
|
|
27
|
+
<View style={contentStyle}>
|
|
28
|
+
{children}
|
|
29
|
+
</View>
|
|
30
|
+
</AtomicCard>);
|
|
31
|
+
};
|
|
32
|
+
const getStyles = (tokens) => StyleSheet.create({
|
|
33
|
+
card: {
|
|
34
|
+
paddingVertical: tokens.spacing.md,
|
|
35
|
+
paddingHorizontal: 0,
|
|
36
|
+
marginHorizontal: tokens.spacing.md,
|
|
37
|
+
marginBottom: tokens.spacing.lg,
|
|
38
|
+
},
|
|
39
|
+
title: {
|
|
40
|
+
fontSize: tokens.typography.labelLarge.fontSize,
|
|
41
|
+
fontWeight: tokens.typography.labelLarge.fontWeight,
|
|
42
|
+
letterSpacing: 0.5,
|
|
43
|
+
paddingHorizontal: tokens.spacing.md,
|
|
44
|
+
marginBottom: tokens.spacing.sm,
|
|
45
|
+
},
|
|
46
|
+
});
|
|
47
|
+
//# sourceMappingURL=SectionCard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SectionCard.js","sourceRoot":"","sources":["../../../src/presentation/molecules/SectionCard.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAUjD,MAAM,CAAC,MAAM,WAAW,GAA+B,CAAC,EACtD,KAAK,EACL,QAAQ,EACR,KAAK,EACL,YAAY,EACZ,MAAM,GACP,EAAE,EAAE;IACH,MAAM,MAAM,GAAG,kBAAkB,EAAE,CAAC;IACpC,MAAM,MAAM,GAAG,SAAS,CAAC,MAAM,CAAC,CAAC;IAEjC,OAAO,CACL,CAAC,UAAU,CACT,OAAO,CAAC,UAAU,CAClB,KAAK,CAAC,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,CAChD,MAAM,CAAC,CAAC,MAAM,CAAC,CAEf;MAAA,CAAC,UAAU,CACT,IAAI,CAAC,YAAY,CACjB,KAAK,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,CACnC,KAAK,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAEpB;QAAA,CAAC,KAAK,CAAC,WAAW,EAAE,CACtB;MAAA,EAAE,UAAU,CACZ;MAAA,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,YAAY,CAAC,CACxB;QAAA,CAAC,QAAQ,CACX;MAAA,EAAE,IAAI,CACR;IAAA,EAAE,UAAU,CAAC,CACd,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,SAAS,GAAG,CAAC,MAA6C,EAAE,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrF,IAAI,EAAE;QACJ,eAAe,EAAE,MAAM,CAAC,OAAO,CAAC,EAAE;QAClC,iBAAiB,EAAE,CAAC;QACpB,gBAAgB,EAAE,MAAM,CAAC,OAAO,CAAC,EAAE;QACnC,YAAY,EAAE,MAAM,CAAC,OAAO,CAAC,EAAE;KAChC;IACD,KAAK,EAAE;QACL,QAAQ,EAAE,MAAM,CAAC,UAAU,CAAC,UAAU,CAAC,QAAQ;QAC/C,UAAU,EAAE,MAAM,CAAC,UAAU,CAAC,UAAU,CAAC,UAAU;QACnD,aAAa,EAAE,GAAG;QAClB,iBAAiB,EAAE,MAAM,CAAC,OAAO,CAAC,EAAE;QACpC,YAAY,EAAE,MAAM,CAAC,OAAO,CAAC,EAAE;KAChC;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SectionContainer Molecule - Universal Section Wrapper
|
|
3
|
+
*
|
|
4
|
+
* Provides consistent section layout with optional title
|
|
5
|
+
* Theme: {{THEME_NAME}} ({{CATEGORY}} category)
|
|
6
|
+
*
|
|
7
|
+
* Atomic Design Level: MOLECULE
|
|
8
|
+
* Composition: View + AtomicText + Layout
|
|
9
|
+
*
|
|
10
|
+
* Usage:
|
|
11
|
+
* - Home screen sections
|
|
12
|
+
* - Dashboard sections
|
|
13
|
+
* - Settings groups
|
|
14
|
+
* - Content sections
|
|
15
|
+
*/
|
|
16
|
+
import React from 'react';
|
|
17
|
+
import { ViewStyle, TextStyle } from 'react-native';
|
|
18
|
+
export interface SectionContainerProps {
|
|
19
|
+
/** Section title (optional) */
|
|
20
|
+
title?: string;
|
|
21
|
+
/** Section title color (default: textPrimary) */
|
|
22
|
+
titleColor?: string;
|
|
23
|
+
/** Section title style override */
|
|
24
|
+
titleStyle?: TextStyle;
|
|
25
|
+
/** Container style override */
|
|
26
|
+
style?: ViewStyle;
|
|
27
|
+
/** Content to render inside section */
|
|
28
|
+
children: React.ReactNode;
|
|
29
|
+
/** Right action element (e.g., "See All" link) */
|
|
30
|
+
rightAction?: React.ReactNode;
|
|
31
|
+
}
|
|
32
|
+
export declare const SectionContainer: React.FC<SectionContainerProps>;
|
|
33
|
+
//# sourceMappingURL=SectionContainer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SectionContainer.d.ts","sourceRoot":"","sources":["../../../src/presentation/molecules/SectionContainer.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAoB,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAQtE,MAAM,WAAW,qBAAqB;IACpC,+BAA+B;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iDAAiD;IACjD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,mCAAmC;IACnC,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,+BAA+B;IAC/B,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,uCAAuC;IACvC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,kDAAkD;IAClD,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC/B;AAMD,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CA+B5D,CAAC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SectionContainer Molecule - Universal Section Wrapper
|
|
3
|
+
*
|
|
4
|
+
* Provides consistent section layout with optional title
|
|
5
|
+
* Theme: {{THEME_NAME}} ({{CATEGORY}} category)
|
|
6
|
+
*
|
|
7
|
+
* Atomic Design Level: MOLECULE
|
|
8
|
+
* Composition: View + AtomicText + Layout
|
|
9
|
+
*
|
|
10
|
+
* Usage:
|
|
11
|
+
* - Home screen sections
|
|
12
|
+
* - Dashboard sections
|
|
13
|
+
* - Settings groups
|
|
14
|
+
* - Content sections
|
|
15
|
+
*/
|
|
16
|
+
import React from 'react';
|
|
17
|
+
import { View, StyleSheet } from 'react-native';
|
|
18
|
+
import { AtomicText } from '../atoms/AtomicText';
|
|
19
|
+
import { useAppDesignTokens } from '../hooks/useAppDesignTokens';
|
|
20
|
+
// =============================================================================
|
|
21
|
+
// COMPONENT IMPLEMENTATION
|
|
22
|
+
// =============================================================================
|
|
23
|
+
export const SectionContainer = ({ title, titleColor, titleStyle, style, children, rightAction, }) => {
|
|
24
|
+
const tokens = useAppDesignTokens();
|
|
25
|
+
const styles = getStyles(tokens);
|
|
26
|
+
return (<View style={[styles.section, style]}>
|
|
27
|
+
{title && (<View style={styles.header}>
|
|
28
|
+
<AtomicText type="titleLarge" color={titleColor || "primary"} style={StyleSheet.flatten([
|
|
29
|
+
styles.sectionTitle,
|
|
30
|
+
titleStyle,
|
|
31
|
+
])}>
|
|
32
|
+
{title}
|
|
33
|
+
</AtomicText>
|
|
34
|
+
{rightAction && <View style={styles.rightAction}>{rightAction}</View>}
|
|
35
|
+
</View>)}
|
|
36
|
+
{children}
|
|
37
|
+
</View>);
|
|
38
|
+
};
|
|
39
|
+
// =============================================================================
|
|
40
|
+
// STYLES
|
|
41
|
+
// =============================================================================
|
|
42
|
+
const getStyles = (tokens) => StyleSheet.create({
|
|
43
|
+
section: {
|
|
44
|
+
marginBottom: tokens.spacing.lg,
|
|
45
|
+
paddingHorizontal: tokens.spacing.md,
|
|
46
|
+
},
|
|
47
|
+
header: {
|
|
48
|
+
flexDirection: 'row',
|
|
49
|
+
justifyContent: 'space-between',
|
|
50
|
+
alignItems: 'center',
|
|
51
|
+
marginBottom: tokens.spacing.md,
|
|
52
|
+
},
|
|
53
|
+
sectionTitle: {
|
|
54
|
+
fontSize: tokens.typography.titleLarge.fontSize,
|
|
55
|
+
fontWeight: tokens.typography.titleLarge.fontWeight,
|
|
56
|
+
},
|
|
57
|
+
rightAction: {
|
|
58
|
+
marginLeft: tokens.spacing.sm,
|
|
59
|
+
},
|
|
60
|
+
});
|
|
61
|
+
// =============================================================================
|
|
62
|
+
// EXPORTS
|
|
63
|
+
// =============================================================================
|
|
64
|
+
//# sourceMappingURL=SectionContainer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SectionContainer.js","sourceRoot":"","sources":["../../../src/presentation/molecules/SectionContainer.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,UAAU,EAAwB,MAAM,cAAc,CAAC;AACtE,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAqBjE,gFAAgF;AAChF,2BAA2B;AAC3B,gFAAgF;AAEhF,MAAM,CAAC,MAAM,gBAAgB,GAAoC,CAAC,EAChE,KAAK,EACL,UAAU,EACV,UAAU,EACV,KAAK,EACL,QAAQ,EACR,WAAW,GACZ,EAAE,EAAE;IACH,MAAM,MAAM,GAAG,kBAAkB,EAAE,CAAC;IACpC,MAAM,MAAM,GAAG,SAAS,CAAC,MAAM,CAAC,CAAC;IAEjC,OAAO,CACL,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC,CACnC;MAAA,CAAC,KAAK,IAAI,CACR,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CACzB;UAAA,CAAC,UAAU,CACT,IAAI,CAAC,YAAY,CACjB,KAAK,CAAC,CAAC,UAAU,IAAI,SAAS,CAAC,CAC/B,KAAK,CAAC,CAAC,UAAU,CAAC,OAAO,CAAC;gBACxB,MAAM,CAAC,YAAY;gBACnB,UAAU;aACX,CAAC,CAAC,CAEH;YAAA,CAAC,KAAK,CACR;UAAA,EAAE,UAAU,CACZ;UAAA,CAAC,WAAW,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC,WAAW,CAAC,EAAE,IAAI,CAAC,CACvE;QAAA,EAAE,IAAI,CAAC,CACR,CACD;MAAA,CAAC,QAAQ,CACX;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,gFAAgF;AAChF,SAAS;AACT,gFAAgF;AAEhF,MAAM,SAAS,GAAG,CAAC,MAA6C,EAAE,EAAE,CAClE,UAAU,CAAC,MAAM,CAAC;IAChB,OAAO,EAAE;QACP,YAAY,EAAE,MAAM,CAAC,OAAO,CAAC,EAAE;QAC/B,iBAAiB,EAAE,MAAM,CAAC,OAAO,CAAC,EAAE;KACrC;IACD,MAAM,EAAE;QACN,aAAa,EAAE,KAAK;QACpB,cAAc,EAAE,eAAe;QAC/B,UAAU,EAAE,QAAQ;QACpB,YAAY,EAAE,MAAM,CAAC,OAAO,CAAC,EAAE;KAChC;IACD,YAAY,EAAE;QACZ,QAAQ,EAAE,MAAM,CAAC,UAAU,CAAC,UAAU,CAAC,QAAQ;QAC/C,UAAU,EAAE,MAAM,CAAC,UAAU,CAAC,UAAU,CAAC,UAAU;KACpD;IACD,WAAW,EAAE;QACX,UAAU,EAAE,MAAM,CAAC,OAAO,CAAC,EAAE;KAC9B;CACF,CAAC,CAAC;AAEL,gFAAgF;AAChF,UAAU;AACV,gFAAgF"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SectionHeader Molecule - Universal Section Header
|
|
3
|
+
*
|
|
4
|
+
* Displays section title with optional subtitle
|
|
5
|
+
* Theme: {{THEME_NAME}} ({{CATEGORY}} category)
|
|
6
|
+
*
|
|
7
|
+
* Atomic Design Level: MOLECULE
|
|
8
|
+
* Composition: AtomicText + Layout
|
|
9
|
+
*
|
|
10
|
+
* Usage:
|
|
11
|
+
* - List headers
|
|
12
|
+
* - Grid headers
|
|
13
|
+
* - Section dividers
|
|
14
|
+
* - Screen headers
|
|
15
|
+
*/
|
|
16
|
+
import React from 'react';
|
|
17
|
+
import { ViewStyle, TextStyle } from 'react-native';
|
|
18
|
+
export interface SectionHeaderProps {
|
|
19
|
+
/** Main heading text */
|
|
20
|
+
title: string;
|
|
21
|
+
/** Optional subtitle text */
|
|
22
|
+
subtitle?: string;
|
|
23
|
+
/** Custom title color (default: textPrimary) */
|
|
24
|
+
titleColor?: string;
|
|
25
|
+
/** Custom subtitle color (default: textSecondary) */
|
|
26
|
+
subtitleColor?: string;
|
|
27
|
+
/** Container style override */
|
|
28
|
+
style?: ViewStyle;
|
|
29
|
+
/** Title style override */
|
|
30
|
+
titleStyle?: TextStyle;
|
|
31
|
+
/** Subtitle style override */
|
|
32
|
+
subtitleStyle?: TextStyle;
|
|
33
|
+
/** Right action element (e.g., button, icon) */
|
|
34
|
+
rightAction?: React.ReactNode;
|
|
35
|
+
}
|
|
36
|
+
export declare const SectionHeader: React.FC<SectionHeaderProps>;
|
|
37
|
+
//# sourceMappingURL=SectionHeader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SectionHeader.d.ts","sourceRoot":"","sources":["../../../src/presentation/molecules/SectionHeader.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAoB,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAQtE,MAAM,WAAW,kBAAkB;IACjC,wBAAwB;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,6BAA6B;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,gDAAgD;IAChD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,qDAAqD;IACrD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,+BAA+B;IAC/B,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,2BAA2B;IAC3B,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,8BAA8B;IAC9B,aAAa,CAAC,EAAE,SAAS,CAAC;IAC1B,gDAAgD;IAChD,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC/B;AAMD,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CA0CtD,CAAC"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SectionHeader Molecule - Universal Section Header
|
|
3
|
+
*
|
|
4
|
+
* Displays section title with optional subtitle
|
|
5
|
+
* Theme: {{THEME_NAME}} ({{CATEGORY}} category)
|
|
6
|
+
*
|
|
7
|
+
* Atomic Design Level: MOLECULE
|
|
8
|
+
* Composition: AtomicText + Layout
|
|
9
|
+
*
|
|
10
|
+
* Usage:
|
|
11
|
+
* - List headers
|
|
12
|
+
* - Grid headers
|
|
13
|
+
* - Section dividers
|
|
14
|
+
* - Screen headers
|
|
15
|
+
*/
|
|
16
|
+
import React from 'react';
|
|
17
|
+
import { View, StyleSheet } from 'react-native';
|
|
18
|
+
import { AtomicText } from '../atoms/AtomicText';
|
|
19
|
+
import { useAppDesignTokens } from '../hooks/useAppDesignTokens';
|
|
20
|
+
// =============================================================================
|
|
21
|
+
// COMPONENT IMPLEMENTATION
|
|
22
|
+
// =============================================================================
|
|
23
|
+
export const SectionHeader = ({ title, subtitle, titleColor, subtitleColor, style, titleStyle, subtitleStyle, rightAction, }) => {
|
|
24
|
+
const tokens = useAppDesignTokens();
|
|
25
|
+
const styles = getStyles(tokens);
|
|
26
|
+
return (<View style={[styles.container, style]}>
|
|
27
|
+
<View style={styles.textContainer}>
|
|
28
|
+
<AtomicText type="headlineLarge" color={titleColor || "primary"} style={StyleSheet.flatten([
|
|
29
|
+
styles.title,
|
|
30
|
+
titleStyle,
|
|
31
|
+
])}>
|
|
32
|
+
{title}
|
|
33
|
+
</AtomicText>
|
|
34
|
+
{subtitle && (<AtomicText type="bodyMedium" color={subtitleColor || "secondary"} style={StyleSheet.flatten([
|
|
35
|
+
styles.subtitle,
|
|
36
|
+
subtitleStyle,
|
|
37
|
+
])}>
|
|
38
|
+
{subtitle}
|
|
39
|
+
</AtomicText>)}
|
|
40
|
+
</View>
|
|
41
|
+
{rightAction && <View style={styles.rightAction}>{rightAction}</View>}
|
|
42
|
+
</View>);
|
|
43
|
+
};
|
|
44
|
+
// =============================================================================
|
|
45
|
+
// STYLES
|
|
46
|
+
// =============================================================================
|
|
47
|
+
const getStyles = (tokens) => StyleSheet.create({
|
|
48
|
+
container: {
|
|
49
|
+
flexDirection: 'row',
|
|
50
|
+
justifyContent: 'space-between',
|
|
51
|
+
alignItems: 'center',
|
|
52
|
+
paddingHorizontal: tokens.spacing.md,
|
|
53
|
+
paddingVertical: tokens.spacing.sm,
|
|
54
|
+
},
|
|
55
|
+
textContainer: {
|
|
56
|
+
flex: 1,
|
|
57
|
+
},
|
|
58
|
+
title: {
|
|
59
|
+
fontSize: tokens.typography.headlineLarge.fontSize,
|
|
60
|
+
fontWeight: tokens.typography.headlineLarge.fontWeight,
|
|
61
|
+
marginBottom: tokens.spacing.xs,
|
|
62
|
+
},
|
|
63
|
+
subtitle: {
|
|
64
|
+
fontSize: tokens.typography.bodyMedium.fontSize,
|
|
65
|
+
},
|
|
66
|
+
rightAction: {
|
|
67
|
+
marginLeft: tokens.spacing.sm,
|
|
68
|
+
},
|
|
69
|
+
});
|
|
70
|
+
// =============================================================================
|
|
71
|
+
// EXPORTS
|
|
72
|
+
// =============================================================================
|
|
73
|
+
//# sourceMappingURL=SectionHeader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SectionHeader.js","sourceRoot":"","sources":["../../../src/presentation/molecules/SectionHeader.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,UAAU,EAAwB,MAAM,cAAc,CAAC;AACtE,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAyBjE,gFAAgF;AAChF,2BAA2B;AAC3B,gFAAgF;AAEhF,MAAM,CAAC,MAAM,aAAa,GAAiC,CAAC,EAC1D,KAAK,EACL,QAAQ,EACR,UAAU,EACV,aAAa,EACb,KAAK,EACL,UAAU,EACV,aAAa,EACb,WAAW,GACZ,EAAE,EAAE;IACH,MAAM,MAAM,GAAG,kBAAkB,EAAE,CAAC;IACpC,MAAM,MAAM,GAAG,SAAS,CAAC,MAAM,CAAC,CAAC;IAEjC,OAAO,CACL,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC,CACrC;MAAA,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC,CAChC;QAAA,CAAC,UAAU,CACT,IAAI,CAAC,eAAe,CACpB,KAAK,CAAC,CAAC,UAAU,IAAI,SAAS,CAAC,CAC/B,KAAK,CAAC,CAAC,UAAU,CAAC,OAAO,CAAC;YACxB,MAAM,CAAC,KAAK;YACZ,UAAU;SACX,CAAC,CAAC,CAEH;UAAA,CAAC,KAAK,CACR;QAAA,EAAE,UAAU,CACZ;QAAA,CAAC,QAAQ,IAAI,CACX,CAAC,UAAU,CACT,IAAI,CAAC,YAAY,CACjB,KAAK,CAAC,CAAC,aAAa,IAAI,WAAW,CAAC,CACpC,KAAK,CAAC,CAAC,UAAU,CAAC,OAAO,CAAC;gBACxB,MAAM,CAAC,QAAQ;gBACf,aAAa;aACd,CAAC,CAAC,CAEH;YAAA,CAAC,QAAQ,CACX;UAAA,EAAE,UAAU,CAAC,CACd,CACH;MAAA,EAAE,IAAI,CACN;MAAA,CAAC,WAAW,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC,WAAW,CAAC,EAAE,IAAI,CAAC,CACvE;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,gFAAgF;AAChF,SAAS;AACT,gFAAgF;AAEhF,MAAM,SAAS,GAAG,CAAC,MAA6C,EAAE,EAAE,CAClE,UAAU,CAAC,MAAM,CAAC;IAChB,SAAS,EAAE;QACT,aAAa,EAAE,KAAK;QACpB,cAAc,EAAE,eAAe;QAC/B,UAAU,EAAE,QAAQ;QACpB,iBAAiB,EAAE,MAAM,CAAC,OAAO,CAAC,EAAE;QACpC,eAAe,EAAE,MAAM,CAAC,OAAO,CAAC,EAAE;KACnC;IACD,aAAa,EAAE;QACb,IAAI,EAAE,CAAC;KACR;IACD,KAAK,EAAE;QACL,QAAQ,EAAE,MAAM,CAAC,UAAU,CAAC,aAAa,CAAC,QAAQ;QAClD,UAAU,EAAE,MAAM,CAAC,UAAU,CAAC,aAAa,CAAC,UAAU;QACtD,YAAY,EAAE,MAAM,CAAC,OAAO,CAAC,EAAE;KAChC;IACD,QAAQ,EAAE;QACR,QAAQ,EAAE,MAAM,CAAC,UAAU,CAAC,UAAU,CAAC,QAAQ;KAChD;IACD,WAAW,EAAE;QACX,UAAU,EAAE,MAAM,CAAC,OAAO,CAAC,EAAE;KAC9B;CACF,CAAC,CAAC;AAEL,gFAAgF;AAChF,UAAU;AACV,gFAAgF"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AtomicConfirmationModal Style Utilities
|
|
3
|
+
*
|
|
4
|
+
* Styling functions for confirmation modal component
|
|
5
|
+
*/
|
|
6
|
+
import { ViewStyle } from 'react-native';
|
|
7
|
+
import { ConfirmationModalVariant, ConfirmationModalVariantConfig } from '../types';
|
|
8
|
+
import type { DesignTokens } from '../../../tokens/AppDesignTokens';
|
|
9
|
+
/**
|
|
10
|
+
* Get variant configuration (icon and color only)
|
|
11
|
+
* Note: Confirm text is handled in component with translations
|
|
12
|
+
*/
|
|
13
|
+
export declare const getVariantConfig: (variant: ConfirmationModalVariant, tokens: DesignTokens) => Omit<ConfirmationModalVariantConfig, "confirmText">;
|
|
14
|
+
/**
|
|
15
|
+
* Get modal overlay style
|
|
16
|
+
*/
|
|
17
|
+
export declare const getModalOverlayStyle: (tokens: DesignTokens) => ViewStyle;
|
|
18
|
+
/**
|
|
19
|
+
* Get backdrop style (invisible layer for dismissing)
|
|
20
|
+
*/
|
|
21
|
+
export declare const getBackdropStyle: () => ViewStyle;
|
|
22
|
+
/**
|
|
23
|
+
* Get modal container style
|
|
24
|
+
*/
|
|
25
|
+
export declare const getModalContainerStyle: (tokens: DesignTokens) => ViewStyle;
|
|
26
|
+
/**
|
|
27
|
+
* Get icon container style
|
|
28
|
+
*/
|
|
29
|
+
export declare const getIconContainerStyle: (tokens: DesignTokens) => ViewStyle;
|
|
30
|
+
/**
|
|
31
|
+
* Get title container style
|
|
32
|
+
*/
|
|
33
|
+
export declare const getTitleContainerStyle: (tokens: DesignTokens) => ViewStyle;
|
|
34
|
+
/**
|
|
35
|
+
* Get message container style
|
|
36
|
+
*/
|
|
37
|
+
export declare const getMessageContainerStyle: (tokens: DesignTokens) => ViewStyle;
|
|
38
|
+
/**
|
|
39
|
+
* Get button container style
|
|
40
|
+
*/
|
|
41
|
+
export declare const getButtonContainerStyle: (tokens: DesignTokens) => ViewStyle;
|
|
42
|
+
/**
|
|
43
|
+
* Get button style
|
|
44
|
+
*/
|
|
45
|
+
export declare const getButtonStyle: () => ViewStyle;
|
|
46
|
+
/**
|
|
47
|
+
* Get confirm button variant based on modal variant
|
|
48
|
+
*/
|
|
49
|
+
export declare const getConfirmButtonVariant: (variant: ConfirmationModalVariant) => "primary" | "secondary" | "tertiary" | "outline" | "ghost";
|
|
50
|
+
//# sourceMappingURL=confirmationModalStyles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"confirmationModalStyles.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/molecules/confirmation-modal/styles/confirmationModalStyles.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,wBAAwB,EAAE,8BAA8B,EAAE,MAAM,UAAU,CAAC;AACpF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAEpE;;;GAGG;AACH,eAAO,MAAM,gBAAgB,GAC3B,SAAS,wBAAwB,EACjC,QAAQ,YAAY,KACnB,IAAI,CAAC,8BAA8B,EAAE,aAAa,CAwBpD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB,GAAI,QAAQ,YAAY,KAAG,SAK1D,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,gBAAgB,QAAO,SAMlC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,sBAAsB,GAAI,QAAQ,YAAY,KAAG,SAS5D,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,qBAAqB,GAAI,QAAQ,YAAY,KAAG,SAE3D,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,sBAAsB,GAAI,QAAQ,YAAY,KAAG,SAE5D,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,wBAAwB,GAAI,QAAQ,YAAY,KAAG,SAE9D,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,uBAAuB,GAAI,QAAQ,YAAY,KAAG,SAI7D,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,cAAc,QAAO,SAEhC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,uBAAuB,GAClC,SAAS,wBAAwB,KAChC,SAAS,GAAG,WAAW,GAAG,UAAU,GAAG,SAAS,GAAG,OAYrD,CAAC"}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AtomicConfirmationModal Style Utilities
|
|
3
|
+
*
|
|
4
|
+
* Styling functions for confirmation modal component
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Get variant configuration (icon and color only)
|
|
8
|
+
* Note: Confirm text is handled in component with translations
|
|
9
|
+
*/
|
|
10
|
+
export const getVariantConfig = (variant, tokens) => {
|
|
11
|
+
switch (variant) {
|
|
12
|
+
case 'destructive':
|
|
13
|
+
return {
|
|
14
|
+
icon: 'warning',
|
|
15
|
+
iconColor: 'error',
|
|
16
|
+
};
|
|
17
|
+
case 'warning':
|
|
18
|
+
return {
|
|
19
|
+
icon: 'warning',
|
|
20
|
+
iconColor: 'warning',
|
|
21
|
+
};
|
|
22
|
+
case 'success':
|
|
23
|
+
return {
|
|
24
|
+
icon: 'check-circle',
|
|
25
|
+
iconColor: 'success',
|
|
26
|
+
};
|
|
27
|
+
case 'default':
|
|
28
|
+
default:
|
|
29
|
+
return {
|
|
30
|
+
icon: 'help-circle',
|
|
31
|
+
iconColor: 'primary',
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* Get modal overlay style
|
|
37
|
+
*/
|
|
38
|
+
export const getModalOverlayStyle = (tokens) => ({
|
|
39
|
+
flex: 1,
|
|
40
|
+
justifyContent: 'center',
|
|
41
|
+
alignItems: 'center',
|
|
42
|
+
backgroundColor: 'rgba(0, 0, 0, 0.5)',
|
|
43
|
+
});
|
|
44
|
+
/**
|
|
45
|
+
* Get backdrop style (invisible layer for dismissing)
|
|
46
|
+
*/
|
|
47
|
+
export const getBackdropStyle = () => ({
|
|
48
|
+
position: 'absolute',
|
|
49
|
+
top: 0,
|
|
50
|
+
left: 0,
|
|
51
|
+
right: 0,
|
|
52
|
+
bottom: 0,
|
|
53
|
+
});
|
|
54
|
+
/**
|
|
55
|
+
* Get modal container style
|
|
56
|
+
*/
|
|
57
|
+
export const getModalContainerStyle = (tokens) => ({
|
|
58
|
+
width: '85%',
|
|
59
|
+
maxWidth: 400,
|
|
60
|
+
backgroundColor: tokens.colors.surface,
|
|
61
|
+
borderRadius: 16,
|
|
62
|
+
padding: 24,
|
|
63
|
+
alignItems: 'center',
|
|
64
|
+
borderWidth: 1,
|
|
65
|
+
borderColor: tokens.colors.outline,
|
|
66
|
+
});
|
|
67
|
+
/**
|
|
68
|
+
* Get icon container style
|
|
69
|
+
*/
|
|
70
|
+
export const getIconContainerStyle = (tokens) => ({
|
|
71
|
+
marginBottom: 16,
|
|
72
|
+
});
|
|
73
|
+
/**
|
|
74
|
+
* Get title container style
|
|
75
|
+
*/
|
|
76
|
+
export const getTitleContainerStyle = (tokens) => ({
|
|
77
|
+
marginBottom: 8,
|
|
78
|
+
});
|
|
79
|
+
/**
|
|
80
|
+
* Get message container style
|
|
81
|
+
*/
|
|
82
|
+
export const getMessageContainerStyle = (tokens) => ({
|
|
83
|
+
marginBottom: 24,
|
|
84
|
+
});
|
|
85
|
+
/**
|
|
86
|
+
* Get button container style
|
|
87
|
+
*/
|
|
88
|
+
export const getButtonContainerStyle = (tokens) => ({
|
|
89
|
+
flexDirection: 'row',
|
|
90
|
+
gap: 12,
|
|
91
|
+
width: '100%',
|
|
92
|
+
});
|
|
93
|
+
/**
|
|
94
|
+
* Get button style
|
|
95
|
+
*/
|
|
96
|
+
export const getButtonStyle = () => ({
|
|
97
|
+
flex: 1,
|
|
98
|
+
});
|
|
99
|
+
/**
|
|
100
|
+
* Get confirm button variant based on modal variant
|
|
101
|
+
*/
|
|
102
|
+
export const getConfirmButtonVariant = (variant) => {
|
|
103
|
+
switch (variant) {
|
|
104
|
+
case 'destructive':
|
|
105
|
+
return 'primary'; // Will use error color
|
|
106
|
+
case 'warning':
|
|
107
|
+
return 'primary'; // Will use warning color
|
|
108
|
+
case 'success':
|
|
109
|
+
return 'primary'; // Will use success color
|
|
110
|
+
case 'default':
|
|
111
|
+
default:
|
|
112
|
+
return 'primary';
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
//# sourceMappingURL=confirmationModalStyles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"confirmationModalStyles.js","sourceRoot":"","sources":["../../../../../src/presentation/molecules/confirmation-modal/styles/confirmationModalStyles.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAMH;;;GAGG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAC9B,OAAiC,EACjC,MAAoB,EACiC,EAAE;IACvD,QAAQ,OAAO,EAAE,CAAC;QAChB,KAAK,aAAa;YAChB,OAAO;gBACL,IAAI,EAAE,SAAS;gBACf,SAAS,EAAE,OAAO;aACnB,CAAC;QACJ,KAAK,SAAS;YACZ,OAAO;gBACL,IAAI,EAAE,SAAS;gBACf,SAAS,EAAE,SAAS;aACrB,CAAC;QACJ,KAAK,SAAS;YACZ,OAAO;gBACL,IAAI,EAAE,cAAc;gBACpB,SAAS,EAAE,SAAS;aACrB,CAAC;QACJ,KAAK,SAAS,CAAC;QACf;YACE,OAAO;gBACL,IAAI,EAAE,aAAa;gBACnB,SAAS,EAAE,SAAS;aACrB,CAAC;IACN,CAAC;AACH,CAAC,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,MAAoB,EAAa,EAAE,CAAC,CAAC;IACxE,IAAI,EAAE,CAAC;IACP,cAAc,EAAE,QAAQ;IACxB,UAAU,EAAE,QAAQ;IACpB,eAAe,EAAE,oBAAoB;CACtC,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAc,EAAE,CAAC,CAAC;IAChD,QAAQ,EAAE,UAAU;IACpB,GAAG,EAAE,CAAC;IACN,IAAI,EAAE,CAAC;IACP,KAAK,EAAE,CAAC;IACR,MAAM,EAAE,CAAC;CACV,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,MAAoB,EAAa,EAAE,CAAC,CAAC;IAC1E,KAAK,EAAE,KAAK;IACZ,QAAQ,EAAE,GAAG;IACb,eAAe,EAAE,MAAM,CAAC,MAAM,CAAC,OAAO;IACtC,YAAY,EAAE,EAAE;IAChB,OAAO,EAAE,EAAE;IACX,UAAU,EAAE,QAAQ;IACpB,WAAW,EAAE,CAAC;IACd,WAAW,EAAE,MAAM,CAAC,MAAM,CAAC,OAAO;CACnC,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,MAAoB,EAAa,EAAE,CAAC,CAAC;IACzE,YAAY,EAAE,EAAE;CACjB,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,MAAoB,EAAa,EAAE,CAAC,CAAC;IAC1E,YAAY,EAAE,CAAC;CAChB,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,MAAoB,EAAa,EAAE,CAAC,CAAC;IAC5E,YAAY,EAAE,EAAE;CACjB,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,MAAoB,EAAa,EAAE,CAAC,CAAC;IAC3E,aAAa,EAAE,KAAK;IACpB,GAAG,EAAE,EAAE;IACP,KAAK,EAAE,MAAM;CACd,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG,GAAc,EAAE,CAAC,CAAC;IAC9C,IAAI,EAAE,CAAC;CACR,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,CACrC,OAAiC,EAC2B,EAAE;IAC9D,QAAQ,OAAO,EAAE,CAAC;QAChB,KAAK,aAAa;YAChB,OAAO,SAAS,CAAC,CAAC,uBAAuB;QAC3C,KAAK,SAAS;YACZ,OAAO,SAAS,CAAC,CAAC,yBAAyB;QAC7C,KAAK,SAAS;YACZ,OAAO,SAAS,CAAC,CAAC,yBAAyB;QAC7C,KAAK,SAAS,CAAC;QACf;YACE,OAAO,SAAS,CAAC;IACrB,CAAC;AACH,CAAC,CAAC"}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AtomicConfirmationModal Type Definitions
|
|
3
|
+
*
|
|
4
|
+
* Type-safe interfaces for confirmation modal component
|
|
5
|
+
*/
|
|
6
|
+
import { StyleProp, ViewStyle } from 'react-native';
|
|
7
|
+
import type { AtomicIconColor } from '../../../atoms/AtomicIcon';
|
|
8
|
+
/**
|
|
9
|
+
* Confirmation modal variant
|
|
10
|
+
* Determines the visual style and default behavior
|
|
11
|
+
*/
|
|
12
|
+
export type ConfirmationModalVariant = 'default' | 'destructive' | 'warning' | 'success';
|
|
13
|
+
/**
|
|
14
|
+
* Props for AtomicConfirmationModal component
|
|
15
|
+
*/
|
|
16
|
+
export interface AtomicConfirmationModalProps {
|
|
17
|
+
/**
|
|
18
|
+
* Whether the modal is visible
|
|
19
|
+
*/
|
|
20
|
+
visible: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Modal title (required)
|
|
23
|
+
* e.g., "Delete Item?", "Confirm Action", "Are you sure?"
|
|
24
|
+
*/
|
|
25
|
+
title: string;
|
|
26
|
+
/**
|
|
27
|
+
* Modal message/description (required)
|
|
28
|
+
* e.g., "This action cannot be undone."
|
|
29
|
+
*/
|
|
30
|
+
message: string;
|
|
31
|
+
/**
|
|
32
|
+
* Variant determines visual style
|
|
33
|
+
* @default 'default'
|
|
34
|
+
*/
|
|
35
|
+
variant?: ConfirmationModalVariant;
|
|
36
|
+
/**
|
|
37
|
+
* Confirm button text
|
|
38
|
+
* @default 'Confirm' (or variant-specific default)
|
|
39
|
+
*/
|
|
40
|
+
confirmText?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Cancel button text
|
|
43
|
+
* @default 'Cancel'
|
|
44
|
+
*/
|
|
45
|
+
cancelText?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Icon name to display at top (MaterialIcons name)
|
|
48
|
+
* If not provided, uses variant-specific default icon
|
|
49
|
+
* @see https://fonts.google.com/icons
|
|
50
|
+
*/
|
|
51
|
+
icon?: string;
|
|
52
|
+
/**
|
|
53
|
+
* Callback when user confirms
|
|
54
|
+
*/
|
|
55
|
+
onConfirm: () => void;
|
|
56
|
+
/**
|
|
57
|
+
* Callback when user cancels or dismisses
|
|
58
|
+
*/
|
|
59
|
+
onCancel: () => void;
|
|
60
|
+
/**
|
|
61
|
+
* Whether to show backdrop (tap outside to close)
|
|
62
|
+
* @default true
|
|
63
|
+
*/
|
|
64
|
+
showBackdrop?: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* Whether backdrop is dismissible
|
|
67
|
+
* @default true
|
|
68
|
+
*/
|
|
69
|
+
backdropDismissible?: boolean;
|
|
70
|
+
/**
|
|
71
|
+
* Custom style for modal container
|
|
72
|
+
*/
|
|
73
|
+
style?: StyleProp<ViewStyle>;
|
|
74
|
+
/**
|
|
75
|
+
* Test ID for testing
|
|
76
|
+
*/
|
|
77
|
+
testID?: string;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Variant configuration
|
|
81
|
+
* Maps variant to icon, colors, and default text
|
|
82
|
+
*/
|
|
83
|
+
export interface ConfirmationModalVariantConfig {
|
|
84
|
+
icon: string;
|
|
85
|
+
confirmText: string;
|
|
86
|
+
iconColor: AtomicIconColor;
|
|
87
|
+
}
|
|
88
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/molecules/confirmation-modal/types/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAEjE;;;GAGG;AACH,MAAM,MAAM,wBAAwB,GAChC,SAAS,GACT,aAAa,GACb,SAAS,GACT,SAAS,CAAC;AAEd;;GAEG;AACH,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IAEjB;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,OAAO,CAAC,EAAE,wBAAwB,CAAC;IAEnC;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,SAAS,EAAE,MAAM,IAAI,CAAC;IAEtB;;OAEG;IACH,QAAQ,EAAE,MAAM,IAAI,CAAC;IAErB;;;OAGG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB;;;OAGG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAE9B;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAE7B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;GAGG;AACH,MAAM,WAAW,8BAA8B;IAC7C,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,eAAe,CAAC;CAC5B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/presentation/molecules/confirmation-modal/types/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Molecule Components Export Index
|
|
3
|
+
*
|
|
4
|
+
* Molecules are combinations of atoms that form more complex UI components
|
|
5
|
+
* Theme: {{THEME_NAME}} ({{CATEGORY}} category)
|
|
6
|
+
*
|
|
7
|
+
* Atomic Design Level: MOLECULES
|
|
8
|
+
*/
|
|
9
|
+
export { FormField } from './FormField';
|
|
10
|
+
export { ListItem } from './ListItem';
|
|
11
|
+
export { SearchBar } from './SearchBar';
|
|
12
|
+
export { LanguageSwitcher } from './LanguageSwitcher';
|
|
13
|
+
export { SectionCard } from './SectionCard';
|
|
14
|
+
export { IconContainer } from './IconContainer';
|
|
15
|
+
export { ScreenHeader } from './ScreenHeader';
|
|
16
|
+
export { AtomicConfirmationModal, useConfirmationModal } from './AtomicConfirmationModal';
|
|
17
|
+
export type { FormFieldProps } from './FormField';
|
|
18
|
+
export type { ListItemProps } from './ListItem';
|
|
19
|
+
export type { SearchBarProps } from './SearchBar';
|
|
20
|
+
export type { ScreenHeaderProps } from './ScreenHeader';
|
|
21
|
+
export type { AtomicConfirmationModalProps, ConfirmationModalVariant } from './AtomicConfirmationModal';
|
|
22
|
+
import type { FormFieldProps } from './FormField';
|
|
23
|
+
import type { ListItemProps } from './ListItem';
|
|
24
|
+
import type { SearchBarProps } from './SearchBar';
|
|
25
|
+
import type { ScreenHeaderProps } from './ScreenHeader';
|
|
26
|
+
import type { AtomicConfirmationModalProps } from './AtomicConfirmationModal';
|
|
27
|
+
export type MoleculeComponentProps = FormFieldProps | ListItemProps | SearchBarProps | ScreenHeaderProps | AtomicConfirmationModalProps;
|
|
28
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/presentation/molecules/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,uBAAuB,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAM1F,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,YAAY,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACxD,YAAY,EAAE,4BAA4B,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAGxG,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,2BAA2B,CAAC;AAE9E,MAAM,MAAM,sBAAsB,GAC9B,cAAc,GACd,aAAa,GACb,cAAc,GACd,iBAAiB,GACjB,4BAA4B,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Molecule Components Export Index
|
|
3
|
+
*
|
|
4
|
+
* Molecules are combinations of atoms that form more complex UI components
|
|
5
|
+
* Theme: {{THEME_NAME}} ({{CATEGORY}} category)
|
|
6
|
+
*
|
|
7
|
+
* Atomic Design Level: MOLECULES
|
|
8
|
+
*/
|
|
9
|
+
// Component exports
|
|
10
|
+
export { FormField } from './FormField';
|
|
11
|
+
export { ListItem } from './ListItem';
|
|
12
|
+
export { SearchBar } from './SearchBar';
|
|
13
|
+
export { LanguageSwitcher } from './LanguageSwitcher';
|
|
14
|
+
export { SectionCard } from './SectionCard';
|
|
15
|
+
export { IconContainer } from './IconContainer';
|
|
16
|
+
export { ScreenHeader } from './ScreenHeader';
|
|
17
|
+
export { AtomicConfirmationModal, useConfirmationModal } from './AtomicConfirmationModal';
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/presentation/molecules/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,oBAAoB;AACpB,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,uBAAuB,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC"}
|