@hero-design/rn 8.64.9-alpha.0 → 8.65.0-alpha.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.
Files changed (100) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/es/index.js +17536 -17420
  3. package/lib/index.js +18073 -17960
  4. package/package.json +13 -15
  5. package/{rollup.config.js → rollup.config.mjs} +5 -3
  6. package/src/components/BottomNavigation/index.tsx +0 -4
  7. package/src/components/PinInput/StyledPinInput.tsx +0 -1
  8. package/src/components/PinInput/__tests__/__snapshots__/index.spec.tsx.snap +30 -5
  9. package/src/components/PinInput/__tests__/index.spec.tsx +23 -11
  10. package/src/components/PinInput/index.tsx +11 -5
  11. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +1 -1
  12. package/stats/8.65.0/rn-stats.html +4842 -0
  13. package/tsconfig.json +2 -3
  14. package/tsconfig.rollup.json +27 -0
  15. package/types/components/Accordion/StyledAccordion.d.ts +5 -5
  16. package/types/components/Alert/StyledAlert.d.ts +5 -5
  17. package/types/components/Attachment/StyledAttachment.d.ts +4 -4
  18. package/types/components/Avatar/AvatarStack/StyledAvatarStack.d.ts +3 -3
  19. package/types/components/Avatar/StyledAvatar.d.ts +4 -4
  20. package/types/components/Badge/StyledBadge.d.ts +3 -3
  21. package/types/components/Badge/types.d.ts +53 -0
  22. package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +7 -7
  23. package/types/components/BottomSheet/StyledBottomSheet.d.ts +8 -8
  24. package/types/components/Box/StyledBox.d.ts +1 -1
  25. package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +2 -3
  26. package/types/components/Button/StyledButton.d.ts +5 -6
  27. package/types/components/Button/UtilityButton/StyledUtilityButton.d.ts +3 -3
  28. package/types/components/Calendar/StyledCalendar.d.ts +8 -8
  29. package/types/components/Card/DataCard/StyledDataCard.d.ts +2 -2
  30. package/types/components/Card/StyledCard.d.ts +1 -1
  31. package/types/components/Carousel/StyledCardCarousel.d.ts +4 -4
  32. package/types/components/Carousel/StyledCarousel.d.ts +9 -9
  33. package/types/components/Checkbox/StyledCheckbox.d.ts +5 -5
  34. package/types/components/Chip/StyledChip.d.ts +4 -4
  35. package/types/components/Collapse/StyledCollapse.d.ts +3 -3
  36. package/types/components/CompoundSearch/CompoundSearchHandler.d.ts +31 -0
  37. package/types/components/CompoundSearch/CompoundSearchTextInput.d.ts +60 -0
  38. package/types/components/CompoundSearch/StyledCompoundSearch.d.ts +40 -0
  39. package/types/components/CompoundSearch/index.d.ts +8 -0
  40. package/types/components/CompoundSearch/utils.d.ts +8 -0
  41. package/types/components/ContentNavigator/StyledContentNavigator.d.ts +1 -1
  42. package/types/components/DatePicker/StyledDatePicker.d.ts +1 -1
  43. package/types/components/Divider/StyledDivider.d.ts +1 -1
  44. package/types/components/Drawer/StyledDrawer.d.ts +7 -7
  45. package/types/components/Empty/StyledEmpty.d.ts +3 -3
  46. package/types/components/Error/StyledError.d.ts +10 -10
  47. package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +5 -5
  48. package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +3 -3
  49. package/types/components/FAB/Pair/StyledFAB.d.ts +12 -0
  50. package/types/components/FAB/Pair/index.d.ts +16 -0
  51. package/types/components/FAB/StyledFAB.d.ts +4 -4
  52. package/types/components/Icon/HeroIcon/index.d.ts +1 -1
  53. package/types/components/List/StyledBasicListItem.d.ts +4 -4
  54. package/types/components/List/StyledListItem.d.ts +7 -7
  55. package/types/components/MapPin/Focussed.d.ts +13 -0
  56. package/types/components/MapPin/StyledMapPin.d.ts +32 -0
  57. package/types/components/MapPin/index.d.ts +5 -0
  58. package/types/components/MapPin/types.d.ts +38 -0
  59. package/types/components/PageControl/StyledPageControl.d.ts +2 -2
  60. package/types/components/PinInput/StyledPinInput.d.ts +10 -10
  61. package/types/components/Progress/ProgressStep.d.ts +20 -0
  62. package/types/components/Progress/StyledProgressBar.d.ts +2 -2
  63. package/types/components/Progress/StyledProgressCircle.d.ts +6 -6
  64. package/types/components/Progress/StyledStep.d.ts +23 -0
  65. package/types/components/Radio/StyledRadio.d.ts +4 -4
  66. package/types/components/Rate/StyledRate.d.ts +2 -2
  67. package/types/components/RichTextEditor/StyledRichTextEditor.d.ts +2 -2
  68. package/types/components/RichTextEditor/StyledToolbar.d.ts +3 -3
  69. package/types/components/Search/SearchOneLine.d.ts +65 -0
  70. package/types/components/Search/SearchSuffixIcon.d.ts +24 -0
  71. package/types/components/Search/SearchTwoLine.d.ts +36 -0
  72. package/types/components/Search/StyledSearch.d.ts +49 -0
  73. package/types/components/Search/index.d.ts +10 -0
  74. package/types/components/Search/utils.d.ts +8 -0
  75. package/types/components/SectionHeading/StyledHeading.d.ts +3 -3
  76. package/types/components/Select/StyledSelect.d.ts +3 -3
  77. package/types/components/Skeleton/StyledSkeleton.d.ts +2 -2
  78. package/types/components/Spinner/StyledSpinner.d.ts +4 -4
  79. package/types/components/Success/StyledSuccess.d.ts +9 -9
  80. package/types/components/Swipeable/StyledSwipeable.d.ts +1 -1
  81. package/types/components/Switch/SelectorSwitch/StyledSelectorSwitch.d.ts +4 -4
  82. package/types/components/Switch/StyledSwitch.d.ts +2 -2
  83. package/types/components/Tabs/StyledScrollableTabs.d.ts +8 -8
  84. package/types/components/Tabs/StyledTabs.d.ts +7 -7
  85. package/types/components/Tag/StyledTag.d.ts +2 -2
  86. package/types/components/TextInput/StyledTextInput.d.ts +13 -13
  87. package/types/components/TimePicker/StyledTimePicker.d.ts +1 -1
  88. package/types/components/Toast/StyledToast.d.ts +6 -6
  89. package/types/components/Toolbar/StyledToolbar.d.ts +5 -5
  90. package/types/components/Typography/Body/StyledBody.d.ts +1 -1
  91. package/types/components/Typography/Caption/StyledCaption.d.ts +1 -1
  92. package/types/components/Typography/Label/StyledLabel.d.ts +1 -1
  93. package/types/components/Typography/Text/StyledText.d.ts +1 -1
  94. package/types/components/Typography/Title/StyledTitle.d.ts +1 -1
  95. package/types/theme/components/compoundSearch.d.ts +36 -0
  96. package/types/theme/components/mapPin.d.ts +40 -0
  97. package/types/theme/components/search.d.ts +64 -0
  98. package/types/theme/global/colors/swagLight.d.ts +3 -0
  99. package/types/theme/global/colors/swagLightGlobal.d.ts +3 -0
  100. package/types/theme/global/colors/swagLightJobs.d.ts +47 -0
@@ -2,7 +2,7 @@ import { Animated, TouchableOpacity, View } from 'react-native';
2
2
  import type { ViewProps } from 'react-native';
3
3
  import { IntentType } from './types';
4
4
  declare const ToastContainerWrapper: import("@emotion/native").StyledComponent<ViewProps & {
5
- theme?: import("@emotion/react").Theme | undefined;
5
+ theme?: any;
6
6
  as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
7
7
  } & {
8
8
  position: 'top' | 'bottom';
@@ -10,26 +10,26 @@ declare const ToastContainerWrapper: import("@emotion/native").StyledComponent<V
10
10
  ref?: import("react").Ref<View> | undefined;
11
11
  }>;
12
12
  declare const Container: import("@emotion/native").StyledComponent<Animated.AnimatedProps<ViewProps & import("react").RefAttributes<View>> & {
13
- theme?: import("@emotion/react").Theme | undefined;
13
+ theme?: any;
14
14
  as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
15
15
  } & {
16
16
  themeVariant: 'default' | 'round';
17
17
  themeIntent: IntentType;
18
18
  }, {}, {}>;
19
19
  declare const IconContainer: import("@emotion/native").StyledComponent<ViewProps & {
20
- theme?: import("@emotion/react").Theme | undefined;
20
+ theme?: any;
21
21
  as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
22
22
  }, {}, {
23
23
  ref?: import("react").Ref<View> | undefined;
24
24
  }>;
25
25
  declare const TextContainer: import("@emotion/native").StyledComponent<ViewProps & {
26
- theme?: import("@emotion/react").Theme | undefined;
26
+ theme?: any;
27
27
  as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
28
28
  }, {}, {
29
29
  ref?: import("react").Ref<View> | undefined;
30
30
  }>;
31
31
  declare const ContentContainer: import("@emotion/native").StyledComponent<ViewProps & {
32
- theme?: import("@emotion/react").Theme | undefined;
32
+ theme?: any;
33
33
  as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
34
34
  } & {
35
35
  showDivider: boolean;
@@ -37,7 +37,7 @@ declare const ContentContainer: import("@emotion/native").StyledComponent<ViewPr
37
37
  ref?: import("react").Ref<View> | undefined;
38
38
  }>;
39
39
  declare const CTAWrapper: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & {
40
- theme?: import("@emotion/react").Theme | undefined;
40
+ theme?: any;
41
41
  as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
42
42
  }, {}, {
43
43
  ref?: import("react").Ref<TouchableOpacity> | undefined;
@@ -1,13 +1,13 @@
1
1
  import { TouchableOpacity, View } from 'react-native';
2
2
  import type { ViewProps } from 'react-native';
3
3
  declare const ToolbarWrapper: import("@emotion/native").StyledComponent<ViewProps & {
4
- theme?: import("@emotion/react").Theme | undefined;
4
+ theme?: any;
5
5
  as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
6
6
  }, {}, {
7
7
  ref?: import("react").Ref<View> | undefined;
8
8
  }>;
9
9
  declare const ToolbarGroupWrapper: import("@emotion/native").StyledComponent<ViewProps & {
10
- theme?: import("@emotion/react").Theme | undefined;
10
+ theme?: any;
11
11
  as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
12
12
  } & {
13
13
  align: 'left' | 'center' | 'right';
@@ -15,19 +15,19 @@ declare const ToolbarGroupWrapper: import("@emotion/native").StyledComponent<Vie
15
15
  ref?: import("react").Ref<View> | undefined;
16
16
  }>;
17
17
  declare const ToolbarItemWrapper: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & {
18
- theme?: import("@emotion/react").Theme | undefined;
18
+ theme?: any;
19
19
  as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
20
20
  }, {}, {
21
21
  ref?: import("react").Ref<TouchableOpacity> | undefined;
22
22
  }>;
23
23
  declare const IconButtonWrapper: import("@emotion/native").StyledComponent<ViewProps & {
24
- theme?: import("@emotion/react").Theme | undefined;
24
+ theme?: any;
25
25
  as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
26
26
  }, {}, {
27
27
  ref?: import("react").Ref<View> | undefined;
28
28
  }>;
29
29
  declare const IconButtonLabel: import("@emotion/native").StyledComponent<import("../Typography/Body").BodyProps & {
30
- theme?: import("@emotion/react").Theme | undefined;
30
+ theme?: any;
31
31
  as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
32
32
  }, {}, {}>;
33
33
  export { ToolbarWrapper, ToolbarGroupWrapper, ToolbarItemWrapper, IconButtonWrapper, IconButtonLabel, };
@@ -2,7 +2,7 @@ import { Text } from 'react-native';
2
2
  import { ThemeIntent } from '../types';
3
3
  declare type ThemeVariant = 'small' | 'small-bold' | 'regular' | 'regular-bold';
4
4
  declare const StyledBody: import("@emotion/native").StyledComponent<import("react-native").TextProps & {
5
- theme?: import("@emotion/react").Theme | undefined;
5
+ theme?: any;
6
6
  as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
7
7
  } & {
8
8
  themeIntent: ThemeIntent;
@@ -1,7 +1,7 @@
1
1
  import { Text } from 'react-native';
2
2
  import { ThemeIntent } from '../types';
3
3
  declare const StyledCaption: import("@emotion/native").StyledComponent<import("react-native").TextProps & {
4
- theme?: import("@emotion/react").Theme | undefined;
4
+ theme?: any;
5
5
  as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
6
6
  } & {
7
7
  themeFontWeight: 'regular' | 'semi-bold';
@@ -1,7 +1,7 @@
1
1
  import { Text } from 'react-native';
2
2
  import { ThemeIntent } from '../types';
3
3
  declare const StyledLabel: import("@emotion/native").StyledComponent<import("react-native").TextProps & {
4
- theme?: import("@emotion/react").Theme | undefined;
4
+ theme?: any;
5
5
  as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
6
6
  } & {
7
7
  themeIntent: ThemeIntent;
@@ -1,6 +1,6 @@
1
1
  import { Text } from 'react-native';
2
2
  declare const StyledText: import("@emotion/native").StyledComponent<import("react-native").TextProps & {
3
- theme?: import("@emotion/react").Theme | undefined;
3
+ theme?: any;
4
4
  as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
5
5
  } & {
6
6
  themeFontSize: 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxxlarge' | 'xxxxlarge' | 'xxxxxlarge' | '6xlarge' | '7xlarge';
@@ -2,7 +2,7 @@ import { Text } from 'react-native';
2
2
  import { ThemeIntent } from '../types';
3
3
  declare type ThemeLevel = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
4
4
  declare const StyledTitle: import("@emotion/native").StyledComponent<import("react-native").TextProps & {
5
- theme?: import("@emotion/react").Theme | undefined;
5
+ theme?: any;
6
6
  as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
7
7
  } & {
8
8
  themeIntent: ThemeIntent;
@@ -0,0 +1,36 @@
1
+ import type { GlobalTheme } from '../global';
2
+ declare const getCompoundSearchTheme: (theme: GlobalTheme) => {
3
+ colors: {
4
+ containerBackground: string;
5
+ surfixBackground: string;
6
+ text: string;
7
+ borders: string;
8
+ };
9
+ space: {
10
+ containerHorizontalPadding: number;
11
+ containerVerticalPadding: number;
12
+ inputHorizontalMargin: number;
13
+ prefixHorizontalPadding: number;
14
+ surfixPadding: number;
15
+ };
16
+ fonts: {
17
+ text: string;
18
+ };
19
+ fontSizes: {
20
+ text: number;
21
+ };
22
+ borderWidths: {
23
+ container: {
24
+ normal: number;
25
+ focused: number;
26
+ };
27
+ };
28
+ radii: {
29
+ container: number;
30
+ surfix: number;
31
+ };
32
+ sizes: {
33
+ surfixSize: number;
34
+ };
35
+ };
36
+ export default getCompoundSearchTheme;
@@ -0,0 +1,40 @@
1
+ import type { GlobalTheme } from '../global';
2
+ declare const getMapPinTheme: (theme: GlobalTheme) => {
3
+ sizes: {
4
+ default: number;
5
+ };
6
+ colors: {
7
+ border: {
8
+ idle: string;
9
+ selected: string;
10
+ applied: string;
11
+ };
12
+ badge: string;
13
+ background: string;
14
+ iconBackground: string;
15
+ };
16
+ borderWidths: {
17
+ default: number;
18
+ };
19
+ radii: {
20
+ default: number;
21
+ };
22
+ shadows: {
23
+ offset: {
24
+ width: number;
25
+ height: number;
26
+ };
27
+ opacity: number;
28
+ radius: number;
29
+ elevation: number;
30
+ color: string;
31
+ };
32
+ space: {
33
+ iconTop: number;
34
+ iconRight: number;
35
+ };
36
+ fontSizes: {
37
+ icon: number;
38
+ };
39
+ };
40
+ export default getMapPinTheme;
@@ -0,0 +1,64 @@
1
+ import type { GlobalTheme } from '../global';
2
+ declare const getSearchTheme: (theme: GlobalTheme) => {
3
+ colors: {
4
+ basic: {
5
+ containerBackground: string;
6
+ border: string;
7
+ focusedBorder: string;
8
+ };
9
+ reversed: {
10
+ containerBackground: string;
11
+ border: string;
12
+ focusedBorder: string;
13
+ };
14
+ suffixBackground: string;
15
+ text: string;
16
+ shadow: string;
17
+ };
18
+ space: {
19
+ containerHorizontalPadding: number;
20
+ containerVerticalPadding: number;
21
+ inputHorizontalMargin: number;
22
+ inputVerticalPadding: number;
23
+ prefixHorizontalPadding: number;
24
+ surfixPadding: number;
25
+ badgeTop: number;
26
+ badgeRight: number;
27
+ };
28
+ fonts: {
29
+ text: string;
30
+ };
31
+ fontSizes: {
32
+ text: number;
33
+ };
34
+ borderWidths: {
35
+ container: {
36
+ basic: {
37
+ normal: number;
38
+ focused: number;
39
+ };
40
+ reversed: {
41
+ normal: number;
42
+ focused: number;
43
+ };
44
+ };
45
+ };
46
+ radii: {
47
+ container: number;
48
+ surfix: number;
49
+ };
50
+ sizes: {
51
+ surfixSize: number;
52
+ };
53
+ shadows: {
54
+ offset: {
55
+ width: number;
56
+ height: number;
57
+ };
58
+ opacity: number;
59
+ radius: number;
60
+ elevation: number;
61
+ color: string;
62
+ };
63
+ };
64
+ export default getSearchTheme;
@@ -0,0 +1,3 @@
1
+ import type { SystemPalette } from './types';
2
+ declare const swagSystemPalette: SystemPalette;
3
+ export default swagSystemPalette;
@@ -0,0 +1,3 @@
1
+ import type { GlobalSystemPalette } from './types';
2
+ declare const swagLightGlobalPalette: GlobalSystemPalette;
3
+ export default swagLightGlobalPalette;
@@ -0,0 +1,47 @@
1
+ declare const swagLightJobsSystemPalette: {
2
+ secondary: string;
3
+ onSecondary: string;
4
+ decorativeSecondary: string;
5
+ decorativeSecondarySurface: string;
6
+ defaultGlobalSurface: string;
7
+ onDefaultGlobalSurface: string;
8
+ neutralGlobalSurface: string;
9
+ mutedOnDefaultGlobalSurface: string;
10
+ inactiveOnDefaultGlobalSurface: string;
11
+ disabledOnDefaultGlobalSurface: string;
12
+ darkGlobalSurface: string;
13
+ onDarkGlobalSurface: string;
14
+ overlayGlobalSurface: string;
15
+ primaryOutline: string;
16
+ secondaryOutline: string;
17
+ inactiveOutline: string;
18
+ disabledOutline: string;
19
+ error: string;
20
+ mutedError: string;
21
+ errorSurface: string;
22
+ onErrorSurface: string;
23
+ warning: string;
24
+ mutedWarning: string;
25
+ warningSurface: string;
26
+ onWarningSurface: string;
27
+ success: string;
28
+ mutedSuccess: string;
29
+ successSurface: string;
30
+ onSuccessSurface: string;
31
+ info: string;
32
+ mutedInfo: string;
33
+ infoSurface: string;
34
+ onInfoSurface: string;
35
+ archived: string;
36
+ mutedArchived: string;
37
+ archivedSurface: string;
38
+ onArchivedSurface: string;
39
+ primary: string;
40
+ onPrimary: string;
41
+ defaultSurface: string;
42
+ highlightedSurface: string;
43
+ pressedSurface: string;
44
+ decorativePrimary: string;
45
+ decorativePrimarySurface: string;
46
+ };
47
+ export default swagLightJobsSystemPalette;