@pingux/astro 1.42.2-alpha.2 → 1.42.2-alpha.3
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/lib/cjs/components/CodeView/CodeView.stories.js +2 -12
- package/lib/cjs/components/CopyText/CopyButton.js +1 -1
- package/lib/cjs/components/Icon/Icon.stories.js +1 -1
- package/lib/components/CodeView/CodeView.stories.js +2 -11
- package/lib/components/CopyText/CopyButton.js +1 -1
- package/lib/components/Icon/Icon.stories.js +1 -1
- package/package.json +1 -1
@@ -20,8 +20,6 @@ require("prismjs/components/prism-powershell");
|
|
20
20
|
|
21
21
|
var _CodeView = _interopRequireDefault(require("./CodeView"));
|
22
22
|
|
23
|
-
var _ = require("../..");
|
24
|
-
|
25
23
|
var _storybookDocsLayout = _interopRequireDefault(require("../../../.storybook/storybookDocsLayout"));
|
26
24
|
|
27
25
|
var _CodeView2 = _interopRequireDefault(require("./CodeView.mdx"));
|
@@ -69,21 +67,13 @@ var _default = {
|
|
69
67
|
exports["default"] = _default;
|
70
68
|
|
71
69
|
var Default = function Default(args) {
|
72
|
-
return (0, _react2.jsx)(_react["default"].Fragment, null, (0, _react2.jsx)(
|
73
|
-
sx: {
|
74
|
-
fontWeight: 2
|
75
|
-
}
|
76
|
-
}, "JSON"), (0, _react2.jsx)(_CodeView["default"], args));
|
70
|
+
return (0, _react2.jsx)(_react["default"].Fragment, null, (0, _react2.jsx)(_CodeView["default"], args));
|
77
71
|
};
|
78
72
|
|
79
73
|
exports.Default = Default;
|
80
74
|
|
81
75
|
var WithLineNumbers = function WithLineNumbers() {
|
82
|
-
return (0, _react2.jsx)(_react["default"].Fragment, null, (0, _react2.jsx)(
|
83
|
-
sx: {
|
84
|
-
fontWeight: 2
|
85
|
-
}
|
86
|
-
}, "JSON"), (0, _react2.jsx)(_CodeView["default"], {
|
76
|
+
return (0, _react2.jsx)(_react["default"].Fragment, null, (0, _react2.jsx)(_CodeView["default"], {
|
87
77
|
hasLineNumbers: true
|
88
78
|
}, code));
|
89
79
|
};
|
@@ -43,7 +43,7 @@ var CopyButton = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
43
43
|
variant: "buttons.copy"
|
44
44
|
}, (0, _lodash.omit)(props, 'iconProps')), (0, _react2.jsx)(_Icon["default"], (0, _extends2["default"])({
|
45
45
|
icon: _ContentCopyIcon["default"],
|
46
|
-
size:
|
46
|
+
size: "xs",
|
47
47
|
color: "text.secondary"
|
48
48
|
}, props === null || props === void 0 ? void 0 : props.iconProps)));
|
49
49
|
});
|
@@ -3,7 +3,6 @@ import React from 'react';
|
|
3
3
|
import Prism from 'prismjs';
|
4
4
|
import 'prismjs/components/prism-powershell';
|
5
5
|
import CodeView from './CodeView';
|
6
|
-
import { Text } from '../..';
|
7
6
|
import DocsLayout from '../../../.storybook/storybookDocsLayout';
|
8
7
|
import CodeViewReadme from './CodeView.mdx';
|
9
8
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
@@ -46,18 +45,10 @@ export default {
|
|
46
45
|
}
|
47
46
|
};
|
48
47
|
export var Default = function Default(args) {
|
49
|
-
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(
|
50
|
-
sx: {
|
51
|
-
fontWeight: 2
|
52
|
-
}
|
53
|
-
}, "JSON"), ___EmotionJSX(CodeView, args));
|
48
|
+
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(CodeView, args));
|
54
49
|
};
|
55
50
|
export var WithLineNumbers = function WithLineNumbers() {
|
56
|
-
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(
|
57
|
-
sx: {
|
58
|
-
fontWeight: 2
|
59
|
-
}
|
60
|
-
}, "JSON"), ___EmotionJSX(CodeView, {
|
51
|
+
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(CodeView, {
|
61
52
|
hasLineNumbers: true
|
62
53
|
}, code));
|
63
54
|
};
|
@@ -13,7 +13,7 @@ var CopyButton = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
13
13
|
variant: "buttons.copy"
|
14
14
|
}, omit(props, 'iconProps')), ___EmotionJSX(Icon, _extends({
|
15
15
|
icon: ContentCopy,
|
16
|
-
size:
|
16
|
+
size: "xs",
|
17
17
|
color: "text.secondary"
|
18
18
|
}, props === null || props === void 0 ? void 0 : props.iconProps)));
|
19
19
|
});
|