@radix-ui/react-accessible-icon 1.1.14 → 1.1.15

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,5 +9,6 @@ interface AccessibleIconProps {
9
9
  label: string;
10
10
  }
11
11
  declare const AccessibleIcon: React.FC<AccessibleIconProps>;
12
+ declare const Root: React.FC<AccessibleIconProps>;
12
13
 
13
- export { AccessibleIcon, type AccessibleIconProps, AccessibleIcon as Root };
14
+ export { AccessibleIcon, type AccessibleIconProps, Root };
package/dist/index.d.ts CHANGED
@@ -9,5 +9,6 @@ interface AccessibleIconProps {
9
9
  label: string;
10
10
  }
11
11
  declare const AccessibleIcon: React.FC<AccessibleIconProps>;
12
+ declare const Root: React.FC<AccessibleIconProps>;
12
13
 
13
- export { AccessibleIcon, type AccessibleIconProps, AccessibleIcon as Root };
14
+ export { AccessibleIcon, type AccessibleIconProps, 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: () => AccessibleIcon
35
+ Root: () => Root2
36
36
  });
37
37
  module.exports = __toCommonJS(index_exports);
38
38
 
@@ -52,4 +52,5 @@ 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;
55
56
  //# 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\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": []
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"]
7
7
  }
package/dist/index.mjs CHANGED
@@ -17,8 +17,9 @@ var AccessibleIcon = /* @__PURE__ */ __name(({ children, label }) => {
17
17
  /* @__PURE__ */ jsx(VisuallyHiddenPrimitive.Root, { children: label })
18
18
  ] });
19
19
  }, "AccessibleIcon");
20
+ var Root2 = AccessibleIcon;
20
21
  export {
21
22
  AccessibleIcon,
22
- AccessibleIcon as Root
23
+ Root2 as Root
23
24
  };
24
25
  //# 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\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": []
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"]
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@radix-ui/react-accessible-icon",
3
- "version": "1.1.14",
3
+ "version": "1.1.15",
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.10"
14
+ "@radix-ui/react-visually-hidden": "1.2.11"
15
15
  },
16
16
  "devDependencies": {
17
- "@types/react": "^19.2.17",
18
- "@types/react-dom": "^19.2.3",
19
- "react": "^19.2.7",
20
- "react-dom": "^19.2.7",
17
+ "@types/react": "^19.2.2",
18
+ "@types/react-dom": "^19.2.2",
19
+ "react": "^19.2.0",
20
+ "react-dom": "^19.2.0",
21
21
  "typescript": "^5.9.3",
22
22
  "@repo/builder": "0.0.0",
23
23
  "@repo/typescript-config": "0.0.0"