@hero-design/rn 8.105.2 → 8.105.3

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 (43) hide show
  1. package/.turbo/turbo-build.log +3 -3
  2. package/CHANGELOG.md +10 -0
  3. package/es/index.js +99 -3
  4. package/lib/index.js +99 -3
  5. package/package.json +1 -1
  6. package/src/components/Alert/index.tsx +2 -0
  7. package/src/components/Button/Button.tsx +2 -0
  8. package/src/components/Carousel/index.tsx +4 -1
  9. package/src/components/Checkbox/index.tsx +2 -1
  10. package/src/components/Chip/index.tsx +3 -1
  11. package/src/components/FAB/ActionGroup/index.tsx +2 -1
  12. package/src/components/Icon/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
  13. package/src/components/Icon/index.tsx +2 -0
  14. package/src/components/Image/index.tsx +3 -0
  15. package/src/components/StatusScreens/StatusIcon/__tests__/index.spec.tsx +3 -0
  16. package/src/components/StatusScreens/StatusIcon/assets/Lock.tsx +31 -0
  17. package/src/components/StatusScreens/StatusIcon/assets/NoResult.tsx +35 -0
  18. package/src/components/StatusScreens/StatusIcon/assets/Unlock.tsx +31 -0
  19. package/src/components/StatusScreens/StatusIcon/index.tsx +6 -0
  20. package/src/components/Tag/index.tsx +1 -0
  21. package/src/components/Toast/types.ts +2 -0
  22. package/src/components/Toolbar/ToolbarGroup.tsx +7 -1
  23. package/src/components/Typography/Text/index.tsx +3 -0
  24. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +1 -1
  25. package/src/theme/components/icon.ts +1 -1
  26. package/stats/8.105.2/rn-stats.html +1 -3
  27. package/stats/8.105.3/rn-stats.html +4844 -0
  28. package/types/components/Alert/index.d.ts +2 -0
  29. package/types/components/Button/Button.d.ts +2 -0
  30. package/types/components/Carousel/index.d.ts +3 -1
  31. package/types/components/Checkbox/index.d.ts +2 -1
  32. package/types/components/Chip/index.d.ts +3 -1
  33. package/types/components/FAB/ActionGroup/index.d.ts +2 -1
  34. package/types/components/Icon/index.d.ts +2 -0
  35. package/types/components/Image/index.d.ts +3 -0
  36. package/types/components/StatusScreens/StatusIcon/assets/Lock.d.ts +4 -0
  37. package/types/components/StatusScreens/StatusIcon/assets/NoResult.d.ts +4 -0
  38. package/types/components/StatusScreens/StatusIcon/assets/Unlock.d.ts +4 -0
  39. package/types/components/StatusScreens/StatusIcon/index.d.ts +3 -0
  40. package/types/components/Tag/index.d.ts +1 -0
  41. package/types/components/Toast/types.d.ts +2 -0
  42. package/types/components/Toolbar/ToolbarGroup.d.ts +3 -0
  43. package/types/components/Typography/Text/index.d.ts +3 -0
@@ -19,6 +19,8 @@ interface BasicAlertProps {
19
19
  icon?: null | IconName;
20
20
  /**
21
21
  * Visual intent color to apply to alert.
22
+ *
23
+ * intent['notification'] - @deprecated Will be removed in the next major release. Please use other intents instead.
22
24
  */
23
25
  intent?: 'success' | 'info' | 'warning' | 'error' | 'notification';
24
26
  /**
@@ -49,6 +49,8 @@ export interface ButtonProps {
49
49
  text: ReactChild;
50
50
  /**
51
51
  * Button type.
52
+ *
53
+ * variant['filled-secondary' | 'filled-danger' | 'outlined-secondary' | 'outlined-danger'] - @deprecated
52
54
  */
53
55
  variant?: 'filled' | 'outlined' | 'text' | 'inline-text' | 'filled-compact' | 'outlined-compact' | 'text-compact' | 'inline-text-compact';
54
56
  }
@@ -33,7 +33,9 @@ interface CarouselProps extends ViewProps {
33
33
  */
34
34
  selectedItemIndex?: number;
35
35
  /**
36
- * position of the page control
36
+ * Position of the page control
37
+ *
38
+ * pageControlPosition['bottom'] - @deprecated
37
39
  */
38
40
  pageControlPosition?: 'top' | 'bottom';
39
41
  }
@@ -10,7 +10,8 @@ export interface CheckboxProps {
10
10
  */
11
11
  description?: string;
12
12
  /**
13
- * @deprecated This prop will be removed in the next major release. Checkboxes will always have border.
13
+ * @deprecated `withBorder` prop will be removed in the next major release, all checkboxes will have border by default. Please remove it.
14
+ *
14
15
  * Whether the border is shown.
15
16
  */
16
17
  withBorder?: boolean;
@@ -7,7 +7,9 @@ export interface ChipProps extends ViewProps {
7
7
  */
8
8
  label: string | ReactNode;
9
9
  /**
10
- * Variant of the chip. `outlined` and `filled` are deprecated.
10
+ * Variant of the chip.
11
+ *
12
+ * variant['outlined' | 'filled'] - @deprecated
11
13
  */
12
14
  variant?: 'selection' | 'filter' | 'compact' | 'compact-outlined' | 'outlined' | 'filled';
13
15
  /**
@@ -9,7 +9,8 @@ export type ActionGroupHandles = {
9
9
  };
10
10
  export interface ActionGroupProps {
11
11
  /**
12
- * @deprecated headerTitle will be removed in the next major release.
12
+ * @deprecated FAB.ActionGroup's `headerTitle` prop will be removed in the next major release. Please remove it.
13
+ *
13
14
  * Title of the action group header.
14
15
  */
15
16
  headerTitle?: string;
@@ -5,6 +5,8 @@ export type IconName = typeof IconList[number];
5
5
  export interface IconProps extends AccessibilityProps {
6
6
  /**
7
7
  * Name of the Icon.
8
+ *
9
+ * icon['carat-*'] - @deprecated Icons starting with 'carat' are deprecated and will be removed in the next major release, please use 'caret' instead.
8
10
  */
9
11
  icon: IconName;
10
12
  /**
@@ -13,5 +13,8 @@ export interface ImageProps extends RNImageProps {
13
13
  */
14
14
  testID?: string;
15
15
  }
16
+ /**
17
+ * @deprecated Image component will soon be deprecated. Please use `Image` from `react-native` instead.
18
+ */
16
19
  declare const Image: ({ rounded, size, testID, style, ...imageNativeProps }: ImageProps) => JSX.Element;
17
20
  export default Image;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { StatusSvgProps } from '../types';
3
+ declare const Lock: ({ stroke, fill, testID }: StatusSvgProps) => React.JSX.Element;
4
+ export default Lock;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { StatusSvgProps } from '../types';
3
+ declare const NoResult: ({ stroke, fill, testID }: StatusSvgProps) => React.JSX.Element;
4
+ export default NoResult;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { StatusSvgProps } from '../types';
3
+ declare const Unlock: ({ stroke, fill, testID }: StatusSvgProps) => React.JSX.Element;
4
+ export default Unlock;
@@ -16,6 +16,9 @@ export declare const StatusIcons: {
16
16
  readonly error: ({ stroke, fill, testID }: import("./types").StatusSvgProps) => React.JSX.Element;
17
17
  readonly info: ({ stroke, fill, testID }: import("./types").StatusSvgProps) => React.JSX.Element;
18
18
  readonly success: ({ stroke, fill, testID }: import("./types").StatusSvgProps) => React.JSX.Element;
19
+ readonly lock: ({ stroke, fill, testID }: import("./types").StatusSvgProps) => React.JSX.Element;
20
+ readonly unlock: ({ stroke, fill, testID }: import("./types").StatusSvgProps) => React.JSX.Element;
21
+ readonly 'no-result': ({ stroke, fill, testID }: import("./types").StatusSvgProps) => React.JSX.Element;
19
22
  };
20
23
  export type StatusIconName = keyof typeof StatusIcons;
21
24
  interface StatusIconProps {
@@ -11,6 +11,7 @@ interface TagProps extends ViewProps {
11
11
  intent?: 'primary' | 'info' | 'success' | 'warning' | 'danger' | 'archived';
12
12
  /**
13
13
  * @deprecated Tag variant prop is deprecated and will be removed in the next major release. Please remove it.
14
+ *
14
15
  * Tag variant.
15
16
  */
16
17
  variant?: 'filled' | 'outlined';
@@ -59,6 +59,8 @@ export interface ToastContainerProps {
59
59
  displayType?: 'single' | 'stack';
60
60
  /**
61
61
  * Position that the toast message will appear on the screen.
62
+ *
63
+ * @deprecated position is deprecated and will be removed in the next major release.
62
64
  */
63
65
  position?: 'top' | 'bottom';
64
66
  /**
@@ -8,6 +8,9 @@ export interface ToolbarGroupProps {
8
8
  /**
9
9
  * Alignment of the items in the group.
10
10
  */
11
+ /**
12
+ * align['left' | 'center'] - @deprecated Use align['right'] instead.
13
+ */
11
14
  align: 'left' | 'center' | 'right';
12
15
  }
13
16
  declare const ToolbarGroup: ({ align, items }: ToolbarGroupProps) => React.JSX.Element;
@@ -33,5 +33,8 @@ export interface TextProps extends NativeTextProps {
33
33
  */
34
34
  typeface?: 'neutral' | 'playful';
35
35
  }
36
+ /**
37
+ * @deprecated Typography.Text is deprecated and will be removed in the next major release, please refer to https://design.employmenthero.com/mobile/Components/typography for the appropriate alternatives.
38
+ */
36
39
  declare const Text: ({ children, fontSize, fontWeight, intent, typeface, allowFontScaling, ...nativeProps }: TextProps) => React.JSX.Element;
37
40
  export default Text;