Skip to content

Commit 1d40a8e

Browse files
authored
Merge pull request #14 from devrnt/chore/prepare-release
Chore/prepare release
2 parents 94ecdc4 + 1338da5 commit 1d40a8e

File tree

15 files changed

+424
-178
lines changed

15 files changed

+424
-178
lines changed

package.json

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,46 @@
11
{
2+
"name": "react-use-wizard",
3+
"author": "devrnt <[email protected]>",
4+
"description": "React wizard (stepper) builder without the hassle, powered by hooks.",
5+
"homepage": "https://github.com/devrnt/react-use-wizard#readme",
6+
"module": "dist/react-use-wizard.esm.js",
27
"version": "0.0.0",
38
"license": "MIT",
49
"main": "dist/index.js",
510
"typings": "dist/index.d.ts",
11+
"repository": {
12+
"type": "git",
13+
"url": "https://github.com/devrnt/react-use-wizard"
14+
},
15+
"bugs": {
16+
"url": "https://github.com/devrnt/react-use-wizard/issues"
17+
},
618
"files": [
719
"dist",
820
"src"
921
],
1022
"engines": {
1123
"node": ">=10"
1224
},
25+
".": {
26+
"browser": "./dist/react-use-wizard.esm.js",
27+
"import": "./dist/react-use-wizard.esm.js",
28+
"require": "./dist/react-use-wizard.js"
29+
},
30+
"keywords": [
31+
"react",
32+
"reactjs",
33+
"wizard",
34+
"stepper",
35+
"react-stepper",
36+
"react-wizard",
37+
"react-use",
38+
"typescript",
39+
"react-hooks",
40+
"react-use-wizard",
41+
"react-use-stepper",
42+
"devrnt"
43+
],
1344
"scripts": {
1445
"start": "tsdx watch",
1546
"build": "tsdx build",
@@ -32,9 +63,6 @@
3263
"pre-commit": "tsdx lint"
3364
}
3465
},
35-
"name": "react-use-wizard",
36-
"author": "devrnt",
37-
"module": "dist/react-use-wizard.esm.js",
3866
"size-limit": [
3967
{
4068
"path": "dist/react-use-wizard.cjs.production.min.js",

playground/app.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1+
import { setup } from 'goober';
12
import * as React from 'react';
23

34
import { WizardModule } from './modules';
45
import { Page, Style } from './modules/common';
56

7+
setup(React.createElement);
8+
69
const App = () => {
710
return (
811
<>

playground/components/asyncStep.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
import { styled } from 'goober';
12
import * as React from 'react';
2-
import styled from 'styled-components';
33

44
import { useWizard } from '../../dist';
55
import { useMockMutation } from '../hooks';
@@ -31,7 +31,7 @@ const Container = styled('div')`
3131
align-items: center;
3232
`;
3333

34-
const P = styled.p`
34+
const P = styled('p')`
3535
color: white;
3636
`;
3737

playground/components/footer.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1+
import { styled } from 'goober';
12
import * as React from 'react';
2-
import styled from 'styled-components';
33

44
import { useWizard } from '../../dist';
55
import { Button } from '../modules/common';
66

7-
const Actions = styled.div`
7+
const Actions = styled('div')`
88
display: grid;
99
justify-content: center;
1010
margin: 1rem 0;
1111
grid-template-columns: min-content min-content;
1212
gap: 1rem;
1313
`;
1414

15-
const Info = styled.div`
15+
const Info = styled('div')`
1616
display: flex;
1717
justify-content: center;
1818
gap: 1rem;

playground/components/step.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
import { styled } from 'goober';
12
import * as React from 'react';
2-
import styled from 'styled-components';
33

44
import { useWizard } from '../../dist';
55

@@ -20,7 +20,7 @@ const Container = styled('div')`
2020
align-items: center;
2121
`;
2222

23-
const P = styled.p`
23+
const P = styled('p')`
2424
color: white;
2525
`;
2626

playground/components/tooltip.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1+
import { styled } from 'goober';
12
import * as React from 'react';
2-
import styled from 'styled-components';
33

44
type Props = {
55
label: string;
66
};
77

8-
const Container = styled.div<Props>`
8+
const Container = styled('div')<Props>`
99
position: relative;
1010
height: 100%;
1111
width: 100%;

playground/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import 'react-app-polyfill/ie11';
2+
import './normalize.css';
23

34
import * as React from 'react';
45
import * as ReactDOM from 'react-dom';

playground/modules/common/button.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1+
import { styled } from 'goober';
12
import * as React from 'react';
2-
import styled from 'styled-components';
33

44
type Props = {
55
label: string;
66
disabled: boolean;
77
} & React.HTMLAttributes<HTMLButtonElement>;
88

9-
const Container = styled.button`
9+
const Container = styled('button')`
1010
width: fit-content;
1111
min-width: 8rem;
1212
border: 1px solid var(--purple);

playground/modules/common/page.tsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
import { styled } from 'goober';
12
import * as React from 'react';
2-
import styled from 'styled-components';
33

44
import githubLogoPath from '../../assets/images/githubLogo.svg';
55
import logoPath from '../../assets/images/logo.svg';
@@ -10,34 +10,34 @@ type Props = {
1010
children: React.ReactNode;
1111
};
1212

13-
const Container = styled.main`
13+
const Container = styled('main')`
1414
display: flex;
1515
justify-content: center;
1616
background: var(--dark);
1717
`;
1818

19-
const Wrapper = styled.div`
19+
const Wrapper = styled('div')`
2020
width: 100%;
2121
`;
2222

23-
const Body = styled.div`
23+
const Body = styled('div')`
2424
margin-top: 2rem;
2525
`;
2626

27-
const Description = styled.div`
27+
const Description = styled('div')`
2828
font-size: 1.1rem;
2929
font-weight: 200;
3030
`;
3131

32-
const Divider = styled.div`
32+
const Divider = styled('div')`
3333
height: 2px;
3434
width: 7%;
3535
background-image: linear-gradient(48.66deg, var(--purple), var(--blue));
3636
margin: 2.5rem 0;
3737
display: flex;
3838
`;
3939

40-
const TopBar = styled.header`
40+
const TopBar = styled('header')`
4141
position: sticky;
4242
top: 0;
4343
left: 0;
@@ -52,12 +52,12 @@ const TopBar = styled.header`
5252
z-index: 1000;
5353
`;
5454

55-
const Logo = styled.img`
55+
const Logo = styled('img')`
5656
height: 3rem;
5757
width: 3rem;
5858
`;
5959

60-
const GithubLogo = styled.img`
60+
const GithubLogo = styled('img')`
6161
width: 2rem;
6262
`;
6363

playground/modules/common/style.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1+
// @ts-ignore
2+
import { createGlobalStyles } from 'goober/global';
13
import * as React from 'react';
2-
import { createGlobalStyle } from 'styled-components';
3-
import { Normalize } from 'styled-normalize';
44

5-
const GlobalStyle = createGlobalStyle`
5+
const GlobalStyle = createGlobalStyles`
66
:root {
77
--light: #0b002b;
88
--nav: rgba(3, 0, 12, 0.5);
@@ -50,7 +50,6 @@ const GlobalStyle = createGlobalStyle`
5050

5151
const Style = () => (
5252
<>
53-
<Normalize />
5453
<GlobalStyle />
5554
</>
5655
);

0 commit comments

Comments
 (0)