Skip to content

Commit

Permalink
fix: import colo2k as es6 module
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoluoboding committed Jan 26, 2021
1 parent ab5f06c commit b17dbf8
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 25 deletions.
46 changes: 23 additions & 23 deletions docs/guide/core/usePalette.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,29 +39,29 @@ export default {
* enhanced `color2k` with new utilities like `tint` 、 `shade` 、 `invert`.
*/
declare const usePalette: {
adjustHue: typeof color2k.adjustHue;
darken: typeof color2k.darken;
desaturate: typeof color2k.desaturate;
getContrast: typeof color2k.getContrast;
getLuminance: typeof color2k.getLuminance;
getScale: typeof color2k.getScale;
guard: typeof color2k.guard;
hasBadContrast: typeof color2k.hasBadContrast;
hsla: typeof color2k.hsla;
lighten: typeof color2k.lighten;
mix: typeof color2k.mix;
opacify: typeof color2k.opacify;
parseToHsla: typeof color2k.parseToHsla;
readableColor: typeof color2k.readableColor;
readableColorIsBlack: typeof color2k.readableColorIsBlack;
rgba: typeof color2k.rgba;
saturate: typeof color2k.saturate;
transparentize: typeof color2k.transparentize;
parseToRgba: typeof color2k.parseToRgba;
ColorError: typeof color2k.ColorError;
toHex: typeof color2k.toHex;
toRgba: typeof color2k.toRgba;
toHsla: typeof color2k.toHsla;
adjustHue: typeof adjustHue;
darken: typeof darken;
desaturate: typeof desaturate;
getContrast: typeof getContrast;
getLuminance: typeof getLuminance;
getScale: typeof getScale;
guard: typeof guard;
hasBadContrast: typeof hasBadContrast;
hsla: typeof hsla;
lighten: typeof lighten;
mix: typeof mix;
opacify: typeof opacify;
parseToHsla: typeof parseToHsla;
readableColor: typeof readableColor;
readableColorIsBlack: typeof readableColorIsBlack;
rgba: typeof rgba;
saturate: typeof saturate;
transparentize: typeof transparentize;
parseToRgba: typeof parseToRgba;
ColorError: typeof ColorError;
toHex: typeof toHex;
toRgba: typeof toRgba;
toHsla: typeof toHsla;
/**
* Tints a color by mixing it with white.
* @param color
Expand Down
1 change: 1 addition & 0 deletions packages/axios/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"type": "git",
"url": "git+https://github.com/vueblocks/vue-use-utilities.git"
},
"homepage": "https://github.com/vueblocks/vue-use-utilities",
"keywords": [
"vue",
"vue-use",
Expand Down
3 changes: 2 additions & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vueblocks/vue-use-core",
"description": "A Collection of Vue Compositon API Utilities",
"description": "A Collection of Vue Compositon API Utilities.",
"version": "0.2.4",
"main": "lib/index.cjs.js",
"types": "lib/index.d.ts",
Expand All @@ -17,6 +17,7 @@
"type": "git",
"url": "git+https://github.com/vueblocks/vue-use-utilities.git"
},
"homepage": "https://github.com/vueblocks/vue-use-utilities",
"keywords": [
"vue",
"vue-use",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/useColor/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import color2k from 'color2k'
import * as color2k from 'color2k'
import { Ref, computed, unref, isRef } from 'vue-demi'

import { ReactiveColor } from '../types'
Expand Down
1 change: 1 addition & 0 deletions packages/vuex/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"type": "git",
"url": "git+https://github.com/vueblocks/vue-use-utilities.git"
},
"homepage": "https://github.com/vueblocks/vue-use-utilities",
"keywords": [
"vue",
"vue-use",
Expand Down

0 comments on commit b17dbf8

Please sign in to comment.