@stagewise/ui 0.1.0 → 0.3.0
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/README.md +9 -3
- package/package.json +9 -15
- package/src/components/ui/accordion.tsx +13 -15
- package/src/components/ui/alert-dialog.tsx +38 -38
- package/src/components/ui/alert.tsx +22 -22
- package/src/components/ui/aspect-ratio.tsx +6 -6
- package/src/components/ui/avatar.tsx +30 -30
- package/src/components/ui/badge.tsx +24 -22
- package/src/components/ui/breadcrumb.tsx +34 -37
- package/src/components/ui/bubble.tsx +48 -48
- package/src/components/ui/button-group.tsx +24 -24
- package/src/components/ui/button.tsx +24 -24
- package/src/components/ui/calendar.tsx +94 -81
- package/src/components/ui/card.tsx +30 -30
- package/src/components/ui/carousel.tsx +95 -92
- package/src/components/ui/chart.tsx +110 -110
- package/src/components/ui/checkbox.tsx +9 -10
- package/src/components/ui/collapsible.tsx +5 -5
- package/src/components/ui/combobox.tsx +51 -44
- package/src/components/ui/command.tsx +173 -190
- package/src/components/ui/context-menu.tsx +60 -50
- package/src/components/ui/dialog.tsx +33 -34
- package/src/components/ui/direction.tsx +1 -1
- package/src/components/ui/drawer.tsx +61 -61
- package/src/components/ui/dropdown-menu.tsx +54 -50
- package/src/components/ui/empty.tsx +30 -30
- package/src/components/ui/field.tsx +64 -64
- package/src/components/ui/hover-card.tsx +12 -12
- package/src/components/ui/input-group.tsx +54 -54
- package/src/components/ui/input-otp.tsx +24 -25
- package/src/components/ui/input.tsx +8 -8
- package/src/components/ui/item.tsx +64 -64
- package/src/components/ui/kbd.tsx +8 -8
- package/src/components/ui/klex-logo-combo.tsx +69 -0
- package/src/components/ui/klex-logo-text.tsx +70 -0
- package/src/components/ui/klex-logo.tsx +146 -0
- package/src/components/ui/label.tsx +8 -8
- package/src/components/ui/marker.tsx +25 -25
- package/src/components/ui/menubar.tsx +54 -50
- package/src/components/ui/message-scroller.tsx +130 -0
- package/src/components/ui/message.tsx +27 -27
- package/src/components/ui/native-select.tsx +22 -18
- package/src/components/ui/navigation-menu.tsx +37 -34
- package/src/components/ui/pagination.tsx +34 -31
- package/src/components/ui/popover.tsx +19 -19
- package/src/components/ui/progress.tsx +16 -16
- package/src/components/ui/questionnaire.tsx +72 -69
- package/src/components/ui/radio-group.tsx +9 -9
- package/src/components/ui/resizable.tsx +19 -12
- package/src/components/ui/scroll-area.tsx +10 -10
- package/src/components/ui/select.tsx +39 -34
- package/src/components/ui/separator.tsx +7 -7
- package/src/components/ui/sheet.tsx +31 -32
- package/src/components/ui/sidebar.tsx +244 -232
- package/src/components/ui/skeleton.tsx +5 -5
- package/src/components/ui/slider.tsx +11 -7
- package/src/components/ui/spinner.tsx +15 -6
- package/src/components/ui/stagewise-logo-combo.tsx +43 -0
- package/src/components/ui/stagewise-logo-text.tsx +30 -0
- package/src/components/ui/stagewise-logo.tsx +42 -0
- package/src/components/ui/switch.tsx +9 -9
- package/src/components/ui/table.tsx +31 -31
- package/src/components/ui/tabs.tsx +37 -26
- package/src/components/ui/textarea.tsx +7 -7
- package/src/components/ui/toast.tsx +70 -70
- package/src/components/ui/toggle-group.tsx +26 -26
- package/src/components/ui/toggle.tsx +15 -15
- package/src/components/ui/tooltip.tsx +13 -13
- package/src/hooks/use-mobile.ts +13 -11
- package/src/icons/custom/ui-outline-18/IconKlexOutline18.tsx +39 -0
- package/src/icons/custom/ui-outline-18/IconLaptop.tsx +35 -0
- package/src/icons/custom/ui-outline-18/IconSignOut.tsx +33 -0
- package/src/icons/custom/ui-outline-18/index.ts +4 -1
- package/src/icons/index.ts +43 -20
- package/src/icons/nucleo/social-media/IconMicrosoftEntraId.tsx +56 -0
- package/src/icons/nucleo/social-media/index.ts +1 -0
- package/src/icons/nucleo/ui-outline-18/IconArrowDownOutline18.tsx +4 -3
- package/src/icons/nucleo/ui-outline-18/IconArrowTurnRightOutline18.tsx +32 -0
- package/src/icons/nucleo/ui-outline-18/IconArrowUpOutline18.tsx +35 -0
- package/src/icons/nucleo/ui-outline-18/IconChartPieOutline18.tsx +4 -3
- package/src/icons/nucleo/ui-outline-18/IconChevronMaximizeDiagonal2Outline18.tsx +33 -0
- package/src/icons/nucleo/ui-outline-18/IconChevronUpOutline18.tsx +4 -3
- package/src/icons/nucleo/ui-outline-18/IconEmptyOutline18.tsx +41 -0
- package/src/icons/nucleo/ui-outline-18/IconEyeOffOutline18.tsx +18 -0
- package/src/icons/nucleo/ui-outline-18/IconLinkBrokenOutline18.tsx +66 -0
- package/src/icons/nucleo/ui-outline-18/IconLock18Outline.tsx +48 -0
- package/src/icons/nucleo/ui-outline-18/IconMinusOutline18.tsx +4 -3
- package/src/icons/nucleo/ui-outline-18/IconMsgs2Outline18.tsx +32 -0
- package/src/icons/nucleo/ui-outline-18/IconPanelLeftOutline18.tsx +4 -3
- package/src/icons/nucleo/ui-outline-18/IconSidebarLeft2HideOutline18.tsx +63 -0
- package/src/icons/nucleo/ui-outline-18/IconSidebarRight2HideOutline18.tsx +63 -0
- package/src/icons/nucleo/ui-outline-18/index.ts +11 -1
- package/src/icons/provider/IconAnthropic.tsx +15 -0
- package/src/icons/provider/IconAttio.tsx +9 -0
- package/src/icons/provider/IconCodex.tsx +18 -0
- package/src/icons/provider/IconDiscord.tsx +17 -0
- package/src/icons/provider/IconGemini.tsx +152 -0
- package/src/icons/provider/IconLinear.tsx +9 -0
- package/src/icons/provider/IconOpenAI.tsx +15 -0
- package/src/icons/provider/IconOpenRouter.tsx +24 -0
- package/src/icons/provider/IconSlack.tsx +24 -0
- package/src/icons/provider/IconTelegram.tsx +29 -0
- package/src/icons/provider/IconWhatsapp.tsx +14 -0
- package/src/icons/provider/LICENSE +21 -0
- package/src/icons/provider/index.ts +11 -0
- package/src/index.ts +68 -61
- package/src/lib/utils.ts +3 -3
- package/src/styles/bridge.css +7 -3
- package/src/styles/derived-utilities.css +129 -50
- package/src/styles/index.css +17 -2
- package/src/styles/palette.css +266 -105
- package/src/styles/scroll-fade.css +116 -0
- package/src/styles/tailwind-tokens.css +3 -0
- package/src/styles/theme.css +57 -43
|
@@ -1,40 +1,44 @@
|
|
|
1
|
-
|
|
1
|
+
'use client';
|
|
2
2
|
|
|
3
|
-
import * as React from
|
|
4
|
-
import { Select as SelectPrimitive } from
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { Select as SelectPrimitive } from '@base-ui/react/select';
|
|
5
5
|
|
|
6
|
-
import { cn } from
|
|
7
|
-
import {
|
|
6
|
+
import { cn } from '../../lib/utils';
|
|
7
|
+
import {
|
|
8
|
+
IconChevronDownOutline18,
|
|
9
|
+
IconCheckOutline18,
|
|
10
|
+
IconChevronUpOutline18,
|
|
11
|
+
} from '../../icons';
|
|
8
12
|
|
|
9
|
-
const Select = SelectPrimitive.Root
|
|
13
|
+
const Select = SelectPrimitive.Root;
|
|
10
14
|
|
|
11
15
|
function SelectGroup({ className, ...props }: SelectPrimitive.Group.Props) {
|
|
12
16
|
return (
|
|
13
17
|
<SelectPrimitive.Group
|
|
14
18
|
data-slot="select-group"
|
|
15
|
-
className={cn(
|
|
19
|
+
className={cn('scroll-my-1', className)}
|
|
16
20
|
{...props}
|
|
17
21
|
/>
|
|
18
|
-
)
|
|
22
|
+
);
|
|
19
23
|
}
|
|
20
24
|
|
|
21
25
|
function SelectValue({ className, ...props }: SelectPrimitive.Value.Props) {
|
|
22
26
|
return (
|
|
23
27
|
<SelectPrimitive.Value
|
|
24
28
|
data-slot="select-value"
|
|
25
|
-
className={cn(
|
|
29
|
+
className={cn('flex flex-1 text-left', className)}
|
|
26
30
|
{...props}
|
|
27
31
|
/>
|
|
28
|
-
)
|
|
32
|
+
);
|
|
29
33
|
}
|
|
30
34
|
|
|
31
35
|
function SelectTrigger({
|
|
32
36
|
className,
|
|
33
|
-
size =
|
|
37
|
+
size = 'default',
|
|
34
38
|
children,
|
|
35
39
|
...props
|
|
36
40
|
}: SelectPrimitive.Trigger.Props & {
|
|
37
|
-
size?:
|
|
41
|
+
size?: 'sm' | 'default';
|
|
38
42
|
}) {
|
|
39
43
|
return (
|
|
40
44
|
<SelectPrimitive.Trigger
|
|
@@ -42,7 +46,7 @@ function SelectTrigger({
|
|
|
42
46
|
data-size={size}
|
|
43
47
|
className={cn(
|
|
44
48
|
"flex w-fit items-center justify-between gap-1.5 rounded-lg border border-derived-strong bg-transparent py-2 pr-2 pl-2.5 text-sm whitespace-nowrap transition-colors outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-8 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
45
|
-
className
|
|
49
|
+
className,
|
|
46
50
|
)}
|
|
47
51
|
{...props}
|
|
48
52
|
>
|
|
@@ -53,22 +57,22 @@ function SelectTrigger({
|
|
|
53
57
|
}
|
|
54
58
|
/>
|
|
55
59
|
</SelectPrimitive.Trigger>
|
|
56
|
-
)
|
|
60
|
+
);
|
|
57
61
|
}
|
|
58
62
|
|
|
59
63
|
function SelectContent({
|
|
60
64
|
className,
|
|
61
65
|
children,
|
|
62
|
-
side =
|
|
66
|
+
side = 'bottom',
|
|
63
67
|
sideOffset = 4,
|
|
64
|
-
align =
|
|
68
|
+
align = 'center',
|
|
65
69
|
alignOffset = 0,
|
|
66
70
|
alignItemWithTrigger = true,
|
|
67
71
|
...props
|
|
68
72
|
}: SelectPrimitive.Popup.Props &
|
|
69
73
|
Pick<
|
|
70
74
|
SelectPrimitive.Positioner.Props,
|
|
71
|
-
|
|
75
|
+
'align' | 'alignOffset' | 'side' | 'sideOffset' | 'alignItemWithTrigger'
|
|
72
76
|
>) {
|
|
73
77
|
return (
|
|
74
78
|
<SelectPrimitive.Portal>
|
|
@@ -83,7 +87,10 @@ function SelectContent({
|
|
|
83
87
|
<SelectPrimitive.Popup
|
|
84
88
|
data-slot="select-content"
|
|
85
89
|
data-align-trigger={alignItemWithTrigger}
|
|
86
|
-
className={cn(
|
|
90
|
+
className={cn(
|
|
91
|
+
'isolate z-50 max-h-(--available-height) w-(--anchor-width) min-w-36 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-lg p-0.5 text-popover-foreground shadow-md ring-1 ring-foreground/10 data-[align-trigger=true]:animate-none data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 relative bg-popover **:data-[slot$=-item]:focus:bg-foreground/10 **:data-[slot$=-item]:data-highlighted:bg-foreground/10 **:data-[slot$=-separator]:bg-foreground/5 **:data-[slot$=-trigger]:focus:bg-foreground/10 **:data-[slot$=-trigger]:aria-expanded:bg-foreground/10! **:data-[variant=destructive]:focus:bg-foreground/10! **:data-[variant=destructive]:text-accent-foreground! **:data-[variant=destructive]:**:text-accent-foreground!',
|
|
92
|
+
className,
|
|
93
|
+
)}
|
|
87
94
|
{...props}
|
|
88
95
|
>
|
|
89
96
|
<SelectScrollUpButton />
|
|
@@ -92,7 +99,7 @@ function SelectContent({
|
|
|
92
99
|
</SelectPrimitive.Popup>
|
|
93
100
|
</SelectPrimitive.Positioner>
|
|
94
101
|
</SelectPrimitive.Portal>
|
|
95
|
-
)
|
|
102
|
+
);
|
|
96
103
|
}
|
|
97
104
|
|
|
98
105
|
function SelectLabel({
|
|
@@ -102,10 +109,10 @@ function SelectLabel({
|
|
|
102
109
|
return (
|
|
103
110
|
<SelectPrimitive.GroupLabel
|
|
104
111
|
data-slot="select-label"
|
|
105
|
-
className={cn(
|
|
112
|
+
className={cn('px-1.5 py-1 text-xs text-muted-foreground', className)}
|
|
106
113
|
{...props}
|
|
107
114
|
/>
|
|
108
|
-
)
|
|
115
|
+
);
|
|
109
116
|
}
|
|
110
117
|
|
|
111
118
|
function SelectItem({
|
|
@@ -118,7 +125,7 @@ function SelectItem({
|
|
|
118
125
|
data-slot="select-item"
|
|
119
126
|
className={cn(
|
|
120
127
|
"relative flex w-full cursor-default items-center gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",
|
|
121
|
-
className
|
|
128
|
+
className,
|
|
122
129
|
)}
|
|
123
130
|
{...props}
|
|
124
131
|
>
|
|
@@ -133,7 +140,7 @@ function SelectItem({
|
|
|
133
140
|
<IconCheckOutline18 className="pointer-events-none" />
|
|
134
141
|
</SelectPrimitive.ItemIndicator>
|
|
135
142
|
</SelectPrimitive.Item>
|
|
136
|
-
)
|
|
143
|
+
);
|
|
137
144
|
}
|
|
138
145
|
|
|
139
146
|
function SelectSeparator({
|
|
@@ -143,10 +150,10 @@ function SelectSeparator({
|
|
|
143
150
|
return (
|
|
144
151
|
<SelectPrimitive.Separator
|
|
145
152
|
data-slot="select-separator"
|
|
146
|
-
className={cn(
|
|
153
|
+
className={cn('pointer-events-none -mx-1 my-1 h-px bg-border', className)}
|
|
147
154
|
{...props}
|
|
148
155
|
/>
|
|
149
|
-
)
|
|
156
|
+
);
|
|
150
157
|
}
|
|
151
158
|
|
|
152
159
|
function SelectScrollUpButton({
|
|
@@ -158,14 +165,13 @@ function SelectScrollUpButton({
|
|
|
158
165
|
data-slot="select-scroll-up-button"
|
|
159
166
|
className={cn(
|
|
160
167
|
"top-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",
|
|
161
|
-
className
|
|
168
|
+
className,
|
|
162
169
|
)}
|
|
163
170
|
{...props}
|
|
164
171
|
>
|
|
165
|
-
<IconChevronUpOutline18
|
|
166
|
-
/>
|
|
172
|
+
<IconChevronUpOutline18 />
|
|
167
173
|
</SelectPrimitive.ScrollUpArrow>
|
|
168
|
-
)
|
|
174
|
+
);
|
|
169
175
|
}
|
|
170
176
|
|
|
171
177
|
function SelectScrollDownButton({
|
|
@@ -177,14 +183,13 @@ function SelectScrollDownButton({
|
|
|
177
183
|
data-slot="select-scroll-down-button"
|
|
178
184
|
className={cn(
|
|
179
185
|
"bottom-0 z-10 flex w-full cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4",
|
|
180
|
-
className
|
|
186
|
+
className,
|
|
181
187
|
)}
|
|
182
188
|
{...props}
|
|
183
189
|
>
|
|
184
|
-
<IconChevronDownOutline18
|
|
185
|
-
/>
|
|
190
|
+
<IconChevronDownOutline18 />
|
|
186
191
|
</SelectPrimitive.ScrollDownArrow>
|
|
187
|
-
)
|
|
192
|
+
);
|
|
188
193
|
}
|
|
189
194
|
|
|
190
195
|
export {
|
|
@@ -198,4 +203,4 @@ export {
|
|
|
198
203
|
SelectSeparator,
|
|
199
204
|
SelectTrigger,
|
|
200
205
|
SelectValue,
|
|
201
|
-
}
|
|
206
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Separator as SeparatorPrimitive } from
|
|
1
|
+
import { Separator as SeparatorPrimitive } from '@base-ui/react/separator';
|
|
2
2
|
|
|
3
|
-
import { cn } from
|
|
3
|
+
import { cn } from '../../lib/utils';
|
|
4
4
|
|
|
5
5
|
function Separator({
|
|
6
6
|
className,
|
|
7
|
-
orientation =
|
|
7
|
+
orientation = 'horizontal',
|
|
8
8
|
...props
|
|
9
9
|
}: SeparatorPrimitive.Props) {
|
|
10
10
|
return (
|
|
@@ -12,12 +12,12 @@ function Separator({
|
|
|
12
12
|
data-slot="separator"
|
|
13
13
|
orientation={orientation}
|
|
14
14
|
className={cn(
|
|
15
|
-
|
|
16
|
-
className
|
|
15
|
+
'shrink-0 bg-border data-horizontal:h-px data-horizontal:w-full data-vertical:w-px data-vertical:self-stretch',
|
|
16
|
+
className,
|
|
17
17
|
)}
|
|
18
18
|
{...props}
|
|
19
19
|
/>
|
|
20
|
-
)
|
|
20
|
+
);
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
export { Separator }
|
|
23
|
+
export { Separator };
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import * as React from
|
|
2
|
-
import { Dialog as SheetPrimitive } from
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Dialog as SheetPrimitive } from '@base-ui/react/dialog';
|
|
3
3
|
|
|
4
|
-
import { cn } from
|
|
5
|
-
import { Button } from
|
|
6
|
-
import { IconXmarkOutline18 } from
|
|
4
|
+
import { cn } from '../../lib/utils';
|
|
5
|
+
import { Button } from './button';
|
|
6
|
+
import { IconXmarkOutline18 } from '../../icons';
|
|
7
7
|
|
|
8
8
|
function Sheet({ ...props }: SheetPrimitive.Root.Props) {
|
|
9
|
-
return <SheetPrimitive.Root data-slot="sheet" {...props}
|
|
9
|
+
return <SheetPrimitive.Root data-slot="sheet" {...props} />;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
function SheetTrigger({ ...props }: SheetPrimitive.Trigger.Props) {
|
|
13
|
-
return <SheetPrimitive.Trigger data-slot="sheet-trigger" {...props}
|
|
13
|
+
return <SheetPrimitive.Trigger data-slot="sheet-trigger" {...props} />;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
function SheetClose({ ...props }: SheetPrimitive.Close.Props) {
|
|
17
|
-
return <SheetPrimitive.Close data-slot="sheet-close" {...props}
|
|
17
|
+
return <SheetPrimitive.Close data-slot="sheet-close" {...props} />;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
function SheetPortal({ ...props }: SheetPrimitive.Portal.Props) {
|
|
21
|
-
return <SheetPrimitive.Portal data-slot="sheet-portal" {...props}
|
|
21
|
+
return <SheetPrimitive.Portal data-slot="sheet-portal" {...props} />;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
function SheetOverlay({ className, ...props }: SheetPrimitive.Backdrop.Props) {
|
|
@@ -26,23 +26,23 @@ function SheetOverlay({ className, ...props }: SheetPrimitive.Backdrop.Props) {
|
|
|
26
26
|
<SheetPrimitive.Backdrop
|
|
27
27
|
data-slot="sheet-overlay"
|
|
28
28
|
className={cn(
|
|
29
|
-
|
|
30
|
-
className
|
|
29
|
+
'fixed inset-0 z-50 bg-black/10 transition-opacity duration-150 data-ending-style:opacity-0 data-starting-style:opacity-0 supports-backdrop-filter:backdrop-blur-xs',
|
|
30
|
+
className,
|
|
31
31
|
)}
|
|
32
32
|
{...props}
|
|
33
33
|
/>
|
|
34
|
-
)
|
|
34
|
+
);
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
function SheetContent({
|
|
38
38
|
className,
|
|
39
39
|
children,
|
|
40
|
-
side =
|
|
40
|
+
side = 'right',
|
|
41
41
|
showCloseButton = true,
|
|
42
42
|
...props
|
|
43
43
|
}: SheetPrimitive.Popup.Props & {
|
|
44
|
-
side?:
|
|
45
|
-
showCloseButton?: boolean
|
|
44
|
+
side?: 'top' | 'right' | 'bottom' | 'left';
|
|
45
|
+
showCloseButton?: boolean;
|
|
46
46
|
}) {
|
|
47
47
|
return (
|
|
48
48
|
<SheetPortal>
|
|
@@ -51,8 +51,8 @@ function SheetContent({
|
|
|
51
51
|
data-slot="sheet-content"
|
|
52
52
|
data-side={side}
|
|
53
53
|
className={cn(
|
|
54
|
-
|
|
55
|
-
className
|
|
54
|
+
'fixed z-50 flex flex-col gap-4 bg-popover bg-clip-padding text-sm text-popover-foreground shadow-lg transition duration-200 ease-in-out data-ending-style:opacity-0 data-starting-style:opacity-0 data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=bottom]:data-ending-style:translate-y-[2.5rem] data-[side=bottom]:data-starting-style:translate-y-[2.5rem] data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-r data-[side=left]:data-ending-style:translate-x-[-2.5rem] data-[side=left]:data-starting-style:translate-x-[-2.5rem] data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-l data-[side=right]:data-ending-style:translate-x-[2.5rem] data-[side=right]:data-starting-style:translate-x-[2.5rem] data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=top]:data-ending-style:translate-y-[-2.5rem] data-[side=top]:data-starting-style:translate-y-[-2.5rem] data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm',
|
|
55
|
+
className,
|
|
56
56
|
)}
|
|
57
57
|
{...props}
|
|
58
58
|
>
|
|
@@ -68,34 +68,33 @@ function SheetContent({
|
|
|
68
68
|
/>
|
|
69
69
|
}
|
|
70
70
|
>
|
|
71
|
-
<IconXmarkOutline18
|
|
72
|
-
/>
|
|
71
|
+
<IconXmarkOutline18 />
|
|
73
72
|
<span className="sr-only">Close</span>
|
|
74
73
|
</SheetPrimitive.Close>
|
|
75
74
|
)}
|
|
76
75
|
</SheetPrimitive.Popup>
|
|
77
76
|
</SheetPortal>
|
|
78
|
-
)
|
|
77
|
+
);
|
|
79
78
|
}
|
|
80
79
|
|
|
81
|
-
function SheetHeader({ className, ...props }: React.ComponentProps<
|
|
80
|
+
function SheetHeader({ className, ...props }: React.ComponentProps<'div'>) {
|
|
82
81
|
return (
|
|
83
82
|
<div
|
|
84
83
|
data-slot="sheet-header"
|
|
85
|
-
className={cn(
|
|
84
|
+
className={cn('flex flex-col gap-0 p-4', className)}
|
|
86
85
|
{...props}
|
|
87
86
|
/>
|
|
88
|
-
)
|
|
87
|
+
);
|
|
89
88
|
}
|
|
90
89
|
|
|
91
|
-
function SheetFooter({ className, ...props }: React.ComponentProps<
|
|
90
|
+
function SheetFooter({ className, ...props }: React.ComponentProps<'div'>) {
|
|
92
91
|
return (
|
|
93
92
|
<div
|
|
94
93
|
data-slot="sheet-footer"
|
|
95
|
-
className={cn(
|
|
94
|
+
className={cn('mt-auto flex flex-col gap-2 p-4', className)}
|
|
96
95
|
{...props}
|
|
97
96
|
/>
|
|
98
|
-
)
|
|
97
|
+
);
|
|
99
98
|
}
|
|
100
99
|
|
|
101
100
|
function SheetTitle({ className, ...props }: SheetPrimitive.Title.Props) {
|
|
@@ -103,12 +102,12 @@ function SheetTitle({ className, ...props }: SheetPrimitive.Title.Props) {
|
|
|
103
102
|
<SheetPrimitive.Title
|
|
104
103
|
data-slot="sheet-title"
|
|
105
104
|
className={cn(
|
|
106
|
-
|
|
107
|
-
className
|
|
105
|
+
'font-heading text-base font-medium text-foreground',
|
|
106
|
+
className,
|
|
108
107
|
)}
|
|
109
108
|
{...props}
|
|
110
109
|
/>
|
|
111
|
-
)
|
|
110
|
+
);
|
|
112
111
|
}
|
|
113
112
|
|
|
114
113
|
function SheetDescription({
|
|
@@ -118,10 +117,10 @@ function SheetDescription({
|
|
|
118
117
|
return (
|
|
119
118
|
<SheetPrimitive.Description
|
|
120
119
|
data-slot="sheet-description"
|
|
121
|
-
className={cn(
|
|
120
|
+
className={cn('text-sm text-muted-foreground', className)}
|
|
122
121
|
{...props}
|
|
123
122
|
/>
|
|
124
|
-
)
|
|
123
|
+
);
|
|
125
124
|
}
|
|
126
125
|
|
|
127
126
|
export {
|
|
@@ -133,4 +132,4 @@ export {
|
|
|
133
132
|
SheetFooter,
|
|
134
133
|
SheetTitle,
|
|
135
134
|
SheetDescription,
|
|
136
|
-
}
|
|
135
|
+
};
|