@stagewise/ui 0.1.0 → 0.2.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 +42 -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/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 +10 -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,11 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
'use client';
|
|
2
2
|
|
|
3
|
-
import * as React from
|
|
4
|
-
import { Questionnaire as QuestionnairePrimitive } from
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { Questionnaire as QuestionnairePrimitive } from '@shadcn/react/questionnaire';
|
|
5
5
|
|
|
6
|
-
import { cn } from
|
|
7
|
-
import { buttonVariants, type Button } from
|
|
8
|
-
import { IconCheckOutline18 } from
|
|
6
|
+
import { cn } from '../../lib/utils';
|
|
7
|
+
import { buttonVariants, type Button } from './button';
|
|
8
|
+
import { IconCheckOutline18 } from '../../icons';
|
|
9
9
|
|
|
10
10
|
function Questionnaire({
|
|
11
11
|
className,
|
|
@@ -14,10 +14,10 @@ function Questionnaire({
|
|
|
14
14
|
return (
|
|
15
15
|
<QuestionnairePrimitive.Root
|
|
16
16
|
data-slot="questionnaire"
|
|
17
|
-
className={cn(
|
|
17
|
+
className={cn('flex w-full min-w-0 flex-col gap-4', className)}
|
|
18
18
|
{...props}
|
|
19
19
|
/>
|
|
20
|
-
)
|
|
20
|
+
);
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
function QuestionnaireProgress({
|
|
@@ -28,12 +28,12 @@ function QuestionnaireProgress({
|
|
|
28
28
|
<QuestionnairePrimitive.Progress
|
|
29
29
|
data-slot="questionnaire-progress"
|
|
30
30
|
className={cn(
|
|
31
|
-
|
|
32
|
-
className
|
|
31
|
+
'min-h-[1lh] w-fit min-w-[14ch] text-xs font-medium text-muted-foreground tabular-nums',
|
|
32
|
+
className,
|
|
33
33
|
)}
|
|
34
34
|
{...props}
|
|
35
35
|
/>
|
|
36
|
-
)
|
|
36
|
+
);
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
function QuestionnaireItem({
|
|
@@ -44,12 +44,12 @@ function QuestionnaireItem({
|
|
|
44
44
|
<QuestionnairePrimitive.Item
|
|
45
45
|
data-slot="questionnaire-item"
|
|
46
46
|
className={cn(
|
|
47
|
-
|
|
48
|
-
className
|
|
47
|
+
'flex min-w-0 flex-col gap-4 border-0 p-0 outline-none',
|
|
48
|
+
className,
|
|
49
49
|
)}
|
|
50
50
|
{...props}
|
|
51
51
|
/>
|
|
52
|
-
)
|
|
52
|
+
);
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
function QuestionnaireTitle({
|
|
@@ -60,12 +60,12 @@ function QuestionnaireTitle({
|
|
|
60
60
|
<QuestionnairePrimitive.Title
|
|
61
61
|
data-slot="questionnaire-title"
|
|
62
62
|
className={cn(
|
|
63
|
-
|
|
64
|
-
className
|
|
63
|
+
'font-heading text-base leading-snug font-medium text-pretty [&:not(:has(~[data-slot=questionnaire-description]))]:mb-4',
|
|
64
|
+
className,
|
|
65
65
|
)}
|
|
66
66
|
{...props}
|
|
67
67
|
/>
|
|
68
|
-
)
|
|
68
|
+
);
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
function QuestionnaireDescription({
|
|
@@ -75,10 +75,10 @@ function QuestionnaireDescription({
|
|
|
75
75
|
return (
|
|
76
76
|
<QuestionnairePrimitive.Description
|
|
77
77
|
data-slot="questionnaire-description"
|
|
78
|
-
className={cn(
|
|
78
|
+
className={cn('text-sm text-pretty text-muted-foreground', className)}
|
|
79
79
|
{...props}
|
|
80
80
|
/>
|
|
81
|
-
)
|
|
81
|
+
);
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
function QuestionnaireChoices({
|
|
@@ -89,12 +89,12 @@ function QuestionnaireChoices({
|
|
|
89
89
|
<QuestionnairePrimitive.Choices
|
|
90
90
|
data-slot="questionnaire-choices"
|
|
91
91
|
className={cn(
|
|
92
|
-
|
|
93
|
-
className
|
|
92
|
+
'group/questionnaire-choices grid min-w-0 gap-2',
|
|
93
|
+
className,
|
|
94
94
|
)}
|
|
95
95
|
{...props}
|
|
96
96
|
/>
|
|
97
|
-
)
|
|
97
|
+
);
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
function QuestionnaireChoice({
|
|
@@ -106,9 +106,9 @@ function QuestionnaireChoice({
|
|
|
106
106
|
<QuestionnairePrimitive.Choice
|
|
107
107
|
data-slot="questionnaire-choice"
|
|
108
108
|
className={cn(
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
className
|
|
109
|
+
'group/questionnaire-choice relative flex min-h-11 cursor-pointer items-start gap-2.5 rounded-lg border border-derived bg-transparent px-3 py-2.5 text-start text-sm transition-colors outline-none select-none hover:bg-muted/50 has-[>input:focus-visible]:border-ring has-[>input:focus-visible]:ring-3 has-[>input:focus-visible]:ring-ring/50 data-invalid:border-destructive dark:bg-input/20 data-checked:border-primary/40 data-checked:bg-muted dark:data-checked:bg-muted',
|
|
110
|
+
'data-disabled:pointer-events-none data-disabled:cursor-not-allowed data-disabled:opacity-50',
|
|
111
|
+
className,
|
|
112
112
|
)}
|
|
113
113
|
{...props}
|
|
114
114
|
>
|
|
@@ -125,7 +125,10 @@ function QuestionnaireChoice({
|
|
|
125
125
|
data-slot="questionnaire-choice-indicator-dot"
|
|
126
126
|
className="hidden size-2 rounded-full bg-primary-foreground group-data-[type=checkbox]/questionnaire-choice:hidden group-data-checked/questionnaire-choice:block"
|
|
127
127
|
/>
|
|
128
|
-
<IconCheckOutline18
|
|
128
|
+
<IconCheckOutline18
|
|
129
|
+
data-slot="questionnaire-choice-indicator-check"
|
|
130
|
+
className="hidden size-3.5 group-data-[type=radio]/questionnaire-choice:hidden group-data-checked/questionnaire-choice:block"
|
|
131
|
+
/>
|
|
129
132
|
</span>
|
|
130
133
|
<QuestionnairePrimitive.ChoiceLabel
|
|
131
134
|
data-slot="questionnaire-choice-label"
|
|
@@ -138,20 +141,20 @@ function QuestionnaireChoice({
|
|
|
138
141
|
className="pointer-events-none ms-auto hidden size-5 shrink-0 translate-y-[--spacing(0.45)] items-center justify-center rounded-md border border-derived bg-background font-mono text-[0.625rem] leading-none font-medium text-muted-foreground group-has-data-[slot=questionnaire-choice-description]/questionnaire-choice:translate-y-0.5 group-data-[shortcut]/questionnaire-choice:inline-flex"
|
|
139
142
|
/>
|
|
140
143
|
</QuestionnairePrimitive.Choice>
|
|
141
|
-
)
|
|
144
|
+
);
|
|
142
145
|
}
|
|
143
146
|
|
|
144
147
|
function QuestionnaireChoiceDescription({
|
|
145
148
|
className,
|
|
146
149
|
...props
|
|
147
|
-
}: React.ComponentProps<
|
|
150
|
+
}: React.ComponentProps<'span'>) {
|
|
148
151
|
return (
|
|
149
152
|
<span
|
|
150
153
|
data-slot="questionnaire-choice-description"
|
|
151
|
-
className={cn(
|
|
154
|
+
className={cn('text-muted-foreground', className)}
|
|
152
155
|
{...props}
|
|
153
156
|
/>
|
|
154
|
-
)
|
|
157
|
+
);
|
|
155
158
|
}
|
|
156
159
|
|
|
157
160
|
function QuestionnaireInput({
|
|
@@ -166,14 +169,14 @@ function QuestionnaireInput({
|
|
|
166
169
|
<QuestionnairePrimitive.Input
|
|
167
170
|
data-slot="questionnaire-input"
|
|
168
171
|
className={cn(
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
className
|
|
172
|
+
'h-8 min-h-11 w-full min-w-0 rounded-lg border border-derived bg-transparent px-2.5 py-1 text-base transition-[color,box-shadow,background-color] outline-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 sm:min-h-0 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40',
|
|
173
|
+
'selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground',
|
|
174
|
+
className,
|
|
172
175
|
)}
|
|
173
176
|
{...props}
|
|
174
177
|
/>
|
|
175
178
|
</div>
|
|
176
|
-
)
|
|
179
|
+
);
|
|
177
180
|
}
|
|
178
181
|
|
|
179
182
|
function QuestionnaireError({
|
|
@@ -183,36 +186,36 @@ function QuestionnaireError({
|
|
|
183
186
|
return (
|
|
184
187
|
<QuestionnairePrimitive.Error
|
|
185
188
|
data-slot="questionnaire-error"
|
|
186
|
-
className={cn(
|
|
189
|
+
className={cn('mt-2 text-sm text-destructive', className)}
|
|
187
190
|
{...props}
|
|
188
191
|
/>
|
|
189
|
-
)
|
|
192
|
+
);
|
|
190
193
|
}
|
|
191
194
|
|
|
192
195
|
function QuestionnaireActions({
|
|
193
196
|
className,
|
|
194
197
|
...props
|
|
195
|
-
}: React.ComponentProps<
|
|
198
|
+
}: React.ComponentProps<'div'>) {
|
|
196
199
|
return (
|
|
197
200
|
<div
|
|
198
201
|
data-slot="questionnaire-actions"
|
|
199
202
|
className={cn(
|
|
200
|
-
|
|
201
|
-
className
|
|
203
|
+
'grid min-h-11 w-full grid-cols-[minmax(0,1fr)_auto_auto] items-center gap-2 sm:min-h-8',
|
|
204
|
+
className,
|
|
202
205
|
)}
|
|
203
206
|
{...props}
|
|
204
207
|
/>
|
|
205
|
-
)
|
|
208
|
+
);
|
|
206
209
|
}
|
|
207
210
|
|
|
208
211
|
function QuestionnairePrevious({
|
|
209
212
|
children,
|
|
210
213
|
className,
|
|
211
|
-
size =
|
|
212
|
-
variant =
|
|
214
|
+
size = 'default',
|
|
215
|
+
variant = 'outline',
|
|
213
216
|
...props
|
|
214
217
|
}: React.ComponentProps<typeof QuestionnairePrimitive.Previous> &
|
|
215
|
-
Pick<React.ComponentProps<typeof Button>,
|
|
218
|
+
Pick<React.ComponentProps<typeof Button>, 'size' | 'variant'>) {
|
|
216
219
|
return (
|
|
217
220
|
<QuestionnairePrimitive.Previous
|
|
218
221
|
data-slot="questionnaire-previous"
|
|
@@ -220,24 +223,24 @@ function QuestionnairePrevious({
|
|
|
220
223
|
data-variant={variant}
|
|
221
224
|
className={cn(
|
|
222
225
|
buttonVariants({ size, variant }),
|
|
223
|
-
|
|
224
|
-
className
|
|
226
|
+
'col-start-1 row-start-1 min-h-11 justify-self-start sm:min-h-0',
|
|
227
|
+
className,
|
|
225
228
|
)}
|
|
226
229
|
{...props}
|
|
227
230
|
>
|
|
228
|
-
{children ??
|
|
231
|
+
{children ?? 'Previous'}
|
|
229
232
|
</QuestionnairePrimitive.Previous>
|
|
230
|
-
)
|
|
233
|
+
);
|
|
231
234
|
}
|
|
232
235
|
|
|
233
236
|
function QuestionnaireSkip({
|
|
234
237
|
children,
|
|
235
238
|
className,
|
|
236
|
-
size =
|
|
237
|
-
variant =
|
|
239
|
+
size = 'default',
|
|
240
|
+
variant = 'outline',
|
|
238
241
|
...props
|
|
239
242
|
}: React.ComponentProps<typeof QuestionnairePrimitive.Skip> &
|
|
240
|
-
Pick<React.ComponentProps<typeof Button>,
|
|
243
|
+
Pick<React.ComponentProps<typeof Button>, 'size' | 'variant'>) {
|
|
241
244
|
return (
|
|
242
245
|
<QuestionnairePrimitive.Skip
|
|
243
246
|
data-slot="questionnaire-skip"
|
|
@@ -245,24 +248,24 @@ function QuestionnaireSkip({
|
|
|
245
248
|
data-variant={variant}
|
|
246
249
|
className={cn(
|
|
247
250
|
buttonVariants({ size, variant }),
|
|
248
|
-
|
|
249
|
-
className
|
|
251
|
+
'col-start-2 row-start-1 min-h-11 justify-self-end sm:min-h-0',
|
|
252
|
+
className,
|
|
250
253
|
)}
|
|
251
254
|
{...props}
|
|
252
255
|
>
|
|
253
|
-
{children ??
|
|
256
|
+
{children ?? 'Skip'}
|
|
254
257
|
</QuestionnairePrimitive.Skip>
|
|
255
|
-
)
|
|
258
|
+
);
|
|
256
259
|
}
|
|
257
260
|
|
|
258
261
|
function QuestionnaireNext({
|
|
259
262
|
children,
|
|
260
263
|
className,
|
|
261
|
-
size =
|
|
262
|
-
variant =
|
|
264
|
+
size = 'default',
|
|
265
|
+
variant = 'default',
|
|
263
266
|
...props
|
|
264
267
|
}: React.ComponentProps<typeof QuestionnairePrimitive.Next> &
|
|
265
|
-
Pick<React.ComponentProps<typeof Button>,
|
|
268
|
+
Pick<React.ComponentProps<typeof Button>, 'size' | 'variant'>) {
|
|
266
269
|
return (
|
|
267
270
|
<QuestionnairePrimitive.Next
|
|
268
271
|
data-slot="questionnaire-next"
|
|
@@ -270,24 +273,24 @@ function QuestionnaireNext({
|
|
|
270
273
|
data-variant={variant}
|
|
271
274
|
className={cn(
|
|
272
275
|
buttonVariants({ size, variant }),
|
|
273
|
-
|
|
274
|
-
className
|
|
276
|
+
'col-start-3 row-start-1 min-h-11 justify-self-end sm:min-h-0',
|
|
277
|
+
className,
|
|
275
278
|
)}
|
|
276
279
|
{...props}
|
|
277
280
|
>
|
|
278
|
-
{children ??
|
|
281
|
+
{children ?? 'Next'}
|
|
279
282
|
</QuestionnairePrimitive.Next>
|
|
280
|
-
)
|
|
283
|
+
);
|
|
281
284
|
}
|
|
282
285
|
|
|
283
286
|
function QuestionnaireSubmit({
|
|
284
287
|
children,
|
|
285
288
|
className,
|
|
286
|
-
size =
|
|
287
|
-
variant =
|
|
289
|
+
size = 'default',
|
|
290
|
+
variant = 'default',
|
|
288
291
|
...props
|
|
289
292
|
}: React.ComponentProps<typeof QuestionnairePrimitive.Submit> &
|
|
290
|
-
Pick<React.ComponentProps<typeof Button>,
|
|
293
|
+
Pick<React.ComponentProps<typeof Button>, 'size' | 'variant'>) {
|
|
291
294
|
return (
|
|
292
295
|
<QuestionnairePrimitive.Submit
|
|
293
296
|
data-slot="questionnaire-submit"
|
|
@@ -295,14 +298,14 @@ function QuestionnaireSubmit({
|
|
|
295
298
|
data-variant={variant}
|
|
296
299
|
className={cn(
|
|
297
300
|
buttonVariants({ size, variant }),
|
|
298
|
-
|
|
299
|
-
className
|
|
301
|
+
'col-start-3 row-start-1 min-h-11 justify-self-end sm:min-h-0',
|
|
302
|
+
className,
|
|
300
303
|
)}
|
|
301
304
|
{...props}
|
|
302
305
|
>
|
|
303
|
-
{children ??
|
|
306
|
+
{children ?? 'Submit'}
|
|
304
307
|
</QuestionnairePrimitive.Submit>
|
|
305
|
-
)
|
|
308
|
+
);
|
|
306
309
|
}
|
|
307
310
|
|
|
308
311
|
export {
|
|
@@ -321,4 +324,4 @@ export {
|
|
|
321
324
|
QuestionnaireSkip,
|
|
322
325
|
QuestionnaireSubmit,
|
|
323
326
|
QuestionnaireTitle,
|
|
324
|
-
}
|
|
327
|
+
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { Radio as RadioPrimitive } from
|
|
2
|
-
import { RadioGroup as RadioGroupPrimitive } from
|
|
1
|
+
import { Radio as RadioPrimitive } from '@base-ui/react/radio';
|
|
2
|
+
import { RadioGroup as RadioGroupPrimitive } from '@base-ui/react/radio-group';
|
|
3
3
|
|
|
4
|
-
import { cn } from
|
|
4
|
+
import { cn } from '../../lib/utils';
|
|
5
5
|
|
|
6
6
|
function RadioGroup({ className, ...props }: RadioGroupPrimitive.Props) {
|
|
7
7
|
return (
|
|
8
8
|
<RadioGroupPrimitive
|
|
9
9
|
data-slot="radio-group"
|
|
10
|
-
className={cn(
|
|
10
|
+
className={cn('grid w-full gap-2', className)}
|
|
11
11
|
{...props}
|
|
12
12
|
/>
|
|
13
|
-
)
|
|
13
|
+
);
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
function RadioGroupItem({ className, ...props }: RadioPrimitive.Root.Props) {
|
|
@@ -18,8 +18,8 @@ function RadioGroupItem({ className, ...props }: RadioPrimitive.Root.Props) {
|
|
|
18
18
|
<RadioPrimitive.Root
|
|
19
19
|
data-slot="radio-group-item"
|
|
20
20
|
className={cn(
|
|
21
|
-
|
|
22
|
-
className
|
|
21
|
+
'group/radio-group-item peer relative flex aspect-square size-4 shrink-0 rounded-full border border-derived-strong transition-colors outline-none after:absolute after:-inset-x-3 after:-inset-y-2 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 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary',
|
|
22
|
+
className,
|
|
23
23
|
)}
|
|
24
24
|
{...props}
|
|
25
25
|
>
|
|
@@ -30,7 +30,7 @@ function RadioGroupItem({ className, ...props }: RadioPrimitive.Root.Props) {
|
|
|
30
30
|
<span className="ui-radio-dot absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2 rounded-full bg-primary-foreground transition-[transform,opacity] duration-200" />
|
|
31
31
|
</RadioPrimitive.Indicator>
|
|
32
32
|
</RadioPrimitive.Root>
|
|
33
|
-
)
|
|
33
|
+
);
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
export { RadioGroup, RadioGroupItem }
|
|
36
|
+
export { RadioGroup, RadioGroupItem };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
'use client';
|
|
2
2
|
|
|
3
|
-
import * as ResizablePrimitive from
|
|
3
|
+
import * as ResizablePrimitive from 'react-resizable-panels';
|
|
4
4
|
|
|
5
|
-
import { cn } from
|
|
5
|
+
import { cn } from '../../lib/utils';
|
|
6
6
|
|
|
7
7
|
function ResizablePanelGroup({
|
|
8
8
|
className,
|
|
@@ -12,16 +12,16 @@ function ResizablePanelGroup({
|
|
|
12
12
|
<ResizablePrimitive.Group
|
|
13
13
|
data-slot="resizable-panel-group"
|
|
14
14
|
className={cn(
|
|
15
|
-
|
|
16
|
-
className
|
|
15
|
+
'flex h-full w-full aria-[orientation=vertical]:flex-col',
|
|
16
|
+
className,
|
|
17
17
|
)}
|
|
18
18
|
{...props}
|
|
19
19
|
/>
|
|
20
|
-
)
|
|
20
|
+
);
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
function ResizablePanel({ ...props }: ResizablePrimitive.PanelProps) {
|
|
24
|
-
return <ResizablePrimitive.Panel data-slot="resizable-panel" {...props}
|
|
24
|
+
return <ResizablePrimitive.Panel data-slot="resizable-panel" {...props} />;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
function ResizableHandle({
|
|
@@ -29,14 +29,14 @@ function ResizableHandle({
|
|
|
29
29
|
className,
|
|
30
30
|
...props
|
|
31
31
|
}: ResizablePrimitive.SeparatorProps & {
|
|
32
|
-
withHandle?: boolean
|
|
32
|
+
withHandle?: boolean;
|
|
33
33
|
}) {
|
|
34
34
|
return (
|
|
35
35
|
<ResizablePrimitive.Separator
|
|
36
36
|
data-slot="resizable-handle"
|
|
37
37
|
className={cn(
|
|
38
|
-
|
|
39
|
-
className
|
|
38
|
+
'relative flex w-px items-center justify-center bg-border ring-offset-background after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-ring focus-visible:outline-hidden aria-[orientation=horizontal]:h-px aria-[orientation=horizontal]:w-full aria-[orientation=horizontal]:after:left-0 aria-[orientation=horizontal]:after:h-1 aria-[orientation=horizontal]:after:w-full aria-[orientation=horizontal]:after:translate-x-0 aria-[orientation=horizontal]:after:-translate-y-1/2 [&[aria-orientation=horizontal]>div]:rotate-90',
|
|
39
|
+
className,
|
|
40
40
|
)}
|
|
41
41
|
{...props}
|
|
42
42
|
>
|
|
@@ -44,7 +44,14 @@ function ResizableHandle({
|
|
|
44
44
|
<div className="z-10 flex h-6 w-1 shrink-0 rounded-lg bg-border" />
|
|
45
45
|
)}
|
|
46
46
|
</ResizablePrimitive.Separator>
|
|
47
|
-
)
|
|
47
|
+
);
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
|
|
50
|
+
const useResizablePanelRef = ResizablePrimitive.usePanelRef;
|
|
51
|
+
|
|
52
|
+
export {
|
|
53
|
+
ResizableHandle,
|
|
54
|
+
ResizablePanel,
|
|
55
|
+
ResizablePanelGroup,
|
|
56
|
+
useResizablePanelRef,
|
|
57
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as React from
|
|
2
|
-
import { ScrollArea as ScrollAreaPrimitive } from
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ScrollArea as ScrollAreaPrimitive } from '@base-ui/react/scroll-area';
|
|
3
3
|
|
|
4
|
-
import { cn } from
|
|
4
|
+
import { cn } from '../../lib/utils';
|
|
5
5
|
|
|
6
6
|
function ScrollArea({
|
|
7
7
|
className,
|
|
@@ -11,7 +11,7 @@ function ScrollArea({
|
|
|
11
11
|
return (
|
|
12
12
|
<ScrollAreaPrimitive.Root
|
|
13
13
|
data-slot="scroll-area"
|
|
14
|
-
className={cn(
|
|
14
|
+
className={cn('relative', className)}
|
|
15
15
|
{...props}
|
|
16
16
|
>
|
|
17
17
|
<ScrollAreaPrimitive.Viewport
|
|
@@ -23,12 +23,12 @@ function ScrollArea({
|
|
|
23
23
|
<ScrollBar />
|
|
24
24
|
<ScrollAreaPrimitive.Corner />
|
|
25
25
|
</ScrollAreaPrimitive.Root>
|
|
26
|
-
)
|
|
26
|
+
);
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
function ScrollBar({
|
|
30
30
|
className,
|
|
31
|
-
orientation =
|
|
31
|
+
orientation = 'vertical',
|
|
32
32
|
...props
|
|
33
33
|
}: ScrollAreaPrimitive.Scrollbar.Props) {
|
|
34
34
|
return (
|
|
@@ -37,8 +37,8 @@ function ScrollBar({
|
|
|
37
37
|
data-orientation={orientation}
|
|
38
38
|
orientation={orientation}
|
|
39
39
|
className={cn(
|
|
40
|
-
|
|
41
|
-
className
|
|
40
|
+
'flex touch-none p-px transition-colors select-none data-horizontal:h-2.5 data-horizontal:flex-col data-horizontal:border-t data-horizontal:border-t-transparent data-vertical:h-full data-vertical:w-2.5 data-vertical:border-l data-vertical:border-l-transparent',
|
|
41
|
+
className,
|
|
42
42
|
)}
|
|
43
43
|
{...props}
|
|
44
44
|
>
|
|
@@ -47,7 +47,7 @@ function ScrollBar({
|
|
|
47
47
|
className="relative flex-1 rounded-full bg-border"
|
|
48
48
|
/>
|
|
49
49
|
</ScrollAreaPrimitive.Scrollbar>
|
|
50
|
-
)
|
|
50
|
+
);
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
export { ScrollArea, ScrollBar }
|
|
53
|
+
export { ScrollArea, ScrollBar };
|