odaptos_design_system 2.0.318 → 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 +16 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +16 -11
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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,
|
|
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
|
-
} }),
|
|
233
|
+
} }), extraTextPosition === "start" && extraText && /* @__PURE__ */ react.default.createElement(Text, {
|
|
235
234
|
size: getTextSize(),
|
|
236
|
-
text:
|
|
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
|
-
}),
|
|
242
|
+
}), extraTextPosition === "end" && extraText && /* @__PURE__ */ react.default.createElement(Text, {
|
|
244
243
|
size: getTextSize(),
|
|
245
|
-
text:
|
|
244
|
+
text: extraText,
|
|
246
245
|
color: getTextColor(),
|
|
247
246
|
weight: "bold"
|
|
248
247
|
}), iconRight && react.default.cloneElement(iconRight, {
|
|
@@ -70988,31 +70987,37 @@ const MarkUpBar = ({ className, onClick, disabled,...props$1 }) => {
|
|
|
70988
70987
|
onClick: () => {
|
|
70989
70988
|
if (!disabled) onClick("Q");
|
|
70990
70989
|
}
|
|
70991
|
-
}, "
|
|
70990
|
+
}, "👍"), /* @__PURE__ */ react.default.createElement("button", {
|
|
70992
70991
|
className: `${MarkUpBar_modules_default.smiley_btn} ${disabled && MarkUpBar_modules_default.disabled}`,
|
|
70993
70992
|
disabled,
|
|
70994
70993
|
onClick: () => {
|
|
70995
70994
|
if (!disabled) onClick("W");
|
|
70996
70995
|
}
|
|
70997
|
-
}, "
|
|
70996
|
+
}, "👎"), /* @__PURE__ */ react.default.createElement("button", {
|
|
70998
70997
|
className: `${MarkUpBar_modules_default.smiley_btn} ${disabled && MarkUpBar_modules_default.disabled}`,
|
|
70999
70998
|
disabled,
|
|
71000
70999
|
onClick: () => {
|
|
71001
71000
|
if (!disabled) onClick("E");
|
|
71002
71001
|
}
|
|
71003
|
-
}, "
|
|
71002
|
+
}, "💡"), /* @__PURE__ */ react.default.createElement("button", {
|
|
71004
71003
|
className: `${MarkUpBar_modules_default.smiley_btn} ${disabled && MarkUpBar_modules_default.disabled}`,
|
|
71005
71004
|
disabled,
|
|
71006
71005
|
onClick: () => {
|
|
71007
71006
|
if (!disabled) onClick("R");
|
|
71008
71007
|
}
|
|
71009
|
-
}, "
|
|
71008
|
+
}, "📌"), /* @__PURE__ */ react.default.createElement("button", {
|
|
71010
71009
|
className: `${MarkUpBar_modules_default.smiley_btn} ${disabled && MarkUpBar_modules_default.disabled}`,
|
|
71011
71010
|
disabled,
|
|
71012
71011
|
onClick: () => {
|
|
71013
71012
|
if (!disabled) onClick("T");
|
|
71014
71013
|
}
|
|
71015
|
-
}, "
|
|
71014
|
+
}, "❤️"), /* @__PURE__ */ react.default.createElement("button", {
|
|
71015
|
+
className: `${MarkUpBar_modules_default.smiley_btn} ${disabled && MarkUpBar_modules_default.disabled}`,
|
|
71016
|
+
disabled,
|
|
71017
|
+
onClick: () => {
|
|
71018
|
+
if (!disabled) onClick("Y");
|
|
71019
|
+
}
|
|
71020
|
+
}, "😡")));
|
|
71016
71021
|
};
|
|
71017
71022
|
|
|
71018
71023
|
//#endregion
|