@sikt/sds-pagination 1.0.2 → 2.0.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 ADDED
@@ -0,0 +1,81 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.
4
+
5
+ ## [2.0.1](https://gitlab.sikt.no/designsystem/sds-komponentbibliotek/compare/@sikt/sds-pagination@2.0.0...@sikt/sds-pagination@2.0.1) (2024-11-20)
6
+
7
+ ### Bug Fixes
8
+
9
+ - **deps:** change peer deps clsx to ^2.1.0 ([9eb76f1](https://gitlab.sikt.no/designsystem/sds-komponentbibliotek/commit/9eb76f1207a2ec8d19fda646c9bc26d5922b1839))
10
+ - **deps:** correct deps on @sikt/sds-tokens ([b47f8a4](https://gitlab.sikt.no/designsystem/sds-komponentbibliotek/commit/b47f8a4d27e99dcc731036ccf2b7b58a27d88da6))
11
+ - **deps:** peer deps react@19.0.0 ([17352e2](https://gitlab.sikt.no/designsystem/sds-komponentbibliotek/commit/17352e291153f79c66a9de317ca42820159aee8a))
12
+ - **deps:** update @sikt/sds-core@4.1.1 & @sikt/sds-icons@2.0.2 ([09e97cf](https://gitlab.sikt.no/designsystem/sds-komponentbibliotek/commit/09e97cfe35780cc239ae2b7f55f4e793ec72e479))
13
+ - package json exports ([b62fed7](https://gitlab.sikt.no/designsystem/sds-komponentbibliotek/commit/b62fed7bfa459c618c016f39c960dffda037155f))
14
+
15
+ ## [2.0.0](https://gitlab.sikt.no/designsystem/sds-komponentbibliotek/compare/@sikt/sds-pagination@1.0.2...@sikt/sds-pagination@2.0.0) (2023-10-28)
16
+
17
+ ### ⚠ BREAKING CHANGES
18
+
19
+ - **tokens:** add new tokens to pagination package
20
+
21
+ ### Features
22
+
23
+ - **tokens:** add new tokens to pagination package ([62500ff](https://gitlab.sikt.no/designsystem/sds-komponentbibliotek/commit/62500ff8b6ecd471c20e5e2e5e479c24b29b5bee))
24
+
25
+ ### [1.0.2](https://gitlab.sikt.no/designsystem/sds-komponentbibliotek/compare/@sikt/sds-pagination@1.0.1...@sikt/sds-pagination@1.0.2) (2023-07-04)
26
+
27
+ ### Bug Fixes
28
+
29
+ - **pagination:** remove circle around ellipsis ([40bd406](https://gitlab.sikt.no/designsystem/sds-komponentbibliotek/commit/40bd40648ad44208d2305e721246951636277519))
30
+
31
+ ### [1.0.1](https://gitlab.sikt.no/designsystem/sds-komponentbibliotek/compare/@sikt/sds-pagination@1.0.0...@sikt/sds-pagination@1.0.1) (2023-04-29)
32
+
33
+ ## [1.0.0](https://gitlab.sikt.no/designsystem/sds-komponentbibliotek/compare/@sikt/sds-pagination@0.2.1...@sikt/sds-pagination@1.0.0) (2023-04-13)
34
+
35
+ ### ⚠ BREAKING CHANGES
36
+
37
+ - **pagination:** change aria-label prop syntax
38
+
39
+ ### Features
40
+
41
+ - **pagination:** update to new icons ([c9e70c6](https://gitlab.sikt.no/designsystem/sds-komponentbibliotek/commit/c9e70c639552c7aa6d0118f29b43e107cf03fb0d))
42
+
43
+ ### Bug Fixes
44
+
45
+ - **deps:** update sds-core to version 1 ([0e6e326](https://gitlab.sikt.no/designsystem/sds-komponentbibliotek/commit/0e6e3260dd1bd7cbfcfa35b708ffe921ac0bceef))
46
+ - **tabs:** change default for select on focus to false ([228677f](https://gitlab.sikt.no/designsystem/sds-komponentbibliotek/commit/228677fb618020baf489e4bcd8986e75aaa484dc))
47
+
48
+ - **pagination:** change aria-label prop syntax ([0dc8fd1](https://gitlab.sikt.no/designsystem/sds-komponentbibliotek/commit/0dc8fd1a218549d1812143384e69877ca490cfe1))
49
+
50
+ ### [0.2.1](https://gitlab.sikt.no/designsystem/sds-komponentbibliotek/compare/@sikt/sds-pagination@0.2.0...@sikt/sds-pagination@0.2.1) (2023-03-07)
51
+
52
+ ### Bug Fixes
53
+
54
+ - **pagination:** update to working version of icons ([bced6ff](https://gitlab.sikt.no/designsystem/sds-komponentbibliotek/commit/bced6ff8e72b117150ba9dc251f6b1b3b72724b6))
55
+ - update deps ([95e59df](https://gitlab.sikt.no/designsystem/sds-komponentbibliotek/commit/95e59dfebe4e1df4881b7e4a40563f5357c1d794))
56
+
57
+ ## [0.2.0](https://gitlab.sikt.no/designsystem/sds-komponentbibliotek/compare/@sikt/sds-pagination@0.1.0...@sikt/sds-pagination@0.2.0) (2023-03-06)
58
+
59
+ ### ⚠ BREAKING CHANGES
60
+
61
+ - change token system
62
+
63
+ ### Features
64
+
65
+ - change token system ([479483a](https://gitlab.sikt.no/designsystem/sds-komponentbibliotek/commit/479483a9f7d8b21cd4fb2ecdb26d362c30c0b32e)), closes [#16](https://gitlab.sikt.no/designsystem/sds-komponentbibliotek/issues/16)
66
+
67
+ ### Bug Fixes
68
+
69
+ - **pagination:** correct Icon import ([843e79a](https://gitlab.sikt.no/designsystem/sds-komponentbibliotek/commit/843e79aa79aba73589125a7726808d3eac68ec96)), closes [#59](https://gitlab.sikt.no/designsystem/sds-komponentbibliotek/issues/59)
70
+ - update deps ([2b611c9](https://gitlab.sikt.no/designsystem/sds-komponentbibliotek/commit/2b611c9c6ec159128563c42b2445110b884c5d1f))
71
+
72
+ ## 0.1.0 (2023-02-09)
73
+
74
+ ### ⚠ BREAKING CHANGES
75
+
76
+ - change tokens
77
+
78
+ ### Features
79
+
80
+ - change tokens ([0df603c](https://gitlab.sikt.no/designsystem/sds-komponentbibliotek/commit/0df603c5dcfcb3f22f1492c03e1260e1abc8999a))
81
+ - **pagination:** add package ([6aaeb44](https://gitlab.sikt.no/designsystem/sds-komponentbibliotek/commit/6aaeb4440cb3bbfb4a6c7a13ea908ed93c2d0092))
package/dist/index.css CHANGED
@@ -1,2 +1,68 @@
1
- .sds-pagination{--pagination-background-color:#0000;--pagination-border-color:var(--sds-color-surface-action)}.sds-pagination__list-item{align-items:center;display:inline-flex;justify-content:center;margin-right:var(--sds-size-base-s)}.sds-pagination__list-item:last-of-type{margin-right:0}.sds-pagination__button{align-items:center;background-color:var(--pagination-background-color);border:var(--sds-border-size-regular) solid var(--pagination-border-color);border-radius:var(--sds-border-radius-full);color:var(--sds-color-text-default);cursor:pointer;display:inline-flex;font-size:var(--sds-size-text-s2);height:var(--sds-size-text-l);justify-content:center;line-height:var(--sds-size-text-m);padding:0;text-align:center;width:var(--sds-size-text-l)}.sds-pagination__button:hover{--pagination-border-color:var(--sds-color-surface-action-hover)}.sds-pagination__button:focus-visible{--pagination-border-color:#0000;outline:var(--sds-size-base-xxs) dashed var(--sds-color-text-info)}.sds-pagination__button:active{--pagination-border-color:var(--sds-color-surface-action-active)}.sds-pagination__button[aria-current]{--pagination-background-color:var(--sds-color-surface-action);color:var(--sds-color-text-onsurface-action)}.sds-pagination__button--spacer{padding:var(--sds-size-padding-small)}.sds-pagination__button--spacer,.sds-pagination__button[aria-current],.sds-pagination__button[disabled]{cursor:inherit}.sds-pagination__button--spacer:active,.sds-pagination__button--spacer:focus-visible,.sds-pagination__button--spacer:hover,.sds-pagination__button[aria-current]:active,.sds-pagination__button[aria-current]:focus-visible,.sds-pagination__button[aria-current]:hover,.sds-pagination__button[disabled]:active,.sds-pagination__button[disabled]:focus-visible,.sds-pagination__button[disabled]:hover{--pagination-border-color:var(--sds-color-surface-action)}
1
+ /* src/pagination.pcss */
2
+ .sds-pagination {
3
+ --pagination-background-color: var( --sds-color-interaction-primary-subtle-default );
4
+ --pagination-color: var(--sds-color-text-primary);
5
+ }
6
+ .sds-pagination__list-item {
7
+ align-items: center;
8
+ display: inline-flex;
9
+ gap: var(--sds-space-gap-small);
10
+ justify-content: center;
11
+ }
12
+ .sds-pagination__button {
13
+ align-items: center;
14
+ display: flex;
15
+ justify-content: center;
16
+ background-color: var(--pagination-background-color);
17
+ border: none;
18
+ border-radius: var(--sds-space-border-radius-full);
19
+ color: var(--pagination-color);
20
+ cursor: pointer;
21
+ font-size: var(--sds-typography-body-fontsize-large);
22
+ line-height: var(--sds-typography-body-lineheight-large);
23
+ text-align: center;
24
+ width: var(--sds-base-size-l);
25
+ height: var(--sds-base-size-l);
26
+ padding: 0;
27
+ }
28
+ .sds-pagination__button:hover,
29
+ .sds-pagination__button:focus-visible {
30
+ --pagination-background-color: var( --sds-color-interaction-primary-subtle-highlight );
31
+ }
32
+ .sds-pagination__button:focus-visible {
33
+ outline: var(--sds-focus-outline);
34
+ }
35
+ .sds-pagination__button:active {
36
+ --pagination-background-color: var( --sds-color-interaction-primary-subtle-pressed );
37
+ }
38
+ .sds-pagination__button--spacer {
39
+ align-items: center;
40
+ display: flex;
41
+ justify-content: center;
42
+ width: var(--sds-base-size-m);
43
+ height: var(--sds-base-size-m);
44
+ }
45
+ .sds-pagination__button[disabled],
46
+ .sds-pagination__button--spacer {
47
+ --pagination-background-color: initial;
48
+ cursor: inherit;
49
+ }
50
+ .sds-pagination__button[disabled]:active,
51
+ .sds-pagination__button[disabled]:hover,
52
+ .sds-pagination__button[disabled]:focus-visible,
53
+ .sds-pagination__button--spacer:active,
54
+ .sds-pagination__button--spacer:hover,
55
+ .sds-pagination__button--spacer:focus-visible {
56
+ --pagination-background-color: initial;
57
+ }
58
+ .sds-pagination__button[aria-current] {
59
+ --pagination-background-color: var( --sds-color-interaction-primary-strong-default );
60
+ --pagination-color: var(--sds-color-text-on-strong);
61
+ cursor: inherit;
62
+ }
63
+ .sds-pagination__button[aria-current]:active,
64
+ .sds-pagination__button[aria-current]:hover,
65
+ .sds-pagination__button[aria-current]:focus-visible {
66
+ --pagination-background-color: var( --sds-color-interaction-primary-strong-default );
67
+ }
2
68
  /*# sourceMappingURL=index.css.map */
@@ -1 +1 @@
1
- {"version":3,"sources":["pagination.pcss"],"names":[],"mappings":"AAAA,gBACE,mCAA0C,CAC1C,yDAiEF,CA/DE,2BACE,kBAAmB,CACnB,mBAAoB,CACpB,sBAAuB,CACvB,mCAKF,CAHE,wCACE,cACF,CAGF,wBACE,kBAAmB,CAGnB,mDAAoD,CACpD,0EAA2E,CAC3E,2CAA4C,CAC5C,mCAAoC,CACpC,cAAe,CANf,mBAAoB,CAOpB,iCAAkC,CAIlC,6BAA8B,CAV9B,sBAAuB,CAOvB,kCAAmC,CAInC,SAAU,CAHV,iBAAkB,CAClB,4BAuCF,CAnCE,8BACE,+DACF,CAEA,sCACE,+BAAsC,CAEtC,kEACF,CAEA,+BACE,gEACF,CAEA,sCACE,6DAA8D,CAE9D,4CACF,CAEA,gCACE,qCACF,CAEA,wGAGE,cAOF,CALE,yYAGE,yDACF","file":"index.css","sourcesContent":[".sds-pagination {\n --pagination-background-color: transparent;\n --pagination-border-color: var(--sds-color-surface-action);\n\n &__list-item {\n align-items: center;\n display: inline-flex;\n justify-content: center;\n margin-right: var(--sds-size-base-s);\n\n &:last-of-type {\n margin-right: 0;\n }\n }\n\n &__button {\n align-items: center;\n display: inline-flex;\n justify-content: center;\n background-color: var(--pagination-background-color);\n border: var(--sds-border-size-regular) solid var(--pagination-border-color);\n border-radius: var(--sds-border-radius-full);\n color: var(--sds-color-text-default);\n cursor: pointer;\n font-size: var(--sds-size-text-s2);\n line-height: var(--sds-size-text-m);\n text-align: center;\n width: var(--sds-size-text-l);\n height: var(--sds-size-text-l);\n padding: 0;\n\n &:hover {\n --pagination-border-color: var(--sds-color-surface-action-hover);\n }\n\n &:focus-visible {\n --pagination-border-color: transparent;\n\n outline: var(--sds-size-base-xxs) dashed var(--sds-color-text-info);\n }\n\n &:active {\n --pagination-border-color: var(--sds-color-surface-action-active);\n }\n\n &[aria-current] {\n --pagination-background-color: var(--sds-color-surface-action);\n\n color: var(--sds-color-text-onsurface-action);\n }\n\n &--spacer {\n padding: var(--sds-size-padding-small);\n }\n\n &[aria-current],\n &[disabled],\n &--spacer {\n cursor: inherit;\n\n &:active,\n &:hover,\n &:focus-visible {\n --pagination-border-color: var(--sds-color-surface-action);\n }\n }\n }\n}\n"]}
1
+ {"version":3,"sources":["../src/pagination.pcss"],"sourcesContent":[".sds-pagination {\n --pagination-background-color: var(\n --sds-color-interaction-primary-subtle-default\n );\n --pagination-color: var(--sds-color-text-primary);\n}\n\n .sds-pagination__list-item {\n align-items: center;\n display: inline-flex;\n gap: var(--sds-space-gap-small);\n justify-content: center;\n }\n\n .sds-pagination__button {\n align-items: center;\n display: flex;\n justify-content: center;\n background-color: var(--pagination-background-color);\n border: none;\n border-radius: var(--sds-space-border-radius-full);\n color: var(--pagination-color);\n cursor: pointer;\n font-size: var(--sds-typography-body-fontsize-large);\n line-height: var(--sds-typography-body-lineheight-large);\n text-align: center;\n width: var(--sds-base-size-l);\n height: var(--sds-base-size-l);\n padding: 0;\n }\n\n .sds-pagination__button:hover,\n .sds-pagination__button:focus-visible {\n --pagination-background-color: var(\n --sds-color-interaction-primary-subtle-highlight\n );\n }\n\n .sds-pagination__button:focus-visible {\n outline: var(--sds-focus-outline);\n }\n\n .sds-pagination__button:active {\n --pagination-background-color: var(\n --sds-color-interaction-primary-subtle-pressed\n );\n }\n\n .sds-pagination__button--spacer {\n align-items: center;\n display: flex;\n justify-content: center;\n width: var(--sds-base-size-m);\n height: var(--sds-base-size-m);\n }\n\n .sds-pagination__button[disabled],\n .sds-pagination__button--spacer {\n --pagination-background-color: initial;\n\n cursor: inherit;\n }\n\n .sds-pagination__button[disabled]:active,\n .sds-pagination__button[disabled]:hover,\n .sds-pagination__button[disabled]:focus-visible,\n .sds-pagination__button--spacer:active,\n .sds-pagination__button--spacer:hover,\n .sds-pagination__button--spacer:focus-visible {\n --pagination-background-color: initial;\n }\n\n .sds-pagination__button[aria-current] {\n --pagination-background-color: var(\n --sds-color-interaction-primary-strong-default\n );\n --pagination-color: var(--sds-color-text-on-strong);\n\n cursor: inherit;\n }\n\n .sds-pagination__button[aria-current]:active,\n .sds-pagination__button[aria-current]:hover,\n .sds-pagination__button[aria-current]:focus-visible {\n --pagination-background-color: var(\n --sds-color-interaction-primary-strong-default\n );\n }\n"],"mappings":";AAAA,CAAC;AACC,iCAA+B,KAC7B;AAEF,sBAAoB,IAAI;AAC1B;AAEE,CAAC;AACC,eAAa;AACb,WAAS;AACT,OAAK,IAAI;AACT,mBAAiB;AACnB;AAEA,CAAC;AACC,eAAa;AACb,WAAS;AACT,mBAAiB;AACjB,oBAAkB,IAAI;AACtB,UAAQ;AACR,iBAAe,IAAI;AACnB,SAAO,IAAI;AACX,UAAQ;AACR,aAAW,IAAI;AACf,eAAa,IAAI;AACjB,cAAY;AACZ,SAAO,IAAI;AACX,UAAQ,IAAI;AACZ,WAAS;AACX;AAEA,CAjBC,sBAiBsB;AACrB,CAlBD,sBAkBwB;AACrB,iCAA+B,KAC7B;AAEJ;AAEF,CAxBC,sBAwBsB;AACnB,WAAS,IAAI;AACf;AAEF,CA5BC,sBA4BsB;AACnB,iCAA+B,KAC7B;AAEJ;AAEF,CAAC;AACG,eAAa;AACb,WAAS;AACT,mBAAiB;AACjB,SAAO,IAAI;AACX,UAAQ,IAAI;AACd;AAEF,CA1CC,sBA0CsB,CAAC;AACtB,CATD;AAUG,iCAA+B;AAE/B,UAAQ;AACV;AAEF,CAjDC,sBAiDsB,CAAC,SAAS;AAC7B,CAlDH,sBAkD0B,CAAC,SAAS;AACjC,CAnDH,sBAmD0B,CAAC,SAAS;AACjC,CAlBH,8BAkBkC;AAC/B,CAnBH,8BAmBkC;AAC/B,CApBH,8BAoBkC;AAC7B,iCAA+B;AACjC;AAEJ,CA1DC,sBA0DsB,CAAC;AACpB,iCAA+B,KAC7B;AAEF,sBAAoB,IAAI;AAExB,UAAQ;AACV;AAEF,CAnEC,sBAmEsB,CAAC,aAAa;AACjC,CApEH,sBAoE0B,CAAC,aAAa;AACrC,CArEH,sBAqE0B,CAAC,aAAa;AACnC,iCAA+B,KAC7B;AAEJ;","names":[]}
@@ -1,5 +1,6 @@
1
- /// <reference types="react" />
2
- import { HTMLAttributes } from "react";
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { HTMLAttributes } from 'react';
3
+
3
4
  interface PaginationProps extends HTMLAttributes<HTMLElement> {
4
5
  "aria-label": string;
5
6
  ariaLabelPrevious?: string;
@@ -12,6 +13,6 @@ interface PaginationProps extends HTMLAttributes<HTMLElement> {
12
13
  handleClick: (index: number) => void;
13
14
  className?: string;
14
15
  }
15
- declare const Pagination: ({ "aria-label": ariaLabel, ariaLabelNext, ariaLabelPrevious, ariaLabelItem, count, currentIndex, limit, handleClick, className, ...rest }: PaginationProps) => import("react/jsx-runtime").JSX.Element;
16
- export type { PaginationProps };
17
- export { Pagination };
16
+ declare const Pagination: ({ "aria-label": ariaLabel, ariaLabelNext, ariaLabelPrevious, ariaLabelItem, count, currentIndex, limit, handleClick, className, ...rest }: PaginationProps) => react_jsx_runtime.JSX.Element;
17
+
18
+ export { Pagination, type PaginationProps };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
- /// <reference types="react" />
2
- import { HTMLAttributes } from "react";
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { HTMLAttributes } from 'react';
3
+
3
4
  interface PaginationProps extends HTMLAttributes<HTMLElement> {
4
5
  "aria-label": string;
5
6
  ariaLabelPrevious?: string;
@@ -12,6 +13,6 @@ interface PaginationProps extends HTMLAttributes<HTMLElement> {
12
13
  handleClick: (index: number) => void;
13
14
  className?: string;
14
15
  }
15
- declare const Pagination: ({ "aria-label": ariaLabel, ariaLabelNext, ariaLabelPrevious, ariaLabelItem, count, currentIndex, limit, handleClick, className, ...rest }: PaginationProps) => import("react/jsx-runtime").JSX.Element;
16
- export type { PaginationProps };
17
- export { Pagination };
16
+ declare const Pagination: ({ "aria-label": ariaLabel, ariaLabelNext, ariaLabelPrevious, ariaLabelItem, count, currentIndex, limit, handleClick, className, ...rest }: PaginationProps) => react_jsx_runtime.JSX.Element;
17
+
18
+ export { Pagination, type PaginationProps };
package/dist/index.js CHANGED
@@ -1,2 +1 @@
1
- import{jsx as a,jsxs as i}from"react/jsx-runtime";import s,{clsx as l}from"clsx";const e=({className:i,...l})=>a("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 256 256",className:s("sds-icon",i),"aria-hidden":"true",...l,children:a("path",{d:"M165.66 202.34a8 8 0 0 1-11.32 11.32l-80-80a8 8 0 0 1 0-11.32l80-80a8 8 0 0 1 11.32 11.32L91.31 128Z"})}),n=({className:i,...l})=>a("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 256 256",className:s("sds-icon",i),"aria-hidden":"true",...l,children:a("path",{d:"m181.66 133.66-80 80a8 8 0 0 1-11.32-11.32L164.69 128 90.34 53.66a8 8 0 0 1 11.32-11.32l80 80a8 8 0 0 1 0 11.32Z"})}),t=({"aria-label":s,ariaLabelNext:t="Vis neste side",ariaLabelPrevious:r="Vis forrige side",ariaLabelItem:c="Vis side",count:d,currentIndex:o,limit:m=7,handleClick:h,className:p,...b})=>{const _=Math.ceil(m/2)-2-1,g=o+_,u=o-_,N=d-1-g-1,v=u-1;let w=d-1>g?g-1:g;w=v<0?w-v:w;let x=1<u?u+1:u;return x=N<0?x+N:x,a("nav",{className:l("sds-pagination",p),"aria-label":s,...b,children:i("ol",{className:"sds-pagination__list",children:[a("li",{className:"sds-pagination__list-item",children:a("button",{className:"sds-pagination__button","aria-label":`${r} ${o}`,disabled:0===o,onClick:()=>h(o-1),children:a(e,{})})}),[...Array(d).keys()].map((i=>0===i||i===d-1||i>=x&&i<=w?a("li",{className:"sds-pagination__list-item",children:a("button",{className:"sds-pagination__button","aria-current":i===o||void 0,"aria-label":`${c} ${i+1}`,disabled:i===o,onClick:()=>h(i),children:i+1})},i):i==w+1||i==x-1?a("li",{className:"sds-pagination__list-item",children:a("div",{className:"sds-pagination__button--spacer",children:"…"})},i):void 0)),a("li",{className:"sds-pagination__list-item",children:a("button",{className:"sds-pagination__button","aria-label":`${t} ${o+2}`,disabled:o===d-1,onClick:()=>h(o+1),children:a(n,{})})})]})})};export{t as Pagination};
2
- //# sourceMappingURL=index.js.map
1
+ "use strict";var a=require("@sikt/sds-icons"),e=require("clsx/lite"),i=require("react/jsx-runtime"),s=Object.defineProperty,t=Object.defineProperties,r=Object.getOwnPropertyDescriptors,l=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable,o=(a,e,i)=>e in a?s(a,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):a[e]=i;exports.Pagination=s=>{var d=s,{"aria-label":b,ariaLabelNext:u="Vis neste side",ariaLabelPrevious:m="Vis forrige side",ariaLabelItem:p="Vis side",count:x,currentIndex:j,limit:_=7,handleClick:g,className:f}=d,h=((a,e)=>{var i={};for(var s in a)n.call(a,s)&&e.indexOf(s)<0&&(i[s]=a[s]);if(null!=a&&l)for(var s of l(a))e.indexOf(s)<0&&c.call(a,s)&&(i[s]=a[s]);return i})(d,["aria-label","ariaLabelNext","ariaLabelPrevious","ariaLabelItem","count","currentIndex","limit","handleClick","className"]);const v=Math.ceil(_/2)-2-1,N=j+v,O=j-v,y=x-1-N-1,P=O-1;let k=x-1>N?N-1:N;k=P<0?k-P:k;let C=1<O?O+1:O;return C=y<0?C+y:C,i.jsx("nav",(I=((a,e)=>{for(var i in e||(e={}))n.call(e,i)&&o(a,i,e[i]);if(l)for(var i of l(e))c.call(e,i)&&o(a,i,e[i]);return a})({className:e.clsx("sds-pagination",f),"aria-label":b},h),L={children:i.jsxs("ol",{className:"sds-pagination__list",children:[i.jsx("li",{className:"sds-pagination__list-item",children:i.jsx("button",{className:"sds-pagination__button","aria-label":"".concat(m," ").concat(j),disabled:0===j,onClick:()=>{g(j-1)},children:i.jsx(a.CaretLeftIcon,{})})}),[...Array(x).keys()].map((a=>0===a||a===x-1||a>=C&&a<=k?i.jsx("li",{className:"sds-pagination__list-item",children:i.jsx("button",{className:"sds-pagination__button","aria-current":a===j||void 0,"aria-label":"".concat(p," ").concat(a+1),disabled:a===j,onClick:()=>{g(a)},children:a+1})},a):a==k+1||a==C-1?i.jsx("li",{className:"sds-pagination__list-item",children:i.jsx("div",{className:"sds-pagination__button--spacer",children:"…"})},a):void 0)),i.jsx("li",{className:"sds-pagination__list-item",children:i.jsx("button",{className:"sds-pagination__button","aria-label":"".concat(u," ").concat(j+2),disabled:j===x-1,onClick:()=>{g(j+1)},children:i.jsx(a.CaretRightIcon,{})})})]})},t(I,r(L))));var I,L};//# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../icons/dist/index.js","../Pagination.tsx"],"sourcesContent":["import{jsx as a}from\"react/jsx-runtime\";import s from\"clsx\";const l=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M128 24a104 104 0 1 0 104 104A104.11 104.11 0 0 0 128 24Zm0 192a88 88 0 1 1 88-88 88.1 88.1 0 0 1-88 88Zm48-88a8 8 0 0 1-8 8h-60.69l18.35 18.34a8 8 0 0 1-11.32 11.32l-32-32a8 8 0 0 1 0-11.32l32-32a8 8 0 0 1 11.32 11.32L107.31 120H168a8 8 0 0 1 8 8Z\"})}),e=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M128 24a104 104 0 1 0 104 104A104.11 104.11 0 0 0 128 24Zm0 192a88 88 0 1 1 88-88 88.1 88.1 0 0 1-88 88Zm45.66-93.66a8 8 0 0 1 0 11.32l-32 32a8 8 0 0 1-11.32-11.32L148.69 136H88a8 8 0 0 1 0-16h60.69l-18.35-18.34a8 8 0 0 1 11.32-11.32Z\"})}),r=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M224 128a8 8 0 0 1-8 8H59.31l58.35 58.34a8 8 0 0 1-11.32 11.32l-72-72a8 8 0 0 1 0-11.32l72-72a8 8 0 0 1 11.32 11.32L59.31 120H216a8 8 0 0 1 8 8Z\"})}),i=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"m221.66 133.66-72 72a8 8 0 0 1-11.32-11.32L196.69 136H40a8 8 0 0 1 0-16h156.69l-58.35-58.34a8 8 0 0 1 11.32-11.32l72 72a8 8 0 0 1 0 11.32Z\"})}),c=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M224 104a8 8 0 0 1-16 0V59.32l-66.33 66.34a8 8 0 0 1-11.32-11.32L196.68 48H152a8 8 0 0 1 0-16h64a8 8 0 0 1 8 8Zm-40 24a8 8 0 0 0-8 8v72H48V80h72a8 8 0 0 0 0-16H48a16 16 0 0 0-16 16v128a16 16 0 0 0 16 16h128a16 16 0 0 0 16-16v-72a8 8 0 0 0-8-8Z\"})}),o=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M232 144a64.07 64.07 0 0 1-64 64H80a8 8 0 0 1 0-16h88a48 48 0 0 0 0-96H51.31l34.35 34.34a8 8 0 0 1-11.32 11.32l-48-48a8 8 0 0 1 0-11.32l48-48a8 8 0 0 1 11.32 11.32L51.31 80H168a64.07 64.07 0 0 1 64 64Z\"})}),n=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M170.34 130.34 204.69 96H88a48 48 0 0 0 0 96h88a8 8 0 0 1 0 16H88a64 64 0 0 1 0-128h116.69l-34.35-34.34a8 8 0 0 1 11.32-11.32l48 48a8 8 0 0 1 0 11.32l-48 48a8 8 0 0 1-11.32-11.32Z\"})}),h=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M224 71.1a8 8 0 0 1-10.78-3.42 94.13 94.13 0 0 0-33.46-36.91 8 8 0 1 1 8.54-13.54 111.46 111.46 0 0 1 39.12 43.09A8 8 0 0 1 224 71.1ZM35.71 72a8 8 0 0 0 7.1-4.32 94.13 94.13 0 0 1 33.46-36.91 8 8 0 1 0-8.54-13.54 111.46 111.46 0 0 0-39.12 43.09A8 8 0 0 0 35.71 72Zm186.1 103.94A16 16 0 0 1 208 200h-40.8a40 40 0 0 1-78.4 0H48a16 16 0 0 1-13.79-24.06C43.22 160.39 48 138.28 48 112a80 80 0 0 1 160 0c0 26.27 4.78 48.38 13.81 63.94ZM150.62 200h-45.24a24 24 0 0 0 45.24 0ZM208 184c-10.64-18.27-16-42.49-16-72a64 64 0 0 0-128 0c0 29.52-5.38 53.74-16 72Z\"})}),t=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M221.8 175.94c-5.55-9.56-13.8-36.61-13.8-71.94a80 80 0 1 0-160 0c0 35.34-8.26 62.38-13.81 71.94A16 16 0 0 0 48 200h40.81a40 40 0 0 0 78.38 0H208a16 16 0 0 0 13.8-24.06ZM128 216a24 24 0 0 1-22.62-16h45.24A24 24 0 0 1 128 216Zm-80-32c7.7-13.24 16-43.92 16-80a64 64 0 1 1 128 0c0 36.05 8.28 66.73 16 80Z\"})}),w=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M184 32H72a16 16 0 0 0-16 16v176a8 8 0 0 0 12.24 6.78L128 193.43l59.77 37.35A8 8 0 0 0 200 224V48a16 16 0 0 0-16-16Z\"})}),d=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M184 32H72a16 16 0 0 0-16 16v176a8 8 0 0 0 12.24 6.78L128 193.43l59.77 37.35A8 8 0 0 0 200 224V48a16 16 0 0 0-16-16Zm0 177.57-51.77-32.35a8 8 0 0 0-8.48 0L72 209.57V48h112Z\"})}),m=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M208 32h-24v-8a8 8 0 0 0-16 0v8H88v-8a8 8 0 0 0-16 0v8H48a16 16 0 0 0-16 16v160a16 16 0 0 0 16 16h160a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16ZM72 48v8a8 8 0 0 0 16 0v-8h80v8a8 8 0 0 0 16 0v-8h24v32H48V48Zm136 160H48V96h160v112Z\"})}),v=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M208 32h-24v-8a8 8 0 0 0-16 0v8H88v-8a8 8 0 0 0-16 0v8H48a16 16 0 0 0-16 16v160a16 16 0 0 0 16 16h160a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16ZM72 48v8a8 8 0 0 0 16 0v-8h80v8a8 8 0 0 0 16 0v-8h24v32H48V48Zm136 160H48V96h160v112Zm-48-56a8 8 0 0 1-8 8h-16v16a8 8 0 0 1-16 0v-16h-16a8 8 0 0 1 0-16h16v-16a8 8 0 0 1 16 0v16h16a8 8 0 0 1 8 8Z\"})}),g=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M128 24a104 104 0 1 0 104 104A104.11 104.11 0 0 0 128 24Zm0 192a88 88 0 1 1 88-88 88.1 88.1 0 0 1-88 88Zm45.66-109.66a8 8 0 0 1 0 11.32l-40 40a8 8 0 0 1-11.32 0l-40-40a8 8 0 0 1 11.32-11.32L128 140.69l34.34-34.35a8 8 0 0 1 11.32 0Z\"})}),Z=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M128 24a104 104 0 1 0 104 104A104.11 104.11 0 0 0 128 24Zm0 192a88 88 0 1 1 88-88 88.1 88.1 0 0 1-88 88Zm21.66-122.34L115.31 128l34.35 34.34a8 8 0 0 1-11.32 11.32l-40-40a8 8 0 0 1 0-11.32l40-40a8 8 0 0 1 11.32 11.32Z\"})}),p=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M128 24a104 104 0 1 0 104 104A104.11 104.11 0 0 0 128 24Zm0 192a88 88 0 1 1 88-88 88.1 88.1 0 0 1-88 88Zm29.66-93.66a8 8 0 0 1 0 11.32l-40 40a8 8 0 0 1-11.32-11.32L140.69 128l-34.35-34.34a8 8 0 0 1 11.32-11.32Z\"})}),u=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M128 24a104 104 0 1 0 104 104A104.11 104.11 0 0 0 128 24Zm0 192a88 88 0 1 1 88-88 88.1 88.1 0 0 1-88 88Zm45.66-77.66a8 8 0 0 1-11.32 11.32L128 115.31l-34.34 34.35a8 8 0 0 1-11.32-11.32l40-40a8 8 0 0 1 11.32 0Z\"})}),x=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"m213.66 101.66-80 80a8 8 0 0 1-11.32 0l-80-80a8 8 0 0 1 11.32-11.32L128 164.69l74.34-74.35a8 8 0 0 1 11.32 11.32Z\"})}),N=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M165.66 202.34a8 8 0 0 1-11.32 11.32l-80-80a8 8 0 0 1 0-11.32l80-80a8 8 0 0 1 11.32 11.32L91.31 128Z\"})}),C=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"m181.66 133.66-80 80a8 8 0 0 1-11.32-11.32L164.69 128 90.34 53.66a8 8 0 0 1 11.32-11.32l80 80a8 8 0 0 1 0 11.32Z\"})}),M=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M213.66 165.66a8 8 0 0 1-11.32 0L128 91.31l-74.34 74.35a8 8 0 0 1-11.32-11.32l80-80a8 8 0 0 1 11.32 0l80 80a8 8 0 0 1 0 11.32Z\"})}),H=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M173.66 98.34a8 8 0 0 1 0 11.32l-56 56a8 8 0 0 1-11.32 0l-24-24a8 8 0 0 1 11.32-11.32L112 148.69l50.34-50.35a8 8 0 0 1 11.32 0ZM232 128A104 104 0 1 1 128 24a104.11 104.11 0 0 1 104 104Zm-16 0a88 88 0 1 0-88 88 88.1 88.1 0 0 0 88-88Z\"})}),L=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"m229.66 77.66-128 128a8 8 0 0 1-11.32 0l-56-56a8 8 0 0 1 11.32-11.32L96 188.69 218.34 66.34a8 8 0 0 1 11.32 11.32Z\"})}),f=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M128 24a104 104 0 1 0 104 104A104.11 104.11 0 0 0 128 24Zm0 192a88 88 0 1 1 88-88 88.1 88.1 0 0 1-88 88Z\"})}),B=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M128 24a104 104 0 1 0 104 104A104.11 104.11 0 0 0 128 24Zm0 192a88 88 0 1 1 88-88 88.1 88.1 0 0 1-88 88Zm64-88a8 8 0 0 1-8 8h-56a8 8 0 0 1-8-8V72a8 8 0 0 1 16 0v48h48a8 8 0 0 1 8 8Z\"})}),I=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M216 32H88a8 8 0 0 0-8 8v40H40a8 8 0 0 0-8 8v128a8 8 0 0 0 8 8h128a8 8 0 0 0 8-8v-40h40a8 8 0 0 0 8-8V40a8 8 0 0 0-8-8Zm-56 176H48V96h112Zm48-48h-32V88a8 8 0 0 0-8-8H96V48h112Z\"})}),V=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M104 60a12 12 0 1 1-12-12 12 12 0 0 1 12 12Zm60 12a12 12 0 1 0-12-12 12 12 0 0 0 12 12Zm-72 44a12 12 0 1 0 12 12 12 12 0 0 0-12-12Zm72 0a12 12 0 1 0 12 12 12 12 0 0 0-12-12Zm-72 68a12 12 0 1 0 12 12 12 12 0 0 0-12-12Zm72 0a12 12 0 1 0 12 12 12 12 0 0 0-12-12Z\"})}),A=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M128 24a104 104 0 1 0 104 104A104.11 104.11 0 0 0 128 24Zm0 192a88 88 0 1 1 88-88 88.1 88.1 0 0 1-88 88Zm12-88a12 12 0 1 1-12-12 12 12 0 0 1 12 12Zm44 0a12 12 0 1 1-12-12 12 12 0 0 1 12 12Zm-88 0a12 12 0 1 1-12-12 12 12 0 0 1 12 12Z\"})}),S=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M140 128a12 12 0 1 1-12-12 12 12 0 0 1 12 12Zm56-12a12 12 0 1 0 12 12 12 12 0 0 0-12-12Zm-136 0a12 12 0 1 0 12 12 12 12 0 0 0-12-12Z\"})}),k=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M224 152v56a16 16 0 0 1-16 16H48a16 16 0 0 1-16-16v-56a8 8 0 0 1 16 0v56h160v-56a8 8 0 0 1 16 0Zm-101.66 5.66a8 8 0 0 0 11.32 0l40-40a8 8 0 0 0-11.32-11.32L136 132.69V40a8 8 0 0 0-16 0v92.69l-26.34-26.35a8 8 0 0 0-11.32 11.32Z\"})}),D=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M224 48H32a8 8 0 0 0-8 8v136a16 16 0 0 0 16 16h176a16 16 0 0 0 16-16V56a8 8 0 0 0-8-8Zm-96 85.15L52.57 64h150.86ZM98.71 128 40 181.81V74.19Zm11.84 10.85 12 11.05a8 8 0 0 0 10.82 0l12-11.05 58 53.15H52.57ZM157.29 128 216 74.18v107.64Z\"})}),P=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M216 112v96a16 16 0 0 1-16 16H56a16 16 0 0 1-16-16v-96a16 16 0 0 1 16-16h24a8 8 0 0 1 0 16H56v96h144v-96h-24a8 8 0 0 1 0-16h24a16 16 0 0 1 16 16ZM93.66 69.66 120 43.31V136a8 8 0 0 0 16 0V43.31l26.34 26.35a8 8 0 0 0 11.32-11.32l-40-40a8 8 0 0 0-11.32 0l-40 40a8 8 0 0 0 11.32 11.32Z\"})}),U=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M219.31 80 176 36.69A15.86 15.86 0 0 0 164.69 32H48a16 16 0 0 0-16 16v160a16 16 0 0 0 16 16h160a16 16 0 0 0 16-16V91.31A15.86 15.86 0 0 0 219.31 80ZM168 208H88v-56h80Zm40 0h-24v-56a16 16 0 0 0-16-16H88a16 16 0 0 0-16 16v56H48V48h116.69L208 91.31ZM160 72a8 8 0 0 1-8 8H96a8 8 0 0 1 0-16h56a8 8 0 0 1 8 8Z\"})}),q=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M230.6 49.53A15.81 15.81 0 0 0 216 40H40a16 16 0 0 0-11.81 26.76l.08.09L96 139.17V216a16 16 0 0 0 24.87 13.32l32-21.34a16 16 0 0 0 7.13-13.32v-55.49l67.74-72.32.08-.09a15.8 15.8 0 0 0 2.78-17.23ZM40 56Zm108.34 72.28a15.92 15.92 0 0 0-4.34 10.89v55.49L112 216v-76.83a15.92 15.92 0 0 0-4.32-10.94L40 56h176Z\"})}),R=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M128 80a48 48 0 1 0 48 48 48.05 48.05 0 0 0-48-48Zm0 80a32 32 0 1 1 32-32 32 32 0 0 1-32 32Zm88-29.84q.06-2.16 0-4.32l14.92-18.64a8 8 0 0 0 1.48-7.06 107.21 107.21 0 0 0-10.88-26.25 8 8 0 0 0-6-3.93l-23.72-2.64q-1.48-1.56-3-3L186 40.54a8 8 0 0 0-3.94-6 107.71 107.71 0 0 0-26.25-10.87 8 8 0 0 0-7.06 1.49L130.16 40h-4.32L107.2 25.11a8 8 0 0 0-7.06-1.48 107.6 107.6 0 0 0-26.25 10.88 8 8 0 0 0-3.93 6l-2.64 23.76q-1.56 1.49-3 3L40.54 70a8 8 0 0 0-6 3.94 107.71 107.71 0 0 0-10.87 26.25 8 8 0 0 0 1.49 7.06L40 125.84v4.32L25.11 148.8a8 8 0 0 0-1.48 7.06 107.21 107.21 0 0 0 10.88 26.25 8 8 0 0 0 6 3.93l23.72 2.64q1.49 1.56 3 3L70 215.46a8 8 0 0 0 3.94 6 107.71 107.71 0 0 0 26.25 10.87 8 8 0 0 0 7.06-1.49L125.84 216q2.16.06 4.32 0l18.64 14.92a8 8 0 0 0 7.06 1.48 107.21 107.21 0 0 0 26.25-10.88 8 8 0 0 0 3.93-6l2.64-23.72q1.56-1.48 3-3l23.78-2.8a8 8 0 0 0 6-3.94 107.71 107.71 0 0 0 10.87-26.25 8 8 0 0 0-1.49-7.06Zm-16.1-6.5a73.93 73.93 0 0 1 0 8.68 8 8 0 0 0 1.74 5.48l14.19 17.73a91.57 91.57 0 0 1-6.23 15l-22.6 2.56a8 8 0 0 0-5.1 2.64 74.11 74.11 0 0 1-6.14 6.14 8 8 0 0 0-2.64 5.1l-2.51 22.58a91.32 91.32 0 0 1-15 6.23l-17.74-14.19a8 8 0 0 0-5-1.75h-.48a73.93 73.93 0 0 1-8.68 0 8 8 0 0 0-5.48 1.74l-17.78 14.2a91.57 91.57 0 0 1-15-6.23L82.89 187a8 8 0 0 0-2.64-5.1 74.11 74.11 0 0 1-6.14-6.14 8 8 0 0 0-5.1-2.64l-22.58-2.52a91.32 91.32 0 0 1-6.23-15l14.19-17.74a8 8 0 0 0 1.74-5.48 73.93 73.93 0 0 1 0-8.68 8 8 0 0 0-1.74-5.48L40.2 100.45a91.57 91.57 0 0 1 6.23-15L69 82.89a8 8 0 0 0 5.1-2.64 74.11 74.11 0 0 1 6.14-6.14A8 8 0 0 0 82.89 69l2.51-22.57a91.32 91.32 0 0 1 15-6.23l17.74 14.19a8 8 0 0 0 5.48 1.74 73.93 73.93 0 0 1 8.68 0 8 8 0 0 0 5.48-1.74l17.77-14.19a91.57 91.57 0 0 1 15 6.23L173.11 69a8 8 0 0 0 2.64 5.1 74.11 74.11 0 0 1 6.14 6.14 8 8 0 0 0 5.1 2.64l22.58 2.51a91.32 91.32 0 0 1 6.23 15l-14.19 17.74a8 8 0 0 0-1.74 5.53Z\"})}),y=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M128 24a104 104 0 1 0 104 104A104.11 104.11 0 0 0 128 24Zm0 192a88 88 0 1 1 88-88 88.1 88.1 0 0 1-88 88Zm16-40a8 8 0 0 1-8 8 16 16 0 0 1-16-16v-40a8 8 0 0 1 0-16 16 16 0 0 1 16 16v40a8 8 0 0 1 8 8Zm-32-92a12 12 0 1 1 12 12 12 12 0 0 1-12-12Z\"})}),F=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M165.66 90.34a8 8 0 0 1 0 11.32l-64 64a8 8 0 0 1-11.32-11.32l64-64a8 8 0 0 1 11.32 0ZM215.6 40.4a56 56 0 0 0-79.2 0l-30.06 30.05a8 8 0 0 0 11.32 11.32l30.06-30a40 40 0 0 1 56.57 56.56l-30.07 30.06a8 8 0 0 0 11.31 11.32l30.07-30.11a56 56 0 0 0 0-79.2Zm-77.26 133.82-30.06 30.06a40 40 0 1 1-56.56-56.57l30.05-30.05a8 8 0 0 0-11.32-11.32L40.4 136.4a56 56 0 0 0 79.2 79.2l30.06-30.07a8 8 0 0 0-11.32-11.31Z\"})}),G=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M224 128a8 8 0 0 1-8 8H40a8 8 0 0 1 0-16h176a8 8 0 0 1 8 8ZM40 72h176a8 8 0 0 0 0-16H40a8 8 0 0 0 0 16Zm176 112H40a8 8 0 0 0 0 16h176a8 8 0 0 0 0-16Z\"})}),O=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M208 80H96V56a32 32 0 0 1 32-32c15.37 0 29.2 11 32.16 25.59a8 8 0 0 0 15.68-3.18C171.32 24.15 151.2 8 128 8a48.05 48.05 0 0 0-48 48v24H48a16 16 0 0 0-16 16v112a16 16 0 0 0 16 16h160a16 16 0 0 0 16-16V96a16 16 0 0 0-16-16Zm0 128H48V96h160v112Z\"})}),T=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M208 80h-32V56a48 48 0 0 0-96 0v24H48a16 16 0 0 0-16 16v112a16 16 0 0 0 16 16h160a16 16 0 0 0 16-16V96a16 16 0 0 0-16-16ZM96 56a32 32 0 0 1 64 0v24H96Zm112 152H48V96h160v112Z\"})}),E=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"m229.66 218.34-50.07-50.06a88.11 88.11 0 1 0-11.31 11.31l50.06 50.07a8 8 0 0 0 11.32-11.32ZM40 112a72 72 0 1 1 72 72 72.08 72.08 0 0 1-72-72Z\"})}),X=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M128 64a40 40 0 1 0 40 40 40 40 0 0 0-40-40Zm0 64a24 24 0 1 1 24-24 24 24 0 0 1-24 24Zm0-112a88.1 88.1 0 0 0-88 88c0 31.4 14.51 64.68 42 96.25a254.19 254.19 0 0 0 41.45 38.3 8 8 0 0 0 9.18 0 254.19 254.19 0 0 0 41.37-38.3c27.45-31.57 42-64.85 42-96.25a88.1 88.1 0 0 0-88-88Zm0 206c-16.53-13-72-60.75-72-118a72 72 0 0 1 144 0c0 57.23-55.47 105-72 118Z\"})}),j=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M176 128a8 8 0 0 1-8 8H88a8 8 0 0 1 0-16h80a8 8 0 0 1 8 8Zm56 0A104 104 0 1 1 128 24a104.11 104.11 0 0 1 104 104Zm-16 0a88 88 0 1 0-88 88 88.1 88.1 0 0 0 88-88Z\"})}),W=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M224 128a8 8 0 0 1-8 8H40a8 8 0 0 1 0-16h176a8 8 0 0 1 8 8Z\"})}),b=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M209.66 122.34a8 8 0 0 1 0 11.32l-82.05 82a56 56 0 0 1-79.2-79.21l99.26-100.72a40 40 0 1 1 56.61 56.55L105 193a24 24 0 1 1-34-34l83.3-84.62a8 8 0 1 1 11.4 11.22l-83.31 84.71a8 8 0 1 0 11.27 11.36L192.93 81A24 24 0 1 0 159 47L59.76 147.68a40 40 0 1 0 56.53 56.62l82.06-82a8 8 0 0 1 11.31.04Z\"})}),z=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M48 56v144a8 8 0 0 1-16 0V56a8 8 0 0 1 16 0Zm84 54.5-20 6.5V96a8 8 0 0 0-16 0v21l-20-6.5a8 8 0 0 0-5 15.22l20 6.49-12.34 17a8 8 0 1 0 12.94 9.4l12.34-17 12.34 17a8 8 0 1 0 12.94-9.4l-12.34-17 20-6.49A8 8 0 0 0 132 110.5Zm106 5.14a8 8 0 0 0-10-5.14l-20 6.5V96a8 8 0 0 0-16 0v21l-20-6.49a8 8 0 0 0-4.95 15.22l20 6.49-12.34 17a8 8 0 1 0 12.94 9.4l12.34-17 12.34 17a8 8 0 1 0 12.94-9.4l-12.34-17 20-6.49a8 8 0 0 0 5.07-10.09Z\"})}),J=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"m227.31 73.37-44.68-44.69a16 16 0 0 0-22.63 0L36.69 152A15.86 15.86 0 0 0 32 163.31V208a16 16 0 0 0 16 16h44.69a15.86 15.86 0 0 0 11.31-4.69L227.31 96a16 16 0 0 0 0-22.63ZM51.31 160 136 75.31 152.69 92 68 176.68ZM48 179.31 76.69 208H48Zm48 25.38L79.31 188 164 103.31 180.69 120Zm96-96L147.31 64l24-24L216 84.68Z\"})}),K=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"m222.37 158.46-47.11-21.11-.13-.06a16 16 0 0 0-15.17 1.4 8.12 8.12 0 0 0-.75.56L134.87 160c-15.42-7.49-31.34-23.29-38.83-38.51l20.78-24.71c.2-.25.39-.5.57-.77a16 16 0 0 0 1.32-15.06v-.12L97.54 33.64a16 16 0 0 0-16.62-9.52A56.26 56.26 0 0 0 32 80c0 79.4 64.6 144 144 144a56.26 56.26 0 0 0 55.88-48.92 16 16 0 0 0-9.51-16.62ZM176 208A128.14 128.14 0 0 1 48 80a40.2 40.2 0 0 1 34.87-40 .61.61 0 0 0 0 .12l21 47-20.67 24.74a6.13 6.13 0 0 0-.57.77 16 16 0 0 0-1 15.7c9.06 18.53 27.73 37.06 46.46 46.11a16 16 0 0 0 15.75-1.14 8.44 8.44 0 0 0 .74-.56L168.89 152l47 21.05h.11A40.21 40.21 0 0 1 176 208Z\"})}),Q=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M128 24a104 104 0 1 0 104 104A104.11 104.11 0 0 0 128 24Zm0 192a88 88 0 1 1 88-88 88.1 88.1 0 0 1-88 88Zm48-88a8 8 0 0 1-8 8h-32v32a8 8 0 0 1-16 0v-32H88a8 8 0 0 1 0-16h32V88a8 8 0 0 1 16 0v32h32a8 8 0 0 1 8 8Z\"})}),Y=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M224 128a8 8 0 0 1-8 8h-80v80a8 8 0 0 1-16 0v-80H40a8 8 0 0 1 0-16h80V40a8 8 0 0 1 16 0v80h80a8 8 0 0 1 8 8Z\"})}),$=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M222.14 58.87A8 8 0 0 0 216 56H54.68l-4.89-26.86A16 16 0 0 0 34.05 16H16a8 8 0 0 0 0 16h18l25.56 140.29a24 24 0 0 0 5.33 11.27 28 28 0 1 0 44.4 8.44h45.42a27.75 27.75 0 0 0-2.71 12 28 28 0 1 0 28-28H83.17a8 8 0 0 1-7.87-6.57L72.13 152h116a24 24 0 0 0 23.61-19.71l12.16-66.86a8 8 0 0 0-1.76-6.56ZM96 204a12 12 0 1 1-12-12 12 12 0 0 1 12 12Zm96 0a12 12 0 1 1-12-12 12 12 0 0 1 12 12Zm4-74.57a8 8 0 0 1-7.9 6.57H69.22L57.59 72h148.82Z\"})}),_=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"m141.66 133.66-40 40a8 8 0 0 1-11.32-11.32L116.69 136H24a8 8 0 0 1 0-16h92.69L90.34 93.66a8 8 0 0 1 11.32-11.32l40 40a8 8 0 0 1 0 11.32ZM192 32h-56a8 8 0 0 0 0 16h56v160h-56a8 8 0 0 0 0 16h56a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16Z\"})}),aa=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M112 216a8 8 0 0 1-8 8H48a16 16 0 0 1-16-16V48a16 16 0 0 1 16-16h56a8 8 0 0 1 0 16H48v160h56a8 8 0 0 1 8 8Zm109.66-93.66-40-40a8 8 0 0 0-11.32 11.32L196.69 120H104a8 8 0 0 0 0 16h92.69l-26.35 26.34a8 8 0 0 0 11.32 11.32l40-40a8 8 0 0 0 0-11.32Z\"})}),sa=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M64 105V40a8 8 0 0 0-16 0v65a32 32 0 0 0 0 62v49a8 8 0 0 0 16 0v-49a32 32 0 0 0 0-62Zm-8 47a16 16 0 1 1 16-16 16 16 0 0 1-16 16Zm80-95V40a8 8 0 0 0-16 0v17a32 32 0 0 0 0 62v97a8 8 0 0 0 16 0v-97a32 32 0 0 0 0-62Zm-8 47a16 16 0 1 1 16-16 16 16 0 0 1-16 16Zm104 64a32.06 32.06 0 0 0-24-31V40a8 8 0 0 0-16 0v97a32 32 0 0 0 0 62v17a8 8 0 0 0 16 0v-17a32.06 32.06 0 0 0 24-31Zm-32 16a16 16 0 1 1 16-16 16 16 0 0 1-16 16Z\"})}),la=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M128 128a8 8 0 0 1-8 8H48a8 8 0 0 1 0-16h72a8 8 0 0 1 8 8ZM48 72h136a8 8 0 0 0 0-16H48a8 8 0 0 0 0 16Zm56 112H48a8 8 0 0 0 0 16h56a8 8 0 0 0 0-16Zm125.66-21.66a8 8 0 0 0-11.32 0L192 188.69V112a8 8 0 0 0-16 0v76.69l-26.34-26.35a8 8 0 0 0-11.32 11.32l40 40a8 8 0 0 0 11.32 0l40-40a8 8 0 0 0 0-11.32Z\"})}),ea=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M40 128a8 8 0 0 1 8-8h72a8 8 0 0 1 0 16H48a8 8 0 0 1-8-8Zm8-56h56a8 8 0 0 0 0-16H48a8 8 0 0 0 0 16Zm136 112H48a8 8 0 0 0 0 16h136a8 8 0 0 0 0-16Zm45.66-101.66-40-40a8 8 0 0 0-11.32 0l-40 40a8 8 0 0 0 11.32 11.32L176 67.31V144a8 8 0 0 0 16 0V67.31l26.34 26.35a8 8 0 0 0 11.32-11.32Z\"})}),ra=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M136 32v32a8 8 0 0 1-16 0V32a8 8 0 0 1 16 0Zm88 88h-32a8 8 0 0 0 0 16h32a8 8 0 0 0 0-16Zm-45.09 47.6a8 8 0 0 0-11.31 11.31l22.62 22.63a8 8 0 0 0 11.32-11.32ZM128 184a8 8 0 0 0-8 8v32a8 8 0 0 0 16 0v-32a8 8 0 0 0-8-8Zm-50.91-16.4-22.63 22.62a8 8 0 0 0 11.32 11.32l22.62-22.63a8 8 0 0 0-11.31-11.31ZM72 128a8 8 0 0 0-8-8H32a8 8 0 0 0 0 16h32a8 8 0 0 0 8-8Zm-6.22-73.54a8 8 0 0 0-11.32 11.32L77.09 88.4A8 8 0 0 0 88.4 77.09Z\"})}),ia=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M216 48h-40v-8a24 24 0 0 0-24-24h-48a24 24 0 0 0-24 24v8H40a8 8 0 0 0 0 16h8v144a16 16 0 0 0 16 16h128a16 16 0 0 0 16-16V64h8a8 8 0 0 0 0-16ZM96 40a8 8 0 0 1 8-8h48a8 8 0 0 1 8 8v8H96Zm96 168H64V64h128Zm-80-104v64a8 8 0 0 1-16 0v-64a8 8 0 0 1 16 0Zm48 0v64a8 8 0 0 1-16 0v-64a8 8 0 0 1 16 0Z\"})}),ca=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M224 152v56a16 16 0 0 1-16 16H48a16 16 0 0 1-16-16v-56a8 8 0 0 1 16 0v56h160v-56a8 8 0 0 1 16 0ZM93.66 85.66 120 59.31V152a8 8 0 0 0 16 0V59.31l26.34 26.35a8 8 0 0 0 11.32-11.32l-40-40a8 8 0 0 0-11.32 0l-40 40a8 8 0 0 0 11.32 11.32Z\"})}),oa=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M128 24a104 104 0 1 0 104 104A104.11 104.11 0 0 0 128 24ZM74.08 197.5a64 64 0 0 1 107.84 0 87.83 87.83 0 0 1-107.84 0ZM96 120a32 32 0 1 1 32 32 32 32 0 0 1-32-32Zm97.76 66.41a79.66 79.66 0 0 0-36.06-28.75 48 48 0 1 0-59.4 0 79.66 79.66 0 0 0-36.06 28.75 88 88 0 1 1 131.52 0Z\"})}),na=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M236.8 188.09 149.35 36.22a24.76 24.76 0 0 0-42.7 0L19.2 188.09a23.51 23.51 0 0 0 0 23.72A24.35 24.35 0 0 0 40.55 224h174.9a24.35 24.35 0 0 0 21.33-12.19 23.51 23.51 0 0 0 .02-23.72Zm-13.87 15.71a8.5 8.5 0 0 1-7.48 4.2H40.55a8.5 8.5 0 0 1-7.48-4.2 7.59 7.59 0 0 1 0-7.72l87.45-151.87a8.75 8.75 0 0 1 15 0l87.45 151.87a7.59 7.59 0 0 1-.04 7.72ZM120 144v-40a8 8 0 0 1 16 0v40a8 8 0 0 1-16 0Zm20 36a12 12 0 1 1-12-12 12 12 0 0 1 12 12Z\"})}),ha=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M165.66 101.66 139.31 128l26.35 26.34a8 8 0 0 1-11.32 11.32L128 139.31l-26.34 26.35a8 8 0 0 1-11.32-11.32L116.69 128l-26.35-26.34a8 8 0 0 1 11.32-11.32L128 116.69l26.34-26.35a8 8 0 0 1 11.32 11.32ZM232 128A104 104 0 1 1 128 24a104.11 104.11 0 0 1 104 104Zm-16 0a88 88 0 1 0-88 88 88.1 88.1 0 0 0 88-88Z\"})}),ta=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M205.66 194.34a8 8 0 0 1-11.32 11.32L128 139.31l-66.34 66.35a8 8 0 0 1-11.32-11.32L116.69 128 50.34 61.66a8 8 0 0 1 11.32-11.32L128 116.69l66.34-66.35a8 8 0 0 1 11.32 11.32L139.31 128Z\"})}),wa=({className:l,...e})=>a(ra,{className:s(\"sds-icon sds-icon--spinner\",l),...e});export{l as ArrowCircleLeftIcon,e as ArrowCircleRightIcon,r as ArrowLeftIcon,i as ArrowRightIcon,c as ArrowSquareOutIcon,o as ArrowUUpLeftIcon,n as ArrowUUpRightIcon,t as BellIcon,h as BellRingingIcon,w as BookmarkSimpleFillIcon,d as BookmarkSimpleIcon,m as CalendarBlankIcon,v as CalendarPlusIcon,g as CaretCircleDownIcon,Z as CaretCircleLeftIcon,p as CaretCircleRightIcon,u as CaretCircleUpIcon,x as CaretDownIcon,N as CaretLeftIcon,C as CaretRightIcon,M as CaretUpIcon,H as CheckCircleIcon,L as CheckIcon,f as CircleIcon,B as ClockIcon,I as CopyIcon,V as DotsSixVerticalIcon,A as DotsThreeCircleIcon,S as DotsThreeIcon,k as DownloadSimpleIcon,D as EnvelopeIcon,P as ExportIcon,U as FloppyDiskIcon,q as FunnelIcon,R as GearIcon,y as InfoIcon,F as LinkSimpleIcon,G as ListIcon,T as LockSimpleIcon,O as LockSimpleOpenIcon,E as MagnifyingGlassIcon,X as MapPinIcon,j as MinusCircleIcon,W as MinusIcon,b as PaperclipIcon,z as PasswordIcon,J as PencilIcon,K as PhoneIcon,Q as PlusCircleIcon,Y as PlusIcon,$ as ShoppingCartIcon,_ as SignInIcon,aa as SignOutIcon,sa as SlidersIcon,la as SortAscendingIcon,ea as SortDescendingIcon,ra as SpinnerGapIcon,wa as SpinnerIcon,ia as TrashIcon,ca as UploadSimpleIcon,oa as UserCircleIcon,na as WarningIcon,ha as XCircleIcon,ta as XIcon};\n//# sourceMappingURL=index.js.map\n","import React, { HTMLAttributes } from \"react\";\nimport { CaretRightIcon, CaretLeftIcon } from \"@sikt/sds-icons\";\nimport { clsx } from \"clsx\";\nimport \"./pagination.pcss\";\n\nexport interface PaginationProps extends HTMLAttributes<HTMLElement> {\n \"aria-label\": string;\n ariaLabelPrevious?: string;\n ariaLabelNext?: string;\n ariaLabelItem?: string;\n count: number;\n currentIndex: number;\n /** Total limit of elements, this includes previous/next/first/last. Minimum is 7 (previous/next/first/last/current/) */\n limit?: number;\n handleClick: (index: number) => void;\n className?: string;\n}\n\nexport const Pagination = ({\n \"aria-label\": ariaLabel,\n ariaLabelNext = \"Vis neste side\",\n ariaLabelPrevious = \"Vis forrige side\",\n ariaLabelItem = \"Vis side\",\n count,\n currentIndex,\n limit = 7,\n handleClick,\n className,\n ...rest\n}: PaginationProps) => {\n const constantCount = 2;\n const delimiter = Math.ceil(limit / 2) - constantCount - 1;\n const max = currentIndex + delimiter;\n const min = currentIndex - delimiter;\n const hasMaxSpacer = count - 1 > max;\n const hasMinSpacer = 1 < min;\n const maxModifier = count - 1 - max - 1;\n const minModifier = min - 1;\n const hasLessBeforeIndex = minModifier < 0;\n const hasLessAfterIndex = maxModifier < 0;\n let maxLimit = hasMaxSpacer ? max - 1 : max;\n maxLimit = hasLessBeforeIndex ? maxLimit - minModifier : maxLimit;\n let minLimit = hasMinSpacer ? min + 1 : min;\n minLimit = hasLessAfterIndex ? minLimit + maxModifier : minLimit;\n\n return (\n <nav\n className={clsx(\"sds-pagination\", className)}\n aria-label={ariaLabel}\n {...rest}\n >\n <ol className=\"sds-pagination__list\">\n <li className=\"sds-pagination__list-item\">\n <button\n className=\"sds-pagination__button\"\n aria-label={`${ariaLabelPrevious} ${currentIndex}`}\n disabled={currentIndex === 0}\n onClick={() => handleClick(currentIndex - 1)}\n >\n <CaretLeftIcon />\n </button>\n </li>\n {[...Array(count).keys()].map((value) => {\n if (\n value === 0 ||\n value === count - 1 ||\n (value >= minLimit && value <= maxLimit)\n ) {\n return (\n <li className=\"sds-pagination__list-item\" key={value}>\n <button\n className=\"sds-pagination__button\"\n aria-current={value === currentIndex ? true : undefined}\n aria-label={`${ariaLabelItem} ${value + 1}`}\n disabled={value === currentIndex}\n onClick={() => handleClick(value)}\n >\n {value + 1}\n </button>\n </li>\n );\n } else if (value == maxLimit + 1 || value == minLimit - 1) {\n return (\n <li className=\"sds-pagination__list-item\" key={value}>\n <div className=\"sds-pagination__button--spacer\">&hellip;</div>\n </li>\n );\n }\n })}\n <li className=\"sds-pagination__list-item\">\n <button\n className=\"sds-pagination__button\"\n aria-label={`${ariaLabelNext} ${currentIndex + 2}`}\n disabled={currentIndex === count - 1}\n onClick={() => handleClick(currentIndex + 1)}\n >\n <CaretRightIcon />\n </button>\n </li>\n </ol>\n </nav>\n );\n};\n"],"names":["N","className","l","e","a","xmlns","fill","viewBox","s","children","d","C","Pagination","ariaLabel","ariaLabelNext","ariaLabelPrevious","ariaLabelItem","count","currentIndex","limit","handleClick","rest","delimiter","Math","ceil","max","min","maxModifier","minModifier","maxLimit","minLimit","_jsx","clsx","_jsxs","disabled","onClick","CaretLeftIcon","Array","keys","map","value","undefined","CaretRightIcon"],"mappings":"iFAAkE,MAA2zOA,EAAE,EAAEC,UAAUC,KAAKC,KAAKC,EAAE,MAAM,CAACC,MAAM,6BAA6BC,KAAK,eAAeC,QAAQ,cAAcN,UAAUO,EAAE,WAAWN,GAAG,cAAc,UAAUC,EAAEM,SAASL,EAAE,OAAO,CAACM,EAAE,2GAA2GC,EAAE,EAAEV,UAAUC,KAAKC,KAAKC,EAAE,MAAM,CAACC,MAAM,6BAA6BC,KAAK,eAAeC,QAAQ,cAAcN,UAAUO,EAAE,WAAWN,GAAG,cAAc,UAAUC,EAAEM,SAASL,EAAE,OAAO,CAACM,EAAE,uHCkBz0PE,EAAa,EACxB,aAAcC,EACdC,gBAAgB,iBAChBC,oBAAoB,mBACpBC,gBAAgB,WAChBC,QACAC,eACAC,QAAQ,EACRC,cACAnB,eACGoB,MAEH,MACMC,EAAYC,KAAKC,KAAKL,EAAQ,GADd,EACmC,EACnDM,EAAMP,EAAeI,EACrBI,EAAMR,EAAeI,EAGrBK,EAAcV,EAAQ,EAAIQ,EAAM,EAChCG,EAAcF,EAAM,EAG1B,IAAIG,EANiBZ,EAAQ,EAAIQ,EAMHA,EAAM,EAAIA,EACxCI,EAH2BD,EAAc,EAGTC,EAAWD,EAAcC,EACzD,IAAIC,EAPiB,EAAIJ,EAOKA,EAAM,EAAIA,EAGxC,OAFAI,EAJ0BH,EAAc,EAITG,EAAWH,EAAcG,EAGtDC,EACE,MAAA,CAAA9B,UAAW+B,EAAK,iBAAkB/B,gBACtBY,KACRQ,EAAIZ,SAERwB,QAAIhC,UAAU,uBAAsBQ,SAAA,CAClCsB,QAAI9B,UAAU,4BAA2BQ,SACvCsB,YACE9B,UAAU,yBAAwB,aACtB,GAAGc,KAAqBG,IACpCgB,SAA2B,IAAjBhB,EACViB,QAAS,IAAMf,EAAYF,EAAe,GAE1CT,SAAAsB,EAACK,EAAgB,CAAA,OAGpB,IAAIC,MAAMpB,GAAOqB,QAAQC,KAAKC,GAEjB,IAAVA,GACAA,IAAUvB,EAAQ,GACjBuB,GAASV,GAAYU,GAASX,EAG7BE,EAAI,KAAA,CAAA9B,UAAU,qCACZ8B,EACE,SAAA,CAAA9B,UAAU,yBACI,eAAAuC,IAAUtB,QAAsBuB,EAAS,aAC3C,GAAGzB,KAAiBwB,EAAQ,IACxCN,SAAUM,IAAUtB,EACpBiB,QAAS,IAAMf,EAAYoB,GAAM/B,SAEhC+B,EAAQ,KARkCA,GAYxCA,GAASX,EAAW,GAAKW,GAASV,EAAW,EAEpDC,EAAA,KAAA,CAAI9B,UAAU,4BACZQ,SAAAsB,EAAA,MAAA,CAAK9B,UAAU,iCAA+CQ,SAAA,OADjB+B,QAF5C,IAQTT,EAAI,KAAA,CAAA9B,UAAU,4BAA2BQ,SACvCsB,EACE,SAAA,CAAA9B,UAAU,sCACE,GAAGa,KAAiBI,EAAe,IAC/CgB,SAAUhB,IAAiBD,EAAQ,EACnCkB,QAAS,IAAMf,EAAYF,EAAe,GAAET,SAE5CsB,EAACW,EAAc,YAKvB"}
1
+ {"version":3,"sources":["../src/Pagination.tsx"],"names":["jsx","clsx","jsxs","CaretLeftIcon","CaretRightIcon"],"mappings":"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","file":"index.js","sourcesContent":["import { CaretLeftIcon, CaretRightIcon } from \"@sikt/sds-icons\";\nimport { clsx } from \"clsx/lite\";\nimport { HTMLAttributes } from \"react\";\nimport \"./pagination.pcss\";\n\nexport interface PaginationProps extends HTMLAttributes<HTMLElement> {\n \"aria-label\": string;\n ariaLabelPrevious?: string;\n ariaLabelNext?: string;\n ariaLabelItem?: string;\n count: number;\n currentIndex: number;\n /** Total limit of elements, this includes previous/next/first/last. Minimum is 7 (previous/next/first/last/current/) */\n limit?: number;\n handleClick: (index: number) => void;\n className?: string;\n}\n\nexport const Pagination = ({\n \"aria-label\": ariaLabel,\n ariaLabelNext = \"Vis neste side\",\n ariaLabelPrevious = \"Vis forrige side\",\n ariaLabelItem = \"Vis side\",\n count,\n currentIndex,\n limit = 7,\n handleClick,\n className,\n ...rest\n}: PaginationProps) => {\n const constantCount = 2;\n const delimiter = Math.ceil(limit / 2) - constantCount - 1;\n const max = currentIndex + delimiter;\n const min = currentIndex - delimiter;\n const hasMaxSpacer = count - 1 > max;\n const hasMinSpacer = 1 < min;\n const maxModifier = count - 1 - max - 1;\n const minModifier = min - 1;\n const hasLessBeforeIndex = minModifier < 0;\n const hasLessAfterIndex = maxModifier < 0;\n let maxLimit = hasMaxSpacer ? max - 1 : max;\n maxLimit = hasLessBeforeIndex ? maxLimit - minModifier : maxLimit;\n let minLimit = hasMinSpacer ? min + 1 : min;\n minLimit = hasLessAfterIndex ? minLimit + maxModifier : minLimit;\n\n return (\n <nav\n className={clsx(\"sds-pagination\", className)}\n aria-label={ariaLabel}\n {...rest}\n >\n <ol className=\"sds-pagination__list\">\n <li className=\"sds-pagination__list-item\">\n <button\n className=\"sds-pagination__button\"\n aria-label={`${ariaLabelPrevious} ${currentIndex}`}\n disabled={currentIndex === 0}\n onClick={() => {\n handleClick(currentIndex - 1);\n }}\n >\n <CaretLeftIcon />\n </button>\n </li>\n {[...Array(count).keys()].map((value) => {\n if (\n value === 0 ||\n value === count - 1 ||\n (value >= minLimit && value <= maxLimit)\n ) {\n return (\n <li className=\"sds-pagination__list-item\" key={value}>\n <button\n className=\"sds-pagination__button\"\n aria-current={value === currentIndex ? true : undefined}\n aria-label={`${ariaLabelItem} ${value + 1}`}\n disabled={value === currentIndex}\n onClick={() => {\n handleClick(value);\n }}\n >\n {value + 1}\n </button>\n </li>\n );\n } else if (value == maxLimit + 1 || value == minLimit - 1) {\n return (\n <li className=\"sds-pagination__list-item\" key={value}>\n <div className=\"sds-pagination__button--spacer\">&hellip;</div>\n </li>\n );\n }\n })}\n <li className=\"sds-pagination__list-item\">\n <button\n className=\"sds-pagination__button\"\n aria-label={`${ariaLabelNext} ${currentIndex + 2}`}\n disabled={currentIndex === count - 1}\n onClick={() => {\n handleClick(currentIndex + 1);\n }}\n >\n <CaretRightIcon />\n </button>\n </li>\n </ol>\n </nav>\n );\n};\n"]}
package/dist/index.mjs ADDED
@@ -0,0 +1 @@
1
+ import{CaretLeftIcon as a,CaretRightIcon as e}from"@sikt/sds-icons";import{clsx as i}from"clsx/lite";import{jsx as t,jsxs as l}from"react/jsx-runtime";var r=Object.defineProperty,n=Object.defineProperties,s=Object.getOwnPropertyDescriptors,c=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,d=Object.prototype.propertyIsEnumerable,b=(a,e,i)=>e in a?r(a,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):a[e]=i,m=r=>{var m=r,{"aria-label":p,ariaLabelNext:u="Vis neste side",ariaLabelPrevious:_="Vis forrige side",ariaLabelItem:f="Vis side",count:v,currentIndex:g,limit:h=7,handleClick:N,className:O}=m,y=((a,e)=>{var i={};for(var t in a)o.call(a,t)&&e.indexOf(t)<0&&(i[t]=a[t]);if(null!=a&&c)for(var t of c(a))e.indexOf(t)<0&&d.call(a,t)&&(i[t]=a[t]);return i})(m,["aria-label","ariaLabelNext","ariaLabelPrevious","ariaLabelItem","count","currentIndex","limit","handleClick","className"]);const x=Math.ceil(h/2)-2-1,j=g+x,k=g-x,P=v-1-j-1,L=k-1;let C=v-1>j?j-1:j;C=L<0?C-L:C;let I=1<k?k+1:k;return I=P<0?I+P:I,t("nav",(w=((a,e)=>{for(var i in e||(e={}))o.call(e,i)&&b(a,i,e[i]);if(c)for(var i of c(e))d.call(e,i)&&b(a,i,e[i]);return a})({className:i("sds-pagination",O),"aria-label":p},y),V={children:l("ol",{className:"sds-pagination__list",children:[t("li",{className:"sds-pagination__list-item",children:t("button",{className:"sds-pagination__button","aria-label":"".concat(_," ").concat(g),disabled:0===g,onClick:()=>{N(g-1)},children:t(a,{})})}),[...Array(v).keys()].map((a=>0===a||a===v-1||a>=I&&a<=C?t("li",{className:"sds-pagination__list-item",children:t("button",{className:"sds-pagination__button","aria-current":a===g||void 0,"aria-label":"".concat(f," ").concat(a+1),disabled:a===g,onClick:()=>{N(a)},children:a+1})},a):a==C+1||a==I-1?t("li",{className:"sds-pagination__list-item",children:t("div",{className:"sds-pagination__button--spacer",children:"…"})},a):void 0)),t("li",{className:"sds-pagination__list-item",children:t("button",{className:"sds-pagination__button","aria-label":"".concat(u," ").concat(g+2),disabled:g===v-1,onClick:()=>{N(g+1)},children:t(e,{})})})]})},n(w,s(V))));var w,V};export{m as Pagination};//# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/Pagination.tsx"],"names":[],"mappings":"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","file":"index.mjs","sourcesContent":["import { CaretLeftIcon, CaretRightIcon } from \"@sikt/sds-icons\";\nimport { clsx } from \"clsx/lite\";\nimport { HTMLAttributes } from \"react\";\nimport \"./pagination.pcss\";\n\nexport interface PaginationProps extends HTMLAttributes<HTMLElement> {\n \"aria-label\": string;\n ariaLabelPrevious?: string;\n ariaLabelNext?: string;\n ariaLabelItem?: string;\n count: number;\n currentIndex: number;\n /** Total limit of elements, this includes previous/next/first/last. Minimum is 7 (previous/next/first/last/current/) */\n limit?: number;\n handleClick: (index: number) => void;\n className?: string;\n}\n\nexport const Pagination = ({\n \"aria-label\": ariaLabel,\n ariaLabelNext = \"Vis neste side\",\n ariaLabelPrevious = \"Vis forrige side\",\n ariaLabelItem = \"Vis side\",\n count,\n currentIndex,\n limit = 7,\n handleClick,\n className,\n ...rest\n}: PaginationProps) => {\n const constantCount = 2;\n const delimiter = Math.ceil(limit / 2) - constantCount - 1;\n const max = currentIndex + delimiter;\n const min = currentIndex - delimiter;\n const hasMaxSpacer = count - 1 > max;\n const hasMinSpacer = 1 < min;\n const maxModifier = count - 1 - max - 1;\n const minModifier = min - 1;\n const hasLessBeforeIndex = minModifier < 0;\n const hasLessAfterIndex = maxModifier < 0;\n let maxLimit = hasMaxSpacer ? max - 1 : max;\n maxLimit = hasLessBeforeIndex ? maxLimit - minModifier : maxLimit;\n let minLimit = hasMinSpacer ? min + 1 : min;\n minLimit = hasLessAfterIndex ? minLimit + maxModifier : minLimit;\n\n return (\n <nav\n className={clsx(\"sds-pagination\", className)}\n aria-label={ariaLabel}\n {...rest}\n >\n <ol className=\"sds-pagination__list\">\n <li className=\"sds-pagination__list-item\">\n <button\n className=\"sds-pagination__button\"\n aria-label={`${ariaLabelPrevious} ${currentIndex}`}\n disabled={currentIndex === 0}\n onClick={() => {\n handleClick(currentIndex - 1);\n }}\n >\n <CaretLeftIcon />\n </button>\n </li>\n {[...Array(count).keys()].map((value) => {\n if (\n value === 0 ||\n value === count - 1 ||\n (value >= minLimit && value <= maxLimit)\n ) {\n return (\n <li className=\"sds-pagination__list-item\" key={value}>\n <button\n className=\"sds-pagination__button\"\n aria-current={value === currentIndex ? true : undefined}\n aria-label={`${ariaLabelItem} ${value + 1}`}\n disabled={value === currentIndex}\n onClick={() => {\n handleClick(value);\n }}\n >\n {value + 1}\n </button>\n </li>\n );\n } else if (value == maxLimit + 1 || value == minLimit - 1) {\n return (\n <li className=\"sds-pagination__list-item\" key={value}>\n <div className=\"sds-pagination__button--spacer\">&hellip;</div>\n </li>\n );\n }\n })}\n <li className=\"sds-pagination__list-item\">\n <button\n className=\"sds-pagination__button\"\n aria-label={`${ariaLabelNext} ${currentIndex + 2}`}\n disabled={currentIndex === count - 1}\n onClick={() => {\n handleClick(currentIndex + 1);\n }}\n >\n <CaretRightIcon />\n </button>\n </li>\n </ol>\n </nav>\n );\n};\n"]}
package/package.json CHANGED
@@ -1,26 +1,48 @@
1
1
  {
2
2
  "name": "@sikt/sds-pagination",
3
- "version": "1.0.2",
3
+ "version": "2.0.1",
4
4
  "license": "UNLICENSED",
5
- "main": "dist/cjs/index.js",
6
- "module": "dist/index.js",
5
+ "homepage": "https://designsystem.sikt.no/",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://gitlab.sikt.no/designsystem/sds-komponentbibliotek.git"
9
+ },
10
+ "type": "commonjs",
11
+ "main": "dist/index.js",
12
+ "module": "dist/index.mjs",
13
+ "exports": {
14
+ ".": {
15
+ "style": "./dist/index.css",
16
+ "import": {
17
+ "types": "./dist/index.d.mts",
18
+ "default": "./dist/index.mjs"
19
+ },
20
+ "require": {
21
+ "types": "./dist/index.d.ts",
22
+ "default": "./dist/index.js"
23
+ }
24
+ },
25
+ "./dist/*": "./dist/*"
26
+ },
7
27
  "types": "dist/index.d.ts",
8
28
  "style": "dist/index.css",
9
29
  "files": [
10
- "dist"
30
+ "CHANGELOG.md",
31
+ "dist",
32
+ "README.md"
11
33
  ],
12
34
  "scripts": {
13
- "build": "rollup -c ../../rollup.config.mjs"
35
+ "build": "tsup"
14
36
  },
15
37
  "dependencies": {
16
- "@sikt/sds-core": "^1.0.1",
17
- "@sikt/sds-icons": "^1.0.0"
38
+ "@sikt/sds-core": "^4.1.1",
39
+ "@sikt/sds-icons": "^2.0.2"
18
40
  },
19
41
  "peerDependencies": {
20
- "@types/react": "^18.0.0",
21
- "@types/react-dom": "^18.0.0",
22
- "clsx": "^1.2.1",
23
- "react": "^18.0.0",
24
- "react-dom": "^18.0.0"
42
+ "@types/react": "^18.0.0 || ^19.0.0",
43
+ "@types/react-dom": "^18.0.0 || ^19.0.0",
44
+ "clsx": "^2.1.0",
45
+ "react": "^18.0.0 || ^19.0.0",
46
+ "react-dom": "^18.0.0 || ^19.0.0"
25
47
  }
26
48
  }
@@ -1,2 +0,0 @@
1
- .sds-pagination{--pagination-background-color:#0000;--pagination-border-color:var(--sds-color-surface-action)}.sds-pagination__list-item{align-items:center;display:inline-flex;justify-content:center;margin-right:var(--sds-size-base-s)}.sds-pagination__list-item:last-of-type{margin-right:0}.sds-pagination__button{align-items:center;background-color:var(--pagination-background-color);border:var(--sds-border-size-regular) solid var(--pagination-border-color);border-radius:var(--sds-border-radius-full);color:var(--sds-color-text-default);cursor:pointer;display:inline-flex;font-size:var(--sds-size-text-s2);height:var(--sds-size-text-l);justify-content:center;line-height:var(--sds-size-text-m);padding:0;text-align:center;width:var(--sds-size-text-l)}.sds-pagination__button:hover{--pagination-border-color:var(--sds-color-surface-action-hover)}.sds-pagination__button:focus-visible{--pagination-border-color:#0000;outline:var(--sds-size-base-xxs) dashed var(--sds-color-text-info)}.sds-pagination__button:active{--pagination-border-color:var(--sds-color-surface-action-active)}.sds-pagination__button[aria-current]{--pagination-background-color:var(--sds-color-surface-action);color:var(--sds-color-text-onsurface-action)}.sds-pagination__button--spacer{padding:var(--sds-size-padding-small)}.sds-pagination__button--spacer,.sds-pagination__button[aria-current],.sds-pagination__button[disabled]{cursor:inherit}.sds-pagination__button--spacer:active,.sds-pagination__button--spacer:focus-visible,.sds-pagination__button--spacer:hover,.sds-pagination__button[aria-current]:active,.sds-pagination__button[aria-current]:focus-visible,.sds-pagination__button[aria-current]:hover,.sds-pagination__button[disabled]:active,.sds-pagination__button[disabled]:focus-visible,.sds-pagination__button[disabled]:hover{--pagination-border-color:var(--sds-color-surface-action)}
2
- /*# sourceMappingURL=index.css.map */
@@ -1 +0,0 @@
1
- {"version":3,"sources":["pagination.pcss"],"names":[],"mappings":"AAAA,gBACE,mCAA0C,CAC1C,yDAiEF,CA/DE,2BACE,kBAAmB,CACnB,mBAAoB,CACpB,sBAAuB,CACvB,mCAKF,CAHE,wCACE,cACF,CAGF,wBACE,kBAAmB,CAGnB,mDAAoD,CACpD,0EAA2E,CAC3E,2CAA4C,CAC5C,mCAAoC,CACpC,cAAe,CANf,mBAAoB,CAOpB,iCAAkC,CAIlC,6BAA8B,CAV9B,sBAAuB,CAOvB,kCAAmC,CAInC,SAAU,CAHV,iBAAkB,CAClB,4BAuCF,CAnCE,8BACE,+DACF,CAEA,sCACE,+BAAsC,CAEtC,kEACF,CAEA,+BACE,gEACF,CAEA,sCACE,6DAA8D,CAE9D,4CACF,CAEA,gCACE,qCACF,CAEA,wGAGE,cAOF,CALE,yYAGE,yDACF","file":"index.css","sourcesContent":[".sds-pagination {\n --pagination-background-color: transparent;\n --pagination-border-color: var(--sds-color-surface-action);\n\n &__list-item {\n align-items: center;\n display: inline-flex;\n justify-content: center;\n margin-right: var(--sds-size-base-s);\n\n &:last-of-type {\n margin-right: 0;\n }\n }\n\n &__button {\n align-items: center;\n display: inline-flex;\n justify-content: center;\n background-color: var(--pagination-background-color);\n border: var(--sds-border-size-regular) solid var(--pagination-border-color);\n border-radius: var(--sds-border-radius-full);\n color: var(--sds-color-text-default);\n cursor: pointer;\n font-size: var(--sds-size-text-s2);\n line-height: var(--sds-size-text-m);\n text-align: center;\n width: var(--sds-size-text-l);\n height: var(--sds-size-text-l);\n padding: 0;\n\n &:hover {\n --pagination-border-color: var(--sds-color-surface-action-hover);\n }\n\n &:focus-visible {\n --pagination-border-color: transparent;\n\n outline: var(--sds-size-base-xxs) dashed var(--sds-color-text-info);\n }\n\n &:active {\n --pagination-border-color: var(--sds-color-surface-action-active);\n }\n\n &[aria-current] {\n --pagination-background-color: var(--sds-color-surface-action);\n\n color: var(--sds-color-text-onsurface-action);\n }\n\n &--spacer {\n padding: var(--sds-size-padding-small);\n }\n\n &[aria-current],\n &[disabled],\n &--spacer {\n cursor: inherit;\n\n &:active,\n &:hover,\n &:focus-visible {\n --pagination-border-color: var(--sds-color-surface-action);\n }\n }\n }\n}\n"]}
package/dist/cjs/index.js DELETED
@@ -1,2 +0,0 @@
1
- "use strict";var s=require("react/jsx-runtime"),a=require("clsx");const i=({className:i,...e})=>s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 256 256",className:a("sds-icon",i),"aria-hidden":"true",...e,children:s.jsx("path",{d:"M165.66 202.34a8 8 0 0 1-11.32 11.32l-80-80a8 8 0 0 1 0-11.32l80-80a8 8 0 0 1 11.32 11.32L91.31 128Z"})}),e=({className:i,...e})=>s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 256 256",className:a("sds-icon",i),"aria-hidden":"true",...e,children:s.jsx("path",{d:"m181.66 133.66-80 80a8 8 0 0 1-11.32-11.32L164.69 128 90.34 53.66a8 8 0 0 1 11.32-11.32l80 80a8 8 0 0 1 0 11.32Z"})});exports.Pagination=({"aria-label":l,ariaLabelNext:n="Vis neste side",ariaLabelPrevious:t="Vis forrige side",ariaLabelItem:r="Vis side",count:c,currentIndex:d,limit:o=7,handleClick:m,className:x,...h})=>{const u=Math.ceil(o/2)-2-1,b=d+u,g=d-u,_=c-1-b-1,j=g-1;let p=c-1>b?b-1:b;p=j<0?p-j:p;let N=1<g?g+1:g;return N=_<0?N+_:N,s.jsx("nav",{className:a.clsx("sds-pagination",x),"aria-label":l,...h,children:s.jsxs("ol",{className:"sds-pagination__list",children:[s.jsx("li",{className:"sds-pagination__list-item",children:s.jsx("button",{className:"sds-pagination__button","aria-label":`${t} ${d}`,disabled:0===d,onClick:()=>m(d-1),children:s.jsx(i,{})})}),[...Array(c).keys()].map((a=>0===a||a===c-1||a>=N&&a<=p?s.jsx("li",{className:"sds-pagination__list-item",children:s.jsx("button",{className:"sds-pagination__button","aria-current":a===d||void 0,"aria-label":`${r} ${a+1}`,disabled:a===d,onClick:()=>m(a),children:a+1})},a):a==p+1||a==N-1?s.jsx("li",{className:"sds-pagination__list-item",children:s.jsx("div",{className:"sds-pagination__button--spacer",children:"…"})},a):void 0)),s.jsx("li",{className:"sds-pagination__list-item",children:s.jsx("button",{className:"sds-pagination__button","aria-label":`${n} ${d+2}`,disabled:d===c-1,onClick:()=>m(d+1),children:s.jsx(e,{})})})]})})};
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../../../icons/dist/index.js","../../Pagination.tsx"],"sourcesContent":["import{jsx as a}from\"react/jsx-runtime\";import s from\"clsx\";const l=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M128 24a104 104 0 1 0 104 104A104.11 104.11 0 0 0 128 24Zm0 192a88 88 0 1 1 88-88 88.1 88.1 0 0 1-88 88Zm48-88a8 8 0 0 1-8 8h-60.69l18.35 18.34a8 8 0 0 1-11.32 11.32l-32-32a8 8 0 0 1 0-11.32l32-32a8 8 0 0 1 11.32 11.32L107.31 120H168a8 8 0 0 1 8 8Z\"})}),e=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M128 24a104 104 0 1 0 104 104A104.11 104.11 0 0 0 128 24Zm0 192a88 88 0 1 1 88-88 88.1 88.1 0 0 1-88 88Zm45.66-93.66a8 8 0 0 1 0 11.32l-32 32a8 8 0 0 1-11.32-11.32L148.69 136H88a8 8 0 0 1 0-16h60.69l-18.35-18.34a8 8 0 0 1 11.32-11.32Z\"})}),r=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M224 128a8 8 0 0 1-8 8H59.31l58.35 58.34a8 8 0 0 1-11.32 11.32l-72-72a8 8 0 0 1 0-11.32l72-72a8 8 0 0 1 11.32 11.32L59.31 120H216a8 8 0 0 1 8 8Z\"})}),i=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"m221.66 133.66-72 72a8 8 0 0 1-11.32-11.32L196.69 136H40a8 8 0 0 1 0-16h156.69l-58.35-58.34a8 8 0 0 1 11.32-11.32l72 72a8 8 0 0 1 0 11.32Z\"})}),c=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M224 104a8 8 0 0 1-16 0V59.32l-66.33 66.34a8 8 0 0 1-11.32-11.32L196.68 48H152a8 8 0 0 1 0-16h64a8 8 0 0 1 8 8Zm-40 24a8 8 0 0 0-8 8v72H48V80h72a8 8 0 0 0 0-16H48a16 16 0 0 0-16 16v128a16 16 0 0 0 16 16h128a16 16 0 0 0 16-16v-72a8 8 0 0 0-8-8Z\"})}),o=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M232 144a64.07 64.07 0 0 1-64 64H80a8 8 0 0 1 0-16h88a48 48 0 0 0 0-96H51.31l34.35 34.34a8 8 0 0 1-11.32 11.32l-48-48a8 8 0 0 1 0-11.32l48-48a8 8 0 0 1 11.32 11.32L51.31 80H168a64.07 64.07 0 0 1 64 64Z\"})}),n=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M170.34 130.34 204.69 96H88a48 48 0 0 0 0 96h88a8 8 0 0 1 0 16H88a64 64 0 0 1 0-128h116.69l-34.35-34.34a8 8 0 0 1 11.32-11.32l48 48a8 8 0 0 1 0 11.32l-48 48a8 8 0 0 1-11.32-11.32Z\"})}),h=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M224 71.1a8 8 0 0 1-10.78-3.42 94.13 94.13 0 0 0-33.46-36.91 8 8 0 1 1 8.54-13.54 111.46 111.46 0 0 1 39.12 43.09A8 8 0 0 1 224 71.1ZM35.71 72a8 8 0 0 0 7.1-4.32 94.13 94.13 0 0 1 33.46-36.91 8 8 0 1 0-8.54-13.54 111.46 111.46 0 0 0-39.12 43.09A8 8 0 0 0 35.71 72Zm186.1 103.94A16 16 0 0 1 208 200h-40.8a40 40 0 0 1-78.4 0H48a16 16 0 0 1-13.79-24.06C43.22 160.39 48 138.28 48 112a80 80 0 0 1 160 0c0 26.27 4.78 48.38 13.81 63.94ZM150.62 200h-45.24a24 24 0 0 0 45.24 0ZM208 184c-10.64-18.27-16-42.49-16-72a64 64 0 0 0-128 0c0 29.52-5.38 53.74-16 72Z\"})}),t=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M221.8 175.94c-5.55-9.56-13.8-36.61-13.8-71.94a80 80 0 1 0-160 0c0 35.34-8.26 62.38-13.81 71.94A16 16 0 0 0 48 200h40.81a40 40 0 0 0 78.38 0H208a16 16 0 0 0 13.8-24.06ZM128 216a24 24 0 0 1-22.62-16h45.24A24 24 0 0 1 128 216Zm-80-32c7.7-13.24 16-43.92 16-80a64 64 0 1 1 128 0c0 36.05 8.28 66.73 16 80Z\"})}),w=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M184 32H72a16 16 0 0 0-16 16v176a8 8 0 0 0 12.24 6.78L128 193.43l59.77 37.35A8 8 0 0 0 200 224V48a16 16 0 0 0-16-16Z\"})}),d=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M184 32H72a16 16 0 0 0-16 16v176a8 8 0 0 0 12.24 6.78L128 193.43l59.77 37.35A8 8 0 0 0 200 224V48a16 16 0 0 0-16-16Zm0 177.57-51.77-32.35a8 8 0 0 0-8.48 0L72 209.57V48h112Z\"})}),m=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M208 32h-24v-8a8 8 0 0 0-16 0v8H88v-8a8 8 0 0 0-16 0v8H48a16 16 0 0 0-16 16v160a16 16 0 0 0 16 16h160a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16ZM72 48v8a8 8 0 0 0 16 0v-8h80v8a8 8 0 0 0 16 0v-8h24v32H48V48Zm136 160H48V96h160v112Z\"})}),v=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M208 32h-24v-8a8 8 0 0 0-16 0v8H88v-8a8 8 0 0 0-16 0v8H48a16 16 0 0 0-16 16v160a16 16 0 0 0 16 16h160a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16ZM72 48v8a8 8 0 0 0 16 0v-8h80v8a8 8 0 0 0 16 0v-8h24v32H48V48Zm136 160H48V96h160v112Zm-48-56a8 8 0 0 1-8 8h-16v16a8 8 0 0 1-16 0v-16h-16a8 8 0 0 1 0-16h16v-16a8 8 0 0 1 16 0v16h16a8 8 0 0 1 8 8Z\"})}),g=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M128 24a104 104 0 1 0 104 104A104.11 104.11 0 0 0 128 24Zm0 192a88 88 0 1 1 88-88 88.1 88.1 0 0 1-88 88Zm45.66-109.66a8 8 0 0 1 0 11.32l-40 40a8 8 0 0 1-11.32 0l-40-40a8 8 0 0 1 11.32-11.32L128 140.69l34.34-34.35a8 8 0 0 1 11.32 0Z\"})}),Z=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M128 24a104 104 0 1 0 104 104A104.11 104.11 0 0 0 128 24Zm0 192a88 88 0 1 1 88-88 88.1 88.1 0 0 1-88 88Zm21.66-122.34L115.31 128l34.35 34.34a8 8 0 0 1-11.32 11.32l-40-40a8 8 0 0 1 0-11.32l40-40a8 8 0 0 1 11.32 11.32Z\"})}),p=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M128 24a104 104 0 1 0 104 104A104.11 104.11 0 0 0 128 24Zm0 192a88 88 0 1 1 88-88 88.1 88.1 0 0 1-88 88Zm29.66-93.66a8 8 0 0 1 0 11.32l-40 40a8 8 0 0 1-11.32-11.32L140.69 128l-34.35-34.34a8 8 0 0 1 11.32-11.32Z\"})}),u=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M128 24a104 104 0 1 0 104 104A104.11 104.11 0 0 0 128 24Zm0 192a88 88 0 1 1 88-88 88.1 88.1 0 0 1-88 88Zm45.66-77.66a8 8 0 0 1-11.32 11.32L128 115.31l-34.34 34.35a8 8 0 0 1-11.32-11.32l40-40a8 8 0 0 1 11.32 0Z\"})}),x=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"m213.66 101.66-80 80a8 8 0 0 1-11.32 0l-80-80a8 8 0 0 1 11.32-11.32L128 164.69l74.34-74.35a8 8 0 0 1 11.32 11.32Z\"})}),N=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M165.66 202.34a8 8 0 0 1-11.32 11.32l-80-80a8 8 0 0 1 0-11.32l80-80a8 8 0 0 1 11.32 11.32L91.31 128Z\"})}),C=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"m181.66 133.66-80 80a8 8 0 0 1-11.32-11.32L164.69 128 90.34 53.66a8 8 0 0 1 11.32-11.32l80 80a8 8 0 0 1 0 11.32Z\"})}),M=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M213.66 165.66a8 8 0 0 1-11.32 0L128 91.31l-74.34 74.35a8 8 0 0 1-11.32-11.32l80-80a8 8 0 0 1 11.32 0l80 80a8 8 0 0 1 0 11.32Z\"})}),H=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M173.66 98.34a8 8 0 0 1 0 11.32l-56 56a8 8 0 0 1-11.32 0l-24-24a8 8 0 0 1 11.32-11.32L112 148.69l50.34-50.35a8 8 0 0 1 11.32 0ZM232 128A104 104 0 1 1 128 24a104.11 104.11 0 0 1 104 104Zm-16 0a88 88 0 1 0-88 88 88.1 88.1 0 0 0 88-88Z\"})}),L=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"m229.66 77.66-128 128a8 8 0 0 1-11.32 0l-56-56a8 8 0 0 1 11.32-11.32L96 188.69 218.34 66.34a8 8 0 0 1 11.32 11.32Z\"})}),f=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M128 24a104 104 0 1 0 104 104A104.11 104.11 0 0 0 128 24Zm0 192a88 88 0 1 1 88-88 88.1 88.1 0 0 1-88 88Z\"})}),B=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M128 24a104 104 0 1 0 104 104A104.11 104.11 0 0 0 128 24Zm0 192a88 88 0 1 1 88-88 88.1 88.1 0 0 1-88 88Zm64-88a8 8 0 0 1-8 8h-56a8 8 0 0 1-8-8V72a8 8 0 0 1 16 0v48h48a8 8 0 0 1 8 8Z\"})}),I=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M216 32H88a8 8 0 0 0-8 8v40H40a8 8 0 0 0-8 8v128a8 8 0 0 0 8 8h128a8 8 0 0 0 8-8v-40h40a8 8 0 0 0 8-8V40a8 8 0 0 0-8-8Zm-56 176H48V96h112Zm48-48h-32V88a8 8 0 0 0-8-8H96V48h112Z\"})}),V=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M104 60a12 12 0 1 1-12-12 12 12 0 0 1 12 12Zm60 12a12 12 0 1 0-12-12 12 12 0 0 0 12 12Zm-72 44a12 12 0 1 0 12 12 12 12 0 0 0-12-12Zm72 0a12 12 0 1 0 12 12 12 12 0 0 0-12-12Zm-72 68a12 12 0 1 0 12 12 12 12 0 0 0-12-12Zm72 0a12 12 0 1 0 12 12 12 12 0 0 0-12-12Z\"})}),A=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M128 24a104 104 0 1 0 104 104A104.11 104.11 0 0 0 128 24Zm0 192a88 88 0 1 1 88-88 88.1 88.1 0 0 1-88 88Zm12-88a12 12 0 1 1-12-12 12 12 0 0 1 12 12Zm44 0a12 12 0 1 1-12-12 12 12 0 0 1 12 12Zm-88 0a12 12 0 1 1-12-12 12 12 0 0 1 12 12Z\"})}),S=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M140 128a12 12 0 1 1-12-12 12 12 0 0 1 12 12Zm56-12a12 12 0 1 0 12 12 12 12 0 0 0-12-12Zm-136 0a12 12 0 1 0 12 12 12 12 0 0 0-12-12Z\"})}),k=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M224 152v56a16 16 0 0 1-16 16H48a16 16 0 0 1-16-16v-56a8 8 0 0 1 16 0v56h160v-56a8 8 0 0 1 16 0Zm-101.66 5.66a8 8 0 0 0 11.32 0l40-40a8 8 0 0 0-11.32-11.32L136 132.69V40a8 8 0 0 0-16 0v92.69l-26.34-26.35a8 8 0 0 0-11.32 11.32Z\"})}),D=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M224 48H32a8 8 0 0 0-8 8v136a16 16 0 0 0 16 16h176a16 16 0 0 0 16-16V56a8 8 0 0 0-8-8Zm-96 85.15L52.57 64h150.86ZM98.71 128 40 181.81V74.19Zm11.84 10.85 12 11.05a8 8 0 0 0 10.82 0l12-11.05 58 53.15H52.57ZM157.29 128 216 74.18v107.64Z\"})}),P=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M216 112v96a16 16 0 0 1-16 16H56a16 16 0 0 1-16-16v-96a16 16 0 0 1 16-16h24a8 8 0 0 1 0 16H56v96h144v-96h-24a8 8 0 0 1 0-16h24a16 16 0 0 1 16 16ZM93.66 69.66 120 43.31V136a8 8 0 0 0 16 0V43.31l26.34 26.35a8 8 0 0 0 11.32-11.32l-40-40a8 8 0 0 0-11.32 0l-40 40a8 8 0 0 0 11.32 11.32Z\"})}),U=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M219.31 80 176 36.69A15.86 15.86 0 0 0 164.69 32H48a16 16 0 0 0-16 16v160a16 16 0 0 0 16 16h160a16 16 0 0 0 16-16V91.31A15.86 15.86 0 0 0 219.31 80ZM168 208H88v-56h80Zm40 0h-24v-56a16 16 0 0 0-16-16H88a16 16 0 0 0-16 16v56H48V48h116.69L208 91.31ZM160 72a8 8 0 0 1-8 8H96a8 8 0 0 1 0-16h56a8 8 0 0 1 8 8Z\"})}),q=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M230.6 49.53A15.81 15.81 0 0 0 216 40H40a16 16 0 0 0-11.81 26.76l.08.09L96 139.17V216a16 16 0 0 0 24.87 13.32l32-21.34a16 16 0 0 0 7.13-13.32v-55.49l67.74-72.32.08-.09a15.8 15.8 0 0 0 2.78-17.23ZM40 56Zm108.34 72.28a15.92 15.92 0 0 0-4.34 10.89v55.49L112 216v-76.83a15.92 15.92 0 0 0-4.32-10.94L40 56h176Z\"})}),R=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M128 80a48 48 0 1 0 48 48 48.05 48.05 0 0 0-48-48Zm0 80a32 32 0 1 1 32-32 32 32 0 0 1-32 32Zm88-29.84q.06-2.16 0-4.32l14.92-18.64a8 8 0 0 0 1.48-7.06 107.21 107.21 0 0 0-10.88-26.25 8 8 0 0 0-6-3.93l-23.72-2.64q-1.48-1.56-3-3L186 40.54a8 8 0 0 0-3.94-6 107.71 107.71 0 0 0-26.25-10.87 8 8 0 0 0-7.06 1.49L130.16 40h-4.32L107.2 25.11a8 8 0 0 0-7.06-1.48 107.6 107.6 0 0 0-26.25 10.88 8 8 0 0 0-3.93 6l-2.64 23.76q-1.56 1.49-3 3L40.54 70a8 8 0 0 0-6 3.94 107.71 107.71 0 0 0-10.87 26.25 8 8 0 0 0 1.49 7.06L40 125.84v4.32L25.11 148.8a8 8 0 0 0-1.48 7.06 107.21 107.21 0 0 0 10.88 26.25 8 8 0 0 0 6 3.93l23.72 2.64q1.49 1.56 3 3L70 215.46a8 8 0 0 0 3.94 6 107.71 107.71 0 0 0 26.25 10.87 8 8 0 0 0 7.06-1.49L125.84 216q2.16.06 4.32 0l18.64 14.92a8 8 0 0 0 7.06 1.48 107.21 107.21 0 0 0 26.25-10.88 8 8 0 0 0 3.93-6l2.64-23.72q1.56-1.48 3-3l23.78-2.8a8 8 0 0 0 6-3.94 107.71 107.71 0 0 0 10.87-26.25 8 8 0 0 0-1.49-7.06Zm-16.1-6.5a73.93 73.93 0 0 1 0 8.68 8 8 0 0 0 1.74 5.48l14.19 17.73a91.57 91.57 0 0 1-6.23 15l-22.6 2.56a8 8 0 0 0-5.1 2.64 74.11 74.11 0 0 1-6.14 6.14 8 8 0 0 0-2.64 5.1l-2.51 22.58a91.32 91.32 0 0 1-15 6.23l-17.74-14.19a8 8 0 0 0-5-1.75h-.48a73.93 73.93 0 0 1-8.68 0 8 8 0 0 0-5.48 1.74l-17.78 14.2a91.57 91.57 0 0 1-15-6.23L82.89 187a8 8 0 0 0-2.64-5.1 74.11 74.11 0 0 1-6.14-6.14 8 8 0 0 0-5.1-2.64l-22.58-2.52a91.32 91.32 0 0 1-6.23-15l14.19-17.74a8 8 0 0 0 1.74-5.48 73.93 73.93 0 0 1 0-8.68 8 8 0 0 0-1.74-5.48L40.2 100.45a91.57 91.57 0 0 1 6.23-15L69 82.89a8 8 0 0 0 5.1-2.64 74.11 74.11 0 0 1 6.14-6.14A8 8 0 0 0 82.89 69l2.51-22.57a91.32 91.32 0 0 1 15-6.23l17.74 14.19a8 8 0 0 0 5.48 1.74 73.93 73.93 0 0 1 8.68 0 8 8 0 0 0 5.48-1.74l17.77-14.19a91.57 91.57 0 0 1 15 6.23L173.11 69a8 8 0 0 0 2.64 5.1 74.11 74.11 0 0 1 6.14 6.14 8 8 0 0 0 5.1 2.64l22.58 2.51a91.32 91.32 0 0 1 6.23 15l-14.19 17.74a8 8 0 0 0-1.74 5.53Z\"})}),y=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M128 24a104 104 0 1 0 104 104A104.11 104.11 0 0 0 128 24Zm0 192a88 88 0 1 1 88-88 88.1 88.1 0 0 1-88 88Zm16-40a8 8 0 0 1-8 8 16 16 0 0 1-16-16v-40a8 8 0 0 1 0-16 16 16 0 0 1 16 16v40a8 8 0 0 1 8 8Zm-32-92a12 12 0 1 1 12 12 12 12 0 0 1-12-12Z\"})}),F=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M165.66 90.34a8 8 0 0 1 0 11.32l-64 64a8 8 0 0 1-11.32-11.32l64-64a8 8 0 0 1 11.32 0ZM215.6 40.4a56 56 0 0 0-79.2 0l-30.06 30.05a8 8 0 0 0 11.32 11.32l30.06-30a40 40 0 0 1 56.57 56.56l-30.07 30.06a8 8 0 0 0 11.31 11.32l30.07-30.11a56 56 0 0 0 0-79.2Zm-77.26 133.82-30.06 30.06a40 40 0 1 1-56.56-56.57l30.05-30.05a8 8 0 0 0-11.32-11.32L40.4 136.4a56 56 0 0 0 79.2 79.2l30.06-30.07a8 8 0 0 0-11.32-11.31Z\"})}),G=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M224 128a8 8 0 0 1-8 8H40a8 8 0 0 1 0-16h176a8 8 0 0 1 8 8ZM40 72h176a8 8 0 0 0 0-16H40a8 8 0 0 0 0 16Zm176 112H40a8 8 0 0 0 0 16h176a8 8 0 0 0 0-16Z\"})}),O=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M208 80H96V56a32 32 0 0 1 32-32c15.37 0 29.2 11 32.16 25.59a8 8 0 0 0 15.68-3.18C171.32 24.15 151.2 8 128 8a48.05 48.05 0 0 0-48 48v24H48a16 16 0 0 0-16 16v112a16 16 0 0 0 16 16h160a16 16 0 0 0 16-16V96a16 16 0 0 0-16-16Zm0 128H48V96h160v112Z\"})}),T=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M208 80h-32V56a48 48 0 0 0-96 0v24H48a16 16 0 0 0-16 16v112a16 16 0 0 0 16 16h160a16 16 0 0 0 16-16V96a16 16 0 0 0-16-16ZM96 56a32 32 0 0 1 64 0v24H96Zm112 152H48V96h160v112Z\"})}),E=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"m229.66 218.34-50.07-50.06a88.11 88.11 0 1 0-11.31 11.31l50.06 50.07a8 8 0 0 0 11.32-11.32ZM40 112a72 72 0 1 1 72 72 72.08 72.08 0 0 1-72-72Z\"})}),X=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M128 64a40 40 0 1 0 40 40 40 40 0 0 0-40-40Zm0 64a24 24 0 1 1 24-24 24 24 0 0 1-24 24Zm0-112a88.1 88.1 0 0 0-88 88c0 31.4 14.51 64.68 42 96.25a254.19 254.19 0 0 0 41.45 38.3 8 8 0 0 0 9.18 0 254.19 254.19 0 0 0 41.37-38.3c27.45-31.57 42-64.85 42-96.25a88.1 88.1 0 0 0-88-88Zm0 206c-16.53-13-72-60.75-72-118a72 72 0 0 1 144 0c0 57.23-55.47 105-72 118Z\"})}),j=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M176 128a8 8 0 0 1-8 8H88a8 8 0 0 1 0-16h80a8 8 0 0 1 8 8Zm56 0A104 104 0 1 1 128 24a104.11 104.11 0 0 1 104 104Zm-16 0a88 88 0 1 0-88 88 88.1 88.1 0 0 0 88-88Z\"})}),W=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M224 128a8 8 0 0 1-8 8H40a8 8 0 0 1 0-16h176a8 8 0 0 1 8 8Z\"})}),b=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M209.66 122.34a8 8 0 0 1 0 11.32l-82.05 82a56 56 0 0 1-79.2-79.21l99.26-100.72a40 40 0 1 1 56.61 56.55L105 193a24 24 0 1 1-34-34l83.3-84.62a8 8 0 1 1 11.4 11.22l-83.31 84.71a8 8 0 1 0 11.27 11.36L192.93 81A24 24 0 1 0 159 47L59.76 147.68a40 40 0 1 0 56.53 56.62l82.06-82a8 8 0 0 1 11.31.04Z\"})}),z=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M48 56v144a8 8 0 0 1-16 0V56a8 8 0 0 1 16 0Zm84 54.5-20 6.5V96a8 8 0 0 0-16 0v21l-20-6.5a8 8 0 0 0-5 15.22l20 6.49-12.34 17a8 8 0 1 0 12.94 9.4l12.34-17 12.34 17a8 8 0 1 0 12.94-9.4l-12.34-17 20-6.49A8 8 0 0 0 132 110.5Zm106 5.14a8 8 0 0 0-10-5.14l-20 6.5V96a8 8 0 0 0-16 0v21l-20-6.49a8 8 0 0 0-4.95 15.22l20 6.49-12.34 17a8 8 0 1 0 12.94 9.4l12.34-17 12.34 17a8 8 0 1 0 12.94-9.4l-12.34-17 20-6.49a8 8 0 0 0 5.07-10.09Z\"})}),J=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"m227.31 73.37-44.68-44.69a16 16 0 0 0-22.63 0L36.69 152A15.86 15.86 0 0 0 32 163.31V208a16 16 0 0 0 16 16h44.69a15.86 15.86 0 0 0 11.31-4.69L227.31 96a16 16 0 0 0 0-22.63ZM51.31 160 136 75.31 152.69 92 68 176.68ZM48 179.31 76.69 208H48Zm48 25.38L79.31 188 164 103.31 180.69 120Zm96-96L147.31 64l24-24L216 84.68Z\"})}),K=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"m222.37 158.46-47.11-21.11-.13-.06a16 16 0 0 0-15.17 1.4 8.12 8.12 0 0 0-.75.56L134.87 160c-15.42-7.49-31.34-23.29-38.83-38.51l20.78-24.71c.2-.25.39-.5.57-.77a16 16 0 0 0 1.32-15.06v-.12L97.54 33.64a16 16 0 0 0-16.62-9.52A56.26 56.26 0 0 0 32 80c0 79.4 64.6 144 144 144a56.26 56.26 0 0 0 55.88-48.92 16 16 0 0 0-9.51-16.62ZM176 208A128.14 128.14 0 0 1 48 80a40.2 40.2 0 0 1 34.87-40 .61.61 0 0 0 0 .12l21 47-20.67 24.74a6.13 6.13 0 0 0-.57.77 16 16 0 0 0-1 15.7c9.06 18.53 27.73 37.06 46.46 46.11a16 16 0 0 0 15.75-1.14 8.44 8.44 0 0 0 .74-.56L168.89 152l47 21.05h.11A40.21 40.21 0 0 1 176 208Z\"})}),Q=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M128 24a104 104 0 1 0 104 104A104.11 104.11 0 0 0 128 24Zm0 192a88 88 0 1 1 88-88 88.1 88.1 0 0 1-88 88Zm48-88a8 8 0 0 1-8 8h-32v32a8 8 0 0 1-16 0v-32H88a8 8 0 0 1 0-16h32V88a8 8 0 0 1 16 0v32h32a8 8 0 0 1 8 8Z\"})}),Y=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M224 128a8 8 0 0 1-8 8h-80v80a8 8 0 0 1-16 0v-80H40a8 8 0 0 1 0-16h80V40a8 8 0 0 1 16 0v80h80a8 8 0 0 1 8 8Z\"})}),$=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M222.14 58.87A8 8 0 0 0 216 56H54.68l-4.89-26.86A16 16 0 0 0 34.05 16H16a8 8 0 0 0 0 16h18l25.56 140.29a24 24 0 0 0 5.33 11.27 28 28 0 1 0 44.4 8.44h45.42a27.75 27.75 0 0 0-2.71 12 28 28 0 1 0 28-28H83.17a8 8 0 0 1-7.87-6.57L72.13 152h116a24 24 0 0 0 23.61-19.71l12.16-66.86a8 8 0 0 0-1.76-6.56ZM96 204a12 12 0 1 1-12-12 12 12 0 0 1 12 12Zm96 0a12 12 0 1 1-12-12 12 12 0 0 1 12 12Zm4-74.57a8 8 0 0 1-7.9 6.57H69.22L57.59 72h148.82Z\"})}),_=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"m141.66 133.66-40 40a8 8 0 0 1-11.32-11.32L116.69 136H24a8 8 0 0 1 0-16h92.69L90.34 93.66a8 8 0 0 1 11.32-11.32l40 40a8 8 0 0 1 0 11.32ZM192 32h-56a8 8 0 0 0 0 16h56v160h-56a8 8 0 0 0 0 16h56a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16Z\"})}),aa=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M112 216a8 8 0 0 1-8 8H48a16 16 0 0 1-16-16V48a16 16 0 0 1 16-16h56a8 8 0 0 1 0 16H48v160h56a8 8 0 0 1 8 8Zm109.66-93.66-40-40a8 8 0 0 0-11.32 11.32L196.69 120H104a8 8 0 0 0 0 16h92.69l-26.35 26.34a8 8 0 0 0 11.32 11.32l40-40a8 8 0 0 0 0-11.32Z\"})}),sa=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M64 105V40a8 8 0 0 0-16 0v65a32 32 0 0 0 0 62v49a8 8 0 0 0 16 0v-49a32 32 0 0 0 0-62Zm-8 47a16 16 0 1 1 16-16 16 16 0 0 1-16 16Zm80-95V40a8 8 0 0 0-16 0v17a32 32 0 0 0 0 62v97a8 8 0 0 0 16 0v-97a32 32 0 0 0 0-62Zm-8 47a16 16 0 1 1 16-16 16 16 0 0 1-16 16Zm104 64a32.06 32.06 0 0 0-24-31V40a8 8 0 0 0-16 0v97a32 32 0 0 0 0 62v17a8 8 0 0 0 16 0v-17a32.06 32.06 0 0 0 24-31Zm-32 16a16 16 0 1 1 16-16 16 16 0 0 1-16 16Z\"})}),la=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M128 128a8 8 0 0 1-8 8H48a8 8 0 0 1 0-16h72a8 8 0 0 1 8 8ZM48 72h136a8 8 0 0 0 0-16H48a8 8 0 0 0 0 16Zm56 112H48a8 8 0 0 0 0 16h56a8 8 0 0 0 0-16Zm125.66-21.66a8 8 0 0 0-11.32 0L192 188.69V112a8 8 0 0 0-16 0v76.69l-26.34-26.35a8 8 0 0 0-11.32 11.32l40 40a8 8 0 0 0 11.32 0l40-40a8 8 0 0 0 0-11.32Z\"})}),ea=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M40 128a8 8 0 0 1 8-8h72a8 8 0 0 1 0 16H48a8 8 0 0 1-8-8Zm8-56h56a8 8 0 0 0 0-16H48a8 8 0 0 0 0 16Zm136 112H48a8 8 0 0 0 0 16h136a8 8 0 0 0 0-16Zm45.66-101.66-40-40a8 8 0 0 0-11.32 0l-40 40a8 8 0 0 0 11.32 11.32L176 67.31V144a8 8 0 0 0 16 0V67.31l26.34 26.35a8 8 0 0 0 11.32-11.32Z\"})}),ra=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M136 32v32a8 8 0 0 1-16 0V32a8 8 0 0 1 16 0Zm88 88h-32a8 8 0 0 0 0 16h32a8 8 0 0 0 0-16Zm-45.09 47.6a8 8 0 0 0-11.31 11.31l22.62 22.63a8 8 0 0 0 11.32-11.32ZM128 184a8 8 0 0 0-8 8v32a8 8 0 0 0 16 0v-32a8 8 0 0 0-8-8Zm-50.91-16.4-22.63 22.62a8 8 0 0 0 11.32 11.32l22.62-22.63a8 8 0 0 0-11.31-11.31ZM72 128a8 8 0 0 0-8-8H32a8 8 0 0 0 0 16h32a8 8 0 0 0 8-8Zm-6.22-73.54a8 8 0 0 0-11.32 11.32L77.09 88.4A8 8 0 0 0 88.4 77.09Z\"})}),ia=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M216 48h-40v-8a24 24 0 0 0-24-24h-48a24 24 0 0 0-24 24v8H40a8 8 0 0 0 0 16h8v144a16 16 0 0 0 16 16h128a16 16 0 0 0 16-16V64h8a8 8 0 0 0 0-16ZM96 40a8 8 0 0 1 8-8h48a8 8 0 0 1 8 8v8H96Zm96 168H64V64h128Zm-80-104v64a8 8 0 0 1-16 0v-64a8 8 0 0 1 16 0Zm48 0v64a8 8 0 0 1-16 0v-64a8 8 0 0 1 16 0Z\"})}),ca=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M224 152v56a16 16 0 0 1-16 16H48a16 16 0 0 1-16-16v-56a8 8 0 0 1 16 0v56h160v-56a8 8 0 0 1 16 0ZM93.66 85.66 120 59.31V152a8 8 0 0 0 16 0V59.31l26.34 26.35a8 8 0 0 0 11.32-11.32l-40-40a8 8 0 0 0-11.32 0l-40 40a8 8 0 0 0 11.32 11.32Z\"})}),oa=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M128 24a104 104 0 1 0 104 104A104.11 104.11 0 0 0 128 24ZM74.08 197.5a64 64 0 0 1 107.84 0 87.83 87.83 0 0 1-107.84 0ZM96 120a32 32 0 1 1 32 32 32 32 0 0 1-32-32Zm97.76 66.41a79.66 79.66 0 0 0-36.06-28.75 48 48 0 1 0-59.4 0 79.66 79.66 0 0 0-36.06 28.75 88 88 0 1 1 131.52 0Z\"})}),na=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M236.8 188.09 149.35 36.22a24.76 24.76 0 0 0-42.7 0L19.2 188.09a23.51 23.51 0 0 0 0 23.72A24.35 24.35 0 0 0 40.55 224h174.9a24.35 24.35 0 0 0 21.33-12.19 23.51 23.51 0 0 0 .02-23.72Zm-13.87 15.71a8.5 8.5 0 0 1-7.48 4.2H40.55a8.5 8.5 0 0 1-7.48-4.2 7.59 7.59 0 0 1 0-7.72l87.45-151.87a8.75 8.75 0 0 1 15 0l87.45 151.87a7.59 7.59 0 0 1-.04 7.72ZM120 144v-40a8 8 0 0 1 16 0v40a8 8 0 0 1-16 0Zm20 36a12 12 0 1 1-12-12 12 12 0 0 1 12 12Z\"})}),ha=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M165.66 101.66 139.31 128l26.35 26.34a8 8 0 0 1-11.32 11.32L128 139.31l-26.34 26.35a8 8 0 0 1-11.32-11.32L116.69 128l-26.35-26.34a8 8 0 0 1 11.32-11.32L128 116.69l26.34-26.35a8 8 0 0 1 11.32 11.32ZM232 128A104 104 0 1 1 128 24a104.11 104.11 0 0 1 104 104Zm-16 0a88 88 0 1 0-88 88 88.1 88.1 0 0 0 88-88Z\"})}),ta=({className:l,...e})=>a(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",fill:\"currentColor\",viewBox:\"0 0 256 256\",className:s(\"sds-icon\",l),\"aria-hidden\":\"true\",...e,children:a(\"path\",{d:\"M205.66 194.34a8 8 0 0 1-11.32 11.32L128 139.31l-66.34 66.35a8 8 0 0 1-11.32-11.32L116.69 128 50.34 61.66a8 8 0 0 1 11.32-11.32L128 116.69l66.34-66.35a8 8 0 0 1 11.32 11.32L139.31 128Z\"})}),wa=({className:l,...e})=>a(ra,{className:s(\"sds-icon sds-icon--spinner\",l),...e});export{l as ArrowCircleLeftIcon,e as ArrowCircleRightIcon,r as ArrowLeftIcon,i as ArrowRightIcon,c as ArrowSquareOutIcon,o as ArrowUUpLeftIcon,n as ArrowUUpRightIcon,t as BellIcon,h as BellRingingIcon,w as BookmarkSimpleFillIcon,d as BookmarkSimpleIcon,m as CalendarBlankIcon,v as CalendarPlusIcon,g as CaretCircleDownIcon,Z as CaretCircleLeftIcon,p as CaretCircleRightIcon,u as CaretCircleUpIcon,x as CaretDownIcon,N as CaretLeftIcon,C as CaretRightIcon,M as CaretUpIcon,H as CheckCircleIcon,L as CheckIcon,f as CircleIcon,B as ClockIcon,I as CopyIcon,V as DotsSixVerticalIcon,A as DotsThreeCircleIcon,S as DotsThreeIcon,k as DownloadSimpleIcon,D as EnvelopeIcon,P as ExportIcon,U as FloppyDiskIcon,q as FunnelIcon,R as GearIcon,y as InfoIcon,F as LinkSimpleIcon,G as ListIcon,T as LockSimpleIcon,O as LockSimpleOpenIcon,E as MagnifyingGlassIcon,X as MapPinIcon,j as MinusCircleIcon,W as MinusIcon,b as PaperclipIcon,z as PasswordIcon,J as PencilIcon,K as PhoneIcon,Q as PlusCircleIcon,Y as PlusIcon,$ as ShoppingCartIcon,_ as SignInIcon,aa as SignOutIcon,sa as SlidersIcon,la as SortAscendingIcon,ea as SortDescendingIcon,ra as SpinnerGapIcon,wa as SpinnerIcon,ia as TrashIcon,ca as UploadSimpleIcon,oa as UserCircleIcon,na as WarningIcon,ha as XCircleIcon,ta as XIcon};\n//# sourceMappingURL=index.js.map\n","import React, { HTMLAttributes } from \"react\";\nimport { CaretRightIcon, CaretLeftIcon } from \"@sikt/sds-icons\";\nimport { clsx } from \"clsx\";\nimport \"./pagination.pcss\";\n\nexport interface PaginationProps extends HTMLAttributes<HTMLElement> {\n \"aria-label\": string;\n ariaLabelPrevious?: string;\n ariaLabelNext?: string;\n ariaLabelItem?: string;\n count: number;\n currentIndex: number;\n /** Total limit of elements, this includes previous/next/first/last. Minimum is 7 (previous/next/first/last/current/) */\n limit?: number;\n handleClick: (index: number) => void;\n className?: string;\n}\n\nexport const Pagination = ({\n \"aria-label\": ariaLabel,\n ariaLabelNext = \"Vis neste side\",\n ariaLabelPrevious = \"Vis forrige side\",\n ariaLabelItem = \"Vis side\",\n count,\n currentIndex,\n limit = 7,\n handleClick,\n className,\n ...rest\n}: PaginationProps) => {\n const constantCount = 2;\n const delimiter = Math.ceil(limit / 2) - constantCount - 1;\n const max = currentIndex + delimiter;\n const min = currentIndex - delimiter;\n const hasMaxSpacer = count - 1 > max;\n const hasMinSpacer = 1 < min;\n const maxModifier = count - 1 - max - 1;\n const minModifier = min - 1;\n const hasLessBeforeIndex = minModifier < 0;\n const hasLessAfterIndex = maxModifier < 0;\n let maxLimit = hasMaxSpacer ? max - 1 : max;\n maxLimit = hasLessBeforeIndex ? maxLimit - minModifier : maxLimit;\n let minLimit = hasMinSpacer ? min + 1 : min;\n minLimit = hasLessAfterIndex ? minLimit + maxModifier : minLimit;\n\n return (\n <nav\n className={clsx(\"sds-pagination\", className)}\n aria-label={ariaLabel}\n {...rest}\n >\n <ol className=\"sds-pagination__list\">\n <li className=\"sds-pagination__list-item\">\n <button\n className=\"sds-pagination__button\"\n aria-label={`${ariaLabelPrevious} ${currentIndex}`}\n disabled={currentIndex === 0}\n onClick={() => handleClick(currentIndex - 1)}\n >\n <CaretLeftIcon />\n </button>\n </li>\n {[...Array(count).keys()].map((value) => {\n if (\n value === 0 ||\n value === count - 1 ||\n (value >= minLimit && value <= maxLimit)\n ) {\n return (\n <li className=\"sds-pagination__list-item\" key={value}>\n <button\n className=\"sds-pagination__button\"\n aria-current={value === currentIndex ? true : undefined}\n aria-label={`${ariaLabelItem} ${value + 1}`}\n disabled={value === currentIndex}\n onClick={() => handleClick(value)}\n >\n {value + 1}\n </button>\n </li>\n );\n } else if (value == maxLimit + 1 || value == minLimit - 1) {\n return (\n <li className=\"sds-pagination__list-item\" key={value}>\n <div className=\"sds-pagination__button--spacer\">&hellip;</div>\n </li>\n );\n }\n })}\n <li className=\"sds-pagination__list-item\">\n <button\n className=\"sds-pagination__button\"\n aria-label={`${ariaLabelNext} ${currentIndex + 2}`}\n disabled={currentIndex === count - 1}\n onClick={() => handleClick(currentIndex + 1)}\n >\n <CaretRightIcon />\n </button>\n </li>\n </ol>\n </nav>\n );\n};\n"],"names":["N","className","l","e","a","xmlns","fill","viewBox","s","children","jsx","d","C","ariaLabel","ariaLabelNext","ariaLabelPrevious","ariaLabelItem","count","currentIndex","limit","handleClick","rest","delimiter","Math","ceil","max","min","maxModifier","minModifier","maxLimit","minLimit","_jsx","clsx","_jsxs","disabled","onClick","CaretLeftIcon","Array","keys","map","value","undefined","CaretRightIcon"],"mappings":"kEAAkE,MAA2zOA,EAAE,EAAEC,UAAUC,KAAKC,KAAKC,EAAAA,IAAE,MAAM,CAACC,MAAM,6BAA6BC,KAAK,eAAeC,QAAQ,cAAcN,UAAUO,EAAE,WAAWN,GAAG,cAAc,UAAUC,EAAEM,SAASL,EAACM,IAAC,OAAO,CAACC,EAAE,2GAA2GC,EAAE,EAAEX,UAAUC,KAAKC,KAAKC,EAAAA,IAAE,MAAM,CAACC,MAAM,6BAA6BC,KAAK,eAAeC,QAAQ,cAAcN,UAAUO,EAAE,WAAWN,GAAG,cAAc,UAAUC,EAAEM,SAASL,EAAAA,IAAE,OAAO,CAACO,EAAE,0ICkB5zP,EACxB,aAAcE,EACdC,gBAAgB,iBAChBC,oBAAoB,mBACpBC,gBAAgB,WAChBC,QACAC,eACAC,QAAQ,EACRC,cACAnB,eACGoB,MAEH,MACMC,EAAYC,KAAKC,KAAKL,EAAQ,GADd,EACmC,EACnDM,EAAMP,EAAeI,EACrBI,EAAMR,EAAeI,EAGrBK,EAAcV,EAAQ,EAAIQ,EAAM,EAChCG,EAAcF,EAAM,EAG1B,IAAIG,EANiBZ,EAAQ,EAAIQ,EAMHA,EAAM,EAAIA,EACxCI,EAH2BD,EAAc,EAGTC,EAAWD,EAAcC,EACzD,IAAIC,EAPiB,EAAIJ,EAOKA,EAAM,EAAIA,EAGxC,OAFAI,EAJ0BH,EAAc,EAITG,EAAWH,EAAcG,EAGtDC,EACErB,IAAA,MAAA,CAAAT,UAAW+B,EAAIA,KAAC,iBAAkB/B,gBACtBY,KACRQ,EAAIZ,SAERwB,EAAAA,WAAIhC,UAAU,uBAAsBQ,SAAA,CAClCsB,EAAAA,UAAI9B,UAAU,4BAA2BQ,SACvCsB,EAAAA,cACE9B,UAAU,yBAAwB,aACtB,GAAGc,KAAqBG,IACpCgB,SAA2B,IAAjBhB,EACViB,QAAS,IAAMf,EAAYF,EAAe,GAE1CT,SAAAsB,EAAArB,IAAC0B,EAAgB,CAAA,OAGpB,IAAIC,MAAMpB,GAAOqB,QAAQC,KAAKC,GAEjB,IAAVA,GACAA,IAAUvB,EAAQ,GACjBuB,GAASV,GAAYU,GAASX,EAG7BE,EAAAA,IAAI,KAAA,CAAA9B,UAAU,qCACZ8B,EAAAA,IACE,SAAA,CAAA9B,UAAU,yBACI,eAAAuC,IAAUtB,QAAsBuB,EAAS,aAC3C,GAAGzB,KAAiBwB,EAAQ,IACxCN,SAAUM,IAAUtB,EACpBiB,QAAS,IAAMf,EAAYoB,GAAM/B,SAEhC+B,EAAQ,KARkCA,GAYxCA,GAASX,EAAW,GAAKW,GAASV,EAAW,EAEpDC,EAAAA,IAAA,KAAA,CAAI9B,UAAU,4BACZQ,SAAAsB,MAAA,MAAA,CAAK9B,UAAU,iCAA+CQ,SAAA,OADjB+B,QAF5C,IAQTT,EAAIrB,IAAA,KAAA,CAAAT,UAAU,4BAA2BQ,SACvCsB,MACE,SAAA,CAAA9B,UAAU,sCACE,GAAGa,KAAiBI,EAAe,IAC/CgB,SAAUhB,IAAiBD,EAAQ,EACnCkB,QAAS,IAAMf,EAAYF,EAAe,GAAET,SAE5CsB,MAACW,EAAc,YAKvB"}