@orbitcommerce/constellation-docs 0.0.0-stage → 1.0.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.
Files changed (62) hide show
  1. package/LICENSE.md +6 -0
  2. package/README.md +6 -2
  3. package/dist/docs.css +8260 -0
  4. package/dist/index.d.ts +33 -0
  5. package/dist/index.js +308 -0
  6. package/dist/pages/Playground-CNbBbErC.js +129 -0
  7. package/dist/pages/_figures-data-BDmScEny.js +606 -0
  8. package/dist/pages/_foundations-blXWyYh8.js +30 -0
  9. package/dist/pages/_overlays-specimens-Dpn6oiyH.js +310 -0
  10. package/dist/pages/alert-BD4e6QTh.js +769 -0
  11. package/dist/pages/app-shell-KbA-nRqZ.js +1479 -0
  12. package/dist/pages/area-chart-B91dLcGo.js +562 -0
  13. package/dist/pages/avatar-DPPHXJAu.js +713 -0
  14. package/dist/pages/badge-C9JR0thI.js +729 -0
  15. package/dist/pages/button-D3V912P4.js +518 -0
  16. package/dist/pages/calendar-DSDZ9nRH.js +630 -0
  17. package/dist/pages/card-DUggbis3.js +659 -0
  18. package/dist/pages/checkbox-DwimQaK3.js +365 -0
  19. package/dist/pages/colour-BwuO8xAv.js +1498 -0
  20. package/dist/pages/command-palette-xAD7fOg6.js +1243 -0
  21. package/dist/pages/date-picker-BYSa816m.js +1421 -0
  22. package/dist/pages/delta-CtAo0eIM.js +574 -0
  23. package/dist/pages/dialog-BRAf4LMh.js +1451 -0
  24. package/dist/pages/docs-BNOb7AqR.js +515 -0
  25. package/dist/pages/empty-state-C-mLrXW2.js +417 -0
  26. package/dist/pages/figure-tabs-CoPFzzKz.js +460 -0
  27. package/dist/pages/home-dashboard-CFQwDtC9.js +959 -0
  28. package/dist/pages/host-B6znjEgQ.js +109 -0
  29. package/dist/pages/icon-button-C9eSVPPW.js +861 -0
  30. package/dist/pages/icons-sxkTs5Ob.js +473 -0
  31. package/dist/pages/input-KF9Gkawf.js +1093 -0
  32. package/dist/pages/installation-DpsX8G_n.js +445 -0
  33. package/dist/pages/kbd-cNfDoikz.js +544 -0
  34. package/dist/pages/live-globe-ClvLn9Lb.js +571 -0
  35. package/dist/pages/logo-BfGF1Pq9.js +571 -0
  36. package/dist/pages/menu-by2sgQ09.js +1618 -0
  37. package/dist/pages/motion-BvTGc2Dk.js +855 -0
  38. package/dist/pages/orbit-spinner-Dil1Z3Oy.js +332 -0
  39. package/dist/pages/overview-BPEbZQ6g.js +130 -0
  40. package/dist/pages/pagination-BBUnGvv5.js +249 -0
  41. package/dist/pages/popover-Db1gLDpb.js +1136 -0
  42. package/dist/pages/principles-CeAIOIdt.js +483 -0
  43. package/dist/pages/radio-group-CkdBWWfG.js +1077 -0
  44. package/dist/pages/registry-CroHzK9I.js +244 -0
  45. package/dist/pages/release-Dvo684UJ.js +13 -0
  46. package/dist/pages/rolling-number-qmvH84Mq.js +529 -0
  47. package/dist/pages/search-field-BN7MWGQ4.js +693 -0
  48. package/dist/pages/segmented-control-CTbIpRBW.js +777 -0
  49. package/dist/pages/select-DguELoRR.js +1429 -0
  50. package/dist/pages/separator-CPZub9pv.js +351 -0
  51. package/dist/pages/shape-DKvA0YKr.js +627 -0
  52. package/dist/pages/skeleton-DLuBhP46.js +561 -0
  53. package/dist/pages/sparkline-DMMYGbHn.js +668 -0
  54. package/dist/pages/switch-B-Qe4kcT.js +517 -0
  55. package/dist/pages/table-AMoODng4.js +607 -0
  56. package/dist/pages/tabs-B4M-usCV.js +1455 -0
  57. package/dist/pages/textarea-fTuUZRQb.js +693 -0
  58. package/dist/pages/toast-CKP03zjy.js +1176 -0
  59. package/dist/pages/tooltip-CBYil3kt.js +697 -0
  60. package/dist/pages/typography-PCbg8Bhg.js +735 -0
  61. package/manifest.json +3125 -0
  62. package/package.json +35 -4
@@ -0,0 +1,244 @@
1
+ "use client";
2
+ //#region src/site/registry.ts
3
+ var GROUPS = [
4
+ {
5
+ id: "start",
6
+ title: "Get started"
7
+ },
8
+ {
9
+ id: "foundations",
10
+ title: "Foundations"
11
+ },
12
+ {
13
+ id: "components",
14
+ title: "Components"
15
+ },
16
+ {
17
+ id: "patterns",
18
+ title: "Patterns"
19
+ }
20
+ ];
21
+ /** Component families, in nav order. Slugs are file names in pages/components. */
22
+ var CATEGORIES = [
23
+ {
24
+ id: "actions",
25
+ title: "Actions",
26
+ slugs: ["button", "icon-button"]
27
+ },
28
+ {
29
+ id: "inputs",
30
+ title: "Inputs",
31
+ slugs: [
32
+ "input",
33
+ "textarea",
34
+ "select",
35
+ "search-field",
36
+ "checkbox",
37
+ "radio-group",
38
+ "switch",
39
+ "segmented-control",
40
+ "date-picker",
41
+ "calendar",
42
+ "tabs"
43
+ ]
44
+ },
45
+ {
46
+ id: "overlays",
47
+ title: "Overlays",
48
+ slugs: [
49
+ "menu",
50
+ "popover",
51
+ "dialog",
52
+ "tooltip",
53
+ "command-palette"
54
+ ]
55
+ },
56
+ {
57
+ id: "data",
58
+ title: "Data",
59
+ slugs: ["table", "pagination"]
60
+ },
61
+ {
62
+ id: "display",
63
+ title: "Feedback and display",
64
+ slugs: [
65
+ "alert",
66
+ "toast",
67
+ "badge",
68
+ "avatar",
69
+ "card",
70
+ "delta",
71
+ "empty-state",
72
+ "kbd",
73
+ "separator",
74
+ "skeleton",
75
+ "orbit-spinner"
76
+ ]
77
+ },
78
+ {
79
+ id: "figures",
80
+ title: "Figures and charts",
81
+ slugs: [
82
+ "live-globe",
83
+ "rolling-number",
84
+ "sparkline",
85
+ "area-chart",
86
+ "figure-tabs"
87
+ ]
88
+ }
89
+ ];
90
+ /** Titles that cannot be derived from the slug. */
91
+ var TITLES = {
92
+ overview: "Overview",
93
+ installation: "Installation",
94
+ principles: "Principles",
95
+ colour: "Colour",
96
+ typography: "Typography",
97
+ shape: "Shape and depth",
98
+ motion: "Motion",
99
+ icons: "Icons",
100
+ logo: "Logo",
101
+ input: "Input and field",
102
+ "command-palette": "Command palette",
103
+ "live-globe": "Live globe",
104
+ "empty-state": "Empty state",
105
+ "figure-tabs": "Figure tabs",
106
+ "icon-button": "Icon button",
107
+ "orbit-spinner": "Orbit spinner",
108
+ "rolling-number": "Rolling number",
109
+ "search-field": "Search field",
110
+ "segmented-control": "Segmented control",
111
+ "area-chart": "Area chart",
112
+ "app-shell": "App shell",
113
+ "home-dashboard": "Home dashboard"
114
+ };
115
+ /** Fixed order within a group where alphabetical is wrong. Components follow CATEGORIES. */
116
+ var ORDER = {
117
+ overview: 0,
118
+ installation: 1,
119
+ principles: 2,
120
+ colour: 0,
121
+ typography: 1,
122
+ shape: 2,
123
+ motion: 3,
124
+ icons: 4,
125
+ logo: 5,
126
+ "app-shell": 0,
127
+ "home-dashboard": 1
128
+ };
129
+ function titleFromSlug(slug) {
130
+ if (TITLES[slug]) return TITLES[slug];
131
+ return slug.charAt(0).toUpperCase() + slug.slice(1).replace(/-/g, " ");
132
+ }
133
+ function categoryOf(slug) {
134
+ return CATEGORIES.find((c) => c.slugs.includes(slug))?.id;
135
+ }
136
+ function orderOf(entry) {
137
+ if (entry.group === "components") {
138
+ const ci = CATEGORIES.findIndex((c) => c.slugs.includes(entry.slug));
139
+ const si = ci >= 0 ? CATEGORIES[ci].slugs.indexOf(entry.slug) : 99;
140
+ return (ci >= 0 ? ci : 99) * 100 + si;
141
+ }
142
+ return ORDER[entry.slug] ?? 50;
143
+ }
144
+ var PAGES = Object.entries(/* @__PURE__ */ Object.assign({
145
+ "../pages/components/alert.tsx": () => import("./alert-BD4e6QTh.js"),
146
+ "../pages/components/area-chart.tsx": () => import("./area-chart-B91dLcGo.js"),
147
+ "../pages/components/avatar.tsx": () => import("./avatar-DPPHXJAu.js"),
148
+ "../pages/components/badge.tsx": () => import("./badge-C9JR0thI.js"),
149
+ "../pages/components/button.tsx": () => import("./button-D3V912P4.js"),
150
+ "../pages/components/calendar.tsx": () => import("./calendar-DSDZ9nRH.js"),
151
+ "../pages/components/card.tsx": () => import("./card-DUggbis3.js"),
152
+ "../pages/components/checkbox.tsx": () => import("./checkbox-DwimQaK3.js"),
153
+ "../pages/components/command-palette.tsx": () => import("./command-palette-xAD7fOg6.js"),
154
+ "../pages/components/date-picker.tsx": () => import("./date-picker-BYSa816m.js"),
155
+ "../pages/components/delta.tsx": () => import("./delta-CtAo0eIM.js"),
156
+ "../pages/components/dialog.tsx": () => import("./dialog-BRAf4LMh.js"),
157
+ "../pages/components/empty-state.tsx": () => import("./empty-state-C-mLrXW2.js"),
158
+ "../pages/components/figure-tabs.tsx": () => import("./figure-tabs-CoPFzzKz.js"),
159
+ "../pages/components/icon-button.tsx": () => import("./icon-button-C9eSVPPW.js"),
160
+ "../pages/components/input.tsx": () => import("./input-KF9Gkawf.js"),
161
+ "../pages/components/kbd.tsx": () => import("./kbd-cNfDoikz.js"),
162
+ "../pages/components/live-globe.tsx": () => import("./live-globe-ClvLn9Lb.js"),
163
+ "../pages/components/menu.tsx": () => import("./menu-by2sgQ09.js"),
164
+ "../pages/components/orbit-spinner.tsx": () => import("./orbit-spinner-Dil1Z3Oy.js"),
165
+ "../pages/components/pagination.tsx": () => import("./pagination-BBUnGvv5.js"),
166
+ "../pages/components/popover.tsx": () => import("./popover-Db1gLDpb.js"),
167
+ "../pages/components/radio-group.tsx": () => import("./radio-group-CkdBWWfG.js"),
168
+ "../pages/components/rolling-number.tsx": () => import("./rolling-number-qmvH84Mq.js"),
169
+ "../pages/components/search-field.tsx": () => import("./search-field-BN7MWGQ4.js"),
170
+ "../pages/components/segmented-control.tsx": () => import("./segmented-control-CTbIpRBW.js"),
171
+ "../pages/components/select.tsx": () => import("./select-DguELoRR.js"),
172
+ "../pages/components/separator.tsx": () => import("./separator-CPZub9pv.js"),
173
+ "../pages/components/skeleton.tsx": () => import("./skeleton-DLuBhP46.js"),
174
+ "../pages/components/sparkline.tsx": () => import("./sparkline-DMMYGbHn.js"),
175
+ "../pages/components/switch.tsx": () => import("./switch-B-Qe4kcT.js"),
176
+ "../pages/components/table.tsx": () => import("./table-AMoODng4.js"),
177
+ "../pages/components/tabs.tsx": () => import("./tabs-B4M-usCV.js"),
178
+ "../pages/components/textarea.tsx": () => import("./textarea-fTuUZRQb.js"),
179
+ "../pages/components/toast.tsx": () => import("./toast-CKP03zjy.js"),
180
+ "../pages/components/tooltip.tsx": () => import("./tooltip-CBYil3kt.js"),
181
+ "../pages/foundations/colour.tsx": () => import("./colour-BwuO8xAv.js"),
182
+ "../pages/foundations/icons.tsx": () => import("./icons-sxkTs5Ob.js"),
183
+ "../pages/foundations/logo.tsx": () => import("./logo-BfGF1Pq9.js"),
184
+ "../pages/foundations/motion.tsx": () => import("./motion-BvTGc2Dk.js"),
185
+ "../pages/foundations/shape.tsx": () => import("./shape-DKvA0YKr.js"),
186
+ "../pages/foundations/typography.tsx": () => import("./typography-PCbg8Bhg.js"),
187
+ "../pages/patterns/app-shell.tsx": () => import("./app-shell-KbA-nRqZ.js"),
188
+ "../pages/patterns/home-dashboard.tsx": () => import("./home-dashboard-CFQwDtC9.js"),
189
+ "../pages/start/installation.tsx": () => import("./installation-DpsX8G_n.js"),
190
+ "../pages/start/overview.tsx": () => import("./overview-BPEbZQ6g.js"),
191
+ "../pages/start/principles.tsx": () => import("./principles-CeAIOIdt.js")
192
+ })).map(([file, load]) => {
193
+ const [, group, name] = file.match(/\.\.\/pages\/([^/]+)\/([^/]+)\.tsx$/) ?? [];
194
+ const slug = name ?? "";
195
+ return {
196
+ group,
197
+ slug,
198
+ path: group === "start" && slug === "overview" ? "/" : `/${group}/${slug}`,
199
+ title: titleFromSlug(slug),
200
+ category: group === "components" ? categoryOf(slug) : void 0,
201
+ load
202
+ };
203
+ }).filter((p) => GROUPS.some((g) => g.id === p.group)).sort((a, b) => orderOf(a) - orderOf(b) || a.title.localeCompare(b.title));
204
+ function pagesIn(group) {
205
+ return PAGES.filter((p) => p.group === group);
206
+ }
207
+ function pageAt(pathname) {
208
+ const clean = pathname.replace(/\/+$/, "") || "/";
209
+ return PAGES.find((p) => p.path === clean);
210
+ }
211
+ /** Sidebar sections: the start and foundation groups, one section per component family, then patterns. */
212
+ function navSections() {
213
+ const components = pagesIn("components");
214
+ const uncategorised = components.filter((p) => !p.category);
215
+ return [
216
+ {
217
+ id: "start",
218
+ title: "Get started",
219
+ pages: pagesIn("start")
220
+ },
221
+ {
222
+ id: "foundations",
223
+ title: "Foundations",
224
+ pages: pagesIn("foundations")
225
+ },
226
+ ...CATEGORIES.map((c) => ({
227
+ id: c.id,
228
+ title: c.title,
229
+ pages: components.filter((p) => p.category === c.id)
230
+ })),
231
+ {
232
+ id: "more",
233
+ title: "More components",
234
+ pages: uncategorised
235
+ },
236
+ {
237
+ id: "patterns",
238
+ title: "Patterns",
239
+ pages: pagesIn("patterns")
240
+ }
241
+ ].filter((s) => s.pages.length > 0);
242
+ }
243
+ //#endregion
244
+ export { pageAt as a, navSections as i, GROUPS as n, pagesIn as o, PAGES as r, CATEGORIES as t };
@@ -0,0 +1,13 @@
1
+ "use client";
2
+ //#region ../../packages/constellation/package.json
3
+ var version = "1.0.2";
4
+ var peerDependencies = {
5
+ "react": ">=19",
6
+ "react-dom": ">=19"
7
+ };
8
+ //#endregion
9
+ //#region src/site/release.ts
10
+ var CONSTELLATION_VERSION = version;
11
+ var REACT_RANGE = peerDependencies.react;
12
+ //#endregion
13
+ export { REACT_RANGE as n, CONSTELLATION_VERSION as t };