@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,56 @@
|
|
|
1
|
+
export declare const useStyles: () => {
|
|
2
|
+
container: {
|
|
3
|
+
width: "100%";
|
|
4
|
+
backgroundColor: string;
|
|
5
|
+
};
|
|
6
|
+
lowElevation: {
|
|
7
|
+
shadowColor: string;
|
|
8
|
+
shadowOffset: {
|
|
9
|
+
width: number;
|
|
10
|
+
height: number;
|
|
11
|
+
};
|
|
12
|
+
shadowOpacity: number;
|
|
13
|
+
shadowRadius: number;
|
|
14
|
+
elevation: number;
|
|
15
|
+
};
|
|
16
|
+
baseElevation: {
|
|
17
|
+
shadowColor: string;
|
|
18
|
+
shadowOffset: {
|
|
19
|
+
width: number;
|
|
20
|
+
height: number;
|
|
21
|
+
};
|
|
22
|
+
shadowOpacity: number;
|
|
23
|
+
shadowRadius: number;
|
|
24
|
+
elevation: number;
|
|
25
|
+
};
|
|
26
|
+
highElevation: {
|
|
27
|
+
shadowColor: string;
|
|
28
|
+
shadowOffset: {
|
|
29
|
+
width: number;
|
|
30
|
+
height: number;
|
|
31
|
+
};
|
|
32
|
+
shadowOpacity: number;
|
|
33
|
+
shadowRadius: number;
|
|
34
|
+
elevation: number;
|
|
35
|
+
};
|
|
36
|
+
headerTitle: {
|
|
37
|
+
flexGrow: number;
|
|
38
|
+
flex: number;
|
|
39
|
+
};
|
|
40
|
+
footer: {
|
|
41
|
+
height: number;
|
|
42
|
+
flex: number;
|
|
43
|
+
justifyContent: "center";
|
|
44
|
+
alignItems: "center";
|
|
45
|
+
};
|
|
46
|
+
pressed: {
|
|
47
|
+
opacity: number;
|
|
48
|
+
};
|
|
49
|
+
actionItem: {
|
|
50
|
+
height: number;
|
|
51
|
+
justifyContent: "center";
|
|
52
|
+
};
|
|
53
|
+
actionLabel: {
|
|
54
|
+
paddingTop: number;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { buildThemedStyles } from "../compatTheme.js";
|
|
2
|
+
export const useStyles = buildThemedStyles(tokens => {
|
|
3
|
+
return {
|
|
4
|
+
container: {
|
|
5
|
+
width: "100%",
|
|
6
|
+
backgroundColor: tokens["color-surface"],
|
|
7
|
+
},
|
|
8
|
+
lowElevation: {
|
|
9
|
+
...tokens["shadow-low"],
|
|
10
|
+
},
|
|
11
|
+
baseElevation: {
|
|
12
|
+
...tokens["shadow-base"],
|
|
13
|
+
},
|
|
14
|
+
highElevation: {
|
|
15
|
+
...tokens["shadow-high"],
|
|
16
|
+
},
|
|
17
|
+
headerTitle: {
|
|
18
|
+
flexGrow: 1,
|
|
19
|
+
flex: 1,
|
|
20
|
+
},
|
|
21
|
+
footer: {
|
|
22
|
+
height: tokens["space-largest"],
|
|
23
|
+
flex: 1,
|
|
24
|
+
justifyContent: "center",
|
|
25
|
+
alignItems: "center",
|
|
26
|
+
},
|
|
27
|
+
pressed: {
|
|
28
|
+
opacity: tokens["opacity-pressed"],
|
|
29
|
+
},
|
|
30
|
+
actionItem: {
|
|
31
|
+
height: tokens["typography--lineHeight-base"],
|
|
32
|
+
justifyContent: "center",
|
|
33
|
+
},
|
|
34
|
+
actionLabel: {
|
|
35
|
+
paddingTop: tokens["space-smallest"],
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import React from "react";
|
|
3
|
+
interface InternalCardHeaderProps {
|
|
4
|
+
readonly children: ReactNode[] | ReactNode;
|
|
5
|
+
readonly onPress?: () => void;
|
|
6
|
+
readonly testID?: string;
|
|
7
|
+
readonly collapsable: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare function InternalCardHeader({ onPress, children, testID, collapsable, }: InternalCardHeaderProps): React.JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { Pressable, View } from "react-native";
|
|
4
|
+
import { useStyles } from "./InternalCardHeader.style.js";
|
|
5
|
+
export function InternalCardHeader({ onPress, children, testID, collapsable, }) {
|
|
6
|
+
const styles = useStyles();
|
|
7
|
+
const conditionalChildStyling = collapsable ? undefined : styles.noChildren;
|
|
8
|
+
if (onPress) {
|
|
9
|
+
return (_jsx(Pressable, { testID: testID, onPress: onPress, style: ({ pressed }) => [
|
|
10
|
+
styles.header,
|
|
11
|
+
pressed && styles.pressed,
|
|
12
|
+
conditionalChildStyling,
|
|
13
|
+
], accessibilityRole: "button", children: children }));
|
|
14
|
+
}
|
|
15
|
+
return (_jsx(View, { testID: testID, style: [styles.header, conditionalChildStyling], children: children }));
|
|
16
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { buildThemedStyles } from "../../compatTheme.js";
|
|
2
|
+
export const useStyles = buildThemedStyles(tokens => {
|
|
3
|
+
return {
|
|
4
|
+
header: {
|
|
5
|
+
flexDirection: "row",
|
|
6
|
+
alignItems: "flex-start",
|
|
7
|
+
paddingTop: tokens["space-small"] + tokens["space-smaller"],
|
|
8
|
+
paddingHorizontal: tokens["space-base"],
|
|
9
|
+
},
|
|
10
|
+
pressed: {
|
|
11
|
+
opacity: tokens["opacity-pressed"],
|
|
12
|
+
},
|
|
13
|
+
noChildren: {
|
|
14
|
+
paddingBottom: tokens["space-small"] + tokens["space-smaller"],
|
|
15
|
+
},
|
|
16
|
+
};
|
|
17
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { InternalCardHeader } from "./InternalCardHeader.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { InternalCardHeader } from "./InternalCardHeader.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Card } from "./Card.js";
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { AccessibilityRole } from "react-native";
|
|
3
|
+
import type { IconNames } from "@zj-dynamics/design/native";
|
|
4
|
+
export type AccentType = "client" | "invoice" | "job" | "request" | "quote";
|
|
5
|
+
export interface ChipProps {
|
|
6
|
+
/**
|
|
7
|
+
* label of the chip.
|
|
8
|
+
*/
|
|
9
|
+
readonly label?: string;
|
|
10
|
+
/**
|
|
11
|
+
* chip's active status
|
|
12
|
+
*/
|
|
13
|
+
readonly isActive: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Boolean for chip's ability to be dismissed
|
|
16
|
+
*/
|
|
17
|
+
readonly isDismissible?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Background color to be used for inactive chips
|
|
20
|
+
*
|
|
21
|
+
* @default "background"
|
|
22
|
+
*/
|
|
23
|
+
readonly inactiveBackgroundColor?: "surface" | "background";
|
|
24
|
+
/**
|
|
25
|
+
* Accessibility label for the component. It's also used for testing
|
|
26
|
+
*/
|
|
27
|
+
readonly accessibilityLabel?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Accessibility role for the component
|
|
30
|
+
*/
|
|
31
|
+
readonly accessibilityRole?: AccessibilityRole;
|
|
32
|
+
/**
|
|
33
|
+
* Press handler
|
|
34
|
+
*/
|
|
35
|
+
onPress?(): void;
|
|
36
|
+
/**
|
|
37
|
+
* Optional Icon
|
|
38
|
+
*/
|
|
39
|
+
readonly icon?: IconNames;
|
|
40
|
+
/**
|
|
41
|
+
* Background color to be used for Active chips
|
|
42
|
+
*/
|
|
43
|
+
readonly accent?: AccentType;
|
|
44
|
+
}
|
|
45
|
+
export declare function Chip({ icon, label, onPress, isDismissible, isActive, inactiveBackgroundColor, accessibilityLabel, accessibilityRole, accent, }: ChipProps): React.JSX.Element;
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import React, { useMemo } from "react";
|
|
3
|
+
import { Pressable, View } from "react-native";
|
|
4
|
+
import { allColors } from "@zj-dynamics/design/native";
|
|
5
|
+
import { useStyles } from "./Chip.style.js";
|
|
6
|
+
import { Icon } from "../../Icon.js";
|
|
7
|
+
import { Typography } from "../Typography/index.js";
|
|
8
|
+
import { useLegacyTheme } from "../compatTheme.js";
|
|
9
|
+
export function Chip({ icon, label, onPress, isDismissible, isActive, inactiveBackgroundColor = "background", accessibilityLabel, accessibilityRole = "radio", accent, }) {
|
|
10
|
+
const styles = useStyles();
|
|
11
|
+
const { tokens, effectiveTheme } = useLegacyTheme();
|
|
12
|
+
const { chipStyle, iconCustomColor, labelStyle, dismissColor } = useMemo(() => {
|
|
13
|
+
const accentColor = accent
|
|
14
|
+
? tokens[`color-${accent}`]
|
|
15
|
+
: tokens["color-surface--reverse"];
|
|
16
|
+
let backgroundColor = accentColor;
|
|
17
|
+
let iconColor = isActive ? tokens["color-surface"] : accentColor;
|
|
18
|
+
let selectedLabelStyle;
|
|
19
|
+
if (isActive && accent) {
|
|
20
|
+
const selected = getSelectedAccentColors(accent, {
|
|
21
|
+
tokens,
|
|
22
|
+
effectiveTheme,
|
|
23
|
+
});
|
|
24
|
+
backgroundColor = selected.background;
|
|
25
|
+
iconColor = selected.foreground;
|
|
26
|
+
selectedLabelStyle = {
|
|
27
|
+
textStyle: { color: selected.foreground },
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
const chip = [
|
|
31
|
+
styles.container,
|
|
32
|
+
{
|
|
33
|
+
backgroundColor: inactiveBackgroundColor === "surface"
|
|
34
|
+
? tokens["color-surface"]
|
|
35
|
+
: tokens["color-interactive--background"],
|
|
36
|
+
},
|
|
37
|
+
isActive && { backgroundColor },
|
|
38
|
+
getBorderStyle(inactiveBackgroundColor, tokens),
|
|
39
|
+
];
|
|
40
|
+
const dismiss = (isActive || inactiveBackgroundColor === "surface") &&
|
|
41
|
+
styles.activeDismissIcon;
|
|
42
|
+
return {
|
|
43
|
+
chipStyle: chip,
|
|
44
|
+
iconCustomColor: iconColor,
|
|
45
|
+
labelStyle: selectedLabelStyle,
|
|
46
|
+
dismissColor: dismiss,
|
|
47
|
+
};
|
|
48
|
+
}, [
|
|
49
|
+
accent,
|
|
50
|
+
isActive,
|
|
51
|
+
inactiveBackgroundColor,
|
|
52
|
+
styles,
|
|
53
|
+
tokens,
|
|
54
|
+
effectiveTheme,
|
|
55
|
+
]);
|
|
56
|
+
const accessibilityState = useMemo(() => {
|
|
57
|
+
const checkableRoles = ["radio", "switch", "togglebutton", "checkbox"];
|
|
58
|
+
if (checkableRoles.includes(accessibilityRole)) {
|
|
59
|
+
return { checked: isActive, disabled: !onPress };
|
|
60
|
+
}
|
|
61
|
+
return { disabled: !onPress };
|
|
62
|
+
}, [accessibilityRole, isActive, onPress]);
|
|
63
|
+
return (_jsxs(Pressable, { testID: "chipTest", hitSlop: { top: 8, bottom: 8, left: 4, right: 4 }, ...(onPress !== undefined && { onPress }), disabled: typeof onPress !== "function", style: chipStyle, accessibilityLabel: accessibilityLabel || label, accessibilityRole: accessibilityRole, accessibilityState: accessibilityState, children: [icon && (_jsx(View, { style: styles.iconLeft, children: _jsx(Icon, { name: icon, size: "base", customColor: iconCustomColor }) })), label && (_jsx(View, { style: styles.chipText, children: _jsx(Typography, { color: "base", fontWeight: "medium", maxFontScaleSize: tokens["typography--fontSize-large"], maxLines: "single", reverseTheme: isActive && !accent, ...(labelStyle !== undefined && { UNSAFE_style: labelStyle }), children: label }) })), isDismissible && (_jsx(View, { style: [styles.dismissIcon, dismissColor], children: _jsx(Icon, { name: "cross", size: "small" }) }))] }));
|
|
64
|
+
}
|
|
65
|
+
// Object labels and leading icons share the selected foreground.
|
|
66
|
+
function getSelectedAccentColors(accent, { tokens, effectiveTheme, }) {
|
|
67
|
+
const colors = {
|
|
68
|
+
background: allColors[`color-${accent}`],
|
|
69
|
+
foreground: allColors["color-text--reverse"],
|
|
70
|
+
};
|
|
71
|
+
if (accent === "client") {
|
|
72
|
+
colors.background = tokens["color-client"];
|
|
73
|
+
if (effectiveTheme === "dark") {
|
|
74
|
+
colors.foreground = allColors["color-text"];
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
return colors;
|
|
78
|
+
}
|
|
79
|
+
function getBorderStyle(inactiveBackgroundColor, tokens) {
|
|
80
|
+
let borderColor = "transparent";
|
|
81
|
+
if (inactiveBackgroundColor === "surface") {
|
|
82
|
+
borderColor = tokens["color-border"];
|
|
83
|
+
}
|
|
84
|
+
return {
|
|
85
|
+
borderColor,
|
|
86
|
+
borderWidth: tokens["border-base"],
|
|
87
|
+
};
|
|
88
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export declare const useStyles: () => {
|
|
2
|
+
container: {
|
|
3
|
+
alignItems: "center";
|
|
4
|
+
borderRadius: number;
|
|
5
|
+
flexDirection: "row";
|
|
6
|
+
height: number;
|
|
7
|
+
justifyContent: "center";
|
|
8
|
+
paddingHorizontal: number;
|
|
9
|
+
};
|
|
10
|
+
iconLeft: {
|
|
11
|
+
marginHorizontal: number;
|
|
12
|
+
};
|
|
13
|
+
chipText: {
|
|
14
|
+
flexGrow: number;
|
|
15
|
+
flexShrink: number;
|
|
16
|
+
marginHorizontal: number;
|
|
17
|
+
};
|
|
18
|
+
dismissIcon: {
|
|
19
|
+
backgroundColor: string;
|
|
20
|
+
borderRadius: number;
|
|
21
|
+
marginLeft: number;
|
|
22
|
+
padding: number;
|
|
23
|
+
};
|
|
24
|
+
activeDismissIcon: {
|
|
25
|
+
backgroundColor: string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { buildThemedStyles } from "../compatTheme.js";
|
|
2
|
+
export const useStyles = buildThemedStyles(tokens => {
|
|
3
|
+
const chipHeight = tokens["space-larger"] + tokens["space-small"];
|
|
4
|
+
return {
|
|
5
|
+
container: {
|
|
6
|
+
alignItems: "center",
|
|
7
|
+
borderRadius: tokens["radius-circle"],
|
|
8
|
+
flexDirection: "row",
|
|
9
|
+
height: chipHeight,
|
|
10
|
+
justifyContent: "center",
|
|
11
|
+
paddingHorizontal: tokens["space-base"],
|
|
12
|
+
},
|
|
13
|
+
iconLeft: {
|
|
14
|
+
marginHorizontal: tokens["space-smallest"],
|
|
15
|
+
},
|
|
16
|
+
chipText: {
|
|
17
|
+
flexGrow: 1,
|
|
18
|
+
flexShrink: 1,
|
|
19
|
+
marginHorizontal: tokens["space-smallest"],
|
|
20
|
+
},
|
|
21
|
+
dismissIcon: {
|
|
22
|
+
backgroundColor: tokens["color-surface"],
|
|
23
|
+
borderRadius: tokens["radius-circle"],
|
|
24
|
+
marginLeft: tokens["space-smaller"],
|
|
25
|
+
padding: tokens["space-smaller"],
|
|
26
|
+
},
|
|
27
|
+
activeDismissIcon: {
|
|
28
|
+
backgroundColor: tokens["color-surface--background"],
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Chip } from "./Chip.js";
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
export interface ComponentSettingsContextProps {
|
|
2
|
+
/**
|
|
3
|
+
* The date format Rulnar components would use
|
|
4
|
+
*/
|
|
5
|
+
readonly dateFormat: string;
|
|
6
|
+
/**
|
|
7
|
+
* The time format Rulnar components would use
|
|
8
|
+
*/
|
|
9
|
+
readonly timeFormat: string;
|
|
10
|
+
/**
|
|
11
|
+
* Time zone used in converting the date and time formats
|
|
12
|
+
*/
|
|
13
|
+
readonly timeZone: string;
|
|
14
|
+
/**
|
|
15
|
+
* Determines how the component behaves when the app is online or offline.
|
|
16
|
+
* This is set to `true` by default. If your usage doesn't require a different
|
|
17
|
+
* experience, you can leave this as-is.
|
|
18
|
+
*/
|
|
19
|
+
readonly isOnline: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Log errors to rollbar
|
|
22
|
+
*/
|
|
23
|
+
readonly onLogError: (message: string) => void;
|
|
24
|
+
/**
|
|
25
|
+
* Grabs the decimal separator and group separator based on locale
|
|
26
|
+
*/
|
|
27
|
+
readonly floatSeparators: Record<"decimal" | "group", string>;
|
|
28
|
+
/**
|
|
29
|
+
* The currency symbol Rulnar components will use
|
|
30
|
+
*/
|
|
31
|
+
readonly currencySymbol: string;
|
|
32
|
+
/**
|
|
33
|
+
* The `headerHeight` property represents the height of the app header in Rulnar.
|
|
34
|
+
* It plays a crucial role in determining the positioning of various elements within the app.
|
|
35
|
+
* By accurately defining this value, Rulnar can effectively calculate the layout and alignment of its components.
|
|
36
|
+
*/
|
|
37
|
+
readonly headerHeight: number;
|
|
38
|
+
/**
|
|
39
|
+
* Change the locale of the components. This updates the strings that comes
|
|
40
|
+
* with the components, updates the date and time formats, and/or the
|
|
41
|
+
* native 3rd-party packages.
|
|
42
|
+
*
|
|
43
|
+
* @default "en"
|
|
44
|
+
*/
|
|
45
|
+
readonly locale: string;
|
|
46
|
+
/**
|
|
47
|
+
* The `setHeaderHeight` method allows you to set the height of the app header in Rulnar.
|
|
48
|
+
* Adjusting this height is essential for ensuring the correct positioning and alignment of various elements within the app.
|
|
49
|
+
* By setting this value accurately, Rulnar can dynamically adjust the layout of its components based on the specified header height.
|
|
50
|
+
*/
|
|
51
|
+
readonly setHeaderHeight: (height: number) => void;
|
|
52
|
+
}
|
|
53
|
+
export declare const componentSettingsContextDefaultValues: ComponentSettingsContextProps;
|
|
54
|
+
export declare const ComponentSettingsContext: import("react").Context<ComponentSettingsContextProps>;
|
|
55
|
+
export declare function useComponentSettings(): ComponentSettingsContextProps;
|
|
56
|
+
|
|
57
|
+
export declare const ComponentSettingsProvider: typeof ComponentSettingsContext.Provider;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
2
|
+
import { createContext, useContext } from "react";
|
|
3
|
+
import { DEFAULT_CURRENCY_SYMBOL } from "../InputCurrency/constants.js";
|
|
4
|
+
export const componentSettingsContextDefaultValues = {
|
|
5
|
+
dateFormat: "PP",
|
|
6
|
+
// The system time is "p"
|
|
7
|
+
timeFormat: "p",
|
|
8
|
+
timeZone: Intl.DateTimeFormat().resolvedOptions().timeZone,
|
|
9
|
+
isOnline: true,
|
|
10
|
+
onLogError: _ => {
|
|
11
|
+
return;
|
|
12
|
+
},
|
|
13
|
+
floatSeparators: { group: ",", decimal: "." },
|
|
14
|
+
currencySymbol: DEFAULT_CURRENCY_SYMBOL,
|
|
15
|
+
headerHeight: 0,
|
|
16
|
+
locale: "en",
|
|
17
|
+
setHeaderHeight: _ => {
|
|
18
|
+
return;
|
|
19
|
+
},
|
|
20
|
+
};
|
|
21
|
+
export const ComponentSettingsContext = createContext(componentSettingsContextDefaultValues);
|
|
22
|
+
export function useComponentSettings() {
|
|
23
|
+
return useContext(ComponentSettingsContext);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export const ComponentSettingsProvider = ComponentSettingsContext.Provider;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./ComponentSettingsContext.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./ComponentSettingsContext.js";
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface DisclosureProps {
|
|
3
|
+
/**
|
|
4
|
+
* Specifies the main content of the disclosure component.
|
|
5
|
+
* It can be any React Node - simple text, JSX, or a complex React component.
|
|
6
|
+
*/
|
|
7
|
+
readonly content: React.ReactNode;
|
|
8
|
+
/**
|
|
9
|
+
* Defines the header of the disclosure component.
|
|
10
|
+
* Similar to `content`, it can be any React Node.
|
|
11
|
+
*/
|
|
12
|
+
readonly header: React.ReactNode;
|
|
13
|
+
/**
|
|
14
|
+
* A boolean that determines whether the disclosure component is in an open or closed state.
|
|
15
|
+
* If `open` is true, the disclosure is in an open state; if false, it's closed.
|
|
16
|
+
*/
|
|
17
|
+
readonly open: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* A boolean that indicates whether the disclosure component is empty or not.
|
|
20
|
+
* If `isEmpty` is `true`, there is no content in the disclosure; if false, there is some content.
|
|
21
|
+
*/
|
|
22
|
+
readonly isEmpty: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* An optional property that determines the duration of the opening and closing animation of the disclosure component.
|
|
25
|
+
* It's defined in milliseconds.
|
|
26
|
+
* @default tokens["timing-slowest"]
|
|
27
|
+
*/
|
|
28
|
+
readonly animationDuration?: number;
|
|
29
|
+
/**
|
|
30
|
+
* A function that is called whenever the disclosure component is toggled between its open and closed states.
|
|
31
|
+
*/
|
|
32
|
+
onToggle(): void;
|
|
33
|
+
}
|
|
34
|
+
export declare function Disclosure({ content, header, open, onToggle, isEmpty, animationDuration, }: DisclosureProps): React.JSX.Element;
|
|
35
|
+
export {};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import React, { useEffect, useState } from "react";
|
|
3
|
+
import { TouchableOpacity, View } from "react-native";
|
|
4
|
+
import Reanimated, { Easing, useAnimatedStyle, useSharedValue, withTiming, } from "react-native-reanimated";
|
|
5
|
+
import { EASE_CUBIC_IN_OUT } from "./constants.js";
|
|
6
|
+
import { useStyles } from "./Disclosure.style.js";
|
|
7
|
+
import { platformTokens as staticTokens } from "../../foundationTokens.js";
|
|
8
|
+
import { Icon } from "../../Icon.js";
|
|
9
|
+
import { useLegacyTheme } from "../compatTheme.js";
|
|
10
|
+
const ReanimatedView = Reanimated.View;
|
|
11
|
+
const ReanimatedScrollView = Reanimated.ScrollView;
|
|
12
|
+
export function Disclosure({ content, header, open, onToggle, isEmpty, animationDuration = staticTokens["timing-slowest"], }) {
|
|
13
|
+
const styles = useStyles();
|
|
14
|
+
return (_jsxs(View, { style: styles.container, children: [_jsx(DisclosureHeader, { header, onToggle, isEmpty, open, animationDuration, styles }), _jsx(DisclosureContent, { content, open, animationDuration, styles })] }));
|
|
15
|
+
}
|
|
16
|
+
function DisclosureHeader({ header, onToggle, isEmpty, open, animationDuration, styles, }) {
|
|
17
|
+
const rotateZ = useSharedValue(0);
|
|
18
|
+
useEffect(() => {
|
|
19
|
+
rotateZ.value = withTiming(open ? 0 : -180, {
|
|
20
|
+
easing: Easing.bezier(...EASE_CUBIC_IN_OUT),
|
|
21
|
+
duration: animationDuration,
|
|
22
|
+
});
|
|
23
|
+
}, [open, rotateZ, animationDuration]);
|
|
24
|
+
const animatedStyle = useAnimatedStyle(() => {
|
|
25
|
+
return {
|
|
26
|
+
transform: [{ rotateZ: `${rotateZ.value}deg` }],
|
|
27
|
+
};
|
|
28
|
+
});
|
|
29
|
+
const { tokens } = useLegacyTheme();
|
|
30
|
+
return (_jsx(TouchableOpacity, { activeOpacity: tokens["opacity-pressed"], onPress: onToggle, disabled: isEmpty, accessibilityRole: "button", accessibilityState: { disabled: isEmpty, expanded: open }, children: _jsxs(View, { style: styles.headerContainer, children: [header, !isEmpty && (_jsx(ReanimatedView, { style: [animatedStyle], children: _jsx(Icon, { name: "arrowUp", color: "iconSecondary" }) }))] }) }));
|
|
31
|
+
}
|
|
32
|
+
function DisclosureContent({ content, open, animationDuration, styles, }) {
|
|
33
|
+
const [maxHeight, setMaxHeight] = useState(0);
|
|
34
|
+
const height = useSharedValue(0);
|
|
35
|
+
const onContentLayoutChange = (event) => {
|
|
36
|
+
const newHeight = event.nativeEvent.layout.height;
|
|
37
|
+
setMaxHeight(newHeight);
|
|
38
|
+
};
|
|
39
|
+
useEffect(() => {
|
|
40
|
+
height.value = withTiming(open ? maxHeight : 0, {
|
|
41
|
+
duration: animationDuration,
|
|
42
|
+
easing: Easing.bezier(...EASE_CUBIC_IN_OUT),
|
|
43
|
+
});
|
|
44
|
+
}, [open, height, maxHeight, animationDuration]);
|
|
45
|
+
const animatedStyle = useAnimatedStyle(() => {
|
|
46
|
+
return {
|
|
47
|
+
height: height.value,
|
|
48
|
+
};
|
|
49
|
+
}, []);
|
|
50
|
+
return (_jsx(ReanimatedScrollView, { scrollEnabled: false, accessibilityElementsHidden: !open, importantForAccessibility: open ? "auto" : "no-hide-descendants", showsHorizontalScrollIndicator: false, showsVerticalScrollIndicator: false, style: [styles.contentContainer, animatedStyle], children: _jsx(View, { testID: "content", onLayout: onContentLayoutChange, children: content }) }));
|
|
51
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const useStyles: () => {
|
|
2
|
+
container: {
|
|
3
|
+
width: "100%";
|
|
4
|
+
};
|
|
5
|
+
headerContainer: {
|
|
6
|
+
flexDirection: "row";
|
|
7
|
+
alignItems: "flex-start";
|
|
8
|
+
justifyContent: "space-between";
|
|
9
|
+
};
|
|
10
|
+
countColumn: {
|
|
11
|
+
paddingRight: number;
|
|
12
|
+
};
|
|
13
|
+
titleContainer: {
|
|
14
|
+
flexDirection: "row";
|
|
15
|
+
};
|
|
16
|
+
contentContainer: {
|
|
17
|
+
paddingTop: number;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { buildThemedStyles } from "../compatTheme.js";
|
|
2
|
+
export const useStyles = buildThemedStyles(tokens => {
|
|
3
|
+
return {
|
|
4
|
+
container: {
|
|
5
|
+
width: "100%",
|
|
6
|
+
},
|
|
7
|
+
headerContainer: {
|
|
8
|
+
flexDirection: "row",
|
|
9
|
+
alignItems: "flex-start",
|
|
10
|
+
justifyContent: "space-between",
|
|
11
|
+
},
|
|
12
|
+
countColumn: {
|
|
13
|
+
paddingRight: tokens["space-base"],
|
|
14
|
+
},
|
|
15
|
+
titleContainer: {
|
|
16
|
+
flexDirection: "row",
|
|
17
|
+
},
|
|
18
|
+
contentContainer: {
|
|
19
|
+
paddingTop: tokens["space-small"],
|
|
20
|
+
},
|
|
21
|
+
};
|
|
22
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const EASE_CUBIC_IN_OUT: readonly [0.645, 0.045, 0.355, 1];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const EASE_CUBIC_IN_OUT = [0.645, 0.045, 0.355, 1.0];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Disclosure } from "./Disclosure.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Disclosure } from "./Disclosure.js";
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { IconColorNames, IconNames } from "@zj-dynamics/design/native";
|
|
2
|
+
import React from "react";
|
|
3
|
+
interface Action {
|
|
4
|
+
label: string;
|
|
5
|
+
onPress: () => void;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface EmptyStateProps {
|
|
9
|
+
/**
|
|
10
|
+
* Icon to display.
|
|
11
|
+
*/
|
|
12
|
+
readonly icon?: IconNames;
|
|
13
|
+
/**
|
|
14
|
+
* Color of Icon to display.
|
|
15
|
+
*/
|
|
16
|
+
readonly iconColor?: IconColorNames;
|
|
17
|
+
/**
|
|
18
|
+
* Title of the empty state.
|
|
19
|
+
*/
|
|
20
|
+
readonly title?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Description of the empty state.
|
|
23
|
+
*/
|
|
24
|
+
readonly description?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Handler for the primary action.
|
|
27
|
+
*/
|
|
28
|
+
readonly primaryAction?: Action;
|
|
29
|
+
/**
|
|
30
|
+
* Handler for the secondary action.
|
|
31
|
+
*/
|
|
32
|
+
readonly secondaryAction?: Action;
|
|
33
|
+
}
|
|
34
|
+
export declare function EmptyState({ icon, title, description, primaryAction, secondaryAction, iconColor, }: EmptyStateProps): React.JSX.Element;
|
|
35
|
+
export {};
|