@stagewise/ui 0.7.0 → 0.9.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 +1 -1
- package/package.json +1 -1
- package/src/components/ui/alert-dialog.tsx +21 -4
- package/src/components/ui/avatar.tsx +3 -6
- package/src/components/ui/badge.tsx +1 -1
- package/src/components/ui/bubble.tsx +2 -2
- package/src/components/ui/button-group.tsx +2 -2
- package/src/components/ui/button.tsx +1 -1
- package/src/components/ui/checkbox.tsx +1 -1
- package/src/components/ui/combobox.tsx +1 -1
- package/src/components/ui/command.tsx +1 -1
- package/src/components/ui/dialog-lifecycle.tsx +66 -0
- package/src/components/ui/dialog.tsx +12 -3
- package/src/components/ui/dropdown-menu.tsx +3 -3
- package/src/components/ui/input-group.tsx +1 -1
- package/src/components/ui/input-otp.tsx +1 -1
- package/src/components/ui/input.tsx +1 -1
- package/src/components/ui/item.tsx +1 -1
- package/src/components/ui/klex-logo.tsx +1 -2
- package/src/components/ui/marker.tsx +1 -1
- package/src/components/ui/native-select.tsx +1 -1
- package/src/components/ui/questionnaire.tsx +4 -4
- package/src/components/ui/radio-group.tsx +1 -1
- package/src/components/ui/scroll-area.tsx +6 -1
- package/src/components/ui/select.tsx +1 -1
- package/src/components/ui/sidebar.tsx +14 -1
- package/src/components/ui/textarea.tsx +1 -1
- package/src/components/ui/toggle.tsx +1 -1
- package/src/icons/custom/ui-outline-18/IconCalendarOutline18.tsx +28 -0
- package/src/icons/custom/ui-outline-18/IconCrownOutline18.tsx +18 -0
- package/src/icons/custom/ui-outline-18/IconResizeGripOutline18.tsx +18 -0
- package/src/icons/custom/ui-outline-18/IconUserMinusOutline18.tsx +26 -0
- package/src/icons/custom/ui-outline-18/IconUserOutline18.tsx +26 -0
- package/src/icons/custom/ui-outline-18/index.ts +5 -0
- package/src/icons/index.ts +5 -0
- package/src/icons/nucleo/social-media/IconGoogle.tsx +11 -5
- package/src/icons/nucleo/ui-outline-18/IconArrowDoorOut3Outline18.tsx +50 -0
- package/src/icons/nucleo/ui-outline-18/IconMediaPauseOutline18.tsx +40 -0
- package/src/icons/nucleo/ui-outline-18/IconMediaPlayOutline18.tsx +22 -0
- package/src/icons/nucleo/ui-outline-18/IconPaperPlane2Outline18.tsx +33 -0
- package/src/icons/nucleo/ui-outline-18/IconPaperPlaneFastOutline18.tsx +50 -0
- package/src/icons/nucleo/ui-outline-18/IconUndo3Outline18.tsx +27 -0
- package/src/icons/nucleo/ui-outline-18/index.ts +6 -0
- package/src/icons/provider/IconLinear.tsx +1 -1
- package/src/icons/provider/IconPostHog.tsx +23 -3
- package/src/styles/bridge.css +10 -12
- package/src/styles/derived-utilities.css +1 -98
- package/src/styles/index.css +2 -7
- package/src/styles/theme.css +0 -2
package/README.md
CHANGED
|
@@ -39,7 +39,7 @@ That single `@import` loads everything:
|
|
|
39
39
|
- The OKLCH color palette and theme tokens (light/dark)
|
|
40
40
|
- Bundled Geist Variable font (woff2, weights 100–900, upright + italic)
|
|
41
41
|
- The shadcn bridge layer (semantic token mappings)
|
|
42
|
-
- Derived color utilities (`
|
|
42
|
+
- Derived color utilities (`text-hover-derived`, `bg-hover-derived`, etc.)
|
|
43
43
|
- The `tailwindcss-color-modifiers` plugin (auto-loaded via `@plugin`)
|
|
44
44
|
- `tw-animate-css` animation utilities (`animate-in`, `fade-in-0`, `zoom-in-95`, etc.)
|
|
45
45
|
|
package/package.json
CHANGED
|
@@ -3,9 +3,18 @@ import { AlertDialog as AlertDialogPrimitive } from '@base-ui/react/alert-dialog
|
|
|
3
3
|
|
|
4
4
|
import { cn } from '../../lib/utils';
|
|
5
5
|
import { Button } from './button';
|
|
6
|
+
import { useDialogLifecycle } from './dialog-lifecycle';
|
|
7
|
+
import { IconXmarkOutline18 } from '../../icons/nucleo/ui-outline-18/IconXmarkOutline18';
|
|
6
8
|
|
|
7
|
-
function AlertDialog(
|
|
8
|
-
|
|
9
|
+
function AlertDialog(props: AlertDialogPrimitive.Root.Props) {
|
|
10
|
+
const lifecycle = useDialogLifecycle(props);
|
|
11
|
+
return (
|
|
12
|
+
<AlertDialogPrimitive.Root
|
|
13
|
+
data-slot="alert-dialog"
|
|
14
|
+
{...props}
|
|
15
|
+
{...lifecycle}
|
|
16
|
+
/>
|
|
17
|
+
);
|
|
9
18
|
}
|
|
10
19
|
|
|
11
20
|
function AlertDialogTrigger({ ...props }: AlertDialogPrimitive.Trigger.Props) {
|
|
@@ -50,7 +59,7 @@ function AlertDialogContent({
|
|
|
50
59
|
data-slot="alert-dialog-content"
|
|
51
60
|
data-size={size}
|
|
52
61
|
className={cn(
|
|
53
|
-
'group/alert-dialog-content fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-sm 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',
|
|
62
|
+
'group/alert-dialog-content fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-popover-foreground ring-1 ring-foreground/10 transition-none duration-100 outline-none data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-sm 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',
|
|
54
63
|
className,
|
|
55
64
|
)}
|
|
56
65
|
{...props}
|
|
@@ -154,6 +163,7 @@ function AlertDialogAction({
|
|
|
154
163
|
|
|
155
164
|
function AlertDialogCancel({
|
|
156
165
|
className,
|
|
166
|
+
children,
|
|
157
167
|
variant = 'outline',
|
|
158
168
|
size = 'default',
|
|
159
169
|
...props
|
|
@@ -165,7 +175,14 @@ function AlertDialogCancel({
|
|
|
165
175
|
className={cn(className)}
|
|
166
176
|
render={<Button variant={variant} size={size} />}
|
|
167
177
|
{...props}
|
|
168
|
-
|
|
178
|
+
>
|
|
179
|
+
<IconXmarkOutline18
|
|
180
|
+
className="size-4.5"
|
|
181
|
+
data-icon="inline-start"
|
|
182
|
+
aria-hidden
|
|
183
|
+
/>
|
|
184
|
+
{children}
|
|
185
|
+
</AlertDialogPrimitive.Close>
|
|
169
186
|
);
|
|
170
187
|
}
|
|
171
188
|
|
|
@@ -15,7 +15,7 @@ function Avatar({
|
|
|
15
15
|
data-slot="avatar"
|
|
16
16
|
data-size={size}
|
|
17
17
|
className={cn(
|
|
18
|
-
'group/avatar relative flex size-8 shrink-0 rounded-full select-none after:absolute after:inset-0 after:rounded-full after:border after:border-
|
|
18
|
+
'group/avatar relative flex size-8 shrink-0 rounded-full select-none after:absolute after:inset-0 after:rounded-full after:border after:border-border after:mix-blend-darken data-[size=lg]:size-10 data-[size=sm]:size-6 data-[size=xs]:size-4 dark:after:mix-blend-lighten',
|
|
19
19
|
className,
|
|
20
20
|
)}
|
|
21
21
|
{...props}
|
|
@@ -72,10 +72,7 @@ function AvatarGroup({ className, ...props }: React.ComponentProps<'div'>) {
|
|
|
72
72
|
return (
|
|
73
73
|
<div
|
|
74
74
|
data-slot="avatar-group"
|
|
75
|
-
className={cn(
|
|
76
|
-
'group/avatar-group flex -space-x-2 *:data-[slot=avatar]:ring-2 *:data-[slot=avatar]:ring-background',
|
|
77
|
-
className,
|
|
78
|
-
)}
|
|
75
|
+
className={cn('group/avatar-group flex -space-x-2', className)}
|
|
79
76
|
{...props}
|
|
80
77
|
/>
|
|
81
78
|
);
|
|
@@ -89,7 +86,7 @@ function AvatarGroupCount({
|
|
|
89
86
|
<div
|
|
90
87
|
data-slot="avatar-group-count"
|
|
91
88
|
className={cn(
|
|
92
|
-
'relative flex size-8 shrink-0 items-center justify-center rounded-full bg-muted text-sm text-muted-foreground
|
|
89
|
+
'relative flex size-8 shrink-0 items-center justify-center rounded-full border border-border bg-muted text-sm text-muted-foreground group-has-data-[size=lg]/avatar-group:size-10 group-has-data-[size=sm]/avatar-group:size-6 [&>svg]:size-4 group-has-data-[size=lg]/avatar-group:[&>svg]:size-5 group-has-data-[size=sm]/avatar-group:[&>svg]:size-3',
|
|
93
90
|
className,
|
|
94
91
|
)}
|
|
95
92
|
{...props}
|
|
@@ -17,7 +17,7 @@ const badgeVariants = cva(
|
|
|
17
17
|
destructive:
|
|
18
18
|
'bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20',
|
|
19
19
|
outline:
|
|
20
|
-
'border-
|
|
20
|
+
'border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground',
|
|
21
21
|
ghost:
|
|
22
22
|
'hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50',
|
|
23
23
|
link: 'text-primary underline-offset-4 hover:underline',
|
|
@@ -29,7 +29,7 @@ const bubbleVariants = cva(
|
|
|
29
29
|
tinted:
|
|
30
30
|
'*:data-[slot=bubble-content]:bg-[oklch(from_var(--primary)_0.93_calc(c*0.4)_h)] *:data-[slot=bubble-content]:text-foreground dark:*:data-[slot=bubble-content]:bg-[oklch(from_var(--primary)_0.3_calc(c*0.4)_h)] [&>[data-slot=bubble-content]:is(button,a):hover]:bg-[oklch(from_var(--primary)_0.88_calc(c*0.5)_h)] dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-[oklch(from_var(--primary)_0.35_calc(c*0.5)_h)]',
|
|
31
31
|
outline:
|
|
32
|
-
'*:data-[slot=bubble-content]:border-
|
|
32
|
+
'*:data-[slot=bubble-content]:border-border *:data-[slot=bubble-content]:bg-background [&>[data-slot=bubble-content]:is(button,a):hover]:bg-muted [&>[data-slot=bubble-content]:is(button,a):hover]:text-foreground dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-input/30',
|
|
33
33
|
ghost:
|
|
34
34
|
'border-none *:data-[slot=bubble-content]:rounded-none *:data-[slot=bubble-content]:bg-transparent *:data-[slot=bubble-content]:p-0 [&>[data-slot=bubble-content]:is(button,a):hover]:bg-muted [&>[data-slot=bubble-content]:is(button,a):hover]:text-foreground dark:[&>[data-slot=bubble-content]:is(button,a):hover]:bg-muted/50',
|
|
35
35
|
destructive:
|
|
@@ -72,7 +72,7 @@ function BubbleContent({
|
|
|
72
72
|
props: mergeProps<'div'>(
|
|
73
73
|
{
|
|
74
74
|
className: cn(
|
|
75
|
-
'w-fit max-w-full min-w-0 overflow-hidden rounded-3xl border border-transparent px-3 py-2.5 text-sm leading-relaxed wrap-break-word
|
|
75
|
+
'w-fit max-w-full min-w-0 overflow-hidden rounded-3xl border border-transparent px-3 py-2.5 text-sm leading-relaxed wrap-break-word group-data-[align=end]/bubble:self-end [button]:text-left [button,a]:transition-colors [button,a]:outline-none [button,a]:focus-visible:border-ring [button,a]:focus-visible:ring-3 [button,a]:focus-visible:ring-ring/30',
|
|
76
76
|
className,
|
|
77
77
|
),
|
|
78
78
|
},
|
|
@@ -11,9 +11,9 @@ const buttonGroupVariants = cva(
|
|
|
11
11
|
variants: {
|
|
12
12
|
orientation: {
|
|
13
13
|
horizontal:
|
|
14
|
-
'*:data-slot:rounded-r-none [&>[data-slot]:not(:has(~[data-slot]))]:rounded-r-lg! [&>[data-slot]~[data-slot]]:rounded-l-none [&>[data-slot]~[data-slot]]:border-l-0',
|
|
14
|
+
'*:data-slot:rounded-r-none! [&>[data-slot]:not(:has(~[data-slot]))]:rounded-r-lg! [&>[data-slot]~[data-slot]]:rounded-l-none! [&>[data-slot]~[data-slot]]:border-l-0',
|
|
15
15
|
vertical:
|
|
16
|
-
'flex-col *:data-slot:rounded-b-none [&>[data-slot]:not(:has(~[data-slot]))]:rounded-b-lg! [&>[data-slot]~[data-slot]]:rounded-t-none [&>[data-slot]~[data-slot]]:border-t-0',
|
|
16
|
+
'flex-col *:data-slot:rounded-b-none! [&>[data-slot]:not(:has(~[data-slot]))]:rounded-b-lg! [&>[data-slot]~[data-slot]]:rounded-t-none! [&>[data-slot]~[data-slot]]:border-t-0',
|
|
17
17
|
},
|
|
18
18
|
},
|
|
19
19
|
defaultVariants: {
|
|
@@ -10,7 +10,7 @@ const buttonVariants = cva(
|
|
|
10
10
|
variant: {
|
|
11
11
|
default: 'bg-primary text-primary-foreground hover:bg-primary/90',
|
|
12
12
|
outline:
|
|
13
|
-
'border-
|
|
13
|
+
'border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50',
|
|
14
14
|
secondary:
|
|
15
15
|
'bg-secondary text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)] aria-expanded:bg-secondary aria-expanded:text-secondary-foreground',
|
|
16
16
|
ghost:
|
|
@@ -10,7 +10,7 @@ function Checkbox({ className, ...props }: CheckboxPrimitive.Root.Props) {
|
|
|
10
10
|
<CheckboxPrimitive.Root
|
|
11
11
|
data-slot="checkbox"
|
|
12
12
|
className={cn(
|
|
13
|
-
'peer relative flex size-4 shrink-0 items-center justify-center rounded-[4px] text-primary-foreground border border-
|
|
13
|
+
'peer relative flex size-4 shrink-0 items-center justify-center rounded-[4px] text-primary-foreground border border-input transition-colors outline-none group-has-disabled/field:opacity-50 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:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary',
|
|
14
14
|
className,
|
|
15
15
|
)}
|
|
16
16
|
{...props}
|
|
@@ -226,7 +226,7 @@ function ComboboxChips({
|
|
|
226
226
|
<ComboboxPrimitive.Chips
|
|
227
227
|
data-slot="combobox-chips"
|
|
228
228
|
className={cn(
|
|
229
|
-
'flex min-h-8 flex-wrap items-center gap-1 rounded-lg border border-
|
|
229
|
+
'flex min-h-8 flex-wrap items-center gap-1 rounded-lg border border-input bg-transparent bg-clip-padding px-2.5 py-1 text-sm transition-colors focus-within:border-ring focus-within:ring-3 focus-within:ring-ring/50 has-aria-invalid:border-destructive has-aria-invalid:ring-3 has-aria-invalid:ring-destructive/20 has-data-[slot=combobox-chip]:px-1 dark:bg-input/30 dark:has-aria-invalid:border-destructive/50 dark:has-aria-invalid:ring-destructive/40',
|
|
230
230
|
className,
|
|
231
231
|
)}
|
|
232
232
|
{...props}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import type { Dialog as DialogPrimitive } from '@base-ui/react/dialog';
|
|
2
|
+
import {
|
|
3
|
+
createContext,
|
|
4
|
+
memo,
|
|
5
|
+
type ReactNode,
|
|
6
|
+
useContext,
|
|
7
|
+
useState,
|
|
8
|
+
} from 'react';
|
|
9
|
+
|
|
10
|
+
const DialogClosingContext = createContext(false);
|
|
11
|
+
|
|
12
|
+
const DialogChildren = memo(
|
|
13
|
+
({ children }: { children: ReactNode; closing: boolean }) => children,
|
|
14
|
+
(_, next) => next.closing,
|
|
15
|
+
);
|
|
16
|
+
|
|
17
|
+
/** Preserve updates from a nested form's own state during its dialog's exit. */
|
|
18
|
+
export function useDialogExitContent() {
|
|
19
|
+
const closing = useContext(DialogClosingContext);
|
|
20
|
+
return (children: ReactNode) => (
|
|
21
|
+
<DialogChildren closing={closing}>{children}</DialogChildren>
|
|
22
|
+
);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/** Keep the last open render while Base UI animates the popup out. */
|
|
26
|
+
export function useDialogLifecycle({
|
|
27
|
+
children,
|
|
28
|
+
open: controlledOpen,
|
|
29
|
+
defaultOpen = false,
|
|
30
|
+
onOpenChange,
|
|
31
|
+
onOpenChangeComplete,
|
|
32
|
+
}: DialogPrimitive.Root.Props) {
|
|
33
|
+
const [uncontrolledOpen, setUncontrolledOpen] = useState(defaultOpen);
|
|
34
|
+
const open = controlledOpen ?? uncontrolledOpen;
|
|
35
|
+
const [exitComplete, setExitComplete] = useState(!open);
|
|
36
|
+
if (open && exitComplete) setExitComplete(false);
|
|
37
|
+
const closing = !open && !exitComplete;
|
|
38
|
+
|
|
39
|
+
return {
|
|
40
|
+
children:
|
|
41
|
+
typeof children === 'function' ? (
|
|
42
|
+
(payload: Parameters<typeof children>[0]) => (
|
|
43
|
+
<DialogClosingContext.Provider value={closing}>
|
|
44
|
+
<DialogChildren closing={closing}>
|
|
45
|
+
{children(payload)}
|
|
46
|
+
</DialogChildren>
|
|
47
|
+
</DialogClosingContext.Provider>
|
|
48
|
+
)
|
|
49
|
+
) : (
|
|
50
|
+
<DialogClosingContext.Provider value={closing}>
|
|
51
|
+
<DialogChildren closing={closing}>{children}</DialogChildren>
|
|
52
|
+
</DialogClosingContext.Provider>
|
|
53
|
+
),
|
|
54
|
+
onOpenChange(nextOpen, details) {
|
|
55
|
+
onOpenChange?.(nextOpen, details);
|
|
56
|
+
if (!details.isCanceled) setUncontrolledOpen(nextOpen);
|
|
57
|
+
},
|
|
58
|
+
onOpenChangeComplete(nextOpen) {
|
|
59
|
+
if (!nextOpen) setExitComplete(true);
|
|
60
|
+
onOpenChangeComplete?.(nextOpen);
|
|
61
|
+
},
|
|
62
|
+
} satisfies Pick<
|
|
63
|
+
DialogPrimitive.Root.Props,
|
|
64
|
+
'children' | 'onOpenChange' | 'onOpenChangeComplete'
|
|
65
|
+
>;
|
|
66
|
+
}
|
|
@@ -5,10 +5,12 @@ import { Dialog as DialogPrimitive } from '@base-ui/react/dialog';
|
|
|
5
5
|
|
|
6
6
|
import { cn } from '../../lib/utils';
|
|
7
7
|
import { Button } from './button';
|
|
8
|
+
import { useDialogLifecycle } from './dialog-lifecycle';
|
|
8
9
|
import { IconXmarkOutline18 } from '../../icons';
|
|
9
10
|
|
|
10
|
-
function Dialog(
|
|
11
|
-
|
|
11
|
+
function Dialog(props: DialogPrimitive.Root.Props) {
|
|
12
|
+
const lifecycle = useDialogLifecycle(props);
|
|
13
|
+
return <DialogPrimitive.Root data-slot="dialog" {...props} {...lifecycle} />;
|
|
12
14
|
}
|
|
13
15
|
|
|
14
16
|
function DialogTrigger({ ...props }: DialogPrimitive.Trigger.Props) {
|
|
@@ -55,7 +57,7 @@ function DialogContent({
|
|
|
55
57
|
<DialogPrimitive.Popup
|
|
56
58
|
data-slot="dialog-content"
|
|
57
59
|
className={cn(
|
|
58
|
-
'fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-sm text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-sm 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',
|
|
60
|
+
'fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-sm text-popover-foreground ring-1 ring-foreground/10 transition-none duration-100 outline-none sm:max-w-sm 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',
|
|
59
61
|
className,
|
|
60
62
|
)}
|
|
61
63
|
{...props}
|
|
@@ -111,6 +113,11 @@ function DialogFooter({
|
|
|
111
113
|
{children}
|
|
112
114
|
{showCloseButton && (
|
|
113
115
|
<DialogPrimitive.Close render={<Button variant="outline" />}>
|
|
116
|
+
<IconXmarkOutline18
|
|
117
|
+
className="size-4.5"
|
|
118
|
+
data-icon="inline-start"
|
|
119
|
+
aria-hidden
|
|
120
|
+
/>
|
|
114
121
|
Close
|
|
115
122
|
</DialogPrimitive.Close>
|
|
116
123
|
)}
|
|
@@ -159,3 +166,5 @@ export {
|
|
|
159
166
|
DialogTitle,
|
|
160
167
|
DialogTrigger,
|
|
161
168
|
};
|
|
169
|
+
|
|
170
|
+
export { useDialogExitContent } from './dialog-lifecycle';
|
|
@@ -40,7 +40,7 @@ function DropdownMenuContent({
|
|
|
40
40
|
<MenuPrimitive.Popup
|
|
41
41
|
data-slot="dropdown-menu-content"
|
|
42
42
|
className={cn(
|
|
43
|
-
'z-50 max-h-(--available-height) w-(--anchor-width) min-w-32 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-lg p-1 text-popover-foreground shadow-md ring-1 ring-foreground/10 outline-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!
|
|
43
|
+
'z-50 max-h-(--available-height) w-(--anchor-width) min-w-32 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-lg p-1 text-popover-foreground shadow-md ring-1 ring-foreground/10 outline-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]:not-data-[variant=destructive]:focus:bg-foreground/10 **:data-[slot$=-item]:not-data-[variant=destructive]: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!',
|
|
44
44
|
className,
|
|
45
45
|
)}
|
|
46
46
|
{...props}
|
|
@@ -89,7 +89,7 @@ function DropdownMenuItem({
|
|
|
89
89
|
data-inset={inset}
|
|
90
90
|
data-variant={variant}
|
|
91
91
|
className={cn(
|
|
92
|
-
"group/dropdown-menu-item relative flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:pl-7 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-[variant=destructive]:*:[svg]:text-destructive",
|
|
92
|
+
"group/dropdown-menu-item relative flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:pl-7 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:data-highlighted:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 dark:data-[variant=destructive]:data-highlighted:bg-destructive/20 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-[variant=destructive]:*:[svg]:text-destructive",
|
|
93
93
|
className,
|
|
94
94
|
)}
|
|
95
95
|
{...props}
|
|
@@ -137,7 +137,7 @@ function DropdownMenuSubContent({
|
|
|
137
137
|
<DropdownMenuContent
|
|
138
138
|
data-slot="dropdown-menu-sub-content"
|
|
139
139
|
className={cn(
|
|
140
|
-
'w-auto min-w-[96px] rounded-lg p-1 text-popover-foreground shadow-lg ring-1 ring-foreground/10 data-[side=bottom]:slide-in-from-top-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!
|
|
140
|
+
'w-auto min-w-[96px] rounded-lg p-1 text-popover-foreground shadow-lg ring-1 ring-foreground/10 data-[side=bottom]:slide-in-from-top-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]:not-data-[variant=destructive]:focus:bg-foreground/10 **:data-[slot$=-item]:not-data-[variant=destructive]: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!',
|
|
141
141
|
className,
|
|
142
142
|
)}
|
|
143
143
|
align={align}
|
|
@@ -14,7 +14,7 @@ function InputGroup({ className, ...props }: React.ComponentProps<'div'>) {
|
|
|
14
14
|
data-slot="input-group"
|
|
15
15
|
role="group"
|
|
16
16
|
className={cn(
|
|
17
|
-
'group/input-group relative flex h-8 w-full min-w-0 items-center rounded-lg border border-
|
|
17
|
+
'group/input-group relative flex h-8 w-full min-w-0 items-center rounded-lg border border-input transition-colors outline-none in-data-[slot=combobox-content]:focus-within:border-inherit in-data-[slot=combobox-content]:focus-within:ring-0 has-disabled:bg-input/50 has-disabled:opacity-50 has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-3 has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]]:ring-3 has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>textarea]:h-auto dark:bg-input/30 dark:has-disabled:bg-input/80 dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5',
|
|
18
18
|
className,
|
|
19
19
|
)}
|
|
20
20
|
{...props}
|
|
@@ -53,7 +53,7 @@ function InputOTPSlot({
|
|
|
53
53
|
data-slot="input-otp-slot"
|
|
54
54
|
data-active={isActive}
|
|
55
55
|
className={cn(
|
|
56
|
-
'relative flex size-10 items-center justify-center border-y border-r border-
|
|
56
|
+
'relative flex size-10 items-center justify-center border-y border-r border-input text-lg transition-all outline-none first:rounded-l-lg first:border-l last:rounded-r-lg aria-invalid:border-destructive data-[active=true]:z-10 data-[active=true]:border-ring data-[active=true]:ring-3 data-[active=true]:ring-ring/50 data-[active=true]:aria-invalid:border-destructive data-[active=true]:aria-invalid:ring-destructive/20 dark:bg-input/30 dark:data-[active=true]:aria-invalid:ring-destructive/40',
|
|
57
57
|
className,
|
|
58
58
|
)}
|
|
59
59
|
{...props}
|
|
@@ -9,7 +9,7 @@ function Input({ className, type, ...props }: React.ComponentProps<'input'>) {
|
|
|
9
9
|
type={type}
|
|
10
10
|
data-slot="input"
|
|
11
11
|
className={cn(
|
|
12
|
-
'h-8 w-full min-w-0 rounded-lg border border-
|
|
12
|
+
'h-8 w-full min-w-0 rounded-lg border border-input bg-transparent px-2.5 py-1 text-base transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground 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 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40',
|
|
13
13
|
className,
|
|
14
14
|
)}
|
|
15
15
|
{...props}
|
|
@@ -51,8 +51,7 @@ const colorMap: Record<
|
|
|
51
51
|
|
|
52
52
|
const variantClass: Record<KlexLogoVariant, string> = {
|
|
53
53
|
'free-standing': '',
|
|
54
|
-
'boxed-square':
|
|
55
|
-
'rounded-[30%] [corner-shape:round] supports-[corner-shape:squircle]:rounded-[50%] supports-[corner-shape:squircle]:[corner-shape:squircle]',
|
|
54
|
+
'boxed-square': 'rounded-[30%]',
|
|
56
55
|
'boxed-round': 'rounded-full',
|
|
57
56
|
};
|
|
58
57
|
|
|
@@ -13,7 +13,7 @@ const markerVariants = cva(
|
|
|
13
13
|
default: '',
|
|
14
14
|
separator:
|
|
15
15
|
'before:mr-1 before:h-px before:min-w-0 before:flex-1 before:bg-border after:ml-1 after:h-px after:min-w-0 after:flex-1 after:bg-border',
|
|
16
|
-
border: 'border-b border-
|
|
16
|
+
border: 'border-b border-border pb-2',
|
|
17
17
|
},
|
|
18
18
|
},
|
|
19
19
|
},
|
|
@@ -24,7 +24,7 @@ function NativeSelect({
|
|
|
24
24
|
<select
|
|
25
25
|
data-slot="native-select"
|
|
26
26
|
data-size={size}
|
|
27
|
-
className="h-8 w-full min-w-0 appearance-none rounded-lg border border-
|
|
27
|
+
className="h-8 w-full min-w-0 appearance-none rounded-lg border border-input bg-transparent py-1 pr-8 pl-2.5 text-sm transition-colors outline-none select-none selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] data-[size=sm]:py-0.5 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40"
|
|
28
28
|
{...props}
|
|
29
29
|
/>
|
|
30
30
|
<IconChevronDownOutline18
|
|
@@ -106,7 +106,7 @@ function QuestionnaireChoice({
|
|
|
106
106
|
<QuestionnairePrimitive.Choice
|
|
107
107
|
data-slot="questionnaire-choice"
|
|
108
108
|
className={cn(
|
|
109
|
-
'group/questionnaire-choice relative flex min-h-11 cursor-pointer items-start gap-2.5 rounded-lg border border-
|
|
109
|
+
'group/questionnaire-choice relative flex min-h-11 cursor-pointer items-start gap-2.5 rounded-lg border border-input 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
110
|
'data-disabled:pointer-events-none data-disabled:cursor-not-allowed data-disabled:opacity-50',
|
|
111
111
|
className,
|
|
112
112
|
)}
|
|
@@ -119,7 +119,7 @@ function QuestionnaireChoice({
|
|
|
119
119
|
<span
|
|
120
120
|
aria-hidden="true"
|
|
121
121
|
data-slot="questionnaire-choice-indicator"
|
|
122
|
-
className="pointer-events-none relative flex size-4 shrink-0 translate-y-[--spacing(0.45)] items-center justify-center rounded-full border border-
|
|
122
|
+
className="pointer-events-none relative flex size-4 shrink-0 translate-y-[--spacing(0.45)] items-center justify-center rounded-full border border-input group-has-data-[slot=questionnaire-choice-description]/questionnaire-choice:translate-y-0.5 group-data-[type=checkbox]/questionnaire-choice:rounded-[4px] group-data-checked/questionnaire-choice:border-primary group-data-checked/questionnaire-choice:bg-primary group-data-checked/questionnaire-choice:text-primary-foreground dark:bg-input/30 dark:group-data-checked/questionnaire-choice:bg-primary"
|
|
123
123
|
>
|
|
124
124
|
<span
|
|
125
125
|
data-slot="questionnaire-choice-indicator-dot"
|
|
@@ -138,7 +138,7 @@ function QuestionnaireChoice({
|
|
|
138
138
|
</QuestionnairePrimitive.ChoiceLabel>
|
|
139
139
|
<QuestionnairePrimitive.ChoiceShortcut
|
|
140
140
|
data-slot="questionnaire-choice-shortcut"
|
|
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-
|
|
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-input 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"
|
|
142
142
|
/>
|
|
143
143
|
</QuestionnairePrimitive.Choice>
|
|
144
144
|
);
|
|
@@ -169,7 +169,7 @@ function QuestionnaireInput({
|
|
|
169
169
|
<QuestionnairePrimitive.Input
|
|
170
170
|
data-slot="questionnaire-input"
|
|
171
171
|
className={cn(
|
|
172
|
-
'h-8 min-h-11 w-full min-w-0 rounded-lg border border-
|
|
172
|
+
'h-8 min-h-11 w-full min-w-0 rounded-lg border border-input 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
173
|
'selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground',
|
|
174
174
|
className,
|
|
175
175
|
)}
|
|
@@ -18,7 +18,7 @@ function RadioGroupItem({ className, ...props }: RadioPrimitive.Root.Props) {
|
|
|
18
18
|
<RadioPrimitive.Root
|
|
19
19
|
data-slot="radio-group-item"
|
|
20
20
|
className={cn(
|
|
21
|
-
'group/radio-group-item peer relative flex aspect-square size-4 shrink-0 rounded-full border border-
|
|
21
|
+
'group/radio-group-item peer relative flex aspect-square size-4 shrink-0 rounded-full border border-input 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
22
|
className,
|
|
23
23
|
)}
|
|
24
24
|
{...props}
|
|
@@ -18,7 +18,12 @@ function ScrollArea({
|
|
|
18
18
|
data-slot="scroll-area-viewport"
|
|
19
19
|
className="size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1"
|
|
20
20
|
>
|
|
21
|
-
|
|
21
|
+
<ScrollAreaPrimitive.Content
|
|
22
|
+
data-slot="scroll-area-content"
|
|
23
|
+
className="flex min-h-full flex-col"
|
|
24
|
+
>
|
|
25
|
+
{children}
|
|
26
|
+
</ScrollAreaPrimitive.Content>
|
|
22
27
|
</ScrollAreaPrimitive.Viewport>
|
|
23
28
|
<ScrollBar />
|
|
24
29
|
<ScrollAreaPrimitive.Corner />
|
|
@@ -45,7 +45,7 @@ function SelectTrigger({
|
|
|
45
45
|
data-slot="select-trigger"
|
|
46
46
|
data-size={size}
|
|
47
47
|
className={cn(
|
|
48
|
-
"flex w-fit items-center justify-between gap-1.5 rounded-lg border border-
|
|
48
|
+
"flex w-fit items-center justify-between gap-1.5 rounded-lg border border-input 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",
|
|
49
49
|
className,
|
|
50
50
|
)}
|
|
51
51
|
{...props}
|
|
@@ -55,6 +55,8 @@ function SidebarProvider({
|
|
|
55
55
|
defaultOpen = true,
|
|
56
56
|
open: openProp,
|
|
57
57
|
onOpenChange: setOpenProp,
|
|
58
|
+
openMobile: openMobileProp,
|
|
59
|
+
onOpenMobileChange: setOpenMobileProp,
|
|
58
60
|
className,
|
|
59
61
|
style,
|
|
60
62
|
children,
|
|
@@ -63,9 +65,20 @@ function SidebarProvider({
|
|
|
63
65
|
defaultOpen?: boolean;
|
|
64
66
|
open?: boolean;
|
|
65
67
|
onOpenChange?: (open: boolean) => void;
|
|
68
|
+
openMobile?: boolean;
|
|
69
|
+
onOpenMobileChange?: (open: boolean) => void;
|
|
66
70
|
}) {
|
|
67
71
|
const isMobile = useIsMobile();
|
|
68
|
-
const [
|
|
72
|
+
const [internalOpenMobile, setInternalOpenMobile] = React.useState(false);
|
|
73
|
+
const openMobile = openMobileProp ?? internalOpenMobile;
|
|
74
|
+
const setOpenMobile = React.useCallback(
|
|
75
|
+
(value: boolean | ((open: boolean) => boolean)) => {
|
|
76
|
+
const nextOpen = typeof value === 'function' ? value(openMobile) : value;
|
|
77
|
+
if (setOpenMobileProp) setOpenMobileProp(nextOpen);
|
|
78
|
+
else setInternalOpenMobile(nextOpen);
|
|
79
|
+
},
|
|
80
|
+
[openMobile, setOpenMobileProp],
|
|
81
|
+
);
|
|
69
82
|
|
|
70
83
|
// This is the internal state of the sidebar.
|
|
71
84
|
// We use openProp and setOpenProp for control from outside the component.
|
|
@@ -7,7 +7,7 @@ function Textarea({ className, ...props }: React.ComponentProps<'textarea'>) {
|
|
|
7
7
|
<textarea
|
|
8
8
|
data-slot="textarea"
|
|
9
9
|
className={cn(
|
|
10
|
-
'flex field-sizing-content min-h-16 w-full rounded-lg border border-
|
|
10
|
+
'flex field-sizing-content min-h-16 w-full rounded-lg border border-input bg-transparent px-2.5 py-2 text-base transition-colors outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40',
|
|
11
11
|
className,
|
|
12
12
|
)}
|
|
13
13
|
{...props}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
|
|
3
|
+
import { Icon, type IconProps } from './Icon';
|
|
4
|
+
|
|
5
|
+
export const IconCalendarOutline18: React.FC<
|
|
6
|
+
IconProps & { strokeWidth?: number }
|
|
7
|
+
> = ({ strokeWidth = 1.5, ...props }) => (
|
|
8
|
+
<Icon size="18px" {...props}>
|
|
9
|
+
<rect
|
|
10
|
+
x="2.75"
|
|
11
|
+
y="3.75"
|
|
12
|
+
width="12.5"
|
|
13
|
+
height="11.5"
|
|
14
|
+
rx="2"
|
|
15
|
+
fill="none"
|
|
16
|
+
stroke="currentColor"
|
|
17
|
+
strokeWidth={strokeWidth}
|
|
18
|
+
/>
|
|
19
|
+
<path
|
|
20
|
+
d="M6 2.25v3M12 2.25v3M2.75 7.25h12.5M6 10.25h1M11 10.25h1M6 12.75h1"
|
|
21
|
+
fill="none"
|
|
22
|
+
stroke="currentColor"
|
|
23
|
+
strokeLinecap="round"
|
|
24
|
+
strokeLinejoin="round"
|
|
25
|
+
strokeWidth={strokeWidth}
|
|
26
|
+
/>
|
|
27
|
+
</Icon>
|
|
28
|
+
);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
|
|
3
|
+
import { Icon, type IconProps } from './Icon';
|
|
4
|
+
|
|
5
|
+
export const IconCrownOutline18: React.FC<
|
|
6
|
+
IconProps & { strokeWidth?: number }
|
|
7
|
+
> = ({ strokeWidth = 1.5, ...props }) => (
|
|
8
|
+
<Icon size="18px" {...props}>
|
|
9
|
+
<path
|
|
10
|
+
d="m2.75 5.75 3.5 2.5L9 3.25l2.75 5 3.5-2.5-1.5 6.5h-9.5l-1.5-6.5ZM4.75 15.25h8.5"
|
|
11
|
+
fill="none"
|
|
12
|
+
stroke="currentColor"
|
|
13
|
+
strokeLinecap="round"
|
|
14
|
+
strokeLinejoin="round"
|
|
15
|
+
strokeWidth={strokeWidth}
|
|
16
|
+
/>
|
|
17
|
+
</Icon>
|
|
18
|
+
);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
|
|
3
|
+
import { Icon, type IconProps } from './Icon';
|
|
4
|
+
|
|
5
|
+
export const IconResizeGripOutline18: React.FC<
|
|
6
|
+
IconProps & { strokeWidth?: number }
|
|
7
|
+
> = ({ strokeWidth = 1.5, ...props }) => (
|
|
8
|
+
<Icon size="18px" {...props}>
|
|
9
|
+
<path
|
|
10
|
+
d="M3.75 14.25 14.25 3.75M9.25 14.25 14.25 9.25"
|
|
11
|
+
fill="none"
|
|
12
|
+
stroke="currentColor"
|
|
13
|
+
strokeLinecap="round"
|
|
14
|
+
strokeLinejoin="round"
|
|
15
|
+
strokeWidth={strokeWidth}
|
|
16
|
+
/>
|
|
17
|
+
</Icon>
|
|
18
|
+
);
|