@edifice.io/react 2.2.11-develop-pedago.20250707120933 → 2.2.11-develop-pedago.20250707122637

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.
@@ -27,7 +27,8 @@ const FileCard = ({
27
27
  if (customIcon !== void 0 || customColor !== void 0)
28
28
  return {
29
29
  icon: customIcon || /* @__PURE__ */ jsx(SvgIconTextPage, { width: 22, height: 22 }),
30
- color: customColor || "bg-gray-300"
30
+ color: customColor || "bg-gray-300",
31
+ hasShadow: !1
31
32
  };
32
33
  const roleMappings = {
33
34
  csv: {
@@ -4,6 +4,7 @@ declare const FileIcon: ({ type, roleMap, }: {
4
4
  roleMap?: {
5
5
  icon: React.ReactNode | string;
6
6
  color: string;
7
+ hasShadow?: boolean;
7
8
  };
8
9
  }) => import("react/jsx-runtime").JSX.Element;
9
10
  export default FileIcon;
@@ -5,8 +5,8 @@ const FileIcon = ({
5
5
  type,
6
6
  roleMap
7
7
  }) => {
8
- const hasNoShadow = typeof (roleMap == null ? void 0 : roleMap.icon) != "string" && type !== "unknown", fileicon = clsx("position-absolute top-50 start-50 translate-middle", {
9
- "p-12 rounded-circle shadow": hasNoShadow
8
+ const hasShadow = typeof (roleMap == null ? void 0 : roleMap.icon) != "string" && type !== "unknown" && (roleMap == null ? void 0 : roleMap.hasShadow) !== !1, fileicon = clsx("position-absolute top-50 start-50 translate-middle", {
9
+ "p-12 rounded-circle shadow": hasShadow
10
10
  }, roleMap == null ? void 0 : roleMap.color);
11
11
  return /* @__PURE__ */ jsx("div", { className: fileicon, children: (roleMap == null ? void 0 : roleMap.icon) ?? /* @__PURE__ */ jsx(SvgIconPaperclip, {}) });
12
12
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edifice.io/react",
3
- "version": "2.2.11-develop-pedago.20250707120933",
3
+ "version": "2.2.11-develop-pedago.20250707122637",
4
4
  "description": "Edifice React Library",
5
5
  "keywords": [
6
6
  "react",
@@ -130,9 +130,9 @@
130
130
  "react-slugify": "^3.0.3",
131
131
  "swiper": "^10.1.0",
132
132
  "ua-parser-js": "^1.0.36",
133
- "@edifice.io/bootstrap": "2.2.11-develop-pedago.20250707120933",
134
- "@edifice.io/tiptap-extensions": "2.2.11-develop-pedago.20250707120933",
135
- "@edifice.io/utilities": "2.2.11-develop-pedago.20250707120933"
133
+ "@edifice.io/bootstrap": "2.2.11-develop-pedago.20250707122637",
134
+ "@edifice.io/tiptap-extensions": "2.2.11-develop-pedago.20250707122637",
135
+ "@edifice.io/utilities": "2.2.11-develop-pedago.20250707122637"
136
136
  },
137
137
  "devDependencies": {
138
138
  "@babel/plugin-transform-react-pure-annotations": "^7.23.3",
@@ -163,8 +163,8 @@
163
163
  "vite": "^5.4.11",
164
164
  "vite-plugin-dts": "^4.1.0",
165
165
  "vite-tsconfig-paths": "^5.0.1",
166
- "@edifice.io/client": "2.2.11-develop-pedago.20250707120933",
167
- "@edifice.io/config": "2.2.11-develop-pedago.20250707120933"
166
+ "@edifice.io/client": "2.2.11-develop-pedago.20250707122637",
167
+ "@edifice.io/config": "2.2.11-develop-pedago.20250707122637"
168
168
  },
169
169
  "peerDependencies": {
170
170
  "@react-spring/web": "^9.7.5",