@ekanos/ui 0.1.2 → 0.1.4
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 +13 -14
- package/dist/ai-prompt-input.js +122 -816
- package/dist/base.css +1 -1
- package/dist/card.d.ts +1 -1
- package/dist/dialog.js +16 -716
- package/dist/dropdown-menu.js +26 -719
- package/dist/form.d.ts +2 -2
- package/dist/icon.js +27 -0
- package/dist/select.js +22 -722
- package/dist/tokens.css +9 -9
- package/package.json +14 -14
package/README.md
CHANGED
|
@@ -33,19 +33,18 @@ One subpath per component, mirroring the `@kit/ui` names:
|
|
|
33
33
|
| `@ekanos/ui/spinner` | `Spinner` |
|
|
34
34
|
| `@ekanos/ui/ai-prompt-input` | `PromptInput` compound components for AI ask surfaces |
|
|
35
35
|
|
|
36
|
-
Most source files are a thin
|
|
37
|
-
`@kit/ui` stays the single source of truth. At build time
|
|
38
|
-
inlined into `dist/` so the published artifact has no workspace dependencies
|
|
39
|
-
|
|
36
|
+
Most source files are a thin re-export of the internal `@kit/ui` library — for
|
|
37
|
+
those, `@kit/ui` stays the single source of truth. At build time that code is
|
|
38
|
+
inlined into `dist/` so the published artifact has no workspace dependencies;
|
|
39
|
+
`pnpm --filter @ekanos/ui pack:test` fails the build if any `@kit/` specifier
|
|
40
|
+
leaks into the tarball.
|
|
40
41
|
|
|
41
42
|
Three subpaths — `if`, `trans`, and `spinner` — are instead implemented
|
|
42
|
-
natively
|
|
43
|
-
|
|
44
|
-
commercial Turbo starter this monorepo was built on; publishing it under this
|
|
43
|
+
natively here. Their internal counterparts are Makerkit-authored code from the
|
|
44
|
+
commercial Turbo starter this monorepo was built on; publishing that under this
|
|
45
45
|
package's MIT license would purport to grant reuse rights we do not hold. The
|
|
46
|
-
implementations here are original, and `pack:test` fails the build if
|
|
47
|
-
|
|
48
|
-
monorepo, first-party code keeps using `@kit/ui` as before.
|
|
46
|
+
implementations shipped here are original, and `pack:test` fails the build if
|
|
47
|
+
any Makerkit-authored source is ever inlined into `dist/`.
|
|
49
48
|
|
|
50
49
|
## Styling
|
|
51
50
|
|
|
@@ -135,7 +134,7 @@ tokens, and nine of its ten elevation levels, are deliberately absent.
|
|
|
135
134
|
The build enforces this in both directions: it re-compiles the same class
|
|
136
135
|
strings against Fusion's **full** token map and fails if a component has started
|
|
137
136
|
using a token this package doesn't ship (which would otherwise emit no CSS at
|
|
138
|
-
all, silently).
|
|
137
|
+
all, silently). The CSS build enforces it.
|
|
139
138
|
|
|
140
139
|
### Fonts
|
|
141
140
|
|
|
@@ -246,12 +245,12 @@ runtime is a declared dependency of this package.
|
|
|
246
245
|
## Building / verifying
|
|
247
246
|
|
|
248
247
|
```bash
|
|
249
|
-
pnpm --filter @ekanos/ui build # tsup → dist/, then
|
|
250
|
-
pnpm --filter @ekanos/ui pack:test # clean-room publish gate
|
|
248
|
+
pnpm --filter @ekanos/ui build # tsup → dist/, then the CSS build → the stylesheets
|
|
249
|
+
pnpm --filter @ekanos/ui pack:test # clean-room publish gate
|
|
251
250
|
```
|
|
252
251
|
|
|
253
252
|
The build runs in two stages, in this order for a reason: `tsup` bundles the
|
|
254
|
-
components, then
|
|
253
|
+
components, then the CSS build scans the *built* `dist/*.js` for class
|
|
255
254
|
strings and compiles exactly those through Tailwind. Deriving the utility set
|
|
256
255
|
from the build output rather than a hand-kept list is what makes it impossible
|
|
257
256
|
to add a component whose classes have no CSS.
|