@voyantjs/ui 0.6.7
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/README.md +30 -0
- package/dist/components/accordion.d.ts +7 -0
- package/dist/components/accordion.d.ts.map +1 -0
- package/dist/components/accordion.js +17 -0
- package/dist/components/alert-dialog.d.ts +19 -0
- package/dist/components/alert-dialog.d.ts.map +1 -0
- package/dist/components/alert-dialog.js +42 -0
- package/dist/components/alert.d.ts +11 -0
- package/dist/components/alert.d.ts.map +1 -0
- package/dist/components/alert.js +27 -0
- package/dist/components/aspect-ratio.d.ts +5 -0
- package/dist/components/aspect-ratio.d.ts.map +1 -0
- package/dist/components/aspect-ratio.js +8 -0
- package/dist/components/avatar.d.ts +12 -0
- package/dist/components/avatar.d.ts.map +1 -0
- package/dist/components/avatar.js +22 -0
- package/dist/components/badge.d.ts +8 -0
- package/dist/components/badge.d.ts.map +1 -0
- package/dist/components/badge.js +33 -0
- package/dist/components/breadcrumb.d.ts +11 -0
- package/dist/components/breadcrumb.d.ts.map +1 -0
- package/dist/components/breadcrumb.js +36 -0
- package/dist/components/button-group.d.ts +11 -0
- package/dist/components/button-group.d.ts.map +1 -0
- package/dist/components/button-group.js +36 -0
- package/dist/components/button.d.ts +9 -0
- package/dist/components/button.d.ts.map +1 -0
- package/dist/components/button.js +34 -0
- package/dist/components/calendar.d.ts +11 -0
- package/dist/components/calendar.d.ts.map +1 -0
- package/dist/components/calendar.js +76 -0
- package/dist/components/card.d.ts +12 -0
- package/dist/components/card.d.ts.map +1 -0
- package/dist/components/card.js +24 -0
- package/dist/components/carousel.d.ts +29 -0
- package/dist/components/carousel.d.ts.map +1 -0
- package/dist/components/carousel.js +91 -0
- package/dist/components/chart.d.ts +45 -0
- package/dist/components/chart.d.ts.map +1 -0
- package/dist/components/chart.js +121 -0
- package/dist/components/checkbox.d.ts +4 -0
- package/dist/components/checkbox.d.ts.map +1 -0
- package/dist/components/checkbox.js +8 -0
- package/dist/components/collapsible.d.ts +6 -0
- package/dist/components/collapsible.d.ts.map +1 -0
- package/dist/components/collapsible.js +12 -0
- package/dist/components/combobox.d.ts +25 -0
- package/dist/components/combobox.d.ts.map +1 -0
- package/dist/components/combobox.js +57 -0
- package/dist/components/command.d.ts +20 -0
- package/dist/components/command.d.ts.map +1 -0
- package/dist/components/command.js +35 -0
- package/dist/components/confirm-action-button.d.ts +14 -0
- package/dist/components/confirm-action-button.d.ts.map +1 -0
- package/dist/components/confirm-action-button.js +21 -0
- package/dist/components/context-menu.d.ts +30 -0
- package/dist/components/context-menu.d.ts.map +1 -0
- package/dist/components/context-menu.js +50 -0
- package/dist/components/contract-template-authoring-help.d.ts +32 -0
- package/dist/components/contract-template-authoring-help.d.ts.map +1 -0
- package/dist/components/contract-template-authoring-help.js +37 -0
- package/dist/components/country-combobox.d.ts +9 -0
- package/dist/components/country-combobox.d.ts.map +1 -0
- package/dist/components/country-combobox.js +47 -0
- package/dist/components/currency-combobox.d.ts +14 -0
- package/dist/components/currency-combobox.d.ts.map +1 -0
- package/dist/components/currency-combobox.js +53 -0
- package/dist/components/dashboard-widgets.d.ts +66 -0
- package/dist/components/dashboard-widgets.d.ts.map +1 -0
- package/dist/components/dashboard-widgets.js +64 -0
- package/dist/components/data-table-column-header.d.ts +9 -0
- package/dist/components/data-table-column-header.d.ts.map +1 -0
- package/dist/components/data-table-column-header.js +12 -0
- package/dist/components/data-table-pagination.d.ts +7 -0
- package/dist/components/data-table-pagination.d.ts.map +1 -0
- package/dist/components/data-table-pagination.js +11 -0
- package/dist/components/data-table.d.ts +22 -0
- package/dist/components/data-table.d.ts.map +1 -0
- package/dist/components/data-table.js +55 -0
- package/dist/components/date-picker.d.ts +38 -0
- package/dist/components/date-picker.d.ts.map +1 -0
- package/dist/components/date-picker.js +120 -0
- package/dist/components/date-time-picker.d.ts +30 -0
- package/dist/components/date-time-picker.d.ts.map +1 -0
- package/dist/components/date-time-picker.js +75 -0
- package/dist/components/dialog.d.ts +18 -0
- package/dist/components/dialog.d.ts.map +1 -0
- package/dist/components/dialog.js +37 -0
- package/dist/components/direction.d.ts +2 -0
- package/dist/components/direction.d.ts.map +1 -0
- package/dist/components/direction.js +1 -0
- package/dist/components/drawer.d.ts +14 -0
- package/dist/components/drawer.d.ts.map +1 -0
- package/dist/components/drawer.js +34 -0
- package/dist/components/dropdown-menu.d.ts +30 -0
- package/dist/components/dropdown-menu.d.ts.map +1 -0
- package/dist/components/dropdown-menu.js +50 -0
- package/dist/components/empty.d.ts +12 -0
- package/dist/components/empty.d.ts.map +1 -0
- package/dist/components/empty.js +33 -0
- package/dist/components/field.d.ts +25 -0
- package/dist/components/field.d.ts.map +1 -0
- package/dist/components/field.js +65 -0
- package/dist/components/hover-card.d.ts +6 -0
- package/dist/components/hover-card.d.ts.map +1 -0
- package/dist/components/hover-card.js +13 -0
- package/dist/components/index.d.ts +86 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/index.js +85 -0
- package/dist/components/input-group.d.ts +19 -0
- package/dist/components/input-group.d.ts.map +1 -0
- package/dist/components/input-group.js +73 -0
- package/dist/components/input-otp.d.ts +12 -0
- package/dist/components/input-otp.d.ts.map +1 -0
- package/dist/components/input-otp.js +20 -0
- package/dist/components/input.d.ts +4 -0
- package/dist/components/input.d.ts.map +1 -0
- package/dist/components/input.js +7 -0
- package/dist/components/item.d.ts +23 -0
- package/dist/components/item.d.ts.map +1 -0
- package/dist/components/item.js +78 -0
- package/dist/components/kbd.d.ts +4 -0
- package/dist/components/kbd.d.ts.map +1 -0
- package/dist/components/kbd.js +9 -0
- package/dist/components/label.d.ts +4 -0
- package/dist/components/label.d.ts.map +1 -0
- package/dist/components/label.js +8 -0
- package/dist/components/menubar.d.ts +30 -0
- package/dist/components/menubar.d.ts.map +1 -0
- package/dist/components/menubar.js +56 -0
- package/dist/components/native-select.d.ts +9 -0
- package/dist/components/native-select.d.ts.map +1 -0
- package/dist/components/native-select.js +13 -0
- package/dist/components/navigation-menu.d.ts +12 -0
- package/dist/components/navigation-menu.d.ts.map +1 -0
- package/dist/components/navigation-menu.js +31 -0
- package/dist/components/notification-deliveries-page.d.ts +2 -0
- package/dist/components/notification-deliveries-page.d.ts.map +1 -0
- package/dist/components/notification-deliveries-page.js +22 -0
- package/dist/components/notification-delivery-detail-dialog.d.ts +8 -0
- package/dist/components/notification-delivery-detail-dialog.d.ts.map +1 -0
- package/dist/components/notification-delivery-detail-dialog.js +29 -0
- package/dist/components/notification-reminder-rule-dialog.d.ts +10 -0
- package/dist/components/notification-reminder-rule-dialog.d.ts.map +1 -0
- package/dist/components/notification-reminder-rule-dialog.js +123 -0
- package/dist/components/notification-reminder-rules-page.d.ts +2 -0
- package/dist/components/notification-reminder-rules-page.d.ts.map +1 -0
- package/dist/components/notification-reminder-rules-page.js +35 -0
- package/dist/components/notification-reminder-runs-page.d.ts +2 -0
- package/dist/components/notification-reminder-runs-page.d.ts.map +1 -0
- package/dist/components/notification-reminder-runs-page.js +20 -0
- package/dist/components/notification-template-authoring-help.d.ts +11 -0
- package/dist/components/notification-template-authoring-help.d.ts.map +1 -0
- package/dist/components/notification-template-authoring-help.js +6 -0
- package/dist/components/notification-template-detail-page.d.ts +6 -0
- package/dist/components/notification-template-detail-page.d.ts.map +1 -0
- package/dist/components/notification-template-detail-page.js +145 -0
- package/dist/components/notification-template-dialog.d.ts +10 -0
- package/dist/components/notification-template-dialog.d.ts.map +1 -0
- package/dist/components/notification-template-dialog.js +296 -0
- package/dist/components/notification-templates-page.d.ts +2 -0
- package/dist/components/notification-templates-page.d.ts.map +1 -0
- package/dist/components/notification-templates-page.js +33 -0
- package/dist/components/overview-metric.d.ts +12 -0
- package/dist/components/overview-metric.d.ts.map +1 -0
- package/dist/components/overview-metric.js +6 -0
- package/dist/components/pagination.d.ts +18 -0
- package/dist/components/pagination.d.ts.map +1 -0
- package/dist/components/pagination.js +26 -0
- package/dist/components/popover.d.ts +10 -0
- package/dist/components/popover.d.ts.map +1 -0
- package/dist/components/popover.js +22 -0
- package/dist/components/progress.d.ts +8 -0
- package/dist/components/progress.d.ts.map +1 -0
- package/dist/components/progress.js +19 -0
- package/dist/components/radio-group.d.ts +6 -0
- package/dist/components/radio-group.d.ts.map +1 -0
- package/dist/components/radio-group.js +11 -0
- package/dist/components/resizable.d.ts +8 -0
- package/dist/components/resizable.d.ts.map +1 -0
- package/dist/components/resizable.js +13 -0
- package/dist/components/rich-text-editor.d.ts +13 -0
- package/dist/components/rich-text-editor.d.ts.map +1 -0
- package/dist/components/rich-text-editor.js +71 -0
- package/dist/components/rich-text-variable-extension.d.ts +6 -0
- package/dist/components/rich-text-variable-extension.d.ts.map +1 -0
- package/dist/components/rich-text-variable-extension.js +117 -0
- package/dist/components/scroll-area.d.ts +5 -0
- package/dist/components/scroll-area.d.ts.map +1 -0
- package/dist/components/scroll-area.js +10 -0
- package/dist/components/select.d.ts +16 -0
- package/dist/components/select.d.ts.map +1 -0
- package/dist/components/select.js +33 -0
- package/dist/components/selection-action-bar.d.ts +8 -0
- package/dist/components/selection-action-bar.d.ts.map +1 -0
- package/dist/components/selection-action-bar.js +7 -0
- package/dist/components/separator.d.ts +4 -0
- package/dist/components/separator.d.ts.map +1 -0
- package/dist/components/separator.js +7 -0
- package/dist/components/sheet.d.ts +15 -0
- package/dist/components/sheet.d.ts.map +1 -0
- package/dist/components/sheet.js +37 -0
- package/dist/components/sidebar-core.d.ts +34 -0
- package/dist/components/sidebar-core.d.ts.map +1 -0
- package/dist/components/sidebar-core.js +112 -0
- package/dist/components/sidebar-menu.d.ts +33 -0
- package/dist/components/sidebar-menu.d.ts.map +1 -0
- package/dist/components/sidebar-menu.js +128 -0
- package/dist/components/sidebar.d.ts +3 -0
- package/dist/components/sidebar.d.ts.map +1 -0
- package/dist/components/sidebar.js +2 -0
- package/dist/components/skeleton.d.ts +7 -0
- package/dist/components/skeleton.d.ts.map +1 -0
- package/dist/components/skeleton.js +6 -0
- package/dist/components/slider.d.ts +4 -0
- package/dist/components/slider.d.ts.map +1 -0
- package/dist/components/slider.js +9 -0
- package/dist/components/sonner.d.ts +4 -0
- package/dist/components/sonner.d.ts.map +1 -0
- package/dist/components/sonner.js +24 -0
- package/dist/components/spinner.d.ts +3 -0
- package/dist/components/spinner.d.ts.map +1 -0
- package/dist/components/spinner.js +7 -0
- package/dist/components/switch.d.ts +6 -0
- package/dist/components/switch.d.ts.map +1 -0
- package/dist/components/switch.js +7 -0
- package/dist/components/table.d.ts +11 -0
- package/dist/components/table.d.ts.map +1 -0
- package/dist/components/table.js +27 -0
- package/dist/components/tabs.d.ts +11 -0
- package/dist/components/tabs.d.ts.map +1 -0
- package/dist/components/tabs.js +28 -0
- package/dist/components/textarea.d.ts +4 -0
- package/dist/components/textarea.d.ts.map +1 -0
- package/dist/components/textarea.js +6 -0
- package/dist/components/toggle-group.d.ts +11 -0
- package/dist/components/toggle-group.d.ts.map +1 -0
- package/dist/components/toggle-group.js +24 -0
- package/dist/components/toggle.d.ts +9 -0
- package/dist/components/toggle.d.ts.map +1 -0
- package/dist/components/toggle.js +25 -0
- package/dist/components/tooltip.d.ts +7 -0
- package/dist/components/tooltip.d.ts.map +1 -0
- package/dist/components/tooltip.js +16 -0
- package/dist/components/typography.d.ts +18 -0
- package/dist/components/typography.d.ts.map +1 -0
- package/dist/components/typography.js +48 -0
- package/dist/hooks/use-mobile.d.ts +2 -0
- package/dist/hooks/use-mobile.d.ts.map +1 -0
- package/dist/hooks/use-mobile.js +15 -0
- package/dist/lib/crop-image.d.ts +4 -0
- package/dist/lib/crop-image.d.ts.map +1 -0
- package/dist/lib/crop-image.js +30 -0
- package/dist/lib/utils.d.ts +3 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/dist/lib/utils.js +5 -0
- package/dist/lib/zod-resolver.d.ts +4 -0
- package/dist/lib/zod-resolver.d.ts.map +1 -0
- package/dist/lib/zod-resolver.js +39 -0
- package/package.json +108 -0
- package/postcss.config.mjs +6 -0
- package/src/styles/globals.css +157 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Toggle as TogglePrimitive } from "@base-ui/react/toggle";
|
|
3
|
+
import { cva } from "class-variance-authority";
|
|
4
|
+
import { cn } from "../lib/utils";
|
|
5
|
+
const toggleVariants = cva("group/toggle inline-flex items-center justify-center gap-1 rounded-md text-sm font-medium whitespace-nowrap transition-[color,box-shadow] outline-none hover:bg-muted hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 aria-pressed:bg-muted dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", {
|
|
6
|
+
variants: {
|
|
7
|
+
variant: {
|
|
8
|
+
default: "bg-transparent",
|
|
9
|
+
outline: "border border-input bg-transparent shadow-xs hover:bg-muted",
|
|
10
|
+
},
|
|
11
|
+
size: {
|
|
12
|
+
default: "h-9 min-w-9 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",
|
|
13
|
+
sm: "h-8 min-w-8 px-2.5 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5",
|
|
14
|
+
lg: "h-10 min-w-10 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
defaultVariants: {
|
|
18
|
+
variant: "default",
|
|
19
|
+
size: "default",
|
|
20
|
+
},
|
|
21
|
+
});
|
|
22
|
+
function Toggle({ className, variant = "default", size = "default", ...props }) {
|
|
23
|
+
return (_jsx(TogglePrimitive, { "data-slot": "toggle", className: cn(toggleVariants({ variant, size, className })), ...props }));
|
|
24
|
+
}
|
|
25
|
+
export { Toggle, toggleVariants };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Tooltip as TooltipPrimitive } from "@base-ui/react/tooltip";
|
|
2
|
+
declare function TooltipProvider({ delay, ...props }: TooltipPrimitive.Provider.Props): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare function Tooltip({ ...props }: TooltipPrimitive.Root.Props): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function TooltipTrigger({ ...props }: TooltipPrimitive.Trigger.Props): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function TooltipContent({ className, side, sideOffset, align, alignOffset, children, ...props }: TooltipPrimitive.Popup.Props & Pick<TooltipPrimitive.Positioner.Props, "align" | "alignOffset" | "side" | "sideOffset">): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger };
|
|
7
|
+
//# sourceMappingURL=tooltip.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../src/components/tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAIpE,iBAAS,eAAe,CAAC,EAAE,KAAS,EAAE,GAAG,KAAK,EAAE,EAAE,gBAAgB,CAAC,QAAQ,CAAC,KAAK,2CAEhF;AAED,iBAAS,OAAO,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,gBAAgB,CAAC,IAAI,CAAC,KAAK,2CAEzD;AAED,iBAAS,cAAc,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,gBAAgB,CAAC,OAAO,CAAC,KAAK,2CAEnE;AAED,iBAAS,cAAc,CAAC,EACtB,SAAS,EACT,IAAY,EACZ,UAAc,EACd,KAAgB,EAChB,WAAe,EACf,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,gBAAgB,CAAC,KAAK,CAAC,KAAK,GAC7B,IAAI,CAAC,gBAAgB,CAAC,UAAU,CAAC,KAAK,EAAE,OAAO,GAAG,aAAa,GAAG,MAAM,GAAG,YAAY,CAAC,2CAwBzF;AAED,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,cAAc,EAAE,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Tooltip as TooltipPrimitive } from "@base-ui/react/tooltip";
|
|
3
|
+
import { cn } from "../lib/utils";
|
|
4
|
+
function TooltipProvider({ delay = 0, ...props }) {
|
|
5
|
+
return _jsx(TooltipPrimitive.Provider, { "data-slot": "tooltip-provider", delay: delay, ...props });
|
|
6
|
+
}
|
|
7
|
+
function Tooltip({ ...props }) {
|
|
8
|
+
return _jsx(TooltipPrimitive.Root, { "data-slot": "tooltip", ...props });
|
|
9
|
+
}
|
|
10
|
+
function TooltipTrigger({ ...props }) {
|
|
11
|
+
return _jsx(TooltipPrimitive.Trigger, { "data-slot": "tooltip-trigger", ...props });
|
|
12
|
+
}
|
|
13
|
+
function TooltipContent({ className, side = "top", sideOffset = 4, align = "center", alignOffset = 0, children, ...props }) {
|
|
14
|
+
return (_jsx(TooltipPrimitive.Portal, { children: _jsx(TooltipPrimitive.Positioner, { align: align, alignOffset: alignOffset, side: side, sideOffset: sideOffset, className: "isolate z-50", children: _jsxs(TooltipPrimitive.Popup, { "data-slot": "tooltip-content", className: cn("z-50 inline-flex w-fit max-w-xs origin-(--transform-origin) items-center gap-1.5 rounded-md bg-foreground px-3 py-1.5 text-xs text-background has-data-[slot=kbd]:pr-1.5 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-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 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", className), ...props, children: [children, _jsx(TooltipPrimitive.Arrow, { className: "z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground data-[side=bottom]:top-1 data-[side=inline-end]:top-1/2! data-[side=inline-end]:-left-1 data-[side=inline-end]:-translate-y-1/2 data-[side=inline-start]:top-1/2! data-[side=inline-start]:-right-1 data-[side=inline-start]:-translate-y-1/2 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5" })] }) }) }));
|
|
15
|
+
}
|
|
16
|
+
export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type * as React from "react";
|
|
2
|
+
declare function TypographyH1({ className, ...props }: React.ComponentProps<"h1">): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare function TypographyH2({ className, ...props }: React.ComponentProps<"h2">): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function TypographyH3({ className, ...props }: React.ComponentProps<"h3">): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function TypographyH4({ className, ...props }: React.ComponentProps<"h4">): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function TypographyP({ className, ...props }: React.ComponentProps<"p">): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare function TypographyBlockquote({ className, ...props }: React.ComponentProps<"blockquote">): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare function TypographyUl({ className, ...props }: React.ComponentProps<"ul">): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare function TypographyOl({ className, ...props }: React.ComponentProps<"ol">): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare function TypographyInlineCode({ className, ...props }: React.ComponentProps<"code">): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
declare function TypographyLead({ className, ...props }: React.ComponentProps<"p">): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare function TypographyLarge({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
declare function TypographySmall({ className, ...props }: React.ComponentProps<"small">): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
declare function TypographyMuted({ className, ...props }: React.ComponentProps<"p">): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
declare function TypographyTableWrapper({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
declare function TypographyTable({ className, ...props }: React.ComponentProps<"table">): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export { TypographyBlockquote, TypographyH1, TypographyH2, TypographyH3, TypographyH4, TypographyInlineCode, TypographyLarge, TypographyLead, TypographyMuted, TypographyOl, TypographyP, TypographySmall, TypographyTable, TypographyTableWrapper, TypographyUl, };
|
|
18
|
+
//# sourceMappingURL=typography.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typography.d.ts","sourceRoot":"","sources":["../../src/components/typography.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAA;AAInC,iBAAS,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,2CAUxE;AAED,iBAAS,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,2CAUxE;AAED,iBAAS,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,2CAOxE;AAED,iBAAS,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,2CAOxE;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,2CAEtE;AAED,iBAAS,oBAAoB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,YAAY,CAAC,2CAOxF;AAED,iBAAS,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,2CAExE;AAED,iBAAS,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,2CAExE;AAED,iBAAS,oBAAoB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,2CAUlF;AAED,iBAAS,cAAc,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,2CAEzE;AAED,iBAAS,eAAe,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAE5E;AAED,iBAAS,eAAe,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,2CAE9E;AAED,iBAAS,eAAe,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,2CAE1E;AAED,iBAAS,sBAAsB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAEnF;AAED,iBAAS,eAAe,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,2CAE9E;AAED,OAAO,EACL,oBAAoB,EACpB,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,oBAAoB,EACpB,eAAe,EACf,cAAc,EACd,eAAe,EACf,YAAY,EACZ,WAAW,EACX,eAAe,EACf,eAAe,EACf,sBAAsB,EACtB,YAAY,GACb,CAAA"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from "../lib/utils";
|
|
3
|
+
function TypographyH1({ className, ...props }) {
|
|
4
|
+
return (_jsx("h1", { className: cn("scroll-m-20 font-heading text-4xl font-extrabold tracking-tight text-balance", className), ...props }));
|
|
5
|
+
}
|
|
6
|
+
function TypographyH2({ className, ...props }) {
|
|
7
|
+
return (_jsx("h2", { className: cn("scroll-m-20 border-b pb-2 font-heading text-3xl font-semibold tracking-tight first:mt-0", className), ...props }));
|
|
8
|
+
}
|
|
9
|
+
function TypographyH3({ className, ...props }) {
|
|
10
|
+
return (_jsx("h3", { className: cn("scroll-m-20 font-heading text-2xl font-semibold tracking-tight", className), ...props }));
|
|
11
|
+
}
|
|
12
|
+
function TypographyH4({ className, ...props }) {
|
|
13
|
+
return (_jsx("h4", { className: cn("scroll-m-20 font-heading text-xl font-semibold tracking-tight", className), ...props }));
|
|
14
|
+
}
|
|
15
|
+
function TypographyP({ className, ...props }) {
|
|
16
|
+
return _jsx("p", { className: cn("leading-7 [&:not(:first-child)]:mt-6", className), ...props });
|
|
17
|
+
}
|
|
18
|
+
function TypographyBlockquote({ className, ...props }) {
|
|
19
|
+
return (_jsx("blockquote", { className: cn("mt-6 border-l-2 pl-6 italic text-muted-foreground", className), ...props }));
|
|
20
|
+
}
|
|
21
|
+
function TypographyUl({ className, ...props }) {
|
|
22
|
+
return _jsx("ul", { className: cn("my-6 ml-6 list-disc [&>li]:mt-2", className), ...props });
|
|
23
|
+
}
|
|
24
|
+
function TypographyOl({ className, ...props }) {
|
|
25
|
+
return _jsx("ol", { className: cn("my-6 ml-6 list-decimal [&>li]:mt-2", className), ...props });
|
|
26
|
+
}
|
|
27
|
+
function TypographyInlineCode({ className, ...props }) {
|
|
28
|
+
return (_jsx("code", { className: cn("relative rounded bg-muted px-[0.3rem] py-[0.2rem] font-mono text-sm font-semibold", className), ...props }));
|
|
29
|
+
}
|
|
30
|
+
function TypographyLead({ className, ...props }) {
|
|
31
|
+
return _jsx("p", { className: cn("text-xl text-muted-foreground", className), ...props });
|
|
32
|
+
}
|
|
33
|
+
function TypographyLarge({ className, ...props }) {
|
|
34
|
+
return _jsx("div", { className: cn("text-lg font-semibold", className), ...props });
|
|
35
|
+
}
|
|
36
|
+
function TypographySmall({ className, ...props }) {
|
|
37
|
+
return _jsx("small", { className: cn("text-sm leading-none font-medium", className), ...props });
|
|
38
|
+
}
|
|
39
|
+
function TypographyMuted({ className, ...props }) {
|
|
40
|
+
return _jsx("p", { className: cn("text-sm text-muted-foreground", className), ...props });
|
|
41
|
+
}
|
|
42
|
+
function TypographyTableWrapper({ className, ...props }) {
|
|
43
|
+
return _jsx("div", { className: cn("my-6 w-full overflow-y-auto", className), ...props });
|
|
44
|
+
}
|
|
45
|
+
function TypographyTable({ className, ...props }) {
|
|
46
|
+
return _jsx("table", { className: cn("w-full", className), ...props });
|
|
47
|
+
}
|
|
48
|
+
export { TypographyBlockquote, TypographyH1, TypographyH2, TypographyH3, TypographyH4, TypographyInlineCode, TypographyLarge, TypographyLead, TypographyMuted, TypographyOl, TypographyP, TypographySmall, TypographyTable, TypographyTableWrapper, TypographyUl, };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-mobile.d.ts","sourceRoot":"","sources":["../../src/hooks/use-mobile.ts"],"names":[],"mappings":"AAIA,wBAAgB,WAAW,YAc1B"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
const MOBILE_BREAKPOINT = 768;
|
|
3
|
+
export function useIsMobile() {
|
|
4
|
+
const [isMobile, setIsMobile] = React.useState(undefined);
|
|
5
|
+
React.useEffect(() => {
|
|
6
|
+
const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);
|
|
7
|
+
const onChange = () => {
|
|
8
|
+
setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
|
|
9
|
+
};
|
|
10
|
+
mql.addEventListener("change", onChange);
|
|
11
|
+
setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
|
|
12
|
+
return () => mql.removeEventListener("change", onChange);
|
|
13
|
+
}, []);
|
|
14
|
+
return !!isMobile;
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"crop-image.d.ts","sourceRoot":"","sources":["../../src/lib/crop-image.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AAW3C,QAAA,MAAM,aAAa,GAAU,UAAU,MAAM,EAAE,WAAW,IAAI,KAAG,OAAO,CAAC,IAAI,CAkC5E,CAAA;AAED,eAAe,aAAa,CAAA"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
const createImage = (url) => new Promise((resolve, reject) => {
|
|
2
|
+
const image = new Image();
|
|
3
|
+
image.addEventListener("load", () => resolve(image));
|
|
4
|
+
image.addEventListener("error", (error) => reject(error));
|
|
5
|
+
image.setAttribute("crossOrigin", "anonymous"); // to avoid CORS issues
|
|
6
|
+
image.src = url;
|
|
7
|
+
});
|
|
8
|
+
const getCroppedImg = async (imageSrc, pixelCrop) => {
|
|
9
|
+
const image = await createImage(imageSrc);
|
|
10
|
+
const canvas = document.createElement("canvas");
|
|
11
|
+
const ctx = canvas.getContext("2d");
|
|
12
|
+
if (!ctx) {
|
|
13
|
+
throw new Error("Could not get canvas context");
|
|
14
|
+
}
|
|
15
|
+
canvas.width = pixelCrop.width;
|
|
16
|
+
canvas.height = pixelCrop.height;
|
|
17
|
+
ctx.drawImage(image, pixelCrop.x, pixelCrop.y, pixelCrop.width, pixelCrop.height, 0, 0, pixelCrop.width, pixelCrop.height);
|
|
18
|
+
return new Promise((resolve, reject) => {
|
|
19
|
+
// Export as PNG to preserve transparency for logos
|
|
20
|
+
canvas.toBlob((blob) => {
|
|
21
|
+
if (blob) {
|
|
22
|
+
resolve(blob);
|
|
23
|
+
}
|
|
24
|
+
else {
|
|
25
|
+
reject(new Error("Canvas is empty"));
|
|
26
|
+
}
|
|
27
|
+
}, "image/png");
|
|
28
|
+
});
|
|
29
|
+
};
|
|
30
|
+
export default getCroppedImg;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/lib/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAQ,MAAM,MAAM,CAAA;AAG5C,wBAAgB,EAAE,CAAC,GAAG,MAAM,EAAE,UAAU,EAAE,UAEzC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { FieldValues, Resolver } from "react-hook-form";
|
|
2
|
+
import type { z } from "zod/v4";
|
|
3
|
+
export declare function zodResolver<TSchema extends z.ZodType<FieldValues, FieldValues>>(schema: TSchema): Resolver<z.input<TSchema>, unknown, z.output<TSchema>>;
|
|
4
|
+
//# sourceMappingURL=zod-resolver.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"zod-resolver.d.ts","sourceRoot":"","sources":["../../src/lib/zod-resolver.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAe,WAAW,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AACzE,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AA+B/B,wBAAgB,WAAW,CAAC,OAAO,SAAS,CAAC,CAAC,OAAO,CAAC,WAAW,EAAE,WAAW,CAAC,EAC7E,MAAM,EAAE,OAAO,GACd,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CA6BxD"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
function setFieldError(target, path, error) {
|
|
2
|
+
let current = target;
|
|
3
|
+
for (let index = 0; index < path.length; index += 1) {
|
|
4
|
+
const key = String(path[index] ?? "root");
|
|
5
|
+
if (index === path.length - 1) {
|
|
6
|
+
current[key] = error;
|
|
7
|
+
return;
|
|
8
|
+
}
|
|
9
|
+
const next = current[key];
|
|
10
|
+
if (typeof next !== "object" || next === null) {
|
|
11
|
+
current[key] = {};
|
|
12
|
+
}
|
|
13
|
+
current = current[key];
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
export function zodResolver(schema) {
|
|
17
|
+
return async (values) => {
|
|
18
|
+
const result = await schema.safeParseAsync(values);
|
|
19
|
+
if (result.success) {
|
|
20
|
+
return {
|
|
21
|
+
values: result.data,
|
|
22
|
+
errors: {},
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
const errors = {};
|
|
26
|
+
for (const issue of result.error.issues) {
|
|
27
|
+
const path = issue.path.filter((segment) => typeof segment !== "symbol");
|
|
28
|
+
const normalizedPath = path.length > 0 ? path : ["root"];
|
|
29
|
+
setFieldError(errors, normalizedPath, {
|
|
30
|
+
type: issue.code,
|
|
31
|
+
message: issue.message,
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
values: {},
|
|
36
|
+
errors: errors,
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@voyantjs/ui",
|
|
3
|
+
"version": "0.6.7",
|
|
4
|
+
"license": "FSL-1.1-Apache-2.0",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"sideEffects": false,
|
|
7
|
+
"scripts": {
|
|
8
|
+
"build": "tsc -p tsconfig.build.json",
|
|
9
|
+
"clean": "rm -rf dist",
|
|
10
|
+
"prepack": "pnpm run build",
|
|
11
|
+
"typecheck": "tsc --noEmit",
|
|
12
|
+
"lint": "biome check registry/",
|
|
13
|
+
"registry:build": "pnpm -C ../.. registry:build"
|
|
14
|
+
},
|
|
15
|
+
"dependencies": {
|
|
16
|
+
"@base-ui/react": "^1.3.0",
|
|
17
|
+
"@hookform/resolvers": "^5.1.1",
|
|
18
|
+
"@tanstack/react-table": "^8.21.3",
|
|
19
|
+
"@voyantjs/notifications": "workspace:*",
|
|
20
|
+
"@voyantjs/notifications-react": "workspace:*",
|
|
21
|
+
"@voyantjs/utils": "workspace:*",
|
|
22
|
+
"@tiptap/core": "^3.7.2",
|
|
23
|
+
"@tiptap/extensions": "^3.7.2",
|
|
24
|
+
"@tiptap/pm": "^3.7.2",
|
|
25
|
+
"@tiptap/react": "^3.7.2",
|
|
26
|
+
"@tiptap/starter-kit": "^3.7.2",
|
|
27
|
+
"class-variance-authority": "^0.7.1",
|
|
28
|
+
"clsx": "^2.1.1",
|
|
29
|
+
"cmdk": "^1.1.1",
|
|
30
|
+
"date-fns": "^4.1.0",
|
|
31
|
+
"embla-carousel-react": "^8.6.0",
|
|
32
|
+
"input-otp": "^1.4.2",
|
|
33
|
+
"lucide-react": "^0.475.0",
|
|
34
|
+
"next-themes": "^0.4.6",
|
|
35
|
+
"react": "^19.1.0",
|
|
36
|
+
"react-colorful": "5.6.1",
|
|
37
|
+
"react-day-picker": "^9.8.0",
|
|
38
|
+
"react-dom": "^19.1.0",
|
|
39
|
+
"react-easy-crop": "^5.5.0",
|
|
40
|
+
"react-hook-form": "^7.60.0",
|
|
41
|
+
"react-phone-number-input": "^3.4.12",
|
|
42
|
+
"react-resizable-panels": "^3.0.3",
|
|
43
|
+
"recharts": "3.8.0",
|
|
44
|
+
"sonner": "^2.0.6",
|
|
45
|
+
"tailwind-merge": "^3.3.1",
|
|
46
|
+
"tw-animate-css": "^1.3.5",
|
|
47
|
+
"vaul": "^1.1.2",
|
|
48
|
+
"zod": "^3.25.76"
|
|
49
|
+
},
|
|
50
|
+
"devDependencies": {
|
|
51
|
+
"@tailwindcss/postcss": "^4.1.11",
|
|
52
|
+
"@types/node": "^20.19.8",
|
|
53
|
+
"@types/react": "^19.1.8",
|
|
54
|
+
"@types/react-dom": "^19.1.6",
|
|
55
|
+
"@voyantjs/voyant-typescript-config": "workspace:*",
|
|
56
|
+
"tailwindcss": "^4.1.11",
|
|
57
|
+
"typescript": "^5.8.3"
|
|
58
|
+
},
|
|
59
|
+
"exports": {
|
|
60
|
+
"./globals.css": "./src/styles/globals.css",
|
|
61
|
+
"./postcss.config": "./postcss.config.mjs",
|
|
62
|
+
"./lib/*": "./src/lib/*.ts",
|
|
63
|
+
"./components": "./src/components/index.tsx",
|
|
64
|
+
"./components/*": "./src/components/*.tsx",
|
|
65
|
+
"./components/notification-template-dialog": "./src/components/notification-template-dialog.tsx",
|
|
66
|
+
"./components/notification-templates-page": "./src/components/notification-templates-page.tsx",
|
|
67
|
+
"./components/notification-reminder-rule-dialog": "./src/components/notification-reminder-rule-dialog.tsx",
|
|
68
|
+
"./components/notification-reminder-rules-page": "./src/components/notification-reminder-rules-page.tsx",
|
|
69
|
+
"./components/notification-deliveries-page": "./src/components/notification-deliveries-page.tsx",
|
|
70
|
+
"./components/notification-reminder-runs-page": "./src/components/notification-reminder-runs-page.tsx",
|
|
71
|
+
"./components/notification-template-authoring-help": "./src/components/notification-template-authoring-help.tsx",
|
|
72
|
+
"./components/rich-text-variable-extension": "./src/components/rich-text-variable-extension.ts",
|
|
73
|
+
"./hooks/*": "./src/hooks/*.ts"
|
|
74
|
+
},
|
|
75
|
+
"files": [
|
|
76
|
+
"dist",
|
|
77
|
+
"src/styles",
|
|
78
|
+
"postcss.config.mjs"
|
|
79
|
+
],
|
|
80
|
+
"publishConfig": {
|
|
81
|
+
"access": "public",
|
|
82
|
+
"exports": {
|
|
83
|
+
"./globals.css": "./src/styles/globals.css",
|
|
84
|
+
"./postcss.config": "./postcss.config.mjs",
|
|
85
|
+
"./lib/*": {
|
|
86
|
+
"types": "./dist/lib/*.d.ts",
|
|
87
|
+
"import": "./dist/lib/*.js"
|
|
88
|
+
},
|
|
89
|
+
"./components": {
|
|
90
|
+
"types": "./dist/components/index.d.ts",
|
|
91
|
+
"import": "./dist/components/index.js"
|
|
92
|
+
},
|
|
93
|
+
"./components/*": {
|
|
94
|
+
"types": "./dist/components/*.d.ts",
|
|
95
|
+
"import": "./dist/components/*.js"
|
|
96
|
+
},
|
|
97
|
+
"./hooks/*": {
|
|
98
|
+
"types": "./dist/hooks/*.d.ts",
|
|
99
|
+
"import": "./dist/hooks/*.js"
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
"repository": {
|
|
104
|
+
"type": "git",
|
|
105
|
+
"url": "https://github.com/voyantjs/voyant.git",
|
|
106
|
+
"directory": "packages/ui"
|
|
107
|
+
}
|
|
108
|
+
}
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
@import "tailwindcss";
|
|
2
|
+
@source "../../../apps/**/*.{ts,tsx}";
|
|
3
|
+
@source "../../../components/**/*.{ts,tsx}";
|
|
4
|
+
@source "../**/*.{ts,tsx}";
|
|
5
|
+
|
|
6
|
+
@import "tw-animate-css";
|
|
7
|
+
|
|
8
|
+
@custom-variant dark (&:is(.dark *));
|
|
9
|
+
|
|
10
|
+
:root {
|
|
11
|
+
--background: oklch(0.97 0 0);
|
|
12
|
+
--foreground: oklch(0.09 0 0);
|
|
13
|
+
--card: oklch(1 0 0);
|
|
14
|
+
--card-foreground: oklch(0.09 0 0);
|
|
15
|
+
--popover: oklch(1 0 0);
|
|
16
|
+
--popover-foreground: oklch(0.09 0 0);
|
|
17
|
+
--primary: oklch(0.15 0 0);
|
|
18
|
+
--primary-foreground: oklch(0.985 0 0);
|
|
19
|
+
--secondary: oklch(0.945 0 0);
|
|
20
|
+
--secondary-foreground: oklch(0.15 0 0);
|
|
21
|
+
--muted: oklch(0.93 0 0);
|
|
22
|
+
--muted-foreground: oklch(0.45 0 0);
|
|
23
|
+
--accent: oklch(0.945 0 0);
|
|
24
|
+
--accent-foreground: oklch(0.15 0 0);
|
|
25
|
+
--destructive: oklch(0.55 0.22 27);
|
|
26
|
+
--destructive-foreground: oklch(0.985 0 0);
|
|
27
|
+
--success: oklch(0.72 0.19 160);
|
|
28
|
+
--success-foreground: oklch(0.18 0 0);
|
|
29
|
+
--warning: oklch(0.8 0.15 85);
|
|
30
|
+
--warning-foreground: oklch(0.25 0 0);
|
|
31
|
+
--info: oklch(0.62 0.14 240);
|
|
32
|
+
--info-foreground: oklch(0.2 0 0);
|
|
33
|
+
--border: oklch(0.91 0 0);
|
|
34
|
+
--input: oklch(0.91 0 0);
|
|
35
|
+
--ring: oklch(0.15 0 0);
|
|
36
|
+
--chart-1: oklch(0.15 0 0);
|
|
37
|
+
--chart-2: oklch(0.72 0.19 160);
|
|
38
|
+
--chart-3: oklch(0.55 0 0);
|
|
39
|
+
--chart-4: oklch(0.8 0.15 85);
|
|
40
|
+
--chart-5: oklch(0.42 0.25 270);
|
|
41
|
+
--radius: 0.75rem;
|
|
42
|
+
--sidebar: oklch(1 0 0);
|
|
43
|
+
--sidebar-foreground: oklch(0.09 0 0);
|
|
44
|
+
--sidebar-primary: oklch(0.15 0 0);
|
|
45
|
+
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
46
|
+
--sidebar-accent: oklch(0.945 0 0);
|
|
47
|
+
--sidebar-accent-foreground: oklch(0.15 0 0);
|
|
48
|
+
--sidebar-border: oklch(0.93 0 0);
|
|
49
|
+
--sidebar-ring: oklch(0.15 0 0);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.dark {
|
|
53
|
+
--background: oklch(0.1 0 0);
|
|
54
|
+
--foreground: oklch(0.985 0 0);
|
|
55
|
+
--card: oklch(0.14 0 0);
|
|
56
|
+
--card-foreground: oklch(0.985 0 0);
|
|
57
|
+
--popover: oklch(0.14 0 0);
|
|
58
|
+
--popover-foreground: oklch(0.985 0 0);
|
|
59
|
+
--primary: oklch(0.985 0 0);
|
|
60
|
+
--primary-foreground: oklch(0.09 0 0);
|
|
61
|
+
--secondary: oklch(0.18 0 0);
|
|
62
|
+
--secondary-foreground: oklch(0.9 0 0);
|
|
63
|
+
--muted: oklch(0.18 0 0);
|
|
64
|
+
--muted-foreground: oklch(0.6 0 0);
|
|
65
|
+
--accent: oklch(0.18 0 0);
|
|
66
|
+
--accent-foreground: oklch(0.9 0 0);
|
|
67
|
+
--destructive: oklch(0.55 0.2 27);
|
|
68
|
+
--destructive-foreground: oklch(0.985 0 0);
|
|
69
|
+
--success: oklch(0.72 0.19 160);
|
|
70
|
+
--success-foreground: oklch(0.9 0 0);
|
|
71
|
+
--warning: oklch(0.8 0.15 85);
|
|
72
|
+
--warning-foreground: oklch(0.9 0 0);
|
|
73
|
+
--info: oklch(0.62 0.14 240);
|
|
74
|
+
--info-foreground: oklch(0.88 0 0);
|
|
75
|
+
--border: oklch(0.22 0 0);
|
|
76
|
+
--input: oklch(0.22 0 0);
|
|
77
|
+
--ring: oklch(0.985 0 0);
|
|
78
|
+
--chart-1: oklch(0.985 0 0);
|
|
79
|
+
--chart-2: oklch(0.72 0.19 160);
|
|
80
|
+
--chart-3: oklch(0.6 0 0);
|
|
81
|
+
--chart-4: oklch(0.8 0.15 85);
|
|
82
|
+
--chart-5: oklch(0.42 0.25 270);
|
|
83
|
+
--sidebar: oklch(0.12 0 0);
|
|
84
|
+
--sidebar-foreground: oklch(0.985 0 0);
|
|
85
|
+
--sidebar-primary: oklch(0.985 0 0);
|
|
86
|
+
--sidebar-primary-foreground: oklch(0.09 0 0);
|
|
87
|
+
--sidebar-accent: oklch(0.18 0 0);
|
|
88
|
+
--sidebar-accent-foreground: oklch(0.9 0 0);
|
|
89
|
+
--sidebar-border: oklch(0.2 0 0);
|
|
90
|
+
--sidebar-ring: oklch(0.985 0 0);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
@theme inline {
|
|
94
|
+
--color-background: var(--background);
|
|
95
|
+
--color-foreground: var(--foreground);
|
|
96
|
+
--color-card: var(--card);
|
|
97
|
+
--color-card-foreground: var(--card-foreground);
|
|
98
|
+
--color-popover: var(--popover);
|
|
99
|
+
--color-popover-foreground: var(--popover-foreground);
|
|
100
|
+
--color-primary: var(--primary);
|
|
101
|
+
--color-primary-foreground: var(--primary-foreground);
|
|
102
|
+
--color-secondary: var(--secondary);
|
|
103
|
+
--color-secondary-foreground: var(--secondary-foreground);
|
|
104
|
+
--color-muted: var(--muted);
|
|
105
|
+
--color-muted-foreground: var(--muted-foreground);
|
|
106
|
+
--color-accent: var(--accent);
|
|
107
|
+
--color-accent-foreground: var(--accent-foreground);
|
|
108
|
+
--color-destructive: var(--destructive);
|
|
109
|
+
--color-destructive-foreground: var(--destructive-foreground);
|
|
110
|
+
--color-success: var(--success);
|
|
111
|
+
--color-success-foreground: var(--success-foreground);
|
|
112
|
+
--color-warning: var(--warning);
|
|
113
|
+
--color-warning-foreground: var(--warning-foreground);
|
|
114
|
+
--color-info: var(--info);
|
|
115
|
+
--color-info-foreground: var(--info-foreground);
|
|
116
|
+
--color-border: var(--border);
|
|
117
|
+
--color-input: var(--input);
|
|
118
|
+
--color-ring: var(--ring);
|
|
119
|
+
--color-chart-1: var(--chart-1);
|
|
120
|
+
--color-chart-2: var(--chart-2);
|
|
121
|
+
--color-chart-3: var(--chart-3);
|
|
122
|
+
--color-chart-4: var(--chart-4);
|
|
123
|
+
--color-chart-5: var(--chart-5);
|
|
124
|
+
--radius-sm: calc(var(--radius) - 4px);
|
|
125
|
+
--radius-md: calc(var(--radius) - 2px);
|
|
126
|
+
--radius-lg: var(--radius);
|
|
127
|
+
--radius-xl: calc(var(--radius) + 4px);
|
|
128
|
+
--color-sidebar: var(--sidebar);
|
|
129
|
+
--color-sidebar-foreground: var(--sidebar-foreground);
|
|
130
|
+
--color-sidebar-primary: var(--sidebar-primary);
|
|
131
|
+
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
|
|
132
|
+
--color-sidebar-accent: var(--sidebar-accent);
|
|
133
|
+
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
|
134
|
+
--color-sidebar-border: var(--sidebar-border);
|
|
135
|
+
--color-sidebar-ring: var(--sidebar-ring);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
@layer base {
|
|
139
|
+
* {
|
|
140
|
+
@apply border-border outline-ring/50;
|
|
141
|
+
}
|
|
142
|
+
body {
|
|
143
|
+
@apply bg-background text-foreground antialiased;
|
|
144
|
+
}
|
|
145
|
+
h1,
|
|
146
|
+
h2,
|
|
147
|
+
h3,
|
|
148
|
+
h4,
|
|
149
|
+
h5,
|
|
150
|
+
h6 {
|
|
151
|
+
letter-spacing: -0.025em;
|
|
152
|
+
}
|
|
153
|
+
.font-data {
|
|
154
|
+
font-variant-numeric: tabular-nums lining-nums;
|
|
155
|
+
letter-spacing: -0.01em;
|
|
156
|
+
}
|
|
157
|
+
}
|