@helsenorge/designsystem-react 1.0.0-beta128 → 1.0.0-beta131
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/AlertSignFill-d3dec2b7.js +2 -0
- package/AlertSignFill-d3dec2b7.js.map +1 -0
- package/AlertSignStroke-1ed8ac91.js +2 -0
- package/AlertSignStroke-1ed8ac91.js.map +1 -0
- package/ArrowRight-36582929.js +2 -0
- package/ArrowRight-36582929.js.map +1 -0
- package/ArrowUpRight-b1c285b5.js +2 -0
- package/ArrowUpRight-b1c285b5.js.map +1 -0
- package/Badge-331d223c.js +2 -0
- package/Badge-331d223c.js.map +1 -0
- package/Button-1352276a.js +2 -0
- package/Button-1352276a.js.map +1 -0
- package/Calendar-1e4e051c.js +2 -0
- package/Calendar-1e4e051c.js.map +1 -0
- package/Check-cc284473.js +2 -0
- package/Check-cc284473.js.map +1 -0
- package/CheckOutline-86cddefd.js +2 -0
- package/CheckOutline-86cddefd.js.map +1 -0
- package/Checkbox-da15e778.js +2 -0
- package/Checkbox-da15e778.js.map +1 -0
- package/ChevronDown-43493477.js +2 -0
- package/ChevronDown-43493477.js.map +1 -0
- package/ChevronRight-92a5c973.js +2 -0
- package/ChevronRight-92a5c973.js.map +1 -0
- package/ChevronUp-9eb92084.js +2 -0
- package/ChevronUp-9eb92084.js.map +1 -0
- package/Close-b9893f24.js +2 -0
- package/Close-b9893f24.js.map +1 -0
- package/FormGroup-88d9b47b.js +2 -0
- package/FormGroup-88d9b47b.js.map +1 -0
- package/FormLayout-eea065d7.js +2 -0
- package/FormLayout-eea065d7.js.map +1 -0
- package/Group-eab5fd2c.js +2 -0
- package/Group-eab5fd2c.js.map +1 -0
- package/Hospital-d19ce10d.js +2 -0
- package/Hospital-d19ce10d.js.map +1 -0
- package/Icon-a7d7e9bc.js +2 -0
- package/Icon-a7d7e9bc.js.map +1 -0
- package/InfoSignStroke-f9673970.js +2 -0
- package/InfoSignStroke-f9673970.js.map +1 -0
- package/Input-a4c88ad6.js +2 -0
- package/Input-a4c88ad6.js.map +1 -0
- package/{Loader-79187de4.js → Loader-bef282a3.js} +2 -2
- package/Loader-bef282a3.js.map +1 -0
- package/Modal-eb332fa2.js +2 -0
- package/Modal-eb332fa2.js.map +1 -0
- package/NoAccess-e1cfd26c.js +2 -0
- package/NoAccess-e1cfd26c.js.map +1 -0
- package/Panel-05b1d255.js +2 -0
- package/Panel-05b1d255.js.map +1 -0
- package/Pencil-3d446c44.js +2 -0
- package/Pencil-3d446c44.js.map +1 -0
- package/PlusSmall-d3a22064.js +2 -0
- package/PlusSmall-d3a22064.js.map +1 -0
- package/{RadioButton-692ed90a.js → RadioButton-f9d660f9.js} +2 -2
- package/RadioButton-f9d660f9.js.map +1 -0
- package/{Textarea-f2b34d54.js → Textarea-d37d10a4.js} +2 -2
- package/Textarea-d37d10a4.js.map +1 -0
- package/{Title-face7728.js → Title-2c8d1f64.js} +2 -2
- package/Title-2c8d1f64.js.map +1 -0
- package/Undo-44981995.js +2 -0
- package/Undo-44981995.js.map +1 -0
- package/{Validation-f34d539c.js → Validation-5e138927.js} +2 -2
- package/Validation-5e138927.js.map +1 -0
- package/Watch-4d83e54d.js +2 -0
- package/Watch-4d83e54d.js.map +1 -0
- package/X-9ca7b3e9.js +2 -0
- package/X-9ca7b3e9.js.map +1 -0
- package/_rollupPluginBabelHelpers-0f007973.js +1 -1
- package/_tslib-b219470a.js +2 -0
- package/_tslib-b219470a.js.map +1 -0
- package/components/AnchorLink/componentdata.json +1 -1
- package/components/AnchorLink/index.js +1 -1
- package/components/Avatar/index.js +1 -1
- package/components/Badge/componentdata.json +2 -2
- package/components/Badge/index.js +1 -1
- package/components/Button/componentdata.json +4 -4
- package/components/Button/index.js +1 -1
- package/components/ButtonWithModal/componentdata.json +1 -1
- package/components/ButtonWithModal/index.js +1 -1
- package/components/Checkbox/index.js +1 -1
- package/components/Close/Close.d.ts.map +1 -1
- package/components/Close/index.js +1 -1
- package/components/Dropdown/index.js +1 -1
- package/components/Dropdown/styles.module.scss +1 -1
- package/components/Dropdown/styles.module.scss.d.ts +25 -0
- package/components/Expander/Expander.d.ts.map +1 -1
- package/components/Expander/componentdata.json +2 -2
- package/components/Expander/index.js +1 -1
- package/components/ExpanderList/ExpanderList.d.ts.map +1 -1
- package/components/ExpanderList/componentdata.json +1 -1
- package/components/ExpanderList/index.js +1 -1
- package/components/FormExample/FormExample.d.ts.map +1 -1
- package/components/FormExample/index.js +1 -1
- package/components/FormExample/index.js.map +1 -1
- package/components/FormGroup/index.js +1 -1
- package/components/FormLayout/index.js +1 -1
- package/components/HighlightBox/componentdata.json +3 -3
- package/components/HighlightBox/index.js +1 -1
- package/components/HighlightBox/styles.module.scss.d.ts +2345 -0
- package/components/Icons/AcupunctureBack.js +1 -1
- package/components/Icons/AdditionalIconInformation.js +1 -1
- package/components/Icons/AdditionalIconInformation.js.map +1 -1
- package/components/Icons/AlarmClock.js +1 -1
- package/components/Icons/AlertSignFill.js +1 -1
- package/components/Icons/AlertSignStroke.js +1 -1
- package/components/Icons/Archive.js +1 -1
- package/components/Icons/ArrowLeft.js +1 -1
- package/components/Icons/ArrowRight.js +1 -1
- package/components/Icons/ArrowUpRight.js +1 -1
- package/components/Icons/Attachment.js +1 -1
- package/components/Icons/Avatar.js +1 -1
- package/components/Icons/Bus.js +1 -1
- package/components/Icons/Calendar.js +1 -1
- package/components/Icons/CalendarChange.js +1 -1
- package/components/Icons/CalendarCheck.js +1 -1
- package/components/Icons/CalendarSave.js +1 -1
- package/components/Icons/Change.js +1 -1
- package/components/Icons/Check.js +1 -1
- package/components/Icons/CheckFill.js +1 -1
- package/components/Icons/CheckOutline.js +1 -1
- package/components/Icons/ChevronDown.js +1 -1
- package/components/Icons/ChevronLeft.js +1 -1
- package/components/Icons/ChevronRight.js +1 -1
- package/components/Icons/ChevronUp.js +1 -1
- package/components/Icons/ChevronsDown.js +1 -1
- package/components/Icons/ChevronsUp.js +1 -1
- package/components/Icons/Contacts.js +1 -1
- package/components/Icons/Copy.js +1 -1
- package/components/Icons/Download.js +1 -1
- package/components/Icons/EChat.js +1 -1
- package/components/Icons/EnterFullScreen.js +1 -1
- package/components/Icons/Envelope.js +1 -1
- package/components/Icons/Eraser.js +1 -1
- package/components/Icons/ErrorSignFill.js +1 -1
- package/components/Icons/ErrorSignStroke.js +1 -1
- package/components/Icons/ExitFullScreen.js +1 -1
- package/components/Icons/Eye.js +1 -1
- package/components/Icons/Form.js +1 -1
- package/components/Icons/Forward.js +1 -1
- package/components/Icons/Gallery.js +1 -1
- package/components/Icons/Globe.js +1 -1
- package/components/Icons/Group.js +1 -1
- package/components/Icons/Heart.js +1 -1
- package/components/Icons/HelpSign.js +1 -1
- package/components/Icons/History.js +1 -1
- package/components/Icons/Home.js +1 -1
- package/components/Icons/Hospital.js +1 -1
- package/components/Icons/Hourglass.js +1 -1
- package/components/Icons/Icon.d.ts.map +1 -1
- package/components/Icons/Icon.js +1 -1
- package/components/Icons/InfoSignFill.js +1 -1
- package/components/Icons/InfoSignStroke.js +1 -1
- package/components/Icons/Journal.js +1 -1
- package/components/Icons/List.js +1 -1
- package/components/Icons/Location.js +1 -1
- package/components/Icons/Lock.js +1 -1
- package/components/Icons/Medicine.js +1 -1
- package/components/Icons/Menu.js +1 -1
- package/components/Icons/Minus.js +1 -1
- package/components/Icons/MobilePhone.js +1 -1
- package/components/Icons/NoAccess.js +1 -1
- package/components/Icons/NoEye.js +1 -1
- package/components/Icons/NoFilter.js +1 -1
- package/components/Icons/PaperPlane.js +1 -1
- package/components/Icons/Pause.js +1 -1
- package/components/Icons/Pencil.js +1 -1
- package/components/Icons/Play.js +1 -1
- package/components/Icons/PlusLarge.js +1 -1
- package/components/Icons/PlusSmall.js +1 -1
- package/components/Icons/Printer.js +1 -1
- package/components/Icons/QrCode.js +1 -1
- package/components/Icons/Receptionist.js +1 -1
- package/components/Icons/Referral.js +1 -1
- package/components/Icons/Refresh.js +1 -1
- package/components/Icons/Reply.js +1 -1
- package/components/Icons/Save.js +1 -1
- package/components/Icons/Search.js +1 -1
- package/components/Icons/SectionSign.js +1 -1
- package/components/Icons/Settings.js +1 -1
- package/components/Icons/Share.js +1 -1
- package/components/Icons/SpeechBubble.js +1 -1
- package/components/Icons/Stopwatch.js +1 -1
- package/components/Icons/SupportingPerson.js +1 -1
- package/components/Icons/Syringe.js +1 -1
- package/components/Icons/TimePassing.js +1 -1
- package/components/Icons/Toolbox.js +1 -1
- package/components/Icons/TrashCan.js +1 -1
- package/components/Icons/Undo.js +1 -1
- package/components/Icons/Upload.js +1 -1
- package/components/Icons/Vaccine.js +1 -1
- package/components/Icons/VerticalDots.js +1 -1
- package/components/Icons/VideoCamera.js +1 -1
- package/components/Icons/VideoChat.js +1 -1
- package/components/Icons/Wallet.js +1 -1
- package/components/Icons/Watch.js +1 -1
- package/components/Icons/X.js +1 -1
- package/components/Icons/Zoom.js +1 -1
- package/components/Icons/componentdata.json +2 -2
- package/components/Icons/index.js +1 -1
- package/components/Input/componentdata.json +1 -1
- package/components/Input/index.js +1 -1
- package/components/LinkList/componentdata.json +1 -1
- package/components/LinkList/index.js +1 -1
- package/components/List/index.js +1 -1
- package/components/Loader/componentdata.json +2 -2
- package/components/Loader/index.js +1 -1
- package/components/Loader/styles.module.scss +1 -1
- package/components/Loader/styles.module.scss.d.ts +37 -34
- package/components/Logo/componentdata.json +1 -1
- package/components/Logo/index.js +1 -1
- package/components/Modal/Modal.d.ts.map +1 -1
- package/components/Modal/componentdata.json +1 -1
- package/components/Modal/index.js +1 -1
- package/components/NotificationPanel/componentdata.json +2 -2
- package/components/NotificationPanel/index.js +1 -1
- package/components/Panel/componentdata.json +1 -1
- package/components/Panel/index.js +1 -1
- package/components/Panel/styles.module.scss.d.ts +2356 -15
- package/components/PanelList/index.js +1 -1
- package/components/PanelList/styles.module.scss.d.ts +2329 -0
- package/components/Portal/index.js +1 -1
- package/components/RadioButton/index.js +1 -1
- package/components/Slider/SliderUtils.d.ts +3 -4
- package/components/Slider/SliderUtils.d.ts.map +1 -1
- package/components/Slider/index.js +1 -1
- package/components/Spacer/componentdata.json +1 -1
- package/components/Spacer/index.js +1 -1
- package/components/StatusDot/index.js +1 -1
- package/components/Tag/componentdata.json +3 -3
- package/components/Tag/index.js +1 -1
- package/components/Textarea/index.js +1 -1
- package/components/Tile/componentdata.json +3 -3
- package/components/Tile/index.js +1 -1
- package/components/Title/Title.d.ts.map +1 -1
- package/components/Title/index.js +1 -1
- package/components/Validation/index.js +1 -1
- package/hooks/focus-utils.d.ts +1 -1
- package/hooks/focus-utils.d.ts.map +1 -1
- package/hooks/useBreakpoint.d.ts.map +1 -1
- package/hooks/useFocusToggle.d.ts.map +1 -1
- package/hooks/useFocusTrap.d.ts.map +1 -1
- package/hooks/useHover.d.ts.map +1 -1
- package/hooks/useIcons.d.ts +1 -2
- package/hooks/useIcons.d.ts.map +1 -1
- package/hooks/useIntersectionObserver.d.ts +1 -2
- package/hooks/useIntersectionObserver.d.ts.map +1 -1
- package/hooks/useIsVisible.d.ts +1 -2
- package/hooks/useIsVisible.d.ts.map +1 -1
- package/hooks/useKeyboardEvent.d.ts +1 -2
- package/hooks/useKeyboardEvent.d.ts.map +1 -1
- package/hooks/useLayoutEvent.d.ts.map +1 -1
- package/hooks/useOutsideEvent.d.ts +6 -2
- package/hooks/useOutsideEvent.d.ts.map +1 -1
- package/hooks/useResizeObserver.d.ts.map +1 -1
- package/hooks/useSticky.d.ts.map +1 -1
- package/hooks/useToggle.d.ts.map +1 -1
- package/hooks/useUuid.d.ts.map +1 -1
- package/index-d1c0552c.js +7 -0
- package/{index-b4162bbf.js.map → index-d1c0552c.js.map} +1 -1
- package/index-eb155e65.js +2 -0
- package/index-eb155e65.js.map +1 -0
- package/index.d.ts +0 -1
- package/index.d.ts.map +1 -1
- package/index.js +1 -1
- package/package.json +62 -60
- package/scss/_body.scss +4 -0
- package/scss/_breakpoints.scss +2 -0
- package/scss/_grid.scss +1 -1
- package/scss/_grid.scss.d.ts +1104 -0
- package/scss/_print.scss +3 -0
- package/scss/_print.scss.d.ts +49 -0
- package/scss/_reset.scss +1 -1
- package/scss/helsenorge.scss.d.ts +2368 -0
- package/theme/currys/color.d.ts +3 -3
- package/theme/currys/color.d.ts.map +1 -1
- package/theme/currys/spacing.d.ts.map +1 -1
- package/useIsVisible-bef05e5e.js +1 -1
- package/useSticky-abffc922.js +2 -0
- package/useSticky-abffc922.js.map +1 -0
- package/utils/uuid.d.ts.map +1 -1
- package/utils/viewport.d.ts.map +1 -1
- package/Badge-9dc33042.js +0 -2
- package/Badge-9dc33042.js.map +0 -1
- package/Button-438a02c1.js +0 -2
- package/Button-438a02c1.js.map +0 -1
- package/Checkbox-40365d70.js +0 -2
- package/Checkbox-40365d70.js.map +0 -1
- package/Close-df5087c3.js +0 -2
- package/Close-df5087c3.js.map +0 -1
- package/FormGroup-97ca00ea.js +0 -2
- package/FormGroup-97ca00ea.js.map +0 -1
- package/FormLayout-d6b786db.js +0 -2
- package/FormLayout-d6b786db.js.map +0 -1
- package/Input-58069d29.js +0 -2
- package/Input-58069d29.js.map +0 -1
- package/Loader-79187de4.js.map +0 -1
- package/Modal-d7cd8019.js +0 -2
- package/Modal-d7cd8019.js.map +0 -1
- package/Panel-f36456da.js +0 -2
- package/Panel-f36456da.js.map +0 -1
- package/RadioButton-692ed90a.js.map +0 -1
- package/Textarea-f2b34d54.js.map +0 -1
- package/Title-face7728.js.map +0 -1
- package/Validation-f34d539c.js.map +0 -1
- package/_tslib-51c8a283.js +0 -16
- package/_tslib-51c8a283.js.map +0 -1
- package/hooks/useWindowSize.d.ts +0 -5
- package/hooks/useWindowSize.d.ts.map +0 -1
- package/index-b4162bbf.js +0 -8
- package/useSticky-29a434c1.js +0 -2
- package/useSticky-29a434c1.js.map +0 -1
- package/useWindowSize-030df49b.js +0 -2
- package/useWindowSize-030df49b.js.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
export{P as default}from"../../index-eb155e65.js";import"react";import"react-dom";import"../../constants-088e1d4a.js";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
export{R as RadioButton,R as default}from"../../RadioButton-f9d660f9.js";import"../../_rollupPluginBabelHelpers-0f007973.js";import"react";import"../../index-d1c0552c.js";import"../../uuid-11037462.js";import"./styles.module.scss";import"../../constants-088e1d4a.js";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
/** Stopper MouseEvent eller TouchEvent parameter e som sendes inn fra å nå videre.*/
|
|
3
|
-
export declare const stopEvent: (e: MouseEvent |
|
|
2
|
+
export declare const stopEvent: (e: MouseEvent | React.MouseEvent<{}> | TouchEvent | React.TouchEvent<{}>) => boolean;
|
|
4
3
|
/** Henter ut x posisjon til MouseEvent eller TouchEvent e */
|
|
5
|
-
export declare const getMousePosition: (e: MouseEvent |
|
|
4
|
+
export declare const getMousePosition: (e: MouseEvent | React.MouseEvent<{}> | TouchEvent | React.TouchEvent<{}>) => number;
|
|
6
5
|
/** Henter ut width basert på viewport posisjon til parameter elementet el som sendes inn */
|
|
7
6
|
export declare const getElementWidth: (el: HTMLDivElement | null) => number;
|
|
8
7
|
/** Returnerer en boolean på om innsendte event e er en TouchEvent */
|
|
9
|
-
export declare const isTouchEvent: (e: MouseEvent |
|
|
8
|
+
export declare const isTouchEvent: (e: MouseEvent | React.MouseEvent<{}> | TouchEvent | React.TouchEvent<{}>) => boolean;
|
|
10
9
|
/** Kalkulerer x posisjonen til slideren basert på value som sendes inn,
|
|
11
10
|
* trackerWidth - bredden til trackeren, sliderWidth - bredden på slideren,
|
|
12
11
|
* og min og max verdier som er satt på slider komponentet. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SliderUtils.d.ts","sourceRoot":"","sources":["../../../src/components/Slider/SliderUtils.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SliderUtils.d.ts","sourceRoot":"","sources":["../../../src/components/Slider/SliderUtils.tsx"],"names":[],"mappings":"AAAA,qFAAqF;AACrF,eAAO,MAAM,SAAS,MAAO,UAAU,GAAG,gBAAgB,CAAC,EAAE,CAAC,GAAG,UAAU,GAAG,gBAAgB,CAAC,EAAE,CAAC,KAAG,OAIpG,CAAC;AAEF,6DAA6D;AAC7D,eAAO,MAAM,gBAAgB,MAAO,UAAU,GAAG,gBAAgB,CAAC,EAAE,CAAC,GAAG,UAAU,GAAG,gBAAgB,CAAC,EAAE,CAAC,KAAG,MAM3G,CAAC;AAEF,4FAA4F;AAC5F,eAAO,MAAM,eAAe,OAAQ,cAAc,GAAG,IAAI,KAAG,MAG3D,CAAC;AAEF,qEAAqE;AACrE,eAAO,MAAM,YAAY,MAAO,UAAU,GAAG,gBAAgB,CAAC,EAAE,CAAC,GAAG,UAAU,GAAG,gBAAgB,CAAC,EAAE,CAAC,KAAG,OAYvG,CAAC;AAEF;;+DAE+D;AAC/D,eAAO,MAAM,mCAAmC,UACvC,MAAM,gBACC,MAAM,eACP,MAAM,OACd,MAAM,OACN,MAAM,KACV,MAIF,CAAC;AAEF;;+DAE+D;AAC/D,eAAO,MAAM,mCAAmC,mBAC9B,MAAM,gBACR,MAAM,eACP,MAAM,QACb,MAAM,OACP,MAAM,OACN,MAAM,KACV,MAKF,CAAC;AAEF;;gEAEgE;AAChE,eAAO,MAAM,UAAU,UAAW,MAAM,QAAQ,MAAM,OAAO,MAAM,KAAG,MAarE,CAAC;AAEF;;4BAE4B;AAC5B,eAAO,MAAM,yBAAyB,SAAU,MAAM,gBAAgB,MAAM,eAAe,MAAM,cAAc,MAAM,KAAG,MASvH,CAAC;AAEF;uCACuC;AACvC,eAAO,MAAM,wBAAwB,SAC7B,MAAM,iBACG,cAAc,GAAG,IAAI,eACvB,MAAM,UACX,MAAM,KAAK,IAAI,SAMxB,CAAC;AAEF;wDACwD;AACxD,eAAO,MAAM,iBAAiB,yBAA0B,UAAU,KAAK,IAAI,sBAAsB,UAAU,KAAK,IAAI,KAAG,IAGtH,CAAC;AAEF;wDACwD;AACxD,eAAO,MAAM,oBAAoB,yBAA0B,UAAU,KAAK,IAAI,sBAAsB,UAAU,KAAK,IAAI,KAAG,IAGzH,CAAC;AAEF;wDACwD;AACxD,eAAO,MAAM,iBAAiB,yBAA0B,UAAU,KAAK,IAAI,sBAAsB,UAAU,KAAK,IAAI,KAAG,IAGtH,CAAC;AAEF;wDACwD;AACxD,eAAO,MAAM,oBAAoB,yBAA0B,UAAU,KAAK,IAAI,sBAAsB,UAAU,KAAK,IAAI,KAAG,IAGzH,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{_ as e}from"../../_rollupPluginBabelHelpers-0f007973.js";import t,{useState as n,useRef as r,useEffect as a}from"react";import{c as o}from"../../index-
|
|
1
|
+
import{_ as e}from"../../_rollupPluginBabelHelpers-0f007973.js";import t,{useState as n,useRef as r,useEffect as a}from"react";import{c as o}from"../../index-d1c0552c.js";import{T as i}from"../../Title-2c8d1f64.js";import c from"./styles.module.scss";import{A as u}from"../../constants-088e1d4a.js";import"../Title/styles.module.scss";var s=function(e){return e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault(),!1},l=function(e){return m(e)?e.touches[0].pageX:e.pageX},d=function(e){var t=e?e.getBoundingClientRect():void 0;return t?t.right-t.left:0},m=function(e){return("touchcancel"===e.type||"touchend"===e.type||"touchenter"===e.type||"touchleave"===e.type||"touchmove"===e.type||"touchstart"===e.type)&&!(0===e.touches.length)},f=function(e,t,n){var r=e-e%t,a=Math.floor(n/t)*t;e>a&&(e>a+(n-a)/2&&(r=n));return Math.round(r)},v=t.forwardRef((function(m,v){var p=m.title,h=m.labelLeft,_=m.labelRight,g=m.disabled,E=void 0!==g&&g,y=m.step,w=void 0===y?1:y,b=m.onChange,k=m.testId,L=n(50),N=e(L,2),x=N[0],A=N[1],D=n(!1),M=e(D,2),R=M[0],j=M[1],T=n(0),B=e(T,2),C=B[0],P=B[1],I=n(0),S=e(I,2),X=S[0],H=S[1],K=n(0),U=e(K,2),q=U[0],z=U[1],F=n(0),G=e(F,2),J=G[0],O=G[1],Q=v||r(null),V=r(null),W=100,Y=function(e){re(e)},Z=function(e){ne(e)},$=function(e){re(e)},ee=function(e){ne(e)};a((function(){var e=d(Q.current),t=d(V.current);z(function(e,t,n,r,a){return(t-n)/(a-r)*e}(x,e,t,0,W)),P(e),H(t)}),[]),a((function(){R&&(function(e,t){document.addEventListener("mousemove",e,!1),document.addEventListener("mouseup",t,!1)}(Y,Z),function(e,t){document.addEventListener("touchmove",e,!1),document.addEventListener("touchend",t,!1)}($,ee))}),[R]),a((function(){!E&&b&&b(x)}),[x]);var te=function(e){var t;if(!E){var n=d(Q.current),r=d(V.current),a=l(e);!function(e,t,n,r){var a=t?t.getBoundingClientRect():void 0,o=a?a.left:0;r(o?e-(o+n/2):0)}(a,V.current,r,ae),j(!0),O(a),P(n),H(r),null===(t=V.current)||void 0===t||t.focus(),s(e)}},ne=function(e){E||(j(!1),function(e,t){document.removeEventListener("mousemove",e,!1),document.removeEventListener("mouseup",t,!1)}(Y,Z),function(e,t){document.removeEventListener("touchmove",e,!1),document.removeEventListener("touchend",t,!1)}($,ee),s(e))},re=function(e){if(!E&&R){var t=l(e);ae(t-J),s(e)}},ae=function(e){if(0!==e){var t=function(e,t,n,r){var a=r+e;return a<0&&(a=0),a>t-n&&(a=t-n),a}(e,C,X,q);z(t),O(t+e),A(function(e,t,n,r,a,o){var i=(t-n)/(o-a),c=Math.round(e/i);return f(c,r,o)}(t,C,X,w,0,W))}};return t.createElement("div",{className:c.slider,"data-testid":k,"data-analyticsid":u.Slider},p&&t.createElement(i,{htmlMarkup:"h3",margin:1.5,appearance:"title3"},p),t.createElement("div",{ref:Q,className:o(c["slider__track-wrapper"],E?c["slider__track-wrapper--disabled"]:""),onMouseDown:te,onTouchStart:te,"data-testid":"tracker"},t.createElement("div",{className:o(c.slider__track,E?c["slider__track--disabled"]:"")}),t.createElement("div",{ref:V,className:o(c.slider__trigger,E?c["slider__trigger--disabled"]:""),style:{left:"".concat(q,"px")},onKeyDown:function(e){if(!E){var t=(C-X)/100;"ArrowRight"!==e.key&&"ArrowDown"!==e.key||ae(w*t),"ArrowLeft"!==e.key&&"ArrowUp"!==e.key||ae(-w*t)}},role:"slider","aria-valuenow":x,"aria-valuemin":0,"aria-valuemax":W,"aria-label":"".concat(p?p+" ":"").concat(h?h+" ":"").concat(_?_+" ":""),tabIndex:E?-1:0},t.createElement("div",{className:o(c["slider__trigger-inner"],E?c["slider__trigger-inner--disabled"]:"")}))),(h||_)&&t.createElement("span",{className:c.slider__options},t.createElement("p",{className:c.slider__text,"aria-hidden":!0},h),t.createElement("p",{className:c.slider__text,"aria-hidden":!0},_)))}));export{v as Slider,v as default};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"required": false,
|
|
18
18
|
"type": {
|
|
19
19
|
"name": "enum",
|
|
20
|
-
"raw": "
|
|
20
|
+
"raw": "SpacerSizes | undefined",
|
|
21
21
|
"value": [
|
|
22
22
|
{
|
|
23
23
|
"value": "undefined"
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{d as s}from"../../_rollupPluginBabelHelpers-0f007973.js";import a from"react";import{c as e}from"../../index-
|
|
1
|
+
import{d as s}from"../../_rollupPluginBabelHelpers-0f007973.js";import a from"react";import{c as e}from"../../index-d1c0552c.js";import r from"./styles.module.scss";import{A as c}from"../../constants-088e1d4a.js";var l=a.forwardRef((function(l,p){var t,x=l.size,o=void 0===x?"s":x,m=l.className,d=l.testId,i=e(r.spacer,(s(t={},r["spacer--4xs"],"4xs"===o),s(t,r["spacer--3xs"],"3xs"===o),s(t,r["spacer--2xs"],"2xs"===o),s(t,r["spacer--xs"],"xs"===o),s(t,r["spacer--s"],"s"===o),s(t,r["spacer--m"],"m"===o),s(t,r["spacer--l"],"l"===o),s(t,r["spacer--xl"],"xl"===o),s(t,r["spacer--2xl"],"2xl"===o),s(t,r["spacer--3xl"],"3xl"===o),s(t,r["spacer--4xl"],"4xl"===o),s(t,r["spacer--5xl"],"5xl"===o),s(t,r["spacer--6xl"],"6xl"===o),t),m);return a.createElement("span",{className:i,ref:p,"data-testid":d,"data-analyticsid":c.Spacer})}));export{l as default};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{d as
|
|
1
|
+
import{d as a}from"../../_rollupPluginBabelHelpers-0f007973.js";import t from"react";import{c as e}from"../../index-d1c0552c.js";import s from"./styles.module.scss";import{I as r,A as o}from"../../constants-088e1d4a.js";import{I as c}from"../../Icon-a7d7e9bc.js";import{U as n}from"../../Undo-44981995.js";import{g as l}from"../../color-e7d082c1.js";import{G as i}from"../../Group-eab5fd2c.js";import{N as m}from"../../NoAccess-e1cfd26c.js";import"../../palette-f206f488.js";import"../../grid-c105cad1.js";import"../../useBreakpoint-a74f5af5.js";import"../../_tslib-b219470a.js";import"../../index-d1c9177a.js";var d;!function(a){a.info="info",a.warning="warning",a.alert="alert",a.cancelled="cancelled",a.active="active",a.transparent="transparent",a.recurring="recurring",a.group="group",a.noaccess="noaccess"}(d||(d={}));var p=t.forwardRef((function(p,u){var f=p.variant,g=void 0===f?d.info:f,j=p.text,_=p.className,v=g===d.recurring||g===d.group||g===d.noaccess,b=g===d.cancelled,E=e(s.statusdot,a({},s["statusdot--cancelled"],b),_),I=e(s.statusdot__dot,[v?s["statusdot__dot--icon"]:s["statusdot__dot--".concat(g)]]),N=e(s.statusdot__label,a({},s["statusdot__label--icon"],v)),X=null;return g===d.recurring?X=t.createElement(c,{size:r.XXSmall,svgIcon:n}):g===d.group?X=t.createElement(c,{size:r.XXSmall,svgIcon:i}):g===d.noaccess&&(X=t.createElement(c,{size:r.XXSmall,svgIcon:m,color:l("cherry",600)})),t.createElement("div",{className:E,"data-analyticsid":o.StatusDot},t.createElement("span",{className:I},X),t.createElement("span",{className:N},j))}));export{d as StatusDotVariant,p as default};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
],
|
|
21
21
|
"required": false,
|
|
22
22
|
"type": {
|
|
23
|
-
"name": "string
|
|
23
|
+
"name": "string & ReactNode"
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
"size": {
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"required": false,
|
|
72
72
|
"type": {
|
|
73
73
|
"name": "enum",
|
|
74
|
-
"raw": "
|
|
74
|
+
"raw": "TagColors | undefined",
|
|
75
75
|
"value": [
|
|
76
76
|
{
|
|
77
77
|
"value": "undefined"
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
],
|
|
114
114
|
"required": false,
|
|
115
115
|
"type": {
|
|
116
|
-
"name": "
|
|
116
|
+
"name": "SvgIcon"
|
|
117
117
|
}
|
|
118
118
|
},
|
|
119
119
|
"variant": {
|
package/components/Tag/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{d as
|
|
1
|
+
import{d as a}from"../../_rollupPluginBabelHelpers-0f007973.js";import o from"react";import{c as t}from"../../index-d1c0552c.js";import{I as e}from"../../Icon-a7d7e9bc.js";import{A as r,I as c}from"../../constants-088e1d4a.js";import{p as n}from"../../palette-f206f488.js";import s from"./styles.module.scss";import{u as i}from"../../useHover-b995a0e6.js";import{U as m}from"../../Undo-44981995.js";import{X as l}from"../../X-9ca7b3e9.js";import"../../_tslib-b219470a.js";var d,u,f;!function(a){a.medium="medium",a.large="large"}(d||(d={})),function(a){a.remove="remove",a.undo="undo"}(u||(u={})),function(a){a.normal="normal",a.oncolor="oncolor",a.emphasised="emphasised"}(f||(f={}));var v=function(a){var d=a.children,u=a.size,f=a.color,v=a.variant,g=a.action,p=a.onClick,b=a.testId,j=i(),I=j.hoverRef,h=j.isHovered,y=t(s.tag,s["tag--".concat(u)],s["tag--".concat(g)],s["tag--has-action"],"remove"===g&&[s["tag--".concat(f)],s["tag--".concat(v)]]);return o.createElement("button",{className:y,onClick:p,ref:I,type:"button","data-testid":b,"data-analyticsid":r.Tag},d,o.createElement(e,{svgIcon:function(){switch(g){case"remove":return l;case"undo":return m}}(),size:c.XXSmall,color:n["".concat("undo"===g?"blueberry":f,"800")],isHovered:h}))},g=function(i){var m=i.children,l=i.size,u=void 0===l?d.medium:l,f=i.color,g=void 0===f?"blueberry":f,p=i.svgIcon,b=i.variant,j=void 0===b?"normal":b,I=i.action,h=i.onClick,y=i.testId,z=t(s.tag,s["tag--".concat(u)],s["tag--".concat(g)],s["tag--".concat(j)],a({},s["tag--has-icon"],p));return I&&h?o.createElement(v,{size:u,color:g,variant:j,action:I,onClick:h,testId:y},m):o.createElement("span",{className:z,"data-testid":y,"data-analyticsid":r.Tag},p&&o.createElement(e,{svgIcon:p,size:c.XXSmall,color:n["".concat(g,"800")],className:s.tag__icon}),m)};export{u as TagAction,d as TagSize,f as TagVariant,g as default};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
export{T as default}from"../../Textarea-d37d10a4.js";import"../../_rollupPluginBabelHelpers-0f007973.js";import"../../_tslib-b219470a.js";import"react";import"../../index-d1c0552c.js";import"./styles.module.scss";import"../../constants-088e1d4a.js";import"../../uuid-11037462.js";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
],
|
|
36
36
|
"required": true,
|
|
37
37
|
"type": {
|
|
38
|
-
"name": "ReactElement<any, string |
|
|
38
|
+
"name": "ReactElement<any, string | JSXElementConstructor<any>>"
|
|
39
39
|
}
|
|
40
40
|
},
|
|
41
41
|
"title": {
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
],
|
|
55
55
|
"required": true,
|
|
56
56
|
"type": {
|
|
57
|
-
"name": "ReactElement<any, string |
|
|
57
|
+
"name": "ReactElement<any, string | JSXElementConstructor<any>>"
|
|
58
58
|
}
|
|
59
59
|
},
|
|
60
60
|
"highlighted": {
|
|
@@ -264,7 +264,7 @@
|
|
|
264
264
|
"required": false,
|
|
265
265
|
"type": {
|
|
266
266
|
"name": "enum",
|
|
267
|
-
"raw": "
|
|
267
|
+
"raw": "AnchorTarget | undefined",
|
|
268
268
|
"value": [
|
|
269
269
|
{
|
|
270
270
|
"value": "undefined"
|
package/components/Tile/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{d as e,_ as t}from"../../_rollupPluginBabelHelpers-0f007973.js";import{_ as i}from"../../_tslib-
|
|
1
|
+
import{d as e,_ as t}from"../../_rollupPluginBabelHelpers-0f007973.js";import{_ as i}from"../../_tslib-b219470a.js";import r,{useState as a}from"react";import{c as l}from"../../index-d1c0552c.js";import{A as o,I as n}from"../../constants-088e1d4a.js";import"../../Icon-a7d7e9bc.js";import s from"./styles.module.scss";var c=r.forwardRef((function(t,i){var a,o=t.children,n=t.className,c=t.htmlMarkup,d=void 0===c?"span":c,m=t.highlighted,p=t.compact,f=l(s.tile__title,(e(a={},s["tile__title--highlighted"],m),e(a,s["tile__title--compact"],p),a),n),u=d;return r.createElement(u,{className:f,ref:i},o)})),d=r.forwardRef((function(c,d){var m,p=c.icon,f=c.title,u=c.className,h=void 0===u?"":u,g=c.description,_=c.fixed,v=void 0!==_&&_,b=c.highlighted,E=void 0!==b&&b,N=c.testId,j=i(c,["icon","title","className","description","fixed","highlighted","testId"]),w=a(!1),x=t(w,2),I=x[0],M=x[1],k=!g,y=l(s.tile,(e(m={},s["tile--fixed"],v),e(m,s["tile--compact"],k),e(m,s["tile--highlighted"],E),m),h),B=l(s["title-wrapper"],e({},s["title-wrapper--compact"],k));return r.createElement("a",Object.assign({ref:d,className:y,onMouseEnter:function(){return M(!0)},onMouseLeave:function(){return M(!1)},onFocus:function(){return M(!0)},onBlur:function(){return M(!1)},"data-testid":N,"data-analyticsid":o.Tile,rel:"_blank"===c.target?"noopener noreferrer":c.rel},j),r.createElement("div",{className:B},r.cloneElement(p,{size:n.Medium,isHovered:I,color:E?"white":"black"}),r.cloneElement(f,{highlighted:E,compact:k})),g?r.createElement("p",{className:s.tile__description},g):null)}));d.Title=c;export{d as Tile,d as default};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Title.d.ts","sourceRoot":"","sources":["../../../src/components/Title/Title.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,oBAAY,SAAS,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC;AAClE,oBAAY,gBAAgB,GAAG,cAAc,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAErG,UAAU,UAAU;IAClB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,qCAAqC;IACrC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yCAAyC;IACzC,MAAM,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC;IAC9B,mDAAmD;IACnD,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,2CAA2C;IAC3C,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAC9B,sCAAsC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,WAAW;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,qBAAqB,
|
|
1
|
+
{"version":3,"file":"Title.d.ts","sourceRoot":"","sources":["../../../src/components/Title/Title.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,oBAAY,SAAS,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC;AAClE,oBAAY,gBAAgB,GAAG,cAAc,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAErG,UAAU,UAAU;IAClB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,qCAAqC;IACrC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,yCAAyC;IACzC,MAAM,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC;IAC9B,mDAAmD;IACnD,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,2CAA2C;IAC3C,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAC9B,sCAAsC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,WAAW;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,qBAAqB,WAAY,GAAG,0BAEhD,CAAC;AAEF,QAAA,MAAM,KAAK,uFAyBT,CAAC;AAEH,eAAe,KAAK,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
export{T as default,i as instanceOfTitleMargin}from"../../Title-2c8d1f64.js";import"../../_rollupPluginBabelHelpers-0f007973.js";import"react";import"../../index-d1c0552c.js";import"./styles.module.scss";import"../../constants-088e1d4a.js";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
export{V as Validation,V as default}from"../../Validation-5e138927.js";import"react";import"../../index-d1c0552c.js";import"../../FormGroup-88d9b47b.js";import"../../_rollupPluginBabelHelpers-0f007973.js";import"../FormGroup/styles.module.scss";import"../../Checkbox-da15e778.js";import"../../uuid-11037462.js";import"../../Check-cc284473.js";import"../../Icon-a7d7e9bc.js";import"../../_tslib-b219470a.js";import"../../constants-088e1d4a.js";import"../../color-e7d082c1.js";import"../../index-d1c9177a.js";import"../../palette-f206f488.js";import"../../grid-c105cad1.js";import"../Checkbox/styles.module.scss";import"../../RadioButton-f9d660f9.js";import"../RadioButton/styles.module.scss";import"../../Input-a4c88ad6.js";import"../../useBreakpoint-a74f5af5.js";import"../Input/styles.module.scss";import"../../Title-2c8d1f64.js";import"../Title/styles.module.scss";import"../../FormLayout-eea065d7.js";import"../FormLayout/styles.module.scss";import"./styles.module.scss";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/hooks/focus-utils.d.ts
CHANGED
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
* Returnerer document.activeElement (element in focus), uavhengig av om den er i document-dom eller shadow-dom
|
|
4
4
|
* @param element HtmlElement som den skal søke i
|
|
5
5
|
*/
|
|
6
|
-
export declare const getDocumentActiveElement: (element:
|
|
6
|
+
export declare const getDocumentActiveElement: (element: HTMLElement | string) => Element | null;
|
|
7
7
|
//# sourceMappingURL=focus-utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"focus-utils.d.ts","sourceRoot":"","sources":["../../src/hooks/focus-utils.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,
|
|
1
|
+
{"version":3,"file":"focus-utils.d.ts","sourceRoot":"","sources":["../../src/hooks/focus-utils.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,YAAa,WAAW,GAAG,MAAM,KAAG,OAAO,GAAG,IAUlF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useBreakpoint.d.ts","sourceRoot":"","sources":["../../src/hooks/useBreakpoint.ts"],"names":[],"mappings":"AAGA,oBAAY,UAAU;IACpB,GAAqB;IACrB,EAAmB;IACnB,EAAmB;IACnB,EAAmB;IACnB,EAAmB;IACnB,EAAmB;CACpB;AAED;;;GAGG;AACH,eAAO,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"useBreakpoint.d.ts","sourceRoot":"","sources":["../../src/hooks/useBreakpoint.ts"],"names":[],"mappings":"AAGA,oBAAY,UAAU;IACpB,GAAqB;IACrB,EAAmB;IACnB,EAAmB;IACnB,EAAmB;IACnB,EAAmB;IACnB,EAAmB;CACpB;AAED;;;GAGG;AACH,eAAO,MAAM,aAAa,QAAO,UA2DhC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFocusToggle.d.ts","sourceRoot":"","sources":["../../src/hooks/useFocusToggle.ts"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAGnD,eAAO,MAAM,mBAAmB,QAarB,CAAC;AAEZ;;;;;;;;;GASG;AACH,eAAO,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"useFocusToggle.d.ts","sourceRoot":"","sources":["../../src/hooks/useFocusToggle.ts"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAGnD,eAAO,MAAM,mBAAmB,QAarB,CAAC;AAEZ;;;;;;;;;GASG;AACH,eAAO,MAAM,cAAc,QAAS,MAAM,SAAS,CAAC,WAAW,CAAC,uCAAyB,WAAW,WAAW,CAAC,GAAG,SAgDlH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFocusTrap.d.ts","sourceRoot":"","sources":["../../src/hooks/useFocusTrap.ts"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAIjD,wBAAgB,YAAY,IAAI,KAAK,CAAC,gBAAgB,CAAC,cAAc,GAAG,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"useFocusTrap.d.ts","sourceRoot":"","sources":["../../src/hooks/useFocusTrap.ts"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAIjD,wBAAgB,YAAY,IAAI,KAAK,CAAC,gBAAgB,CAAC,cAAc,GAAG,IAAI,CAAC,CA0D5E;AAED,eAAe,YAAY,CAAC"}
|
package/hooks/useHover.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useHover.d.ts","sourceRoot":"","sources":["../../src/hooks/useHover.ts"],"names":[],"mappings":"AAAA,OAAO,EAA+B,SAAS,EAAE,MAAM,OAAO,CAAC;AAE/D;;;;;GAKG;AACH,eAAO,MAAM,QAAQ;;;
|
|
1
|
+
{"version":3,"file":"useHover.d.ts","sourceRoot":"","sources":["../../src/hooks/useHover.ts"],"names":[],"mappings":"AAAA,OAAO,EAA+B,SAAS,EAAE,MAAM,OAAO,CAAC;AAE/D;;;;;GAKG;AACH,eAAO,MAAM,QAAQ,uHAA+F,OAAO;;;CA0B1H,CAAC"}
|
package/hooks/useIcons.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { IconProps } from '../components/Icons';
|
|
3
|
-
export declare const useIcons: (children:
|
|
2
|
+
export declare const useIcons: (children: React.ReactNode[]) => Array<React.ReactElement<IconProps> | React.ReactNode | {} | undefined | null>;
|
|
4
3
|
//# sourceMappingURL=useIcons.d.ts.map
|
package/hooks/useIcons.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useIcons.d.ts","sourceRoot":"","sources":["../../src/hooks/useIcons.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useIcons.d.ts","sourceRoot":"","sources":["../../src/hooks/useIcons.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEhD,eAAO,MAAM,QAAQ,aAAc,MAAM,SAAS,EAAE,KAAG,MAAM,MAAM,YAAY,CAAC,SAAS,CAAC,GAAG,MAAM,SAAS,GAAG,EAAE,GAAG,SAAS,GAAG,IAAI,CAanI,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
/**
|
|
3
2
|
* Lytt på endringer i synligheten (intersection) til et HTML-element. F.eks. kan du bruke denne til å kalle en callback
|
|
4
3
|
* når elementet er i ferd med å forsvinne ut av vinduet.
|
|
@@ -7,5 +6,5 @@
|
|
|
7
6
|
* @param callback Kalles når en endring i intersection er observert
|
|
8
7
|
* @param options Objekt med options for IntersectionObserver, f.eks. threshold for å bestemme når callbacken skal fyres
|
|
9
8
|
*/
|
|
10
|
-
export declare const useIntersectionObserver: (ref:
|
|
9
|
+
export declare const useIntersectionObserver: (ref: React.RefObject<HTMLElement>, callback: IntersectionObserverCallback, options?: IntersectionObserverInit | undefined) => void;
|
|
11
10
|
//# sourceMappingURL=useIntersectionObserver.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useIntersectionObserver.d.ts","sourceRoot":"","sources":["../../src/hooks/useIntersectionObserver.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useIntersectionObserver.d.ts","sourceRoot":"","sources":["../../src/hooks/useIntersectionObserver.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AAEH,eAAO,MAAM,uBAAuB,QAC7B,MAAM,SAAS,CAAC,WAAW,CAAC,YACvB,4BAA4B,qDAErC,IAcF,CAAC"}
|
package/hooks/useIsVisible.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
/**
|
|
3
2
|
* Sjekk om et HTML-element er synlig i vinduet, eller ikke.
|
|
4
3
|
*
|
|
@@ -6,5 +5,5 @@
|
|
|
6
5
|
* @param threshold Hvor synlig må elementet være? Default = 1 (helt synlig)
|
|
7
6
|
* @returns true hvis objektet er synlig lik threshold eller mer, false hvis ikke
|
|
8
7
|
*/
|
|
9
|
-
export declare const useIsVisible: (ref:
|
|
8
|
+
export declare const useIsVisible: (ref: React.RefObject<HTMLElement>, threshold?: number) => boolean;
|
|
10
9
|
//# sourceMappingURL=useIsVisible.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useIsVisible.d.ts","sourceRoot":"","sources":["../../src/hooks/useIsVisible.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useIsVisible.d.ts","sourceRoot":"","sources":["../../src/hooks/useIsVisible.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AACH,eAAO,MAAM,YAAY,QAAS,MAAM,SAAS,CAAC,WAAW,CAAC,yBAAkB,OAU/E,CAAC"}
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const useKeyboardEvent: <E extends "keydown" | "keypress" | "keyup">(eventName: E, ref: import("react").RefObject<HTMLElement>, key: string | string[], callback: (event: HTMLElementEventMap[E]) => void) => void;
|
|
1
|
+
export declare const useKeyboardEvent: <E extends "keydown" | "keypress" | "keyup">(eventName: E, ref: React.RefObject<HTMLElement>, key: string | string[], callback: (event: HTMLElementEventMap[E]) => void) => void;
|
|
3
2
|
//# sourceMappingURL=useKeyboardEvent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useKeyboardEvent.d.ts","sourceRoot":"","sources":["../../src/hooks/useKeyboardEvent.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useKeyboardEvent.d.ts","sourceRoot":"","sources":["../../src/hooks/useKeyboardEvent.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB,kEAEtB,MAAM,SAAS,CAAC,WAAW,CAAC,OAC5B,MAAM,GAAG,MAAM,EAAE,+CACuB,IAAI,SAclD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLayoutEvent.d.ts","sourceRoot":"","sources":["../../src/hooks/useLayoutEvent.ts"],"names":[],"mappings":"AAIA;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"useLayoutEvent.d.ts","sourceRoot":"","sources":["../../src/hooks/useLayoutEvent.ts"],"names":[],"mappings":"AAIA;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,aAAc,MAAM,IAAI,iDAalD,CAAC"}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
declare type PickByValue<T, V> = Pick<T, {
|
|
2
|
+
[K in keyof T]: T[K] extends V ? K : never;
|
|
3
|
+
}[keyof T]>;
|
|
4
|
+
declare type OutsideEvents = keyof PickByValue<HTMLElementEventMap, MouseEvent | FocusEvent>;
|
|
2
5
|
/**
|
|
3
6
|
* Custom hook for klikk eller fokus utenfor et gitt element
|
|
4
7
|
* @param ref Sjekker om det klikkes utenfor dette elementet
|
|
5
8
|
* @param handleClick Callback-funksjon ved klikk utenfor elementet
|
|
6
9
|
* @param events Type eventer å lytte på. Default: mousedown
|
|
7
10
|
*/
|
|
8
|
-
export declare const useOutsideEvent: (ref:
|
|
11
|
+
export declare const useOutsideEvent: (ref: React.RefObject<HTMLElement>, handleClick: () => void, events?: OutsideEvents[]) => void;
|
|
12
|
+
export {};
|
|
9
13
|
//# sourceMappingURL=useOutsideEvent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useOutsideEvent.d.ts","sourceRoot":"","sources":["../../src/hooks/useOutsideEvent.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"useOutsideEvent.d.ts","sourceRoot":"","sources":["../../src/hooks/useOutsideEvent.ts"],"names":[],"mappings":"AAEA,aAAK,WAAW,CAAC,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC,CAAC,EAAE;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,KAAK;CAAE,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;AAE1F,aAAK,aAAa,GAAG,MAAM,WAAW,CAAC,mBAAmB,EAAE,UAAU,GAAG,UAAU,CAAC,CAAC;AAErF;;;;;GAKG;AACH,eAAO,MAAM,eAAe,QACrB,MAAM,SAAS,CAAC,WAAW,CAAC,eACpB,MAAM,IAAI,WACf,aAAa,EAAE,KACtB,IAcF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useResizeObserver.d.ts","sourceRoot":"","sources":["../../src/hooks/useResizeObserver.ts"],"names":[],"mappings":";AAEA;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"useResizeObserver.d.ts","sourceRoot":"","sources":["../../src/hooks/useResizeObserver.ts"],"names":[],"mappings":";AAEA;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,gEAAyC,OAAO,GAAG,SAahF,CAAC"}
|
package/hooks/useSticky.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSticky.d.ts","sourceRoot":"","sources":["../../src/hooks/useSticky.ts"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAGxC,UAAU,oBAAoB;IAC5B,6CAA6C;IAC7C,eAAe,EAAE,OAAO,CAAC;IACzB,+CAA+C;IAC/C,eAAe,EAAE,OAAO,CAAC;IACzB,6CAA6C;IAC7C,YAAY,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,qCAAqC;IACrC,YAAY,EAAE,MAAM,GAAG,SAAS,CAAC;CAClC;AACD;;;;;;GAMG;AACH,eAAO,MAAM,SAAS,
|
|
1
|
+
{"version":3,"file":"useSticky.d.ts","sourceRoot":"","sources":["../../src/hooks/useSticky.ts"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAGxC,UAAU,oBAAoB;IAC5B,6CAA6C;IAC7C,eAAe,EAAE,OAAO,CAAC;IACzB,+CAA+C;IAC/C,eAAe,EAAE,OAAO,CAAC;IACzB,6CAA6C;IAC7C,YAAY,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,qCAAqC;IACrC,YAAY,EAAE,MAAM,GAAG,SAAS,CAAC;CAClC;AACD;;;;;;GAMG;AACH,eAAO,MAAM,SAAS,eAAgB,MAAM,SAAS,CAAC,WAAW,CAAC,aAAa,MAAM,SAAS,CAAC,WAAW,CAAC,KAAG,oBAsB7G,CAAC"}
|
package/hooks/useToggle.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useToggle.d.ts","sourceRoot":"","sources":["../../src/hooks/useToggle.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AACH,eAAO,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"useToggle.d.ts","sourceRoot":"","sources":["../../src/hooks/useToggle.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AACH,eAAO,MAAM,SAAS,iBAAkB,OAAO,sBAAqB,OAAO,KAAK,IAAI;WAAY,OAAO;iBAAe,MAAM,IAAI;CAqB/H,CAAC"}
|
package/hooks/useUuid.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useUuid.d.ts","sourceRoot":"","sources":["../../src/hooks/useUuid.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"useUuid.d.ts","sourceRoot":"","sources":["../../src/hooks/useUuid.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,eAAO,MAAM,OAAO,QAAO,MAI1B,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
var r,t={exports:{}};
|
|
2
|
+
/*!
|
|
3
|
+
Copyright (c) 2018 Jed Watson.
|
|
4
|
+
Licensed under the MIT License (MIT), see
|
|
5
|
+
http://jedwatson.github.io/classnames
|
|
6
|
+
*/r=t,function(){var t={}.hasOwnProperty;function e(){for(var r=arguments,o=[],s=0;s<arguments.length;s++){var a=r[s];if(a){var n=typeof a;if("string"===n||"number"===n)o.push(a);else if(Array.isArray(a)){if(a.length){var i=e.apply(null,a);i&&o.push(i)}}else if("object"===n)if(a.toString===Object.prototype.toString)for(var p in a)t.call(a,p)&&a[p]&&o.push(p);else o.push(a.toString())}}return o.join(" ")}r.exports?(e.default=e,r.exports=e):window.classNames=e}();var e=t.exports;export{e as c};
|
|
7
|
+
//# sourceMappingURL=index-d1c0552c.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-
|
|
1
|
+
{"version":3,"file":"index-d1c0552c.js","sources":["../node_modules/classnames/index.js"],"sourcesContent":["/*!\n Copyright (c) 2018 Jed Watson.\n Licensed under the MIT License (MIT), see\n http://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames() {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg)) {\n\t\t\t\tif (arg.length) {\n\t\t\t\t\tvar inner = classNames.apply(null, arg);\n\t\t\t\t\tif (inner) {\n\t\t\t\t\t\tclasses.push(inner);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tif (arg.toString === Object.prototype.toString) {\n\t\t\t\t\tfor (var key in arg) {\n\t\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tclasses.push(arg.toString());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n"],"names":["hasOwn","hasOwnProperty","classNames","classes","i","arguments","length","arg","argType","push","Array","isArray","inner","apply","toString","Object","prototype","key","call","join","module","exports","default","window"],"mappings":";;;;;MAOC,WAGA,IAAIA,EAAS,GAAGC,eAEhB,SAASC,IAGR,oBAFIC,EAAU,GAELC,EAAI,EAAGA,EAAIC,UAAUC,OAAQF,IAAK,CAC1C,IAAIG,EAAMF,EAAUD,GACpB,GAAKG,EAAL,CAEA,IAAIC,SAAiBD,EAErB,GAAgB,WAAZC,GAAoC,WAAZA,EAC3BL,EAAQM,KAAKF,QACP,GAAIG,MAAMC,QAAQJ,IACxB,GAAIA,EAAID,OAAQ,CACf,IAAIM,EAAQV,EAAWW,MAAM,KAAMN,GAC/BK,GACHT,EAAQM,KAAKG,SAGT,GAAgB,WAAZJ,EACV,GAAID,EAAIO,WAAaC,OAAOC,UAAUF,SACrC,IAAK,IAAIG,KAAOV,EACXP,EAAOkB,KAAKX,EAAKU,IAAQV,EAAIU,IAChCd,EAAQM,KAAKQ,QAIfd,EAAQM,KAAKF,EAAIO,aAKpB,OAAOX,EAAQgB,KAAK,KAGgBC,EAAOC,SAC3CnB,EAAWoB,QAAUpB,EACrBkB,EAAAC,QAAiBnB,GAOjBqB,OAAOrB,WAAaA,EAhDtB"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import t from"react";import{createPortal as e}from"react-dom";import{A as r}from"./constants-088e1d4a.js";function n(n){var a=n.children,o=n.parent,i=n.className,c=n.testId,d=t.useMemo((function(){return document.createElement("div")}),[]);return d.setAttribute("data-analyticsid",r.Portal),c&&d.setAttribute("data-testid",c),t.useEffect((function(){var t=o&&o.appendChild?o:document.body,e=["portal-container"];return i&&i.split(" ").forEach((function(t){return e.push(t)})),e.forEach((function(t){return d.classList.add(t)})),t.appendChild(d),function(){t.removeChild(d)}}),[d,o,i]),e(a,d)}export{n as P};
|
|
2
|
+
//# sourceMappingURL=index-eb155e65.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-eb155e65.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/index.d.ts
CHANGED
|
@@ -8,7 +8,6 @@ export { useIsVisible } from './hooks/useIsVisible';
|
|
|
8
8
|
export { useLayoutEvent } from './hooks/useLayoutEvent';
|
|
9
9
|
export { usePrevious } from './hooks/usePrevious';
|
|
10
10
|
export { useSticky } from './hooks/useSticky';
|
|
11
|
-
export { useWindowSize } from './hooks/useWindowSize';
|
|
12
11
|
export { useSize } from './hooks/useSize';
|
|
13
12
|
export { useResizeObserver } from './hooks/useResizeObserver';
|
|
14
13
|
export { useToggle } from './hooks/useToggle';
|
package/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,cAAc,aAAa,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,b as useIntersectionObserver,c as useIsVisible}from"./useIsVisible-bef05e5e.js";export{u as useHover}from"./useHover-b995a0e6.js";import{u as e}from"./
|
|
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,b as useIntersectionObserver,c as useIsVisible}from"./useIsVisible-bef05e5e.js";export{u as useHover}from"./useHover-b995a0e6.js";import{u as e}from"./useSticky-abffc922.js";export{u as useLayoutEvent,a as useSticky}from"./useSticky-abffc922.js";export{u as usePrevious}from"./usePrevious-ae293b10.js";import{_ as s}from"./_rollupPluginBabelHelpers-0f007973.js";import{useState as r}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-088e1d4a.js";import"./palette-f206f488.js";import"./grid-c105cad1.js";var o=function(a){var o=r(),u=s(o,2),t=u[0],i=u[1];return e((function(){(null==a?void 0:a.current)&&i(a.current.getBoundingClientRect())})),t};export{o as useSize};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|