@primer/components 0.0.0-2021816225350 → 0.0.0-202181723821
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/CHANGELOG.md +3 -3
- package/dist/browser.esm.js +2 -2
- package/dist/browser.esm.js.map +1 -1
- package/dist/browser.umd.js +2 -2
- package/dist/browser.umd.js.map +1 -1
- package/lib/Dialog.js +2 -2
- package/lib-esm/Dialog.js +2 -2
- package/package.json +1 -1
package/lib/Dialog.js
CHANGED
@@ -36,7 +36,7 @@ const noop = () => null;
|
|
36
36
|
const DialogBase = _styledComponents.default.div.withConfig({
|
37
37
|
displayName: "Dialog__DialogBase",
|
38
38
|
componentId: "sc-1vcjhsg-0"
|
39
|
-
})(["box-shadow:", ";border-radius:", ";position:fixed;top:0;left:50%;transform:translateX(-50%);max-height:80vh;z-index:999;margin:10vh auto;background-color:", ";width:", ";outline:none;@media screen and (max-width:750px){width:100vw;margin:0;border-radius:0;height:100vh;}", ";", ";", ";"], (0, _constants.get)('shadows.shadow.large'), (0, _constants.get)('radii.2'), (0, _constants.get)('colors.
|
39
|
+
})(["box-shadow:", ";border-radius:", ";position:fixed;top:0;left:50%;transform:translateX(-50%);max-height:80vh;z-index:999;margin:10vh auto;background-color:", ";width:", ";outline:none;@media screen and (max-width:750px){width:100vw;margin:0;border-radius:0;height:100vh;}", ";", ";", ";"], (0, _constants.get)('shadows.shadow.large'), (0, _constants.get)('radii.2'), (0, _constants.get)('colors.canvas.default'), props => props.narrow ? '320px' : props.wide ? '640px' : '440px', _constants.LAYOUT, _constants.COMMON, _sx.default);
|
40
40
|
|
41
41
|
const DialogHeaderBase = (0, _styledComponents.default)(_Box.default).withConfig({
|
42
42
|
displayName: "Dialog__DialogHeaderBase",
|
@@ -71,7 +71,7 @@ DialogHeader.displayName = "DialogHeader";
|
|
71
71
|
const Overlay = _styledComponents.default.span.withConfig({
|
72
72
|
displayName: "Dialog__Overlay",
|
73
73
|
componentId: "sc-1vcjhsg-2"
|
74
|
-
})(["&:before{position:fixed;top:0;right:0;bottom:0;left:0;display:block;cursor:default;content:' ';background:transparent;z-index:99;background:", ";}"], (0, _constants.get)('colors.
|
74
|
+
})(["&:before{position:fixed;top:0;right:0;bottom:0;left:0;display:block;cursor:default;content:' ';background:transparent;z-index:99;background:", ";}"], (0, _constants.get)('colors.primer.canvas.backdrop'));
|
75
75
|
|
76
76
|
const Dialog = /*#__PURE__*/(0, _react.forwardRef)(({
|
77
77
|
children,
|
package/lib-esm/Dialog.js
CHANGED
@@ -15,7 +15,7 @@ const noop = () => null;
|
|
15
15
|
const DialogBase = styled.div.withConfig({
|
16
16
|
displayName: "Dialog__DialogBase",
|
17
17
|
componentId: "sc-1vcjhsg-0"
|
18
|
-
})(["box-shadow:", ";border-radius:", ";position:fixed;top:0;left:50%;transform:translateX(-50%);max-height:80vh;z-index:999;margin:10vh auto;background-color:", ";width:", ";outline:none;@media screen and (max-width:750px){width:100vw;margin:0;border-radius:0;height:100vh;}", ";", ";", ";"], get('shadows.shadow.large'), get('radii.2'), get('colors.
|
18
|
+
})(["box-shadow:", ";border-radius:", ";position:fixed;top:0;left:50%;transform:translateX(-50%);max-height:80vh;z-index:999;margin:10vh auto;background-color:", ";width:", ";outline:none;@media screen and (max-width:750px){width:100vw;margin:0;border-radius:0;height:100vh;}", ";", ";", ";"], get('shadows.shadow.large'), get('radii.2'), get('colors.canvas.default'), props => props.narrow ? '320px' : props.wide ? '640px' : '440px', LAYOUT, COMMON, sx);
|
19
19
|
const DialogHeaderBase = styled(Box).withConfig({
|
20
20
|
displayName: "Dialog__DialogHeaderBase",
|
21
21
|
componentId: "sc-1vcjhsg-1"
|
@@ -48,7 +48,7 @@ DialogHeader.displayName = "DialogHeader";
|
|
48
48
|
const Overlay = styled.span.withConfig({
|
49
49
|
displayName: "Dialog__Overlay",
|
50
50
|
componentId: "sc-1vcjhsg-2"
|
51
|
-
})(["&:before{position:fixed;top:0;right:0;bottom:0;left:0;display:block;cursor:default;content:' ';background:transparent;z-index:99;background:", ";}"], get('colors.
|
51
|
+
})(["&:before{position:fixed;top:0;right:0;bottom:0;left:0;display:block;cursor:default;content:' ';background:transparent;z-index:99;background:", ";}"], get('colors.primer.canvas.backdrop'));
|
52
52
|
const Dialog = /*#__PURE__*/forwardRef(({
|
53
53
|
children,
|
54
54
|
onDismiss = noop,
|