diff --git a/packages/documentation/nodemon.json b/packages/documentation/nodemon.json index c72b9d7a..4fd6cfd9 100644 --- a/packages/documentation/nodemon.json +++ b/packages/documentation/nodemon.json @@ -6,6 +6,7 @@ "../ui-components/src/**/*.*", "../ui-components/lib/**/*.*", "../ui-styles/src/**/*.*", - "../ui-form/src/**/*.*" + "../ui-form/src/**/*.*", + "../ui-icons/src/**/*.*" ] } diff --git a/packages/ui-icons/lib/icons/config.json b/packages/ui-icons/lib/icons/config.json index 1e2014ff..60b31def 100644 --- a/packages/ui-icons/lib/icons/config.json +++ b/packages/ui-icons/lib/icons/config.json @@ -86,5 +86,15 @@ "name": "IconBrightness", "title": "Brightness", "monotone": true + }, + "arrow-up": { + "name": "IconUp", + "title": "Up", + "monotone": true + }, + "arrow-down": { + "name": "IconDown", + "title": "Down", + "monotone": true } } diff --git a/packages/ui-icons/lib/icons/svg/arrow-down.svg b/packages/ui-icons/lib/icons/svg/arrow-down.svg new file mode 100644 index 00000000..1413f072 --- /dev/null +++ b/packages/ui-icons/lib/icons/svg/arrow-down.svg @@ -0,0 +1,4 @@ + + + + diff --git a/packages/ui-icons/lib/icons/svg/arrow-up.svg b/packages/ui-icons/lib/icons/svg/arrow-up.svg new file mode 100644 index 00000000..1ac94f03 --- /dev/null +++ b/packages/ui-icons/lib/icons/svg/arrow-up.svg @@ -0,0 +1,4 @@ + + + + diff --git a/packages/ui-icons/src/components/Icons/IconDown.tsx b/packages/ui-icons/src/components/Icons/IconDown.tsx new file mode 100644 index 00000000..bf779f0b --- /dev/null +++ b/packages/ui-icons/src/components/Icons/IconDown.tsx @@ -0,0 +1,49 @@ +/** + * This file was automatically generated. + * Please do not edit manually. + * + * To update this file, run `yarn build:icons`. + * + * Original name: arrow-down.svg + * + * !Font Awesome Pro 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2024 Fonticons, Inc. + * + */ + +import { SvgIcon } from "@versini/ui-private"; + +import type { IconsProps } from "./IconsTypes"; + +export const IconDown = ({ + className, + viewBox, + spacing, + title, + + monotone, + ...rest +}: IconsProps) => { + /* v8 ignore next 1 */ + const opacity = monotone ? "1" : "0.4"; + return ( + + + + + ); +}; diff --git a/packages/ui-icons/src/components/Icons/IconUp.tsx b/packages/ui-icons/src/components/Icons/IconUp.tsx new file mode 100644 index 00000000..798bdf80 --- /dev/null +++ b/packages/ui-icons/src/components/Icons/IconUp.tsx @@ -0,0 +1,49 @@ +/** + * This file was automatically generated. + * Please do not edit manually. + * + * To update this file, run `yarn build:icons`. + * + * Original name: arrow-up.svg + * + * !Font Awesome Pro 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2024 Fonticons, Inc. + * + */ + +import { SvgIcon } from "@versini/ui-private"; + +import type { IconsProps } from "./IconsTypes"; + +export const IconUp = ({ + className, + viewBox, + spacing, + title, + + monotone, + ...rest +}: IconsProps) => { + /* v8 ignore next 1 */ + const opacity = monotone ? "1" : "0.4"; + return ( + + + + + ); +}; diff --git a/packages/ui-icons/src/components/Icons/__tests__/Icons.test.tsx b/packages/ui-icons/src/components/Icons/__tests__/Icons.test.tsx index 5837ad79..0d009f3c 100644 --- a/packages/ui-icons/src/components/Icons/__tests__/Icons.test.tsx +++ b/packages/ui-icons/src/components/Icons/__tests__/Icons.test.tsx @@ -10,6 +10,7 @@ import { IconCopy, IconDelete, IconDog, + IconDown, IconEdit, IconGitHub, IconHide, @@ -21,6 +22,7 @@ import { IconRestore, IconSettings, IconShow, + IconUp, IconUser, } from "../.."; @@ -201,6 +203,20 @@ describe("Generic Icons prop tests", () => { viewBox={viewBox} spacing={spacing} /> + + , ); @@ -224,6 +240,8 @@ describe("Generic Icons prop tests", () => { "icon-previous", "icon-github", "icon-brightness", + "icon-down", + "icon-up", ].forEach(async (dataTestId) => { await renderExpected({ dataTestId, diff --git a/packages/ui-icons/src/components/index.ts b/packages/ui-icons/src/components/index.ts index 6ce18ea5..523c101d 100644 --- a/packages/ui-icons/src/components/index.ts +++ b/packages/ui-icons/src/components/index.ts @@ -6,6 +6,7 @@ import { IconCopied } from "./Icons/IconCopied"; import { IconCopy } from "./Icons/IconCopy"; import { IconDelete } from "./Icons/IconDelete"; import { IconDog } from "./Icons/IconDog"; +import { IconDown } from "./Icons/IconDown"; import { IconEdit } from "./Icons/IconEdit"; import { IconGitHub } from "./Icons/IconGitHub"; import { IconHide } from "./Icons/IconHide"; @@ -17,6 +18,7 @@ import { IconProfile } from "./Icons/IconProfile"; import { IconRestore } from "./Icons/IconRestore"; import { IconSettings } from "./Icons/IconSettings"; import { IconShow } from "./Icons/IconShow"; +import { IconUp } from "./Icons/IconUp"; import { IconUser } from "./Icons/IconUser"; export { @@ -28,6 +30,7 @@ export { IconCopy, IconDelete, IconDog, + IconDown, IconEdit, IconGitHub, IconHide, @@ -39,5 +42,6 @@ export { IconRestore, IconSettings, IconShow, + IconUp, IconUser, };