toku-ui 0.3.1 → 0.5.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.
@@ -1,5 +1,7 @@
1
1
  import { DeepPartial } from '../types';
2
2
  import { baseTheme } from './base';
3
+ export declare const getDarkerVariant: (main: string, variant: keyof typeof baseTheme.colors.primary) => string;
4
+ export declare const getLighterVariant: (main: string, variant: keyof typeof baseTheme.colors.primary) => string;
3
5
  export declare const createTheme: (theme: DeepPartial<typeof baseTheme>) => {
4
6
  colors: {
5
7
  primary: {
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/theme/utils.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAsBnC,eAAO,MAAM,WAAW,UAAW,YAAY,gBAAgB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAc/D,CAAC"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/theme/utils.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEnC,eAAO,MAAM,gBAAgB,SACrB,MAAM,WACH,MAAM,OAAO,UAAU,MAAM,CAAC,OAAO,WAM7C,CAAC;AAEJ,eAAO,MAAM,iBAAiB,SACtB,MAAM,WACH,MAAM,OAAO,UAAU,MAAM,CAAC,OAAO,WAM7C,CAAC;AAEJ,eAAO,MAAM,WAAW,UAAW,YAAY,gBAAgB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAc/D,CAAC"}
@@ -0,0 +1,4 @@
1
+ type ToCamelCase<S extends string> = S extends `${infer First}-${infer Rest}` ? `${First}${ToCamelCase<Capitalize<Rest>>}` : S;
2
+ export declare const toCamelCase: <S extends string>(input: S) => ToCamelCase<S>;
3
+ export {};
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAEA,KAAK,WAAW,CAAC,CAAC,SAAS,MAAM,IAAI,CAAC,SAAS,GAAG,MAAM,KAAK,IAAI,MAAM,IAAI,EAAE,GACzE,GAAG,KAAK,GAAG,WAAW,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,EAAE,GAC1C,CAAC,CAAC;AAEN,eAAO,MAAM,WAAW,gDACY,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "toku-ui",
3
3
  "private": false,
4
- "version": "0.3.1",
4
+ "version": "0.5.0",
5
5
  "type": "module",
6
6
  "main": "dist/index.umd.js",
7
7
  "module": "dist/index.es.js",