|
1 | 1 | import { userEvent } from "@storybook/test"; |
2 | 2 | import ExampleContainer from "../../.storybook/components/ExampleContainer"; |
3 | 3 | import Title from "../../.storybook/components/Title"; |
4 | | -import { HalstackProvider } from "../HalstackContext"; |
5 | 4 | import DxcChip from "./Chip"; |
6 | 5 | import { Meta, StoryObj } from "@storybook/react"; |
7 | 6 |
|
@@ -39,14 +38,6 @@ const smallIconSVG = ( |
39 | 38 | </svg> |
40 | 39 | ); |
41 | 40 |
|
42 | | -const opinionatedTheme = { |
43 | | - chip: { |
44 | | - baseColor: "#e6e6e6", |
45 | | - fontColor: "#000000", |
46 | | - iconColor: "#4d4d4d", |
47 | | - }, |
48 | | -}; |
49 | | - |
50 | 41 | const Chip = () => ( |
51 | 42 | <> |
52 | 43 | <ExampleContainer> |
@@ -132,43 +123,6 @@ const Chip = () => ( |
132 | 123 | <Title title="Xxlarge margin" theme="light" level={4} /> |
133 | 124 | <DxcChip label="xxlarge" margin="xxlarge" /> |
134 | 125 | </ExampleContainer> |
135 | | - <Title title="Opinionated theme" theme="light" level={2} /> |
136 | | - <ExampleContainer> |
137 | | - <Title title="Chip with prefix and suffix" theme="light" level={4} /> |
138 | | - <HalstackProvider theme={opinionatedTheme}> |
139 | | - <DxcChip label="Chip" prefixIcon={iconSVG} suffixIcon="filled_check_circle" /> |
140 | | - </HalstackProvider> |
141 | | - </ExampleContainer> |
142 | | - <ExampleContainer> |
143 | | - <Title title="Chip with prefix and suffix" theme="light" level={4} /> |
144 | | - <HalstackProvider theme={opinionatedTheme}> |
145 | | - <DxcChip label="Chip" disabled prefixIcon={iconSVG} suffixIcon="filled_check_circle" /> |
146 | | - </HalstackProvider> |
147 | | - </ExampleContainer> |
148 | | - <ExampleContainer pseudoState="pseudo-hover"> |
149 | | - <Title title="Hovered" theme="light" level={4} /> |
150 | | - <HalstackProvider theme={opinionatedTheme}> |
151 | | - <DxcChip |
152 | | - label="Chip" |
153 | | - prefixIcon={iconSVG} |
154 | | - suffixIcon={iconSVG} |
155 | | - onClickPrefix={() => {}} |
156 | | - onClickSuffix={() => {}} |
157 | | - /> |
158 | | - </HalstackProvider> |
159 | | - </ExampleContainer> |
160 | | - <ExampleContainer pseudoState="pseudo-active"> |
161 | | - <Title title="Actived" theme="light" level={4} /> |
162 | | - <HalstackProvider theme={opinionatedTheme}> |
163 | | - <DxcChip |
164 | | - label="Chip" |
165 | | - prefixIcon={iconSVG} |
166 | | - suffixIcon={iconSVG} |
167 | | - onClickPrefix={() => {}} |
168 | | - onClickSuffix={() => {}} |
169 | | - /> |
170 | | - </HalstackProvider> |
171 | | - </ExampleContainer> |
172 | 126 | </> |
173 | 127 | ); |
174 | 128 |
|
|
0 commit comments