@platform-blocks/ui 0.3.0 → 0.4.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/lib/cjs/index.js +5378 -2406
- package/lib/cjs/index.js.map +1 -1
- package/lib/components/Accordion/hooks/useAccordionItemAnimation.d.ts +8 -10
- package/lib/components/Avatar/types.d.ts +9 -0
- package/lib/components/Calendar/types.d.ts +2 -1
- package/lib/components/Can/types.d.ts +6 -4
- package/lib/components/CodeBlock/CodeBlock.d.ts +0 -12
- package/lib/components/CodeBlock/types.d.ts +19 -0
- package/lib/components/CodeBlock/utils.d.ts +4 -13
- package/lib/components/Collapse/Collapse.d.ts +4 -0
- package/lib/components/Collapse/index.d.ts +2 -0
- package/lib/components/{Reveal → Collapse}/types.d.ts +9 -5
- package/lib/components/ColorPicker/styles.d.ts +1 -0
- package/lib/components/GradientText/GradientText.d.ts +1 -10
- package/lib/components/GradientText/types.d.ts +1 -9
- package/lib/components/Input/styles.d.ts +2 -2
- package/lib/components/Input/types.d.ts +4 -3
- package/lib/components/Knob/Knob.d.ts +22 -3
- package/lib/components/Knob/appearance.d.ts +56 -0
- package/lib/components/Knob/arc.d.ts +21 -0
- package/lib/components/Knob/components/KnobSurface.d.ts +30 -0
- package/lib/components/Knob/components/PointerLayer.d.ts +13 -0
- package/lib/components/Knob/components/SurfaceLayers.d.ts +38 -0
- package/lib/components/Knob/components/ThumbLayer.d.ts +14 -0
- package/lib/components/Knob/components/TickLayers.d.ts +27 -0
- package/lib/components/Knob/components/ValueLabelLayout.d.ts +18 -0
- package/lib/components/Knob/hooks/useKnobGeometry.d.ts +16 -0
- package/lib/components/Knob/hooks/useKnobGestures.d.ts +28 -0
- package/lib/components/Knob/hooks/useKnobInteraction.d.ts +29 -0
- package/lib/components/Knob/hooks/useKnobValue.d.ts +31 -0
- package/lib/components/Knob/hooks/useKnobValueLabels.d.ts +20 -0
- package/lib/components/Knob/index.d.ts +1 -1
- package/lib/components/Knob/interactionConfig.d.ts +22 -0
- package/lib/components/Knob/styles.d.ts +93 -0
- package/lib/components/Knob/types.d.ts +247 -1
- package/lib/components/Knob/utils/geometry.d.ts +6 -0
- package/lib/components/Knob/utils/marks.d.ts +4 -0
- package/lib/components/Knob/utils/math.d.ts +1 -0
- package/lib/components/ListGroup/types.d.ts +2 -2
- package/lib/components/Markdown/Markdown.d.ts +5 -0
- package/lib/components/Menu/styles.d.ts +2 -2
- package/lib/components/Menu/types.d.ts +2 -2
- package/lib/components/MenuItemButton/MenuItemButton.d.ts +4 -3
- package/lib/components/Notice/Notice.d.ts +2 -0
- package/lib/components/Notice/index.d.ts +2 -0
- package/lib/components/{Alert → Notice}/types.d.ts +9 -9
- package/lib/components/QRCode/types.d.ts +0 -6
- package/lib/components/Radio/types.d.ts +2 -0
- package/lib/components/Rating/types.d.ts +2 -1
- package/lib/components/Search/types.d.ts +3 -3
- package/lib/components/ShimmerText/ShimmerText.d.ts +2 -32
- package/lib/components/ShimmerText/types.d.ts +18 -10
- package/lib/components/Spotlight/Spotlight.d.ts +2 -2
- package/lib/components/Spotlight/types.d.ts +3 -3
- package/lib/components/Switch/types.d.ts +2 -1
- package/lib/components/Text/Text.d.ts +3 -4
- package/lib/components/Text/index.d.ts +1 -1
- package/lib/components/Toast/ToastProvider.d.ts +1 -8
- package/lib/components/Toast/index.d.ts +1 -1
- package/lib/components/Toggle/types.d.ts +2 -1
- package/lib/components/Tree/types.d.ts +2 -0
- package/lib/components/{Disclaimer → _internal/Disclaimer}/Disclaimer.d.ts +2 -2
- package/lib/components/_internal/Reveal/Reveal.d.ts +0 -0
- package/lib/components/_internal/Reveal/index.d.ts +0 -0
- package/lib/components/_internal/Reveal/types.d.ts +0 -0
- package/lib/components/index.d.ts +8 -11
- package/lib/components/optimized.d.ts +10 -1
- package/lib/components/types.d.ts +1 -2
- package/lib/core/components/InputContainer.d.ts +3 -3
- package/lib/core/factory/factory.d.ts +3 -1
- package/lib/core/factory/polymorphicFactory.d.ts +4 -3
- package/lib/core/utils/index.d.ts +1 -1
- package/lib/core/utils/positioning-enhanced.d.ts +0 -18
- package/lib/core/utils/spacing.d.ts +3 -4
- package/lib/core/utils/universal.d.ts +1 -2
- package/lib/core/utils/universalSimple.d.ts +1 -2
- package/lib/core/utils/withUniversalProps.d.ts +1 -1
- package/lib/esm/index.js +5379 -2405
- package/lib/esm/index.js.map +1 -1
- package/lib/hooks/index.d.ts +2 -0
- package/lib/hooks/useDeviceInfo/index.d.ts +108 -0
- package/lib/hooks/useEscapeKey/index.d.ts +1 -0
- package/lib/hooks/useGlobalHotkeys/index.d.ts +1 -0
- package/lib/hooks/{useMaskedInput.d.ts → useMaskedInput/index.d.ts} +1 -1
- package/lib/hooks/useMaskedInput/utils/mask.d.ts +138 -0
- package/lib/hooks/useOverlayMode/index.d.ts +29 -0
- package/lib/hooks/useSpotlightToggle/index.d.ts +1 -0
- package/lib/hooks/useToggleColorScheme/index.d.ts +1 -0
- package/lib/index.d.ts +12 -11
- package/lib/utils/mask.d.ts +1 -138
- package/package.json +10 -10
- package/lib/components/Alert/Alert.d.ts +0 -2
- package/lib/components/Alert/index.d.ts +0 -2
- package/lib/components/CodeBlock/type.d.ts +0 -40
- package/lib/components/Container/Container.d.ts +0 -3
- package/lib/components/Container/index.d.ts +0 -2
- package/lib/components/Container/types.d.ts +0 -31
- package/lib/components/Forms/ContactForm.d.ts +0 -3
- package/lib/components/Forms/ForgotPasswordForm.d.ts +0 -3
- package/lib/components/Forms/LoginForm.d.ts +0 -3
- package/lib/components/Forms/SignupForm.d.ts +0 -3
- package/lib/components/Forms/index.d.ts +0 -5
- package/lib/components/Forms/types.d.ts +0 -89
- package/lib/components/Reveal/Reveal.d.ts +0 -4
- package/lib/components/Reveal/index.d.ts +0 -2
- /package/lib/components/{Accessibility → _internal/Accessibility}/AccessibilityDemo.d.ts +0 -0
- /package/lib/components/{Accessibility → _internal/Accessibility}/AccessibilityHelpers.d.ts +0 -0
- /package/lib/components/{Accessibility → _internal/Accessibility}/AccessibilityTesting.d.ts +0 -0
- /package/lib/components/{Accessibility → _internal/Accessibility}/AccessibleComponents.d.ts +0 -0
- /package/lib/components/{Accessibility → _internal/Accessibility}/index.d.ts +0 -0
- /package/lib/components/{Disclaimer → _internal/Disclaimer}/disclaimerUtils.d.ts +0 -0
- /package/lib/components/{Disclaimer → _internal/Disclaimer}/index.d.ts +0 -0
- /package/lib/components/{Disclaimer → _internal/Disclaimer}/withDisclaimer.d.ts +0 -0
- /package/lib/components/{PressAnimation → _internal/PressAnimation}/PressAnimation.d.ts +0 -0
- /package/lib/components/{PressAnimation → _internal/PressAnimation}/index.d.ts +0 -0
- /package/lib/hooks/{useClipboard.d.ts → useClipboard/index.d.ts} +0 -0
- /package/lib/hooks/{useHaptics.d.ts → useHaptics/index.d.ts} +0 -0
- /package/lib/hooks/{useHotkeys.d.ts → useHotkeys/index.d.ts} +0 -0
- /package/lib/hooks/{useScrollSpy.d.ts → useScrollSpy/index.d.ts} +0 -0
- /package/lib/{contexts → hooks/useTitleRegistration/contexts}/TitleRegistryContext.d.ts +0 -0
- /package/lib/{contexts → hooks/useTitleRegistration/contexts}/index.d.ts +0 -0
- /package/lib/hooks/{useTitleRegistration.d.ts → useTitleRegistration/index.d.ts} +0 -0
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ViewStyle } from 'react-native';
|
|
3
|
-
import type { SpacingProps } from '../../core/utils/spacing';
|
|
4
|
-
export interface ContainerProps extends SpacingProps {
|
|
5
|
-
children: React.ReactNode;
|
|
6
|
-
style?: ViewStyle;
|
|
7
|
-
/** Makes container take full available height (flex: 1) */
|
|
8
|
-
fluid?: boolean;
|
|
9
|
-
backgroundImage?: {
|
|
10
|
-
uri: string;
|
|
11
|
-
opacity?: number;
|
|
12
|
-
overlay?: {
|
|
13
|
-
color?: string;
|
|
14
|
-
opacity?: number;
|
|
15
|
-
};
|
|
16
|
-
gradient?: {
|
|
17
|
-
colors: string[];
|
|
18
|
-
locations?: number[];
|
|
19
|
-
start?: {
|
|
20
|
-
x: number;
|
|
21
|
-
y: number;
|
|
22
|
-
};
|
|
23
|
-
end?: {
|
|
24
|
-
x: number;
|
|
25
|
-
y: number;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
padding?: number;
|
|
30
|
-
margin?: number;
|
|
31
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { LoginForm } from './LoginForm';
|
|
2
|
-
export { SignupForm } from './SignupForm';
|
|
3
|
-
export { ForgotPasswordForm } from './ForgotPasswordForm';
|
|
4
|
-
export { ContactForm } from './ContactForm';
|
|
5
|
-
export type { LoginFormProps, SignupFormProps, SignupFormData, ForgotPasswordFormProps, ContactFormProps, ContactFormData, ContactFormField, OAuthProvider } from './types';
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import type { ViewStyle } from 'react-native';
|
|
2
|
-
import type { LayoutProps } from '../../core/utils';
|
|
3
|
-
export interface OAuthProvider {
|
|
4
|
-
name: 'google' | 'facebook' | 'apple' | string;
|
|
5
|
-
displayName: string;
|
|
6
|
-
icon?: string;
|
|
7
|
-
color?: string;
|
|
8
|
-
onPress: () => void;
|
|
9
|
-
}
|
|
10
|
-
export interface LoginFormProps extends LayoutProps {
|
|
11
|
-
style?: ViewStyle;
|
|
12
|
-
onLogin?: (email: string, password: string) => void;
|
|
13
|
-
onSignup?: () => void;
|
|
14
|
-
onForgotPassword?: () => void;
|
|
15
|
-
oauthProviders?: OAuthProvider[];
|
|
16
|
-
loading?: boolean;
|
|
17
|
-
error?: string;
|
|
18
|
-
title?: string;
|
|
19
|
-
subtitle?: string;
|
|
20
|
-
showSignupLink?: boolean;
|
|
21
|
-
showForgotPasswordLink?: boolean;
|
|
22
|
-
primaryButtonText?: string;
|
|
23
|
-
signupLinkText?: string;
|
|
24
|
-
forgotPasswordLinkText?: string;
|
|
25
|
-
}
|
|
26
|
-
export interface SignupFormProps extends LayoutProps {
|
|
27
|
-
style?: ViewStyle;
|
|
28
|
-
onSignup?: (data: SignupFormData) => void;
|
|
29
|
-
onLogin?: () => void;
|
|
30
|
-
oauthProviders?: OAuthProvider[];
|
|
31
|
-
loading?: boolean;
|
|
32
|
-
error?: string;
|
|
33
|
-
title?: string;
|
|
34
|
-
subtitle?: string;
|
|
35
|
-
showLoginLink?: boolean;
|
|
36
|
-
primaryButtonText?: string;
|
|
37
|
-
loginLinkText?: string;
|
|
38
|
-
requireTermsAcceptance?: boolean;
|
|
39
|
-
termsText?: string;
|
|
40
|
-
onTermsPress?: () => void;
|
|
41
|
-
}
|
|
42
|
-
export interface SignupFormData {
|
|
43
|
-
firstName: string;
|
|
44
|
-
lastName: string;
|
|
45
|
-
email: string;
|
|
46
|
-
password: string;
|
|
47
|
-
confirmPassword: string;
|
|
48
|
-
acceptedTerms?: boolean;
|
|
49
|
-
}
|
|
50
|
-
export interface ForgotPasswordFormProps extends LayoutProps {
|
|
51
|
-
style?: ViewStyle;
|
|
52
|
-
onSubmit?: (email: string) => void;
|
|
53
|
-
onBackToLogin?: () => void;
|
|
54
|
-
loading?: boolean;
|
|
55
|
-
error?: string;
|
|
56
|
-
success?: string;
|
|
57
|
-
title?: string;
|
|
58
|
-
subtitle?: string;
|
|
59
|
-
primaryButtonText?: string;
|
|
60
|
-
backToLoginText?: string;
|
|
61
|
-
}
|
|
62
|
-
export interface ContactFormProps extends LayoutProps {
|
|
63
|
-
style?: ViewStyle;
|
|
64
|
-
onSubmit?: (data: ContactFormData) => void;
|
|
65
|
-
loading?: boolean;
|
|
66
|
-
error?: string;
|
|
67
|
-
success?: string;
|
|
68
|
-
title?: string;
|
|
69
|
-
subtitle?: string;
|
|
70
|
-
primaryButtonText?: string;
|
|
71
|
-
showSubjectField?: boolean;
|
|
72
|
-
showPhoneField?: boolean;
|
|
73
|
-
customFields?: ContactFormField[];
|
|
74
|
-
}
|
|
75
|
-
export interface ContactFormData {
|
|
76
|
-
name: string;
|
|
77
|
-
email: string;
|
|
78
|
-
phone?: string;
|
|
79
|
-
subject?: string;
|
|
80
|
-
message: string;
|
|
81
|
-
[key: string]: any;
|
|
82
|
-
}
|
|
83
|
-
export interface ContactFormField {
|
|
84
|
-
key: string;
|
|
85
|
-
label: string;
|
|
86
|
-
type: 'text' | 'email' | 'phone' | 'textarea';
|
|
87
|
-
required?: boolean;
|
|
88
|
-
placeholder?: string;
|
|
89
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|