@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-ui/colors";
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 = () => {
@@ -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,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"}
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umbra.ui/core",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "Core components for Umbra UI",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,5 +1,5 @@
1
1
  import tinycolor from "tinycolor2";
2
- import * as colors from "@umbra-ui/colors";
2
+ import * as colors from "@umbra.ui/colors";
3
3
  import { ThemeObject } from "../../../index";
4
4
  import { getThemeConfig } from "../../../theme";
5
5
 
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 = (componentName: string): string | undefined => {
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