@flodesk/grain 5.16.0 → 5.16.2

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.
Files changed (64) hide show
  1. package/es/components/autocomplete.js +2 -2
  2. package/es/components/button.js +5 -5
  3. package/es/components/icon-button.js +2 -2
  4. package/es/components/icon-toggle.js +5 -5
  5. package/es/components/multi-autocomplete.js +4 -4
  6. package/es/components/select.js +2 -2
  7. package/es/components/text-toggle.js +4 -4
  8. package/es/foundational/field.js +5 -5
  9. package/es/foundational/index.js +1 -1
  10. package/es/foundational/menu.js +8 -8
  11. package/es/foundational/styles.js +12 -10
  12. package/es/icons/icon-align-center.js +11 -4
  13. package/es/icons/icon-align-left.js +12 -5
  14. package/es/icons/icon-align-right.js +12 -5
  15. package/es/icons/icon-arrow-down.js +3 -3
  16. package/es/icons/icon-arrow-left.js +3 -3
  17. package/es/icons/icon-arrow-right.js +3 -3
  18. package/es/icons/icon-arrow-up.js +3 -3
  19. package/es/icons/icon-browser.js +5 -34
  20. package/es/icons/icon-chart.js +11 -4
  21. package/es/icons/icon-check.js +13 -10
  22. package/es/icons/icon-chevron-down.js +5 -4
  23. package/es/icons/icon-chevron-horizontal.js +5 -4
  24. package/es/icons/icon-chevron-left.js +5 -4
  25. package/es/icons/icon-chevron-right.js +7 -18
  26. package/es/icons/icon-chevron-up.js +6 -10
  27. package/es/icons/icon-chevron-vertical.js +6 -19
  28. package/es/icons/icon-clip.js +14 -6
  29. package/es/icons/icon-clock.js +6 -11
  30. package/es/icons/icon-crop.js +2 -2
  31. package/es/icons/icon-cross.js +2 -2
  32. package/es/icons/icon-download.js +5 -5
  33. package/es/icons/icon-duplicate.js +6 -15
  34. package/es/icons/icon-ellipsis.js +5 -15
  35. package/es/icons/icon-file.js +11 -4
  36. package/es/icons/icon-folder-add.js +2 -2
  37. package/es/icons/icon-folder.js +2 -2
  38. package/es/icons/icon-gear.js +12 -10
  39. package/es/icons/icon-globe.js +11 -4
  40. package/es/icons/icon-heart.js +3 -2
  41. package/es/icons/icon-image.js +2 -2
  42. package/es/icons/icon-link.js +5 -9
  43. package/es/icons/icon-mail.js +2 -2
  44. package/es/icons/icon-minus.js +3 -3
  45. package/es/icons/icon-monitor.js +2 -2
  46. package/es/icons/icon-pencil.js +11 -4
  47. package/es/icons/icon-phone.js +2 -2
  48. package/es/icons/icon-plus.js +3 -3
  49. package/es/icons/icon-redo.js +2 -2
  50. package/es/icons/icon-search.js +6 -11
  51. package/es/icons/icon-send.js +5 -4
  52. package/es/icons/icon-share.js +11 -4
  53. package/es/icons/icon-smile.js +13 -23
  54. package/es/icons/icon-switch.js +2 -2
  55. package/es/icons/icon-tablet.js +2 -2
  56. package/es/icons/icon-text-align-center.js +5 -3
  57. package/es/icons/icon-text-align-left.js +5 -3
  58. package/es/icons/icon-text-align-right.js +5 -3
  59. package/es/icons/icon-trash.js +11 -4
  60. package/es/icons/icon-type.js +14 -5
  61. package/es/icons/icon-undo.js +11 -4
  62. package/es/icons/icon-upload.js +5 -5
  63. package/es/styles/variables.css +6 -6
  64. package/package.json +1 -1
@@ -7,13 +7,13 @@ import { jsx as ___EmotionJSX } from "@emotion/react";
7
7
 
8
8
  var IconRedo = function IconRedo(props) {
9
9
  return ___EmotionJSX("svg", _extends({
10
- viewBox: "0 0 24 32",
10
+ viewBox: "0 0 24 24",
11
11
  fill: "none",
12
12
  xmlns: "http://www.w3.org/2000/svg"
13
13
  }, props), ___EmotionJSX("path", {
14
14
  fillRule: "evenodd",
15
15
  clipRule: "evenodd",
16
- d: "M22.586 11.586 15 4l-1.414 1.414L20.172 12H8a8 8 0 1 0 0 16h4v-2H8a6 6 0 0 1 0-12h12.172l-6.586 6.586L15 22l7.586-7.586L24 13l-1.414-1.414Z",
16
+ d: "M22.586 7.586 15 0l-1.414 1.414L20.172 8H8a8 8 0 1 0 0 16h4v-2H8a6 6 0 0 1 0-12h12.172l-6.586 6.586L15 18l7.586-7.586L24 9l-1.414-1.414Z",
17
17
  fill: "currentColor"
18
18
  }));
19
19
  };
@@ -7,19 +7,14 @@ import { jsx as ___EmotionJSX } from "@emotion/react";
7
7
 
8
8
  var IconSearch = function IconSearch(props) {
9
9
  return ___EmotionJSX("svg", _extends({
10
- viewBox: "0 0 24 32",
10
+ viewBox: "0 0 24 24",
11
11
  fill: "none",
12
12
  xmlns: "http://www.w3.org/2000/svg"
13
- }, props), ___EmotionJSX("circle", {
14
- cx: 9,
15
- cy: 13,
16
- r: 8,
17
- stroke: "currentColor",
18
- strokeWidth: 2
19
- }), ___EmotionJSX("path", {
20
- d: "m23.25 27.25-8-8",
21
- stroke: "currentColor",
22
- strokeWidth: 2
13
+ }, props), ___EmotionJSX("path", {
14
+ fillRule: "evenodd",
15
+ clipRule: "evenodd",
16
+ d: "M2 9a7 7 0 1 1 14 0A7 7 0 0 1 2 9Zm7-9a9 9 0 1 0 5.618 16.032l7.925 7.925 1.414-1.414-7.925-7.925A9 9 0 0 0 9 0Z",
17
+ fill: "currentColor"
23
18
  }));
24
19
  };
25
20
 
@@ -7,13 +7,14 @@ import { jsx as ___EmotionJSX } from "@emotion/react";
7
7
 
8
8
  var IconSend = function IconSend(props) {
9
9
  return ___EmotionJSX("svg", _extends({
10
- viewBox: "0 0 28 32",
10
+ viewBox: "0 0 25 25",
11
11
  fill: "none",
12
12
  xmlns: "http://www.w3.org/2000/svg"
13
13
  }, props), ___EmotionJSX("path", {
14
- d: "M26.275 3.936L2.773 11.769l10.446 5.223 5.222 10.445 7.834-23.501zM26.083 4.128L13.219 16.992",
15
- stroke: "currentColor",
16
- strokeWidth: 2
14
+ fillRule: "evenodd",
15
+ clipRule: "evenodd",
16
+ d: "M24.368 1.897 25 0l-1.897.632L3.287 7.238.997 8l2.159 1.08 8.509 4.254 4.254 8.51L17 24.003l.764-2.29 6.605-19.817Zm-12.155 9.476L6.21 8.372 19.716 3.87l-7.504 7.503Zm1.414 1.414 3.002 6.004L21.13 5.283l-7.504 7.504Z",
17
+ fill: "currentColor"
17
18
  }));
18
19
  };
19
20
 
@@ -7,15 +7,22 @@ import { jsx as ___EmotionJSX } from "@emotion/react";
7
7
 
8
8
  var IconShare = function IconShare(props) {
9
9
  return ___EmotionJSX("svg", _extends({
10
- viewBox: "0 0 24 32",
10
+ viewBox: "0 0 24 24",
11
11
  fill: "none",
12
12
  xmlns: "http://www.w3.org/2000/svg"
13
- }, props), ___EmotionJSX("path", {
13
+ }, props), ___EmotionJSX("g", {
14
+ clipPath: "url(#Share_svg__a)"
15
+ }, ___EmotionJSX("path", {
14
16
  fillRule: "evenodd",
15
17
  clipRule: "evenodd",
16
- d: "M2 6v20h20v-5.889h2V26a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V6c0-1.103.893-2 1.999-2H7.889v2H2Zm10.03 0H12V4H22.999L23 5V4h1v12h-2V7.414L9.707 19.707l-1.414-1.414L20.586 6H12.029Z",
18
+ d: "M12.03 2H12V0H22.999L23 1V0h1v12h-2V3.414L9.707 15.707l-1.414-1.414L20.586 2H12.029ZM2 4v18h18v-7.889h2V22a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V4c0-1.102.89-2 1.998-2H9.888v2H2Z",
17
19
  fill: "currentColor"
18
- }));
20
+ })), ___EmotionJSX("defs", null, ___EmotionJSX("clipPath", {
21
+ id: "Share_svg__a"
22
+ }, ___EmotionJSX("path", {
23
+ fill: "#fff",
24
+ d: "M0 0h24v24H0z"
25
+ }))));
19
26
  };
20
27
 
21
28
  export default IconShare;
@@ -7,32 +7,22 @@ import { jsx as ___EmotionJSX } from "@emotion/react";
7
7
 
8
8
  var IconSmile = function IconSmile(props) {
9
9
  return ___EmotionJSX("svg", _extends({
10
- viewBox: "0 0 28 32",
10
+ viewBox: "0 0 24 24",
11
11
  fill: "none",
12
12
  xmlns: "http://www.w3.org/2000/svg"
13
- }, props), ___EmotionJSX("circle", {
14
- cx: 14,
15
- cy: 16,
16
- r: 13,
17
- stroke: "currentColor",
18
- strokeWidth: 2
19
- }), ___EmotionJSX("path", {
20
- d: "M20.5 18.598A6.998 6.998 0 0 1 14 23a7 7 0 0 1-6.5-4.402",
21
- stroke: "currentColor",
22
- strokeWidth: 2,
23
- strokeLinecap: "round",
24
- strokeLinejoin: "round"
25
- }), ___EmotionJSX("circle", {
26
- cx: 9,
27
- cy: 13,
28
- r: 2,
13
+ }, props), ___EmotionJSX("g", {
14
+ clipPath: "url(#Smile_svg__a)"
15
+ }, ___EmotionJSX("path", {
16
+ fillRule: "evenodd",
17
+ clipRule: "evenodd",
18
+ d: "M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Zm2 0c0 6.627-5.373 12-12 12S0 18.627 0 12 5.373 0 12 0s12 5.373 12 12Zm-12 8a7 7 0 0 0 6.5-4.402 1 1 0 1 0-1.857-.742A4.998 4.998 0 0 1 12 18a5 5 0 0 1-4.643-3.144 1 1 0 1 0-1.857.742A6.998 6.998 0 0 0 12 20Zm6-10a2 2 0 1 1-4 0 2 2 0 0 1 4 0ZM8 12a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z",
29
19
  fill: "currentColor"
30
- }), ___EmotionJSX("circle", {
31
- cx: 19,
32
- cy: 13,
33
- r: 2,
34
- fill: "currentColor"
35
- }));
20
+ })), ___EmotionJSX("defs", null, ___EmotionJSX("clipPath", {
21
+ id: "Smile_svg__a"
22
+ }, ___EmotionJSX("path", {
23
+ fill: "#fff",
24
+ d: "M0 0h24v24H0z"
25
+ }))));
36
26
  };
37
27
 
38
28
  export default IconSmile;
@@ -7,13 +7,13 @@ import { jsx as ___EmotionJSX } from "@emotion/react";
7
7
 
8
8
  var IconSwitch = function IconSwitch(props) {
9
9
  return ___EmotionJSX("svg", _extends({
10
- viewBox: "0 0 24 32",
10
+ viewBox: "0 0 24 24",
11
11
  fill: "none",
12
12
  xmlns: "http://www.w3.org/2000/svg"
13
13
  }, props), ___EmotionJSX("path", {
14
14
  fillRule: "evenodd",
15
15
  clipRule: "evenodd",
16
- d: "M7.993 2.043l-7.25 7.25L.036 10l.707.707 7.25 7.25 1.414-1.414L3.864 11H24V9H3.864l5.543-5.543-1.414-1.414zm15.264 20.664l-7.25 7.25-1.414-1.414L20.136 23H0v-2h20.136l-5.543-5.543 1.414-1.414 7.25 7.25.707.707-.707.707z",
16
+ d: "M6.993.043l-6.25 6.25L.036 7l.707.707 6.25 6.25 1.414-1.414L3.864 8H18V6H3.864l4.543-4.543L6.993.043zm16.264 17.664l-6.25 6.25-1.414-1.414L20.136 18H6v-2h14.136l-4.543-4.543 1.414-1.414 6.25 6.25.707.707-.707.707z",
17
17
  fill: "currentColor"
18
18
  }));
19
19
  };
@@ -7,13 +7,13 @@ import { jsx as ___EmotionJSX } from "@emotion/react";
7
7
 
8
8
  var IconTablet = function IconTablet(props) {
9
9
  return ___EmotionJSX("svg", _extends({
10
- viewBox: "0 0 20 32",
10
+ viewBox: "0 0 20 24",
11
11
  fill: "none",
12
12
  xmlns: "http://www.w3.org/2000/svg"
13
13
  }, props), ___EmotionJSX("path", {
14
14
  fillRule: "evenodd",
15
15
  clipRule: "evenodd",
16
- d: "M2 4a2 2 0 00-2 2v20a2 2 0 002 2h16a2 2 0 002-2V6a2 2 0 00-2-2H2zm0 2h16v20H2V6zm12 16H6v2h8v-2z",
16
+ d: "M2 0a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2Zm0 2h16v20H2V2Zm12 16H6v2h8v-2Z",
17
17
  fill: "currentColor"
18
18
  }));
19
19
  };
@@ -7,12 +7,14 @@ import { jsx as ___EmotionJSX } from "@emotion/react";
7
7
 
8
8
  var IconTextAlignCenter = function IconTextAlignCenter(props) {
9
9
  return ___EmotionJSX("svg", _extends({
10
- viewBox: "0 0 24 32",
10
+ viewBox: "0 0 24 24",
11
11
  fill: "none",
12
12
  xmlns: "http://www.w3.org/2000/svg"
13
13
  }, props), ___EmotionJSX("path", {
14
- fill: "currentColor",
15
- d: "M0 15h24v2H0zM4 9h16v2H4zM7 21h10v2H7z"
14
+ fillRule: "evenodd",
15
+ clipRule: "evenodd",
16
+ d: "M4 5h16v2H4V5Zm-4 6h24v2H0v-2Zm17 6H7v2h10v-2Z",
17
+ fill: "currentColor"
16
18
  }));
17
19
  };
18
20
 
@@ -7,12 +7,14 @@ import { jsx as ___EmotionJSX } from "@emotion/react";
7
7
 
8
8
  var IconTextAlignLeft = function IconTextAlignLeft(props) {
9
9
  return ___EmotionJSX("svg", _extends({
10
- viewBox: "0 0 24 32",
10
+ viewBox: "0 0 24 24",
11
11
  fill: "none",
12
12
  xmlns: "http://www.w3.org/2000/svg"
13
13
  }, props), ___EmotionJSX("path", {
14
- fill: "currentColor",
15
- d: "M0 15h24v2H0zM0 9h16v2H0zM0 21h10v2H0z"
14
+ fillRule: "evenodd",
15
+ clipRule: "evenodd",
16
+ d: "M0 5h16v2H0V5Zm0 6h24v2H0v-2Zm10 6H0v2h10v-2Z",
17
+ fill: "currentColor"
16
18
  }));
17
19
  };
18
20
 
@@ -7,12 +7,14 @@ import { jsx as ___EmotionJSX } from "@emotion/react";
7
7
 
8
8
  var IconTextAlignRight = function IconTextAlignRight(props) {
9
9
  return ___EmotionJSX("svg", _extends({
10
- viewBox: "0 0 24 32",
10
+ viewBox: "0 0 24 24",
11
11
  fill: "none",
12
12
  xmlns: "http://www.w3.org/2000/svg"
13
13
  }, props), ___EmotionJSX("path", {
14
- fill: "currentColor",
15
- d: "M0 15h24v2H0zM8 9h16v2H8zM14 21h10v2H14z"
14
+ fillRule: "evenodd",
15
+ clipRule: "evenodd",
16
+ d: "M8 5h16v2H8V5Zm-8 6h24v2H0v-2Zm24 6H14v2h10v-2Z",
17
+ fill: "currentColor"
16
18
  }));
17
19
  };
18
20
 
@@ -7,15 +7,22 @@ import { jsx as ___EmotionJSX } from "@emotion/react";
7
7
 
8
8
  var IconTrash = function IconTrash(props) {
9
9
  return ___EmotionJSX("svg", _extends({
10
- viewBox: "0 0 24 32",
10
+ viewBox: "0 0 20 24",
11
11
  fill: "none",
12
12
  xmlns: "http://www.w3.org/2000/svg"
13
- }, props), ___EmotionJSX("path", {
13
+ }, props), ___EmotionJSX("g", {
14
+ clipPath: "url(#Trash_svg__a)"
15
+ }, ___EmotionJSX("path", {
14
16
  fillRule: "evenodd",
15
17
  clipRule: "evenodd",
16
- d: "M8 4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2h6a2 2 0 0 1 2 2v4h-2v16a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V12H0V8a2 2 0 0 1 2-2h6V4Zm2 2h4V4h-4v2Zm-8 4h20V8H2v2Zm18 2H4v16h16V12Z",
18
+ d: "M6 2a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2h4a2 2 0 0 1 2 2v4h-2v12a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V10H0V6a2 2 0 0 1 2-2h4V2Zm2 2h4V2H8v2ZM2 8h16V6H2v2Zm14 2H4v12h12V10Z",
17
19
  fill: "currentColor"
18
- }));
20
+ })), ___EmotionJSX("defs", null, ___EmotionJSX("clipPath", {
21
+ id: "Trash_svg__a"
22
+ }, ___EmotionJSX("path", {
23
+ fill: "#fff",
24
+ d: "M0 0h20v24H0z"
25
+ }))));
19
26
  };
20
27
 
21
28
  export default IconTrash;
@@ -7,13 +7,22 @@ import { jsx as ___EmotionJSX } from "@emotion/react";
7
7
 
8
8
  var IconType = function IconType(props) {
9
9
  return ___EmotionJSX("svg", _extends({
10
- viewBox: "0 0 16 32",
10
+ viewBox: "0 0 16 24",
11
11
  fill: "none",
12
12
  xmlns: "http://www.w3.org/2000/svg"
13
- }, props), ___EmotionJSX("path", {
14
- fill: "currentColor",
15
- d: "M0 4h16v2H0zM0 26h16v2H0zM7 6h2v20H7z"
16
- }));
13
+ }, props), ___EmotionJSX("g", {
14
+ clipPath: "url(#Type_svg__a)"
15
+ }, ___EmotionJSX("path", {
16
+ fillRule: "evenodd",
17
+ clipRule: "evenodd",
18
+ d: "M0 0h16v2H9v20h7v2H0v-2h7V2H0V0Z",
19
+ fill: "currentColor"
20
+ })), ___EmotionJSX("defs", null, ___EmotionJSX("clipPath", {
21
+ id: "Type_svg__a"
22
+ }, ___EmotionJSX("path", {
23
+ fill: "#fff",
24
+ d: "M0 0h16v24H0z"
25
+ }))));
17
26
  };
18
27
 
19
28
  export default IconType;
@@ -7,15 +7,22 @@ import { jsx as ___EmotionJSX } from "@emotion/react";
7
7
 
8
8
  var IconUndo = function IconUndo(props) {
9
9
  return ___EmotionJSX("svg", _extends({
10
- viewBox: "0 0 24 32",
10
+ viewBox: "0 0 24 24",
11
11
  fill: "none",
12
12
  xmlns: "http://www.w3.org/2000/svg"
13
- }, props), ___EmotionJSX("path", {
13
+ }, props), ___EmotionJSX("g", {
14
+ clipPath: "url(#Undo_svg__a)"
15
+ }, ___EmotionJSX("path", {
14
16
  fillRule: "evenodd",
15
17
  clipRule: "evenodd",
16
- d: "M1.414 11.586 9 4l1.414 1.414L3.828 12H16a8 8 0 1 1 0 16h-4v-2h4a6 6 0 0 0 0-12H3.828l6.586 6.586L9 22l-7.586-7.586L0 13l1.414-1.414Z",
18
+ d: "M1.414 7.586 9 0l1.414 1.414L3.828 8H16a8 8 0 1 1 0 16h-4v-2h4a6 6 0 0 0 0-12H3.828l6.586 6.586L9 18l-7.586-7.586L0 9l1.414-1.414Z",
17
19
  fill: "currentColor"
18
- }));
20
+ })), ___EmotionJSX("defs", null, ___EmotionJSX("clipPath", {
21
+ id: "Undo_svg__a"
22
+ }, ___EmotionJSX("path", {
23
+ fill: "#fff",
24
+ d: "M0 0h24v24H0z"
25
+ }))));
19
26
  };
20
27
 
21
28
  export default IconUndo;
@@ -7,21 +7,21 @@ import { jsx as ___EmotionJSX } from "@emotion/react";
7
7
 
8
8
  var IconUpload = function IconUpload(props) {
9
9
  return ___EmotionJSX("svg", _extends({
10
- viewBox: "0 0 24 32",
10
+ viewBox: "0 0 24 24",
11
11
  fill: "none",
12
12
  xmlns: "http://www.w3.org/2000/svg"
13
13
  }, props), ___EmotionJSX("g", {
14
- clipPath: "url(#prefix__clip0_262_741)"
14
+ clipPath: "url(#Upload_svg__a)"
15
15
  }, ___EmotionJSX("path", {
16
16
  fillRule: "evenodd",
17
17
  clipRule: "evenodd",
18
- d: "M22 14l-8.586-8.586L12 4l-1.414 1.414L2 14l1.414 1.414L11 7.828V24h2V7.828l7.586 7.586L22 14zM0 20v6a2 2 0 002 2h20a2 2 0 002-2v-6h-2v6H2v-6H0z",
18
+ d: "m22 10-8.586-8.586L12 0l-1.414 1.414L2 10l1.414 1.414L11 3.828V20h2V3.828l7.586 7.586L22 10ZM0 16v6a2 2 0 0 0 2 2h20a2 2 0 0 0 2-2v-6h-2v6H2v-6H0Z",
19
19
  fill: "currentColor"
20
20
  })), ___EmotionJSX("defs", null, ___EmotionJSX("clipPath", {
21
- id: "prefix__clip0_262_741"
21
+ id: "Upload_svg__a"
22
22
  }, ___EmotionJSX("path", {
23
23
  fill: "#fff",
24
- d: "M0 0h24v32H0z"
24
+ d: "M0 0h24v24H0z"
25
25
  }))));
26
26
  };
27
27
 
@@ -10,13 +10,13 @@
10
10
  --grn-text-xxl: 30px;
11
11
  }
12
12
 
13
- /* ~ text size ✕ 1.6 */
13
+ /* text size ✕ ~1.285 */
14
14
  :root {
15
- --grn-icon-s: 20px;
16
- --grn-icon-m: 24px;
17
- --grn-icon-l: 32px;
18
- --grn-icon-xl: 38px;
19
- --grn-icon-xxl: 48px;
15
+ --grn-icon-s: 14px;
16
+ --grn-icon-m: 18px;
17
+ --grn-icon-l: 24px;
18
+ --grn-icon-xl: 32px;
19
+ --grn-icon-xxl: 40px;
20
20
  }
21
21
 
22
22
  :root {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flodesk/grain",
3
- "version": "5.16.0",
3
+ "version": "5.16.2",
4
4
  "description": "Flodesk design system",
5
5
  "module": "es/index.js",
6
6
  "author": "Flodesk",