@ledgerhq/icons-ui 0.17.0 → 0.18.0-nightly.20251220023811

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,4 +1,7 @@
1
- import Svg from "react-native-svg";
2
- declare const _default: import("styled-components").StyledComponent<typeof Svg, any, any, string | number | symbol>;
3
- export default _default;
1
+ /// <reference types="react" />
2
+ import Svg, { SvgProps } from "react-native-svg";
3
+ declare const StyledSvg: import("styled-components/native/dist/types").IStyledComponentBase<"native", import("styled-components/native/dist/types").Substitute<import("styled-components/native/dist/types").Substitute<import("styled-components/native/dist/types").Substitute<(SvgProps | Readonly<SvgProps>) & import("react").RefAttributes<Svg>, (SvgProps | Readonly<SvgProps>) & import("react").RefAttributes<Svg>>, SvgProps & {
4
+ xmlns?: string | undefined;
5
+ }>, import("styled-components/native/dist/types").BaseObject>>;
6
+ export default StyledSvg;
4
7
  //# sourceMappingURL=StyledSvg.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"StyledSvg.d.ts","sourceRoot":"","sources":["../src/native/StyledSvg.ts"],"names":[],"mappings":"AAGA,OAAO,GAAiB,MAAM,kBAAkB,CAAC;;AASjD,wBAEM"}
1
+ {"version":3,"file":"StyledSvg.d.ts","sourceRoot":"","sources":["../src/native/StyledSvg.ts"],"names":[],"mappings":";AAGA,OAAO,GAAG,EAAE,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AASjD,QAAA,MAAM,SAAS;;8DAGV,CAAC;AAEN,eAAe,SAAS,CAAC"}
@@ -7,7 +7,9 @@ const fillSystem = system({
7
7
  scale: "colors",
8
8
  },
9
9
  });
10
- export default styled(Svg).attrs((props) => ({
10
+ const StyledSvg = styled(Svg).attrs((props) => ({
11
11
  ...fillSystem(props),
12
+ xmlns: props.xmlns || "http://www.w3.org/2000/svg",
12
13
  })) ``;
14
+ export default StyledSvg;
13
15
  //# sourceMappingURL=StyledSvg.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"StyledSvg.js","sourceRoot":"","sources":["../src/native/StyledSvg.ts"],"names":[],"mappings":"AACA,OAAO,MAAM,MAAM,0BAA0B,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,GAAiB,MAAM,kBAAkB,CAAC;AAEjD,MAAM,UAAU,GAAG,MAAM,CAAC;IACxB,KAAK,EAAE;QACL,QAAQ,EAAE,OAAO;QACjB,KAAK,EAAE,QAAQ;KAChB;CACF,CAAC,CAAC;AAEH,eAAe,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,KAAgB,EAAE,EAAE,CAAC,CAAC;IACtD,GAAG,UAAU,CAAC,KAAK,CAAC;CACrB,CAAC,CAAC,CAAA,EAAE,CAAC"}
1
+ {"version":3,"file":"StyledSvg.js","sourceRoot":"","sources":["../src/native/StyledSvg.ts"],"names":[],"mappings":"AACA,OAAO,MAAM,MAAM,0BAA0B,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,GAAiB,MAAM,kBAAkB,CAAC;AAEjD,MAAM,UAAU,GAAG,MAAM,CAAC;IACxB,KAAK,EAAE;QACL,QAAQ,EAAE,OAAO;QACjB,KAAK,EAAE,QAAQ;KAChB;CACF,CAAC,CAAC;AAEH,MAAM,SAAS,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,CAAgC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;IAC7E,GAAG,UAAU,CAAC,KAAK,CAAC;IACpB,KAAK,EAAE,KAAK,CAAC,KAAK,IAAI,4BAA4B;CACnD,CAAC,CAAC,CAAA,EAAE,CAAC;AAEN,eAAe,SAAS,CAAC"}
@@ -1,4 +1,7 @@
1
- import Svg from "react-native-svg";
2
- declare const _default: import("styled-components").StyledComponent<typeof Svg, any, any, string | number | symbol>;
3
- export default _default;
1
+ /// <reference types="react" />
2
+ import Svg, { SvgProps } from "react-native-svg";
3
+ declare const StyledSvg: import("styled-components/native/dist/types").IStyledComponentBase<"native", import("styled-components/native/dist/types").Substitute<import("styled-components/native/dist/types").Substitute<import("styled-components/native/dist/types").Substitute<(SvgProps | Readonly<SvgProps>) & import("react").RefAttributes<Svg>, (SvgProps | Readonly<SvgProps>) & import("react").RefAttributes<Svg>>, SvgProps & {
4
+ xmlns?: string | undefined;
5
+ }>, import("styled-components/native/dist/types").BaseObject>>;
6
+ export default StyledSvg;
4
7
  //# sourceMappingURL=StyledSvg.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"StyledSvg.d.ts","sourceRoot":"","sources":["../src/nativeLegacy/StyledSvg.ts"],"names":[],"mappings":"AAGA,OAAO,GAAiB,MAAM,kBAAkB,CAAC;;AASjD,wBAEM"}
1
+ {"version":3,"file":"StyledSvg.d.ts","sourceRoot":"","sources":["../src/nativeLegacy/StyledSvg.ts"],"names":[],"mappings":";AAGA,OAAO,GAAG,EAAE,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AASjD,QAAA,MAAM,SAAS;;8DAGV,CAAC;AAEN,eAAe,SAAS,CAAC"}
@@ -7,7 +7,9 @@ const fillSystem = system({
7
7
  scale: "colors",
8
8
  },
9
9
  });
10
- export default styled(Svg).attrs((props) => ({
10
+ const StyledSvg = styled(Svg).attrs((props) => ({
11
11
  ...fillSystem(props),
12
+ xmlns: props.xmlns || "http://www.w3.org/2000/svg",
12
13
  })) ``;
14
+ export default StyledSvg;
13
15
  //# sourceMappingURL=StyledSvg.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"StyledSvg.js","sourceRoot":"","sources":["../src/nativeLegacy/StyledSvg.ts"],"names":[],"mappings":"AACA,OAAO,MAAM,MAAM,0BAA0B,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,GAAiB,MAAM,kBAAkB,CAAC;AAEjD,MAAM,UAAU,GAAG,MAAM,CAAC;IACxB,IAAI,EAAE;QACJ,QAAQ,EAAE,MAAM;QAChB,KAAK,EAAE,QAAQ;KAChB;CACF,CAAC,CAAC;AAEH,eAAe,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,KAAgB,EAAE,EAAE,CAAC,CAAC;IACtD,GAAG,UAAU,CAAC,KAAK,CAAC;CACrB,CAAC,CAAC,CAAA,EAAE,CAAC"}
1
+ {"version":3,"file":"StyledSvg.js","sourceRoot":"","sources":["../src/nativeLegacy/StyledSvg.ts"],"names":[],"mappings":"AACA,OAAO,MAAM,MAAM,0BAA0B,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,GAAiB,MAAM,kBAAkB,CAAC;AAEjD,MAAM,UAAU,GAAG,MAAM,CAAC;IACxB,IAAI,EAAE;QACJ,QAAQ,EAAE,MAAM;QAChB,KAAK,EAAE,QAAQ;KAChB;CACF,CAAC,CAAC;AAEH,MAAM,SAAS,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,CAAiC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;IAC9E,GAAG,UAAU,CAAC,KAAK,CAAC;IACpB,KAAK,EAAE,KAAK,CAAC,KAAK,IAAI,4BAA4B;CACnD,CAAC,CAAC,CAAA,EAAE,CAAC;AAEN,eAAe,SAAS,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ledgerhq/icons-ui",
3
3
  "description": "Icons used by the Ledger design system.",
4
- "version": "0.17.0",
4
+ "version": "0.18.0-nightly.20251220023811",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",
@@ -58,8 +58,6 @@
58
58
  "@svgr/plugin-svgo": "^5.5.0",
59
59
  "@types/react": "^18.2.21",
60
60
  "@types/react-dom": "^18.2.13",
61
- "@types/styled-components": "^5.1.14",
62
- "@types/styled-components-react-native": "^5.1.3",
63
61
  "@types/styled-system": "^5.1.13",
64
62
  "camelcase": "^6.2.1",
65
63
  "esbuild": "^0.19.0",
@@ -67,12 +65,14 @@
67
65
  "react": "18.3.1",
68
66
  "react-native-svg": "15.12.1",
69
67
  "rimraf": "^4.4.1",
70
- "styled-system": "^5.1.5",
68
+ "styled-components": "6.1.19",
69
+ "styled-system": "5.1.5",
70
+ "stylis": "4.0.0",
71
71
  "tiny-glob": "^0.2.9"
72
72
  },
73
73
  "scripts": {
74
74
  "build": "pnpm run clean && node scripts/build && node scripts/buildLegacy && tsc --noEmit false && node scripts/transpile",
75
75
  "clean": "rimraf react native reactLegacy nativeLegacy src/react src/native src/reactLegacy src/nativeLegacy",
76
- "unimported": "unimported"
76
+ "unimported": "pnpm knip --directory ../../../.. -W libs/ui/packages/icons"
77
77
  }
78
78
  }
@@ -1,3 +1,4 @@
1
- declare const _default: import("styled-components").StyledComponent<"svg", any, {}, never>;
1
+ /// <reference types="react" />
2
+ declare const _default: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").SVGProps<SVGSVGElement>, never>> & string;
2
3
  export default _default;
3
4
  //# sourceMappingURL=StyledSvg.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"StyledSvg.d.ts","sourceRoot":"","sources":["../src/react/StyledSvg.ts"],"names":[],"mappings":";AAIA,wBAOE"}
1
+ {"version":3,"file":"StyledSvg.d.ts","sourceRoot":"","sources":["../src/react/StyledSvg.ts"],"names":[],"mappings":";;AAIA,wBASE"}
@@ -1,6 +1,8 @@
1
1
  import styled from "styled-components";
2
2
  import { system } from "styled-system";
3
- export default styled.svg `
3
+ export default styled.svg.withConfig({
4
+ shouldForwardProp: (prop) => true,
5
+ }) `
4
6
  ${system({
5
7
  color: {
6
8
  property: "color",
@@ -1 +1 @@
1
- {"version":3,"file":"StyledSvg.js","sourceRoot":"","sources":["../src/react/StyledSvg.ts"],"names":[],"mappings":"AACA,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAEvC,eAAe,MAAM,CAAC,GAAG,CAAA;IACrB,MAAM,CAAC;IACP,KAAK,EAAE;QACL,QAAQ,EAAE,OAAO;QACjB,KAAK,EAAE,QAAQ;KAChB;CACF,CAAC;CACH,CAAC"}
1
+ {"version":3,"file":"StyledSvg.js","sourceRoot":"","sources":["../src/react/StyledSvg.ts"],"names":[],"mappings":"AACA,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAEvC,eAAe,MAAM,CAAC,GAAG,CAAC,UAAU,CAAC;IACnC,iBAAiB,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI;CAClC,CAAC,CAAA;IACE,MAAM,CAAC;IACP,KAAK,EAAE;QACL,QAAQ,EAAE,OAAO;QACjB,KAAK,EAAE,QAAQ;KAChB;CACF,CAAC;CACH,CAAC"}
@@ -33,7 +33,9 @@ __export(StyledSvg_exports, {
33
33
  module.exports = __toCommonJS(StyledSvg_exports);
34
34
  var import_styled_components = __toESM(require("styled-components"));
35
35
  var import_styled_system = require("styled-system");
36
- var StyledSvg_default = import_styled_components.default.svg`
36
+ var StyledSvg_default = import_styled_components.default.svg.withConfig({
37
+ shouldForwardProp: (prop) => true
38
+ })`
37
39
  ${(0, import_styled_system.system)({
38
40
  color: {
39
41
  property: "color",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/react/StyledSvg.ts"],
4
- "sourcesContent": ["\nimport styled from \"styled-components\";\nimport { system } from \"styled-system\";\n\nexport default styled.svg`\n ${system({\n color: {\n property: \"color\",\n scale: \"colors\",\n }\n })}\n`;\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,+BAAmB;AACnB,2BAAuB;AAEvB,IAAO,oBAAQ,yBAAAA,QAAO;AAAA,QAClB,6BAAO;AAAA,EACP,OAAO;AAAA,IACL,UAAU;AAAA,IACV,OAAO;AAAA,EACT;AACF,CAAC,CAAC;AAAA;",
4
+ "sourcesContent": ["\nimport styled from \"styled-components\";\nimport { system } from \"styled-system\";\n\nexport default styled.svg.withConfig({\n shouldForwardProp: (prop) => true,\n})`\n ${system({\n color: {\n property: \"color\",\n scale: \"colors\",\n }\n })}\n`;\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,+BAAmB;AACnB,2BAAuB;AAEvB,IAAO,oBAAQ,yBAAAA,QAAO,IAAI,WAAW;AAAA,EACnC,mBAAmB,CAAC,SAAS;AAC/B,CAAC;AAAA,QACG,6BAAO;AAAA,EACP,OAAO;AAAA,IACL,UAAU;AAAA,IACV,OAAO;AAAA,EACT;AACF,CAAC,CAAC;AAAA;",
6
6
  "names": ["styled"]
7
7
  }
@@ -1,3 +1,4 @@
1
- declare const _default: import("styled-components").StyledComponent<"svg", any, {}, never>;
1
+ /// <reference types="react" />
2
+ declare const _default: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").SVGProps<SVGSVGElement>, never>> & string;
2
3
  export default _default;
3
4
  //# sourceMappingURL=StyledSvg.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"StyledSvg.d.ts","sourceRoot":"","sources":["../src/reactLegacy/StyledSvg.ts"],"names":[],"mappings":";AAIA,wBAOE"}
1
+ {"version":3,"file":"StyledSvg.d.ts","sourceRoot":"","sources":["../src/reactLegacy/StyledSvg.ts"],"names":[],"mappings":";;AAIA,wBASE"}
@@ -1,6 +1,8 @@
1
1
  import styled from "styled-components";
2
2
  import { system } from "styled-system";
3
- export default styled.svg `
3
+ export default styled.svg.withConfig({
4
+ shouldForwardProp: (prop) => true,
5
+ }) `
4
6
  ${system({
5
7
  fill: {
6
8
  property: "fill",
@@ -1 +1 @@
1
- {"version":3,"file":"StyledSvg.js","sourceRoot":"","sources":["../src/reactLegacy/StyledSvg.ts"],"names":[],"mappings":"AACA,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAEvC,eAAe,MAAM,CAAC,GAAG,CAAA;IACrB,MAAM,CAAC;IACP,IAAI,EAAE;QACJ,QAAQ,EAAE,MAAM;QAChB,KAAK,EAAE,QAAQ;KAChB;CACF,CAAC;CACH,CAAC"}
1
+ {"version":3,"file":"StyledSvg.js","sourceRoot":"","sources":["../src/reactLegacy/StyledSvg.ts"],"names":[],"mappings":"AACA,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAEvC,eAAe,MAAM,CAAC,GAAG,CAAC,UAAU,CAAC;IACnC,iBAAiB,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI;CAClC,CAAC,CAAA;IACE,MAAM,CAAC;IACP,IAAI,EAAE;QACJ,QAAQ,EAAE,MAAM;QAChB,KAAK,EAAE,QAAQ;KAChB;CACF,CAAC;CACH,CAAC"}
@@ -33,7 +33,9 @@ __export(StyledSvg_exports, {
33
33
  module.exports = __toCommonJS(StyledSvg_exports);
34
34
  var import_styled_components = __toESM(require("styled-components"));
35
35
  var import_styled_system = require("styled-system");
36
- var StyledSvg_default = import_styled_components.default.svg`
36
+ var StyledSvg_default = import_styled_components.default.svg.withConfig({
37
+ shouldForwardProp: (prop) => true
38
+ })`
37
39
  ${(0, import_styled_system.system)({
38
40
  fill: {
39
41
  property: "fill",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/reactLegacy/StyledSvg.ts"],
4
- "sourcesContent": ["\nimport styled from \"styled-components\";\nimport { system } from \"styled-system\";\n\nexport default styled.svg`\n ${system({\n fill: {\n property: \"fill\",\n scale: \"colors\",\n }\n })}\n`;\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,+BAAmB;AACnB,2BAAuB;AAEvB,IAAO,oBAAQ,yBAAAA,QAAO;AAAA,QAClB,6BAAO;AAAA,EACP,MAAM;AAAA,IACJ,UAAU;AAAA,IACV,OAAO;AAAA,EACT;AACF,CAAC,CAAC;AAAA;",
4
+ "sourcesContent": ["\nimport styled from \"styled-components\";\nimport { system } from \"styled-system\";\n\nexport default styled.svg.withConfig({\n shouldForwardProp: (prop) => true,\n})`\n ${system({\n fill: {\n property: \"fill\",\n scale: \"colors\",\n }\n })}\n`;\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,+BAAmB;AACnB,2BAAuB;AAEvB,IAAO,oBAAQ,yBAAAA,QAAO,IAAI,WAAW;AAAA,EACnC,mBAAmB,CAAC,SAAS;AAC/B,CAAC;AAAA,QACG,6BAAO;AAAA,EACP,MAAM;AAAA,IACJ,UAAU;AAAA,IACV,OAAO;AAAA,EACT;AACF,CAAC,CAAC;AAAA;",
6
6
  "names": ["styled"]
7
7
  }