Skip to content

Commit

Permalink
chore: Bumped @atb-as/theme and @atb-as/generate-assets (#5027)
Browse files Browse the repository at this point in the history
  • Loading branch information
tft-abel authored and mathiazom committed Feb 18, 2025
1 parent 7e914b0 commit 0c21f1e
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 28 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
"dependencies": {
"@adrianso/react-native-device-brightness": "^1.2.7",
"@atb-as/config-specs": "^5.3.0",
"@atb-as/generate-assets": "^14.0.3",
"@atb-as/theme": "^13.1.3",
"@atb-as/generate-assets": "^15.1.1",
"@atb-as/theme": "^13.1.4",
"@bugsnag/react-native": "^7.25.0",
"@bugsnag/source-maps": "^2.3.3",
"@entur-private/abt-mobile-barcode-javascript-lib": "2.1.6",
Expand Down
2 changes: 1 addition & 1 deletion src/components/icon-box/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ import {
Walk,
Night,
Unknown,
Bicycle,
} from '@atb/assets/svg/mono-icons/transportation';
import {
Plane,
Scooter,
Subway,
} from '@atb/assets/svg/mono-icons/transportation-entur';
import {Bicycle} from '@atb/assets/svg/mono-icons/vehicles';
import {SvgShuttle} from './SvgShuttle';
import {APP_ORG} from '@env';

Expand Down
5 changes: 3 additions & 2 deletions src/mobility/components/BicycleSheet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import React from 'react';
import {BottomSheetContainer} from '@atb/components/bottom-sheet';
import {useTranslation} from '@atb/translations';
import {StyleSheet} from '@atb/theme';
import {Battery, Bicycle} from '@atb/assets/svg/mono-icons/vehicles';
import {BatteryHigh} from '@atb/assets/svg/mono-icons/miscellaneous';
import {Bicycle} from '@atb/assets/svg/mono-icons/transportation';
import {
BicycleTexts,
MobilityTexts,
Expand Down Expand Up @@ -95,7 +96,7 @@ export const BicycleSheet = ({
'ELECTRIC_ASSIST') &&
vehicle.currentFuelPercent ? (
<MobilityStat
svg={Battery}
svg={BatteryHigh}
primaryStat={vehicle.currentFuelPercent + '%'}
secondaryStat={t(
MobilityTexts.range(
Expand Down
2 changes: 1 addition & 1 deletion src/mobility/components/ParkAndRideBottomSheet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React from 'react';
import {BottomSheetContainer} from '@atb/components/bottom-sheet';
import {WalkingDistance} from '@atb/components/walking-distance';
import {StyleSheet} from '@atb/theme';
import {Bicycle} from '@atb/assets/svg/mono-icons/vehicles';
import {Bicycle} from '@atb/assets/svg/mono-icons/transportation';
import {ParkAndRideTexts} from '@atb/translations/screens/subscreens/MobilityTexts';
import {ScrollView, View} from 'react-native';
import {useSafeAreaInsets} from 'react-native-safe-area-context';
Expand Down
4 changes: 2 additions & 2 deletions src/mobility/components/ScooterSheet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import React from 'react';
import {BottomSheetContainer} from '@atb/components/bottom-sheet';
import {useTranslation} from '@atb/translations';
import {StyleSheet} from '@atb/theme';
import {Battery} from '@atb/assets/svg/mono-icons/vehicles';
import {BatteryHigh} from '@atb/assets/svg/mono-icons/miscellaneous';
import {
MobilityTexts,
ScooterTexts,
Expand Down Expand Up @@ -99,7 +99,7 @@ export const ScooterSheet = ({
<MobilityStats
first={
<MobilityStat
svg={Battery}
svg={BatteryHigh}
primaryStat={vehicle.currentFuelPercent + '%'}
secondaryStat={t(
MobilityTexts.range(
Expand Down
5 changes: 3 additions & 2 deletions src/storybook/stories/ThemeIcon.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ import {
Flexible,
Unknown as UnknownTransportation,
Walk,
Bicycle,
} from '@atb/assets/svg/mono-icons/transportation';
import {
Bicycle as BicycleEntur,
Expand All @@ -146,7 +147,7 @@ import {
Tram as TramEntur,
Walk as WalkEntur,
} from '@atb/assets/svg/mono-icons/transportation-entur';
import {Battery, Bicycle} from '@atb/assets/svg/mono-icons/vehicles';
import {BatteryHigh} from '@atb/assets/svg/mono-icons/miscellaneous';
import {getColorByOption} from '../utils';

type ThemeIconMetaProps = ThemedStoryProps<ThemeIconProps>;
Expand Down Expand Up @@ -420,7 +421,7 @@ const ThemeIconMeta: Meta<ThemeIconMetaProps> = {
'Train (Entur)': TrainEntur,
'Tram (Entur)': TramEntur,
'Walk (Entur)': WalkEntur,
Battery: Battery,
Battery: BatteryHigh,
Bicycle: Bicycle,
},
},
Expand Down
27 changes: 9 additions & 18 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -33,31 +33,22 @@
zod "^3.21.4"
zod-to-json-schema "^3.20.4"

"@atb-as/generate-assets@^14.0.3":
version "14.0.3"
resolved "https://registry.yarnpkg.com/@atb-as/generate-assets/-/generate-assets-14.0.3.tgz#9a99796b5a5f59ce86745d891e8422965a3f7044"
integrity sha512-jecjLi0Dbp5dLZj5U2i+k/riL6q6e8UhfYjErL/JsTNP2p3NGQHx6lxDgUvvEUfSMHcrWnf9npwNq17SWaS4Fg==
"@atb-as/generate-assets@^15.1.1":
version "15.1.1"
resolved "https://registry.yarnpkg.com/@atb-as/generate-assets/-/generate-assets-15.1.1.tgz#639557a43ca3d323382be062363ad1027601076c"
integrity sha512-XwckzHmbmDeYE3ClC5FUBHNK8XB+KmS+dP70aF5KXxbFAR8iW+DJyFX5hjPiaL5O2YF2Po+st8OWFcRyj99F4A==
dependencies:
"@atb-as/theme" "^13.1.1"
"@atb-as/theme" "^13.1.4"
commander "^9.4.0"
fast-glob "^3.2.11"
micromatch "^4.0.5"
normalize-path "^3.0.0"
stream-editor "^1.11.0"

"@atb-as/theme@^13.1.1":
version "13.1.2"
resolved "https://registry.yarnpkg.com/@atb-as/theme/-/theme-13.1.2.tgz#dd43e635fb894781c0b1d66762811f3a2aefad96"
integrity sha512-Id882xWREp7gZbaFeGhxCSonNdo3hsjEbUaMG9wLLQPSLI8nK54xG8Fe9jFsprlWNR4l+HYFSF//W4ZaF1dJFQ==
dependencies:
"@tfk-samf/figma-to-dtcg" "0.4.0"
hex-to-rgba "^2.0.1"
ts-deepmerge "^4.0.0"

"@atb-as/theme@^13.1.3":
version "13.1.3"
resolved "https://registry.yarnpkg.com/@atb-as/theme/-/theme-13.1.3.tgz#ab449d294e48ac1307ddda5e2728176081027f13"
integrity sha512-jTvfSCA0xi8AQnq3AGTQeLVcvtouloAdZwMWDKy8GcAwe1GSM2iDZ/LtagkTRuG/7GTpZSBYjzZ3XBcOUa0xDA==
"@atb-as/theme@^13.1.4":
version "13.1.4"
resolved "https://registry.yarnpkg.com/@atb-as/theme/-/theme-13.1.4.tgz#e8b2bb51809815ba6410b706c10014924fd56037"
integrity sha512-7/+nyYhxOtzzMkhaZ2oXbhvQw5WHO2SjsGQ3/Y0BG7vnZHZP0/Szub5nNCcei99HFi4giFOsdRe2TUBEWL4LqQ==
dependencies:
"@tfk-samf/figma-to-dtcg" "0.4.0"
hex-to-rgba "^2.0.1"
Expand Down

0 comments on commit 0c21f1e

Please sign in to comment.