@pelatform/ui 1.5.9 → 2.0.0
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/source.css +20 -0
- package/css/theme.css +1 -2
- package/dist/animation.d.ts +4 -379
- package/dist/animation.js +2 -1752
- package/dist/aria.d.ts +1 -31
- package/dist/aria.js +2 -139
- package/dist/base.d.ts +1 -651
- package/dist/base.js +2 -5559
- package/dist/chunk-UEVIEY7W.js +51 -0
- package/dist/{components.cjs → chunk-VZEE3GOC.js} +81 -2344
- package/dist/components.d.ts +224 -181
- package/dist/components.js +364 -765
- package/dist/default.d.ts +1 -1322
- package/dist/default.js +2 -8931
- package/dist/hooks.d.ts +4 -1087
- package/dist/hooks.js +5 -662
- package/dist/index.d.ts +58 -308
- package/dist/index.js +5 -226
- package/package.json +29 -109
- package/dist/animation.cjs +0 -1752
- package/dist/animation.d.cts +0 -379
- package/dist/aria.cjs +0 -139
- package/dist/aria.d.cts +0 -31
- package/dist/badge-BtI4BMea.d.cts +0 -33
- package/dist/badge-BtI4BMea.d.ts +0 -33
- package/dist/base.cjs +0 -5559
- package/dist/base.d.cts +0 -651
- package/dist/chunk-3N75YA6Q.cjs +0 -60
- package/dist/chunk-7472NIIL.cjs +0 -40
- package/dist/chunk-BXUKTDPN.cjs +0 -576
- package/dist/chunk-CD2BCCQU.js +0 -180
- package/dist/chunk-CJXIPSTG.cjs +0 -10
- package/dist/chunk-CTHRAJQZ.js +0 -1522
- package/dist/chunk-D373YKDA.js +0 -196
- package/dist/chunk-EZW5GNS4.js +0 -6
- package/dist/chunk-HILACSFA.cjs +0 -1522
- package/dist/chunk-HR3R6KKM.js +0 -40
- package/dist/chunk-HW52LCWN.js +0 -22
- package/dist/chunk-I46SELBA.cjs +0 -22
- package/dist/chunk-J4JGE3U5.cjs +0 -180
- package/dist/chunk-RQHJBTEU.js +0 -10
- package/dist/chunk-SK6SSJHC.js +0 -9
- package/dist/chunk-T74DBLYY.js +0 -60
- package/dist/chunk-TB6DU23O.js +0 -576
- package/dist/chunk-UP53DCYH.cjs +0 -6
- package/dist/chunk-ZBO5IAMA.cjs +0 -196
- package/dist/chunk-ZDR3OZ7Z.cjs +0 -9
- package/dist/colors-CUDWvz1g.d.cts +0 -42
- package/dist/colors-CUDWvz1g.d.ts +0 -42
- package/dist/components-CidsRcc3.d.cts +0 -46
- package/dist/components-CidsRcc3.d.ts +0 -46
- package/dist/components.d.cts +0 -2944
- package/dist/default.cjs +0 -8931
- package/dist/default.d.cts +0 -1322
- package/dist/hooks.cjs +0 -666
- package/dist/hooks.d.cts +0 -1176
- package/dist/index.cjs +0 -230
- package/dist/index.d.cts +0 -318
- package/dist/input-AwYIskrX.d.cts +0 -22
- package/dist/input-AwYIskrX.d.ts +0 -22
- package/dist/menu-GmSRfRGB.d.cts +0 -43
- package/dist/menu-GmSRfRGB.d.ts +0 -43
- package/dist/metafile-cjs.json +0 -1
- package/dist/metafile-esm.json +0 -1
- package/dist/re-export/cva.cjs +0 -6
- package/dist/re-export/cva.d.cts +0 -10
- package/dist/re-export/cva.d.ts +0 -10
- package/dist/re-export/cva.js +0 -6
- package/dist/re-export/motion.cjs +0 -2
- package/dist/re-export/motion.d.cts +0 -1
- package/dist/re-export/motion.d.ts +0 -1
- package/dist/re-export/motion.js +0 -2
- package/dist/re-export/next-themes.cjs +0 -2
- package/dist/re-export/next-themes.d.cts +0 -1
- package/dist/re-export/next-themes.d.ts +0 -1
- package/dist/re-export/next-themes.js +0 -2
- package/dist/re-export/react-day-picker.cjs +0 -2
- package/dist/re-export/react-day-picker.d.cts +0 -1
- package/dist/re-export/react-day-picker.d.ts +0 -1
- package/dist/re-export/react-day-picker.js +0 -2
- package/dist/re-export/react-hook-form.cjs +0 -2
- package/dist/re-export/react-hook-form.d.cts +0 -1
- package/dist/re-export/react-hook-form.d.ts +0 -1
- package/dist/re-export/react-hook-form.js +0 -2
- package/dist/re-export/resolver.cjs +0 -2
- package/dist/re-export/resolver.d.cts +0 -1
- package/dist/re-export/resolver.d.ts +0 -1
- package/dist/re-export/resolver.js +0 -2
- package/dist/re-export/sonner.cjs +0 -2
- package/dist/re-export/sonner.d.cts +0 -1
- package/dist/re-export/sonner.d.ts +0 -1
- package/dist/re-export/sonner.js +0 -2
- package/dist/re-export/tanstack-query.cjs +0 -2
- package/dist/re-export/tanstack-query.d.cts +0 -1
- package/dist/re-export/tanstack-query.d.ts +0 -1
- package/dist/re-export/tanstack-query.js +0 -2
- package/dist/re-export/tanstack-table.cjs +0 -2
- package/dist/re-export/tanstack-table.d.cts +0 -1
- package/dist/re-export/tanstack-table.d.ts +0 -1
- package/dist/re-export/tanstack-table.js +0 -2
- package/dist/re-export/zod.cjs +0 -2
- package/dist/re-export/zod.d.cts +0 -1
- package/dist/re-export/zod.d.ts +0 -1
- package/dist/re-export/zod.js +0 -2
package/dist/components.d.ts
CHANGED
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as React$1 from 'react';
|
|
3
3
|
import React__default, { ReactNode, HTMLAttributes, ComponentProps, FC, DragEvent, RefObject } from 'react';
|
|
4
|
-
import {
|
|
5
|
-
import { DialogProps } from '@
|
|
4
|
+
import { BaseComponentProps, LinkComponent, ImageComponent, VariantProps, ThemeMode } from '@pelatform/ui.core';
|
|
5
|
+
import { DialogProps, ThemeProvider as ThemeProvider$1 } from '@pelatform/ui.default/dep';
|
|
6
6
|
import { QueryClient } from '@tanstack/react-query';
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
import { b as badgeVariants } from './badge-BtI4BMea.js';
|
|
10
|
-
import { a as ThemeMode } from './colors-CUDWvz1g.js';
|
|
11
|
-
import 'class-variance-authority/types';
|
|
7
|
+
import { badgeVariants } from '@pelatform/ui.default';
|
|
8
|
+
export { Icons } from './index.js';
|
|
12
9
|
|
|
13
10
|
/**
|
|
14
11
|
* Alert Toast Component
|
|
@@ -313,7 +310,7 @@ declare function ScreenLoader({ loadingText, className, spinnerClassName, textCl
|
|
|
313
310
|
* </LayoutAuth>
|
|
314
311
|
* ```
|
|
315
312
|
*/
|
|
316
|
-
declare function LayoutAuth({ children, className, logo }:
|
|
313
|
+
declare function LayoutAuth({ children, className, logo, }: BaseComponentProps & {
|
|
317
314
|
logo?: ReactNode;
|
|
318
315
|
}): react_jsx_runtime.JSX.Element;
|
|
319
316
|
|
|
@@ -321,7 +318,7 @@ declare function LayoutAuth({ children, className, logo }: BaseProps & {
|
|
|
321
318
|
* Props interface for the `LayoutBlank` component
|
|
322
319
|
* Inherits `children` and `className` from `BaseProps`, and `Link` from `SharedLink`.
|
|
323
320
|
*/
|
|
324
|
-
interface LayoutBlankProps extends
|
|
321
|
+
interface LayoutBlankProps extends BaseComponentProps {
|
|
325
322
|
/** Optional footer content displayed at the bottom */
|
|
326
323
|
footer?: ReactNode;
|
|
327
324
|
/** Optional logo element displayed at the top */
|
|
@@ -385,7 +382,7 @@ declare function LayoutBlank({ children, footer, className, logo, logoHref }: La
|
|
|
385
382
|
* }
|
|
386
383
|
* ```
|
|
387
384
|
*/
|
|
388
|
-
declare function Body({ slug, children, className }:
|
|
385
|
+
declare function Body({ slug, children, className }: BaseComponentProps & {
|
|
389
386
|
slug: string;
|
|
390
387
|
}): react_jsx_runtime.JSX.Element;
|
|
391
388
|
|
|
@@ -631,7 +628,7 @@ declare const Section: ({ children, sectionClassName, className, ...props }: Sec
|
|
|
631
628
|
* </SiteFooter>
|
|
632
629
|
* ```
|
|
633
630
|
*/
|
|
634
|
-
declare function SiteFooter({ children, className }:
|
|
631
|
+
declare function SiteFooter({ children, className }: BaseComponentProps): react_jsx_runtime.JSX.Element;
|
|
635
632
|
|
|
636
633
|
/**
|
|
637
634
|
* SiteHeader Component
|
|
@@ -684,7 +681,7 @@ declare function SiteFooter({ children, className }: BaseProps): react_jsx_runti
|
|
|
684
681
|
* </SiteHeader>
|
|
685
682
|
* ```
|
|
686
683
|
*/
|
|
687
|
-
declare function SiteHeader({ className, children }:
|
|
684
|
+
declare function SiteHeader({ className, children }: BaseComponentProps): react_jsx_runtime.JSX.Element;
|
|
688
685
|
|
|
689
686
|
/**
|
|
690
687
|
* MaxWidthWrapper Component
|
|
@@ -734,7 +731,7 @@ declare function SiteHeader({ className, children }: BaseProps): react_jsx_runti
|
|
|
734
731
|
* </Section>
|
|
735
732
|
* ```
|
|
736
733
|
*/
|
|
737
|
-
declare function MaxWidthWrapper({ className, children }:
|
|
734
|
+
declare function MaxWidthWrapper({ className, children }: BaseComponentProps): react_jsx_runtime.JSX.Element;
|
|
738
735
|
|
|
739
736
|
/**
|
|
740
737
|
* CodeDisplay Component
|
|
@@ -848,11 +845,160 @@ declare function CodeDisplay({ children, component, }: {
|
|
|
848
845
|
* </DownloadFile>
|
|
849
846
|
* ```
|
|
850
847
|
*/
|
|
851
|
-
declare function DownloadFile({ children, className, href }:
|
|
848
|
+
declare function DownloadFile({ children, className, href }: BaseComponentProps & {
|
|
852
849
|
href: string;
|
|
853
850
|
}): react_jsx_runtime.JSX.Element;
|
|
854
851
|
|
|
855
|
-
|
|
852
|
+
/**
|
|
853
|
+
* Shared Component Types and Default Implementations
|
|
854
|
+
* Provides reusable component interfaces and default implementations
|
|
855
|
+
* for common UI elements like images, links, and navigation
|
|
856
|
+
*/
|
|
857
|
+
|
|
858
|
+
/**
|
|
859
|
+
* Interface for components that accept a custom Image component
|
|
860
|
+
* Allows injection of custom image implementations (e.g., Next.js Image)
|
|
861
|
+
*/
|
|
862
|
+
interface SharedImage {
|
|
863
|
+
/** Custom Image component implementation */
|
|
864
|
+
Image?: ImageComponent;
|
|
865
|
+
}
|
|
866
|
+
/**
|
|
867
|
+
* Interface for components that accept a custom Link component
|
|
868
|
+
* Allows injection of custom link implementations (e.g., Next.js Link)
|
|
869
|
+
*/
|
|
870
|
+
interface SharedLink {
|
|
871
|
+
/** Custom Link component implementation */
|
|
872
|
+
Link?: LinkComponent;
|
|
873
|
+
}
|
|
874
|
+
/**
|
|
875
|
+
* Interface for components that accept a custom navigation function
|
|
876
|
+
* Allows injection of custom navigation implementations (e.g., Next.js router)
|
|
877
|
+
*/
|
|
878
|
+
interface SharedNavigate {
|
|
879
|
+
/** Custom navigation function */
|
|
880
|
+
navigate?: (href: string) => void;
|
|
881
|
+
}
|
|
882
|
+
/**
|
|
883
|
+
* Default Image Component
|
|
884
|
+
*
|
|
885
|
+
* A basic HTML img element implementation that serves as the default
|
|
886
|
+
* when no custom Image component is provided. Supports standard
|
|
887
|
+
* image attributes and CSS classes.
|
|
888
|
+
*
|
|
889
|
+
* @param props - Image component props
|
|
890
|
+
* @param props.src - Source URL of the image
|
|
891
|
+
* @param props.alt - Alt text for accessibility
|
|
892
|
+
* @param props.className - Additional CSS classes
|
|
893
|
+
* @returns JSX element containing a standard img tag
|
|
894
|
+
*
|
|
895
|
+
* @example
|
|
896
|
+
* ```tsx
|
|
897
|
+
* // Basic usage
|
|
898
|
+
* <DefaultImage
|
|
899
|
+
* src="/images/logo.png"
|
|
900
|
+
* alt="Company Logo"
|
|
901
|
+
* className="w-32 h-auto"
|
|
902
|
+
* />
|
|
903
|
+
* ```
|
|
904
|
+
*/
|
|
905
|
+
declare const DefaultImage: ImageComponent;
|
|
906
|
+
/**
|
|
907
|
+
* Default Link Component
|
|
908
|
+
*
|
|
909
|
+
* A basic HTML anchor element implementation that serves as the default
|
|
910
|
+
* when no custom Link component is provided. Supports standard
|
|
911
|
+
* link attributes and CSS classes.
|
|
912
|
+
*
|
|
913
|
+
* @param props - Link component props
|
|
914
|
+
* @param props.href - Destination URL
|
|
915
|
+
* @param props.className - Additional CSS classes
|
|
916
|
+
* @param props.children - Link content
|
|
917
|
+
* @returns JSX element containing a standard anchor tag
|
|
918
|
+
*
|
|
919
|
+
* @example
|
|
920
|
+
* ```tsx
|
|
921
|
+
* // Basic usage
|
|
922
|
+
* <DefaultLink
|
|
923
|
+
* href="/about"
|
|
924
|
+
* className="text-blue-600 hover:underline"
|
|
925
|
+
* >
|
|
926
|
+
* About Us
|
|
927
|
+
* </DefaultLink>
|
|
928
|
+
* ```
|
|
929
|
+
*/
|
|
930
|
+
declare const DefaultLink: LinkComponent;
|
|
931
|
+
/**
|
|
932
|
+
* Default Navigation Function
|
|
933
|
+
*
|
|
934
|
+
* A basic navigation implementation using window.location.href
|
|
935
|
+
* that serves as the default when no custom navigation function
|
|
936
|
+
* is provided. Performs a full page navigation.
|
|
937
|
+
*
|
|
938
|
+
* @param href - Destination URL to navigate to
|
|
939
|
+
*
|
|
940
|
+
* @example
|
|
941
|
+
* ```tsx
|
|
942
|
+
* // Basic usage
|
|
943
|
+
* const handleNavigation = () => {
|
|
944
|
+
* DefaultNavigate('/dashboard');
|
|
945
|
+
* };
|
|
946
|
+
*
|
|
947
|
+
* // In a component
|
|
948
|
+
* <button onClick={() => DefaultNavigate('/contact')}>
|
|
949
|
+
* Contact Us
|
|
950
|
+
* </button>
|
|
951
|
+
* ```
|
|
952
|
+
*/
|
|
953
|
+
declare const DefaultNavigate: (href: string) => void;
|
|
954
|
+
|
|
955
|
+
/**
|
|
956
|
+
* ExtraLink component for external and internal links in MDX content
|
|
957
|
+
*
|
|
958
|
+
* This component provides a consistent styled link experience across MDX documents
|
|
959
|
+
* with support for custom Link implementations (e.g., Next.js Link, React Router Link)
|
|
960
|
+
* and automatic styling with underline decoration.
|
|
961
|
+
*
|
|
962
|
+
* Features:
|
|
963
|
+
* - Custom Link component support (defaults to standard anchor tag)
|
|
964
|
+
* - Consistent underline styling with 4px offset
|
|
965
|
+
* - Medium font weight for emphasis
|
|
966
|
+
* - Customizable className for additional styling
|
|
967
|
+
* - Full accessibility support via Link component
|
|
968
|
+
*
|
|
969
|
+
* @param props - Component props extending SharedLink and LinkComponent
|
|
970
|
+
* @param props.Link - Custom Link component (defaults to DefaultLink/anchor)
|
|
971
|
+
* @param props.href - Target URL for the link
|
|
972
|
+
* @param props.target - Target attribute (_blank, _self, etc.)
|
|
973
|
+
* @param props.className - Additional CSS classes to apply
|
|
974
|
+
* @param props.children - Link text or child elements
|
|
975
|
+
* @returns JSX element representing the styled link
|
|
976
|
+
*
|
|
977
|
+
* @example
|
|
978
|
+
* ```tsx
|
|
979
|
+
* // Basic usage in MDX
|
|
980
|
+
* <ExtraLink href="https://example.com">
|
|
981
|
+
* Visit Example
|
|
982
|
+
* </ExtraLink>
|
|
983
|
+
*
|
|
984
|
+
* // With custom Link component (Next.js)
|
|
985
|
+
* import NextLink from 'next/link';
|
|
986
|
+
*
|
|
987
|
+
* <ExtraLink Link={NextLink} href="/about">
|
|
988
|
+
* About Us
|
|
989
|
+
* </ExtraLink>
|
|
990
|
+
*
|
|
991
|
+
* // With target and custom styling
|
|
992
|
+
* <ExtraLink
|
|
993
|
+
* href="https://external.com"
|
|
994
|
+
* target="_blank"
|
|
995
|
+
* className="text-primary hover:text-primary-dark"
|
|
996
|
+
* >
|
|
997
|
+
* External Resource
|
|
998
|
+
* </ExtraLink>
|
|
999
|
+
* ```
|
|
1000
|
+
*/
|
|
1001
|
+
declare function ExtraLink({ Link, href, target, className, children, }: SharedLink & ComponentProps<LinkComponent>): react_jsx_runtime.JSX.Element;
|
|
856
1002
|
|
|
857
1003
|
/**
|
|
858
1004
|
* Video Component
|
|
@@ -952,7 +1098,7 @@ declare function Video({ className, ...props }: ComponentProps<'video'>): react_
|
|
|
952
1098
|
* </div>
|
|
953
1099
|
* ```
|
|
954
1100
|
*/
|
|
955
|
-
declare function Wrapper({ children, className }:
|
|
1101
|
+
declare function Wrapper({ children, className }: BaseComponentProps): react_jsx_runtime.JSX.Element;
|
|
956
1102
|
|
|
957
1103
|
/**
|
|
958
1104
|
* Youtube Component
|
|
@@ -1011,113 +1157,10 @@ declare function Youtube({ id }: {
|
|
|
1011
1157
|
id: string;
|
|
1012
1158
|
}): react_jsx_runtime.JSX.Element;
|
|
1013
1159
|
|
|
1014
|
-
/**
|
|
1015
|
-
* Shared Component Types and Default Implementations
|
|
1016
|
-
* Provides reusable component interfaces and default implementations
|
|
1017
|
-
* for common UI elements like images, links, and navigation
|
|
1018
|
-
*/
|
|
1019
|
-
|
|
1020
|
-
/**
|
|
1021
|
-
* Interface for components that accept a custom Image component
|
|
1022
|
-
* Allows injection of custom image implementations (e.g., Next.js Image)
|
|
1023
|
-
*/
|
|
1024
|
-
interface SharedImage {
|
|
1025
|
-
/** Custom Image component implementation */
|
|
1026
|
-
Image?: Image;
|
|
1027
|
-
}
|
|
1028
|
-
/**
|
|
1029
|
-
* Interface for components that accept a custom Link component
|
|
1030
|
-
* Allows injection of custom link implementations (e.g., Next.js Link)
|
|
1031
|
-
*/
|
|
1032
|
-
interface SharedLink {
|
|
1033
|
-
/** Custom Link component implementation */
|
|
1034
|
-
Link?: Link;
|
|
1035
|
-
}
|
|
1036
|
-
/**
|
|
1037
|
-
* Interface for components that accept a custom navigation function
|
|
1038
|
-
* Allows injection of custom navigation implementations (e.g., Next.js router)
|
|
1039
|
-
*/
|
|
1040
|
-
interface SharedNavigate {
|
|
1041
|
-
/** Custom navigation function */
|
|
1042
|
-
navigate?: (href: string) => void;
|
|
1043
|
-
}
|
|
1044
|
-
/**
|
|
1045
|
-
* Default Image Component
|
|
1046
|
-
*
|
|
1047
|
-
* A basic HTML img element implementation that serves as the default
|
|
1048
|
-
* when no custom Image component is provided. Supports standard
|
|
1049
|
-
* image attributes and CSS classes.
|
|
1050
|
-
*
|
|
1051
|
-
* @param props - Image component props
|
|
1052
|
-
* @param props.src - Source URL of the image
|
|
1053
|
-
* @param props.alt - Alt text for accessibility
|
|
1054
|
-
* @param props.className - Additional CSS classes
|
|
1055
|
-
* @returns JSX element containing a standard img tag
|
|
1056
|
-
*
|
|
1057
|
-
* @example
|
|
1058
|
-
* ```tsx
|
|
1059
|
-
* // Basic usage
|
|
1060
|
-
* <DefaultImage
|
|
1061
|
-
* src="/images/logo.png"
|
|
1062
|
-
* alt="Company Logo"
|
|
1063
|
-
* className="w-32 h-auto"
|
|
1064
|
-
* />
|
|
1065
|
-
* ```
|
|
1066
|
-
*/
|
|
1067
|
-
declare const DefaultImage: Image;
|
|
1068
|
-
/**
|
|
1069
|
-
* Default Link Component
|
|
1070
|
-
*
|
|
1071
|
-
* A basic HTML anchor element implementation that serves as the default
|
|
1072
|
-
* when no custom Link component is provided. Supports standard
|
|
1073
|
-
* link attributes and CSS classes.
|
|
1074
|
-
*
|
|
1075
|
-
* @param props - Link component props
|
|
1076
|
-
* @param props.href - Destination URL
|
|
1077
|
-
* @param props.className - Additional CSS classes
|
|
1078
|
-
* @param props.children - Link content
|
|
1079
|
-
* @returns JSX element containing a standard anchor tag
|
|
1080
|
-
*
|
|
1081
|
-
* @example
|
|
1082
|
-
* ```tsx
|
|
1083
|
-
* // Basic usage
|
|
1084
|
-
* <DefaultLink
|
|
1085
|
-
* href="/about"
|
|
1086
|
-
* className="text-blue-600 hover:underline"
|
|
1087
|
-
* >
|
|
1088
|
-
* About Us
|
|
1089
|
-
* </DefaultLink>
|
|
1090
|
-
* ```
|
|
1091
|
-
*/
|
|
1092
|
-
declare const DefaultLink: Link;
|
|
1093
|
-
/**
|
|
1094
|
-
* Default Navigation Function
|
|
1095
|
-
*
|
|
1096
|
-
* A basic navigation implementation using window.location.href
|
|
1097
|
-
* that serves as the default when no custom navigation function
|
|
1098
|
-
* is provided. Performs a full page navigation.
|
|
1099
|
-
*
|
|
1100
|
-
* @param href - Destination URL to navigate to
|
|
1101
|
-
*
|
|
1102
|
-
* @example
|
|
1103
|
-
* ```tsx
|
|
1104
|
-
* // Basic usage
|
|
1105
|
-
* const handleNavigation = () => {
|
|
1106
|
-
* DefaultNavigate('/dashboard');
|
|
1107
|
-
* };
|
|
1108
|
-
*
|
|
1109
|
-
* // In a component
|
|
1110
|
-
* <button onClick={() => DefaultNavigate('/contact')}>
|
|
1111
|
-
* Contact Us
|
|
1112
|
-
* </button>
|
|
1113
|
-
* ```
|
|
1114
|
-
*/
|
|
1115
|
-
declare const DefaultNavigate: (href: string) => void;
|
|
1116
|
-
|
|
1117
1160
|
/**
|
|
1118
1161
|
* Props interface for the BackLink component
|
|
1119
1162
|
*/
|
|
1120
|
-
interface BackLinkProps extends SharedLink,
|
|
1163
|
+
interface BackLinkProps extends SharedLink, BaseComponentProps {
|
|
1121
1164
|
/** URL to navigate back to */
|
|
1122
1165
|
href: string;
|
|
1123
1166
|
}
|
|
@@ -1405,7 +1448,7 @@ declare function handleMenuClick(item: NavItem): void;
|
|
|
1405
1448
|
* </MobileNav>
|
|
1406
1449
|
* ```
|
|
1407
1450
|
*/
|
|
1408
|
-
declare function MobileNav({ children, className }:
|
|
1451
|
+
declare function MobileNav({ children, className }: BaseComponentProps): react_jsx_runtime.JSX.Element;
|
|
1409
1452
|
interface MobileNavItemRendererProps extends SharedLink, SharedNavigate {
|
|
1410
1453
|
item: NavItem;
|
|
1411
1454
|
pathname: string | null;
|
|
@@ -1909,78 +1952,78 @@ interface GridBackgroundProps {
|
|
|
1909
1952
|
*/
|
|
1910
1953
|
declare const GridBackground: FC<GridBackgroundProps>;
|
|
1911
1954
|
|
|
1955
|
+
/**
|
|
1956
|
+
* Props interface for HexagonBadge component
|
|
1957
|
+
*/
|
|
1912
1958
|
interface HexagonBadgeProps {
|
|
1959
|
+
/** Content to be displayed inside the hexagon badge */
|
|
1913
1960
|
children?: ReactNode;
|
|
1961
|
+
/** Custom class names for different parts of the component */
|
|
1914
1962
|
classNames?: {
|
|
1963
|
+
/** Class name for the base container element */
|
|
1915
1964
|
base?: string;
|
|
1965
|
+
/** Class name for the SVG hexagon shape */
|
|
1916
1966
|
svg?: string;
|
|
1967
|
+
/** Class name for the content wrapper (note: typo 'wraper' kept for backward compatibility) */
|
|
1917
1968
|
wraper?: string;
|
|
1918
1969
|
};
|
|
1919
1970
|
}
|
|
1920
|
-
declare const HexagonBadge: ({ children, classNames }: HexagonBadgeProps) => react_jsx_runtime.JSX.Element;
|
|
1921
|
-
|
|
1922
1971
|
/**
|
|
1923
|
-
*
|
|
1924
|
-
*
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
*
|
|
1972
|
+
* HexagonBadge component
|
|
1973
|
+
*
|
|
1974
|
+
* Creates a hexagon-shaped badge container using SVG for the border shape.
|
|
1975
|
+
* The hexagon provides a distinctive visual element for displaying icons,
|
|
1976
|
+
* status indicators, or small pieces of content.
|
|
1977
|
+
*
|
|
1978
|
+
* Features:
|
|
1979
|
+
* - SVG-based hexagon shape with fill and stroke
|
|
1980
|
+
* - Perfectly centered content using absolute positioning
|
|
1981
|
+
* - Customizable styling via classNames prop
|
|
1982
|
+
* - RTL (right-to-left) layout support
|
|
1983
|
+
* - Responsive sizing based on container
|
|
1929
1984
|
*
|
|
1930
|
-
*
|
|
1931
|
-
*
|
|
1985
|
+
* The component uses a 44x48 viewBox for the SVG hexagon and automatically
|
|
1986
|
+
* centers the content within the hexagonal boundary.
|
|
1987
|
+
*
|
|
1988
|
+
* @param props - Component props
|
|
1989
|
+
* @param props.children - Content to display inside the hexagon (icons, text, etc.)
|
|
1990
|
+
* @param props.classNames - Object containing custom class names for styling
|
|
1991
|
+
* @param props.classNames.base - Classes for the outer container
|
|
1992
|
+
* @param props.classNames.svg - Classes for the SVG hexagon element
|
|
1993
|
+
* @param props.classNames.wraper - Classes for the content wrapper element
|
|
1994
|
+
* @returns JSX element representing the hexagon badge
|
|
1932
1995
|
*
|
|
1933
1996
|
* @example
|
|
1934
1997
|
* ```tsx
|
|
1935
|
-
* // Basic usage
|
|
1936
|
-
*
|
|
1998
|
+
* // Basic usage with an icon
|
|
1999
|
+
* import { StarIcon } from '@pelatform/ui.core';
|
|
1937
2000
|
*
|
|
1938
|
-
*
|
|
1939
|
-
*
|
|
1940
|
-
*
|
|
1941
|
-
* onClick={handleGitHubClick}
|
|
1942
|
-
* />
|
|
2001
|
+
* <HexagonBadge>
|
|
2002
|
+
* <StarIcon className="w-6 h-6" />
|
|
2003
|
+
* </HexagonBadge>
|
|
1943
2004
|
*
|
|
1944
|
-
* //
|
|
1945
|
-
* <
|
|
1946
|
-
*
|
|
2005
|
+
* // With custom styling
|
|
2006
|
+
* <HexagonBadge
|
|
2007
|
+
* classNames={{
|
|
2008
|
+
* base: 'w-16 h-16',
|
|
2009
|
+
* svg: 'text-primary fill-primary/10',
|
|
2010
|
+
* wraper: 'text-white'
|
|
2011
|
+
* }}
|
|
2012
|
+
* >
|
|
2013
|
+
* <span className="font-bold">A</span>
|
|
2014
|
+
* </HexagonBadge>
|
|
2015
|
+
*
|
|
2016
|
+
* // As a status badge
|
|
2017
|
+
* <HexagonBadge
|
|
2018
|
+
* classNames={{
|
|
2019
|
+
* svg: 'text-green-500 fill-green-50'
|
|
2020
|
+
* }}
|
|
2021
|
+
* >
|
|
2022
|
+
* <CheckIcon />
|
|
2023
|
+
* </HexagonBadge>
|
|
1947
2024
|
* ```
|
|
1948
2025
|
*/
|
|
1949
|
-
declare const
|
|
1950
|
-
anthropic: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
1951
|
-
apple: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
1952
|
-
aria: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
1953
|
-
facebook: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
1954
|
-
facebookColorful: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
1955
|
-
github: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
1956
|
-
google: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
1957
|
-
googleColorful: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
1958
|
-
instagram: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
1959
|
-
linkedin: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
1960
|
-
linkedinColorful: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
1961
|
-
microsoft: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
1962
|
-
nextjs: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
1963
|
-
npm: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
1964
|
-
openai: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
1965
|
-
paypal: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
1966
|
-
pelatform: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
1967
|
-
pnpm: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
1968
|
-
postgresql: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
1969
|
-
prisma: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
1970
|
-
radix: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
1971
|
-
radixui: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
1972
|
-
react: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
1973
|
-
scira: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
1974
|
-
scribble: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
1975
|
-
supabaseColorful: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
1976
|
-
tailwind: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
1977
|
-
telegram: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
1978
|
-
twitter: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
1979
|
-
whatsApp: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
1980
|
-
x: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
1981
|
-
yarn: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
1982
|
-
youtube: (props: IconProps) => react_jsx_runtime.JSX.Element;
|
|
1983
|
-
};
|
|
2026
|
+
declare const HexagonBadge: ({ children, classNames }: HexagonBadgeProps) => react_jsx_runtime.JSX.Element;
|
|
1984
2027
|
|
|
1985
2028
|
/**
|
|
1986
2029
|
* Image Input Component
|
|
@@ -2607,7 +2650,7 @@ declare function Subscribe({ heading, subheading, buttonText, loadingButtonText,
|
|
|
2607
2650
|
* </Toolbar>
|
|
2608
2651
|
* ```
|
|
2609
2652
|
*/
|
|
2610
|
-
declare const Toolbar: ({ children }:
|
|
2653
|
+
declare const Toolbar: ({ children }: BaseComponentProps) => react_jsx_runtime.JSX.Element;
|
|
2611
2654
|
/**
|
|
2612
2655
|
* ToolbarHeading Component
|
|
2613
2656
|
*
|
|
@@ -2627,7 +2670,7 @@ declare const Toolbar: ({ children }: BaseProps) => react_jsx_runtime.JSX.Elemen
|
|
|
2627
2670
|
* </ToolbarHeading>
|
|
2628
2671
|
* ```
|
|
2629
2672
|
*/
|
|
2630
|
-
declare const ToolbarHeading: ({ children, className }:
|
|
2673
|
+
declare const ToolbarHeading: ({ children, className }: BaseComponentProps) => react_jsx_runtime.JSX.Element;
|
|
2631
2674
|
/**
|
|
2632
2675
|
* ToolbarTitle Component
|
|
2633
2676
|
*
|
|
@@ -2647,7 +2690,7 @@ declare const ToolbarHeading: ({ children, className }: BaseProps) => react_jsx_
|
|
|
2647
2690
|
* </ToolbarTitle>
|
|
2648
2691
|
* ```
|
|
2649
2692
|
*/
|
|
2650
|
-
declare const ToolbarTitle: ({ className, children }:
|
|
2693
|
+
declare const ToolbarTitle: ({ className, children }: BaseComponentProps) => react_jsx_runtime.JSX.Element;
|
|
2651
2694
|
/**
|
|
2652
2695
|
* ToolbarActions Component
|
|
2653
2696
|
*
|
|
@@ -2685,7 +2728,7 @@ declare const ToolbarTitle: ({ className, children }: BaseProps) => react_jsx_ru
|
|
|
2685
2728
|
* </ToolbarActions>
|
|
2686
2729
|
* ```
|
|
2687
2730
|
*/
|
|
2688
|
-
declare const ToolbarActions: ({ children }:
|
|
2731
|
+
declare const ToolbarActions: ({ children }: BaseComponentProps) => react_jsx_runtime.JSX.Element;
|
|
2689
2732
|
|
|
2690
2733
|
/**
|
|
2691
2734
|
* User Avatar Component
|
|
@@ -2941,4 +2984,4 @@ interface RecaptchaPopoverProps {
|
|
|
2941
2984
|
*/
|
|
2942
2985
|
declare function RecaptchaPopover({ open, onOpenChange, onVerify, trigger, verifyButtonText, }: RecaptchaPopoverProps): react_jsx_runtime.JSX.Element;
|
|
2943
2986
|
|
|
2944
|
-
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, HexagonBadge,
|
|
2987
|
+
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, HexagonBadge, 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 };
|