@helsenorge/designsystem-react 1.0.1 → 1.1.0
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/HorizontalScroll-a4634c75.js +2 -0
- package/HorizontalScroll-a4634c75.js.map +1 -0
- package/{Modal-eebb821b.js → Modal-5a949869.js} +2 -2
- package/Modal-5a949869.js.map +1 -0
- package/{Panel-1ce6fe37.js → Panel-a05f45f0.js} +2 -2
- package/Panel-a05f45f0.js.map +1 -0
- package/components/ButtonWithModal/index.js +1 -1
- package/components/HighlightBox/HighlightBox.d.ts +2 -0
- package/components/HighlightBox/HighlightBox.d.ts.map +1 -1
- package/components/HighlightBox/componentdata.json +19 -0
- package/components/HighlightBox/index.js +1 -1
- package/components/HorizontalScroll/index.js +1 -1
- package/components/HorizontalScroll/styles.module.scss +2 -0
- package/components/Modal/index.js +1 -1
- package/components/Panel/Panel.d.ts.map +1 -1
- package/components/Panel/index.js +1 -1
- package/components/Panel/styles.module.scss +38 -38
- package/components/Panel/styles.module.scss.d.ts +2 -1
- package/components/PanelList/index.js +1 -1
- package/components/Table/index.js +1 -1
- package/hooks/useIsVisible.d.ts +2 -1
- package/hooks/useIsVisible.d.ts.map +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
- package/{useIsVisible-27ff4012.js → useIsVisible-2ffbdea2.js} +2 -2
- package/useIsVisible-2ffbdea2.js.map +1 -0
- package/HorizontalScroll-d65b118a.js +0 -2
- package/HorizontalScroll-d65b118a.js.map +0 -1
- package/Modal-eebb821b.js.map +0 -1
- package/Panel-1ce6fe37.js.map +0 -1
- package/useIsVisible-27ff4012.js.map +0 -1
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import r,{useRef as o}from"react";import{c as l}from"./index-d1c0552c.js";import{a as e}from"./useIsVisible-2ffbdea2.js";import i from"./components/HorizontalScroll/styles.module.scss";var t=function(t){var a=t.children,n=o(null),c=o(null),s=o(null),m=e(c,1,{root:null==n?void 0:n.current,rootMargin:"3px"},!0),d=e(s,1,{root:null==n?void 0:n.current,rootMargin:"3px"},!0);return r.createElement("div",{className:i.horizontalscroll},r.createElement("div",{className:i.horizontalscroll__viewport,ref:n},r.createElement("div",{className:l(i.horizontalscroll__indicator,i["horizontalscroll__indicator--left"],!m&&i["horizontalscroll__indicator--visible"])}),r.createElement("div",{className:l(i.horizontalscroll__indicator,i["horizontalscroll__indicator--right"],!d&&i["horizontalscroll__indicator--visible"])}),r.createElement("div",{ref:c}),a,r.createElement("div",{ref:s})))};export{t as H};
|
|
2
|
+
//# sourceMappingURL=HorizontalScroll-a4634c75.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HorizontalScroll-a4634c75.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{_ as e,d as a}from"./_rollupPluginBabelHelpers-0f007973.js";import t,{useEffect as r}from"react";import{c as l}from"./index-d1c0552c.js";import{p as o}from"./palette-f206f488.js";import{B as n}from"./Button-78f848e6.js";import{I as s}from"./Icon-d69d65b3.js";import{Z as i,A as c,I as m}from"./constants-dbdea596.js";import d from"./components/Modal/styles.module.scss";import{A as u}from"./AlertSignStroke-32f09751.js";import{A as p}from"./AlertSignFill-5df5b7c7.js";import{a as _}from"./useFocusTrap-4a5fb65d.js";import{a as v}from"./useIsVisible-
|
|
2
|
-
//# sourceMappingURL=Modal-
|
|
1
|
+
import{_ as e,d as a}from"./_rollupPluginBabelHelpers-0f007973.js";import t,{useEffect as r}from"react";import{c as l}from"./index-d1c0552c.js";import{p as o}from"./palette-f206f488.js";import{B as n}from"./Button-78f848e6.js";import{I as s}from"./Icon-d69d65b3.js";import{Z as i,A as c,I as m}from"./constants-dbdea596.js";import d from"./components/Modal/styles.module.scss";import{A as u}from"./AlertSignStroke-32f09751.js";import{A as p}from"./AlertSignFill-5df5b7c7.js";import{a as _}from"./useFocusTrap-4a5fb65d.js";import{a as v}from"./useIsVisible-2ffbdea2.js";import{T as f}from"./Title-01820508.js";import{u as E}from"./uuid-11037462.js";import{C as g}from"./Close-08d48540.js";import{C as b}from"./CheckOutline-86cddefd.js";import{P as y}from"./index-28ed5ede.js";var h,N;!function(e){e.normal="normal",e.warning="warning",e.error="error",e.success="success",e.image="image"}(h||(h={})),function(e){e.large="large",e.medium="medium"}(N||(N={}));var C={variant:h.normal,primaryButtonText:"OK",titleId:E(),className:"",size:N.large,zIndex:i.Modal},w=function(e,a){var r=function(e){return e===h.error?t.createElement(s,{size:m.Small,svgIcon:p,color:o.cherry500}):e===h.warning?t.createElement(s,{size:m.Small,svgIcon:u,color:o.black}):e===h.success?t.createElement(s,{size:m.Small,svgIcon:b,color:o.kiwi900}):null}(e);return r?t.createElement("div",{className:d.modal__iconWrapper},r):a?t.createElement("div",{className:d.modal__iconWrapper},t.cloneElement(a,{size:m.Small})):null},B=function(o){var s,i,m,u=t.useState(0),p=e(u,2),E=p[0],b=p[1],N=t.useRef(null),C=t.useRef(null),B=t.useRef(null),j=v(C),I=t.useRef(null),x=v(I),k=B.current&&B.current.scrollHeight>B.current.clientHeight;function T(e){"Escape"===e.key&&o.onClose&&(e.stopPropagation(),o.onClose())}function W(e){e.target&&L.current===e.target&&o.onClose&&(e.stopPropagation(),o.onClose())}var z=o.variant===h.image,L=t.useRef(null),S=o.secondaryButtonText&&(null===(i=o.secondaryButtonText)||void 0===i?void 0:i.length)>0||o.onSuccess,P=o.ariaLabelledBy?void 0:o.ariaLabel,A=o.ariaLabelledBy?o.ariaLabelledBy:o.ariaLabel?void 0:o.titleId;r((function(){var e,a=L.current;return null===(e=N.current)||void 0===e||e.focus(),document.body.style.overflow="hidden",o.disableCloseEvents||!a||S||(a.addEventListener("keydown",T),a.addEventListener("click",W)),function(){document.body.style.removeProperty("overflow"),o.disableCloseEvents||!a||S||(a.removeEventListener("keydown",T),a.removeEventListener("click",W))}}),[]);var M=l(o.className,d.modal,d["modal--".concat(o.variant)],d["modal--".concat(o.size)],k&&!S&&d["modal--no-actions"]),R=l((a(s={},d["modal__title--error"],o.variant===h.error),a(s,d["modal__title--success"],o.variant===h.success),s)),H=t.createElement("div",{"data-testid":"dialog-container"},t.createElement("div",{ref:L,className:d["modal-overlay"],"data-testid":o.testId,"data-analyticsid":c.Modal,style:{zIndex:o.zIndex}},t.createElement("div",{className:d.align,ref:_()},t.createElement("div",{className:M,role:"dialog","aria-label":P,"aria-labelledby":A},t.createElement("div",{tabIndex:E,ref:N,onBlur:function(){return b(-1)}}),t.createElement("div",{className:l(d.modal__shadow,d["modal__shadow--top"],a({},d["modal__shadow--show"],!j&&k))}),t.createElement("div",{className:l(d.modal__contentWrapper,a({},d["modal__contentWrapper--image"],z)),ref:B},!o.noCloseButton&&t.createElement("div",{className:d.modal__closeWrapper},t.createElement("div",{className:l(d.modal__closeWrapper__close)},t.createElement(g,{onClick:o.onClose,ariaLabel:o.ariaLabelCloseBtn}))),t.createElement("div",{className:l(d["modal__contentWrapper__scroll--".concat(o.size)],a({},d["modal__contentWrapper__scroll--image"],z))},t.createElement("div",{ref:C}),t.createElement("div",{className:d.modal__contentWrapper__title},w(o.variant,o.icon),t.createElement(f,{id:A,htmlMarkup:"h3",appearance:"title3",className:R},o.title),o.afterTitleChildren&&t.createElement("div",{className:d.modal__afterTitleChildren},o.afterTitleChildren)),z&&t.createElement("div",null,t.createElement("div",{className:d.modal__contentWrapper__imageWrapper},o.children),t.createElement("span",{className:d.modal__contentWrapper__imageDescription},o.description)),!z&&o.children&&t.createElement("div",null,o.children),!z&&!o.children&&t.createElement("p",{className:d.modal__description},o.description),t.createElement("div",{ref:I}))),t.createElement("div",{className:l(d.modal__shadow,d["modal__shadow--bottom"],a({},d["modal__shadow--show"],!x&&k))}),S&&t.createElement("div",{className:l(d["modal__call-to-action"],d["modal__call-to-action--".concat(o.size)])},o.onSuccess&&t.createElement(n,{onClick:o.onSuccess},o.primaryButtonText),o.secondaryButtonText&&(null===(m=o.secondaryButtonText)||void 0===m?void 0:m.length)>0&&t.createElement(n,{variant:"borderless",onClick:o.onClose},o.secondaryButtonText))))));if(o.printable){var F="print-modal";return t.createElement(y,{className:F,testId:"print-modal"},t.createElement("style",{media:"print"},"body > *:not(.".concat(F,") {display: none;}")),H)}return H};B.defaultProps=C;export{B as M,h as a,N as b};
|
|
2
|
+
//# sourceMappingURL=Modal-5a949869.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Modal-5a949869.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{_ as e,d as t}from"./_rollupPluginBabelHelpers-0f007973.js";import{_ as a}from"./_tslib-b219470a.js";import n,{useState as l,useRef as o,useEffect as r}from"react";import{c as i}from"./index-d1c0552c.js";import s from"./components/Panel/styles.module.scss";import{T as c}from"./Title-01820508.js";import{B as d}from"./Button-78f848e6.js";import{A as u,I as m}from"./constants-dbdea596.js";import{I as p}from"./Icon-d69d65b3.js";import{C as f}from"./ChevronDown-2b3daace.js";import{C as v}from"./ChevronUp-dfafe27b.js";import{A as b}from"./ArrowRight-43c97f7a.js";import{A as y}from"./AlertSignFill-5df5b7c7.js";import{p as
|
|
2
|
-
//# sourceMappingURL=Panel-
|
|
1
|
+
import{_ as e,d as t}from"./_rollupPluginBabelHelpers-0f007973.js";import{_ as a}from"./_tslib-b219470a.js";import n,{useState as l,useRef as o,useEffect as r}from"react";import{c as i}from"./index-d1c0552c.js";import s from"./components/Panel/styles.module.scss";import{T as c}from"./Title-01820508.js";import{B as d}from"./Button-78f848e6.js";import{A as u,I as m}from"./constants-dbdea596.js";import{I as p}from"./Icon-d69d65b3.js";import{C as f}from"./ChevronDown-2b3daace.js";import{C as v}from"./ChevronUp-dfafe27b.js";import{A as b}from"./ArrowRight-43c97f7a.js";import{A as y}from"./AlertSignFill-5df5b7c7.js";import{p as E}from"./palette-f206f488.js";import{P as g}from"./Pencil-dd3fe667.js";import{C as _}from"./Calendar-a9aa98de.js";import{W as h}from"./Watch-3d5fc351.js";import{u as j,B as k}from"./useBreakpoint-a74f5af5.js";import{u as w}from"./useUuid-3b1e73f2.js";import{u as x}from"./usePrevious-ae293b10.js";import{B as C}from"./Badge-eebcb720.js";var N,I,B;!function(e){e.normal="normal",e.new="new",e.error="error",e.draft="draft"}(N||(N={})),function(e){e.fill="fill",e.white="white",e.stroke="stroke",e.line="line"}(I||(I={})),function(e){e.layout1="layout1",e.layout2="layout2",e.layout3a="layout3a",e.layout3b="layout3b",e.layout3c="layout3c"}(B||(B={}));var T=function(e){var a=e.status,l=e.statusMessage,o=i(s["status-message"],t({},s["status-message--new"],a===N.new));return a!==N.error&&a!==N.draft||!l?null:n.createElement("div",{className:o,"data-testid":"display-status"},n.createElement(p,Object.assign({},a===N.error?{color:E.cherry500,svgIcon:y}:{color:E.black,svgIcon:g},{size:m.XSmall}))," ",n.createElement("span",null,l))},A=function(e){var t=e.date,a=e.time;return t||a?n.createElement("div",{className:s["datetime-container"],"data-testid":"datetime"},t&&n.createElement("div",{className:s["datetime-container__icon"]},n.createElement(p,{svgIcon:_,size:m.XSmall}),n.createElement("span",null,t)),a&&n.createElement("div",{className:s["datetime-container__icon"]},n.createElement(p,{svgIcon:h,size:m.XSmall}),n.createElement("span",null,a))):null},M=n.forwardRef((function(e,t){var l=e.buttonText,o=e.buttonTextClose,r=e.url,i=e.target,s=e.onClick,c=e.renderAsExpander,u=e.isExpanded,m=e.buttonHtmlMarkup,y=void 0===m?"a":m,E=a(e,["buttonText","buttonTextClose","url","target","onClick","renderAsExpander","isExpanded","buttonHtmlMarkup"]);return c?n.createElement(d,Object.assign({testId:"expand",ref:t,onClick:s},E,{"aria-expanded":u}),u?o:l,n.createElement(p,{svgIcon:u?v:f})):n.createElement(d,Object.assign({testId:"url",ref:t,htmlMarkup:y,onClick:s,href:r,target:i},E),l,n.createElement(p,{svgIcon:b}))})),S=n.forwardRef((function(a,d){var m,p,f,v,b,y,E,g=a.children,_=a.contentA,h=a.contentB,S=a.className,P=a.testId,H=a.title,O=a.titleHtmlMarkup,R=void 0===O?"h2":O,z=a.url,D=a.target,X=void 0===D?"_self":D,U=a.icon,W=a.iconRight,F=void 0!==W&&W,K=a.variant,q=void 0===K?I.fill:K,G=a.status,J=void 0===G?N.normal:G,L=a.statusMessage,Q=a.buttonText,V=void 0===Q?"Se detaljer":Q,Y=a.buttonTextClose,Z=void 0===Y?"Skjul detaljer":Y,$=a.showCloseButtonInExpand,ee=void 0===$||$,te=a.layout,ae=void 0===te?B.layout2:te,ne=a.containerAsButton,le=void 0!==ne&&ne,oe=a.date,re=a.time,ie=a.noTopBorder,se=a.buttonOnClick,ce=a.buttonHtmlMarkup,de=a.expanded,ue=void 0!==de&&de,me=a.onExpand,pe=l(ue),fe=e(pe,2),ve=fe[0],be=fe[1],ye=x(ve),Ee=o(null),ge=w(),_e=j();r((function(){ue!==ve&&be(ue)}),[ue]),r((function(){me&&ve!==!!ye&&me(ve)}),[ve,me]);var he=[B.layout3a.toString(),B.layout3b.toString(),B.layout3c.toString()].includes(ae),je=i(s["panel-wrapper"],S),ke=i(s.panel,(t(m={},s["panel--fill"],q===I.fill),t(m,s["panel--stroke"],q===I.stroke),t(m,s["panel--white"],q===I.white),t(m,s["panel--line"],q===I.line),t(m,s["panel--no-top-border"],q===I.line&&ie),t(m,s["panel--selected"],ve),t(m,s["panel--new"],J===N.new),t(m,s["panel--draft"],J===N.draft),t(m,s["panel--error"],J===N.error),t(m,s["panel--status"],J&&J!==N.normal),t(m,s["panel--with-icon"],U),t(m,s["panel--button"],le),t(m,s["panel--clickable"],g||z||me||se||le),m)),we=i((t(p={},s.panel__container,ae===B.layout2&&h),t(p,s["panel__container--layout3"],he&&h),t(p,s["panel__container--grow"],U),p)),xe=i((t(f={},s["panel-content-a"],ae===B.layout2),t(f,s["panel-content-a--layout3a"],ae===B.layout3a),t(f,s["panel-content-a--layout3b"],ae===B.layout3b),t(f,s["panel-content-a--layout3c"],ae===B.layout3c),f)),Ce=i((t(v={},s["panel__content-right--layout1"],h&&ae===B.layout1),t(v,s["panel__content-right--layout2"],h&&ae===B.layout2),t(v,s["panel__content-right--layout3"],h&&he),t(v,s["panel__content-right--layout3a"],h&&ae===B.layout3a),t(v,s["panel__content-right--layout3b"],h&&ae===B.layout3b),t(v,s["panel__content-right--layout3c"],h&&ae===B.layout3c),v)),Ne=i(s["panel-details"],(t(b={},s["panel-details--open"],ve),t(b,s["panel-details--line"],q===I.line),t(b,s["panel-details--white"],q===I.white),t(b,s["panel-details--with-icon"],U),b)),Ie=i(s["panel-content-b"],(t(y={},s["panel-content-b--layout1"],ae===B.layout1),t(y,s["panel-content-b--layout3"],he),y)),Be=i(s["panel__details-btn"]),Te=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0,a={id:t,tabIndex:e?void 0:-1,variant:"borderless",ellipsis:!0};return n.createElement(M,Object.assign({renderAsExpander:!!g,onClick:se||function(){return be(!ve)},isExpanded:ve,buttonText:V,url:z,target:X,buttonTextClose:Z,ref:t?Ee:void 0,buttonHtmlMarkup:ce},a))},Ae=i(s["panel__btn-container"],(t(E={},s["panel__btn-container--layout3"],he),t(E,s["panel__btn-container--padding-top"],h),E));return n.createElement("div",{ref:d,"data-testid":P,className:je,"data-analyticsid":u.Panel},n.createElement("div",{className:ke,tabIndex:le?0:void 0,onClick:function(){var e;le&&(null===(e=Ee.current)||void 0===e||e.click())},onKeyDown:function(e){var t,a=e.key;!le||"Enter"!==a&&" "!==a||(e.preventDefault(),null===(t=Ee.current)||void 0===t||t.click())},"aria-labelledby":le?ge:void 0,role:le?"button":void 0},U&&!F&&n.createElement("div",{className:s.panel__icon},U),n.createElement("div",{className:we},n.createElement("div",{className:xe},n.createElement(T,{status:J,statusMessage:L}),H&&n.createElement("div",{className:s["panel-content-a__title-container"]},n.createElement(c,{appearance:"title3",htmlMarkup:R},H),L&&J===N.new&&n.createElement("div",null,n.createElement(C,{color:"blueberry",testId:"badge-status"},L))),_,_e>=k.lg&&n.createElement(A,{date:oe,time:re})),n.createElement("div",{className:Ce},h&&n.createElement("div",{className:Ie},h),(g||z||oe||re||se)&&n.createElement("div",{className:Ae},_e<k.lg&&n.createElement(A,{date:oe,time:re}),(g||z||se)&&n.createElement("div",{className:Be},Te(!le,ge))))),U&&F&&n.createElement("div",{className:s["panel__icon--right"]},U)),g&&n.createElement("div",{className:Ne,"data-testid":"panel-details"},n.createElement("div",null,g),ee&&n.createElement("div",{className:Be},Te())))}));export{S as P,N as a,I as b,B as c};
|
|
2
|
+
//# sourceMappingURL=Panel-a05f45f0.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Panel-a05f45f0.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{_ as t}from"../../_rollupPluginBabelHelpers-0f007973.js";import s,{useState as e}from"react";import{B as o}from"../../Button-78f848e6.js";import{M as r}from"../../Modal-
|
|
1
|
+
import{_ as t}from"../../_rollupPluginBabelHelpers-0f007973.js";import s,{useState as e}from"react";import{B as o}from"../../Button-78f848e6.js";import{M as r}from"../../Modal-5a949869.js";import"../../_tslib-b219470a.js";import"../../constants-dbdea596.js";import"../../color-e7d082c1.js";import"../../index-d1c9177a.js";import"../../palette-f206f488.js";import"../../grid-c105cad1.js";import"../../Icon-d69d65b3.js";import"../../index-d1c0552c.js";import"../../useUuid-3b1e73f2.js";import"../../uuid-11037462.js";import"../../Loader-06293a27.js";import"../Loader/styles.module.scss";import"../../useHover-18479690.js";import"../../useBreakpoint-a74f5af5.js";import"../Button/styles.module.scss";import"../Modal/styles.module.scss";import"../../AlertSignStroke-32f09751.js";import"../../AlertSignFill-5df5b7c7.js";import"../../useFocusTrap-4a5fb65d.js";import"../../useIsVisible-2ffbdea2.js";import"../../Title-01820508.js";import"../Title/styles.module.scss";import"../../Close-08d48540.js";import"../../X-867957f2.js";import"../Close/styles.module.scss";import"../../CheckOutline-86cddefd.js";import"../../index-28ed5ede.js";import"react-dom";var i=s.forwardRef((function(i,m){var d=e(!1),p=t(d,2),l=p[0],a=p[1];return s.createElement("div",{"data-testid":i.testId},s.createElement(o,{onClick:function(){return a(!0)}},i.buttonText),l&&s.createElement(r,Object.assign({},i,{onClose:function(){return a(!1)}})))}));export{i as default};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -19,6 +19,8 @@ interface HighlightBoxProps {
|
|
|
19
19
|
svgIcon?: SvgIcon;
|
|
20
20
|
/** Changes the underlying element. Default: div */
|
|
21
21
|
htmlMarkup?: HighlightBoxTags;
|
|
22
|
+
/** Adds custom classes to the element. */
|
|
23
|
+
className?: string;
|
|
22
24
|
/** Sets the data-testid attribute. */
|
|
23
25
|
testId?: string;
|
|
24
26
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HighlightBox.d.ts","sourceRoot":"","sources":["../../../src/components/HighlightBox/HighlightBox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAInD,OAAa,EAAE,OAAO,EAAY,MAAM,UAAU,CAAC;AAGnD,oBAAY,kBAAkB,GAAG,OAAO,CAAC,YAAY,EAAE,OAAO,GAAG,WAAW,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,CAAC,CAAC;AAEvH,oBAAY,gBAAgB;IAC1B,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,KAAK,UAAU;CAChB;AAED,oBAAY,gBAAgB,GAAG,OAAO,CACpC,MAAM,qBAAqB,EAC3B,KAAK,GAAG,MAAM,GAAG,OAAO,GAAG,UAAU,GAAG,SAAS,GAAG,QAAQ,GAAG,UAAU,CAC1E,CAAC;AAEF,UAAU,iBAAiB;IACzB,yBAAyB;IACzB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,mDAAmD;IACnD,KAAK,CAAC,EAAE,kBAAkB,CA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AC,EAAE,MAAM,CAAC;IACnB,sCAAsC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAuBD,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAkF7C,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -480,6 +480,25 @@
|
|
|
480
480
|
]
|
|
481
481
|
}
|
|
482
482
|
},
|
|
483
|
+
"className": {
|
|
484
|
+
"defaultValue": null,
|
|
485
|
+
"description": "Adds custom classes to the element.",
|
|
486
|
+
"name": "className",
|
|
487
|
+
"parent": {
|
|
488
|
+
"fileName": "src/components/HighlightBox/HighlightBox.tsx",
|
|
489
|
+
"name": "HighlightBoxProps"
|
|
490
|
+
},
|
|
491
|
+
"declarations": [
|
|
492
|
+
{
|
|
493
|
+
"fileName": "src/components/HighlightBox/HighlightBox.tsx",
|
|
494
|
+
"name": "HighlightBoxProps"
|
|
495
|
+
}
|
|
496
|
+
],
|
|
497
|
+
"required": false,
|
|
498
|
+
"type": {
|
|
499
|
+
"name": "string"
|
|
500
|
+
}
|
|
501
|
+
},
|
|
483
502
|
"testId": {
|
|
484
503
|
"defaultValue": null,
|
|
485
504
|
"description": "Sets the data-testid attribute.",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e from"react";import{c as t}from"../../index-d1c0552c.js";import
|
|
1
|
+
import e from"react";import{c as t}from"../../index-d1c0552c.js";import a from"./styles.module.scss";import{A as i,I as l}from"../../constants-dbdea596.js";import{I as r}from"../../Icon-d69d65b3.js";import"../../palette-f206f488.js";import"../../grid-c105cad1.js";import{u as s,B as o}from"../../useBreakpoint-a74f5af5.js";import"../../_tslib-b219470a.js";import"../../useUuid-3b1e73f2.js";import"../../_rollupPluginBabelHelpers-0f007973.js";import"../../uuid-11037462.js";var c;!function(e){e.medium="medium",e.large="large",e.fluid="fluid"}(c||(c={}));var m=function(i){var l=i.className,r=i.size,s=i.children;return e.createElement("div",{className:l,"data-testid":"highlightbox-wrapper"},e.createElement("div",{className:a.highlightbox__row},e.createElement("div",{className:t(a.highlightbox__col,r===c.medium&&a["highlightbox__col--offset"])},s)))},n=function(i){var l=i.children;return e.createElement("div",{className:a["highlightbox__content-wrapper"]},e.createElement("div",{className:t(a.highlightbox__row)},l))},h=function(h){var d=h.children,g=h.color,u=void 0===g?"white":g,f=h.size,_=void 0===f?c.medium:f,p=h.testId,b=h.svgIcon,x=h.htmlMarkup,v=void 0===x?"div":x,E=h.className,N=s(),j=t(a.highlightbox,a["highlightbox--".concat(u)],a["highlightbox--".concat(_)],b&&a["highlightbox--has-icon"],{container:"medium"===_||"large"===_},E),w=function(){if(b){var t=_===c.large&&N&&N>=o.md?l.Medium:l.Small;return e.createElement(e.Fragment,null,e.createElement("div",{className:a.highlightbox__icon},e.createElement(r,{svgIcon:b,size:t})),e.createElement("div",{className:a.highlightbox__content},d))}return d},z=v;return _===c.medium?e.createElement(m,{className:j,size:_},e.createElement(z,{className:a["highlightbox__content-wrapper"],"data-testid":p,"data-analyticsid":i.HighlightBox},w())):_===c.large&&b?e.createElement(m,{className:j,size:_},e.createElement(n,null,e.createElement(z,{className:t(a.highlightbox__col,a["highlightbox__col--large-with-icon"]),"data-testid":p,"data-analyticsid":i.HighlightBox},w()))):_===c.large?e.createElement(m,{className:j,size:_},e.createElement(n,null,e.createElement(z,{className:t(a.highlightbox__col,a["highlightbox__col--offset"]),"data-testid":p,"data-analyticsid":i.HighlightBox},w()))):_===c.fluid?e.createElement(z,{className:j,"data-testid":p},w()):null};export{c as HighlightBoxSize,h as default};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{H as HorizontalScroll,H as default}from"../../HorizontalScroll-
|
|
1
|
+
export{H as HorizontalScroll,H as default}from"../../HorizontalScroll-a4634c75.js";import"react";import"../../index-d1c0552c.js";import"../../useIsVisible-2ffbdea2.js";import"../../_rollupPluginBabelHelpers-0f007973.js";import"./styles.module.scss";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{b as ModalSize,a as ModalVariants,M as default}from"../../Modal-
|
|
1
|
+
export{b as ModalSize,a as ModalVariants,M as default}from"../../Modal-5a949869.js";import"../../_rollupPluginBabelHelpers-0f007973.js";import"react";import"../../index-d1c0552c.js";import"../../palette-f206f488.js";import"../../Button-78f848e6.js";import"../../_tslib-b219470a.js";import"../../constants-dbdea596.js";import"../../color-e7d082c1.js";import"../../index-d1c9177a.js";import"../../grid-c105cad1.js";import"../../Icon-d69d65b3.js";import"../../useUuid-3b1e73f2.js";import"../../uuid-11037462.js";import"../../Loader-06293a27.js";import"../Loader/styles.module.scss";import"../../useHover-18479690.js";import"../../useBreakpoint-a74f5af5.js";import"../Button/styles.module.scss";import"./styles.module.scss";import"../../AlertSignStroke-32f09751.js";import"../../AlertSignFill-5df5b7c7.js";import"../../useFocusTrap-4a5fb65d.js";import"../../useIsVisible-2ffbdea2.js";import"../../Title-01820508.js";import"../Title/styles.module.scss";import"../../Close-08d48540.js";import"../../X-867957f2.js";import"../Close/styles.module.scss";import"../../CheckOutline-86cddefd.js";import"../../index-28ed5ede.js";import"react-dom";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Panel.d.ts","sourceRoot":"","sources":["../../../src/components/Panel/Panel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAI3D,OAAc,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAe,EAAE,WAAW,EAAE,UAAU,EAAkB,MAAM,WAAW,CAAC;AAC5E,OAAO,EAAE,YAAY,EAAe,MAAM,iBAAiB,CAAC;AAgB5D,oBAAY,WAAW;IACrB,MAAM,WAAW;IACjB,GAAG,QAAQ;IACX,KAAK,UAAU;IACf,KAAK,UAAU;CAChB;AAED,oBAAY,YAAY;IACtB,IAAI,SAAS;IACb,KAAK,U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C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,wCAAwC;IACxC,QAAQ,CAAC,EAAE,CAAC,UAAU,EAAE,OAAO,KAAK,IAAI,CAAC;CAC1C;AA2ED,QAAA,MAAM,KAAK,uFAyMT,CAAC;AAEH,eAAe,KAAK,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{c as PanelLayout,a as PanelStatus,b as PanelVariant,P as default}from"../../Panel-
|
|
1
|
+
export{c as PanelLayout,a as PanelStatus,b as PanelVariant,P as default}from"../../Panel-a05f45f0.js";import"../../_rollupPluginBabelHelpers-0f007973.js";import"../../_tslib-b219470a.js";import"react";import"../../index-d1c0552c.js";import"./styles.module.scss";import"../../Title-01820508.js";import"../Title/styles.module.scss";import"../../constants-dbdea596.js";import"../../Button-78f848e6.js";import"../../color-e7d082c1.js";import"../../index-d1c9177a.js";import"../../palette-f206f488.js";import"../../grid-c105cad1.js";import"../../Icon-d69d65b3.js";import"../../useUuid-3b1e73f2.js";import"../../uuid-11037462.js";import"../../Loader-06293a27.js";import"../Loader/styles.module.scss";import"../../useHover-18479690.js";import"../../useBreakpoint-a74f5af5.js";import"../Button/styles.module.scss";import"../../ChevronDown-2b3daace.js";import"../../ChevronUp-dfafe27b.js";import"../../ArrowRight-43c97f7a.js";import"../../AlertSignFill-5df5b7c7.js";import"../../Pencil-dd3fe667.js";import"../../Calendar-a9aa98de.js";import"../../Watch-3d5fc351.js";import"../../usePrevious-ae293b10.js";import"../../Badge-eebcb720.js";import"../Badge/styles.module.scss";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -25,11 +25,22 @@
|
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
+
@mixin hover-and-focus-effects($background-color, $box-shadow-color) {
|
|
29
|
+
&:hover {
|
|
30
|
+
background-color: $background-color;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&:focus {
|
|
34
|
+
box-shadow: inset 0px 0px 0px 3px $box-shadow-color;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
28
38
|
.panel {
|
|
29
39
|
@include panel-padding;
|
|
30
40
|
outline: none;
|
|
31
41
|
position: relative;
|
|
32
42
|
width: 100%;
|
|
43
|
+
box-sizing: border-box;
|
|
33
44
|
|
|
34
45
|
&__container {
|
|
35
46
|
@media (min-width: map-get($grid-breakpoints, sm)) {
|
|
@@ -112,7 +123,6 @@
|
|
|
112
123
|
flex-direction: column;
|
|
113
124
|
@media (min-width: map-get($grid-breakpoints, lg)) {
|
|
114
125
|
align-self: end;
|
|
115
|
-
max-width: 300px;
|
|
116
126
|
}
|
|
117
127
|
|
|
118
128
|
&--layout3 {
|
|
@@ -129,7 +139,8 @@
|
|
|
129
139
|
}
|
|
130
140
|
|
|
131
141
|
&__details-btn {
|
|
132
|
-
|
|
142
|
+
|
|
143
|
+
@media (min-width: map-get($grid-breakpoints, lg)) {
|
|
133
144
|
align-self: end;
|
|
134
145
|
}
|
|
135
146
|
}
|
|
@@ -138,19 +149,13 @@
|
|
|
138
149
|
|
|
139
150
|
&--fill {
|
|
140
151
|
background-color: $neutral50;
|
|
141
|
-
|
|
142
|
-
&:hover {
|
|
143
|
-
background-color: $neutral100;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
&:focus {
|
|
147
|
-
box-shadow: inset 0px 0px 0px 3px $neutral600;
|
|
148
|
-
}
|
|
149
152
|
}
|
|
150
153
|
|
|
151
|
-
&--
|
|
154
|
+
&--fill#{&}--selected {
|
|
152
155
|
background-color: $neutral100;
|
|
153
|
-
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
&--fill#{&}--selected#{&}--clickable {
|
|
154
159
|
&:hover {
|
|
155
160
|
background-color: $neutral200;
|
|
156
161
|
}
|
|
@@ -158,32 +163,25 @@
|
|
|
158
163
|
|
|
159
164
|
&--white {
|
|
160
165
|
background-color: $white;
|
|
161
|
-
&:hover {
|
|
162
|
-
background-color: $neutral100;
|
|
163
|
-
}
|
|
164
|
-
&:focus {
|
|
165
|
-
box-shadow: inset 0px 0px 0px 3px $neutral600;
|
|
166
|
-
}
|
|
167
166
|
}
|
|
168
167
|
|
|
169
|
-
&--
|
|
168
|
+
&--fill#{&}--clickable,
|
|
169
|
+
&--white#{&}--clickable {
|
|
170
|
+
@include hover-and-focus-effects($neutral100, $neutral600);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
&--white#{&}--selected {
|
|
170
174
|
box-shadow: inset 0px 0px 0px 6px $neutral100;
|
|
171
|
-
&:hover {
|
|
172
|
-
background-color: $neutral100;
|
|
173
|
-
}
|
|
174
|
-
&:focus {
|
|
175
|
-
box-shadow: inset 0px 0px 0px 3px $neutral600;
|
|
176
|
-
}
|
|
177
175
|
}
|
|
178
176
|
|
|
179
177
|
&--stroke {
|
|
180
178
|
border: 6px solid $neutral100;
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
&--stroke#{&}--clickable {
|
|
182
|
+
@include hover-and-focus-effects($neutral50, $neutral100);
|
|
184
183
|
&:focus {
|
|
185
184
|
border-color: $neutral600;
|
|
186
|
-
box-shadow: inset 0px 0px 0px 3px $neutral100;
|
|
187
185
|
}
|
|
188
186
|
}
|
|
189
187
|
|
|
@@ -192,22 +190,23 @@
|
|
|
192
190
|
border-color: $neutral500;
|
|
193
191
|
border-top: 1px solid;
|
|
194
192
|
border-bottom: 1px solid;
|
|
195
|
-
&:hover {
|
|
196
|
-
background-color: $neutral50;
|
|
197
|
-
}
|
|
198
|
-
&:focus {
|
|
199
|
-
border-color: transparent;
|
|
200
|
-
box-shadow: inset 0px 0px 0px 3px $neutral600;
|
|
201
|
-
}
|
|
202
193
|
}
|
|
203
194
|
|
|
204
|
-
&--
|
|
195
|
+
&--line#{&}--clickable {
|
|
196
|
+
@include hover-and-focus-effects($neutral50, $neutral600);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
&--line#{&}--selected {
|
|
205
200
|
background-color: $neutral50;
|
|
206
201
|
border-bottom: 0;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
&--line#{&}--selected#{&}--clickable {
|
|
207
205
|
&:hover {
|
|
208
206
|
background-color: $neutral100;
|
|
209
207
|
}
|
|
210
208
|
}
|
|
209
|
+
|
|
211
210
|
&--no-top-border#{&}--line {
|
|
212
211
|
border-top: none;
|
|
213
212
|
}
|
|
@@ -254,7 +253,8 @@
|
|
|
254
253
|
@include panel-padding;
|
|
255
254
|
|
|
256
255
|
&--open {
|
|
257
|
-
display:
|
|
256
|
+
display: flex;
|
|
257
|
+
flex-direction: column;
|
|
258
258
|
}
|
|
259
259
|
&--line {
|
|
260
260
|
background: $white;
|
|
@@ -15,10 +15,11 @@ export type Styles = {
|
|
|
15
15
|
'panel__content-right--layout3a': string;
|
|
16
16
|
'panel__content-right--layout3b': string;
|
|
17
17
|
'panel__content-right--layout3c': string;
|
|
18
|
-
'panel__details-btn
|
|
18
|
+
'panel__details-btn': string;
|
|
19
19
|
panel__icon: string;
|
|
20
20
|
'panel__icon--right': string;
|
|
21
21
|
'panel--button': string;
|
|
22
|
+
'panel--clickable': string;
|
|
22
23
|
'panel--draft': string;
|
|
23
24
|
'panel--error': string;
|
|
24
25
|
'panel--fill': string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import s from"react";import e from"./styles.module.scss";import{A as t}from"../../constants-dbdea596.js";import{b as r,P as o}from"../../Panel-
|
|
1
|
+
import s from"react";import e from"./styles.module.scss";import{A as t}from"../../constants-dbdea596.js";import{b as r,P as o}from"../../Panel-a05f45f0.js";import{c as i}from"../../index-d1c0552c.js";import"../../_rollupPluginBabelHelpers-0f007973.js";import"../../_tslib-b219470a.js";import"../Panel/styles.module.scss";import"../../Title-01820508.js";import"../Title/styles.module.scss";import"../../Button-78f848e6.js";import"../../color-e7d082c1.js";import"../../index-d1c9177a.js";import"../../palette-f206f488.js";import"../../grid-c105cad1.js";import"../../Icon-d69d65b3.js";import"../../useUuid-3b1e73f2.js";import"../../uuid-11037462.js";import"../../Loader-06293a27.js";import"../Loader/styles.module.scss";import"../../useHover-18479690.js";import"../../useBreakpoint-a74f5af5.js";import"../Button/styles.module.scss";import"../../ChevronDown-2b3daace.js";import"../../ChevronUp-dfafe27b.js";import"../../ArrowRight-43c97f7a.js";import"../../AlertSignFill-5df5b7c7.js";import"../../Pencil-dd3fe667.js";import"../../Calendar-a9aa98de.js";import"../../Watch-3d5fc351.js";import"../../usePrevious-ae293b10.js";import"../../Badge-eebcb720.js";import"../Badge/styles.module.scss";var a=s.forwardRef((function(a,l){var m=a.testId,p=a.children,d=a.variant,n=void 0===d?r.fill:d;return s.createElement("div",{ref:l,"data-testid":m,className:e["panel-list"],"data-analyticsid":t.PanelList},s.Children.map(p,(function(t,a){return p=t,s.isValidElement(p)&&p.type===o?(l=t,m=0===a,s.cloneElement(l,{variant:n,noTopBorder:n===r.line&&!m,className:i(l.props.className,n!==r.line&&e["panel-list__panel"])})):t;var l,m,p})))}));export{a as default};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{d as e}from"../../_rollupPluginBabelHelpers-0f007973.js";import o from"react";import{c as r}from"../../index-d1c0552c.js";import s from"./styles.module.scss";import{A as l}from"../../constants-dbdea596.js";import{H as t}from"../../HorizontalScroll-
|
|
1
|
+
import{d as e}from"../../_rollupPluginBabelHelpers-0f007973.js";import o from"react";import{c as r}from"../../index-d1c0552c.js";import s from"./styles.module.scss";import{A as l}from"../../constants-dbdea596.js";import{H as t}from"../../HorizontalScroll-a4634c75.js";export{T as TableBody}from"../../TableBody-eac2c23b.js";export{T as TableCell,a as TextAlign}from"../../TableCell-cc644eb5.js";export{T as TableExpandedRow}from"../../TableExpandedRow-44b09912.js";export{T as TableExpanderCell}from"../../TableExpanderCell-015d3db2.js";export{H as HeaderCategory,T as TableHead}from"../../TableHead-5ed58948.js";export{S as SortDirection,T as TableHeadCell}from"../../TableHeadCell-84651910.js";export{T as TableRow}from"../../TableRow-692099ee.js";import"../../useIsVisible-2ffbdea2.js";import"../HorizontalScroll/styles.module.scss";import"../../Button-78f848e6.js";import"../../_tslib-b219470a.js";import"../../color-e7d082c1.js";import"../../index-d1c9177a.js";import"../../palette-f206f488.js";import"../../grid-c105cad1.js";import"../../Icon-d69d65b3.js";import"../../useUuid-3b1e73f2.js";import"../../uuid-11037462.js";import"../../Loader-06293a27.js";import"../Loader/styles.module.scss";import"../../useHover-18479690.js";import"../../useBreakpoint-a74f5af5.js";import"../Button/styles.module.scss";import"../../ChevronUp-dfafe27b.js";import"../../ChevronDown-2b3daace.js";import"../../ArrowUp-e7787d9c.js";import"../../ArrowDown-88b2c27a.js";var i;!function(e){e.horizontalscroll="horizontalscroll",e.block="block"}(i||(i={}));var d=function(a){var d=a.id,m=a.testId,p=a.className,c=a.children,b=a.smallViewportVariant,n=void 0===b?i.horizontalscroll:b,j=r(s.table,e({},s["table--collapse2col"],n===i.block),p);return o.createElement(t,null,o.createElement("table",{className:j,id:d,"data-testid":m,"data-analyticsid":l.Table},c))};export{i as SmallViewportVariant,d as Table,d as default};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/hooks/useIsVisible.d.ts
CHANGED
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
* @param ref Element som skal observeres
|
|
5
5
|
* @param threshold Hvor synlig må elementet være? Default = 1 (helt synlig)
|
|
6
6
|
* @param options Objekt med options for IntersectionObserver, f.eks. threshold for å bestemme når callbacken skal fyres
|
|
7
|
+
* @param initial Om elementet default skal antas å være synlig eller ikke. Default: ikke synlig
|
|
7
8
|
* @returns true hvis objektet er synlig lik threshold eller mer, false hvis ikke
|
|
8
9
|
*/
|
|
9
|
-
export declare const useIsVisible: (ref: React.RefObject<HTMLElement>, threshold?: number, options?: IntersectionObserverInit | undefined) => boolean;
|
|
10
|
+
export declare const useIsVisible: (ref: React.RefObject<HTMLElement>, threshold?: number, options?: IntersectionObserverInit | undefined, initial?: boolean) => boolean;
|
|
10
11
|
//# sourceMappingURL=useIsVisible.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useIsVisible.d.ts","sourceRoot":"","sources":["../../src/hooks/useIsVisible.ts"],"names":[],"mappings":"AAGA
|
|
1
|
+
{"version":3,"file":"useIsVisible.d.ts","sourceRoot":"","sources":["../../src/hooks/useIsVisible.ts"],"names":[],"mappings":"AAGA;;;;;;;;GAQG;AACH,eAAO,MAAM,YAAY,QAClB,MAAM,SAAS,CAAC,WAAW,CAAC,4FAIhC,OAUF,CAAC"}
|
package/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{t as theme}from"./index-d1c9177a.js";export{B as Breakpoint,u as useBreakpoint}from"./useBreakpoint-a74f5af5.js";export{u as useFocusToggle,a as useFocusTrap}from"./useFocusTrap-4a5fb65d.js";export{u as useHover}from"./useHover-18479690.js";export{u as useIntersectionObserver,a as useIsVisible}from"./useIsVisible-
|
|
1
|
+
export{t as theme}from"./index-d1c9177a.js";export{B as Breakpoint,u as useBreakpoint}from"./useBreakpoint-a74f5af5.js";export{u as useFocusToggle,a as useFocusTrap}from"./useFocusTrap-4a5fb65d.js";export{u as useHover}from"./useHover-18479690.js";export{u as useIntersectionObserver,a as useIsVisible}from"./useIsVisible-2ffbdea2.js";import{d as e}from"./useSticky-432642c9.js";export{u as useLayoutEvent,a as useSticky}from"./useSticky-432642c9.js";export{u as usePrevious}from"./usePrevious-ae293b10.js";import{_ as s,a as r}from"./_rollupPluginBabelHelpers-0f007973.js";import{useState as o,useEffect as n}from"react";export{b as useKeyboardEvent,c as useOutsideEvent,u as useResizeObserver,a as useToggle}from"./useOutsideEvent-fb86686d.js";export{u as useUuid}from"./useUuid-3b1e73f2.js";export{u as uuid}from"./uuid-11037462.js";export{A as AnalyticsId,F as FormMode,a as FormVariant,I as IconSize,K as KeyboardEventKey,Z as ZIndex}from"./constants-dbdea596.js";import"./palette-f206f488.js";import"./grid-c105cad1.js";var i=function(t){var u=o(),a=s(u,2),i=a[0],f=a[1];return n((function(){if("undefined"!=typeof ResizeObserver){var o=new ResizeObserver((function(e){f(e[0].target.getBoundingClientRect())}));return(null==t?void 0:t.current)&&o.observe(null==t?void 0:t.current),o.disconnect}if("object"===("undefined"==typeof window?"undefined":r(window))){var u=["layoutchange","resize","orientationchange"],n=e((function(){(null==t?void 0:t.current)&&f(t.current.getBoundingClientRect())}),10),a=s(n,2),i=a[0],d=a[1];return u.forEach((function(e){return window.addEventListener(e,i)})),i(),function(){d(),u.forEach((function(e){return window.removeEventListener(e,i)}))}}}),[t]),i};export{i as useSize};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{_ as r}from"./_rollupPluginBabelHelpers-0f007973.js";import{useEffect as n,useState as e}from"react";var t=function(r,e,t){n((function(){var n=new IntersectionObserver(e,t);return(null==r?void 0:r.current)&&n.observe(r.current),function(){(null==r?void 0:r.current)&&n.unobserve(r.current)}}),[r,t])},o=function(n){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,i=arguments.length>2?arguments[2]:void 0,u=e(
|
|
2
|
-
//# sourceMappingURL=useIsVisible-
|
|
1
|
+
import{_ as r}from"./_rollupPluginBabelHelpers-0f007973.js";import{useEffect as n,useState as e}from"react";var t=function(r,e,t){n((function(){var n=new IntersectionObserver(e,t);return(null==r?void 0:r.current)&&n.observe(r.current),function(){(null==r?void 0:r.current)&&n.unobserve(r.current)}}),[r,t])},o=function(n){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,i=arguments.length>2?arguments[2]:void 0,u=arguments.length>3&&void 0!==arguments[3]&&arguments[3],c=e(u),l=r(c,2),s=l[0],a=l[1],v=function(r){a(r[0].intersectionRatio>=o)};return t(n,v,Object.assign({threshold:o},i)),s};export{o as a,t as u};
|
|
2
|
+
//# sourceMappingURL=useIsVisible-2ffbdea2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useIsVisible-2ffbdea2.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import r,{useRef as o}from"react";import{c as l}from"./index-d1c0552c.js";import{a as e}from"./useIsVisible-27ff4012.js";import i from"./components/HorizontalScroll/styles.module.scss";var t=function(t){var a=t.children,n=o(null),c=o(null),s=o(null),m=e(c,1,{root:null==n?void 0:n.current,rootMargin:"3px"}),d=e(s,1,{root:null==n?void 0:n.current,rootMargin:"3px"});return r.createElement("div",{className:i.horizontalscroll},r.createElement("div",{className:i.horizontalscroll__viewport,ref:n},r.createElement("div",{className:l(i.horizontalscroll__indicator,i["horizontalscroll__indicator--left"],!m&&i["horizontalscroll__indicator--visible"])}),r.createElement("div",{className:l(i.horizontalscroll__indicator,i["horizontalscroll__indicator--right"],!d&&i["horizontalscroll__indicator--visible"])}),r.createElement("div",{ref:c}),a,r.createElement("div",{ref:s})))};export{t as H};
|
|
2
|
-
//# sourceMappingURL=HorizontalScroll-d65b118a.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"HorizontalScroll-d65b118a.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/Modal-eebb821b.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Modal-eebb821b.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/Panel-1ce6fe37.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Panel-1ce6fe37.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useIsVisible-27ff4012.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|