@via-profit/ui-kit 0.1.0-rc.22 → 0.1.0-rc.24
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.
|
@@ -50,7 +50,7 @@ const StyledButton = styled_1.default.button `
|
|
|
50
50
|
`}
|
|
51
51
|
`;
|
|
52
52
|
const ButtonContainer = (props, ref) => {
|
|
53
|
-
const { children } = props, nativeProps = __rest(props, ["children"]);
|
|
54
|
-
return (react_1.default.createElement(StyledButton, Object.assign({}, nativeProps, { ref: ref }), children));
|
|
53
|
+
const { children, iconOnly } = props, nativeProps = __rest(props, ["children", "iconOnly"]);
|
|
54
|
+
return (react_1.default.createElement(StyledButton, Object.assign({ iconOnly: iconOnly }, nativeProps, { ref: ref }), children));
|
|
55
55
|
};
|
|
56
56
|
exports.default = react_1.default.forwardRef(ButtonContainer);
|
|
@@ -18,6 +18,9 @@ const react_1 = __importDefault(require("react"));
|
|
|
18
18
|
const styled_1 = __importDefault(require("@emotion/styled"));
|
|
19
19
|
const react_2 = require("@emotion/react");
|
|
20
20
|
const Wrapper = styled_1.default.span `
|
|
21
|
+
display: flex;
|
|
22
|
+
align-items: center;
|
|
23
|
+
justify-content: center;
|
|
21
24
|
${({ $position }) => $position === 'start' &&
|
|
22
25
|
(0, react_2.css) `
|
|
23
26
|
margin-right: 0.8em;
|
|
@@ -29,7 +29,7 @@ const TextWrapper = styled_1.default.span `
|
|
|
29
29
|
`}
|
|
30
30
|
`;
|
|
31
31
|
const ButtonTextWrapper = (props, ref) => {
|
|
32
|
-
const { children } = props, nativeProps = __rest(props, ["children"]);
|
|
33
|
-
return (react_1.default.createElement(TextWrapper, Object.assign({}, nativeProps, { ref: ref }), children));
|
|
32
|
+
const { children, iconOnly } = props, nativeProps = __rest(props, ["children", "iconOnly"]);
|
|
33
|
+
return (react_1.default.createElement(TextWrapper, Object.assign({ iconOnly: iconOnly }, nativeProps, { ref: ref }), children));
|
|
34
34
|
};
|
|
35
35
|
exports.default = react_1.default.forwardRef(ButtonTextWrapper);
|
package/Modal/ModalConfirmBox.js
CHANGED
package/Modal/ModalDialog.js
CHANGED
|
@@ -41,9 +41,7 @@ const React = __importStar(require("react"));
|
|
|
41
41
|
const styled_1 = __importDefault(require("@emotion/styled"));
|
|
42
42
|
const react_1 = require("@emotion/react");
|
|
43
43
|
const react_modal_1 = __importDefault(require("react-modal"));
|
|
44
|
-
const Container = styled_1.default.div
|
|
45
|
-
padding: 1em;
|
|
46
|
-
`;
|
|
44
|
+
const Container = styled_1.default.div ``;
|
|
47
45
|
const ModalDialog = (props, ref) => {
|
|
48
46
|
const { children } = props, otherProps = __rest(props, ["children"]);
|
|
49
47
|
const theme = (0, react_1.useTheme)();
|
|
@@ -69,6 +67,7 @@ const ModalDialog = (props, ref) => {
|
|
|
69
67
|
|
|
70
68
|
.modal-dialog .ReactModal__Content {
|
|
71
69
|
inset: initial !important;
|
|
70
|
+
border: none !important;
|
|
72
71
|
position: absolute !important;
|
|
73
72
|
top: 50% !important;
|
|
74
73
|
left: 50% !important;
|
package/Modal/ModalDrawer.js
CHANGED
|
@@ -45,7 +45,7 @@ const Button_1 = __importDefault(require("../Button"));
|
|
|
45
45
|
const CloseIcon_1 = __importDefault(require("./CloseIcon"));
|
|
46
46
|
const Container = styled_1.default.div `
|
|
47
47
|
min-height: 2rem;
|
|
48
|
-
|
|
48
|
+
height: 100%;
|
|
49
49
|
display: flex;
|
|
50
50
|
flex-flow: column;
|
|
51
51
|
`;
|
|
@@ -66,13 +66,11 @@ const Title = styled_1.default.div `
|
|
|
66
66
|
font-weight: 600;
|
|
67
67
|
margin-right: 1em;
|
|
68
68
|
`;
|
|
69
|
-
const Footer = styled_1.default.div
|
|
70
|
-
padding: 1em;
|
|
71
|
-
`;
|
|
69
|
+
const Footer = styled_1.default.div ``;
|
|
72
70
|
const Inner = styled_1.default.div `
|
|
73
|
-
padding: 1em;
|
|
74
71
|
overflow-y: auto;
|
|
75
72
|
flex: 1;
|
|
73
|
+
display: flex;
|
|
76
74
|
`;
|
|
77
75
|
const CloseButton = (0, styled_1.default)(Button_1.default) `
|
|
78
76
|
margin-left: ${props => (props.$withToolbar ? '1em' : 0)};
|
|
@@ -121,6 +119,7 @@ const ModalDrawer = (props, ref) => {
|
|
|
121
119
|
}
|
|
122
120
|
|
|
123
121
|
.modal-drawer .ReactModal__Content {
|
|
122
|
+
border: none !important;
|
|
124
123
|
position: absolute !important;
|
|
125
124
|
bottom: 0 !important;
|
|
126
125
|
padding: 0 !important;
|