@codecademy/gamut-icons 8.1.2-alpha.b29ebf.0 → 8.1.2-alpha.dfdc7f.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.
Files changed (215) hide show
  1. package/dist/icons/mini/MiniAddIcon.js +11 -8
  2. package/dist/icons/mini/MiniArrowDownIcon.js +11 -8
  3. package/dist/icons/mini/MiniArrowLeftIcon.js +11 -8
  4. package/dist/icons/mini/MiniArrowRightIcon.js +11 -8
  5. package/dist/icons/mini/MiniArrowUpIcon.js +11 -8
  6. package/dist/icons/mini/MiniCheckCircleIcon.js +11 -8
  7. package/dist/icons/mini/MiniChevronDownIcon.js +11 -8
  8. package/dist/icons/mini/MiniChevronLeftIcon.js +11 -8
  9. package/dist/icons/mini/MiniChevronRightIcon.js +11 -8
  10. package/dist/icons/mini/MiniChevronUpIcon.js +11 -8
  11. package/dist/icons/mini/MiniDeleteIcon.js +11 -8
  12. package/dist/icons/mini/MiniInfoCircleIcon.js +11 -8
  13. package/dist/icons/mini/MiniInfoOutlineIcon.js +11 -8
  14. package/dist/icons/mini/MiniKebabMenuIcon.js +11 -8
  15. package/dist/icons/mini/MiniRemoveCircleIcon.js +11 -8
  16. package/dist/icons/mini/MiniRibbonIcon.js +11 -8
  17. package/dist/icons/mini/MiniStarIcon.js +11 -8
  18. package/dist/icons/mini/MiniWarningTriangleIcon.js +11 -8
  19. package/dist/icons/regular/AccountingCoinsIcon.js +9 -6
  20. package/dist/icons/regular/AddBoldIcon.js +11 -8
  21. package/dist/icons/regular/AddIcon.js +11 -8
  22. package/dist/icons/regular/AlarmClockIcon.js +9 -6
  23. package/dist/icons/regular/AlertIcon.js +9 -6
  24. package/dist/icons/regular/AmexIcon.js +9 -6
  25. package/dist/icons/regular/AnalyticsGraphIcon.js +11 -8
  26. package/dist/icons/regular/ArrowChevronDownFilledIcon.js +11 -8
  27. package/dist/icons/regular/ArrowChevronDownIcon.js +11 -8
  28. package/dist/icons/regular/ArrowChevronLeftIcon.js +11 -8
  29. package/dist/icons/regular/ArrowChevronRightIcon.js +11 -8
  30. package/dist/icons/regular/ArrowChevronUpIcon.js +11 -8
  31. package/dist/icons/regular/ArrowDownIcon.js +11 -8
  32. package/dist/icons/regular/ArrowLeftIcon.js +11 -8
  33. package/dist/icons/regular/ArrowRightIcon.js +11 -8
  34. package/dist/icons/regular/ArrowUpIcon.js +11 -8
  35. package/dist/icons/regular/ArticleIcon.js +9 -6
  36. package/dist/icons/regular/BadgeIcon.js +9 -6
  37. package/dist/icons/regular/BellIcon.js +11 -8
  38. package/dist/icons/regular/BookClosedBookmarkIcon.js +9 -6
  39. package/dist/icons/regular/BookFlipPageIcon.js +9 -6
  40. package/dist/icons/regular/BriefcaseIcon.js +9 -6
  41. package/dist/icons/regular/BrowserPageLayoutIcon.js +11 -8
  42. package/dist/icons/regular/BulbIcon.js +11 -8
  43. package/dist/icons/regular/CalendarIcon.js +9 -6
  44. package/dist/icons/regular/CallIcon.js +11 -8
  45. package/dist/icons/regular/CertificateIcon.js +9 -6
  46. package/dist/icons/regular/ChallengeProjectIcon.js +11 -8
  47. package/dist/icons/regular/ChatIcon.js +11 -8
  48. package/dist/icons/regular/CheckCircledIcon.js +9 -6
  49. package/dist/icons/regular/CheckFilledIcon.js +11 -8
  50. package/dist/icons/regular/CheckHeavyIcon.js +11 -8
  51. package/dist/icons/regular/CheckIcon.js +11 -8
  52. package/dist/icons/regular/ChecklistIcon.js +9 -6
  53. package/dist/icons/regular/ClockIcon.js +9 -6
  54. package/dist/icons/regular/CloseCircleIcon.js +9 -6
  55. package/dist/icons/regular/CloseIcon.js +11 -8
  56. package/dist/icons/regular/CloudCheckIcon.js +9 -6
  57. package/dist/icons/regular/CloudIcon.js +11 -8
  58. package/dist/icons/regular/CommentsIcon.js +11 -8
  59. package/dist/icons/regular/CommunityIcon.js +9 -6
  60. package/dist/icons/regular/ConversationChatIcon.js +11 -8
  61. package/dist/icons/regular/CopyIcon.js +9 -6
  62. package/dist/icons/regular/CreditCardIcon.js +11 -8
  63. package/dist/icons/regular/CubeIcon.js +11 -8
  64. package/dist/icons/regular/DataFileBarsShareIcon.js +9 -6
  65. package/dist/icons/regular/DataTransferVerticalIcon.js +11 -8
  66. package/dist/icons/regular/DeleteFilledIcon.js +11 -8
  67. package/dist/icons/regular/DeleteIcon.js +9 -6
  68. package/dist/icons/regular/DiamondIcon.js +9 -6
  69. package/dist/icons/regular/DiscountStarPremiumFilledIcon.js +9 -6
  70. package/dist/icons/regular/DownloadIcon.js +11 -8
  71. package/dist/icons/regular/EarthIcon.js +11 -8
  72. package/dist/icons/regular/EditIcon.js +9 -6
  73. package/dist/icons/regular/EditorIcon.js +9 -6
  74. package/dist/icons/regular/EmailIcon.js +9 -6
  75. package/dist/icons/regular/ExperienceIcon.js +9 -6
  76. package/dist/icons/regular/ExploreIcon.js +9 -6
  77. package/dist/icons/regular/FacebookIcon.js +11 -8
  78. package/dist/icons/regular/FaviconIcon.js +11 -8
  79. package/dist/icons/regular/FaviconSolidIcon.js +9 -6
  80. package/dist/icons/regular/FileAddIcon.js +9 -6
  81. package/dist/icons/regular/FileCodeAdd1Icon.js +9 -6
  82. package/dist/icons/regular/FileDownloadIcon.js +9 -6
  83. package/dist/icons/regular/FileEditIcon.js +11 -8
  84. package/dist/icons/regular/FileIcon.js +11 -8
  85. package/dist/icons/regular/FileLockIcon.js +11 -8
  86. package/dist/icons/regular/FilePyIcon.js +9 -6
  87. package/dist/icons/regular/FileSearchIcon.js +9 -6
  88. package/dist/icons/regular/FilterIcon.js +11 -8
  89. package/dist/icons/regular/FitNormalIcon.js +11 -8
  90. package/dist/icons/regular/FitShrinkIcon.js +11 -8
  91. package/dist/icons/regular/FitnessDumbbellIcon.js +9 -6
  92. package/dist/icons/regular/FolderAddIcon.js +9 -6
  93. package/dist/icons/regular/FolderIcon.js +11 -8
  94. package/dist/icons/regular/ForkIcon.js +9 -6
  95. package/dist/icons/regular/ForumsChatIcon.js +11 -8
  96. package/dist/icons/regular/FullscreenIcon.js +11 -8
  97. package/dist/icons/regular/GearIcon.js +9 -6
  98. package/dist/icons/regular/GithubIcon.js +11 -8
  99. package/dist/icons/regular/GithubOutlineIcon.js +11 -8
  100. package/dist/icons/regular/GlassesIcon.js +9 -6
  101. package/dist/icons/regular/GplusIcon.js +11 -8
  102. package/dist/icons/regular/GraphStatsAscendIcon.js +11 -8
  103. package/dist/icons/regular/GrowthIcon.js +9 -6
  104. package/dist/icons/regular/HalloweenBroomIcon.js +11 -8
  105. package/dist/icons/regular/HouseEntranceIcon.js +11 -8
  106. package/dist/icons/regular/HyperlinkIcon.js +9 -6
  107. package/dist/icons/regular/ImageIcon.js +9 -6
  108. package/dist/icons/regular/InProgressIcon.js +9 -6
  109. package/dist/icons/regular/InfoCircleIcon.js +9 -6
  110. package/dist/icons/regular/InformationalIcon.js +9 -6
  111. package/dist/icons/regular/InstagramIcon.js +11 -8
  112. package/dist/icons/regular/InstructionsIcon.js +9 -6
  113. package/dist/icons/regular/IntersectionIcon.js +9 -6
  114. package/dist/icons/regular/JavaIcon.js +11 -8
  115. package/dist/icons/regular/JavascriptIcon.js +9 -6
  116. package/dist/icons/regular/JiraIcon.js +9 -6
  117. package/dist/icons/regular/LearnIcon.js +9 -6
  118. package/dist/icons/regular/LessonIcon.js +9 -6
  119. package/dist/icons/regular/LevelIcon.js +11 -8
  120. package/dist/icons/regular/LifePreserverIcon.js +9 -6
  121. package/dist/icons/regular/LinkIcon.js +11 -8
  122. package/dist/icons/regular/LinkedinIcon.js +11 -8
  123. package/dist/icons/regular/LinkedinOutlineIcon.js +11 -8
  124. package/dist/icons/regular/ListIcon.js +9 -6
  125. package/dist/icons/regular/LocationPinIcon.js +9 -6
  126. package/dist/icons/regular/Lock1Icon.js +11 -8
  127. package/dist/icons/regular/LockHeavyIcon.js +11 -8
  128. package/dist/icons/regular/LockIcon.js +9 -6
  129. package/dist/icons/regular/MaintenanceIcon.js +9 -6
  130. package/dist/icons/regular/MapFingerIcon.js +11 -8
  131. package/dist/icons/regular/MapPinIcon.js +11 -8
  132. package/dist/icons/regular/MarkerIcon.js +11 -8
  133. package/dist/icons/regular/MastercardIcon.js +9 -6
  134. package/dist/icons/regular/MediumIcon.js +11 -8
  135. package/dist/icons/regular/MegaphoneIcon.js +11 -8
  136. package/dist/icons/regular/MenuIcon.js +11 -8
  137. package/dist/icons/regular/MinimizeIcon.js +11 -8
  138. package/dist/icons/regular/MonitorBookIcon.js +11 -8
  139. package/dist/icons/regular/MultipleActionsViewIcon.js +9 -6
  140. package/dist/icons/regular/MultipleUsersIcon.js +11 -8
  141. package/dist/icons/regular/NarrativeIcon.js +11 -8
  142. package/dist/icons/regular/NetworkUserIcon.js +11 -8
  143. package/dist/icons/regular/NotebookIcon.js +9 -6
  144. package/dist/icons/regular/ObjectiveIcon.js +11 -8
  145. package/dist/icons/regular/OneTimeIcon.js +4 -2
  146. package/dist/icons/regular/OpenIcon.js +11 -8
  147. package/dist/icons/regular/OverviewIcon.js +9 -6
  148. package/dist/icons/regular/PathChangeIcon.js +11 -8
  149. package/dist/icons/regular/PathCompleteIcon.js +11 -8
  150. package/dist/icons/regular/PathIcon.js +9 -6
  151. package/dist/icons/regular/PauseIcon.js +9 -6
  152. package/dist/icons/regular/PdfIcon.js +9 -6
  153. package/dist/icons/regular/PeopleIcon.js +9 -6
  154. package/dist/icons/regular/PersonChatIcon.js +9 -6
  155. package/dist/icons/regular/PersonIcon.js +9 -6
  156. package/dist/icons/regular/PhoneIcon.js +9 -6
  157. package/dist/icons/regular/PieLineGraphIcon.js +9 -6
  158. package/dist/icons/regular/PinIcon.js +11 -8
  159. package/dist/icons/regular/PlayCircledIcon.js +9 -6
  160. package/dist/icons/regular/PlayIcon.js +11 -8
  161. package/dist/icons/regular/PortfolioProjectIcon.js +11 -8
  162. package/dist/icons/regular/ProgrammingBrowserIcon.js +11 -8
  163. package/dist/icons/regular/ProjectsIcon.js +11 -8
  164. package/dist/icons/regular/PythonIcon.js +9 -6
  165. package/dist/icons/regular/QuizIcon.js +9 -6
  166. package/dist/icons/regular/RadarIcon.js +9 -6
  167. package/dist/icons/regular/RailsIcon.js +11 -8
  168. package/dist/icons/regular/RatingStarCircleIcon.js +9 -6
  169. package/dist/icons/regular/RatingStarGiveIcon.js +11 -8
  170. package/dist/icons/regular/ReactIcon.js +11 -8
  171. package/dist/icons/regular/RedditIcon.js +9 -6
  172. package/dist/icons/regular/RefreshIcon.js +11 -8
  173. package/dist/icons/regular/ResetIcon.js +11 -8
  174. package/dist/icons/regular/ResponsiveIcon.js +9 -6
  175. package/dist/icons/regular/RibbonDoubleFilledIcon.js +9 -6
  176. package/dist/icons/regular/RibbonDoubleIcon.js +9 -6
  177. package/dist/icons/regular/RibbonFilledIcon.js +11 -8
  178. package/dist/icons/regular/RibbonIcon.js +11 -8
  179. package/dist/icons/regular/RoadmapIcon.js +11 -8
  180. package/dist/icons/regular/RocketIcon.js +9 -6
  181. package/dist/icons/regular/RubyIcon.js +9 -6
  182. package/dist/icons/regular/SearchIcon.js +25 -37
  183. package/dist/icons/regular/SettingsSliderVerticalIcon.js +11 -8
  184. package/dist/icons/regular/ShareIcon.js +9 -6
  185. package/dist/icons/regular/SlackIcon.js +11 -8
  186. package/dist/icons/regular/SmallCheckIcon.js +11 -8
  187. package/dist/icons/regular/StackedSquaresIcon.js +11 -8
  188. package/dist/icons/regular/StarCircleIcon.js +11 -8
  189. package/dist/icons/regular/StarFilledCircleIcon.js +11 -8
  190. package/dist/icons/regular/StarFilledIcon.js +11 -8
  191. package/dist/icons/regular/StarIcon.js +11 -8
  192. package/dist/icons/regular/StreakIcon.js +11 -8
  193. package/dist/icons/regular/StudyBookIcon.js +9 -6
  194. package/dist/icons/regular/SupportFilledIcon.js +11 -8
  195. package/dist/icons/regular/SupportIcon.js +9 -6
  196. package/dist/icons/regular/TagIcon.js +9 -6
  197. package/dist/icons/regular/TerminalIcon.js +9 -6
  198. package/dist/icons/regular/TrackIcon.js +11 -8
  199. package/dist/icons/regular/TrashIcon.js +11 -8
  200. package/dist/icons/regular/TrophyFilledIcon.js +11 -8
  201. package/dist/icons/regular/TrophyIcon.js +9 -6
  202. package/dist/icons/regular/TwitterIcon.js +11 -8
  203. package/dist/icons/regular/TwitterOutlineIcon.js +11 -8
  204. package/dist/icons/regular/TypeIcon.js +9 -6
  205. package/dist/icons/regular/UploadIcon.js +11 -8
  206. package/dist/icons/regular/VideoPlayerMovieIcon.js +9 -6
  207. package/dist/icons/regular/ViewIcon.js +9 -6
  208. package/dist/icons/regular/ViewOffIcon.js +9 -6
  209. package/dist/icons/regular/VisaIcon.js +9 -6
  210. package/dist/icons/regular/YoutubeIcon.js +9 -6
  211. package/dist/icons/regular/ZoomIcon.js +11 -8
  212. package/dist/svg/regular/search-icon.svg +1 -9
  213. package/dist/useIconId.d.ts +1 -0
  214. package/dist/useIconId.js +8 -0
  215. package/package.json +4 -4
@@ -8,6 +8,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
8
8
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
9
9
  import * as React from 'react';
10
10
  import { Svg } from '../../props';
11
+ import { useIconId } from '../../useIconId';
11
12
  import { jsx as _jsx } from "react/jsx-runtime";
12
13
  import { jsxs as _jsxs } from "react/jsx-runtime";
13
14
  export var ViewOffIcon = /*#__PURE__*/React.forwardRef(function (_ref, svgRef) {
@@ -21,6 +22,7 @@ export var ViewOffIcon = /*#__PURE__*/React.forwardRef(function (_ref, svgRef) {
21
22
  _ref$width = _ref.width,
22
23
  width = _ref$width === void 0 ? size : _ref$width,
23
24
  props = _objectWithoutProperties(_ref, ["title", "titleId", "size", "height", "width"]);
25
+ var maskId = useIconId('ViewOffIcon');
24
26
  return /*#__PURE__*/_jsxs(Svg, _objectSpread(_objectSpread({
25
27
  xmlns: "http://www.w3.org/2000/svg",
26
28
  viewBox: "0 0 24 24",
@@ -33,14 +35,15 @@ export var ViewOffIcon = /*#__PURE__*/React.forwardRef(function (_ref, svgRef) {
33
35
  ref: svgRef,
34
36
  "aria-labelledby": titleId
35
37
  }, props), {}, {
36
- children: [title ? /*#__PURE__*/_jsx("title", {
38
+ children: [title === undefined ? /*#__PURE__*/_jsx("title", {
39
+ id: titleId,
40
+ children: 'view-off'
41
+ }) : title ? /*#__PURE__*/_jsx("title", {
37
42
  id: titleId,
38
43
  children: title
39
44
  }) : null, /*#__PURE__*/_jsxs("mask", {
40
- id: "view-off-".concat(titleId !== null && titleId !== void 0 ? titleId : 'default'),
41
- children: [/*#__PURE__*/_jsx("title", {
42
- children: 'view-off'
43
- }), /*#__PURE__*/_jsx("path", {
45
+ id: "".concat(maskId),
46
+ children: [/*#__PURE__*/_jsx("path", {
44
47
  fill: "none",
45
48
  stroke: "#fff",
46
49
  strokeLinecap: "round",
@@ -56,7 +59,7 @@ export var ViewOffIcon = /*#__PURE__*/React.forwardRef(function (_ref, svgRef) {
56
59
  strokeWidth: 1.5
57
60
  })]
58
61
  }), /*#__PURE__*/_jsx("g", {
59
- mask: "url(#view-off-".concat(titleId !== null && titleId !== void 0 ? titleId : 'default', ")"),
62
+ mask: "url(#".concat(maskId, ")"),
60
63
  children: /*#__PURE__*/_jsx("rect", {
61
64
  width: "100%",
62
65
  height: "100%",
@@ -8,6 +8,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
8
8
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
9
9
  import * as React from 'react';
10
10
  import { Svg } from '../../props';
11
+ import { useIconId } from '../../useIconId';
11
12
  import { jsx as _jsx } from "react/jsx-runtime";
12
13
  import { jsxs as _jsxs } from "react/jsx-runtime";
13
14
  export var VisaIcon = /*#__PURE__*/React.forwardRef(function (_ref, svgRef) {
@@ -21,6 +22,7 @@ export var VisaIcon = /*#__PURE__*/React.forwardRef(function (_ref, svgRef) {
21
22
  _ref$width = _ref.width,
22
23
  width = _ref$width === void 0 ? size : _ref$width,
23
24
  props = _objectWithoutProperties(_ref, ["title", "titleId", "size", "height", "width"]);
25
+ var maskId = useIconId('VisaIcon');
24
26
  return /*#__PURE__*/_jsxs(Svg, _objectSpread(_objectSpread({
25
27
  xmlns: "http://www.w3.org/2000/svg",
26
28
  viewBox: "0 0 24 24",
@@ -33,14 +35,15 @@ export var VisaIcon = /*#__PURE__*/React.forwardRef(function (_ref, svgRef) {
33
35
  ref: svgRef,
34
36
  "aria-labelledby": titleId
35
37
  }, props), {}, {
36
- children: [title ? /*#__PURE__*/_jsx("title", {
38
+ children: [title === undefined ? /*#__PURE__*/_jsx("title", {
39
+ id: titleId,
40
+ children: 'visa'
41
+ }) : title ? /*#__PURE__*/_jsx("title", {
37
42
  id: titleId,
38
43
  children: title
39
44
  }) : null, /*#__PURE__*/_jsxs("mask", {
40
- id: "visa-".concat(titleId !== null && titleId !== void 0 ? titleId : 'default'),
41
- children: [/*#__PURE__*/_jsx("title", {
42
- children: 'visa'
43
- }), /*#__PURE__*/_jsx("path", {
45
+ id: "".concat(maskId),
46
+ children: [/*#__PURE__*/_jsx("path", {
44
47
  d: "M.504 3.5h23v17h-23z",
45
48
  fill: "none",
46
49
  stroke: "#fff",
@@ -54,7 +57,7 @@ export var VisaIcon = /*#__PURE__*/React.forwardRef(function (_ref, svgRef) {
54
57
  strokeLinejoin: "round"
55
58
  })]
56
59
  }), /*#__PURE__*/_jsx("g", {
57
- mask: "url(#visa-".concat(titleId !== null && titleId !== void 0 ? titleId : 'default', ")"),
60
+ mask: "url(#".concat(maskId, ")"),
58
61
  children: /*#__PURE__*/_jsx("rect", {
59
62
  width: "100%",
60
63
  height: "100%",
@@ -8,6 +8,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
8
8
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
9
9
  import * as React from 'react';
10
10
  import { Svg } from '../../props';
11
+ import { useIconId } from '../../useIconId';
11
12
  import { jsx as _jsx } from "react/jsx-runtime";
12
13
  import { jsxs as _jsxs } from "react/jsx-runtime";
13
14
  export var YoutubeIcon = /*#__PURE__*/React.forwardRef(function (_ref, svgRef) {
@@ -21,6 +22,7 @@ export var YoutubeIcon = /*#__PURE__*/React.forwardRef(function (_ref, svgRef) {
21
22
  _ref$width = _ref.width,
22
23
  width = _ref$width === void 0 ? size : _ref$width,
23
24
  props = _objectWithoutProperties(_ref, ["title", "titleId", "size", "height", "width"]);
25
+ var maskId = useIconId('YoutubeIcon');
24
26
  return /*#__PURE__*/_jsxs(Svg, _objectSpread(_objectSpread({
25
27
  xmlns: "http://www.w3.org/2000/svg",
26
28
  viewBox: "0 0 24 24",
@@ -33,20 +35,21 @@ export var YoutubeIcon = /*#__PURE__*/React.forwardRef(function (_ref, svgRef) {
33
35
  ref: svgRef,
34
36
  "aria-labelledby": titleId
35
37
  }, props), {}, {
36
- children: [title ? /*#__PURE__*/_jsx("title", {
38
+ children: [title === undefined ? /*#__PURE__*/_jsx("title", {
39
+ id: titleId,
40
+ children: 'social-video-youtube'
41
+ }) : title ? /*#__PURE__*/_jsx("title", {
37
42
  id: titleId,
38
43
  children: title
39
44
  }) : null, /*#__PURE__*/_jsxs("mask", {
40
- id: "social-video-youtube-".concat(titleId !== null && titleId !== void 0 ? titleId : 'default'),
41
- children: [/*#__PURE__*/_jsx("title", {
42
- children: 'social-video-youtube'
43
- }), /*#__PURE__*/_jsx("path", {
45
+ id: "".concat(maskId),
46
+ children: [/*#__PURE__*/_jsx("path", {
44
47
  d: "M5.9 5.12v4.26a.75.75 0 001.5 0V5.12l2.85-3.8A.75.75 0 109 .42l-2.4 3.2L4.25.42a.75.75 0 10-1.2.9zm3.55-.24v3a2.25 2.25 0 004.5 0v-3a2.25 2.25 0 10-4.5 0zm1.5 0a.75.75 0 111.5 0v3a.75.75 0 01-1.5 0zm4.86 4.44a2.73 2.73 0 001.94.8 2.72 2.72 0 001.36-.38.74.74 0 00.64.38.75.75 0 00.75-.75v-6a.75.75 0 00-1.5 0v4a1.25 1.25 0 01-1.25 1.25 1.25 1.25 0 01-1.25-1.25v-4a.75.75 0 10-1.5 0v4a2.73 2.73 0 00.81 1.95zm2.69 8.05a.5.5 0 00-1 0v.5h1zm-4.5-.5a.5.5 0 00-.5.5v2a.5.5 0 001 0v-2a.5.5 0 00-.5-.5z"
45
48
  }), /*#__PURE__*/_jsx("path", {
46
49
  d: "M19 11.87H5a4.5 4.5 0 00-4.5 4.5v3a4.5 4.5 0 004.5 4.5h14a4.5 4.5 0 004.5-4.5v-3a4.5 4.5 0 00-4.5-4.5zm-11 4H6.5v4.48a.5.5 0 01-1 0v-4.48H4a.5.5 0 010-1h4a.5.5 0 110 1zm3.48 3.5v1a.5.5 0 01-.86.35 1.48 1.48 0 01-.64.15 1.5 1.5 0 01-1.5-1.5v-3a.5.5 0 011 0v3a.5.5 0 001 0v-3a.5.5 0 011 0zm4 0a1.5 1.5 0 01-1.5 1.5 1.48 1.48 0 01-.66-.16.5.5 0 01-.84-.36v-6a.5.5 0 011 0V16a1.48 1.48 0 01.5-.09 1.5 1.5 0 011.5 1.5zm2.59 1.5a1.69 1.69 0 01-1.59-1.62v-1.88a1.5 1.5 0 013 0v1a.5.5 0 01-.5.5H17.5v.38a.7.7 0 00.59.62c.23 0 .59-.1.59-.37a.5.5 0 011 0 1.46 1.46 0 01-1.59 1.37z"
47
50
  })]
48
51
  }), /*#__PURE__*/_jsx("g", {
49
- mask: "url(#social-video-youtube-".concat(titleId !== null && titleId !== void 0 ? titleId : 'default', ")"),
52
+ mask: "url(#".concat(maskId, ")"),
50
53
  children: /*#__PURE__*/_jsx("rect", {
51
54
  width: "100%",
52
55
  height: "100%",
@@ -8,6 +8,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
8
8
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
9
9
  import * as React from 'react';
10
10
  import { Svg } from '../../props';
11
+ import { useIconId } from '../../useIconId';
11
12
  import { jsx as _jsx } from "react/jsx-runtime";
12
13
  import { jsxs as _jsxs } from "react/jsx-runtime";
13
14
  export var ZoomIcon = /*#__PURE__*/React.forwardRef(function (_ref, svgRef) {
@@ -21,6 +22,7 @@ export var ZoomIcon = /*#__PURE__*/React.forwardRef(function (_ref, svgRef) {
21
22
  _ref$width = _ref.width,
22
23
  width = _ref$width === void 0 ? size : _ref$width,
23
24
  props = _objectWithoutProperties(_ref, ["title", "titleId", "size", "height", "width"]);
25
+ var maskId = useIconId('ZoomIcon');
24
26
  return /*#__PURE__*/_jsxs(Svg, _objectSpread(_objectSpread({
25
27
  xmlns: "http://www.w3.org/2000/svg",
26
28
  viewBox: "0 0 24 24",
@@ -33,23 +35,24 @@ export var ZoomIcon = /*#__PURE__*/React.forwardRef(function (_ref, svgRef) {
33
35
  ref: svgRef,
34
36
  "aria-labelledby": titleId
35
37
  }, props), {}, {
36
- children: [title ? /*#__PURE__*/_jsx("title", {
38
+ children: [title === undefined ? /*#__PURE__*/_jsx("title", {
39
+ id: titleId,
40
+ children: 'zoom-in'
41
+ }) : title ? /*#__PURE__*/_jsx("title", {
37
42
  id: titleId,
38
43
  children: title
39
- }) : null, /*#__PURE__*/_jsxs("mask", {
40
- id: "zoom-in-".concat(titleId !== null && titleId !== void 0 ? titleId : 'default'),
41
- children: [/*#__PURE__*/_jsx("title", {
42
- children: 'zoom-in'
43
- }), /*#__PURE__*/_jsx("path", {
44
+ }) : null, /*#__PURE__*/_jsx("mask", {
45
+ id: "".concat(maskId),
46
+ children: /*#__PURE__*/_jsx("path", {
44
47
  d: "M18.875 9.811A9.063 9.063 0 119.813.749a9.063 9.063 0 019.062 9.062zM5.25 9.749h9m-4.5 4.5v-9m6.471 10.97l7.029 7.03",
45
48
  fill: "none",
46
49
  stroke: "#fff",
47
50
  strokeLinecap: "round",
48
51
  strokeLinejoin: "round",
49
52
  strokeWidth: 1.5
50
- })]
53
+ })
51
54
  }), /*#__PURE__*/_jsx("g", {
52
- mask: "url(#zoom-in-".concat(titleId !== null && titleId !== void 0 ? titleId : 'default', ")"),
55
+ mask: "url(#".concat(maskId, ")"),
53
56
  children: /*#__PURE__*/_jsx("rect", {
54
57
  width: "100%",
55
58
  height: "100%",
@@ -1,9 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><defs><style>.a{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px;}</style></defs><title>search</title>
2
- <mask id="mask0_1884_2837" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0">
3
- <circle class="a" cx="9.813" cy="9.812" r="9.063" transform="translate(-3.056 4.62) rotate(-23.025)"/>
4
- <line class="a" x1="16.221" y1="16.22" x2="23.25" y2="23.25"/>
5
- </mask>
6
- <g mask="url(#mask0_1884_2837)">
7
- <rect width="24" height="24" fill="currentColor"/>
8
- </g>
9
- </svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><defs><style>.a{fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px;}</style></defs><title>search</title><circle class="a" cx="9.813" cy="9.812" r="9.063" transform="translate(-3.056 4.62) rotate(-23.025)"/><line class="a" x1="16.221" y1="16.22" x2="23.25" y2="23.25"/></svg>
@@ -0,0 +1 @@
1
+ export declare function useIconId(id: string): string;
@@ -0,0 +1,8 @@
1
+ import { useId } from '@reach/auto-id';
2
+ import { useMemo } from 'react';
3
+ export function useIconId(id) {
4
+ var generatedId = useId();
5
+ return useMemo(function () {
6
+ return "".concat(id, "-mask-").concat(generatedId);
7
+ }, [id, generatedId]);
8
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@codecademy/gamut-icons",
3
3
  "description": "Icon library for codecademy.com",
4
- "version": "8.1.2-alpha.b29ebf.0",
4
+ "version": "8.1.2-alpha.dfdc7f.0",
5
5
  "author": "Codecademy <dev@codecademy.com>",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.js",
@@ -20,7 +20,7 @@
20
20
  },
21
21
  "license": "MIT",
22
22
  "devDependencies": {
23
- "@codecademy/gamut-tests": "5.0.2-alpha.b29ebf.0",
23
+ "@codecademy/gamut-tests": "5.0.2-alpha.dfdc7f.0",
24
24
  "@svgr/cli": "5.5.0",
25
25
  "@testing-library/react": "^12.1.2",
26
26
  "svgo": "^1.3.2",
@@ -30,7 +30,7 @@
30
30
  "access": "public"
31
31
  },
32
32
  "dependencies": {
33
- "@codecademy/gamut-styles": "16.0.0-alpha.b29ebf.0",
33
+ "@codecademy/gamut-styles": "16.0.0-alpha.dfdc7f.0",
34
34
  "@codecademy/variance": "0.21.0"
35
35
  },
36
36
  "peerDependencies": {
@@ -39,5 +39,5 @@
39
39
  "lodash": "^4.17.5",
40
40
  "react": "^17.0.2 || ^18.2.0"
41
41
  },
42
- "gitHead": "a9983fa03708e68f76790c6611226924447f9db5"
42
+ "gitHead": "db324ab5a0653f608185296be5f18e62d9d64fe1"
43
43
  }