@backstage/core-components 0.10.1-next.0 → 0.10.1-next.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @backstage/core-components
2
2
 
3
+ ## 0.10.1-next.1
4
+
5
+ ### Patch Changes
6
+
7
+ - a22af3edc8: Adding a `className` prop to the `MarkdownContent` component
8
+
3
9
  ## 0.10.1-next.0
4
10
 
5
11
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -700,6 +700,7 @@ declare type Props$b = {
700
700
  linkTarget?: Options['linkTarget'];
701
701
  transformLinkUri?: (href: string) => string;
702
702
  transformImageUri?: (href: string) => string;
703
+ className?: string;
703
704
  };
704
705
  /**
705
706
  * MarkdownContent
@@ -893,6 +894,7 @@ declare type SelectProps = {
893
894
  triggerReset?: boolean;
894
895
  native?: boolean;
895
896
  disabled?: boolean;
897
+ margin?: 'dense' | 'none';
896
898
  };
897
899
  /** @public */
898
900
  declare function SelectComponent(props: SelectProps): JSX.Element;
package/dist/index.esm.js CHANGED
@@ -1865,12 +1865,13 @@ function MarkdownContent(props) {
1865
1865
  dialect = "gfm",
1866
1866
  linkTarget,
1867
1867
  transformLinkUri,
1868
- transformImageUri
1868
+ transformImageUri,
1869
+ className
1869
1870
  } = props;
1870
1871
  const classes = useStyles$B();
1871
1872
  return /* @__PURE__ */ React.createElement(ReactMarkdown, {
1872
1873
  remarkPlugins: dialect === "gfm" ? [gfm] : [],
1873
- className: classes.markdown,
1874
+ className: `${classes.markdown} ${className}`,
1874
1875
  children: content,
1875
1876
  components,
1876
1877
  linkTarget,
@@ -2525,7 +2526,8 @@ function SelectComponent(props) {
2525
2526
  onChange,
2526
2527
  triggerReset,
2527
2528
  native = false,
2528
- disabled = false
2529
+ disabled = false,
2530
+ margin
2529
2531
  } = props;
2530
2532
  const classes = useStyles$s();
2531
2533
  const [value, setValue] = useState(
@@ -2580,6 +2582,7 @@ function SelectComponent(props) {
2580
2582
  "data-testid": "select",
2581
2583
  displayEmpty: true,
2582
2584
  multiple,
2585
+ margin,
2583
2586
  onChange: handleChange,
2584
2587
  onClick: handleClick,
2585
2588
  open: isOpen,