@helsenorge/designsystem-react 4.1.0 → 4.1.1

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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,5 @@
1
+ ## [4.1.0](https://github.com/helsenorge/designsystem/branchCompare?baseVersion=GTv4.0.1&targetVersion=GTv4.1.0) (2023-06-05)
2
+
1
3
  ## [4.0.1](https://github.com/helsenorge/designsystem/branchCompare?baseVersion=GTv4.0.0&targetVersion=GTv4.0.1) (2023-05-30)
2
4
 
3
5
  ## [4.0.0](https://github.com/helsenorge/designsystem/branchCompare?baseVersion=GTv3.2.1&targetVersion=GTv4.0.0) (2023-05-23)
@@ -1 +1 @@
1
- {"version":3,"file":"LegalDocument.d.ts","sourceRoot":"","sources":["../../../src/components/Icons/LegalDocument.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,YAAY,EAAW,MAAM,QAAQ,CAAC;AAE/C,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAgCzC,CAAC;AAEF,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"LegalDocument.d.ts","sourceRoot":"","sources":["../../../src/components/Icons/LegalDocument.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,YAAY,EAAW,MAAM,QAAQ,CAAC;AAE/C,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAyBzC,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -1,2 +1,2 @@
1
- import e from"react";import{getIcon as r}from"./Icon.js";import"classnames";import"../../constants.js";import"../../hooks/useUuid.js";import"../../uuid.js";import"../../utils/environment.js";const h=({size:l,isHovered:t})=>{const a=e.createElement(e.Fragment,null,e.createElement("path",{fillRule:"evenodd",d:"M22.452 18.623a2.93 2.93 0 0 1 .646 1.817.65.65 0 1 1-1.3 0 1.63 1.63 0 0 0-.35-.991c-.235-.286-.66-.566-1.483-.545-.837.02-1.231.307-1.439.578-.23.3-.31.687-.322 1.006-.008.233.045.486.3.811.274.349.785.78 1.713 1.308 1.993 1.13 3.051 2.381 3.285 3.648.198 1.073.046 2.774-1.354 4.303.108.11.205.219.292.329.44.56.597 1.113.577 1.66-.016.461-.13 1.155-.59 1.753-.48.628-1.27 1.057-2.437 1.086-1.181.03-2.006-.394-2.52-1.02a2.93 2.93 0 0 1-.645-1.816.65.65 0 1 1 1.3 0c0 .275.092.677.35.991.234.285.66.566 1.482.545.837-.02 1.232-.307 1.44-.578.23-.3.31-.687.321-1.006.008-.233-.044-.486-.3-.812-.274-.348-.784-.78-1.713-1.307-1.992-1.13-3.05-2.381-3.284-3.648-.198-1.073-.047-2.774 1.353-4.303a3.946 3.946 0 0 1-.291-.329c-.441-.56-.597-1.113-.578-1.66.016-.461.13-1.155.59-1.753.481-.628 1.27-1.057 2.438-1.086 1.18-.03 2.005.394 2.52 1.02Zm-.229 7.868c.137.744.051 2.04-1.088 3.247-.236-.16-.499-.321-.788-.485-1.855-1.053-2.517-2.042-2.648-2.754-.137-.744-.05-2.041 1.088-3.247.237.16.499.321.788.485 1.856 1.053 2.517 2.042 2.648 2.754Z",fill:"#000"}),e.createElement("path",{fillRule:"evenodd",d:"M37.288 40.64H10.712V7.864h13.454a5 5 0 0 1 3.551 1.48l8.123 8.196a5 5 0 0 1 1.448 3.52v19.58Zm-1.276-1.276H11.988V9.14h12.264a2 2 0 0 1 2 1.998l.01 7.752h7.75a2 2 0 0 1 2 2v18.474ZM27.323 17.88h7.143l-7.143-7.225v7.225Z",fill:"#000"})),m=e.createElement(e.Fragment,null,e.createElement("path",{fillRule:"evenodd",d:"M22.452 18.622a2.93 2.93 0 0 1 .646 1.817.65.65 0 1 1-1.3 0 1.63 1.63 0 0 0-.35-.991c-.235-.285-.66-.566-1.483-.545-.837.02-1.232.307-1.439.578-.23.3-.31.687-.322 1.006-.008.233.044.487.3.812.274.348.784.78 1.713 1.307 1.993 1.13 3.051 2.381 3.285 3.648.197 1.073.046 2.774-1.354 4.303.108.11.205.219.292.329.44.56.597 1.113.577 1.66-.016.461-.13 1.154-.59 1.753-.481.628-1.27 1.057-2.437 1.086-1.181.03-2.006-.394-2.52-1.02a2.93 2.93 0 0 1-.646-1.817.65.65 0 1 1 1.3 0c0 .276.093.678.35.992.235.285.66.566 1.483.545.837-.02 1.232-.307 1.439-.578.23-.3.31-.687.322-1.006.008-.233-.044-.486-.3-.811-.274-.349-.784-.78-1.713-1.308-1.993-1.13-3.05-2.381-3.284-3.648-.198-1.073-.047-2.774 1.353-4.303a3.944 3.944 0 0 1-.291-.329c-.441-.56-.598-1.113-.578-1.66.016-.461.13-1.154.59-1.753.481-.628 1.27-1.057 2.438-1.086 1.18-.03 2.005.394 2.519 1.02Zm-.229 7.868c.137.744.051 2.041-1.088 3.247-.237-.16-.499-.32-.788-.485-1.856-1.053-2.517-2.042-2.648-2.754-.137-.744-.05-2.04 1.088-3.247.237.16.499.321.788.485 1.856 1.053 2.517 2.042 2.648 2.754Z",fill:"#000"}),e.createElement("path",{fillRule:"evenodd",d:"M37.288 40.64H10.712V7.864h26.576V40.64Zm-1.276-1.276H11.988V9.14H26.25l9.75.012.012 9.738v20.474Z",fill:"#000"}));return r({size:l,isHovered:t,normal:a,normalHover:m})};export{h as default};
1
+ import e from"react";import{getIcon as r}from"./Icon.js";import"classnames";import"../../constants.js";import"../../hooks/useUuid.js";import"../../uuid.js";import"../../utils/environment.js";const u=({size:t,isHovered:l})=>{const a=e.createElement(e.Fragment,null,e.createElement("path",{fillRule:"evenodd",d:"M22.452 18.623a2.93 2.93 0 0 1 .646 1.817.65.65 0 1 1-1.3 0 1.63 1.63 0 0 0-.35-.991c-.235-.286-.66-.566-1.483-.545-.837.02-1.231.307-1.439.578-.23.3-.31.687-.322 1.006-.008.233.045.486.3.811.274.349.785.78 1.713 1.308 1.993 1.13 3.051 2.381 3.285 3.648.198 1.073.046 2.774-1.354 4.303.108.11.205.219.292.329.44.56.597 1.113.577 1.66-.016.461-.13 1.155-.59 1.753-.48.628-1.27 1.057-2.437 1.086-1.181.03-2.006-.394-2.52-1.02a2.93 2.93 0 0 1-.645-1.816.65.65 0 1 1 1.3 0c0 .275.092.677.35.991.234.285.66.566 1.482.545.837-.02 1.232-.307 1.44-.578.23-.3.31-.687.321-1.006.008-.233-.044-.486-.3-.812-.274-.348-.784-.78-1.713-1.307-1.992-1.13-3.05-2.381-3.284-3.648-.198-1.073-.047-2.774 1.353-4.303a3.946 3.946 0 0 1-.291-.329c-.441-.56-.597-1.113-.578-1.66.016-.461.13-1.155.59-1.753.481-.628 1.27-1.057 2.438-1.086 1.18-.03 2.005.394 2.52 1.02Zm-.229 7.868c.137.744.051 2.04-1.088 3.247-.236-.16-.499-.321-.788-.485-1.855-1.053-2.517-2.042-2.648-2.754-.137-.744-.05-2.041 1.088-3.247.237.16.499.321.788.485 1.856 1.053 2.517 2.042 2.648 2.754Z"}),e.createElement("path",{fillRule:"evenodd",d:"M37.288 40.64H10.712V7.864h13.454a5 5 0 0 1 3.551 1.48l8.123 8.196a5 5 0 0 1 1.448 3.52v19.58Zm-1.276-1.276H11.988V9.14h12.264a2 2 0 0 1 2 1.998l.01 7.752h7.75a2 2 0 0 1 2 2v18.474ZM27.323 17.88h7.143l-7.143-7.225v7.225Z"})),m=e.createElement(e.Fragment,null,e.createElement("path",{fillRule:"evenodd",d:"M22.452 18.622a2.93 2.93 0 0 1 .646 1.817.65.65 0 1 1-1.3 0 1.63 1.63 0 0 0-.35-.991c-.235-.285-.66-.566-1.483-.545-.837.02-1.232.307-1.439.578-.23.3-.31.687-.322 1.006-.008.233.044.487.3.812.274.348.784.78 1.713 1.307 1.993 1.13 3.051 2.381 3.285 3.648.197 1.073.046 2.774-1.354 4.303.108.11.205.219.292.329.44.56.597 1.113.577 1.66-.016.461-.13 1.154-.59 1.753-.481.628-1.27 1.057-2.437 1.086-1.181.03-2.006-.394-2.52-1.02a2.93 2.93 0 0 1-.646-1.817.65.65 0 1 1 1.3 0c0 .276.093.678.35.992.235.285.66.566 1.483.545.837-.02 1.232-.307 1.439-.578.23-.3.31-.687.322-1.006.008-.233-.044-.486-.3-.811-.274-.349-.784-.78-1.713-1.308-1.993-1.13-3.05-2.381-3.284-3.648-.198-1.073-.047-2.774 1.353-4.303a3.944 3.944 0 0 1-.291-.329c-.441-.56-.598-1.113-.578-1.66.016-.461.13-1.154.59-1.753.481-.628 1.27-1.057 2.438-1.086 1.18-.03 2.005.394 2.519 1.02Zm-.229 7.868c.137.744.051 2.041-1.088 3.247-.237-.16-.499-.32-.788-.485-1.856-1.053-2.517-2.042-2.648-2.754-.137-.744-.05-2.04 1.088-3.247.237.16.499.321.788.485 1.856 1.053 2.517 2.042 2.648 2.754Z"}),e.createElement("path",{fillRule:"evenodd",d:"M37.288 40.64H10.712V7.864h26.576V40.64Zm-1.276-1.276H11.988V9.14H26.25l9.75.012.012 9.738v20.474Z"}));return r({size:t,isHovered:l,normal:a,normalHover:m})};export{u as default};
2
2
  //# sourceMappingURL=LegalDocument.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"LegalDocument.js","sources":["../../../src/components/Icons/LegalDocument.tsx"],"sourcesContent":["import React from 'react';\n\nimport { SvgPathProps, getIcon } from './Icon';\n\nconst LegalDocument: React.FC<SvgPathProps> = ({ size, isHovered }: SvgPathProps): React.ReactElement => {\n const normal = (\n <>\n <path\n fillRule=\"evenodd\"\n d=\"M22.452 18.623a2.93 2.93 0 0 1 .646 1.817.65.65 0 1 1-1.3 0 1.63 1.63 0 0 0-.35-.991c-.235-.286-.66-.566-1.483-.545-.837.02-1.231.307-1.439.578-.23.3-.31.687-.322 1.006-.008.233.045.486.3.811.274.349.785.78 1.713 1.308 1.993 1.13 3.051 2.381 3.285 3.648.198 1.073.046 2.774-1.354 4.303.108.11.205.219.292.329.44.56.597 1.113.577 1.66-.016.461-.13 1.155-.59 1.753-.48.628-1.27 1.057-2.437 1.086-1.181.03-2.006-.394-2.52-1.02a2.93 2.93 0 0 1-.645-1.816.65.65 0 1 1 1.3 0c0 .275.092.677.35.991.234.285.66.566 1.482.545.837-.02 1.232-.307 1.44-.578.23-.3.31-.687.321-1.006.008-.233-.044-.486-.3-.812-.274-.348-.784-.78-1.713-1.307-1.992-1.13-3.05-2.381-3.284-3.648-.198-1.073-.047-2.774 1.353-4.303a3.946 3.946 0 0 1-.291-.329c-.441-.56-.597-1.113-.578-1.66.016-.461.13-1.155.59-1.753.481-.628 1.27-1.057 2.438-1.086 1.18-.03 2.005.394 2.52 1.02Zm-.229 7.868c.137.744.051 2.04-1.088 3.247-.236-.16-.499-.321-.788-.485-1.855-1.053-2.517-2.042-2.648-2.754-.137-.744-.05-2.041 1.088-3.247.237.16.499.321.788.485 1.856 1.053 2.517 2.042 2.648 2.754Z\"\n fill=\"#000\"\n />\n <path\n fillRule=\"evenodd\"\n d=\"M37.288 40.64H10.712V7.864h13.454a5 5 0 0 1 3.551 1.48l8.123 8.196a5 5 0 0 1 1.448 3.52v19.58Zm-1.276-1.276H11.988V9.14h12.264a2 2 0 0 1 2 1.998l.01 7.752h7.75a2 2 0 0 1 2 2v18.474ZM27.323 17.88h7.143l-7.143-7.225v7.225Z\"\n fill=\"#000\"\n />\n </>\n );\n\n const normalHover = (\n <>\n <path\n fillRule=\"evenodd\"\n d=\"M22.452 18.622a2.93 2.93 0 0 1 .646 1.817.65.65 0 1 1-1.3 0 1.63 1.63 0 0 0-.35-.991c-.235-.285-.66-.566-1.483-.545-.837.02-1.232.307-1.439.578-.23.3-.31.687-.322 1.006-.008.233.044.487.3.812.274.348.784.78 1.713 1.307 1.993 1.13 3.051 2.381 3.285 3.648.197 1.073.046 2.774-1.354 4.303.108.11.205.219.292.329.44.56.597 1.113.577 1.66-.016.461-.13 1.154-.59 1.753-.481.628-1.27 1.057-2.437 1.086-1.181.03-2.006-.394-2.52-1.02a2.93 2.93 0 0 1-.646-1.817.65.65 0 1 1 1.3 0c0 .276.093.678.35.992.235.285.66.566 1.483.545.837-.02 1.232-.307 1.439-.578.23-.3.31-.687.322-1.006.008-.233-.044-.486-.3-.811-.274-.349-.784-.78-1.713-1.308-1.993-1.13-3.05-2.381-3.284-3.648-.198-1.073-.047-2.774 1.353-4.303a3.944 3.944 0 0 1-.291-.329c-.441-.56-.598-1.113-.578-1.66.016-.461.13-1.154.59-1.753.481-.628 1.27-1.057 2.438-1.086 1.18-.03 2.005.394 2.519 1.02Zm-.229 7.868c.137.744.051 2.041-1.088 3.247-.237-.16-.499-.32-.788-.485-1.856-1.053-2.517-2.042-2.648-2.754-.137-.744-.05-2.04 1.088-3.247.237.16.499.321.788.485 1.856 1.053 2.517 2.042 2.648 2.754Z\"\n fill=\"#000\"\n />\n <path\n fillRule=\"evenodd\"\n d=\"M37.288 40.64H10.712V7.864h26.576V40.64Zm-1.276-1.276H11.988V9.14H26.25l9.75.012.012 9.738v20.474Z\"\n fill=\"#000\"\n />\n </>\n );\n\n return getIcon({ size, isHovered, normal, normalHover });\n};\n\nexport default LegalDocument;\n"],"names":["LegalDocument","size","isHovered","normal","React","normalHover","getIcon"],"mappings":"+LAIA,MAAMA,EAAwC,CAAC,CAAE,KAAAC,EAAM,UAAAC,KAAkD,CACvG,MAAMC,EAEFC,EAAA,cAAAA,EAAA,SAAA,KAAAA,EAAA,cAAC,OAAA,CACC,SAAS,UACT,EAAE,ohCACF,KAAK,MAAA,CAEP,EAAAA,EAAA,cAAC,OAAA,CACC,SAAS,UACT,EAAE,+NACF,KAAK,MAAA,CAAA,CAET,EAGIC,EAEFD,EAAA,cAAAA,EAAA,SAAA,KAAAA,EAAA,cAAC,OAAA,CACC,SAAS,UACT,EAAE,shCACF,KAAK,MAAA,CAEP,EAAAA,EAAA,cAAC,OAAA,CACC,SAAS,UACT,EAAE,qGACF,KAAK,MAAA,CAAA,CAET,EAGF,OAAOE,EAAQ,CAAE,KAAAL,EAAM,UAAAC,EAAW,OAAAC,EAAQ,YAAAE,EAAa,CACzD"}
1
+ {"version":3,"file":"LegalDocument.js","sources":["../../../src/components/Icons/LegalDocument.tsx"],"sourcesContent":["import React from 'react';\n\nimport { SvgPathProps, getIcon } from './Icon';\n\nconst LegalDocument: React.FC<SvgPathProps> = ({ size, isHovered }: SvgPathProps): React.ReactElement => {\n const normal = (\n <>\n <path\n fillRule=\"evenodd\"\n d=\"M22.452 18.623a2.93 2.93 0 0 1 .646 1.817.65.65 0 1 1-1.3 0 1.63 1.63 0 0 0-.35-.991c-.235-.286-.66-.566-1.483-.545-.837.02-1.231.307-1.439.578-.23.3-.31.687-.322 1.006-.008.233.045.486.3.811.274.349.785.78 1.713 1.308 1.993 1.13 3.051 2.381 3.285 3.648.198 1.073.046 2.774-1.354 4.303.108.11.205.219.292.329.44.56.597 1.113.577 1.66-.016.461-.13 1.155-.59 1.753-.48.628-1.27 1.057-2.437 1.086-1.181.03-2.006-.394-2.52-1.02a2.93 2.93 0 0 1-.645-1.816.65.65 0 1 1 1.3 0c0 .275.092.677.35.991.234.285.66.566 1.482.545.837-.02 1.232-.307 1.44-.578.23-.3.31-.687.321-1.006.008-.233-.044-.486-.3-.812-.274-.348-.784-.78-1.713-1.307-1.992-1.13-3.05-2.381-3.284-3.648-.198-1.073-.047-2.774 1.353-4.303a3.946 3.946 0 0 1-.291-.329c-.441-.56-.597-1.113-.578-1.66.016-.461.13-1.155.59-1.753.481-.628 1.27-1.057 2.438-1.086 1.18-.03 2.005.394 2.52 1.02Zm-.229 7.868c.137.744.051 2.04-1.088 3.247-.236-.16-.499-.321-.788-.485-1.855-1.053-2.517-2.042-2.648-2.754-.137-.744-.05-2.041 1.088-3.247.237.16.499.321.788.485 1.856 1.053 2.517 2.042 2.648 2.754Z\"\n />\n <path\n fillRule=\"evenodd\"\n d=\"M37.288 40.64H10.712V7.864h13.454a5 5 0 0 1 3.551 1.48l8.123 8.196a5 5 0 0 1 1.448 3.52v19.58Zm-1.276-1.276H11.988V9.14h12.264a2 2 0 0 1 2 1.998l.01 7.752h7.75a2 2 0 0 1 2 2v18.474ZM27.323 17.88h7.143l-7.143-7.225v7.225Z\"\n />\n </>\n );\n\n const normalHover = (\n <>\n <path\n fillRule=\"evenodd\"\n d=\"M22.452 18.622a2.93 2.93 0 0 1 .646 1.817.65.65 0 1 1-1.3 0 1.63 1.63 0 0 0-.35-.991c-.235-.285-.66-.566-1.483-.545-.837.02-1.232.307-1.439.578-.23.3-.31.687-.322 1.006-.008.233.044.487.3.812.274.348.784.78 1.713 1.307 1.993 1.13 3.051 2.381 3.285 3.648.197 1.073.046 2.774-1.354 4.303.108.11.205.219.292.329.44.56.597 1.113.577 1.66-.016.461-.13 1.154-.59 1.753-.481.628-1.27 1.057-2.437 1.086-1.181.03-2.006-.394-2.52-1.02a2.93 2.93 0 0 1-.646-1.817.65.65 0 1 1 1.3 0c0 .276.093.678.35.992.235.285.66.566 1.483.545.837-.02 1.232-.307 1.439-.578.23-.3.31-.687.322-1.006.008-.233-.044-.486-.3-.811-.274-.349-.784-.78-1.713-1.308-1.993-1.13-3.05-2.381-3.284-3.648-.198-1.073-.047-2.774 1.353-4.303a3.944 3.944 0 0 1-.291-.329c-.441-.56-.598-1.113-.578-1.66.016-.461.13-1.154.59-1.753.481-.628 1.27-1.057 2.438-1.086 1.18-.03 2.005.394 2.519 1.02Zm-.229 7.868c.137.744.051 2.041-1.088 3.247-.237-.16-.499-.32-.788-.485-1.856-1.053-2.517-2.042-2.648-2.754-.137-.744-.05-2.04 1.088-3.247.237.16.499.321.788.485 1.856 1.053 2.517 2.042 2.648 2.754Z\"\n />\n <path fillRule=\"evenodd\" d=\"M37.288 40.64H10.712V7.864h26.576V40.64Zm-1.276-1.276H11.988V9.14H26.25l9.75.012.012 9.738v20.474Z\" />\n </>\n );\n\n return getIcon({ size, isHovered, normal, normalHover });\n};\n\nexport default LegalDocument;\n"],"names":["LegalDocument","size","isHovered","normal","React","normalHover","getIcon"],"mappings":"+LAIA,MAAMA,EAAwC,CAAC,CAAE,KAAAC,EAAM,UAAAC,KAAkD,CACvG,MAAMC,EAEFC,EAAA,cAAAA,EAAA,SAAA,KAAAA,EAAA,cAAC,OAAA,CACC,SAAS,UACT,EAAE,mhCAAA,CAEJ,EAAAA,EAAA,cAAC,OAAA,CACC,SAAS,UACT,EAAE,8NAAA,CAAA,CAEN,EAGIC,EAEFD,EAAA,cAAAA,EAAA,SAAA,KAAAA,EAAA,cAAC,OAAA,CACC,SAAS,UACT,EAAE,qhCAAA,CAAA,EAEHA,EAAA,cAAA,OAAA,CAAK,SAAS,UAAU,EAAE,oGAAqG,CAAA,CAClI,EAGF,OAAOE,EAAQ,CAAE,KAAAL,EAAM,UAAAC,EAAW,OAAAC,EAAQ,YAAAE,EAAa,CACzD"}
@@ -45,7 +45,7 @@
45
45
  cursor: pointer;
46
46
 
47
47
  &:focus-within {
48
- box-shadow: 0 0 0 0.1rem $black;
48
+ outline: 0.15rem solid $black;
49
49
  }
50
50
 
51
51
  &::after {
@@ -235,7 +235,7 @@ table .table-body .table-row {
235
235
  @media (min-width: map.get($grid-breakpoints, sm)) {
236
236
  padding: getSpacer(s) getSpacer(3xs) getSpacer(3xs) getSpacer(3xs);
237
237
  line-height: 20px;
238
- font-size: 16px;
238
+ font-size: $font-size-xs;
239
239
  height: unset;
240
240
  }
241
241
  }
@@ -274,9 +274,11 @@ table .table-body .table-row {
274
274
 
275
275
  &--compact {
276
276
  padding: getSpacer(4xs) getSpacer(3xs);
277
+ font-size: 14px;
277
278
 
278
279
  @media (min-width: map.get($grid-breakpoints, sm)) {
279
280
  padding: getSpacer(3xs);
281
+ font-size: $font-size-xs;
280
282
  }
281
283
  }
282
284
  }
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "url": "https://github.com/helsenorge/designsystem"
8
8
  },
9
9
  "homepage": "https://helsenorge.design",
10
- "version": "4.1.0",
10
+ "version": "4.1.1",
11
11
  "author": "Helsenorge",
12
12
  "license": "MIT",
13
13
  "peerDependencies": {