@expo/ui 55.0.2 → 55.0.3
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/CHANGELOG.md +31 -0
- package/android/build.gradle +2 -2
- package/android/src/main/java/expo/modules/ui/AnimatedVisibilityView.kt +130 -0
- package/android/src/main/java/expo/modules/ui/CardView.kt +138 -34
- package/android/src/main/java/expo/modules/ui/CheckboxView.kt +98 -0
- package/android/src/main/java/expo/modules/ui/ChipView.kt +267 -142
- package/android/src/main/java/expo/modules/ui/DatePickerView.kt +258 -70
- package/android/src/main/java/expo/modules/ui/ExpoUIModule.kt +204 -57
- package/android/src/main/java/expo/modules/ui/ModifierRegistry.kt +44 -1
- package/android/src/main/java/expo/modules/ui/ProgressView.kt +189 -89
- package/android/src/main/java/expo/modules/ui/RadioButtonView.kt +3 -7
- package/android/src/main/java/expo/modules/ui/SegmentedButtonView.kt +115 -0
- package/android/src/main/java/expo/modules/ui/SegmentedControlView.kt +35 -0
- package/android/src/main/java/expo/modules/ui/SliderView.kt +70 -12
- package/android/src/main/java/expo/modules/ui/SwitchView.kt +53 -161
- package/android/src/main/java/expo/modules/ui/ToggleButtonView.kt +95 -57
- package/android/src/main/java/expo/modules/ui/button/Button.kt +117 -158
- package/android/src/main/java/expo/modules/ui/button/FloatingActionButton.kt +92 -0
- package/android/src/main/java/expo/modules/ui/button/IconButton.kt +73 -86
- package/android/src/main/java/expo/modules/ui/menu/DropdownMenu.kt +39 -0
- package/android/src/main/java/expo/modules/ui/menu/DropdownMenuItem.kt +70 -0
- package/android/src/main/java/expo/modules/ui/menu/DropdownMenuRecords.kt +18 -0
- package/build/jetpack-compose/AnimatedVisibility/index.d.ts +134 -0
- package/build/jetpack-compose/AnimatedVisibility/index.d.ts.map +1 -0
- package/build/jetpack-compose/AnimatedVisibility/symbols.d.ts +3 -0
- package/build/jetpack-compose/AnimatedVisibility/symbols.d.ts.map +1 -0
- package/build/jetpack-compose/Button/index.d.ts +65 -51
- package/build/jetpack-compose/Button/index.d.ts.map +1 -1
- package/build/jetpack-compose/Card/index.d.ts +72 -14
- package/build/jetpack-compose/Card/index.d.ts.map +1 -1
- package/build/jetpack-compose/Checkbox/index.d.ts +73 -0
- package/build/jetpack-compose/Checkbox/index.d.ts.map +1 -0
- package/build/jetpack-compose/Chip/index.d.ts +247 -27
- package/build/jetpack-compose/Chip/index.d.ts.map +1 -1
- package/build/jetpack-compose/DatePicker/index.d.ts +38 -3
- package/build/jetpack-compose/DatePicker/index.d.ts.map +1 -1
- package/build/jetpack-compose/DropdownMenu/DropdownMenuItem.d.ts +70 -0
- package/build/jetpack-compose/DropdownMenu/DropdownMenuItem.d.ts.map +1 -0
- package/build/jetpack-compose/DropdownMenu/index.d.ts +68 -0
- package/build/jetpack-compose/DropdownMenu/index.d.ts.map +1 -0
- package/build/jetpack-compose/FloatingActionButton/index.d.ts +150 -0
- package/build/jetpack-compose/FloatingActionButton/index.d.ts.map +1 -0
- package/build/jetpack-compose/HorizontalFloatingToolbar/index.d.ts +2 -2
- package/build/jetpack-compose/HorizontalFloatingToolbar/index.d.ts.map +1 -1
- package/build/jetpack-compose/IconButton/index.d.ts +45 -29
- package/build/jetpack-compose/IconButton/index.d.ts.map +1 -1
- package/build/jetpack-compose/MultiChoiceSegmentedButtonRow/index.d.ts +17 -0
- package/build/jetpack-compose/MultiChoiceSegmentedButtonRow/index.d.ts.map +1 -0
- package/build/jetpack-compose/Progress/index.d.ts +78 -35
- package/build/jetpack-compose/Progress/index.d.ts.map +1 -1
- package/build/jetpack-compose/RadioButton/index.d.ts +2 -2
- package/build/jetpack-compose/RadioButton/index.d.ts.map +1 -1
- package/build/jetpack-compose/SegmentedButton/index.d.ts +74 -0
- package/build/jetpack-compose/SegmentedButton/index.d.ts.map +1 -0
- package/build/jetpack-compose/SingleChoiceSegmentedButtonRow/index.d.ts +17 -0
- package/build/jetpack-compose/SingleChoiceSegmentedButtonRow/index.d.ts.map +1 -0
- package/build/jetpack-compose/Slider/index.d.ts +34 -10
- package/build/jetpack-compose/Slider/index.d.ts.map +1 -1
- package/build/jetpack-compose/Switch/index.d.ts +10 -50
- package/build/jetpack-compose/Switch/index.d.ts.map +1 -1
- package/build/jetpack-compose/ToggleButton/index.d.ts +60 -32
- package/build/jetpack-compose/ToggleButton/index.d.ts.map +1 -1
- package/build/jetpack-compose/index.d.ts +5 -4
- package/build/jetpack-compose/index.d.ts.map +1 -1
- package/build/jetpack-compose/modifiers/index.d.ts +18 -1
- package/build/jetpack-compose/modifiers/index.d.ts.map +1 -1
- package/build/swift-ui/ProgressView/index.d.ts +1 -5
- package/build/swift-ui/ProgressView/index.d.ts.map +1 -1
- package/build/swift-ui/Stepper/index.d.ts +3 -3
- package/build/swift-ui/Stepper/index.d.ts.map +1 -1
- package/build/swift-ui/Text/index.d.ts +33 -1
- package/build/swift-ui/Text/index.d.ts.map +1 -1
- package/build/swift-ui/modifiers/index.d.ts +22 -1
- package/build/swift-ui/modifiers/index.d.ts.map +1 -1
- package/build/swift-ui/modifiers/shapes/index.d.ts +2 -2
- package/build/swift-ui/types.d.ts +7 -0
- package/build/swift-ui/types.d.ts.map +1 -1
- package/expo-module.config.json +1 -1
- package/ios/BottomSheetView.swift +1 -6
- package/ios/ClosedRangeDateRecord.swift +10 -0
- package/ios/ColorPickerView.swift +9 -8
- package/ios/ConfirmationDialog/ConfirmationDialog.swift +4 -6
- package/ios/DatePickerView.swift +7 -5
- package/ios/DisclosureGroupView.swift +5 -7
- package/ios/ListView.swift +6 -14
- package/ios/Modifiers/DefaultScrollAnchorForRoleModifier.swift +32 -0
- package/ios/Modifiers/DefaultScrollAnchorModifier.swift +16 -0
- package/ios/Modifiers/ViewModifierRegistry.swift +8 -0
- package/ios/Picker/PickerView.swift +6 -10
- package/ios/Popover/PopoverView.swift +3 -5
- package/ios/ProgressView.swift +0 -5
- package/ios/SectionView.swift +3 -5
- package/ios/SliderView.swift +8 -6
- package/ios/StepperView.swift +12 -16
- package/ios/TextView.swift +37 -1
- package/ios/Toggle/ToggleView.swift +5 -7
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.3/expo.modules.ui-55.0.3-sources.jar +0 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.3/expo.modules.ui-55.0.3-sources.jar.md5 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.3/expo.modules.ui-55.0.3-sources.jar.sha1 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.3/expo.modules.ui-55.0.3-sources.jar.sha256 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.3/expo.modules.ui-55.0.3-sources.jar.sha512 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.3/expo.modules.ui-55.0.3.aar +0 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.3/expo.modules.ui-55.0.3.aar.md5 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.3/expo.modules.ui-55.0.3.aar.sha1 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.3/expo.modules.ui-55.0.3.aar.sha256 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.3/expo.modules.ui-55.0.3.aar.sha512 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/{55.0.2/expo.modules.ui-55.0.2.module → 55.0.3/expo.modules.ui-55.0.3.module} +22 -22
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.3/expo.modules.ui-55.0.3.module.md5 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.3/expo.modules.ui-55.0.3.module.sha1 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.3/expo.modules.ui-55.0.3.module.sha256 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.3/expo.modules.ui-55.0.3.module.sha512 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/{55.0.2/expo.modules.ui-55.0.2.pom → 55.0.3/expo.modules.ui-55.0.3.pom} +1 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.3/expo.modules.ui-55.0.3.pom.md5 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.3/expo.modules.ui-55.0.3.pom.sha1 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.3/expo.modules.ui-55.0.3.pom.sha256 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.3/expo.modules.ui-55.0.3.pom.sha512 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/maven-metadata.xml +4 -4
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/maven-metadata.xml.md5 +1 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/maven-metadata.xml.sha1 +1 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/maven-metadata.xml.sha256 +1 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/maven-metadata.xml.sha512 +1 -1
- package/package.json +5 -2
- package/src/jetpack-compose/AnimatedVisibility/index.tsx +206 -0
- package/src/jetpack-compose/AnimatedVisibility/symbols.ts +8 -0
- package/src/jetpack-compose/Button/index.tsx +69 -92
- package/src/jetpack-compose/Card/index.tsx +105 -29
- package/src/jetpack-compose/Checkbox/index.tsx +126 -0
- package/src/jetpack-compose/Chip/index.tsx +391 -51
- package/src/jetpack-compose/DatePicker/index.tsx +112 -7
- package/src/jetpack-compose/DropdownMenu/DropdownMenuItem.tsx +126 -0
- package/src/jetpack-compose/DropdownMenu/index.tsx +107 -0
- package/src/jetpack-compose/FloatingActionButton/index.tsx +207 -0
- package/src/jetpack-compose/HorizontalFloatingToolbar/index.tsx +4 -2
- package/src/jetpack-compose/IconButton/index.tsx +49 -56
- package/src/jetpack-compose/MultiChoiceSegmentedButtonRow/index.tsx +34 -0
- package/src/jetpack-compose/Progress/index.tsx +120 -62
- package/src/jetpack-compose/RadioButton/index.tsx +8 -9
- package/src/jetpack-compose/SegmentedButton/index.tsx +109 -0
- package/src/jetpack-compose/SingleChoiceSegmentedButtonRow/index.tsx +34 -0
- package/src/jetpack-compose/Slider/index.tsx +76 -29
- package/src/jetpack-compose/Switch/index.tsx +17 -87
- package/src/jetpack-compose/ToggleButton/index.tsx +67 -43
- package/src/jetpack-compose/index.ts +5 -4
- package/src/jetpack-compose/modifiers/index.ts +26 -2
- package/src/swift-ui/ProgressView/index.tsx +1 -3
- package/src/swift-ui/Stepper/index.tsx +7 -7
- package/src/swift-ui/Text/index.tsx +66 -2
- package/src/swift-ui/modifiers/index.ts +40 -0
- package/src/swift-ui/types.ts +5 -0
- package/android/src/main/java/expo/modules/ui/FilterChipView.kt +0 -59
- package/android/src/main/java/expo/modules/ui/PickerView.kt +0 -161
- package/android/src/main/java/expo/modules/ui/TextButtonView.kt +0 -33
- package/android/src/main/java/expo/modules/ui/menu/ContextMenu.kt +0 -183
- package/android/src/main/java/expo/modules/ui/menu/ContextMenuRecords.kt +0 -64
- package/build/jetpack-compose/Button/types.d.ts +0 -5
- package/build/jetpack-compose/Button/types.d.ts.map +0 -1
- package/build/jetpack-compose/ContextMenu/Submenu.d.ts +0 -17
- package/build/jetpack-compose/ContextMenu/Submenu.d.ts.map +0 -1
- package/build/jetpack-compose/ContextMenu/index.d.ts +0 -65
- package/build/jetpack-compose/ContextMenu/index.d.ts.map +0 -1
- package/build/jetpack-compose/ContextMenu/utils.d.ts +0 -24
- package/build/jetpack-compose/ContextMenu/utils.d.ts.map +0 -1
- package/build/jetpack-compose/FilterChip/index.d.ts +0 -49
- package/build/jetpack-compose/FilterChip/index.d.ts.map +0 -1
- package/build/jetpack-compose/Picker/index.d.ts +0 -62
- package/build/jetpack-compose/Picker/index.d.ts.map +0 -1
- package/build/jetpack-compose/TextButton/index.d.ts +0 -29
- package/build/jetpack-compose/TextButton/index.d.ts.map +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.2/expo.modules.ui-55.0.2-sources.jar +0 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.2/expo.modules.ui-55.0.2-sources.jar.md5 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.2/expo.modules.ui-55.0.2-sources.jar.sha1 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.2/expo.modules.ui-55.0.2-sources.jar.sha256 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.2/expo.modules.ui-55.0.2-sources.jar.sha512 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.2/expo.modules.ui-55.0.2.aar +0 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.2/expo.modules.ui-55.0.2.aar.md5 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.2/expo.modules.ui-55.0.2.aar.sha1 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.2/expo.modules.ui-55.0.2.aar.sha256 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.2/expo.modules.ui-55.0.2.aar.sha512 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.2/expo.modules.ui-55.0.2.module.md5 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.2/expo.modules.ui-55.0.2.module.sha1 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.2/expo.modules.ui-55.0.2.module.sha256 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.2/expo.modules.ui-55.0.2.module.sha512 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.2/expo.modules.ui-55.0.2.pom.md5 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.2/expo.modules.ui-55.0.2.pom.sha1 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.2/expo.modules.ui-55.0.2.pom.sha256 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.2/expo.modules.ui-55.0.2.pom.sha512 +0 -1
- package/src/jetpack-compose/Button/types.ts +0 -57
- package/src/jetpack-compose/ContextMenu/Submenu.tsx +0 -21
- package/src/jetpack-compose/ContextMenu/index.tsx +0 -149
- package/src/jetpack-compose/ContextMenu/utils.ts +0 -144
- package/src/jetpack-compose/FilterChip/index.tsx +0 -89
- package/src/jetpack-compose/Picker/index.tsx +0 -90
- package/src/jetpack-compose/TextButton/index.tsx +0 -55
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import { type ColorValue } from 'react-native';
|
|
2
|
+
import { ModifierConfig } from '../../types';
|
|
3
|
+
type SlotChildProps = {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* Props shared by all `FloatingActionButton` variants.
|
|
8
|
+
*/
|
|
9
|
+
export type FloatingActionButtonProps = {
|
|
10
|
+
/**
|
|
11
|
+
* Slot-based children (use `.Icon` sub-component).
|
|
12
|
+
*/
|
|
13
|
+
children: React.ReactNode;
|
|
14
|
+
/**
|
|
15
|
+
* The background color of the button container.
|
|
16
|
+
* Defaults to `FloatingActionButtonDefaults.containerColor` (primary container).
|
|
17
|
+
*/
|
|
18
|
+
containerColor?: ColorValue;
|
|
19
|
+
/**
|
|
20
|
+
* Callback invoked when the button is clicked.
|
|
21
|
+
*/
|
|
22
|
+
onClick?: () => void;
|
|
23
|
+
/**
|
|
24
|
+
* Modifiers for the component.
|
|
25
|
+
*/
|
|
26
|
+
modifiers?: ModifierConfig[];
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Props for the `SmallFloatingActionButton` component.
|
|
30
|
+
* Same as {@link FloatingActionButtonProps}.
|
|
31
|
+
*/
|
|
32
|
+
export type SmallFloatingActionButtonProps = FloatingActionButtonProps;
|
|
33
|
+
/**
|
|
34
|
+
* Props for the `LargeFloatingActionButton` component.
|
|
35
|
+
* Same as {@link FloatingActionButtonProps}.
|
|
36
|
+
*/
|
|
37
|
+
export type LargeFloatingActionButtonProps = FloatingActionButtonProps;
|
|
38
|
+
/**
|
|
39
|
+
* Props for the `ExtendedFloatingActionButton` component.
|
|
40
|
+
*/
|
|
41
|
+
export type ExtendedFloatingActionButtonProps = FloatingActionButtonProps & {
|
|
42
|
+
/**
|
|
43
|
+
* Slot-based children (use `.Icon` and `.Text` sub-components).
|
|
44
|
+
*/
|
|
45
|
+
children: React.ReactNode;
|
|
46
|
+
/**
|
|
47
|
+
* Controls whether the label is shown (expanded) or hidden (collapsed).
|
|
48
|
+
* @default true
|
|
49
|
+
*/
|
|
50
|
+
expanded?: boolean;
|
|
51
|
+
};
|
|
52
|
+
declare function FABIcon(props: SlotChildProps): import("react").JSX.Element;
|
|
53
|
+
declare function FABText(props: SlotChildProps): import("react").JSX.Element;
|
|
54
|
+
/**
|
|
55
|
+
* Renders a Material Design 3 small `FloatingActionButton`.
|
|
56
|
+
*
|
|
57
|
+
* Wraps [`SmallFloatingActionButton`](https://developer.android.com/reference/kotlin/androidx/compose/material3/package-summary#SmallFloatingActionButton(kotlin.Function0,androidx.compose.ui.Modifier,androidx.compose.ui.graphics.Shape,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.material3.FloatingActionButtonElevation,androidx.compose.foundation.interaction.MutableInteractionSource,kotlin.Function0)).
|
|
58
|
+
*
|
|
59
|
+
* @example
|
|
60
|
+
* ```tsx
|
|
61
|
+
* import { SmallFloatingActionButton, Host, Icon } from '@expo/ui/jetpack-compose';
|
|
62
|
+
*
|
|
63
|
+
* <Host matchContents>
|
|
64
|
+
* <SmallFloatingActionButton onClick={() => console.log('pressed')}>
|
|
65
|
+
* <SmallFloatingActionButton.Icon>
|
|
66
|
+
* <Icon source={require('./assets/add.xml')} />
|
|
67
|
+
* </SmallFloatingActionButton.Icon>
|
|
68
|
+
* </SmallFloatingActionButton>
|
|
69
|
+
* </Host>
|
|
70
|
+
* ```
|
|
71
|
+
*/
|
|
72
|
+
declare function SmallFloatingActionButtonComponent(props: SmallFloatingActionButtonProps): import("react").JSX.Element;
|
|
73
|
+
declare namespace SmallFloatingActionButtonComponent {
|
|
74
|
+
var Icon: typeof FABIcon;
|
|
75
|
+
}
|
|
76
|
+
export { SmallFloatingActionButtonComponent as SmallFloatingActionButton };
|
|
77
|
+
/**
|
|
78
|
+
* Renders a Material Design 3 standard `FloatingActionButton`.
|
|
79
|
+
*
|
|
80
|
+
* Wraps [`FloatingActionButton`](https://developer.android.com/reference/kotlin/androidx/compose/material3/package-summary#FloatingActionButton(kotlin.Function0,androidx.compose.ui.Modifier,androidx.compose.ui.graphics.Shape,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.material3.FloatingActionButtonElevation,androidx.compose.foundation.interaction.MutableInteractionSource,kotlin.Function0)).
|
|
81
|
+
*
|
|
82
|
+
* @example
|
|
83
|
+
* ```tsx
|
|
84
|
+
* import { FloatingActionButton, Host, Icon } from '@expo/ui/jetpack-compose';
|
|
85
|
+
*
|
|
86
|
+
* <Host matchContents>
|
|
87
|
+
* <FloatingActionButton onClick={() => console.log('pressed')}>
|
|
88
|
+
* <FloatingActionButton.Icon>
|
|
89
|
+
* <Icon source={require('./assets/add.xml')} />
|
|
90
|
+
* </FloatingActionButton.Icon>
|
|
91
|
+
* </FloatingActionButton>
|
|
92
|
+
* </Host>
|
|
93
|
+
* ```
|
|
94
|
+
*/
|
|
95
|
+
declare function FloatingActionButtonComponent(props: FloatingActionButtonProps): import("react").JSX.Element;
|
|
96
|
+
declare namespace FloatingActionButtonComponent {
|
|
97
|
+
var Icon: typeof FABIcon;
|
|
98
|
+
}
|
|
99
|
+
export { FloatingActionButtonComponent as FloatingActionButton };
|
|
100
|
+
/**
|
|
101
|
+
* Renders a Material Design 3 large `FloatingActionButton`.
|
|
102
|
+
*
|
|
103
|
+
* Wraps [`LargeFloatingActionButton`](https://developer.android.com/reference/kotlin/androidx/compose/material3/package-summary#LargeFloatingActionButton(kotlin.Function0,androidx.compose.ui.Modifier,androidx.compose.ui.graphics.Shape,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.material3.FloatingActionButtonElevation,androidx.compose.foundation.interaction.MutableInteractionSource,kotlin.Function0)).
|
|
104
|
+
*
|
|
105
|
+
* @example
|
|
106
|
+
* ```tsx
|
|
107
|
+
* import { LargeFloatingActionButton, Host, Icon } from '@expo/ui/jetpack-compose';
|
|
108
|
+
*
|
|
109
|
+
* <Host matchContents>
|
|
110
|
+
* <LargeFloatingActionButton onClick={() => console.log('pressed')}>
|
|
111
|
+
* <LargeFloatingActionButton.Icon>
|
|
112
|
+
* <Icon source={require('./assets/add.xml')} />
|
|
113
|
+
* </LargeFloatingActionButton.Icon>
|
|
114
|
+
* </LargeFloatingActionButton>
|
|
115
|
+
* </Host>
|
|
116
|
+
* ```
|
|
117
|
+
*/
|
|
118
|
+
declare function LargeFloatingActionButtonComponent(props: LargeFloatingActionButtonProps): import("react").JSX.Element;
|
|
119
|
+
declare namespace LargeFloatingActionButtonComponent {
|
|
120
|
+
var Icon: typeof FABIcon;
|
|
121
|
+
}
|
|
122
|
+
export { LargeFloatingActionButtonComponent as LargeFloatingActionButton };
|
|
123
|
+
/**
|
|
124
|
+
* Renders a Material Design 3 `ExtendedFloatingActionButton` with animated label expansion.
|
|
125
|
+
*
|
|
126
|
+
* Wraps [`ExtendedFloatingActionButton`](https://developer.android.com/reference/kotlin/androidx/compose/material3/package-summary#ExtendedFloatingActionButton(kotlin.Function0,androidx.compose.ui.Modifier,androidx.compose.ui.graphics.Shape,androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,androidx.compose.material3.FloatingActionButtonElevation,androidx.compose.foundation.interaction.MutableInteractionSource,kotlin.Function1)).
|
|
127
|
+
*
|
|
128
|
+
* @example
|
|
129
|
+
* ```tsx
|
|
130
|
+
* import { ExtendedFloatingActionButton, Host, Icon, Text } from '@expo/ui/jetpack-compose';
|
|
131
|
+
*
|
|
132
|
+
* <Host matchContents>
|
|
133
|
+
* <ExtendedFloatingActionButton expanded={true} onClick={() => console.log('pressed')}>
|
|
134
|
+
* <ExtendedFloatingActionButton.Icon>
|
|
135
|
+
* <Icon source={require('./assets/edit.xml')} />
|
|
136
|
+
* </ExtendedFloatingActionButton.Icon>
|
|
137
|
+
* <ExtendedFloatingActionButton.Text>
|
|
138
|
+
* <Text>Edit</Text>
|
|
139
|
+
* </ExtendedFloatingActionButton.Text>
|
|
140
|
+
* </ExtendedFloatingActionButton>
|
|
141
|
+
* </Host>
|
|
142
|
+
* ```
|
|
143
|
+
*/
|
|
144
|
+
declare function ExtendedFloatingActionButtonComponent(props: ExtendedFloatingActionButtonProps): import("react").JSX.Element;
|
|
145
|
+
declare namespace ExtendedFloatingActionButtonComponent {
|
|
146
|
+
var Icon: typeof FABIcon;
|
|
147
|
+
var Text: typeof FABText;
|
|
148
|
+
}
|
|
149
|
+
export { ExtendedFloatingActionButtonComponent as ExtendedFloatingActionButton };
|
|
150
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/jetpack-compose/FloatingActionButton/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,EAAE,cAAc,EAAa,MAAM,aAAa,CAAC;AAGxD,KAAK,cAAc,GAAG;IACpB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAOF;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG;IACtC;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAE1B;;;OAGG;IACH,cAAc,CAAC,EAAE,UAAU,CAAC;IAE5B;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAErB;;OAEG;IACH,SAAS,CAAC,EAAE,cAAc,EAAE,CAAC;CAC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ionButtonProps = {
|
|
18
18
|
/**
|
|
19
19
|
* A callback that is called when the button is pressed.
|
|
20
20
|
*/
|
|
@@ -28,7 +28,7 @@ export type FloatingActionButtonProps = {
|
|
|
28
28
|
* FloatingActionButton component for HorizontalFloatingToolbar.
|
|
29
29
|
* This component marks its children to be rendered in the FAB slot.
|
|
30
30
|
*/
|
|
31
|
-
export declare function HorizontalFloatingToolbarFloatingActionButton(props:
|
|
31
|
+
export declare function HorizontalFloatingToolbarFloatingActionButton(props: HorizontalFloatingToolbarFloatingActionButtonProps): import("react").JSX.Element;
|
|
32
32
|
/**
|
|
33
33
|
* Renders a `HorizontalFloatingToolbar` component.
|
|
34
34
|
* A horizontal toolbar that floats above content, typically used for action buttons.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/jetpack-compose/HorizontalFloatingToolbar/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAG3C,MAAM,MAAM,8BAA8B,GAAG;IAC3C;;;OAGG;IACH,OAAO,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;IAEjC;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAE1B;;OAEG;IACH,SAAS,CAAC,EAAE,YAAY,EAAE,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/jetpack-compose/HorizontalFloatingToolbar/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAG3C,MAAM,MAAM,8BAA8B,GAAG;IAC3C;;;OAGG;IACH,OAAO,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;IAEjC;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAE1B;;OAEG;IACH,SAAS,CAAC,EAAE,YAAY,EAAE,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,kDAAkD,GAAG;IAC/D;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAErB;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAmBF;;;GAGG;AACH,wBAAgB,6CAA6C,CAC3D,KAAK,EAAE,kDAAkD,+BAO1D;AAaD;;;GAGG;AACH,iBAAS,yBAAyB,CAAC,KAAK,EAAE,8BAA8B,+BAMvE;kBANQ,yBAAyB;;;AAUlC,OAAO,EAAE,yBAAyB,EAAE,CAAC"}
|
|
@@ -1,53 +1,69 @@
|
|
|
1
1
|
import { type ColorValue } from 'react-native';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { ShapeJSXElement, ShapeRecordProps } from '../Shape';
|
|
2
|
+
import type { ModifierConfig } from '../../types';
|
|
3
|
+
import { type ShapeJSXElement } from '../Shape';
|
|
5
4
|
/**
|
|
6
|
-
*
|
|
7
|
-
* - `outlined` - A button with an outline.
|
|
8
|
-
* - `elevated` - A filled button with a shadow.
|
|
5
|
+
* Colors for icon button elements.
|
|
9
6
|
*/
|
|
10
|
-
export type
|
|
7
|
+
export type IconButtonColors = {
|
|
8
|
+
containerColor?: ColorValue;
|
|
9
|
+
contentColor?: ColorValue;
|
|
10
|
+
disabledContainerColor?: ColorValue;
|
|
11
|
+
disabledContentColor?: ColorValue;
|
|
12
|
+
};
|
|
11
13
|
export type IconButtonProps = {
|
|
12
14
|
/**
|
|
13
|
-
*
|
|
14
|
-
*/
|
|
15
|
-
onPress?: () => void;
|
|
16
|
-
/**
|
|
17
|
-
* The button variant.
|
|
15
|
+
* Callback that is called when the icon button is clicked.
|
|
18
16
|
*/
|
|
19
|
-
|
|
17
|
+
onClick?: () => void;
|
|
20
18
|
/**
|
|
21
|
-
*
|
|
19
|
+
* Whether the icon button is enabled for user interaction.
|
|
20
|
+
* @default true
|
|
22
21
|
*/
|
|
23
|
-
|
|
22
|
+
enabled?: boolean;
|
|
24
23
|
/**
|
|
25
|
-
* Colors for button
|
|
24
|
+
* Colors for icon button elements.
|
|
26
25
|
* @platform android
|
|
27
26
|
*/
|
|
28
|
-
|
|
27
|
+
colors?: IconButtonColors;
|
|
29
28
|
/**
|
|
30
|
-
*
|
|
29
|
+
* The shape of the icon button.
|
|
31
30
|
*/
|
|
32
|
-
color?: ColorValue;
|
|
33
31
|
shape?: ShapeJSXElement;
|
|
34
32
|
/**
|
|
35
|
-
*
|
|
33
|
+
* Modifiers for the component.
|
|
36
34
|
*/
|
|
37
|
-
|
|
35
|
+
modifiers?: ModifierConfig[];
|
|
38
36
|
/**
|
|
39
|
-
*
|
|
37
|
+
* Content to display inside the icon button.
|
|
40
38
|
*/
|
|
41
|
-
|
|
39
|
+
children: React.ReactNode;
|
|
42
40
|
};
|
|
43
41
|
/**
|
|
44
|
-
*
|
|
42
|
+
* A standard icon button with no background.
|
|
45
43
|
*/
|
|
46
|
-
export
|
|
47
|
-
|
|
48
|
-
|
|
44
|
+
export declare const IconButton: {
|
|
45
|
+
(props: IconButtonProps): import("react").JSX.Element;
|
|
46
|
+
displayName: string;
|
|
47
|
+
};
|
|
49
48
|
/**
|
|
50
|
-
*
|
|
49
|
+
* A filled icon button with a solid background.
|
|
51
50
|
*/
|
|
52
|
-
export declare
|
|
51
|
+
export declare const FilledIconButton: {
|
|
52
|
+
(props: IconButtonProps): import("react").JSX.Element;
|
|
53
|
+
displayName: string;
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* A filled tonal icon button with a muted background.
|
|
57
|
+
*/
|
|
58
|
+
export declare const FilledTonalIconButton: {
|
|
59
|
+
(props: IconButtonProps): import("react").JSX.Element;
|
|
60
|
+
displayName: string;
|
|
61
|
+
};
|
|
62
|
+
/**
|
|
63
|
+
* An outlined icon button with a border and no fill.
|
|
64
|
+
*/
|
|
65
|
+
export declare const OutlinedIconButton: {
|
|
66
|
+
(props: IconButtonProps): import("react").JSX.Element;
|
|
67
|
+
displayName: string;
|
|
68
|
+
};
|
|
53
69
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/jetpack-compose/IconButton/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/jetpack-compose/IconButton/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,KAAK,EAAE,cAAc,EAAa,MAAM,aAAa,CAAC;AAE7D,OAAO,EAAE,KAAK,eAAe,EAAyB,MAAM,UAAU,CAAC;AAEvE;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B,cAAc,CAAC,EAAE,UAAU,CAAC;IAC5B,YAAY,CAAC,EAAE,UAAU,CAAC;IAC1B,sBAAsB,CAAC,EAAE,UAAU,CAAC;IACpC,oBAAoB,CAAC,EAAE,UAAU,CAAC;CACnC,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC1B;;OAEG;IACH,KAAK,CAAC,EAAE,eAAe,CAAC;IACxB;;OAEG;IACH,SAAS,CAAC,EAAE,cAAc,EAAE,CAAC;IAC7B;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAkBF;;GAEG;AACH,eAAO,MAAM,UAAU;YAXK,eAAe;;CAWsB,CAAC;AAElE;;GAEG;AACH,eAAO,MAAM,gBAAgB;YAhBD,eAAe;;CAgBkC,CAAC;AAE9E;;GAEG;AACH,eAAO,MAAM,qBAAqB;YArBN,eAAe;;CAqB4C,CAAC;AAExF;;GAEG;AACH,eAAO,MAAM,kBAAkB;YA1BH,eAAe;;CA0BsC,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type ModifierConfig } from '../../types';
|
|
2
|
+
export type MultiChoiceSegmentedButtonRowProps = {
|
|
3
|
+
/**
|
|
4
|
+
* SegmentedButton children.
|
|
5
|
+
*/
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
/**
|
|
8
|
+
* Modifiers for the component.
|
|
9
|
+
*/
|
|
10
|
+
modifiers?: ModifierConfig[];
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* A row container for multi-choice `SegmentedButton` children.
|
|
14
|
+
* Maps to Material 3 `MultiChoiceSegmentedButtonRow`.
|
|
15
|
+
*/
|
|
16
|
+
export declare function MultiChoiceSegmentedButtonRow(props: MultiChoiceSegmentedButtonRowProps): import("react").JSX.Element;
|
|
17
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/jetpack-compose/MultiChoiceSegmentedButtonRow/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,aAAa,CAAC;AAGlD,MAAM,MAAM,kCAAkC,GAAG;IAC/C;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;OAEG;IACH,SAAS,CAAC,EAAE,cAAc,EAAE,CAAC;CAC9B,CAAC;AAKF;;;GAGG;AACH,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,kCAAkC,+BAUtF"}
|
|
@@ -1,65 +1,108 @@
|
|
|
1
|
-
import { ColorValue } from 'react-native';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
export type CircularProgressProps = {
|
|
1
|
+
import { type ColorValue } from 'react-native';
|
|
2
|
+
import { type ModifierConfig } from '../../types';
|
|
3
|
+
/**
|
|
4
|
+
* Stroke cap style for progress indicators.
|
|
5
|
+
*/
|
|
6
|
+
export type StrokeCap = 'round' | 'butt' | 'square';
|
|
7
|
+
/**
|
|
8
|
+
* Common props shared by all progress indicator variants.
|
|
9
|
+
*/
|
|
10
|
+
type BaseProgressProps = {
|
|
12
11
|
/**
|
|
13
|
-
* The current progress value
|
|
12
|
+
* The current progress value between `0` and `1`. Omit for indeterminate.
|
|
14
13
|
*/
|
|
15
14
|
progress?: number | null;
|
|
16
15
|
/**
|
|
17
|
-
* Progress color.
|
|
16
|
+
* Progress indicator color.
|
|
18
17
|
*/
|
|
19
18
|
color?: ColorValue;
|
|
20
19
|
/**
|
|
21
|
-
*
|
|
22
|
-
* @platform android
|
|
20
|
+
* Track (background) color.
|
|
23
21
|
*/
|
|
24
|
-
|
|
22
|
+
trackColor?: ColorValue;
|
|
25
23
|
/**
|
|
26
24
|
* Modifiers for the component.
|
|
27
25
|
*/
|
|
28
|
-
modifiers?:
|
|
26
|
+
modifiers?: ModifierConfig[];
|
|
29
27
|
};
|
|
30
|
-
|
|
28
|
+
/**
|
|
29
|
+
* Configuration for the stop indicator dot at the end of the determinate linear progress track.
|
|
30
|
+
* When provided, draws a stop indicator with the given options. Omit to use the Compose default.
|
|
31
|
+
*/
|
|
32
|
+
export type DrawStopIndicatorConfig = {
|
|
31
33
|
/**
|
|
32
|
-
*
|
|
34
|
+
* Color of the stop indicator. Defaults to the indicator's color.
|
|
33
35
|
*/
|
|
34
|
-
|
|
36
|
+
color?: ColorValue;
|
|
35
37
|
/**
|
|
36
|
-
*
|
|
38
|
+
* Stroke cap style for the stop indicator. Defaults to the indicator's strokeCap.
|
|
37
39
|
*/
|
|
38
|
-
|
|
40
|
+
strokeCap?: StrokeCap;
|
|
41
|
+
/**
|
|
42
|
+
* Size of the stop indicator in dp. Defaults to the Material 3 default.
|
|
43
|
+
*/
|
|
44
|
+
stopSize?: number;
|
|
45
|
+
};
|
|
46
|
+
export type LinearProgressIndicatorProps = BaseProgressProps & {
|
|
39
47
|
/**
|
|
40
|
-
*
|
|
41
|
-
* @
|
|
48
|
+
* Stroke cap style for the indicator ends.
|
|
49
|
+
* @default 'round'
|
|
42
50
|
*/
|
|
43
|
-
|
|
51
|
+
strokeCap?: StrokeCap;
|
|
44
52
|
/**
|
|
45
|
-
*
|
|
53
|
+
* Gap size between the indicator and track in dp.
|
|
54
|
+
*/
|
|
55
|
+
gapSize?: number;
|
|
56
|
+
/**
|
|
57
|
+
* Configuration for the stop indicator dot at the end of the determinate progress track.
|
|
46
58
|
*/
|
|
47
|
-
|
|
59
|
+
drawStopIndicator?: DrawStopIndicatorConfig;
|
|
48
60
|
};
|
|
49
61
|
/**
|
|
50
|
-
*
|
|
62
|
+
* A linear progress indicator that displays progress in a horizontal bar.
|
|
63
|
+
*
|
|
64
|
+
* Matches the Jetpack Compose `LinearProgressIndicator`.
|
|
51
65
|
*/
|
|
52
|
-
export declare
|
|
66
|
+
export declare const LinearProgressIndicator: import("react").ComponentType<LinearProgressIndicatorProps>;
|
|
67
|
+
export type CircularProgressIndicatorProps = BaseProgressProps & {
|
|
68
|
+
/**
|
|
69
|
+
* Width of the circular stroke in dp.
|
|
70
|
+
*/
|
|
71
|
+
strokeWidth?: number;
|
|
72
|
+
/**
|
|
73
|
+
* Stroke cap style for the indicator ends.
|
|
74
|
+
* @default 'round'
|
|
75
|
+
*/
|
|
76
|
+
strokeCap?: StrokeCap;
|
|
77
|
+
/**
|
|
78
|
+
* Gap size between the indicator and track in dp.
|
|
79
|
+
*/
|
|
80
|
+
gapSize?: number;
|
|
81
|
+
};
|
|
53
82
|
/**
|
|
54
|
-
*
|
|
83
|
+
* A circular progress indicator that displays progress in a circular format.
|
|
84
|
+
*
|
|
85
|
+
* Matches the Jetpack Compose `CircularProgressIndicator`.
|
|
55
86
|
*/
|
|
56
|
-
export declare
|
|
87
|
+
export declare const CircularProgressIndicator: import("react").ComponentType<CircularProgressIndicatorProps>;
|
|
88
|
+
export type LinearWavyProgressIndicatorProps = BaseProgressProps & {
|
|
89
|
+
/**
|
|
90
|
+
* Size of the stop indicator in dp at the end of the determinate progress track.
|
|
91
|
+
*/
|
|
92
|
+
stopSize?: number;
|
|
93
|
+
};
|
|
57
94
|
/**
|
|
58
|
-
*
|
|
95
|
+
* A linear progress indicator with wavy animation style.
|
|
96
|
+
*
|
|
97
|
+
* Matches the Jetpack Compose `LinearWavyProgressIndicator`.
|
|
59
98
|
*/
|
|
60
|
-
export declare
|
|
99
|
+
export declare const LinearWavyProgressIndicator: import("react").ComponentType<LinearWavyProgressIndicatorProps>;
|
|
100
|
+
export type CircularWavyProgressIndicatorProps = BaseProgressProps;
|
|
61
101
|
/**
|
|
62
|
-
*
|
|
102
|
+
* A circular progress indicator with wavy animation style.
|
|
103
|
+
*
|
|
104
|
+
* Matches the Jetpack Compose `CircularWavyProgressIndicator`.
|
|
63
105
|
*/
|
|
64
|
-
export declare
|
|
106
|
+
export declare const CircularWavyProgressIndicator: import("react").ComponentType<BaseProgressProps>;
|
|
107
|
+
export {};
|
|
65
108
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/jetpack-compose/Progress/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/jetpack-compose/Progress/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,aAAa,CAAC;AAGlD;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAC;AAEpD;;GAEG;AACH,KAAK,iBAA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}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type ModifierConfig } from '../../types';
|
|
2
2
|
export type RadioButtonProps = {
|
|
3
3
|
/**
|
|
4
4
|
* Whether the radio button is selected.
|
|
@@ -11,7 +11,7 @@ export type RadioButtonProps = {
|
|
|
11
11
|
/**
|
|
12
12
|
* Modifiers for the component.
|
|
13
13
|
*/
|
|
14
|
-
modifiers?:
|
|
14
|
+
modifiers?: ModifierConfig[];
|
|
15
15
|
};
|
|
16
16
|
/**
|
|
17
17
|
* A Material Design radio button.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/jetpack-compose/RadioButton/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/jetpack-compose/RadioButton/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,cAAc,EAAkB,MAAM,aAAa,CAAC;AAGlE,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;OAEG;IACH,QAAQ,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;OAEG;IACH,SAAS,CAAC,EAAE,cAAc,EAAE,CAAC;CAC9B,CAAC;AAuBF;;GAEG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,+BAElD"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { type ColorValue } from 'react-native';
|
|
2
|
+
import { type ModifierConfig } from '../../types';
|
|
3
|
+
/**
|
|
4
|
+
* Colors for the segmented button in different states.
|
|
5
|
+
*/
|
|
6
|
+
export type SegmentedButtonColors = {
|
|
7
|
+
activeBorderColor?: ColorValue;
|
|
8
|
+
activeContentColor?: ColorValue;
|
|
9
|
+
inactiveBorderColor?: ColorValue;
|
|
10
|
+
inactiveContentColor?: ColorValue;
|
|
11
|
+
disabledActiveBorderColor?: ColorValue;
|
|
12
|
+
disabledActiveContentColor?: ColorValue;
|
|
13
|
+
disabledInactiveBorderColor?: ColorValue;
|
|
14
|
+
disabledInactiveContentColor?: ColorValue;
|
|
15
|
+
activeContainerColor?: ColorValue;
|
|
16
|
+
inactiveContainerColor?: ColorValue;
|
|
17
|
+
disabledActiveContainerColor?: ColorValue;
|
|
18
|
+
disabledInactiveContainerColor?: ColorValue;
|
|
19
|
+
};
|
|
20
|
+
export type SegmentedButtonProps = {
|
|
21
|
+
/**
|
|
22
|
+
* Whether the button is currently selected (used inside `SingleChoiceSegmentedButtonRow`).
|
|
23
|
+
*/
|
|
24
|
+
selected?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Callback that is called when the button is clicked (used inside `SingleChoiceSegmentedButtonRow`).
|
|
27
|
+
*/
|
|
28
|
+
onClick?: () => void;
|
|
29
|
+
/**
|
|
30
|
+
* Whether the button is currently checked (used inside `MultiChoiceSegmentedButtonRow`).
|
|
31
|
+
*/
|
|
32
|
+
checked?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Callback that is called when the checked state changes (used inside `MultiChoiceSegmentedButtonRow`).
|
|
35
|
+
*/
|
|
36
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
37
|
+
/**
|
|
38
|
+
* Whether the button is enabled.
|
|
39
|
+
* @default true
|
|
40
|
+
*/
|
|
41
|
+
enabled?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Colors for the button in different states.
|
|
44
|
+
*/
|
|
45
|
+
colors?: SegmentedButtonColors;
|
|
46
|
+
/**
|
|
47
|
+
* Modifiers for the component.
|
|
48
|
+
*/
|
|
49
|
+
modifiers?: ModifierConfig[];
|
|
50
|
+
/**
|
|
51
|
+
* Children containing a `Label` slot.
|
|
52
|
+
*/
|
|
53
|
+
children?: React.ReactNode;
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* Label slot for `SegmentedButton`.
|
|
57
|
+
*/
|
|
58
|
+
declare function SegmentedButtonLabel(props: {
|
|
59
|
+
children: React.ReactNode;
|
|
60
|
+
}): import("react").JSX.Element;
|
|
61
|
+
/**
|
|
62
|
+
* A Material 3 segmented button. Must be used inside a `SingleChoiceSegmentedButtonRow`
|
|
63
|
+
* or `MultiChoiceSegmentedButtonRow`.
|
|
64
|
+
*/
|
|
65
|
+
declare function SegmentedButtonComponent(props: SegmentedButtonProps): import("react").JSX.Element;
|
|
66
|
+
declare namespace SegmentedButtonComponent {
|
|
67
|
+
var Label: typeof SegmentedButtonLabel;
|
|
68
|
+
}
|
|
69
|
+
export { SegmentedButtonComponent as SegmentedButton };
|
|
70
|
+
export { SingleChoiceSegmentedButtonRow } from '../SingleChoiceSegmentedButtonRow';
|
|
71
|
+
export type { SingleChoiceSegmentedButtonRowProps } from '../SingleChoiceSegmentedButtonRow';
|
|
72
|
+
export { MultiChoiceSegmentedButtonRow } from '../MultiChoiceSegmentedButtonRow';
|
|
73
|
+
export type { MultiChoiceSegmentedButtonRowProps } from '../MultiChoiceSegmentedButtonRow';
|
|
74
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/jetpack-compose/SegmentedButton/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,EAAE,KAAK,cAAc,EAAkB,MAAM,aAAa,CAAC;AAGlE;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC,iBAAiB,CAAC,EAAE,UAAU,CAAC;IAC/B,kBAAkB,CAAC,EAAE,UAAU,CAAC;IAChC,mBAAmB,CAAC,EAAE,UAAU,CAAC;IACjC,oBAAoB,CAAC,EAAE,UAAU,CAAC;IAClC,yBAAyB,CAAC,EAAE,UAAU,CAAC;IACvC,0BAA0B,CAAC,EAAE,UAAU,CAAC;IACxC,2BAA2B,CAAC,EAAE,UAAU,CAAC;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|
2
|
+
export type SingleChoiceSegmentedButtonRowProps = {
|
|
3
|
+
/**
|
|
4
|
+
* SegmentedButton children.
|
|
5
|
+
*/
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
/**
|
|
8
|
+
* Modifiers for the component.
|
|
9
|
+
*/
|
|
10
|
+
modifiers?: ModifierConfig[];
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* A row container for single-choice `SegmentedButton` children.
|
|
14
|
+
* Maps to Material 3 `SingleChoiceSegmentedButtonRow`.
|
|
15
|
+
*/
|
|
16
|
+
export declare function SingleChoiceSegmentedButtonRow(props: SingleChoiceSegmentedButtonRowProps): import("react").JSX.Element;
|
|
17
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/jetpack-compose/SingleChoiceSegmentedButtonRow/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,aAAa,CAAC;AAGlD,MAAM,MAAM,mCAAmC,GAAG;IAChD;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;OAEG;IACH,SAAS,CAAC,EAAE,cAAc,EAAE,CAAC;CAC9B,CAAC;AAKF;;;GAGG;AACH,wBAAgB,8BAA8B,CAAC,KAAK,EAAE,mCAAmC,+BAUxF"}
|