@radix-ui/react-accessible-icon 0.1.4 → 0.1.5-rc.1

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.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import * as React from "react";
2
2
  export interface AccessibleIconProps {
3
+ children?: React.ReactNode;
3
4
  /**
4
5
  * The accessible label for the icon. This label will be visually hidden but announced to screen
5
6
  * reader users, similar to `alt` text for `img` tags.
@@ -1 +1 @@
1
- {"mappings":"A;AAKA;IACE;A;A;OAGG;IACH,KAAK,EAAE,MAAM,CAAC;CACf;AAED,OAAA,MAAM,gBAAgB,MAAM,EAAE,CAAC,mBAAmB,CAYjD,CAAC;AAIF,OAAA,MAAM,mCAAqB,CAAC","sources":["./packages/react/accessible-icon/src/packages/react/accessible-icon/src/AccessibleIcon.tsx","./packages/react/accessible-icon/src/packages/react/accessible-icon/src/index.ts"],"sourcesContent":[null,null],"names":[],"version":3,"file":"index.d.ts.map"}
1
+ {"mappings":"A;AAKA;IACE,QAAQ,CAAC,EAAE,MAAM,SAAS,CAAC;IAC3B;A;A;OAGG;IACH,KAAK,EAAE,MAAM,CAAC;CACf;AAED,OAAA,MAAM,gBAAgB,MAAM,EAAE,CAAC,mBAAmB,CAYjD,CAAC;AAIF,OAAA,MAAM,mCAAqB,CAAC","sources":["./packages/react/accessible-icon/src/packages/react/accessible-icon/src/AccessibleIcon.tsx","./packages/react/accessible-icon/src/packages/react/accessible-icon/src/index.ts"],"sourcesContent":[null,null],"names":[],"version":3,"file":"index.d.ts.map"}
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"mappings":"gFAYA,SAASA,EAAuBC,EAAMC,GAcpC,OAbAC,OAAOC,KAAKF,GAAQG,SAAQ,SAASC,GACvB,YAARA,GAA6B,eAARA,GAIzBH,OAAOI,eAAeN,EAAMK,EAAK,CAC/BE,YAAY,EACZC,IAAK,WACH,OAAOP,EAAOI,SAKbL,ECvBT,MAUMS,EAAgD,EAAGC,SAAAA,EAAUC,MAAAA,MACjE,MAAMC,EAAQC,EAAMC,SAASC,KAAKL,gBAClC,OACEM,EAAAC,cAAAD,EAAAE,SAAA,kBACGL,EAAMM,aAAaP,EAA6B,CAE/C,cAAe,OACfQ,UAAW,uBAEbJ,EAAAC,cAACI,EAAwBC,KAAzB,KAA+BX,8BAOrC,MAAMW,EAAOb","sources":["./node_modules/@parcel/scope-hoisting/lib/helpers.js","./packages/react/accessible-icon/src/AccessibleIcon.tsx"],"sourcesContent":["function $parcel$interopDefault(a) {\n return a && a.__esModule ? a.default : a;\n}\n\nfunction $parcel$defineInteropFlag(a) {\n Object.defineProperty(a, '__esModule', {value: true});\n}\n\nfunction $parcel$reexport(e, n, v) {\n Object.defineProperty(e, n, {get: v, enumerable: true});\n}\n\nfunction $parcel$exportWildcard(dest, source) {\n Object.keys(source).forEach(function(key) {\n if (key === 'default' || key === '__esModule') {\n return;\n }\n\n Object.defineProperty(dest, key, {\n enumerable: true,\n get: function get() {\n return source[key];\n },\n });\n });\n\n return dest;\n}\n\nfunction $parcel$missingModule(name) {\n var err = new Error(\"Cannot find module '\" + name + \"'\");\n err.code = 'MODULE_NOT_FOUND';\n throw err;\n}\n\nvar $parcel$global =\n typeof globalThis !== 'undefined'\n ? globalThis\n : typeof self !== 'undefined'\n ? self\n : typeof window !== 'undefined'\n ? window\n : typeof global !== 'undefined'\n ? global\n : {};\n","import * as React from 'react';\nimport * as VisuallyHiddenPrimitive from '@radix-ui/react-visually-hidden';\n\nconst NAME = 'AccessibleIcon';\n\ninterface AccessibleIconProps {\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, {\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\nAccessibleIcon.displayName = NAME;\n\nconst Root = AccessibleIcon;\n\nexport {\n AccessibleIcon,\n //\n Root,\n};\nexport type { AccessibleIconProps };\n"],"names":["$parcel$exportWildcard","dest","source","Object","keys","forEach","key","defineProperty","enumerable","get","AccessibleIcon","children","label","child","React","Children","only","_react","createElement","Fragment","cloneElement","focusable","_radixUiReactVisuallyHidden","Root"],"version":3,"file":"index.js.map"}
1
+ {"mappings":"gFAYA,SAASA,EAAuBC,EAAMC,GAcpC,OAbAC,OAAOC,KAAKF,GAAQG,SAAQ,SAASC,GACvB,YAARA,GAA6B,eAARA,GAIzBH,OAAOI,eAAeN,EAAMK,EAAK,CAC/BE,YAAY,EACZC,IAAK,WACH,OAAOP,EAAOI,SAKbL,ECvBT,MAWMS,EAAgD,EAAGC,SAAAA,EAAUC,MAAAA,MACjE,MAAMC,EAAQC,EAAMC,SAASC,KAAKL,gBAClC,OACEM,EAAAC,cAAAD,EAAAE,SAAA,kBACGL,EAAMM,aAAaP,EAA6B,CAE/C,cAAe,OACfQ,UAAW,uBAEbJ,EAAAC,cAACI,EAAwBC,KAAzB,KAA+BX,8BAOrC,MAAMW,EAAOb","sources":["./node_modules/@parcel/scope-hoisting/lib/helpers.js","./packages/react/accessible-icon/src/AccessibleIcon.tsx"],"sourcesContent":["function $parcel$interopDefault(a) {\n return a && a.__esModule ? a.default : a;\n}\n\nfunction $parcel$defineInteropFlag(a) {\n Object.defineProperty(a, '__esModule', {value: true});\n}\n\nfunction $parcel$reexport(e, n, v) {\n Object.defineProperty(e, n, {get: v, enumerable: true});\n}\n\nfunction $parcel$exportWildcard(dest, source) {\n Object.keys(source).forEach(function(key) {\n if (key === 'default' || key === '__esModule') {\n return;\n }\n\n Object.defineProperty(dest, key, {\n enumerable: true,\n get: function get() {\n return source[key];\n },\n });\n });\n\n return dest;\n}\n\nfunction $parcel$missingModule(name) {\n var err = new Error(\"Cannot find module '\" + name + \"'\");\n err.code = 'MODULE_NOT_FOUND';\n throw err;\n}\n\nvar $parcel$global =\n typeof globalThis !== 'undefined'\n ? globalThis\n : typeof self !== 'undefined'\n ? self\n : typeof window !== 'undefined'\n ? window\n : typeof global !== 'undefined'\n ? global\n : {};\n","import * as React from 'react';\nimport * as VisuallyHiddenPrimitive from '@radix-ui/react-visually-hidden';\n\nconst NAME = 'AccessibleIcon';\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, {\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\nAccessibleIcon.displayName = NAME;\n\nconst Root = AccessibleIcon;\n\nexport {\n AccessibleIcon,\n //\n Root,\n};\nexport type { AccessibleIconProps };\n"],"names":["$parcel$exportWildcard","dest","source","Object","keys","forEach","key","defineProperty","enumerable","get","AccessibleIcon","children","label","child","React","Children","only","_react","createElement","Fragment","cloneElement","focusable","_radixUiReactVisuallyHidden","Root"],"version":3,"file":"index.js.map"}
@@ -1 +1 @@
1
- {"mappings":"iFAaA,MAAMA,eAAgD,EAAGC,SAAAA,EAAUC,MAAAA,MACjE,MAAMC,EAAQC,EAAMC,SAASC,KAAKL,gBAClC,OACEM,EAAAC,cAAAD,EAAAE,SAAA,kBACGL,EAAMM,aAAaP,EAA6B,CAE/C,cAAe,OACfQ,UAAW,uBAEbJ,EAAAC,cAACI,EAAwBC,KAAzB,KAA+BX,yBAOrC,MAAMW,KAAOb","sources":["./packages/react/accessible-icon/src/AccessibleIcon.tsx"],"sourcesContent":["import * as React from 'react';\nimport * as VisuallyHiddenPrimitive from '@radix-ui/react-visually-hidden';\n\nconst NAME = 'AccessibleIcon';\n\ninterface AccessibleIconProps {\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, {\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\nAccessibleIcon.displayName = NAME;\n\nconst Root = AccessibleIcon;\n\nexport {\n AccessibleIcon,\n //\n Root,\n};\nexport type { AccessibleIconProps };\n"],"names":["AccessibleIcon","children","label","child","React","Children","only","_react","createElement","Fragment","cloneElement","focusable","_radixUiReactVisuallyHidden","Root"],"version":3,"file":"index.module.js.map"}
1
+ {"mappings":"iFAcA,MAAMA,eAAgD,EAAGC,SAAAA,EAAUC,MAAAA,MACjE,MAAMC,EAAQC,EAAMC,SAASC,KAAKL,gBAClC,OACEM,EAAAC,cAAAD,EAAAE,SAAA,kBACGL,EAAMM,aAAaP,EAA6B,CAE/C,cAAe,OACfQ,UAAW,uBAEbJ,EAAAC,cAACI,EAAwBC,KAAzB,KAA+BX,yBAOrC,MAAMW,KAAOb","sources":["./packages/react/accessible-icon/src/AccessibleIcon.tsx"],"sourcesContent":["import * as React from 'react';\nimport * as VisuallyHiddenPrimitive from '@radix-ui/react-visually-hidden';\n\nconst NAME = 'AccessibleIcon';\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, {\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\nAccessibleIcon.displayName = NAME;\n\nconst Root = AccessibleIcon;\n\nexport {\n AccessibleIcon,\n //\n Root,\n};\nexport type { AccessibleIconProps };\n"],"names":["AccessibleIcon","children","label","child","React","Children","only","_react","createElement","Fragment","cloneElement","focusable","_radixUiReactVisuallyHidden","Root"],"version":3,"file":"index.module.js.map"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@radix-ui/react-accessible-icon",
3
- "version": "0.1.4",
3
+ "version": "0.1.5-rc.1",
4
4
  "license": "MIT",
5
5
  "source": "src/index.ts",
6
6
  "main": "dist/index.js",
@@ -17,10 +17,10 @@
17
17
  },
18
18
  "dependencies": {
19
19
  "@babel/runtime": "^7.13.10",
20
- "@radix-ui/react-visually-hidden": "0.1.4"
20
+ "@radix-ui/react-visually-hidden": "0.1.5-rc.1"
21
21
  },
22
22
  "peerDependencies": {
23
- "react": "^16.8 || ^17.0"
23
+ "react": "^16.8 || ^17.0 || ^18.0"
24
24
  },
25
25
  "homepage": "https://radix-ui.com/primitives",
26
26
  "repository": {
@@ -29,5 +29,6 @@
29
29
  },
30
30
  "bugs": {
31
31
  "url": "https://github.com/radix-ui/primitives/issues"
32
- }
32
+ },
33
+ "stableVersion": "0.1.4"
33
34
  }