@zj-dynamics/components-native 0.0.0-stage → 0.2.0
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/LICENSE +21 -0
- package/NOTICE.foundation +21 -0
- package/README.md +20 -2
- package/RulnarComponentsNative.podspec +16 -0
- package/dist/AutoLink.d.ts +9 -0
- package/dist/AutoLink.js +63 -0
- package/dist/BottomSheetKeyboardAwareScrollView.d.ts +12 -0
- package/dist/BottomSheetKeyboardAwareScrollView.js +19 -0
- package/dist/Button.d.ts +37 -0
- package/dist/Button.js +24 -0
- package/dist/Checkbox.d.ts +37 -0
- package/dist/Checkbox.js +73 -0
- package/dist/Content.d.ts +16 -0
- package/dist/Content.js +17 -0
- package/dist/ContentOverlay.d.ts +31 -0
- package/dist/ContentOverlay.js +151 -0
- package/dist/Divider.d.ts +6 -0
- package/dist/Divider.js +20 -0
- package/dist/Flex.d.ts +10 -0
- package/dist/Flex.js +19 -0
- package/dist/Icon.d.ts +11 -0
- package/dist/Icon.js +17 -0
- package/dist/InputCurrency.d.ts +12 -0
- package/dist/InputCurrency.js +57 -0
- package/dist/InputText.d.ts +32 -0
- package/dist/InputText.js +103 -0
- package/dist/NativeTextFields.d.ts +22 -0
- package/dist/NativeTextFields.js +59 -0
- package/dist/Switch.d.ts +17 -0
- package/dist/Switch.js +27 -0
- package/dist/controlledField.d.ts +4 -0
- package/dist/controlledField.js +9 -0
- package/dist/foundationText/ActionItem/ActionItem.d.ts +42 -0
- package/dist/foundationText/ActionItem/ActionItem.js +31 -0
- package/dist/foundationText/ActionItem/ActionItem.style.d.ts +21 -0
- package/dist/foundationText/ActionItem/ActionItem.style.js +24 -0
- package/dist/foundationText/ActionItem/ActionItemGroup.d.ts +12 -0
- package/dist/foundationText/ActionItem/ActionItemGroup.js +18 -0
- package/dist/foundationText/ActionItem/components/ActionItemContainer.d.ts +10 -0
- package/dist/foundationText/ActionItem/components/ActionItemContainer.js +17 -0
- package/dist/foundationText/ActionItem/components/ActionItemContainer.style.d.ts +10 -0
- package/dist/foundationText/ActionItem/components/ActionItemContainer.style.js +13 -0
- package/dist/foundationText/ActionItem/index.d.ts +4 -0
- package/dist/foundationText/ActionItem/index.js +3 -0
- package/dist/foundationText/ActionLabel/ActionLabel.d.ts +28 -0
- package/dist/foundationText/ActionLabel/ActionLabel.js +22 -0
- package/dist/foundationText/ActionLabel/index.d.ts +2 -0
- package/dist/foundationText/ActionLabel/index.js +1 -0
- package/dist/foundationText/ActivityIndicator/ActivityIndicator.d.ts +46 -0
- package/dist/foundationText/ActivityIndicator/ActivityIndicator.js +191 -0
- package/dist/foundationText/ActivityIndicator/index.d.ts +2 -0
- package/dist/foundationText/ActivityIndicator/index.js +1 -0
- package/dist/foundationText/Banner/Banner.d.ts +3 -0
- package/dist/foundationText/Banner/Banner.js +64 -0
- package/dist/foundationText/Banner/Banner.style.d.ts +56 -0
- package/dist/foundationText/Banner/Banner.style.js +59 -0
- package/dist/foundationText/Banner/components/BannerIcon/BannerIcon.d.ts +8 -0
- package/dist/foundationText/Banner/components/BannerIcon/BannerIcon.js +9 -0
- package/dist/foundationText/Banner/components/BannerIcon/BannerIcon.style.d.ts +18 -0
- package/dist/foundationText/Banner/components/BannerIcon/BannerIcon.style.js +21 -0
- package/dist/foundationText/Banner/index.d.ts +2 -0
- package/dist/foundationText/Banner/index.js +1 -0
- package/dist/foundationText/Banner/types.d.ts +63 -0
- package/dist/foundationText/Banner/types.js +1 -0
- package/dist/foundationText/BottomSheet/BottomSheet.d.ts +32 -0
- package/dist/foundationText/BottomSheet/BottomSheet.js +75 -0
- package/dist/foundationText/BottomSheet/BottomSheet.style.d.ts +26 -0
- package/dist/foundationText/BottomSheet/BottomSheet.style.js +30 -0
- package/dist/foundationText/BottomSheet/components/BottomSheetOption/BottomSheetOption.d.ts +13 -0
- package/dist/foundationText/BottomSheet/components/BottomSheetOption/BottomSheetOption.js +16 -0
- package/dist/foundationText/BottomSheet/components/BottomSheetOption/BottomSheetOption.styles.d.ts +16 -0
- package/dist/foundationText/BottomSheet/components/BottomSheetOption/BottomSheetOption.styles.js +19 -0
- package/dist/foundationText/BottomSheet/components/BottomSheetOption/index.d.ts +2 -0
- package/dist/foundationText/BottomSheet/components/BottomSheetOption/index.js +1 -0
- package/dist/foundationText/BottomSheet/hooks/useBottomSheetBackHandler.d.ts +8 -0
- package/dist/foundationText/BottomSheet/hooks/useBottomSheetBackHandler.js +25 -0
- package/dist/foundationText/BottomSheet/index.d.ts +4 -0
- package/dist/foundationText/BottomSheet/index.js +2 -0
- package/dist/foundationText/ButtonGroup/ButtonGroup.d.ts +30 -0
- package/dist/foundationText/ButtonGroup/ButtonGroup.js +25 -0
- package/dist/foundationText/ButtonGroup/ButtonGroup.style.d.ts +16 -0
- package/dist/foundationText/ButtonGroup/ButtonGroup.style.js +19 -0
- package/dist/foundationText/ButtonGroup/ButtonGroupAction.d.ts +47 -0
- package/dist/foundationText/ButtonGroup/ButtonGroupAction.js +11 -0
- package/dist/foundationText/ButtonGroup/components/SecondaryActionSheet/SecondaryActionSheet.d.ts +14 -0
- package/dist/foundationText/ButtonGroup/components/SecondaryActionSheet/SecondaryActionSheet.js +15 -0
- package/dist/foundationText/ButtonGroup/components/SecondaryActionSheet/index.d.ts +1 -0
- package/dist/foundationText/ButtonGroup/components/SecondaryActionSheet/index.js +1 -0
- package/dist/foundationText/ButtonGroup/index.d.ts +3 -0
- package/dist/foundationText/ButtonGroup/index.js +2 -0
- package/dist/foundationText/ButtonGroup/types.d.ts +7 -0
- package/dist/foundationText/ButtonGroup/types.js +1 -0
- package/dist/foundationText/ButtonGroup/utils.d.ts +19 -0
- package/dist/foundationText/ButtonGroup/utils.js +41 -0
- package/dist/foundationText/Card/Card.d.ts +41 -0
- package/dist/foundationText/Card/Card.js +26 -0
- package/dist/foundationText/Card/Card.style.d.ts +56 -0
- package/dist/foundationText/Card/Card.style.js +38 -0
- package/dist/foundationText/Card/components/InternalCardHeader.d.ts +10 -0
- package/dist/foundationText/Card/components/InternalCardHeader.js +16 -0
- package/dist/foundationText/Card/components/InternalCardHeader.style.d.ts +14 -0
- package/dist/foundationText/Card/components/InternalCardHeader.style.js +17 -0
- package/dist/foundationText/Card/components/index.d.ts +1 -0
- package/dist/foundationText/Card/components/index.js +1 -0
- package/dist/foundationText/Card/index.d.ts +2 -0
- package/dist/foundationText/Card/index.js +1 -0
- package/dist/foundationText/Chip/Chip.d.ts +45 -0
- package/dist/foundationText/Chip/Chip.js +88 -0
- package/dist/foundationText/Chip/Chip.style.d.ts +27 -0
- package/dist/foundationText/Chip/Chip.style.js +31 -0
- package/dist/foundationText/Chip/index.d.ts +2 -0
- package/dist/foundationText/Chip/index.js +1 -0
- package/dist/foundationText/ComponentSettingsContext/ComponentSettingsContext.d.ts +57 -0
- package/dist/foundationText/ComponentSettingsContext/ComponentSettingsContext.js +26 -0
- package/dist/foundationText/ComponentSettingsContext/index.d.ts +1 -0
- package/dist/foundationText/ComponentSettingsContext/index.js +1 -0
- package/dist/foundationText/Disclosure/Disclosure.d.ts +35 -0
- package/dist/foundationText/Disclosure/Disclosure.js +51 -0
- package/dist/foundationText/Disclosure/Disclosure.style.d.ts +19 -0
- package/dist/foundationText/Disclosure/Disclosure.style.js +22 -0
- package/dist/foundationText/Disclosure/constants.d.ts +1 -0
- package/dist/foundationText/Disclosure/constants.js +1 -0
- package/dist/foundationText/Disclosure/index.d.ts +1 -0
- package/dist/foundationText/Disclosure/index.js +1 -0
- package/dist/foundationText/EmptyState/EmptyState.d.ts +35 -0
- package/dist/foundationText/EmptyState/EmptyState.js +18 -0
- package/dist/foundationText/EmptyState/EmptyState.style.d.ts +6 -0
- package/dist/foundationText/EmptyState/EmptyState.style.js +9 -0
- package/dist/foundationText/EmptyState/index.d.ts +2 -0
- package/dist/foundationText/EmptyState/index.js +1 -0
- package/dist/foundationText/ErrorMessageWrapper/ErrorMessageWrapper.d.ts +22 -0
- package/dist/foundationText/ErrorMessageWrapper/ErrorMessageWrapper.js +35 -0
- package/dist/foundationText/ErrorMessageWrapper/ErrorMessageWrapper.style.d.ts +29 -0
- package/dist/foundationText/ErrorMessageWrapper/ErrorMessageWrapper.style.js +32 -0
- package/dist/foundationText/ErrorMessageWrapper/context/ErrorMessageContext.d.ts +3 -0
- package/dist/foundationText/ErrorMessageWrapper/context/ErrorMessageContext.js +11 -0
- package/dist/foundationText/ErrorMessageWrapper/context/ErrorMessageProvider.d.ts +7 -0
- package/dist/foundationText/ErrorMessageWrapper/context/ErrorMessageProvider.js +38 -0
- package/dist/foundationText/ErrorMessageWrapper/context/index.d.ts +2 -0
- package/dist/foundationText/ErrorMessageWrapper/context/index.js +2 -0
- package/dist/foundationText/ErrorMessageWrapper/context/types.d.ts +62 -0
- package/dist/foundationText/ErrorMessageWrapper/context/types.js +1 -0
- package/dist/foundationText/ErrorMessageWrapper/index.d.ts +2 -0
- package/dist/foundationText/ErrorMessageWrapper/index.js +2 -0
- package/dist/foundationText/Form/Form.d.ts +4 -0
- package/dist/foundationText/Form/Form.js +142 -0
- package/dist/foundationText/Form/Form.style.d.ts +31 -0
- package/dist/foundationText/Form/Form.style.js +34 -0
- package/dist/foundationText/Form/components/FormActionBar/FormActionBar.d.ts +13 -0
- package/dist/foundationText/Form/components/FormActionBar/FormActionBar.js +21 -0
- package/dist/foundationText/Form/components/FormActionBar/FormActionBar.style.d.ts +15 -0
- package/dist/foundationText/Form/components/FormActionBar/FormActionBar.style.js +11 -0
- package/dist/foundationText/Form/components/FormActionBar/index.d.ts +2 -0
- package/dist/foundationText/Form/components/FormActionBar/index.js +1 -0
- package/dist/foundationText/Form/components/FormBody/FormBody.d.ts +10 -0
- package/dist/foundationText/Form/components/FormBody/FormBody.js +18 -0
- package/dist/foundationText/Form/components/FormBody/FormBody.style.d.ts +24 -0
- package/dist/foundationText/Form/components/FormBody/FormBody.style.js +27 -0
- package/dist/foundationText/Form/components/FormBody/index.d.ts +1 -0
- package/dist/foundationText/Form/components/FormBody/index.js +1 -0
- package/dist/foundationText/Form/components/FormCache/FormCache.d.ts +10 -0
- package/dist/foundationText/Form/components/FormCache/FormCache.js +28 -0
- package/dist/foundationText/Form/components/FormErrorBanner/FormErrorBanner.d.ts +3 -0
- package/dist/foundationText/Form/components/FormErrorBanner/FormErrorBanner.js +14 -0
- package/dist/foundationText/Form/components/FormErrorBanner/index.d.ts +1 -0
- package/dist/foundationText/Form/components/FormErrorBanner/index.js +1 -0
- package/dist/foundationText/Form/components/FormMask/FormMask.d.ts +2 -0
- package/dist/foundationText/Form/components/FormMask/FormMask.js +9 -0
- package/dist/foundationText/Form/components/FormMask/FormMask.style.d.ts +13 -0
- package/dist/foundationText/Form/components/FormMask/FormMask.style.js +16 -0
- package/dist/foundationText/Form/components/FormMask/index.d.ts +1 -0
- package/dist/foundationText/Form/components/FormMask/index.js +1 -0
- package/dist/foundationText/Form/components/FormMessage/FormMessage.d.ts +19 -0
- package/dist/foundationText/Form/components/FormMessage/FormMessage.js +49 -0
- package/dist/foundationText/Form/components/FormMessage/components/InternalFormMessage/InternalFormMessage.d.ts +8 -0
- package/dist/foundationText/Form/components/FormMessage/components/InternalFormMessage/InternalFormMessage.js +27 -0
- package/dist/foundationText/Form/components/FormMessage/components/InternalFormMessage/InternalFormMessage.style.d.ts +20 -0
- package/dist/foundationText/Form/components/FormMessage/components/InternalFormMessage/InternalFormMessage.style.js +18 -0
- package/dist/foundationText/Form/components/FormMessage/components/InternalFormMessage/index.d.ts +1 -0
- package/dist/foundationText/Form/components/FormMessage/components/InternalFormMessage/index.js +1 -0
- package/dist/foundationText/Form/components/FormMessage/index.d.ts +1 -0
- package/dist/foundationText/Form/components/FormMessage/index.js +1 -0
- package/dist/foundationText/Form/components/FormMessageBanner/FormMessageBanner.d.ts +7 -0
- package/dist/foundationText/Form/components/FormMessageBanner/FormMessageBanner.js +16 -0
- package/dist/foundationText/Form/components/FormMessageBanner/index.d.ts +1 -0
- package/dist/foundationText/Form/components/FormMessageBanner/index.js +1 -0
- package/dist/foundationText/Form/components/FormSaveButton/FormSaveButton.d.ts +3 -0
- package/dist/foundationText/Form/components/FormSaveButton/FormSaveButton.js +55 -0
- package/dist/foundationText/Form/components/FormSaveButton/index.d.ts +1 -0
- package/dist/foundationText/Form/components/FormSaveButton/index.js +1 -0
- package/dist/foundationText/Form/components/IOSKeyboardAwareScrollViewSpacer/IOSKeyboardAwareScrollViewSpacer.d.ts +6 -0
- package/dist/foundationText/Form/components/IOSKeyboardAwareScrollViewSpacer/IOSKeyboardAwareScrollViewSpacer.js +13 -0
- package/dist/foundationText/Form/constants.d.ts +2 -0
- package/dist/foundationText/Form/constants.js +2 -0
- package/dist/foundationText/Form/context/FormContext.d.ts +11 -0
- package/dist/foundationText/Form/context/FormContext.js +16 -0
- package/dist/foundationText/Form/context/index.d.ts +2 -0
- package/dist/foundationText/Form/context/index.js +1 -0
- package/dist/foundationText/Form/context/types.d.ts +26 -0
- package/dist/foundationText/Form/context/types.js +1 -0
- package/dist/foundationText/Form/hooks/useFormViewRefs.d.ts +10 -0
- package/dist/foundationText/Form/hooks/useFormViewRefs.js +13 -0
- package/dist/foundationText/Form/hooks/useInternalForm.d.ts +19 -0
- package/dist/foundationText/Form/hooks/useInternalForm.js +43 -0
- package/dist/foundationText/Form/hooks/useOfflineHandler.d.ts +1 -0
- package/dist/foundationText/Form/hooks/useOfflineHandler.js +23 -0
- package/dist/foundationText/Form/hooks/useSaveButtonPosition.d.ts +12 -0
- package/dist/foundationText/Form/hooks/useSaveButtonPosition.js +25 -0
- package/dist/foundationText/Form/hooks/useScreenInformation.d.ts +8 -0
- package/dist/foundationText/Form/hooks/useScreenInformation.js +15 -0
- package/dist/foundationText/Form/hooks/useScrollToError/index.d.ts +1 -0
- package/dist/foundationText/Form/hooks/useScrollToError/index.js +1 -0
- package/dist/foundationText/Form/hooks/useScrollToError/useScrollToError.d.ts +9 -0
- package/dist/foundationText/Form/hooks/useScrollToError/useScrollToError.js +64 -0
- package/dist/foundationText/Form/index.d.ts +5 -0
- package/dist/foundationText/Form/index.js +4 -0
- package/dist/foundationText/Form/types.d.ts +215 -0
- package/dist/foundationText/Form/types.js +10 -0
- package/dist/foundationText/FormField/FormField.d.ts +24 -0
- package/dist/foundationText/FormField/FormField.js +11 -0
- package/dist/foundationText/FormField/index.d.ts +1 -0
- package/dist/foundationText/FormField/index.js +1 -0
- package/dist/foundationText/FormatFile/FormatFile.d.ts +79 -0
- package/dist/foundationText/FormatFile/FormatFile.js +47 -0
- package/dist/foundationText/FormatFile/FormatFile.style.d.ts +15 -0
- package/dist/foundationText/FormatFile/FormatFile.style.js +19 -0
- package/dist/foundationText/FormatFile/FormatFileThumbnail.d.ts +58 -0
- package/dist/foundationText/FormatFile/FormatFileThumbnail.js +35 -0
- package/dist/foundationText/FormatFile/components/ErrorIcon/ErrorIcon.d.ts +2 -0
- package/dist/foundationText/FormatFile/components/ErrorIcon/ErrorIcon.js +9 -0
- package/dist/foundationText/FormatFile/components/ErrorIcon/ErrorIcon.style.d.ts +8 -0
- package/dist/foundationText/FormatFile/components/ErrorIcon/ErrorIcon.style.js +11 -0
- package/dist/foundationText/FormatFile/components/ErrorIcon/index.d.ts +1 -0
- package/dist/foundationText/FormatFile/components/ErrorIcon/index.js +1 -0
- package/dist/foundationText/FormatFile/components/FileView/FileView.d.ts +13 -0
- package/dist/foundationText/FormatFile/components/FileView/FileView.js +42 -0
- package/dist/foundationText/FormatFile/components/FileView/FileView.style.d.ts +64 -0
- package/dist/foundationText/FormatFile/components/FileView/FileView.style.js +70 -0
- package/dist/foundationText/FormatFile/components/FileView/index.d.ts +1 -0
- package/dist/foundationText/FormatFile/components/FileView/index.js +1 -0
- package/dist/foundationText/FormatFile/components/FormatFileBottomSheet/FormatFileBottomSheet.d.ts +12 -0
- package/dist/foundationText/FormatFile/components/FormatFileBottomSheet/FormatFileBottomSheet.js +17 -0
- package/dist/foundationText/FormatFile/components/FormatFileBottomSheet/index.d.ts +2 -0
- package/dist/foundationText/FormatFile/components/FormatFileBottomSheet/index.js +1 -0
- package/dist/foundationText/FormatFile/components/MediaView/MediaView.d.ts +14 -0
- package/dist/foundationText/FormatFile/components/MediaView/MediaView.js +108 -0
- package/dist/foundationText/FormatFile/components/MediaView/MediaView.style.d.ts +25 -0
- package/dist/foundationText/FormatFile/components/MediaView/MediaView.style.js +28 -0
- package/dist/foundationText/FormatFile/components/MediaView/index.d.ts +1 -0
- package/dist/foundationText/FormatFile/components/MediaView/index.js +1 -0
- package/dist/foundationText/FormatFile/components/ProgressBar/ProgressBar.d.ts +18 -0
- package/dist/foundationText/FormatFile/components/ProgressBar/ProgressBar.js +30 -0
- package/dist/foundationText/FormatFile/components/ProgressBar/ProgressBar.style.d.ts +13 -0
- package/dist/foundationText/FormatFile/components/ProgressBar/ProgressBar.style.js +16 -0
- package/dist/foundationText/FormatFile/components/ProgressBar/index.d.ts +1 -0
- package/dist/foundationText/FormatFile/components/ProgressBar/index.js +1 -0
- package/dist/foundationText/FormatFile/constants.d.ts +35 -0
- package/dist/foundationText/FormatFile/constants.js +74 -0
- package/dist/foundationText/FormatFile/context/FormatFileContext.d.ts +9 -0
- package/dist/foundationText/FormatFile/context/FormatFileContext.js +8 -0
- package/dist/foundationText/FormatFile/context/types.d.ts +9 -0
- package/dist/foundationText/FormatFile/context/types.js +1 -0
- package/dist/foundationText/FormatFile/index.d.ts +8 -0
- package/dist/foundationText/FormatFile/index.js +3 -0
- package/dist/foundationText/FormatFile/types.d.ts +105 -0
- package/dist/foundationText/FormatFile/types.js +8 -0
- package/dist/foundationText/FormatFile/utils/computeA11yLabel.d.ts +9 -0
- package/dist/foundationText/FormatFile/utils/computeA11yLabel.js +11 -0
- package/dist/foundationText/FormatFile/utils/createUseCreateThumbnail.d.ts +6 -0
- package/dist/foundationText/FormatFile/utils/createUseCreateThumbnail.js +27 -0
- package/dist/foundationText/FormatFile/utils/getFileCategory.d.ts +28 -0
- package/dist/foundationText/FormatFile/utils/getFileCategory.js +62 -0
- package/dist/foundationText/FormatFile/utils/index.d.ts +7 -0
- package/dist/foundationText/FormatFile/utils/index.js +6 -0
- package/dist/foundationText/FormatFile/utils/mapFileTypeToIconName.d.ts +17 -0
- package/dist/foundationText/FormatFile/utils/mapFileTypeToIconName.js +30 -0
- package/dist/foundationText/FormatFile/utils/parseFile.d.ts +3 -0
- package/dist/foundationText/FormatFile/utils/parseFile.js +58 -0
- package/dist/foundationText/FormatFile/utils/sanitizeFileName.d.ts +5 -0
- package/dist/foundationText/FormatFile/utils/sanitizeFileName.js +9 -0
- package/dist/foundationText/FormatFile/utils/truncateFileNameForLine.d.ts +24 -0
- package/dist/foundationText/FormatFile/utils/truncateFileNameForLine.js +58 -0
- package/dist/foundationText/Glimmer/Glimmer.d.ts +32 -0
- package/dist/foundationText/Glimmer/Glimmer.js +42 -0
- package/dist/foundationText/Glimmer/Glimmer.shape.style.d.ts +14 -0
- package/dist/foundationText/Glimmer/Glimmer.shape.style.js +17 -0
- package/dist/foundationText/Glimmer/Glimmer.size.style.d.ts +17 -0
- package/dist/foundationText/Glimmer/Glimmer.size.style.js +10 -0
- package/dist/foundationText/Glimmer/Glimmer.style.d.ts +26 -0
- package/dist/foundationText/Glimmer/Glimmer.style.js +30 -0
- package/dist/foundationText/Glimmer/index.d.ts +1 -0
- package/dist/foundationText/Glimmer/index.js +1 -0
- package/dist/foundationText/Heading/Heading.d.ts +38 -0
- package/dist/foundationText/Heading/Heading.js +53 -0
- package/dist/foundationText/Heading/index.d.ts +2 -0
- package/dist/foundationText/Heading/index.js +1 -0
- package/dist/foundationText/IconButton/IconButton.d.ts +35 -0
- package/dist/foundationText/IconButton/IconButton.js +9 -0
- package/dist/foundationText/IconButton/IconButton.style.d.ts +8 -0
- package/dist/foundationText/IconButton/IconButton.style.js +11 -0
- package/dist/foundationText/IconButton/index.d.ts +1 -0
- package/dist/foundationText/IconButton/index.js +1 -0
- package/dist/foundationText/InputCurrency/constants.d.ts +1 -0
- package/dist/foundationText/InputCurrency/constants.js +1 -0
- package/dist/foundationText/InputCurrency/utils.d.ts +9 -0
- package/dist/foundationText/InputCurrency/utils.js +57 -0
- package/dist/foundationText/InputDate/InputDate.d.ts +76 -0
- package/dist/foundationText/InputDate/InputDate.js +70 -0
- package/dist/foundationText/InputDate/index.d.ts +2 -0
- package/dist/foundationText/InputDate/index.js +1 -0
- package/dist/foundationText/InputFieldWrapper/CommonInputStyles.style.d.ts +10 -0
- package/dist/foundationText/InputFieldWrapper/CommonInputStyles.style.js +49 -0
- package/dist/foundationText/InputFieldWrapper/InputFieldWrapper.d.ts +92 -0
- package/dist/foundationText/InputFieldWrapper/InputFieldWrapper.js +99 -0
- package/dist/foundationText/InputFieldWrapper/InputFieldWrapper.style.d.ts +106 -0
- package/dist/foundationText/InputFieldWrapper/InputFieldWrapper.style.js +123 -0
- package/dist/foundationText/InputFieldWrapper/components/ClearAction/ClearAction.d.ts +10 -0
- package/dist/foundationText/InputFieldWrapper/components/ClearAction/ClearAction.js +11 -0
- package/dist/foundationText/InputFieldWrapper/components/ClearAction/ClearAction.style.d.ts +22 -0
- package/dist/foundationText/InputFieldWrapper/components/ClearAction/ClearAction.style.js +26 -0
- package/dist/foundationText/InputFieldWrapper/components/ClearAction/index.d.ts +1 -0
- package/dist/foundationText/InputFieldWrapper/components/ClearAction/index.js +1 -0
- package/dist/foundationText/InputFieldWrapper/components/Prefix/Prefix.d.ts +22 -0
- package/dist/foundationText/InputFieldWrapper/components/Prefix/Prefix.js +39 -0
- package/dist/foundationText/InputFieldWrapper/components/Suffix/Suffix.d.ts +25 -0
- package/dist/foundationText/InputFieldWrapper/components/Suffix/Suffix.js +40 -0
- package/dist/foundationText/InputFieldWrapper/index.d.ts +4 -0
- package/dist/foundationText/InputFieldWrapper/index.js +3 -0
- package/dist/foundationText/InputPressable/InputPressable.d.ts +91 -0
- package/dist/foundationText/InputPressable/InputPressable.js +42 -0
- package/dist/foundationText/InputPressable/InputPressable.style.d.ts +21 -0
- package/dist/foundationText/InputPressable/InputPressable.style.js +28 -0
- package/dist/foundationText/InputPressable/index.d.ts +2 -0
- package/dist/foundationText/InputPressable/index.js +1 -0
- package/dist/foundationText/InputSearch/components/FilterButton.d.ts +7 -0
- package/dist/foundationText/InputSearch/components/FilterButton.js +10 -0
- package/dist/foundationText/InputText/context/InputAccessoriesContext.d.ts +3 -0
- package/dist/foundationText/InputText/context/InputAccessoriesContext.js +16 -0
- package/dist/foundationText/InputText/context/InputAccessoriesProvider.d.ts +5 -0
- package/dist/foundationText/InputText/context/InputAccessoriesProvider.js +68 -0
- package/dist/foundationText/InputText/context/InputAccessoriesProvider.style.d.ts +17 -0
- package/dist/foundationText/InputText/context/InputAccessoriesProvider.style.js +23 -0
- package/dist/foundationText/InputText/context/index.d.ts +2 -0
- package/dist/foundationText/InputText/context/index.js +2 -0
- package/dist/foundationText/InputText/context/types.d.ts +23 -0
- package/dist/foundationText/InputText/context/types.js +1 -0
- package/dist/foundationText/InputTime/InputTime.d.ts +63 -0
- package/dist/foundationText/InputTime/InputTime.js +76 -0
- package/dist/foundationText/InputTime/InputTime.style.d.ts +6 -0
- package/dist/foundationText/InputTime/InputTime.style.js +7 -0
- package/dist/foundationText/InputTime/index.d.ts +2 -0
- package/dist/foundationText/InputTime/index.js +2 -0
- package/dist/foundationText/InputTime/utils/index.d.ts +11 -0
- package/dist/foundationText/InputTime/utils/index.js +16 -0
- package/dist/foundationText/ProgressBar/ProgressBar.d.ts +6 -0
- package/dist/foundationText/ProgressBar/ProgressBar.js +36 -0
- package/dist/foundationText/ProgressBar/ProgressBar.size.style.d.ts +11 -0
- package/dist/foundationText/ProgressBar/ProgressBar.size.style.js +6 -0
- package/dist/foundationText/ProgressBar/ProgressBar.style.d.ts +34 -0
- package/dist/foundationText/ProgressBar/ProgressBar.style.js +37 -0
- package/dist/foundationText/ProgressBar/ProgressBarInner.d.ts +12 -0
- package/dist/foundationText/ProgressBar/ProgressBarInner.js +25 -0
- package/dist/foundationText/ProgressBar/ProgressBarStepped.d.ts +12 -0
- package/dist/foundationText/ProgressBar/ProgressBarStepped.js +32 -0
- package/dist/foundationText/ProgressBar/index.d.ts +2 -0
- package/dist/foundationText/ProgressBar/index.js +1 -0
- package/dist/foundationText/ProgressBar/types.d.ts +61 -0
- package/dist/foundationText/ProgressBar/types.js +1 -0
- package/dist/foundationText/ProgressIndicator/ProgressIndicator.d.ts +3 -0
- package/dist/foundationText/ProgressIndicator/ProgressIndicator.js +105 -0
- package/dist/foundationText/ProgressIndicator/ProgressIndicator.size.style.d.ts +19 -0
- package/dist/foundationText/ProgressIndicator/ProgressIndicator.size.style.js +15 -0
- package/dist/foundationText/ProgressIndicator/ProgressIndicator.style.d.ts +48 -0
- package/dist/foundationText/ProgressIndicator/ProgressIndicator.style.js +51 -0
- package/dist/foundationText/ProgressIndicator/index.d.ts +2 -0
- package/dist/foundationText/ProgressIndicator/index.js +1 -0
- package/dist/foundationText/ProgressIndicator/types.d.ts +44 -0
- package/dist/foundationText/ProgressIndicator/types.js +1 -0
- package/dist/foundationText/Select/Select.d.ts +92 -0
- package/dist/foundationText/Select/Select.js +102 -0
- package/dist/foundationText/Select/Select.style.d.ts +29 -0
- package/dist/foundationText/Select/Select.style.js +55 -0
- package/dist/foundationText/Select/SelectComposableTypes.d.ts +50 -0
- package/dist/foundationText/Select/SelectComposableTypes.js +1 -0
- package/dist/foundationText/Select/SelectRoot.d.ts +12 -0
- package/dist/foundationText/Select/SelectRoot.js +69 -0
- package/dist/foundationText/Select/SelectRoot.style.d.ts +8 -0
- package/dist/foundationText/Select/SelectRoot.style.js +9 -0
- package/dist/foundationText/Select/components/SelectContent.d.ts +8 -0
- package/dist/foundationText/Select/components/SelectContent.js +34 -0
- package/dist/foundationText/Select/components/SelectDefaultPicker/SelectDefaultPicker.d.ts +5 -0
- package/dist/foundationText/Select/components/SelectDefaultPicker/SelectDefaultPicker.ios.d.ts +5 -0
- package/dist/foundationText/Select/components/SelectDefaultPicker/SelectDefaultPicker.ios.js +22 -0
- package/dist/foundationText/Select/components/SelectDefaultPicker/SelectDefaultPicker.js +15 -0
- package/dist/foundationText/Select/components/SelectDefaultPicker/SelectDefaultPicker.style.d.ts +30 -0
- package/dist/foundationText/Select/components/SelectDefaultPicker/SelectDefaultPicker.style.js +29 -0
- package/dist/foundationText/Select/components/SelectDefaultPicker/index.d.ts +1 -0
- package/dist/foundationText/Select/components/SelectDefaultPicker/index.js +1 -0
- package/dist/foundationText/Select/components/SelectFieldContext.d.ts +27 -0
- package/dist/foundationText/Select/components/SelectFieldContext.js +10 -0
- package/dist/foundationText/Select/components/SelectIOSPicker/SelectIOSPicker.d.ts +10 -0
- package/dist/foundationText/Select/components/SelectIOSPicker/SelectIOSPicker.js +2 -0
- package/dist/foundationText/Select/components/SelectIOSPicker/index.d.ts +1 -0
- package/dist/foundationText/Select/components/SelectIOSPicker/index.js +1 -0
- package/dist/foundationText/Select/components/SelectInternalPicker/SelectInternalPicker.d.ts +3 -0
- package/dist/foundationText/Select/components/SelectInternalPicker/SelectInternalPicker.js +14 -0
- package/dist/foundationText/Select/components/SelectInternalPicker/index.d.ts +1 -0
- package/dist/foundationText/Select/components/SelectInternalPicker/index.js +1 -0
- package/dist/foundationText/Select/components/SelectInternalPicker/utils.d.ts +3 -0
- package/dist/foundationText/Select/components/SelectInternalPicker/utils.js +13 -0
- package/dist/foundationText/Select/components/SelectItem.d.ts +32 -0
- package/dist/foundationText/Select/components/SelectItem.js +26 -0
- package/dist/foundationText/Select/components/SelectItem.style.d.ts +5 -0
- package/dist/foundationText/Select/components/SelectItem.style.js +6 -0
- package/dist/foundationText/Select/components/SelectLabel.d.ts +22 -0
- package/dist/foundationText/Select/components/SelectLabel.js +30 -0
- package/dist/foundationText/Select/components/SelectPressable/SelectPressable.d.ts +11 -0
- package/dist/foundationText/Select/components/SelectPressable/SelectPressable.js +17 -0
- package/dist/foundationText/Select/components/SelectPressable/SelectPressable.style.d.ts +5 -0
- package/dist/foundationText/Select/components/SelectPressable/SelectPressable.style.js +8 -0
- package/dist/foundationText/Select/components/SelectPressable/index.d.ts +1 -0
- package/dist/foundationText/Select/components/SelectPressable/index.js +1 -0
- package/dist/foundationText/Select/components/SelectTrigger.d.ts +20 -0
- package/dist/foundationText/Select/components/SelectTrigger.js +39 -0
- package/dist/foundationText/Select/components/SelectTrigger.style.d.ts +25 -0
- package/dist/foundationText/Select/components/SelectTrigger.style.js +31 -0
- package/dist/foundationText/Select/index.d.ts +4 -0
- package/dist/foundationText/Select/index.js +4 -0
- package/dist/foundationText/Select/types.d.ts +38 -0
- package/dist/foundationText/Select/types.js +1 -0
- package/dist/foundationText/StatusLabel/StatusLabel.d.ts +22 -0
- package/dist/foundationText/StatusLabel/StatusLabel.js +20 -0
- package/dist/foundationText/StatusLabel/StatusLabel.style.d.ts +23 -0
- package/dist/foundationText/StatusLabel/StatusLabel.style.js +29 -0
- package/dist/foundationText/StatusLabel/index.d.ts +2 -0
- package/dist/foundationText/StatusLabel/index.js +1 -0
- package/dist/foundationText/Text/Text.d.ts +76 -0
- package/dist/foundationText/Text/Text.js +39 -0
- package/dist/foundationText/Text/index.d.ts +2 -0
- package/dist/foundationText/Text/index.js +1 -0
- package/dist/foundationText/TextList/TextList.d.ts +30 -0
- package/dist/foundationText/TextList/TextList.js +11 -0
- package/dist/foundationText/TextList/TextList.style.d.ts +14 -0
- package/dist/foundationText/TextList/TextList.style.js +17 -0
- package/dist/foundationText/TextList/index.d.ts +1 -0
- package/dist/foundationText/TextList/index.js +1 -0
- package/dist/foundationText/ThumbnailList/ThumbnailList.d.ts +5 -0
- package/dist/foundationText/ThumbnailList/ThumbnailList.js +32 -0
- package/dist/foundationText/ThumbnailList/ThumbnailList.style.d.ts +47 -0
- package/dist/foundationText/ThumbnailList/ThumbnailList.style.js +50 -0
- package/dist/foundationText/ThumbnailList/index.d.ts +2 -0
- package/dist/foundationText/ThumbnailList/index.js +2 -0
- package/dist/foundationText/ThumbnailList/types.d.ts +15 -0
- package/dist/foundationText/ThumbnailList/types.js +5 -0
- package/dist/foundationText/Toast/Toast.d.ts +28 -0
- package/dist/foundationText/Toast/Toast.js +64 -0
- package/dist/foundationText/Toast/Toast.styles.d.ts +31 -0
- package/dist/foundationText/Toast/Toast.styles.js +31 -0
- package/dist/foundationText/Toast/index.d.ts +2 -0
- package/dist/foundationText/Toast/index.js +1 -0
- package/dist/foundationText/Typography/Typography.d.ts +126 -0
- package/dist/foundationText/Typography/Typography.js +124 -0
- package/dist/foundationText/Typography/Typography.style.d.ts +16 -0
- package/dist/foundationText/Typography/Typography.style.js +472 -0
- package/dist/foundationText/Typography/TypographyGestureDetector.d.ts +8 -0
- package/dist/foundationText/Typography/TypographyGestureDetector.js +11 -0
- package/dist/foundationText/Typography/index.d.ts +5 -0
- package/dist/foundationText/Typography/index.js +4 -0
- package/dist/foundationText/Typography/webFonts.d.ts +4 -0
- package/dist/foundationText/Typography/webFonts.js +34 -0
- package/dist/foundationText/capitalize.d.ts +1 -0
- package/dist/foundationText/capitalize.js +6 -0
- package/dist/foundationText/compatTheme.d.ts +8 -0
- package/dist/foundationText/compatTheme.js +14 -0
- package/dist/foundationText/dateFormatter.d.ts +6 -0
- package/dist/foundationText/dateFormatter.js +19 -0
- package/dist/foundationText/foundationMessages.d.ts +11 -0
- package/dist/foundationText/foundationMessages.js +24 -0
- package/dist/foundationText/messages-en.d.ts +38 -0
- package/dist/foundationText/messages-en.js +38 -0
- package/dist/foundationText/messages-es.d.ts +38 -0
- package/dist/foundationText/messages-es.js +38 -0
- package/dist/foundationText/primitives/HelperText/HelperText.d.ts +15 -0
- package/dist/foundationText/primitives/HelperText/HelperText.js +11 -0
- package/dist/foundationText/primitives/HelperText/HelperText.style.d.ts +16 -0
- package/dist/foundationText/primitives/HelperText/HelperText.style.js +19 -0
- package/dist/foundationText/primitives/HelperText/index.d.ts +2 -0
- package/dist/foundationText/primitives/HelperText/index.js +1 -0
- package/dist/foundationText/primitives/Portal/index.d.ts +1 -0
- package/dist/foundationText/primitives/Portal/index.js +7 -0
- package/dist/foundationText/primitives/Select/SelectPrimitive.d.ts +69 -0
- package/dist/foundationText/primitives/Select/SelectPrimitive.js +160 -0
- package/dist/foundationText/primitives/Select/SelectPrimitive.style.d.ts +114 -0
- package/dist/foundationText/primitives/Select/SelectPrimitive.style.js +130 -0
- package/dist/foundationText/primitives/Select/index.d.ts +2 -0
- package/dist/foundationText/primitives/Select/index.js +1 -0
- package/dist/foundationText/primitives/Select/nativeTypes.d.ts +84 -0
- package/dist/foundationText/primitives/Select/nativeTypes.js +1 -0
- package/dist/foundationText/primitives/Select/types.d.ts +41 -0
- package/dist/foundationText/primitives/Select/types.js +1 -0
- package/dist/foundationText/primitives/index.d.ts +3 -0
- package/dist/foundationText/primitives/index.js +3 -0
- package/dist/foundationTokens.d.ts +388 -0
- package/dist/foundationTokens.js +26 -0
- package/dist/index.d.ts +67 -0
- package/dist/index.js +54 -0
- package/dist/legacyTheme.d.ts +18 -0
- package/dist/legacyTheme.js +23 -0
- package/dist/sheetContext.d.ts +3 -0
- package/dist/sheetContext.js +6 -0
- package/dist/theme.d.ts +29 -0
- package/dist/theme.js +42 -0
- package/dist/useFormController.d.ts +11 -0
- package/dist/useFormController.js +15 -0
- package/dist/useIsScreenReaderEnabled.d.ts +1 -0
- package/dist/useIsScreenReaderEnabled.js +21 -0
- package/ios/RulnarPickerManager.m +59 -0
- package/package.json +146 -4
- package/resources/meta.json +85 -0
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { I18nManager, StyleSheet, Text } from "react-native";
|
|
4
|
+
import { TypographyGestureDetector } from "./TypographyGestureDetector.js";
|
|
5
|
+
import { useTypographyStyles } from "./Typography.style.js";
|
|
6
|
+
import { capitalize } from "../capitalize.js";
|
|
7
|
+
import { useLegacyTheme } from "../compatTheme.js";
|
|
8
|
+
const maxNumberOfLines = {
|
|
9
|
+
single: 1,
|
|
10
|
+
small: 2,
|
|
11
|
+
base: 4,
|
|
12
|
+
large: 8,
|
|
13
|
+
extraLarge: 16,
|
|
14
|
+
unlimited: undefined,
|
|
15
|
+
};
|
|
16
|
+
export const Typography = React.memo(InternalTypography);
|
|
17
|
+
// eslint-disable-next-line max-statements
|
|
18
|
+
function InternalTypography({ fontFamily, fontStyle, fontWeight, transform, color, align, size = "default", children, maxLines = "unlimited", allowFontScaling = true, maxFontScaleSize, adjustsFontSizeToFit = false, lineHeight, letterSpacing = "base", reverseTheme = false, hideFromScreenReader = false, accessibilityRole = "text", strikeThrough = false, underline, UNSAFE_style, selectable = true, onTextLayout, }) {
|
|
19
|
+
const styles = useTypographyStyles();
|
|
20
|
+
const sizeAndHeight = getSizeAndHeightStyle(size, styles, lineHeight);
|
|
21
|
+
const style = [
|
|
22
|
+
getFontStyle(fontFamily, fontStyle, fontWeight, styles),
|
|
23
|
+
getColorStyle(styles, color, reverseTheme),
|
|
24
|
+
getAlignStyle(styles, align),
|
|
25
|
+
sizeAndHeight,
|
|
26
|
+
getLetterSpacingStyle(letterSpacing, styles),
|
|
27
|
+
];
|
|
28
|
+
if (strikeThrough) {
|
|
29
|
+
style.push(styles.strikeThrough);
|
|
30
|
+
}
|
|
31
|
+
if (fontStyle === "italic") {
|
|
32
|
+
style.push(styles.italic);
|
|
33
|
+
}
|
|
34
|
+
if (underline) {
|
|
35
|
+
const underlineTextStyle = { textDecorationStyle: underline };
|
|
36
|
+
style.push(underlineTextStyle, styles.underline);
|
|
37
|
+
}
|
|
38
|
+
if (UNSAFE_style?.textStyle) {
|
|
39
|
+
style.push(UNSAFE_style.textStyle);
|
|
40
|
+
}
|
|
41
|
+
const numberOfLinesForNativeText = maxNumberOfLines[maxLines];
|
|
42
|
+
const content = transformChildren(children, transform);
|
|
43
|
+
const accessibilityProps = hideFromScreenReader
|
|
44
|
+
? {
|
|
45
|
+
accessibilityRole: "none",
|
|
46
|
+
accessible: false,
|
|
47
|
+
importantForAccessibility: "no-hide-descendants",
|
|
48
|
+
}
|
|
49
|
+
: { accessibilityRole };
|
|
50
|
+
const { tokens } = useLegacyTheme();
|
|
51
|
+
const textComponent = (_jsx(Text, { allowFontScaling,
|
|
52
|
+
adjustsFontSizeToFit,
|
|
53
|
+
style,
|
|
54
|
+
numberOfLines: numberOfLinesForNativeText, ...accessibilityProps, maxFontSizeMultiplier: getScaleMultiplier(maxFontScaleSize, sizeAndHeight?.fontSize), selectable: selectable, selectionColor: tokens["color-brand--highlight"], onTextLayout: onTextLayout, children: content }));
|
|
55
|
+
// If text is not selectable, there's no need for TypographyGestureDetector
|
|
56
|
+
// since it only prevents accidental highlighting of selectable text
|
|
57
|
+
if (!selectable) {
|
|
58
|
+
return textComponent;
|
|
59
|
+
}
|
|
60
|
+
return _jsx(TypographyGestureDetector, { children: textComponent });
|
|
61
|
+
}
|
|
62
|
+
function getScaleMultiplier(maxFontScaleSize = 0, size = 1) {
|
|
63
|
+
if (maxFontScaleSize === 0)
|
|
64
|
+
return undefined;
|
|
65
|
+
return maxFontScaleSize / size;
|
|
66
|
+
}
|
|
67
|
+
function getFontStyle(fontFamily = "base", fontStyle = "regular", fontWeight = "regular", styles) {
|
|
68
|
+
const defaultBaseFontStyling = styles.baseRegularRegular;
|
|
69
|
+
const defaultDisplayFontStyling = styles.displayRegularBold;
|
|
70
|
+
const styleKey = `${fontFamily}${capitalize(fontStyle)}${capitalize(fontWeight)}`;
|
|
71
|
+
const fontStyling = styles[styleKey];
|
|
72
|
+
if (fontStyling) {
|
|
73
|
+
return fontStyling;
|
|
74
|
+
}
|
|
75
|
+
else {
|
|
76
|
+
return fontFamily === "display"
|
|
77
|
+
? defaultDisplayFontStyling
|
|
78
|
+
: defaultBaseFontStyling;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
function getTransformedText(text, transform) {
|
|
82
|
+
switch (transform) {
|
|
83
|
+
case "lowercase":
|
|
84
|
+
return text.toLocaleLowerCase();
|
|
85
|
+
case "uppercase":
|
|
86
|
+
return text.toLocaleUpperCase();
|
|
87
|
+
case "capitalize":
|
|
88
|
+
return capitalize(text);
|
|
89
|
+
default:
|
|
90
|
+
return text;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
function transformChildren(children, transform) {
|
|
94
|
+
if (children == null || !transform || transform === "none")
|
|
95
|
+
return children;
|
|
96
|
+
return React.Children.map(children, child => {
|
|
97
|
+
if (typeof child === "string") {
|
|
98
|
+
return getTransformedText(child, transform);
|
|
99
|
+
}
|
|
100
|
+
// Keep non-string children (numbers, elements, fragments) unchanged
|
|
101
|
+
return child;
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
function getColorStyle(styles, color, reverseTheme) {
|
|
105
|
+
if (color === "default" || !color) {
|
|
106
|
+
return styles.text;
|
|
107
|
+
}
|
|
108
|
+
const colorStyleKey = `${color}${reverseTheme ? "Reverse" : ""}`;
|
|
109
|
+
return styles[`${colorStyleKey}`];
|
|
110
|
+
}
|
|
111
|
+
function getAlignStyle(styles, alignStyle = I18nManager.isRTL ? "end" : "start") {
|
|
112
|
+
return styles[`${alignStyle}Align`];
|
|
113
|
+
}
|
|
114
|
+
function getSizeAndHeightStyle(textSize, styles, lineHeightOverwrite) {
|
|
115
|
+
const fontSize = styles[`${textSize}Size`];
|
|
116
|
+
if (lineHeightOverwrite) {
|
|
117
|
+
const lineHeight = styles[`${lineHeightOverwrite}LineHeight`];
|
|
118
|
+
return StyleSheet.flatten([fontSize, lineHeight]);
|
|
119
|
+
}
|
|
120
|
+
return fontSize;
|
|
121
|
+
}
|
|
122
|
+
function getLetterSpacingStyle(letterSpacing, styles) {
|
|
123
|
+
return styles[`${letterSpacing}LetterSpacing`];
|
|
124
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { TextStyle } from "react-native";
|
|
2
|
+
import { platformTokens as staticTokens } from "../../foundationTokens.js";
|
|
3
|
+
import type { LegacyThemeContextValue } from "../compatTheme.js";
|
|
4
|
+
/**
|
|
5
|
+
* Reusable typography styles to ensure consistency for any client facing texts.
|
|
6
|
+
*/
|
|
7
|
+
export declare const getTypographyStyles: (tokens: LegacyThemeContextValue["tokens"] | typeof staticTokens) => {
|
|
8
|
+
[index: string]: TextStyle;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* @deprecated Use useTypographyStyles instead
|
|
12
|
+
*/
|
|
13
|
+
export declare const typographyStyles: Record<string, TextStyle>;
|
|
14
|
+
export declare const useTypographyStyles: () => {
|
|
15
|
+
[index: string]: TextStyle;
|
|
16
|
+
};
|
|
@@ -0,0 +1,472 @@
|
|
|
1
|
+
import { Platform, StyleSheet } from "react-native";
|
|
2
|
+
import { webFonts } from "./webFonts.js";
|
|
3
|
+
import { platformTokens as staticTokens } from "../../foundationTokens.js";
|
|
4
|
+
import { buildThemedStyles } from "../compatTheme.js";
|
|
5
|
+
const extravagantLineHeight = staticTokens["typography--lineHeight-extravagant"];
|
|
6
|
+
const jumboLineHeight = staticTokens["typography--lineHeight-jumbo"];
|
|
7
|
+
const largestLineHeight = staticTokens["typography--lineHeight-largest"];
|
|
8
|
+
const largerLineHeight = staticTokens["typography--lineHeight-larger"];
|
|
9
|
+
const largeLineHeight = staticTokens["typography--lineHeight-large"];
|
|
10
|
+
const baseLineHeight = staticTokens["typography--lineHeight-base"];
|
|
11
|
+
const tightLineHeight = staticTokens["typography--lineHeight-tight"];
|
|
12
|
+
const minusculeLineHeight = staticTokens["typography--lineHeight-minuscule"];
|
|
13
|
+
const deviceFonts = {
|
|
14
|
+
baseRegularRegular: {
|
|
15
|
+
fontFamily: "inter-regular",
|
|
16
|
+
},
|
|
17
|
+
baseRegularMedium: {
|
|
18
|
+
fontFamily: "inter-medium",
|
|
19
|
+
},
|
|
20
|
+
baseRegularBold: {
|
|
21
|
+
fontFamily: "inter-bold",
|
|
22
|
+
},
|
|
23
|
+
baseRegularSemiBold: {
|
|
24
|
+
fontFamily: "inter-semibold",
|
|
25
|
+
},
|
|
26
|
+
baseRegularExtraBold: {
|
|
27
|
+
fontFamily: "inter-extrabold",
|
|
28
|
+
},
|
|
29
|
+
baseItalicRegular: {
|
|
30
|
+
fontFamily: "inter-italic",
|
|
31
|
+
},
|
|
32
|
+
baseItalicMedium: {
|
|
33
|
+
fontFamily: "inter-italic-medium",
|
|
34
|
+
},
|
|
35
|
+
baseItalicBold: {
|
|
36
|
+
fontFamily: "inter-italic-bold",
|
|
37
|
+
},
|
|
38
|
+
baseItalicSemiBold: {
|
|
39
|
+
fontFamily: "inter-italic-semibold",
|
|
40
|
+
},
|
|
41
|
+
baseItalicExtraBold: {
|
|
42
|
+
fontFamily: "inter-italic-extrabold",
|
|
43
|
+
},
|
|
44
|
+
displayRegularBold: {
|
|
45
|
+
fontFamily: "Poppins-Bold",
|
|
46
|
+
},
|
|
47
|
+
displayRegularExtraBold: {
|
|
48
|
+
fontFamily: "Poppins-ExtraBold",
|
|
49
|
+
},
|
|
50
|
+
displayRegularBlack: {
|
|
51
|
+
fontFamily: "Poppins-Black",
|
|
52
|
+
},
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* We need to use web fonts for rendering Typography on Storybook
|
|
56
|
+
* because it uses font files (.ttf) to render them on devices.
|
|
57
|
+
* As we don't want to expose the font files, we are setting the fonts
|
|
58
|
+
* in CSS.
|
|
59
|
+
*/
|
|
60
|
+
const fonts = Platform.select({
|
|
61
|
+
web: webFonts,
|
|
62
|
+
default: deviceFonts,
|
|
63
|
+
});
|
|
64
|
+
/**
|
|
65
|
+
* Reusable typography styles to ensure consistency for any client facing texts.
|
|
66
|
+
*/
|
|
67
|
+
export const getTypographyStyles = (tokens) => ({
|
|
68
|
+
// This follows a pattern of
|
|
69
|
+
// { fontFamily }{ fontStyle }{ fontWeight }
|
|
70
|
+
...fonts,
|
|
71
|
+
italic: {
|
|
72
|
+
fontStyle: "italic",
|
|
73
|
+
},
|
|
74
|
+
underline: {
|
|
75
|
+
textDecorationColor: tokens["color-text--secondary"],
|
|
76
|
+
textDecorationLine: "underline",
|
|
77
|
+
},
|
|
78
|
+
/**
|
|
79
|
+
* Alignments
|
|
80
|
+
*/
|
|
81
|
+
startAlign: {
|
|
82
|
+
textAlign: "left",
|
|
83
|
+
},
|
|
84
|
+
endAlign: {
|
|
85
|
+
textAlign: "right",
|
|
86
|
+
},
|
|
87
|
+
centerAlign: {
|
|
88
|
+
textAlign: "center",
|
|
89
|
+
},
|
|
90
|
+
justifyAlign: {
|
|
91
|
+
textAlign: "justify",
|
|
92
|
+
},
|
|
93
|
+
/**
|
|
94
|
+
* Colors
|
|
95
|
+
*/
|
|
96
|
+
// Base colors for backwards compatibility
|
|
97
|
+
blueDark: {
|
|
98
|
+
color: tokens["color-blue--dark"],
|
|
99
|
+
},
|
|
100
|
+
white: {
|
|
101
|
+
color: tokens["color-white"],
|
|
102
|
+
},
|
|
103
|
+
green: {
|
|
104
|
+
color: tokens["color-green"],
|
|
105
|
+
},
|
|
106
|
+
greenDark: {
|
|
107
|
+
color: tokens["color-green--dark"],
|
|
108
|
+
},
|
|
109
|
+
grey: {
|
|
110
|
+
color: tokens["color-grey"],
|
|
111
|
+
},
|
|
112
|
+
greyDark: {
|
|
113
|
+
color: tokens["color-grey--dark"],
|
|
114
|
+
},
|
|
115
|
+
greyBlue: {
|
|
116
|
+
color: tokens["color-greyBlue"],
|
|
117
|
+
},
|
|
118
|
+
greyBlueDark: {
|
|
119
|
+
color: tokens["color-greyBlue--dark"],
|
|
120
|
+
},
|
|
121
|
+
lightBlue: {
|
|
122
|
+
color: tokens["color-lightBlue"],
|
|
123
|
+
},
|
|
124
|
+
lightBlueDark: {
|
|
125
|
+
color: tokens["color-lightBlue--dark"],
|
|
126
|
+
},
|
|
127
|
+
red: {
|
|
128
|
+
color: tokens["color-red"],
|
|
129
|
+
},
|
|
130
|
+
redDark: {
|
|
131
|
+
color: tokens["color-red--dark"],
|
|
132
|
+
},
|
|
133
|
+
yellow: {
|
|
134
|
+
color: tokens["color-yellow"],
|
|
135
|
+
},
|
|
136
|
+
yellowDark: {
|
|
137
|
+
color: tokens["color-yellow--dark"],
|
|
138
|
+
},
|
|
139
|
+
yellowGreenDark: {
|
|
140
|
+
color: tokens["color-yellowGreen--dark"],
|
|
141
|
+
},
|
|
142
|
+
orangeDark: {
|
|
143
|
+
color: tokens["color-orange--dark"],
|
|
144
|
+
},
|
|
145
|
+
navyDark: {
|
|
146
|
+
color: tokens["color-navy--dark"],
|
|
147
|
+
},
|
|
148
|
+
limeDark: {
|
|
149
|
+
color: tokens["color-lime--dark"],
|
|
150
|
+
},
|
|
151
|
+
purpleDark: {
|
|
152
|
+
color: tokens["color-purple--dark"],
|
|
153
|
+
},
|
|
154
|
+
pinkDark: {
|
|
155
|
+
color: tokens["color-pink--dark"],
|
|
156
|
+
},
|
|
157
|
+
tealDark: {
|
|
158
|
+
color: tokens["color-teal--dark"],
|
|
159
|
+
},
|
|
160
|
+
indigoDark: {
|
|
161
|
+
color: tokens["color-indigo--dark"],
|
|
162
|
+
},
|
|
163
|
+
navy: {
|
|
164
|
+
color: tokens["color-navy"],
|
|
165
|
+
},
|
|
166
|
+
// Typography
|
|
167
|
+
heading: {
|
|
168
|
+
color: tokens["color-heading"],
|
|
169
|
+
},
|
|
170
|
+
text: {
|
|
171
|
+
color: tokens["color-text"],
|
|
172
|
+
},
|
|
173
|
+
textSecondary: {
|
|
174
|
+
color: tokens["color-text--secondary"],
|
|
175
|
+
},
|
|
176
|
+
textReverse: {
|
|
177
|
+
color: tokens["color-text--reverse"],
|
|
178
|
+
},
|
|
179
|
+
textReverseSecondary: {
|
|
180
|
+
color: tokens["color-text--reverse--secondary"],
|
|
181
|
+
},
|
|
182
|
+
// Statuses
|
|
183
|
+
inactive: {
|
|
184
|
+
color: tokens["color-inactive"],
|
|
185
|
+
},
|
|
186
|
+
inactiveSurface: {
|
|
187
|
+
color: tokens["color-inactive--surface"],
|
|
188
|
+
},
|
|
189
|
+
inactiveOnSurface: {
|
|
190
|
+
color: tokens["color-inactive--onSurface"],
|
|
191
|
+
},
|
|
192
|
+
critical: {
|
|
193
|
+
color: tokens["color-critical"],
|
|
194
|
+
},
|
|
195
|
+
criticalSurface: {
|
|
196
|
+
color: tokens["color-critical--surface"],
|
|
197
|
+
},
|
|
198
|
+
criticalOnSurface: {
|
|
199
|
+
color: tokens["color-critical--onSurface"],
|
|
200
|
+
},
|
|
201
|
+
warning: {
|
|
202
|
+
color: tokens["color-warning"],
|
|
203
|
+
},
|
|
204
|
+
warningSurface: {
|
|
205
|
+
color: tokens["color-warning--surface"],
|
|
206
|
+
},
|
|
207
|
+
warningOnSurface: {
|
|
208
|
+
color: tokens["color-warning--onSurface"],
|
|
209
|
+
},
|
|
210
|
+
informative: {
|
|
211
|
+
color: tokens["color-informative"],
|
|
212
|
+
},
|
|
213
|
+
informativeSurface: {
|
|
214
|
+
color: tokens["color-informative--surface"],
|
|
215
|
+
},
|
|
216
|
+
informativeOnSurface: {
|
|
217
|
+
color: tokens["color-informative--onSurface"],
|
|
218
|
+
},
|
|
219
|
+
// To be uncommented once success in Deprecated is removed
|
|
220
|
+
// success: {
|
|
221
|
+
// color: tokens["color-success"],
|
|
222
|
+
// },
|
|
223
|
+
successSurface: {
|
|
224
|
+
color: tokens["color-success--surface"],
|
|
225
|
+
},
|
|
226
|
+
successOnSurface: {
|
|
227
|
+
color: tokens["color-success--onSurface"],
|
|
228
|
+
},
|
|
229
|
+
// Interactions
|
|
230
|
+
interactive: {
|
|
231
|
+
color: tokens["color-interactive"],
|
|
232
|
+
},
|
|
233
|
+
interactiveHover: {
|
|
234
|
+
color: tokens["color-interactive--hover"],
|
|
235
|
+
},
|
|
236
|
+
interactiveSubtle: {
|
|
237
|
+
color: tokens["color-interactive--subtle"],
|
|
238
|
+
},
|
|
239
|
+
interactiveSubtleHover: {
|
|
240
|
+
color: tokens["color-interactive--subtle--hover"],
|
|
241
|
+
},
|
|
242
|
+
destructive: {
|
|
243
|
+
color: tokens["color-destructive"],
|
|
244
|
+
},
|
|
245
|
+
destructiveHover: {
|
|
246
|
+
color: tokens["color-destructive--hover"],
|
|
247
|
+
},
|
|
248
|
+
disabled: {
|
|
249
|
+
color: tokens["color-disabled"],
|
|
250
|
+
},
|
|
251
|
+
disabledSecondary: {
|
|
252
|
+
color: tokens["color-disabled--secondary"],
|
|
253
|
+
},
|
|
254
|
+
// Workflow
|
|
255
|
+
request: {
|
|
256
|
+
color: tokens["color-request"],
|
|
257
|
+
},
|
|
258
|
+
requestSurface: {
|
|
259
|
+
color: tokens["color-request--surface"],
|
|
260
|
+
},
|
|
261
|
+
requestOnSurface: {
|
|
262
|
+
color: tokens["color-request--onSurface"],
|
|
263
|
+
},
|
|
264
|
+
quote: {
|
|
265
|
+
color: tokens["color-quote"],
|
|
266
|
+
},
|
|
267
|
+
quoteSurface: {
|
|
268
|
+
color: tokens["color-quote--surface"],
|
|
269
|
+
},
|
|
270
|
+
quoteOnSurface: {
|
|
271
|
+
color: tokens["color-quote--onSurface"],
|
|
272
|
+
},
|
|
273
|
+
job: {
|
|
274
|
+
color: tokens["color-job"],
|
|
275
|
+
},
|
|
276
|
+
jobSurface: {
|
|
277
|
+
color: tokens["color-job--surface"],
|
|
278
|
+
},
|
|
279
|
+
jobOnSurface: {
|
|
280
|
+
color: tokens["color-job--onSurface"],
|
|
281
|
+
},
|
|
282
|
+
visit: {
|
|
283
|
+
color: tokens["color-visit"],
|
|
284
|
+
},
|
|
285
|
+
visitSurface: {
|
|
286
|
+
color: tokens["color-visit--surface"],
|
|
287
|
+
},
|
|
288
|
+
visitOnSurface: {
|
|
289
|
+
color: tokens["color-visit--onSurface"],
|
|
290
|
+
},
|
|
291
|
+
task: {
|
|
292
|
+
color: tokens["color-task"],
|
|
293
|
+
},
|
|
294
|
+
taskSurface: {
|
|
295
|
+
color: tokens["color-task--surface"],
|
|
296
|
+
},
|
|
297
|
+
taskOnSurface: {
|
|
298
|
+
color: tokens["color-task--onSurface"],
|
|
299
|
+
},
|
|
300
|
+
event: {
|
|
301
|
+
color: tokens["color-event"],
|
|
302
|
+
},
|
|
303
|
+
eventSurface: {
|
|
304
|
+
color: tokens["color-event--surface"],
|
|
305
|
+
},
|
|
306
|
+
eventOnSurface: {
|
|
307
|
+
color: tokens["color-event--onSurface"],
|
|
308
|
+
},
|
|
309
|
+
invoice: {
|
|
310
|
+
color: tokens["color-invoice"],
|
|
311
|
+
},
|
|
312
|
+
invoiceSurface: {
|
|
313
|
+
color: tokens["color-invoice--surface"],
|
|
314
|
+
},
|
|
315
|
+
invoiceOnSurface: {
|
|
316
|
+
color: tokens["color-invoice--onSurface"],
|
|
317
|
+
},
|
|
318
|
+
payments: {
|
|
319
|
+
color: tokens["color-payments"],
|
|
320
|
+
},
|
|
321
|
+
paymentsSurface: {
|
|
322
|
+
color: tokens["color-payments--surface"],
|
|
323
|
+
},
|
|
324
|
+
paymentsOnSurface: {
|
|
325
|
+
color: tokens["color-payments--onSurface"],
|
|
326
|
+
},
|
|
327
|
+
client: {
|
|
328
|
+
color: tokens["color-client"],
|
|
329
|
+
},
|
|
330
|
+
// Miscellaneous
|
|
331
|
+
icon: {
|
|
332
|
+
color: tokens["color-icon"],
|
|
333
|
+
},
|
|
334
|
+
brand: {
|
|
335
|
+
color: tokens["color-brand"],
|
|
336
|
+
},
|
|
337
|
+
// Deprecated
|
|
338
|
+
blue: {
|
|
339
|
+
color: tokens["color-heading"],
|
|
340
|
+
},
|
|
341
|
+
base: {
|
|
342
|
+
color: tokens["color-text"],
|
|
343
|
+
},
|
|
344
|
+
baseReverse: {
|
|
345
|
+
color: tokens["color-text--reverse"],
|
|
346
|
+
},
|
|
347
|
+
headingReverse: {
|
|
348
|
+
color: tokens["color-text--reverse"],
|
|
349
|
+
},
|
|
350
|
+
error: {
|
|
351
|
+
color: tokens["color-critical"],
|
|
352
|
+
},
|
|
353
|
+
errorReverse: {
|
|
354
|
+
color: tokens["color-critical"],
|
|
355
|
+
},
|
|
356
|
+
success: {
|
|
357
|
+
color: tokens["color-success--onSurface"],
|
|
358
|
+
},
|
|
359
|
+
successReverse: {
|
|
360
|
+
color: tokens["color-success"],
|
|
361
|
+
},
|
|
362
|
+
warn: {
|
|
363
|
+
color: tokens["color-warning--onSurface"],
|
|
364
|
+
},
|
|
365
|
+
warnReverse: {
|
|
366
|
+
color: tokens["color-warning"],
|
|
367
|
+
},
|
|
368
|
+
subdued: {
|
|
369
|
+
color: tokens["color-text--secondary"],
|
|
370
|
+
},
|
|
371
|
+
subduedReverse: {
|
|
372
|
+
color: tokens["color-text--reverse--secondary"],
|
|
373
|
+
},
|
|
374
|
+
info: {
|
|
375
|
+
color: tokens["color-informative--onSurface"],
|
|
376
|
+
},
|
|
377
|
+
infoReverse: {
|
|
378
|
+
color: tokens["color-informative"],
|
|
379
|
+
},
|
|
380
|
+
criticalReverse: {
|
|
381
|
+
color: tokens["color-critical"],
|
|
382
|
+
},
|
|
383
|
+
learning: {
|
|
384
|
+
color: tokens["color-informative"],
|
|
385
|
+
},
|
|
386
|
+
subtle: {
|
|
387
|
+
color: tokens["color-interactive--subtle"],
|
|
388
|
+
},
|
|
389
|
+
onPrimary: {
|
|
390
|
+
color: tokens["color-surface"],
|
|
391
|
+
},
|
|
392
|
+
/**
|
|
393
|
+
* Sizes
|
|
394
|
+
*/
|
|
395
|
+
smallestSize: {
|
|
396
|
+
fontSize: tokens["typography--fontSize-smallest"],
|
|
397
|
+
lineHeight: minusculeLineHeight,
|
|
398
|
+
},
|
|
399
|
+
smallerSize: {
|
|
400
|
+
fontSize: tokens["typography--fontSize-smaller"],
|
|
401
|
+
lineHeight: tightLineHeight,
|
|
402
|
+
},
|
|
403
|
+
smallSize: {
|
|
404
|
+
fontSize: tokens["typography--fontSize-small"],
|
|
405
|
+
lineHeight: tightLineHeight,
|
|
406
|
+
},
|
|
407
|
+
defaultSize: {
|
|
408
|
+
fontSize: tokens["typography--fontSize-base"],
|
|
409
|
+
lineHeight: baseLineHeight,
|
|
410
|
+
},
|
|
411
|
+
largeSize: {
|
|
412
|
+
fontSize: tokens["typography--fontSize-large"],
|
|
413
|
+
lineHeight: largeLineHeight,
|
|
414
|
+
},
|
|
415
|
+
largerSize: {
|
|
416
|
+
fontSize: tokens["typography--fontSize-larger"],
|
|
417
|
+
lineHeight: largeLineHeight,
|
|
418
|
+
},
|
|
419
|
+
largestSize: {
|
|
420
|
+
fontSize: tokens["typography--fontSize-largest"],
|
|
421
|
+
lineHeight: largerLineHeight,
|
|
422
|
+
},
|
|
423
|
+
jumboSize: {
|
|
424
|
+
fontSize: tokens["typography--fontSize-jumbo"],
|
|
425
|
+
lineHeight: jumboLineHeight,
|
|
426
|
+
},
|
|
427
|
+
extravagantSize: {
|
|
428
|
+
fontSize: tokens["typography--fontSize-extravagant"],
|
|
429
|
+
lineHeight: extravagantLineHeight,
|
|
430
|
+
},
|
|
431
|
+
/**
|
|
432
|
+
* Line Heights
|
|
433
|
+
*/
|
|
434
|
+
extravagantLineHeight: {
|
|
435
|
+
lineHeight: extravagantLineHeight,
|
|
436
|
+
},
|
|
437
|
+
jumboLineHeight: {
|
|
438
|
+
lineHeight: jumboLineHeight,
|
|
439
|
+
},
|
|
440
|
+
largestLineHeight: {
|
|
441
|
+
lineHeight: largestLineHeight,
|
|
442
|
+
},
|
|
443
|
+
largerLineHeight: {
|
|
444
|
+
lineHeight: largerLineHeight,
|
|
445
|
+
},
|
|
446
|
+
largeLineHeight: {
|
|
447
|
+
lineHeight: largeLineHeight,
|
|
448
|
+
},
|
|
449
|
+
baseLineHeight: {
|
|
450
|
+
lineHeight: baseLineHeight,
|
|
451
|
+
},
|
|
452
|
+
tightLineHeight: {
|
|
453
|
+
lineHeight: tightLineHeight,
|
|
454
|
+
},
|
|
455
|
+
/**
|
|
456
|
+
* Letter Spacings
|
|
457
|
+
*/
|
|
458
|
+
baseLetterSpacing: {
|
|
459
|
+
letterSpacing: tokens["typography--letterSpacing-base"],
|
|
460
|
+
},
|
|
461
|
+
looseLetterSpacing: {
|
|
462
|
+
letterSpacing: tokens["typography--letterSpacing-loose"],
|
|
463
|
+
},
|
|
464
|
+
strikeThrough: {
|
|
465
|
+
textDecorationLine: "line-through",
|
|
466
|
+
},
|
|
467
|
+
});
|
|
468
|
+
/**
|
|
469
|
+
* @deprecated Use useTypographyStyles instead
|
|
470
|
+
*/
|
|
471
|
+
export const typographyStyles = StyleSheet.create(getTypographyStyles(staticTokens));
|
|
472
|
+
export const useTypographyStyles = buildThemedStyles(getTypographyStyles);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { PropsWithChildren } from "react";
|
|
2
|
+
import React from "react";
|
|
3
|
+
/**
|
|
4
|
+
* This is a workaround suggested by react-native-gesture-handler to prevent
|
|
5
|
+
* accidental highlighting of text in Android devices
|
|
6
|
+
* https://github.com/software-mansion/react-native-gesture-handler/issues/1372
|
|
7
|
+
*/
|
|
8
|
+
export declare function TypographyGestureDetector(props: PropsWithChildren<unknown>): React.JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { Gesture, GestureDetector } from "react-native-gesture-handler";
|
|
4
|
+
/**
|
|
5
|
+
* This is a workaround suggested by react-native-gesture-handler to prevent
|
|
6
|
+
* accidental highlighting of text in Android devices
|
|
7
|
+
* https://github.com/software-mansion/react-native-gesture-handler/issues/1372
|
|
8
|
+
*/
|
|
9
|
+
export function TypographyGestureDetector(props) {
|
|
10
|
+
return _jsx(GestureDetector, { ...props, gesture: Gesture.Native() });
|
|
11
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { Typography } from "./Typography.js";
|
|
2
|
+
export type { FontFamily, FontStyle, FontWeight, BaseWeight, DisplayWeight, BaseStyle, DisplayStyle, TextColor, TextTransform, TextSize, TextAlign, LineHeight, LetterSpacing, TextAccessibilityRole, TextVariation, TypographyProps, TruncateLength, OnTextLayoutEvent, } from "./Typography.js";
|
|
3
|
+
export { getTypographyStyles, useTypographyStyles } from "./Typography.style.js";
|
|
4
|
+
export { typographyStyles } from "./Typography.style.js";
|
|
5
|
+
export { TypographyGestureDetector } from "./TypographyGestureDetector.js";
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export const webFonts = {
|
|
2
|
+
baseRegularRegular: {
|
|
3
|
+
fontFamily: "'Inter', Helvetica, Arial, sans-serif",
|
|
4
|
+
fontWeight: "400",
|
|
5
|
+
},
|
|
6
|
+
baseRegularMedium: {
|
|
7
|
+
fontFamily: "'Inter', Helvetica, Arial, sans-serif",
|
|
8
|
+
fontWeight: "500",
|
|
9
|
+
},
|
|
10
|
+
baseRegularSemiBold: {
|
|
11
|
+
fontFamily: "'Inter', Helvetica, Arial, sans-serif",
|
|
12
|
+
fontWeight: "600",
|
|
13
|
+
},
|
|
14
|
+
baseRegularBold: {
|
|
15
|
+
fontFamily: "'Inter', Helvetica, Arial, sans-serif",
|
|
16
|
+
fontWeight: "700",
|
|
17
|
+
},
|
|
18
|
+
baseRegularExtraBold: {
|
|
19
|
+
fontFamily: "'Inter', Helvetica, Arial, sans-serif",
|
|
20
|
+
fontWeight: "800",
|
|
21
|
+
},
|
|
22
|
+
displayRegularBold: {
|
|
23
|
+
fontFamily: "'Poppins', Helvetica, Arial, sans-serif",
|
|
24
|
+
fontWeight: "700",
|
|
25
|
+
},
|
|
26
|
+
displayRegularExtraBold: {
|
|
27
|
+
fontFamily: "'Poppins', Helvetica, Arial, sans-serif",
|
|
28
|
+
fontWeight: "800",
|
|
29
|
+
},
|
|
30
|
+
displayRegularBlack: {
|
|
31
|
+
fontFamily: "'Poppins', Helvetica, Arial, sans-serif",
|
|
32
|
+
fontWeight: "900",
|
|
33
|
+
},
|
|
34
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function capitalize(text: string): string;
|