@abumble/design-system 0.0.25 → 0.0.27
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/dist/components/ActionsPopover/ActionsPopover.d.ts +15 -0
- package/dist/components/ActionsPopover/ActionsPopover.d.ts.map +1 -0
- package/dist/components/ActionsPopover/index.d.ts +2 -0
- package/dist/components/ActionsPopover/index.d.ts.map +1 -0
- package/dist/components/ActionsPopover.js +46 -0
- package/dist/components/ActionsPopover.js.map +1 -0
- package/dist/components/BackLink/BackLink.d.ts +21 -0
- package/dist/components/BackLink/BackLink.d.ts.map +1 -0
- package/dist/components/BackLink/index.d.ts +2 -0
- package/dist/components/BackLink/index.d.ts.map +1 -0
- package/dist/components/BackLink.js +5 -0
- package/dist/components/BackLink.js.map +1 -0
- package/dist/components/Badge/Badge.d.ts +7 -0
- package/dist/components/Badge/Badge.d.ts.map +1 -0
- package/dist/components/Badge/index.d.ts +2 -0
- package/dist/components/Badge/index.d.ts.map +1 -0
- package/dist/components/Badge.js +39 -0
- package/dist/components/Badge.js.map +1 -0
- package/dist/components/BannerHeader/BannerHeader.d.ts +38 -0
- package/dist/components/BannerHeader/BannerHeader.d.ts.map +1 -0
- package/dist/components/BannerHeader/index.d.ts +2 -0
- package/dist/components/BannerHeader/index.d.ts.map +1 -0
- package/dist/components/BannerHeader.js +41 -0
- package/dist/components/BannerHeader.js.map +1 -0
- package/dist/components/Breadcrumb.js +7 -100
- package/dist/components/Breadcrumb.js.map +1 -1
- package/dist/components/Checkbox/Checkbox.d.ts +4 -0
- package/dist/components/Checkbox/Checkbox.d.ts.map +1 -0
- package/dist/components/Checkbox/index.d.ts +2 -0
- package/dist/components/Checkbox/index.d.ts.map +1 -0
- package/dist/components/Checkbox.js +38 -0
- package/dist/components/Checkbox.js.map +1 -0
- package/dist/components/ConfirmDeleteDialog/ConfirmDeleteDialog.d.ts +11 -0
- package/dist/components/ConfirmDeleteDialog/ConfirmDeleteDialog.d.ts.map +1 -0
- package/dist/components/ConfirmDeleteDialog/index.d.ts +2 -0
- package/dist/components/ConfirmDeleteDialog/index.d.ts.map +1 -0
- package/dist/components/ConfirmDeleteDialog.js +34 -0
- package/dist/components/ConfirmDeleteDialog.js.map +1 -0
- package/dist/components/DelayedLoadingFallback/DelayedLoadingFallback.d.ts +17 -0
- package/dist/components/DelayedLoadingFallback/DelayedLoadingFallback.d.ts.map +1 -0
- package/dist/components/DelayedLoadingFallback/index.d.ts +2 -0
- package/dist/components/DelayedLoadingFallback/index.d.ts.map +1 -0
- package/dist/components/DelayedLoadingFallback.js +15 -0
- package/dist/components/DelayedLoadingFallback.js.map +1 -0
- package/dist/components/Dialog/Dialog.d.ts +45 -0
- package/dist/components/Dialog/Dialog.d.ts.map +1 -0
- package/dist/components/Dialog/index.d.ts +2 -0
- package/dist/components/Dialog/index.d.ts.map +1 -0
- package/dist/components/Dialog.js +17 -0
- package/dist/components/Dialog.js.map +1 -0
- package/dist/components/FieldsTable/FieldsTable.d.ts +12 -0
- package/dist/components/FieldsTable/FieldsTable.d.ts.map +1 -0
- package/dist/components/FieldsTable/index.d.ts +2 -0
- package/dist/components/FieldsTable/index.d.ts.map +1 -0
- package/dist/components/FieldsTable.js +42 -0
- package/dist/components/FieldsTable.js.map +1 -0
- package/dist/components/Label/Label.d.ts +4 -0
- package/dist/components/Label/Label.d.ts.map +1 -0
- package/dist/components/Label/index.d.ts +2 -0
- package/dist/components/Label/index.d.ts.map +1 -0
- package/dist/components/Label.js +24 -0
- package/dist/components/Label.js.map +1 -0
- package/dist/components/PageHeader/PageHeader.d.ts +12 -0
- package/dist/components/PageHeader/PageHeader.d.ts.map +1 -0
- package/dist/components/PageHeader/index.d.ts +2 -0
- package/dist/components/PageHeader/index.d.ts.map +1 -0
- package/dist/components/PageHeader.js +6 -0
- package/dist/components/PageHeader.js.map +1 -0
- package/dist/components/Popover.js +5 -43
- package/dist/components/Popover.js.map +1 -1
- package/dist/components/Select/Select.d.ts +6 -0
- package/dist/components/Select/Select.d.ts.map +1 -0
- package/dist/components/Select/index.d.ts +2 -0
- package/dist/components/Select/index.d.ts.map +1 -0
- package/dist/components/Select.js +27 -0
- package/dist/components/Select.js.map +1 -0
- package/dist/components/Table/Table.d.ts +10 -0
- package/dist/components/Table/Table.d.ts.map +1 -0
- package/dist/components/Table/index.d.ts +2 -0
- package/dist/components/Table/index.d.ts.map +1 -0
- package/dist/components/Table.js +125 -0
- package/dist/components/Table.js.map +1 -0
- package/dist/components/Textarea/Textarea.d.ts +3 -0
- package/dist/components/Textarea/Textarea.d.ts.map +1 -0
- package/dist/components/Textarea/index.d.ts +2 -0
- package/dist/components/Textarea/index.d.ts.map +1 -0
- package/dist/components/Textarea.js +23 -0
- package/dist/components/Textarea.js.map +1 -0
- package/dist/components/Toaster/Toaster.d.ts +7 -0
- package/dist/components/Toaster/Toaster.d.ts.map +1 -0
- package/dist/components/Toaster/index.d.ts +2 -0
- package/dist/components/Toaster/index.d.ts.map +1 -0
- package/dist/components/Toaster.js +26 -0
- package/dist/components/Toaster.js.map +1 -0
- package/dist/hooks/use-delayed-loading/index.d.ts +2 -0
- package/dist/hooks/use-delayed-loading/index.d.ts.map +1 -0
- package/dist/hooks/use-delayed-loading/use-delayed-loading.d.ts +7 -0
- package/dist/hooks/use-delayed-loading/use-delayed-loading.d.ts.map +1 -0
- package/dist/hooks/use-delayed-loading.js +5 -0
- package/dist/hooks/use-delayed-loading.js.map +1 -0
- package/dist/shared/BackLink.js +30 -0
- package/dist/shared/BackLink.js.map +1 -0
- package/dist/shared/Breadcrumb.js +104 -0
- package/dist/shared/Breadcrumb.js.map +1 -0
- package/dist/shared/Dialog.js +225 -0
- package/dist/shared/Dialog.js.map +1 -0
- package/dist/shared/PageHeader.js +59 -0
- package/dist/shared/PageHeader.js.map +1 -0
- package/dist/shared/Popover.js +46 -0
- package/dist/shared/Popover.js.map +1 -0
- package/dist/shared/use-delayed-loading.js +16 -0
- package/dist/shared/use-delayed-loading.js.map +1 -0
- package/package.json +68 -1
- package/src/styles.css +9 -0
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
3
|
+
/** Class for create/edit form dialogs: consistent width and scroll. Use via FormDialog or apply to DialogContent. */
|
|
4
|
+
export declare const FORM_DIALOG_CONTENT_CLASS = "max-w-[calc(100vw-2rem)] sm:max-w-2xl max-h-[90vh] overflow-y-auto";
|
|
5
|
+
export declare function Dialog({ ...props }: React.ComponentProps<typeof DialogPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare function DialogTrigger({ ...props }: React.ComponentProps<typeof DialogPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare function DialogPortal({ ...props }: React.ComponentProps<typeof DialogPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare function DialogClose({ ...props }: React.ComponentProps<typeof DialogPrimitive.Close>): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare function DialogOverlay({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Overlay>): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare function DialogContent({ className, children, showCloseButton, ...props }: React.ComponentProps<typeof DialogPrimitive.Content> & {
|
|
11
|
+
showCloseButton?: boolean;
|
|
12
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare function DialogHeader({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare function DialogFooter({ className, showCloseButton, children, ...props }: React.ComponentProps<'div'> & {
|
|
15
|
+
showCloseButton?: boolean;
|
|
16
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export declare function DialogTitle({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Title>): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export declare function DialogDescription({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Description>): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export interface FormDialogProps {
|
|
20
|
+
open: boolean;
|
|
21
|
+
onOpenChange: (open: boolean) => void;
|
|
22
|
+
title: string;
|
|
23
|
+
description: React.ReactNode;
|
|
24
|
+
/** Optional trigger (e.g. "Add" button); when provided, render as first child of Dialog. */
|
|
25
|
+
trigger?: React.ReactNode;
|
|
26
|
+
children: React.ReactNode;
|
|
27
|
+
/** Optional custom className for DialogContent (overrides FORM_DIALOG_CONTENT_CLASS). Use for wider dialogs (e.g., sm:max-w-5xl for wizards). */
|
|
28
|
+
className?: string;
|
|
29
|
+
/** Optional wizard configuration for multi-step forms. Renders a stepper bar at the top of the header. */
|
|
30
|
+
wizard?: {
|
|
31
|
+
currentStep: number;
|
|
32
|
+
totalSteps: number;
|
|
33
|
+
stepTitle: string;
|
|
34
|
+
stepLabels?: Array<string>;
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
/** Compact glass-styled stepper for top-right corner of wizard dialogs. */
|
|
38
|
+
export declare function WizardStepper({ currentStep, totalSteps, stepLabels, }: {
|
|
39
|
+
currentStep: number;
|
|
40
|
+
totalSteps: number;
|
|
41
|
+
stepLabels?: Array<string>;
|
|
42
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
43
|
+
/** Dialog shell for create/edit forms: standard width, header with title + description. */
|
|
44
|
+
export declare function FormDialog({ open, onOpenChange, title, description, trigger, children, className, wizard, }: FormDialogProps): import("react/jsx-runtime").JSX.Element;
|
|
45
|
+
//# sourceMappingURL=Dialog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["../../../src/components/Dialog/Dialog.tsx"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, FormDialog, type FormDialogProps, FORM_DIALOG_CONTENT_CLASS, WizardStepper, } from './Dialog';
|
|
2
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Dialog/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,MAAM,EACN,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,WAAW,EACX,aAAa,EACb,UAAU,EACV,KAAK,eAAe,EACpB,yBAAyB,EACzB,aAAa,GACb,MAAM,UAAU,CAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { D as i, a as l, b as s, c as g, d as D, e, f as r, g as t, h as p, i as C, j as F, F as O, W as T } from "../shared/Dialog.js";
|
|
2
|
+
export {
|
|
3
|
+
i as Dialog,
|
|
4
|
+
l as DialogClose,
|
|
5
|
+
s as DialogContent,
|
|
6
|
+
g as DialogDescription,
|
|
7
|
+
D as DialogFooter,
|
|
8
|
+
e as DialogHeader,
|
|
9
|
+
r as DialogOverlay,
|
|
10
|
+
t as DialogPortal,
|
|
11
|
+
p as DialogTitle,
|
|
12
|
+
C as DialogTrigger,
|
|
13
|
+
F as FORM_DIALOG_CONTENT_CLASS,
|
|
14
|
+
O as FormDialog,
|
|
15
|
+
T as WizardStepper
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=Dialog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Dialog.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
export type FieldRow = {
|
|
3
|
+
label: string;
|
|
4
|
+
value: React.ReactNode;
|
|
5
|
+
/** Use for multiline content like descriptions (adds align-top + pre-wrap). */
|
|
6
|
+
multiline?: boolean;
|
|
7
|
+
} | null | undefined | false | 0 | '';
|
|
8
|
+
export interface FieldsTableProps {
|
|
9
|
+
rows: FieldRow[];
|
|
10
|
+
}
|
|
11
|
+
export declare function FieldsTable({ rows }: FieldsTableProps): import("react/jsx-runtime").JSX.Element | null;
|
|
12
|
+
//# sourceMappingURL=FieldsTable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FieldsTable.d.ts","sourceRoot":"","sources":["../../../src/components/FieldsTable/FieldsTable.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAA;AAEnC,MAAM,MAAM,QAAQ,GACjB;IACA,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,KAAK,CAAC,SAAS,CAAA;IACtB,+EAA+E;IAC/E,SAAS,CAAC,EAAE,OAAO,CAAA;CAClB,GACD,IAAI,GACJ,SAAS,GACT,KAAK,GACL,CAAC,GACD,EAAE,CAAA;AAEL,MAAM,WAAW,gBAAgB;IAChC,IAAI,EAAE,QAAQ,EAAE,CAAA;CAChB;AAED,wBAAgB,WAAW,CAAC,EAAE,IAAI,EAAE,EAAE,gBAAgB,kDAsCrD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/FieldsTable/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,KAAK,QAAQ,EAAE,KAAK,gBAAgB,EAAE,MAAM,eAAe,CAAA"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { jsx as l, jsxs as n } from "react/jsx-runtime";
|
|
2
|
+
import { c as r } from "../shared/utils.js";
|
|
3
|
+
function m({ rows: i }) {
|
|
4
|
+
const t = i.filter(
|
|
5
|
+
(e) => !!e
|
|
6
|
+
);
|
|
7
|
+
return t.length === 0 ? null : /* @__PURE__ */ l(
|
|
8
|
+
"table",
|
|
9
|
+
{
|
|
10
|
+
"data-slot": "fields-table",
|
|
11
|
+
className: "w-full border-0 text-left",
|
|
12
|
+
children: /* @__PURE__ */ l("tbody", { children: t.map((e, a) => /* @__PURE__ */ n("tr", { children: [
|
|
13
|
+
/* @__PURE__ */ l(
|
|
14
|
+
"th",
|
|
15
|
+
{
|
|
16
|
+
scope: "row",
|
|
17
|
+
className: r(
|
|
18
|
+
"py-1 pr-4 text-sm font-medium text-muted-foreground",
|
|
19
|
+
a === 0 && "w-[10rem]",
|
|
20
|
+
e.multiline && "align-top"
|
|
21
|
+
),
|
|
22
|
+
children: e.label
|
|
23
|
+
}
|
|
24
|
+
),
|
|
25
|
+
/* @__PURE__ */ l(
|
|
26
|
+
"td",
|
|
27
|
+
{
|
|
28
|
+
className: r(
|
|
29
|
+
"py-1 text-foreground",
|
|
30
|
+
e.multiline && "whitespace-pre-wrap"
|
|
31
|
+
),
|
|
32
|
+
children: e.value
|
|
33
|
+
}
|
|
34
|
+
)
|
|
35
|
+
] }, e.label)) })
|
|
36
|
+
}
|
|
37
|
+
);
|
|
38
|
+
}
|
|
39
|
+
export {
|
|
40
|
+
m as FieldsTable
|
|
41
|
+
};
|
|
42
|
+
//# sourceMappingURL=FieldsTable.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FieldsTable.js","sources":["../../src/components/FieldsTable/FieldsTable.tsx"],"sourcesContent":["import { cn } from '@/utils'\nimport type * as React from 'react'\n\nexport type FieldRow =\n\t| {\n\t\t\tlabel: string\n\t\t\tvalue: React.ReactNode\n\t\t\t/** Use for multiline content like descriptions (adds align-top + pre-wrap). */\n\t\t\tmultiline?: boolean\n\t }\n\t| null\n\t| undefined\n\t| false\n\t| 0\n\t| ''\n\nexport interface FieldsTableProps {\n\trows: FieldRow[]\n}\n\nexport function FieldsTable({ rows }: FieldsTableProps) {\n\tconst visibleRows = rows.filter(\n\t\t(r): r is Exclude<FieldRow, null | undefined | false | 0 | ''> => !!r,\n\t)\n\n\tif (visibleRows.length === 0) return null\n\n\treturn (\n\t\t<table\n\t\t\tdata-slot=\"fields-table\"\n\t\t\tclassName=\"w-full border-0 text-left\"\n\t\t>\n\t\t\t<tbody>\n\t\t\t\t{visibleRows.map((row, i) => (\n\t\t\t\t\t<tr key={row.label}>\n\t\t\t\t\t\t<th\n\t\t\t\t\t\t\tscope=\"row\"\n\t\t\t\t\t\t\tclassName={cn(\n\t\t\t\t\t\t\t\t'py-1 pr-4 text-sm font-medium text-muted-foreground',\n\t\t\t\t\t\t\t\ti === 0 && 'w-[10rem]',\n\t\t\t\t\t\t\t\trow.multiline && 'align-top',\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{row.label}\n\t\t\t\t\t\t</th>\n\t\t\t\t\t\t<td\n\t\t\t\t\t\t\tclassName={cn(\n\t\t\t\t\t\t\t\t'py-1 text-foreground',\n\t\t\t\t\t\t\t\trow.multiline && 'whitespace-pre-wrap',\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{row.value}\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t))}\n\t\t\t</tbody>\n\t\t</table>\n\t)\n}\n"],"names":["FieldsTable","rows","visibleRows","r","jsx","row","i","cn"],"mappings":";;AAoBO,SAASA,EAAY,EAAE,MAAAC,KAA0B;AACvD,QAAMC,IAAcD,EAAK;AAAA,IACxB,CAACE,MAAiE,CAAC,CAACA;AAAA,EAAA;AAGrE,SAAID,EAAY,WAAW,IAAU,OAGpC,gBAAAE;AAAA,IAAC;AAAA,IAAA;AAAA,MACA,aAAU;AAAA,MACV,WAAU;AAAA,MAEV,UAAA,gBAAAA,EAAC,WACC,UAAAF,EAAY,IAAI,CAACG,GAAKC,wBACrB,MAAA,EACA,UAAA;AAAA,QAAA,gBAAAF;AAAA,UAAC;AAAA,UAAA;AAAA,YACA,OAAM;AAAA,YACN,WAAWG;AAAA,cACV;AAAA,cACAD,MAAM,KAAK;AAAA,cACXD,EAAI,aAAa;AAAA,YAAA;AAAA,YAGjB,UAAAA,EAAI;AAAA,UAAA;AAAA,QAAA;AAAA,QAEN,gBAAAD;AAAA,UAAC;AAAA,UAAA;AAAA,YACA,WAAWG;AAAA,cACV;AAAA,cACAF,EAAI,aAAa;AAAA,YAAA;AAAA,YAGjB,UAAAA,EAAI;AAAA,UAAA;AAAA,QAAA;AAAA,MACN,KAlBQA,EAAI,KAmBb,CACA,EAAA,CACF;AAAA,IAAA;AAAA,EAAA;AAGH;"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
3
|
+
export declare function Label({ className, ...props }: React.ComponentProps<typeof LabelPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
//# sourceMappingURL=Label.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Label.d.ts","sourceRoot":"","sources":["../../../src/components/Label/Label.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,cAAc,MAAM,uBAAuB,CAAA;AAIvD,wBAAgB,KAAK,CAAC,EACrB,SAAS,EACT,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,IAAI,CAAC,2CAWlD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Label/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import * as a from "@radix-ui/react-label";
|
|
4
|
+
import { c as r } from "../shared/utils.js";
|
|
5
|
+
function s({
|
|
6
|
+
className: e,
|
|
7
|
+
...t
|
|
8
|
+
}) {
|
|
9
|
+
return /* @__PURE__ */ o(
|
|
10
|
+
a.Root,
|
|
11
|
+
{
|
|
12
|
+
"data-slot": "label",
|
|
13
|
+
className: r(
|
|
14
|
+
"flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",
|
|
15
|
+
e
|
|
16
|
+
),
|
|
17
|
+
...t
|
|
18
|
+
}
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
s as Label
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=Label.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Label.js","sources":["../../src/components/Label/Label.tsx"],"sourcesContent":["'use client'\n\nimport * as React from 'react'\nimport * as LabelPrimitive from '@radix-ui/react-label'\n\nimport { cn } from '@/utils'\n\nexport function Label({\n\tclassName,\n\t...props\n}: React.ComponentProps<typeof LabelPrimitive.Root>) {\n\treturn (\n\t\t<LabelPrimitive.Root\n\t\t\tdata-slot=\"label\"\n\t\t\tclassName={cn(\n\t\t\t\t'flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50',\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t)\n}\n"],"names":["Label","className","props","jsx","LabelPrimitive","cn"],"mappings":";;;;AAOO,SAASA,EAAM;AAAA,EACrB,WAAAC;AAAA,EACA,GAAGC;AACJ,GAAqD;AACpD,SACC,gBAAAC;AAAA,IAACC,EAAe;AAAA,IAAf;AAAA,MACA,aAAU;AAAA,MACV,WAAWC;AAAA,QACV;AAAA,QACAJ;AAAA,MAAA;AAAA,MAEA,GAAGC;AAAA,IAAA;AAAA,EAAA;AAGP;"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { VariantProps } from 'class-variance-authority';
|
|
3
|
+
declare const pageHeaderVariants: (props?: ({
|
|
4
|
+
size?: "default" | "sm" | null | undefined;
|
|
5
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
|
+
export declare function PageHeader({ size, className, ...props }: React.ComponentProps<'h1'> & VariantProps<typeof pageHeaderVariants>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare const pageDescriptionVariants: (props?: ({
|
|
8
|
+
size?: "default" | "sm" | null | undefined;
|
|
9
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
10
|
+
export declare function PageDescription({ size, className, ...props }: React.ComponentProps<'p'> & VariantProps<typeof pageDescriptionVariants>): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=PageHeader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PageHeader.d.ts","sourceRoot":"","sources":["../../../src/components/PageHeader/PageHeader.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAE5D,QAAA,MAAM,kBAAkB;;8EAUtB,CAAA;AAEF,wBAAgB,UAAU,CAAC,EAC1B,IAAI,EACJ,SAAS,EACT,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,GAAG,YAAY,CAAC,OAAO,kBAAkB,CAAC,2CAQtE;AAED,QAAA,MAAM,uBAAuB;;8EAU3B,CAAA;AAEF,wBAAgB,eAAe,CAAC,EAC/B,IAAI,EACJ,SAAS,EACT,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,GAAG,YAAY,CAAC,OAAO,uBAAuB,CAAC,2CAQ1E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/PageHeader/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PageHeader.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -1,46 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import * as e from "@radix-ui/react-popover";
|
|
3
|
-
import "react";
|
|
4
|
-
import { c as i } from "../shared/utils.js";
|
|
5
|
-
function m({
|
|
6
|
-
...o
|
|
7
|
-
}) {
|
|
8
|
-
return /* @__PURE__ */ t(e.Root, { "data-slot": "popover", ...o });
|
|
9
|
-
}
|
|
10
|
-
function c({
|
|
11
|
-
...o
|
|
12
|
-
}) {
|
|
13
|
-
return /* @__PURE__ */ t(e.Trigger, { "data-slot": "popover-trigger", ...o });
|
|
14
|
-
}
|
|
15
|
-
function f({
|
|
16
|
-
className: o,
|
|
17
|
-
align: r = "center",
|
|
18
|
-
sideOffset: a = 4,
|
|
19
|
-
...n
|
|
20
|
-
}) {
|
|
21
|
-
return /* @__PURE__ */ t(e.Portal, { children: /* @__PURE__ */ t(
|
|
22
|
-
e.Content,
|
|
23
|
-
{
|
|
24
|
-
"data-slot": "popover-content",
|
|
25
|
-
align: r,
|
|
26
|
-
sideOffset: a,
|
|
27
|
-
className: i(
|
|
28
|
-
"bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded border-container p-4 outline-hidden",
|
|
29
|
-
o
|
|
30
|
-
),
|
|
31
|
-
...n
|
|
32
|
-
}
|
|
33
|
-
) });
|
|
34
|
-
}
|
|
35
|
-
function l({
|
|
36
|
-
...o
|
|
37
|
-
}) {
|
|
38
|
-
return /* @__PURE__ */ t(e.Anchor, { "data-slot": "popover-anchor", ...o });
|
|
39
|
-
}
|
|
1
|
+
import { P as e, a, b as p, c as P } from "../shared/Popover.js";
|
|
40
2
|
export {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
3
|
+
e as Popover,
|
|
4
|
+
a as PopoverAnchor,
|
|
5
|
+
p as PopoverContent,
|
|
6
|
+
P as PopoverTrigger
|
|
45
7
|
};
|
|
46
8
|
//# sourceMappingURL=Popover.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Popover.js","sources":[
|
|
1
|
+
{"version":3,"file":"Popover.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
/** Native select styled to match design-system Input (form control). */
|
|
3
|
+
export declare function Select({ className, ref, ...props }: React.ComponentProps<'select'> & {
|
|
4
|
+
ref?: React.Ref<HTMLSelectElement>;
|
|
5
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
//# sourceMappingURL=Select.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../src/components/Select/Select.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,wEAAwE;AACxE,wBAAgB,MAAM,CAAC,EACtB,SAAS,EACT,GAAG,EACH,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC,GAAG;IAAE,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAA;CAAE,2CAczE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Select/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { c as s } from "../shared/utils.js";
|
|
4
|
+
function a({
|
|
5
|
+
className: e,
|
|
6
|
+
ref: o,
|
|
7
|
+
...r
|
|
8
|
+
}) {
|
|
9
|
+
return /* @__PURE__ */ i(
|
|
10
|
+
"select",
|
|
11
|
+
{
|
|
12
|
+
ref: o,
|
|
13
|
+
"data-slot": "select",
|
|
14
|
+
className: s(
|
|
15
|
+
"flex h-9 w-full rounded border border-input bg-transparent px-3 py-1 text-sm shadow-xs transition-colors outline-none",
|
|
16
|
+
"focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:border-ring",
|
|
17
|
+
"disabled:pointer-events-none disabled:opacity-50",
|
|
18
|
+
e
|
|
19
|
+
),
|
|
20
|
+
...r
|
|
21
|
+
}
|
|
22
|
+
);
|
|
23
|
+
}
|
|
24
|
+
export {
|
|
25
|
+
a as Select
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=Select.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Select.js","sources":["../../src/components/Select/Select.tsx"],"sourcesContent":["import * as React from 'react'\n\nimport { cn } from '@/utils'\n\n/** Native select styled to match design-system Input (form control). */\nexport function Select({\n\tclassName,\n\tref,\n\t...props\n}: React.ComponentProps<'select'> & { ref?: React.Ref<HTMLSelectElement> }) {\n\treturn (\n\t\t<select\n\t\t\tref={ref}\n\t\t\tdata-slot=\"select\"\n\t\t\tclassName={cn(\n\t\t\t\t'flex h-9 w-full rounded border border-input bg-transparent px-3 py-1 text-sm shadow-xs transition-colors outline-none',\n\t\t\t\t'focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:border-ring',\n\t\t\t\t'disabled:pointer-events-none disabled:opacity-50',\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t)\n}\n"],"names":["Select","className","ref","props","jsx","cn"],"mappings":";;;AAKO,SAASA,EAAO;AAAA,EACtB,WAAAC;AAAA,EACA,KAAAC;AAAA,EACA,GAAGC;AACJ,GAA4E;AAC3E,SACC,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACA,KAAAF;AAAA,MACA,aAAU;AAAA,MACV,WAAWG;AAAA,QACV;AAAA,QACA;AAAA,QACA;AAAA,QACAJ;AAAA,MAAA;AAAA,MAEA,GAAGE;AAAA,IAAA;AAAA,EAAA;AAGP;"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare function Table({ className, ...props }: React.ComponentProps<'table'>): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare function TableHeader({ className, ...props }: React.ComponentProps<'thead'>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare function TableBody({ className, ...props }: React.ComponentProps<'tbody'>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare function TableFooter({ className, ...props }: React.ComponentProps<'tfoot'>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare function TableRow({ className, ...props }: React.ComponentProps<'tr'>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare function TableHead({ className, ...props }: React.ComponentProps<'th'>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare function TableCell({ className, ...props }: React.ComponentProps<'td'>): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare function TableCaption({ className, ...props }: React.ComponentProps<'caption'>): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
//# sourceMappingURL=Table.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../src/components/Table/Table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,wBAAgB,KAAK,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,2CAa3E;AAED,wBAAgB,WAAW,CAAC,EAC3B,SAAS,EACT,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,2CAQ/B;AAED,wBAAgB,SAAS,CAAC,EACzB,SAAS,EACT,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,2CAQ/B;AAED,wBAAgB,WAAW,CAAC,EAC3B,SAAS,EACT,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,2CAW/B;AAED,wBAAgB,QAAQ,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,2CAW3E;AAED,wBAAgB,SAAS,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,2CAW5E;AAED,wBAAgB,SAAS,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,2CAW5E;AAED,wBAAgB,YAAY,CAAC,EAC5B,SAAS,EACT,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,SAAS,CAAC,2CAQjC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Table/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,EACL,WAAW,EACX,SAAS,EACT,WAAW,EACX,SAAS,EACT,QAAQ,EACR,SAAS,EACT,YAAY,GACZ,MAAM,SAAS,CAAA"}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { c as o } from "../shared/utils.js";
|
|
4
|
+
function s({ className: t, ...e }) {
|
|
5
|
+
return /* @__PURE__ */ a(
|
|
6
|
+
"div",
|
|
7
|
+
{
|
|
8
|
+
"data-slot": "table-container",
|
|
9
|
+
className: "relative w-full overflow-x-auto",
|
|
10
|
+
children: /* @__PURE__ */ a(
|
|
11
|
+
"table",
|
|
12
|
+
{
|
|
13
|
+
"data-slot": "table",
|
|
14
|
+
className: o("w-full caption-bottom text-sm", t),
|
|
15
|
+
...e
|
|
16
|
+
}
|
|
17
|
+
)
|
|
18
|
+
}
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
function d({
|
|
22
|
+
className: t,
|
|
23
|
+
...e
|
|
24
|
+
}) {
|
|
25
|
+
return /* @__PURE__ */ a(
|
|
26
|
+
"thead",
|
|
27
|
+
{
|
|
28
|
+
"data-slot": "table-header",
|
|
29
|
+
className: o("[&_tr]:border-b", t),
|
|
30
|
+
...e
|
|
31
|
+
}
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
function c({
|
|
35
|
+
className: t,
|
|
36
|
+
...e
|
|
37
|
+
}) {
|
|
38
|
+
return /* @__PURE__ */ a(
|
|
39
|
+
"tbody",
|
|
40
|
+
{
|
|
41
|
+
"data-slot": "table-body",
|
|
42
|
+
className: o("[&_tr:last-child]:border-0", t),
|
|
43
|
+
...e
|
|
44
|
+
}
|
|
45
|
+
);
|
|
46
|
+
}
|
|
47
|
+
function b({
|
|
48
|
+
className: t,
|
|
49
|
+
...e
|
|
50
|
+
}) {
|
|
51
|
+
return /* @__PURE__ */ a(
|
|
52
|
+
"tfoot",
|
|
53
|
+
{
|
|
54
|
+
"data-slot": "table-footer",
|
|
55
|
+
className: o(
|
|
56
|
+
"bg-muted/50 border-t font-medium [&>tr]:last:border-b-0",
|
|
57
|
+
t
|
|
58
|
+
),
|
|
59
|
+
...e
|
|
60
|
+
}
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
function i({ className: t, ...e }) {
|
|
64
|
+
return /* @__PURE__ */ a(
|
|
65
|
+
"tr",
|
|
66
|
+
{
|
|
67
|
+
"data-slot": "table-row",
|
|
68
|
+
className: o(
|
|
69
|
+
"hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",
|
|
70
|
+
t
|
|
71
|
+
),
|
|
72
|
+
...e
|
|
73
|
+
}
|
|
74
|
+
);
|
|
75
|
+
}
|
|
76
|
+
function m({ className: t, ...e }) {
|
|
77
|
+
return /* @__PURE__ */ a(
|
|
78
|
+
"th",
|
|
79
|
+
{
|
|
80
|
+
"data-slot": "table-head",
|
|
81
|
+
className: o(
|
|
82
|
+
"text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
|
|
83
|
+
t
|
|
84
|
+
),
|
|
85
|
+
...e
|
|
86
|
+
}
|
|
87
|
+
);
|
|
88
|
+
}
|
|
89
|
+
function u({ className: t, ...e }) {
|
|
90
|
+
return /* @__PURE__ */ a(
|
|
91
|
+
"td",
|
|
92
|
+
{
|
|
93
|
+
"data-slot": "table-cell",
|
|
94
|
+
className: o(
|
|
95
|
+
"p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
|
|
96
|
+
t
|
|
97
|
+
),
|
|
98
|
+
...e
|
|
99
|
+
}
|
|
100
|
+
);
|
|
101
|
+
}
|
|
102
|
+
function f({
|
|
103
|
+
className: t,
|
|
104
|
+
...e
|
|
105
|
+
}) {
|
|
106
|
+
return /* @__PURE__ */ a(
|
|
107
|
+
"caption",
|
|
108
|
+
{
|
|
109
|
+
"data-slot": "table-caption",
|
|
110
|
+
className: o("text-muted-foreground mt-4 text-sm", t),
|
|
111
|
+
...e
|
|
112
|
+
}
|
|
113
|
+
);
|
|
114
|
+
}
|
|
115
|
+
export {
|
|
116
|
+
s as Table,
|
|
117
|
+
c as TableBody,
|
|
118
|
+
f as TableCaption,
|
|
119
|
+
u as TableCell,
|
|
120
|
+
b as TableFooter,
|
|
121
|
+
m as TableHead,
|
|
122
|
+
d as TableHeader,
|
|
123
|
+
i as TableRow
|
|
124
|
+
};
|
|
125
|
+
//# sourceMappingURL=Table.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Table.js","sources":["../../src/components/Table/Table.tsx"],"sourcesContent":["import * as React from 'react'\n\nimport { cn } from '@/utils'\n\nexport function Table({ className, ...props }: React.ComponentProps<'table'>) {\n\treturn (\n\t\t<div\n\t\t\tdata-slot=\"table-container\"\n\t\t\tclassName=\"relative w-full overflow-x-auto\"\n\t\t>\n\t\t\t<table\n\t\t\t\tdata-slot=\"table\"\n\t\t\t\tclassName={cn('w-full caption-bottom text-sm', className)}\n\t\t\t\t{...props}\n\t\t\t/>\n\t\t</div>\n\t)\n}\n\nexport function TableHeader({\n\tclassName,\n\t...props\n}: React.ComponentProps<'thead'>) {\n\treturn (\n\t\t<thead\n\t\t\tdata-slot=\"table-header\"\n\t\t\tclassName={cn('[&_tr]:border-b', className)}\n\t\t\t{...props}\n\t\t/>\n\t)\n}\n\nexport function TableBody({\n\tclassName,\n\t...props\n}: React.ComponentProps<'tbody'>) {\n\treturn (\n\t\t<tbody\n\t\t\tdata-slot=\"table-body\"\n\t\t\tclassName={cn('[&_tr:last-child]:border-0', className)}\n\t\t\t{...props}\n\t\t/>\n\t)\n}\n\nexport function TableFooter({\n\tclassName,\n\t...props\n}: React.ComponentProps<'tfoot'>) {\n\treturn (\n\t\t<tfoot\n\t\t\tdata-slot=\"table-footer\"\n\t\t\tclassName={cn(\n\t\t\t\t'bg-muted/50 border-t font-medium [&>tr]:last:border-b-0',\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t)\n}\n\nexport function TableRow({ className, ...props }: React.ComponentProps<'tr'>) {\n\treturn (\n\t\t<tr\n\t\t\tdata-slot=\"table-row\"\n\t\t\tclassName={cn(\n\t\t\t\t'hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors',\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t)\n}\n\nexport function TableHead({ className, ...props }: React.ComponentProps<'th'>) {\n\treturn (\n\t\t<th\n\t\t\tdata-slot=\"table-head\"\n\t\t\tclassName={cn(\n\t\t\t\t'text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]',\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t)\n}\n\nexport function TableCell({ className, ...props }: React.ComponentProps<'td'>) {\n\treturn (\n\t\t<td\n\t\t\tdata-slot=\"table-cell\"\n\t\t\tclassName={cn(\n\t\t\t\t'p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]',\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t)\n}\n\nexport function TableCaption({\n\tclassName,\n\t...props\n}: React.ComponentProps<'caption'>) {\n\treturn (\n\t\t<caption\n\t\t\tdata-slot=\"table-caption\"\n\t\t\tclassName={cn('text-muted-foreground mt-4 text-sm', className)}\n\t\t\t{...props}\n\t\t/>\n\t)\n}\n"],"names":["Table","className","props","jsx","cn","TableHeader","TableBody","TableFooter","TableRow","TableHead","TableCell","TableCaption"],"mappings":";;;AAIO,SAASA,EAAM,EAAE,WAAAC,GAAW,GAAGC,KAAwC;AAC7E,SACC,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACA,aAAU;AAAA,MACV,WAAU;AAAA,MAEV,UAAA,gBAAAA;AAAA,QAAC;AAAA,QAAA;AAAA,UACA,aAAU;AAAA,UACV,WAAWC,EAAG,iCAAiCH,CAAS;AAAA,UACvD,GAAGC;AAAA,QAAA;AAAA,MAAA;AAAA,IACL;AAAA,EAAA;AAGH;AAEO,SAASG,EAAY;AAAA,EAC3B,WAAAJ;AAAA,EACA,GAAGC;AACJ,GAAkC;AACjC,SACC,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACA,aAAU;AAAA,MACV,WAAWC,EAAG,mBAAmBH,CAAS;AAAA,MACzC,GAAGC;AAAA,IAAA;AAAA,EAAA;AAGP;AAEO,SAASI,EAAU;AAAA,EACzB,WAAAL;AAAA,EACA,GAAGC;AACJ,GAAkC;AACjC,SACC,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACA,aAAU;AAAA,MACV,WAAWC,EAAG,8BAA8BH,CAAS;AAAA,MACpD,GAAGC;AAAA,IAAA;AAAA,EAAA;AAGP;AAEO,SAASK,EAAY;AAAA,EAC3B,WAAAN;AAAA,EACA,GAAGC;AACJ,GAAkC;AACjC,SACC,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACA,aAAU;AAAA,MACV,WAAWC;AAAA,QACV;AAAA,QACAH;AAAA,MAAA;AAAA,MAEA,GAAGC;AAAA,IAAA;AAAA,EAAA;AAGP;AAEO,SAASM,EAAS,EAAE,WAAAP,GAAW,GAAGC,KAAqC;AAC7E,SACC,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACA,aAAU;AAAA,MACV,WAAWC;AAAA,QACV;AAAA,QACAH;AAAA,MAAA;AAAA,MAEA,GAAGC;AAAA,IAAA;AAAA,EAAA;AAGP;AAEO,SAASO,EAAU,EAAE,WAAAR,GAAW,GAAGC,KAAqC;AAC9E,SACC,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACA,aAAU;AAAA,MACV,WAAWC;AAAA,QACV;AAAA,QACAH;AAAA,MAAA;AAAA,MAEA,GAAGC;AAAA,IAAA;AAAA,EAAA;AAGP;AAEO,SAASQ,EAAU,EAAE,WAAAT,GAAW,GAAGC,KAAqC;AAC9E,SACC,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACA,aAAU;AAAA,MACV,WAAWC;AAAA,QACV;AAAA,QACAH;AAAA,MAAA;AAAA,MAEA,GAAGC;AAAA,IAAA;AAAA,EAAA;AAGP;AAEO,SAASS,EAAa;AAAA,EAC5B,WAAAV;AAAA,EACA,GAAGC;AACJ,GAAoC;AACnC,SACC,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACA,aAAU;AAAA,MACV,WAAWC,EAAG,sCAAsCH,CAAS;AAAA,MAC5D,GAAGC;AAAA,IAAA;AAAA,EAAA;AAGP;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Textarea.d.ts","sourceRoot":"","sources":["../../../src/components/Textarea/Textarea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,wBAAgB,QAAQ,CAAC,EACxB,SAAS,EACT,GAAG,KAAK,EACR,EAAE,KAAK,CAAC,cAAc,CAAC,UAAU,CAAC,2CAWlC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Textarea/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { c as t } from "../shared/utils.js";
|
|
4
|
+
function d({
|
|
5
|
+
className: r,
|
|
6
|
+
...e
|
|
7
|
+
}) {
|
|
8
|
+
return /* @__PURE__ */ i(
|
|
9
|
+
"textarea",
|
|
10
|
+
{
|
|
11
|
+
"data-slot": "textarea",
|
|
12
|
+
className: t(
|
|
13
|
+
"border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
|
|
14
|
+
r
|
|
15
|
+
),
|
|
16
|
+
...e
|
|
17
|
+
}
|
|
18
|
+
);
|
|
19
|
+
}
|
|
20
|
+
export {
|
|
21
|
+
d as Textarea
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=Textarea.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Textarea.js","sources":["../../src/components/Textarea/Textarea.tsx"],"sourcesContent":["import * as React from 'react'\n\nimport { cn } from '@/utils'\n\nexport function Textarea({\n\tclassName,\n\t...props\n}: React.ComponentProps<'textarea'>) {\n\treturn (\n\t\t<textarea\n\t\t\tdata-slot=\"textarea\"\n\t\t\tclassName={cn(\n\t\t\t\t'border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm',\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t/>\n\t)\n}\n"],"names":["Textarea","className","props","jsx","cn"],"mappings":";;;AAIO,SAASA,EAAS;AAAA,EACxB,WAAAC;AAAA,EACA,GAAGC;AACJ,GAAqC;AACpC,SACC,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACA,aAAU;AAAA,MACV,WAAWC;AAAA,QACV;AAAA,QACAH;AAAA,MAAA;AAAA,MAEA,GAAGC;AAAA,IAAA;AAAA,EAAA;AAGP;"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Toaster as Sonner } from 'sonner';
|
|
2
|
+
export type ToasterProps = React.ComponentProps<typeof Sonner> & {
|
|
3
|
+
/** Theme override. Pass 'light', 'dark', or 'system'. If not provided, Sonner uses its default behavior. */
|
|
4
|
+
theme?: 'light' | 'dark' | 'system';
|
|
5
|
+
};
|
|
6
|
+
export declare function Toaster({ theme, ...props }: ToasterProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=Toaster.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Toaster.d.ts","sourceRoot":"","sources":["../../../src/components/Toaster/Toaster.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,QAAQ,CAAA;AAE1C,MAAM,MAAM,YAAY,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,GAAG;IAChE,4GAA4G;IAC5G,KAAK,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAA;CACnC,CAAA;AAED,wBAAgB,OAAO,CAAC,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,YAAY,2CAqBxD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Toaster/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,WAAW,CAAA"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { Toaster as e } from "sonner";
|
|
3
|
+
function u({ theme: t, ...o }) {
|
|
4
|
+
return /* @__PURE__ */ r(
|
|
5
|
+
e,
|
|
6
|
+
{
|
|
7
|
+
theme: t,
|
|
8
|
+
className: "toaster group",
|
|
9
|
+
richColors: !0,
|
|
10
|
+
position: "top-center",
|
|
11
|
+
toastOptions: {
|
|
12
|
+
classNames: {
|
|
13
|
+
toast: "group toast group-[.toaster]:bg-card group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",
|
|
14
|
+
description: "group-[.toast]:text-muted-foreground",
|
|
15
|
+
actionButton: "group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",
|
|
16
|
+
cancelButton: "group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
...o
|
|
20
|
+
}
|
|
21
|
+
);
|
|
22
|
+
}
|
|
23
|
+
export {
|
|
24
|
+
u as Toaster
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=Toaster.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Toaster.js","sources":["../../src/components/Toaster/Toaster.tsx"],"sourcesContent":["'use client'\n\nimport { Toaster as Sonner } from 'sonner'\n\nexport type ToasterProps = React.ComponentProps<typeof Sonner> & {\n\t/** Theme override. Pass 'light', 'dark', or 'system'. If not provided, Sonner uses its default behavior. */\n\ttheme?: 'light' | 'dark' | 'system'\n}\n\nexport function Toaster({ theme, ...props }: ToasterProps) {\n\treturn (\n\t\t<Sonner\n\t\t\ttheme={theme}\n\t\t\tclassName=\"toaster group\"\n\t\t\trichColors\n\t\t\tposition=\"top-center\"\n\t\t\ttoastOptions={{\n\t\t\t\tclassNames: {\n\t\t\t\t\ttoast:\n\t\t\t\t\t\t'group toast group-[.toaster]:bg-card group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg',\n\t\t\t\t\tdescription: 'group-[.toast]:text-muted-foreground',\n\t\t\t\t\tactionButton:\n\t\t\t\t\t\t'group-[.toast]:bg-primary group-[.toast]:text-primary-foreground',\n\t\t\t\t\tcancelButton:\n\t\t\t\t\t\t'group-[.toast]:bg-muted group-[.toast]:text-muted-foreground',\n\t\t\t\t},\n\t\t\t}}\n\t\t\t{...props}\n\t\t/>\n\t)\n}\n"],"names":["Toaster","theme","props","jsx","Sonner"],"mappings":";;AASO,SAASA,EAAQ,EAAE,OAAAC,GAAO,GAAGC,KAAuB;AAC1D,SACC,gBAAAC;AAAA,IAACC;AAAAA,IAAA;AAAA,MACA,OAAAH;AAAA,MACA,WAAU;AAAA,MACV,YAAU;AAAA,MACV,UAAS;AAAA,MACT,cAAc;AAAA,QACb,YAAY;AAAA,UACX,OACC;AAAA,UACD,aAAa;AAAA,UACb,cACC;AAAA,UACD,cACC;AAAA,QAAA;AAAA,MACF;AAAA,MAEA,GAAGC;AAAA,IAAA;AAAA,EAAA;AAGP;"}
|