Skip to content

Commit 3c3e40a

Browse files
authored
feat: release v1
2 parents 256430c + 74520ab commit 3c3e40a

16 files changed

+2316
-1629
lines changed

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
# [1.0.0-alpha.2](https://github.com/dash-ui/react-layout/compare/v1.0.0-alpha.1...v1.0.0-alpha.2) (2022-06-25)
2+
3+
### Features
4+
5+
- remove alpha peers ([b5e8dd5](https://github.com/dash-ui/react-layout/commit/b5e8dd5697f23887cc66cc6b9cfd16ea284aa2da))
6+
7+
# [1.0.0-alpha.1](https://github.com/dash-ui/react-layout/compare/v0.9.3...v1.0.0-alpha.1) (2021-10-29)
8+
9+
### Features
10+
11+
- update types and apis to support latest dash alpha ([a75301d](https://github.com/dash-ui/react-layout/commit/a75301d9047ba79ec7b9a46e30848717055581e8))
12+
13+
### BREAKING CHANGES
14+
15+
- Types and expected input styles instance are updated to the latest alpha
16+
117
## [0.9.3](https://github.com/dash-ui/react-layout/compare/v0.9.2...v0.9.3) (2021-10-03)
218

319
### Bug Fixes

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ const Component = () => (
118118

119119
| Component | Description |
120120
| ------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- |
121-
| [`<LayoutProvider>`](#layoutprovider) | A context provider which is only required if you intend on using responsive props or a custom `styles()` instance. |
121+
| [`<LayoutProvider>`](#layoutprovider) | A context provider which is only required if you intend on using responsive props or a custom `styles` instance. |
122122
| [`<Box>`](#box) | A layout component for adding size, padding, position, color, and more using tokens from your CSS variable theme. |
123123
| [`<Cluster>`](#cluster) | A row directional layout component that distributes its items in a cluster. Common use cases are tags and input chips. |
124124
| [`<Column>`](#column) | A layout component that distributes its items in a column without wrapping or shrinking. |
@@ -131,9 +131,9 @@ const Component = () => (
131131

132132
### Hooks
133133

134-
| Component | Description |
135-
| ----------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- |
136-
| [`useResponsiveStyles()`](#useresponsivestyles) | Returns the [responsive `styles()`](https://github.com/dash-ui/responsive) used for creating responsive layout props. |
134+
| Component | Description |
135+
| ----------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- |
136+
| [`useResponsiveStyles()`](#useresponsivestyles) | Returns the [responsive `styles`](https://github.com/dash-ui/responsive) used for creating responsive layout props. |
137137

138138
### TypeScript support
139139

@@ -153,7 +153,7 @@ components.
153153
### &lt;LayoutProvider&gt;
154154

155155
A context provider which is only required if you intend on using media query
156-
props or a custom `styles()` instance.
156+
props or a custom `styles` instance.
157157

158158
#### Example
159159

@@ -191,10 +191,10 @@ const Component = () => (
191191

192192
#### Props
193193

194-
| Prop | Type | Default | Required? | Description |
195-
| ------------ | ------------------------------------ | -------- | --------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
196-
| styles | `Styles<DashTokens, DashThemeNames>` | `styles` | No | The `styles()` instance you're using to create styles. By default this is the `styles()` instance exported from [`@dash-ui/styles`](https://github.com/dash-ui/styles) |
197-
| mediaQueries | `Record<string, string>` | | No | A mapping of name/media query pairs. This is only required if youre' using responsive props. |
194+
| Prop | Type | Default | Required? | Description |
195+
| ------------ | -------------------------------- | -------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
196+
| styles | `Styles<DashTokens, DashThemes>` | `styles` | No | The `styles` instance you're using to create styles. By default this is the `styles` instance exported from [`@dash-ui/styles`](https://github.com/dash-ui/styles) |
197+
| mediaQueries | `Record<string, string>` | | No | A mapping of name/media query pairs. This is only required if youre' using responsive props. |
198198

199199
### &lt;Box&gt;
200200

@@ -559,7 +559,7 @@ const Component = () => (
559559

560560
### useResponsiveStyles()
561561

562-
Returns the [responsive `styles()`](https://github.com/dash-ui/responsive)
562+
Returns the [responsive `styles`](https://github.com/dash-ui/responsive)
563563
used for creating responsive layout props.
564564

565565
#### Returns

package.json

Lines changed: 105 additions & 95 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,14 @@
11
{
22
"name": "@dash-ui/react-layout",
3-
"version": "0.9.3",
3+
"version": "1.0.0-alpha.2",
44
"description": "Awesome layout primitives for React using @dash-ui",
5-
"keywords": [
6-
"react",
7-
"react component",
8-
"react layout",
9-
"layout components",
10-
"dash layout components",
11-
"dash-ui layout components",
12-
"react layout components",
13-
"stack component",
14-
"grid component",
15-
"cluster component",
16-
"layer component",
17-
"react stack component",
18-
"react grid component",
19-
"react cluster component",
20-
"react layer component",
21-
"spacing component",
22-
"spacer component",
23-
"react spacing component",
24-
"css-in-react layout"
25-
],
26-
"homepage": "https://github.com/dash-ui/react-layout#readme",
27-
"bugs": "https://github.com/dash-ui/react-layout/issues",
28-
"repository": "github:dash-ui/react-layout",
295
"license": "MIT",
306
"author": "Jared Lunde <[email protected]> (https://jaredlunde.com/)",
31-
"sideEffects": false,
32-
"exports": {
33-
".": {
34-
"browser": "./dist/module/index.js",
35-
"import": "./dist/esm/index.mjs",
36-
"require": "./dist/main/index.js",
37-
"umd": "./dist/umd/dash-react-layout.js",
38-
"source": "./src/index.tsx",
39-
"types": "./types/index.d.ts",
40-
"default": "./dist/main/index.js"
41-
},
42-
"./package.json": "./package.json",
43-
"./": "./"
44-
},
7+
"homepage": "https://github.com/dash-ui/react-layout#readme",
8+
"repository": "github:dash-ui/react-layout",
9+
"bugs": "https://github.com/dash-ui/react-layout/issues",
4510
"main": "dist/main/index.js",
46-
"unpkg": "dist/umd/dash-react-layout.js",
4711
"module": "dist/module/index.js",
48-
"source": "src/index.tsx",
49-
"types": "types/index.d.ts",
5012
"files": [
5113
"/dist",
5214
"/src",
@@ -62,25 +24,77 @@
6224
"test": "jest",
6325
"validate": "lundle check-types && pnpm run lint && jest --coverage"
6426
},
65-
"commitlint": {
66-
"extends": [
67-
"@commitlint/config-conventional"
68-
]
69-
},
70-
"lint-staged": {
71-
"**/*.{ts,tsx,js,jsx}": [
72-
"eslint --ext .ts,.tsx,.js,.jsx --fix",
73-
"prettier --write"
74-
],
75-
"**/*.{md,yml,json}": [
76-
"prettier --write"
77-
]
78-
},
7927
"config": {
8028
"commitizen": {
8129
"path": "./node_modules/cz-conventional-changelog"
8230
}
8331
},
32+
"sideEffects": false,
33+
"types": "types/index.d.ts",
34+
"dependencies": {
35+
"@dash-ui/responsive": "^1.0.0-alpha.1",
36+
"clsx": "^1.1.1",
37+
"forward-ref-as": "^2.0.0"
38+
},
39+
"peerDependencies": {
40+
"@dash-ui/styles": ">=1.0.1",
41+
"react": ">=16.8"
42+
},
43+
"devDependencies": {
44+
"@commitlint/cli": "latest",
45+
"@commitlint/config-conventional": "latest",
46+
"@dash-ui/jest": "^2.1.2",
47+
"@dash-ui/styles": "^1.0.1",
48+
"@semantic-release/changelog": "^6.0.0",
49+
"@semantic-release/git": "^10.0.0",
50+
"@testing-library/jest-dom": "latest",
51+
"@testing-library/react": "latest",
52+
"@testing-library/react-hooks": "latest",
53+
"@testing-library/user-event": "latest",
54+
"@types/jest": "latest",
55+
"@types/node": "^18.0.0",
56+
"@types/react": "latest",
57+
"@types/react-dom": "latest",
58+
"cz-conventional-changelog": "latest",
59+
"eslint": "^7.32.0",
60+
"eslint-config-lunde": "latest",
61+
"husky": "latest",
62+
"jest": "27",
63+
"lint-staged": "latest",
64+
"lundle": "^0.4.13",
65+
"minify-css.macro": "^1.0.6",
66+
"prettier": "latest",
67+
"react": "latest",
68+
"react-dom": "latest",
69+
"react-test-renderer": "latest",
70+
"typescript": "latest"
71+
},
72+
"keywords": [
73+
"cluster component",
74+
"css-in-react layout",
75+
"dash layout components",
76+
"dash-ui layout components",
77+
"grid component",
78+
"layer component",
79+
"layout components",
80+
"react",
81+
"react cluster component",
82+
"react component",
83+
"react grid component",
84+
"react layer component",
85+
"react layout",
86+
"react layout components",
87+
"react spacing component",
88+
"react stack component",
89+
"spacer component",
90+
"spacing component",
91+
"stack component"
92+
],
93+
"commitlint": {
94+
"extends": [
95+
"@commitlint/config-conventional"
96+
]
97+
},
8498
"eslintConfig": {
8599
"extends": [
86100
"lunde"
@@ -115,6 +129,19 @@
115129
"/types",
116130
"*.config.js"
117131
],
132+
"exports": {
133+
".": {
134+
"browser": "./dist/module/index.js",
135+
"import": "./dist/esm/index.mjs",
136+
"require": "./dist/main/index.js",
137+
"umd": "./dist/umd/dash-react-layout.js",
138+
"source": "./src/index.tsx",
139+
"types": "./types/index.d.ts",
140+
"default": "./dist/main/index.js"
141+
},
142+
"./package.json": "./package.json",
143+
"./": "./"
144+
},
118145
"jest": {
119146
"collectCoverageFrom": [
120147
"**/src/**/*.{ts,tsx}"
@@ -142,48 +169,29 @@
142169
"<rootDir>/src/**/?(*.)test.{ts,tsx}"
143170
]
144171
},
145-
"devDependencies": {
146-
"@commitlint/cli": "latest",
147-
"@commitlint/config-conventional": "latest",
148-
"@dash-ui/jest": "^2.1.2",
149-
"@dash-ui/styles": "^0.8.6",
150-
"@semantic-release/changelog": "^6.0.0",
151-
"@semantic-release/git": "^10.0.0",
152-
"@testing-library/jest-dom": "latest",
153-
"@testing-library/react": "latest",
154-
"@testing-library/react-hooks": "latest",
155-
"@testing-library/user-event": "latest",
156-
"@types/jest": "latest",
157-
"@types/react": "latest",
158-
"@types/react-dom": "latest",
159-
"cz-conventional-changelog": "latest",
160-
"eslint": "latest",
161-
"eslint-config-lunde": "latest",
162-
"husky": "latest",
163-
"jest": "latest",
164-
"lint-staged": "latest",
165-
"lundle": "^0.4.13",
166-
"minify-css.macro": "^1.0.6",
167-
"prettier": "latest",
168-
"react": "latest",
169-
"react-dom": "latest",
170-
"react-test-renderer": "latest",
171-
"typescript": "latest"
172-
},
173-
"dependencies": {
174-
"@dash-ui/responsive": "^0.2.3",
175-
"clsx": "^1.1.1",
176-
"forward-ref-as": "^2.0.0"
177-
},
178-
"peerDependencies": {
179-
"@dash-ui/styles": ">=0.8.4",
180-
"react": ">=16.8"
172+
"lint-staged": {
173+
"package.json": [
174+
"pnpm dlx prettier-package-json --write"
175+
],
176+
"**/*.{ts,tsx,js,jsx}": [
177+
"eslint --ext .ts,.tsx,.js,.jsx --fix",
178+
"prettier --write"
179+
],
180+
"**/*.{md,yml,json}": [
181+
"prettier --write"
182+
]
181183
},
182184
"release": {
183185
"branches": [
184186
"main",
185-
"next",
186-
"alpha"
187+
{
188+
"name": "next",
189+
"prerelease": true
190+
},
191+
{
192+
"name": "alpha",
193+
"prerelease": true
194+
}
187195
],
188196
"plugins": [
189197
"@semantic-release/commit-analyzer",
@@ -203,5 +211,7 @@
203211
],
204212
"@semantic-release/github"
205213
]
206-
}
214+
},
215+
"source": "src/index.tsx",
216+
"unpkg": "dist/umd/dash-react-layout.js"
207217
}

0 commit comments

Comments
 (0)