@workday/canvas-kit-labs-react 8.0.0-alpha.125-next.4 → 8.0.0

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 (54) hide show
  1. package/combobox/index.ts +4 -0
  2. package/combobox/lib/AutocompleteList.tsx +3 -1
  3. package/combobox/lib/Combobox.tsx +6 -4
  4. package/combobox/lib/Status.tsx +3 -1
  5. package/combobox/package.json +2 -1
  6. package/common/package.json +2 -1
  7. package/dist/commonjs/combobox/index.d.ts +3 -0
  8. package/dist/commonjs/combobox/index.d.ts.map +1 -1
  9. package/dist/commonjs/combobox/index.js +7 -0
  10. package/dist/commonjs/combobox/lib/AutocompleteList.d.ts +2 -2
  11. package/dist/commonjs/combobox/lib/AutocompleteList.d.ts.map +1 -1
  12. package/dist/commonjs/combobox/lib/AutocompleteList.js +1 -2
  13. package/dist/commonjs/combobox/lib/Combobox.d.ts +2 -1
  14. package/dist/commonjs/combobox/lib/Combobox.d.ts.map +1 -1
  15. package/dist/commonjs/combobox/lib/Combobox.js +7 -7
  16. package/dist/commonjs/combobox/lib/Status.d.ts +2 -1
  17. package/dist/commonjs/combobox/lib/Status.d.ts.map +1 -1
  18. package/dist/commonjs/combobox/lib/Status.js +1 -2
  19. package/dist/commonjs/drawer/index.d.ts +4 -1
  20. package/dist/commonjs/drawer/index.d.ts.map +1 -1
  21. package/dist/commonjs/drawer/index.js +9 -3
  22. package/dist/commonjs/drawer/lib/Drawer.d.ts +1 -1
  23. package/dist/commonjs/drawer/lib/Drawer.d.ts.map +1 -1
  24. package/dist/commonjs/drawer/lib/Drawer.js +2 -2
  25. package/dist/commonjs/drawer/lib/DrawerHeader.d.ts +1 -1
  26. package/dist/commonjs/drawer/lib/DrawerHeader.d.ts.map +1 -1
  27. package/dist/commonjs/drawer/lib/DrawerHeader.js +1 -2
  28. package/dist/es6/combobox/index.d.ts +3 -0
  29. package/dist/es6/combobox/index.d.ts.map +1 -1
  30. package/dist/es6/combobox/index.js +3 -0
  31. package/dist/es6/combobox/lib/AutocompleteList.d.ts +2 -2
  32. package/dist/es6/combobox/lib/AutocompleteList.d.ts.map +1 -1
  33. package/dist/es6/combobox/lib/AutocompleteList.js +2 -1
  34. package/dist/es6/combobox/lib/Combobox.d.ts +2 -1
  35. package/dist/es6/combobox/lib/Combobox.d.ts.map +1 -1
  36. package/dist/es6/combobox/lib/Combobox.js +5 -4
  37. package/dist/es6/combobox/lib/Status.d.ts +2 -1
  38. package/dist/es6/combobox/lib/Status.d.ts.map +1 -1
  39. package/dist/es6/combobox/lib/Status.js +2 -1
  40. package/dist/es6/drawer/index.d.ts +4 -1
  41. package/dist/es6/drawer/index.d.ts.map +1 -1
  42. package/dist/es6/drawer/index.js +4 -1
  43. package/dist/es6/drawer/lib/Drawer.d.ts +1 -1
  44. package/dist/es6/drawer/lib/Drawer.d.ts.map +1 -1
  45. package/dist/es6/drawer/lib/Drawer.js +1 -1
  46. package/dist/es6/drawer/lib/DrawerHeader.d.ts +1 -1
  47. package/dist/es6/drawer/lib/DrawerHeader.d.ts.map +1 -1
  48. package/dist/es6/drawer/lib/DrawerHeader.js +1 -1
  49. package/drawer/index.ts +4 -1
  50. package/drawer/lib/Drawer.tsx +1 -1
  51. package/drawer/lib/DrawerHeader.tsx +1 -1
  52. package/drawer/package.json +2 -1
  53. package/package.json +5 -5
  54. package/search-form/package.json +2 -1
package/combobox/index.ts CHANGED
@@ -1 +1,5 @@
1
+ import Combobox from './lib/Combobox';
2
+
3
+ export default Combobox;
4
+ export {Combobox};
1
5
  export * from './lib/Combobox';
@@ -46,7 +46,7 @@ interface AutocompleteListProps {
46
46
  showGroupText: boolean;
47
47
  }
48
48
 
49
- export const AutocompleteList = ({
49
+ const AutocompleteList = ({
50
50
  autocompleteItems,
51
51
  comboboxId,
52
52
  selectedIndex,
@@ -135,3 +135,5 @@ export const AutocompleteList = ({
135
135
  );
136
136
  }
137
137
  };
138
+
139
+ export default AutocompleteList;
@@ -14,8 +14,8 @@ import {TertiaryButton, TertiaryButtonProps} from '@workday/canvas-kit-react/but
14
14
  import {xSmallIcon} from '@workday/canvas-system-icons-web';
15
15
  import {TextInputProps} from '@workday/canvas-kit-react/text-input';
16
16
  import flatten from 'lodash.flatten';
17
- import {AutocompleteList} from './AutocompleteList';
18
- import {Status} from './Status';
17
+ import AutocompleteList from './AutocompleteList';
18
+ import Status from './Status';
19
19
 
20
20
  export interface ComboBoxMenuItemGroup {
21
21
  // A non intractable header that logically separates autocomplete items
@@ -138,7 +138,7 @@ export const getOptionId = (baseId?: string, index?: number) =>
138
138
  export const getTextFromElement = (children?: React.ReactNode) => {
139
139
  let text = '';
140
140
  React.Children.map(children, child => {
141
- if (child == null || typeof child === 'boolean') {
141
+ if (child == null || typeof child === 'boolean' || child === {}) {
142
142
  text += '';
143
143
  } else if (typeof child === 'string' || typeof child === 'number') {
144
144
  text += child.toString();
@@ -161,7 +161,7 @@ const isValidSingleChild = (child: React.ReactNode) => {
161
161
  return React.isValidElement(child) && React.Children.only(child);
162
162
  };
163
163
 
164
- export const Combobox = ({
164
+ const Combobox = ({
165
165
  autocompleteItems,
166
166
  children,
167
167
  grow,
@@ -491,3 +491,5 @@ export const Combobox = ({
491
491
  </Container>
492
492
  );
493
493
  };
494
+
495
+ export default Combobox;
@@ -13,7 +13,7 @@ export interface StatusProps {
13
13
 
14
14
  const Container = styled('div')(accessibleHide);
15
15
 
16
- export const Status = ({
16
+ const Status = ({
17
17
  ariaLive = 'polite',
18
18
  role = 'status',
19
19
  ariaRelevant = 'additions',
@@ -44,3 +44,5 @@ export const Status = ({
44
44
  </Container>
45
45
  );
46
46
  };
47
+
48
+ export default Status;
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "main": "../dist/commonjs/combobox",
3
3
  "module": "../dist/es6/combobox",
4
- "sideEffects": false
4
+ "sideEffects": false,
5
+ "types": "../dist/es6/combobox"
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,2 +1,5 @@
1
+ import Combobox from './lib/Combobox';
2
+ export default Combobox;
3
+ export { Combobox };
1
4
  export * from './lib/Combobox';
2
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../combobox/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../combobox/index.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,gBAAgB,CAAC;AAEtC,eAAe,QAAQ,CAAC;AACxB,OAAO,EAAC,QAAQ,EAAC,CAAC;AAClB,cAAc,gBAAgB,CAAC"}
@@ -9,5 +9,12 @@ 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
+ };
12
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.Combobox = void 0;
17
+ var Combobox_1 = __importDefault(require("./lib/Combobox"));
18
+ exports.Combobox = Combobox_1.default;
19
+ exports.default = Combobox_1.default;
13
20
  __exportStar(require("./lib/Combobox"), exports);
@@ -27,6 +27,6 @@ interface AutocompleteListProps {
27
27
  */
28
28
  showGroupText: boolean;
29
29
  }
30
- export declare const AutocompleteList: ({ autocompleteItems, comboboxId, selectedIndex, handleAutocompleteClick, labelId, showGroupText, }: AutocompleteListProps) => JSX.Element | null;
31
- export {};
30
+ declare const AutocompleteList: ({ autocompleteItems, comboboxId, selectedIndex, handleAutocompleteClick, labelId, showGroupText, }: AutocompleteListProps) => JSX.Element | null;
31
+ export default AutocompleteList;
32
32
  //# sourceMappingURL=AutocompleteList.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AutocompleteList.d.ts","sourceRoot":"","sources":["../../../../combobox/lib/AutocompleteList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAIhD,OAAO,EAAC,aAAa,EAAC,MAAM,wCAAwC,CAAC;AACrE,OAAO,EAAC,qBAAqB,EAAiD,MAAM,YAAY,CAAC;AAYjG,UAAU,qBAAqB;IAC7B;;OAEG;IACH,iBAAiB,EAAE,KAAK,CAAC,YAAY,CAAC,aAAa,CAAC,EAAE,GAAG,qBAAqB,EAAE,CAAC;IACjF;;OAEG;IACH,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B;;OAEG;IACH,uBAAuB,EAAE,CACvB,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,EAAE,KAAK,CAAC,EAC3C,aAAa,EAAE,aAAa,KACzB,IAAI,CAAC;IACV;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,aAAa,EAAE,OAAO,CAAC;CACxB;AAED,eAAO,MAAM,gBAAgB,uGAO1B,qBAAqB,uBAiFvB,CAAC"}
1
+ {"version":3,"file":"AutocompleteList.d.ts","sourceRoot":"","sources":["../../../../combobox/lib/AutocompleteList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAIhD,OAAO,EAAC,aAAa,EAAC,MAAM,wCAAwC,CAAC;AACrE,OAAO,EAAC,qBAAqB,EAAiD,MAAM,YAAY,CAAC;AAYjG,UAAU,qBAAqB;IAC7B;;OAEG;IACH,iBAAiB,EAAE,KAAK,CAAC,YAAY,CAAC,aAAa,CAAC,EAAE,GAAG,qBAAqB,EAAE,CAAC;IACjF;;OAEG;IACH,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B;;OAEG;IACH,uBAAuB,EAAE,CACvB,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,EAAE,KAAK,CAAC,EAC3C,aAAa,EAAE,aAAa,KACzB,IAAI,CAAC;IACV;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,aAAa,EAAE,OAAO,CAAC;CACxB;AAED,QAAA,MAAM,gBAAgB,uGAOnB,qBAAqB,uBAiFvB,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -40,7 +40,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
40
40
  return (mod && mod.__esModule) ? mod : { "default": mod };
41
41
  };
42
42
  Object.defineProperty(exports, "__esModule", { value: true });
43
- exports.AutocompleteList = void 0;
44
43
  var react_1 = __importStar(require("react"));
45
44
  var styled_1 = __importDefault(require("@emotion/styled"));
46
45
  var tokens_1 = require("@workday/canvas-kit-react/tokens");
@@ -113,4 +112,4 @@ var AutocompleteList = function (_a) {
113
112
  })));
114
113
  }
115
114
  };
116
- exports.AutocompleteList = AutocompleteList;
115
+ exports.default = AutocompleteList;
@@ -58,5 +58,6 @@ export interface ComboboxProps extends GrowthBehavior, React.HTMLAttributes<HTML
58
58
  export declare const listBoxIdPart = "listbox";
59
59
  export declare const getOptionId: (baseId?: string | undefined, index?: number | undefined) => string;
60
60
  export declare const getTextFromElement: (children?: React.ReactNode) => string;
61
- export declare const Combobox: ({ autocompleteItems, children, grow, initialValue, onChange, onFocus, onBlur, showClearButton, clearButtonVariant, clearButtonAriaLabel, labelId, getStatusText, id, ...elemProps }: ComboboxProps) => JSX.Element;
61
+ declare const Combobox: ({ autocompleteItems, children, grow, initialValue, onChange, onFocus, onBlur, showClearButton, clearButtonVariant, clearButtonAriaLabel, labelId, getStatusText, id, ...elemProps }: ComboboxProps) => JSX.Element;
62
+ export default Combobox;
62
63
  //# sourceMappingURL=Combobox.d.ts.map
@@ -1 +1 @@
1
-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,CAAC,EAAE,GAAG,qBAAqB,EAAE,CAAC;IAClF;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IAC5D;;OAEG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC;IAClC;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC;IACjC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,aAAa,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,MAAM,CAAC;CAC/C;AA2DD,eAAO,MAAM,aAAa,YAAY,CAAC;AAEvC,eAAO,MAAM,WAAW,qEACc,CAAC;AAEvC,eAAO,MAAM,kBAAkB,cAAe,MAAM,SAAS,WAc5D,CAAC;AAYF,QAAA,MAAM,QAAQ,wLAeX,aAAa,gBA0Tf,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -44,7 +44,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
44
44
  return (mod && mod.__esModule) ? mod : { "default": mod };
45
45
  };
46
46
  Object.defineProperty(exports, "__esModule", { value: true });
47
- exports.Combobox = exports.getTextFromElement = exports.getOptionId = exports.listBoxIdPart = void 0;
47
+ exports.getTextFromElement = exports.getOptionId = exports.listBoxIdPart = void 0;
48
48
  var react_1 = __importStar(require("react"));
49
49
  var react_2 = require("@emotion/react");
50
50
  var common_1 = require("@workday/canvas-kit-react/common");
@@ -53,8 +53,8 @@ var card_1 = require("@workday/canvas-kit-react/card");
53
53
  var button_1 = require("@workday/canvas-kit-react/button");
54
54
  var canvas_system_icons_web_1 = require("@workday/canvas-system-icons-web");
55
55
  var lodash_flatten_1 = __importDefault(require("lodash.flatten"));
56
- var AutocompleteList_1 = require("./AutocompleteList");
57
- var Status_1 = require("./Status");
56
+ var AutocompleteList_1 = __importDefault(require("./AutocompleteList"));
57
+ var Status_1 = __importDefault(require("./Status"));
58
58
  var Container = common_1.styled('div')({
59
59
  display: 'inline-block',
60
60
  }, function (_a) {
@@ -116,7 +116,7 @@ exports.getOptionId = getOptionId;
116
116
  var getTextFromElement = function (children) {
117
117
  var text = '';
118
118
  react_1.default.Children.map(children, function (child) {
119
- if (child == null || typeof child === 'boolean') {
119
+ if (child == null || typeof child === 'boolean' || child === {}) {
120
120
  text += '';
121
121
  }
122
122
  else if (typeof child === 'string' || typeof child === 'number') {
@@ -367,7 +367,7 @@ var Combobox = function (_a) {
367
367
  showClearButton && (react_1.default.createElement(ResetButton, { shouldShow: !!value, "aria-label": clearButtonAriaLabel, icon: canvas_system_icons_web_1.xSmallIcon, variant: clearButtonVariant, onClick: resetSearchInput, onBlur: handleBlur, size: "small", type: "button" })),
368
368
  showingAutocomplete && autocompleteItems && (react_1.default.createElement(MenuContainer, { padding: tokens_1.space.zero, depth: 3 },
369
369
  react_1.default.createElement(card_1.Card.Body, null,
370
- react_1.default.createElement(AutocompleteList_1.AutocompleteList, { comboboxId: componentId, autocompleteItems: autocompleteItems, selectedIndex: selectedAutocompleteIndex, handleAutocompleteClick: handleAutocompleteClick, labelId: formLabelId, showGroupText: showGroupText }))))),
371
- react_1.default.createElement(Status_1.Status, { announcementText: announcementText })));
370
+ react_1.default.createElement(AutocompleteList_1.default, { comboboxId: componentId, autocompleteItems: autocompleteItems, selectedIndex: selectedAutocompleteIndex, handleAutocompleteClick: handleAutocompleteClick, labelId: formLabelId, showGroupText: showGroupText }))))),
371
+ react_1.default.createElement(Status_1.default, { announcementText: announcementText })));
372
372
  };
373
- exports.Combobox = Combobox;
373
+ exports.default = Combobox;
@@ -6,5 +6,6 @@ export interface StatusProps {
6
6
  expireMilliseconds?: number;
7
7
  announcementText?: string;
8
8
  }
9
- export declare const Status: ({ ariaLive, role, ariaRelevant, expireMilliseconds, announcementText, ariaAtomic, }: StatusProps) => JSX.Element;
9
+ declare const Status: ({ ariaLive, role, ariaRelevant, expireMilliseconds, announcementText, ariaAtomic, }: StatusProps) => JSX.Element;
10
+ export default Status;
10
11
  //# sourceMappingURL=Status.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Status.d.ts","sourceRoot":"","sources":["../../../../combobox/lib/Status.tsx"],"names":[],"mappings":"AAIA,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,EAAE,QAAQ,GAAG,WAAW,GAAG,KAAK,CAAC;IAC1C,IAAI,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,OAAO,GAAG,aAAa,GAAG,SAAS,GAAG,OAAO,CAAC;IACxE,YAAY,CAAC,EAAE,WAAW,GAAG,gBAAgB,GAAG,KAAK,GAAG,UAAU,GAAG,MAAM,CAAC;IAC5E,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAID,eAAO,MAAM,MAAM,wFAOhB,WAAW,gBAuBb,CAAC"}
1
+ {"version":3,"file":"Status.d.ts","sourceRoot":"","sources":["../../../../combobox/lib/Status.tsx"],"names":[],"mappings":"AAIA,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,EAAE,QAAQ,GAAG,WAAW,GAAG,KAAK,CAAC;IAC1C,IAAI,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,OAAO,GAAG,aAAa,GAAG,SAAS,GAAG,OAAO,CAAC;IACxE,YAAY,CAAC,EAAE,WAAW,GAAG,gBAAgB,GAAG,KAAK,GAAG,UAAU,GAAG,MAAM,CAAC;IAC5E,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAID,QAAA,MAAM,MAAM,wFAOT,WAAW,gBAuBb,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -22,7 +22,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
22
22
  return (mod && mod.__esModule) ? mod : { "default": mod };
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.Status = void 0;
26
25
  var react_1 = __importStar(require("react"));
27
26
  var styled_1 = __importDefault(require("@emotion/styled"));
28
27
  var common_1 = require("@workday/canvas-kit-react/common");
@@ -42,4 +41,4 @@ var Status = function (_a) {
42
41
  }, [announcementText, expireMilliseconds]);
43
42
  return (react_1.default.createElement(Container, { "aria-live": ariaLive, role: role, "aria-relevant": ariaRelevant, "aria-atomic": ariaAtomic }, displayText));
44
43
  };
45
- exports.Status = Status;
44
+ exports.default = Status;
@@ -1,3 +1,6 @@
1
- export { DrawerHeader } from './lib/DrawerHeader';
1
+ import Drawer from './lib/Drawer';
2
+ import DrawerHeader from './lib/DrawerHeader';
3
+ export { Drawer, DrawerHeader };
4
+ export default Drawer;
2
5
  export * from './lib/Drawer';
3
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../drawer/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,oBAAoB,CAAC;AAChD,cAAc,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../drawer/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,YAAY,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAC,MAAM,EAAE,YAAY,EAAC,CAAC;AAC9B,eAAe,MAAM,CAAC;AACtB,cAAc,cAAc,CAAC"}
@@ -9,8 +9,14 @@ 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
+ };
12
15
  Object.defineProperty(exports, "__esModule", { value: true });
13
- exports.DrawerHeader = void 0;
14
- var DrawerHeader_1 = require("./lib/DrawerHeader");
15
- Object.defineProperty(exports, "DrawerHeader", { enumerable: true, get: function () { return DrawerHeader_1.DrawerHeader; } });
16
+ exports.DrawerHeader = exports.Drawer = void 0;
17
+ var Drawer_1 = __importDefault(require("./lib/Drawer"));
18
+ exports.Drawer = Drawer_1.default;
19
+ var DrawerHeader_1 = __importDefault(require("./lib/DrawerHeader"));
20
+ exports.DrawerHeader = DrawerHeader_1.default;
21
+ exports.default = Drawer_1.default;
16
22
  __exportStar(require("./lib/Drawer"), exports);
@@ -42,7 +42,7 @@ export declare enum DrawerDirection {
42
42
  Left = 0,
43
43
  Right = 1
44
44
  }
45
- export declare class Drawer extends React.Component<DrawerProps, {}> {
45
+ export default class Drawer extends React.Component<DrawerProps, {}> {
46
46
  static OpenDirection: typeof DrawerDirection;
47
47
  render(): JSX.Element;
48
48
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Drawer.d.ts","sourceRoot":"","sources":["../../../../drawer/lib/Drawer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAgB,iBAAiB,EAAC,MAAM,kCAAkC,CAAC;AAElF,MAAM,WAAW,WAAY,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACvE;;;OAGG;IACH,OAAO,CAAC,EAAE,iBAAiB,CAAC;IAC5B;;;OAGG;IACH,aAAa,CAAC,EAAE,eAAe,CAAC;IAChC;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC;IAC5B;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,oBAAY,eAAe;IACzB,IAAI,IAAA;IACJ,KAAK,IAAA;CACN;AA4CD,qBAAa,MAAO,SAAQ,KAAK,CAAC,SAAS,CAAC,WAAW,EAAE,EAAE,CAAC;IAC1D,MAAM,CAAC,aAAa,yBAAmB;IAEhC,MAAM;CAyBd"}
1
+ {"version":3,"file":"Drawer.d.ts","sourceRoot":"","sources":["../../../../drawer/lib/Drawer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAgB,iBAAiB,EAAC,MAAM,kCAAkC,CAAC;AAElF,MAAM,WAAW,WAAY,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACvE;;;OAGG;IACH,OAAO,CAAC,EAAE,iBAAiB,CAAC;IAC5B;;;OAGG;IACH,aAAa,CAAC,EAAE,eAAe,CAAC;IAChC;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC;IAC5B;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,oBAAY,eAAe;IACzB,IAAI,IAAA;IACJ,KAAK,IAAA;CACN;AA4CD,MAAM,CAAC,OAAO,OAAO,MAAO,SAAQ,KAAK,CAAC,SAAS,CAAC,WAAW,EAAE,EAAE,CAAC;IAClE,MAAM,CAAC,aAAa,yBAAmB;IAEhC,MAAM;CAyBd"}
@@ -57,7 +57,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
57
57
  return (mod && mod.__esModule) ? mod : { "default": mod };
58
58
  };
59
59
  Object.defineProperty(exports, "__esModule", { value: true });
60
- exports.Drawer = exports.DrawerDirection = void 0;
60
+ exports.DrawerDirection = void 0;
61
61
  var React = __importStar(require("react"));
62
62
  var styled_1 = __importDefault(require("@emotion/styled"));
63
63
  var tokens_1 = require("@workday/canvas-kit-react/tokens");
@@ -121,4 +121,4 @@ var Drawer = /** @class */ (function (_super) {
121
121
  Drawer.OpenDirection = DrawerDirection;
122
122
  return Drawer;
123
123
  }(React.Component));
124
- exports.Drawer = Drawer;
124
+ exports.default = Drawer;
@@ -32,7 +32,7 @@ export interface DrawerHeaderProps extends React.HTMLAttributes<HTMLDivElement>
32
32
  */
33
33
  id?: string;
34
34
  }
35
- export declare class DrawerHeader extends React.Component<DrawerHeaderProps, {}> {
35
+ export default class DrawerHeader extends React.Component<DrawerHeaderProps, {}> {
36
36
  render(): JSX.Element;
37
37
  }
38
38
  //# sourceMappingURL=DrawerHeader.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DrawerHeader.d.ts","sourceRoot":"","sources":["../../../../drawer/lib/DrawerHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAsB,WAAW,EAAa,MAAM,kCAAkC,CAAC;AAI9F,MAAM,WAAW,iBAAkB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAC7E;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;IACrD;;;OAGG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,WAAW,CAAC,EAAE,WAAW,GAAG,MAAM,CAAC;IACnC;;OAEG;IACH,WAAW,CAAC,EAAE,WAAW,GAAG,MAAM,CAAC;IACnC;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AAsCD,qBAAa,YAAa,SAAQ,KAAK,CAAC,SAAS,CAAC,iBAAiB,EAAE,EAAE,CAAC;IAC/D,MAAM;CA4Bd"}
1
+ {"version":3,"file":"DrawerHeader.d.ts","sourceRoot":"","sources":["../../../../drawer/lib/DrawerHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAsB,WAAW,EAAa,MAAM,kCAAkC,CAAC;AAI9F,MAAM,WAAW,iBAAkB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAC7E;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;IACrD;;;OAGG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,WAAW,CAAC,EAAE,WAAW,GAAG,MAAM,CAAC;IACnC;;OAEG;IACH,WAAW,CAAC,EAAE,WAAW,GAAG,MAAM,CAAC;IACnC;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AAsCD,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,KAAK,CAAC,SAAS,CAAC,iBAAiB,EAAE,EAAE,CAAC;IACvE,MAAM;CA4Bd"}
@@ -57,7 +57,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
57
57
  return (mod && mod.__esModule) ? mod : { "default": mod };
58
58
  };
59
59
  Object.defineProperty(exports, "__esModule", { value: true });
60
- exports.DrawerHeader = void 0;
61
60
  var React = __importStar(require("react"));
62
61
  var styled_1 = __importDefault(require("@emotion/styled"));
63
62
  var tokens_1 = require("@workday/canvas-kit-react/tokens");
@@ -103,4 +102,4 @@ var DrawerHeader = /** @class */ (function (_super) {
103
102
  };
104
103
  return DrawerHeader;
105
104
  }(React.Component));
106
- exports.DrawerHeader = DrawerHeader;
105
+ exports.default = DrawerHeader;
@@ -1,2 +1,5 @@
1
+ import Combobox from './lib/Combobox';
2
+ export default Combobox;
3
+ export { Combobox };
1
4
  export * from './lib/Combobox';
2
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../combobox/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../combobox/index.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,gBAAgB,CAAC;AAEtC,eAAe,QAAQ,CAAC;AACxB,OAAO,EAAC,QAAQ,EAAC,CAAC;AAClB,cAAc,gBAAgB,CAAC"}
@@ -1 +1,4 @@
1
+ import Combobox from './lib/Combobox';
2
+ export default Combobox;
3
+ export { Combobox };
1
4
  export * from './lib/Combobox';
@@ -27,6 +27,6 @@ interface AutocompleteListProps {
27
27
  */
28
28
  showGroupText: boolean;
29
29
  }
30
- export declare const AutocompleteList: ({ autocompleteItems, comboboxId, selectedIndex, handleAutocompleteClick, labelId, showGroupText, }: AutocompleteListProps) => JSX.Element | null;
31
- export {};
30
+ declare const AutocompleteList: ({ autocompleteItems, comboboxId, selectedIndex, handleAutocompleteClick, labelId, showGroupText, }: AutocompleteListProps) => JSX.Element | null;
31
+ export default AutocompleteList;
32
32
  //# sourceMappingURL=AutocompleteList.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AutocompleteList.d.ts","sourceRoot":"","sources":["../../../../combobox/lib/AutocompleteList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAIhD,OAAO,EAAC,aAAa,EAAC,MAAM,wCAAwC,CAAC;AACrE,OAAO,EAAC,qBAAqB,EAAiD,MAAM,YAAY,CAAC;AAYjG,UAAU,qBAAqB;IAC7B;;OAEG;IACH,iBAAiB,EAAE,KAAK,CAAC,YAAY,CAAC,aAAa,CAAC,EAAE,GAAG,qBAAqB,EAAE,CAAC;IACjF;;OAEG;IACH,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B;;OAEG;IACH,uBAAuB,EAAE,CACvB,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,EAAE,KAAK,CAAC,EAC3C,aAAa,EAAE,aAAa,KACzB,IAAI,CAAC;IACV;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,aAAa,EAAE,OAAO,CAAC;CACxB;AAED,eAAO,MAAM,gBAAgB,uGAO1B,qBAAqB,uBAiFvB,CAAC"}
1
+ {"version":3,"file":"AutocompleteList.d.ts","sourceRoot":"","sources":["../../../../combobox/lib/AutocompleteList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAIhD,OAAO,EAAC,aAAa,EAAC,MAAM,wCAAwC,CAAC;AACrE,OAAO,EAAC,qBAAqB,EAAiD,MAAM,YAAY,CAAC;AAYjG,UAAU,qBAAqB;IAC7B;;OAEG;IACH,iBAAiB,EAAE,KAAK,CAAC,YAAY,CAAC,aAAa,CAAC,EAAE,GAAG,qBAAqB,EAAE,CAAC;IACjF;;OAEG;IACH,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B;;OAEG;IACH,uBAAuB,EAAE,CACvB,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,EAAE,KAAK,CAAC,EAC3C,aAAa,EAAE,aAAa,KACzB,IAAI,CAAC;IACV;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,aAAa,EAAE,OAAO,CAAC;CACxB;AAED,QAAA,MAAM,gBAAgB,uGAOnB,qBAAqB,uBAiFvB,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
@@ -29,7 +29,7 @@ var Autocomplete = styled('ul')({
29
29
  padding: space.xxs + " 0",
30
30
  });
31
31
  var AccessibleHide = styled('span')(accessibleHide);
32
- export var AutocompleteList = function (_a) {
32
+ var AutocompleteList = function (_a) {
33
33
  var autocompleteItems = _a.autocompleteItems, comboboxId = _a.comboboxId, selectedIndex = _a.selectedIndex, handleAutocompleteClick = _a.handleAutocompleteClick, labelId = _a.labelId, showGroupText = _a.showGroupText;
34
34
  var randomComponentId = useState(generateUniqueId)[0]; // https://codesandbox.io/s/p2ndq
35
35
  var componentId = comboboxId || randomComponentId;
@@ -88,3 +88,4 @@ export var AutocompleteList = function (_a) {
88
88
  })));
89
89
  }
90
90
  };
91
+ export default AutocompleteList;
@@ -58,5 +58,6 @@ export interface ComboboxProps extends GrowthBehavior, React.HTMLAttributes<HTML
58
58
  export declare const listBoxIdPart = "listbox";
59
59
  export declare const getOptionId: (baseId?: string | undefined, index?: number | undefined) => string;
60
60
  export declare const getTextFromElement: (children?: React.ReactNode) => string;
61
- export declare const Combobox: ({ autocompleteItems, children, grow, initialValue, onChange, onFocus, onBlur, showClearButton, clearButtonVariant, clearButtonAriaLabel, labelId, getStatusText, id, ...elemProps }: ComboboxProps) => JSX.Element;
61
+ declare const Combobox: ({ autocompleteItems, children, grow, initialValue, onChange, onFocus, onBlur, showClearButton, clearButtonVariant, clearButtonAriaLabel, labelId, getStatusText, id, ...elemProps }: ComboboxProps) => JSX.Element;
62
+ export default Combobox;
62
63
  //# sourceMappingURL=Combobox.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Combobox.d.ts","sourceRoot":"","sources":["../../../../combobox/lib/Combobox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkE,MAAM,OAAO,CAAC;AAEvF,OAAO,EACL,cAAc,EAKf,MAAM,kCAAkC,CAAC;AAE1C,OAAO,EAAC,aAAa,EAAC,MAAM,wCAAwC,CAAC;AAErE,OAAO,EAAiB,mBAAmB,EAAC,MAAM,kCAAkC,CAAC;AAErF,OAAO,EAAC,cAAc,EAAC,MAAM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,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,aAAa,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,MAAM,CAAC;CAC/C;AA2DD,eAAO,MAAM,aAAa,YAAY,CAAC;AAEvC,eAAO,MAAM,WAAW,qEACc,CAAC;AAEvC,eAAO,MAAM,kBAAkB,cAAe,MAAM,SAAS,WAc5D,CAAC;AAYF,QAAA,MAAM,QAAQ,wLAeX,aAAa,gBA0Tf,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -28,8 +28,8 @@ import { Card } from '@workday/canvas-kit-react/card';
28
28
  import { TertiaryButton } from '@workday/canvas-kit-react/button';
29
29
  import { xSmallIcon } from '@workday/canvas-system-icons-web';
30
30
  import flatten from 'lodash.flatten';
31
- import { AutocompleteList } from './AutocompleteList';
32
- import { Status } from './Status';
31
+ import AutocompleteList from './AutocompleteList';
32
+ import Status from './Status';
33
33
  var Container = styled('div')({
34
34
  display: 'inline-block',
35
35
  }, function (_a) {
@@ -90,7 +90,7 @@ export var getOptionId = function (baseId, index) {
90
90
  export var getTextFromElement = function (children) {
91
91
  var text = '';
92
92
  React.Children.map(children, function (child) {
93
- if (child == null || typeof child === 'boolean') {
93
+ if (child == null || typeof child === 'boolean' || child === {}) {
94
94
  text += '';
95
95
  }
96
96
  else if (typeof child === 'string' || typeof child === 'number') {
@@ -111,7 +111,7 @@ var buildStatusString = function (listCount) {
111
111
  var isValidSingleChild = function (child) {
112
112
  return React.isValidElement(child) && React.Children.only(child);
113
113
  };
114
- export var Combobox = function (_a) {
114
+ var Combobox = function (_a) {
115
115
  var autocompleteItems = _a.autocompleteItems, children = _a.children, grow = _a.grow, initialValue = _a.initialValue, onChange = _a.onChange, onFocus = _a.onFocus, onBlur = _a.onBlur, showClearButton = _a.showClearButton, _b = _a.clearButtonVariant, clearButtonVariant = _b === void 0 ? undefined : _b, _c = _a.clearButtonAriaLabel, clearButtonAriaLabel = _c === void 0 ? "Reset Search Input" : _c, labelId = _a.labelId, _d = _a.getStatusText, getStatusText = _d === void 0 ? buildStatusString : _d, id = _a.id, elemProps = __rest(_a, ["autocompleteItems", "children", "grow", "initialValue", "onChange", "onFocus", "onBlur", "showClearButton", "clearButtonVariant", "clearButtonAriaLabel", "labelId", "getStatusText", "id"]);
116
116
  var _e = useState(false), isOpened = _e[0], setIsOpened = _e[1];
117
117
  var _f = useState(''), value = _f[0], _setValue = _f[1]; // Don't call _setValue directly instead call setInputValue to make sure onChange fires correctly
@@ -343,3 +343,4 @@ export var Combobox = function (_a) {
343
343
  React.createElement(AutocompleteList, { comboboxId: componentId, autocompleteItems: autocompleteItems, selectedIndex: selectedAutocompleteIndex, handleAutocompleteClick: handleAutocompleteClick, labelId: formLabelId, showGroupText: showGroupText }))))),
344
344
  React.createElement(Status, { announcementText: announcementText })));
345
345
  };
346
+ export default Combobox;
@@ -6,5 +6,6 @@ export interface StatusProps {
6
6
  expireMilliseconds?: number;
7
7
  announcementText?: string;
8
8
  }
9
- export declare const Status: ({ ariaLive, role, ariaRelevant, expireMilliseconds, announcementText, ariaAtomic, }: StatusProps) => JSX.Element;
9
+ declare const Status: ({ ariaLive, role, ariaRelevant, expireMilliseconds, announcementText, ariaAtomic, }: StatusProps) => JSX.Element;
10
+ export default Status;
10
11
  //# sourceMappingURL=Status.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Status.d.ts","sourceRoot":"","sources":["../../../../combobox/lib/Status.tsx"],"names":[],"mappings":"AAIA,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,EAAE,QAAQ,GAAG,WAAW,GAAG,KAAK,CAAC;IAC1C,IAAI,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,OAAO,GAAG,aAAa,GAAG,SAAS,GAAG,OAAO,CAAC;IACxE,YAAY,CAAC,EAAE,WAAW,GAAG,gBAAgB,GAAG,KAAK,GAAG,UAAU,GAAG,MAAM,CAAC;IAC5E,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAID,eAAO,MAAM,MAAM,wFAOhB,WAAW,gBAuBb,CAAC"}
1
+ {"version":3,"file":"Status.d.ts","sourceRoot":"","sources":["../../../../combobox/lib/Status.tsx"],"names":[],"mappings":"AAIA,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,EAAE,QAAQ,GAAG,WAAW,GAAG,KAAK,CAAC;IAC1C,IAAI,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,OAAO,GAAG,aAAa,GAAG,SAAS,GAAG,OAAO,CAAC;IACxE,YAAY,CAAC,EAAE,WAAW,GAAG,gBAAgB,GAAG,KAAK,GAAG,UAAU,GAAG,MAAM,CAAC;IAC5E,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAID,QAAA,MAAM,MAAM,wFAOT,WAAW,gBAuBb,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -2,7 +2,7 @@ import React, { useState, useEffect } from 'react';
2
2
  import styled from '@emotion/styled';
3
3
  import { accessibleHide } from '@workday/canvas-kit-react/common';
4
4
  var Container = styled('div')(accessibleHide);
5
- export var Status = function (_a) {
5
+ var Status = function (_a) {
6
6
  var _b = _a.ariaLive, ariaLive = _b === void 0 ? 'polite' : _b, _c = _a.role, role = _c === void 0 ? 'status' : _c, _d = _a.ariaRelevant, ariaRelevant = _d === void 0 ? 'additions' : _d, _e = _a.expireMilliseconds, expireMilliseconds = _e === void 0 ? 500 : _e, _f = _a.announcementText, announcementText = _f === void 0 ? '' : _f, ariaAtomic = _a.ariaAtomic;
7
7
  var _g = useState(announcementText), displayText = _g[0], setDisplayText = _g[1];
8
8
  useEffect(function () {
@@ -17,3 +17,4 @@ export var Status = function (_a) {
17
17
  }, [announcementText, expireMilliseconds]);
18
18
  return (React.createElement(Container, { "aria-live": ariaLive, role: role, "aria-relevant": ariaRelevant, "aria-atomic": ariaAtomic }, displayText));
19
19
  };
20
+ export default Status;
@@ -1,3 +1,6 @@
1
- export { DrawerHeader } from './lib/DrawerHeader';
1
+ import Drawer from './lib/Drawer';
2
+ import DrawerHeader from './lib/DrawerHeader';
3
+ export { Drawer, DrawerHeader };
4
+ export default Drawer;
2
5
  export * from './lib/Drawer';
3
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../drawer/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,oBAAoB,CAAC;AAChD,cAAc,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../drawer/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,YAAY,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAC,MAAM,EAAE,YAAY,EAAC,CAAC;AAC9B,eAAe,MAAM,CAAC;AACtB,cAAc,cAAc,CAAC"}
@@ -1,2 +1,5 @@
1
- export { DrawerHeader } from './lib/DrawerHeader';
1
+ import Drawer from './lib/Drawer';
2
+ import DrawerHeader from './lib/DrawerHeader';
3
+ export { Drawer, DrawerHeader };
4
+ export default Drawer;
2
5
  export * from './lib/Drawer';
@@ -42,7 +42,7 @@ export declare enum DrawerDirection {
42
42
  Left = 0,
43
43
  Right = 1
44
44
  }
45
- export declare class Drawer extends React.Component<DrawerProps, {}> {
45
+ export default class Drawer extends React.Component<DrawerProps, {}> {
46
46
  static OpenDirection: typeof DrawerDirection;
47
47
  render(): JSX.Element;
48
48
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Drawer.d.ts","sourceRoot":"","sources":["../../../../drawer/lib/Drawer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAgB,iBAAiB,EAAC,MAAM,kCAA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AM,CAAC;IAC3B;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,oBAAY,eAAe;IACzB,IAAI,IAAA;IACJ,KAAK,IAAA;CACN;AA4CD,MAAM,CAAC,OAAO,OAAO,MAAO,SAAQ,KAAK,CAAC,SAAS,CAAC,WAAW,EAAE,EAAE,CAAC;IAClE,MAAM,CAAC,aAAa,yBAAmB;IAEhC,MAAM;CAyBd"}
@@ -96,4 +96,4 @@ var Drawer = /** @class */ (function (_super) {
96
96
  Drawer.OpenDirection = DrawerDirection;
97
97
  return Drawer;
98
98
  }(React.Component));
99
- export { Drawer };
99
+ export default Drawer;
@@ -32,7 +32,7 @@ export interface DrawerHeaderProps extends React.HTMLAttributes<HTMLDivElement>
32
32
  */
33
33
  id?: string;
34
34
  }
35
- export declare class DrawerHeader extends React.Component<DrawerHeaderProps, {}> {
35
+ export default class DrawerHeader extends React.Component<DrawerHeaderProps, {}> {
36
36
  render(): JSX.Element;
37
37
  }
38
38
  //# sourceMappingURL=DrawerHeader.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DrawerHeader.d.ts","sourceRoot":"","sources":["../../../../drawer/lib/DrawerHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAsB,WAAW,EAAa,MAAM,kCAAkC,CAAC;AAI9F,MAAM,WAAW,iBAAkB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAC7E;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;IACrD;;;OAGG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,WAAW,CAAC,EAAE,WAAW,GAAG,MAAM,CAAC;IACnC;;OAEG;IACH,WAAW,CAAC,EAAE,WAAW,GAAG,MAAM,CAAC;IACnC;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AAsCD,qBAAa,YAAa,SAAQ,KAAK,CAAC,SAAS,CAAC,iBAAiB,EAAE,EAAE,CAAC;IAC/D,MAAM;CA4Bd"}
1
+ {"version":3,"file":"DrawerHeader.d.ts","sourceRoot":"","sources":["../../../../drawer/lib/DrawerHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAsB,WAAW,EAAa,MAAM,kCAAkC,CAAC;AAI9F,MAAM,WAAW,iBAAkB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAC7E;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;IACrD;;;OAGG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;OAEG;IACH,WAAW,CAAC,EAAE,WAAW,GAAG,MAAM,CAAC;IACnC;;OAEG;IACH,WAAW,CAAC,EAAE,WAAW,GAAG,MAAM,CAAC;IACnC;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AAsCD,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,KAAK,CAAC,SAAS,CAAC,iBAAiB,EAAE,EAAE,CAAC;IACvE,MAAM;CA4Bd"}
@@ -78,4 +78,4 @@ var DrawerHeader = /** @class */ (function (_super) {
78
78
  };
79
79
  return DrawerHeader;
80
80
  }(React.Component));
81
- export { DrawerHeader };
81
+ export default DrawerHeader;
package/drawer/index.ts CHANGED
@@ -1,2 +1,5 @@
1
- export {DrawerHeader} from './lib/DrawerHeader';
1
+ import Drawer from './lib/Drawer';
2
+ import DrawerHeader from './lib/DrawerHeader';
3
+ export {Drawer, DrawerHeader};
4
+ export default Drawer;
2
5
  export * from './lib/Drawer';
@@ -88,7 +88,7 @@ const ChildrenContainer = styled('div')<Pick<DrawerProps, 'padding'>>(
88
88
  })
89
89
  );
90
90
 
91
- export class Drawer extends React.Component<DrawerProps, {}> {
91
+ export default class Drawer extends React.Component<DrawerProps, {}> {
92
92
  static OpenDirection = DrawerDirection;
93
93
 
94
94
  public render() {
@@ -73,7 +73,7 @@ const CloseButton = styled(TertiaryButton)({
73
73
  margin: '-8px', // for inverse and plain button, we always want this margin
74
74
  });
75
75
 
76
- export class DrawerHeader extends React.Component<DrawerHeaderProps, {}> {
76
+ export default class DrawerHeader extends React.Component<DrawerHeaderProps, {}> {
77
77
  public render() {
78
78
  const {
79
79
  closeIconAriaLabel = 'Close',
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "main": "../dist/commonjs/drawer",
3
3
  "module": "../dist/es6/drawer",
4
- "sideEffects": false
4
+ "sideEffects": false,
5
+ "types": "../dist/es6/drawer"
5
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@workday/canvas-kit-labs-react",
3
- "version": "8.0.0-alpha.125-next.4+9fedde9c",
3
+ "version": "8.0.0",
4
4
  "description": "Canvas Kit Labs is an incubator for new and experimental components. Since we have a rather rigorous process for getting components in at a production level, it can be valuable to make them available earlier while we continuously iterate on the API/functionality. The Labs modules allow us to do that as needed.",
5
5
  "author": "Workday, Inc. (https://www.workday.com)",
6
6
  "license": "Apache-2.0",
@@ -41,13 +41,13 @@
41
41
  "workday"
42
42
  ],
43
43
  "peerDependencies": {
44
- "react": "^17.0 || ^18.0"
44
+ "react": "^16.8 || ^17.0"
45
45
  },
46
46
  "dependencies": {
47
47
  "@emotion/react": "^11.7.1",
48
48
  "@emotion/styled": "^11.6.0",
49
- "@workday/canvas-kit-preview-react": "^8.0.0-alpha.125-next.4+9fedde9c",
50
- "@workday/canvas-kit-react": "^8.0.0-alpha.125-next.4+9fedde9c",
49
+ "@workday/canvas-kit-preview-react": "^8.0.0",
50
+ "@workday/canvas-kit-react": "^8.0.0",
51
51
  "@workday/canvas-system-icons-web": "^3.0.0",
52
52
  "chroma-js": "^2.1.0",
53
53
  "lodash.flatten": "^4.4.0",
@@ -56,5 +56,5 @@
56
56
  "devDependencies": {
57
57
  "@types/lodash.flatten": "^4.4.6"
58
58
  },
59
- "gitHead": "9fedde9cca3026cd0435449480d5004fc929374b"
59
+ "gitHead": "433a9d272804ceed26191ac1ef629d61fab4dcb4"
60
60
  }
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "main": "../dist/commonjs/search-form",
3
3
  "module": "../dist/es6/search-form",
4
- "sideEffects": false
4
+ "sideEffects": false,
5
+ "types": "../dist/es6/search-form"
5
6
  }