@olwiba/ui 0.0.44 → 0.0.46
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-AMWLSHD6.js +37 -0
- package/dist/chunk-AMWLSHD6.js.map +1 -0
- package/dist/index.d.ts +72 -5
- package/dist/index.js +71 -3
- package/dist/index.js.map +1 -1
- package/dist/mdx/index.js +1 -30
- package/dist/mdx/index.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +2 -2
- package/src/layout/AppContent.tsx +34 -0
- package/src/layout/AppGrid.tsx +48 -0
- package/src/layout/PublicPageFrame.tsx +42 -0
- package/src/layout/index.ts +6 -0
- package/dist/chunk-SUKTBILF.js +0 -11
- package/dist/chunk-SUKTBILF.js.map +0 -1
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { clsx } from 'clsx';
|
|
2
|
+
import { twMerge } from 'tailwind-merge';
|
|
3
|
+
import { useMDXComponent } from '@content-collections/mdx/react';
|
|
4
|
+
import { jsx } from 'react/jsx-runtime';
|
|
5
|
+
|
|
6
|
+
// src/lib/utils.ts
|
|
7
|
+
function cn(...inputs) {
|
|
8
|
+
return twMerge(clsx(inputs));
|
|
9
|
+
}
|
|
10
|
+
var components = {
|
|
11
|
+
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 }),
|
|
12
|
+
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 }),
|
|
13
|
+
h3: ({ className, ...props }) => /* @__PURE__ */ jsx("h3", { className: cn("mt-8 scroll-m-20 text-xl font-semibold tracking-tight text-foreground", className), ...props }),
|
|
14
|
+
h4: ({ className, ...props }) => /* @__PURE__ */ jsx("h4", { className: cn("mt-6 scroll-m-20 text-lg font-semibold tracking-tight text-foreground", className), ...props }),
|
|
15
|
+
p: ({ className, ...props }) => /* @__PURE__ */ jsx("p", { className: cn("leading-7 text-muted-foreground [&:not(:first-child)]:mt-6", className), ...props }),
|
|
16
|
+
ul: ({ className, ...props }) => /* @__PURE__ */ jsx("ul", { className: cn("my-6 ml-6 list-disc text-muted-foreground", className), ...props }),
|
|
17
|
+
ol: ({ className, ...props }) => /* @__PURE__ */ jsx("ol", { className: cn("my-6 ml-6 list-decimal text-muted-foreground", className), ...props }),
|
|
18
|
+
li: ({ className, ...props }) => /* @__PURE__ */ jsx("li", { className: cn("mt-2", className), ...props }),
|
|
19
|
+
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 }),
|
|
20
|
+
hr: (props) => /* @__PURE__ */ jsx("hr", { className: "my-8 border-border", ...props }),
|
|
21
|
+
img: ({ className, alt, ...props }) => /* @__PURE__ */ jsx("img", { className: cn("rounded-lg border shadow-sm", className), alt, ...props }),
|
|
22
|
+
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 }),
|
|
23
|
+
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 }),
|
|
24
|
+
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 }) }),
|
|
25
|
+
tr: ({ className, ...props }) => /* @__PURE__ */ jsx("tr", { className: cn("m-0 border-t border-border p-0 even:bg-muted", className), ...props }),
|
|
26
|
+
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 }),
|
|
27
|
+
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 }),
|
|
28
|
+
a: ({ className, ...props }) => /* @__PURE__ */ jsx("a", { className: cn("font-medium text-primary underline underline-offset-4 hover:text-primary/80", className), ...props })
|
|
29
|
+
};
|
|
30
|
+
function MdxContent({ code }) {
|
|
31
|
+
const MDXComponent = useMDXComponent(code);
|
|
32
|
+
return /* @__PURE__ */ jsx(MDXComponent, { components });
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export { MdxContent, cn };
|
|
36
|
+
//# sourceMappingURL=chunk-AMWLSHD6.js.map
|
|
37
|
+
//# sourceMappingURL=chunk-AMWLSHD6.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/lib/utils.ts","../src/blog/MdxContent.tsx"],"names":[],"mappings":";;;;;;AAGO,SAAS,MAAM,MAAA,EAAsB;AAC1C,EAAA,OAAO,OAAA,CAAQ,IAAA,CAAK,MAAM,CAAC,CAAA;AAC7B;ACDA,IAAM,UAAA,GAAa;AAAA,EACjB,EAAA,EAAI,CAAC,EAAE,SAAA,EAAW,GAAG,KAAA,EAAM,qBACzB,GAAA,CAAC,IAAA,EAAA,EAAG,WAAW,EAAA,CAAG,+EAAA,EAAiF,SAAS,CAAA,EAAI,GAAG,KAAA,EAAO,CAAA;AAAA,EAE5H,EAAA,EAAI,CAAC,EAAE,SAAA,EAAW,GAAG,KAAA,EAAM,qBACzB,GAAA,CAAC,IAAA,EAAA,EAAG,WAAW,EAAA,CAAG,oFAAA,EAAsF,SAAS,CAAA,EAAI,GAAG,KAAA,EAAO,CAAA;AAAA,EAEjI,EAAA,EAAI,CAAC,EAAE,SAAA,EAAW,GAAG,KAAA,EAAM,qBACzB,GAAA,CAAC,IAAA,EAAA,EAAG,WAAW,EAAA,CAAG,uEAAA,EAAyE,SAAS,CAAA,EAAI,GAAG,KAAA,EAAO,CAAA;AAAA,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,SAAS,CAAA,EAAI,GAAG,KAAA,EAAO,CAAA;AAAA,EAEjJ,CAAA,EAAG,CAAC,EAAE,SAAA,EAAW,GAAG,KAAA,EAAM,qBACxB,GAAA,CAAC,GAAA,EAAA,EAAE,WAAW,EAAA,CAAG,6EAAA,EAA+E,SAAS,CAAA,EAAI,GAAG,KAAA,EAAO;AAE3H,CAAA;AAMO,SAAS,UAAA,CAAW,EAAE,IAAA,EAAK,EAAoB;AACpD,EAAA,MAAM,YAAA,GAAe,gBAAgB,IAAI,CAAA;AACzC,EAAA,uBAAO,GAAA,CAAC,gBAAa,UAAA,EAAwB,CAAA;AAC/C","file":"chunk-AMWLSHD6.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","import * as React from 'react';\nimport { useMDXComponent } from '@content-collections/mdx/react';\nimport { cn } from '../lib/utils';\n\nconst components = {\n h1: ({ className, ...props }: React.HTMLAttributes<HTMLHeadingElement>) => (\n <h1 className={cn('mt-8 scroll-m-20 text-3xl font-bold tracking-tight text-foreground first:mt-0', className)} {...props} />\n ),\n h2: ({ className, ...props }: React.HTMLAttributes<HTMLHeadingElement>) => (\n <h2 className={cn('mt-10 scroll-m-20 text-2xl font-semibold tracking-tight text-foreground first:mt-0', className)} {...props} />\n ),\n h3: ({ className, ...props }: React.HTMLAttributes<HTMLHeadingElement>) => (\n <h3 className={cn('mt-8 scroll-m-20 text-xl font-semibold tracking-tight text-foreground', className)} {...props} />\n ),\n h4: ({ className, ...props }: React.HTMLAttributes<HTMLHeadingElement>) => (\n <h4 className={cn('mt-6 scroll-m-20 text-lg font-semibold tracking-tight text-foreground', className)} {...props} />\n ),\n p: ({ className, ...props }: React.HTMLAttributes<HTMLParagraphElement>) => (\n <p className={cn('leading-7 text-muted-foreground [&:not(:first-child)]:mt-6', className)} {...props} />\n ),\n ul: ({ className, ...props }: React.HTMLAttributes<HTMLUListElement>) => (\n <ul className={cn('my-6 ml-6 list-disc text-muted-foreground', className)} {...props} />\n ),\n ol: ({ className, ...props }: React.HTMLAttributes<HTMLOListElement>) => (\n <ol className={cn('my-6 ml-6 list-decimal text-muted-foreground', className)} {...props} />\n ),\n li: ({ className, ...props }: React.HTMLAttributes<HTMLLIElement>) => (\n <li className={cn('mt-2', className)} {...props} />\n ),\n blockquote: ({ className, ...props }: React.HTMLAttributes<HTMLQuoteElement>) => (\n <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} />\n ),\n hr: (props: React.HTMLAttributes<HTMLHRElement>) => (\n <hr className=\"my-8 border-border\" {...props} />\n ),\n img: ({ className, alt, ...props }: React.ImgHTMLAttributes<HTMLImageElement>) => (\n <img className={cn('rounded-lg border shadow-sm', className)} alt={alt} {...props} />\n ),\n pre: ({ className, ...props }: React.HTMLAttributes<HTMLPreElement>) => (\n <pre className={cn('mt-6 mb-4 overflow-x-auto rounded-lg bg-muted p-4 text-sm', className)} {...props} />\n ),\n code: ({ className, ...props }: React.HTMLAttributes<HTMLElement>) => (\n <code className={cn('relative rounded bg-muted px-[0.3rem] py-[0.2rem] font-mono text-sm text-foreground', className)} {...props} />\n ),\n table: ({ className, ...props }: React.HTMLAttributes<HTMLTableElement>) => (\n <div className=\"my-6 w-full overflow-y-auto rounded-lg border border-border\">\n <table className={cn('w-full', className)} {...props} />\n </div>\n ),\n tr: ({ className, ...props }: React.HTMLAttributes<HTMLTableRowElement>) => (\n <tr className={cn('m-0 border-t border-border p-0 even:bg-muted', className)} {...props} />\n ),\n th: ({ className, ...props }: React.HTMLAttributes<HTMLTableCellElement>) => (\n <th className={cn('border border-border px-4 py-2 text-left font-bold [&[align=center]]:text-center [&[align=right]]:text-right', className)} {...props} />\n ),\n td: ({ className, ...props }: React.HTMLAttributes<HTMLTableCellElement>) => (\n <td className={cn('border border-border px-4 py-2 text-left [&[align=center]]:text-center [&[align=right]]:text-right', className)} {...props} />\n ),\n a: ({ className, ...props }: React.AnchorHTMLAttributes<HTMLAnchorElement>) => (\n <a className={cn('font-medium text-primary underline underline-offset-4 hover:text-primary/80', className)} {...props} />\n ),\n};\n\nexport interface MdxContentProps {\n code: string;\n}\n\nexport function MdxContent({ code }: MdxContentProps) {\n const MDXComponent = useMDXComponent(code);\n return <MDXComponent components={components} />;\n}\n"]}
|
package/dist/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ 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';
|
|
8
|
+
export { MdxContent, MdxContentProps } from './mdx/index.js';
|
|
8
9
|
|
|
9
10
|
declare function cn(...inputs: ClassValue[]): string;
|
|
10
11
|
|
|
@@ -60,7 +61,7 @@ declare const Switch: React.ForwardRefExoticComponent<SwitchProps$1 & {
|
|
|
60
61
|
mode?: "default" | "playful" | "smooth";
|
|
61
62
|
} & React.RefAttributes<HTMLButtonElement>>;
|
|
62
63
|
|
|
63
|
-
declare const gapMap$
|
|
64
|
+
declare const gapMap$2: {
|
|
64
65
|
none: string;
|
|
65
66
|
xs: string;
|
|
66
67
|
sm: string;
|
|
@@ -70,7 +71,7 @@ declare const gapMap$1: {
|
|
|
70
71
|
};
|
|
71
72
|
interface GridProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
72
73
|
columns?: 1 | 2 | 3 | 4 | 5 | 6 | 12;
|
|
73
|
-
gap?: keyof typeof gapMap$
|
|
74
|
+
gap?: keyof typeof gapMap$2;
|
|
74
75
|
}
|
|
75
76
|
declare function Grid({ columns, gap, className, children, ...props }: GridProps): react_jsx_runtime.JSX.Element;
|
|
76
77
|
interface GridItemProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
@@ -79,7 +80,7 @@ interface GridItemProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
|
79
80
|
}
|
|
80
81
|
declare function GridItem({ span, rowSpan, className, children, ...props }: GridItemProps): react_jsx_runtime.JSX.Element;
|
|
81
82
|
|
|
82
|
-
declare const gapMap: {
|
|
83
|
+
declare const gapMap$1: {
|
|
83
84
|
none: string;
|
|
84
85
|
xs: string;
|
|
85
86
|
sm: string;
|
|
@@ -102,7 +103,7 @@ declare const justifyMap: {
|
|
|
102
103
|
};
|
|
103
104
|
interface StackProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
104
105
|
direction?: 'col' | 'row';
|
|
105
|
-
gap?: keyof typeof gapMap;
|
|
106
|
+
gap?: keyof typeof gapMap$1;
|
|
106
107
|
align?: keyof typeof alignMap;
|
|
107
108
|
justify?: keyof typeof justifyMap;
|
|
108
109
|
wrap?: boolean;
|
|
@@ -122,6 +123,72 @@ interface SectionProps extends React__default.HTMLAttributes<HTMLElement> {
|
|
|
122
123
|
}
|
|
123
124
|
declare function Section({ title, description, padding, className, children, ...props }: SectionProps): react_jsx_runtime.JSX.Element;
|
|
124
125
|
|
|
126
|
+
declare const spacingMap$1: {
|
|
127
|
+
sm: string;
|
|
128
|
+
md: string;
|
|
129
|
+
lg: string;
|
|
130
|
+
};
|
|
131
|
+
declare const maxWidthMap$1: {
|
|
132
|
+
none: string;
|
|
133
|
+
'screen-lg': string;
|
|
134
|
+
'screen-xl': string;
|
|
135
|
+
'screen-2xl': string;
|
|
136
|
+
};
|
|
137
|
+
interface AppContentProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
138
|
+
spacing?: keyof typeof spacingMap$1;
|
|
139
|
+
maxWidth?: keyof typeof maxWidthMap$1;
|
|
140
|
+
}
|
|
141
|
+
declare function AppContent({ spacing, maxWidth, className, children, ...props }: AppContentProps): react_jsx_runtime.JSX.Element;
|
|
142
|
+
|
|
143
|
+
declare const columnsMap: {
|
|
144
|
+
1: string;
|
|
145
|
+
2: string;
|
|
146
|
+
3: string;
|
|
147
|
+
4: string;
|
|
148
|
+
};
|
|
149
|
+
declare const gapMap: {
|
|
150
|
+
sm: string;
|
|
151
|
+
md: string;
|
|
152
|
+
lg: string;
|
|
153
|
+
};
|
|
154
|
+
declare const spanMap: {
|
|
155
|
+
1: string;
|
|
156
|
+
2: string;
|
|
157
|
+
3: string;
|
|
158
|
+
4: string;
|
|
159
|
+
full: string;
|
|
160
|
+
};
|
|
161
|
+
interface AppGridProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
162
|
+
columns?: keyof typeof columnsMap;
|
|
163
|
+
gap?: keyof typeof gapMap;
|
|
164
|
+
}
|
|
165
|
+
declare function AppGrid({ columns, gap, className, children, ...props }: AppGridProps): react_jsx_runtime.JSX.Element;
|
|
166
|
+
interface AppGridCellProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
167
|
+
span?: keyof typeof spanMap;
|
|
168
|
+
}
|
|
169
|
+
declare function AppGridCell({ span, className, children, ...props }: AppGridCellProps): react_jsx_runtime.JSX.Element;
|
|
170
|
+
|
|
171
|
+
declare const surfaceMap: {
|
|
172
|
+
default: string;
|
|
173
|
+
muted: string;
|
|
174
|
+
};
|
|
175
|
+
declare const spacingMap: {
|
|
176
|
+
sm: string;
|
|
177
|
+
md: string;
|
|
178
|
+
lg: string;
|
|
179
|
+
};
|
|
180
|
+
declare const maxWidthMap: {
|
|
181
|
+
none: string;
|
|
182
|
+
'screen-xl': string;
|
|
183
|
+
'screen-2xl': string;
|
|
184
|
+
};
|
|
185
|
+
interface PublicPageFrameProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
186
|
+
surface?: keyof typeof surfaceMap;
|
|
187
|
+
spacing?: keyof typeof spacingMap;
|
|
188
|
+
maxWidth?: keyof typeof maxWidthMap;
|
|
189
|
+
}
|
|
190
|
+
declare function PublicPageFrame({ surface, spacing, maxWidth, className, children, ...props }: PublicPageFrameProps): react_jsx_runtime.JSX.Element;
|
|
191
|
+
|
|
125
192
|
interface AppNavItem {
|
|
126
193
|
icon: LucideIcon;
|
|
127
194
|
label: string;
|
|
@@ -951,4 +1018,4 @@ interface UsePaginationReturn {
|
|
|
951
1018
|
}
|
|
952
1019
|
declare function usePagination(total: number, pageSize: number): UsePaginationReturn;
|
|
953
1020
|
|
|
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 };
|
|
1021
|
+
export { AppContent, type AppContentProps, AppGrid, AppGridCell, type AppGridCellProps, type AppGridProps, 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, PublicPageFrame, type PublicPageFrameProps, 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,5 +1,5 @@
|
|
|
1
|
-
import { cn } from './chunk-
|
|
2
|
-
export { cn } from './chunk-
|
|
1
|
+
import { cn } from './chunk-AMWLSHD6.js';
|
|
2
|
+
export { MdxContent, cn } from './chunk-AMWLSHD6.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';
|
|
@@ -181,6 +181,74 @@ function Section({ title, description, padding = "md", className, children, ...p
|
|
|
181
181
|
children
|
|
182
182
|
] });
|
|
183
183
|
}
|
|
184
|
+
var spacingMap = {
|
|
185
|
+
sm: "space-y-4",
|
|
186
|
+
md: "space-y-6",
|
|
187
|
+
lg: "space-y-8"
|
|
188
|
+
};
|
|
189
|
+
var maxWidthMap = {
|
|
190
|
+
none: "",
|
|
191
|
+
"screen-lg": "mx-auto max-w-screen-lg",
|
|
192
|
+
"screen-xl": "mx-auto max-w-screen-xl",
|
|
193
|
+
"screen-2xl": "mx-auto max-w-screen-2xl"
|
|
194
|
+
};
|
|
195
|
+
function AppContent({
|
|
196
|
+
spacing = "md",
|
|
197
|
+
maxWidth = "none",
|
|
198
|
+
className,
|
|
199
|
+
children,
|
|
200
|
+
...props
|
|
201
|
+
}) {
|
|
202
|
+
return /* @__PURE__ */ jsx("div", { className: cn("p-6", maxWidthMap[maxWidth], spacingMap[spacing], className), ...props, children });
|
|
203
|
+
}
|
|
204
|
+
var columnsMap = {
|
|
205
|
+
1: "grid-cols-1",
|
|
206
|
+
2: "grid-cols-1 md:grid-cols-2",
|
|
207
|
+
3: "grid-cols-1 md:grid-cols-2 xl:grid-cols-3",
|
|
208
|
+
4: "grid-cols-1 md:grid-cols-2 xl:grid-cols-4"
|
|
209
|
+
};
|
|
210
|
+
var gapMap3 = {
|
|
211
|
+
sm: "gap-3",
|
|
212
|
+
md: "gap-4",
|
|
213
|
+
lg: "gap-6"
|
|
214
|
+
};
|
|
215
|
+
var spanMap2 = {
|
|
216
|
+
1: "md:col-span-1",
|
|
217
|
+
2: "md:col-span-2",
|
|
218
|
+
3: "xl:col-span-3",
|
|
219
|
+
4: "xl:col-span-4",
|
|
220
|
+
full: "col-span-full"
|
|
221
|
+
};
|
|
222
|
+
function AppGrid({ columns = 3, gap = "md", className, children, ...props }) {
|
|
223
|
+
return /* @__PURE__ */ jsx("div", { className: cn("grid", columnsMap[columns], gapMap3[gap], className), ...props, children });
|
|
224
|
+
}
|
|
225
|
+
function AppGridCell({ span = 1, className, children, ...props }) {
|
|
226
|
+
return /* @__PURE__ */ jsx("div", { className: cn(spanMap2[span], className), ...props, children });
|
|
227
|
+
}
|
|
228
|
+
var surfaceMap = {
|
|
229
|
+
default: "bg-background",
|
|
230
|
+
muted: "bg-muted/50"
|
|
231
|
+
};
|
|
232
|
+
var spacingMap2 = {
|
|
233
|
+
sm: "gap-4 p-4",
|
|
234
|
+
md: "gap-5 p-4 sm:gap-6 sm:p-6",
|
|
235
|
+
lg: "gap-6 p-4 sm:gap-8 sm:p-6"
|
|
236
|
+
};
|
|
237
|
+
var maxWidthMap2 = {
|
|
238
|
+
none: "",
|
|
239
|
+
"screen-xl": "mx-auto max-w-screen-xl",
|
|
240
|
+
"screen-2xl": "mx-auto max-w-screen-2xl"
|
|
241
|
+
};
|
|
242
|
+
function PublicPageFrame({
|
|
243
|
+
surface = "muted",
|
|
244
|
+
spacing = "md",
|
|
245
|
+
maxWidth = "none",
|
|
246
|
+
className,
|
|
247
|
+
children,
|
|
248
|
+
...props
|
|
249
|
+
}) {
|
|
250
|
+
return /* @__PURE__ */ jsx("div", { className: cn("min-h-screen", surfaceMap[surface], className), ...props, children: /* @__PURE__ */ jsx("div", { className: cn("flex flex-col", spacingMap2[spacing], maxWidthMap2[maxWidth]), children }) });
|
|
251
|
+
}
|
|
184
252
|
function NavUser({ user }) {
|
|
185
253
|
const { isMobile } = useSidebar();
|
|
186
254
|
const uiMode = useUIMode();
|
|
@@ -2482,6 +2550,6 @@ function usePagination(total, pageSize) {
|
|
|
2482
2550
|
return { page, pageSize, totalPages, offset, hasPrev: page > 1, hasNext: page < totalPages, goTo, next, prev };
|
|
2483
2551
|
}
|
|
2484
2552
|
|
|
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 };
|
|
2553
|
+
export { AppContent, AppGrid, AppGridCell, 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, PublicPageFrame, 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 };
|
|
2486
2554
|
//# sourceMappingURL=index.js.map
|
|
2487
2555
|
//# sourceMappingURL=index.js.map
|