@workday/canvas-kit-labs-react 5.3.0-next.3 → 5.3.0-next.32
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/AutocompleteList.tsx +7 -5
- package/combobox/lib/Combobox.tsx +9 -5
- package/common/README.md +32 -0
- package/common/lib/theming/index.ts +1 -0
- package/common/lib/theming/useThemedRing.ts +78 -0
- package/dist/commonjs/combobox/lib/AutocompleteList.d.ts.map +1 -1
- package/dist/commonjs/combobox/lib/AutocompleteList.js +6 -4
- package/dist/commonjs/combobox/lib/Combobox.d.ts.map +1 -1
- package/dist/commonjs/combobox/lib/Combobox.js +2 -4
- package/dist/commonjs/common/lib/theming/index.d.ts +1 -0
- package/dist/commonjs/common/lib/theming/index.d.ts.map +1 -1
- package/dist/commonjs/common/lib/theming/index.js +1 -0
- package/dist/commonjs/common/lib/theming/useThemedRing.d.ts +11 -0
- package/dist/commonjs/common/lib/theming/useThemedRing.d.ts.map +1 -0
- package/dist/commonjs/common/lib/theming/useThemedRing.js +61 -0
- package/dist/commonjs/header/index.d.ts +5 -5
- package/dist/commonjs/header/index.d.ts.map +1 -1
- package/dist/commonjs/header/index.js +2 -2
- package/dist/commonjs/header/lib/GlobalHeader.d.ts +11 -2
- package/dist/commonjs/header/lib/GlobalHeader.d.ts.map +1 -1
- package/dist/commonjs/header/lib/GlobalHeader.js +19 -8
- package/dist/commonjs/header/lib/Header.d.ts +17 -8
- package/dist/commonjs/header/lib/Header.d.ts.map +1 -1
- package/dist/commonjs/header/lib/Header.js +27 -14
- package/dist/commonjs/header/lib/parts/DubLogoTitle.d.ts +13 -4
- package/dist/commonjs/header/lib/parts/DubLogoTitle.d.ts.map +1 -1
- package/dist/commonjs/header/lib/parts/DubLogoTitle.js +22 -11
- package/dist/commonjs/header/lib/parts/WorkdayLogoTitle.d.ts +14 -5
- package/dist/commonjs/header/lib/parts/WorkdayLogoTitle.d.ts.map +1 -1
- package/dist/commonjs/header/lib/parts/WorkdayLogoTitle.js +25 -12
- package/dist/commonjs/header/lib/parts/index.d.ts +2 -3
- package/dist/commonjs/header/lib/parts/index.d.ts.map +1 -1
- package/dist/commonjs/header/lib/parts/index.js +2 -4
- package/dist/commonjs/header/lib/shared/themes.d.ts +28 -19
- package/dist/commonjs/header/lib/shared/themes.d.ts.map +1 -1
- package/dist/commonjs/header/lib/shared/themes.js +13 -36
- package/dist/commonjs/header/lib/shared/types.d.ts +3 -8
- package/dist/commonjs/header/lib/shared/types.d.ts.map +1 -1
- package/dist/commonjs/header/lib/shared/types.js +17 -23
- package/dist/commonjs/index.d.ts +1 -0
- package/dist/commonjs/index.d.ts.map +1 -1
- package/dist/commonjs/index.js +1 -0
- package/dist/commonjs/layout/lib/utils/getValidChildren.d.ts +1 -1
- package/dist/commonjs/layout/lib/utils/getValidChildren.d.ts.map +1 -1
- package/dist/commonjs/search-form/index.d.ts +3 -0
- package/dist/commonjs/search-form/index.d.ts.map +1 -0
- package/dist/commonjs/search-form/index.js +7 -0
- package/dist/commonjs/{header/lib/parts/SearchBar.d.ts → search-form/lib/SearchForm.d.ts} +22 -23
- package/dist/commonjs/search-form/lib/SearchForm.d.ts.map +1 -0
- package/dist/commonjs/{header/lib/parts/SearchBar.js → search-form/lib/SearchForm.js} +15 -17
- package/dist/commonjs/search-form/lib/themes.d.ts +21 -0
- package/dist/commonjs/search-form/lib/themes.d.ts.map +1 -0
- package/dist/commonjs/search-form/lib/themes.js +41 -0
- package/dist/es6/combobox/lib/AutocompleteList.d.ts.map +1 -1
- package/dist/es6/combobox/lib/AutocompleteList.js +7 -5
- package/dist/es6/combobox/lib/Combobox.d.ts.map +1 -1
- package/dist/es6/combobox/lib/Combobox.js +3 -5
- package/dist/es6/common/lib/theming/index.d.ts +1 -0
- package/dist/es6/common/lib/theming/index.d.ts.map +1 -1
- package/dist/es6/common/lib/theming/index.js +1 -0
- package/dist/es6/common/lib/theming/useThemedRing.d.ts +11 -0
- package/dist/es6/common/lib/theming/useThemedRing.d.ts.map +1 -0
- package/dist/es6/common/lib/theming/useThemedRing.js +55 -0
- package/dist/es6/header/index.d.ts +5 -5
- package/dist/es6/header/index.d.ts.map +1 -1
- package/dist/es6/header/index.js +5 -5
- package/dist/es6/header/lib/GlobalHeader.d.ts +11 -2
- package/dist/es6/header/lib/GlobalHeader.d.ts.map +1 -1
- package/dist/es6/header/lib/GlobalHeader.js +22 -11
- package/dist/es6/header/lib/Header.d.ts +17 -8
- package/dist/es6/header/lib/Header.d.ts.map +1 -1
- package/dist/es6/header/lib/Header.js +30 -17
- package/dist/es6/header/lib/parts/DubLogoTitle.d.ts +13 -4
- package/dist/es6/header/lib/parts/DubLogoTitle.d.ts.map +1 -1
- package/dist/es6/header/lib/parts/DubLogoTitle.js +23 -12
- package/dist/es6/header/lib/parts/WorkdayLogoTitle.d.ts +14 -5
- package/dist/es6/header/lib/parts/WorkdayLogoTitle.d.ts.map +1 -1
- package/dist/es6/header/lib/parts/WorkdayLogoTitle.js +26 -13
- package/dist/es6/header/lib/parts/index.d.ts +2 -3
- package/dist/es6/header/lib/parts/index.d.ts.map +1 -1
- package/dist/es6/header/lib/parts/index.js +2 -3
- package/dist/es6/header/lib/shared/themes.d.ts +28 -19
- package/dist/es6/header/lib/shared/themes.d.ts.map +1 -1
- package/dist/es6/header/lib/shared/themes.js +14 -37
- package/dist/es6/header/lib/shared/types.d.ts +3 -8
- package/dist/es6/header/lib/shared/types.d.ts.map +1 -1
- package/dist/es6/header/lib/shared/types.js +17 -23
- package/dist/es6/index.d.ts +1 -0
- package/dist/es6/index.d.ts.map +1 -1
- package/dist/es6/index.js +1 -0
- package/dist/es6/layout/lib/utils/getValidChildren.d.ts +1 -1
- package/dist/es6/layout/lib/utils/getValidChildren.d.ts.map +1 -1
- package/dist/es6/search-form/index.d.ts +3 -0
- package/dist/es6/search-form/index.d.ts.map +1 -0
- package/dist/es6/search-form/index.js +2 -0
- package/dist/es6/{header/lib/parts/SearchBar.d.ts → search-form/lib/SearchForm.d.ts} +22 -23
- package/dist/es6/search-form/lib/SearchForm.d.ts.map +1 -0
- package/dist/es6/{header/lib/parts/SearchBar.js → search-form/lib/SearchForm.js} +14 -16
- package/dist/es6/search-form/lib/themes.d.ts +21 -0
- package/dist/es6/search-form/lib/themes.d.ts.map +1 -0
- package/dist/es6/search-form/lib/themes.js +39 -0
- package/header/README.md +37 -181
- package/header/index.ts +5 -5
- package/header/lib/GlobalHeader.tsx +26 -9
- package/header/lib/Header.tsx +58 -26
- package/header/lib/parts/DubLogoTitle.tsx +26 -9
- package/header/lib/parts/WorkdayLogoTitle.tsx +40 -11
- package/header/lib/parts/index.ts +2 -3
- package/header/lib/shared/themes.tsx +32 -56
- package/header/lib/shared/types.tsx +3 -9
- package/index.ts +1 -0
- package/package.json +7 -8
- package/search-form/LICENSE +52 -0
- package/search-form/README.md +6 -0
- package/search-form/index.ts +2 -0
- package/{header/lib/parts/SearchBar.tsx → search-form/lib/SearchForm.tsx} +33 -34
- package/search-form/lib/themes.ts +54 -0
- package/search-form/package.json +5 -0
- package/ts3.5/dist/commonjs/common/lib/theming/index.d.ts +1 -0
- package/ts3.5/dist/commonjs/common/lib/theming/useThemedRing.d.ts +11 -0
- package/ts3.5/dist/commonjs/header/index.d.ts +5 -5
- package/ts3.5/dist/commonjs/header/lib/GlobalHeader.d.ts +11 -2
- package/ts3.5/dist/commonjs/header/lib/Header.d.ts +17 -8
- package/ts3.5/dist/commonjs/header/lib/parts/DubLogoTitle.d.ts +13 -4
- package/ts3.5/dist/commonjs/header/lib/parts/WorkdayLogoTitle.d.ts +14 -5
- package/ts3.5/dist/commonjs/header/lib/parts/index.d.ts +2 -3
- package/ts3.5/dist/commonjs/header/lib/shared/themes.d.ts +28 -19
- package/ts3.5/dist/commonjs/header/lib/shared/types.d.ts +3 -8
- package/ts3.5/dist/commonjs/index.d.ts +1 -0
- package/ts3.5/dist/commonjs/layout/lib/utils/getValidChildren.d.ts +1 -1
- package/ts3.5/dist/commonjs/search-form/index.d.ts +3 -0
- package/ts3.5/dist/commonjs/{header/lib/parts/SearchBar.d.ts → search-form/lib/SearchForm.d.ts} +22 -23
- package/ts3.5/dist/commonjs/search-form/lib/themes.d.ts +21 -0
- package/ts3.5/dist/es6/common/lib/theming/index.d.ts +1 -0
- package/ts3.5/dist/es6/common/lib/theming/useThemedRing.d.ts +11 -0
- package/ts3.5/dist/es6/header/index.d.ts +5 -5
- package/ts3.5/dist/es6/header/lib/GlobalHeader.d.ts +11 -2
- package/ts3.5/dist/es6/header/lib/Header.d.ts +17 -8
- package/ts3.5/dist/es6/header/lib/parts/DubLogoTitle.d.ts +13 -4
- package/ts3.5/dist/es6/header/lib/parts/WorkdayLogoTitle.d.ts +14 -5
- package/ts3.5/dist/es6/header/lib/parts/index.d.ts +2 -3
- package/ts3.5/dist/es6/header/lib/shared/themes.d.ts +28 -19
- package/ts3.5/dist/es6/header/lib/shared/types.d.ts +3 -8
- package/ts3.5/dist/es6/index.d.ts +1 -0
- package/ts3.5/dist/es6/layout/lib/utils/getValidChildren.d.ts +1 -1
- package/ts3.5/dist/es6/search-form/index.d.ts +3 -0
- package/ts3.5/dist/es6/{header/lib/parts/SearchBar.d.ts → search-form/lib/SearchForm.d.ts} +22 -23
- package/ts3.5/dist/es6/search-form/lib/themes.d.ts +21 -0
- package/dist/commonjs/header/lib/parts/SearchBar.d.ts.map +0 -1
- package/dist/es6/header/lib/parts/SearchBar.d.ts.map +0 -1
package/header/lib/Header.tsx
CHANGED
|
@@ -2,9 +2,13 @@ import * as React from 'react';
|
|
|
2
2
|
import {css} from '@emotion/core';
|
|
3
3
|
import styled from '@emotion/styled';
|
|
4
4
|
import {borderRadius, space, type} from '@workday/canvas-kit-react/tokens';
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
5
|
+
import {DeprecatedDubLogoTitle, DeprecatedWorkdayLogoTitle} from './parts';
|
|
6
|
+
import {deprecatedHeaderThemes} from './shared/themes';
|
|
7
|
+
import {
|
|
8
|
+
DeprecatedHeaderHeight,
|
|
9
|
+
DeprecatedHeaderTheme,
|
|
10
|
+
DeprecatedHeaderVariant,
|
|
11
|
+
} from './shared/types';
|
|
8
12
|
import {Hyperlink, IconButton, IconButtonProps} from '@workday/canvas-kit-react/button';
|
|
9
13
|
import {SystemIcon, SystemIconProps} from '@workday/canvas-kit-react/icon';
|
|
10
14
|
import {justifyIcon} from '@workday/canvas-system-icons-web';
|
|
@@ -17,14 +21,14 @@ export interface HeaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
17
21
|
menuToggle?: React.ReactNode;
|
|
18
22
|
/**
|
|
19
23
|
* The theme of the Header. Accepts `White`, `Blue`, or `Transparent`.
|
|
20
|
-
* @default
|
|
24
|
+
* @default DeprecatedHeaderTheme.White
|
|
21
25
|
*/
|
|
22
|
-
themeColor?:
|
|
26
|
+
themeColor?: DeprecatedHeaderTheme;
|
|
23
27
|
/**
|
|
24
28
|
* The variant of the Header. Accepts `Dub` (small) or `Full` (large).
|
|
25
|
-
* @default
|
|
29
|
+
* @default DeprecatedHeaderVariant.Dub
|
|
26
30
|
*/
|
|
27
|
-
variant?:
|
|
31
|
+
variant?: DeprecatedHeaderVariant;
|
|
28
32
|
/**
|
|
29
33
|
* The text of the Header title. Not used if `brand` is provided.
|
|
30
34
|
*/
|
|
@@ -47,7 +51,7 @@ export interface HeaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
47
51
|
*/
|
|
48
52
|
onMenuClick?: (e: React.MouseEvent) => void;
|
|
49
53
|
/**
|
|
50
|
-
* The React element to render in the left slot of the Header. This is typically a
|
|
54
|
+
* The React element to render in the left slot of the Header. This is typically a SearchForm component.
|
|
51
55
|
*/
|
|
52
56
|
leftSlot?: React.ReactElement;
|
|
53
57
|
/**
|
|
@@ -71,10 +75,13 @@ const HeaderShell = styled('div')<PickRequired<HeaderProps, 'themeColor', 'varia
|
|
|
71
75
|
},
|
|
72
76
|
({variant, themeColor}) => ({
|
|
73
77
|
// Only the variant Full has a large header, all the other one (Dub, Global) have a small header height
|
|
74
|
-
height:
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
+
height:
|
|
79
|
+
variant === DeprecatedHeaderVariant.Full
|
|
80
|
+
? DeprecatedHeaderHeight.Large
|
|
81
|
+
: DeprecatedHeaderHeight.Small,
|
|
82
|
+
background: deprecatedHeaderThemes[themeColor].background,
|
|
83
|
+
...deprecatedHeaderThemes[themeColor].depth,
|
|
84
|
+
color: deprecatedHeaderThemes[themeColor].color,
|
|
78
85
|
})
|
|
79
86
|
);
|
|
80
87
|
|
|
@@ -98,7 +105,7 @@ const BrandLink = styled(Hyperlink)({
|
|
|
98
105
|
});
|
|
99
106
|
|
|
100
107
|
const navStyle = ({themeColor}: PickRequired<HeaderProps, 'themeColor', 'css'>) => {
|
|
101
|
-
const theme =
|
|
108
|
+
const theme = deprecatedHeaderThemes[themeColor];
|
|
102
109
|
|
|
103
110
|
return css({
|
|
104
111
|
nav: {
|
|
@@ -211,24 +218,31 @@ class Brand extends React.Component<
|
|
|
211
218
|
Pick<HeaderProps, 'variant' | 'brand' | 'title' | 'themeColor'>
|
|
212
219
|
> {
|
|
213
220
|
render() {
|
|
214
|
-
const {
|
|
221
|
+
const {
|
|
222
|
+
variant = DeprecatedHeaderVariant.Dub,
|
|
223
|
+
brand,
|
|
224
|
+
themeColor = DeprecatedHeaderTheme.White,
|
|
225
|
+
title,
|
|
226
|
+
} = this.props;
|
|
215
227
|
|
|
216
228
|
switch (variant) {
|
|
217
|
-
case
|
|
229
|
+
case DeprecatedHeaderVariant.Global: {
|
|
218
230
|
return <span>{brand}</span>;
|
|
219
231
|
}
|
|
220
|
-
case
|
|
232
|
+
case DeprecatedHeaderVariant.Full: {
|
|
221
233
|
return (
|
|
222
234
|
<span>
|
|
223
|
-
{brand ||
|
|
235
|
+
{brand || (
|
|
236
|
+
<DeprecatedWorkdayLogoTitle title={title ? title : ''} themeColor={themeColor} />
|
|
237
|
+
)}
|
|
224
238
|
</span>
|
|
225
239
|
);
|
|
226
240
|
}
|
|
227
|
-
//
|
|
241
|
+
// DeprecatedHeaderVariant.Dub is default
|
|
228
242
|
default: {
|
|
229
243
|
return (
|
|
230
244
|
<span>
|
|
231
|
-
{brand || <
|
|
245
|
+
{brand || <DeprecatedDubLogoTitle title={title ? title : ''} themeColor={themeColor} />}
|
|
232
246
|
</span>
|
|
233
247
|
);
|
|
234
248
|
}
|
|
@@ -240,7 +254,7 @@ class MenuIconButton extends React.Component<
|
|
|
240
254
|
Pick<HeaderProps, 'themeColor' | 'menuToggle' | 'onMenuClick'>
|
|
241
255
|
> {
|
|
242
256
|
render() {
|
|
243
|
-
const {themeColor =
|
|
257
|
+
const {themeColor = DeprecatedHeaderTheme.White, menuToggle, onMenuClick} = this.props;
|
|
244
258
|
if (menuToggle) {
|
|
245
259
|
const menuToggleElement = menuToggle as React.ReactElement<any>;
|
|
246
260
|
const onClick = menuToggleElement.props.onClick
|
|
@@ -255,7 +269,7 @@ class MenuIconButton extends React.Component<
|
|
|
255
269
|
|
|
256
270
|
return (
|
|
257
271
|
<IconButton
|
|
258
|
-
variant={themeColor ===
|
|
272
|
+
variant={themeColor === DeprecatedHeaderTheme.White ? 'circle' : 'inverse'}
|
|
259
273
|
icon={justifyIcon}
|
|
260
274
|
className={'canvas-header--menu-icon'}
|
|
261
275
|
aria-label="Open Menu"
|
|
@@ -265,9 +279,26 @@ class MenuIconButton extends React.Component<
|
|
|
265
279
|
}
|
|
266
280
|
}
|
|
267
281
|
|
|
282
|
+
/**
|
|
283
|
+
* ### Deprecated Header
|
|
284
|
+
*
|
|
285
|
+
* As of Canvas Kit v6, this component is being soft-deprecated.
|
|
286
|
+
* It will be hard-deprecated (completely removed) in v7. Please see the
|
|
287
|
+
* [migration guide](https://workday.github.io/canvas-kit/?path=/story/welcome-migration-guides-v6-0--page)
|
|
288
|
+
* for more information.
|
|
289
|
+
*/
|
|
268
290
|
export default class Header extends React.Component<HeaderProps, {}> {
|
|
269
|
-
static Theme =
|
|
270
|
-
static Variant =
|
|
291
|
+
static Theme = DeprecatedHeaderTheme;
|
|
292
|
+
static Variant = DeprecatedHeaderVariant;
|
|
293
|
+
|
|
294
|
+
componentDidMount() {
|
|
295
|
+
console.warn(
|
|
296
|
+
`Header is being deprecated and will be removed in Canvas Kit V7.\n
|
|
297
|
+
For more information, please see the V6 migration guide:\n
|
|
298
|
+
https://workday.github.io/canvas-kit/?path=/story/welcome-migration-guides-v6-0--page
|
|
299
|
+
`
|
|
300
|
+
);
|
|
301
|
+
}
|
|
271
302
|
|
|
272
303
|
/**
|
|
273
304
|
* Helper that recursively maps ReactNodes to their theme-based equivalent.
|
|
@@ -293,7 +324,8 @@ export default class Header extends React.Component<HeaderProps, {}> {
|
|
|
293
324
|
const propsChildren = (child as React.ReactElement<Props>).props.children;
|
|
294
325
|
const singleChild =
|
|
295
326
|
React.Children.count(propsChildren) === 1 && (propsChildren as React.ReactElement<any>);
|
|
296
|
-
const iconButtonVariant =
|
|
327
|
+
const iconButtonVariant =
|
|
328
|
+
this.props.themeColor === DeprecatedHeaderTheme.White ? 'circle' : 'inverse';
|
|
297
329
|
|
|
298
330
|
// Convert old method of SystemIcon into IconButton. If SystemIcon is within a link, make sure it's passed through
|
|
299
331
|
if (child.type === 'a' && singleChild && singleChild.type === SystemIcon) {
|
|
@@ -339,8 +371,8 @@ export default class Header extends React.Component<HeaderProps, {}> {
|
|
|
339
371
|
render() {
|
|
340
372
|
const {
|
|
341
373
|
menuToggle,
|
|
342
|
-
themeColor =
|
|
343
|
-
variant =
|
|
374
|
+
themeColor = DeprecatedHeaderTheme.White,
|
|
375
|
+
variant = DeprecatedHeaderVariant.Dub,
|
|
344
376
|
centeredNav,
|
|
345
377
|
title,
|
|
346
378
|
brand,
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import styled from '@emotion/styled';
|
|
3
3
|
import {colors, space} from '@workday/canvas-kit-react/tokens';
|
|
4
|
-
import {
|
|
4
|
+
import {DeprecatedHeaderHeight, DeprecatedHeaderTheme} from '../shared/types';
|
|
5
5
|
import chroma from 'chroma-js';
|
|
6
6
|
import {dubLogoWhite, dubLogoBlue} from '@workday/canvas-kit-react/common';
|
|
7
7
|
|
|
8
8
|
export type DubTitleProps = {
|
|
9
9
|
/**
|
|
10
10
|
* The theme of the DubLogoTitle. Accepts `White`, `Blue`, or `Transparent`.
|
|
11
|
-
* @default
|
|
11
|
+
* @default DeprecatedHeaderTheme.White
|
|
12
12
|
*/
|
|
13
|
-
themeColor?:
|
|
13
|
+
themeColor?: DeprecatedHeaderTheme;
|
|
14
14
|
/**
|
|
15
15
|
* The text of the DubLogoTitle. Not used if `brand` is provided.
|
|
16
16
|
*/
|
|
@@ -29,7 +29,7 @@ const Lockup = styled('div')<DubTitleProps>(
|
|
|
29
29
|
{
|
|
30
30
|
display: 'flex',
|
|
31
31
|
alignItems: 'center',
|
|
32
|
-
height:
|
|
32
|
+
height: DeprecatedHeaderHeight.Small,
|
|
33
33
|
paddingLeft: space.m,
|
|
34
34
|
},
|
|
35
35
|
({bgColor}) => ({
|
|
@@ -47,9 +47,10 @@ const Title = styled('h3')<DubTitleProps>(
|
|
|
47
47
|
whiteSpace: 'nowrap',
|
|
48
48
|
},
|
|
49
49
|
({themeColor}) => ({
|
|
50
|
-
color:
|
|
50
|
+
color:
|
|
51
|
+
themeColor === DeprecatedHeaderTheme.White ? colors.blueberry500 : colors.frenchVanilla100,
|
|
51
52
|
borderLeft: `1px solid ${
|
|
52
|
-
themeColor ===
|
|
53
|
+
themeColor === DeprecatedHeaderTheme.White
|
|
53
54
|
? colors.soap400
|
|
54
55
|
: chroma(colors.frenchVanilla100)
|
|
55
56
|
.alpha(0.3)
|
|
@@ -62,16 +63,32 @@ const DubLogo = styled('div')<DubTitleProps>({
|
|
|
62
63
|
lineHeight: 0,
|
|
63
64
|
});
|
|
64
65
|
|
|
65
|
-
|
|
66
|
+
/**
|
|
67
|
+
* ### Deprecated Dub Logo Title
|
|
68
|
+
*
|
|
69
|
+
* As of Canvas Kit v6, this component is being soft-deprecated.
|
|
70
|
+
* It will be hard-deprecated (completely removed) in v7. Please see the
|
|
71
|
+
* [migration guide](https://workday.github.io/canvas-kit/?path=/story/welcome-migration-guides-v6-0--page)
|
|
72
|
+
* for more information.
|
|
73
|
+
*/
|
|
74
|
+
export class DeprecatedDubLogoTitle extends React.Component<DubTitleProps> {
|
|
75
|
+
componentDidMount() {
|
|
76
|
+
console.warn(
|
|
77
|
+
`DubLogoTitle is being deprecated and will be removed in Canvas Kit V7.\n
|
|
78
|
+
For more information, please see the V6 migration guide:\n
|
|
79
|
+
https://workday.github.io/canvas-kit/?path=/story/welcome-migration-guides-v6-0--page
|
|
80
|
+
`
|
|
81
|
+
);
|
|
82
|
+
}
|
|
66
83
|
render() {
|
|
67
|
-
const {themeColor =
|
|
84
|
+
const {themeColor = DeprecatedHeaderTheme.White, title} = this.props;
|
|
68
85
|
return (
|
|
69
86
|
<LockupContainer>
|
|
70
87
|
<Lockup {...this.props}>
|
|
71
88
|
<DubLogo
|
|
72
89
|
{...this.props}
|
|
73
90
|
dangerouslySetInnerHTML={{
|
|
74
|
-
__html: themeColor ===
|
|
91
|
+
__html: themeColor === DeprecatedHeaderTheme.White ? dubLogoBlue : dubLogoWhite,
|
|
75
92
|
}}
|
|
76
93
|
/>
|
|
77
94
|
{title && <Title {...this.props}>{title}</Title>}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import styled from '@emotion/styled';
|
|
3
|
-
import {
|
|
3
|
+
import {
|
|
4
|
+
DeprecatedHeaderHeight,
|
|
5
|
+
DeprecatedHeaderTheme,
|
|
6
|
+
DeprecatedHeaderVariant,
|
|
7
|
+
} from '../shared/types';
|
|
4
8
|
import {miniWdayLogoBlue, wdayLogoWhite, wdayLogoBlue} from '@workday/canvas-kit-react/common';
|
|
5
9
|
import {colors, space} from '@workday/canvas-kit-react/tokens';
|
|
6
10
|
import chroma from 'chroma-js';
|
|
@@ -8,9 +12,9 @@ import chroma from 'chroma-js';
|
|
|
8
12
|
export type WorkdayLogoTitleProps = {
|
|
9
13
|
/**
|
|
10
14
|
* The theme of the WorkdayLogoTitle. Accepts `White`, `Blue`, or `Transparent`.
|
|
11
|
-
* @default
|
|
15
|
+
* @default DeprecatedHeaderTheme.White
|
|
12
16
|
*/
|
|
13
|
-
themeColor?:
|
|
17
|
+
themeColor?: DeprecatedHeaderTheme;
|
|
14
18
|
/**
|
|
15
19
|
* The text of the WorkdayLogoTitle. Not used if `brand` is provided.
|
|
16
20
|
* @default ''
|
|
@@ -19,7 +23,7 @@ export type WorkdayLogoTitleProps = {
|
|
|
19
23
|
/**
|
|
20
24
|
* The variant of the WorkdayLogoTitle.
|
|
21
25
|
*/
|
|
22
|
-
variant?:
|
|
26
|
+
variant?: DeprecatedHeaderVariant;
|
|
23
27
|
};
|
|
24
28
|
|
|
25
29
|
const LockupContainer = styled('div')({
|
|
@@ -33,7 +37,10 @@ const Lockup = styled('div')<WorkdayLogoTitleProps>(
|
|
|
33
37
|
justifyContent: 'center',
|
|
34
38
|
},
|
|
35
39
|
({variant}) => ({
|
|
36
|
-
height:
|
|
40
|
+
height:
|
|
41
|
+
variant === DeprecatedHeaderVariant.Global
|
|
42
|
+
? DeprecatedHeaderHeight.Small
|
|
43
|
+
: DeprecatedHeaderHeight.Large,
|
|
37
44
|
})
|
|
38
45
|
);
|
|
39
46
|
|
|
@@ -49,9 +56,10 @@ const Title = styled('h3')<WorkdayLogoTitleProps>(
|
|
|
49
56
|
display: 'initial',
|
|
50
57
|
},
|
|
51
58
|
({themeColor}) => ({
|
|
52
|
-
color:
|
|
59
|
+
color:
|
|
60
|
+
themeColor === DeprecatedHeaderTheme.White ? colors.blueberry500 : colors.frenchVanilla100,
|
|
53
61
|
borderLeft: `1px solid ${
|
|
54
|
-
themeColor ===
|
|
62
|
+
themeColor === DeprecatedHeaderTheme.White
|
|
55
63
|
? colors.soap400
|
|
56
64
|
: chroma(colors.soap400)
|
|
57
65
|
.alpha(0.4)
|
|
@@ -65,9 +73,30 @@ const WorkdayLogo = styled('span')<WorkdayLogoTitleProps>({
|
|
|
65
73
|
lineHeight: 0,
|
|
66
74
|
});
|
|
67
75
|
|
|
68
|
-
|
|
76
|
+
/**
|
|
77
|
+
* ### Deprecated Workday Logo Title
|
|
78
|
+
*
|
|
79
|
+
* As of Canvas Kit v6, this component is being soft-deprecated.
|
|
80
|
+
* It will be hard-deprecated (completely removed) in v7. Please see the
|
|
81
|
+
* [migration guide](https://workday.github.io/canvas-kit/?path=/story/welcome-migration-guides-v6-0--page)
|
|
82
|
+
* for more information.
|
|
83
|
+
*/
|
|
84
|
+
export class DeprecatedWorkdayLogoTitle extends React.Component<WorkdayLogoTitleProps> {
|
|
85
|
+
componentDidMount() {
|
|
86
|
+
console.warn(
|
|
87
|
+
`WorkdayLogoTitle is being deprecated and will be removed in Canvas Kit V7.\n
|
|
88
|
+
For more information, please see the V6 migration guide:\n
|
|
89
|
+
https://workday.github.io/canvas-kit/?path=/story/welcome-migration-guides-v6-0--page
|
|
90
|
+
`
|
|
91
|
+
);
|
|
92
|
+
}
|
|
69
93
|
public render() {
|
|
70
|
-
const {
|
|
94
|
+
const {
|
|
95
|
+
themeColor = DeprecatedHeaderTheme.White,
|
|
96
|
+
title = '',
|
|
97
|
+
variant,
|
|
98
|
+
...elemProps
|
|
99
|
+
} = this.props;
|
|
71
100
|
|
|
72
101
|
return (
|
|
73
102
|
<LockupContainer>
|
|
@@ -76,8 +105,8 @@ export class WorkdayLogoTitle extends React.Component<WorkdayLogoTitleProps> {
|
|
|
76
105
|
{...this.props}
|
|
77
106
|
dangerouslySetInnerHTML={{
|
|
78
107
|
__html:
|
|
79
|
-
themeColor ===
|
|
80
|
-
? variant ===
|
|
108
|
+
themeColor === DeprecatedHeaderTheme.White
|
|
109
|
+
? variant === DeprecatedHeaderVariant.Global
|
|
81
110
|
? miniWdayLogoBlue
|
|
82
111
|
: wdayLogoBlue
|
|
83
112
|
: wdayLogoWhite,
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
3
|
-
export {WorkdayLogoTitle} from './WorkdayLogoTitle';
|
|
1
|
+
export {DeprecatedDubLogoTitle} from './DubLogoTitle';
|
|
2
|
+
export {DeprecatedWorkdayLogoTitle} from './WorkdayLogoTitle';
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import {focusRing} from '@workday/canvas-kit-react/common';
|
|
2
1
|
import {
|
|
3
2
|
colors,
|
|
4
3
|
gradients,
|
|
@@ -7,9 +6,17 @@ import {
|
|
|
7
6
|
CSSProperties,
|
|
8
7
|
} from '@workday/canvas-kit-react/tokens';
|
|
9
8
|
import chroma from 'chroma-js';
|
|
10
|
-
import {
|
|
9
|
+
import {DeprecatedHeaderTheme} from './types';
|
|
11
10
|
|
|
12
|
-
|
|
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 {
|
|
13
20
|
color: string;
|
|
14
21
|
background: string;
|
|
15
22
|
depth: CSSProperties;
|
|
@@ -23,12 +30,28 @@ export interface ThemeAttributes {
|
|
|
23
30
|
chipColor: string;
|
|
24
31
|
}
|
|
25
32
|
|
|
26
|
-
|
|
27
|
-
|
|
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;
|
|
28
43
|
}
|
|
29
44
|
|
|
30
|
-
|
|
31
|
-
|
|
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]: {
|
|
32
55
|
color: colors.blackPepper400,
|
|
33
56
|
background: colors.frenchVanilla100,
|
|
34
57
|
depth: depth['1'],
|
|
@@ -41,7 +64,7 @@ export const themes: Themes = {
|
|
|
41
64
|
currentLinkColor: colors.blueberry500,
|
|
42
65
|
chipColor: colors.blueberry400,
|
|
43
66
|
},
|
|
44
|
-
[
|
|
67
|
+
[DeprecatedHeaderTheme.Blue]: {
|
|
45
68
|
color: colors.frenchVanilla100,
|
|
46
69
|
background: gradients.blueberry,
|
|
47
70
|
depth: depth['3'],
|
|
@@ -56,7 +79,7 @@ export const themes: Themes = {
|
|
|
56
79
|
currentLinkColor: colors.frenchVanilla100,
|
|
57
80
|
chipColor: colors.frenchVanilla100,
|
|
58
81
|
},
|
|
59
|
-
[
|
|
82
|
+
[DeprecatedHeaderTheme.Transparent]: {
|
|
60
83
|
color: colors.frenchVanilla100,
|
|
61
84
|
background: 'transparent',
|
|
62
85
|
depth: {boxShadow: 'none'},
|
|
@@ -72,50 +95,3 @@ export const themes: Themes = {
|
|
|
72
95
|
chipColor: colors.frenchVanilla100,
|
|
73
96
|
},
|
|
74
97
|
};
|
|
75
|
-
|
|
76
|
-
export interface SearchThemeAttributes {
|
|
77
|
-
background?: string;
|
|
78
|
-
backgroundFocus?: string;
|
|
79
|
-
backgroundHover?: string;
|
|
80
|
-
color?: string;
|
|
81
|
-
colorFocus?: string;
|
|
82
|
-
placeholderColor?: string;
|
|
83
|
-
placeholderColorFocus?: string;
|
|
84
|
-
boxShadow?: string | string[];
|
|
85
|
-
boxShadowFocus?: string | string[];
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
export interface SearchThemes {
|
|
89
|
-
[key: string]: SearchThemeAttributes;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
export const searchThemes: SearchThemes = {
|
|
93
|
-
[SearchTheme.Transparent]: {
|
|
94
|
-
background: 'rgba(0, 0, 0, 0)',
|
|
95
|
-
backgroundFocus: 'rgba(0, 0, 0, 0)',
|
|
96
|
-
color: colors.blackPepper300,
|
|
97
|
-
colorFocus: colors.blackPepper300,
|
|
98
|
-
placeholderColor: colors.licorice300,
|
|
99
|
-
placeholderColorFocus: colors.licorice300,
|
|
100
|
-
boxShadow: 'none',
|
|
101
|
-
boxShadowFocus: 'none',
|
|
102
|
-
},
|
|
103
|
-
[SearchTheme.Light]: {
|
|
104
|
-
background: colors.soap200,
|
|
105
|
-
backgroundFocus: colors.soap200,
|
|
106
|
-
backgroundHover: colors.soap300,
|
|
107
|
-
color: colors.blackPepper300,
|
|
108
|
-
placeholderColor: colors.licorice300,
|
|
109
|
-
boxShadow: 'none',
|
|
110
|
-
boxShadowFocus: focusRing().boxShadow,
|
|
111
|
-
},
|
|
112
|
-
[SearchTheme.Dark]: {
|
|
113
|
-
background: 'rgba(0, 0, 0, 0.2)',
|
|
114
|
-
backgroundFocus: colors.frenchVanilla100,
|
|
115
|
-
color: colors.frenchVanilla100,
|
|
116
|
-
colorFocus: colors.blackPepper300,
|
|
117
|
-
placeholderColor: colors.frenchVanilla100,
|
|
118
|
-
placeholderColorFocus: colors.licorice300,
|
|
119
|
-
boxShadow: 'none',
|
|
120
|
-
},
|
|
121
|
-
};
|
|
@@ -1,22 +1,16 @@
|
|
|
1
|
-
export enum
|
|
1
|
+
export enum DeprecatedHeaderTheme {
|
|
2
2
|
White,
|
|
3
3
|
Blue,
|
|
4
4
|
Transparent,
|
|
5
5
|
}
|
|
6
6
|
|
|
7
|
-
export enum
|
|
7
|
+
export enum DeprecatedHeaderVariant {
|
|
8
8
|
Dub,
|
|
9
9
|
Full,
|
|
10
10
|
Global,
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
export enum
|
|
13
|
+
export enum DeprecatedHeaderHeight {
|
|
14
14
|
Small = '64px',
|
|
15
15
|
Large = '80px',
|
|
16
16
|
}
|
|
17
|
-
|
|
18
|
-
export enum SearchTheme {
|
|
19
|
-
Light,
|
|
20
|
-
Dark,
|
|
21
|
-
Transparent,
|
|
22
|
-
}
|
package/index.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workday/canvas-kit-labs-react",
|
|
3
|
-
"version": "5.3.0-next.
|
|
3
|
+
"version": "5.3.0-next.32+a02de5eb",
|
|
4
4
|
"description": "Canvas Kit Labs is an incubator for new and experimental components. Since we have a rather rigorous process for getting components in at a production level, it can be valuable to make them available earlier while we continuously iterate on the API/functionality. The Labs modules allow us to do that as needed.",
|
|
5
5
|
"author": "Workday, Inc. (https://www.workday.com)",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -38,7 +38,8 @@
|
|
|
38
38
|
"build": "npm-run-all --parallel build:cjs build:es6 --sequential build:downlevel-dts",
|
|
39
39
|
"prepack": "node ../../utils/publish.js pre labs-react",
|
|
40
40
|
"postpack": "node ../../utils/publish.js post labs-react",
|
|
41
|
-
"depcheck": "node ../../utils/check-dependencies-exist.js"
|
|
41
|
+
"depcheck": "node ../../utils/check-dependencies-exist.js",
|
|
42
|
+
"typecheck:src": "tsc -p . --noEmit --incremental false"
|
|
42
43
|
},
|
|
43
44
|
"keywords": [
|
|
44
45
|
"canvas",
|
|
@@ -54,18 +55,16 @@
|
|
|
54
55
|
"@emotion/core": "^10.0.28",
|
|
55
56
|
"@emotion/is-prop-valid": "^0.8.2",
|
|
56
57
|
"@emotion/styled": "^10.0.27",
|
|
57
|
-
"@
|
|
58
|
-
"@workday/canvas-kit-
|
|
59
|
-
"@workday/canvas-kit-react": "^5.3.0-next.3+6f698ff2",
|
|
58
|
+
"@workday/canvas-kit-preview-react": "^5.3.0-next.32+a02de5eb",
|
|
59
|
+
"@workday/canvas-kit-react": "^5.3.0-next.32+a02de5eb",
|
|
60
60
|
"@workday/canvas-system-icons-web": "1.0.41",
|
|
61
61
|
"chroma-js": "^2.1.0",
|
|
62
62
|
"csstype": "^2.6.17",
|
|
63
63
|
"lodash.flatten": "^4.4.0",
|
|
64
|
-
"rtl-css-js": "^1.14.1"
|
|
65
|
-
"uuid": "^3.3.3"
|
|
64
|
+
"rtl-css-js": "^1.14.1"
|
|
66
65
|
},
|
|
67
66
|
"devDependencies": {
|
|
68
67
|
"@types/lodash.flatten": "^4.4.6"
|
|
69
68
|
},
|
|
70
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "a02de5eb284c706211aa55ef3554b11f52668b28"
|
|
71
70
|
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
Apache License, Version 2.0 Apache License Version 2.0, January 2004
|
|
2
|
+
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
|
|
9
|
+
"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
|
|
10
|
+
"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
|
|
11
|
+
"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
|
|
12
|
+
"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
|
|
13
|
+
"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
|
|
14
|
+
"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
|
|
15
|
+
"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
|
|
16
|
+
"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
|
|
17
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
|
|
18
|
+
|
|
19
|
+
2. Grant of Copyright License.
|
|
20
|
+
Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
|
|
21
|
+
|
|
22
|
+
3. Grant of Patent License.
|
|
23
|
+
Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
|
|
24
|
+
|
|
25
|
+
4. Redistribution.
|
|
26
|
+
You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
|
|
27
|
+
You must give any other recipients of the Work or Derivative Works a copy of this License; and You must cause any modified files to carry prominent notices stating that You changed the files; and You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
|
|
28
|
+
|
|
29
|
+
5. Submission of Contributions.
|
|
30
|
+
Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
|
|
31
|
+
|
|
32
|
+
6. Trademarks.
|
|
33
|
+
This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
|
|
34
|
+
|
|
35
|
+
7. Disclaimer of Warranty.
|
|
36
|
+
Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
|
|
37
|
+
|
|
38
|
+
8. Limitation of Liability.
|
|
39
|
+
In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
|
|
40
|
+
|
|
41
|
+
9. Accepting Warranty or Additional Liability.
|
|
42
|
+
While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
|
|
43
|
+
|
|
44
|
+
END OF TERMS AND CONDITIONS
|
|
45
|
+
|
|
46
|
+
©2020. Workday, Inc. All rights reserved. Workday and the Workday logo are registered trademarks of Workday, Inc. All other brand and product names are trademarks or registered trademarks of their respective holders.
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
|
|
50
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
51
|
+
|
|
52
|
+
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
# Canvas Kit React Search Form
|
|
2
|
+
|
|
3
|
+
A search form that contains a combobox for rendering search results
|
|
4
|
+
|
|
5
|
+
For more detailed information on this component, please refer to the
|
|
6
|
+
[storybook documentation](https://workday.github.io/canvas-kit/?path=/docs/labs-search-form)
|