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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (185) hide show
  1. package/combobox/lib/Combobox.tsx +5 -3
  2. package/common/README.md +10 -4
  3. package/common/lib/Box.tsx +26 -4
  4. package/common/lib/theming/useThemedRing.ts +9 -5
  5. package/common/lib/utils/other.ts +20 -0
  6. package/dist/commonjs/combobox/index.js +12 -4
  7. package/dist/commonjs/combobox/lib/AutocompleteList.d.ts.map +1 -1
  8. package/dist/commonjs/combobox/lib/AutocompleteList.js +19 -7
  9. package/dist/commonjs/combobox/lib/Combobox.d.ts.map +1 -1
  10. package/dist/commonjs/combobox/lib/Combobox.js +27 -12
  11. package/dist/commonjs/combobox/lib/Status.d.ts.map +1 -1
  12. package/dist/commonjs/combobox/lib/Status.js +14 -2
  13. package/dist/commonjs/common/index.js +15 -7
  14. package/dist/commonjs/common/lib/Box.d.ts +3 -2
  15. package/dist/commonjs/common/lib/Box.d.ts.map +1 -1
  16. package/dist/commonjs/common/lib/Box.js +31 -9
  17. package/dist/commonjs/common/lib/storybook-utils/ComponentStatesTable.d.ts.map +1 -1
  18. package/dist/commonjs/common/lib/storybook-utils/ComponentStatesTable.js +3 -1
  19. package/dist/commonjs/common/lib/storybook-utils/permutateProps.d.ts.map +1 -1
  20. package/dist/commonjs/common/lib/storybook-utils/permutateProps.js +3 -1
  21. package/dist/commonjs/common/lib/theming/index.js +12 -5
  22. package/dist/commonjs/common/lib/theming/useThemeRTL.d.ts.map +1 -1
  23. package/dist/commonjs/common/lib/theming/useThemeRTL.js +1 -0
  24. package/dist/commonjs/common/lib/theming/useThemedRing.d.ts +1 -1
  25. package/dist/commonjs/common/lib/theming/useThemedRing.d.ts.map +1 -1
  26. package/dist/commonjs/common/lib/theming/useThemedRing.js +8 -2
  27. package/dist/commonjs/common/lib/utils/border.js +1 -0
  28. package/dist/commonjs/common/lib/utils/color.js +1 -0
  29. package/dist/commonjs/common/lib/utils/depth.js +1 -0
  30. package/dist/commonjs/common/lib/utils/flexItem.js +1 -0
  31. package/dist/commonjs/common/lib/utils/layout.js +1 -0
  32. package/dist/commonjs/common/lib/utils/other.d.ts +5 -0
  33. package/dist/commonjs/common/lib/utils/other.d.ts.map +1 -0
  34. package/dist/commonjs/common/lib/utils/other.js +19 -0
  35. package/dist/commonjs/common/lib/utils/position.js +1 -0
  36. package/dist/commonjs/common/lib/utils/space.js +1 -0
  37. package/dist/commonjs/drawer/index.js +12 -4
  38. package/dist/commonjs/drawer/lib/Drawer.js +21 -8
  39. package/dist/commonjs/drawer/lib/DrawerHeader.js +20 -8
  40. package/dist/commonjs/index.d.ts +0 -1
  41. package/dist/commonjs/index.d.ts.map +1 -1
  42. package/dist/commonjs/index.js +15 -9
  43. package/dist/commonjs/layout/index.js +12 -5
  44. package/dist/commonjs/layout/lib/Flex.d.ts +1 -1
  45. package/dist/commonjs/layout/lib/Flex.d.ts.map +1 -1
  46. package/dist/commonjs/layout/lib/Flex.js +20 -7
  47. package/dist/commonjs/layout/lib/Stack.d.ts +8 -8
  48. package/dist/commonjs/layout/lib/Stack.d.ts.map +1 -1
  49. package/dist/commonjs/layout/lib/Stack.js +26 -13
  50. package/dist/commonjs/layout/lib/utils/flex.js +1 -0
  51. package/dist/commonjs/layout/lib/utils/getValidChildren.js +15 -2
  52. package/dist/commonjs/layout/lib/utils/stack.js +1 -0
  53. package/dist/commonjs/search-form/index.js +12 -5
  54. package/dist/commonjs/search-form/lib/SearchForm.d.ts +3 -2
  55. package/dist/commonjs/search-form/lib/SearchForm.d.ts.map +1 -1
  56. package/dist/commonjs/search-form/lib/SearchForm.js +21 -8
  57. package/dist/commonjs/search-form/lib/themes.d.ts.map +1 -1
  58. package/dist/commonjs/search-form/lib/themes.js +1 -0
  59. package/dist/es6/combobox/lib/AutocompleteList.d.ts.map +1 -1
  60. package/dist/es6/combobox/lib/Combobox.d.ts.map +1 -1
  61. package/dist/es6/combobox/lib/Combobox.js +1 -1
  62. package/dist/es6/combobox/lib/Status.d.ts.map +1 -1
  63. package/dist/es6/common/lib/Box.d.ts +3 -2
  64. package/dist/es6/common/lib/Box.d.ts.map +1 -1
  65. package/dist/es6/common/lib/Box.js +12 -3
  66. package/dist/es6/common/lib/storybook-utils/ComponentStatesTable.d.ts.map +1 -1
  67. package/dist/es6/common/lib/storybook-utils/permutateProps.d.ts.map +1 -1
  68. package/dist/es6/common/lib/storybook-utils/propTypes.js +1 -0
  69. package/dist/es6/common/lib/theming/useThemeRTL.d.ts.map +1 -1
  70. package/dist/es6/common/lib/theming/useThemedRing.d.ts +1 -1
  71. package/dist/es6/common/lib/theming/useThemedRing.d.ts.map +1 -1
  72. package/dist/es6/common/lib/theming/useThemedRing.js +5 -1
  73. package/dist/es6/common/lib/utils/other.d.ts +5 -0
  74. package/dist/es6/common/lib/utils/other.d.ts.map +1 -0
  75. package/dist/es6/common/lib/utils/other.js +15 -0
  76. package/dist/es6/common/lib/utils/types.js +1 -0
  77. package/dist/es6/drawer/lib/Drawer.js +1 -1
  78. package/dist/es6/drawer/lib/DrawerHeader.js +1 -1
  79. package/dist/es6/index.d.ts +0 -1
  80. package/dist/es6/index.d.ts.map +1 -1
  81. package/dist/es6/index.js +0 -1
  82. package/dist/es6/layout/lib/Flex.d.ts +1 -1
  83. package/dist/es6/layout/lib/Flex.d.ts.map +1 -1
  84. package/dist/es6/layout/lib/Stack.d.ts +8 -8
  85. package/dist/es6/layout/lib/Stack.d.ts.map +1 -1
  86. package/dist/es6/layout/lib/Stack.js +6 -6
  87. package/dist/es6/layout/lib/utils/types.js +1 -0
  88. package/dist/es6/search-form/lib/SearchForm.d.ts +3 -2
  89. package/dist/es6/search-form/lib/SearchForm.d.ts.map +1 -1
  90. package/dist/es6/search-form/lib/SearchForm.js +1 -1
  91. package/dist/es6/search-form/lib/themes.d.ts.map +1 -1
  92. package/index.ts +0 -1
  93. package/layout/lib/Stack.tsx +10 -26
  94. package/package.json +7 -7
  95. package/search-form/lib/SearchForm.tsx +3 -3
  96. package/search-form/lib/themes.ts +2 -1
  97. package/ts3.5/dist/commonjs/common/lib/Box.d.ts +3 -2
  98. package/ts3.5/dist/commonjs/common/lib/theming/useThemedRing.d.ts +1 -1
  99. package/ts3.5/dist/commonjs/common/lib/utils/other.d.ts +5 -0
  100. package/ts3.5/dist/commonjs/index.d.ts +0 -1
  101. package/ts3.5/dist/commonjs/layout/lib/Flex.d.ts +1 -1
  102. package/ts3.5/dist/commonjs/layout/lib/Stack.d.ts +8 -8
  103. package/ts3.5/dist/commonjs/search-form/lib/SearchForm.d.ts +3 -2
  104. package/ts3.5/dist/es6/common/lib/Box.d.ts +3 -2
  105. package/ts3.5/dist/es6/common/lib/theming/useThemedRing.d.ts +1 -1
  106. package/ts3.5/dist/es6/common/lib/utils/other.d.ts +5 -0
  107. package/ts3.5/dist/es6/index.d.ts +0 -1
  108. package/ts3.5/dist/es6/layout/lib/Flex.d.ts +1 -1
  109. package/ts3.5/dist/es6/layout/lib/Stack.d.ts +8 -8
  110. package/ts3.5/dist/es6/search-form/lib/SearchForm.d.ts +3 -2
  111. package/dist/commonjs/header/index.d.ts +0 -9
  112. package/dist/commonjs/header/index.d.ts.map +0 -1
  113. package/dist/commonjs/header/index.js +0 -16
  114. package/dist/commonjs/header/lib/GlobalHeader.d.ts +0 -38
  115. package/dist/commonjs/header/lib/GlobalHeader.d.ts.map +0 -1
  116. package/dist/commonjs/header/lib/GlobalHeader.js +0 -74
  117. package/dist/commonjs/header/lib/Header.d.ts +0 -76
  118. package/dist/commonjs/header/lib/Header.d.ts.map +0 -1
  119. package/dist/commonjs/header/lib/Header.js +0 -321
  120. package/dist/commonjs/header/lib/parts/DubLogoTitle.d.ts +0 -30
  121. package/dist/commonjs/header/lib/parts/DubLogoTitle.d.ts.map +0 -1
  122. package/dist/commonjs/header/lib/parts/DubLogoTitle.js +0 -105
  123. package/dist/commonjs/header/lib/parts/WorkdayLogoTitle.d.ts +0 -31
  124. package/dist/commonjs/header/lib/parts/WorkdayLogoTitle.d.ts.map +0 -1
  125. package/dist/commonjs/header/lib/parts/WorkdayLogoTitle.js +0 -124
  126. package/dist/commonjs/header/lib/parts/index.d.ts +0 -3
  127. package/dist/commonjs/header/lib/parts/index.d.ts.map +0 -1
  128. package/dist/commonjs/header/lib/parts/index.js +0 -6
  129. package/dist/commonjs/header/lib/shared/themes.d.ts +0 -43
  130. package/dist/commonjs/header/lib/shared/themes.d.ts.map +0 -1
  131. package/dist/commonjs/header/lib/shared/themes.js +0 -62
  132. package/dist/commonjs/header/lib/shared/types.d.ts +0 -15
  133. package/dist/commonjs/header/lib/shared/types.d.ts.map +0 -1
  134. package/dist/commonjs/header/lib/shared/types.js +0 -19
  135. package/dist/es6/header/index.d.ts +0 -9
  136. package/dist/es6/header/index.d.ts.map +0 -1
  137. package/dist/es6/header/index.js +0 -8
  138. package/dist/es6/header/lib/GlobalHeader.d.ts +0 -38
  139. package/dist/es6/header/lib/GlobalHeader.d.ts.map +0 -1
  140. package/dist/es6/header/lib/GlobalHeader.js +0 -62
  141. package/dist/es6/header/lib/Header.d.ts +0 -76
  142. package/dist/es6/header/lib/Header.d.ts.map +0 -1
  143. package/dist/es6/header/lib/Header.js +0 -309
  144. package/dist/es6/header/lib/parts/DubLogoTitle.d.ts +0 -30
  145. package/dist/es6/header/lib/parts/DubLogoTitle.d.ts.map +0 -1
  146. package/dist/es6/header/lib/parts/DubLogoTitle.js +0 -93
  147. package/dist/es6/header/lib/parts/WorkdayLogoTitle.d.ts +0 -31
  148. package/dist/es6/header/lib/parts/WorkdayLogoTitle.d.ts.map +0 -1
  149. package/dist/es6/header/lib/parts/WorkdayLogoTitle.js +0 -112
  150. package/dist/es6/header/lib/parts/index.d.ts +0 -3
  151. package/dist/es6/header/lib/parts/index.d.ts.map +0 -1
  152. package/dist/es6/header/lib/parts/index.js +0 -2
  153. package/dist/es6/header/lib/shared/themes.d.ts +0 -43
  154. package/dist/es6/header/lib/shared/themes.d.ts.map +0 -1
  155. package/dist/es6/header/lib/shared/themes.js +0 -57
  156. package/dist/es6/header/lib/shared/types.d.ts +0 -15
  157. package/dist/es6/header/lib/shared/types.d.ts.map +0 -1
  158. package/dist/es6/header/lib/shared/types.js +0 -17
  159. package/header/LICENSE +0 -51
  160. package/header/README.md +0 -359
  161. package/header/index.ts +0 -9
  162. package/header/lib/GlobalHeader.tsx +0 -73
  163. package/header/lib/Header.tsx +0 -429
  164. package/header/lib/parts/DubLogoTitle.tsx +0 -99
  165. package/header/lib/parts/WorkdayLogoTitle.tsx +0 -120
  166. package/header/lib/parts/index.ts +0 -2
  167. package/header/lib/shared/themes.tsx +0 -97
  168. package/header/lib/shared/types.tsx +0 -16
  169. package/header/package.json +0 -5
  170. package/ts3.5/dist/commonjs/header/index.d.ts +0 -9
  171. package/ts3.5/dist/commonjs/header/lib/GlobalHeader.d.ts +0 -38
  172. package/ts3.5/dist/commonjs/header/lib/Header.d.ts +0 -76
  173. package/ts3.5/dist/commonjs/header/lib/parts/DubLogoTitle.d.ts +0 -30
  174. package/ts3.5/dist/commonjs/header/lib/parts/WorkdayLogoTitle.d.ts +0 -31
  175. package/ts3.5/dist/commonjs/header/lib/parts/index.d.ts +0 -3
  176. package/ts3.5/dist/commonjs/header/lib/shared/themes.d.ts +0 -43
  177. package/ts3.5/dist/commonjs/header/lib/shared/types.d.ts +0 -15
  178. package/ts3.5/dist/es6/header/index.d.ts +0 -9
  179. package/ts3.5/dist/es6/header/lib/GlobalHeader.d.ts +0 -38
  180. package/ts3.5/dist/es6/header/lib/Header.d.ts +0 -76
  181. package/ts3.5/dist/es6/header/lib/parts/DubLogoTitle.d.ts +0 -30
  182. package/ts3.5/dist/es6/header/lib/parts/WorkdayLogoTitle.d.ts +0 -31
  183. package/ts3.5/dist/es6/header/lib/parts/index.d.ts +0 -3
  184. package/ts3.5/dist/es6/header/lib/shared/themes.d.ts +0 -43
  185. package/ts3.5/dist/es6/header/lib/shared/types.d.ts +0 -15
@@ -1,43 +0,0 @@
1
- import { CSSProperties } from '@workday/canvas-kit-react/tokens';
2
- /**
3
- * ### Deprecated Header Theme Attributes Interface
4
- *
5
- * As of Canvas Kit v6, this type interface is being soft-deprecated along with the rest of the labs/header package.
6
- * It will be hard-deprecated (completely removed) in v7. Please see the
7
- * [migration guide](https://workday.github.io/canvas-kit/?path=/story/welcome-migration-guides-v6-0--page)
8
- * for more information.
9
- */
10
- export interface DeprecatedHeaderThemeAttributes {
11
- color: string;
12
- background: string;
13
- depth: CSSProperties;
14
- systemIcon: {
15
- color: string;
16
- colorHover: string;
17
- };
18
- linkColor: string;
19
- linkFadeOutColor: string;
20
- currentLinkColor: string;
21
- chipColor: string;
22
- }
23
- /**
24
- * ### Deprecated Header Themes Interface
25
- *
26
- * As of Canvas Kit v6, this type interface is being soft-deprecated along with the rest of the labs/header package.
27
- * It will be hard-deprecated (completely removed) in v7. Please see the
28
- * [migration guide](https://workday.github.io/canvas-kit/?path=/story/welcome-migration-guides-v6-0--page)
29
- * for more information.
30
- */
31
- export interface DeprecatedHeaderThemes {
32
- [key: string]: DeprecatedHeaderThemeAttributes;
33
- }
34
- /**
35
- * ### Deprecated Header Themes
36
- *
37
- * As of Canvas Kit v6, this theme object is being soft-deprecated along with the rest of the labs/header package.
38
- * It will be hard-deprecated (completely removed) in v7. Please see the
39
- * [migration guide](https://workday.github.io/canvas-kit/?path=/story/welcome-migration-guides-v6-0--page)
40
- * for more information.
41
- */
42
- export declare const deprecatedHeaderThemes: DeprecatedHeaderThemes;
43
- //# sourceMappingURL=themes.d.ts.map
@@ -1 +0,0 @@
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"}
@@ -1,62 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- var _a;
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- var tokens_1 = require("@workday/canvas-kit-react/tokens");
8
- var chroma_js_1 = __importDefault(require("chroma-js"));
9
- var types_1 = require("./types");
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] = {
20
- color: tokens_1.colors.blackPepper400,
21
- background: tokens_1.colors.frenchVanilla100,
22
- depth: tokens_1.depth['1'],
23
- systemIcon: {
24
- color: tokens_1.iconColors.standard,
25
- colorHover: tokens_1.iconColors.hover,
26
- },
27
- linkColor: tokens_1.colors.blackPepper400,
28
- linkFadeOutColor: tokens_1.colors.licorice200,
29
- currentLinkColor: tokens_1.colors.blueberry500,
30
- chipColor: tokens_1.colors.blueberry400,
31
- },
32
- _a[types_1.DeprecatedHeaderTheme.Blue] = {
33
- color: tokens_1.colors.frenchVanilla100,
34
- background: tokens_1.gradients.blueberry,
35
- depth: tokens_1.depth['3'],
36
- systemIcon: {
37
- color: tokens_1.colors.frenchVanilla100,
38
- colorHover: tokens_1.colors.blueberry200,
39
- },
40
- linkColor: tokens_1.colors.frenchVanilla100,
41
- linkFadeOutColor: chroma_js_1.default(tokens_1.colors.frenchVanilla100)
42
- .alpha(0.5)
43
- .css(),
44
- currentLinkColor: tokens_1.colors.frenchVanilla100,
45
- chipColor: tokens_1.colors.frenchVanilla100,
46
- },
47
- _a[types_1.DeprecatedHeaderTheme.Transparent] = {
48
- color: tokens_1.colors.frenchVanilla100,
49
- background: 'transparent',
50
- depth: { boxShadow: 'none' },
51
- systemIcon: {
52
- color: tokens_1.colors.frenchVanilla100,
53
- colorHover: tokens_1.colors.blueberry200,
54
- },
55
- linkColor: tokens_1.colors.frenchVanilla100,
56
- linkFadeOutColor: chroma_js_1.default(tokens_1.colors.frenchVanilla100)
57
- .alpha(0.5)
58
- .css(),
59
- currentLinkColor: tokens_1.colors.frenchVanilla100,
60
- chipColor: tokens_1.colors.frenchVanilla100,
61
- },
62
- _a);
@@ -1,15 +0,0 @@
1
- export declare enum DeprecatedHeaderTheme {
2
- White = 0,
3
- Blue = 1,
4
- Transparent = 2
5
- }
6
- export declare enum DeprecatedHeaderVariant {
7
- Dub = 0,
8
- Full = 1,
9
- Global = 2
10
- }
11
- export declare enum DeprecatedHeaderHeight {
12
- Small = "64px",
13
- Large = "80px"
14
- }
15
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
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,19 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
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 = {}));
@@ -1,9 +0,0 @@
1
- import DeprecatedHeader from './lib/Header';
2
- import DeprecatedGlobalHeader from './lib/GlobalHeader';
3
- export default DeprecatedHeader;
4
- export { DeprecatedHeader };
5
- export { DeprecatedGlobalHeader };
6
- export * from './lib/parts';
7
- export * from './lib/shared/themes';
8
- export * from './lib/shared/types';
9
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../header/index.ts"],"names":[],"mappings":"AAAA,OAAO,gBAAgB,MAAM,cAAc,CAAC;AAC5C,OAAO,sBAAsB,MAAM,oBAAoB,CAAC;AAExD,eAAe,gBAAgB,CAAC;AAChC,OAAO,EAAC,gBAAgB,EAAC,CAAC;AAC1B,OAAO,EAAC,sBAAsB,EAAC,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC"}
@@ -1,8 +0,0 @@
1
- import DeprecatedHeader from './lib/Header';
2
- import DeprecatedGlobalHeader from './lib/GlobalHeader';
3
- export default DeprecatedHeader;
4
- export { DeprecatedHeader };
5
- export { DeprecatedGlobalHeader };
6
- export * from './lib/parts';
7
- export * from './lib/shared/themes';
8
- export * from './lib/shared/types';
@@ -1,38 +0,0 @@
1
- import * as React from 'react';
2
- export interface GlobalHeaderProps {
3
- /**
4
- * The custom brand node of the GlobalHeader. This React node replaces the dub logo and title.
5
- * @default DubLogoTitle
6
- */
7
- brand?: React.ReactNode;
8
- /**
9
- * The custom menu toggle node of the GlobalHeader. This React node replaces the default menu toggle.
10
- */
11
- menuToggle?: React.ReactNode;
12
- /**
13
- * The function called when the responsive menu icon is clicked.
14
- */
15
- onMenuClick?: (e: React.MouseEvent) => void;
16
- /**
17
- * If true, render the GlobalHeader in collapsed mode.
18
- * @default false
19
- */
20
- isCollapsed?: boolean;
21
- /**
22
- * The React element to render in the left slot of the GlobalHeader. This is typically a SearchForm component.
23
- */
24
- leftSlot?: React.ReactElement;
25
- }
26
- /**
27
- * ### Deprecated Global Header
28
- *
29
- * As of Canvas Kit v6, this component is being soft-deprecated.
30
- * It will be hard-deprecated (completely removed) in v7. Please see the
31
- * [migration guide](https://workday.github.io/canvas-kit/?path=/story/welcome-migration-guides-v6-0--page)
32
- * for more information.
33
- */
34
- export default class DeprecatedGlobalHeader extends React.Component<GlobalHeaderProps> {
35
- componentDidMount(): void;
36
- render(): JSX.Element;
37
- }
38
- //# sourceMappingURL=GlobalHeader.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"GlobalHeader.d.ts","sourceRoot":"","sources":["../../../../header/lib/GlobalHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,MAAM,WAAW,iBAAiB;IAChC;;;OAGG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB;;OAEG;IACH,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC7B;;OAEG;IACH,WAAW,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,CAAC;IAC5C;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC;CAC/B;AAED;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,OAAO,sBAAuB,SAAQ,KAAK,CAAC,SAAS,CAAC,iBAAiB,CAAC;IACpF,iBAAiB;IASV,MAAM;CAwBd"}
@@ -1,62 +0,0 @@
1
- var __extends = (this && this.__extends) || (function () {
2
- var extendStatics = function (d, b) {
3
- extendStatics = Object.setPrototypeOf ||
4
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
- return extendStatics(d, b);
7
- };
8
- return function (d, b) {
9
- extendStatics(d, b);
10
- function __() { this.constructor = d; }
11
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
- };
13
- })();
14
- var __assign = (this && this.__assign) || function () {
15
- __assign = Object.assign || function(t) {
16
- for (var s, i = 1, n = arguments.length; i < n; i++) {
17
- s = arguments[i];
18
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
19
- t[p] = s[p];
20
- }
21
- return t;
22
- };
23
- return __assign.apply(this, arguments);
24
- };
25
- var __rest = (this && this.__rest) || function (s, e) {
26
- var t = {};
27
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
28
- t[p] = s[p];
29
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
30
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
31
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
32
- t[p[i]] = s[p[i]];
33
- }
34
- return t;
35
- };
36
- import * as React from 'react';
37
- import DeprecatedHeader from './Header';
38
- import { DeprecatedHeaderVariant } from './shared/types';
39
- import { DeprecatedDubLogoTitle } from './parts';
40
- /**
41
- * ### Deprecated Global Header
42
- *
43
- * As of Canvas Kit v6, this component is being soft-deprecated.
44
- * It will be hard-deprecated (completely removed) in v7. Please see the
45
- * [migration guide](https://workday.github.io/canvas-kit/?path=/story/welcome-migration-guides-v6-0--page)
46
- * for more information.
47
- */
48
- var DeprecatedGlobalHeader = /** @class */ (function (_super) {
49
- __extends(DeprecatedGlobalHeader, _super);
50
- function DeprecatedGlobalHeader() {
51
- return _super !== null && _super.apply(this, arguments) || this;
52
- }
53
- DeprecatedGlobalHeader.prototype.componentDidMount = function () {
54
- console.warn("GlobalHeader 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 ");
55
- };
56
- DeprecatedGlobalHeader.prototype.render = function () {
57
- var _a = this.props, _b = _a.brand, brand = _b === void 0 ? React.createElement(DeprecatedDubLogoTitle, null) : _b, menuToggle = _a.menuToggle, onMenuClick = _a.onMenuClick, isCollapsed = _a.isCollapsed, leftSlot = _a.leftSlot, children = _a.children, elemProps = __rest(_a, ["brand", "menuToggle", "onMenuClick", "isCollapsed", "leftSlot", "children"]);
58
- return (React.createElement(DeprecatedHeader, __assign({ brand: brand, menuToggle: menuToggle, leftSlot: leftSlot, onMenuClick: onMenuClick, variant: DeprecatedHeaderVariant.Global, isCollapsed: isCollapsed }, elemProps), children));
59
- };
60
- return DeprecatedGlobalHeader;
61
- }(React.Component));
62
- export default DeprecatedGlobalHeader;
@@ -1,76 +0,0 @@
1
- import * as React from 'react';
2
- import { DeprecatedHeaderTheme, DeprecatedHeaderVariant } from './shared/types';
3
- export interface HeaderProps extends React.HTMLAttributes<HTMLDivElement> {
4
- /**
5
- * The custom menu toggle node of the Header. This React node replaces the default menu toggle.
6
- */
7
- menuToggle?: React.ReactNode;
8
- /**
9
- * The theme of the Header. Accepts `White`, `Blue`, or `Transparent`.
10
- * @default DeprecatedHeaderTheme.White
11
- */
12
- themeColor?: DeprecatedHeaderTheme;
13
- /**
14
- * The variant of the Header. Accepts `Dub` (small) or `Full` (large).
15
- * @default DeprecatedHeaderVariant.Dub
16
- */
17
- variant?: DeprecatedHeaderVariant;
18
- /**
19
- * The text of the Header title. Not used if `brand` is provided.
20
- */
21
- title?: string;
22
- /**
23
- * The custom brand node of the Header. This React node replaces the dub logo and title.
24
- */
25
- brand?: React.ReactNode;
26
- /**
27
- * The url of the Header logo link.
28
- */
29
- brandUrl?: string;
30
- /**
31
- * If true, center the Header navigation. If false, right-align the Header navigation.
32
- * @default false
33
- */
34
- centeredNav?: boolean;
35
- /**
36
- * The function called when the responsive menu icon is clicked.
37
- */
38
- onMenuClick?: (e: React.MouseEvent) => void;
39
- /**
40
- * The React element to render in the left slot of the Header. This is typically a SearchForm component.
41
- */
42
- leftSlot?: React.ReactElement;
43
- /**
44
- * If true, render the Header in collapsed mode.
45
- * @default false
46
- */
47
- isCollapsed?: boolean;
48
- }
49
- /**
50
- * ### Deprecated Header
51
- *
52
- * As of Canvas Kit v6, this component is being soft-deprecated.
53
- * It will be hard-deprecated (completely removed) in v7. Please see the
54
- * [migration guide](https://workday.github.io/canvas-kit/?path=/story/welcome-migration-guides-v6-0--page)
55
- * for more information.
56
- */
57
- export default class Header extends React.Component<HeaderProps, {}> {
58
- static Theme: typeof DeprecatedHeaderTheme;
59
- static Variant: typeof DeprecatedHeaderVariant;
60
- componentDidMount(): void;
61
- /**
62
- * Helper that recursively maps ReactNodes to their theme-based equivalent.
63
- * Any children that are included in a Header may need to undergo transformation
64
- * before stamped out in render().
65
- *
66
- * E.g. <SystemIcon> components need to have the appropriate `color` and `colorHover`
67
- * props set based on the theme.
68
- *
69
- * @param children From props.children of a React component
70
- *
71
- * @returns {React.ReactNode} The child/children to be rendered
72
- */
73
- private renderChildren;
74
- render(): JSX.Element;
75
- }
76
- //# sourceMappingURL=Header.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../../header/lib/Header.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,EAEL,qBAAqB,EACrB,uBAAuB,EACxB,MAAM,gBAAgB,CAAC;AAMxB,MAAM,WAAW,WAAY,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACvE;;OAEG;IACH,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC7B;;;OAGG;IACH,UAAU,CAAC,EAAE,qBAAqB,CAAC;IACnC;;;OAGG;IACH,OAAO,CAAC,EAAE,uBAAuB,CAAC;IAClC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;OAEG;IACH,WAAW,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,CAAC;IAC5C;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC;IAC9B;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AA4ND;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,OAAO,MAAO,SAAQ,KAAK,CAAC,SAAS,CAAC,WAAW,EAAE,EAAE,CAAC;IAClE,MAAM,CAAC,KAAK,+BAAyB;IACrC,MAAM,CAAC,OAAO,iCAA2B;IAEzC,iBAAiB;IASjB;;;;;;;;;;;OAWG;IACH,OAAO,CAAC,cAAc;IAwDtB,MAAM;CA0DP"}