@edifice.io/react 2.5.9-develop-pedago.20260203115913 → 2.5.9-develop-pedago.20260205170535

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.
@@ -23,16 +23,7 @@ const Badge = /* @__PURE__ */ forwardRef(({
23
23
  }
24
24
  console.log(badgeColorClassName);
25
25
  const classes = clsx("badge rounded-pill", (variant.type === "content" || variant.type === "user") && "background" in variant ? "bg-gray-200" : (variant.type === "content" || variant.type === "user") && !("background" in variant) ? "border border-0" : "", variant.type === "content" && `text-${variant.level}`, variant.type === "notification" && `badge-notification bg-${variant.level} text-light border border-0`, variant.type === "user" && `badge-profile-${variant.profile.toLowerCase()}`, variant.type === "link" && "badge-link border border-0", variant.type === "chip" && "bg-gray-200", variant.type === "beta" && badgeColorClassName, className);
26
- return /* @__PURE__ */ jsxs("span", { ref, className: classes, style: (() => {
27
- if (variant.type !== "beta") return;
28
- const color = variant.color ?? "#000000";
29
- return {
30
- borderColor: color,
31
- color,
32
- backgroundColor: `${color}10`
33
- // the 2 last hexadecimal numbers are for opacity
34
- };
35
- })(), ...restProps, children: [
26
+ return /* @__PURE__ */ jsxs("span", { ref, className: classes, ...restProps, children: [
36
27
  variant.type === "chip" && /* @__PURE__ */ jsx("div", { className: "d-flex fw-800 align-items-center", children }),
37
28
  variant.type === "beta" && (children ?? "BÊTA"),
38
29
  variant.type !== "chip" && variant.type !== "beta" && children
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edifice.io/react",
3
- "version": "2.5.9-develop-pedago.20260203115913",
3
+ "version": "2.5.9-develop-pedago.20260205170535",
4
4
  "description": "Edifice React Library",
5
5
  "keywords": [
6
6
  "react",
@@ -135,9 +135,9 @@
135
135
  "swiper": "^10.1.0",
136
136
  "ua-parser-js": "^1.0.36",
137
137
  "react-pdf": "10.2.0",
138
- "@edifice.io/bootstrap": "2.5.9-develop-pedago.20260203115913",
139
- "@edifice.io/utilities": "2.5.9-develop-pedago.20260203115913",
140
- "@edifice.io/tiptap-extensions": "2.5.9-develop-pedago.20260203115913"
138
+ "@edifice.io/bootstrap": "2.5.9-develop-pedago.20260205170535",
139
+ "@edifice.io/tiptap-extensions": "2.5.9-develop-pedago.20260205170535",
140
+ "@edifice.io/utilities": "2.5.9-develop-pedago.20260205170535"
141
141
  },
142
142
  "devDependencies": {
143
143
  "@babel/plugin-transform-react-pure-annotations": "^7.23.3",
@@ -168,8 +168,8 @@
168
168
  "vite": "^5.4.11",
169
169
  "vite-plugin-dts": "^4.1.0",
170
170
  "vite-tsconfig-paths": "^5.0.1",
171
- "@edifice.io/config": "2.5.9-develop-pedago.20260203115913",
172
- "@edifice.io/client": "2.5.9-develop-pedago.20260203115913"
171
+ "@edifice.io/client": "2.5.9-develop-pedago.20260205170535",
172
+ "@edifice.io/config": "2.5.9-develop-pedago.20260205170535"
173
173
  },
174
174
  "peerDependencies": {
175
175
  "@react-spring/web": "^9.7.5",