@helsenorge/designsystem-react 1.0.0-beta92 → 1.0.0-beta94

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 (98) hide show
  1. package/{Button-2be46c88.js → Button-72f96290.js} +2 -2
  2. package/Button-72f96290.js.map +1 -0
  3. package/{FormGroup-9555dd73.js → FormGroup-68288be3.js} +2 -2
  4. package/FormGroup-68288be3.js.map +1 -0
  5. package/Loader-b3fd59f4.js +2 -0
  6. package/Loader-b3fd59f4.js.map +1 -0
  7. package/Modal-6b4a2c9c.js +2 -0
  8. package/Modal-6b4a2c9c.js.map +1 -0
  9. package/Title-90910763.js +2 -0
  10. package/Title-90910763.js.map +1 -0
  11. package/{Validation-1236e8ef.js → Validation-ef9ee0ae.js} +2 -2
  12. package/Validation-ef9ee0ae.js.map +1 -0
  13. package/components/AnchorLink/index.d.ts +1 -0
  14. package/components/AnchorLink/index.d.ts.map +1 -1
  15. package/components/Avatar/index.d.ts +1 -0
  16. package/components/Avatar/index.d.ts.map +1 -1
  17. package/components/Badge/index.d.ts +1 -0
  18. package/components/Badge/index.d.ts.map +1 -1
  19. package/components/Button/index.d.ts +1 -0
  20. package/components/Button/index.d.ts.map +1 -1
  21. package/components/Button/index.js +1 -1
  22. package/components/ButtonWithModal/index.d.ts +1 -0
  23. package/components/ButtonWithModal/index.d.ts.map +1 -1
  24. package/components/ButtonWithModal/index.js +1 -1
  25. package/components/Checkbox/index.d.ts +1 -0
  26. package/components/Checkbox/index.d.ts.map +1 -1
  27. package/components/Checkbox/index.js +1 -1
  28. package/components/Close/index.d.ts +1 -0
  29. package/components/Close/index.d.ts.map +1 -1
  30. package/components/ExpanderList/index.d.ts +1 -0
  31. package/components/ExpanderList/index.d.ts.map +1 -1
  32. package/components/ExpanderList/index.js +1 -1
  33. package/components/FormExample/index.d.ts +1 -0
  34. package/components/FormExample/index.d.ts.map +1 -1
  35. package/components/FormExample/index.js +1 -1
  36. package/components/FormGroup/index.d.ts +1 -0
  37. package/components/FormGroup/index.d.ts.map +1 -1
  38. package/components/FormGroup/index.js +1 -1
  39. package/components/HighlightBox/HighlightBox.d.ts +24 -0
  40. package/components/HighlightBox/HighlightBox.d.ts.map +1 -0
  41. package/components/HighlightBox/componentdata.json +484 -0
  42. package/components/HighlightBox/index.d.ts +4 -0
  43. package/components/HighlightBox/index.d.ts.map +1 -0
  44. package/components/HighlightBox/index.js +2 -0
  45. package/components/HighlightBox/index.js.map +1 -0
  46. package/components/HighlightBox/styles.module.scss +89 -0
  47. package/components/Icons/Icon.js +1 -1
  48. package/components/LinkList/index.d.ts +1 -0
  49. package/components/LinkList/index.d.ts.map +1 -1
  50. package/components/LinkList/index.js +1 -1
  51. package/components/List/index.d.ts +1 -0
  52. package/components/List/index.d.ts.map +1 -1
  53. package/components/Loader/Loader.d.ts +2 -2
  54. package/components/Loader/componentdata.json +3 -3
  55. package/components/Loader/index.d.ts +1 -0
  56. package/components/Loader/index.d.ts.map +1 -1
  57. package/components/Loader/index.js +1 -1
  58. package/components/Logo/index.d.ts +1 -0
  59. package/components/Logo/index.d.ts.map +1 -1
  60. package/components/Modal/index.d.ts +1 -0
  61. package/components/Modal/index.d.ts.map +1 -1
  62. package/components/Modal/index.js +1 -1
  63. package/components/NotificationPanel/index.d.ts +1 -0
  64. package/components/NotificationPanel/index.d.ts.map +1 -1
  65. package/components/NotificationPanel/index.js +1 -1
  66. package/components/RadioButton/index.d.ts +1 -0
  67. package/components/RadioButton/index.d.ts.map +1 -1
  68. package/components/RadioButton/index.js +1 -1
  69. package/components/Slider/index.d.ts +1 -0
  70. package/components/Slider/index.d.ts.map +1 -1
  71. package/components/Slider/index.js +1 -1
  72. package/components/Spacer/index.d.ts +1 -0
  73. package/components/Spacer/index.d.ts.map +1 -1
  74. package/components/Textarea/index.d.ts +1 -0
  75. package/components/Textarea/index.d.ts.map +1 -1
  76. package/components/Tile/index.d.ts +1 -0
  77. package/components/Tile/index.d.ts.map +1 -1
  78. package/components/Tile/index.js +1 -1
  79. package/components/Title/index.d.ts +1 -0
  80. package/components/Title/index.d.ts.map +1 -1
  81. package/components/Title/index.js +1 -1
  82. package/components/Validation/index.d.ts +1 -0
  83. package/components/Validation/index.d.ts.map +1 -1
  84. package/components/Validation/index.js +1 -1
  85. package/index.d.ts +1 -0
  86. package/index.d.ts.map +1 -1
  87. package/index.js +1 -1
  88. package/package.json +1 -1
  89. package/scss/_title.scss +16 -12
  90. package/Button-2be46c88.js.map +0 -1
  91. package/FormGroup-9555dd73.js.map +0 -1
  92. package/Loader-3589bdb1.js +0 -2
  93. package/Loader-3589bdb1.js.map +0 -1
  94. package/Modal-b68c7a72.js +0 -2
  95. package/Modal-b68c7a72.js.map +0 -1
  96. package/Title-72851d51.js +0 -2
  97. package/Title-72851d51.js.map +0 -1
  98. package/Validation-1236e8ef.js.map +0 -1
@@ -1,2 +1,2 @@
1
- import{L as r}from"../../Loader-3589bdb1.js";export{L as default}from"../../Loader-3589bdb1.js";import"../../_rollupPluginBabelHelpers-d0752906.js";import"react";import"../../index-9b84fabc.js";import"../../uuid-8870ab4b.js";import"./styles.module.scss";
1
+ import{L as r}from"../../Loader-b3fd59f4.js";export{O as Overlay,L as default}from"../../Loader-b3fd59f4.js";import"../../_rollupPluginBabelHelpers-d0752906.js";import"react";import"../../index-9b84fabc.js";import"../../uuid-8870ab4b.js";import"./styles.module.scss";
2
2
  //# sourceMappingURL=index.js.map
@@ -1,3 +1,4 @@
1
1
  import Logo from './Logo';
2
+ export * from './Logo';
2
3
  export default Logo;
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Logo/index.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,eAAe,IAAI,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Logo/index.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,eAAe,IAAI,CAAC"}
@@ -1,3 +1,4 @@
1
1
  import Modal from './Modal';
2
+ export * from './Modal';
2
3
  export default Modal;
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,eAAe,KAAK,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,eAAe,KAAK,CAAC"}
@@ -1,2 +1,2 @@
1
- import{M as s}from"../../Modal-b68c7a72.js";export{M as default}from"../../Modal-b68c7a72.js";import"../../_rollupPluginBabelHelpers-d0752906.js";import"react";import"../../index-9b84fabc.js";import"../../palette-f206f488.js";import"../../Button-2be46c88.js";import"../../_tslib-51c8a283.js";import"../../color-acb834c6.js";import"../../index-19b48c51.js";import"../../grid-11a70eb7.js";import"../../Icon-9b4a8a2d.js";import"../../constants-a4b0b501.js";import"../../Loader-3589bdb1.js";import"../../uuid-8870ab4b.js";import"../Loader/styles.module.scss";import"../../useHover-037be19d.js";import"../../useWindowSize-73b47451.js";import"../Button/styles.module.scss";import"./styles.module.scss";import"../../AlertSignFill-e607ff43.js";import"../../Title-72851d51.js";import"../Title/styles.module.scss";import"../../Close-80751ae6.js";import"../Close/styles.module.scss";import"../../useBreakpoint-324a9b14.js";import"react-dom";
1
+ import{M as s}from"../../Modal-6b4a2c9c.js";export{b as ModalSize,a as ModalVariants,M as default}from"../../Modal-6b4a2c9c.js";import"../../_rollupPluginBabelHelpers-d0752906.js";import"react";import"../../index-9b84fabc.js";import"../../palette-f206f488.js";import"../../Button-72f96290.js";import"../../_tslib-51c8a283.js";import"../../color-acb834c6.js";import"../../index-19b48c51.js";import"../../grid-11a70eb7.js";import"../../Icon-9b4a8a2d.js";import"../../constants-a4b0b501.js";import"../../Loader-b3fd59f4.js";import"../../uuid-8870ab4b.js";import"../Loader/styles.module.scss";import"../../useHover-037be19d.js";import"../../useWindowSize-73b47451.js";import"../Button/styles.module.scss";import"./styles.module.scss";import"../../AlertSignFill-e607ff43.js";import"../../Title-90910763.js";import"../Title/styles.module.scss";import"../../Close-80751ae6.js";import"../Close/styles.module.scss";import"../../useBreakpoint-324a9b14.js";import"react-dom";
2
2
  //# sourceMappingURL=index.js.map
@@ -1,3 +1,4 @@
1
1
  import NotificationPanel from './NotificationPanel';
2
+ export * from './NotificationPanel';
2
3
  export default NotificationPanel;
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/NotificationPanel/index.ts"],"names":[],"mappings":"AAAA,OAAO,iBAAiB,MAAM,qBAAqB,CAAC;AACpD,eAAe,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/NotificationPanel/index.ts"],"names":[],"mappings":"AAAA,OAAO,iBAAiB,MAAM,qBAAqB,CAAC;AACpD,cAAc,qBAAqB,CAAC;AACpC,eAAe,iBAAiB,CAAC"}
@@ -1,2 +1,2 @@
1
- import{a}from"../../_rollupPluginBabelHelpers-d0752906.js";import e from"react";import{c as t}from"../../index-9b84fabc.js";import{p as n}from"../../palette-f206f488.js";import{I as o}from"../../Icon-9b4a8a2d.js";import"../../constants-a4b0b501.js";import{a as i,A as l}from"../../AlertSignFill-e607ff43.js";import r from"./styles.module.scss";import{C as c}from"../../Close-80751ae6.js";import"../../_tslib-51c8a283.js";import"../Close/styles.module.scss";import"../../useBreakpoint-324a9b14.js";import"../../useWindowSize-73b47451.js";import"../../grid-11a70eb7.js";var s={info:e.createElement(o,{svgIcon:function(a){var t=a.isExtraSmall,n=a.isHovered,o=e.createElement("path",{d:"M25.672 30.501a.682.682 0 01-.322-.272.835.835 0 01-.11-.443v-7.917l-.112-.112-3.651.194v.544c.148.015.314.05.495.104.18.055.316.112.406.172a.994.994 0 01.299.316.88.88 0 01.119.459v6.337a.879.879 0 01-.098.443.623.623 0 01-.335.257c-.09.035-.197.06-.32.074a8.883 8.883 0 01-.38.038v.544h4.709v-.544a2.45 2.45 0 01-.7-.194M24 37.604c-7.5 0-13.604-6.103-13.604-13.604 0-7.501 6.104-13.603 13.604-13.603 7.502 0 13.602 6.102 13.602 13.603 0 7.501-6.1 13.604-13.601 13.604m0-28.909C15.56 8.695 8.694 15.562 8.694 24c0 8.438 6.867 15.305 15.305 15.305 8.438 0 15.304-6.867 15.304-15.305 0-8.438-6.866-15.305-15.304-15.305m-.274 10.632a1.559 1.559 0 100-3.118 1.559 1.559 0 000 3.118"}),i=e.createElement("path",{d:"M25.672 30.501a.682.682 0 01-.322-.272.835.835 0 01-.11-.443v-7.917l-.112-.112-3.651.194v.544c.148.015.314.05.495.104.18.055.316.112.406.172a.994.994 0 01.299.316.88.88 0 01.119.459v6.337a.879.879 0 01-.098.443.623.623 0 01-.335.257c-.09.035-.197.06-.32.074a8.883 8.883 0 01-.38.038v.544h4.709v-.544a2.45 2.45 0 01-.7-.194M24 37.604c-7.5 0-13.604-6.103-13.604-13.604 0-7.501 6.104-13.603 13.604-13.603 7.502 0 13.602 6.102 13.602 13.603 0 7.501-6.1 13.604-13.601 13.604m0-28.909C15.56 8.695 8.694 15.562 8.694 24c0 8.438 6.867 15.305 15.305 15.305 8.438 0 15.304-6.867 15.304-15.305 0-8.438-6.866-15.305-15.304-15.305m-.274 8.632a1.559 1.559 0 100-3.118 1.559 1.559 0 000 3.118"}),l=e.createElement("path",{d:"M25.668 30.487a.68.68 0 01-.32-.271.833.833 0 01-.111-.442v-7.9l-.112-.112-3.643.193v.543c.148.015.313.05.495.104.18.055.315.112.405.172a.991.991 0 01.297.315.877.877 0 01.119.458v6.324c0 .182-.032.33-.097.442a.622.622 0 01-.334.256c-.09.035-.197.06-.32.074-.124.015-.25.028-.38.038v.543h4.7v-.543a2.445 2.445 0 01-.699-.194M24 37.575c-7.485 0-13.575-6.09-13.575-13.575 0-7.485 6.09-13.574 13.575-13.574 7.486 0 13.574 6.089 13.574 13.574 0 7.485-6.088 13.575-13.574 13.575m0-28.848C15.58 8.727 8.728 15.58 8.728 24S15.579 39.273 24 39.273c8.42 0 15.272-6.853 15.272-15.273S32.421 8.727 24 8.727m-.274 10.61a1.556 1.556 0 100-3.112 1.556 1.556 0 000 3.112"});return t?n?e.createElement("path",{d:"M25.668 30.487a.68.68 0 01-.32-.271.833.833 0 01-.111-.442v-7.9l-.112-.112-3.643.193v.543c.148.015.313.05.495.104.18.055.315.112.405.172a.991.991 0 01.297.315.877.877 0 01.119.458v6.324c0 .182-.032.33-.097.442a.622.622 0 01-.334.256c-.09.035-.197.06-.32.074-.124.015-.25.028-.38.038v.543h4.7v-.543a2.445 2.445 0 01-.699-.194M24 37.575c-7.485 0-13.575-6.09-13.575-13.575 0-7.485 6.09-13.574 13.575-13.574 7.486 0 13.574 6.089 13.574 13.574 0 7.485-6.088 13.575-13.574 13.575m0-28.848C15.58 8.727 8.728 15.58 8.728 24S15.579 39.273 24 39.273c8.42 0 15.272-6.853 15.272-15.273S32.421 8.727 24 8.727m-.274 8.084a1.556 1.556 0 100-3.112 1.556 1.556 0 000 3.112"}):l:n?i:o},color:n.kiwi900,hoverColor:n.kiwi900}),warn:e.createElement(o,{svgIcon:i,color:"black",hoverColor:"black"}),alert:e.createElement(o,{svgIcon:l,color:n.cherry500,hoverColor:n.cherry500}),alertLabel:e.createElement(o,{svgIcon:i,color:n.cherry500,hoverColor:n.cherry500}),crisis:e.createElement(o,{svgIcon:l,color:n.banana200,hoverColor:n.banana200})},m=e.forwardRef((function(n,o){var i,l,m=n.children,p=n.variant,f=void 0===p?"info":p,v=n.shadow,d=void 0!==v&&v,h=n.dismissable,b=void 0!==h&&h,_=n.onClick,u=n.label,E=n.fluid,C=void 0!==E&&E,j=n.size,w=n.className,g=n.testId;var I;return I=e.createElement("div",{ref:o,"data-testid":g,className:t(r["notification-panel"],r["notification-panel--"+j],r["notification-panel--"+f],(i={},a(i,r["notification-panel--shadow"],!C&&d),a(i,r["notification-panel--haslabel"],!!u&&!m),a(i,r["notification-panel--dismissable"],b),i),w||"")},e.createElement("span",{className:r["notification-panel__icon"]},s["alert"===f&&u&&!m?"alertLabel":f]),e.createElement("section",{"aria-label":function(){if(m){var a="";return e.Children.map(m,(function(e){"string"==typeof e&&(a+=e)})),a}return""}(),className:t(r["notification-panel__content"],(l={},a(l,r["notification-panel__content--crisis"],"crisis"===f),a(l,r["notification-panel__content--haslabel"],!!u&&!m),a(l,r["notification-panel__content--isred"],"alert"===f&&!!u&&!m),l))},u?e.createElement("h1",{className:r["notification-panel__label"],dangerouslySetInnerHTML:{__html:u}}):null,m),b?e.createElement("span",{className:r["notification-panel__action-column"]},e.createElement(c,{ariaLabel:n.ariaLabelCloseBtn,onClick:_})):null),C?e.createElement("div",{className:t(r["notification-panel__fluidwrapper"],r["notification-panel__fluidwrapper--"+f],a({},r["notification-panel__fluidwrapper--shadow"],d))},I):I}));export default m;
1
+ import{a}from"../../_rollupPluginBabelHelpers-d0752906.js";import e from"react";import{c as t}from"../../index-9b84fabc.js";import{p as o}from"../../palette-f206f488.js";import{I as n}from"../../Icon-9b4a8a2d.js";import"../../constants-a4b0b501.js";import{a as i,A as r}from"../../AlertSignFill-e607ff43.js";import l from"./styles.module.scss";import{C as c}from"../../Close-80751ae6.js";import"../../_tslib-51c8a283.js";import"../Close/styles.module.scss";import"../../useBreakpoint-324a9b14.js";import"../../useWindowSize-73b47451.js";import"../../grid-11a70eb7.js";var s={info:{color:"kiwi",depth:50},warn:{color:"banana",depth:50},alert:{color:"cherry",depth:100},crisis:{color:"black",depth:0}},m={info:e.createElement(n,{svgIcon:function(a){var t=a.isExtraSmall,o=a.isHovered,n=e.createElement("path",{d:"M25.672 30.501a.682.682 0 01-.322-.272.835.835 0 01-.11-.443v-7.917l-.112-.112-3.651.194v.544c.148.015.314.05.495.104.18.055.316.112.406.172a.994.994 0 01.299.316.88.88 0 01.119.459v6.337a.879.879 0 01-.098.443.623.623 0 01-.335.257c-.09.035-.197.06-.32.074a8.883 8.883 0 01-.38.038v.544h4.709v-.544a2.45 2.45 0 01-.7-.194M24 37.604c-7.5 0-13.604-6.103-13.604-13.604 0-7.501 6.104-13.603 13.604-13.603 7.502 0 13.602 6.102 13.602 13.603 0 7.501-6.1 13.604-13.601 13.604m0-28.909C15.56 8.695 8.694 15.562 8.694 24c0 8.438 6.867 15.305 15.305 15.305 8.438 0 15.304-6.867 15.304-15.305 0-8.438-6.866-15.305-15.304-15.305m-.274 10.632a1.559 1.559 0 100-3.118 1.559 1.559 0 000 3.118"}),i=e.createElement("path",{d:"M25.672 30.501a.682.682 0 01-.322-.272.835.835 0 01-.11-.443v-7.917l-.112-.112-3.651.194v.544c.148.015.314.05.495.104.18.055.316.112.406.172a.994.994 0 01.299.316.88.88 0 01.119.459v6.337a.879.879 0 01-.098.443.623.623 0 01-.335.257c-.09.035-.197.06-.32.074a8.883 8.883 0 01-.38.038v.544h4.709v-.544a2.45 2.45 0 01-.7-.194M24 37.604c-7.5 0-13.604-6.103-13.604-13.604 0-7.501 6.104-13.603 13.604-13.603 7.502 0 13.602 6.102 13.602 13.603 0 7.501-6.1 13.604-13.601 13.604m0-28.909C15.56 8.695 8.694 15.562 8.694 24c0 8.438 6.867 15.305 15.305 15.305 8.438 0 15.304-6.867 15.304-15.305 0-8.438-6.866-15.305-15.304-15.305m-.274 8.632a1.559 1.559 0 100-3.118 1.559 1.559 0 000 3.118"}),r=e.createElement("path",{d:"M25.668 30.487a.68.68 0 01-.32-.271.833.833 0 01-.111-.442v-7.9l-.112-.112-3.643.193v.543c.148.015.313.05.495.104.18.055.315.112.405.172a.991.991 0 01.297.315.877.877 0 01.119.458v6.324c0 .182-.032.33-.097.442a.622.622 0 01-.334.256c-.09.035-.197.06-.32.074-.124.015-.25.028-.38.038v.543h4.7v-.543a2.445 2.445 0 01-.699-.194M24 37.575c-7.485 0-13.575-6.09-13.575-13.575 0-7.485 6.09-13.574 13.575-13.574 7.486 0 13.574 6.089 13.574 13.574 0 7.485-6.088 13.575-13.574 13.575m0-28.848C15.58 8.727 8.728 15.58 8.728 24S15.579 39.273 24 39.273c8.42 0 15.272-6.853 15.272-15.273S32.421 8.727 24 8.727m-.274 10.61a1.556 1.556 0 100-3.112 1.556 1.556 0 000 3.112"});return t?o?e.createElement("path",{d:"M25.668 30.487a.68.68 0 01-.32-.271.833.833 0 01-.111-.442v-7.9l-.112-.112-3.643.193v.543c.148.015.313.05.495.104.18.055.315.112.405.172a.991.991 0 01.297.315.877.877 0 01.119.458v6.324c0 .182-.032.33-.097.442a.622.622 0 01-.334.256c-.09.035-.197.06-.32.074-.124.015-.25.028-.38.038v.543h4.7v-.543a2.445 2.445 0 01-.699-.194M24 37.575c-7.485 0-13.575-6.09-13.575-13.575 0-7.485 6.09-13.574 13.575-13.574 7.486 0 13.574 6.089 13.574 13.574 0 7.485-6.088 13.575-13.574 13.575m0-28.848C15.58 8.727 8.728 15.58 8.728 24S15.579 39.273 24 39.273c8.42 0 15.272-6.853 15.272-15.273S32.421 8.727 24 8.727m-.274 8.084a1.556 1.556 0 100-3.112 1.556 1.556 0 000 3.112"}):r:o?i:n},color:o.kiwi900,hoverColor:o.kiwi900}),warn:e.createElement(n,{svgIcon:i,color:"black",hoverColor:"black"}),alert:e.createElement(n,{svgIcon:r,color:o.cherry500,hoverColor:o.cherry500}),alertLabel:e.createElement(n,{svgIcon:i,color:o.cherry500,hoverColor:o.cherry500}),crisis:e.createElement(n,{svgIcon:r,color:o.banana200,hoverColor:o.banana200})},p=e.forwardRef((function(o,n){var i,r,s=o.children,p=o.variant,f=void 0===p?"info":p,v=o.shadow,d=void 0!==v&&v,h=o.dismissable,b=void 0!==h&&h,_=o.onClick,u=o.label,E=o.fluid,C=void 0!==E&&E,w=o.size,j=o.className,g=o.testId;var k;return k=e.createElement("div",{ref:n,"data-testid":g,className:t(l["notification-panel"],l["notification-panel--"+w],l["notification-panel--"+f],(i={},a(i,l["notification-panel--shadow"],!C&&d),a(i,l["notification-panel--haslabel"],!!u&&!s),a(i,l["notification-panel--dismissable"],b),i),j||"")},e.createElement("span",{className:l["notification-panel__icon"]},m["alert"===f&&u&&!s?"alertLabel":f]),e.createElement("section",{"aria-label":function(){if(s){var a="";return e.Children.map(s,(function(e){"string"==typeof e&&(a+=e)})),a}return""}(),className:t(l["notification-panel__content"],(r={},a(r,l["notification-panel__content--crisis"],"crisis"===f),a(r,l["notification-panel__content--haslabel"],!!u&&!s),a(r,l["notification-panel__content--isred"],"alert"===f&&!!u&&!s),r))},u?e.createElement("h1",{className:l["notification-panel__label"],dangerouslySetInnerHTML:{__html:u}}):null,s),b?e.createElement("span",{className:l["notification-panel__action-column"]},e.createElement(c,{ariaLabel:o.ariaLabelCloseBtn,onClick:_})):null),C?e.createElement("div",{className:t(l["notification-panel__fluidwrapper"],l["notification-panel__fluidwrapper--"+f],a({},l["notification-panel__fluidwrapper--shadow"],d))},k):k}));export default p;export{s as variantToColorMap};
2
2
  //# sourceMappingURL=index.js.map
@@ -1,3 +1,4 @@
1
1
  import RadioButton from './RadioButton';
2
+ export * from './RadioButton';
2
3
  export default RadioButton;
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/RadioButton/index.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,eAAe,CAAC;AACxC,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/RadioButton/index.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,eAAe,CAAC;AACxC,cAAc,eAAe,CAAC;AAC9B,eAAe,WAAW,CAAC"}
@@ -1,2 +1,2 @@
1
- import{R as o}from"../../RadioButton-84ca988e.js";export{R as default}from"../../RadioButton-84ca988e.js";import"../../_rollupPluginBabelHelpers-d0752906.js";import"react";import"../../index-9b84fabc.js";import"../../uuid-8870ab4b.js";import"./styles.module.scss";import"../../constants-a4b0b501.js";
1
+ import{R as o}from"../../RadioButton-84ca988e.js";export{R as RadioButton,R as default}from"../../RadioButton-84ca988e.js";import"../../_rollupPluginBabelHelpers-d0752906.js";import"react";import"../../index-9b84fabc.js";import"../../uuid-8870ab4b.js";import"./styles.module.scss";import"../../constants-a4b0b501.js";
2
2
  //# sourceMappingURL=index.js.map
@@ -1,3 +1,4 @@
1
1
  import Slider from './Slider';
2
+ export * from './Slider';
2
3
  export default Slider;
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Slider/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Slider/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,eAAe,MAAM,CAAC"}
@@ -1,2 +1,2 @@
1
- import{_ as e}from"../../_rollupPluginBabelHelpers-d0752906.js";import t,{useState as n,useRef as r,useEffect as o}from"react";import{c as a}from"../../index-9b84fabc.js";import{T as i}from"../../Title-72851d51.js";import c from"./styles.module.scss";import"../Title/styles.module.scss";var u=function(e){return e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault(),!1},l=function(e){return d(e)?e.touches[0].pageX:e.pageX},s=function(e){var t=e?e.getBoundingClientRect():void 0;return t?t.right-t.left:0},d=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)},m=function(e,t,n){var r=e-e%t,o=Math.floor(n/t)*t;e>o&&(e>o+(n-o)/2&&(r=n));return Math.round(r)},f=t.forwardRef((function(d,f){var v=d.title,p=d.labelLeft,h=d.labelRight,_=d.disabled,g=void 0!==_&&_,E=d.step,y=void 0===E?1:E,b=d.onChange,w=d.testId,k=n(50),L=e(k,2),N=L[0],x=L[1],D=n(!1),M=e(D,2),R=M[0],A=M[1],T=n(0),j=e(T,2),B=j[0],C=j[1],P=n(0),I=e(P,2),X=I[0],H=I[1],K=n(0),S=e(K,2),U=S[0],q=S[1],z=n(0),F=e(z,2),G=F[0],J=F[1],O=f||r(null),Q=r(null),V=function(e){te(e)},W=function(e){ee(e)},Y=function(e){te(e)},Z=function(e){ee(e)};o((function(){var e=s(O.current),t=s(Q.current);q(function(e,t,n,r,o){return(t-n)/(o-r)*e}(N,e,t,0,100)),C(e),H(t)}),[]),o((function(){R&&(function(e,t){document.addEventListener("mousemove",e,!1),document.addEventListener("mouseup",t,!1)}(V,W),function(e,t){document.addEventListener("touchmove",e,!1),document.addEventListener("touchend",t,!1)}(Y,Z))}),[R]),o((function(){!g&&b&&b(N)}),[N]);var $=function(e){var t;if(!g){var n=s(O.current),r=s(Q.current),o=l(e);!function(e,t,n,r){var o=t?t.getBoundingClientRect():void 0,a=o?o.left:0;r(a?e-(a+n/2):0)}(o,Q.current,r,ne),A(!0),J(o),C(n),H(r),null===(t=Q.current)||void 0===t||t.focus(),u(e)}},ee=function(e){g||(A(!1),function(e,t){document.removeEventListener("mousemove",e,!1),document.removeEventListener("mouseup",t,!1)}(V,W),function(e,t){document.removeEventListener("touchmove",e,!1),document.removeEventListener("touchend",t,!1)}(Y,Z),u(e))},te=function(e){if(!g&&R){var t=l(e);ne(t-G),u(e)}},ne=function(e){if(0!==e){var t=function(e,t,n,r){var o=r+e;return o<0&&(o=0),o>t-n&&(o=t-n),o}(e,B,X,U);q(t),J(t+e),x(function(e,t,n,r,o,a){var i=(t-n)/(a-o),c=Math.round(e/i);return m(c,r,a)}(t,B,X,y,0,100))}};return t.createElement("div",{className:c.slider,"data-testid":w},v&&t.createElement(i,{htmlMarkup:"h3",margin:1.5,appearance:"title3"},v),t.createElement("div",{ref:O,className:a(c["slider__track-wrapper"],g?c["slider__track-wrapper--disabled"]:""),onMouseDown:$,onTouchStart:$,"data-testid":"tracker"},t.createElement("div",{className:a(c.slider__track,g?c["slider__track--disabled"]:"")}),t.createElement("div",{ref:Q,className:a(c.slider__trigger,g?c["slider__trigger--disabled"]:""),style:{left:"".concat(U,"px")},onKeyDown:function(e){if(!g){var t=(B-X)/100;"ArrowRight"!==e.key&&"ArrowDown"!==e.key||ne(y*t),"ArrowLeft"!==e.key&&"ArrowUp"!==e.key||ne(-y*t)}},role:"slider","aria-valuenow":N,"aria-valuemin":0,"aria-valuemax":100,"aria-label":"".concat(v?v+" ":"").concat(p?p+" ":"").concat(h?h+" ":""),tabIndex:g?-1:0},t.createElement("div",{className:a(c["slider__trigger-inner"],g?c["slider__trigger-inner--disabled"]:"")}))),(p||h)&&t.createElement("span",{className:c.slider__options},t.createElement("p",{className:c.slider__text,"aria-hidden":!0},p),t.createElement("p",{className:c.slider__text,"aria-hidden":!0},h)))}));export default f;
1
+ import{_ as e}from"../../_rollupPluginBabelHelpers-d0752906.js";import t,{useState as n,useRef as r,useEffect as o}from"react";import{c as a}from"../../index-9b84fabc.js";import{T as i}from"../../Title-90910763.js";import c from"./styles.module.scss";import"../Title/styles.module.scss";var u=function(e){return e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault(),!1},l=function(e){return d(e)?e.touches[0].pageX:e.pageX},s=function(e){var t=e?e.getBoundingClientRect():void 0;return t?t.right-t.left:0},d=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)},m=function(e,t,n){var r=e-e%t,o=Math.floor(n/t)*t;e>o&&(e>o+(n-o)/2&&(r=n));return Math.round(r)},f=t.forwardRef((function(d,f){var v=d.title,p=d.labelLeft,h=d.labelRight,_=d.disabled,g=void 0!==_&&_,E=d.step,y=void 0===E?1:E,b=d.onChange,w=d.testId,k=n(50),L=e(k,2),x=L[0],N=L[1],D=n(!1),M=e(D,2),R=M[0],A=M[1],T=n(0),j=e(T,2),B=j[0],C=j[1],P=n(0),I=e(P,2),X=I[0],H=I[1],K=n(0),S=e(K,2),U=S[0],q=S[1],z=n(0),F=e(z,2),G=F[0],J=F[1],O=f||r(null),Q=r(null),V=function(e){te(e)},W=function(e){ee(e)},Y=function(e){te(e)},Z=function(e){ee(e)};o((function(){var e=s(O.current),t=s(Q.current);q(function(e,t,n,r,o){return(t-n)/(o-r)*e}(x,e,t,0,100)),C(e),H(t)}),[]),o((function(){R&&(function(e,t){document.addEventListener("mousemove",e,!1),document.addEventListener("mouseup",t,!1)}(V,W),function(e,t){document.addEventListener("touchmove",e,!1),document.addEventListener("touchend",t,!1)}(Y,Z))}),[R]),o((function(){!g&&b&&b(x)}),[x]);var $=function(e){var t;if(!g){var n=s(O.current),r=s(Q.current),o=l(e);!function(e,t,n,r){var o=t?t.getBoundingClientRect():void 0,a=o?o.left:0;r(a?e-(a+n/2):0)}(o,Q.current,r,ne),A(!0),J(o),C(n),H(r),null===(t=Q.current)||void 0===t||t.focus(),u(e)}},ee=function(e){g||(A(!1),function(e,t){document.removeEventListener("mousemove",e,!1),document.removeEventListener("mouseup",t,!1)}(V,W),function(e,t){document.removeEventListener("touchmove",e,!1),document.removeEventListener("touchend",t,!1)}(Y,Z),u(e))},te=function(e){if(!g&&R){var t=l(e);ne(t-G),u(e)}},ne=function(e){if(0!==e){var t=function(e,t,n,r){var o=r+e;return o<0&&(o=0),o>t-n&&(o=t-n),o}(e,B,X,U);q(t),J(t+e),N(function(e,t,n,r,o,a){var i=(t-n)/(a-o),c=Math.round(e/i);return m(c,r,a)}(t,B,X,y,0,100))}};return t.createElement("div",{className:c.slider,"data-testid":w},v&&t.createElement(i,{htmlMarkup:"h3",margin:1.5,appearance:"title3"},v),t.createElement("div",{ref:O,className:a(c["slider__track-wrapper"],g?c["slider__track-wrapper--disabled"]:""),onMouseDown:$,onTouchStart:$,"data-testid":"tracker"},t.createElement("div",{className:a(c.slider__track,g?c["slider__track--disabled"]:"")}),t.createElement("div",{ref:Q,className:a(c.slider__trigger,g?c["slider__trigger--disabled"]:""),style:{left:"".concat(U,"px")},onKeyDown:function(e){if(!g){var t=(B-X)/100;"ArrowRight"!==e.key&&"ArrowDown"!==e.key||ne(y*t),"ArrowLeft"!==e.key&&"ArrowUp"!==e.key||ne(-y*t)}},role:"slider","aria-valuenow":x,"aria-valuemin":0,"aria-valuemax":100,"aria-label":"".concat(v?v+" ":"").concat(p?p+" ":"").concat(h?h+" ":""),tabIndex:g?-1:0},t.createElement("div",{className:a(c["slider__trigger-inner"],g?c["slider__trigger-inner--disabled"]:"")}))),(p||h)&&t.createElement("span",{className:c.slider__options},t.createElement("p",{className:c.slider__text,"aria-hidden":!0},p),t.createElement("p",{className:c.slider__text,"aria-hidden":!0},h)))}));export default f;export{f as Slider};
2
2
  //# sourceMappingURL=index.js.map
@@ -1,3 +1,4 @@
1
1
  import Spacer from './Spacer';
2
+ export * from './Spacer';
2
3
  export default Spacer;
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Spacer/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Spacer/index.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,eAAe,MAAM,CAAC"}
@@ -1,3 +1,4 @@
1
1
  import Textarea from './Textarea';
2
+ export * from './Textarea';
2
3
  export default Textarea;
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Textarea/index.tsx"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,YAAY,CAAC;AAElC,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Textarea/index.tsx"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,YAAY,CAAC;AAClC,cAAc,YAAY,CAAC;AAC3B,eAAe,QAAQ,CAAC"}
@@ -1,3 +1,4 @@
1
1
  import Tile from './Tile';
2
+ export * from './Tile';
2
3
  export default Tile;
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Tile/index.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,eAAe,IAAI,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Tile/index.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,eAAe,IAAI,CAAC"}
@@ -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 a}from"../../index-9b84fabc.js";import"../../Icon-9b4a8a2d.js";import{I as o}from"../../constants-a4b0b501.js";import n from"./styles.module.scss";var s=r.forwardRef((function(e,i){var l,o=e.children,s=e.className,c=e.htmlMarkup,m=void 0===c?"span":c,d=e.highlighted,p=e.compact,f=a(n.tile__title,(t(l={},n["tile__title--highlighted"],d),t(l,n["tile__title--compact"],p),l),s),u=m;return r.createElement(u,{className:f,ref:i},o)})),c=r.forwardRef((function(s,c){var m,d=s.icon,p=s.title,f=s.className,u=void 0===f?"":f,h=s.description,g=s.fixed,_=void 0!==g&&g,b=s.highlighted,v=void 0!==b&&b,E=s.testId,N=i(s,["icon","title","className","description","fixed","highlighted","testId"]),j=l(!1),w=e(j,2),x=w[0],I=w[1],M=!h,k=a(n.tile,(t(m={},n["tile--fixed"],_),t(m,n["tile--compact"],M),t(m,n["tile--highlighted"],v),m),u),B=a(n["title-wrapper"],t({},n["title-wrapper--compact"],M));return r.createElement("a",Object.assign({ref:c,className:k,onMouseEnter:function(){return I(!0)},onMouseLeave:function(){return I(!1)},onFocus:function(){return I(!0)},onBlur:function(){return I(!1)},"data-testid":E,rel:"_blank"===s.target?"noopener noreferrer":s.rel},N),r.createElement("div",{className:B},r.cloneElement(d,{size:o.Medium,isHovered:x,color:v?"white":"black"}),r.cloneElement(p,{highlighted:v,compact:M})),h?r.createElement("p",{className:n.tile__description},h):null)}));c.Title=s;export default c;
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"../../Icon-9b4a8a2d.js";import{I as a}from"../../constants-a4b0b501.js";import n from"./styles.module.scss";var s=r.forwardRef((function(e,i){var l,a=e.children,s=e.className,c=e.htmlMarkup,m=void 0===c?"span":c,d=e.highlighted,p=e.compact,f=o(n.tile__title,(t(l={},n["tile__title--highlighted"],d),t(l,n["tile__title--compact"],p),l),s),u=m;return r.createElement(u,{className:f,ref:i},a)})),c=r.forwardRef((function(s,c){var m,d=s.icon,p=s.title,f=s.className,u=void 0===f?"":f,h=s.description,g=s.fixed,_=void 0!==g&&g,b=s.highlighted,v=void 0!==b&&b,E=s.testId,N=i(s,["icon","title","className","description","fixed","highlighted","testId"]),j=l(!1),x=e(j,2),w=x[0],I=x[1],M=!h,k=o(n.tile,(t(m={},n["tile--fixed"],_),t(m,n["tile--compact"],M),t(m,n["tile--highlighted"],v),m),u),B=o(n["title-wrapper"],t({},n["title-wrapper--compact"],M));return r.createElement("a",Object.assign({ref:c,className:k,onMouseEnter:function(){return I(!0)},onMouseLeave:function(){return I(!1)},onFocus:function(){return I(!0)},onBlur:function(){return I(!1)},"data-testid":E,rel:"_blank"===s.target?"noopener noreferrer":s.rel},N),r.createElement("div",{className:B},r.cloneElement(d,{size:a.Medium,isHovered:w,color:v?"white":"black"}),r.cloneElement(p,{highlighted:v,compact:M})),h?r.createElement("p",{className:n.tile__description},h):null)}));c.Title=s;export default c;export{c as Tile};
2
2
  //# sourceMappingURL=index.js.map
@@ -1,3 +1,4 @@
1
1
  import Title from './Title';
2
+ export * from './Title';
2
3
  export default Title;
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Title/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,eAAe,KAAK,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Title/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,eAAe,KAAK,CAAC"}
@@ -1,2 +1,2 @@
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";
1
+ import{T as s}from"../../Title-90910763.js";export{T as default,i as instanceOfTitleMargin}from"../../Title-90910763.js";import"../../_rollupPluginBabelHelpers-d0752906.js";import"react";import"../../index-9b84fabc.js";import"./styles.module.scss";
2
2
  //# sourceMappingURL=index.js.map
@@ -1,3 +1,4 @@
1
1
  import Validation from './Validation';
2
+ export * from './Validation';
2
3
  export default Validation;
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Validation/index.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,cAAc,CAAC;AACtC,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Validation/index.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,cAAc,CAAC;AACtC,cAAc,cAAc,CAAC;AAC7B,eAAe,UAAU,CAAC"}
@@ -1,2 +1,2 @@
1
- import{V as s}from"../../Validation-1236e8ef.js";export{V as default}from"../../Validation-1236e8ef.js";import"react";import"../../index-9b84fabc.js";import"../../FormGroup-9555dd73.js";import"../../_rollupPluginBabelHelpers-d0752906.js";import"../FormGroup/styles.module.scss";import"../../Checkbox-0ba01292.js";import"../../uuid-8870ab4b.js";import"../../Check-6291ad09.js";import"../../Icon-9b4a8a2d.js";import"../../_tslib-51c8a283.js";import"../../constants-a4b0b501.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"../../RadioButton-84ca988e.js";import"../RadioButton/styles.module.scss";import"./styles.module.scss";
1
+ import{V as s}from"../../Validation-ef9ee0ae.js";export{V as Validation,V as default}from"../../Validation-ef9ee0ae.js";import"react";import"../../index-9b84fabc.js";import"../../FormGroup-68288be3.js";import"../../_rollupPluginBabelHelpers-d0752906.js";import"../FormGroup/styles.module.scss";import"../../Checkbox-0ba01292.js";import"../../uuid-8870ab4b.js";import"../../Check-6291ad09.js";import"../../Icon-9b4a8a2d.js";import"../../_tslib-51c8a283.js";import"../../constants-a4b0b501.js";import"../../color-acb834c6.js";import"../../index-19b48c51.js";import"../../palette-f206f488.js";import"../../grid-11a70eb7.js";import"../Checkbox/styles.module.scss";import"../../Title-90910763.js";import"../Title/styles.module.scss";import"../../RadioButton-84ca988e.js";import"../RadioButton/styles.module.scss";import"./styles.module.scss";
2
2
  //# sourceMappingURL=index.js.map
package/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { theme } from './theme';
2
2
  import { useHover } from './hooks/useHover';
3
3
  export { theme, useHover };
4
+ export * from './constants';
4
5
  //# sourceMappingURL=index.d.ts.map
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,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5C,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC"}
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,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5C,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC;AAC3B,cAAc,aAAa,CAAC"}
package/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export{t as theme}from"./index-19b48c51.js";export{u as useHover}from"./useHover-037be19d.js";import"./palette-f206f488.js";import"./grid-11a70eb7.js";import"./_rollupPluginBabelHelpers-d0752906.js";import"react";
1
+ export{t as theme}from"./index-19b48c51.js";export{u as useHover}from"./useHover-037be19d.js";export{F as FormMode,a as FormVariant,I as IconSize,Z as ZIndex}from"./constants-a4b0b501.js";import"./palette-f206f488.js";import"./grid-11a70eb7.js";import"./_rollupPluginBabelHelpers-d0752906.js";import"react";
2
2
  //# sourceMappingURL=index.js.map
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-beta92",
4
+ "version": "1.0.0-beta94",
5
5
  "description": "The official design system for Helsenorge built with React.",
6
6
  "repository": {
7
7
  "type": "tfs",
package/scss/_title.scss CHANGED
@@ -3,18 +3,18 @@
3
3
  @import './font-settings';
4
4
 
5
5
  @mixin title-feature {
6
- font-size: getSpacer(xl);
7
- line-height: getSpacer(2xl);
6
+ font-size: 2.375rem;
7
+ line-height: 2.875rem;
8
8
  font-weight: 600;
9
9
  @media (min-width: map-get($grid-breakpoints, md)) {
10
- font-size: getSpacer(2xl);
11
- line-height: getSpacer(3xl);
10
+ font-size: 4rem;
11
+ line-height: 5rem;
12
12
  }
13
13
  }
14
14
 
15
15
  @mixin title1 {
16
- font-size: 2.75rem;
17
- line-height: 3.25rem;
16
+ font-size: 2.25rem;
17
+ line-height: 2.75rem;
18
18
  font-weight: 600;
19
19
  @media (min-width: map-get($grid-breakpoints, md)) {
20
20
  font-size: 3.25rem;
@@ -23,19 +23,23 @@
23
23
  }
24
24
 
25
25
  @mixin title2 {
26
- font-size: 1.75rem;
27
- line-height: 2.25rem;
26
+ font-size: 1.625rem;
27
+ line-height: 2.125rem;
28
28
  font-weight: 600;
29
29
  @media (min-width: map-get($grid-breakpoints, md)) {
30
- font-size: getSpacer(l);
30
+ font-size: 2rem;
31
31
  line-height: 2.75rem;
32
32
  }
33
33
  }
34
34
 
35
35
  @mixin title3 {
36
- font-size: getSpacer(m);
37
- line-height: getSpacer(l);
36
+ font-size: 1.375rem;
37
+ line-height: 1.875rem;
38
38
  font-weight: 600;
39
+ @media (min-width: map-get($grid-breakpoints, md)) {
40
+ font-size: 1.5rem;
41
+ line-height: 2rem;
42
+ }
39
43
  }
40
44
 
41
45
  @mixin title4 {
@@ -46,7 +50,7 @@
46
50
 
47
51
  @mixin title5 {
48
52
  font-size: $spacer;
49
- line-height: getSpacer(m);
53
+ line-height: 1.5rem;
50
54
  font-weight: 700;
51
55
  text-transform: uppercase;
52
56
  @media (min-width: map-get($grid-breakpoints, md)) {
@@ -1 +0,0 @@
1
- {"version":3,"file":"Button-2be46c88.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"FormGroup-9555dd73.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import{_ as e,a}from"./_rollupPluginBabelHelpers-d0752906.js";import r,{useState as l,useRef as t,useEffect as o}from"react";import{c as d}from"./index-9b84fabc.js";import{u as n}from"./uuid-8870ab4b.js";import i from"./components/Loader/styles.module.scss";var s;!function(e){e.Screen="Screen",e.Parent="Parent"}(s||(s={}));var m=r.forwardRef((function(m,c){var p,u,v,_=m.overlay,b=m.color,y=void 0===b?_?"black":"neutral":b,f=m.size,w=void 0===f?"small":f,E=m.className,N=void 0===E?"":E,P=m.testId,g=m.center,h=m.inline,k=m.ariaLabelledById,L=m.ariaLabel,x=void 0===L?"Laster inn":L,j=l(_!==s.Parent&&!h),S=e(j,2),B=S[0],I=S[1],z="small"===w,H="medium"===w,R="large"===w,q=d(i["loader-wrapper"],(a(p={},i["loader-wrapper--center"],g),a(p,i["loader-wrapper--overlay"],_),a(p,i["loader-wrapper--overlay-screen"],_===s.Screen),a(p,i["loader-wrapper--overlay-parent"],_===s.Parent&&B),a(p,i["loader-wrapper--inline"],h&&B),p)),A=d(i.loader,(a(u={},i["loader--small"],z),a(u,i["loader--medium"],H),a(u,i["loader--large"],R),u),N),C=d(i.loader__dot,(a(v={},i["loader__dot--small"],z),a(v,i["loader__dot--medium"],H),a(v,i["loader__dot--large"],R),a(v,i["loader__dot--banana"],"banana"===y),a(v,i["loader__dot--cherry"],"cherry"===y),a(v,i["loader__dot--kiwi"],"kiwi"===y),a(v,i["loader__dot--neutral"],"neutral"===y),a(v,i["loader__dot--plum"],"plum"===y),a(v,i["loader__dot--black"],"black"===y),a(v,i["loader__dot--white"],"white"===y),v)),D="loader".concat(n()),F=t(null);return o((function(){var e,a,r,l;_===s.Parent&&(null===(a=null===(e=F.current)||void 0===e?void 0:e.parentElement)||void 0===a?void 0:a.style)&&(F.current.parentElement.style.position="relative",I(!0)),h&&(null===(l=null===(r=F.current)||void 0===r?void 0:r.parentElement)||void 0===l?void 0:l.style)&&(F.current.parentElement.style.display="flex",I(!0))}),[]),r.createElement("div",{role:"progressbar",className:q,ref:F},B&&r.createElement("div",{"data-testid":P,"aria-labelledby":k||D,className:A},r.createElement("div",{className:C}),r.createElement("div",{className:C}),r.createElement("div",{className:C}),r.createElement("div",{className:C}),!k&&r.createElement("span",{id:D,className:i["loader__hidden-text"]},x)))}));export{m as L};
2
- //# sourceMappingURL=Loader-3589bdb1.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Loader-3589bdb1.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
package/Modal-b68c7a72.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 l}from"react";import{c as o}from"./index-9b84fabc.js";import{p as i}from"./palette-f206f488.js";import{B as c}from"./Button-2be46c88.js";import{I as s}from"./Icon-9b4a8a2d.js";import{Z as d,I as m}from"./constants-a4b0b501.js";import u from"./components/Modal/styles.module.scss";import{A as v,a as p}from"./AlertSignFill-e607ff43.js";import{T as f}from"./Title-72851d51.js";import{u as _}from"./uuid-8870ab4b.js";import{C as E}from"./Close-80751ae6.js";import{createPortal as h}from"react-dom";function b(){var e=a(null);function t(t){var r=e.current,a="Tab"===t.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),l=null==r?void 0:r.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'),o=l[0],i=1===l.length?o:l[l.length-1];t.shiftKey?n===o&&(i.focus(),t.preventDefault()):n===i&&(o.focus(),t.preventDefault())}}function r(t){var r=e.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(),t.preventDefault())}}return n((function(){var a=e.current;return a.addEventListener("keydown",t),a.addEventListener("click",r),function(){a.removeEventListener("keydown",t),a.removeEventListener("click",r)}}),[]),e}var y,g,N=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,a=l(!1),o=e(a,2),i=o[0],c=o[1];return n((function(){var e=new IntersectionObserver((function(e){c(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]),i},x=function(e){e.isExtraSmall;var t=e.isHovered,a=r.createElement("path",{d:"m9.16 23.421 2.883-2.773 8.262 8.584L35.958 12.97l2.882 2.774-18.536 19.257-11.143-11.58zm26.744-13.279-15.6 16.206-8.206-8.529-5.766 5.547 13.973 14.518 21.362-22.193-5.764-5.549z","fill-rule":"evenodd"});return t?r.createElement("path",{d:"m11.128 25.394 2.88-2.771 6.291 6.613 17.071-17.68 2.882 2.775-19.944 20.668-9.18-9.605zM37.318 8.73 20.31 26.345l-6.239-6.558-5.766 5.548 11.996 12.552 22.781-23.609-5.764-5.548z","fill-rule":"evenodd"}):a};function w(e){var t=e.children,a=e.parent,n=e.className,l=e.testId,o=r.useMemo((function(){return document.createElement("div")}),[]);return l&&o.setAttribute("data-testid",l),r.useEffect((function(){var e=a&&a.appendChild?a:document.body,t=["portal-container"];return n&&n.split(" ").forEach((function(e){return t.push(e)})),t.forEach((function(e){return o.classList.add(e)})),e.appendChild(o),function(){e.removeChild(o)}}),[o,a,n]),h(t,o)}!function(e){e.normal="normal",e.warning="warning",e.error="error",e.success="success",e.image="image"}(y||(y={})),function(e){e.large="large",e.medium="medium"}(g||(g={}));var C={variant:y.normal,primaryButtonText:"OK",large:!1,className:"",size:g.large,zIndex:d.Modal},k=function(e,t){var a=function(e){return e===y.error?r.createElement(s,{size:m.Small,svgIcon:v,color:i.cherry500}):e===y.warning?r.createElement(s,{size:m.Small,svgIcon:p,color:i.black}):e===y.success?r.createElement(s,{size:m.Small,svgIcon:x,color:i.kiwi900}):null}(e);return a?r.createElement("div",{className:u.modal__iconWrapper},a):t?r.createElement("div",{className:u.modal__iconWrapper},r.cloneElement(t,{size:m.Small})):null},L=function(a){var l,i,s,d,m=r.useState(0),v=e(m,2),p=v[0],h=v[1],g=r.useState(_()),x=e(g,1)[0],C=r.useRef(null),L=r.useRef(null),B=r.useRef(null),z=N(L),I=r.useRef(null),S=N(I),T=B.current&&B.current.scrollHeight>B.current.clientHeight;function W(e){"Escape"===e.key&&a.onClose&&(e.stopPropagation(),a.onClose())}function j(e){e.target&&A.current===e.target&&a.onClose&&(e.stopPropagation(),a.onClose())}var R=a.variant===y.image,M=null!==(i=a.titleId)&&void 0!==i?i:x,A=r.useRef(null),P=a.secondaryButtonText&&(null===(s=a.secondaryButtonText)||void 0===s?void 0:s.length)>0||a.onSuccess,D=a.ariaLabelledBy?void 0:a.ariaLabel,H=a.ariaLabelledBy?a.ariaLabelledBy:a.ariaLabel?void 0:M;n((function(){var e,t=A.current;return null===(e=C.current)||void 0===e||e.focus(),document.body.style.overflow="hidden",t&&!P&&(t.addEventListener("keydown",W),t.addEventListener("click",j)),function(){document.body.style.removeProperty("overflow"),t&&!P&&(t.removeEventListener("keydown",W),t.removeEventListener("click",j))}}),[]);var q=o((t(l={},u["modal__title--error"],a.variant===y.error),t(l,u["modal__title--success"],a.variant===y.success),l)),F=r.createElement("div",{"data-testid":"dialog-container"},r.createElement("div",{ref:A,className:u["modal-overlay"],"data-testid":a.testId,style:{zIndex:a.zIndex}},r.createElement("div",{className:u.align,ref:b()},r.createElement("div",{className:o(a.className,u.modal,u["modal--".concat(a.variant)],u["modal--".concat(a.size)]),role:"dialog","aria-label":D,"aria-labelledby":H},r.createElement("div",{tabIndex:p,ref:C,onBlur:function(){return h(-1)}}),r.createElement("div",{className:o(u.modal__shadow,u["modal__shadow--top"],t({},u["modal__shadow--show"],!z&&T))}),r.createElement("div",{className:o(u.modal__contentWrapper,t({},u["modal__contentWrapper--image"],R)),ref:B},!a.noCloseButton&&r.createElement("div",{className:u.modal__closeWrapper},r.createElement("div",{className:o(u.modal__closeWrapper__close)},r.createElement(E,{onClick:a.onClose,ariaLabel:a.ariaLabelCloseBtn}))),r.createElement("div",{className:o(u["modal__contentWrapper__scroll--".concat(a.size)],t({},u["modal__contentWrapper__scroll--image"],R))},r.createElement("div",{ref:L}),r.createElement("div",{className:u.modal__contentWrapper__title},k(a.variant,a.icon),r.createElement(f,{id:M,htmlMarkup:"h3",appearance:"title3",className:q},a.title),a.afterTitleChildren&&r.createElement("div",{className:u.modal__afterTitleChildren},a.afterTitleChildren)),R&&r.createElement("div",null,r.createElement("div",{className:u.modal__contentWrapper__imageWrapper},a.children),r.createElement("span",{className:u.modal__contentWrapper__imageDescription},a.description)),!R&&a.children&&r.createElement("div",null,a.children),!R&&!a.children&&r.createElement("p",{className:u.modal__description},a.description),r.createElement("div",{ref:I}))),r.createElement("div",{className:o(u.modal__shadow,u["modal__shadow--bottom"],t({},u["modal__shadow--show"],!S&&T))}),P&&r.createElement("div",{className:o(u["modal__call-to-action"],u["modal__call-to-action--".concat(a.size)])},a.onSuccess&&r.createElement(c,{onClick:a.onSuccess},a.primaryButtonText),a.secondaryButtonText&&(null===(d=a.secondaryButtonText)||void 0===d?void 0:d.length)>0&&r.createElement(c,{variant:"borderless",onClick:a.onClose},a.secondaryButtonText))))));if(a.printable){return r.createElement(w,{className:"print-modal",testId:"print-modal"},r.createElement("style",{media:"print"},"body > *:not(.".concat("print-modal",") {visibility: hidden;}")),F)}return F};L.defaultProps=C;export{L as M};
2
- //# sourceMappingURL=Modal-b68c7a72.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Modal-b68c7a72.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
package/Title-72851d51.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,d=o.appearance,f=void 0===d?"title1":d,g=o.margin,u=void 0===g?0:g,y=o.testId,T=r(i.title,(t(l={},i["title--feature"],"titleFeature"===f),t(l,i["title--title1"],"title1"===f),t(l,i["title--title2"],"title2"===f),t(l,i["title--title3"],"title3"===f),t(l,i["title--title4"],"title4"===f),t(l,i["title--title5"],"title5"===f),l),c),b=s,h=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(b,{id:m,className:T,style:h,ref:a,"data-testid":y},n)}));export{o as T};
2
- //# sourceMappingURL=Title-72851d51.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Title-72851d51.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Validation-1236e8ef.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}