@helsenorge/designsystem-react 1.0.0-beta124 → 1.0.0-beta125

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 (211) hide show
  1. package/{Badge-32ba89d5.js → Badge-f1986705.js} +2 -2
  2. package/Badge-f1986705.js.map +1 -0
  3. package/{Button-9f2ce63d.js → Button-a7ae5afb.js} +2 -2
  4. package/Button-a7ae5afb.js.map +1 -0
  5. package/{Checkbox-1e2c2047.js → Checkbox-b0271e50.js} +2 -2
  6. package/Checkbox-b0271e50.js.map +1 -0
  7. package/{Close-f197bf98.js → Close-58f848f6.js} +2 -2
  8. package/Close-58f848f6.js.map +1 -0
  9. package/{FormGroup-9c5e238e.js → FormGroup-9d4dc1ed.js} +2 -2
  10. package/FormGroup-9d4dc1ed.js.map +1 -0
  11. package/{FormLayout-26368f0a.js → FormLayout-6bb303ac.js} +2 -2
  12. package/FormLayout-6bb303ac.js.map +1 -0
  13. package/{Input-5bb47387.js → Input-b5f362b8.js} +2 -2
  14. package/Input-b5f362b8.js.map +1 -0
  15. package/{Loader-670979af.js → Loader-a7566e5f.js} +2 -2
  16. package/Loader-a7566e5f.js.map +1 -0
  17. package/{Modal-10c837a4.js → Modal-3702a0b8.js} +2 -2
  18. package/Modal-3702a0b8.js.map +1 -0
  19. package/{Panel-3ada0789.js → Panel-8a6a740c.js} +2 -2
  20. package/Panel-8a6a740c.js.map +1 -0
  21. package/{RadioButton-71099f5c.js → RadioButton-403681d9.js} +2 -2
  22. package/RadioButton-403681d9.js.map +1 -0
  23. package/{Textarea-e1e649cf.js → Textarea-47398150.js} +2 -2
  24. package/Textarea-47398150.js.map +1 -0
  25. package/{Title-3a6d4597.js → Title-53c8b68d.js} +2 -2
  26. package/Title-53c8b68d.js.map +1 -0
  27. package/Validation-0c27dd5b.js +2 -0
  28. package/Validation-0c27dd5b.js.map +1 -0
  29. package/__mocks__/useLayoutEvent.d.ts +1 -0
  30. package/__mocks__/useLayoutEvent.d.ts.map +1 -0
  31. package/__mocks__/useLayoutEvent.js +2 -0
  32. package/__mocks__/useLayoutEvent.js.map +1 -0
  33. package/components/AnchorLink/index.js +1 -1
  34. package/components/Avatar/index.js +1 -1
  35. package/components/Badge/index.js +1 -1
  36. package/components/Button/index.js +1 -1
  37. package/components/Button/styles.module.scss +26 -5
  38. package/components/ButtonWithModal/index.js +1 -1
  39. package/components/Checkbox/index.js +1 -1
  40. package/components/Close/index.js +1 -1
  41. package/components/Dropdown/Dropdown.d.ts +1 -1
  42. package/components/Dropdown/componentdata.json +2 -2
  43. package/components/Dropdown/index.js +1 -1
  44. package/components/Dropdown/styles.module.scss +1 -0
  45. package/components/Expander/index.js +1 -1
  46. package/components/ExpanderList/ExpanderList.d.ts.map +1 -1
  47. package/components/ExpanderList/index.js +1 -1
  48. package/components/FormExample/index.js +1 -1
  49. package/components/FormGroup/index.js +1 -1
  50. package/components/FormLayout/index.js +1 -1
  51. package/components/HighlightBox/index.js +1 -1
  52. package/components/Icons/AcupunctureBack.js +1 -1
  53. package/components/Icons/AlarmClock.js +1 -1
  54. package/components/Icons/AlertSignFill.js +1 -1
  55. package/components/Icons/AlertSignStroke.js +1 -1
  56. package/components/Icons/Archive.js +1 -1
  57. package/components/Icons/ArrowLeft.js +1 -1
  58. package/components/Icons/ArrowRight.js +1 -1
  59. package/components/Icons/ArrowUpRight.js +1 -1
  60. package/components/Icons/Attachment.js +1 -1
  61. package/components/Icons/Avatar.js +1 -1
  62. package/components/Icons/Bus.js +1 -1
  63. package/components/Icons/Calendar.js +1 -1
  64. package/components/Icons/CalendarChange.js +1 -1
  65. package/components/Icons/CalendarCheck.js +1 -1
  66. package/components/Icons/CalendarSave.js +1 -1
  67. package/components/Icons/Change.js +1 -1
  68. package/components/Icons/Check.js +1 -1
  69. package/components/Icons/CheckFill.js +1 -1
  70. package/components/Icons/ChevronDown.js +1 -1
  71. package/components/Icons/ChevronLeft.js +1 -1
  72. package/components/Icons/ChevronRight.js +1 -1
  73. package/components/Icons/ChevronUp.js +1 -1
  74. package/components/Icons/ChevronsDown.js +1 -1
  75. package/components/Icons/ChevronsUp.js +1 -1
  76. package/components/Icons/Contacts.js +1 -1
  77. package/components/Icons/Copy.js +1 -1
  78. package/components/Icons/Download.js +1 -1
  79. package/components/Icons/EChat.js +1 -1
  80. package/components/Icons/EnterFullScreen.js +1 -1
  81. package/components/Icons/Envelope.js +1 -1
  82. package/components/Icons/Eraser.js +1 -1
  83. package/components/Icons/ErrorSignFill.js +1 -1
  84. package/components/Icons/ErrorSignStroke.js +1 -1
  85. package/components/Icons/ExitFullScreen.js +1 -1
  86. package/components/Icons/Eye.js +1 -1
  87. package/components/Icons/Form.js +1 -1
  88. package/components/Icons/Forward.js +1 -1
  89. package/components/Icons/Gallery.js +1 -1
  90. package/components/Icons/Globe.js +1 -1
  91. package/components/Icons/Group.js +1 -1
  92. package/components/Icons/Heart.js +1 -1
  93. package/components/Icons/HelpSign.js +1 -1
  94. package/components/Icons/History.js +1 -1
  95. package/components/Icons/Home.js +1 -1
  96. package/components/Icons/Hospital.js +1 -1
  97. package/components/Icons/Hourglass.js +1 -1
  98. package/components/Icons/Icon.js +1 -1
  99. package/components/Icons/InfoSignFill.js +1 -1
  100. package/components/Icons/InfoSignStroke.js +1 -1
  101. package/components/Icons/Journal.js +1 -1
  102. package/components/Icons/List.js +1 -1
  103. package/components/Icons/Location.js +1 -1
  104. package/components/Icons/Lock.js +1 -1
  105. package/components/Icons/Medicine.js +1 -1
  106. package/components/Icons/Menu.js +1 -1
  107. package/components/Icons/Minus.js +1 -1
  108. package/components/Icons/MobilePhone.js +1 -1
  109. package/components/Icons/NoEye.js +1 -1
  110. package/components/Icons/NoFilter.js +1 -1
  111. package/components/Icons/PaperPlane.js +1 -1
  112. package/components/Icons/Pause.js +1 -1
  113. package/components/Icons/Pencil.js +1 -1
  114. package/components/Icons/Play.js +1 -1
  115. package/components/Icons/PlusLarge.js +1 -1
  116. package/components/Icons/PlusSmall.js +1 -1
  117. package/components/Icons/Printer.js +1 -1
  118. package/components/Icons/QrCode.js +1 -1
  119. package/components/Icons/Receptionist.js +1 -1
  120. package/components/Icons/Referral.js +1 -1
  121. package/components/Icons/Refresh.js +1 -1
  122. package/components/Icons/Reply.js +1 -1
  123. package/components/Icons/Save.js +1 -1
  124. package/components/Icons/Search.js +1 -1
  125. package/components/Icons/SectionSign.js +1 -1
  126. package/components/Icons/Settings.js +1 -1
  127. package/components/Icons/Share.js +1 -1
  128. package/components/Icons/SpeechBubble.js +1 -1
  129. package/components/Icons/Stopwatch.js +1 -1
  130. package/components/Icons/SupportingPerson.js +1 -1
  131. package/components/Icons/Syringe.js +1 -1
  132. package/components/Icons/TimePassing.js +1 -1
  133. package/components/Icons/Toolbox.js +1 -1
  134. package/components/Icons/TrashCan.js +1 -1
  135. package/components/Icons/Undo.js +1 -1
  136. package/components/Icons/Upload.js +1 -1
  137. package/components/Icons/Vaccine.js +1 -1
  138. package/components/Icons/VerticalDots.js +1 -1
  139. package/components/Icons/VideoCamera.js +1 -1
  140. package/components/Icons/VideoChat.js +1 -1
  141. package/components/Icons/Wallet.js +1 -1
  142. package/components/Icons/Watch.js +1 -1
  143. package/components/Icons/X.js +1 -1
  144. package/components/Icons/Zoom.js +1 -1
  145. package/components/Icons/index.js +1 -1
  146. package/components/Input/index.js +1 -1
  147. package/components/LinkList/index.js +1 -1
  148. package/components/List/index.js +1 -1
  149. package/components/Loader/index.js +1 -1
  150. package/components/Logo/index.js +1 -1
  151. package/components/Modal/index.js +1 -1
  152. package/components/NotificationPanel/index.js +1 -1
  153. package/components/Panel/index.js +1 -1
  154. package/components/PanelList/index.js +1 -1
  155. package/components/Portal/index.js +1 -1
  156. package/components/RadioButton/index.js +1 -1
  157. package/components/Slider/index.js +1 -1
  158. package/components/Spacer/index.js +1 -1
  159. package/components/StatusDot/index.js +1 -1
  160. package/components/Tag/Tag.d.ts +35 -0
  161. package/components/Tag/Tag.d.ts.map +1 -0
  162. package/components/Tag/componentdata.json +223 -0
  163. package/components/Tag/index.d.ts +4 -0
  164. package/components/Tag/index.d.ts.map +1 -0
  165. package/components/Tag/index.js +2 -0
  166. package/components/Tag/index.js.map +1 -0
  167. package/components/Tag/styles.module.scss +174 -0
  168. package/components/Tag/styles.module.scss.d.ts +24 -0
  169. package/components/TagList/TagList.d.ts +8 -0
  170. package/components/TagList/TagList.d.ts.map +1 -0
  171. package/components/TagList/componentdata.json +23 -0
  172. package/components/TagList/index.d.ts +4 -0
  173. package/components/TagList/index.d.ts.map +1 -0
  174. package/components/TagList/index.js +2 -0
  175. package/components/TagList/index.js.map +1 -0
  176. package/components/TagList/styles.module.scss +10 -0
  177. package/components/TagList/styles.module.scss.d.ts +9 -0
  178. package/components/Textarea/index.js +1 -1
  179. package/components/Tile/index.js +1 -1
  180. package/components/Title/index.js +1 -1
  181. package/components/Validation/index.js +1 -1
  182. package/constants-088e1d4a.js +2 -0
  183. package/constants-088e1d4a.js.map +1 -0
  184. package/constants.d.ts +2 -0
  185. package/constants.d.ts.map +1 -1
  186. package/index.js +1 -1
  187. package/package.json +1 -1
  188. package/scss/typography.module.scss.d.ts +25 -25
  189. package/useOutsideEvent-342977b9.js +2 -0
  190. package/useOutsideEvent-342977b9.js.map +1 -0
  191. package/useUuid-24176312.js +2 -0
  192. package/useUuid-24176312.js.map +1 -0
  193. package/Badge-32ba89d5.js.map +0 -1
  194. package/Button-9f2ce63d.js.map +0 -1
  195. package/Checkbox-1e2c2047.js.map +0 -1
  196. package/Close-f197bf98.js.map +0 -1
  197. package/FormGroup-9c5e238e.js.map +0 -1
  198. package/FormLayout-26368f0a.js.map +0 -1
  199. package/Input-5bb47387.js.map +0 -1
  200. package/Loader-670979af.js.map +0 -1
  201. package/Modal-10c837a4.js.map +0 -1
  202. package/Panel-3ada0789.js.map +0 -1
  203. package/RadioButton-71099f5c.js.map +0 -1
  204. package/Textarea-e1e649cf.js.map +0 -1
  205. package/Title-3a6d4597.js.map +0 -1
  206. package/Validation-e36cb0d8.js +0 -2
  207. package/Validation-e36cb0d8.js.map +0 -1
  208. package/constants-9528513d.js +0 -2
  209. package/constants-9528513d.js.map +0 -1
  210. package/useUuid-1ecdf8e8.js +0 -2
  211. package/useUuid-1ecdf8e8.js.map +0 -1
@@ -1,25 +1,25 @@
1
- export type Styles = {
2
- 'anchorlink-wrapper': string;
3
- 'focused-content': string;
4
- form: string;
5
- 'image-caption': string;
6
- 'image-credit': string;
7
- label: string;
8
- legend: string;
9
- preamble: string;
10
- strong: string;
11
- table: string;
12
- time: string;
13
- 'title-feature': string;
14
- title1: string;
15
- title2: string;
16
- title3: string;
17
- title4: string;
18
- title5: string;
19
- };
20
-
21
- export type ClassNames = keyof Styles;
22
-
23
- declare const styles: Styles;
24
-
25
- export default styles;
1
+ export type Styles = {
2
+ 'anchorlink-wrapper': string;
3
+ 'focused-content': string;
4
+ form: string;
5
+ 'image-caption': string;
6
+ 'image-credit': string;
7
+ label: string;
8
+ legend: string;
9
+ preamble: string;
10
+ strong: string;
11
+ table: string;
12
+ time: string;
13
+ 'title-feature': string;
14
+ title1: string;
15
+ title2: string;
16
+ title3: string;
17
+ title4: string;
18
+ title5: string;
19
+ };
20
+
21
+ export type ClassNames = keyof Styles;
22
+
23
+ declare const styles: Styles;
24
+
25
+ export default styles;
@@ -0,0 +1,2 @@
1
+ import{_ as n}from"./_rollupPluginBabelHelpers-4f206abf.js";import{useState as r,useEffect as e}from"react";import{u as t}from"./usePrevious-ae293b10.js";var u=function(t){var u=r(),o=n(u,2),i=o[0],c=o[1];return e((function(){var n=new ResizeObserver((function(n){c(n[0].target.getBoundingClientRect())}));return(null==t?void 0:t.current)&&n.observe(null==t?void 0:t.current),n.disconnect}),[t]),i},o=function(u,o){var i=r(u),c=n(i,2),a=c[0],v=c[1],f=t(a);return e((function(){u!==a&&v(u)}),[u]),e((function(){o&&a!==!!f&&o(a)}),[a,o]),{value:a,toggleValue:function(){v(!a)}}},i=function(n,r,t,u){e((function(){var e,o=function(n){(n.key===t||Array.isArray(t)&&t.includes(n.key))&&u(n)};return null===(e=r.current)||void 0===e||e.addEventListener(n,o),function(){var e;null===(e=r.current)||void 0===e||e.removeEventListener(n,o)}}),[r,u])},c=function(n,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:["mousedown"],u=function(e){var t;(null===(t=n.current)||void 0===t?void 0:t.contains(e.target))||r()};e((function(){return t.forEach((function(n){return document.addEventListener(n,u)})),function(){t.forEach((function(n){return document.removeEventListener(n,u)}))}}))};export{o as a,i as b,c,u};
2
+ //# sourceMappingURL=useOutsideEvent-342977b9.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useOutsideEvent-342977b9.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import{_ as r}from"./_rollupPluginBabelHelpers-4f206abf.js";import{useState as o}from"react";import{u as a}from"./uuid-11037462.js";var u=function(){var u=o(a());return r(u,1)[0]};export{u};
2
+ //# sourceMappingURL=useUuid-24176312.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useUuid-24176312.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Badge-32ba89d5.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Button-9f2ce63d.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Checkbox-1e2c2047.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Close-f197bf98.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"FormGroup-9c5e238e.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"FormLayout-26368f0a.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Input-5bb47387.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Loader-670979af.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Modal-10c837a4.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Panel-3ada0789.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"RadioButton-71099f5c.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Textarea-e1e649cf.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Title-3a6d4597.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import r from"react";import{c as e}from"./index-9b84fabc.js";import{F as a}from"./FormGroup-9c5e238e.js";import t from"./components/Validation/styles.module.scss";import{A as o}from"./constants-9528513d.js";var s=r.forwardRef((function(s,m){var n=s.errorSummary,i=s.className,l=e(t.validation,i);return r.createElement(r.Fragment,null,r.createElement("div",{"data-testid":s.testId,"data-analyticsid":o.Validation,className:l},r.Children.map(s.children,(function(e){return e.type===a?r.cloneElement(e,{className:n?t["form-group-wrapper--error-sibling"]:""}):e}))),n&&r.createElement("p",{className:t.validation__errors},n))}));export{s as V};
2
- //# sourceMappingURL=Validation-e36cb0d8.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Validation-e36cb0d8.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- var o,a,n,e,r,i;!function(o){o[o.XXSmall=24]="XXSmall",o[o.XSmall=38]="XSmall",o[o.Small=48]="Small",o[o.Medium=64]="Medium",o[o.Large=80]="Large",o[o.XLarge=130]="XLarge"}(o||(o={})),function(o){o[o.Modal=13e5]="Modal",o[o.ExpanderTrigger=1e4]="ExpanderTrigger"}(a||(a={})),function(o){o.onwhite="onwhite",o.ongrey="ongrey",o.onblueberry="onblueberry",o.ondark="ondark",o.oninvalid="oninvalid"}(n||(n={})),function(o){o.normal="normal",o.bigform="bigform"}(e||(e={})),function(o){o.AnchorLink="anchor-link",o.Avatar="avatar",o.Badge="badge",o.Button="button",o.Checkbox="checkbox",o.Close="close",o.Dropdown="dropdown",o.Expander="expander",o.ExpanderList="expander-list",o.ExpanderListExpander="expander-list-expander",o.FormGroup="form-group",o.FormLayout="form-layout",o.HighlightBox="highlight-box",o.Icon="icon",o.Input="input",o.Link="link",o.LinkList="link-list",o.List="list",o.Loader="loader",o.Logo="logo",o.Modal="modal",o.NotificationPanel="notification-panel",o.Panel="panel",o.PanelList="panel-list",o.Portal="portal",o.RadioButton="radio-button",o.Slider="slider",o.Spacer="spacer",o.StatusDot="status-dot",o.Textarea="textarea",o.Tile="tile",o.Title="title",o.Validation="validation"}(r||(r={})),function(o){o.Enter="Enter",o.Escape="Escape",o.ArrowDown="ArrowDown",o.ArrowUp="ArrowUp",o.Home="Home",o.End="End"}(i||(i={}));export{r as A,n as F,o as I,i as K,a as Z,e as a};
2
- //# sourceMappingURL=constants-9528513d.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants-9528513d.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import{_ as n}from"./_rollupPluginBabelHelpers-4f206abf.js";import{useState as r,useEffect as e}from"react";import{u as t}from"./usePrevious-ae293b10.js";import{u}from"./uuid-11037462.js";var o=function(t){var u=r(),o=n(u,2),i=o[0],c=o[1];return e((function(){var n=new ResizeObserver((function(n){c(n[0].target.getBoundingClientRect())}));return(null==t?void 0:t.current)&&n.observe(null==t?void 0:t.current),n.disconnect}),[t]),i},i=function(u,o){var i=r(u),c=n(i,2),a=c[0],f=c[1],s=t(a);return e((function(){u!==a&&f(u)}),[u]),e((function(){o&&a!==!!s&&o(a)}),[a,o]),{value:a,toggleValue:function(){f(!a)}}},c=function(n,r,t,u){e((function(){var e,o=function(n){(n.key===t||Array.isArray(t)&&t.includes(n.key))&&u(n)};return null===(e=r.current)||void 0===e||e.addEventListener(n,o),function(){var e;null===(e=r.current)||void 0===e||e.removeEventListener(n,o)}}),[r,u])},a=function(n,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:["mousedown"],u=function(e){var t;(null===(t=n.current)||void 0===t?void 0:t.contains(e.target))||r()};e((function(){return t.forEach((function(n){return document.addEventListener(n,u)})),function(){t.forEach((function(n){return document.removeEventListener(n,u)}))}}))},f=function(){var e=r(u());return n(e,1)[0]};export{i as a,c as b,a as c,f as d,o as u};
2
- //# sourceMappingURL=useUuid-1ecdf8e8.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useUuid-1ecdf8e8.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}