@ultraviolet/icons 2.0.3 → 2.2.0

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.
@@ -16,31 +16,36 @@ const StyledIcon = /*#__PURE__*/_styled('svg', {
16
16
  size
17
17
  } = _ref;
18
18
  return `${SIZES[size]}px`;
19
- }, ";height:", _ref2 => {
19
+ }, ";min-width:", _ref2 => {
20
20
  let {
21
21
  size
22
22
  } = _ref2;
23
23
  return `${SIZES[size]}px`;
24
- }, ";}path[fill].fill{fill:", _ref3 => {
24
+ }, ";height:", _ref3 => {
25
+ let {
26
+ size
27
+ } = _ref3;
28
+ return `${SIZES[size]}px`;
29
+ }, ";}path[fill].fill{fill:", _ref4 => {
25
30
  let {
26
31
  theme,
27
32
  variant,
28
33
  disabled
29
- } = _ref3;
34
+ } = _ref4;
30
35
  return `${theme.colors.other.icon.product[variant][disabled ? 'fillDisabled' : 'fill']}`;
31
- }, ";}path[fill].fillStrong{fill:", _ref4 => {
36
+ }, ";}path[fill].fillStrong{fill:", _ref5 => {
32
37
  let {
33
38
  theme,
34
39
  variant,
35
40
  disabled
36
- } = _ref4;
41
+ } = _ref5;
37
42
  return `${theme.colors.other.icon.product[variant][disabled ? 'fillStrongDisabled' : 'fillStrong']}`;
38
- }, ";}path[fill].fillWeak{fill:", _ref5 => {
43
+ }, ";}path[fill].fillWeak{fill:", _ref6 => {
39
44
  let {
40
45
  theme,
41
46
  variant,
42
47
  disabled
43
- } = _ref5;
48
+ } = _ref6;
44
49
  return `${theme.colors.other.icon.product[variant][disabled ? 'fillWeakDisabled' : 'fillWeak']}`;
45
50
  }, ";}");
46
51
 
@@ -48,13 +53,13 @@ const StyledIcon = /*#__PURE__*/_styled('svg', {
48
53
  * ProductIcon component is used to render a set of icons that are linked to a product or service.
49
54
  * Those icons are made of multiple colors that changes automatically based on the current theme.
50
55
  */
51
- const ProductIcon = _ref6 => {
56
+ const ProductIcon = _ref7 => {
52
57
  let {
53
58
  name,
54
59
  variant = 'primary',
55
60
  disabled,
56
61
  size = 'small'
57
- } = _ref6;
62
+ } = _ref7;
58
63
  return jsx(StyledIcon, {
59
64
  variant: variant,
60
65
  disabled: disabled,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ultraviolet/icons",
3
- "version": "2.0.3",
3
+ "version": "2.2.0",
4
4
  "description": "Ultraviolet Icons",
5
5
  "homepage": "https://github.com/scaleway/ultraviolet#readme",
6
6
  "repository": {
@@ -38,10 +38,10 @@
38
38
  "react-dom": "18.2.0"
39
39
  },
40
40
  "devDependencies": {
41
- "@babel/core": "7.22.19",
41
+ "@babel/core": "7.23.0",
42
42
  "@emotion/babel-plugin": "11.11.0",
43
- "@types/react": "18.2.21",
44
- "@types/react-dom": "18.2.7"
43
+ "@types/react": "18.2.25",
44
+ "@types/react-dom": "18.2.10"
45
45
  },
46
46
  "dependencies": {
47
47
  "@ultraviolet/themes": "1.2.1"