@expo/ui 55.0.0 → 55.0.2
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 +33 -0
- package/CONTRIBUTING.md +30 -0
- package/android/build.gradle +2 -2
- package/android/src/main/java/expo/modules/ui/DatePickerView.kt +90 -7
- package/android/src/main/java/expo/modules/ui/HorizontalFloatingToolbarView.kt +21 -8
- package/android/src/main/java/expo/modules/ui/ModifierRegistry.kt +105 -39
- package/android/src/main/java/expo/modules/ui/RNHostView.kt +204 -50
- package/android/src/main/java/expo/modules/ui/SwitchView.kt +70 -4
- package/android/src/main/java/expo/modules/ui/button/IconButton.kt +7 -1
- package/android/src/main/java/expo/modules/ui/convertibles/AnimatableFloat.kt +26 -0
- package/android/src/main/java/expo/modules/ui/convertibles/AnimationSpecParams.kt +93 -0
- package/android/src/main/java/expo/modules/ui/convertibles/GraphicsLayerParams.kt +24 -0
- package/build/jetpack-compose/Box/index.d.ts +14 -0
- package/build/jetpack-compose/Box/index.d.ts.map +1 -0
- package/build/jetpack-compose/Column/index.d.ts +22 -0
- package/build/jetpack-compose/Column/index.d.ts.map +1 -0
- package/build/jetpack-compose/DatePicker/index.d.ts +99 -0
- package/build/jetpack-compose/DatePicker/index.d.ts.map +1 -1
- package/build/jetpack-compose/FlowRow/index.d.ts +14 -0
- package/build/jetpack-compose/FlowRow/index.d.ts.map +1 -0
- package/build/jetpack-compose/LazyColumn/index.d.ts +0 -3
- package/build/jetpack-compose/LazyColumn/index.d.ts.map +1 -1
- package/build/jetpack-compose/Row/index.d.ts +22 -0
- package/build/jetpack-compose/Row/index.d.ts.map +1 -0
- package/build/jetpack-compose/Spacer/index.d.ts +2 -2
- package/build/jetpack-compose/Switch/index.d.ts +18 -0
- package/build/jetpack-compose/Switch/index.d.ts.map +1 -1
- package/build/jetpack-compose/index.d.ts +4 -1
- package/build/jetpack-compose/index.d.ts.map +1 -1
- package/build/jetpack-compose/layout-types.d.ts +26 -0
- package/build/jetpack-compose/layout-types.d.ts.map +1 -0
- package/build/jetpack-compose/layout.d.ts +5 -36
- package/build/jetpack-compose/layout.d.ts.map +1 -1
- package/build/jetpack-compose/modifiers/animation.d.ts +44 -0
- package/build/jetpack-compose/modifiers/animation.d.ts.map +1 -0
- package/build/jetpack-compose/modifiers/index.d.ts +50 -3
- package/build/jetpack-compose/modifiers/index.d.ts.map +1 -1
- package/build/swift-ui/AccessoryWidgetBackground/index.d.ts +4 -0
- package/build/swift-ui/AccessoryWidgetBackground/index.d.ts.map +1 -0
- package/build/swift-ui/ConfirmationDialog/index.d.ts.map +1 -1
- package/build/swift-ui/ContextMenu/index.d.ts.map +1 -1
- package/build/swift-ui/ControlGroup/index.d.ts +29 -0
- package/build/swift-ui/ControlGroup/index.d.ts.map +1 -0
- package/build/swift-ui/Gauge/index.d.ts.map +1 -1
- package/build/swift-ui/Image/index.d.ts +7 -1
- package/build/swift-ui/Image/index.d.ts.map +1 -1
- package/build/swift-ui/Label/index.d.ts.map +1 -1
- package/build/swift-ui/LabeledContent/index.d.ts.map +1 -1
- package/build/swift-ui/Menu/index.d.ts.map +1 -1
- package/build/swift-ui/Picker/index.d.ts.map +1 -1
- package/build/swift-ui/Popover/index.d.ts.map +1 -1
- package/build/swift-ui/Section/index.d.ts.map +1 -1
- package/build/swift-ui/Slider/index.d.ts.map +1 -1
- package/build/swift-ui/SlotView.d.ts +5 -0
- package/build/swift-ui/SlotView.d.ts.map +1 -0
- package/build/swift-ui/index.d.ts +2 -0
- package/build/swift-ui/index.d.ts.map +1 -1
- package/build/swift-ui/modifiers/index.d.ts +38 -1
- package/build/swift-ui/modifiers/index.d.ts.map +1 -1
- package/expo-module.config.json +1 -1
- package/ios/AccessoryWidgetBackgroundView.swift +27 -0
- package/ios/ConfirmationDialog/ConfirmationDialog.swift +3 -9
- package/ios/ConfirmationDialog/ConfirmationDialogProps.swift +0 -5
- package/ios/ContextMenu/ContextMenu.swift +27 -22
- package/ios/ContextMenu/ContextMenuRecords.swift +0 -6
- package/ios/ControlGroupView.swift +33 -0
- package/ios/ExpoUIModule.swift +10 -32
- package/ios/GaugeView.swift +4 -26
- package/ios/HostView.swift +1 -2
- package/ios/ImageView.swift +22 -11
- package/ios/Label.swift +2 -17
- package/ios/LabeledContentView.swift +3 -27
- package/ios/Menu/MenuRecords.swift +0 -2
- package/ios/Menu/MenuView.swift +2 -5
- package/ios/Modifiers/ResizableModifier.swift +24 -0
- package/ios/Modifiers/Rotation3DEffectModifier.swift +20 -0
- package/ios/Modifiers/View+ModifierArray.swift +29 -0
- package/ios/Modifiers/ViewModifierRegistry.swift +39 -3
- package/ios/Modifiers/WidgetModifiers.swift +46 -0
- package/ios/Picker/PickerView.swift +2 -6
- package/ios/Popover/PopoverProps.swift +0 -4
- package/ios/Popover/PopoverView.swift +2 -6
- package/ios/RNHostView.swift +91 -10
- package/ios/SectionView.swift +6 -12
- package/ios/SecureFieldView.swift +0 -1
- package/ios/ShareLink/ShareLinkView.swift +1 -1
- package/ios/SliderView.swift +10 -27
- package/ios/SlotView.swift +38 -0
- package/ios/TextFieldView.swift +0 -1
- package/ios/UIBaseView.swift +34 -3
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/{55.0.0/expo.modules.ui-55.0.0-sources.jar → 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 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.2/expo.modules.ui-55.0.2-sources.jar.sha1 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.2/expo.modules.ui-55.0.2-sources.jar.sha256 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.2/expo.modules.ui-55.0.2-sources.jar.sha512 +1 -0
- 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 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.2/expo.modules.ui-55.0.2.aar.sha1 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.2/expo.modules.ui-55.0.2.aar.sha256 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.2/expo.modules.ui-55.0.2.aar.sha512 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/{55.0.0/expo.modules.ui-55.0.0.module → 55.0.2/expo.modules.ui-55.0.2.module} +22 -22
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.2/expo.modules.ui-55.0.2.module.md5 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.2/expo.modules.ui-55.0.2.module.sha1 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.2/expo.modules.ui-55.0.2.module.sha256 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.2/expo.modules.ui-55.0.2.module.sha512 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/{55.0.0/expo.modules.ui-55.0.0.pom → 55.0.2/expo.modules.ui-55.0.2.pom} +1 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.2/expo.modules.ui-55.0.2.pom.md5 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.2/expo.modules.ui-55.0.2.pom.sha1 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.2/expo.modules.ui-55.0.2.pom.sha256 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.2/expo.modules.ui-55.0.2.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 +2 -2
- package/src/jetpack-compose/Box/index.tsx +26 -0
- package/src/jetpack-compose/Column/index.tsx +39 -0
- package/src/jetpack-compose/DatePicker/index.tsx +106 -2
- package/src/jetpack-compose/FlowRow/index.tsx +29 -0
- package/src/jetpack-compose/LazyColumn/index.tsx +0 -3
- package/src/jetpack-compose/Row/index.tsx +36 -0
- package/src/jetpack-compose/Spacer/index.tsx +2 -2
- package/src/jetpack-compose/Switch/index.tsx +18 -0
- package/src/jetpack-compose/index.ts +4 -1
- package/src/jetpack-compose/layout-types.ts +48 -0
- package/src/jetpack-compose/layout.tsx +5 -106
- package/src/jetpack-compose/modifiers/animation.ts +37 -0
- package/src/jetpack-compose/modifiers/index.ts +60 -4
- package/src/swift-ui/AccessoryWidgetBackground/index.tsx +12 -0
- package/src/swift-ui/ConfirmationDialog/index.tsx +4 -12
- package/src/swift-ui/ContextMenu/index.tsx +6 -20
- package/src/swift-ui/ControlGroup/index.tsx +59 -0
- package/src/swift-ui/Gauge/index.tsx +5 -20
- package/src/swift-ui/Image/index.tsx +7 -1
- package/src/swift-ui/Label/index.tsx +2 -5
- package/src/swift-ui/LabeledContent/index.tsx +3 -12
- package/src/swift-ui/Menu/index.tsx +2 -6
- package/src/swift-ui/Picker/index.tsx +4 -11
- package/src/swift-ui/Popover/index.tsx +3 -12
- package/src/swift-ui/Section/index.tsx +4 -9
- package/src/swift-ui/Slider/index.tsx +4 -12
- package/src/swift-ui/SlotView.tsx +8 -0
- package/src/swift-ui/index.tsx +2 -0
- package/src/swift-ui/modifiers/index.ts +54 -1
- package/ios/ConfirmationDialog/ConfirmationDialogComponents.swift +0 -26
- package/ios/ContextMenu/ContextMenuComponents.swift +0 -37
- package/ios/Menu/MenuComponents.swift +0 -12
- package/ios/Picker/PickerComponents.swift +0 -24
- package/ios/Popover/PopoverComponents.swift +0 -18
- package/ios/SectionComponents.swift +0 -34
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.0/expo.modules.ui-55.0.0-sources.jar.md5 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.0/expo.modules.ui-55.0.0-sources.jar.sha1 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.0/expo.modules.ui-55.0.0-sources.jar.sha256 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.0/expo.modules.ui-55.0.0-sources.jar.sha512 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.0/expo.modules.ui-55.0.0.aar +0 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.0/expo.modules.ui-55.0.0.aar.md5 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.0/expo.modules.ui-55.0.0.aar.sha1 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.0/expo.modules.ui-55.0.0.aar.sha256 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.0/expo.modules.ui-55.0.0.aar.sha512 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.0/expo.modules.ui-55.0.0.module.md5 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.0/expo.modules.ui-55.0.0.module.sha1 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.0/expo.modules.ui-55.0.0.module.sha256 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.0/expo.modules.ui-55.0.0.module.sha512 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.0/expo.modules.ui-55.0.0.pom.md5 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.0/expo.modules.ui-55.0.0.pom.sha1 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.0/expo.modules.ui-55.0.0.pom.sha256 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.0/expo.modules.ui-55.0.0.pom.sha512 +0 -1
|
@@ -2,6 +2,94 @@ import { type ColorValue } from 'react-native';
|
|
|
2
2
|
import { ExpoModifier } from '../../types';
|
|
3
3
|
export type AndroidVariant = 'picker' | 'input';
|
|
4
4
|
export type DisplayedComponents = 'date' | 'hourAndMinute' | 'dateAndTime';
|
|
5
|
+
/**
|
|
6
|
+
* Color overrides for the Material 3 DatePicker component.
|
|
7
|
+
* All properties are optional — unset values use Material 3 theme defaults.
|
|
8
|
+
*/
|
|
9
|
+
export type DatePickerElementColors = {
|
|
10
|
+
/** The background color of the date picker. */
|
|
11
|
+
containerColor?: ColorValue;
|
|
12
|
+
/** The color used for the date picker's title. */
|
|
13
|
+
titleContentColor?: ColorValue;
|
|
14
|
+
/** The color used for the date picker's headline. */
|
|
15
|
+
headlineContentColor?: ColorValue;
|
|
16
|
+
/** The color used for the weekday letters (Mon, Tue, etc.). */
|
|
17
|
+
weekdayContentColor?: ColorValue;
|
|
18
|
+
/** The color used for the month and year subhead labels. */
|
|
19
|
+
subheadContentColor?: ColorValue;
|
|
20
|
+
/** The color used for navigation arrows and year selection menu button. */
|
|
21
|
+
navigationContentColor?: ColorValue;
|
|
22
|
+
/** The color used for year item content. */
|
|
23
|
+
yearContentColor?: ColorValue;
|
|
24
|
+
/** The color used for disabled year item content. */
|
|
25
|
+
disabledYearContentColor?: ColorValue;
|
|
26
|
+
/** The color used for the current year content. */
|
|
27
|
+
currentYearContentColor?: ColorValue;
|
|
28
|
+
/** The color used for the selected year content. */
|
|
29
|
+
selectedYearContentColor?: ColorValue;
|
|
30
|
+
/** The color used for a disabled selected year content. */
|
|
31
|
+
disabledSelectedYearContentColor?: ColorValue;
|
|
32
|
+
/** The color used for the selected year container/background. */
|
|
33
|
+
selectedYearContainerColor?: ColorValue;
|
|
34
|
+
/** The color used for a disabled selected year container. */
|
|
35
|
+
disabledSelectedYearContainerColor?: ColorValue;
|
|
36
|
+
/** The color used for day content (number text). */
|
|
37
|
+
dayContentColor?: ColorValue;
|
|
38
|
+
/** The color used for disabled day content. */
|
|
39
|
+
disabledDayContentColor?: ColorValue;
|
|
40
|
+
/** The color used for selected day content. */
|
|
41
|
+
selectedDayContentColor?: ColorValue;
|
|
42
|
+
/** The color used for a disabled selected day content. */
|
|
43
|
+
disabledSelectedDayContentColor?: ColorValue;
|
|
44
|
+
/** The color used for the selected day container/background circle. */
|
|
45
|
+
selectedDayContainerColor?: ColorValue;
|
|
46
|
+
/** The color used for a disabled selected day container. */
|
|
47
|
+
disabledSelectedDayContainerColor?: ColorValue;
|
|
48
|
+
/** The color used for today's date text. */
|
|
49
|
+
todayContentColor?: ColorValue;
|
|
50
|
+
/** The color used for today's date border. */
|
|
51
|
+
todayDateBorderColor?: ColorValue;
|
|
52
|
+
/** The content color for days within a date range selection. */
|
|
53
|
+
dayInSelectionRangeContentColor?: ColorValue;
|
|
54
|
+
/** The container color for days within a date range selection. */
|
|
55
|
+
dayInSelectionRangeContainerColor?: ColorValue;
|
|
56
|
+
/** The color used for divider lines. */
|
|
57
|
+
dividerColor?: ColorValue;
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
* Color overrides for the Material 3 TimePicker component.
|
|
61
|
+
* All properties are optional — unset values use Material 3 theme defaults.
|
|
62
|
+
*/
|
|
63
|
+
export type TimePickerElementColors = {
|
|
64
|
+
/** The container/background color of the time picker. */
|
|
65
|
+
containerColor?: ColorValue;
|
|
66
|
+
/** The background color of the clock dial. */
|
|
67
|
+
clockDialColor?: ColorValue;
|
|
68
|
+
/** The color of clock dial numbers when selected or overlapping the selector. */
|
|
69
|
+
clockDialSelectedContentColor?: ColorValue;
|
|
70
|
+
/** The color of clock dial numbers when unselected. */
|
|
71
|
+
clockDialUnselectedContentColor?: ColorValue;
|
|
72
|
+
/** The color of the clock dial selector (hand). */
|
|
73
|
+
selectorColor?: ColorValue;
|
|
74
|
+
/** The border color of the AM/PM period selector. */
|
|
75
|
+
periodSelectorBorderColor?: ColorValue;
|
|
76
|
+
/** The background color of the selected AM/PM period. */
|
|
77
|
+
periodSelectorSelectedContainerColor?: ColorValue;
|
|
78
|
+
/** The background color of the unselected AM/PM period. */
|
|
79
|
+
periodSelectorUnselectedContainerColor?: ColorValue;
|
|
80
|
+
/** The text color of the selected AM/PM period. */
|
|
81
|
+
periodSelectorSelectedContentColor?: ColorValue;
|
|
82
|
+
/** The text color of the unselected AM/PM period. */
|
|
83
|
+
periodSelectorUnselectedContentColor?: ColorValue;
|
|
84
|
+
/** The background color of the selected hour/minute segment. */
|
|
85
|
+
timeSelectorSelectedContainerColor?: ColorValue;
|
|
86
|
+
/** The background color of the unselected hour/minute segment. */
|
|
87
|
+
timeSelectorUnselectedContainerColor?: ColorValue;
|
|
88
|
+
/** The text color of the selected hour/minute segment. */
|
|
89
|
+
timeSelectorSelectedContentColor?: ColorValue;
|
|
90
|
+
/** The text color of the unselected hour/minute segment. */
|
|
91
|
+
timeSelectorUnselectedContentColor?: ColorValue;
|
|
92
|
+
};
|
|
5
93
|
export type DateTimePickerProps = {
|
|
6
94
|
/**
|
|
7
95
|
* The initial date to display on the picker.
|
|
@@ -31,8 +119,19 @@ export type DateTimePickerProps = {
|
|
|
31
119
|
displayedComponents?: DisplayedComponents;
|
|
32
120
|
/**
|
|
33
121
|
* The tint color to use on the picker elements.
|
|
122
|
+
* When `elementColors` is not provided, this color is applied to a subset of
|
|
123
|
+
* picker elements (selected day, title, headline, today border for date picker;
|
|
124
|
+
* selector, selected time segment, clock dial for time picker).
|
|
34
125
|
*/
|
|
35
126
|
color?: ColorValue;
|
|
127
|
+
/**
|
|
128
|
+
* Fine-grained color overrides for individual picker elements.
|
|
129
|
+
* When provided, these take precedence over the `color` prop.
|
|
130
|
+
* Date picker color keys are used when `displayedComponents` is 'date' or 'dateAndTime'.
|
|
131
|
+
* Time picker color keys are used when `displayedComponents` is 'hourAndMinute'.
|
|
132
|
+
* Unset values fall back to Material 3 theme defaults.
|
|
133
|
+
*/
|
|
134
|
+
elementColors?: DatePickerElementColors & TimePickerElementColors;
|
|
36
135
|
/**
|
|
37
136
|
* Determines what format the clock should be displayed in on Android.
|
|
38
137
|
* @default true
|
|
@@ -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,YAAY,EAAa,MAAM,aAAa,CAAC;AAGtD,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,OAAO,CAAC;AAEhD,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG,eAAe,GAAG,aAAa,CAAC;AAE3E,MAAM,MAAM,mBAAmB,GAAG;IAChC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B;;OAEG;IACH,cAAc,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;IACtC;;;OAGG;IACH,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;;;;;OAMG;IACH,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;IAC1C
|
|
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,YAAY,EAAa,MAAM,aAAa,CAAC;AAGtD,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,OAAO,CAAC;AAEhD,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG,eAAe,GAAG,aAAa,CAAC;AAE3E;;;GAGG;AACH,MAAM,MAAM,uBAAu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G;IACH,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB;;;;;;OAMG;IACH,aAAa,CAAC,EAAE,uBAAuB,GAAG,uBAAuB,CAAC;IAClE;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,SAAS,CAAC,EAAE,YAAY,EAAE,CAAC;CAC5B,CAAC;AAoCF;;GAEG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,mBAAmB,+BAExD"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { HorizontalArrangement, PrimitiveBaseProps, VerticalArrangement } from '../layout-types';
|
|
2
|
+
export type FlowRowProps = {
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
/**
|
|
5
|
+
* Horizontal arrangement of children.
|
|
6
|
+
*/
|
|
7
|
+
horizontalArrangement?: HorizontalArrangement;
|
|
8
|
+
/**
|
|
9
|
+
* Vertical arrangement of children.
|
|
10
|
+
*/
|
|
11
|
+
verticalArrangement?: VerticalArrangement;
|
|
12
|
+
} & PrimitiveBaseProps;
|
|
13
|
+
export declare function FlowRow(props: FlowRowProps): import("react").JSX.Element;
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/jetpack-compose/FlowRow/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,qBAAqB,EACrB,kBAAkB,EAClB,mBAAmB,EAEpB,MAAM,iBAAiB,CAAC;AAEzB,MAAM,MAAM,YAAY,GAAG;IACzB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B;;OAEG;IACH,qBAAqB,CAAC,EAAE,qBAAqB,CAAC;IAC9C;;OAEG;IACH,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;CAC3C,GAAG,kBAAkB,CAAC;AAOvB,wBAAgB,OAAO,CAAC,KAAK,EAAE,YAAY,+BAE1C"}
|
|
@@ -28,9 +28,6 @@ export type LazyColumnProps = {
|
|
|
28
28
|
/**
|
|
29
29
|
* The vertical arrangement of items.
|
|
30
30
|
* Can be a preset string or an object with `spacedBy` to specify spacing in dp.
|
|
31
|
-
* @example
|
|
32
|
-
* verticalArrangement="center"
|
|
33
|
-
* verticalArrangement={{ spacedBy: 8 }}
|
|
34
31
|
*/
|
|
35
32
|
verticalArrangement?: 'top' | 'bottom' | 'center' | 'spaceBetween' | 'spaceAround' | 'spaceEvenly' | {
|
|
36
33
|
spacedBy: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/jetpack-compose/LazyColumn/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAG3C;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/jetpack-compose/LazyColumn/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAG3C;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B;;;OAGG;IACH,mBAAmB,CAAC,EAChB,KAAK,GACL,QAAQ,GACR,QAAQ,GACR,cAAc,GACd,aAAa,GACb,aAAa,GACb;QAAE,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAC;IACzB;;OAEG;IACH,mBAAmB,CAAC,EAAE,OAAO,GAAG,KAAK,GAAG,QAAQ,CAAC;IACjD;;OAEG;IACH,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC;;OAEG;IACH,SAAS,CAAC,EAAE,YAAY,EAAE,CAAC;CAC5B,CAAC;AAiBF;;GAEG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,+BAEhD"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { HorizontalAlignment, HorizontalArrangement, PrimitiveBaseProps, VerticalAlignment, VerticalArrangement } from '../layout-types';
|
|
2
|
+
export type RowProps = {
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
/**
|
|
5
|
+
* Horizontal arrangement of children.
|
|
6
|
+
*/
|
|
7
|
+
horizontalArrangement?: HorizontalArrangement;
|
|
8
|
+
/**
|
|
9
|
+
* Vertical arrangement of children.
|
|
10
|
+
*/
|
|
11
|
+
verticalArrangement?: VerticalArrangement;
|
|
12
|
+
/**
|
|
13
|
+
* Horizontal alignment of children.
|
|
14
|
+
*/
|
|
15
|
+
horizontalAlignment?: HorizontalAlignment;
|
|
16
|
+
/**
|
|
17
|
+
* Vertical alignment of children.
|
|
18
|
+
*/
|
|
19
|
+
verticalAlignment?: VerticalAlignment;
|
|
20
|
+
} & PrimitiveBaseProps;
|
|
21
|
+
export declare function Row(props: RowProps): import("react").JSX.Element;
|
|
22
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/jetpack-compose/Row/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,mBAAmB,EACnB,qBAAqB,EACrB,kBAAkB,EAClB,iBAAiB,EACjB,mBAAmB,EAEpB,MAAM,iBAAiB,CAAC;AAEzB,MAAM,MAAM,QAAQ,GAAG;IACrB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B;;OAEG;IACH,qBAAqB,CAAC,EAAE,qBAAqB,CAAC;IAC9C;;OAEG;IACH,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;IAC1C;;OAEG;IACH,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;IAC1C;;OAEG;IACH,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;CACvC,GAAG,kBAAkB,CAAC;AAIvB,wBAAgB,GAAG,CAAC,KAAK,EAAE,QAAQ,+BAElC"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { ExpoModifier } from '../../types';
|
|
2
2
|
export type SpacerProps = {
|
|
3
3
|
/**
|
|
4
|
-
* Modifiers for the component. Use weight() modifier to make the spacer flexible.
|
|
4
|
+
* Modifiers for the component. Use `weight()` modifier to make the spacer flexible.
|
|
5
5
|
*/
|
|
6
6
|
modifiers?: ExpoModifier[];
|
|
7
7
|
};
|
|
8
8
|
/**
|
|
9
9
|
* A spacer component that fills available space.
|
|
10
|
-
* Use with the weight() modifier to create flexible spacing in Row or Column layouts.
|
|
10
|
+
* Use with the `weight()` modifier to create flexible spacing in `Row` or `Column` layouts.
|
|
11
11
|
*
|
|
12
12
|
* @example
|
|
13
13
|
* ```tsx
|
|
@@ -6,8 +6,20 @@ import { ExpoModifier } from '../../types';
|
|
|
6
6
|
type SwitchElementColors = {
|
|
7
7
|
checkedThumbColor?: ColorValue;
|
|
8
8
|
checkedTrackColor?: ColorValue;
|
|
9
|
+
checkedBorderColor?: ColorValue;
|
|
10
|
+
checkedIconColor?: ColorValue;
|
|
9
11
|
uncheckedThumbColor?: ColorValue;
|
|
10
12
|
uncheckedTrackColor?: ColorValue;
|
|
13
|
+
uncheckedBorderColor?: ColorValue;
|
|
14
|
+
uncheckedIconColor?: ColorValue;
|
|
15
|
+
disabledCheckedThumbColor?: ColorValue;
|
|
16
|
+
disabledCheckedTrackColor?: ColorValue;
|
|
17
|
+
disabledCheckedBorderColor?: ColorValue;
|
|
18
|
+
disabledCheckedIconColor?: ColorValue;
|
|
19
|
+
disabledUncheckedThumbColor?: ColorValue;
|
|
20
|
+
disabledUncheckedTrackColor?: ColorValue;
|
|
21
|
+
disabledUncheckedBorderColor?: ColorValue;
|
|
22
|
+
disabledUncheckedIconColor?: ColorValue;
|
|
11
23
|
};
|
|
12
24
|
/**
|
|
13
25
|
* Only for checkbox.
|
|
@@ -36,6 +48,12 @@ export type SwitchProps = {
|
|
|
36
48
|
* @default 'switch'
|
|
37
49
|
*/
|
|
38
50
|
variant?: 'checkbox' | 'switch' | 'button';
|
|
51
|
+
/**
|
|
52
|
+
* Whether the switch is enabled.
|
|
53
|
+
* @default true
|
|
54
|
+
* @platform android
|
|
55
|
+
*/
|
|
56
|
+
enabled?: boolean;
|
|
39
57
|
/**
|
|
40
58
|
* Callback function that is called when the checked state changes.
|
|
41
59
|
*/
|
|
@@ -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,YAAY,EAAE,MAAM,aAAa,CAAC;AAK3C;;GAEG;AACH,KAAK,mBAAmB,GAAG;IACzB,iBAAiB,CAAC,EAAE,UAAU,CAAC;IAC/B,iBAAiB,CAAC,EAAE,UAAU,CAAC;IAC/B,mBAAmB,CAAC,EAAE,UAAU,CAAC;IACjC,mBAAmB,CAAC,EAAE,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/jetpack-compose/Switch/index.tsx"],"names":[],"m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AQ,GAAG,QAAQ,CAAC;IAC3C;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IAEzC;;OAEG;IACH,KAAK,CAAC,EAAE,UAAU,CAAC;IAEnB;;OAEG;IACH,SAAS,CAAC,EAAE,YAAY,EAAE,CAAC;IAE3B;;;OAGG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,GAAG,CAAC,wBAAwB,GAAG,0BAA0B,GAAG,wBAAwB,CAAC,CAAC;AAEvF,MAAM,MAAM,wBAAwB,GAAG;IACrC,OAAO,CAAC,EAAE,QAAQ,CAAC;IACnB;;;OAGG;IACH,aAAa,CAAC,EAAE,mBAAmB,CAAC;CACrC,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACvC,OAAO,EAAE,UAAU,CAAC;IACpB;;;OAGG;IACH,aAAa,CAAC,EAAE,qBAAqB,CAAC;CACvC,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACrC,OAAO,EAAE,QAAQ,CAAC;IAClB,aAAa,CAAC,EAAE,SAAS,CAAC;CAC3B,CAAC;AAWF,KAAK,iBAAiB,GAAG;IACvB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAYF;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,iBAAiB,+BAE1D;AAmCD,iBAAS,eAAe,CAAC,KAAK,EAAE,WAAW,+BAE1C;kBAFQ,eAAe;;;;AAOxB,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,CAAC"}
|
|
@@ -32,6 +32,9 @@ export * from './PullToRefreshBox';
|
|
|
32
32
|
export * from './RadioButton';
|
|
33
33
|
export * from './Surface';
|
|
34
34
|
export * from './Text';
|
|
35
|
-
export * from './
|
|
35
|
+
export * from './Box';
|
|
36
|
+
export * from './Row';
|
|
37
|
+
export * from './Column';
|
|
38
|
+
export * from './FlowRow';
|
|
36
39
|
export { ViewEvent } from '../types';
|
|
37
40
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -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,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,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,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,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,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AAEvB,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,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,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,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,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,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,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AAEvB,cAAc,OAAO,CAAC;AACtB,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ExpoModifier } from '../types';
|
|
2
|
+
export type PrimitiveBaseProps = {
|
|
3
|
+
/**
|
|
4
|
+
* Modifiers for the component.
|
|
5
|
+
*/
|
|
6
|
+
modifiers?: ExpoModifier[];
|
|
7
|
+
};
|
|
8
|
+
export type HorizontalArrangement = 'start' | 'end' | 'center' | 'spaceBetween' | 'spaceAround' | 'spaceEvenly' | {
|
|
9
|
+
spacedBy: number;
|
|
10
|
+
};
|
|
11
|
+
export type VerticalArrangement = 'top' | 'bottom' | 'center' | 'spaceBetween' | 'spaceAround' | 'spaceEvenly' | {
|
|
12
|
+
spacedBy: number;
|
|
13
|
+
};
|
|
14
|
+
export type HorizontalAlignment = 'start' | 'end' | 'center';
|
|
15
|
+
export type VerticalAlignment = 'top' | 'bottom' | 'center';
|
|
16
|
+
export type ContentAlignment = 'topStart' | 'topCenter' | 'topEnd' | 'centerStart' | 'center' | 'centerEnd' | 'bottomStart' | 'bottomCenter' | 'bottomEnd';
|
|
17
|
+
export type FloatingToolbarExitAlwaysScrollBehavior = 'top' | 'bottom' | 'start' | 'end';
|
|
18
|
+
export declare function transformProps<T extends PrimitiveBaseProps>(props: T): {
|
|
19
|
+
onGlobalEvent?: ((event: {
|
|
20
|
+
nativeEvent: {
|
|
21
|
+
payload: [eventName: string, params: Record<string, any>];
|
|
22
|
+
};
|
|
23
|
+
}) => void) | undefined;
|
|
24
|
+
modifiers: import("../types").ModifierConfig[] | undefined;
|
|
25
|
+
} & Omit<T, "modifiers">;
|
|
26
|
+
//# sourceMappingURL=layout-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layout-types.d.ts","sourceRoot":"","sources":["../../src/jetpack-compose/layout-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAGxC,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,SAAS,CAAC,EAAE,YAAY,EAAE,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAC7B,OAAO,GACP,KAAK,GACL,QAAQ,GACR,cAAc,GACd,aAAa,GACb,aAAa,GACb;IAAE,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAC;AACzB,MAAM,MAAM,mBAAmB,GAC3B,KAAK,GACL,QAAQ,GACR,QAAQ,GACR,cAAc,GACd,aAAa,GACb,aAAa,GACb;IAAE,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAC;AACzB,MAAM,MAAM,mBAAmB,GAAG,OAAO,GAAG,KAAK,GAAG,QAAQ,CAAC;AAC7D,MAAM,MAAM,iBAAiB,GAAG,KAAK,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAC5D,MAAM,MAAM,gBAAgB,GACxB,UAAU,GACV,WAAW,GACX,QAAQ,GACR,aAAa,GACb,QAAQ,GACR,WAAW,GACX,aAAa,GACb,cAAc,GACd,WAAW,CAAC;AAChB,MAAM,MAAM,uCAAuC,GAAG,KAAK,GAAG,QAAQ,GAAG,OAAO,GAAG,KAAK,CAAC;AAEzF,wBAAgB,cAAc,CAAC,CAAC,SAAS,kBAAkB,EAAE,KAAK,EAAE,CAAC;;;;;;;yBAOpE"}
|
|
@@ -1,37 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
modifiers?: ExpoModifier[];
|
|
7
|
-
};
|
|
8
|
-
export type HorizontalArrangement = 'start' | 'end' | 'center' | 'spaceBetween' | 'spaceAround' | 'spaceEvenly' | {
|
|
9
|
-
spacedBy: number;
|
|
10
|
-
};
|
|
11
|
-
export type VerticalArrangement = 'top' | 'bottom' | 'center' | 'spaceBetween' | 'spaceAround' | 'spaceEvenly' | {
|
|
12
|
-
spacedBy: number;
|
|
13
|
-
};
|
|
14
|
-
export type HorizontalAlignment = 'start' | 'end' | 'center';
|
|
15
|
-
export type VerticalAlignment = 'top' | 'bottom' | 'center';
|
|
16
|
-
export type ContentAlignment = 'topStart' | 'topCenter' | 'topEnd' | 'centerStart' | 'center' | 'centerEnd' | 'bottomStart' | 'bottomCenter' | 'bottomEnd';
|
|
17
|
-
export type FloatingToolbarExitAlwaysScrollBehavior = 'top' | 'bottom' | 'start' | 'end';
|
|
18
|
-
type LayoutBaseProps = {
|
|
19
|
-
children?: React.ReactNode;
|
|
20
|
-
horizontalArrangement?: HorizontalArrangement;
|
|
21
|
-
verticalArrangement?: VerticalArrangement;
|
|
22
|
-
horizontalAlignment?: HorizontalAlignment;
|
|
23
|
-
verticalAlignment?: VerticalAlignment;
|
|
24
|
-
contentAlignment?: ContentAlignment;
|
|
25
|
-
floatingToolbarExitAlwaysScrollBehavior?: FloatingToolbarExitAlwaysScrollBehavior;
|
|
26
|
-
modifiers?: ExpoModifier[];
|
|
27
|
-
} & PrimitiveBaseProps;
|
|
28
|
-
export type BoxProps = Pick<LayoutBaseProps, 'children' | 'modifiers' | 'contentAlignment' | 'floatingToolbarExitAlwaysScrollBehavior'>;
|
|
29
|
-
export declare function Box(props: BoxProps): import("react").JSX.Element;
|
|
30
|
-
export type RowProps = LayoutBaseProps;
|
|
31
|
-
export declare function Row(props: RowProps): import("react").JSX.Element;
|
|
32
|
-
export type FlowRowProps = Pick<LayoutBaseProps, 'children' | 'modifiers' | 'horizontalArrangement' | 'verticalArrangement'>;
|
|
33
|
-
export declare function FlowRow(props: FlowRowProps): import("react").JSX.Element;
|
|
34
|
-
export type ColumnProps = LayoutBaseProps;
|
|
35
|
-
export declare function Column(props: ColumnProps): import("react").JSX.Element;
|
|
36
|
-
export {};
|
|
1
|
+
export * from './layout-types';
|
|
2
|
+
export * from './Box';
|
|
3
|
+
export * from './Row';
|
|
4
|
+
export * from './Column';
|
|
5
|
+
export * from './FlowRow';
|
|
37
6
|
//# sourceMappingURL=layout.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../src/jetpack-compose/layout.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../src/jetpack-compose/layout.tsx"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,OAAO,CAAC;AACtB,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export declare const spring: (params?: {
|
|
2
|
+
dampingRatio?: number;
|
|
3
|
+
stiffness?: number;
|
|
4
|
+
visibilityThreshold?: number;
|
|
5
|
+
}) => {
|
|
6
|
+
dampingRatio?: number;
|
|
7
|
+
stiffness?: number;
|
|
8
|
+
visibilityThreshold?: number;
|
|
9
|
+
$type: "spring";
|
|
10
|
+
};
|
|
11
|
+
export declare const tween: (params?: {
|
|
12
|
+
durationMillis?: number;
|
|
13
|
+
delayMillis?: number;
|
|
14
|
+
easing?: "linear" | "fastOutSlowIn" | "fastOutLinearIn" | "linearOutSlowIn" | "ease";
|
|
15
|
+
}) => {
|
|
16
|
+
durationMillis?: number;
|
|
17
|
+
delayMillis?: number;
|
|
18
|
+
easing?: "linear" | "fastOutSlowIn" | "fastOutLinearIn" | "linearOutSlowIn" | "ease";
|
|
19
|
+
$type: "tween";
|
|
20
|
+
};
|
|
21
|
+
export declare const snap: (params?: {
|
|
22
|
+
delayMillis?: number;
|
|
23
|
+
}) => {
|
|
24
|
+
delayMillis?: number;
|
|
25
|
+
$type: "snap";
|
|
26
|
+
};
|
|
27
|
+
export declare const keyframes: (params: {
|
|
28
|
+
durationMillis: number;
|
|
29
|
+
delayMillis?: number;
|
|
30
|
+
keyframes: Record<number, number>;
|
|
31
|
+
}) => {
|
|
32
|
+
durationMillis: number;
|
|
33
|
+
delayMillis?: number;
|
|
34
|
+
keyframes: Record<number, number>;
|
|
35
|
+
$type: "keyframes";
|
|
36
|
+
};
|
|
37
|
+
export type AnimationSpec = ReturnType<typeof spring | typeof tween | typeof snap | typeof keyframes>;
|
|
38
|
+
export declare const animated: (targetValue: number, spec?: AnimationSpec) => {
|
|
39
|
+
$animated: true;
|
|
40
|
+
targetValue: number;
|
|
41
|
+
animationSpec: AnimationSpec;
|
|
42
|
+
};
|
|
43
|
+
export type AnimatedValue = ReturnType<typeof animated>;
|
|
44
|
+
//# sourceMappingURL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AAG,UAAU,CAAC,OAAO,QAAQ,CAAC,CAAC"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { type ColorValue } from 'react-native';
|
|
2
|
+
import { type AnimatedValue } from './animation';
|
|
2
3
|
export { type ExpoModifier } from '../../types';
|
|
4
|
+
export { animated, spring, tween, snap, keyframes, type AnimationSpec, type AnimatedValue, } from './animation';
|
|
3
5
|
export type Alignment = 'topStart' | 'topCenter' | 'topEnd' | 'centerStart' | 'center' | 'centerEnd' | 'bottomStart' | 'bottomCenter' | 'bottomEnd' | 'top' | 'centerVertically' | 'bottom' | 'start' | 'centerHorizontally' | 'end';
|
|
4
6
|
/**
|
|
5
7
|
* Applies equal padding on all sides.
|
|
@@ -92,6 +94,47 @@ export declare const blur: (radius: number) => import("./createModifier").Modifi
|
|
|
92
94
|
* @param degrees - Rotation angle in degrees.
|
|
93
95
|
*/
|
|
94
96
|
export declare const rotate: (degrees: number) => import("./createModifier").ModifierConfig;
|
|
97
|
+
/**
|
|
98
|
+
* Applies a graphics layer transformation with animation support.
|
|
99
|
+
* @param params - Transform and visual effect parameters.
|
|
100
|
+
* @see [Compose graphicsLayer documentation](https://developer.android.com/develop/ui/compose/graphics/draw/modifiers).
|
|
101
|
+
*/
|
|
102
|
+
export declare const graphicsLayer: (params: {
|
|
103
|
+
/** Rotation around the X axis in degrees. */
|
|
104
|
+
rotationX?: number | AnimatedValue;
|
|
105
|
+
/** Rotation around the Y axis in degrees. */
|
|
106
|
+
rotationY?: number | AnimatedValue;
|
|
107
|
+
/** Rotation around the Z axis in degrees. */
|
|
108
|
+
rotationZ?: number | AnimatedValue;
|
|
109
|
+
/** Horizontal scale factor (1.0 = no change). */
|
|
110
|
+
scaleX?: number | AnimatedValue;
|
|
111
|
+
/** Vertical scale factor (1.0 = no change). */
|
|
112
|
+
scaleY?: number | AnimatedValue;
|
|
113
|
+
/** Opacity (0.0 = transparent, 1.0 = opaque). */
|
|
114
|
+
alpha?: number | AnimatedValue;
|
|
115
|
+
/** Horizontal translation in dp. */
|
|
116
|
+
translationX?: number | AnimatedValue;
|
|
117
|
+
/** Vertical translation in dp. */
|
|
118
|
+
translationY?: number | AnimatedValue;
|
|
119
|
+
/** Distance from the camera in dp. Affects 3D rotation perspective. */
|
|
120
|
+
cameraDistance?: number;
|
|
121
|
+
/** Shadow elevation in dp. */
|
|
122
|
+
shadowElevation?: number | AnimatedValue;
|
|
123
|
+
/** Horizontal pivot point for transforms (0.0 = left, 0.5 = center, 1.0 = right). */
|
|
124
|
+
transformOriginX?: number;
|
|
125
|
+
/** Vertical pivot point for transforms (0.0 = top, 0.5 = center, 1.0 = bottom). */
|
|
126
|
+
transformOriginY?: number;
|
|
127
|
+
/** Whether to clip content to the shape. */
|
|
128
|
+
clip?: boolean;
|
|
129
|
+
/** Shape for clipping and shadow. Uses the same shapes as the `clip` modifier. */
|
|
130
|
+
shape?: BuiltinShape;
|
|
131
|
+
/** Color of the ambient shadow. */
|
|
132
|
+
ambientShadowColor?: ColorValue;
|
|
133
|
+
/** Color of the spot shadow. */
|
|
134
|
+
spotShadowColor?: ColorValue;
|
|
135
|
+
/** Compositing strategy: 'auto', 'offscreen', or 'modulate'. */
|
|
136
|
+
compositingStrategy?: "auto" | "offscreen" | "modulate";
|
|
137
|
+
}) => import("./createModifier").ModifierConfig;
|
|
95
138
|
/**
|
|
96
139
|
* Sets the z-index for layering.
|
|
97
140
|
* @param index - Z-index value.
|
|
@@ -99,8 +142,8 @@ export declare const rotate: (degrees: number) => import("./createModifier").Mod
|
|
|
99
142
|
export declare const zIndex: (index: number) => import("./createModifier").ModifierConfig;
|
|
100
143
|
/**
|
|
101
144
|
* Animates size changes with spring animation.
|
|
102
|
-
* @param dampingRatio - Spring damping ratio. Default is DampingRatioNoBouncy
|
|
103
|
-
* @param stiffness - Spring stiffness. Default is StiffnessMedium
|
|
145
|
+
* @param dampingRatio - Spring damping ratio. Default is `DampingRatioNoBouncy`.
|
|
146
|
+
* @param stiffness - Spring stiffness. Default is `StiffnessMedium`.
|
|
104
147
|
*/
|
|
105
148
|
export declare const animateContentSize: (dampingRatio?: number, stiffness?: number) => import("./createModifier").ModifierConfig;
|
|
106
149
|
/**
|
|
@@ -121,8 +164,12 @@ export declare const matchParentSize: () => import("./createModifier").ModifierC
|
|
|
121
164
|
/**
|
|
122
165
|
* Makes the view clickable.
|
|
123
166
|
* @param handler - Function to call when clicked.
|
|
167
|
+
* @param options - Optional configuration.
|
|
168
|
+
* @param options.indication - Whether to show a ripple indication. Defaults to `true`.
|
|
124
169
|
*/
|
|
125
|
-
export declare const clickable: (handler: () => void
|
|
170
|
+
export declare const clickable: (handler: () => void, options?: {
|
|
171
|
+
indication?: boolean;
|
|
172
|
+
}) => import("./createModifier").ModifierConfig;
|
|
126
173
|
/**
|
|
127
174
|
* Makes the view selectable, like a radio button row.
|
|
128
175
|
* @param selected - Whether the item is currently selected.
|
|
@@ -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;
|
|
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,KAA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,MAAM,YAAY,GACpB;IAAE,IAAI,EAAE,WAAW,CAAA;CAAE,GACrB;IAAE,IAAI,EAAE,QAAQ,CAAA;CAAE,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,4 @@
|
|
|
1
|
+
import { type CommonViewModifierProps } from '../types';
|
|
2
|
+
export type AccessoryWidgetBackgroundProps = CommonViewModifierProps;
|
|
3
|
+
export declare function AccessoryWidgetBackground(props: AccessoryWidgetBackgroundProps): import("react").JSX.Element;
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/swift-ui/AccessoryWidgetBackground/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAExD,MAAM,MAAM,8BAA8B,GAAG,uBAAuB,CAAC;AAKrE,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,8BAA8B,+BAE9E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/swift-ui/ConfirmationDialog/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/swift-ui/ConfirmationDialog/index.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAExD;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG;IACpC;;;OAGG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;OAEG;IACH,mBAAmB,CAAC,EAAE,CAAC,WAAW,EAAE,OAAO,KAAK,IAAI,CAAC;IACrD;;;OAGG;IACH,eAAe,CAAC,EAAE,WAAW,GAAG,SAAS,GAAG,QAAQ,CAAC;CACtD,GAAG,uBAAuB,CAAC;AA8B5B;;;;GAIG;AACH,iBAAS,kBAAkB,CAAC,KAAK,EAAE,uBAAuB,+BAezD;kBAfQ,kBAAkB;yBAvBH;QAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;KAAE;yBAO7B;QAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;KAAE;yBAO7B;QAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;KAAE;;AA8BrD,OAAO,EAAE,kBAAkB,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/swift-ui/ContextMenu/index.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/swift-ui/ContextMenu/index.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAGhD,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAMhD;;GAEG;AACH,wBAAgB,KAAK,CAAC,KAAK,EAAE;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,+BAEzD;AAED;;GAEG;AACH,wBAAgB,OAAO,CAAC,KAAK,EAAE;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,+BAE3D;AAED;;GAEG;AACH,wBAAgB,OAAO,CAAC,KAAK,EAAE;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,+BAE3D;AAED;;GAEG;AACH,iBAAS,WAAW,CAAC,KAAK,EAAE,gBAAgB,+BAE3C;kBAFQ,WAAW;;;;;AAQpB,OAAO,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import { type SFSymbol } from 'sf-symbols-typescript';
|
|
3
|
+
import { type CommonViewModifierProps } from '../types';
|
|
4
|
+
export interface ControlGroupProps extends CommonViewModifierProps {
|
|
5
|
+
/**
|
|
6
|
+
* The label for the control group. Can be a string for simple text labels,
|
|
7
|
+
* or a `Label` component for custom label content. When omitted, the control group
|
|
8
|
+
* has no label.
|
|
9
|
+
* @platform iOS 16.0+
|
|
10
|
+
* @platform tvOS 17.0+
|
|
11
|
+
*/
|
|
12
|
+
label?: string | ReactNode;
|
|
13
|
+
/**
|
|
14
|
+
* An SF Symbol name to display alongside the label.
|
|
15
|
+
* Only used when `label` is a string.
|
|
16
|
+
* @platform iOS 16.0+
|
|
17
|
+
* @platform tvOS 17.0+
|
|
18
|
+
*/
|
|
19
|
+
systemImage?: SFSymbol;
|
|
20
|
+
/**
|
|
21
|
+
* The control group's content.
|
|
22
|
+
* Can contain `Button`, `Toggle`, `Picker`, or other interactive controls.
|
|
23
|
+
* @platform iOS
|
|
24
|
+
* @platform tvOS 17.0+
|
|
25
|
+
*/
|
|
26
|
+
children: ReactNode;
|
|
27
|
+
}
|
|
28
|
+
export declare function ControlGroup(props: ControlGroupProps): import("react").JSX.Element;
|
|
29
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/swift-ui/ControlGroup/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,SAAS,EAAsB,MAAM,OAAO,CAAC;AAC3D,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAItD,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAExD,MAAM,WAAW,iBAAkB,SAAQ,uBAAuB;IAChE;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B;;;;;OAKG;IACH,WAAW,CAAC,EAAE,QAAQ,CAAC;IACvB;;;;;OAKG;IACH,QAAQ,EAAE,SAAS,CAAC;CACrB;AAWD,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,+BAgBpD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/swift-ui/Gauge/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/swift-ui/Gauge/index.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAExD,MAAM,MAAM,UAAU,GAAG;IACvB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B;;OAEG;IACH,iBAAiB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACpC;;OAEG;IACH,iBAAiB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACpC;;OAEG;IACH,iBAAiB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACrC,GAAG,uBAAuB,CAAC;AAc5B;;GAEG;AACH,wBAAgB,KAAK,CAAC,KAAK,EAAE,UAAU,+BAqBtC"}
|
|
@@ -6,7 +6,13 @@ export interface ImageProps extends CommonViewModifierProps {
|
|
|
6
6
|
* The name of the system image (SF Symbol).
|
|
7
7
|
* For example: 'photo', 'heart.fill', 'star.circle'
|
|
8
8
|
*/
|
|
9
|
-
systemName
|
|
9
|
+
systemName?: SFSymbol;
|
|
10
|
+
/**
|
|
11
|
+
* The URI of the local image file to display.
|
|
12
|
+
* For example: 'file:///path/to/image.jpg'
|
|
13
|
+
* Performs a synchronous read operation that blocks the main thread.
|
|
14
|
+
*/
|
|
15
|
+
uiImage?: string;
|
|
10
16
|
/**
|
|
11
17
|
* The size of the system image.
|
|
12
18
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/swift-ui/Image/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAItD,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAExD,MAAM,WAAW,UAAW,SAAQ,uBAAuB;IACzD;;;OAGG;IACH,UAAU,EAAE,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/swift-ui/Image/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAItD,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAExD,MAAM,WAAW,UAAW,SAAQ,uBAAuB;IACzD;;;OAGG;IACH,UAAU,CAAC,EAAE,QAAQ,CAAC;IACtB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB;;;;;;OAMG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAuBD,wBAAgB,KAAK,CAAC,KAAK,EAAE,UAAU,+BAEtC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/swift-ui/Label/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/swift-ui/Label/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAItD,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAExD,MAAM,MAAM,UAAU,GAAG;IACvB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,WAAW,CAAC,EAAE,QAAQ,CAAC;IAEvB;;;OAGG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAEvB;;;OAGG;IACH,KAAK,CAAC,EAAE,UAAU,CAAC;CACpB,GAAG,uBAAuB,CAAC;AAK5B;;;;;GAKG;AACH,wBAAgB,KAAK,CAAC,KAAK,EAAE,UAAU,+BAUtC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/swift-ui/LabeledContent/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/swift-ui/LabeledContent/index.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAExD,MAAM,MAAM,mBAAmB,GAAG;IAChC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IACjC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,GAAG,uBAAuB,CAAC;AAO5B;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,mBAAmB,+BAexD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/swift-ui/Menu/index.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/swift-ui/Menu/index.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,SAAS,CAAC;AAGzC,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,SAAS,CAAC;AAUzC;;GAEG;AACH,wBAAgB,IAAI,CAAC,KAAK,EAAE,SAAS,+BAgBpC"}
|