@conveyorhq/arrow-ds 1.216.0 → 1.216.1

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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@conveyorhq/arrow-ds",
3
3
  "author": "Conveyor",
4
4
  "license": "MIT",
5
- "version": "1.216.0",
5
+ "version": "1.216.1",
6
6
  "description": "Arrow Design System",
7
7
  "repository": "https://github.com/conveyor/arrow-ds",
8
8
  "publishConfig": {
@@ -24,6 +24,9 @@ type NavComponent = ReactNode;
24
24
  type UserComponent = ReactNode;
25
25
  type OrganizationComponent = ReactNode;
26
26
 
27
+ /**
28
+ * @deprecated
29
+ */
27
30
  export interface AppbarProps extends BoxProps {
28
31
  /**
29
32
  * Which company is this?
@@ -65,6 +68,9 @@ export interface AppbarProps extends BoxProps {
65
68
  isProductMenuDisabled?: boolean;
66
69
  }
67
70
 
71
+ /**
72
+ * @deprecated
73
+ */
68
74
  export const Appbar = (props: AppbarProps) => {
69
75
  const {
70
76
  company = COMPLY_COMPANY_NAME.CONVEYOR,
@@ -1,10 +1,16 @@
1
1
  import React, { FunctionComponent, HTMLAttributes, forwardRef } from "react";
2
2
 
3
+ /**
4
+ * @deprecated use React.ComponentProps<"div"> instead
5
+ */
3
6
  export interface BoxProps extends HTMLAttributes<HTMLDivElement> {
4
7
  ref?: any;
5
8
  as?: any;
6
9
  }
7
10
 
11
+ /**
12
+ * @deprecated use a <div /> or <span /> element instead
13
+ */
8
14
  export const Box: FunctionComponent<BoxProps> = forwardRef<
9
15
  HTMLDivElement,
10
16
  BoxProps
@@ -10,6 +10,9 @@ import {
10
10
  brandIconSizeMap,
11
11
  } from "./types";
12
12
 
13
+ /**
14
+ * @deprecated
15
+ */
13
16
  export const BRAND_ICON_MAP: BrandIconComponentMap = {
14
17
  [BrandIconNameEnum.confluence]: Icons.BrandIconSVGConfluence,
15
18
  [BrandIconNameEnum.conveyor_ai]: Icons.BrandIconSVGConveyorAI,
@@ -31,6 +34,9 @@ type BrandIconProps = React.HTMLAttributes<HTMLSpanElement> & {
31
34
  style?: React.CSSProperties;
32
35
  };
33
36
 
37
+ /**
38
+ * @deprecated
39
+ */
34
40
  export const BrandIcon = forwardRef<HTMLSpanElement, BrandIconProps>(
35
41
  function BrandIcon(props, ref) {
36
42
  const { name, size = "md", className, style, ...rest } = props;
@@ -11,6 +11,9 @@ export interface DescriptionProps extends TextProps {
11
11
 
12
12
  const cn = "Description";
13
13
 
14
+ /**
15
+ * @deprecated
16
+ */
14
17
  export const Description = (props: DescriptionProps) => {
15
18
  const { className, theme: themeProp, ...rest } = props;
16
19
 
@@ -5,6 +5,9 @@ import { bemHOF } from "../../utilities";
5
5
 
6
6
  const cn = bemHOF("Flex");
7
7
 
8
+ /**
9
+ * @deprecated use the “flex” classname instead
10
+ */
8
11
  export const Flex: FunctionComponent<BoxProps> = forwardRef<
9
12
  HTMLDivElement,
10
13
  BoxProps
@@ -5,6 +5,9 @@ import { bemHOF } from "../../utilities";
5
5
 
6
6
  const cn = bemHOF("Grid");
7
7
 
8
+ /**
9
+ * @deprecated
10
+ */
8
11
  export interface GridProps extends BoxProps {
9
12
  /**
10
13
  * Maps to the
@@ -26,6 +29,9 @@ export interface GridProps extends BoxProps {
26
29
  gap?: string;
27
30
  }
28
31
 
32
+ /**
33
+ * @deprecated
34
+ */
29
35
  export interface GridItemProps extends BoxProps {
30
36
  /**
31
37
  * Specifies a grid item’s size and location within a grid column; internally,
@@ -48,6 +54,9 @@ export interface GridItemProps extends BoxProps {
48
54
  area?: string;
49
55
  }
50
56
 
57
+ /**
58
+ * @deprecated
59
+ */
51
60
  export const GridItem = forwardRef<HTMLDivElement, GridItemProps>(
52
61
  (props, ref) => {
53
62
  const {
@@ -79,6 +88,9 @@ export const GridItem = forwardRef<HTMLDivElement, GridItemProps>(
79
88
  },
80
89
  );
81
90
 
91
+ /**
92
+ * @deprecated use the “grid” classname instead
93
+ */
82
94
  const Grid = forwardRef<HTMLDivElement, GridProps>((props, ref) => {
83
95
  const { className, style, columns = [], rows = [], gap, ...rest } = props;
84
96
 
@@ -11,6 +11,9 @@ interface InputFeedbackProps extends TextProps {
11
11
  variant?: STATUS_VARIANT;
12
12
  }
13
13
 
14
+ /**
15
+ * @deprecated
16
+ */
14
17
  export const InputFeedback = (props: InputFeedbackProps) => {
15
18
  const {
16
19
  variant: variantProp = STATUS_VARIANT.DEFAULT,
@@ -5,10 +5,16 @@ interface ListProps extends BoxProps {
5
5
  as?: "ol" | "ul";
6
6
  }
7
7
 
8
+ /**
9
+ * @deprecated use a <li /> element instead
10
+ */
8
11
  const ListItem = forwardRef<HTMLLIElement, BoxProps>((props, ref) => {
9
12
  return <Box {...props} ref={ref} as="li" />;
10
13
  });
11
14
 
15
+ /**
16
+ * @deprecated use a <ol /> or <ul /> elements instead
17
+ */
12
18
  const List = forwardRef<HTMLOListElement | HTMLUListElement, ListProps>(
13
19
  (props, ref) => {
14
20
  const { as = "ul", ...rest } = props;
@@ -121,6 +121,9 @@ const MarqueeGradient = ({ style }: { style: CSSProperties }) => {
121
121
  return <Box className={cn({ e: "overlay" })} style={style} />;
122
122
  };
123
123
 
124
+ /**
125
+ * @deprecated
126
+ */
124
127
  export const Marquee = forwardRef<HTMLDivElement, MarqueeProps>(
125
128
  function Marquee(
126
129
  {
@@ -110,6 +110,9 @@ const TRANSITION_START = {
110
110
  };
111
111
  const TRANSITION_END = { transform: "translateY(0)", opacity: 1 };
112
112
 
113
+ /**
114
+ * @deprecated
115
+ */
113
116
  export const MenuRenderer = ({
114
117
  children,
115
118
  className,
@@ -6,6 +6,9 @@ import { bem } from "../../utilities/bem";
6
6
 
7
7
  const cn = "Overlay";
8
8
 
9
+ /**
10
+ * @deprecated
11
+ */
9
12
  export const Overlay = (props: BoxProps) => {
10
13
  const { className, ...rest } = props;
11
14
 
@@ -10,6 +10,9 @@ export interface PanelProps extends BoxProps {
10
10
  border?: BorderPosition;
11
11
  }
12
12
 
13
+ /**
14
+ * @deprecated create panels using the appropriate classnames instead
15
+ */
13
16
  export const Panel = (props: PanelProps) => {
14
17
  const { background = "white", border = "all", className, ...rest } = props;
15
18
 
@@ -11,6 +11,9 @@ export interface PopoverMenuProps extends BoxProps {
11
11
  theme?: THEME;
12
12
  }
13
13
 
14
+ /**
15
+ * @deprecated
16
+ */
14
17
  export const PopoverMenu: FunctionComponent<PopoverMenuProps> = forwardRef<
15
18
  HTMLDivElement,
16
19
  PopoverMenuProps
@@ -9,4 +9,7 @@ export type PortalProps = {
9
9
  root?: PortalRootElementType;
10
10
  };
11
11
 
12
+ /**
13
+ * @deprecated import FloatingPortal from @floating-ui/react instead
14
+ */
12
15
  export const Portal = (props: PortalProps) => <FloatingPortal {...props} />;
@@ -22,6 +22,9 @@ export interface SpeechBubbleProps extends BoxProps {
22
22
  placement?: SpeechBubblePlacement;
23
23
  }
24
24
 
25
+ /**
26
+ * @deprecated
27
+ */
25
28
  export const SpeechBubble = (props: SpeechBubbleProps) => {
26
29
  const {
27
30
  "data-placement": dataPlacement = "top-start",
@@ -38,6 +38,9 @@ export interface StackProps extends BoxProps {
38
38
  reverse?: boolean;
39
39
  }
40
40
 
41
+ /**
42
+ * @deprecated use the “flex” classname instead
43
+ */
41
44
  export const Stack: FunctionComponent<StackProps> = forwardRef<
42
45
  HTMLDivElement,
43
46
  StackProps
@@ -3,6 +3,9 @@ import { Box, BoxProps } from "../Box";
3
3
 
4
4
  export type TextProps = BoxProps;
5
5
 
6
+ /**
7
+ * @deprecated use a <p /> element instead
8
+ */
6
9
  export const Text = (props: TextProps) => {
7
10
  return <Box as="p" {...props} />;
8
11
  };
@@ -5,6 +5,9 @@ import { bemHOF } from "../../utilities";
5
5
 
6
6
  const cn = bemHOF("VisuallyHidden");
7
7
 
8
+ /**
9
+ * @deprecated use the “visually-hidden” classname instead
10
+ */
8
11
  export const VisuallyHidden: React.FunctionComponent<BoxProps> = React.forwardRef<
9
12
  HTMLDivElement,
10
13
  BoxProps
@@ -65,7 +65,7 @@ The follwing props for `Icon` no longer apply to `MaterialIcon`.
65
65
  | Prop type | Alternative |
66
66
  | ----------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
67
67
  | `color?: string;` | Use `className` or `style` to set the icon's color |
68
- | `spin?: boolean;` | Use the `loading-spin` classname, which adds a spinning animation to the icon (still to be implemented) |
68
+ | `spin?: boolean;` | Use the `animate-spin` classname, which adds a spinning animation to the icon |
69
69
  | `prefix?: ICON_STYLE_PREFIX;` | None; `prefix` was specific to Font Awesome |
70
70
  | `flip?: FlipProp;` | This prop was specific to Font Awesome and was never used; if necessary, use the CSS `transform` property with functions `scaleX(-1)` for horizontal or `scaleY(-1)` for vertical. |
71
71