@patternfly/quickstarts 2.3.2 → 2.3.4

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 (41) hide show
  1. package/dist/ConsoleInternal/components/markdown-view.d.ts +1 -1
  2. package/dist/ConsoleShared/src/components/markdown-extensions/accordion-extension.d.ts +7 -0
  3. package/dist/ConsoleShared/src/components/markdown-extensions/accordion-render-extension.d.ts +6 -0
  4. package/dist/ConsoleShared/src/components/markdown-extensions/const.d.ts +2 -0
  5. package/dist/ConsoleShared/src/components/markdown-extensions/index.d.ts +2 -0
  6. package/dist/ConsoleShared/src/components/status/NotStartedIcon.d.ts +0 -1
  7. package/dist/index.es.js +106 -30
  8. package/dist/index.es.js.map +1 -1
  9. package/dist/index.js +104 -28
  10. package/dist/index.js.map +1 -1
  11. package/dist/patternfly-docs/quick-starts/design-guidelines/design-guidelines.md +1 -1
  12. package/dist/patternfly-docs/quick-starts/examples/about.md +28 -21
  13. package/dist/patternfly-docs/quick-starts/examples/basic.md +7 -5
  14. package/dist/patternfly-docs/quick-starts/examples/help-topics.md +8 -5
  15. package/dist/patternfly-global.css +890 -419
  16. package/dist/patternfly-nested.css +12484 -7322
  17. package/dist/quickstarts-base.css +870 -671
  18. package/dist/quickstarts-full.es.js +6466 -6194
  19. package/dist/quickstarts-full.es.js.map +1 -1
  20. package/dist/quickstarts-standalone.css +854 -622
  21. package/dist/quickstarts-standalone.min.css +2 -2
  22. package/dist/quickstarts-vendor.css +84 -55
  23. package/dist/quickstarts.css +953 -726
  24. package/dist/quickstarts.min.css +1 -1
  25. package/dist/utils/quick-start-types.d.ts +0 -1
  26. package/package.json +16 -13
  27. package/src/ConsoleInternal/components/catalog/_catalog.scss +7 -5
  28. package/src/ConsoleInternal/components/markdown-view.tsx +34 -50
  29. package/src/ConsoleShared/src/components/markdown-extensions/accordion-extension.tsx +52 -0
  30. package/src/ConsoleShared/src/components/markdown-extensions/accordion-render-extension.tsx +60 -0
  31. package/src/ConsoleShared/src/components/markdown-extensions/const.ts +2 -0
  32. package/src/ConsoleShared/src/components/markdown-extensions/index.ts +2 -0
  33. package/src/HelpTopicPanelContent.tsx +1 -1
  34. package/src/QuickStartMarkdownView.tsx +5 -0
  35. package/src/QuickStartPanelContent.tsx +17 -2
  36. package/src/catalog/QuickStartTileHeader.tsx +2 -1
  37. package/src/controller/QuickStartTaskHeader.tsx +12 -1
  38. package/src/declaration.d.ts +1 -0
  39. package/src/styles/legacy-bootstrap/_code.scss +4 -2
  40. package/src/styles/legacy-bootstrap/_type.scss +8 -6
  41. package/src/styles/patternfly-nested.scss +9 -9
@@ -64,12 +64,23 @@ const QuickStartTaskHeader: React.FC<QuickStartTaskHeaderProps> = ({
64
64
  children,
65
65
  }) => {
66
66
  const titleRef = React.useRef(null);
67
+ const [parsedTitle, setParsedTitle] = React.useState<string>('');
68
+
67
69
  React.useEffect(() => {
68
70
  if (isActiveTask) {
69
71
  // Focus the WizardNavItem button element that contains the title
70
72
  titleRef.current.parentNode.focus();
71
73
  }
72
74
  }, [isActiveTask]);
75
+
76
+ React.useEffect(() => {
77
+ async function getParsedTitle() {
78
+ const convertedMdTitle = await markdownConvert(title);
79
+ setParsedTitle(removeParagraphWrap(convertedMdTitle));
80
+ }
81
+ getParsedTitle();
82
+ }, [title]);
83
+
73
84
  const classNames = css('pfext-quick-start-task-header__title', {
74
85
  'pfext-quick-start-task-header__title-success': taskStatus === QuickStartTaskStatus.SUCCESS,
75
86
  'pfext-quick-start-task-header__title-failed':
@@ -92,7 +103,7 @@ const QuickStartTaskHeader: React.FC<QuickStartTaskHeaderProps> = ({
92
103
  <div className="pfext-quick-start-task-header" ref={titleRef}>
93
104
  <TaskIcon taskIndex={taskIndex} taskStatus={taskStatus} />
94
105
  <Title headingLevel="h3" size={size} className={classNames}>
95
- <span dangerouslySetInnerHTML={{ __html: removeParagraphWrap(markdownConvert(title)) }} />
106
+ <span dangerouslySetInnerHTML={{ __html: parsedTitle }} />
96
107
  {isActiveTask && subtitle && (
97
108
  <span
98
109
  className="pfext-quick-start-task-header__subtitle"
@@ -1,2 +1,3 @@
1
1
  declare module '*.scss';
2
2
  declare module '*.json';
3
+ declare module 'marked';
@@ -1,3 +1,5 @@
1
+ @use 'sass:math';
2
+
1
3
  //
2
4
  // Code (inline and block)
3
5
  // --------------------------------------------------
@@ -21,8 +23,8 @@ code {
21
23
  // Blocks of code
22
24
  pre {
23
25
  display: block;
24
- padding: (($line-height-computed - 1) / 2);
25
- margin: 0 0 ($line-height-computed / 2);
26
+ padding: math.div($line-height-computed - 1, 2);
27
+ margin: 0 0 math.div($line-height-computed, 2);
26
28
  font-size: ($font-size-base - 1); // 14px to 13px
27
29
  line-height: $line-height-base;
28
30
  color: $pre-color;
@@ -1,3 +1,5 @@
1
+ @use 'sass:math';
2
+
1
3
  //
2
4
  // Typography
3
5
  // --------------------------------------------------
@@ -18,13 +20,13 @@ h1, .h1,
18
20
  h2, .h2,
19
21
  h3, .h3 {
20
22
  margin-top: $line-height-computed;
21
- margin-bottom: ($line-height-computed / 2);
23
+ margin-bottom: math.div($line-height-computed, 2);
22
24
  }
23
25
  h4, .h4,
24
26
  h5, .h5,
25
27
  h6, .h6 {
26
- margin-top: ($line-height-computed / 2);
27
- margin-bottom: ($line-height-computed / 2);
28
+ margin-top: math.div($line-height-computed, 2);
29
+ margin-bottom: math.div($line-height-computed, 2);
28
30
  }
29
31
 
30
32
  h1, .h1 { font-size: $font-size-h1; }
@@ -39,7 +41,7 @@ h6, .h6 { font-size: $font-size-h6; }
39
41
  // -------------------------
40
42
 
41
43
  p {
42
- margin: 0 0 ($line-height-computed / 2);
44
+ margin: 0 0 math.div($line-height-computed, 2);
43
45
  }
44
46
 
45
47
 
@@ -50,7 +52,7 @@ p {
50
52
  ul,
51
53
  ol {
52
54
  margin-top: 0;
53
- margin-bottom: ($line-height-computed / 2);
55
+ margin-bottom: math.div($line-height-computed, 2);
54
56
  ul,
55
57
  ol {
56
58
  margin-bottom: 0;
@@ -75,7 +77,7 @@ dd {
75
77
 
76
78
  // Blockquotes
77
79
  blockquote {
78
- padding: ($line-height-computed / 2) $line-height-computed;
80
+ padding: math.div($line-height-computed, 2) $line-height-computed;
79
81
  margin: 0 0 $line-height-computed;
80
82
  font-size: $blockquote-font-size;
81
83
  border-left: 5px solid $blockquote-border-color;
@@ -5,14 +5,14 @@
5
5
  @import '@patternfly/patternfly/sass-utilities/all';
6
6
 
7
7
  .pfext-quick-start__base {
8
- $pf-global--enable-reset: false;
9
- @import '@patternfly/patternfly/base/common';
10
- @import '@patternfly/patternfly/utilities/Accessibility/accessibility.scss';
8
+ $pf-global--enable-reset: false;
9
+ @import '@patternfly/patternfly/base/common';
10
+ @import '@patternfly/patternfly/utilities/Accessibility/accessibility';
11
11
 
12
- // it's okay that we include everything since we'll purge the unused styles
13
- @import '@patternfly/patternfly/components/all';
14
- @import '@patternfly/patternfly/layouts/all';
12
+ // it's okay that we include everything since we'll purge the unused styles
13
+ @import '@patternfly/patternfly/components/all';
14
+ @import '@patternfly/patternfly/layouts/all';
15
15
 
16
- // some apps globally set text-align: center
17
- text-align: left;
18
- }
16
+ // some apps globally set text-align: center
17
+ text-align: left;
18
+ }