@reopt-ai/opt-ui 1.4.1

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 (64) hide show
  1. package/CHANGELOG.md +40 -0
  2. package/COMPONENT_CATALOG.md +3000 -0
  3. package/LICENSE +21 -0
  4. package/README.md +244 -0
  5. package/dist/chunk-3GWWZKX7.js +38 -0
  6. package/dist/chunk-AFF2HPE5.cjs +5008 -0
  7. package/dist/chunk-ELWICXYY.js +4745 -0
  8. package/dist/chunk-N4NDU5ET.cjs +4745 -0
  9. package/dist/chunk-ONE3C5RV.cjs +38 -0
  10. package/dist/chunk-QWBHD54V.js +3218 -0
  11. package/dist/chunk-RBM2RNC2.js +5008 -0
  12. package/dist/chunk-X5WCXJAF.cjs +3218 -0
  13. package/dist/core/index.cjs +324 -0
  14. package/dist/core/index.d.cts +5 -0
  15. package/dist/core/index.d.ts +5 -0
  16. package/dist/core/index.js +324 -0
  17. package/dist/docs/01-getting-started.md +129 -0
  18. package/dist/docs/02-components/01-core.md +1841 -0
  19. package/dist/docs/02-components/02-visuals.md +11 -0
  20. package/dist/docs/02-components/03-shells.md +1361 -0
  21. package/dist/docs/02-components/04-surfaces.md +11 -0
  22. package/dist/docs/02-components/index.md +106 -0
  23. package/dist/docs/03-recipes/01-forms.md +471 -0
  24. package/dist/docs/03-recipes/02-dashboards.md +397 -0
  25. package/dist/docs/03-recipes/03-layouts.md +424 -0
  26. package/dist/docs/04-theming.md +232 -0
  27. package/dist/docs/05-migration/01-breaking-changes.md +117 -0
  28. package/dist/docs/05-migration/02-formstore.md +336 -0
  29. package/dist/docs/06-troubleshooting.md +119 -0
  30. package/dist/docs/index.md +71 -0
  31. package/dist/id-registry.cjs +1875 -0
  32. package/dist/id-registry.d.cts +27 -0
  33. package/dist/id-registry.d.ts +27 -0
  34. package/dist/id-registry.js +1875 -0
  35. package/dist/id-registry.json +3799 -0
  36. package/dist/index-BZ_lBlO1.d.ts +474 -0
  37. package/dist/index-BuvxoWHf.d.cts +474 -0
  38. package/dist/index-DlAcuvQp.d.cts +1686 -0
  39. package/dist/index-Slu5hOj1.d.ts +1686 -0
  40. package/dist/index.cjs +9959 -0
  41. package/dist/index.d.cts +2351 -0
  42. package/dist/index.d.ts +2351 -0
  43. package/dist/index.js +9959 -0
  44. package/dist/meta.cjs +6898 -0
  45. package/dist/meta.d.cts +36 -0
  46. package/dist/meta.d.ts +36 -0
  47. package/dist/meta.js +6869 -0
  48. package/dist/shells/index.cjs +65 -0
  49. package/dist/shells/index.d.cts +5 -0
  50. package/dist/shells/index.d.ts +5 -0
  51. package/dist/shells/index.js +65 -0
  52. package/dist/tailwind.css +401 -0
  53. package/dist/theme/presets/default.css +355 -0
  54. package/dist/theme/presets/minimal.css +354 -0
  55. package/dist/theme/presets/mono-dark.css +354 -0
  56. package/dist/theme/presets/natural.css +181 -0
  57. package/dist/theme/presets/pro.css +354 -0
  58. package/dist/types-D4-0lwaE.d.cts +298 -0
  59. package/dist/types-D4-0lwaE.d.ts +298 -0
  60. package/dist/visuals/index.cjs +4 -0
  61. package/dist/visuals/index.d.cts +1 -0
  62. package/dist/visuals/index.d.ts +1 -0
  63. package/dist/visuals/index.js +4 -0
  64. package/package.json +165 -0
@@ -0,0 +1,27 @@
1
+ /** Component metadata layer represented by an opt-ui ID registry entry. */
2
+ type OptIdLayer = "core" | "visuals" | "shells";
3
+ /** Component identity associated with a generated five-character opt-ui ID. */
4
+ interface OptIdEntry {
5
+ /** Meta slug (e.g. "card") — shared by all exports of one component meta. */
6
+ slug: string;
7
+ /** TS export identifier (e.g. "Card", "CardHeader"). */
8
+ exportName: string;
9
+ /** Component metadata layer. */
10
+ layer: OptIdLayer;
11
+ /** ComponentMeta name that owns this export. */
12
+ metaName: string;
13
+ }
14
+ /**
15
+ * Reverse lookup: 5자리 ID → component identity.
16
+ * Used by opt-devtool inspector and design-system usage analytics.
17
+ */
18
+ declare const ID_REGISTRY: Readonly<Record<string, OptIdEntry>>;
19
+ /**
20
+ * Forward lookup: `{slug}.{ExportName}` → 5자리 ID.
21
+ * Used to verify/inject the correct ID in ESLint autofix and tests.
22
+ */
23
+ declare const SLUG_TO_ID: Readonly<Record<string, string>>;
24
+ /** Sorted list of every `{slug}.{ExportName}` — useful for snapshot diffs. */
25
+ declare const ALL_SLUGS: readonly string[];
26
+
27
+ export { ALL_SLUGS, ID_REGISTRY, type OptIdEntry, type OptIdLayer, SLUG_TO_ID };
@@ -0,0 +1,27 @@
1
+ /** Component metadata layer represented by an opt-ui ID registry entry. */
2
+ type OptIdLayer = "core" | "visuals" | "shells";
3
+ /** Component identity associated with a generated five-character opt-ui ID. */
4
+ interface OptIdEntry {
5
+ /** Meta slug (e.g. "card") — shared by all exports of one component meta. */
6
+ slug: string;
7
+ /** TS export identifier (e.g. "Card", "CardHeader"). */
8
+ exportName: string;
9
+ /** Component metadata layer. */
10
+ layer: OptIdLayer;
11
+ /** ComponentMeta name that owns this export. */
12
+ metaName: string;
13
+ }
14
+ /**
15
+ * Reverse lookup: 5자리 ID → component identity.
16
+ * Used by opt-devtool inspector and design-system usage analytics.
17
+ */
18
+ declare const ID_REGISTRY: Readonly<Record<string, OptIdEntry>>;
19
+ /**
20
+ * Forward lookup: `{slug}.{ExportName}` → 5자리 ID.
21
+ * Used to verify/inject the correct ID in ESLint autofix and tests.
22
+ */
23
+ declare const SLUG_TO_ID: Readonly<Record<string, string>>;
24
+ /** Sorted list of every `{slug}.{ExportName}` — useful for snapshot diffs. */
25
+ declare const ALL_SLUGS: readonly string[];
26
+
27
+ export { ALL_SLUGS, ID_REGISTRY, type OptIdEntry, type OptIdLayer, SLUG_TO_ID };