Skip to content

Commit 4788784

Browse files
committed
scaffolds wizard package
1 parent ff55af8 commit 4788784

15 files changed

+176
-0
lines changed

packages/wizard/README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
2+
# Wizard
3+
4+
![npm (scoped)](https://img.shields.io/npm/v/@leafygreen-ui/wizard.svg)
5+
#### [View on MongoDB.design](https://www.mongodb.design/component/wizard/live-example/)
6+
7+
## Installation
8+
9+
### PNPM
10+
11+
```shell
12+
pnpm add @leafygreen-ui/wizard
13+
```
14+
15+
### Yarn
16+
17+
```shell
18+
yarn add @leafygreen-ui/wizard
19+
```
20+
21+
### NPM
22+
23+
```shell
24+
npm install @leafygreen-ui/wizard
25+
```
26+

packages/wizard/package.json

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
2+
{
3+
"name": "@leafygreen-ui/wizard",
4+
"version": "0.1.0",
5+
"description": "LeafyGreen UI Kit Wizard",
6+
"main": "./dist/umd/index.js",
7+
"module": "./dist/esm/index.js",
8+
"types": "./dist/types/index.d.ts",
9+
"license": "Apache-2.0",
10+
"exports": {
11+
".": {
12+
"require": "./dist/umd/index.js",
13+
"import": "./dist/esm/index.js",
14+
"types": "./dist/types/index.d.ts"
15+
},
16+
"./testing": {
17+
"require": "./dist/umd/testing/index.js",
18+
"import": "./dist/esm/testing/index.js",
19+
"types": "./dist/types/testing/index.d.ts"
20+
}
21+
},
22+
"scripts": {
23+
"build": "lg-build bundle",
24+
"tsc": "lg-build tsc",
25+
"docs": "lg-build docs"
26+
},
27+
"publishConfig": {
28+
"access": "public"
29+
},
30+
"dependencies": {
31+
"@leafygreen-ui/emotion": "workspace:^",
32+
"@leafygreen-ui/lib": "workspace:^",
33+
"@lg-tools/test-harnesses": "workspace:^"
34+
},
35+
"homepage": "https://github.com/mongodb/leafygreen-ui/tree/main/packages/wizard",
36+
"repository": {
37+
"type": "git",
38+
"url": "https://github.com/mongodb/leafygreen-ui"
39+
},
40+
"bugs": {
41+
"url": "https://jira.mongodb.org/projects/LG/summary"
42+
}
43+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
2+
import React from 'react';
3+
import { StoryFn } from '@storybook/react';
4+
5+
import { Wizard } from '.';
6+
7+
export default {
8+
title: 'Components/Wizard',
9+
component: Wizard,
10+
}
11+
12+
const Template: StoryFn<typeof Wizard> = (props) => (
13+
<Wizard {...props} />
14+
);
15+
16+
export const Basic = Template.bind({});
17+
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
2+
import React from 'react';
3+
import { render } from '@testing-library/react';
4+
5+
import { Wizard } from '.';
6+
7+
describe('packages/wizard', () => {
8+
test('condition', () => {
9+
10+
})
11+
})
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2+
import { css } from '@leafygreen-ui/emotion';
3+
4+
export const baseStyles = css``;
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import React from 'react';
2+
import { WizardProps } from './Wizard.types';
3+
4+
export function Wizard({}: WizardProps) {
5+
return <div>your content here</div>;
6+
}
7+
8+
Wizard.displayName = 'Wizard';
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export interface WizardProps {}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
2+
export { Wizard } from './Wizard';
3+
export { type WizardProps } from './Wizard.types';

packages/wizard/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { Wizard, type WizardProps } from './Wizard';
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import React from 'react';
2+
import { render } from '@testing-library/react';
3+
4+
import { Wizard } from '.';
5+
6+
describe('packages/wizard/getTestUtils', () => {
7+
test('condition', () => {
8+
9+
})
10+
})

0 commit comments

Comments
 (0)