@harpercollins/harpercollins-design-system 1.8.42 → 1.8.44
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 +4 -2
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/types/src/components/inputs/TextInput/TextInput.d.ts +3 -0
- package/dist/cjs/types/src/components/inputs/TextInput/TextInput.stories.d.ts +5 -0
- package/dist/esm/index.js +4 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/src/components/inputs/TextInput/TextInput.d.ts +3 -0
- package/dist/esm/types/src/components/inputs/TextInput/TextInput.stories.d.ts +5 -0
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -1019,10 +1019,12 @@ function kf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
1019
1019
|
background-color: #000;
|
|
1020
1020
|
opacity: 0.5;
|
|
1021
1021
|
animation: ${Qf} 0.2s ease;
|
|
1022
|
+
visibility: visible;
|
|
1022
1023
|
|
|
1023
1024
|
&.closing {
|
|
1024
1025
|
animation: ${ed} 0.2s ease;
|
|
1025
1026
|
opacity: 0;
|
|
1027
|
+
visibility: hidden;
|
|
1026
1028
|
}
|
|
1027
1029
|
`,rd=fn`
|
|
1028
1030
|
from {
|
|
@@ -1087,7 +1089,7 @@ function kf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
1087
1089
|
|
|
1088
1090
|
&.left.closing {
|
|
1089
1091
|
animation: ${od} 0.2s ease;
|
|
1090
|
-
transform: translate(
|
|
1092
|
+
transform: translate(100%, 0);
|
|
1091
1093
|
}
|
|
1092
1094
|
|
|
1093
1095
|
&.right {
|
|
@@ -1181,5 +1183,5 @@ function kf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Obj
|
|
|
1181
1183
|
}
|
|
1182
1184
|
`,md=un.div`
|
|
1183
1185
|
position: relative;
|
|
1184
|
-
`;let hd=1;const vd=p((({children:r,side:o,open:a=!1,showWarning:l,onClose:s=(()=>{})},c)=>{const
|
|
1186
|
+
`;let hd=1;const vd=p((({children:r,side:o,open:a=!1,showWarning:l,onClose:s=(()=>{})},c)=>{const u=i(null),d=i(null);u.current||(u.current=`modal-${hd}`,hd+=1),f((()=>{document.body.style.overflow=a?"hidden":"auto"}),[a]),f((()=>{const e=e=>{"Escape"===e.key&&(e.preventDefault(),s())};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[s]),f((()=>{const e=e=>{d.current&&e.target instanceof HTMLElement&&!d.current.contains(e.target)&&(e.preventDefault(),s())};return document.body.addEventListener("mouseup",e),()=>{document.body.removeEventListener("mouseup",e)}}),[s]);const p=a?"open":"closing";return t(n,{children:[e(nd,{className:p}),e(cd,{role:"dialog","aria-modal":"true","aria-hidden":!a,className:`${o} ${p}`,children:e(Zf,{children:e("div",{children:e(ud,{children:t(fd,{ref:d,children:[l&&t(gd,{role:"alert","aria-live":"assertive",children:[e(ji,{name:["fas","exclamation-triangle"]}),t("p",{children:[e("strong",{children:"You have unsaved changes."})," Please save or cancel before closing."]})]}),e(md,{ref:c,children:e(td,{children:r})})]})})})})})]})}));function bd(e){const[t,n]=u(e);return{value:t,toggle:g((()=>n((e=>!e))),[]),setTrue:g((()=>n(!0)),[]),setFalse:g((()=>n(!1)),[])}}export{Gi as Accordion,Hu as AppBar,Ui as Badge,Ku as Breadcrumb,dl as Button,Xi as Divider,Du as DropDownMenu,gn as Heading,ji as Icon,Wu as Layout,el as LoadingSpinner,Mu as Logo,vd as Modal,Cu as ProgressBar,Ki as ProgressCircle,hl as ReadMore,bl as RelativeTime,ac as StatusIcon,lu as Table,mu as Tabs,wu as TextField,zu as ToastMessages,Js as Tooltip,h as theme,bd as useToggle};
|
|
1185
1187
|
//# sourceMappingURL=index.js.map
|