diff --git a/apps/site/src/content/design-system/components/flexi-cell/code.mdoc b/apps/site/src/content/design-system/components/flexi-cell/code.mdoc
index 9f5182113..1c79e8f24 100644
--- a/apps/site/src/content/design-system/components/flexi-cell/code.mdoc
+++ b/apps/site/src/content/design-system/components/flexi-cell/code.mdoc
@@ -35,7 +35,6 @@
avail $9,999.99
}
- size={{ initial: "default", sm: "large" }}
>
Credit card
Card ending in 1234
@@ -56,7 +55,6 @@
}
- size={{ initial: "default", sm: "large" }}
>
Account
032-123 12345678
@@ -75,13 +73,12 @@
}
before={
-
+
WW
}
tag="a"
href="#"
- size={{ initial: "default", sm: "large" }}
>
With Circle and Info Button
Payee Details
@@ -98,13 +95,12 @@
}
before={
-
+
WW
}
dualAction
href="#"
- size={{ initial: "default", sm: "large" }}
>
With Circle and Info Button
Payee Details
@@ -123,7 +119,7 @@
before={
}
- topBadge={props => Corner flag}
- size={{ initial: 'default', sm: 'large' }}
+ topBadge={({ className }) => Corner flag}
>
MYER
@@ -305,7 +297,6 @@
available $9,999
}
- size={{ initial: 'default', sm: 'large' }}
>
{name}
@@ -387,7 +378,7 @@
href="#"
key={name}
before={
-
+
{initials}
}
@@ -398,7 +389,6 @@
}
- size={{ initial: 'default', sm: 'large' }}
>
{name}
{number}
@@ -409,12 +399,11 @@
dualAction
key={name}
before={
-
+
{initials}
}
after={ } />}
- size={{ initial: 'default', sm: 'large' }}
>
{name}
{number}
@@ -491,7 +480,7 @@
before={
}
- size={{ initial: 'default', sm: 'large' }}
>
- {name}
+ {name}
);
})}
@@ -592,7 +580,7 @@
before={
}
- size={{ initial: 'default', sm: 'large' }}
>
{name}
{number}
@@ -626,7 +613,7 @@
before={
}
after={ } />}
- size={{ initial: 'default', sm: 'large' }}
>
{name}
{number}
@@ -694,7 +680,6 @@
Corner flag
)}
- size={{ initial: 'default', sm: 'large' }}
>
MYER
@@ -747,7 +732,6 @@
Corner flag
)}
- size={{ initial: 'default', sm: 'large' }}
>
}
- after={}
- size={{ initial: 'default', sm: 'large' }}
+ after={
+
+ Completed
+
+ }
>
@@ -814,8 +801,11 @@
}
- after={}
- size={{ initial: 'default', sm: 'large' }}
+ after={
+
+ Completed
+
+ }
>
diff --git a/packages/ui/src/components/flexi-cell/components/flexi-cell-circle/flexi-cell-circle.styles.ts b/packages/ui/src/components/flexi-cell/components/flexi-cell-circle/flexi-cell-circle.styles.ts
index 50f709ca5..182dcf132 100644
--- a/packages/ui/src/components/flexi-cell/components/flexi-cell-circle/flexi-cell-circle.styles.ts
+++ b/packages/ui/src/components/flexi-cell/components/flexi-cell-circle/flexi-cell-circle.styles.ts
@@ -2,7 +2,7 @@ import { tv } from 'tailwind-variants';
export const styles = tv(
{
- slots: { base: 'pointer-events-none text-[12px] font-bold text-muted' },
+ slots: { base: 'pointer-events-none h-4 w-4 text-[12px] font-bold text-muted' },
variants: {},
},
{ responsiveVariants: ['xsl', 'sm', 'md', 'lg', 'xl'] },
diff --git a/packages/ui/src/components/flexi-cell/flexi-cell.stories.tsx b/packages/ui/src/components/flexi-cell/flexi-cell.stories.tsx
index 1758f0056..fa94ea3ba 100644
--- a/packages/ui/src/components/flexi-cell/flexi-cell.stories.tsx
+++ b/packages/ui/src/components/flexi-cell/flexi-cell.stories.tsx
@@ -46,6 +46,8 @@ const meta: Meta = {
export default meta;
type Story = StoryObj;
+const responsiveString = ' (Responsive)';
+
/**
* > Default usage example
*/
@@ -86,7 +88,6 @@ export const CreditCard: Story = {
href="#"
tag="a"
withBorder
- size={{ initial: 'default', sm: 'large' }}
>
Credit card Base Styles
Card ending in 1234
@@ -94,7 +95,7 @@ export const CreditCard: Story = {
-
+
$9,999.99
avail $9,999.99
@@ -104,6 +105,22 @@ export const CreditCard: Story = {
tag="a"
withBorder
size={{ initial: 'default', sm: 'large' }}
+ >
+ Responsive Credit card Base Styles
+ Card ending in 1234
+
+
+
+ $9,999.99
+
+ avail $9,999.99
+
+ }
+ href="#"
+ tag="a"
+ withBorder
>
Credit card different styles
@@ -122,7 +139,6 @@ export const CreditCard: Story = {
href="#"
tag="a"
withBorder
- size={{ initial: 'default', sm: 'large' }}
>
Wrapping Credit CardCredit CardCredit CardCredit Card
@@ -141,7 +157,6 @@ export const CreditCard: Story = {
href="#"
tag="a"
withBorder
- size={{ initial: 'default', sm: 'large' }}
>
Truncating Credit CardCredit CardCredit CardCredit Card
@@ -178,31 +193,10 @@ export const PayeeDetails: Story = {
}
tag="a"
href="#"
- size={{ initial: 'default', sm: 'large' }}
>
Default With Icon
Payee Details
-
-
- Fri 5 Aug
-
-
- }
- before={
-
-
-
- }
- tag="a"
- href="#"
- size={{ initial: 'default', sm: 'large' }}
- >
- Customised With Icon
- Payee Details
-
@@ -210,16 +204,12 @@ export const PayeeDetails: Story = {
}
before={
-
+
WW
}
dualAction
href="#"
- size={{ initial: 'default', sm: 'large' }}
>
With Circle and Info Button
Payee Details
@@ -235,7 +225,7 @@ export const PayeeDetails: Story = {
before={
With Flag
Payee Details
+
+
+ Fri 5 Aug
+
+
+ }
+ before={
+
+
+
+ }
+ tag="a"
+ href="#"
+ size={{ initial: 'default', sm: 'large' }}
+ >
+ Responsive With Resposive Icon
+ Payee Details
+
>
);
},
@@ -267,14 +276,36 @@ export const ListItems: Story = {
render: () => {
return (
<>
-
+
List Item
+
+
+
+
+
+ }
+ tag="a"
+ href="#"
+ withBorder
+ >
+ List Item With Flag
+
+
+
- List Item With Flag
+ Responsive List Item With Responsive Flag
>
@@ -468,7 +499,7 @@ export const PayeeList: Story = {
}
size={{ initial: 'default', sm: 'large' }}
>
- {name}
+ {name + responsiveString}
{number}
) : (
@@ -476,13 +507,8 @@ export const PayeeList: Story = {
href="#"
dualAction
key={name}
- before={
-
- {initials}
-
- }
+ before={{initials}}
after={ } />}
- size={{ initial: 'default', sm: 'large' }}
>
{name}
{number}
@@ -594,7 +620,7 @@ export const ForeinCurrencyPayeeList: Story = {
}
size={{ initial: 'default', sm: 'large' }}
>
- {name}
+ {name + responsiveString}
{number}
{bank}
{code}
@@ -607,7 +633,7 @@ export const ForeinCurrencyPayeeList: Story = {
before={
}
after={ } />}
- size={{ initial: 'default', sm: 'large' }}
>
{name}
{number}
@@ -699,8 +724,11 @@ export const ProductTilesWithExtraIcon: Story = {
}
- after={}
- size={{ initial: 'default', sm: 'large' }}
+ after={
+
+ Completed
+
+ }
>
@@ -719,12 +747,16 @@ export const ProductTilesWithExtraIcon: Story = {
}
- after={}
+ after={
+
+ Completed
+
+ }
size={{ initial: 'default', sm: 'large' }}
>
- {title}
+ {title + responsiveString}
{subtitle}
@@ -777,7 +809,6 @@ export const PromotilesHorizontalList: Story = {
{stars ? '✭' : 'Corner flag'}
)}
- size={{ initial: 'default', sm: 'large' }}
>
MYER
@@ -828,7 +859,6 @@ export const PromotilesVerticalList: Story = {
tag="a"
withBorder
topBadge={({ className }) => Corner flag}
- size={{ initial: 'default', sm: 'large' }}
>