Skip to content

Commit 79c788c

Browse files
committed
react: restore PopUp and SidePanel icons in generated outputs\n\n- Re-ran @metamask/design-system-react generate-icons to sync with shared SVGs\n- Added PopUp.tsx and SidePanel.tsx components\n- Updated icons/index.ts and IconName enum to include PopUp and SidePanel\n\nThis fixes a stale generated state that incorrectly removed these icons, restoring the public API with no functional changes.
1 parent b4e7402 commit 79c788c

4 files changed

Lines changed: 18 additions & 0 deletions

File tree

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import * as React from "react";
2+
import type { SVGProps } from "react";
3+
import { Ref, forwardRef } from "react";
4+
const SvgPopUp = (props: SVGProps<SVGSVGElement>, ref: Ref<SVGSVGElement>) => <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" ref={ref} {...props}><path d="M13 14h5V8h-5zm-9 6q-.824 0-1.412-.587A1.93 1.93 0 0 1 2 18V6q0-.824.587-1.412A1.93 1.93 0 0 1 4 4h16q.824 0 1.413.588Q22 5.175 22 6v12q0 .824-.587 1.413A1.93 1.93 0 0 1 20 20zm0-2h16V6H4z" /></svg>;
5+
const ForwardRef = forwardRef(SvgPopUp);
6+
export default ForwardRef;
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import * as React from "react";
2+
import type { SVGProps } from "react";
3+
import { Ref, forwardRef } from "react";
4+
const SvgSidePanel = (props: SVGProps<SVGSVGElement>, ref: Ref<SVGSVGElement>) => <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" ref={ref} {...props}><path d="M5 21q-.824 0-1.412-.587A1.93 1.93 0 0 1 3 19V5q0-.824.587-1.412A1.93 1.93 0 0 1 5 3h14q.824 0 1.413.587Q21 4.176 21 5v14q0 .824-.587 1.413A1.93 1.93 0 0 1 19 21zm11-2h3V5h-3zm-2 0V5H5v14z" /></svg>;
5+
const ForwardRef = forwardRef(SvgSidePanel);
6+
export default ForwardRef;

packages/design-system-react/src/components/Icon/icons/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ import Plant from './Plant';
178178
import Plug from './Plug';
179179
import PlusAndMinus from './PlusAndMinus';
180180
import PolicyAlert from './PolicyAlert';
181+
import PopUp from './PopUp';
181182
import Print from './Print';
182183
import PriorityHigh from './PriorityHigh';
183184
import PrivacyTip from './PrivacyTip';
@@ -218,6 +219,7 @@ import Share from './Share';
218219
import ShieldLock from './ShieldLock';
219220
import ShoppingBag from './ShoppingBag';
220221
import ShoppingCart from './ShoppingCart';
222+
import SidePanel from './SidePanel';
221223
import SignalCellular from './SignalCellular';
222224
import Slash from './Slash';
223225
import Sms from './Sms';
@@ -459,6 +461,7 @@ export const Icons = {
459461
Plug,
460462
PlusAndMinus,
461463
PolicyAlert,
464+
PopUp,
462465
Print,
463466
PriorityHigh,
464467
PrivacyTip,
@@ -499,6 +502,7 @@ export const Icons = {
499502
ShieldLock,
500503
ShoppingBag,
501504
ShoppingCart,
505+
SidePanel,
502506
SignalCellular,
503507
Slash,
504508
Sms,

packages/design-system-react/src/types/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -557,6 +557,7 @@ export enum IconName {
557557
Plug = 'Plug',
558558
PlusAndMinus = 'PlusAndMinus',
559559
PolicyAlert = 'PolicyAlert',
560+
PopUp = 'PopUp',
560561
Print = 'Print',
561562
PriorityHigh = 'PriorityHigh',
562563
PrivacyTip = 'PrivacyTip',
@@ -597,6 +598,7 @@ export enum IconName {
597598
ShieldLock = 'ShieldLock',
598599
ShoppingBag = 'ShoppingBag',
599600
ShoppingCart = 'ShoppingCart',
601+
SidePanel = 'SidePanel',
600602
SignalCellular = 'SignalCellular',
601603
Slash = 'Slash',
602604
Sms = 'Sms',

0 commit comments

Comments
 (0)