@exem-ui/react 0.3.4-next.20261022010408 → 0.3.4-next.20261028080258

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/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
- import { overlayListVariants, commonInputVariants, textFieldVariants, ScrollArea, ConditionalTooltip } from './chunk-RXQE5QHI.mjs';
2
- export { ColorPalette, ColorPaletteColors, Combobox, ComboboxContent, ComboboxDescription, ComboboxEmpty, ComboboxInput, ComboboxItem, ComboboxLabel, ComboboxList, ComboboxSearch, ComboboxTrigger, ComboboxValue, DEFAULT_COLOR, ScrollArea, ScrollBar, Segment, Select, Tabs, Tooltip, colorPaletteColorClasses, getColorPaletteColor, isInPalette } from './chunk-RXQE5QHI.mjs';
3
- import { X, MoreHorizontal, iconSizes, Minus, Check, Person, Loading, Warning, Info, Error as Error$1, ChevronLeft, ChevronRight } from './chunk-HCGCMPIB.mjs';
1
+ import { overlayListVariants, commonInputVariants, textFieldVariants, ScrollArea, ConditionalTooltip } from './chunk-5BFEQZ62.mjs';
2
+ export { ColorPalette, ColorPaletteColors, Combobox, ComboboxContent, ComboboxDescription, ComboboxEmpty, ComboboxInput, ComboboxItem, ComboboxLabel, ComboboxList, ComboboxSearch, ComboboxTrigger, ComboboxValue, DEFAULT_COLOR, ScrollArea, ScrollBar, Segment, Select, Tabs, Tooltip, colorPaletteColorClasses, getColorPaletteColor, isInPalette } from './chunk-5BFEQZ62.mjs';
3
+ import { X, MoreHorizontal, iconSizes, Minus, Check, Person, Loading, Warning, Info, Error as Error$1, ChevronLeft, ChevronRight } from './chunk-MQYBZMNI.mjs';
4
4
  import { cva, cn } from '@exem-ui/core/utils';
5
5
  import * as React from 'react';
6
6
  import { forwardRef, Fragment, useId, createContext, useContext, useState, cloneElement } from 'react';
@@ -239,6 +239,10 @@ var tagVariants = cva(
239
239
  type: {
240
240
  fill: "",
241
241
  line: "bg-component-tag border border-border-secondary"
242
+ },
243
+ disabled: {
244
+ true: "text-text-disabled",
245
+ false: ""
242
246
  }
243
247
  },
244
248
  compoundVariants: [
@@ -259,7 +263,9 @@ var tagVariants = cva(
259
263
  { color: "indigo", type: "fill", className: "bg-tint-background-indigo" },
260
264
  { color: "purple", type: "fill", className: "bg-tint-background-purple" },
261
265
  { color: "fuchsia", type: "fill", className: "bg-tint-background-fuchsia" },
262
- { color: "rose", type: "fill", className: "bg-tint-background-rose" }
266
+ { color: "rose", type: "fill", className: "bg-tint-background-rose" },
267
+ { disabled: true, type: "fill", className: "bg-tint-background-mono" },
268
+ { disabled: true, type: "line", className: "border-border-disabled" }
263
269
  ],
264
270
  defaultVariants: {
265
271
  color: "mono",
@@ -276,6 +282,7 @@ var Tag = forwardRef(
276
282
  canDelete,
277
283
  onDelete,
278
284
  rightSlot,
285
+ disabled = false,
279
286
  children,
280
287
  ...props
281
288
  }, ref) => {
@@ -283,16 +290,27 @@ var Tag = forwardRef(
283
290
  "div",
284
291
  {
285
292
  "data-slot": "tag",
286
- className: cn(tagVariants({ color, type, className })),
293
+ className: cn(tagVariants({ color, type, disabled, className })),
287
294
  ref,
288
295
  ...props,
289
296
  children: [
290
- leftIcon && /* @__PURE__ */ jsx("span", { className: "flex shrink-0 size-3 items-center justify-center [&>svg]:size-3", children: leftIcon }),
297
+ leftIcon && /* @__PURE__ */ jsx(
298
+ "span",
299
+ {
300
+ className: cn(
301
+ "flex shrink-0 size-3 items-center justify-center [&>svg]:size-3",
302
+ disabled && "text-icon-disabled"
303
+ ),
304
+ children: leftIcon
305
+ }
306
+ ),
291
307
  /* @__PURE__ */ jsx("span", { className: "px-0.5 text-body-3 font-medium", children }),
292
308
  canDelete && /* @__PURE__ */ jsx(
293
309
  "button",
294
310
  {
295
311
  type: "button",
312
+ disabled,
313
+ className: cn(disabled && "text-icon-disabled"),
296
314
  onClick: (e) => {
297
315
  e.stopPropagation();
298
316
  onDelete?.();
@@ -308,19 +326,37 @@ var Tag = forwardRef(
308
326
  );
309
327
  Tag.displayName = "Tag";
310
328
  var DoubleTag = forwardRef(
311
- ({ className, items, ...props }, ref) => {
329
+ ({ className, items, disabled = false, ...props }, ref) => {
312
330
  return /* @__PURE__ */ jsx(
313
331
  "div",
314
332
  {
315
333
  className: cn(
316
334
  "flex w-fit overflow-hidden rounded-medium border border-border-secondary",
335
+ disabled && "border-border-disabled",
317
336
  className
318
337
  ),
319
338
  ref,
320
339
  ...props,
321
340
  children: items.map((item, index) => /* @__PURE__ */ jsxs(Fragment, { children: [
322
- /* @__PURE__ */ jsx(Tag, { color: item.color, type: "line", className: "rounded-none border-none", children: item.content }),
323
- index < items.length - 1 && /* @__PURE__ */ jsx("div", { className: "min-h-[20px] w-px border-none bg-border-secondary" })
341
+ /* @__PURE__ */ jsx(
342
+ Tag,
343
+ {
344
+ color: item.color,
345
+ type: "line",
346
+ disabled,
347
+ className: "rounded-none border-none",
348
+ children: item.content
349
+ }
350
+ ),
351
+ index < items.length - 1 && /* @__PURE__ */ jsx(
352
+ "div",
353
+ {
354
+ className: cn(
355
+ "min-h-[20px] w-px border-none bg-border-secondary",
356
+ disabled && "bg-border-disabled"
357
+ )
358
+ }
359
+ )
324
360
  ] }, index))
325
361
  }
326
362
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exem-ui/react",
3
- "version": "0.3.4-next.20261022010408",
3
+ "version": "0.3.4-next.20261028080258",
4
4
  "description": "Exem Design System - React Components",
5
5
  "author": "Exem Design Team",
6
6
  "license": "Apache-2.0",
@@ -98,7 +98,7 @@
98
98
  "tailwind-merge": "^3.3.1",
99
99
  "tailwind-scrollbar-hide": "^4.0.0",
100
100
  "tiny-invariant": "^1.3.3",
101
- "@exem-ui/core": "0.3.3-next.20261022010408"
101
+ "@exem-ui/core": "0.3.3-next.20261028080258"
102
102
  },
103
103
  "devDependencies": {
104
104
  "@eslint/js": "^9.15.0",
@@ -134,7 +134,7 @@
134
134
  "tsup": "^8.5.0",
135
135
  "typescript": "^5.8.2",
136
136
  "typescript-eslint": "^8.16.0",
137
- "@exem-ui/tailwindcss3": "0.3.2-next.20261022010408"
137
+ "@exem-ui/tailwindcss3": "0.3.2-next.20261028080258"
138
138
  },
139
139
  "scripts": {
140
140
  "generate": "node scripts/generate-icons.js",