ublo-lib 1.42.23 → 1.42.25

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.
@@ -1 +1 @@
1
- {"version":3,"file":"collapsible.d.ts","sourceRoot":"","sources":["../../../../src/common/components/collapsible/collapsible.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,KAAK,KAAK,GAAG;IACX,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,MAAM,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAqBF,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAClC,aAAsB,EACtB,MAAY,EACZ,IAAI,EACJ,IAAI,EACJ,QAAQ,GACT,EAAE,KAAK,2CAyDP"}
1
+ {"version":3,"file":"collapsible.d.ts","sourceRoot":"","sources":["../../../../src/common/components/collapsible/collapsible.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,KAAK,KAAK,GAAG;IACX,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,MAAM,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAqBF,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,EAClC,aAAsB,EACtB,MAAY,EACZ,IAAI,EACJ,IAAI,EACJ,QAAQ,GACT,EAAE,KAAK,2CAsDP"}
@@ -37,10 +37,7 @@ export default function Collapsible({ gradientColor = "#fff", height = 150, lang
37
37
  const toggleOpen = () => {
38
38
  setOpened(!opened);
39
39
  };
40
- const messageLang = lang === "fr" ? "fr" : "en";
41
- const message = opened
42
- ? messages[messageLang].close
43
- : messages[messageLang].open;
40
+ const message = opened ? messages[lang].close : messages[lang].open;
44
41
  const Icon = opened ? Icons.ChevronUp : Icons.ChevronDown;
45
42
  React.useEffect(() => {
46
43
  const parentHeight = parentRef.current?.offsetHeight;
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "ublo-lib",
3
- "version": "1.42.23",
3
+ "version": "1.42.25",
4
4
  "peerDependencies": {
5
+ "classnames": "^2.5.1",
5
6
  "dt-design-system": "^3.10.8",
6
7
  "framer-motion": "^11.11.9",
7
8
  "next": "^12.0.0 || ^13.0.0 || ^14.0.0 || ^15.0.0",
@@ -16,8 +17,6 @@
16
17
  },
17
18
  "dependencies": {
18
19
  "awesome-debounce-promise": "^2.1.0",
19
- "classnames": "^2.5.1",
20
- "framer-motion": "^11.11.17",
21
20
  "react-async-hook": "^4.0.0",
22
21
  "react-player": "^2.16.0"
23
22
  },
@@ -27,11 +26,13 @@
27
26
  "@types/react-dom": "^18.3.1",
28
27
  "@typescript-eslint/eslint-plugin": "^7.18.0",
29
28
  "@typescript-eslint/parser": "^7.18.0",
29
+ "classnames": "^2.5.1",
30
30
  "cpx2": "^7.0.2",
31
31
  "dt-design-system": "^3.11.6",
32
32
  "eslint": "^8.57.1",
33
33
  "eslint-plugin-react": "^7.37.2",
34
34
  "eslint-plugin-react-hooks": "^4.6.2",
35
+ "framer-motion": "^11.11.9",
35
36
  "mv": "^2.1.1",
36
37
  "next": "^14.2.18",
37
38
  "react": "^18.3.1",