@expo/ui 55.0.2 → 55.0.4
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 +42 -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/BottomSheetView.kt +91 -13
- 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 +209 -61
- 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/TextInputView.kt +39 -15
- 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/datetime-picker/DateTimePicker.android.d.ts +3 -0
- package/build/datetime-picker/DateTimePicker.android.d.ts.map +1 -0
- package/build/datetime-picker/DateTimePicker.d.ts +3 -0
- package/build/datetime-picker/DateTimePicker.d.ts.map +1 -0
- package/build/datetime-picker/DateTimePicker.web.d.ts +3 -0
- package/build/datetime-picker/DateTimePicker.web.d.ts.map +1 -0
- package/build/datetime-picker/index.d.ts +5 -0
- package/build/datetime-picker/index.d.ts.map +1 -0
- package/build/datetime-picker/types.d.ts +128 -0
- package/build/datetime-picker/types.d.ts.map +1 -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/ModalBottomSheet/index.d.ts +65 -13
- package/build/jetpack-compose/ModalBottomSheet/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/TextInput/index.d.ts +9 -0
- package/build/jetpack-compose/TextInput/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/Link/index.d.ts +36 -0
- package/build/swift-ui/Link/index.d.ts.map +1 -0
- 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/index.d.ts +1 -0
- package/build/swift-ui/index.d.ts.map +1 -1
- package/build/swift-ui/modifiers/environment.d.ts +16 -1
- package/build/swift-ui/modifiers/environment.d.ts.map +1 -1
- package/build/swift-ui/modifiers/index.d.ts +24 -7
- 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/modifiers/widgets.d.ts +14 -0
- package/build/swift-ui/modifiers/widgets.d.ts.map +1 -0
- 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/ExpoUIModule.swift +1 -0
- package/ios/LinkView.swift +29 -0
- package/ios/ListView.swift +6 -14
- package/ios/Modifiers/DefaultScrollAnchorForRoleModifier.swift +32 -0
- package/ios/Modifiers/DefaultScrollAnchorModifier.swift +16 -0
- package/ios/Modifiers/EnvironmentModifier.swift +14 -0
- package/ios/Modifiers/ViewModifierRegistry.swift +12 -0
- package/ios/Modifiers/WidgetModifiers.swift +12 -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.4/expo.modules.ui-55.0.4-sources.jar +0 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.4/expo.modules.ui-55.0.4-sources.jar.md5 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.4/expo.modules.ui-55.0.4-sources.jar.sha1 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.4/expo.modules.ui-55.0.4-sources.jar.sha256 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.4/expo.modules.ui-55.0.4-sources.jar.sha512 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.4/expo.modules.ui-55.0.4.aar +0 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.4/expo.modules.ui-55.0.4.aar.md5 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.4/expo.modules.ui-55.0.4.aar.sha1 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.4/expo.modules.ui-55.0.4.aar.sha256 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.4/expo.modules.ui-55.0.4.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.4/expo.modules.ui-55.0.4.module} +22 -22
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.4/expo.modules.ui-55.0.4.module.md5 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.4/expo.modules.ui-55.0.4.module.sha1 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.4/expo.modules.ui-55.0.4.module.sha256 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.4/expo.modules.ui-55.0.4.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.4/expo.modules.ui-55.0.4.pom} +1 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.4/expo.modules.ui-55.0.4.pom.md5 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.4/expo.modules.ui-55.0.4.pom.sha1 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.4/expo.modules.ui-55.0.4.pom.sha256 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.4/expo.modules.ui-55.0.4.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 +9 -2
- package/src/datetime-picker/DateTimePicker.android.tsx +126 -0
- package/src/datetime-picker/DateTimePicker.tsx +94 -0
- package/src/datetime-picker/DateTimePicker.web.tsx +5 -0
- package/src/datetime-picker/index.tsx +11 -0
- package/src/datetime-picker/types.tsx +147 -0
- 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/ModalBottomSheet/index.tsx +85 -15
- 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/TextInput/index.tsx +10 -0
- 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/Link/index.tsx +52 -0
- 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/index.tsx +1 -0
- package/src/swift-ui/modifiers/environment.ts +17 -4
- package/src/swift-ui/modifiers/index.ts +44 -10
- package/src/swift-ui/modifiers/widgets.ts +18 -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
|
@@ -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/Segmented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CAAC,SAAS,CAAA;CAAE,+BAEjE;AAED;;;GAGG;AACH,iBAAS,wBAAwB,CAAC,KAAK,EAAE,oBAAoB,+BAY5D;kBAZQ,wBAAwB;;;AAgBjC,OAAO,EAAE,wBAAwB,IAAI,eAAe,EAAE,CAAC;AACvD,OAAO,EAAE,8BAA8B,EAAE,MAAM,mCAAmC,CAAC;AACnF,YAAY,EAAE,mCAAmC,EAAE,MAAM,mCAAmC,CAAC;AAC7F,OAAO,EAAE,6BAA6B,EAAE,MAAM,kCAAkC,CAAC;AACjF,YAAY,EAAE,kCAAkC,EAAE,MAAM,kCAAkC,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type ModifierConfig } from '../../types';
|
|
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"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { type ColorValue } from 'react-native';
|
|
2
|
-
import {
|
|
2
|
+
import { type ModifierConfig } from '../../types';
|
|
3
3
|
/**
|
|
4
|
-
* Colors for slider's
|
|
4
|
+
* Colors for slider elements. Maps directly to Material3's `SliderDefaults.colors()`.
|
|
5
5
|
* @platform android
|
|
6
6
|
*/
|
|
7
|
-
export type
|
|
7
|
+
export type SliderColors = {
|
|
8
8
|
thumbColor?: ColorValue;
|
|
9
9
|
activeTrackColor?: ColorValue;
|
|
10
10
|
inactiveTrackColor?: ColorValue;
|
|
@@ -33,22 +33,46 @@ export type SliderProps = {
|
|
|
33
33
|
*/
|
|
34
34
|
max?: number;
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
37
|
-
* @
|
|
36
|
+
* Whether the slider is enabled for user interaction.
|
|
37
|
+
* @default true
|
|
38
38
|
*/
|
|
39
|
-
|
|
39
|
+
enabled?: boolean;
|
|
40
40
|
/**
|
|
41
|
-
*
|
|
41
|
+
* Colors for slider elements. Maps to Material3's `SliderDefaults.colors()`.
|
|
42
|
+
* @platform android
|
|
42
43
|
*/
|
|
43
|
-
|
|
44
|
+
colors?: SliderColors;
|
|
44
45
|
/**
|
|
45
46
|
* Callback triggered on dragging along the slider.
|
|
46
47
|
*/
|
|
47
48
|
onValueChange?: (value: number) => void;
|
|
49
|
+
/**
|
|
50
|
+
* Callback triggered when the user finishes changing the value (for example, lifts a finger).
|
|
51
|
+
* Maps to Material3's `onValueChangeFinished`.
|
|
52
|
+
*/
|
|
53
|
+
onValueChangeFinished?: () => void;
|
|
48
54
|
/**
|
|
49
55
|
* Modifiers for the component.
|
|
50
56
|
*/
|
|
51
|
-
modifiers?:
|
|
57
|
+
modifiers?: ModifierConfig[];
|
|
58
|
+
/**
|
|
59
|
+
* Slot children for custom thumb and track.
|
|
60
|
+
*/
|
|
61
|
+
children?: React.ReactNode;
|
|
52
62
|
};
|
|
53
|
-
|
|
63
|
+
/**
|
|
64
|
+
* A slider component that wraps Material3's `Slider`.
|
|
65
|
+
*
|
|
66
|
+
* @platform android
|
|
67
|
+
*/
|
|
68
|
+
declare function SliderComponent(props: SliderProps): import("react").JSX.Element;
|
|
69
|
+
declare namespace SliderComponent {
|
|
70
|
+
var Thumb: (props: {
|
|
71
|
+
children: React.ReactNode;
|
|
72
|
+
}) => import("react").JSX.Element;
|
|
73
|
+
var Track: (props: {
|
|
74
|
+
children: React.ReactNode;
|
|
75
|
+
}) => import("react").JSX.Element;
|
|
76
|
+
}
|
|
77
|
+
export { SliderComponent as Slider };
|
|
54
78
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/jetpack-compose/Slider/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/jetpack-compose/Slider/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,EAAE,KAAK,cAAc,EAAa,MAAM,aAAa,CAAC;AAa7D;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,gBAAgB,CAAC,EAAE,UAAU,CAAC;IAC9B,kBAAkB,CAAC,EAAE,UAAU,CAAC;IAChC,eAAe,CAAC,EAAE,UAAU,CAAC;IAC7B,iBAAiB,CAAC,EAAE,UAAU,CAAC;CAChC,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB;;OAEG;IACH,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC;;;OAGG;IACH,qBAAqB,CAAC,EAAE,MAAM,IAAI,CAAC;IACnC;;OAEG;IACH,SAAS,CAAC,EAAE,cAAc,EAAE,CAAC;IAC7B;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,CAAC;AAqDF;;;;GAIG;AACH,iBAAS,eAAe,CAAC,KAAK,EAAE,WAAW,+BAG1C;kBAHQ,eAAe;uBAnBF;QAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;KAAE;uBAU7B;QAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;KAAE;;AAiBnD,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { type ColorValue } from 'react-native';
|
|
2
|
-
import {
|
|
2
|
+
import { type ModifierConfig } from '../../types';
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Colors for switch core elements.
|
|
5
5
|
*/
|
|
6
|
-
type
|
|
6
|
+
export type SwitchColors = {
|
|
7
7
|
checkedThumbColor?: ColorValue;
|
|
8
8
|
checkedTrackColor?: ColorValue;
|
|
9
9
|
checkedBorderColor?: ColorValue;
|
|
@@ -21,76 +21,33 @@ type SwitchElementColors = {
|
|
|
21
21
|
disabledUncheckedBorderColor?: ColorValue;
|
|
22
22
|
disabledUncheckedIconColor?: ColorValue;
|
|
23
23
|
};
|
|
24
|
-
/**
|
|
25
|
-
* Only for checkbox.
|
|
26
|
-
*/
|
|
27
|
-
type CheckboxElementColors = {
|
|
28
|
-
checkedColor?: ColorValue;
|
|
29
|
-
disabledCheckedColor?: ColorValue;
|
|
30
|
-
uncheckedColor?: ColorValue;
|
|
31
|
-
disabledUncheckedColor?: ColorValue;
|
|
32
|
-
checkmarkColor?: ColorValue;
|
|
33
|
-
disabledIndeterminateColor?: ColorValue;
|
|
34
|
-
};
|
|
35
24
|
export type SwitchProps = {
|
|
36
25
|
/**
|
|
37
26
|
* Indicates whether the switch is checked.
|
|
38
27
|
*/
|
|
39
28
|
value: boolean;
|
|
40
|
-
/**
|
|
41
|
-
* Label for the switch.
|
|
42
|
-
*
|
|
43
|
-
* > On Android, the label has an effect only when the `Switch` is used inside a `ContextMenu`.
|
|
44
|
-
*/
|
|
45
|
-
label?: string;
|
|
46
|
-
/**
|
|
47
|
-
* Type of the switch component. Can be `'checkbox'`, `'switch'`, or `'button'`.
|
|
48
|
-
* @default 'switch'
|
|
49
|
-
*/
|
|
50
|
-
variant?: 'checkbox' | 'switch' | 'button';
|
|
51
29
|
/**
|
|
52
30
|
* Whether the switch is enabled.
|
|
53
31
|
* @default true
|
|
54
|
-
* @platform android
|
|
55
32
|
*/
|
|
56
33
|
enabled?: boolean;
|
|
57
34
|
/**
|
|
58
35
|
* Callback function that is called when the checked state changes.
|
|
59
36
|
*/
|
|
60
|
-
|
|
37
|
+
onCheckedChange?: (value: boolean) => void;
|
|
61
38
|
/**
|
|
62
|
-
*
|
|
39
|
+
* Colors for switch core elements.
|
|
63
40
|
*/
|
|
64
|
-
|
|
41
|
+
colors?: SwitchColors;
|
|
65
42
|
/**
|
|
66
43
|
* Modifiers for the component.
|
|
67
44
|
*/
|
|
68
|
-
modifiers?:
|
|
45
|
+
modifiers?: ModifierConfig[];
|
|
69
46
|
/**
|
|
70
47
|
* Children containing ThumbContent slot.
|
|
71
48
|
* @platform android
|
|
72
49
|
*/
|
|
73
50
|
children?: React.ReactNode;
|
|
74
|
-
} & (SwitchSwitchVariantProps | SwitchCheckboxVariantProps | SwitchButtonVariantProps);
|
|
75
|
-
export type SwitchSwitchVariantProps = {
|
|
76
|
-
variant?: 'switch';
|
|
77
|
-
/**
|
|
78
|
-
* Colors for switch's core elements.
|
|
79
|
-
* @platform android
|
|
80
|
-
*/
|
|
81
|
-
elementColors?: SwitchElementColors;
|
|
82
|
-
};
|
|
83
|
-
export type SwitchCheckboxVariantProps = {
|
|
84
|
-
variant: 'checkbox';
|
|
85
|
-
/**
|
|
86
|
-
* Colors for checkbox core elements.
|
|
87
|
-
* @platform android
|
|
88
|
-
*/
|
|
89
|
-
elementColors?: CheckboxElementColors;
|
|
90
|
-
};
|
|
91
|
-
export type SwitchButtonVariantProps = {
|
|
92
|
-
variant: 'button';
|
|
93
|
-
elementColors?: undefined;
|
|
94
51
|
};
|
|
95
52
|
type ThumbContentProps = {
|
|
96
53
|
children: React.ReactNode;
|
|
@@ -100,6 +57,9 @@ type ThumbContentProps = {
|
|
|
100
57
|
* @platform android
|
|
101
58
|
*/
|
|
102
59
|
export declare function SwitchThumbContent(props: ThumbContentProps): import("react").JSX.Element;
|
|
60
|
+
/**
|
|
61
|
+
* A switch component.
|
|
62
|
+
*/
|
|
103
63
|
declare function SwitchComponent(props: SwitchProps): import("react").JSX.Element;
|
|
104
64
|
declare namespace SwitchComponent {
|
|
105
65
|
var ThumbContent: typeof SwitchThumbContent;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/jetpack-compose/Switch/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAwB,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAErE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/jetpack-compose/Switch/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAwB,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAErE,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,aAAa,CAAC;AAIlD;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,CAAC,KAAK,EAAE,WAAW,+BAE1C;kBAFQ,eAAe;;;;AAOxB,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,CAAC"}
|
|
@@ -7,6 +7,7 @@ export type TextInputRole = 'default' | 'cancel' | 'destructive';
|
|
|
7
7
|
export type TextInputRef = {
|
|
8
8
|
setText: (newText: string) => Promise<void>;
|
|
9
9
|
};
|
|
10
|
+
export type TextInputVariant = 'filled' | 'outlined';
|
|
10
11
|
export type TextInputProps = {
|
|
11
12
|
/**
|
|
12
13
|
* Can be used for imperatively setting text on the TextInput component.
|
|
@@ -16,6 +17,14 @@ export type TextInputProps = {
|
|
|
16
17
|
* Initial value that the TextInput displays when being mounted. As the TextInput is an uncontrolled component, change the key prop if you need to change the text value.
|
|
17
18
|
*/
|
|
18
19
|
defaultValue?: string;
|
|
20
|
+
/**
|
|
21
|
+
* The visual style of the text input field.
|
|
22
|
+
* - `filled` - A text field with a filled background (default).
|
|
23
|
+
* - `outlined` - A text field with a transparent background and a border outline.
|
|
24
|
+
* @default filled
|
|
25
|
+
* @platform android
|
|
26
|
+
*/
|
|
27
|
+
variant?: TextInputVariant;
|
|
19
28
|
/**
|
|
20
29
|
* A callback triggered when user types in text into the TextInput.
|
|
21
30
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/jetpack-compose/TextInput/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAE5B,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAGtD;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,QAAQ,GAAG,aAAa,CAAC;AAEjE,MAAM,MAAM,YAAY,GAAG;IACzB,OAAO,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CAC7C,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IA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O,CAAC,IAAI,CAAC,CAAC;CAC7C,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,QAAQ,GAAG,UAAU,CAAC;AAErD,MAAM,MAAM,cAAc,GAAG;IAC3B;;OAEG;IACH,GAAG,CAAC,EAAE,GAAG,CAAC,YAAY,CAAC,CAAC;IACxB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,gBAAgB,CAAC;IAC3B;;OAEG;IACH,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;;;;;;;;;;;;OAeG;IACH,YAAY,CAAC,EACT,SAAS,GACT,eAAe,GACf,SAAS,GACT,WAAW,GACX,eAAe,GACf,KAAK,GACL,aAAa,CAAC;IAClB;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;;;;;;;;;OAWG;IACH,cAAc,CAAC,EAAE,YAAY,GAAG,MAAM,GAAG,WAAW,GAAG,aAAa,GAAG,OAAO,CAAC;IAE/E;;OAEG;IACH,SAAS,CAAC,EAAE,YAAY,EAAE,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,IAAI,CAAC,cAAc,EAAE,cAAc,CAAC,GAAG,EAAE,GAAG,SAAS,CACpF,gBAAgB,EAChB;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,CAClB,CAAC;AAoBJ;;GAEG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,cAAc,+BAE9C"}
|
|
@@ -1,54 +1,82 @@
|
|
|
1
1
|
import { type ColorValue } from 'react-native';
|
|
2
|
-
import {
|
|
2
|
+
import type { ModifierConfig, ViewEvent } from '../../types';
|
|
3
|
+
/**
|
|
4
|
+
* Colors for toggle button elements.
|
|
5
|
+
*/
|
|
6
|
+
export type ToggleButtonColors = {
|
|
7
|
+
containerColor?: ColorValue;
|
|
8
|
+
contentColor?: ColorValue;
|
|
9
|
+
checkedContainerColor?: ColorValue;
|
|
10
|
+
checkedContentColor?: ColorValue;
|
|
11
|
+
disabledContainerColor?: ColorValue;
|
|
12
|
+
disabledContentColor?: ColorValue;
|
|
13
|
+
};
|
|
3
14
|
export type ToggleButtonProps = {
|
|
4
15
|
/**
|
|
5
16
|
* Whether the toggle button is checked.
|
|
6
17
|
*/
|
|
7
18
|
checked: boolean;
|
|
8
19
|
/**
|
|
9
|
-
*
|
|
10
|
-
*/
|
|
11
|
-
text?: string;
|
|
12
|
-
/**
|
|
13
|
-
* The variant of the toggle button.
|
|
14
|
-
* - `'default'` - Material 3 ToggleButton
|
|
15
|
-
* - `'icon'` - Icon toggle button
|
|
16
|
-
* - `'filledIcon'` - Filled icon toggle button
|
|
17
|
-
* - `'outlinedIcon'` - Outlined icon toggle button
|
|
18
|
-
* @default 'default'
|
|
19
|
-
*/
|
|
20
|
-
variant?: 'default' | 'icon' | 'filledIcon' | 'outlinedIcon';
|
|
21
|
-
/**
|
|
22
|
-
* The color of the toggle button when checked.
|
|
20
|
+
* Callback that is called when the checked state changes.
|
|
23
21
|
*/
|
|
24
|
-
|
|
22
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
25
23
|
/**
|
|
26
|
-
* Whether the button is
|
|
24
|
+
* Whether the button is enabled for user interaction.
|
|
25
|
+
* @default true
|
|
27
26
|
*/
|
|
28
|
-
|
|
27
|
+
enabled?: boolean;
|
|
29
28
|
/**
|
|
30
|
-
*
|
|
29
|
+
* Colors for toggle button elements.
|
|
31
30
|
*/
|
|
32
|
-
|
|
31
|
+
colors?: ToggleButtonColors;
|
|
33
32
|
/**
|
|
34
33
|
* Modifiers for the component.
|
|
35
34
|
*/
|
|
36
|
-
modifiers?:
|
|
35
|
+
modifiers?: ModifierConfig[];
|
|
37
36
|
/**
|
|
38
|
-
*
|
|
37
|
+
* Content to display inside the toggle button.
|
|
39
38
|
*/
|
|
40
|
-
children
|
|
39
|
+
children: React.ReactNode;
|
|
41
40
|
};
|
|
41
|
+
type NativeToggleButtonProps = Omit<ToggleButtonProps, 'onCheckedChange' | 'children'> & {
|
|
42
|
+
children?: React.ReactNode;
|
|
43
|
+
} & ViewEvent<'onCheckedChange', {
|
|
44
|
+
checked: boolean;
|
|
45
|
+
}>;
|
|
46
|
+
/**
|
|
47
|
+
* @hidden
|
|
48
|
+
*/
|
|
49
|
+
export declare function transformToggleButtonProps(props: Omit<ToggleButtonProps, 'children'>): NativeToggleButtonProps;
|
|
42
50
|
/**
|
|
43
51
|
* A toggle button component that can be toggled on and off.
|
|
44
|
-
*
|
|
45
|
-
* When `text` prop is provided, it displays the text.
|
|
46
|
-
* Otherwise, custom children can be passed to render custom content.
|
|
47
52
|
*/
|
|
48
|
-
declare
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
53
|
+
declare const ToggleButton: {
|
|
54
|
+
(props: ToggleButtonProps): import("react").JSX.Element;
|
|
55
|
+
displayName: string;
|
|
56
|
+
} & {
|
|
57
|
+
DefaultIconSpacing: number;
|
|
58
|
+
DefaultIconSize: number;
|
|
59
|
+
};
|
|
60
|
+
/**
|
|
61
|
+
* An icon toggle button with no background.
|
|
62
|
+
*/
|
|
63
|
+
declare const IconToggleButton: {
|
|
64
|
+
(props: ToggleButtonProps): import("react").JSX.Element;
|
|
65
|
+
displayName: string;
|
|
66
|
+
};
|
|
67
|
+
/**
|
|
68
|
+
* A filled icon toggle button with a solid background.
|
|
69
|
+
*/
|
|
70
|
+
declare const FilledIconToggleButton: {
|
|
71
|
+
(props: ToggleButtonProps): import("react").JSX.Element;
|
|
72
|
+
displayName: string;
|
|
73
|
+
};
|
|
74
|
+
/**
|
|
75
|
+
* An outlined icon toggle button with a border and no fill.
|
|
76
|
+
*/
|
|
77
|
+
declare const OutlinedIconToggleButton: {
|
|
78
|
+
(props: ToggleButtonProps): import("react").JSX.Element;
|
|
79
|
+
displayName: string;
|
|
80
|
+
};
|
|
81
|
+
export { ToggleButton, IconToggleButton, FilledIconToggleButton, OutlinedIconToggleButton };
|
|
54
82
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/jetpack-compose/ToggleButton/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/jetpack-compose/ToggleButton/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAI7D;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B,cAAc,CAAC,EAAE,UAAU,CAAC;IAC5B,YAAY,CAAC,EAAE,UAAU,CAAC;IAC1B,qBAAqB,CAAC,EAAE,UAAU,CAAC;IACnC,mBAAmB,CAAC,EAAE,UAAU,CAAC;IACjC,sBAAsB,CAAC,EAAE,UAAU,CAAC;IACpC,oBAAoB,CAAC,EAAE,UAAU,CAAC;CACnC,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IAC7C;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,kBAAkB,CAAC;IAC5B;;OAEG;IACH,SAAS,CAAC,EAAE,cAAc,EAAE,CAAC;IAC7B;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAEF,KAAK,uBAAuB,GAAG,IAAI,CAAC,iBAAiB,EAAE,iBAAiB,GAAG,UAAU,CAAC,GAAG;IACvF,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,GAAG,SAAS,CAAC,iBAAiB,EAAE;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC,CAAC;AAEvD;;GAEG;AACH,wBAAgB,0BAA0B,CACxC,KAAK,EAAE,IAAI,CAAC,iBAAiB,EAAE,UAAU,CAAC,GACzC,uBAAuB,CAWzB;AAgBD;;GAEG;AACH,QAAA,MAAM,YAAY;YAXU,iBAAiB;;;wBAYiB,MAAM;qBACZ,MAAM;CAC5D,CAAC;AAEH;;GAEG;AACH,QAAA,MAAM,gBAAgB;YAnBM,iBAAiB;;CAmB2B,CAAC;AAEzE;;GAEG;AACH,QAAA,MAAM,sBAAsB;YAxBA,iBAAiB;;CAwBuC,CAAC;AAErF;;GAEG;AACH,QAAA,MAAM,wBAAwB;YA7BF,iBAAiB;;CA6B2C,CAAC;AAEzF,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,wBAAwB,EAAE,CAAC"}
|
|
@@ -2,24 +2,23 @@ import './MaterialSymbolsAssetsTransformer.fx';
|
|
|
2
2
|
export * from './AlertDialog';
|
|
3
3
|
export * from './BasicAlertDialog';
|
|
4
4
|
export * from './Card';
|
|
5
|
+
export * from './Checkbox';
|
|
5
6
|
export * from './Chip';
|
|
6
|
-
export * from './FilterChip';
|
|
7
7
|
export * from './Button';
|
|
8
8
|
export * from './Icon';
|
|
9
9
|
export * from './IconButton';
|
|
10
|
-
export * from './
|
|
10
|
+
export * from './DropdownMenu';
|
|
11
11
|
export * from './Divider';
|
|
12
12
|
export * from './Host';
|
|
13
13
|
export * from './LazyColumn';
|
|
14
14
|
export * from './ListItem';
|
|
15
15
|
export * from './RNHostView';
|
|
16
16
|
export * from './DatePicker';
|
|
17
|
-
export * from './
|
|
17
|
+
export * from './SegmentedButton';
|
|
18
18
|
export * from './Progress';
|
|
19
19
|
export * from './Slider';
|
|
20
20
|
export * from './Spacer';
|
|
21
21
|
export * from './Switch';
|
|
22
|
-
export * from './TextButton';
|
|
23
22
|
export * from './TextInput';
|
|
24
23
|
export * from './ToggleButton';
|
|
25
24
|
export * from './Shape';
|
|
@@ -28,10 +27,12 @@ export * from './Carousel';
|
|
|
28
27
|
export * from './SearchBar';
|
|
29
28
|
export * from './DockedSearchBar';
|
|
30
29
|
export * from './HorizontalFloatingToolbar';
|
|
30
|
+
export * from './FloatingActionButton';
|
|
31
31
|
export * from './PullToRefreshBox';
|
|
32
32
|
export * from './RadioButton';
|
|
33
33
|
export * from './Surface';
|
|
34
34
|
export * from './Text';
|
|
35
|
+
export * from './AnimatedVisibility';
|
|
35
36
|
export * from './Box';
|
|
36
37
|
export * from './Row';
|
|
37
38
|
export * from './Column';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/jetpack-compose/index.ts"],"names":[],"mappings":"AAAA,OAAO,uCAAuC,CAAC;AAE/C,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,QAAQ,CAAC;AACvB,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/jetpack-compose/index.ts"],"names":[],"mappings":"AAAA,OAAO,uCAAuC,CAAC;AAE/C,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC;AACxB,cAAc,oBAAoB,CAAC;AACnC,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AAEvB,cAAc,sBAAsB,CAAC;AACrC,cAAc,OAAO,CAAC;AACtB,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -174,8 +174,25 @@ export declare const clickable: (handler: () => void, options?: {
|
|
|
174
174
|
* Makes the view selectable, like a radio button row.
|
|
175
175
|
* @param selected - Whether the item is currently selected.
|
|
176
176
|
* @param handler - Function to call when the item is clicked.
|
|
177
|
+
* @param role - Optional semantic role for accessibility: 'radioButton', 'checkbox', 'switch', or 'tab'.
|
|
177
178
|
*/
|
|
178
|
-
export declare const selectable: (selected: boolean, handler: () => void) => import("./createModifier").ModifierConfig;
|
|
179
|
+
export declare const selectable: (selected: boolean, handler: () => void, role?: "radioButton" | "checkbox" | "switch" | "tab") => import("./createModifier").ModifierConfig;
|
|
180
|
+
/**
|
|
181
|
+
* Marks a column/row as a selectable group for accessibility.
|
|
182
|
+
* Screen readers will treat the children as a group of selectable items.
|
|
183
|
+
*/
|
|
184
|
+
export declare const selectableGroup: () => import("./createModifier").ModifierConfig;
|
|
185
|
+
/**
|
|
186
|
+
* Makes the view toggleable with accessibility semantics.
|
|
187
|
+
* Use this to make a row containing a checkbox or switch tappable as a whole.
|
|
188
|
+
* @param value - The current toggle state.
|
|
189
|
+
* @param handler - Function to call when toggled.
|
|
190
|
+
* @param options - Optional configuration.
|
|
191
|
+
* @param options.role - The semantic role for accessibility: `'checkbox'`, `'radioButton'`, `'switch'`, or `'tab'`.
|
|
192
|
+
*/
|
|
193
|
+
export declare const toggleable: (value: boolean, handler: () => void, options?: {
|
|
194
|
+
role?: "checkbox" | "radioButton" | "switch" | "tab";
|
|
195
|
+
}) => import("./createModifier").ModifierConfig;
|
|
179
196
|
/**
|
|
180
197
|
* Sets the test ID for testing frameworks.
|
|
181
198
|
* @param tag - Test ID string.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/jetpack-compose/modifiers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,aAAa,CAAC;AAEjD,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EACL,QAAQ,EACR,MAAM,EACN,KAAK,EACL,IAAI,EACJ,SAAS,EACT,KAAK,aAAa,EAClB,KAAK,aAAa,GACnB,MAAM,aAAa,CAAC;AAErB,MAAM,MAAM,SAAS,GAEjB,UAAU,GACV,WAAW,GACX,QAAQ,GACR,aAAa,GACb,QAAQ,GACR,WAAW,GACX,aAAa,GACb,cAAc,GACd,WAAW,GAEX,KAAK,GACL,kBAAkB,GAClB,QAAQ,GAER,OAAO,GACP,oBAAoB,GACpB,KAAK,CAAC;AAEV;;;GAGG;AACH,eAAO,MAAM,UAAU,GAAI,KAAK,MAAM,8CAA0C,CAAC;AAEjF;;;;;;GAMG;AACH,eAAO,MAAM,OAAO,GAAI,OAAO,MAAM,EAAE,KAAK,MAAM,EAAE,KAAK,MAAM,EAAE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,GAClB;IACE,IAAI,EAAE,eAAe,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GACD;IACE,IAAI,EAAE,WAAW,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GACD;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,IAAI,EAAE,iBAAiB,CAAA;CAAE,CAAC;AAIlD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,MAAM;eACmB,YAAY;YAClB,YAAY;4BAClB,MAAM,GAAG,WAAW,KAAG,YAAY;wBAIvC,MAAM,GAAG,WAAW,KAAG,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgCxD,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,IAAI,GAAI,OAAO,YAAY,8CAAsC,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { type CommonViewModifierProps } from '../types';
|
|
2
|
+
export type LinkProps = {
|
|
3
|
+
/**
|
|
4
|
+
* The text label for the Link. Use this for simple text links.
|
|
5
|
+
*/
|
|
6
|
+
label?: string;
|
|
7
|
+
/**
|
|
8
|
+
* The URL for the link.
|
|
9
|
+
*/
|
|
10
|
+
destination: string;
|
|
11
|
+
/**
|
|
12
|
+
* Custom content for the link label. Use this for custom label views.
|
|
13
|
+
* Only nested elements are supported, not plain strings.
|
|
14
|
+
*/
|
|
15
|
+
children?: React.ReactElement | React.ReactElement[];
|
|
16
|
+
} & CommonViewModifierProps;
|
|
17
|
+
/**
|
|
18
|
+
* Displays a native link component.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```tsx
|
|
22
|
+
* import { Link } from '@expo/ui/swift-ui';
|
|
23
|
+
* import { foregroundStyle, font } from '@expo/ui/swift-ui/modifiers';
|
|
24
|
+
*
|
|
25
|
+
* <Link
|
|
26
|
+
* label="Open"
|
|
27
|
+
* destination="https://expo.dev"
|
|
28
|
+
* modifiers={[
|
|
29
|
+
* foregroundStyle('red'),
|
|
30
|
+
* font({ size: 24, weight: 'bold' })
|
|
31
|
+
* ]}
|
|
32
|
+
* />
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
export declare function Link(props: LinkProps): import("react").JSX.Element;
|
|
36
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/swift-ui/Link/index.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAExD,MAAM,MAAM,SAAS,GAAG;IACtB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,YAAY,GAAG,KAAK,CAAC,YAAY,EAAE,CAAC;CACtD,GAAG,uBAAuB,CAAC;AAI5B;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,IAAI,CAAC,KAAK,EAAE,SAAS,+BAUpC"}
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
import { type CommonViewModifierProps } from '../types';
|
|
2
|
-
export type ClosedRangeDate = {
|
|
3
|
-
lower: Date;
|
|
4
|
-
upper: Date;
|
|
5
|
-
};
|
|
1
|
+
import { type ClosedRangeDate, type CommonViewModifierProps } from '../types';
|
|
6
2
|
export type ProgressViewProps = {
|
|
7
3
|
/**
|
|
8
4
|
* The current progress value. A value between `0` and `1`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/swift-ui/ProgressView/index.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/swift-ui/ProgressView/index.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,eAAe,EAAE,KAAK,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAE9E,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB;;;;OAIG;IACH,aAAa,CAAC,EAAE,eAAe,CAAC;IAChC;;;;;OAKG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,GAAG,uBAAuB,CAAC;AAW5B;;GAEG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,+BAiBpD"}
|