@clay-design-system/registry 0.0.0-stage → 0.14.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 +26 -2
- package/data/clay.sqlite +0 -0
- package/data/records.json +3773 -0
- package/dist/index.d.ts +232 -0
- package/dist/index.js +16531 -0
- package/package.json +38 -3
package/README.md
CHANGED
|
@@ -1,3 +1,27 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @clay-design-system/registry
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The Clay Registry: monday.com's marketing design system (components, sections, tokens, assets, rules) as one queryable
|
|
4
|
+
SQLite database, with a query layer that has no runtime dependencies. Read-only; internal units are not included.
|
|
5
|
+
|
|
6
|
+
Requires **Node >= 22.13** (uses the built-in `node:sqlite`, no flag needed).
|
|
7
|
+
|
|
8
|
+
## Install
|
|
9
|
+
|
|
10
|
+
```sh
|
|
11
|
+
pnpm add @clay-design-system/registry
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## Use
|
|
15
|
+
|
|
16
|
+
```js
|
|
17
|
+
import { search, get, assetUrl } from '@clay-design-system/registry'
|
|
18
|
+
|
|
19
|
+
search('hero section') // ranked hits: [{ id, kind, name, summary, links, score }, …]
|
|
20
|
+
get('section.FeaturesSection') // one compact record (import path, story, Figma and CDN links)
|
|
21
|
+
get('section.FeaturesSection', { detail: true }) // every column, plus links, relations and renders
|
|
22
|
+
assetUrl('asset.icon.calendar') // https://… CDN URL
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Also exported: `list`, `related`, `assetVariants`, `componentsUsingToken`, `allowedChildren`, `pageRecipe`, `openRegistry`,
|
|
26
|
+
the `Registry` class, the response types, and `DB_PATH` / `RECORDS_PATH` (absolute paths to the shipped
|
|
27
|
+
`data/clay.sqlite` and `data/records.json`, built when the package is built; gitignored in the repo).
|
package/data/clay.sqlite
ADDED
|
Binary file
|