From 661c2e1f9d14d58382cb0851b252f08bdd1a0a1d Mon Sep 17 00:00:00 2001 From: Ian Douglas Date: Mon, 22 Apr 2024 08:18:06 +0100 Subject: [PATCH] Reworked refs to warning and error icons --- CHANGELOG.md | 2 +- package.json | 2 +- src/components/dropdown/dropdown.tsx | 3 ++- src/components/multi-select/multi-select.tsx | 3 ++- src/components/text-input/text-input.tsx | 4 +++- 5 files changed, 9 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6a08e40..5778ff3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file. (The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).) -## [0.0.20](https://github.com/iancharlesdouglas/carbon-icons-qwik/releases/tag/0.0.20) - 2024-04-22 +## [0.0.21](https://github.com/iancharlesdouglas/carbon-icons-qwik/releases/tag/0.0.21) - 2024-04-22 |Added|Fixed|Changed|Removed| |-|-|-|-| |Embedded source components for certain Carbon icons|-|-|References to carbon-icons-qwik icons| diff --git a/package.json b/package.json index dbe861f..024bc31 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "carbon-components-qwik", - "version": "0.0.20", + "version": "0.0.21", "description": "Carbon Design System components implemented as Qwik components", "license": "Apache-2.0", "main": "./lib/index.qwik.mjs", diff --git a/src/components/dropdown/dropdown.tsx b/src/components/dropdown/dropdown.tsx index 0b8dc21..d9850e9 100644 --- a/src/components/dropdown/dropdown.tsx +++ b/src/components/dropdown/dropdown.tsx @@ -15,7 +15,6 @@ import { formContext } from '../../internal/contexts/form-context'; import classNames from 'classnames'; import { ListBox } from '../list-box/list-box'; import { ListBoxDimensions, ListBoxMenu } from '../list-box/list-box-menu'; -import { WarningAltFilled, WarningFilled } from 'carbon-icons-qwik'; import { ListBoxMenuIcon } from '../list-box/list-box-menu-icon'; import { ListBoxMenuItem } from '../list-box/list-box-menu-item'; import { ComboboxState, qombobox } from '../../internal/qombobox/qombobox'; @@ -25,6 +24,8 @@ import { removeProps } from '../../internal/objects/remove-props'; import { itemsEqual } from '../../internal/qombobox/items-equal'; import { itemDisabled } from '../../internal/qombobox/item-disabled'; import { Checkmark } from '../../internal/icons/checkmark'; +import { WarningFilled } from '../../internal/icons/warning--filled'; +import { WarningAltFilled } from '../../internal/icons/warning--alt--filled'; /** * Listbox item that has a label diff --git a/src/components/multi-select/multi-select.tsx b/src/components/multi-select/multi-select.tsx index 76bd788..7b4e278 100644 --- a/src/components/multi-select/multi-select.tsx +++ b/src/components/multi-select/multi-select.tsx @@ -14,7 +14,6 @@ import { formContext } from '../../internal/contexts/form-context'; import classNames from 'classnames'; import { ListBox } from '../list-box/list-box'; import { ListBoxDimensions, ListBoxMenu } from '../list-box/list-box-menu'; -import { WarningAltFilled, WarningFilled } from 'carbon-icons-qwik'; import { ListBoxMenuIcon } from '../list-box/list-box-menu-icon'; import { ComboboxState, qombobox } from '../../internal/qombobox/qombobox'; import { Keys, handleKeyDown } from '../../internal/qombobox/handle-keydown'; @@ -26,6 +25,8 @@ import { CompareItems, SortItems, SortOptions, defaultCompareItems$, defaultSort import { ListBoxSelection } from '../list-box/list-box-selection'; import { MultiSelectMenuItem } from './multi-select-menu-item'; import { toggleItemSelected$ } from './toggle-item-selected'; +import { WarningFilled } from '../../internal/icons/warning--filled'; +import { WarningAltFilled } from '../../internal/icons/warning--alt--filled'; /** * Multi-select, a select-only combobox with multiple selection via checkboxes diff --git a/src/components/text-input/text-input.tsx b/src/components/text-input/text-input.tsx index 568ca98..efe6bfb 100644 --- a/src/components/text-input/text-input.tsx +++ b/src/components/text-input/text-input.tsx @@ -13,9 +13,11 @@ import { usePrefix } from '../../internal/hooks/use-prefix'; import { useNormalizedInputProps } from '../../internal/hooks/use-normalized-input-props'; import classNames from 'classnames'; import { formContext } from '../../internal/contexts/form-context'; -import { IconProps, WarningAltFilled, WarningFilled } from 'carbon-icons-qwik'; +import { IconProps } from 'carbon-icons-qwik'; import { uniqueId } from '../../internal/unique/unique-id'; import { removeProps } from '../../internal/objects/remove-props'; +import { WarningFilled } from '../../internal/icons/warning--filled'; +import { WarningAltFilled } from '../../internal/icons/warning--alt--filled'; /** * Text input component size