@pantoken/components 0.2.6 → 0.2.7

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/dist/index.d.mts CHANGED
@@ -26,16 +26,8 @@ interface ComponentOptions {
26
26
  theme?: ComponentTheme;
27
27
  }
28
28
  //#endregion
29
- //#region ../../node_modules/.pnpm/@cssdoc+core@0.7.9/node_modules/@cssdoc/core/dist/lite-CLGf1QSF.d.mts
30
- /**
31
- * What kind of CSS surface a record documents. `component` is a namespaced component class with
32
- * `-modifier`s and parts; `utility` a single-purpose class family; `rule` bare-element/reset styling;
33
- * `declaration` a custom-property / `@property` registration layer. The record-opening tag chooses it
34
- * (`@component`/`@utility`/`@rule`/`@declaration`); `@name` is an alias for `component`.
35
- */
36
- type CssRecordKind = "component" | "utility" | "rule" | "declaration";
37
- //#endregion
38
29
  //#region src/lib/define.d.ts
30
+ type CssRecordKind = "component" | "utility" | "rule" | "declaration";
39
31
  /** A resolved record: `rules(prefix)` emits the doc block plus CSS body for the aggregator, and `css(options)` returns the standalone header-wrapped sheet. */
40
32
  interface Definition {
41
33
  name: string;
package/dist/index.mjs CHANGED
@@ -140,6 +140,14 @@ const SPACING_SIDES = {
140
140
  //#endregion
141
141
  //#region src/lib/define.ts
142
142
  /**
143
+ * `defineComponent`/`defineUtility`/`defineRule`/`defineDeclaration` — the ergonomic wrappers over
144
+ * {@link record}. Each takes the record metadata plus a `css: (p) => string` body builder and returns
145
+ * a {@link Definition}: `rules(p)` (doc block + body, what the aggregator concatenates) and
146
+ * `css(options)` (the wrapped standalone sheet, what the exported `xxxCss` returns).
147
+ *
148
+ * @module
149
+ */
150
+ /**
143
151
  * Split a record's leading `/** … *\/` doc comment from its CSS body. The alias post-processors scan
144
152
  * for `{ … }` rule bodies, so they must never see the comment's `{@link …}` braces — `make()` runs them
145
153
  * on the body alone and recombines. Tolerates leading whitespace before `/**` (an authored template
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pantoken/components",
3
- "version": "0.2.6",
3
+ "version": "0.2.7",
4
4
  "description": "An InstUI-look CSS component library from the pantoken tokens: prose/content styling plus class-based components (button, alert, badge).",
5
5
  "homepage": "https://pantoken.iywahl.com",
6
6
  "bugs": "https://github.com/thedannywahl/pantoken/issues",