From c99b8804efda4833535292498350fad2ab1dd802 Mon Sep 17 00:00:00 2001 From: Burcu Noyan Date: Fri, 17 Jan 2025 14:21:44 -0500 Subject: [PATCH] update color-palette defaults --- .../boxel-ui/addon/raw-icons/icon-trash.svg | 2 +- .../src/components/color-palette/index.gts | 62 +++++++++++++++---- .../src/components/color-palette/usage.gts | 3 +- .../src/components/color-picker/index.gts | 10 +-- .../src/components/color-picker/usage.gts | 3 +- .../src/components/icon-button/index.gts | 1 + .../boxel-ui/addon/src/helpers/color-tools.ts | 1 + .../addon/src/helpers/contrast-color.ts | 5 +- .../boxel-ui/addon/src/icons/icon-trash.gts | 2 +- .../5c529dbb-bc16-41ee-9c31-a2b28e07b79d.json | 5 +- .../a4ee8a18-182b-47ff-b557-ef2e529c97ec.json | 5 +- .../BlogCategory/crypto.json | 9 +-- .../BlogCategory/home-decor.json | 7 +-- .../BlogCategory/productivity.json | 7 +-- packages/experiments-realm/blog-category.gts | 54 +++++++++------- packages/experiments-realm/blog-post.gts | 38 +++++------- packages/experiments-realm/color.gts | 24 ++----- 17 files changed, 121 insertions(+), 117 deletions(-) diff --git a/packages/boxel-ui/addon/raw-icons/icon-trash.svg b/packages/boxel-ui/addon/raw-icons/icon-trash.svg index f2f321b5ab..bf7edcd0d5 100644 --- a/packages/boxel-ui/addon/raw-icons/icon-trash.svg +++ b/packages/boxel-ui/addon/raw-icons/icon-trash.svg @@ -1,5 +1,5 @@ - + diff --git a/packages/boxel-ui/addon/src/components/color-palette/index.gts b/packages/boxel-ui/addon/src/components/color-palette/index.gts index c3893e217f..e21cf9e0c1 100644 --- a/packages/boxel-ui/addon/src/components/color-palette/index.gts +++ b/packages/boxel-ui/addon/src/components/color-palette/index.gts @@ -5,6 +5,8 @@ import { htmlSafe } from '@ember/template'; import Component from '@glimmer/component'; import ColorPicker from '../color-picker/index.gts'; +import IconTrash from '../../icons/icon-trash.gts'; +import IconButton from '../icon-button/index.gts'; interface Signature { Args: { @@ -40,16 +42,31 @@ export default class ColorPalette extends Component {
-
- {{#each this.colors as |color|}} -
+ {{#if @color}} +
+ {{@color}} + +
+ {{/if}}