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

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 (116) hide show
  1. package/Button-2be46c88.js +2 -0
  2. package/Button-2be46c88.js.map +1 -0
  3. package/Checkbox-0ba01292.js +2 -0
  4. package/Checkbox-0ba01292.js.map +1 -0
  5. package/Close-80751ae6.js +2 -0
  6. package/Close-80751ae6.js.map +1 -0
  7. package/FormGroup-9555dd73.js +2 -0
  8. package/FormGroup-9555dd73.js.map +1 -0
  9. package/Icon-9b4a8a2d.js +2 -0
  10. package/Icon-9b4a8a2d.js.map +1 -0
  11. package/Loader-3589bdb1.js +2 -0
  12. package/Loader-3589bdb1.js.map +1 -0
  13. package/Modal-e7d8aac4.js +2 -0
  14. package/Modal-e7d8aac4.js.map +1 -0
  15. package/RadioButton-84ca988e.js +2 -0
  16. package/RadioButton-84ca988e.js.map +1 -0
  17. package/Textarea-9c91191a.js +2 -0
  18. package/Textarea-9c91191a.js.map +1 -0
  19. package/Validation-1236e8ef.js +2 -0
  20. package/Validation-1236e8ef.js.map +1 -0
  21. package/components/AnchorLink/AnchorLink.d.ts.map +1 -1
  22. package/components/AnchorLink/index.js +1 -1
  23. package/components/Avatar/index.js +1 -1
  24. package/components/Button/Button.d.ts.map +1 -1
  25. package/components/Button/index.js +1 -1
  26. package/components/ButtonWithModal/componentdata.json +61 -1
  27. package/components/ButtonWithModal/index.js +1 -1
  28. package/components/Checkbox/Checkbox.d.ts +3 -3
  29. package/components/Checkbox/Checkbox.d.ts.map +1 -1
  30. package/components/Checkbox/componentdata.json +13 -7
  31. package/components/Checkbox/index.js +1 -1
  32. package/components/Close/index.js +1 -1
  33. package/components/ExpanderList/index.js +1 -1
  34. package/components/FormExample/FormExample.d.ts +7 -5
  35. package/components/FormExample/FormExample.d.ts.map +1 -1
  36. package/components/FormExample/componentdata.json +9 -3
  37. package/components/FormExample/index.js +1 -1
  38. package/components/FormExample/index.js.map +1 -1
  39. package/components/FormGroup/FormGroup.d.ts +5 -6
  40. package/components/FormGroup/FormGroup.d.ts.map +1 -1
  41. package/components/FormGroup/componentdata.json +32 -7
  42. package/components/FormGroup/index.js +1 -1
  43. package/components/FormGroup/styles.module.scss +12 -3
  44. package/components/Icons/AcupunctureBack.js +1 -1
  45. package/components/Icons/Icon.js +1 -1
  46. package/components/Icons/NoEye.js +1 -1
  47. package/components/Icons/SectionSign.js +1 -1
  48. package/components/Icons/SpeechBubble.js +1 -1
  49. package/components/Icons/SupportingPerson.js +1 -1
  50. package/components/Icons/Syringe.js +1 -1
  51. package/components/Icons/index.js +1 -1
  52. package/components/LinkList/LinkList.d.ts +2 -0
  53. package/components/LinkList/LinkList.d.ts.map +1 -1
  54. package/components/LinkList/index.js +1 -1
  55. package/components/Loader/Loader.d.ts +7 -1
  56. package/components/Loader/Loader.d.ts.map +1 -1
  57. package/components/Loader/componentdata.json +32 -1
  58. package/components/Loader/index.js +1 -1
  59. package/components/Loader/styles.module.scss +19 -4
  60. package/components/Modal/Modal.d.ts +9 -0
  61. package/components/Modal/Modal.d.ts.map +1 -1
  62. package/components/Modal/componentdata.json +63 -1
  63. package/components/Modal/index.js +1 -1
  64. package/components/Modal/styles.module.scss +14 -3
  65. package/components/Modal/styles.module.scss.d.ts +3 -0
  66. package/components/NotificationPanel/NotificationPanel.d.ts.map +1 -1
  67. package/components/NotificationPanel/index.js +1 -1
  68. package/components/NotificationPanel/styles.module.scss +0 -51
  69. package/components/NotificationPanel/styles.module.scss.d.ts +0 -2
  70. package/components/RadioButton/RadioButton.d.ts +31 -0
  71. package/components/RadioButton/RadioButton.d.ts.map +1 -0
  72. package/components/RadioButton/componentdata.json +265 -0
  73. package/components/RadioButton/index.d.ts +3 -0
  74. package/components/RadioButton/index.d.ts.map +1 -0
  75. package/components/RadioButton/index.js +2 -0
  76. package/components/RadioButton/index.js.map +1 -0
  77. package/components/RadioButton/styles.module.scss +236 -0
  78. package/components/RadioButton/styles.module.scss.d.ts +23 -0
  79. package/components/Textarea/Textarea.d.ts +31 -0
  80. package/components/Textarea/Textarea.d.ts.map +1 -0
  81. package/components/Textarea/componentdata.json +527 -0
  82. package/components/Textarea/index.d.ts +3 -0
  83. package/components/Textarea/index.d.ts.map +1 -0
  84. package/components/Textarea/index.js +2 -0
  85. package/components/Textarea/index.js.map +1 -0
  86. package/components/Textarea/styles.module.scss +154 -0
  87. package/components/Textarea/styles.module.scss.d.ts +21 -0
  88. package/components/Tile/Tile.d.ts.map +1 -1
  89. package/components/Tile/index.js +1 -1
  90. package/components/Validation/Validation.d.ts +2 -2
  91. package/components/Validation/Validation.d.ts.map +1 -1
  92. package/components/Validation/componentdata.json +3 -3
  93. package/components/Validation/index.js +1 -1
  94. package/constants-a4b0b501.js +2 -0
  95. package/constants-a4b0b501.js.map +1 -0
  96. package/constants.d.ts +29 -0
  97. package/constants.d.ts.map +1 -1
  98. package/package.json +1 -1
  99. package/Button-55952154.js +0 -2
  100. package/Button-55952154.js.map +0 -1
  101. package/Checkbox-46666e69.js +0 -2
  102. package/Checkbox-46666e69.js.map +0 -1
  103. package/Close-a6cbd165.js +0 -2
  104. package/Close-a6cbd165.js.map +0 -1
  105. package/FormGroup-56d60079.js +0 -2
  106. package/FormGroup-56d60079.js.map +0 -1
  107. package/Loader-6ff0d481.js +0 -2
  108. package/Loader-6ff0d481.js.map +0 -1
  109. package/Modal-ac3a4757.js +0 -2
  110. package/Modal-ac3a4757.js.map +0 -1
  111. package/Validation-372a97b9.js +0 -2
  112. package/Validation-372a97b9.js.map +0 -1
  113. package/X-8d8ff918.js +0 -2
  114. package/X-8d8ff918.js.map +0 -1
  115. package/constants-d919236e.js +0 -2
  116. package/constants-d919236e.js.map +0 -1
@@ -1,2 +1,2 @@
1
- import{M as s}from"../../Modal-ac3a4757.js";export{M as default}from"../../Modal-ac3a4757.js";import"../../_rollupPluginBabelHelpers-d0752906.js";import"react";import"../../index-9b84fabc.js";import"../../palette-f206f488.js";import"../../Button-55952154.js";import"../../_tslib-51c8a283.js";import"../../color-acb834c6.js";import"../../index-19b48c51.js";import"../../grid-11a70eb7.js";import"../../constants-d919236e.js";import"../../Loader-6ff0d481.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-a6cbd165.js";import"../../X-8d8ff918.js";import"../Close/styles.module.scss";import"../../useBreakpoint-324a9b14.js";
1
+ import{M as s}from"../../Modal-e7d8aac4.js";export{M as default}from"../../Modal-e7d8aac4.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";
2
2
  //# sourceMappingURL=index.js.map
@@ -4,7 +4,6 @@
4
4
  @import '../../scss/_font-settings.scss';
5
5
 
6
6
  .modal-overlay {
7
- z-index: 1300000;
8
7
  background: rgba(51, 51, 51, 0.75);
9
8
  display: block;
10
9
  position: fixed;
@@ -31,13 +30,21 @@
31
30
  background-color: $white;
32
31
  animation: open 200ms 1;
33
32
 
34
- &__title--error {
35
- color: $cherry600;
33
+ &__title {
34
+ &--error {
35
+ color: $cherry600;
36
+ }
37
+ &--success {
38
+ color: $kiwi900;
39
+ }
36
40
  }
37
41
 
38
42
  &__iconWrapper {
39
43
  padding-right: 0.75rem;
40
44
  }
45
+ &__afterTitleChildren {
46
+ padding-left: 0.75rem;
47
+ }
41
48
 
42
49
  p {
43
50
  font-size: 1.125rem;
@@ -52,6 +59,9 @@
52
59
  &--warning {
53
60
  background-color: $banana50;
54
61
  }
62
+ &--success {
63
+ background-color: $kiwi50;
64
+ }
55
65
 
56
66
  &--large {
57
67
  width: calc(100vw - 0.75rem);
@@ -150,6 +160,7 @@
150
160
 
151
161
  &__title {
152
162
  display: flex;
163
+ align-items: center;
153
164
  div {
154
165
  display: flex;
155
166
  justify-content: center;
@@ -1,6 +1,7 @@
1
1
  export type Styles = {
2
2
  align: string;
3
3
  modal: string;
4
+ modal__afterTitleChildren: string;
4
5
  'modal__call-to-action': string;
5
6
  'modal__call-to-action--large': string;
6
7
  'modal__call-to-action--medium': string;
@@ -21,11 +22,13 @@ export type Styles = {
21
22
  'modal__shadow--show': string;
22
23
  'modal__shadow--top': string;
23
24
  'modal__title--error': string;
25
+ 'modal__title--success': string;
24
26
  'modal--error': string;
25
27
  'modal--image': string;
26
28
  'modal--large': string;
27
29
  'modal--medium': string;
28
30
  'modal--normal': string;
31
+ 'modal--success': string;
29
32
  'modal--warning': string;
30
33
  'modal-overlay': string;
31
34
  open: string;
@@ -1 +1 @@
1
- {"version":3,"file":"NotificationPanel.d.ts","sourceRoot":"","sources":["../../../src/components/NotificationPanel/NotificationPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAe1B,oBAAY,yBAAyB,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAC;AAC7E,oBAAY,sBAAsB,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAElE,UAAU,sBAAsB;IAC9B,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iCAAiC;IACjC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,mEAAmE;IACnE,OAAO,CAAC,EAAE,yBAAyB,CAAC;IACpC,0DAA0D;IAC1D,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,mDAAmD;IACnD,IAAI,CAAC,EAAE,sBAAsB,CAAC;IAC9B,sFAAsF;IACtF,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,KAAK,IAAI,CAAC;IAClE,wDAAwD;IACxD,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,6EAA6E;IAC7E,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,+CAA+C;IAC/C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,8BAA8B;IAC9B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,sCAAsC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;CAK7B,CAAC;AAUF,QAAA,MAAM,iBAAiB,+FAyFrB,CAAC;AAEH,eAAe,iBAAiB,CAAC"}
1
+ {"version":3,"file":"NotificationPanel.d.ts","sourceRoot":"","sources":["../../../src/components/NotificationPanel/NotificationPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAa1B,oBAAY,yBAAyB,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAC;AAC7E,oBAAY,sBAAsB,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAElE,UAAU,sBAAsB;IAC9B,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iCAAiC;IACjC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,mEAAmE;IACnE,OAAO,CAAC,EAAE,yBAAyB,CAAC;IACpC,0DAA0D;IAC1D,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,mDAAmD;IACnD,IAAI,CAAC,EAAE,sBAAsB,CAAC;IAC9B,sFAAsF;IACtF,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,KAAK,IAAI,CAAC;IAClE,wDAAwD;IACxD,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,6EAA6E;IAC7E,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,+CAA+C;IAC/C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,8BAA8B;IAC9B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,sCAAsC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;CAK7B,CAAC;AAUF,QAAA,MAAM,iBAAiB,+FA4ErB,CAAC;AAEH,eAAe,iBAAiB,CAAC"}
@@ -1,2 +1,2 @@
1
- import{a as e}from"../../_rollupPluginBabelHelpers-d0752906.js";import a from"react";import{c as t}from"../../index-9b84fabc.js";import{p as o}from"../../palette-f206f488.js";import{I as i,a as n}from"../../constants-d919236e.js";import{u as r}from"../../useHover-037be19d.js";import{a as l,A as c}from"../../AlertSignFill-e607ff43.js";import{X as s}from"../../X-8d8ff918.js";import m from"./styles.module.scss";import"../../_tslib-51c8a283.js";var f={info:a.createElement(i,{svgIcon:function(e){var t=e.isExtraSmall,o=e.isHovered,i=a.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"}),n=a.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=a.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?a.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?n:i},color:o.kiwi900,hoverColor:o.kiwi900}),warn:a.createElement(i,{svgIcon:l,color:"black",hoverColor:"black"}),alert:a.createElement(i,{svgIcon:c,color:o.cherry500,hoverColor:o.cherry500}),alertLabel:a.createElement(i,{svgIcon:l,color:o.cherry500,hoverColor:o.cherry500}),crisis:a.createElement(i,{svgIcon:c,color:o.banana200,hoverColor:o.banana200})},v=a.forwardRef((function(l,c){var v,p,d,h=l.children,u=l.variant,_=void 0===u?"info":u,b=l.shadow,E=void 0!==b&&b,C=l.dismissable,w=void 0!==C&&C,g=l.onClick,y=l.label,I=l.fluid,M=void 0!==I&&I,j=l.size,k=l.className,N=l.testId,S=r(void 0,w),H=S.hoverRef,L=S.isHovered,x=t(m["notification-panel__close-button"],"crisis"===_?m["notification-panel__close-button--crisis"]:"");var z;return z=a.createElement("div",{ref:c,"data-testid":N,className:t(m["notification-panel"],m["notification-panel--"+j],m["notification-panel--"+_],(v={},e(v,m["notification-panel--shadow"],!M&&E),e(v,m["notification-panel--haslabel"],!!y&&!h),e(v,m["notification-panel--dismissable"],w),v),k||"")},a.createElement("span",{className:m["notification-panel__icon"]},f["alert"===_&&y&&!h?"alertLabel":_]),a.createElement("section",{"aria-label":function(){if(h){var e="";return a.Children.map(h,(function(a){"string"==typeof a&&(e+=a)})),e}return""}(),className:t(m["notification-panel__content"],(p={},e(p,m["notification-panel__content--crisis"],"crisis"===_),e(p,m["notification-panel__content--haslabel"],!!y&&!h),e(p,m["notification-panel__content--isred"],"alert"===_&&!!y&&!h),p))},y?a.createElement("h1",{className:m["notification-panel__label"],dangerouslySetInnerHTML:{__html:y}}):null,h),w?a.createElement("span",{className:m["notification-panel__action-column"]},a.createElement("button",{className:x,onClick:g,ref:H,"aria-label":null!==(d=l.ariaLabelCloseBtn)&&void 0!==d?d:"Lukk"},a.createElement(i,{svgIcon:s,isHovered:L,size:n.XSmall,color:"crisis"===_?o.white:o.blueberry500,hoverColor:"crisis"===_?o.white:o.blueberry700}))):null),M?a.createElement("div",{className:t(m["notification-panel__fluidwrapper"],m["notification-panel__fluidwrapper--"+_],e({},m["notification-panel__fluidwrapper--shadow"],E))},z):z}));export default v;
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;
2
2
  //# sourceMappingURL=index.js.map
@@ -135,55 +135,4 @@
135
135
  &__action-column {
136
136
  grid-area: 'action';
137
137
  }
138
-
139
- &__close-button {
140
- display: flex;
141
- position: relative;
142
- background: transparent;
143
- border: 2px solid $blueberry600;
144
- padding: 0;
145
- justify-content: center;
146
- outline: none;
147
- cursor: pointer;
148
- &:before {
149
- content: ' ';
150
- position: absolute;
151
- top: -getSpacer(2xs);
152
- left: -getSpacer(2xs);
153
- right: -getSpacer(2xs);
154
- bottom: -getSpacer(2xs);
155
- border: 2px solid transparent;
156
- }
157
- &:after {
158
- content: ' ';
159
- position: absolute;
160
- top: -0.375rem;
161
- left: -0.375rem;
162
- right: -0.375rem;
163
- bottom: -0.375rem;
164
- border: 2px solid transparent;
165
- }
166
- &:hover,
167
- &:active,
168
- &:focus {
169
- background-color: rgba(8, 102, 124, 0.05);
170
- border-color: transparent;
171
- &:after {
172
- border-color: $blueberry700;
173
- }
174
- }
175
-
176
- &--crisis {
177
- border-color: $white;
178
-
179
- &:hover,
180
- &:active,
181
- &:focus {
182
- border-color: transparent;
183
- &:after {
184
- border-color: $white;
185
- }
186
- }
187
- }
188
- }
189
138
  }
@@ -3,8 +3,6 @@ export type Styles = {
3
3
  anchorlink__icon: string;
4
4
  'notification-panel': string;
5
5
  'notification-panel__action-column': string;
6
- 'notification-panel__close-button': string;
7
- 'notification-panel__close-button--crisis': string;
8
6
  'notification-panel__content': string;
9
7
  'notification-panel__content--crisis': string;
10
8
  'notification-panel__content--haslabel': string;
@@ -0,0 +1,31 @@
1
+ import React from 'react';
2
+ import { FormMode, FormVariant } from '../../constants';
3
+ export interface RadioButtonProps {
4
+ /** Adds custom classes to the element. */
5
+ className?: string;
6
+ /** Sets radioButton as checked by default */
7
+ defaultChecked?: boolean;
8
+ /** Disables the radioButton */
9
+ disabled?: boolean;
10
+ /** The label text next to the radioButton */
11
+ label: string;
12
+ /** input id of the radioButton */
13
+ inputid?: string;
14
+ /** Changes the visuals of the radioButton */
15
+ mode?: keyof typeof FormMode;
16
+ /** Unique identifyer for the input tag */
17
+ name?: string;
18
+ /** Return value for the radioButton */
19
+ value?: string;
20
+ /** Changes the visuals of the radioButton */
21
+ variant?: keyof typeof FormVariant;
22
+ /** Activates Error style for the radioButton - This is can be true while errorText is empty, when in a FormGroup */
23
+ error?: boolean;
24
+ /** Error text to show above the component */
25
+ errorText?: string;
26
+ /** Sets the data-testid attribute. */
27
+ testId?: string;
28
+ }
29
+ export declare const RadioButton: React.ForwardRefExoticComponent<RadioButtonProps & React.RefAttributes<HTMLInputElement>>;
30
+ export default RadioButton;
31
+ //# sourceMappingURL=RadioButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RadioButton.d.ts","sourceRoot":"","sources":["../../../src/components/RadioButton/RadioButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAExD,MAAM,WAAW,gBAAgB;IAC/B,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,6CAA6C;IAC7C,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,+BAA+B;IAC/B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,6CAA6C;IAC7C,KAAK,EAAE,MAAM,CAAC;IACd,kCAAkC;IAClC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,6CAA6C;IAC7C,IAAI,CAAC,EAAE,MAAM,OAAO,QAAQ,CAAC;IAC7B,0CAA0C;IAC1C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,uCAAuC;IACvC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,6CAA6C;IAC7C,OAAO,CAAC,EAAE,MAAM,OAAO,WAAW,CAAC;IACnC,oHAAoH;IACpH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,6CAA6C;IAC7C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sCAAsC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,WAAW,2FA+DtB,CAAC;AAEH,eAAe,WAAW,CAAC"}
@@ -0,0 +1,265 @@
1
+ {
2
+ "props": {
3
+ "className": {
4
+ "defaultValue": null,
5
+ "description": "Adds custom classes to the element.",
6
+ "name": "className",
7
+ "parent": {
8
+ "fileName": "src/components/RadioButton/RadioButton.tsx",
9
+ "name": "RadioButtonProps"
10
+ },
11
+ "declarations": [
12
+ {
13
+ "fileName": "src/components/RadioButton/RadioButton.tsx",
14
+ "name": "RadioButtonProps"
15
+ }
16
+ ],
17
+ "required": false,
18
+ "type": {
19
+ "name": "string"
20
+ }
21
+ },
22
+ "defaultChecked": {
23
+ "defaultValue": null,
24
+ "description": "Sets radioButton as checked by default",
25
+ "name": "defaultChecked",
26
+ "parent": {
27
+ "fileName": "src/components/RadioButton/RadioButton.tsx",
28
+ "name": "RadioButtonProps"
29
+ },
30
+ "declarations": [
31
+ {
32
+ "fileName": "src/components/RadioButton/RadioButton.tsx",
33
+ "name": "RadioButtonProps"
34
+ }
35
+ ],
36
+ "required": false,
37
+ "type": {
38
+ "name": "boolean"
39
+ }
40
+ },
41
+ "disabled": {
42
+ "defaultValue": null,
43
+ "description": "Disables the radioButton",
44
+ "name": "disabled",
45
+ "parent": {
46
+ "fileName": "src/components/RadioButton/RadioButton.tsx",
47
+ "name": "RadioButtonProps"
48
+ },
49
+ "declarations": [
50
+ {
51
+ "fileName": "src/components/RadioButton/RadioButton.tsx",
52
+ "name": "RadioButtonProps"
53
+ }
54
+ ],
55
+ "required": false,
56
+ "type": {
57
+ "name": "boolean"
58
+ }
59
+ },
60
+ "label": {
61
+ "defaultValue": null,
62
+ "description": "The label text next to the radioButton",
63
+ "name": "label",
64
+ "parent": {
65
+ "fileName": "src/components/RadioButton/RadioButton.tsx",
66
+ "name": "RadioButtonProps"
67
+ },
68
+ "declarations": [
69
+ {
70
+ "fileName": "src/components/RadioButton/RadioButton.tsx",
71
+ "name": "RadioButtonProps"
72
+ }
73
+ ],
74
+ "required": true,
75
+ "type": {
76
+ "name": "string"
77
+ }
78
+ },
79
+ "inputid": {
80
+ "defaultValue": null,
81
+ "description": "input id of the radioButton",
82
+ "name": "inputid",
83
+ "parent": {
84
+ "fileName": "src/components/RadioButton/RadioButton.tsx",
85
+ "name": "RadioButtonProps"
86
+ },
87
+ "declarations": [
88
+ {
89
+ "fileName": "src/components/RadioButton/RadioButton.tsx",
90
+ "name": "RadioButtonProps"
91
+ }
92
+ ],
93
+ "required": false,
94
+ "type": {
95
+ "name": "string"
96
+ }
97
+ },
98
+ "mode": {
99
+ "defaultValue": null,
100
+ "description": "Changes the visuals of the radioButton",
101
+ "name": "mode",
102
+ "parent": {
103
+ "fileName": "src/components/RadioButton/RadioButton.tsx",
104
+ "name": "RadioButtonProps"
105
+ },
106
+ "declarations": [
107
+ {
108
+ "fileName": "src/components/RadioButton/RadioButton.tsx",
109
+ "name": "RadioButtonProps"
110
+ }
111
+ ],
112
+ "required": false,
113
+ "type": {
114
+ "name": "enum",
115
+ "raw": "\"OnWhite\" | \"OnGrey\" | \"OnBlueberry\" | \"OnDark\" | \"OnError\" | undefined",
116
+ "value": [
117
+ {
118
+ "value": "undefined"
119
+ },
120
+ {
121
+ "value": "\"OnWhite\""
122
+ },
123
+ {
124
+ "value": "\"OnGrey\""
125
+ },
126
+ {
127
+ "value": "\"OnBlueberry\""
128
+ },
129
+ {
130
+ "value": "\"OnDark\""
131
+ },
132
+ {
133
+ "value": "\"OnError\""
134
+ }
135
+ ]
136
+ }
137
+ },
138
+ "name": {
139
+ "defaultValue": null,
140
+ "description": "Unique identifyer for the input tag",
141
+ "name": "name",
142
+ "parent": {
143
+ "fileName": "src/components/RadioButton/RadioButton.tsx",
144
+ "name": "RadioButtonProps"
145
+ },
146
+ "declarations": [
147
+ {
148
+ "fileName": "src/components/RadioButton/RadioButton.tsx",
149
+ "name": "RadioButtonProps"
150
+ }
151
+ ],
152
+ "required": false,
153
+ "type": {
154
+ "name": "string"
155
+ }
156
+ },
157
+ "value": {
158
+ "defaultValue": null,
159
+ "description": "Return value for the radioButton",
160
+ "name": "value",
161
+ "parent": {
162
+ "fileName": "src/components/RadioButton/RadioButton.tsx",
163
+ "name": "RadioButtonProps"
164
+ },
165
+ "declarations": [
166
+ {
167
+ "fileName": "src/components/RadioButton/RadioButton.tsx",
168
+ "name": "RadioButtonProps"
169
+ }
170
+ ],
171
+ "required": false,
172
+ "type": {
173
+ "name": "string"
174
+ }
175
+ },
176
+ "variant": {
177
+ "defaultValue": null,
178
+ "description": "Changes the visuals of the radioButton",
179
+ "name": "variant",
180
+ "parent": {
181
+ "fileName": "src/components/RadioButton/RadioButton.tsx",
182
+ "name": "RadioButtonProps"
183
+ },
184
+ "declarations": [
185
+ {
186
+ "fileName": "src/components/RadioButton/RadioButton.tsx",
187
+ "name": "RadioButtonProps"
188
+ }
189
+ ],
190
+ "required": false,
191
+ "type": {
192
+ "name": "enum",
193
+ "raw": "\"Normal\" | \"BigForm\" | undefined",
194
+ "value": [
195
+ {
196
+ "value": "undefined"
197
+ },
198
+ {
199
+ "value": "\"Normal\""
200
+ },
201
+ {
202
+ "value": "\"BigForm\""
203
+ }
204
+ ]
205
+ }
206
+ },
207
+ "error": {
208
+ "defaultValue": null,
209
+ "description": "Activates Error style for the radioButton - This is can be true while errorText is empty, when in a FormGroup",
210
+ "name": "error",
211
+ "parent": {
212
+ "fileName": "src/components/RadioButton/RadioButton.tsx",
213
+ "name": "RadioButtonProps"
214
+ },
215
+ "declarations": [
216
+ {
217
+ "fileName": "src/components/RadioButton/RadioButton.tsx",
218
+ "name": "RadioButtonProps"
219
+ }
220
+ ],
221
+ "required": false,
222
+ "type": {
223
+ "name": "boolean"
224
+ }
225
+ },
226
+ "errorText": {
227
+ "defaultValue": null,
228
+ "description": "Error text to show above the component",
229
+ "name": "errorText",
230
+ "parent": {
231
+ "fileName": "src/components/RadioButton/RadioButton.tsx",
232
+ "name": "RadioButtonProps"
233
+ },
234
+ "declarations": [
235
+ {
236
+ "fileName": "src/components/RadioButton/RadioButton.tsx",
237
+ "name": "RadioButtonProps"
238
+ }
239
+ ],
240
+ "required": false,
241
+ "type": {
242
+ "name": "string"
243
+ }
244
+ },
245
+ "testId": {
246
+ "defaultValue": null,
247
+ "description": "Sets the data-testid attribute.",
248
+ "name": "testId",
249
+ "parent": {
250
+ "fileName": "src/components/RadioButton/RadioButton.tsx",
251
+ "name": "RadioButtonProps"
252
+ },
253
+ "declarations": [
254
+ {
255
+ "fileName": "src/components/RadioButton/RadioButton.tsx",
256
+ "name": "RadioButtonProps"
257
+ }
258
+ ],
259
+ "required": false,
260
+ "type": {
261
+ "name": "string"
262
+ }
263
+ }
264
+ }
265
+ }
@@ -0,0 +1,3 @@
1
+ import RadioButton from './RadioButton';
2
+ export default RadioButton;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +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";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}