Skip to content

Commit 4639152

Browse files
committed
feat: add icons and illustrations
1 parent 0b4ffbb commit 4639152

7 files changed

Lines changed: 26 additions & 2 deletions

File tree

Lines changed: 3 additions & 0 deletions
Loading
Lines changed: 10 additions & 0 deletions
Loading
20.1 KB
Loading

src/Shared/Components/GenericModal/GenericModal.component.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,16 @@ const GenericModal = ({
8787
onEscape = noop,
8888
closeOnBackdropClick = false,
8989
children,
90+
avoidFocusTrap = false,
9091
}: PropsWithChildren<GenericModalProps>) => (
9192
<AnimatePresence>
9293
{open && (
9394
<GenericModalProvider value={{ name, onClose }}>
94-
<Backdrop onEscape={onEscape} onClick={closeOnBackdropClick ? onClose : noop}>
95+
<Backdrop
96+
onEscape={onEscape}
97+
onClick={closeOnBackdropClick ? onClose : noop}
98+
avoidFocusTrap={avoidFocusTrap}
99+
>
95100
<motion.div
96101
className={`shadow__modal flexbox-col bg__primary border__secondary br-${borderRadius} dc__m-auto mt-40 dc__overflow-hidden ${MODAL_WIDTH_TO_CLASS_NAME_MAP[width]}`}
97102
exit={{ y: 100, opacity: 0, scale: 0.75, transition: { duration: 0.35 } }}

src/Shared/Components/GenericModal/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import { BackdropProps } from '../Backdrop'
1818
import { ButtonProps } from '../Button'
1919

20-
export interface GenericModalProps extends Partial<Pick<BackdropProps, 'onEscape'>> {
20+
export interface GenericModalProps extends Partial<Pick<BackdropProps, 'onEscape' | 'avoidFocusTrap'>> {
2121
/** Unique identifier for the modal */
2222
name: string
2323
/** Controls whether the modal is visible or hidden */

src/Shared/Components/Icon/Icon.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ import { ReactComponent as ICCostVisibility } from '@IconsV2/ic-cost-visibility.
9696
import { ReactComponent as ICCpu } from '@IconsV2/ic-cpu.svg'
9797
import { ReactComponent as ICCrown } from '@IconsV2/ic-crown.svg'
9898
import { ReactComponent as ICCube } from '@IconsV2/ic-cube.svg'
99+
import { ReactComponent as ICCurvedArrow } from '@IconsV2/ic-curved-arrow.svg'
99100
import { ReactComponent as ICDatabaseBackup } from '@IconsV2/ic-database-backup.svg'
100101
import { ReactComponent as ICDelete } from '@IconsV2/ic-delete.svg'
101102
import { ReactComponent as ICDeleteDots } from '@IconsV2/ic-delete-dots.svg'
@@ -217,6 +218,7 @@ import { ReactComponent as ICMobile } from '@IconsV2/ic-mobile.svg'
217218
import { ReactComponent as ICMonitoring } from '@IconsV2/ic-monitoring.svg'
218219
import { ReactComponent as ICMoreVertical } from '@IconsV2/ic-more-vertical.svg'
219220
import { ReactComponent as ICNamespace } from '@IconsV2/ic-namespace.svg'
221+
import { ReactComponent as ICNavCursor } from '@IconsV2/ic-nav-cursor.svg'
220222
import { ReactComponent as ICNew } from '@IconsV2/ic-new.svg'
221223
import { ReactComponent as ICNodeScript } from '@IconsV2/ic-node-script.svg'
222224
import { ReactComponent as ICOidc } from '@IconsV2/ic-oidc.svg'
@@ -412,6 +414,7 @@ export const iconMap = {
412414
'ic-cpu': ICCpu,
413415
'ic-crown': ICCrown,
414416
'ic-cube': ICCube,
417+
'ic-curved-arrow': ICCurvedArrow,
415418
'ic-database-backup': ICDatabaseBackup,
416419
'ic-delete-dots': ICDeleteDots,
417420
'ic-delete-lightning': ICDeleteLightning,
@@ -533,6 +536,7 @@ export const iconMap = {
533536
'ic-monitoring': ICMonitoring,
534537
'ic-more-vertical': ICMoreVertical,
535538
'ic-namespace': ICNamespace,
539+
'ic-nav-cursor': ICNavCursor,
536540
'ic-new': ICNew,
537541
'ic-node-script': ICNodeScript,
538542
'ic-oidc': ICOidc,

src/Shared/Components/Illustration/Illustration.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// NOTE: This file is auto-generated. Do not edit directly. Run the script `npm run generate-illustration` to update.
22

3+
import CmdBarVisual from '@Illustrations/cmd-bar-visual.webp'
34
import CreateBackupSchedule from '@Illustrations/create-backup-schedule.webp'
45
import CreateBackupSnapshot from '@Illustrations/create-backup-snapshot.webp'
56
import { ReactComponent as ImgCelebration } from '@Illustrations/img-celebration.svg'
@@ -31,6 +32,7 @@ export const illustrationMap = {
3132
'img-no-backup-location': ImgNoBackupLocation,
3233
'img-no-restores': ImgNoRestores,
3334
'img-page-not-found': ImgPageNotFound,
35+
'cmd-bar-visual': CmdBarVisual,
3436
'create-backup-schedule': CreateBackupSchedule,
3537
'create-backup-snapshot': CreateBackupSnapshot,
3638
'img-code': ImgCode,

0 commit comments

Comments
 (0)