@workday/canvas-kit-labs-react 5.3.17 → 5.4.0-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/combobox/lib/AutocompleteList.tsx +2 -3
- package/combobox/lib/Combobox.tsx +10 -4
- package/common/README.md +32 -0
- package/common/lib/Box.tsx +21 -4
- package/common/lib/theming/index.ts +1 -0
- package/common/lib/theming/useThemedRing.ts +82 -0
- package/dist/commonjs/combobox/lib/AutocompleteList.d.ts.map +1 -1
- package/dist/commonjs/combobox/lib/AutocompleteList.js +1 -2
- package/dist/commonjs/combobox/lib/Combobox.d.ts.map +1 -1
- package/dist/commonjs/combobox/lib/Combobox.js +3 -3
- package/dist/commonjs/common/lib/Box.d.ts.map +1 -1
- package/dist/commonjs/common/lib/Box.js +10 -2
- 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 +65 -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/Stack.d.ts.map +1 -1
- package/dist/commonjs/layout/lib/Stack.js +1 -1
- 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} +27 -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} +17 -19
- 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 +2 -3
- package/dist/es6/combobox/lib/Combobox.d.ts.map +1 -1
- package/dist/es6/combobox/lib/Combobox.js +4 -4
- package/dist/es6/common/lib/Box.d.ts.map +1 -1
- package/dist/es6/common/lib/Box.js +11 -3
- 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 +59 -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/Stack.d.ts.map +1 -1
- package/dist/es6/layout/lib/Stack.js +1 -1
- 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/{ts3.5/dist/commonjs/header/lib/parts/SearchBar.d.ts → dist/es6/search-form/lib/SearchForm.d.ts} +107 -103
- 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} +16 -18
- 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/layout/lib/Stack.tsx +3 -1
- package/package.json +5 -7
- 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} +40 -35
- 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/{es6/header/lib/parts/SearchBar.d.ts → commonjs/search-form/lib/SearchForm.d.ts} +27 -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/{dist/es6/header/lib/parts/SearchBar.d.ts → ts3.5/dist/es6/search-form/lib/SearchForm.d.ts} +107 -103
- 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
|
@@ -1,20 +1,15 @@
|
|
|
1
|
-
export declare enum
|
|
1
|
+
export declare enum DeprecatedHeaderTheme {
|
|
2
2
|
White = 0,
|
|
3
3
|
Blue = 1,
|
|
4
4
|
Transparent = 2
|
|
5
5
|
}
|
|
6
|
-
export declare enum
|
|
6
|
+
export declare enum DeprecatedHeaderVariant {
|
|
7
7
|
Dub = 0,
|
|
8
8
|
Full = 1,
|
|
9
9
|
Global = 2
|
|
10
10
|
}
|
|
11
|
-
export declare enum
|
|
11
|
+
export declare enum DeprecatedHeaderHeight {
|
|
12
12
|
Small = "64px",
|
|
13
13
|
Large = "80px"
|
|
14
14
|
}
|
|
15
|
-
export declare enum SearchTheme {
|
|
16
|
-
Light = 0,
|
|
17
|
-
Dark = 1,
|
|
18
|
-
Transparent = 2
|
|
19
|
-
}
|
|
20
15
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../header/lib/shared/types.tsx"],"names":[],"mappings":"AAAA,oBAAY,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../header/lib/shared/types.tsx"],"names":[],"mappings":"AAAA,oBAAY,qBAAqB;IAC/B,KAAK,IAAA;IACL,IAAI,IAAA;IACJ,WAAW,IAAA;CACZ;AAED,oBAAY,uBAAuB;IACjC,GAAG,IAAA;IACH,IAAI,IAAA;IACJ,MAAM,IAAA;CACP;AAED,oBAAY,sBAAsB;IAChC,KAAK,SAAS;IACd,KAAK,SAAS;CACf"}
|
|
@@ -1,23 +1,17 @@
|
|
|
1
|
-
export var
|
|
2
|
-
(function (
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
})(
|
|
7
|
-
export var
|
|
8
|
-
(function (
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
})(
|
|
13
|
-
export var
|
|
14
|
-
(function (
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
})(
|
|
18
|
-
export var SearchTheme;
|
|
19
|
-
(function (SearchTheme) {
|
|
20
|
-
SearchTheme[SearchTheme["Light"] = 0] = "Light";
|
|
21
|
-
SearchTheme[SearchTheme["Dark"] = 1] = "Dark";
|
|
22
|
-
SearchTheme[SearchTheme["Transparent"] = 2] = "Transparent";
|
|
23
|
-
})(SearchTheme || (SearchTheme = {}));
|
|
1
|
+
export var DeprecatedHeaderTheme;
|
|
2
|
+
(function (DeprecatedHeaderTheme) {
|
|
3
|
+
DeprecatedHeaderTheme[DeprecatedHeaderTheme["White"] = 0] = "White";
|
|
4
|
+
DeprecatedHeaderTheme[DeprecatedHeaderTheme["Blue"] = 1] = "Blue";
|
|
5
|
+
DeprecatedHeaderTheme[DeprecatedHeaderTheme["Transparent"] = 2] = "Transparent";
|
|
6
|
+
})(DeprecatedHeaderTheme || (DeprecatedHeaderTheme = {}));
|
|
7
|
+
export var DeprecatedHeaderVariant;
|
|
8
|
+
(function (DeprecatedHeaderVariant) {
|
|
9
|
+
DeprecatedHeaderVariant[DeprecatedHeaderVariant["Dub"] = 0] = "Dub";
|
|
10
|
+
DeprecatedHeaderVariant[DeprecatedHeaderVariant["Full"] = 1] = "Full";
|
|
11
|
+
DeprecatedHeaderVariant[DeprecatedHeaderVariant["Global"] = 2] = "Global";
|
|
12
|
+
})(DeprecatedHeaderVariant || (DeprecatedHeaderVariant = {}));
|
|
13
|
+
export var DeprecatedHeaderHeight;
|
|
14
|
+
(function (DeprecatedHeaderHeight) {
|
|
15
|
+
DeprecatedHeaderHeight["Small"] = "64px";
|
|
16
|
+
DeprecatedHeaderHeight["Large"] = "80px";
|
|
17
|
+
})(DeprecatedHeaderHeight || (DeprecatedHeaderHeight = {}));
|
package/dist/es6/index.d.ts
CHANGED
package/dist/es6/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC"}
|
package/dist/es6/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Stack.d.ts","sourceRoot":"","sources":["../../../../layout/lib/Stack.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAO,SAAS,EAAC,MAAM,QAAQ,CAAC;AAEvC,OAAO,EAAQ,eAAe,EAAC,MAAM,eAAe,CAAC;AAErD,oBAAY,UAAU,GAAG,SAAS,GAAG,eAAe,CAAC;AA2BrD,eAAO,MAAM,KAAK;;
|
|
1
|
+
{"version":3,"file":"Stack.d.ts","sourceRoot":"","sources":["../../../../layout/lib/Stack.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAO,SAAS,EAAC,MAAM,QAAQ,CAAC;AAEvC,OAAO,EAAQ,eAAe,EAAC,MAAM,eAAe,CAAC;AAErD,oBAAY,UAAU,GAAG,SAAS,GAAG,eAAe,CAAC;AA2BrD,eAAO,MAAM,KAAK;;CAiChB,CAAC;AAEH,oBAAY,WAAW,GAAG,IAAI,CAAC,UAAU,EAAE,eAAe,CAAC,GAAG;IAC5D;;;SAGK;IACL,aAAa,CAAC,EAAE,KAAK,GAAG,aAAa,CAAC;CACvC,CAAC;AAEF,eAAO,MAAM,MAAM;;CAYjB,CAAC;AAEH,oBAAY,WAAW,GAAG,IAAI,CAAC,UAAU,EAAE,eAAe,CAAC,GAAG;IAC5D;;;SAGK;IACL,aAAa,CAAC,EAAE,QAAQ,GAAG,gBAAgB,CAAC;CAC7C,CAAC;AAEF,eAAO,MAAM,MAAM;;CAYjB,CAAC"}
|
|
@@ -45,7 +45,7 @@ export var Stack = createComponent('div')({
|
|
|
45
45
|
var children = _a.children, _b = _a.flexDirection, flexDirection = _b === void 0 ? 'row' : _b, spacing = _a.spacing, _c = _a.shouldWrapChildren, shouldWrapChildren = _c === void 0 ? false : _c, elemProps = __rest(_a, ["children", "flexDirection", "spacing", "shouldWrapChildren"]);
|
|
46
46
|
var validChildren = getValidChildren(children);
|
|
47
47
|
return (React.createElement(StyledStack, __assign({ as: Element, ref: ref, flexDirection: flexDirection, spacing: spacing }, elemProps), shouldWrapChildren
|
|
48
|
-
? validChildren.map(function (child) { return React.createElement(StackItem,
|
|
48
|
+
? validChildren.map(function (child, index) { return (React.createElement(StackItem, { key: child.props.id || index }, child)); })
|
|
49
49
|
: validChildren));
|
|
50
50
|
},
|
|
51
51
|
subComponents: {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
export declare function getValidChildren(children: React.ReactNode): React.ReactElement<any, string | ((props: any) => React.ReactElement<any,
|
|
2
|
+
export declare function getValidChildren(children: React.ReactNode): React.ReactElement<any, string | ((props: any) => React.ReactElement<any, any> | null) | (new (props: any) => React.Component<any, any, any>)>[];
|
|
3
3
|
//# sourceMappingURL=getValidChildren.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getValidChildren.d.ts","sourceRoot":"","sources":["../../../../../layout/lib/utils/getValidChildren.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,KAAK,CAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"getValidChildren.d.ts","sourceRoot":"","sources":["../../../../../layout/lib/utils/getValidChildren.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,KAAK,CAAC,SAAS,oJAIzD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../search-form/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC"}
|
|
@@ -1,103 +1,107 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { GrowthBehavior } from '@workday/canvas-kit-react/common';
|
|
3
|
-
import { MenuItemProps } from '@workday/canvas-kit-preview-react/menu';
|
|
4
|
-
import { SearchThemeAttributes } from '
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
*
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
*
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
*
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
*
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
*
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
*
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
*
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
*
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
*
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
*
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
private
|
|
90
|
-
private
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { GrowthBehavior } from '@workday/canvas-kit-react/common';
|
|
3
|
+
import { MenuItemProps } from '@workday/canvas-kit-preview-react/menu';
|
|
4
|
+
import { SearchThemeAttributes, SearchTheme } from './themes';
|
|
5
|
+
export interface SearchFormProps extends GrowthBehavior, React.FormHTMLAttributes<HTMLFormElement> {
|
|
6
|
+
/**
|
|
7
|
+
* The function called when the SearchForm form is submitted. The current input value is passed to the callback function.
|
|
8
|
+
*/
|
|
9
|
+
onSubmit: React.FormEventHandler<HTMLFormElement>;
|
|
10
|
+
/**
|
|
11
|
+
* If true, collapse the SearchForm text input into a toggle icon. Useful for responsive layouts.
|
|
12
|
+
* @default false
|
|
13
|
+
*/
|
|
14
|
+
isCollapsed?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* The function called when the SearchForm text input changes.
|
|
17
|
+
*/
|
|
18
|
+
onInputChange?: React.ChangeEventHandler<HTMLInputElement>;
|
|
19
|
+
/**
|
|
20
|
+
* The autocomplete items of the SearchForm. This array of menu items is shown under the search bar.
|
|
21
|
+
*/
|
|
22
|
+
autocompleteItems?: React.ReactElement<MenuItemProps>[];
|
|
23
|
+
/**
|
|
24
|
+
* The theme of the header the search input is being rendered in.
|
|
25
|
+
*/
|
|
26
|
+
searchTheme?: SearchTheme | SearchThemeAttributes;
|
|
27
|
+
/**
|
|
28
|
+
* The placeholder text of the SearchForm text input.
|
|
29
|
+
* @default Search
|
|
30
|
+
*/
|
|
31
|
+
placeholder?: string;
|
|
32
|
+
/**
|
|
33
|
+
* The initial value of the SearchForm text input.
|
|
34
|
+
*/
|
|
35
|
+
initialValue?: string;
|
|
36
|
+
/**
|
|
37
|
+
* If true, right-align the SearchForm. If false, the text input should grow to left-align the SearchForm.
|
|
38
|
+
* @default false
|
|
39
|
+
*/
|
|
40
|
+
rightAlign?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* The screenreader label text for the SearchForm text input.
|
|
43
|
+
* @default Search
|
|
44
|
+
*/
|
|
45
|
+
inputLabel?: string;
|
|
46
|
+
/**
|
|
47
|
+
* The screenreader label text for the SearchForm submit button.
|
|
48
|
+
* @default Search
|
|
49
|
+
*/
|
|
50
|
+
submitAriaLabel?: string;
|
|
51
|
+
/**
|
|
52
|
+
* The screenreader label text for the SearchForm clear button.
|
|
53
|
+
* @default Reset Search Form
|
|
54
|
+
*/
|
|
55
|
+
clearButtonAriaLabel?: string;
|
|
56
|
+
/**
|
|
57
|
+
* The screenreader label text for the button to open the collapsed SearchForm.
|
|
58
|
+
* @default Open Search
|
|
59
|
+
*/
|
|
60
|
+
openButtonAriaLabel?: string;
|
|
61
|
+
/**
|
|
62
|
+
* The screenreader label text for the button to close the open SearchForm.
|
|
63
|
+
* @default Cancel
|
|
64
|
+
*/
|
|
65
|
+
closeButtonAriaLabel?: string;
|
|
66
|
+
/**
|
|
67
|
+
* If true, render the SearchForm with a button to clear the text input.
|
|
68
|
+
* @default true
|
|
69
|
+
*/
|
|
70
|
+
showClearButton?: boolean;
|
|
71
|
+
/**
|
|
72
|
+
* Height of the Search Form in pixels
|
|
73
|
+
* @default 40
|
|
74
|
+
*/
|
|
75
|
+
height?: number;
|
|
76
|
+
/**
|
|
77
|
+
* If true, allow onSubmit being called when input value is empty.
|
|
78
|
+
* @default false
|
|
79
|
+
*/
|
|
80
|
+
allowEmptyStringSearch?: boolean;
|
|
81
|
+
}
|
|
82
|
+
export interface SearchFormState {
|
|
83
|
+
showForm: boolean;
|
|
84
|
+
searchQuery: string;
|
|
85
|
+
isFocused: boolean;
|
|
86
|
+
}
|
|
87
|
+
export declare class SearchForm extends React.Component<SearchFormProps, SearchFormState> {
|
|
88
|
+
static Theme: typeof SearchTheme;
|
|
89
|
+
private inputRef;
|
|
90
|
+
private openRef;
|
|
91
|
+
private labelId;
|
|
92
|
+
state: Readonly<SearchFormState>;
|
|
93
|
+
private getTheme;
|
|
94
|
+
private getThemeColors;
|
|
95
|
+
getIconButtonType: () => "circle" | "square" | "inverse" | "squareFilled" | "plain" | "circleFilled" | "inverseFilled" | undefined;
|
|
96
|
+
handleSubmit: (event: React.FormEvent<HTMLFormElement>) => void;
|
|
97
|
+
openCollapsedSearch: () => void;
|
|
98
|
+
closeCollapsedSearch: () => void;
|
|
99
|
+
componentDidUpdate(prevProps: SearchFormProps, prevState: SearchFormState): void;
|
|
100
|
+
focusInput: () => void;
|
|
101
|
+
focusOpen: () => void;
|
|
102
|
+
handleFocus: () => void;
|
|
103
|
+
handleBlur: () => void;
|
|
104
|
+
handleSearchInputChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
105
|
+
render(): JSX.Element;
|
|
106
|
+
}
|
|
107
|
+
//# sourceMappingURL=SearchForm.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SearchForm.d.ts","sourceRoot":"","sources":["../../../../search-form/lib/SearchForm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAC,cAAc,EAA2B,MAAM,kCAAkC,CAAC;AAM1F,OAAO,EAAC,aAAa,EAAC,MAAM,wCAAwC,CAAC;AACrE,OAAO,EAAC,qBAAqB,EAAgB,WAAW,EAAC,MAAM,UAAU,CAAC;AAG1E,MAAM,WAAW,eAAgB,SAAQ,cAAc,EAAE,KAAK,CAAC,kBAAkB,CAAC,eAAe,CAAC;IAChG;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,gBAAgB,CAAC,eAAe,CAAC,CAAC;IAClD;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;OAEG;IACH,aAAa,CAAC,EAAE,KAAK,CAAC,kBAAkB,CAAC,gBAAgB,CAAC,CAAC;IAC3D;;OAEG;IACH,iBAAiB,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC,aAAa,CAAC,EAAE,CAAC;IACxD;;OAEG;IACH,WAAW,CAAC,EAAE,WAAW,GAAG,qBAAqB,CAAC;IAClD;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;OAGG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B;;;OAGG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B;;;OAGG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;CAClC;AAED,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,OAAO,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;CACpB;AAuMD,qBAAa,UAAW,SAAQ,KAAK,CAAC,SAAS,CAAC,eAAe,EAAE,eAAe,CAAC;IAC/E,MAAM,CAAC,KAAK,qBAAe;IAE3B,OAAO,CAAC,QAAQ,CAAuC;IACvD,OAAO,CAAC,OAAO,CAAwC;IACvD,OAAO,CAAC,OAAO,CAAsB;IAErC,KAAK,EAAE,QAAQ,CAAC,eAAe,CAAC,CAI9B;IAEF,OAAO,CAAC,QAAQ,CAUd;IAEF,OAAO,CAAC,cAAc,CAMpB;IAEF,iBAAiB,kHAOf;IAEF,YAAY,oDAOV;IAEF,mBAAmB,aAIjB;IAEF,oBAAoB,aAIlB;IAEF,kBAAkB,CAAC,SAAS,EAAE,eAAe,EAAE,SAAS,EAAE,eAAe;IAWzE,UAAU,aAIR;IAEF,SAAS,aAIP;IAEF,WAAW,aAET;IAEF,UAAU,aAER;IAEF,uBAAuB,uDAMrB;IAEF,MAAM;CAoGP"}
|
|
@@ -35,16 +35,14 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
35
35
|
};
|
|
36
36
|
import * as React from 'react';
|
|
37
37
|
import { colors, space, spaceNumbers } from '@workday/canvas-kit-react/tokens';
|
|
38
|
-
import { styled } from '@workday/canvas-kit-react/common';
|
|
38
|
+
import { styled, generateUniqueId } from '@workday/canvas-kit-react/common';
|
|
39
39
|
import { IconButton } from '@workday/canvas-kit-react/button';
|
|
40
40
|
import { searchIcon, xIcon } from '@workday/canvas-system-icons-web';
|
|
41
41
|
import { FormField, FormFieldLabelPosition } from '@workday/canvas-kit-react/form-field';
|
|
42
42
|
import { Combobox } from '@workday/canvas-kit-labs-react/combobox';
|
|
43
43
|
import { TextInput } from '@workday/canvas-kit-react/text-input';
|
|
44
|
-
import { searchThemes } from '
|
|
45
|
-
import { SearchTheme } from '../shared/types';
|
|
44
|
+
import { searchThemes, SearchTheme } from './themes';
|
|
46
45
|
import chroma from 'chroma-js';
|
|
47
|
-
import uuid from 'uuid/v4';
|
|
48
46
|
function getInputColors(theme, isFocused) {
|
|
49
47
|
return {
|
|
50
48
|
background: isFocused && theme.backgroundFocus ? theme.backgroundFocus : theme.background,
|
|
@@ -59,7 +57,7 @@ function getInputColors(theme, isFocused) {
|
|
|
59
57
|
var formCollapsedBackground = colors.frenchVanilla100;
|
|
60
58
|
var maxWidth = 480;
|
|
61
59
|
var minWidth = 120;
|
|
62
|
-
var
|
|
60
|
+
var StyledSearchForm = styled('form')({
|
|
63
61
|
position: 'relative',
|
|
64
62
|
flex: "1 1 auto",
|
|
65
63
|
display: 'flex',
|
|
@@ -186,13 +184,13 @@ var SearchInput = styled(TextInput)(function (_a) {
|
|
|
186
184
|
},
|
|
187
185
|
} }, collapseStyles);
|
|
188
186
|
});
|
|
189
|
-
var
|
|
190
|
-
__extends(
|
|
191
|
-
function
|
|
187
|
+
var SearchForm = /** @class */ (function (_super) {
|
|
188
|
+
__extends(SearchForm, _super);
|
|
189
|
+
function SearchForm() {
|
|
192
190
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
193
191
|
_this.inputRef = React.createRef();
|
|
194
192
|
_this.openRef = React.createRef();
|
|
195
|
-
_this.labelId =
|
|
193
|
+
_this.labelId = generateUniqueId();
|
|
196
194
|
_this.state = {
|
|
197
195
|
showForm: false,
|
|
198
196
|
searchQuery: '',
|
|
@@ -227,7 +225,7 @@ var SearchBar = /** @class */ (function (_super) {
|
|
|
227
225
|
};
|
|
228
226
|
_this.handleSubmit = function (event) {
|
|
229
227
|
event.preventDefault();
|
|
230
|
-
if (_this.state.searchQuery.trim()) {
|
|
228
|
+
if (_this.props.allowEmptyStringSearch || _this.state.searchQuery.trim()) {
|
|
231
229
|
_this.props.onSubmit(event);
|
|
232
230
|
}
|
|
233
231
|
else {
|
|
@@ -269,7 +267,7 @@ var SearchBar = /** @class */ (function (_super) {
|
|
|
269
267
|
};
|
|
270
268
|
return _this;
|
|
271
269
|
}
|
|
272
|
-
|
|
270
|
+
SearchForm.prototype.componentDidUpdate = function (prevProps, prevState) {
|
|
273
271
|
var showFormToggled = this.state.showForm !== prevState.showForm;
|
|
274
272
|
if (showFormToggled) {
|
|
275
273
|
if (this.state.showForm) {
|
|
@@ -280,18 +278,18 @@ var SearchBar = /** @class */ (function (_super) {
|
|
|
280
278
|
}
|
|
281
279
|
}
|
|
282
280
|
};
|
|
283
|
-
|
|
284
|
-
var _a = this.props, _b = _a.clearButtonAriaLabel, clearButtonAriaLabel = _b === void 0 ? 'Reset Search Form' : _b, _c = _a.placeholder, placeholder = _c === void 0 ? 'Search' : _c, _d = _a.inputLabel, inputLabel = _d === void 0 ? 'Search' : _d, _e = _a.submitAriaLabel, submitAriaLabel = _e === void 0 ? 'Search' : _e, _f = _a.openButtonAriaLabel, openButtonAriaLabel = _f === void 0 ? 'Open Search' : _f, _g = _a.closeButtonAriaLabel, closeButtonAriaLabel = _g === void 0 ? 'Cancel' : _g, _h = _a.showClearButton, showClearButton = _h === void 0 ? true : _h, _j = _a.height, height = _j === void 0 ? 40 : _j, grow = _a.grow, onSubmit = _a.onSubmit, isCollapsed = _a.isCollapsed, onInputChange = _a.onInputChange, autocompleteItems = _a.autocompleteItems, initialValue = _a.initialValue, searchTheme = _a.searchTheme, rightAlign = _a.rightAlign, elemProps = __rest(_a, ["clearButtonAriaLabel", "placeholder", "inputLabel", "submitAriaLabel", "openButtonAriaLabel", "closeButtonAriaLabel", "showClearButton", "height", "grow", "onSubmit", "isCollapsed", "onInputChange", "autocompleteItems", "initialValue", "searchTheme", "rightAlign"]);
|
|
285
|
-
return (React.createElement(
|
|
281
|
+
SearchForm.prototype.render = function () {
|
|
282
|
+
var _a = this.props, _b = _a.clearButtonAriaLabel, clearButtonAriaLabel = _b === void 0 ? 'Reset Search Form' : _b, _c = _a.placeholder, placeholder = _c === void 0 ? 'Search' : _c, _d = _a.inputLabel, inputLabel = _d === void 0 ? 'Search' : _d, _e = _a.submitAriaLabel, submitAriaLabel = _e === void 0 ? 'Search' : _e, _f = _a.openButtonAriaLabel, openButtonAriaLabel = _f === void 0 ? 'Open Search' : _f, _g = _a.closeButtonAriaLabel, closeButtonAriaLabel = _g === void 0 ? 'Cancel' : _g, _h = _a.showClearButton, showClearButton = _h === void 0 ? true : _h, _j = _a.height, height = _j === void 0 ? 40 : _j, grow = _a.grow, onSubmit = _a.onSubmit, isCollapsed = _a.isCollapsed, onInputChange = _a.onInputChange, autocompleteItems = _a.autocompleteItems, initialValue = _a.initialValue, searchTheme = _a.searchTheme, rightAlign = _a.rightAlign, _k = _a.allowEmptyStringSearch, allowEmptyStringSearch = _k === void 0 ? false : _k, elemProps = __rest(_a, ["clearButtonAriaLabel", "placeholder", "inputLabel", "submitAriaLabel", "openButtonAriaLabel", "closeButtonAriaLabel", "showClearButton", "height", "grow", "onSubmit", "isCollapsed", "onInputChange", "autocompleteItems", "initialValue", "searchTheme", "rightAlign", "allowEmptyStringSearch"]);
|
|
283
|
+
return (React.createElement(StyledSearchForm, __assign({ role: "search", action: ".", rightAlign: rightAlign, grow: grow, "aria-labelledby": this.labelId, isCollapsed: isCollapsed, onSubmit: this.handleSubmit, showForm: this.state.showForm }, elemProps),
|
|
286
284
|
React.createElement(SearchContainer, { height: height },
|
|
287
285
|
React.createElement(SearchIcon, { "aria-label": submitAriaLabel, icon: searchIcon, isCollapsed: isCollapsed, variant: this.getIconButtonType(), type: "submit", isHidden: !!isCollapsed && !this.state.showForm }),
|
|
288
286
|
React.createElement(SearchIcon, { "aria-label": openButtonAriaLabel, icon: searchIcon, isCollapsed: isCollapsed, variant: this.getIconButtonType(), onClick: this.openCollapsedSearch, ref: this.openRef, type: "button", isHidden: !isCollapsed || (!!isCollapsed && this.state.showForm) }),
|
|
289
287
|
React.createElement(SearchField, { grow: grow, id: this.labelId, inputId: "input-" + this.labelId, label: inputLabel, labelPosition: FormFieldLabelPosition.Hidden, useFieldset: false, isCollapsed: isCollapsed, showForm: this.state.showForm, height: height },
|
|
290
288
|
React.createElement(SearchCombobox, { initialValue: initialValue, clearButtonVariant: this.getIconButtonType(), autocompleteItems: autocompleteItems, onChange: this.handleSearchInputChange, onFocus: this.handleFocus, onBlur: this.handleBlur, showClearButton: !isCollapsed && showClearButton, clearButtonAriaLabel: clearButtonAriaLabel, labelId: this.labelId },
|
|
291
|
-
React.createElement(SearchInput, { ref: this.inputRef, value: this.state.searchQuery, placeholder: placeholder, isCollapsed: isCollapsed, inputColors: this.getThemeColors(), height: height, name: "search" }))),
|
|
289
|
+
React.createElement(SearchInput, { ref: this.inputRef, value: this.state.searchQuery, placeholder: placeholder, isCollapsed: isCollapsed, inputColors: this.getThemeColors(), height: height, name: "search", autoComplete: "off" }))),
|
|
292
290
|
React.createElement(CloseButton, { "aria-label": closeButtonAriaLabel, icon: xIcon, isCollapsed: isCollapsed, variant: "plain", showForm: this.state.showForm, onClick: this.closeCollapsedSearch, type: "button" }))));
|
|
293
291
|
};
|
|
294
|
-
|
|
295
|
-
return
|
|
292
|
+
SearchForm.Theme = SearchTheme;
|
|
293
|
+
return SearchForm;
|
|
296
294
|
}(React.Component));
|
|
297
|
-
export {
|
|
295
|
+
export { SearchForm };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare enum SearchTheme {
|
|
2
|
+
Light = 0,
|
|
3
|
+
Dark = 1,
|
|
4
|
+
Transparent = 2
|
|
5
|
+
}
|
|
6
|
+
export interface SearchThemeAttributes {
|
|
7
|
+
background?: string;
|
|
8
|
+
backgroundFocus?: string;
|
|
9
|
+
backgroundHover?: string;
|
|
10
|
+
color?: string;
|
|
11
|
+
colorFocus?: string;
|
|
12
|
+
placeholderColor?: string;
|
|
13
|
+
placeholderColorFocus?: string;
|
|
14
|
+
boxShadow?: string | string[];
|
|
15
|
+
boxShadowFocus?: string | string[];
|
|
16
|
+
}
|
|
17
|
+
export interface SearchThemes {
|
|
18
|
+
[key: string]: SearchThemeAttributes;
|
|
19
|
+
}
|
|
20
|
+
export declare const searchThemes: SearchThemes;
|
|
21
|
+
//# sourceMappingURL=themes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"themes.d.ts","sourceRoot":"","sources":["../../../../search-form/lib/themes.ts"],"names":[],"mappings":"AAGA,oBAAY,WAAW;IACrB,KAAK,IAAA;IACL,IAAI,IAAA;IACJ,WAAW,IAAA;CACZ;AACD,MAAM,WAAW,qBAAqB;IACpC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC9B,cAAc,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;CACpC;AAED,MAAM,WAAW,YAAY;IAC3B,CAAC,GAAG,EAAE,MAAM,GAAG,qBAAqB,CAAC;CACtC;AAED,eAAO,MAAM,YAAY,EAAE,YA6B1B,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
var _a;
|
|
2
|
+
import { focusRing } from '@workday/canvas-kit-react/common';
|
|
3
|
+
import { colors } from '@workday/canvas-kit-react/tokens';
|
|
4
|
+
export var SearchTheme;
|
|
5
|
+
(function (SearchTheme) {
|
|
6
|
+
SearchTheme[SearchTheme["Light"] = 0] = "Light";
|
|
7
|
+
SearchTheme[SearchTheme["Dark"] = 1] = "Dark";
|
|
8
|
+
SearchTheme[SearchTheme["Transparent"] = 2] = "Transparent";
|
|
9
|
+
})(SearchTheme || (SearchTheme = {}));
|
|
10
|
+
export var searchThemes = (_a = {},
|
|
11
|
+
_a[SearchTheme.Transparent] = {
|
|
12
|
+
background: 'rgba(0, 0, 0, 0)',
|
|
13
|
+
backgroundFocus: 'rgba(0, 0, 0, 0)',
|
|
14
|
+
color: colors.blackPepper300,
|
|
15
|
+
colorFocus: colors.blackPepper300,
|
|
16
|
+
placeholderColor: colors.licorice300,
|
|
17
|
+
placeholderColorFocus: colors.licorice300,
|
|
18
|
+
boxShadow: 'none',
|
|
19
|
+
boxShadowFocus: 'none',
|
|
20
|
+
},
|
|
21
|
+
_a[SearchTheme.Light] = {
|
|
22
|
+
background: colors.soap200,
|
|
23
|
+
backgroundFocus: colors.soap200,
|
|
24
|
+
backgroundHover: colors.soap300,
|
|
25
|
+
color: colors.blackPepper300,
|
|
26
|
+
placeholderColor: colors.licorice300,
|
|
27
|
+
boxShadow: 'none',
|
|
28
|
+
boxShadowFocus: focusRing().boxShadow,
|
|
29
|
+
},
|
|
30
|
+
_a[SearchTheme.Dark] = {
|
|
31
|
+
background: 'rgba(0, 0, 0, 0.2)',
|
|
32
|
+
backgroundFocus: colors.frenchVanilla100,
|
|
33
|
+
color: colors.frenchVanilla100,
|
|
34
|
+
colorFocus: colors.blackPepper300,
|
|
35
|
+
placeholderColor: colors.frenchVanilla100,
|
|
36
|
+
placeholderColorFocus: colors.licorice300,
|
|
37
|
+
boxShadow: 'none',
|
|
38
|
+
},
|
|
39
|
+
_a);
|