@patternfly/react-core 4.234.2 → 4.235.0

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 (191) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist/esm/components/LoginPage/LoginFooterItem.d.ts +3 -3
  3. package/dist/esm/components/LoginPage/LoginForm.d.ts +18 -18
  4. package/dist/esm/components/LoginPage/LoginHeader.d.ts +1 -1
  5. package/dist/esm/components/LoginPage/LoginMainBody.d.ts +2 -2
  6. package/dist/esm/components/LoginPage/LoginMainFooter.d.ts +5 -5
  7. package/dist/esm/components/LoginPage/LoginMainFooterBandItem.d.ts +2 -2
  8. package/dist/esm/components/LoginPage/LoginMainFooterLinksItem.d.ts +5 -5
  9. package/dist/esm/components/LoginPage/LoginMainHeader.d.ts +6 -4
  10. package/dist/esm/components/LoginPage/LoginMainHeader.d.ts.map +1 -1
  11. package/dist/esm/components/LoginPage/LoginMainHeader.js +2 -1
  12. package/dist/esm/components/LoginPage/LoginMainHeader.js.map +1 -1
  13. package/dist/esm/components/LoginPage/LoginPage.d.ts +16 -14
  14. package/dist/esm/components/LoginPage/LoginPage.d.ts.map +1 -1
  15. package/dist/esm/components/LoginPage/LoginPage.js +2 -2
  16. package/dist/esm/components/LoginPage/LoginPage.js.map +1 -1
  17. package/dist/esm/next/components/Wizard/Wizard.d.ts +40 -0
  18. package/dist/esm/next/components/Wizard/Wizard.d.ts.map +1 -0
  19. package/dist/esm/next/components/Wizard/Wizard.js +86 -0
  20. package/dist/esm/next/components/Wizard/Wizard.js.map +1 -0
  21. package/dist/esm/next/components/Wizard/WizardBody.d.ts +20 -0
  22. package/dist/esm/next/components/Wizard/WizardBody.d.ts.map +1 -0
  23. package/dist/esm/next/components/Wizard/WizardBody.js +7 -0
  24. package/dist/esm/next/components/Wizard/WizardBody.js.map +1 -0
  25. package/dist/esm/next/components/Wizard/WizardContext.d.ts +49 -0
  26. package/dist/esm/next/components/Wizard/WizardContext.d.ts.map +1 -0
  27. package/dist/esm/next/components/Wizard/WizardContext.js +34 -0
  28. package/dist/esm/next/components/Wizard/WizardContext.js.map +1 -0
  29. package/dist/esm/next/components/Wizard/WizardFooter.d.ts +28 -0
  30. package/dist/esm/next/components/Wizard/WizardFooter.d.ts.map +1 -0
  31. package/dist/esm/next/components/Wizard/WizardFooter.js +11 -0
  32. package/dist/esm/next/components/Wizard/WizardFooter.js.map +1 -0
  33. package/dist/esm/next/components/Wizard/WizardHeader.d.ts +21 -0
  34. package/dist/esm/next/components/Wizard/WizardHeader.d.ts.map +1 -0
  35. package/dist/esm/next/components/Wizard/WizardHeader.js +13 -0
  36. package/dist/esm/next/components/Wizard/WizardHeader.js.map +1 -0
  37. package/dist/esm/next/components/Wizard/WizardNav.d.ts +15 -0
  38. package/dist/esm/next/components/Wizard/WizardNav.d.ts.map +1 -0
  39. package/dist/esm/next/components/Wizard/WizardNav.js +13 -0
  40. package/dist/esm/next/components/Wizard/WizardNav.js.map +1 -0
  41. package/dist/esm/next/components/Wizard/WizardNavItem.d.ts +25 -0
  42. package/dist/esm/next/components/Wizard/WizardNavItem.d.ts.map +1 -0
  43. package/dist/esm/next/components/Wizard/WizardNavItem.js +33 -0
  44. package/dist/esm/next/components/Wizard/WizardNavItem.js.map +1 -0
  45. package/dist/esm/next/components/Wizard/WizardStep.d.ts +20 -0
  46. package/dist/esm/next/components/Wizard/WizardStep.d.ts.map +1 -0
  47. package/dist/esm/next/components/Wizard/WizardStep.js +5 -0
  48. package/dist/esm/next/components/Wizard/WizardStep.js.map +1 -0
  49. package/dist/esm/next/components/Wizard/WizardToggle.d.ts +26 -0
  50. package/dist/esm/next/components/Wizard/WizardToggle.d.ts.map +1 -0
  51. package/dist/esm/next/components/Wizard/WizardToggle.js +81 -0
  52. package/dist/esm/next/components/Wizard/WizardToggle.js.map +1 -0
  53. package/dist/esm/next/components/Wizard/hooks/index.d.ts +2 -0
  54. package/dist/esm/next/components/Wizard/hooks/index.d.ts.map +1 -0
  55. package/dist/esm/next/components/Wizard/hooks/index.js +2 -0
  56. package/dist/esm/next/components/Wizard/hooks/index.js.map +1 -0
  57. package/dist/esm/next/components/Wizard/hooks/useWizardFooter.d.ts +8 -0
  58. package/dist/esm/next/components/Wizard/hooks/useWizardFooter.d.ts.map +1 -0
  59. package/dist/esm/next/components/Wizard/hooks/useWizardFooter.js +20 -0
  60. package/dist/esm/next/components/Wizard/hooks/useWizardFooter.js.map +1 -0
  61. package/dist/esm/next/components/Wizard/index.d.ts +12 -0
  62. package/dist/esm/next/components/Wizard/index.d.ts.map +1 -0
  63. package/dist/esm/next/components/Wizard/index.js +12 -0
  64. package/dist/esm/next/components/Wizard/index.js.map +1 -0
  65. package/dist/esm/next/components/Wizard/types.d.ts +69 -0
  66. package/dist/esm/next/components/Wizard/types.d.ts.map +1 -0
  67. package/dist/esm/next/components/Wizard/types.js +20 -0
  68. package/dist/esm/next/components/Wizard/types.js.map +1 -0
  69. package/dist/esm/next/components/Wizard/utils.d.ts +15 -0
  70. package/dist/esm/next/components/Wizard/utils.d.ts.map +1 -0
  71. package/dist/esm/next/components/Wizard/utils.js +35 -0
  72. package/dist/esm/next/components/Wizard/utils.js.map +1 -0
  73. package/dist/esm/next/components/index.d.ts +1 -1
  74. package/dist/esm/next/components/index.d.ts.map +1 -1
  75. package/dist/esm/next/components/index.js +1 -1
  76. package/dist/esm/next/components/index.js.map +1 -1
  77. package/dist/js/components/LoginPage/LoginFooterItem.d.ts +3 -3
  78. package/dist/js/components/LoginPage/LoginForm.d.ts +18 -18
  79. package/dist/js/components/LoginPage/LoginHeader.d.ts +1 -1
  80. package/dist/js/components/LoginPage/LoginMainBody.d.ts +2 -2
  81. package/dist/js/components/LoginPage/LoginMainFooter.d.ts +5 -5
  82. package/dist/js/components/LoginPage/LoginMainFooterBandItem.d.ts +2 -2
  83. package/dist/js/components/LoginPage/LoginMainFooterLinksItem.d.ts +5 -5
  84. package/dist/js/components/LoginPage/LoginMainHeader.d.ts +6 -4
  85. package/dist/js/components/LoginPage/LoginMainHeader.d.ts.map +1 -1
  86. package/dist/js/components/LoginPage/LoginMainHeader.js +2 -1
  87. package/dist/js/components/LoginPage/LoginMainHeader.js.map +1 -1
  88. package/dist/js/components/LoginPage/LoginPage.d.ts +16 -14
  89. package/dist/js/components/LoginPage/LoginPage.d.ts.map +1 -1
  90. package/dist/js/components/LoginPage/LoginPage.js +2 -2
  91. package/dist/js/components/LoginPage/LoginPage.js.map +1 -1
  92. package/dist/js/next/components/Wizard/Wizard.d.ts +40 -0
  93. package/dist/js/next/components/Wizard/Wizard.d.ts.map +1 -0
  94. package/dist/js/next/components/Wizard/Wizard.js +90 -0
  95. package/dist/js/next/components/Wizard/Wizard.js.map +1 -0
  96. package/dist/js/next/components/Wizard/WizardBody.d.ts +20 -0
  97. package/dist/js/next/components/Wizard/WizardBody.d.ts.map +1 -0
  98. package/dist/js/next/components/Wizard/WizardBody.js +12 -0
  99. package/dist/js/next/components/Wizard/WizardBody.js.map +1 -0
  100. package/dist/js/next/components/Wizard/WizardContext.d.ts +49 -0
  101. package/dist/js/next/components/Wizard/WizardContext.d.ts.map +1 -0
  102. package/dist/js/next/components/Wizard/WizardContext.js +40 -0
  103. package/dist/js/next/components/Wizard/WizardContext.js.map +1 -0
  104. package/dist/js/next/components/Wizard/WizardFooter.d.ts +28 -0
  105. package/dist/js/next/components/Wizard/WizardFooter.d.ts.map +1 -0
  106. package/dist/js/next/components/Wizard/WizardFooter.js +16 -0
  107. package/dist/js/next/components/Wizard/WizardFooter.js.map +1 -0
  108. package/dist/js/next/components/Wizard/WizardHeader.d.ts +21 -0
  109. package/dist/js/next/components/Wizard/WizardHeader.d.ts.map +1 -0
  110. package/dist/js/next/components/Wizard/WizardHeader.js +18 -0
  111. package/dist/js/next/components/Wizard/WizardHeader.js.map +1 -0
  112. package/dist/js/next/components/Wizard/WizardNav.d.ts +15 -0
  113. package/dist/js/next/components/Wizard/WizardNav.d.ts.map +1 -0
  114. package/dist/js/next/components/Wizard/WizardNav.js +18 -0
  115. package/dist/js/next/components/Wizard/WizardNav.js.map +1 -0
  116. package/dist/js/next/components/Wizard/WizardNavItem.d.ts +25 -0
  117. package/dist/js/next/components/Wizard/WizardNavItem.d.ts.map +1 -0
  118. package/dist/js/next/components/Wizard/WizardNavItem.js +37 -0
  119. package/dist/js/next/components/Wizard/WizardNavItem.js.map +1 -0
  120. package/dist/js/next/components/Wizard/WizardStep.d.ts +20 -0
  121. package/dist/js/next/components/Wizard/WizardStep.d.ts.map +1 -0
  122. package/dist/js/next/components/Wizard/WizardStep.js +10 -0
  123. package/dist/js/next/components/Wizard/WizardStep.js.map +1 -0
  124. package/dist/js/next/components/Wizard/WizardToggle.d.ts +26 -0
  125. package/dist/js/next/components/Wizard/WizardToggle.d.ts.map +1 -0
  126. package/dist/js/next/components/Wizard/WizardToggle.js +86 -0
  127. package/dist/js/next/components/Wizard/WizardToggle.js.map +1 -0
  128. package/dist/js/next/components/Wizard/hooks/index.d.ts +2 -0
  129. package/dist/js/next/components/Wizard/hooks/index.d.ts.map +1 -0
  130. package/dist/js/next/components/Wizard/hooks/index.js +6 -0
  131. package/dist/js/next/components/Wizard/hooks/index.js.map +1 -0
  132. package/dist/js/next/components/Wizard/hooks/useWizardFooter.d.ts +8 -0
  133. package/dist/js/next/components/Wizard/hooks/useWizardFooter.d.ts.map +1 -0
  134. package/dist/js/next/components/Wizard/hooks/useWizardFooter.js +25 -0
  135. package/dist/js/next/components/Wizard/hooks/useWizardFooter.js.map +1 -0
  136. package/dist/js/next/components/Wizard/index.d.ts +12 -0
  137. package/dist/js/next/components/Wizard/index.d.ts.map +1 -0
  138. package/dist/js/next/components/Wizard/index.js +17 -0
  139. package/dist/js/next/components/Wizard/index.js.map +1 -0
  140. package/dist/js/next/components/Wizard/types.d.ts +69 -0
  141. package/dist/js/next/components/Wizard/types.d.ts.map +1 -0
  142. package/dist/js/next/components/Wizard/types.js +29 -0
  143. package/dist/js/next/components/Wizard/types.js.map +1 -0
  144. package/dist/js/next/components/Wizard/utils.d.ts +15 -0
  145. package/dist/js/next/components/Wizard/utils.d.ts.map +1 -0
  146. package/dist/js/next/components/Wizard/utils.js +41 -0
  147. package/dist/js/next/components/Wizard/utils.js.map +1 -0
  148. package/dist/js/next/components/index.d.ts +1 -1
  149. package/dist/js/next/components/index.d.ts.map +1 -1
  150. package/dist/js/next/components/index.js +1 -1
  151. package/dist/js/next/components/index.js.map +1 -1
  152. package/dist/umd/react-core.css +208 -208
  153. package/dist/umd/react-core.js +4 -3
  154. package/dist/umd/react-core.min.js +4 -4
  155. package/package.json +6 -6
  156. package/src/components/Card/examples/Card.md +67 -38
  157. package/src/components/LoginPage/LoginFooterItem.tsx +3 -3
  158. package/src/components/LoginPage/LoginForm.tsx +18 -18
  159. package/src/components/LoginPage/LoginHeader.tsx +1 -1
  160. package/src/components/LoginPage/LoginMainBody.tsx +2 -2
  161. package/src/components/LoginPage/LoginMainFooter.tsx +5 -5
  162. package/src/components/LoginPage/LoginMainFooterBandItem.tsx +2 -2
  163. package/src/components/LoginPage/LoginMainFooterLinksItem.tsx +5 -5
  164. package/src/components/LoginPage/LoginMainHeader.tsx +8 -4
  165. package/src/components/LoginPage/LoginPage.tsx +18 -15
  166. package/src/components/LoginPage/examples/LoginPage.md +8 -0
  167. package/src/components/LoginPage/examples/LoginPageBasic.tsx +0 -1
  168. package/src/components/LoginPage/examples/LoginPageLanguageSelect.tsx +194 -0
  169. package/src/components/LoginPage/examples/LoginPageShowHidePassword.tsx +0 -1
  170. package/src/components/Wizard/examples/Wizard.md +21 -4
  171. package/src/demos/CardDemos.md +4 -0
  172. package/src/next/components/Wizard/Wizard.tsx +184 -0
  173. package/src/next/components/Wizard/WizardBody.tsx +34 -0
  174. package/src/next/components/Wizard/WizardContext.tsx +104 -0
  175. package/src/next/components/Wizard/WizardFooter.tsx +63 -0
  176. package/src/next/components/Wizard/WizardHeader.tsx +53 -0
  177. package/src/next/components/Wizard/WizardNav.tsx +41 -0
  178. package/src/next/components/Wizard/WizardNavItem.tsx +103 -0
  179. package/src/next/components/Wizard/WizardStep.tsx +23 -0
  180. package/src/next/components/Wizard/WizardToggle.tsx +209 -0
  181. package/src/next/components/Wizard/__tests__/Wizard.test.tsx +298 -0
  182. package/src/next/components/Wizard/examples/Wizard.md +125 -0
  183. package/src/next/components/Wizard/examples/WizardBasic.tsx +22 -0
  184. package/src/next/components/Wizard/examples/WizardCustomNav.tsx +46 -0
  185. package/src/next/components/Wizard/examples/WizardKitchenSink.tsx +170 -0
  186. package/src/next/components/Wizard/hooks/index.ts +1 -0
  187. package/src/next/components/Wizard/hooks/useWizardFooter.tsx +22 -0
  188. package/src/next/components/Wizard/index.ts +11 -0
  189. package/src/next/components/Wizard/types.tsx +101 -0
  190. package/src/next/components/Wizard/utils.ts +47 -0
  191. package/src/next/components/index.ts +1 -1
@@ -0,0 +1,69 @@
1
+ import React from 'react';
2
+ import { WizardNavProps, WizardNavItemProps } from '../Wizard';
3
+ /** Type used to define 'basic' steps, or in other words, steps that are neither parents or children of parents. */
4
+ export interface WizardBasicStep {
5
+ /** Name of the step's nav item */
6
+ name: React.ReactNode;
7
+ /** Unique identifier */
8
+ id: string | number;
9
+ /** Flag to disable the step's nav item */
10
+ isDisabled?: boolean;
11
+ /** Flag to represent whether the step has been visited (navigated to) */
12
+ visited?: boolean;
13
+ /** Content shown when the step's nav item is selected. When treated as a parent step, only sub-step content will be shown. */
14
+ component?: React.ReactElement;
15
+ /** (Unused if nav is controlled) Custom WizardNavItem */
16
+ navItem?: React.ReactElement<WizardNavItemProps>;
17
+ /** (Unused if footer is controlled) Can change the Next button text. If nextButtonText is also set for the Wizard, this step specific one overrides it. */
18
+ nextButtonText?: React.ReactNode;
19
+ /** (Unused if footer is controlled) The condition needed to disable the Next button */
20
+ disableNext?: boolean;
21
+ /** (Unused if footer is controlled) True to hide the Cancel button */
22
+ hideCancelButton?: boolean;
23
+ /** (Unused if footer is controlled) True to hide the Back button */
24
+ hideBackButton?: boolean;
25
+ }
26
+ /** Type used to define parent steps. */
27
+ export interface WizardParentStep extends WizardBasicStep {
28
+ /** Nested step IDs */
29
+ subStepIds: string[];
30
+ }
31
+ /** Type used to define sub-steps. */
32
+ export interface WizardSubStep extends WizardBasicStep {
33
+ /** Unique identifier of the parent step */
34
+ parentId: string | number;
35
+ }
36
+ /** Used to customize aspects of the Wizard's default navigation. */
37
+ export interface DefaultWizardNavProps {
38
+ /** Flag indicating nav items with sub steps are expandable */
39
+ isExpandable?: boolean;
40
+ /** Aria-label for the Nav */
41
+ ariaLabel?: string;
42
+ /** Sets aria-labelledby on nav element */
43
+ ariaLabelledBy?: string;
44
+ /** Disable step nav items until they are visited */
45
+ forceStepVisit?: boolean;
46
+ }
47
+ /** Used to customize aspects of the Wizard's default footer. */
48
+ export interface DefaultWizardFooterProps {
49
+ /** The Next button text */
50
+ nextButtonText?: React.ReactNode;
51
+ /** The Back button text */
52
+ backButtonText?: React.ReactNode;
53
+ /** The Cancel button text */
54
+ cancelButtonText?: React.ReactNode;
55
+ }
56
+ /** Encompasses all step type variants that are internally controlled by the Wizard. */
57
+ export declare type WizardControlStep = WizardBasicStep | WizardParentStep | WizardSubStep;
58
+ /** Callback for the Wizard's 'onNext', 'onBack', and 'onNavByIndex' properties. */
59
+ export declare type WizardNavStepFunction = (currentStep: WizardNavStepData, previousStep: WizardNavStepData) => void;
60
+ /** Data returned for either parameter of WizardNavStepFunction. */
61
+ export declare type WizardNavStepData = Pick<WizardControlStep, 'id' | 'name'>;
62
+ /** Callback for the Wizard's 'nav' property. Returns element which replaces the Wizard's default navigation. */
63
+ export declare type CustomWizardNavFunction = (isOpen: boolean, steps: WizardControlStep[], activeStep: WizardControlStep, goToStepByIndex: (index: number) => void) => React.ReactElement<WizardNavProps>;
64
+ export declare function isCustomWizardNav(nav: DefaultWizardNavProps | CustomWizardNavFunction): nav is CustomWizardNavFunction;
65
+ export declare function isCustomWizardFooter(footer: DefaultWizardFooterProps | React.ReactElement): footer is React.ReactElement;
66
+ export declare function isWizardBasicStep(step: WizardControlStep): step is WizardBasicStep;
67
+ export declare function isWizardSubStep(step: WizardControlStep): step is WizardSubStep;
68
+ export declare function isWizardParentStep(step: WizardControlStep): step is WizardParentStep;
69
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/next/components/Wizard/types.tsx"],"names":[],"mappings":"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"}
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isWizardParentStep = exports.isWizardSubStep = exports.isWizardBasicStep = exports.isCustomWizardFooter = exports.isCustomWizardNav = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const react_1 = tslib_1.__importDefault(require("react"));
6
+ function isCustomWizardNav(nav) {
7
+ return typeof nav === 'function';
8
+ }
9
+ exports.isCustomWizardNav = isCustomWizardNav;
10
+ function isCustomWizardFooter(footer) {
11
+ return react_1.default.isValidElement(footer);
12
+ }
13
+ exports.isCustomWizardFooter = isCustomWizardFooter;
14
+ function isWizardBasicStep(step) {
15
+ var _a;
16
+ return ((_a = step) === null || _a === void 0 ? void 0 : _a.subStepIds) === undefined && !isWizardSubStep(step);
17
+ }
18
+ exports.isWizardBasicStep = isWizardBasicStep;
19
+ function isWizardSubStep(step) {
20
+ var _a;
21
+ return ((_a = step) === null || _a === void 0 ? void 0 : _a.parentId) !== undefined;
22
+ }
23
+ exports.isWizardSubStep = isWizardSubStep;
24
+ function isWizardParentStep(step) {
25
+ var _a;
26
+ return ((_a = step) === null || _a === void 0 ? void 0 : _a.subStepIds) !== undefined;
27
+ }
28
+ exports.isWizardParentStep = isWizardParentStep;
29
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/next/components/Wizard/types.tsx"],"names":[],"mappings":";;;;AAAA,0DAA0B;AA8E1B,SAAgB,iBAAiB,CAC/B,GAAoD;IAEpD,OAAO,OAAO,GAAG,KAAK,UAAU,CAAC;AACnC,CAAC;AAJD,8CAIC;AAED,SAAgB,oBAAoB,CAClC,MAAqD;IAErD,OAAO,eAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;AACtC,CAAC;AAJD,oDAIC;AAED,SAAgB,iBAAiB,CAAC,IAAuB;;IACvD,OAAO,CAAA,MAAC,IAAyB,0CAAE,UAAU,MAAK,SAAS,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;AACxF,CAAC;AAFD,8CAEC;AAED,SAAgB,eAAe,CAAC,IAAuB;;IACrD,OAAO,CAAA,MAAC,IAAsB,0CAAE,QAAQ,MAAK,SAAS,CAAC;AACzD,CAAC;AAFD,0CAEC;AAED,SAAgB,kBAAkB,CAAC,IAAuB;;IACxD,OAAO,CAAA,MAAC,IAAyB,0CAAE,UAAU,MAAK,SAAS,CAAC;AAC9D,CAAC;AAFD,gDAEC"}
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ import { WizardControlStep, WizardNavStepData } from './types';
3
+ import { WizardStepProps } from './WizardStep';
4
+ /**
5
+ * Accumulate list of step & sub-step props pulled from child components
6
+ * @param children
7
+ * @returns WizardControlStep[]
8
+ */
9
+ export declare const buildSteps: (children: React.ReactElement<WizardStepProps> | React.ReactElement<WizardStepProps>[]) => WizardControlStep[];
10
+ export declare const normalizeNavStep: ({ id, name }: WizardNavStepData) => {
11
+ id: string | number;
12
+ name: React.ReactNode;
13
+ };
14
+ export declare const getActiveStep: (steps: WizardControlStep[], currentStepIndex: number) => WizardControlStep;
15
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/next/components/Wizard/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAC/D,OAAO,EAAc,eAAe,EAAE,MAAM,cAAc,CAAC;AAM3D;;;;GAIG;AACH,eAAO,MAAM,UAAU,aAAc,MAAM,YAAY,CAAC,eAAe,CAAC,GAAG,MAAM,YAAY,CAAC,eAAe,CAAC,EAAE,wBA4BxG,CAAC;AAET,eAAO,MAAM,gBAAgB,iBAAkB,iBAAiB;;;CAAmB,CAAC;AACpF,eAAO,MAAM,aAAa,UAAW,iBAAiB,EAAE,oBAAoB,MAAM,sBACxB,CAAC"}
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getActiveStep = exports.normalizeNavStep = exports.buildSteps = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const react_1 = tslib_1.__importDefault(require("react"));
6
+ const WizardStep_1 = require("./WizardStep");
7
+ function hasWizardStepProps(props) {
8
+ return props.name !== undefined && props.id !== undefined && props.children !== undefined;
9
+ }
10
+ /**
11
+ * Accumulate list of step & sub-step props pulled from child components
12
+ * @param children
13
+ * @returns WizardControlStep[]
14
+ */
15
+ const buildSteps = (children) => react_1.default.Children.toArray(children).reduce((acc, child) => {
16
+ if (react_1.default.isValidElement(child)) {
17
+ if (child.type === WizardStep_1.WizardStep || hasWizardStepProps(child.props)) {
18
+ // Omit "children" and use the whole "child" (WizardStep) for the component prop. Sub-steps will do the same.
19
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
20
+ const _a = child.props, { steps: subSteps, id, children } = _a, stepProps = tslib_1.__rest(_a, ["steps", "id", "children"]);
21
+ acc.push(Object.assign(Object.assign({ id, component: child }, stepProps), (subSteps && {
22
+ subStepIds: subSteps === null || subSteps === void 0 ? void 0 : subSteps.map(subStep => {
23
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
24
+ const _a = subStep.props, { children } = _a, subStepProps = tslib_1.__rest(_a, ["children"]);
25
+ acc.push(Object.assign(Object.assign({}, subStepProps), { component: subStep, parentId: id }));
26
+ return subStep.props.id;
27
+ })
28
+ })));
29
+ }
30
+ else {
31
+ throw new Error('Wizard only accepts children of type WizardStep');
32
+ }
33
+ }
34
+ return acc;
35
+ }, []);
36
+ exports.buildSteps = buildSteps;
37
+ const normalizeNavStep = ({ id, name }) => ({ id, name });
38
+ exports.normalizeNavStep = normalizeNavStep;
39
+ const getActiveStep = (steps, currentStepIndex) => steps.find((_, index) => index + 1 === currentStepIndex);
40
+ exports.getActiveStep = getActiveStep;
41
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../src/next/components/Wizard/utils.ts"],"names":[],"mappings":";;;;AAAA,0DAA0B;AAG1B,6CAA2D;AAE3D,SAAS,kBAAkB,CAAC,KAA4B;IACtD,OAAO,KAAK,CAAC,IAAI,KAAK,SAAS,IAAI,KAAK,CAAC,EAAE,KAAK,SAAS,IAAI,KAAK,CAAC,QAAQ,KAAK,SAAS,CAAC;AAC5F,CAAC;AAED;;;;GAIG;AACI,MAAM,UAAU,GAAG,CAAC,QAAqF,EAAE,EAAE,CAClH,eAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,GAAwB,EAAE,KAAK,EAAE,EAAE;IAC1E,IAAI,eAAK,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE;QAC/B,IAAI,KAAK,CAAC,IAAI,KAAK,uBAAU,IAAI,kBAAkB,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE;YAChE,6GAA6G;YAC7G,6DAA6D;YAC7D,MAAM,KAAkD,KAAK,CAAC,KAAwB,EAAhF,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE,QAAQ,OAAiD,EAA5C,SAAS,sBAA7C,2BAA+C,CAAiC,CAAC;YAEvF,GAAG,CAAC,IAAI,+BACN,EAAE,EACF,SAAS,EAAE,KAAK,IACb,SAAS,GACT,CAAC,QAAQ,IAAI;gBACd,UAAU,EAAE,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,GAAG,CAAC,OAAO,CAAC,EAAE;oBAClC,6DAA6D;oBAC7D,MAAM,KAAgC,OAAO,CAAC,KAAK,EAA7C,EAAE,QAAQ,OAAmC,EAA9B,YAAY,sBAA3B,YAA6B,CAAgB,CAAC;oBACpD,GAAG,CAAC,IAAI,iCAAM,YAAY,KAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,IAAG,CAAC;oBAEhE,OAAO,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;gBAC1B,CAAC,CAAC;aACH,CAAC,EACF,CAAC;SACJ;aAAM;YACL,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;SACpE;KACF;IAED,OAAO,GAAG,CAAC;AACb,CAAC,EAAE,EAAE,CAAC,CAAC;AA5BI,QAAA,UAAU,cA4Bd;AAEF,MAAM,gBAAgB,GAAG,CAAC,EAAE,EAAE,EAAE,IAAI,EAAqB,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC;AAAvE,QAAA,gBAAgB,oBAAuD;AAC7E,MAAM,aAAa,GAAG,CAAC,KAA0B,EAAE,gBAAwB,EAAE,EAAE,CACpF,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC,KAAK,GAAG,CAAC,KAAK,gBAAgB,CAAC,CAAC;AAD9C,QAAA,aAAa,iBACiC"}
@@ -1,2 +1,2 @@
1
- export * from './';
1
+ export * from './Wizard';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/next/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,IAAI,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/next/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./"), exports);
4
+ tslib_1.__exportStar(require("./Wizard"), exports);
5
5
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/next/components/index.ts"],"names":[],"mappings":";;;AAAA,6CAAmB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/next/components/index.ts"],"names":[],"mappings":";;;AAAA,mDAAyB"}
@@ -1141,6 +1141,153 @@ textarea.pf-c-form-control {
1141
1141
  color: var(--pf-global--palette--black-100);
1142
1142
  }
1143
1143
 
1144
+ .pf-u-screen-reader {
1145
+ position: fixed;
1146
+ top: 0;
1147
+ left: 0;
1148
+ overflow: hidden;
1149
+ clip: rect(0, 0, 0, 0);
1150
+ white-space: nowrap;
1151
+ border: 0;
1152
+ }
1153
+
1154
+ .pf-u-visible {
1155
+ position: static;
1156
+ overflow: visible;
1157
+ clip: auto;
1158
+ white-space: normal;
1159
+ border: inherit;
1160
+ }
1161
+
1162
+ .pf-u-hidden {
1163
+ display: none !important;
1164
+ }
1165
+
1166
+ @media screen and (min-width: 576px) {
1167
+ .pf-u-screen-reader-on-sm {
1168
+ position: fixed;
1169
+ top: 0;
1170
+ left: 0;
1171
+ overflow: hidden;
1172
+ clip: rect(0, 0, 0, 0);
1173
+ white-space: nowrap;
1174
+ border: 0;
1175
+ }
1176
+ }
1177
+ @media screen and (min-width: 576px) {
1178
+ .pf-u-visible-on-sm {
1179
+ position: static;
1180
+ overflow: visible;
1181
+ clip: auto;
1182
+ white-space: normal;
1183
+ border: inherit;
1184
+ }
1185
+ }
1186
+ @media screen and (min-width: 576px) {
1187
+ .pf-u-hidden-on-sm {
1188
+ display: none !important;
1189
+ }
1190
+ }
1191
+ @media screen and (min-width: 768px) {
1192
+ .pf-u-screen-reader-on-md {
1193
+ position: fixed;
1194
+ top: 0;
1195
+ left: 0;
1196
+ overflow: hidden;
1197
+ clip: rect(0, 0, 0, 0);
1198
+ white-space: nowrap;
1199
+ border: 0;
1200
+ }
1201
+ }
1202
+ @media screen and (min-width: 768px) {
1203
+ .pf-u-visible-on-md {
1204
+ position: static;
1205
+ overflow: visible;
1206
+ clip: auto;
1207
+ white-space: normal;
1208
+ border: inherit;
1209
+ }
1210
+ }
1211
+ @media screen and (min-width: 768px) {
1212
+ .pf-u-hidden-on-md {
1213
+ display: none !important;
1214
+ }
1215
+ }
1216
+ @media screen and (min-width: 992px) {
1217
+ .pf-u-screen-reader-on-lg {
1218
+ position: fixed;
1219
+ top: 0;
1220
+ left: 0;
1221
+ overflow: hidden;
1222
+ clip: rect(0, 0, 0, 0);
1223
+ white-space: nowrap;
1224
+ border: 0;
1225
+ }
1226
+ }
1227
+ @media screen and (min-width: 992px) {
1228
+ .pf-u-visible-on-lg {
1229
+ position: static;
1230
+ overflow: visible;
1231
+ clip: auto;
1232
+ white-space: normal;
1233
+ border: inherit;
1234
+ }
1235
+ }
1236
+ @media screen and (min-width: 992px) {
1237
+ .pf-u-hidden-on-lg {
1238
+ display: none !important;
1239
+ }
1240
+ }
1241
+ @media screen and (min-width: 1200px) {
1242
+ .pf-u-screen-reader-on-xl {
1243
+ position: fixed;
1244
+ top: 0;
1245
+ left: 0;
1246
+ overflow: hidden;
1247
+ clip: rect(0, 0, 0, 0);
1248
+ white-space: nowrap;
1249
+ border: 0;
1250
+ }
1251
+ }
1252
+ @media screen and (min-width: 1200px) {
1253
+ .pf-u-visible-on-xl {
1254
+ position: static;
1255
+ overflow: visible;
1256
+ clip: auto;
1257
+ white-space: normal;
1258
+ border: inherit;
1259
+ }
1260
+ }
1261
+ @media screen and (min-width: 1200px) {
1262
+ .pf-u-hidden-on-xl {
1263
+ display: none !important;
1264
+ }
1265
+ }
1266
+ @media screen and (min-width: 1450px) {
1267
+ .pf-u-screen-reader-on-2xl {
1268
+ position: fixed;
1269
+ top: 0;
1270
+ left: 0;
1271
+ overflow: hidden;
1272
+ clip: rect(0, 0, 0, 0);
1273
+ white-space: nowrap;
1274
+ border: 0;
1275
+ }
1276
+ }
1277
+ @media screen and (min-width: 1450px) {
1278
+ .pf-u-visible-on-2xl {
1279
+ position: static;
1280
+ overflow: visible;
1281
+ clip: auto;
1282
+ white-space: normal;
1283
+ border: inherit;
1284
+ }
1285
+ }
1286
+ @media screen and (min-width: 1450px) {
1287
+ .pf-u-hidden-on-2xl {
1288
+ display: none !important;
1289
+ }
1290
+ }
1144
1291
  .pf-c-avatar {
1145
1292
  --pf-c-avatar--BorderColor: transparent;
1146
1293
  --pf-c-avatar--BorderWidth: 0;
@@ -1395,153 +1542,6 @@ textarea.pf-c-form-control {
1395
1542
  --pf-c-avatar--Height: var(--pf-c-avatar--m-xl--Height-on-2xl, var(--pf-c-avatar--m-xl--Height-on-xl, var(--pf-c-avatar--m-xl--Height-on-lg, var(--pf-c-avatar--m-xl--Height-on-md, var(--pf-c-avatar--m-xl--Height-on-sm, var(--pf-c-avatar--m-xl--Height))))));
1396
1543
  }
1397
1544
  }
1398
- .pf-u-screen-reader {
1399
- position: fixed;
1400
- top: 0;
1401
- left: 0;
1402
- overflow: hidden;
1403
- clip: rect(0, 0, 0, 0);
1404
- white-space: nowrap;
1405
- border: 0;
1406
- }
1407
-
1408
- .pf-u-visible {
1409
- position: static;
1410
- overflow: visible;
1411
- clip: auto;
1412
- white-space: normal;
1413
- border: inherit;
1414
- }
1415
-
1416
- .pf-u-hidden {
1417
- display: none !important;
1418
- }
1419
-
1420
- @media screen and (min-width: 576px) {
1421
- .pf-u-screen-reader-on-sm {
1422
- position: fixed;
1423
- top: 0;
1424
- left: 0;
1425
- overflow: hidden;
1426
- clip: rect(0, 0, 0, 0);
1427
- white-space: nowrap;
1428
- border: 0;
1429
- }
1430
- }
1431
- @media screen and (min-width: 576px) {
1432
- .pf-u-visible-on-sm {
1433
- position: static;
1434
- overflow: visible;
1435
- clip: auto;
1436
- white-space: normal;
1437
- border: inherit;
1438
- }
1439
- }
1440
- @media screen and (min-width: 576px) {
1441
- .pf-u-hidden-on-sm {
1442
- display: none !important;
1443
- }
1444
- }
1445
- @media screen and (min-width: 768px) {
1446
- .pf-u-screen-reader-on-md {
1447
- position: fixed;
1448
- top: 0;
1449
- left: 0;
1450
- overflow: hidden;
1451
- clip: rect(0, 0, 0, 0);
1452
- white-space: nowrap;
1453
- border: 0;
1454
- }
1455
- }
1456
- @media screen and (min-width: 768px) {
1457
- .pf-u-visible-on-md {
1458
- position: static;
1459
- overflow: visible;
1460
- clip: auto;
1461
- white-space: normal;
1462
- border: inherit;
1463
- }
1464
- }
1465
- @media screen and (min-width: 768px) {
1466
- .pf-u-hidden-on-md {
1467
- display: none !important;
1468
- }
1469
- }
1470
- @media screen and (min-width: 992px) {
1471
- .pf-u-screen-reader-on-lg {
1472
- position: fixed;
1473
- top: 0;
1474
- left: 0;
1475
- overflow: hidden;
1476
- clip: rect(0, 0, 0, 0);
1477
- white-space: nowrap;
1478
- border: 0;
1479
- }
1480
- }
1481
- @media screen and (min-width: 992px) {
1482
- .pf-u-visible-on-lg {
1483
- position: static;
1484
- overflow: visible;
1485
- clip: auto;
1486
- white-space: normal;
1487
- border: inherit;
1488
- }
1489
- }
1490
- @media screen and (min-width: 992px) {
1491
- .pf-u-hidden-on-lg {
1492
- display: none !important;
1493
- }
1494
- }
1495
- @media screen and (min-width: 1200px) {
1496
- .pf-u-screen-reader-on-xl {
1497
- position: fixed;
1498
- top: 0;
1499
- left: 0;
1500
- overflow: hidden;
1501
- clip: rect(0, 0, 0, 0);
1502
- white-space: nowrap;
1503
- border: 0;
1504
- }
1505
- }
1506
- @media screen and (min-width: 1200px) {
1507
- .pf-u-visible-on-xl {
1508
- position: static;
1509
- overflow: visible;
1510
- clip: auto;
1511
- white-space: normal;
1512
- border: inherit;
1513
- }
1514
- }
1515
- @media screen and (min-width: 1200px) {
1516
- .pf-u-hidden-on-xl {
1517
- display: none !important;
1518
- }
1519
- }
1520
- @media screen and (min-width: 1450px) {
1521
- .pf-u-screen-reader-on-2xl {
1522
- position: fixed;
1523
- top: 0;
1524
- left: 0;
1525
- overflow: hidden;
1526
- clip: rect(0, 0, 0, 0);
1527
- white-space: nowrap;
1528
- border: 0;
1529
- }
1530
- }
1531
- @media screen and (min-width: 1450px) {
1532
- .pf-u-visible-on-2xl {
1533
- position: static;
1534
- overflow: visible;
1535
- clip: auto;
1536
- white-space: normal;
1537
- border: inherit;
1538
- }
1539
- }
1540
- @media screen and (min-width: 1450px) {
1541
- .pf-u-hidden-on-2xl {
1542
- display: none !important;
1543
- }
1544
- }
1545
1545
  .pf-c-back-to-top {
1546
1546
  --pf-c-back-to-top--Right: var(--pf-global--spacer--2xl);
1547
1547
  --pf-c-back-to-top--Bottom: var(--pf-global--spacer--lg);
@@ -5454,67 +5454,6 @@ label.pf-c-check, .pf-c-check__label,
5454
5454
  overflow-y: visible;
5455
5455
  }
5456
5456
  }
5457
- .pf-c-date-picker {
5458
- --pf-c-date-picker--m-top__calendar--Top: 0;
5459
- --pf-c-date-picker--m-top__calendar--TranslateY: calc(-100% - var(--pf-global--spacer--xs));
5460
- --pf-c-date-picker__helper-text--MarginTop: var(--pf-global--spacer--xs);
5461
- --pf-c-date-picker__helper-text--FontSize: var(--pf-global--FontSize--sm);
5462
- --pf-c-date-picker__helper-text--Color: var(--pf-global--Color--100);
5463
- --pf-c-date-picker__helper-text--m-error--Color: var(--pf-global--danger-color--100);
5464
- --pf-c-date-picker__input--c-form-control--Width: calc(var(--pf-c-date-picker__input--c-form-control--width-chars) * 1ch + var(--pf-c-date-picker__input--c-form-control--width-base));
5465
- --pf-c-date-picker__input--c-form-control--width-base: calc(var(--pf-global--spacer--xl) + var(--pf-global--spacer--sm));
5466
- --pf-c-date-picker__input--c-form-control--width-chars: 10;
5467
- --pf-c-date-picker__calendar--BackgroundColor: var(--pf-global--BackgroundColor--light-100);
5468
- --pf-c-date-picker__calendar--BoxShadow: var(--pf-global--BoxShadow--md);
5469
- --pf-c-date-picker__calendar--ZIndex: var(--pf-global--ZIndex--sm);
5470
- --pf-c-date-picker__calendar--Top: calc(100% + var(--pf-global--spacer--xs));
5471
- --pf-c-date-picker__calendar--Right: auto;
5472
- --pf-c-date-picker__calendar--Left: 0;
5473
- --pf-c-date-picker__calendar--m-align-right--Right: 0;
5474
- --pf-c-date-picker__calendar--m-align-right--Left: auto;
5475
- position: relative;
5476
- display: inline-block;
5477
- }
5478
-
5479
- .pf-c-date-picker__helper-text {
5480
- margin-top: var(--pf-c-date-picker__helper-text--MarginTop);
5481
- font-size: var(--pf-c-date-picker__helper-text--FontSize);
5482
- color: var(--pf-c-date-picker__helper-text--Color);
5483
- }
5484
-
5485
- .pf-c-date-picker__helper-text.pf-m-error {
5486
- --pf-c-date-picker__helper-text--Color: var(--pf-c-date-picker__helper-text--m-error--Color);
5487
- }
5488
-
5489
- .pf-c-date-picker__input .pf-c-form-control {
5490
- width: var(--pf-c-date-picker__input--c-form-control--Width);
5491
- }
5492
-
5493
- .pf-c-date-picker__calendar {
5494
- position: absolute;
5495
- top: var(--pf-c-date-picker__calendar--Top);
5496
- right: var(--pf-c-date-picker__calendar--Right);
5497
- left: var(--pf-c-date-picker__calendar--Left);
5498
- z-index: var(--pf-c-date-picker__calendar--ZIndex);
5499
- background-color: var(--pf-c-date-picker__calendar--BackgroundColor);
5500
- box-shadow: var(--pf-c-date-picker__calendar--BoxShadow);
5501
- }
5502
-
5503
- .pf-c-date-picker__calendar.pf-m-align-right {
5504
- --pf-c-date-picker__calendar--Right: var(--pf-c-date-picker__calendar--m-align-right--Right);
5505
- --pf-c-date-picker__calendar--Left: var(--pf-c-date-picker__calendar--m-align-right--Left);
5506
- }
5507
-
5508
- .pf-c-date-picker.pf-m-top .pf-c-date-picker__calendar {
5509
- --pf-c-date-picker__calendar--Top: var(--pf-c-date-picker--m-top__calendar--Top);
5510
- transform: translateY(var(--pf-c-date-picker--m-top__calendar--TranslateY));
5511
- }
5512
-
5513
- :where(.pf-theme-dark) .pf-c-date-picker {
5514
- --pf-c-date-picker__calendar--BackgroundColor: var(--pf-global--BackgroundColor--300);
5515
- --pf-c-date-picker__calendar--Top: 100%;
5516
- }
5517
-
5518
5457
  .pf-c-description-list {
5519
5458
  --pf-c-description-list--RowGap: var(--pf-global--gutter--md);
5520
5459
  --pf-c-description-list--ColumnGap: var(--pf-global--spacer--lg);
@@ -6337,6 +6276,67 @@ label.pf-c-check, .pf-c-check__label,
6337
6276
  --pf-c-divider--after--Inset: var(--pf-global--spacer--3xl);
6338
6277
  }
6339
6278
  }
6279
+ .pf-c-date-picker {
6280
+ --pf-c-date-picker--m-top__calendar--Top: 0;
6281
+ --pf-c-date-picker--m-top__calendar--TranslateY: calc(-100% - var(--pf-global--spacer--xs));
6282
+ --pf-c-date-picker__helper-text--MarginTop: var(--pf-global--spacer--xs);
6283
+ --pf-c-date-picker__helper-text--FontSize: var(--pf-global--FontSize--sm);
6284
+ --pf-c-date-picker__helper-text--Color: var(--pf-global--Color--100);
6285
+ --pf-c-date-picker__helper-text--m-error--Color: var(--pf-global--danger-color--100);
6286
+ --pf-c-date-picker__input--c-form-control--Width: calc(var(--pf-c-date-picker__input--c-form-control--width-chars) * 1ch + var(--pf-c-date-picker__input--c-form-control--width-base));
6287
+ --pf-c-date-picker__input--c-form-control--width-base: calc(var(--pf-global--spacer--xl) + var(--pf-global--spacer--sm));
6288
+ --pf-c-date-picker__input--c-form-control--width-chars: 10;
6289
+ --pf-c-date-picker__calendar--BackgroundColor: var(--pf-global--BackgroundColor--light-100);
6290
+ --pf-c-date-picker__calendar--BoxShadow: var(--pf-global--BoxShadow--md);
6291
+ --pf-c-date-picker__calendar--ZIndex: var(--pf-global--ZIndex--sm);
6292
+ --pf-c-date-picker__calendar--Top: calc(100% + var(--pf-global--spacer--xs));
6293
+ --pf-c-date-picker__calendar--Right: auto;
6294
+ --pf-c-date-picker__calendar--Left: 0;
6295
+ --pf-c-date-picker__calendar--m-align-right--Right: 0;
6296
+ --pf-c-date-picker__calendar--m-align-right--Left: auto;
6297
+ position: relative;
6298
+ display: inline-block;
6299
+ }
6300
+
6301
+ .pf-c-date-picker__helper-text {
6302
+ margin-top: var(--pf-c-date-picker__helper-text--MarginTop);
6303
+ font-size: var(--pf-c-date-picker__helper-text--FontSize);
6304
+ color: var(--pf-c-date-picker__helper-text--Color);
6305
+ }
6306
+
6307
+ .pf-c-date-picker__helper-text.pf-m-error {
6308
+ --pf-c-date-picker__helper-text--Color: var(--pf-c-date-picker__helper-text--m-error--Color);
6309
+ }
6310
+
6311
+ .pf-c-date-picker__input .pf-c-form-control {
6312
+ width: var(--pf-c-date-picker__input--c-form-control--Width);
6313
+ }
6314
+
6315
+ .pf-c-date-picker__calendar {
6316
+ position: absolute;
6317
+ top: var(--pf-c-date-picker__calendar--Top);
6318
+ right: var(--pf-c-date-picker__calendar--Right);
6319
+ left: var(--pf-c-date-picker__calendar--Left);
6320
+ z-index: var(--pf-c-date-picker__calendar--ZIndex);
6321
+ background-color: var(--pf-c-date-picker__calendar--BackgroundColor);
6322
+ box-shadow: var(--pf-c-date-picker__calendar--BoxShadow);
6323
+ }
6324
+
6325
+ .pf-c-date-picker__calendar.pf-m-align-right {
6326
+ --pf-c-date-picker__calendar--Right: var(--pf-c-date-picker__calendar--m-align-right--Right);
6327
+ --pf-c-date-picker__calendar--Left: var(--pf-c-date-picker__calendar--m-align-right--Left);
6328
+ }
6329
+
6330
+ .pf-c-date-picker.pf-m-top .pf-c-date-picker__calendar {
6331
+ --pf-c-date-picker__calendar--Top: var(--pf-c-date-picker--m-top__calendar--Top);
6332
+ transform: translateY(var(--pf-c-date-picker--m-top__calendar--TranslateY));
6333
+ }
6334
+
6335
+ :where(.pf-theme-dark) .pf-c-date-picker {
6336
+ --pf-c-date-picker__calendar--BackgroundColor: var(--pf-global--BackgroundColor--300);
6337
+ --pf-c-date-picker__calendar--Top: 100%;
6338
+ }
6339
+
6340
6340
  .pf-c-drawer {
6341
6341
  --pf-c-drawer__section--BackgroundColor: var(--pf-global--BackgroundColor--100);
6342
6342
  --pf-c-drawer__section--m-light-200--BackgroundColor: var(--pf-global--BackgroundColor--200);
@@ -14974,10 +14974,11 @@
14974
14974
  LoginFooter.displayName = 'LoginFooter';
14975
14975
 
14976
14976
  const LoginMainHeader = (_a) => {
14977
- var { children = null, className = '', title = '', subtitle = '' } = _a, props = __rest$1(_a, ["children", "className", "title", "subtitle"]);
14977
+ var { children = null, className = '', title = '', subtitle = '', headerUtilities = null } = _a, props = __rest$1(_a, ["children", "className", "title", "subtitle", "headerUtilities"]);
14978
14978
  return (React__namespace.createElement("header", Object.assign({ className: css(styles$B.loginMainHeader, className) }, props),
14979
14979
  title && (React__namespace.createElement(Title, { headingLevel: "h2", size: exports.TitleSizes['3xl'] }, title)),
14980
14980
  subtitle && React__namespace.createElement("p", { className: css(styles$B.loginMainHeaderDesc) }, subtitle),
14981
+ headerUtilities && React__namespace.createElement("div", { className: css(styles$B.loginMainHeaderUtilities) }, headerUtilities),
14981
14982
  children));
14982
14983
  };
14983
14984
  LoginMainHeader.displayName = 'LoginMainHeader';
@@ -15000,7 +15001,7 @@
15000
15001
  LoginMainFooter.displayName = 'LoginMainFooter';
15001
15002
 
15002
15003
  const LoginPage = (_a) => {
15003
- var { children = null, className = '', brandImgSrc = '', brandImgAlt = '', backgroundImgSrc = '', backgroundImgAlt = '', footerListItems = null, textContent = '', footerListVariants, loginTitle, loginSubtitle, signUpForAccountMessage = null, forgotCredentials = null, socialMediaLoginContent = null } = _a, props = __rest$1(_a, ["children", "className", "brandImgSrc", "brandImgAlt", "backgroundImgSrc", "backgroundImgAlt", "footerListItems", "textContent", "footerListVariants", "loginTitle", "loginSubtitle", "signUpForAccountMessage", "forgotCredentials", "socialMediaLoginContent"]);
15004
+ var { children = null, className = '', brandImgSrc = '', brandImgAlt = '', backgroundImgSrc = '', backgroundImgAlt = '', footerListItems = null, textContent = '', footerListVariants, loginTitle, loginSubtitle, headerUtilities, signUpForAccountMessage = null, forgotCredentials = null, socialMediaLoginContent = null } = _a, props = __rest$1(_a, ["children", "className", "brandImgSrc", "brandImgAlt", "backgroundImgSrc", "backgroundImgAlt", "footerListItems", "textContent", "footerListVariants", "loginTitle", "loginSubtitle", "headerUtilities", "signUpForAccountMessage", "forgotCredentials", "socialMediaLoginContent"]);
15004
15005
  const HeaderBrand = (React__namespace.createElement(React__namespace.Fragment, null,
15005
15006
  React__namespace.createElement(Brand, { src: brandImgSrc, alt: brandImgAlt })));
15006
15007
  const Header = React__namespace.createElement(LoginHeader, { headerBrand: HeaderBrand });
@@ -15010,7 +15011,7 @@
15010
15011
  return (React__namespace.createElement(React__namespace.Fragment, null,
15011
15012
  backgroundImgSrc && React__namespace.createElement(BackgroundImage, { src: backgroundImgSrc, alt: backgroundImgAlt }),
15012
15013
  React__namespace.createElement(Login, Object.assign({ header: Header, footer: Footer, className: css(className) }, props),
15013
- React__namespace.createElement(LoginMainHeader, { title: loginTitle, subtitle: loginSubtitle }),
15014
+ React__namespace.createElement(LoginMainHeader, { title: loginTitle, subtitle: loginSubtitle, headerUtilities: headerUtilities }),
15014
15015
  React__namespace.createElement(LoginMainBody, null, children),
15015
15016
  (socialMediaLoginContent || forgotCredentials || signUpForAccountMessage) && (React__namespace.createElement(LoginMainFooter, { socialMediaLoginContent: socialMediaLoginContent, forgotCredentials: forgotCredentials, signUpForAccountMessage: signUpForAccountMessage })))));
15016
15017
  };