@patternfly/quickstarts 2.4.2 → 5.0.0-prerelease.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 (207) hide show
  1. package/README.md +32 -23
  2. package/dist/ConsoleInternal/components/markdown-view.d.ts +19 -19
  3. package/dist/ConsoleInternal/components/utils/camel-case-wrap.d.ts +6 -6
  4. package/dist/ConsoleInternal/components/utils/index.d.ts +3 -3
  5. package/dist/ConsoleInternal/components/utils/router.d.ts +9 -9
  6. package/dist/ConsoleInternal/components/utils/status-box.d.ts +20 -20
  7. package/dist/ConsoleInternal/module/k8s/types.d.ts +42 -42
  8. package/dist/ConsoleShared/index.d.ts +1 -1
  9. package/dist/ConsoleShared/src/components/index.d.ts +7 -7
  10. package/dist/ConsoleShared/src/components/markdown-extensions/MarkdownCopyClipboard.d.ts +13 -13
  11. package/dist/ConsoleShared/src/components/markdown-extensions/accordion-extension.d.ts +7 -7
  12. package/dist/ConsoleShared/src/components/markdown-extensions/accordion-render-extension.d.ts +6 -6
  13. package/dist/ConsoleShared/src/components/markdown-extensions/admonition-extension.d.ts +7 -7
  14. package/dist/ConsoleShared/src/components/markdown-extensions/code-extension.d.ts +7 -7
  15. package/dist/ConsoleShared/src/components/markdown-extensions/const.d.ts +5 -5
  16. package/dist/ConsoleShared/src/components/markdown-extensions/index.d.ts +7 -7
  17. package/dist/ConsoleShared/src/components/markdown-extensions/inline-clipboard-extension.d.ts +7 -7
  18. package/dist/ConsoleShared/src/components/markdown-extensions/multiline-clipboard-extension.d.ts +7 -7
  19. package/dist/ConsoleShared/src/components/markdown-extensions/utils.d.ts +1 -1
  20. package/dist/ConsoleShared/src/components/markdown-highlight-extension/MarkdownHighlightExtension.d.ts +7 -7
  21. package/dist/ConsoleShared/src/components/markdown-highlight-extension/highlight-consts.d.ts +4 -4
  22. package/dist/ConsoleShared/src/components/markdown-highlight-extension/index.d.ts +1 -1
  23. package/dist/ConsoleShared/src/components/modal/Modal.d.ts +9 -9
  24. package/dist/ConsoleShared/src/components/modal/index.d.ts +1 -1
  25. package/dist/ConsoleShared/src/components/popper/Portal.d.ts +8 -7
  26. package/dist/ConsoleShared/src/components/popper/SimplePopper.d.ts +6 -3
  27. package/dist/ConsoleShared/src/components/popper/index.d.ts +2 -2
  28. package/dist/ConsoleShared/src/components/spotlight/InteractiveSpotlight.d.ts +7 -7
  29. package/dist/ConsoleShared/src/components/spotlight/Spotlight.d.ts +7 -7
  30. package/dist/ConsoleShared/src/components/spotlight/StaticSpotlight.d.ts +7 -7
  31. package/dist/ConsoleShared/src/components/spotlight/index.d.ts +1 -1
  32. package/dist/ConsoleShared/src/components/status/GenericStatus.d.ts +12 -11
  33. package/dist/ConsoleShared/src/components/status/NotStartedIcon.d.ts +3 -2
  34. package/dist/ConsoleShared/src/components/status/PopoverStatus.d.ts +13 -12
  35. package/dist/ConsoleShared/src/components/status/Status.d.ts +11 -11
  36. package/dist/ConsoleShared/src/components/status/StatusIconAndText.d.ts +8 -8
  37. package/dist/ConsoleShared/src/components/status/icons.d.ts +9 -9
  38. package/dist/ConsoleShared/src/components/status/index.d.ts +1 -1
  39. package/dist/ConsoleShared/src/components/status/statuses.d.ts +5 -5
  40. package/dist/ConsoleShared/src/components/status/types.d.ts +9 -7
  41. package/dist/ConsoleShared/src/components/utils/FallbackImg.d.ts +9 -9
  42. package/dist/ConsoleShared/src/components/utils/index.d.ts +1 -1
  43. package/dist/ConsoleShared/src/constants/index.d.ts +1 -1
  44. package/dist/ConsoleShared/src/constants/ui.d.ts +1 -1
  45. package/dist/ConsoleShared/src/hooks/index.d.ts +6 -6
  46. package/dist/ConsoleShared/src/hooks/scroll.d.ts +8 -8
  47. package/dist/ConsoleShared/src/hooks/useBoundingClientRect.d.ts +3 -1
  48. package/dist/ConsoleShared/src/hooks/useEventListener.d.ts +1 -1
  49. package/dist/ConsoleShared/src/hooks/useForceRender.d.ts +4 -4
  50. package/dist/ConsoleShared/src/hooks/useResizeObserver.d.ts +1 -1
  51. package/dist/ConsoleShared/src/hooks/useScrollShadows.d.ts +7 -7
  52. package/dist/ConsoleShared/src/index.d.ts +4 -4
  53. package/dist/ConsoleShared/src/utils/index.d.ts +1 -1
  54. package/dist/ConsoleShared/src/utils/useCombineRefs.d.ts +2 -2
  55. package/dist/HelpTopicDrawer.d.ts +33 -32
  56. package/dist/HelpTopicPanelContent.d.ts +11 -11
  57. package/dist/QuickStartCatalogPage.d.ts +14 -14
  58. package/dist/QuickStartCloseModal.d.ts +8 -8
  59. package/dist/QuickStartController.d.ts +10 -10
  60. package/dist/QuickStartDrawer.d.ts +62 -62
  61. package/dist/QuickStartMarkdownView.d.ts +9 -9
  62. package/dist/QuickStartPanelContent.d.ts +15 -15
  63. package/dist/catalog/Catalog/QuickStartCatalogHeader.d.ts +6 -6
  64. package/dist/catalog/Catalog/QuickStartCatalogSection.d.ts +5 -5
  65. package/dist/catalog/Catalog/QuickStartCatalogToolbar.d.ts +5 -5
  66. package/dist/catalog/Catalog/index.d.ts +3 -3
  67. package/dist/catalog/QuickStartCatalog.d.ts +8 -8
  68. package/dist/catalog/QuickStartTile.d.ts +11 -11
  69. package/dist/catalog/QuickStartTileDescription.d.ts +8 -8
  70. package/dist/catalog/QuickStartTileFooter.d.ts +8 -8
  71. package/dist/catalog/QuickStartTileFooterExternal.d.ts +8 -8
  72. package/dist/catalog/QuickStartTileHeader.d.ts +12 -12
  73. package/dist/catalog/Toolbar/QuickStartCatalogFilter.d.ts +10 -10
  74. package/dist/catalog/Toolbar/QuickStartCatalogFilterItems.d.ts +31 -31
  75. package/dist/catalog/index.d.ts +9 -9
  76. package/dist/controller/QuickStartConclusion.d.ts +12 -12
  77. package/dist/controller/QuickStartContent.d.ts +14 -14
  78. package/dist/controller/QuickStartFooter.d.ts +14 -14
  79. package/dist/controller/QuickStartIntroduction.d.ts +12 -12
  80. package/dist/controller/QuickStartTaskHeader.d.ts +15 -15
  81. package/dist/controller/QuickStartTaskHeaderList.d.ts +10 -10
  82. package/dist/controller/QuickStartTaskReview.d.ts +10 -10
  83. package/dist/controller/QuickStartTasks.d.ts +12 -12
  84. package/dist/data/mocks/json/explore-pipeline-quickstart.d.ts +2 -2
  85. package/dist/data/mocks/json/explore-serverless-quickstart.d.ts +2 -2
  86. package/dist/data/mocks/json/monitor-sampleapp-quickstart.d.ts +2 -2
  87. package/dist/data/mocks/json/tour-icons.d.ts +2 -2
  88. package/dist/data/quick-start-test-data.d.ts +2 -2
  89. package/dist/data/test-utils.d.ts +8 -7
  90. package/dist/index.d.ts +16 -16
  91. package/dist/index.es.js +2346 -2391
  92. package/dist/index.es.js.map +1 -1
  93. package/dist/index.js +2346 -2390
  94. package/dist/index.js.map +1 -1
  95. package/dist/patternfly-docs/quick-starts/examples/Basic.jsx +1 -1
  96. package/dist/patternfly-docs/quick-starts/examples/HelpTopic.jsx +2 -4
  97. package/dist/patternfly-global.css +752 -1110
  98. package/dist/patternfly-nested.css +8784 -9605
  99. package/dist/quickstarts-base.css +188 -188
  100. package/dist/quickstarts-full.es.js +19627 -10887
  101. package/dist/quickstarts-full.es.js.map +1 -1
  102. package/dist/quickstarts-standalone.css +216 -219
  103. package/dist/quickstarts-standalone.min.css +4 -4
  104. package/dist/quickstarts-vendor.css +71 -71
  105. package/dist/quickstarts.css +259 -259
  106. package/dist/quickstarts.min.css +1 -1
  107. package/dist/styles/patternfly-global-entry.d.ts +1 -1
  108. package/dist/styles/patternfly-nested-entry.d.ts +1 -1
  109. package/dist/styles/quickstarts-standalone-entry.d.ts +1 -1
  110. package/dist/styles/vendor-entry.d.ts +1 -1
  111. package/dist/utils/PluralResolver.d.ts +16 -10
  112. package/dist/utils/asciidoc-procedure-parser.d.ts +12 -12
  113. package/dist/utils/const.d.ts +6 -6
  114. package/dist/utils/help-topic-context.d.ts +23 -23
  115. package/dist/utils/help-topic-types.d.ts +13 -13
  116. package/dist/utils/quick-start-context.d.ts +81 -81
  117. package/dist/utils/quick-start-types.d.ts +60 -58
  118. package/dist/utils/quick-start-utils.d.ts +10 -10
  119. package/dist/utils/useLocalStorage.d.ts +1 -1
  120. package/package.json +17 -13
  121. package/src/ConsoleInternal/components/_icon-and-text.scss +2 -2
  122. package/src/ConsoleInternal/components/catalog/_catalog.scss +20 -20
  123. package/src/ConsoleInternal/components/markdown-view.tsx +23 -52
  124. package/src/ConsoleInternal/components/utils/_status-box.scss +1 -1
  125. package/src/ConsoleInternal/components/utils/camel-case-wrap.tsx +3 -3
  126. package/src/ConsoleInternal/components/utils/router.ts +0 -2
  127. package/src/ConsoleInternal/components/utils/status-box.tsx +8 -46
  128. package/src/ConsoleInternal/module/k8s/types.ts +6 -6
  129. package/src/ConsoleShared/src/components/layout/PageLayout.scss +10 -10
  130. package/src/ConsoleShared/src/components/markdown-extensions/MarkdownCopyClipboard.tsx +13 -11
  131. package/src/ConsoleShared/src/components/markdown-extensions/accordion-extension.tsx +3 -4
  132. package/src/ConsoleShared/src/components/markdown-extensions/accordion-render-extension.tsx +7 -7
  133. package/src/ConsoleShared/src/components/markdown-extensions/admonition-extension.tsx +4 -4
  134. package/src/ConsoleShared/src/components/markdown-extensions/code-extension.tsx +1 -3
  135. package/src/ConsoleShared/src/components/markdown-extensions/inline-clipboard-extension.tsx +5 -5
  136. package/src/ConsoleShared/src/components/markdown-extensions/multiline-clipboard-extension.tsx +8 -8
  137. package/src/ConsoleShared/src/components/markdown-extensions/showdown-extension.scss +5 -5
  138. package/src/ConsoleShared/src/components/markdown-extensions/utils.ts +1 -3
  139. package/src/ConsoleShared/src/components/markdown-highlight-extension/MarkdownHighlightExtension.tsx +7 -6
  140. package/src/ConsoleShared/src/components/popper/Portal.tsx +6 -4
  141. package/src/ConsoleShared/src/components/popper/SimplePopper.tsx +7 -5
  142. package/src/ConsoleShared/src/components/spotlight/InteractiveSpotlight.tsx +2 -2
  143. package/src/ConsoleShared/src/components/spotlight/Spotlight.tsx +2 -2
  144. package/src/ConsoleShared/src/components/spotlight/StaticSpotlight.tsx +3 -3
  145. package/src/ConsoleShared/src/components/spotlight/spotlight.scss +4 -4
  146. package/src/ConsoleShared/src/components/status/GenericStatus.tsx +1 -0
  147. package/src/ConsoleShared/src/components/status/PopoverStatus.tsx +20 -23
  148. package/src/ConsoleShared/src/components/status/Status.tsx +2 -2
  149. package/src/ConsoleShared/src/components/status/icons.tsx +17 -55
  150. package/src/ConsoleShared/src/components/status/statuses.tsx +1 -17
  151. package/src/ConsoleShared/src/components/status/types.ts +3 -2
  152. package/src/ConsoleShared/src/components/utils/FallbackImg.tsx +2 -2
  153. package/src/ConsoleShared/src/hooks/useResizeObserver.ts +5 -6
  154. package/src/ConsoleShared/src/utils/useCombineRefs.ts +2 -3
  155. package/src/HelpTopicDrawer.tsx +6 -14
  156. package/src/HelpTopicPanelContent.tsx +57 -49
  157. package/src/QuickStartCatalogPage.tsx +19 -14
  158. package/src/QuickStartCloseModal.tsx +2 -2
  159. package/src/QuickStartController.tsx +3 -5
  160. package/src/QuickStartDrawer.scss +1 -1
  161. package/src/QuickStartDrawer.tsx +2 -2
  162. package/src/QuickStartMarkdownView.tsx +4 -4
  163. package/src/QuickStartPanelContent.scss +8 -8
  164. package/src/QuickStartPanelContent.tsx +8 -9
  165. package/src/catalog/Catalog/QuickStartCatalogHeader.tsx +2 -2
  166. package/src/catalog/Catalog/QuickStartCatalogSection.tsx +2 -2
  167. package/src/catalog/Catalog/QuickStartCatalogToolbar.tsx +2 -2
  168. package/src/catalog/QuickStartCatalog.scss +1 -1
  169. package/src/catalog/QuickStartCatalog.tsx +2 -2
  170. package/src/catalog/QuickStartTile.tsx +20 -15
  171. package/src/catalog/QuickStartTileDescription.scss +4 -4
  172. package/src/catalog/QuickStartTileDescription.tsx +2 -2
  173. package/src/catalog/QuickStartTileFooter.tsx +2 -2
  174. package/src/catalog/QuickStartTileFooterExternal.tsx +2 -2
  175. package/src/catalog/QuickStartTileHeader.scss +5 -5
  176. package/src/catalog/QuickStartTileHeader.tsx +2 -2
  177. package/src/catalog/Toolbar/QuickStartCatalogFilter.scss +9 -9
  178. package/src/catalog/Toolbar/QuickStartCatalogFilter.tsx +1 -3
  179. package/src/catalog/Toolbar/QuickStartCatalogFilterItems.tsx +49 -30
  180. package/src/controller/QuickStartConclusion.tsx +3 -3
  181. package/src/controller/QuickStartContent.scss +2 -2
  182. package/src/controller/QuickStartContent.tsx +2 -2
  183. package/src/controller/QuickStartFooter.scss +3 -3
  184. package/src/controller/QuickStartFooter.tsx +6 -10
  185. package/src/controller/QuickStartIntroduction.scss +7 -7
  186. package/src/controller/QuickStartIntroduction.tsx +5 -7
  187. package/src/controller/QuickStartTaskHeader.scss +15 -15
  188. package/src/controller/QuickStartTaskHeader.tsx +14 -12
  189. package/src/controller/QuickStartTaskHeaderList.scss +1 -1
  190. package/src/controller/QuickStartTaskHeaderList.tsx +3 -5
  191. package/src/controller/QuickStartTaskReview.scss +7 -7
  192. package/src/controller/QuickStartTaskReview.tsx +2 -2
  193. package/src/controller/QuickStartTasks.scss +13 -13
  194. package/src/controller/QuickStartTasks.tsx +2 -2
  195. package/src/controller/__tests__/QuickStartTaskHeader.spec.tsx +4 -17
  196. package/src/styles/_base.scss +5 -5
  197. package/src/styles/_dark-custom-override.scss +28 -28
  198. package/src/styles/legacy-bootstrap/_variables.scss +7 -7
  199. package/src/styles/patternfly-global.scss +6 -6
  200. package/src/styles/patternfly-nested.scss +1 -1
  201. package/src/utils/PluralResolver.ts +29 -23
  202. package/src/utils/asciidoc-procedure-parser.ts +2 -4
  203. package/src/utils/help-topic-context.tsx +3 -5
  204. package/src/utils/help-topic-types.ts +4 -4
  205. package/src/utils/quick-start-context.tsx +8 -12
  206. package/src/utils/quick-start-types.ts +15 -14
  207. package/src/utils/quick-start-utils.ts +2 -6
@@ -5,16 +5,16 @@
5
5
  }
6
6
 
7
7
  li {
8
- &.pf-c-wizard__nav-item {
8
+ &.pf-v5-c-wizard__nav-item {
9
9
  list-style-type: none;
10
10
  display: flex;
11
11
  flex-wrap: wrap;
12
12
  align-items: center;
13
- margin-bottom: var(--pf-global--spacer--xs);
13
+ margin-bottom: var(--pf-v5-global--spacer--xs);
14
14
  }
15
15
  }
16
16
  .pfext-quick-start-task__content {
17
- margin-bottom: var(--pf-global--spacer--md);
17
+ margin-bottom: var(--pf-v5-global--spacer--md);
18
18
  }
19
19
  // Custom styles on PF React List rendered in custom react renderer
20
20
  .task-pflist {
@@ -23,13 +23,13 @@
23
23
  margin-bottom: 6px;
24
24
  }
25
25
  &-subtitle {
26
- color: var(--pf-global--Color--200);
26
+ color: var(--pf-v5-global--Color--200);
27
27
  font-size: 16px;
28
28
  }
29
29
  &-list {
30
30
  font-size: 16px;
31
31
  &--prereq {
32
- padding-left: var(--pf-global--spacer--lg);
32
+ padding-left: var(--pf-v5-global--spacer--lg);
33
33
  li + li {
34
34
  margin-top: 4px;
35
35
  }
@@ -58,25 +58,25 @@
58
58
  }
59
59
  }
60
60
  &__content {
61
- .pf-c-alert {
61
+ .pf-v5-c-alert {
62
62
  // add margins to match design
63
- margin: var(--pf-global--spacer--md) 0;
63
+ margin: var(--pf-v5-global--spacer--md) 0;
64
64
  }
65
- .pf-c-alert__title {
65
+ .pf-v5-c-alert__title {
66
66
  // remove margins from markdown css
67
67
  margin-top: 0;
68
68
  margin-bottom: 0;
69
69
  // lift PF style specificity to override markdown css
70
- font-weight: var(--pf-c-alert__title--FontWeight);
70
+ font-weight: var(--pf-v5-c-alert__title--FontWeight);
71
71
  font-family: inherit;
72
72
  line-height: inherit;
73
- color: var(--pf-c-alert__title--Color);
73
+ color: var(--pf-v5-c-alert__title--Color);
74
74
  word-break: break-word;
75
75
  }
76
76
  .task-pflist-list__item__content__note {
77
- background-color: var(--pf-global--palette--blue-50);
78
- border-color: var(--pf-global--active-color--200);
79
- margin: var(--pf-global--spacer--md) 0;
77
+ background-color: var(--pf-v5-global--palette--blue-50);
78
+ border-color: var(--pf-v5-global--active-color--200);
79
+ margin: var(--pf-v5-global--spacer--md) 0;
80
80
  &__body {
81
81
  font-size: 14px;
82
82
  }
@@ -8,13 +8,13 @@ import QuickStartTaskReview from './QuickStartTaskReview';
8
8
 
9
9
  import './QuickStartTasks.scss';
10
10
 
11
- type QuickStartTaskProps = {
11
+ interface QuickStartTaskProps {
12
12
  tasks: QuickStartTask[];
13
13
  taskNumber: number;
14
14
  allTaskStatuses: QuickStartTaskStatus[];
15
15
  onTaskReview: (reviewState: QuickStartTaskStatus) => void;
16
16
  onTaskSelect: (activeQuickStartId) => void;
17
- };
17
+ }
18
18
 
19
19
  const QuickStartTasks: React.FC<QuickStartTaskProps> = ({
20
20
  tasks,
@@ -23,28 +23,15 @@ describe('QuickStartTaskHeader', () => {
23
23
  });
24
24
 
25
25
  it('should render subtitle for active task', () => {
26
+ expect(wrapper.find(WizardNavItem).dive().find(Title).length).toBe(1);
26
27
  expect(
27
- wrapper
28
- .find(WizardNavItem)
29
- .dive()
30
- .find(Title).length,
31
- ).toBe(1);
32
- expect(
33
- wrapper
34
- .find(WizardNavItem)
35
- .dive()
36
- .find('[data-test-id="quick-start-task-subtitle"]')
37
- .props().children,
28
+ wrapper.find(WizardNavItem).dive().find('[data-test-id="quick-start-task-subtitle"]').props()
29
+ .children,
38
30
  ).toEqual([' ', props.subtitle]);
39
31
  });
40
32
  it('should not render subtitle if task is not active', () => {
41
33
  wrapper = shallow(<QuickStartTaskHeader {...props} isActiveTask={false} />);
42
- expect(
43
- wrapper
44
- .find(WizardNavItem)
45
- .dive()
46
- .find(Title).length,
47
- ).toBe(1);
34
+ expect(wrapper.find(WizardNavItem).dive().find(Title).length).toBe(1);
48
35
  expect(
49
36
  wrapper
50
37
  .find(WizardNavItem)
@@ -6,7 +6,7 @@
6
6
 
7
7
  // match pf4 styling / table col head styling
8
8
  dt {
9
- font-weight: var(--pf-global--FontWeight--bold); }
9
+ font-weight: var(--pf-v5-global--FontWeight--bold); }
10
10
 
11
11
  dd {
12
12
  margin-bottom: 20px; }
@@ -28,8 +28,8 @@
28
28
  margin-right: 7px;
29
29
  }
30
30
 
31
- .pf-c-list {
32
- --pf-c-list--PaddingLeft: 20px;
31
+ .pf-v5-c-list {
32
+ --pf-v5-c-list--PaddingLeft: 20px;
33
33
  }
34
34
  }
35
35
 
@@ -40,8 +40,8 @@
40
40
  .pfext-page-layout__content,
41
41
  // catalog item prereq popover
42
42
  .pfext-popover__base {
43
- --pf-global--FontSize--md: 14px;
44
- --pf-global--FontSize--sm: 13px;
43
+ --pf-v5-global--FontSize--md: 14px;
44
+ --pf-v5-global--FontSize--sm: 13px;
45
45
 
46
46
  ul {
47
47
  list-style-type: disc;
@@ -1,4 +1,4 @@
1
- .pf-theme-dark {
1
+ .pf-v5-theme-dark {
2
2
  .pfext-catalog-item-icon__img--large {
3
3
  // Not perfect, but gives a better result for colors than just inverting
4
4
  // by inverts to switch b/w, then rotates to get colors approximately back
@@ -7,56 +7,56 @@
7
7
 
8
8
  // duration color was gray on white but on the blue header, only white text works
9
9
  .pfext-quick-start-panel-content__header--blue-white .pfext-quick-start-panel-content__duration {
10
- color: var(--pf-global--Color--light-100);
10
+ color: var(--pf-v5-global--Color--light-100);
11
11
  }
12
12
 
13
13
  .pfext-quick-start-task-header__subtitle {
14
- color: var(--pf-global--palette--black-200) !important;
14
+ color: var(--pf-v5-global--palette--black-200) !important;
15
15
  }
16
16
 
17
17
  .pfext-quick-start-task-header__task-icon-init {
18
- background-color: var(--pf-global--primary-color--300);
18
+ background-color: var(--pf-v5-global--primary-color--300);
19
19
  }
20
20
 
21
21
  .pfext-quick-start-task-header__tryagain {
22
- color: var(--pf-global--palette--black-200) !important;
22
+ color: var(--pf-v5-global--palette--black-200) !important;
23
23
  }
24
24
 
25
- .pfext-markdown-view pre {
26
- background-color: var(--pf-global--BackgroundColor--100);
27
- border-color: var(--pf-global--BorderColor--100);
25
+ .pfext-markdown-view pre:not(.pfext-code-block__pre) {
26
+ background-color: var(--pf-v5-global--BackgroundColor--100);
27
+ border-color: var(--pf-v5-global--BorderColor--100);
28
28
  }
29
29
 
30
30
  .pfext-markdown-view code {
31
- color: var(--pf-global--Color--100);
32
- background-color: var(--pf-global--palette--black-600);
31
+ color: var(--pf-v5-global--Color--100);
32
+ background-color: var(--pf-v5-global--palette--black-600);
33
33
  }
34
34
 
35
- .pfext-markdown-view .pf-c-code-block,
36
- .pfext-markdown-view .pf-c-code-block code {
37
- background-color: var(--pf-global--BackgroundColor--400);
35
+ .pfext-markdown-view .pf-v5-c-code-block,
36
+ .pfext-markdown-view .pf-v5-c-code-block code {
37
+ background-color: var(--pf-v5-global--BackgroundColor--400);
38
38
  }
39
39
 
40
- :where(.pfext-markdown-view) .pf-c-clipboard-copy.pf-m-inline {
41
- --pf-c-clipboard-copy--m-inline--BackgroundColor: var(--pf-global--BackgroundColor--400);
40
+ :where(.pfext-markdown-view) .pf-v5-c-clipboard-copy.pf-m-inline {
41
+ --pf-v5-c-clipboard-copy--m-inline--BackgroundColor: var(--pf-v5-global--BackgroundColor--400);
42
42
  }
43
43
 
44
- // Make the cards light on dark background. It would be better to use pf-c-page__main-section variable but we aren't using a page section here.
44
+ // Make the cards light on dark background. It would be better to use pf-v5-c-page__main-section variable but we aren't using a page section here.
45
45
  .pfext-page-layout__content {
46
- background-color: var(--pf-global--BackgroundColor--200);
46
+ background-color: var(--pf-v5-global--BackgroundColor--200);
47
47
  }
48
48
 
49
- .pfext-quick-start-catalog__gallery-item .pf-c-card {
50
- --pf-c-card--BackgroundColor: var(--pf-global--BackgroundColor--100);
49
+ .pfext-quick-start-catalog__gallery-item .pf-v5-c-card {
50
+ --pf-v5-c-card--BackgroundColor: var(--pf-v5-global--BackgroundColor--100);
51
51
  }
52
52
 
53
53
  // Alerts currently has the wrong background in the PF dark stylesheet. This can be removed once that is fixed.
54
- .pf-c-alert {
55
- --pf-c-alert--BackgroundColor: var(--pf-global--palette--black-700);
56
- --pf-c-alert--m-inline--BackgroundColor: var(--pf-global--palette--black-700);
57
- --pf-c-alert--m-inline--m-success--BackgroundColor: var(--pf-global--palette--black-700);
58
- --pf-c-alert--m-inline--m-danger--BackgroundColor: var(--pf-global--palette--black-700);
59
- --pf-c-alert--m-inline--m-warning--BackgroundColor: var(--pf-global--palette--black-700);
60
- --pf-c-alert--m-inline--m-info--BackgroundColor: var(--pf-global--palette--black-700);
61
- }
62
- }
54
+ .pf-v5-c-alert {
55
+ --pf-v5-c-alert--BackgroundColor: var(--pf-v5-global--palette--black-700);
56
+ --pf-v5-c-alert--m-inline--BackgroundColor: var(--pf-v5-global--palette--black-700);
57
+ --pf-v5-c-alert--m-inline--m-success--BackgroundColor: var(--pf-v5-global--palette--black-700);
58
+ --pf-v5-c-alert--m-inline--m-danger--BackgroundColor: var(--pf-v5-global--palette--black-700);
59
+ --pf-v5-c-alert--m-inline--m-warning--BackgroundColor: var(--pf-v5-global--palette--black-700);
60
+ --pf-v5-c-alert--m-inline--m-info--BackgroundColor: var(--pf-v5-global--palette--black-700);
61
+ }
62
+ }
@@ -1,14 +1,14 @@
1
1
  // PF4 overrides
2
2
  $font-size-base: 14px;
3
- $font-size-h1: var(--pf-global--FontSize--2xl);
3
+ $font-size-h1: var(--pf-v5-global--FontSize--2xl);
4
4
  $font-size-h2: 20px; // must be literal value because of calculation in patternfly/dist/sass/patternfly/_list-view.scss
5
- $font-size-h3: var(--pf-global--FontSize--lg);
6
- $font-size-h4: var(--pf-global--FontSize--md);
7
- $font-size-h5: var(--pf-global--FontSize--md);
8
- $font-size-h6: var(--pf-global--FontSize--md);
5
+ $font-size-h3: var(--pf-v5-global--FontSize--lg);
6
+ $font-size-h4: var(--pf-v5-global--FontSize--md);
7
+ $font-size-h5: var(--pf-v5-global--FontSize--md);
8
+ $font-size-h6: var(--pf-v5-global--FontSize--md);
9
9
  $grid-gutter-width: 30px;
10
- $headings-font-family: var(--pf-global--FontFamily--heading--sans-serif);
11
- $headings-font-weight: var(--pf-global--FontWeight--normal);
10
+ $headings-font-family: var(--pf-v5-global--FontFamily--heading--sans-serif);
11
+ $headings-font-weight: var(--pf-v5-global--FontWeight--normal);
12
12
 
13
13
  // PF3 variables
14
14
  $color-pf-black: #030303 !default;
@@ -5,12 +5,12 @@
5
5
  // TODO: Investigate if we can remove and/or nest these within patternfly-nested.css
6
6
  // what do we really need to expose globally?
7
7
  // here are the classes that exist outside the scope of .pfext-quick-start__base:
8
- // class="pf-c-popover pfext-quick-start__base pf-m-right"
9
- // class="pf-c-modal-box pfext-modal pfext-quick-start-drawer__modal pfext-quick-start__base pf-m-sm"
10
- // class="pf-c-backdrop__open"
11
- // class="pf-c-backdrop"
12
- // class="pf-l-bullseye"
13
- // class="pf-c-tooltip pf-m-top pfext-quick-start__base"
8
+ // class="pf-v5-c-popover pfext-quick-start__base pf-m-right"
9
+ // class="pf-v5-c-modal-box pfext-modal pfext-quick-start-drawer__modal pfext-quick-start__base pf-m-sm"
10
+ // class="pf-v5-c-backdrop__open"
11
+ // class="pf-v5-c-backdrop"
12
+ // class="pf-v5-l-bullseye"
13
+ // class="pf-v5-c-tooltip pf-m-top pfext-quick-start__base"
14
14
 
15
15
  @import '@patternfly/patternfly/sass-utilities/all';
16
16
  // gets added globally to :root
@@ -5,7 +5,7 @@
5
5
  @import '@patternfly/patternfly/sass-utilities/all';
6
6
 
7
7
  .pfext-quick-start__base {
8
- $pf-global--enable-reset: false;
8
+ $pf-v5-global--enable-reset: false;
9
9
  @import '@patternfly/patternfly/base/common';
10
10
  @import '@patternfly/patternfly/utilities/Accessibility/accessibility';
11
11
 
@@ -1,5 +1,4 @@
1
1
  /* eslint-disable */
2
- // @ts-nocheck
3
2
  // https://github.com/i18next/i18next/blob/master/src/PluralResolver.js
4
3
 
5
4
  const sets = [
@@ -153,16 +152,16 @@ const sets = [
153
152
  ];
154
153
 
155
154
  const _rulesPluralsTypes = {
156
- 1: function(n) {
155
+ 1: function (n) {
157
156
  return Number(n > 1);
158
157
  },
159
- 2: function(n) {
158
+ 2: function (n) {
160
159
  return Number(n != 1);
161
160
  },
162
- 3: function(n) {
161
+ 3: function (n) {
163
162
  return 0;
164
163
  },
165
- 4: function(n) {
164
+ 4: function (n) {
166
165
  return Number(
167
166
  n % 10 == 1 && n % 100 != 11
168
167
  ? 0
@@ -171,7 +170,7 @@ const _rulesPluralsTypes = {
171
170
  : 2,
172
171
  );
173
172
  },
174
- 5: function(n) {
173
+ 5: function (n) {
175
174
  return Number(
176
175
  n == 0
177
176
  ? 0
@@ -186,50 +185,50 @@ const _rulesPluralsTypes = {
186
185
  : 5,
187
186
  );
188
187
  },
189
- 6: function(n) {
188
+ 6: function (n) {
190
189
  return Number(n == 1 ? 0 : n >= 2 && n <= 4 ? 1 : 2);
191
190
  },
192
- 7: function(n) {
191
+ 7: function (n) {
193
192
  return Number(
194
193
  n == 1 ? 0 : n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 10 || n % 100 >= 20) ? 1 : 2,
195
194
  );
196
195
  },
197
- 8: function(n) {
196
+ 8: function (n) {
198
197
  return Number(n == 1 ? 0 : n == 2 ? 1 : n != 8 && n != 11 ? 2 : 3);
199
198
  },
200
- 9: function(n) {
199
+ 9: function (n) {
201
200
  return Number(n >= 2);
202
201
  },
203
- 10: function(n) {
202
+ 10: function (n) {
204
203
  return Number(n == 1 ? 0 : n == 2 ? 1 : n < 7 ? 2 : n < 11 ? 3 : 4);
205
204
  },
206
- 11: function(n) {
205
+ 11: function (n) {
207
206
  return Number(n == 1 || n == 11 ? 0 : n == 2 || n == 12 ? 1 : n > 2 && n < 20 ? 2 : 3);
208
207
  },
209
- 12: function(n) {
208
+ 12: function (n) {
210
209
  return Number(n % 10 != 1 || n % 100 == 11);
211
210
  },
212
- 13: function(n) {
211
+ 13: function (n) {
213
212
  return Number(n !== 0);
214
213
  },
215
- 14: function(n) {
214
+ 14: function (n) {
216
215
  return Number(n == 1 ? 0 : n == 2 ? 1 : n == 3 ? 2 : 3);
217
216
  },
218
- 15: function(n) {
217
+ 15: function (n) {
219
218
  return Number(
220
219
  n % 10 == 1 && n % 100 != 11 ? 0 : n % 10 >= 2 && (n % 100 < 10 || n % 100 >= 20) ? 1 : 2,
221
220
  );
222
221
  },
223
- 16: function(n) {
222
+ 16: function (n) {
224
223
  return Number(n % 10 == 1 && n % 100 != 11 ? 0 : n !== 0 ? 1 : 2);
225
224
  },
226
- 17: function(n) {
225
+ 17: function (n) {
227
226
  return Number(n == 1 || (n % 10 == 1 && n % 100 != 11) ? 0 : 1);
228
227
  },
229
- 18: function(n) {
228
+ 18: function (n) {
230
229
  return Number(n == 0 ? 0 : n == 1 ? 1 : 2);
231
230
  },
232
- 19: function(n) {
231
+ 19: function (n) {
233
232
  return Number(
234
233
  n == 1
235
234
  ? 0
@@ -240,13 +239,13 @@ const _rulesPluralsTypes = {
240
239
  : 3,
241
240
  );
242
241
  },
243
- 20: function(n) {
242
+ 20: function (n) {
244
243
  return Number(n == 1 ? 0 : n == 0 || (n % 100 > 0 && n % 100 < 20) ? 1 : 2);
245
244
  },
246
- 21: function(n) {
245
+ 21: function (n) {
247
246
  return Number(n % 100 == 1 ? 1 : n % 100 == 2 ? 2 : n % 100 == 3 || n % 100 == 4 ? 3 : 0);
248
247
  },
249
- 22: function(n) {
248
+ 22: function (n) {
250
249
  return Number(n == 1 ? 0 : n == 2 ? 1 : (n < 0 || n > 10) && n % 10 == 0 ? 2 : 3);
251
250
  },
252
251
  };
@@ -265,6 +264,13 @@ function createRules() {
265
264
  }
266
265
 
267
266
  class PluralResolver {
267
+ options: {
268
+ simplifyPluralSuffix?: string;
269
+ compatibilityJSON?: string;
270
+ prepend?: boolean;
271
+ };
272
+ rules: {};
273
+
268
274
  constructor(options = {}) {
269
275
  this.options = options;
270
276
 
@@ -24,10 +24,8 @@ export const ProcQuickStartParser = (
24
24
  proc = task;
25
25
  answer = {};
26
26
  } else {
27
- // @ts-ignore
28
27
  proc = task.proc;
29
28
  answer = task;
30
- // @ts-ignore
31
29
  delete task.proc;
32
30
  }
33
31
 
@@ -116,8 +114,8 @@ export const ProcQuickStartParser = (
116
114
  );
117
115
  answer.review.failedTaskHelp = replaceEnvironmentVariables(
118
116
  answer.review.failedTaskHelp ||
119
- reviewFailed ||
120
- 'This task isn’t verified yet. Try the task again.',
117
+ reviewFailed ||
118
+ 'This task isn’t verified yet. Try the task again.',
121
119
  );
122
120
  answer.summary = answer.summary || {};
123
121
  answer.summary.success = replaceEnvironmentVariables(
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { HelpTopic } from './help-topic-types';
3
3
 
4
- export type HelpTopicContextValues = {
4
+ export interface HelpTopicContextValues {
5
5
  helpTopics?: HelpTopic[];
6
6
  setHelpTopics?: React.Dispatch<React.SetStateAction<HelpTopic[]>>;
7
7
  activeHelpTopic?: HelpTopic;
@@ -10,7 +10,7 @@ export type HelpTopicContextValues = {
10
10
  setFilteredHelpTopics?: React.Dispatch<React.SetStateAction<HelpTopic[]>>;
11
11
  loading?: boolean;
12
12
  setLoading?: any;
13
- };
13
+ }
14
14
 
15
15
  export const HelpTopicContextDefaults = {
16
16
  helpTopics: [],
@@ -45,9 +45,7 @@ export const useValuesForHelpTopicContext = (
45
45
 
46
46
  const setActiveHelpTopicByName = React.useCallback(
47
47
  (helpTopicName: string) => {
48
- const topic = helpTopics.find((t) => {
49
- return t.name === helpTopicName;
50
- });
48
+ const topic = helpTopics.find((t) => t.name === helpTopicName);
51
49
  if (!helpTopicName) {
52
50
  setActiveHelpTopic(null);
53
51
  return;
@@ -1,16 +1,16 @@
1
- export type HelpTopicLink = {
1
+ export interface HelpTopicLink {
2
2
  href: string;
3
3
  text?: string;
4
4
  // open link in new tab
5
5
  newTab?: boolean;
6
6
  // add PF icon indicating link is external
7
7
  isExternal?: boolean;
8
- };
8
+ }
9
9
 
10
- export type HelpTopic = {
10
+ export interface HelpTopic {
11
11
  name: string;
12
12
  title: string;
13
13
  tags: string[];
14
14
  content: string;
15
15
  links?: HelpTopicLink[];
16
- };
16
+ }
@@ -19,9 +19,9 @@ import { getQuickStartStatusCount, getTaskStatusKey } from './quick-start-utils'
19
19
 
20
20
  const pluralResolver = new PluralResolver({ simplifyPluralSuffix: true });
21
21
 
22
- export type FooterProps = {
22
+ export interface FooterProps {
23
23
  show?: boolean;
24
- };
24
+ }
25
25
 
26
26
  export const getDefaultQuickStartState = (
27
27
  totalTasks?: number,
@@ -39,7 +39,7 @@ export const getDefaultQuickStartState = (
39
39
  return defaultQuickStartState;
40
40
  };
41
41
 
42
- export type QuickStartContextValues = {
42
+ export interface QuickStartContextValues {
43
43
  allQuickStarts?: QuickStart[];
44
44
  setAllQuickStarts?: React.Dispatch<React.SetStateAction<QuickStart[]>>;
45
45
  activeQuickStartID?: string;
@@ -60,7 +60,7 @@ export type QuickStartContextValues = {
60
60
  useQueryParams?: boolean;
61
61
  markdown?: {
62
62
  extensions?: any[];
63
- renderExtension?: (docContext: HTMLDocument, rootSelector: string) => React.ReactNode;
63
+ renderExtension?: (docContext: Document, rootSelector: string) => React.ReactNode;
64
64
  };
65
65
  resourceBundle?: any;
66
66
  getResource?: any;
@@ -79,7 +79,7 @@ export type QuickStartContextValues = {
79
79
  setLoading?: any;
80
80
  alwaysShowTaskReview?: boolean;
81
81
  setAlwaysShowTaskReview?: any;
82
- };
82
+ }
83
83
 
84
84
  export const QuickStartContextDefaults = {
85
85
  allQuickStarts: [],
@@ -150,14 +150,12 @@ export const useValuesForQuickStartContext = (
150
150
  });
151
151
  };
152
152
  const findResource = useCallback(
153
- (resource: string, count?: number) => {
154
- return getResource(
153
+ (resource: string, count?: number) => getResource(
155
154
  resource,
156
155
  count !== undefined ? { count } : null,
157
156
  resourceBundle,
158
157
  language,
159
- );
160
- },
158
+ ),
161
159
  [resourceBundle, language],
162
160
  );
163
161
  const [loading, setLoading] = React.useState(combinedValue.loading);
@@ -468,10 +466,8 @@ export const useValuesForQuickStartContext = (
468
466
  export const QuickStartContextProvider: React.FC<{
469
467
  children: React.ReactNode;
470
468
  value: QuickStartContextValues;
471
- }> = ({ children, value }) => {
472
- return (
469
+ }> = ({ children, value }) => (
473
470
  <QuickStartContext.Provider value={useValuesForQuickStartContext(value)}>
474
471
  {children}
475
472
  </QuickStartContext.Provider>
476
473
  );
477
- };
@@ -3,14 +3,14 @@ import {
3
3
  ObjectMetadata,
4
4
  } from '../ConsoleInternal/module/k8s/types';
5
5
 
6
- export type QuickStart = {
6
+ export interface QuickStart {
7
7
  apiVersion?: string;
8
8
  kind?: string;
9
9
  metadata: ObjectMetadata;
10
10
  spec: QuickStartSpec;
11
- };
11
+ }
12
12
 
13
- export type QuickStartSpec = {
13
+ export interface QuickStartSpec {
14
14
  version?: number;
15
15
  displayName: string;
16
16
  durationMinutes?: number;
@@ -24,24 +24,25 @@ export type QuickStartSpec = {
24
24
  accessReviewResources?: AccessReviewResourceAttributes[];
25
25
  link?: QuickStartExternal;
26
26
  type?: QuickStartType;
27
- };
27
+ }
28
28
 
29
- export type QuickStartTask = {
29
+ export interface QuickStartTask {
30
30
  title?: string;
31
31
  description?: string;
32
32
  review?: QuickStartTaskReview;
33
33
  summary?: QuickStartTaskSummary;
34
- };
34
+ proc?: string;
35
+ }
35
36
 
36
- export type QuickStartTaskReview = {
37
+ export interface QuickStartTaskReview {
37
38
  instructions?: string;
38
39
  failedTaskHelp?: string;
39
- };
40
+ }
40
41
 
41
- export type QuickStartTaskSummary = {
42
+ export interface QuickStartTaskSummary {
42
43
  success?: string;
43
44
  failed?: string;
44
- };
45
+ }
45
46
 
46
47
  export type AllQuickStartStates = Record<string, QuickStartState>;
47
48
 
@@ -61,12 +62,12 @@ export enum QuickStartTaskStatus {
61
62
  FAILED = 'Failed',
62
63
  }
63
64
 
64
- export type QuickStartExternal = {
65
+ export interface QuickStartExternal {
65
66
  href: string;
66
67
  text?: string;
67
- };
68
+ }
68
69
 
69
- export type QuickStartType = {
70
+ export interface QuickStartType {
70
71
  text: string;
71
72
  color?: 'blue' | 'cyan' | 'green' | 'orange' | 'purple' | 'red' | 'grey';
72
- };
73
+ }
@@ -16,8 +16,7 @@ export const getTaskStatusKey = (taskNumber: number): string => `taskStatus${tas
16
16
  export const getQuickStartStatusCount = (
17
17
  allQuickStartStates: AllQuickStartStates,
18
18
  quickStarts: QuickStart[],
19
- ): Record<QuickStartStatus, number> => {
20
- return quickStarts.reduce(
19
+ ): Record<QuickStartStatus, number> => quickStarts.reduce(
21
20
  (totals, item) => {
22
21
  totals[getQuickStartStatus(allQuickStartStates, item.metadata.name)]++;
23
22
  return totals;
@@ -28,7 +27,6 @@ export const getQuickStartStatusCount = (
28
27
  [QuickStartStatus.NOT_STARTED]: 0,
29
28
  },
30
29
  );
31
- };
32
30
 
33
31
  declare const window: Window & {
34
32
  SERVER_FLAGS: {
@@ -82,11 +80,9 @@ export const filterQuickStarts = (
82
80
  );
83
81
  };
84
82
 
85
- export const camelize = (str: string) => {
86
- return str.replace(/(?:^\w|[A-Z]|\b\w|\s+)/g, function(match, index) {
83
+ export const camelize = (str: string) => str.replace(/(?:^\w|[A-Z]|\b\w|\s+)/g, function(match, index) {
87
84
  if (+match === 0) {
88
85
  return '';
89
86
  } // or if (/\s+/.test(match)) for white spaces
90
87
  return index === 0 ? match.toLowerCase() : match.toUpperCase();
91
88
  });
92
- };