@workday/canvas-kit-react 7.1.2 → 7.1.5

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 (61) hide show
  1. package/action-bar/lib/ActionBarList.tsx +2 -9
  2. package/action-bar/package.json +2 -1
  3. package/avatar/package.json +2 -1
  4. package/badge/package.json +2 -1
  5. package/banner/package.json +2 -1
  6. package/button/lib/TertiaryButton.tsx +18 -7
  7. package/button/package.json +2 -1
  8. package/card/package.json +2 -1
  9. package/checkbox/package.json +2 -1
  10. package/collection/package.json +2 -1
  11. package/color-picker/package.json +2 -1
  12. package/common/package.json +2 -1
  13. package/dialog/package.json +2 -1
  14. package/disclosure/package.json +2 -1
  15. package/dist/commonjs/action-bar/lib/ActionBarList.d.ts +0 -58
  16. package/dist/commonjs/action-bar/lib/ActionBarList.d.ts.map +1 -1
  17. package/dist/commonjs/action-bar/lib/ActionBarList.js +2 -3
  18. package/dist/commonjs/button/lib/TertiaryButton.d.ts +9 -0
  19. package/dist/commonjs/button/lib/TertiaryButton.d.ts.map +1 -1
  20. package/dist/commonjs/button/lib/TertiaryButton.js +9 -8
  21. package/dist/commonjs/pagination/lib/Pagination/common/useLiveRegion.d.ts +0 -1
  22. package/dist/commonjs/pagination/lib/Pagination/common/useLiveRegion.d.ts.map +1 -1
  23. package/dist/commonjs/pagination/lib/Pagination/common/useLiveRegion.js +1 -1
  24. package/dist/commonjs/radio/lib/RadioGroup.d.ts.map +1 -1
  25. package/dist/commonjs/radio/lib/RadioGroup.js +5 -1
  26. package/dist/es6/action-bar/lib/ActionBarList.d.ts +0 -58
  27. package/dist/es6/action-bar/lib/ActionBarList.d.ts.map +1 -1
  28. package/dist/es6/action-bar/lib/ActionBarList.js +3 -4
  29. package/dist/es6/button/lib/TertiaryButton.d.ts +9 -0
  30. package/dist/es6/button/lib/TertiaryButton.d.ts.map +1 -1
  31. package/dist/es6/button/lib/TertiaryButton.js +9 -8
  32. package/dist/es6/pagination/lib/Pagination/common/useLiveRegion.d.ts +0 -1
  33. package/dist/es6/pagination/lib/Pagination/common/useLiveRegion.d.ts.map +1 -1
  34. package/dist/es6/pagination/lib/Pagination/common/useLiveRegion.js +1 -1
  35. package/dist/es6/radio/lib/RadioGroup.d.ts.map +1 -1
  36. package/dist/es6/radio/lib/RadioGroup.js +5 -1
  37. package/form-field/package.json +2 -1
  38. package/icon/package.json +2 -1
  39. package/layout/package.json +2 -1
  40. package/loading-animation/package.json +2 -1
  41. package/menu/package.json +2 -1
  42. package/modal/package.json +2 -1
  43. package/package.json +5 -5
  44. package/pagination/lib/Pagination/common/useLiveRegion.tsx +0 -2
  45. package/pagination/package.json +2 -1
  46. package/popup/package.json +2 -1
  47. package/radio/lib/RadioGroup.tsx +5 -1
  48. package/radio/package.json +2 -1
  49. package/segmented-control/package.json +2 -1
  50. package/select/package.json +2 -1
  51. package/side-panel/package.json +2 -1
  52. package/skeleton/package.json +2 -1
  53. package/status-indicator/package.json +2 -1
  54. package/switch/package.json +2 -1
  55. package/table/package.json +2 -1
  56. package/tabs/package.json +2 -1
  57. package/text-area/package.json +2 -1
  58. package/text-input/package.json +2 -1
  59. package/toast/package.json +2 -1
  60. package/tokens/package.json +2 -1
  61. package/tooltip/package.json +2 -1
@@ -2,18 +2,13 @@ import * as React from 'react';
2
2
 
3
3
  import {commonColors, colors, space} from '@workday/canvas-kit-react/tokens';
4
4
  import {
5
- composeHooks,
6
5
  createSubcomponent,
7
6
  ExtractProps,
8
7
  styled,
9
8
  StyledType,
10
9
  } from '@workday/canvas-kit-react/common';
11
10
  import {HStack} from '@workday/canvas-kit-react/layout';
12
- import {
13
- useOverflowListMeasure,
14
- useListRenderItems,
15
- useListResetCursorOnBlur,
16
- } from '@workday/canvas-kit-react/collection';
11
+ import {useOverflowListMeasure, useListRenderItems} from '@workday/canvas-kit-react/collection';
17
12
 
18
13
  import {useActionBarModel} from './useActionBarModel';
19
14
  import {ActionBar} from './ActionBar';
@@ -42,12 +37,10 @@ const ResponsiveHStack = styled(HStack)<ActionBarListProps & StyledType>(({theme
42
37
  },
43
38
  }));
44
39
 
45
- export const useActionBarList = composeHooks(useOverflowListMeasure, useListResetCursorOnBlur);
46
-
47
40
  export const ActionBarList = createSubcomponent('div')({
48
41
  displayName: 'ActionBar.List',
49
42
  modelHook: useActionBarModel,
50
- elemPropsHook: useActionBarList,
43
+ elemPropsHook: useOverflowListMeasure,
51
44
  })<ActionBarListProps>(({children, ...elemProps}, Element, model) => {
52
45
  return (
53
46
  <ResponsiveHStack
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "main": "../dist/commonjs/action-bar",
3
3
  "module": "../dist/es6/action-bar",
4
- "sideEffects": false
4
+ "sideEffects": false,
5
+ "types": "../dist/es6/action-bar"
5
6
  }
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "main": "../dist/commonjs/avatar",
3
3
  "module": "../dist/es6/avatar",
4
- "sideEffects": false
4
+ "sideEffects": false,
5
+ "types": "../dist/es6/avatar"
5
6
  }
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "main": "../dist/commonjs/badge",
3
3
  "module": "../dist/es6/badge",
4
- "sideEffects": false
4
+ "sideEffects": false,
5
+ "types": "../dist/es6/badge"
5
6
  }
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "main": "../dist/commonjs/banner",
3
3
  "module": "../dist/es6/banner",
4
- "sideEffects": false
4
+ "sideEffects": false,
5
+ "types": "../dist/es6/banner"
5
6
  }
@@ -44,14 +44,23 @@ export interface TertiaryButtonProps extends Themeable {
44
44
  * @default false
45
45
  */
46
46
  shouldMirrorIcon?: boolean;
47
+ /**
48
+ * If set to `true`, transform text to all letters uppercase
49
+ * @default undefined
50
+ */
47
51
  allCaps?: boolean;
48
52
  children?: React.ReactNode;
53
+ /**
54
+ * If set to `true`, make icon button available to use theme colors instead of default
55
+ * @default false
56
+ */
57
+ isThemeable?: boolean;
49
58
  }
50
59
 
51
60
  const getTertiaryButtonColors = (
52
61
  variant: 'inverse' | undefined,
53
62
  theme: EmotionCanvasTheme,
54
- children: React.ReactNode
63
+ hasThemeStyles: boolean
55
64
  ): ButtonColors => {
56
65
  const {
57
66
  canvas: {
@@ -99,27 +108,27 @@ const getTertiaryButtonColors = (
99
108
  } else {
100
109
  return {
101
110
  default: {
102
- icon: children ? themePrimary.main : colors.blackPepper400,
111
+ icon: hasThemeStyles ? themePrimary.main : colors.blackPepper400,
103
112
  label: themePrimary.main,
104
113
  },
105
114
  hover: {
106
115
  background: colors.soap200,
107
- icon: children ? themePrimary.dark : colors.blackPepper500,
116
+ icon: hasThemeStyles ? themePrimary.dark : colors.blackPepper500,
108
117
  label: themePrimary.dark,
109
118
  },
110
119
  active: {
111
120
  background: colors.soap300,
112
- icon: children ? themePrimary.dark : colors.blackPepper500,
121
+ icon: hasThemeStyles ? themePrimary.dark : colors.blackPepper500,
113
122
  label: themePrimary.dark,
114
123
  },
115
124
  focus: {
116
- icon: children ? themePrimary.main : colors.blackPepper500,
125
+ icon: hasThemeStyles ? themePrimary.main : colors.blackPepper500,
117
126
  label: themePrimary.main,
118
127
  focusRing: focusRing({innerColor: colors.blueberry400}, theme),
119
128
  },
120
129
  disabled: {
121
130
  background: 'transparent',
122
- icon: children ? themePrimary.main : colors.blackPepper400,
131
+ icon: hasThemeStyles ? themePrimary.main : colors.blackPepper400,
123
132
  label: themePrimary.main,
124
133
  },
125
134
  };
@@ -197,6 +206,7 @@ export const TertiaryButton = createComponent('button')({
197
206
  {
198
207
  size = 'medium',
199
208
  iconPosition = 'start',
209
+ isThemeable = false,
200
210
  variant,
201
211
  children,
202
212
  icon,
@@ -208,13 +218,14 @@ export const TertiaryButton = createComponent('button')({
208
218
  Element
209
219
  ) => {
210
220
  const theme = useTheme();
221
+ const hasThemeStyles = !!children || isThemeable;
211
222
 
212
223
  return (
213
224
  <StyledTertiaryButtonContainer
214
225
  ref={ref}
215
226
  as={Element}
216
227
  allCaps={allCaps}
217
- colors={getTertiaryButtonColors(variant, theme, children)}
228
+ colors={getTertiaryButtonColors(variant, theme, hasThemeStyles)}
218
229
  size={size}
219
230
  padding={getPaddingStyles(icon, iconPosition, children, size)}
220
231
  minWidth={getMinWidthStyles(children, size)}
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "main": "../dist/commonjs/button",
3
3
  "module": "../dist/es6/button",
4
- "sideEffects": false
4
+ "sideEffects": false,
5
+ "types": "../dist/es6/button"
5
6
  }
package/card/package.json CHANGED
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "main": "../dist/commonjs/card",
3
3
  "module": "../dist/es6/card",
4
- "sideEffects": false
4
+ "sideEffects": false,
5
+ "types": "../dist/es6/card"
5
6
  }
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "main": "../dist/commonjs/checkbox",
3
3
  "module": "../dist/es6/checkbox",
4
- "sideEffects": false
4
+ "sideEffects": false,
5
+ "types": "../dist/es6/checkbox"
5
6
  }
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "main": "../dist/commonjs/collection",
3
3
  "module": "../dist/es6/collection",
4
- "sideEffects": false
4
+ "sideEffects": false,
5
+ "types": "../dist/es6/collection"
5
6
  }
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "main": "../dist/commonjs/color-picker",
3
3
  "module": "../dist/es6/color-picker",
4
- "sideEffects": false
4
+ "sideEffects": false,
5
+ "types": "../dist/es6/color-picker"
5
6
  }
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "main": "../dist/commonjs/common",
3
3
  "module": "../dist/es6/common",
4
- "sideEffects": false
4
+ "sideEffects": false,
5
+ "types": "../dist/es6/common"
5
6
  }
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "main": "../dist/commonjs/dialog",
3
3
  "module": "../dist/es6/dialog",
4
- "sideEffects": false
4
+ "sideEffects": false,
5
+ "types": "../dist/es6/dialog"
5
6
  }
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "main": "../dist/commonjs/disclosure",
3
3
  "module": "../dist/es6/disclosure",
4
- "sideEffects": false
4
+ "sideEffects": false,
5
+ "types": "../dist/es6/disclosure"
5
6
  }
@@ -13,64 +13,6 @@ export interface ActionBarListProps<T = unknown> extends Partial<ExtractProps<ty
13
13
  */
14
14
  children: ((item: T) => React.ReactNode) | React.ReactNode;
15
15
  }
16
- export declare const useActionBarList: <P extends {}, R>(model: {
17
- state: {
18
- selectedIds: import("../../collection/lib/useSelectionListModel").SelectedIds;
19
- unselectedIds: string[];
20
- cursorId: string;
21
- columnCount: number;
22
- UNSTABLE_virtual: {
23
- virtualItems: import("../../collection/lib/react-virtual").VirtualItem[];
24
- totalSize: number;
25
- scrollToOffset: (index: number, options?: import("../../collection/lib/react-virtual").ScrollToOffsetOptions | undefined) => void;
26
- scrollToIndex: (index: number, options?: import("../../collection/lib/react-virtual").ScrollToIndexOptions | undefined) => void;
27
- measure: () => void;
28
- };
29
- UNSTABLE_defaultItemHeight: number;
30
- containerRef: React.RefObject<HTMLDivElement>;
31
- id: string;
32
- orientation: import("../../collection/lib/useBaseListModel").Orientation;
33
- indexRef: React.MutableRefObject<number>;
34
- nonInteractiveIds: string[];
35
- isVirtualized: boolean;
36
- items: import("../../collection").Item<any>[];
37
- };
38
- events: {
39
- select(data: {
40
- id: string;
41
- }): void;
42
- selectAll(): void;
43
- unselectAll(): void;
44
- registerItem(data: {
45
- item: any;
46
- textValue: string;
47
- }): void;
48
- goTo(data: {
49
- id: string;
50
- }): void;
51
- goToNext(): void;
52
- goToPrevious(): void;
53
- goToPreviousRow(): void;
54
- goToNextRow(): void;
55
- goToFirst(): void;
56
- goToLast(): void;
57
- goToFirstOfRow(): void;
58
- goToLastOfRow(): void;
59
- goToNextPage(): void;
60
- goToPreviousPage(): void;
61
- unregisterItem(data: {
62
- id: string;
63
- }): void;
64
- updateItemHeight(data: {
65
- value: number;
66
- }): void;
67
- };
68
- selection: import("../../collection/lib/useSelectionListModel").SelectionManager;
69
- navigation: import("../../collection/lib/useCursorListModel").NavigationManager;
70
- getId: (item: any) => string;
71
- }, elemProps?: P | undefined, ref?: ((instance: R | null) => void) | React.RefObject<R> | null | undefined) => {} & P & (R extends HTMLOrSVGElement ? {
72
- ref: React.Ref<R>;
73
- } : {});
74
16
  export declare const ActionBarList: import("../../common").ElementComponentM<"div", ActionBarListProps<unknown>, {
75
17
  state: {
76
18
  hiddenIds: string[];
@@ -1 +1 @@
1
- {"version":3,"file":"ActionBarList.d.ts","sourceRoot":"","sources":["../../../../action-bar/lib/ActionBarList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAGL,YAAY,EAGb,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAC,MAAM,EAAC,MAAM,kCAAkC,CAAC;AAWxD,MAAM,WAAW,kBAAkB,CAAC,CAAC,GAAG,OAAO,CAC7C,SAAQ,OAAO,CAAC,YAAY,CAAC,OAAO,MAAM,EAAE,KAAK,CAAC,CAAC;IACnD;;;;;;;;OAQG;IACH,QAAQ,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,KAAK,KAAK,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,SAAS,CAAC;CAC5D;AAWD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAAiE,CAAC;AAE/F,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuBxB,CAAC"}
1
+ {"version":3,"file":"ActionBarList.d.ts","sourceRoot":"","sources":["../../../../action-bar/lib/ActionBarList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAEL,YAAY,EAGb,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAC,MAAM,EAAC,MAAM,kCAAkC,CAAC;AAOxD,MAAM,WAAW,kBAAkB,CAAC,CAAC,GAAG,OAAO,CAC7C,SAAQ,OAAO,CAAC,YAAY,CAAC,OAAO,MAAM,EAAE,KAAK,CAAC,CAAC;IACnD;;;;;;;;OAQG;IACH,QAAQ,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,KAAK,KAAK,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,SAAS,CAAC;CAC5D;AAWD,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuBxB,CAAC"}
@@ -41,7 +41,7 @@ var __rest = (this && this.__rest) || function (s, e) {
41
41
  return t;
42
42
  };
43
43
  Object.defineProperty(exports, "__esModule", { value: true });
44
- exports.ActionBarList = exports.useActionBarList = void 0;
44
+ exports.ActionBarList = void 0;
45
45
  var React = __importStar(require("react"));
46
46
  var tokens_1 = require("@workday/canvas-kit-react/tokens");
47
47
  var common_1 = require("@workday/canvas-kit-react/common");
@@ -61,11 +61,10 @@ var ResponsiveHStack = common_1.styled(layout_1.HStack)(function (_a) {
61
61
  },
62
62
  _b);
63
63
  });
64
- exports.useActionBarList = common_1.composeHooks(collection_1.useOverflowListMeasure, collection_1.useListResetCursorOnBlur);
65
64
  exports.ActionBarList = common_1.createSubcomponent('div')({
66
65
  displayName: 'ActionBar.List',
67
66
  modelHook: useActionBarModel_1.useActionBarModel,
68
- elemPropsHook: exports.useActionBarList,
67
+ elemPropsHook: collection_1.useOverflowListMeasure,
69
68
  })(function (_a, Element, model) {
70
69
  var children = _a.children, elemProps = __rest(_a, ["children"]);
71
70
  return (React.createElement(ResponsiveHStack, __assign({ as: Element, spacing: "s", depth: 1, background: tokens_1.commonColors.background, borderTop: "solid 1px " + tokens_1.colors.soap400, padding: tokens_1.space.s + " " + tokens_1.space.xl + " ", position: "fixed", bottom: 0, left: 0, right: 0 }, elemProps),
@@ -33,8 +33,17 @@ export interface TertiaryButtonProps extends Themeable {
33
33
  * @default false
34
34
  */
35
35
  shouldMirrorIcon?: boolean;
36
+ /**
37
+ * If set to `true`, transform text to all letters uppercase
38
+ * @default undefined
39
+ */
36
40
  allCaps?: boolean;
37
41
  children?: React.ReactNode;
42
+ /**
43
+ * If set to `true`, make icon button available to use theme colors instead of default
44
+ * @default false
45
+ */
46
+ isThemeable?: boolean;
38
47
  }
39
48
  export declare const TertiaryButton: import("../../common").ElementComponent<"button", TertiaryButtonProps>;
40
49
  //# sourceMappingURL=TertiaryButton.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TertiaryButton.d.ts","sourceRoot":"","sources":["../../../../button/lib/TertiaryButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAGL,SAAS,EAKV,MAAM,kCAAkC,CAAC;AAE1C,OAAO,EAAC,gBAAgB,EAAC,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAe,aAAa,EAAE,WAAW,EAAC,MAAM,SAAS,CAAC;AAGjE,MAAM,WAAW,mBAAoB,SAAQ,SAAS;IACpD;;;OAGG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;IAChC;;;;;OAKG;IACH,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB;;;;OAIG;IACH,YAAY,CAAC,EAAE,aAAa,CAAC;IAC7B;;OAEG;IACH,IAAI,CAAC,EAAE,gBAAgB,CAAC;IACxB;;OAEG;IACH;;;OAGG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAiJD,eAAO,MAAM,cAAc,wEAkDzB,CAAC"}
1
+ {"version":3,"file":"TertiaryButton.d.ts","sourceRoot":"","sources":["../../../../button/lib/TertiaryButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAGL,SAAS,EAKV,MAAM,kCAAkC,CAAC;AAE1C,OAAO,EAAC,gBAAgB,EAAC,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAe,aAAa,EAAE,WAAW,EAAC,MAAM,SAAS,CAAC;AAGjE,MAAM,WAAW,mBAAoB,SAAQ,SAAS;IACpD;;;OAGG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;IAChC;;;;;OAKG;IACH,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB;;;;OAIG;IACH,YAAY,CAAC,EAAE,aAAa,CAAC;IAC7B;;OAEG;IACH,IAAI,CAAC,EAAE,gBAAgB,CAAC;IACxB;;OAEG;IACH;;;OAGG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAiJD,eAAO,MAAM,cAAc,wEAoDzB,CAAC"}
@@ -46,7 +46,7 @@ var React = __importStar(require("react"));
46
46
  var common_1 = require("@workday/canvas-kit-react/common");
47
47
  var tokens_1 = require("@workday/canvas-kit-react/tokens");
48
48
  var BaseButton_1 = require("./BaseButton");
49
- var getTertiaryButtonColors = function (variant, theme, children) {
49
+ var getTertiaryButtonColors = function (variant, theme, hasThemeStyles) {
50
50
  var themePrimary = theme.canvas.palette.primary;
51
51
  if (variant === 'inverse') {
52
52
  return {
@@ -86,27 +86,27 @@ var getTertiaryButtonColors = function (variant, theme, children) {
86
86
  else {
87
87
  return {
88
88
  default: {
89
- icon: children ? themePrimary.main : tokens_1.colors.blackPepper400,
89
+ icon: hasThemeStyles ? themePrimary.main : tokens_1.colors.blackPepper400,
90
90
  label: themePrimary.main,
91
91
  },
92
92
  hover: {
93
93
  background: tokens_1.colors.soap200,
94
- icon: children ? themePrimary.dark : tokens_1.colors.blackPepper500,
94
+ icon: hasThemeStyles ? themePrimary.dark : tokens_1.colors.blackPepper500,
95
95
  label: themePrimary.dark,
96
96
  },
97
97
  active: {
98
98
  background: tokens_1.colors.soap300,
99
- icon: children ? themePrimary.dark : tokens_1.colors.blackPepper500,
99
+ icon: hasThemeStyles ? themePrimary.dark : tokens_1.colors.blackPepper500,
100
100
  label: themePrimary.dark,
101
101
  },
102
102
  focus: {
103
- icon: children ? themePrimary.main : tokens_1.colors.blackPepper500,
103
+ icon: hasThemeStyles ? themePrimary.main : tokens_1.colors.blackPepper500,
104
104
  label: themePrimary.main,
105
105
  focusRing: common_1.focusRing({ innerColor: tokens_1.colors.blueberry400 }, theme),
106
106
  },
107
107
  disabled: {
108
108
  background: 'transparent',
109
- icon: children ? themePrimary.main : tokens_1.colors.blackPepper400,
109
+ icon: hasThemeStyles ? themePrimary.main : tokens_1.colors.blackPepper400,
110
110
  label: themePrimary.main,
111
111
  },
112
112
  };
@@ -170,9 +170,10 @@ var getMinWidthStyles = function (children, size) {
170
170
  exports.TertiaryButton = common_1.createComponent('button')({
171
171
  displayName: 'TertiaryButton',
172
172
  Component: function (_a, ref, Element) {
173
- var _b = _a.size, size = _b === void 0 ? 'medium' : _b, _c = _a.iconPosition, iconPosition = _c === void 0 ? 'start' : _c, variant = _a.variant, children = _a.children, icon = _a.icon, _d = _a.shouldMirrorIcon, shouldMirrorIcon = _d === void 0 ? false : _d, allCaps = _a.allCaps, elemProps = __rest(_a, ["size", "iconPosition", "variant", "children", "icon", "shouldMirrorIcon", "allCaps"]);
173
+ var _b = _a.size, size = _b === void 0 ? 'medium' : _b, _c = _a.iconPosition, iconPosition = _c === void 0 ? 'start' : _c, _d = _a.isThemeable, isThemeable = _d === void 0 ? false : _d, variant = _a.variant, children = _a.children, icon = _a.icon, _e = _a.shouldMirrorIcon, shouldMirrorIcon = _e === void 0 ? false : _e, allCaps = _a.allCaps, elemProps = __rest(_a, ["size", "iconPosition", "isThemeable", "variant", "children", "icon", "shouldMirrorIcon", "allCaps"]);
174
174
  var theme = common_1.useTheme();
175
- return (React.createElement(StyledTertiaryButtonContainer, __assign({ ref: ref, as: Element, allCaps: allCaps, colors: getTertiaryButtonColors(variant, theme, children), size: size, padding: getPaddingStyles(icon, iconPosition, children, size), minWidth: getMinWidthStyles(children, size), style: { borderRadius: children ? tokens_1.borderRadius.m : tokens_1.borderRadius.circle } }, elemProps),
175
+ var hasThemeStyles = !!children || isThemeable;
176
+ return (React.createElement(StyledTertiaryButtonContainer, __assign({ ref: ref, as: Element, allCaps: allCaps, colors: getTertiaryButtonColors(variant, theme, hasThemeStyles), size: size, padding: getPaddingStyles(icon, iconPosition, children, size), minWidth: getMinWidthStyles(children, size), style: { borderRadius: children ? tokens_1.borderRadius.m : tokens_1.borderRadius.circle } }, elemProps),
176
177
  icon && iconPosition === 'start' && (React.createElement(BaseButton_1.BaseButton.Icon, { size: size, iconPosition: iconPosition, icon: icon, shouldMirrorIcon: shouldMirrorIcon })),
177
178
  children && React.createElement(StyledButtonLabel, null, children),
178
179
  icon && iconPosition === 'end' && (React.createElement(BaseButton_1.BaseButton.Icon, { size: size, iconPosition: iconPosition, icon: icon, shouldMirrorIcon: shouldMirrorIcon }))));
@@ -1,7 +1,6 @@
1
1
  declare type UseLiveRegionConfig = {
2
2
  'aria-atomic'?: React.AriaAttributes['aria-atomic'];
3
3
  'aria-live'?: 'polite' | 'assertive';
4
- 'aria-relevant'?: React.AriaAttributes['aria-relevant'];
5
4
  role?: 'status' | 'alert' | 'log';
6
5
  shouldAnnounceToScreenReader?: boolean;
7
6
  };
@@ -1 +1 @@
1
- {"version":3,"file":"useLiveRegion.d.ts","sourceRoot":"","sources":["../../../../../../pagination/lib/Pagination/common/useLiveRegion.tsx"],"names":[],"mappings":"AAAA,aAAK,mBAAmB,GAAG;IACzB,aAAa,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,aAAa,CAAC,CAAC;IACpD,WAAW,CAAC,EAAE,QAAQ,GAAG,WAAW,CAAC;IACrC,eAAe,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC,CAAC;IACxD,IAAI,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,KAAK,CAAC;IAClC,4BAA4B,CAAC,EAAE,OAAO,CAAC;CACxC,CAAC;AAEF,wBAAgB,aAAa,CAAC,MAAM,sBAA4B,uBAY/D"}
1
+ {"version":3,"file":"useLiveRegion.d.ts","sourceRoot":"","sources":["../../../../../../pagination/lib/Pagination/common/useLiveRegion.tsx"],"names":[],"mappings":"AAAA,aAAK,mBAAmB,GAAG;IACzB,aAAa,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,aAAa,CAAC,CAAC;IACpD,WAAW,CAAC,EAAE,QAAQ,GAAG,WAAW,CAAC;IACrC,IAAI,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,KAAK,CAAC;IAClC,4BAA4B,CAAC,EAAE,OAAO,CAAC;CACxC,CAAC;AAEF,wBAAgB,aAAa,CAAC,MAAM,sBAA4B,uBAW/D"}
@@ -27,7 +27,7 @@ function useLiveRegion(config) {
27
27
  if (config === void 0) { config = {}; }
28
28
  var _a = config.shouldAnnounceToScreenReader, shouldAnnounceToScreenReader = _a === void 0 ? true : _a, restConfig = __rest(config, ["shouldAnnounceToScreenReader"]);
29
29
  if (shouldAnnounceToScreenReader) {
30
- return __assign({ 'aria-atomic': true, 'aria-live': 'polite', 'aria-relevant': true, role: 'status' }, restConfig);
30
+ return __assign({ 'aria-atomic': true, 'aria-live': 'polite', role: 'status' }, restConfig);
31
31
  }
32
32
  return {};
33
33
  }
@@ -1 +1 @@
1
- {"version":3,"file":"RadioGroup.d.ts","sourceRoot":"","sources":["../../../../radio/lib/RadioGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAc,EAAC,UAAU,EAAC,MAAM,SAAS,CAAC;AAE1C,OAAO,EACL,SAAS,EACT,cAAc,EAGd,SAAS,EACV,MAAM,kCAAkC,CAAC;AAE1C,MAAM,WAAW,eAAgB,SAAQ,SAAS,EAAE,cAAc;IAChE;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,YAAY,CAAC,UAAU,CAAC,EAAE,CAAC;IAC3C;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,KAAK,IAAI,CAAC;CAC7C;AAgCD,cAAM,UAAW,SAAQ,KAAK,CAAC,SAAS,CAAC,eAAe,CAAC;IACvD,MAAM,CAAC,SAAS,mBAAa;IAE7B,MAAM,IAAI,KAAK,CAAC,SAAS;IASzB,OAAO,CAAC,WAAW,CAkBjB;IAEF,OAAO,CAAC,aAAa,CAiBnB;CACH;AAID,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"RadioGroup.d.ts","sourceRoot":"","sources":["../../../../radio/lib/RadioGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAc,EAAC,UAAU,EAAC,MAAM,SAAS,CAAC;AAE1C,OAAO,EACL,SAAS,EACT,cAAc,EAGd,SAAS,EACV,MAAM,kCAAkC,CAAC;AAE1C,MAAM,WAAW,eAAgB,SAAQ,SAAS,EAAE,cAAc;IAChE;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,YAAY,CAAC,UAAU,CAAC,EAAE,CAAC;IAC3C;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,KAAK,IAAI,CAAC;CAC7C;AAoCD,cAAM,UAAW,SAAQ,KAAK,CAAC,SAAS,CAAC,eAAe,CAAC;IACvD,MAAM,CAAC,SAAS,mBAAa;IAE7B,MAAM,IAAI,KAAK,CAAC,SAAS;IASzB,OAAO,CAAC,WAAW,CAkBjB;IAEF,OAAO,CAAC,aAAa,CAiBnB;CACH;AAID,eAAe,UAAU,CAAC"}
@@ -69,8 +69,12 @@ var Container = common_1.styled('div')({
69
69
  margin: "-" + tokens_1.space.xxxs + " -" + tokens_1.space.xs,
70
70
  '& > div': {
71
71
  margin: tokens_1.space.xxs + " " + tokens_1.space.zero,
72
+ alignItems: 'flex-start',
73
+ '> div': {
74
+ flex: '0 0 auto',
75
+ },
72
76
  '&:first-of-type': {
73
- marginTop: tokens_1.space.xxxs,
77
+ marginTop: '6px',
74
78
  },
75
79
  '&:last-child': {
76
80
  marginBottom: tokens_1.space.xxxs,
@@ -13,64 +13,6 @@ export interface ActionBarListProps<T = unknown> extends Partial<ExtractProps<ty
13
13
  */
14
14
  children: ((item: T) => React.ReactNode) | React.ReactNode;
15
15
  }
16
- export declare const useActionBarList: <P extends {}, R>(model: {
17
- state: {
18
- selectedIds: import("../../collection/lib/useSelectionListModel").SelectedIds;
19
- unselectedIds: string[];
20
- cursorId: string;
21
- columnCount: number;
22
- UNSTABLE_virtual: {
23
- virtualItems: import("../../collection/lib/react-virtual").VirtualItem[];
24
- totalSize: number;
25
- scrollToOffset: (index: number, options?: import("../../collection/lib/react-virtual").ScrollToOffsetOptions | undefined) => void;
26
- scrollToIndex: (index: number, options?: import("../../collection/lib/react-virtual").ScrollToIndexOptions | undefined) => void;
27
- measure: () => void;
28
- };
29
- UNSTABLE_defaultItemHeight: number;
30
- containerRef: React.RefObject<HTMLDivElement>;
31
- id: string;
32
- orientation: import("../../collection/lib/useBaseListModel").Orientation;
33
- indexRef: React.MutableRefObject<number>;
34
- nonInteractiveIds: string[];
35
- isVirtualized: boolean;
36
- items: import("../../collection").Item<any>[];
37
- };
38
- events: {
39
- select(data: {
40
- id: string;
41
- }): void;
42
- selectAll(): void;
43
- unselectAll(): void;
44
- registerItem(data: {
45
- item: any;
46
- textValue: string;
47
- }): void;
48
- goTo(data: {
49
- id: string;
50
- }): void;
51
- goToNext(): void;
52
- goToPrevious(): void;
53
- goToPreviousRow(): void;
54
- goToNextRow(): void;
55
- goToFirst(): void;
56
- goToLast(): void;
57
- goToFirstOfRow(): void;
58
- goToLastOfRow(): void;
59
- goToNextPage(): void;
60
- goToPreviousPage(): void;
61
- unregisterItem(data: {
62
- id: string;
63
- }): void;
64
- updateItemHeight(data: {
65
- value: number;
66
- }): void;
67
- };
68
- selection: import("../../collection/lib/useSelectionListModel").SelectionManager;
69
- navigation: import("../../collection/lib/useCursorListModel").NavigationManager;
70
- getId: (item: any) => string;
71
- }, elemProps?: P | undefined, ref?: ((instance: R | null) => void) | React.RefObject<R> | null | undefined) => {} & P & (R extends HTMLOrSVGElement ? {
72
- ref: React.Ref<R>;
73
- } : {});
74
16
  export declare const ActionBarList: import("../../common").ElementComponentM<"div", ActionBarListProps<unknown>, {
75
17
  state: {
76
18
  hiddenIds: string[];
@@ -1 +1 @@
1
- {"version":3,"file":"ActionBarList.d.ts","sourceRoot":"","sources":["../../../../action-bar/lib/ActionBarList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAGL,YAAY,EAGb,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAC,MAAM,EAAC,MAAM,kCAAkC,CAAC;AAWxD,MAAM,WAAW,kBAAkB,CAAC,CAAC,GAAG,OAAO,CAC7C,SAAQ,OAAO,CAAC,YAAY,CAAC,OAAO,MAAM,EAAE,KAAK,CAAC,CAAC;IACnD;;;;;;;;OAQG;IACH,QAAQ,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,KAAK,KAAK,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,SAAS,CAAC;CAC5D;AAWD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAAiE,CAAC;AAE/F,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuBxB,CAAC"}
1
+ {"version":3,"file":"ActionBarList.d.ts","sourceRoot":"","sources":["../../../../action-bar/lib/ActionBarList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAEL,YAAY,EAGb,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAC,MAAM,EAAC,MAAM,kCAAkC,CAAC;AAOxD,MAAM,WAAW,kBAAkB,CAAC,CAAC,GAAG,OAAO,CAC7C,SAAQ,OAAO,CAAC,YAAY,CAAC,OAAO,MAAM,EAAE,KAAK,CAAC,CAAC;IACnD;;;;;;;;OAQG;IACH,QAAQ,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,KAAK,KAAK,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,SAAS,CAAC;CAC5D;AAWD,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuBxB,CAAC"}
@@ -22,9 +22,9 @@ var __rest = (this && this.__rest) || function (s, e) {
22
22
  };
23
23
  import * as React from 'react';
24
24
  import { commonColors, colors, space } from '@workday/canvas-kit-react/tokens';
25
- import { composeHooks, createSubcomponent, styled, } from '@workday/canvas-kit-react/common';
25
+ import { createSubcomponent, styled, } from '@workday/canvas-kit-react/common';
26
26
  import { HStack } from '@workday/canvas-kit-react/layout';
27
- import { useOverflowListMeasure, useListRenderItems, useListResetCursorOnBlur, } from '@workday/canvas-kit-react/collection';
27
+ import { useOverflowListMeasure, useListRenderItems } from '@workday/canvas-kit-react/collection';
28
28
  import { useActionBarModel } from './useActionBarModel';
29
29
  import { ActionBar } from './ActionBar';
30
30
  var ResponsiveHStack = styled(HStack)(function (_a) {
@@ -39,11 +39,10 @@ var ResponsiveHStack = styled(HStack)(function (_a) {
39
39
  },
40
40
  _b);
41
41
  });
42
- export var useActionBarList = composeHooks(useOverflowListMeasure, useListResetCursorOnBlur);
43
42
  export var ActionBarList = createSubcomponent('div')({
44
43
  displayName: 'ActionBar.List',
45
44
  modelHook: useActionBarModel,
46
- elemPropsHook: useActionBarList,
45
+ elemPropsHook: useOverflowListMeasure,
47
46
  })(function (_a, Element, model) {
48
47
  var children = _a.children, elemProps = __rest(_a, ["children"]);
49
48
  return (React.createElement(ResponsiveHStack, __assign({ as: Element, spacing: "s", depth: 1, background: commonColors.background, borderTop: "solid 1px " + colors.soap400, padding: space.s + " " + space.xl + " ", position: "fixed", bottom: 0, left: 0, right: 0 }, elemProps),
@@ -33,8 +33,17 @@ export interface TertiaryButtonProps extends Themeable {
33
33
  * @default false
34
34
  */
35
35
  shouldMirrorIcon?: boolean;
36
+ /**
37
+ * If set to `true`, transform text to all letters uppercase
38
+ * @default undefined
39
+ */
36
40
  allCaps?: boolean;
37
41
  children?: React.ReactNode;
42
+ /**
43
+ * If set to `true`, make icon button available to use theme colors instead of default
44
+ * @default false
45
+ */
46
+ isThemeable?: boolean;
38
47
  }
39
48
  export declare const TertiaryButton: import("../../common").ElementComponent<"button", TertiaryButtonProps>;
40
49
  //# sourceMappingURL=TertiaryButton.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TertiaryButton.d.ts","sourceRoot":"","sources":["../../../../button/lib/TertiaryButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAGL,SAAS,EAKV,MAAM,kCAAkC,CAAC;AAE1C,OAAO,EAAC,gBAAgB,EAAC,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAe,aAAa,EAAE,WAAW,EAAC,MAAM,SAAS,CAAC;AAGjE,MAAM,WAAW,mBAAoB,SAAQ,SAAS;IACpD;;;OAGG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;IAChC;;;;;OAKG;IACH,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB;;;;OAIG;IACH,YAAY,CAAC,EAAE,aAAa,CAAC;IAC7B;;OAEG;IACH,IAAI,CAAC,EAAE,gBAAgB,CAAC;IACxB;;OAEG;IACH;;;OAGG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAiJD,eAAO,MAAM,cAAc,wEAkDzB,CAAC"}
1
+ {"version":3,"file":"TertiaryButton.d.ts","sourceRoot":"","sources":["../../../../button/lib/TertiaryButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAGL,SAAS,EAKV,MAAM,kCAAkC,CAAC;AAE1C,OAAO,EAAC,gBAAgB,EAAC,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAe,aAAa,EAAE,WAAW,EAAC,MAAM,SAAS,CAAC;AAGjE,MAAM,WAAW,mBAAoB,SAAQ,SAAS;IACpD;;;OAGG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;IAChC;;;;;OAKG;IACH,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB;;;;OAIG;IACH,YAAY,CAAC,EAAE,aAAa,CAAC;IAC7B;;OAEG;IACH,IAAI,CAAC,EAAE,gBAAgB,CAAC;IACxB;;OAEG;IACH;;;OAGG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAiJD,eAAO,MAAM,cAAc,wEAoDzB,CAAC"}
@@ -24,7 +24,7 @@ import * as React from 'react';
24
24
  import { focusRing, useTheme, createComponent, styled, } from '@workday/canvas-kit-react/common';
25
25
  import { borderRadius, colors, space } from '@workday/canvas-kit-react/tokens';
26
26
  import { BaseButton } from './BaseButton';
27
- var getTertiaryButtonColors = function (variant, theme, children) {
27
+ var getTertiaryButtonColors = function (variant, theme, hasThemeStyles) {
28
28
  var themePrimary = theme.canvas.palette.primary;
29
29
  if (variant === 'inverse') {
30
30
  return {
@@ -64,27 +64,27 @@ var getTertiaryButtonColors = function (variant, theme, children) {
64
64
  else {
65
65
  return {
66
66
  default: {
67
- icon: children ? themePrimary.main : colors.blackPepper400,
67
+ icon: hasThemeStyles ? themePrimary.main : colors.blackPepper400,
68
68
  label: themePrimary.main,
69
69
  },
70
70
  hover: {
71
71
  background: colors.soap200,
72
- icon: children ? themePrimary.dark : colors.blackPepper500,
72
+ icon: hasThemeStyles ? themePrimary.dark : colors.blackPepper500,
73
73
  label: themePrimary.dark,
74
74
  },
75
75
  active: {
76
76
  background: colors.soap300,
77
- icon: children ? themePrimary.dark : colors.blackPepper500,
77
+ icon: hasThemeStyles ? themePrimary.dark : colors.blackPepper500,
78
78
  label: themePrimary.dark,
79
79
  },
80
80
  focus: {
81
- icon: children ? themePrimary.main : colors.blackPepper500,
81
+ icon: hasThemeStyles ? themePrimary.main : colors.blackPepper500,
82
82
  label: themePrimary.main,
83
83
  focusRing: focusRing({ innerColor: colors.blueberry400 }, theme),
84
84
  },
85
85
  disabled: {
86
86
  background: 'transparent',
87
- icon: children ? themePrimary.main : colors.blackPepper400,
87
+ icon: hasThemeStyles ? themePrimary.main : colors.blackPepper400,
88
88
  label: themePrimary.main,
89
89
  },
90
90
  };
@@ -148,9 +148,10 @@ var getMinWidthStyles = function (children, size) {
148
148
  export var TertiaryButton = createComponent('button')({
149
149
  displayName: 'TertiaryButton',
150
150
  Component: function (_a, ref, Element) {
151
- var _b = _a.size, size = _b === void 0 ? 'medium' : _b, _c = _a.iconPosition, iconPosition = _c === void 0 ? 'start' : _c, variant = _a.variant, children = _a.children, icon = _a.icon, _d = _a.shouldMirrorIcon, shouldMirrorIcon = _d === void 0 ? false : _d, allCaps = _a.allCaps, elemProps = __rest(_a, ["size", "iconPosition", "variant", "children", "icon", "shouldMirrorIcon", "allCaps"]);
151
+ var _b = _a.size, size = _b === void 0 ? 'medium' : _b, _c = _a.iconPosition, iconPosition = _c === void 0 ? 'start' : _c, _d = _a.isThemeable, isThemeable = _d === void 0 ? false : _d, variant = _a.variant, children = _a.children, icon = _a.icon, _e = _a.shouldMirrorIcon, shouldMirrorIcon = _e === void 0 ? false : _e, allCaps = _a.allCaps, elemProps = __rest(_a, ["size", "iconPosition", "isThemeable", "variant", "children", "icon", "shouldMirrorIcon", "allCaps"]);
152
152
  var theme = useTheme();
153
- return (React.createElement(StyledTertiaryButtonContainer, __assign({ ref: ref, as: Element, allCaps: allCaps, colors: getTertiaryButtonColors(variant, theme, children), size: size, padding: getPaddingStyles(icon, iconPosition, children, size), minWidth: getMinWidthStyles(children, size), style: { borderRadius: children ? borderRadius.m : borderRadius.circle } }, elemProps),
153
+ var hasThemeStyles = !!children || isThemeable;
154
+ return (React.createElement(StyledTertiaryButtonContainer, __assign({ ref: ref, as: Element, allCaps: allCaps, colors: getTertiaryButtonColors(variant, theme, hasThemeStyles), size: size, padding: getPaddingStyles(icon, iconPosition, children, size), minWidth: getMinWidthStyles(children, size), style: { borderRadius: children ? borderRadius.m : borderRadius.circle } }, elemProps),
154
155
  icon && iconPosition === 'start' && (React.createElement(BaseButton.Icon, { size: size, iconPosition: iconPosition, icon: icon, shouldMirrorIcon: shouldMirrorIcon })),
155
156
  children && React.createElement(StyledButtonLabel, null, children),
156
157
  icon && iconPosition === 'end' && (React.createElement(BaseButton.Icon, { size: size, iconPosition: iconPosition, icon: icon, shouldMirrorIcon: shouldMirrorIcon }))));
@@ -1,7 +1,6 @@
1
1
  declare type UseLiveRegionConfig = {
2
2
  'aria-atomic'?: React.AriaAttributes['aria-atomic'];
3
3
  'aria-live'?: 'polite' | 'assertive';
4
- 'aria-relevant'?: React.AriaAttributes['aria-relevant'];
5
4
  role?: 'status' | 'alert' | 'log';
6
5
  shouldAnnounceToScreenReader?: boolean;
7
6
  };
@@ -1 +1 @@
1
- {"version":3,"file":"useLiveRegion.d.ts","sourceRoot":"","sources":["../../../../../../pagination/lib/Pagination/common/useLiveRegion.tsx"],"names":[],"mappings":"AAAA,aAAK,mBAAmB,GAAG;IACzB,aAAa,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,aAAa,CAAC,CAAC;IACpD,WAAW,CAAC,EAAE,QAAQ,GAAG,WAAW,CAAC;IACrC,eAAe,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC,CAAC;IACxD,IAAI,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,KAAK,CAAC;IAClC,4BAA4B,CAAC,EAAE,OAAO,CAAC;CACxC,CAAC;AAEF,wBAAgB,aAAa,CAAC,MAAM,sBAA4B,uBAY/D"}
1
+ {"version":3,"file":"useLiveRegion.d.ts","sourceRoot":"","sources":["../../../../../../pagination/lib/Pagination/common/useLiveRegion.tsx"],"names":[],"mappings":"AAAA,aAAK,mBAAmB,GAAG;IACzB,aAAa,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,aAAa,CAAC,CAAC;IACpD,WAAW,CAAC,EAAE,QAAQ,GAAG,WAAW,CAAC;IACrC,IAAI,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,KAAK,CAAC;IAClC,4BAA4B,CAAC,EAAE,OAAO,CAAC;CACxC,CAAC;AAEF,wBAAgB,aAAa,CAAC,MAAM,sBAA4B,uBAW/D"}
@@ -24,7 +24,7 @@ export function useLiveRegion(config) {
24
24
  if (config === void 0) { config = {}; }
25
25
  var _a = config.shouldAnnounceToScreenReader, shouldAnnounceToScreenReader = _a === void 0 ? true : _a, restConfig = __rest(config, ["shouldAnnounceToScreenReader"]);
26
26
  if (shouldAnnounceToScreenReader) {
27
- return __assign({ 'aria-atomic': true, 'aria-live': 'polite', 'aria-relevant': true, role: 'status' }, restConfig);
27
+ return __assign({ 'aria-atomic': true, 'aria-live': 'polite', role: 'status' }, restConfig);
28
28
  }
29
29
  return {};
30
30
  }
@@ -1 +1 @@
1
- {"version":3,"file":"RadioGroup.d.ts","sourceRoot":"","sources":["../../../../radio/lib/RadioGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAc,EAAC,UAAU,EAAC,MAAM,SAAS,CAAC;AAE1C,OAAO,EACL,SAAS,EACT,cAAc,EAGd,SAAS,EACV,MAAM,kCAAkC,CAAC;AAE1C,MAAM,WAAW,eAAgB,SAAQ,SAAS,EAAE,cAAc;IAChE;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,YAAY,CAAC,UAAU,CAAC,EAAE,CAAC;IAC3C;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,KAAK,IAAI,CAAC;CAC7C;AAgCD,cAAM,UAAW,SAAQ,KAAK,CAAC,SAAS,CAAC,eAAe,CAAC;IACvD,MAAM,CAAC,SAAS,mBAAa;IAE7B,MAAM,IAAI,KAAK,CAAC,SAAS;IASzB,OAAO,CAAC,WAAW,CAkBjB;IAEF,OAAO,CAAC,aAAa,CAiBnB;CACH;AAID,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"RadioGroup.d.ts","sourceRoot":"","sources":["../../../../radio/lib/RadioGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAc,EAAC,UAAU,EAAC,MAAM,SAAS,CAAC;AAE1C,OAAO,EACL,SAAS,EACT,cAAc,EAGd,SAAS,EACV,MAAM,kCAAkC,CAAC;AAE1C,MAAM,WAAW,eAAgB,SAAQ,SAAS,EAAE,cAAc;IAChE;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,YAAY,CAAC,UAAU,CAAC,EAAE,CAAC;IAC3C;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,KAAK,IAAI,CAAC;CAC7C;AAoCD,cAAM,UAAW,SAAQ,KAAK,CAAC,SAAS,CAAC,eAAe,CAAC;IACvD,MAAM,CAAC,SAAS,mBAAa;IAE7B,MAAM,IAAI,KAAK,CAAC,SAAS;IASzB,OAAO,CAAC,WAAW,CAkBjB;IAEF,OAAO,CAAC,aAAa,CAiBnB;CACH;AAID,eAAe,UAAU,CAAC"}
@@ -45,8 +45,12 @@ var Container = styled('div')({
45
45
  margin: "-" + space.xxxs + " -" + space.xs,
46
46
  '& > div': {
47
47
  margin: space.xxs + " " + space.zero,
48
+ alignItems: 'flex-start',
49
+ '> div': {
50
+ flex: '0 0 auto',
51
+ },
48
52
  '&:first-of-type': {
49
- marginTop: space.xxxs,
53
+ marginTop: '6px',
50
54
  },
51
55
  '&:last-child': {
52
56
  marginBottom: space.xxxs,
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "main": "../dist/commonjs/form-field",
3
3
  "module": "../dist/es6/form-field",
4
- "sideEffects": false
4
+ "sideEffects": false,
5
+ "types": "../dist/es6/form-field"
5
6
  }
package/icon/package.json CHANGED
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "main": "../dist/commonjs/icon",
3
3
  "module": "../dist/es6/icon",
4
- "sideEffects": false
4
+ "sideEffects": false,
5
+ "types": "../dist/es6/icon"
5
6
  }
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "main": "../dist/commonjs/layout",
3
3
  "module": "../dist/es6/layout",
4
- "sideEffects": false
4
+ "sideEffects": false,
5
+ "types": "../dist/es6/layout"
5
6
  }
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "main": "../dist/commonjs/loading-animation",
3
3
  "module": "../dist/es6/loading-animation",
4
- "sideEffects": false
4
+ "sideEffects": false,
5
+ "types": "../dist/es6/loading-animation"
5
6
  }
package/menu/package.json CHANGED
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "main": "../dist/commonjs/menu",
3
3
  "module": "../dist/es6/menu",
4
- "sideEffects": false
4
+ "sideEffects": false,
5
+ "types": "../dist/es6/menu"
5
6
  }
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "main": "../dist/commonjs/modal",
3
3
  "module": "../dist/es6/modal",
4
- "sideEffects": false
4
+ "sideEffects": false,
5
+ "types": "../dist/es6/modal"
5
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workday/canvas-kit-react",
3
- "version": "7.1.2",
3
+ "version": "7.1.5",
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,9 +49,9 @@
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-labs-react": "^7.1.2",
53
- "@workday/canvas-kit-popup-stack": "^7.1.2",
54
- "@workday/canvas-kit-preview-react": "^7.1.2",
52
+ "@workday/canvas-kit-labs-react": "^7.1.5",
53
+ "@workday/canvas-kit-popup-stack": "^7.1.5",
54
+ "@workday/canvas-kit-preview-react": "^7.1.5",
55
55
  "@workday/canvas-system-icons-web": "^3.0.0",
56
56
  "@workday/design-assets-types": "^0.2.8",
57
57
  "chroma-js": "^2.1.0",
@@ -70,5 +70,5 @@
70
70
  "@workday/canvas-accent-icons-web": "^3.0.0",
71
71
  "@workday/canvas-applet-icons-web": "^2.0.0"
72
72
  },
73
- "gitHead": "3af79a1d78abc4335e0b94fcedfbd13c5d6b34bb"
73
+ "gitHead": "ee9ea420cc931e30280810b0268a6861d022d2f3"
74
74
  }
@@ -1,7 +1,6 @@
1
1
  type UseLiveRegionConfig = {
2
2
  'aria-atomic'?: React.AriaAttributes['aria-atomic'];
3
3
  'aria-live'?: 'polite' | 'assertive';
4
- 'aria-relevant'?: React.AriaAttributes['aria-relevant'];
5
4
  role?: 'status' | 'alert' | 'log';
6
5
  shouldAnnounceToScreenReader?: boolean;
7
6
  };
@@ -12,7 +11,6 @@ export function useLiveRegion(config = {} as UseLiveRegionConfig) {
12
11
  return {
13
12
  'aria-atomic': true,
14
13
  'aria-live': 'polite',
15
- 'aria-relevant': true,
16
14
  role: 'status',
17
15
  ...restConfig,
18
16
  } as UseLiveRegionConfig;
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "main": "../dist/commonjs/pagination",
3
3
  "module": "../dist/es6/pagination",
4
- "sideEffects": false
4
+ "sideEffects": false,
5
+ "types": "../dist/es6/pagination"
5
6
  }
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "main": "../dist/commonjs/popup",
3
3
  "module": "../dist/es6/popup",
4
- "sideEffects": false
4
+ "sideEffects": false,
5
+ "types": "../dist/es6/popup"
5
6
  }
@@ -42,8 +42,12 @@ const Container = styled('div')<Pick<RadioGroupProps, 'error' | 'grow' | 'theme'
42
42
  margin: `-${space.xxxs} -${space.xs}`,
43
43
  '& > div': {
44
44
  margin: `${space.xxs} ${space.zero}`,
45
+ alignItems: 'flex-start',
46
+ '> div': {
47
+ flex: '0 0 auto',
48
+ },
45
49
  '&:first-of-type': {
46
- marginTop: space.xxxs,
50
+ marginTop: '6px',
47
51
  },
48
52
  '&:last-child': {
49
53
  marginBottom: space.xxxs,
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "main": "../dist/commonjs/radio",
3
3
  "module": "../dist/es6/radio",
4
- "sideEffects": false
4
+ "sideEffects": false,
5
+ "types": "../dist/es6/radio"
5
6
  }
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "main": "../dist/commonjs/segmented-control",
3
3
  "module": "../dist/es6/segmented-control",
4
- "sideEffects": false
4
+ "sideEffects": false,
5
+ "types": "../dist/es6/segmented-control"
5
6
  }
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "main": "../dist/commonjs/select",
3
3
  "module": "../dist/es6/select",
4
- "sideEffects": false
4
+ "sideEffects": false,
5
+ "types": "../dist/es6/select"
5
6
  }
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "main": "../dist/commonjs/side-panel",
3
3
  "module": "../dist/es6/side-panel",
4
- "sideEffects": false
4
+ "sideEffects": false,
5
+ "types": "../dist/es6/side-panel"
5
6
  }
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "main": "../dist/commonjs/skeleton",
3
3
  "module": "../dist/es6/skeleton",
4
- "sideEffects": false
4
+ "sideEffects": false,
5
+ "types": "../dist/es6/skeleton"
5
6
  }
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "main": "../dist/commonjs/status-indicator",
3
3
  "module": "../dist/es6/status-indicator",
4
- "sideEffects": false
4
+ "sideEffects": false,
5
+ "types": "../dist/es6/status-indicator"
5
6
  }
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "main": "../dist/commonjs/switch",
3
3
  "module": "../dist/es6/switch",
4
- "sideEffects": false
4
+ "sideEffects": false,
5
+ "types": "../dist/es6/switch"
5
6
  }
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "main": "../dist/commonjs/table",
3
3
  "module": "../dist/es6/table",
4
- "sideEffects": false
4
+ "sideEffects": false,
5
+ "types": "../dist/es6/table"
5
6
  }
package/tabs/package.json CHANGED
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "main": "../dist/commonjs/tabs",
3
3
  "module": "../dist/es6/tabs",
4
- "sideEffects": false
4
+ "sideEffects": false,
5
+ "types": "../dist/es6/tabs"
5
6
  }
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "main": "../dist/commonjs/text-area",
3
3
  "module": "../dist/es6/text-area",
4
- "sideEffects": false
4
+ "sideEffects": false,
5
+ "types": "../dist/es6/text-area"
5
6
  }
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "main": "../dist/commonjs/text-input",
3
3
  "module": "../dist/es6/text-input",
4
- "sideEffects": false
4
+ "sideEffects": false,
5
+ "types": "../dist/es6/text-input"
5
6
  }
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "main": "../dist/commonjs/toast",
3
3
  "module": "../dist/es6/toast",
4
- "sideEffects": false
4
+ "sideEffects": false,
5
+ "types": "../dist/es6/toast"
5
6
  }
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "main": "../dist/commonjs/tokens",
3
3
  "module": "../dist/es6/tokens",
4
- "sideEffects": false
4
+ "sideEffects": false,
5
+ "types": "../dist/es6/tokens"
5
6
  }
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "main": "../dist/commonjs/tooltip",
3
3
  "module": "../dist/es6/tooltip",
4
- "sideEffects": false
4
+ "sideEffects": false,
5
+ "types": "../dist/es6/tooltip"
5
6
  }