@workday/canvas-kit-labs-react 5.3.15 → 5.4.0-next.1

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 (160) hide show
  1. package/combobox/lib/AutocompleteList.tsx +2 -3
  2. package/combobox/lib/Combobox.tsx +10 -4
  3. package/common/README.md +32 -0
  4. package/common/lib/Box.tsx +21 -4
  5. package/common/lib/theming/index.ts +1 -0
  6. package/common/lib/theming/useThemedRing.ts +82 -0
  7. package/dist/commonjs/combobox/lib/AutocompleteList.d.ts.map +1 -1
  8. package/dist/commonjs/combobox/lib/AutocompleteList.js +1 -2
  9. package/dist/commonjs/combobox/lib/Combobox.d.ts.map +1 -1
  10. package/dist/commonjs/combobox/lib/Combobox.js +3 -3
  11. package/dist/commonjs/common/lib/Box.d.ts.map +1 -1
  12. package/dist/commonjs/common/lib/Box.js +10 -2
  13. package/dist/commonjs/common/lib/theming/index.d.ts +1 -0
  14. package/dist/commonjs/common/lib/theming/index.d.ts.map +1 -1
  15. package/dist/commonjs/common/lib/theming/index.js +1 -0
  16. package/dist/commonjs/common/lib/theming/useThemedRing.d.ts +11 -0
  17. package/dist/commonjs/common/lib/theming/useThemedRing.d.ts.map +1 -0
  18. package/dist/commonjs/common/lib/theming/useThemedRing.js +65 -0
  19. package/dist/commonjs/header/index.d.ts +5 -5
  20. package/dist/commonjs/header/index.d.ts.map +1 -1
  21. package/dist/commonjs/header/index.js +2 -2
  22. package/dist/commonjs/header/lib/GlobalHeader.d.ts +11 -2
  23. package/dist/commonjs/header/lib/GlobalHeader.d.ts.map +1 -1
  24. package/dist/commonjs/header/lib/GlobalHeader.js +19 -8
  25. package/dist/commonjs/header/lib/Header.d.ts +17 -8
  26. package/dist/commonjs/header/lib/Header.d.ts.map +1 -1
  27. package/dist/commonjs/header/lib/Header.js +27 -14
  28. package/dist/commonjs/header/lib/parts/DubLogoTitle.d.ts +13 -4
  29. package/dist/commonjs/header/lib/parts/DubLogoTitle.d.ts.map +1 -1
  30. package/dist/commonjs/header/lib/parts/DubLogoTitle.js +22 -11
  31. package/dist/commonjs/header/lib/parts/WorkdayLogoTitle.d.ts +14 -5
  32. package/dist/commonjs/header/lib/parts/WorkdayLogoTitle.d.ts.map +1 -1
  33. package/dist/commonjs/header/lib/parts/WorkdayLogoTitle.js +25 -12
  34. package/dist/commonjs/header/lib/parts/index.d.ts +2 -3
  35. package/dist/commonjs/header/lib/parts/index.d.ts.map +1 -1
  36. package/dist/commonjs/header/lib/parts/index.js +2 -4
  37. package/dist/commonjs/header/lib/shared/themes.d.ts +28 -19
  38. package/dist/commonjs/header/lib/shared/themes.d.ts.map +1 -1
  39. package/dist/commonjs/header/lib/shared/themes.js +13 -36
  40. package/dist/commonjs/header/lib/shared/types.d.ts +3 -8
  41. package/dist/commonjs/header/lib/shared/types.d.ts.map +1 -1
  42. package/dist/commonjs/header/lib/shared/types.js +17 -23
  43. package/dist/commonjs/index.d.ts +1 -0
  44. package/dist/commonjs/index.d.ts.map +1 -1
  45. package/dist/commonjs/index.js +1 -0
  46. package/dist/commonjs/layout/lib/Stack.d.ts.map +1 -1
  47. package/dist/commonjs/layout/lib/Stack.js +1 -1
  48. package/dist/commonjs/layout/lib/utils/getValidChildren.d.ts +1 -1
  49. package/dist/commonjs/layout/lib/utils/getValidChildren.d.ts.map +1 -1
  50. package/dist/commonjs/search-form/index.d.ts +3 -0
  51. package/dist/commonjs/search-form/index.d.ts.map +1 -0
  52. package/dist/commonjs/search-form/index.js +7 -0
  53. package/dist/commonjs/{header/lib/parts/SearchBar.d.ts → search-form/lib/SearchForm.d.ts} +27 -23
  54. package/dist/commonjs/search-form/lib/SearchForm.d.ts.map +1 -0
  55. package/dist/commonjs/{header/lib/parts/SearchBar.js → search-form/lib/SearchForm.js} +17 -19
  56. package/dist/commonjs/search-form/lib/themes.d.ts +21 -0
  57. package/dist/commonjs/search-form/lib/themes.d.ts.map +1 -0
  58. package/dist/commonjs/search-form/lib/themes.js +41 -0
  59. package/dist/es6/combobox/lib/AutocompleteList.d.ts.map +1 -1
  60. package/dist/es6/combobox/lib/AutocompleteList.js +2 -3
  61. package/dist/es6/combobox/lib/Combobox.d.ts.map +1 -1
  62. package/dist/es6/combobox/lib/Combobox.js +4 -4
  63. package/dist/es6/common/lib/Box.d.ts.map +1 -1
  64. package/dist/es6/common/lib/Box.js +11 -3
  65. package/dist/es6/common/lib/theming/index.d.ts +1 -0
  66. package/dist/es6/common/lib/theming/index.d.ts.map +1 -1
  67. package/dist/es6/common/lib/theming/index.js +1 -0
  68. package/dist/es6/common/lib/theming/useThemedRing.d.ts +11 -0
  69. package/dist/es6/common/lib/theming/useThemedRing.d.ts.map +1 -0
  70. package/dist/es6/common/lib/theming/useThemedRing.js +59 -0
  71. package/dist/es6/header/index.d.ts +5 -5
  72. package/dist/es6/header/index.d.ts.map +1 -1
  73. package/dist/es6/header/index.js +5 -5
  74. package/dist/es6/header/lib/GlobalHeader.d.ts +11 -2
  75. package/dist/es6/header/lib/GlobalHeader.d.ts.map +1 -1
  76. package/dist/es6/header/lib/GlobalHeader.js +22 -11
  77. package/dist/es6/header/lib/Header.d.ts +17 -8
  78. package/dist/es6/header/lib/Header.d.ts.map +1 -1
  79. package/dist/es6/header/lib/Header.js +30 -17
  80. package/dist/es6/header/lib/parts/DubLogoTitle.d.ts +13 -4
  81. package/dist/es6/header/lib/parts/DubLogoTitle.d.ts.map +1 -1
  82. package/dist/es6/header/lib/parts/DubLogoTitle.js +23 -12
  83. package/dist/es6/header/lib/parts/WorkdayLogoTitle.d.ts +14 -5
  84. package/dist/es6/header/lib/parts/WorkdayLogoTitle.d.ts.map +1 -1
  85. package/dist/es6/header/lib/parts/WorkdayLogoTitle.js +26 -13
  86. package/dist/es6/header/lib/parts/index.d.ts +2 -3
  87. package/dist/es6/header/lib/parts/index.d.ts.map +1 -1
  88. package/dist/es6/header/lib/parts/index.js +2 -3
  89. package/dist/es6/header/lib/shared/themes.d.ts +28 -19
  90. package/dist/es6/header/lib/shared/themes.d.ts.map +1 -1
  91. package/dist/es6/header/lib/shared/themes.js +14 -37
  92. package/dist/es6/header/lib/shared/types.d.ts +3 -8
  93. package/dist/es6/header/lib/shared/types.d.ts.map +1 -1
  94. package/dist/es6/header/lib/shared/types.js +17 -23
  95. package/dist/es6/index.d.ts +1 -0
  96. package/dist/es6/index.d.ts.map +1 -1
  97. package/dist/es6/index.js +1 -0
  98. package/dist/es6/layout/lib/Stack.d.ts.map +1 -1
  99. package/dist/es6/layout/lib/Stack.js +1 -1
  100. package/dist/es6/layout/lib/utils/getValidChildren.d.ts +1 -1
  101. package/dist/es6/layout/lib/utils/getValidChildren.d.ts.map +1 -1
  102. package/dist/es6/search-form/index.d.ts +3 -0
  103. package/dist/es6/search-form/index.d.ts.map +1 -0
  104. package/dist/es6/search-form/index.js +2 -0
  105. package/{ts3.5/dist/commonjs/header/lib/parts/SearchBar.d.ts → dist/es6/search-form/lib/SearchForm.d.ts} +107 -103
  106. package/dist/es6/search-form/lib/SearchForm.d.ts.map +1 -0
  107. package/dist/es6/{header/lib/parts/SearchBar.js → search-form/lib/SearchForm.js} +16 -18
  108. package/dist/es6/search-form/lib/themes.d.ts +21 -0
  109. package/dist/es6/search-form/lib/themes.d.ts.map +1 -0
  110. package/dist/es6/search-form/lib/themes.js +39 -0
  111. package/header/README.md +37 -181
  112. package/header/index.ts +5 -5
  113. package/header/lib/GlobalHeader.tsx +26 -9
  114. package/header/lib/Header.tsx +58 -26
  115. package/header/lib/parts/DubLogoTitle.tsx +26 -9
  116. package/header/lib/parts/WorkdayLogoTitle.tsx +40 -11
  117. package/header/lib/parts/index.ts +2 -3
  118. package/header/lib/shared/themes.tsx +32 -56
  119. package/header/lib/shared/types.tsx +3 -9
  120. package/index.ts +1 -0
  121. package/layout/lib/Stack.tsx +3 -1
  122. package/package.json +5 -7
  123. package/search-form/LICENSE +52 -0
  124. package/search-form/README.md +6 -0
  125. package/search-form/index.ts +2 -0
  126. package/{header/lib/parts/SearchBar.tsx → search-form/lib/SearchForm.tsx} +40 -35
  127. package/search-form/lib/themes.ts +54 -0
  128. package/search-form/package.json +5 -0
  129. package/ts3.5/dist/commonjs/common/lib/theming/index.d.ts +1 -0
  130. package/ts3.5/dist/commonjs/common/lib/theming/useThemedRing.d.ts +11 -0
  131. package/ts3.5/dist/commonjs/header/index.d.ts +5 -5
  132. package/ts3.5/dist/commonjs/header/lib/GlobalHeader.d.ts +11 -2
  133. package/ts3.5/dist/commonjs/header/lib/Header.d.ts +17 -8
  134. package/ts3.5/dist/commonjs/header/lib/parts/DubLogoTitle.d.ts +13 -4
  135. package/ts3.5/dist/commonjs/header/lib/parts/WorkdayLogoTitle.d.ts +14 -5
  136. package/ts3.5/dist/commonjs/header/lib/parts/index.d.ts +2 -3
  137. package/ts3.5/dist/commonjs/header/lib/shared/themes.d.ts +28 -19
  138. package/ts3.5/dist/commonjs/header/lib/shared/types.d.ts +3 -8
  139. package/ts3.5/dist/commonjs/index.d.ts +1 -0
  140. package/ts3.5/dist/commonjs/layout/lib/utils/getValidChildren.d.ts +1 -1
  141. package/ts3.5/dist/commonjs/search-form/index.d.ts +3 -0
  142. package/ts3.5/dist/{es6/header/lib/parts/SearchBar.d.ts → commonjs/search-form/lib/SearchForm.d.ts} +27 -23
  143. package/ts3.5/dist/commonjs/search-form/lib/themes.d.ts +21 -0
  144. package/ts3.5/dist/es6/common/lib/theming/index.d.ts +1 -0
  145. package/ts3.5/dist/es6/common/lib/theming/useThemedRing.d.ts +11 -0
  146. package/ts3.5/dist/es6/header/index.d.ts +5 -5
  147. package/ts3.5/dist/es6/header/lib/GlobalHeader.d.ts +11 -2
  148. package/ts3.5/dist/es6/header/lib/Header.d.ts +17 -8
  149. package/ts3.5/dist/es6/header/lib/parts/DubLogoTitle.d.ts +13 -4
  150. package/ts3.5/dist/es6/header/lib/parts/WorkdayLogoTitle.d.ts +14 -5
  151. package/ts3.5/dist/es6/header/lib/parts/index.d.ts +2 -3
  152. package/ts3.5/dist/es6/header/lib/shared/themes.d.ts +28 -19
  153. package/ts3.5/dist/es6/header/lib/shared/types.d.ts +3 -8
  154. package/ts3.5/dist/es6/index.d.ts +1 -0
  155. package/ts3.5/dist/es6/layout/lib/utils/getValidChildren.d.ts +1 -1
  156. package/ts3.5/dist/es6/search-form/index.d.ts +3 -0
  157. package/{dist/es6/header/lib/parts/SearchBar.d.ts → ts3.5/dist/es6/search-form/lib/SearchForm.d.ts} +107 -103
  158. package/ts3.5/dist/es6/search-form/lib/themes.d.ts +21 -0
  159. package/dist/commonjs/header/lib/parts/SearchBar.d.ts.map +0 -1
  160. package/dist/es6/header/lib/parts/SearchBar.d.ts.map +0 -1
@@ -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,78 @@ 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;
76
+ /**
77
+ * If true, allow onSubmit being called when input value is empty.
78
+ * @default false
79
+ */
80
+ allowEmptyStringSearch?: boolean;
77
81
  }
78
- export interface SearchBarState {
82
+ export interface SearchFormState {
79
83
  showForm: boolean;
80
84
  searchQuery: string;
81
85
  isFocused: boolean;
82
86
  }
83
- export declare class SearchBar extends React.Component<SearchBarProps, SearchBarState> {
87
+ export declare class SearchForm extends React.Component<SearchFormProps, SearchFormState> {
84
88
  static Theme: typeof SearchTheme;
85
89
  private inputRef;
86
90
  private openRef;
87
91
  private labelId;
88
- state: Readonly<SearchBarState>;
92
+ state: Readonly<SearchFormState>;
89
93
  private getTheme;
90
94
  private getThemeColors;
91
95
  getIconButtonType: () => "circle" | "square" | "inverse" | "squareFilled" | "plain" | "circleFilled" | "inverseFilled" | undefined;
92
96
  handleSubmit: (event: React.FormEvent<HTMLFormElement>) => void;
93
97
  openCollapsedSearch: () => void;
94
98
  closeCollapsedSearch: () => void;
95
- componentDidUpdate(prevProps: SearchBarProps, prevState: SearchBarState): void;
99
+ componentDidUpdate(prevProps: SearchFormProps, prevState: SearchFormState): void;
96
100
  focusInput: () => void;
97
101
  focusOpen: () => void;
98
102
  handleFocus: () => void;
@@ -100,4 +104,4 @@ export declare class SearchBar extends React.Component<SearchBarProps, SearchBar
100
104
  handleSearchInputChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
101
105
  render(): JSX.Element;
102
106
  }
103
- //# sourceMappingURL=SearchBar.d.ts.map
107
+ //# sourceMappingURL=SearchForm.d.ts.map
@@ -0,0 +1,21 @@
1
+ export declare enum SearchTheme {
2
+ Light = 0,
3
+ Dark = 1,
4
+ Transparent = 2
5
+ }
6
+ export interface SearchThemeAttributes {
7
+ background?: string;
8
+ backgroundFocus?: string;
9
+ backgroundHover?: string;
10
+ color?: string;
11
+ colorFocus?: string;
12
+ placeholderColor?: string;
13
+ placeholderColorFocus?: string;
14
+ boxShadow?: string | string[];
15
+ boxShadowFocus?: string | string[];
16
+ }
17
+ export interface SearchThemes {
18
+ [key: string]: SearchThemeAttributes;
19
+ }
20
+ export declare const searchThemes: SearchThemes;
21
+ //# sourceMappingURL=themes.d.ts.map
@@ -1,2 +1,3 @@
1
1
  export * from './useThemeRTL';
2
+ export * from './useThemedRing';
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,11 @@
1
+ import { EmotionCanvasTheme } from '@workday/canvas-kit-react/common';
2
+ import { CSSProperties } from '@workday/canvas-kit-react/tokens';
3
+ declare type paletteSelection = Exclude<keyof EmotionCanvasTheme['canvas']['palette'], 'common'>;
4
+ interface ContrastColors {
5
+ outer?: string;
6
+ inner?: string;
7
+ }
8
+ export declare function getPaletteColors(type: paletteSelection, theme: EmotionCanvasTheme): ContrastColors;
9
+ export declare const useThemedRing: (type: "alert" | "error" | "primary" | "success" | "neutral") => CSSProperties;
10
+ export {};
11
+ //# sourceMappingURL=useThemedRing.d.ts.map
@@ -1,8 +1,8 @@
1
- import Header from './lib/Header';
2
- import GlobalHeader from './lib/GlobalHeader';
3
- export default Header;
4
- export { Header };
5
- export { GlobalHeader };
1
+ import DeprecatedHeader from './lib/Header';
2
+ import DeprecatedGlobalHeader from './lib/GlobalHeader';
3
+ export default DeprecatedHeader;
4
+ export { DeprecatedHeader };
5
+ export { DeprecatedGlobalHeader };
6
6
  export * from './lib/parts';
7
7
  export * from './lib/shared/themes';
8
8
  export * from './lib/shared/types';
@@ -19,11 +19,20 @@ export interface GlobalHeaderProps {
19
19
  */
20
20
  isCollapsed?: boolean;
21
21
  /**
22
- * The React element to render in the left slot of the GlobalHeader. This is typically a SearchBar component.
22
+ * The React element to render in the left slot of the GlobalHeader. This is typically a SearchForm component.
23
23
  */
24
24
  leftSlot?: React.ReactElement;
25
25
  }
26
- export default class GlobalHeader extends React.Component<GlobalHeaderProps> {
26
+ /**
27
+ * ### Deprecated Global Header
28
+ *
29
+ * As of Canvas Kit v6, this component is being soft-deprecated.
30
+ * It will be hard-deprecated (completely removed) in v7. Please see the
31
+ * [migration guide](https://workday.github.io/canvas-kit/?path=/story/welcome-migration-guides-v6-0--page)
32
+ * for more information.
33
+ */
34
+ export default class DeprecatedGlobalHeader extends React.Component<GlobalHeaderProps> {
35
+ componentDidMount(): void;
27
36
  render(): JSX.Element;
28
37
  }
29
38
  //# sourceMappingURL=GlobalHeader.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { HeaderTheme, HeaderVariant } from './shared/types';
2
+ import { DeprecatedHeaderTheme, DeprecatedHeaderVariant } from './shared/types';
3
3
  export interface HeaderProps extends React.HTMLAttributes<HTMLDivElement> {
4
4
  /**
5
5
  * The custom menu toggle node of the Header. This React node replaces the default menu toggle.
@@ -7,14 +7,14 @@ export interface HeaderProps extends React.HTMLAttributes<HTMLDivElement> {
7
7
  menuToggle?: React.ReactNode;
8
8
  /**
9
9
  * The theme of the Header. Accepts `White`, `Blue`, or `Transparent`.
10
- * @default HeaderTheme.White
10
+ * @default DeprecatedHeaderTheme.White
11
11
  */
12
- themeColor?: HeaderTheme;
12
+ themeColor?: DeprecatedHeaderTheme;
13
13
  /**
14
14
  * The variant of the Header. Accepts `Dub` (small) or `Full` (large).
15
- * @default HeaderVariant.Dub
15
+ * @default DeprecatedHeaderVariant.Dub
16
16
  */
17
- variant?: HeaderVariant;
17
+ variant?: DeprecatedHeaderVariant;
18
18
  /**
19
19
  * The text of the Header title. Not used if `brand` is provided.
20
20
  */
@@ -37,7 +37,7 @@ export interface HeaderProps extends React.HTMLAttributes<HTMLDivElement> {
37
37
  */
38
38
  onMenuClick?: (e: React.MouseEvent) => void;
39
39
  /**
40
- * The React element to render in the left slot of the Header. This is typically a SearchBar component.
40
+ * The React element to render in the left slot of the Header. This is typically a SearchForm component.
41
41
  */
42
42
  leftSlot?: React.ReactElement;
43
43
  /**
@@ -46,9 +46,18 @@ export interface HeaderProps extends React.HTMLAttributes<HTMLDivElement> {
46
46
  */
47
47
  isCollapsed?: boolean;
48
48
  }
49
+ /**
50
+ * ### Deprecated Header
51
+ *
52
+ * As of Canvas Kit v6, this component is being soft-deprecated.
53
+ * It will be hard-deprecated (completely removed) in v7. Please see the
54
+ * [migration guide](https://workday.github.io/canvas-kit/?path=/story/welcome-migration-guides-v6-0--page)
55
+ * for more information.
56
+ */
49
57
  export default class Header extends React.Component<HeaderProps, {}> {
50
- static Theme: typeof HeaderTheme;
51
- static Variant: typeof HeaderVariant;
58
+ static Theme: typeof DeprecatedHeaderTheme;
59
+ static Variant: typeof DeprecatedHeaderVariant;
60
+ componentDidMount(): void;
52
61
  /**
53
62
  * Helper that recursively maps ReactNodes to their theme-based equivalent.
54
63
  * Any children that are included in a Header may need to undergo transformation
@@ -1,11 +1,11 @@
1
1
  import * as React from 'react';
2
- import { HeaderTheme } from '../shared/types';
2
+ import { DeprecatedHeaderTheme } from '../shared/types';
3
3
  export declare type DubTitleProps = {
4
4
  /**
5
5
  * The theme of the DubLogoTitle. 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 DubLogoTitle. Not used if `brand` is provided.
11
11
  */
@@ -15,7 +15,16 @@ export declare type DubTitleProps = {
15
15
  */
16
16
  bgColor?: string;
17
17
  };
18
- export declare class DubLogoTitle extends React.Component<DubTitleProps> {
18
+ /**
19
+ * ### Deprecated Dub Logo Title
20
+ *
21
+ * As of Canvas Kit v6, this component is being soft-deprecated.
22
+ * It will be hard-deprecated (completely removed) in v7. Please see the
23
+ * [migration guide](https://workday.github.io/canvas-kit/?path=/story/welcome-migration-guides-v6-0--page)
24
+ * for more information.
25
+ */
26
+ export declare class DeprecatedDubLogoTitle extends React.Component<DubTitleProps> {
27
+ componentDidMount(): void;
19
28
  render(): JSX.Element;
20
29
  }
21
30
  //# sourceMappingURL=DubLogoTitle.d.ts.map
@@ -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,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,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,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
@@ -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,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
@@ -0,0 +1,3 @@
1
+ export * from './lib/SearchForm';
2
+ export * from './lib/themes';
3
+ //# sourceMappingURL=index.d.ts.map