@nycplanning/streetscape 0.8.2 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -2
- package/dist/components/Button/index.d.ts +4 -0
- package/dist/components/CloseButton/index.d.ts +1 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/index.js +670 -582
- package/dist/index.js.map +1 -1
- package/dist/theme/components/button.d.ts +21 -3
- package/dist/theme/components/close-button.d.ts +56 -0
- package/dist/theme/components/index.d.ts +77 -3
- package/dist/theme/tokens/colors.d.ts +24 -0
- package/dist/theme/tokens/index.d.ts +27 -0
- package/dist/theme/tokens/radii.d.ts +1 -0
- package/dist/theme/tokens/sizes.d.ts +1 -0
- package/dist/theme/tokens/space.d.ts +1 -0
- package/package.json +18 -3
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Streetscape
|
|
2
2
|
|
|
3
3
|
This repo contains the primary implementation of Streetscape, NYC Planning Digital's design system. It contains code to run and publish a website with [Storybook](https://storybook.js.org/), as well as an NPM package.
|
|
4
4
|
|
|
@@ -8,4 +8,8 @@ Once you've cloned the repo, `cd` into it and install dependencies by running `n
|
|
|
8
8
|
|
|
9
9
|
> Internally, we use [nvm](https://github.com/nvm-sh/nvm) to manage versions of Node.js. The `.nvmrc` file in this repo tells you which version of Node you should be using when working on it. If you are using `nvm`, you can have it switch automatically by running `nvm use` from the root of this repository.
|
|
10
10
|
|
|
11
|
-
Then, to run the Storybook site locally, simply run `npm run dev`.
|
|
11
|
+
Then, to run the Storybook site locally, simply run `npm run dev`.
|
|
12
|
+
|
|
13
|
+
### Creating Conventional Commits
|
|
14
|
+
|
|
15
|
+
For any new commits to be merged into `main` of this repo, we require that those commits conform to the [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) standard. Please review that documentation to understand the basic components of Conventional Commits. This repo comes packaged with `devDependencies` to make creating Conventional Commits easy. Specifically, we use tools from [Commitlint](https://commitlint.js.org/#/) and [Commitizen](https://github.com/commitizen) projects. When you have staged changes and are ready to create a commit, simply run `npm run commit` and the interactive CLI will walk you through creating a Conventional Commit. Note that we do not have a git hook configured in this project to require Conventional Commits in contributors' local environments. This is to allow developers to create non-conventional commits locally for the purposes of tracking their work incrementally. However, contributors who work in that way will be required make all commits in a PR match the Conventional Commit standard before their PR will be reviewed, either through squashing or otherwise updating their commit messages.
|
|
@@ -1,2 +1,6 @@
|
|
|
1
1
|
export { Button } from "./Button";
|
|
2
|
+
export { IconButton } from "./IconButton";
|
|
3
|
+
export { ButtonGroup } from "./ButtonGroup";
|
|
2
4
|
export type { ButtonProps } from "./Button";
|
|
5
|
+
export type { IconButtonProps } from "./IconButton";
|
|
6
|
+
export type { ButtonGroupProps } from "./ButtonGroup";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./CloseButton";
|