@olwiba/ui 0.0.41 → 0.0.43
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/chunk-SUKTBILF.js +11 -0
- package/dist/chunk-SUKTBILF.js.map +1 -0
- package/dist/index.d.ts +64 -7
- package/dist/index.js +116 -32
- package/dist/index.js.map +1 -1
- package/dist/mdx/index.d.ts +8 -0
- package/dist/mdx/index.js +32 -0
- package/dist/mdx/index.js.map +1 -0
- package/package.json +5 -1
- package/src/index.ts +6 -1
- package/src/layout/Grid.tsx +72 -0
- package/src/layout/Section.tsx +29 -0
- package/src/layout/Stack.tsx +62 -0
- package/src/layout/index.ts +6 -0
- package/src/mdx/index.ts +1 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { clsx } from 'clsx';
|
|
2
|
+
import { twMerge } from 'tailwind-merge';
|
|
3
|
+
|
|
4
|
+
// src/lib/utils.ts
|
|
5
|
+
function cn(...inputs) {
|
|
6
|
+
return twMerge(clsx(inputs));
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export { cn };
|
|
10
|
+
//# sourceMappingURL=chunk-SUKTBILF.js.map
|
|
11
|
+
//# sourceMappingURL=chunk-SUKTBILF.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/lib/utils.ts"],"names":[],"mappings":";;;;AAGO,SAAS,MAAM,MAAA,EAAsB;AAC1C,EAAA,OAAO,OAAA,CAAQ,IAAA,CAAK,MAAM,CAAC,CAAA;AAC7B","file":"chunk-SUKTBILF.js","sourcesContent":["import { clsx, type ClassValue } from 'clsx';\nimport { twMerge } from 'tailwind-merge';\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n"]}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ClassValue } from 'clsx';
|
|
2
2
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
3
|
import * as React from 'react';
|
|
4
|
-
import { ReactNode } from 'react';
|
|
4
|
+
import React__default, { ReactNode } from 'react';
|
|
5
5
|
import { ButtonProps as ButtonProps$1, CardProps as CardProps$1, BadgeProps as BadgeProps$1, InputProps as InputProps$1, TextareaProps as TextareaProps$1, CheckboxProps as CheckboxProps$1, SwitchProps as SwitchProps$1 } from '@olwiba/cn';
|
|
6
6
|
export { CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from '@olwiba/cn';
|
|
7
7
|
import { LucideIcon } from 'lucide-react';
|
|
@@ -60,6 +60,68 @@ declare const Switch: React.ForwardRefExoticComponent<SwitchProps$1 & {
|
|
|
60
60
|
mode?: "default" | "playful" | "smooth";
|
|
61
61
|
} & React.RefAttributes<HTMLButtonElement>>;
|
|
62
62
|
|
|
63
|
+
declare const gapMap$1: {
|
|
64
|
+
none: string;
|
|
65
|
+
xs: string;
|
|
66
|
+
sm: string;
|
|
67
|
+
md: string;
|
|
68
|
+
lg: string;
|
|
69
|
+
xl: string;
|
|
70
|
+
};
|
|
71
|
+
interface GridProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
72
|
+
columns?: 1 | 2 | 3 | 4 | 5 | 6 | 12;
|
|
73
|
+
gap?: keyof typeof gapMap$1;
|
|
74
|
+
}
|
|
75
|
+
declare function Grid({ columns, gap, className, children, ...props }: GridProps): react_jsx_runtime.JSX.Element;
|
|
76
|
+
interface GridItemProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
77
|
+
span?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
78
|
+
rowSpan?: 1 | 2 | 3 | 4;
|
|
79
|
+
}
|
|
80
|
+
declare function GridItem({ span, rowSpan, className, children, ...props }: GridItemProps): react_jsx_runtime.JSX.Element;
|
|
81
|
+
|
|
82
|
+
declare const gapMap: {
|
|
83
|
+
none: string;
|
|
84
|
+
xs: string;
|
|
85
|
+
sm: string;
|
|
86
|
+
md: string;
|
|
87
|
+
lg: string;
|
|
88
|
+
xl: string;
|
|
89
|
+
};
|
|
90
|
+
declare const alignMap: {
|
|
91
|
+
start: string;
|
|
92
|
+
center: string;
|
|
93
|
+
end: string;
|
|
94
|
+
stretch: string;
|
|
95
|
+
};
|
|
96
|
+
declare const justifyMap: {
|
|
97
|
+
start: string;
|
|
98
|
+
center: string;
|
|
99
|
+
end: string;
|
|
100
|
+
between: string;
|
|
101
|
+
around: string;
|
|
102
|
+
};
|
|
103
|
+
interface StackProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
104
|
+
direction?: 'col' | 'row';
|
|
105
|
+
gap?: keyof typeof gapMap;
|
|
106
|
+
align?: keyof typeof alignMap;
|
|
107
|
+
justify?: keyof typeof justifyMap;
|
|
108
|
+
wrap?: boolean;
|
|
109
|
+
}
|
|
110
|
+
declare function Stack({ direction, gap, align, justify, wrap, className, children, ...props }: StackProps): react_jsx_runtime.JSX.Element;
|
|
111
|
+
|
|
112
|
+
declare const paddingMap: {
|
|
113
|
+
none: string;
|
|
114
|
+
sm: string;
|
|
115
|
+
md: string;
|
|
116
|
+
lg: string;
|
|
117
|
+
};
|
|
118
|
+
interface SectionProps extends React__default.HTMLAttributes<HTMLElement> {
|
|
119
|
+
title?: string;
|
|
120
|
+
description?: string;
|
|
121
|
+
padding?: keyof typeof paddingMap;
|
|
122
|
+
}
|
|
123
|
+
declare function Section({ title, description, padding, className, children, ...props }: SectionProps): react_jsx_runtime.JSX.Element;
|
|
124
|
+
|
|
63
125
|
interface AppNavItem {
|
|
64
126
|
icon: LucideIcon;
|
|
65
127
|
label: string;
|
|
@@ -833,11 +895,6 @@ interface ChangelogListProps {
|
|
|
833
895
|
}
|
|
834
896
|
declare function ChangelogList({ entries, renderLink, emptyMessage, hrefPrefix, }: ChangelogListProps): react_jsx_runtime.JSX.Element;
|
|
835
897
|
|
|
836
|
-
interface MdxContentProps {
|
|
837
|
-
code: string;
|
|
838
|
-
}
|
|
839
|
-
declare function MdxContent({ code }: MdxContentProps): react_jsx_runtime.JSX.Element;
|
|
840
|
-
|
|
841
898
|
declare function useMounted(): boolean;
|
|
842
899
|
|
|
843
900
|
interface UseControlledOpenReturn {
|
|
@@ -894,4 +951,4 @@ interface UsePaginationReturn {
|
|
|
894
951
|
}
|
|
895
952
|
declare function usePagination(total: number, pageSize: number): UsePaginationReturn;
|
|
896
953
|
|
|
897
|
-
export { type AppNavItem, AppScreen, AppShell, type AppShellAction, type AppShellBrand, type AppShellProps, type AppShellRenderLink, type AppShellUser, type AuthFormProps, AuthSection, type AuthSectionProps, Badge, type BadgeProps, Button, type ButtonProps, Card, type CardProps, ChangelogCard, type ChangelogCardProps, ChangelogList, type ChangelogListProps, Checkbox, type CheckboxProps, ConfirmDialog, type ConfirmDialogProps, type ConfirmOptions, type ContactInfoItem, ContactSection, type ContactSectionProps, ContextMenu, type ContextMenuDef, type ContextMenuProps, CountUp, type CountUpProps, CtaSection, type CtaSectionProps, DevBanner, type DevBannerProps, Dock, type DockItem, type DockProps, EmptyState, type EmptyStateProps, ErrorPage, type ErrorPageProps, FadeIn, type FadeInProps, FaqSection, type FaqSectionProps, FeatureCard, type FeatureCardProps, FeaturesSection, type FeaturesSectionProps, Footer, type FooterProps, FullPageSpinner, GlassCard, type GlassCardProps, HeroSection, type HeroSectionProps, type Hotkey, ImageCard, type ImageCardProps, Input, type InputProps, LogoStrip, type LogoStripProps,
|
|
954
|
+
export { type AppNavItem, AppScreen, AppShell, type AppShellAction, type AppShellBrand, type AppShellProps, type AppShellRenderLink, type AppShellUser, type AuthFormProps, AuthSection, type AuthSectionProps, Badge, type BadgeProps, Button, type ButtonProps, Card, type CardProps, ChangelogCard, type ChangelogCardProps, ChangelogList, type ChangelogListProps, Checkbox, type CheckboxProps, ConfirmDialog, type ConfirmDialogProps, type ConfirmOptions, type ContactInfoItem, ContactSection, type ContactSectionProps, ContextMenu, type ContextMenuDef, type ContextMenuProps, CountUp, type CountUpProps, CtaSection, type CtaSectionProps, DevBanner, type DevBannerProps, Dock, type DockItem, type DockProps, EmptyState, type EmptyStateProps, ErrorPage, type ErrorPageProps, FadeIn, type FadeInProps, FaqSection, type FaqSectionProps, FeatureCard, type FeatureCardProps, FeaturesSection, type FeaturesSectionProps, Footer, type FooterProps, FullPageSpinner, GlassCard, type GlassCardProps, Grid, GridItem, type GridItemProps, type GridProps, HeroSection, type HeroSectionProps, type Hotkey, ImageCard, type ImageCardProps, Input, type InputProps, LogoStrip, type LogoStripProps, Navbar, type NavbarProps, NewsletterSection, type NewsletterSectionProps, OlwibaUIProvider, type OlwibaUIProviderProps, Overlay, type OverlayProps, type OverlayVariant, PageHeader, type PageHeaderBackButton, type PageHeaderBreadcrumb, type PageHeaderProps, PageTransition, type PageTransitionProps, PhoneFrame, type PhoneFrameProps, PostCard, type PostCardProps, PostList, type PostListProps, PricingCard, type PricingCardProps, type PricingFeature, type PricingPlan, PricingSection, type PricingSectionProps, RegisterHotkeys, RootErrorFallback, Section, type SectionProps, SectionTitle, type SectionTitleProps, Spotlight, type SpotlightGroup, type SpotlightItem, type SpotlightProps, Stack, type StackProps, StaggerChildren, type StaggerChildrenProps, StatCard, type StatCardProps, StatsSection, type StatsSectionProps, Suspensed, Switch, type SwitchProps, TeamSection, TestimonialCard, type TestimonialCardProps, TestimonialsSection, type TestimonialsSectionProps, Textarea, type TextareaProps, ThemeColorUpdater, ThemeSwitchMinimal, type UIMode, Underlay, type UnderlayProps, type UnderlayVariant, type UpgradeComparisonRow, UpgradePrompt, type UpgradePromptProps, type UseConfirmReturn, type UseControlledOpenReturn, type UsePaginationReturn, VersionBanner, cn, useConfirm, useControlledOpen, useCopyToClipboard, useDebounce, useIntersectionObserver, useLocalStorage, useMediaQuery, useMounted, useOlwibaUI, usePagination, useScrolledPast, useUIMode };
|
package/dist/index.js
CHANGED
|
@@ -1,17 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { cn } from './chunk-SUKTBILF.js';
|
|
2
|
+
export { cn } from './chunk-SUKTBILF.js';
|
|
3
3
|
import * as React25 from 'react';
|
|
4
4
|
import { useState, useEffect } from 'react';
|
|
5
5
|
import { Button as Button$1, Card as Card$1, Input as Input$1, Textarea as Textarea$1, Checkbox as Checkbox$1, Switch as Switch$1, useIsMobile, UIVariantProvider, Badge as Badge$1, cn as cn$1, Table, TableHeader, TableRow, TableHead, TableBody, TableCell, Avatar, AvatarImage, AvatarFallback, Separator, Accordion, AccordionItem, AccordionTrigger, AccordionContent, Label, Sheet, SheetTrigger, SheetContent, CommandDialog, CommandInput, CommandList, CommandEmpty, CommandSeparator, CommandGroup, CommandItem, TooltipProvider, Tooltip, TooltipTrigger, TooltipContent, ContextMenu as ContextMenu$1, ContextMenuTrigger, ContextMenuContent, AlertDialog, AlertDialogContent, AlertDialogHeader, AlertDialogTitle, AlertDialogDescription, AlertDialogFooter, AlertDialogCancel, AlertDialogAction, Spinner, SidebarProvider, SidebarInset, CardHeader, CardTitle, CardDescription, CardContent, ContextMenuSeparator, ContextMenuLabel, ContextMenuSub, ContextMenuSubTrigger, ContextMenuSubContent, ContextMenuItem, ContextMenuShortcut, Sidebar, SidebarHeader, SidebarMenu, SidebarMenuItem, SidebarMenuButton, SidebarContent, SidebarGroup, SidebarGroupContent, SidebarFooter, SidebarTrigger, useSidebar, DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuGroup, DropdownMenuItem } from '@olwiba/cn';
|
|
6
6
|
export { CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from '@olwiba/cn';
|
|
7
7
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
8
8
|
import { Compass, ArrowLeft, X, ArrowRight, Sparkles, Check, Minus, Quote, Star, Twitter, Github, Linkedin, Mail, Phone, MapPin, MessageSquare, Send, Sun, Moon, Menu, Search, TrendingUp, TrendingDown, ChevronRight, ChevronLeft, AlertTriangle, Loader2, ShieldCheck, Building2, MoreVerticalIcon, CreditCardIcon, BellIcon, LogOutIcon } from 'lucide-react';
|
|
9
|
-
import { useMDXComponent } from '@content-collections/mdx/react';
|
|
10
9
|
|
|
11
|
-
// src/lib/utils.ts
|
|
12
|
-
function cn(...inputs) {
|
|
13
|
-
return twMerge(clsx(inputs));
|
|
14
|
-
}
|
|
15
10
|
var OlwibaUIContext = React25.createContext({
|
|
16
11
|
isMobile: false,
|
|
17
12
|
mode: "default"
|
|
@@ -73,6 +68,119 @@ var Switch = React25.forwardRef(({ mode: _mode, ...props }, ref) => {
|
|
|
73
68
|
return /* @__PURE__ */ jsx(Switch$1, { ...props, ref });
|
|
74
69
|
});
|
|
75
70
|
Switch.displayName = "Switch";
|
|
71
|
+
var colsMap = {
|
|
72
|
+
1: "grid-cols-1",
|
|
73
|
+
2: "grid-cols-2",
|
|
74
|
+
3: "grid-cols-3",
|
|
75
|
+
4: "grid-cols-4",
|
|
76
|
+
5: "grid-cols-5",
|
|
77
|
+
6: "grid-cols-6",
|
|
78
|
+
12: "grid-cols-12"
|
|
79
|
+
};
|
|
80
|
+
var gapMap = {
|
|
81
|
+
none: "gap-0",
|
|
82
|
+
xs: "gap-2",
|
|
83
|
+
sm: "gap-3",
|
|
84
|
+
md: "gap-4",
|
|
85
|
+
lg: "gap-6",
|
|
86
|
+
xl: "gap-8"
|
|
87
|
+
};
|
|
88
|
+
var spanMap = {
|
|
89
|
+
1: "col-span-1",
|
|
90
|
+
2: "col-span-2",
|
|
91
|
+
3: "col-span-3",
|
|
92
|
+
4: "col-span-4",
|
|
93
|
+
5: "col-span-5",
|
|
94
|
+
6: "col-span-6",
|
|
95
|
+
7: "col-span-7",
|
|
96
|
+
8: "col-span-8",
|
|
97
|
+
9: "col-span-9",
|
|
98
|
+
10: "col-span-10",
|
|
99
|
+
11: "col-span-11",
|
|
100
|
+
12: "col-span-12"
|
|
101
|
+
};
|
|
102
|
+
var rowSpanMap = {
|
|
103
|
+
1: "row-span-1",
|
|
104
|
+
2: "row-span-2",
|
|
105
|
+
3: "row-span-3",
|
|
106
|
+
4: "row-span-4"
|
|
107
|
+
};
|
|
108
|
+
function Grid({ columns = 3, gap = "md", className, children, ...props }) {
|
|
109
|
+
return /* @__PURE__ */ jsx("div", { className: cn("grid", colsMap[columns], gapMap[gap], className), ...props, children });
|
|
110
|
+
}
|
|
111
|
+
function GridItem({ span = 1, rowSpan, className, children, ...props }) {
|
|
112
|
+
return /* @__PURE__ */ jsx(
|
|
113
|
+
"div",
|
|
114
|
+
{
|
|
115
|
+
className: cn(spanMap[span], rowSpan != null && rowSpanMap[rowSpan], className),
|
|
116
|
+
...props,
|
|
117
|
+
children
|
|
118
|
+
}
|
|
119
|
+
);
|
|
120
|
+
}
|
|
121
|
+
var gapMap2 = {
|
|
122
|
+
none: "gap-0",
|
|
123
|
+
xs: "gap-2",
|
|
124
|
+
sm: "gap-3",
|
|
125
|
+
md: "gap-4",
|
|
126
|
+
lg: "gap-6",
|
|
127
|
+
xl: "gap-8"
|
|
128
|
+
};
|
|
129
|
+
var alignMap = {
|
|
130
|
+
start: "items-start",
|
|
131
|
+
center: "items-center",
|
|
132
|
+
end: "items-end",
|
|
133
|
+
stretch: "items-stretch"
|
|
134
|
+
};
|
|
135
|
+
var justifyMap = {
|
|
136
|
+
start: "justify-start",
|
|
137
|
+
center: "justify-center",
|
|
138
|
+
end: "justify-end",
|
|
139
|
+
between: "justify-between",
|
|
140
|
+
around: "justify-around"
|
|
141
|
+
};
|
|
142
|
+
function Stack({
|
|
143
|
+
direction = "col",
|
|
144
|
+
gap = "md",
|
|
145
|
+
align = "stretch",
|
|
146
|
+
justify = "start",
|
|
147
|
+
wrap = false,
|
|
148
|
+
className,
|
|
149
|
+
children,
|
|
150
|
+
...props
|
|
151
|
+
}) {
|
|
152
|
+
return /* @__PURE__ */ jsx(
|
|
153
|
+
"div",
|
|
154
|
+
{
|
|
155
|
+
className: cn(
|
|
156
|
+
"flex",
|
|
157
|
+
direction === "col" ? "flex-col" : "flex-row",
|
|
158
|
+
gapMap2[gap],
|
|
159
|
+
alignMap[align],
|
|
160
|
+
justifyMap[justify],
|
|
161
|
+
wrap && "flex-wrap",
|
|
162
|
+
className
|
|
163
|
+
),
|
|
164
|
+
...props,
|
|
165
|
+
children
|
|
166
|
+
}
|
|
167
|
+
);
|
|
168
|
+
}
|
|
169
|
+
var paddingMap = {
|
|
170
|
+
none: "",
|
|
171
|
+
sm: "py-4",
|
|
172
|
+
md: "py-8",
|
|
173
|
+
lg: "py-16"
|
|
174
|
+
};
|
|
175
|
+
function Section({ title, description, padding = "md", className, children, ...props }) {
|
|
176
|
+
return /* @__PURE__ */ jsxs("section", { className: cn("w-full", paddingMap[padding], className), ...props, children: [
|
|
177
|
+
(title || description) && /* @__PURE__ */ jsxs("div", { className: "mb-6", children: [
|
|
178
|
+
title && /* @__PURE__ */ jsx("h2", { className: "text-xl font-semibold text-foreground", children: title }),
|
|
179
|
+
description && /* @__PURE__ */ jsx("p", { className: "mt-1 text-sm text-muted-foreground", children: description })
|
|
180
|
+
] }),
|
|
181
|
+
children
|
|
182
|
+
] });
|
|
183
|
+
}
|
|
76
184
|
function NavUser({ user }) {
|
|
77
185
|
const { isMobile } = useSidebar();
|
|
78
186
|
const uiMode = useUIMode();
|
|
@@ -2240,30 +2348,6 @@ function ChangelogList({
|
|
|
2240
2348
|
entry.slug
|
|
2241
2349
|
)) });
|
|
2242
2350
|
}
|
|
2243
|
-
var components = {
|
|
2244
|
-
h1: ({ className, ...props }) => /* @__PURE__ */ jsx("h1", { className: cn("mt-8 scroll-m-20 text-3xl font-bold tracking-tight text-foreground first:mt-0", className), ...props }),
|
|
2245
|
-
h2: ({ className, ...props }) => /* @__PURE__ */ jsx("h2", { className: cn("mt-10 scroll-m-20 text-2xl font-semibold tracking-tight text-foreground first:mt-0", className), ...props }),
|
|
2246
|
-
h3: ({ className, ...props }) => /* @__PURE__ */ jsx("h3", { className: cn("mt-8 scroll-m-20 text-xl font-semibold tracking-tight text-foreground", className), ...props }),
|
|
2247
|
-
h4: ({ className, ...props }) => /* @__PURE__ */ jsx("h4", { className: cn("mt-6 scroll-m-20 text-lg font-semibold tracking-tight text-foreground", className), ...props }),
|
|
2248
|
-
p: ({ className, ...props }) => /* @__PURE__ */ jsx("p", { className: cn("leading-7 text-muted-foreground [&:not(:first-child)]:mt-6", className), ...props }),
|
|
2249
|
-
ul: ({ className, ...props }) => /* @__PURE__ */ jsx("ul", { className: cn("my-6 ml-6 list-disc text-muted-foreground", className), ...props }),
|
|
2250
|
-
ol: ({ className, ...props }) => /* @__PURE__ */ jsx("ol", { className: cn("my-6 ml-6 list-decimal text-muted-foreground", className), ...props }),
|
|
2251
|
-
li: ({ className, ...props }) => /* @__PURE__ */ jsx("li", { className: cn("mt-2", className), ...props }),
|
|
2252
|
-
blockquote: ({ className, ...props }) => /* @__PURE__ */ jsx("blockquote", { className: cn("mt-6 rounded-r-lg border-l-4 border-primary bg-muted py-4 pl-6 pr-4 italic text-muted-foreground", className), ...props }),
|
|
2253
|
-
hr: (props) => /* @__PURE__ */ jsx("hr", { className: "my-8 border-border", ...props }),
|
|
2254
|
-
img: ({ className, alt, ...props }) => /* @__PURE__ */ jsx("img", { className: cn("rounded-lg border shadow-sm", className), alt, ...props }),
|
|
2255
|
-
pre: ({ className, ...props }) => /* @__PURE__ */ jsx("pre", { className: cn("mt-6 mb-4 overflow-x-auto rounded-lg bg-muted p-4 text-sm", className), ...props }),
|
|
2256
|
-
code: ({ className, ...props }) => /* @__PURE__ */ jsx("code", { className: cn("relative rounded bg-muted px-[0.3rem] py-[0.2rem] font-mono text-sm text-foreground", className), ...props }),
|
|
2257
|
-
table: ({ className, ...props }) => /* @__PURE__ */ jsx("div", { className: "my-6 w-full overflow-y-auto rounded-lg border border-border", children: /* @__PURE__ */ jsx("table", { className: cn("w-full", className), ...props }) }),
|
|
2258
|
-
tr: ({ className, ...props }) => /* @__PURE__ */ jsx("tr", { className: cn("m-0 border-t border-border p-0 even:bg-muted", className), ...props }),
|
|
2259
|
-
th: ({ className, ...props }) => /* @__PURE__ */ jsx("th", { className: cn("border border-border px-4 py-2 text-left font-bold [&[align=center]]:text-center [&[align=right]]:text-right", className), ...props }),
|
|
2260
|
-
td: ({ className, ...props }) => /* @__PURE__ */ jsx("td", { className: cn("border border-border px-4 py-2 text-left [&[align=center]]:text-center [&[align=right]]:text-right", className), ...props }),
|
|
2261
|
-
a: ({ className, ...props }) => /* @__PURE__ */ jsx("a", { className: cn("font-medium text-primary underline underline-offset-4 hover:text-primary/80", className), ...props })
|
|
2262
|
-
};
|
|
2263
|
-
function MdxContent({ code }) {
|
|
2264
|
-
const MDXComponent = useMDXComponent(code);
|
|
2265
|
-
return /* @__PURE__ */ jsx(MDXComponent, { components });
|
|
2266
|
-
}
|
|
2267
2351
|
function useMounted() {
|
|
2268
2352
|
const [mounted, setMounted] = useState(false);
|
|
2269
2353
|
useEffect(() => {
|
|
@@ -2398,6 +2482,6 @@ function usePagination(total, pageSize) {
|
|
|
2398
2482
|
return { page, pageSize, totalPages, offset, hasPrev: page > 1, hasNext: page < totalPages, goTo, next, prev };
|
|
2399
2483
|
}
|
|
2400
2484
|
|
|
2401
|
-
export { AppScreen, AppShell, AuthSection, Badge, Button, Card, ChangelogCard, ChangelogList, Checkbox, ConfirmDialog, ContactSection, ContextMenu, CountUp, CtaSection, DevBanner, Dock, EmptyState, ErrorPage, FadeIn, FaqSection, FeatureCard, FeaturesSection, Footer, FullPageSpinner, GlassCard, HeroSection, ImageCard, Input, LogoStrip,
|
|
2485
|
+
export { AppScreen, AppShell, AuthSection, Badge, Button, Card, ChangelogCard, ChangelogList, Checkbox, ConfirmDialog, ContactSection, ContextMenu, CountUp, CtaSection, DevBanner, Dock, EmptyState, ErrorPage, FadeIn, FaqSection, FeatureCard, FeaturesSection, Footer, FullPageSpinner, GlassCard, Grid, GridItem, HeroSection, ImageCard, Input, LogoStrip, Navbar, NewsletterSection, OlwibaUIProvider, Overlay, PageHeader, PageTransition, PhoneFrame, PostCard, PostList, PricingCard, PricingSection, RegisterHotkeys, RootErrorFallback, Section, SectionTitle, Spotlight, Stack, StaggerChildren, StatCard, StatsSection, Suspensed, Switch, TeamSection, TestimonialCard, TestimonialsSection, Textarea, ThemeColorUpdater, ThemeSwitchMinimal, Underlay, UpgradePrompt, VersionBanner, useConfirm, useControlledOpen, useCopyToClipboard, useDebounce, useIntersectionObserver, useLocalStorage, useMediaQuery, useMounted, useOlwibaUI, usePagination, useScrolledPast, useUIMode };
|
|
2402
2486
|
//# sourceMappingURL=index.js.map
|
|
2403
2487
|
//# sourceMappingURL=index.js.map
|