@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.
- package/combobox/lib/Combobox.tsx +5 -3
- package/common/README.md +10 -4
- package/common/lib/Box.tsx +26 -4
- package/common/lib/theming/useThemedRing.ts +9 -5
- package/common/lib/utils/other.ts +20 -0
- package/dist/commonjs/combobox/index.js +12 -4
- package/dist/commonjs/combobox/lib/AutocompleteList.d.ts.map +1 -1
- package/dist/commonjs/combobox/lib/AutocompleteList.js +19 -7
- package/dist/commonjs/combobox/lib/Combobox.d.ts.map +1 -1
- package/dist/commonjs/combobox/lib/Combobox.js +27 -12
- package/dist/commonjs/combobox/lib/Status.d.ts.map +1 -1
- package/dist/commonjs/combobox/lib/Status.js +14 -2
- package/dist/commonjs/common/index.js +15 -7
- package/dist/commonjs/common/lib/Box.d.ts +3 -2
- package/dist/commonjs/common/lib/Box.d.ts.map +1 -1
- package/dist/commonjs/common/lib/Box.js +31 -9
- package/dist/commonjs/common/lib/storybook-utils/ComponentStatesTable.d.ts.map +1 -1
- package/dist/commonjs/common/lib/storybook-utils/ComponentStatesTable.js +3 -1
- package/dist/commonjs/common/lib/storybook-utils/permutateProps.d.ts.map +1 -1
- package/dist/commonjs/common/lib/storybook-utils/permutateProps.js +3 -1
- package/dist/commonjs/common/lib/theming/index.js +12 -5
- package/dist/commonjs/common/lib/theming/useThemeRTL.d.ts.map +1 -1
- package/dist/commonjs/common/lib/theming/useThemeRTL.js +1 -0
- package/dist/commonjs/common/lib/theming/useThemedRing.d.ts +1 -1
- package/dist/commonjs/common/lib/theming/useThemedRing.d.ts.map +1 -1
- package/dist/commonjs/common/lib/theming/useThemedRing.js +8 -2
- package/dist/commonjs/common/lib/utils/border.js +1 -0
- package/dist/commonjs/common/lib/utils/color.js +1 -0
- package/dist/commonjs/common/lib/utils/depth.js +1 -0
- package/dist/commonjs/common/lib/utils/flexItem.js +1 -0
- package/dist/commonjs/common/lib/utils/layout.js +1 -0
- package/dist/commonjs/common/lib/utils/other.d.ts +5 -0
- package/dist/commonjs/common/lib/utils/other.d.ts.map +1 -0
- package/dist/commonjs/common/lib/utils/other.js +19 -0
- package/dist/commonjs/common/lib/utils/position.js +1 -0
- package/dist/commonjs/common/lib/utils/space.js +1 -0
- package/dist/commonjs/drawer/index.js +12 -4
- package/dist/commonjs/drawer/lib/Drawer.js +21 -8
- package/dist/commonjs/drawer/lib/DrawerHeader.js +20 -8
- package/dist/commonjs/index.d.ts +0 -1
- package/dist/commonjs/index.d.ts.map +1 -1
- package/dist/commonjs/index.js +15 -9
- package/dist/commonjs/layout/index.js +12 -5
- package/dist/commonjs/layout/lib/Flex.d.ts +1 -1
- package/dist/commonjs/layout/lib/Flex.d.ts.map +1 -1
- package/dist/commonjs/layout/lib/Flex.js +20 -7
- package/dist/commonjs/layout/lib/Stack.d.ts +8 -8
- package/dist/commonjs/layout/lib/Stack.d.ts.map +1 -1
- package/dist/commonjs/layout/lib/Stack.js +26 -13
- package/dist/commonjs/layout/lib/utils/flex.js +1 -0
- package/dist/commonjs/layout/lib/utils/getValidChildren.js +15 -2
- package/dist/commonjs/layout/lib/utils/stack.js +1 -0
- package/dist/commonjs/search-form/index.js +12 -5
- package/dist/commonjs/search-form/lib/SearchForm.d.ts +3 -2
- package/dist/commonjs/search-form/lib/SearchForm.d.ts.map +1 -1
- package/dist/commonjs/search-form/lib/SearchForm.js +21 -8
- package/dist/commonjs/search-form/lib/themes.d.ts.map +1 -1
- package/dist/commonjs/search-form/lib/themes.js +1 -0
- package/dist/es6/combobox/lib/AutocompleteList.d.ts.map +1 -1
- package/dist/es6/combobox/lib/Combobox.d.ts.map +1 -1
- package/dist/es6/combobox/lib/Combobox.js +1 -1
- package/dist/es6/combobox/lib/Status.d.ts.map +1 -1
- package/dist/es6/common/lib/Box.d.ts +3 -2
- package/dist/es6/common/lib/Box.d.ts.map +1 -1
- package/dist/es6/common/lib/Box.js +12 -3
- package/dist/es6/common/lib/storybook-utils/ComponentStatesTable.d.ts.map +1 -1
- package/dist/es6/common/lib/storybook-utils/permutateProps.d.ts.map +1 -1
- package/dist/es6/common/lib/storybook-utils/propTypes.js +1 -0
- package/dist/es6/common/lib/theming/useThemeRTL.d.ts.map +1 -1
- package/dist/es6/common/lib/theming/useThemedRing.d.ts +1 -1
- package/dist/es6/common/lib/theming/useThemedRing.d.ts.map +1 -1
- package/dist/es6/common/lib/theming/useThemedRing.js +5 -1
- package/dist/es6/common/lib/utils/other.d.ts +5 -0
- package/dist/es6/common/lib/utils/other.d.ts.map +1 -0
- package/dist/es6/common/lib/utils/other.js +15 -0
- package/dist/es6/common/lib/utils/types.js +1 -0
- package/dist/es6/drawer/lib/Drawer.js +1 -1
- package/dist/es6/drawer/lib/DrawerHeader.js +1 -1
- package/dist/es6/index.d.ts +0 -1
- package/dist/es6/index.d.ts.map +1 -1
- package/dist/es6/index.js +0 -1
- package/dist/es6/layout/lib/Flex.d.ts +1 -1
- package/dist/es6/layout/lib/Flex.d.ts.map +1 -1
- package/dist/es6/layout/lib/Stack.d.ts +8 -8
- package/dist/es6/layout/lib/Stack.d.ts.map +1 -1
- package/dist/es6/layout/lib/Stack.js +6 -6
- package/dist/es6/layout/lib/utils/types.js +1 -0
- package/dist/es6/search-form/lib/SearchForm.d.ts +3 -2
- package/dist/es6/search-form/lib/SearchForm.d.ts.map +1 -1
- package/dist/es6/search-form/lib/SearchForm.js +1 -1
- package/dist/es6/search-form/lib/themes.d.ts.map +1 -1
- package/index.ts +0 -1
- package/layout/lib/Stack.tsx +10 -26
- package/package.json +7 -7
- package/search-form/lib/SearchForm.tsx +3 -3
- package/search-form/lib/themes.ts +2 -1
- package/ts3.5/dist/commonjs/common/lib/Box.d.ts +3 -2
- package/ts3.5/dist/commonjs/common/lib/theming/useThemedRing.d.ts +1 -1
- package/ts3.5/dist/commonjs/common/lib/utils/other.d.ts +5 -0
- package/ts3.5/dist/commonjs/index.d.ts +0 -1
- package/ts3.5/dist/commonjs/layout/lib/Flex.d.ts +1 -1
- package/ts3.5/dist/commonjs/layout/lib/Stack.d.ts +8 -8
- package/ts3.5/dist/commonjs/search-form/lib/SearchForm.d.ts +3 -2
- package/ts3.5/dist/es6/common/lib/Box.d.ts +3 -2
- package/ts3.5/dist/es6/common/lib/theming/useThemedRing.d.ts +1 -1
- package/ts3.5/dist/es6/common/lib/utils/other.d.ts +5 -0
- package/ts3.5/dist/es6/index.d.ts +0 -1
- package/ts3.5/dist/es6/layout/lib/Flex.d.ts +1 -1
- package/ts3.5/dist/es6/layout/lib/Stack.d.ts +8 -8
- package/ts3.5/dist/es6/search-form/lib/SearchForm.d.ts +3 -2
- package/dist/commonjs/header/index.d.ts +0 -9
- package/dist/commonjs/header/index.d.ts.map +0 -1
- package/dist/commonjs/header/index.js +0 -16
- package/dist/commonjs/header/lib/GlobalHeader.d.ts +0 -38
- package/dist/commonjs/header/lib/GlobalHeader.d.ts.map +0 -1
- package/dist/commonjs/header/lib/GlobalHeader.js +0 -74
- package/dist/commonjs/header/lib/Header.d.ts +0 -76
- package/dist/commonjs/header/lib/Header.d.ts.map +0 -1
- package/dist/commonjs/header/lib/Header.js +0 -321
- package/dist/commonjs/header/lib/parts/DubLogoTitle.d.ts +0 -30
- package/dist/commonjs/header/lib/parts/DubLogoTitle.d.ts.map +0 -1
- package/dist/commonjs/header/lib/parts/DubLogoTitle.js +0 -105
- package/dist/commonjs/header/lib/parts/WorkdayLogoTitle.d.ts +0 -31
- package/dist/commonjs/header/lib/parts/WorkdayLogoTitle.d.ts.map +0 -1
- package/dist/commonjs/header/lib/parts/WorkdayLogoTitle.js +0 -124
- package/dist/commonjs/header/lib/parts/index.d.ts +0 -3
- package/dist/commonjs/header/lib/parts/index.d.ts.map +0 -1
- package/dist/commonjs/header/lib/parts/index.js +0 -6
- package/dist/commonjs/header/lib/shared/themes.d.ts +0 -43
- package/dist/commonjs/header/lib/shared/themes.d.ts.map +0 -1
- package/dist/commonjs/header/lib/shared/themes.js +0 -62
- package/dist/commonjs/header/lib/shared/types.d.ts +0 -15
- package/dist/commonjs/header/lib/shared/types.d.ts.map +0 -1
- package/dist/commonjs/header/lib/shared/types.js +0 -19
- package/dist/es6/header/index.d.ts +0 -9
- package/dist/es6/header/index.d.ts.map +0 -1
- package/dist/es6/header/index.js +0 -8
- package/dist/es6/header/lib/GlobalHeader.d.ts +0 -38
- package/dist/es6/header/lib/GlobalHeader.d.ts.map +0 -1
- package/dist/es6/header/lib/GlobalHeader.js +0 -62
- package/dist/es6/header/lib/Header.d.ts +0 -76
- package/dist/es6/header/lib/Header.d.ts.map +0 -1
- package/dist/es6/header/lib/Header.js +0 -309
- package/dist/es6/header/lib/parts/DubLogoTitle.d.ts +0 -30
- package/dist/es6/header/lib/parts/DubLogoTitle.d.ts.map +0 -1
- package/dist/es6/header/lib/parts/DubLogoTitle.js +0 -93
- package/dist/es6/header/lib/parts/WorkdayLogoTitle.d.ts +0 -31
- package/dist/es6/header/lib/parts/WorkdayLogoTitle.d.ts.map +0 -1
- package/dist/es6/header/lib/parts/WorkdayLogoTitle.js +0 -112
- package/dist/es6/header/lib/parts/index.d.ts +0 -3
- package/dist/es6/header/lib/parts/index.d.ts.map +0 -1
- package/dist/es6/header/lib/parts/index.js +0 -2
- package/dist/es6/header/lib/shared/themes.d.ts +0 -43
- package/dist/es6/header/lib/shared/themes.d.ts.map +0 -1
- package/dist/es6/header/lib/shared/themes.js +0 -57
- package/dist/es6/header/lib/shared/types.d.ts +0 -15
- package/dist/es6/header/lib/shared/types.d.ts.map +0 -1
- package/dist/es6/header/lib/shared/types.js +0 -17
- package/header/LICENSE +0 -51
- package/header/README.md +0 -359
- package/header/index.ts +0 -9
- package/header/lib/GlobalHeader.tsx +0 -73
- package/header/lib/Header.tsx +0 -429
- package/header/lib/parts/DubLogoTitle.tsx +0 -99
- package/header/lib/parts/WorkdayLogoTitle.tsx +0 -120
- package/header/lib/parts/index.ts +0 -2
- package/header/lib/shared/themes.tsx +0 -97
- package/header/lib/shared/types.tsx +0 -16
- package/header/package.json +0 -5
- package/ts3.5/dist/commonjs/header/index.d.ts +0 -9
- package/ts3.5/dist/commonjs/header/lib/GlobalHeader.d.ts +0 -38
- package/ts3.5/dist/commonjs/header/lib/Header.d.ts +0 -76
- package/ts3.5/dist/commonjs/header/lib/parts/DubLogoTitle.d.ts +0 -30
- package/ts3.5/dist/commonjs/header/lib/parts/WorkdayLogoTitle.d.ts +0 -31
- package/ts3.5/dist/commonjs/header/lib/parts/index.d.ts +0 -3
- package/ts3.5/dist/commonjs/header/lib/shared/themes.d.ts +0 -43
- package/ts3.5/dist/commonjs/header/lib/shared/types.d.ts +0 -15
- package/ts3.5/dist/es6/header/index.d.ts +0 -9
- package/ts3.5/dist/es6/header/lib/GlobalHeader.d.ts +0 -38
- package/ts3.5/dist/es6/header/lib/Header.d.ts +0 -76
- package/ts3.5/dist/es6/header/lib/parts/DubLogoTitle.d.ts +0 -30
- package/ts3.5/dist/es6/header/lib/parts/WorkdayLogoTitle.d.ts +0 -31
- package/ts3.5/dist/es6/header/lib/parts/index.d.ts +0 -3
- package/ts3.5/dist/es6/header/lib/shared/themes.d.ts +0 -43
- 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
|
-
};
|
package/header/package.json
DELETED
|
@@ -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,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,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
|