@navikt/ds-react 7.25.2 → 7.27.0

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.
@@ -74,7 +74,7 @@ const Theme = (0, react_1.forwardRef)((props, ref) => {
74
74
  const SlotElement = asChild ? Slot_1.Slot : "div";
75
75
  return (react_1.default.createElement(ThemeProvider, { theme: theme, color: color },
76
76
  react_1.default.createElement(RenameCSS, null,
77
- react_1.default.createElement(SlotElement, { ref: ref, className: (0, clsx_1.default)("aksel-theme", className, theme), "data-background": hasBackground, "data-color": color }, children))));
77
+ react_1.default.createElement(SlotElement, { ref: ref, className: (0, clsx_1.default)("aksel-theme", className, theme), "data-background": hasBackground, "data-color": color !== null && color !== void 0 ? color : "" }, children))));
78
78
  });
79
79
  exports.Theme = Theme;
80
80
  //# sourceMappingURL=Theme.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Theme.js","sourceRoot":"","sources":["../../src/theme/Theme.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAAsB;AACtB,+CAA0C;AAC1C,uCAAoC;AAEpC,2DAAuD;AAavD,MAAM,CAAC,iBAAiB,EAAE,YAAY,CAAC,GAAG,IAAA,8BAAa,EAAmB;IACxE,QAAQ,EAAE,cAAc;IACxB,IAAI,EAAE,WAAW;IACjB,YAAY,EAAE,mBAAmB;IACjC,YAAY,EAAE,EAAE,EAAE,EAAE,cAAE,EAAE;CACzB,CAAC,CAAC;AA0Fa,oCAAY;AAxFrB,MAAM,sBAAsB,GAAG,CACpC,GAAG,MAA6B,EACxB,EAAE;IACV,MAAM,OAAO,GAAG,IAAA,cAAE,EAAC,MAAM,CAAC;QACxB,sDAAsD;SACrD,OAAO,CAAC,UAAU,EAAE,QAAQ,CAAC;QAC9B,iCAAiC;SAChC,OAAO,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC;IAEnC,OAAO,OAAO,CAAC,IAAI,EAAE,CAAC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AAM,KAAK,GAAG,IAAA,kBAAU,EACtB,CAAC,KAAiB,EAAE,GAAG,EAAE,EAAE;IACzB,MAAM,OAAO,GAAG,gBAAgB,CAAC,KAAK,CAAC,CAAC;IAExC,MAAM,EACJ,QAAQ,EACR,SAAS,EACT,OAAO,GAAG,KAAK,EACf,KAAK,GAAG,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK,EACtB,aAAa,EAAE,iBAAiB,GAAG,IAAI,EACvC,YAAY,EAAE,KAAK,GAAG,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK,GACrC,GAAG,KAAK,CAAC;IAEV,MAAM,MAAM,GAAG,OAAO,KAAK,SAAS,CAAC;IAErC,MAAM,aAAa,GACjB,iBAAiB,aAAjB,iBAAiB,cAAjB,iBAAiB,GAAI,CAAC,MAAM,IAAI,KAAK,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC;IAE7D,MAAM,WAAW,GAAG,OAAO,CAAC,CAAC,CAAC,WAAI,CAAC,CAAC,CAAC,KAAK,CAAC;IAE3C,OAAO,CACL,8BAAC,aAAa,IAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK;QACvC,8BAAC,SAAS;YACR,8BAAC,WAAW,IACV,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,IAAA,cAAE,EAAC,aAAa,EAAE,SAAS,EAAE,KAAK,CAAC,qBAC7B,aAAa,gBAClB,KAAK,aAAL,KAAK,cAAL,KAAK,GAAI,EAAE,IAEtB,QAAQ,CACG,CACJ,CACE,CACjB,CAAC;AACJ,CAAC,CACF,CAAC;AAEO,sBAAK"}
@@ -32,7 +32,7 @@ const Theme = forwardRef((props, ref) => {
32
32
  const SlotElement = asChild ? Slot : "div";
33
33
  return (React.createElement(ThemeProvider, { theme: theme, color: color },
34
34
  React.createElement(RenameCSS, null,
35
- React.createElement(SlotElement, { ref: ref, className: cl("aksel-theme", className, theme), "data-background": hasBackground, "data-color": color }, children))));
35
+ React.createElement(SlotElement, { ref: ref, className: cl("aksel-theme", className, theme), "data-background": hasBackground, "data-color": color !== null && color !== void 0 ? color : "" }, children))));
36
36
  });
37
37
  export { Theme, useRenameCSS, useThemeInternal };
38
38
  //# sourceMappingURL=Theme.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Theme.js","sourceRoot":"","sources":["../../src/theme/Theme.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,MAAM,CAAC;AACtB,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEpC,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAavD,MAAM,CAAC,iBAAiB,EAAE,YAAY,CAAC,GAAG,aAAa,CAAmB;IACxE,QAAQ,EAAE,cAAc;IACxB,IAAI,EAAE,WAAW;IACjB,YAAY,EAAE,mBAAmB;IACjC,YAAY,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE;CACzB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CACpC,GAAG,MAA6B,EACxB,EAAE;IACV,MAAM,OAAO,GAAG,EAAE,CAAC,MAAM,CAAC;QACxB,sDAAsD;SACrD,OAAO,CAAC,UAAU,EAAE,QAAQ,CAAC;QAC9B,iCAAiC;SAChC,OAAO,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC;IAEnC,OAAO,OAAO,CAAC,IAAI,EAAE,CAAC;AACxB,CAAC,CAAC;AAEF,MAAM,SAAS,GAAG,CAAC,EAAE,QAAQ,EAAiC,EAAE,EAAE;IAChE,OAAO,CACL,oBAAC,iBAAiB,IAAC,EAAE,EAAE,sBAAsB,IAC1C,QAAQ,CACS,CACrB,CAAC;AACJ,CAAC,CAAC;AAcF,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,GAAG,aAAa,CAAe;IACpE,QAAQ,EAAE,UAAU;IACpB,IAAI,EAAE,eAAe;IACrB,YAAY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AO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK,GACrC,GAAG,KAAK,CAAC;IAEV,MAAM,MAAM,GAAG,OAAO,KAAK,SAAS,CAAC;IAErC,MAAM,aAAa,GACjB,iBAAiB,aAAjB,iBAAiB,cAAjB,iBAAiB,GAAI,CAAC,MAAM,IAAI,KAAK,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC;IAE7D,MAAM,WAAW,GAAG,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC;IAE3C,OAAO,CACL,oBAAC,aAAa,IAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK;QACvC,oBAAC,SAAS;YACR,oBAAC,WAAW,IACV,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,EAAE,CAAC,aAAa,EAAE,SAAS,EAAE,KAAK,CAAC,qBAC7B,aAAa,gBAClB,KAAK,aAAL,KAAK,cAAL,KAAK,GAAI,EAAE,IAEtB,QAAQ,CACG,CACJ,CACE,CACjB,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,gBAAgB,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@navikt/ds-react",
3
- "version": "7.25.2",
3
+ "version": "7.27.0",
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",
@@ -640,8 +640,8 @@
640
640
  "dependencies": {
641
641
  "@floating-ui/react": "0.27.8",
642
642
  "@floating-ui/react-dom": "^2.0.9",
643
- "@navikt/aksel-icons": "^7.25.2",
644
- "@navikt/ds-tokens": "^7.25.2",
643
+ "@navikt/aksel-icons": "^7.27.0",
644
+ "@navikt/ds-tokens": "^7.27.0",
645
645
  "clsx": "^2.1.0",
646
646
  "date-fns": "^4.0.0",
647
647
  "react-day-picker": "9.7.0"
@@ -5,29 +5,29 @@ import { isValidDate } from "./check-dates";
5
5
  import { parseDate } from "./parse-date";
6
6
 
7
7
  const check = (inp: string) =>
8
- // eslint-disable-next-line @vitest/valid-expect
8
+ // eslint-disable-next-line vitest/valid-expect
9
9
  expect(isValidDate(parseDate(inp, new Date(), nb, "date", false)));
10
10
 
11
11
  const checkTwoDigit = (inp: string) =>
12
- // eslint-disable-next-line @vitest/valid-expect
12
+ // eslint-disable-next-line vitest/valid-expect
13
13
  expect(isValidDate(parseDate(inp, new Date(), nb, "date", true)));
14
14
 
15
15
  const parse = (inp: string) => parseDate(inp, new Date(), nb, "date", false);
16
16
 
17
17
  describe("Parse date-inputs with 4-digit years", () => {
18
- // eslint-disable-next-line @vitest/expect-expect
18
+ // eslint-disable-next-line vitest/expect-expect
19
19
  test("No spaces", () => {
20
20
  check("11052022").toBeTruthy();
21
21
  check("15052022").toBeTruthy();
22
22
  });
23
23
 
24
- // eslint-disable-next-line @vitest/expect-expect
24
+ // eslint-disable-next-line vitest/expect-expect
25
25
  test(". divider", () => {
26
26
  check("1.5.2022").toBeTruthy();
27
27
  check("11.05.2022").toBeTruthy();
28
28
  });
29
29
 
30
- // eslint-disable-next-line @vitest/expect-expect
30
+ // eslint-disable-next-line vitest/expect-expect
31
31
  test("/ divider", () => {
32
32
  check("1/5/2022").toBeTruthy();
33
33
  check("10/5/2022").toBeTruthy();
@@ -35,7 +35,7 @@ describe("Parse date-inputs with 4-digit years", () => {
35
35
  check("10/05/2022").toBeTruthy();
36
36
  });
37
37
 
38
- // eslint-disable-next-line @vitest/expect-expect
38
+ // eslint-disable-next-line vitest/expect-expect
39
39
  test("- divider", () => {
40
40
  check("1-5-2022").toBeTruthy();
41
41
  check("10-5-2022").toBeTruthy();
@@ -45,19 +45,19 @@ describe("Parse date-inputs with 4-digit years", () => {
45
45
  });
46
46
 
47
47
  describe("Parse date-inputs with 2-digit years", () => {
48
- // eslint-disable-next-line @vitest/expect-expect
48
+ // eslint-disable-next-line vitest/expect-expect
49
49
  test("No spaces", () => {
50
50
  checkTwoDigit("110522").toBeTruthy();
51
51
  checkTwoDigit("150522").toBeTruthy();
52
52
  });
53
53
 
54
- // eslint-disable-next-line @vitest/expect-expect
54
+ // eslint-disable-next-line vitest/expect-expect
55
55
  test(". divider", () => {
56
56
  checkTwoDigit("1.5.22").toBeTruthy();
57
57
  checkTwoDigit("11.05.22").toBeTruthy();
58
58
  });
59
59
 
60
- // eslint-disable-next-line @vitest/expect-expect
60
+ // eslint-disable-next-line vitest/expect-expect
61
61
  test("/ divider", () => {
62
62
  checkTwoDigit("1/5/22").toBeTruthy();
63
63
  checkTwoDigit("10/5/22").toBeTruthy();
@@ -65,7 +65,7 @@ describe("Parse date-inputs with 2-digit years", () => {
65
65
  checkTwoDigit("10/05/22").toBeTruthy();
66
66
  });
67
67
 
68
- // eslint-disable-next-line @vitest/expect-expect
68
+ // eslint-disable-next-line vitest/expect-expect
69
69
  test("- divider", () => {
70
70
  checkTwoDigit("1-5-22").toBeTruthy();
71
71
  checkTwoDigit("10-5-22").toBeTruthy();
@@ -73,14 +73,14 @@ describe("Parse date-inputs with 2-digit years", () => {
73
73
  checkTwoDigit("10-05-22").toBeTruthy();
74
74
  });
75
75
 
76
- // eslint-disable-next-line @vitest/expect-expect
76
+ // eslint-disable-next-line vitest/expect-expect
77
77
  test("Dissallow 1 and 3 digit years", () => {
78
78
  checkTwoDigit("11052").toBeFalsy();
79
79
  checkTwoDigit("1105222").toBeFalsy();
80
80
  checkTwoDigit("1105999").toBeFalsy();
81
81
  });
82
82
 
83
- // eslint-disable-next-line @vitest/expect-expect
83
+ // eslint-disable-next-line vitest/expect-expect
84
84
  test("Dissallow date before year 1000", () => {
85
85
  checkTwoDigit("11050999").toBeFalsy();
86
86
  checkTwoDigit("11050010").toBeFalsy();
@@ -100,7 +100,7 @@ const Theme = forwardRef<HTMLDivElement, ThemeProps>(
100
100
  ref={ref}
101
101
  className={cl("aksel-theme", className, theme)}
102
102
  data-background={hasBackground}
103
- data-color={color}
103
+ data-color={color ?? ""}
104
104
  >
105
105
  {children}
106
106
  </SlotElement>
@@ -1,4 +1,4 @@
1
- /* eslint-disable @vitest/expect-expect */
1
+ /* eslint-disable vitest/expect-expect */
2
2
  import { describe, expect, test } from "vitest";
3
3
  import { Translations } from "./i18n.types";
4
4
  import en from "./locales/en";