@jobber/components-native 0.84.1 → 0.84.2-CLEANUPus-07fd343.17
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/dist/package.json +2 -2
- package/dist/src/ButtonGroup/utils.js +1 -1
- package/dist/src/Card/Card.js +1 -1
- package/dist/src/ErrorMessageWrapper/context/ErrorMessageProvider.js +1 -1
- package/dist/src/Form/Form.js +2 -2
- package/dist/src/Form/components/FormSaveButton/FormSaveButton.js +1 -1
- package/dist/src/Form/hooks/useInternalForm.js +1 -1
- package/dist/src/Form/hooks/useScrollToError/useScrollToError.js +1 -1
- package/dist/src/FormatFile/FormatFile.js +2 -2
- package/dist/src/Heading/Heading.js +1 -1
- package/dist/src/InputFieldWrapper/CommonInputStyles.style.js +1 -1
- package/dist/src/InputFieldWrapper/InputFieldWrapper.js +1 -1
- package/dist/src/InputFieldWrapper/components/Prefix/Prefix.js +1 -1
- package/dist/src/InputFieldWrapper/components/Suffix/Suffix.js +1 -1
- package/dist/src/InputText/InputText.js +1 -1
- package/dist/src/Text/Text.js +1 -1
- package/dist/src/Typography/Typography.js +1 -1
- package/dist/src/Typography/Typography.style.js +1 -1
- package/dist/src/hooks/useFormController.js +1 -1
- package/dist/src/utils/test/MockSafeAreaProvider.js +1 -1
- package/dist/tsconfig.eslint.json +12 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/src/ActionItem/ActionItem.d.ts +2 -2
- package/dist/types/src/ActionItem/ActionItemGroup.d.ts +2 -2
- package/dist/types/src/ActionItem/components/ActionItemContainer.d.ts +1 -1
- package/dist/types/src/ActionItem/index.d.ts +2 -1
- package/dist/types/src/ActionLabel/ActionLabel.d.ts +1 -1
- package/dist/types/src/ActionLabel/index.d.ts +2 -1
- package/dist/types/src/ActivityIndicator/ActivityIndicator.d.ts +1 -1
- package/dist/types/src/AtlantisThemeContext/AtlantisThemeContext.d.ts +1 -1
- package/dist/types/src/AtlantisThemeContext/buildThemedStyles.d.ts +1 -1
- package/dist/types/src/AtlantisThemeContext/index.d.ts +1 -1
- package/dist/types/src/AtlantisThemeContext/types.d.ts +1 -1
- package/dist/types/src/AutoLink/AutoLink.d.ts +1 -1
- package/dist/types/src/AutoLink/clipboard.d.ts +1 -1
- package/dist/types/src/AutoLink/components/ComposeTextWithLinks/ComposeTextWithLinks.d.ts +1 -1
- package/dist/types/src/AutoLink/hooks/useCreateLinkedText.d.ts +1 -1
- package/dist/types/src/AutoLink/types.d.ts +2 -2
- package/dist/types/src/AutoLink/utils.d.ts +2 -2
- package/dist/types/src/Banner/Banner.d.ts +1 -1
- package/dist/types/src/Banner/components/BannerIcon/BannerIcon.d.ts +2 -2
- package/dist/types/src/Banner/types.d.ts +3 -3
- package/dist/types/src/BottomSheet/BottomSheet.d.ts +2 -1
- package/dist/types/src/BottomSheet/components/BottomSheetOption/BottomSheetOption.d.ts +2 -2
- package/dist/types/src/BottomSheet/components/BottomSheetOption/index.d.ts +2 -1
- package/dist/types/src/Button/Button.d.ts +4 -4
- package/dist/types/src/Button/components/InternalButtonLoading/InternalButtonLoading.d.ts +1 -1
- package/dist/types/src/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/dist/types/src/ButtonGroup/ButtonGroupAction.d.ts +2 -2
- package/dist/types/src/ButtonGroup/components/SecondaryActionSheet/SecondaryActionSheet.d.ts +3 -3
- package/dist/types/src/ButtonGroup/types.d.ts +2 -2
- package/dist/types/src/ButtonGroup/utils.d.ts +2 -2
- package/dist/types/src/Card/Card.d.ts +3 -3
- package/dist/types/src/Card/components/InternalCardHeader.d.ts +1 -1
- package/dist/types/src/Checkbox/Checkbox.d.ts +1 -1
- package/dist/types/src/Checkbox/CheckboxGroup.d.ts +3 -3
- package/dist/types/src/Checkbox/CheckboxGroupReducer.d.ts +1 -1
- package/dist/types/src/Checkbox/types.d.ts +2 -2
- package/dist/types/src/Chip/Chip.d.ts +2 -2
- package/dist/types/src/Content/Content.d.ts +2 -2
- package/dist/types/src/ContentOverlay/ContentOverlay.d.ts +1 -1
- package/dist/types/src/ContentOverlay/hooks/useViewLayoutHeight.d.ts +1 -1
- package/dist/types/src/ContentOverlay/types.d.ts +2 -2
- package/dist/types/src/EmptyState/EmptyState.d.ts +1 -1
- package/dist/types/src/ErrorMessageWrapper/ErrorMessageWrapper.d.ts +1 -1
- package/dist/types/src/ErrorMessageWrapper/context/ErrorMessageContext.d.ts +1 -1
- package/dist/types/src/ErrorMessageWrapper/context/ErrorMessageProvider.d.ts +1 -1
- package/dist/types/src/ErrorMessageWrapper/context/types.d.ts +2 -2
- package/dist/types/src/Flex/Flex.d.ts +2 -2
- package/dist/types/src/Flex/Flex.styles.d.ts +2 -2
- package/dist/types/src/Flex/types.d.ts +1 -1
- package/dist/types/src/Form/Form.d.ts +2 -2
- package/dist/types/src/Form/components/FormActionBar/FormActionBar.d.ts +1 -1
- package/dist/types/src/Form/components/FormBody/FormBody.d.ts +1 -1
- package/dist/types/src/Form/components/FormCache/FormCache.d.ts +1 -1
- package/dist/types/src/Form/components/FormErrorBanner/FormErrorBanner.d.ts +1 -1
- package/dist/types/src/Form/components/FormMessage/FormMessage.d.ts +1 -1
- package/dist/types/src/Form/components/FormMessage/components/InternalFormMessage/InternalFormMessage.d.ts +1 -1
- package/dist/types/src/Form/components/FormMessageBanner/FormMessageBanner.d.ts +1 -1
- package/dist/types/src/Form/components/FormSaveButton/FormSaveButton.d.ts +1 -1
- package/dist/types/src/Form/context/AtlantisFormContext.d.ts +1 -1
- package/dist/types/src/Form/context/types.d.ts +2 -2
- package/dist/types/src/Form/hooks/useFormViewRefs.d.ts +3 -3
- package/dist/types/src/Form/hooks/useInternalForm.d.ts +4 -4
- package/dist/types/src/Form/hooks/useScreenInformation.d.ts +1 -1
- package/dist/types/src/Form/hooks/useScrollToError/useScrollToError.d.ts +2 -2
- package/dist/types/src/Form/types.d.ts +4 -4
- package/dist/types/src/FormField/FormField.d.ts +1 -1
- package/dist/types/src/FormatFile/FormatFile.d.ts +2 -2
- package/dist/types/src/FormatFile/components/FileView/FileView.d.ts +1 -1
- package/dist/types/src/FormatFile/components/FormatFileBottomSheet/FormatFileBottomSheet.d.ts +2 -2
- package/dist/types/src/FormatFile/components/MediaView/MediaView.d.ts +1 -1
- package/dist/types/src/FormatFile/components/_mocks/mockFiles.d.ts +2 -1
- package/dist/types/src/FormatFile/context/FormatFileContext.d.ts +1 -1
- package/dist/types/src/FormatFile/context/types.d.ts +1 -1
- package/dist/types/src/FormatFile/index.d.ts +2 -1
- package/dist/types/src/FormatFile/utils/computeA11yLabel.d.ts +1 -1
- package/dist/types/src/FormatFile/utils/createUseCreateThumbnail.d.ts +2 -2
- package/dist/types/src/Heading/Heading.d.ts +1 -1
- package/dist/types/src/Icon/Icon.d.ts +1 -1
- package/dist/types/src/IconButton/IconButton.d.ts +1 -1
- package/dist/types/src/InputCurrency/InputCurrency.d.ts +3 -3
- package/dist/types/src/InputDate/InputDate.d.ts +4 -4
- package/dist/types/src/InputDate/index.d.ts +2 -1
- package/dist/types/src/InputEmail/InputEmail.d.ts +1 -1
- package/dist/types/src/InputFieldWrapper/CommonInputStyles.style.d.ts +2 -2
- package/dist/types/src/InputFieldWrapper/InputFieldWrapper.d.ts +3 -3
- package/dist/types/src/InputFieldWrapper/components/Prefix/Prefix.d.ts +2 -2
- package/dist/types/src/InputFieldWrapper/components/Suffix/Suffix.d.ts +2 -2
- package/dist/types/src/InputNumber/InputNumber.d.ts +1 -1
- package/dist/types/src/InputPassword/InputPassword.d.ts +1 -1
- package/dist/types/src/InputPressable/InputPressable.d.ts +6 -5
- package/dist/types/src/InputSearch/InputSearch.d.ts +1 -1
- package/dist/types/src/InputText/InputText.d.ts +8 -6
- package/dist/types/src/InputText/context/InputAccessoriesContext.d.ts +1 -1
- package/dist/types/src/InputText/context/InputAccessoriesProvider.d.ts +1 -1
- package/dist/types/src/InputTime/InputTime.d.ts +4 -4
- package/dist/types/src/Menu/Menu.d.ts +1 -1
- package/dist/types/src/Menu/components/MenuOption/MenuOption.d.ts +1 -1
- package/dist/types/src/Menu/components/Overlay/Overlay.d.ts +1 -1
- package/dist/types/src/Menu/types.d.ts +2 -2
- package/dist/types/src/Menu/utils.d.ts +2 -2
- package/dist/types/src/ProgressBar/ProgressBar.d.ts +1 -1
- package/dist/types/src/ProgressBar/types.d.ts +1 -1
- package/dist/types/src/Select/Select.d.ts +2 -2
- package/dist/types/src/Select/components/SelectDefaultPicker/SelectDefaultPicker.d.ts +1 -1
- package/dist/types/src/Select/components/SelectDefaultPicker/SelectDefaultPicker.ios.d.ts +1 -1
- package/dist/types/src/Select/components/SelectIOSPicker/SelectIOSPicker.d.ts +2 -2
- package/dist/types/src/Select/components/SelectInternalPicker/SelectInternalPicker.d.ts +1 -1
- package/dist/types/src/Select/components/SelectInternalPicker/utils.d.ts +1 -1
- package/dist/types/src/Select/components/SelectPressable/SelectPressable.d.ts +2 -2
- package/dist/types/src/Select/index.d.ts +2 -1
- package/dist/types/src/Select/types.d.ts +1 -1
- package/dist/types/src/Switch/Switch.d.ts +2 -2
- package/dist/types/src/Switch/index.d.ts +2 -1
- package/dist/types/src/Text/Text.d.ts +2 -2
- package/dist/types/src/Text/index.d.ts +2 -1
- package/dist/types/src/TextList/TextList.d.ts +2 -2
- package/dist/types/src/ThumbnailList/ThumbnailList.d.ts +2 -2
- package/dist/types/src/ThumbnailList/types.d.ts +1 -1
- package/dist/types/src/Toast/Toast.d.ts +1 -1
- package/dist/types/src/Typography/Typography.d.ts +1 -1
- package/dist/types/src/Typography/Typography.style.d.ts +2 -2
- package/dist/types/src/Typography/TypographyGestureDetector.d.ts +1 -1
- package/dist/types/src/Typography/webFonts.d.ts +1 -1
- package/dist/types/src/hooks/useFormController.d.ts +1 -1
- package/dist/types/src/utils/test/MockSafeAreaProvider.d.ts +1 -1
- package/package.json +2 -2
- package/src/ActionItem/ActionItem.tsx +3 -2
- package/src/ActionItem/ActionItemGroup.tsx +3 -2
- package/src/ActionItem/components/ActionItemContainer.tsx +2 -1
- package/src/ActionItem/index.ts +2 -1
- package/src/ActionLabel/ActionLabel.test.tsx +3 -2
- package/src/ActionLabel/ActionLabel.tsx +2 -1
- package/src/ActionLabel/index.ts +2 -1
- package/src/ActivityIndicator/ActivityIndicator.tsx +2 -1
- package/src/AtlantisContext/AtlantisContext.test.tsx +3 -2
- package/src/AtlantisThemeContext/AtlantisThemeContext.test.tsx +1 -1
- package/src/AtlantisThemeContext/AtlantisThemeContext.tsx +1 -1
- package/src/AtlantisThemeContext/buildThemedStyles.ts +1 -1
- package/src/AtlantisThemeContext/index.ts +1 -1
- package/src/AtlantisThemeContext/types.ts +1 -1
- package/src/AutoLink/AutoLink.tsx +1 -1
- package/src/AutoLink/clipboard.ts +2 -1
- package/src/AutoLink/components/ComposeTextWithLinks/ComposeTextWithLinks.tsx +1 -1
- package/src/AutoLink/hooks/useCreateLinkedText.ts +2 -1
- package/src/AutoLink/types.ts +2 -2
- package/src/AutoLink/utils.ts +2 -2
- package/src/Banner/Banner.tsx +4 -3
- package/src/Banner/components/BannerIcon/BannerIcon.tsx +2 -2
- package/src/Banner/types.ts +3 -3
- package/src/BottomSheet/BottomSheet.test.tsx +1 -1
- package/src/BottomSheet/BottomSheet.tsx +2 -1
- package/src/BottomSheet/components/BottomSheetOption/BottomSheetOption.tsx +2 -2
- package/src/BottomSheet/components/BottomSheetOption/index.ts +2 -1
- package/src/Button/Button.test.tsx +6 -4
- package/src/Button/Button.tsx +7 -5
- package/src/Button/components/InternalButtonLoading/InternalButtonLoading.test.tsx +1 -1
- package/src/Button/components/InternalButtonLoading/InternalButtonLoading.tsx +1 -1
- package/src/ButtonGroup/ButtonGroup.test.tsx +2 -1
- package/src/ButtonGroup/ButtonGroup.tsx +2 -2
- package/src/ButtonGroup/ButtonGroupAction.tsx +2 -2
- package/src/ButtonGroup/components/SecondaryActionSheet/SecondaryActionSheet.tsx +5 -3
- package/src/ButtonGroup/types.ts +2 -2
- package/src/ButtonGroup/utils.ts +3 -6
- package/src/Card/Card.tsx +6 -6
- package/src/Card/components/InternalCardHeader.tsx +2 -1
- package/src/Checkbox/Checkbox.tsx +3 -2
- package/src/Checkbox/CheckboxGroup.test.tsx +3 -7
- package/src/Checkbox/CheckboxGroup.tsx +4 -3
- package/src/Checkbox/CheckboxGroupReducer.test.ts +1 -1
- package/src/Checkbox/CheckboxGroupReducer.ts +4 -1
- package/src/Checkbox/types.ts +2 -2
- package/src/Chip/Chip.tsx +3 -2
- package/src/Content/Content.test.tsx +3 -2
- package/src/Content/Content.tsx +4 -2
- package/src/ContentOverlay/ContentOverlay.test.tsx +4 -6
- package/src/ContentOverlay/ContentOverlay.tsx +3 -4
- package/src/ContentOverlay/hooks/useKeyboardVisibility.test.ts +2 -1
- package/src/ContentOverlay/hooks/useKeyboardVisibility.ts +2 -1
- package/src/ContentOverlay/hooks/useViewLayoutHeight.test.ts +1 -1
- package/src/ContentOverlay/hooks/useViewLayoutHeight.ts +1 -1
- package/src/ContentOverlay/types.ts +2 -2
- package/src/Disclosure/Disclosure.test.tsx +1 -1
- package/src/Disclosure/Disclosure.tsx +2 -1
- package/src/EmptyState/EmptyState.test.tsx +2 -1
- package/src/EmptyState/EmptyState.tsx +3 -2
- package/src/ErrorMessageWrapper/ErrorMessageWrapper.tsx +4 -2
- package/src/ErrorMessageWrapper/context/ErrorMessageContext.tsx +1 -1
- package/src/ErrorMessageWrapper/context/ErrorMessageProvider.tsx +5 -8
- package/src/ErrorMessageWrapper/context/types.ts +2 -2
- package/src/Flex/Flex.styles.tsx +4 -2
- package/src/Flex/Flex.test.tsx +4 -3
- package/src/Flex/Flex.tsx +3 -2
- package/src/Flex/types.ts +1 -1
- package/src/Form/Form.test.tsx +4 -2
- package/src/Form/Form.tsx +6 -10
- package/src/Form/components/FormActionBar/FormActionBar.tsx +3 -2
- package/src/Form/components/FormBody/FormBody.tsx +2 -1
- package/src/Form/components/FormCache/FormCache.tsx +2 -1
- package/src/Form/components/FormErrorBanner/FormErrorBanner.tsx +1 -1
- package/src/Form/components/FormMessage/FormMessage.tsx +1 -1
- package/src/Form/components/FormMessage/components/InternalFormMessage/InternalFormMessage.tsx +2 -1
- package/src/Form/components/FormMessageBanner/FormMessageBanner.tsx +4 -2
- package/src/Form/components/FormSaveButton/FormSaveButton.test.tsx +1 -1
- package/src/Form/components/FormSaveButton/FormSaveButton.tsx +3 -5
- package/src/Form/context/AtlantisFormContext.test.tsx +3 -2
- package/src/Form/context/AtlantisFormContext.tsx +1 -1
- package/src/Form/context/types.ts +2 -2
- package/src/Form/hooks/useFormViewRefs.ts +4 -3
- package/src/Form/hooks/useInternalForm.ts +5 -5
- package/src/Form/hooks/useScreenInformation.ts +2 -1
- package/src/Form/hooks/useScrollToError/useScrollToError.ts +9 -7
- package/src/Form/types.ts +4 -4
- package/src/FormField/FormField.tsx +1 -1
- package/src/FormatFile/FormatFile.test.tsx +7 -4
- package/src/FormatFile/FormatFile.tsx +5 -12
- package/src/FormatFile/components/FileView/FileView.tsx +3 -2
- package/src/FormatFile/components/FormatFileBottomSheet/FormatFileBottomSheet.test.tsx +5 -6
- package/src/FormatFile/components/FormatFileBottomSheet/FormatFileBottomSheet.tsx +4 -2
- package/src/FormatFile/components/MediaView/MediaView.tsx +2 -1
- package/src/FormatFile/components/_mocks/mockFiles.ts +2 -1
- package/src/FormatFile/context/FormatFileContext.ts +1 -1
- package/src/FormatFile/context/types.ts +1 -1
- package/src/FormatFile/index.ts +2 -1
- package/src/FormatFile/utils/computeA11yLabel.ts +1 -1
- package/src/FormatFile/utils/createUseCreateThumbnail.ts +2 -2
- package/src/Glimmer/Glimmer.tsx +2 -1
- package/src/Heading/Heading.tsx +2 -2
- package/src/Icon/Icon.tsx +2 -1
- package/src/IconButton/IconButton.tsx +1 -1
- package/src/InputCurrency/InputCurrency.test.tsx +1 -1
- package/src/InputCurrency/InputCurrency.tsx +5 -3
- package/src/InputDate/InputDate.tsx +4 -4
- package/src/InputDate/index.ts +2 -1
- package/src/InputEmail/InputEmail.tsx +4 -2
- package/src/InputFieldWrapper/CommonInputStyles.style.ts +4 -5
- package/src/InputFieldWrapper/InputFieldWrapper.test.tsx +6 -12
- package/src/InputFieldWrapper/InputFieldWrapper.tsx +6 -10
- package/src/InputFieldWrapper/components/Prefix/Prefix.test.tsx +3 -4
- package/src/InputFieldWrapper/components/Prefix/Prefix.tsx +3 -8
- package/src/InputFieldWrapper/components/Suffix/Suffix.test.tsx +3 -7
- package/src/InputFieldWrapper/components/Suffix/Suffix.tsx +3 -8
- package/src/InputNumber/InputNumber.tsx +4 -2
- package/src/InputPassword/InputPassword.test.tsx +1 -1
- package/src/InputPassword/InputPassword.tsx +5 -3
- package/src/InputPressable/InputPressable.test.tsx +1 -1
- package/src/InputPressable/InputPressable.tsx +7 -5
- package/src/InputSearch/InputSearch.tsx +4 -2
- package/src/InputText/InputText.test.tsx +7 -8
- package/src/InputText/InputText.tsx +8 -9
- package/src/InputText/context/InputAccessoriesContext.ts +1 -1
- package/src/InputText/context/InputAccessoriesProvider.tsx +2 -1
- package/src/InputTime/InputTime.tsx +4 -4
- package/src/InputTime/utils/utils.test.ts +2 -5
- package/src/Menu/Menu.test.tsx +2 -1
- package/src/Menu/Menu.tsx +2 -2
- package/src/Menu/components/MenuOption/MenuOption.tsx +1 -1
- package/src/Menu/components/Overlay/Overlay.tsx +1 -1
- package/src/Menu/types.ts +2 -2
- package/src/Menu/utils.ts +2 -2
- package/src/ProgressBar/ProgressBar.test.tsx +2 -1
- package/src/ProgressBar/ProgressBar.tsx +1 -1
- package/src/ProgressBar/types.ts +1 -1
- package/src/Select/Select.test.tsx +2 -1
- package/src/Select/Select.tsx +4 -3
- package/src/Select/components/SelectDefaultPicker/SelectDefaultPicker.ios.tsx +1 -1
- package/src/Select/components/SelectDefaultPicker/SelectDefaultPicker.tsx +1 -1
- package/src/Select/components/SelectIOSPicker/SelectIOSPicker.tsx +3 -2
- package/src/Select/components/SelectInternalPicker/SelectInternalPicker.test.tsx +3 -2
- package/src/Select/components/SelectInternalPicker/SelectInternalPicker.tsx +1 -1
- package/src/Select/components/SelectInternalPicker/utils.ts +1 -1
- package/src/Select/components/SelectPressable/SelectPressable.tsx +3 -2
- package/src/Select/index.ts +2 -1
- package/src/Select/types.ts +1 -1
- package/src/Switch/Switch.test.tsx +1 -1
- package/src/Switch/Switch.tsx +3 -2
- package/src/Switch/index.ts +2 -1
- package/src/Text/Text.tsx +3 -3
- package/src/Text/index.ts +2 -1
- package/src/TextList/TextList.tsx +4 -2
- package/src/ThumbnailList/ThumbnailList.test.tsx +1 -1
- package/src/ThumbnailList/ThumbnailList.tsx +4 -2
- package/src/ThumbnailList/types.ts +1 -1
- package/src/Toast/Toast.tsx +2 -1
- package/src/Typography/Typography.style.ts +4 -5
- package/src/Typography/Typography.tsx +2 -4
- package/src/Typography/TypographyGestureDetector.tsx +2 -1
- package/src/Typography/webFonts.ts +1 -1
- package/src/hooks/useFormController.ts +2 -4
- package/src/utils/test/MockSafeAreaProvider.tsx +2 -5
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export type { FormatFileProps } from "./FormatFile";
|
|
2
|
+
export { FormatFile } from "./FormatFile";
|
|
2
3
|
export type { FormattedFile, File, CreateThumbnail, CreateThumbnailResponse, FileUpload, StatusCode, } from "./types";
|
|
3
4
|
export type { UseCreateThumbnail, UseCreateThumbnailResponse, } from "./context/types";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { UseCreateThumbnail } from "../context/types";
|
|
2
|
-
import { CreateThumbnail } from "../types";
|
|
1
|
+
import type { UseCreateThumbnail } from "../context/types";
|
|
2
|
+
import type { CreateThumbnail } from "../types";
|
|
3
3
|
export declare function createUseCreateThumbnail(createThumbnail: CreateThumbnail): {
|
|
4
4
|
useCreateThumbnail: UseCreateThumbnail;
|
|
5
5
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TextAlign, TextColor, TruncateLength, TypographyProps } from "../Typography";
|
|
1
|
+
import type { TextAlign, TextColor, TruncateLength, TypographyProps } from "../Typography";
|
|
2
2
|
type HeadingColor = Extract<TextColor, "text" | "subdued" | "heading">;
|
|
3
3
|
export type HeadingLevel = "title" | "subtitle" | "heading" | "subHeading";
|
|
4
4
|
interface HeadingProps<T extends HeadingLevel> extends Pick<TypographyProps<"base">, "selectable"> {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { FormatNumberOptions } from "react-intl";
|
|
2
|
-
import { ControllerRenderProps, FieldValues } from "react-hook-form";
|
|
3
|
-
import { InputTextProps } from "../InputText";
|
|
1
|
+
import type { FormatNumberOptions } from "react-intl";
|
|
2
|
+
import type { ControllerRenderProps, FieldValues } from "react-hook-form";
|
|
3
|
+
import type { InputTextProps } from "../InputText";
|
|
4
4
|
export interface InputCurrencyProps extends Omit<InputTextProps, "keyboard" | "onChangeText" | "value" | "defaultValue"> {
|
|
5
5
|
/**
|
|
6
6
|
* Whether to display the user's currency symbol or not
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { UseControllerProps } from "react-hook-form";
|
|
2
|
-
import { XOR } from "ts-xor";
|
|
3
|
-
import { Clearable } from "@jobber/hooks";
|
|
4
|
-
import { InputFieldWrapperProps } from "../InputFieldWrapper";
|
|
1
|
+
import type { UseControllerProps } from "react-hook-form";
|
|
2
|
+
import type { XOR } from "ts-xor";
|
|
3
|
+
import type { Clearable } from "@jobber/hooks";
|
|
4
|
+
import type { InputFieldWrapperProps } from "../InputFieldWrapper";
|
|
5
5
|
interface BaseInputDateProps extends Pick<InputFieldWrapperProps, "invalid" | "disabled" | "placeholder"> {
|
|
6
6
|
/**
|
|
7
7
|
* Defaulted to "always" so user can clear the dates whenever there's a value.
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export type { InputDateProps } from "./InputDate";
|
|
2
|
+
export { InputDate } from "./InputDate";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { InputTextProps, InputTextRef } from "../InputText";
|
|
2
|
+
import type { InputTextProps, InputTextRef } from "../InputText";
|
|
3
3
|
export declare const InputEmail: React.ForwardRefExoticComponent<InputEmailProps & React.RefAttributes<InputTextRef>>;
|
|
4
4
|
type InputEmailProps = Omit<InputTextProps, "keyboard">;
|
|
5
5
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TextStyle, ViewStyle } from "react-native";
|
|
2
|
-
import { AtlantisThemeContextValue } from "../AtlantisThemeContext";
|
|
1
|
+
import type { TextStyle, ViewStyle } from "react-native";
|
|
2
|
+
import type { AtlantisThemeContextValue } from "../AtlantisThemeContext";
|
|
3
3
|
import { tokens as staticTokens } from "../utils/design";
|
|
4
4
|
export declare const createCommonInputTokens: (tokens: AtlantisThemeContextValue["tokens"] | typeof staticTokens) => Record<string, ViewStyle | TextStyle>;
|
|
5
5
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { StyleProp, TextStyle, ViewStyle } from "react-native";
|
|
3
|
-
import { FieldError } from "react-hook-form";
|
|
4
|
-
import { IconNames } from "@jobber/design";
|
|
2
|
+
import type { StyleProp, TextStyle, ViewStyle } from "react-native";
|
|
3
|
+
import type { FieldError } from "react-hook-form";
|
|
4
|
+
import type { IconNames } from "@jobber/design";
|
|
5
5
|
export type Clearable = "never" | "while-editing" | "always";
|
|
6
6
|
export interface InputFieldStyleOverride {
|
|
7
7
|
prefixLabel?: StyleProp<TextStyle>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { StyleProp, TextStyle, ViewStyle } from "react-native";
|
|
2
|
-
import { IconNames } from "@jobber/design";
|
|
1
|
+
import type { StyleProp, TextStyle, ViewStyle } from "react-native";
|
|
2
|
+
import type { IconNames } from "@jobber/design";
|
|
3
3
|
export interface PrefixLabelProps {
|
|
4
4
|
readonly focused: boolean;
|
|
5
5
|
readonly disabled?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { StyleProp, TextStyle } from "react-native";
|
|
2
|
-
import { IconNames } from "@jobber/design";
|
|
1
|
+
import type { StyleProp, TextStyle } from "react-native";
|
|
2
|
+
import type { IconNames } from "@jobber/design";
|
|
3
3
|
export interface SuffixLabelProps {
|
|
4
4
|
readonly focused: boolean;
|
|
5
5
|
readonly disabled?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { InputTextProps, InputTextRef } from "../InputText";
|
|
2
|
+
import type { InputTextProps, InputTextRef } from "../InputText";
|
|
3
3
|
type NumberKeyboard = "decimal-pad" | "numbers-and-punctuation";
|
|
4
4
|
export interface InputNumberProps extends Omit<InputTextProps, "keyboard" | "onChangeText" | "value" | "defaultValue"> {
|
|
5
5
|
readonly value?: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { InputTextProps, InputTextRef } from "../InputText";
|
|
2
|
+
import type { InputTextProps, InputTextRef } from "../InputText";
|
|
3
3
|
export declare const InputPassword: React.ForwardRefExoticComponent<InputPasswordProps & React.RefAttributes<InputTextRef>>;
|
|
4
4
|
export interface InputPasswordProps extends Omit<InputTextProps, "keyboard" | "secureTextEntry" | "textContentType" | "clearable"> {
|
|
5
5
|
/**
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
1
|
+
import type { Ref } from "react";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import type { IconNames } from "@jobber/design";
|
|
4
|
+
import type { FieldError } from "react-hook-form";
|
|
4
5
|
import { Text as NativeText } from "react-native";
|
|
5
|
-
import { Clearable } from "@jobber/hooks";
|
|
6
|
-
import { XOR } from "ts-xor";
|
|
6
|
+
import type { Clearable } from "@jobber/hooks";
|
|
7
|
+
import type { XOR } from "ts-xor";
|
|
7
8
|
interface BasicSuffix {
|
|
8
9
|
icon?: IconNames;
|
|
9
10
|
label?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { InputTextProps, InputTextRef } from "../InputText";
|
|
2
|
+
import type { InputTextProps, InputTextRef } from "../InputText";
|
|
3
3
|
export declare const InputSearch: React.ForwardRefExoticComponent<InputSearchProps & React.RefAttributes<InputTextRef>>;
|
|
4
4
|
export interface InputSearchProps extends Pick<InputTextProps, "accessibilityHint" | "accessibilityLabel" | "autoFocus" | "placeholder" | "prefix"> {
|
|
5
5
|
/**
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
1
|
+
import type { SyntheticEvent } from "react";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import type { NativeSyntheticEvent, StyleProp, TextInputFocusEventData, TextInputProps, TextStyle } from "react-native";
|
|
4
|
+
import { TextInput } from "react-native";
|
|
5
|
+
import type { RegisterOptions } from "react-hook-form";
|
|
6
|
+
import type { IconNames } from "@jobber/design";
|
|
7
|
+
import type { Clearable } from "@jobber/hooks";
|
|
8
|
+
import type { InputFieldStyleOverride, InputFieldWrapperProps } from "../InputFieldWrapper/InputFieldWrapper";
|
|
7
9
|
export interface InputTextProps extends Pick<InputFieldWrapperProps, "toolbar" | "toolbarVisibility" | "loading" | "loadingType"> {
|
|
8
10
|
/**
|
|
9
11
|
* Highlights the field red and shows message below (if string) to indicate an error
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { InputAccessoriesContextProps } from "./types";
|
|
1
|
+
import type { InputAccessoriesContextProps } from "./types";
|
|
2
2
|
export declare const InputAccessoriesContext: import("react").Context<InputAccessoriesContextProps>;
|
|
3
3
|
export declare function useInputAccessoriesContext(): InputAccessoriesContextProps;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { UseControllerProps } from "react-hook-form";
|
|
2
|
-
import { XOR } from "ts-xor";
|
|
3
|
-
import { Clearable } from "@jobber/hooks";
|
|
4
|
-
import { InputFieldWrapperProps } from "../InputFieldWrapper";
|
|
1
|
+
import type { UseControllerProps } from "react-hook-form";
|
|
2
|
+
import type { XOR } from "ts-xor";
|
|
3
|
+
import type { Clearable } from "@jobber/hooks";
|
|
4
|
+
import type { InputFieldWrapperProps } from "../InputFieldWrapper";
|
|
5
5
|
interface InputTimeBaseProps extends Pick<InputFieldWrapperProps, "invalid" | "disabled" | "placeholder"> {
|
|
6
6
|
/**
|
|
7
7
|
* Defaulted to "always" so user can clear the time whenever there's a value.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { MenuProps } from "./types";
|
|
1
|
+
import type { MenuProps } from "./types";
|
|
2
2
|
export declare function Menu({ menuOptions, customActivator }: MenuProps): JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { MenuOptionInternalProps } from "../../types";
|
|
1
|
+
import type { MenuOptionInternalProps } from "../../types";
|
|
2
2
|
export declare function MenuOption({ label, icon, iconColor, textAlign, destructive, textTransform, onPress, setOpen, }: MenuOptionInternalProps): JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { OverlayProp } from "../../types";
|
|
1
|
+
import type { OverlayProp } from "../../types";
|
|
2
2
|
export declare function Overlay({ setOpen }: OverlayProp): JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IconColorNames, IconNames } from "@jobber/design";
|
|
2
|
-
import { TextAlign } from "../Typography";
|
|
1
|
+
import type { IconColorNames, IconNames } from "@jobber/design";
|
|
2
|
+
import type { TextAlign } from "../Typography";
|
|
3
3
|
export interface MenuOptionProps {
|
|
4
4
|
readonly label: string;
|
|
5
5
|
readonly icon?: IconNames;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { LayoutRectangle } from "react-native";
|
|
2
|
-
import { useStyles } from "./Menu.style";
|
|
1
|
+
import type { LayoutRectangle } from "react-native";
|
|
2
|
+
import type { useStyles } from "./Menu.style";
|
|
3
3
|
interface ScreenInfo {
|
|
4
4
|
windowHeight: number;
|
|
5
5
|
headerHeight: number;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ProgressBarProps } from "./types";
|
|
1
|
+
import type { ProgressBarProps } from "./types";
|
|
2
2
|
export declare function ProgressBar({ loading, total, current, inProgress, reverseTheme, header, variation, size, }: ProgressBarProps): JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ReactElement } from "react";
|
|
2
|
-
import { RegisterOptions } from "react-hook-form";
|
|
1
|
+
import type { ReactElement } from "react";
|
|
2
|
+
import type { RegisterOptions } from "react-hook-form";
|
|
3
3
|
export interface SelectOption {
|
|
4
4
|
/**
|
|
5
5
|
* Text that shows up as the option
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SelectInternalPickerProps } from "../../types";
|
|
1
|
+
import type { SelectInternalPickerProps } from "../../types";
|
|
2
2
|
type SelectDefaultPickerProps = SelectInternalPickerProps;
|
|
3
3
|
export declare function SelectDefaultPicker({ children, options, disabled, onChange, }: SelectDefaultPickerProps): JSX.Element;
|
|
4
4
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SelectInternalPickerProps } from "../../types";
|
|
1
|
+
import type { SelectInternalPickerProps } from "../../types";
|
|
2
2
|
type SelectDefaultPickerProps = SelectInternalPickerProps;
|
|
3
3
|
export declare function SelectDefaultPicker({ children, options, onChange, }: SelectDefaultPickerProps): JSX.Element;
|
|
4
4
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { HostComponent } from "react-native";
|
|
2
|
-
import { SelectInternalPickerProps, SelectOnOptionPressEvent } from "../../types";
|
|
1
|
+
import type { HostComponent } from "react-native";
|
|
2
|
+
import type { SelectInternalPickerProps, SelectOnOptionPressEvent } from "../../types";
|
|
3
3
|
interface NativeSelectIOSPickerProps extends Pick<SelectInternalPickerProps, "options" | "children"> {
|
|
4
4
|
/**
|
|
5
5
|
* Callback when one of the option is pressed
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { SelectInternalPickerProps } from "../../types";
|
|
1
|
+
import type { SelectInternalPickerProps } from "../../types";
|
|
2
2
|
export declare function SelectInternalPicker({ children, options, disabled, onChange, }: SelectInternalPickerProps): JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { SelectInternalPickerProps, SelectOnOptionPressEvent } from "../../types";
|
|
1
|
+
import type { SelectInternalPickerProps, SelectOnOptionPressEvent } from "../../types";
|
|
2
2
|
export declare function handlePress(onChange: SelectInternalPickerProps["onChange"]): ({ nativeEvent: { event } }: SelectOnOptionPressEvent) => void;
|
|
3
3
|
export declare function isIOS14AndUp(): boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PressableProps } from "react-native";
|
|
2
|
-
import { SelectInternalPickerProps } from "../../types";
|
|
1
|
+
import type { PressableProps } from "react-native";
|
|
2
|
+
import type { SelectInternalPickerProps } from "../../types";
|
|
3
3
|
type SelectPressableProps = Pick<SelectInternalPickerProps, "children"> & Pick<PressableProps, "onPress">;
|
|
4
4
|
/**
|
|
5
5
|
* Switches between Pressable with pressed styling and a fragment when a
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export type { SelectOption, SelectProps } from "./Select";
|
|
2
|
+
export { Select, Option } from "./Select";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { XOR } from "ts-xor";
|
|
2
|
-
import { BaseSwitchProps } from "./components/BaseSwitch";
|
|
1
|
+
import type { XOR } from "ts-xor";
|
|
2
|
+
import type { BaseSwitchProps } from "./components/BaseSwitch";
|
|
3
3
|
interface WithLabelProps extends BaseSwitchProps {
|
|
4
4
|
/**
|
|
5
5
|
* Optional label to display in front of the switch
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export type { SwitchProps } from "./Switch";
|
|
2
|
+
export { Switch } from "./Switch";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { OnTextLayoutEvent, TextAlign, TextVariation, TruncateLength, TypographyProps } from "../Typography";
|
|
2
|
-
import { TypographyUnsafeStyle } from "../Typography/Typography";
|
|
1
|
+
import type { OnTextLayoutEvent, TextAlign, TextVariation, TruncateLength, TypographyProps } from "../Typography";
|
|
2
|
+
import type { TypographyUnsafeStyle } from "../Typography/Typography";
|
|
3
3
|
export interface TextProps extends Pick<TypographyProps<"base">, "maxFontScaleSize" | "selectable"> {
|
|
4
4
|
/**
|
|
5
5
|
* Visual hierarchy of the text
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export type { TextLevel } from "./Text";
|
|
2
|
+
export { Text, TEXT_MAX_SCALED_FONT_SIZES } from "./Text";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ThumbnailListProps } from "./types";
|
|
2
|
-
import { File } from "../FormatFile";
|
|
1
|
+
import type { ThumbnailListProps } from "./types";
|
|
2
|
+
import type { File } from "../FormatFile";
|
|
3
3
|
export declare const filterImages: (files: File[]) => File[];
|
|
4
4
|
export declare function ThumbnailList({ files, rowCount, handleOpenFile, createThumbnail, }: ThumbnailListProps): JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { TextStyle } from "react-native";
|
|
1
|
+
import type { TextStyle } from "react-native";
|
|
2
2
|
import { tokens as staticTokens } from "../utils/design";
|
|
3
|
-
import { AtlantisThemeContextValue } from "../AtlantisThemeContext";
|
|
3
|
+
import type { AtlantisThemeContextValue } from "../AtlantisThemeContext";
|
|
4
4
|
/**
|
|
5
5
|
* Reusable typography styles to ensure consistency for any client facing texts.
|
|
6
6
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { EdgeInsets, Rect } from "react-native-safe-area-context";
|
|
2
|
+
import type { EdgeInsets, Rect } from "react-native-safe-area-context";
|
|
3
3
|
interface MockSafeAreaProviderProps {
|
|
4
4
|
readonly children: React.ReactNode;
|
|
5
5
|
readonly frame?: Rect;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jobber/components-native",
|
|
3
|
-
"version": "0.84.
|
|
3
|
+
"version": "0.84.2-CLEANUPus-07fd343.17+07fd3435e",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "React Native implementation of Atlantis",
|
|
6
6
|
"repository": {
|
|
@@ -79,5 +79,5 @@
|
|
|
79
79
|
"react-native-safe-area-context": "^5.4.0",
|
|
80
80
|
"react-native-svg": ">=12.0.0"
|
|
81
81
|
},
|
|
82
|
-
"gitHead": "
|
|
82
|
+
"gitHead": "07fd3435ec1ea69040eb3413e1ae637396d1764c"
|
|
83
83
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import React from "react";
|
|
2
3
|
import { View } from "react-native";
|
|
3
|
-
import { IconColorNames, IconNames } from "@jobber/design";
|
|
4
|
+
import type { IconColorNames, IconNames } from "@jobber/design";
|
|
4
5
|
import { useStyles } from "./ActionItem.style";
|
|
5
6
|
import { ActionItemContainer } from "./components/ActionItemContainer";
|
|
6
7
|
import { Typography } from "../Typography";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { ReactElement } from "react";
|
|
2
|
+
import React from "react";
|
|
2
3
|
import { View } from "react-native";
|
|
3
|
-
import { ActionItem, ActionItemProps } from "./ActionItem";
|
|
4
|
+
import type { ActionItem, ActionItemProps } from "./ActionItem";
|
|
4
5
|
import { useStyles } from "./ActionItem.style";
|
|
5
6
|
import { Divider } from "../Divider";
|
|
6
7
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import React from "react";
|
|
2
3
|
import { Pressable, View } from "react-native";
|
|
3
4
|
import { useStyles } from "./ActionItemContainer.style";
|
|
4
5
|
import { useStyles as useActionItemStyles } from "../ActionItem.style";
|
package/src/ActionItem/index.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { CSSProperties } from "react";
|
|
2
|
+
import React from "react";
|
|
2
3
|
import { render } from "@testing-library/react-native";
|
|
3
|
-
import { ReactTestInstance } from "react-test-renderer";
|
|
4
|
+
import type { ReactTestInstance } from "react-test-renderer";
|
|
4
5
|
import { ActionLabel } from "./ActionLabel";
|
|
5
6
|
import { tokens } from "../utils/design";
|
|
6
7
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { tokens } from "../utils/design";
|
|
3
|
-
import { TextAlign, TextColor
|
|
3
|
+
import type { TextAlign, TextColor } from "../Typography";
|
|
4
|
+
import { Typography } from "../Typography";
|
|
4
5
|
|
|
5
6
|
export type ActionLabelVariation = Extract<
|
|
6
7
|
TextColor,
|
package/src/ActionLabel/index.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export type { ActionLabelVariation } from "./ActionLabel";
|
|
2
|
+
export { ActionLabel } from "./ActionLabel";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
2
|
+
import type { ActivityIndicatorProps } from "react-native";
|
|
3
|
+
import { ActivityIndicator } from "react-native";
|
|
3
4
|
import { useAtlantisTheme } from "../AtlantisThemeContext";
|
|
4
5
|
|
|
5
6
|
export function JobberActivityIndicator(
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
2
|
-
import
|
|
2
|
+
import type { PropsWithChildren } from "react";
|
|
3
|
+
import React from "react";
|
|
3
4
|
import { renderHook } from "@testing-library/react-hooks";
|
|
5
|
+
import type { AtlantisContextProps } from "./AtlantisContext";
|
|
4
6
|
import {
|
|
5
7
|
AtlantisContext,
|
|
6
|
-
AtlantisContextProps,
|
|
7
8
|
atlantisContextDefaultValues,
|
|
8
9
|
useAtlantisContext,
|
|
9
10
|
} from "./AtlantisContext";
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
AtlantisThemeContextProvider,
|
|
7
7
|
useAtlantisTheme,
|
|
8
8
|
} from "./AtlantisThemeContext";
|
|
9
|
-
import { AtlantisThemeContextProviderProps, Theme } from "./types";
|
|
9
|
+
import type { AtlantisThemeContextProviderProps, Theme } from "./types";
|
|
10
10
|
|
|
11
11
|
const expectedDarkTokens = merge({}, iosTokens, darkTokens);
|
|
12
12
|
const expectedLightTokens = iosTokens;
|
|
@@ -2,7 +2,7 @@ import { androidTokens, darkTokens, iosTokens } from "@jobber/design";
|
|
|
2
2
|
import React, { createContext, useContext, useState } from "react";
|
|
3
3
|
import merge from "lodash/merge";
|
|
4
4
|
import { Platform } from "react-native";
|
|
5
|
-
import {
|
|
5
|
+
import type {
|
|
6
6
|
AtlantisThemeContextProviderProps,
|
|
7
7
|
AtlantisThemeContextValue,
|
|
8
8
|
Theme,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { Text as RNText } from "react-native";
|
|
3
|
-
import { AutoLinkProps } from "./types";
|
|
3
|
+
import type { AutoLinkProps } from "./types";
|
|
4
4
|
import { ComposeTextWithLinks } from "./components";
|
|
5
5
|
import { useCreateLinkedText } from "./hooks/useCreateLinkedText";
|
|
6
6
|
import { TypographyGestureDetector } from "../Typography";
|