@platform-blocks/ui 0.3.1 → 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.
Files changed (122) hide show
  1. package/lib/cjs/index.js +5378 -2406
  2. package/lib/cjs/index.js.map +1 -1
  3. package/lib/components/Accordion/hooks/useAccordionItemAnimation.d.ts +8 -10
  4. package/lib/components/Avatar/types.d.ts +9 -0
  5. package/lib/components/Calendar/types.d.ts +2 -1
  6. package/lib/components/Can/types.d.ts +6 -4
  7. package/lib/components/CodeBlock/CodeBlock.d.ts +0 -12
  8. package/lib/components/CodeBlock/types.d.ts +19 -0
  9. package/lib/components/CodeBlock/utils.d.ts +4 -13
  10. package/lib/components/Collapse/Collapse.d.ts +4 -0
  11. package/lib/components/Collapse/index.d.ts +2 -0
  12. package/lib/components/{Reveal → Collapse}/types.d.ts +9 -5
  13. package/lib/components/ColorPicker/styles.d.ts +1 -0
  14. package/lib/components/GradientText/GradientText.d.ts +1 -10
  15. package/lib/components/GradientText/types.d.ts +1 -9
  16. package/lib/components/Input/styles.d.ts +2 -2
  17. package/lib/components/Input/types.d.ts +4 -3
  18. package/lib/components/Knob/Knob.d.ts +22 -3
  19. package/lib/components/Knob/appearance.d.ts +56 -0
  20. package/lib/components/Knob/arc.d.ts +21 -0
  21. package/lib/components/Knob/components/KnobSurface.d.ts +30 -0
  22. package/lib/components/Knob/components/PointerLayer.d.ts +13 -0
  23. package/lib/components/Knob/components/SurfaceLayers.d.ts +38 -0
  24. package/lib/components/Knob/components/ThumbLayer.d.ts +14 -0
  25. package/lib/components/Knob/components/TickLayers.d.ts +27 -0
  26. package/lib/components/Knob/components/ValueLabelLayout.d.ts +18 -0
  27. package/lib/components/Knob/hooks/useKnobGeometry.d.ts +16 -0
  28. package/lib/components/Knob/hooks/useKnobGestures.d.ts +28 -0
  29. package/lib/components/Knob/hooks/useKnobInteraction.d.ts +29 -0
  30. package/lib/components/Knob/hooks/useKnobValue.d.ts +31 -0
  31. package/lib/components/Knob/hooks/useKnobValueLabels.d.ts +20 -0
  32. package/lib/components/Knob/index.d.ts +1 -1
  33. package/lib/components/Knob/interactionConfig.d.ts +22 -0
  34. package/lib/components/Knob/styles.d.ts +93 -0
  35. package/lib/components/Knob/types.d.ts +247 -1
  36. package/lib/components/Knob/utils/geometry.d.ts +6 -0
  37. package/lib/components/Knob/utils/marks.d.ts +4 -0
  38. package/lib/components/Knob/utils/math.d.ts +1 -0
  39. package/lib/components/ListGroup/types.d.ts +2 -2
  40. package/lib/components/Markdown/Markdown.d.ts +5 -0
  41. package/lib/components/Menu/styles.d.ts +2 -2
  42. package/lib/components/Menu/types.d.ts +2 -2
  43. package/lib/components/MenuItemButton/MenuItemButton.d.ts +4 -3
  44. package/lib/components/Notice/Notice.d.ts +2 -0
  45. package/lib/components/Notice/index.d.ts +2 -0
  46. package/lib/components/{Alert → Notice}/types.d.ts +9 -9
  47. package/lib/components/QRCode/types.d.ts +0 -6
  48. package/lib/components/Radio/types.d.ts +2 -0
  49. package/lib/components/Rating/types.d.ts +2 -1
  50. package/lib/components/Search/types.d.ts +3 -3
  51. package/lib/components/ShimmerText/ShimmerText.d.ts +2 -32
  52. package/lib/components/ShimmerText/types.d.ts +18 -10
  53. package/lib/components/Spotlight/Spotlight.d.ts +2 -2
  54. package/lib/components/Spotlight/types.d.ts +3 -3
  55. package/lib/components/Switch/types.d.ts +2 -1
  56. package/lib/components/Text/Text.d.ts +3 -4
  57. package/lib/components/Text/index.d.ts +1 -1
  58. package/lib/components/Toast/ToastProvider.d.ts +1 -8
  59. package/lib/components/Toast/index.d.ts +1 -1
  60. package/lib/components/Toggle/types.d.ts +2 -1
  61. package/lib/components/Tree/types.d.ts +2 -0
  62. package/lib/components/{Disclaimer → _internal/Disclaimer}/Disclaimer.d.ts +2 -2
  63. package/lib/components/_internal/Reveal/Reveal.d.ts +0 -0
  64. package/lib/components/_internal/Reveal/index.d.ts +0 -0
  65. package/lib/components/_internal/Reveal/types.d.ts +0 -0
  66. package/lib/components/index.d.ts +8 -11
  67. package/lib/components/optimized.d.ts +10 -1
  68. package/lib/components/types.d.ts +1 -2
  69. package/lib/core/components/InputContainer.d.ts +3 -3
  70. package/lib/core/factory/factory.d.ts +3 -1
  71. package/lib/core/factory/polymorphicFactory.d.ts +4 -3
  72. package/lib/core/utils/index.d.ts +1 -1
  73. package/lib/core/utils/positioning-enhanced.d.ts +0 -18
  74. package/lib/core/utils/spacing.d.ts +3 -4
  75. package/lib/core/utils/universal.d.ts +1 -2
  76. package/lib/core/utils/universalSimple.d.ts +1 -2
  77. package/lib/core/utils/withUniversalProps.d.ts +1 -1
  78. package/lib/esm/index.js +5379 -2405
  79. package/lib/esm/index.js.map +1 -1
  80. package/lib/hooks/index.d.ts +2 -0
  81. package/lib/hooks/useDeviceInfo/index.d.ts +108 -0
  82. package/lib/hooks/useEscapeKey/index.d.ts +1 -0
  83. package/lib/hooks/useGlobalHotkeys/index.d.ts +1 -0
  84. package/lib/hooks/{useMaskedInput.d.ts → useMaskedInput/index.d.ts} +1 -1
  85. package/lib/hooks/useMaskedInput/utils/mask.d.ts +138 -0
  86. package/lib/hooks/useOverlayMode/index.d.ts +29 -0
  87. package/lib/hooks/useSpotlightToggle/index.d.ts +1 -0
  88. package/lib/hooks/useToggleColorScheme/index.d.ts +1 -0
  89. package/lib/index.d.ts +12 -11
  90. package/lib/utils/mask.d.ts +1 -138
  91. package/package.json +3 -3
  92. package/lib/components/Alert/Alert.d.ts +0 -2
  93. package/lib/components/Alert/index.d.ts +0 -2
  94. package/lib/components/CodeBlock/type.d.ts +0 -40
  95. package/lib/components/Container/Container.d.ts +0 -3
  96. package/lib/components/Container/index.d.ts +0 -2
  97. package/lib/components/Container/types.d.ts +0 -31
  98. package/lib/components/Forms/ContactForm.d.ts +0 -3
  99. package/lib/components/Forms/ForgotPasswordForm.d.ts +0 -3
  100. package/lib/components/Forms/LoginForm.d.ts +0 -3
  101. package/lib/components/Forms/SignupForm.d.ts +0 -3
  102. package/lib/components/Forms/index.d.ts +0 -5
  103. package/lib/components/Forms/types.d.ts +0 -89
  104. package/lib/components/Reveal/Reveal.d.ts +0 -4
  105. package/lib/components/Reveal/index.d.ts +0 -2
  106. /package/lib/components/{Accessibility → _internal/Accessibility}/AccessibilityDemo.d.ts +0 -0
  107. /package/lib/components/{Accessibility → _internal/Accessibility}/AccessibilityHelpers.d.ts +0 -0
  108. /package/lib/components/{Accessibility → _internal/Accessibility}/AccessibilityTesting.d.ts +0 -0
  109. /package/lib/components/{Accessibility → _internal/Accessibility}/AccessibleComponents.d.ts +0 -0
  110. /package/lib/components/{Accessibility → _internal/Accessibility}/index.d.ts +0 -0
  111. /package/lib/components/{Disclaimer → _internal/Disclaimer}/disclaimerUtils.d.ts +0 -0
  112. /package/lib/components/{Disclaimer → _internal/Disclaimer}/index.d.ts +0 -0
  113. /package/lib/components/{Disclaimer → _internal/Disclaimer}/withDisclaimer.d.ts +0 -0
  114. /package/lib/components/{PressAnimation → _internal/PressAnimation}/PressAnimation.d.ts +0 -0
  115. /package/lib/components/{PressAnimation → _internal/PressAnimation}/index.d.ts +0 -0
  116. /package/lib/hooks/{useClipboard.d.ts → useClipboard/index.d.ts} +0 -0
  117. /package/lib/hooks/{useHaptics.d.ts → useHaptics/index.d.ts} +0 -0
  118. /package/lib/hooks/{useHotkeys.d.ts → useHotkeys/index.d.ts} +0 -0
  119. /package/lib/hooks/{useScrollSpy.d.ts → useScrollSpy/index.d.ts} +0 -0
  120. /package/lib/{contexts → hooks/useTitleRegistration/contexts}/TitleRegistryContext.d.ts +0 -0
  121. /package/lib/{contexts → hooks/useTitleRegistration/contexts}/index.d.ts +0 -0
  122. /package/lib/hooks/{useTitleRegistration.d.ts → useTitleRegistration/index.d.ts} +0 -0
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- import type { LoginFormProps } from './types';
3
- export declare const LoginForm: React.FC<LoginFormProps>;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- import type { SignupFormProps } from './types';
3
- export declare const SignupForm: React.FC<SignupFormProps>;
@@ -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
- }
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import type { RevealProps } from './types';
3
- declare const Reveal: React.FC<RevealProps>;
4
- export default Reveal;
@@ -1,2 +0,0 @@
1
- export { default as Reveal } from './Reveal';
2
- export type { RevealProps } from './types';