Skip to content

Commit c9f75cc

Browse files
committed
feat: update UI
1 parent 28e5909 commit c9f75cc

18 files changed

Lines changed: 69 additions & 257 deletions

File tree

apps/web/src/app/page.tsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
'use client';
22

33
import {
4-
AlertCircleIcon,
54
Autocomplete,
65
Button,
7-
FeaturedIcon,
86
HStack,
97
Modal,
108
ModalAction,
@@ -88,11 +86,6 @@ export default function Page() {
8886
<div className="flex gap-4">
8987
<Modal trigger={<Button>Show Modal</Button>}>
9088
<ModalHeader
91-
icon={
92-
<FeaturedIcon variant="outline" color="brand" size="md">
93-
<AlertCircleIcon />
94-
</FeaturedIcon>
95-
}
9689
title="Blog post published"
9790
description="This blog post has been published. Team members will be able to edit this post and republish changes."
9891
/>

apps/web/src/stories/floating-tooltip.stories.tsx

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const meta: Meta = {
3131
control: { type: 'text' },
3232
},
3333
theme: {
34-
options: ['light', 'dark'],
34+
options: ['default', 'light', 'dark'],
3535
control: { type: 'select' },
3636
},
3737
arrow: {
@@ -52,7 +52,7 @@ const meta: Meta = {
5252
title: 'This is a tooltip',
5353
content:
5454
'FloatingTooltips are used to describe or identify an element. In most scenarios, tooltips help the user understand meaning, function or alt-text.',
55-
theme: 'light',
55+
theme: 'default',
5656
arrow: true,
5757
position: 'top',
5858
},
@@ -70,13 +70,7 @@ const DefaultTemplate: StoryFn<FloatingTooltipProps> = (args) => {
7070
return (
7171
<EnhancedView prop="Default">
7272
<FloatingTooltip {...args}>
73-
<div
74-
style={{
75-
width: 300,
76-
height: 300,
77-
background: '#f5f5f5',
78-
}}
79-
/>
73+
<div className="bg-background-light h-[300px] w-[300px]" />
8074
</FloatingTooltip>
8175
</EnhancedView>
8276
);

apps/web/src/stories/modal.stories.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,6 @@ const DefaultTemplate: StoryFn<ModalProps> = ({ align, ...args }: any) => {
127127
<Modal trigger={<Button>Show Modal</Button>} {...args}>
128128
<ModalHeader
129129
align={align}
130-
icon={
131-
<FeaturedIcon variant="outline" color="brand" size="md">
132-
<AlertCircleIcon />
133-
</FeaturedIcon>
134-
}
135130
title="Blog post published"
136131
description="This blog post has been published. Team members will be able to edit this post and republish changes."
137132
/>

apps/web/src/stories/pagination.stories.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ const meta: Meta = {
1111
total: 10,
1212
siblings: 1,
1313
boundaries: 1,
14+
withEdges: false,
1415
withControls: true,
1516
shape: 'square',
1617
},

apps/web/src/stories/tooltip.stories.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const meta: Meta = {
2727
control: { type: 'select' },
2828
},
2929
theme: {
30-
options: ['light', 'dark'],
30+
options: ['default', 'light', 'dark'],
3131
control: { type: 'select' },
3232
},
3333
arrow: {
@@ -50,8 +50,8 @@ const meta: Meta = {
5050
title: 'This is a tooltip',
5151
content:
5252
'Tooltips are used to describe or identify an element. In most scenarios, tooltips help the user understand meaning, function or alt-text.',
53-
delayDuration: 300,
54-
theme: 'light',
53+
delayDuration: 200,
54+
theme: 'default',
5555
arrow: true,
5656
align: 'center',
5757
side: 'top',

packages/ui/src/components/alert/__tests__/alert.test.tsx

Lines changed: 0 additions & 19 deletions
This file was deleted.

packages/ui/src/components/alert/alert.tsx

Lines changed: 0 additions & 168 deletions
This file was deleted.

packages/ui/src/components/alert/index.ts

Lines changed: 0 additions & 2 deletions
This file was deleted.

packages/ui/src/components/circular-progress/circular-progress.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const CircleProgress = React.forwardRef<SVGCircleElement, CircleProps>(
4949
strokeWidth={thickness}
5050
strokeDasharray={strokeDasharray}
5151
strokeDashoffset={strokeDashoffset}
52-
className={cn('stroke-brand-600 transition-all duration-700 ease-in-out', className)}
52+
className={cn('stroke-button transition-all duration-700 ease-in-out', className)}
5353
{...props}
5454
/>
5555
);
@@ -102,7 +102,7 @@ const CircularProgress = React.forwardRef<HTMLDivElement, CircularProgressProps>
102102
<div className={cn('relative w-fit', className)} ref={ref} {...props}>
103103
<svg width={size} height={size} fill="none">
104104
<g className="origin-center -rotate-90">
105-
<CircleTrack r={r} thickness={`${thickness}px`} className="text-background-quaternary" />
105+
<CircleTrack r={r} thickness={`${thickness}px`} className="text-background-light" />
106106
<CircleProgress r={r} value={value} thickness={`${thickness}px`} />
107107
</g>
108108
</svg>

packages/ui/src/components/circular-progress/half-circular-progress.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ const HalfCircularProgress = forwardRef<ElementRef<'div'>, HalfCircularProgressP
9494
d={backgroundArc}
9595
fill="none"
9696
stroke="currentColor"
97-
className="text-background-quaternary"
97+
className="text-background-light"
9898
strokeWidth={thickness}
9999
strokeLinecap="round"
100100
/>
@@ -106,7 +106,7 @@ const HalfCircularProgress = forwardRef<ElementRef<'div'>, HalfCircularProgressP
106106
strokeLinecap="round"
107107
strokeDasharray={strokeDasharray}
108108
strokeDashoffset={strokeDashoffset}
109-
className={cn('stroke-brand-600 transition-all duration-700 ease-in-out')}
109+
className={cn('stroke-button transition-all duration-700 ease-in-out')}
110110
/>
111111
</svg>
112112

0 commit comments

Comments
 (0)