@pagopa/io-app-design-system 5.0.0-1 → 5.0.0-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/components/alert/Alert.js +3 -8
- package/lib/commonjs/components/alert/Alert.js.map +1 -1
- package/lib/commonjs/components/badge/Badge.js +26 -71
- package/lib/commonjs/components/badge/Badge.js.map +1 -1
- package/lib/commonjs/components/badge/__test__/__snapshots__/badge.test.tsx.snap +4 -4
- package/lib/commonjs/components/banner/Banner.js +6 -11
- package/lib/commonjs/components/banner/Banner.js.map +1 -1
- package/lib/commonjs/components/banner/__test__/__snapshots__/banner.test.tsx.snap +2 -4
- package/lib/commonjs/components/banner/__test__/banner.test.js +0 -2
- package/lib/commonjs/components/banner/__test__/banner.test.js.map +1 -1
- package/lib/commonjs/components/icons/Icon.js +5 -1
- package/lib/commonjs/components/icons/Icon.js.map +1 -1
- package/lib/commonjs/components/icons/svg/IconTheme.js +28 -0
- package/lib/commonjs/components/icons/svg/IconTheme.js.map +1 -0
- package/lib/commonjs/components/icons/svg/IconTypeface.js +29 -0
- package/lib/commonjs/components/icons/svg/IconTypeface.js.map +1 -0
- package/lib/commonjs/components/icons/svg/originals/IconTheme.svg +1 -0
- package/lib/commonjs/components/icons/svg/originals/IconTypeface.svg +1 -0
- package/lib/commonjs/components/modules/ModulePaymentNotice.js +1 -1
- package/lib/commonjs/components/modules/ModulePaymentNotice.js.map +1 -1
- package/lib/commonjs/core/IOSpacing.js +2 -6
- package/lib/commonjs/core/IOSpacing.js.map +1 -1
- package/lib/module/components/alert/Alert.js +3 -8
- package/lib/module/components/alert/Alert.js.map +1 -1
- package/lib/module/components/badge/Badge.js +28 -72
- package/lib/module/components/badge/Badge.js.map +1 -1
- package/lib/module/components/badge/__test__/__snapshots__/badge.test.tsx.snap +4 -4
- package/lib/module/components/banner/Banner.js +7 -12
- package/lib/module/components/banner/Banner.js.map +1 -1
- package/lib/module/components/banner/__test__/__snapshots__/banner.test.tsx.snap +2 -4
- package/lib/module/components/banner/__test__/banner.test.js +0 -2
- package/lib/module/components/banner/__test__/banner.test.js.map +1 -1
- package/lib/module/components/icons/Icon.js +5 -1
- package/lib/module/components/icons/Icon.js.map +1 -1
- package/lib/module/components/icons/svg/IconTheme.js +20 -0
- package/lib/module/components/icons/svg/IconTheme.js.map +1 -0
- package/lib/module/components/icons/svg/IconTypeface.js +21 -0
- package/lib/module/components/icons/svg/IconTypeface.js.map +1 -0
- package/lib/module/components/icons/svg/originals/IconTheme.svg +1 -0
- package/lib/module/components/icons/svg/originals/IconTypeface.svg +1 -0
- package/lib/module/components/modules/ModulePaymentNotice.js +1 -1
- package/lib/module/components/modules/ModulePaymentNotice.js.map +1 -1
- package/lib/module/core/IOSpacing.js +0 -2
- package/lib/module/core/IOSpacing.js.map +1 -1
- package/lib/typescript/components/alert/Alert.d.ts +0 -1
- package/lib/typescript/components/alert/Alert.d.ts.map +1 -1
- package/lib/typescript/components/badge/Badge.d.ts +1 -1
- package/lib/typescript/components/badge/Badge.d.ts.map +1 -1
- package/lib/typescript/components/banner/Banner.d.ts +1 -2
- package/lib/typescript/components/banner/Banner.d.ts.map +1 -1
- package/lib/typescript/components/buttons/ButtonLink.d.ts +1 -1
- package/lib/typescript/components/buttons/ButtonOutline.d.ts +1 -1
- package/lib/typescript/components/buttons/ButtonSolid.d.ts +1 -1
- package/lib/typescript/components/icons/Icon.d.ts +2 -0
- package/lib/typescript/components/icons/Icon.d.ts.map +1 -1
- package/lib/typescript/components/icons/svg/IconTheme.d.ts +5 -0
- package/lib/typescript/components/icons/svg/IconTheme.d.ts.map +1 -0
- package/lib/typescript/components/icons/svg/IconTypeface.d.ts +5 -0
- package/lib/typescript/components/icons/svg/IconTypeface.d.ts.map +1 -0
- package/lib/typescript/core/IOSpacing.d.ts +0 -2
- package/lib/typescript/core/IOSpacing.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/alert/Alert.tsx +4 -8
- package/src/components/badge/Badge.tsx +27 -83
- package/src/components/badge/__test__/__snapshots__/badge.test.tsx.snap +4 -4
- package/src/components/banner/Banner.tsx +6 -17
- package/src/components/banner/__test__/__snapshots__/banner.test.tsx.snap +2 -4
- package/src/components/banner/__test__/banner.test.tsx +0 -2
- package/src/components/icons/Icon.tsx +5 -1
- package/src/components/icons/svg/IconTheme.tsx +16 -0
- package/src/components/icons/svg/IconTypeface.tsx +18 -0
- package/src/components/icons/svg/originals/IconTheme.svg +1 -0
- package/src/components/icons/svg/originals/IconTypeface.svg +1 -0
- package/src/components/modules/ModulePaymentNotice.tsx +1 -1
- package/src/core/IOSpacing.ts +0 -2
|
@@ -38,7 +38,7 @@ export declare const ButtonSolid: React.ForwardRefExoticComponent<{
|
|
|
38
38
|
* @default false
|
|
39
39
|
*/
|
|
40
40
|
loading?: boolean | undefined;
|
|
41
|
-
icon?: "code" | "option" | "change" | "search" | "key" | "spid" | "cie" | "cieLetter" | "qrCode" | "bell" | "website" | "abacus" | "home" | "homeFill" | "copy" | "selfCert" | "institution" | "merchant" | "hourglass" | "shareiOs" | "shareAndroid" | "filterOniOS" | "filterOffiOS" | "filterAndroid" | "locked" | "unlocked" | "initiatives" | "analytics" | "fornitori" | "eyeShow" | "eyeHide" | "pinOff" | "pinOn" | "emojiSad" | "emojiHappy" | "phone" | "email" | "emailFill" | "pec" | "messageLegal" | "message" | "chat" | "archive" | "archiveFilled" | "inbox" | "inboxFilled" | "security" | "docGiacenza" | "docPaymentTitle" | "docPaymentCode" | "docAttach" | "docAttachPDF" | "folder" | "receiptOn" | "receiptOff" | "notes" | "attachment" | "print" | "add" | "addSmall" | "success" | "ok" | "fiscalCodeIndividual" | "entityCode" | "creditCard" | "creditCardOff" | "creditCardFilled" | "bonus" | "bonusFilled" | "transactionsBoxed" | "transactions" | "amount" | "psp" | "mapPin" | "locationiOS" | "locationiOSFilled" | "locationAndroid" | "coggle" | "warningFilled" | "notice" | "noticeFilled" | "noticePlain" | "info" | "infoFilled" | "canceled" | "errorFilled" | "legalValue" | "refund" | "reload" | "history" | "edit" | "battery" | "trashcan" | "calendar" | "profile" | "familySharing" | "lightbulb" | "magicWand" | "sparkles" | "starEmpty" | "starFilled" | "starOff" | "heartEmpty" | "heartFilled" | "heartOff" | "switchOff" | "switchCard" | "fingerprint" | "touch" | "device" | "deviceVibration" | "contactless" | "signal" | "notification" | "keyboard" | "keyboardDown" | "dotMenu" | "barcode" | "save" | "login" | "logout" | "ladybug" | "tag" | "gallery" | "externalLink" | "externalLinkSmall" | "forward" | "cancel" | "compare" | "instruction" | "terms" | "help" | "accessibility" | "car" | "healthCard" | "chevronRight" | "chevronLeft" | "chevronBottom" | "chevronTop" | "chevronRightListItem" | "closeLarge" | "closeMedium" | "closeSmall" | "arrowBottom" | "arrowLeft" | "arrowTop" | "arrowRight" | "backiOS" | "backAndroid" | "checkTick" | "checkTickBig" | "read" | "light" | "lightFilled" | "navMessages" | "navMessagesFocused" | "navWallet" | "navWalletFocused" | "navQrWallet" | "navScan" | "navServices" | "navServicesFocused" | "navProfile" | "navProfileFocused" | "navPsp" | "legRadioOn" | "legRadioOff" | "legCheckOn" | "legCheckOff" | "biomFingerprint" | "biomFaceID" | "categCulture" | "categWellness" | "categLearning" | "categSport" | "categHome" | "categTelco" | "categFinance" | "categTravel" | "categMobility" | "categJobOffers" | "categShopping" | "categSustainability" | "productIOApp" | "productPagoPA" | "productIOAppBlueBg" | "systemSettingsAndroid" | "systemSettingsiOS" | "systemToggleInstructions" | "systemAppsAndroid" | "systemNotificationsInstructions" | "systemPermissionsAndroid" | "systemLocationiOS" | "systemPhotosiOS" | "systemPrivacyiOS" | "systemBiometricRecognitionOS" | "systemNFC" | "systemPasswordAndroid" | "systemPasswordiOS" | undefined;
|
|
41
|
+
icon?: "code" | "option" | "change" | "search" | "key" | "spid" | "cie" | "cieLetter" | "qrCode" | "bell" | "website" | "abacus" | "home" | "homeFill" | "copy" | "selfCert" | "institution" | "merchant" | "hourglass" | "shareiOs" | "shareAndroid" | "filterOniOS" | "filterOffiOS" | "filterAndroid" | "locked" | "unlocked" | "initiatives" | "analytics" | "fornitori" | "eyeShow" | "eyeHide" | "pinOff" | "pinOn" | "emojiSad" | "emojiHappy" | "phone" | "email" | "emailFill" | "pec" | "messageLegal" | "message" | "chat" | "archive" | "archiveFilled" | "inbox" | "inboxFilled" | "security" | "docGiacenza" | "docPaymentTitle" | "docPaymentCode" | "docAttach" | "docAttachPDF" | "folder" | "receiptOn" | "receiptOff" | "notes" | "attachment" | "print" | "add" | "addSmall" | "success" | "ok" | "fiscalCodeIndividual" | "entityCode" | "creditCard" | "creditCardOff" | "creditCardFilled" | "bonus" | "bonusFilled" | "transactionsBoxed" | "transactions" | "amount" | "psp" | "mapPin" | "locationiOS" | "locationiOSFilled" | "locationAndroid" | "coggle" | "warningFilled" | "notice" | "noticeFilled" | "noticePlain" | "info" | "infoFilled" | "canceled" | "errorFilled" | "legalValue" | "refund" | "reload" | "history" | "edit" | "battery" | "trashcan" | "calendar" | "profile" | "familySharing" | "lightbulb" | "magicWand" | "sparkles" | "starEmpty" | "starFilled" | "starOff" | "heartEmpty" | "heartFilled" | "heartOff" | "switchOff" | "switchCard" | "fingerprint" | "touch" | "device" | "deviceVibration" | "contactless" | "signal" | "notification" | "keyboard" | "keyboardDown" | "dotMenu" | "barcode" | "save" | "login" | "logout" | "ladybug" | "tag" | "gallery" | "externalLink" | "externalLinkSmall" | "forward" | "cancel" | "compare" | "instruction" | "terms" | "help" | "accessibility" | "car" | "healthCard" | "chevronRight" | "chevronLeft" | "chevronBottom" | "chevronTop" | "chevronRightListItem" | "closeLarge" | "closeMedium" | "closeSmall" | "arrowBottom" | "arrowLeft" | "arrowTop" | "arrowRight" | "backiOS" | "backAndroid" | "checkTick" | "checkTickBig" | "read" | "light" | "lightFilled" | "theme" | "typeface" | "navMessages" | "navMessagesFocused" | "navWallet" | "navWalletFocused" | "navQrWallet" | "navScan" | "navServices" | "navServicesFocused" | "navProfile" | "navProfileFocused" | "navPsp" | "legRadioOn" | "legRadioOff" | "legCheckOn" | "legCheckOff" | "biomFingerprint" | "biomFaceID" | "categCulture" | "categWellness" | "categLearning" | "categSport" | "categHome" | "categTelco" | "categFinance" | "categTravel" | "categMobility" | "categJobOffers" | "categShopping" | "categSustainability" | "productIOApp" | "productPagoPA" | "productIOAppBlueBg" | "systemSettingsAndroid" | "systemSettingsiOS" | "systemToggleInstructions" | "systemAppsAndroid" | "systemNotificationsInstructions" | "systemPermissionsAndroid" | "systemLocationiOS" | "systemPhotosiOS" | "systemPrivacyiOS" | "systemBiometricRecognitionOS" | "systemNFC" | "systemPasswordAndroid" | "systemPasswordiOS" | undefined;
|
|
42
42
|
/**
|
|
43
43
|
* @default start
|
|
44
44
|
*/
|
|
@@ -156,6 +156,8 @@ export declare const IOIcons: {
|
|
|
156
156
|
readonly light: ({ size, style, ...props }: import("./types").SVGIconProps) => React.JSX.Element;
|
|
157
157
|
readonly lightFilled: ({ size, style, ...props }: import("./types").SVGIconProps) => React.JSX.Element;
|
|
158
158
|
readonly code: ({ size, style, ...props }: import("./types").SVGIconProps) => React.JSX.Element;
|
|
159
|
+
readonly theme: ({ size, style, ...props }: import("./types").SVGIconProps) => React.JSX.Element;
|
|
160
|
+
readonly typeface: ({ size, style, ...props }: import("./types").SVGIconProps) => React.JSX.Element;
|
|
159
161
|
readonly navMessages: ({ size, style, ...props }: import("./types").SVGIconProps) => React.JSX.Element;
|
|
160
162
|
readonly navMessagesFocused: ({ size, style, ...props }: import("./types").SVGIconProps) => React.JSX.Element;
|
|
161
163
|
readonly navWallet: ({ size, style, ...props }: import("./types").SVGIconProps) => React.JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../../src/components/icons/Icon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../../src/components/icons/Icon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AA6M/C,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0MV,CAAC;AAEX,MAAM,MAAM,OAAO,GAAG,MAAM,OAAO,OAAO,CAAC;AAE3C,MAAM,MAAM,eAAe,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;AAErD,MAAM,MAAM,uBAAuB,GAAG,EAAE,GAAG,EAAE,CAAC;AAE9C,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,CAAC,EAAE,QAAQ,CAAC;IACjB,IAAI,CAAC,EAAE,eAAe,GAAG,uBAAuB,GAAG,MAAM,CAAC;IAC1D,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B,CAAC;AAMF,eAAO,MAAM,IAAI,sFAQd,YAAY,sBAqBd,CAAC;AAOF,KAAK,oBAAoB,GAAG;IAC1B,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,IAAI,CAAC,EAAE,eAAe,GAAG,MAAM,CAAC;IAChC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B,CAAC;AAEF,eAAO,MAAM,YAAY,kEAOtB,oBAAoB,sBAoBtB,CAAC;AAKF,qBAAa,kBAAmB,SAAQ,KAAK,CAAC,SAAS,CAAC,oBAAoB,CAAC;gBAC/D,KAAK,EAAE,oBAAoB;IAGvC,MAAM;CAGP;AASD,eAAO,MAAM,UAAU;;;;;CAKtB,CAAC;AAiBF,eAAO,MAAM,UAAU;;;;;;;;;;;;CAYb,CAAC;AAEX,MAAM,MAAM,UAAU,GAAG,MAAM,OAAO,UAAU,CAAC;AAKjD,eAAO,MAAM,gBAAgB;;;CAGnB,CAAC;AAEX,MAAM,MAAM,gBAAgB,GAAG,MAAM,OAAO,gBAAgB,CAAC;AAkB7D,eAAO,MAAM,eAAe;;;;;;;;;;;;;CAalB,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,eAAe,CAAC;AAK3D,eAAO,MAAM,cAAc;;;;CAIjB,CAAC;AAEX,MAAM,MAAM,cAAc,GAAG,MAAM,OAAO,cAAc,CAAC;AAmBzD,eAAO,MAAM,aAAa;;;;;;;;;;;;;;CAchB,CAAC;AAEX,MAAM,MAAM,aAAa,GAAG,MAAM,OAAO,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IconTheme.d.ts","sourceRoot":"","sources":["../../../../../src/components/icons/svg/IconTheme.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAExC,QAAA,MAAM,SAAS,8BAA+B,YAAY,sBASzD,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IconTypeface.d.ts","sourceRoot":"","sources":["../../../../../src/components/icons/svg/IconTypeface.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAExC,QAAA,MAAM,YAAY,8BAA+B,YAAY,sBAW5D,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -8,8 +8,6 @@ export declare const IOAlertSpacing: readonly [16, 24];
|
|
|
8
8
|
export type IOAlertSpacing = (typeof IOAlertSpacing)[number];
|
|
9
9
|
export type IOBannerSpacing = Extract<IOSpacingScale, 12 | 16>;
|
|
10
10
|
export declare const IOBannerBigSpacing: IOBannerSpacing;
|
|
11
|
-
export declare const IOBannerSmallHSpacing: IOBannerSpacing;
|
|
12
|
-
export declare const IOBannerSmallVSpacing: IOBannerSpacing;
|
|
13
11
|
export type IOTagSpacing = Extract<IOSpacingScale, 6 | 8>;
|
|
14
12
|
export declare const IOTagHSpacing: IOTagSpacing;
|
|
15
13
|
export declare const IOTagVSpacing: IOTagSpacing;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IOSpacing.d.ts","sourceRoot":"","sources":["../../../src/core/IOSpacing.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,cAAc,wEAEjB,CAAC;AACX,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC;AAG7D,eAAO,MAAM,QAAQ,yCAE6B,CAAC;AACnD,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC;AAGjD,eAAO,MAAM,WAAW,8BAE0B,CAAC;AACnD,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC;AAGvD,eAAO,MAAM,cAAc,mBAEuB,CAAC;AACnD,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC;AAG7D,MAAM,MAAM,eAAe,GAAG,OAAO,CAAC,cAAc,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC;AAC/D,eAAO,MAAM,kBAAkB,EAAE,eAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"IOSpacing.d.ts","sourceRoot":"","sources":["../../../src/core/IOSpacing.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,cAAc,wEAEjB,CAAC;AACX,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC;AAG7D,eAAO,MAAM,QAAQ,yCAE6B,CAAC;AACnD,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC;AAGjD,eAAO,MAAM,WAAW,8BAE0B,CAAC;AACnD,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC;AAGvD,eAAO,MAAM,cAAc,mBAEuB,CAAC;AACnD,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC;AAG7D,MAAM,MAAM,eAAe,GAAG,OAAO,CAAC,cAAc,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC;AAC/D,eAAO,MAAM,kBAAkB,EAAE,eAAoB,CAAC;AAGtD,MAAM,MAAM,YAAY,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;AAC1D,eAAO,MAAM,aAAa,EAAE,YAAgB,CAAC;AAC7C,eAAO,MAAM,aAAa,EAAE,YAAgB,CAAC;AAG7C,MAAM,MAAM,cAAc,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;AAC5D,eAAO,MAAM,eAAe,EAAE,cAAkB,CAAC;AACjD,eAAO,MAAM,eAAe,EAAE,cAAkB,CAAC;AAGjD,MAAM,MAAM,kBAAkB,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC;AACtE,eAAO,MAAM,mBAAmB,EAAE,kBAAuB,CAAC;AAC1D,eAAO,MAAM,mBAAmB,EAAE,kBAAuB,CAAC;AAC1D,eAAO,MAAM,wBAAwB,EAAE,kBAAuB,CAAC;AAC/D,eAAO,MAAM,oBAAoB,EAAE,kBAAsB,CAAC;AAM1D,QAAA,MAAM,mBAAmB,8BAA+B,CAAC;AAEzD,MAAM,MAAM,kBAAkB,GAAG;KAC9B,CAAC,IAAI,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,GAAG,cAAc;CAC5D,CAAC;AAEF,eAAO,MAAM,SAAS;;CAEiB,CAAC"}
|
package/package.json
CHANGED
|
@@ -18,7 +18,6 @@ import { WithTestID } from "../../utils/types";
|
|
|
18
18
|
import { IOIconSizeScale, IOIcons, Icon } from "../icons";
|
|
19
19
|
import { HStack, VStack } from "../stack";
|
|
20
20
|
import { Body, ButtonText } from "../typography";
|
|
21
|
-
import { H4 } from "../typography/H4";
|
|
22
21
|
|
|
23
22
|
const ICON_SIZE: IOIconSizeScale = 24;
|
|
24
23
|
|
|
@@ -26,7 +25,6 @@ const [padding, paddingFullWidth] = IOAlertSpacing;
|
|
|
26
25
|
|
|
27
26
|
type AlertProps = WithTestID<{
|
|
28
27
|
variant: "error" | "warning" | "info" | "success";
|
|
29
|
-
title?: string;
|
|
30
28
|
content: string;
|
|
31
29
|
fullWidth?: boolean;
|
|
32
30
|
accessibilityLabel?: string;
|
|
@@ -111,7 +109,6 @@ export const Alert = forwardRef<View, AlertType>(
|
|
|
111
109
|
(
|
|
112
110
|
{
|
|
113
111
|
variant,
|
|
114
|
-
title,
|
|
115
112
|
content,
|
|
116
113
|
action,
|
|
117
114
|
onPress,
|
|
@@ -165,15 +162,14 @@ export const Alert = forwardRef<View, AlertType>(
|
|
|
165
162
|
Tested on both Android and iOS. */}
|
|
166
163
|
<View
|
|
167
164
|
style={[
|
|
168
|
-
|
|
169
|
-
|
|
165
|
+
isMultiline && {
|
|
166
|
+
marginTop: -6 * dynamicFontScale,
|
|
167
|
+
marginBottom: -4 * dynamicFontScale
|
|
168
|
+
},
|
|
170
169
|
{ flex: 1 }
|
|
171
170
|
]}
|
|
172
171
|
>
|
|
173
172
|
<VStack space={8} allowScaleSpacing>
|
|
174
|
-
{title && (
|
|
175
|
-
<H4 color={mapVariantStates[variant].foreground}>{title}</H4>
|
|
176
|
-
)}
|
|
177
173
|
<Body
|
|
178
174
|
color={mapVariantStates[variant].foreground}
|
|
179
175
|
weight={"Regular"}
|
|
@@ -13,28 +13,29 @@ import {
|
|
|
13
13
|
IOBadgeVSpacing,
|
|
14
14
|
IOColors,
|
|
15
15
|
useIONewTypeface,
|
|
16
|
-
useIOTheme,
|
|
17
16
|
useIOThemeContext
|
|
18
17
|
} from "../../core";
|
|
19
18
|
import { useIOFontDynamicScale } from "../../utils/accessibility";
|
|
20
19
|
import { WithTestID } from "../../utils/types";
|
|
21
20
|
import { IOText } from "../typography";
|
|
22
21
|
|
|
22
|
+
/*
|
|
23
|
+
NOTE FOR REFACTORING in the `io-app`:
|
|
24
|
+
|
|
25
|
+
- default (legacy) -> removed
|
|
26
|
+
- blue -> Deleted -> replaced with `default`
|
|
27
|
+
- info -> removed -> highlight?
|
|
28
|
+
- purple -> cgn
|
|
29
|
+
- turquoise -> highlight
|
|
30
|
+
- contrast -> removed
|
|
31
|
+
- lightBlue -> default
|
|
32
|
+
*/
|
|
33
|
+
|
|
23
34
|
export type Badge = WithTestID<{
|
|
24
35
|
outline?: boolean;
|
|
25
36
|
text: string;
|
|
26
37
|
allowFontScaling?: boolean;
|
|
27
|
-
variant:
|
|
28
|
-
| "default"
|
|
29
|
-
| "info"
|
|
30
|
-
| "warning"
|
|
31
|
-
| "error"
|
|
32
|
-
| "success"
|
|
33
|
-
| "purple"
|
|
34
|
-
| "lightBlue"
|
|
35
|
-
| "blue"
|
|
36
|
-
| "turquoise"
|
|
37
|
-
| "contrast";
|
|
38
|
+
variant: "default" | "warning" | "error" | "success" | "cgn" | "highlight";
|
|
38
39
|
}>;
|
|
39
40
|
|
|
40
41
|
type SolidVariantProps = {
|
|
@@ -76,7 +77,6 @@ export const Badge = ({
|
|
|
76
77
|
variant,
|
|
77
78
|
testID
|
|
78
79
|
}: Badge) => {
|
|
79
|
-
const theme = useIOTheme();
|
|
80
80
|
const { dynamicFontScale } = useIOFontDynamicScale();
|
|
81
81
|
const { themeType } = useIOThemeContext();
|
|
82
82
|
const { newTypefaceEnabled } = useIONewTypeface();
|
|
@@ -88,12 +88,8 @@ export const Badge = ({
|
|
|
88
88
|
SolidVariantProps
|
|
89
89
|
> = {
|
|
90
90
|
default: {
|
|
91
|
-
foreground: "
|
|
92
|
-
background: IOColors["
|
|
93
|
-
},
|
|
94
|
-
info: {
|
|
95
|
-
foreground: "info-850",
|
|
96
|
-
background: IOColors["info-100"]
|
|
91
|
+
foreground: "blueIO-850",
|
|
92
|
+
background: IOColors["blueIO-50"]
|
|
97
93
|
},
|
|
98
94
|
warning: {
|
|
99
95
|
foreground: "warning-850",
|
|
@@ -107,25 +103,13 @@ export const Badge = ({
|
|
|
107
103
|
foreground: "error-850",
|
|
108
104
|
background: IOColors["error-100"]
|
|
109
105
|
},
|
|
110
|
-
|
|
106
|
+
cgn: {
|
|
111
107
|
foreground: "hanPurple-500",
|
|
112
108
|
background: IOColors["hanPurple-100"]
|
|
113
109
|
},
|
|
114
|
-
|
|
115
|
-
foreground: "blueIO-850",
|
|
116
|
-
background: IOColors["blueIO-50"]
|
|
117
|
-
},
|
|
118
|
-
blue: {
|
|
119
|
-
foreground: "white",
|
|
120
|
-
background: IOColors[theme["interactiveElem-default"]]
|
|
121
|
-
},
|
|
122
|
-
turquoise: {
|
|
110
|
+
highlight: {
|
|
123
111
|
foreground: "turquoise-850",
|
|
124
112
|
background: IOColors["turquoise-50"]
|
|
125
|
-
},
|
|
126
|
-
contrast: {
|
|
127
|
-
foreground: "grey-700",
|
|
128
|
-
background: IOColors.white
|
|
129
113
|
}
|
|
130
114
|
};
|
|
131
115
|
|
|
@@ -134,12 +118,8 @@ export const Badge = ({
|
|
|
134
118
|
SolidVariantProps
|
|
135
119
|
> = {
|
|
136
120
|
default: {
|
|
137
|
-
foreground: "
|
|
138
|
-
background: hexToRgba(IOColors["
|
|
139
|
-
},
|
|
140
|
-
info: {
|
|
141
|
-
foreground: "info-400",
|
|
142
|
-
background: hexToRgba(IOColors["info-400"], bgOpacityDarkMode)
|
|
121
|
+
foreground: "blueIO-200",
|
|
122
|
+
background: hexToRgba(IOColors["blueIO-200"], bgOpacityDarkMode)
|
|
143
123
|
},
|
|
144
124
|
warning: {
|
|
145
125
|
foreground: "warning-400",
|
|
@@ -153,25 +133,13 @@ export const Badge = ({
|
|
|
153
133
|
foreground: "error-400",
|
|
154
134
|
background: hexToRgba(IOColors["error-400"], bgOpacityDarkMode)
|
|
155
135
|
},
|
|
156
|
-
|
|
136
|
+
cgn: {
|
|
157
137
|
foreground: "hanPurple-250",
|
|
158
138
|
background: hexToRgba(IOColors["hanPurple-250"], bgOpacityDarkMode)
|
|
159
139
|
},
|
|
160
|
-
|
|
161
|
-
foreground: "blueIO-200",
|
|
162
|
-
background: hexToRgba(IOColors["blueIO-600"], bgOpacityDarkMode)
|
|
163
|
-
},
|
|
164
|
-
blue: {
|
|
165
|
-
foreground: "white",
|
|
166
|
-
background: IOColors[theme["interactiveElem-default"]]
|
|
167
|
-
},
|
|
168
|
-
turquoise: {
|
|
140
|
+
highlight: {
|
|
169
141
|
foreground: "turquoise-300",
|
|
170
142
|
background: hexToRgba(IOColors["turquoise-300"], bgOpacityDarkMode)
|
|
171
|
-
},
|
|
172
|
-
contrast: {
|
|
173
|
-
foreground: "grey-700",
|
|
174
|
-
background: IOColors.white
|
|
175
143
|
}
|
|
176
144
|
};
|
|
177
145
|
|
|
@@ -180,10 +148,7 @@ export const Badge = ({
|
|
|
180
148
|
OutlinedVariantProps
|
|
181
149
|
> = {
|
|
182
150
|
default: {
|
|
183
|
-
foreground: "
|
|
184
|
-
},
|
|
185
|
-
info: {
|
|
186
|
-
foreground: "info-850"
|
|
151
|
+
foreground: "blueIO-850"
|
|
187
152
|
},
|
|
188
153
|
warning: {
|
|
189
154
|
foreground: "warning-850"
|
|
@@ -194,20 +159,11 @@ export const Badge = ({
|
|
|
194
159
|
error: {
|
|
195
160
|
foreground: "error-850"
|
|
196
161
|
},
|
|
197
|
-
|
|
162
|
+
cgn: {
|
|
198
163
|
foreground: "hanPurple-500"
|
|
199
164
|
},
|
|
200
|
-
|
|
201
|
-
foreground: "blueIO-850"
|
|
202
|
-
},
|
|
203
|
-
blue: {
|
|
204
|
-
foreground: theme["interactiveElem-default"]
|
|
205
|
-
},
|
|
206
|
-
turquoise: {
|
|
165
|
+
highlight: {
|
|
207
166
|
foreground: "turquoise-850"
|
|
208
|
-
},
|
|
209
|
-
contrast: {
|
|
210
|
-
foreground: "grey-850"
|
|
211
167
|
}
|
|
212
168
|
};
|
|
213
169
|
|
|
@@ -216,10 +172,7 @@ export const Badge = ({
|
|
|
216
172
|
OutlinedVariantProps
|
|
217
173
|
> = {
|
|
218
174
|
default: {
|
|
219
|
-
foreground: "
|
|
220
|
-
},
|
|
221
|
-
info: {
|
|
222
|
-
foreground: "info-400"
|
|
175
|
+
foreground: "blueIO-200"
|
|
223
176
|
},
|
|
224
177
|
warning: {
|
|
225
178
|
foreground: "warning-400"
|
|
@@ -230,20 +183,11 @@ export const Badge = ({
|
|
|
230
183
|
error: {
|
|
231
184
|
foreground: "error-400"
|
|
232
185
|
},
|
|
233
|
-
|
|
186
|
+
cgn: {
|
|
234
187
|
foreground: "hanPurple-250"
|
|
235
188
|
},
|
|
236
|
-
|
|
237
|
-
foreground: "blueIO-150"
|
|
238
|
-
},
|
|
239
|
-
blue: {
|
|
240
|
-
foreground: theme["interactiveElem-default"]
|
|
241
|
-
},
|
|
242
|
-
turquoise: {
|
|
189
|
+
highlight: {
|
|
243
190
|
foreground: "turquoise-300"
|
|
244
|
-
},
|
|
245
|
-
contrast: {
|
|
246
|
-
foreground: "grey-100"
|
|
247
191
|
}
|
|
248
192
|
};
|
|
249
193
|
|
|
@@ -17,7 +17,7 @@ exports[`Test Badge Components - Experimental Enabled Badge Snapshot 1`] = `
|
|
|
17
17
|
"paddingVertical": 4,
|
|
18
18
|
},
|
|
19
19
|
{
|
|
20
|
-
"backgroundColor": "#
|
|
20
|
+
"backgroundColor": "#E7ECFC",
|
|
21
21
|
},
|
|
22
22
|
]
|
|
23
23
|
}
|
|
@@ -31,7 +31,7 @@ exports[`Test Badge Components - Experimental Enabled Badge Snapshot 1`] = `
|
|
|
31
31
|
[
|
|
32
32
|
{},
|
|
33
33
|
{
|
|
34
|
-
"color": "#
|
|
34
|
+
"color": "#031344",
|
|
35
35
|
"fontFamily": "Titillio",
|
|
36
36
|
"fontSize": 12,
|
|
37
37
|
"fontStyle": "normal",
|
|
@@ -69,7 +69,7 @@ exports[`Test Badge Components Badge Snapshot 1`] = `
|
|
|
69
69
|
"paddingVertical": 4,
|
|
70
70
|
},
|
|
71
71
|
{
|
|
72
|
-
"backgroundColor": "#
|
|
72
|
+
"backgroundColor": "#E7ECFC",
|
|
73
73
|
},
|
|
74
74
|
]
|
|
75
75
|
}
|
|
@@ -83,7 +83,7 @@ exports[`Test Badge Components Badge Snapshot 1`] = `
|
|
|
83
83
|
[
|
|
84
84
|
{},
|
|
85
85
|
{
|
|
86
|
-
"color": "#
|
|
86
|
+
"color": "#031344",
|
|
87
87
|
"fontFamily": "Titillio",
|
|
88
88
|
"fontSize": 12,
|
|
89
89
|
"fontStyle": "normal",
|
|
@@ -11,8 +11,6 @@ import Animated from "react-native-reanimated";
|
|
|
11
11
|
import {
|
|
12
12
|
IOBannerBigSpacing,
|
|
13
13
|
IOBannerRadius,
|
|
14
|
-
IOBannerSmallHSpacing,
|
|
15
|
-
IOBannerSmallVSpacing,
|
|
16
14
|
IOStyles,
|
|
17
15
|
useIONewTypeface,
|
|
18
16
|
useIOTheme,
|
|
@@ -31,24 +29,22 @@ import { VSpacer } from "../spacer";
|
|
|
31
29
|
import { BodySmall, buttonTextFontSize, H6, IOText } from "../typography";
|
|
32
30
|
|
|
33
31
|
/* Styles */
|
|
34
|
-
const
|
|
35
|
-
const sizePictogramSmall: IOPictogramSizeScale = 64;
|
|
32
|
+
const sizePictogram: IOPictogramSizeScale = 80;
|
|
36
33
|
const closeButtonDistanceFromEdge: number = 6;
|
|
37
34
|
const closeButtonOpacity = 0.6;
|
|
38
|
-
const
|
|
39
|
-
const sizeSmallHPadding = IOBannerSmallHSpacing;
|
|
40
|
-
const sizeSmallVPadding = IOBannerSmallVSpacing;
|
|
35
|
+
const bannerPadding = IOBannerBigSpacing;
|
|
41
36
|
|
|
42
37
|
const styles = StyleSheet.create({
|
|
43
38
|
container: {
|
|
44
39
|
flexDirection: "row",
|
|
45
40
|
alignItems: "flex-start",
|
|
46
41
|
alignContent: "center",
|
|
42
|
+
padding: bannerPadding,
|
|
47
43
|
borderRadius: IOBannerRadius,
|
|
48
44
|
borderCurve: "continuous"
|
|
49
45
|
},
|
|
50
46
|
bleedPictogram: {
|
|
51
|
-
marginRight: -
|
|
47
|
+
marginRight: -bannerPadding
|
|
52
48
|
},
|
|
53
49
|
closeIconButton: {
|
|
54
50
|
position: "absolute",
|
|
@@ -61,7 +57,6 @@ const styles = StyleSheet.create({
|
|
|
61
57
|
/* Component Types */
|
|
62
58
|
|
|
63
59
|
type BaseBannerProps = WithTestID<{
|
|
64
|
-
size: "big" | "small";
|
|
65
60
|
color: "neutral" | "turquoise";
|
|
66
61
|
pictogramName: IOPictogramsBleed;
|
|
67
62
|
viewRef?: React.RefObject<View>;
|
|
@@ -137,7 +132,6 @@ const mapBackgroundColorDarkMode: Record<
|
|
|
137
132
|
|
|
138
133
|
export const Banner = ({
|
|
139
134
|
viewRef,
|
|
140
|
-
size,
|
|
141
135
|
color,
|
|
142
136
|
pictogramName,
|
|
143
137
|
title,
|
|
@@ -167,9 +161,7 @@ export const Banner = ({
|
|
|
167
161
|
backgroundColor:
|
|
168
162
|
themeType === "dark"
|
|
169
163
|
? hexToRgba(IOColors[mapBackgroundColorDarkMode[color]], 0.1)
|
|
170
|
-
: IOColors[mapBackgroundColorLightMode[color]]
|
|
171
|
-
paddingVertical: size === "big" ? sizeBigPadding : sizeSmallVPadding,
|
|
172
|
-
paddingHorizontal: size === "big" ? sizeBigPadding : sizeSmallHPadding
|
|
164
|
+
: IOColors[mapBackgroundColorLightMode[color]]
|
|
173
165
|
};
|
|
174
166
|
|
|
175
167
|
/* Generates a complete fallbackAccessibilityLabel by concatenating the title, content, and action
|
|
@@ -232,10 +224,7 @@ export const Banner = ({
|
|
|
232
224
|
)}
|
|
233
225
|
</View>
|
|
234
226
|
<View style={[styles.bleedPictogram, IOStyles.selfCenter]}>
|
|
235
|
-
<PictogramBleed
|
|
236
|
-
name={pictogramName}
|
|
237
|
-
size={size === "big" ? sizePictogramBig : sizePictogramSmall}
|
|
238
|
-
/>
|
|
227
|
+
<PictogramBleed name={pictogramName} size={sizePictogram} />
|
|
239
228
|
</View>
|
|
240
229
|
{onClose && labelClose && (
|
|
241
230
|
<View style={styles.closeIconButton}>
|
|
@@ -41,11 +41,10 @@ exports[`Test Banner Components - Experimental Enabled Banner Snapshot 1`] = `
|
|
|
41
41
|
"borderCurve": "continuous",
|
|
42
42
|
"borderRadius": 8,
|
|
43
43
|
"flexDirection": "row",
|
|
44
|
+
"padding": 16,
|
|
44
45
|
},
|
|
45
46
|
{
|
|
46
47
|
"backgroundColor": "#F4F5F8",
|
|
47
|
-
"paddingHorizontal": 16,
|
|
48
|
-
"paddingVertical": 16,
|
|
49
48
|
},
|
|
50
49
|
{
|
|
51
50
|
"transform": [
|
|
@@ -320,11 +319,10 @@ exports[`Test Banner Components Banner Snapshot 1`] = `
|
|
|
320
319
|
"borderCurve": "continuous",
|
|
321
320
|
"borderRadius": 8,
|
|
322
321
|
"flexDirection": "row",
|
|
322
|
+
"padding": 16,
|
|
323
323
|
},
|
|
324
324
|
{
|
|
325
325
|
"backgroundColor": "#F4F5F8",
|
|
326
|
-
"paddingHorizontal": 16,
|
|
327
|
-
"paddingVertical": 16,
|
|
328
326
|
},
|
|
329
327
|
{
|
|
330
328
|
"transform": [
|
|
@@ -13,7 +13,6 @@ describe("Test Banner Components", () => {
|
|
|
13
13
|
const advice = TestRenderer.create(
|
|
14
14
|
<Banner
|
|
15
15
|
color="neutral"
|
|
16
|
-
size="big"
|
|
17
16
|
title="Banner title"
|
|
18
17
|
pictogramName="charity"
|
|
19
18
|
action="Action text"
|
|
@@ -30,7 +29,6 @@ describe("Test Banner Components - Experimental Enabled", () => {
|
|
|
30
29
|
const advice = TestRendererWithExperimentalEnabledContextProvider(
|
|
31
30
|
<Banner
|
|
32
31
|
color="neutral"
|
|
33
|
-
size="big"
|
|
34
32
|
title="Banner title"
|
|
35
33
|
pictogramName="charity"
|
|
36
34
|
action="Action text"
|
|
@@ -132,12 +132,12 @@ import IconNavMessages from "./svg/IconNavMessages";
|
|
|
132
132
|
import IconNavMessagesFocused from "./svg/IconNavMessagesFocused";
|
|
133
133
|
import IconNavProfile from "./svg/IconNavProfile";
|
|
134
134
|
import IconNavProfileFocused from "./svg/IconNavProfileFocused";
|
|
135
|
+
import IconNavQrWallet from "./svg/IconNavQrWallet";
|
|
135
136
|
import IconNavScan from "./svg/IconNavScan";
|
|
136
137
|
import IconNavServices from "./svg/IconNavServices";
|
|
137
138
|
import IconNavServicesFocused from "./svg/IconNavServicesFocused";
|
|
138
139
|
import IconNavWallet from "./svg/IconNavWallet";
|
|
139
140
|
import IconNavWalletFocused from "./svg/IconNavWalletFocused";
|
|
140
|
-
import IconNavQrWallet from "./svg/IconNavQrWallet";
|
|
141
141
|
import IconNotes from "./svg/IconNotes";
|
|
142
142
|
import IconNotice from "./svg/IconNotice";
|
|
143
143
|
import IconNoticeFilled from "./svg/IconNoticeFilled";
|
|
@@ -192,10 +192,12 @@ import IconSystemSettingsiOS from "./svg/IconSystemSettingsiOS";
|
|
|
192
192
|
import IconSystemToggleInstructions from "./svg/IconSystemToggleInstructions";
|
|
193
193
|
import IconTag from "./svg/IconTag";
|
|
194
194
|
import IconTerms from "./svg/IconTerms";
|
|
195
|
+
import IconTheme from "./svg/IconTheme";
|
|
195
196
|
import IconTouch from "./svg/IconTouch";
|
|
196
197
|
import IconTransactions from "./svg/IconTransactions";
|
|
197
198
|
import IconTransactionsBoxed from "./svg/IconTransactionsBoxed";
|
|
198
199
|
import IconTrashcan from "./svg/IconTrashcan";
|
|
200
|
+
import IconTypeface from "./svg/IconTypeface";
|
|
199
201
|
import IconWarningFilled from "./svg/IconWarningFilled";
|
|
200
202
|
import IconWebsite from "./svg/IconWebsite";
|
|
201
203
|
import LegIconCheckOff from "./svg/LegIconCheckOff";
|
|
@@ -358,6 +360,8 @@ export const IOIcons = {
|
|
|
358
360
|
light: IconLight,
|
|
359
361
|
lightFilled: IconLightFilled,
|
|
360
362
|
code: IconCode,
|
|
363
|
+
theme: IconTheme,
|
|
364
|
+
typeface: IconTypeface,
|
|
361
365
|
navMessages: IconNavMessages,
|
|
362
366
|
navMessagesFocused: IconNavMessagesFocused,
|
|
363
367
|
navWallet: IconNavWallet,
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Svg, Path } from "react-native-svg";
|
|
3
|
+
import { SVGIconProps } from "../types";
|
|
4
|
+
|
|
5
|
+
const IconTheme = ({ size, style, ...props }: SVGIconProps) => (
|
|
6
|
+
<Svg width={size} height={size} viewBox="0 0 24 24" style={style} {...props}>
|
|
7
|
+
<Path
|
|
8
|
+
fillRule="evenodd"
|
|
9
|
+
clipRule="evenodd"
|
|
10
|
+
d="M12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0ZM22 12C22 17.5228 17.5228 22 12 22V2C17.5228 2 22 6.47715 22 12Z"
|
|
11
|
+
fill="currentColor"
|
|
12
|
+
/>
|
|
13
|
+
</Svg>
|
|
14
|
+
);
|
|
15
|
+
|
|
16
|
+
export default IconTheme;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Svg, Path } from "react-native-svg";
|
|
3
|
+
import { SVGIconProps } from "../types";
|
|
4
|
+
|
|
5
|
+
const IconTypeface = ({ size, style, ...props }: SVGIconProps) => (
|
|
6
|
+
<Svg width={size} height={size} viewBox="0 0 24 24" style={style} {...props}>
|
|
7
|
+
<Path
|
|
8
|
+
d="M22.56 18.8877C21.692 18.8877 21.1002 18.6115 20.7649 18.0986C19.7193 18.789 18.6541 19.1244 17.4902 19.1244C15.3597 19.1244 14.0972 17.9605 14.0972 16.0075C14.0972 14.1137 15.2019 13.1274 17.5691 12.9301L20.4887 12.6934V12.2002C20.4887 10.9969 19.7391 10.3262 18.4568 10.3262C17.431 10.3262 16.78 10.6813 16.4644 11.4506H14.0972C14.7087 9.61601 16.2869 8.59021 18.5752 8.59021C21.1594 8.59021 22.7376 10.0105 22.7376 12.3778V16.4021C22.7376 16.8952 22.9348 17.0925 23.428 17.0925H24.0001V18.8877H22.56ZM16.3066 15.9286C16.3066 16.8558 16.9378 17.3884 18.1412 17.3884C18.8908 17.3884 19.6207 17.132 20.4887 16.5993V14.2913L17.8847 14.528C16.7406 14.6266 16.3066 15.0409 16.3066 15.9286Z"
|
|
9
|
+
fill="currentColor"
|
|
10
|
+
/>
|
|
11
|
+
<Path
|
|
12
|
+
d="M0 18.8877L4.912 5H8.16694L13.0789 18.8877H10.5736L9.44919 15.5736H3.5903L2.46586 18.8877H0ZM4.24128 13.6404H8.7982L6.50988 6.87406L4.24128 13.6404Z"
|
|
13
|
+
fill="currentColor"
|
|
14
|
+
/>
|
|
15
|
+
</Svg>
|
|
16
|
+
);
|
|
17
|
+
|
|
18
|
+
export default IconTypeface;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0ZM22 12C22 17.5228 17.5228 22 12 22V2C17.5228 2 22 6.47715 22 12Z" fill="#BBC2D6"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M22.56 18.8877C21.692 18.8877 21.1002 18.6115 20.7649 18.0986C19.7193 18.789 18.6541 19.1244 17.4902 19.1244C15.3597 19.1244 14.0972 17.9605 14.0972 16.0075C14.0972 14.1137 15.2019 13.1274 17.5691 12.9301L20.4887 12.6934V12.2002C20.4887 10.9969 19.7391 10.3262 18.4568 10.3262C17.431 10.3262 16.78 10.6813 16.4644 11.4506H14.0972C14.7087 9.61601 16.2869 8.59021 18.5752 8.59021C21.1594 8.59021 22.7376 10.0105 22.7376 12.3778V16.4021C22.7376 16.8952 22.9348 17.0925 23.428 17.0925H24.0001V18.8877H22.56ZM16.3066 15.9286C16.3066 16.8558 16.9378 17.3884 18.1412 17.3884C18.8908 17.3884 19.6207 17.132 20.4887 16.5993V14.2913L17.8847 14.528C16.7406 14.6266 16.3066 15.0409 16.3066 15.9286Z" fill="#BBC2D6"/><path d="M0 18.8877L4.912 5H8.16694L13.0789 18.8877H10.5736L9.44919 15.5736H3.5903L2.46586 18.8877H0ZM4.24128 13.6404H8.7982L6.50988 6.87406L4.24128 13.6404Z" fill="#BBC2D6"/></svg>
|
package/src/core/IOSpacing.ts
CHANGED
|
@@ -30,8 +30,6 @@ export type IOAlertSpacing = (typeof IOAlertSpacing)[number];
|
|
|
30
30
|
// Values used in the `<Banner>` component
|
|
31
31
|
export type IOBannerSpacing = Extract<IOSpacingScale, 12 | 16>;
|
|
32
32
|
export const IOBannerBigSpacing: IOBannerSpacing = 16;
|
|
33
|
-
export const IOBannerSmallHSpacing: IOBannerSpacing = 16;
|
|
34
|
-
export const IOBannerSmallVSpacing: IOBannerSpacing = 12;
|
|
35
33
|
|
|
36
34
|
// Values used in the `<Tag>` component
|
|
37
35
|
export type IOTagSpacing = Extract<IOSpacingScale, 6 | 8>;
|