@placetostand/ui 0.0.0-stage → 0.1.1
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/CHANGELOG.md +13 -0
- package/LICENSE +21 -0
- package/README.md +91 -2
- package/accordion.d.ts +7 -0
- package/accordion.js +18 -0
- package/alert-dialog.d.ts +18 -0
- package/alert-dialog.js +43 -0
- package/alert.d.ts +12 -0
- package/alert.js +32 -0
- package/avatar.d.ts +16 -0
- package/avatar.js +29 -0
- package/badge-tints.d.ts +20 -0
- package/badge-tints.js +69 -0
- package/badge.d.ts +9 -0
- package/badge.js +22 -0
- package/breadcrumb.d.ts +11 -0
- package/breadcrumb.js +36 -0
- package/button.d.ts +14 -0
- package/button.js +34 -0
- package/calendar.d.ts +8 -0
- package/calendar.js +76 -0
- package/card.d.ts +9 -0
- package/card.js +24 -0
- package/checkbox.d.ts +4 -0
- package/checkbox.js +9 -0
- package/cn.d.ts +2 -0
- package/cn.js +8 -0
- package/collapsible.d.ts +6 -0
- package/collapsible.js +13 -0
- package/company-time-zone.d.ts +3 -0
- package/company-time-zone.js +6 -0
- package/confirm-dialog.d.ts +16 -0
- package/confirm-dialog.js +29 -0
- package/context-menu.d.ts +32 -0
- package/context-menu.js +51 -0
- package/dates.d.ts +16 -0
- package/dates.js +129 -0
- package/dialog.d.ts +21 -0
- package/dialog.js +43 -0
- package/dropdown-menu.d.ts +38 -0
- package/dropdown-menu.js +70 -0
- package/empty-state.d.ts +12 -0
- package/empty-state.js +13 -0
- package/hooks/use-mobile.d.ts +1 -0
- package/hooks/use-mobile.js +15 -0
- package/input.d.ts +3 -0
- package/input.js +6 -0
- package/kbd.d.ts +9 -0
- package/kbd.js +10 -0
- package/label.d.ts +3 -0
- package/label.js +7 -0
- package/numbers.d.ts +14 -0
- package/numbers.js +50 -0
- package/package.json +203 -4
- package/popover.d.ts +12 -0
- package/popover.js +38 -0
- package/popup-align.d.ts +1 -0
- package/popup-align.js +1 -0
- package/progress.d.ts +4 -0
- package/progress.js +8 -0
- package/row-action-button.d.ts +11 -0
- package/row-action-button.js +11 -0
- package/segmented-control.d.ts +18 -0
- package/segmented-control.js +9 -0
- package/select.d.ts +27 -0
- package/select.js +78 -0
- package/separator.d.ts +6 -0
- package/separator.js +8 -0
- package/skeleton.d.ts +3 -0
- package/skeleton.js +6 -0
- package/slot.d.ts +8 -0
- package/slot.js +30 -0
- package/styles/theme.css +192 -0
- package/switch.d.ts +6 -0
- package/switch.js +8 -0
- package/table.d.ts +18 -0
- package/table.js +47 -0
- package/tabs.d.ts +17 -0
- package/tabs.js +26 -0
- package/textarea.d.ts +3 -0
- package/textarea.js +6 -0
- package/theme-provider.d.ts +13 -0
- package/theme-provider.js +57 -0
- package/tooltip.d.ts +16 -0
- package/tooltip.js +23 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# @placetostand/ui
|
|
2
|
+
|
|
3
|
+
## 0.1.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- efed3eb: Export `./package.json`, so tools and bundlers can read the package's version.
|
|
8
|
+
|
|
9
|
+
## 0.1.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- fedf70e: First release: the React components and Tailwind theme behind the Place To Stand portals, on Base UI. Import the theme, `@source` the package, and override any color token for your own brand.
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2023-2026 Place To Stand Agency LLC
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,92 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @placetostand/ui
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
React components and a Tailwind CSS theme from
|
|
4
|
+
[Place To Stand Agency](https://placetostandagency.com): buttons, dialogs,
|
|
5
|
+
menus, selects, tables, a date picker, tooltips and more, built on
|
|
6
|
+
[Base UI](https://base-ui.com). They are the components behind our own client
|
|
7
|
+
portals, published so the products we build for clients can share them.
|
|
8
|
+
|
|
9
|
+
MIT licensed. Your project owns what it builds with them.
|
|
10
|
+
|
|
11
|
+
## Install
|
|
12
|
+
|
|
13
|
+
```sh
|
|
14
|
+
npm install @placetostand/ui tw-animate-css
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
You need React 19 and Tailwind CSS 4.
|
|
18
|
+
|
|
19
|
+
## Set up the theme
|
|
20
|
+
|
|
21
|
+
In your global stylesheet, after Tailwind:
|
|
22
|
+
|
|
23
|
+
```css
|
|
24
|
+
@import 'tailwindcss';
|
|
25
|
+
/* Enter and exit animations for dialogs, menus and popovers. */
|
|
26
|
+
@import 'tw-animate-css';
|
|
27
|
+
/* Let Tailwind see the classes the components use. Adjust the path to your
|
|
28
|
+
node_modules from this file. */
|
|
29
|
+
@source '../node_modules/@placetostand/ui';
|
|
30
|
+
@import '@placetostand/ui/styles/theme.css';
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Dark mode follows a `dark` class on `<html>`.
|
|
34
|
+
|
|
35
|
+
## Use your own brand
|
|
36
|
+
|
|
37
|
+
Every component reads its colors, radius and fonts from CSS variables. Redefine
|
|
38
|
+
any of them after the import:
|
|
39
|
+
|
|
40
|
+
```css
|
|
41
|
+
:root {
|
|
42
|
+
--primary: oklch(0.55 0.2 30);
|
|
43
|
+
--primary-foreground: oklch(0.985 0 0);
|
|
44
|
+
--radius: 0.5rem;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.dark {
|
|
48
|
+
--primary: oklch(0.7 0.17 30);
|
|
49
|
+
}
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
The full list is at the top of `styles/theme.css`: `--background`,
|
|
53
|
+
`--foreground`, `--card`, `--popover`, `--primary`, `--secondary`, `--muted`,
|
|
54
|
+
`--accent`, `--destructive`, `--success`, `--warning`, `--border`, `--input`,
|
|
55
|
+
`--ring`, `--radius`, the `--chart-*` and `--sidebar-*` colors, and the fonts
|
|
56
|
+
(`--font-geist-sans`, `--font-geist-mono`, `--font-space-grotesk`, with system
|
|
57
|
+
fallbacks).
|
|
58
|
+
|
|
59
|
+
## Use a component
|
|
60
|
+
|
|
61
|
+
Each component has its own import path:
|
|
62
|
+
|
|
63
|
+
```tsx
|
|
64
|
+
import { Button } from '@placetostand/ui/button'
|
|
65
|
+
import {
|
|
66
|
+
Dialog,
|
|
67
|
+
DialogContent,
|
|
68
|
+
DialogTitle,
|
|
69
|
+
DialogTrigger,
|
|
70
|
+
} from '@placetostand/ui/dialog'
|
|
71
|
+
|
|
72
|
+
export function Example() {
|
|
73
|
+
return (
|
|
74
|
+
<Dialog>
|
|
75
|
+
<DialogTrigger render={<Button variant='outline'>Open</Button>} />
|
|
76
|
+
<DialogContent>
|
|
77
|
+
<DialogTitle>Hello</DialogTitle>
|
|
78
|
+
</DialogContent>
|
|
79
|
+
</Dialog>
|
|
80
|
+
)
|
|
81
|
+
}
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
Also included: `formatCurrency`, `formatHours` and `formatPercent`
|
|
85
|
+
(`@placetostand/ui/numbers`), time-zone-stable date formatting
|
|
86
|
+
(`@placetostand/ui/dates`) and `cn` for joining class names
|
|
87
|
+
(`@placetostand/ui/cn`).
|
|
88
|
+
|
|
89
|
+
## Versions
|
|
90
|
+
|
|
91
|
+
We follow semantic versioning. A major version means something may break, and
|
|
92
|
+
its changelog entry says how to upgrade. See `CHANGELOG.md`.
|
package/accordion.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Accordion as AccordionPrimitive } from '@base-ui/react/accordion';
|
|
3
|
+
declare function Accordion({ ...props }: AccordionPrimitive.Root.Props): React.JSX.Element;
|
|
4
|
+
declare function AccordionItem({ className, ...props }: AccordionPrimitive.Item.Props): React.JSX.Element;
|
|
5
|
+
declare function AccordionTrigger({ className, children, ...props }: AccordionPrimitive.Trigger.Props): React.JSX.Element;
|
|
6
|
+
declare function AccordionContent({ className, children, ...props }: AccordionPrimitive.Panel.Props): React.JSX.Element;
|
|
7
|
+
export { Accordion, AccordionItem, AccordionTrigger, AccordionContent };
|
package/accordion.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { Accordion as AccordionPrimitive } from '@base-ui/react/accordion';
|
|
4
|
+
import { ChevronDownIcon } from 'lucide-react';
|
|
5
|
+
import { cn } from './cn.js';
|
|
6
|
+
function Accordion({ ...props }) {
|
|
7
|
+
return _jsx(AccordionPrimitive.Root, { "data-slot": 'accordion', ...props });
|
|
8
|
+
}
|
|
9
|
+
function AccordionItem({ className, ...props }) {
|
|
10
|
+
return (_jsx(AccordionPrimitive.Item, { "data-slot": 'accordion-item', className: cn('border-b last:border-b-0', className), ...props }));
|
|
11
|
+
}
|
|
12
|
+
function AccordionTrigger({ className, children, ...props }) {
|
|
13
|
+
return (_jsx(AccordionPrimitive.Header, { className: 'flex', children: _jsxs(AccordionPrimitive.Trigger, { "data-slot": 'accordion-trigger', className: cn('focus-visible:border-ring focus-visible:ring-ring/50 hover:bg-muted -mx-2 flex flex-1 cursor-pointer items-start justify-between gap-4 rounded-md px-2 py-4 text-left text-sm font-medium transition-all outline-none focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-panel-open]>svg]:rotate-180', className), ...props, children: [children, _jsx(ChevronDownIcon, { className: 'text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200 motion-reduce:transition-none' })] }) }));
|
|
14
|
+
}
|
|
15
|
+
function AccordionContent({ className, children, ...props }) {
|
|
16
|
+
return (_jsx(AccordionPrimitive.Panel, { "data-slot": 'accordion-content', className: 'h-[var(--accordion-panel-height)] overflow-hidden text-sm transition-[height] duration-200 ease-out data-[ending-style]:h-0 data-[starting-style]:h-0 motion-reduce:transition-none', ...props, children: _jsx("div", { className: cn('pt-0 pb-4', className), children: children }) }));
|
|
17
|
+
}
|
|
18
|
+
export { Accordion, AccordionItem, AccordionTrigger, AccordionContent };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { AlertDialog as AlertDialogPrimitive } from '@base-ui/react/alert-dialog';
|
|
3
|
+
declare function AlertDialog({ ...props }: AlertDialogPrimitive.Root.Props): React.JSX.Element;
|
|
4
|
+
declare function AlertDialogTrigger({ asChild, children, ...props }: AlertDialogPrimitive.Trigger.Props & {
|
|
5
|
+
asChild?: boolean;
|
|
6
|
+
}): React.JSX.Element;
|
|
7
|
+
declare function AlertDialogPortal({ ...props }: AlertDialogPrimitive.Portal.Props): React.JSX.Element;
|
|
8
|
+
declare function AlertDialogOverlay({ className, ...props }: AlertDialogPrimitive.Backdrop.Props): React.JSX.Element;
|
|
9
|
+
declare function AlertDialogContent({ className, onBackdropClick, ...props }: AlertDialogPrimitive.Popup.Props & {
|
|
10
|
+
onBackdropClick?: () => void;
|
|
11
|
+
}): React.JSX.Element;
|
|
12
|
+
declare function AlertDialogHeader({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
13
|
+
declare function AlertDialogFooter({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
14
|
+
declare function AlertDialogTitle({ className, ...props }: AlertDialogPrimitive.Title.Props): React.JSX.Element;
|
|
15
|
+
declare function AlertDialogDescription({ className, ...props }: AlertDialogPrimitive.Description.Props): React.JSX.Element;
|
|
16
|
+
declare function AlertDialogAction({ className, ...props }: AlertDialogPrimitive.Close.Props): React.JSX.Element;
|
|
17
|
+
declare function AlertDialogCancel({ className, ...props }: AlertDialogPrimitive.Close.Props): React.JSX.Element;
|
|
18
|
+
export { AlertDialog, AlertDialogPortal, AlertDialogOverlay, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel, };
|
package/alert-dialog.js
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { AlertDialog as AlertDialogPrimitive } from '@base-ui/react/alert-dialog';
|
|
5
|
+
import { cn } from './cn.js';
|
|
6
|
+
import { buttonVariants } from './button.js';
|
|
7
|
+
function AlertDialog({ ...props }) {
|
|
8
|
+
return _jsx(AlertDialogPrimitive.Root, { "data-slot": 'alert-dialog', ...props });
|
|
9
|
+
}
|
|
10
|
+
function AlertDialogTrigger({ asChild, children, ...props }) {
|
|
11
|
+
if (asChild && React.isValidElement(children)) {
|
|
12
|
+
return (_jsx(AlertDialogPrimitive.Trigger, { "data-slot": 'alert-dialog-trigger', render: children, ...props }));
|
|
13
|
+
}
|
|
14
|
+
return (_jsx(AlertDialogPrimitive.Trigger, { "data-slot": 'alert-dialog-trigger', ...props, children: children }));
|
|
15
|
+
}
|
|
16
|
+
function AlertDialogPortal({ ...props }) {
|
|
17
|
+
return (_jsx(AlertDialogPrimitive.Portal, { "data-slot": 'alert-dialog-portal', ...props }));
|
|
18
|
+
}
|
|
19
|
+
function AlertDialogOverlay({ className, ...props }) {
|
|
20
|
+
return (_jsx(AlertDialogPrimitive.Backdrop, { "data-slot": 'alert-dialog-overlay', className: cn('data-open:animate-in data-closed:animate-out data-closed:fill-mode-forwards data-closed:fade-out-0 data-open:fade-in-0 pointer-events-auto fixed inset-0 z-50 bg-black/70', className), ...props }));
|
|
21
|
+
}
|
|
22
|
+
function AlertDialogContent({ className, onBackdropClick, ...props }) {
|
|
23
|
+
return (_jsxs(AlertDialogPortal, { children: [_jsx(AlertDialogOverlay, { onClick: onBackdropClick }), _jsx(AlertDialogPrimitive.Popup, { "data-slot": 'alert-dialog-content', className: cn('bg-background data-open:animate-in data-closed:animate-out data-closed:fill-mode-forwards data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 pointer-events-auto fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg', className), ...props })] }));
|
|
24
|
+
}
|
|
25
|
+
function AlertDialogHeader({ className, ...props }) {
|
|
26
|
+
return (_jsx("div", { "data-slot": 'alert-dialog-header', className: cn('flex flex-col gap-2 text-center sm:text-left', className), ...props }));
|
|
27
|
+
}
|
|
28
|
+
function AlertDialogFooter({ className, ...props }) {
|
|
29
|
+
return (_jsx("div", { "data-slot": 'alert-dialog-footer', className: cn('flex flex-col-reverse gap-2 sm:flex-row sm:justify-end', className), ...props }));
|
|
30
|
+
}
|
|
31
|
+
function AlertDialogTitle({ className, ...props }) {
|
|
32
|
+
return (_jsx(AlertDialogPrimitive.Title, { "data-slot": 'alert-dialog-title', className: cn('text-lg font-semibold', className), ...props }));
|
|
33
|
+
}
|
|
34
|
+
function AlertDialogDescription({ className, ...props }) {
|
|
35
|
+
return (_jsx(AlertDialogPrimitive.Description, { "data-slot": 'alert-dialog-description', className: cn('text-muted-foreground text-sm', className), ...props }));
|
|
36
|
+
}
|
|
37
|
+
function AlertDialogAction({ className, ...props }) {
|
|
38
|
+
return (_jsx(AlertDialogPrimitive.Close, { className: cn(buttonVariants(), className), ...props }));
|
|
39
|
+
}
|
|
40
|
+
function AlertDialogCancel({ className, ...props }) {
|
|
41
|
+
return (_jsx(AlertDialogPrimitive.Close, { className: cn(buttonVariants({ variant: 'outline' }), className), ...props }));
|
|
42
|
+
}
|
|
43
|
+
export { AlertDialog, AlertDialogPortal, AlertDialogOverlay, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel, };
|
package/alert.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
3
|
+
declare const firstLineIcon = "[&>svg]:h-[1lh] [&>svg]:w-4 [&>svg]:shrink-0";
|
|
4
|
+
declare const alertVariants: (props?: ({
|
|
5
|
+
variant?: "default" | "destructive" | "warning" | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
|
+
declare function Alert({ className, variant, ...props }: React.ComponentProps<'div'> & VariantProps<typeof alertVariants>): React.JSX.Element;
|
|
8
|
+
declare function AlertContent({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
9
|
+
declare function AlertTitle({ className, ...props }: React.ComponentProps<'p'>): React.JSX.Element;
|
|
10
|
+
declare function AlertDescription({ className, ...props }: React.ComponentProps<'p'>): React.JSX.Element;
|
|
11
|
+
declare function AlertAction({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
12
|
+
export { Alert, AlertAction, AlertContent, AlertDescription, AlertTitle, alertVariants, firstLineIcon, };
|
package/alert.js
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { cva } from 'class-variance-authority';
|
|
3
|
+
import { cn } from './cn.js';
|
|
4
|
+
const firstLineIcon = '[&>svg]:h-[1lh] [&>svg]:w-4 [&>svg]:shrink-0';
|
|
5
|
+
const alertVariants = cva(cn('relative flex w-full flex-wrap items-start gap-x-3 gap-y-2 rounded-lg border px-3.5 py-2.5 text-sm leading-snug', firstLineIcon), {
|
|
6
|
+
variants: {
|
|
7
|
+
variant: {
|
|
8
|
+
default: 'bg-card text-card-foreground [&>svg]:text-muted-foreground',
|
|
9
|
+
destructive: 'border-destructive/35 bg-destructive/5 text-destructive dark:bg-destructive/10 [&>svg]:text-destructive',
|
|
10
|
+
warning: 'border-warning/40 bg-warning/10 text-foreground [&>svg]:text-warning',
|
|
11
|
+
},
|
|
12
|
+
},
|
|
13
|
+
defaultVariants: {
|
|
14
|
+
variant: 'default',
|
|
15
|
+
},
|
|
16
|
+
});
|
|
17
|
+
function Alert({ className, variant, ...props }) {
|
|
18
|
+
return (_jsx("div", { "data-slot": 'alert', role: 'alert', className: cn(alertVariants({ variant }), className), ...props }));
|
|
19
|
+
}
|
|
20
|
+
function AlertContent({ className, ...props }) {
|
|
21
|
+
return (_jsx("div", { "data-slot": 'alert-content', className: cn('flex min-w-0 flex-1 flex-col gap-0.5', className), ...props }));
|
|
22
|
+
}
|
|
23
|
+
function AlertTitle({ className, ...props }) {
|
|
24
|
+
return (_jsx("p", { "data-slot": 'alert-title', className: cn('leading-snug font-medium', className), ...props }));
|
|
25
|
+
}
|
|
26
|
+
function AlertDescription({ className, ...props }) {
|
|
27
|
+
return (_jsx("p", { "data-slot": 'alert-description', className: cn('leading-snug opacity-90', className), ...props }));
|
|
28
|
+
}
|
|
29
|
+
function AlertAction({ className, ...props }) {
|
|
30
|
+
return (_jsx("div", { "data-slot": 'alert-action', className: cn('ml-auto flex h-[1lh] shrink-0 items-center gap-2', className), ...props }));
|
|
31
|
+
}
|
|
32
|
+
export { Alert, AlertAction, AlertContent, AlertDescription, AlertTitle, alertVariants, firstLineIcon, };
|
package/avatar.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Avatar as AvatarPrimitive } from '@base-ui/react/avatar';
|
|
3
|
+
declare const AVATAR_SIZES: {
|
|
4
|
+
readonly xs: "size-5 text-micro";
|
|
5
|
+
readonly sm: "size-6 text-micro";
|
|
6
|
+
readonly md: "size-8 text-xs";
|
|
7
|
+
readonly lg: "size-10 text-sm";
|
|
8
|
+
readonly xl: "size-16 text-base";
|
|
9
|
+
};
|
|
10
|
+
type AvatarSize = keyof typeof AVATAR_SIZES;
|
|
11
|
+
declare function Avatar({ className, size, ...props }: AvatarPrimitive.Root.Props & {
|
|
12
|
+
size?: AvatarSize;
|
|
13
|
+
}): React.JSX.Element;
|
|
14
|
+
declare function AvatarImage({ className, src, onLoadingStatusChange, ...props }: AvatarPrimitive.Image.Props): React.JSX.Element;
|
|
15
|
+
declare function AvatarFallback({ className, ...props }: AvatarPrimitive.Fallback.Props): React.JSX.Element;
|
|
16
|
+
export { Avatar, AvatarImage, AvatarFallback };
|
package/avatar.js
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { Avatar as AvatarPrimitive } from '@base-ui/react/avatar';
|
|
5
|
+
import { cn } from './cn.js';
|
|
6
|
+
const AVATAR_SIZES = {
|
|
7
|
+
xs: 'size-5 text-micro',
|
|
8
|
+
sm: 'size-6 text-micro',
|
|
9
|
+
md: 'size-8 text-xs',
|
|
10
|
+
lg: 'size-10 text-sm',
|
|
11
|
+
xl: 'size-16 text-base',
|
|
12
|
+
};
|
|
13
|
+
function Avatar({ className, size = 'md', ...props }) {
|
|
14
|
+
return (_jsx(AvatarPrimitive.Root, { "data-slot": 'avatar', "data-size": size, className: cn('relative flex shrink-0 overflow-hidden rounded-full', AVATAR_SIZES[size], className), ...props }));
|
|
15
|
+
}
|
|
16
|
+
const shownSrcs = new Set();
|
|
17
|
+
function AvatarImage({ className, src, onLoadingStatusChange, ...props }) {
|
|
18
|
+
const key = typeof src === 'string' ? src : null;
|
|
19
|
+
const [fadeIn] = React.useState(() => !key || !shownSrcs.has(key));
|
|
20
|
+
return (_jsx(AvatarPrimitive.Image, { "data-slot": 'avatar-image', className: cn('aspect-square size-full', fadeIn && 'animate-in fade-in duration-150 motion-reduce:animate-none', className), src: src, onLoadingStatusChange: status => {
|
|
21
|
+
if (status === 'loaded' && key)
|
|
22
|
+
shownSrcs.add(key);
|
|
23
|
+
onLoadingStatusChange?.(status);
|
|
24
|
+
}, ...props }));
|
|
25
|
+
}
|
|
26
|
+
function AvatarFallback({ className, ...props }) {
|
|
27
|
+
return (_jsx(AvatarPrimitive.Fallback, { "data-slot": 'avatar-fallback', className: cn('bg-muted flex size-full items-center justify-center rounded-full', className), ...props }));
|
|
28
|
+
}
|
|
29
|
+
export { Avatar, AvatarImage, AvatarFallback };
|
package/badge-tints.d.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare const BADGE_TINTS: {
|
|
2
|
+
readonly neutral: "border-transparent bg-muted text-muted-foreground";
|
|
3
|
+
readonly sky: "border-transparent bg-sky-100 text-sky-800 dark:bg-sky-900/40 dark:text-sky-200";
|
|
4
|
+
readonly blue: "border-transparent bg-blue-100 text-blue-800 dark:bg-blue-900/40 dark:text-blue-200";
|
|
5
|
+
readonly indigo: "border-transparent bg-indigo-100 text-indigo-800 dark:bg-indigo-900/40 dark:text-indigo-200";
|
|
6
|
+
readonly violet: "border-transparent bg-violet-100 text-violet-800 dark:bg-violet-900/40 dark:text-violet-200";
|
|
7
|
+
readonly fuchsia: "border-transparent bg-fuchsia-100 text-fuchsia-800 dark:bg-fuchsia-900/40 dark:text-fuchsia-200";
|
|
8
|
+
readonly pink: "border-transparent bg-pink-100 text-pink-800 dark:bg-pink-900/40 dark:text-pink-200";
|
|
9
|
+
readonly rose: "border-transparent bg-rose-100 text-rose-800 dark:bg-rose-900/40 dark:text-rose-200";
|
|
10
|
+
readonly orange: "border-transparent bg-orange-100 text-orange-800 dark:bg-orange-900/40 dark:text-orange-200";
|
|
11
|
+
readonly amber: "border-transparent bg-amber-100 text-amber-800 dark:bg-amber-900/40 dark:text-amber-200";
|
|
12
|
+
readonly emerald: "border-transparent bg-emerald-100 text-emerald-800 dark:bg-emerald-900/40 dark:text-emerald-200";
|
|
13
|
+
readonly teal: "border-transparent bg-teal-100 text-teal-800 dark:bg-teal-900/40 dark:text-teal-200";
|
|
14
|
+
readonly cyan: "border-transparent bg-cyan-100 text-cyan-800 dark:bg-cyan-900/40 dark:text-cyan-200";
|
|
15
|
+
};
|
|
16
|
+
export type BadgeTint = keyof typeof BADGE_TINTS;
|
|
17
|
+
export declare const BOARD_LANE_TINTS: Record<BadgeTint, {
|
|
18
|
+
line: string;
|
|
19
|
+
drop: string;
|
|
20
|
+
}>;
|
package/badge-tints.js
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
export const BADGE_TINTS = {
|
|
2
|
+
neutral: 'border-transparent bg-muted text-muted-foreground',
|
|
3
|
+
sky: 'border-transparent bg-sky-100 text-sky-800 dark:bg-sky-900/40 dark:text-sky-200',
|
|
4
|
+
blue: 'border-transparent bg-blue-100 text-blue-800 dark:bg-blue-900/40 dark:text-blue-200',
|
|
5
|
+
indigo: 'border-transparent bg-indigo-100 text-indigo-800 dark:bg-indigo-900/40 dark:text-indigo-200',
|
|
6
|
+
violet: 'border-transparent bg-violet-100 text-violet-800 dark:bg-violet-900/40 dark:text-violet-200',
|
|
7
|
+
fuchsia: 'border-transparent bg-fuchsia-100 text-fuchsia-800 dark:bg-fuchsia-900/40 dark:text-fuchsia-200',
|
|
8
|
+
pink: 'border-transparent bg-pink-100 text-pink-800 dark:bg-pink-900/40 dark:text-pink-200',
|
|
9
|
+
rose: 'border-transparent bg-rose-100 text-rose-800 dark:bg-rose-900/40 dark:text-rose-200',
|
|
10
|
+
orange: 'border-transparent bg-orange-100 text-orange-800 dark:bg-orange-900/40 dark:text-orange-200',
|
|
11
|
+
amber: 'border-transparent bg-amber-100 text-amber-800 dark:bg-amber-900/40 dark:text-amber-200',
|
|
12
|
+
emerald: 'border-transparent bg-emerald-100 text-emerald-800 dark:bg-emerald-900/40 dark:text-emerald-200',
|
|
13
|
+
teal: 'border-transparent bg-teal-100 text-teal-800 dark:bg-teal-900/40 dark:text-teal-200',
|
|
14
|
+
cyan: 'border-transparent bg-cyan-100 text-cyan-800 dark:bg-cyan-900/40 dark:text-cyan-200',
|
|
15
|
+
};
|
|
16
|
+
export const BOARD_LANE_TINTS = {
|
|
17
|
+
neutral: {
|
|
18
|
+
line: 'border-t-muted-foreground/30 dark:border-t-muted-foreground/70',
|
|
19
|
+
drop: 'bg-muted-foreground/[0.06]',
|
|
20
|
+
},
|
|
21
|
+
sky: {
|
|
22
|
+
line: 'border-t-sky-500/50 dark:border-t-sky-200/70',
|
|
23
|
+
drop: 'bg-sky-500/[0.06] dark:bg-sky-200/[0.06]',
|
|
24
|
+
},
|
|
25
|
+
blue: {
|
|
26
|
+
line: 'border-t-blue-500/50 dark:border-t-blue-200/70',
|
|
27
|
+
drop: 'bg-blue-500/[0.06] dark:bg-blue-200/[0.06]',
|
|
28
|
+
},
|
|
29
|
+
indigo: {
|
|
30
|
+
line: 'border-t-indigo-500/50 dark:border-t-indigo-200/70',
|
|
31
|
+
drop: 'bg-indigo-500/[0.06] dark:bg-indigo-200/[0.06]',
|
|
32
|
+
},
|
|
33
|
+
violet: {
|
|
34
|
+
line: 'border-t-violet-500/50 dark:border-t-violet-200/70',
|
|
35
|
+
drop: 'bg-violet-500/[0.06] dark:bg-violet-200/[0.06]',
|
|
36
|
+
},
|
|
37
|
+
fuchsia: {
|
|
38
|
+
line: 'border-t-fuchsia-500/50 dark:border-t-fuchsia-200/70',
|
|
39
|
+
drop: 'bg-fuchsia-500/[0.06] dark:bg-fuchsia-200/[0.06]',
|
|
40
|
+
},
|
|
41
|
+
pink: {
|
|
42
|
+
line: 'border-t-pink-500/50 dark:border-t-pink-200/70',
|
|
43
|
+
drop: 'bg-pink-500/[0.06] dark:bg-pink-200/[0.06]',
|
|
44
|
+
},
|
|
45
|
+
rose: {
|
|
46
|
+
line: 'border-t-rose-500/50 dark:border-t-rose-200/70',
|
|
47
|
+
drop: 'bg-rose-500/[0.06] dark:bg-rose-200/[0.06]',
|
|
48
|
+
},
|
|
49
|
+
orange: {
|
|
50
|
+
line: 'border-t-orange-500/50 dark:border-t-orange-200/70',
|
|
51
|
+
drop: 'bg-orange-500/[0.06] dark:bg-orange-200/[0.06]',
|
|
52
|
+
},
|
|
53
|
+
amber: {
|
|
54
|
+
line: 'border-t-amber-500/50 dark:border-t-amber-200/70',
|
|
55
|
+
drop: 'bg-amber-500/[0.06] dark:bg-amber-200/[0.06]',
|
|
56
|
+
},
|
|
57
|
+
emerald: {
|
|
58
|
+
line: 'border-t-emerald-500/50 dark:border-t-emerald-200/70',
|
|
59
|
+
drop: 'bg-emerald-500/[0.06] dark:bg-emerald-200/[0.06]',
|
|
60
|
+
},
|
|
61
|
+
teal: {
|
|
62
|
+
line: 'border-t-teal-500/50 dark:border-t-teal-200/70',
|
|
63
|
+
drop: 'bg-teal-500/[0.06] dark:bg-teal-200/[0.06]',
|
|
64
|
+
},
|
|
65
|
+
cyan: {
|
|
66
|
+
line: 'border-t-cyan-500/50 dark:border-t-cyan-200/70',
|
|
67
|
+
drop: 'bg-cyan-500/[0.06] dark:bg-cyan-200/[0.06]',
|
|
68
|
+
},
|
|
69
|
+
};
|
package/badge.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
3
|
+
declare const badgeVariants: (props?: ({
|
|
4
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | null | undefined;
|
|
5
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
|
+
declare function Badge({ className, variant, asChild, ...props }: React.ComponentProps<'span'> & VariantProps<typeof badgeVariants> & {
|
|
7
|
+
asChild?: boolean;
|
|
8
|
+
}): React.JSX.Element;
|
|
9
|
+
export { Badge, badgeVariants };
|
package/badge.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Slot as SlotPrimitive } from './slot.js';
|
|
3
|
+
import { cva } from 'class-variance-authority';
|
|
4
|
+
import { cn } from './cn.js';
|
|
5
|
+
const badgeVariants = cva('inline-flex items-center justify-center rounded-full border px-2 py-0.5 text-xs font-semibold uppercase tracking-wide w-fit whitespace-nowrap shrink-0 [&>svg]:size-3! [&>svg:not([class*=text-])]:text-current! gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden', {
|
|
6
|
+
variants: {
|
|
7
|
+
variant: {
|
|
8
|
+
default: 'border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90',
|
|
9
|
+
secondary: 'border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90',
|
|
10
|
+
destructive: 'border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60',
|
|
11
|
+
outline: 'text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground',
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
defaultVariants: {
|
|
15
|
+
variant: 'default',
|
|
16
|
+
},
|
|
17
|
+
});
|
|
18
|
+
function Badge({ className, variant, asChild = false, ...props }) {
|
|
19
|
+
const Comp = asChild ? SlotPrimitive : 'span';
|
|
20
|
+
return (_jsx(Comp, { "data-slot": 'badge', className: cn(badgeVariants({ variant }), className), ...props }));
|
|
21
|
+
}
|
|
22
|
+
export { Badge, badgeVariants };
|
package/breadcrumb.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare function Breadcrumb({ ...props }: React.ComponentProps<'nav'>): React.JSX.Element;
|
|
3
|
+
declare function BreadcrumbList({ className, ...props }: React.ComponentProps<'ol'>): React.JSX.Element;
|
|
4
|
+
declare function BreadcrumbItem({ className, ...props }: React.ComponentProps<'li'>): React.JSX.Element;
|
|
5
|
+
declare function BreadcrumbLink({ asChild, className, children, ...props }: React.ComponentProps<'a'> & {
|
|
6
|
+
asChild?: boolean;
|
|
7
|
+
}): React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
|
|
8
|
+
declare function BreadcrumbPage({ className, ...props }: React.ComponentProps<'span'>): React.JSX.Element;
|
|
9
|
+
declare function BreadcrumbSeparator({ children, className, ...props }: React.ComponentProps<'li'>): React.JSX.Element;
|
|
10
|
+
declare function BreadcrumbEllipsis({ className, ...props }: React.ComponentProps<'span'>): React.JSX.Element;
|
|
11
|
+
export { Breadcrumb, BreadcrumbList, BreadcrumbItem, BreadcrumbLink, BreadcrumbPage, BreadcrumbSeparator, BreadcrumbEllipsis, };
|
package/breadcrumb.js
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { ChevronRight, MoreHorizontal } from 'lucide-react';
|
|
3
|
+
import { mergeProps } from '@base-ui/react/merge-props';
|
|
4
|
+
import { useRender } from '@base-ui/react/use-render';
|
|
5
|
+
import { cn } from './cn.js';
|
|
6
|
+
function Breadcrumb({ ...props }) {
|
|
7
|
+
return _jsx("nav", { "aria-label": 'breadcrumb', "data-slot": 'breadcrumb', ...props });
|
|
8
|
+
}
|
|
9
|
+
function BreadcrumbList({ className, ...props }) {
|
|
10
|
+
return (_jsx("ol", { "data-slot": 'breadcrumb-list', className: cn('text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5', className), ...props }));
|
|
11
|
+
}
|
|
12
|
+
function BreadcrumbItem({ className, ...props }) {
|
|
13
|
+
return (_jsx("li", { "data-slot": 'breadcrumb-item', className: cn('inline-flex items-center gap-1.5', className), ...props }));
|
|
14
|
+
}
|
|
15
|
+
function BreadcrumbLink({ asChild, className, children, ...props }) {
|
|
16
|
+
return useRender({
|
|
17
|
+
defaultTagName: 'a',
|
|
18
|
+
render: asChild ? children : undefined,
|
|
19
|
+
props: mergeProps({
|
|
20
|
+
className: cn('hover:text-foreground transition-colors', className),
|
|
21
|
+
}, asChild ? props : { ...props, children }),
|
|
22
|
+
state: {
|
|
23
|
+
slot: 'breadcrumb-link',
|
|
24
|
+
},
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
function BreadcrumbPage({ className, ...props }) {
|
|
28
|
+
return (_jsx("span", { "data-slot": 'breadcrumb-page', role: 'link', "aria-disabled": 'true', "aria-current": 'page', className: cn('text-foreground font-normal', className), ...props }));
|
|
29
|
+
}
|
|
30
|
+
function BreadcrumbSeparator({ children, className, ...props }) {
|
|
31
|
+
return (_jsx("li", { "data-slot": 'breadcrumb-separator', role: 'presentation', "aria-hidden": 'true', className: cn('[&>svg]:size-3.5', className), ...props, children: children ?? _jsx(ChevronRight, {}) }));
|
|
32
|
+
}
|
|
33
|
+
function BreadcrumbEllipsis({ className, ...props }) {
|
|
34
|
+
return (_jsxs("span", { "data-slot": 'breadcrumb-ellipsis', role: 'presentation', "aria-hidden": 'true', className: cn('flex size-9 items-center justify-center', className), ...props, children: [_jsx(MoreHorizontal, { className: 'size-4' }), _jsx("span", { className: 'sr-only', children: "More" })] }));
|
|
35
|
+
}
|
|
36
|
+
export { Breadcrumb, BreadcrumbList, BreadcrumbItem, BreadcrumbLink, BreadcrumbPage, BreadcrumbSeparator, BreadcrumbEllipsis, };
|
package/button.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
3
|
+
declare const buttonVariants: (props?: ({
|
|
4
|
+
variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
5
|
+
size?: "default" | "xs" | "sm" | "lg" | "icon" | "icon-sm" | "icon-lg" | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
|
+
type IconSize = 'icon' | 'icon-sm' | 'icon-lg';
|
|
8
|
+
type ButtonSize = Exclude<VariantProps<typeof buttonVariants>['size'], IconSize>;
|
|
9
|
+
type ButtonProps = Omit<React.ComponentProps<'button'>, 'title'> & Omit<VariantProps<typeof buttonVariants>, 'size'> & {
|
|
10
|
+
size?: ButtonSize;
|
|
11
|
+
asChild?: boolean;
|
|
12
|
+
};
|
|
13
|
+
declare function Button({ className, variant, size, asChild, ...props }: ButtonProps): React.JSX.Element;
|
|
14
|
+
export { Button, buttonVariants, type IconSize };
|
package/button.js
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Slot as SlotPrimitive } from './slot.js';
|
|
3
|
+
import { cva } from 'class-variance-authority';
|
|
4
|
+
import { cn } from './cn.js';
|
|
5
|
+
const buttonVariants = cva('inline-flex cursor-pointer items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive', {
|
|
6
|
+
variants: {
|
|
7
|
+
variant: {
|
|
8
|
+
default: 'bg-primary text-primary-foreground hover:bg-primary/90',
|
|
9
|
+
destructive: 'bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60',
|
|
10
|
+
outline: 'border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50',
|
|
11
|
+
secondary: 'bg-secondary text-secondary-foreground hover:bg-secondary/80',
|
|
12
|
+
ghost: 'hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50',
|
|
13
|
+
link: 'text-primary underline-offset-4 hover:underline',
|
|
14
|
+
},
|
|
15
|
+
size: {
|
|
16
|
+
default: 'h-9 px-4 py-2 has-[>svg]:px-3 gap-2',
|
|
17
|
+
xs: 'h-7 rounded-md py-1 px-2 has-[>svg]:px-1.5 text-xs gap-2',
|
|
18
|
+
sm: 'h-8 rounded-md py-1.5 px-3 has-[>svg]:px-2.5 gap-2',
|
|
19
|
+
lg: 'h-10 rounded-md px-6 has-[>svg]:px-4 gap-2',
|
|
20
|
+
icon: 'size-9',
|
|
21
|
+
'icon-sm': 'size-7 [&_svg]:size-3.5',
|
|
22
|
+
'icon-lg': 'size-10',
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
defaultVariants: {
|
|
26
|
+
variant: 'default',
|
|
27
|
+
size: 'default',
|
|
28
|
+
},
|
|
29
|
+
});
|
|
30
|
+
function Button({ className, variant, size, asChild = false, ...props }) {
|
|
31
|
+
const Comp = asChild ? SlotPrimitive : 'button';
|
|
32
|
+
return (_jsx(Comp, { "data-slot": 'button', className: cn(buttonVariants({ variant, size, className })), ...props }));
|
|
33
|
+
}
|
|
34
|
+
export { Button, buttonVariants };
|
package/calendar.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { DayPicker, type DayButton } from 'react-day-picker';
|
|
3
|
+
import { Button } from './button.js';
|
|
4
|
+
declare function Calendar({ className, classNames, showOutsideDays, captionLayout, buttonVariant, formatters, components, ...props }: React.ComponentProps<typeof DayPicker> & {
|
|
5
|
+
buttonVariant?: React.ComponentProps<typeof Button>['variant'];
|
|
6
|
+
}): React.JSX.Element;
|
|
7
|
+
declare function CalendarDayButton({ className, day, modifiers, ...props }: React.ComponentProps<typeof DayButton>): React.JSX.Element;
|
|
8
|
+
export { Calendar, CalendarDayButton };
|