@workday/canvas-kit-labs-react 7.0.0-alpha.0-next.1 → 7.0.0-alpha.0-next.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (185) hide show
  1. package/combobox/lib/Combobox.tsx +5 -3
  2. package/common/README.md +10 -4
  3. package/common/lib/Box.tsx +26 -4
  4. package/common/lib/theming/useThemedRing.ts +9 -5
  5. package/common/lib/utils/other.ts +20 -0
  6. package/dist/commonjs/combobox/index.js +12 -4
  7. package/dist/commonjs/combobox/lib/AutocompleteList.d.ts.map +1 -1
  8. package/dist/commonjs/combobox/lib/AutocompleteList.js +19 -7
  9. package/dist/commonjs/combobox/lib/Combobox.d.ts.map +1 -1
  10. package/dist/commonjs/combobox/lib/Combobox.js +27 -12
  11. package/dist/commonjs/combobox/lib/Status.d.ts.map +1 -1
  12. package/dist/commonjs/combobox/lib/Status.js +14 -2
  13. package/dist/commonjs/common/index.js +15 -7
  14. package/dist/commonjs/common/lib/Box.d.ts +3 -2
  15. package/dist/commonjs/common/lib/Box.d.ts.map +1 -1
  16. package/dist/commonjs/common/lib/Box.js +31 -9
  17. package/dist/commonjs/common/lib/storybook-utils/ComponentStatesTable.d.ts.map +1 -1
  18. package/dist/commonjs/common/lib/storybook-utils/ComponentStatesTable.js +3 -1
  19. package/dist/commonjs/common/lib/storybook-utils/permutateProps.d.ts.map +1 -1
  20. package/dist/commonjs/common/lib/storybook-utils/permutateProps.js +3 -1
  21. package/dist/commonjs/common/lib/theming/index.js +12 -5
  22. package/dist/commonjs/common/lib/theming/useThemeRTL.d.ts.map +1 -1
  23. package/dist/commonjs/common/lib/theming/useThemeRTL.js +1 -0
  24. package/dist/commonjs/common/lib/theming/useThemedRing.d.ts +1 -1
  25. package/dist/commonjs/common/lib/theming/useThemedRing.d.ts.map +1 -1
  26. package/dist/commonjs/common/lib/theming/useThemedRing.js +8 -2
  27. package/dist/commonjs/common/lib/utils/border.js +1 -0
  28. package/dist/commonjs/common/lib/utils/color.js +1 -0
  29. package/dist/commonjs/common/lib/utils/depth.js +1 -0
  30. package/dist/commonjs/common/lib/utils/flexItem.js +1 -0
  31. package/dist/commonjs/common/lib/utils/layout.js +1 -0
  32. package/dist/commonjs/common/lib/utils/other.d.ts +5 -0
  33. package/dist/commonjs/common/lib/utils/other.d.ts.map +1 -0
  34. package/dist/commonjs/common/lib/utils/other.js +19 -0
  35. package/dist/commonjs/common/lib/utils/position.js +1 -0
  36. package/dist/commonjs/common/lib/utils/space.js +1 -0
  37. package/dist/commonjs/drawer/index.js +12 -4
  38. package/dist/commonjs/drawer/lib/Drawer.js +21 -8
  39. package/dist/commonjs/drawer/lib/DrawerHeader.js +20 -8
  40. package/dist/commonjs/index.d.ts +0 -1
  41. package/dist/commonjs/index.d.ts.map +1 -1
  42. package/dist/commonjs/index.js +15 -9
  43. package/dist/commonjs/layout/index.js +12 -5
  44. package/dist/commonjs/layout/lib/Flex.d.ts +1 -1
  45. package/dist/commonjs/layout/lib/Flex.d.ts.map +1 -1
  46. package/dist/commonjs/layout/lib/Flex.js +20 -7
  47. package/dist/commonjs/layout/lib/Stack.d.ts +8 -8
  48. package/dist/commonjs/layout/lib/Stack.d.ts.map +1 -1
  49. package/dist/commonjs/layout/lib/Stack.js +26 -13
  50. package/dist/commonjs/layout/lib/utils/flex.js +1 -0
  51. package/dist/commonjs/layout/lib/utils/getValidChildren.js +15 -2
  52. package/dist/commonjs/layout/lib/utils/stack.js +1 -0
  53. package/dist/commonjs/search-form/index.js +12 -5
  54. package/dist/commonjs/search-form/lib/SearchForm.d.ts +3 -2
  55. package/dist/commonjs/search-form/lib/SearchForm.d.ts.map +1 -1
  56. package/dist/commonjs/search-form/lib/SearchForm.js +21 -8
  57. package/dist/commonjs/search-form/lib/themes.d.ts.map +1 -1
  58. package/dist/commonjs/search-form/lib/themes.js +1 -0
  59. package/dist/es6/combobox/lib/AutocompleteList.d.ts.map +1 -1
  60. package/dist/es6/combobox/lib/Combobox.d.ts.map +1 -1
  61. package/dist/es6/combobox/lib/Combobox.js +1 -1
  62. package/dist/es6/combobox/lib/Status.d.ts.map +1 -1
  63. package/dist/es6/common/lib/Box.d.ts +3 -2
  64. package/dist/es6/common/lib/Box.d.ts.map +1 -1
  65. package/dist/es6/common/lib/Box.js +12 -3
  66. package/dist/es6/common/lib/storybook-utils/ComponentStatesTable.d.ts.map +1 -1
  67. package/dist/es6/common/lib/storybook-utils/permutateProps.d.ts.map +1 -1
  68. package/dist/es6/common/lib/storybook-utils/propTypes.js +1 -0
  69. package/dist/es6/common/lib/theming/useThemeRTL.d.ts.map +1 -1
  70. package/dist/es6/common/lib/theming/useThemedRing.d.ts +1 -1
  71. package/dist/es6/common/lib/theming/useThemedRing.d.ts.map +1 -1
  72. package/dist/es6/common/lib/theming/useThemedRing.js +5 -1
  73. package/dist/es6/common/lib/utils/other.d.ts +5 -0
  74. package/dist/es6/common/lib/utils/other.d.ts.map +1 -0
  75. package/dist/es6/common/lib/utils/other.js +15 -0
  76. package/dist/es6/common/lib/utils/types.js +1 -0
  77. package/dist/es6/drawer/lib/Drawer.js +1 -1
  78. package/dist/es6/drawer/lib/DrawerHeader.js +1 -1
  79. package/dist/es6/index.d.ts +0 -1
  80. package/dist/es6/index.d.ts.map +1 -1
  81. package/dist/es6/index.js +0 -1
  82. package/dist/es6/layout/lib/Flex.d.ts +1 -1
  83. package/dist/es6/layout/lib/Flex.d.ts.map +1 -1
  84. package/dist/es6/layout/lib/Stack.d.ts +8 -8
  85. package/dist/es6/layout/lib/Stack.d.ts.map +1 -1
  86. package/dist/es6/layout/lib/Stack.js +6 -6
  87. package/dist/es6/layout/lib/utils/types.js +1 -0
  88. package/dist/es6/search-form/lib/SearchForm.d.ts +3 -2
  89. package/dist/es6/search-form/lib/SearchForm.d.ts.map +1 -1
  90. package/dist/es6/search-form/lib/SearchForm.js +1 -1
  91. package/dist/es6/search-form/lib/themes.d.ts.map +1 -1
  92. package/index.ts +0 -1
  93. package/layout/lib/Stack.tsx +10 -26
  94. package/package.json +7 -7
  95. package/search-form/lib/SearchForm.tsx +3 -3
  96. package/search-form/lib/themes.ts +2 -1
  97. package/ts3.5/dist/commonjs/common/lib/Box.d.ts +3 -2
  98. package/ts3.5/dist/commonjs/common/lib/theming/useThemedRing.d.ts +1 -1
  99. package/ts3.5/dist/commonjs/common/lib/utils/other.d.ts +5 -0
  100. package/ts3.5/dist/commonjs/index.d.ts +0 -1
  101. package/ts3.5/dist/commonjs/layout/lib/Flex.d.ts +1 -1
  102. package/ts3.5/dist/commonjs/layout/lib/Stack.d.ts +8 -8
  103. package/ts3.5/dist/commonjs/search-form/lib/SearchForm.d.ts +3 -2
  104. package/ts3.5/dist/es6/common/lib/Box.d.ts +3 -2
  105. package/ts3.5/dist/es6/common/lib/theming/useThemedRing.d.ts +1 -1
  106. package/ts3.5/dist/es6/common/lib/utils/other.d.ts +5 -0
  107. package/ts3.5/dist/es6/index.d.ts +0 -1
  108. package/ts3.5/dist/es6/layout/lib/Flex.d.ts +1 -1
  109. package/ts3.5/dist/es6/layout/lib/Stack.d.ts +8 -8
  110. package/ts3.5/dist/es6/search-form/lib/SearchForm.d.ts +3 -2
  111. package/dist/commonjs/header/index.d.ts +0 -9
  112. package/dist/commonjs/header/index.d.ts.map +0 -1
  113. package/dist/commonjs/header/index.js +0 -16
  114. package/dist/commonjs/header/lib/GlobalHeader.d.ts +0 -38
  115. package/dist/commonjs/header/lib/GlobalHeader.d.ts.map +0 -1
  116. package/dist/commonjs/header/lib/GlobalHeader.js +0 -74
  117. package/dist/commonjs/header/lib/Header.d.ts +0 -76
  118. package/dist/commonjs/header/lib/Header.d.ts.map +0 -1
  119. package/dist/commonjs/header/lib/Header.js +0 -321
  120. package/dist/commonjs/header/lib/parts/DubLogoTitle.d.ts +0 -30
  121. package/dist/commonjs/header/lib/parts/DubLogoTitle.d.ts.map +0 -1
  122. package/dist/commonjs/header/lib/parts/DubLogoTitle.js +0 -105
  123. package/dist/commonjs/header/lib/parts/WorkdayLogoTitle.d.ts +0 -31
  124. package/dist/commonjs/header/lib/parts/WorkdayLogoTitle.d.ts.map +0 -1
  125. package/dist/commonjs/header/lib/parts/WorkdayLogoTitle.js +0 -124
  126. package/dist/commonjs/header/lib/parts/index.d.ts +0 -3
  127. package/dist/commonjs/header/lib/parts/index.d.ts.map +0 -1
  128. package/dist/commonjs/header/lib/parts/index.js +0 -6
  129. package/dist/commonjs/header/lib/shared/themes.d.ts +0 -43
  130. package/dist/commonjs/header/lib/shared/themes.d.ts.map +0 -1
  131. package/dist/commonjs/header/lib/shared/themes.js +0 -62
  132. package/dist/commonjs/header/lib/shared/types.d.ts +0 -15
  133. package/dist/commonjs/header/lib/shared/types.d.ts.map +0 -1
  134. package/dist/commonjs/header/lib/shared/types.js +0 -19
  135. package/dist/es6/header/index.d.ts +0 -9
  136. package/dist/es6/header/index.d.ts.map +0 -1
  137. package/dist/es6/header/index.js +0 -8
  138. package/dist/es6/header/lib/GlobalHeader.d.ts +0 -38
  139. package/dist/es6/header/lib/GlobalHeader.d.ts.map +0 -1
  140. package/dist/es6/header/lib/GlobalHeader.js +0 -62
  141. package/dist/es6/header/lib/Header.d.ts +0 -76
  142. package/dist/es6/header/lib/Header.d.ts.map +0 -1
  143. package/dist/es6/header/lib/Header.js +0 -309
  144. package/dist/es6/header/lib/parts/DubLogoTitle.d.ts +0 -30
  145. package/dist/es6/header/lib/parts/DubLogoTitle.d.ts.map +0 -1
  146. package/dist/es6/header/lib/parts/DubLogoTitle.js +0 -93
  147. package/dist/es6/header/lib/parts/WorkdayLogoTitle.d.ts +0 -31
  148. package/dist/es6/header/lib/parts/WorkdayLogoTitle.d.ts.map +0 -1
  149. package/dist/es6/header/lib/parts/WorkdayLogoTitle.js +0 -112
  150. package/dist/es6/header/lib/parts/index.d.ts +0 -3
  151. package/dist/es6/header/lib/parts/index.d.ts.map +0 -1
  152. package/dist/es6/header/lib/parts/index.js +0 -2
  153. package/dist/es6/header/lib/shared/themes.d.ts +0 -43
  154. package/dist/es6/header/lib/shared/themes.d.ts.map +0 -1
  155. package/dist/es6/header/lib/shared/themes.js +0 -57
  156. package/dist/es6/header/lib/shared/types.d.ts +0 -15
  157. package/dist/es6/header/lib/shared/types.d.ts.map +0 -1
  158. package/dist/es6/header/lib/shared/types.js +0 -17
  159. package/header/LICENSE +0 -51
  160. package/header/README.md +0 -359
  161. package/header/index.ts +0 -9
  162. package/header/lib/GlobalHeader.tsx +0 -73
  163. package/header/lib/Header.tsx +0 -429
  164. package/header/lib/parts/DubLogoTitle.tsx +0 -99
  165. package/header/lib/parts/WorkdayLogoTitle.tsx +0 -120
  166. package/header/lib/parts/index.ts +0 -2
  167. package/header/lib/shared/themes.tsx +0 -97
  168. package/header/lib/shared/types.tsx +0 -16
  169. package/header/package.json +0 -5
  170. package/ts3.5/dist/commonjs/header/index.d.ts +0 -9
  171. package/ts3.5/dist/commonjs/header/lib/GlobalHeader.d.ts +0 -38
  172. package/ts3.5/dist/commonjs/header/lib/Header.d.ts +0 -76
  173. package/ts3.5/dist/commonjs/header/lib/parts/DubLogoTitle.d.ts +0 -30
  174. package/ts3.5/dist/commonjs/header/lib/parts/WorkdayLogoTitle.d.ts +0 -31
  175. package/ts3.5/dist/commonjs/header/lib/parts/index.d.ts +0 -3
  176. package/ts3.5/dist/commonjs/header/lib/shared/themes.d.ts +0 -43
  177. package/ts3.5/dist/commonjs/header/lib/shared/types.d.ts +0 -15
  178. package/ts3.5/dist/es6/header/index.d.ts +0 -9
  179. package/ts3.5/dist/es6/header/lib/GlobalHeader.d.ts +0 -38
  180. package/ts3.5/dist/es6/header/lib/Header.d.ts +0 -76
  181. package/ts3.5/dist/es6/header/lib/parts/DubLogoTitle.d.ts +0 -30
  182. package/ts3.5/dist/es6/header/lib/parts/WorkdayLogoTitle.d.ts +0 -31
  183. package/ts3.5/dist/es6/header/lib/parts/index.d.ts +0 -3
  184. package/ts3.5/dist/es6/header/lib/shared/themes.d.ts +0 -43
  185. package/ts3.5/dist/es6/header/lib/shared/types.d.ts +0 -15
@@ -1,97 +0,0 @@
1
- import {
2
- colors,
3
- gradients,
4
- iconColors,
5
- depth,
6
- CSSProperties,
7
- } from '@workday/canvas-kit-react/tokens';
8
- import chroma from 'chroma-js';
9
- import {DeprecatedHeaderTheme} from './types';
10
-
11
- /**
12
- * ### Deprecated Header Theme Attributes Interface
13
- *
14
- * As of Canvas Kit v6, this type interface is being soft-deprecated along with the rest of the labs/header package.
15
- * It will be hard-deprecated (completely removed) in v7. Please see the
16
- * [migration guide](https://workday.github.io/canvas-kit/?path=/story/welcome-migration-guides-v6-0--page)
17
- * for more information.
18
- */
19
- export interface DeprecatedHeaderThemeAttributes {
20
- color: string;
21
- background: string;
22
- depth: CSSProperties;
23
- systemIcon: {
24
- color: string;
25
- colorHover: string;
26
- };
27
- linkColor: string;
28
- linkFadeOutColor: string;
29
- currentLinkColor: string;
30
- chipColor: string;
31
- }
32
-
33
- /**
34
- * ### Deprecated Header Themes Interface
35
- *
36
- * As of Canvas Kit v6, this type interface is being soft-deprecated along with the rest of the labs/header package.
37
- * It will be hard-deprecated (completely removed) in v7. Please see the
38
- * [migration guide](https://workday.github.io/canvas-kit/?path=/story/welcome-migration-guides-v6-0--page)
39
- * for more information.
40
- */
41
- export interface DeprecatedHeaderThemes {
42
- [key: string]: DeprecatedHeaderThemeAttributes;
43
- }
44
-
45
- /**
46
- * ### Deprecated Header Themes
47
- *
48
- * As of Canvas Kit v6, this theme object is being soft-deprecated along with the rest of the labs/header package.
49
- * It will be hard-deprecated (completely removed) in v7. Please see the
50
- * [migration guide](https://workday.github.io/canvas-kit/?path=/story/welcome-migration-guides-v6-0--page)
51
- * for more information.
52
- */
53
- export const deprecatedHeaderThemes: DeprecatedHeaderThemes = {
54
- [DeprecatedHeaderTheme.White]: {
55
- color: colors.blackPepper400,
56
- background: colors.frenchVanilla100,
57
- depth: depth['1'],
58
- systemIcon: {
59
- color: iconColors.standard,
60
- colorHover: iconColors.hover,
61
- },
62
- linkColor: colors.blackPepper400,
63
- linkFadeOutColor: colors.licorice200,
64
- currentLinkColor: colors.blueberry500,
65
- chipColor: colors.blueberry400,
66
- },
67
- [DeprecatedHeaderTheme.Blue]: {
68
- color: colors.frenchVanilla100,
69
- background: gradients.blueberry,
70
- depth: depth['3'],
71
- systemIcon: {
72
- color: colors.frenchVanilla100,
73
- colorHover: colors.blueberry200,
74
- },
75
- linkColor: colors.frenchVanilla100,
76
- linkFadeOutColor: chroma(colors.frenchVanilla100)
77
- .alpha(0.5)
78
- .css(),
79
- currentLinkColor: colors.frenchVanilla100,
80
- chipColor: colors.frenchVanilla100,
81
- },
82
- [DeprecatedHeaderTheme.Transparent]: {
83
- color: colors.frenchVanilla100,
84
- background: 'transparent',
85
- depth: {boxShadow: 'none'},
86
- systemIcon: {
87
- color: colors.frenchVanilla100,
88
- colorHover: colors.blueberry200,
89
- },
90
- linkColor: colors.frenchVanilla100,
91
- linkFadeOutColor: chroma(colors.frenchVanilla100)
92
- .alpha(0.5)
93
- .css(),
94
- currentLinkColor: colors.frenchVanilla100,
95
- chipColor: colors.frenchVanilla100,
96
- },
97
- };
@@ -1,16 +0,0 @@
1
- export enum DeprecatedHeaderTheme {
2
- White,
3
- Blue,
4
- Transparent,
5
- }
6
-
7
- export enum DeprecatedHeaderVariant {
8
- Dub,
9
- Full,
10
- Global,
11
- }
12
-
13
- export enum DeprecatedHeaderHeight {
14
- Small = '64px',
15
- Large = '80px',
16
- }
@@ -1,5 +0,0 @@
1
- {
2
- "main": "../dist/commonjs/header",
3
- "module": "../dist/es6/header",
4
- "sideEffects": false
5
- }
@@ -1,9 +0,0 @@
1
- import DeprecatedHeader from './lib/Header';
2
- import DeprecatedGlobalHeader from './lib/GlobalHeader';
3
- export default DeprecatedHeader;
4
- export { DeprecatedHeader };
5
- export { DeprecatedGlobalHeader };
6
- export * from './lib/parts';
7
- export * from './lib/shared/themes';
8
- export * from './lib/shared/types';
9
- //# sourceMappingURL=index.d.ts.map
@@ -1,38 +0,0 @@
1
- import * as React from 'react';
2
- export interface GlobalHeaderProps {
3
- /**
4
- * The custom brand node of the GlobalHeader. This React node replaces the dub logo and title.
5
- * @default DubLogoTitle
6
- */
7
- brand?: React.ReactNode;
8
- /**
9
- * The custom menu toggle node of the GlobalHeader. This React node replaces the default menu toggle.
10
- */
11
- menuToggle?: React.ReactNode;
12
- /**
13
- * The function called when the responsive menu icon is clicked.
14
- */
15
- onMenuClick?: (e: React.MouseEvent) => void;
16
- /**
17
- * If true, render the GlobalHeader in collapsed mode.
18
- * @default false
19
- */
20
- isCollapsed?: boolean;
21
- /**
22
- * The React element to render in the left slot of the GlobalHeader. This is typically a SearchForm component.
23
- */
24
- leftSlot?: React.ReactElement;
25
- }
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;
36
- render(): JSX.Element;
37
- }
38
- //# sourceMappingURL=GlobalHeader.d.ts.map
@@ -1,76 +0,0 @@
1
- import * as React from 'react';
2
- import { DeprecatedHeaderTheme, DeprecatedHeaderVariant } from './shared/types';
3
- export interface HeaderProps extends React.HTMLAttributes<HTMLDivElement> {
4
- /**
5
- * The custom menu toggle node of the Header. This React node replaces the default menu toggle.
6
- */
7
- menuToggle?: React.ReactNode;
8
- /**
9
- * The theme of the Header. Accepts `White`, `Blue`, or `Transparent`.
10
- * @default DeprecatedHeaderTheme.White
11
- */
12
- themeColor?: DeprecatedHeaderTheme;
13
- /**
14
- * The variant of the Header. Accepts `Dub` (small) or `Full` (large).
15
- * @default DeprecatedHeaderVariant.Dub
16
- */
17
- variant?: DeprecatedHeaderVariant;
18
- /**
19
- * The text of the Header title. Not used if `brand` is provided.
20
- */
21
- title?: string;
22
- /**
23
- * The custom brand node of the Header. This React node replaces the dub logo and title.
24
- */
25
- brand?: React.ReactNode;
26
- /**
27
- * The url of the Header logo link.
28
- */
29
- brandUrl?: string;
30
- /**
31
- * If true, center the Header navigation. If false, right-align the Header navigation.
32
- * @default false
33
- */
34
- centeredNav?: boolean;
35
- /**
36
- * The function called when the responsive menu icon is clicked.
37
- */
38
- onMenuClick?: (e: React.MouseEvent) => void;
39
- /**
40
- * The React element to render in the left slot of the Header. This is typically a SearchForm component.
41
- */
42
- leftSlot?: React.ReactElement;
43
- /**
44
- * If true, render the Header in collapsed mode.
45
- * @default false
46
- */
47
- isCollapsed?: boolean;
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
- */
57
- export default class Header extends React.Component<HeaderProps, {}> {
58
- static Theme: typeof DeprecatedHeaderTheme;
59
- static Variant: typeof DeprecatedHeaderVariant;
60
- componentDidMount(): void;
61
- /**
62
- * Helper that recursively maps ReactNodes to their theme-based equivalent.
63
- * Any children that are included in a Header may need to undergo transformation
64
- * before stamped out in render().
65
- *
66
- * E.g. <SystemIcon> components need to have the appropriate `color` and `colorHover`
67
- * props set based on the theme.
68
- *
69
- * @param children From props.children of a React component
70
- *
71
- * @returns {React.ReactNode} The child/children to be rendered
72
- */
73
- private renderChildren;
74
- render(): JSX.Element;
75
- }
76
- //# sourceMappingURL=Header.d.ts.map
@@ -1,30 +0,0 @@
1
- import * as React from 'react';
2
- import { DeprecatedHeaderTheme } from '../shared/types';
3
- export declare type DubTitleProps = {
4
- /**
5
- * The theme of the DubLogoTitle. Accepts `White`, `Blue`, or `Transparent`.
6
- * @default DeprecatedHeaderTheme.White
7
- */
8
- themeColor?: DeprecatedHeaderTheme;
9
- /**
10
- * The text of the DubLogoTitle. Not used if `brand` is provided.
11
- */
12
- title?: string;
13
- /**
14
- * The background color/gradient behind the DubLogoTitle logo.
15
- */
16
- bgColor?: string;
17
- };
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;
28
- render(): JSX.Element;
29
- }
30
- //# sourceMappingURL=DubLogoTitle.d.ts.map
@@ -1,31 +0,0 @@
1
- import * as React from 'react';
2
- import { DeprecatedHeaderTheme, DeprecatedHeaderVariant } from '../shared/types';
3
- export declare type WorkdayLogoTitleProps = {
4
- /**
5
- * The theme of the WorkdayLogoTitle. Accepts `White`, `Blue`, or `Transparent`.
6
- * @default DeprecatedHeaderTheme.White
7
- */
8
- themeColor?: DeprecatedHeaderTheme;
9
- /**
10
- * The text of the WorkdayLogoTitle. Not used if `brand` is provided.
11
- * @default ''
12
- */
13
- title?: string;
14
- /**
15
- * The variant of the WorkdayLogoTitle.
16
- */
17
- variant?: DeprecatedHeaderVariant;
18
- };
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;
29
- render(): JSX.Element;
30
- }
31
- //# sourceMappingURL=WorkdayLogoTitle.d.ts.map
@@ -1,3 +0,0 @@
1
- export { DeprecatedDubLogoTitle } from './DubLogoTitle';
2
- export { DeprecatedWorkdayLogoTitle } from './WorkdayLogoTitle';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1,43 +0,0 @@
1
- import { CSSProperties } from '@workday/canvas-kit-react/tokens';
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 {
11
- color: string;
12
- background: string;
13
- depth: CSSProperties;
14
- systemIcon: {
15
- color: string;
16
- colorHover: string;
17
- };
18
- linkColor: string;
19
- linkFadeOutColor: string;
20
- currentLinkColor: string;
21
- chipColor: string;
22
- }
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;
33
- }
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;
43
- //# sourceMappingURL=themes.d.ts.map
@@ -1,15 +0,0 @@
1
- export declare enum DeprecatedHeaderTheme {
2
- White = 0,
3
- Blue = 1,
4
- Transparent = 2
5
- }
6
- export declare enum DeprecatedHeaderVariant {
7
- Dub = 0,
8
- Full = 1,
9
- Global = 2
10
- }
11
- export declare enum DeprecatedHeaderHeight {
12
- Small = "64px",
13
- Large = "80px"
14
- }
15
- //# sourceMappingURL=types.d.ts.map
@@ -1,9 +0,0 @@
1
- import DeprecatedHeader from './lib/Header';
2
- import DeprecatedGlobalHeader from './lib/GlobalHeader';
3
- export default DeprecatedHeader;
4
- export { DeprecatedHeader };
5
- export { DeprecatedGlobalHeader };
6
- export * from './lib/parts';
7
- export * from './lib/shared/themes';
8
- export * from './lib/shared/types';
9
- //# sourceMappingURL=index.d.ts.map
@@ -1,38 +0,0 @@
1
- import * as React from 'react';
2
- export interface GlobalHeaderProps {
3
- /**
4
- * The custom brand node of the GlobalHeader. This React node replaces the dub logo and title.
5
- * @default DubLogoTitle
6
- */
7
- brand?: React.ReactNode;
8
- /**
9
- * The custom menu toggle node of the GlobalHeader. This React node replaces the default menu toggle.
10
- */
11
- menuToggle?: React.ReactNode;
12
- /**
13
- * The function called when the responsive menu icon is clicked.
14
- */
15
- onMenuClick?: (e: React.MouseEvent) => void;
16
- /**
17
- * If true, render the GlobalHeader in collapsed mode.
18
- * @default false
19
- */
20
- isCollapsed?: boolean;
21
- /**
22
- * The React element to render in the left slot of the GlobalHeader. This is typically a SearchForm component.
23
- */
24
- leftSlot?: React.ReactElement;
25
- }
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;
36
- render(): JSX.Element;
37
- }
38
- //# sourceMappingURL=GlobalHeader.d.ts.map
@@ -1,76 +0,0 @@
1
- import * as React from 'react';
2
- import { DeprecatedHeaderTheme, DeprecatedHeaderVariant } from './shared/types';
3
- export interface HeaderProps extends React.HTMLAttributes<HTMLDivElement> {
4
- /**
5
- * The custom menu toggle node of the Header. This React node replaces the default menu toggle.
6
- */
7
- menuToggle?: React.ReactNode;
8
- /**
9
- * The theme of the Header. Accepts `White`, `Blue`, or `Transparent`.
10
- * @default DeprecatedHeaderTheme.White
11
- */
12
- themeColor?: DeprecatedHeaderTheme;
13
- /**
14
- * The variant of the Header. Accepts `Dub` (small) or `Full` (large).
15
- * @default DeprecatedHeaderVariant.Dub
16
- */
17
- variant?: DeprecatedHeaderVariant;
18
- /**
19
- * The text of the Header title. Not used if `brand` is provided.
20
- */
21
- title?: string;
22
- /**
23
- * The custom brand node of the Header. This React node replaces the dub logo and title.
24
- */
25
- brand?: React.ReactNode;
26
- /**
27
- * The url of the Header logo link.
28
- */
29
- brandUrl?: string;
30
- /**
31
- * If true, center the Header navigation. If false, right-align the Header navigation.
32
- * @default false
33
- */
34
- centeredNav?: boolean;
35
- /**
36
- * The function called when the responsive menu icon is clicked.
37
- */
38
- onMenuClick?: (e: React.MouseEvent) => void;
39
- /**
40
- * The React element to render in the left slot of the Header. This is typically a SearchForm component.
41
- */
42
- leftSlot?: React.ReactElement;
43
- /**
44
- * If true, render the Header in collapsed mode.
45
- * @default false
46
- */
47
- isCollapsed?: boolean;
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
- */
57
- export default class Header extends React.Component<HeaderProps, {}> {
58
- static Theme: typeof DeprecatedHeaderTheme;
59
- static Variant: typeof DeprecatedHeaderVariant;
60
- componentDidMount(): void;
61
- /**
62
- * Helper that recursively maps ReactNodes to their theme-based equivalent.
63
- * Any children that are included in a Header may need to undergo transformation
64
- * before stamped out in render().
65
- *
66
- * E.g. <SystemIcon> components need to have the appropriate `color` and `colorHover`
67
- * props set based on the theme.
68
- *
69
- * @param children From props.children of a React component
70
- *
71
- * @returns {React.ReactNode} The child/children to be rendered
72
- */
73
- private renderChildren;
74
- render(): JSX.Element;
75
- }
76
- //# sourceMappingURL=Header.d.ts.map
@@ -1,30 +0,0 @@
1
- import * as React from 'react';
2
- import { DeprecatedHeaderTheme } from '../shared/types';
3
- export declare type DubTitleProps = {
4
- /**
5
- * The theme of the DubLogoTitle. Accepts `White`, `Blue`, or `Transparent`.
6
- * @default DeprecatedHeaderTheme.White
7
- */
8
- themeColor?: DeprecatedHeaderTheme;
9
- /**
10
- * The text of the DubLogoTitle. Not used if `brand` is provided.
11
- */
12
- title?: string;
13
- /**
14
- * The background color/gradient behind the DubLogoTitle logo.
15
- */
16
- bgColor?: string;
17
- };
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;
28
- render(): JSX.Element;
29
- }
30
- //# sourceMappingURL=DubLogoTitle.d.ts.map
@@ -1,31 +0,0 @@
1
- import * as React from 'react';
2
- import { DeprecatedHeaderTheme, DeprecatedHeaderVariant } from '../shared/types';
3
- export declare type WorkdayLogoTitleProps = {
4
- /**
5
- * The theme of the WorkdayLogoTitle. Accepts `White`, `Blue`, or `Transparent`.
6
- * @default DeprecatedHeaderTheme.White
7
- */
8
- themeColor?: DeprecatedHeaderTheme;
9
- /**
10
- * The text of the WorkdayLogoTitle. Not used if `brand` is provided.
11
- * @default ''
12
- */
13
- title?: string;
14
- /**
15
- * The variant of the WorkdayLogoTitle.
16
- */
17
- variant?: DeprecatedHeaderVariant;
18
- };
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;
29
- render(): JSX.Element;
30
- }
31
- //# sourceMappingURL=WorkdayLogoTitle.d.ts.map
@@ -1,3 +0,0 @@
1
- export { DeprecatedDubLogoTitle } from './DubLogoTitle';
2
- export { DeprecatedWorkdayLogoTitle } from './WorkdayLogoTitle';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1,43 +0,0 @@
1
- import { CSSProperties } from '@workday/canvas-kit-react/tokens';
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 {
11
- color: string;
12
- background: string;
13
- depth: CSSProperties;
14
- systemIcon: {
15
- color: string;
16
- colorHover: string;
17
- };
18
- linkColor: string;
19
- linkFadeOutColor: string;
20
- currentLinkColor: string;
21
- chipColor: string;
22
- }
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;
33
- }
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;
43
- //# sourceMappingURL=themes.d.ts.map
@@ -1,15 +0,0 @@
1
- export declare enum DeprecatedHeaderTheme {
2
- White = 0,
3
- Blue = 1,
4
- Transparent = 2
5
- }
6
- export declare enum DeprecatedHeaderVariant {
7
- Dub = 0,
8
- Full = 1,
9
- Global = 2
10
- }
11
- export declare enum DeprecatedHeaderHeight {
12
- Small = "64px",
13
- Large = "80px"
14
- }
15
- //# sourceMappingURL=types.d.ts.map