@redacto.io/consent-sdk-react-native 4.0.0 → 4.0.1-beta.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/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/privacy-center.d.mts +111 -111
- package/dist/privacy-center.d.ts +111 -111
- package/dist/privacy-center.js +40 -457
- package/dist/privacy-center.mjs +40 -457
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React__default from 'react';
|
|
2
2
|
|
|
3
3
|
type Settings$1 = {
|
|
4
4
|
button: {
|
|
@@ -43,7 +43,7 @@ type Props$1 = Readonly<{
|
|
|
43
43
|
reviewModeButtonText?: string;
|
|
44
44
|
}>;
|
|
45
45
|
|
|
46
|
-
declare const RedactoNoticeConsent:
|
|
46
|
+
declare const RedactoNoticeConsent: React__default.FC<Props$1>;
|
|
47
47
|
|
|
48
48
|
type Settings = {
|
|
49
49
|
button: {
|
|
@@ -70,7 +70,7 @@ type Settings = {
|
|
|
70
70
|
borderColor?: string;
|
|
71
71
|
};
|
|
72
72
|
|
|
73
|
-
declare const RedactoConsentInline:
|
|
73
|
+
declare const RedactoConsentInline: React__default.NamedExoticComponent<Readonly<{
|
|
74
74
|
org_uuid: string;
|
|
75
75
|
workspace_uuid: string;
|
|
76
76
|
notice_uuid: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React__default from 'react';
|
|
2
2
|
|
|
3
3
|
type Settings$1 = {
|
|
4
4
|
button: {
|
|
@@ -43,7 +43,7 @@ type Props$1 = Readonly<{
|
|
|
43
43
|
reviewModeButtonText?: string;
|
|
44
44
|
}>;
|
|
45
45
|
|
|
46
|
-
declare const RedactoNoticeConsent:
|
|
46
|
+
declare const RedactoNoticeConsent: React__default.FC<Props$1>;
|
|
47
47
|
|
|
48
48
|
type Settings = {
|
|
49
49
|
button: {
|
|
@@ -70,7 +70,7 @@ type Settings = {
|
|
|
70
70
|
borderColor?: string;
|
|
71
71
|
};
|
|
72
72
|
|
|
73
|
-
declare const RedactoConsentInline:
|
|
73
|
+
declare const RedactoConsentInline: React__default.NamedExoticComponent<Readonly<{
|
|
74
74
|
org_uuid: string;
|
|
75
75
|
workspace_uuid: string;
|
|
76
76
|
notice_uuid: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import React__default, { ReactNode } from 'react';
|
|
3
3
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
4
4
|
import * as react_native from 'react-native';
|
|
5
5
|
import { StyleProp, ViewStyle, TextStyle, KeyboardTypeOptions, DimensionValue, Animated } from 'react-native';
|
|
@@ -434,7 +434,7 @@ declare function NavigationProvider({ children, initialPage, initialPendingCaseU
|
|
|
434
434
|
initialPage?: InternalPage;
|
|
435
435
|
/** Deep-link target: resolve & open this case on first load (used with initialPage='case-details'). */
|
|
436
436
|
initialPendingCaseUuid?: string | null;
|
|
437
|
-
}):
|
|
437
|
+
}): React.JSX.Element;
|
|
438
438
|
declare function useInternalNavigation(): NavigationContextType;
|
|
439
439
|
|
|
440
440
|
interface RedactoPrivacyCenterProps {
|
|
@@ -453,30 +453,30 @@ interface RedactoPrivacyCenterProps {
|
|
|
453
453
|
initialCaseUuid?: string;
|
|
454
454
|
onBack?: 'back' | 'signout';
|
|
455
455
|
}
|
|
456
|
-
declare function RedactoPrivacyCenter({ baseUrl, slug, theme: _theme, accessToken, refreshToken, onError, initialPage, initialCaseUuid, onBack, }: RedactoPrivacyCenterProps):
|
|
456
|
+
declare function RedactoPrivacyCenter({ baseUrl, slug, theme: _theme, accessToken, refreshToken, onError, initialPage, initialCaseUuid, onBack, }: RedactoPrivacyCenterProps): React.JSX.Element;
|
|
457
457
|
|
|
458
|
-
declare function ConsentManager():
|
|
458
|
+
declare function ConsentManager(): React__default.JSX.Element;
|
|
459
459
|
|
|
460
|
-
declare function ActivitiesList():
|
|
460
|
+
declare function ActivitiesList(): React__default.JSX.Element;
|
|
461
461
|
|
|
462
462
|
interface FormProps {
|
|
463
463
|
onCreateRequest?: () => void;
|
|
464
464
|
}
|
|
465
|
-
declare function Form({ onCreateRequest }: FormProps):
|
|
465
|
+
declare function Form({ onCreateRequest }: FormProps): React__default.JSX.Element;
|
|
466
466
|
|
|
467
|
-
declare function FormPage():
|
|
467
|
+
declare function FormPage(): React__default.JSX.Element;
|
|
468
468
|
|
|
469
469
|
interface CaseHistoryProps {
|
|
470
470
|
onCreateRequest: () => void;
|
|
471
471
|
}
|
|
472
|
-
declare function CaseHistory({ onCreateRequest }: CaseHistoryProps):
|
|
472
|
+
declare function CaseHistory({ onCreateRequest }: CaseHistoryProps): React__default.JSX.Element;
|
|
473
473
|
|
|
474
|
-
declare function CaseDetailsPage():
|
|
474
|
+
declare function CaseDetailsPage(): React__default.JSX.Element;
|
|
475
475
|
|
|
476
476
|
interface SideMenuProps {
|
|
477
477
|
onBack?: 'back' | 'signout';
|
|
478
478
|
}
|
|
479
|
-
declare function SideMenu({ onBack }?: SideMenuProps):
|
|
479
|
+
declare function SideMenu({ onBack }?: SideMenuProps): React__default.JSX.Element;
|
|
480
480
|
|
|
481
481
|
type PageChromeMode = 'primary' | 'detail';
|
|
482
482
|
declare const DETAIL_PAGES: readonly ["case-details", "notifications"];
|
|
@@ -503,7 +503,7 @@ interface NavbarProps {
|
|
|
503
503
|
mode?: PageChromeMode;
|
|
504
504
|
onBack?: 'back' | 'signout';
|
|
505
505
|
}
|
|
506
|
-
declare function Navbar({ mode, onBack }: NavbarProps):
|
|
506
|
+
declare function Navbar({ mode, onBack }: NavbarProps): React__default.JSX.Element;
|
|
507
507
|
|
|
508
508
|
type FooterProps = {
|
|
509
509
|
/** Tighter vertical padding for embedding inside the menu sheet. */
|
|
@@ -514,12 +514,12 @@ type FooterProps = {
|
|
|
514
514
|
* via branding.hide_platform_branding. Renders the Redacto logo (raster) next to
|
|
515
515
|
* the localized "Powered by" label, mirroring the web Privacy Center footer.
|
|
516
516
|
*/
|
|
517
|
-
declare function Footer({ inline }: FooterProps):
|
|
517
|
+
declare function Footer({ inline }: FooterProps): React__default.JSX.Element | null;
|
|
518
518
|
|
|
519
519
|
interface BottomTabBarProps {
|
|
520
520
|
showFooter?: boolean;
|
|
521
521
|
}
|
|
522
|
-
declare function BottomTabBar({ showFooter }: BottomTabBarProps):
|
|
522
|
+
declare function BottomTabBar({ showFooter }: BottomTabBarProps): React__default.JSX.Element;
|
|
523
523
|
|
|
524
524
|
/**
|
|
525
525
|
* Options for apiFetch function
|
|
@@ -691,7 +691,7 @@ interface BaseUrlContextValue {
|
|
|
691
691
|
declare function BaseUrlProvider({ children, baseUrl }: {
|
|
692
692
|
children: ReactNode;
|
|
693
693
|
baseUrl: string;
|
|
694
|
-
}):
|
|
694
|
+
}): React.JSX.Element;
|
|
695
695
|
declare function useBaseUrl(): BaseUrlContextValue;
|
|
696
696
|
|
|
697
697
|
declare function createOtpServer(email: string, organizationId: string, workspaceId: string, consentClient?: ReturnType<typeof createConsentClient>): Promise<OtpResponse>;
|
|
@@ -764,8 +764,8 @@ declare const sendCaseMessage: (organizationId: string, workspaceId: string, cas
|
|
|
764
764
|
declare const uploadCaseDocument: (organizationId: string, workspaceId: string, caseUuid: string, formData: globalThis.FormData, authContext?: AuthContext, consentClient?: BaseUrlContextValue["consentClient"]) => Promise<UploadDocumentResponse | null>;
|
|
765
765
|
declare const submitDocumentForRequest: (organizationId: string, workspaceId: string, caseUuid: string, requestEventUuid: string, documentUuid: string, body: string, authContext?: AuthContext, consentClient?: BaseUrlContextValue["consentClient"]) => Promise<CaseMessage | null>;
|
|
766
766
|
|
|
767
|
-
declare const useCaseHistory: (organizationId: string | undefined, workspaceId: string | undefined, contact: string | undefined, authContext?: AuthContext) => _tanstack_react_query.UseQueryResult<CaseRequest[]
|
|
768
|
-
declare const useCaseMessages: (organizationId: string | undefined, workspaceId: string | undefined, caseUuid: string | undefined, authContext?: AuthContext, pollingInterval?: number) => _tanstack_react_query.UseQueryResult<CaseMessage[]
|
|
767
|
+
declare const useCaseHistory: (organizationId: string | undefined, workspaceId: string | undefined, contact: string | undefined, authContext?: AuthContext) => _tanstack_react_query.UseQueryResult<NoInfer<CaseRequest[]>, Error>;
|
|
768
|
+
declare const useCaseMessages: (organizationId: string | undefined, workspaceId: string | undefined, caseUuid: string | undefined, authContext?: AuthContext, pollingInterval?: number) => _tanstack_react_query.UseQueryResult<NoInfer<CaseMessage[]>, Error>;
|
|
769
769
|
|
|
770
770
|
interface AuthContextType {
|
|
771
771
|
accessToken: string;
|
|
@@ -783,7 +783,7 @@ interface AuthProviderProps {
|
|
|
783
783
|
refreshToken: string;
|
|
784
784
|
onError: (error: Error) => boolean;
|
|
785
785
|
}
|
|
786
|
-
declare function AuthProvider({ children, accessToken: initialAccessToken, refreshToken: initialRefreshToken, onError }: AuthProviderProps):
|
|
786
|
+
declare function AuthProvider({ children, accessToken: initialAccessToken, refreshToken: initialRefreshToken, onError }: AuthProviderProps): React.JSX.Element;
|
|
787
787
|
declare function useAuth(): AuthContextType;
|
|
788
788
|
|
|
789
789
|
interface ThemeColors {
|
|
@@ -840,7 +840,7 @@ declare function ThemeProvider({ children, slug, baseUrl, }: {
|
|
|
840
840
|
children: ReactNode;
|
|
841
841
|
slug?: string;
|
|
842
842
|
baseUrl?: string;
|
|
843
|
-
}):
|
|
843
|
+
}): React.JSX.Element;
|
|
844
844
|
declare function useTheme(): ThemeContextType;
|
|
845
845
|
|
|
846
846
|
/**
|
|
@@ -852,69 +852,69 @@ declare function useTheme(): ThemeContextType;
|
|
|
852
852
|
* maps to which concept.
|
|
853
853
|
*/
|
|
854
854
|
declare const REGISTRY: {
|
|
855
|
-
activity:
|
|
856
|
-
'arrow-left':
|
|
857
|
-
ban:
|
|
858
|
-
'badge-check':
|
|
859
|
-
bell:
|
|
860
|
-
'bell-dot':
|
|
861
|
-
'bell-ring':
|
|
862
|
-
'bookmark-check':
|
|
863
|
-
calendar:
|
|
864
|
-
check:
|
|
865
|
-
'check-check':
|
|
866
|
-
'chevron-down':
|
|
867
|
-
'chevron-left':
|
|
868
|
-
'chevron-right':
|
|
869
|
-
'chevron-up':
|
|
870
|
-
'circle-alert':
|
|
871
|
-
'circle-check':
|
|
872
|
-
'circle-minus':
|
|
873
|
-
'circle-x':
|
|
874
|
-
clock:
|
|
875
|
-
'cloud-upload':
|
|
876
|
-
download:
|
|
877
|
-
'ellipsis-vertical':
|
|
878
|
-
'external-link':
|
|
879
|
-
eye:
|
|
880
|
-
'eye-off':
|
|
881
|
-
file:
|
|
882
|
-
'file-check':
|
|
883
|
-
'file-pen':
|
|
884
|
-
'file-text':
|
|
885
|
-
'file-x':
|
|
886
|
-
globe:
|
|
887
|
-
history:
|
|
888
|
-
inbox:
|
|
889
|
-
languages:
|
|
890
|
-
'list-filter':
|
|
891
|
-
lock:
|
|
892
|
-
'log-out':
|
|
893
|
-
menu:
|
|
894
|
-
'message-circle-warning':
|
|
895
|
-
'message-square-text':
|
|
896
|
-
'messages-square':
|
|
897
|
-
mic:
|
|
898
|
-
paperclip:
|
|
899
|
-
pencil:
|
|
900
|
-
plus:
|
|
901
|
-
'receipt-text':
|
|
902
|
-
'refresh-cw':
|
|
903
|
-
search:
|
|
904
|
-
send:
|
|
905
|
-
settings:
|
|
906
|
-
shield:
|
|
907
|
-
'shield-check':
|
|
908
|
-
'shield-x':
|
|
909
|
-
'sliders-horizontal':
|
|
910
|
-
'square-pen':
|
|
911
|
-
'trash-2':
|
|
912
|
-
'triangle-alert':
|
|
913
|
-
upload:
|
|
914
|
-
user:
|
|
915
|
-
'user-round':
|
|
916
|
-
users:
|
|
917
|
-
x:
|
|
855
|
+
activity: React__default.ForwardRefExoticComponent<lucide_react_native.LucideProps & React__default.RefAttributes<SVGSVGElement>>;
|
|
856
|
+
'arrow-left': React__default.ForwardRefExoticComponent<lucide_react_native.LucideProps & React__default.RefAttributes<SVGSVGElement>>;
|
|
857
|
+
ban: React__default.ForwardRefExoticComponent<lucide_react_native.LucideProps & React__default.RefAttributes<SVGSVGElement>>;
|
|
858
|
+
'badge-check': React__default.ForwardRefExoticComponent<lucide_react_native.LucideProps & React__default.RefAttributes<SVGSVGElement>>;
|
|
859
|
+
bell: React__default.ForwardRefExoticComponent<lucide_react_native.LucideProps & React__default.RefAttributes<SVGSVGElement>>;
|
|
860
|
+
'bell-dot': React__default.ForwardRefExoticComponent<lucide_react_native.LucideProps & React__default.RefAttributes<SVGSVGElement>>;
|
|
861
|
+
'bell-ring': React__default.ForwardRefExoticComponent<lucide_react_native.LucideProps & React__default.RefAttributes<SVGSVGElement>>;
|
|
862
|
+
'bookmark-check': React__default.ForwardRefExoticComponent<lucide_react_native.LucideProps & React__default.RefAttributes<SVGSVGElement>>;
|
|
863
|
+
calendar: React__default.ForwardRefExoticComponent<lucide_react_native.LucideProps & React__default.RefAttributes<SVGSVGElement>>;
|
|
864
|
+
check: React__default.ForwardRefExoticComponent<lucide_react_native.LucideProps & React__default.RefAttributes<SVGSVGElement>>;
|
|
865
|
+
'check-check': React__default.ForwardRefExoticComponent<lucide_react_native.LucideProps & React__default.RefAttributes<SVGSVGElement>>;
|
|
866
|
+
'chevron-down': React__default.ForwardRefExoticComponent<lucide_react_native.LucideProps & React__default.RefAttributes<SVGSVGElement>>;
|
|
867
|
+
'chevron-left': React__default.ForwardRefExoticComponent<lucide_react_native.LucideProps & React__default.RefAttributes<SVGSVGElement>>;
|
|
868
|
+
'chevron-right': React__default.ForwardRefExoticComponent<lucide_react_native.LucideProps & React__default.RefAttributes<SVGSVGElement>>;
|
|
869
|
+
'chevron-up': React__default.ForwardRefExoticComponent<lucide_react_native.LucideProps & React__default.RefAttributes<SVGSVGElement>>;
|
|
870
|
+
'circle-alert': React__default.ForwardRefExoticComponent<lucide_react_native.LucideProps & React__default.RefAttributes<SVGSVGElement>>;
|
|
871
|
+
'circle-check': React__default.ForwardRefExoticComponent<lucide_react_native.LucideProps & React__default.RefAttributes<SVGSVGElement>>;
|
|
872
|
+
'circle-minus': React__default.ForwardRefExoticComponent<lucide_react_native.LucideProps & React__default.RefAttributes<SVGSVGElement>>;
|
|
873
|
+
'circle-x': React__default.ForwardRefExoticComponent<lucide_react_native.LucideProps & React__default.RefAttributes<SVGSVGElement>>;
|
|
874
|
+
clock: React__default.ForwardRefExoticComponent<lucide_react_native.LucideProps & React__default.RefAttributes<SVGSVGElement>>;
|
|
875
|
+
'cloud-upload': React__default.ForwardRefExoticComponent<lucide_react_native.LucideProps & React__default.RefAttributes<SVGSVGElement>>;
|
|
876
|
+
download: React__default.ForwardRefExoticComponent<lucide_react_native.LucideProps & React__default.RefAttributes<SVGSVGElement>>;
|
|
877
|
+
'ellipsis-vertical': React__default.ForwardRefExoticComponent<lucide_react_native.LucideProps & React__default.RefAttributes<SVGSVGElement>>;
|
|
878
|
+
'external-link': React__default.ForwardRefExoticComponent<lucide_react_native.LucideProps & React__default.RefAttributes<SVGSVGElement>>;
|
|
879
|
+
eye: React__default.ForwardRefExoticComponent<lucide_react_native.LucideProps & React__default.RefAttributes<SVGSVGElement>>;
|
|
880
|
+
'eye-off': React__default.ForwardRefExoticComponent<lucide_react_native.LucideProps & React__default.RefAttributes<SVGSVGElement>>;
|
|
881
|
+
file: React__default.ForwardRefExoticComponent<lucide_react_native.LucideProps & React__default.RefAttributes<SVGSVGElement>>;
|
|
882
|
+
'file-check': React__default.ForwardRefExoticComponent<lucide_react_native.LucideProps & React__default.RefAttributes<SVGSVGElement>>;
|
|
883
|
+
'file-pen': React__default.ForwardRefExoticComponent<lucide_react_native.LucideProps & React__default.RefAttributes<SVGSVGElement>>;
|
|
884
|
+
'file-text': React__default.ForwardRefExoticComponent<lucide_react_native.LucideProps & React__default.RefAttributes<SVGSVGElement>>;
|
|
885
|
+
'file-x': React__default.ForwardRefExoticComponent<lucide_react_native.LucideProps & React__default.RefAttributes<SVGSVGElement>>;
|
|
886
|
+
globe: React__default.ForwardRefExoticComponent<lucide_react_native.LucideProps & React__default.RefAttributes<SVGSVGElement>>;
|
|
887
|
+
history: React__default.ForwardRefExoticComponent<lucide_react_native.LucideProps & React__default.RefAttributes<SVGSVGElement>>;
|
|
888
|
+
inbox: React__default.ForwardRefExoticComponent<lucide_react_native.LucideProps & React__default.RefAttributes<SVGSVGElement>>;
|
|
889
|
+
languages: React__default.ForwardRefExoticComponent<lucide_react_native.LucideProps & React__default.RefAttributes<SVGSVGElement>>;
|
|
890
|
+
'list-filter': React__default.ForwardRefExoticComponent<lucide_react_native.LucideProps & React__default.RefAttributes<SVGSVGElement>>;
|
|
891
|
+
lock: React__default.ForwardRefExoticComponent<lucide_react_native.LucideProps & React__default.RefAttributes<SVGSVGElement>>;
|
|
892
|
+
'log-out': React__default.ForwardRefExoticComponent<lucide_react_native.LucideProps & React__default.RefAttributes<SVGSVGElement>>;
|
|
893
|
+
menu: React__default.ForwardRefExoticComponent<lucide_react_native.LucideProps & React__default.RefAttributes<SVGSVGElement>>;
|
|
894
|
+
'message-circle-warning': React__default.ForwardRefExoticComponent<lucide_react_native.LucideProps & React__default.RefAttributes<SVGSVGElement>>;
|
|
895
|
+
'message-square-text': React__default.ForwardRefExoticComponent<lucide_react_native.LucideProps & React__default.RefAttributes<SVGSVGElement>>;
|
|
896
|
+
'messages-square': React__default.ForwardRefExoticComponent<lucide_react_native.LucideProps & React__default.RefAttributes<SVGSVGElement>>;
|
|
897
|
+
mic: React__default.ForwardRefExoticComponent<lucide_react_native.LucideProps & React__default.RefAttributes<SVGSVGElement>>;
|
|
898
|
+
paperclip: React__default.ForwardRefExoticComponent<lucide_react_native.LucideProps & React__default.RefAttributes<SVGSVGElement>>;
|
|
899
|
+
pencil: React__default.ForwardRefExoticComponent<lucide_react_native.LucideProps & React__default.RefAttributes<SVGSVGElement>>;
|
|
900
|
+
plus: React__default.ForwardRefExoticComponent<lucide_react_native.LucideProps & React__default.RefAttributes<SVGSVGElement>>;
|
|
901
|
+
'receipt-text': React__default.ForwardRefExoticComponent<lucide_react_native.LucideProps & React__default.RefAttributes<SVGSVGElement>>;
|
|
902
|
+
'refresh-cw': React__default.ForwardRefExoticComponent<lucide_react_native.LucideProps & React__default.RefAttributes<SVGSVGElement>>;
|
|
903
|
+
search: React__default.ForwardRefExoticComponent<lucide_react_native.LucideProps & React__default.RefAttributes<SVGSVGElement>>;
|
|
904
|
+
send: React__default.ForwardRefExoticComponent<lucide_react_native.LucideProps & React__default.RefAttributes<SVGSVGElement>>;
|
|
905
|
+
settings: React__default.ForwardRefExoticComponent<lucide_react_native.LucideProps & React__default.RefAttributes<SVGSVGElement>>;
|
|
906
|
+
shield: React__default.ForwardRefExoticComponent<lucide_react_native.LucideProps & React__default.RefAttributes<SVGSVGElement>>;
|
|
907
|
+
'shield-check': React__default.ForwardRefExoticComponent<lucide_react_native.LucideProps & React__default.RefAttributes<SVGSVGElement>>;
|
|
908
|
+
'shield-x': React__default.ForwardRefExoticComponent<lucide_react_native.LucideProps & React__default.RefAttributes<SVGSVGElement>>;
|
|
909
|
+
'sliders-horizontal': React__default.ForwardRefExoticComponent<lucide_react_native.LucideProps & React__default.RefAttributes<SVGSVGElement>>;
|
|
910
|
+
'square-pen': React__default.ForwardRefExoticComponent<lucide_react_native.LucideProps & React__default.RefAttributes<SVGSVGElement>>;
|
|
911
|
+
'trash-2': React__default.ForwardRefExoticComponent<lucide_react_native.LucideProps & React__default.RefAttributes<SVGSVGElement>>;
|
|
912
|
+
'triangle-alert': React__default.ForwardRefExoticComponent<lucide_react_native.LucideProps & React__default.RefAttributes<SVGSVGElement>>;
|
|
913
|
+
upload: React__default.ForwardRefExoticComponent<lucide_react_native.LucideProps & React__default.RefAttributes<SVGSVGElement>>;
|
|
914
|
+
user: React__default.ForwardRefExoticComponent<lucide_react_native.LucideProps & React__default.RefAttributes<SVGSVGElement>>;
|
|
915
|
+
'user-round': React__default.ForwardRefExoticComponent<lucide_react_native.LucideProps & React__default.RefAttributes<SVGSVGElement>>;
|
|
916
|
+
users: React__default.ForwardRefExoticComponent<lucide_react_native.LucideProps & React__default.RefAttributes<SVGSVGElement>>;
|
|
917
|
+
x: React__default.ForwardRefExoticComponent<lucide_react_native.LucideProps & React__default.RefAttributes<SVGSVGElement>>;
|
|
918
918
|
};
|
|
919
919
|
type IconName = keyof typeof REGISTRY;
|
|
920
920
|
type IconProps = {
|
|
@@ -926,7 +926,7 @@ type IconProps = {
|
|
|
926
926
|
/** Lucide stroke weight. Defaults to 1.85 for a clean, modern line. */
|
|
927
927
|
strokeWidth?: number;
|
|
928
928
|
};
|
|
929
|
-
declare const Icon:
|
|
929
|
+
declare const Icon: React__default.FC<IconProps>;
|
|
930
930
|
|
|
931
931
|
type PCButtonVariant = 'primary' | 'outline' | 'ghost' | 'danger';
|
|
932
932
|
type PCButtonSize = 'sm' | 'md' | 'lg';
|
|
@@ -944,7 +944,7 @@ type PCButtonProps = {
|
|
|
944
944
|
style?: StyleProp<ViewStyle>;
|
|
945
945
|
textStyle?: StyleProp<TextStyle>;
|
|
946
946
|
};
|
|
947
|
-
declare const PCButton:
|
|
947
|
+
declare const PCButton: React__default.FC<PCButtonProps>;
|
|
948
948
|
|
|
949
949
|
type PCInputProps = {
|
|
950
950
|
label?: string;
|
|
@@ -959,7 +959,7 @@ type PCInputProps = {
|
|
|
959
959
|
/** Optional leading icon inside the field. */
|
|
960
960
|
leftIcon?: IconName;
|
|
961
961
|
};
|
|
962
|
-
declare const PCInput:
|
|
962
|
+
declare const PCInput: React__default.FC<PCInputProps>;
|
|
963
963
|
|
|
964
964
|
type PCSelectOption = {
|
|
965
965
|
value: string;
|
|
@@ -974,17 +974,17 @@ type PCSelectProps = {
|
|
|
974
974
|
compact?: boolean;
|
|
975
975
|
style?: ViewStyle;
|
|
976
976
|
};
|
|
977
|
-
declare const PCSelect:
|
|
977
|
+
declare const PCSelect: React__default.FC<PCSelectProps>;
|
|
978
978
|
|
|
979
979
|
type PCModalSize = 'sm' | 'md' | 'lg';
|
|
980
980
|
type PCModalProps = {
|
|
981
981
|
visible: boolean;
|
|
982
982
|
onClose: () => void;
|
|
983
983
|
title?: string;
|
|
984
|
-
children:
|
|
984
|
+
children: React__default.ReactNode;
|
|
985
985
|
size?: PCModalSize;
|
|
986
986
|
};
|
|
987
|
-
declare const PCModal:
|
|
987
|
+
declare const PCModal: React__default.FC<PCModalProps>;
|
|
988
988
|
|
|
989
989
|
type PCCheckboxProps = {
|
|
990
990
|
checked: boolean;
|
|
@@ -992,14 +992,14 @@ type PCCheckboxProps = {
|
|
|
992
992
|
label?: string;
|
|
993
993
|
disabled?: boolean;
|
|
994
994
|
};
|
|
995
|
-
declare const PCCheckbox:
|
|
995
|
+
declare const PCCheckbox: React__default.FC<PCCheckboxProps>;
|
|
996
996
|
|
|
997
997
|
type PCLoaderProps = {
|
|
998
998
|
size?: 'small' | 'large';
|
|
999
999
|
color?: string;
|
|
1000
1000
|
text?: string;
|
|
1001
1001
|
};
|
|
1002
|
-
declare const PCLoader:
|
|
1002
|
+
declare const PCLoader: React__default.FC<PCLoaderProps>;
|
|
1003
1003
|
|
|
1004
1004
|
type PCEmptyProps = {
|
|
1005
1005
|
title: string;
|
|
@@ -1007,11 +1007,11 @@ type PCEmptyProps = {
|
|
|
1007
1007
|
/** Preferred: a named icon rendered in a neutral tile. */
|
|
1008
1008
|
iconName?: IconName;
|
|
1009
1009
|
/** Escape hatch: a custom icon node (kept for backward compatibility). */
|
|
1010
|
-
icon?:
|
|
1010
|
+
icon?: React__default.ReactNode;
|
|
1011
1011
|
/** Optional action (e.g. a PCButton). */
|
|
1012
|
-
action?:
|
|
1012
|
+
action?: React__default.ReactNode;
|
|
1013
1013
|
};
|
|
1014
|
-
declare const PCEmpty:
|
|
1014
|
+
declare const PCEmpty: React__default.FC<PCEmptyProps>;
|
|
1015
1015
|
|
|
1016
1016
|
type PCBadgeStatus = 'success' | 'warning' | 'error' | 'info' | 'pending' | 'secondary';
|
|
1017
1017
|
type PCBadgeProps = {
|
|
@@ -1021,7 +1021,7 @@ type PCBadgeProps = {
|
|
|
1021
1021
|
/** Show a small leading status dot (in the badge's foreground color). */
|
|
1022
1022
|
dot?: boolean;
|
|
1023
1023
|
};
|
|
1024
|
-
declare const PCBadge:
|
|
1024
|
+
declare const PCBadge: React__default.FC<PCBadgeProps>;
|
|
1025
1025
|
|
|
1026
1026
|
type PCAvatarProps = {
|
|
1027
1027
|
name?: string | null;
|
|
@@ -1029,13 +1029,13 @@ type PCAvatarProps = {
|
|
|
1029
1029
|
size?: number;
|
|
1030
1030
|
style?: StyleProp<ViewStyle>;
|
|
1031
1031
|
};
|
|
1032
|
-
declare const PCAvatar:
|
|
1032
|
+
declare const PCAvatar: React__default.FC<PCAvatarProps>;
|
|
1033
1033
|
|
|
1034
1034
|
type BottomSheetProps = {
|
|
1035
1035
|
visible: boolean;
|
|
1036
1036
|
onClose: () => void;
|
|
1037
1037
|
title?: string;
|
|
1038
|
-
children:
|
|
1038
|
+
children: React__default.ReactNode;
|
|
1039
1039
|
};
|
|
1040
1040
|
/**
|
|
1041
1041
|
* Native-mobile bottom sheet built on RN core (`Modal` + `Animated` +
|
|
@@ -1043,13 +1043,13 @@ type BottomSheetProps = {
|
|
|
1043
1043
|
* the bottom, dims the backdrop, and supports swipe-down + backdrop-tap +
|
|
1044
1044
|
* close-button dismissal.
|
|
1045
1045
|
*/
|
|
1046
|
-
declare const BottomSheet:
|
|
1046
|
+
declare const BottomSheet: React__default.FC<BottomSheetProps>;
|
|
1047
1047
|
|
|
1048
1048
|
type PCDividerProps = {
|
|
1049
1049
|
inset?: boolean;
|
|
1050
1050
|
style?: StyleProp<ViewStyle>;
|
|
1051
1051
|
};
|
|
1052
|
-
declare const PCDivider:
|
|
1052
|
+
declare const PCDivider: React__default.FC<PCDividerProps>;
|
|
1053
1053
|
|
|
1054
1054
|
type IconTileTone = 'primary' | 'neutral' | 'success' | 'warning' | 'danger' | 'info';
|
|
1055
1055
|
type IconTileSize = 'sm' | 'md' | 'lg';
|
|
@@ -1066,7 +1066,7 @@ type IconTileProps = {
|
|
|
1066
1066
|
* The core Soft Neutral motif: a softly tinted rounded square holding a single
|
|
1067
1067
|
* icon. Anchors list rows, section headers, stat cards and notifications.
|
|
1068
1068
|
*/
|
|
1069
|
-
declare const IconTile:
|
|
1069
|
+
declare const IconTile: React__default.FC<IconTileProps>;
|
|
1070
1070
|
|
|
1071
1071
|
type PCPageTitleProps = {
|
|
1072
1072
|
title: string;
|
|
@@ -1076,7 +1076,7 @@ type PCPageTitleProps = {
|
|
|
1076
1076
|
/** Optional leading icon (rendered in a tinted tile). */
|
|
1077
1077
|
icon?: IconName;
|
|
1078
1078
|
tone?: IconTileTone;
|
|
1079
|
-
trailing?:
|
|
1079
|
+
trailing?: React__default.ReactNode;
|
|
1080
1080
|
/** `large` renders an iOS-style big screen title (no icon tile, no overline). */
|
|
1081
1081
|
variant?: 'default' | 'large';
|
|
1082
1082
|
style?: StyleProp<ViewStyle>;
|
|
@@ -1086,26 +1086,26 @@ type PCPageTitleProps = {
|
|
|
1086
1086
|
* top/bottom spacing. Prefer passing `icon`/`overline` for the icon-led look, or
|
|
1087
1087
|
* `variant="large"` for the clean iOS large-title look.
|
|
1088
1088
|
*/
|
|
1089
|
-
declare const PCPageTitle:
|
|
1089
|
+
declare const PCPageTitle: React__default.FC<PCPageTitleProps>;
|
|
1090
1090
|
|
|
1091
1091
|
type PCListRowProps = {
|
|
1092
1092
|
title: string;
|
|
1093
1093
|
subtitle?: string;
|
|
1094
1094
|
onPress?: () => void;
|
|
1095
1095
|
/** Leading content (typically an <IconTile />). */
|
|
1096
|
-
leading?:
|
|
1097
|
-
trailing?:
|
|
1096
|
+
leading?: React__default.ReactNode;
|
|
1097
|
+
trailing?: React__default.ReactNode;
|
|
1098
1098
|
showChevron?: boolean;
|
|
1099
1099
|
style?: StyleProp<ViewStyle>;
|
|
1100
1100
|
};
|
|
1101
|
-
declare const PCListRow:
|
|
1101
|
+
declare const PCListRow: React__default.FC<PCListRowProps>;
|
|
1102
1102
|
|
|
1103
1103
|
type PCListSectionProps = {
|
|
1104
1104
|
title?: string;
|
|
1105
|
-
children:
|
|
1105
|
+
children: React__default.ReactNode;
|
|
1106
1106
|
style?: StyleProp<ViewStyle>;
|
|
1107
1107
|
};
|
|
1108
|
-
declare const PCListSection:
|
|
1108
|
+
declare const PCListSection: React__default.FC<PCListSectionProps>;
|
|
1109
1109
|
|
|
1110
1110
|
type SectionHeaderProps = {
|
|
1111
1111
|
title: string;
|
|
@@ -1116,7 +1116,7 @@ type SectionHeaderProps = {
|
|
|
1116
1116
|
icon?: IconName;
|
|
1117
1117
|
tone?: IconTileTone;
|
|
1118
1118
|
/** Right-aligned content (count, action, filter button). */
|
|
1119
|
-
trailing?:
|
|
1119
|
+
trailing?: React__default.ReactNode;
|
|
1120
1120
|
/**
|
|
1121
1121
|
* `large` renders an iOS-style big screen title (no icon tile, no overline).
|
|
1122
1122
|
* `default` keeps the compact icon-led header.
|
|
@@ -1129,7 +1129,7 @@ type SectionHeaderProps = {
|
|
|
1129
1129
|
* uppercase overline with a compact title (and optional icon tile) instead of a
|
|
1130
1130
|
* large text heading.
|
|
1131
1131
|
*/
|
|
1132
|
-
declare const SectionHeader:
|
|
1132
|
+
declare const SectionHeader: React__default.FC<SectionHeaderProps>;
|
|
1133
1133
|
|
|
1134
1134
|
type SkeletonProps = {
|
|
1135
1135
|
width?: DimensionValue;
|
|
@@ -1138,9 +1138,9 @@ type SkeletonProps = {
|
|
|
1138
1138
|
style?: StyleProp<ViewStyle>;
|
|
1139
1139
|
};
|
|
1140
1140
|
/** A single shimmering placeholder block. Compose several for list skeletons. */
|
|
1141
|
-
declare const Skeleton:
|
|
1141
|
+
declare const Skeleton: React__default.FC<SkeletonProps>;
|
|
1142
1142
|
/** Convenience: a card-shaped skeleton row (icon tile + two text lines). */
|
|
1143
|
-
declare const SkeletonRow:
|
|
1143
|
+
declare const SkeletonRow: React__default.FC<{
|
|
1144
1144
|
style?: StyleProp<ViewStyle>;
|
|
1145
1145
|
}>;
|
|
1146
1146
|
|
|
@@ -1155,7 +1155,7 @@ type StatPillProps = {
|
|
|
1155
1155
|
style?: StyleProp<ViewStyle>;
|
|
1156
1156
|
};
|
|
1157
1157
|
/** Compact metric chip used in the notifications stat row and the home hub. */
|
|
1158
|
-
declare const StatPill:
|
|
1158
|
+
declare const StatPill: React__default.FC<StatPillProps>;
|
|
1159
1159
|
|
|
1160
1160
|
type PressScaleOptions = {
|
|
1161
1161
|
/** Target scale while pressed. Default 0.97. */
|