@pingux/astro 1.32.1-alpha.5 → 1.32.1-alpha.6

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.
@@ -20,6 +20,8 @@ var _react = _interopRequireDefault(require("react"));
20
20
 
21
21
  var _SearchIcon = _interopRequireDefault(require("mdi-react/SearchIcon"));
22
22
 
23
+ var _uuid = require("uuid");
24
+
23
25
  var _ = _interopRequireDefault(require("."));
24
26
 
25
27
  var _colors = require("../../styles/colors");
@@ -75,9 +77,16 @@ exports.Default = Default;
75
77
  var SVGIcons = function SVGIcons() {
76
78
  // SVGR can used to convert .svg files to components instead of doing this manually
77
79
  var SVGComponent = function SVGComponent(props) {
80
+ var id = (0, _uuid.v4)();
81
+ var _props$title = props.title,
82
+ title = _props$title === void 0 ? 'User Icon' : _props$title;
78
83
  return (0, _react2.jsx)("svg", (0, _extends2["default"])({
79
84
  viewBox: "0 0 24 24"
80
- }, props), (0, _react2.jsx)("path", {
85
+ }, props, {
86
+ "aria-labelledby": id
87
+ }), (0, _react2.jsx)("title", {
88
+ id: id
89
+ }, title), (0, _react2.jsx)("path", {
81
90
  fill: "currentColor",
82
91
  d: "M12,4A4,4 0 0,1 16,8A4,4 0 0,1 12,12A4,4 0 0,1 8,8A4,4 0 0,1 12,4M12,14C16.42,14 20,15.79 20,18V20H4V18C4,15.79 7.58,14 12,14Z"
83
92
  }));
@@ -3,6 +3,7 @@ import _slicedToArray from "@babel/runtime-corejs3/helpers/esm/slicedToArray";
3
3
  import _mapInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/map";
4
4
  import React from 'react';
5
5
  import SearchIcon from 'mdi-react/SearchIcon';
6
+ import { v4 as uuid } from 'uuid';
6
7
  import Icon from '.';
7
8
  import { flatColorList } from '../../styles/colors';
8
9
  import { jsx as ___EmotionJSX } from "@emotion/react";
@@ -50,9 +51,16 @@ export var Default = function Default(args) {
50
51
  export var SVGIcons = function SVGIcons() {
51
52
  // SVGR can used to convert .svg files to components instead of doing this manually
52
53
  var SVGComponent = function SVGComponent(props) {
54
+ var id = uuid();
55
+ var _props$title = props.title,
56
+ title = _props$title === void 0 ? 'User Icon' : _props$title;
53
57
  return ___EmotionJSX("svg", _extends({
54
58
  viewBox: "0 0 24 24"
55
- }, props), ___EmotionJSX("path", {
59
+ }, props, {
60
+ "aria-labelledby": id
61
+ }), ___EmotionJSX("title", {
62
+ id: id
63
+ }, title), ___EmotionJSX("path", {
56
64
  fill: "currentColor",
57
65
  d: "M12,4A4,4 0 0,1 16,8A4,4 0 0,1 12,12A4,4 0 0,1 8,8A4,4 0 0,1 12,4M12,14C16.42,14 20,15.79 20,18V20H4V18C4,15.79 7.58,14 12,14Z"
58
66
  }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pingux/astro",
3
- "version": "1.32.1-alpha.5",
3
+ "version": "1.32.1-alpha.6",
4
4
  "description": "PingUX themeable React component library",
5
5
  "repository": {
6
6
  "type": "git",