@umbra.ui/core 0.1.3 → 0.1.4
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import tinycolor from "tinycolor2";
|
|
2
|
-
import * as colors from "@umbra
|
|
2
|
+
import * as colors from "@umbra.ui/colors";
|
|
3
3
|
import { getThemeConfig } from "../../../theme";
|
|
4
4
|
// Color mode detection function that uses theme or falls back to system
|
|
5
5
|
export const getColorMode = () => {
|
package/dist/readme.d.ts.map
CHANGED
|
@@ -1 +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,
|
|
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,GAC7B,eAAe,MAAM,KACpB,MAAM,GAAG,SAOX,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/package.json
CHANGED
package/src/readme.ts
CHANGED
|
@@ -41,12 +41,14 @@ for (const [path, content] of Object.entries(__readmeModules)) {
|
|
|
41
41
|
* @param componentName - The component name (kebab-case or PascalCase)
|
|
42
42
|
* @returns The README content as a string, or undefined if not found
|
|
43
43
|
*/
|
|
44
|
-
export const getComponentReadme = (
|
|
44
|
+
export const getComponentReadme = (
|
|
45
|
+
componentName: string
|
|
46
|
+
): string | undefined => {
|
|
45
47
|
const kebab = componentName
|
|
46
48
|
.replace(/([a-z0-9])([A-Z])/g, "$1-$2")
|
|
47
49
|
.replace(/[\s_]+/g, "-")
|
|
48
50
|
.toLowerCase();
|
|
49
|
-
|
|
51
|
+
|
|
50
52
|
return README_INDEX[kebab] || README_INDEX[componentName.toLowerCase()];
|
|
51
53
|
};
|
|
52
54
|
|