Skip to content

Commit 71b6c41

Browse files
committed
feat(context-drawer): create context-drawer package and install deps
1 parent f423d38 commit 71b6c41

File tree

6 files changed

+156
-0
lines changed

6 files changed

+156
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ import Button from '@leafygreen-ui/button';
8181
| [@leafygreen-ui/code](./packages/code) | [![version](https://img.shields.io/npm/v/@leafygreen-ui/code)](https://www.npmjs.com/package/@leafygreen-ui/code) | ![downloads](https://img.shields.io/npm/dm/@leafygreen-ui/code?color=white) | [Live Example](http://mongodb.design/component/code/live-example) |
8282
| [@leafygreen-ui/combobox](./packages/combobox) | [![version](https://img.shields.io/npm/v/@leafygreen-ui/combobox)](https://www.npmjs.com/package/@leafygreen-ui/combobox) | ![downloads](https://img.shields.io/npm/dm/@leafygreen-ui/combobox?color=white) | [Live Example](http://mongodb.design/component/combobox/live-example) |
8383
| [@leafygreen-ui/confirmation-modal](./packages/confirmation-modal) | [![version](https://img.shields.io/npm/v/@leafygreen-ui/confirmation-modal)](https://www.npmjs.com/package/@leafygreen-ui/confirmation-modal) | ![downloads](https://img.shields.io/npm/dm/@leafygreen-ui/confirmation-modal?color=white) | [Live Example](http://mongodb.design/component/confirmation-modal/live-example) |
84+
| [@leafygreen-ui/context-drawer](./packages/context-drawer) | [![version](https://img.shields.io/npm/v/@leafygreen-ui/context-drawer)](https://www.npmjs.com/package/@leafygreen-ui/context-drawer) | ![downloads](https://img.shields.io/npm/dm/@leafygreen-ui/context-drawer?color=white) | [Live Example](http://mongodb.design/component/context-drawer/live-example) |
8485
| [@leafygreen-ui/copyable](./packages/copyable) | [![version](https://img.shields.io/npm/v/@leafygreen-ui/copyable)](https://www.npmjs.com/package/@leafygreen-ui/copyable) | ![downloads](https://img.shields.io/npm/dm/@leafygreen-ui/copyable?color=white) | [Live Example](http://mongodb.design/component/copyable/live-example) |
8586
| [@leafygreen-ui/date-picker](./packages/date-picker) | [![version](https://img.shields.io/npm/v/@leafygreen-ui/date-picker)](https://www.npmjs.com/package/@leafygreen-ui/date-picker) | ![downloads](https://img.shields.io/npm/dm/@leafygreen-ui/date-picker?color=white) | [Live Example](http://mongodb.design/component/date-picker/live-example) |
8687
| [@leafygreen-ui/date-utils](./packages/date-utils) | [![version](https://img.shields.io/npm/v/@leafygreen-ui/date-utils)](https://www.npmjs.com/package/@leafygreen-ui/date-utils) | ![downloads](https://img.shields.io/npm/dm/@leafygreen-ui/date-utils?color=white) | [Live Example](http://mongodb.design/component/date-utils/live-example) |

packages/context-drawer/README.md

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

packages/context-drawer/package.json

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
2+
{
3+
"name": "@leafygreen-ui/context-drawer",
4+
"version": "0.1.0",
5+
"description": "LeafyGreen UI Kit Context Drawer",
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/button": "workspace:^",
32+
"@leafygreen-ui/emotion": "workspace:^",
33+
"@leafygreen-ui/hooks": "workspace:^",
34+
"@leafygreen-ui/icon": "workspace:^",
35+
"@leafygreen-ui/lib": "workspace:^",
36+
"@leafygreen-ui/palette": "workspace:^",
37+
"@leafygreen-ui/tokens": "workspace:^"
38+
},
39+
"devDependencies": {
40+
"@faker-js/faker": "^8.0.2",
41+
"@storybook/test": "8.5.3",
42+
"@lg-tools/build": "workspace:^"
43+
},
44+
"peerDependencies": {
45+
"@leafygreen-ui/leafygreen-provider": "workspace:^"
46+
},
47+
"homepage": "https://github.com/mongodb/leafygreen-ui/tree/main/packages/context-drawer",
48+
"repository": {
49+
"type": "git",
50+
"url": "https://github.com/mongodb/leafygreen-ui"
51+
},
52+
"bugs": {
53+
"url": "https://jira.mongodb.org/projects/LG/summary"
54+
}
55+
}

packages/context-drawer/tsconfig.json

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"extends": "@lg-tools/build/config/package.tsconfig.json",
3+
"compilerOptions": {
4+
"paths": {
5+
"@leafygreen-ui/icon/dist/*": ["../icon/src/generated/*"],
6+
"@leafygreen-ui/*": ["../*/src"]
7+
}
8+
},
9+
"include": ["src/**/*"],
10+
"exclude": ["**/*.spec.*", "**/*.stories.*"],
11+
"references": [
12+
{
13+
"path": "../button"
14+
},
15+
{
16+
"path": "../emotion"
17+
},
18+
{
19+
"path": "../hooks"
20+
},
21+
{
22+
"path": "../icon"
23+
},
24+
{
25+
"path": "../leafygreen-provider"
26+
},
27+
{
28+
"path": "../lib"
29+
},
30+
{
31+
"path": "../palette"
32+
},
33+
{
34+
"path": "../tokens"
35+
}
36+
]
37+
}

pnpm-lock.yaml

Lines changed: 37 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tools/install/src/ALL_PACKAGES.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ export const ALL_PACKAGES = [
1515
'@leafygreen-ui/code',
1616
'@leafygreen-ui/combobox',
1717
'@leafygreen-ui/confirmation-modal',
18+
'@leafygreen-ui/context-drawer',
1819
'@leafygreen-ui/copyable',
1920
'@leafygreen-ui/date-picker',
2021
'@leafygreen-ui/date-utils',

0 commit comments

Comments
 (0)