onsystem 0.6.0 → 0.8.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.
@@ -37,6 +37,13 @@ interface DesignSystemSource {
37
37
  source: string;
38
38
  components: string[];
39
39
  imports: number;
40
+ /**
41
+ * The shadcn registry (`@signoff-ui`) whose code `npx shadcn add` copied into these files, as
42
+ * the `registries` of components.json name it: a read-only design system, after the others.
43
+ * Code that imports it is checked against its components, which are never suggested for a
44
+ * native element, and its own files are skipped like the others' are.
45
+ */
46
+ registry?: string | undefined;
40
47
  }
41
48
  //#endregion
42
49
  //#region src/types.d.ts
@@ -391,6 +398,12 @@ interface ResolvedConfig {
391
398
  */
392
399
  designSystemExclude?: string[] | undefined;
393
400
  tokens: TokenSourceConfig[];
401
+ /**
402
+ * `tokens` comes from zero config (detection or the default paths), not the config or
403
+ * `--tokens`: the stylesheets those files import are read too, and so are the ones in a
404
+ * shared Tailwind preset's workspace package that set the colors the config maps.
405
+ */
406
+ tokensDetected?: boolean | undefined;
394
407
  docs: string[];
395
408
  tsconfig?: string | undefined;
396
409
  importPath?: string | undefined;
@@ -418,6 +431,8 @@ interface ResolvedConfig {
418
431
  libraryIds?: false | LibraryId[] | undefined;
419
432
  /** Libraries the project depends on that `libraries` leaves out, so they are not read. */
420
433
  librariesOff?: LibrarySource[] | undefined;
434
+ /** Component libraries the project depends on that onsystem does not read yet (Chakra UI). */
435
+ librariesUnread?: LibrarySource[] | undefined;
421
436
  elements: Record<string, string>;
422
437
  /** `check` lints the component files themselves, which it skips by default. */
423
438
  includeDesignSystem: boolean;