@sb1/ffe-grid-react 15.0.20 → 15.1.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sb1/ffe-grid-react",
3
- "version": "15.0.20",
3
+ "version": "15.1.0",
4
4
  "license": "MIT",
5
5
  "author": "SpareBank1",
6
6
  "files": [
@@ -25,11 +25,11 @@
25
25
  "test:watch": "ffe-buildtool jest --watch"
26
26
  },
27
27
  "dependencies": {
28
- "@sb1/ffe-grid": "^15.1.4",
28
+ "@sb1/ffe-grid": "^15.1.5",
29
29
  "classnames": "^2.3.1"
30
30
  },
31
31
  "devDependencies": {
32
- "@sb1/ffe-buildtool": "^0.9.1",
32
+ "@sb1/ffe-buildtool": "^0.9.2",
33
33
  "react": "^18.2.0",
34
34
  "react-dom": "^18.2.0"
35
35
  },
@@ -39,5 +39,5 @@
39
39
  "publishConfig": {
40
40
  "access": "public"
41
41
  },
42
- "gitHead": "0e78fdb97c0d49fe152a4da4b0b883629623644d"
42
+ "gitHead": "1cb6f9447d2b45fdcd8bea7b41842027f21649f6"
43
43
  }
@@ -1,11 +1,5 @@
1
1
  import React, { ElementType } from 'react';
2
- import { BackgroundColor, BackgroundColorDark, ComponentWithoutRefAsPropParams } from './types';
3
- type ColumnsRange = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | '11' | '12';
4
- interface GridColSize {
5
- cols: ColumnsRange;
6
- offset?: ColumnsRange;
7
- }
8
- type SizeModifier = ColumnsRange | GridColSize;
2
+ import { BackgroundColor, BackgroundColorDark, ComponentWithoutRefAsPropParams, SizeModifier } from './types';
9
3
  export type GridColProps<As extends ElementType = any> = ComponentWithoutRefAsPropParams<As> & {
10
4
  /** Supported background colors */
11
5
  background?: BackgroundColor;
@@ -23,4 +17,3 @@ export type GridColProps<As extends ElementType = any> = ComponentWithoutRefAsPr
23
17
  lg?: SizeModifier;
24
18
  };
25
19
  export declare const GridCol: React.FC<GridColProps>;
26
- export {};
package/types/types.d.ts CHANGED
@@ -9,3 +9,10 @@ export type Padding = '2xs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' |
9
9
  export type Gap = 'none' | '2xs' | 'xs' | 'sm' | 'md' | 'lg';
10
10
  export type BackgroundColor = 'frost-30' | 'sand' | 'sand-70' | 'sand-30' | 'syrin-70' | 'syrin-30' | 'vann' | 'vann-30' | 'fjell' | 'hvit';
11
11
  export type BackgroundColorDark = 'svart' | 'natt' | 'koksgraa';
12
+ type ColumnsRange = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | '11' | '12';
13
+ interface GridColSize {
14
+ cols: ColumnsRange;
15
+ offset?: ColumnsRange;
16
+ }
17
+ export type SizeModifier = ColumnsRange | GridColSize;
18
+ export {};