@workday/canvas-kit-react 7.4.11 → 7.4.12

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
  colors?: ButtonColors;
25
26
  /**
26
27
  * There are four button sizes: `extraSmall`, `small`, `medium`, and `large`.
@@ -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
  colors?: ButtonColors;
8
8
  /**
9
9
  * There are four button sizes: `extraSmall`, `small`, `medium`, and `large`.
@@ -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,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB;;;;;OAKG;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,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB;;;;;OAKG;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,0EAyB1B,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,0EAyB1B,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
  colors?: ButtonColors;
8
8
  /**
9
9
  * There are four button sizes: `extraSmall`, `small`, `medium`, and `large`.
@@ -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,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;GA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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,0EAyB1B,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,0EAyB1B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workday/canvas-kit-react",
3
- "version": "7.4.11",
3
+ "version": "7.4.12",
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",
@@ -50,7 +50,7 @@
50
50
  "@emotion/styled": "^11.6.0",
51
51
  "@popperjs/core": "^2.5.4",
52
52
  "@workday/canvas-colors-web": "^2.0.0",
53
- "@workday/canvas-kit-popup-stack": "^7.4.11",
53
+ "@workday/canvas-kit-popup-stack": "^7.4.12",
54
54
  "@workday/canvas-system-icons-web": "^3.0.0",
55
55
  "@workday/design-assets-types": "^0.2.8",
56
56
  "chroma-js": "^2.1.0",
@@ -69,5 +69,5 @@
69
69
  "@workday/canvas-accent-icons-web": "^3.0.0",
70
70
  "@workday/canvas-applet-icons-web": "^2.0.0"
71
71
  },
72
- "gitHead": "0e4657f28e4ece8a2920e99b9466a1dfb3e8d79e"
72
+ "gitHead": "c1702abe32e2ee10d97536a2ca0b81c11092cdd3"
73
73
  }