@harpercollins/harpercollins-design-system 1.8.71 → 1.8.72
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/cjs/index.cjs +16 -2
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/types/src/components/layout/Grid/Grid.d.ts +2 -4
- package/dist/esm/index.js +16 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/src/components/layout/Grid/Grid.d.ts +2 -4
- package/dist/index.d.ts +2 -5
- package/package.json +1 -1
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
}
|
|
4
|
-
declare function Grid({ label, ...rest }: GridProps): import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
import { GridProps } from "@mui/joy";
|
|
2
|
+
declare function Grid(props: GridProps): import("react/jsx-runtime").JSX.Element;
|
|
5
3
|
export default Grid;
|
package/dist/esm/index.js
CHANGED
|
@@ -634,7 +634,7 @@ function ac(e,t){const n=rc(e,t);return"production"!==process.env.NODE_ENV?(...t
|
|
|
634
634
|
}
|
|
635
635
|
`,ww=rn.div`
|
|
636
636
|
position: relative;
|
|
637
|
-
`;let xw=1;const Sw=u((({children:n,side:a,size:i="md",open:l=!1,closeBlocked:s,onClose:u=(()=>{}),onCloseCompleted:d=(()=>{}),closeRequested:p=!1,...f},m)=>{const g=o(null);g.current||(g.current=`overlay-${xw}`,xw+=1);const h=o(null),[v,b]=r.useState(!1);r.useEffect((()=>{if(v){const e=setTimeout(d,200);return()=>{clearTimeout(e)}}return()=>{}})),c((()=>{p&&b(!0)}),[p]),g.current||(g.current=`modal-${xw}`,xw+=1),c((()=>{document.body.style.overflow=l?"hidden":"auto"}),[l]),c((()=>{const e=e=>{"Escape"===e.key&&(e.preventDefault(),u())};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[u]);return e(iw,{open:l&&!v,anchor:a,className:`${a} ${l?"open":"closing"}`,size:i,...f,children:e(hw,{children:t(gw,{ref:h,children:[s&&t(yw,{role:"alert","aria-live":"assertive",children:[e(Di,{name:["fas","exclamation-triangle"]}),t("p",{children:[e("strong",{children:"You have unsaved changes."})," Please save or cancel before closing."]})]}),e(ww,{ref:m,children:e(lw,{children:n})})]})})})}));function Cw(t){return e(yf,{...t})}function kw(
|
|
637
|
+
`;let xw=1;const Sw=u((({children:n,side:a,size:i="md",open:l=!1,closeBlocked:s,onClose:u=(()=>{}),onCloseCompleted:d=(()=>{}),closeRequested:p=!1,...f},m)=>{const g=o(null);g.current||(g.current=`overlay-${xw}`,xw+=1);const h=o(null),[v,b]=r.useState(!1);r.useEffect((()=>{if(v){const e=setTimeout(d,200);return()=>{clearTimeout(e)}}return()=>{}})),c((()=>{p&&b(!0)}),[p]),g.current||(g.current=`modal-${xw}`,xw+=1),c((()=>{document.body.style.overflow=l?"hidden":"auto"}),[l]),c((()=>{const e=e=>{"Escape"===e.key&&(e.preventDefault(),u())};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[u]);return e(iw,{open:l&&!v,anchor:a,className:`${a} ${l?"open":"closing"}`,size:i,...f,children:e(hw,{children:t(gw,{ref:h,children:[s&&t(yw,{role:"alert","aria-live":"assertive",children:[e(Di,{name:["fas","exclamation-triangle"]}),t("p",{children:[e("strong",{children:"You have unsaved changes."})," Please save or cancel before closing."]})]}),e(ww,{ref:m,children:e(lw,{children:n})})]})})})}));function Cw(t){return e(yf,{...t})}function kw(t){return e(Ub,{...t})}const Ow=rn(Dv)`
|
|
638
638
|
&& .MuiInput-input {
|
|
639
639
|
background-color: var(--color--grey-hover);
|
|
640
640
|
padding: var(--spacing--small) var(--spacing--small);
|
|
@@ -687,7 +687,21 @@ function ac(e,t){const n=rc(e,t);return"production"!==process.env.NODE_ENV?(...t
|
|
|
687
687
|
font-size: var(--font-size--xsmall);
|
|
688
688
|
font-weight: var(--font-weight--bold);
|
|
689
689
|
margin: 0;
|
|
690
|
-
`,Dw=rn(fy)
|
|
690
|
+
`,Dw=rn(fy)`
|
|
691
|
+
a,
|
|
692
|
+
button {
|
|
693
|
+
color: initial;
|
|
694
|
+
text-decoration: none;
|
|
695
|
+
display: block;
|
|
696
|
+
transition: background-color 0.2s;
|
|
697
|
+
background: none;
|
|
698
|
+
border: none;
|
|
699
|
+
padding: 0;
|
|
700
|
+
width: 100%;
|
|
701
|
+
cursor: pointer;
|
|
702
|
+
text-align: left;
|
|
703
|
+
}
|
|
704
|
+
`,Tw=on`
|
|
691
705
|
0% {
|
|
692
706
|
background-position: 0% 50%;
|
|
693
707
|
}
|