@workday/canvas-kit-react 8.6.1 → 8.6.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.
@@ -12,7 +12,8 @@ import {
12
12
  EmotionCanvasTheme,
13
13
  StyledType,
14
14
  } from '@workday/canvas-kit-react/common';
15
- import {BoxProps, boxStyleFn} from '@workday/canvas-kit-react/layout';
15
+ import {SystemIconProps} from '@workday/canvas-kit-react/icon';
16
+ import {boxStyleFn} from '@workday/canvas-kit-react/layout';
16
17
  import {borderRadius, space, spaceNumbers, type} from '@workday/canvas-kit-react/tokens';
17
18
 
18
19
  import {ButtonColors, ButtonSizes, IconPositions, TertiaryButtonSizes} from './types';
@@ -20,7 +21,7 @@ import {ButtonColors, ButtonSizes, IconPositions, TertiaryButtonSizes} from './t
20
21
  import {CSSObject} from '@emotion/styled';
21
22
  import {CanvasSystemIcon} from '@workday/design-assets-types';
22
23
 
23
- export interface ButtonContainerProps extends BoxProps, GrowthBehavior {
24
+ export interface ButtonContainerProps extends Partial<SystemIconProps>, GrowthBehavior {
24
25
  /**
25
26
  * Override default colors of a button. The default will depend on the button type
26
27
  */
@@ -1,22 +1,15 @@
1
1
  import React from 'react';
2
- import {CanvasSystemIcon} from '@workday/design-assets-types';
3
2
  import {ButtonSizes, IconPositions} from '../types';
4
3
  import {createComponent} from '@workday/canvas-kit-react/common';
5
- import {SystemIcon} from '@workday/canvas-kit-react/icon';
6
- import {BoxProps} from '@workday/canvas-kit-react/layout';
4
+ import {SystemIcon, SystemIconProps} from '@workday/canvas-kit-react/icon';
7
5
 
8
- export interface ButtonLabelIconProps extends BoxProps {
6
+ export interface ButtonLabelIconProps extends Partial<SystemIconProps> {
9
7
  /**
10
8
  * There are four button sizes: `extraSmall`, `small`, `medium`, and `large`.
11
9
  *
12
10
  * @default 'medium'
13
11
  */
14
12
  size?: ButtonSizes;
15
- /**
16
- * The icon of the Button.
17
- * Note: not displayed at `small` size
18
- */
19
- icon?: CanvasSystemIcon;
20
13
  /**
21
14
  * Button icon positions can either be `left` or `right`.
22
15
  * If no value is provided, it defaults to `left`.
@@ -1,9 +1,9 @@
1
1
  import * as React from 'react';
2
2
  import { GrowthBehavior } from '@workday/canvas-kit-react/common';
3
- import { BoxProps } from '@workday/canvas-kit-react/layout';
3
+ import { SystemIconProps } from '@workday/canvas-kit-react/icon';
4
4
  import { ButtonColors, ButtonSizes, IconPositions, TertiaryButtonSizes } from './types';
5
5
  import { CanvasSystemIcon } from '@workday/design-assets-types';
6
- export interface ButtonContainerProps extends BoxProps, GrowthBehavior {
6
+ export interface ButtonContainerProps extends Partial<SystemIconProps>, GrowthBehavior {
7
7
  /**
8
8
  * Override default colors of a button. The default will depend on the button type
9
9
  */
@@ -1 +1 @@
1
- {"version":3,"file":"BaseButton.d.ts","sourceRoot":"","sources":["../../../../button/lib/BaseButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,EAEL,cAAc,EAMf,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAC,QAAQ,EAAa,MAAM,kCAAkC,CAAC;AAGtE,OAAO,EAAC,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,mBAAmB,EAAC,MAAM,SAAS,CAAC;AAGtF,OAAO,EAAC,gBAAgB,EAAC,MAAM,8BAA8B,CAAC;AAE9D,MAAM,WAAW,oBAAqB,SAAQ,QAAQ,EAAE,cAAc;IACpE;;OAEG;IACH,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB;;;OAGG;IACH,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;GAIG;AACH,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAAC,oBAAoB,EAAE,KAAK,CAAC;CAAG;AAgL7E,eAAO,MAAM,iBAAiB,aAClB,MAAM,SAAS,QACnB,WAAW,GAAG,mBAAmB,2EAcxC,CAAC;AAEF,eAAO,MAAM,gBAAgB,aACjB,MAAM,SAAS,QACnB,WAAW,GAAG,mBAAmB,QACjC,gBAAgB,GAAG,SAAS,gBACpB,aAAa,GAAG,SAAS,eAiDxC,CAAC;AAEF,eAAO,MAAM,UAAU;;;CAarB,CAAC"}
1
+ {"version":3,"file":"BaseButton.d.ts","sourceRoot":"","sources":["../../../../button/lib/BaseButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,EAEL,cAAc,EAMf,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAC,eAAe,EAAC,MAAM,gCAAgC,CAAC;AAI/D,OAAO,EAAC,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,mBAAmB,EAAC,MAAM,SAAS,CAAC;AAGtF,OAAO,EAAC,gBAAgB,EAAC,MAAM,8BAA8B,CAAC;AAE9D,MAAM,WAAW,oBAAqB,SAAQ,OAAO,CAAC,eAAe,CAAC,EAAE,cAAc;IACpF;;OAEG;IACH,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB;;;OAGG;IACH,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;GAIG;AACH,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAAC,oBAAoB,EAAE,KAAK,CAAC;CAAG;AAgL7E,eAAO,MAAM,iBAAiB,aAClB,MAAM,SAAS,QACnB,WAAW,GAAG,mBAAmB,2EAcxC,CAAC;AAEF,eAAO,MAAM,gBAAgB,aACjB,MAAM,SAAS,QACnB,WAAW,GAAG,mBAAmB,QACjC,gBAAgB,GAAG,SAAS,gBACpB,aAAa,GAAG,SAAS,eAiDxC,CAAC;AAEF,eAAO,MAAM,UAAU;;;CAarB,CAAC"}
@@ -1,18 +1,12 @@
1
- import { CanvasSystemIcon } from '@workday/design-assets-types';
2
1
  import { ButtonSizes, IconPositions } from '../types';
3
- import { BoxProps } from '@workday/canvas-kit-react/layout';
4
- export interface ButtonLabelIconProps extends BoxProps {
2
+ import { SystemIconProps } from '@workday/canvas-kit-react/icon';
3
+ export interface ButtonLabelIconProps extends Partial<SystemIconProps> {
5
4
  /**
6
5
  * There are four button sizes: `extraSmall`, `small`, `medium`, and `large`.
7
6
  *
8
7
  * @default 'medium'
9
8
  */
10
9
  size?: ButtonSizes;
11
- /**
12
- * The icon of the Button.
13
- * Note: not displayed at `small` size
14
- */
15
- icon?: CanvasSystemIcon;
16
10
  /**
17
11
  * Button icon positions can either be `left` or `right`.
18
12
  * If no value is provided, it defaults to `left`.
@@ -1 +1 @@
1
- {"version":3,"file":"ButtonLabelIcon.d.ts","sourceRoot":"","sources":["../../../../../button/lib/parts/ButtonLabelIcon.tsx"],"names":[],"mappings":"AACA,OAAO,EAAC,gBAAgB,EAAC,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAC,WAAW,EAAE,aAAa,EAAC,MAAM,UAAU,CAAC;AAGpD,OAAO,EAAC,QAAQ,EAAC,MAAM,kCAAkC,CAAC;AAE1D,MAAM,WAAW,oBAAqB,SAAQ,QAAQ;IACpD;;;;OAIG;IACH,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB;;;OAGG;IACH,IAAI,CAAC,EAAE,gBAAgB,CAAC;IACxB;;;;OAIG;IACH,YAAY,CAAC,EAAE,aAAa,CAAC;IAC7B;;;OAGG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AASD,eAAO,MAAM,eAAe,2FAyB1B,CAAC"}
1
+ {"version":3,"file":"ButtonLabelIcon.d.ts","sourceRoot":"","sources":["../../../../../button/lib/parts/ButtonLabelIcon.tsx"],"names":[],"mappings":"AACA,OAAO,EAAC,WAAW,EAAE,aAAa,EAAC,MAAM,UAAU,CAAC;AAEpD,OAAO,EAAa,eAAe,EAAC,MAAM,gCAAgC,CAAC;AAE3E,MAAM,WAAW,oBAAqB,SAAQ,OAAO,CAAC,eAAe,CAAC;IACpE;;;;OAIG;IACH,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB;;;;OAIG;IACH,YAAY,CAAC,EAAE,aAAa,CAAC;IAC7B;;;OAGG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AASD,eAAO,MAAM,eAAe,2FAyB1B,CAAC"}
@@ -1,9 +1,9 @@
1
1
  import * as React from 'react';
2
2
  import { GrowthBehavior } from '@workday/canvas-kit-react/common';
3
- import { BoxProps } from '@workday/canvas-kit-react/layout';
3
+ import { SystemIconProps } from '@workday/canvas-kit-react/icon';
4
4
  import { ButtonColors, ButtonSizes, IconPositions, TertiaryButtonSizes } from './types';
5
5
  import { CanvasSystemIcon } from '@workday/design-assets-types';
6
- export interface ButtonContainerProps extends BoxProps, GrowthBehavior {
6
+ export interface ButtonContainerProps extends Partial<SystemIconProps>, GrowthBehavior {
7
7
  /**
8
8
  * Override default colors of a button. The default will depend on the button type
9
9
  */
@@ -1 +1 @@
1
- {"version":3,"file":"BaseButton.d.ts","sourceRoot":"","sources":["../../../../button/lib/BaseButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,EAEL,cAAc,EAMf,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAC,QAAQ,EAAa,MAAM,kCAAkC,CAAC;AAGtE,OAAO,EAAC,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,mBAAmB,EAAC,MAAM,SAAS,CAAC;AAGtF,OAAO,EAAC,gBAAgB,EAAC,MAAM,8BAA8B,CAAC;AAE9D,MAAM,WAAW,oBAAqB,SAAQ,QAAQ,EAAE,cAAc;IACpE;;OAEG;IACH,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB;;;OAGG;IACH,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;GAIG;AACH,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAAC,oBA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CAarB,CAAC"}
@@ -1,18 +1,12 @@
1
- import { CanvasSystemIcon } from '@workday/design-assets-types';
2
1
  import { ButtonSizes, IconPositions } from '../types';
3
- import { BoxProps } from '@workday/canvas-kit-react/layout';
4
- export interface ButtonLabelIconProps extends BoxProps {
2
+ import { SystemIconProps } from '@workday/canvas-kit-react/icon';
3
+ export interface ButtonLabelIconProps extends Partial<SystemIconProps> {
5
4
  /**
6
5
  * There are four button sizes: `extraSmall`, `small`, `medium`, and `large`.
7
6
  *
8
7
  * @default 'medium'
9
8
  */
10
9
  size?: ButtonSizes;
11
- /**
12
- * The icon of the Button.
13
- * Note: not displayed at `small` size
14
- */
15
- icon?: CanvasSystemIcon;
16
10
  /**
17
11
  * Button icon positions can either be `left` or `right`.
18
12
  * If no value is provided, it defaults to `left`.
@@ -1 +1 @@
1
- {"version":3,"file":"ButtonLabelIcon.d.ts","sourceRoot":"","sources":["../../../../../button/lib/parts/ButtonLabelIcon.tsx"],"names":[],"mappings":"AACA,OAAO,EAAC,gBAAgB,EAAC,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAC,WAAW,EAAE,aAAa,EAAC,MAAM,UAAU,CAAC;AAGpD,OAAO,EAAC,QAAQ,EAAC,MAAM,kCAAkC,CAAC;AAE1D,MAAM,WAAW,oBAAqB,SAAQ,QAAQ;IACpD;;;;OAIG;IACH,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB;;;OAGG;IACH,IAAI,CAAC,EAAE,gBAAgB,CAAC;IACxB;;;;OAIG;IACH,YAAY,CAAC,EAAE,aAAa,CAAC;IAC7B;;;OAGG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AASD,eAAO,MAAM,eAAe,2FAyB1B,CAAC"}
1
+ {"version":3,"file":"ButtonLabelIcon.d.ts","sourceRoot":"","sources":["../../../../../button/lib/parts/ButtonLabelIcon.tsx"],"names":[],"mappings":"AACA,OAAO,EAAC,WAAW,EAAE,aAAa,EAAC,MAAM,UAAU,CAAC;AAEpD,OAAO,EAAa,eAAe,EAAC,MAAM,gCAAgC,CAAC;AAE3E,MAAM,WAAW,oBAAqB,SAAQ,OAAO,CAAC,eAAe,CAAC;IACpE;;;;OAIG;IACH,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB;;;;OAIG;IACH,YAAY,CAAC,EAAE,aAAa,CAAC;IAC7B;;;OAGG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AASD,eAAO,MAAM,eAAe,2FAyB1B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workday/canvas-kit-react",
3
- "version": "8.6.1",
3
+ "version": "8.6.3",
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": "^8.6.1",
52
+ "@workday/canvas-kit-popup-stack": "^8.6.3",
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",
@@ -67,5 +67,5 @@
67
67
  "@workday/canvas-accent-icons-web": "^3.0.0",
68
68
  "@workday/canvas-applet-icons-web": "^2.0.0"
69
69
  },
70
- "gitHead": "2fd1e6ab51b4a0f3d3db491c817419b66cc92aaf"
70
+ "gitHead": "33cdfbb027c090770e7a93b9ed033c886c010946"
71
71
  }