@fiestaboard/ui 2.0.2 → 2.0.3
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.
|
@@ -6,4 +6,4 @@ declare const alertVariants: (props?: ({
|
|
|
6
6
|
declare function Alert({ className, variant, ...props }: React.ComponentProps<"div"> & VariantProps<typeof alertVariants>): React.JSX.Element;
|
|
7
7
|
declare function AlertTitle({ className, ...props }: React.ComponentProps<"h5">): React.JSX.Element;
|
|
8
8
|
declare function AlertDescription({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
9
|
-
export { Alert, AlertDescription, AlertTitle };
|
|
9
|
+
export { Alert, AlertDescription, AlertTitle, alertVariants };
|
|
@@ -5,11 +5,11 @@ import { cva as n } from "class-variance-authority";
|
|
|
5
5
|
//#region src/components/ui/alert.tsx
|
|
6
6
|
var r = n("relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7", {
|
|
7
7
|
variants: { variant: {
|
|
8
|
-
default: "bg-
|
|
9
|
-
destructive: "border-destructive text-destructive [&>svg]:text-destructive",
|
|
10
|
-
info: "border-info text-info [&>svg]:text-info",
|
|
11
|
-
success: "border-success text-success [&>svg]:text-success",
|
|
12
|
-
warning: "border-warning text-warning [&>svg]:text-warning"
|
|
8
|
+
default: "bg-muted text-foreground",
|
|
9
|
+
destructive: "border-destructive bg-destructive/8 text-destructive [&>svg]:text-destructive",
|
|
10
|
+
info: "border-info bg-info/8 text-info [&>svg]:text-info",
|
|
11
|
+
success: "border-success bg-success/8 text-success [&>svg]:text-success",
|
|
12
|
+
warning: "border-warning bg-warning/8 text-warning [&>svg]:text-warning"
|
|
13
13
|
} },
|
|
14
14
|
defaultVariants: { variant: "default" }
|
|
15
15
|
});
|
|
@@ -24,7 +24,7 @@ function i({ className: n, variant: i, ...a }) {
|
|
|
24
24
|
function a({ className: n, ...r }) {
|
|
25
25
|
return /* @__PURE__ */ t("h5", {
|
|
26
26
|
"data-slot": "alert-title",
|
|
27
|
-
className: e("mb-1 font-semibold leading-
|
|
27
|
+
className: e("mb-1 font-semibold leading-tight tracking-tight", n),
|
|
28
28
|
...r
|
|
29
29
|
});
|
|
30
30
|
}
|
|
@@ -36,6 +36,6 @@ function o({ className: n, ...r }) {
|
|
|
36
36
|
});
|
|
37
37
|
}
|
|
38
38
|
//#endregion
|
|
39
|
-
export { i as Alert, o as AlertDescription, a as AlertTitle };
|
|
39
|
+
export { i as Alert, o as AlertDescription, a as AlertTitle, r as alertVariants };
|
|
40
40
|
|
|
41
41
|
//# sourceMappingURL=alert.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alert.js","names":[],"sources":["../../../src/components/ui/alert.tsx"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"alert.js","names":[],"sources":["../../../src/components/ui/alert.tsx"],"mappings":";;;;;AAqBA,IAAM,IAAgB,EACpB,2KACA;CACE,UAAU,EACR,SAAS;EAKP,SAAS;EACT,aAAa;EACb,MAAM;EACN,SAAS;EACT,SAAS;CACX,EACF;CACA,iBAAiB,EACf,SAAS,UACX;AACF,CACF;AAEA,SAAS,EAAM,EAAE,cAAW,YAAS,GAAG,KAA2E;CACjH,OAAO,kBAAC,OAAD;EAAK,aAAU;EAAQ,MAAK;EAAQ,WAAW,EAAG,EAAc,EAAE,WAAQ,CAAC,GAAG,CAAS;EAAG,GAAI;CAAQ,CAAA;AAC/G;AAIA,SAAS,EAAW,EAAE,cAAW,GAAG,KAAqC;CACvE,OACE,kBAAC,MAAD;EACE,aAAU;EACV,WAAW,EAAG,mDAAmD,CAAS;EAC1E,GAAI;CACL,CAAA;AAEL;AAEA,SAAS,EAAiB,EAAE,cAAW,GAAG,KAAsC;CAC9E,OAAO,kBAAC,OAAD;EAAK,aAAU;EAAoB,WAAW,EAAG,iCAAiC,CAAS;EAAG,GAAI;CAAQ,CAAA;AACnH"}
|
package/dist/index.js
CHANGED
|
@@ -1,64 +1,64 @@
|
|
|
1
1
|
import { cn as e } from "./lib/utils.js";
|
|
2
2
|
import { Accordion as t, AccordionContent as n, AccordionItem as r, AccordionTrigger as i } from "./components/ui/accordion.js";
|
|
3
|
-
import { Alert as a, AlertDescription as o, AlertTitle as s } from "./components/ui/alert.js";
|
|
4
|
-
import { Button as
|
|
5
|
-
import { AlertDialog as
|
|
6
|
-
import { Aurora as
|
|
7
|
-
import { Badge as
|
|
8
|
-
import { Box as
|
|
9
|
-
import { Card as
|
|
10
|
-
import { Checkbox as
|
|
11
|
-
import { Code as
|
|
12
|
-
import { Collapsible as
|
|
13
|
-
import { Dialog as
|
|
14
|
-
import { DropdownMenu as
|
|
15
|
-
import { EmptyState as
|
|
16
|
-
import { Flex as
|
|
17
|
-
import { Grid as
|
|
18
|
-
import { Heading as
|
|
19
|
-
import { Input as
|
|
20
|
-
import { Label as
|
|
21
|
-
import { List as
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import { ScrollArea as
|
|
25
|
-
import { Select as
|
|
26
|
-
import { Sheet as
|
|
27
|
-
import { Skeleton as
|
|
28
|
-
import { Slider as
|
|
29
|
-
import { Stack as
|
|
30
|
-
import { Switch as
|
|
31
|
-
import { Table as
|
|
32
|
-
import { Tabs as
|
|
33
|
-
import { Text as
|
|
34
|
-
import { TextLink as
|
|
35
|
-
import { Textarea as
|
|
36
|
-
import { Tooltip as
|
|
37
|
-
import { BoardIcon as
|
|
38
|
-
import { BoardSelector as
|
|
39
|
-
import { FIESTA_ICON_DATA_URI as
|
|
40
|
-
import { FiestaLogo as
|
|
41
|
-
import { LanguageSelector as
|
|
42
|
-
import { MainContent as
|
|
43
|
-
import { PageHeader as
|
|
44
|
-
import { PageLayout as
|
|
45
|
-
import { PageToolbar as
|
|
46
|
-
import { SidebarAurora as
|
|
47
|
-
import { SidebarAuroraHorizontal as
|
|
48
|
-
import { Sidebar as
|
|
49
|
-
import { SkipToContent as
|
|
50
|
-
import { ThemeToggle as
|
|
51
|
-
import { HIDE_FESTIVE_COOKIE as
|
|
52
|
-
import { ALL_COLOR_CODES as
|
|
53
|
-
import { BOARD_CHARS as
|
|
54
|
-
import { DEVICE_DIMENSIONS as
|
|
55
|
-
import { BoardDisplay as
|
|
56
|
-
import { BoardTeaser as
|
|
57
|
-
import { ScaledBoardDisplay as
|
|
58
|
-
import { StaticBoardDisplay as
|
|
59
|
-
import { DEFAULT_SHAPE_LABELS as
|
|
60
|
-
import { BoardShowcase as
|
|
61
|
-
import { PLUGIN_CATEGORIES as
|
|
62
|
-
import { ScaledBoardTeaser as
|
|
63
|
-
import { PluginCard as
|
|
64
|
-
export {
|
|
3
|
+
import { Alert as a, AlertDescription as o, AlertTitle as s, alertVariants as c } from "./components/ui/alert.js";
|
|
4
|
+
import { Button as l, buttonVariants as u } from "./components/ui/button.js";
|
|
5
|
+
import { AlertDialog as d, AlertDialogAction as f, AlertDialogCancel as p, AlertDialogContent as m, AlertDialogDescription as h, AlertDialogFooter as g, AlertDialogHeader as _, AlertDialogOverlay as v, AlertDialogPortal as y, AlertDialogTitle as b, AlertDialogTrigger as x } from "./components/ui/alert-dialog.js";
|
|
6
|
+
import { Aurora as S } from "./components/ui/aurora.js";
|
|
7
|
+
import { Badge as C, badgeVariants as w } from "./components/ui/badge.js";
|
|
8
|
+
import { Box as T } from "./components/ui/box.js";
|
|
9
|
+
import { Card as E, CardAction as D, CardContent as O, CardDescription as k, CardFooter as A, CardHeader as j, CardTitle as M } from "./components/ui/card.js";
|
|
10
|
+
import { Checkbox as N } from "./components/ui/checkbox.js";
|
|
11
|
+
import { Code as P } from "./components/ui/code.js";
|
|
12
|
+
import { Collapsible as F, CollapsibleContent as I, CollapsibleTrigger as L } from "./components/ui/collapsible.js";
|
|
13
|
+
import { Dialog as R, DialogClose as z, DialogContent as B, DialogDescription as V, DialogFooter as H, DialogHeader as U, DialogOverlay as W, DialogPortal as G, DialogTitle as K, DialogTrigger as q } from "./components/ui/dialog.js";
|
|
14
|
+
import { DropdownMenu as J, DropdownMenuCheckboxItem as Y, DropdownMenuContent as X, DropdownMenuGroup as Z, DropdownMenuItem as Q, DropdownMenuLabel as $, DropdownMenuPortal as ee, DropdownMenuRadioGroup as te, DropdownMenuRadioItem as ne, DropdownMenuSeparator as re, DropdownMenuShortcut as ie, DropdownMenuSub as ae, DropdownMenuSubContent as oe, DropdownMenuSubTrigger as se, DropdownMenuTrigger as ce } from "./components/ui/dropdown-menu.js";
|
|
15
|
+
import { EmptyState as le } from "./components/ui/empty-state.js";
|
|
16
|
+
import { Flex as ue, flexVariants as de } from "./components/ui/flex.js";
|
|
17
|
+
import { Grid as fe, gridVariants as pe } from "./components/ui/grid.js";
|
|
18
|
+
import { Heading as me, headingVariants as he } from "./components/ui/heading.js";
|
|
19
|
+
import { Input as ge } from "./components/ui/input.js";
|
|
20
|
+
import { Label as _e } from "./components/ui/label.js";
|
|
21
|
+
import { List as ve, ListItem as ye, listVariants as be } from "./components/ui/list.js";
|
|
22
|
+
import xe from "./components/ui/react-bits/decrypted-text.js";
|
|
23
|
+
import Se from "./components/ui/react-bits/fade-content.js";
|
|
24
|
+
import { ScrollArea as Ce, ScrollBar as we } from "./components/ui/scroll-area.js";
|
|
25
|
+
import { Select as Te, SelectContent as Ee, SelectGroup as De, SelectItem as Oe, SelectLabel as ke, SelectScrollDownButton as Ae, SelectScrollUpButton as je, SelectSeparator as Me, SelectTrigger as Ne, SelectValue as Pe } from "./components/ui/select.js";
|
|
26
|
+
import { Sheet as Fe, SheetClose as Ie, SheetContent as Le, SheetDescription as Re, SheetFooter as ze, SheetHeader as Be, SheetOverlay as Ve, SheetPortal as He, SheetTitle as Ue, SheetTrigger as We } from "./components/ui/sheet.js";
|
|
27
|
+
import { Skeleton as Ge } from "./components/ui/skeleton.js";
|
|
28
|
+
import { Slider as Ke } from "./components/ui/slider.js";
|
|
29
|
+
import { Stack as qe, stackVariants as Je } from "./components/ui/stack.js";
|
|
30
|
+
import { Switch as Ye } from "./components/ui/switch.js";
|
|
31
|
+
import { Table as Xe, TableBody as Ze, TableCell as Qe, TableHead as $e, TableHeader as et, TableRow as tt } from "./components/ui/table.js";
|
|
32
|
+
import { Tabs as nt, TabsContent as rt, TabsList as it, TabsTrigger as at } from "./components/ui/tabs.js";
|
|
33
|
+
import { Text as ot, textVariants as st } from "./components/ui/text.js";
|
|
34
|
+
import { TextLink as ct } from "./components/ui/text-link.js";
|
|
35
|
+
import { Textarea as lt } from "./components/ui/textarea.js";
|
|
36
|
+
import { Tooltip as ut, TooltipContent as dt, TooltipProvider as ft, TooltipTrigger as pt } from "./components/ui/tooltip.js";
|
|
37
|
+
import { BoardIcon as mt } from "./components/chrome/board-icon.js";
|
|
38
|
+
import { BoardSelector as ht } from "./components/chrome/board-selector.js";
|
|
39
|
+
import { FIESTA_ICON_DATA_URI as gt, FIESTA_ICON_PALETTE as _t, FIESTA_ICON_SVG as vt, FiestaIcon as yt } from "./components/chrome/fiesta-icon.js";
|
|
40
|
+
import { FiestaLogo as bt } from "./components/chrome/fiesta-logo.js";
|
|
41
|
+
import { LanguageSelector as xt } from "./components/chrome/language-selector.js";
|
|
42
|
+
import { MainContent as St } from "./components/chrome/main-content.js";
|
|
43
|
+
import { PageHeader as Ct, PageIconGradientDefs as wt } from "./components/chrome/page-header.js";
|
|
44
|
+
import { PageLayout as Tt } from "./components/chrome/page-layout.js";
|
|
45
|
+
import { PageToolbar as Et } from "./components/chrome/page-toolbar.js";
|
|
46
|
+
import { SidebarAurora as Dt } from "./components/seasons/sidebar-aurora.js";
|
|
47
|
+
import { SidebarAuroraHorizontal as Ot } from "./components/seasons/sidebar-aurora-horizontal.js";
|
|
48
|
+
import { Sidebar as kt } from "./components/chrome/sidebar.js";
|
|
49
|
+
import { SkipToContent as At } from "./components/chrome/skip-to-content.js";
|
|
50
|
+
import { ThemeToggle as jt } from "./components/chrome/theme-toggle.js";
|
|
51
|
+
import { HIDE_FESTIVE_COOKIE as Mt, PRIDE_SEASON as Nt, SEASONS as Pt, fireSeasonBurst as Ft, getActiveSeason as It, readCookieString as Lt, shouldShowPride as Rt, useActiveSeason as zt, usePrideActive as Bt } from "./lib/seasons.js";
|
|
52
|
+
import { ALL_COLOR_CODES as Vt, AVAILABLE_COLORS as Ht, BOARD_COLORS as Ut, COLOR_CODE_MAP as Wt, COLOR_DISPLAY as Gt, getBoardColor as Kt, isValidBoardColor as qt, resolveColorCode as Jt } from "./lib/board-colors.js";
|
|
53
|
+
import { BOARD_CHARS as Yt, EXTRA_CHARS as Xt, getCharFromToken as Zt, getCharIndex as Qt, isColorTile as $t, messageToGrid as en, parseLine as tn, tokensEqual as nn } from "./lib/board-characters.js";
|
|
54
|
+
import { DEVICE_DIMENSIONS as rn, MAX_NOTES_PER_AXIS as an, NOTE_COLS as on, NOTE_ROWS as sn, isNoteArray as cn, noteArrayDimensions as ln, resolveDimensions as un } from "./lib/board-dimensions.js";
|
|
55
|
+
import { BoardDisplay as dn } from "./components/board/board-display.js";
|
|
56
|
+
import { BoardTeaser as fn } from "./components/board/board-teaser.js";
|
|
57
|
+
import { ScaledBoardDisplay as pn } from "./components/board/scaled-board-display.js";
|
|
58
|
+
import { StaticBoardDisplay as mn } from "./components/board/static-board-display.js";
|
|
59
|
+
import { DEFAULT_SHAPE_LABELS as hn, previewLabel as gn, previewLabels as _n, previewMessage as vn } from "./lib/board-previews.js";
|
|
60
|
+
import { BoardShowcase as yn, DEFAULT_SHOWCASE_LABELS as bn } from "./components/plugin/board-showcase.js";
|
|
61
|
+
import { PLUGIN_CATEGORIES as xn, PluginCategoryBadge as Sn } from "./components/plugin/plugin-category-badge.js";
|
|
62
|
+
import { ScaledBoardTeaser as Cn } from "./components/plugin/scaled-board-teaser.js";
|
|
63
|
+
import { PluginCard as wn } from "./components/plugin/plugin-card.js";
|
|
64
|
+
export { Vt as ALL_COLOR_CODES, Ht as AVAILABLE_COLORS, t as Accordion, n as AccordionContent, r as AccordionItem, i as AccordionTrigger, a as Alert, o as AlertDescription, d as AlertDialog, f as AlertDialogAction, p as AlertDialogCancel, m as AlertDialogContent, h as AlertDialogDescription, g as AlertDialogFooter, _ as AlertDialogHeader, v as AlertDialogOverlay, y as AlertDialogPortal, b as AlertDialogTitle, x as AlertDialogTrigger, s as AlertTitle, S as Aurora, Yt as BOARD_CHARS, Ut as BOARD_COLORS, C as Badge, dn as BoardDisplay, mt as BoardIcon, ht as BoardSelector, yn as BoardShowcase, fn as BoardTeaser, T as Box, l as Button, Wt as COLOR_CODE_MAP, Gt as COLOR_DISPLAY, E as Card, D as CardAction, O as CardContent, k as CardDescription, A as CardFooter, j as CardHeader, M as CardTitle, N as Checkbox, P as Code, F as Collapsible, I as CollapsibleContent, L as CollapsibleTrigger, hn as DEFAULT_SHAPE_LABELS, bn as DEFAULT_SHOWCASE_LABELS, rn as DEVICE_DIMENSIONS, xe as DecryptedText, R as Dialog, z as DialogClose, B as DialogContent, V as DialogDescription, H as DialogFooter, U as DialogHeader, W as DialogOverlay, G as DialogPortal, K as DialogTitle, q as DialogTrigger, J as DropdownMenu, Y as DropdownMenuCheckboxItem, X as DropdownMenuContent, Z as DropdownMenuGroup, Q as DropdownMenuItem, $ as DropdownMenuLabel, ee as DropdownMenuPortal, te as DropdownMenuRadioGroup, ne as DropdownMenuRadioItem, re as DropdownMenuSeparator, ie as DropdownMenuShortcut, ae as DropdownMenuSub, oe as DropdownMenuSubContent, se as DropdownMenuSubTrigger, ce as DropdownMenuTrigger, Xt as EXTRA_CHARS, le as EmptyState, gt as FIESTA_ICON_DATA_URI, _t as FIESTA_ICON_PALETTE, vt as FIESTA_ICON_SVG, Se as FadeContent, yt as FiestaIcon, bt as FiestaLogo, ue as Flex, fe as Grid, Mt as HIDE_FESTIVE_COOKIE, me as Heading, ge as Input, _e as Label, xt as LanguageSelector, ve as List, ye as ListItem, an as MAX_NOTES_PER_AXIS, St as MainContent, on as NOTE_COLS, sn as NOTE_ROWS, xn as PLUGIN_CATEGORIES, Nt as PRIDE_SEASON, Ct as PageHeader, wt as PageIconGradientDefs, Tt as PageLayout, Et as PageToolbar, wn as PluginCard, Sn as PluginCategoryBadge, Pt as SEASONS, pn as ScaledBoardDisplay, Cn as ScaledBoardTeaser, Ce as ScrollArea, we as ScrollBar, Te as Select, Ee as SelectContent, De as SelectGroup, Oe as SelectItem, ke as SelectLabel, Ae as SelectScrollDownButton, je as SelectScrollUpButton, Me as SelectSeparator, Ne as SelectTrigger, Pe as SelectValue, Fe as Sheet, Ie as SheetClose, Le as SheetContent, Re as SheetDescription, ze as SheetFooter, Be as SheetHeader, Ve as SheetOverlay, He as SheetPortal, Ue as SheetTitle, We as SheetTrigger, kt as Sidebar, Dt as SidebarAurora, Ot as SidebarAuroraHorizontal, Ge as Skeleton, At as SkipToContent, Ke as Slider, qe as Stack, mn as StaticBoardDisplay, Ye as Switch, Xe as Table, Ze as TableBody, Qe as TableCell, $e as TableHead, et as TableHeader, tt as TableRow, nt as Tabs, rt as TabsContent, it as TabsList, at as TabsTrigger, ot as Text, ct as TextLink, lt as Textarea, jt as ThemeToggle, ut as Tooltip, dt as TooltipContent, ft as TooltipProvider, pt as TooltipTrigger, c as alertVariants, w as badgeVariants, u as buttonVariants, e as cn, Ft as fireSeasonBurst, de as flexVariants, It as getActiveSeason, Kt as getBoardColor, Zt as getCharFromToken, Qt as getCharIndex, pe as gridVariants, he as headingVariants, $t as isColorTile, cn as isNoteArray, qt as isValidBoardColor, be as listVariants, en as messageToGrid, ln as noteArrayDimensions, tn as parseLine, gn as previewLabel, _n as previewLabels, vn as previewMessage, Lt as readCookieString, Jt as resolveColorCode, un as resolveDimensions, Rt as shouldShowPride, Je as stackVariants, st as textVariants, nn as tokensEqual, zt as useActiveSeason, Bt as usePrideActive };
|