Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add some icons #854

Merged
merged 1 commit into from
Jan 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions packages/icon/src/icons/history.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import { createIcon } from "../create-icon"

export const HistoryIcon = createIcon({
title: "HistoryIcon",
viewBox: "0 0 16 16",
path: (
<>
<g clipPath="url(#clip0_18415_872)">
<path
fillRule="evenodd"
clipRule="evenodd"
d="M5.5487 8.56659C5.61121 8.50408 5.64633 8.41929 5.64633 8.33089C5.64633 8.24248 5.61121 8.1577 5.5487 8.09519L5.07729 7.62378C5.01478 7.56127 4.93 7.52615 4.84159 7.52615C4.75318 7.52615 4.6684 7.56127 4.60589 7.62378L3.40616 8.82351C3.1476 7.37229 3.5787 5.82255 4.70017 4.70107C6.52262 2.87862 9.47738 2.87862 11.2998 4.70107C13.1223 6.52352 13.1223 9.47829 11.2998 11.3007C9.80501 12.7956 7.54839 13.0643 5.77969 12.1068L4.80529 13.0812C7.12389 14.5419 10.2236 14.2626 12.2426 12.2435C14.5858 9.90043 14.5858 6.10138 12.2426 3.75827C9.89952 1.41515 6.10048 1.41515 3.75736 3.75827C2.42446 5.09116 1.84982 6.89523 2.03343 8.63447L0.693229 7.2938C0.630717 7.23129 0.545933 7.19617 0.457527 7.19617C0.369122 7.19617 0.284337 7.23129 0.221825 7.2938L-0.249579 7.7652C-0.312091 7.82772 -0.347211 7.9125 -0.34721 8.00091C-0.347211 8.08931 -0.312091 8.1741 -0.249579 8.23661L2.34315 10.8293C2.46206 10.9482 2.62149 11.0177 2.78951 11.024C2.95752 11.0303 3.12171 10.9729 3.24919 10.8633L3.28595 10.8293L5.5487 8.56659Z"
fill="#1D2129"
/>
<path
d="M8 5.5V8.5L9.5 10"
stroke="#1D2129"
strokeLinecap="round"
strokeLinejoin="round"
/>
</g>
<defs>
<clipPath id="clip0_18415_872">
<rect width="16" height="16" fill="white" />
</clipPath>
</defs>
</>
),
})

HistoryIcon.displayName = "HistoryIcon"
24 changes: 24 additions & 0 deletions packages/icon/src/icons/question-circle.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import { createIcon } from "../create-icon"

export const QuestionCircleIcon = createIcon({
title: "QuestionCircleIcon",
viewBox: "0 0 16 16",
path: (
<>
<path
fillRule="evenodd"
clipRule="evenodd"
d="M8 0C12.4183 0 16 3.58173 16 8C16 12.4183 12.4183 16 8 16C3.58173 16 0 12.4183 0 8C0 3.58173 3.58173 0 8 0Z"
fill="currentColor"
/>
<path
fillRule="evenodd"
clipRule="evenodd"
d="M5.78955 7.09531L5.80025 6.88514C5.82922 6.31634 6.0345 5.79162 6.43114 5.40866C6.82889 5.02463 7.40076 4.80078 8.1289 4.80078C9.44257 4.80078 10.3992 5.62662 10.3992 6.76836C10.3992 7.62028 9.95271 8.22072 9.2818 8.62431L9.28041 8.62515C8.97801 8.80373 8.8098 8.94548 8.71348 9.0868C8.62205 9.22097 8.58281 9.37359 8.58281 9.60527V10.1227H7.32832V9.47416C7.32574 9.11656 7.41203 8.80556 7.59776 8.52837C7.78102 8.25487 8.05279 8.02668 8.40127 7.81799C8.674 7.65098 8.84244 7.50543 8.94478 7.35441C9.04348 7.20875 9.09101 7.0426 9.09101 6.8123C9.09101 6.5639 8.99617 6.35642 8.83212 6.20921C8.6667 6.06077 8.41791 5.9625 8.09472 5.9625C7.76575 5.9625 7.51533 6.05881 7.34284 6.21522C7.17071 6.37131 7.05798 6.60369 7.03437 6.91065L7.02016 7.09531H5.78955ZM8.75664 11.4441C8.75664 11.8659 8.42899 12.2008 8 12.2008C7.57704 12.2008 7.24335 11.8671 7.24335 11.4441C7.24335 11.0151 7.57819 10.6875 8 10.6875C8.42783 10.6875 8.75664 11.0163 8.75664 11.4441Z"
fill="white"
/>
</>
),
})

QuestionCircleIcon.displayName = "QuestionCircleIcon"
2 changes: 2 additions & 0 deletions packages/icon/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,3 +119,5 @@ export * from "./icons/minimize"
export * from "./icons/hand"
export * from "./icons/move"
export * from "./icons/branch"
export * from "./icons/question-circle"
export * from "./icons/history"
Loading