@workday/canvas-kit-labs-react 5.3.0-next.2 → 5.3.0-next.24

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/combobox/lib/AutocompleteList.tsx +5 -2
  2. package/combobox/lib/Combobox.tsx +0 -1
  3. package/common/README.md +32 -0
  4. package/common/lib/theming/index.ts +1 -0
  5. package/common/lib/theming/useThemedRing.ts +78 -0
  6. package/dist/commonjs/combobox/lib/AutocompleteList.d.ts.map +1 -1
  7. package/dist/commonjs/combobox/lib/AutocompleteList.js +5 -2
  8. package/dist/commonjs/combobox/lib/Combobox.d.ts.map +1 -1
  9. package/dist/commonjs/combobox/lib/Combobox.js +0 -1
  10. package/dist/commonjs/common/lib/theming/index.d.ts +1 -0
  11. package/dist/commonjs/common/lib/theming/index.d.ts.map +1 -1
  12. package/dist/commonjs/common/lib/theming/index.js +1 -0
  13. package/dist/commonjs/common/lib/theming/useThemedRing.d.ts +11 -0
  14. package/dist/commonjs/common/lib/theming/useThemedRing.d.ts.map +1 -0
  15. package/dist/commonjs/common/lib/theming/useThemedRing.js +61 -0
  16. package/dist/commonjs/header/index.d.ts +5 -5
  17. package/dist/commonjs/header/index.d.ts.map +1 -1
  18. package/dist/commonjs/header/index.js +2 -2
  19. package/dist/commonjs/header/lib/GlobalHeader.d.ts +11 -2
  20. package/dist/commonjs/header/lib/GlobalHeader.d.ts.map +1 -1
  21. package/dist/commonjs/header/lib/GlobalHeader.js +19 -8
  22. package/dist/commonjs/header/lib/Header.d.ts +17 -8
  23. package/dist/commonjs/header/lib/Header.d.ts.map +1 -1
  24. package/dist/commonjs/header/lib/Header.js +27 -14
  25. package/dist/commonjs/header/lib/parts/DubLogoTitle.d.ts +13 -4
  26. package/dist/commonjs/header/lib/parts/DubLogoTitle.d.ts.map +1 -1
  27. package/dist/commonjs/header/lib/parts/DubLogoTitle.js +22 -11
  28. package/dist/commonjs/header/lib/parts/WorkdayLogoTitle.d.ts +14 -5
  29. package/dist/commonjs/header/lib/parts/WorkdayLogoTitle.d.ts.map +1 -1
  30. package/dist/commonjs/header/lib/parts/WorkdayLogoTitle.js +25 -12
  31. package/dist/commonjs/header/lib/parts/index.d.ts +2 -3
  32. package/dist/commonjs/header/lib/parts/index.d.ts.map +1 -1
  33. package/dist/commonjs/header/lib/parts/index.js +2 -4
  34. package/dist/commonjs/header/lib/shared/themes.d.ts +28 -19
  35. package/dist/commonjs/header/lib/shared/themes.d.ts.map +1 -1
  36. package/dist/commonjs/header/lib/shared/themes.js +13 -36
  37. package/dist/commonjs/header/lib/shared/types.d.ts +3 -8
  38. package/dist/commonjs/header/lib/shared/types.d.ts.map +1 -1
  39. package/dist/commonjs/header/lib/shared/types.js +17 -23
  40. package/dist/commonjs/index.d.ts +1 -0
  41. package/dist/commonjs/index.d.ts.map +1 -1
  42. package/dist/commonjs/index.js +1 -0
  43. package/dist/commonjs/layout/lib/utils/getValidChildren.d.ts +1 -1
  44. package/dist/commonjs/layout/lib/utils/getValidChildren.d.ts.map +1 -1
  45. package/dist/commonjs/search-form/index.d.ts +3 -0
  46. package/dist/commonjs/search-form/index.d.ts.map +1 -0
  47. package/dist/commonjs/search-form/index.js +7 -0
  48. package/dist/commonjs/{header/lib/parts/SearchBar.d.ts → search-form/lib/SearchForm.d.ts} +22 -23
  49. package/dist/commonjs/search-form/lib/SearchForm.d.ts.map +1 -0
  50. package/dist/commonjs/{header/lib/parts/SearchBar.js → search-form/lib/SearchForm.js} +13 -14
  51. package/dist/commonjs/search-form/lib/themes.d.ts +21 -0
  52. package/dist/commonjs/search-form/lib/themes.d.ts.map +1 -0
  53. package/dist/commonjs/search-form/lib/themes.js +41 -0
  54. package/dist/es6/combobox/lib/AutocompleteList.d.ts.map +1 -1
  55. package/dist/es6/combobox/lib/AutocompleteList.js +5 -2
  56. package/dist/es6/combobox/lib/Combobox.d.ts.map +1 -1
  57. package/dist/es6/combobox/lib/Combobox.js +0 -1
  58. package/dist/es6/common/lib/theming/index.d.ts +1 -0
  59. package/dist/es6/common/lib/theming/index.d.ts.map +1 -1
  60. package/dist/es6/common/lib/theming/index.js +1 -0
  61. package/dist/es6/common/lib/theming/useThemedRing.d.ts +11 -0
  62. package/dist/es6/common/lib/theming/useThemedRing.d.ts.map +1 -0
  63. package/dist/es6/common/lib/theming/useThemedRing.js +55 -0
  64. package/dist/es6/header/index.d.ts +5 -5
  65. package/dist/es6/header/index.d.ts.map +1 -1
  66. package/dist/es6/header/index.js +5 -5
  67. package/dist/es6/header/lib/GlobalHeader.d.ts +11 -2
  68. package/dist/es6/header/lib/GlobalHeader.d.ts.map +1 -1
  69. package/dist/es6/header/lib/GlobalHeader.js +22 -11
  70. package/dist/es6/header/lib/Header.d.ts +17 -8
  71. package/dist/es6/header/lib/Header.d.ts.map +1 -1
  72. package/dist/es6/header/lib/Header.js +30 -17
  73. package/dist/es6/header/lib/parts/DubLogoTitle.d.ts +13 -4
  74. package/dist/es6/header/lib/parts/DubLogoTitle.d.ts.map +1 -1
  75. package/dist/es6/header/lib/parts/DubLogoTitle.js +23 -12
  76. package/dist/es6/header/lib/parts/WorkdayLogoTitle.d.ts +14 -5
  77. package/dist/es6/header/lib/parts/WorkdayLogoTitle.d.ts.map +1 -1
  78. package/dist/es6/header/lib/parts/WorkdayLogoTitle.js +26 -13
  79. package/dist/es6/header/lib/parts/index.d.ts +2 -3
  80. package/dist/es6/header/lib/parts/index.d.ts.map +1 -1
  81. package/dist/es6/header/lib/parts/index.js +2 -3
  82. package/dist/es6/header/lib/shared/themes.d.ts +28 -19
  83. package/dist/es6/header/lib/shared/themes.d.ts.map +1 -1
  84. package/dist/es6/header/lib/shared/themes.js +14 -37
  85. package/dist/es6/header/lib/shared/types.d.ts +3 -8
  86. package/dist/es6/header/lib/shared/types.d.ts.map +1 -1
  87. package/dist/es6/header/lib/shared/types.js +17 -23
  88. package/dist/es6/index.d.ts +1 -0
  89. package/dist/es6/index.d.ts.map +1 -1
  90. package/dist/es6/index.js +1 -0
  91. package/dist/es6/layout/lib/utils/getValidChildren.d.ts +1 -1
  92. package/dist/es6/layout/lib/utils/getValidChildren.d.ts.map +1 -1
  93. package/dist/es6/search-form/index.d.ts +3 -0
  94. package/dist/es6/search-form/index.d.ts.map +1 -0
  95. package/dist/es6/search-form/index.js +2 -0
  96. package/dist/es6/{header/lib/parts/SearchBar.d.ts → search-form/lib/SearchForm.d.ts} +22 -23
  97. package/dist/es6/search-form/lib/SearchForm.d.ts.map +1 -0
  98. package/dist/es6/{header/lib/parts/SearchBar.js → search-form/lib/SearchForm.js} +11 -12
  99. package/dist/es6/search-form/lib/themes.d.ts +21 -0
  100. package/dist/es6/search-form/lib/themes.d.ts.map +1 -0
  101. package/dist/es6/search-form/lib/themes.js +39 -0
  102. package/header/README.md +37 -181
  103. package/header/index.ts +5 -5
  104. package/header/lib/GlobalHeader.tsx +26 -9
  105. package/header/lib/Header.tsx +58 -26
  106. package/header/lib/parts/DubLogoTitle.tsx +26 -9
  107. package/header/lib/parts/WorkdayLogoTitle.tsx +40 -11
  108. package/header/lib/parts/index.ts +2 -3
  109. package/header/lib/shared/themes.tsx +32 -56
  110. package/header/lib/shared/types.tsx +3 -9
  111. package/index.ts +1 -0
  112. package/package.json +6 -5
  113. package/search-form/LICENSE +52 -0
  114. package/search-form/README.md +6 -0
  115. package/search-form/index.ts +2 -0
  116. package/{header/lib/parts/SearchBar.tsx → search-form/lib/SearchForm.tsx} +30 -31
  117. package/search-form/lib/themes.ts +54 -0
  118. package/search-form/package.json +5 -0
  119. package/ts3.5/dist/commonjs/common/lib/theming/index.d.ts +1 -0
  120. package/ts3.5/dist/commonjs/common/lib/theming/useThemedRing.d.ts +11 -0
  121. package/ts3.5/dist/commonjs/header/index.d.ts +5 -5
  122. package/ts3.5/dist/commonjs/header/lib/GlobalHeader.d.ts +11 -2
  123. package/ts3.5/dist/commonjs/header/lib/Header.d.ts +17 -8
  124. package/ts3.5/dist/commonjs/header/lib/parts/DubLogoTitle.d.ts +13 -4
  125. package/ts3.5/dist/commonjs/header/lib/parts/WorkdayLogoTitle.d.ts +14 -5
  126. package/ts3.5/dist/commonjs/header/lib/parts/index.d.ts +2 -3
  127. package/ts3.5/dist/commonjs/header/lib/shared/themes.d.ts +28 -19
  128. package/ts3.5/dist/commonjs/header/lib/shared/types.d.ts +3 -8
  129. package/ts3.5/dist/commonjs/index.d.ts +1 -0
  130. package/ts3.5/dist/commonjs/layout/lib/utils/getValidChildren.d.ts +1 -1
  131. package/ts3.5/dist/commonjs/search-form/index.d.ts +3 -0
  132. package/ts3.5/dist/commonjs/{header/lib/parts/SearchBar.d.ts → search-form/lib/SearchForm.d.ts} +22 -23
  133. package/ts3.5/dist/commonjs/search-form/lib/themes.d.ts +21 -0
  134. package/ts3.5/dist/es6/common/lib/theming/index.d.ts +1 -0
  135. package/ts3.5/dist/es6/common/lib/theming/useThemedRing.d.ts +11 -0
  136. package/ts3.5/dist/es6/header/index.d.ts +5 -5
  137. package/ts3.5/dist/es6/header/lib/GlobalHeader.d.ts +11 -2
  138. package/ts3.5/dist/es6/header/lib/Header.d.ts +17 -8
  139. package/ts3.5/dist/es6/header/lib/parts/DubLogoTitle.d.ts +13 -4
  140. package/ts3.5/dist/es6/header/lib/parts/WorkdayLogoTitle.d.ts +14 -5
  141. package/ts3.5/dist/es6/header/lib/parts/index.d.ts +2 -3
  142. package/ts3.5/dist/es6/header/lib/shared/themes.d.ts +28 -19
  143. package/ts3.5/dist/es6/header/lib/shared/types.d.ts +3 -8
  144. package/ts3.5/dist/es6/index.d.ts +1 -0
  145. package/ts3.5/dist/es6/layout/lib/utils/getValidChildren.d.ts +1 -1
  146. package/ts3.5/dist/es6/search-form/index.d.ts +3 -0
  147. package/ts3.5/dist/es6/{header/lib/parts/SearchBar.d.ts → search-form/lib/SearchForm.d.ts} +22 -23
  148. package/ts3.5/dist/es6/search-form/lib/themes.d.ts +21 -0
  149. package/dist/commonjs/header/lib/parts/SearchBar.d.ts.map +0 -1
  150. package/dist/es6/header/lib/parts/SearchBar.d.ts.map +0 -1
@@ -25,7 +25,7 @@ var __assign = (this && this.__assign) || function () {
25
25
  import * as React from 'react';
26
26
  import styled from '@emotion/styled';
27
27
  import { colors, space } from '@workday/canvas-kit-react/tokens';
28
- import { HeaderHeight, HeaderTheme } from '../shared/types';
28
+ import { DeprecatedHeaderHeight, DeprecatedHeaderTheme } from '../shared/types';
29
29
  import chroma from 'chroma-js';
30
30
  import { dubLogoWhite, dubLogoBlue } from '@workday/canvas-kit-react/common';
31
31
  var LockupContainer = styled('div')({
@@ -34,7 +34,7 @@ var LockupContainer = styled('div')({
34
34
  var Lockup = styled('div')({
35
35
  display: 'flex',
36
36
  alignItems: 'center',
37
- height: HeaderHeight.Small,
37
+ height: DeprecatedHeaderHeight.Small,
38
38
  paddingLeft: space.m,
39
39
  }, function (_a) {
40
40
  var bgColor = _a.bgColor;
@@ -52,8 +52,8 @@ var Title = styled('h3')({
52
52
  }, function (_a) {
53
53
  var themeColor = _a.themeColor;
54
54
  return ({
55
- color: themeColor === HeaderTheme.White ? colors.blueberry500 : colors.frenchVanilla100,
56
- borderLeft: "1px solid " + (themeColor === HeaderTheme.White
55
+ color: themeColor === DeprecatedHeaderTheme.White ? colors.blueberry500 : colors.frenchVanilla100,
56
+ borderLeft: "1px solid " + (themeColor === DeprecatedHeaderTheme.White
57
57
  ? colors.soap400
58
58
  : chroma(colors.frenchVanilla100)
59
59
  .alpha(0.3)
@@ -63,20 +63,31 @@ var Title = styled('h3')({
63
63
  var DubLogo = styled('div')({
64
64
  lineHeight: 0,
65
65
  });
66
- var DubLogoTitle = /** @class */ (function (_super) {
67
- __extends(DubLogoTitle, _super);
68
- function DubLogoTitle() {
66
+ /**
67
+ * ### Deprecated Dub Logo Title
68
+ *
69
+ * As of Canvas Kit v6, this component is being soft-deprecated.
70
+ * It will be hard-deprecated (completely removed) in v7. Please see the
71
+ * [migration guide](https://workday.github.io/canvas-kit/?path=/story/welcome-migration-guides-v6-0--page)
72
+ * for more information.
73
+ */
74
+ var DeprecatedDubLogoTitle = /** @class */ (function (_super) {
75
+ __extends(DeprecatedDubLogoTitle, _super);
76
+ function DeprecatedDubLogoTitle() {
69
77
  return _super !== null && _super.apply(this, arguments) || this;
70
78
  }
71
- DubLogoTitle.prototype.render = function () {
72
- var _a = this.props, _b = _a.themeColor, themeColor = _b === void 0 ? HeaderTheme.White : _b, title = _a.title;
79
+ DeprecatedDubLogoTitle.prototype.componentDidMount = function () {
80
+ console.warn("DubLogoTitle is being deprecated and will be removed in Canvas Kit V7.\n\n For more information, please see the V6 migration guide:\n\n https://workday.github.io/canvas-kit/?path=/story/welcome-migration-guides-v6-0--page\n ");
81
+ };
82
+ DeprecatedDubLogoTitle.prototype.render = function () {
83
+ var _a = this.props, _b = _a.themeColor, themeColor = _b === void 0 ? DeprecatedHeaderTheme.White : _b, title = _a.title;
73
84
  return (React.createElement(LockupContainer, null,
74
85
  React.createElement(Lockup, __assign({}, this.props),
75
86
  React.createElement(DubLogo, __assign({}, this.props, { dangerouslySetInnerHTML: {
76
- __html: themeColor === HeaderTheme.White ? dubLogoBlue : dubLogoWhite,
87
+ __html: themeColor === DeprecatedHeaderTheme.White ? dubLogoBlue : dubLogoWhite,
77
88
  } })),
78
89
  title && React.createElement(Title, __assign({}, this.props), title))));
79
90
  };
80
- return DubLogoTitle;
91
+ return DeprecatedDubLogoTitle;
81
92
  }(React.Component));
82
- export { DubLogoTitle };
93
+ export { DeprecatedDubLogoTitle };
@@ -1,11 +1,11 @@
1
1
  import * as React from 'react';
2
- import { HeaderTheme, HeaderVariant } from '../shared/types';
2
+ import { DeprecatedHeaderTheme, DeprecatedHeaderVariant } from '../shared/types';
3
3
  export declare type WorkdayLogoTitleProps = {
4
4
  /**
5
5
  * The theme of the WorkdayLogoTitle. Accepts `White`, `Blue`, or `Transparent`.
6
- * @default HeaderTheme.White
6
+ * @default DeprecatedHeaderTheme.White
7
7
  */
8
- themeColor?: HeaderTheme;
8
+ themeColor?: DeprecatedHeaderTheme;
9
9
  /**
10
10
  * The text of the WorkdayLogoTitle. Not used if `brand` is provided.
11
11
  * @default ''
@@ -14,9 +14,18 @@ export declare type WorkdayLogoTitleProps = {
14
14
  /**
15
15
  * The variant of the WorkdayLogoTitle.
16
16
  */
17
- variant?: HeaderVariant;
17
+ variant?: DeprecatedHeaderVariant;
18
18
  };
19
- export declare class WorkdayLogoTitle extends React.Component<WorkdayLogoTitleProps> {
19
+ /**
20
+ * ### Deprecated Workday Logo Title
21
+ *
22
+ * As of Canvas Kit v6, this component is being soft-deprecated.
23
+ * It will be hard-deprecated (completely removed) in v7. Please see the
24
+ * [migration guide](https://workday.github.io/canvas-kit/?path=/story/welcome-migration-guides-v6-0--page)
25
+ * for more information.
26
+ */
27
+ export declare class DeprecatedWorkdayLogoTitle extends React.Component<WorkdayLogoTitleProps> {
28
+ componentDidMount(): void;
20
29
  render(): JSX.Element;
21
30
  }
22
31
  //# sourceMappingURL=WorkdayLogoTitle.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"WorkdayLogoTitle.d.ts","sourceRoot":"","sources":["../../../../../header/lib/parts/WorkdayLogoTitle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAe,WAAW,EAAE,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAKzE,oBAAY,qBAAqB,GAAG;IAClC;;;OAGG;IACH,UAAU,CAAC,EAAE,WAAW,CAAC;IACzB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,OAAO,CAAC,EAAE,aAAa,CAAC;CACzB,CAAC;AA6CF,qBAAa,gBAAiB,SAAQ,KAAK,CAAC,SAAS,CAAC,qBAAqB,CAAC;IACnE,MAAM;CAsBd"}
1
+ {"version":3,"file":"WorkdayLogoTitle.d.ts","sourceRoot":"","sources":["../../../../../header/lib/parts/WorkdayLogoTitle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAEL,qBAAqB,EACrB,uBAAuB,EACxB,MAAM,iBAAiB,CAAC;AAKzB,oBAAY,qBAAqB,GAAG;IAClC;;;OAGG;IACH,UAAU,CAAC,EAAE,qBAAqB,CAAC;IACnC;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,OAAO,CAAC,EAAE,uBAAuB,CAAC;CACnC,CAAC;AAiDF;;;;;;;GAOG;AACH,qBAAa,0BAA2B,SAAQ,KAAK,CAAC,SAAS,CAAC,qBAAqB,CAAC;IACpF,iBAAiB;IAQV,MAAM;CA2Bd"}
@@ -35,7 +35,7 @@ var __rest = (this && this.__rest) || function (s, e) {
35
35
  };
36
36
  import * as React from 'react';
37
37
  import styled from '@emotion/styled';
38
- import { HeaderHeight, HeaderTheme, HeaderVariant } from '../shared/types';
38
+ import { DeprecatedHeaderHeight, DeprecatedHeaderTheme, DeprecatedHeaderVariant, } from '../shared/types';
39
39
  import { miniWdayLogoBlue, wdayLogoWhite, wdayLogoBlue } from '@workday/canvas-kit-react/common';
40
40
  import { colors, space } from '@workday/canvas-kit-react/tokens';
41
41
  import chroma from 'chroma-js';
@@ -49,7 +49,9 @@ var Lockup = styled('div')({
49
49
  }, function (_a) {
50
50
  var variant = _a.variant;
51
51
  return ({
52
- height: variant === HeaderVariant.Global ? HeaderHeight.Small : HeaderHeight.Large,
52
+ height: variant === DeprecatedHeaderVariant.Global
53
+ ? DeprecatedHeaderHeight.Small
54
+ : DeprecatedHeaderHeight.Large,
53
55
  });
54
56
  });
55
57
  var Title = styled('h3')({
@@ -64,8 +66,8 @@ var Title = styled('h3')({
64
66
  }, function (_a) {
65
67
  var themeColor = _a.themeColor;
66
68
  return ({
67
- color: themeColor === HeaderTheme.White ? colors.blueberry500 : colors.frenchVanilla100,
68
- borderLeft: "1px solid " + (themeColor === HeaderTheme.White
69
+ color: themeColor === DeprecatedHeaderTheme.White ? colors.blueberry500 : colors.frenchVanilla100,
70
+ borderLeft: "1px solid " + (themeColor === DeprecatedHeaderTheme.White
69
71
  ? colors.soap400
70
72
  : chroma(colors.soap400)
71
73
  .alpha(0.4)
@@ -76,24 +78,35 @@ var WorkdayLogo = styled('span')({
76
78
  paddingLeft: space.m,
77
79
  lineHeight: 0,
78
80
  });
79
- var WorkdayLogoTitle = /** @class */ (function (_super) {
80
- __extends(WorkdayLogoTitle, _super);
81
- function WorkdayLogoTitle() {
81
+ /**
82
+ * ### Deprecated Workday Logo Title
83
+ *
84
+ * As of Canvas Kit v6, this component is being soft-deprecated.
85
+ * It will be hard-deprecated (completely removed) in v7. Please see the
86
+ * [migration guide](https://workday.github.io/canvas-kit/?path=/story/welcome-migration-guides-v6-0--page)
87
+ * for more information.
88
+ */
89
+ var DeprecatedWorkdayLogoTitle = /** @class */ (function (_super) {
90
+ __extends(DeprecatedWorkdayLogoTitle, _super);
91
+ function DeprecatedWorkdayLogoTitle() {
82
92
  return _super !== null && _super.apply(this, arguments) || this;
83
93
  }
84
- WorkdayLogoTitle.prototype.render = function () {
85
- var _a = this.props, _b = _a.themeColor, themeColor = _b === void 0 ? HeaderTheme.White : _b, _c = _a.title, title = _c === void 0 ? '' : _c, variant = _a.variant, elemProps = __rest(_a, ["themeColor", "title", "variant"]);
94
+ DeprecatedWorkdayLogoTitle.prototype.componentDidMount = function () {
95
+ console.warn("WorkdayLogoTitle is being deprecated and will be removed in Canvas Kit V7.\n\n For more information, please see the V6 migration guide:\n\n https://workday.github.io/canvas-kit/?path=/story/welcome-migration-guides-v6-0--page\n ");
96
+ };
97
+ DeprecatedWorkdayLogoTitle.prototype.render = function () {
98
+ var _a = this.props, _b = _a.themeColor, themeColor = _b === void 0 ? DeprecatedHeaderTheme.White : _b, _c = _a.title, title = _c === void 0 ? '' : _c, variant = _a.variant, elemProps = __rest(_a, ["themeColor", "title", "variant"]);
86
99
  return (React.createElement(LockupContainer, null,
87
100
  React.createElement(Lockup, __assign({}, this.props, elemProps),
88
101
  React.createElement(WorkdayLogo, __assign({}, this.props, { dangerouslySetInnerHTML: {
89
- __html: themeColor === HeaderTheme.White
90
- ? variant === HeaderVariant.Global
102
+ __html: themeColor === DeprecatedHeaderTheme.White
103
+ ? variant === DeprecatedHeaderVariant.Global
91
104
  ? miniWdayLogoBlue
92
105
  : wdayLogoBlue
93
106
  : wdayLogoWhite,
94
107
  } })),
95
108
  title && React.createElement(Title, __assign({}, this.props), title))));
96
109
  };
97
- return WorkdayLogoTitle;
110
+ return DeprecatedWorkdayLogoTitle;
98
111
  }(React.Component));
99
- export { WorkdayLogoTitle };
112
+ export { DeprecatedWorkdayLogoTitle };
@@ -1,4 +1,3 @@
1
- export { DubLogoTitle } from './DubLogoTitle';
2
- export { SearchBar, SearchBarProps } from './SearchBar';
3
- export { WorkdayLogoTitle } from './WorkdayLogoTitle';
1
+ export { DeprecatedDubLogoTitle } from './DubLogoTitle';
2
+ export { DeprecatedWorkdayLogoTitle } from './WorkdayLogoTitle';
4
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../header/lib/parts/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAC,SAAS,EAAE,cAAc,EAAC,MAAM,aAAa,CAAC;AACtD,OAAO,EAAC,gBAAgB,EAAC,MAAM,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../header/lib/parts/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,sBAAsB,EAAC,MAAM,gBAAgB,CAAC;AACtD,OAAO,EAAC,0BAA0B,EAAC,MAAM,oBAAoB,CAAC"}
@@ -1,3 +1,2 @@
1
- export { DubLogoTitle } from './DubLogoTitle';
2
- export { SearchBar } from './SearchBar';
3
- export { WorkdayLogoTitle } from './WorkdayLogoTitle';
1
+ export { DeprecatedDubLogoTitle } from './DubLogoTitle';
2
+ export { DeprecatedWorkdayLogoTitle } from './WorkdayLogoTitle';
@@ -1,5 +1,13 @@
1
1
  import { CSSProperties } from '@workday/canvas-kit-react/tokens';
2
- export interface ThemeAttributes {
2
+ /**
3
+ * ### Deprecated Header Theme Attributes Interface
4
+ *
5
+ * As of Canvas Kit v6, this type interface is being soft-deprecated along with the rest of the labs/header package.
6
+ * It will be hard-deprecated (completely removed) in v7. Please see the
7
+ * [migration guide](https://workday.github.io/canvas-kit/?path=/story/welcome-migration-guides-v6-0--page)
8
+ * for more information.
9
+ */
10
+ export interface DeprecatedHeaderThemeAttributes {
3
11
  color: string;
4
12
  background: string;
5
13
  depth: CSSProperties;
@@ -12,23 +20,24 @@ export interface ThemeAttributes {
12
20
  currentLinkColor: string;
13
21
  chipColor: string;
14
22
  }
15
- export interface Themes {
16
- [key: string]: ThemeAttributes;
23
+ /**
24
+ * ### Deprecated Header Themes Interface
25
+ *
26
+ * As of Canvas Kit v6, this type interface is being soft-deprecated along with the rest of the labs/header package.
27
+ * It will be hard-deprecated (completely removed) in v7. Please see the
28
+ * [migration guide](https://workday.github.io/canvas-kit/?path=/story/welcome-migration-guides-v6-0--page)
29
+ * for more information.
30
+ */
31
+ export interface DeprecatedHeaderThemes {
32
+ [key: string]: DeprecatedHeaderThemeAttributes;
17
33
  }
18
- export declare const themes: Themes;
19
- export interface SearchThemeAttributes {
20
- background?: string;
21
- backgroundFocus?: string;
22
- backgroundHover?: string;
23
- color?: string;
24
- colorFocus?: string;
25
- placeholderColor?: string;
26
- placeholderColorFocus?: string;
27
- boxShadow?: string | string[];
28
- boxShadowFocus?: string | string[];
29
- }
30
- export interface SearchThemes {
31
- [key: string]: SearchThemeAttributes;
32
- }
33
- export declare const searchThemes: SearchThemes;
34
+ /**
35
+ * ### Deprecated Header Themes
36
+ *
37
+ * As of Canvas Kit v6, this theme object is being soft-deprecated along with the rest of the labs/header package.
38
+ * It will be hard-deprecated (completely removed) in v7. Please see the
39
+ * [migration guide](https://workday.github.io/canvas-kit/?path=/story/welcome-migration-guides-v6-0--page)
40
+ * for more information.
41
+ */
42
+ export declare const deprecatedHeaderThemes: DeprecatedHeaderThemes;
34
43
  //# sourceMappingURL=themes.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"themes.d.ts","sourceRoot":"","sources":["../../../../../header/lib/shared/themes.tsx"],"names":[],"mappings":"AACA,OAAO,EAKL,aAAa,EACd,MAAM,kCAAkC,CAAC;AAI1C,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,aAAa,CAAC;IACrB,UAAU,EAAE;QACV,KAAK,EAAE,MAAM,CAAC;QACd,UAAU,EAAE,MAAM,CAAC;KACpB,CAAC;IACF,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,MAAM,CAAC;IACzB,gBAAgB,EAAE,MAAM,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,MAAM;IACrB,CAAC,GAAG,EAAE,MAAM,GAAG,eAAe,CAAC;CAChC;AAED,eAAO,MAAM,MAAM,EAAE,MA4CpB,CAAC;AAEF,MAAM,WAAW,qBAAqB;IACpC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC9B,cAAc,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;CACpC;AAED,MAAM,WAAW,YAAY;IAC3B,CAAC,GAAG,EAAE,MAAM,GAAG,qBAAqB,CAAC;CACtC;AAED,eAAO,MAAM,YAAY,EAAE,YA6B1B,CAAC"}
1
+ {"version":3,"file":"themes.d.ts","sourceRoot":"","sources":["../../../../../header/lib/shared/themes.tsx"],"names":[],"mappings":"AAAA,OAAO,EAKL,aAAa,EACd,MAAM,kCAAkC,CAAC;AAI1C;;;;;;;GAOG;AACH,MAAM,WAAW,+BAA+B;IAC9C,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,aAAa,CAAC;IACrB,UAAU,EAAE;QACV,KAAK,EAAE,MAAM,CAAC;QACd,UAAU,EAAE,MAAM,CAAC;KACpB,CAAC;IACF,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,MAAM,CAAC;IACzB,gBAAgB,EAAE,MAAM,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,sBAAsB;IACrC,CAAC,GAAG,EAAE,MAAM,GAAG,+BAA+B,CAAC;CAChD;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,sBAAsB,EAAE,sBA4CpC,CAAC"}
@@ -1,10 +1,17 @@
1
- var _a, _b;
2
- import { focusRing } from '@workday/canvas-kit-react/common';
1
+ var _a;
3
2
  import { colors, gradients, iconColors, depth, } from '@workday/canvas-kit-react/tokens';
4
3
  import chroma from 'chroma-js';
5
- import { HeaderTheme, SearchTheme } from './types';
6
- export var themes = (_a = {},
7
- _a[HeaderTheme.White] = {
4
+ import { DeprecatedHeaderTheme } from './types';
5
+ /**
6
+ * ### Deprecated Header Themes
7
+ *
8
+ * As of Canvas Kit v6, this theme object is being soft-deprecated along with the rest of the labs/header package.
9
+ * It will be hard-deprecated (completely removed) in v7. Please see the
10
+ * [migration guide](https://workday.github.io/canvas-kit/?path=/story/welcome-migration-guides-v6-0--page)
11
+ * for more information.
12
+ */
13
+ export var deprecatedHeaderThemes = (_a = {},
14
+ _a[DeprecatedHeaderTheme.White] = {
8
15
  color: colors.blackPepper400,
9
16
  background: colors.frenchVanilla100,
10
17
  depth: depth['1'],
@@ -17,7 +24,7 @@ export var themes = (_a = {},
17
24
  currentLinkColor: colors.blueberry500,
18
25
  chipColor: colors.blueberry400,
19
26
  },
20
- _a[HeaderTheme.Blue] = {
27
+ _a[DeprecatedHeaderTheme.Blue] = {
21
28
  color: colors.frenchVanilla100,
22
29
  background: gradients.blueberry,
23
30
  depth: depth['3'],
@@ -32,7 +39,7 @@ export var themes = (_a = {},
32
39
  currentLinkColor: colors.frenchVanilla100,
33
40
  chipColor: colors.frenchVanilla100,
34
41
  },
35
- _a[HeaderTheme.Transparent] = {
42
+ _a[DeprecatedHeaderTheme.Transparent] = {
36
43
  color: colors.frenchVanilla100,
37
44
  background: 'transparent',
38
45
  depth: { boxShadow: 'none' },
@@ -48,33 +55,3 @@ export var themes = (_a = {},
48
55
  chipColor: colors.frenchVanilla100,
49
56
  },
50
57
  _a);
51
- export var searchThemes = (_b = {},
52
- _b[SearchTheme.Transparent] = {
53
- background: 'rgba(0, 0, 0, 0)',
54
- backgroundFocus: 'rgba(0, 0, 0, 0)',
55
- color: colors.blackPepper300,
56
- colorFocus: colors.blackPepper300,
57
- placeholderColor: colors.licorice300,
58
- placeholderColorFocus: colors.licorice300,
59
- boxShadow: 'none',
60
- boxShadowFocus: 'none',
61
- },
62
- _b[SearchTheme.Light] = {
63
- background: colors.soap200,
64
- backgroundFocus: colors.soap200,
65
- backgroundHover: colors.soap300,
66
- color: colors.blackPepper300,
67
- placeholderColor: colors.licorice300,
68
- boxShadow: 'none',
69
- boxShadowFocus: focusRing().boxShadow,
70
- },
71
- _b[SearchTheme.Dark] = {
72
- background: 'rgba(0, 0, 0, 0.2)',
73
- backgroundFocus: colors.frenchVanilla100,
74
- color: colors.frenchVanilla100,
75
- colorFocus: colors.blackPepper300,
76
- placeholderColor: colors.frenchVanilla100,
77
- placeholderColorFocus: colors.licorice300,
78
- boxShadow: 'none',
79
- },
80
- _b);
@@ -1,20 +1,15 @@
1
- export declare enum HeaderTheme {
1
+ export declare enum DeprecatedHeaderTheme {
2
2
  White = 0,
3
3
  Blue = 1,
4
4
  Transparent = 2
5
5
  }
6
- export declare enum HeaderVariant {
6
+ export declare enum DeprecatedHeaderVariant {
7
7
  Dub = 0,
8
8
  Full = 1,
9
9
  Global = 2
10
10
  }
11
- export declare enum HeaderHeight {
11
+ export declare enum DeprecatedHeaderHeight {
12
12
  Small = "64px",
13
13
  Large = "80px"
14
14
  }
15
- export declare enum SearchTheme {
16
- Light = 0,
17
- Dark = 1,
18
- Transparent = 2
19
- }
20
15
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../header/lib/shared/types.tsx"],"names":[],"mappings":"AAAA,oBAAY,WAAW;IACrB,KAAK,IAAA;IACL,IAAI,IAAA;IACJ,WAAW,IAAA;CACZ;AAED,oBAAY,aAAa;IACvB,GAAG,IAAA;IACH,IAAI,IAAA;IACJ,MAAM,IAAA;CACP;AAED,oBAAY,YAAY;IACtB,KAAK,SAAS;IACd,KAAK,SAAS;CACf;AAED,oBAAY,WAAW;IACrB,KAAK,IAAA;IACL,IAAI,IAAA;IACJ,WAAW,IAAA;CACZ"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../header/lib/shared/types.tsx"],"names":[],"mappings":"AAAA,oBAAY,qBAAqB;IAC/B,KAAK,IAAA;IACL,IAAI,IAAA;IACJ,WAAW,IAAA;CACZ;AAED,oBAAY,uBAAuB;IACjC,GAAG,IAAA;IACH,IAAI,IAAA;IACJ,MAAM,IAAA;CACP;AAED,oBAAY,sBAAsB;IAChC,KAAK,SAAS;IACd,KAAK,SAAS;CACf"}
@@ -1,23 +1,17 @@
1
- export var HeaderTheme;
2
- (function (HeaderTheme) {
3
- HeaderTheme[HeaderTheme["White"] = 0] = "White";
4
- HeaderTheme[HeaderTheme["Blue"] = 1] = "Blue";
5
- HeaderTheme[HeaderTheme["Transparent"] = 2] = "Transparent";
6
- })(HeaderTheme || (HeaderTheme = {}));
7
- export var HeaderVariant;
8
- (function (HeaderVariant) {
9
- HeaderVariant[HeaderVariant["Dub"] = 0] = "Dub";
10
- HeaderVariant[HeaderVariant["Full"] = 1] = "Full";
11
- HeaderVariant[HeaderVariant["Global"] = 2] = "Global";
12
- })(HeaderVariant || (HeaderVariant = {}));
13
- export var HeaderHeight;
14
- (function (HeaderHeight) {
15
- HeaderHeight["Small"] = "64px";
16
- HeaderHeight["Large"] = "80px";
17
- })(HeaderHeight || (HeaderHeight = {}));
18
- export var SearchTheme;
19
- (function (SearchTheme) {
20
- SearchTheme[SearchTheme["Light"] = 0] = "Light";
21
- SearchTheme[SearchTheme["Dark"] = 1] = "Dark";
22
- SearchTheme[SearchTheme["Transparent"] = 2] = "Transparent";
23
- })(SearchTheme || (SearchTheme = {}));
1
+ export var DeprecatedHeaderTheme;
2
+ (function (DeprecatedHeaderTheme) {
3
+ DeprecatedHeaderTheme[DeprecatedHeaderTheme["White"] = 0] = "White";
4
+ DeprecatedHeaderTheme[DeprecatedHeaderTheme["Blue"] = 1] = "Blue";
5
+ DeprecatedHeaderTheme[DeprecatedHeaderTheme["Transparent"] = 2] = "Transparent";
6
+ })(DeprecatedHeaderTheme || (DeprecatedHeaderTheme = {}));
7
+ export var DeprecatedHeaderVariant;
8
+ (function (DeprecatedHeaderVariant) {
9
+ DeprecatedHeaderVariant[DeprecatedHeaderVariant["Dub"] = 0] = "Dub";
10
+ DeprecatedHeaderVariant[DeprecatedHeaderVariant["Full"] = 1] = "Full";
11
+ DeprecatedHeaderVariant[DeprecatedHeaderVariant["Global"] = 2] = "Global";
12
+ })(DeprecatedHeaderVariant || (DeprecatedHeaderVariant = {}));
13
+ export var DeprecatedHeaderHeight;
14
+ (function (DeprecatedHeaderHeight) {
15
+ DeprecatedHeaderHeight["Small"] = "64px";
16
+ DeprecatedHeaderHeight["Large"] = "80px";
17
+ })(DeprecatedHeaderHeight || (DeprecatedHeaderHeight = {}));
@@ -3,4 +3,5 @@ export * from './common';
3
3
  export * from './drawer';
4
4
  export * from './header';
5
5
  export * from './layout';
6
+ export * from './search-form';
6
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC"}
package/dist/es6/index.js CHANGED
@@ -3,3 +3,4 @@ export * from './common';
3
3
  export * from './drawer';
4
4
  export * from './header';
5
5
  export * from './layout';
6
+ export * from './search-form';
@@ -1,3 +1,3 @@
1
1
  import * as React from 'react';
2
- export declare function getValidChildren(children: React.ReactNode): React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)>[];
2
+ export declare function getValidChildren(children: React.ReactNode): React.ReactElement<any, string | ((props: any) => React.ReactElement<any, any> | null) | (new (props: any) => React.Component<any, any, any>)>[];
3
3
  //# sourceMappingURL=getValidChildren.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getValidChildren.d.ts","sourceRoot":"","sources":["../../../../../layout/lib/utils/getValidChildren.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,KAAK,CAAC,SAAS,oNAIzD"}
1
+ {"version":3,"file":"getValidChildren.d.ts","sourceRoot":"","sources":["../../../../../layout/lib/utils/getValidChildren.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,KAAK,CAAC,SAAS,oJAIzD"}
@@ -0,0 +1,3 @@
1
+ export * from './lib/SearchForm';
2
+ export * from './lib/themes';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../search-form/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './lib/SearchForm';
2
+ export * from './lib/themes';
@@ -1,24 +1,23 @@
1
1
  import * as React from 'react';
2
2
  import { GrowthBehavior } from '@workday/canvas-kit-react/common';
3
3
  import { MenuItemProps } from '@workday/canvas-kit-preview-react/menu';
4
- import { SearchThemeAttributes } from '../shared/themes';
5
- import { SearchTheme } from '../shared/types';
6
- export interface SearchBarProps extends GrowthBehavior, React.FormHTMLAttributes<HTMLFormElement> {
4
+ import { SearchThemeAttributes, SearchTheme } from './themes';
5
+ export interface SearchFormProps extends GrowthBehavior, React.FormHTMLAttributes<HTMLFormElement> {
7
6
  /**
8
- * The function called when the SearchBar form is submitted. The current input value is passed to the callback function.
7
+ * The function called when the SearchForm form is submitted. The current input value is passed to the callback function.
9
8
  */
10
9
  onSubmit: React.FormEventHandler<HTMLFormElement>;
11
10
  /**
12
- * If true, collapse the SearchBar text input into a toggle icon. Useful for responsive layouts.
11
+ * If true, collapse the SearchForm text input into a toggle icon. Useful for responsive layouts.
13
12
  * @default false
14
13
  */
15
14
  isCollapsed?: boolean;
16
15
  /**
17
- * The function called when the SearchBar text input changes.
16
+ * The function called when the SearchForm text input changes.
18
17
  */
19
18
  onInputChange?: React.ChangeEventHandler<HTMLInputElement>;
20
19
  /**
21
- * The autocomplete items of the SearchBar. This array of menu items is shown under the search bar.
20
+ * The autocomplete items of the SearchForm. This array of menu items is shown under the search bar.
22
21
  */
23
22
  autocompleteItems?: React.ReactElement<MenuItemProps>[];
24
23
  /**
@@ -26,73 +25,73 @@ export interface SearchBarProps extends GrowthBehavior, React.FormHTMLAttributes
26
25
  */
27
26
  searchTheme?: SearchTheme | SearchThemeAttributes;
28
27
  /**
29
- * The placeholder text of the SearchBar text input.
28
+ * The placeholder text of the SearchForm text input.
30
29
  * @default Search
31
30
  */
32
31
  placeholder?: string;
33
32
  /**
34
- * The initial value of the SearchBar text input.
33
+ * The initial value of the SearchForm text input.
35
34
  */
36
35
  initialValue?: string;
37
36
  /**
38
- * If true, right-align the SearchBar. If false, the text input should grow to left-align the SearchBar.
37
+ * If true, right-align the SearchForm. If false, the text input should grow to left-align the SearchForm.
39
38
  * @default false
40
39
  */
41
40
  rightAlign?: boolean;
42
41
  /**
43
- * The screenreader label text for the SearchBar text input.
42
+ * The screenreader label text for the SearchForm text input.
44
43
  * @default Search
45
44
  */
46
45
  inputLabel?: string;
47
46
  /**
48
- * The screenreader label text for the SearchBar submit button.
47
+ * The screenreader label text for the SearchForm submit button.
49
48
  * @default Search
50
49
  */
51
50
  submitAriaLabel?: string;
52
51
  /**
53
- * The screenreader label text for the SearchBar clear button.
52
+ * The screenreader label text for the SearchForm clear button.
54
53
  * @default Reset Search Form
55
54
  */
56
55
  clearButtonAriaLabel?: string;
57
56
  /**
58
- * The screenreader label text for the button to open the collapsed SearchBar.
57
+ * The screenreader label text for the button to open the collapsed SearchForm.
59
58
  * @default Open Search
60
59
  */
61
60
  openButtonAriaLabel?: string;
62
61
  /**
63
- * The screenreader label text for the button to close the open SearchBar.
62
+ * The screenreader label text for the button to close the open SearchForm.
64
63
  * @default Cancel
65
64
  */
66
65
  closeButtonAriaLabel?: string;
67
66
  /**
68
- * If true, render the SearchBar with a button to clear the text input.
67
+ * If true, render the SearchForm with a button to clear the text input.
69
68
  * @default true
70
69
  */
71
70
  showClearButton?: boolean;
72
71
  /**
73
- * Height of the Search Bar in pixels
74
- * @default: 40
72
+ * Height of the Search Form in pixels
73
+ * @default 40
75
74
  */
76
75
  height?: number;
77
76
  }
78
- export interface SearchBarState {
77
+ export interface SearchFormState {
79
78
  showForm: boolean;
80
79
  searchQuery: string;
81
80
  isFocused: boolean;
82
81
  }
83
- export declare class SearchBar extends React.Component<SearchBarProps, SearchBarState> {
82
+ export declare class SearchForm extends React.Component<SearchFormProps, SearchFormState> {
84
83
  static Theme: typeof SearchTheme;
85
84
  private inputRef;
86
85
  private openRef;
87
86
  private labelId;
88
- state: Readonly<SearchBarState>;
87
+ state: Readonly<SearchFormState>;
89
88
  private getTheme;
90
89
  private getThemeColors;
91
90
  getIconButtonType: () => "circle" | "square" | "inverse" | "squareFilled" | "plain" | "circleFilled" | "inverseFilled" | undefined;
92
91
  handleSubmit: (event: React.FormEvent<HTMLFormElement>) => void;
93
92
  openCollapsedSearch: () => void;
94
93
  closeCollapsedSearch: () => void;
95
- componentDidUpdate(prevProps: SearchBarProps, prevState: SearchBarState): void;
94
+ componentDidUpdate(prevProps: SearchFormProps, prevState: SearchFormState): void;
96
95
  focusInput: () => void;
97
96
  focusOpen: () => void;
98
97
  handleFocus: () => void;
@@ -100,4 +99,4 @@ export declare class SearchBar extends React.Component<SearchBarProps, SearchBar
100
99
  handleSearchInputChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
101
100
  render(): JSX.Element;
102
101
  }
103
- //# sourceMappingURL=SearchBar.d.ts.map
102
+ //# sourceMappingURL=SearchForm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SearchForm.d.ts","sourceRoot":"","sources":["../../../../search-form/lib/SearchForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAC,cAAc,EAAS,MAAM,kCAAkC,CAAC;AAMxE,OAAO,EAAC,aAAa,EAAC,MAAM,wCAAwC,CAAC;AACrE,OAAO,EAAC,qBAAqB,EAAgB,WAAW,EAAC,MAAM,UAAU,CAAC;AAI1E,MAAM,WAAW,eAAgB,SAAQ,cAAc,EAAE,KAAK,CAAC,kBAAkB,CAAC,eAAe,CAAC;IAChG;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,gBAAgB,CAAC,eAAe,CAAC,CAAC;IAClD;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;OAEG;IACH,aAAa,CAAC,EAAE,KAAK,CAAC,kBAAkB,CAAC,gBAAgB,CAAC,CAAC;IAC3D;;OAEG;IACH,iBAAiB,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC,aAAa,CAAC,EAAE,CAAC;IACxD;;OAEG;IACH,WAAW,CAAC,EAAE,WAAW,GAAG,qBAAqB,CAAC;IAClD;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;OAGG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B;;;OAGG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B;;;OAGG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,OAAO,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;CACpB;AAuMD,qBAAa,UAAW,SAAQ,KAAK,CAAC,SAAS,CAAC,eAAe,EAAE,eAAe,CAAC;IAC/E,MAAM,CAAC,KAAK,qBAAe;IAE3B,OAAO,CAAC,QAAQ,CAAuC;IACvD,OAAO,CAAC,OAAO,CAAwC;IACvD,OAAO,CAAC,OAAO,CAAU;IAEzB,KAAK,EAAE,QAAQ,CAAC,eAAe,CAAC,CAI9B;IAEF,OAAO,CAAC,QAAQ,CAUd;IAEF,OAAO,CAAC,cAAc,CAMpB;IAEF,iBAAiB,kHAOf;IAEF,YAAY,oDAOV;IAEF,mBAAmB,aAIjB;IAEF,oBAAoB,aAIlB;IAEF,kBAAkB,CAAC,SAAS,EAAE,eAAe,EAAE,SAAS,EAAE,eAAe;IAWzE,UAAU,aAIR;IAEF,SAAS,aAIP;IAEF,WAAW,aAET;IAEF,UAAU,aAER;IAEF,uBAAuB,uDAMrB;IAEF,MAAM;CAkGP"}