@sb1/ffe-grid-react 13.0.3 → 13.0.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.
package/README.md CHANGED
@@ -8,8 +8,7 @@ npm install --save @sb1/ffe-grid-react
8
8
 
9
9
  ## Usage
10
10
 
11
- Run Styleguidist from the repository root to see live examples and documentation,
12
- or see the markdown files next to the component code in `src/`.
11
+ Full documentation on grid usage is available at https://design.sparebank1.no/komponenter/grid/.
13
12
 
14
13
  ## TypeScript definition files
15
14
 
@@ -28,3 +27,17 @@ window.showGrid = showGrid;
28
27
  ```
29
28
 
30
29
  Funksjonen man importerer fra `ffe-grid-react/lib/show-grid` fungerer som en toggle.
30
+
31
+ ## Development
32
+
33
+ To start a local development server, run the following from the designsystem root folder:
34
+
35
+ ```bash
36
+ npm install
37
+ npm run build
38
+ npm start
39
+ ```
40
+
41
+ A local instance of `component-overview` with live reloading will run at http://localhost:1234/.
42
+
43
+ Example implementations using the latest versions of all components are also available at https://sparebank1.github.io/designsystem.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sb1/ffe-grid-react",
3
- "version": "13.0.3",
3
+ "version": "13.0.4",
4
4
  "license": "MIT",
5
5
  "author": "SpareBank1",
6
6
  "files": [
@@ -24,7 +24,7 @@
24
24
  "test:watch": "ffe-buildtool jest --watch"
25
25
  },
26
26
  "dependencies": {
27
- "@sb1/ffe-grid": "^14.0.3",
27
+ "@sb1/ffe-grid": "^14.0.4",
28
28
  "classnames": "^2.3.1"
29
29
  },
30
30
  "devDependencies": {
@@ -38,5 +38,5 @@
38
38
  "publishConfig": {
39
39
  "access": "public"
40
40
  },
41
- "gitHead": "af7fc1a32630d5717ffbc8f50f339ba697c73130"
41
+ "gitHead": "1ab898e744977e4cb4db1bee9b65369a0deeef9a"
42
42
  }
package/types/index.d.ts CHANGED
@@ -2,7 +2,7 @@ import * as React from 'react';
2
2
 
3
3
  type Gap = 'none' | '2xs' | 'xs' | 'md' | 'lg';
4
4
 
5
- export interface GridProps extends React.HTMLAttributes<HTMLElement> {
5
+ export interface GridProps extends React.ComponentProps<'html'> {
6
6
  children: React.ReactNode;
7
7
  className?: string;
8
8
  element?: string;
@@ -45,7 +45,7 @@ type Padding =
45
45
  | '4xl'
46
46
  | '5xl';
47
47
 
48
- export interface GridRowProps extends React.HTMLAttributes<HTMLElement> {
48
+ export interface GridRowProps extends React.ComponentProps<'html'> {
49
49
  background?: BackgroundColors;
50
50
  children: React.ReactNode;
51
51
  className?: string;
@@ -61,7 +61,7 @@ export interface GridColSize {
61
61
  offset: ColumnsRange | string;
62
62
  }
63
63
 
64
- export interface GridColProps extends React.HTMLAttributes<HTMLElement> {
64
+ export interface GridColProps extends React.ComponentProps<'html'> {
65
65
  background?: BackgroundColors;
66
66
  children?: React.ReactNode;
67
67
  className?: string;