@grafana/plugin-ui 0.13.0 → 0.13.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.
@@ -5723,32 +5723,23 @@ const getSelectStyles = (theme) => ({
5723
5723
  })
5724
5724
  });
5725
5725
 
5726
- const Space = (props) => {
5727
- const theme = ui.useTheme2();
5728
- const styles = getStyles$i(theme, props);
5726
+ const Space = ({ v = 0, h = 0, layout = "block" }) => {
5727
+ const styles = ui.useStyles2(getStyles$i, v, h, layout);
5729
5728
  return /* @__PURE__ */ React__default.default.createElement("span", { className: css.cx(styles.wrapper) });
5730
5729
  };
5731
- Space.defaultProps = {
5732
- v: 0,
5733
- h: 0,
5734
- layout: "block"
5735
- };
5736
- const getStyles$i = ui.stylesFactory((theme, props) => {
5737
- var _a, _b;
5738
- return {
5739
- wrapper: css.css([
5740
- {
5741
- paddingRight: theme.spacing((_a = props.h) != null ? _a : 0),
5742
- paddingBottom: theme.spacing((_b = props.v) != null ? _b : 0)
5743
- },
5744
- props.layout === "inline" && {
5745
- display: "inline-block"
5746
- },
5747
- props.layout === "block" && {
5748
- display: "block"
5749
- }
5750
- ])
5751
- };
5730
+ const getStyles$i = (theme, v, h, layout) => ({
5731
+ wrapper: css.css([
5732
+ {
5733
+ paddingRight: theme.spacing(h != null ? h : 0),
5734
+ paddingBottom: theme.spacing(v != null ? v : 0)
5735
+ },
5736
+ layout === "inline" && {
5737
+ display: "inline-block"
5738
+ },
5739
+ layout === "block" && {
5740
+ display: "block"
5741
+ }
5742
+ ])
5752
5743
  });
5753
5744
 
5754
5745
  function ConfirmModal({ isOpen, onCancel, onDiscard, onCopy }) {