@pantoken/components 0.2.3 → 0.2.5

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 (2) hide show
  1. package/dist/index.d.mts +80 -57
  2. package/package.json +1 -1
package/dist/index.d.mts CHANGED
@@ -1,5 +1,4 @@
1
1
  import { ELEVATION_NAMES, FOCUSABLE_SELECTOR, elevationDeclarations, focusOutlineDeclarations, focusOutlineRules } from "@pantoken/utils";
2
-
3
2
  //#region src/lib/helpers.d.ts
4
3
  /**
5
4
  * Shared primitives for the component builders: the class-prefix namespace helper, the standalone-sheet
@@ -27,6 +26,30 @@ interface ComponentOptions {
27
26
  theme?: ComponentTheme;
28
27
  }
29
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
+ //#region src/lib/define.d.ts
39
+ /** 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
+ interface Definition {
41
+ name: string;
42
+ kind: CssRecordKind;
43
+ /** Doc block + CSS body at the given (already `ns()`-joined) prefix — concatenated by the aggregator. */
44
+ rules(this: void, prefix: string, options?: ComponentOptions): string;
45
+ /**
46
+ * The standalone, header-wrapped stylesheet — what the exported `xxxCss` returns. Declared `this: void`
47
+ * because it's a plain closure (no receiver): callers bind it as `export const buttonCss = button.css`,
48
+ * so the annotation tells the linter the free-floating reference is safe.
49
+ */
50
+ css(this: void, options?: ComponentOptions): string;
51
+ }
52
+ //#endregion
30
53
  //#region src/rules/prose.d.ts
31
54
  /** Options for {@link proseCss}. */
32
55
  interface ProseOptions {
@@ -84,199 +107,199 @@ declare function focusOutlineCss(options?: {
84
107
  //#endregion
85
108
  //#region src/components/button.d.ts
86
109
  /** Standalone `button` stylesheet — the prefixed CSS for the action button, ready to ship as a `.css` file. */
87
- declare const buttonCss: (this: void, options?: ComponentOptions) => string;
110
+ declare const buttonCss: Definition["css"];
88
111
  //#endregion
89
112
  //#region src/components/alert.d.ts
90
113
  /** Standalone `alert` stylesheet — the prefixed CSS for the status message, ready to ship as a `.css` file. */
91
- declare const alertCss: (this: void, options?: ComponentOptions) => string;
114
+ declare const alertCss: Definition["css"];
92
115
  //#endregion
93
116
  //#region src/components/badge.d.ts
94
117
  /** Standalone `badge` stylesheet — the prefixed CSS for the count-and-status badge, ready to ship as a `.css` file. */
95
- declare const badgeCss: (this: void, options?: ComponentOptions) => string;
118
+ declare const badgeCss: Definition["css"];
96
119
  //#endregion
97
120
  //#region src/components/pill.d.ts
98
121
  /** Standalone `pill` stylesheet — the prefixed CSS for the status pill, ready to ship as a `.css` file. */
99
- declare const pillCss: (this: void, options?: ComponentOptions) => string;
122
+ declare const pillCss: Definition["css"];
100
123
  //#endregion
101
124
  //#region src/components/tag.d.ts
102
125
  /** Standalone `tag` stylesheet — the prefixed CSS for the chip, ready to ship as a `.css` file. */
103
- declare const tagCss: (this: void, options?: ComponentOptions) => string;
126
+ declare const tagCss: Definition["css"];
104
127
  //#endregion
105
128
  //#region src/components/avatar.d.ts
106
129
  /** Standalone `avatar` stylesheet — the prefixed CSS for the avatar, ready to ship as a `.css` file. */
107
- declare const avatarCss: (this: void, options?: ComponentOptions) => string;
130
+ declare const avatarCss: Definition["css"];
108
131
  //#endregion
109
132
  //#region src/components/tabs.d.ts
110
133
  /** Standalone `tabs` stylesheet — the prefixed CSS for the tabbed panels, ready to ship as a `.css` file. */
111
- declare const tabsCss: (this: void, options?: ComponentOptions) => string;
134
+ declare const tabsCss: Definition["css"];
112
135
  //#endregion
113
136
  //#region src/components/metric.d.ts
114
137
  /** Standalone `metric` stylesheet — the prefixed CSS for the statistic, ready to ship as a `.css` file. */
115
- declare const metricCss: (this: void, options?: ComponentOptions) => string;
138
+ declare const metricCss: Definition["css"];
116
139
  //#endregion
117
140
  //#region src/components/img.d.ts
118
141
  /** Standalone `img` stylesheet — the prefixed CSS for the styled image, ready to ship as a `.css` file. */
119
- declare const imgCss: (this: void, options?: ComponentOptions) => string;
142
+ declare const imgCss: Definition["css"];
120
143
  //#endregion
121
144
  //#region src/components/byline.d.ts
122
145
  /** Standalone `byline` stylesheet — the prefixed CSS for the media object, ready to ship as a `.css` file. */
123
- declare const bylineCss: (this: void, options?: ComponentOptions) => string;
146
+ declare const bylineCss: Definition["css"];
124
147
  //#endregion
125
148
  //#region src/components/table.d.ts
126
149
  /** Standalone `table` stylesheet — the prefixed CSS for the data table, ready to ship as a `.css` file. */
127
- declare const tableCss: (this: void, options?: ComponentOptions) => string;
150
+ declare const tableCss: Definition["css"];
128
151
  //#endregion
129
152
  //#region src/components/link.d.ts
130
153
  /** Standalone `link` stylesheet — the prefixed CSS for the hyperlink, ready to ship as a `.css` file. */
131
- declare const linkCss: (this: void, options?: ComponentOptions) => string;
154
+ declare const linkCss: Definition["css"];
132
155
  //#endregion
133
156
  //#region src/components/list.d.ts
134
157
  /** Standalone `list` stylesheet — the prefixed CSS for the spaced list, ready to ship as a `.css` file. */
135
- declare const listCss: (this: void, options?: ComponentOptions) => string;
158
+ declare const listCss: Definition["css"];
136
159
  //#endregion
137
160
  //#region src/components/checkbox.d.ts
138
161
  /** Standalone `checkbox` stylesheet — the prefixed CSS for the checkbox and switch, ready to ship as a `.css` file. */
139
- declare const checkboxCss: (this: void, options?: ComponentOptions) => string;
162
+ declare const checkboxCss: Definition["css"];
140
163
  //#endregion
141
164
  //#region src/components/radio.d.ts
142
165
  /** Standalone `radio` stylesheet — the prefixed CSS for the radio button, ready to ship as a `.css` file. */
143
- declare const radioCss: (this: void, options?: ComponentOptions) => string;
166
+ declare const radioCss: Definition["css"];
144
167
  //#endregion
145
168
  //#region src/components/spinner.d.ts
146
169
  /** Standalone `spinner` stylesheet — the prefixed CSS for the loading ring, ready to ship as a `.css` file. */
147
- declare const spinnerCss: (this: void, options?: ComponentOptions) => string;
170
+ declare const spinnerCss: Definition["css"];
148
171
  //#endregion
149
172
  //#region src/components/progress.d.ts
150
173
  /** Standalone `progress` stylesheet — the prefixed CSS for the progress bar, ready to ship as a `.css` file. */
151
- declare const progressCss: (this: void, options?: ComponentOptions) => string;
174
+ declare const progressCss: Definition["css"];
152
175
  //#endregion
153
176
  //#region src/components/menu.d.ts
154
177
  /** Standalone `menu` stylesheet — the prefixed CSS for the dropdown menu, ready to ship as a `.css` file. */
155
- declare const menuCss: (this: void, options?: ComponentOptions) => string;
178
+ declare const menuCss: Definition["css"];
156
179
  //#endregion
157
180
  //#region src/components/modal.d.ts
158
181
  /** Standalone `modal` stylesheet — the prefixed CSS for the dialog surface, ready to ship as a `.css` file. */
159
- declare const modalCss: (this: void, options?: ComponentOptions) => string;
182
+ declare const modalCss: Definition["css"];
160
183
  //#endregion
161
184
  //#region src/components/breadcrumb.d.ts
162
185
  /** Standalone `breadcrumb` stylesheet — the prefixed CSS for the breadcrumb trail, ready to ship as a `.css` file. */
163
- declare const breadcrumbCss: (this: void, options?: ComponentOptions) => string;
186
+ declare const breadcrumbCss: Definition["css"];
164
187
  //#endregion
165
188
  //#region src/components/billboard.d.ts
166
189
  /** Standalone `billboard` stylesheet — the prefixed CSS for the empty-state block, ready to ship as a `.css` file. */
167
- declare const billboardCss: (this: void, options?: ComponentOptions) => string;
190
+ declare const billboardCss: Definition["css"];
168
191
  //#endregion
169
192
  //#region src/components/rating.d.ts
170
193
  /** Standalone `rating` stylesheet — the prefixed CSS for the star rating, ready to ship as a `.css` file. */
171
- declare const ratingCss: (this: void, options?: ComponentOptions) => string;
194
+ declare const ratingCss: Definition["css"];
172
195
  //#endregion
173
196
  //#region src/components/toggle-group.d.ts
174
197
  /** Standalone `toggleGroup` stylesheet — the prefixed CSS for the bordered disclosure, ready to ship as a `.css` file. */
175
- declare const toggleGroupCss: (this: void, options?: ComponentOptions) => string;
198
+ declare const toggleGroupCss: Definition["css"];
176
199
  //#endregion
177
200
  //#region src/components/context-view.d.ts
178
201
  /** Standalone `contextView` stylesheet — the prefixed CSS for the caret callout, ready to ship as a `.css` file. */
179
- declare const contextViewCss: (this: void, options?: ComponentOptions) => string;
202
+ declare const contextViewCss: Definition["css"];
180
203
  //#endregion
181
204
  //#region src/components/progress-circle.d.ts
182
205
  /** Standalone `progressCircle` stylesheet — the prefixed CSS for the progress ring, ready to ship as a `.css` file. */
183
- declare const progressCircleCss: (this: void, options?: ComponentOptions) => string;
206
+ declare const progressCircleCss: Definition["css"];
184
207
  //#endregion
185
208
  //#region src/components/pagination.d.ts
186
209
  /** Standalone `pagination` stylesheet — the prefixed CSS for the page navigation, ready to ship as a `.css` file. */
187
- declare const paginationCss: (this: void, options?: ComponentOptions) => string;
210
+ declare const paginationCss: Definition["css"];
188
211
  //#endregion
189
212
  //#region src/components/truncate.d.ts
190
213
  /** Standalone `truncate` stylesheet — the prefixed CSS for the truncation utility, ready to ship as a `.css` file. */
191
- declare const truncateCss: (this: void, options?: ComponentOptions) => string;
214
+ declare const truncateCss: Definition["css"];
192
215
  //#endregion
193
216
  //#region src/components/toggle-details.d.ts
194
217
  /** Standalone `toggleDetails` stylesheet — the prefixed CSS for the details disclosure, ready to ship as a `.css` file. */
195
- declare const toggleDetailsCss: (this: void, options?: ComponentOptions) => string;
218
+ declare const toggleDetailsCss: Definition["css"];
196
219
  //#endregion
197
220
  //#region src/components/file-drop.d.ts
198
221
  /** Standalone `fileDrop` stylesheet — the prefixed CSS for the file dropzone, ready to ship as a `.css` file. */
199
- declare const fileDropCss: (this: void, options?: ComponentOptions) => string;
222
+ declare const fileDropCss: Definition["css"];
200
223
  //#endregion
201
224
  //#region src/components/side-nav-bar.d.ts
202
225
  /** Standalone `sideNavBar` stylesheet — the prefixed CSS for the navigation rail, ready to ship as a `.css` file. */
203
- declare const sideNavBarCss: (this: void, options?: ComponentOptions) => string;
226
+ declare const sideNavBarCss: Definition["css"];
204
227
  //#endregion
205
228
  //#region src/components/tree-browser.d.ts
206
229
  /** Standalone `treeBrowser` stylesheet — the prefixed CSS for the disclosure tree, ready to ship as a `.css` file. */
207
- declare const treeBrowserCss: (this: void, options?: ComponentOptions) => string;
230
+ declare const treeBrowserCss: Definition["css"];
208
231
  //#endregion
209
232
  //#region src/components/calendar.d.ts
210
233
  /** Standalone `calendar` stylesheet — the prefixed CSS for the month grid, ready to ship as a `.css` file. */
211
- declare const calendarCss: (this: void, options?: ComponentOptions) => string;
234
+ declare const calendarCss: Definition["css"];
212
235
  //#endregion
213
236
  //#region src/components/popover.d.ts
214
237
  /** Standalone `popover` stylesheet — the prefixed CSS for the popover surface, ready to ship as a `.css` file. */
215
- declare const popoverCss: (this: void, options?: ComponentOptions) => string;
238
+ declare const popoverCss: Definition["css"];
216
239
  //#endregion
217
240
  //#region src/components/tray.d.ts
218
241
  /** Standalone `tray` stylesheet — the prefixed CSS for the sliding tray, ready to ship as a `.css` file. */
219
- declare const trayCss: (this: void, options?: ComponentOptions) => string;
242
+ declare const trayCss: Definition["css"];
220
243
  //#endregion
221
244
  //#region src/components/tooltip.d.ts
222
245
  /** Standalone `tooltip` stylesheet — the prefixed CSS for the tooltip bubble, ready to ship as a `.css` file. */
223
- declare const tooltipCss: (this: void, options?: ComponentOptions) => string;
246
+ declare const tooltipCss: Definition["css"];
224
247
  //#endregion
225
248
  //#region src/components/range-input.d.ts
226
249
  /** Standalone `rangeInput` stylesheet — the prefixed CSS for the range slider, ready to ship as a `.css` file. */
227
- declare const rangeInputCss: (this: void, options?: ComponentOptions) => string;
250
+ declare const rangeInputCss: Definition["css"];
228
251
  //#endregion
229
252
  //#region src/components/heading.d.ts
230
253
  /** Standalone `heading` stylesheet — the prefixed CSS for the heading type, ready to ship as a `.css` file. */
231
- declare const headingCss: (this: void, options?: ComponentOptions) => string;
254
+ declare const headingCss: Definition["css"];
232
255
  //#endregion
233
256
  //#region src/components/text.d.ts
234
257
  /** Standalone `text` stylesheet — the prefixed CSS for the body typography, ready to ship as a `.css` file. */
235
- declare const textCss: (this: void, options?: ComponentOptions) => string;
258
+ declare const textCss: Definition["css"];
236
259
  //#endregion
237
260
  //#region src/components/close-button.d.ts
238
261
  /** Standalone `closeButton` stylesheet — the prefixed CSS for the close button, ready to ship as a `.css` file. */
239
- declare const closeButtonCss: (this: void, options?: ComponentOptions) => string;
262
+ declare const closeButtonCss: Definition["css"];
240
263
  //#endregion
241
264
  //#region src/components/text-input.d.ts
242
265
  /** Standalone `textInput` stylesheet — the prefixed CSS for the text input, ready to ship as a `.css` file. */
243
- declare const textInputCss: (this: void, options?: ComponentOptions) => string;
266
+ declare const textInputCss: Definition["css"];
244
267
  //#endregion
245
268
  //#region src/components/text-area.d.ts
246
269
  /** Standalone `textArea` stylesheet — the prefixed CSS for the textarea, ready to ship as a `.css` file. */
247
- declare const textAreaCss: (this: void, options?: ComponentOptions) => string;
270
+ declare const textAreaCss: Definition["css"];
248
271
  //#endregion
249
272
  //#region src/components/simple-select.d.ts
250
273
  /** Standalone `simpleSelect` stylesheet — the prefixed CSS for the native select, ready to ship as a `.css` file. */
251
- declare const simpleSelectCss: (this: void, options?: ComponentOptions) => string;
274
+ declare const simpleSelectCss: Definition["css"];
252
275
  //#endregion
253
276
  //#region src/components/input-group.d.ts
254
277
  /** Standalone `inputGroup` stylesheet — the prefixed CSS for the input group, ready to ship as a `.css` file. */
255
- declare const inputGroupCss: (this: void, options?: ComponentOptions) => string;
278
+ declare const inputGroupCss: Definition["css"];
256
279
  //#endregion
257
280
  //#region src/components/number-input.d.ts
258
281
  /** Standalone `numberInput` stylesheet — the prefixed CSS for the number input, ready to ship as a `.css` file. */
259
- declare const numberInputCss: (this: void, options?: ComponentOptions) => string;
282
+ declare const numberInputCss: Definition["css"];
260
283
  //#endregion
261
284
  //#region src/components/in-place-edit.d.ts
262
285
  /** Standalone `inPlaceEdit` stylesheet — the prefixed CSS for the in-place editor, ready to ship as a `.css` file. */
263
- declare const inPlaceEditCss: (this: void, options?: ComponentOptions) => string;
286
+ declare const inPlaceEditCss: Definition["css"];
264
287
  //#endregion
265
288
  //#region src/components/form-field-messages.d.ts
266
289
  /** Standalone `formFieldMessages` stylesheet — the prefixed CSS for the field messages, ready to ship as a `.css` file. */
267
- declare const formFieldMessagesCss: (this: void, options?: ComponentOptions) => string;
290
+ declare const formFieldMessagesCss: Definition["css"];
268
291
  //#endregion
269
292
  //#region src/components/form-field.d.ts
270
293
  /** Standalone `formField` stylesheet — the prefixed CSS for the form-field wrapper, ready to ship as a `.css` file. */
271
- declare const formFieldCss: (this: void, options?: ComponentOptions) => string;
294
+ declare const formFieldCss: Definition["css"];
272
295
  //#endregion
273
296
  //#region src/components/form-field-group.d.ts
274
297
  /** Standalone `formFieldGroup` stylesheet — the prefixed CSS for the fieldset group, ready to ship as a `.css` file. */
275
- declare const formFieldGroupCss: (this: void, options?: ComponentOptions) => string;
298
+ declare const formFieldGroupCss: Definition["css"];
276
299
  //#endregion
277
300
  //#region src/components/radio-input-group.d.ts
278
301
  /** Standalone `radioInputGroup` stylesheet — the prefixed CSS for the radio group, ready to ship as a `.css` file. */
279
- declare const radioInputGroupCss: (this: void, options?: ComponentOptions) => string;
302
+ declare const radioInputGroupCss: Definition["css"];
280
303
  //#endregion
281
304
  //#region src/components/select.d.ts
282
305
  /**
@@ -305,31 +328,31 @@ declare function selectCss(options?: ComponentOptions): string;
305
328
  //#endregion
306
329
  //#region src/utilities/view.d.ts
307
330
  /** The View utility as a standalone, header-wrapped stylesheet. */
308
- declare const viewCss: (this: void, options?: ComponentOptions) => string;
331
+ declare const viewCss: Definition["css"];
309
332
  //#endregion
310
333
  //#region src/utilities/spacing.d.ts
311
334
  /** The spacing utilities as a standalone, header-wrapped stylesheet. */
312
- declare const spacingUtilitiesCss: (this: void, options?: ComponentOptions) => string;
335
+ declare const spacingUtilitiesCss: Definition["css"];
313
336
  //#endregion
314
337
  //#region src/utilities/layout.d.ts
315
338
  /** The layout utilities as a standalone, header-wrapped stylesheet. */
316
- declare const layoutUtilitiesCss: (this: void, options?: ComponentOptions) => string;
339
+ declare const layoutUtilitiesCss: Definition["css"];
317
340
  //#endregion
318
341
  //#region src/utilities/responsive.d.ts
319
342
  /** The responsive-visibility utilities as a standalone, header-wrapped stylesheet. */
320
- declare const responsiveUtilitiesCss: (this: void, options?: ComponentOptions) => string;
343
+ declare const responsiveUtilitiesCss: Definition["css"];
321
344
  //#endregion
322
345
  //#region src/utilities/icon.d.ts
323
346
  /** The icon utility as a standalone, header-wrapped stylesheet. */
324
- declare const iconCss: (this: void, options?: ComponentOptions) => string;
347
+ declare const iconCss: Definition["css"];
325
348
  //#endregion
326
349
  //#region src/utilities/mask.d.ts
327
350
  /** The mask utility as a standalone, header-wrapped stylesheet. */
328
- declare const maskCss: (this: void, options?: ComponentOptions) => string;
351
+ declare const maskCss: Definition["css"];
329
352
  //#endregion
330
353
  //#region src/utilities/screen-reader-content.d.ts
331
354
  /** The screen-reader-content utility as a standalone, header-wrapped stylesheet. */
332
- declare const screenReaderContentCss: (this: void, options?: ComponentOptions) => string;
355
+ declare const screenReaderContentCss: Definition["css"];
333
356
  //#endregion
334
357
  //#region src/utilities/icon-glyphs.d.ts
335
358
  /** Options for {@link iconGlyphsCss}. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pantoken/components",
3
- "version": "0.2.3",
3
+ "version": "0.2.5",
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",