@umbra.ui/core 0.1.2 → 0.1.3

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.ts CHANGED
@@ -84,8 +84,5 @@ export { default as AdaptiveLayout } from "./components/navigation/adaptive/Adap
84
84
  export { default as AdaptiveLayoutBreadcrumbs } from "./components/navigation/adaptive/AdaptiveLayoutBreadcrumbs.vue";
85
85
  export { default as AdaptiveLayoutMenuButton } from "./components/navigation/adaptive/AdaptiveLayoutMenuButton.vue";
86
86
  export { useAdaptiveLayoutState } from "./components/navigation/adaptive/useAdaptiveLayout";
87
- type ReadmeIndex = Record<string, string>;
88
- export declare const getReadme: (slug: string) => string | undefined;
89
- export declare const READMEs: ReadmeIndex;
90
- export declare const registerReadmes: (modules: Record<string, string>) => void;
87
+ export { getComponentReadme, getAvailableComponents, getReadmeIndex, registerReadmes, } from "./readme";
91
88
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AAGrC,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD,MAAM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;AACjG,OAAO,EACL,mBAAmB,EACnB,sBAAsB,EACtB,mBAAmB,IAAI,WAAW,EAClC,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,GACzB,MAAM,sDAAsD,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,qDAAqD,CAAC;AAChG,OAAO,EAAE,OAAO,IAAI,yBAAyB,EAAE,MAAM,gEAAgE,CAAC;AACtH,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,+DAA+D,CAAC;AACpH,OAAO,EAAE,sBAAsB,EAAE,MAAM,oDAAoD,CAAC;AAG5F,OAAO,EACL,kBAAkB,EAClB,sBAAsB,EACtB,cAAc,EACd,eAAe,GAChB,MAAM,UAAU,CAAC"}
package/dist/index.js CHANGED
@@ -73,124 +73,5 @@ export { default as AdaptiveLayout } from "./components/navigation/adaptive/Adap
73
73
  export { default as AdaptiveLayoutBreadcrumbs } from "./components/navigation/adaptive/AdaptiveLayoutBreadcrumbs.vue";
74
74
  export { default as AdaptiveLayoutMenuButton } from "./components/navigation/adaptive/AdaptiveLayoutMenuButton.vue";
75
75
  export { useAdaptiveLayoutState } from "./components/navigation/adaptive/useAdaptiveLayout";
76
- // Manual imports fallback for non-Vite environments
77
- import AlertReadme from "./components/dialogs/Alert/README.md?raw";
78
- import ToastReadme from "./components/dialogs/Toast/README.md?raw";
79
- import ProgressBarReadme from "./components/indicators/ProgressBar/README.md?raw";
80
- import TooltipReadme from "./components/indicators/Tooltip/README.md?raw";
81
- import AutogrowTextViewReadme from "./components/inputs/AutogrowTextView/README.md?raw";
82
- import InputCardReadme from "./components/inputs/InputCard/README.md?raw";
83
- import InputEmailReadme from "./components/inputs/InputEmail/README.md?raw";
84
- import InputNumberReadme from "./components/inputs/InputNumber/README.md?raw";
85
- import InputPhoneReadme from "./components/inputs/InputPhone/README.md?raw";
86
- import InputSecureReadme from "./components/inputs/InputSecure/README.md?raw";
87
- import InputTextReadme from "./components/inputs/InputText/README.md?raw";
88
- import OTPReadme from "./components/inputs/OTP/README.md?raw";
89
- import SearchReadme from "./components/inputs/search/README.md?raw";
90
- import StringCaptureReadme from "./components/inputs/StringCapture/README.md?raw";
91
- import TagsReadme from "./components/inputs/Tags/README.md?raw";
92
- import ActionMenuReadme from "./components/menus/ActionMenu/README.md?raw";
93
- import PopoverReadme from "./components/models/Popover/README.md?raw";
94
- import SheetReadme from "./components/models/Sheet/README.md?raw";
95
- import SidebarReadme from "./components/models/Sidebar/README.md?raw";
96
- import NavigationStackReadme from "./components/navigation/navstack/README.md?raw";
97
- import SlideoverReadme from "./components/navigation/slideover/README.md?raw";
98
- import SplitViewReadme from "./components/navigation/splitview/README.md?raw";
99
- import TabControllerReadme from "./components/navigation/tabcontroller/README.md?raw";
100
- import ButtonReadme from "./components/controls/Button/README.md?raw";
101
- import CheckboxReadme from "./components/controls/Checkbox/README.md?raw";
102
- import DropdownReadme from "./components/controls/Dropdown/README.md?raw";
103
- import IconButtonReadme from "./components/controls/IconButton/README.md?raw";
104
- import RadioReadme from "./components/controls/Radio/README.md?raw";
105
- import RangeSliderReadme from "./components/controls/RangeSlider/README.md?raw";
106
- import SegmentedControlReadme from "./components/controls/SegmentedControl/README.md?raw";
107
- import SliderReadme from "./components/controls/Slider/README.md?raw";
108
- import StepperReadme from "./components/controls/Stepper/README.md?raw";
109
- import SwitchReadme from "./components/controls/Switch/README.md?raw";
110
- import CollectionPickerReadme from "./components/pickers/CollectionPicker/README.md?raw";
111
- import ColorPickerReadme from "./components/pickers/ColorPicker/README.md?raw";
112
- import DatePickerReadme from "./components/pickers/DatePicker/README.md?raw";
113
- import FilePickerReadme from "./components/pickers/FilePicker/README.md?raw";
114
- import IconPickerReadme from "./components/pickers/IconPicker/README.md?raw";
115
- import MarkdownViewerReadme from "./components/views/MarkdownViewer/README.md?raw";
116
- const viteGlob = ((importMeta) => importMeta && importMeta.glob
117
- ? importMeta.glob
118
- : undefined)(import.meta);
119
- const __readmeModules = viteGlob
120
- ? viteGlob("./components/**/README.md?raw", {
121
- eager: true,
122
- })
123
- : {};
124
- const README_INDEX = {};
125
- const __indexReadme = (path, content) => {
126
- const parts = path.split("/");
127
- const folder = parts[parts.length - 2] ?? "";
128
- const kebab = folder
129
- .replace(/([a-z0-9])([A-Z])/g, "$1-$2")
130
- .replace(/[\s_]+/g, "-")
131
- .toLowerCase();
132
- if (kebab)
133
- README_INDEX[kebab] = content;
134
- if (folder)
135
- README_INDEX[folder.toLowerCase()] = content;
136
- };
137
- for (const [path, content] of Object.entries(__readmeModules)) {
138
- __indexReadme(path, content);
139
- }
140
- // Populate with manual imports too (works in both Vite and non-Vite bundlers that support ?raw)
141
- const __manualReadmes = {
142
- "./components/dialogs/Alert/README.md": AlertReadme,
143
- "./components/dialogs/Toast/README.md": ToastReadme,
144
- "./components/indicators/ProgressBar/README.md": ProgressBarReadme,
145
- "./components/indicators/Tooltip/README.md": TooltipReadme,
146
- "./components/inputs/AutogrowTextView/README.md": AutogrowTextViewReadme,
147
- "./components/inputs/InputCard/README.md": InputCardReadme,
148
- "./components/inputs/InputEmail/README.md": InputEmailReadme,
149
- "./components/inputs/InputNumber/README.md": InputNumberReadme,
150
- "./components/inputs/InputPhone/README.md": InputPhoneReadme,
151
- "./components/inputs/InputSecure/README.md": InputSecureReadme,
152
- "./components/inputs/InputText/README.md": InputTextReadme,
153
- "./components/inputs/OTP/README.md": OTPReadme,
154
- "./components/inputs/search/README.md": SearchReadme,
155
- "./components/inputs/StringCapture/README.md": StringCaptureReadme,
156
- "./components/inputs/Tags/README.md": TagsReadme,
157
- "./components/menus/ActionMenu/README.md": ActionMenuReadme,
158
- "./components/models/Popover/README.md": PopoverReadme,
159
- "./components/models/Sheet/README.md": SheetReadme,
160
- "./components/models/Sidebar/README.md": SidebarReadme,
161
- "./components/navigation/navstack/README.md": NavigationStackReadme,
162
- "./components/navigation/slideover/README.md": SlideoverReadme,
163
- "./components/navigation/splitview/README.md": SplitViewReadme,
164
- "./components/navigation/tabcontroller/README.md": TabControllerReadme,
165
- "./components/controls/Button/README.md": ButtonReadme,
166
- "./components/controls/Checkbox/README.md": CheckboxReadme,
167
- "./components/controls/Dropdown/README.md": DropdownReadme,
168
- "./components/controls/IconButton/README.md": IconButtonReadme,
169
- "./components/controls/Radio/README.md": RadioReadme,
170
- "./components/controls/RangeSlider/README.md": RangeSliderReadme,
171
- "./components/controls/SegmentedControl/README.md": SegmentedControlReadme,
172
- "./components/controls/Slider/README.md": SliderReadme,
173
- "./components/controls/Stepper/README.md": StepperReadme,
174
- "./components/controls/Switch/README.md": SwitchReadme,
175
- "./components/pickers/CollectionPicker/README.md": CollectionPickerReadme,
176
- "./components/pickers/ColorPicker/README.md": ColorPickerReadme,
177
- "./components/pickers/DatePicker/README.md": DatePickerReadme,
178
- "./components/pickers/FilePicker/README.md": FilePickerReadme,
179
- "./components/pickers/IconPicker/README.md": IconPickerReadme,
180
- "./components/views/MarkdownViewer/README.md": MarkdownViewerReadme,
181
- };
182
- for (const [path, content] of Object.entries(__manualReadmes)) {
183
- __indexReadme(path, content);
184
- }
185
- export const getReadme = (slug) => {
186
- const key = slug.trim().toLowerCase();
187
- return README_INDEX[key];
188
- };
189
- export const READMEs = README_INDEX;
190
- export const registerReadmes = (modules) => {
191
- for (const [path, content] of Object.entries(modules)) {
192
- if (typeof content === "string") {
193
- __indexReadme(path, content);
194
- }
195
- }
196
- };
76
+ // Optional README access - only import when needed for documentation/playground
77
+ export { getComponentReadme, getAvailableComponents, getReadmeIndex, registerReadmes, } from "./readme";
@@ -0,0 +1,24 @@
1
+ type ReadmeIndex = Record<string, string>;
2
+ /**
3
+ * Get README content for a component by name
4
+ * @param componentName - The component name (kebab-case or PascalCase)
5
+ * @returns The README content as a string, or undefined if not found
6
+ */
7
+ export declare const getComponentReadme: (componentName: string) => string | undefined;
8
+ /**
9
+ * Get all available component names that have README files
10
+ * @returns Array of component names
11
+ */
12
+ export declare const getAvailableComponents: () => string[];
13
+ /**
14
+ * Get the complete README index
15
+ * @returns The README index object
16
+ */
17
+ export declare const getReadmeIndex: () => ReadmeIndex;
18
+ /**
19
+ * Register additional README content (useful for non-Vite environments)
20
+ * @param modules - Object mapping file paths to README content
21
+ */
22
+ export declare const registerReadmes: (modules: Record<string, string>) => void;
23
+ export {};
24
+ //# sourceMappingURL=readme.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"readme.d.ts","sourceRoot":"","sources":["../src/readme.ts"],"names":[],"mappings":"AAGA,KAAK,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAmC1C;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,GAAI,eAAe,MAAM,KAAG,MAAM,GAAG,SAOnE,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,sBAAsB,QAAO,MAAM,EAE/C,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,cAAc,QAAO,WAEjC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,eAAe,GAAI,SAAS,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAAG,IAMjE,CAAC"}
package/dist/readme.js ADDED
@@ -0,0 +1,65 @@
1
+ // README accessors - Optional module for accessing component documentation
2
+ // This module is only needed for playground/documentation purposes
3
+ // This will be populated by Vite's import.meta.glob in Vite environments
4
+ // or remain empty in other bundlers
5
+ const viteGlob = ((importMeta) => importMeta && importMeta.glob
6
+ ? importMeta.glob
7
+ : undefined)(import.meta);
8
+ const __readmeModules = viteGlob
9
+ ? viteGlob("./components/**/README.md?raw", {
10
+ eager: true,
11
+ })
12
+ : {};
13
+ const README_INDEX = {};
14
+ const __indexReadme = (path, content) => {
15
+ const parts = path.split("/");
16
+ const folder = parts[parts.length - 2] ?? "";
17
+ const kebab = folder
18
+ .replace(/([a-z0-9])([A-Z])/g, "$1-$2")
19
+ .replace(/[\s_]+/g, "-")
20
+ .toLowerCase();
21
+ if (kebab)
22
+ README_INDEX[kebab] = content;
23
+ if (folder)
24
+ README_INDEX[folder.toLowerCase()] = content;
25
+ };
26
+ for (const [path, content] of Object.entries(__readmeModules)) {
27
+ __indexReadme(path, content);
28
+ }
29
+ /**
30
+ * Get README content for a component by name
31
+ * @param componentName - The component name (kebab-case or PascalCase)
32
+ * @returns The README content as a string, or undefined if not found
33
+ */
34
+ export const getComponentReadme = (componentName) => {
35
+ const kebab = componentName
36
+ .replace(/([a-z0-9])([A-Z])/g, "$1-$2")
37
+ .replace(/[\s_]+/g, "-")
38
+ .toLowerCase();
39
+ return README_INDEX[kebab] || README_INDEX[componentName.toLowerCase()];
40
+ };
41
+ /**
42
+ * Get all available component names that have README files
43
+ * @returns Array of component names
44
+ */
45
+ export const getAvailableComponents = () => {
46
+ return Object.keys(README_INDEX);
47
+ };
48
+ /**
49
+ * Get the complete README index
50
+ * @returns The README index object
51
+ */
52
+ export const getReadmeIndex = () => {
53
+ return { ...README_INDEX };
54
+ };
55
+ /**
56
+ * Register additional README content (useful for non-Vite environments)
57
+ * @param modules - Object mapping file paths to README content
58
+ */
59
+ export const registerReadmes = (modules) => {
60
+ for (const [path, content] of Object.entries(modules)) {
61
+ if (typeof content === "string") {
62
+ __indexReadme(path, content);
63
+ }
64
+ }
65
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umbra.ui/core",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Core components for Umbra UI",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -23,7 +23,9 @@
23
23
  "scripts": {
24
24
  "build": "tsc",
25
25
  "dev": "tsc --watch",
26
- "prepublishOnly": "npm run build",
26
+ "prepublishOnly": "node scripts/pre-publish.js && npm run build",
27
+ "postpublish": "node scripts/post-publish.js",
28
+ "restore-workspace": "node scripts/post-publish.js",
27
29
  "combine-themes": "node scripts/combine-themes.js",
28
30
  "theme:light": "node scripts/combine-themes.js --light-only",
29
31
  "theme:dark": "node scripts/combine-themes.js --dark-only",
@@ -60,4 +62,4 @@
60
62
  "publishConfig": {
61
63
  "access": "public"
62
64
  }
63
- }
65
+ }
package/src/index.ts CHANGED
@@ -125,139 +125,10 @@ export { default as AdaptiveLayoutBreadcrumbs } from "./components/navigation/ad
125
125
  export { default as AdaptiveLayoutMenuButton } from "./components/navigation/adaptive/AdaptiveLayoutMenuButton.vue";
126
126
  export { useAdaptiveLayoutState } from "./components/navigation/adaptive/useAdaptiveLayout";
127
127
 
128
- // README accessors (returns README.md content as strings)
129
- type ReadmeIndex = Record<string, string>;
130
-
131
- // Manual imports fallback for non-Vite environments
132
- import AlertReadme from "./components/dialogs/Alert/README.md?raw";
133
- import ToastReadme from "./components/dialogs/Toast/README.md?raw";
134
- import ProgressBarReadme from "./components/indicators/ProgressBar/README.md?raw";
135
- import TooltipReadme from "./components/indicators/Tooltip/README.md?raw";
136
- import AutogrowTextViewReadme from "./components/inputs/AutogrowTextView/README.md?raw";
137
- import InputCardReadme from "./components/inputs/InputCard/README.md?raw";
138
- import InputEmailReadme from "./components/inputs/InputEmail/README.md?raw";
139
- import InputNumberReadme from "./components/inputs/InputNumber/README.md?raw";
140
- import InputPhoneReadme from "./components/inputs/InputPhone/README.md?raw";
141
- import InputSecureReadme from "./components/inputs/InputSecure/README.md?raw";
142
- import InputTextReadme from "./components/inputs/InputText/README.md?raw";
143
- import OTPReadme from "./components/inputs/OTP/README.md?raw";
144
- import SearchReadme from "./components/inputs/search/README.md?raw";
145
- import StringCaptureReadme from "./components/inputs/StringCapture/README.md?raw";
146
- import TagsReadme from "./components/inputs/Tags/README.md?raw";
147
- import ActionMenuReadme from "./components/menus/ActionMenu/README.md?raw";
148
- import PopoverReadme from "./components/models/Popover/README.md?raw";
149
- import SheetReadme from "./components/models/Sheet/README.md?raw";
150
- import SidebarReadme from "./components/models/Sidebar/README.md?raw";
151
- import NavigationStackReadme from "./components/navigation/navstack/README.md?raw";
152
- import SlideoverReadme from "./components/navigation/slideover/README.md?raw";
153
- import SplitViewReadme from "./components/navigation/splitview/README.md?raw";
154
- import TabControllerReadme from "./components/navigation/tabcontroller/README.md?raw";
155
- import ButtonReadme from "./components/controls/Button/README.md?raw";
156
- import CheckboxReadme from "./components/controls/Checkbox/README.md?raw";
157
- import DropdownReadme from "./components/controls/Dropdown/README.md?raw";
158
- import IconButtonReadme from "./components/controls/IconButton/README.md?raw";
159
- import RadioReadme from "./components/controls/Radio/README.md?raw";
160
- import RangeSliderReadme from "./components/controls/RangeSlider/README.md?raw";
161
- import SegmentedControlReadme from "./components/controls/SegmentedControl/README.md?raw";
162
- import SliderReadme from "./components/controls/Slider/README.md?raw";
163
- import StepperReadme from "./components/controls/Stepper/README.md?raw";
164
- import SwitchReadme from "./components/controls/Switch/README.md?raw";
165
- import CollectionPickerReadme from "./components/pickers/CollectionPicker/README.md?raw";
166
- import ColorPickerReadme from "./components/pickers/ColorPicker/README.md?raw";
167
- import DatePickerReadme from "./components/pickers/DatePicker/README.md?raw";
168
- import FilePickerReadme from "./components/pickers/FilePicker/README.md?raw";
169
- import IconPickerReadme from "./components/pickers/IconPicker/README.md?raw";
170
- import MarkdownViewerReadme from "./components/views/MarkdownViewer/README.md?raw";
171
-
172
- const viteGlob = ((importMeta: any) =>
173
- importMeta && importMeta.glob
174
- ? (importMeta.glob as (
175
- pattern: string,
176
- options?: any
177
- ) => Record<string, unknown>)
178
- : undefined)(import.meta as any);
179
-
180
- const __readmeModules: Record<string, string> = viteGlob
181
- ? (viteGlob("./components/**/README.md?raw", {
182
- eager: true,
183
- }) as Record<string, string>)
184
- : {};
185
-
186
- const README_INDEX: ReadmeIndex = {};
187
-
188
- const __indexReadme = (path: string, content: string) => {
189
- const parts = path.split("/");
190
- const folder = parts[parts.length - 2] ?? "";
191
- const kebab = folder
192
- .replace(/([a-z0-9])([A-Z])/g, "$1-$2")
193
- .replace(/[\s_]+/g, "-")
194
- .toLowerCase();
195
- if (kebab) README_INDEX[kebab] = content;
196
- if (folder) README_INDEX[folder.toLowerCase()] = content;
197
- };
198
-
199
- for (const [path, content] of Object.entries(__readmeModules)) {
200
- __indexReadme(path, content);
201
- }
202
-
203
- // Populate with manual imports too (works in both Vite and non-Vite bundlers that support ?raw)
204
- const __manualReadmes: Record<string, string> = {
205
- "./components/dialogs/Alert/README.md": AlertReadme,
206
- "./components/dialogs/Toast/README.md": ToastReadme,
207
- "./components/indicators/ProgressBar/README.md": ProgressBarReadme,
208
- "./components/indicators/Tooltip/README.md": TooltipReadme,
209
- "./components/inputs/AutogrowTextView/README.md": AutogrowTextViewReadme,
210
- "./components/inputs/InputCard/README.md": InputCardReadme,
211
- "./components/inputs/InputEmail/README.md": InputEmailReadme,
212
- "./components/inputs/InputNumber/README.md": InputNumberReadme,
213
- "./components/inputs/InputPhone/README.md": InputPhoneReadme,
214
- "./components/inputs/InputSecure/README.md": InputSecureReadme,
215
- "./components/inputs/InputText/README.md": InputTextReadme,
216
- "./components/inputs/OTP/README.md": OTPReadme,
217
- "./components/inputs/search/README.md": SearchReadme,
218
- "./components/inputs/StringCapture/README.md": StringCaptureReadme,
219
- "./components/inputs/Tags/README.md": TagsReadme,
220
- "./components/menus/ActionMenu/README.md": ActionMenuReadme,
221
- "./components/models/Popover/README.md": PopoverReadme,
222
- "./components/models/Sheet/README.md": SheetReadme,
223
- "./components/models/Sidebar/README.md": SidebarReadme,
224
- "./components/navigation/navstack/README.md": NavigationStackReadme,
225
- "./components/navigation/slideover/README.md": SlideoverReadme,
226
- "./components/navigation/splitview/README.md": SplitViewReadme,
227
- "./components/navigation/tabcontroller/README.md": TabControllerReadme,
228
- "./components/controls/Button/README.md": ButtonReadme,
229
- "./components/controls/Checkbox/README.md": CheckboxReadme,
230
- "./components/controls/Dropdown/README.md": DropdownReadme,
231
- "./components/controls/IconButton/README.md": IconButtonReadme,
232
- "./components/controls/Radio/README.md": RadioReadme,
233
- "./components/controls/RangeSlider/README.md": RangeSliderReadme,
234
- "./components/controls/SegmentedControl/README.md": SegmentedControlReadme,
235
- "./components/controls/Slider/README.md": SliderReadme,
236
- "./components/controls/Stepper/README.md": StepperReadme,
237
- "./components/controls/Switch/README.md": SwitchReadme,
238
- "./components/pickers/CollectionPicker/README.md": CollectionPickerReadme,
239
- "./components/pickers/ColorPicker/README.md": ColorPickerReadme,
240
- "./components/pickers/DatePicker/README.md": DatePickerReadme,
241
- "./components/pickers/FilePicker/README.md": FilePickerReadme,
242
- "./components/pickers/IconPicker/README.md": IconPickerReadme,
243
- "./components/views/MarkdownViewer/README.md": MarkdownViewerReadme,
244
- };
245
-
246
- for (const [path, content] of Object.entries(__manualReadmes)) {
247
- __indexReadme(path, content);
248
- }
249
-
250
- export const getReadme = (slug: string): string | undefined => {
251
- const key = slug.trim().toLowerCase();
252
- return README_INDEX[key];
253
- };
254
-
255
- export const READMEs: ReadmeIndex = README_INDEX;
256
-
257
- export const registerReadmes = (modules: Record<string, string>): void => {
258
- for (const [path, content] of Object.entries(modules)) {
259
- if (typeof content === "string") {
260
- __indexReadme(path, content);
261
- }
262
- }
263
- };
128
+ // Optional README access - only import when needed for documentation/playground
129
+ export {
130
+ getComponentReadme,
131
+ getAvailableComponents,
132
+ getReadmeIndex,
133
+ registerReadmes,
134
+ } from "./readme";
package/src/readme.ts ADDED
@@ -0,0 +1,79 @@
1
+ // README accessors - Optional module for accessing component documentation
2
+ // This module is only needed for playground/documentation purposes
3
+
4
+ type ReadmeIndex = Record<string, string>;
5
+
6
+ // This will be populated by Vite's import.meta.glob in Vite environments
7
+ // or remain empty in other bundlers
8
+ const viteGlob = ((importMeta: any) =>
9
+ importMeta && importMeta.glob
10
+ ? (importMeta.glob as (
11
+ pattern: string,
12
+ options?: any
13
+ ) => Record<string, unknown>)
14
+ : undefined)(import.meta as any);
15
+
16
+ const __readmeModules: Record<string, string> = viteGlob
17
+ ? (viteGlob("./components/**/README.md?raw", {
18
+ eager: true,
19
+ }) as Record<string, string>)
20
+ : {};
21
+
22
+ const README_INDEX: ReadmeIndex = {};
23
+
24
+ const __indexReadme = (path: string, content: string) => {
25
+ const parts = path.split("/");
26
+ const folder = parts[parts.length - 2] ?? "";
27
+ const kebab = folder
28
+ .replace(/([a-z0-9])([A-Z])/g, "$1-$2")
29
+ .replace(/[\s_]+/g, "-")
30
+ .toLowerCase();
31
+ if (kebab) README_INDEX[kebab] = content;
32
+ if (folder) README_INDEX[folder.toLowerCase()] = content;
33
+ };
34
+
35
+ for (const [path, content] of Object.entries(__readmeModules)) {
36
+ __indexReadme(path, content);
37
+ }
38
+
39
+ /**
40
+ * Get README content for a component by name
41
+ * @param componentName - The component name (kebab-case or PascalCase)
42
+ * @returns The README content as a string, or undefined if not found
43
+ */
44
+ export const getComponentReadme = (componentName: string): string | undefined => {
45
+ const kebab = componentName
46
+ .replace(/([a-z0-9])([A-Z])/g, "$1-$2")
47
+ .replace(/[\s_]+/g, "-")
48
+ .toLowerCase();
49
+
50
+ return README_INDEX[kebab] || README_INDEX[componentName.toLowerCase()];
51
+ };
52
+
53
+ /**
54
+ * Get all available component names that have README files
55
+ * @returns Array of component names
56
+ */
57
+ export const getAvailableComponents = (): string[] => {
58
+ return Object.keys(README_INDEX);
59
+ };
60
+
61
+ /**
62
+ * Get the complete README index
63
+ * @returns The README index object
64
+ */
65
+ export const getReadmeIndex = (): ReadmeIndex => {
66
+ return { ...README_INDEX };
67
+ };
68
+
69
+ /**
70
+ * Register additional README content (useful for non-Vite environments)
71
+ * @param modules - Object mapping file paths to README content
72
+ */
73
+ export const registerReadmes = (modules: Record<string, string>): void => {
74
+ for (const [path, content] of Object.entries(modules)) {
75
+ if (typeof content === "string") {
76
+ __indexReadme(path, content);
77
+ }
78
+ }
79
+ };