@taikai/rocket-kit 2.0.1 → 2.0.2
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/dist/atoms/button/stories/button.stories.d.ts +50 -0
- package/dist/atoms/button-dropdown/index.d.ts +1 -1
- package/dist/atoms/button-dropdown/stories/button-dropdown.stories.d.ts +47 -0
- package/dist/atoms/button-link/stories/button-link.stories.d.ts +53 -0
- package/dist/atoms/tag/index.d.ts +1 -1
- package/dist/atoms/tag/stories/tag.stories.d.ts +30 -0
- package/dist/rocket-kit.cjs.development.js +26 -4
- package/dist/rocket-kit.cjs.development.js.map +1 -1
- package/dist/rocket-kit.cjs.production.min.js +24 -19
- package/dist/rocket-kit.cjs.production.min.js.map +1 -1
- package/dist/rocket-kit.esm.js +26 -4
- package/dist/rocket-kit.esm.js.map +1 -1
- package/package.json +9 -9
package/dist/rocket-kit.esm.js
CHANGED
|
@@ -178,7 +178,7 @@ const ButtonWrapper = /*#__PURE__*/_styled.button.withConfig({
|
|
|
178
178
|
`, props => props.color === 'magic' && css`
|
|
179
179
|
--button: ${light};
|
|
180
180
|
--hover: ${lightGrey};
|
|
181
|
-
`, props => props.variant === 'outline' ? '3px' : 0, props => props.variant === 'text' ? 0 : '999px', props => props.variant === 'solid' ? 'var(--button)' : 'transparent', props => props.value ? props.circle ? rem('
|
|
181
|
+
`, props => props.variant === 'outline' ? '3px' : 0, props => props.variant === 'text' ? 0 : '999px', props => props.variant === 'solid' ? 'var(--button)' : 'transparent', props => props.value ? props.circle ? rem('32px') : 'min-content' : rem('32px'), /*#__PURE__*/rem('32px'), props => props.value ? props.circle ? 0 : `0 ${rem('20px')}` : 0, device.l, props => props.value ? rem('100px') : rem('32px'), props => props.variant === 'solid' ? '' : 'var(--hover)', props => props.variant === 'solid' ? 'var(--hover)' : 'transparent', props => props.variant === 'solid' ? '' : 'var(--hover)', props => props.variant === 'solid' ? '' : 'var(--hover)', props => props.iconPosition === 'right' ? '5px' : 0, props => props.iconPosition === 'left' ? '5px' : 0, props => props.variant === 'solid' ? '' : 'var(--button)', medium, props => props.variant === 'solid' ? 'var(--txt)' : 'var(--button)', props => props.iconPosition === 'left' ? 2 : 1, props => props.iconPosition === 'left' ? 1 : 2, /*#__PURE__*/rem('20px'), /*#__PURE__*/rem('20px'), props => props.variant === 'solid' ? 'var(--txt)' : 'var(--button)', props => props.color === 'magic' && css`
|
|
182
182
|
position: relative;
|
|
183
183
|
background-image: linear-gradient(to bottom right, #ef5867, #5031a8);
|
|
184
184
|
height: ${rem('60px')};
|
|
@@ -404,7 +404,7 @@ const ButtonLinkStyle = /*#__PURE__*/_styled.a.withConfig({
|
|
|
404
404
|
`, props => props.color === 'magic' && css`
|
|
405
405
|
--button: ${light$2};
|
|
406
406
|
--hover: ${lightGrey$2};
|
|
407
|
-
`, props => props.variant === 'outline' ? '3px' : 0, props => props.variant === 'text' ? 0 : '999px', props => props.variant === 'solid' ? 'var(--button)' : 'transparent', props => props.value ? rem('80px') : rem('
|
|
407
|
+
`, props => props.variant === 'outline' ? '3px' : 0, props => props.variant === 'text' ? 0 : '999px', props => props.variant === 'solid' ? 'var(--button)' : 'transparent', props => props.value ? rem('80px') : rem('32px'), /*#__PURE__*/rem('32px'), props => props.value ? `0 ${rem('20px')}` : 0, device.l, props => props.value ? rem('100px') : rem('32px'), props => props.variant === 'solid' ? '' : 'var(--hover)', props => props.variant === 'solid' ? 'var(--hover)' : 'transparent', props => props.variant === 'solid' ? '' : 'var(--hover)', props => props.variant === 'solid' ? '' : 'var(--hover)', props => props.iconPosition === 'right' ? '5px' : 0, props => props.iconPosition === 'left' ? '5px' : 0, medium$1, props => props.variant === 'solid' ? 'var(--txt)' : 'var(--button)', props => props.iconPosition === 'left' ? 2 : 1, props => props.iconPosition === 'left' ? 1 : 2, /*#__PURE__*/rem('20px'), /*#__PURE__*/rem('20px'), props => props.variant === 'solid' ? 'var(--txt)' : 'var(--button)', props => props.color === 'magic' && css`
|
|
408
408
|
position: relative;
|
|
409
409
|
background-image: linear-gradient(to bottom right, #ef5867, #5031a8);
|
|
410
410
|
height: ${rem('60px')};
|
|
@@ -1046,7 +1046,7 @@ const {
|
|
|
1046
1046
|
const TagWrapper = /*#__PURE__*/_styled.span.withConfig({
|
|
1047
1047
|
displayName: "styles__TagWrapper",
|
|
1048
1048
|
componentId: "sc-1ghratr-0"
|
|
1049
|
-
})(["display:inline-block;border:", " solid ", ";border-radius:", ";background-color:", ";max-width:", ";padding:", " ", ";font-size:", ";font-weight:", ";letter-spacing:0.1em;line-height:1;color:", ";white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-transform:uppercase
|
|
1049
|
+
})(["display:inline-block;border:", " solid ", ";border-radius:", ";background-color:", ";max-width:", ";padding:", " ", ";font-size:", ";font-weight:", ";letter-spacing:0.1em;line-height:1;color:", ";white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-transform:uppercase;", " ", " ", " ", " ", " ", ""], /*#__PURE__*/rem('2px'), grey$b, /*#__PURE__*/rem('3px'), grey$b, /*#__PURE__*/rem('150px'), /*#__PURE__*/rem('3px'), /*#__PURE__*/rem('8px'), /*#__PURE__*/rem('12px'), bold$3, light$7, props => props.color === 'green' && css`
|
|
1050
1050
|
border-color: ${green$5};
|
|
1051
1051
|
background-color: ${green$5};
|
|
1052
1052
|
color: ${props.variant === 'solid' ? light$7 : green$5};
|
|
@@ -1464,6 +1464,11 @@ const Wrapper$2 = _styled.div`
|
|
|
1464
1464
|
flex: 1;
|
|
1465
1465
|
border: 0;
|
|
1466
1466
|
color: ${props => props.error ? red$8 : normal$7};
|
|
1467
|
+
|
|
1468
|
+
&:disabled {
|
|
1469
|
+
margin: 0;
|
|
1470
|
+
border-radius: 0;
|
|
1471
|
+
}
|
|
1467
1472
|
}
|
|
1468
1473
|
|
|
1469
1474
|
& + span {
|
|
@@ -5850,7 +5855,7 @@ const ModalWrapper$1 = /*#__PURE__*/_styled.div.withConfig({
|
|
|
5850
5855
|
const ModalContainer$1 = /*#__PURE__*/_styled.div.withConfig({
|
|
5851
5856
|
displayName: "styles__ModalContainer",
|
|
5852
5857
|
componentId: "sc-46huls-2"
|
|
5853
|
-
})(["position:fixed;right:0;background:", ";width:100%;height:100vh;display:flex;flex-direction:column;padding:", ";word-wrap:break-word;animation-timing-function:", ";animation-duration:1s;animation-fill-mode:forwards;transform:translateX(100%);animation-name:", ";overflow-y:auto;@media ", "{max-width:", ";padding:", ";}"], light$o, /*#__PURE__*/rem('15px'), /*#__PURE__*/timingFunctions('easeOutQuint'), slideInLeft, device.s, /*#__PURE__*/rem('400px'), /*#__PURE__*/rem('30px'));
|
|
5858
|
+
})(["position:fixed;right:0;background:", ";width:100%;height:100vh;height:calc(var(--vh,1vh) * 100);display:flex;flex-direction:column;padding:", ";word-wrap:break-word;animation-timing-function:", ";animation-duration:1s;animation-fill-mode:forwards;transform:translateX(100%);animation-name:", ";overflow-y:auto;@media ", "{max-width:", ";padding:", ";}"], light$o, /*#__PURE__*/rem('15px'), /*#__PURE__*/timingFunctions('easeOutQuint'), slideInLeft, device.s, /*#__PURE__*/rem('400px'), /*#__PURE__*/rem('30px'));
|
|
5854
5859
|
const ModalHeader$1 = /*#__PURE__*/_styled.div.withConfig({
|
|
5855
5860
|
displayName: "styles__ModalHeader",
|
|
5856
5861
|
componentId: "sc-46huls-3"
|
|
@@ -5871,6 +5876,23 @@ const ModalDrawer = props => {
|
|
|
5871
5876
|
footerHidden = false,
|
|
5872
5877
|
zIndex = 10
|
|
5873
5878
|
} = props;
|
|
5879
|
+
useEffect(() => {
|
|
5880
|
+
const fixViewport = () => {
|
|
5881
|
+
let vh = window.innerHeight * 0.01;
|
|
5882
|
+
document.documentElement.style.setProperty('--vh', `${vh}px`);
|
|
5883
|
+
};
|
|
5884
|
+
|
|
5885
|
+
fixViewport();
|
|
5886
|
+
|
|
5887
|
+
if (typeof window !== 'undefined') {
|
|
5888
|
+
let vh = window.innerHeight * 0.01;
|
|
5889
|
+
document.documentElement.style.setProperty('--vh', `${vh}px`);
|
|
5890
|
+
window.addEventListener('resize', fixViewport);
|
|
5891
|
+
return () => window.removeEventListener('resize', fixViewport);
|
|
5892
|
+
}
|
|
5893
|
+
|
|
5894
|
+
return;
|
|
5895
|
+
}, []);
|
|
5874
5896
|
return isShowing ? /*#__PURE__*/ReactDOM.createPortal( /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ModalOverlay$1, {
|
|
5875
5897
|
zIndex: zIndex
|
|
5876
5898
|
}), /*#__PURE__*/React.createElement(ModalWrapper$1, {
|