@workday/canvas-kit-react 8.0.0-alpha.123-next.3 → 8.0.0-alpha.138-next.6

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 (122) 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/index.ts +2 -0
  11. package/collection/lib/useBaseListModel.tsx +1 -1
  12. package/collection/lib/useCursorListModel.tsx +88 -20
  13. package/collection/lib/useGridModel.ts +34 -0
  14. package/collection/lib/useListItemRovingFocus.tsx +6 -4
  15. package/collection/package.json +2 -1
  16. package/color-picker/package.json +2 -1
  17. package/common/package.json +2 -1
  18. package/dialog/package.json +2 -1
  19. package/disclosure/package.json +2 -1
  20. package/dist/commonjs/action-bar/lib/ActionBarList.d.ts +0 -58
  21. package/dist/commonjs/action-bar/lib/ActionBarList.d.ts.map +1 -1
  22. package/dist/commonjs/action-bar/lib/ActionBarList.js +2 -3
  23. package/dist/commonjs/button/lib/TertiaryButton.d.ts +9 -0
  24. package/dist/commonjs/button/lib/TertiaryButton.d.ts.map +1 -1
  25. package/dist/commonjs/button/lib/TertiaryButton.js +9 -8
  26. package/dist/commonjs/collection/index.d.ts +2 -0
  27. package/dist/commonjs/collection/index.d.ts.map +1 -1
  28. package/dist/commonjs/collection/index.js +5 -1
  29. package/dist/commonjs/collection/lib/useBaseListModel.js +1 -1
  30. package/dist/commonjs/collection/lib/useCursorListModel.d.ts +64 -101
  31. package/dist/commonjs/collection/lib/useCursorListModel.d.ts.map +1 -1
  32. package/dist/commonjs/collection/lib/useCursorListModel.js +64 -23
  33. package/dist/commonjs/collection/lib/useGridModel.d.ts +955 -0
  34. package/dist/commonjs/collection/lib/useGridModel.d.ts.map +1 -0
  35. package/dist/commonjs/collection/lib/useGridModel.js +52 -0
  36. package/dist/commonjs/collection/lib/useListItemRovingFocus.d.ts.map +1 -1
  37. package/dist/commonjs/collection/lib/useListItemRovingFocus.js +6 -4
  38. package/dist/commonjs/layout/lib/utils/border.d.ts +8 -8
  39. package/dist/commonjs/layout/lib/utils/border.d.ts.map +1 -1
  40. package/dist/commonjs/layout/lib/utils/flex.d.ts +7 -7
  41. package/dist/commonjs/layout/lib/utils/flex.d.ts.map +1 -1
  42. package/dist/commonjs/layout/lib/utils/flexItem.d.ts +4 -4
  43. package/dist/commonjs/layout/lib/utils/flexItem.d.ts.map +1 -1
  44. package/dist/commonjs/layout/lib/utils/layout.d.ts +7 -7
  45. package/dist/commonjs/layout/lib/utils/layout.d.ts.map +1 -1
  46. package/dist/commonjs/layout/lib/utils/position.d.ts +3 -3
  47. package/dist/commonjs/layout/lib/utils/position.d.ts.map +1 -1
  48. package/dist/commonjs/pagination/lib/Pagination/common/useLiveRegion.d.ts +0 -1
  49. package/dist/commonjs/pagination/lib/Pagination/common/useLiveRegion.d.ts.map +1 -1
  50. package/dist/commonjs/pagination/lib/Pagination/common/useLiveRegion.js +1 -1
  51. package/dist/commonjs/radio/lib/RadioGroup.d.ts.map +1 -1
  52. package/dist/commonjs/radio/lib/RadioGroup.js +5 -1
  53. package/dist/es6/action-bar/lib/ActionBarList.d.ts +0 -58
  54. package/dist/es6/action-bar/lib/ActionBarList.d.ts.map +1 -1
  55. package/dist/es6/action-bar/lib/ActionBarList.js +3 -4
  56. package/dist/es6/button/lib/TertiaryButton.d.ts +9 -0
  57. package/dist/es6/button/lib/TertiaryButton.d.ts.map +1 -1
  58. package/dist/es6/button/lib/TertiaryButton.js +9 -8
  59. package/dist/es6/collection/index.d.ts +2 -0
  60. package/dist/es6/collection/index.d.ts.map +1 -1
  61. package/dist/es6/collection/index.js +2 -0
  62. package/dist/es6/collection/lib/useBaseListModel.js +1 -1
  63. package/dist/es6/collection/lib/useCursorListModel.d.ts +64 -101
  64. package/dist/es6/collection/lib/useCursorListModel.d.ts.map +1 -1
  65. package/dist/es6/collection/lib/useCursorListModel.js +64 -23
  66. package/dist/es6/collection/lib/useGridModel.d.ts +955 -0
  67. package/dist/es6/collection/lib/useGridModel.d.ts.map +1 -0
  68. package/dist/es6/collection/lib/useGridModel.js +49 -0
  69. package/dist/es6/collection/lib/useListItemRovingFocus.d.ts.map +1 -1
  70. package/dist/es6/collection/lib/useListItemRovingFocus.js +6 -4
  71. package/dist/es6/layout/lib/utils/border.d.ts +8 -8
  72. package/dist/es6/layout/lib/utils/border.d.ts.map +1 -1
  73. package/dist/es6/layout/lib/utils/flex.d.ts +7 -7
  74. package/dist/es6/layout/lib/utils/flex.d.ts.map +1 -1
  75. package/dist/es6/layout/lib/utils/flexItem.d.ts +4 -4
  76. package/dist/es6/layout/lib/utils/flexItem.d.ts.map +1 -1
  77. package/dist/es6/layout/lib/utils/layout.d.ts +7 -7
  78. package/dist/es6/layout/lib/utils/layout.d.ts.map +1 -1
  79. package/dist/es6/layout/lib/utils/position.d.ts +3 -3
  80. package/dist/es6/layout/lib/utils/position.d.ts.map +1 -1
  81. package/dist/es6/pagination/lib/Pagination/common/useLiveRegion.d.ts +0 -1
  82. package/dist/es6/pagination/lib/Pagination/common/useLiveRegion.d.ts.map +1 -1
  83. package/dist/es6/pagination/lib/Pagination/common/useLiveRegion.js +1 -1
  84. package/dist/es6/radio/lib/RadioGroup.d.ts.map +1 -1
  85. package/dist/es6/radio/lib/RadioGroup.js +5 -1
  86. package/form-field/package.json +2 -1
  87. package/icon/package.json +2 -1
  88. package/layout/lib/utils/border.ts +8 -8
  89. package/layout/lib/utils/flex.ts +7 -14
  90. package/layout/lib/utils/flexItem.ts +4 -4
  91. package/layout/lib/utils/layout.ts +7 -14
  92. package/layout/lib/utils/position.ts +3 -3
  93. package/layout/package.json +2 -1
  94. package/loading-animation/package.json +2 -1
  95. package/menu/package.json +2 -1
  96. package/modal/package.json +2 -1
  97. package/package.json +6 -5
  98. package/pagination/lib/Pagination/common/useLiveRegion.tsx +0 -2
  99. package/pagination/package.json +2 -1
  100. package/popup/package.json +2 -1
  101. package/radio/lib/RadioGroup.tsx +5 -1
  102. package/radio/package.json +2 -1
  103. package/segmented-control/package.json +2 -1
  104. package/select/package.json +2 -1
  105. package/side-panel/package.json +2 -1
  106. package/skeleton/package.json +2 -1
  107. package/status-indicator/package.json +2 -1
  108. package/switch/package.json +2 -1
  109. package/table/package.json +2 -1
  110. package/tabs/package.json +2 -1
  111. package/text-area/package.json +2 -1
  112. package/text-input/package.json +2 -1
  113. package/toast/package.json +2 -1
  114. package/tokens/package.json +2 -1
  115. package/tooltip/package.json +2 -1
  116. package/dist/commonjs/layout/lib/utils/types.d.ts +0 -30
  117. package/dist/commonjs/layout/lib/utils/types.d.ts.map +0 -1
  118. package/dist/commonjs/layout/lib/utils/types.js +0 -4
  119. package/dist/es6/layout/lib/utils/types.d.ts +0 -30
  120. package/dist/es6/layout/lib/utils/types.d.ts.map +0 -1
  121. package/dist/es6/layout/lib/utils/types.js +0 -3
  122. package/layout/lib/utils/types.ts +0 -199
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useGridModel.d.ts","sourceRoot":"","sources":["../../../../collection/lib/useGridModel.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,YAAY;IAGrB;;;;;;;;;OASG;;;;;;;;;;;;;;IAIH;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAfH;;;;;;;;;OASG;;;;;;;;;;;;;;IAIH;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EASL,CAAC"}
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __rest = (this && this.__rest) || function (s, e) {
14
+ var t = {};
15
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
16
+ t[p] = s[p];
17
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
18
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
19
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
20
+ t[p[i]] = s[p[i]];
21
+ }
22
+ return t;
23
+ };
24
+ Object.defineProperty(exports, "__esModule", { value: true });
25
+ exports.useGridModel = void 0;
26
+ var common_1 = require("@workday/canvas-kit-react/common");
27
+ var useCursorListModel_1 = require("./useCursorListModel");
28
+ var useListModel_1 = require("./useListModel");
29
+ var _a = useListModel_1.useListModel.defaultConfig, columnCount = _a.columnCount, orientation = _a.orientation, defaultConfig = __rest(_a, ["columnCount", "orientation"]);
30
+ exports.useGridModel = common_1.createModelHook({
31
+ defaultConfig: __assign(__assign({}, defaultConfig), {
32
+ /**
33
+ * Controls the state changes when the user sends navigation events to the model. For example,
34
+ * when the user hits the "right" arrow, a behavior hook will determine directionality
35
+ * (left-to-right or right-to-left) and call the correct navigation method. In our example, a
36
+ * left-to-right language would send a `getNext`. The navigation manager may return the next
37
+ * item in the list. Different managers can be created for slightly different use cases. The
38
+ * default navigation manager will stop when the end of a row/column is detected. For example,
39
+ * `getNext` will return the same item the cursor was previously on if the cursor is on the last
40
+ * item of a row.
41
+ */
42
+ navigation: useCursorListModel_1.navigationManager }),
43
+ requiredConfig: __assign({
44
+ /**
45
+ * The number of columns represented in a grid
46
+ */
47
+ columnCount: 1 }, useListModel_1.useListModel.requiredConfig),
48
+ contextOverride: useListModel_1.useListModel.Context,
49
+ })(function (config) {
50
+ var list = useListModel_1.useListModel(config);
51
+ return list;
52
+ });
@@ -1 +1 @@
1
- {"version":3,"file":"useListItemRovingFocus.d.ts","sourceRoot":"","sources":["../../../../collection/lib/useListItemRovingFocus.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;CAqBpB,CAAC;AA+BX;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAqCZ,mBAAmB;;;;;;;;;OA6CzC,CAAC"}
1
+ {"version":3,"file":"useListItemRovingFocus.d.ts","sourceRoot":"","sources":["../../../../collection/lib/useListItemRovingFocus.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;CAqBpB,CAAC;AA+BX;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAqCZ,mBAAmB;;;;;;;;;OA+CzC,CAAC"}
@@ -100,10 +100,12 @@ exports.useListItemRovingFocus = common_1.createElemPropsHook(useCursorListModel
100
100
  if (event.ctrlKey) {
101
101
  for (var key in ctrlKeyMap) {
102
102
  if (hasOwnKey(ctrlKeyMap, key)) {
103
- keyDownRef.current = true;
104
- (_a = events[ctrlKeyMap[key]]) === null || _a === void 0 ? void 0 : _a.call(events);
105
- event.preventDefault();
106
- return;
103
+ if (event.key === key) {
104
+ keyDownRef.current = true;
105
+ (_a = events[ctrlKeyMap[key]]) === null || _a === void 0 ? void 0 : _a.call(events);
106
+ event.preventDefault();
107
+ return;
108
+ }
107
109
  }
108
110
  }
109
111
  }
@@ -1,6 +1,6 @@
1
1
  import { CanvasBorderRadiusKeys, CanvasColor } from '@workday/canvas-kit-react/tokens';
2
2
  import { PartialEmotionCanvasTheme } from '@workday/canvas-kit-react/common';
3
- import { PropertyBorder } from './types';
3
+ import { Property } from 'csstype';
4
4
  /** style props to set the border properties */
5
5
  export declare type BorderShorthandStyleProps = {
6
6
  /** sets `border` property */
@@ -43,15 +43,15 @@ export declare type BorderRadiusStyleProps = {
43
43
  /** style props to set the border style properties */
44
44
  export declare type BorderLineStyleProps = {
45
45
  /** sets `border-style` property */
46
- borderStyle?: PropertyBorder;
46
+ borderStyle?: Property.Border;
47
47
  /** sets `border-top-style` property */
48
- borderTopStyle?: PropertyBorder;
48
+ borderTopStyle?: Property.Border;
49
49
  /** sets `border-right-style` property (no bidirectional support) */
50
- borderRightStyle?: PropertyBorder;
50
+ borderRightStyle?: Property.Border;
51
51
  /** sets `border-bottom-style` property */
52
- borderBottomStyle?: PropertyBorder;
52
+ borderBottomStyle?: Property.Border;
53
53
  /** sets `border-left-style` property (no bidirectional support) */
54
- borderLeftStyle?: PropertyBorder;
54
+ borderLeftStyle?: Property.Border;
55
55
  };
56
56
  /** style props to set the border width properties */
57
57
  export declare type BorderWidthStyleProps = {
@@ -72,7 +72,7 @@ export declare type BorderLogicalStyleProps = {
72
72
  /** sets `border-left-color` property (bidirectional support) */
73
73
  borderInlineStartColor?: CanvasColor | (string & {});
74
74
  /** sets `border-left-style` property (bidirectional support) */
75
- borderInlineStartStyle?: PropertyBorder;
75
+ borderInlineStartStyle?: Property.Border;
76
76
  /** sets `border-left-width` property (bidirectional support) */
77
77
  borderInlineStartWidth?: string | number;
78
78
  /** sets `border-right` property (bidirectional support) */
@@ -80,7 +80,7 @@ export declare type BorderLogicalStyleProps = {
80
80
  /** sets `border-right-color` property (bidirectional support) */
81
81
  borderInlineEndColor?: CanvasColor | (string & {});
82
82
  /** sets `border-right-style` property (bidirectional support) */
83
- borderInlineEndStyle?: PropertyBorder;
83
+ borderInlineEndStyle?: Property.Border;
84
84
  /** sets `border-right-width` property (bidirectional support) */
85
85
  borderInlineEndWidth?: string | number;
86
86
  };
@@ -1 +1 @@
1
- {"version":3,"file":"border.d.ts","sourceRoot":"","sources":["../../../../../layout/lib/utils/border.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,sBAAsB,EAEtB,WAAW,EACZ,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAEL,yBAAyB,EAE1B,MAAM,kCAAkC,CAAC;AAE1C,OAAO,EAAC,cAAc,EAAC,MAAM,SAAS,CAAC;AAEvC,+CAA+C;AAC/C,oBAAY,yBAAyB,GAAG;IACtC,6BAA6B;IAC7B,M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ent, PropertyJustifyItems, PropertyJustifyContent, PropertyFlexWrap, PropertyFlexDirection } from './types';
1
+ import { Property } from 'csstype';
2
2
  /** style props to for flexbox container properties */
3
3
  export declare type FlexStyleProps = {
4
4
  /** sets `align-items` property */
5
- alignItems?: PropertyAlignItems;
5
+ alignItems?: Property.AlignItems;
6
6
  /** sets `align-content` property */
7
- alignContent?: PropertyAlignContent;
7
+ alignContent?: Property.AlignContent;
8
8
  /**
9
9
  * sets `display` property
10
10
  * @default 'flex'
11
11
  * */
12
12
  display?: 'flex' | 'inline-flex';
13
13
  /** sets `justify-items` property */
14
- justifyItems?: PropertyJustifyItems;
14
+ justifyItems?: Property.JustifyItems;
15
15
  /** sets `justify-content` property */
16
- justifyContent?: PropertyJustifyContent;
16
+ justifyContent?: Property.JustifyContent;
17
17
  /** sets `flex-wrap` property */
18
- flexWrap?: PropertyFlexWrap;
18
+ flexWrap?: Property.FlexWrap;
19
19
  /** sets `flex-direction` property */
20
- flexDirection?: PropertyFlexDirection;
20
+ flexDirection?: Property.FlexDirection;
21
21
  };
22
22
  /**
23
23
  * A style prop function that takes component props and returns flexbox styles.
@@ -1 +1 @@
1
- {"version":3,"file":"flex.d.ts","sourceRoot":"","sources":["../../../../../layout/lib/utils/flex.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,oBAAoB,EACpB,oBAAoB,EACpB,sBAAsB,EACtB,gBAAgB,EAChB,qBAAqB,EACtB,MAAM,SAAS,CAAC;AAEjB,sDAAsD;AACtD,oBAAY,cAAc,GAAG;IAC3B,kCAAkC;IAClC,UAAU,CAAC,EAAE,kBAAkB,CAAC;IAChC,oCAAoC;IACpC,YAAY,CAAC,EAAE,oBAAoB,CAAC;IACpC;;;SAGK;IACL,OAAO,CAAC,EAAE,MAAM,GAAG,aAAa,CAAC;IACjC,oCAAoC;IACpC,YAAY,CAAC,EAAE,oBAAoB,CAAC;IACpC,sCAAsC;IACtC,cAAc,CAAC,EAAE,sBAAsB,CAAC;IACxC,gCAAgC;IAChC,QAAQ,CAAC,EAAE,gBAAgB,CAAC;IAC5B,qCAAqC;IACrC,aAAa,CAAC,EAAE,qBAAqB,CAAC;CACvC,CAAC;AAYF;;;;;;;;;;;;GAYG;AACH,wBAAgB,IAAI,CAAC,CAAC,SAAS,cAAc,EAAE,KAAK,EAAE,CAAC,MAWtD"}
1
+ {"version":3,"file":"flex.d.ts","sourceRoot":"","sources":["../../../../../layout/lib/utils/flex.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,SAAS,CAAC;AAEjC,sDAAsD;AACtD,oBAAY,cAAc,GAAG;IAC3B,kCAAkC;IAClC,UAAU,CAAC,EAAE,QAAQ,CAAC,UAAU,CAAC;IACjC,oCAAoC;IACpC,YAAY,CAAC,EAAE,QAAQ,CAAC,YAAY,CAAC;IACrC;;;SAGK;IACL,OAAO,CAAC,EAAE,MAAM,GAAG,aAAa,CAAC;IACjC,oCAAoC;IACpC,YAAY,CAAC,EAAE,QAAQ,CAAC,YAAY,CAAC;IACrC,sCAAsC;IACtC,cAAc,CAAC,EAAE,QAAQ,CAAC,cAAc,CAAC;IACzC,gCAAgC;IAChC,QAAQ,CAAC,EAAE,QAAQ,CAAC,QAAQ,CAAC;IAC7B,qCAAqC;IACrC,aAAa,CAAC,EAAE,QAAQ,CAAC,aAAa,CAAC;CACxC,CAAC;AAYF;;;;;;;;;;;;GAYG;AACH,wBAAgB,IAAI,CAAC,CAAC,SAAS,cAAc,EAAE,KAAK,EAAE,CAAC,MAWtD"}
@@ -1,4 +1,4 @@
1
- import { PropertyJustifySelf, PropertyAlignSelf, PropertyOrder } from './types';
1
+ import { Property } from 'csstype';
2
2
  /** style props to for flexbox item properties */
3
3
  export declare type FlexItemStyleProps = {
4
4
  /** sets `flex` property */
@@ -10,11 +10,11 @@ export declare type FlexItemStyleProps = {
10
10
  /** sets `flex-basis` property */
11
11
  flexBasis?: number | string;
12
12
  /** sets `justify-self` property */
13
- justifySelf?: PropertyJustifySelf;
13
+ justifySelf?: Property.JustifySelf;
14
14
  /** sets `align-self` property */
15
- alignSelf?: PropertyAlignSelf;
15
+ alignSelf?: Property.AlignSelf;
16
16
  /** sets `order` property */
17
- order?: PropertyOrder;
17
+ order?: Property.Order;
18
18
  };
19
19
  /**
20
20
  * A style prop function that takes component props and returns flexbox item styles.
@@ -1 +1 @@
1
- {"version":3,"file":"flexItem.d.ts","sourceRoot":"","sources":["../../../../../layout/lib/utils/flexItem.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,EAAE,iBAAiB,EAAE,aAAa,EAAC,MAAM,SAAS,CAAC;AAE9E,iDAAiD;AACjD,oBAAY,kBAAkB,GAAG;IAC/B,2BAA2B;IAC3B,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,gCAAgC;IAChC,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,kCAAkC;IAClC,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B,iCAAiC;IACjC,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,mCAAmC;IACnC,WAAW,CAAC,EAAE,mBAAmB,CAAC;IAClC,iCAAiC;IACjC,SAAS,CAAC,EAAE,iBAAiB,CAAC;IAC9B,4BAA4B;IAC5B,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB,CAAC;AAaF;;;;;;;;;;;;GAYG;AACH,wBAAgB,QAAQ,CAAC,CAAC,SAAS,kBAAkB,EAAE,KAAK,EAAE,CAAC,MAW9D"}
1
+ {"version":3,"file":"flexItem.d.ts","sourceRoot":"","sources":["../../../../../layout/lib/utils/flexItem.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,SAAS,CAAC;AAEjC,iDAAiD;AACjD,oBAAY,kBAAkB,GAAG;IAC/B,2BAA2B;IAC3B,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,gCAAgC;IAChC,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,kCAAkC;IAClC,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B,iCAAiC;IACjC,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,mCAAmC;IACnC,WAAW,CAAC,EAAE,QAAQ,CAAC,WAAW,CAAC;IACnC,iCAAiC;IACjC,SAAS,CAAC,EAAE,QAAQ,CAAC,SAAS,CAAC;IAC/B,4BAA4B;IAC5B,KAAK,CAAC,EAAE,QAAQ,CAAC,KAAK,CAAC;CACxB,CAAC;AAaF;;;;;;;;;;;;GAYG;AACH,wBAAgB,QAAQ,CAAC,CAAC,SAAS,kBAAkB,EAAE,KAAK,EAAE,CAAC,MAW9D"}
@@ -1,12 +1,12 @@
1
- import { PropertyDisplay, PropertyListStyle, PropertyOverflow, PropertyOverflowX, PropertyOverflowY, PropertyVerticalAlign } from './types';
1
+ import { Property } from 'csstype';
2
2
  /** style props to for layout properties */
3
3
  export declare type LayoutStyleProps = {
4
4
  /** sets `display` property */
5
- display?: PropertyDisplay;
5
+ display?: Property.Display;
6
6
  /** sets `height` property */
7
7
  height?: number | string;
8
8
  /** sets `list-style property */
9
- listStyle?: PropertyListStyle;
9
+ listStyle?: Property.ListStyle;
10
10
  /** sets `max-height` property */
11
11
  maxHeight?: number | string;
12
12
  /** sets `max-width` property */
@@ -16,13 +16,13 @@ export declare type LayoutStyleProps = {
16
16
  /** sets `min-width` property */
17
17
  minWidth?: number | string;
18
18
  /** sets `overflow` property */
19
- overflow?: PropertyOverflow;
19
+ overflow?: Property.Overflow;
20
20
  /** sets `overflow-x` property */
21
- overflowX?: PropertyOverflowX;
21
+ overflowX?: Property.OverflowX;
22
22
  /** sets `overflow-y` property */
23
- overflowY?: PropertyOverflowY;
23
+ overflowY?: Property.OverflowY;
24
24
  /** sets `vertical-align` property */
25
- verticalAlign?: PropertyVerticalAlign;
25
+ verticalAlign?: Property.VerticalAlign;
26
26
  /** sets `width` property */
27
27
  width?: number | string;
28
28
  };
@@ -1 +1 @@
1
- {"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../../../../layout/lib/utils/layout.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EACjB,iBAAiB,EACjB,qBAAqB,EACtB,MAAM,SAAS,CAAC;AAEjB,2CAA2C;AAC3C,oBAAY,gBAAgB,GAAG;IAC7B,8BAA8B;IAC9B,OAAO,CAAC,EAAE,eAAe,CAAC;IAC1B,6BAA6B;IAC7B,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,gCAAgC;IAChC,SAAS,CAAC,EAAE,iBAAiB,CAAC;IAC9B,iCAAiC;IACjC,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,gCAAgC;IAChC,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,iCAAiC;IACjC,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,gCAAgC;IAChC,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,+BAA+B;IAC/B,QAAQ,CAAC,EAAE,gBAAgB,CAAC;IAC5B,iCAAiC;IACjC,SAAS,CAAC,EAAE,iBAAiB,CAAC;IAC9B,iCAAiC;IACjC,SAAS,CAAC,EAAE,iBAAiB,CAAC;IAC9B,qCAAqC;IACrC,aAAa,CAAC,EAAE,qBAAqB,CAAC;IACtC,4BAA4B;IAC5B,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACzB,CAAC;AAiBF;;;;;;;;;;;;GAYG;AACH,wBAAgB,MAAM,CAAC,CAAC,SAAS,gBAAgB,EAAE,KAAK,EAAE,CAAC,MAW1D"}
1
+ {"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../../../../layout/lib/utils/layout.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,SAAS,CAAC;AAEjC,2CAA2C;AAC3C,oBAAY,gBAAgB,GAAG;IAC7B,8BAA8B;IAC9B,OAAO,CAAC,EAAE,QAAQ,CAAC,OAAO,CAAC;IAC3B,6BAA6B;IAC7B,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,gCAAgC;IAChC,SAAS,CAAC,EAAE,QAAQ,CAAC,SAAS,CAAC;IAC/B,iCAAiC;IACjC,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,gCAAgC;IAChC,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,iCAAiC;IACjC,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,gCAAgC;IAChC,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,+BAA+B;IAC/B,QAAQ,CAAC,EAAE,QAAQ,CAAC,QAAQ,CAAC;IAC7B,iCAAiC;IACjC,SAAS,CAAC,EAAE,QAAQ,CAAC,SAAS,CAAC;IAC/B,iCAAiC;IACjC,SAAS,CAAC,EAAE,QAAQ,CAAC,SAAS,CAAC;IAC/B,qCAAqC;IACrC,aAAa,CAAC,EAAE,QAAQ,CAAC,aAAa,CAAC;IACvC,4BAA4B;IAC5B,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACzB,CAAC;AAiBF;;;;;;;;;;;;GAYG;AACH,wBAAgB,MAAM,CAAC,CAAC,SAAS,gBAAgB,EAAE,KAAK,EAAE,CAAC,MAW1D"}
@@ -1,11 +1,11 @@
1
1
  import { PartialEmotionCanvasTheme } from '@workday/canvas-kit-react/common';
2
- import { PropertyPosition, PropertyZIndex } from './types';
2
+ import { Property } from 'csstype';
3
3
  /** style props to for standard position properties */
4
4
  export declare type PositionStandardProps = {
5
5
  /** sets `position` property */
6
- position?: PropertyPosition;
6
+ position?: Property.Position;
7
7
  /** sets `zIndex` property */
8
- zIndex?: PropertyZIndex;
8
+ zIndex?: Property.ZIndex;
9
9
  /** sets `top` property */
10
10
  top?: number | string;
11
11
  /** sets `right` property (no bidirectional support) */
@@ -1 +1 @@
1
- {"version":3,"file":"position.d.ts","sourceRoot":"","sources":["../../../../../layout/lib/utils/position.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,yBAAyB,EAE1B,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAC,gBAAgB,EAAE,cAAc,EAAC,MAAM,SAAS,CAAC;AAEzD,sDAAsD;AACtD,oBAAY,qBAAqB,GAAG;IAClC,gCAAgC;IAChC,QAAQ,CAAC,EAAE,gBAAgB,CAAC;IAC5B,8BAA8B;IAC9B,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,2BAA2B;IAC3B,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACtB,uDAAuD;IACvD,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,8BAA8B;IAC9B,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,uDAAuD;IACvD,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACxB,CAAC;AAEF,oBAAY,oBAAoB,GAAG;IACjC,oDAAoD;IACpD,gBAAgB,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACnC,oDAAoD;IACpD,cAAc,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAClC,CAAC;AA0BF,oBAAY,kBAAkB,GAAG,qBAAqB,GAAG,oBAAoB,CAAC;AAE9E;;;;;;;;;;;;GAYG;AACH,wBAAgB,QAAQ,CAAC,CAAC,SAAS,kBAAkB,GAAG;IAAC,KAAK,CAAC,EAAE,yBAAyB,CAAA;CAAC,EACzF,KAAK,EAAE,CAAC,MAyBT"}
1
+ {"version":3,"file":"position.d.ts","sourceRoot":"","sources":["../../../../../layout/lib/utils/position.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,yBAAyB,EAE1B,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAC,QAAQ,EAAC,MAAM,SAAS,CAAC;AAEjC,sDAAsD;AACtD,oBAAY,qBAAqB,GAAG;IAClC,gCAAgC;IAChC,QAAQ,CAAC,EAAE,QAAQ,CAAC,QAAQ,CAAC;IAC7B,8BAA8B;IAC9B,MAAM,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC;IACzB,2BAA2B;IAC3B,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACtB,uDAAuD;IACvD,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,8BAA8B;IAC9B,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,uDAAuD;IACvD,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACxB,CAAC;AAEF,oBAAY,oBAAoB,GAAG;IACjC,oDAAoD;IACpD,gBAAgB,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACnC,oDAAoD;IACpD,cAAc,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAClC,CAAC;AA0BF,oBAAY,kBAAkB,GAAG,qBAAqB,GAAG,oBAAoB,CAAC;AAE9E;;;;;;;;;;;;GAYG;AACH,wBAAgB,QAAQ,CAAC,CAAC,SAAS,kBAAkB,GAAG;IAAC,KAAK,CAAC,EAAE,yBAAyB,CAAA;CAAC,EACzF,KAAK,EAAE,CAAC,MAyBT"}
@@ -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,OAA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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,OAAO,EAAC,UAAU,EAAC,CAAC"}
@@ -67,8 +67,12 @@ var Container = common_1.styled('div')({
67
67
  margin: "-" + tokens_1.space.xxxs + " -" + tokens_1.space.xs,
68
68
  '& > div': {
69
69
  margin: tokens_1.space.xxs + " " + tokens_1.space.zero,
70
+ alignItems: 'flex-start',
71
+ '> div': {
72
+ flex: '0 0 auto',
73
+ },
70
74
  '&:first-of-type': {
71
- marginTop: tokens_1.space.xxxs,
75
+ marginTop: '6px',
72
76
  },
73
77
  '&:last-child': {
74
78
  marginBottom: tokens_1.space.xxxs,
@@ -13,64 +13,6 @@ export interface ActionBarListProps<T = any> extends Omit<Partial<ExtractProps<t
13
13
  */
14
14
  children: ((item: T, index: number) => 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<any>, {
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,GAAG,CACzC,SAAQ,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,OAAO,MAAM,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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 }))));
@@ -9,6 +9,8 @@ export * from './lib/useListResetCursorOnBlur';
9
9
  export * from './lib/useListItemRovingFocus';
10
10
  export * from './lib/useListItemSelect';
11
11
  export * from './lib/useListModel';
12
+ export * from './lib/useGridModel';
12
13
  export { ListBox } from './lib/ListBox';
13
14
  export { singleSelectionManager, multiSelectionManager, isSelected, } from './lib/useSelectionListModel';
15
+ export { wrappingNavigationManager, navigationManager } from './lib/useCursorListModel';
14
16
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../collection/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAE,IAAI,EAAC,MAAM,wBAAwB,CAAC;AAC1D,cAAc,2BAA2B,CAAC;AAC1C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,kCAAkC,CAAC;AACjD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,OAAO,EAAC,OAAO,EAAC,MAAM,eAAe,CAAC;AACtC,OAAO,EACL,sBAAsB,EACtB,qBAAqB,EACrB,UAAU,GACX,MAAM,6BAA6B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../collection/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAE,IAAI,EAAC,MAAM,wBAAwB,CAAC;AAC1D,cAAc,2BAA2B,CAAC;AAC1C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,kCAAkC,CAAC;AACjD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,OAAO,EAAC,OAAO,EAAC,MAAM,eAAe,CAAC;AACtC,OAAO,EACL,sBAAsB,EACtB,qBAAqB,EACrB,UAAU,GACX,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAC,yBAAyB,EAAE,iBAAiB,EAAC,MAAM,0BAA0B,CAAC"}
@@ -9,5 +9,7 @@ export * from './lib/useListResetCursorOnBlur';
9
9
  export * from './lib/useListItemRovingFocus';
10
10
  export * from './lib/useListItemSelect';
11
11
  export * from './lib/useListModel';
12
+ export * from './lib/useGridModel';
12
13
  export { ListBox } from './lib/ListBox';
13
14
  export { singleSelectionManager, multiSelectionManager, isSelected, } from './lib/useSelectionListModel';
15
+ export { wrappingNavigationManager, navigationManager } from './lib/useCursorListModel';
@@ -134,7 +134,7 @@ export var useBaseListModel = createModelHook({
134
134
  return items.concat({
135
135
  id: getId(data.item),
136
136
  value: data.item,
137
- index: items.length - 1,
137
+ index: items.length,
138
138
  textValue: data.textValue,
139
139
  });
140
140
  });