@pingux/astro 2.71.0-alpha.2 → 2.72.0-alpha.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.
@@ -37,7 +37,7 @@ var _default = {
|
|
37
37
|
};
|
38
38
|
exports["default"] = _default;
|
39
39
|
var Default = function Default(args) {
|
40
|
-
return (0, _react2.jsx)(_index.CopyText, args, (0, _react2.jsx)(_index.Text, null, "
|
40
|
+
return (0, _react2.jsx)(_index.CopyText, args, (0, _react2.jsx)(_index.Text, null, "Lorem ipsum"));
|
41
41
|
};
|
42
42
|
exports.Default = Default;
|
43
43
|
Default.parameters = {
|
@@ -50,13 +50,17 @@ var WithLink = function WithLink(args) {
|
|
50
50
|
return (0, _react2.jsx)(_index.CopyText, (0, _extends2["default"])({}, args, {
|
51
51
|
mode: "link"
|
52
52
|
}), (0, _react2.jsx)(_index.Link, {
|
53
|
-
href: "https://
|
54
|
-
}, "https://
|
53
|
+
href: "https://lorem.ipsum"
|
54
|
+
}, "https://lorem.ipsum"));
|
55
55
|
};
|
56
56
|
exports.WithLink = WithLink;
|
57
57
|
var WithChangedCopiedValue = function WithChangedCopiedValue(args) {
|
58
|
-
return (0, _react2.jsx)(_index.CopyText, (0, _extends2["default"])({}, args, {
|
59
|
-
textToCopy: "
|
60
|
-
}), (0, _react2.jsx)(_index.Text, null, "
|
58
|
+
return (0, _react2.jsx)(_react["default"].Fragment, null, (0, _react2.jsx)(_index.CopyText, (0, _extends2["default"])({}, args, {
|
59
|
+
textToCopy: "Sed ut perspiciatis"
|
60
|
+
}), (0, _react2.jsx)(_index.Text, null, "Lorem ipsum")), (0, _react2.jsx)(_index.TextField, {
|
61
|
+
maxWidth: "300px",
|
62
|
+
mt: "lg",
|
63
|
+
label: "Paste Here"
|
64
|
+
}));
|
61
65
|
};
|
62
66
|
exports.WithChangedCopiedValue = WithChangedCopiedValue;
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
|
|
2
2
|
import React from 'react';
|
3
3
|
import { withDesign } from 'storybook-addon-designs';
|
4
4
|
import DocsLayout from '../../../.storybook/storybookDocsLayout';
|
5
|
-
import { Box, CopyText, Link, Text } from '../../index';
|
5
|
+
import { Box, CopyText, Link, Text, TextField } from '../../index';
|
6
6
|
import { FIGMA_LINKS } from '../../utils/designUtils/figmaLinks';
|
7
7
|
import CopyTextReadme from './CopyText.mdx';
|
8
8
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
@@ -28,7 +28,7 @@ export default {
|
|
28
28
|
}
|
29
29
|
};
|
30
30
|
export var Default = function Default(args) {
|
31
|
-
return ___EmotionJSX(CopyText, args, ___EmotionJSX(Text, null, "
|
31
|
+
return ___EmotionJSX(CopyText, args, ___EmotionJSX(Text, null, "Lorem ipsum"));
|
32
32
|
};
|
33
33
|
Default.parameters = {
|
34
34
|
design: {
|
@@ -40,11 +40,15 @@ export var WithLink = function WithLink(args) {
|
|
40
40
|
return ___EmotionJSX(CopyText, _extends({}, args, {
|
41
41
|
mode: "link"
|
42
42
|
}), ___EmotionJSX(Link, {
|
43
|
-
href: "https://
|
44
|
-
}, "https://
|
43
|
+
href: "https://lorem.ipsum"
|
44
|
+
}, "https://lorem.ipsum"));
|
45
45
|
};
|
46
46
|
export var WithChangedCopiedValue = function WithChangedCopiedValue(args) {
|
47
|
-
return ___EmotionJSX(CopyText, _extends({}, args, {
|
48
|
-
textToCopy: "
|
49
|
-
}), ___EmotionJSX(Text, null, "
|
47
|
+
return ___EmotionJSX(React.Fragment, null, ___EmotionJSX(CopyText, _extends({}, args, {
|
48
|
+
textToCopy: "Sed ut perspiciatis"
|
49
|
+
}), ___EmotionJSX(Text, null, "Lorem ipsum")), ___EmotionJSX(TextField, {
|
50
|
+
maxWidth: "300px",
|
51
|
+
mt: "lg",
|
52
|
+
label: "Paste Here"
|
53
|
+
}));
|
50
54
|
};
|