Skip to content

Commit

Permalink
Merge branch 'main' into feat/bff-my-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
snaerseljan authored Nov 29, 2024
2 parents 46b1319 + f1ac9e5 commit bc062c0
Show file tree
Hide file tree
Showing 41 changed files with 81 additions and 65 deletions.
2 changes: 1 addition & 1 deletion apps/native/app/src/ui/lib/accordion/accordion-item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const PlusMinus = styled(Animated.View)`
height: ${({ theme }) => theme.spacing[3]}px;
width: ${({ theme }) => theme.spacing[3]}px;
background-color: ${({ theme }) => theme.color.blue100};
border-radius: ${({ theme }) => theme.border.radius.circle};
border-radius: ${({ theme }) => theme.border.radius.full};
justify-content: center;
align-items: center;
`
Expand Down
2 changes: 1 addition & 1 deletion apps/native/app/src/ui/lib/card/expandable-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const IconWrapper = styled.View`
background-color: white;
justify-content: center;
align-items: center;
border-radius: ${({ theme }) => theme.border.radius.circle};
border-radius: ${({ theme }) => theme.border.radius.full};
margin-right: ${({ theme }) => theme.spacing[1]}px;
`

Expand Down
2 changes: 1 addition & 1 deletion apps/native/app/src/ui/lib/card/notification-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const Icon = styled.View<{ unread?: boolean }>`
width: 42px;
align-items: center;
justify-content: center;
border-radius: ${({ theme }) => theme.border.radius.circle};
border-radius: ${({ theme }) => theme.border.radius.full};
flex-direction: column;
`

Expand Down
2 changes: 1 addition & 1 deletion apps/native/app/src/ui/lib/detail/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const LogoBackground = styled.View`
width: 24px;
justify-content: center;
align-items: center;
border-radius: ${({ theme }) => theme.border.radius.circle};
border-radius: ${({ theme }) => theme.border.radius.full};
margin-right: ${({ theme }) => theme.spacing[1]}px;
`

Expand Down
2 changes: 1 addition & 1 deletion apps/native/app/src/ui/lib/list/list-item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const Icon = styled.View<{ unread?: boolean }>`
width: 42px;
align-items: center;
justify-content: center;
border-radius: ${({ theme }) => theme.border.radius.circle};
border-radius: ${({ theme }) => theme.border.radius.full};
flex-direction: column;
`

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ const NotificationButton = ({
/>
{data?.userNotificationsOverview?.data.length ? (
<Box
borderRadius="circle"
borderRadius="full"
className={cn({ [styles.badge]: showBadge })}
/>
) : undefined}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ const NotificationMenu = ({
marginTop={2}
>
<Box
borderRadius="circle"
borderRadius="full"
background="blue100"
display="flex"
justifyContent="center"
Expand Down
2 changes: 1 addition & 1 deletion apps/portals/my-pages/src/components/Sidemenu/Sidemenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ const Sidemenu = ({
marginTop={2}
>
<Box
borderRadius="circle"
borderRadius="full"
background="blue100"
display="flex"
justifyContent="center"
Expand Down
4 changes: 2 additions & 2 deletions apps/portals/my-pages/src/screens/Dashboard/Dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export const Dashboard = () => {

{navRoot.subscribesTo === 'documents' && (
<Box
borderRadius="circle"
borderRadius="full"
className={cn(styles.badge[badgeActive])}
/>
)}
Expand Down Expand Up @@ -223,7 +223,7 @@ export const Dashboard = () => {
</Text>

<Box
borderRadius="circle"
borderRadius="full"
className={cn(styles.badge[badgeActive])}
/>
</Box>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const FormStepperMobile = ({
className={styles.inProgressIcon}
display="flex"
background="purple200"
borderRadius="circle"
borderRadius="full"
marginRight={1}
></Box>
)}
Expand All @@ -68,7 +68,7 @@ const IconBackground = ({ children }: IconBackgroundProps) => (
className={styles.activeIcon}
display="flex"
background="purple400"
borderRadius="circle"
borderRadius="full"
justifyContent="center"
alignItems="center"
marginRight={1}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export const ChartNumberBox = ({ slice }: ChartNumberBoxRendererProps) => {
}, [slice, numberOfDataPoints, activeLocale])

if (queryResult.loading) {
return <SkeletonLoader width="100%" height={130} borderRadius="xl" />
return <SkeletonLoader width="100%" height={130} borderRadius="lg" />
}

if (!queryResult.data || queryResult.data.length === 0) {
Expand Down
2 changes: 1 addition & 1 deletion apps/web/components/Charts/v2/renderers/ChartRenderer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export const Chart = ({ slice }: ChartProps) => {
slice.displayAsCard,
expanded,
)}
borderRadius="xl"
borderRadius="lg"
/>
)
}
Expand Down
4 changes: 2 additions & 2 deletions apps/web/components/DefaultHeader/DefaultHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export const DefaultHeader: React.FC<
className={cn(styles.logoContainer, {
[styles.logoContainerSubpage]: isSubpage,
})}
borderRadius="circle"
borderRadius="full"
background="white"
>
<img
Expand Down Expand Up @@ -144,7 +144,7 @@ export const DefaultHeader: React.FC<
className={cn(styles.logoContainerMobile, {
[styles.logoContainerMobileSubpage]: isSubpage,
})}
borderRadius="circle"
borderRadius="full"
background="white"
>
<img
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export const logoContainer = style({
placeItems: 'center',
margin: '0 auto',
marginBottom: 4,
borderRadius: theme.border.radius.circle,
borderRadius: theme.border.radius.full,
background: theme.color.white,

...themeUtils.responsiveStyle({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export const Breadcrumbs: FC<React.PropsWithChildren<BreadcrumbsProps>> = ({
: renderCrumb}
{items.length - 1 > index && (
<Box
borderRadius={'circle'}
borderRadius="full"
display={'inlineBlock'}
marginY={0}
marginX={1}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export const SearchResultsContent = ({ grants, subheader, locale }: Props) => {
justifyContent="center"
background="white"
borderWidth="standard"
borderRadius="xl"
borderRadius="lg"
borderColor="blue200"
flexDirection={['columnReverse', 'columnReverse', 'row']}
columnGap={[2, 4, 8, 8, 20]}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const WarningSection: FC<
alignItems="center"
justifyContent="center"
position="absolute"
borderRadius="circle"
borderRadius="full"
background="red600"
color="red600"
className={styles.sectionNumber}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export const SummaryItem = ({
alignItems="center"
justifyContent="center"
position="absolute"
borderRadius="circle"
borderRadius="full"
className={styles.sectionNumber}
>
{prerequisiteMet ? (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { format as formatNationalId } from 'kennitala'
import { removeCountryCode } from '@island.is/application/ui-components'
import { m } from '../../lib/messages'
import { RelationEnum } from '../../types'
import { PREPAID_INHERITANCE } from '../../lib/constants'

export const applicant = buildSection({
id: 'applicantsInformation',
Expand All @@ -18,7 +19,10 @@ export const applicant = buildSection({
buildMultiField({
id: 'applicant',
title: m.applicantsInfo,
description: m.applicantsInfoSubtitle,
description: ({ answers }) =>
answers.applicationFor === PREPAID_INHERITANCE
? m.applicantsInfoPrePaidSubtitle
: m.applicantsInfoSubtitle,
children: [
buildTextField({
id: 'applicant.nationalId',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import {
shouldShowCustomSpouseShare,
valueToNumber,
} from '../../lib/utils/helpers'
import { PREPAID_INHERITANCE } from '../../lib/constants'

export const heirs = buildSection({
id: 'heirs',
Expand Down Expand Up @@ -81,7 +82,10 @@ export const heirs = buildSection({
buildMultiField({
id: 'heirs',
title: m.heirsAndPartition,
description: m.heirsAndPartitionDescription,
description: ({ answers }) =>
answers.applicationFor === PREPAID_INHERITANCE
? m.heirsAndPartitionPrePaidDescription
: m.heirsAndPartitionDescription,
children: [
buildDescriptionField({
id: 'heirs.total',
Expand Down
22 changes: 17 additions & 5 deletions libs/application/templates/inheritance-report/src/lib/messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,12 @@ export const m = defineMessages({
'Vinsamlegast farðu yfir upplýsingarnar og athugaðu hvort þær séu réttar.',
description: '',
},
applicantsInfoPrePaidSubtitle: {
id: 'ir.application:applicantsInfoPrePaidSubtitle',
defaultMessage:
'Vinsamlegast farðu yfir upplýsingarnar og staðfestu hvort þær séu réttar.',
description: '',
},
applicantsPrePaidInfoSubtitle: {
id: 'ir.application:applicantsPrePaidInfoSubtitle',
defaultMessage:
Expand Down Expand Up @@ -345,6 +351,11 @@ export const m = defineMessages({
'Vinsamlegast tilgreindu allar hjúskapareignir beggja hjóna utan einstaklingsatvinnurekstrar á dánardegi hins látna. Einnig séreign hins látna. Ef hinn látni átti ekki fasteign vinsamlegast haltu áfram í ferlinu.',
description: '',
},
propertiesDescriptionPrePaidAssets: {
id: 'ir.application:propertiesDescriptionPrePaidAssets#markdown',
defaultMessage: 'Lorem ipsum lorem ipsum',
description: '',
},
propertiesDescriptionInventory: {
id: 'ir.application:propertiesDescriptionInventory#markdown',
defaultMessage:
Expand Down Expand Up @@ -395,11 +406,6 @@ export const m = defineMessages({
},

// Estate Properties - Prepaid
propertiesDescriptionPrePaidAssets: {
id: 'ir.application:propertiesDescriptionPrePaidAssets#markdown',
defaultMessage: 'Lorem ipsum lorem ipsum',
description: '',
},
propertiesDescriptionPrePaidStocks: {
id: 'ir.application:propertiesDescriptionPrePaidStocks#markdown',
defaultMessage: 'Lorem ipsum lorem ipsum',
Expand Down Expand Up @@ -1376,6 +1382,12 @@ export const m = defineMessages({
'Skrá skal netfang erfingja vegna tilkynninga skattstjóra skv. 9. og 10. gr. laga nr. 14/2004.',
description: '',
},
heirsAndPartitionPrePaidDescription: {
id: 'ir.application:heirsAndPartitionPrePaidDescription',
defaultMessage:
'Skrá skal netfang erfingja vegna tilkynninga skattstjóra skv. 9. og 10. gr. laga nr. 14/2004.',
description: '',
},
heirsReminderToFillInSpouse: {
id: 'ir.application:heirsReminderToFillInSpouse',
defaultMessage: 'Athugið að passa þarf að skrá inn upplýsingar um maka.',
Expand Down
2 changes: 1 addition & 1 deletion libs/island-ui/core/src/lib/ActionCard/ActionCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export const ActionCard: React.FC<React.PropsWithChildren<ActionCardProps>> = ({
alignItems="center"
flexShrink={0}
marginRight={[2, 3]}
borderRadius="circle"
borderRadius="full"
background={avatarColors.circle}
className={styles.avatar}
>
Expand Down
2 changes: 1 addition & 1 deletion libs/island-ui/core/src/lib/Breadcrumbs/Breadcrumbs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export const Breadcrumbs: FC<React.PropsWithChildren<BreadcrumbsProps>> = ({
: renderCrumb}
{visibleItems.length - 1 > index && (
<Box
borderRadius={'circle'}
borderRadius="full"
display={'inlineBlock'}
marginY={0}
marginX={1}
Expand Down
2 changes: 1 addition & 1 deletion libs/island-ui/core/src/lib/ButtonDeprecated/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ const LeftContentContainer: FC<React.PropsWithChildren<unknown>> = ({
display="flex"
alignItems="center"
justifyContent="center"
borderRadius="circle"
borderRadius="full"
overflow="hidden"
className={styles.leftContent}
>
Expand Down
2 changes: 1 addition & 1 deletion libs/island-ui/core/src/lib/Input/Input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ function AsideIcons({
return (
<div className={styles.aside}>
{loading ? (
<Box className={styles.spinner} flexShrink={0} borderRadius="circle" />
<Box className={styles.spinner} flexShrink={0} borderRadius="full" />
) : displayedIcon ? (
<div
className={styles.iconWrapper({ size })}
Expand Down
2 changes: 1 addition & 1 deletion libs/island-ui/core/src/lib/PhoneInput/PhoneInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ export const PhoneInput = forwardRef(
<Box
className={styles.spinner}
flexShrink={0}
borderRadius="circle"
borderRadius="full"
/>
)}
{!loading && hasError && (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { recipe } from '@vanilla-extract/recipes'
export const problemTemplateContainer = recipe({
base: {
borderWidth: theme.border.width.standard,
borderRadius: theme.border.radius.xl,
borderRadius: theme.border.radius.lg,
},
variants: {
red: {
Expand Down
2 changes: 1 addition & 1 deletion libs/island-ui/core/src/lib/UserAvatar/UserAvatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const UserAvatar = ({
alignItems="center"
flexShrink={0}
flexGrow={0}
borderRadius="circle"
borderRadius="full"
className={[
styles.avatarSize[size],
styles.avatarColor[isDelegation ? 'isDelegation' : color],
Expand Down
2 changes: 0 additions & 2 deletions libs/island-ui/theme/src/lib/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,6 @@ export const theme = {
large: `${radius.default.$value ?? 8}px`, // TODO: check with designers to keep as large
md: `${radius.md.$value ?? 12}px`,
lg: `${radius.lg.$value ?? 16}px`,
xl: '24px', // TODO: should be added to figma?
circle: '50%', // TODO: should be added to figma?
full: `${radius.full.$value ?? 9999}px`,
},
width: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export const ActionCard: React.FC<React.PropsWithChildren<ActionCardProps>> = ({
alignItems="center"
flexShrink={0}
marginRight={[2, 3]}
borderRadius="circle"
borderRadius="full"
background="blue100"
className={cn(styles.avatar, styles.image)}
>
Expand All @@ -144,7 +144,7 @@ export const ActionCard: React.FC<React.PropsWithChildren<ActionCardProps>> = ({
alignItems="center"
flexShrink={0}
marginRight={[2, 3]}
borderRadius="circle"
borderRadius="full"
>
<img className={styles.image} src={image.url} alt="" />
</Box>
Expand All @@ -158,7 +158,7 @@ export const ActionCard: React.FC<React.PropsWithChildren<ActionCardProps>> = ({
alignItems="center"
flexShrink={0}
marginRight={[2, 3]}
borderRadius="circle"
borderRadius="full"
background={image.active ? 'white' : 'blue100'}
className={cn(styles.avatar, styles.image)}
>
Expand Down
Loading

0 comments on commit bc062c0

Please sign in to comment.