Skip to content
This repository was archived by the owner on Feb 6, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

### Applications

- docs: v1.2.0 ([CHANGELOG](https://github.com/deckgo/deckdeckgo/blob/master/docs/CHANGELOG.md))
- docs: v1.3.0 ([CHANGELOG](https://github.com/deckgo/deckdeckgo/blob/master/docs/CHANGELOG.md))
- remote: v1.2.0 ([CHANGELOG](https://github.com/deckgo/deckdeckgo/blob/master/remote/CHANGELOG.md))

### Web Components: New
Expand All @@ -14,12 +14,12 @@
### Web Components: Update

- charts: v1.0.2 ([CHANGELOG](https://github.com/deckgo/deckdeckgo/blob/master/webcomponents/charts/CHANGELOG.md))
- color: v1.1.1 ([CHANGELOG](https://github.com/deckgo/deckdeckgo/blob/master/webcomponents/color/CHANGELOG.md))
- color: v2.0.0 ([CHANGELOG](https://github.com/deckgo/deckdeckgo/blob/master/webcomponents/color/CHANGELOG.md))
- core: v1.0.2 ([CHANGELOG](https://github.com/deckgo/deckdeckgo/blob/master/webcomponents/core/CHANGELOG.md))
- demo: v1.0.4 ([CHANGELOG](https://github.com/deckgo/deckdeckgo/blob/master/webcomponents/demo/CHANGELOG.md))
- drag-resize-rotate: v1.0.2 ([CHANGELOG](https://github.com/deckgo/deckdeckgo/blob/master/webcomponents/drag-resize-rotate/CHANGELOG.md))
- highlight-code: v1.0.5 ([CHANGELOG](https://github.com/deckgo/deckdeckgo/blob/master/webcomponents/highlight-code/CHANGELOG.md))
- inline-editor: v1.2.1 ([CHANGELOG](https://github.com/deckgo/deckdeckgo/blob/master/webcomponents/inline-editor/CHANGELOG.md))
- inline-editor: v1.3.1 ([CHANGELOG](https://github.com/deckgo/deckdeckgo/blob/master/webcomponents/inline-editor/CHANGELOG.md))
- lazy-img: v1.0.1 ([CHANGELOG](https://github.com/deckgo/deckdeckgo/blob/master/webcomponents/lazy-img/CHANGELOG.md))
- qrcode: v1.0.1 ([CHANGELOG](https://github.com/deckgo/deckdeckgo/blob/master/webcomponents/qrcode/CHANGELOG.md))
- remote: v1.1.1 ([CHANGELOG](https://github.com/deckgo/deckdeckgo/blob/master/webcomponents/remote/CHANGELOG.md))
Expand Down
6 changes: 6 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# 1.3.0 (2020-05-15)

### Features

- new `color` slot, property and styles

# 1.2.0 (2020-05-14)

### Features
Expand Down
175 changes: 94 additions & 81 deletions docs/docs/components/app-components-color/app-components-color.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ It is fully configurable in terms of colors, you could define the set of colors
## Showcase

<div>
<deckgo-color>
<deckgo-color style={{width: '240px'}}>
<span slot="more">...</span>
</deckgo-color>
</div>
Expand Down Expand Up @@ -77,6 +77,8 @@ The "Color Picker" Web Component could be integrated using the tag `<deckgo-colo

The slot `more` is optional, moreover, the "more" action itself could be turned off.

The slot `custom-label` is optional and can be used to display another label than `Custom` when user selects a custom color.

### Attributes

This component offers the following options which could be set using attributes:
Expand All @@ -88,6 +90,7 @@ This component offers the following options which could be set using attributes:
| `more` | `more` | In case you would not like to offer the "more" options. | `boolean` | `true` |
| `moreAlt` | `more-alt` | An accessibility label for the "more action. | `string` | `'More'` |
| `palette` | | The palette of color (see here under). | `DeckdeckgoPalette[]` | `DEFAULT_PALETTE` |
| `label` | `label` | Display a label for the description of the selected color | `boolean` | `true` |

#### Palette

Expand All @@ -113,104 +116,114 @@ The default palette is the following:

```
export const DEFAULT_PALETTE: DeckdeckgoPalette[] = [
{
color: {
hex: '#FF6900',
rgb: '255,105,0'
{
color: {
hex: '#8ED1FC',
rgb: '142,209,252',
},
alt: 'Light blue',
},
alt: 'Orange'
},
{
color: {
hex: '#FCB900',
rgb: '252,185,0'
{
color: {
hex: '#0693E3',
rgb: '6,147,227',
},
alt: 'Blue',
},
alt: 'Yellow'
},
{
color: {
hex: '#7BDCB5',
rgb: '123,220,181'
{
color: {
hex: '#7BDCB5',
rgb: '123,220,181',
},
alt: 'Light green',
},
alt: 'Light green'
},
{
color: {
hex: '#00D084',
rgb: '0,208,132'
{
color: {
hex: '#00D084',
rgb: '0,208,132',
},
alt: 'Green',
},
alt: 'Green'
},
{
color: {
hex: '#8ED1FC',
rgb: '142,209,252'
{
color: {
hex: '#FCB900',
rgb: '252,185,0',
},
alt: 'Yellow',
},
alt: 'Light blue'
},
{
color: {
hex: '#0693E3',
rgb: '6,147,227'
{
color: {
hex: '#FF6900',
rgb: '255,105,0',
},
alt: 'Orange',
},
alt: 'Blue'
},
{
color: {
hex: '#ABB8C3',
rgb: '171,184,195'
{
color: {
hex: '#F78DA7',
rgb: '247,141,167',
},
alt: 'Pink',
},
alt: 'Grey'
},
{
color: {
hex: '#EB144C',
rgb: '235,20,76'
{
color: {
hex: '#EB144C',
rgb: '235,20,76',
},
alt: 'Red',
},
alt: 'Red'
},
{
color: {
hex: '#F78DA7',
rgb: '247,141,167'
{
color: {
hex: '#ffffff',
rgb: '255,255,255',
},
alt: 'White',
display: {
borderColor: '#ddd',
boxShadowColor: '221,221,221',
},
},
alt: 'Pink'
},
{
color: {
hex: '#9900EF',
rgb: '153,0,239'
{
color: {
hex: '#ABB8C3',
rgb: '171,184,195',
},
alt: 'Grey',
},
alt: 'Violet'
},
{
color: {
hex: '#000000',
rgb: '0,0,0'
{
color: {
hex: '#000000',
rgb: '0,0,0',
},
alt: 'Black',
},
alt: 'Black'
}
];
```

### Theming

The following theming options will affect this component if set on its host or parent.

| CSS4 variable | Default | Note |
| ---------------------------------- | ----------- | ------------------------------------------------------------- |
| --deckgo-button-width | 28px | The width of a button to select a color and the more button |
| --deckgo-button-height | 28px | The height of a button to select a color and the more button |
| --deckgo-button-margin | 4px | The margin of a button to select a color and the more button |
| --deckgo-button-outline | none | The outline of a button to select a color and the more button |
| --deckgo-button-border | none | The border of a button to select a color and the more button |
| --deckgo-button-border-radius | 50% | The border radius of a button to select a color |
| --deckgo-button-more-border-radius | 50% | The border radius of the more button |
| --deckgo-button-more-border | none | The border of the more button |
| --deckgo-button-more-outline | none | The outline of the more button |
| --deckgo-flex-wrap | wrap | Wrap properties of the buttons' container |
| --deckgo-overflow | visible | Overflow property of the buttons's container |
| --deckgo-button-more-background | transparent | The background of the more button |
| CSS4 variable | Default | Note |
| -------------------------------------- | ----------- | ------------------------------------------------------------- |
| --deckgo-button-width | 28px | The width of a button to select a color and the more button |
| --deckgo-button-height | 28px | The height of a button to select a color and the more button |
| --deckgo-button-margin | 4px | The margin of a button to select a color and the more button |
| --deckgo-button-outline | none | The outline of a button to select a color and the more button |
| --deckgo-button-border | none | The border of a button to select a color and the more button |
| --deckgo-button-border-radius | 50% | The border radius of a button to select a color |
| --deckgo-button-more-border-radius | 50% | The border radius of the more button |
| --deckgo-button-more-border | none | The border of the more button |
| --deckgo-button-more-outline | none | The outline of the more button |
| --deckgo-flex-wrap | wrap | Wrap properties of the buttons' container |
| --deckgo-overflow | visible | Overflow property of the buttons's container |
| --deckgo-button-more-background | transparent | The background of the more button |
| --deckgo-color-label-margin | 0 | Margin of the color description |
| --deckgo-color-label-padding | 12px 8px | Padding of the color description |
| --deckgo-color-label-font-size | 12px | Font size of the color description |
| --deckgo-color-label-min-height | 15px | Minimal height of the color description |
| --deckgo-color-label-text-align | center | Text alignment of the color description |
| --deckgo-color-label-color-font-weight | 300 | Font weight of the hexadecimal value of the color description |

### Events

Expand Down
16 changes: 8 additions & 8 deletions docs/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions docs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "deckdeckgo-docs",
"version": "1.2.0",
"version": "1.3.0",
"description": "The Progressive Web App alternative for simple presentations",
"license": "MIT",
"files": [
Expand All @@ -15,13 +15,13 @@
},
"dependencies": {
"@deckdeckgo/charts": "^1.0.2",
"@deckdeckgo/color": "^1.1.1",
"@deckdeckgo/color": "^2.0.0",
"@deckdeckgo/core": "^1.0.2",
"@deckdeckgo/deck-utils": "^2.3.0",
"@deckdeckgo/demo": "^1.0.4",
"@deckdeckgo/drag-resize-rotate": "^1.0.2",
"@deckdeckgo/highlight-code": "^1.0.5",
"@deckdeckgo/inline-editor": "^1.2.1",
"@deckdeckgo/inline-editor": "^1.3.1",
"@deckdeckgo/lazy-img": "^1.0.1",
"@deckdeckgo/math": "^1.0.1",
"@deckdeckgo/qrcode": "^1.0.1",
Expand Down
Loading