@livepeer/design-system 1.1.1 → 1.1.2
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 +43 -3
- package/dist/components/Accordion.d.ts +1512 -0
- package/dist/components/Alert.d.ts +752 -0
- package/dist/components/AlertDialog.d.ts +16 -0
- package/dist/components/AppBar.d.ts +755 -0
- package/dist/components/Avatar.d.ts +2270 -0
- package/dist/components/Badge.d.ts +753 -0
- package/dist/components/Banner.d.ts +754 -0
- package/dist/components/Box.d.ts +749 -0
- package/dist/components/Button.d.ts +753 -0
- package/dist/components/Card.d.ts +751 -0
- package/dist/components/Checkbox.d.ts +761 -0
- package/dist/components/Code.d.ts +751 -0
- package/dist/components/Container.d.ts +751 -0
- package/dist/components/ContextMenu.d.ts +3766 -0
- package/dist/components/ControlGroup.d.ts +749 -0
- package/dist/components/DesignSystemProvider.d.ts +9 -0
- package/dist/components/Dialog.d.ts +18 -0
- package/dist/components/DropdownMenu.d.ts +6016 -0
- package/dist/components/Flex.d.ts +755 -0
- package/dist/components/Grid.d.ts +757 -0
- package/dist/components/Heading.d.ts +14 -0
- package/dist/components/IconButton.d.ts +753 -0
- package/dist/components/Image.d.ts +749 -0
- package/dist/components/Kbd.d.ts +752 -0
- package/dist/components/Label.d.ts +755 -0
- package/dist/components/Link.d.ts +751 -0
- package/dist/components/Menu.d.ts +10498 -0
- package/dist/components/Overlay.d.ts +1498 -0
- package/dist/components/Panel.d.ts +1498 -0
- package/dist/components/Paragraph.d.ts +14 -0
- package/dist/components/Popover.d.ts +13 -0
- package/dist/components/ProgressBar.d.ts +761 -0
- package/dist/components/Promo.d.ts +754 -0
- package/dist/components/Radio.d.ts +1510 -0
- package/dist/components/RadioCard.d.ts +758 -0
- package/dist/components/RadioGrid.d.ts +1500 -0
- package/dist/components/Scrollbar.d.ts +6 -0
- package/dist/components/Section.d.ts +751 -0
- package/dist/components/Select.d.ts +1504 -0
- package/dist/components/Separator.d.ts +753 -0
- package/dist/components/Sheet.d.ts +766 -0
- package/dist/components/SimpleToggle.d.ts +753 -0
- package/dist/components/Skeleton.d.ts +751 -0
- package/dist/components/Slider.d.ts +758 -0
- package/dist/components/Snackbar/SnackbarProvider.d.ts +15 -0
- package/dist/components/Snackbar/index.d.ts +2 -0
- package/dist/components/Snackbar/transitionStyles.d.ts +87 -0
- package/dist/components/Snackbar/useSnackbar.d.ts +5 -0
- package/dist/components/Status.d.ts +752 -0
- package/dist/components/Sub.d.ts +749 -0
- package/dist/components/Sup.d.ts +749 -0
- package/dist/components/Switch.d.ts +1509 -0
- package/dist/components/TabLink.d.ts +751 -0
- package/dist/components/Table.d.ts +6000 -0
- package/dist/components/Tabs.d.ts +4500 -0
- package/dist/components/Text.d.ts +753 -0
- package/dist/components/TextArea.d.ts +753 -0
- package/dist/components/TextField.d.ts +754 -0
- package/dist/components/Tooltip.d.ts +10 -0
- package/dist/components/TreeItem.d.ts +751 -0
- package/dist/components/VerifiedBadge.d.ts +762 -0
- package/dist/custom/AppBar.d.ts +755 -0
- package/dist/custom/Avatars.d.ts +2 -0
- package/dist/custom/DarkThemeButton.d.ts +2 -0
- package/dist/custom/Kbds.d.ts +2 -0
- package/dist/custom/Snackbar.d.ts +2 -0
- package/dist/custom/Toolbar.d.ts +2 -0
- package/dist/index.d.ts +61 -0
- package/dist/index.es.js +4893 -0
- package/dist/index.js +5108 -0
- package/dist/stitches.config.d.ts +6321 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -8,10 +8,50 @@ Visit [https://livepeer-design-system.vercel.app/](https://livepeer-design-syste
|
|
|
8
8
|
|
|
9
9
|
## Usage
|
|
10
10
|
|
|
11
|
-
```
|
|
11
|
+
```bash
|
|
12
12
|
yarn add @livepeer/design-system
|
|
13
13
|
```
|
|
14
14
|
|
|
15
|
-
##
|
|
15
|
+
## Local development
|
|
16
|
+
|
|
17
|
+
### Running the docs site
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
yarn install
|
|
21
|
+
yarn dev # docs site at http://localhost:3000
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
### Testing changes in consumer apps
|
|
25
|
+
|
|
26
|
+
The design system is consumed by apps such as the [Livepeer Explorer](https://github.com/livepeer/explorer). Use [yalc](https://github.com/wclr/yalc) to test local changes against one or more consumers before publishing — it copies files into each consumer's `node_modules` rather than symlinking, which avoids the duplicate React instance / "Invalid hook call" errors you get from `pnpm link` or `yarn link`.
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
# one-time install
|
|
30
|
+
npm i -g yalc
|
|
31
|
+
|
|
32
|
+
# first-time publish from design-system (populates ~/.yalc/packages)
|
|
33
|
+
yarn ds:build
|
|
34
|
+
yalc publish
|
|
35
|
+
|
|
36
|
+
# one-time, in each consumer app
|
|
37
|
+
yalc add @livepeer/design-system
|
|
38
|
+
pnpm install # or yarn install
|
|
39
|
+
|
|
40
|
+
# in design-system, after each change
|
|
41
|
+
yarn ds:build && yalc push
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
`yalc publish` puts the package in your local yalc store so consumers can `yalc add` it. `yalc push` rebuilds the store entry *and* propagates the new build to every consumer that has already added it. To unlink: run `yalc remove @livepeer/design-system` in each consumer and restore the original dependency version.
|
|
45
|
+
|
|
46
|
+
For a faster dev loop, run rollup in watch mode and push manually when you want to test:
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
# terminal 1: rebuild on save
|
|
50
|
+
rollup -c -w
|
|
51
|
+
|
|
52
|
+
# terminal 2: sync to consumers
|
|
53
|
+
yalc push
|
|
54
|
+
```
|
|
16
55
|
|
|
17
|
-
|
|
56
|
+
> [!TIP]
|
|
57
|
+
> Next.js sometimes ignores changes inside `node_modules`. If HMR doesn't fire after `yalc push`, touch a source file in the consumer app or restart its dev server.
|