@deckdeckgo/color
Advanced tools
Comparing version 1.0.0-rc.3-1 to 1.0.0-rc.3-2
@@ -0,1 +1,8 @@ | ||
<a name="1.0.0-rc.3-2"></a> | ||
# 1.0.0-rc.3-2 (2019-12-12) | ||
### Features | ||
* refactor component to exposes the interfaces and `DEFAULT_PALETTE` | ||
<a name="1.0.0-rc.3-1"></a> | ||
@@ -2,0 +9,0 @@ # 1.0.0-rc.3-1 (2019-11-19) |
@@ -6,2 +6,3 @@ 'use strict'; | ||
const core = require('./core-952db89c.js'); | ||
const deckdeckgoPalette = require('./deckdeckgo-palette-b65542d7.js'); | ||
@@ -19,86 +20,6 @@ function debounce(func, timeout) { | ||
const DEFAULT_PALETTE = [ | ||
{ | ||
color: { | ||
hex: '#FF6900', | ||
rgb: '255,105,0' | ||
}, | ||
alt: 'Orange' | ||
}, | ||
{ | ||
color: { | ||
hex: '#FCB900', | ||
rgb: '252,185,0' | ||
}, | ||
alt: 'Yellow' | ||
}, | ||
{ | ||
color: { | ||
hex: '#7BDCB5', | ||
rgb: '123,220,181' | ||
}, | ||
alt: 'Light green' | ||
}, | ||
{ | ||
color: { | ||
hex: '#00D084', | ||
rgb: '0,208,132' | ||
}, | ||
alt: 'Green' | ||
}, | ||
{ | ||
color: { | ||
hex: '#8ED1FC', | ||
rgb: '142,209,252' | ||
}, | ||
alt: 'Light blue' | ||
}, | ||
{ | ||
color: { | ||
hex: '#0693E3', | ||
rgb: '6,147,227' | ||
}, | ||
alt: 'Blue' | ||
}, | ||
{ | ||
color: { | ||
hex: '#ABB8C3', | ||
rgb: '171,184,195' | ||
}, | ||
alt: 'Grey' | ||
}, | ||
{ | ||
color: { | ||
hex: '#EB144C', | ||
rgb: '235,20,76' | ||
}, | ||
alt: 'Red' | ||
}, | ||
{ | ||
color: { | ||
hex: '#F78DA7', | ||
rgb: '247,141,167' | ||
}, | ||
alt: 'Pink' | ||
}, | ||
{ | ||
color: { | ||
hex: '#9900EF', | ||
rgb: '153,0,239' | ||
}, | ||
alt: 'Violet' | ||
}, | ||
{ | ||
color: { | ||
hex: '#000000', | ||
rgb: '0,0,0' | ||
}, | ||
alt: 'Black' | ||
} | ||
]; | ||
const DeckdeckgoColor = class { | ||
constructor(hostRef) { | ||
core.registerInstance(this, hostRef); | ||
this.palette = DEFAULT_PALETTE; | ||
this.palette = deckdeckgoPalette.DEFAULT_PALETTE; | ||
this.more = true; | ||
@@ -105,0 +26,0 @@ this.moreAlt = 'More'; |
'use strict'; | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
const deckdeckgoPalette = require('./deckdeckgo-palette-b65542d7.js'); | ||
exports.DEFAULT_PALETTE = deckdeckgoPalette.DEFAULT_PALETTE; |
import { h, Host } from "@stencil/core"; | ||
import { debounce } from '@deckdeckgo/utils'; | ||
import { DEFAULT_PALETTE } from '../utils/deckdeckgo-palette'; | ||
import { DEFAULT_PALETTE } from '../../utils/deckdeckgo-palette'; | ||
export class DeckdeckgoColor { | ||
@@ -191,3 +191,3 @@ constructor() { | ||
"location": "import", | ||
"path": "../utils/deckdeckgo-palette" | ||
"path": "../../utils/deckdeckgo-palette" | ||
} | ||
@@ -297,3 +297,3 @@ } | ||
"location": "import", | ||
"path": "../utils/deckdeckgo-palette" | ||
"path": "../../utils/deckdeckgo-palette" | ||
} | ||
@@ -300,0 +300,0 @@ } |
@@ -1,1 +0,1 @@ | ||
import{p as o,b as e}from"./p-7b3bd42d.js";o().then(o=>e([["p-ghdvfcbi",[[1,"deckgo-color",{palette:[1040],more:[4],moreAlt:[1,"more-alt"],colorHex:[1,"color-hex"],colorRgb:[1,"color-rgb"],selectedColorHex:[32],selectedColorRgb:[32],selectedColorPalette:[32],selectedCustomColorRgb:[32]}]]]],o)); | ||
import{p as o,b as e}from"./p-7b3bd42d.js";o().then(o=>e([["p-artzvvyo",[[1,"deckgo-color",{palette:[1040],more:[4],moreAlt:[1,"more-alt"],colorHex:[1,"color-hex"],colorRgb:[1,"color-rgb"],selectedColorHex:[32],selectedColorRgb:[32],selectedColorPalette:[32],selectedCustomColorRgb:[32]}]]]],o)); |
@@ -1,1 +0,1 @@ | ||
System.register(["./p-e1a0cf9f.system.js"],(function(){"use strict";var e,o;return{setters:[function(t){e=t.p;o=t.b}],execute:function(){e().then((function(e){return o([["p-0udeovta.system",[[1,"deckgo-color",{palette:[1040],more:[4],moreAlt:[1,"more-alt"],colorHex:[1,"color-hex"],colorRgb:[1,"color-rgb"],selectedColorHex:[32],selectedColorRgb:[32],selectedColorPalette:[32],selectedCustomColorRgb:[32]}]]]],e)}))}}})); | ||
System.register(["./p-e1a0cf9f.system.js"],(function(){"use strict";var e,o;return{setters:[function(t){e=t.p;o=t.b}],execute:function(){e().then((function(e){return o([["p-gb4e8uko.system",[[1,"deckgo-color",{palette:[1040],more:[4],moreAlt:[1,"more-alt"],colorHex:[1,"color-hex"],colorRgb:[1,"color-rgb"],selectedColorHex:[32],selectedColorRgb:[32],selectedColorPalette:[32],selectedCustomColorRgb:[32]}]]]],e)}))}}})); |
@@ -45,2 +45,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './core-72f5b133.js'; | ||
import { D as DEFAULT_PALETTE } from './deckdeckgo-palette-2e12c19a.js'; | ||
function debounce(func, timeout) { | ||
@@ -60,81 +61,2 @@ var timer; | ||
} | ||
var DEFAULT_PALETTE = [ | ||
{ | ||
color: { | ||
hex: '#FF6900', | ||
rgb: '255,105,0' | ||
}, | ||
alt: 'Orange' | ||
}, | ||
{ | ||
color: { | ||
hex: '#FCB900', | ||
rgb: '252,185,0' | ||
}, | ||
alt: 'Yellow' | ||
}, | ||
{ | ||
color: { | ||
hex: '#7BDCB5', | ||
rgb: '123,220,181' | ||
}, | ||
alt: 'Light green' | ||
}, | ||
{ | ||
color: { | ||
hex: '#00D084', | ||
rgb: '0,208,132' | ||
}, | ||
alt: 'Green' | ||
}, | ||
{ | ||
color: { | ||
hex: '#8ED1FC', | ||
rgb: '142,209,252' | ||
}, | ||
alt: 'Light blue' | ||
}, | ||
{ | ||
color: { | ||
hex: '#0693E3', | ||
rgb: '6,147,227' | ||
}, | ||
alt: 'Blue' | ||
}, | ||
{ | ||
color: { | ||
hex: '#ABB8C3', | ||
rgb: '171,184,195' | ||
}, | ||
alt: 'Grey' | ||
}, | ||
{ | ||
color: { | ||
hex: '#EB144C', | ||
rgb: '235,20,76' | ||
}, | ||
alt: 'Red' | ||
}, | ||
{ | ||
color: { | ||
hex: '#F78DA7', | ||
rgb: '247,141,167' | ||
}, | ||
alt: 'Pink' | ||
}, | ||
{ | ||
color: { | ||
hex: '#9900EF', | ||
rgb: '153,0,239' | ||
}, | ||
alt: 'Violet' | ||
}, | ||
{ | ||
color: { | ||
hex: '#000000', | ||
rgb: '0,0,0' | ||
}, | ||
alt: 'Black' | ||
} | ||
]; | ||
var DeckdeckgoColor = /** @class */ (function () { | ||
@@ -141,0 +63,0 @@ function class_1(hostRef) { |
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './core-72f5b133.js'; | ||
import { D as DEFAULT_PALETTE } from './deckdeckgo-palette-2e12c19a.js'; | ||
@@ -14,82 +15,2 @@ function debounce(func, timeout) { | ||
const DEFAULT_PALETTE = [ | ||
{ | ||
color: { | ||
hex: '#FF6900', | ||
rgb: '255,105,0' | ||
}, | ||
alt: 'Orange' | ||
}, | ||
{ | ||
color: { | ||
hex: '#FCB900', | ||
rgb: '252,185,0' | ||
}, | ||
alt: 'Yellow' | ||
}, | ||
{ | ||
color: { | ||
hex: '#7BDCB5', | ||
rgb: '123,220,181' | ||
}, | ||
alt: 'Light green' | ||
}, | ||
{ | ||
color: { | ||
hex: '#00D084', | ||
rgb: '0,208,132' | ||
}, | ||
alt: 'Green' | ||
}, | ||
{ | ||
color: { | ||
hex: '#8ED1FC', | ||
rgb: '142,209,252' | ||
}, | ||
alt: 'Light blue' | ||
}, | ||
{ | ||
color: { | ||
hex: '#0693E3', | ||
rgb: '6,147,227' | ||
}, | ||
alt: 'Blue' | ||
}, | ||
{ | ||
color: { | ||
hex: '#ABB8C3', | ||
rgb: '171,184,195' | ||
}, | ||
alt: 'Grey' | ||
}, | ||
{ | ||
color: { | ||
hex: '#EB144C', | ||
rgb: '235,20,76' | ||
}, | ||
alt: 'Red' | ||
}, | ||
{ | ||
color: { | ||
hex: '#F78DA7', | ||
rgb: '247,141,167' | ||
}, | ||
alt: 'Pink' | ||
}, | ||
{ | ||
color: { | ||
hex: '#9900EF', | ||
rgb: '153,0,239' | ||
}, | ||
alt: 'Violet' | ||
}, | ||
{ | ||
color: { | ||
hex: '#000000', | ||
rgb: '0,0,0' | ||
}, | ||
alt: 'Black' | ||
} | ||
]; | ||
const DeckdeckgoColor = class { | ||
@@ -96,0 +17,0 @@ constructor(hostRef) { |
@@ -13,3 +13,3 @@ /* eslint-disable */ | ||
DeckdeckgoPaletteColor, | ||
} from './components/utils/deckdeckgo-palette'; | ||
} from './utils/deckdeckgo-palette'; | ||
@@ -16,0 +16,0 @@ export namespace Components { |
import { EventEmitter } from '../../stencil.core'; | ||
import { DeckdeckgoPalette, DeckdeckgoPaletteColor } from '../utils/deckdeckgo-palette'; | ||
import { DeckdeckgoPalette, DeckdeckgoPaletteColor } from '../../utils/deckdeckgo-palette'; | ||
export declare class DeckdeckgoColor { | ||
@@ -4,0 +4,0 @@ el: HTMLElement; |
export * from './components'; | ||
export * from './utils/deckdeckgo-palette'; |
{ | ||
"name": "@deckdeckgo/color", | ||
"version": "1.0.0-rc.3-1", | ||
"version": "1.0.0-rc.3-2", | ||
"description": "A color picker developed with Web Components", | ||
@@ -9,3 +9,3 @@ "main": "dist/index.js", | ||
"es2017": "dist/esm/index.mjs", | ||
"types": "dist/types/index.d.ts", | ||
"types": "dist/types/interface.d.ts", | ||
"collection": "dist/collection/collection-manifest.json", | ||
@@ -12,0 +12,0 @@ "collection:main": "dist/collection/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
863951
76
14166