@blurrow/ui 0.0.0-stage → 0.2.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.
Files changed (58) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +93 -2
  3. package/dist/cli.js +1477 -0
  4. package/dist/index.d.ts +631 -0
  5. package/dist/index.js +5559 -0
  6. package/dist/index.js.map +1 -0
  7. package/dist/registry/Accordion.tsx +140 -0
  8. package/dist/registry/Alert.tsx +92 -0
  9. package/dist/registry/AuthorCard.tsx +67 -0
  10. package/dist/registry/Avatar.tsx +116 -0
  11. package/dist/registry/Badge.tsx +58 -0
  12. package/dist/registry/Banner.tsx +89 -0
  13. package/dist/registry/Breadcrumb.tsx +60 -0
  14. package/dist/registry/Button.tsx +372 -0
  15. package/dist/registry/ButtonGroup.tsx +82 -0
  16. package/dist/registry/Card.tsx +241 -0
  17. package/dist/registry/CardShell.tsx +78 -0
  18. package/dist/registry/Carousel.tsx +292 -0
  19. package/dist/registry/Checkbox.tsx +99 -0
  20. package/dist/registry/CloseButton.tsx +68 -0
  21. package/dist/registry/CodeBlock.tsx +202 -0
  22. package/dist/registry/CommandPalette.tsx +349 -0
  23. package/dist/registry/DataList.tsx +49 -0
  24. package/dist/registry/Drawer.tsx +164 -0
  25. package/dist/registry/DropdownMenu.tsx +257 -0
  26. package/dist/registry/EmptyState.tsx +55 -0
  27. package/dist/registry/Input.tsx +97 -0
  28. package/dist/registry/Kbd.tsx +24 -0
  29. package/dist/registry/Modal.tsx +128 -0
  30. package/dist/registry/Pagination.tsx +163 -0
  31. package/dist/registry/Popover.tsx +121 -0
  32. package/dist/registry/Progress.tsx +66 -0
  33. package/dist/registry/QuoteCard.tsx +93 -0
  34. package/dist/registry/Radio.tsx +202 -0
  35. package/dist/registry/ReactionBar.tsx +101 -0
  36. package/dist/registry/ReadingProgress.tsx +51 -0
  37. package/dist/registry/ReadingTime.tsx +35 -0
  38. package/dist/registry/Select.tsx +290 -0
  39. package/dist/registry/ShareButtons.tsx +134 -0
  40. package/dist/registry/Sidebar.tsx +182 -0
  41. package/dist/registry/Skeleton.tsx +83 -0
  42. package/dist/registry/SpotlightCard.tsx +106 -0
  43. package/dist/registry/Stat.tsx +82 -0
  44. package/dist/registry/StatCard.tsx +256 -0
  45. package/dist/registry/Steps.tsx +109 -0
  46. package/dist/registry/Table.tsx +121 -0
  47. package/dist/registry/TableOfContents.tsx +116 -0
  48. package/dist/registry/Tabs.tsx +136 -0
  49. package/dist/registry/TagInput.tsx +191 -0
  50. package/dist/registry/Textarea.tsx +84 -0
  51. package/dist/registry/Timeline.tsx +102 -0
  52. package/dist/registry/Toast.tsx +385 -0
  53. package/dist/registry/Toggle.tsx +99 -0
  54. package/dist/registry/Tooltip.tsx +212 -0
  55. package/dist/registry/styles.css +401 -0
  56. package/dist/registry/useModalBehavior.ts +77 -0
  57. package/dist/styles.css +401 -0
  58. package/package.json +56 -4
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 manyports
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,94 @@
1
- # Temporary Holding Version
1
+ # @blurrow/ui
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ buttons you want to press, fields you want to fill in.
4
+
5
+ 48 react components that share the same materials and the same light. made with care by [@manyports](https://manyports.com).
6
+
7
+ ## install
8
+
9
+ the quick way, in your project:
10
+
11
+ ```bash
12
+ npx @blurrow/ui init
13
+ ```
14
+
15
+ it installs the package, adds the styles to your css, loads the font and sets up toasts in your layout, showing each change before it makes it. or by hand:
16
+
17
+ ```bash
18
+ npm install @blurrow/ui
19
+ ```
20
+
21
+ you'll need react 19 and tailwind css v4.
22
+
23
+ ## set up
24
+
25
+ **1. styles.** add the tokens to your global stylesheet, after tailwind, and point tailwind at the package so it picks up the classes the components use:
26
+
27
+ ```css
28
+ /* app/globals.css */
29
+ @import "tailwindcss";
30
+ @import "@blurrow/ui/styles.css";
31
+
32
+ @source "../node_modules/@blurrow/ui";
33
+ ```
34
+
35
+ the `@source` path is relative to the css file, so adjust it if your stylesheet lives somewhere else.
36
+
37
+ **2. font.** everything is set in archivo. load it as the `--font-archivo` variable. with next.js:
38
+
39
+ ```tsx
40
+ // app/layout.tsx
41
+ import { Archivo } from "next/font/google";
42
+ import { ToastProvider } from "@blurrow/ui";
43
+ import "./globals.css";
44
+
45
+ const archivo = Archivo({ subsets: ["latin"], variable: "--font-archivo" });
46
+
47
+ export default function RootLayout({ children }: { children: React.ReactNode }) {
48
+ return (
49
+ <html lang="en" className={archivo.variable}>
50
+ <body className="bg-[#EBEBEB] font-sans text-neutral-900 antialiased">
51
+ <ToastProvider>{children}</ToastProvider>
52
+ </body>
53
+ </html>
54
+ );
55
+ }
56
+ ```
57
+
58
+ `ToastProvider` is only needed if you use toasts.
59
+
60
+ ## use
61
+
62
+ ```tsx
63
+ import { Button } from "@blurrow/ui";
64
+
65
+ export default function Page() {
66
+ return <Button variant="primary">say hi</Button>;
67
+ }
68
+ ```
69
+
70
+ every component is marked `"use client"`, so you can import them straight into server components.
71
+
72
+ ## the cli
73
+
74
+ ```bash
75
+ npx @blurrow/ui init # set up a project (safe to run again)
76
+ npx @blurrow/ui add [names…] # copy components' source in, with anything they need
77
+ npx @blurrow/ui list # every component, and which ones you've copied
78
+ npx @blurrow/ui diff [name] # what you've changed in copied components
79
+ npx @blurrow/ui doctor [--fix] # check the setup, and repair the css if it's off
80
+ ```
81
+
82
+ once the package is installed, `npx blurrow <command>` is a shorter way to say the same thing.
83
+
84
+ `add` with no names opens a picker (type to filter, space to pick). names are forgiving: `button`, `Button` and `button-group` all work, and typos get a suggestion. copied files that you've changed are never overwritten unless you pass `--overwrite`.
85
+
86
+ everything takes `--yes` (no questions), `--dry-run` (show, don't write) and `--cwd <path>`. settings live in `blurrow.json`:
87
+
88
+ ```json
89
+ { "componentsDir": "components/ui", "css": "app/globals.css" }
90
+ ```
91
+
92
+ ## license
93
+
94
+ MIT