design-zystem 1.0.371 → 1.0.373
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/ui/index.d.mts +5 -1
- package/dist/ui/index.d.ts +5 -1
- package/dist/ui/index.js +65 -2
- package/dist/ui/index.mjs +65 -2
- package/package.json +1 -1
package/dist/ui/index.d.mts
CHANGED
|
@@ -1135,13 +1135,17 @@ interface TagBubbleProps {
|
|
|
1135
1135
|
active?: boolean;
|
|
1136
1136
|
activeColor?: ColorToken;
|
|
1137
1137
|
inactiveColor?: ColorToken;
|
|
1138
|
+
/** Actif : bordure épaisse + texte `activeColor`, fond en variante claire (ex. `blue_950` → `bg-blue-50`). */
|
|
1139
|
+
activeFill?: boolean;
|
|
1140
|
+
/** Forme pilule (`rounded-full`) à la place du rectangle arrondi par défaut. */
|
|
1141
|
+
pill?: boolean;
|
|
1138
1142
|
count?: number | string | null;
|
|
1139
1143
|
countColor?: ColorToken;
|
|
1140
1144
|
onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
1141
1145
|
className?: string;
|
|
1142
1146
|
}
|
|
1143
1147
|
/** Construit sur `@radix-ui/react-toggle` (comme le `Toggle` de shadcn) — chip filtre à deux états, pressable au clavier. */
|
|
1144
|
-
declare const TagBubble: ({ label, hideDot, active, activeColor, inactiveColor, count, countColor, onClick, className, }: TagBubbleProps) => react.JSX.Element;
|
|
1148
|
+
declare const TagBubble: ({ label, hideDot, active, activeColor, inactiveColor, activeFill, pill, count, countColor, onClick, className, }: TagBubbleProps) => react.JSX.Element;
|
|
1145
1149
|
|
|
1146
1150
|
interface GanttDay {
|
|
1147
1151
|
key: string | number;
|
package/dist/ui/index.d.ts
CHANGED
|
@@ -1135,13 +1135,17 @@ interface TagBubbleProps {
|
|
|
1135
1135
|
active?: boolean;
|
|
1136
1136
|
activeColor?: ColorToken;
|
|
1137
1137
|
inactiveColor?: ColorToken;
|
|
1138
|
+
/** Actif : bordure épaisse + texte `activeColor`, fond en variante claire (ex. `blue_950` → `bg-blue-50`). */
|
|
1139
|
+
activeFill?: boolean;
|
|
1140
|
+
/** Forme pilule (`rounded-full`) à la place du rectangle arrondi par défaut. */
|
|
1141
|
+
pill?: boolean;
|
|
1138
1142
|
count?: number | string | null;
|
|
1139
1143
|
countColor?: ColorToken;
|
|
1140
1144
|
onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
1141
1145
|
className?: string;
|
|
1142
1146
|
}
|
|
1143
1147
|
/** Construit sur `@radix-ui/react-toggle` (comme le `Toggle` de shadcn) — chip filtre à deux états, pressable au clavier. */
|
|
1144
|
-
declare const TagBubble: ({ label, hideDot, active, activeColor, inactiveColor, count, countColor, onClick, className, }: TagBubbleProps) => react.JSX.Element;
|
|
1148
|
+
declare const TagBubble: ({ label, hideDot, active, activeColor, inactiveColor, activeFill, pill, count, countColor, onClick, className, }: TagBubbleProps) => react.JSX.Element;
|
|
1145
1149
|
|
|
1146
1150
|
interface GanttDay {
|
|
1147
1151
|
key: string | number;
|
package/dist/ui/index.js
CHANGED
|
@@ -5209,18 +5209,66 @@ var DOT_CLASS = {
|
|
|
5209
5209
|
"orange-600": "bg-orange-600",
|
|
5210
5210
|
"purple-700": "bg-purple-700"
|
|
5211
5211
|
};
|
|
5212
|
+
var LIGHT_BG_CLASS = {
|
|
5213
|
+
"blue-700": "bg-blue-50",
|
|
5214
|
+
"blue-900": "bg-blue-50",
|
|
5215
|
+
"blue-950": "bg-blue-50",
|
|
5216
|
+
"red-900": "bg-red-50",
|
|
5217
|
+
"red-500": "bg-red-50",
|
|
5218
|
+
"green-700": "bg-green-50",
|
|
5219
|
+
"green-100": "bg-green-50",
|
|
5220
|
+
"grey-600": "bg-grey-100",
|
|
5221
|
+
"yellow-500": "bg-yellow-50",
|
|
5222
|
+
"yellow-300": "bg-yellow-50",
|
|
5223
|
+
"yellow-200": "bg-yellow-50",
|
|
5224
|
+
"orange-600": "bg-orange-50",
|
|
5225
|
+
"purple-700": "bg-purple-50"
|
|
5226
|
+
};
|
|
5227
|
+
var TEXT_CLASS2 = {
|
|
5228
|
+
"blue-700": "text-blue-700",
|
|
5229
|
+
"blue-900": "text-blue-900",
|
|
5230
|
+
"blue-950": "text-blue-950",
|
|
5231
|
+
"red-900": "text-red-900",
|
|
5232
|
+
"red-500": "text-red-500",
|
|
5233
|
+
"green-700": "text-green-700",
|
|
5234
|
+
"green-100": "text-green-100",
|
|
5235
|
+
"grey-600": "text-grey-600",
|
|
5236
|
+
"yellow-500": "text-yellow-500",
|
|
5237
|
+
"yellow-300": "text-yellow-300",
|
|
5238
|
+
"yellow-200": "text-yellow-200",
|
|
5239
|
+
"orange-600": "text-orange-600",
|
|
5240
|
+
"purple-700": "text-purple-700"
|
|
5241
|
+
};
|
|
5242
|
+
var BORDER_CLASS = {
|
|
5243
|
+
"blue-700": "border-blue-700",
|
|
5244
|
+
"blue-900": "border-blue-900",
|
|
5245
|
+
"blue-950": "border-blue-950",
|
|
5246
|
+
"red-900": "border-red-900",
|
|
5247
|
+
"red-500": "border-red-500",
|
|
5248
|
+
"green-700": "border-green-700",
|
|
5249
|
+
"green-100": "border-green-100",
|
|
5250
|
+
"grey-600": "border-grey-600",
|
|
5251
|
+
"yellow-500": "border-yellow-500",
|
|
5252
|
+
"yellow-300": "border-yellow-300",
|
|
5253
|
+
"yellow-200": "border-yellow-200",
|
|
5254
|
+
"orange-600": "border-orange-600",
|
|
5255
|
+
"purple-700": "border-purple-700"
|
|
5256
|
+
};
|
|
5212
5257
|
var TagBubble = ({
|
|
5213
5258
|
label,
|
|
5214
5259
|
hideDot = false,
|
|
5215
5260
|
active = false,
|
|
5216
5261
|
activeColor = "blue-700",
|
|
5217
5262
|
inactiveColor = "grey-600",
|
|
5263
|
+
activeFill = false,
|
|
5264
|
+
pill = false,
|
|
5218
5265
|
count,
|
|
5219
5266
|
countColor = "green-700",
|
|
5220
5267
|
onClick,
|
|
5221
5268
|
className
|
|
5222
5269
|
}) => {
|
|
5223
5270
|
const showCount = count !== void 0 && count !== null;
|
|
5271
|
+
const filled = activeFill && active;
|
|
5224
5272
|
return /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(
|
|
5225
5273
|
RadixToggle.Root,
|
|
5226
5274
|
{
|
|
@@ -5228,7 +5276,13 @@ var TagBubble = ({
|
|
|
5228
5276
|
pressed: active,
|
|
5229
5277
|
onClick,
|
|
5230
5278
|
className: cn(
|
|
5231
|
-
"inline-flex items-center gap-2
|
|
5279
|
+
"inline-flex items-center gap-2 border px-2.5 py-1.5 outline-none",
|
|
5280
|
+
pill ? "rounded-full" : "rounded-[6px]",
|
|
5281
|
+
filled ? cn(
|
|
5282
|
+
LIGHT_BG_CLASS[activeColor],
|
|
5283
|
+
BORDER_CLASS[activeColor],
|
|
5284
|
+
"border-2"
|
|
5285
|
+
) : "border-grey-200 bg-white",
|
|
5232
5286
|
"focus-visible:ring-2 focus-visible:ring-blue-200",
|
|
5233
5287
|
className
|
|
5234
5288
|
),
|
|
@@ -5242,7 +5296,16 @@ var TagBubble = ({
|
|
|
5242
5296
|
)
|
|
5243
5297
|
}
|
|
5244
5298
|
),
|
|
5245
|
-
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
5299
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
5300
|
+
"span",
|
|
5301
|
+
{
|
|
5302
|
+
className: cn(
|
|
5303
|
+
"whitespace-nowrap text-xs font-semibold",
|
|
5304
|
+
filled ? TEXT_CLASS2[activeColor] : "text-neutral-800"
|
|
5305
|
+
),
|
|
5306
|
+
children: label
|
|
5307
|
+
}
|
|
5308
|
+
),
|
|
5246
5309
|
showCount && /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Badge, { theme: countColor, size: "s", children: count })
|
|
5247
5310
|
]
|
|
5248
5311
|
}
|
package/dist/ui/index.mjs
CHANGED
|
@@ -5045,18 +5045,66 @@ var DOT_CLASS = {
|
|
|
5045
5045
|
"orange-600": "bg-orange-600",
|
|
5046
5046
|
"purple-700": "bg-purple-700"
|
|
5047
5047
|
};
|
|
5048
|
+
var LIGHT_BG_CLASS = {
|
|
5049
|
+
"blue-700": "bg-blue-50",
|
|
5050
|
+
"blue-900": "bg-blue-50",
|
|
5051
|
+
"blue-950": "bg-blue-50",
|
|
5052
|
+
"red-900": "bg-red-50",
|
|
5053
|
+
"red-500": "bg-red-50",
|
|
5054
|
+
"green-700": "bg-green-50",
|
|
5055
|
+
"green-100": "bg-green-50",
|
|
5056
|
+
"grey-600": "bg-grey-100",
|
|
5057
|
+
"yellow-500": "bg-yellow-50",
|
|
5058
|
+
"yellow-300": "bg-yellow-50",
|
|
5059
|
+
"yellow-200": "bg-yellow-50",
|
|
5060
|
+
"orange-600": "bg-orange-50",
|
|
5061
|
+
"purple-700": "bg-purple-50"
|
|
5062
|
+
};
|
|
5063
|
+
var TEXT_CLASS2 = {
|
|
5064
|
+
"blue-700": "text-blue-700",
|
|
5065
|
+
"blue-900": "text-blue-900",
|
|
5066
|
+
"blue-950": "text-blue-950",
|
|
5067
|
+
"red-900": "text-red-900",
|
|
5068
|
+
"red-500": "text-red-500",
|
|
5069
|
+
"green-700": "text-green-700",
|
|
5070
|
+
"green-100": "text-green-100",
|
|
5071
|
+
"grey-600": "text-grey-600",
|
|
5072
|
+
"yellow-500": "text-yellow-500",
|
|
5073
|
+
"yellow-300": "text-yellow-300",
|
|
5074
|
+
"yellow-200": "text-yellow-200",
|
|
5075
|
+
"orange-600": "text-orange-600",
|
|
5076
|
+
"purple-700": "text-purple-700"
|
|
5077
|
+
};
|
|
5078
|
+
var BORDER_CLASS = {
|
|
5079
|
+
"blue-700": "border-blue-700",
|
|
5080
|
+
"blue-900": "border-blue-900",
|
|
5081
|
+
"blue-950": "border-blue-950",
|
|
5082
|
+
"red-900": "border-red-900",
|
|
5083
|
+
"red-500": "border-red-500",
|
|
5084
|
+
"green-700": "border-green-700",
|
|
5085
|
+
"green-100": "border-green-100",
|
|
5086
|
+
"grey-600": "border-grey-600",
|
|
5087
|
+
"yellow-500": "border-yellow-500",
|
|
5088
|
+
"yellow-300": "border-yellow-300",
|
|
5089
|
+
"yellow-200": "border-yellow-200",
|
|
5090
|
+
"orange-600": "border-orange-600",
|
|
5091
|
+
"purple-700": "border-purple-700"
|
|
5092
|
+
};
|
|
5048
5093
|
var TagBubble = ({
|
|
5049
5094
|
label,
|
|
5050
5095
|
hideDot = false,
|
|
5051
5096
|
active = false,
|
|
5052
5097
|
activeColor = "blue-700",
|
|
5053
5098
|
inactiveColor = "grey-600",
|
|
5099
|
+
activeFill = false,
|
|
5100
|
+
pill = false,
|
|
5054
5101
|
count,
|
|
5055
5102
|
countColor = "green-700",
|
|
5056
5103
|
onClick,
|
|
5057
5104
|
className
|
|
5058
5105
|
}) => {
|
|
5059
5106
|
const showCount = count !== void 0 && count !== null;
|
|
5107
|
+
const filled = activeFill && active;
|
|
5060
5108
|
return /* @__PURE__ */ jsxs35(
|
|
5061
5109
|
RadixToggle.Root,
|
|
5062
5110
|
{
|
|
@@ -5064,7 +5112,13 @@ var TagBubble = ({
|
|
|
5064
5112
|
pressed: active,
|
|
5065
5113
|
onClick,
|
|
5066
5114
|
className: cn(
|
|
5067
|
-
"inline-flex items-center gap-2
|
|
5115
|
+
"inline-flex items-center gap-2 border px-2.5 py-1.5 outline-none",
|
|
5116
|
+
pill ? "rounded-full" : "rounded-[6px]",
|
|
5117
|
+
filled ? cn(
|
|
5118
|
+
LIGHT_BG_CLASS[activeColor],
|
|
5119
|
+
BORDER_CLASS[activeColor],
|
|
5120
|
+
"border-2"
|
|
5121
|
+
) : "border-grey-200 bg-white",
|
|
5068
5122
|
"focus-visible:ring-2 focus-visible:ring-blue-200",
|
|
5069
5123
|
className
|
|
5070
5124
|
),
|
|
@@ -5078,7 +5132,16 @@ var TagBubble = ({
|
|
|
5078
5132
|
)
|
|
5079
5133
|
}
|
|
5080
5134
|
),
|
|
5081
|
-
/* @__PURE__ */ jsx70(
|
|
5135
|
+
/* @__PURE__ */ jsx70(
|
|
5136
|
+
"span",
|
|
5137
|
+
{
|
|
5138
|
+
className: cn(
|
|
5139
|
+
"whitespace-nowrap text-xs font-semibold",
|
|
5140
|
+
filled ? TEXT_CLASS2[activeColor] : "text-neutral-800"
|
|
5141
|
+
),
|
|
5142
|
+
children: label
|
|
5143
|
+
}
|
|
5144
|
+
),
|
|
5082
5145
|
showCount && /* @__PURE__ */ jsx70(Badge, { theme: countColor, size: "s", children: count })
|
|
5083
5146
|
]
|
|
5084
5147
|
}
|