Skip to content

Commit b305396

Browse files
committed
init delete wizard
1 parent 6a58193 commit b305396

File tree

16 files changed

+181
-0
lines changed

16 files changed

+181
-0
lines changed

.changeset/delete-wizard.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@lg-templates/delete-wizard': minor
3+
---
4+
5+
Initial release of `DeleteWizard`

templates/delete-wizard/README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
2+
# Delete Wizard
3+
4+
![npm (scoped)](https://img.shields.io/npm/v/@leafygreen-ui/delete-wizard.svg)
5+
#### [View on MongoDB.design](https://www.mongodb.design/component/delete-wizard/live-example/)
6+
7+
## Installation
8+
9+
### PNPM
10+
11+
```shell
12+
pnpm add @leafygreen-ui/delete-wizard
13+
```
14+
15+
### Yarn
16+
17+
```shell
18+
yarn add @leafygreen-ui/delete-wizard
19+
```
20+
21+
### NPM
22+
23+
```shell
24+
npm install @leafygreen-ui/delete-wizard
25+
```
26+
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
2+
{
3+
"name": "@lg-templates/delete-wizard",
4+
"version": "0.0.1",
5+
"description": "LeafyGreen UI Kit Delete 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/delete-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 { DeleteWizard } from '.';
6+
7+
export default {
8+
title: 'Components/DeleteWizard',
9+
component: DeleteWizard,
10+
}
11+
12+
const Template: StoryFn<typeof DeleteWizard> = (props) => (
13+
<DeleteWizard {...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 { DeleteWizard } from '.';
6+
7+
describe('packages/delete-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 { DeleteWizardProps } from './DeleteWizard.types';
3+
4+
export function DeleteWizard({}: DeleteWizardProps) {
5+
return <div>your content here</div>;
6+
}
7+
8+
DeleteWizard.displayName = 'DeleteWizard';
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export interface DeleteWizardProps {}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
2+
export { DeleteWizard } from './DeleteWizard';
3+
export { type DeleteWizardProps } from './DeleteWizard.types';
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { DeleteWizard, type DeleteWizardProps } from './DeleteWizard';

0 commit comments

Comments
 (0)