@spectrum-icons/illustrations 3.5.1-nightly.3575 → 3.5.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/README.md ADDED
@@ -0,0 +1,3 @@
1
+ # @spectrum-icons/illustrations
2
+
3
+ This package is part of [react-spectrum](https://github.com/adobe/react-spectrum). See the repo for more details.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spectrum-icons/illustrations",
3
- "version": "3.5.1-nightly.3575+a13802d8b",
3
+ "version": "3.5.1",
4
4
  "description": "Spectrum UI components in React",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -12,11 +12,11 @@
12
12
  },
13
13
  "dependencies": {
14
14
  "@babel/runtime": "^7.6.2",
15
- "@react-aria/utils": "3.0.0-nightly.1875+a13802d8b",
16
- "@react-spectrum/icon": "3.0.0-nightly.1875+a13802d8b"
15
+ "@react-aria/utils": "^3.14.1",
16
+ "@react-spectrum/icon": "^3.6.2"
17
17
  },
18
18
  "devDependencies": {
19
- "@spectrum-icons/build-tools": "3.0.0-nightly.1875+a13802d8b"
19
+ "@spectrum-icons/build-tools": "3.0.0-alpha.1"
20
20
  },
21
21
  "peerDependencies": {
22
22
  "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0"
@@ -24,5 +24,5 @@
24
24
  "publishConfig": {
25
25
  "access": "public"
26
26
  },
27
- "gitHead": "a13802d8be6f83af1450e56f7a88527b10d9cadf"
27
+ "gitHead": "2954307ddbefe149241685440c81f80ece6b2c83"
28
28
  }
package/utils.d.ts ADDED
@@ -0,0 +1,6 @@
1
+ import { AriaLabelingProps, DOMProps } from '@react-types/shared';
2
+ import { SVGAttributes } from 'react';
3
+ export interface IllustrationProps extends DOMProps, AriaLabelingProps {
4
+ }
5
+ export declare function getIllustrationProps(props: IllustrationProps): SVGAttributes<SVGElement>;
6
+ //# sourceMappingURL=utils.d.ts.map
package/utils.d.ts.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,iBAAiB,EAAE,QAAQ,EAAC,MAAM,qBAAqB,CAAC;AAEhE,OAAO,EAAC,aAAa,EAAC,MAAM,OAAO,CAAC;AAEpC,MAAM,WAAW,iBAAkB,SAAQ,QAAQ,EAAE,iBAAiB;CAAG;AAEzE,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,iBAAiB,GAAG,aAAa,CAAC,UAAU,CAAC,CAOxF"}
package/utils.js ADDED
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.getIllustrationProps = getIllustrationProps;
5
+
6
+ var _utils = require("@react-aria/utils");
7
+
8
+ function getIllustrationProps(props) {
9
+ let hasLabel = props['aria-label'] || props['aria-labelledby'];
10
+ return { ...(0, _utils.filterDOMProps)(props, {
11
+ labelable: true
12
+ }),
13
+ role: hasLabel ? 'img' : undefined,
14
+ 'aria-hidden': hasLabel ? undefined : true
15
+ };
16
+ }