@pelatform/ui 1.5.2 → 1.5.4
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/css/components/image-input.css +1 -1
- package/dist/animation.cjs +8 -192
- package/dist/animation.js +83 -267
- package/dist/base.cjs +5 -5
- package/dist/base.js +5 -5
- package/dist/{chunk-TYEFU7IG.js → chunk-CTHRAJQZ.js} +446 -279
- package/dist/chunk-D373YKDA.js +196 -0
- package/dist/{chunk-DBE4IGCP.cjs → chunk-HILACSFA.cjs} +368 -201
- package/dist/{chunk-S3QFGYE6.js → chunk-UYMAUGVA.js} +12 -0
- package/dist/{chunk-KNS6QRVB.cjs → chunk-WI36EFUS.cjs} +14 -2
- package/dist/chunk-ZBO5IAMA.cjs +196 -0
- package/dist/{components-BgbIL9EW.d.cts → components-CidsRcc3.d.cts} +4 -0
- package/dist/{components-BgbIL9EW.d.ts → components-CidsRcc3.d.ts} +4 -0
- package/dist/components.cjs +500 -100
- package/dist/components.d.cts +172 -4
- package/dist/components.d.ts +172 -4
- package/dist/components.js +698 -298
- package/dist/default.cjs +184 -333
- package/dist/default.js +712 -861
- package/dist/index.cjs +5 -9
- package/dist/index.d.cts +22 -2
- package/dist/index.d.ts +22 -2
- package/dist/index.js +4 -8
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/package.json +2 -2
package/dist/components.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { B as BaseProps, L as Link, I as Image } from './components-BgbIL9EW.cjs';
|
|
3
2
|
import * as React$1 from 'react';
|
|
4
|
-
import React__default, {
|
|
3
|
+
import React__default, { ReactNode, HTMLAttributes, ComponentProps, FC, DragEvent, RefObject } from 'react';
|
|
4
|
+
import { B as BaseProps, L as Link, I as Image } from './components-CidsRcc3.cjs';
|
|
5
5
|
import { DialogProps } from '@radix-ui/react-dialog';
|
|
6
6
|
import { ThemeProvider as ThemeProvider$1 } from 'next-themes';
|
|
7
7
|
import { VariantProps } from 'class-variance-authority';
|
|
@@ -296,6 +296,56 @@ interface ScreenLoaderProps {
|
|
|
296
296
|
*/
|
|
297
297
|
declare function ScreenLoader({ loadingText, className, spinnerClassName, textClassName, contentLoader, }?: ScreenLoaderProps): react_jsx_runtime.JSX.Element;
|
|
298
298
|
|
|
299
|
+
/**
|
|
300
|
+
* LayoutAuth Component
|
|
301
|
+
*
|
|
302
|
+
* A centered authentication page layout that vertically and horizontally
|
|
303
|
+
* centers its content. Optionally renders a `logo` above the card.
|
|
304
|
+
*
|
|
305
|
+
* @param props - Component props
|
|
306
|
+
* @returns JSX element containing the authentication layout
|
|
307
|
+
*
|
|
308
|
+
* @example
|
|
309
|
+
* ```tsx
|
|
310
|
+
* <LayoutAuth logo={<MyLogo />}>
|
|
311
|
+
* <LoginForm />
|
|
312
|
+
* </LayoutAuth>
|
|
313
|
+
* ```
|
|
314
|
+
*/
|
|
315
|
+
declare function LayoutAuth({ children, className, logo }: BaseProps & {
|
|
316
|
+
logo?: ReactNode;
|
|
317
|
+
}): react_jsx_runtime.JSX.Element;
|
|
318
|
+
|
|
319
|
+
/**
|
|
320
|
+
* Props interface for the `LayoutBlank` component
|
|
321
|
+
* Inherits `children` and `className` from `BaseProps`, and `Link` from `SharedLink`.
|
|
322
|
+
*/
|
|
323
|
+
interface LayoutBlankProps extends BaseProps {
|
|
324
|
+
/** Optional footer content displayed at the bottom */
|
|
325
|
+
footer?: ReactNode;
|
|
326
|
+
/** Optional logo element displayed at the top */
|
|
327
|
+
logo?: ReactNode;
|
|
328
|
+
/** Destination URL for the logo link */
|
|
329
|
+
logoHref?: string;
|
|
330
|
+
}
|
|
331
|
+
/**
|
|
332
|
+
* LayoutBlank Component
|
|
333
|
+
*
|
|
334
|
+
* A minimal full-screen layout with a subtle background grid and configurable
|
|
335
|
+
* header logo and footer content. Useful for simple landing or blank pages.
|
|
336
|
+
*
|
|
337
|
+
* @param props - Component props
|
|
338
|
+
* @returns JSX element containing the blank layout
|
|
339
|
+
*
|
|
340
|
+
* @example
|
|
341
|
+
* ```tsx
|
|
342
|
+
* <LayoutBlank logo={<Logo />} logoHref="/">
|
|
343
|
+
* <Content />
|
|
344
|
+
* </LayoutBlank>
|
|
345
|
+
* ```
|
|
346
|
+
*/
|
|
347
|
+
declare function LayoutBlank({ children, footer, className, logo, logoHref }: LayoutBlankProps): react_jsx_runtime.JSX.Element;
|
|
348
|
+
|
|
299
349
|
/**
|
|
300
350
|
* Body Component
|
|
301
351
|
*
|
|
@@ -338,6 +388,74 @@ declare function Body({ slug, children, className }: BaseProps & {
|
|
|
338
388
|
slug: string;
|
|
339
389
|
}): react_jsx_runtime.JSX.Element;
|
|
340
390
|
|
|
391
|
+
/**
|
|
392
|
+
* Coming Soon Component
|
|
393
|
+
* Displays a full-height section with an animated hover background and
|
|
394
|
+
* optional title and description. Ideal for placeholder pages or upcoming
|
|
395
|
+
* feature announcements.
|
|
396
|
+
*/
|
|
397
|
+
/**
|
|
398
|
+
* Props interface for the `ComingSoon` component
|
|
399
|
+
*/
|
|
400
|
+
interface ComingSoonProps {
|
|
401
|
+
/** Additional CSS classes for the wrapper */
|
|
402
|
+
className?: string;
|
|
403
|
+
/** Optional highlighted title text */
|
|
404
|
+
title?: string;
|
|
405
|
+
/** Optional descriptive text below the title */
|
|
406
|
+
description?: string;
|
|
407
|
+
}
|
|
408
|
+
/**
|
|
409
|
+
* ComingSoon Component
|
|
410
|
+
*
|
|
411
|
+
* Renders a full-height container with animated hover background objects
|
|
412
|
+
* and optional title/description content centered on the screen.
|
|
413
|
+
*
|
|
414
|
+
* @param props - Component props
|
|
415
|
+
* @returns JSX element containing the coming soon layout
|
|
416
|
+
*
|
|
417
|
+
* @example
|
|
418
|
+
* ```tsx
|
|
419
|
+
* <ComingSoon title="Coming Soon" description="We are cooking something nice." />
|
|
420
|
+
* ```
|
|
421
|
+
*/
|
|
422
|
+
declare function ComingSoon({ className, title, description }: ComingSoonProps): react_jsx_runtime.JSX.Element;
|
|
423
|
+
|
|
424
|
+
/**
|
|
425
|
+
* Props interface for the `ErrorComponents` component
|
|
426
|
+
*/
|
|
427
|
+
interface ErrorComponentsProps {
|
|
428
|
+
/** Additional CSS classes for the container */
|
|
429
|
+
className?: string;
|
|
430
|
+
/** Error variant to display */
|
|
431
|
+
type?: 'default' | '404' | '500' | 'custom';
|
|
432
|
+
/** Optional title content */
|
|
433
|
+
textTitle?: ReactNode;
|
|
434
|
+
/** Optional subtitle content */
|
|
435
|
+
textSubtitle?: ReactNode;
|
|
436
|
+
/** Optional action button (e.g., retry) */
|
|
437
|
+
button?: ReactNode;
|
|
438
|
+
}
|
|
439
|
+
/**
|
|
440
|
+
* ErrorComponents Component
|
|
441
|
+
*
|
|
442
|
+
* A reusable error layout supporting multiple variants (404, 500, default, custom).
|
|
443
|
+
* Displays illustrations and optional title, subtitle, and button.
|
|
444
|
+
*
|
|
445
|
+
* @param props - Component props
|
|
446
|
+
* @returns JSX element containing the error layout
|
|
447
|
+
*
|
|
448
|
+
* @example
|
|
449
|
+
* ```tsx
|
|
450
|
+
* <ErrorComponents
|
|
451
|
+
* type="404"
|
|
452
|
+
* textTitle="Page not found"
|
|
453
|
+
* textSubtitle="The page you are looking for does not exist."
|
|
454
|
+
* />
|
|
455
|
+
* ```
|
|
456
|
+
*/
|
|
457
|
+
declare function ErrorComponents({ className, type, textTitle, textSubtitle, button, }: ErrorComponentsProps): react_jsx_runtime.JSX.Element;
|
|
458
|
+
|
|
341
459
|
/**
|
|
342
460
|
* Grid Component
|
|
343
461
|
* Renders an SVG grid pattern overlay for background decoration
|
|
@@ -2089,6 +2207,48 @@ declare const getListFiles: (files: FileList, dataURLKey: string) => Promise<Ima
|
|
|
2089
2207
|
*/
|
|
2090
2208
|
declare const ImageInput: FC<ImageInputProps>;
|
|
2091
2209
|
|
|
2210
|
+
/**
|
|
2211
|
+
* Locale option used by the LanguageSwitcher
|
|
2212
|
+
*/
|
|
2213
|
+
interface LocaleOption {
|
|
2214
|
+
/** Locale code, e.g. 'en', 'id' */
|
|
2215
|
+
code: string;
|
|
2216
|
+
/** Human readable language name */
|
|
2217
|
+
name: string;
|
|
2218
|
+
/** Optional flag code to render, e.g. 'us', 'id' */
|
|
2219
|
+
flag?: string;
|
|
2220
|
+
/** Optional currency code associated with the locale */
|
|
2221
|
+
currency?: string;
|
|
2222
|
+
}
|
|
2223
|
+
/**
|
|
2224
|
+
* Props for the LanguageSwitcher component (prop-driven)
|
|
2225
|
+
*/
|
|
2226
|
+
interface LanguageSwitcherProps extends SharedImage {
|
|
2227
|
+
/** Additional CSS classes */
|
|
2228
|
+
className?: string;
|
|
2229
|
+
/** UI type: standalone dropdown or submenu dropdown */
|
|
2230
|
+
type?: 'dropdown' | 'sub-dropdown';
|
|
2231
|
+
/** Button variant style (for toggle type) */
|
|
2232
|
+
variant?: 'ghost' | 'outline' | 'secondary';
|
|
2233
|
+
/** Button size (for toggle type) */
|
|
2234
|
+
size?: 'sm' | 'md' | 'lg';
|
|
2235
|
+
/** Whether to show language names */
|
|
2236
|
+
showNames?: boolean;
|
|
2237
|
+
/** Whether to show flag icons */
|
|
2238
|
+
showFlags?: boolean;
|
|
2239
|
+
/** Label text for the dropdown trigger; defaults to 'Language' */
|
|
2240
|
+
label?: string;
|
|
2241
|
+
/** Whether i18n is enabled; if false and <=1 locales, render null */
|
|
2242
|
+
i18nEnabled?: boolean;
|
|
2243
|
+
/** Current active locale code */
|
|
2244
|
+
currentLocale: string;
|
|
2245
|
+
/** Available locales to render */
|
|
2246
|
+
locales: LocaleOption[];
|
|
2247
|
+
/** Handler called when a new locale is selected */
|
|
2248
|
+
onLocaleChange: (newLocale: string) => void | Promise<void>;
|
|
2249
|
+
}
|
|
2250
|
+
declare function LanguageSwitcher({ className, type, variant, size, showNames, showFlags, label, i18nEnabled, currentLocale, locales, onLocaleChange, Image, }: LanguageSwitcherProps): react_jsx_runtime.JSX.Element | null;
|
|
2251
|
+
|
|
2092
2252
|
/**
|
|
2093
2253
|
* Logo Component
|
|
2094
2254
|
* Displays the application logo as an SVG icon
|
|
@@ -2148,6 +2308,14 @@ interface ModeSwitcherProps {
|
|
|
2148
2308
|
size?: 'sm' | 'md' | 'lg';
|
|
2149
2309
|
/** Custom cycle order for themes (defaults to system -> light -> dark) */
|
|
2150
2310
|
cycleOrder?: ThemeMode[];
|
|
2311
|
+
/** Button type: 'toggle' for a single button or 'dropdown' and 'sub-dropdown' for a menu with options */
|
|
2312
|
+
type?: 'toogle' | 'dropdown' | 'sub-dropdown';
|
|
2313
|
+
/** Labels for each theme mode (optional) */
|
|
2314
|
+
label?: {
|
|
2315
|
+
system?: string;
|
|
2316
|
+
dark?: string;
|
|
2317
|
+
light?: string;
|
|
2318
|
+
};
|
|
2151
2319
|
}
|
|
2152
2320
|
/**
|
|
2153
2321
|
* ModeSwitcher Component
|
|
@@ -2185,7 +2353,7 @@ interface ModeSwitcherProps {
|
|
|
2185
2353
|
* />
|
|
2186
2354
|
* ```
|
|
2187
2355
|
*/
|
|
2188
|
-
declare function ModeSwitcher({ className, variant, size, cycleOrder, }: ModeSwitcherProps): react_jsx_runtime.JSX.Element;
|
|
2356
|
+
declare function ModeSwitcher({ className, variant, size, cycleOrder, type, label, }: ModeSwitcherProps): react_jsx_runtime.JSX.Element;
|
|
2189
2357
|
|
|
2190
2358
|
/**
|
|
2191
2359
|
* Props interface for MovingLabel component
|
|
@@ -2759,4 +2927,4 @@ interface RecaptchaPopoverProps {
|
|
|
2759
2927
|
*/
|
|
2760
2928
|
declare function RecaptchaPopover({ open, onOpenChange, onVerify, trigger, verifyButtonText, }: RecaptchaPopoverProps): react_jsx_runtime.JSX.Element;
|
|
2761
2929
|
|
|
2762
|
-
export { AlertComingsoon, AlertNotification, AlertToast, type AlertToastOptions, Announcement, AnnouncementTag, AnnouncementTitle, BackLink, BackgroundPaths, Body, Book, CodeDisplay, CommandMenu, type CommandMenuProps, ConfirmDismissDialog, type ConfirmDismissDialogProps, DEFAULT_DATA_URL_KEY, DEFAULT_NULL_INDEX, DefaultImage, DefaultLink, DefaultNavigate, DotsPattern, DownloadFile, ExtraLink, FloatingPaths, Grid, GridBackground, Icons, ImageInput, type ImageInputFile, type ImageInputFiles, type ImageInputProps, Logo, MainNav, MaxWidthWrapper, MobileNav, MobileNavItemRenderer, ModeSwitcher, type ModeSwitcherProps, MovingBorder, MovingLabel, type NavItem, type NavigationProps, QueryProvider, RecaptchaPopover, SatoshiFontCSS, ScreenLoader, type ScreenLoaderProps, Section, type SharedImage, type SharedLink, type SharedNavigate, SiteFooter, SiteHeader, Stack, Subscribe, type SubscribeProps, ThemeProvider, Toolbar, ToolbarActions, ToolbarHeading, ToolbarTitle, UserAvatar, Video, Wrapper, Youtube, cssFontFace, getAcceptTypeString, getBase64, getImage, getInitials, getListFiles, handleMenuClick, openFileDialog, satoshiFontUrl };
|
|
2930
|
+
export { AlertComingsoon, AlertNotification, AlertToast, type AlertToastOptions, Announcement, AnnouncementTag, AnnouncementTitle, BackLink, BackgroundPaths, Body, Book, CodeDisplay, ComingSoon, type ComingSoonProps, CommandMenu, type CommandMenuProps, ConfirmDismissDialog, type ConfirmDismissDialogProps, DEFAULT_DATA_URL_KEY, DEFAULT_NULL_INDEX, DefaultImage, DefaultLink, DefaultNavigate, DotsPattern, DownloadFile, ErrorComponents, type ErrorComponentsProps, ExtraLink, FloatingPaths, Grid, GridBackground, Icons, ImageInput, type ImageInputFile, type ImageInputFiles, type ImageInputProps, LanguageSwitcher, type LanguageSwitcherProps, LayoutAuth, LayoutBlank, type LayoutBlankProps, type LocaleOption, Logo, MainNav, MaxWidthWrapper, MobileNav, MobileNavItemRenderer, ModeSwitcher, type ModeSwitcherProps, MovingBorder, MovingLabel, type NavItem, type NavigationProps, QueryProvider, RecaptchaPopover, SatoshiFontCSS, ScreenLoader, type ScreenLoaderProps, Section, type SharedImage, type SharedLink, type SharedNavigate, SiteFooter, SiteHeader, Stack, Subscribe, type SubscribeProps, ThemeProvider, Toolbar, ToolbarActions, ToolbarHeading, ToolbarTitle, UserAvatar, Video, Wrapper, Youtube, cssFontFace, getAcceptTypeString, getBase64, getImage, getInitials, getListFiles, handleMenuClick, openFileDialog, satoshiFontUrl };
|
package/dist/components.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { B as BaseProps, L as Link, I as Image } from './components-BgbIL9EW.js';
|
|
3
2
|
import * as React$1 from 'react';
|
|
4
|
-
import React__default, {
|
|
3
|
+
import React__default, { ReactNode, HTMLAttributes, ComponentProps, FC, DragEvent, RefObject } from 'react';
|
|
4
|
+
import { B as BaseProps, L as Link, I as Image } from './components-CidsRcc3.js';
|
|
5
5
|
import { DialogProps } from '@radix-ui/react-dialog';
|
|
6
6
|
import { ThemeProvider as ThemeProvider$1 } from 'next-themes';
|
|
7
7
|
import { VariantProps } from 'class-variance-authority';
|
|
@@ -296,6 +296,56 @@ interface ScreenLoaderProps {
|
|
|
296
296
|
*/
|
|
297
297
|
declare function ScreenLoader({ loadingText, className, spinnerClassName, textClassName, contentLoader, }?: ScreenLoaderProps): react_jsx_runtime.JSX.Element;
|
|
298
298
|
|
|
299
|
+
/**
|
|
300
|
+
* LayoutAuth Component
|
|
301
|
+
*
|
|
302
|
+
* A centered authentication page layout that vertically and horizontally
|
|
303
|
+
* centers its content. Optionally renders a `logo` above the card.
|
|
304
|
+
*
|
|
305
|
+
* @param props - Component props
|
|
306
|
+
* @returns JSX element containing the authentication layout
|
|
307
|
+
*
|
|
308
|
+
* @example
|
|
309
|
+
* ```tsx
|
|
310
|
+
* <LayoutAuth logo={<MyLogo />}>
|
|
311
|
+
* <LoginForm />
|
|
312
|
+
* </LayoutAuth>
|
|
313
|
+
* ```
|
|
314
|
+
*/
|
|
315
|
+
declare function LayoutAuth({ children, className, logo }: BaseProps & {
|
|
316
|
+
logo?: ReactNode;
|
|
317
|
+
}): react_jsx_runtime.JSX.Element;
|
|
318
|
+
|
|
319
|
+
/**
|
|
320
|
+
* Props interface for the `LayoutBlank` component
|
|
321
|
+
* Inherits `children` and `className` from `BaseProps`, and `Link` from `SharedLink`.
|
|
322
|
+
*/
|
|
323
|
+
interface LayoutBlankProps extends BaseProps {
|
|
324
|
+
/** Optional footer content displayed at the bottom */
|
|
325
|
+
footer?: ReactNode;
|
|
326
|
+
/** Optional logo element displayed at the top */
|
|
327
|
+
logo?: ReactNode;
|
|
328
|
+
/** Destination URL for the logo link */
|
|
329
|
+
logoHref?: string;
|
|
330
|
+
}
|
|
331
|
+
/**
|
|
332
|
+
* LayoutBlank Component
|
|
333
|
+
*
|
|
334
|
+
* A minimal full-screen layout with a subtle background grid and configurable
|
|
335
|
+
* header logo and footer content. Useful for simple landing or blank pages.
|
|
336
|
+
*
|
|
337
|
+
* @param props - Component props
|
|
338
|
+
* @returns JSX element containing the blank layout
|
|
339
|
+
*
|
|
340
|
+
* @example
|
|
341
|
+
* ```tsx
|
|
342
|
+
* <LayoutBlank logo={<Logo />} logoHref="/">
|
|
343
|
+
* <Content />
|
|
344
|
+
* </LayoutBlank>
|
|
345
|
+
* ```
|
|
346
|
+
*/
|
|
347
|
+
declare function LayoutBlank({ children, footer, className, logo, logoHref }: LayoutBlankProps): react_jsx_runtime.JSX.Element;
|
|
348
|
+
|
|
299
349
|
/**
|
|
300
350
|
* Body Component
|
|
301
351
|
*
|
|
@@ -338,6 +388,74 @@ declare function Body({ slug, children, className }: BaseProps & {
|
|
|
338
388
|
slug: string;
|
|
339
389
|
}): react_jsx_runtime.JSX.Element;
|
|
340
390
|
|
|
391
|
+
/**
|
|
392
|
+
* Coming Soon Component
|
|
393
|
+
* Displays a full-height section with an animated hover background and
|
|
394
|
+
* optional title and description. Ideal for placeholder pages or upcoming
|
|
395
|
+
* feature announcements.
|
|
396
|
+
*/
|
|
397
|
+
/**
|
|
398
|
+
* Props interface for the `ComingSoon` component
|
|
399
|
+
*/
|
|
400
|
+
interface ComingSoonProps {
|
|
401
|
+
/** Additional CSS classes for the wrapper */
|
|
402
|
+
className?: string;
|
|
403
|
+
/** Optional highlighted title text */
|
|
404
|
+
title?: string;
|
|
405
|
+
/** Optional descriptive text below the title */
|
|
406
|
+
description?: string;
|
|
407
|
+
}
|
|
408
|
+
/**
|
|
409
|
+
* ComingSoon Component
|
|
410
|
+
*
|
|
411
|
+
* Renders a full-height container with animated hover background objects
|
|
412
|
+
* and optional title/description content centered on the screen.
|
|
413
|
+
*
|
|
414
|
+
* @param props - Component props
|
|
415
|
+
* @returns JSX element containing the coming soon layout
|
|
416
|
+
*
|
|
417
|
+
* @example
|
|
418
|
+
* ```tsx
|
|
419
|
+
* <ComingSoon title="Coming Soon" description="We are cooking something nice." />
|
|
420
|
+
* ```
|
|
421
|
+
*/
|
|
422
|
+
declare function ComingSoon({ className, title, description }: ComingSoonProps): react_jsx_runtime.JSX.Element;
|
|
423
|
+
|
|
424
|
+
/**
|
|
425
|
+
* Props interface for the `ErrorComponents` component
|
|
426
|
+
*/
|
|
427
|
+
interface ErrorComponentsProps {
|
|
428
|
+
/** Additional CSS classes for the container */
|
|
429
|
+
className?: string;
|
|
430
|
+
/** Error variant to display */
|
|
431
|
+
type?: 'default' | '404' | '500' | 'custom';
|
|
432
|
+
/** Optional title content */
|
|
433
|
+
textTitle?: ReactNode;
|
|
434
|
+
/** Optional subtitle content */
|
|
435
|
+
textSubtitle?: ReactNode;
|
|
436
|
+
/** Optional action button (e.g., retry) */
|
|
437
|
+
button?: ReactNode;
|
|
438
|
+
}
|
|
439
|
+
/**
|
|
440
|
+
* ErrorComponents Component
|
|
441
|
+
*
|
|
442
|
+
* A reusable error layout supporting multiple variants (404, 500, default, custom).
|
|
443
|
+
* Displays illustrations and optional title, subtitle, and button.
|
|
444
|
+
*
|
|
445
|
+
* @param props - Component props
|
|
446
|
+
* @returns JSX element containing the error layout
|
|
447
|
+
*
|
|
448
|
+
* @example
|
|
449
|
+
* ```tsx
|
|
450
|
+
* <ErrorComponents
|
|
451
|
+
* type="404"
|
|
452
|
+
* textTitle="Page not found"
|
|
453
|
+
* textSubtitle="The page you are looking for does not exist."
|
|
454
|
+
* />
|
|
455
|
+
* ```
|
|
456
|
+
*/
|
|
457
|
+
declare function ErrorComponents({ className, type, textTitle, textSubtitle, button, }: ErrorComponentsProps): react_jsx_runtime.JSX.Element;
|
|
458
|
+
|
|
341
459
|
/**
|
|
342
460
|
* Grid Component
|
|
343
461
|
* Renders an SVG grid pattern overlay for background decoration
|
|
@@ -2089,6 +2207,48 @@ declare const getListFiles: (files: FileList, dataURLKey: string) => Promise<Ima
|
|
|
2089
2207
|
*/
|
|
2090
2208
|
declare const ImageInput: FC<ImageInputProps>;
|
|
2091
2209
|
|
|
2210
|
+
/**
|
|
2211
|
+
* Locale option used by the LanguageSwitcher
|
|
2212
|
+
*/
|
|
2213
|
+
interface LocaleOption {
|
|
2214
|
+
/** Locale code, e.g. 'en', 'id' */
|
|
2215
|
+
code: string;
|
|
2216
|
+
/** Human readable language name */
|
|
2217
|
+
name: string;
|
|
2218
|
+
/** Optional flag code to render, e.g. 'us', 'id' */
|
|
2219
|
+
flag?: string;
|
|
2220
|
+
/** Optional currency code associated with the locale */
|
|
2221
|
+
currency?: string;
|
|
2222
|
+
}
|
|
2223
|
+
/**
|
|
2224
|
+
* Props for the LanguageSwitcher component (prop-driven)
|
|
2225
|
+
*/
|
|
2226
|
+
interface LanguageSwitcherProps extends SharedImage {
|
|
2227
|
+
/** Additional CSS classes */
|
|
2228
|
+
className?: string;
|
|
2229
|
+
/** UI type: standalone dropdown or submenu dropdown */
|
|
2230
|
+
type?: 'dropdown' | 'sub-dropdown';
|
|
2231
|
+
/** Button variant style (for toggle type) */
|
|
2232
|
+
variant?: 'ghost' | 'outline' | 'secondary';
|
|
2233
|
+
/** Button size (for toggle type) */
|
|
2234
|
+
size?: 'sm' | 'md' | 'lg';
|
|
2235
|
+
/** Whether to show language names */
|
|
2236
|
+
showNames?: boolean;
|
|
2237
|
+
/** Whether to show flag icons */
|
|
2238
|
+
showFlags?: boolean;
|
|
2239
|
+
/** Label text for the dropdown trigger; defaults to 'Language' */
|
|
2240
|
+
label?: string;
|
|
2241
|
+
/** Whether i18n is enabled; if false and <=1 locales, render null */
|
|
2242
|
+
i18nEnabled?: boolean;
|
|
2243
|
+
/** Current active locale code */
|
|
2244
|
+
currentLocale: string;
|
|
2245
|
+
/** Available locales to render */
|
|
2246
|
+
locales: LocaleOption[];
|
|
2247
|
+
/** Handler called when a new locale is selected */
|
|
2248
|
+
onLocaleChange: (newLocale: string) => void | Promise<void>;
|
|
2249
|
+
}
|
|
2250
|
+
declare function LanguageSwitcher({ className, type, variant, size, showNames, showFlags, label, i18nEnabled, currentLocale, locales, onLocaleChange, Image, }: LanguageSwitcherProps): react_jsx_runtime.JSX.Element | null;
|
|
2251
|
+
|
|
2092
2252
|
/**
|
|
2093
2253
|
* Logo Component
|
|
2094
2254
|
* Displays the application logo as an SVG icon
|
|
@@ -2148,6 +2308,14 @@ interface ModeSwitcherProps {
|
|
|
2148
2308
|
size?: 'sm' | 'md' | 'lg';
|
|
2149
2309
|
/** Custom cycle order for themes (defaults to system -> light -> dark) */
|
|
2150
2310
|
cycleOrder?: ThemeMode[];
|
|
2311
|
+
/** Button type: 'toggle' for a single button or 'dropdown' and 'sub-dropdown' for a menu with options */
|
|
2312
|
+
type?: 'toogle' | 'dropdown' | 'sub-dropdown';
|
|
2313
|
+
/** Labels for each theme mode (optional) */
|
|
2314
|
+
label?: {
|
|
2315
|
+
system?: string;
|
|
2316
|
+
dark?: string;
|
|
2317
|
+
light?: string;
|
|
2318
|
+
};
|
|
2151
2319
|
}
|
|
2152
2320
|
/**
|
|
2153
2321
|
* ModeSwitcher Component
|
|
@@ -2185,7 +2353,7 @@ interface ModeSwitcherProps {
|
|
|
2185
2353
|
* />
|
|
2186
2354
|
* ```
|
|
2187
2355
|
*/
|
|
2188
|
-
declare function ModeSwitcher({ className, variant, size, cycleOrder, }: ModeSwitcherProps): react_jsx_runtime.JSX.Element;
|
|
2356
|
+
declare function ModeSwitcher({ className, variant, size, cycleOrder, type, label, }: ModeSwitcherProps): react_jsx_runtime.JSX.Element;
|
|
2189
2357
|
|
|
2190
2358
|
/**
|
|
2191
2359
|
* Props interface for MovingLabel component
|
|
@@ -2759,4 +2927,4 @@ interface RecaptchaPopoverProps {
|
|
|
2759
2927
|
*/
|
|
2760
2928
|
declare function RecaptchaPopover({ open, onOpenChange, onVerify, trigger, verifyButtonText, }: RecaptchaPopoverProps): react_jsx_runtime.JSX.Element;
|
|
2761
2929
|
|
|
2762
|
-
export { AlertComingsoon, AlertNotification, AlertToast, type AlertToastOptions, Announcement, AnnouncementTag, AnnouncementTitle, BackLink, BackgroundPaths, Body, Book, CodeDisplay, CommandMenu, type CommandMenuProps, ConfirmDismissDialog, type ConfirmDismissDialogProps, DEFAULT_DATA_URL_KEY, DEFAULT_NULL_INDEX, DefaultImage, DefaultLink, DefaultNavigate, DotsPattern, DownloadFile, ExtraLink, FloatingPaths, Grid, GridBackground, Icons, ImageInput, type ImageInputFile, type ImageInputFiles, type ImageInputProps, Logo, MainNav, MaxWidthWrapper, MobileNav, MobileNavItemRenderer, ModeSwitcher, type ModeSwitcherProps, MovingBorder, MovingLabel, type NavItem, type NavigationProps, QueryProvider, RecaptchaPopover, SatoshiFontCSS, ScreenLoader, type ScreenLoaderProps, Section, type SharedImage, type SharedLink, type SharedNavigate, SiteFooter, SiteHeader, Stack, Subscribe, type SubscribeProps, ThemeProvider, Toolbar, ToolbarActions, ToolbarHeading, ToolbarTitle, UserAvatar, Video, Wrapper, Youtube, cssFontFace, getAcceptTypeString, getBase64, getImage, getInitials, getListFiles, handleMenuClick, openFileDialog, satoshiFontUrl };
|
|
2930
|
+
export { AlertComingsoon, AlertNotification, AlertToast, type AlertToastOptions, Announcement, AnnouncementTag, AnnouncementTitle, BackLink, BackgroundPaths, Body, Book, CodeDisplay, ComingSoon, type ComingSoonProps, CommandMenu, type CommandMenuProps, ConfirmDismissDialog, type ConfirmDismissDialogProps, DEFAULT_DATA_URL_KEY, DEFAULT_NULL_INDEX, DefaultImage, DefaultLink, DefaultNavigate, DotsPattern, DownloadFile, ErrorComponents, type ErrorComponentsProps, ExtraLink, FloatingPaths, Grid, GridBackground, Icons, ImageInput, type ImageInputFile, type ImageInputFiles, type ImageInputProps, LanguageSwitcher, type LanguageSwitcherProps, LayoutAuth, LayoutBlank, type LayoutBlankProps, type LocaleOption, Logo, MainNav, MaxWidthWrapper, MobileNav, MobileNavItemRenderer, ModeSwitcher, type ModeSwitcherProps, MovingBorder, MovingLabel, type NavItem, type NavigationProps, QueryProvider, RecaptchaPopover, SatoshiFontCSS, ScreenLoader, type ScreenLoaderProps, Section, type SharedImage, type SharedLink, type SharedNavigate, SiteFooter, SiteHeader, Stack, Subscribe, type SubscribeProps, ThemeProvider, Toolbar, ToolbarActions, ToolbarHeading, ToolbarTitle, UserAvatar, Video, Wrapper, Youtube, cssFontFace, getAcceptTypeString, getBase64, getImage, getInitials, getListFiles, handleMenuClick, openFileDialog, satoshiFontUrl };
|