@workday/canvas-kit-preview-react 7.0.0-alpha.106-next.2 → 7.0.0-alpha.129-next.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (150) hide show
  1. package/breadcrumbs/index.ts +0 -4
  2. package/breadcrumbs/lib/Breadcrumbs/List/index.tsx +3 -5
  3. package/breadcrumbs/package.json +2 -1
  4. package/color-picker/README.md +1 -1
  5. package/color-picker/index.ts +1 -1
  6. package/color-picker/lib/ColorPicker.tsx +2 -3
  7. package/color-picker/package.json +2 -1
  8. package/dist/commonjs/breadcrumbs/index.d.ts +0 -3
  9. package/dist/commonjs/breadcrumbs/index.d.ts.map +1 -1
  10. package/dist/commonjs/breadcrumbs/index.js +0 -4
  11. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/index.d.ts.map +1 -1
  12. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs/List/index.js +2 -14
  13. package/dist/commonjs/color-picker/index.d.ts +1 -1
  14. package/dist/commonjs/color-picker/index.d.ts.map +1 -1
  15. package/dist/commonjs/color-picker/index.js +2 -6
  16. package/dist/commonjs/color-picker/lib/ColorPicker.d.ts +1 -2
  17. package/dist/commonjs/color-picker/lib/ColorPicker.d.ts.map +1 -1
  18. package/dist/commonjs/color-picker/lib/ColorPicker.js +5 -4
  19. package/dist/commonjs/menu/index.d.ts +1 -4
  20. package/dist/commonjs/menu/index.d.ts.map +1 -1
  21. package/dist/commonjs/menu/index.js +1 -9
  22. package/dist/commonjs/menu/lib/Menu.d.ts +1 -1
  23. package/dist/commonjs/menu/lib/Menu.d.ts.map +1 -1
  24. package/dist/commonjs/menu/lib/Menu.js +3 -2
  25. package/dist/commonjs/menu/lib/MenuItem.d.ts +1 -2
  26. package/dist/commonjs/menu/lib/MenuItem.d.ts.map +1 -1
  27. package/dist/commonjs/menu/lib/MenuItem.js +2 -1
  28. package/dist/commonjs/pill/lib/Pill.d.ts +7 -0
  29. package/dist/commonjs/pill/lib/Pill.d.ts.map +1 -1
  30. package/dist/commonjs/pill/lib/Pill.js +11 -4
  31. package/dist/commonjs/pill/lib/PillAvatar.d.ts +1 -0
  32. package/dist/commonjs/pill/lib/PillAvatar.d.ts.map +1 -1
  33. package/dist/commonjs/pill/lib/PillAvatar.js +1 -1
  34. package/dist/commonjs/pill/lib/PillIcon.d.ts +1 -0
  35. package/dist/commonjs/pill/lib/PillIcon.d.ts.map +1 -1
  36. package/dist/commonjs/pill/lib/PillIcon.js +1 -1
  37. package/dist/commonjs/pill/lib/PillIconButton.d.ts +6 -0
  38. package/dist/commonjs/pill/lib/PillIconButton.d.ts.map +1 -1
  39. package/dist/commonjs/pill/lib/PillIconButton.js +17 -24
  40. package/dist/commonjs/pill/lib/PillLabel.d.ts +1 -0
  41. package/dist/commonjs/pill/lib/PillLabel.d.ts.map +1 -1
  42. package/dist/commonjs/pill/lib/PillLabel.js +1 -1
  43. package/dist/commonjs/pill/lib/usePillModel.d.ts +13 -0
  44. package/dist/commonjs/pill/lib/usePillModel.d.ts.map +1 -1
  45. package/dist/commonjs/pill/lib/usePillModel.js +7 -1
  46. package/dist/commonjs/select/index.d.ts +0 -3
  47. package/dist/commonjs/select/index.d.ts.map +1 -1
  48. package/dist/commonjs/select/index.js +0 -7
  49. package/dist/commonjs/select/lib/Select.d.ts +0 -1
  50. package/dist/commonjs/select/lib/Select.d.ts.map +1 -1
  51. package/dist/commonjs/select/lib/Select.js +2 -6
  52. package/dist/commonjs/select/lib/SelectBase.d.ts +2 -2
  53. package/dist/commonjs/select/lib/SelectBase.d.ts.map +1 -1
  54. package/dist/commonjs/select/lib/SelectBase.js +6 -9
  55. package/dist/commonjs/select/lib/SelectMenu.d.ts +2 -2
  56. package/dist/commonjs/select/lib/SelectMenu.d.ts.map +1 -1
  57. package/dist/commonjs/select/lib/SelectMenu.js +2 -2
  58. package/dist/commonjs/select/lib/SelectOption.d.ts +1 -2
  59. package/dist/commonjs/select/lib/SelectOption.d.ts.map +1 -1
  60. package/dist/commonjs/select/lib/SelectOption.js +2 -1
  61. package/dist/commonjs/side-panel/index.d.ts +0 -3
  62. package/dist/commonjs/side-panel/index.d.ts.map +1 -1
  63. package/dist/commonjs/side-panel/index.js +0 -7
  64. package/dist/commonjs/side-panel/lib/SidePanel.d.ts +1 -2
  65. package/dist/commonjs/side-panel/lib/SidePanel.d.ts.map +1 -1
  66. package/dist/commonjs/side-panel/lib/SidePanel.js +3 -3
  67. package/dist/es6/breadcrumbs/index.d.ts +0 -3
  68. package/dist/es6/breadcrumbs/index.d.ts.map +1 -1
  69. package/dist/es6/breadcrumbs/index.js +0 -3
  70. package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/index.d.ts.map +1 -1
  71. package/dist/es6/breadcrumbs/lib/Breadcrumbs/List/index.js +2 -14
  72. package/dist/es6/color-picker/index.d.ts +1 -1
  73. package/dist/es6/color-picker/index.d.ts.map +1 -1
  74. package/dist/es6/color-picker/index.js +1 -1
  75. package/dist/es6/color-picker/lib/ColorPicker.d.ts +1 -2
  76. package/dist/es6/color-picker/lib/ColorPicker.d.ts.map +1 -1
  77. package/dist/es6/color-picker/lib/ColorPicker.js +2 -3
  78. package/dist/es6/menu/index.d.ts +1 -4
  79. package/dist/es6/menu/index.d.ts.map +1 -1
  80. package/dist/es6/menu/index.js +1 -4
  81. package/dist/es6/menu/lib/Menu.d.ts +1 -1
  82. package/dist/es6/menu/lib/Menu.d.ts.map +1 -1
  83. package/dist/es6/menu/lib/Menu.js +2 -2
  84. package/dist/es6/menu/lib/MenuItem.d.ts +1 -2
  85. package/dist/es6/menu/lib/MenuItem.d.ts.map +1 -1
  86. package/dist/es6/menu/lib/MenuItem.js +1 -1
  87. package/dist/es6/pill/lib/Pill.d.ts +14 -7
  88. package/dist/es6/pill/lib/Pill.d.ts.map +1 -1
  89. package/dist/es6/pill/lib/Pill.js +11 -4
  90. package/dist/es6/pill/lib/PillAvatar.d.ts +2 -2
  91. package/dist/es6/pill/lib/PillAvatar.d.ts.map +1 -1
  92. package/dist/es6/pill/lib/PillAvatar.js +1 -1
  93. package/dist/es6/pill/lib/PillIcon.d.ts +2 -2
  94. package/dist/es6/pill/lib/PillIcon.d.ts.map +1 -1
  95. package/dist/es6/pill/lib/PillIcon.js +1 -1
  96. package/dist/es6/pill/lib/PillIconButton.d.ts +7 -2
  97. package/dist/es6/pill/lib/PillIconButton.d.ts.map +1 -1
  98. package/dist/es6/pill/lib/PillIconButton.js +18 -25
  99. package/dist/es6/pill/lib/PillLabel.d.ts +2 -2
  100. package/dist/es6/pill/lib/PillLabel.d.ts.map +1 -1
  101. package/dist/es6/pill/lib/PillLabel.js +1 -1
  102. package/dist/es6/pill/lib/usePillModel.d.ts +18 -5
  103. package/dist/es6/pill/lib/usePillModel.d.ts.map +1 -1
  104. package/dist/es6/pill/lib/usePillModel.js +8 -2
  105. package/dist/es6/select/index.d.ts +0 -3
  106. package/dist/es6/select/index.d.ts.map +1 -1
  107. package/dist/es6/select/index.js +0 -3
  108. package/dist/es6/select/lib/Select.d.ts +0 -1
  109. package/dist/es6/select/lib/Select.d.ts.map +1 -1
  110. package/dist/es6/select/lib/Select.js +1 -2
  111. package/dist/es6/select/lib/SelectBase.d.ts +2 -2
  112. package/dist/es6/select/lib/SelectBase.d.ts.map +1 -1
  113. package/dist/es6/select/lib/SelectBase.js +3 -4
  114. package/dist/es6/select/lib/SelectMenu.d.ts +2 -2
  115. package/dist/es6/select/lib/SelectMenu.d.ts.map +1 -1
  116. package/dist/es6/select/lib/SelectMenu.js +1 -2
  117. package/dist/es6/select/lib/SelectOption.d.ts +1 -2
  118. package/dist/es6/select/lib/SelectOption.d.ts.map +1 -1
  119. package/dist/es6/select/lib/SelectOption.js +1 -2
  120. package/dist/es6/side-panel/index.d.ts +0 -3
  121. package/dist/es6/side-panel/index.d.ts.map +1 -1
  122. package/dist/es6/side-panel/index.js +0 -3
  123. package/dist/es6/side-panel/lib/SidePanel.d.ts +1 -2
  124. package/dist/es6/side-panel/lib/SidePanel.d.ts.map +1 -1
  125. package/dist/es6/side-panel/lib/SidePanel.js +1 -2
  126. package/form-field/package.json +2 -1
  127. package/menu/index.ts +1 -6
  128. package/menu/lib/Menu.tsx +2 -2
  129. package/menu/lib/MenuItem.tsx +1 -3
  130. package/menu/package.json +2 -1
  131. package/package.json +8 -7
  132. package/pill/lib/Pill.tsx +10 -2
  133. package/pill/lib/PillAvatar.tsx +1 -0
  134. package/pill/lib/PillIcon.tsx +2 -0
  135. package/pill/lib/PillIconButton.tsx +36 -32
  136. package/pill/lib/PillLabel.tsx +1 -0
  137. package/pill/lib/usePillModel.tsx +8 -1
  138. package/pill/package.json +2 -1
  139. package/select/README.md +7 -7
  140. package/select/index.ts +0 -3
  141. package/select/lib/Select.tsx +1 -3
  142. package/select/lib/SelectBase.tsx +3 -5
  143. package/select/lib/SelectMenu.tsx +1 -3
  144. package/select/lib/SelectOption.tsx +1 -3
  145. package/select/package.json +2 -1
  146. package/side-panel/index.ts +0 -4
  147. package/side-panel/lib/SidePanel.tsx +1 -2
  148. package/side-panel/package.json +2 -1
  149. package/text-area/package.json +2 -1
  150. package/text-input/package.json +2 -1
@@ -8,8 +8,14 @@ export declare const usePillModel: (<TT_Special_Generic>(config?: (Partial<{
8
8
  * Use to disable a pill.
9
9
  */
10
10
  disabled: boolean;
11
+ /**
12
+ * ID used to add accessibility labels to pill elements.
13
+ * @default `useUniqueId()`
14
+ */
15
+ id: string;
11
16
  }> & {} & {}) | undefined) => {
12
17
  state: {
18
+ id: string;
13
19
  /**
14
20
  * Determines the max width of the pill. If the pill text is longer than the max width,
15
21
  * text will be truncated and a tooltip will show the rest of the content when hovered over
@@ -31,7 +37,13 @@ export declare const usePillModel: (<TT_Special_Generic>(config?: (Partial<{
31
37
  * Use to disable a pill.
32
38
  */
33
39
  disabled: boolean;
40
+ /**
41
+ * ID used to add accessibility labels to pill elements.
42
+ * @default `useUniqueId()`
43
+ */
44
+ id: string;
34
45
  }, {}, {
46
+ id: string;
35
47
  /**
36
48
  * Determines the max width of the pill. If the pill text is longer than the max width,
37
49
  * text will be truncated and a tooltip will show the rest of the content when hovered over
@@ -43,6 +55,7 @@ export declare const usePillModel: (<TT_Special_Generic>(config?: (Partial<{
43
55
  disabled: boolean;
44
56
  }, {}, {
45
57
  state: {
58
+ id: string;
46
59
  /**
47
60
  * Determines the max width of the pill. If the pill text is longer than the max width,
48
61
  * text will be truncated and a tooltip will show the rest of the content when hovered over
@@ -1 +1 @@
1
- {"version":3,"file":"usePillModel.d.ts","sourceRoot":"","sources":["../../../../pill/lib/usePillModel.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY;IAErB;;;OAGG;;IAEH;;OAEG;;;;QAPH;;;WAGG;;QAEH;;WAEG;;;;;IAPH;;;OAGG;;IAEH;;OAEG;;;IAPH;;;OAGG;;IAEH;;OAEG;;;;QAPH;;;WAGG;;QAEH;;WAEG;;;;EASL,CAAC"}
1
+ {"version":3,"file":"usePillModel.d.ts","sourceRoot":"","sources":["../../../../pill/lib/usePillModel.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY;IAErB;;;OAGG;;IAEH;;OAEG;;IAEH;;;OAGG;;;;;QAZH;;;WAGG;;QAEH;;WAEG;;;;;IAPH;;;OAGG;;IAEH;;OAEG;;IAEH;;;OAGG;;;;IAZH;;;OAGG;;IAEH;;OAEG;;;;;QAPH;;;WAGG;;QAEH;;WAEG;;;;EAgBL,CAAC"}
@@ -24,8 +24,14 @@ exports.usePillModel = common_1.createModelHook({
24
24
  * Use to disable a pill.
25
25
  */
26
26
  disabled: false,
27
+ /**
28
+ * ID used to add accessibility labels to pill elements.
29
+ * @default `useUniqueId()`
30
+ */
31
+ id: '',
27
32
  },
28
33
  })(function (config) {
29
- var state = __assign({}, config);
34
+ var id = common_1.useUniqueId(config.id);
35
+ var state = __assign(__assign({}, config), { id: id });
30
36
  return { state: state, events: {} };
31
37
  });
@@ -1,6 +1,3 @@
1
- import Select from './lib/Select';
2
- export default Select;
3
- export { Select };
4
1
  export * from './lib/Select';
5
2
  export { Option, RenderableOption, RenderOptionFunction, RenderSelectedFunction, } from './lib/SelectBase';
6
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../select/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,eAAe,MAAM,CAAC;AACtB,OAAO,EAAC,MAAM,EAAC,CAAC;AAChB,cAAc,cAAc,CAAC;AAE7B,OAAO,EACL,MAAM,EACN,gBAAgB,EAChB,oBAAoB,EACpB,sBAAsB,GACvB,MAAM,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../select/index.ts"],"names":[],"mappings":"AACA,cAAc,cAAc,CAAC;AAE7B,OAAO,EACL,MAAM,EACN,gBAAgB,EAChB,oBAAoB,EACpB,sBAAsB,GACvB,MAAM,kBAAkB,CAAC"}
@@ -9,12 +9,5 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
9
9
  var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
10
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
11
  };
12
- var __importDefault = (this && this.__importDefault) || function (mod) {
13
- return (mod && mod.__esModule) ? mod : { "default": mod };
14
- };
15
12
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.Select = void 0;
17
- var Select_1 = __importDefault(require("./lib/Select"));
18
- exports.Select = Select_1.default;
19
- exports.default = Select_1.default;
20
13
  __exportStar(require("./lib/Select"), exports);
@@ -21,5 +21,4 @@ export interface SelectProps extends CoreSelectBaseProps {
21
21
  export declare const Select: import("@workday/canvas-kit-react/common").ElementComponent<"button", SelectProps> & {
22
22
  ErrorType: typeof ErrorType;
23
23
  };
24
- export default Select;
25
24
  //# sourceMappingURL=Select.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../../select/lib/Select.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,SAAS,EAKV,MAAM,kCAAkC,CAAC;AAE1C,OAAmB,EAAC,mBAAmB,EAAE,MAAM,EAAmB,MAAM,cAAc,CAAC;AAIvF,MAAM,WAAW,WAAY,SAAQ,mBAAmB;IACtD;;;;;;;;;;;;;;OAcG;IACH,OAAO,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;CAC9B;AAoiBD,eAAO,MAAM,MAAM;;CAUjB,CAAC;AAEH,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../../select/lib/Select.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,SAAS,EAKV,MAAM,kCAAkC,CAAC;AAE1C,OAAO,EAAa,mBAAmB,EAAE,MAAM,EAAmB,MAAM,cAAc,CAAC;AAIvF,MAAM,WAAW,WAAY,SAAQ,mBAAmB;IACtD;;;;;;;;;;;;;;OAcG;IACH,OAAO,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;CAC9B;AAoiBD,eAAO,MAAM,MAAM;;CAUjB,CAAC"}
@@ -53,15 +53,12 @@ var __rest = (this && this.__rest) || function (s, e) {
53
53
  }
54
54
  return t;
55
55
  };
56
- var __importDefault = (this && this.__importDefault) || function (mod) {
57
- return (mod && mod.__esModule) ? mod : { "default": mod };
58
- };
59
56
  Object.defineProperty(exports, "__esModule", { value: true });
60
57
  exports.Select = void 0;
61
58
  var React = __importStar(require("react"));
62
59
  var common_1 = require("@workday/canvas-kit-react/common");
63
60
  var SelectMenu_1 = require("./SelectMenu");
64
- var SelectBase_1 = __importDefault(require("./SelectBase"));
61
+ var SelectBase_1 = require("./SelectBase");
65
62
  var utils_1 = require("./utils");
66
63
  var SelectContainer = /** @class */ (function (_super) {
67
64
  __extends(SelectContainer, _super);
@@ -504,7 +501,7 @@ var SelectContainer = /** @class */ (function (_super) {
504
501
  onOptionSelection: this.handleOptionSelection,
505
502
  }
506
503
  : {};
507
- return (React.createElement(SelectBase_1.default, __assign({ forwardedButtonRef: this.forwardedButtonRef, localButtonRef: this.localButtonRef, focusedOptionIndex: focusedOptionIndex, inputRef: this.inputRef, menuRef: this.menuRef, menuVisibility: menuVisibility, options: this.normalizedOptions, value: value }, eventHandlers, elemProps)));
504
+ return (React.createElement(SelectBase_1.SelectBase, __assign({ forwardedButtonRef: this.forwardedButtonRef, localButtonRef: this.localButtonRef, focusedOptionIndex: focusedOptionIndex, inputRef: this.inputRef, menuRef: this.menuRef, menuVisibility: menuVisibility, options: this.normalizedOptions, value: value }, eventHandlers, elemProps)));
508
505
  };
509
506
  SelectContainer.ErrorType = common_1.ErrorType;
510
507
  return SelectContainer;
@@ -519,4 +516,3 @@ exports.Select = common_1.createComponent('button')({
519
516
  ErrorType: common_1.ErrorType,
520
517
  },
521
518
  });
522
- exports.default = exports.Select;
@@ -137,6 +137,6 @@ export interface SelectBaseProps extends CoreSelectBaseProps, StyledType {
137
137
  }
138
138
  export declare const buttonBorderWidth = 1;
139
139
  export declare const buttonDefaultWidth = 280;
140
- declare const SelectBase: ({ "aria-labelledby": ariaLabelledBy, "aria-required": ariaRequired, as, forwardedButtonRef, localButtonRef, disabled, error, focusedOptionIndex, grow, inputRef, menuPlacement, menuRef, menuVisibility, onChange, onKeyDown, onClose, onOptionSelection, options, renderOption, renderSelected, required, shouldMenuAutoFlip, shouldMenuAutoFocus, value, ...elemProps }: SelectBaseProps) => JSX.Element;
141
- export default SelectBase;
140
+ export declare const SelectBase: ({ "aria-labelledby": ariaLabelledBy, "aria-required": ariaRequired, as, forwardedButtonRef, localButtonRef, disabled, error, focusedOptionIndex, grow, inputRef, menuPlacement, menuRef, menuVisibility, onChange, onKeyDown, onClose, onOptionSelection, options, renderOption, renderSelected, required, shouldMenuAutoFlip, shouldMenuAutoFocus, value, ...elemProps }: SelectBaseProps) => JSX.Element;
141
+ export {};
142
142
  //# sourceMappingURL=SelectBase.d.ts.map
@@ -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C;IAC5C;;;;;;;OAOG;IACH,OAAO,EAAE,gBAAgB,EAAE,CAAC;IAC5B;;;OAGG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B;;;OAGG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B;AAED,eAAO,MAAM,iBAAiB,IAAI,CAAC;AACnC,eAAO,MAAM,kBAAkB,MAAM,CAAC;AA8GtC,eAAO,MAAM,UAAU,8WA0BpB,eAAe,gBAgKjB,CAAC"}
@@ -40,18 +40,15 @@ var __rest = (this && this.__rest) || function (s, e) {
40
40
  }
41
41
  return t;
42
42
  };
43
- var __importDefault = (this && this.__importDefault) || function (mod) {
44
- return (mod && mod.__esModule) ? mod : { "default": mod };
45
- };
46
43
  Object.defineProperty(exports, "__esModule", { value: true });
47
- exports.buttonDefaultWidth = exports.buttonBorderWidth = void 0;
44
+ exports.SelectBase = exports.buttonDefaultWidth = exports.buttonBorderWidth = void 0;
48
45
  var react_1 = __importStar(require("react"));
49
46
  var common_1 = require("@workday/canvas-kit-react/common");
50
47
  var tokens_1 = require("@workday/canvas-kit-react/tokens");
51
48
  var canvas_system_icons_web_1 = require("@workday/canvas-system-icons-web");
52
49
  var icon_1 = require("@workday/canvas-kit-react/icon");
53
- var SelectMenu_1 = __importDefault(require("./SelectMenu"));
54
- var SelectOption_1 = __importDefault(require("./SelectOption"));
50
+ var SelectMenu_1 = require("./SelectMenu");
51
+ var SelectOption_1 = require("./SelectOption");
55
52
  var scrolling_1 = require("./scrolling");
56
53
  var utils_1 = require("./utils");
57
54
  exports.buttonBorderWidth = 1;
@@ -151,7 +148,7 @@ var SelectBase = function (_a) {
151
148
  : {}));
152
149
  // Pass in additional information about the option state: focused, selected
153
150
  var normalizedOption = __assign(__assign({}, option), { focused: optionProps.focused, selected: !!optionProps['aria-selected'] });
154
- return react_1.default.createElement(SelectOption_1.default, __assign({}, optionProps), renderOption(normalizedOption));
151
+ return react_1.default.createElement(SelectOption_1.SelectOption, __assign({}, optionProps), renderOption(normalizedOption));
155
152
  });
156
153
  };
157
154
  // If the focused option changed, scroll the newly focused option into view (if
@@ -217,7 +214,7 @@ var SelectBase = function (_a) {
217
214
  e.preventDefault();
218
215
  }, ref: forwardedButtonRef, type: "button", value: selectedOptionValue }, elemProps), !!selectedOption && renderSelected(selectedOption)),
219
216
  react_1.default.createElement(SelectInput, { onChange: onChange, ref: inputRef, type: "text", value: selectedOptionValue }),
220
- hasOptions && menuVisibility !== 'closed' && (react_1.default.createElement(SelectMenu_1.default, { "aria-activedescendant": options[focusedOptionIndex].id, "aria-labelledby": ariaLabelledBy, "aria-required": ariaRequired || required ? true : undefined, buttonRef: localButtonRef, id: menuId, error: error, menuRef: menuRef, onKeyDown: onKeyDown, onClose: onClose, placement: menuPlacement, shouldAutoFlip: shouldMenuAutoFlip, shouldAutoFocus: shouldMenuAutoFocus, visibility: menuVisibility }, renderOptions(renderOption))),
217
+ hasOptions && menuVisibility !== 'closed' && (react_1.default.createElement(SelectMenu_1.SelectMenu, { "aria-activedescendant": options[focusedOptionIndex].id, "aria-labelledby": ariaLabelledBy, "aria-required": ariaRequired || required ? true : undefined, buttonRef: localButtonRef, id: menuId, error: error, menuRef: menuRef, onKeyDown: onKeyDown, onClose: onClose, placement: menuPlacement, shouldAutoFlip: shouldMenuAutoFlip, shouldAutoFocus: shouldMenuAutoFocus, visibility: menuVisibility }, renderOptions(renderOption))),
221
218
  react_1.default.createElement(SelectMenuIcon, { className: "menu-icon", icon: canvas_system_icons_web_1.caretDownSmallIcon, color: disabled ? tokens_1.colors.licorice100 : tokens_1.colors.licorice200, colorHover: disabled ? tokens_1.colors.licorice100 : tokens_1.colors.licorice500, size: menuIconSize })));
222
219
  };
223
- exports.default = SelectBase;
220
+ exports.SelectBase = SelectBase;
@@ -37,6 +37,6 @@ interface SelectMenuProps extends Themeable, React.HTMLAttributes<HTMLUListEleme
37
37
  visibility?: MenuVisibility;
38
38
  }
39
39
  export declare const menuAnimationDuration = 200;
40
- declare const SelectMenu: ({ buttonRef, children, error, menuRef, onClose, placement, shouldAutoFlip, shouldAutoFocus, visibility, ...elemProps }: SelectMenuProps) => JSX.Element;
41
- export default SelectMenu;
40
+ export declare const SelectMenu: ({ buttonRef, children, error, menuRef, onClose, placement, shouldAutoFlip, shouldAutoFocus, visibility, ...elemProps }: SelectMenuProps) => JSX.Element;
41
+ export {};
42
42
  //# sourceMappingURL=SelectMenu.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SelectMenu.d.ts","sourceRoot":"","sources":["../../../../select/lib/SelectMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0D,MAAM,OAAO,CAAC;AAG/E,OAAO,EAAgC,SAAS,EAAS,MAAM,kCAAkC,CAAC;AAYlG,OAAO,EAAC,WAAW,EAAC,MAAM,UAAU,CAAC;AAErC,OAAO,EAAC,aAAa,EAAE,cAAc,EAAC,MAAM,SAAS,CAAC;AAEtD,UAAU,eACR,SAAQ,SAAS,EACf,KAAK,CAAC,cAAc,CAAC,gBAAgB,CAAC,EACtC,IAAI,CAAC,WAAW,EAAE,OAAO,CAAC;IAC5B;;OAEG;IACH,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAC;IAC/C;;OAEG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;;OAGG;IACH,SAAS,CAAC,EAAE,aAAa,CAAC;IAC1B;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;OAGG;IACH,UAAU,CAAC,EAAE,cAAc,CAAC;CAC7B;AAED,eAAO,MAAM,qBAAqB,MAAM,CAAC;AAwKzC,QAAA,MAAM,UAAU,2HAWb,eAAe,gBA2DjB,CAAC;AAEF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"SelectMenu.d.ts","sourceRoot":"","sources":["../../../../select/lib/SelectMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA0D,MAAM,OAAO,CAAC;AAG/E,OAAO,EAAgC,SAAS,EAAS,MAAM,kCAAkC,CAAC;AAYlG,OAAO,EAAC,WAAW,EAAC,MAAM,UAAU,CAAC;AAErC,OAAO,EAAC,aAAa,EAAE,cAAc,EAAC,MAAM,SAAS,CAAC;AAEtD,UAAU,eACR,SAAQ,SAAS,EACf,KAAK,CAAC,cAAc,CAAC,gBAAgB,CAAC,EACtC,IAAI,CAAC,WAAW,EAAE,OAAO,CAAC;IAC5B;;OAEG;IACH,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAC;IAC/C;;OAEG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;;OAGG;IACH,SAAS,CAAC,EAAE,aAAa,CAAC;IAC1B;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;OAGG;IACH,UAAU,CAAC,EAAE,cAAc,CAAC;CAC7B;AAED,eAAO,MAAM,qBAAqB,MAAM,CAAC;AAwKzC,eAAO,MAAM,UAAU,2HAWpB,eAAe,gBA2DjB,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.menuAnimationDuration = void 0;
44
+ exports.SelectMenu = exports.menuAnimationDuration = void 0;
45
45
  var react_1 = __importStar(require("react"));
46
46
  var common_1 = require("@workday/canvas-kit-react/common");
47
47
  var popup_1 = require("@workday/canvas-kit-react/popup");
@@ -235,4 +235,4 @@ var SelectMenu = function (_a) {
235
235
  react_1.default.createElement(Menu, { error: error, visibility: visibility, width: width },
236
236
  react_1.default.createElement(MenuList, __assign({ error: error, ref: menuRef, role: "listbox", tabIndex: -1 }, elemProps), children))));
237
237
  };
238
- exports.default = SelectMenu;
238
+ exports.SelectMenu = SelectMenu;
@@ -28,6 +28,5 @@ export interface SelectOptionProps extends Themeable, React.LiHTMLAttributes<HTM
28
28
  */
29
29
  value?: string;
30
30
  }
31
- declare const SelectOption: ({ children, focused, interactive, optionRef, value, ...elemProps }: SelectOptionProps) => JSX.Element;
32
- export default SelectOption;
31
+ export declare const SelectOption: ({ children, focused, interactive, optionRef, value, ...elemProps }: SelectOptionProps) => JSX.Element;
33
32
  //# sourceMappingURL=SelectOption.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SelectOption.d.ts","sourceRoot":"","sources":["../../../../select/lib/SelectOption.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAEL,SAAS,EACT,SAAS,EAGV,MAAM,kCAAkC,CAAC;AAG1C,MAAM,WAAW,iBAAkB,SAAQ,SAAS,EAAE,KAAK,CAAC,gBAAgB,CAAC,aAAa,CAAC;IACzF;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;OAEG;IACH,SAAS,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;IACrC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAqED,QAAA,MAAM,YAAY,uEAOf,iBAAiB,gBAanB,CAAC;AAEF,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"SelectOption.d.ts","sourceRoot":"","sources":["../../../../select/lib/SelectOption.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAEL,SAAS,EACT,SAAS,EAGV,MAAM,kCAAkC,CAAC;AAG1C,MAAM,WAAW,iBAAkB,SAAQ,SAAS,EAAE,KAAK,CAAC,gBAAgB,CAAC,aAAa,CAAC;IACzF;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;OAEG;IACH,SAAS,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;IACrC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAqED,eAAO,MAAM,YAAY,uEAOtB,iBAAiB,gBAanB,CAAC"}
@@ -41,6 +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.SelectOption = void 0;
44
45
  var React = __importStar(require("react"));
45
46
  var common_1 = require("@workday/canvas-kit-react/common");
46
47
  var tokens_1 = require("@workday/canvas-kit-react/tokens");
@@ -99,4 +100,4 @@ var SelectOption = function (_a) {
99
100
  var children = _a.children, _b = _a.focused, focused = _b === void 0 ? false : _b, _c = _a.interactive, interactive = _c === void 0 ? true : _c, optionRef = _a.optionRef, value = _a.value, elemProps = __rest(_a, ["children", "focused", "interactive", "optionRef", "value"]);
100
101
  return (React.createElement(Option, __assign({ "data-value": value, focused: focused, interactive: interactive, ref: optionRef, role: "option" }, elemProps), children));
101
102
  };
102
- exports.default = SelectOption;
103
+ exports.SelectOption = SelectOption;
@@ -1,6 +1,3 @@
1
- import SidePanel from './lib/SidePanel';
2
- export default SidePanel;
3
- export { SidePanel };
4
1
  export * from './lib/hooks';
5
2
  export * from './lib/SidePanel';
6
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../side-panel/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,iBAAiB,CAAC;AAExC,eAAe,SAAS,CAAC;AACzB,OAAO,EAAC,SAAS,EAAC,CAAC;AACnB,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../side-panel/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC"}
@@ -9,13 +9,6 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
9
9
  var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
10
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
11
  };
12
- var __importDefault = (this && this.__importDefault) || function (mod) {
13
- return (mod && mod.__esModule) ? mod : { "default": mod };
14
- };
15
12
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.SidePanel = void 0;
17
- var SidePanel_1 = __importDefault(require("./lib/SidePanel"));
18
- exports.SidePanel = SidePanel_1.default;
19
- exports.default = SidePanel_1.default;
20
13
  __exportStar(require("./lib/hooks"), exports);
21
14
  __exportStar(require("./lib/SidePanel"), exports);
@@ -66,7 +66,7 @@ export declare const SidePanelContext: React.Context<{
66
66
  state: string;
67
67
  origin: string;
68
68
  }>;
69
- declare const SidePanel: {
69
+ export declare const SidePanel: {
70
70
  ({ as, children, collapsedWidth, expanded, expandedWidth, onAnimationEnd, onAnimationStart, onExpandedChange, onStateTransition, origin, variant, touched, ...elemProps }: SidePanelProps): jsx.JSX.Element;
71
71
  ToggleButton: ({ variant, icon, tooltipTextExpand: expandLabel, tooltipTextCollapse: collapseLabel, ...rest }: ToggleButtonProps & React.ButtonHTMLAttributes<HTMLButtonElement>) => jsx.JSX.Element;
72
72
  };
@@ -82,5 +82,4 @@ export declare type ToggleButtonProps = TertiaryButtonProps & {
82
82
  */
83
83
  tooltipTextCollapse?: string;
84
84
  };
85
- export default SidePanel;
86
85
  //# sourceMappingURL=SidePanel.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SidePanel.d.ts","sourceRoot":"","sources":["../../../../side-panel/lib/SidePanel.tsx"],"names":[],"mappings":"AAAA,0BAA0B;AAC1B,eAAe;AACf,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAM,GAAG,EAAuB,MAAM,gBAAgB,CAAC;AAC9D,OAAO,EAAiB,mBAAmB,EAAC,MAAM,kCAAkC,CAAC;AAKrF,oBAAY,gBAAgB,GAAG,UAAU,GAAG,WAAW,CAAC;AACxD,oBAAY,yBAAyB,GAAG,WAAW,GAAG,YAAY,GAAG,UAAU,GAAG,WAAW,CAAC;AAE9F,MAAM,WAAW,cAAe,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAC1E;;;;OAIG;IACH,EAAE,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IACvB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACjC;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAChC;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAC1B;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,CAAC,QAAQ,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IAChD;;;;;;OAMG;IACH,iBAAiB,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,yBAAyB,KAAK,IAAI,CAAC;IAChE;;;;OAIG;IACH,OAAO,CAAC,EAAE,gBAAgB,CAAC;IAC3B;;;;OAIG;IACH,OAAO,EAAE,OAAO,CAAC;CAClB;AAsCD,eAAO,MAAM,gBAAgB;;;EAG3B,CAAC;AAE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IAAI,CAAC;IAChE;;;;OAIG;IACH,OAAO,CAAC,EAAE,gBAAgB,CAAC;IAC3B;;;;OAIG;IACH,OAAO,EAAE,OAAO,CAAC;CAClB;AAsCD,eAAO,MAAM,gBAAgB;;;EAG3B,CAAC;AAEH,eAAO,MAAM,SAAS;+KAcnB,cAAc;mHA0Gd,iBAAiB,GAAG,MAAM,oBAAoB,CAAC,iBAAiB,CAAC;CAxBnE,CAAC;AAEF,oBAAY,iBAAiB,GAAG,mBAAmB,GAAG;IACpD;;;OAGG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;;OAGG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B,CAAC"}
@@ -45,7 +45,7 @@ var __rest = (this && this.__rest) || function (s, e) {
45
45
  return t;
46
46
  };
47
47
  Object.defineProperty(exports, "__esModule", { value: true });
48
- exports.SidePanelContext = void 0;
48
+ exports.SidePanel = exports.SidePanelContext = void 0;
49
49
  /** @jsxRuntime classic */
50
50
  /** @jsx jsx */
51
51
  var React = __importStar(require("react"));
@@ -136,6 +136,7 @@ var SidePanel = function (_a) {
136
136
  origin: origin,
137
137
  } }, children)));
138
138
  };
139
+ exports.SidePanel = SidePanel;
139
140
  /**
140
141
  * A toggle button styled specifically for the side panel container.
141
142
  */
@@ -167,6 +168,5 @@ var ToggleButton = function (_a) {
167
168
  return (react_1.jsx(tooltip_1.Tooltip, { title: context.state === 'collapsed' ? expandLabel : collapseLabel, type: "muted" },
168
169
  react_1.jsx(button_1.TertiaryButton, __assign({ type: "button", css: buttonStyle, icon: icon, variant: variant }, rest))));
169
170
  };
170
- SidePanel.ToggleButton = ToggleButton;
171
- exports.default = SidePanel;
171
+ exports.SidePanel.ToggleButton = ToggleButton;
172
172
  var templateObject_1;
@@ -1,5 +1,2 @@
1
- import { Breadcrumbs } from './lib/Breadcrumbs';
2
- export default Breadcrumbs;
3
- export { Breadcrumbs };
4
1
  export * from './lib/Breadcrumbs';
5
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../breadcrumbs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAC,MAAM,mBAAmB,CAAC;AAE9C,eAAe,WAAW,CAAC;AAC3B,OAAO,EAAC,WAAW,EAAC,CAAC;AACrB,cAAc,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../breadcrumbs/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC"}
@@ -1,4 +1 @@
1
- import { Breadcrumbs } from './lib/Breadcrumbs';
2
- export default Breadcrumbs;
3
- export { Breadcrumbs };
4
1
  export * from './lib/Breadcrumbs';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../breadcrumbs/lib/Breadcrumbs/List/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,oBAAY,oBAAoB,GAAG,KAAK,CAAC,cAAc,CAAC,gBAAgB,CAAC,CAAC;AAE1E,eAAO,MAAM,eAAe,yFAqB1B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../breadcrumbs/lib/Breadcrumbs/List/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,oBAAY,oBAAoB,GAAG,KAAK,CAAC,cAAc,CAAC,gBAAgB,CAAC,CAAC;AAE1E,eAAO,MAAM,eAAe,yFAmB1B,CAAC"}
@@ -9,24 +9,12 @@ var __assign = (this && this.__assign) || function () {
9
9
  };
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
- var __rest = (this && this.__rest) || function (s, e) {
13
- var t = {};
14
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
- t[p] = s[p];
16
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
- t[p[i]] = s[p[i]];
20
- }
21
- return t;
22
- };
23
12
  import React from 'react';
24
13
  import { createComponent } from '@workday/canvas-kit-react/common';
25
14
  import { Flex } from '@workday/canvas-kit-react/layout';
26
15
  export var BreadcrumbsList = createComponent('ul')({
27
16
  displayName: 'BreadcrumbsList',
28
- Component: function (_a, ref) {
29
- var children = _a.children, elemProps = __rest(_a, ["children"]);
30
- return (React.createElement(Flex, __assign({ padding: "zero", margin: "zero", display: "inline-flex", alignItems: "center", minHeight: 40, listStyle: "none", style: { boxSizing: 'border-box' }, as: "ul", role: "list", ref: ref }, elemProps), children));
17
+ Component: function (elemProps, ref, Element) {
18
+ return (React.createElement(Flex, __assign({ as: Element, padding: "zero", margin: "zero", display: "inline-flex", alignItems: "center", minHeight: 40, listStyle: "none", style: { boxSizing: 'border-box' }, role: "list", ref: ref }, elemProps)));
31
19
  },
32
20
  });
@@ -1,2 +1,2 @@
1
- export { default, default as ColorPicker, ColorPickerProps } from './lib/ColorPicker';
1
+ export { ColorPicker, ColorPickerProps } from './lib/ColorPicker';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../color-picker/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,gBAAgB,EAAC,MAAM,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../color-picker/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAE,gBAAgB,EAAC,MAAM,mBAAmB,CAAC"}
@@ -1 +1 @@
1
- export { default, default as ColorPicker } from './lib/ColorPicker';
1
+ export { ColorPicker } from './lib/ColorPicker';
@@ -47,9 +47,8 @@ export interface ColorPickerProps extends React.HTMLAttributes<HTMLDivElement> {
47
47
  */
48
48
  resetLabel?: string;
49
49
  }
50
- declare const ColorPicker: {
50
+ export declare const ColorPicker: {
51
51
  ({ colorSet, customHexInputLabel, submitLabel, onColorChange, onColorReset, onSubmitClick, resetLabel, resetColor, value, showCustomHexInput, ...elemProps }: ColorPickerProps): JSX.Element;
52
52
  defaultColorSet: string[];
53
53
  };
54
- export default ColorPicker;
55
54
  //# sourceMappingURL=ColorPicker.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ColorPicker.d.ts","sourceRoot":"","sources":["../../../../color-picker/lib/ColorPicker.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,MAAM,WAAW,gBAAiB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAC5E;;OAEG;IACH,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB;;;OAGG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B;;;OAGG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,SAAS,KAAK,IAAI,CAAC;IACjD;;;OAGG;IACH,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAsGD,QAAA,MAAM,WAAW;kKAYd,gBAAgB;;CA0ClB,CAAC;AAGF,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"ColorPicker.d.ts","sourceRoot":"","sources":["../../../../color-picker/lib/ColorPicker.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,MAAM,WAAW,gBAAiB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAC5E;;OAEG;IACH,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB;;;OAGG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B;;;OAGG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,SAAS,KAAK,IAAI,CAAC;IACjD;;;OAGG;IACH,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAsGD,eAAO,MAAM,WAAW;kKAYrB,gBAAgB;;CA0ClB,CAAC"}
@@ -25,7 +25,7 @@ import { checkIcon } from '@workday/canvas-system-icons-web';
25
25
  import { ColorInput } from '@workday/canvas-kit-react/color-picker';
26
26
  import { SecondaryButton } from '@workday/canvas-kit-react/button';
27
27
  import * as React from 'react';
28
- import FormField from '@workday/canvas-kit-react/form-field';
28
+ import { FormField } from '@workday/canvas-kit-react/form-field';
29
29
  import styled from '@emotion/styled';
30
30
  import { ResetButton } from './parts/ColorReset';
31
31
  import { SwatchBook } from './parts/SwatchBook';
@@ -115,7 +115,7 @@ var isCustomColor = function (colors, hexCode) {
115
115
  var lowercaseHex = hexCode.toLowerCase();
116
116
  return !colors.includes(lowercaseHex);
117
117
  };
118
- var ColorPicker = function (_a) {
118
+ export var ColorPicker = function (_a) {
119
119
  var _b = _a.colorSet, colorSet = _b === void 0 ? defaultColorSet : _b, _c = _a.customHexInputLabel, customHexInputLabel = _c === void 0 ? 'Custom Hex Color' : _c, _d = _a.submitLabel, submitLabel = _d === void 0 ? 'Submit' : _d, onColorChange = _a.onColorChange, onColorReset = _a.onColorReset, onSubmitClick = _a.onSubmitClick, _e = _a.resetLabel, resetLabel = _e === void 0 ? 'Reset' : _e, resetColor = _a.resetColor, _f = _a.value, value = _f === void 0 ? '' : _f, _g = _a.showCustomHexInput, showCustomHexInput = _g === void 0 ? false : _g, elemProps = __rest(_a, ["colorSet", "customHexInputLabel", "submitLabel", "onColorChange", "onColorReset", "onSubmitClick", "resetLabel", "resetColor", "value", "showCustomHexInput"]);
120
120
  var _h = React.useState(''), validHexValue = _h[0], setValidHexValue = _h[1];
121
121
  var _j = React.useState(isCustomColor(colorSet, value) ? value : ''), customHexValue = _j[0], setCustomHexValue = _j[1];
@@ -140,4 +140,3 @@ var ColorPicker = function (_a) {
140
140
  React.createElement(CheckButton, { "aria-label": submitLabel, icon: checkIcon })))));
141
141
  };
142
142
  ColorPicker.defaultColorSet = defaultColorSet;
143
- export default ColorPicker;
@@ -1,6 +1,3 @@
1
- import Menu, { MenuProps } from './lib/Menu';
2
- import MenuItem from './lib/MenuItem';
3
- export { Menu, MenuItem, MenuProps };
4
- export default Menu;
1
+ export * from './lib/Menu';
5
2
  export * from './lib/MenuItem';
6
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../menu/index.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,EAAE,EAAC,SAAS,EAAC,MAAM,YAAY,CAAC;AAC3C,OAAO,QAAQ,MAAM,gBAAgB,CAAC;AAEtC,OAAO,EAAC,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAC,CAAC;AAEnC,eAAe,IAAI,CAAC;AACpB,cAAc,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../menu/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC"}
@@ -1,5 +1,2 @@
1
- import Menu from './lib/Menu';
2
- import MenuItem from './lib/MenuItem';
3
- export { Menu, MenuItem };
4
- export default Menu;
1
+ export * from './lib/Menu';
5
2
  export * from './lib/MenuItem';
@@ -39,7 +39,7 @@ export interface MenuProps extends GrowthBehavior, React.HTMLAttributes<HTMLULis
39
39
  export interface MenuState {
40
40
  selectedItemIndex: number;
41
41
  }
42
- export default class Menu extends React.Component<MenuProps, MenuState> {
42
+ export declare class Menu extends React.Component<MenuProps, MenuState> {
43
43
  private id;
44
44
  private animateId;
45
45
  private menuRef;
@@ -1 +1 @@
1
- {"version":3,"file":"Menu.d.ts","sourceRoot":"","sources":["../../../../menu/lib/Menu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAC,aAAa,EAAC,MAAM,YAAY,CAAC;AAGzC,OAAO,EAAiB,cAAc,EAAmB,MAAM,kCAAkC,CAAC;AAElG,MAAM,WAAW,SAAU,SAAQ,cAAc,EAAE,KAAK,CAAC,cAAc,CAAC,gBAAgB,CAAC;IACvF;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,YAAY,CAAC,aAAa,CAAC,EAAE,CAAC;IACnF;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B;;OAEG;IACH,EAA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IACnF;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,SAAS;IACxB,iBAAiB,EAAE,MAAM,CAAC;CAC3B;AAaD,qBAAa,IAAK,SAAQ,KAAK,CAAC,SAAS,CAAC,SAAS,EAAE,SAAS,CAAC;IAC7D,OAAO,CAAC,EAAE,CAAsB;IAChC,OAAO,CAAC,SAAS,CAAU;IAE3B,OAAO,CAAC,OAAO,CAAoC;IACnD,OAAO,CAAC,eAAe,CAAY;gBAEvB,KAAK,EAAE,SAAS;IAe5B,kBAAkB,CAAC,SAAS,EAAE,SAAS;IAevC,iBAAiB;IAKjB,oBAAoB;IAIb,MAAM;IAmDN,sBAAsB,UAAW,MAAM,GAAG,SAAS,KAAG,MAAM,CAQjE;IAEK,sBAAsB,UAAW,MAAM,GAAG,SAAS,KAAG,IAAI,CAE/D;IAEF,OAAO,CAAC,uBAAuB,CA4E7B;IAEF,OAAO,CAAC,WAAW,CAoBjB;IAEF,OAAO,CAAC,kBAAkB,CAWxB;IAEF,OAAO,CAAC,kBAAkB,CA+BxB;IAEF,OAAO,CAAC,sBAAsB,CAU5B;IAEF,OAAO,CAAC,sBAAsB,CAG5B;CACH"}
@@ -160,7 +160,7 @@ var Menu = /** @class */ (function (_super) {
160
160
  _this.setFirstCharacters = function () {
161
161
  var getFirstCharacter = function (child) {
162
162
  var character = '';
163
- if (!child || typeof child === 'boolean' || child === {}) {
163
+ if (!child || typeof child === 'boolean') {
164
164
  character = '';
165
165
  }
166
166
  else if (typeof child === 'string' || typeof child === 'number') {
@@ -260,4 +260,4 @@ var Menu = /** @class */ (function (_super) {
260
260
  };
261
261
  return Menu;
262
262
  }(React.Component));
263
- export default Menu;
263
+ export { Menu };
@@ -43,11 +43,10 @@ export interface MenuItemProps extends React.LiHTMLAttributes<HTMLLIElement> {
43
43
  */
44
44
  shouldClose?: boolean;
45
45
  }
46
- declare class MenuItem extends React.Component<MenuItemProps> {
46
+ export declare class MenuItem extends React.Component<MenuItemProps> {
47
47
  ref: React.RefObject<HTMLLIElement>;
48
48
  componentDidUpdate: (prevProps: MenuItemProps) => void;
49
49
  render(): React.ReactNode;
50
50
  private handleClick;
51
51
  }
52
- export default MenuItem;
53
52
  //# sourceMappingURL=MenuItem.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MenuItem.d.ts","sourceRoot":"","sources":["../../../../menu/lib/MenuItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAU/B,OAAO,EAAC,gBAAgB,EAAC,MAAM,8BAA8B,CAAC;AAG9D,MAAM,WAAW,aAAc,SAAQ,KAAK,CAAC,gBAAgB,CAAC,aAAa,CAAC;IAC1E;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,CAAC;IAC5C;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,IAAI,CAAC,EAAE,gBAAgB,CAAC;IACxB;;OAEG;IACH,aAAa,CAAC,EAAE,gBAAgB,CAAC;IACjC;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAwLD,cAAM,QAAS,SAAQ,KAAK,CAAC,SAAS,CAAC,aAAa,CAAC;IACnD,GAAG,iCAAoC;IAEvC,kBAAkB,cAAe,aAAa,UAM5C;IAEF,MAAM,IAAI,KAAK,CAAC,SAAS;IAyCzB,OAAO,CAAC,WAAW,CAOjB;CACH;AAcD,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"MenuItem.d.ts","sourceRoot":"","sources":["../../../../menu/lib/MenuItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAU/B,OAAO,EAAC,gBAAgB,EAAC,MAAM,8BAA8B,CAAC;AAG9D,MAAM,WAAW,aAAc,SAAQ,KAAK,CAAC,gBAAgB,CAAC,aAAa,CAAC;IAC1E;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,CAAC;IAC5C;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,IAAI,CAAC,EAAE,gBAAgB,CAAC;IACxB;;OAEG;IACH,aAAa,CAAC,EAAE,gBAAgB,CAAC;IACjC;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAwLD,qBAAa,QAAS,SAAQ,KAAK,CAAC,SAAS,CAAC,aAAa,CAAC;IAC1D,GAAG,iCAAoC;IAEvC,kBAAkB,cAAe,aAAa,UAM5C;IAEF,MAAM,IAAI,KAAK,CAAC,SAAS;IAyCzB,OAAO,CAAC,WAAW,CAOjB;CACH"}
@@ -203,6 +203,7 @@ var MenuItem = /** @class */ (function (_super) {
203
203
  };
204
204
  return MenuItem;
205
205
  }(React.Component));
206
+ export { MenuItem };
206
207
  /**
207
208
  * If we destructure props, shouldClose will be undefined because the value is only applied for the render method only.
208
209
  * We have to use defaultProps so that the value of shouldClose is applied for every method and therefore references in the Menu component.
@@ -214,4 +215,3 @@ MenuItem.defaultProps = {
214
215
  shouldClose: true,
215
216
  role: 'menuitem',
216
217
  };
217
- export default MenuItem;
@@ -8,18 +8,21 @@ export interface PillProps extends BoxProps {
8
8
  variant?: 'default' | 'readOnly' | 'removable';
9
9
  }
10
10
  export declare const Pill: import("@workday/canvas-kit-react/common").ElementComponentM<"button", PillProps & Partial<{
11
- maxWidth: React.ReactText;
11
+ maxWidth: string | number;
12
12
  disabled: boolean;
13
+ id: string;
13
14
  }> & {} & {}, {
14
15
  state: {
15
- maxWidth: React.ReactText;
16
+ id: string;
17
+ maxWidth: string | number;
16
18
  disabled: boolean;
17
19
  };
18
20
  events: {};
19
21
  }> & {
20
22
  Context: React.Context<{
21
23
  state: {
22
- maxWidth: React.ReactText;
24
+ id: string;
25
+ maxWidth: string | number;
23
26
  disabled: boolean;
24
27
  };
25
28
  events: {};
@@ -27,14 +30,16 @@ export declare const Pill: import("@workday/canvas-kit-react/common").ElementCom
27
30
  } & {
28
31
  Icon: import("@workday/canvas-kit-react/common").ElementComponentM<"span", import("./PillIcon").PillIconProps, {
29
32
  state: {
30
- maxWidth: React.ReactText;
33
+ id: string;
34
+ maxWidth: string | number;
31
35
  disabled: boolean;
32
36
  };
33
37
  events: {};
34
38
  }>;
35
39
  Avatar: import("@workday/canvas-kit-react/common").ElementComponentM<"button", import("./PillAvatar").PillAvatarProps, {
36
40
  state: {
37
- maxWidth: React.ReactText;
41
+ id: string;
42
+ maxWidth: string | number;
38
43
  disabled: boolean;
39
44
  };
40
45
  events: {};
@@ -42,14 +47,16 @@ export declare const Pill: import("@workday/canvas-kit-react/common").ElementCom
42
47
  Count: import("@workday/canvas-kit-react/common").ElementComponent<"span", import("./PillCount").PillCountProps>;
43
48
  Label: import("@workday/canvas-kit-react/common").ElementComponentM<"span", import("./PillLabel").PillLabelProps, {
44
49
  state: {
45
- maxWidth: React.ReactText;
50
+ id: string;
51
+ maxWidth: string | number;
46
52
  disabled: boolean;
47
53
  };
48
54
  events: {};
49
55
  }>;
50
56
  IconButton: import("@workday/canvas-kit-react/common").ElementComponentM<"button", import("./PillIconButton").PillIconButtonProps, {
51
57
  state: {
52
- maxWidth: React.ReactText;
58
+ id: string;
59
+ maxWidth: string | number;
53
60
  disabled: boolean;
54
61
  };
55
62
  events: {};