odaptos_design_system 2.0.319 → 2.0.320

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.cjs CHANGED
@@ -183,7 +183,7 @@ const getReadableTextColor = (backgroundColor) => {
183
183
  //#endregion
184
184
  //#region src/Atoms/Badge/Badge.tsx
185
185
  /** Figma link : https://www.figma.com/file/fjnhhbL12HvKccPmJchVnr/Atomic-Library?type=design&node-id=3073-110563&mode=dev */
186
- const Badge = ({ text, status = "idle", size = "base", iconLeft, iconRight, number, numberPosition = "end", customColor, customTextColor, className, canBeRemoved = false, id,...props$1 }) => {
186
+ const Badge = ({ text, status = "idle", size = "base", iconLeft, iconRight, extraText, extraTextPosition = "end", customColor, customTextColor, className, canBeRemoved = false, id,...props$1 }) => {
187
187
  const badgeCustomColor = customColor ? (0, colord.colord)(customColor) : void 0;
188
188
  const getTextColor = () => {
189
189
  if (customTextColor) return customTextColor;
@@ -222,7 +222,6 @@ const Badge = ({ text, status = "idle", size = "base", iconLeft, iconRight, numb
222
222
  else if (size === "base") return Badge_modules_default.badge_base;
223
223
  else return Badge_modules_default.badge_base;
224
224
  };
225
- const isNumber = typeof number === "number";
226
225
  return /* @__PURE__ */ react.default.createElement("div", {
227
226
  id,
228
227
  ...props$1,
@@ -231,18 +230,18 @@ const Badge = ({ text, status = "idle", size = "base", iconLeft, iconRight, numb
231
230
  }, iconLeft && react.default.cloneElement(iconLeft, { style: {
232
231
  fill: getTextColor(),
233
232
  stroke: getTextColor()
234
- } }), numberPosition === "start" && isNumber && /* @__PURE__ */ react.default.createElement(Text, {
233
+ } }), extraTextPosition === "start" && extraText && /* @__PURE__ */ react.default.createElement(Text, {
235
234
  size: getTextSize(),
236
- text: `${number}`,
235
+ text: extraText,
237
236
  color: getTextColor(),
238
237
  weight: "bold"
239
238
  }), /* @__PURE__ */ react.default.createElement(Text, {
240
239
  size: getTextSize(),
241
240
  text,
242
241
  color: getTextColor()
243
- }), numberPosition !== "start" && isNumber && /* @__PURE__ */ react.default.createElement(Text, {
242
+ }), extraTextPosition === "end" && extraText && /* @__PURE__ */ react.default.createElement(Text, {
244
243
  size: getTextSize(),
245
- text: `${number}`,
244
+ text: extraText,
246
245
  color: getTextColor(),
247
246
  weight: "bold"
248
247
  }), iconRight && react.default.cloneElement(iconRight, {