@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
|
@@ -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,MA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QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,CAAC;AAYF,KAAK,iBAAiB,GAAG;IACvB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAYF;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,iBAAiB,+BAE1D;AAcD;;GAEG;AACH,iBAAS,eAAe,CAAC,KAAK,EAAE,WAAW,+BAE1C;kBAFQ,eAAe;;;;AAOxB,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,CAAC"}
|
|
@@ -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,UA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E,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,MA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D,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,IAAI,GAAI,OAAO,YAAY,8CAAsC,CAAC"}
|
|
@@ -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"}
|
|
@@ -5,9 +5,9 @@ export type StepperProps = {
|
|
|
5
5
|
*/
|
|
6
6
|
label: string;
|
|
7
7
|
/**
|
|
8
|
-
* The
|
|
8
|
+
* The current value of the stepper.
|
|
9
9
|
*/
|
|
10
|
-
|
|
10
|
+
value?: number;
|
|
11
11
|
/**
|
|
12
12
|
* The step value for increment/decrement operations.
|
|
13
13
|
*/
|
|
@@ -23,7 +23,7 @@ export type StepperProps = {
|
|
|
23
23
|
/**
|
|
24
24
|
* Called when the stepper value changes.
|
|
25
25
|
*/
|
|
26
|
-
|
|
26
|
+
onValueChange: (value: number) => void;
|
|
27
27
|
} & CommonViewModifierProps;
|
|
28
28
|
export declare function Stepper(props: StepperProps): import("react").JSX.Element;
|
|
29
29
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/swift-ui/Stepper/index.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAExD,MAAM,MAAM,YAAY,GAAG;IACzB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/swift-ui/Stepper/index.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAExD,MAAM,MAAM,YAAY,GAAG;IACzB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACxC,GAAG,uBAAuB,CAAC;AAsB5B,wBAAgB,OAAO,CAAC,KAAK,EAAE,YAAY,+BAE1C"}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { type CommonViewModifierProps } from '../types';
|
|
2
|
+
import { type ClosedRangeDate, type CommonViewModifierProps } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* The style used to format a date in a SwiftUI `Text` view.
|
|
5
|
+
*/
|
|
6
|
+
export type TextDateStyle = 'timer' | 'relative' | 'offset' | 'date' | 'time';
|
|
3
7
|
export interface TextProps extends CommonViewModifierProps {
|
|
4
8
|
/**
|
|
5
9
|
* Text content or nested Text components.
|
|
@@ -9,6 +13,34 @@ export interface TextProps extends CommonViewModifierProps {
|
|
|
9
13
|
* Enables Markdown formatting for the text content using SwiftUI LocalizedStringKey.
|
|
10
14
|
*/
|
|
11
15
|
markdownEnabled?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* A date to display using the specified `dateStyle`. The text auto-updates as time passes.
|
|
18
|
+
*/
|
|
19
|
+
date?: Date;
|
|
20
|
+
/**
|
|
21
|
+
* The style used to format the `date` prop.
|
|
22
|
+
* @default 'date'
|
|
23
|
+
*/
|
|
24
|
+
dateStyle?: TextDateStyle;
|
|
25
|
+
/**
|
|
26
|
+
* A time interval to display as a live-updating timer.
|
|
27
|
+
* @platform ios 16.0+
|
|
28
|
+
* @platform tvos 16.0+
|
|
29
|
+
*/
|
|
30
|
+
timerInterval?: ClosedRangeDate;
|
|
31
|
+
/**
|
|
32
|
+
* Whether the timer counts down (`true`) or up (`false`).
|
|
33
|
+
* @default true
|
|
34
|
+
* @platform ios 16.0+
|
|
35
|
+
* @platform tvos 16.0+
|
|
36
|
+
*/
|
|
37
|
+
countsDown?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* A date at which the timer should appear paused.
|
|
40
|
+
* @platform ios 16.0+
|
|
41
|
+
* @platform tvos 16.0+
|
|
42
|
+
*/
|
|
43
|
+
pauseTime?: Date;
|
|
12
44
|
}
|
|
13
45
|
export declare function Text(props: TextProps): React.JSX.Element | null;
|
|
14
46
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/swift-ui/Text/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/swift-ui/Text/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,KAAK,eAAe,EAAE,KAAK,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAE9E;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,UAAU,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC;AAE9E,MAAM,WAAW,SAAU,SAAQ,uBAAuB;IACxD;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE3B;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B;;OAEG;IACH,IAAI,CAAC,EAAE,IAAI,CAAC;IAEZ;;;OAGG;IACH,SAAS,CAAC,EAAE,aAAa,CAAC;IAE1B;;;;OAIG;IACH,aAAa,CAAC,EAAE,eAAe,CAAC;IAEhC;;;;;OAKG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;;;OAIG;IACH,SAAS,CAAC,EAAE,IAAI,CAAC;CAClB;AAkBD,wBAAgB,IAAI,CAAC,KAAK,EAAE,SAAS,4BAmEpC"}
|
|
@@ -453,6 +453,27 @@ export declare const scrollDismissesKeyboard: (mode: "automatic" | "never" | "in
|
|
|
453
453
|
* @see Official [SwiftUI documentation](https://developer.apple.com/documentation/swiftui/view/scrolldisabled(_:)).
|
|
454
454
|
*/
|
|
455
455
|
export declare const scrollDisabled: (disabled?: boolean) => ModifierConfig;
|
|
456
|
+
type UnitPointValue = 'zero' | 'topLeading' | 'top' | 'topTrailing' | 'leading' | 'center' | 'trailing' | 'bottomLeading' | 'bottom' | 'bottomTrailing';
|
|
457
|
+
/**
|
|
458
|
+
* Sets the default anchor point for a scroll view's content.
|
|
459
|
+
* @param anchor - The anchor point for initial scroll position and content size changes, or `null` to reset.
|
|
460
|
+
* @platform ios 17.0+
|
|
461
|
+
* @platform tvos 17.0+
|
|
462
|
+
* @platform macos 14.0+
|
|
463
|
+
* @see Official [SwiftUI documentation](https://developer.apple.com/documentation/swiftui/view/defaultscrollanchor(_:)).
|
|
464
|
+
*/
|
|
465
|
+
export declare const defaultScrollAnchor: (anchor: UnitPointValue | null) => ModifierConfig;
|
|
466
|
+
/**
|
|
467
|
+
* Sets the default anchor point for a scroll view for a specific role.
|
|
468
|
+
* Pass `null` to opt out of a specific role while keeping anchors for other roles.
|
|
469
|
+
* @param anchor - The anchor point, or `null` to opt out of this role.
|
|
470
|
+
* @param role - The scroll anchor role: `'initialOffset'`, `'sizeChanges'`, or `'alignment'`.
|
|
471
|
+
* @platform ios 18.0+
|
|
472
|
+
* @platform tvos 18.0+
|
|
473
|
+
* @platform macos 15.0+
|
|
474
|
+
* @see Official [SwiftUI documentation](https://developer.apple.com/documentation/swiftui/view/defaultscrollanchor(_:for:)).
|
|
475
|
+
*/
|
|
476
|
+
export declare const defaultScrollAnchorForRole: (anchor: UnitPointValue | null, role: "initialOffset" | "sizeChanges" | "alignment") => ModifierConfig;
|
|
456
477
|
/**
|
|
457
478
|
* Disables the move action for a view in a list.
|
|
458
479
|
* Apply to items within a `ForEach` to prevent them from being moved.
|
|
@@ -847,7 +868,7 @@ export declare const widgetAccentedRenderingMode: (renderingMode: "fullColor" |
|
|
|
847
868
|
* This provides type safety for the modifiers array.
|
|
848
869
|
* @hidden
|
|
849
870
|
*/
|
|
850
|
-
export type BuiltInModifier = ReturnType<typeof listSectionSpacing> | ReturnType<typeof background> | ReturnType<typeof cornerRadius> | ReturnType<typeof shadow> | ReturnType<typeof frame> | ReturnType<typeof padding> | ReturnType<typeof fixedSize> | ReturnType<typeof ignoreSafeArea> | ReturnType<typeof onTapGesture> | ReturnType<typeof onLongPressGesture> | ReturnType<typeof onAppear> | ReturnType<typeof luminanceToAlpha> | ReturnType<typeof onDisappear> | ReturnType<typeof opacity> | ReturnType<typeof clipShape> | ReturnType<typeof border> | ReturnType<typeof scaleEffect> | ReturnType<typeof rotationEffect> | ReturnType<typeof rotation3DEffect> | ReturnType<typeof offset> | ReturnType<typeof foregroundColor> | ReturnType<typeof foregroundStyle> | ReturnType<typeof bold> | ReturnType<typeof italic> | ReturnType<typeof monospacedDigit> | ReturnType<typeof tint> | ReturnType<typeof hidden> | ReturnType<typeof disabled> | ReturnType<typeof zIndex> | ReturnType<typeof blur> | ReturnType<typeof brightness> | ReturnType<typeof contrast> | ReturnType<typeof saturation> | ReturnType<typeof hueRotation> | ReturnType<typeof colorInvert> | ReturnType<typeof grayscale> | ReturnType<typeof buttonStyle> | ReturnType<typeof toggleStyle> | ReturnType<typeof controlSize> | ReturnType<typeof labelStyle> | ReturnType<typeof labelsHidden> | ReturnType<typeof textFieldStyle> | ReturnType<typeof menuActionDismissBehavior> | ReturnType<typeof accessibilityLabel> | ReturnType<typeof accessibilityHint> | ReturnType<typeof accessibilityValue> | ReturnType<typeof layoutPriority> | ReturnType<typeof mask> | ReturnType<typeof overlay> | ReturnType<typeof backgroundOverlay> | ReturnType<typeof aspectRatio> | ReturnType<typeof clipped> | ReturnType<typeof glassEffect> | ReturnType<typeof glassEffectId> | ReturnType<typeof animation> | ReturnType<typeof containerShape> | ReturnType<typeof contentShape> | ReturnType<typeof containerRelativeFrame> | ReturnType<typeof scrollContentBackground> | ReturnType<typeof scrollDisabled> | ReturnType<typeof moveDisabled> | ReturnType<typeof deleteDisabled> | ReturnType<typeof environment> | ReturnType<typeof listRowBackground> | ReturnType<typeof listRowSeparator> | ReturnType<typeof truncationMode> | ReturnType<typeof allowsTightening> | ReturnType<typeof kerning> | ReturnType<typeof textCase> | ReturnType<typeof underline> | ReturnType<typeof strikethrough> | ReturnType<typeof multilineTextAlignment> | ReturnType<typeof textSelection> | ReturnType<typeof lineSpacing> | ReturnType<typeof lineLimit> | ReturnType<typeof headerProminence> | ReturnType<typeof listRowInsets> | ReturnType<typeof badgeProminence> | ReturnType<typeof badge> | ReturnType<typeof listSectionMargins> | ReturnType<typeof font> | ReturnType<typeof gridCellUnsizedAxes> | ReturnType<typeof gridCellColumns> | ReturnType<typeof gridColumnAlignment> | ReturnType<typeof gridCellAnchor> | ReturnType<typeof submitLabel> | ReturnType<typeof datePickerStyle> | ReturnType<typeof progressViewStyle> | ReturnType<typeof gaugeStyle> | ReturnType<typeof listStyle> | ReturnType<typeof contentTransition> | ReturnType<typeof resizable> | ReturnType<typeof widgetAccentedRenderingMode>;
|
|
871
|
+
export type BuiltInModifier = ReturnType<typeof listSectionSpacing> | ReturnType<typeof background> | ReturnType<typeof cornerRadius> | ReturnType<typeof shadow> | ReturnType<typeof frame> | ReturnType<typeof padding> | ReturnType<typeof fixedSize> | ReturnType<typeof ignoreSafeArea> | ReturnType<typeof onTapGesture> | ReturnType<typeof onLongPressGesture> | ReturnType<typeof onAppear> | ReturnType<typeof luminanceToAlpha> | ReturnType<typeof onDisappear> | ReturnType<typeof opacity> | ReturnType<typeof clipShape> | ReturnType<typeof border> | ReturnType<typeof scaleEffect> | ReturnType<typeof rotationEffect> | ReturnType<typeof rotation3DEffect> | ReturnType<typeof offset> | ReturnType<typeof foregroundColor> | ReturnType<typeof foregroundStyle> | ReturnType<typeof bold> | ReturnType<typeof italic> | ReturnType<typeof monospacedDigit> | ReturnType<typeof tint> | ReturnType<typeof hidden> | ReturnType<typeof disabled> | ReturnType<typeof zIndex> | ReturnType<typeof blur> | ReturnType<typeof brightness> | ReturnType<typeof contrast> | ReturnType<typeof saturation> | ReturnType<typeof hueRotation> | ReturnType<typeof colorInvert> | ReturnType<typeof grayscale> | ReturnType<typeof buttonStyle> | ReturnType<typeof toggleStyle> | ReturnType<typeof controlSize> | ReturnType<typeof labelStyle> | ReturnType<typeof labelsHidden> | ReturnType<typeof textFieldStyle> | ReturnType<typeof menuActionDismissBehavior> | ReturnType<typeof accessibilityLabel> | ReturnType<typeof accessibilityHint> | ReturnType<typeof accessibilityValue> | ReturnType<typeof layoutPriority> | ReturnType<typeof mask> | ReturnType<typeof overlay> | ReturnType<typeof backgroundOverlay> | ReturnType<typeof aspectRatio> | ReturnType<typeof clipped> | ReturnType<typeof glassEffect> | ReturnType<typeof glassEffectId> | ReturnType<typeof animation> | ReturnType<typeof containerShape> | ReturnType<typeof contentShape> | ReturnType<typeof containerRelativeFrame> | ReturnType<typeof scrollContentBackground> | ReturnType<typeof scrollDisabled> | ReturnType<typeof defaultScrollAnchor> | ReturnType<typeof defaultScrollAnchorForRole> | ReturnType<typeof moveDisabled> | ReturnType<typeof deleteDisabled> | ReturnType<typeof environment> | ReturnType<typeof listRowBackground> | ReturnType<typeof listRowSeparator> | ReturnType<typeof truncationMode> | ReturnType<typeof allowsTightening> | ReturnType<typeof kerning> | ReturnType<typeof textCase> | ReturnType<typeof underline> | ReturnType<typeof strikethrough> | ReturnType<typeof multilineTextAlignment> | ReturnType<typeof textSelection> | ReturnType<typeof lineSpacing> | ReturnType<typeof lineLimit> | ReturnType<typeof headerProminence> | ReturnType<typeof listRowInsets> | ReturnType<typeof badgeProminence> | ReturnType<typeof badge> | ReturnType<typeof listSectionMargins> | ReturnType<typeof font> | ReturnType<typeof gridCellUnsizedAxes> | ReturnType<typeof gridCellColumns> | ReturnType<typeof gridColumnAlignment> | ReturnType<typeof gridCellAnchor> | ReturnType<typeof submitLabel> | ReturnType<typeof datePickerStyle> | ReturnType<typeof progressViewStyle> | ReturnType<typeof gaugeStyle> | ReturnType<typeof listStyle> | ReturnType<typeof contentTransition> | ReturnType<typeof resizable> | ReturnType<typeof widgetAccentedRenderingMode>;
|
|
851
872
|
/**
|
|
852
873
|
* Main ViewModifier type that supports both built-in and 3rd party modifiers.
|
|
853
874
|
* 3rd party modifiers should return ModifierConfig objects with their own type strings.
|