beez-ui 2.7.0 → 3.0.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/CHANGELOG.md +78 -0
- package/README.md +43 -13
- package/THIRD_PARTY_NOTICES.md +1 -1
- package/dist/components/account-menu.d.ts +4 -3
- package/dist/components/account-menu.js +63 -54
- package/dist/components/alert.d.ts +15 -15
- package/dist/components/alert.js +289 -270
- package/dist/components/animated-theme-toggler.js +1 -1
- package/dist/components/avatar.d.ts +56 -31
- package/dist/components/avatar.js +394 -277
- package/dist/components/badge.d.ts +8 -28
- package/dist/components/badge.js +55 -108
- package/dist/components/calendar.d.ts +36 -26
- package/dist/components/calendar.js +132 -1227
- package/dist/components/card.d.ts +36 -25
- package/dist/components/card.js +895 -72
- package/dist/components/carousel.d.ts +63 -47
- package/dist/components/carousel.js +496 -777
- package/dist/components/data-table.d.ts +5 -4
- package/dist/components/data-table.js +7 -6
- package/dist/components/dialog-surface.d.ts +23 -1
- package/dist/components/dialog-surface.js +99 -3
- package/dist/components/dialog.d.ts +80 -45
- package/dist/components/dialog.js +258 -503
- package/dist/components/dropdown-menu.d.ts +56 -73
- package/dist/components/dropdown-menu.js +79 -714
- package/dist/components/field.d.ts +3 -1
- package/dist/components/field.js +49 -39
- package/dist/components/filter-presets-bar.js +2 -2
- package/dist/components/filter-query-bar.js +1 -1
- package/dist/components/hover-card.d.ts +42 -41
- package/dist/components/hover-card.js +57 -483
- package/dist/components/pagination.d.ts +53 -31
- package/dist/components/pagination.js +176 -412
- package/dist/components/popover.d.ts +11 -23
- package/dist/components/popover.js +19 -304
- package/dist/components/{alert-dialog.d.ts → primitives/alert-dialog.d.ts} +17 -5
- package/dist/components/{alert-dialog.js → primitives/alert-dialog.js} +102 -54
- package/dist/components/primitives/avatar.d.ts +46 -0
- package/dist/components/primitives/avatar.js +267 -0
- package/dist/components/primitives/calendar.d.ts +37 -0
- package/dist/components/primitives/calendar.js +1250 -0
- package/dist/components/primitives/carousel.d.ts +106 -0
- package/dist/components/primitives/carousel.js +928 -0
- package/dist/components/primitives/dialog.d.ts +62 -0
- package/dist/components/primitives/dialog.js +490 -0
- package/dist/components/primitives/dropdown-menu-items.d.ts +59 -0
- package/dist/components/primitives/dropdown-menu-items.js +265 -0
- package/dist/components/primitives/dropdown-menu.d.ts +64 -0
- package/dist/components/primitives/dropdown-menu.js +557 -0
- package/dist/components/primitives/hover-card.d.ts +50 -0
- package/dist/components/primitives/hover-card.js +507 -0
- package/dist/components/primitives/pagination.d.ts +65 -0
- package/dist/components/primitives/pagination.js +373 -0
- package/dist/components/primitives/popover.d.ts +22 -0
- package/dist/components/primitives/popover.js +213 -0
- package/dist/components/primitives/select.d.ts +36 -0
- package/dist/components/primitives/select.js +407 -0
- package/dist/components/primitives/tooltip.d.ts +30 -0
- package/dist/components/primitives/tooltip.js +277 -0
- package/dist/components/radio-group.d.ts +30 -17
- package/dist/components/radio-group.js +266 -315
- package/dist/components/rich-link-editor.js +2 -2
- package/dist/components/select.d.ts +51 -42
- package/dist/components/select.js +163 -495
- package/dist/components/skeleton.d.ts +16 -15
- package/dist/components/skeleton.js +99 -205
- package/dist/components/split-button.js +1 -1
- package/dist/components/switch.d.ts +3 -6
- package/dist/components/switch.js +163 -170
- package/dist/components/tabs.d.ts +3 -11
- package/dist/components/tabs.js +61 -75
- package/dist/components/themed-toaster.d.ts +1 -1
- package/dist/components/themed-toaster.js +1 -1
- package/dist/components/toaster.d.ts +1 -1
- package/dist/components/toaster.js +1 -1
- package/dist/components/tooltip.d.ts +36 -31
- package/dist/components/tooltip.js +44 -284
- package/dist/constants/alert.d.ts +5 -1
- package/dist/constants/alert.js +5 -1
- package/dist/constants/avatar.d.ts +24 -1
- package/dist/constants/avatar.js +19 -0
- package/dist/constants/calendar.d.ts +12 -0
- package/dist/constants/calendar.js +12 -0
- package/dist/constants/card.d.ts +23 -0
- package/dist/constants/card.js +20 -0
- package/dist/constants/carousel.d.ts +31 -13
- package/dist/constants/carousel.js +32 -11
- package/dist/constants/dialog.d.ts +6 -1
- package/dist/constants/dialog.js +5 -1
- package/dist/constants/dropdown-menu.d.ts +2 -2
- package/dist/constants/dropdown-menu.js +2 -2
- package/dist/constants/pagination.d.ts +13 -2
- package/dist/constants/pagination.js +13 -2
- package/dist/constants/select.d.ts +4 -2
- package/dist/constants/select.js +4 -2
- package/dist/constants/switch.d.ts +5 -16
- package/dist/constants/switch.js +6 -14
- package/dist/hooks/use-today.d.ts +7 -0
- package/dist/hooks/use-today.js +50 -0
- package/dist/hooks.d.ts +1 -0
- package/dist/hooks.js +1 -0
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/motion/glide-indicator.d.ts +1 -1
- package/dist/motion/glide-indicator.js +1 -1
- package/dist/motion/presence.d.ts +0 -1
- package/dist/motion/presence.js +0 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -6
|
@@ -1,27 +1,38 @@
|
|
|
1
|
+
import type { ComponentProps, ReactNode } from "react";
|
|
2
|
+
import type { CardHeadingLevel } from "../constants/card.js";
|
|
3
|
+
export type { CardHeadingLevel };
|
|
4
|
+
export type CardProps = Omit<ComponentProps<"article">, "title"> & {
|
|
5
|
+
/** Card heading. Without it the card renders only its surface and children. With `details` it opens the quick look. */
|
|
6
|
+
title?: ReactNode;
|
|
7
|
+
/** Supporting line under the title. */
|
|
8
|
+
description?: ReactNode;
|
|
9
|
+
/** Image or visual at the top. Zooms slightly on hover. */
|
|
10
|
+
media?: ReactNode;
|
|
11
|
+
/** Trailing control of the byline row, such as a button. */
|
|
12
|
+
action?: ReactNode;
|
|
13
|
+
/** Small leading visual of the byline, such as the owner's avatar. */
|
|
14
|
+
avatar?: ReactNode;
|
|
15
|
+
/** Who the card belongs to, shown in the byline. */
|
|
16
|
+
meta?: ReactNode;
|
|
17
|
+
/** Short status under the meta, such as "Actualizada hace 2 horas". Changes roll in word by word and are announced politely. */
|
|
18
|
+
status?: string;
|
|
19
|
+
/** Quick look content. With a `title`, the card opens into a larger dialog that grows out of it. */
|
|
20
|
+
details?: ReactNode;
|
|
21
|
+
/** Controlled quick look state. */
|
|
22
|
+
open?: boolean;
|
|
23
|
+
/** Initial quick look state when uncontrolled. */
|
|
24
|
+
defaultOpen?: boolean;
|
|
25
|
+
/** Called when the quick look opens or closes. */
|
|
26
|
+
onOpenChange?: (open: boolean) => void;
|
|
27
|
+
/** Content rendered after the body and byline, such as a row of actions. */
|
|
28
|
+
footer?: ReactNode;
|
|
29
|
+
/** Heading level of the title. */
|
|
30
|
+
headingLevel?: CardHeadingLevel;
|
|
31
|
+
};
|
|
1
32
|
/**
|
|
2
|
-
*
|
|
3
|
-
* Arc's
|
|
4
|
-
*
|
|
5
|
-
* Arc's quick look is not part of it.
|
|
33
|
+
* A content card with optional media, byline, action and footer that can grow into a quick look dialog.
|
|
34
|
+
* @param props - Arc's card content and quick look state, the heading level, a footer and native article attributes.
|
|
35
|
+
* @returns The card article, wrapped in its quick look dialog when `details` is set.
|
|
6
36
|
*/
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
* Card surface. The outline is a 1px ring in the border token, so the hover shadow can stack on it, and isolation
|
|
10
|
-
* keeps the rounded clip on media while the card lifts (Safari drops it otherwise).
|
|
11
|
-
*/
|
|
12
|
-
declare function Card({ className, size, ...props }: React.ComponentProps<"div"> & {
|
|
13
|
-
size?: "default" | "sm";
|
|
14
|
-
}): React.JSX.Element;
|
|
15
|
-
/**
|
|
16
|
-
* Arc's card media: a muted frame for a photo or illustration that zooms in slowly while the card is pointed at
|
|
17
|
-
* and eases back a little faster. Place it first to sit flush with the top edge.
|
|
18
|
-
*/
|
|
19
|
-
declare function CardMedia({ className, children, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
20
|
-
declare function CardHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
21
|
-
declare function CardTitle({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
22
|
-
declare function CardDescription({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
23
|
-
declare function CardAction({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
24
|
-
declare function CardContent({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
25
|
-
/** Arc's footer row: a byline or meta on the start side and actions on the end, without a tinted band. */
|
|
26
|
-
declare function CardFooter({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
27
|
-
export { Card, CardHeader, CardFooter, CardTitle, CardAction, CardDescription, CardContent, CardMedia, };
|
|
37
|
+
declare function Card({ title, description, media, action, avatar, meta, status, details, open: openProp, defaultOpen, onOpenChange, footer, headingLevel, children, className, style, ref, ...props }: CardProps): import("react").JSX.Element;
|
|
38
|
+
export { Card };
|