@navikt/ds-react 6.3.5 → 6.3.6
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/cjs/date/datepicker/parts/DayButton.js +1 -1
- package/cjs/date/datepicker/parts/DayButton.js.map +1 -1
- package/esm/date/datepicker/parts/DayButton.js +1 -1
- package/esm/date/datepicker/parts/DayButton.js.map +1 -1
- package/package.json +3 -3
- package/src/date/datepicker/parts/DayButton.tsx +1 -0
- package/src/guide-panel/guidepanel.stories.tsx +4 -6
- package/src/typography/stories/bodylong.stories.tsx +3 -4
- package/src/typography/stories/bodyshort.stories.tsx +3 -4
- package/src/typography/stories/detail.stories.tsx +3 -4
- package/src/typography/stories/error-message.stories.tsx +3 -4
- package/src/typography/stories/heading.stories.tsx +3 -4
- package/src/typography/stories/label.stories.tsx +3 -4
|
@@ -37,7 +37,7 @@ const DayButton = (props) => {
|
|
|
37
37
|
if (!dayRender.isButton) {
|
|
38
38
|
return react_1.default.createElement("div", Object.assign({}, dayRender.divProps));
|
|
39
39
|
}
|
|
40
|
-
return (react_1.default.createElement(react_day_picker_1.Button, Object.assign({ name: "day", ref: buttonRef }, dayRender.buttonProps, { "aria-label": dateTime, "aria-hidden": dayRender.activeModifiers.outside })));
|
|
40
|
+
return (react_1.default.createElement(react_day_picker_1.Button, Object.assign({ name: "day", ref: buttonRef }, dayRender.buttonProps, { role: undefined, "aria-label": dateTime, "aria-hidden": dayRender.activeModifiers.outside })));
|
|
41
41
|
};
|
|
42
42
|
exports.default = DayButton;
|
|
43
43
|
//# sourceMappingURL=DayButton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DayButton.js","sourceRoot":"","sources":["../../../../src/date/datepicker/parts/DayButton.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAAkC;AAClC,+CAAsC;AACtC,uDAAgF;AAEhF,MAAM,SAAS,GAAG,CAAC,KAAe,EAAE,EAAE;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AE,CAAC;QACvB,OAAO,6DAAK,CAAC;IACf,CAAC;IACD,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,CAAC;QACxB,OAAO,uDAAS,SAAS,CAAC,QAAQ,EAAI,CAAC;IACzC,CAAC;IAED,OAAO,CACL,8BAAC,yBAAM,kBACL,IAAI,EAAC,KAAK,EACV,GAAG,EAAE,SAAS,IACV,SAAS,CAAC,WAAW,IACzB,IAAI,EAAE,SAAS,gBACH,QAAQ,iBACP,SAAS,CAAC,eAAe,CAAC,OAAO,IAC9C,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC"}
|
|
@@ -12,7 +12,7 @@ const DayButton = (props) => {
|
|
|
12
12
|
if (!dayRender.isButton) {
|
|
13
13
|
return React.createElement("div", Object.assign({}, dayRender.divProps));
|
|
14
14
|
}
|
|
15
|
-
return (React.createElement(Button, Object.assign({ name: "day", ref: buttonRef }, dayRender.buttonProps, { "aria-label": dateTime, "aria-hidden": dayRender.activeModifiers.outside })));
|
|
15
|
+
return (React.createElement(Button, Object.assign({ name: "day", ref: buttonRef }, dayRender.buttonProps, { role: undefined, "aria-label": dateTime, "aria-hidden": dayRender.activeModifiers.outside })));
|
|
16
16
|
};
|
|
17
17
|
export default DayButton;
|
|
18
18
|
//# sourceMappingURL=DayButton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DayButton.js","sourceRoot":"","sources":["../../../../src/date/datepicker/parts/DayButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,MAAM,EAAY,YAAY,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEhF,MAAM,SAAS,GAAG,CAAC,KAAe,EAAE,EAAE;IACpC,MAAM,SAAS,GAAG,MAAM,CAAoB,IAAI,CAAC,CAAC;IAClD,MAA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ACvB,OAAO,yCAAK,CAAC;IACf,CAAC;IACD,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,CAAC;QACxB,OAAO,6CAAS,SAAS,CAAC,QAAQ,EAAI,CAAC;IACzC,CAAC;IAED,OAAO,CACL,oBAAC,MAAM,kBACL,IAAI,EAAC,KAAK,EACV,GAAG,EAAE,SAAS,IACV,SAAS,CAAC,WAAW,IACzB,IAAI,EAAE,SAAS,gBACH,QAAQ,iBACP,SAAS,CAAC,eAAe,CAAC,OAAO,IAC9C,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@navikt/ds-react",
|
|
3
|
-
"version": "6.3.
|
|
3
|
+
"version": "6.3.6",
|
|
4
4
|
"description": "React components from the Norwegian Labour and Welfare Administration.",
|
|
5
5
|
"author": "Aksel, a team part of the Norwegian Labour and Welfare Administration.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -562,8 +562,8 @@
|
|
|
562
562
|
},
|
|
563
563
|
"dependencies": {
|
|
564
564
|
"@floating-ui/react": "0.25.4",
|
|
565
|
-
"@navikt/aksel-icons": "^6.3.
|
|
566
|
-
"@navikt/ds-tokens": "^6.3.
|
|
565
|
+
"@navikt/aksel-icons": "^6.3.6",
|
|
566
|
+
"@navikt/ds-tokens": "^6.3.6",
|
|
567
567
|
"@radix-ui/react-tabs": "1.0.0",
|
|
568
568
|
"@radix-ui/react-toggle-group": "1.0.0",
|
|
569
569
|
"clsx": "^2.1.0",
|
|
@@ -41,16 +41,14 @@ export const PosterVariants = {
|
|
|
41
41
|
render: () => (
|
|
42
42
|
<VStack gap="6" align="start">
|
|
43
43
|
<GuidePanel>
|
|
44
|
-
If you exclude the
|
|
45
|
-
|
|
44
|
+
If you exclude the `poster` prop, you will get the poster variant on
|
|
45
|
+
mobile (<480px) and the non-poster variant otherwise.
|
|
46
46
|
</GuidePanel>
|
|
47
47
|
<GuidePanel poster>
|
|
48
|
-
Use the
|
|
49
|
-
viewports.
|
|
48
|
+
Use the `poster` prop to get the poster variant on all viewports.
|
|
50
49
|
</GuidePanel>
|
|
51
50
|
<GuidePanel poster={false}>
|
|
52
|
-
Set
|
|
53
|
-
viewports.
|
|
51
|
+
Set `poster=false` to get the non-poster variant on all viewports.
|
|
54
52
|
</GuidePanel>
|
|
55
53
|
</VStack>
|
|
56
54
|
),
|
|
@@ -4,18 +4,17 @@ import React from "react";
|
|
|
4
4
|
import { VStack } from "../../layout/stack";
|
|
5
5
|
import BodyLong from "../BodyLong";
|
|
6
6
|
|
|
7
|
-
const meta = {
|
|
7
|
+
const meta: Meta<typeof BodyLong> = {
|
|
8
8
|
title: "ds-react/Typography/BodyLong",
|
|
9
9
|
component: BodyLong,
|
|
10
10
|
decorators: [(story) => <div style={{ maxWidth: "700px" }}>{story()}</div>],
|
|
11
11
|
parameters: {
|
|
12
12
|
chromatic: { disable: true },
|
|
13
13
|
},
|
|
14
|
-
}
|
|
15
|
-
|
|
14
|
+
};
|
|
16
15
|
export default meta;
|
|
17
16
|
|
|
18
|
-
type Story = StoryObj<typeof
|
|
17
|
+
type Story = StoryObj<typeof BodyLong>;
|
|
19
18
|
|
|
20
19
|
const lorem =
|
|
21
20
|
"Hvis du ikke bor sammen med begge foreldrene dine, kan du ha rett til barnebidrag fra en eller begge foreldre mens du fullfører videregående skole eller tilsvarende.";
|
|
@@ -4,18 +4,17 @@ import React from "react";
|
|
|
4
4
|
import { VStack } from "../../layout/stack";
|
|
5
5
|
import { BodyShort } from "../BodyShort";
|
|
6
6
|
|
|
7
|
-
const meta = {
|
|
7
|
+
const meta: Meta<typeof BodyShort> = {
|
|
8
8
|
title: "ds-react/Typography/BodyShort",
|
|
9
9
|
component: BodyShort,
|
|
10
10
|
decorators: [(story) => <div style={{ maxWidth: "250px" }}>{story()}</div>],
|
|
11
11
|
parameters: {
|
|
12
12
|
chromatic: { disable: true },
|
|
13
13
|
},
|
|
14
|
-
}
|
|
15
|
-
|
|
14
|
+
};
|
|
16
15
|
export default meta;
|
|
17
16
|
|
|
18
|
-
type Story = StoryObj<typeof
|
|
17
|
+
type Story = StoryObj<typeof BodyShort>;
|
|
19
18
|
|
|
20
19
|
const lorem = "Du må gjøre en filtrering for å se brukere i listen.";
|
|
21
20
|
|
|
@@ -4,18 +4,17 @@ import React from "react";
|
|
|
4
4
|
import { VStack } from "../../layout/stack";
|
|
5
5
|
import Detail from "../Detail";
|
|
6
6
|
|
|
7
|
-
const meta = {
|
|
7
|
+
const meta: Meta<typeof Detail> = {
|
|
8
8
|
title: "ds-react/Typography/Detail",
|
|
9
9
|
component: Detail,
|
|
10
10
|
decorators: [(story) => <div style={{ maxWidth: "200px" }}>{story()}</div>],
|
|
11
11
|
parameters: {
|
|
12
12
|
chromatic: { disable: true },
|
|
13
13
|
},
|
|
14
|
-
}
|
|
15
|
-
|
|
14
|
+
};
|
|
16
15
|
export default meta;
|
|
17
16
|
|
|
18
|
-
type Story = StoryObj<typeof
|
|
17
|
+
type Story = StoryObj<typeof Detail>;
|
|
19
18
|
|
|
20
19
|
const lorem = "Du må gjøre en filtrering for å se brukere i listen.";
|
|
21
20
|
|
|
@@ -4,17 +4,16 @@ import React from "react";
|
|
|
4
4
|
import { VStack } from "../../layout/stack";
|
|
5
5
|
import ErrorMessage from "../ErrorMessage";
|
|
6
6
|
|
|
7
|
-
const meta = {
|
|
7
|
+
const meta: Meta<typeof ErrorMessage> = {
|
|
8
8
|
title: "ds-react/Typography/ErrorMessage",
|
|
9
9
|
component: ErrorMessage,
|
|
10
10
|
parameters: {
|
|
11
11
|
chromatic: { disable: true },
|
|
12
12
|
},
|
|
13
|
-
}
|
|
14
|
-
|
|
13
|
+
};
|
|
15
14
|
export default meta;
|
|
16
15
|
|
|
17
|
-
type Story = StoryObj<typeof
|
|
16
|
+
type Story = StoryObj<typeof ErrorMessage>;
|
|
18
17
|
|
|
19
18
|
const lorem =
|
|
20
19
|
"Du må fylle ut: Oppgi årsaken til at du har ventet mer enn 6 måneder med å søke om refusjon";
|
|
@@ -4,18 +4,17 @@ import { default as React } from "react";
|
|
|
4
4
|
import { VStack } from "../../layout/stack";
|
|
5
5
|
import Heading from "../Heading";
|
|
6
6
|
|
|
7
|
-
const meta = {
|
|
7
|
+
const meta: Meta<typeof Heading> = {
|
|
8
8
|
title: "ds-react/Typography/Heading",
|
|
9
9
|
component: Heading,
|
|
10
10
|
decorators: [(story) => <div style={{ maxWidth: "300px" }}>{story()}</div>],
|
|
11
11
|
parameters: {
|
|
12
12
|
chromatic: { disable: true },
|
|
13
13
|
},
|
|
14
|
-
}
|
|
15
|
-
|
|
14
|
+
};
|
|
16
15
|
export default meta;
|
|
17
16
|
|
|
18
|
-
type Story = StoryObj<typeof
|
|
17
|
+
type Story = StoryObj<typeof Heading>;
|
|
19
18
|
|
|
20
19
|
const lorem = "Hva kan vi hjelpe deg med?";
|
|
21
20
|
|
|
@@ -4,18 +4,17 @@ import React from "react";
|
|
|
4
4
|
import { VStack } from "../../layout/stack";
|
|
5
5
|
import Label from "../Label";
|
|
6
6
|
|
|
7
|
-
const meta = {
|
|
7
|
+
const meta: Meta<typeof Label> = {
|
|
8
8
|
title: "ds-react/Typography/Label",
|
|
9
9
|
component: Label,
|
|
10
10
|
decorators: [(story) => <div style={{ maxWidth: "400px" }}>{story()}</div>],
|
|
11
11
|
parameters: {
|
|
12
12
|
chromatic: { disable: true },
|
|
13
13
|
},
|
|
14
|
-
}
|
|
15
|
-
|
|
14
|
+
};
|
|
16
15
|
export default meta;
|
|
17
16
|
|
|
18
|
-
type Story = StoryObj<typeof
|
|
17
|
+
type Story = StoryObj<typeof Label>;
|
|
19
18
|
|
|
20
19
|
const lorem =
|
|
21
20
|
"Oppgi årsaken til at du har ventet mer enn 6 måneder med å søke om refusjon";
|