@helsenorge/designsystem-react 1.0.0-beta86 → 1.0.0-beta87

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.
Files changed (100) hide show
  1. package/AlertSignFill-e607ff43.js +2 -0
  2. package/AlertSignFill-e607ff43.js.map +1 -0
  3. package/{Button-3f327b66.js → Button-55952154.js} +2 -2
  4. package/Button-55952154.js.map +1 -0
  5. package/Close-a6cbd165.js +2 -0
  6. package/Close-a6cbd165.js.map +1 -0
  7. package/{FormGroup-b874ae21.js → FormGroup-56d60079.js} +2 -2
  8. package/FormGroup-56d60079.js.map +1 -0
  9. package/Loader-6ff0d481.js +2 -0
  10. package/Loader-6ff0d481.js.map +1 -0
  11. package/Modal-ac3a4757.js +2 -0
  12. package/Modal-ac3a4757.js.map +1 -0
  13. package/Title-72851d51.js +2 -0
  14. package/Title-72851d51.js.map +1 -0
  15. package/{Validation-b902407e.js → Validation-372a97b9.js} +2 -2
  16. package/Validation-372a97b9.js.map +1 -0
  17. package/X-8d8ff918.js +2 -0
  18. package/X-8d8ff918.js.map +1 -0
  19. package/components/AnchorLink/AnchorLink.d.ts +2 -0
  20. package/components/AnchorLink/AnchorLink.d.ts.map +1 -1
  21. package/components/AnchorLink/componentdata.json +19 -0
  22. package/components/AnchorLink/index.js +1 -1
  23. package/components/Avatar/Avatar.d.ts +2 -0
  24. package/components/Avatar/Avatar.d.ts.map +1 -1
  25. package/components/Avatar/componentdata.json +19 -0
  26. package/components/Avatar/index.js +1 -1
  27. package/components/Badge/Badge.d.ts +2 -0
  28. package/components/Badge/Badge.d.ts.map +1 -1
  29. package/components/Badge/componentdata.json +19 -0
  30. package/components/Badge/index.js +1 -1
  31. package/components/Button/index.js +1 -1
  32. package/components/ButtonWithModal/ButtonWithModal.d.ts +2 -0
  33. package/components/ButtonWithModal/ButtonWithModal.d.ts.map +1 -1
  34. package/components/ButtonWithModal/componentdata.json +19 -19
  35. package/components/ButtonWithModal/index.js +1 -1
  36. package/components/Close/Close.d.ts +12 -0
  37. package/components/Close/Close.d.ts.map +1 -0
  38. package/components/Close/componentdata.json +61 -0
  39. package/components/Close/index.d.ts +3 -0
  40. package/components/Close/index.d.ts.map +1 -0
  41. package/components/Close/index.js +2 -0
  42. package/components/Close/index.js.map +1 -0
  43. package/components/Close/styles.module.scss +32 -0
  44. package/components/Close/styles.module.scss.d.ts +9 -0
  45. package/components/ExpanderList/ExpanderList.d.ts +2 -0
  46. package/components/ExpanderList/ExpanderList.d.ts.map +1 -1
  47. package/components/ExpanderList/componentdata.json +19 -0
  48. package/components/ExpanderList/index.js +1 -1
  49. package/components/FormExample/index.js +1 -1
  50. package/components/FormGroup/index.js +1 -1
  51. package/components/LinkList/LinkList.d.ts +4 -0
  52. package/components/LinkList/LinkList.d.ts.map +1 -1
  53. package/components/LinkList/componentdata.json +19 -0
  54. package/components/LinkList/index.js +1 -1
  55. package/components/List/List.d.ts +2 -0
  56. package/components/List/List.d.ts.map +1 -1
  57. package/components/List/componentdata.json +19 -0
  58. package/components/List/index.js +1 -1
  59. package/components/Loader/index.js +1 -1
  60. package/components/Logo/Logo.d.ts +2 -0
  61. package/components/Logo/Logo.d.ts.map +1 -1
  62. package/components/Logo/componentdata.json +19 -0
  63. package/components/Logo/index.js +1 -1
  64. package/components/Modal/Modal.d.ts.map +1 -1
  65. package/components/Modal/index.js +1 -1
  66. package/components/Modal/styles.module.scss +0 -21
  67. package/components/Modal/styles.module.scss.d.ts +0 -1
  68. package/components/NotificationPanel/NotificationPanel.d.ts +2 -0
  69. package/components/NotificationPanel/NotificationPanel.d.ts.map +1 -1
  70. package/components/NotificationPanel/componentdata.json +19 -0
  71. package/components/NotificationPanel/index.js +1 -1
  72. package/components/Slider/Slider.d.ts +2 -0
  73. package/components/Slider/Slider.d.ts.map +1 -1
  74. package/components/Slider/componentdata.json +19 -0
  75. package/components/Slider/index.js +1 -1
  76. package/components/Spacer/Spacer.d.ts +2 -0
  77. package/components/Spacer/Spacer.d.ts.map +1 -1
  78. package/components/Spacer/componentdata.json +19 -0
  79. package/components/Spacer/index.js +1 -1
  80. package/components/Tile/Tile.d.ts +2 -0
  81. package/components/Tile/Tile.d.ts.map +1 -1
  82. package/components/Tile/componentdata.json +19 -0
  83. package/components/Tile/index.js +1 -1
  84. package/components/Title/Title.d.ts +2 -0
  85. package/components/Title/Title.d.ts.map +1 -1
  86. package/components/Title/index.js +1 -1
  87. package/components/Validation/index.js +1 -1
  88. package/hooks/useFocusTrap.d.ts.map +1 -1
  89. package/package.json +1 -1
  90. package/AlertSignFill-64bfef57.js +0 -2
  91. package/AlertSignFill-64bfef57.js.map +0 -1
  92. package/Button-3f327b66.js.map +0 -1
  93. package/FormGroup-b874ae21.js.map +0 -1
  94. package/Loader-cf365332.js +0 -2
  95. package/Loader-cf365332.js.map +0 -1
  96. package/Modal-3dc1bb47.js +0 -2
  97. package/Modal-3dc1bb47.js.map +0 -1
  98. package/Title-7c829525.js +0 -2
  99. package/Title-7c829525.js.map +0 -1
  100. package/Validation-b902407e.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"Tile.d.ts","sourceRoot":"","sources":["../../../src/components/Tile/Tile.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAGxC,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAK7C,UAAU,SAAU,SAAQ,eAAe;IACzC,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qDAAqD;IACrD,IAAI,EAAE,KAAK,CAAC,YAAY,CAAC;IACzB,sDAAsD;IACtD,KAAK,EAAE,KAAK,CAAC,YAAY,CAAC;IAC1B,iDAAiD;IACjD,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,4DAA4D;IAC5D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,mDAAmD;IACnD,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,0CAA0C;IAC1C,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,KAAK,IAAI,CAAC;CACnE;AAED,UAAU,cAAc;IACtB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,YAAa,SAAQ,KAAK,CAAC,yBAAyB,CAAC,SAAS,GAAG,KAAK,CAAC,aAAa,CAAC,iBAAiB,CAAC,CAAC;IACvH,KAAK,EAAE,KAAK,CAAC,yBAAyB,CAAC,cAAc,GAAG,KAAK,CAAC,aAAa,CAAC,kBAAkB,CAAC,CAAC,CAAC;CAClG;AAqBD,eAAO,MAAM,IAAI,cAkCC,CAAC;AAInB,eAAe,IAAI,CAAC"}
1
+ {"version":3,"file":"Tile.d.ts","sourceRoot":"","sources":["../../../src/components/Tile/Tile.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAGxC,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAK7C,UAAU,SAAU,SAAQ,eAAe;IACzC,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qDAAqD;IACrD,IAAI,EAAE,KAAK,CAAC,YAAY,CAAC;IACzB,sDAAsD;IACtD,KAAK,EAAE,KAAK,CAAC,YAAY,CAAC;IAC1B,iDAAiD;IACjD,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,4DAA4D;IAC5D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,mDAAmD;IACnD,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,0CAA0C;IAC1C,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,KAAK,IAAI,CAAC;IAClE,sCAAsC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,UAAU,cAAc;IACtB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,YAAa,SAAQ,KAAK,CAAC,yBAAyB,CAAC,SAAS,GAAG,KAAK,CAAC,aAAa,CAAC,iBAAiB,CAAC,CAAC;IACvH,KAAK,EAAE,KAAK,CAAC,yBAAyB,CAAC,cAAc,GAAG,KAAK,CAAC,aAAa,CAAC,kBAAkB,CAAC,CAAC,CAAC;CAClG;AAqBD,eAAO,MAAM,IAAI,cAmCC,CAAC;AAInB,eAAe,IAAI,CAAC"}
@@ -133,6 +133,25 @@
133
133
  "name": "((e?: MouseEvent<HTMLElement, MouseEvent>) => void) | undefined"
134
134
  }
135
135
  },
136
+ "testId": {
137
+ "defaultValue": null,
138
+ "description": "Sets the data-testid attribute.",
139
+ "name": "testId",
140
+ "parent": {
141
+ "fileName": "src/components/Tile/Tile.tsx",
142
+ "name": "TileProps"
143
+ },
144
+ "declarations": [
145
+ {
146
+ "fileName": "src/components/Tile/Tile.tsx",
147
+ "name": "TileProps"
148
+ }
149
+ ],
150
+ "required": false,
151
+ "type": {
152
+ "name": "string"
153
+ }
154
+ },
136
155
  "download": {
137
156
  "defaultValue": null,
138
157
  "description": "",
@@ -1,2 +1,2 @@
1
- import{_ as e,a as t}from"../../_rollupPluginBabelHelpers-d0752906.js";import{_ as i}from"../../_tslib-51c8a283.js";import r,{useState as l}from"react";import{c as o}from"../../index-9b84fabc.js";import{a}from"../../constants-d919236e.js";import c from"./styles.module.scss";var n=r.forwardRef((function(e,i){var l,a=e.children,n=e.className,s=e.htmlMarkup,m=void 0===s?"span":s,d=e.highlighted,p=e.compact,f=o(c.tile__title,(t(l={},c["tile__title--highlighted"],d),t(l,c["tile__title--compact"],p),l),n),u=m;return r.createElement(u,{className:f,ref:i},a)})),s=r.forwardRef((function(n,s){var m,d=n.icon,p=n.title,f=n.className,u=void 0===f?"":f,h=n.description,g=n.fixed,_=void 0!==g&&g,v=n.highlighted,E=void 0!==v&&v,N=i(n,["icon","title","className","description","fixed","highlighted"]),b=l(!1),j=e(b,2),w=j[0],x=j[1],M=!h,k=o(c.tile,(t(m={},c["tile--fixed"],_),t(m,c["tile--compact"],M),t(m,c["tile--highlighted"],E),m),u),B=o(c["title-wrapper"],t({},c["title-wrapper--compact"],M));return r.createElement("a",Object.assign({ref:s,className:k,onMouseEnter:function(){return x(!0)},onMouseLeave:function(){return x(!1)},onFocus:function(){return x(!0)},onBlur:function(){return x(!1)}},N),r.createElement("div",{className:B},r.cloneElement(d,{size:a.Medium,isHovered:w,color:E?"white":"black"}),r.cloneElement(p,{highlighted:E,compact:M})),h?r.createElement("p",{className:c.tile__description},h):null)}));s.Title=n;export default s;
1
+ import{_ as e,a as t}from"../../_rollupPluginBabelHelpers-d0752906.js";import{_ as i}from"../../_tslib-51c8a283.js";import r,{useState as l}from"react";import{c as a}from"../../index-9b84fabc.js";import{a as o}from"../../constants-d919236e.js";import s from"./styles.module.scss";var c=r.forwardRef((function(e,i){var l,o=e.children,c=e.className,n=e.htmlMarkup,m=void 0===n?"span":n,d=e.highlighted,p=e.compact,f=a(s.tile__title,(t(l={},s["tile__title--highlighted"],d),t(l,s["tile__title--compact"],p),l),c),u=m;return r.createElement(u,{className:f,ref:i},o)})),n=r.forwardRef((function(c,n){var m,d=c.icon,p=c.title,f=c.className,u=void 0===f?"":f,h=c.description,g=c.fixed,_=void 0!==g&&g,v=c.highlighted,E=void 0!==v&&v,N=c.testId,b=i(c,["icon","title","className","description","fixed","highlighted","testId"]),j=l(!1),w=e(j,2),x=w[0],M=w[1],k=!h,B=a(s.tile,(t(m={},s["tile--fixed"],_),t(m,s["tile--compact"],k),t(m,s["tile--highlighted"],E),m),u),H=a(s["title-wrapper"],t({},s["title-wrapper--compact"],k));return r.createElement("a",Object.assign({ref:n,className:B,onMouseEnter:function(){return M(!0)},onMouseLeave:function(){return M(!1)},onFocus:function(){return M(!0)},onBlur:function(){return M(!1)},"data-testid":N},b),r.createElement("div",{className:H},r.cloneElement(d,{size:o.Medium,isHovered:x,color:E?"white":"black"}),r.cloneElement(p,{highlighted:E,compact:k})),h?r.createElement("p",{className:s.tile__description},h):null)}));n.Title=c;export default n;
2
2
  //# sourceMappingURL=index.js.map
@@ -13,6 +13,8 @@ interface TitleProps {
13
13
  htmlMarkup?: TitleTags;
14
14
  /** Changes the appearance of the title. */
15
15
  appearance?: TitleAppearances;
16
+ /** Sets the data-testid attribute. */
17
+ testId?: string;
16
18
  }
17
19
  export interface TitleMargin {
18
20
  marginTop: number;
@@ -1 +1 @@
1
- {"version":3,"file":"Title.d.ts","sourceRoot":"","sources":["../../../src/components/Title/Title.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,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;CAC/B;AAED,MAAM,WAAW,WAAW;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,qBAAqB,wCAEjC,CAAC;AAEF,QAAA,MAAM,KAAK,uFAyBT,CAAC;AAEH,eAAe,KAAK,CAAC"}
1
+ {"version":3,"file":"Title.d.ts","sourceRoot":"","sources":["../../../src/components/Title/Title.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,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,wCAEjC,CAAC;AAEF,QAAA,MAAM,KAAK,uFAyBT,CAAC;AAEH,eAAe,KAAK,CAAC"}
@@ -1,2 +1,2 @@
1
- import{T as s}from"../../Title-7c829525.js";export{T as default}from"../../Title-7c829525.js";import"../../_rollupPluginBabelHelpers-d0752906.js";import"react";import"../../index-9b84fabc.js";import"./styles.module.scss";
1
+ import{T as s}from"../../Title-72851d51.js";export{T as default}from"../../Title-72851d51.js";import"../../_rollupPluginBabelHelpers-d0752906.js";import"react";import"../../index-9b84fabc.js";import"./styles.module.scss";
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- import{V as s}from"../../Validation-b902407e.js";export{V as default}from"../../Validation-b902407e.js";import"react";import"../../index-9b84fabc.js";import"../../FormGroup-b874ae21.js";import"../../_rollupPluginBabelHelpers-d0752906.js";import"../FormGroup/styles.module.scss";import"../../Checkbox-46666e69.js";import"../../uuid-8870ab4b.js";import"../../Check-6291ad09.js";import"../../constants-d919236e.js";import"../../_tslib-51c8a283.js";import"../../color-acb834c6.js";import"../../index-19b48c51.js";import"../../palette-f206f488.js";import"../../grid-11a70eb7.js";import"../Checkbox/styles.module.scss";import"../../Title-7c829525.js";import"../Title/styles.module.scss";import"./styles.module.scss";
1
+ import{V as s}from"../../Validation-372a97b9.js";export{V as default}from"../../Validation-372a97b9.js";import"react";import"../../index-9b84fabc.js";import"../../FormGroup-56d60079.js";import"../../_rollupPluginBabelHelpers-d0752906.js";import"../FormGroup/styles.module.scss";import"../../Checkbox-46666e69.js";import"../../uuid-8870ab4b.js";import"../../Check-6291ad09.js";import"../../constants-d919236e.js";import"../../_tslib-51c8a283.js";import"../../color-acb834c6.js";import"../../index-19b48c51.js";import"../../palette-f206f488.js";import"../../grid-11a70eb7.js";import"../Checkbox/styles.module.scss";import"../../Title-72851d51.js";import"../Title/styles.module.scss";import"./styles.module.scss";
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useFocusTrap.d.ts","sourceRoot":"","sources":["../../src/hooks/useFocusTrap.ts"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAGjD,MAAM,CAAC,OAAO,UAAU,YAAY,IAAI,KAAK,CAAC,gBAAgB,CAAC,cAAc,GAAG,IAAI,CAAC,CA+DpF"}
1
+ {"version":3,"file":"useFocusTrap.d.ts","sourceRoot":"","sources":["../../src/hooks/useFocusTrap.ts"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAGjD,MAAM,CAAC,OAAO,UAAU,YAAY,IAAI,KAAK,CAAC,gBAAgB,CAAC,cAAc,GAAG,IAAI,CAAC,CA2DpF"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@helsenorge/designsystem-react",
3
3
  "sideEffects": false,
4
- "version": "1.0.0-beta86",
4
+ "version": "1.0.0-beta87",
5
5
  "description": "The official design system for Helsenorge built with React.",
6
6
  "repository": {
7
7
  "type": "tfs",
@@ -1,2 +0,0 @@
1
- import e from"react";var a=function(a){var t=a.isExtraSmall,l=a.isHovered,m=e.createElement("path",{d:"M25.403 24l10.259-10.259-1.403-1.403L24 22.597l-10.259-10.26-1.403 1.403L22.597 24 12.338 34.26l1.403 1.403L24 25.403l10.259 10.259 1.403-1.403z"}),r=e.createElement("path",{d:"M24 22.597L12.327 10.924l-1.403 1.402L22.597 24 10.923 35.674l1.403 1.402L24 25.403l11.674 11.673 1.403-1.402L25.403 24l11.673-11.674-1.403-1.402z"}),z=e.createElement("path",{d:"M25.773 24l10.432-10.432-1.772-1.773-10.432 10.433-10.433-10.433-1.773 1.772L22.229 24 11.795 34.433l1.773 1.772 10.433-10.433 10.432 10.433 1.772-1.773z"});return t?l?e.createElement("path",{d:"M24 22.227L11.781 10.008l-1.772 1.772 12.219 12.219-12.22 12.22 1.772 1.772L24 25.771l12.22 12.22 1.772-1.772-12.22-12.22L37.991 11.78l-1.772-1.772z"}):z:l?r:m},t=function(a){var t=a.isExtraSmall,l=a.isHovered,m=e.createElement("path",{d:"M24.003 31.578a1.394 1.394 0 100 2.788 1.394 1.394 0 000-2.788zm.098-20.19l14.687 26.735H9.227L24.1 11.388zm.008-2.929L6.816 39.541h34.367L24.109 8.459zm-.106 21.033c.494 0 .893-.4.893-.893v-7.228a.893.893 0 00-1.786 0v7.228c0 .493.4.893.893.893z"}),r=e.createElement("path",{d:"M24.003 31.578a1.394 1.394 0 100 2.788 1.394 1.394 0 000-2.788zm.098-20.19l14.687 26.735H9.227L24.1 11.388zm.008-2.929L6.816 39.541h34.367L24.109 8.459zm-.106 19.033c.494 0 .893-.4.893-.893v-7.228a.893.893 0 00-1.786 0v7.228c0 .493.4.893.893.893z"}),z=e.createElement("path",{d:"M24.003 31.562a1.39 1.39 0 100 2.782 1.39 1.39 0 000-2.782zm.097-20.147l14.656 26.678H9.258L24.1 11.415zm.008-2.923L6.853 39.508h34.294L24.108 8.492zm-.105 20.988c.492 0 .892-.399.892-.89v-7.213a.891.891 0 00-1.783 0v7.212c0 .492.4.891.891.891z"});return t?l?e.createElement("path",{d:"M24.003 31.562a1.39 1.39 0 100 2.782 1.39 1.39 0 000-2.782zm.097-20.147l14.656 26.678H9.258L24.1 11.415zm.008-2.923L6.853 39.508h34.294L24.108 8.492zm-.105 18.462c.492 0 .892-.399.892-.891V18.85a.891.891 0 00-1.783 0v7.213c0 .492.4.891.891.891z"}):z:l?r:m},l=function(a){var t=a.isExtraSmall,l=a.isHovered,m=e.createElement("path",{d:"M24.898 21.447v7.228a.893.893 0 01-1.785 0v-7.228a.892.892 0 111.785 0zm.5 11.601a1.394 1.394 0 11-2.787-.001 1.394 1.394 0 012.787.001zm-18.822 6.71h34.847L24.111 8.242 6.576 39.758z"}),r=e.createElement("path",{d:"M24.898 19.447v7.228a.893.893 0 01-1.785 0v-7.228a.892.892 0 111.785 0zm.5 13.601a1.394 1.394 0 11-2.787-.001 1.394 1.394 0 012.787.001zm-18.822 6.71h34.847L24.111 8.242 6.576 39.758z"}),z=e.createElement("path",{d:"M24.896 21.452v7.213a.891.891 0 01-1.782 0v-7.213a.89.89 0 111.782 0zm.5 11.577a1.39 1.39 0 11-2.782-.001 1.39 1.39 0 012.782.001zM6.613 39.725h34.774L24.11 8.275 6.613 39.725z"});return t?l?e.createElement("path",{d:"M24.896 18.926v7.213a.891.891 0 01-1.782 0v-7.213a.89.89 0 111.782 0zm.5 14.103a1.39 1.39 0 11-2.782-.001 1.39 1.39 0 012.782.001zM6.613 39.725h34.774L24.11 8.275 6.613 39.725z"}):z:l?r:m};export{l as A,a as X,t as a};
2
- //# sourceMappingURL=AlertSignFill-64bfef57.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AlertSignFill-64bfef57.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Button-3f327b66.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"FormGroup-b874ae21.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import{a as e}from"./_rollupPluginBabelHelpers-d0752906.js";import a from"react";import{c as r}from"./index-9b84fabc.js";import{u as l}from"./uuid-8870ab4b.js";import o from"./components/Loader/styles.module.scss";var d=a.forwardRef((function(d,t){var s,m,i,c=d.overlay,n=d.color,_=void 0===n?c?"black":"neutral":n,p=d.size,u=void 0===p?"small":p,b=d.className,v=void 0===b?"":b,f=d.testId,w=void 0===f?"":f,N=d.center,y=d.ariaLabelledById,E=d.ariaLabel,g=void 0===E?"Laster inn":E,h="small"===u,k="medium"===u,L="large"===u,j=r(o["loader-wrapper"],(e(s={},o["loader-wrapper--center"],N),e(s,o["loader-wrapper--overlay"],c),s)),x=r(o.loader,(e(m={},o["loader--small"],h),e(m,o["loader--medium"],k),e(m,o["loader--large"],L),m),v),B=r(o.loader__dot,(e(i={},o["loader__dot--small"],h),e(i,o["loader__dot--medium"],k),e(i,o["loader__dot--large"],L),e(i,o["loader__dot--banana"],"banana"===_),e(i,o["loader__dot--cherry"],"cherry"===_),e(i,o["loader__dot--kiwi"],"kiwi"===_),e(i,o["loader__dot--neutral"],"neutral"===_),e(i,o["loader__dot--plum"],"plum"===_),e(i,o["loader__dot--black"],"black"===_),e(i,o["loader__dot--white"],"white"===_),i)),I="loader".concat(l());return a.createElement("div",{role:"progressbar",className:j},a.createElement("div",{"data-testid":w,"aria-labelledby":y||I,className:x},a.createElement("div",{className:B}),a.createElement("div",{className:B}),a.createElement("div",{className:B}),a.createElement("div",{className:B}),!y&&a.createElement("span",{id:I,className:o["loader__hidden-text"]},g)))}));export{d as L};
2
- //# sourceMappingURL=Loader-cf365332.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Loader-cf365332.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
package/Modal-3dc1bb47.js DELETED
@@ -1,2 +0,0 @@
1
- import{_ as e,a as t}from"./_rollupPluginBabelHelpers-d0752906.js";import r,{useRef as a,useEffect as n,useState as o}from"react";import{c as l}from"./index-9b84fabc.js";import{p as c}from"./palette-f206f488.js";import{B as i}from"./Button-3f327b66.js";import{I as s}from"./constants-d919236e.js";import{X as m,A as d,a as u}from"./AlertSignFill-64bfef57.js";import v from"./components/Modal/styles.module.scss";import{T as p}from"./Title-7c829525.js";import{u as f}from"./uuid-8870ab4b.js";function _(){var e,t=a(null);function r(e){var r=t.current,a="Tab"===e.key;if(r&&a){var n=function(e){try{return("string"==typeof e?document.querySelector(e):e).getRootNode().activeElement}catch(t){return console.error("Feil ved å ta tak i active element basert på angitt node: ",e,t),null}}(r),o=r.querySelectorAll('a[href], button, textarea, input[type="text"], input[type="radio"], input[type="checkbox"], select'),l=o[0],c=1===o.length?l:o[o.length-1];e.shiftKey?n===l&&(c.focus(),e.preventDefault()):n===c&&(l.focus(),e.preventDefault())}}function o(e){var r=t.current;if(r){var a=r.querySelectorAll('a[href], button, textarea, input[type="text"], input[type="radio"], input[type="checkbox"], select');1===a.length&&(a[0].focus(),e.preventDefault())}}return null===(e=t.current)||void 0===e||e.focus(),n((function(){var e=t.current;return e.addEventListener("keydown",r),e.addEventListener("click",o),function(){e.removeEventListener("keydown",r),e.removeEventListener("click",o)}}),[]),t}var y,E,b=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,a=o(!1),l=e(a,2),c=l[0],i=l[1];return n((function(){var e=new IntersectionObserver((function(e){i(e[0].intersectionRatio>=r)}),{threshold:r});return(null==t?void 0:t.current)&&e.observe(t.current),function(){(null==t?void 0:t.current)&&e.unobserve(t.current)}}),[t]),c};!function(e){e.normal="normal",e.warning="warning",e.error="error",e.image="image"}(y||(y={})),function(e){e.large="large",e.medium="medium"}(E||(E={}));var g={variant:y.normal,primaryButtonText:"OK",large:!1,className:"",size:E.large},h=function(e){return r.createElement("button",{className:v.modal__lukkekryss,"aria-label":e.ariaLabel||"Lukk",onClick:e.onClick,role:"button"},r.createElement(s,{svgIcon:m,color:c.blueberry600,size:42}))},k=function(a){var o,m,E,g=r.useState(f()),k=e(g,1)[0],N=r.useRef(null),w=r.useRef(null),L=b(N),x=r.useRef(null),B=b(x),C=w.current&&w.current.scrollHeight>w.current.clientHeight;function W(e){"Escape"===e.key&&a.onClose&&(e.stopPropagation(),a.onClose())}function T(e){e.target&&I.current===e.target&&a.onClose&&(e.stopPropagation(),a.onClose())}var j=a.variant===y.image,S=null!==(o=a.titleId)&&void 0!==o?o:k,I=r.useRef(null),R=a.secondaryButtonText&&(null===(m=a.secondaryButtonText)||void 0===m?void 0:m.length)>0||a.onSuccess,z=a.ariaLabelledBy?void 0:a.ariaLabel,P=a.ariaLabelledBy?a.ariaLabelledBy:a.ariaLabel?void 0:S;return n((function(){var e=I.current;return document.body.style.overflow="hidden",e&&!R&&(e.addEventListener("keydown",W),e.addEventListener("click",T)),function(){document.body.style.removeProperty("overflow"),e&&!R&&(e.removeEventListener("keydown",W),e.removeEventListener("click",T))}}),[]),r.createElement("div",{"data-testid":"dialog-container"},r.createElement("div",{ref:I,className:v["modal-overlay"],"data-testid":a.testId},r.createElement("div",{className:v.align,ref:_()},r.createElement("div",{className:l(a.className,v.modal,v["modal--".concat(a.variant)],v["modal--".concat(a.size)]),role:"dialog","aria-label":z,"aria-labelledby":P},r.createElement("div",{className:l(v.modal__shadow,v["modal__shadow--top"],t({},v["modal__shadow--show"],!L&&C))}),r.createElement("div",{className:l(v.modal__contentWrapper,t({},v["modal__contentWrapper--image"],j)),ref:w},!a.noCloseButton&&r.createElement("div",{className:v.modal__closeWrapper},r.createElement("div",{className:l(v.modal__closeWrapper__close)},r.createElement(h,{onClick:a.onClose,ariaLabel:a.ariaLabelCloseBtn}))),r.createElement("div",{className:l(v["modal__contentWrapper__scroll--".concat(a.size)],t({},v["modal__contentWrapper__scroll--image"],j))},r.createElement("div",{ref:N}),r.createElement("div",{className:v.modal__contentWrapper__title},a.variant&&function(e){var t;if(e===y.error)t=r.createElement(s,{svgIcon:d,color:c.cherry500,hoverColor:c.cherry500});else{if(e!==y.warning)return null;t=r.createElement(s,{svgIcon:u,color:c.black,hoverColor:c.black})}return r.createElement("div",{className:v.modal__iconWrapper},t)}(a.variant),r.createElement("div",{className:a.variant===y.error?v["modal__title--error"]:""},r.createElement(p,{id:S,htmlMarkup:"h3",appearance:"title3"},a.title))),j&&r.createElement("div",null,r.createElement("div",{className:v.modal__contentWrapper__imageWrapper},a.children),r.createElement("span",{className:v.modal__contentWrapper__imageDescription},a.description)),!j&&a.children&&r.createElement("div",null,a.children),!j&&!a.children&&r.createElement("p",{className:v.modal__description},a.description),r.createElement("div",{ref:x}))),r.createElement("div",{className:l(v.modal__shadow,v["modal__shadow--bottom"],t({},v["modal__shadow--show"],!B&&C))}),R&&r.createElement("div",{className:l(v["modal__call-to-action"],v["modal__call-to-action--".concat(a.size)])},a.onSuccess&&r.createElement(i,{onClick:a.onSuccess},a.primaryButtonText),a.secondaryButtonText&&(null===(E=a.secondaryButtonText)||void 0===E?void 0:E.length)>0&&r.createElement(i,{variant:"borderless",onClick:a.onClose},a.secondaryButtonText))))))};k.defaultProps=g;export{k as M};
2
- //# sourceMappingURL=Modal-3dc1bb47.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Modal-3dc1bb47.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
package/Title-7c829525.js DELETED
@@ -1,2 +0,0 @@
1
- import{a as t}from"./_rollupPluginBabelHelpers-d0752906.js";import e from"react";import{c as r}from"./index-9b84fabc.js";import i from"./components/Title/styles.module.scss";var o=e.forwardRef((function(o,a){var l,m=o.id,n=o.children,c=o.className,p=o.htmlMarkup,s=void 0===p?"h1":p,f=o.appearance,d=void 0===f?"title1":f,g=o.margin,u=void 0===g?0:g,y=r(i.title,(t(l={},i["title--feature"],"titleFeature"===d),t(l,i["title--title1"],"title1"===d),t(l,i["title--title2"],"title2"===d),t(l,i["title--title3"],"title3"===d),t(l,i["title--title4"],"title4"===d),t(l,i["title--title5"],"title5"===d),l),c),T=s,b=function(t){return Object.prototype.hasOwnProperty.call(t,"marginTop")&&Object.prototype.hasOwnProperty.call(t,"marginBottom")}(u)?{marginTop:"".concat(u.marginTop,"rem"),marginBottom:"".concat(u.marginBottom,"rem")}:{marginTop:"".concat(u,"rem"),marginBottom:"".concat(u,"rem")};return e.createElement(T,{id:m,className:y,style:b,ref:a},n)}));export{o as T};
2
- //# sourceMappingURL=Title-7c829525.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Title-7c829525.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Validation-b902407e.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}