@helsenorge/designsystem-react 1.0.0-beta122 → 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 (242) hide show
  1. package/{Badge-2d8d73dd.js → Badge-f1986705.js} +2 -2
  2. package/Badge-f1986705.js.map +1 -0
  3. package/{Button-19ee3464.js → Button-a7ae5afb.js} +2 -2
  4. package/Button-a7ae5afb.js.map +1 -0
  5. package/Checkbox-b0271e50.js +2 -0
  6. package/Checkbox-b0271e50.js.map +1 -0
  7. package/{Close-476c50c6.js → Close-58f848f6.js} +2 -2
  8. package/Close-58f848f6.js.map +1 -0
  9. package/{FormGroup-a776b535.js → FormGroup-9d4dc1ed.js} +2 -2
  10. package/FormGroup-9d4dc1ed.js.map +1 -0
  11. package/FormLayout-6bb303ac.js +2 -0
  12. package/FormLayout-6bb303ac.js.map +1 -0
  13. package/{Input-cd941f2f.js → Input-b5f362b8.js} +2 -2
  14. package/Input-b5f362b8.js.map +1 -0
  15. package/{Loader-2f304e4f.js → Loader-a7566e5f.js} +2 -2
  16. package/Loader-a7566e5f.js.map +1 -0
  17. package/{Modal-d0213453.js → Modal-3702a0b8.js} +2 -2
  18. package/Modal-3702a0b8.js.map +1 -0
  19. package/{Panel-33611d84.js → Panel-8a6a740c.js} +2 -2
  20. package/Panel-8a6a740c.js.map +1 -0
  21. package/{RadioButton-6a868eb3.js → RadioButton-403681d9.js} +2 -2
  22. package/RadioButton-403681d9.js.map +1 -0
  23. package/{Textarea-1c857a8a.js → Textarea-47398150.js} +2 -2
  24. package/Textarea-47398150.js.map +1 -0
  25. package/Title-53c8b68d.js +2 -0
  26. package/Title-53c8b68d.js.map +1 -0
  27. package/{Validation-fa8b28c3.js → Validation-0c27dd5b.js} +2 -2
  28. package/Validation-0c27dd5b.js.map +1 -0
  29. package/__mocks__/ResizeObserver.d.ts +6 -0
  30. package/__mocks__/ResizeObserver.d.ts.map +1 -0
  31. package/__mocks__/ResizeObserver.js +2 -0
  32. package/__mocks__/ResizeObserver.js.map +1 -0
  33. package/__mocks__/useLayoutEvent.d.ts +1 -0
  34. package/__mocks__/useLayoutEvent.d.ts.map +1 -0
  35. package/__mocks__/useLayoutEvent.js +2 -0
  36. package/__mocks__/useLayoutEvent.js.map +1 -0
  37. package/__mocks__/uuid.d.ts +2 -0
  38. package/__mocks__/uuid.d.ts.map +1 -0
  39. package/__mocks__/uuid.js +2 -0
  40. package/__mocks__/uuid.js.map +1 -0
  41. package/components/AnchorLink/index.js +1 -1
  42. package/components/Avatar/index.js +1 -1
  43. package/components/Badge/index.js +1 -1
  44. package/components/Button/index.js +1 -1
  45. package/components/Button/styles.module.scss +29 -6
  46. package/components/ButtonWithModal/index.js +1 -1
  47. package/components/Checkbox/index.js +1 -1
  48. package/components/Close/index.js +1 -1
  49. package/components/Dropdown/Dropdown.d.ts +36 -0
  50. package/components/Dropdown/Dropdown.d.ts.map +1 -0
  51. package/components/Dropdown/componentdata.json +254 -0
  52. package/components/Dropdown/index.d.ts +4 -0
  53. package/components/Dropdown/index.d.ts.map +1 -0
  54. package/components/Dropdown/index.js +2 -0
  55. package/components/Dropdown/index.js.map +1 -0
  56. package/components/Dropdown/styles.module.scss +197 -0
  57. package/components/Expander/index.js +1 -1
  58. package/components/ExpanderList/ExpanderList.d.ts.map +1 -1
  59. package/components/ExpanderList/index.js +1 -1
  60. package/components/FormExample/index.js +1 -1
  61. package/components/FormGroup/index.js +1 -1
  62. package/components/FormLayout/FormLayout.d.ts.map +1 -1
  63. package/components/FormLayout/index.js +1 -1
  64. package/components/FormLayout/styles.module.scss +16 -11
  65. package/components/FormLayout/styles.module.scss.d.ts +5 -4
  66. package/components/HighlightBox/index.js +1 -1
  67. package/components/Icons/AcupunctureBack.js +1 -1
  68. package/components/Icons/AlarmClock.js +1 -1
  69. package/components/Icons/AlertSignFill.js +1 -1
  70. package/components/Icons/AlertSignStroke.js +1 -1
  71. package/components/Icons/Archive.js +1 -1
  72. package/components/Icons/ArrowLeft.js +1 -1
  73. package/components/Icons/ArrowRight.js +1 -1
  74. package/components/Icons/ArrowUpRight.js +1 -1
  75. package/components/Icons/Attachment.js +1 -1
  76. package/components/Icons/Avatar.js +1 -1
  77. package/components/Icons/Bus.js +1 -1
  78. package/components/Icons/Calendar.js +1 -1
  79. package/components/Icons/CalendarChange.js +1 -1
  80. package/components/Icons/CalendarCheck.js +1 -1
  81. package/components/Icons/CalendarSave.js +1 -1
  82. package/components/Icons/Change.js +1 -1
  83. package/components/Icons/Check.js +1 -1
  84. package/components/Icons/CheckFill.js +1 -1
  85. package/components/Icons/ChevronDown.js +1 -1
  86. package/components/Icons/ChevronLeft.js +1 -1
  87. package/components/Icons/ChevronRight.js +1 -1
  88. package/components/Icons/ChevronUp.js +1 -1
  89. package/components/Icons/ChevronsDown.js +1 -1
  90. package/components/Icons/ChevronsUp.js +1 -1
  91. package/components/Icons/Contacts.js +1 -1
  92. package/components/Icons/Copy.js +1 -1
  93. package/components/Icons/Download.js +1 -1
  94. package/components/Icons/EChat.js +1 -1
  95. package/components/Icons/EnterFullScreen.js +1 -1
  96. package/components/Icons/Envelope.js +1 -1
  97. package/components/Icons/Eraser.js +1 -1
  98. package/components/Icons/ErrorSignFill.js +1 -1
  99. package/components/Icons/ErrorSignStroke.js +1 -1
  100. package/components/Icons/ExitFullScreen.js +1 -1
  101. package/components/Icons/Eye.js +1 -1
  102. package/components/Icons/Form.js +1 -1
  103. package/components/Icons/Forward.js +1 -1
  104. package/components/Icons/Gallery.js +1 -1
  105. package/components/Icons/Globe.js +1 -1
  106. package/components/Icons/Group.js +1 -1
  107. package/components/Icons/Heart.js +1 -1
  108. package/components/Icons/HelpSign.js +1 -1
  109. package/components/Icons/History.js +1 -1
  110. package/components/Icons/Home.js +1 -1
  111. package/components/Icons/Hospital.js +1 -1
  112. package/components/Icons/Hourglass.js +1 -1
  113. package/components/Icons/Icon.js +1 -1
  114. package/components/Icons/InfoSignFill.js +1 -1
  115. package/components/Icons/InfoSignStroke.js +1 -1
  116. package/components/Icons/Journal.js +1 -1
  117. package/components/Icons/List.js +1 -1
  118. package/components/Icons/Location.js +1 -1
  119. package/components/Icons/Lock.js +1 -1
  120. package/components/Icons/Medicine.js +1 -1
  121. package/components/Icons/Menu.js +1 -1
  122. package/components/Icons/Minus.js +1 -1
  123. package/components/Icons/MobilePhone.js +1 -1
  124. package/components/Icons/NoEye.js +1 -1
  125. package/components/Icons/NoFilter.js +1 -1
  126. package/components/Icons/PaperPlane.js +1 -1
  127. package/components/Icons/Pause.js +1 -1
  128. package/components/Icons/Pencil.js +1 -1
  129. package/components/Icons/Play.js +1 -1
  130. package/components/Icons/PlusLarge.js +1 -1
  131. package/components/Icons/PlusSmall.js +1 -1
  132. package/components/Icons/Printer.js +1 -1
  133. package/components/Icons/QrCode.js +1 -1
  134. package/components/Icons/Receptionist.js +1 -1
  135. package/components/Icons/Referral.js +1 -1
  136. package/components/Icons/Refresh.js +1 -1
  137. package/components/Icons/Reply.js +1 -1
  138. package/components/Icons/Save.js +1 -1
  139. package/components/Icons/Search.js +1 -1
  140. package/components/Icons/SectionSign.js +1 -1
  141. package/components/Icons/Settings.js +1 -1
  142. package/components/Icons/Share.js +1 -1
  143. package/components/Icons/SpeechBubble.js +1 -1
  144. package/components/Icons/Stopwatch.js +1 -1
  145. package/components/Icons/SupportingPerson.js +1 -1
  146. package/components/Icons/Syringe.js +1 -1
  147. package/components/Icons/TimePassing.js +1 -1
  148. package/components/Icons/Toolbox.js +1 -1
  149. package/components/Icons/TrashCan.js +1 -1
  150. package/components/Icons/Undo.js +1 -1
  151. package/components/Icons/Upload.js +1 -1
  152. package/components/Icons/Vaccine.js +1 -1
  153. package/components/Icons/VerticalDots.js +1 -1
  154. package/components/Icons/VideoCamera.js +1 -1
  155. package/components/Icons/VideoChat.js +1 -1
  156. package/components/Icons/Wallet.js +1 -1
  157. package/components/Icons/Watch.js +1 -1
  158. package/components/Icons/X.js +1 -1
  159. package/components/Icons/Zoom.js +1 -1
  160. package/components/Icons/index.js +1 -1
  161. package/components/Input/index.js +1 -1
  162. package/components/LinkList/index.js +1 -1
  163. package/components/List/index.js +1 -1
  164. package/components/Loader/index.js +1 -1
  165. package/components/Logo/index.js +1 -1
  166. package/components/Modal/index.js +1 -1
  167. package/components/NotificationPanel/index.js +1 -1
  168. package/components/Panel/index.js +1 -1
  169. package/components/PanelList/index.js +1 -1
  170. package/components/Portal/index.js +1 -1
  171. package/components/RadioButton/index.js +1 -1
  172. package/components/Slider/index.js +1 -1
  173. package/components/Spacer/index.js +1 -1
  174. package/components/StatusDot/index.js +1 -1
  175. package/components/Tag/Tag.d.ts +35 -0
  176. package/components/Tag/Tag.d.ts.map +1 -0
  177. package/components/Tag/componentdata.json +223 -0
  178. package/components/Tag/index.d.ts +4 -0
  179. package/components/Tag/index.d.ts.map +1 -0
  180. package/components/Tag/index.js +2 -0
  181. package/components/Tag/index.js.map +1 -0
  182. package/components/Tag/styles.module.scss +174 -0
  183. package/components/Tag/styles.module.scss.d.ts +24 -0
  184. package/components/TagList/TagList.d.ts +8 -0
  185. package/components/TagList/TagList.d.ts.map +1 -0
  186. package/components/TagList/componentdata.json +23 -0
  187. package/components/TagList/index.d.ts +4 -0
  188. package/components/TagList/index.d.ts.map +1 -0
  189. package/components/TagList/index.js +2 -0
  190. package/components/TagList/index.js.map +1 -0
  191. package/components/TagList/styles.module.scss +10 -0
  192. package/components/TagList/styles.module.scss.d.ts +9 -0
  193. package/components/Textarea/index.js +1 -1
  194. package/components/Tile/index.js +1 -1
  195. package/components/Title/index.js +1 -1
  196. package/components/Validation/index.js +1 -1
  197. package/constants-088e1d4a.js +2 -0
  198. package/constants-088e1d4a.js.map +1 -0
  199. package/constants.d.ts +11 -0
  200. package/constants.d.ts.map +1 -1
  201. package/hooks/useKeyboardEvent.d.ts +3 -0
  202. package/hooks/useKeyboardEvent.d.ts.map +1 -0
  203. package/hooks/useOutsideEvent.d.ts +9 -0
  204. package/hooks/useOutsideEvent.d.ts.map +1 -0
  205. package/hooks/useResizeObserver.d.ts +9 -0
  206. package/hooks/useResizeObserver.d.ts.map +1 -0
  207. package/hooks/useToggle.d.ts +12 -0
  208. package/hooks/useToggle.d.ts.map +1 -0
  209. package/hooks/useUuid.d.ts +7 -0
  210. package/hooks/useUuid.d.ts.map +1 -0
  211. package/index.d.ts +5 -0
  212. package/index.d.ts.map +1 -1
  213. package/index.js +1 -1
  214. package/package.json +1 -1
  215. package/scss/typography.module.scss.d.ts +25 -25
  216. package/useOutsideEvent-342977b9.js +2 -0
  217. package/useOutsideEvent-342977b9.js.map +1 -0
  218. package/useUuid-24176312.js +2 -0
  219. package/useUuid-24176312.js.map +1 -0
  220. package/uuid-11037462.js +2 -0
  221. package/uuid-11037462.js.map +1 -0
  222. package/Badge-2d8d73dd.js.map +0 -1
  223. package/Button-19ee3464.js.map +0 -1
  224. package/Checkbox-ca6c635d.js +0 -2
  225. package/Checkbox-ca6c635d.js.map +0 -1
  226. package/Close-476c50c6.js.map +0 -1
  227. package/FormGroup-a776b535.js.map +0 -1
  228. package/FormLayout-8d6d4552.js +0 -2
  229. package/FormLayout-8d6d4552.js.map +0 -1
  230. package/Input-cd941f2f.js.map +0 -1
  231. package/Loader-2f304e4f.js.map +0 -1
  232. package/Modal-d0213453.js.map +0 -1
  233. package/Panel-33611d84.js.map +0 -1
  234. package/RadioButton-6a868eb3.js.map +0 -1
  235. package/Textarea-1c857a8a.js.map +0 -1
  236. package/Title-2522b5b9.js +0 -2
  237. package/Title-2522b5b9.js.map +0 -1
  238. package/Validation-fa8b28c3.js.map +0 -1
  239. package/constants-4fe8c7ff.js +0 -2
  240. package/constants-4fe8c7ff.js.map +0 -1
  241. package/uuid-fe7442b7.js +0 -2
  242. package/uuid-fe7442b7.js.map +0 -1
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Hook for å toggle en boolean og kjøre en callback når verdien endres
3
+ *
4
+ * @param initialValue Initiell verdi for boolean
5
+ * @param callback Funksjon som kalles når value endrer verdi (optional)
6
+ * @returns Objekt med nåværende verdi og funksjon som kan kalles for å toggle verdien
7
+ */
8
+ export declare const useToggle: (initialValue: boolean, callback?: ((value: boolean) => void) | undefined) => {
9
+ value: boolean;
10
+ toggleValue: () => void;
11
+ };
12
+ //# sourceMappingURL=useToggle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useToggle.d.ts","sourceRoot":"","sources":["../../src/hooks/useToggle.ts"],"names":[],"mappings":"AAGA;;;;;;GAMG;AACH,eAAO,MAAM,SAAS;;;CAqBrB,CAAC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Returner unik uuid som ikke endrer seg for hver render
3
+ *
4
+ * @returns uuid-string
5
+ */
6
+ export declare const useUuid: () => string;
7
+ //# sourceMappingURL=useUuid.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useUuid.d.ts","sourceRoot":"","sources":["../../src/hooks/useUuid.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,eAAO,MAAM,OAAO,cAInB,CAAC"}
package/index.d.ts CHANGED
@@ -10,6 +10,11 @@ export { usePrevious } from './hooks/usePrevious';
10
10
  export { useSticky } from './hooks/useSticky';
11
11
  export { useWindowSize } from './hooks/useWindowSize';
12
12
  export { useSize } from './hooks/useSize';
13
+ export { useResizeObserver } from './hooks/useResizeObserver';
14
+ export { useToggle } from './hooks/useToggle';
15
+ export { useKeyboardEvent } from './hooks/useKeyboardEvent';
16
+ export { useOutsideEvent } from './hooks/useOutsideEvent';
17
+ export { useUuid } from './hooks/useUuid';
13
18
  export { uuid } from './utils/uuid';
14
19
  export * from './constants';
15
20
  //# 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,aAAa,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,cAAc,aAAa,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,aAAa,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,cAAc,aAAa,CAAC"}
package/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export{t as theme}from"./index-d1c9177a.js";export{B as Breakpoint,u as useBreakpoint}from"./useBreakpoint-6eb418f7.js";export{u as useFocusToggle,a as useFocusTrap,b as useIntersectionObserver,c as useIsVisible}from"./useIsVisible-fad4d769.js";export{u as useHover}from"./useHover-026f72c1.js";import{u as e}from"./useWindowSize-5cc481da.js";export{u as useLayoutEvent,a as useWindowSize}from"./useWindowSize-5cc481da.js";export{u as usePrevious}from"./usePrevious-ae293b10.js";export{u as useSticky}from"./useSticky-807e5dde.js";import{_ as s}from"./_rollupPluginBabelHelpers-4f206abf.js";import{useState as r}from"react";export{u as uuid}from"./uuid-fe7442b7.js";export{A as AnalyticsId,F as FormMode,a as FormVariant,I as IconSize,Z as ZIndex}from"./constants-4fe8c7ff.js";import"./palette-f206f488.js";import"./grid-c105cad1.js";var o=function(o){var a=r(),u=s(a,2),t=u[0],i=u[1];return e((function(){(null==o?void 0:o.current)&&i(o.current.getBoundingClientRect())})),t};export{o as useSize};
1
+ export{t as theme}from"./index-d1c9177a.js";export{B as Breakpoint,u as useBreakpoint}from"./useBreakpoint-6eb418f7.js";export{u as useFocusToggle,a as useFocusTrap,b as useIntersectionObserver,c as useIsVisible}from"./useIsVisible-fad4d769.js";export{u as useHover}from"./useHover-026f72c1.js";import{u as e}from"./useWindowSize-5cc481da.js";export{u as useLayoutEvent,a as useWindowSize}from"./useWindowSize-5cc481da.js";export{u as usePrevious}from"./usePrevious-ae293b10.js";export{u as useSticky}from"./useSticky-807e5dde.js";import{_ as s}from"./_rollupPluginBabelHelpers-4f206abf.js";import{useState as r}from"react";export{b as useKeyboardEvent,c as useOutsideEvent,u as useResizeObserver,a as useToggle}from"./useOutsideEvent-342977b9.js";export{u as useUuid}from"./useUuid-24176312.js";export{u as uuid}from"./uuid-11037462.js";export{A as AnalyticsId,F as FormMode,a as FormVariant,I as IconSize,K as KeyboardEventKey,Z as ZIndex}from"./constants-088e1d4a.js";import"./palette-f206f488.js";import"./grid-c105cad1.js";var o=function(o){var u=r(),a=s(u,2),t=a[0],i=a[1];return e((function(){(null==o?void 0:o.current)&&i(o.current.getBoundingClientRect())})),t};export{o as useSize};
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-beta122",
4
+ "version": "1.0.0-beta125",
5
5
  "description": "The official design system for Helsenorge built with React.",
6
6
  "repository": {
7
7
  "type": "tfs",
@@ -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":""}
@@ -0,0 +1,2 @@
1
+ var x=function(){return"test"===process.env.NODE_ENV?"test":"bxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx".replace(/[x]/g,(function(x){var t=16*Math.random()|0;return("x"==x?t:3&t|8).toString(16)}))},t=Object.freeze({__proto__:null,uuid:x,default:x});export{t as a,x as u};
2
+ //# sourceMappingURL=uuid-11037462.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"uuid-11037462.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Badge-2d8d73dd.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Button-19ee3464.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import{_ as e,d as c}from"./_rollupPluginBabelHelpers-4f206abf.js";import o,{useState as r,useEffect as a}from"react";import{c as l}from"./index-9b84fabc.js";import{u as s}from"./uuid-fe7442b7.js";import n from"./components/Icons/Check.js";import{Icon as b}from"./components/Icons/Icon.js";import{F as i,a as t,A as m,I as p}from"./constants-4fe8c7ff.js";import{g as d}from"./color-e7d082c1.js";import h from"./components/Checkbox/styles.module.scss";var k=o.forwardRef((function(k,x){var f,u,_,v=k.className,w=k.checked,y=void 0!==w&&w,g=k.disabled,N=k.label,j=k.inputId,E=void 0===j?s():j,I=k.mode,C=k.name,F=void 0===C?E:C,z=k.variant,A=k.errorText,B=k.error,H=void 0===B?!!A:B,P=k.value,R=void 0===P?N:P,S=r(y),T=e(S,2),X=T[0],q=T[1],D=H||I===i.oninvalid,G=I===i.ondark,J=I===i.onblueberry,K=z===t.bigform,L=l(h["checkbox-wrapper"],(c(f={},h["checkbox-wrapper--with-error"],A),c(f,h["checkbox-wrapper--bigform"],K),f)),M=l(h["checkbox-label"],(c(u={},h["checkbox-label--disabled"],g),c(u,h["checkbox-label--on-dark"],G),c(u,h["checkbox-label--on-blueberry"],J),c(u,h["checkbox-label--invalid"],D),c(u,h["checkbox-label--bigform"],K),u)),O=l(h.checkbox,v),Q=l(h["checkbox__icon-wrapper"],(c(_={},h["checkbox__icon-wrapper--checked"],X),c(_,h["checkbox__icon-wrapper--disabled"],g),c(_,h["checkbox__icon-wrapper--on-dark"],G),c(_,h["checkbox__icon-wrapper--on-blueberry"],J),c(_,h["checkbox__icon-wrapper--invalid"],D),_)),U=l(h["checkbox-errors"],c({},h["checkbox-errors--bigform"],K)),V=d("blueberry",500);return g&&(V=d("neutral",400)),G&&(V=d("blueberry",200)),D&&(V=d("cherry",500)),a((function(){q(y)}),[y]),o.createElement("div",{"data-testid":k.testId,"data-analyticsid":m.Checkbox,className:L},A&&o.createElement("p",{className:U},A),o.createElement("label",{htmlFor:E,className:M},o.createElement("input",{id:E,name:F,className:O,type:"checkbox",checked:X,disabled:g,onChange:function(){q(!X)},value:R,ref:x,"aria-invalid":H}),o.createElement("span",{className:Q},X&&o.createElement(b,{color:V,className:h.checkbox__icon,svgIcon:n,size:p.XSmall})),o.createElement("span",{className:h["checkbox-label__text"]},N)))}));export{k as C};
2
- //# sourceMappingURL=Checkbox-ca6c635d.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Checkbox-ca6c635d.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Close-476c50c6.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"FormGroup-a776b535.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import{d as o}from"./_rollupPluginBabelHelpers-4f206abf.js";import t from"react";import{c as r}from"./index-9b84fabc.js";import e from"./components/FormLayout/styles.module.scss";import{a,A as n}from"./constants-4fe8c7ff.js";var i;!function(o){o.one="one",o.two="two",o.three="three",o.four="four",o.five="five"}(i||(i={}));var f=t.forwardRef((function(f,m){var l,s=f.maxColumns,c=void 0===s?i.one:s,u=f.colMinWidth,d=void 0===u?300:u,p=f.variant,v=f.className,y=f.mapHelper,h={"--min-col-width":"".concat(d,"px")},b=r(e["form-layout-container"],(o(l={},e["form-layout-container--bigform"],p===a.bigform),o(l,e["form-layout-container--two"],c===i.two),o(l,e["form-layout-container--three"],c===i.three),o(l,e["form-layout-container--four"],c===i.four),o(l,e["form-layout-container--five"],c===i.five),l),v);return t.createElement("div",{"data-testid":f.testId,"data-analyticsid":n.FormLayout,style:h,className:b},t.Children.map(f.children,(function(o){return t.createElement("div",null,y?y(o):o)})))}));export{f as F,i as a};
2
- //# sourceMappingURL=FormLayout-8d6d4552.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FormLayout-8d6d4552.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Input-cd941f2f.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Loader-2f304e4f.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Modal-d0213453.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Panel-33611d84.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"RadioButton-6a868eb3.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Textarea-1c857a8a.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
package/Title-2522b5b9.js DELETED
@@ -1,2 +0,0 @@
1
- import{d as t}from"./_rollupPluginBabelHelpers-4f206abf.js";import e from"react";import{c as i}from"./index-9b84fabc.js";import r from"./components/Title/styles.module.scss";import{A as a}from"./constants-4fe8c7ff.js";var o=function(t){return Object.prototype.hasOwnProperty.call(t,"marginTop")&&Object.prototype.hasOwnProperty.call(t,"marginBottom")},l=e.forwardRef((function(l,m){var n,c=l.id,s=l.children,p=l.className,f=l.htmlMarkup,d=void 0===f?"h1":f,g=l.appearance,u=void 0===g?"title1":g,y=l.margin,T=void 0===y?0:y,b=l.testId,h=i(r.title,(t(n={},r["title--feature"],"titleFeature"===u),t(n,r["title--title1"],"title1"===u),t(n,r["title--title2"],"title2"===u),t(n,r["title--title3"],"title3"===u),t(n,r["title--title4"],"title4"===u),t(n,r["title--title5"],"title5"===u),n),p),j=d,v=o(T)?{marginTop:"".concat(T.marginTop,"rem"),marginBottom:"".concat(T.marginBottom,"rem")}:{marginTop:"".concat(T,"rem"),marginBottom:"".concat(T,"rem")};return e.createElement(j,{id:c,className:h,style:v,ref:m,"data-testid":b,"data-analyticsid":a.Title},s)}));export{l as T,o as i};
2
- //# sourceMappingURL=Title-2522b5b9.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Title-2522b5b9.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Validation-fa8b28c3.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- var a,o,n,e,i;!function(a){a[a.XXSmall=24]="XXSmall",a[a.XSmall=38]="XSmall",a[a.Small=48]="Small",a[a.Medium=64]="Medium",a[a.Large=80]="Large",a[a.XLarge=130]="XLarge"}(a||(a={})),function(a){a[a.Modal=13e5]="Modal",a[a.ExpanderTrigger=1e4]="ExpanderTrigger"}(o||(o={})),function(a){a.onwhite="onwhite",a.ongrey="ongrey",a.onblueberry="onblueberry",a.ondark="ondark",a.oninvalid="oninvalid"}(n||(n={})),function(a){a.normal="normal",a.bigform="bigform"}(e||(e={})),function(a){a.AnchorLink="anchor-link",a.Avatar="avatar",a.Badge="badge",a.Button="button",a.Checkbox="checkbox",a.Close="close",a.Expander="expander",a.ExpanderList="expander-list",a.ExpanderListExpander="expander-list-expander",a.FormGroup="form-group",a.FormLayout="form-layout",a.HighlightBox="highlight-box",a.Icon="icon",a.Input="input",a.Link="link",a.LinkList="link-list",a.List="list",a.Loader="loader",a.Logo="logo",a.Modal="modal",a.NotificationPanel="notification-panel",a.Panel="panel",a.PanelList="panel-list",a.Portal="portal",a.RadioButton="radio-button",a.Slider="slider",a.Spacer="spacer",a.StatusDot="status-dot",a.Textarea="textarea",a.Tile="tile",a.Title="title",a.Validation="validation"}(i||(i={}));export{i as A,n as F,a as I,o as Z,e as a};
2
- //# sourceMappingURL=constants-4fe8c7ff.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants-4fe8c7ff.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
package/uuid-fe7442b7.js DELETED
@@ -1,2 +0,0 @@
1
- var x=function(){return"test"===process.env.NODE_ENV?"test":"bxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx".replace(/[x]/g,(function(x){var t=16*Math.random()|0;return("x"==x?t:3&t|8).toString(16)}))};export{x as u};
2
- //# sourceMappingURL=uuid-fe7442b7.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"uuid-fe7442b7.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}