@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,40 +1,98 @@
|
|
|
1
1
|
import { type ColorValue } from 'react-native';
|
|
2
|
-
import {
|
|
2
|
+
import { type ModifierConfig } from '../../types';
|
|
3
3
|
/**
|
|
4
4
|
* Colors for card's core elements.
|
|
5
5
|
*/
|
|
6
|
-
export type
|
|
6
|
+
export type CardColors = {
|
|
7
7
|
containerColor?: ColorValue;
|
|
8
8
|
contentColor?: ColorValue;
|
|
9
9
|
};
|
|
10
|
+
/**
|
|
11
|
+
* Border configuration for cards.
|
|
12
|
+
*/
|
|
13
|
+
export type CardBorder = {
|
|
14
|
+
/**
|
|
15
|
+
* Border width in dp.
|
|
16
|
+
* @default 1
|
|
17
|
+
*/
|
|
18
|
+
width?: number;
|
|
19
|
+
/**
|
|
20
|
+
* Border color.
|
|
21
|
+
*/
|
|
22
|
+
color?: ColorValue;
|
|
23
|
+
};
|
|
10
24
|
export type CardProps = {
|
|
11
25
|
/**
|
|
12
26
|
* The content to display inside the card.
|
|
13
27
|
*/
|
|
14
28
|
children?: React.ReactNode;
|
|
15
29
|
/**
|
|
16
|
-
*
|
|
17
|
-
* - 'default' - A filled card with no outline.
|
|
18
|
-
* - 'elevated' - A filled card with elevation/shadow.
|
|
19
|
-
* - 'outlined' - A card with an outline border.
|
|
20
|
-
* @default 'default'
|
|
30
|
+
* Colors for card's core elements.
|
|
21
31
|
*/
|
|
22
|
-
|
|
32
|
+
colors?: CardColors;
|
|
23
33
|
/**
|
|
24
|
-
*
|
|
34
|
+
* Default elevation in dp.
|
|
25
35
|
*/
|
|
26
|
-
|
|
36
|
+
elevation?: number;
|
|
37
|
+
/**
|
|
38
|
+
* Border configuration for the card.
|
|
39
|
+
*/
|
|
40
|
+
border?: CardBorder;
|
|
41
|
+
/**
|
|
42
|
+
* Modifiers for the component.
|
|
43
|
+
*/
|
|
44
|
+
modifiers?: ModifierConfig[];
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* A card component that renders a filled card surface for content.
|
|
48
|
+
*/
|
|
49
|
+
export declare const Card: import("react").ComponentType<CardProps>;
|
|
50
|
+
export type ElevatedCardProps = {
|
|
51
|
+
/**
|
|
52
|
+
* The content to display inside the card.
|
|
53
|
+
*/
|
|
54
|
+
children?: React.ReactNode;
|
|
55
|
+
/**
|
|
56
|
+
* Colors for card's core elements.
|
|
57
|
+
*/
|
|
58
|
+
colors?: CardColors;
|
|
59
|
+
/**
|
|
60
|
+
* Default elevation in dp. Material 3 default is 1dp.
|
|
61
|
+
*/
|
|
62
|
+
elevation?: number;
|
|
63
|
+
/**
|
|
64
|
+
* Modifiers for the component.
|
|
65
|
+
*/
|
|
66
|
+
modifiers?: ModifierConfig[];
|
|
67
|
+
};
|
|
68
|
+
/**
|
|
69
|
+
* An elevated card component that provides a raised surface for content.
|
|
70
|
+
*/
|
|
71
|
+
export declare const ElevatedCard: import("react").ComponentType<ElevatedCardProps>;
|
|
72
|
+
export type OutlinedCardProps = {
|
|
73
|
+
/**
|
|
74
|
+
* The content to display inside the card.
|
|
75
|
+
*/
|
|
76
|
+
children?: React.ReactNode;
|
|
27
77
|
/**
|
|
28
78
|
* Colors for card's core elements.
|
|
29
79
|
*/
|
|
30
|
-
|
|
80
|
+
colors?: CardColors;
|
|
81
|
+
/**
|
|
82
|
+
* Default elevation in dp.
|
|
83
|
+
*/
|
|
84
|
+
elevation?: number;
|
|
85
|
+
/**
|
|
86
|
+
* Border configuration for the outlined card.
|
|
87
|
+
*/
|
|
88
|
+
border?: CardBorder;
|
|
31
89
|
/**
|
|
32
90
|
* Modifiers for the component.
|
|
33
91
|
*/
|
|
34
|
-
modifiers?:
|
|
92
|
+
modifiers?: ModifierConfig[];
|
|
35
93
|
};
|
|
36
94
|
/**
|
|
37
|
-
*
|
|
95
|
+
* An outlined card component that provides a bordered surface for content.
|
|
38
96
|
*/
|
|
39
|
-
export declare
|
|
97
|
+
export declare const OutlinedCard: import("react").ComponentType<OutlinedCardProps>;
|
|
40
98
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/jetpack-compose/Card/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/Card/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,aAAa,CAAC;AAGlD;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB,cAAc,CAAC,EAAE,UAAU,CAAC;IAC5B,YAAY,CAAC,EAAE,UAAU,CAAC;CAC3B,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,KAAK,CAAC,EAAE,UAAU,CAAC;CACpB,CAAC;AAsBF,MAAM,MAAM,SAAS,GAAG;IACtB;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B;;OAEG;IACH,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,cAAc,EAAE,CAAC;CAC9B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,IAAI,0CAA6C,CAAC;AAM/D,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B;;OAEG;IACH,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,SAAS,CAAC,EAAE,cAAc,EAAE,CAAC;CAC9B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,YAAY,kDAA6D,CAAC;AAMvF,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B;;OAEG;IACH,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,cAAc,EAAE,CAAC;CAC9B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,YAAY,kDAA6D,CAAC"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { type ColorValue } from 'react-native';
|
|
2
|
+
import { type ModifierConfig } from '../../types';
|
|
3
|
+
/**
|
|
4
|
+
* Colors for checkbox core elements.
|
|
5
|
+
*/
|
|
6
|
+
export type CheckboxColors = {
|
|
7
|
+
checkedColor?: ColorValue;
|
|
8
|
+
disabledCheckedColor?: ColorValue;
|
|
9
|
+
uncheckedColor?: ColorValue;
|
|
10
|
+
disabledUncheckedColor?: ColorValue;
|
|
11
|
+
checkmarkColor?: ColorValue;
|
|
12
|
+
disabledIndeterminateColor?: ColorValue;
|
|
13
|
+
};
|
|
14
|
+
export type CheckboxProps = {
|
|
15
|
+
/**
|
|
16
|
+
* Indicates whether the checkbox is checked.
|
|
17
|
+
*/
|
|
18
|
+
value: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Whether the checkbox is enabled.
|
|
21
|
+
* @default true
|
|
22
|
+
*/
|
|
23
|
+
enabled?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Callback function that is called when the checked state changes.
|
|
26
|
+
*/
|
|
27
|
+
onCheckedChange?: (value: boolean) => void;
|
|
28
|
+
/**
|
|
29
|
+
* Colors for checkbox core elements.
|
|
30
|
+
*/
|
|
31
|
+
colors?: CheckboxColors;
|
|
32
|
+
/**
|
|
33
|
+
* Modifiers for the component.
|
|
34
|
+
*/
|
|
35
|
+
modifiers?: ModifierConfig[];
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* A checkbox component.
|
|
39
|
+
*/
|
|
40
|
+
export declare function Checkbox(props: CheckboxProps): import("react").JSX.Element;
|
|
41
|
+
/**
|
|
42
|
+
* The toggleable state of a tri-state checkbox.
|
|
43
|
+
*/
|
|
44
|
+
export type ToggleableState = 'on' | 'off' | 'indeterminate';
|
|
45
|
+
export type TriStateCheckboxProps = {
|
|
46
|
+
/**
|
|
47
|
+
* The toggleable state of the checkbox: `'on'`, `'off'`, or `'indeterminate'`.
|
|
48
|
+
*/
|
|
49
|
+
state: ToggleableState;
|
|
50
|
+
/**
|
|
51
|
+
* Whether the checkbox is enabled.
|
|
52
|
+
* @default true
|
|
53
|
+
*/
|
|
54
|
+
enabled?: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Callback function that is called when the checkbox is clicked.
|
|
57
|
+
*/
|
|
58
|
+
onClick?: () => void;
|
|
59
|
+
/**
|
|
60
|
+
* Colors for checkbox core elements.
|
|
61
|
+
*/
|
|
62
|
+
colors?: CheckboxColors;
|
|
63
|
+
/**
|
|
64
|
+
* Modifiers for the component.
|
|
65
|
+
*/
|
|
66
|
+
modifiers?: ModifierConfig[];
|
|
67
|
+
};
|
|
68
|
+
/**
|
|
69
|
+
* A tri-state checkbox component that supports `'on'`, `'off'`, and `'indeterminate'` states.
|
|
70
|
+
* Useful for "select all" patterns where the parent checkbox reflects the state of its children.
|
|
71
|
+
*/
|
|
72
|
+
export declare function TriStateCheckbox(props: TriStateCheckboxProps): import("react").JSX.Element;
|
|
73
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/jetpack-compose/Checkbox/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAwB,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAErE,OAAO,EAAE,KAAK,cAAc,EAAa,MAAM,aAAa,CAAC;AAG7D;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B,YAAY,CAAC,EAAE,UAAU,CAAC;IAC1B,oBAAoB,CAAC,EAAE,UAAU,CAAC;IAClC,cAAc,CAAC,EAAE,UAAU,CAAC;IAC5B,sBAAsB,CAAC,EAAE,UAAU,CAAC;IACpC,cAAc,CAAC,EAAE,UAAU,CAAC;IAC5B,0BAA0B,CAAC,EAAE,UAAU,CAAC;CACzC,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B;;OAEG;IACH,KAAK,EAAE,OAAO,CAAC;IACf;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IAC3C;;OAEG;IACH,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB;;OAEG;IACH,SAAS,CAAC,EAAE,cAAc,EAAE,CAAC;CAC9B,CAAC;AAyBF;;GAEG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,aAAa,+BAE5C;AAED;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,IAAI,GAAG,KAAK,GAAG,eAAe,CAAC;AAE7D,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,KAAK,EAAE,eAAe,CAAC;IACvB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;OAEG;IACH,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB;;OAEG;IACH,SAAS,CAAC,EAAE,cAAc,EAAE,CAAC;CAC9B,CAAC;AAoBF;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,qBAAqB,+BAE5D"}
|
|
@@ -1,57 +1,277 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import { type ColorValue } from 'react-native';
|
|
2
|
+
import { type ModifierConfig } from '../../types';
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Colors for AssistChip.
|
|
5
5
|
*/
|
|
6
|
-
export type
|
|
7
|
-
|
|
6
|
+
export type AssistChipColors = {
|
|
7
|
+
containerColor?: ColorValue;
|
|
8
|
+
labelColor?: ColorValue;
|
|
9
|
+
leadingIconContentColor?: ColorValue;
|
|
10
|
+
trailingIconContentColor?: ColorValue;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Colors for FilterChip.
|
|
14
|
+
*/
|
|
15
|
+
export type FilterChipColors = {
|
|
16
|
+
containerColor?: ColorValue;
|
|
17
|
+
labelColor?: ColorValue;
|
|
18
|
+
iconColor?: ColorValue;
|
|
19
|
+
selectedContainerColor?: ColorValue;
|
|
20
|
+
selectedLabelColor?: ColorValue;
|
|
21
|
+
selectedLeadingIconColor?: ColorValue;
|
|
22
|
+
selectedTrailingIconColor?: ColorValue;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Colors for InputChip.
|
|
26
|
+
*/
|
|
27
|
+
export type InputChipColors = {
|
|
28
|
+
containerColor?: ColorValue;
|
|
29
|
+
labelColor?: ColorValue;
|
|
30
|
+
leadingIconColor?: ColorValue;
|
|
31
|
+
trailingIconColor?: ColorValue;
|
|
32
|
+
selectedContainerColor?: ColorValue;
|
|
33
|
+
selectedLabelColor?: ColorValue;
|
|
34
|
+
selectedLeadingIconColor?: ColorValue;
|
|
35
|
+
selectedTrailingIconColor?: ColorValue;
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* Colors for SuggestionChip.
|
|
39
|
+
*/
|
|
40
|
+
export type SuggestionChipColors = {
|
|
41
|
+
containerColor?: ColorValue;
|
|
42
|
+
labelColor?: ColorValue;
|
|
43
|
+
iconContentColor?: ColorValue;
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* Border configuration for chips.
|
|
47
|
+
*/
|
|
48
|
+
export type ChipBorder = {
|
|
49
|
+
/**
|
|
50
|
+
* Border width in dp.
|
|
51
|
+
* @default 1
|
|
52
|
+
*/
|
|
53
|
+
width?: number;
|
|
8
54
|
/**
|
|
9
|
-
*
|
|
55
|
+
* Border color.
|
|
10
56
|
*/
|
|
11
|
-
|
|
57
|
+
color?: ColorValue;
|
|
58
|
+
};
|
|
59
|
+
type SlotChildProps = {
|
|
60
|
+
children: React.ReactNode;
|
|
61
|
+
};
|
|
62
|
+
export type AssistChipProps = {
|
|
12
63
|
/**
|
|
13
|
-
*
|
|
64
|
+
* Whether the chip is enabled and can be clicked.
|
|
65
|
+
* @default true
|
|
14
66
|
*/
|
|
15
|
-
|
|
67
|
+
enabled?: boolean;
|
|
16
68
|
/**
|
|
17
|
-
*
|
|
69
|
+
* Colors for the chip's container, label, and icons.
|
|
18
70
|
*/
|
|
19
|
-
|
|
71
|
+
colors?: AssistChipColors;
|
|
20
72
|
/**
|
|
21
|
-
*
|
|
73
|
+
* Elevation in dp.
|
|
22
74
|
*/
|
|
23
|
-
|
|
75
|
+
elevation?: number;
|
|
24
76
|
/**
|
|
25
|
-
*
|
|
77
|
+
* Border configuration.
|
|
26
78
|
*/
|
|
27
|
-
|
|
79
|
+
border?: ChipBorder;
|
|
28
80
|
/**
|
|
29
|
-
*
|
|
81
|
+
* Callback fired when the chip is clicked.
|
|
30
82
|
*/
|
|
31
|
-
|
|
83
|
+
onClick?: () => void;
|
|
32
84
|
/**
|
|
33
|
-
*
|
|
85
|
+
* Modifiers for the component.
|
|
86
|
+
*/
|
|
87
|
+
modifiers?: ModifierConfig[];
|
|
88
|
+
/**
|
|
89
|
+
* Children containing Label, LeadingIcon, and TrailingIcon slots.
|
|
90
|
+
*/
|
|
91
|
+
children: React.ReactNode;
|
|
92
|
+
};
|
|
93
|
+
/**
|
|
94
|
+
* Label slot for AssistChip.
|
|
95
|
+
*/
|
|
96
|
+
declare function AssistChipLabel(props: SlotChildProps): import("react").JSX.Element;
|
|
97
|
+
/**
|
|
98
|
+
* Leading icon slot for AssistChip.
|
|
99
|
+
*/
|
|
100
|
+
declare function AssistChipLeadingIcon(props: SlotChildProps): import("react").JSX.Element;
|
|
101
|
+
/**
|
|
102
|
+
* Trailing icon slot for AssistChip.
|
|
103
|
+
*/
|
|
104
|
+
declare function AssistChipTrailingIcon(props: SlotChildProps): import("react").JSX.Element;
|
|
105
|
+
/**
|
|
106
|
+
* An assist chip that helps users complete actions and primary tasks.
|
|
107
|
+
*/
|
|
108
|
+
declare function AssistChipComponent(props: AssistChipProps): import("react").JSX.Element;
|
|
109
|
+
declare namespace AssistChipComponent {
|
|
110
|
+
var Label: typeof AssistChipLabel;
|
|
111
|
+
var LeadingIcon: typeof AssistChipLeadingIcon;
|
|
112
|
+
var TrailingIcon: typeof AssistChipTrailingIcon;
|
|
113
|
+
}
|
|
114
|
+
export { AssistChipComponent as AssistChip };
|
|
115
|
+
export type FilterChipProps = {
|
|
116
|
+
/**
|
|
117
|
+
* Whether the chip is currently selected.
|
|
118
|
+
*/
|
|
119
|
+
selected: boolean;
|
|
120
|
+
/**
|
|
121
|
+
* Whether the chip is enabled and can be interacted with.
|
|
34
122
|
*/
|
|
35
123
|
enabled?: boolean;
|
|
36
124
|
/**
|
|
37
|
-
*
|
|
125
|
+
* Colors for the chip's container, label, icon, and selected states.
|
|
38
126
|
*/
|
|
39
|
-
|
|
127
|
+
colors?: FilterChipColors;
|
|
128
|
+
/**
|
|
129
|
+
* Elevation in dp.
|
|
130
|
+
*/
|
|
131
|
+
elevation?: number;
|
|
132
|
+
/**
|
|
133
|
+
* Border configuration.
|
|
134
|
+
*/
|
|
135
|
+
border?: ChipBorder;
|
|
136
|
+
/**
|
|
137
|
+
* Callback fired when the chip is clicked.
|
|
138
|
+
*/
|
|
139
|
+
onClick?: () => void;
|
|
40
140
|
/**
|
|
41
141
|
* Modifiers for the component.
|
|
42
142
|
*/
|
|
43
|
-
modifiers?:
|
|
143
|
+
modifiers?: ModifierConfig[];
|
|
44
144
|
/**
|
|
45
|
-
*
|
|
145
|
+
* Children containing Label, LeadingIcon, and TrailingIcon slots.
|
|
46
146
|
*/
|
|
47
|
-
|
|
147
|
+
children: React.ReactNode;
|
|
148
|
+
};
|
|
149
|
+
/**
|
|
150
|
+
* Label slot for FilterChip.
|
|
151
|
+
*/
|
|
152
|
+
declare function FilterChipLabel(props: SlotChildProps): import("react").JSX.Element;
|
|
153
|
+
/**
|
|
154
|
+
* Leading icon slot for FilterChip.
|
|
155
|
+
*/
|
|
156
|
+
declare function FilterChipLeadingIcon(props: SlotChildProps): import("react").JSX.Element;
|
|
157
|
+
/**
|
|
158
|
+
* Trailing icon slot for FilterChip.
|
|
159
|
+
*/
|
|
160
|
+
declare function FilterChipTrailingIcon(props: SlotChildProps): import("react").JSX.Element;
|
|
161
|
+
/**
|
|
162
|
+
* A filter chip component for refining content with selection/deselection.
|
|
163
|
+
*/
|
|
164
|
+
declare function FilterChipComponent(props: FilterChipProps): import("react").JSX.Element;
|
|
165
|
+
declare namespace FilterChipComponent {
|
|
166
|
+
var Label: typeof FilterChipLabel;
|
|
167
|
+
var LeadingIcon: typeof FilterChipLeadingIcon;
|
|
168
|
+
var TrailingIcon: typeof FilterChipTrailingIcon;
|
|
169
|
+
}
|
|
170
|
+
export { FilterChipComponent as FilterChip };
|
|
171
|
+
export type InputChipProps = {
|
|
48
172
|
/**
|
|
49
|
-
*
|
|
173
|
+
* Whether the chip is enabled and can be interacted with.
|
|
174
|
+
* @default true
|
|
50
175
|
*/
|
|
51
|
-
|
|
176
|
+
enabled?: boolean;
|
|
177
|
+
/**
|
|
178
|
+
* Whether the chip is selected.
|
|
179
|
+
* @default false
|
|
180
|
+
*/
|
|
181
|
+
selected?: boolean;
|
|
182
|
+
/**
|
|
183
|
+
* Colors for the chip's container, label, icons, and selected states.
|
|
184
|
+
*/
|
|
185
|
+
colors?: InputChipColors;
|
|
186
|
+
/**
|
|
187
|
+
* Elevation in dp.
|
|
188
|
+
*/
|
|
189
|
+
elevation?: number;
|
|
190
|
+
/**
|
|
191
|
+
* Border configuration.
|
|
192
|
+
*/
|
|
193
|
+
border?: ChipBorder;
|
|
194
|
+
/**
|
|
195
|
+
* Callback fired when the chip is clicked.
|
|
196
|
+
*/
|
|
197
|
+
onClick?: () => void;
|
|
198
|
+
/**
|
|
199
|
+
* Modifiers for the component.
|
|
200
|
+
*/
|
|
201
|
+
modifiers?: ModifierConfig[];
|
|
202
|
+
/**
|
|
203
|
+
* Children containing Label, Avatar, and TrailingIcon slots.
|
|
204
|
+
*/
|
|
205
|
+
children: React.ReactNode;
|
|
206
|
+
};
|
|
207
|
+
/**
|
|
208
|
+
* Label slot for InputChip.
|
|
209
|
+
*/
|
|
210
|
+
declare function InputChipLabel(props: SlotChildProps): import("react").JSX.Element;
|
|
211
|
+
/**
|
|
212
|
+
* Avatar slot for InputChip.
|
|
213
|
+
*/
|
|
214
|
+
declare function InputChipAvatar(props: SlotChildProps): import("react").JSX.Element;
|
|
215
|
+
/**
|
|
216
|
+
* Trailing icon slot for InputChip.
|
|
217
|
+
*/
|
|
218
|
+
declare function InputChipTrailingIcon(props: SlotChildProps): import("react").JSX.Element;
|
|
219
|
+
/**
|
|
220
|
+
* An input chip that represents user input and can be dismissed.
|
|
221
|
+
*/
|
|
222
|
+
declare function InputChipComponent(props: InputChipProps): import("react").JSX.Element;
|
|
223
|
+
declare namespace InputChipComponent {
|
|
224
|
+
var Label: typeof InputChipLabel;
|
|
225
|
+
var Avatar: typeof InputChipAvatar;
|
|
226
|
+
var TrailingIcon: typeof InputChipTrailingIcon;
|
|
52
227
|
}
|
|
228
|
+
export { InputChipComponent as InputChip };
|
|
229
|
+
export type SuggestionChipProps = {
|
|
230
|
+
/**
|
|
231
|
+
* Whether the chip is enabled and can be clicked.
|
|
232
|
+
* @default true
|
|
233
|
+
*/
|
|
234
|
+
enabled?: boolean;
|
|
235
|
+
/**
|
|
236
|
+
* Colors for the chip's container, label, and icon.
|
|
237
|
+
*/
|
|
238
|
+
colors?: SuggestionChipColors;
|
|
239
|
+
/**
|
|
240
|
+
* Elevation in dp.
|
|
241
|
+
*/
|
|
242
|
+
elevation?: number;
|
|
243
|
+
/**
|
|
244
|
+
* Border configuration.
|
|
245
|
+
*/
|
|
246
|
+
border?: ChipBorder;
|
|
247
|
+
/**
|
|
248
|
+
* Callback fired when the chip is clicked.
|
|
249
|
+
*/
|
|
250
|
+
onClick?: () => void;
|
|
251
|
+
/**
|
|
252
|
+
* Modifiers for the component.
|
|
253
|
+
*/
|
|
254
|
+
modifiers?: ModifierConfig[];
|
|
255
|
+
/**
|
|
256
|
+
* Children containing Label and Icon slots.
|
|
257
|
+
*/
|
|
258
|
+
children: React.ReactNode;
|
|
259
|
+
};
|
|
53
260
|
/**
|
|
54
|
-
*
|
|
261
|
+
* Label slot for SuggestionChip.
|
|
55
262
|
*/
|
|
56
|
-
|
|
263
|
+
declare function SuggestionChipLabel(props: SlotChildProps): import("react").JSX.Element;
|
|
264
|
+
/**
|
|
265
|
+
* Icon slot for SuggestionChip.
|
|
266
|
+
*/
|
|
267
|
+
declare function SuggestionChipIcon(props: SlotChildProps): import("react").JSX.Element;
|
|
268
|
+
/**
|
|
269
|
+
* A suggestion chip that offers contextual suggestions and recommendations.
|
|
270
|
+
*/
|
|
271
|
+
declare function SuggestionChipComponent(props: SuggestionChipProps): import("react").JSX.Element;
|
|
272
|
+
declare namespace SuggestionChipComponent {
|
|
273
|
+
var Label: typeof SuggestionChipLabel;
|
|
274
|
+
var Icon: typeof SuggestionChipIcon;
|
|
275
|
+
}
|
|
276
|
+
export { SuggestionChipComponent as SuggestionChip };
|
|
57
277
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/jetpack-compose/Chip/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/jetpack-compose/Chip/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,aAAa,CAAC;AAGlD;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B,cAAc,CAAC,EAAE,UAAU,CAAC;IAC5B,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,uBAAuB,CAAC,EAAE,UAAU,CAAC;IACrC,wBAAwB,CAAC,EAAE,UAAU,CAAC;CACvC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B,cAAc,CAAC,EAAE,UAAU,CAAC;IAC5B,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,SAAS,CAAC,EAAE,UAAU,CAAC;IACvB,sBAAsB,CAAC,EAAE,UAAU,CAAC;IACpC,kBAAkB,CAAC,EAAE,UAAU,CAAC;IAChC,wBAAwB,CAAC,EAAE,UAAU,CAAC;IACtC,yBAAyB,CAAC,EAAE,UAAU,CAAC;CACxC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,cAAc,CAAC,EAA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@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ColorValue } from 'react-native';
|
|
2
|
-
import {
|
|
2
|
+
import type { ModifierConfig } from '../../types';
|
|
3
3
|
export type AndroidVariant = 'picker' | 'input';
|
|
4
4
|
export type DisplayedComponents = 'date' | 'hourAndMinute' | 'dateAndTime';
|
|
5
5
|
/**
|
|
@@ -137,13 +137,48 @@ export type DateTimePickerProps = {
|
|
|
137
137
|
* @default true
|
|
138
138
|
*/
|
|
139
139
|
is24Hour?: boolean;
|
|
140
|
+
/**
|
|
141
|
+
* Constrains which dates can be selected. Mirrors the native Compose `selectableDates` parameter.
|
|
142
|
+
* `start` is the earliest selectable date, `end` is the latest.
|
|
143
|
+
*/
|
|
144
|
+
selectableDates?: {
|
|
145
|
+
start?: Date;
|
|
146
|
+
end?: Date;
|
|
147
|
+
};
|
|
140
148
|
/**
|
|
141
149
|
* Modifiers for the component.
|
|
142
150
|
*/
|
|
143
|
-
modifiers?:
|
|
151
|
+
modifiers?: ModifierConfig[];
|
|
144
152
|
};
|
|
145
153
|
/**
|
|
146
|
-
* Renders
|
|
154
|
+
* Renders an inline `DateTimePicker` component.
|
|
147
155
|
*/
|
|
148
156
|
export declare function DateTimePicker(props: DateTimePickerProps): import("react").JSX.Element;
|
|
157
|
+
export type DatePickerDialogProps = {
|
|
158
|
+
initialDate?: string | null;
|
|
159
|
+
variant?: AndroidVariant;
|
|
160
|
+
showVariantToggle?: boolean;
|
|
161
|
+
confirmButtonLabel?: string;
|
|
162
|
+
dismissButtonLabel?: string;
|
|
163
|
+
color?: ColorValue;
|
|
164
|
+
elementColors?: DatePickerElementColors & TimePickerElementColors;
|
|
165
|
+
selectableDates?: {
|
|
166
|
+
start?: Date;
|
|
167
|
+
end?: Date;
|
|
168
|
+
};
|
|
169
|
+
onDateSelected?: (date: Date) => void;
|
|
170
|
+
onDismissRequest: () => void;
|
|
171
|
+
};
|
|
172
|
+
export declare function DatePickerDialog(props: DatePickerDialogProps): import("react").JSX.Element;
|
|
173
|
+
export type TimePickerDialogProps = {
|
|
174
|
+
initialDate?: string | null;
|
|
175
|
+
is24Hour?: boolean;
|
|
176
|
+
confirmButtonLabel?: string;
|
|
177
|
+
dismissButtonLabel?: string;
|
|
178
|
+
color?: ColorValue;
|
|
179
|
+
elementColors?: DatePickerElementColors & TimePickerElementColors;
|
|
180
|
+
onDateSelected?: (date: Date) => void;
|
|
181
|
+
onDismissRequest: () => void;
|
|
182
|
+
};
|
|
183
|
+
export declare function TimePickerDialog(props: TimePickerDialogProps): import("react").JSX.Element;
|
|
149
184
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/jetpack-compose/DatePicker/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/DatePicker/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,KAAK,EAAE,cAAc,EAAa,MAAM,aAAa,CAAC;AAG7D,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,OAAO,CAAC;AAEhD,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG,eAAe,GAAG,aAAa,CAAC;AAE3E;;;GAGG;AACH,MAAM,MAAM,uBAAuB,GAAG;IACpC,+CAA+C;IAC/C,cAAc,CAAC,EAAE,UAAU,CAAC;IAC5B,kDAAkD;IAClD,iBAAiB,CAAC,EAAE,UAAU,CAAC;IAC/B,qDAAqD;IACrD,oBAAoB,CAAC,EAAE,UAAU,CAAC;IAClC,+DAA+D;IAC/D,mBAAmB,CAAC,EAAE,UAAU,CAAC;IACjC,4DAA4D;IAC5D,mBAAmB,CAAC,EAAE,UAAU,CAAC;IACjC,2EAA2E;IAC3E,sBA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orValue } from 'react-native';
|
|
2
|
+
import { ModifierConfig } from '../../types';
|
|
3
|
+
/**
|
|
4
|
+
* Color overrides for the `DropdownMenuItem` component.
|
|
5
|
+
*/
|
|
6
|
+
export type DropdownMenuItemElementColors = {
|
|
7
|
+
/** Color of the menu item text. */
|
|
8
|
+
textColor?: ColorValue;
|
|
9
|
+
/** Color of the text when the menu item is disabled. */
|
|
10
|
+
disabledTextColor?: ColorValue;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Props of the `DropdownMenuItem` component.
|
|
14
|
+
*/
|
|
15
|
+
export type DropdownMenuItemProps = {
|
|
16
|
+
/**
|
|
17
|
+
* Whether the menu item is enabled.
|
|
18
|
+
* @default true
|
|
19
|
+
*/
|
|
20
|
+
enabled?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Color overrides for the menu item.
|
|
23
|
+
*/
|
|
24
|
+
elementColors?: DropdownMenuItemElementColors;
|
|
25
|
+
/**
|
|
26
|
+
* Modifiers for the component.
|
|
27
|
+
*/
|
|
28
|
+
modifiers?: ModifierConfig[];
|
|
29
|
+
/**
|
|
30
|
+
* Callback that is called when the menu item is clicked.
|
|
31
|
+
*/
|
|
32
|
+
onClick?: () => void;
|
|
33
|
+
/**
|
|
34
|
+
* Slot children for text, leading/trailing icons.
|
|
35
|
+
*/
|
|
36
|
+
children?: React.ReactNode;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* A dropdown menu item component that wraps Compose's `DropdownMenuItem`.
|
|
40
|
+
* Should be used inside `DropdownMenu.Items`.
|
|
41
|
+
*
|
|
42
|
+
* @platform android
|
|
43
|
+
*/
|
|
44
|
+
/**
|
|
45
|
+
* A text slot for `DropdownMenuItem`.
|
|
46
|
+
* Wrap text content to display as the menu item label.
|
|
47
|
+
*
|
|
48
|
+
* @platform android
|
|
49
|
+
*/
|
|
50
|
+
declare function TextSlot(props: {
|
|
51
|
+
children: React.ReactNode;
|
|
52
|
+
}): import("react").JSX.Element;
|
|
53
|
+
/**
|
|
54
|
+
* A dropdown menu item component that wraps Compose's `DropdownMenuItem`.
|
|
55
|
+
* Should be used inside `ContextMenu.Items`.
|
|
56
|
+
*
|
|
57
|
+
* @platform android
|
|
58
|
+
*/
|
|
59
|
+
declare function DropdownMenuItemComponent(props: DropdownMenuItemProps): import("react").JSX.Element;
|
|
60
|
+
declare namespace DropdownMenuItemComponent {
|
|
61
|
+
var Text: typeof TextSlot;
|
|
62
|
+
var LeadingIcon: (props: {
|
|
63
|
+
children: React.ReactNode;
|
|
64
|
+
}) => import("react").JSX.Element;
|
|
65
|
+
var TrailingIcon: (props: {
|
|
66
|
+
children: React.ReactNode;
|
|
67
|
+
}) => import("react").JSX.Element;
|
|
68
|
+
}
|
|
69
|
+
export { DropdownMenuItemComponent as DropdownMenuItem };
|
|
70
|
+
//# sourceMappingURL=DropdownMenuItem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DropdownMenuItem.d.ts","sourceRoot":"","sources":["../../../src/jetpack-compose/DropdownMenu/DropdownMenuItem.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,OAAO,EAAE,cAAc,EAAa,MAAM,aAAa,CAAC;AAaxD;;GAEG;AACH,MAAM,MAAM,6BAA6B,GAAG;IAC1C,mCAAmC;IACnC,SAAS,CAAC,EAAE,UAAU,CAAC;IACvB,wDAAwD;IACxD,iBAAiB,CAAC,EAAE,UAAU,CAAC;CAOhC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,aAAa,CAAC,EAAE,6BAA6B,CAAC;IAC9C;;OAEG;IACH,SAAS,CAAC,EAAE,cAAc,EAAE,CAAC;IAC7B;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,CAAC;AA4BF;;;;;GAKG;AACH;;;;;GAKG;AACH,iBAAS,QAAQ,CAAC,KAAK,EAAE;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,+BAErD;AAED;;;;;GAKG;AACH,iBAAS,yBAAyB,CAAC,KAAK,EAAE,qBAAqB,+BAY9D;kBAZQ,yBAAyB;;6BApCN;QAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;KAAE;8BAU5B;QAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;KAAE;;AA4C1D,OAAO,EAAE,yBAAyB,IAAI,gBAAgB,EAAE,CAAC"}
|