@workday/canvas-kit-react 6.0.0-alpha.0-next.26 → 6.0.0-alpha.0-next.30

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 (88) hide show
  1. package/action-bar/lib/ActionBar.tsx +43 -30
  2. package/button/lib/PrimaryButton.tsx +110 -32
  3. package/button/lib/SecondaryButton.tsx +31 -16
  4. package/button/lib/parts/ButtonContainer.tsx +16 -5
  5. package/button/lib/parts/ButtonLabelIcon.tsx +34 -14
  6. package/button/lib/types.ts +10 -0
  7. package/common/lib/theming/README.md +189 -25
  8. package/common/lib/theming/breakpoints.ts +296 -16
  9. package/common/lib/theming/types.ts +191 -1
  10. package/dist/commonjs/action-bar/lib/ActionBar.d.ts.map +1 -1
  11. package/dist/commonjs/action-bar/lib/ActionBar.js +35 -27
  12. package/dist/commonjs/button/lib/PrimaryButton.d.ts +80 -6
  13. package/dist/commonjs/button/lib/PrimaryButton.d.ts.map +1 -1
  14. package/dist/commonjs/button/lib/PrimaryButton.js +80 -26
  15. package/dist/commonjs/button/lib/SecondaryButton.d.ts +8 -5
  16. package/dist/commonjs/button/lib/SecondaryButton.d.ts.map +1 -1
  17. package/dist/commonjs/button/lib/SecondaryButton.js +22 -12
  18. package/dist/commonjs/button/lib/parts/ButtonContainer.d.ts +5 -3
  19. package/dist/commonjs/button/lib/parts/ButtonContainer.d.ts.map +1 -1
  20. package/dist/commonjs/button/lib/parts/ButtonContainer.js +11 -9
  21. package/dist/commonjs/button/lib/parts/ButtonLabel.d.ts +1 -1
  22. package/dist/commonjs/button/lib/parts/ButtonLabelIcon.d.ts +7 -4
  23. package/dist/commonjs/button/lib/parts/ButtonLabelIcon.d.ts.map +1 -1
  24. package/dist/commonjs/button/lib/parts/ButtonLabelIcon.js +28 -13
  25. package/dist/commonjs/button/lib/types.d.ts +8 -0
  26. package/dist/commonjs/button/lib/types.d.ts.map +1 -1
  27. package/dist/commonjs/common/lib/theming/breakpoints.d.ts +287 -6
  28. package/dist/commonjs/common/lib/theming/breakpoints.d.ts.map +1 -1
  29. package/dist/commonjs/common/lib/theming/breakpoints.js +192 -10
  30. package/dist/commonjs/common/lib/theming/types.d.ts +191 -1
  31. package/dist/commonjs/common/lib/theming/types.d.ts.map +1 -1
  32. package/dist/commonjs/common/lib/utils/components.d.ts +1 -1
  33. package/dist/commonjs/pagination/lib/Pagination/PageList.d.ts +1 -1
  34. package/dist/commonjs/pagination/lib/Pagination/Pagination.d.ts +5 -5
  35. package/dist/commonjs/pagination/lib/Pagination/common/List.d.ts +1 -1
  36. package/dist/commonjs/pagination/lib/Pagination/common/utils/space.d.ts +28 -28
  37. package/dist/es6/action-bar/lib/ActionBar.d.ts.map +1 -1
  38. package/dist/es6/action-bar/lib/ActionBar.js +33 -22
  39. package/dist/es6/button/lib/PrimaryButton.d.ts +80 -6
  40. package/dist/es6/button/lib/PrimaryButton.d.ts.map +1 -1
  41. package/dist/es6/button/lib/PrimaryButton.js +81 -27
  42. package/dist/es6/button/lib/SecondaryButton.d.ts +8 -5
  43. package/dist/es6/button/lib/SecondaryButton.d.ts.map +1 -1
  44. package/dist/es6/button/lib/SecondaryButton.js +22 -12
  45. package/dist/es6/button/lib/parts/ButtonContainer.d.ts +5 -3
  46. package/dist/es6/button/lib/parts/ButtonContainer.d.ts.map +1 -1
  47. package/dist/es6/button/lib/parts/ButtonContainer.js +11 -9
  48. package/dist/es6/button/lib/parts/ButtonLabel.d.ts +1 -1
  49. package/dist/es6/button/lib/parts/ButtonLabelIcon.d.ts +7 -4
  50. package/dist/es6/button/lib/parts/ButtonLabelIcon.d.ts.map +1 -1
  51. package/dist/es6/button/lib/parts/ButtonLabelIcon.js +28 -13
  52. package/dist/es6/button/lib/types.d.ts +8 -0
  53. package/dist/es6/button/lib/types.d.ts.map +1 -1
  54. package/dist/es6/common/lib/theming/breakpoints.d.ts +287 -6
  55. package/dist/es6/common/lib/theming/breakpoints.d.ts.map +1 -1
  56. package/dist/es6/common/lib/theming/breakpoints.js +192 -10
  57. package/dist/es6/common/lib/theming/types.d.ts +191 -1
  58. package/dist/es6/common/lib/theming/types.d.ts.map +1 -1
  59. package/dist/es6/pagination/lib/Pagination/PageList.d.ts +1 -1
  60. package/dist/es6/pagination/lib/Pagination/Pagination.d.ts +5 -5
  61. package/dist/es6/pagination/lib/Pagination/common/List.d.ts +1 -1
  62. package/dist/es6/pagination/lib/Pagination/common/utils/space.d.ts +28 -28
  63. package/package.json +5 -5
  64. package/ts3.5/dist/commonjs/button/lib/PrimaryButton.d.ts +80 -6
  65. package/ts3.5/dist/commonjs/button/lib/SecondaryButton.d.ts +8 -5
  66. package/ts3.5/dist/commonjs/button/lib/parts/ButtonContainer.d.ts +5 -3
  67. package/ts3.5/dist/commonjs/button/lib/parts/ButtonLabel.d.ts +1 -1
  68. package/ts3.5/dist/commonjs/button/lib/parts/ButtonLabelIcon.d.ts +7 -4
  69. package/ts3.5/dist/commonjs/button/lib/types.d.ts +8 -0
  70. package/ts3.5/dist/commonjs/common/lib/theming/breakpoints.d.ts +287 -6
  71. package/ts3.5/dist/commonjs/common/lib/theming/types.d.ts +191 -1
  72. package/ts3.5/dist/commonjs/common/lib/utils/components.d.ts +1 -1
  73. package/ts3.5/dist/commonjs/pagination/lib/Pagination/PageList.d.ts +1 -1
  74. package/ts3.5/dist/commonjs/pagination/lib/Pagination/Pagination.d.ts +5 -5
  75. package/ts3.5/dist/commonjs/pagination/lib/Pagination/common/List.d.ts +1 -1
  76. package/ts3.5/dist/commonjs/pagination/lib/Pagination/common/utils/space.d.ts +28 -28
  77. package/ts3.5/dist/es6/button/lib/PrimaryButton.d.ts +80 -6
  78. package/ts3.5/dist/es6/button/lib/SecondaryButton.d.ts +8 -5
  79. package/ts3.5/dist/es6/button/lib/parts/ButtonContainer.d.ts +5 -3
  80. package/ts3.5/dist/es6/button/lib/parts/ButtonLabel.d.ts +1 -1
  81. package/ts3.5/dist/es6/button/lib/parts/ButtonLabelIcon.d.ts +7 -4
  82. package/ts3.5/dist/es6/button/lib/types.d.ts +8 -0
  83. package/ts3.5/dist/es6/common/lib/theming/breakpoints.d.ts +287 -6
  84. package/ts3.5/dist/es6/common/lib/theming/types.d.ts +191 -1
  85. package/ts3.5/dist/es6/pagination/lib/Pagination/PageList.d.ts +1 -1
  86. package/ts3.5/dist/es6/pagination/lib/Pagination/Pagination.d.ts +5 -5
  87. package/ts3.5/dist/es6/pagination/lib/Pagination/common/List.d.ts +1 -1
  88. package/ts3.5/dist/es6/pagination/lib/Pagination/common/utils/space.d.ts +28 -28
@@ -21,8 +21,18 @@ var __rest = (this && this.__rest) || function (s, e) {
21
21
  return t;
22
22
  };
23
23
  import * as React from 'react';
24
- import { useTheme, createComponent, } from '@workday/canvas-kit-react/common';
24
+ import { useTheme, createComponent, focusRing, } from '@workday/canvas-kit-react/common';
25
+ import { colors } from '@workday/canvas-kit-react/tokens';
25
26
  import { ButtonContainer, ButtonLabel, ButtonLabelData, ButtonLabelIcon } from './parts';
27
+ // Button sizes where data labels are enabled
28
+ var dataLabelSizes = ['medium', 'large'];
29
+ // All disabled buttons are set to 40% opacity.
30
+ // This will eventually live in the ButtonContainer styles, but for now we're scoping it to Primary, Secondary, and Tertiary buttons.
31
+ var disabledButtonOpacity = {
32
+ '&:disabled, &:disabled:active': {
33
+ opacity: 0.4,
34
+ },
35
+ };
26
36
  export var PrimaryButton = createComponent('button')({
27
37
  displayName: 'PrimaryButton',
28
38
  Component: function (_a, ref, Element) {
@@ -32,33 +42,77 @@ export var PrimaryButton = createComponent('button')({
32
42
  _b = _a.theme,
33
43
  // TODO: Fix useTheme and make it a real hook
34
44
  // eslint-disable-next-line react-hooks/rules-of-hooks
35
- theme = _b === void 0 ? useTheme() : _b, _c = _a.size, size = _c === void 0 ? 'medium' : _c, _d = _a.iconPosition, iconPosition = _d === void 0 ? 'left' : _d, dataLabel = _a.dataLabel, icon = _a.icon, _e = _a.shouldMirrorIcon, shouldMirrorIcon = _e === void 0 ? false : _e, children = _a.children, elemProps = __rest(_a, ["theme", "size", "iconPosition", "dataLabel", "icon", "shouldMirrorIcon", "children"]);
36
- return (React.createElement(ButtonContainer, __assign({ ref: ref, as: Element, colors: getPrimaryButtonColors(theme), size: size }, elemProps),
37
- icon && size !== 'small' && iconPosition === 'left' && (React.createElement(ButtonLabelIcon, { size: size, iconPosition: iconPosition, icon: icon, shouldMirrorIcon: shouldMirrorIcon })),
45
+ theme = _b === void 0 ? useTheme() : _b, _c = _a.size, size = _c === void 0 ? 'medium' : _c, _d = _a.iconPosition, iconPosition = _d === void 0 ? 'left' : _d, variant = _a.variant, dataLabel = _a.dataLabel, icon = _a.icon, _e = _a.shouldMirrorIcon, shouldMirrorIcon = _e === void 0 ? false : _e, children = _a.children, elemProps = __rest(_a, ["theme", "size", "iconPosition", "variant", "dataLabel", "icon", "shouldMirrorIcon", "children"]);
46
+ return (React.createElement(ButtonContainer, __assign({ ref: ref, as: Element, colors: getPrimaryButtonColors(variant, theme), size: size, extraStyles: disabledButtonOpacity }, elemProps),
47
+ icon && iconPosition === 'left' && (React.createElement(ButtonLabelIcon, { size: size, iconPosition: iconPosition, icon: icon, shouldMirrorIcon: shouldMirrorIcon })),
38
48
  React.createElement(ButtonLabel, null, children),
39
- dataLabel && size !== 'small' && React.createElement(ButtonLabelData, null, dataLabel),
40
- icon && size !== 'small' && iconPosition === 'right' && (React.createElement(ButtonLabelIcon, { size: size, iconPosition: iconPosition, icon: icon, shouldMirrorIcon: shouldMirrorIcon }))));
49
+ dataLabel && dataLabelSizes.includes(size) && React.createElement(ButtonLabelData, null, dataLabel),
50
+ icon && iconPosition === 'right' && (React.createElement(ButtonLabelIcon, { size: size, iconPosition: iconPosition, icon: icon, shouldMirrorIcon: shouldMirrorIcon }))));
41
51
  },
42
52
  });
43
- export var getPrimaryButtonColors = function (_a) {
44
- var themePrimary = _a.canvas.palette.primary;
45
- return ({
46
- default: {
47
- background: themePrimary.main,
48
- icon: themePrimary.contrast,
49
- label: themePrimary.contrast,
50
- },
51
- hover: {
52
- background: themePrimary.dark,
53
- },
54
- active: {
55
- background: themePrimary.darkest,
56
- },
57
- focus: {
58
- background: themePrimary.main,
59
- },
60
- disabled: {
61
- background: themePrimary.light,
62
- },
63
- });
53
+ export var getPrimaryButtonColors = function (variant, theme) {
54
+ var themePrimary = theme.canvas.palette.primary;
55
+ switch (variant) {
56
+ case undefined:
57
+ default:
58
+ return {
59
+ default: {
60
+ background: themePrimary.main,
61
+ icon: themePrimary.contrast,
62
+ label: themePrimary.contrast,
63
+ },
64
+ hover: {
65
+ background: themePrimary.dark,
66
+ },
67
+ active: {
68
+ background: themePrimary.darkest,
69
+ },
70
+ focus: {
71
+ background: themePrimary.main,
72
+ },
73
+ disabled: {
74
+ background: themePrimary.main,
75
+ },
76
+ };
77
+ case 'inverse':
78
+ return {
79
+ default: {
80
+ background: colors.frenchVanilla100,
81
+ icon: colors.blackPepper400,
82
+ label: colors.blackPepper400,
83
+ labelData: colors.blackPepper400,
84
+ },
85
+ hover: {
86
+ background: colors.soap300,
87
+ icon: colors.blackPepper500,
88
+ label: colors.blackPepper500,
89
+ labelData: colors.blackPepper500,
90
+ },
91
+ active: {
92
+ background: colors.soap300,
93
+ icon: colors.blackPepper500,
94
+ label: colors.blackPepper500,
95
+ labelData: colors.blackPepper500,
96
+ },
97
+ focus: {
98
+ background: colors.frenchVanilla100,
99
+ border: colors.blackPepper400,
100
+ icon: colors.blackPepper400,
101
+ label: colors.blackPepper400,
102
+ labelData: colors.blackPepper400,
103
+ focusRing: focusRing({
104
+ separation: 1,
105
+ innerColor: colors.blackPepper500,
106
+ outerColor: colors.frenchVanilla100,
107
+ }, theme),
108
+ },
109
+ // Identical to inverse 'default' styles. ButtonContainer will set opacity to 40%
110
+ disabled: {
111
+ background: colors.frenchVanilla100,
112
+ icon: colors.blackPepper400,
113
+ label: colors.blackPepper400,
114
+ labelData: colors.blackPepper400,
115
+ },
116
+ };
117
+ }
64
118
  };
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { GrowthBehavior, Themeable, EmotionCanvasTheme } from '@workday/canvas-kit-react/common';
3
3
  import { CanvasSystemIcon } from '@workday/design-assets-types';
4
- import { ButtonColors } from './types';
4
+ import { ButtonColors, ButtonSizes, IconPositions } from './types';
5
5
  export interface SecondaryButtonProps extends Themeable, GrowthBehavior {
6
6
  /**
7
7
  * The variant of the SecondaryButton.
@@ -9,10 +9,12 @@ export interface SecondaryButtonProps extends Themeable, GrowthBehavior {
9
9
  */
10
10
  variant?: 'inverse' | undefined;
11
11
  /**
12
- * The size of the Button.
12
+ * There are four button sizes: `extraSmall`, `small`, `medium`, and `large`.
13
+ * If no size is provided, it will default to `medium`.
14
+ *
13
15
  * @default 'medium'
14
16
  */
15
- size?: 'small' | 'medium' | 'large';
17
+ size?: ButtonSizes;
16
18
  /**
17
19
  * The data label of the Button.
18
20
  * Note: not displayed at `small` size
@@ -24,10 +26,11 @@ export interface SecondaryButtonProps extends Themeable, GrowthBehavior {
24
26
  */
25
27
  icon?: CanvasSystemIcon;
26
28
  /**
27
- * The position of the TertiaryButton icon.
29
+ * Button icon positions can either be `left` or `right`.
30
+ * If no value is provided, it defaults to `left`.
28
31
  * @default 'left'
29
32
  */
30
- iconPosition?: 'left' | 'right';
33
+ iconPosition?: IconPositions;
31
34
  /**
32
35
  * If set to `true`, transform the icon's x-axis to mirror the graphic
33
36
  * @default false
@@ -1 +1 @@
1
- {"version":3,"file":"SecondaryButton.d.ts","sourceRoot":"","sources":["../../../../button/lib/SecondaryButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EACL,cAAc,EAEd,SAAS,EACT,kBAAkB,EAGnB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAC,gBAAgB,EAAC,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAC,YAAY,EAAC,MAAM,SAAS,CAAC;AAGrC,MAAM,WAAW,oBAAqB,SAAQ,SAAS,EAAE,cAAc;IACrE;;;OAGG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;IAChC;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IACpC;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,IAAI,CAAC,EAAE,gBAAgB,CAAC;IACxB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAChC;;;OAGG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,eAAO,MAAM,eAAe,yEA8C1B,CAAC;AAEH,eAAO,MAAM,wBAAwB,6EA8FpC,CAAC"}
1
+ {"version":3,"file":"SecondaryButton.d.ts","sourceRoot":"","sources":["../../../../button/lib/SecondaryButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EACL,cAAc,EAEd,SAAS,EACT,kBAAkB,EAGnB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAC,gBAAgB,EAAC,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAC,YAAY,EAAE,WAAW,EAAE,aAAa,EAAC,MAAM,SAAS,CAAC;AAGjE,MAAM,WAAW,oBAAqB,SAAQ,SAAS,EAAE,cAAc;IACrE;;;OAGG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;IAChC;;;;;OAKG;IACH,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,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;IAC3B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAYD,eAAO,MAAM,eAAe,yEA+C1B,CAAC;AAEH,eAAO,MAAM,wBAAwB,6EA+FpC,CAAC"}
@@ -24,6 +24,15 @@ import * as React from 'react';
24
24
  import { colors } from '@workday/canvas-kit-react/tokens';
25
25
  import { useTheme, createComponent, focusRing, } from '@workday/canvas-kit-react/common';
26
26
  import { ButtonContainer, ButtonLabel, ButtonLabelData, ButtonLabelIcon } from './parts';
27
+ // Button sizes where data labels are enabled
28
+ var dataLabelSizes = ['medium', 'large'];
29
+ // All disabled buttons are set to 40% opacity.
30
+ // This will eventually live in the ButtonContainer styles, but for now we're scoping it to Primary, Secondary, and Tertiary buttons.
31
+ var disabledButtonOpacity = {
32
+ '&:disabled, &:disabled:active': {
33
+ opacity: 0.4,
34
+ },
35
+ };
27
36
  export var SecondaryButton = createComponent('button')({
28
37
  displayName: 'SecondaryButton',
29
38
  Component: function (_a, ref, Element) {
@@ -34,11 +43,11 @@ export var SecondaryButton = createComponent('button')({
34
43
  // TODO: Fix useTheme and make it a real hook
35
44
  // eslint-disable-next-line react-hooks/rules-of-hooks
36
45
  theme = _b === void 0 ? useTheme() : _b, _c = _a.size, size = _c === void 0 ? 'medium' : _c, _d = _a.iconPosition, iconPosition = _d === void 0 ? 'left' : _d, variant = _a.variant, dataLabel = _a.dataLabel, icon = _a.icon, _e = _a.shouldMirrorIcon, shouldMirrorIcon = _e === void 0 ? false : _e, children = _a.children, elemProps = __rest(_a, ["theme", "size", "iconPosition", "variant", "dataLabel", "icon", "shouldMirrorIcon", "children"]);
37
- return (React.createElement(ButtonContainer, __assign({ ref: ref, as: Element, colors: getSecondaryButtonColors(variant, theme), size: size }, elemProps),
38
- icon && size !== 'small' && iconPosition === 'left' && (React.createElement(ButtonLabelIcon, { size: size, iconPosition: iconPosition, icon: icon, shouldMirrorIcon: shouldMirrorIcon })),
46
+ return (React.createElement(ButtonContainer, __assign({ ref: ref, as: Element, colors: getSecondaryButtonColors(variant, theme), size: size, extraStyles: disabledButtonOpacity }, elemProps),
47
+ icon && iconPosition === 'left' && (React.createElement(ButtonLabelIcon, { size: size, iconPosition: iconPosition, icon: icon, shouldMirrorIcon: shouldMirrorIcon })),
39
48
  React.createElement(ButtonLabel, null, children),
40
- dataLabel && size !== 'small' && React.createElement(ButtonLabelData, null, dataLabel),
41
- icon && size !== 'small' && iconPosition === 'right' && (React.createElement(ButtonLabelIcon, { size: size, iconPosition: iconPosition, icon: icon, shouldMirrorIcon: shouldMirrorIcon }))));
49
+ dataLabel && dataLabelSizes.includes(size) && React.createElement(ButtonLabelData, null, dataLabel),
50
+ icon && iconPosition === 'right' && (React.createElement(ButtonLabelIcon, { size: size, iconPosition: iconPosition, icon: icon, shouldMirrorIcon: shouldMirrorIcon }))));
42
51
  },
43
52
  });
44
53
  export var getSecondaryButtonColors = function (variant, theme) {
@@ -74,12 +83,13 @@ export var getSecondaryButtonColors = function (variant, theme) {
74
83
  label: colors.blackPepper400,
75
84
  labelData: colors.blackPepper400,
76
85
  },
86
+ // Identical to 'default' styles. ButtonContainer will set opacity to 40%
77
87
  disabled: {
78
88
  background: 'transparent',
79
- border: 'rgba(30, 30, 30, 0.4)',
80
- icon: 'rgba(30, 30, 30, 0.4)',
81
- label: 'rgba(30, 30, 30, 0.4)',
82
- labelData: 'rgba(30, 30, 30, 0.4)',
89
+ border: colors.blackPepper400,
90
+ icon: colors.blackPepper400,
91
+ label: colors.blackPepper400,
92
+ labelData: colors.blackPepper400,
83
93
  },
84
94
  };
85
95
  case 'inverse':
@@ -115,12 +125,12 @@ export var getSecondaryButtonColors = function (variant, theme) {
115
125
  outerColor: colors.frenchVanilla100,
116
126
  }, theme),
117
127
  },
128
+ // Identical to inverse 'default' styles. ButtonContainer will set opacity to 40%
118
129
  disabled: {
119
130
  background: 'transparent',
120
- border: 'rgba(255, 255, 255, 0.4)',
121
- icon: 'rgba(255, 255, 255, 0.4)',
122
- label: 'rgba(255, 255, 255, 0.4)',
123
- labelData: 'rgba(255, 255, 255, 0.4)',
131
+ border: colors.frenchVanilla100,
132
+ icon: colors.frenchVanilla100,
133
+ label: colors.frenchVanilla100,
124
134
  },
125
135
  };
126
136
  }
@@ -1,14 +1,16 @@
1
1
  import * as React from 'react';
2
2
  import { CSSObject } from '@emotion/core';
3
3
  import { GrowthBehavior, EmotionCanvasTheme, StyledType } from '@workday/canvas-kit-react/common';
4
- import { ButtonColors } from '../types';
4
+ import { ButtonColors, ButtonSizes } from '../types';
5
5
  export interface ButtonContainerProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, GrowthBehavior {
6
6
  colors?: ButtonColors;
7
7
  /**
8
- * The size of the Button.
8
+ * There are four button sizes: `extraSmall`, `small`, `medium`, and `large`.
9
+ * If no size is provided, it will default to `medium`.
10
+ *
9
11
  * @default 'medium'
10
12
  */
11
- size?: 'small' | 'medium' | 'large';
13
+ size?: ButtonSizes;
12
14
  /**
13
15
  * The ref to the button that the styled component renders.
14
16
  */
@@ -1 +1 @@
1
- {"version":3,"file":"ButtonContainer.d.ts","sourceRoot":"","sources":["../../../../../button/lib/parts/ButtonContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;AAExC,OAAO,EACL,cAAc,EAId,kBAAkB,EAClB,UAAU,EACX,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAC,YAAY,EAAC,MAAM,UAAU,CAAC;AAGtC,MAAM,WAAW,oBACf,SAAQ,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EACnD,cAAc;IAChB,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IACpC;;OAEG;IACH,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;IACnC;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,WAAW,CAAC,EAAE,SAAS,CAAC;CACzB;AA8BD,eAAO,MAAM,eAAe,kMAqK3B,CAAC"}
1
+ {"version":3,"file":"ButtonContainer.d.ts","sourceRoot":"","sources":["../../../../../button/lib/parts/ButtonContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;AAExC,OAAO,EACL,cAAc,EAId,kBAAkB,EAClB,UAAU,EACX,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAC,YAAY,EAAE,WAAW,EAAC,MAAM,UAAU,CAAC;AAGnD,MAAM,WAAW,oBACf,SAAQ,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EACnD,cAAc;IAChB,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB;;OAEG;IACH,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;IACnC;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,WAAW,CAAC,EAAE,SAAS,CAAC;CACzB;AA8BD,eAAO,MAAM,eAAe,kMA8K3B,CAAC"}
@@ -45,15 +45,9 @@ export var ButtonContainer = styled('button', {
45
45
  var size = _a.size;
46
46
  switch (size) {
47
47
  case 'large':
48
- return {
49
- fontSize: type.properties.fontSizes[16],
50
- minWidth: '112px',
51
- height: '48px',
52
- padding: "0 " + space.l,
53
- '& > * ': {
54
- margin: "0 " + spaceNumbers.xs / 2 + "px",
55
- },
56
- };
48
+ return __assign(__assign({}, type.levels.body.small), { fontWeight: type.properties.fontWeights.bold, minWidth: '112px', height: '48px', padding: "0 " + space.l, '& > * ': {
49
+ margin: "0 " + spaceNumbers.xxs / 2 + "px",
50
+ } });
57
51
  case 'medium':
58
52
  default:
59
53
  return {
@@ -73,6 +67,14 @@ export var ButtonContainer = styled('button', {
73
67
  margin: "0 " + spaceNumbers.xxxs / 2 + "px",
74
68
  },
75
69
  };
70
+ case 'extraSmall':
71
+ return {
72
+ height: space.m,
73
+ padding: "0 " + space.xs,
74
+ '& > * ': {
75
+ margin: "0 " + spaceNumbers.xxxs / 2 + "px",
76
+ },
77
+ };
76
78
  }
77
79
  }, function (_a) {
78
80
  var grow = _a.grow;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="@emotion/core" />
2
- export declare const ButtonLabel: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "hidden" | "color" | "style" | "title" | "children" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "tabIndex" | "inputMode" | "is" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css">, import("../../../common").EmotionCanvasTheme>;
2
+ export declare const ButtonLabel: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "hidden" | "color" | "style" | "title" | "children" | "css" | "dir" | "slot" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "inputMode" | "is" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture">, import("../../../common").EmotionCanvasTheme>;
3
3
  //# sourceMappingURL=ButtonLabel.d.ts.map
@@ -1,20 +1,23 @@
1
1
  import { CanvasSystemIcon } from '@workday/design-assets-types';
2
+ import { ButtonSizes, IconPositions } from '../types';
2
3
  export interface ButtonLabelIconProps {
3
4
  /**
4
- * The size of the Button.
5
+ * There are four button sizes: `extraSmall`, `small`, `medium`, and `large`.
6
+ *
5
7
  * @default 'medium'
6
8
  */
7
- size?: 'small' | 'medium' | 'large';
9
+ size?: ButtonSizes;
8
10
  /**
9
11
  * The icon of the Button.
10
12
  * Note: not displayed at `small` size
11
13
  */
12
14
  icon?: CanvasSystemIcon;
13
15
  /**
14
- * The position of the TertiaryButton icon.
16
+ * Button icon positions can either be `left` or `right`.
17
+ * If no value is provided, it defaults to `left`.
15
18
  * @default 'left'
16
19
  */
17
- iconPosition?: 'left' | 'right';
20
+ iconPosition?: IconPositions;
18
21
  /**
19
22
  * If set to `true`, transform the icon's x-axis to mirror the graphic
20
23
  * @default false
@@ -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;AAM9D,MAAM,WAAW,oBAAoB;IACnC;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IACpC;;;OAGG;IACH,IAAI,CAAC,EAAE,gBAAgB,CAAC;IACxB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAChC;;;OAGG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAqBD,eAAO,MAAM,eAAe,4GAmB3B,CAAC"}
1
+ {"version":3,"file":"ButtonLabelIcon.d.ts","sourceRoot":"","sources":["../../../../../button/lib/parts/ButtonLabelIcon.tsx"],"names":[],"mappings":"AACA,OAAO,EAAC,gBAAgB,EAAC,MAAM,8BAA8B,CAAC;AAM9D,OAAO,EAAC,WAAW,EAAE,aAAa,EAAC,MAAM,UAAU,CAAC;AACpD,MAAM,WAAW,oBAAoB;IACnC;;;;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;AAuCD,eAAO,MAAM,eAAe,4GAkB3B,CAAC"}
@@ -25,8 +25,30 @@ import { space } from '@workday/canvas-kit-react/tokens';
25
25
  import isPropValid from '@emotion/is-prop-valid';
26
26
  import { SystemIcon } from '@workday/canvas-kit-react/icon';
27
27
  import { styled } from '@workday/canvas-kit-react/common';
28
- var ICON_SIZE = 24;
29
- var SMALL_ICON_SIZE = 20;
28
+ var iconSizes = {
29
+ extraSmall: 18,
30
+ small: 20,
31
+ medium: 20,
32
+ large: 24,
33
+ };
34
+ var getIconPositionStyles = function (_a) {
35
+ var iconPosition = _a.iconPosition, size = _a.size;
36
+ // Adjust margin values for visual balance, large buttons require 8px
37
+ var balancingMargin = size === 'large' ? space.xxs : space.xxxs;
38
+ // iconPosition can only be "right", "left", or undefined (defaults to "left")
39
+ if (iconPosition === 'right') {
40
+ return {
41
+ marginLeft: undefined,
42
+ marginRight: "-" + balancingMargin + " !important",
43
+ };
44
+ }
45
+ else {
46
+ return {
47
+ marginLeft: "-" + balancingMargin + " !important",
48
+ marginRight: undefined,
49
+ };
50
+ }
51
+ };
30
52
  var ButtonLabelIconStyled = styled('span', {
31
53
  shouldForwardProp: function (prop) { return isPropValid(prop) && prop !== 'size'; },
32
54
  })({
@@ -34,23 +56,16 @@ var ButtonLabelIconStyled = styled('span', {
34
56
  }, function (_a) {
35
57
  var size = _a.size;
36
58
  return ({
37
- width: size === 'small' ? SMALL_ICON_SIZE : ICON_SIZE,
38
- height: size === 'small' ? SMALL_ICON_SIZE : ICON_SIZE,
39
- });
40
- }, function (_a) {
41
- var iconPosition = _a.iconPosition;
42
- return ({
43
- marginLeft: iconPosition === 'right' ? undefined : "-" + space.xxxs + " !important",
44
- marginRight: iconPosition === 'right' ? "-" + space.xxxs + " !important" : undefined,
59
+ width: size ? iconSizes[size] : iconSizes.medium,
60
+ height: size ? iconSizes[size] : iconSizes.medium,
45
61
  });
46
- });
62
+ }, getIconPositionStyles);
47
63
  export var ButtonLabelIcon = function (_a) {
48
64
  var icon = _a.icon, size = _a.size, iconPosition = _a.iconPosition, _b = _a.shouldMirrorIcon, shouldMirrorIcon = _b === void 0 ? false : _b, elemProps = __rest(_a, ["icon", "size", "iconPosition", "shouldMirrorIcon"]);
49
- /* istanbul ignore next line for coverage */
50
65
  if (icon === undefined) {
51
66
  return null;
52
67
  }
53
- var iconSize = size === 'small' ? SMALL_ICON_SIZE : undefined;
68
+ var iconSize = size ? iconSizes[size] : undefined;
54
69
  return (React.createElement(ButtonLabelIconStyled, __assign({ iconPosition: iconPosition, size: size }, elemProps),
55
70
  React.createElement(SystemIcon, { size: iconSize, icon: icon, shouldMirror: shouldMirrorIcon })));
56
71
  };
@@ -19,4 +19,12 @@ export interface ButtonColors {
19
19
  };
20
20
  disabled: ButtonStateColors;
21
21
  }
22
+ /**
23
+ * There are four button sizes: `extraSmall`, `small`, `medium`, and `large`.
24
+ * If no size is provided, it will default to `medium`.
25
+ *
26
+ * @default 'medium'
27
+ */
28
+ export declare type ButtonSizes = 'extraSmall' | 'small' | 'medium' | 'large';
29
+ export declare type IconPositions = 'left' | 'right';
22
30
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../button/lib/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;AAExC;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AACD,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,iBAAiB,CAAC;IAC3B,KAAK,EAAE,iBAAiB,CAAC;IACzB,MAAM,EAAE,iBAAiB,CAAC;IAC1B,KAAK,EAAE,iBAAiB,GAAG;QACzB,SAAS,CAAC,EAAE,SAAS,CAAC;KACvB,CAAC;IACF,QAAQ,EAAE,iBAAiB,CAAC;CAC7B"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../button/lib/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;AAExC;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AACD,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,iBAAiB,CAAC;IAC3B,KAAK,EAAE,iBAAiB,CAAC;IACzB,MAAM,EAAE,iBAAiB,CAAC;IAC1B,KAAK,EAAE,iBAAiB,GAAG;QACzB,SAAS,CAAC,EAAE,SAAS,CAAC;KACvB,CAAC;IACF,QAAQ,EAAE,iBAAiB,CAAC;CAC7B;AAED;;;;;GAKG;AACH,oBAAY,WAAW,GAAG,YAAY,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAEtE,oBAAY,aAAa,GAAG,MAAM,GAAG,OAAO,CAAC"}