@radix-ui/react-accessible-icon 1.1.12 → 1.1.13

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.d.mts CHANGED
@@ -9,6 +9,5 @@ interface AccessibleIconProps {
9
9
  label: string;
10
10
  }
11
11
  declare const AccessibleIcon: React.FC<AccessibleIconProps>;
12
- declare const Root: React.FC<AccessibleIconProps>;
13
12
 
14
- export { AccessibleIcon, type AccessibleIconProps, Root };
13
+ export { AccessibleIcon, type AccessibleIconProps, AccessibleIcon as Root };
package/dist/index.d.ts CHANGED
@@ -9,6 +9,5 @@ interface AccessibleIconProps {
9
9
  label: string;
10
10
  }
11
11
  declare const AccessibleIcon: React.FC<AccessibleIconProps>;
12
- declare const Root: React.FC<AccessibleIconProps>;
13
12
 
14
- export { AccessibleIcon, type AccessibleIconProps, Root };
13
+ export { AccessibleIcon, type AccessibleIconProps, AccessibleIcon as Root };
package/dist/index.js CHANGED
@@ -32,7 +32,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
32
32
  var index_exports = {};
33
33
  __export(index_exports, {
34
34
  AccessibleIcon: () => AccessibleIcon,
35
- Root: () => Root2
35
+ Root: () => AccessibleIcon
36
36
  });
37
37
  module.exports = __toCommonJS(index_exports);
38
38
 
@@ -52,5 +52,4 @@ var AccessibleIcon = /* @__PURE__ */ __name(({ children, label }) => {
52
52
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(VisuallyHiddenPrimitive.Root, { children: label })
53
53
  ] });
54
54
  }, "AccessibleIcon");
55
- var Root2 = AccessibleIcon;
56
55
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../src/index.ts", "../src/accessible-icon.tsx"],
4
- "sourcesContent": ["export {\n AccessibleIcon,\n //\n Root,\n} from './accessible-icon';\nexport type { AccessibleIconProps } from './accessible-icon';\n", "import * as React from 'react';\nimport * as VisuallyHiddenPrimitive from '@radix-ui/react-visually-hidden';\n\ninterface AccessibleIconProps {\n children?: React.ReactNode;\n /**\n * The accessible label for the icon. This label will be visually hidden but announced to screen\n * reader users, similar to `alt` text for `img` tags.\n */\n label: string;\n}\n\nconst AccessibleIcon: React.FC<AccessibleIconProps> = ({ children, label }) => {\n const child = React.Children.only(children);\n return (\n <>\n {React.cloneElement(child as React.ReactElement<React.SVGAttributes<SVGElement>>, {\n // accessibility\n 'aria-hidden': 'true',\n focusable: 'false', // See: https://allyjs.io/tutorials/focusing-in-svg.html#making-svg-elements-focusable\n })}\n <VisuallyHiddenPrimitive.Root>{label}</VisuallyHiddenPrimitive.Root>\n </>\n );\n};\n\nconst Root = AccessibleIcon;\n\nexport {\n AccessibleIcon,\n //\n Root,\n};\nexport type { AccessibleIconProps };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA,cAAAA;AAAA;AAAA;;;ACAA,YAAuB;AACvB,8BAAyC;AAcrC;AAHJ,IAAM,iBAAgD,wBAAC,EAAE,UAAU,MAAM,MAAM;AAC7E,QAAM,QAAc,eAAS,KAAK,QAAQ;AAC1C,SACE,4EACG;AAAA,IAAM,mBAAa,OAA8D;AAAA;AAAA,MAEhF,eAAe;AAAA,MACf,WAAW;AAAA;AAAA,IACb,CAAC;AAAA,IACD,4CAAyB,8BAAxB,EAA8B,iBAAM;AAAA,KACvC;AAEJ,GAZsD;AActD,IAAMC,QAAO;",
6
- "names": ["Root", "Root"]
4
+ "sourcesContent": ["export {\n AccessibleIcon,\n //\n Root,\n} from './accessible-icon';\nexport type { AccessibleIconProps } from './accessible-icon';\n", "import * as React from 'react';\nimport * as VisuallyHiddenPrimitive from '@radix-ui/react-visually-hidden';\n\ninterface AccessibleIconProps {\n children?: React.ReactNode;\n /**\n * The accessible label for the icon. This label will be visually hidden but announced to screen\n * reader users, similar to `alt` text for `img` tags.\n */\n label: string;\n}\n\nconst AccessibleIcon: React.FC<AccessibleIconProps> = ({ children, label }) => {\n const child = React.Children.only(children);\n return (\n <>\n {React.cloneElement(child as React.ReactElement<React.SVGAttributes<SVGElement>>, {\n // accessibility\n 'aria-hidden': 'true',\n focusable: 'false', // See: https://allyjs.io/tutorials/focusing-in-svg.html#making-svg-elements-focusable\n })}\n <VisuallyHiddenPrimitive.Root>{label}</VisuallyHiddenPrimitive.Root>\n </>\n );\n};\n\nexport {\n AccessibleIcon,\n //\n AccessibleIcon as Root,\n};\nexport type { AccessibleIconProps };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,YAAuB;AACvB,8BAAyC;AAcrC;AAHJ,IAAM,iBAAgD,wBAAC,EAAE,UAAU,MAAM,MAAM;AAC7E,QAAM,QAAc,eAAS,KAAK,QAAQ;AAC1C,SACE,4EACG;AAAA,IAAM,mBAAa,OAA8D;AAAA;AAAA,MAEhF,eAAe;AAAA,MACf,WAAW;AAAA;AAAA,IACb,CAAC;AAAA,IACD,4CAAyB,8BAAxB,EAA8B,iBAAM;AAAA,KACvC;AAEJ,GAZsD;",
6
+ "names": []
7
7
  }
package/dist/index.mjs CHANGED
@@ -17,9 +17,8 @@ var AccessibleIcon = /* @__PURE__ */ __name(({ children, label }) => {
17
17
  /* @__PURE__ */ jsx(VisuallyHiddenPrimitive.Root, { children: label })
18
18
  ] });
19
19
  }, "AccessibleIcon");
20
- var Root2 = AccessibleIcon;
21
20
  export {
22
21
  AccessibleIcon,
23
- Root2 as Root
22
+ AccessibleIcon as Root
24
23
  };
25
24
  //# sourceMappingURL=index.mjs.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../src/accessible-icon.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nimport * as VisuallyHiddenPrimitive from '@radix-ui/react-visually-hidden';\n\ninterface AccessibleIconProps {\n children?: React.ReactNode;\n /**\n * The accessible label for the icon. This label will be visually hidden but announced to screen\n * reader users, similar to `alt` text for `img` tags.\n */\n label: string;\n}\n\nconst AccessibleIcon: React.FC<AccessibleIconProps> = ({ children, label }) => {\n const child = React.Children.only(children);\n return (\n <>\n {React.cloneElement(child as React.ReactElement<React.SVGAttributes<SVGElement>>, {\n // accessibility\n 'aria-hidden': 'true',\n focusable: 'false', // See: https://allyjs.io/tutorials/focusing-in-svg.html#making-svg-elements-focusable\n })}\n <VisuallyHiddenPrimitive.Root>{label}</VisuallyHiddenPrimitive.Root>\n </>\n );\n};\n\nconst Root = AccessibleIcon;\n\nexport {\n AccessibleIcon,\n //\n Root,\n};\nexport type { AccessibleIconProps };\n"],
5
- "mappings": ";;;;AAAA,YAAY,WAAW;AACvB,YAAY,6BAA6B;AAcrC,mBAME,KANF;AAHJ,IAAM,iBAAgD,wBAAC,EAAE,UAAU,MAAM,MAAM;AAC7E,QAAM,QAAc,eAAS,KAAK,QAAQ;AAC1C,SACE,iCACG;AAAA,IAAM,mBAAa,OAA8D;AAAA;AAAA,MAEhF,eAAe;AAAA,MACf,WAAW;AAAA;AAAA,IACb,CAAC;AAAA,IACD,oBAAyB,8BAAxB,EAA8B,iBAAM;AAAA,KACvC;AAEJ,GAZsD;AActD,IAAMA,QAAO;",
6
- "names": ["Root"]
4
+ "sourcesContent": ["import * as React from 'react';\nimport * as VisuallyHiddenPrimitive from '@radix-ui/react-visually-hidden';\n\ninterface AccessibleIconProps {\n children?: React.ReactNode;\n /**\n * The accessible label for the icon. This label will be visually hidden but announced to screen\n * reader users, similar to `alt` text for `img` tags.\n */\n label: string;\n}\n\nconst AccessibleIcon: React.FC<AccessibleIconProps> = ({ children, label }) => {\n const child = React.Children.only(children);\n return (\n <>\n {React.cloneElement(child as React.ReactElement<React.SVGAttributes<SVGElement>>, {\n // accessibility\n 'aria-hidden': 'true',\n focusable: 'false', // See: https://allyjs.io/tutorials/focusing-in-svg.html#making-svg-elements-focusable\n })}\n <VisuallyHiddenPrimitive.Root>{label}</VisuallyHiddenPrimitive.Root>\n </>\n );\n};\n\nexport {\n AccessibleIcon,\n //\n AccessibleIcon as Root,\n};\nexport type { AccessibleIconProps };\n"],
5
+ "mappings": ";;;;AAAA,YAAY,WAAW;AACvB,YAAY,6BAA6B;AAcrC,mBAME,KANF;AAHJ,IAAM,iBAAgD,wBAAC,EAAE,UAAU,MAAM,MAAM;AAC7E,QAAM,QAAc,eAAS,KAAK,QAAQ;AAC1C,SACE,iCACG;AAAA,IAAM,mBAAa,OAA8D;AAAA;AAAA,MAEhF,eAAe;AAAA,MACf,WAAW;AAAA;AAAA,IACb,CAAC;AAAA,IACD,oBAAyB,8BAAxB,EAA8B,iBAAM;AAAA,KACvC;AAEJ,GAZsD;",
6
+ "names": []
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@radix-ui/react-accessible-icon",
3
- "version": "1.1.12",
3
+ "version": "1.1.13",
4
4
  "license": "MIT",
5
5
  "source": "./src/index.ts",
6
6
  "main": "./dist/index.js",
@@ -11,13 +11,13 @@
11
11
  ],
12
12
  "sideEffects": false,
13
13
  "dependencies": {
14
- "@radix-ui/react-visually-hidden": "1.2.8"
14
+ "@radix-ui/react-visually-hidden": "1.2.9"
15
15
  },
16
16
  "devDependencies": {
17
- "@types/react": "^19.2.2",
18
- "@types/react-dom": "^19.2.2",
19
- "react": "^19.2.0",
20
- "react-dom": "^19.2.0",
17
+ "@types/react": "^19.2.17",
18
+ "@types/react-dom": "^19.2.3",
19
+ "react": "^19.2.7",
20
+ "react-dom": "^19.2.7",
21
21
  "typescript": "^5.9.3",
22
22
  "@repo/builder": "0.0.0",
23
23
  "@repo/typescript-config": "0.0.0"