@idealyst/mcp-server 1.2.122 → 1.2.124
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/{chunk-RVMPULO4.js → chunk-EALTHXKT.js} +691 -20
- package/dist/chunk-EALTHXKT.js.map +1 -0
- package/dist/index.cjs +693 -20
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/tools/index.cjs +690 -19
- package/dist/tools/index.cjs.map +1 -1
- package/dist/tools/index.js +1 -1
- package/package.json +5 -5
- package/dist/chunk-RVMPULO4.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -6040,7 +6040,9 @@ import { Button, Icon, List, Badge } from '@idealyst/components';
|
|
|
6040
6040
|
<Icon
|
|
6041
6041
|
name="home" // Icon name (required) \u2014 type: IconName
|
|
6042
6042
|
size="xs|sm|md|lg|xl|number" // Icon size
|
|
6043
|
-
color="primary|secondary|..." //
|
|
6043
|
+
color="primary|secondary|..." // Palette color (Color type)
|
|
6044
|
+
// OR textColor="primary|secondary|tertiary|inverse" \u2014 Text color type
|
|
6045
|
+
// NEVER use both color and textColor \u2014 they are mutually exclusive (discriminated union)
|
|
6044
6046
|
/>
|
|
6045
6047
|
\`\`\`
|
|
6046
6048
|
|
|
@@ -8716,14 +8718,16 @@ import { Outlet, useNavigator } from '@idealyst/navigation';
|
|
|
8716
8718
|
import type { StackLayoutProps } from '@idealyst/navigation';
|
|
8717
8719
|
import { View, Text, Pressable, Icon, Divider } from '@idealyst/components';
|
|
8718
8720
|
import type { IconName } from '@idealyst/components';
|
|
8721
|
+
import { useTheme } from '@idealyst/theme';
|
|
8719
8722
|
|
|
8720
8723
|
export function AppLayout({ routes, currentPath, options }: StackLayoutProps) {
|
|
8721
8724
|
const { navigate } = useNavigator();
|
|
8725
|
+
const theme = useTheme();
|
|
8722
8726
|
|
|
8723
8727
|
return (
|
|
8724
8728
|
<View style={{ flex: 1, flexDirection: 'row' }}>
|
|
8725
8729
|
{/* Sidebar */}
|
|
8726
|
-
<View style={{ width: 260, borderRightWidth: 1, borderRightColor:
|
|
8730
|
+
<View style={{ width: 260, borderRightWidth: 1, borderRightColor: theme.colors.border.primary, backgroundColor: theme.colors.surface.secondary }}>
|
|
8727
8731
|
{/* Logo / App name */}
|
|
8728
8732
|
<View style={{ height: 56, justifyContent: 'center', paddingHorizontal: 16 }}>
|
|
8729
8733
|
<Text typography="h6" weight="bold">{options?.headerTitle || 'My App'}</Text>
|
|
@@ -8748,18 +8752,20 @@ export function AppLayout({ routes, currentPath, options }: StackLayoutProps) {
|
|
|
8748
8752
|
paddingVertical: 10,
|
|
8749
8753
|
paddingHorizontal: 12,
|
|
8750
8754
|
borderRadius: 8,
|
|
8751
|
-
backgroundColor: isActive ?
|
|
8755
|
+
backgroundColor: isActive ? theme.intents.primary.light : 'transparent',
|
|
8752
8756
|
}}
|
|
8753
8757
|
>
|
|
8758
|
+
{/* Icon uses EITHER color OR textColor \u2014 never both */}
|
|
8754
8759
|
<Icon
|
|
8755
8760
|
name={(route.options?.icon as IconName) || 'circle-outline'}
|
|
8756
8761
|
size="sm"
|
|
8757
|
-
color={isActive ? '
|
|
8762
|
+
color={isActive ? 'primary' : undefined}
|
|
8758
8763
|
/>
|
|
8759
8764
|
<Text
|
|
8760
8765
|
typography="body2"
|
|
8761
|
-
weight={isActive ? 'semibold' : '
|
|
8762
|
-
|
|
8766
|
+
weight={isActive ? 'semibold' : 'normal'}
|
|
8767
|
+
color={isActive ? undefined : 'secondary'}
|
|
8768
|
+
style={isActive ? { color: theme.intents.primary.primary } : undefined}
|
|
8763
8769
|
>
|
|
8764
8770
|
{route.options?.title || route.path}
|
|
8765
8771
|
</Text>
|
|
@@ -8917,7 +8923,7 @@ export function TabLayout({ routes, currentPath }: TabLayoutProps) {
|
|
|
8917
8923
|
{opts?.tabBarLabel && (
|
|
8918
8924
|
<Text
|
|
8919
8925
|
typography="body2"
|
|
8920
|
-
weight={isActive ? 'semibold' : '
|
|
8926
|
+
weight={isActive ? 'semibold' : 'normal'}
|
|
8921
8927
|
style={{ color: isActive ? '#007AFF' : '#8E8E93' }}
|
|
8922
8928
|
>
|
|
8923
8929
|
{opts.tabBarLabel}
|
|
@@ -9132,7 +9138,7 @@ export function DashboardLayout({ routes, currentPath, options }: StackLayoutPro
|
|
|
9132
9138
|
{!collapsed && (
|
|
9133
9139
|
<Text
|
|
9134
9140
|
typography="body2"
|
|
9135
|
-
weight={isActive ? 'semibold' : '
|
|
9141
|
+
weight={isActive ? 'semibold' : 'normal'}
|
|
9136
9142
|
style={{ color: isActive ? '#007AFF' : '#333' }}
|
|
9137
9143
|
>
|
|
9138
9144
|
{route.options?.title || route.path}
|
|
@@ -11460,6 +11466,26 @@ var componentMetadata = {
|
|
|
11460
11466
|
"Configure safe areas appropriately"
|
|
11461
11467
|
]
|
|
11462
11468
|
},
|
|
11469
|
+
ScrollView: {
|
|
11470
|
+
category: "layout",
|
|
11471
|
+
description: "Scrollable container for long or overflowing content. Replaces the deprecated `<View scrollable>` pattern. Supports vertical, horizontal, and bidirectional scrolling with scroll event callbacks and imperative scroll controls via ref.",
|
|
11472
|
+
features: [
|
|
11473
|
+
"direction prop: 'vertical' (default) | 'horizontal' | 'both'",
|
|
11474
|
+
"Scroll callbacks: onScroll, onScrollBegin, onScrollEnd, onEndReached (for infinite scroll)",
|
|
11475
|
+
"Imperative ref: scrollTo, scrollToEnd, scrollToStart, getScrollPosition",
|
|
11476
|
+
"Same spacing shorthand props as View: padding, paddingVertical, paddingHorizontal, gap, margin, etc.",
|
|
11477
|
+
"Background, radius, and border variants (same as View)",
|
|
11478
|
+
"showsIndicator, pagingEnabled, bounces, scrollEnabled, keyboardDismissMode props",
|
|
11479
|
+
"contentContainerStyle for styling the inner content wrapper"
|
|
11480
|
+
],
|
|
11481
|
+
bestPractices: [
|
|
11482
|
+
"Use ScrollView for scrollable content instead of <View scrollable> (deprecated)",
|
|
11483
|
+
"Use onEndReached + onEndReachedThreshold for infinite scroll / load-more patterns",
|
|
11484
|
+
'Use direction="horizontal" for horizontal carousels or galleries',
|
|
11485
|
+
"Use ref with scrollTo/scrollToEnd for programmatic scroll control",
|
|
11486
|
+
"Wrap in a flex:1 container or give explicit height \u2014 ScrollView needs bounded parent height"
|
|
11487
|
+
]
|
|
11488
|
+
},
|
|
11463
11489
|
Select: {
|
|
11464
11490
|
category: "form",
|
|
11465
11491
|
description: "Dropdown selection component for choosing from a list of options",
|
|
@@ -11699,7 +11725,10 @@ var componentAliases = {
|
|
|
11699
11725
|
photo: "Image",
|
|
11700
11726
|
picture: "Image",
|
|
11701
11727
|
img: "Image",
|
|
11702
|
-
thumbnail: "Image"
|
|
11728
|
+
thumbnail: "Image",
|
|
11729
|
+
scroll: "ScrollView",
|
|
11730
|
+
scrollview: "ScrollView",
|
|
11731
|
+
scrollable: "ScrollView"
|
|
11703
11732
|
};
|
|
11704
11733
|
function findComponentName(componentName) {
|
|
11705
11734
|
if (componentMetadata[componentName]) {
|
|
@@ -20888,7 +20917,7 @@ These are mistakes agents make repeatedly. Each one causes TypeScript compilatio
|
|
|
20888
20917
|
1. **Text** does NOT have \`variant\`, \`intent\`, \`size\`, \`fontSize\`, \`numberOfLines\`, \`ellipsizeMode\`, \`selectable\`, \`textColor\`, or \`onPress\`. Use \`typography\` (\`h1\`\u2013\`h6\`, \`subtitle1\`, \`subtitle2\`, \`body1\`, \`body2\`, \`caption\`), \`weight\` (\`light\`, \`normal\`, \`medium\`, \`semibold\`, \`bold\`), and \`color\` (\`primary\`, \`secondary\`, \`tertiary\`, \`inverse\`). **\`textColor\` is an Icon-only prop** \u2014 Text uses \`color\`. For pressable text, wrap in \`Pressable\` or use \`Button type="text"\`.
|
|
20889
20918
|
2. **TextInput** does NOT have \`label\`, \`error\`, \`editable\`, \`autoComplete\`, \`keyboardType\`, or \`onChange\`. Compose labels/errors with \`Text\` + \`View\`. Use \`onChangeText\`, \`inputMode\` (\`'text' | 'email' | 'password' | 'number'\` \u2014 NOT \`'decimal'\`, \`'numeric'\`, \`'tel'\`, \`'url'\`), and \`textContentType\`. **TextArea has a DIFFERENT API** \u2014 it DOES support \`label\`, \`error\`, \`rows\`, \`onChange\`, but does NOT have \`onBlur\` or \`onChangeText\`. Always look up TextArea types separately.
|
|
20890
20919
|
3. **Button/IconButton** \`type\` is \`'contained' | 'outlined' | 'text'\` \u2014 NOT \`'ghost'\`, \`'solid'\`, \`'default'\`. Button has \`leftIcon\` and \`rightIcon\` \u2014 NOT \`icon\`.
|
|
20891
|
-
4. **View** does NOT have \`direction\`, \`align\`, or \`onPress\` props. For touch handling, wrap content in \`Pressable\` from \`@idealyst/components\` (NOT from \`react-native\`): \`<Pressable onPress={handlePress}><View>...</View></Pressable>\`. For horizontal layout use \`style={{ flexDirection: 'row' }}\`. View spacing shorthand props (all accept Size: \`xs\`|\`sm\`|\`md\`|\`lg\`|\`xl\`): \`padding\`, \`paddingVertical\`, \`paddingHorizontal\`, \`margin\`, \`marginVertical\`, \`marginHorizontal\`, \`gap\`/\`spacing\`. Do NOT use \`paddingTop\`, \`paddingBottom\`, \`paddingLeft\`, \`paddingRight\`, \`marginTop\`, \`marginBottom\`, \`marginLeft\`, \`marginRight\` as shorthand props \u2014 they do NOT exist and will cause TS2353. For single-side spacing, use \`style={{ paddingTop: 16 }}\`. Other View props: \`background\`, \`radius\`, \`border
|
|
20920
|
+
4. **View** does NOT have \`direction\`, \`align\`, \`flex\`, or \`onPress\` props. \`flex={1}\` is NOT a shorthand \u2014 use \`style={{ flex: 1 }}\`. For touch handling, wrap content in \`Pressable\` from \`@idealyst/components\` (NOT from \`react-native\`): \`<Pressable onPress={handlePress}><View>...</View></Pressable>\`. For horizontal layout use \`style={{ flexDirection: 'row' }}\`. View spacing shorthand props (all accept Size: \`xs\`|\`sm\`|\`md\`|\`lg\`|\`xl\`): \`padding\`, \`paddingVertical\`, \`paddingHorizontal\`, \`margin\`, \`marginVertical\`, \`marginHorizontal\`, \`gap\`/\`spacing\`. Do NOT use \`paddingTop\`, \`paddingBottom\`, \`paddingLeft\`, \`paddingRight\`, \`marginTop\`, \`marginBottom\`, \`marginLeft\`, \`marginRight\` as shorthand props \u2014 they do NOT exist and will cause TS2353. For single-side spacing, use \`style={{ paddingTop: 16 }}\`. Other View props: \`background\`, \`radius\`, \`border\`. \`border\` is \`'none' | 'thin' | 'thick'\` \u2014 NOT \`'outline'\`, \`'solid'\`. **For scrollable content, use \`<ScrollView>\` instead of \`<View scrollable>\`** (\`scrollable\` prop is deprecated).
|
|
20892
20921
|
5. **Badge** \`type\` is \`'filled' | 'outlined' | 'dot'\` \u2014 NOT \`'soft'\`, \`'subtle'\`, \`'solid'\`. **Intent type narrowing (CRITICAL):** TS widens string literals in objects/arrays to \`string\`, which fails \`intent\` props. Rules: (a) Simple ternaries in JSX work fine: \`<Badge intent={cond ? 'success' : 'danger'}>\`. (b) **Do NOT use \`as const\` on ternary expressions** \u2014 \`(cond ? 'a' : 'b') as const\` causes TS1355. (c) **Arrays/objects with intent values MUST use \`as const\`**: \`const items = [{ intent: 'success' as const, label: 'OK' }]\` or \`const items = [{ intent: 'success', label: 'OK' }] as const\`. Without \`as const\`, \`item.intent\` becomes \`string\` which fails. (d) For computed values, use typed variable: \`const intent: Intent = ...;\` (import Intent from @idealyst/theme). This applies to ALL components with intent/type props.
|
|
20893
20922
|
6. **Avatar** uses \`src\` for image URL, \`fallback\` for initials \u2014 NOT \`name\`, \`initials\`, \`label\`. Shape: \`'circle' | 'square'\`.
|
|
20894
20923
|
7. **Link** requires a \`to\` prop (path string) \u2014 it's a navigation link, NOT pressable text.
|
|
@@ -20897,6 +20926,7 @@ These are mistakes agents make repeatedly. Each one causes TypeScript compilatio
|
|
|
20897
20926
|
10. The component is **TextInput**, NOT \`Input\`.
|
|
20898
20927
|
11. **Card** is a simple container \u2014 there are NO compound components like \`Card.Content\`, \`Card.Header\`, \`Card.Body\`, \`Card.Footer\`, \`Card.Title\`. Just put children directly inside \`<Card>...</Card>\`. **Card does NOT have \`border\`, \`scrollable\`, or \`backgroundColor\` props** (those are View-only). Card styling props: \`type\` (\`'default'|'outlined'|'elevated'|'filled'\`), \`radius\`, \`intent\`, \`background\`, plus spacing (\`padding\`, \`margin\`, \`gap\`). For borders use \`type="outlined"\`.
|
|
20899
20928
|
12. **Switch** uses \`checked\` and \`onChange\` \u2014 NOT \`value\` and \`onValueChange\` (React Native convention). Also has \`label\`, \`labelPosition\`, \`disabled\`.
|
|
20929
|
+
13. **Icon color props are mutually exclusive** \u2014 \`IconProps\` is a discriminated union: use EITHER \`color\` (palette: \`'primary'\`, \`'blue.500'\`) OR \`textColor\` (\`'primary'\`, \`'secondary'\`) \u2014 NEVER both. Passing both (even conditionally like \`color={cond ? x : undefined} textColor={cond ? undefined : y}\`) causes TS2322 because TypeScript cannot resolve the union. Instead: \`<Icon name="home" color={isActive ? 'primary' : undefined} />\` or use separate JSX branches.
|
|
20900
20930
|
|
|
20901
20931
|
### Navigation
|
|
20902
20932
|
11. **NavigatorProvider** takes a \`route\` prop (SINGULAR) \u2014 NOT \`routes\`: \`<NavigatorProvider route={routeConfig} />\`. There is NO \`Router\` export.
|
|
@@ -20906,7 +20936,7 @@ These are mistakes agents make repeatedly. Each one causes TypeScript compilatio
|
|
|
20906
20936
|
15. \`useParams()\` does NOT accept generic type arguments. It returns \`Record<string, string | undefined>\`. Do NOT write \`useParams<{ id: string }>()\` \u2014 that causes TS2558. Always guard for undefined: \`const id = params.id; if (!id) return null;\`.
|
|
20907
20937
|
|
|
20908
20938
|
### Imports & Styling
|
|
20909
|
-
16. **Never** import from \`react-native\` \u2014 no \`TouchableOpacity\`, \`FlatList\`, \`ScrollView\`, \`Animated\`, \`Dimensions\`, \`Linking\`, \`Platform\`. Idealyst provides cross-platform alternatives for all of these (e.g., \`openExternalLinks\` on Markdown, \`Pressable\` from \`@idealyst/components\`).
|
|
20939
|
+
16. **Never** import from \`react-native\` \u2014 no \`TouchableOpacity\`, \`FlatList\`, \`ScrollView\`, \`Animated\`, \`Dimensions\`, \`Linking\`, \`Platform\`. Idealyst provides cross-platform alternatives for all of these (e.g., \`openExternalLinks\` on Markdown, \`Pressable\` from \`@idealyst/components\`). **For scrollable content, use \`<ScrollView>\` from \`@idealyst/components\`** (NOT \`<View scrollable>\` which is deprecated). \`ScrollView\` supports \`direction\` (\`'vertical' | 'horizontal' | 'both'\`), scroll callbacks (\`onScroll\`, \`onScrollBegin\`, \`onScrollEnd\`, \`onEndReached\`), and imperative controls via ref (\`scrollTo\`, \`scrollToEnd\`, \`scrollToStart\`). It also accepts the same spacing shorthand props as View (\`padding\`, \`gap\`, \`margin\`, etc.).
|
|
20910
20940
|
17. **Never** import from \`react-native-unistyles\` \u2014 use \`@idealyst/theme\` (\`configureThemes\`, \`ThemeSettings\`, \`useTheme\`).
|
|
20911
20941
|
18. **useTheme()** returns the Theme object **directly** (NOT wrapped): \`const theme = useTheme();\`. Do NOT destructure: \`const { theme } = useTheme()\` \u2014 causes TS2339.
|
|
20912
20942
|
19. **Spacing & Layout**: Use component shorthand props for spacing \u2014 NOT \`theme.spacing\` (which does NOT exist). The correct patterns:
|
|
@@ -28429,7 +28459,7 @@ var import_url = require("url");
|
|
|
28429
28459
|
// src/generated/types.json
|
|
28430
28460
|
var types_default = {
|
|
28431
28461
|
version: "1.0.93",
|
|
28432
|
-
extractedAt: "2026-
|
|
28462
|
+
extractedAt: "2026-03-11T20:52:45.143Z",
|
|
28433
28463
|
components: {
|
|
28434
28464
|
Accordion: {
|
|
28435
28465
|
name: "Accordion",
|
|
@@ -32700,6 +32730,12 @@ var types_default = {
|
|
|
32700
32730
|
required: false,
|
|
32701
32731
|
description: "Whether to avoid the keyboard on native platforms (iOS/Android).\nWhen enabled, content will shift up when the keyboard appears."
|
|
32702
32732
|
},
|
|
32733
|
+
{
|
|
32734
|
+
name: "keyboardAvoidingOffset",
|
|
32735
|
+
type: "number | undefined",
|
|
32736
|
+
required: false,
|
|
32737
|
+
description: "Additional offset to subtract from the keyboard height when avoiding the keyboard.\nThe Screen automatically accounts for the tab bar height when inside a tab navigator,\nbut this prop can be used for other fixed UI elements that occupy space at the bottom."
|
|
32738
|
+
},
|
|
32703
32739
|
{
|
|
32704
32740
|
name: "onLayout",
|
|
32705
32741
|
type: '((event: import("/home/nicho/Development/idealyst-framework/packages/components/src/hooks/useWebLayout/types").LayoutChangeEvent) => void) | undefined',
|
|
@@ -32707,7 +32743,7 @@ var types_default = {
|
|
|
32707
32743
|
description: "Called when the layout of the screen changes.\nProvides the new width, height, x, and y coordinates."
|
|
32708
32744
|
}
|
|
32709
32745
|
],
|
|
32710
|
-
typeDefinition: "export interface ScreenProps extends ContainerStyleProps {\n /**\n * The content to display inside the screen\n */\n children?: ReactNode;\n\n /**\n * Background variant - controls the background color\n */\n background?: Surface | 'transparent';\n\n /**\n * Safe area padding for all edges (lower precedence).\n * Individual edge props (safeAreaTop, etc.) override this when set.\n */\n safeArea?: boolean;\n\n /**\n * Safe area padding for the top edge.\n * Overrides safeArea for top when explicitly set.\n */\n safeAreaTop?: boolean;\n\n /**\n * Safe area padding for the bottom edge.\n * Overrides safeArea for bottom when explicitly set.\n */\n safeAreaBottom?: boolean;\n\n /**\n * Safe area padding for the left edge.\n * Overrides safeArea for left when explicitly set.\n */\n safeAreaLeft?: boolean;\n\n /**\n * Safe area padding for the right edge.\n * Overrides safeArea for right when explicitly set.\n */\n safeAreaRight?: boolean;\n\n /**\n * Content inset padding for scrollable content (mobile only)\n * Adds padding to the scroll view's content container\n * Useful for adding safe area insets or additional spacing\n */\n contentInset?: {\n top?: number;\n bottom?: number;\n left?: number;\n right?: number;\n };\n\n /**\n * Additional styles (platform-specific)\n */\n style?: StyleProp<ViewStyle>;\n\n /**\n * Test ID for testing\n */\n testID?: string;\n\n /**\n * Scrollable content\n */\n scrollable?: boolean;\n\n /**\n * Whether to avoid the keyboard on native platforms (iOS/Android).\n * When enabled, content will shift up when the keyboard appears.\n * @default true\n * @platform native\n */\n avoidKeyboard?: boolean;\n\n /**\n * Called when the layout of the screen changes.\n * Provides the new width, height, x, and y coordinates.\n */\n onLayout?: (event: LayoutChangeEvent) => void;\n}",
|
|
32746
|
+
typeDefinition: "export interface ScreenProps extends ContainerStyleProps {\n /**\n * The content to display inside the screen\n */\n children?: ReactNode;\n\n /**\n * Background variant - controls the background color\n */\n background?: Surface | 'transparent';\n\n /**\n * Safe area padding for all edges (lower precedence).\n * Individual edge props (safeAreaTop, etc.) override this when set.\n */\n safeArea?: boolean;\n\n /**\n * Safe area padding for the top edge.\n * Overrides safeArea for top when explicitly set.\n */\n safeAreaTop?: boolean;\n\n /**\n * Safe area padding for the bottom edge.\n * Overrides safeArea for bottom when explicitly set.\n */\n safeAreaBottom?: boolean;\n\n /**\n * Safe area padding for the left edge.\n * Overrides safeArea for left when explicitly set.\n */\n safeAreaLeft?: boolean;\n\n /**\n * Safe area padding for the right edge.\n * Overrides safeArea for right when explicitly set.\n */\n safeAreaRight?: boolean;\n\n /**\n * Content inset padding for scrollable content (mobile only)\n * Adds padding to the scroll view's content container\n * Useful for adding safe area insets or additional spacing\n */\n contentInset?: {\n top?: number;\n bottom?: number;\n left?: number;\n right?: number;\n };\n\n /**\n * Additional styles (platform-specific)\n */\n style?: StyleProp<ViewStyle>;\n\n /**\n * Test ID for testing\n */\n testID?: string;\n\n /**\n * Scrollable content\n */\n scrollable?: boolean;\n\n /**\n * Whether to avoid the keyboard on native platforms (iOS/Android).\n * When enabled, content will shift up when the keyboard appears.\n * @default true\n * @platform native\n */\n avoidKeyboard?: boolean;\n\n /**\n * Additional offset to subtract from the keyboard height when avoiding the keyboard.\n * The Screen automatically accounts for the tab bar height when inside a tab navigator,\n * but this prop can be used for other fixed UI elements that occupy space at the bottom.\n * @default 0\n * @platform native\n */\n keyboardAvoidingOffset?: number;\n\n /**\n * Called when the layout of the screen changes.\n * Provides the new width, height, x, and y coordinates.\n */\n onLayout?: (event: LayoutChangeEvent) => void;\n}",
|
|
32711
32747
|
relatedTypes: {},
|
|
32712
32748
|
registry: {
|
|
32713
32749
|
name: "Screen",
|
|
@@ -32796,6 +32832,13 @@ var types_default = {
|
|
|
32796
32832
|
description: "Whether to avoid the keyboard on native platforms (iOS/Android).\nWhen enabled, content will shift up when the keyboard appears.",
|
|
32797
32833
|
required: false
|
|
32798
32834
|
},
|
|
32835
|
+
keyboardAvoidingOffset: {
|
|
32836
|
+
name: "keyboardAvoidingOffset",
|
|
32837
|
+
type: "number | undefined",
|
|
32838
|
+
default: 0,
|
|
32839
|
+
description: "Additional offset to subtract from the keyboard height when avoiding the keyboard.\nThe Screen automatically accounts for the tab bar height when inside a tab navigator,\nbut this prop can be used for other fixed UI elements that occupy space at the bottom.",
|
|
32840
|
+
required: false
|
|
32841
|
+
},
|
|
32799
32842
|
id: {
|
|
32800
32843
|
name: "id",
|
|
32801
32844
|
type: "string | undefined",
|
|
@@ -32858,6 +32901,384 @@ var types_default = {
|
|
|
32858
32901
|
}
|
|
32859
32902
|
}
|
|
32860
32903
|
},
|
|
32904
|
+
ScrollView: {
|
|
32905
|
+
name: "ScrollView",
|
|
32906
|
+
propsInterface: "ScrollViewProps",
|
|
32907
|
+
props: [
|
|
32908
|
+
{
|
|
32909
|
+
name: "children",
|
|
32910
|
+
type: "React.ReactNode",
|
|
32911
|
+
required: false
|
|
32912
|
+
},
|
|
32913
|
+
{
|
|
32914
|
+
name: "direction",
|
|
32915
|
+
type: 'import("/home/nicho/Development/idealyst-framework/packages/components/src/ScrollView/types").ScrollViewDirection | undefined',
|
|
32916
|
+
required: false,
|
|
32917
|
+
description: "Scroll direction. Defaults to 'vertical'."
|
|
32918
|
+
},
|
|
32919
|
+
{
|
|
32920
|
+
name: "background",
|
|
32921
|
+
type: "string | undefined",
|
|
32922
|
+
required: false,
|
|
32923
|
+
description: "Background variant"
|
|
32924
|
+
},
|
|
32925
|
+
{
|
|
32926
|
+
name: "radius",
|
|
32927
|
+
type: "string | undefined",
|
|
32928
|
+
required: false,
|
|
32929
|
+
description: "Border radius variant"
|
|
32930
|
+
},
|
|
32931
|
+
{
|
|
32932
|
+
name: "border",
|
|
32933
|
+
type: 'import("/home/nicho/Development/idealyst-framework/packages/components/src/ScrollView/types").ScrollViewBorderVariant | undefined',
|
|
32934
|
+
required: false,
|
|
32935
|
+
description: "Border variant"
|
|
32936
|
+
},
|
|
32937
|
+
{
|
|
32938
|
+
name: "backgroundColor",
|
|
32939
|
+
type: "string | undefined",
|
|
32940
|
+
required: false,
|
|
32941
|
+
description: "Custom background color (overrides background variant)"
|
|
32942
|
+
},
|
|
32943
|
+
{
|
|
32944
|
+
name: "borderRadius",
|
|
32945
|
+
type: "number | undefined",
|
|
32946
|
+
required: false,
|
|
32947
|
+
description: "Custom border radius (overrides radius variant)"
|
|
32948
|
+
},
|
|
32949
|
+
{
|
|
32950
|
+
name: "borderWidth",
|
|
32951
|
+
type: "number | undefined",
|
|
32952
|
+
required: false,
|
|
32953
|
+
description: "Custom border width (overrides border variant)"
|
|
32954
|
+
},
|
|
32955
|
+
{
|
|
32956
|
+
name: "borderColor",
|
|
32957
|
+
type: "string | undefined",
|
|
32958
|
+
required: false,
|
|
32959
|
+
description: "Custom border color"
|
|
32960
|
+
},
|
|
32961
|
+
{
|
|
32962
|
+
name: "style",
|
|
32963
|
+
type: 'import("/home/nicho/Development/idealyst-framework/packages/theme/node_modules/react-native/Libraries/StyleSheet/StyleSheet").StyleProp<import("/home/nicho/Development/idealyst-framework/packages/theme/node_modules/react-native/Libraries/StyleSheet/StyleSheetTypes").ViewStyle>',
|
|
32964
|
+
required: false,
|
|
32965
|
+
description: "Additional styles"
|
|
32966
|
+
},
|
|
32967
|
+
{
|
|
32968
|
+
name: "contentContainerStyle",
|
|
32969
|
+
type: 'import("/home/nicho/Development/idealyst-framework/packages/theme/node_modules/react-native/Libraries/StyleSheet/StyleSheet").StyleProp<import("/home/nicho/Development/idealyst-framework/packages/theme/node_modules/react-native/Libraries/StyleSheet/StyleSheetTypes").ViewStyle>',
|
|
32970
|
+
required: false,
|
|
32971
|
+
description: "Styles applied to the content container"
|
|
32972
|
+
},
|
|
32973
|
+
{
|
|
32974
|
+
name: "showsIndicator",
|
|
32975
|
+
type: "boolean | undefined",
|
|
32976
|
+
required: false,
|
|
32977
|
+
description: "Whether to show scroll indicators. Defaults to true."
|
|
32978
|
+
},
|
|
32979
|
+
{
|
|
32980
|
+
name: "pagingEnabled",
|
|
32981
|
+
type: "boolean | undefined",
|
|
32982
|
+
required: false,
|
|
32983
|
+
description: "Whether to enable paging behavior"
|
|
32984
|
+
},
|
|
32985
|
+
{
|
|
32986
|
+
name: "bounces",
|
|
32987
|
+
type: "boolean | undefined",
|
|
32988
|
+
required: false,
|
|
32989
|
+
description: "Whether the scroll view bounces at the edges (iOS). Defaults to true."
|
|
32990
|
+
},
|
|
32991
|
+
{
|
|
32992
|
+
name: "onScroll",
|
|
32993
|
+
type: '((event: import("/home/nicho/Development/idealyst-framework/packages/components/src/ScrollView/types").ScrollEvent) => void) | undefined',
|
|
32994
|
+
required: false,
|
|
32995
|
+
description: "Called continuously as the user scrolls.\nUse `scrollEventThrottle` to control frequency."
|
|
32996
|
+
},
|
|
32997
|
+
{
|
|
32998
|
+
name: "onScrollBegin",
|
|
32999
|
+
type: '((event: import("/home/nicho/Development/idealyst-framework/packages/components/src/ScrollView/types").ScrollEvent) => void) | undefined',
|
|
33000
|
+
required: false,
|
|
33001
|
+
description: "Called when scrolling begins (user starts dragging)."
|
|
33002
|
+
},
|
|
33003
|
+
{
|
|
33004
|
+
name: "onScrollEnd",
|
|
33005
|
+
type: '((event: import("/home/nicho/Development/idealyst-framework/packages/components/src/ScrollView/types").ScrollEvent) => void) | undefined',
|
|
33006
|
+
required: false,
|
|
33007
|
+
description: "Called when scrolling ends (momentum settles or user lifts finger)."
|
|
33008
|
+
},
|
|
33009
|
+
{
|
|
33010
|
+
name: "onEndReached",
|
|
33011
|
+
type: "(() => void) | undefined",
|
|
33012
|
+
required: false,
|
|
33013
|
+
description: "Called when the scroll position reaches the end of the content.\nUseful for infinite scroll / load-more patterns."
|
|
33014
|
+
},
|
|
33015
|
+
{
|
|
33016
|
+
name: "onEndReachedThreshold",
|
|
33017
|
+
type: "number | undefined",
|
|
33018
|
+
required: false,
|
|
33019
|
+
description: "Distance from the end (in pixels) at which onEndReached fires.\nDefaults to 0."
|
|
33020
|
+
},
|
|
33021
|
+
{
|
|
33022
|
+
name: "scrollEventThrottle",
|
|
33023
|
+
type: "number | undefined",
|
|
33024
|
+
required: false,
|
|
33025
|
+
description: "Throttle interval (ms) for onScroll events on native. Defaults to 16 (~60fps)."
|
|
33026
|
+
},
|
|
33027
|
+
{
|
|
33028
|
+
name: "scrollEnabled",
|
|
33029
|
+
type: "boolean | undefined",
|
|
33030
|
+
required: false,
|
|
33031
|
+
description: "Whether scrolling is enabled. Defaults to true."
|
|
33032
|
+
},
|
|
33033
|
+
{
|
|
33034
|
+
name: "keyboardDismissMode",
|
|
33035
|
+
type: '"none" | "on-drag" | "interactive" | undefined',
|
|
33036
|
+
required: false,
|
|
33037
|
+
description: "Whether the keyboard should dismiss on drag."
|
|
33038
|
+
},
|
|
33039
|
+
{
|
|
33040
|
+
name: "testID",
|
|
33041
|
+
type: "string | undefined",
|
|
33042
|
+
required: false,
|
|
33043
|
+
description: "Test ID for testing"
|
|
33044
|
+
},
|
|
33045
|
+
{
|
|
33046
|
+
name: "onLayout",
|
|
33047
|
+
type: '((event: import("/home/nicho/Development/idealyst-framework/packages/components/src/hooks/useWebLayout/types").LayoutChangeEvent) => void) | undefined',
|
|
33048
|
+
required: false,
|
|
33049
|
+
description: "Callback when layout changes"
|
|
33050
|
+
}
|
|
33051
|
+
],
|
|
33052
|
+
typeDefinition: "export interface ScrollViewProps extends ContainerStyleProps {\n children?: ReactNode;\n\n /** Scroll direction. Defaults to 'vertical'. */\n direction?: ScrollViewDirection;\n\n /** Background variant */\n background?: ScrollViewBackgroundVariant;\n\n /** Border radius variant */\n radius?: ScrollViewRadiusVariant;\n\n /** Border variant */\n border?: ScrollViewBorderVariant;\n\n /** Custom background color (overrides background variant) */\n backgroundColor?: string;\n\n /** Custom border radius (overrides radius variant) */\n borderRadius?: number;\n\n /** Custom border width (overrides border variant) */\n borderWidth?: number;\n\n /** Custom border color */\n borderColor?: string;\n\n /** Additional styles */\n style?: StyleProp<ViewStyle>;\n\n /** Styles applied to the content container */\n contentContainerStyle?: StyleProp<ViewStyle>;\n\n /** Whether to show scroll indicators. Defaults to true. */\n showsIndicator?: boolean;\n\n /** Whether to enable paging behavior */\n pagingEnabled?: boolean;\n\n /** Whether the scroll view bounces at the edges (iOS). Defaults to true. */\n bounces?: boolean;\n\n /**\n * Called continuously as the user scrolls.\n * Use `scrollEventThrottle` to control frequency.\n */\n onScroll?: (event: ScrollEvent) => void;\n\n /**\n * Called when scrolling begins (user starts dragging).\n */\n onScrollBegin?: (event: ScrollEvent) => void;\n\n /**\n * Called when scrolling ends (momentum settles or user lifts finger).\n */\n onScrollEnd?: (event: ScrollEvent) => void;\n\n /**\n * Called when the scroll position reaches the end of the content.\n * Useful for infinite scroll / load-more patterns.\n */\n onEndReached?: () => void;\n\n /**\n * Distance from the end (in pixels) at which onEndReached fires.\n * Defaults to 0.\n */\n onEndReachedThreshold?: number;\n\n /**\n * Throttle interval (ms) for onScroll events on native. Defaults to 16 (~60fps).\n */\n scrollEventThrottle?: number;\n\n /** Whether scrolling is enabled. Defaults to true. */\n scrollEnabled?: boolean;\n\n /** Whether the keyboard should dismiss on drag. */\n keyboardDismissMode?: 'none' | 'on-drag' | 'interactive';\n\n /** Test ID for testing */\n testID?: string;\n\n /** Callback when layout changes */\n onLayout?: (event: LayoutChangeEvent) => void;\n}",
|
|
33053
|
+
relatedTypes: {
|
|
33054
|
+
ScrollViewBackgroundVariant: "export type ScrollViewBackgroundVariant = Surface | 'transparent';",
|
|
33055
|
+
ScrollViewRadiusVariant: "export type ScrollViewRadiusVariant = Size | 'none';",
|
|
33056
|
+
ScrollViewBorderVariant: "export type ScrollViewBorderVariant = 'none' | 'thin' | 'thick';",
|
|
33057
|
+
ScrollViewDirection: "export type ScrollViewDirection = 'vertical' | 'horizontal' | 'both';",
|
|
33058
|
+
ScrollPosition: "export interface ScrollPosition {\n x: number;\n y: number;\n}",
|
|
33059
|
+
ScrollContentSize: "export interface ScrollContentSize {\n width: number;\n height: number;\n}",
|
|
33060
|
+
ScrollLayoutSize: "export interface ScrollLayoutSize {\n width: number;\n height: number;\n}",
|
|
33061
|
+
ScrollEvent: "export interface ScrollEvent {\n /** Current scroll offset */\n position: ScrollPosition;\n /** Size of the scrollable content */\n contentSize: ScrollContentSize;\n /** Size of the visible scroll container */\n layoutSize: ScrollLayoutSize;\n /** Whether the content is scrolled to the end (vertical or horizontal depending on direction) */\n isAtEnd: boolean;\n /** Whether the content is scrolled to the start */\n isAtStart: boolean;\n}",
|
|
33062
|
+
ScrollToOptions: "export interface ScrollToOptions {\n x?: number;\n y?: number;\n animated?: boolean;\n}",
|
|
33063
|
+
ScrollViewRef: "export interface ScrollViewRef {\n /** Scroll to a specific position */\n scrollTo: (options: ScrollToOptions) => void;\n /** Scroll to the end of the content */\n scrollToEnd: (options?: { animated?: boolean }) => void;\n /** Scroll to the top/start of the content */\n scrollToStart: (options?: { animated?: boolean }) => void;\n /** Get current scroll position */\n getScrollPosition: () => ScrollPosition;\n /** Get the underlying native element */\n getInnerElement: () => any;\n}"
|
|
33064
|
+
},
|
|
33065
|
+
registry: {
|
|
33066
|
+
name: "ScrollView",
|
|
33067
|
+
description: "Scrollable container with scroll event abstractions and imperative scroll controls.",
|
|
33068
|
+
props: {
|
|
33069
|
+
direction: {
|
|
33070
|
+
name: "direction",
|
|
33071
|
+
type: "ScrollViewDirection | undefined",
|
|
33072
|
+
values: [
|
|
33073
|
+
"vertical",
|
|
33074
|
+
"horizontal",
|
|
33075
|
+
"both"
|
|
33076
|
+
],
|
|
33077
|
+
description: "Scroll direction. Defaults to 'vertical'.",
|
|
33078
|
+
required: false
|
|
33079
|
+
},
|
|
33080
|
+
background: {
|
|
33081
|
+
name: "background",
|
|
33082
|
+
type: "any",
|
|
33083
|
+
description: "Background variant",
|
|
33084
|
+
required: false
|
|
33085
|
+
},
|
|
33086
|
+
radius: {
|
|
33087
|
+
name: "radius",
|
|
33088
|
+
type: "any",
|
|
33089
|
+
description: "Border radius variant",
|
|
33090
|
+
required: false
|
|
33091
|
+
},
|
|
33092
|
+
border: {
|
|
33093
|
+
name: "border",
|
|
33094
|
+
type: "ScrollViewBorderVariant | undefined",
|
|
33095
|
+
values: [
|
|
33096
|
+
"none",
|
|
33097
|
+
"thin",
|
|
33098
|
+
"thick"
|
|
33099
|
+
],
|
|
33100
|
+
description: "Border variant",
|
|
33101
|
+
required: false
|
|
33102
|
+
},
|
|
33103
|
+
backgroundColor: {
|
|
33104
|
+
name: "backgroundColor",
|
|
33105
|
+
type: "string | undefined",
|
|
33106
|
+
description: "Custom background color (overrides background variant)",
|
|
33107
|
+
required: false
|
|
33108
|
+
},
|
|
33109
|
+
borderRadius: {
|
|
33110
|
+
name: "borderRadius",
|
|
33111
|
+
type: "number | undefined",
|
|
33112
|
+
description: "Custom border radius (overrides radius variant)",
|
|
33113
|
+
required: false
|
|
33114
|
+
},
|
|
33115
|
+
borderWidth: {
|
|
33116
|
+
name: "borderWidth",
|
|
33117
|
+
type: "number | undefined",
|
|
33118
|
+
description: "Custom border width (overrides border variant)",
|
|
33119
|
+
required: false
|
|
33120
|
+
},
|
|
33121
|
+
borderColor: {
|
|
33122
|
+
name: "borderColor",
|
|
33123
|
+
type: "string | undefined",
|
|
33124
|
+
description: "Custom border color",
|
|
33125
|
+
required: false
|
|
33126
|
+
},
|
|
33127
|
+
contentContainerStyle: {
|
|
33128
|
+
name: "contentContainerStyle",
|
|
33129
|
+
type: "any",
|
|
33130
|
+
description: "Styles applied to the content container",
|
|
33131
|
+
required: false
|
|
33132
|
+
},
|
|
33133
|
+
showsIndicator: {
|
|
33134
|
+
name: "showsIndicator",
|
|
33135
|
+
type: "boolean | undefined",
|
|
33136
|
+
values: [
|
|
33137
|
+
"false",
|
|
33138
|
+
"true"
|
|
33139
|
+
],
|
|
33140
|
+
description: "Whether to show scroll indicators. Defaults to true.",
|
|
33141
|
+
required: false
|
|
33142
|
+
},
|
|
33143
|
+
pagingEnabled: {
|
|
33144
|
+
name: "pagingEnabled",
|
|
33145
|
+
type: "boolean | undefined",
|
|
33146
|
+
values: [
|
|
33147
|
+
"false",
|
|
33148
|
+
"true"
|
|
33149
|
+
],
|
|
33150
|
+
description: "Whether to enable paging behavior",
|
|
33151
|
+
required: false
|
|
33152
|
+
},
|
|
33153
|
+
bounces: {
|
|
33154
|
+
name: "bounces",
|
|
33155
|
+
type: "boolean | undefined",
|
|
33156
|
+
values: [
|
|
33157
|
+
"false",
|
|
33158
|
+
"true"
|
|
33159
|
+
],
|
|
33160
|
+
description: "Whether the scroll view bounces at the edges (iOS). Defaults to true.",
|
|
33161
|
+
required: false
|
|
33162
|
+
},
|
|
33163
|
+
onScroll: {
|
|
33164
|
+
name: "onScroll",
|
|
33165
|
+
type: "((event: ScrollEvent) => void) | undefined",
|
|
33166
|
+
description: "Called continuously as the user scrolls.\nUse `scrollEventThrottle` to control frequency.",
|
|
33167
|
+
required: false
|
|
33168
|
+
},
|
|
33169
|
+
onScrollBegin: {
|
|
33170
|
+
name: "onScrollBegin",
|
|
33171
|
+
type: "((event: ScrollEvent) => void) | undefined",
|
|
33172
|
+
description: "Called when scrolling begins (user starts dragging).",
|
|
33173
|
+
required: false
|
|
33174
|
+
},
|
|
33175
|
+
onScrollEnd: {
|
|
33176
|
+
name: "onScrollEnd",
|
|
33177
|
+
type: "((event: ScrollEvent) => void) | undefined",
|
|
33178
|
+
description: "Called when scrolling ends (momentum settles or user lifts finger).",
|
|
33179
|
+
required: false
|
|
33180
|
+
},
|
|
33181
|
+
onEndReached: {
|
|
33182
|
+
name: "onEndReached",
|
|
33183
|
+
type: "(() => void) | undefined",
|
|
33184
|
+
description: "Called when the scroll position reaches the end of the content.\nUseful for infinite scroll / load-more patterns.",
|
|
33185
|
+
required: false
|
|
33186
|
+
},
|
|
33187
|
+
onEndReachedThreshold: {
|
|
33188
|
+
name: "onEndReachedThreshold",
|
|
33189
|
+
type: "number | undefined",
|
|
33190
|
+
description: "Distance from the end (in pixels) at which onEndReached fires.\nDefaults to 0.",
|
|
33191
|
+
required: false
|
|
33192
|
+
},
|
|
33193
|
+
scrollEventThrottle: {
|
|
33194
|
+
name: "scrollEventThrottle",
|
|
33195
|
+
type: "number | undefined",
|
|
33196
|
+
description: "Throttle interval (ms) for onScroll events on native. Defaults to 16 (~60fps).",
|
|
33197
|
+
required: false
|
|
33198
|
+
},
|
|
33199
|
+
scrollEnabled: {
|
|
33200
|
+
name: "scrollEnabled",
|
|
33201
|
+
type: "boolean | undefined",
|
|
33202
|
+
values: [
|
|
33203
|
+
"false",
|
|
33204
|
+
"true"
|
|
33205
|
+
],
|
|
33206
|
+
description: "Whether scrolling is enabled. Defaults to true.",
|
|
33207
|
+
required: false
|
|
33208
|
+
},
|
|
33209
|
+
keyboardDismissMode: {
|
|
33210
|
+
name: "keyboardDismissMode",
|
|
33211
|
+
type: '"none" | "on-drag" | "interactive" | undefined',
|
|
33212
|
+
values: [
|
|
33213
|
+
"none",
|
|
33214
|
+
"on-drag",
|
|
33215
|
+
"interactive"
|
|
33216
|
+
],
|
|
33217
|
+
description: "Whether the keyboard should dismiss on drag.",
|
|
33218
|
+
required: false
|
|
33219
|
+
},
|
|
33220
|
+
id: {
|
|
33221
|
+
name: "id",
|
|
33222
|
+
type: "string | undefined",
|
|
33223
|
+
description: "Unique identifier for the element (maps to id on web, nativeID on native)",
|
|
33224
|
+
required: false
|
|
33225
|
+
},
|
|
33226
|
+
gap: {
|
|
33227
|
+
name: "gap",
|
|
33228
|
+
type: "any",
|
|
33229
|
+
description: "Gap between children (uses theme.sizes.view[size].spacing)",
|
|
33230
|
+
required: false
|
|
33231
|
+
},
|
|
33232
|
+
spacing: {
|
|
33233
|
+
name: "spacing",
|
|
33234
|
+
type: "any",
|
|
33235
|
+
description: "Alias for gap - spacing between children",
|
|
33236
|
+
required: false
|
|
33237
|
+
},
|
|
33238
|
+
padding: {
|
|
33239
|
+
name: "padding",
|
|
33240
|
+
type: "any",
|
|
33241
|
+
description: "Padding on all sides (uses theme.sizes.view[size].padding)",
|
|
33242
|
+
required: false
|
|
33243
|
+
},
|
|
33244
|
+
paddingVertical: {
|
|
33245
|
+
name: "paddingVertical",
|
|
33246
|
+
type: "any",
|
|
33247
|
+
description: "Vertical padding (top + bottom)",
|
|
33248
|
+
required: false
|
|
33249
|
+
},
|
|
33250
|
+
paddingHorizontal: {
|
|
33251
|
+
name: "paddingHorizontal",
|
|
33252
|
+
type: "any",
|
|
33253
|
+
description: "Horizontal padding (left + right)",
|
|
33254
|
+
required: false
|
|
33255
|
+
},
|
|
33256
|
+
margin: {
|
|
33257
|
+
name: "margin",
|
|
33258
|
+
type: "any",
|
|
33259
|
+
description: "Margin on all sides (uses theme.sizes.view[size].spacing)",
|
|
33260
|
+
required: false
|
|
33261
|
+
},
|
|
33262
|
+
marginVertical: {
|
|
33263
|
+
name: "marginVertical",
|
|
33264
|
+
type: "any",
|
|
33265
|
+
description: "Vertical margin (top + bottom)",
|
|
33266
|
+
required: false
|
|
33267
|
+
},
|
|
33268
|
+
marginHorizontal: {
|
|
33269
|
+
name: "marginHorizontal",
|
|
33270
|
+
type: "any",
|
|
33271
|
+
description: "Horizontal margin (left + right)",
|
|
33272
|
+
required: false
|
|
33273
|
+
}
|
|
33274
|
+
},
|
|
33275
|
+
category: "display",
|
|
33276
|
+
filePath: "../components/src/ScrollView",
|
|
33277
|
+
sampleProps: {
|
|
33278
|
+
children: "'Scrollable content'"
|
|
33279
|
+
}
|
|
33280
|
+
}
|
|
33281
|
+
},
|
|
32861
33282
|
Select: {
|
|
32862
33283
|
name: "Select",
|
|
32863
33284
|
propsInterface: "SelectProps",
|
|
@@ -34366,6 +34787,12 @@ var types_default = {
|
|
|
34366
34787
|
type: "boolean | undefined",
|
|
34367
34788
|
required: false
|
|
34368
34789
|
},
|
|
34790
|
+
{
|
|
34791
|
+
name: "fill",
|
|
34792
|
+
type: "boolean | undefined",
|
|
34793
|
+
required: false,
|
|
34794
|
+
description: "When true, the textarea expands to fill available vertical space using flex.\nOverrides `rows` and `autoGrow` height logic. All container layers get `flex: 1`."
|
|
34795
|
+
},
|
|
34369
34796
|
{
|
|
34370
34797
|
name: "maxLength",
|
|
34371
34798
|
type: "number | undefined",
|
|
@@ -34428,7 +34855,7 @@ var types_default = {
|
|
|
34428
34855
|
required: false
|
|
34429
34856
|
}
|
|
34430
34857
|
],
|
|
34431
|
-
typeDefinition: "export interface TextAreaProps extends FormInputStyleProps, FormAccessibilityProps {\n value?: string;\n defaultValue?: string;\n onChange?: (value: string) => void;\n /**\n * Called when a key is pressed while the textarea is focused.\n * Includes modifier key states (ctrl, shift, alt, meta).\n * Web only - no-op on native.\n */\n onKeyDown?: (event: KeyboardEventData) => void;\n placeholder?: string;\n disabled?: boolean;\n rows?: number;\n minHeight?: number;\n maxHeight?: number;\n autoGrow?: boolean;\n maxLength?: number;\n label?: string;\n error?: string;\n helperText?: string;\n resize?: TextAreaResizeVariant;\n showCharacterCount?: boolean;\n intent?: TextAreaIntentVariant;\n size?: TextAreaSizeVariant;\n /**\n * Visual style type of the textarea\n * @default 'outlined'\n */\n type?: TextAreaType;\n style?: StyleProp<ViewStyle>;\n textareaStyle?: StyleProp<TextStyle>;\n testID?: string;\n}",
|
|
34858
|
+
typeDefinition: "export interface TextAreaProps extends FormInputStyleProps, FormAccessibilityProps {\n value?: string;\n defaultValue?: string;\n onChange?: (value: string) => void;\n /**\n * Called when a key is pressed while the textarea is focused.\n * Includes modifier key states (ctrl, shift, alt, meta).\n * Web only - no-op on native.\n */\n onKeyDown?: (event: KeyboardEventData) => void;\n placeholder?: string;\n disabled?: boolean;\n rows?: number;\n minHeight?: number;\n maxHeight?: number;\n autoGrow?: boolean;\n /**\n * When true, the textarea expands to fill available vertical space using flex.\n * Overrides `rows` and `autoGrow` height logic. All container layers get `flex: 1`.\n */\n fill?: boolean;\n maxLength?: number;\n label?: string;\n error?: string;\n helperText?: string;\n resize?: TextAreaResizeVariant;\n showCharacterCount?: boolean;\n intent?: TextAreaIntentVariant;\n size?: TextAreaSizeVariant;\n /**\n * Visual style type of the textarea\n * @default 'outlined'\n */\n type?: TextAreaType;\n style?: StyleProp<ViewStyle>;\n textareaStyle?: StyleProp<TextStyle>;\n testID?: string;\n}",
|
|
34432
34859
|
relatedTypes: {
|
|
34433
34860
|
TextAreaIntentVariant: "export type TextAreaIntentVariant = Intent;",
|
|
34434
34861
|
TextAreaSizeVariant: "export type TextAreaSizeVariant = Size;",
|
|
@@ -34498,6 +34925,16 @@ var types_default = {
|
|
|
34498
34925
|
],
|
|
34499
34926
|
required: false
|
|
34500
34927
|
},
|
|
34928
|
+
fill: {
|
|
34929
|
+
name: "fill",
|
|
34930
|
+
type: "boolean | undefined",
|
|
34931
|
+
values: [
|
|
34932
|
+
"false",
|
|
34933
|
+
"true"
|
|
34934
|
+
],
|
|
34935
|
+
description: "When true, the textarea expands to fill available vertical space using flex.\nOverrides `rows` and `autoGrow` height logic. All container layers get `flex: 1`.",
|
|
34936
|
+
required: false
|
|
34937
|
+
},
|
|
34501
34938
|
maxLength: {
|
|
34502
34939
|
name: "maxLength",
|
|
34503
34940
|
type: "number | undefined",
|
|
@@ -35572,7 +36009,7 @@ var types_default = {
|
|
|
35572
36009
|
name: "scrollable",
|
|
35573
36010
|
type: "boolean | undefined",
|
|
35574
36011
|
required: false,
|
|
35575
|
-
description: "
|
|
36012
|
+
description: ""
|
|
35576
36013
|
},
|
|
35577
36014
|
{
|
|
35578
36015
|
name: "testID",
|
|
@@ -35587,7 +36024,7 @@ var types_default = {
|
|
|
35587
36024
|
description: "Callback when the view's layout changes.\nCalled with layout information (x, y, width, height) when the component\nmounts or when its dimensions change."
|
|
35588
36025
|
}
|
|
35589
36026
|
],
|
|
35590
|
-
typeDefinition: "export interface ViewProps extends ContainerStyleProps {\n /**\n * The content to display inside the view\n */\n children?: ReactNode;\n\n /**\n * Background variant\n */\n background?: ViewBackgroundVariant;\n\n /**\n * Border radius variant\n */\n radius?: ViewRadiusVariant;\n\n /**\n * Border variant\n */\n border?: ViewBorderVariant;\n\n /**\n * Custom background color (overrides background variant)\n */\n backgroundColor?: string;\n\n /**\n * Custom border radius (overrides radius variant)\n */\n borderRadius?: number;\n\n /**\n * Custom border width (overrides border variant)\n */\n borderWidth?: number;\n\n /**\n * Custom border color\n */\n borderColor?: string;\n\n /**\n * Additional styles. Supports responsive values for any property.\n * @example\n * ```tsx\n * // Responsive flexDirection\n * <View style={{ flexDirection: { xs: 'column', md: 'row' } }} />\n *\n * // Mix responsive and static values\n * <View style={{ padding: { xs: 8, lg: 16 }, backgroundColor: '#fff' }} />\n * ```\n */\n style?: ViewStyleProp;\n\n /**\n * Enable scrollable content.\n * - Native: Wraps children in a ScrollView\n * - Web: Renders a wrapper + content structure where the wrapper fills available\n * space (or uses explicit dimensions) and content is absolutely positioned with\n * overflow:auto. Sizing/margin styles go to wrapper, visual styles to content.\n */\n scrollable?: boolean;\n\n /**\n * Test ID for testing\n */\n testID?: string;\n\n /**\n * Callback when the view's layout changes.\n * Called with layout information (x, y, width, height) when the component\n * mounts or when its dimensions change.\n */\n onLayout?: (event: LayoutChangeEvent) => void;\n}",
|
|
36027
|
+
typeDefinition: "export interface ViewProps extends ContainerStyleProps {\n /**\n * The content to display inside the view\n */\n children?: ReactNode;\n\n /**\n * Background variant\n */\n background?: ViewBackgroundVariant;\n\n /**\n * Border radius variant\n */\n radius?: ViewRadiusVariant;\n\n /**\n * Border variant\n */\n border?: ViewBorderVariant;\n\n /**\n * Custom background color (overrides background variant)\n */\n backgroundColor?: string;\n\n /**\n * Custom border radius (overrides radius variant)\n */\n borderRadius?: number;\n\n /**\n * Custom border width (overrides border variant)\n */\n borderWidth?: number;\n\n /**\n * Custom border color\n */\n borderColor?: string;\n\n /**\n * Additional styles. Supports responsive values for any property.\n * @example\n * ```tsx\n * // Responsive flexDirection\n * <View style={{ flexDirection: { xs: 'column', md: 'row' } }} />\n *\n * // Mix responsive and static values\n * <View style={{ padding: { xs: 8, lg: 16 }, backgroundColor: '#fff' }} />\n * ```\n */\n style?: ViewStyleProp;\n\n /**\n * @deprecated Use the ScrollView component instead, which provides scroll event\n * abstractions (onScroll, onScrollBegin, onScrollEnd, onEndReached) and imperative\n * scroll controls (scrollTo, scrollToEnd, scrollToStart) via ref.\n *\n * Enable scrollable content.\n * - Native: Wraps children in a ScrollView\n * - Web: Renders a wrapper + content structure where the wrapper fills available\n * space (or uses explicit dimensions) and content is absolutely positioned with\n * overflow:auto. Sizing/margin styles go to wrapper, visual styles to content.\n */\n scrollable?: boolean;\n\n /**\n * Test ID for testing\n */\n testID?: string;\n\n /**\n * Callback when the view's layout changes.\n * Called with layout information (x, y, width, height) when the component\n * mounts or when its dimensions change.\n */\n onLayout?: (event: LayoutChangeEvent) => void;\n}",
|
|
35591
36028
|
relatedTypes: {
|
|
35592
36029
|
ViewStyleProp: "export type ViewStyleProp = StyleProp<ViewStyle> | ResponsiveStyle | React.CSSProperties;",
|
|
35593
36030
|
ViewBackgroundVariant: "export type ViewBackgroundVariant = Surface | 'transparent';",
|
|
@@ -35652,7 +36089,6 @@ var types_default = {
|
|
|
35652
36089
|
"false",
|
|
35653
36090
|
"true"
|
|
35654
36091
|
],
|
|
35655
|
-
description: "Enable scrollable content.\n- Native: Wraps children in a ScrollView\n- Web: Renders a wrapper + content structure where the wrapper fills available\n space (or uses explicit dimensions) and content is absolutely positioned with\n overflow:auto. Sizing/margin styles go to wrapper, visual styles to content.",
|
|
35656
36092
|
required: false
|
|
35657
36093
|
},
|
|
35658
36094
|
id: {
|
|
@@ -68063,6 +68499,13 @@ var types_default = {
|
|
|
68063
68499
|
description: "Whether to avoid the keyboard on native platforms (iOS/Android).\nWhen enabled, content will shift up when the keyboard appears.",
|
|
68064
68500
|
required: false
|
|
68065
68501
|
},
|
|
68502
|
+
keyboardAvoidingOffset: {
|
|
68503
|
+
name: "keyboardAvoidingOffset",
|
|
68504
|
+
type: "number | undefined",
|
|
68505
|
+
default: 0,
|
|
68506
|
+
description: "Additional offset to subtract from the keyboard height when avoiding the keyboard.\nThe Screen automatically accounts for the tab bar height when inside a tab navigator,\nbut this prop can be used for other fixed UI elements that occupy space at the bottom.",
|
|
68507
|
+
required: false
|
|
68508
|
+
},
|
|
68066
68509
|
id: {
|
|
68067
68510
|
name: "id",
|
|
68068
68511
|
type: "string | undefined",
|
|
@@ -68124,6 +68567,222 @@ var types_default = {
|
|
|
68124
68567
|
children: "'Screen content'"
|
|
68125
68568
|
}
|
|
68126
68569
|
},
|
|
68570
|
+
ScrollView: {
|
|
68571
|
+
name: "ScrollView",
|
|
68572
|
+
description: "Scrollable container with scroll event abstractions and imperative scroll controls.",
|
|
68573
|
+
props: {
|
|
68574
|
+
direction: {
|
|
68575
|
+
name: "direction",
|
|
68576
|
+
type: "ScrollViewDirection | undefined",
|
|
68577
|
+
values: [
|
|
68578
|
+
"vertical",
|
|
68579
|
+
"horizontal",
|
|
68580
|
+
"both"
|
|
68581
|
+
],
|
|
68582
|
+
description: "Scroll direction. Defaults to 'vertical'.",
|
|
68583
|
+
required: false
|
|
68584
|
+
},
|
|
68585
|
+
background: {
|
|
68586
|
+
name: "background",
|
|
68587
|
+
type: "any",
|
|
68588
|
+
description: "Background variant",
|
|
68589
|
+
required: false
|
|
68590
|
+
},
|
|
68591
|
+
radius: {
|
|
68592
|
+
name: "radius",
|
|
68593
|
+
type: "any",
|
|
68594
|
+
description: "Border radius variant",
|
|
68595
|
+
required: false
|
|
68596
|
+
},
|
|
68597
|
+
border: {
|
|
68598
|
+
name: "border",
|
|
68599
|
+
type: "ScrollViewBorderVariant | undefined",
|
|
68600
|
+
values: [
|
|
68601
|
+
"none",
|
|
68602
|
+
"thin",
|
|
68603
|
+
"thick"
|
|
68604
|
+
],
|
|
68605
|
+
description: "Border variant",
|
|
68606
|
+
required: false
|
|
68607
|
+
},
|
|
68608
|
+
backgroundColor: {
|
|
68609
|
+
name: "backgroundColor",
|
|
68610
|
+
type: "string | undefined",
|
|
68611
|
+
description: "Custom background color (overrides background variant)",
|
|
68612
|
+
required: false
|
|
68613
|
+
},
|
|
68614
|
+
borderRadius: {
|
|
68615
|
+
name: "borderRadius",
|
|
68616
|
+
type: "number | undefined",
|
|
68617
|
+
description: "Custom border radius (overrides radius variant)",
|
|
68618
|
+
required: false
|
|
68619
|
+
},
|
|
68620
|
+
borderWidth: {
|
|
68621
|
+
name: "borderWidth",
|
|
68622
|
+
type: "number | undefined",
|
|
68623
|
+
description: "Custom border width (overrides border variant)",
|
|
68624
|
+
required: false
|
|
68625
|
+
},
|
|
68626
|
+
borderColor: {
|
|
68627
|
+
name: "borderColor",
|
|
68628
|
+
type: "string | undefined",
|
|
68629
|
+
description: "Custom border color",
|
|
68630
|
+
required: false
|
|
68631
|
+
},
|
|
68632
|
+
contentContainerStyle: {
|
|
68633
|
+
name: "contentContainerStyle",
|
|
68634
|
+
type: "any",
|
|
68635
|
+
description: "Styles applied to the content container",
|
|
68636
|
+
required: false
|
|
68637
|
+
},
|
|
68638
|
+
showsIndicator: {
|
|
68639
|
+
name: "showsIndicator",
|
|
68640
|
+
type: "boolean | undefined",
|
|
68641
|
+
values: [
|
|
68642
|
+
"false",
|
|
68643
|
+
"true"
|
|
68644
|
+
],
|
|
68645
|
+
description: "Whether to show scroll indicators. Defaults to true.",
|
|
68646
|
+
required: false
|
|
68647
|
+
},
|
|
68648
|
+
pagingEnabled: {
|
|
68649
|
+
name: "pagingEnabled",
|
|
68650
|
+
type: "boolean | undefined",
|
|
68651
|
+
values: [
|
|
68652
|
+
"false",
|
|
68653
|
+
"true"
|
|
68654
|
+
],
|
|
68655
|
+
description: "Whether to enable paging behavior",
|
|
68656
|
+
required: false
|
|
68657
|
+
},
|
|
68658
|
+
bounces: {
|
|
68659
|
+
name: "bounces",
|
|
68660
|
+
type: "boolean | undefined",
|
|
68661
|
+
values: [
|
|
68662
|
+
"false",
|
|
68663
|
+
"true"
|
|
68664
|
+
],
|
|
68665
|
+
description: "Whether the scroll view bounces at the edges (iOS). Defaults to true.",
|
|
68666
|
+
required: false
|
|
68667
|
+
},
|
|
68668
|
+
onScroll: {
|
|
68669
|
+
name: "onScroll",
|
|
68670
|
+
type: "((event: ScrollEvent) => void) | undefined",
|
|
68671
|
+
description: "Called continuously as the user scrolls.\nUse `scrollEventThrottle` to control frequency.",
|
|
68672
|
+
required: false
|
|
68673
|
+
},
|
|
68674
|
+
onScrollBegin: {
|
|
68675
|
+
name: "onScrollBegin",
|
|
68676
|
+
type: "((event: ScrollEvent) => void) | undefined",
|
|
68677
|
+
description: "Called when scrolling begins (user starts dragging).",
|
|
68678
|
+
required: false
|
|
68679
|
+
},
|
|
68680
|
+
onScrollEnd: {
|
|
68681
|
+
name: "onScrollEnd",
|
|
68682
|
+
type: "((event: ScrollEvent) => void) | undefined",
|
|
68683
|
+
description: "Called when scrolling ends (momentum settles or user lifts finger).",
|
|
68684
|
+
required: false
|
|
68685
|
+
},
|
|
68686
|
+
onEndReached: {
|
|
68687
|
+
name: "onEndReached",
|
|
68688
|
+
type: "(() => void) | undefined",
|
|
68689
|
+
description: "Called when the scroll position reaches the end of the content.\nUseful for infinite scroll / load-more patterns.",
|
|
68690
|
+
required: false
|
|
68691
|
+
},
|
|
68692
|
+
onEndReachedThreshold: {
|
|
68693
|
+
name: "onEndReachedThreshold",
|
|
68694
|
+
type: "number | undefined",
|
|
68695
|
+
description: "Distance from the end (in pixels) at which onEndReached fires.\nDefaults to 0.",
|
|
68696
|
+
required: false
|
|
68697
|
+
},
|
|
68698
|
+
scrollEventThrottle: {
|
|
68699
|
+
name: "scrollEventThrottle",
|
|
68700
|
+
type: "number | undefined",
|
|
68701
|
+
description: "Throttle interval (ms) for onScroll events on native. Defaults to 16 (~60fps).",
|
|
68702
|
+
required: false
|
|
68703
|
+
},
|
|
68704
|
+
scrollEnabled: {
|
|
68705
|
+
name: "scrollEnabled",
|
|
68706
|
+
type: "boolean | undefined",
|
|
68707
|
+
values: [
|
|
68708
|
+
"false",
|
|
68709
|
+
"true"
|
|
68710
|
+
],
|
|
68711
|
+
description: "Whether scrolling is enabled. Defaults to true.",
|
|
68712
|
+
required: false
|
|
68713
|
+
},
|
|
68714
|
+
keyboardDismissMode: {
|
|
68715
|
+
name: "keyboardDismissMode",
|
|
68716
|
+
type: '"none" | "on-drag" | "interactive" | undefined',
|
|
68717
|
+
values: [
|
|
68718
|
+
"none",
|
|
68719
|
+
"on-drag",
|
|
68720
|
+
"interactive"
|
|
68721
|
+
],
|
|
68722
|
+
description: "Whether the keyboard should dismiss on drag.",
|
|
68723
|
+
required: false
|
|
68724
|
+
},
|
|
68725
|
+
id: {
|
|
68726
|
+
name: "id",
|
|
68727
|
+
type: "string | undefined",
|
|
68728
|
+
description: "Unique identifier for the element (maps to id on web, nativeID on native)",
|
|
68729
|
+
required: false
|
|
68730
|
+
},
|
|
68731
|
+
gap: {
|
|
68732
|
+
name: "gap",
|
|
68733
|
+
type: "any",
|
|
68734
|
+
description: "Gap between children (uses theme.sizes.view[size].spacing)",
|
|
68735
|
+
required: false
|
|
68736
|
+
},
|
|
68737
|
+
spacing: {
|
|
68738
|
+
name: "spacing",
|
|
68739
|
+
type: "any",
|
|
68740
|
+
description: "Alias for gap - spacing between children",
|
|
68741
|
+
required: false
|
|
68742
|
+
},
|
|
68743
|
+
padding: {
|
|
68744
|
+
name: "padding",
|
|
68745
|
+
type: "any",
|
|
68746
|
+
description: "Padding on all sides (uses theme.sizes.view[size].padding)",
|
|
68747
|
+
required: false
|
|
68748
|
+
},
|
|
68749
|
+
paddingVertical: {
|
|
68750
|
+
name: "paddingVertical",
|
|
68751
|
+
type: "any",
|
|
68752
|
+
description: "Vertical padding (top + bottom)",
|
|
68753
|
+
required: false
|
|
68754
|
+
},
|
|
68755
|
+
paddingHorizontal: {
|
|
68756
|
+
name: "paddingHorizontal",
|
|
68757
|
+
type: "any",
|
|
68758
|
+
description: "Horizontal padding (left + right)",
|
|
68759
|
+
required: false
|
|
68760
|
+
},
|
|
68761
|
+
margin: {
|
|
68762
|
+
name: "margin",
|
|
68763
|
+
type: "any",
|
|
68764
|
+
description: "Margin on all sides (uses theme.sizes.view[size].spacing)",
|
|
68765
|
+
required: false
|
|
68766
|
+
},
|
|
68767
|
+
marginVertical: {
|
|
68768
|
+
name: "marginVertical",
|
|
68769
|
+
type: "any",
|
|
68770
|
+
description: "Vertical margin (top + bottom)",
|
|
68771
|
+
required: false
|
|
68772
|
+
},
|
|
68773
|
+
marginHorizontal: {
|
|
68774
|
+
name: "marginHorizontal",
|
|
68775
|
+
type: "any",
|
|
68776
|
+
description: "Horizontal margin (left + right)",
|
|
68777
|
+
required: false
|
|
68778
|
+
}
|
|
68779
|
+
},
|
|
68780
|
+
category: "display",
|
|
68781
|
+
filePath: "../components/src/ScrollView",
|
|
68782
|
+
sampleProps: {
|
|
68783
|
+
children: "'Scrollable content'"
|
|
68784
|
+
}
|
|
68785
|
+
},
|
|
68127
68786
|
Select: {
|
|
68128
68787
|
name: "Select",
|
|
68129
68788
|
description: "Dropdown selection component for choosing from a list of options.\nSupports searchable filtering on web and native presentation modes on iOS.",
|
|
@@ -69074,6 +69733,16 @@ var types_default = {
|
|
|
69074
69733
|
],
|
|
69075
69734
|
required: false
|
|
69076
69735
|
},
|
|
69736
|
+
fill: {
|
|
69737
|
+
name: "fill",
|
|
69738
|
+
type: "boolean | undefined",
|
|
69739
|
+
values: [
|
|
69740
|
+
"false",
|
|
69741
|
+
"true"
|
|
69742
|
+
],
|
|
69743
|
+
description: "When true, the textarea expands to fill available vertical space using flex.\nOverrides `rows` and `autoGrow` height logic. All container layers get `flex: 1`.",
|
|
69744
|
+
required: false
|
|
69745
|
+
},
|
|
69077
69746
|
maxLength: {
|
|
69078
69747
|
name: "maxLength",
|
|
69079
69748
|
type: "number | undefined",
|
|
@@ -69671,7 +70340,6 @@ var types_default = {
|
|
|
69671
70340
|
"false",
|
|
69672
70341
|
"true"
|
|
69673
70342
|
],
|
|
69674
|
-
description: "Enable scrollable content.\n- Native: Wraps children in a ScrollView\n- Web: Renders a wrapper + content structure where the wrapper fills available\n space (or uses explicit dimensions) and content is absolutely positioned with\n overflow:auto. Sizing/margin styles go to wrapper, visual styles to content.",
|
|
69675
70343
|
required: false
|
|
69676
70344
|
},
|
|
69677
70345
|
id: {
|
|
@@ -70370,7 +71038,12 @@ function postProcessComponentTypes(componentName, result) {
|
|
|
70370
71038
|
}
|
|
70371
71039
|
if (componentName.toLowerCase() === "view") {
|
|
70372
71040
|
if (typeof result === "object" && result !== null) {
|
|
70373
|
-
result.usageNote = "View spacing shorthand props: padding, paddingVertical, paddingHorizontal, margin, marginVertical, marginHorizontal, gap/spacing. These accept Size values (xs, sm, md, lg, xl). Do NOT use paddingTop, paddingBottom, paddingLeft, paddingRight, marginTop, marginBottom, marginLeft, marginRight as shorthand props \u2014 they do NOT exist and will cause TS2353. For single-side spacing use style={{ paddingTop: 16 }}. View does NOT have a `pointerEvents` JSX prop. Use style={{ pointerEvents: 'none' }} instead.";
|
|
71041
|
+
result.usageNote = "View spacing shorthand props: padding, paddingVertical, paddingHorizontal, margin, marginVertical, marginHorizontal, gap/spacing. These accept Size values (xs, sm, md, lg, xl). Do NOT use paddingTop, paddingBottom, paddingLeft, paddingRight, marginTop, marginBottom, marginLeft, marginRight as shorthand props \u2014 they do NOT exist and will cause TS2353. For single-side spacing use style={{ paddingTop: 16 }}. View does NOT have a `pointerEvents` JSX prop. Use style={{ pointerEvents: 'none' }} instead. **For scrollable content, use `<ScrollView>` from @idealyst/components** (NOT `<View scrollable>` which is deprecated). ScrollView supports direction ('vertical'|'horizontal'|'both'), scroll callbacks (onScroll, onEndReached), and imperative controls via ref (scrollTo, scrollToEnd, scrollToStart).";
|
|
71042
|
+
}
|
|
71043
|
+
}
|
|
71044
|
+
if (componentName.toLowerCase() === "scrollview") {
|
|
71045
|
+
if (typeof result === "object" && result !== null) {
|
|
71046
|
+
result.usageNote = "ScrollView is the replacement for the deprecated `<View scrollable>` pattern. Import from @idealyst/components: `import { ScrollView } from '@idealyst/components'`. Key props: direction ('vertical'|'horizontal'|'both'), onScroll, onScrollBegin, onScrollEnd, onEndReached (infinite scroll), showsIndicator, pagingEnabled, bounces, scrollEnabled, keyboardDismissMode. Accepts same spacing shorthand props as View: padding, paddingVertical, paddingHorizontal, gap, margin, etc. Imperative ref (ScrollViewRef): scrollTo({x,y,animated}), scrollToEnd(), scrollToStart(), getScrollPosition(). Use `contentContainerStyle` for inner content styling (e.g., gap between items). ScrollView needs bounded parent height \u2014 wrap in a flex:1 container or give explicit height. Example: `<ScrollView padding=\"md\" gap=\"sm\" onEndReached={loadMore}>{items.map(...)}</ScrollView>`";
|
|
70374
71047
|
}
|
|
70375
71048
|
}
|
|
70376
71049
|
if (componentName.toLowerCase() === "textarea") {
|
|
@@ -70385,7 +71058,7 @@ function postProcessComponentTypes(componentName, result) {
|
|
|
70385
71058
|
}
|
|
70386
71059
|
if (componentName.toLowerCase() === "icon") {
|
|
70387
71060
|
if (typeof result === "object" && result !== null) {
|
|
70388
|
-
result.usageNote = "Icon color props: Use `intent` for semantic coloring (primary, danger, success, etc.) \u2014 renders the icon in the intent's primary color. Use `textColor` for text-semantic coloring (primary, secondary, tertiary, inverse) \u2014 renders the icon using theme.colors.text[textColor]. Use `color` for
|
|
71061
|
+
result.usageNote = "Icon color props: Use `intent` for semantic coloring (primary, danger, success, etc.) \u2014 renders the icon in the intent's primary color. Use `textColor` for text-semantic coloring (primary, secondary, tertiary, inverse) \u2014 renders the icon using theme.colors.text[textColor]. Use `color` for palette colors (e.g., 'primary', 'blue.500'). **CRITICAL: `color` and `textColor` are MUTUALLY EXCLUSIVE (discriminated union).** NEVER pass both \u2014 even conditionally with undefined values. Use one or the other. WRONG: `<Icon name='x' color={cond ? 'primary' : undefined} textColor={cond ? undefined : 'secondary'} />` \u2014 causes TS2322. RIGHT: `<Icon name='x' color={isActive ? 'primary' : 'neutral.400'} />` or use separate JSX branches.";
|
|
70389
71062
|
}
|
|
70390
71063
|
}
|
|
70391
71064
|
if (componentName.toLowerCase() === "badge") {
|