@navikt/ds-react 1.4.3 → 1.4.4

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.
@@ -2,5 +2,5 @@ export { DateInputProps } from "./DateInput";
2
2
  export { DatePickerProps, default as UNSAFE_DatePicker, } from "./datepicker/DatePicker";
3
3
  export { DatePickerStandaloneProps } from "./datepicker/DatePickerStandalone";
4
4
  export { MonthPickerStandaloneProps } from "./monthpicker/MonthPickerStandalone";
5
- export { UNSAFE_useDatepicker, UNSAFE_useMonthpicker, UNSAFE_useRangeDatepicker, } from "./hooks";
5
+ export { UNSAFE_useDatepicker, UNSAFE_useMonthpicker, UNSAFE_useRangeDatepicker, RangeValidationT, DateValidationT, MonthValidationT, } from "./hooks";
6
6
  export { default as UNSAFE_MonthPicker, MonthPickerProps, } from "./monthpicker/MonthPicker";
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/date/index.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,OAAO,IAAI,iBAAiB,GAC7B,MAAM,yBAAyB,CAAC;AAGjC,OAAO,EACL,oBAAoB,EACpB,qBAAqB,EACrB,yBAAyB,GAC1B,MAAM,SAAS,CAAC;AACjB,OAAO,EACL,OAAO,IAAI,kBAAkB,GAE9B,MAAM,2BAA2B,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/date/index.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,OAAO,IAAI,iBAAiB,GAC7B,MAAM,yBAAyB,CAAC;AAGjC,OAAO,EACL,oBAAoB,EACpB,qBAAqB,EACrB,yBAAyB,GAI1B,MAAM,SAAS,CAAC;AACjB,OAAO,EACL,OAAO,IAAI,kBAAkB,GAE9B,MAAM,2BAA2B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@navikt/ds-react",
3
- "version": "1.4.3",
3
+ "version": "1.4.4",
4
4
  "description": "NAV designsystem react components",
5
5
  "author": "NAV Designsystem team",
6
6
  "license": "MIT",
@@ -33,11 +33,11 @@
33
33
  "clean": "rimraf cjs esm",
34
34
  "build": "concurrently \"tsc\" \"tsc -p tsconfig.esm.json\" && yarn create-package-json-pointers-to-esm",
35
35
  "watch": "tsc --watch -p tsconfig.esm.json",
36
- "test": "jest"
36
+ "test": "TZ=UTC jest"
37
37
  },
38
38
  "dependencies": {
39
39
  "@floating-ui/react-dom-interactions": "0.9.2",
40
- "@navikt/ds-icons": "^1.4.3",
40
+ "@navikt/ds-icons": "^1.4.4",
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",
@@ -34,8 +34,8 @@ describe("Writing in input sets correct values", () => {
34
34
  const res = utils.getByTitle("res");
35
35
  expect(res.innerHTML).toEqual(
36
36
  JSON.stringify({
37
- from: "2022-08-02T22:00:00.000Z",
38
- to: "2022-08-02T22:00:00.000Z",
37
+ from: "2022-08-03T00:00:00.000Z",
38
+ to: "2022-08-03T00:00:00.000Z",
39
39
  })
40
40
  );
41
41
  });
@@ -52,7 +52,7 @@ describe("Writing in input sets correct values", () => {
52
52
  const res = utils.getByTitle("res");
53
53
  expect(res.innerHTML).toEqual(
54
54
  JSON.stringify({
55
- from: "2022-08-02T22:00:00.000Z",
55
+ from: "2022-08-03T00:00:00.000Z",
56
56
  })
57
57
  );
58
58
  });
package/src/date/index.ts CHANGED
@@ -9,6 +9,9 @@ export {
9
9
  UNSAFE_useDatepicker,
10
10
  UNSAFE_useMonthpicker,
11
11
  UNSAFE_useRangeDatepicker,
12
+ RangeValidationT,
13
+ DateValidationT,
14
+ MonthValidationT,
12
15
  } from "./hooks";
13
16
  export {
14
17
  default as UNSAFE_MonthPicker,