@navikt/ds-react 1.3.30 → 1.3.31

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@navikt/ds-react",
3
- "version": "1.3.30",
3
+ "version": "1.3.31",
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.30",
39
+ "@navikt/ds-icons": "^1.3.31",
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": "12a0a4baaab8f0598c62cd67fb3ddc82d67f3f72"
78
+ "gitHead": "017e8f62172043849e32cc84859210f61825e99a"
79
79
  }
@@ -251,3 +251,13 @@ export const DisabledInput = () => {
251
251
  </div>
252
252
  );
253
253
  };
254
+
255
+ export const ErrorInput = () => {
256
+ return (
257
+ <div style={{ display: "flex", gap: "1rem" }}>
258
+ <DatePicker>
259
+ <DatePicker.Input error="feilmelding" label="Velg dato" />
260
+ </DatePicker>
261
+ </div>
262
+ );
263
+ };
@@ -1,5 +1,5 @@
1
1
  /* eslint-disable react/jsx-pascal-case */
2
- import { render, screen } from "@testing-library/react";
2
+ import { render } from "@testing-library/react";
3
3
  import userEvent from "@testing-library/user-event";
4
4
  import React from "react";
5
5
  import { UNSAFE_DatePicker, UNSAFE_useDatepicker } from "..";