@navikt/ds-react 2.1.0 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_docs.json +25 -21
- package/esm/guide-panel/Illustration.d.ts +3 -2
- package/esm/guide-panel/Illustration.js.map +1 -1
- package/esm/loader/Loader.d.ts +2 -1
- package/esm/loader/Loader.js.map +1 -1
- package/package.json +2 -2
- package/src/guide-panel/Illustration.tsx +6 -2
- package/src/loader/Loader.tsx +6 -1
package/_docs.json
CHANGED
|
@@ -3712,25 +3712,6 @@
|
|
|
3712
3712
|
"filePath": "src/loader/Loader.tsx",
|
|
3713
3713
|
"displayName": "Loader",
|
|
3714
3714
|
"props": {
|
|
3715
|
-
"className": {
|
|
3716
|
-
"defaultValue": null,
|
|
3717
|
-
"description": "",
|
|
3718
|
-
"name": "className",
|
|
3719
|
-
"parent": {
|
|
3720
|
-
"fileName": "Designsystemet/node_modules/@types/react/index.d.ts",
|
|
3721
|
-
"name": "SVGAttributes"
|
|
3722
|
-
},
|
|
3723
|
-
"declarations": [
|
|
3724
|
-
{
|
|
3725
|
-
"fileName": "Designsystemet/node_modules/@types/react/index.d.ts",
|
|
3726
|
-
"name": "SVGAttributes"
|
|
3727
|
-
}
|
|
3728
|
-
],
|
|
3729
|
-
"required": false,
|
|
3730
|
-
"type": {
|
|
3731
|
-
"name": "string"
|
|
3732
|
-
}
|
|
3733
|
-
},
|
|
3734
3715
|
"size": {
|
|
3735
3716
|
"defaultValue": {
|
|
3736
3717
|
"value": "medium"
|
|
@@ -3815,15 +3796,38 @@
|
|
|
3815
3796
|
"name": "\"neutral\" | \"interaction\" | \"inverted\""
|
|
3816
3797
|
}
|
|
3817
3798
|
},
|
|
3799
|
+
"className": {
|
|
3800
|
+
"defaultValue": null,
|
|
3801
|
+
"description": "",
|
|
3802
|
+
"name": "className",
|
|
3803
|
+
"parent": {
|
|
3804
|
+
"fileName": "Designsystemet/node_modules/@types/react/index.d.ts",
|
|
3805
|
+
"name": "SVGAttributes"
|
|
3806
|
+
},
|
|
3807
|
+
"declarations": [
|
|
3808
|
+
{
|
|
3809
|
+
"fileName": "Designsystemet/node_modules/@types/react/index.d.ts",
|
|
3810
|
+
"name": "SVGAttributes"
|
|
3811
|
+
}
|
|
3812
|
+
],
|
|
3813
|
+
"required": false,
|
|
3814
|
+
"type": {
|
|
3815
|
+
"name": "string"
|
|
3816
|
+
}
|
|
3817
|
+
},
|
|
3818
3818
|
"ref": {
|
|
3819
3819
|
"defaultValue": null,
|
|
3820
3820
|
"description": "",
|
|
3821
3821
|
"name": "ref",
|
|
3822
3822
|
"parent": {
|
|
3823
3823
|
"fileName": "Designsystemet/node_modules/@types/react/index.d.ts",
|
|
3824
|
-
"name": "
|
|
3824
|
+
"name": "ClassAttributes"
|
|
3825
3825
|
},
|
|
3826
3826
|
"declarations": [
|
|
3827
|
+
{
|
|
3828
|
+
"fileName": "Designsystemet/node_modules/@types/react/index.d.ts",
|
|
3829
|
+
"name": "ClassAttributes"
|
|
3830
|
+
},
|
|
3827
3831
|
{
|
|
3828
3832
|
"fileName": "Designsystemet/node_modules/@types/react/index.d.ts",
|
|
3829
3833
|
"name": "RefAttributes"
|
|
@@ -3831,7 +3835,7 @@
|
|
|
3831
3835
|
],
|
|
3832
3836
|
"required": false,
|
|
3833
3837
|
"type": {
|
|
3834
|
-
"name": "
|
|
3838
|
+
"name": "((string | ((instance: SVGSVGElement | null) => void) | RefObject<SVGSVGElement>) & (((instance: SVGSVGElement | null) => void) | RefObject<...>)) | null"
|
|
3835
3839
|
}
|
|
3836
3840
|
}
|
|
3837
3841
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { SVGProps } from "react";
|
|
1
|
+
import React, { SVGProps } from "react";
|
|
2
2
|
interface SVGRProps {
|
|
3
3
|
title?: string;
|
|
4
4
|
titleId?: string;
|
|
5
5
|
}
|
|
6
|
-
export
|
|
6
|
+
export type DefaultIllustrationType = React.FunctionComponent<SVGProps<SVGSVGElement> & SVGRProps>;
|
|
7
|
+
export declare const DefaultIllustration: DefaultIllustrationType;
|
|
7
8
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Illustration.js","sourceRoot":"","sources":["../../src/guide-panel/Illustration.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"Illustration.js","sourceRoot":"","sources":["../../src/guide-panel/Illustration.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,IAAI,CAAC;AAW3B,MAAM,CAAC,MAAM,mBAAmB,GAA4B,CAAC,EAI5D,EAAE,EAAE;QAJwD,EAC3D,KAAK,EACL,OAAO,EAAE,QAAQ,OAElB,EADI,KAAK,cAHmD,oBAI5D,CADS;IAER,IAAI,OAAO,GAAuB,KAAK,EAAE,CAAC;IAC1C,OAAO,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IAEzE,OAAO,CACL,2CACE,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,KAAK,EAAC,4BAA4B,gBACvB,2BAA2B,EACtC,SAAS,EAAE,KAAK,EAChB,IAAI,EAAC,KAAK,qBACO,OAAO,IACpB,KAAK;QAER,KAAK,CAAC,CAAC,CAAC,+BAAO,EAAE,EAAE,OAAO,IAAG,KAAK,CAAS,CAAC,CAAC,CAAC,IAAI;QACnD,8BACE,QAAQ,EAAC,SAAS,EAClB,QAAQ,EAAC,SAAS,EAClB,CAAC,EAAC,umBAAumB,EACzmB,IAAI,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IAAI,EAAC,SAAS,GACd;QACF,8BACE,QAAQ,EAAC,SAAS,EAClB,QAAQ,EAAC,SAAS,EAClB,CAAC,EAAC,mEAAmE,EACrE,IAAI,EAAC,SAAS,GACd;QACF,8BACE,QAAQ,EAAC,SAAS,EAClB,QAAQ,EAAC,SAAS,EAClB,CAAC,EAAC,gyDAAgyD,EAClyD,IAAI,EAAC,OAAO,GACZ,CACE,CACP,CAAC;AACJ,CAAC,CAAC"}
|
package/esm/loader/Loader.d.ts
CHANGED
|
@@ -22,5 +22,6 @@ export interface LoaderProps extends SVGProps<SVGSVGElement> {
|
|
|
22
22
|
*/
|
|
23
23
|
variant?: "neutral" | "interaction" | "inverted";
|
|
24
24
|
}
|
|
25
|
-
export
|
|
25
|
+
export type LoaderType = React.ForwardRefExoticComponent<LoaderProps & React.RefAttributes<SVGSVGElement>>;
|
|
26
|
+
export declare const Loader: LoaderType;
|
|
26
27
|
export default Loader;
|
package/esm/loader/Loader.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Loader.js","sourceRoot":"","sources":["../../src/loader/Loader.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAY,MAAM,OAAO,CAAC;AACpD,OAAO,EAAE,MAAM,MAAM,CAAC;AACtB,OAAO,EAAE,KAAK,EAAE,MAAM,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"Loader.js","sourceRoot":"","sources":["../../src/loader/Loader.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAY,MAAM,OAAO,CAAC;AACpD,OAAO,EAAE,MAAM,MAAM,CAAC;AACtB,OAAO,EAAE,KAAK,EAAE,MAAM,IAAI,CAAC;AAsC3B,MAAM,CAAC,MAAM,MAAM,GAAe,UAAU,CAC1C,CACE,EASC,EACD,GAAG,EACH,EAAE;QAXF,EACE,QAAQ,EACR,SAAS,EACT,IAAI,GAAG,QAAQ,EACf,KAAK,GAAG,WAAW,EACnB,WAAW,GAAG,KAAK,EACnB,OAAO,GAAG,SAAS,EACnB,EAAE,OAEH,EADI,IAAI,cART,0EASC,CADQ;IAIT,MAAM,UAAU,GAAG,KAAK,EAAE,CAAC;IAE3B,OAAO,CACL,8DACmB,EAAE,aAAF,EAAE,cAAF,EAAE,GAAI,UAAU,UAAU,EAAE,EAC7C,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,EAAE,CACX,cAAc,EACd,SAAS,EACT,iBAAiB,IAAI,EAAE,EACvB,iBAAiB,OAAO,EAAE,EAC1B;YACE,2BAA2B,EAAE,WAAW;SACzC,CACF,EACD,SAAS,EAAC,OAAO,EACjB,OAAO,EAAC,WAAW,EACnB,mBAAmB,EAAC,UAAU,IAC1B,IAAI;QAER,+BAAO,EAAE,EAAE,EAAE,aAAF,EAAE,cAAF,EAAE,GAAI,UAAU,UAAU,EAAE,IAAG,KAAK,CAAS;QACxD,gCACE,SAAS,EAAC,0BAA0B,EACpC,KAAK,EAAC,4BAA4B,EAClC,EAAE,EAAC,IAAI,EACP,EAAE,EAAC,IAAI,EACP,CAAC,EAAC,IAAI,EACN,IAAI,EAAC,MAAM,GACX;QACF,gCACE,SAAS,EAAC,0BAA0B,EACpC,EAAE,EAAC,IAAI,EACP,EAAE,EAAC,IAAI,EACP,CAAC,EAAC,IAAI,EACN,IAAI,EAAC,MAAM,EACX,eAAe,EAAC,QAAQ,GACxB,CACE,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@navikt/ds-react",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"description": "Aksel react-components for NAV designsystem",
|
|
5
5
|
"author": "Aksel | NAV designsystem team",
|
|
6
6
|
"license": "MIT",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@floating-ui/react": "0.17.0",
|
|
40
|
-
"@navikt/ds-icons": "^2.1.
|
|
40
|
+
"@navikt/ds-icons": "^2.1.1",
|
|
41
41
|
"@radix-ui/react-tabs": "1.0.0",
|
|
42
42
|
"@radix-ui/react-toggle-group": "1.0.0",
|
|
43
43
|
"clsx": "^1.2.1",
|
|
@@ -6,11 +6,15 @@ interface SVGRProps {
|
|
|
6
6
|
titleId?: string;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
export
|
|
9
|
+
export type DefaultIllustrationType = React.FunctionComponent<
|
|
10
|
+
SVGProps<SVGSVGElement> & SVGRProps
|
|
11
|
+
>;
|
|
12
|
+
|
|
13
|
+
export const DefaultIllustration: DefaultIllustrationType = ({
|
|
10
14
|
title,
|
|
11
15
|
titleId: _titleId,
|
|
12
16
|
...props
|
|
13
|
-
}
|
|
17
|
+
}) => {
|
|
14
18
|
let titleId: string | undefined = useId();
|
|
15
19
|
titleId = title ? (_titleId ? _titleId : "title-" + titleId) : undefined;
|
|
16
20
|
|
package/src/loader/Loader.tsx
CHANGED
|
@@ -33,7 +33,12 @@ export interface LoaderProps extends SVGProps<SVGSVGElement> {
|
|
|
33
33
|
variant?: "neutral" | "interaction" | "inverted";
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
|
|
36
|
+
/* Workaround for @types/react v17/v18 feil */
|
|
37
|
+
export type LoaderType = React.ForwardRefExoticComponent<
|
|
38
|
+
LoaderProps & React.RefAttributes<SVGSVGElement>
|
|
39
|
+
>;
|
|
40
|
+
|
|
41
|
+
export const Loader: LoaderType = forwardRef<SVGSVGElement, LoaderProps>(
|
|
37
42
|
(
|
|
38
43
|
{
|
|
39
44
|
children,
|