@fiestaboard/ui 1.6.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.
- package/LICENSE +21 -0
- package/README.md +153 -0
- package/dist/components/board/board-display.d.ts +35 -0
- package/dist/components/board/board-display.js +514 -0
- package/dist/components/board/board-display.js.map +1 -0
- package/dist/components/board/board-teaser.d.ts +10 -0
- package/dist/components/board/board-teaser.js +110 -0
- package/dist/components/board/board-teaser.js.map +1 -0
- package/dist/components/board/scaled-board-display.d.ts +37 -0
- package/dist/components/board/scaled-board-display.js +118 -0
- package/dist/components/board/scaled-board-display.js.map +1 -0
- package/dist/components/board/static-board-display.d.ts +17 -0
- package/dist/components/board/static-board-display.js +140 -0
- package/dist/components/board/static-board-display.js.map +1 -0
- package/dist/components/chrome/board-icon.d.ts +11 -0
- package/dist/components/chrome/board-icon.js +31 -0
- package/dist/components/chrome/board-icon.js.map +1 -0
- package/dist/components/chrome/board-selector.d.ts +30 -0
- package/dist/components/chrome/board-selector.js +37 -0
- package/dist/components/chrome/board-selector.js.map +1 -0
- package/dist/components/chrome/fiesta-icon.d.ts +28 -0
- package/dist/components/chrome/fiesta-icon.js +129 -0
- package/dist/components/chrome/fiesta-icon.js.map +1 -0
- package/dist/components/chrome/fiesta-logo.d.ts +6 -0
- package/dist/components/chrome/fiesta-logo.js +20 -0
- package/dist/components/chrome/fiesta-logo.js.map +1 -0
- package/dist/components/chrome/language-selector.d.ts +21 -0
- package/dist/components/chrome/language-selector.js +29 -0
- package/dist/components/chrome/language-selector.js.map +1 -0
- package/dist/components/chrome/main-content.d.ts +28 -0
- package/dist/components/chrome/main-content.js +33 -0
- package/dist/components/chrome/main-content.js.map +1 -0
- package/dist/components/chrome/page-header.d.ts +23 -0
- package/dist/components/chrome/page-header.js +69 -0
- package/dist/components/chrome/page-header.js.map +1 -0
- package/dist/components/chrome/page-layout.d.ts +10 -0
- package/dist/components/chrome/page-layout.js +17 -0
- package/dist/components/chrome/page-layout.js.map +1 -0
- package/dist/components/chrome/page-toolbar.d.ts +7 -0
- package/dist/components/chrome/page-toolbar.js +21 -0
- package/dist/components/chrome/page-toolbar.js.map +1 -0
- package/dist/components/chrome/sidebar.d.ts +83 -0
- package/dist/components/chrome/sidebar.js +318 -0
- package/dist/components/chrome/sidebar.js.map +1 -0
- package/dist/components/chrome/skip-to-content.d.ts +8 -0
- package/dist/components/chrome/skip-to-content.js +15 -0
- package/dist/components/chrome/skip-to-content.js.map +1 -0
- package/dist/components/chrome/theme-toggle.d.ts +22 -0
- package/dist/components/chrome/theme-toggle.js +28 -0
- package/dist/components/chrome/theme-toggle.js.map +1 -0
- package/dist/components/seasons/aurora-canvas.d.ts +22 -0
- package/dist/components/seasons/aurora-canvas.js +88 -0
- package/dist/components/seasons/aurora-canvas.js.map +1 -0
- package/dist/components/seasons/sidebar-aurora-horizontal.d.ts +3 -0
- package/dist/components/seasons/sidebar-aurora-horizontal.js +47 -0
- package/dist/components/seasons/sidebar-aurora-horizontal.js.map +1 -0
- package/dist/components/seasons/sidebar-aurora.d.ts +3 -0
- package/dist/components/seasons/sidebar-aurora.js +57 -0
- package/dist/components/seasons/sidebar-aurora.js.map +1 -0
- package/dist/components/ui/accordion.d.ts +16 -0
- package/dist/components/ui/accordion.js +55 -0
- package/dist/components/ui/accordion.js.map +1 -0
- package/dist/components/ui/alert-dialog.d.ts +16 -0
- package/dist/components/ui/alert-dialog.js +78 -0
- package/dist/components/ui/alert-dialog.js.map +1 -0
- package/dist/components/ui/alert.d.ts +9 -0
- package/dist/components/ui/alert.js +41 -0
- package/dist/components/ui/alert.js.map +1 -0
- package/dist/components/ui/aurora.d.ts +9 -0
- package/dist/components/ui/aurora.js +105 -0
- package/dist/components/ui/aurora.js.map +1 -0
- package/dist/components/ui/badge.d.ts +9 -0
- package/dist/components/ui/badge.js +35 -0
- package/dist/components/ui/badge.js.map +1 -0
- package/dist/components/ui/box.d.ts +20 -0
- package/dist/components/ui/box.js +14 -0
- package/dist/components/ui/box.js.map +1 -0
- package/dist/components/ui/button.d.ts +10 -0
- package/dist/components/ui/button.js +52 -0
- package/dist/components/ui/button.js.map +1 -0
- package/dist/components/ui/card.d.ts +11 -0
- package/dist/components/ui/card.js +57 -0
- package/dist/components/ui/card.js.map +1 -0
- package/dist/components/ui/checkbox.d.ts +4 -0
- package/dist/components/ui/checkbox.js +16 -0
- package/dist/components/ui/checkbox.js.map +1 -0
- package/dist/components/ui/code.d.ts +8 -0
- package/dist/components/ui/code.js +15 -0
- package/dist/components/ui/code.js.map +1 -0
- package/dist/components/ui/collapsible.d.ts +8 -0
- package/dist/components/ui/collapsible.js +28 -0
- package/dist/components/ui/collapsible.js.map +1 -0
- package/dist/components/ui/dialog.d.ts +17 -0
- package/dist/components/ui/dialog.js +77 -0
- package/dist/components/ui/dialog.js.map +1 -0
- package/dist/components/ui/dropdown-menu.d.ts +32 -0
- package/dist/components/ui/dropdown-menu.js +129 -0
- package/dist/components/ui/dropdown-menu.js.map +1 -0
- package/dist/components/ui/empty-state.d.ts +23 -0
- package/dist/components/ui/empty-state.js +49 -0
- package/dist/components/ui/empty-state.js.map +1 -0
- package/dist/components/ui/flex.d.ts +24 -0
- package/dist/components/ui/flex.js +61 -0
- package/dist/components/ui/flex.js.map +1 -0
- package/dist/components/ui/grid.d.ts +20 -0
- package/dist/components/ui/grid.js +77 -0
- package/dist/components/ui/grid.js.map +1 -0
- package/dist/components/ui/heading.d.ts +18 -0
- package/dist/components/ui/heading.js +26 -0
- package/dist/components/ui/heading.js.map +1 -0
- package/dist/components/ui/input.d.ts +4 -0
- package/dist/components/ui/input.js +16 -0
- package/dist/components/ui/input.js.map +1 -0
- package/dist/components/ui/label.d.ts +4 -0
- package/dist/components/ui/label.js +15 -0
- package/dist/components/ui/label.js.map +1 -0
- package/dist/components/ui/list.d.ts +25 -0
- package/dist/components/ui/list.js +46 -0
- package/dist/components/ui/list.js.map +1 -0
- package/dist/components/ui/react-bits/decrypted-text.d.ts +14 -0
- package/dist/components/ui/react-bits/decrypted-text.js +88 -0
- package/dist/components/ui/react-bits/decrypted-text.js.map +1 -0
- package/dist/components/ui/react-bits/fade-content.d.ts +11 -0
- package/dist/components/ui/react-bits/fade-content.js +48 -0
- package/dist/components/ui/react-bits/fade-content.js.map +1 -0
- package/dist/components/ui/scroll-area.d.ts +5 -0
- package/dist/components/ui/scroll-area.js +39 -0
- package/dist/components/ui/scroll-area.js.map +1 -0
- package/dist/components/ui/select.d.ts +26 -0
- package/dist/components/ui/select.js +132 -0
- package/dist/components/ui/select.js.map +1 -0
- package/dist/components/ui/sheet.d.ts +29 -0
- package/dist/components/ui/sheet.js +114 -0
- package/dist/components/ui/sheet.js.map +1 -0
- package/dist/components/ui/skeleton.d.ts +2 -0
- package/dist/components/ui/skeleton.js +14 -0
- package/dist/components/ui/skeleton.js.map +1 -0
- package/dist/components/ui/slider.d.ts +9 -0
- package/dist/components/ui/slider.js +39 -0
- package/dist/components/ui/slider.js.map +1 -0
- package/dist/components/ui/stack.d.ts +16 -0
- package/dist/components/ui/stack.js +44 -0
- package/dist/components/ui/stack.js.map +1 -0
- package/dist/components/ui/switch.d.ts +4 -0
- package/dist/components/ui/switch.js +24 -0
- package/dist/components/ui/switch.js.map +1 -0
- package/dist/components/ui/table.d.ts +13 -0
- package/dist/components/ui/table.js +54 -0
- package/dist/components/ui/table.js.map +1 -0
- package/dist/components/ui/tabs.d.ts +7 -0
- package/dist/components/ui/tabs.js +37 -0
- package/dist/components/ui/tabs.js.map +1 -0
- package/dist/components/ui/text-link.d.ts +9 -0
- package/dist/components/ui/text-link.js +15 -0
- package/dist/components/ui/text-link.js.map +1 -0
- package/dist/components/ui/text.d.ts +22 -0
- package/dist/components/ui/text.js +48 -0
- package/dist/components/ui/text.js.map +1 -0
- package/dist/components/ui/textarea.d.ts +3 -0
- package/dist/components/ui/textarea.js +15 -0
- package/dist/components/ui/textarea.js.map +1 -0
- package/dist/components/ui/tooltip.d.ts +16 -0
- package/dist/components/ui/tooltip.js +38 -0
- package/dist/components/ui/tooltip.js.map +1 -0
- package/dist/fonts.css +16 -0
- package/dist/index.d.ts +66 -0
- package/dist/index.js +59 -0
- package/dist/lib/board-characters.d.ts +55 -0
- package/dist/lib/board-characters.js +151 -0
- package/dist/lib/board-characters.js.map +1 -0
- package/dist/lib/board-colors.d.ts +48 -0
- package/dist/lib/board-colors.js +93 -0
- package/dist/lib/board-colors.js.map +1 -0
- package/dist/lib/board-dimensions.d.ts +41 -0
- package/dist/lib/board-dimensions.js +38 -0
- package/dist/lib/board-dimensions.js.map +1 -0
- package/dist/lib/board-metrics.d.ts +19 -0
- package/dist/lib/board-metrics.js +22 -0
- package/dist/lib/board-metrics.js.map +1 -0
- package/dist/lib/seasons-drafts.d.ts +26 -0
- package/dist/lib/seasons-drafts.js +106 -0
- package/dist/lib/seasons-drafts.js.map +1 -0
- package/dist/lib/seasons.d.ts +52 -0
- package/dist/lib/seasons.js +59 -0
- package/dist/lib/seasons.js.map +1 -0
- package/dist/lib/select-items.d.ts +29 -0
- package/dist/lib/select-items.js +35 -0
- package/dist/lib/select-items.js.map +1 -0
- package/dist/lib/utils.d.ts +2 -0
- package/dist/lib/utils.js +11 -0
- package/dist/lib/utils.js.map +1 -0
- package/dist/seasons/christmas.css +64 -0
- package/dist/seasons/easter.css +62 -0
- package/dist/seasons/fathers-day.css +62 -0
- package/dist/seasons/halloween.css +69 -0
- package/dist/seasons/mothers-day.css +63 -0
- package/dist/seasons/new-year.css +66 -0
- package/dist/seasons/pride.css +68 -0
- package/dist/seasons/thanksgiving.css +64 -0
- package/dist/theme.css +1174 -0
- package/package.json +108 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select.js","names":[],"sources":["../../../src/components/ui/select.tsx"],"mappings":";;;;;;;;AAcA,SAAS,EAAmB,GAA8E;CACxG,IAAM,IAA2D,CAAC,GAC5D,KAAQ,MAA0B;EACtC,EAAM,SAAS,QAAQ,IAAO,MAAU;GACtC,IAAI,CAAC,EAAM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AC7E,kBAAC,GAAD,CAAyB,CAAA;GACJ;;CACG,CAAA,EACN,CAAA;AAE5B;AAEA,SAAS,EAAY,EAAE,cAAW,GAAG,KAAkE;CACrG,OACE,kBAAC,EAAgB,YAAjB;EACE,aAAU;EACV,WAAW,EAAG,0CAA0C,CAAS;EACjE,GAAI;CACL,CAAA;AAEL;AAEA,SAAS,EAAW,EAAE,cAAW,aAAU,GAAG,KAA4D;CACxG,OACE,kBAAC,EAAgB,MAAjB;EACE,aAAU;EACV,WAAW,EACT,oSACA,CACF;EACA,GAAI;EANN,UAAA,CAQE,kBAAC,QAAD;GAAM,WAAU;GACd,UAAA,kBAAC,EAAgB,eAAjB,EAAA,UACE,kBAAC,GAAD,EAAO,WAAU,UAAW,CAAA,EACC,CAAA;EAC3B,CAAA,GAEN,kBAAC,EAAgB,UAAjB,EAA2B,YAAmC,CAAA,CAC1C;;AAE1B;AAEA,SAAS,EAAgB,EAAE,cAAW,GAAG,KAAsC;CAC7E,OACE,kBAAC,OAAD;EACE,aAAU;EACV,MAAK;EACL,oBAAiB;EACjB,WAAW,EAAG,4BAA4B,CAAS;EACnD,GAAI;CACL,CAAA;AAEL"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Dialog as SheetPrimitive } from "@base-ui/react/dialog";
|
|
2
|
+
import { type VariantProps } from "class-variance-authority";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
declare const Sheet: typeof SheetPrimitive.Root;
|
|
5
|
+
declare function SheetTrigger({ asChild, children, ...props }: React.ComponentProps<typeof SheetPrimitive.Trigger> & {
|
|
6
|
+
asChild?: boolean;
|
|
7
|
+
}): React.JSX.Element;
|
|
8
|
+
declare function SheetClose({ asChild, children, ...props }: React.ComponentProps<typeof SheetPrimitive.Close> & {
|
|
9
|
+
asChild?: boolean;
|
|
10
|
+
}): React.JSX.Element;
|
|
11
|
+
declare const SheetPortal: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").AlertDialogPortalProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
+
declare function SheetOverlay({ className, ...props }: React.ComponentProps<typeof SheetPrimitive.Backdrop>): React.JSX.Element;
|
|
13
|
+
declare const sheetVariants: (props?: ({
|
|
14
|
+
side?: "bottom" | "left" | "right" | "top" | null | undefined;
|
|
15
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
16
|
+
interface SheetContentProps extends React.ComponentProps<typeof SheetPrimitive.Popup>, VariantProps<typeof sheetVariants> {
|
|
17
|
+
/**
|
|
18
|
+
* Radix-compat: called on Escape while the sheet is open; call
|
|
19
|
+
* `event.preventDefault()` to keep the sheet open. Implemented by stopping
|
|
20
|
+
* the event before Base UI's document-level dismiss handler sees it.
|
|
21
|
+
*/
|
|
22
|
+
onEscapeKeyDown?: (event: React.KeyboardEvent) => void;
|
|
23
|
+
}
|
|
24
|
+
declare function SheetContent({ side, className, children, onEscapeKeyDown, onKeyDown, ...props }: SheetContentProps): React.JSX.Element;
|
|
25
|
+
declare function SheetHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
26
|
+
declare function SheetFooter({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
|
27
|
+
declare function SheetTitle({ className, ...props }: React.ComponentProps<typeof SheetPrimitive.Title>): React.JSX.Element;
|
|
28
|
+
declare function SheetDescription({ className, ...props }: React.ComponentProps<typeof SheetPrimitive.Description>): React.JSX.Element;
|
|
29
|
+
export { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, };
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn as e } from "../../lib/utils.js";
|
|
3
|
+
import { X as t } from "lucide-react";
|
|
4
|
+
import * as n from "react";
|
|
5
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
6
|
+
import { cva as a } from "class-variance-authority";
|
|
7
|
+
import { Dialog as o } from "@base-ui/react/dialog";
|
|
8
|
+
//#region src/components/ui/sheet.tsx
|
|
9
|
+
var s = o.Root;
|
|
10
|
+
function c({ asChild: e = !1, children: t, ...i }) {
|
|
11
|
+
return /* @__PURE__ */ r(o.Trigger, {
|
|
12
|
+
"data-slot": "sheet-trigger",
|
|
13
|
+
...e ? { render: n.Children.only(t) } : { children: t },
|
|
14
|
+
...i
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
function l({ asChild: e = !1, children: t, ...i }) {
|
|
18
|
+
return /* @__PURE__ */ r(o.Close, {
|
|
19
|
+
"data-slot": "sheet-close",
|
|
20
|
+
...e ? { render: n.Children.only(t) } : { children: t },
|
|
21
|
+
...i
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
var u = o.Portal, d = { animation: "sheet-overlay-in var(--motion-duration-slow) var(--motion-ease-out)" };
|
|
25
|
+
function f({ className: t, ...n }) {
|
|
26
|
+
return /* @__PURE__ */ r(o.Backdrop, {
|
|
27
|
+
"data-slot": "sheet-overlay",
|
|
28
|
+
className: e("fixed inset-0 z-[var(--z-sheet)] bg-overlay", t),
|
|
29
|
+
style: d,
|
|
30
|
+
...n
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
var p = a("fixed z-[var(--z-sheet)] gap-4 bg-background p-6 shadow-modal", {
|
|
34
|
+
variants: { side: {
|
|
35
|
+
top: "inset-x-0 top-0 border-b",
|
|
36
|
+
bottom: "inset-x-0 bottom-0 border-t",
|
|
37
|
+
left: "inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",
|
|
38
|
+
right: "inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm"
|
|
39
|
+
} },
|
|
40
|
+
defaultVariants: { side: "right" }
|
|
41
|
+
}), m = "var(--motion-duration-slowest) var(--motion-ease-standard)", h = {
|
|
42
|
+
top: {
|
|
43
|
+
animation: `sheet-slide-in-top ${m}`,
|
|
44
|
+
backfaceVisibility: "hidden",
|
|
45
|
+
contain: "layout style paint"
|
|
46
|
+
},
|
|
47
|
+
bottom: {
|
|
48
|
+
animation: `sheet-slide-in-bottom ${m}`,
|
|
49
|
+
backfaceVisibility: "hidden",
|
|
50
|
+
contain: "layout style paint"
|
|
51
|
+
},
|
|
52
|
+
left: {
|
|
53
|
+
animation: `sheet-slide-in-left ${m}`,
|
|
54
|
+
backfaceVisibility: "hidden",
|
|
55
|
+
contain: "layout style paint"
|
|
56
|
+
},
|
|
57
|
+
right: {
|
|
58
|
+
animation: `sheet-slide-in-right ${m}`,
|
|
59
|
+
backfaceVisibility: "hidden",
|
|
60
|
+
contain: "layout style paint"
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
function g({ side: a = "right", className: s, children: c, onEscapeKeyDown: l, onKeyDown: d, ...m }) {
|
|
64
|
+
let g = n.useCallback((e) => {
|
|
65
|
+
d?.(e), e.key === "Escape" && l && (l(e), e.defaultPrevented && e.stopPropagation());
|
|
66
|
+
}, [d, l]);
|
|
67
|
+
return /* @__PURE__ */ i(u, { children: [/* @__PURE__ */ r(f, {}), /* @__PURE__ */ i(o.Popup, {
|
|
68
|
+
"data-slot": "sheet-content",
|
|
69
|
+
className: e(p({ side: a }), s),
|
|
70
|
+
onKeyDown: g,
|
|
71
|
+
style: h[a ?? "right"],
|
|
72
|
+
...m,
|
|
73
|
+
children: [c, /* @__PURE__ */ i(o.Close, {
|
|
74
|
+
"data-slot": "sheet-close",
|
|
75
|
+
className: "absolute right-4 top-4 h-10 w-10 flex items-center justify-center rounded-full bg-muted/80 hover:bg-muted transition-colors outline-none focus-visible:ring-ring/50 focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50",
|
|
76
|
+
children: [/* @__PURE__ */ r(t, { className: "h-5 w-5" }), /* @__PURE__ */ r("span", {
|
|
77
|
+
className: "sr-only",
|
|
78
|
+
children: "Close"
|
|
79
|
+
})]
|
|
80
|
+
})]
|
|
81
|
+
})] });
|
|
82
|
+
}
|
|
83
|
+
function _({ className: t, ...n }) {
|
|
84
|
+
return /* @__PURE__ */ r("div", {
|
|
85
|
+
"data-slot": "sheet-header",
|
|
86
|
+
className: e("flex flex-col space-y-2 text-center sm:text-left", t),
|
|
87
|
+
...n
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
function v({ className: t, ...n }) {
|
|
91
|
+
return /* @__PURE__ */ r("div", {
|
|
92
|
+
"data-slot": "sheet-footer",
|
|
93
|
+
className: e("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", t),
|
|
94
|
+
...n
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
function y({ className: t, ...n }) {
|
|
98
|
+
return /* @__PURE__ */ r(o.Title, {
|
|
99
|
+
"data-slot": "sheet-title",
|
|
100
|
+
className: e("text-lg font-semibold text-foreground", t),
|
|
101
|
+
...n
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
function b({ className: t, ...n }) {
|
|
105
|
+
return /* @__PURE__ */ r(o.Description, {
|
|
106
|
+
"data-slot": "sheet-description",
|
|
107
|
+
className: e("text-sm text-muted-foreground", t),
|
|
108
|
+
...n
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
//#endregion
|
|
112
|
+
export { s as Sheet, l as SheetClose, g as SheetContent, b as SheetDescription, v as SheetFooter, _ as SheetHeader, f as SheetOverlay, u as SheetPortal, y as SheetTitle, c as SheetTrigger };
|
|
113
|
+
|
|
114
|
+
//# sourceMappingURL=sheet.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sheet.js","names":[],"sources":["../../../src/components/ui/sheet.tsx"],"mappings":";;;;;;;;AASA,IAAM,IAAQ,EAAe;AAE7B,SAAS,EAAa,EACpB,aAAU,IACV,aACA,GAAG,KAC2E;CAC9E,OACE,kBAAC,EAAe,SAAhB;EACE,aAAU;EACV,GAAK,IAAU,EAAE,QAAQ,EAAM,SAAS,KAAK,CAAQ,EAAwB,IAAI,EAAE,YAAS;EAC5F,GAAI;CACL,CAAA;AAEL;AAEA,SAAS,EAAW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AS;EAChD,WAAW;EACX,OAAO,EAAoB,KAAQ;EACnC,GAAI;EALN,UAAA,CAOG,GACD,kBAAC,EAAe,OAAhB;GACE,aAAU;GACV,WAAU;GAFZ,UAAA,CAIE,kBAAC,GAAD,EAAG,WAAU,UAAW,CAAA,GACxB,kBAAC,QAAD;IAAM,WAAU;IAAU,UAAA;GAAW,CAAA,CACjB;EACF,CAAA,CAAA;CACX,CAAA,CAAA,EAAA,CAAA;AAEjB;AAEA,SAAS,EAAY,EAAE,cAAW,GAAG,KAAsC;CACzE,OACE,kBAAC,OAAD;EACE,aAAU;EACV,WAAW,EAAG,oDAAoD,CAAS;EAC3E,GAAI;CACL,CAAA;AAEL;AAEA,SAAS,EAAY,EAAE,cAAW,GAAG,KAAsC;CACzE,OACE,kBAAC,OAAD;EACE,aAAU;EACV,WAAW,EAAG,iEAAiE,CAAS;EACxF,GAAI;CACL,CAAA;AAEL;AAEA,SAAS,EAAW,EAAE,cAAW,GAAG,KAA4D;CAC9F,OACE,kBAAC,EAAe,OAAhB;EACE,aAAU;EACV,WAAW,EAAG,yCAAyC,CAAS;EAChE,GAAI;CACL,CAAA;AAEL;AAEA,SAAS,EAAiB,EAAE,cAAW,GAAG,KAAkE;CAC1G,OACE,kBAAC,EAAe,aAAhB;EACE,aAAU;EACV,WAAW,EAAG,iCAAiC,CAAS;EACxD,GAAI;CACL,CAAA;AAEL"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { cn as e } from "../../lib/utils.js";
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
+
//#region src/components/ui/skeleton.tsx
|
|
4
|
+
function n({ className: n, ...r }) {
|
|
5
|
+
return /* @__PURE__ */ t("div", {
|
|
6
|
+
"data-slot": "skeleton",
|
|
7
|
+
className: e("bg-accent animate-pulse rounded-md", n),
|
|
8
|
+
...r
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
export { n as Skeleton };
|
|
13
|
+
|
|
14
|
+
//# sourceMappingURL=skeleton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skeleton.js","names":[],"sources":["../../../src/components/ui/skeleton.tsx"],"mappings":";;;AAEA,SAAS,EAAS,EAAE,cAAW,GAAG,KAAsC;CACtE,OAAO,kBAAC,OAAD;EAAK,aAAU;EAAW,WAAW,EAAG,sCAAsC,CAAS;EAAG,GAAI;CAAQ,CAAA;AAC/G"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Slider as SliderPrimitive } from "@base-ui/react/slider";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
type SliderProps = Omit<React.ComponentProps<typeof SliderPrimitive.Root>, "value" | "defaultValue" | "onValueChange"> & {
|
|
4
|
+
value?: number[];
|
|
5
|
+
defaultValue?: number[];
|
|
6
|
+
onValueChange?: (value: number[]) => void;
|
|
7
|
+
};
|
|
8
|
+
declare function Slider({ className, defaultValue, value, min, max, onValueChange, "aria-label": ariaLabel, ...props }: SliderProps): React.JSX.Element;
|
|
9
|
+
export { Slider };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn as e } from "../../lib/utils.js";
|
|
3
|
+
import * as t from "react";
|
|
4
|
+
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
5
|
+
import { Slider as i } from "@base-ui/react/slider";
|
|
6
|
+
//#region src/components/ui/slider.tsx
|
|
7
|
+
var a = "relative grow overflow-visible rounded-full bg-muted data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5", o = "absolute rounded-full bg-primary data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full";
|
|
8
|
+
function s({ className: s, defaultValue: c, value: l, min: u = 0, max: d = 100, onValueChange: f, "aria-label": p, ...m }) {
|
|
9
|
+
let h = Array.isArray(l) ? l.length : Array.isArray(c) ? c.length : 2, g = t.useCallback(() => p, [p]);
|
|
10
|
+
return /* @__PURE__ */ n(i.Root, {
|
|
11
|
+
"data-slot": "slider",
|
|
12
|
+
defaultValue: c,
|
|
13
|
+
value: l,
|
|
14
|
+
onValueChange: f,
|
|
15
|
+
min: u,
|
|
16
|
+
max: d,
|
|
17
|
+
className: e("relative flex w-full touch-none items-center select-none data-[disabled]:opacity-50 data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-44 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col", s),
|
|
18
|
+
...m,
|
|
19
|
+
children: /* @__PURE__ */ n(i.Control, {
|
|
20
|
+
className: "flex w-full grow items-center data-[orientation=vertical]:h-full data-[orientation=vertical]:flex-col",
|
|
21
|
+
children: /* @__PURE__ */ r(i.Track, {
|
|
22
|
+
"data-slot": "slider-track",
|
|
23
|
+
className: a,
|
|
24
|
+
children: [/* @__PURE__ */ n(i.Indicator, {
|
|
25
|
+
"data-slot": "slider-range",
|
|
26
|
+
className: o
|
|
27
|
+
}), Array.from({ length: h }, (e, t) => /* @__PURE__ */ n(i.Thumb, {
|
|
28
|
+
"data-slot": "slider-thumb",
|
|
29
|
+
getAriaLabel: p ? g : void 0,
|
|
30
|
+
className: "block size-4 shrink-0 rounded-full border border-primary bg-background shadow-sm ring-ring/50 transition-[color,box-shadow] outline-none hover:ring-[3px] focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50"
|
|
31
|
+
}, t))]
|
|
32
|
+
})
|
|
33
|
+
})
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
//#endregion
|
|
37
|
+
export { s as Slider };
|
|
38
|
+
|
|
39
|
+
//# sourceMappingURL=slider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slider.js","names":[],"sources":["../../../src/components/ui/slider.tsx"],"mappings":";;;;;;AAiBA,IAAM,IACJ,sMAEI,IACJ;AAEF,SAAS,EAAO,EACd,cACA,iBACA,UACA,SAAM,GACN,SAAM,KACN,kBACA,cAAc,GACd,GAAG,KACW;CACd,IAAM,IAAa,MAAM,QAAQ,CAAK,IAAI,EAAM,SAAS,MAAM,QAAQ,CAAY,IAAI,EAAa,SAAS,GAEvG,IAAe,EAAM,kBAAkB,GAAqB,CAAC,CAAS,CAAC;CAE7E,OACE,kBAAC,EAAgB,MAAjB;EACE,aAAU;EACI;EACP;EACQ;EACV;EACA;EACL,WAAW,EACT,uOACA,CACF;EACA,GAAI;EAEJ,UAAA,kBAAC,EAAgB,SAAjB;GAAyB,WAAU;GACjC,UAAA,kBAAC,EAAgB,OAAjB;IAAuB,aAAU;IAAe,WAAW;IAA3D,UAAA,CACE,kBAAC,EAAgB,WAAjB;KAA2B,aAAU;KAAe,WAAW;IAAqB,CAAA,GACnF,MAAM,KAAK,EAAE,QAAQ,EAAW,IAAI,GAAG,MACtC,kBAAC,EAAgB,OAAjB;KACE,aAAU;KAIV,cAAc,IAAY,IAAe,KAAA;KACzC,WAAU;IACX,GALM,CAKN,CACF,CACoB;;EACA,CAAA;CACL,CAAA;AAE1B"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type VariantProps } from "class-variance-authority";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare const stackVariants: (props?: ({
|
|
4
|
+
gap?: "0" | "1" | "2" | "0.5" | "1.5" | "2.5" | "3" | "4" | "5" | "6" | "8" | "12" | null | undefined;
|
|
5
|
+
align?: "end" | "start" | "center" | "stretch" | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
|
+
/**
|
|
8
|
+
* Vertical layout shorthand — a `Flex` column with a gap.
|
|
9
|
+
*
|
|
10
|
+
* The design-system replacement for ad-hoc `space-y-*` wrappers: children
|
|
11
|
+
* stack top-to-bottom separated by the enumerated `gap` scale (defaults to
|
|
12
|
+
* `"2"`, the most common spacing in the app). Use `align` to control
|
|
13
|
+
* horizontal alignment of children; the default stretches them full width.
|
|
14
|
+
*/
|
|
15
|
+
declare function Stack({ className, gap, align, ...props }: React.ComponentProps<"div"> & VariantProps<typeof stackVariants>): React.JSX.Element;
|
|
16
|
+
export { Stack, stackVariants };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { cn as e } from "../../lib/utils.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
4
|
+
import { cva as n } from "class-variance-authority";
|
|
5
|
+
//#region src/components/ui/stack.tsx
|
|
6
|
+
var r = n("flex flex-col", {
|
|
7
|
+
variants: {
|
|
8
|
+
gap: {
|
|
9
|
+
0: "gap-0",
|
|
10
|
+
"0.5": "gap-0.5",
|
|
11
|
+
1: "gap-1",
|
|
12
|
+
"1.5": "gap-1.5",
|
|
13
|
+
2: "gap-2",
|
|
14
|
+
"2.5": "gap-2.5",
|
|
15
|
+
3: "gap-3",
|
|
16
|
+
4: "gap-4",
|
|
17
|
+
5: "gap-5",
|
|
18
|
+
6: "gap-6",
|
|
19
|
+
8: "gap-8",
|
|
20
|
+
12: "gap-12"
|
|
21
|
+
},
|
|
22
|
+
align: {
|
|
23
|
+
start: "items-start",
|
|
24
|
+
center: "items-center",
|
|
25
|
+
end: "items-end",
|
|
26
|
+
stretch: "items-stretch"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
defaultVariants: { gap: "2" }
|
|
30
|
+
});
|
|
31
|
+
function i({ className: n, gap: i, align: a, ...o }) {
|
|
32
|
+
return /* @__PURE__ */ t("div", {
|
|
33
|
+
"data-slot": "stack",
|
|
34
|
+
className: e(r({
|
|
35
|
+
gap: i,
|
|
36
|
+
align: a
|
|
37
|
+
}), n),
|
|
38
|
+
...o
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
//#endregion
|
|
42
|
+
export { i as Stack, r as stackVariants };
|
|
43
|
+
|
|
44
|
+
//# sourceMappingURL=stack.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stack.js","names":[],"sources":["../../../src/components/ui/stack.tsx"],"mappings":";;;;;AAKA,IAAM,IAAgB,EAAI,iBAAiB;CACzC,UAAU;EACR,KAAK;GACH,GAAK;GACL,OAAO;GACP,GAAK;GACL,OAAO;GACP,GAAK;GACL,OAAO;GACP,GAAK;GACL,GAAK;GACL,GAAK;GACL,GAAK;GACL,GAAK;GACL,IAAM;EACR;EACA,OAAO;GACL,OAAO;GACP,QAAQ;GACR,KAAK;GACL,SAAS;EACX;CACF;CACA,iBAAiB,EACf,KAAK,IACP;AACF,CAAC;AAUD,SAAS,EAAM,EAAE,cAAW,QAAK,UAAO,GAAG,KAA2E;CACpH,OAAO,kBAAC,OAAD;EAAK,aAAU;EAAQ,WAAW,EAAG,EAAc;GAAE;GAAK;EAAM,CAAC,GAAG,CAAS;EAAG,GAAI;CAAQ,CAAA;AACrG"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn as e } from "../../lib/utils.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
5
|
+
import { Switch as n } from "@base-ui/react/switch";
|
|
6
|
+
//#region src/components/ui/switch.tsx
|
|
7
|
+
var r = "bg-background dark:data-[unchecked]:bg-foreground dark:data-[checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[checked]:translate-x-[calc(100%-2px)] data-[unchecked]:translate-x-0";
|
|
8
|
+
function i({ className: i, ...a }) {
|
|
9
|
+
return /* @__PURE__ */ t(n.Root, {
|
|
10
|
+
render: /* @__PURE__ */ t("button", { type: "button" }),
|
|
11
|
+
nativeButton: !0,
|
|
12
|
+
"data-slot": "switch",
|
|
13
|
+
className: e("peer data-[checked]:bg-primary data-[unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-[color,background-color,border-color,box-shadow] duration-150 outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50", i),
|
|
14
|
+
...a,
|
|
15
|
+
children: /* @__PURE__ */ t(n.Thumb, {
|
|
16
|
+
"data-slot": "switch-thumb",
|
|
17
|
+
className: r
|
|
18
|
+
})
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
//#endregion
|
|
22
|
+
export { i as Switch };
|
|
23
|
+
|
|
24
|
+
//# sourceMappingURL=switch.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"switch.js","names":[],"sources":["../../../src/components/ui/switch.tsx"],"mappings":";;;;;;AAUA,IAAM,IACJ;AAEF,SAAS,EAAO,EAAE,cAAW,GAAG,KAA4D;CAC1F,OACE,kBAAC,EAAgB,MAAjB;EAGE,QAAQ,kBAAC,UAAD,EAAQ,MAAK,SAAU,CAAA;EAC/B,cAAA;EACA,aAAU;EACV,WAAW,EACT,qZACA,CACF;EACA,GAAI;EAEJ,UAAA,kBAAC,EAAgB,OAAjB;GAAuB,aAAU;GAAe,WAAW;EAAiB,CAAA;CACxD,CAAA;AAE1B"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Data table set — the house style for the handful of real tables
|
|
4
|
+
* (settings, debug). `Table` provides its own horizontal-scroll container
|
|
5
|
+
* so wide tables never overflow the page.
|
|
6
|
+
*/
|
|
7
|
+
declare function Table({ className, ...props }: React.ComponentProps<"table">): React.JSX.Element;
|
|
8
|
+
declare function TableHeader({ className, ...props }: React.ComponentProps<"thead">): React.JSX.Element;
|
|
9
|
+
declare function TableBody({ className, ...props }: React.ComponentProps<"tbody">): React.JSX.Element;
|
|
10
|
+
declare function TableRow({ className, ...props }: React.ComponentProps<"tr">): React.JSX.Element;
|
|
11
|
+
declare function TableHead({ className, ...props }: React.ComponentProps<"th">): React.JSX.Element;
|
|
12
|
+
declare function TableCell({ className, ...props }: React.ComponentProps<"td">): React.JSX.Element;
|
|
13
|
+
export { Table, TableBody, TableCell, TableHead, TableHeader, TableRow };
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { cn as e } from "../../lib/utils.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
4
|
+
//#region src/components/ui/table.tsx
|
|
5
|
+
function n({ className: n, ...r }) {
|
|
6
|
+
return /* @__PURE__ */ t("div", {
|
|
7
|
+
"data-slot": "table-container",
|
|
8
|
+
className: "relative w-full overflow-x-auto",
|
|
9
|
+
children: /* @__PURE__ */ t("table", {
|
|
10
|
+
"data-slot": "table",
|
|
11
|
+
className: e("w-full caption-bottom text-sm", n),
|
|
12
|
+
...r
|
|
13
|
+
})
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
function r({ className: n, ...r }) {
|
|
17
|
+
return /* @__PURE__ */ t("thead", {
|
|
18
|
+
"data-slot": "table-header",
|
|
19
|
+
className: e("[&_tr]:border-b", n),
|
|
20
|
+
...r
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
function i({ className: n, ...r }) {
|
|
24
|
+
return /* @__PURE__ */ t("tbody", {
|
|
25
|
+
"data-slot": "table-body",
|
|
26
|
+
className: e("[&_tr:last-child]:border-0", n),
|
|
27
|
+
...r
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
function a({ className: n, ...r }) {
|
|
31
|
+
return /* @__PURE__ */ t("tr", {
|
|
32
|
+
"data-slot": "table-row",
|
|
33
|
+
className: e("border-b transition-colors duration-150 hover:bg-muted/50", n),
|
|
34
|
+
...r
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
function o({ className: n, ...r }) {
|
|
38
|
+
return /* @__PURE__ */ t("th", {
|
|
39
|
+
"data-slot": "table-head",
|
|
40
|
+
className: e("h-9 px-2 text-left align-middle font-medium text-muted-foreground", n),
|
|
41
|
+
...r
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
function s({ className: n, ...r }) {
|
|
45
|
+
return /* @__PURE__ */ t("td", {
|
|
46
|
+
"data-slot": "table-cell",
|
|
47
|
+
className: e("p-2 align-middle", n),
|
|
48
|
+
...r
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
//#endregion
|
|
52
|
+
export { n as Table, i as TableBody, s as TableCell, o as TableHead, r as TableHeader, a as TableRow };
|
|
53
|
+
|
|
54
|
+
//# sourceMappingURL=table.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table.js","names":[],"sources":["../../../src/components/ui/table.tsx"],"mappings":";;;;AASA,SAAS,EAAM,EAAE,cAAW,GAAG,KAAwC;CACrE,OACE,kBAAC,OAAD;EAAK,aAAU;EAAkB,WAAU;EACzC,UAAA,kBAAC,SAAD;GAAO,aAAU;GAAQ,WAAW,EAAG,iCAAiC,CAAS;GAAG,GAAI;EAAQ,CAAA;CAC7F,CAAA;AAET;AAEA,SAAS,EAAY,EAAE,cAAW,GAAG,KAAwC;CAC3E,OAAO,kBAAC,SAAD;EAAO,aAAU;EAAe,WAAW,EAAG,mBAAmB,CAAS;EAAG,GAAI;CAAQ,CAAA;AAClG;AAEA,SAAS,EAAU,EAAE,cAAW,GAAG,KAAwC;CACzE,OAAO,kBAAC,SAAD;EAAO,aAAU;EAAa,WAAW,EAAG,8BAA8B,CAAS;EAAG,GAAI;CAAQ,CAAA;AAC3G;AAEA,SAAS,EAAS,EAAE,cAAW,GAAG,KAAqC;CACrE,OACE,kBAAC,MAAD;EACE,aAAU;EACV,WAAW,EAAG,6DAA6D,CAAS;EACpF,GAAI;CACL,CAAA;AAEL;AAEA,SAAS,EAAU,EAAE,cAAW,GAAG,KAAqC;CACtE,OACE,kBAAC,MAAD;EACE,aAAU;EACV,WAAW,EAAG,qEAAqE,CAAS;EAC5F,GAAI;CACL,CAAA;AAEL;AAEA,SAAS,EAAU,EAAE,cAAW,GAAG,KAAqC;CACtE,OAAO,kBAAC,MAAD;EAAI,aAAU;EAAa,WAAW,EAAG,oBAAoB,CAAS;EAAG,GAAI;CAAQ,CAAA;AAC9F"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Tabs as TabsPrimitive } from "@base-ui/react/tabs";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare function Tabs({ ...props }: React.ComponentProps<typeof TabsPrimitive.Root>): React.JSX.Element;
|
|
4
|
+
declare function TabsList({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.List>): React.JSX.Element;
|
|
5
|
+
declare function TabsTrigger({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Tab>): React.JSX.Element;
|
|
6
|
+
declare function TabsContent({ className, ...props }: React.ComponentProps<typeof TabsPrimitive.Panel>): React.JSX.Element;
|
|
7
|
+
export { Tabs, TabsContent, TabsList, TabsTrigger };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn as e } from "../../lib/utils.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
5
|
+
import { Tabs as n } from "@base-ui/react/tabs";
|
|
6
|
+
//#region src/components/ui/tabs.tsx
|
|
7
|
+
function r({ ...e }) {
|
|
8
|
+
return /* @__PURE__ */ t(n.Root, {
|
|
9
|
+
"data-slot": "tabs",
|
|
10
|
+
...e
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
function i({ className: r, ...i }) {
|
|
14
|
+
return /* @__PURE__ */ t(n.List, {
|
|
15
|
+
"data-slot": "tabs-list",
|
|
16
|
+
className: e("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground", r),
|
|
17
|
+
...i
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
function a({ className: r, ...i }) {
|
|
21
|
+
return /* @__PURE__ */ t(n.Tab, {
|
|
22
|
+
"data-slot": "tabs-trigger",
|
|
23
|
+
className: e("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium transition-[color,background-color,box-shadow] duration-200 outline-none focus-visible:ring-ring/50 focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-background data-[active]:text-foreground data-[active]:shadow-sm", r),
|
|
24
|
+
...i
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
function o({ className: r, ...i }) {
|
|
28
|
+
return /* @__PURE__ */ t(n.Panel, {
|
|
29
|
+
"data-slot": "tabs-content",
|
|
30
|
+
className: e("mt-2 outline-none focus-visible:ring-ring/50 focus-visible:ring-[3px]", r),
|
|
31
|
+
...i
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
//#endregion
|
|
35
|
+
export { r as Tabs, o as TabsContent, i as TabsList, a as TabsTrigger };
|
|
36
|
+
|
|
37
|
+
//# sourceMappingURL=tabs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tabs.js","names":[],"sources":["../../../src/components/ui/tabs.tsx"],"mappings":";;;;;;AAOA,SAAS,EAAK,EAAE,GAAG,KAA0D;CAC3E,OAAO,kBAAC,EAAc,MAAf;EAAoB,aAAU;EAAO,GAAI;CAAQ,CAAA;AAC1D;AAEA,SAAS,EAAS,EAAE,cAAW,GAAG,KAA0D;CAC1F,OACE,kBAAC,EAAc,MAAf;EACE,aAAU;EACV,WAAW,EACT,8FACA,CACF;EACA,GAAI;CACL,CAAA;AAEL;AAEA,SAAS,EAAY,EAAE,cAAW,GAAG,KAAyD;CAC5F,OACE,kBAAC,EAAc,KAAf;EACE,aAAU;EACV,WAAW,EACT,wWACA,CACF;EACA,GAAI;CACL,CAAA;AAEL;AAEA,SAAS,EAAY,EAAE,cAAW,GAAG,KAA2D;CAC9F,OACE,kBAAC,EAAc,OAAf;EACE,aAAU;EACV,WAAW,EAAG,yEAAyE,CAAS;EAChG,GAAI;CACL,CAAA;AAEL"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* Inline text anchor with the canonical link treatment, always underlined at
|
|
4
|
+
* rest (satisfies WCAG 1.4.1 / axe link-in-text-block), and the unified 3px
|
|
5
|
+
* soft focus ring. For router navigation, keep using the router's `Link`
|
|
6
|
+
* component; this primitive is for plain anchors.
|
|
7
|
+
*/
|
|
8
|
+
declare function TextLink({ className, ...props }: React.ComponentProps<"a">): React.JSX.Element;
|
|
9
|
+
export { TextLink };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { cn as e } from "../../lib/utils.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
4
|
+
//#region src/components/ui/text-link.tsx
|
|
5
|
+
function n({ className: n, ...r }) {
|
|
6
|
+
return /* @__PURE__ */ t("a", {
|
|
7
|
+
"data-slot": "text-link",
|
|
8
|
+
className: e("rounded-sm text-primary underline underline-offset-4 outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50", n),
|
|
9
|
+
...r
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
//#endregion
|
|
13
|
+
export { n as TextLink };
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=text-link.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text-link.js","names":[],"sources":["../../../src/components/ui/text-link.tsx"],"mappings":";;;;AAUA,SAAS,EAAS,EAAE,cAAW,GAAG,KAAoC;CACpE,OACE,kBAAC,KAAD;EACE,aAAU;EACV,WAAW,EACT,yHACA,CACF;EACA,GAAI;CACL,CAAA;AAEL"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type VariantProps } from "class-variance-authority";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare const textVariants: (props?: ({
|
|
4
|
+
size?: "base" | "sm" | "lg" | "xs" | null | undefined;
|
|
5
|
+
tone?: "default" | "destructive" | "info" | "success" | "warning" | "muted" | null | undefined;
|
|
6
|
+
weight?: "normal" | "medium" | "semibold" | null | undefined;
|
|
7
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
|
+
interface TextProps extends React.HTMLAttributes<HTMLElement>, VariantProps<typeof textVariants> {
|
|
9
|
+
/** Rendered element. `p` (default) for block copy, `span` for inline fragments. */
|
|
10
|
+
as?: "p" | "span";
|
|
11
|
+
/** `React.HTMLAttributes` has no `ref` prop; React 19 forwards it through the spread. */
|
|
12
|
+
ref?: React.Ref<HTMLElement>;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Body text primitive — the design-system replacement for raw `<p>`/`<span>`.
|
|
16
|
+
*
|
|
17
|
+
* `size` defaults to `"sm"`, the dominant body size in FiestaBoard's dense
|
|
18
|
+
* UI (the same reasoning as `Stack`'s `gap="2"` default). `tone` draws from
|
|
19
|
+
* the status token set so message coloring stays on-token.
|
|
20
|
+
*/
|
|
21
|
+
declare function Text({ as, className, size, tone, weight, ...props }: TextProps): React.JSX.Element;
|
|
22
|
+
export { Text, textVariants };
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { cn as e } from "../../lib/utils.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
4
|
+
import { cva as n } from "class-variance-authority";
|
|
5
|
+
//#region src/components/ui/text.tsx
|
|
6
|
+
var r = n("", {
|
|
7
|
+
variants: {
|
|
8
|
+
size: {
|
|
9
|
+
xs: "text-xs",
|
|
10
|
+
sm: "text-sm",
|
|
11
|
+
base: "text-base",
|
|
12
|
+
lg: "text-lg"
|
|
13
|
+
},
|
|
14
|
+
tone: {
|
|
15
|
+
default: "text-foreground",
|
|
16
|
+
muted: "text-muted-foreground",
|
|
17
|
+
destructive: "text-destructive",
|
|
18
|
+
info: "text-info",
|
|
19
|
+
success: "text-success",
|
|
20
|
+
warning: "text-warning"
|
|
21
|
+
},
|
|
22
|
+
weight: {
|
|
23
|
+
normal: "font-normal",
|
|
24
|
+
medium: "font-medium",
|
|
25
|
+
semibold: "font-semibold"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
defaultVariants: {
|
|
29
|
+
size: "sm",
|
|
30
|
+
tone: "default",
|
|
31
|
+
weight: "normal"
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
function i({ as: n = "p", className: i, size: a, tone: o, weight: s, ...c }) {
|
|
35
|
+
return /* @__PURE__ */ t(n, {
|
|
36
|
+
"data-slot": "text",
|
|
37
|
+
className: e(r({
|
|
38
|
+
size: a,
|
|
39
|
+
tone: o,
|
|
40
|
+
weight: s
|
|
41
|
+
}), i),
|
|
42
|
+
...c
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
//#endregion
|
|
46
|
+
export { i as Text, r as textVariants };
|
|
47
|
+
|
|
48
|
+
//# sourceMappingURL=text.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text.js","names":[],"sources":["../../../src/components/ui/text.tsx"],"mappings":";;;;;AAKA,IAAM,IAAe,EAAI,IAAI;CAC3B,UAAU;EACR,MAAM;GACJ,IAAI;GACJ,IAAI;GACJ,MAAM;GACN,IAAI;EACN;EACA,MAAM;GACJ,SAAS;GACT,OAAO;GACP,aAAa;GACb,MAAM;GACN,SAAS;GACT,SAAS;EACX;EACA,QAAQ;GACN,QAAQ;GACR,QAAQ;GACR,UAAU;EACZ;CACF;CACA,iBAAiB;EACf,MAAM;EACN,MAAM;EACN,QAAQ;CACV;AACF,CAAC;AAgBD,SAAS,EAAK,EAAE,QAAK,KAAK,cAAW,SAAM,SAAM,WAAQ,GAAG,KAAoB;CAE9E,OAAO,kBAAC,GAAD;EAAW,aAAU;EAAO,WAAW,EAAG,EAAa;GAAE;GAAM;GAAM;EAAO,CAAC,GAAG,CAAS;EAAG,GAAI;CAAQ,CAAA;AACjH"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { cn as e } from "../../lib/utils.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
4
|
+
//#region src/components/ui/textarea.tsx
|
|
5
|
+
function n({ className: n, ...r }) {
|
|
6
|
+
return /* @__PURE__ */ t("textarea", {
|
|
7
|
+
"data-slot": "textarea",
|
|
8
|
+
className: e("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm transition-colors", "placeholder:text-muted-foreground", "outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]", "disabled:cursor-not-allowed disabled:opacity-50", n),
|
|
9
|
+
...r
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
//#endregion
|
|
13
|
+
export { n as Textarea };
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=textarea.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"textarea.js","names":[],"sources":["../../../src/components/ui/textarea.tsx"],"mappings":";;;;AAIA,SAAS,EAAS,EAAE,cAAW,GAAG,KAA2C;CAC3E,OACE,kBAAC,YAAD;EACE,aAAU;EACV,WAAW,EACT,wHACA,qCACA,8FACA,mDACA,CACF;EACA,GAAI;CACL,CAAA;AAEL"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Tooltip as TooltipPrimitive } from "@base-ui/react/tooltip";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare function TooltipProvider({ delayDuration, skipDelayDuration, ...props }: React.ComponentProps<typeof TooltipPrimitive.Provider> & {
|
|
4
|
+
delayDuration?: number;
|
|
5
|
+
skipDelayDuration?: number;
|
|
6
|
+
}): React.JSX.Element;
|
|
7
|
+
declare const Tooltip: <Payload>(props: TooltipPrimitive.Root.Props<Payload>) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare function TooltipTrigger({ asChild, children, ...props }: React.ComponentProps<typeof TooltipPrimitive.Trigger> & {
|
|
9
|
+
asChild?: boolean;
|
|
10
|
+
}): React.JSX.Element;
|
|
11
|
+
declare function TooltipContent({ className, side, align, sideOffset, ...props }: React.ComponentProps<typeof TooltipPrimitive.Popup> & {
|
|
12
|
+
side?: "top" | "right" | "bottom" | "left";
|
|
13
|
+
align?: "start" | "center" | "end";
|
|
14
|
+
sideOffset?: number;
|
|
15
|
+
}): React.JSX.Element;
|
|
16
|
+
export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger };
|