@oxyhq/bloom 0.1.32 → 0.1.33
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/commonjs/admonition/index.js +7 -0
- package/lib/commonjs/admonition/index.js.map +1 -1
- package/lib/commonjs/avatar/Avatar.js +2 -18
- package/lib/commonjs/avatar/Avatar.js.map +1 -1
- package/lib/commonjs/bottom-sheet/index.js +16 -6
- package/lib/commonjs/bottom-sheet/index.js.map +1 -1
- package/lib/commonjs/button/Button.js +6 -18
- package/lib/commonjs/button/Button.js.map +1 -1
- package/lib/commonjs/chip/Chip.js +6 -16
- package/lib/commonjs/chip/Chip.js.map +1 -1
- package/lib/commonjs/collapsible/Collapsible.js +28 -20
- package/lib/commonjs/collapsible/Collapsible.js.map +1 -1
- package/lib/commonjs/fill/index.js +7 -5
- package/lib/commonjs/fill/index.js.map +1 -1
- package/lib/commonjs/grid/index.js +9 -6
- package/lib/commonjs/grid/index.js.map +1 -1
- package/lib/commonjs/grouped-buttons/GroupedButtons.js +76 -48
- package/lib/commonjs/grouped-buttons/GroupedButtons.js.map +1 -1
- package/lib/commonjs/hooks/index.js +13 -0
- package/lib/commonjs/hooks/index.js.map +1 -1
- package/lib/commonjs/hooks/useInteractionState.js +42 -0
- package/lib/commonjs/hooks/useInteractionState.js.map +1 -1
- package/lib/commonjs/hooks/usePressAnimation.js +44 -0
- package/lib/commonjs/hooks/usePressAnimation.js.map +1 -0
- package/lib/commonjs/icon-circle/index.js +7 -5
- package/lib/commonjs/icon-circle/index.js.map +1 -1
- package/lib/commonjs/icons/{EnveopeOpen.js → EnvelopeOpen.js} +1 -1
- package/lib/commonjs/icons/EnvelopeOpen.js.map +1 -0
- package/lib/commonjs/icons/TEMPLATE.js +3 -2
- package/lib/commonjs/icons/TEMPLATE.js.map +1 -1
- package/lib/commonjs/icons/VerifiedCheck.js +3 -2
- package/lib/commonjs/icons/VerifiedCheck.js.map +1 -1
- package/lib/commonjs/icons/VerifierCheck.js +3 -2
- package/lib/commonjs/icons/VerifierCheck.js.map +1 -1
- package/lib/commonjs/icons/index.js +4 -4
- package/lib/commonjs/icons/index.js.map +1 -1
- package/lib/commonjs/loading/Loading.js +2 -17
- package/lib/commonjs/loading/Loading.js.map +1 -1
- package/lib/commonjs/loading/SpinnerIcon.js +3 -34
- package/lib/commonjs/loading/SpinnerIcon.js.map +1 -1
- package/lib/commonjs/prompt-input/Actions.js +1 -0
- package/lib/commonjs/prompt-input/Actions.js.map +1 -1
- package/lib/commonjs/prompt-input/Attachments.js +1 -0
- package/lib/commonjs/prompt-input/Attachments.js.map +1 -1
- package/lib/commonjs/prompt-input/PromptInput.js +1 -0
- package/lib/commonjs/prompt-input/PromptInput.js.map +1 -1
- package/lib/commonjs/prompt-input/SubmitButton.js +1 -0
- package/lib/commonjs/prompt-input/SubmitButton.js.map +1 -1
- package/lib/commonjs/prompt-input/Textarea.js +1 -0
- package/lib/commonjs/prompt-input/Textarea.js.map +1 -1
- package/lib/commonjs/prompt-input/Textarea.web.js +1 -0
- package/lib/commonjs/prompt-input/Textarea.web.js.map +1 -1
- package/lib/commonjs/search-input/index.js +1 -0
- package/lib/commonjs/search-input/index.js.map +1 -1
- package/lib/commonjs/settings-list/SettingsList.js +10 -11
- package/lib/commonjs/settings-list/SettingsList.js.map +1 -1
- package/lib/commonjs/skeleton/index.js +5 -0
- package/lib/commonjs/skeleton/index.js.map +1 -1
- package/lib/commonjs/switch/Switch.js +43 -28
- package/lib/commonjs/switch/Switch.js.map +1 -1
- package/lib/commonjs/tabs/Tabs.js +6 -15
- package/lib/commonjs/tabs/Tabs.js.map +1 -1
- package/lib/commonjs/typography/index.js +14 -5
- package/lib/commonjs/typography/index.js.map +1 -1
- package/lib/commonjs/utils/lazy-require.js +37 -0
- package/lib/commonjs/utils/lazy-require.js.map +1 -0
- package/lib/module/admonition/index.js +7 -0
- package/lib/module/admonition/index.js.map +1 -1
- package/lib/module/avatar/Avatar.js +2 -18
- package/lib/module/avatar/Avatar.js.map +1 -1
- package/lib/module/bottom-sheet/index.js +16 -6
- package/lib/module/bottom-sheet/index.js.map +1 -1
- package/lib/module/button/Button.js +7 -19
- package/lib/module/button/Button.js.map +1 -1
- package/lib/module/chip/Chip.js +7 -17
- package/lib/module/chip/Chip.js.map +1 -1
- package/lib/module/collapsible/Collapsible.js +30 -22
- package/lib/module/collapsible/Collapsible.js.map +1 -1
- package/lib/module/fill/index.js +5 -3
- package/lib/module/fill/index.js.map +1 -1
- package/lib/module/grid/index.js +9 -5
- package/lib/module/grid/index.js.map +1 -1
- package/lib/module/grouped-buttons/GroupedButtons.js +77 -48
- package/lib/module/grouped-buttons/GroupedButtons.js.map +1 -1
- package/lib/module/hooks/index.js +2 -1
- package/lib/module/hooks/index.js.map +1 -1
- package/lib/module/hooks/useInteractionState.js +41 -0
- package/lib/module/hooks/useInteractionState.js.map +1 -1
- package/lib/module/hooks/usePressAnimation.js +41 -0
- package/lib/module/hooks/usePressAnimation.js.map +1 -0
- package/lib/module/icon-circle/index.js +5 -3
- package/lib/module/icon-circle/index.js.map +1 -1
- package/lib/module/icons/{EnveopeOpen.js → EnvelopeOpen.js} +1 -1
- package/lib/module/icons/EnvelopeOpen.js.map +1 -0
- package/lib/module/icons/TEMPLATE.js +3 -2
- package/lib/module/icons/TEMPLATE.js.map +1 -1
- package/lib/module/icons/VerifiedCheck.js +3 -2
- package/lib/module/icons/VerifiedCheck.js.map +1 -1
- package/lib/module/icons/VerifierCheck.js +3 -2
- package/lib/module/icons/VerifierCheck.js.map +1 -1
- package/lib/module/icons/index.js +1 -1
- package/lib/module/icons/index.js.map +1 -1
- package/lib/module/loading/Loading.js +2 -17
- package/lib/module/loading/Loading.js.map +1 -1
- package/lib/module/loading/SpinnerIcon.js +3 -34
- package/lib/module/loading/SpinnerIcon.js.map +1 -1
- package/lib/module/prompt-input/Actions.js +1 -0
- package/lib/module/prompt-input/Actions.js.map +1 -1
- package/lib/module/prompt-input/Attachments.js +1 -0
- package/lib/module/prompt-input/Attachments.js.map +1 -1
- package/lib/module/prompt-input/PromptInput.js +1 -0
- package/lib/module/prompt-input/PromptInput.js.map +1 -1
- package/lib/module/prompt-input/SubmitButton.js +1 -0
- package/lib/module/prompt-input/SubmitButton.js.map +1 -1
- package/lib/module/prompt-input/Textarea.js +1 -0
- package/lib/module/prompt-input/Textarea.js.map +1 -1
- package/lib/module/prompt-input/Textarea.web.js +1 -0
- package/lib/module/prompt-input/Textarea.web.js.map +1 -1
- package/lib/module/search-input/index.js +1 -0
- package/lib/module/search-input/index.js.map +1 -1
- package/lib/module/settings-list/SettingsList.js +10 -11
- package/lib/module/settings-list/SettingsList.js.map +1 -1
- package/lib/module/skeleton/index.js +5 -0
- package/lib/module/skeleton/index.js.map +1 -1
- package/lib/module/switch/Switch.js +45 -30
- package/lib/module/switch/Switch.js.map +1 -1
- package/lib/module/tabs/Tabs.js +8 -17
- package/lib/module/tabs/Tabs.js.map +1 -1
- package/lib/module/typography/index.js +12 -3
- package/lib/module/typography/index.js.map +1 -1
- package/lib/module/utils/lazy-require.js +33 -0
- package/lib/module/utils/lazy-require.js.map +1 -0
- package/lib/typescript/commonjs/admonition/index.d.ts +21 -0
- package/lib/typescript/commonjs/admonition/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/avatar/Avatar.d.ts.map +1 -1
- package/lib/typescript/commonjs/bottom-sheet/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/button/Button.d.ts.map +1 -1
- package/lib/typescript/commonjs/chip/Chip.d.ts.map +1 -1
- package/lib/typescript/commonjs/collapsible/Collapsible.d.ts.map +1 -1
- package/lib/typescript/commonjs/fill/index.d.ts +2 -2
- package/lib/typescript/commonjs/fill/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/grid/index.d.ts +4 -4
- package/lib/typescript/commonjs/grid/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/grouped-buttons/GroupedButtons.d.ts +9 -5
- package/lib/typescript/commonjs/grouped-buttons/GroupedButtons.d.ts.map +1 -1
- package/lib/typescript/commonjs/hooks/index.d.ts +2 -1
- package/lib/typescript/commonjs/hooks/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/hooks/useInteractionState.d.ts +23 -0
- package/lib/typescript/commonjs/hooks/useInteractionState.d.ts.map +1 -1
- package/lib/typescript/commonjs/hooks/usePressAnimation.d.ts +16 -0
- package/lib/typescript/commonjs/hooks/usePressAnimation.d.ts.map +1 -0
- package/lib/typescript/commonjs/icon-circle/index.d.ts +4 -4
- package/lib/typescript/commonjs/icon-circle/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/icons/{EnveopeOpen.d.ts → EnvelopeOpen.d.ts} +1 -1
- package/lib/typescript/commonjs/icons/EnvelopeOpen.d.ts.map +1 -0
- package/lib/typescript/commonjs/icons/TEMPLATE.d.ts +2 -1
- package/lib/typescript/commonjs/icons/TEMPLATE.d.ts.map +1 -1
- package/lib/typescript/commonjs/icons/VerifiedCheck.d.ts.map +1 -1
- package/lib/typescript/commonjs/icons/VerifierCheck.d.ts.map +1 -1
- package/lib/typescript/commonjs/icons/index.d.ts +1 -1
- package/lib/typescript/commonjs/icons/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/loading/Loading.d.ts.map +1 -1
- package/lib/typescript/commonjs/loading/SpinnerIcon.d.ts.map +1 -1
- package/lib/typescript/commonjs/prompt-input/Actions.d.ts +3 -0
- package/lib/typescript/commonjs/prompt-input/Actions.d.ts.map +1 -1
- package/lib/typescript/commonjs/prompt-input/Attachments.d.ts +3 -0
- package/lib/typescript/commonjs/prompt-input/Attachments.d.ts.map +1 -1
- package/lib/typescript/commonjs/prompt-input/PromptInput.d.ts +3 -0
- package/lib/typescript/commonjs/prompt-input/PromptInput.d.ts.map +1 -1
- package/lib/typescript/commonjs/prompt-input/SubmitButton.d.ts +3 -0
- package/lib/typescript/commonjs/prompt-input/SubmitButton.d.ts.map +1 -1
- package/lib/typescript/commonjs/prompt-input/Textarea.d.ts +3 -0
- package/lib/typescript/commonjs/prompt-input/Textarea.d.ts.map +1 -1
- package/lib/typescript/commonjs/prompt-input/Textarea.web.d.ts +3 -0
- package/lib/typescript/commonjs/prompt-input/Textarea.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/settings-list/SettingsList.d.ts.map +1 -1
- package/lib/typescript/commonjs/skeleton/index.d.ts +15 -0
- package/lib/typescript/commonjs/skeleton/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/switch/Switch.d.ts.map +1 -1
- package/lib/typescript/commonjs/tabs/Tabs.d.ts.map +1 -1
- package/lib/typescript/commonjs/typography/index.d.ts +11 -10
- package/lib/typescript/commonjs/typography/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/utils/lazy-require.d.ts +15 -0
- package/lib/typescript/commonjs/utils/lazy-require.d.ts.map +1 -0
- package/lib/typescript/module/admonition/index.d.ts +21 -0
- package/lib/typescript/module/admonition/index.d.ts.map +1 -1
- package/lib/typescript/module/avatar/Avatar.d.ts.map +1 -1
- package/lib/typescript/module/bottom-sheet/index.d.ts.map +1 -1
- package/lib/typescript/module/button/Button.d.ts.map +1 -1
- package/lib/typescript/module/chip/Chip.d.ts.map +1 -1
- package/lib/typescript/module/collapsible/Collapsible.d.ts.map +1 -1
- package/lib/typescript/module/fill/index.d.ts +2 -2
- package/lib/typescript/module/fill/index.d.ts.map +1 -1
- package/lib/typescript/module/grid/index.d.ts +4 -4
- package/lib/typescript/module/grid/index.d.ts.map +1 -1
- package/lib/typescript/module/grouped-buttons/GroupedButtons.d.ts +9 -5
- package/lib/typescript/module/grouped-buttons/GroupedButtons.d.ts.map +1 -1
- package/lib/typescript/module/hooks/index.d.ts +2 -1
- package/lib/typescript/module/hooks/index.d.ts.map +1 -1
- package/lib/typescript/module/hooks/useInteractionState.d.ts +23 -0
- package/lib/typescript/module/hooks/useInteractionState.d.ts.map +1 -1
- package/lib/typescript/module/hooks/usePressAnimation.d.ts +16 -0
- package/lib/typescript/module/hooks/usePressAnimation.d.ts.map +1 -0
- package/lib/typescript/module/icon-circle/index.d.ts +4 -4
- package/lib/typescript/module/icon-circle/index.d.ts.map +1 -1
- package/lib/typescript/module/icons/{EnveopeOpen.d.ts → EnvelopeOpen.d.ts} +1 -1
- package/lib/typescript/module/icons/EnvelopeOpen.d.ts.map +1 -0
- package/lib/typescript/module/icons/TEMPLATE.d.ts +2 -1
- package/lib/typescript/module/icons/TEMPLATE.d.ts.map +1 -1
- package/lib/typescript/module/icons/VerifiedCheck.d.ts.map +1 -1
- package/lib/typescript/module/icons/VerifierCheck.d.ts.map +1 -1
- package/lib/typescript/module/icons/index.d.ts +1 -1
- package/lib/typescript/module/icons/index.d.ts.map +1 -1
- package/lib/typescript/module/loading/Loading.d.ts.map +1 -1
- package/lib/typescript/module/loading/SpinnerIcon.d.ts.map +1 -1
- package/lib/typescript/module/prompt-input/Actions.d.ts +3 -0
- package/lib/typescript/module/prompt-input/Actions.d.ts.map +1 -1
- package/lib/typescript/module/prompt-input/Attachments.d.ts +3 -0
- package/lib/typescript/module/prompt-input/Attachments.d.ts.map +1 -1
- package/lib/typescript/module/prompt-input/PromptInput.d.ts +3 -0
- package/lib/typescript/module/prompt-input/PromptInput.d.ts.map +1 -1
- package/lib/typescript/module/prompt-input/SubmitButton.d.ts +3 -0
- package/lib/typescript/module/prompt-input/SubmitButton.d.ts.map +1 -1
- package/lib/typescript/module/prompt-input/Textarea.d.ts +3 -0
- package/lib/typescript/module/prompt-input/Textarea.d.ts.map +1 -1
- package/lib/typescript/module/prompt-input/Textarea.web.d.ts +3 -0
- package/lib/typescript/module/prompt-input/Textarea.web.d.ts.map +1 -1
- package/lib/typescript/module/settings-list/SettingsList.d.ts.map +1 -1
- package/lib/typescript/module/skeleton/index.d.ts +15 -0
- package/lib/typescript/module/skeleton/index.d.ts.map +1 -1
- package/lib/typescript/module/switch/Switch.d.ts.map +1 -1
- package/lib/typescript/module/tabs/Tabs.d.ts.map +1 -1
- package/lib/typescript/module/typography/index.d.ts +11 -10
- package/lib/typescript/module/typography/index.d.ts.map +1 -1
- package/lib/typescript/module/utils/lazy-require.d.ts +15 -0
- package/lib/typescript/module/utils/lazy-require.d.ts.map +1 -0
- package/package.json +1 -1
- package/src/__tests__/BloomThemeProvider.test.tsx +3 -3
- package/src/admonition/index.tsx +7 -0
- package/src/avatar/Avatar.tsx +2 -19
- package/src/bottom-sheet/index.tsx +18 -6
- package/src/button/Button.tsx +6 -22
- package/src/chip/Chip.tsx +3 -19
- package/src/collapsible/Collapsible.tsx +34 -25
- package/src/fill/index.tsx +6 -3
- package/src/grid/index.tsx +11 -5
- package/src/grouped-buttons/GroupedButtons.tsx +79 -60
- package/src/hooks/index.ts +2 -1
- package/src/hooks/useInteractionState.ts +21 -0
- package/src/hooks/usePressAnimation.ts +37 -0
- package/src/icon-circle/index.tsx +6 -3
- package/src/icons/TEMPLATE.tsx +2 -2
- package/src/icons/VerifiedCheck.tsx +3 -2
- package/src/icons/VerifierCheck.tsx +3 -2
- package/src/icons/index.ts +1 -1
- package/src/loading/Loading.tsx +2 -18
- package/src/loading/SpinnerIcon.tsx +4 -36
- package/src/prompt-input/Actions.tsx +1 -0
- package/src/prompt-input/Attachments.tsx +1 -0
- package/src/prompt-input/PromptInput.tsx +1 -0
- package/src/prompt-input/SubmitButton.tsx +1 -0
- package/src/prompt-input/Textarea.tsx +1 -0
- package/src/prompt-input/Textarea.web.tsx +1 -0
- package/src/search-input/index.tsx +1 -0
- package/src/settings-list/SettingsList.tsx +12 -8
- package/src/skeleton/index.tsx +5 -0
- package/src/switch/Switch.tsx +45 -23
- package/src/tabs/Tabs.tsx +3 -21
- package/src/typography/index.tsx +14 -4
- package/src/utils/lazy-require.ts +31 -0
- package/lib/commonjs/icons/EnveopeOpen.js.map +0 -1
- package/lib/module/icons/EnveopeOpen.js.map +0 -1
- package/lib/typescript/commonjs/icons/EnveopeOpen.d.ts.map +0 -1
- package/lib/typescript/module/icons/EnveopeOpen.d.ts.map +0 -1
- /package/src/icons/{EnveopeOpen.tsx → EnvelopeOpen.tsx} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import React, { memo, useCallback,
|
|
4
|
-
import { View, Text, TouchableOpacity, Animated, LayoutAnimation, Platform, UIManager } from 'react-native';
|
|
3
|
+
import React, { memo, useCallback, useRef, useState } from 'react';
|
|
4
|
+
import { View, Text, TouchableOpacity, Animated, LayoutAnimation, Platform, UIManager, StyleSheet } from 'react-native';
|
|
5
5
|
import { useTheme } from "../theme/use-theme.js";
|
|
6
6
|
import { animation } from "../styles/tokens.js";
|
|
7
7
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -22,14 +22,15 @@ const CollapsibleComponent = ({
|
|
|
22
22
|
const [isOpen, setIsOpen] = useState(defaultOpen);
|
|
23
23
|
const theme = useTheme();
|
|
24
24
|
const chevronAnim = useRef(new Animated.Value(defaultOpen ? 1 : 0)).current;
|
|
25
|
-
|
|
25
|
+
const handleToggle = useCallback(() => {
|
|
26
|
+
const nextOpen = !isOpen;
|
|
27
|
+
|
|
28
|
+
// Animate chevron rotation in the event handler, not via useEffect
|
|
26
29
|
Animated.spring(chevronAnim, {
|
|
27
|
-
toValue:
|
|
30
|
+
toValue: nextOpen ? 1 : 0,
|
|
28
31
|
useNativeDriver: true,
|
|
29
32
|
...animation.spring.gentle
|
|
30
33
|
}).start();
|
|
31
|
-
}, [isOpen, chevronAnim]);
|
|
32
|
-
const handleToggle = useCallback(() => {
|
|
33
34
|
LayoutAnimation.configureNext({
|
|
34
35
|
duration: animation.duration.normal,
|
|
35
36
|
update: {
|
|
@@ -44,8 +45,8 @@ const CollapsibleComponent = ({
|
|
|
44
45
|
property: LayoutAnimation.Properties.opacity
|
|
45
46
|
}
|
|
46
47
|
});
|
|
47
|
-
setIsOpen(
|
|
48
|
-
}, []);
|
|
48
|
+
setIsOpen(nextOpen);
|
|
49
|
+
}, [isOpen, chevronAnim]);
|
|
49
50
|
const chevronRotation = chevronAnim.interpolate({
|
|
50
51
|
inputRange: [0, 1],
|
|
51
52
|
outputRange: [CHEVRON_CLOSED, CHEVRON_OPEN]
|
|
@@ -60,27 +61,18 @@ const CollapsibleComponent = ({
|
|
|
60
61
|
accessibilityState: {
|
|
61
62
|
expanded: isOpen
|
|
62
63
|
},
|
|
63
|
-
style:
|
|
64
|
-
flexDirection: 'row',
|
|
65
|
-
alignItems: 'center',
|
|
66
|
-
paddingVertical: 12,
|
|
67
|
-
gap: 8
|
|
68
|
-
},
|
|
64
|
+
style: styles.trigger,
|
|
69
65
|
children: [chevronIcon ?? /*#__PURE__*/_jsx(Animated.Text, {
|
|
70
|
-
style: {
|
|
71
|
-
fontSize: 16,
|
|
66
|
+
style: [styles.chevron, {
|
|
72
67
|
color: theme.colors.textSecondary,
|
|
73
68
|
transform: [{
|
|
74
69
|
rotate: chevronRotation
|
|
75
70
|
}]
|
|
76
|
-
},
|
|
71
|
+
}],
|
|
77
72
|
children: "\u203A"
|
|
78
73
|
}), /*#__PURE__*/_jsx(Text, {
|
|
79
|
-
style: [{
|
|
80
|
-
|
|
81
|
-
fontWeight: '600',
|
|
82
|
-
color: theme.colors.text,
|
|
83
|
-
flex: 1
|
|
74
|
+
style: [styles.title, {
|
|
75
|
+
color: theme.colors.text
|
|
84
76
|
}, titleStyle],
|
|
85
77
|
children: title
|
|
86
78
|
})]
|
|
@@ -89,4 +81,20 @@ const CollapsibleComponent = ({
|
|
|
89
81
|
};
|
|
90
82
|
export const Collapsible = /*#__PURE__*/memo(CollapsibleComponent);
|
|
91
83
|
Collapsible.displayName = 'Collapsible';
|
|
84
|
+
const styles = StyleSheet.create({
|
|
85
|
+
trigger: {
|
|
86
|
+
flexDirection: 'row',
|
|
87
|
+
alignItems: 'center',
|
|
88
|
+
paddingVertical: 12,
|
|
89
|
+
gap: 8
|
|
90
|
+
},
|
|
91
|
+
chevron: {
|
|
92
|
+
fontSize: 16
|
|
93
|
+
},
|
|
94
|
+
title: {
|
|
95
|
+
fontSize: 16,
|
|
96
|
+
fontWeight: '600',
|
|
97
|
+
flex: 1
|
|
98
|
+
}
|
|
99
|
+
});
|
|
92
100
|
//# sourceMappingURL=Collapsible.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","memo","useCallback","
|
|
1
|
+
{"version":3,"names":["React","memo","useCallback","useRef","useState","View","Text","TouchableOpacity","Animated","LayoutAnimation","Platform","UIManager","StyleSheet","useTheme","animation","jsx","_jsx","jsxs","_jsxs","OS","setLayoutAnimationEnabledExperimental","CHEVRON_CLOSED","CHEVRON_OPEN","CollapsibleComponent","title","children","defaultOpen","chevronIcon","style","titleStyle","testID","isOpen","setIsOpen","theme","chevronAnim","Value","current","handleToggle","nextOpen","spring","toValue","useNativeDriver","gentle","start","configureNext","duration","normal","update","type","Types","easeInEaseOut","create","property","Properties","opacity","delete","chevronRotation","interpolate","inputRange","outputRange","onPress","activeOpacity","accessibilityRole","accessibilityState","expanded","styles","trigger","chevron","color","colors","textSecondary","transform","rotate","text","Collapsible","displayName","flexDirection","alignItems","paddingVertical","gap","fontSize","fontWeight","flex"],"sourceRoot":"../../../src","sources":["collapsible/Collapsible.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,IAAI,EAAEC,WAAW,EAAEC,MAAM,EAAEC,QAAQ,QAAQ,OAAO;AAClE,SAASC,IAAI,EAAEC,IAAI,EAAEC,gBAAgB,EAAEC,QAAQ,EAAEC,eAAe,EAAEC,QAAQ,EAAEC,SAAS,EAAEC,UAAU,QAAQ,cAAc;AAEvH,SAASC,QAAQ,QAAQ,uBAAoB;AAC7C,SAASC,SAAS,QAAQ,qBAAkB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAG7C,IAAIR,QAAQ,CAACS,EAAE,KAAK,SAAS,IAAIR,SAAS,CAACS,qCAAqC,EAAE;EAChFT,SAAS,CAACS,qCAAqC,CAAC,IAAI,CAAC;AACvD;AAEA,MAAMC,cAAc,GAAG,MAAM;AAC7B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OAAO,EAAE;IACPU,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE,QAAQ;IACpBC,eAAe,EAAE,EAAE;IACnBC,GAAG,EAAE;EACP,CAAC;EACDZ,OAAO,EAAE;IACPa,QAAQ,EAAE;EACZ,CAAC;EACDxD,KAAK,EAAE;IACLwD,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,KAAK;IACjBC,IAAI,EAAE;EACR;AACF,CAAC,CAAC","ignoreList":[]}
|
package/lib/module/fill/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import React from 'react';
|
|
3
|
+
import React, { memo } from 'react';
|
|
4
4
|
import { StyleSheet, View } from 'react-native';
|
|
5
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
-
|
|
6
|
+
const FillComponent = function Fill({
|
|
7
7
|
children,
|
|
8
8
|
style
|
|
9
9
|
}) {
|
|
@@ -11,7 +11,9 @@ export function Fill({
|
|
|
11
11
|
style: [fillStyles.base, style],
|
|
12
12
|
children: children
|
|
13
13
|
});
|
|
14
|
-
}
|
|
14
|
+
};
|
|
15
|
+
export const Fill = /*#__PURE__*/memo(FillComponent);
|
|
16
|
+
Fill.displayName = 'Fill';
|
|
15
17
|
const fillStyles = StyleSheet.create({
|
|
16
18
|
base: {
|
|
17
19
|
position: 'absolute',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","StyleSheet","View","jsx","_jsx","Fill","children","style","fillStyles","base","create","position","top","right","bottom","left"],"sourceRoot":"../../../src","sources":["fill/index.tsx"],"mappings":";;AAAA,OAAOA,KAAK,
|
|
1
|
+
{"version":3,"names":["React","memo","StyleSheet","View","jsx","_jsx","FillComponent","Fill","children","style","fillStyles","base","displayName","create","position","top","right","bottom","left"],"sourceRoot":"../../../src","sources":["fill/index.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,IAAI,QAAQ,OAAO;AACnC,SAASC,UAAU,EAAEC,IAAI,QAAwB,cAAc;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEhE,MAAMC,aAAa,GAAG,SAASC,IAAIA,CAAC;EAClCC,QAAQ;EACRC;AAIF,CAAC,EAAE;EACD,oBACEJ,IAAA,CAACF,IAAI;IAACM,KAAK,EAAE,CAACC,UAAU,CAACC,IAAI,EAAEF,KAAK,CAAE;IAAAD,QAAA,EACnCA;EAAQ,CACL,CAAC;AAEX,CAAC;AAED,OAAO,MAAMD,IAAI,gBAAGN,IAAI,CAACK,aAAa,CAAC;AACvCC,IAAI,CAACK,WAAW,GAAG,MAAM;AAEzB,MAAMF,UAAU,GAAGR,UAAU,CAACW,MAAM,CAAC;EACnCF,IAAI,EAAE;IACJG,QAAQ,EAAE,UAAU;IACpBC,GAAG,EAAE,CAAC;IACNC,KAAK,EAAE,CAAC;IACRC,MAAM,EAAE,CAAC;IACTC,IAAI,EAAE;EACR;AACF,CAAC,CAAC","ignoreList":[]}
|
package/lib/module/grid/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import React, { createContext, useContext, useMemo } from 'react';
|
|
3
|
+
import React, { createContext, memo, useContext, useMemo } from 'react';
|
|
4
4
|
import { View } from 'react-native';
|
|
5
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
6
|
const GridContext = /*#__PURE__*/createContext({
|
|
7
7
|
gap: 0
|
|
8
8
|
});
|
|
9
9
|
GridContext.displayName = 'GridContext';
|
|
10
|
-
|
|
10
|
+
const RowComponent = function Row({
|
|
11
11
|
children,
|
|
12
12
|
gap = 0,
|
|
13
13
|
style
|
|
@@ -26,8 +26,10 @@ export function Row({
|
|
|
26
26
|
children: children
|
|
27
27
|
})
|
|
28
28
|
});
|
|
29
|
-
}
|
|
30
|
-
export
|
|
29
|
+
};
|
|
30
|
+
export const Row = /*#__PURE__*/memo(RowComponent);
|
|
31
|
+
Row.displayName = 'Row';
|
|
32
|
+
const ColComponent = function Col({
|
|
31
33
|
children,
|
|
32
34
|
width = 1,
|
|
33
35
|
style
|
|
@@ -44,5 +46,7 @@ export function Col({
|
|
|
44
46
|
}, style],
|
|
45
47
|
children: children
|
|
46
48
|
});
|
|
47
|
-
}
|
|
49
|
+
};
|
|
50
|
+
export const Col = /*#__PURE__*/memo(ColComponent);
|
|
51
|
+
Col.displayName = 'Col';
|
|
48
52
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","createContext","useContext","useMemo","View","jsx","_jsx","GridContext","gap","displayName","Row","children","style","Provider","value","flexDirection","flex","marginLeft","marginRight","Col","width","paddingLeft","paddingRight"],"sourceRoot":"../../../src","sources":["grid/index.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,aAAa,EAAEC,UAAU,EAAEC,OAAO,QAAQ,OAAO;
|
|
1
|
+
{"version":3,"names":["React","createContext","memo","useContext","useMemo","View","jsx","_jsx","GridContext","gap","displayName","RowComponent","Row","children","style","Provider","value","flexDirection","flex","marginLeft","marginRight","ColComponent","Col","width","paddingLeft","paddingRight"],"sourceRoot":"../../../src","sources":["grid/index.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,aAAa,EAAEC,IAAI,EAAEC,UAAU,EAAEC,OAAO,QAAQ,OAAO;AACvE,SAASC,IAAI,QAAwB,cAAc;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEpD,MAAMC,WAAW,gBAAGP,aAAa,CAAC;EAAEQ,GAAG,EAAE;AAAE,CAAC,CAAC;AAC7CD,WAAW,CAACE,WAAW,GAAG,aAAa;AAEvC,MAAMC,YAAY,GAAG,SAASC,GAAGA,CAAC;EAChCC,QAAQ;EACRJ,GAAG,GAAG,CAAC;EACPK;AAKF,CAAC,EAAE;EACD,oBACEP,IAAA,CAACC,WAAW,CAACO,QAAQ;IAACC,KAAK,EAAEZ,OAAO,CAAC,OAAO;MAAEK;IAAI,CAAC,CAAC,EAAE,CAACA,GAAG,CAAC,CAAE;IAAAI,QAAA,eAC3DN,IAAA,CAACF,IAAI;MACHS,KAAK,EAAE,CACL;QACEG,aAAa,EAAE,KAAK;QACpBC,IAAI,EAAE,CAAC;QACPC,UAAU,EAAE,CAACV,GAAG,GAAG,CAAC;QACpBW,WAAW,EAAE,CAACX,GAAG,GAAG;MACtB,CAAC,EACDK,KAAK,CACL;MAAAD,QAAA,EACDA;IAAQ,CACL;EAAC,CACa,CAAC;AAE3B,CAAC;AAED,OAAO,MAAMD,GAAG,gBAAGV,IAAI,CAACS,YAAY,CAAC;AACrCC,GAAG,CAACF,WAAW,GAAG,KAAK;AAEvB,MAAMW,YAAY,GAAG,SAASC,GAAGA,CAAC;EAChCT,QAAQ;EACRU,KAAK,GAAG,CAAC;EACTT;AAKF,CAAC,EAAE;EACD,MAAM;IAAEL;EAAI,CAAC,GAAGN,UAAU,CAACK,WAAW,CAAC;EACvC,oBACED,IAAA,CAACF,IAAI;IACHS,KAAK,EAAE,CACL;MACEG,aAAa,EAAE,QAAQ;MACvBO,WAAW,EAAEf,GAAG,GAAG,CAAC;MACpBgB,YAAY,EAAEhB,GAAG,GAAG,CAAC;MACrBc,KAAK,EAAE,GAAGA,KAAK,GAAG,GAAG;IACvB,CAAC,EACDT,KAAK,CACL;IAAAD,QAAA,EACDA;EAAQ,CACL,CAAC;AAEX,CAAC;AAED,OAAO,MAAMS,GAAG,gBAAGpB,IAAI,CAACmB,YAAY,CAAC;AACrCC,GAAG,CAACZ,WAAW,GAAG,KAAK","ignoreList":[]}
|
|
@@ -1,33 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import React, { Children } from 'react';
|
|
4
|
-
import { View, Text, TouchableOpacity } from 'react-native';
|
|
3
|
+
import React, { Children, memo } from 'react';
|
|
4
|
+
import { View, Text, TouchableOpacity, StyleSheet } from 'react-native';
|
|
5
5
|
import { useTheme } from "../theme/use-theme.js";
|
|
6
6
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}) {
|
|
11
|
-
const theme = useTheme();
|
|
12
|
-
const childArray = Children.toArray(children);
|
|
13
|
-
return /*#__PURE__*/_jsx(View, {
|
|
14
|
-
style: [{
|
|
15
|
-
borderRadius: 12,
|
|
16
|
-
backgroundColor: theme.colors.card,
|
|
17
|
-
overflow: 'hidden'
|
|
18
|
-
}, style],
|
|
19
|
-
children: childArray.map((child, index) => /*#__PURE__*/_jsxs(React.Fragment, {
|
|
20
|
-
children: [child, index < childArray.length - 1 && /*#__PURE__*/_jsx(View, {
|
|
21
|
-
style: {
|
|
22
|
-
height: 1,
|
|
23
|
-
backgroundColor: theme.colors.borderLight,
|
|
24
|
-
marginLeft: 16
|
|
25
|
-
}
|
|
26
|
-
})]
|
|
27
|
-
}, index))
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
export function Item({
|
|
7
|
+
// ── Item (defined first so it can be attached to GroupedButtons) ─
|
|
8
|
+
|
|
9
|
+
function ItemComponent({
|
|
31
10
|
label,
|
|
32
11
|
description,
|
|
33
12
|
icon,
|
|
@@ -43,38 +22,88 @@ export function Item({
|
|
|
43
22
|
disabled: disabled,
|
|
44
23
|
activeOpacity: 0.6,
|
|
45
24
|
testID: testID,
|
|
46
|
-
style:
|
|
47
|
-
flexDirection: 'row',
|
|
48
|
-
alignItems: 'center',
|
|
49
|
-
paddingVertical: 12,
|
|
50
|
-
paddingHorizontal: 16,
|
|
51
|
-
opacity: disabled ? 0.5 : 1
|
|
52
|
-
},
|
|
25
|
+
style: [styles.item, disabled && styles.disabled],
|
|
53
26
|
children: [icon && /*#__PURE__*/_jsx(View, {
|
|
54
|
-
style:
|
|
55
|
-
marginRight: 12
|
|
56
|
-
},
|
|
27
|
+
style: styles.iconWrapper,
|
|
57
28
|
children: icon
|
|
58
29
|
}), /*#__PURE__*/_jsxs(View, {
|
|
59
|
-
style:
|
|
60
|
-
flex: 1
|
|
61
|
-
},
|
|
30
|
+
style: styles.textWrapper,
|
|
62
31
|
children: [/*#__PURE__*/_jsx(Text, {
|
|
63
|
-
style: {
|
|
64
|
-
fontSize: 16,
|
|
32
|
+
style: [styles.label, {
|
|
65
33
|
color: labelColor
|
|
66
|
-
},
|
|
34
|
+
}],
|
|
67
35
|
children: label
|
|
68
36
|
}), description && /*#__PURE__*/_jsx(Text, {
|
|
69
|
-
style: {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
marginTop: 2
|
|
73
|
-
},
|
|
37
|
+
style: [styles.description, {
|
|
38
|
+
color: theme.colors.textSecondary
|
|
39
|
+
}],
|
|
74
40
|
children: description
|
|
75
41
|
})]
|
|
76
42
|
})]
|
|
77
43
|
});
|
|
78
44
|
}
|
|
79
|
-
|
|
45
|
+
export const Item = /*#__PURE__*/memo(ItemComponent);
|
|
46
|
+
Item.displayName = 'GroupedButtons.Item';
|
|
47
|
+
|
|
48
|
+
// ── GroupedButtons ───────────────────────────────────────────────
|
|
49
|
+
|
|
50
|
+
function GroupedButtonsComponent({
|
|
51
|
+
children,
|
|
52
|
+
style
|
|
53
|
+
}) {
|
|
54
|
+
const theme = useTheme();
|
|
55
|
+
const childArray = Children.toArray(children);
|
|
56
|
+
return /*#__PURE__*/_jsx(View, {
|
|
57
|
+
style: [styles.container, {
|
|
58
|
+
backgroundColor: theme.colors.card
|
|
59
|
+
}, style],
|
|
60
|
+
children: childArray.map((child, index) => /*#__PURE__*/_jsxs(React.Fragment, {
|
|
61
|
+
children: [child, index < childArray.length - 1 && /*#__PURE__*/_jsx(View, {
|
|
62
|
+
style: [styles.divider, {
|
|
63
|
+
backgroundColor: theme.colors.borderLight
|
|
64
|
+
}]
|
|
65
|
+
})]
|
|
66
|
+
}, index))
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
const GroupedButtonsMemo = /*#__PURE__*/memo(GroupedButtonsComponent);
|
|
70
|
+
GroupedButtonsMemo.displayName = 'GroupedButtons';
|
|
71
|
+
export const GroupedButtons = Object.assign(GroupedButtonsMemo, {
|
|
72
|
+
Item
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
// ── Styles ──────────────────────────────────────────────────────
|
|
76
|
+
|
|
77
|
+
const styles = StyleSheet.create({
|
|
78
|
+
container: {
|
|
79
|
+
borderRadius: 12,
|
|
80
|
+
overflow: 'hidden'
|
|
81
|
+
},
|
|
82
|
+
divider: {
|
|
83
|
+
height: 1,
|
|
84
|
+
marginLeft: 16
|
|
85
|
+
},
|
|
86
|
+
item: {
|
|
87
|
+
flexDirection: 'row',
|
|
88
|
+
alignItems: 'center',
|
|
89
|
+
paddingVertical: 12,
|
|
90
|
+
paddingHorizontal: 16
|
|
91
|
+
},
|
|
92
|
+
disabled: {
|
|
93
|
+
opacity: 0.5
|
|
94
|
+
},
|
|
95
|
+
iconWrapper: {
|
|
96
|
+
marginRight: 12
|
|
97
|
+
},
|
|
98
|
+
textWrapper: {
|
|
99
|
+
flex: 1
|
|
100
|
+
},
|
|
101
|
+
label: {
|
|
102
|
+
fontSize: 16
|
|
103
|
+
},
|
|
104
|
+
description: {
|
|
105
|
+
fontSize: 13,
|
|
106
|
+
marginTop: 2
|
|
107
|
+
}
|
|
108
|
+
});
|
|
80
109
|
//# sourceMappingURL=GroupedButtons.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","Children","View","Text","TouchableOpacity","useTheme","jsx","_jsx","jsxs","_jsxs","
|
|
1
|
+
{"version":3,"names":["React","Children","memo","View","Text","TouchableOpacity","StyleSheet","useTheme","jsx","_jsx","jsxs","_jsxs","ItemComponent","label","description","icon","onPress","destructive","disabled","testID","theme","labelColor","colors","negative","text","activeOpacity","style","styles","item","children","iconWrapper","textWrapper","color","textSecondary","Item","displayName","GroupedButtonsComponent","childArray","toArray","container","backgroundColor","card","map","child","index","Fragment","length","divider","borderLight","GroupedButtonsMemo","GroupedButtons","Object","assign","create","borderRadius","overflow","height","marginLeft","flexDirection","alignItems","paddingVertical","paddingHorizontal","opacity","marginRight","flex","fontSize","marginTop"],"sourceRoot":"../../../src","sources":["grouped-buttons/GroupedButtons.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,QAAQ,EAAEC,IAAI,QAAQ,OAAO;AAC7C,SAASC,IAAI,EAAEC,IAAI,EAAEC,gBAAgB,EAAEC,UAAU,QAAQ,cAAc;AAEvE,SAASC,QAAQ,QAAQ,uBAAoB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAK9C;;AAEA,SAASC,aAAaA,CAAC;EACrBC,KAAK;EACLC,WAAW;EACXC,IAAI;EACJC,OAAO;EACPC,WAAW,GAAG,KAAK;EACnBC,QAAQ,GAAG,KAAK;EAChBC;AACsB,CAAC,EAAE;EACzB,MAAMC,KAAK,GAAGb,QAAQ,CAAC,CAAC;EACxB,MAAMc,UAAU,GAAGJ,WAAW,GAAGG,KAAK,CAACE,MAAM,CAACC,QAAQ,GAAGH,KAAK,CAACE,MAAM,CAACE,IAAI;EAE1E,oBACEb,KAAA,CAACN,gBAAgB;IACfW,OAAO,EAAEA,OAAQ;IACjBE,QAAQ,EAAEA,QAAS;IACnBO,aAAa,EAAE,GAAI;IACnBN,MAAM,EAAEA,MAAO;IACfO,KAAK,EAAE,CAACC,MAAM,CAACC,IAAI,EAAEV,QAAQ,IAAIS,MAAM,CAACT,QAAQ,CAAE;IAAAW,QAAA,GAEjDd,IAAI,iBAAIN,IAAA,CAACN,IAAI;MAACuB,KAAK,EAAEC,MAAM,CAACG,WAAY;MAAAD,QAAA,EAAEd;IAAI,CAAO,CAAC,eACvDJ,KAAA,CAACR,IAAI;MAACuB,KAAK,EAAEC,MAAM,CAACI,WAAY;MAAAF,QAAA,gBAC9BpB,IAAA,CAACL,IAAI;QAACsB,KAAK,EAAE,CAACC,MAAM,CAACd,KAAK,EAAE;UAAEmB,KAAK,EAAEX;QAAW,CAAC,CAAE;QAAAQ,QAAA,EAAEhB;MAAK,CA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AACC,MAAM,CAACH,kBAAkB,EAAE;EAAEf;AAAK,CAAC,CAAC;;AAEzE;;AAEA,MAAMP,MAAM,GAAGrB,UAAU,CAAC+C,MAAM,CAAC;EAC/Bd,SAAS,EAAE;IACTe,YAAY,EAAE,EAAE;IAChBC,QAAQ,EAAE;EACZ,CAAC;EACDR,OAAO,EAAE;IACPS,MAAM,EAAE,CAAC;IACTC,UAAU,EAAE;EACd,CAAC;EACD7B,IAAI,EAAE;IACJ8B,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE,QAAQ;IACpBC,eAAe,EAAE,EAAE;IACnBC,iBAAiB,EAAE;EACrB,CAAC;EACD3C,QAAQ,EAAE;IACR4C,OAAO,EAAE;EACX,CAAC;EACDhC,WAAW,EAAE;IACXiC,WAAW,EAAE;EACf,CAAC;EACDhC,WAAW,EAAE;IACXiC,IAAI,EAAE;EACR,CAAC;EACDnD,KAAK,EAAE;IACLoD,QAAQ,EAAE;EACZ,CAAC;EACDnD,WAAW,EAAE;IACXmD,QAAQ,EAAE,EAAE;IACZC,SAAS,EAAE;EACb;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
export { useInteractionState } from "./useInteractionState.js";
|
|
3
|
+
export { useInteractionState, useInteractionStates } from "./useInteractionState.js";
|
|
4
4
|
export { useDelayedLoading } from "./useDelayedLoading.js";
|
|
5
5
|
export { useThrottledValue } from "./useThrottledValue.js";
|
|
6
|
+
export { usePressAnimation } from "./usePressAnimation.js";
|
|
6
7
|
export { mergeRefs } from "./mergeRefs.js";
|
|
7
8
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useInteractionState","useDelayedLoading","useThrottledValue","mergeRefs"],"sourceRoot":"../../../src","sources":["hooks/index.ts"],"mappings":";;AAAA,SAASA,mBAAmB,QAAQ,0BAAuB;
|
|
1
|
+
{"version":3,"names":["useInteractionState","useInteractionStates","useDelayedLoading","useThrottledValue","usePressAnimation","mergeRefs"],"sourceRoot":"../../../src","sources":["hooks/index.ts"],"mappings":";;AAAA,SAASA,mBAAmB,EAAEC,oBAAoB,QAAQ,0BAAuB;AACjF,SAASC,iBAAiB,QAAQ,wBAAqB;AACvD,SAASC,iBAAiB,QAAQ,wBAAqB;AACvD,SAASC,iBAAiB,QAAQ,wBAAqB;AACvD,SAASC,SAAS,QAAQ,gBAAa","ignoreList":[]}
|
|
@@ -15,4 +15,45 @@ export function useInteractionState() {
|
|
|
15
15
|
onOut
|
|
16
16
|
};
|
|
17
17
|
}
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Tracks multiple interaction states (hovered, focused, pressed) in one hook.
|
|
21
|
+
*
|
|
22
|
+
* Returns stable handler objects suitable for spreading onto Pressable-like components.
|
|
23
|
+
* On web, `hoverHandlers` can be spread as `onMouseEnter`/`onMouseLeave`.
|
|
24
|
+
*/
|
|
25
|
+
export function useInteractionStates() {
|
|
26
|
+
const {
|
|
27
|
+
state: hovered,
|
|
28
|
+
onIn: onHoverIn,
|
|
29
|
+
onOut: onHoverOut
|
|
30
|
+
} = useInteractionState();
|
|
31
|
+
const {
|
|
32
|
+
state: focused,
|
|
33
|
+
onIn: onFocus,
|
|
34
|
+
onOut: onBlur
|
|
35
|
+
} = useInteractionState();
|
|
36
|
+
const {
|
|
37
|
+
state: pressed,
|
|
38
|
+
onIn: onPressIn,
|
|
39
|
+
onOut: onPressOut
|
|
40
|
+
} = useInteractionState();
|
|
41
|
+
return {
|
|
42
|
+
hovered,
|
|
43
|
+
focused,
|
|
44
|
+
pressed,
|
|
45
|
+
hoverHandlers: {
|
|
46
|
+
onHoverIn,
|
|
47
|
+
onHoverOut
|
|
48
|
+
},
|
|
49
|
+
focusHandlers: {
|
|
50
|
+
onFocus,
|
|
51
|
+
onBlur
|
|
52
|
+
},
|
|
53
|
+
pressHandlers: {
|
|
54
|
+
onPressIn,
|
|
55
|
+
onPressOut
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
}
|
|
18
59
|
//# sourceMappingURL=useInteractionState.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useCallback","useState","useInteractionState","state","setState","onIn","onOut"],"sourceRoot":"../../../src","sources":["hooks/useInteractionState.ts"],"mappings":";;AAAA,SAASA,WAAW,EAAEC,QAAQ,QAAQ,OAAO;AAE7C,OAAO,SAASC,mBAAmBA,CAAA,EAAG;EACpC,MAAM,CAACC,KAAK,EAAEC,QAAQ,CAAC,GAAGH,QAAQ,CAAC,KAAK,CAAC;EAEzC,MAAMI,IAAI,GAAGL,WAAW,CAAC,MAAM;IAC7BI,QAAQ,CAAC,IAAI,CAAC;EAChB,CAAC,EAAE,EAAE,CAAC;EACN,MAAME,KAAK,GAAGN,WAAW,CAAC,MAAM;IAC9BI,QAAQ,CAAC,KAAK,CAAC;EACjB,CAAC,EAAE,EAAE,CAAC;EAEN,OAAO;IAAED,KAAK;IAAEE,IAAI;IAAEC;EAAM,CAAC;AAC/B","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["useCallback","useState","useInteractionState","state","setState","onIn","onOut","useInteractionStates","hovered","onHoverIn","onHoverOut","focused","onFocus","onBlur","pressed","onPressIn","onPressOut","hoverHandlers","focusHandlers","pressHandlers"],"sourceRoot":"../../../src","sources":["hooks/useInteractionState.ts"],"mappings":";;AAAA,SAASA,WAAW,EAAEC,QAAQ,QAAQ,OAAO;AAE7C,OAAO,SAASC,mBAAmBA,CAAA,EAAG;EACpC,MAAM,CAACC,KAAK,EAAEC,QAAQ,CAAC,GAAGH,QAAQ,CAAC,KAAK,CAAC;EAEzC,MAAMI,IAAI,GAAGL,WAAW,CAAC,MAAM;IAC7BI,QAAQ,CAAC,IAAI,CAAC;EAChB,CAAC,EAAE,EAAE,CAAC;EACN,MAAME,KAAK,GAAGN,WAAW,CAAC,MAAM;IAC9BI,QAAQ,CAAC,KAAK,CAAC;EACjB,CAAC,EAAE,EAAE,CAAC;EAEN,OAAO;IAAED,KAAK;IAAEE,IAAI;IAAEC;EAAM,CAAC;AAC/B;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,oBAAoBA,CAAA,EAAG;EACrC,MAAM;IAAEJ,KAAK,EAAEK,OAAO;IAAEH,IAAI,EAAEI,SAAS;IAAEH,KAAK,EAAEI;EAAW,CAAC,GAAGR,mBAAmB,CAAC,CAAC;EACpF,MAAM;IAAEC,KAAK,EAAEQ,OAAO;IAAEN,IAAI,EAAEO,OAAO;IAAEN,KAAK,EAAEO;EAAO,CAAC,GAAGX,mBAAmB,CAAC,CAAC;EAC9E,MAAM;IAAEC,KAAK,EAAEW,OAAO;IAAET,IAAI,EAAEU,SAAS;IAAET,KAAK,EAAEU;EAAW,CAAC,GAAGd,mBAAmB,CAAC,CAAC;EAEpF,OAAO;IACLM,OAAO;IACPG,OAAO;IACPG,OAAO;IACPG,aAAa,EAAE;MAAER,SAAS;MAAEC;IAAW,CAAU;IACjDQ,aAAa,EAAE;MAAEN,OAAO;MAAEC;IAAO,CAAU;IAC3CM,aAAa,EAAE;MAAEJ,SAAS;MAAEC;IAAW;EACzC,CAAC;AACH","ignoreList":[]}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { useCallback, useRef } from 'react';
|
|
4
|
+
import { Animated } from 'react-native';
|
|
5
|
+
import { animation } from "../styles/tokens.js";
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Hook that provides press-scale animation feedback.
|
|
9
|
+
*
|
|
10
|
+
* Returns an `Animated.Value` for the scale transform and press-in/press-out
|
|
11
|
+
* handlers that spring the value between 1 and the target scale.
|
|
12
|
+
*
|
|
13
|
+
* @param pressScale - Scale value when pressed (e.g. 0.97). Pass `undefined` to disable.
|
|
14
|
+
*/
|
|
15
|
+
export function usePressAnimation(pressScale = 0.97) {
|
|
16
|
+
const scaleAnim = useRef(new Animated.Value(1)).current;
|
|
17
|
+
const enabled = pressScale !== undefined;
|
|
18
|
+
const onPressIn = useCallback(() => {
|
|
19
|
+
if (!enabled) return;
|
|
20
|
+
Animated.spring(scaleAnim, {
|
|
21
|
+
toValue: pressScale,
|
|
22
|
+
useNativeDriver: true,
|
|
23
|
+
...animation.spring.snappy
|
|
24
|
+
}).start();
|
|
25
|
+
}, [scaleAnim, enabled, pressScale]);
|
|
26
|
+
const onPressOut = useCallback(() => {
|
|
27
|
+
if (!enabled) return;
|
|
28
|
+
Animated.spring(scaleAnim, {
|
|
29
|
+
toValue: 1,
|
|
30
|
+
useNativeDriver: true,
|
|
31
|
+
...animation.spring.gentle
|
|
32
|
+
}).start();
|
|
33
|
+
}, [scaleAnim, enabled]);
|
|
34
|
+
return {
|
|
35
|
+
scaleAnim,
|
|
36
|
+
onPressIn,
|
|
37
|
+
onPressOut,
|
|
38
|
+
enabled
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=usePressAnimation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useCallback","useRef","Animated","animation","usePressAnimation","pressScale","scaleAnim","Value","current","enabled","undefined","onPressIn","spring","toValue","useNativeDriver","snappy","start","onPressOut","gentle"],"sourceRoot":"../../../src","sources":["hooks/usePressAnimation.ts"],"mappings":";;AAAA,SAASA,WAAW,EAAEC,MAAM,QAAQ,OAAO;AAC3C,SAASC,QAAQ,QAAQ,cAAc;AAEvC,SAASC,SAAS,QAAQ,qBAAkB;;AAE5C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,iBAAiBA,CAACC,UAA8B,GAAG,IAAI,EAAE;EACvE,MAAMC,SAAS,GAAGL,MAAM,CAAC,IAAIC,QAAQ,CAACK,KAAK,CAAC,CAAC,CAAC,CAAC,CAACC,OAAO;EACvD,MAAMC,OAAO,GAAGJ,UAAU,KAAKK,SAAS;EAExC,MAAMC,SAAS,GAAGX,WAAW,CAAC,MAAM;IAClC,IAAI,CAACS,OAAO,EAAE;IACdP,QAAQ,CAACU,MAAM,CAACN,SAAS,EAAE;MACzBO,OAAO,EAAER,UAAW;MACpBS,eAAe,EAAE,IAAI;MACrB,GAAGX,SAAS,CAACS,MAAM,CAACG;IACtB,CAAC,CAAC,CAACC,KAAK,CAAC,CAAC;EACZ,CAAC,EAAE,CAACV,SAAS,EAAEG,OAAO,EAAEJ,UAAU,CAAC,CAAC;EAEpC,MAAMY,UAAU,GAAGjB,WAAW,CAAC,MAAM;IACnC,IAAI,CAACS,OAAO,EAAE;IACdP,QAAQ,CAACU,MAAM,CAACN,SAAS,EAAE;MACzBO,OAAO,EAAE,CAAC;MACVC,eAAe,EAAE,IAAI;MACrB,GAAGX,SAAS,CAACS,MAAM,CAACM;IACtB,CAAC,CAAC,CAACF,KAAK,CAAC,CAAC;EACZ,CAAC,EAAE,CAACV,SAAS,EAAEG,OAAO,CAAC,CAAC;EAExB,OAAO;IAAEH,SAAS;IAAEK,SAAS;IAAEM,UAAU;IAAER;EAAQ,CAAC;AACtD","ignoreList":[]}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import React from 'react';
|
|
3
|
+
import React, { memo } from 'react';
|
|
4
4
|
import { View } from 'react-native';
|
|
5
5
|
import { useTheme } from "../theme/use-theme.js";
|
|
6
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
-
|
|
7
|
+
const IconCircleComponent = function IconCircle({
|
|
8
8
|
icon: Icon,
|
|
9
9
|
size = 'xl',
|
|
10
10
|
style,
|
|
@@ -29,5 +29,7 @@ export function IconCircle({
|
|
|
29
29
|
}, iconStyle]
|
|
30
30
|
})
|
|
31
31
|
});
|
|
32
|
-
}
|
|
32
|
+
};
|
|
33
|
+
export const IconCircle = /*#__PURE__*/memo(IconCircleComponent);
|
|
34
|
+
IconCircle.displayName = 'IconCircle';
|
|
33
35
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","View","useTheme","jsx","_jsx","IconCircle","icon","Icon","size","style","iconStyle","colors","justifyContent","alignItems","borderRadius","width","height","backgroundColor","primarySubtle","children","color","primary"],"sourceRoot":"../../../src","sources":["icon-circle/index.tsx"],"mappings":";;AAAA,OAAOA,KAAK,
|
|
1
|
+
{"version":3,"names":["React","memo","View","useTheme","jsx","_jsx","IconCircleComponent","IconCircle","icon","Icon","size","style","iconStyle","colors","justifyContent","alignItems","borderRadius","width","height","backgroundColor","primarySubtle","children","color","primary","displayName"],"sourceRoot":"../../../src","sources":["icon-circle/index.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,IAAI,QAAQ,OAAO;AACnC,SAASC,IAAI,QAAwB,cAAc;AAEnD,SAASC,QAAQ,QAAQ,uBAAoB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAG9C,MAAMC,mBAAmB,GAAG,SAASC,UAAUA,CAAC;EAC9CC,IAAI,EAAEC,IAAI;EACVC,IAAI,GAAG,IAAI;EACXC,KAAK;EACLC;AAMF,CAAC,EAAE;EACD,MAAM;IAAEC;EAAO,CAAC,GAAGV,QAAQ,CAAC,CAAC;EAE7B,oBACEE,IAAA,CAACH,IAAI;IACHS,KAAK,EAAE,CACL;MACEG,cAAc,EAAE,QAAQ;MACxBC,UAAU,EAAE,QAAQ;MACpBC,YAAY,EAAE,GAAG;MACjBC,KAAK,EAAEP,IAAI,KAAK,IAAI,GAAG,EAAE,GAAG,EAAE;MAC9BQ,MAAM,EAAER,IAAI,KAAK,IAAI,GAAG,EAAE,GAAG,EAAE;MAC/BS,eAAe,EAAEN,MAAM,CAACO;IAC1B,CAAC,EACDT,KAAK,CACL;IAAAU,QAAA,eACFhB,IAAA,CAACI,IAAI;MAACC,IAAI,EAAEA,IAAK;MAACC,KAAK,EAAE,CAAC;QAAEW,KAAK,EAAET,MAAM,CAACU;MAAQ,CAAC,EAAEX,SAAS;IAAE,CAAE;EAAC,CAC/D,CAAC;AAEX,CAAC;AAED,OAAO,MAAML,UAAU,gBAAGN,IAAI,CAACK,mBAAmB,CAAC;AACnDC,UAAU,CAACiB,WAAW,GAAG,YAAY","ignoreList":[]}
|
|
@@ -4,4 +4,4 @@ import { createSinglePathSVG } from "./TEMPLATE.js";
|
|
|
4
4
|
export const Envelope_Open_Stroke2_Corner0_Rounded = createSinglePathSVG({
|
|
5
5
|
path: 'M4 4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v6.386c1.064-.002 2 .86 2 2.001V19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-6.613c0-1.142.936-2.003 2-2.001V4Zm2 6.946 6 2 6-2V4H6v6.946ZM9 8a1 1 0 0 1 1-1h4a1 1 0 1 1 0 2h-4a1 1 0 0 1-1-1Zm2.367 6.843L4 12.387V19h16v-6.613l-7.367 2.456a2 2 0 0 1-1.265 0Z'
|
|
6
6
|
});
|
|
7
|
-
//# sourceMappingURL=
|
|
7
|
+
//# sourceMappingURL=EnvelopeOpen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["createSinglePathSVG","Envelope_Open_Stroke2_Corner0_Rounded","path"],"sourceRoot":"../../../src","sources":["icons/EnvelopeOpen.tsx"],"mappings":";;AAAA,SAAQA,mBAAmB,QAAO,eAAY;AAE9C,OAAO,MAAMC,qCAAqC,GAAGD,mBAAmB,CAAC;EACvEE,IAAI,EAAE;AACR,CAAC,CAAC","ignoreList":[]}
|
|
@@ -42,7 +42,8 @@ export function createSinglePathSVG({
|
|
|
42
42
|
});
|
|
43
43
|
}
|
|
44
44
|
export function createMultiPathSVG({
|
|
45
|
-
paths
|
|
45
|
+
paths,
|
|
46
|
+
viewBox
|
|
46
47
|
}) {
|
|
47
48
|
return /*#__PURE__*/forwardRef(function IconImpl(props, ref) {
|
|
48
49
|
const {
|
|
@@ -56,7 +57,7 @@ export function createMultiPathSVG({
|
|
|
56
57
|
fill: "none",
|
|
57
58
|
...rest,
|
|
58
59
|
ref: ref,
|
|
59
|
-
viewBox:
|
|
60
|
+
viewBox: viewBox || '0 0 24 24',
|
|
60
61
|
width: size,
|
|
61
62
|
height: size,
|
|
62
63
|
style: [style],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["forwardRef","Svg","Path","useCommonSVGProps","jsx","_jsx","jsxs","_jsxs","createSinglePathSVG","path","viewBox","strokeWidth","strokeLinecap","strokeLinejoin","IconImpl","props","ref","fill","size","style","gradient","rest","hasStroke","width","height","children","stroke","fillRule","clipRule","d","createMultiPathSVG","paths","map","i"],"sourceRoot":"../../../src","sources":["icons/TEMPLATE.tsx"],"mappings":";;AAAA,SAASA,UAAU,QAAQ,OAAO;AAClC,OAAOC,GAAG,IAAIC,IAAI,QAAQ,kBAAkB;AAE5C,SAAqBC,iBAAiB,QAAQ,aAAU;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAEzD,OAAO,SAASC,mBAAmBA,CAAC;EAClCC,IAAI;EACJC,OAAO;EACPC,WAAW,GAAG,CAAC;EACfC,aAAa,GAAG,MAAM;EACtBC,cAAc,GAAG;AAOnB,CAAC,EAAE;EACD,oBAAOb,UAAU,CAAa,SAASc,QAAQA,CAACC,KAAK,EAAEC,GAAG,EAAE;IAC1D,MAAM;MAAEC,IAAI;MAAEC,IAAI;MAAEC,KAAK;MAAEC,QAAQ;MAAE,GAAGC;IAAK,CAAC,GAAGlB,iBAAiB,CAACY,KAAK,CAAC;IAEzE,MAAMO,SAAS,GAAGX,WAAW,GAAG,CAAC;IAEjC,oBACEJ,KAAA,CAACN,GAAG;MACFgB,IAAI,EAAC,MAAM;MAAA,GACPI,IAAI;MACRL,GAAG,EAAEA,GAAI;MACTN,OAAO,EAAEA,OAAO,IAAI,WAAY;MAChCa,KAAK,EAAEL,IAAK;MACZM,MAAM,EAAEN,IAAK;MACbC,KAAK,EAAE,CAACA,KAAK,CAAE;MAAAM,QAAA,GACdL,QAAQ,eACTf,IAAA,CAACH,IAAI;QACHe,IAAI,EAAEK,SAAS,GAAG,MAAM,GAAGL,IAAK;QAChCS,MAAM,EAAEJ,SAAS,GAAGL,IAAI,GAAG,MAAO;QAClCN,WAAW,EAAEA,WAAY;QACzBC,aAAa,EAAEA,aAAc;QAC7BC,cAAc,EAAEA,cAAe;QAC/Bc,QAAQ,EAAC,SAAS;QAClBC,QAAQ,EAAC,SAAS;QAClBC,CAAC,EAAEpB;MAAK,CACT,CAAC;IAAA,CACC,CAAC;EAEV,CAAC,CAAC;AACJ;AAEA,OAAO,SAASqB,kBAAkBA,CAAC;EAAEC;
|
|
1
|
+
{"version":3,"names":["forwardRef","Svg","Path","useCommonSVGProps","jsx","_jsx","jsxs","_jsxs","createSinglePathSVG","path","viewBox","strokeWidth","strokeLinecap","strokeLinejoin","IconImpl","props","ref","fill","size","style","gradient","rest","hasStroke","width","height","children","stroke","fillRule","clipRule","d","createMultiPathSVG","paths","map","i"],"sourceRoot":"../../../src","sources":["icons/TEMPLATE.tsx"],"mappings":";;AAAA,SAASA,UAAU,QAAQ,OAAO;AAClC,OAAOC,GAAG,IAAIC,IAAI,QAAQ,kBAAkB;AAE5C,SAAqBC,iBAAiB,QAAQ,aAAU;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAEzD,OAAO,SAASC,mBAAmBA,CAAC;EAClCC,IAAI;EACJC,OAAO;EACPC,WAAW,GAAG,CAAC;EACfC,aAAa,GAAG,MAAM;EACtBC,cAAc,GAAG;AAOnB,CAAC,EAAE;EACD,oBAAOb,UAAU,CAAa,SAASc,QAAQA,CAACC,KAAK,EAAEC,GAAG,EAAE;IAC1D,MAAM;MAAEC,IAAI;MAAEC,IAAI;MAAEC,KAAK;MAAEC,QAAQ;MAAE,GAAGC;IAAK,CAAC,GAAGlB,iBAAiB,CAACY,KAAK,CAAC;IAEzE,MAAMO,SAAS,GAAGX,WAAW,GAAG,CAAC;IAEjC,oBACEJ,KAAA,CAACN,GAAG;MAC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AAQ,EAAC,SAAS;QAClBC,CAAC,EAAEpB;MAAK,GAJHwB,CAKN,CACF,CAAC;IAAA,CACC,CAAC;EAEV,CAAC,CAAC;AACJ","ignoreList":[]}
|
|
@@ -4,11 +4,12 @@ import { forwardRef } from 'react';
|
|
|
4
4
|
import Svg, { Circle, Path } from 'react-native-svg';
|
|
5
5
|
import { useCommonSVGProps } from "./common.js";
|
|
6
6
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
|
-
export const VerifiedCheck = /*#__PURE__*/forwardRef(function
|
|
7
|
+
export const VerifiedCheck = /*#__PURE__*/forwardRef(function VerifiedCheckImpl(props, ref) {
|
|
8
8
|
const {
|
|
9
9
|
fill,
|
|
10
10
|
size,
|
|
11
11
|
style,
|
|
12
|
+
gradient,
|
|
12
13
|
...rest
|
|
13
14
|
} = useCommonSVGProps(props);
|
|
14
15
|
return /*#__PURE__*/_jsxs(Svg, {
|
|
@@ -19,7 +20,7 @@ export const VerifiedCheck = /*#__PURE__*/forwardRef(function LogoImpl(props, re
|
|
|
19
20
|
width: size,
|
|
20
21
|
height: size,
|
|
21
22
|
style: [style],
|
|
22
|
-
children: [/*#__PURE__*/_jsx(Circle, {
|
|
23
|
+
children: [gradient, /*#__PURE__*/_jsx(Circle, {
|
|
23
24
|
cx: "12",
|
|
24
25
|
cy: "12",
|
|
25
26
|
r: "11.5",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["forwardRef","Svg","Circle","Path","useCommonSVGProps","jsx","_jsx","jsxs","_jsxs","VerifiedCheck","
|
|
1
|
+
{"version":3,"names":["forwardRef","Svg","Circle","Path","useCommonSVGProps","jsx","_jsx","jsxs","_jsxs","VerifiedCheck","VerifiedCheckImpl","props","ref","fill","size","style","gradient","rest","viewBox","width","height","children","cx","cy","r","fillRule","clipRule","d"],"sourceRoot":"../../../src","sources":["icons/VerifiedCheck.tsx"],"mappings":";;AAAA,SAAQA,UAAU,QAAO,OAAO;AAChC,OAAOC,GAAG,IAAGC,MAAM,EAAEC,IAAI,QAAO,kBAAkB;AAElD,SAAoBC,iBAAiB,QAAO,aAAU;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAEtD,OAAO,MAAMC,aAAa,gBAAGT,UAAU,CACrC,SAASU,iBAAiBA,CAACC,KAAK,EAAEC,GAAG,EAAE;EACrC,MAAM;IAACC,IAAI;IAAEC,IAAI;IAAEC,KAAK;IAAEC,QAAQ;IAAE,GAAGC;EAAI,CAAC,GAAGb,iBAAiB,CAACO,KAAK,CAAC;EAEvE,oBACEH,KAAA,CAACP,GAAG;IACFY,IAAI,EAAC,MAAM;IAAA,GACPI,IAAI;IACRL,GAAG,EAAEA,GAAI;IACTM,OAAO,EAAC,WAAW;IACnBC,KAAK,EAAEL,IAAK;IACZM,MAAM,EAAEN,IAAK;IACbC,KAAK,EAAE,CAACA,KAAK,CAAE;IAAAM,QAAA,GACdL,QAAQ,eACTV,IAAA,CAACJ,MAAM;MAACoB,EAAE,EAAC,IAAI;MAACC,EAAE,EAAC,IAAI;MAACC,CAAC,EAAC,MAAM;MAACX,IAAI,EAAEA;IAAK,CAAE,CAAC,eAC/CP,IAAA,CAACH,IAAI;MACHU,IAAI,EAAC,MAAM;MACXY,QAAQ,EAAC,SAAS;MAClBC,QAAQ,EAAC,SAAS;MAClBC,CAAC,EAAC;IAA0K,CAC7K,CAAC;EAAA,CACC,CAAC;AAEV,CACF,CAAC","ignoreList":[]}
|
|
@@ -4,11 +4,12 @@ import { forwardRef } from 'react';
|
|
|
4
4
|
import Svg, { Path } from 'react-native-svg';
|
|
5
5
|
import { useCommonSVGProps } from "./common.js";
|
|
6
6
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
|
-
export const VerifierCheck = /*#__PURE__*/forwardRef(function
|
|
7
|
+
export const VerifierCheck = /*#__PURE__*/forwardRef(function VerifierCheckImpl(props, ref) {
|
|
8
8
|
const {
|
|
9
9
|
fill,
|
|
10
10
|
size,
|
|
11
11
|
style,
|
|
12
|
+
gradient,
|
|
12
13
|
...rest
|
|
13
14
|
} = useCommonSVGProps(props);
|
|
14
15
|
return /*#__PURE__*/_jsxs(Svg, {
|
|
@@ -19,7 +20,7 @@ export const VerifierCheck = /*#__PURE__*/forwardRef(function LogoImpl(props, re
|
|
|
19
20
|
width: size,
|
|
20
21
|
height: size,
|
|
21
22
|
style: [style],
|
|
22
|
-
children: [/*#__PURE__*/_jsx(Path, {
|
|
23
|
+
children: [gradient, /*#__PURE__*/_jsx(Path, {
|
|
23
24
|
fill: fill,
|
|
24
25
|
fillRule: "evenodd",
|
|
25
26
|
clipRule: "evenodd",
|