Skip to content

Commit c317f39

Browse files
authored
Merge pull request #17 from faceless-ui/feat/types
Feat/types
2 parents 1f965d0 + 9f82b55 commit c317f39

File tree

5 files changed

+8
-5
lines changed

5 files changed

+8
-5
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
Read the full documentation [here](https://facelessui.com/docs/css-grid).
77

8-
### Installation
8+
## Installation
99

1010
```bash
1111
$ npm i @faceless-ui/css-grid

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@faceless-ui/css-grid",
3-
"version": "1.1.0",
3+
"version": "1.2.0",
44
"main": "dist/index.js",
55
"types": "dist/index.d.ts",
66
"homepage": "https://facelessui.com/docs/css-grid",

src/Settings/index.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import React, { createContext, useContext } from 'react';
22
import getColGap from './getColGap';
3-
import { Settings, Props } from './types';
3+
import { Settings, SettingsProviderProps } from './types';
44

55
const Context = createContext({} as Settings);
66

77
export const useSettings = (): Settings => useContext(Context);
88

9-
const SettingsProvider: React.FC<Props> = (props) => {
9+
const SettingsProvider: React.FC<SettingsProviderProps> = (props) => {
1010
const {
1111
children,
1212
cols = {

src/Settings/types.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export interface Settings {
2727
classPrefix?: string
2828
}
2929

30-
export interface Props {
30+
export interface SettingsProviderProps {
3131
cols?: Columns,
3232
colGap?: Gaps,
3333
rowGap?: Gaps,

src/types.ts

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export { IGrid, GridProps } from './Grid';
2+
export { ICell, CellProps } from './Cell';
3+
export { SettingsProviderProps, Settings, Breakpoints, Gaps, Columns } from './Settings/types';

0 commit comments

Comments
 (0)