@dt-dds/react-tag 1.0.0-beta.60 → 1.0.0-beta.61

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @dt-ui/react-tag
2
2
 
3
+ ## 1.0.0-beta.61
4
+
5
+ ### Patch Changes
6
+
7
+ - refactor: remove custom icons
8
+ - Updated dependencies
9
+ - @dt-dds/react-tooltip@1.0.0-beta.67
10
+
3
11
  ## 1.0.0-beta.60
4
12
 
5
13
  ### Patch Changes
package/dist/index.js CHANGED
@@ -52,7 +52,8 @@ __export(index_exports, {
52
52
  module.exports = __toCommonJS(index_exports);
53
53
 
54
54
  // src/Tag.tsx
55
- var import_react3 = require("react");
55
+ var import_react = require("react");
56
+ var import_react_icon = require("@dt-dds/react-icon");
56
57
  var import_react_tooltip = require("@dt-dds/react-tooltip");
57
58
 
58
59
  // src/Tag.styled.ts
@@ -177,203 +178,9 @@ var TagButtonCloseStyled = import_styled.default.button`
177
178
  })}
178
179
  `;
179
180
 
180
- // ../../dt-dds-react/core/assets/svgs/AllOut.tsx
181
- var import_jsx_runtime = require("react/jsx-runtime");
182
-
183
- // ../../dt-dds-react/core/assets/svgs/Apis.tsx
184
- var import_jsx_runtime2 = require("react/jsx-runtime");
185
-
186
- // ../../dt-dds-react/core/assets/svgs/Apps.tsx
187
- var import_jsx_runtime3 = require("react/jsx-runtime");
188
-
189
- // ../../dt-dds-react/core/assets/svgs/ArrowDropDown.tsx
190
- var import_jsx_runtime4 = require("react/jsx-runtime");
191
-
192
- // ../../dt-dds-react/core/assets/svgs/ArrowDropUp.tsx
193
- var import_jsx_runtime5 = require("react/jsx-runtime");
194
-
195
- // ../../dt-dds-react/core/assets/svgs/ArrowLeft.tsx
196
- var import_jsx_runtime6 = require("react/jsx-runtime");
197
-
198
- // ../../dt-dds-react/core/assets/svgs/ArrowRight.tsx
199
- var import_jsx_runtime7 = require("react/jsx-runtime");
200
-
201
- // ../../dt-dds-react/core/assets/svgs/AvatarThumbnail.tsx
202
- var import_jsx_runtime8 = require("react/jsx-runtime");
203
-
204
- // ../../dt-dds-react/core/assets/svgs/Bolt.tsx
205
- var import_jsx_runtime9 = require("react/jsx-runtime");
206
-
207
- // ../../dt-dds-react/core/assets/svgs/CalendarMonth.tsx
208
- var import_jsx_runtime10 = require("react/jsx-runtime");
209
-
210
- // ../../dt-dds-react/core/assets/svgs/Cancel.tsx
211
- var import_jsx_runtime11 = require("react/jsx-runtime");
212
-
213
- // ../../dt-dds-react/core/assets/svgs/Check.tsx
214
- var import_jsx_runtime12 = require("react/jsx-runtime");
215
-
216
- // ../../dt-dds-react/core/assets/svgs/CheckCircle.tsx
217
- var import_jsx_runtime13 = require("react/jsx-runtime");
218
-
219
- // ../../dt-dds-react/core/assets/svgs/CheckCircleOutline.tsx
220
- var import_jsx_runtime14 = require("react/jsx-runtime");
221
-
222
- // ../../dt-dds-react/core/assets/svgs/Close.tsx
223
- var import_jsx_runtime15 = require("react/jsx-runtime");
224
- var CloseIcon = (props) => {
225
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
226
- "svg",
227
- __spreadProps(__spreadValues({
228
- fill: "none",
229
- height: "24",
230
- viewBox: "0 0 24 24",
231
- width: "24",
232
- xmlns: "http://www.w3.org/2000/svg"
233
- }, props), {
234
- children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
235
- "path",
236
- {
237
- d: "M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12L19 6.41Z",
238
- fill: "currentColor"
239
- }
240
- )
241
- })
242
- );
243
- };
244
- var Close_default = CloseIcon;
245
-
246
- // ../../dt-dds-react/core/assets/svgs/Copy.tsx
247
- var import_jsx_runtime16 = require("react/jsx-runtime");
248
-
249
- // ../../dt-dds-react/core/assets/svgs/Delete.tsx
250
- var import_jsx_runtime17 = require("react/jsx-runtime");
251
-
252
- // ../../dt-dds-react/core/assets/svgs/Edit.tsx
253
- var import_jsx_runtime18 = require("react/jsx-runtime");
254
-
255
- // ../../dt-dds-react/core/assets/svgs/Email.tsx
256
- var import_jsx_runtime19 = require("react/jsx-runtime");
257
-
258
- // ../../dt-dds-react/core/assets/svgs/EmailSend.tsx
259
- var import_jsx_runtime20 = require("react/jsx-runtime");
260
-
261
- // ../../dt-dds-react/core/assets/svgs/Error.tsx
262
- var import_react = require("@emotion/react");
263
- var import_jsx_runtime21 = require("react/jsx-runtime");
264
-
265
- // ../../dt-dds-react/core/assets/svgs/ErrorOutline.tsx
266
- var import_jsx_runtime22 = require("react/jsx-runtime");
267
-
268
- // ../../dt-dds-react/core/assets/svgs/EVStation.tsx
269
- var import_jsx_runtime23 = require("react/jsx-runtime");
270
-
271
- // ../../dt-dds-react/core/assets/svgs/Info.tsx
272
- var import_jsx_runtime24 = require("react/jsx-runtime");
273
-
274
- // ../../dt-dds-react/core/assets/svgs/InfoOutline.tsx
275
- var import_jsx_runtime25 = require("react/jsx-runtime");
276
-
277
- // ../../dt-dds-react/core/assets/svgs/Input.tsx
278
- var import_jsx_runtime26 = require("react/jsx-runtime");
279
-
280
- // ../../dt-dds-react/core/assets/svgs/Language.tsx
281
- var import_jsx_runtime27 = require("react/jsx-runtime");
282
-
283
- // ../../dt-dds-react/core/assets/svgs/LocationOn.tsx
284
- var import_jsx_runtime28 = require("react/jsx-runtime");
285
-
286
- // ../../dt-dds-react/core/assets/svgs/LocationSearching.tsx
287
- var import_jsx_runtime29 = require("react/jsx-runtime");
288
-
289
- // ../../dt-dds-react/core/assets/svgs/MenuCompact.tsx
290
- var import_jsx_runtime30 = require("react/jsx-runtime");
291
-
292
- // ../../dt-dds-react/core/assets/svgs/MenuExpand.tsx
293
- var import_jsx_runtime31 = require("react/jsx-runtime");
294
-
295
- // ../../dt-dds-react/core/assets/svgs/Menu.tsx
296
- var import_jsx_runtime32 = require("react/jsx-runtime");
297
-
298
- // ../../dt-dds-react/core/assets/svgs/MoreHorizontal.tsx
299
- var import_jsx_runtime33 = require("react/jsx-runtime");
300
-
301
- // ../../dt-dds-react/core/assets/svgs/MoreVertical.tsx
302
- var import_jsx_runtime34 = require("react/jsx-runtime");
303
-
304
- // ../../dt-dds-react/core/assets/svgs/NoData.tsx
305
- var import_react2 = require("@emotion/react");
306
- var import_jsx_runtime35 = require("react/jsx-runtime");
307
-
308
- // ../../dt-dds-react/core/assets/svgs/NotFound.tsx
309
- var import_jsx_runtime36 = require("react/jsx-runtime");
310
-
311
- // ../../dt-dds-react/core/assets/svgs/OutlinedArrowDropDown.tsx
312
- var import_jsx_runtime37 = require("react/jsx-runtime");
313
-
314
- // ../../dt-dds-react/core/assets/svgs/OutlinedArrowDropUp.tsx
315
- var import_jsx_runtime38 = require("react/jsx-runtime");
316
-
317
- // ../../dt-dds-react/core/assets/svgs/PhoneOutlined.tsx
318
- var import_jsx_runtime39 = require("react/jsx-runtime");
319
-
320
- // ../../dt-dds-react/core/assets/svgs/Payments.tsx
321
- var import_jsx_runtime40 = require("react/jsx-runtime");
322
-
323
- // ../../dt-dds-react/core/assets/svgs/Products.tsx
324
- var import_jsx_runtime41 = require("react/jsx-runtime");
325
-
326
- // ../../dt-dds-react/core/assets/svgs/RemoveCircleOutline.tsx
327
- var import_jsx_runtime42 = require("react/jsx-runtime");
328
-
329
- // ../../dt-dds-react/core/assets/svgs/Share.tsx
330
- var import_jsx_runtime43 = require("react/jsx-runtime");
331
-
332
- // ../../dt-dds-react/core/assets/svgs/Signout.tsx
333
- var import_jsx_runtime44 = require("react/jsx-runtime");
334
-
335
- // ../../dt-dds-react/core/assets/svgs/Teams.tsx
336
- var import_jsx_runtime45 = require("react/jsx-runtime");
337
-
338
- // ../../dt-dds-react/core/assets/svgs/Timeline.tsx
339
- var import_jsx_runtime46 = require("react/jsx-runtime");
340
-
341
- // ../../dt-dds-react/core/assets/svgs/Topic.tsx
342
- var import_jsx_runtime47 = require("react/jsx-runtime");
343
-
344
- // ../../dt-dds-react/core/assets/svgs/UnfoldLess.tsx
345
- var import_jsx_runtime48 = require("react/jsx-runtime");
346
-
347
- // ../../dt-dds-react/core/assets/svgs/UnfoldMore.tsx
348
- var import_jsx_runtime49 = require("react/jsx-runtime");
349
-
350
- // ../../dt-dds-react/core/assets/svgs/Username.tsx
351
- var import_jsx_runtime50 = require("react/jsx-runtime");
352
-
353
- // ../../dt-dds-react/core/assets/svgs/ViewAgenda.tsx
354
- var import_jsx_runtime51 = require("react/jsx-runtime");
355
-
356
- // ../../dt-dds-react/core/assets/svgs/Visibility.tsx
357
- var import_jsx_runtime52 = require("react/jsx-runtime");
358
-
359
- // ../../dt-dds-react/core/assets/svgs/VisibilityOff.tsx
360
- var import_jsx_runtime53 = require("react/jsx-runtime");
361
-
362
- // ../../dt-dds-react/core/assets/svgs/WarningOutline.tsx
363
- var import_jsx_runtime54 = require("react/jsx-runtime");
364
-
365
- // ../../dt-dds-react/core/assets/svgs/Warning.tsx
366
- var import_jsx_runtime55 = require("react/jsx-runtime");
367
-
368
- // ../../dt-dds-react/core/assets/svgs/Wifi.tsx
369
- var import_jsx_runtime56 = require("react/jsx-runtime");
370
-
371
- // ../../dt-dds-react/core/assets/svgs/Settings.tsx
372
- var import_jsx_runtime57 = require("react/jsx-runtime");
373
-
374
181
  // src/Tag.tsx
375
- var import_jsx_runtime58 = require("react/jsx-runtime");
376
- var Tag = (0, import_react3.forwardRef)(
182
+ var import_jsx_runtime = require("react/jsx-runtime");
183
+ var Tag = (0, import_react.forwardRef)(
377
184
  ({
378
185
  style,
379
186
  children,
@@ -398,8 +205,8 @@ var Tag = (0, import_react3.forwardRef)(
398
205
  }
399
206
  onClick == null ? void 0 : onClick(event);
400
207
  };
401
- const cellRef = (0, import_react3.useRef)(null);
402
- const [isOverflow, setIsOverflow] = (0, import_react3.useState)(false);
208
+ const cellRef = (0, import_react.useRef)(null);
209
+ const [isOverflow, setIsOverflow] = (0, import_react.useState)(false);
403
210
  const handleClickOnEnterKey = (event) => {
404
211
  if (event.code === "Enter") {
405
212
  handleClickTag(event);
@@ -410,14 +217,14 @@ var Tag = (0, import_react3.forwardRef)(
410
217
  onClose == null ? void 0 : onClose(event);
411
218
  }
412
219
  };
413
- (0, import_react3.useEffect)(() => {
220
+ (0, import_react.useEffect)(() => {
414
221
  if (cellRef.current) {
415
222
  const { current } = cellRef;
416
223
  setIsOverflow(current.scrollWidth > current.clientWidth);
417
224
  }
418
225
  }, [children]);
419
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_react_tooltip.Tooltip, { children: [
420
- /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
226
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react_tooltip.Tooltip, { children: [
227
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
421
228
  TagStyled,
422
229
  __spreadProps(__spreadValues(__spreadProps(__spreadValues({
423
230
  "aria-disabled": isDisabled,
@@ -436,8 +243,8 @@ var Tag = (0, import_react3.forwardRef)(
436
243
  }), isClickable && { tabIndex: 0 }), {
437
244
  variant,
438
245
  children: [
439
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { ref: cellRef, children }),
440
- isDismissible ? /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
246
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { ref: cellRef, children }),
247
+ isDismissible ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
441
248
  TagButtonCloseStyled,
442
249
  {
443
250
  "aria-disabled": isDisabled,
@@ -447,13 +254,13 @@ var Tag = (0, import_react3.forwardRef)(
447
254
  onClick: onClose,
448
255
  onKeyDown: handleCloseOnEnterKey,
449
256
  tabIndex: 0,
450
- children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Close_default, { height: 12, width: 12 })
257
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_icon.Icon, { code: "close", size: "extra-small" })
451
258
  }
452
259
  ) : null
453
260
  ]
454
261
  })
455
262
  ),
456
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_react_tooltip.Tooltip.Content, { background: tooltipVariant, children: isOverflow ? children : "" })
263
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_tooltip.Tooltip.Content, { background: tooltipVariant, children: isOverflow ? children : "" })
457
264
  ] });
458
265
  }
459
266
  );
package/dist/index.mjs CHANGED
@@ -20,6 +20,7 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
20
 
21
21
  // src/Tag.tsx
22
22
  import { forwardRef, useEffect, useRef, useState } from "react";
23
+ import { Icon } from "@dt-dds/react-icon";
23
24
  import { Tooltip } from "@dt-dds/react-tooltip";
24
25
 
25
26
  // src/Tag.styled.ts
@@ -144,202 +145,8 @@ var TagButtonCloseStyled = styled.button`
144
145
  })}
145
146
  `;
146
147
 
147
- // ../../dt-dds-react/core/assets/svgs/AllOut.tsx
148
- import { jsx, jsxs } from "react/jsx-runtime";
149
-
150
- // ../../dt-dds-react/core/assets/svgs/Apis.tsx
151
- import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
152
-
153
- // ../../dt-dds-react/core/assets/svgs/Apps.tsx
154
- import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
155
-
156
- // ../../dt-dds-react/core/assets/svgs/ArrowDropDown.tsx
157
- import { jsx as jsx4 } from "react/jsx-runtime";
158
-
159
- // ../../dt-dds-react/core/assets/svgs/ArrowDropUp.tsx
160
- import { jsx as jsx5 } from "react/jsx-runtime";
161
-
162
- // ../../dt-dds-react/core/assets/svgs/ArrowLeft.tsx
163
- import { jsx as jsx6 } from "react/jsx-runtime";
164
-
165
- // ../../dt-dds-react/core/assets/svgs/ArrowRight.tsx
166
- import { jsx as jsx7 } from "react/jsx-runtime";
167
-
168
- // ../../dt-dds-react/core/assets/svgs/AvatarThumbnail.tsx
169
- import { jsx as jsx8, jsxs as jsxs4 } from "react/jsx-runtime";
170
-
171
- // ../../dt-dds-react/core/assets/svgs/Bolt.tsx
172
- import { jsx as jsx9 } from "react/jsx-runtime";
173
-
174
- // ../../dt-dds-react/core/assets/svgs/CalendarMonth.tsx
175
- import { jsx as jsx10 } from "react/jsx-runtime";
176
-
177
- // ../../dt-dds-react/core/assets/svgs/Cancel.tsx
178
- import { jsx as jsx11, jsxs as jsxs5 } from "react/jsx-runtime";
179
-
180
- // ../../dt-dds-react/core/assets/svgs/Check.tsx
181
- import { jsx as jsx12 } from "react/jsx-runtime";
182
-
183
- // ../../dt-dds-react/core/assets/svgs/CheckCircle.tsx
184
- import { jsx as jsx13 } from "react/jsx-runtime";
185
-
186
- // ../../dt-dds-react/core/assets/svgs/CheckCircleOutline.tsx
187
- import { jsx as jsx14 } from "react/jsx-runtime";
188
-
189
- // ../../dt-dds-react/core/assets/svgs/Close.tsx
190
- import { jsx as jsx15 } from "react/jsx-runtime";
191
- var CloseIcon = (props) => {
192
- return /* @__PURE__ */ jsx15(
193
- "svg",
194
- __spreadProps(__spreadValues({
195
- fill: "none",
196
- height: "24",
197
- viewBox: "0 0 24 24",
198
- width: "24",
199
- xmlns: "http://www.w3.org/2000/svg"
200
- }, props), {
201
- children: /* @__PURE__ */ jsx15(
202
- "path",
203
- {
204
- d: "M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12L19 6.41Z",
205
- fill: "currentColor"
206
- }
207
- )
208
- })
209
- );
210
- };
211
- var Close_default = CloseIcon;
212
-
213
- // ../../dt-dds-react/core/assets/svgs/Copy.tsx
214
- import { jsx as jsx16, jsxs as jsxs6 } from "react/jsx-runtime";
215
-
216
- // ../../dt-dds-react/core/assets/svgs/Delete.tsx
217
- import { jsx as jsx17, jsxs as jsxs7 } from "react/jsx-runtime";
218
-
219
- // ../../dt-dds-react/core/assets/svgs/Edit.tsx
220
- import { jsx as jsx18, jsxs as jsxs8 } from "react/jsx-runtime";
221
-
222
- // ../../dt-dds-react/core/assets/svgs/Email.tsx
223
- import { jsx as jsx19, jsxs as jsxs9 } from "react/jsx-runtime";
224
-
225
- // ../../dt-dds-react/core/assets/svgs/EmailSend.tsx
226
- import { jsx as jsx20, jsxs as jsxs10 } from "react/jsx-runtime";
227
-
228
- // ../../dt-dds-react/core/assets/svgs/Error.tsx
229
- import { useTheme } from "@emotion/react";
230
- import { jsx as jsx21, jsxs as jsxs11 } from "react/jsx-runtime";
231
-
232
- // ../../dt-dds-react/core/assets/svgs/ErrorOutline.tsx
233
- import { jsx as jsx22 } from "react/jsx-runtime";
234
-
235
- // ../../dt-dds-react/core/assets/svgs/EVStation.tsx
236
- import { jsx as jsx23 } from "react/jsx-runtime";
237
-
238
- // ../../dt-dds-react/core/assets/svgs/Info.tsx
239
- import { jsx as jsx24 } from "react/jsx-runtime";
240
-
241
- // ../../dt-dds-react/core/assets/svgs/InfoOutline.tsx
242
- import { jsx as jsx25 } from "react/jsx-runtime";
243
-
244
- // ../../dt-dds-react/core/assets/svgs/Input.tsx
245
- import { jsx as jsx26, jsxs as jsxs12 } from "react/jsx-runtime";
246
-
247
- // ../../dt-dds-react/core/assets/svgs/Language.tsx
248
- import { jsx as jsx27 } from "react/jsx-runtime";
249
-
250
- // ../../dt-dds-react/core/assets/svgs/LocationOn.tsx
251
- import { jsx as jsx28, jsxs as jsxs13 } from "react/jsx-runtime";
252
-
253
- // ../../dt-dds-react/core/assets/svgs/LocationSearching.tsx
254
- import { jsx as jsx29 } from "react/jsx-runtime";
255
-
256
- // ../../dt-dds-react/core/assets/svgs/MenuCompact.tsx
257
- import { jsx as jsx30 } from "react/jsx-runtime";
258
-
259
- // ../../dt-dds-react/core/assets/svgs/MenuExpand.tsx
260
- import { jsx as jsx31 } from "react/jsx-runtime";
261
-
262
- // ../../dt-dds-react/core/assets/svgs/Menu.tsx
263
- import { jsx as jsx32 } from "react/jsx-runtime";
264
-
265
- // ../../dt-dds-react/core/assets/svgs/MoreHorizontal.tsx
266
- import { jsx as jsx33 } from "react/jsx-runtime";
267
-
268
- // ../../dt-dds-react/core/assets/svgs/MoreVertical.tsx
269
- import { jsx as jsx34 } from "react/jsx-runtime";
270
-
271
- // ../../dt-dds-react/core/assets/svgs/NoData.tsx
272
- import { useTheme as useTheme2 } from "@emotion/react";
273
- import { jsx as jsx35, jsxs as jsxs14 } from "react/jsx-runtime";
274
-
275
- // ../../dt-dds-react/core/assets/svgs/NotFound.tsx
276
- import { jsx as jsx36, jsxs as jsxs15 } from "react/jsx-runtime";
277
-
278
- // ../../dt-dds-react/core/assets/svgs/OutlinedArrowDropDown.tsx
279
- import { jsx as jsx37 } from "react/jsx-runtime";
280
-
281
- // ../../dt-dds-react/core/assets/svgs/OutlinedArrowDropUp.tsx
282
- import { jsx as jsx38 } from "react/jsx-runtime";
283
-
284
- // ../../dt-dds-react/core/assets/svgs/PhoneOutlined.tsx
285
- import { jsx as jsx39 } from "react/jsx-runtime";
286
-
287
- // ../../dt-dds-react/core/assets/svgs/Payments.tsx
288
- import { jsx as jsx40 } from "react/jsx-runtime";
289
-
290
- // ../../dt-dds-react/core/assets/svgs/Products.tsx
291
- import { jsx as jsx41, jsxs as jsxs16 } from "react/jsx-runtime";
292
-
293
- // ../../dt-dds-react/core/assets/svgs/RemoveCircleOutline.tsx
294
- import { jsx as jsx42 } from "react/jsx-runtime";
295
-
296
- // ../../dt-dds-react/core/assets/svgs/Share.tsx
297
- import { jsx as jsx43, jsxs as jsxs17 } from "react/jsx-runtime";
298
-
299
- // ../../dt-dds-react/core/assets/svgs/Signout.tsx
300
- import { jsx as jsx44 } from "react/jsx-runtime";
301
-
302
- // ../../dt-dds-react/core/assets/svgs/Teams.tsx
303
- import { jsx as jsx45, jsxs as jsxs18 } from "react/jsx-runtime";
304
-
305
- // ../../dt-dds-react/core/assets/svgs/Timeline.tsx
306
- import { jsx as jsx46, jsxs as jsxs19 } from "react/jsx-runtime";
307
-
308
- // ../../dt-dds-react/core/assets/svgs/Topic.tsx
309
- import { jsx as jsx47, jsxs as jsxs20 } from "react/jsx-runtime";
310
-
311
- // ../../dt-dds-react/core/assets/svgs/UnfoldLess.tsx
312
- import { jsx as jsx48 } from "react/jsx-runtime";
313
-
314
- // ../../dt-dds-react/core/assets/svgs/UnfoldMore.tsx
315
- import { jsx as jsx49 } from "react/jsx-runtime";
316
-
317
- // ../../dt-dds-react/core/assets/svgs/Username.tsx
318
- import { jsx as jsx50, jsxs as jsxs21 } from "react/jsx-runtime";
319
-
320
- // ../../dt-dds-react/core/assets/svgs/ViewAgenda.tsx
321
- import { jsx as jsx51, jsxs as jsxs22 } from "react/jsx-runtime";
322
-
323
- // ../../dt-dds-react/core/assets/svgs/Visibility.tsx
324
- import { jsx as jsx52, jsxs as jsxs23 } from "react/jsx-runtime";
325
-
326
- // ../../dt-dds-react/core/assets/svgs/VisibilityOff.tsx
327
- import { jsx as jsx53, jsxs as jsxs24 } from "react/jsx-runtime";
328
-
329
- // ../../dt-dds-react/core/assets/svgs/WarningOutline.tsx
330
- import { jsx as jsx54 } from "react/jsx-runtime";
331
-
332
- // ../../dt-dds-react/core/assets/svgs/Warning.tsx
333
- import { jsx as jsx55 } from "react/jsx-runtime";
334
-
335
- // ../../dt-dds-react/core/assets/svgs/Wifi.tsx
336
- import { jsx as jsx56 } from "react/jsx-runtime";
337
-
338
- // ../../dt-dds-react/core/assets/svgs/Settings.tsx
339
- import { jsx as jsx57 } from "react/jsx-runtime";
340
-
341
148
  // src/Tag.tsx
342
- import { jsx as jsx58, jsxs as jsxs25 } from "react/jsx-runtime";
149
+ import { jsx, jsxs } from "react/jsx-runtime";
343
150
  var Tag = forwardRef(
344
151
  ({
345
152
  style,
@@ -383,8 +190,8 @@ var Tag = forwardRef(
383
190
  setIsOverflow(current.scrollWidth > current.clientWidth);
384
191
  }
385
192
  }, [children]);
386
- return /* @__PURE__ */ jsxs25(Tooltip, { children: [
387
- /* @__PURE__ */ jsxs25(
193
+ return /* @__PURE__ */ jsxs(Tooltip, { children: [
194
+ /* @__PURE__ */ jsxs(
388
195
  TagStyled,
389
196
  __spreadProps(__spreadValues(__spreadProps(__spreadValues({
390
197
  "aria-disabled": isDisabled,
@@ -403,8 +210,8 @@ var Tag = forwardRef(
403
210
  }), isClickable && { tabIndex: 0 }), {
404
211
  variant,
405
212
  children: [
406
- /* @__PURE__ */ jsx58("span", { ref: cellRef, children }),
407
- isDismissible ? /* @__PURE__ */ jsx58(
213
+ /* @__PURE__ */ jsx("span", { ref: cellRef, children }),
214
+ isDismissible ? /* @__PURE__ */ jsx(
408
215
  TagButtonCloseStyled,
409
216
  {
410
217
  "aria-disabled": isDisabled,
@@ -414,13 +221,13 @@ var Tag = forwardRef(
414
221
  onClick: onClose,
415
222
  onKeyDown: handleCloseOnEnterKey,
416
223
  tabIndex: 0,
417
- children: /* @__PURE__ */ jsx58(Close_default, { height: 12, width: 12 })
224
+ children: /* @__PURE__ */ jsx(Icon, { code: "close", size: "extra-small" })
418
225
  }
419
226
  ) : null
420
227
  ]
421
228
  })
422
229
  ),
423
- /* @__PURE__ */ jsx58(Tooltip.Content, { background: tooltipVariant, children: isOverflow ? children : "" })
230
+ /* @__PURE__ */ jsx(Tooltip.Content, { background: tooltipVariant, children: isOverflow ? children : "" })
424
231
  ] });
425
232
  }
426
233
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dt-dds/react-tag",
3
- "version": "1.0.0-beta.60",
3
+ "version": "1.0.0-beta.61",
4
4
  "license": "MIT",
5
5
  "exports": {
6
6
  ".": "./dist/index.js"
@@ -21,7 +21,8 @@
21
21
  },
22
22
  "dependencies": {
23
23
  "@dt-dds/react-core": "1.0.0-beta.57",
24
- "@dt-dds/react-tooltip": "1.0.0-beta.66",
24
+ "@dt-dds/react-tooltip": "1.0.0-beta.67",
25
+ "@dt-dds/react-icon": "1.0.0-beta.60",
25
26
  "@dt-dds/themes": "1.0.0-beta.12"
26
27
  },
27
28
  "devDependencies": {