@navikt/ds-react 0.16.5 → 0.16.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.
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- interface DataCellProps extends React.HTMLAttributes<HTMLTableCellElement> {
2
+ interface DataCellProps extends React.TdHTMLAttributes<HTMLTableCellElement> {
3
3
  }
4
4
  export interface DataCellType extends React.ForwardRefExoticComponent<DataCellProps & React.RefAttributes<HTMLTableCellElement>> {
5
5
  }
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- interface HeaderCellProps extends React.HTMLAttributes<HTMLTableCellElement> {
2
+ interface HeaderCellProps extends React.ThHTMLAttributes<HTMLTableCellElement> {
3
3
  scope?: string;
4
4
  }
5
5
  export interface HeaderCellType extends React.ForwardRefExoticComponent<HeaderCellProps & React.RefAttributes<HTMLTableCellElement>> {
@@ -4,7 +4,7 @@ import { BodyType } from "./Body";
4
4
  import { RowType } from "./Row";
5
5
  import { HeaderCellType } from "./HeaderCell";
6
6
  import { DataCellType } from "./DataCell";
7
- export interface TableProps extends React.HTMLAttributes<HTMLTableElement> {
7
+ export interface TableProps extends React.TableHTMLAttributes<HTMLTableElement> {
8
8
  /**
9
9
  * Changes padding
10
10
  * @default "medium"
@@ -1 +1 @@
1
- {"version":3,"file":"Table.js","sourceRoot":"","sources":["../../src/table/Table.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACzD,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,MAAsB,MAAM,UAAU,CAAC;AAC9C,OAAO,IAAkB,MAAM,QAAQ,CAAC;AACxC,OAAO,GAAgB,MAAM,OAAO,CAAC;AACrC,OAAO,UAA8B,MAAM,cAAc,CAAC;AAC1D,OAAO,QAA0B,MAAM,YAAY,CAAC;AA8BpD,MAAM,CAAC,MAAM,YAAY,GAAG,a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AA6D,EAAE,GAAG,EAAE,EAAE;QAAtE,EAAE,SAAS,EAAE,YAAY,GAAG,KAAK,EAAE,IAAI,GAAG,QAAQ,OAAW,EAAN,IAAI,cAA3D,qCAA6D,CAAF;IAAY,OAAA,CACtE,oBAAC,YAAY,CAAC,QAAQ,IAAC,KAAK,EAAE,EAAE,IAAI,EAAE;QACpC,+CACM,IAAI,IACR,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,EAAE,CAAC,aAAa,EAAE,gBAAgB,IAAI,EAAE,EAAE,SAAS,EAAE;gBAC9D,4BAA4B,EAAE,YAAY;aAC3C,CAAC,IACF,CACoB,CACzB,CAAA;CAAA,CACW,CAAC;AAEf,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC;AACtB,KAAK,CAAC,IAAI,GAAG,IAAI,CAAC;AAClB,KAAK,CAAC,GAAG,GAAG,GAAG,CAAC;AAChB,KAAK,CAAC,UAAU,GAAG,UAAU,CAAC;AAC9B,KAAK,CAAC,QAAQ,GAAG,QAAQ,CAAC;AAE1B,eAAe,KAAK,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@navikt/ds-react",
3
- "version": "0.16.5",
3
+ "version": "0.16.6",
4
4
  "private": false,
5
5
  "description": "NAV designsystem react components",
6
6
  "author": "NAV Designsystem team",
@@ -64,5 +64,5 @@
64
64
  "@types/react": "^17.0.30",
65
65
  "react": "^17.0.0"
66
66
  },
67
- "gitHead": "5d383b754f9ccaec5d65c417d64ae08a47fb710a"
67
+ "gitHead": "5f6bd160d6793768c5b10daac65ba788d19b14d1"
68
68
  }
@@ -5,6 +5,9 @@ import { Success } from "@navikt/ds-icons";
5
5
  export default {
6
6
  title: "ds-react/button",
7
7
  component: Button,
8
+ parameters: {
9
+ chromatic: { delay: 300 },
10
+ },
8
11
  };
9
12
 
10
13
  const Section = ({ children }) => (
@@ -3,7 +3,7 @@ import cl from "classnames";
3
3
  import { BodyShort } from "..";
4
4
  import { TableContext } from ".";
5
5
 
6
- interface DataCellProps extends React.HTMLAttributes<HTMLTableCellElement> {}
6
+ interface DataCellProps extends React.TdHTMLAttributes<HTMLTableCellElement> {}
7
7
 
8
8
  export interface DataCellType
9
9
  extends React.ForwardRefExoticComponent<
@@ -2,7 +2,7 @@ import React, { forwardRef, useContext } from "react";
2
2
  import cl from "classnames";
3
3
  import { Label, TableContext } from "..";
4
4
 
5
- interface HeaderCellProps extends React.HTMLAttributes<HTMLTableCellElement> {
5
+ interface HeaderCellProps extends React.ThHTMLAttributes<HTMLTableCellElement> {
6
6
  scope?: string;
7
7
  }
8
8
 
@@ -6,7 +6,8 @@ import Row, { RowType } from "./Row";
6
6
  import HeaderCell, { HeaderCellType } from "./HeaderCell";
7
7
  import DataCell, { DataCellType } from "./DataCell";
8
8
 
9
- export interface TableProps extends React.HTMLAttributes<HTMLTableElement> {
9
+ export interface TableProps
10
+ extends React.TableHTMLAttributes<HTMLTableElement> {
10
11
  /**
11
12
  * Changes padding
12
13
  * @default "medium"