@compilorama/compy 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 (40) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/README.md +45 -2
  3. package/dist/cjs/components/button/button.css +1 -0
  4. package/dist/cjs/components/button/button.js +1 -0
  5. package/dist/cjs/components/button/button.md +38 -0
  6. package/dist/cjs/components/button/tokens.md +85 -0
  7. package/dist/cjs/docs/CONSUMERS.md +17 -0
  8. package/dist/cjs/docs/components.md +7 -0
  9. package/dist/cjs/docs/tokens.md +33 -0
  10. package/dist/cjs/fonts/Inter-Bold.woff2 +0 -0
  11. package/dist/cjs/fonts/Inter-Medium.woff2 +0 -0
  12. package/dist/cjs/fonts/Inter-Regular.woff2 +0 -0
  13. package/dist/cjs/fonts/Inter-SemiBold.woff2 +0 -0
  14. package/dist/cjs/fonts.css +1 -0
  15. package/dist/cjs/index.css +1 -0
  16. package/dist/cjs/index.js +1 -0
  17. package/dist/cjs/mocks/module.js +1 -0
  18. package/dist/cjs/package.json +1 -0
  19. package/dist/cjs/vars.css +1 -0
  20. package/dist/docs/CONSUMERS.md +17 -0
  21. package/dist/docs/components.md +7 -0
  22. package/dist/docs/tokens.md +33 -0
  23. package/dist/es6/components/button/button.css +1 -0
  24. package/dist/es6/components/button/button.js +1 -0
  25. package/dist/es6/components/button/button.md +38 -0
  26. package/dist/es6/components/button/tokens.md +85 -0
  27. package/dist/es6/docs/CONSUMERS.md +17 -0
  28. package/dist/es6/docs/components.md +7 -0
  29. package/dist/es6/docs/tokens.md +33 -0
  30. package/dist/es6/fonts/Inter-Bold.woff2 +0 -0
  31. package/dist/es6/fonts/Inter-Medium.woff2 +0 -0
  32. package/dist/es6/fonts/Inter-Regular.woff2 +0 -0
  33. package/dist/es6/fonts/Inter-SemiBold.woff2 +0 -0
  34. package/dist/es6/fonts.css +1 -0
  35. package/dist/es6/index.css +1 -0
  36. package/dist/es6/index.js +1 -0
  37. package/dist/es6/mocks/module.js +1 -0
  38. package/dist/es6/vars.css +1 -0
  39. package/dist/index.d.ts +2 -0
  40. package/package.json +77 -4
package/CHANGELOG.md ADDED
@@ -0,0 +1,17 @@
1
+ # [0.2.0](https://github.com/compilorama/compy/compare/v0.1.0...v0.2.0) (2026-11-16)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * ci config ([71f83ee](https://github.com/compilorama/compy/commit/71f83eef913901c2b270543aa8f6449046fbb282))
7
+
8
+
9
+ ### Features
10
+
11
+ * improve button text appearance ([9a453c5](https://github.com/compilorama/compy/commit/9a453c5f9ce23630dfcb5dc14f6f4c9063864f5d))
12
+
13
+ # 0.1.0 (2026-11-15)
14
+
15
+ ### Features
16
+
17
+ * bootstrap UI library with Button as first public component ([380b29f](https://github.com/compilorama/compy/commit/380b29f271ada10fa1412b9d28b132497fb75641))
package/README.md CHANGED
@@ -1,3 +1,46 @@
1
- # Temporary Holding Version
1
+ # Compy
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
+ Compy is a React UI component library. It ships ready-to-use components, shared design tokens, and fonts so you can drop a consistent look into your app without reinventing the basics.
4
+
5
+ ## For AI agents
6
+
7
+ If you are an AI agent integrating this library into a project, read
8
+ `node_modules/<lib>/dist/docs/CONSUMERS.md` before writing code that uses its components.
9
+
10
+ ## Installation
11
+
12
+ Install the package from npm:
13
+
14
+ ```bash
15
+ npm install @compilorama/compy
16
+ ```
17
+
18
+ Compy expects `react` v18 or later and `react-dom` as peer dependencies, so make sure those are already in your project.
19
+
20
+ ## Usage
21
+
22
+ Refer to [src/docs/components.md](src/docs/components.md) to learn how to use each component.
23
+
24
+ ## Contribute
25
+
26
+ To work on this repo you need Node.js and npm. That is enough to install dependencies and run every script below. After you clone the project, run `npm install` at the root.
27
+
28
+ `npm run format` lints `src` and `playground/src` with ESLint so style and basic correctness stay consistent.
29
+
30
+ `npm run build` compiles the library into dual CJS and ESM bundles under `dist`, copies CSS and fonts, and emits TypeScript declarations. Use `npm run build:watch` when you want the same build to re-run as you edit sources.
31
+
32
+ `npm test` runs the Jest suite with coverage. The project enforces 100% coverage on branches, functions, lines, and statements, so a failing threshold means you still have work to do.
33
+
34
+ `npm run test:treeshake` builds a tiny consumer bundle against `dist` and checks that tree-shaking and the public style/export surface behave as expected. Run it after a successful `npm run build`.
35
+
36
+ `npm start` boots the local playground (see the next section). `prepublishOnly` runs the build automatically before a publish so `dist` stays fresh; you normally do not need to invoke it yourself.
37
+
38
+ ## Playground
39
+
40
+ The playground is a small app under `playground/` where you can see and exercise library components in the browser while you develop. It imports the library sources directly, so you get a fast feedback loop without publishing a package first.
41
+
42
+ From the repo root, run `npm start`. That starts Vite with the playground config and opens the local demo environment. Use it to try variants, layouts, and interactions before you commit a change.
43
+
44
+ ## Notes
45
+
46
+ Before you open a commit, lint and test your changes. Run `npm run format` and `npm test`, and keep the suite at 100% coverage. If either step fails, fix it first — that bar is part of how this library stays trustworthy as it grows.
@@ -0,0 +1 @@
1
+ .c-button{--c-button-background: var(--c-color-gray-90);--c-button-background-hover: var(--c-color-gray-95);--c-button-background-disabled: var(--c-color-gray-95);--c-button-content: var(--c-color-gray-10);--c-button-content-disabled: var(--c-color-gray-60);--c-button-border-color: var(--c-color-gray-90);--c-button-border-color-disabled: var(--c-color-gray-95);--c-button-box-shadow-color: var(--c-color-gray-95);--c-button-radius: 10px;--c-button-height: 40px;--c-button-width: auto;--c-button-padding: 10px 25px;display:inline-flex;position:relative;align-items:center;justify-content:center;width:var(--c-button-width);height:var(--c-button-height);padding:var(--c-button-padding);background:var(--c-button-background);color:var(--c-button-content);font-family:var(--c-font-family-primary);font-size:1rem;font-weight:700;line-height:1;border:1px solid var(--c-button-border-color);border-radius:var(--c-button-radius);box-shadow:0 0 0 0 var(--c-button-box-shadow-color);box-sizing:border-box;cursor:pointer;outline:0;transition:all .3s ease-out}.c-button:hover:not(:disabled){background:var(--c-button-background-hover)}.c-button:focus-visible{box-shadow:0 0 0 5px var(--c-button-box-shadow-color)}.c-button.is-accented:not(.is-outline):focus-visible{box-shadow:0 0 0 5px var(--c-color-accented-80)}.c-button.is-outline:focus-visible,.c-button.is-borderless:focus-visible{box-shadow:0 0 0 5px var(--c-color-accented-90)}.c-button:disabled{background:var(--c-button-background-disabled);color:var(--c-button-content-disabled);border-color:var(--c-button-border-color-disabled);cursor:default}.c-button.is-accented{--c-button-background: var(--c-color-accented-10);--c-button-background-hover: var(--c-color-accented-20);--c-button-background-disabled: var(--c-color-accented-30);--c-button-content: var(--c-color-accented-95);--c-button-content-disabled: var(--c-color-accented-80);--c-button-border-color: var(--c-color-accented-10);--c-button-border-color-disabled: var(--c-color-accented-30)}.c-button.is-outline{--c-button-background: transparent;--c-button-background-hover: var(--c-color-gray-95);--c-button-background-disabled: transparent;--c-button-border-color: var(--c-color-gray-70);--c-button-border-color-disabled: var(--c-color-gray-85);--c-button-content: var(--c-color-gray-20)}.c-button.is-borderless{--c-button-background: transparent;--c-button-background-hover: var(--c-color-gray-95);--c-button-background-disabled: transparent;--c-button-border-color: transparent;--c-button-border-color-disabled: transparent;--c-button-content: var(--c-color-gray-30)}.c-button.is-accented.is-outline{--c-button-content: var(--c-color-accented-10);--c-button-content-disabled: var(--c-color-accented-70);--c-button-border-color: var(--c-color-accented-10);--c-button-border-color-disabled: var(--c-color-accented-70)}.c-button.is-accented.is-borderless{--c-button-content: var(--c-color-accented-10)}.c-button.is-round{--c-button-radius: 20px}.c-button.is-isometric{--c-button-height: 40px;--c-button-width: 40px;--c-button-padding: 0}
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0,require("./button.css");var _jsxRuntime=require("react/jsx-runtime");const Button=({accented:e,round:t,isometric:u,outline:i,borderless:r,className:o,children:s,...n})=>{const c=buildButtonClasses({accented:e,round:t,isometric:u,outline:i,borderless:r,className:o});return(0,_jsxRuntime.jsx)("button",{className:c,...n,children:s})};function buildButtonClasses({accented:e,round:t,isometric:u,outline:i,borderless:r,className:o}){const s=["c-button"];return e&&s.push("is-accented"),t&&s.push("is-round"),u&&s.push("is-isometric"),i&&s.push("is-outline"),r&&s.push("is-borderless"),[...s,o].filter(Boolean).join(" ")}var _default=exports.default=Button;
@@ -0,0 +1,38 @@
1
+ ---
2
+ name: Button
3
+ description: A native button element with variant styles driven by design tokens.
4
+ purpose: Trigger actions and submit forms with consistent visual variants.
5
+ ---
6
+
7
+ # Button
8
+
9
+ A native button element with variant styles driven by design tokens.
10
+
11
+ ## Props
12
+
13
+ Boolean props are composable: combine them to reach the desired look (e.g. `round` + `outline`, `accented` + `round`, `accented` + `outline`).
14
+
15
+ <!-- BEGIN GENERATED PROPS -->
16
+ _Also inherits all props from `ButtonHTMLAttributes<HTMLButtonElement>`._
17
+
18
+ | Name | Type | Required | Default | Description |
19
+ | --- | --- | --- | --- | --- |
20
+ | accented | `boolean` | No | `false` | Renders the button with the defined accent color. |
21
+ | borderless | `boolean` | No | `false` | Removes the button border. |
22
+ | children | `ReactNode` | No | `undefined` | Button label or content. |
23
+ | isometric | `boolean` | No | `false` | Renders equal width and height (40×40). |
24
+ | outline | `boolean` | No | `false` | Renders with no background fill. |
25
+ | round | `boolean` | No | `false` | Renders fully rounded corners. |
26
+ <!-- END GENERATED PROPS -->
27
+
28
+ ## When to use
29
+
30
+ - Submitting forms or sending data
31
+ - Opening dialogs or modals
32
+ - Closing dialogs or modals
33
+ - Resetting forms
34
+
35
+ ## When NOT to use
36
+
37
+ - **Route changes** — use a router link or navigation component instead of a button that changes the URL.
38
+ - **External URLs** — use an anchor (`<a href="...">`) so the control behaves as navigation, not a generic action.
@@ -0,0 +1,85 @@
1
+ # Button tokens
2
+
3
+ Generated from `src/components/button/button.css`.
4
+
5
+ ## Base tokens
6
+
7
+ | Token | Declared value | Resolution |
8
+ | --- | --- | --- |
9
+ | `--c-button-background` | `var(--c-color-gray-90)` | `var(--c-color-gray-90) → hsl(0 0% 90%)` |
10
+ | `--c-button-background-disabled` | `var(--c-color-gray-95)` | `var(--c-color-gray-95) → hsl(0 0% 95%)` |
11
+ | `--c-button-background-hover` | `var(--c-color-gray-95)` | `var(--c-color-gray-95) → hsl(0 0% 95%)` |
12
+ | `--c-button-border-color` | `var(--c-color-gray-90)` | `var(--c-color-gray-90) → hsl(0 0% 90%)` |
13
+ | `--c-button-border-color-disabled` | `var(--c-color-gray-95)` | `var(--c-color-gray-95) → hsl(0 0% 95%)` |
14
+ | `--c-button-box-shadow-color` | `var(--c-color-gray-95)` | `var(--c-color-gray-95) → hsl(0 0% 95%)` |
15
+ | `--c-button-content` | `var(--c-color-gray-10)` | `var(--c-color-gray-10) → hsl(0 0% 10%)` |
16
+ | `--c-button-content-disabled` | `var(--c-color-gray-60)` | `var(--c-color-gray-60) → hsl(0 0% 60%)` |
17
+ | `--c-button-height` | `40px` | `40px` |
18
+ | `--c-button-padding` | `10px 25px` | `10px 25px` |
19
+ | `--c-button-radius` | `10px` | `10px` |
20
+ | `--c-button-width` | `auto` | `auto` |
21
+
22
+ ## Modifier overrides
23
+
24
+ ### `.c-button.is-accented`
25
+
26
+ | Token | Declared value | Resolution |
27
+ | --- | --- | --- |
28
+ | `--c-button-background` | `var(--c-color-accented-10)` | `var(--c-color-accented-10) → var(--c-color-gray-10) → hsl(0 0% 10%)` |
29
+ | `--c-button-background-disabled` | `var(--c-color-accented-30)` | `var(--c-color-accented-30) → var(--c-color-gray-30) → hsl(0 0% 30%)` |
30
+ | `--c-button-background-hover` | `var(--c-color-accented-20)` | `var(--c-color-accented-20) → var(--c-color-gray-20) → hsl(0 0% 20%)` |
31
+ | `--c-button-border-color` | `var(--c-color-accented-10)` | `var(--c-color-accented-10) → var(--c-color-gray-10) → hsl(0 0% 10%)` |
32
+ | `--c-button-border-color-disabled` | `var(--c-color-accented-30)` | `var(--c-color-accented-30) → var(--c-color-gray-30) → hsl(0 0% 30%)` |
33
+ | `--c-button-content` | `var(--c-color-accented-95)` | `var(--c-color-accented-95) → var(--c-color-gray-95) → hsl(0 0% 95%)` |
34
+ | `--c-button-content-disabled` | `var(--c-color-accented-80)` | `var(--c-color-accented-80) → var(--c-color-gray-80) → hsl(0 0% 80%)` |
35
+
36
+ ### `.c-button.is-outline`
37
+
38
+ | Token | Declared value | Resolution |
39
+ | --- | --- | --- |
40
+ | `--c-button-background` | `transparent` | `transparent` |
41
+ | `--c-button-background-disabled` | `transparent` | `transparent` |
42
+ | `--c-button-background-hover` | `var(--c-color-gray-95)` | `var(--c-color-gray-95) → hsl(0 0% 95%)` |
43
+ | `--c-button-border-color` | `var(--c-color-gray-70)` | `var(--c-color-gray-70) → hsl(0 0% 70%)` |
44
+ | `--c-button-border-color-disabled` | `var(--c-color-gray-85)` | `var(--c-color-gray-85) → hsl(0 0% 85%)` |
45
+ | `--c-button-content` | `var(--c-color-gray-20)` | `var(--c-color-gray-20) → hsl(0 0% 20%)` |
46
+
47
+ ### `.c-button.is-borderless`
48
+
49
+ | Token | Declared value | Resolution |
50
+ | --- | --- | --- |
51
+ | `--c-button-background` | `transparent` | `transparent` |
52
+ | `--c-button-background-disabled` | `transparent` | `transparent` |
53
+ | `--c-button-background-hover` | `var(--c-color-gray-95)` | `var(--c-color-gray-95) → hsl(0 0% 95%)` |
54
+ | `--c-button-border-color` | `transparent` | `transparent` |
55
+ | `--c-button-border-color-disabled` | `transparent` | `transparent` |
56
+ | `--c-button-content` | `var(--c-color-gray-30)` | `var(--c-color-gray-30) → hsl(0 0% 30%)` |
57
+
58
+ ### `.c-button.is-accented.is-outline`
59
+
60
+ | Token | Declared value | Resolution |
61
+ | --- | --- | --- |
62
+ | `--c-button-border-color` | `var(--c-color-accented-10)` | `var(--c-color-accented-10) → var(--c-color-gray-10) → hsl(0 0% 10%)` |
63
+ | `--c-button-border-color-disabled` | `var(--c-color-accented-70)` | `var(--c-color-accented-70) → var(--c-color-gray-70) → hsl(0 0% 70%)` |
64
+ | `--c-button-content` | `var(--c-color-accented-10)` | `var(--c-color-accented-10) → var(--c-color-gray-10) → hsl(0 0% 10%)` |
65
+ | `--c-button-content-disabled` | `var(--c-color-accented-70)` | `var(--c-color-accented-70) → var(--c-color-gray-70) → hsl(0 0% 70%)` |
66
+
67
+ ### `.c-button.is-accented.is-borderless`
68
+
69
+ | Token | Declared value | Resolution |
70
+ | --- | --- | --- |
71
+ | `--c-button-content` | `var(--c-color-accented-10)` | `var(--c-color-accented-10) → var(--c-color-gray-10) → hsl(0 0% 10%)` |
72
+
73
+ ### `.c-button.is-round`
74
+
75
+ | Token | Declared value | Resolution |
76
+ | --- | --- | --- |
77
+ | `--c-button-radius` | `20px` | `20px` |
78
+
79
+ ### `.c-button.is-isometric`
80
+
81
+ | Token | Declared value | Resolution |
82
+ | --- | --- | --- |
83
+ | `--c-button-height` | `40px` | `40px` |
84
+ | `--c-button-padding` | `0` | `0` |
85
+ | `--c-button-width` | `40px` | `40px` |
@@ -0,0 +1,17 @@
1
+ # Consumer projects
2
+
3
+ When this library is installed from npm (`@compilorama/compy`), agent and developer documentation is included in the published package build output.
4
+
5
+ ## Where to read docs
6
+
7
+ From your project root (after `npm install @compilorama/compy`):
8
+
9
+ 1. **Component index:** `node_modules/@compilorama/compy/dist/docs/components.md`
10
+ 2. **Global design tokens:** `node_modules/@compilorama/compy/dist/docs/tokens.md`
11
+ 3. **Per-component docs:** under `node_modules/@compilorama/compy/dist/es6/components/<name>/` (or `dist/cjs/...`), for example `button.md` and `tokens.md`
12
+
13
+ Start with `dist/docs/components.md` to pick a component, then open the linked paths relative to that file.
14
+
15
+ ## Customizing tokens
16
+
17
+ Override global accent colors by redefining `--c-color-accented-*` on a root or scope selector in your app, after importing the library styles. See `dist/docs/tokens.md` for the full token list and resolution chains.
@@ -0,0 +1,7 @@
1
+ # Components index
2
+
3
+ Generated from component frontmatter. Human usage sections live in each component doc.
4
+
5
+ | Component | Description | Purpose | Doc path |
6
+ | --- | --- | --- | --- |
7
+ | Button | A native button element with variant styles driven by design tokens. | Trigger actions and submit forms with consistent visual variants. | [`../components/button/button.md`](../components/button/button.md) |
@@ -0,0 +1,33 @@
1
+ # Global design tokens
2
+
3
+ Generated from `src/vars.css`. Values show the declared token and the resolved reference chain.
4
+
5
+ | Token | Declared value | Resolution |
6
+ | --- | --- | --- |
7
+ | `--c-color-accented-10` | `var(--c-color-gray-10)` | `var(--c-color-gray-10) → hsl(0 0% 10%)` |
8
+ | `--c-color-accented-15` | `var(--c-color-gray-15)` | `var(--c-color-gray-15) → hsl(0 0% 15%)` |
9
+ | `--c-color-accented-20` | `var(--c-color-gray-20)` | `var(--c-color-gray-20) → hsl(0 0% 20%)` |
10
+ | `--c-color-accented-30` | `var(--c-color-gray-30)` | `var(--c-color-gray-30) → hsl(0 0% 30%)` |
11
+ | `--c-color-accented-40` | `var(--c-color-gray-40)` | `var(--c-color-gray-40) → hsl(0 0% 40%)` |
12
+ | `--c-color-accented-5` | `var(--c-color-gray-5)` | `var(--c-color-gray-5) → hsl(0 0% 5%)` |
13
+ | `--c-color-accented-50` | `var(--c-color-gray-50)` | `var(--c-color-gray-50) → hsl(0 0% 50%)` |
14
+ | `--c-color-accented-60` | `var(--c-color-gray-60)` | `var(--c-color-gray-60) → hsl(0 0% 60%)` |
15
+ | `--c-color-accented-70` | `var(--c-color-gray-70)` | `var(--c-color-gray-70) → hsl(0 0% 70%)` |
16
+ | `--c-color-accented-80` | `var(--c-color-gray-80)` | `var(--c-color-gray-80) → hsl(0 0% 80%)` |
17
+ | `--c-color-accented-85` | `var(--c-color-gray-85)` | `var(--c-color-gray-85) → hsl(0 0% 85%)` |
18
+ | `--c-color-accented-90` | `var(--c-color-gray-90)` | `var(--c-color-gray-90) → hsl(0 0% 90%)` |
19
+ | `--c-color-accented-95` | `var(--c-color-gray-95)` | `var(--c-color-gray-95) → hsl(0 0% 95%)` |
20
+ | `--c-color-gray-10` | `hsl(0 0% 10%)` | `hsl(0 0% 10%)` |
21
+ | `--c-color-gray-15` | `hsl(0 0% 15%)` | `hsl(0 0% 15%)` |
22
+ | `--c-color-gray-20` | `hsl(0 0% 20%)` | `hsl(0 0% 20%)` |
23
+ | `--c-color-gray-30` | `hsl(0 0% 30%)` | `hsl(0 0% 30%)` |
24
+ | `--c-color-gray-40` | `hsl(0 0% 40%)` | `hsl(0 0% 40%)` |
25
+ | `--c-color-gray-5` | `hsl(0 0% 5%)` | `hsl(0 0% 5%)` |
26
+ | `--c-color-gray-50` | `hsl(0 0% 50%)` | `hsl(0 0% 50%)` |
27
+ | `--c-color-gray-60` | `hsl(0 0% 60%)` | `hsl(0 0% 60%)` |
28
+ | `--c-color-gray-70` | `hsl(0 0% 70%)` | `hsl(0 0% 70%)` |
29
+ | `--c-color-gray-80` | `hsl(0 0% 80%)` | `hsl(0 0% 80%)` |
30
+ | `--c-color-gray-85` | `hsl(0 0% 85%)` | `hsl(0 0% 85%)` |
31
+ | `--c-color-gray-90` | `hsl(0 0% 90%)` | `hsl(0 0% 90%)` |
32
+ | `--c-color-gray-95` | `hsl(0 0% 95%)` | `hsl(0 0% 95%)` |
33
+ | `--c-font-family-primary` | `'Inter', sans-serif` | `'Inter', sans-serif` |
Binary file
@@ -0,0 +1 @@
1
+ @font-face{font-family:Inter;src:url(./fonts/Inter-Regular.woff2) format("woff2");font-weight:400;font-style:normal;font-display:swap}@font-face{font-family:Inter;src:url(./fonts/Inter-Medium.woff2) format("woff2");font-weight:500;font-style:normal;font-display:swap}@font-face{font-family:Inter;src:url(./fonts/Inter-SemiBold.woff2) format("woff2");font-weight:600;font-style:normal;font-display:swap}@font-face{font-family:Inter;src:url(./fonts/Inter-Bold.woff2) format("woff2");font-weight:700;font-style:normal;font-display:swap}
@@ -0,0 +1 @@
1
+ @import"./fonts.css";@import"./vars.css";body{font-family:var(--c-font-family-primary)}
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"Button",{enumerable:!0,get:function(){return _button.default}}),require("./index.css");var _button=_interopRequireDefault(require("./components/button/button.jsx"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default=exports.default={};
@@ -0,0 +1 @@
1
+ {"type":"commonjs"}
@@ -0,0 +1 @@
1
+ :root{--c-font-family-primary: "Inter", sans-serif;--c-color-gray-95: hsl(0 0% 95%);--c-color-gray-90: hsl(0 0% 90%);--c-color-gray-85: hsl(0 0% 85%);--c-color-gray-80: hsl(0 0% 80%);--c-color-gray-70: hsl(0 0% 70%);--c-color-gray-60: hsl(0 0% 60%);--c-color-gray-50: hsl(0 0% 50%);--c-color-gray-40: hsl(0 0% 40%);--c-color-gray-30: hsl(0 0% 30%);--c-color-gray-20: hsl(0 0% 20%);--c-color-gray-15: hsl(0 0% 15%);--c-color-gray-10: hsl(0 0% 10%);--c-color-gray-5: hsl(0 0% 5%);--c-color-accented-95: var(--c-color-gray-95);--c-color-accented-90: var(--c-color-gray-90);--c-color-accented-85: var(--c-color-gray-85);--c-color-accented-80: var(--c-color-gray-80);--c-color-accented-70: var(--c-color-gray-70);--c-color-accented-60: var(--c-color-gray-60);--c-color-accented-50: var(--c-color-gray-50);--c-color-accented-40: var(--c-color-gray-40);--c-color-accented-30: var(--c-color-gray-30);--c-color-accented-20: var(--c-color-gray-20);--c-color-accented-15: var(--c-color-gray-15);--c-color-accented-10: var(--c-color-gray-10);--c-color-accented-5: var(--c-color-gray-5)}
@@ -0,0 +1,17 @@
1
+ # Consumer projects
2
+
3
+ When this library is installed from npm (`@compilorama/compy`), agent and developer documentation is included in the published package build output.
4
+
5
+ ## Where to read docs
6
+
7
+ From your project root (after `npm install @compilorama/compy`):
8
+
9
+ 1. **Component index:** `node_modules/@compilorama/compy/dist/docs/components.md`
10
+ 2. **Global design tokens:** `node_modules/@compilorama/compy/dist/docs/tokens.md`
11
+ 3. **Per-component docs:** under `node_modules/@compilorama/compy/dist/es6/components/<name>/` (or `dist/cjs/...`), for example `button.md` and `tokens.md`
12
+
13
+ Start with `dist/docs/components.md` to pick a component, then open the linked paths relative to that file.
14
+
15
+ ## Customizing tokens
16
+
17
+ Override global accent colors by redefining `--c-color-accented-*` on a root or scope selector in your app, after importing the library styles. See `dist/docs/tokens.md` for the full token list and resolution chains.
@@ -0,0 +1,7 @@
1
+ # Components index
2
+
3
+ Generated from component frontmatter. Human usage sections live in each component doc.
4
+
5
+ | Component | Description | Purpose | Doc path |
6
+ | --- | --- | --- | --- |
7
+ | Button | A native button element with variant styles driven by design tokens. | Trigger actions and submit forms with consistent visual variants. | [`../components/button/button.md`](../components/button/button.md) |
@@ -0,0 +1,33 @@
1
+ # Global design tokens
2
+
3
+ Generated from `src/vars.css`. Values show the declared token and the resolved reference chain.
4
+
5
+ | Token | Declared value | Resolution |
6
+ | --- | --- | --- |
7
+ | `--c-color-accented-10` | `var(--c-color-gray-10)` | `var(--c-color-gray-10) → hsl(0 0% 10%)` |
8
+ | `--c-color-accented-15` | `var(--c-color-gray-15)` | `var(--c-color-gray-15) → hsl(0 0% 15%)` |
9
+ | `--c-color-accented-20` | `var(--c-color-gray-20)` | `var(--c-color-gray-20) → hsl(0 0% 20%)` |
10
+ | `--c-color-accented-30` | `var(--c-color-gray-30)` | `var(--c-color-gray-30) → hsl(0 0% 30%)` |
11
+ | `--c-color-accented-40` | `var(--c-color-gray-40)` | `var(--c-color-gray-40) → hsl(0 0% 40%)` |
12
+ | `--c-color-accented-5` | `var(--c-color-gray-5)` | `var(--c-color-gray-5) → hsl(0 0% 5%)` |
13
+ | `--c-color-accented-50` | `var(--c-color-gray-50)` | `var(--c-color-gray-50) → hsl(0 0% 50%)` |
14
+ | `--c-color-accented-60` | `var(--c-color-gray-60)` | `var(--c-color-gray-60) → hsl(0 0% 60%)` |
15
+ | `--c-color-accented-70` | `var(--c-color-gray-70)` | `var(--c-color-gray-70) → hsl(0 0% 70%)` |
16
+ | `--c-color-accented-80` | `var(--c-color-gray-80)` | `var(--c-color-gray-80) → hsl(0 0% 80%)` |
17
+ | `--c-color-accented-85` | `var(--c-color-gray-85)` | `var(--c-color-gray-85) → hsl(0 0% 85%)` |
18
+ | `--c-color-accented-90` | `var(--c-color-gray-90)` | `var(--c-color-gray-90) → hsl(0 0% 90%)` |
19
+ | `--c-color-accented-95` | `var(--c-color-gray-95)` | `var(--c-color-gray-95) → hsl(0 0% 95%)` |
20
+ | `--c-color-gray-10` | `hsl(0 0% 10%)` | `hsl(0 0% 10%)` |
21
+ | `--c-color-gray-15` | `hsl(0 0% 15%)` | `hsl(0 0% 15%)` |
22
+ | `--c-color-gray-20` | `hsl(0 0% 20%)` | `hsl(0 0% 20%)` |
23
+ | `--c-color-gray-30` | `hsl(0 0% 30%)` | `hsl(0 0% 30%)` |
24
+ | `--c-color-gray-40` | `hsl(0 0% 40%)` | `hsl(0 0% 40%)` |
25
+ | `--c-color-gray-5` | `hsl(0 0% 5%)` | `hsl(0 0% 5%)` |
26
+ | `--c-color-gray-50` | `hsl(0 0% 50%)` | `hsl(0 0% 50%)` |
27
+ | `--c-color-gray-60` | `hsl(0 0% 60%)` | `hsl(0 0% 60%)` |
28
+ | `--c-color-gray-70` | `hsl(0 0% 70%)` | `hsl(0 0% 70%)` |
29
+ | `--c-color-gray-80` | `hsl(0 0% 80%)` | `hsl(0 0% 80%)` |
30
+ | `--c-color-gray-85` | `hsl(0 0% 85%)` | `hsl(0 0% 85%)` |
31
+ | `--c-color-gray-90` | `hsl(0 0% 90%)` | `hsl(0 0% 90%)` |
32
+ | `--c-color-gray-95` | `hsl(0 0% 95%)` | `hsl(0 0% 95%)` |
33
+ | `--c-font-family-primary` | `'Inter', sans-serif` | `'Inter', sans-serif` |
@@ -0,0 +1 @@
1
+ .c-button{--c-button-background: var(--c-color-gray-90);--c-button-background-hover: var(--c-color-gray-95);--c-button-background-disabled: var(--c-color-gray-95);--c-button-content: var(--c-color-gray-10);--c-button-content-disabled: var(--c-color-gray-60);--c-button-border-color: var(--c-color-gray-90);--c-button-border-color-disabled: var(--c-color-gray-95);--c-button-box-shadow-color: var(--c-color-gray-95);--c-button-radius: 10px;--c-button-height: 40px;--c-button-width: auto;--c-button-padding: 10px 25px;display:inline-flex;position:relative;align-items:center;justify-content:center;width:var(--c-button-width);height:var(--c-button-height);padding:var(--c-button-padding);background:var(--c-button-background);color:var(--c-button-content);font-family:var(--c-font-family-primary);font-size:1rem;font-weight:700;line-height:1;border:1px solid var(--c-button-border-color);border-radius:var(--c-button-radius);box-shadow:0 0 0 0 var(--c-button-box-shadow-color);box-sizing:border-box;cursor:pointer;outline:0;transition:all .3s ease-out}.c-button:hover:not(:disabled){background:var(--c-button-background-hover)}.c-button:focus-visible{box-shadow:0 0 0 5px var(--c-button-box-shadow-color)}.c-button.is-accented:not(.is-outline):focus-visible{box-shadow:0 0 0 5px var(--c-color-accented-80)}.c-button.is-outline:focus-visible,.c-button.is-borderless:focus-visible{box-shadow:0 0 0 5px var(--c-color-accented-90)}.c-button:disabled{background:var(--c-button-background-disabled);color:var(--c-button-content-disabled);border-color:var(--c-button-border-color-disabled);cursor:default}.c-button.is-accented{--c-button-background: var(--c-color-accented-10);--c-button-background-hover: var(--c-color-accented-20);--c-button-background-disabled: var(--c-color-accented-30);--c-button-content: var(--c-color-accented-95);--c-button-content-disabled: var(--c-color-accented-80);--c-button-border-color: var(--c-color-accented-10);--c-button-border-color-disabled: var(--c-color-accented-30)}.c-button.is-outline{--c-button-background: transparent;--c-button-background-hover: var(--c-color-gray-95);--c-button-background-disabled: transparent;--c-button-border-color: var(--c-color-gray-70);--c-button-border-color-disabled: var(--c-color-gray-85);--c-button-content: var(--c-color-gray-20)}.c-button.is-borderless{--c-button-background: transparent;--c-button-background-hover: var(--c-color-gray-95);--c-button-background-disabled: transparent;--c-button-border-color: transparent;--c-button-border-color-disabled: transparent;--c-button-content: var(--c-color-gray-30)}.c-button.is-accented.is-outline{--c-button-content: var(--c-color-accented-10);--c-button-content-disabled: var(--c-color-accented-70);--c-button-border-color: var(--c-color-accented-10);--c-button-border-color-disabled: var(--c-color-accented-70)}.c-button.is-accented.is-borderless{--c-button-content: var(--c-color-accented-10)}.c-button.is-round{--c-button-radius: 20px}.c-button.is-isometric{--c-button-height: 40px;--c-button-width: 40px;--c-button-padding: 0}
@@ -0,0 +1 @@
1
+ import"./button.css";import{jsx as l}from"react/jsx-runtime";const a=({accented:t,round:i,isometric:o,outline:e,borderless:n,className:u,children:s,...r})=>{const c=f({accented:t,round:i,isometric:o,outline:e,borderless:n,className:u});return l("button",{className:c,...r,children:s})};function f({accented:t,round:i,isometric:o,outline:e,borderless:n,className:u}){const s=["c-button"];return t&&s.push("is-accented"),i&&s.push("is-round"),o&&s.push("is-isometric"),e&&s.push("is-outline"),n&&s.push("is-borderless"),[...s,u].filter(Boolean).join(" ")}export default a;
@@ -0,0 +1,38 @@
1
+ ---
2
+ name: Button
3
+ description: A native button element with variant styles driven by design tokens.
4
+ purpose: Trigger actions and submit forms with consistent visual variants.
5
+ ---
6
+
7
+ # Button
8
+
9
+ A native button element with variant styles driven by design tokens.
10
+
11
+ ## Props
12
+
13
+ Boolean props are composable: combine them to reach the desired look (e.g. `round` + `outline`, `accented` + `round`, `accented` + `outline`).
14
+
15
+ <!-- BEGIN GENERATED PROPS -->
16
+ _Also inherits all props from `ButtonHTMLAttributes<HTMLButtonElement>`._
17
+
18
+ | Name | Type | Required | Default | Description |
19
+ | --- | --- | --- | --- | --- |
20
+ | accented | `boolean` | No | `false` | Renders the button with the defined accent color. |
21
+ | borderless | `boolean` | No | `false` | Removes the button border. |
22
+ | children | `ReactNode` | No | `undefined` | Button label or content. |
23
+ | isometric | `boolean` | No | `false` | Renders equal width and height (40×40). |
24
+ | outline | `boolean` | No | `false` | Renders with no background fill. |
25
+ | round | `boolean` | No | `false` | Renders fully rounded corners. |
26
+ <!-- END GENERATED PROPS -->
27
+
28
+ ## When to use
29
+
30
+ - Submitting forms or sending data
31
+ - Opening dialogs or modals
32
+ - Closing dialogs or modals
33
+ - Resetting forms
34
+
35
+ ## When NOT to use
36
+
37
+ - **Route changes** — use a router link or navigation component instead of a button that changes the URL.
38
+ - **External URLs** — use an anchor (`<a href="...">`) so the control behaves as navigation, not a generic action.
@@ -0,0 +1,85 @@
1
+ # Button tokens
2
+
3
+ Generated from `src/components/button/button.css`.
4
+
5
+ ## Base tokens
6
+
7
+ | Token | Declared value | Resolution |
8
+ | --- | --- | --- |
9
+ | `--c-button-background` | `var(--c-color-gray-90)` | `var(--c-color-gray-90) → hsl(0 0% 90%)` |
10
+ | `--c-button-background-disabled` | `var(--c-color-gray-95)` | `var(--c-color-gray-95) → hsl(0 0% 95%)` |
11
+ | `--c-button-background-hover` | `var(--c-color-gray-95)` | `var(--c-color-gray-95) → hsl(0 0% 95%)` |
12
+ | `--c-button-border-color` | `var(--c-color-gray-90)` | `var(--c-color-gray-90) → hsl(0 0% 90%)` |
13
+ | `--c-button-border-color-disabled` | `var(--c-color-gray-95)` | `var(--c-color-gray-95) → hsl(0 0% 95%)` |
14
+ | `--c-button-box-shadow-color` | `var(--c-color-gray-95)` | `var(--c-color-gray-95) → hsl(0 0% 95%)` |
15
+ | `--c-button-content` | `var(--c-color-gray-10)` | `var(--c-color-gray-10) → hsl(0 0% 10%)` |
16
+ | `--c-button-content-disabled` | `var(--c-color-gray-60)` | `var(--c-color-gray-60) → hsl(0 0% 60%)` |
17
+ | `--c-button-height` | `40px` | `40px` |
18
+ | `--c-button-padding` | `10px 25px` | `10px 25px` |
19
+ | `--c-button-radius` | `10px` | `10px` |
20
+ | `--c-button-width` | `auto` | `auto` |
21
+
22
+ ## Modifier overrides
23
+
24
+ ### `.c-button.is-accented`
25
+
26
+ | Token | Declared value | Resolution |
27
+ | --- | --- | --- |
28
+ | `--c-button-background` | `var(--c-color-accented-10)` | `var(--c-color-accented-10) → var(--c-color-gray-10) → hsl(0 0% 10%)` |
29
+ | `--c-button-background-disabled` | `var(--c-color-accented-30)` | `var(--c-color-accented-30) → var(--c-color-gray-30) → hsl(0 0% 30%)` |
30
+ | `--c-button-background-hover` | `var(--c-color-accented-20)` | `var(--c-color-accented-20) → var(--c-color-gray-20) → hsl(0 0% 20%)` |
31
+ | `--c-button-border-color` | `var(--c-color-accented-10)` | `var(--c-color-accented-10) → var(--c-color-gray-10) → hsl(0 0% 10%)` |
32
+ | `--c-button-border-color-disabled` | `var(--c-color-accented-30)` | `var(--c-color-accented-30) → var(--c-color-gray-30) → hsl(0 0% 30%)` |
33
+ | `--c-button-content` | `var(--c-color-accented-95)` | `var(--c-color-accented-95) → var(--c-color-gray-95) → hsl(0 0% 95%)` |
34
+ | `--c-button-content-disabled` | `var(--c-color-accented-80)` | `var(--c-color-accented-80) → var(--c-color-gray-80) → hsl(0 0% 80%)` |
35
+
36
+ ### `.c-button.is-outline`
37
+
38
+ | Token | Declared value | Resolution |
39
+ | --- | --- | --- |
40
+ | `--c-button-background` | `transparent` | `transparent` |
41
+ | `--c-button-background-disabled` | `transparent` | `transparent` |
42
+ | `--c-button-background-hover` | `var(--c-color-gray-95)` | `var(--c-color-gray-95) → hsl(0 0% 95%)` |
43
+ | `--c-button-border-color` | `var(--c-color-gray-70)` | `var(--c-color-gray-70) → hsl(0 0% 70%)` |
44
+ | `--c-button-border-color-disabled` | `var(--c-color-gray-85)` | `var(--c-color-gray-85) → hsl(0 0% 85%)` |
45
+ | `--c-button-content` | `var(--c-color-gray-20)` | `var(--c-color-gray-20) → hsl(0 0% 20%)` |
46
+
47
+ ### `.c-button.is-borderless`
48
+
49
+ | Token | Declared value | Resolution |
50
+ | --- | --- | --- |
51
+ | `--c-button-background` | `transparent` | `transparent` |
52
+ | `--c-button-background-disabled` | `transparent` | `transparent` |
53
+ | `--c-button-background-hover` | `var(--c-color-gray-95)` | `var(--c-color-gray-95) → hsl(0 0% 95%)` |
54
+ | `--c-button-border-color` | `transparent` | `transparent` |
55
+ | `--c-button-border-color-disabled` | `transparent` | `transparent` |
56
+ | `--c-button-content` | `var(--c-color-gray-30)` | `var(--c-color-gray-30) → hsl(0 0% 30%)` |
57
+
58
+ ### `.c-button.is-accented.is-outline`
59
+
60
+ | Token | Declared value | Resolution |
61
+ | --- | --- | --- |
62
+ | `--c-button-border-color` | `var(--c-color-accented-10)` | `var(--c-color-accented-10) → var(--c-color-gray-10) → hsl(0 0% 10%)` |
63
+ | `--c-button-border-color-disabled` | `var(--c-color-accented-70)` | `var(--c-color-accented-70) → var(--c-color-gray-70) → hsl(0 0% 70%)` |
64
+ | `--c-button-content` | `var(--c-color-accented-10)` | `var(--c-color-accented-10) → var(--c-color-gray-10) → hsl(0 0% 10%)` |
65
+ | `--c-button-content-disabled` | `var(--c-color-accented-70)` | `var(--c-color-accented-70) → var(--c-color-gray-70) → hsl(0 0% 70%)` |
66
+
67
+ ### `.c-button.is-accented.is-borderless`
68
+
69
+ | Token | Declared value | Resolution |
70
+ | --- | --- | --- |
71
+ | `--c-button-content` | `var(--c-color-accented-10)` | `var(--c-color-accented-10) → var(--c-color-gray-10) → hsl(0 0% 10%)` |
72
+
73
+ ### `.c-button.is-round`
74
+
75
+ | Token | Declared value | Resolution |
76
+ | --- | --- | --- |
77
+ | `--c-button-radius` | `20px` | `20px` |
78
+
79
+ ### `.c-button.is-isometric`
80
+
81
+ | Token | Declared value | Resolution |
82
+ | --- | --- | --- |
83
+ | `--c-button-height` | `40px` | `40px` |
84
+ | `--c-button-padding` | `0` | `0` |
85
+ | `--c-button-width` | `40px` | `40px` |
@@ -0,0 +1,17 @@
1
+ # Consumer projects
2
+
3
+ When this library is installed from npm (`@compilorama/compy`), agent and developer documentation is included in the published package build output.
4
+
5
+ ## Where to read docs
6
+
7
+ From your project root (after `npm install @compilorama/compy`):
8
+
9
+ 1. **Component index:** `node_modules/@compilorama/compy/dist/docs/components.md`
10
+ 2. **Global design tokens:** `node_modules/@compilorama/compy/dist/docs/tokens.md`
11
+ 3. **Per-component docs:** under `node_modules/@compilorama/compy/dist/es6/components/<name>/` (or `dist/cjs/...`), for example `button.md` and `tokens.md`
12
+
13
+ Start with `dist/docs/components.md` to pick a component, then open the linked paths relative to that file.
14
+
15
+ ## Customizing tokens
16
+
17
+ Override global accent colors by redefining `--c-color-accented-*` on a root or scope selector in your app, after importing the library styles. See `dist/docs/tokens.md` for the full token list and resolution chains.
@@ -0,0 +1,7 @@
1
+ # Components index
2
+
3
+ Generated from component frontmatter. Human usage sections live in each component doc.
4
+
5
+ | Component | Description | Purpose | Doc path |
6
+ | --- | --- | --- | --- |
7
+ | Button | A native button element with variant styles driven by design tokens. | Trigger actions and submit forms with consistent visual variants. | [`../components/button/button.md`](../components/button/button.md) |
@@ -0,0 +1,33 @@
1
+ # Global design tokens
2
+
3
+ Generated from `src/vars.css`. Values show the declared token and the resolved reference chain.
4
+
5
+ | Token | Declared value | Resolution |
6
+ | --- | --- | --- |
7
+ | `--c-color-accented-10` | `var(--c-color-gray-10)` | `var(--c-color-gray-10) → hsl(0 0% 10%)` |
8
+ | `--c-color-accented-15` | `var(--c-color-gray-15)` | `var(--c-color-gray-15) → hsl(0 0% 15%)` |
9
+ | `--c-color-accented-20` | `var(--c-color-gray-20)` | `var(--c-color-gray-20) → hsl(0 0% 20%)` |
10
+ | `--c-color-accented-30` | `var(--c-color-gray-30)` | `var(--c-color-gray-30) → hsl(0 0% 30%)` |
11
+ | `--c-color-accented-40` | `var(--c-color-gray-40)` | `var(--c-color-gray-40) → hsl(0 0% 40%)` |
12
+ | `--c-color-accented-5` | `var(--c-color-gray-5)` | `var(--c-color-gray-5) → hsl(0 0% 5%)` |
13
+ | `--c-color-accented-50` | `var(--c-color-gray-50)` | `var(--c-color-gray-50) → hsl(0 0% 50%)` |
14
+ | `--c-color-accented-60` | `var(--c-color-gray-60)` | `var(--c-color-gray-60) → hsl(0 0% 60%)` |
15
+ | `--c-color-accented-70` | `var(--c-color-gray-70)` | `var(--c-color-gray-70) → hsl(0 0% 70%)` |
16
+ | `--c-color-accented-80` | `var(--c-color-gray-80)` | `var(--c-color-gray-80) → hsl(0 0% 80%)` |
17
+ | `--c-color-accented-85` | `var(--c-color-gray-85)` | `var(--c-color-gray-85) → hsl(0 0% 85%)` |
18
+ | `--c-color-accented-90` | `var(--c-color-gray-90)` | `var(--c-color-gray-90) → hsl(0 0% 90%)` |
19
+ | `--c-color-accented-95` | `var(--c-color-gray-95)` | `var(--c-color-gray-95) → hsl(0 0% 95%)` |
20
+ | `--c-color-gray-10` | `hsl(0 0% 10%)` | `hsl(0 0% 10%)` |
21
+ | `--c-color-gray-15` | `hsl(0 0% 15%)` | `hsl(0 0% 15%)` |
22
+ | `--c-color-gray-20` | `hsl(0 0% 20%)` | `hsl(0 0% 20%)` |
23
+ | `--c-color-gray-30` | `hsl(0 0% 30%)` | `hsl(0 0% 30%)` |
24
+ | `--c-color-gray-40` | `hsl(0 0% 40%)` | `hsl(0 0% 40%)` |
25
+ | `--c-color-gray-5` | `hsl(0 0% 5%)` | `hsl(0 0% 5%)` |
26
+ | `--c-color-gray-50` | `hsl(0 0% 50%)` | `hsl(0 0% 50%)` |
27
+ | `--c-color-gray-60` | `hsl(0 0% 60%)` | `hsl(0 0% 60%)` |
28
+ | `--c-color-gray-70` | `hsl(0 0% 70%)` | `hsl(0 0% 70%)` |
29
+ | `--c-color-gray-80` | `hsl(0 0% 80%)` | `hsl(0 0% 80%)` |
30
+ | `--c-color-gray-85` | `hsl(0 0% 85%)` | `hsl(0 0% 85%)` |
31
+ | `--c-color-gray-90` | `hsl(0 0% 90%)` | `hsl(0 0% 90%)` |
32
+ | `--c-color-gray-95` | `hsl(0 0% 95%)` | `hsl(0 0% 95%)` |
33
+ | `--c-font-family-primary` | `'Inter', sans-serif` | `'Inter', sans-serif` |
Binary file
@@ -0,0 +1 @@
1
+ @font-face{font-family:Inter;src:url(./fonts/Inter-Regular.woff2) format("woff2");font-weight:400;font-style:normal;font-display:swap}@font-face{font-family:Inter;src:url(./fonts/Inter-Medium.woff2) format("woff2");font-weight:500;font-style:normal;font-display:swap}@font-face{font-family:Inter;src:url(./fonts/Inter-SemiBold.woff2) format("woff2");font-weight:600;font-style:normal;font-display:swap}@font-face{font-family:Inter;src:url(./fonts/Inter-Bold.woff2) format("woff2");font-weight:700;font-style:normal;font-display:swap}
@@ -0,0 +1 @@
1
+ @import"./fonts.css";@import"./vars.css";body{font-family:var(--c-font-family-primary)}
@@ -0,0 +1 @@
1
+ import"./index.css";export{default as Button}from"./components/button/button.js";
@@ -0,0 +1 @@
1
+ export default{};
@@ -0,0 +1 @@
1
+ :root{--c-font-family-primary: "Inter", sans-serif;--c-color-gray-95: hsl(0 0% 95%);--c-color-gray-90: hsl(0 0% 90%);--c-color-gray-85: hsl(0 0% 85%);--c-color-gray-80: hsl(0 0% 80%);--c-color-gray-70: hsl(0 0% 70%);--c-color-gray-60: hsl(0 0% 60%);--c-color-gray-50: hsl(0 0% 50%);--c-color-gray-40: hsl(0 0% 40%);--c-color-gray-30: hsl(0 0% 30%);--c-color-gray-20: hsl(0 0% 20%);--c-color-gray-15: hsl(0 0% 15%);--c-color-gray-10: hsl(0 0% 10%);--c-color-gray-5: hsl(0 0% 5%);--c-color-accented-95: var(--c-color-gray-95);--c-color-accented-90: var(--c-color-gray-90);--c-color-accented-85: var(--c-color-gray-85);--c-color-accented-80: var(--c-color-gray-80);--c-color-accented-70: var(--c-color-gray-70);--c-color-accented-60: var(--c-color-gray-60);--c-color-accented-50: var(--c-color-gray-50);--c-color-accented-40: var(--c-color-gray-40);--c-color-accented-30: var(--c-color-gray-30);--c-color-accented-20: var(--c-color-gray-20);--c-color-accented-15: var(--c-color-gray-15);--c-color-accented-10: var(--c-color-gray-10);--c-color-accented-5: var(--c-color-gray-5)}
@@ -0,0 +1,2 @@
1
+ export type { ButtonProps } from './components/button/button.d.ts';
2
+ export { default as Button } from './components/button/button.d.ts';
package/package.json CHANGED
@@ -1,6 +1,79 @@
1
1
  {
2
2
  "name": "@compilorama/compy",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.2.0",
4
+ "description": "React UI component library",
5
+ "license": "MIT",
6
+ "author": "Rafael Camargo <hello@rafaelcamargo.com>",
7
+ "type": "module",
8
+ "sideEffects": [
9
+ "**/*.css"
10
+ ],
11
+ "files": [
12
+ "dist",
13
+ "CHANGELOG.md"
14
+ ],
15
+ "main": "dist/cjs/index.js",
16
+ "module": "dist/es6/index.js",
17
+ "types": "./dist/index.d.ts",
18
+ "exports": {
19
+ ".": {
20
+ "types": "./dist/index.d.ts",
21
+ "require": "./dist/cjs/index.js",
22
+ "import": "./dist/es6/index.js"
23
+ }
24
+ },
25
+ "scripts": {
26
+ "build": "node scripts/build.mjs",
27
+ "build:prod": "node scripts/build.mjs --production",
28
+ "build:watch": "node scripts/build.mjs --watch",
29
+ "format": "eslint src playground/src",
30
+ "prepublishOnly": "npm run build:prod",
31
+ "release": "semantic-release",
32
+ "release:dry-run": "node scripts/release-dry-run.mjs",
33
+ "start": "node scripts/start.mjs",
34
+ "test": "jest",
35
+ "test:treeshake": "node scripts/verify-treeshake.mjs",
36
+ "docs:generate": "node scripts/generate-props.js && node scripts/generate-tokens.js && node scripts/generate-index.js",
37
+ "docs:check": "node scripts/check-docs.js"
38
+ },
39
+ "publishConfig": {
40
+ "access": "public"
41
+ },
42
+ "peerDependencies": {
43
+ "react": ">=18.0.0",
44
+ "react-dom": ">=18.0.0"
45
+ },
46
+ "devDependencies": {
47
+ "@babel/cli": "^7.28.6",
48
+ "@babel/core": "^7.29.0",
49
+ "@babel/eslint-parser": "^7.28.6",
50
+ "@babel/preset-env": "^7.29.2",
51
+ "@babel/preset-react": "^7.28.5",
52
+ "@eslint/js": "^9.39.4",
53
+ "@semantic-release/changelog": "^6.0.3",
54
+ "@semantic-release/commit-analyzer": "^13.0.1",
55
+ "@semantic-release/git": "^10.0.1",
56
+ "@semantic-release/github": "^12.0.6",
57
+ "@semantic-release/npm": "^13.1.5",
58
+ "@semantic-release/release-notes-generator": "^14.1.0",
59
+ "@testing-library/jest-dom": "^6.9.1",
60
+ "@testing-library/react": "^16.3.2",
61
+ "@testing-library/user-event": "^14.6.1",
62
+ "@vitejs/plugin-react": "^6.0.5",
63
+ "babel-plugin-add-import-extension": "^1.6.0",
64
+ "babel-plugin-module-resolver": "^5.0.3",
65
+ "concurrently": "^9.2.1",
66
+ "eslint": "^9.39.4",
67
+ "eslint-plugin-react": "^7.37.5",
68
+ "esbuild": "^0.28.2",
69
+ "globals": "^17.4.0",
70
+ "jest": "^30.3.0",
71
+ "jest-environment-jsdom": "^30.3.0",
72
+ "react": "^19.0.0",
73
+ "react-dom": "^19.0.0",
74
+ "react-router-dom": "^6.30.1",
75
+ "semantic-release": "^25.0.3",
76
+ "typescript": "^5.9.3",
77
+ "vite": "^8.2.1"
78
+ }
79
+ }