Skip to content

Commit 2a12454

Browse files
authored
update list of icons (#654)
* update list of icons * pretier fix
1 parent 98b0ed0 commit 2a12454

File tree

6 files changed

+98
-10
lines changed

6 files changed

+98
-10
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@nordcloud/gnui",
33
"description": "Nordcloud Design System - a collection of reusable React components used in Nordcloud's SaaS products",
4-
"version": "8.19.0",
4+
"version": "8.20.0",
55
"license": "MIT",
66
"repository": {
77
"type": "git",

src/components/button/Button.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ type ButtonIconProps = Pick<ButtonProps, "icon" | "initialState">;
7474
function ButtonIcon({ initialState, icon }: ButtonIconProps) {
7575
switch (initialState) {
7676
case "success":
77-
return <SVGIcon name="success" />;
77+
return <SVGIcon name="checkmark" />;
7878
case "error":
7979
return <SVGIcon name="danger" />;
8080
case "loading":

src/components/input/InputSearch.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,7 @@ export const InputSearch = React.forwardRef<HTMLInputElement, Props>(
4444
{...props}
4545
/>
4646
<ButtonWrapper>
47-
<Button size="md" severity="low" icon={icon} onClick={onSearch}>
48-
Search
49-
</Button>
47+
<Button size="md" severity="low" icon={icon} onClick={onSearch} />
5048
</ButtonWrapper>
5149
</InputGroup>
5250
);

src/components/svgicon/SVGIcon.stories.mdx

Lines changed: 51 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -427,11 +427,11 @@ import { theme } from "../../index";
427427
</Text>
428428
</FlexContainer>
429429
</CopyToClipboard>
430-
<CopyToClipboard text="feedback">
430+
<CopyToClipboard text="eventSettings">
431431
<FlexContainer direction="column">
432-
<SVGIcon name="feedback" />
432+
<SVGIcon name="eventSettings" />
433433
<Text size="xs" mt=".25rem">
434-
feedback
434+
eventSettings
435435
</Text>
436436
</FlexContainer>
437437
</CopyToClipboard>
@@ -591,6 +591,54 @@ import { theme } from "../../index";
591591
</Text>
592592
</FlexContainer>
593593
</CopyToClipboard>
594+
<CopyToClipboard text="clock">
595+
<FlexContainer direction="column">
596+
<SVGIcon name="clock" />
597+
<Text size="xs" mt=".25rem">
598+
clock
599+
</Text>
600+
</FlexContainer>
601+
</CopyToClipboard>
602+
<CopyToClipboard text="tag">
603+
<FlexContainer direction="column">
604+
<SVGIcon name="tag" />
605+
<Text size="xs" mt=".25rem">
606+
tag
607+
</Text>
608+
</FlexContainer>
609+
</CopyToClipboard>
610+
<CopyToClipboard text="layers">
611+
<FlexContainer direction="column">
612+
<SVGIcon name="layers" />
613+
<Text size="xs" mt=".25rem">
614+
layers
615+
</Text>
616+
</FlexContainer>
617+
</CopyToClipboard>
618+
<CopyToClipboard text="chart">
619+
<FlexContainer direction="column">
620+
<SVGIcon name="chart" />
621+
<Text size="xs" mt=".25rem">
622+
chart
623+
</Text>
624+
</FlexContainer>
625+
</CopyToClipboard>
626+
<CopyToClipboard text="feedback">
627+
<FlexContainer direction="column">
628+
<SVGIcon name="feedback" />
629+
<Text size="xs" mt=".25rem">
630+
feedback
631+
</Text>
632+
</FlexContainer>
633+
</CopyToClipboard>
634+
<CopyToClipboard text="file">
635+
<FlexContainer direction="column">
636+
<SVGIcon name="file" />
637+
<Text size="xs" mt=".25rem">
638+
file
639+
</Text>
640+
</FlexContainer>
641+
</CopyToClipboard>
594642
</FlexContainer>
595643
</Story>
596644
</Canvas>

src/components/svgicon/icons/ui.tsx

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1434,4 +1434,46 @@ export const uiIcons = {
14341434
<path d="m8.04,13.1c.67.31,1.32.61,1.95.91.32.15.46.43.4.72-.09.41-.5.61-.9.43-.71-.32-1.41-.66-2.12-.98-.35-.16-.7-.32-1.04-.48-.25-.12-.39-.31-.39-.6,0-.28.13-.49.38-.6,1.05-.49,2.11-.98,3.16-1.47.28-.13.56-.08.75.13.19.2.24.51.08.74-.09.13-.24.24-.38.31-.57.28-1.15.54-1.73.81-.05.02-.09.05-.16.09Z" />
14351435
</>
14361436
),
1437+
clock: (
1438+
<>
1439+
<path d="m12,1.12C6,1.12,1.12,6,1.12,12s4.88,10.88,10.88,10.88,10.88-4.88,10.88-10.88S18,1.12,12,1.12Zm0,20c-5.03,0-9.12-4.09-9.12-9.12S6.97,2.88,12,2.88s9.12,4.09,9.12,9.12-4.09,9.12-9.12,9.12Z" />
1440+
<path d="m16.39,13.22l-3.52-1.76v-5.46c0-.48-.39-.88-.88-.88s-.88.39-.88.88v6c0,.33.19.63.48.78l4,2c.13.06.26.09.39.09.32,0,.63-.18.78-.48.22-.43.04-.96-.39-1.17Z" />
1441+
</>
1442+
),
1443+
tag: (
1444+
<>
1445+
<path d="m21.62,10.39L13.03,1.8c-.16-.16-.39-.26-.62-.26H2.42c-.48,0-.88.39-.88.88v10c0,.23.09.46.26.62l8.59,8.58c.54.54,1.26.84,2.03.84h0c.77,0,1.49-.3,2.03-.84l7.17-7.17s0,0,0,0c1.11-1.12,1.11-2.94,0-4.06Zm-1.24,2.82l-7.17,7.17c-.21.21-.49.33-.79.33h0c-.3,0-.58-.12-.8-.33L3.29,12.05V3.29h8.76l8.33,8.33c.44.44.44,1.15,0,1.59Z" />
1446+
<path d="m7.43,6.42h0c-.55,0-1,.45-1,1s.45,1,1,1,1-.45,1-1-.45-1-1-1Z" />
1447+
</>
1448+
),
1449+
layers: (
1450+
<>
1451+
<path d="m12,12.88c-.13,0-.27-.03-.39-.09L1.61,7.78c-.3-.15-.48-.45-.48-.78s.19-.63.48-.78L11.61,1.22c.25-.12.54-.12.78,0l10,5c.3.15.48.45.48.78s-.19.63-.48.78l-10,5c-.12.06-.26.09-.39.09ZM3.96,7l8.04,4.02,8.04-4.02L12,2.98,3.96,7Z" />
1452+
<path d="m12,22.88c-.13,0-.27-.03-.39-.09L1.61,17.78c-.43-.22-.61-.74-.39-1.17.22-.43.74-.61,1.17-.39l9.61,4.8,9.61-4.8c.44-.22.96-.04,1.17.39.22.43.04.96-.39,1.17l-10,5c-.12.06-.26.09-.39.09Z" />
1453+
<path d="m12,17.88c-.13,0-.27-.03-.39-.09L1.61,12.78c-.43-.22-.61-.74-.39-1.17.22-.43.74-.61,1.17-.39l9.61,4.8,9.61-4.8c.44-.22.96-.04,1.17.39.22.43.04.96-.39,1.17l-10,5c-.12.06-.26.09-.39.09Z" />
1454+
</>
1455+
),
1456+
chart: (
1457+
<>
1458+
<path d="m19.96,22.61H4.04c-1.33,0-2.41-1.08-2.41-2.41V3.8c0-1.33,1.08-2.41,2.41-2.41h15.93c1.33,0,2.41,1.08,2.41,2.41v16.39c0,1.33-1.08,2.41-2.41,2.41ZM4.04,3.14c-.37,0-.66.3-.66.66v16.39c0,.37.3.66.66.66h15.93c.37,0,.66-.3.66-.66V3.8c0-.37-.3-.66-.66-.66H4.04Z" />
1459+
<rect x="15.87" y="8.34" width="1.94" height="10.19" rx=".76" ry=".76" />
1460+
<rect x="6.19" y="6.46" width="1.94" height="12.07" rx=".76" ry=".76" />
1461+
<rect x="11.03" y="11.1" width="1.94" height="7.42" rx=".76" ry=".76" />
1462+
</>
1463+
),
1464+
eventSettings: (
1465+
<>
1466+
<path d="m15.12,6.11h1.25c.14,0,.26-.11.26-.26v-1.3h2.91v4.41c0,.15.12.26.26.26h1.24c.15,0,.26-.12.26-.26v-4.51c0-.92-.74-1.66-1.66-1.66h-3.01v-1.3c0-.14-.11-.26-.26-.26h-1.25c-.14,0-.26.11-.26.26v1.3h-6.02v-1.29c0-.14-.12-.26-.26-.26h-1.24c-.14,0-.26.12-.26.26v1.29h-3.01c-.92,0-1.66.74-1.66,1.66v15.57c0,.92.74,1.66,1.66,1.66h2.96c.14,0,.26-.12.26-.26v-1.24c0-.14-.12-.26-.26-.26h-2.85V4.55h2.91v1.29c0,.14.12.26.26.26h1.24c.14,0,.26-.12.26-.26v-1.29h6.02v1.3c0,.14.11.26.26.26h-.01Z" />
1467+
<path d="m15.3,22.77c-.57,0-1.14-.08-1.71-.24-.38-.1-.64-.45-.64-.84v-.66c-.2-.1-.4-.21-.59-.34l-.57.33c-.34.2-.77.14-1.05-.14-.82-.81-1.41-1.84-1.71-2.96-.1-.38.07-.78.41-.98l.57-.33c0-.12-.01-.23-.01-.34s0-.23.01-.34l-.57-.33c-.34-.2-.51-.6-.41-.98.3-1.13.89-2.15,1.71-2.96.28-.28.71-.33,1.05-.14l.57.33c.19-.13.39-.24.59-.34v-.66c0-.39.26-.74.64-.84,1.15-.31,2.29-.31,3.42,0,.38.1.64.45.64.84v.66c.21.1.4.21.59.34l.57-.33c.34-.2.77-.14,1.05.14.82.81,1.41,1.84,1.71,2.96.1.38-.07.78-.41.98l-.57.33c0,.12.01.23.01.34s0,.23-.01.34l.57.33c.34.2.51.6.41.98-.3,1.13-.89,2.15-1.71,2.96-.28.28-.71.33-1.05.14l-.57-.33c-.19.13-.39.24-.59.34v.66c0,.39-.26.74-.64.84-.57.16-1.15.24-1.71.24Zm-.61-1.79c.41.05.8.06,1.21,0v-.53c0-.37.23-.7.58-.83.42-.15.79-.36,1.12-.65.28-.24.69-.28,1.01-.09l.45.26c.25-.32.45-.67.6-1.05l-.45-.26c-.32-.19-.49-.55-.42-.92.04-.22.06-.44.06-.65s-.02-.43-.06-.65c-.07-.37.1-.73.42-.92l.45-.26c-.16-.37-.36-.73-.6-1.05l-.45.26c-.32.18-.72.15-1.01-.09-.33-.28-.71-.5-1.12-.65-.35-.12-.58-.45-.58-.83v-.53c-.41-.05-.8-.06-1.21,0v.53c0,.37-.23.7-.58.83-.42.15-.8.37-1.13.65-.28.24-.68.28-1.01.09l-.45-.26c-.24.32-.45.67-.6,1.05l.45.26c.32.19.49.55.42.92-.04.23-.06.44-.06.65s.02.43.06.65c.07.37-.1.73-.42.92l-.45.26c.16.37.36.73.6,1.05l.45-.26c.32-.18.72-.15,1.01.09.33.29.71.5,1.12.65.35.12.58.45.58.83v.53h0Z" />
1468+
<path d="m15.3,18.79c-1.39,0-2.52-1.13-2.52-2.52s1.13-2.52,2.52-2.52,2.52,1.13,2.52,2.52-1.13,2.52-2.52,2.52Zm0-3.29c-.42,0-.77.34-.77.77s.34.77.77.77.77-.34.77-.77-.34-.77-.77-.77Z" />
1469+
</>
1470+
),
1471+
file: (
1472+
<>
1473+
<path d="m20.81,7.66c-.03-.07-.08-.13-.13-.19-.02-.03-.03-.06-.06-.09L14.62,1.38s-.06-.04-.09-.06c-.06-.05-.12-.1-.19-.13-.11-.04-.22-.07-.34-.07H6c-1.58,0-2.88,1.29-2.88,2.88v16c0,1.58,1.29,2.88,2.88,2.88h12c1.58,0,2.88-1.29,2.88-2.88v-12c0-.12-.02-.23-.07-.34Zm-5.93-3.55l3.01,3.01h-3.01v-3.01Zm3.12,17.01H6c-.62,0-1.12-.5-1.12-1.12V4c0-.62.5-1.12,1.12-1.12h7.12v5.12c0,.48.39.88.88.88h5.12v11.12c0,.62-.5,1.12-1.12,1.12Z" />
1474+
<path d="m16,12.12h-8c-.48,0-.88.39-.88.88s.39.88.88.88h8c.48,0,.88-.39.88-.88s-.39-.88-.88-.88Z" />
1475+
<path d="m16,16.12h-8c-.48,0-.88.39-.88.88s.39.88.88.88h8c.48,0,.88-.39.88-.88s-.39-.88-.88-.88Z" />
1476+
<path d="m8,9.88h2c.48,0,.88-.39.88-.88s-.39-.88-.88-.88h-2c-.48,0-.88.39-.88.88s.39.88.88.88Z" />
1477+
</>
1478+
),
14371479
};

0 commit comments

Comments
 (0)