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(icon): image, play_circle, pause_circle, keep, error #1405

Merged
merged 9 commits into from
Jan 10, 2025
Merged
Show file tree
Hide file tree
Changes from 7 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
8 changes: 8 additions & 0 deletions .changeset/serious-pears-film.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
"@wizleap-inc/wiz-ui-react": minor
"@wizleap-inc/wiz-ui-next": minor
"@wizleap-inc/wiz-ui-constants": minor
"@wizleap-inc/wiz-ui-icons": minor
---

Feat(icon): add image, play_circle, pause_circle icons, keep, error
5 changes: 5 additions & 0 deletions packages/constants/component/icon-name.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ export const IconComponentName = {
IDrafts: "WizIDrafts",
IEditNote: "WizIEditNote",
IEmergencyHome: "WizIEmergencyHome",
IErrorFilled: "WizIErrorFilled",
IExpandLess: "WizIExpandLess",
IExpandMoreBold: "WizIExpandMoreBold",
IExpandMore: "WizIExpandMore",
Expand All @@ -78,10 +79,12 @@ export const IconComponentName = {
IHistory: "WizIHistory",
IHome: "WizIHome",
IHourglassTop: "WizIHourglassTop",
IImageBold: "WizIImageBold",
IInboxCustomize: "WizIInboxCustomize",
IInfoBold: "WizIInfoBold",
IInfoFilled: "WizIInfoFilled",
IInfo: "WizIInfo",
IKeep: "WizIKeep",
ILinkOff: "WizILinkOff",
ILocationCity: "WizILocationCity",
ILocationOn: "WizILocationOn",
Expand All @@ -95,9 +98,11 @@ export const IconComponentName = {
INoteAdd: "WizINoteAdd",
INotification: "WizINotification",
IOpenInNew: "WizIOpenInNew",
IPauseCircleBold: "WizIPauseCircleBold",
IPersonFilled: "WizIPersonFilled",
IPieChart: "WizIPieChart",
IPinDrop: "WizIPinDrop",
IPlayCircleBold: "WizIPlayCircleBold",
IPublic: "WizIPublic",
IRemoveBold: "WizIRemoveBold",
IRemove: "WizIRemove",
Expand Down
1 change: 1 addition & 0 deletions packages/icons/assets/error-filled.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions packages/icons/assets/image-bold.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions packages/icons/assets/keep.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions packages/icons/assets/pause-circle-bold.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions packages/icons/assets/play-circle-bold.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions packages/wiz-ui-next/src/components/icons/error-filled.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<template>
<svg
xmlns="http://www.w3.org/2000/svg"
height="1em"
viewBox="0 -960 960 960"
width="1em"
>
<path
d="M480-280q17 0 28.5-11.5T520-320q0-17-11.5-28.5T480-360q-17 0-28.5 11.5T440-320q0 17 11.5 28.5T480-280Zm0-160q17 0 28.5-11.5T520-480v-160q0-17-11.5-28.5T480-680q-17 0-28.5 11.5T440-640v160q0 17 11.5 28.5T480-440Zm0 360q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Z"
/>
</svg>
</template>

<script setup lang="ts">
import { ComponentName } from "@wizleap-inc/wiz-ui-constants";

defineOptions({
name: ComponentName.IErrorFilled,
});
</script>
20 changes: 20 additions & 0 deletions packages/wiz-ui-next/src/components/icons/image-bold.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<template>
<svg
xmlns="http://www.w3.org/2000/svg"
height="1em"
viewBox="0 -960 960 960"
width="1em"
>
<path
d="M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Zm0-80h560v-560H200v560Zm0 0v-560 560Zm80-80h400q12 0 18-11t-2-21L586-459q-6-8-16-8t-16 8L450-320l-74-99q-6-8-16-8t-16 8l-80 107q-8 10-2 21t18 11Z"
/>
</svg>
</template>

<script setup lang="ts">
import { ComponentName } from "@wizleap-inc/wiz-ui-constants";

defineOptions({
name: ComponentName.IImageBold,
});
</script>
15 changes: 15 additions & 0 deletions packages/wiz-ui-next/src/components/icons/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ import { default as WizIDraft } from "./draft.vue";
import { default as WizIDrafts } from "./drafts.vue";
import { default as WizIEditNote } from "./edit-note.vue";
import { default as WizIEmergencyHome } from "./emergency-home.vue";
import { default as WizIErrorFilled } from "./error-filled.vue";
import { default as WizIExpandLess } from "./expand-less.vue";
import { default as WizIExpandMoreBold } from "./expand-more-bold.vue";
import { default as WizIExpandMore } from "./expand-more.vue";
Expand All @@ -77,10 +78,12 @@ import { default as WizIHelp } from "./help.vue";
import { default as WizIHistory } from "./history.vue";
import { default as WizIHome } from "./home.vue";
import { default as WizIHourglassTop } from "./hourglass-top.vue";
import { default as WizIImageBold } from "./image-bold.vue";
import { default as WizIInboxCustomize } from "./inbox-customize.vue";
import { default as WizIInfoBold } from "./info-bold.vue";
import { default as WizIInfoFilled } from "./info-filled.vue";
import { default as WizIInfo } from "./info.vue";
import { default as WizIKeep } from "./keep.vue";
import { default as WizILinkOff } from "./link-off.vue";
import { default as WizILocationCity } from "./location-city.vue";
import { default as WizILocationOn } from "./location-on.vue";
Expand All @@ -94,9 +97,11 @@ import { default as WizIMoreVert } from "./more-vert.vue";
import { default as WizINoteAdd } from "./note-add.vue";
import { default as WizINotification } from "./notification.vue";
import { default as WizIOpenInNew } from "./open-in-new.vue";
import { default as WizIPauseCircleBold } from "./pause-circle-bold.vue";
import { default as WizIPersonFilled } from "./person-filled.vue";
import { default as WizIPieChart } from "./pie-chart.vue";
import { default as WizIPinDrop } from "./pin-drop.vue";
import { default as WizIPlayCircleBold } from "./play-circle-bold.vue";
import { default as WizIPublic } from "./public.vue";
import { default as WizIRemoveBold } from "./remove-bold.vue";
import { default as WizIRemove } from "./remove.vue";
Expand Down Expand Up @@ -185,6 +190,7 @@ export type TIcon =
| typeof WizIDrafts
| typeof WizIEditNote
| typeof WizIEmergencyHome
| typeof WizIErrorFilled
| typeof WizIExpandLess
| typeof WizIExpandMoreBold
| typeof WizIExpandMore
Expand All @@ -197,10 +203,12 @@ export type TIcon =
| typeof WizIHistory
| typeof WizIHome
| typeof WizIHourglassTop
| typeof WizIImageBold
| typeof WizIInboxCustomize
| typeof WizIInfoBold
| typeof WizIInfoFilled
| typeof WizIInfo
| typeof WizIKeep
| typeof WizILinkOff
| typeof WizILocationCity
| typeof WizILocationOn
Expand All @@ -214,9 +222,11 @@ export type TIcon =
| typeof WizINoteAdd
| typeof WizINotification
| typeof WizIOpenInNew
| typeof WizIPauseCircleBold
| typeof WizIPersonFilled
| typeof WizIPieChart
| typeof WizIPinDrop
| typeof WizIPlayCircleBold
| typeof WizIPublic
| typeof WizIRemoveBold
| typeof WizIRemove
Expand Down Expand Up @@ -305,6 +315,7 @@ export {
WizIDrafts,
WizIEditNote,
WizIEmergencyHome,
WizIErrorFilled,
WizIExpandLess,
WizIExpandMoreBold,
WizIExpandMore,
Expand All @@ -317,10 +328,12 @@ export {
WizIHistory,
WizIHome,
WizIHourglassTop,
WizIImageBold,
WizIInboxCustomize,
WizIInfoBold,
WizIInfoFilled,
WizIInfo,
WizIKeep,
WizILinkOff,
WizILocationCity,
WizILocationOn,
Expand All @@ -334,9 +347,11 @@ export {
WizINoteAdd,
WizINotification,
WizIOpenInNew,
WizIPauseCircleBold,
WizIPersonFilled,
WizIPieChart,
WizIPinDrop,
WizIPlayCircleBold,
WizIPublic,
WizIRemoveBold,
WizIRemove,
Expand Down
20 changes: 20 additions & 0 deletions packages/wiz-ui-next/src/components/icons/keep.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<template>
<svg
xmlns="http://www.w3.org/2000/svg"
height="1em"
viewBox="0 -960 960 960"
width="1em"
>
<path
d="M600-760v296.92l57.23 57.23q2.92 2.93 4.39 6.58 1.46 3.65 1.46 7.55v11.21q0 8.28-5.97 14.39-5.98 6.12-14.8 6.12H500v197.08q0 8.5-5.76 14.25t-14.27 5.75q-8.51 0-14.24-5.75T460-162.92V-360H317.69q-8.82 0-14.8-6.12-5.97-6.11-5.97-14.39v-11.21q0-3.9 1.46-7.55 1.47-3.65 4.39-6.58L360-463.08V-760h-20q-8.5 0-14.25-5.76T320-780.03q0-8.51 5.75-14.24T340-800h280q8.5 0 14.25 5.76t5.75 14.27q0 8.51-5.75 14.24T620-760h-20ZM354-400h252l-46-46v-314H400v314l-46 46Zm126 0Z"
/>
</svg>
</template>

<script setup lang="ts">
import { ComponentName } from "@wizleap-inc/wiz-ui-constants";

defineOptions({
name: ComponentName.IKeep,
});
</script>
20 changes: 20 additions & 0 deletions packages/wiz-ui-next/src/components/icons/pause-circle-bold.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<template>
<svg
xmlns="http://www.w3.org/2000/svg"
height="1em"
viewBox="0 -960 960 960"
width="1em"
>
<path
d="M400-320q17 0 28.5-11.5T440-360v-240q0-17-11.5-28.5T400-640q-17 0-28.5 11.5T360-600v240q0 17 11.5 28.5T400-320Zm160 0q17 0 28.5-11.5T600-360v-240q0-17-11.5-28.5T560-640q-17 0-28.5 11.5T520-600v240q0 17 11.5 28.5T560-320ZM480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"
/>
</svg>
</template>

<script setup lang="ts">
import { ComponentName } from "@wizleap-inc/wiz-ui-constants";

defineOptions({
name: ComponentName.IPauseCircleBold,
});
</script>
20 changes: 20 additions & 0 deletions packages/wiz-ui-next/src/components/icons/play-circle-bold.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<template>
<svg
xmlns="http://www.w3.org/2000/svg"
height="1em"
viewBox="0 -960 960 960"
width="1em"
>
<path
d="m426-330 195-125q14-9 14-25t-14-25L426-630q-15-10-30.5-1.5T380-605v250q0 18 15.5 26.5T426-330Zm54 250q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"
/>
</svg>
</template>

<script setup lang="ts">
import { ComponentName } from "@wizleap-inc/wiz-ui-constants";

defineOptions({
name: ComponentName.IPlayCircleBold,
});
</script>
18 changes: 18 additions & 0 deletions packages/wiz-ui-react/src/components/icons/error-filled.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { CSSProperties } from "react";
type Props = {
className?: string;
style?: CSSProperties;
};
export const WizIErrorFilled = ({ className, style }: Props) => (
<svg
className={className}
style={style}
xmlns="http://www.w3.org/2000/svg"
height="1em"
viewBox="0 -960 960 960"
width="1em"
>
<path d="M480-280q17 0 28.5-11.5T520-320q0-17-11.5-28.5T480-360q-17 0-28.5 11.5T440-320q0 17 11.5 28.5T480-280Zm0-160q17 0 28.5-11.5T520-480v-160q0-17-11.5-28.5T480-680q-17 0-28.5 11.5T440-640v160q0 17 11.5 28.5T480-440Zm0 360q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Z" />
</svg>
);
WizIErrorFilled.displayName = "WizIErrorFilled";
18 changes: 18 additions & 0 deletions packages/wiz-ui-react/src/components/icons/image-bold.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { CSSProperties } from "react";
type Props = {
className?: string;
style?: CSSProperties;
};
export const WizIImageBold = ({ className, style }: Props) => (
<svg
className={className}
style={style}
xmlns="http://www.w3.org/2000/svg"
height="1em"
viewBox="0 -960 960 960"
width="1em"
>
<path d="M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Zm0-80h560v-560H200v560Zm0 0v-560 560Zm80-80h400q12 0 18-11t-2-21L586-459q-6-8-16-8t-16 8L450-320l-74-99q-6-8-16-8t-16 8l-80 107q-8 10-2 21t18 11Z" />
</svg>
);
WizIImageBold.displayName = "WizIImageBold";
15 changes: 15 additions & 0 deletions packages/wiz-ui-react/src/components/icons/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ import { WizIDraft } from "./draft";
import { WizIDrafts } from "./drafts";
import { WizIEditNote } from "./edit-note";
import { WizIEmergencyHome } from "./emergency-home";
import { WizIErrorFilled } from "./error-filled";
import { WizIExpandLess } from "./expand-less";
import { WizIExpandMore } from "./expand-more";
import { WizIExpandMoreBold } from "./expand-more-bold";
Expand All @@ -77,10 +78,12 @@ import { WizIHelp } from "./help";
import { WizIHistory } from "./history";
import { WizIHome } from "./home";
import { WizIHourglassTop } from "./hourglass-top";
import { WizIImageBold } from "./image-bold";
import { WizIInboxCustomize } from "./inbox-customize";
import { WizIInfo } from "./info";
import { WizIInfoBold } from "./info-bold";
import { WizIInfoFilled } from "./info-filled";
import { WizIKeep } from "./keep";
import { WizILinkOff } from "./link-off";
import { WizILocationCity } from "./location-city";
import { WizILocationOn } from "./location-on";
Expand All @@ -94,9 +97,11 @@ import { WizIMoreVert } from "./more-vert";
import { WizINoteAdd } from "./note-add";
import { WizINotification } from "./notification";
import { WizIOpenInNew } from "./open-in-new";
import { WizIPauseCircleBold } from "./pause-circle-bold";
import { WizIPersonFilled } from "./person-filled";
import { WizIPieChart } from "./pie-chart";
import { WizIPinDrop } from "./pin-drop";
import { WizIPlayCircleBold } from "./play-circle-bold";
import { WizIPublic } from "./public";
import { WizIRemove } from "./remove";
import { WizIRemoveBold } from "./remove-bold";
Expand Down Expand Up @@ -185,6 +190,7 @@ export type TIcon =
| typeof WizIDrafts
| typeof WizIEditNote
| typeof WizIEmergencyHome
| typeof WizIErrorFilled
| typeof WizIExpandLess
| typeof WizIExpandMoreBold
| typeof WizIExpandMore
Expand All @@ -197,10 +203,12 @@ export type TIcon =
| typeof WizIHistory
| typeof WizIHome
| typeof WizIHourglassTop
| typeof WizIImageBold
| typeof WizIInboxCustomize
| typeof WizIInfoBold
| typeof WizIInfoFilled
| typeof WizIInfo
| typeof WizIKeep
| typeof WizILinkOff
| typeof WizILocationCity
| typeof WizILocationOn
Expand All @@ -214,9 +222,11 @@ export type TIcon =
| typeof WizINoteAdd
| typeof WizINotification
| typeof WizIOpenInNew
| typeof WizIPauseCircleBold
| typeof WizIPersonFilled
| typeof WizIPieChart
| typeof WizIPinDrop
| typeof WizIPlayCircleBold
| typeof WizIPublic
| typeof WizIRemoveBold
| typeof WizIRemove
Expand Down Expand Up @@ -305,6 +315,7 @@ export {
WizIDrafts,
WizIEditNote,
WizIEmergencyHome,
WizIErrorFilled,
WizIExpandLess,
WizIExpandMoreBold,
WizIExpandMore,
Expand All @@ -317,10 +328,12 @@ export {
WizIHistory,
WizIHome,
WizIHourglassTop,
WizIImageBold,
WizIInboxCustomize,
WizIInfoBold,
WizIInfoFilled,
WizIInfo,
WizIKeep,
WizILinkOff,
WizILocationCity,
WizILocationOn,
Expand All @@ -334,9 +347,11 @@ export {
WizINoteAdd,
WizINotification,
WizIOpenInNew,
WizIPauseCircleBold,
WizIPersonFilled,
WizIPieChart,
WizIPinDrop,
WizIPlayCircleBold,
WizIPublic,
WizIRemoveBold,
WizIRemove,
Expand Down
Loading
Loading