@workday/canvas-kit-labs-react 5.3.15 → 5.4.0-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
|
@@ -60,7 +60,9 @@ var HeaderShell = styled_1.default('div')(__assign(__assign({ display: 'flex', a
|
|
|
60
60
|
var variant = _a.variant, themeColor = _a.themeColor;
|
|
61
61
|
return (__assign(__assign({
|
|
62
62
|
// Only the variant Full has a large header, all the other one (Dub, Global) have a small header height
|
|
63
|
-
height: variant === types_1.
|
|
63
|
+
height: variant === types_1.DeprecatedHeaderVariant.Full
|
|
64
|
+
? types_1.DeprecatedHeaderHeight.Large
|
|
65
|
+
: types_1.DeprecatedHeaderHeight.Small, background: themes_1.deprecatedHeaderThemes[themeColor].background }, themes_1.deprecatedHeaderThemes[themeColor].depth), { color: themes_1.deprecatedHeaderThemes[themeColor].color }));
|
|
64
66
|
});
|
|
65
67
|
var BrandSlot = styled_1.default('div')({
|
|
66
68
|
height: '100%',
|
|
@@ -77,7 +79,7 @@ var BrandLink = styled_1.default(button_1.Hyperlink)({
|
|
|
77
79
|
});
|
|
78
80
|
var navStyle = function (_a) {
|
|
79
81
|
var themeColor = _a.themeColor;
|
|
80
|
-
var theme = themes_1.
|
|
82
|
+
var theme = themes_1.deprecatedHeaderThemes[themeColor];
|
|
81
83
|
return core_1.css({
|
|
82
84
|
nav: {
|
|
83
85
|
display: 'flex',
|
|
@@ -185,17 +187,17 @@ var Brand = /** @class */ (function (_super) {
|
|
|
185
187
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
186
188
|
}
|
|
187
189
|
Brand.prototype.render = function () {
|
|
188
|
-
var _a = this.props, _b = _a.variant, variant = _b === void 0 ? types_1.
|
|
190
|
+
var _a = this.props, _b = _a.variant, variant = _b === void 0 ? types_1.DeprecatedHeaderVariant.Dub : _b, brand = _a.brand, _c = _a.themeColor, themeColor = _c === void 0 ? types_1.DeprecatedHeaderTheme.White : _c, title = _a.title;
|
|
189
191
|
switch (variant) {
|
|
190
|
-
case types_1.
|
|
192
|
+
case types_1.DeprecatedHeaderVariant.Global: {
|
|
191
193
|
return React.createElement("span", null, brand);
|
|
192
194
|
}
|
|
193
|
-
case types_1.
|
|
194
|
-
return (React.createElement("span", null, brand || React.createElement(parts_1.
|
|
195
|
+
case types_1.DeprecatedHeaderVariant.Full: {
|
|
196
|
+
return (React.createElement("span", null, brand || (React.createElement(parts_1.DeprecatedWorkdayLogoTitle, { title: title ? title : '', themeColor: themeColor }))));
|
|
195
197
|
}
|
|
196
|
-
//
|
|
198
|
+
// DeprecatedHeaderVariant.Dub is default
|
|
197
199
|
default: {
|
|
198
|
-
return (React.createElement("span", null, brand || React.createElement(parts_1.
|
|
200
|
+
return (React.createElement("span", null, brand || React.createElement(parts_1.DeprecatedDubLogoTitle, { title: title ? title : '', themeColor: themeColor })));
|
|
199
201
|
}
|
|
200
202
|
}
|
|
201
203
|
};
|
|
@@ -207,7 +209,7 @@ var MenuIconButton = /** @class */ (function (_super) {
|
|
|
207
209
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
208
210
|
}
|
|
209
211
|
MenuIconButton.prototype.render = function () {
|
|
210
|
-
var _a = this.props, _b = _a.themeColor, themeColor = _b === void 0 ? types_1.
|
|
212
|
+
var _a = this.props, _b = _a.themeColor, themeColor = _b === void 0 ? types_1.DeprecatedHeaderTheme.White : _b, menuToggle = _a.menuToggle, onMenuClick = _a.onMenuClick;
|
|
211
213
|
if (menuToggle) {
|
|
212
214
|
var menuToggleElement = menuToggle;
|
|
213
215
|
var onClick = menuToggleElement.props.onClick
|
|
@@ -218,15 +220,26 @@ var MenuIconButton = /** @class */ (function (_super) {
|
|
|
218
220
|
className: 'canvas-header--menu-icon',
|
|
219
221
|
});
|
|
220
222
|
}
|
|
221
|
-
return (React.createElement(button_1.IconButton, { variant: themeColor === types_1.
|
|
223
|
+
return (React.createElement(button_1.IconButton, { variant: themeColor === types_1.DeprecatedHeaderTheme.White ? 'circle' : 'inverse', icon: canvas_system_icons_web_1.justifyIcon, className: 'canvas-header--menu-icon', "aria-label": "Open Menu", onClick: onMenuClick }));
|
|
222
224
|
};
|
|
223
225
|
return MenuIconButton;
|
|
224
226
|
}(React.Component));
|
|
227
|
+
/**
|
|
228
|
+
* ### Deprecated Header
|
|
229
|
+
*
|
|
230
|
+
* As of Canvas Kit v6, this component is being soft-deprecated.
|
|
231
|
+
* It will be hard-deprecated (completely removed) in v7. Please see the
|
|
232
|
+
* [migration guide](https://workday.github.io/canvas-kit/?path=/story/welcome-migration-guides-v6-0--page)
|
|
233
|
+
* for more information.
|
|
234
|
+
*/
|
|
225
235
|
var Header = /** @class */ (function (_super) {
|
|
226
236
|
__extends(Header, _super);
|
|
227
237
|
function Header() {
|
|
228
238
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
229
239
|
}
|
|
240
|
+
Header.prototype.componentDidMount = function () {
|
|
241
|
+
console.warn("Header is being deprecated and will be removed in Canvas Kit V7.\n\n For more information, please see the V6 migration guide:\n\n https://workday.github.io/canvas-kit/?path=/story/welcome-migration-guides-v6-0--page\n ");
|
|
242
|
+
};
|
|
230
243
|
/**
|
|
231
244
|
* Helper that recursively maps ReactNodes to their theme-based equivalent.
|
|
232
245
|
* Any children that are included in a Header may need to undergo transformation
|
|
@@ -247,7 +260,7 @@ var Header = /** @class */ (function (_super) {
|
|
|
247
260
|
}
|
|
248
261
|
var propsChildren = child.props.children;
|
|
249
262
|
var singleChild = React.Children.count(propsChildren) === 1 && propsChildren;
|
|
250
|
-
var iconButtonVariant = _this.props.themeColor === types_1.
|
|
263
|
+
var iconButtonVariant = _this.props.themeColor === types_1.DeprecatedHeaderTheme.White ? 'circle' : 'inverse';
|
|
251
264
|
// Convert old method of SystemIcon into IconButton. If SystemIcon is within a link, make sure it's passed through
|
|
252
265
|
if (child.type === 'a' && singleChild && singleChild.type === icon_1.SystemIcon) {
|
|
253
266
|
var href_1 = child.props.href;
|
|
@@ -283,7 +296,7 @@ var Header = /** @class */ (function (_super) {
|
|
|
283
296
|
});
|
|
284
297
|
};
|
|
285
298
|
Header.prototype.render = function () {
|
|
286
|
-
var _a = this.props, menuToggle = _a.menuToggle, _b = _a.themeColor, themeColor = _b === void 0 ? types_1.
|
|
299
|
+
var _a = this.props, menuToggle = _a.menuToggle, _b = _a.themeColor, themeColor = _b === void 0 ? types_1.DeprecatedHeaderTheme.White : _b, _c = _a.variant, variant = _c === void 0 ? types_1.DeprecatedHeaderVariant.Dub : _c, centeredNav = _a.centeredNav, title = _a.title, brand = _a.brand, brandUrl = _a.brandUrl, onMenuClick = _a.onMenuClick, leftSlot = _a.leftSlot, isCollapsed = _a.isCollapsed, children = _a.children, elemProps = __rest(_a, ["menuToggle", "themeColor", "variant", "centeredNav", "title", "brand", "brandUrl", "onMenuClick", "leftSlot", "isCollapsed", "children"]);
|
|
287
300
|
/* Push everything to the right if:
|
|
288
301
|
- on tablet and mobile screens
|
|
289
302
|
- Search isn't enabled and the nav shouldn't be centered
|
|
@@ -301,8 +314,8 @@ var Header = /** @class */ (function (_super) {
|
|
|
301
314
|
// TODO: This needs to get changed to IconButton when we get it restyled for headers
|
|
302
315
|
React.createElement(MenuIconButton, { themeColor: themeColor, menuToggle: menuToggle, onMenuClick: onMenuClick })) : (this.renderChildren(children)))));
|
|
303
316
|
};
|
|
304
|
-
Header.Theme = types_1.
|
|
305
|
-
Header.Variant = types_1.
|
|
317
|
+
Header.Theme = types_1.DeprecatedHeaderTheme;
|
|
318
|
+
Header.Variant = types_1.DeprecatedHeaderVariant;
|
|
306
319
|
return Header;
|
|
307
320
|
}(React.Component));
|
|
308
321
|
exports.default = Header;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { DeprecatedHeaderTheme } from '../shared/types';
|
|
3
3
|
export declare type DubTitleProps = {
|
|
4
4
|
/**
|
|
5
5
|
* The theme of the DubLogoTitle. Accepts `White`, `Blue`, or `Transparent`.
|
|
6
|
-
* @default
|
|
6
|
+
* @default DeprecatedHeaderTheme.White
|
|
7
7
|
*/
|
|
8
|
-
themeColor?:
|
|
8
|
+
themeColor?: DeprecatedHeaderTheme;
|
|
9
9
|
/**
|
|
10
10
|
* The text of the DubLogoTitle. Not used if `brand` is provided.
|
|
11
11
|
*/
|
|
@@ -15,7 +15,16 @@ export declare type DubTitleProps = {
|
|
|
15
15
|
*/
|
|
16
16
|
bgColor?: string;
|
|
17
17
|
};
|
|
18
|
-
|
|
18
|
+
/**
|
|
19
|
+
* ### Deprecated Dub Logo Title
|
|
20
|
+
*
|
|
21
|
+
* As of Canvas Kit v6, this component is being soft-deprecated.
|
|
22
|
+
* It will be hard-deprecated (completely removed) in v7. Please see the
|
|
23
|
+
* [migration guide](https://workday.github.io/canvas-kit/?path=/story/welcome-migration-guides-v6-0--page)
|
|
24
|
+
* for more information.
|
|
25
|
+
*/
|
|
26
|
+
export declare class DeprecatedDubLogoTitle extends React.Component<DubTitleProps> {
|
|
27
|
+
componentDidMount(): void;
|
|
19
28
|
render(): JSX.Element;
|
|
20
29
|
}
|
|
21
30
|
//# sourceMappingURL=DubLogoTitle.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DubLogoTitle.d.ts","sourceRoot":"","sources":["../../../../../header/lib/parts/DubLogoTitle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,
|
|
1
|
+
{"version":3,"file":"DubLogoTitle.d.ts","sourceRoot":"","sources":["../../../../../header/lib/parts/DubLogoTitle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAyB,qBAAqB,EAAC,MAAM,iBAAiB,CAAC;AAI9E,oBAAY,aAAa,GAAG;IAC1B;;;OAGG;IACH,UAAU,CAAC,EAAE,qBAAqB,CAAC;IACnC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AA4CF;;;;;;;GAOG;AACH,qBAAa,sBAAuB,SAAQ,KAAK,CAAC,SAAS,CAAC,aAAa,CAAC;IACxE,iBAAiB;IAQjB,MAAM;CAgBP"}
|
|
@@ -46,7 +46,7 @@ var LockupContainer = styled_1.default('div')({
|
|
|
46
46
|
var Lockup = styled_1.default('div')({
|
|
47
47
|
display: 'flex',
|
|
48
48
|
alignItems: 'center',
|
|
49
|
-
height: types_1.
|
|
49
|
+
height: types_1.DeprecatedHeaderHeight.Small,
|
|
50
50
|
paddingLeft: tokens_1.space.m,
|
|
51
51
|
}, function (_a) {
|
|
52
52
|
var bgColor = _a.bgColor;
|
|
@@ -64,8 +64,8 @@ var Title = styled_1.default('h3')({
|
|
|
64
64
|
}, function (_a) {
|
|
65
65
|
var themeColor = _a.themeColor;
|
|
66
66
|
return ({
|
|
67
|
-
color: themeColor === types_1.
|
|
68
|
-
borderLeft: "1px solid " + (themeColor === types_1.
|
|
67
|
+
color: themeColor === types_1.DeprecatedHeaderTheme.White ? tokens_1.colors.blueberry500 : tokens_1.colors.frenchVanilla100,
|
|
68
|
+
borderLeft: "1px solid " + (themeColor === types_1.DeprecatedHeaderTheme.White
|
|
69
69
|
? tokens_1.colors.soap400
|
|
70
70
|
: chroma_js_1.default(tokens_1.colors.frenchVanilla100)
|
|
71
71
|
.alpha(0.3)
|
|
@@ -75,20 +75,31 @@ var Title = styled_1.default('h3')({
|
|
|
75
75
|
var DubLogo = styled_1.default('div')({
|
|
76
76
|
lineHeight: 0,
|
|
77
77
|
});
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
78
|
+
/**
|
|
79
|
+
* ### Deprecated Dub Logo Title
|
|
80
|
+
*
|
|
81
|
+
* As of Canvas Kit v6, this component is being soft-deprecated.
|
|
82
|
+
* It will be hard-deprecated (completely removed) in v7. Please see the
|
|
83
|
+
* [migration guide](https://workday.github.io/canvas-kit/?path=/story/welcome-migration-guides-v6-0--page)
|
|
84
|
+
* for more information.
|
|
85
|
+
*/
|
|
86
|
+
var DeprecatedDubLogoTitle = /** @class */ (function (_super) {
|
|
87
|
+
__extends(DeprecatedDubLogoTitle, _super);
|
|
88
|
+
function DeprecatedDubLogoTitle() {
|
|
81
89
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
82
90
|
}
|
|
83
|
-
|
|
84
|
-
|
|
91
|
+
DeprecatedDubLogoTitle.prototype.componentDidMount = function () {
|
|
92
|
+
console.warn("DubLogoTitle is being deprecated and will be removed in Canvas Kit V7.\n\n For more information, please see the V6 migration guide:\n\n https://workday.github.io/canvas-kit/?path=/story/welcome-migration-guides-v6-0--page\n ");
|
|
93
|
+
};
|
|
94
|
+
DeprecatedDubLogoTitle.prototype.render = function () {
|
|
95
|
+
var _a = this.props, _b = _a.themeColor, themeColor = _b === void 0 ? types_1.DeprecatedHeaderTheme.White : _b, title = _a.title;
|
|
85
96
|
return (React.createElement(LockupContainer, null,
|
|
86
97
|
React.createElement(Lockup, __assign({}, this.props),
|
|
87
98
|
React.createElement(DubLogo, __assign({}, this.props, { dangerouslySetInnerHTML: {
|
|
88
|
-
__html: themeColor === types_1.
|
|
99
|
+
__html: themeColor === types_1.DeprecatedHeaderTheme.White ? common_1.dubLogoBlue : common_1.dubLogoWhite,
|
|
89
100
|
} })),
|
|
90
101
|
title && React.createElement(Title, __assign({}, this.props), title))));
|
|
91
102
|
};
|
|
92
|
-
return
|
|
103
|
+
return DeprecatedDubLogoTitle;
|
|
93
104
|
}(React.Component));
|
|
94
|
-
exports.
|
|
105
|
+
exports.DeprecatedDubLogoTitle = DeprecatedDubLogoTitle;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { DeprecatedHeaderTheme, DeprecatedHeaderVariant } from '../shared/types';
|
|
3
3
|
export declare type WorkdayLogoTitleProps = {
|
|
4
4
|
/**
|
|
5
5
|
* The theme of the WorkdayLogoTitle. Accepts `White`, `Blue`, or `Transparent`.
|
|
6
|
-
* @default
|
|
6
|
+
* @default DeprecatedHeaderTheme.White
|
|
7
7
|
*/
|
|
8
|
-
themeColor?:
|
|
8
|
+
themeColor?: DeprecatedHeaderTheme;
|
|
9
9
|
/**
|
|
10
10
|
* The text of the WorkdayLogoTitle. Not used if `brand` is provided.
|
|
11
11
|
* @default ''
|
|
@@ -14,9 +14,18 @@ export declare type WorkdayLogoTitleProps = {
|
|
|
14
14
|
/**
|
|
15
15
|
* The variant of the WorkdayLogoTitle.
|
|
16
16
|
*/
|
|
17
|
-
variant?:
|
|
17
|
+
variant?: DeprecatedHeaderVariant;
|
|
18
18
|
};
|
|
19
|
-
|
|
19
|
+
/**
|
|
20
|
+
* ### Deprecated Workday Logo Title
|
|
21
|
+
*
|
|
22
|
+
* As of Canvas Kit v6, this component is being soft-deprecated.
|
|
23
|
+
* It will be hard-deprecated (completely removed) in v7. Please see the
|
|
24
|
+
* [migration guide](https://workday.github.io/canvas-kit/?path=/story/welcome-migration-guides-v6-0--page)
|
|
25
|
+
* for more information.
|
|
26
|
+
*/
|
|
27
|
+
export declare class DeprecatedWorkdayLogoTitle extends React.Component<WorkdayLogoTitleProps> {
|
|
28
|
+
componentDidMount(): void;
|
|
20
29
|
render(): JSX.Element;
|
|
21
30
|
}
|
|
22
31
|
//# sourceMappingURL=WorkdayLogoTitle.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WorkdayLogoTitle.d.ts","sourceRoot":"","sources":["../../../../../header/lib/parts/WorkdayLogoTitle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,
|
|
1
|
+
{"version":3,"file":"WorkdayLogoTitle.d.ts","sourceRoot":"","sources":["../../../../../header/lib/parts/WorkdayLogoTitle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAEL,qBAAqB,EACrB,uBAAuB,EACxB,MAAM,iBAAiB,CAAC;AAKzB,oBAAY,qBAAqB,GAAG;IAClC;;;OAGG;IACH,UAAU,CAAC,EAAE,qBAAqB,CAAC;IACnC;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,OAAO,CAAC,EAAE,uBAAuB,CAAC;CACnC,CAAC;AAiDF;;;;;;;GAOG;AACH,qBAAa,0BAA2B,SAAQ,KAAK,CAAC,SAAS,CAAC,qBAAqB,CAAC;IACpF,iBAAiB;IAQV,MAAM;CA2Bd"}
|
|
@@ -61,7 +61,9 @@ var Lockup = styled_1.default('div')({
|
|
|
61
61
|
}, function (_a) {
|
|
62
62
|
var variant = _a.variant;
|
|
63
63
|
return ({
|
|
64
|
-
height: variant === types_1.
|
|
64
|
+
height: variant === types_1.DeprecatedHeaderVariant.Global
|
|
65
|
+
? types_1.DeprecatedHeaderHeight.Small
|
|
66
|
+
: types_1.DeprecatedHeaderHeight.Large,
|
|
65
67
|
});
|
|
66
68
|
});
|
|
67
69
|
var Title = styled_1.default('h3')({
|
|
@@ -76,8 +78,8 @@ var Title = styled_1.default('h3')({
|
|
|
76
78
|
}, function (_a) {
|
|
77
79
|
var themeColor = _a.themeColor;
|
|
78
80
|
return ({
|
|
79
|
-
color: themeColor === types_1.
|
|
80
|
-
borderLeft: "1px solid " + (themeColor === types_1.
|
|
81
|
+
color: themeColor === types_1.DeprecatedHeaderTheme.White ? tokens_1.colors.blueberry500 : tokens_1.colors.frenchVanilla100,
|
|
82
|
+
borderLeft: "1px solid " + (themeColor === types_1.DeprecatedHeaderTheme.White
|
|
81
83
|
? tokens_1.colors.soap400
|
|
82
84
|
: chroma_js_1.default(tokens_1.colors.soap400)
|
|
83
85
|
.alpha(0.4)
|
|
@@ -88,24 +90,35 @@ var WorkdayLogo = styled_1.default('span')({
|
|
|
88
90
|
paddingLeft: tokens_1.space.m,
|
|
89
91
|
lineHeight: 0,
|
|
90
92
|
});
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
93
|
+
/**
|
|
94
|
+
* ### Deprecated Workday Logo Title
|
|
95
|
+
*
|
|
96
|
+
* As of Canvas Kit v6, this component is being soft-deprecated.
|
|
97
|
+
* It will be hard-deprecated (completely removed) in v7. Please see the
|
|
98
|
+
* [migration guide](https://workday.github.io/canvas-kit/?path=/story/welcome-migration-guides-v6-0--page)
|
|
99
|
+
* for more information.
|
|
100
|
+
*/
|
|
101
|
+
var DeprecatedWorkdayLogoTitle = /** @class */ (function (_super) {
|
|
102
|
+
__extends(DeprecatedWorkdayLogoTitle, _super);
|
|
103
|
+
function DeprecatedWorkdayLogoTitle() {
|
|
94
104
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
95
105
|
}
|
|
96
|
-
|
|
97
|
-
|
|
106
|
+
DeprecatedWorkdayLogoTitle.prototype.componentDidMount = function () {
|
|
107
|
+
console.warn("WorkdayLogoTitle is being deprecated and will be removed in Canvas Kit V7.\n\n For more information, please see the V6 migration guide:\n\n https://workday.github.io/canvas-kit/?path=/story/welcome-migration-guides-v6-0--page\n ");
|
|
108
|
+
};
|
|
109
|
+
DeprecatedWorkdayLogoTitle.prototype.render = function () {
|
|
110
|
+
var _a = this.props, _b = _a.themeColor, themeColor = _b === void 0 ? types_1.DeprecatedHeaderTheme.White : _b, _c = _a.title, title = _c === void 0 ? '' : _c, variant = _a.variant, elemProps = __rest(_a, ["themeColor", "title", "variant"]);
|
|
98
111
|
return (React.createElement(LockupContainer, null,
|
|
99
112
|
React.createElement(Lockup, __assign({}, this.props, elemProps),
|
|
100
113
|
React.createElement(WorkdayLogo, __assign({}, this.props, { dangerouslySetInnerHTML: {
|
|
101
|
-
__html: themeColor === types_1.
|
|
102
|
-
? variant === types_1.
|
|
114
|
+
__html: themeColor === types_1.DeprecatedHeaderTheme.White
|
|
115
|
+
? variant === types_1.DeprecatedHeaderVariant.Global
|
|
103
116
|
? common_1.miniWdayLogoBlue
|
|
104
117
|
: common_1.wdayLogoBlue
|
|
105
118
|
: common_1.wdayLogoWhite,
|
|
106
119
|
} })),
|
|
107
120
|
title && React.createElement(Title, __assign({}, this.props), title))));
|
|
108
121
|
};
|
|
109
|
-
return
|
|
122
|
+
return DeprecatedWorkdayLogoTitle;
|
|
110
123
|
}(React.Component));
|
|
111
|
-
exports.
|
|
124
|
+
exports.DeprecatedWorkdayLogoTitle = DeprecatedWorkdayLogoTitle;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
3
|
-
export { WorkdayLogoTitle } from './WorkdayLogoTitle';
|
|
1
|
+
export { DeprecatedDubLogoTitle } from './DubLogoTitle';
|
|
2
|
+
export { DeprecatedWorkdayLogoTitle } from './WorkdayLogoTitle';
|
|
4
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../header/lib/parts/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../header/lib/parts/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,sBAAsB,EAAC,MAAM,gBAAgB,CAAC;AACtD,OAAO,EAAC,0BAA0B,EAAC,MAAM,oBAAoB,CAAC"}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
var DubLogoTitle_1 = require("./DubLogoTitle");
|
|
4
|
-
exports.
|
|
5
|
-
var SearchBar_1 = require("./SearchBar");
|
|
6
|
-
exports.SearchBar = SearchBar_1.SearchBar;
|
|
4
|
+
exports.DeprecatedDubLogoTitle = DubLogoTitle_1.DeprecatedDubLogoTitle;
|
|
7
5
|
var WorkdayLogoTitle_1 = require("./WorkdayLogoTitle");
|
|
8
|
-
exports.
|
|
6
|
+
exports.DeprecatedWorkdayLogoTitle = WorkdayLogoTitle_1.DeprecatedWorkdayLogoTitle;
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import { CSSProperties } from '@workday/canvas-kit-react/tokens';
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* ### Deprecated Header Theme Attributes Interface
|
|
4
|
+
*
|
|
5
|
+
* As of Canvas Kit v6, this type interface is being soft-deprecated along with the rest of the labs/header package.
|
|
6
|
+
* It will be hard-deprecated (completely removed) in v7. Please see the
|
|
7
|
+
* [migration guide](https://workday.github.io/canvas-kit/?path=/story/welcome-migration-guides-v6-0--page)
|
|
8
|
+
* for more information.
|
|
9
|
+
*/
|
|
10
|
+
export interface DeprecatedHeaderThemeAttributes {
|
|
3
11
|
color: string;
|
|
4
12
|
background: string;
|
|
5
13
|
depth: CSSProperties;
|
|
@@ -12,23 +20,24 @@ export interface ThemeAttributes {
|
|
|
12
20
|
currentLinkColor: string;
|
|
13
21
|
chipColor: string;
|
|
14
22
|
}
|
|
15
|
-
|
|
16
|
-
|
|
23
|
+
/**
|
|
24
|
+
* ### Deprecated Header Themes Interface
|
|
25
|
+
*
|
|
26
|
+
* As of Canvas Kit v6, this type interface is being soft-deprecated along with the rest of the labs/header package.
|
|
27
|
+
* It will be hard-deprecated (completely removed) in v7. Please see the
|
|
28
|
+
* [migration guide](https://workday.github.io/canvas-kit/?path=/story/welcome-migration-guides-v6-0--page)
|
|
29
|
+
* for more information.
|
|
30
|
+
*/
|
|
31
|
+
export interface DeprecatedHeaderThemes {
|
|
32
|
+
[key: string]: DeprecatedHeaderThemeAttributes;
|
|
17
33
|
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
boxShadow?: string | string[];
|
|
28
|
-
boxShadowFocus?: string | string[];
|
|
29
|
-
}
|
|
30
|
-
export interface SearchThemes {
|
|
31
|
-
[key: string]: SearchThemeAttributes;
|
|
32
|
-
}
|
|
33
|
-
export declare const searchThemes: SearchThemes;
|
|
34
|
+
/**
|
|
35
|
+
* ### Deprecated Header Themes
|
|
36
|
+
*
|
|
37
|
+
* As of Canvas Kit v6, this theme object is being soft-deprecated along with the rest of the labs/header package.
|
|
38
|
+
* It will be hard-deprecated (completely removed) in v7. Please see the
|
|
39
|
+
* [migration guide](https://workday.github.io/canvas-kit/?path=/story/welcome-migration-guides-v6-0--page)
|
|
40
|
+
* for more information.
|
|
41
|
+
*/
|
|
42
|
+
export declare const deprecatedHeaderThemes: DeprecatedHeaderThemes;
|
|
34
43
|
//# sourceMappingURL=themes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"themes.d.ts","sourceRoot":"","sources":["../../../../../header/lib/shared/themes.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"themes.d.ts","sourceRoot":"","sources":["../../../../../header/lib/shared/themes.tsx"],"names":[],"mappings":"AAAA,OAAO,EAKL,aAAa,EACd,MAAM,kCAAkC,CAAC;AAI1C;;;;;;;GAOG;AACH,MAAM,WAAW,+BAA+B;IAC9C,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,aAAa,CAAC;IACrB,UAAU,EAAE;QACV,KAAK,EAAE,MAAM,CAAC;QACd,UAAU,EAAE,MAAM,CAAC;KACpB,CAAC;IACF,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,MAAM,CAAC;IACzB,gBAAgB,EAAE,MAAM,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,sBAAsB;IACrC,CAAC,GAAG,EAAE,MAAM,GAAG,+BAA+B,CAAC;CAChD;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,sBAAsB,EAAE,sBA4CpC,CAAC"}
|
|
@@ -2,14 +2,21 @@
|
|
|
2
2
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
|
-
var _a
|
|
5
|
+
var _a;
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
var common_1 = require("@workday/canvas-kit-react/common");
|
|
8
7
|
var tokens_1 = require("@workday/canvas-kit-react/tokens");
|
|
9
8
|
var chroma_js_1 = __importDefault(require("chroma-js"));
|
|
10
9
|
var types_1 = require("./types");
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
/**
|
|
11
|
+
* ### Deprecated Header Themes
|
|
12
|
+
*
|
|
13
|
+
* As of Canvas Kit v6, this theme object is being soft-deprecated along with the rest of the labs/header package.
|
|
14
|
+
* It will be hard-deprecated (completely removed) in v7. Please see the
|
|
15
|
+
* [migration guide](https://workday.github.io/canvas-kit/?path=/story/welcome-migration-guides-v6-0--page)
|
|
16
|
+
* for more information.
|
|
17
|
+
*/
|
|
18
|
+
exports.deprecatedHeaderThemes = (_a = {},
|
|
19
|
+
_a[types_1.DeprecatedHeaderTheme.White] = {
|
|
13
20
|
color: tokens_1.colors.blackPepper400,
|
|
14
21
|
background: tokens_1.colors.frenchVanilla100,
|
|
15
22
|
depth: tokens_1.depth['1'],
|
|
@@ -22,7 +29,7 @@ exports.themes = (_a = {},
|
|
|
22
29
|
currentLinkColor: tokens_1.colors.blueberry500,
|
|
23
30
|
chipColor: tokens_1.colors.blueberry400,
|
|
24
31
|
},
|
|
25
|
-
_a[types_1.
|
|
32
|
+
_a[types_1.DeprecatedHeaderTheme.Blue] = {
|
|
26
33
|
color: tokens_1.colors.frenchVanilla100,
|
|
27
34
|
background: tokens_1.gradients.blueberry,
|
|
28
35
|
depth: tokens_1.depth['3'],
|
|
@@ -37,7 +44,7 @@ exports.themes = (_a = {},
|
|
|
37
44
|
currentLinkColor: tokens_1.colors.frenchVanilla100,
|
|
38
45
|
chipColor: tokens_1.colors.frenchVanilla100,
|
|
39
46
|
},
|
|
40
|
-
_a[types_1.
|
|
47
|
+
_a[types_1.DeprecatedHeaderTheme.Transparent] = {
|
|
41
48
|
color: tokens_1.colors.frenchVanilla100,
|
|
42
49
|
background: 'transparent',
|
|
43
50
|
depth: { boxShadow: 'none' },
|
|
@@ -53,33 +60,3 @@ exports.themes = (_a = {},
|
|
|
53
60
|
chipColor: tokens_1.colors.frenchVanilla100,
|
|
54
61
|
},
|
|
55
62
|
_a);
|
|
56
|
-
exports.searchThemes = (_b = {},
|
|
57
|
-
_b[types_1.SearchTheme.Transparent] = {
|
|
58
|
-
background: 'rgba(0, 0, 0, 0)',
|
|
59
|
-
backgroundFocus: 'rgba(0, 0, 0, 0)',
|
|
60
|
-
color: tokens_1.colors.blackPepper300,
|
|
61
|
-
colorFocus: tokens_1.colors.blackPepper300,
|
|
62
|
-
placeholderColor: tokens_1.colors.licorice300,
|
|
63
|
-
placeholderColorFocus: tokens_1.colors.licorice300,
|
|
64
|
-
boxShadow: 'none',
|
|
65
|
-
boxShadowFocus: 'none',
|
|
66
|
-
},
|
|
67
|
-
_b[types_1.SearchTheme.Light] = {
|
|
68
|
-
background: tokens_1.colors.soap200,
|
|
69
|
-
backgroundFocus: tokens_1.colors.soap200,
|
|
70
|
-
backgroundHover: tokens_1.colors.soap300,
|
|
71
|
-
color: tokens_1.colors.blackPepper300,
|
|
72
|
-
placeholderColor: tokens_1.colors.licorice300,
|
|
73
|
-
boxShadow: 'none',
|
|
74
|
-
boxShadowFocus: common_1.focusRing().boxShadow,
|
|
75
|
-
},
|
|
76
|
-
_b[types_1.SearchTheme.Dark] = {
|
|
77
|
-
background: 'rgba(0, 0, 0, 0.2)',
|
|
78
|
-
backgroundFocus: tokens_1.colors.frenchVanilla100,
|
|
79
|
-
color: tokens_1.colors.frenchVanilla100,
|
|
80
|
-
colorFocus: tokens_1.colors.blackPepper300,
|
|
81
|
-
placeholderColor: tokens_1.colors.frenchVanilla100,
|
|
82
|
-
placeholderColorFocus: tokens_1.colors.licorice300,
|
|
83
|
-
boxShadow: 'none',
|
|
84
|
-
},
|
|
85
|
-
_b);
|
|
@@ -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,25 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var
|
|
4
|
-
(function (
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
})(
|
|
9
|
-
var
|
|
10
|
-
(function (
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
})(
|
|
15
|
-
var
|
|
16
|
-
(function (
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
})(
|
|
20
|
-
var SearchTheme;
|
|
21
|
-
(function (SearchTheme) {
|
|
22
|
-
SearchTheme[SearchTheme["Light"] = 0] = "Light";
|
|
23
|
-
SearchTheme[SearchTheme["Dark"] = 1] = "Dark";
|
|
24
|
-
SearchTheme[SearchTheme["Transparent"] = 2] = "Transparent";
|
|
25
|
-
})(SearchTheme = exports.SearchTheme || (exports.SearchTheme = {}));
|
|
3
|
+
var DeprecatedHeaderTheme;
|
|
4
|
+
(function (DeprecatedHeaderTheme) {
|
|
5
|
+
DeprecatedHeaderTheme[DeprecatedHeaderTheme["White"] = 0] = "White";
|
|
6
|
+
DeprecatedHeaderTheme[DeprecatedHeaderTheme["Blue"] = 1] = "Blue";
|
|
7
|
+
DeprecatedHeaderTheme[DeprecatedHeaderTheme["Transparent"] = 2] = "Transparent";
|
|
8
|
+
})(DeprecatedHeaderTheme = exports.DeprecatedHeaderTheme || (exports.DeprecatedHeaderTheme = {}));
|
|
9
|
+
var DeprecatedHeaderVariant;
|
|
10
|
+
(function (DeprecatedHeaderVariant) {
|
|
11
|
+
DeprecatedHeaderVariant[DeprecatedHeaderVariant["Dub"] = 0] = "Dub";
|
|
12
|
+
DeprecatedHeaderVariant[DeprecatedHeaderVariant["Full"] = 1] = "Full";
|
|
13
|
+
DeprecatedHeaderVariant[DeprecatedHeaderVariant["Global"] = 2] = "Global";
|
|
14
|
+
})(DeprecatedHeaderVariant = exports.DeprecatedHeaderVariant || (exports.DeprecatedHeaderVariant = {}));
|
|
15
|
+
var DeprecatedHeaderHeight;
|
|
16
|
+
(function (DeprecatedHeaderHeight) {
|
|
17
|
+
DeprecatedHeaderHeight["Small"] = "64px";
|
|
18
|
+
DeprecatedHeaderHeight["Large"] = "80px";
|
|
19
|
+
})(DeprecatedHeaderHeight = exports.DeprecatedHeaderHeight || (exports.DeprecatedHeaderHeight = {}));
|
package/dist/commonjs/index.d.ts
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/commonjs/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"}
|
|
@@ -57,7 +57,7 @@ exports.Stack = common_1.createComponent('div')({
|
|
|
57
57
|
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"]);
|
|
58
58
|
var validChildren = getValidChildren_1.getValidChildren(children);
|
|
59
59
|
return (React.createElement(StyledStack, __assign({ as: Element, ref: ref, flexDirection: flexDirection, spacing: spacing }, elemProps), shouldWrapChildren
|
|
60
|
-
? validChildren.map(function (child) { return React.createElement(StackItem,
|
|
60
|
+
? validChildren.map(function (child, index) { return (React.createElement(StackItem, { key: child.props.id || index }, child)); })
|
|
61
61
|
: validChildren));
|
|
62
62
|
},
|
|
63
63
|
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"}
|