@navikt/ds-react 1.3.23 → 1.3.25
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/caption/Caption.js +2 -2
- package/cjs/date/datepicker/caption/DropdownCaption.js +2 -2
- package/esm/date/datepicker/caption/Caption.js +2 -2
- package/esm/date/datepicker/caption/Caption.js.map +1 -1
- package/esm/date/datepicker/caption/DropdownCaption.js +2 -2
- package/esm/date/datepicker/caption/DropdownCaption.js.map +1 -1
- package/package.json +3 -3
- package/src/date/datepicker/caption/Caption.tsx +2 -0
- package/src/date/datepicker/caption/DropdownCaption.tsx +2 -0
|
@@ -16,8 +16,8 @@ const DatePickerCaption = ({ displayMonth, id }) => {
|
|
|
16
16
|
return (react_1.default.createElement("div", { className: "navds-date__caption" },
|
|
17
17
|
react_1.default.createElement(__1.Label, { as: "span", "aria-live": "polite", "aria-atomic": "true", id: id, className: "navds-date__caption-label" }, formatCaption(displayMonth, { locale })),
|
|
18
18
|
react_1.default.createElement("div", { className: "navds-date__caption__month-wrapper" },
|
|
19
|
-
react_1.default.createElement(__1.Button, { "aria-label": previousLabel, variant: "tertiary", disabled: !previousMonth, onClick: () => previousMonth && goToMonth(previousMonth), icon: react_1.default.createElement(ds_icons_1.Left, { title: "velg forrige m\u00E5ned" }), className: "navds-date__caption-button" }),
|
|
20
|
-
react_1.default.createElement(__1.Button, { "aria-label": nextLabel, icon: react_1.default.createElement(ds_icons_1.Right, { title: "velg neste m\u00E5ned" }), onClick: () => nextMonth && goToMonth(nextMonth), disabled: !nextMonth, variant: "tertiary", className: "navds-date__caption-button" }))));
|
|
19
|
+
react_1.default.createElement(__1.Button, { "aria-label": previousLabel, variant: "tertiary", disabled: !previousMonth, onClick: () => previousMonth && goToMonth(previousMonth), icon: react_1.default.createElement(ds_icons_1.Left, { title: "velg forrige m\u00E5ned" }), className: "navds-date__caption-button", type: "button" }),
|
|
20
|
+
react_1.default.createElement(__1.Button, { "aria-label": nextLabel, icon: react_1.default.createElement(ds_icons_1.Right, { title: "velg neste m\u00E5ned" }), onClick: () => nextMonth && goToMonth(nextMonth), disabled: !nextMonth, variant: "tertiary", className: "navds-date__caption-button", type: "button" }))));
|
|
21
21
|
};
|
|
22
22
|
exports.DatePickerCaption = DatePickerCaption;
|
|
23
23
|
exports.default = exports.DatePickerCaption;
|
|
@@ -30,11 +30,11 @@ const DropdownCaption = ({ displayMonth, id }) => {
|
|
|
30
30
|
const MonthDropdownLabel = (0, labels_1.labelMonthDropdown)(locale);
|
|
31
31
|
return (react_1.default.createElement("div", { className: "navds-date__caption-dropdown" },
|
|
32
32
|
react_1.default.createElement("span", { "aria-live": "polite", "aria-atomic": "true", id: id, className: "navds-sr-only" }, formatCaption(displayMonth, { locale })),
|
|
33
|
-
react_1.default.createElement(__1.Button, { "aria-label": previousLabel, variant: "tertiary", disabled: !previousMonth, onClick: () => previousMonth && goToMonth(previousMonth), icon: react_1.default.createElement(ds_icons_1.Left, { title: "velg forrige m\u00E5ned" }), className: "navds-date__caption-button" }),
|
|
33
|
+
react_1.default.createElement(__1.Button, { "aria-label": previousLabel, variant: "tertiary", disabled: !previousMonth, onClick: () => previousMonth && goToMonth(previousMonth), icon: react_1.default.createElement(ds_icons_1.Left, { title: "velg forrige m\u00E5ned" }), className: "navds-date__caption-button", type: "button" }),
|
|
34
34
|
react_1.default.createElement("div", { className: "navds-date__caption__month-wrapper" },
|
|
35
35
|
react_1.default.createElement(__1.Select, { label: MonthDropdownLabel, hideLabel: true, className: "navds-date__caption__month", value: displayMonth.getMonth(), onChange: handleMonthChange }, months.map((m) => (react_1.default.createElement("option", { key: m.getMonth(), value: m.getMonth() }, formatMonthCaption(m, { locale }))))),
|
|
36
36
|
react_1.default.createElement(__1.Select, { label: yearDropdownLabel, hideLabel: true, value: displayMonth.getFullYear(), onChange: handleYearChange, className: "navds-date__caption__year" }, years.map((year) => (react_1.default.createElement("option", { key: year.getFullYear(), value: year.getFullYear() }, formatYearCaption(year, { locale })))))),
|
|
37
|
-
react_1.default.createElement(__1.Button, { "aria-label": nextLabel, icon: react_1.default.createElement(ds_icons_1.Right, { title: "velg neste m\u00E5ned" }), onClick: () => nextMonth && goToMonth(nextMonth), disabled: !nextMonth, variant: "tertiary", className: "navds-date__caption-button" })));
|
|
37
|
+
react_1.default.createElement(__1.Button, { "aria-label": nextLabel, icon: react_1.default.createElement(ds_icons_1.Right, { title: "velg neste m\u00E5ned" }), onClick: () => nextMonth && goToMonth(nextMonth), disabled: !nextMonth, variant: "tertiary", className: "navds-date__caption-button", type: "button" })));
|
|
38
38
|
};
|
|
39
39
|
exports.DropdownCaption = DropdownCaption;
|
|
40
40
|
exports.default = exports.DropdownCaption;
|
|
@@ -10,8 +10,8 @@ export const DatePickerCaption = ({ displayMonth, id }) => {
|
|
|
10
10
|
return (React.createElement("div", { className: "navds-date__caption" },
|
|
11
11
|
React.createElement(Label, { as: "span", "aria-live": "polite", "aria-atomic": "true", id: id, className: "navds-date__caption-label" }, formatCaption(displayMonth, { locale })),
|
|
12
12
|
React.createElement("div", { className: "navds-date__caption__month-wrapper" },
|
|
13
|
-
React.createElement(Button, { "aria-label": previousLabel, variant: "tertiary", disabled: !previousMonth, onClick: () => previousMonth && goToMonth(previousMonth), icon: React.createElement(Left, { title: "velg forrige m\u00E5ned" }), className: "navds-date__caption-button" }),
|
|
14
|
-
React.createElement(Button, { "aria-label": nextLabel, icon: React.createElement(Right, { title: "velg neste m\u00E5ned" }), onClick: () => nextMonth && goToMonth(nextMonth), disabled: !nextMonth, variant: "tertiary", className: "navds-date__caption-button" }))));
|
|
13
|
+
React.createElement(Button, { "aria-label": previousLabel, variant: "tertiary", disabled: !previousMonth, onClick: () => previousMonth && goToMonth(previousMonth), icon: React.createElement(Left, { title: "velg forrige m\u00E5ned" }), className: "navds-date__caption-button", type: "button" }),
|
|
14
|
+
React.createElement(Button, { "aria-label": nextLabel, icon: React.createElement(Right, { title: "velg neste m\u00E5ned" }), onClick: () => nextMonth && goToMonth(nextMonth), disabled: !nextMonth, variant: "tertiary", className: "navds-date__caption-button", type: "button" }))));
|
|
15
15
|
};
|
|
16
16
|
export default DatePickerCaption;
|
|
17
17
|
//# sourceMappingURL=Caption.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Caption.js","sourceRoot":"","sources":["../../../../src/date/datepicker/caption/Caption.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAgB,YAAY,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAC7E,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEzC,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,EAAE,YAAY,EAAE,EAAE,EAAgB,EAAE,EAAE;IACtE,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,aAAa,EAAE,GAAG,aAAa,EAAE,CAAC;IAChE,MAAM,EACJ,MAAM,EAAE,EAAE,aAAa,EAAE,SAAS,EAAE,EACpC,UAAU,EAAE,EAAE,aAAa,EAAE,EAC7B,MAAM,GACP,GAAG,YAAY,EAAE,CAAC;IAEnB,MAAM,aAAa,GAAG,aAAa,CAAC,aAAa,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IAC/D,MAAM,SAAS,GAAG,SAAS,CAAC,SAAS,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IAEnD,OAAO,CACL,6BAAK,SAAS,EAAC,qBAAqB;QAClC,oBAAC,KAAK,IACJ,EAAE,EAAC,MAAM,eACC,QAAQ,iBACN,MAAM,EAClB,EAAE,EAAE,EAAE,EACN,SAAS,EAAC,2BAA2B,IAEpC,aAAa,CAAC,YAAY,EAAE,EAAE,MAAM,EAAE,CAAC,CAClC;QAER,6BAAK,SAAS,EAAC,oCAAoC;YACjD,oBAAC,MAAM,kBACO,aAA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BAAK,SAAS,EAAC,oCAAoC;YACjD,oBAAC,MAAM,kBACO,aAAa,EACzB,OAAO,EAAC,UAAU,EAClB,QAAQ,EAAE,CAAC,aAAa,EACxB,OAAO,EAAE,GAAG,EAAE,CAAC,aAAa,IAAI,SAAS,CAAC,aAAa,CAAC,EACxD,IAAI,EAAE,oBAAC,IAAI,IAAC,KAAK,EAAC,yBAAoB,GAAG,EACzC,SAAS,EAAC,4BAA4B,EACtC,IAAI,EAAC,QAAQ,GACb;YACF,oBAAC,MAAM,kBACO,SAAS,EACrB,IAAI,EAAE,oBAAC,KAAK,IAAC,KAAK,EAAC,uBAAkB,GAAG,EACxC,OAAO,EAAE,GAAG,EAAE,CAAC,SAAS,IAAI,SAAS,CAAC,SAAS,CAAC,EAChD,QAAQ,EAAE,CAAC,SAAS,EACpB,OAAO,EAAC,UAAU,EAClB,SAAS,EAAC,4BAA4B,EACtC,IAAI,EAAC,QAAQ,GACb,CACE,CACF,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -24,11 +24,11 @@ export const DropdownCaption = ({ displayMonth, id }) => {
|
|
|
24
24
|
const MonthDropdownLabel = labelMonthDropdown(locale);
|
|
25
25
|
return (React.createElement("div", { className: "navds-date__caption-dropdown" },
|
|
26
26
|
React.createElement("span", { "aria-live": "polite", "aria-atomic": "true", id: id, className: "navds-sr-only" }, formatCaption(displayMonth, { locale })),
|
|
27
|
-
React.createElement(Button, { "aria-label": previousLabel, variant: "tertiary", disabled: !previousMonth, onClick: () => previousMonth && goToMonth(previousMonth), icon: React.createElement(Left, { title: "velg forrige m\u00E5ned" }), className: "navds-date__caption-button" }),
|
|
27
|
+
React.createElement(Button, { "aria-label": previousLabel, variant: "tertiary", disabled: !previousMonth, onClick: () => previousMonth && goToMonth(previousMonth), icon: React.createElement(Left, { title: "velg forrige m\u00E5ned" }), className: "navds-date__caption-button", type: "button" }),
|
|
28
28
|
React.createElement("div", { className: "navds-date__caption__month-wrapper" },
|
|
29
29
|
React.createElement(Select, { label: MonthDropdownLabel, hideLabel: true, className: "navds-date__caption__month", value: displayMonth.getMonth(), onChange: handleMonthChange }, months.map((m) => (React.createElement("option", { key: m.getMonth(), value: m.getMonth() }, formatMonthCaption(m, { locale }))))),
|
|
30
30
|
React.createElement(Select, { label: yearDropdownLabel, hideLabel: true, value: displayMonth.getFullYear(), onChange: handleYearChange, className: "navds-date__caption__year" }, years.map((year) => (React.createElement("option", { key: year.getFullYear(), value: year.getFullYear() }, formatYearCaption(year, { locale })))))),
|
|
31
|
-
React.createElement(Button, { "aria-label": nextLabel, icon: React.createElement(Right, { title: "velg neste m\u00E5ned" }), onClick: () => nextMonth && goToMonth(nextMonth), disabled: !nextMonth, variant: "tertiary", className: "navds-date__caption-button" })));
|
|
31
|
+
React.createElement(Button, { "aria-label": nextLabel, icon: React.createElement(Right, { title: "velg neste m\u00E5ned" }), onClick: () => nextMonth && goToMonth(nextMonth), disabled: !nextMonth, variant: "tertiary", className: "navds-date__caption-button", type: "button" })));
|
|
32
32
|
};
|
|
33
33
|
export default DropdownCaption;
|
|
34
34
|
//# sourceMappingURL=DropdownCaption.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DropdownCaption.js","sourceRoot":"","sources":["../../../../src/date/datepicker/caption/DropdownCaption.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,QAAQ,MAAM,mBAAmB,CAAC;AACzC,OAAO,OAAO,MAAM,kBAAkB,CAAC;AACvC,OAAO,YAAY,MAAM,uBAAuB,CAAC;AACjD,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAgB,YAAY,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAC7E,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,M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MAAM,kBACO,SAAS,EACrB,IAAI,EAAE,oBAAC,KAAK,IAAC,KAAK,EAAC,uBAAkB,GAAG,EACxC,OAAO,EAAE,GAAG,EAAE,CAAC,SAAS,IAAI,SAAS,CAAC,SAAS,CAAC,EAChD,QAAQ,EAAE,CAAC,SAAS,EACpB,OAAO,EAAC,UAAU,EAClB,SAAS,EAAC,4BAA4B,EACtC,IAAI,EAAC,QAAQ,GACb,CACE,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@navikt/ds-react",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.25",
|
|
4
4
|
"description": "NAV designsystem react components",
|
|
5
5
|
"author": "NAV Designsystem team",
|
|
6
6
|
"license": "MIT",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@floating-ui/react-dom-interactions": "0.9.2",
|
|
39
|
-
"@navikt/ds-icons": "^1.3.
|
|
39
|
+
"@navikt/ds-icons": "^1.3.25",
|
|
40
40
|
"@radix-ui/react-tabs": "1.0.0",
|
|
41
41
|
"@radix-ui/react-toggle-group": "1.0.0",
|
|
42
42
|
"clsx": "^1.2.1",
|
|
@@ -75,5 +75,5 @@
|
|
|
75
75
|
"optional": true
|
|
76
76
|
}
|
|
77
77
|
},
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "ab0c3432e64575486f8ff84bbb71a71c6c150464"
|
|
79
79
|
}
|
|
@@ -34,6 +34,7 @@ export const DatePickerCaption = ({ displayMonth, id }: CaptionProps) => {
|
|
|
34
34
|
onClick={() => previousMonth && goToMonth(previousMonth)}
|
|
35
35
|
icon={<Left title="velg forrige måned" />}
|
|
36
36
|
className="navds-date__caption-button"
|
|
37
|
+
type="button"
|
|
37
38
|
/>
|
|
38
39
|
<Button
|
|
39
40
|
aria-label={nextLabel}
|
|
@@ -42,6 +43,7 @@ export const DatePickerCaption = ({ displayMonth, id }: CaptionProps) => {
|
|
|
42
43
|
disabled={!nextMonth}
|
|
43
44
|
variant="tertiary"
|
|
44
45
|
className="navds-date__caption-button"
|
|
46
|
+
type="button"
|
|
45
47
|
/>
|
|
46
48
|
</div>
|
|
47
49
|
</div>
|
|
@@ -54,6 +54,7 @@ export const DropdownCaption = ({ displayMonth, id }: CaptionProps) => {
|
|
|
54
54
|
onClick={() => previousMonth && goToMonth(previousMonth)}
|
|
55
55
|
icon={<Left title="velg forrige måned" />}
|
|
56
56
|
className="navds-date__caption-button"
|
|
57
|
+
type="button"
|
|
57
58
|
/>
|
|
58
59
|
|
|
59
60
|
<div className="navds-date__caption__month-wrapper">
|
|
@@ -92,6 +93,7 @@ export const DropdownCaption = ({ displayMonth, id }: CaptionProps) => {
|
|
|
92
93
|
disabled={!nextMonth}
|
|
93
94
|
variant="tertiary"
|
|
94
95
|
className="navds-date__caption-button"
|
|
96
|
+
type="button"
|
|
95
97
|
/>
|
|
96
98
|
</div>
|
|
97
99
|
);
|