Skip to content

Commit

Permalink
Add Windows and Apple icon
Browse files Browse the repository at this point in the history
  • Loading branch information
Studio384 committed Sep 5, 2024
1 parent 880eb70 commit fa49aa9
Show file tree
Hide file tree
Showing 9 changed files with 207 additions and 198 deletions.
338 changes: 149 additions & 189 deletions docs/package-lock.json

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,28 +16,28 @@
"@emotion/react": "11.13.3",
"@emotion/styled": "11.13.0",
"@mui/joy": "5.0.0-beta.48",
"@mui/material": "6.0.0",
"@mui/material": "6.0.2",
"@sippy-platform/valkyrie": "file:../",
"react": "18.3.1",
"react-dom": "18.3.1",
"react-router-dom": "6.26.1"
},
"devDependencies": {
"@trivago/prettier-plugin-sort-imports": "4.3.0",
"@types/react": "18.3.4",
"@types/react": "18.3.5",
"@types/react-dom": "18.3.0",
"@typescript-eslint/eslint-plugin": "7.18.0",
"@typescript-eslint/parser": "7.18.0",
"@typescript-eslint/eslint-plugin": "8.4.0",
"@typescript-eslint/parser": "8.4.0",
"@vitejs/plugin-react-swc": "3.7.0",
"eslint": "8.57.0",
"eslint-import-resolver-typescript": "3.6.3",
"eslint-plugin-import": "2.29.1",
"eslint-plugin-react": "7.35.0",
"eslint-plugin-import": "2.30.0",
"eslint-plugin-react": "7.35.2",
"eslint-plugin-react-hooks": "4.6.2",
"eslint-plugin-react-refresh": "0.4.11",
"prettier": "3.3.3",
"typescript": "5.5.4",
"vite": "5.4.2",
"vite": "5.4.3",
"vite-bundle-visualizer": "1.2.1",
"vite-plugin-html": "3.2.2"
}
Expand Down
7 changes: 7 additions & 0 deletions docs/public/data/icons/apple.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"title": "Apple",
"categories": ["brands"],
"tags": [],
"created": "1.0.0",
"updated": "1.0.0"
}
7 changes: 7 additions & 0 deletions docs/public/data/icons/windows.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"title": "Windows",
"categories": ["brands"],
"tags": ["microsoft"],
"created": "1.0.0",
"updated": "1.0.0"
}
3 changes: 2 additions & 1 deletion docs/src/app/Docs/pages/Changelog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ export default function Changelog() {
<Release
name="Valkyrie 1.0 alpha 49"
version="1.0.0-alpha.49"
date="8 July 2024"
date="5 September 2024"
newIcons={['apple', 'windows']}
renamedIcons={[
{ old: 'thumbstack', new: 'thumbtack' },
{ old: 'thumbstack-slash', new: 'thumbtack-slash' }
Expand Down
16 changes: 15 additions & 1 deletion docs/src/data/icons.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

import { viAGum,viAddressBook,viAngleDown,viAngleLeft,viAngleRight,viAngleUp,viAnglesY,viAppleAppStore,viArrowDownArrowUp,viArrowDownFromCloud,viArrowDownShortWide,viArrowDownToLine,viArrowDownWideShort,viArrowDown,viArrowLeftArrowRight,viArrowLeftFromBracket,viArrowLeftToBracket,viArrowLeftToLine,viArrowLeft,viArrowPointer,viArrowRightFromBracket,viArrowRightFromFile,viArrowRightFromSmartphone,viArrowRightProhibited,viArrowRightToBracket,viArrowRightToFile,viArrowRightToLine,viArrowRight,viArrowRotateRight,viArrowUpRightFromSquare,viArrowUpShortWide,viArrowUpToCloud,viArrowUpToLine,viArrowUpWideShort,viArrowUp,viArrowsRotateRight,viAsterisk,viAt,viBackward,viBarsUneven,viBars,viBel,viBlf,viBold,viBook,viBoxOpenFull,viBracketsCurly,viBroom,viBug,viBuilding,viCalendarClock,viCalendarDay,viCalendarRangeClock,viCalendarRange,viCalendarStars,viCalendarWeek,viCalendar,viChainSlash,viChain,viChalkboardPerson,viChartPie,viCheck,viChevronDown,viChevronLeft,viChevronRight,viChevronUp,viChrome,viCircleCheck,viCircleDashed,viCircleExclamation,viCircleHalfInner,viCircleHalf,viCircleInfo,viCirclePerson,viCirclePlus,viCircleQuestion,viCircleXmark,viCity,viClockRotateLeft,viClock,viCloudSoftphone,viCode,viCodeblock,viCommand,viCompare,viCompass,viCompress,viCopy,viDevices,viDiceFive,viDiceFour,viDiceOne,viDiceSix,viDiceThree,viDiceTwo,viDice,viDisplay,viDoor,viEarth,viEclipse,viEdge,viEllipsisH,viEllipsisV,viEnvelope,viEthernet,viEuro,viExpand,viExport,viEyeSlash,viEye,viFacebookMessenger,viFacebook,viFanvil,viFastBackward,viFastForward,viFax,viFile,viFilesList,viFiles,viFilmstrip,viFilterPlus,viFilterXmark,viFilter,viFingerprint,viFirefox,viFlagCheckered,viFlag,viFlask,viFloppyDisk,viFolderImage,viFolder,viForward,viGauge,viGear,viGift,viGithub,viGooglePlay,viGrid,viGripDotsH,viGripDotsV,viGripLines,viHeading1,viHeading2,viHeading3,viHeading4,viHeading5,viHeading6,viHeadset,viHeartCrack,viHeartHalf,viHeart,viHouse,viIdCard,viImage,viItalic,viKey,viKeyboardBrightnessHigh,viKeyboardBrightnessLow,viKeyboard,viLaptop,viLayersPlus,viLayers,viLifeRing,viLightbulbOn,viLightbulb,viLine,viLinkedin,viListChecksXmark,viListChecks,viListClock,viListOrderedClock,viListOrdered,viList,viLocationPinDot,viLocationPinSlash,viLocationPin,viLocationPinsRoute,viLockOpen,viLock,viMagnifyingGlass,viMegaphone,viMessagePen,viMessageSmile,viMessageText,viMessage,viMicrophone,viMin,viMoon,viMusicPause,viMusic,viNetwork,viNext,viNumpad,viOrderAlphabeticalAsc,viOrderAlphabeticalDesc,viOrderNumericalAsc,viOrderNumericalDesc,viPager,viPaperPlane,viParachuteBox,viParagraph,viPassword,viPause,viPen,viPeopleCircle,viPeopleXmark,viPeople,viPersonClock,viPersonGear,viPersonHeadset,viPersonList,viPersonLock,viPersonPlus,viPersonXmark,viPerson,viPhoneArrowDownLeftProhibited,viPhoneArrowDownLeft,viPhoneArrowUpRightProhibited,viPhoneArrowUpRight,viPhoneClock,viPhoneGear,viPhoneList,viPhoneOffice,viPhoneVolume,viPhone,viPlayPause,viPlay,viPlus,viPower,viPrevious,viProhibited,viPuzzlePiece,viQuote,viRectangleP,viRedo,viRepeatOnce,viRepeat,viSafari,viServer,viShare,viShieldKeyhole,viShieldPlus,viShieldXmark,viShield,viShuffle,viSidebarLeft,viSidebarRight,viSimCard,viSippy,viSliders,viSmartphone,viSpeakerGrill,viSpinnerThird,viSpinner,viSpy,viSquareGum,viStar,viStop,viStore,viStrikethrough,viSun,viSwatchbook,viTableClock,viTableHeaderColumn,viTableHeaderRow,viTable,viTagGear,viTagPlus,viTag,viTeams,viThumbtackSlash,viThumbtack,viToggleOff,viToggleOn,viTowerBroadcast,viTranslate,viTrashCan,viTriangleExclamation,viUnderline,viUndo,viValkyrieSword,viVideo,viVoicemail,viVolume0,viVolume1,viVolume2,viVolume3,viVolumeSlash,viWallpaper,viWaveform,viWebhooksClock,viWebhooks,viWindow,viXmark,viYealink } from '@sippy-platform/valkyrie';
import { viAGum,viAddressBook,viAngleDown,viAngleLeft,viAngleRight,viAngleUp,viAnglesY,viAppleAppStore,viApple,viArrowDownArrowUp,viArrowDownFromCloud,viArrowDownShortWide,viArrowDownToLine,viArrowDownWideShort,viArrowDown,viArrowLeftArrowRight,viArrowLeftFromBracket,viArrowLeftToBracket,viArrowLeftToLine,viArrowLeft,viArrowPointer,viArrowRightFromBracket,viArrowRightFromFile,viArrowRightFromSmartphone,viArrowRightProhibited,viArrowRightToBracket,viArrowRightToFile,viArrowRightToLine,viArrowRight,viArrowRotateRight,viArrowUpRightFromSquare,viArrowUpShortWide,viArrowUpToCloud,viArrowUpToLine,viArrowUpWideShort,viArrowUp,viArrowsRotateRight,viAsterisk,viAt,viBackward,viBarsUneven,viBars,viBel,viBlf,viBold,viBook,viBoxOpenFull,viBracketsCurly,viBroom,viBug,viBuilding,viCalendarClock,viCalendarDay,viCalendarRangeClock,viCalendarRange,viCalendarStars,viCalendarWeek,viCalendar,viChainSlash,viChain,viChalkboardPerson,viChartPie,viCheck,viChevronDown,viChevronLeft,viChevronRight,viChevronUp,viChrome,viCircleCheck,viCircleDashed,viCircleExclamation,viCircleHalfInner,viCircleHalf,viCircleInfo,viCirclePerson,viCirclePlus,viCircleQuestion,viCircleXmark,viCity,viClockRotateLeft,viClock,viCloudSoftphone,viCode,viCodeblock,viCommand,viCompare,viCompass,viCompress,viCopy,viDevices,viDiceFive,viDiceFour,viDiceOne,viDiceSix,viDiceThree,viDiceTwo,viDice,viDisplay,viDoor,viEarth,viEclipse,viEdge,viEllipsisH,viEllipsisV,viEnvelope,viEthernet,viEuro,viExpand,viExport,viEyeSlash,viEye,viFacebookMessenger,viFacebook,viFanvil,viFastBackward,viFastForward,viFax,viFile,viFilesList,viFiles,viFilmstrip,viFilterPlus,viFilterXmark,viFilter,viFingerprint,viFirefox,viFlagCheckered,viFlag,viFlask,viFloppyDisk,viFolderImage,viFolder,viForward,viGauge,viGear,viGift,viGithub,viGooglePlay,viGrid,viGripDotsH,viGripDotsV,viGripLines,viHeading1,viHeading2,viHeading3,viHeading4,viHeading5,viHeading6,viHeadset,viHeartCrack,viHeartHalf,viHeart,viHouse,viIdCard,viImage,viItalic,viKey,viKeyboardBrightnessHigh,viKeyboardBrightnessLow,viKeyboard,viLaptop,viLayersPlus,viLayers,viLifeRing,viLightbulbOn,viLightbulb,viLine,viLinkedin,viListChecksXmark,viListChecks,viListClock,viListOrderedClock,viListOrdered,viList,viLocationPinDot,viLocationPinSlash,viLocationPin,viLocationPinsRoute,viLockOpen,viLock,viMagnifyingGlass,viMegaphone,viMessagePen,viMessageSmile,viMessageText,viMessage,viMicrophone,viMin,viMoon,viMusicPause,viMusic,viNetwork,viNext,viNumpad,viOrderAlphabeticalAsc,viOrderAlphabeticalDesc,viOrderNumericalAsc,viOrderNumericalDesc,viPager,viPaperPlane,viParachuteBox,viParagraph,viPassword,viPause,viPen,viPeopleCircle,viPeopleXmark,viPeople,viPersonClock,viPersonGear,viPersonHeadset,viPersonList,viPersonLock,viPersonPlus,viPersonXmark,viPerson,viPhoneArrowDownLeftProhibited,viPhoneArrowDownLeft,viPhoneArrowUpRightProhibited,viPhoneArrowUpRight,viPhoneClock,viPhoneGear,viPhoneList,viPhoneOffice,viPhoneVolume,viPhone,viPlayPause,viPlay,viPlus,viPower,viPrevious,viProhibited,viPuzzlePiece,viQuote,viRectangleP,viRedo,viRepeatOnce,viRepeat,viSafari,viServer,viShare,viShieldKeyhole,viShieldPlus,viShieldXmark,viShield,viShuffle,viSidebarLeft,viSidebarRight,viSimCard,viSippy,viSliders,viSmartphone,viSpeakerGrill,viSpinnerThird,viSpinner,viSpy,viSquareGum,viStar,viStop,viStore,viStrikethrough,viSun,viSwatchbook,viTableClock,viTableHeaderColumn,viTableHeaderRow,viTable,viTagGear,viTagPlus,viTag,viTeams,viThumbtackSlash,viThumbtack,viToggleOff,viToggleOn,viTowerBroadcast,viTranslate,viTrashCan,viTriangleExclamation,viUnderline,viUndo,viValkyrieSword,viVideo,viVoicemail,viVolume0,viVolume1,viVolume2,viVolume3,viVolumeSlash,viWallpaper,viWaveform,viWebhooksClock,viWebhooks,viWindow,viWindows,viXmark,viYealink } from '@sippy-platform/valkyrie';

const icons = [
{
Expand Down Expand Up @@ -58,6 +58,13 @@ const icons = [
slug: 'apple-app-store',
icon: viAppleAppStore
},
{
component: 'viApple',
categories: ["brands"],
tags: [],
slug: 'apple',
icon: viApple
},
{
component: 'viArrowDownArrowUp',
categories: ["arrows"],
Expand Down Expand Up @@ -2053,6 +2060,13 @@ const icons = [
slug: 'window',
icon: viWindow
},
{
component: 'viWindows',
categories: ["brands"],
tags: ["microsoft"],
slug: 'windows',
icon: viWindows
},
{
component: 'viXmark',
categories: ["editor","mathematics","punctuation-symbols"],
Expand Down
1 change: 1 addition & 0 deletions icons/apple.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 icons/windows.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions src/Valkyrie.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,13 @@ export const viAppleAppStore: {
name: 'apple_app_store',
data: `<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" class="vi" viewBox="0 0 16 16"><path d="M13.5 1h-11A1.5 1.5 0 0 0 1 2.5v11A1.5 1.5 0 0 0 2.5 15h11a1.5 1.5 0 0 0 1.5-1.5v-11A1.5 1.5 0 0 0 13.5 1M4.969 12.016a.624.624 0 1 1-1.082-.625l.447-.772q.755-.23 1.238.356zm4.34-1.685H3.625A.627.627 0 0 1 3 9.706c0-.343.281-.625.625-.625h1.594l2.043-3.537-.64-1.106a.626.626 0 0 1 .228-.854.626.626 0 0 1 .853.228l.278.482.278-.481a.624.624 0 1 1 1.082.624L6.659 9.082H8.6c.631 0 .984.74.71 1.25m3.066 0h-.906l.612 1.06c.172.3.069.68-.228.853a.626.626 0 0 1-.853-.228C9.972 10.238 9.203 8.9 8.688 8.012c-.522-.906-.15-1.812.221-2.118q.614 1.065 1.841 3.187h1.625a.625.625 0 1 1 0 1.25"/></svg>`,
};
export const viApple: {
name: 'apple';
data: string;
} = {
name: 'apple',
data: `<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" class="vi" viewBox="0 0 16 16"><path d="M11.96 8.397c-.007-1.147.512-2.013 1.562-2.65-.588-.84-1.475-1.303-2.647-1.394C9.765 4.266 8.553 5 8.109 5c-.468 0-1.543-.616-2.387-.616-1.744.028-3.597 1.391-3.597 4.163q0 1.228.45 2.537c.4 1.147 1.844 3.96 3.35 3.913.788-.019 1.344-.56 2.369-.56.993 0 1.51.56 2.387.56 1.519-.022 2.825-2.578 3.207-3.728-2.038-.96-1.929-2.813-1.929-2.872m-1.77-5.131c.854-1.013.776-1.935.75-2.266-.752.044-1.624.513-2.121 1.09-.547.62-.869 1.385-.8 2.248.815.062 1.56-.357 2.172-1.072"/></svg>`,
};
export const viArrowDownArrowUp: {
name: 'arrow_down_arrow_up';
data: string;
Expand Down Expand Up @@ -2050,6 +2057,13 @@ export const viWindow: {
name: 'window',
data: `<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" class="vi" viewBox="0 0 16 16"><path d="M0 4.75A2.75 2.75 0 0 1 2.75 2h10.5A2.75 2.75 0 0 1 16 4.75v7.5A2.75 2.75 0 0 1 13.25 15H2.75A2.75 2.75 0 0 1 0 12.25zm1.5.75v6.75c0 .69.56 1.25 1.25 1.25h10.5c.69 0 1.25-.56 1.25-1.25V5.5zm7.25-1a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5M12 3.75a.75.75 0 1 0-1.5 0 .75.75 0 0 0 1.5 0m1.75.75a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5"/></svg>`,
};
export const viWindows: {
name: 'windows';
data: string;
} = {
name: 'windows',
data: `<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" class="vi" viewBox="0 0 16 16"><path d="M2 1a1 1 0 0 0-1 1v5.5h6.5V1zm6.5 0v6.5H15V2a1 1 0 0 0-1-1zM15 8.5H8.5V15H14a1 1 0 0 0 1-1zM7.5 15V8.5H1V14a1 1 0 0 0 1 1z"/></svg>`,
};
export const viXmark: {
name: 'xmark';
data: string;
Expand All @@ -2073,6 +2087,7 @@ export type Valkyrie =
| 'angle_up'
| 'angles_y'
| 'apple_app_store'
| 'apple'
| 'arrow_down_arrow_up'
| 'arrow_down_from_cloud'
| 'arrow_down_short_wide'
Expand Down Expand Up @@ -2358,6 +2373,7 @@ export type Valkyrie =
| 'webhooks_clock'
| 'webhooks'
| 'window'
| 'windows'
| 'xmark'
| 'yealink';
export interface IValkyrieIcon {
Expand All @@ -2375,6 +2391,7 @@ export const valkyrieSet = [
viAngleUp,
viAnglesY,
viAppleAppStore,
viApple,
viArrowDownArrowUp,
viArrowDownFromCloud,
viArrowDownShortWide,
Expand Down Expand Up @@ -2660,6 +2677,7 @@ export const valkyrieSet = [
viWebhooksClock,
viWebhooks,
viWindow,
viWindows,
viXmark,
viYealink,
];

0 comments on commit fa49aa9

Please sign in to comment.