@hero-design/rn 8.35.0-alpha.4 → 8.36.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 (114) hide show
  1. package/.eslintrc.js +1 -0
  2. package/.turbo/turbo-build.log +1 -1
  3. package/.turbo/turbo-build:types.log +0 -8
  4. package/.turbo/turbo-lint.log +20 -11
  5. package/.turbo/turbo-test.log +0 -724
  6. package/es/index.js +578 -639
  7. package/jest.config.js +1 -1
  8. package/lib/index.js +588 -649
  9. package/package.json +9 -9
  10. package/src/components/Attachment/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
  11. package/src/components/Badge/__tests__/__snapshots__/Badge.spec.tsx.snap +3 -3
  12. package/src/components/Badge/__tests__/__snapshots__/Status.spec.tsx.snap +1 -1
  13. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/StyledLoadingIndicator.spec.tsx.snap +2 -2
  14. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/index.spec.tsx.snap +6 -6
  15. package/src/components/Button/UtilityButton/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
  16. package/src/components/Button/__tests__/__snapshots__/Button.spec.tsx.snap +4 -4
  17. package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +6 -6
  18. package/src/components/Calendar/__tests__/index.spec.tsx +29 -0
  19. package/src/components/Calendar/index.tsx +10 -1
  20. package/src/components/Carousel/__tests__/__snapshots__/index.spec.tsx.snap +75 -74
  21. package/src/components/Carousel/index.tsx +1 -1
  22. package/src/components/DatePicker/DatePickerCalendar.tsx +23 -14
  23. package/src/components/FAB/ActionGroup/StyledActionGroup.tsx +12 -0
  24. package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +801 -1251
  25. package/src/components/FAB/ActionGroup/__tests__/index.spec.tsx +45 -35
  26. package/src/components/FAB/ActionGroup/index.tsx +65 -45
  27. package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +1 -1
  28. package/src/components/FAB/index.tsx +0 -4
  29. package/src/components/Icon/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
  30. package/src/components/PinInput/__tests__/__snapshots__/PinCell.spec.tsx.snap +4 -4
  31. package/src/components/PinInput/__tests__/__snapshots__/index.spec.tsx.snap +12 -12
  32. package/src/components/Portal/PortalHost.tsx +24 -0
  33. package/src/components/Portal/PortalProvider.tsx +29 -0
  34. package/src/components/Portal/__tests__/PortalHost.spec.tsx +50 -0
  35. package/src/components/Portal/__tests__/PortalProvider.spec.tsx +24 -0
  36. package/src/components/Portal/__tests__/index.spec.tsx +29 -0
  37. package/src/components/Portal/__tests__/reducer.spec.tsx +110 -0
  38. package/src/components/Portal/constants.ts +10 -0
  39. package/src/components/Portal/contexts.ts +14 -0
  40. package/src/components/Portal/index.tsx +42 -0
  41. package/src/components/Portal/reducer.ts +106 -0
  42. package/src/components/Portal/types.tsx +31 -0
  43. package/src/components/Portal/usePortal.ts +50 -0
  44. package/src/components/Portal/usePortalState.ts +11 -0
  45. package/src/components/Progress/StyledProgressBar.tsx +1 -0
  46. package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +46 -44
  47. package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +6 -6
  48. package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
  49. package/src/components/Skeleton/__tests__/__snapshots__/index.spec.tsx.snap +7 -7
  50. package/src/components/Swipeable/__tests__/__snapshots__/index.spec.tsx.snap +5 -0
  51. package/src/components/Swipeable/index.tsx +6 -1
  52. package/src/components/Switch/SelectorSwitch/StyledSelectorSwitch.tsx +4 -7
  53. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/Option.spec.tsx.snap +3 -3
  54. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/index.spec.tsx.snap +9 -9
  55. package/src/components/Switch/SelectorSwitch/index.tsx +7 -15
  56. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +21 -21
  57. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabsHeader.spec.tsx.snap +6 -6
  58. package/src/components/Tabs/__tests__/__snapshots__/TabWithBadge.spec.tsx.snap +2 -2
  59. package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +9 -9
  60. package/src/components/Tag/StyledTag.tsx +6 -35
  61. package/src/components/Tag/__tests__/Tag.spec.tsx +13 -13
  62. package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +40 -79
  63. package/src/components/Tag/index.tsx +8 -6
  64. package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +7 -7
  65. package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +20 -20
  66. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +1 -1
  67. package/src/components/Typography/Body/__tests__/__snapshots__/StyledBody.tsx.snap +1 -1
  68. package/src/components/Typography/Body/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
  69. package/src/components/Typography/Caption/__tests__/__snapshots__/StyledCaption.spec.tsx.snap +1 -1
  70. package/src/components/Typography/Caption/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
  71. package/src/components/Typography/Label/__tests__/__snapshots__/StyledLabel.tsx.snap +1 -1
  72. package/src/components/Typography/Label/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
  73. package/src/components/Typography/Text/__tests__/__snapshots__/StyledText.spec.tsx.snap +1 -1
  74. package/src/components/Typography/Title/__tests__/__snapshots__/StyledTitle.tsx.snap +3 -3
  75. package/src/components/Typography/Title/__tests__/__snapshots__/index.spec.tsx.snap +4 -4
  76. package/src/index.ts +2 -2
  77. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +49 -46
  78. package/src/theme/components/button.ts +1 -1
  79. package/src/theme/components/progress.ts +2 -2
  80. package/src/theme/components/swipeable.ts +5 -1
  81. package/src/theme/components/switch.ts +4 -4
  82. package/src/theme/components/tabs.ts +1 -1
  83. package/src/theme/components/tag.ts +2 -2
  84. package/src/theme/components/typography.ts +2 -2
  85. package/src/theme/global/colors/__tests__/__snapshots__/eBens.spec.ts.snap +7 -7
  86. package/src/theme/global/colors/__tests__/__snapshots__/global.spec.ts.snap +5 -5
  87. package/src/theme/global/colors/__tests__/__snapshots__/jobs.spec.ts.snap +6 -6
  88. package/src/theme/global/colors/__tests__/__snapshots__/swag.spec.ts.snap +6 -6
  89. package/src/theme/global/colors/__tests__/__snapshots__/wallet.spec.ts.snap +7 -7
  90. package/src/theme/global/colors/__tests__/__snapshots__/work.spec.ts.snap +5 -5
  91. package/src/theme/global/colors/eBens.ts +2 -2
  92. package/src/theme/global/colors/global.ts +5 -5
  93. package/src/theme/global/colors/jobs.ts +1 -1
  94. package/src/theme/global/colors/swag.ts +1 -1
  95. package/src/theme/global/colors/wallet.ts +2 -2
  96. package/types/components/Calendar/index.d.ts +2 -1
  97. package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +7 -1
  98. package/types/components/FAB/index.d.ts +0 -3
  99. package/types/components/Portal/PortalHost.d.ts +5 -0
  100. package/types/components/Portal/PortalProvider.d.ts +7 -0
  101. package/types/components/Portal/constants.d.ts +8 -0
  102. package/types/components/Portal/contexts.d.ts +9 -0
  103. package/types/components/Portal/index.d.ts +13 -0
  104. package/types/components/Portal/reducer.d.ts +5 -0
  105. package/types/components/Portal/types.d.ts +22 -0
  106. package/types/components/Portal/usePortal.d.ts +8 -0
  107. package/types/components/Portal/usePortalState.d.ts +1 -0
  108. package/types/components/Swipeable/index.d.ts +1 -1
  109. package/types/components/Tag/StyledTag.d.ts +1 -4
  110. package/types/components/Tag/index.d.ts +1 -0
  111. package/types/index.d.ts +2 -2
  112. package/types/theme/components/swipeable.d.ts +3 -0
  113. package/types/theme/components/switch.d.ts +1 -1
  114. package/types/theme/components/tag.d.ts +1 -1
@@ -7,7 +7,11 @@ const getSwipeableTheme = (theme: GlobalTheme) => {
7
7
  primary: theme.colors.primary,
8
8
  };
9
9
 
10
- return { colors };
10
+ const radii = {
11
+ swipeableContainer: theme.radii.medium,
12
+ };
13
+
14
+ return { colors, radii };
11
15
  };
12
16
 
13
17
  export default getSwipeableTheme;
@@ -10,8 +10,8 @@ const getSwitchTheme = (theme: GlobalTheme) => {
10
10
  },
11
11
  thumb: theme.colors.onSecondary,
12
12
  selector: {
13
- background: theme.colors.neutralGlobalSurface,
14
- textBackground: theme.colors.decorativePrimary,
13
+ background: theme.colors.defaultGlobalSurface,
14
+ textBackground: theme.colors.decorativePrimarySurface,
15
15
  },
16
16
  };
17
17
 
@@ -20,7 +20,7 @@ const getSwitchTheme = (theme: GlobalTheme) => {
20
20
  width: theme.sizes.xxxlarge,
21
21
  height: theme.sizes.large,
22
22
  selector: {
23
- height: theme.sizes.xxxxlarge,
23
+ height: theme.sizes.xxlarge,
24
24
  },
25
25
  };
26
26
 
@@ -28,7 +28,7 @@ const getSwitchTheme = (theme: GlobalTheme) => {
28
28
  paddingHorizontal: theme.space.xsmall,
29
29
  selector: {
30
30
  iconPadding: theme.space.medium,
31
- wrapperPadding: theme.space.xsmall,
31
+ wrapperHorizontalPadding: theme.space.xsmall,
32
32
  },
33
33
  };
34
34
 
@@ -20,7 +20,7 @@ const getTabsTheme = (theme: GlobalTheme) => {
20
20
  };
21
21
 
22
22
  const radii = {
23
- outline: theme.radii.medium,
23
+ outline: theme.radii.xlarge,
24
24
  };
25
25
 
26
26
  const borderWidths = {
@@ -6,8 +6,8 @@ const getTagTheme = (theme: GlobalTheme) => {
6
6
  };
7
7
 
8
8
  const colors = {
9
- primary: theme.colors.onDefaultGlobalSurface,
10
- primaryBackground: undefined,
9
+ primary: theme.colors.primary,
10
+ primaryBackground: theme.colors.highlightedSurface,
11
11
  info: theme.colors.onInfoSurface,
12
12
  infoBackground: theme.colors.infoSurface,
13
13
  success: theme.colors.onSuccessSurface,
@@ -42,7 +42,7 @@ const getTypographyTheme = (theme: GlobalTheme) => {
42
42
  h2: theme.fontSizes.xxxxxlarge,
43
43
  h3: theme.fontSizes.xxxxlarge,
44
44
  h4: theme.fontSizes.xxxlarge,
45
- h5: theme.fontSizes.xxlarge,
45
+ h5: theme.fontSizes.xlarge,
46
46
  h6: theme.fontSizes.large,
47
47
  },
48
48
  },
@@ -85,7 +85,7 @@ const getTypographyTheme = (theme: GlobalTheme) => {
85
85
  h2: theme.lineHeights.xxxxxlarge,
86
86
  h3: theme.lineHeights.xxxxlarge,
87
87
  h4: theme.lineHeights.xxxlarge,
88
- h5: theme.lineHeights.xxlarge,
88
+ h5: theme.lineHeights.xlarge,
89
89
  h6: theme.lineHeights.xxlarge,
90
90
  },
91
91
  },
@@ -3,12 +3,12 @@
3
3
  exports[`eBens returns correct theme object 1`] = `
4
4
  Object {
5
5
  "archived": "#abacaf",
6
- "archivedSurface": "#f1f2f3",
6
+ "archivedSurface": "#dadbde",
7
7
  "darkGlobalSurface": "#001f23",
8
8
  "decorativePrimary": "#c38cee",
9
9
  "decorativePrimarySurface": "#f3e8fc",
10
10
  "defaultGlobalSurface": "#ffffff",
11
- "defaultSurface": "#f6f6f7",
11
+ "defaultSurface": "#ffffff",
12
12
  "disabledOnDefaultGlobalSurface": "#bfc1c5",
13
13
  "disabledOutline": "#bfc1c5",
14
14
  "error": "#f46363",
@@ -25,17 +25,17 @@ Object {
25
25
  "mutedSuccess": "#7bd897",
26
26
  "mutedWarning": "#ffcb8d",
27
27
  "neutralGlobalSurface": "#f6f6f7",
28
- "onArchivedSurface": "#737479",
28
+ "onArchivedSurface": "#606065",
29
29
  "onDarkGlobalSurface": "#ffffff",
30
30
  "onDefaultGlobalSurface": "#001f23",
31
- "onErrorSurface": "#de350b",
32
- "onInfoSurface": "#4568fb",
31
+ "onErrorSurface": "#cb300a",
32
+ "onInfoSurface": "#355bfb",
33
33
  "onPrimary": "#ffffff",
34
34
  "onSecondary": "#ffffff",
35
35
  "onSuccessSurface": "#017d6d",
36
- "onWarningSurface": "#ffa234",
36
+ "onWarningSurface": "#ac5d00",
37
37
  "overlayGlobalSurface": "#000000",
38
- "pressedSurface": "#9d37b5",
38
+ "pressedSurface": "#6a0482",
39
39
  "primary": "#8505a2",
40
40
  "primaryOutline": "#001f23",
41
41
  "secondary": "#aa50be",
@@ -3,7 +3,7 @@
3
3
  exports[`global returns correct theme object 1`] = `
4
4
  Object {
5
5
  "archived": "#abacaf",
6
- "archivedSurface": "#f1f2f3",
6
+ "archivedSurface": "#dadbde",
7
7
  "darkGlobalSurface": "#001f23",
8
8
  "defaultGlobalSurface": "#ffffff",
9
9
  "disabledOnDefaultGlobalSurface": "#bfc1c5",
@@ -21,13 +21,13 @@ Object {
21
21
  "mutedSuccess": "#7bd897",
22
22
  "mutedWarning": "#ffcb8d",
23
23
  "neutralGlobalSurface": "#f6f6f7",
24
- "onArchivedSurface": "#737479",
24
+ "onArchivedSurface": "#606065",
25
25
  "onDarkGlobalSurface": "#ffffff",
26
26
  "onDefaultGlobalSurface": "#001f23",
27
- "onErrorSurface": "#de350b",
28
- "onInfoSurface": "#4568fb",
27
+ "onErrorSurface": "#cb300a",
28
+ "onInfoSurface": "#355bfb",
29
29
  "onSuccessSurface": "#017d6d",
30
- "onWarningSurface": "#ffa234",
30
+ "onWarningSurface": "#ac5d00",
31
31
  "overlayGlobalSurface": "#000000",
32
32
  "primaryOutline": "#001f23",
33
33
  "secondaryOutline": "#e8e9ea",
@@ -3,7 +3,7 @@
3
3
  exports[`jobs returns correct theme object 1`] = `
4
4
  Object {
5
5
  "archived": "#abacaf",
6
- "archivedSurface": "#f1f2f3",
6
+ "archivedSurface": "#dadbde",
7
7
  "darkGlobalSurface": "#001f23",
8
8
  "decorativePrimary": "#ffad79",
9
9
  "decorativePrimarySurface": "#ffefe4",
@@ -25,17 +25,17 @@ Object {
25
25
  "mutedSuccess": "#7bd897",
26
26
  "mutedWarning": "#ffcb8d",
27
27
  "neutralGlobalSurface": "#f6f6f7",
28
- "onArchivedSurface": "#737479",
28
+ "onArchivedSurface": "#606065",
29
29
  "onDarkGlobalSurface": "#ffffff",
30
30
  "onDefaultGlobalSurface": "#001f23",
31
- "onErrorSurface": "#de350b",
32
- "onInfoSurface": "#4568fb",
31
+ "onErrorSurface": "#cb300a",
32
+ "onInfoSurface": "#355bfb",
33
33
  "onPrimary": "#ffffff",
34
34
  "onSecondary": "#ffffff",
35
35
  "onSuccessSurface": "#017d6d",
36
- "onWarningSurface": "#ffa234",
36
+ "onWarningSurface": "#ac5d00",
37
37
  "overlayGlobalSurface": "#000000",
38
- "pressedSurface": "#e6703f",
38
+ "pressedSurface": "#b64d22",
39
39
  "primary": "#e3602a",
40
40
  "primaryOutline": "#001f23",
41
41
  "secondary": "#4d6265",
@@ -3,7 +3,7 @@
3
3
  exports[`swag returns correct theme object 1`] = `
4
4
  Object {
5
5
  "archived": "#abacaf",
6
- "archivedSurface": "#f1f2f3",
6
+ "archivedSurface": "#dadbde",
7
7
  "darkGlobalSurface": "#001f23",
8
8
  "decorativePrimary": "#ffffff",
9
9
  "decorativePrimarySurface": "#ccd2d3",
@@ -25,17 +25,17 @@ Object {
25
25
  "mutedSuccess": "#7bd897",
26
26
  "mutedWarning": "#ffcb8d",
27
27
  "neutralGlobalSurface": "#f6f6f7",
28
- "onArchivedSurface": "#737479",
28
+ "onArchivedSurface": "#606065",
29
29
  "onDarkGlobalSurface": "#ffffff",
30
30
  "onDefaultGlobalSurface": "#001f23",
31
- "onErrorSurface": "#de350b",
32
- "onInfoSurface": "#4568fb",
31
+ "onErrorSurface": "#cb300a",
32
+ "onInfoSurface": "#355bfb",
33
33
  "onPrimary": "#ffffff",
34
34
  "onSecondary": "#ffffff",
35
35
  "onSuccessSurface": "#017d6d",
36
- "onWarningSurface": "#ffa234",
36
+ "onWarningSurface": "#ac5d00",
37
37
  "overlayGlobalSurface": "#000000",
38
- "pressedSurface": "#664780",
38
+ "pressedSurface": "#33144d",
39
39
  "primary": "#401960",
40
40
  "primaryOutline": "#001f23",
41
41
  "secondary": "#795e90",
@@ -3,12 +3,12 @@
3
3
  exports[`wallet returns correct theme object 1`] = `
4
4
  Object {
5
5
  "archived": "#abacaf",
6
- "archivedSurface": "#f1f2f3",
6
+ "archivedSurface": "#dadbde",
7
7
  "darkGlobalSurface": "#001f23",
8
8
  "decorativePrimary": "#8999ff",
9
9
  "decorativePrimarySurface": "#e7ebff",
10
10
  "defaultGlobalSurface": "#ffffff",
11
- "defaultSurface": "#dce0ff",
11
+ "defaultSurface": "#ffffff",
12
12
  "disabledOnDefaultGlobalSurface": "#bfc1c5",
13
13
  "disabledOutline": "#bfc1c5",
14
14
  "error": "#f46363",
@@ -25,17 +25,17 @@ Object {
25
25
  "mutedSuccess": "#7bd897",
26
26
  "mutedWarning": "#ffcb8d",
27
27
  "neutralGlobalSurface": "#f6f6f7",
28
- "onArchivedSurface": "#737479",
28
+ "onArchivedSurface": "#606065",
29
29
  "onDarkGlobalSurface": "#ffffff",
30
30
  "onDefaultGlobalSurface": "#001f23",
31
- "onErrorSurface": "#de350b",
32
- "onInfoSurface": "#4568fb",
31
+ "onErrorSurface": "#cb300a",
32
+ "onInfoSurface": "#355bfb",
33
33
  "onPrimary": "#ffffff",
34
34
  "onSecondary": "#ffffff",
35
35
  "onSuccessSurface": "#017d6d",
36
- "onWarningSurface": "#ffa234",
36
+ "onWarningSurface": "#ac5d00",
37
37
  "overlayGlobalSurface": "#000000",
38
- "pressedSurface": "#6b77e5",
38
+ "pressedSurface": "#4853b5",
39
39
  "primary": "#5a68e2",
40
40
  "primaryOutline": "#001f23",
41
41
  "secondary": "#3f499e",
@@ -3,7 +3,7 @@
3
3
  exports[`work returns correct theme object 1`] = `
4
4
  Object {
5
5
  "archived": "#abacaf",
6
- "archivedSurface": "#f1f2f3",
6
+ "archivedSurface": "#dadbde",
7
7
  "darkGlobalSurface": "#001f23",
8
8
  "decorativePrimary": "#ffd500",
9
9
  "decorativePrimarySurface": "#fff7cc",
@@ -25,15 +25,15 @@ Object {
25
25
  "mutedSuccess": "#7bd897",
26
26
  "mutedWarning": "#ffcb8d",
27
27
  "neutralGlobalSurface": "#f6f6f7",
28
- "onArchivedSurface": "#737479",
28
+ "onArchivedSurface": "#606065",
29
29
  "onDarkGlobalSurface": "#ffffff",
30
30
  "onDefaultGlobalSurface": "#001f23",
31
- "onErrorSurface": "#de350b",
32
- "onInfoSurface": "#4568fb",
31
+ "onErrorSurface": "#cb300a",
32
+ "onInfoSurface": "#355bfb",
33
33
  "onPrimary": "#ffffff",
34
34
  "onSecondary": "#ffffff",
35
35
  "onSuccessSurface": "#017d6d",
36
- "onWarningSurface": "#ffa234",
36
+ "onWarningSurface": "#ac5d00",
37
37
  "overlayGlobalSurface": "#000000",
38
38
  "pressedSurface": "#000000",
39
39
  "primary": "#000000",
@@ -7,9 +7,9 @@ const eBensBrandSystemPallete: BrandSystemPalette = {
7
7
  onPrimary: palette.white,
8
8
  secondary: palette.violetLight30,
9
9
  onSecondary: palette.white,
10
- defaultSurface: palette.greyLight90,
10
+ defaultSurface: palette.white,
11
11
  highlightedSurface: palette.violetLight90,
12
- pressedSurface: palette.violetLight20,
12
+ pressedSurface: palette.violetDark20,
13
13
 
14
14
  decorativePrimary: palette.mauve,
15
15
  decorativePrimarySurface: palette.mauveLight80,
@@ -24,12 +24,12 @@ const globalPalette: GlobalSystemPalette = {
24
24
  error: palette.pastelRed,
25
25
  mutedError: palette.pastelRedLight20,
26
26
  errorSurface: palette.linen,
27
- onErrorSurface: palette.vermilion,
27
+ onErrorSurface: palette.amaranthaRed,
28
28
 
29
29
  warning: palette.mellowApricot,
30
30
  mutedWarning: palette.mellowApricotLight20,
31
31
  warningSurface: palette.seashell,
32
- onWarningSurface: palette.deepSaffron,
32
+ onWarningSurface: palette.orangeBrown,
33
33
 
34
34
  success: palette.emerald,
35
35
  mutedSuccess: palette.emeraldLight20,
@@ -39,12 +39,12 @@ const globalPalette: GlobalSystemPalette = {
39
39
  info: palette.vodka,
40
40
  mutedInfo: palette.vodkaLight20,
41
41
  infoSurface: palette.aliceBlue,
42
- onInfoSurface: palette.ultramarineBlue,
42
+ onInfoSurface: palette.gentianFlower,
43
43
 
44
44
  archived: palette.silverChalice,
45
45
  mutedArchived: palette.silverChaliceLight20,
46
- archivedSurface: palette.antiFlashWhite,
47
- onArchivedSurface: palette.sonicSilver,
46
+ archivedSurface: palette.cumberlandFog,
47
+ onArchivedSurface: palette.windsorGrey,
48
48
  // End of Updated 21 / Nov / 22
49
49
  };
50
50
 
@@ -9,7 +9,7 @@ const jobsBrandSystemPallete: BrandSystemPalette = {
9
9
  onSecondary: palette.white,
10
10
  defaultSurface: palette.white,
11
11
  highlightedSurface: palette.hitPinkLight90,
12
- pressedSurface: palette.appleLight10,
12
+ pressedSurface: palette.appleDark20,
13
13
 
14
14
  decorativePrimary: palette.hitPink,
15
15
  decorativePrimarySurface: palette.hitPinkLight80,
@@ -9,7 +9,7 @@ const swagBrandSystemPallete: BrandSystemPalette = {
9
9
  onSecondary: palette.white,
10
10
  defaultSurface: palette.greyLight90,
11
11
  highlightedSurface: palette.scarletGumLight90,
12
- pressedSurface: palette.scarletGumLight20,
12
+ pressedSurface: palette.scarletGumDark20,
13
13
 
14
14
  decorativePrimary: palette.white,
15
15
  decorativePrimarySurface: palette.maasstrichtBlueLight80,
@@ -7,9 +7,9 @@ const walletBrandSystemPallete: BrandSystemPalette = {
7
7
  onPrimary: palette.white,
8
8
  secondary: palette.royalBlueDark30,
9
9
  onSecondary: palette.white,
10
- defaultSurface: palette.frenchSkyLight70,
10
+ defaultSurface: palette.white,
11
11
  highlightedSurface: palette.royalBlueLight90,
12
- pressedSurface: palette.royalBlueLight10,
12
+ pressedSurface: palette.royalBlueDark20,
13
13
 
14
14
  decorativePrimary: palette.frenchSky,
15
15
  decorativePrimarySurface: palette.frenchSkyLight80,
@@ -43,6 +43,7 @@ export interface CalendarProps {
43
43
  * Callback when header month is changed, passing this prop will disable onTitlePress.
44
44
  */
45
45
  onMonthChange?: (date: Date) => void;
46
+ onToggleMonthPicker?: (visible: boolean) => void;
46
47
  /**
47
48
  * Label for the confirm button of the month picker, Android only.
48
49
  */
@@ -52,5 +53,5 @@ export interface CalendarProps {
52
53
  */
53
54
  monthPickerCancelLabel?: string;
54
55
  }
55
- declare const Calendar: ({ value, visibleDate, onChange, onPreviousPress, onNextPress, onTitlePress, minDate, maxDate, markedDates, testID, onMonthChange, monthPickerConfirmLabel, monthPickerCancelLabel, }: CalendarProps) => JSX.Element;
56
+ declare const Calendar: ({ value, visibleDate, onChange, onPreviousPress, onNextPress, onTitlePress, minDate, maxDate, markedDates, testID, onMonthChange, onToggleMonthPicker, monthPickerConfirmLabel, monthPickerCancelLabel, }: CalendarProps) => JSX.Element;
56
57
  export default Calendar;
@@ -8,6 +8,12 @@ declare const StyledContainer: import("@emotion/native").StyledComponent<ViewPro
8
8
  }, {}, {
9
9
  ref?: import("react").Ref<View> | undefined;
10
10
  }>;
11
+ declare const StyledContainerInModal: import("@emotion/native").StyledComponent<ViewProps & {
12
+ theme?: import("@emotion/react").Theme | undefined;
13
+ as?: import("react").ElementType<any> | undefined;
14
+ }, {}, {
15
+ ref?: import("react").Ref<View> | undefined;
16
+ }>;
11
17
  declare const StyledActionGroupContainer: import("@emotion/native").StyledComponent<Animated.AnimatedProps<ViewProps & import("react").RefAttributes<View>> & {
12
18
  children?: import("react").ReactNode;
13
19
  } & {
@@ -28,4 +34,4 @@ declare const StyledHeaderText: import("@emotion/native").StyledComponent<import
28
34
  theme?: import("@emotion/react").Theme | undefined;
29
35
  as?: import("react").ElementType<any> | undefined;
30
36
  } & TextProps, {}, {}>;
31
- export { StyledHeaderText, StyledBackdrop, StyledContainer, StyledActionGroupContainer, StyledFAB, };
37
+ export { StyledHeaderText, StyledBackdrop, StyledContainer, StyledContainerInModal, StyledActionGroupContainer, StyledFAB, };
@@ -1,8 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  declare const _default: import("react").ForwardRefExoticComponent<import("./FAB").FABProps & import("react").RefAttributes<import("./FAB").FABHandles>> & {
3
3
  ActionGroup: import("react").ForwardRefExoticComponent<import("./ActionGroup").ActionGroupProps & import("react").RefAttributes<import("./ActionGroup").ActionGroupHandles>>;
4
- Portal: import("react").MemoExoticComponent<({ name: _providedName, hostName, handleOnMount: _providedHandleOnMount, handleOnUnmount: _providedHandleOnUnmount, handleOnUpdate: _providedHandleOnUpdate, children, }: import("@gorhom/portal/lib/typescript/components/portal/types").PortalProps) => null>;
5
- PortalHost: import("react").MemoExoticComponent<({ name }: import("@gorhom/portal/lib/typescript/components/portalHost/types").PortalHostProps) => JSX.Element>;
6
- Provider: import("react").MemoExoticComponent<({ rootHostName, shouldAddRootHost, children, }: import("@gorhom/portal/lib/typescript/components/portalProvider/types").PortalProviderProps) => JSX.Element>;
7
4
  };
8
5
  export default _default;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ export interface PortalHostProps {
3
+ name: string;
4
+ }
5
+ export declare const PortalHost: React.MemoExoticComponent<({ name }: PortalHostProps) => JSX.Element>;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import type { ReactNode } from 'react';
3
+ export interface PortalProviderProps {
4
+ rootHostName?: string;
5
+ children: ReactNode | ReactNode[];
6
+ }
7
+ export declare const PortalProvider: React.MemoExoticComponent<({ rootHostName, children, }: PortalProviderProps) => JSX.Element>;
@@ -0,0 +1,8 @@
1
+ declare enum ACTIONS {
2
+ REGISTER_HOST = 0,
3
+ DEREGISTER_HOST = 1,
4
+ ADD_UPDATE_PORTAL = 2,
5
+ REMOVE_PORTAL = 3
6
+ }
7
+ declare const INITIAL_STATE: {};
8
+ export { ACTIONS, INITIAL_STATE };
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import type { ReactNode } from 'react';
3
+ import { ActionTypes } from './types';
4
+ export interface PortalType {
5
+ name: string;
6
+ node: ReactNode;
7
+ }
8
+ export declare const PortalStateContext: React.Context<Record<string, PortalType[]> | null>;
9
+ export declare const PortalDispatchContext: React.Context<React.Dispatch<ActionTypes> | null>;
@@ -0,0 +1,13 @@
1
+ import { ReactNode } from 'react';
2
+ export interface PortalProps {
3
+ name?: string;
4
+ hostName?: string;
5
+ children?: ReactNode | ReactNode[];
6
+ }
7
+ declare const _default: import("react").NamedExoticComponent<PortalProps> & {
8
+ readonly type: ({ name, hostName, children }: PortalProps) => null;
9
+ } & {
10
+ Provider: import("react").MemoExoticComponent<({ rootHostName, children, }: import("./PortalProvider").PortalProviderProps) => JSX.Element>;
11
+ Host: import("react").MemoExoticComponent<({ name }: import("./PortalHost").PortalHostProps) => JSX.Element>;
12
+ };
13
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import { PortalType } from './contexts';
2
+ import type { ActionTypes } from './types';
3
+ type State = Record<string, Array<PortalType>>;
4
+ export declare const reducer: (state: Record<string, Array<PortalType>>, action: ActionTypes) => State;
5
+ export {};
@@ -0,0 +1,22 @@
1
+ import type { ReactNode } from 'react';
2
+ import type { ACTIONS } from './constants';
3
+ export interface AddUpdatePortalAction {
4
+ type: ACTIONS;
5
+ hostName: string;
6
+ portalName: string;
7
+ node: ReactNode;
8
+ }
9
+ export interface RemovePortalAction {
10
+ type: ACTIONS;
11
+ hostName: string;
12
+ portalName: string;
13
+ }
14
+ export interface RegisterHostAction {
15
+ type: ACTIONS;
16
+ hostName: string;
17
+ }
18
+ export interface UnregisterHostAction {
19
+ type: ACTIONS;
20
+ hostName: string;
21
+ }
22
+ export type ActionTypes = AddUpdatePortalAction | RemovePortalAction | RegisterHostAction | UnregisterHostAction;
@@ -0,0 +1,8 @@
1
+ import { ReactNode } from 'react';
2
+ export declare const usePortal: (hostName?: string) => {
3
+ registerHost: () => void;
4
+ deregisterHost: () => void;
5
+ addPortal: (name: string, node: ReactNode) => void;
6
+ updatePortal: (name: string, node: ReactNode) => void;
7
+ removePortal: (name: string) => void;
8
+ };
@@ -0,0 +1 @@
1
+ export declare const usePortalState: (hostName: string) => import("./contexts").PortalType[];
@@ -1,5 +1,5 @@
1
1
  import { ComponentProps, ReactNode } from 'react';
2
- import { Swipeable as RnghSwipeable, RectButton } from 'react-native-gesture-handler';
2
+ import { RectButton, Swipeable as RnghSwipeable } from 'react-native-gesture-handler';
3
3
  type State = 'closed' | 'leftOpen' | 'rightOpen';
4
4
  type RnghSwipeableProps = ComponentProps<typeof RnghSwipeable>;
5
5
  export interface SwipeableProps extends Pick<RnghSwipeableProps, 'enableTrackpadTwoFingerGesture' | 'friction' | 'leftThreshold' | 'rightThreshold' | 'overshootLeft' | 'overshootRight' | 'overshootFriction' | 'useNativeAnimations' | 'containerStyle' | 'childrenContainerStyle'> {
@@ -1,13 +1,11 @@
1
1
  /// <reference types="react" />
2
2
  import { View } from 'react-native';
3
3
  type ThemeIntent = 'primary' | 'info' | 'success' | 'warning' | 'danger' | 'archived';
4
- type ThemeVariant = 'filled' | 'outlined';
5
4
  declare const StyledView: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
6
5
  theme?: import("@emotion/react").Theme | undefined;
7
6
  as?: import("react").ElementType<any> | undefined;
8
7
  } & {
9
8
  themeIntent: ThemeIntent;
10
- themeVariant: ThemeVariant;
11
9
  }, {}, {
12
10
  ref?: import("react").Ref<View> | undefined;
13
11
  }>;
@@ -16,6 +14,5 @@ declare const StyledText: import("@emotion/native").StyledComponent<import("../T
16
14
  as?: import("react").ElementType<any> | undefined;
17
15
  } & {
18
16
  themeIntent: ThemeIntent;
19
- themeVariant: ThemeVariant;
20
17
  }, {}, {}>;
21
- export { StyledView, StyledText };
18
+ export { StyledText, StyledView };
@@ -10,6 +10,7 @@ interface TagProps extends ViewProps {
10
10
  */
11
11
  intent?: 'primary' | 'info' | 'success' | 'warning' | 'danger' | 'archived';
12
12
  /**
13
+ * @deprecated Tag variant prop is deprecated and will be removed in the next major release. Please remove it.
13
14
  * Tag variant.
14
15
  */
15
16
  variant?: 'filled' | 'outlined';
package/types/index.d.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  import theme, { getTheme, ThemeProvider, useTheme, swagSystemPalette, swagDarkSystemPalette, workSystemPalette, jobsSystemPalette, walletSystemPalette, eBensSystemPalette, ThemeSwitcher, withTheme } from './theme';
2
2
  import { scale } from './utils/scale';
3
- import * as Portal from '@gorhom/portal';
4
3
  import Accordion from './components/Accordion';
5
4
  import Alert from './components/Alert';
6
5
  import Attachment from './components/Attachment';
@@ -48,5 +47,6 @@ import Rate from './components/Rate';
48
47
  import RefreshControl from './components/RefreshControl';
49
48
  import RichTextEditor from './components/RichTextEditor';
50
49
  import PageControl from './components/PageControl';
51
- export { theme, getTheme, useTheme, scale, ThemeProvider, ThemeSwitcher, withTheme, swagSystemPalette, swagDarkSystemPalette, workSystemPalette, jobsSystemPalette, walletSystemPalette, eBensSystemPalette, Accordion, Alert, Attachment, Avatar, useAvatarColors, Badge, BottomNavigation, BottomSheet, Box, Button, Calendar, Card, Carousel, Collapse, Checkbox, ContentNavigator, DatePicker, Divider, Drawer, Empty, Error, FAB, Icon, Image, List, Modal, PinInput, Progress, PageControl, Skeleton, Slider, Spinner, Swipeable, Radio, SectionHeading, Select, Success, Switch, Tabs, Tag, TextInput, TimePicker, Toast, Toolbar, Typography, Rate, RefreshControl, RichTextEditor, Portal, };
50
+ import Portal from './components/Portal';
51
+ export { theme, getTheme, useTheme, scale, ThemeProvider, ThemeSwitcher, withTheme, swagSystemPalette, swagDarkSystemPalette, workSystemPalette, jobsSystemPalette, walletSystemPalette, eBensSystemPalette, Accordion, Alert, Attachment, Avatar, useAvatarColors, Badge, BottomNavigation, BottomSheet, Box, Button, Calendar, Card, Carousel, Collapse, Checkbox, ContentNavigator, DatePicker, Divider, Drawer, Empty, Error, FAB, Icon, Image, List, Modal, PinInput, Progress, Portal, PageControl, Skeleton, Slider, Spinner, Swipeable, Radio, SectionHeading, Select, Success, Switch, Tabs, Tag, TextInput, TimePicker, Toast, Toolbar, Typography, Rate, RefreshControl, RichTextEditor, };
52
52
  export * from './types';
@@ -5,5 +5,8 @@ declare const getSwipeableTheme: (theme: GlobalTheme) => {
5
5
  danger: string;
6
6
  primary: string;
7
7
  };
8
+ radii: {
9
+ swipeableContainer: number;
10
+ };
8
11
  };
9
12
  export default getSwipeableTheme;
@@ -25,7 +25,7 @@ declare const getSwitchTheme: (theme: GlobalTheme) => {
25
25
  paddingHorizontal: number;
26
26
  selector: {
27
27
  iconPadding: number;
28
- wrapperPadding: number;
28
+ wrapperHorizontalPadding: number;
29
29
  };
30
30
  };
31
31
  radii: {
@@ -5,7 +5,7 @@ declare const getTagTheme: (theme: GlobalTheme) => {
5
5
  };
6
6
  colors: {
7
7
  primary: string;
8
- primaryBackground: undefined;
8
+ primaryBackground: string;
9
9
  info: string;
10
10
  infoBackground: string;
11
11
  success: string;