@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.
- package/dist/icons/mini/MiniAddIcon.js +11 -8
- package/dist/icons/mini/MiniArrowDownIcon.js +11 -8
- package/dist/icons/mini/MiniArrowLeftIcon.js +11 -8
- package/dist/icons/mini/MiniArrowRightIcon.js +11 -8
- package/dist/icons/mini/MiniArrowUpIcon.js +11 -8
- package/dist/icons/mini/MiniCheckCircleIcon.js +11 -8
- package/dist/icons/mini/MiniChevronDownIcon.js +11 -8
- package/dist/icons/mini/MiniChevronLeftIcon.js +11 -8
- package/dist/icons/mini/MiniChevronRightIcon.js +11 -8
- package/dist/icons/mini/MiniChevronUpIcon.js +11 -8
- package/dist/icons/mini/MiniDeleteIcon.js +11 -8
- package/dist/icons/mini/MiniInfoCircleIcon.js +11 -8
- package/dist/icons/mini/MiniInfoOutlineIcon.js +11 -8
- package/dist/icons/mini/MiniKebabMenuIcon.js +11 -8
- package/dist/icons/mini/MiniRemoveCircleIcon.js +11 -8
- package/dist/icons/mini/MiniRibbonIcon.js +11 -8
- package/dist/icons/mini/MiniStarIcon.js +11 -8
- package/dist/icons/mini/MiniWarningTriangleIcon.js +11 -8
- package/dist/icons/regular/AccountingCoinsIcon.js +9 -6
- package/dist/icons/regular/AddBoldIcon.js +11 -8
- package/dist/icons/regular/AddIcon.js +11 -8
- package/dist/icons/regular/AlarmClockIcon.js +9 -6
- package/dist/icons/regular/AlertIcon.js +9 -6
- package/dist/icons/regular/AmexIcon.js +9 -6
- package/dist/icons/regular/AnalyticsGraphIcon.js +11 -8
- package/dist/icons/regular/ArrowChevronDownFilledIcon.js +11 -8
- package/dist/icons/regular/ArrowChevronDownIcon.js +11 -8
- package/dist/icons/regular/ArrowChevronLeftIcon.js +11 -8
- package/dist/icons/regular/ArrowChevronRightIcon.js +11 -8
- package/dist/icons/regular/ArrowChevronUpIcon.js +11 -8
- package/dist/icons/regular/ArrowDownIcon.js +11 -8
- package/dist/icons/regular/ArrowLeftIcon.js +11 -8
- package/dist/icons/regular/ArrowRightIcon.js +11 -8
- package/dist/icons/regular/ArrowUpIcon.js +11 -8
- package/dist/icons/regular/ArticleIcon.js +9 -6
- package/dist/icons/regular/BadgeIcon.js +9 -6
- package/dist/icons/regular/BellIcon.js +11 -8
- package/dist/icons/regular/BookClosedBookmarkIcon.js +9 -6
- package/dist/icons/regular/BookFlipPageIcon.js +9 -6
- package/dist/icons/regular/BriefcaseIcon.js +9 -6
- package/dist/icons/regular/BrowserPageLayoutIcon.js +11 -8
- package/dist/icons/regular/BulbIcon.js +11 -8
- package/dist/icons/regular/CalendarIcon.js +9 -6
- package/dist/icons/regular/CallIcon.js +11 -8
- package/dist/icons/regular/CertificateIcon.js +9 -6
- package/dist/icons/regular/ChallengeProjectIcon.js +11 -8
- package/dist/icons/regular/ChatIcon.js +11 -8
- package/dist/icons/regular/CheckCircledIcon.js +9 -6
- package/dist/icons/regular/CheckFilledIcon.js +11 -8
- package/dist/icons/regular/CheckHeavyIcon.js +11 -8
- package/dist/icons/regular/CheckIcon.js +11 -8
- package/dist/icons/regular/ChecklistIcon.js +9 -6
- package/dist/icons/regular/ClockIcon.js +9 -6
- package/dist/icons/regular/CloseCircleIcon.js +9 -6
- package/dist/icons/regular/CloseIcon.js +11 -8
- package/dist/icons/regular/CloudCheckIcon.js +9 -6
- package/dist/icons/regular/CloudIcon.js +11 -8
- package/dist/icons/regular/CommentsIcon.js +11 -8
- package/dist/icons/regular/CommunityIcon.js +9 -6
- package/dist/icons/regular/ConversationChatIcon.js +11 -8
- package/dist/icons/regular/CopyIcon.js +9 -6
- package/dist/icons/regular/CreditCardIcon.js +11 -8
- package/dist/icons/regular/CubeIcon.js +11 -8
- package/dist/icons/regular/DataFileBarsShareIcon.js +9 -6
- package/dist/icons/regular/DataTransferVerticalIcon.js +11 -8
- package/dist/icons/regular/DeleteFilledIcon.js +11 -8
- package/dist/icons/regular/DeleteIcon.js +9 -6
- package/dist/icons/regular/DiamondIcon.js +9 -6
- package/dist/icons/regular/DiscountStarPremiumFilledIcon.js +9 -6
- package/dist/icons/regular/DownloadIcon.js +11 -8
- package/dist/icons/regular/EarthIcon.js +11 -8
- package/dist/icons/regular/EditIcon.js +9 -6
- package/dist/icons/regular/EditorIcon.js +9 -6
- package/dist/icons/regular/EmailIcon.js +9 -6
- package/dist/icons/regular/ExperienceIcon.js +9 -6
- package/dist/icons/regular/ExploreIcon.js +9 -6
- package/dist/icons/regular/FacebookIcon.js +11 -8
- package/dist/icons/regular/FaviconIcon.js +11 -8
- package/dist/icons/regular/FaviconSolidIcon.js +9 -6
- package/dist/icons/regular/FileAddIcon.js +9 -6
- package/dist/icons/regular/FileCodeAdd1Icon.js +9 -6
- package/dist/icons/regular/FileDownloadIcon.js +9 -6
- package/dist/icons/regular/FileEditIcon.js +11 -8
- package/dist/icons/regular/FileIcon.js +11 -8
- package/dist/icons/regular/FileLockIcon.js +11 -8
- package/dist/icons/regular/FilePyIcon.js +9 -6
- package/dist/icons/regular/FileSearchIcon.js +9 -6
- package/dist/icons/regular/FilterIcon.js +11 -8
- package/dist/icons/regular/FitNormalIcon.js +11 -8
- package/dist/icons/regular/FitShrinkIcon.js +11 -8
- package/dist/icons/regular/FitnessDumbbellIcon.js +9 -6
- package/dist/icons/regular/FolderAddIcon.js +9 -6
- package/dist/icons/regular/FolderIcon.js +11 -8
- package/dist/icons/regular/ForkIcon.js +9 -6
- package/dist/icons/regular/ForumsChatIcon.js +11 -8
- package/dist/icons/regular/FullscreenIcon.js +11 -8
- package/dist/icons/regular/GearIcon.js +9 -6
- package/dist/icons/regular/GithubIcon.js +11 -8
- package/dist/icons/regular/GithubOutlineIcon.js +11 -8
- package/dist/icons/regular/GlassesIcon.js +9 -6
- package/dist/icons/regular/GplusIcon.js +11 -8
- package/dist/icons/regular/GraphStatsAscendIcon.js +11 -8
- package/dist/icons/regular/GrowthIcon.js +9 -6
- package/dist/icons/regular/HalloweenBroomIcon.js +11 -8
- package/dist/icons/regular/HouseEntranceIcon.js +11 -8
- package/dist/icons/regular/HyperlinkIcon.js +9 -6
- package/dist/icons/regular/ImageIcon.js +9 -6
- package/dist/icons/regular/InProgressIcon.js +9 -6
- package/dist/icons/regular/InfoCircleIcon.js +9 -6
- package/dist/icons/regular/InformationalIcon.js +9 -6
- package/dist/icons/regular/InstagramIcon.js +11 -8
- package/dist/icons/regular/InstructionsIcon.js +9 -6
- package/dist/icons/regular/IntersectionIcon.js +9 -6
- package/dist/icons/regular/JavaIcon.js +11 -8
- package/dist/icons/regular/JavascriptIcon.js +9 -6
- package/dist/icons/regular/JiraIcon.js +9 -6
- package/dist/icons/regular/LearnIcon.js +9 -6
- package/dist/icons/regular/LessonIcon.js +9 -6
- package/dist/icons/regular/LevelIcon.js +11 -8
- package/dist/icons/regular/LifePreserverIcon.js +9 -6
- package/dist/icons/regular/LinkIcon.js +11 -8
- package/dist/icons/regular/LinkedinIcon.js +11 -8
- package/dist/icons/regular/LinkedinOutlineIcon.js +11 -8
- package/dist/icons/regular/ListIcon.js +9 -6
- package/dist/icons/regular/LocationPinIcon.js +9 -6
- package/dist/icons/regular/Lock1Icon.js +11 -8
- package/dist/icons/regular/LockHeavyIcon.js +11 -8
- package/dist/icons/regular/LockIcon.js +9 -6
- package/dist/icons/regular/MaintenanceIcon.js +9 -6
- package/dist/icons/regular/MapFingerIcon.js +11 -8
- package/dist/icons/regular/MapPinIcon.js +11 -8
- package/dist/icons/regular/MarkerIcon.js +11 -8
- package/dist/icons/regular/MastercardIcon.js +9 -6
- package/dist/icons/regular/MediumIcon.js +11 -8
- package/dist/icons/regular/MegaphoneIcon.js +11 -8
- package/dist/icons/regular/MenuIcon.js +11 -8
- package/dist/icons/regular/MinimizeIcon.js +11 -8
- package/dist/icons/regular/MonitorBookIcon.js +11 -8
- package/dist/icons/regular/MultipleActionsViewIcon.js +9 -6
- package/dist/icons/regular/MultipleUsersIcon.js +11 -8
- package/dist/icons/regular/NarrativeIcon.js +11 -8
- package/dist/icons/regular/NetworkUserIcon.js +11 -8
- package/dist/icons/regular/NotebookIcon.js +9 -6
- package/dist/icons/regular/ObjectiveIcon.js +11 -8
- package/dist/icons/regular/OneTimeIcon.js +4 -2
- package/dist/icons/regular/OpenIcon.js +11 -8
- package/dist/icons/regular/OverviewIcon.js +9 -6
- package/dist/icons/regular/PathChangeIcon.js +11 -8
- package/dist/icons/regular/PathCompleteIcon.js +11 -8
- package/dist/icons/regular/PathIcon.js +9 -6
- package/dist/icons/regular/PauseIcon.js +9 -6
- package/dist/icons/regular/PdfIcon.js +9 -6
- package/dist/icons/regular/PeopleIcon.js +9 -6
- package/dist/icons/regular/PersonChatIcon.js +9 -6
- package/dist/icons/regular/PersonIcon.js +9 -6
- package/dist/icons/regular/PhoneIcon.js +9 -6
- package/dist/icons/regular/PieLineGraphIcon.js +9 -6
- package/dist/icons/regular/PinIcon.js +11 -8
- package/dist/icons/regular/PlayCircledIcon.js +9 -6
- package/dist/icons/regular/PlayIcon.js +11 -8
- package/dist/icons/regular/PortfolioProjectIcon.js +11 -8
- package/dist/icons/regular/ProgrammingBrowserIcon.js +11 -8
- package/dist/icons/regular/ProjectsIcon.js +11 -8
- package/dist/icons/regular/PythonIcon.js +9 -6
- package/dist/icons/regular/QuizIcon.js +9 -6
- package/dist/icons/regular/RadarIcon.js +9 -6
- package/dist/icons/regular/RailsIcon.js +11 -8
- package/dist/icons/regular/RatingStarCircleIcon.js +9 -6
- package/dist/icons/regular/RatingStarGiveIcon.js +11 -8
- package/dist/icons/regular/ReactIcon.js +11 -8
- package/dist/icons/regular/RedditIcon.js +9 -6
- package/dist/icons/regular/RefreshIcon.js +11 -8
- package/dist/icons/regular/ResetIcon.js +11 -8
- package/dist/icons/regular/ResponsiveIcon.js +9 -6
- package/dist/icons/regular/RibbonDoubleFilledIcon.js +9 -6
- package/dist/icons/regular/RibbonDoubleIcon.js +9 -6
- package/dist/icons/regular/RibbonFilledIcon.js +11 -8
- package/dist/icons/regular/RibbonIcon.js +11 -8
- package/dist/icons/regular/RoadmapIcon.js +11 -8
- package/dist/icons/regular/RocketIcon.js +9 -6
- package/dist/icons/regular/RubyIcon.js +9 -6
- package/dist/icons/regular/SearchIcon.js +25 -37
- package/dist/icons/regular/SettingsSliderVerticalIcon.js +11 -8
- package/dist/icons/regular/ShareIcon.js +9 -6
- package/dist/icons/regular/SlackIcon.js +11 -8
- package/dist/icons/regular/SmallCheckIcon.js +11 -8
- package/dist/icons/regular/StackedSquaresIcon.js +11 -8
- package/dist/icons/regular/StarCircleIcon.js +11 -8
- package/dist/icons/regular/StarFilledCircleIcon.js +11 -8
- package/dist/icons/regular/StarFilledIcon.js +11 -8
- package/dist/icons/regular/StarIcon.js +11 -8
- package/dist/icons/regular/StreakIcon.js +11 -8
- package/dist/icons/regular/StudyBookIcon.js +9 -6
- package/dist/icons/regular/SupportFilledIcon.js +11 -8
- package/dist/icons/regular/SupportIcon.js +9 -6
- package/dist/icons/regular/TagIcon.js +9 -6
- package/dist/icons/regular/TerminalIcon.js +9 -6
- package/dist/icons/regular/TrackIcon.js +11 -8
- package/dist/icons/regular/TrashIcon.js +11 -8
- package/dist/icons/regular/TrophyFilledIcon.js +11 -8
- package/dist/icons/regular/TrophyIcon.js +9 -6
- package/dist/icons/regular/TwitterIcon.js +11 -8
- package/dist/icons/regular/TwitterOutlineIcon.js +11 -8
- package/dist/icons/regular/TypeIcon.js +9 -6
- package/dist/icons/regular/UploadIcon.js +11 -8
- package/dist/icons/regular/VideoPlayerMovieIcon.js +9 -6
- package/dist/icons/regular/ViewIcon.js +9 -6
- package/dist/icons/regular/ViewOffIcon.js +9 -6
- package/dist/icons/regular/VisaIcon.js +9 -6
- package/dist/icons/regular/YoutubeIcon.js +9 -6
- package/dist/icons/regular/ZoomIcon.js +11 -8
- package/dist/svg/regular/search-icon.svg +1 -9
- package/dist/useIconId.d.ts +1 -0
- package/dist/useIconId.js +8 -0
- 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: "
|
|
41
|
-
children: [/*#__PURE__*/_jsx("
|
|
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(#
|
|
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: "
|
|
41
|
-
children: [/*#__PURE__*/_jsx("
|
|
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(#
|
|
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: "
|
|
41
|
-
children: [/*#__PURE__*/_jsx("
|
|
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(#
|
|
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__*/
|
|
40
|
-
id: "
|
|
41
|
-
children:
|
|
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(#
|
|
55
|
+
mask: "url(#".concat(maskId, ")"),
|
|
53
56
|
children: /*#__PURE__*/_jsx("rect", {
|
|
54
57
|
width: "100%",
|
|
55
58
|
height: "100%",
|
|
@@ -1,9 +1 @@
|
|
|
1
|
-
|
|
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;
|
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.
|
|
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.
|
|
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.
|
|
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": "
|
|
42
|
+
"gitHead": "db324ab5a0653f608185296be5f18e62d9d64fe1"
|
|
43
43
|
}
|