@workday/canvas-kit-react 10.0.0-alpha.519-next.0 → 10.0.0-alpha.520-next.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.
@@ -1,8 +1,18 @@
1
1
  import * as React from 'react';
2
2
  import { GrowthBehavior } from '@workday/canvas-kit-react/common';
3
3
  import { SystemIcon } from '@workday/canvas-kit-react/icon';
4
+ /**
5
+ * ### ⚠️ We've deprecated `InputIconContainerProps` from Main because it doesn't handle bidirectionality or icons at the start of an input. ⚠️
6
+ * Please consider using [`InputGroup`](https://workday.github.io/canvas-kit/?path=/docs/components-inputs-text-input--icons) instead.
7
+ * @deprecated
8
+ */
4
9
  export interface InputIconContainerProps extends GrowthBehavior {
5
10
  icon?: React.ReactElement<typeof SystemIcon>;
6
11
  }
12
+ /**
13
+ * ### ⚠️ We've deprecated `InputIconContainer` from Main because it doesn't handle bidirectionality or icons at the start of an input. ⚠️
14
+ * Please consider using [`InputGroup`](https://workday.github.io/canvas-kit/?path=/docs/components-inputs-text-input--icons) instead.
15
+ * @deprecated
16
+ */
7
17
  export declare const InputIconContainer: React.FunctionComponent<React.PropsWithChildren<InputIconContainerProps>>;
8
18
  //# sourceMappingURL=InputIconContainer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"InputIconContainer.d.ts","sourceRoot":"","sources":["../../../../text-input/lib/InputIconContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAC,cAAc,EAAC,MAAM,kCAAkC,CAAC;AAEhE,OAAO,EAAC,UAAU,EAAC,MAAM,gCAAgC,CAAC;AAE1D,MAAM,WAAW,uBAAwB,SAAQ,cAAc;IAC7D,IAAI,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC,OAAO,UAAU,CAAC,CAAC;CAC9C;AAaD,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,iBAAiB,CAAC,KAAK,CAAC,iBAAiB,CAC9E,uBAAuB,CACxB,CAKA,CAAC"}
1
+ {"version":3,"file":"InputIconContainer.d.ts","sourceRoot":"","sources":["../../../../text-input/lib/InputIconContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAC,cAAc,EAAC,MAAM,kCAAkC,CAAC;AAEhE,OAAO,EAAC,UAAU,EAAC,MAAM,gCAAgC,CAAC;AAE1D;;;;GAIG;AACH,MAAM,WAAW,uBAAwB,SAAQ,cAAc;IAC7D,IAAI,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC,OAAO,UAAU,CAAC,CAAC;CAC9C;AAaD;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,iBAAiB,CAAC,KAAK,CAAC,iBAAiB,CAC9E,uBAAuB,CACxB,CAKA,CAAC"}
@@ -35,6 +35,11 @@ const IconContainer = styled_1.default('div')({
35
35
  top: tokens_1.space.xxs,
36
36
  right: tokens_1.space.xxs,
37
37
  });
38
+ /**
39
+ * ### ⚠️ We've deprecated `InputIconContainer` from Main because it doesn't handle bidirectionality or icons at the start of an input. ⚠️
40
+ * Please consider using [`InputGroup`](https://workday.github.io/canvas-kit/?path=/docs/components-inputs-text-input--icons) instead.
41
+ * @deprecated
42
+ */
38
43
  const InputIconContainer = ({ grow, children, icon }) => (React.createElement(Container, { grow: grow },
39
44
  children,
40
45
  icon && React.createElement(IconContainer, null, icon)));
@@ -1,8 +1,18 @@
1
1
  import * as React from 'react';
2
2
  import { GrowthBehavior } from '@workday/canvas-kit-react/common';
3
3
  import { SystemIcon } from '@workday/canvas-kit-react/icon';
4
+ /**
5
+ * ### ⚠️ We've deprecated `InputIconContainerProps` from Main because it doesn't handle bidirectionality or icons at the start of an input. ⚠️
6
+ * Please consider using [`InputGroup`](https://workday.github.io/canvas-kit/?path=/docs/components-inputs-text-input--icons) instead.
7
+ * @deprecated
8
+ */
4
9
  export interface InputIconContainerProps extends GrowthBehavior {
5
10
  icon?: React.ReactElement<typeof SystemIcon>;
6
11
  }
12
+ /**
13
+ * ### ⚠️ We've deprecated `InputIconContainer` from Main because it doesn't handle bidirectionality or icons at the start of an input. ⚠️
14
+ * Please consider using [`InputGroup`](https://workday.github.io/canvas-kit/?path=/docs/components-inputs-text-input--icons) instead.
15
+ * @deprecated
16
+ */
7
17
  export declare const InputIconContainer: React.FunctionComponent<React.PropsWithChildren<InputIconContainerProps>>;
8
18
  //# sourceMappingURL=InputIconContainer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"InputIconContainer.d.ts","sourceRoot":"","sources":["../../../../text-input/lib/InputIconContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAC,cAAc,EAAC,MAAM,kCAAkC,CAAC;AAEhE,OAAO,EAAC,UAAU,EAAC,MAAM,gCAAgC,CAAC;AAE1D,MAAM,WAAW,uBAAwB,SAAQ,cAAc;IAC7D,IAAI,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC,OAAO,UAAU,CAAC,CAAC;CAC9C;AAaD,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,iBAAiB,CAAC,KAAK,CAAC,iBAAiB,CAC9E,uBAAuB,CACxB,CAKA,CAAC"}
1
+ {"version":3,"file":"InputIconContainer.d.ts","sourceRoot":"","sources":["../../../../text-input/lib/InputIconContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAC,cAAc,EAAC,MAAM,kCAAkC,CAAC;AAEhE,OAAO,EAAC,UAAU,EAAC,MAAM,gCAAgC,CAAC;AAE1D;;;;GAIG;AACH,MAAM,WAAW,uBAAwB,SAAQ,cAAc;IAC7D,IAAI,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC,OAAO,UAAU,CAAC,CAAC;CAC9C;AAaD;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,iBAAiB,CAAC,KAAK,CAAC,iBAAiB,CAC9E,uBAAuB,CACxB,CAKA,CAAC"}
@@ -10,6 +10,11 @@ const IconContainer = styled('div')({
10
10
  top: space.xxs,
11
11
  right: space.xxs,
12
12
  });
13
+ /**
14
+ * ### ⚠️ We've deprecated `InputIconContainer` from Main because it doesn't handle bidirectionality or icons at the start of an input. ⚠️
15
+ * Please consider using [`InputGroup`](https://workday.github.io/canvas-kit/?path=/docs/components-inputs-text-input--icons) instead.
16
+ * @deprecated
17
+ */
13
18
  export const InputIconContainer = ({ grow, children, icon }) => (React.createElement(Container, { grow: grow },
14
19
  children,
15
20
  icon && React.createElement(IconContainer, null, icon)));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workday/canvas-kit-react",
3
- "version": "10.0.0-alpha.519-next.0",
3
+ "version": "10.0.0-alpha.520-next.0",
4
4
  "description": "The parent module that contains all Workday Canvas Kit React components",
5
5
  "author": "Workday, Inc. (https://www.workday.com)",
6
6
  "license": "Apache-2.0",
@@ -49,7 +49,7 @@
49
49
  "@emotion/styled": "^11.6.0",
50
50
  "@popperjs/core": "^2.5.4",
51
51
  "@workday/canvas-colors-web": "^2.0.0",
52
- "@workday/canvas-kit-popup-stack": "^10.0.0-alpha.519-next.0",
52
+ "@workday/canvas-kit-popup-stack": "^10.0.0-alpha.520-next.0",
53
53
  "@workday/canvas-system-icons-web": "^3.0.0",
54
54
  "@workday/design-assets-types": "^0.2.8",
55
55
  "chroma-js": "^2.1.0",
@@ -66,5 +66,5 @@
66
66
  "@workday/canvas-accent-icons-web": "^3.0.0",
67
67
  "@workday/canvas-applet-icons-web": "^2.0.0"
68
68
  },
69
- "gitHead": "9de5c3f196c75277d80d67ded38a0ba555540061"
69
+ "gitHead": "a07a3adf69807467c61874609ea9a22f47fba75c"
70
70
  }
@@ -4,6 +4,11 @@ import {GrowthBehavior} from '@workday/canvas-kit-react/common';
4
4
  import {space} from '@workday/canvas-kit-react/tokens';
5
5
  import {SystemIcon} from '@workday/canvas-kit-react/icon';
6
6
 
7
+ /**
8
+ * ### ⚠️ We've deprecated `InputIconContainerProps` from Main because it doesn't handle bidirectionality or icons at the start of an input. ⚠️
9
+ * Please consider using [`InputGroup`](https://workday.github.io/canvas-kit/?path=/docs/components-inputs-text-input--icons) instead.
10
+ * @deprecated
11
+ */
7
12
  export interface InputIconContainerProps extends GrowthBehavior {
8
13
  icon?: React.ReactElement<typeof SystemIcon>;
9
14
  }
@@ -19,6 +24,11 @@ const IconContainer = styled('div')({
19
24
  right: space.xxs,
20
25
  });
21
26
 
27
+ /**
28
+ * ### ⚠️ We've deprecated `InputIconContainer` from Main because it doesn't handle bidirectionality or icons at the start of an input. ⚠️
29
+ * Please consider using [`InputGroup`](https://workday.github.io/canvas-kit/?path=/docs/components-inputs-text-input--icons) instead.
30
+ * @deprecated
31
+ */
22
32
  export const InputIconContainer: React.FunctionComponent<React.PropsWithChildren<
23
33
  InputIconContainerProps
24
34
  >> = ({grow, children, icon}) => (