@expo/ui 55.0.0-preview.7 → 55.0.0
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 +7 -0
- package/android/build.gradle +2 -2
- package/build/swift-ui/ConfirmationDialog/index.d.ts +47 -0
- package/build/swift-ui/ConfirmationDialog/index.d.ts.map +1 -0
- package/build/swift-ui/index.d.ts +1 -0
- package/build/swift-ui/index.d.ts.map +1 -1
- package/build/swift-ui/modifiers/index.d.ts +7 -1
- package/build/swift-ui/modifiers/index.d.ts.map +1 -1
- package/expo-module.config.json +1 -1
- package/ios/ConfirmationDialog/ConfirmationDialog.swift +65 -0
- package/ios/ConfirmationDialog/ConfirmationDialogComponents.swift +26 -0
- package/ios/ConfirmationDialog/ConfirmationDialogProps.swift +15 -0
- package/ios/Convertibles/VisibilityOptions.swift +19 -0
- package/ios/ExpoUIModule.swift +4 -0
- package/ios/Modifiers/PresentationModifiers.swift +1 -18
- package/ios/Modifiers/ViewModifierRegistry.swift +13 -17
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/{55.0.0-preview.7/expo.modules.ui-55.0.0-preview.7.module → 55.0.0/expo.modules.ui-55.0.0.module} +7 -7
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.0/expo.modules.ui-55.0.0.module.md5 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.0/expo.modules.ui-55.0.0.module.sha1 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.0/expo.modules.ui-55.0.0.module.sha256 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.0/expo.modules.ui-55.0.0.module.sha512 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/{55.0.0-preview.7/expo.modules.ui-55.0.0-preview.7.pom → 55.0.0/expo.modules.ui-55.0.0.pom} +1 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.0/expo.modules.ui-55.0.0.pom.md5 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.0/expo.modules.ui-55.0.0.pom.sha1 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.0/expo.modules.ui-55.0.0.pom.sha256 +1 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.0/expo.modules.ui-55.0.0.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/swift-ui/ConfirmationDialog/index.tsx +98 -0
- package/src/swift-ui/index.tsx +1 -0
- package/src/swift-ui/modifiers/index.ts +8 -0
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.0-preview.7/expo.modules.ui-55.0.0-preview.7.module.md5 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.0-preview.7/expo.modules.ui-55.0.0-preview.7.module.sha1 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.0-preview.7/expo.modules.ui-55.0.0-preview.7.module.sha256 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.0-preview.7/expo.modules.ui-55.0.0-preview.7.module.sha512 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.0-preview.7/expo.modules.ui-55.0.0-preview.7.pom.md5 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.0-preview.7/expo.modules.ui-55.0.0-preview.7.pom.sha1 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.0-preview.7/expo.modules.ui-55.0.0-preview.7.pom.sha256 +0 -1
- package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.0-preview.7/expo.modules.ui-55.0.0-preview.7.pom.sha512 +0 -1
- /package/local-maven-repo/expo/modules/ui/expo.modules.ui/{55.0.0-preview.7/expo.modules.ui-55.0.0-preview.7-sources.jar → 55.0.0/expo.modules.ui-55.0.0-sources.jar} +0 -0
- /package/local-maven-repo/expo/modules/ui/expo.modules.ui/{55.0.0-preview.7/expo.modules.ui-55.0.0-preview.7-sources.jar.md5 → 55.0.0/expo.modules.ui-55.0.0-sources.jar.md5} +0 -0
- /package/local-maven-repo/expo/modules/ui/expo.modules.ui/{55.0.0-preview.7/expo.modules.ui-55.0.0-preview.7-sources.jar.sha1 → 55.0.0/expo.modules.ui-55.0.0-sources.jar.sha1} +0 -0
- /package/local-maven-repo/expo/modules/ui/expo.modules.ui/{55.0.0-preview.7/expo.modules.ui-55.0.0-preview.7-sources.jar.sha256 → 55.0.0/expo.modules.ui-55.0.0-sources.jar.sha256} +0 -0
- /package/local-maven-repo/expo/modules/ui/expo.modules.ui/{55.0.0-preview.7/expo.modules.ui-55.0.0-preview.7-sources.jar.sha512 → 55.0.0/expo.modules.ui-55.0.0-sources.jar.sha512} +0 -0
- /package/local-maven-repo/expo/modules/ui/expo.modules.ui/{55.0.0-preview.7/expo.modules.ui-55.0.0-preview.7.aar → 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-preview.7/expo.modules.ui-55.0.0-preview.7.aar.md5 → 55.0.0/expo.modules.ui-55.0.0.aar.md5} +0 -0
- /package/local-maven-repo/expo/modules/ui/expo.modules.ui/{55.0.0-preview.7/expo.modules.ui-55.0.0-preview.7.aar.sha1 → 55.0.0/expo.modules.ui-55.0.0.aar.sha1} +0 -0
- /package/local-maven-repo/expo/modules/ui/expo.modules.ui/{55.0.0-preview.7/expo.modules.ui-55.0.0-preview.7.aar.sha256 → 55.0.0/expo.modules.ui-55.0.0.aar.sha256} +0 -0
- /package/local-maven-repo/expo/modules/ui/expo.modules.ui/{55.0.0-preview.7/expo.modules.ui-55.0.0-preview.7.aar.sha512 → 55.0.0/expo.modules.ui-55.0.0.aar.sha512} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,13 @@
|
|
|
10
10
|
|
|
11
11
|
### 💡 Others
|
|
12
12
|
|
|
13
|
+
## 55.0.0 — 2026-02-25
|
|
14
|
+
|
|
15
|
+
### 🎉 New features
|
|
16
|
+
|
|
17
|
+
- [iOS] Added `ConfirmationDialog` component. ([#43366](https://github.com/expo/expo/pull/43366) by [@nishan](https://github.com/intergalacticspacehighway))
|
|
18
|
+
- [iOS] Added `monospacedDigit` modifier. ([#43328](https://github.com/expo/expo/pull/43328) by [@axeelz](https://github.com/axeelz))
|
|
19
|
+
|
|
13
20
|
## 55.0.0-preview.7 — 2026-02-20
|
|
14
21
|
|
|
15
22
|
### 🎉 New features
|
package/android/build.gradle
CHANGED
|
@@ -12,13 +12,13 @@ apply plugin: 'expo-module-gradle-plugin'
|
|
|
12
12
|
apply plugin: 'org.jetbrains.kotlin.plugin.compose'
|
|
13
13
|
|
|
14
14
|
group = 'expo.modules.ui'
|
|
15
|
-
version = '55.0.0
|
|
15
|
+
version = '55.0.0'
|
|
16
16
|
|
|
17
17
|
android {
|
|
18
18
|
namespace "expo.modules.ui"
|
|
19
19
|
defaultConfig {
|
|
20
20
|
versionCode 1
|
|
21
|
-
versionName "55.0.0
|
|
21
|
+
versionName "55.0.0"
|
|
22
22
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
23
23
|
}
|
|
24
24
|
buildFeatures {
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { type CommonViewModifierProps } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Props of the `ConfirmationDialog` component.
|
|
4
|
+
*/
|
|
5
|
+
export type ConfirmationDialogProps = {
|
|
6
|
+
/**
|
|
7
|
+
* The contents of the confirmation dialog.
|
|
8
|
+
* Should include `ConfirmationDialog.Trigger`, `ConfirmationDialog.Actions`, and optionally `ConfirmationDialog.Message`.
|
|
9
|
+
*/
|
|
10
|
+
children: React.ReactNode;
|
|
11
|
+
/**
|
|
12
|
+
* The title of the confirmation dialog.
|
|
13
|
+
*/
|
|
14
|
+
title: string;
|
|
15
|
+
/**
|
|
16
|
+
* Whether the confirmation dialog is presented.
|
|
17
|
+
*/
|
|
18
|
+
isPresented?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* A callback that is called when the `isPresented` state changes.
|
|
21
|
+
*/
|
|
22
|
+
onIsPresentedChange?: (isPresented: boolean) => void;
|
|
23
|
+
/**
|
|
24
|
+
* The visibility of the dialog title.
|
|
25
|
+
* @default 'automatic'
|
|
26
|
+
*/
|
|
27
|
+
titleVisibility?: 'automatic' | 'visible' | 'hidden';
|
|
28
|
+
} & CommonViewModifierProps;
|
|
29
|
+
/**
|
|
30
|
+
* `ConfirmationDialog` presents a confirmation dialog with a title, optional message, and action buttons.
|
|
31
|
+
*
|
|
32
|
+
* @see https://developer.apple.com/documentation/swiftui/view/confirmationdialog(_:ispresented:titlevisibility:actions:message:)
|
|
33
|
+
*/
|
|
34
|
+
declare function ConfirmationDialog(props: ConfirmationDialogProps): import("react").JSX.Element;
|
|
35
|
+
declare namespace ConfirmationDialog {
|
|
36
|
+
var Trigger: (props: {
|
|
37
|
+
children: React.ReactNode;
|
|
38
|
+
}) => import("react").JSX.Element;
|
|
39
|
+
var Actions: (props: {
|
|
40
|
+
children: React.ReactNode;
|
|
41
|
+
}) => import("react").JSX.Element;
|
|
42
|
+
var Message: (props: {
|
|
43
|
+
children: React.ReactNode;
|
|
44
|
+
}) => import("react").JSX.Element;
|
|
45
|
+
}
|
|
46
|
+
export { ConfirmationDialog };
|
|
47
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/swift-ui/Con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ACzB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,wBAAwB,CAAC;AACvC,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -316,6 +316,12 @@ export declare const bold: () => ModifierConfig;
|
|
|
316
316
|
* @see Official [SwiftUI documentation](https://developer.apple.com/documentation/swiftui/text/italic()).
|
|
317
317
|
*/
|
|
318
318
|
export declare const italic: () => ModifierConfig;
|
|
319
|
+
/**
|
|
320
|
+
* Modifies the fonts of all child views to use fixed-width digits, if possible, while leaving other characters proportionally spaced.
|
|
321
|
+
* When applied to `Text`, modifies the text view's font to use fixed-width digits, while leaving other characters proportionally spaced.
|
|
322
|
+
* @see Official [SwiftUI documentation](https://developer.apple.com/documentation/swiftui/view/monospaceddigit()).
|
|
323
|
+
*/
|
|
324
|
+
export declare const monospacedDigit: () => ModifierConfig;
|
|
319
325
|
/**
|
|
320
326
|
* Sets the tint color of a view.
|
|
321
327
|
* @param color - The tint color (hex string). For example, `#FF0000`.
|
|
@@ -804,7 +810,7 @@ export declare const listStyle: (style: ListStyle) => ModifierConfig;
|
|
|
804
810
|
* This provides type safety for the modifiers array.
|
|
805
811
|
* @hidden
|
|
806
812
|
*/
|
|
807
|
-
export type BuiltInModifier = ReturnType<typeof listSectionSpacing> | ReturnType<typeof background> | ReturnType<typeof cornerRadius> | ReturnType<typeof shadow> | ReturnType<typeof frame> | ReturnType<typeof padding> | ReturnType<typeof fixedSize> | ReturnType<typeof ignoreSafeArea> | ReturnType<typeof onTapGesture> | ReturnType<typeof onLongPressGesture> | ReturnType<typeof onAppear> | ReturnType<typeof onDisappear> | ReturnType<typeof opacity> | ReturnType<typeof clipShape> | ReturnType<typeof border> | ReturnType<typeof scaleEffect> | ReturnType<typeof rotationEffect> | ReturnType<typeof offset> | ReturnType<typeof foregroundColor> | ReturnType<typeof foregroundStyle> | ReturnType<typeof bold> | ReturnType<typeof italic> | ReturnType<typeof tint> | ReturnType<typeof hidden> | ReturnType<typeof disabled> | ReturnType<typeof zIndex> | ReturnType<typeof blur> | ReturnType<typeof brightness> | ReturnType<typeof contrast> | ReturnType<typeof saturation> | ReturnType<typeof hueRotation> | ReturnType<typeof colorInvert> | ReturnType<typeof grayscale> | ReturnType<typeof buttonStyle> | ReturnType<typeof toggleStyle> | ReturnType<typeof controlSize> | ReturnType<typeof labelStyle> | ReturnType<typeof labelsHidden> | ReturnType<typeof textFieldStyle> | ReturnType<typeof menuActionDismissBehavior> | ReturnType<typeof accessibilityLabel> | ReturnType<typeof accessibilityHint> | ReturnType<typeof accessibilityValue> | ReturnType<typeof layoutPriority> | ReturnType<typeof mask> | ReturnType<typeof overlay> | ReturnType<typeof backgroundOverlay> | ReturnType<typeof aspectRatio> | ReturnType<typeof clipped> | ReturnType<typeof glassEffect> | ReturnType<typeof glassEffectId> | ReturnType<typeof animation> | ReturnType<typeof containerShape> | ReturnType<typeof contentShape> | ReturnType<typeof containerRelativeFrame> | ReturnType<typeof scrollContentBackground> | ReturnType<typeof scrollDisabled> | ReturnType<typeof moveDisabled> | ReturnType<typeof deleteDisabled> | ReturnType<typeof environment> | ReturnType<typeof listRowBackground> | ReturnType<typeof listRowSeparator> | ReturnType<typeof truncationMode> | ReturnType<typeof allowsTightening> | ReturnType<typeof kerning> | ReturnType<typeof textCase> | ReturnType<typeof underline> | ReturnType<typeof strikethrough> | ReturnType<typeof multilineTextAlignment> | ReturnType<typeof textSelection> | ReturnType<typeof lineSpacing> | ReturnType<typeof lineLimit> | ReturnType<typeof headerProminence> | ReturnType<typeof listRowInsets> | ReturnType<typeof badgeProminence> | ReturnType<typeof badge> | ReturnType<typeof listSectionMargins> | ReturnType<typeof font> | ReturnType<typeof gridCellUnsizedAxes> | ReturnType<typeof gridCellColumns> | ReturnType<typeof gridColumnAlignment> | ReturnType<typeof gridCellAnchor> | ReturnType<typeof submitLabel> | ReturnType<typeof datePickerStyle> | ReturnType<typeof progressViewStyle> | ReturnType<typeof gaugeStyle> | ReturnType<typeof listStyle> | ReturnType<typeof contentTransition>;
|
|
813
|
+
export type BuiltInModifier = ReturnType<typeof listSectionSpacing> | ReturnType<typeof background> | ReturnType<typeof cornerRadius> | ReturnType<typeof shadow> | ReturnType<typeof frame> | ReturnType<typeof padding> | ReturnType<typeof fixedSize> | ReturnType<typeof ignoreSafeArea> | ReturnType<typeof onTapGesture> | ReturnType<typeof onLongPressGesture> | ReturnType<typeof onAppear> | ReturnType<typeof onDisappear> | ReturnType<typeof opacity> | ReturnType<typeof clipShape> | ReturnType<typeof border> | ReturnType<typeof scaleEffect> | ReturnType<typeof rotationEffect> | ReturnType<typeof offset> | ReturnType<typeof foregroundColor> | ReturnType<typeof foregroundStyle> | ReturnType<typeof bold> | ReturnType<typeof italic> | ReturnType<typeof monospacedDigit> | ReturnType<typeof tint> | ReturnType<typeof hidden> | ReturnType<typeof disabled> | ReturnType<typeof zIndex> | ReturnType<typeof blur> | ReturnType<typeof brightness> | ReturnType<typeof contrast> | ReturnType<typeof saturation> | ReturnType<typeof hueRotation> | ReturnType<typeof colorInvert> | ReturnType<typeof grayscale> | ReturnType<typeof buttonStyle> | ReturnType<typeof toggleStyle> | ReturnType<typeof controlSize> | ReturnType<typeof labelStyle> | ReturnType<typeof labelsHidden> | ReturnType<typeof textFieldStyle> | ReturnType<typeof menuActionDismissBehavior> | ReturnType<typeof accessibilityLabel> | ReturnType<typeof accessibilityHint> | ReturnType<typeof accessibilityValue> | ReturnType<typeof layoutPriority> | ReturnType<typeof mask> | ReturnType<typeof overlay> | ReturnType<typeof backgroundOverlay> | ReturnType<typeof aspectRatio> | ReturnType<typeof clipped> | ReturnType<typeof glassEffect> | ReturnType<typeof glassEffectId> | ReturnType<typeof animation> | ReturnType<typeof containerShape> | ReturnType<typeof contentShape> | ReturnType<typeof containerRelativeFrame> | ReturnType<typeof scrollContentBackground> | ReturnType<typeof scrollDisabled> | ReturnType<typeof moveDisabled> | ReturnType<typeof deleteDisabled> | ReturnType<typeof environment> | ReturnType<typeof listRowBackground> | ReturnType<typeof listRowSeparator> | ReturnType<typeof truncationMode> | ReturnType<typeof allowsTightening> | ReturnType<typeof kerning> | ReturnType<typeof textCase> | ReturnType<typeof underline> | ReturnType<typeof strikethrough> | ReturnType<typeof multilineTextAlignment> | ReturnType<typeof textSelection> | ReturnType<typeof lineSpacing> | ReturnType<typeof lineLimit> | ReturnType<typeof headerProminence> | ReturnType<typeof listRowInsets> | ReturnType<typeof badgeProminence> | ReturnType<typeof badge> | ReturnType<typeof listSectionMargins> | ReturnType<typeof font> | ReturnType<typeof gridCellUnsizedAxes> | ReturnType<typeof gridCellColumns> | ReturnType<typeof gridColumnAlignment> | ReturnType<typeof gridCellAnchor> | ReturnType<typeof submitLabel> | ReturnType<typeof datePickerStyle> | ReturnType<typeof progressViewStyle> | ReturnType<typeof gaugeStyle> | ReturnType<typeof listStyle> | ReturnType<typeof contentTransition>;
|
|
808
814
|
/**
|
|
809
815
|
* Main ViewModifier type that supports both built-in and 3rd party modifiers.
|
|
810
816
|
* 3rd party modifiers should return ModifierConfig objects with their own type strings.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/swift-ui/modifiers/index.ts"],"names":[],"mappings":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Y,EACV,qBAAqB,EACrB,qBAAqB,EACrB,kCAAkC,EAClC,sBAAsB,GACvB,MAAM,mBAAmB,CAAC"}
|
package/expo-module.config.json
CHANGED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import SwiftUI
|
|
2
|
+
import ExpoModulesCore
|
|
3
|
+
|
|
4
|
+
internal struct ConfirmationDialogView: ExpoSwiftUI.View {
|
|
5
|
+
@ObservedObject var props: ConfirmationDialogProps
|
|
6
|
+
@State private var isPresented: Bool
|
|
7
|
+
|
|
8
|
+
init(props: ConfirmationDialogProps) {
|
|
9
|
+
self.props = props
|
|
10
|
+
_isPresented = State(initialValue: props.isPresented)
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
var body: some View {
|
|
14
|
+
triggerContent
|
|
15
|
+
.confirmationDialog(
|
|
16
|
+
props.title,
|
|
17
|
+
isPresented: $isPresented,
|
|
18
|
+
titleVisibility: props.titleVisibility.toVisibility()
|
|
19
|
+
) {
|
|
20
|
+
actionsContent
|
|
21
|
+
} message: {
|
|
22
|
+
messageContent
|
|
23
|
+
}
|
|
24
|
+
.onChange(of: isPresented) { newValue in
|
|
25
|
+
if props.isPresented != newValue {
|
|
26
|
+
props.onIsPresentedChange(["isPresented": newValue])
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
.onChange(of: props.isPresented) { newValue in
|
|
30
|
+
isPresented = newValue
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
@ViewBuilder
|
|
35
|
+
private var triggerContent: some View {
|
|
36
|
+
if let trigger = props.children?
|
|
37
|
+
.compactMap({ $0.childView as? ConfirmationDialogTrigger })
|
|
38
|
+
.first {
|
|
39
|
+
trigger
|
|
40
|
+
} else {
|
|
41
|
+
EmptyView()
|
|
42
|
+
.onAppear {
|
|
43
|
+
log.warn("ConfirmationDialog requires a ConfirmationDialog.Trigger child to be visible")
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
@ViewBuilder
|
|
49
|
+
private var actionsContent: some View {
|
|
50
|
+
if let actions = props.children?
|
|
51
|
+
.compactMap({ $0.childView as? ConfirmationDialogActions })
|
|
52
|
+
.first {
|
|
53
|
+
actions
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
@ViewBuilder
|
|
58
|
+
private var messageContent: some View {
|
|
59
|
+
if let message = props.children?
|
|
60
|
+
.compactMap({ $0.childView as? ConfirmationDialogMessage })
|
|
61
|
+
.first {
|
|
62
|
+
message
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import SwiftUI
|
|
2
|
+
import ExpoModulesCore
|
|
3
|
+
|
|
4
|
+
internal struct ConfirmationDialogTrigger: ExpoSwiftUI.View {
|
|
5
|
+
@ObservedObject var props: ConfirmationDialogTriggerProps
|
|
6
|
+
|
|
7
|
+
var body: some View {
|
|
8
|
+
Children()
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
internal struct ConfirmationDialogActions: ExpoSwiftUI.View {
|
|
13
|
+
@ObservedObject var props: ConfirmationDialogActionsProps
|
|
14
|
+
|
|
15
|
+
var body: some View {
|
|
16
|
+
Children()
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
internal struct ConfirmationDialogMessage: ExpoSwiftUI.View {
|
|
21
|
+
@ObservedObject var props: ConfirmationDialogMessageProps
|
|
22
|
+
|
|
23
|
+
var body: some View {
|
|
24
|
+
Children()
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import ExpoModulesCore
|
|
2
|
+
import SwiftUI
|
|
3
|
+
|
|
4
|
+
internal final class ConfirmationDialogProps: UIBaseViewProps {
|
|
5
|
+
@Field var title: String = ""
|
|
6
|
+
@Field var isPresented: Bool = false
|
|
7
|
+
@Field var titleVisibility: VisibilityOptions = .automatic
|
|
8
|
+
var onIsPresentedChange = EventDispatcher()
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
internal final class ConfirmationDialogTriggerProps: ExpoSwiftUI.ViewProps {}
|
|
12
|
+
|
|
13
|
+
internal final class ConfirmationDialogActionsProps: ExpoSwiftUI.ViewProps {}
|
|
14
|
+
|
|
15
|
+
internal final class ConfirmationDialogMessageProps: ExpoSwiftUI.ViewProps {}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import ExpoModulesCore
|
|
2
|
+
import SwiftUI
|
|
3
|
+
|
|
4
|
+
internal enum VisibilityOptions: String, Enumerable {
|
|
5
|
+
case automatic
|
|
6
|
+
case visible
|
|
7
|
+
case hidden
|
|
8
|
+
|
|
9
|
+
func toVisibility() -> Visibility {
|
|
10
|
+
switch self {
|
|
11
|
+
case .automatic:
|
|
12
|
+
return .automatic
|
|
13
|
+
case .visible:
|
|
14
|
+
return .visible
|
|
15
|
+
case .hidden:
|
|
16
|
+
return .hidden
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
package/ios/ExpoUIModule.swift
CHANGED
|
@@ -66,6 +66,9 @@ public final class ExpoUIModule: Module {
|
|
|
66
66
|
View(ContextMenuActivationElement.self)
|
|
67
67
|
View(ContextMenuPreview.self)
|
|
68
68
|
View(ContextMenuContent.self)
|
|
69
|
+
View(ConfirmationDialogTrigger.self)
|
|
70
|
+
View(ConfirmationDialogActions.self)
|
|
71
|
+
View(ConfirmationDialogMessage.self)
|
|
69
72
|
View(NamespaceView.self)
|
|
70
73
|
View(PopoverViewContent.self)
|
|
71
74
|
View(PopoverViewPopContent.self)
|
|
@@ -88,6 +91,7 @@ public final class ExpoUIModule: Module {
|
|
|
88
91
|
ExpoUIView(DatePickerView.self)
|
|
89
92
|
ExpoUIView(DisclosureGroupView.self)
|
|
90
93
|
ExpoUIView(ExpoUI.ContentUnavailableView.self)
|
|
94
|
+
ExpoUIView(ConfirmationDialogView.self)
|
|
91
95
|
ExpoUIView(ExpoUI.ContextMenu.self)
|
|
92
96
|
|
|
93
97
|
// Menu component
|
|
@@ -149,25 +149,8 @@ private struct PresentationDetentsSelectionView<WrappedContent: View>: View {
|
|
|
149
149
|
|
|
150
150
|
// MARK: - Presentation Drag Indicator
|
|
151
151
|
|
|
152
|
-
internal enum PresentationDragIndicatorVisibilityModifier: String, Enumerable {
|
|
153
|
-
case automatic
|
|
154
|
-
case visible
|
|
155
|
-
case hidden
|
|
156
|
-
|
|
157
|
-
func toVisibility() -> Visibility {
|
|
158
|
-
switch self {
|
|
159
|
-
case .visible:
|
|
160
|
-
return .visible
|
|
161
|
-
case .hidden:
|
|
162
|
-
return .hidden
|
|
163
|
-
default:
|
|
164
|
-
return .automatic
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
|
|
169
152
|
internal struct PresentationDragIndicatorModifier: ViewModifier, Record {
|
|
170
|
-
@Field var visibility:
|
|
153
|
+
@Field var visibility: VisibilityOptions = .automatic
|
|
171
154
|
|
|
172
155
|
func body(content: Content) -> some View {
|
|
173
156
|
if #available(iOS 16.0, tvOS 16.0, *) {
|
|
@@ -174,6 +174,12 @@ internal struct ItalicModifier: ViewModifier, Record {
|
|
|
174
174
|
}
|
|
175
175
|
}
|
|
176
176
|
|
|
177
|
+
internal struct MonospacedDigitModifier: ViewModifier, Record {
|
|
178
|
+
func body(content: Content) -> some View {
|
|
179
|
+
content.monospacedDigit()
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
|
|
177
183
|
internal struct TintModifier: ViewModifier, Record {
|
|
178
184
|
@Field var color: Color?
|
|
179
185
|
|
|
@@ -768,22 +774,6 @@ internal struct ListRowBackground: ViewModifier, Record {
|
|
|
768
774
|
}
|
|
769
775
|
}
|
|
770
776
|
|
|
771
|
-
internal enum ListRowSeparatorVisibility: String, Enumerable {
|
|
772
|
-
case automatic
|
|
773
|
-
case visible
|
|
774
|
-
case hidden
|
|
775
|
-
|
|
776
|
-
func toVisibility() -> Visibility {
|
|
777
|
-
switch self {
|
|
778
|
-
case .visible:
|
|
779
|
-
return .visible
|
|
780
|
-
case .hidden:
|
|
781
|
-
return .hidden
|
|
782
|
-
default:
|
|
783
|
-
return .automatic
|
|
784
|
-
}
|
|
785
|
-
}
|
|
786
|
-
}
|
|
787
777
|
|
|
788
778
|
internal enum VerticalEdgeOptions: String, Enumerable {
|
|
789
779
|
case all
|
|
@@ -803,7 +793,7 @@ internal enum VerticalEdgeOptions: String, Enumerable {
|
|
|
803
793
|
}
|
|
804
794
|
|
|
805
795
|
internal struct ListRowSeparator: ViewModifier, Record {
|
|
806
|
-
@Field var visibility:
|
|
796
|
+
@Field var visibility: VisibilityOptions = .automatic
|
|
807
797
|
@Field var edges: VerticalEdgeOptions?
|
|
808
798
|
|
|
809
799
|
func body(content: Content) -> some View {
|
|
@@ -1324,6 +1314,8 @@ public class ViewModifierRegistry {
|
|
|
1324
1314
|
return text.bold()
|
|
1325
1315
|
case "italic":
|
|
1326
1316
|
return text.italic()
|
|
1317
|
+
case "monospacedDigit":
|
|
1318
|
+
return text.monospacedDigit()
|
|
1327
1319
|
case "font":
|
|
1328
1320
|
guard let modifier = try? FontModifier(from: params, appContext: appContext) else { return text }
|
|
1329
1321
|
if let family = modifier.family {
|
|
@@ -1522,6 +1514,10 @@ extension ViewModifierRegistry {
|
|
|
1522
1514
|
return try ItalicModifier(from: params, appContext: appContext)
|
|
1523
1515
|
}
|
|
1524
1516
|
|
|
1517
|
+
register("monospacedDigit") { params, appContext, _ in
|
|
1518
|
+
return try MonospacedDigitModifier(from: params, appContext: appContext)
|
|
1519
|
+
}
|
|
1520
|
+
|
|
1525
1521
|
register("tint") { params, appContext, _ in
|
|
1526
1522
|
return try TintModifier(from: params, appContext: appContext)
|
|
1527
1523
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"component": {
|
|
4
4
|
"group": "expo.modules.ui",
|
|
5
5
|
"module": "expo.modules.ui",
|
|
6
|
-
"version": "55.0.0
|
|
6
|
+
"version": "55.0.0",
|
|
7
7
|
"attributes": {
|
|
8
8
|
"org.gradle.status": "release"
|
|
9
9
|
}
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
},
|
|
25
25
|
"files": [
|
|
26
26
|
{
|
|
27
|
-
"name": "expo.modules.ui-55.0.0
|
|
28
|
-
"url": "expo.modules.ui-55.0.0
|
|
27
|
+
"name": "expo.modules.ui-55.0.0.aar",
|
|
28
|
+
"url": "expo.modules.ui-55.0.0.aar",
|
|
29
29
|
"size": 732681,
|
|
30
30
|
"sha512": "35a4fa077be99bf9bebfd55d3398894d0150be4a5a60503d407a6a487290f5b2fdd0b0624986ef2781097d50a3c1fe973786fd79a738e94d1de0228b04ab3e01",
|
|
31
31
|
"sha256": "981050003cd4b3d57f26a29a9e0466bdbdae41cc8df253b571858ba1e46a6ab9",
|
|
@@ -120,8 +120,8 @@
|
|
|
120
120
|
],
|
|
121
121
|
"files": [
|
|
122
122
|
{
|
|
123
|
-
"name": "expo.modules.ui-55.0.0
|
|
124
|
-
"url": "expo.modules.ui-55.0.0
|
|
123
|
+
"name": "expo.modules.ui-55.0.0.aar",
|
|
124
|
+
"url": "expo.modules.ui-55.0.0.aar",
|
|
125
125
|
"size": 732681,
|
|
126
126
|
"sha512": "35a4fa077be99bf9bebfd55d3398894d0150be4a5a60503d407a6a487290f5b2fdd0b0624986ef2781097d50a3c1fe973786fd79a738e94d1de0228b04ab3e01",
|
|
127
127
|
"sha256": "981050003cd4b3d57f26a29a9e0466bdbdae41cc8df253b571858ba1e46a6ab9",
|
|
@@ -140,8 +140,8 @@
|
|
|
140
140
|
},
|
|
141
141
|
"files": [
|
|
142
142
|
{
|
|
143
|
-
"name": "expo.modules.ui-55.0.0-
|
|
144
|
-
"url": "expo.modules.ui-55.0.0-
|
|
143
|
+
"name": "expo.modules.ui-55.0.0-sources.jar",
|
|
144
|
+
"url": "expo.modules.ui-55.0.0-sources.jar",
|
|
145
145
|
"size": 51394,
|
|
146
146
|
"sha512": "fe721d26e09241994a20838afa7aecfcd15a3c74bb104a3b42753cb73608ad6784f0d820db4b654b6fd65df1165574b8353040f8d0a2161c2e3413e18c2b9b79",
|
|
147
147
|
"sha256": "addee5fe747747c7459fb227f67189cd0c0a064fe2a037ed67057c560e7fb335",
|
package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.0/expo.modules.ui-55.0.0.module.md5
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
b923de9dd3cfa3736bc13db6d75817dc
|
package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.0/expo.modules.ui-55.0.0.module.sha1
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
16bbc6d6ebf2ad13f84336cc98e712e394c94d3f
|
package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.0/expo.modules.ui-55.0.0.module.sha256
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
7bd69b5138e85b3f667649a3d2967db4599501141e80ab024f7d909e29a08b1f
|
package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.0/expo.modules.ui-55.0.0.module.sha512
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
422527512f454d53a49147ee9fb7257fb8b01ebf43cdb48ea56e31c4ce569490b38c7cf5f0479cfb1b309396504d39dc89cbc5156efea1c459ca5193e1ef789c
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<modelVersion>4.0.0</modelVersion>
|
|
10
10
|
<groupId>expo.modules.ui</groupId>
|
|
11
11
|
<artifactId>expo.modules.ui</artifactId>
|
|
12
|
-
<version>55.0.0
|
|
12
|
+
<version>55.0.0</version>
|
|
13
13
|
<packaging>aar</packaging>
|
|
14
14
|
<name>expo.modules.ui</name>
|
|
15
15
|
<url>https://github.com/expo/expo</url>
|
package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.0/expo.modules.ui-55.0.0.pom.md5
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
f252338c6e97eeea2181d83d5c5493f2
|
package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.0/expo.modules.ui-55.0.0.pom.sha1
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
a69749732bbb74d9ef23ce0c1508c38bb41707d9
|
package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.0/expo.modules.ui-55.0.0.pom.sha256
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
8ef946a320955f52ed239de327c0006d9806229a7c6a2b25f0080634dab7ed82
|
package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.0/expo.modules.ui-55.0.0.pom.sha512
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
b1cbb30b5a78b049422d1589a4285d58c6a56ac85f07689e4a372e11b3bad54efc4482e6f1c2c3b8bace60e9c4fc173cae08ba7b235826b957e28f7f37bdcaad
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
<groupId>expo.modules.ui</groupId>
|
|
4
4
|
<artifactId>expo.modules.ui</artifactId>
|
|
5
5
|
<versioning>
|
|
6
|
-
<latest>55.0.0
|
|
7
|
-
<release>55.0.0
|
|
6
|
+
<latest>55.0.0</latest>
|
|
7
|
+
<release>55.0.0</release>
|
|
8
8
|
<versions>
|
|
9
|
-
<version>55.0.0
|
|
9
|
+
<version>55.0.0</version>
|
|
10
10
|
</versions>
|
|
11
|
-
<lastUpdated>
|
|
11
|
+
<lastUpdated>20260225012649</lastUpdated>
|
|
12
12
|
</versioning>
|
|
13
13
|
</metadata>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
be097b1ca9d6557ce603d9fa8337d298
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
ffb870c3e214c6335eda475340ecf91bb97a95e1
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
9fbe3d7daf56d306b01466ba459a1ca9a073df5d11712ba9746a45f54383c32f
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
fbfe14ec891c0a4f30a9da397ed8fad0422f6e68ab4d93830c4340800bad782a8fdfc84a5c1fb989966f1a38bcca1136353d0bfae3d9029885f57d663ec0af4a
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@expo/ui",
|
|
3
|
-
"version": "55.0.0
|
|
3
|
+
"version": "55.0.0",
|
|
4
4
|
"description": "A collection of UI components",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"*.fx.js"
|
|
@@ -60,5 +60,5 @@
|
|
|
60
60
|
"react": "*",
|
|
61
61
|
"react-native": "*"
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "b183e5cbd95eb6ee54a878291c7077d8d63e4850"
|
|
64
64
|
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { requireNativeView } from 'expo';
|
|
2
|
+
import { NativeSyntheticEvent } from 'react-native';
|
|
3
|
+
|
|
4
|
+
import { createViewModifierEventListener } from '../modifiers/utils';
|
|
5
|
+
import { type CommonViewModifierProps } from '../types';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Props of the `ConfirmationDialog` component.
|
|
9
|
+
*/
|
|
10
|
+
export type ConfirmationDialogProps = {
|
|
11
|
+
/**
|
|
12
|
+
* The contents of the confirmation dialog.
|
|
13
|
+
* Should include `ConfirmationDialog.Trigger`, `ConfirmationDialog.Actions`, and optionally `ConfirmationDialog.Message`.
|
|
14
|
+
*/
|
|
15
|
+
children: React.ReactNode;
|
|
16
|
+
/**
|
|
17
|
+
* The title of the confirmation dialog.
|
|
18
|
+
*/
|
|
19
|
+
title: string;
|
|
20
|
+
/**
|
|
21
|
+
* Whether the confirmation dialog is presented.
|
|
22
|
+
*/
|
|
23
|
+
isPresented?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* A callback that is called when the `isPresented` state changes.
|
|
26
|
+
*/
|
|
27
|
+
onIsPresentedChange?: (isPresented: boolean) => void;
|
|
28
|
+
/**
|
|
29
|
+
* The visibility of the dialog title.
|
|
30
|
+
* @default 'automatic'
|
|
31
|
+
*/
|
|
32
|
+
titleVisibility?: 'automatic' | 'visible' | 'hidden';
|
|
33
|
+
} & CommonViewModifierProps;
|
|
34
|
+
|
|
35
|
+
type NativeConfirmationDialogProps = Omit<ConfirmationDialogProps, 'onIsPresentedChange'> & {
|
|
36
|
+
onIsPresentedChange?: (event: NativeSyntheticEvent<{ isPresented: boolean }>) => void;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
const ConfirmationDialogNativeView: React.ComponentType<NativeConfirmationDialogProps> =
|
|
40
|
+
requireNativeView('ExpoUI', 'ConfirmationDialogView');
|
|
41
|
+
|
|
42
|
+
const ConfirmationDialogNativeTrigger: React.ComponentType<{ children: React.ReactNode }> =
|
|
43
|
+
requireNativeView('ExpoUI', 'ConfirmationDialogTrigger');
|
|
44
|
+
|
|
45
|
+
const ConfirmationDialogNativeActions: React.ComponentType<{ children: React.ReactNode }> =
|
|
46
|
+
requireNativeView('ExpoUI', 'ConfirmationDialogActions');
|
|
47
|
+
|
|
48
|
+
const ConfirmationDialogNativeMessage: React.ComponentType<{ children: React.ReactNode }> =
|
|
49
|
+
requireNativeView('ExpoUI', 'ConfirmationDialogMessage');
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* The component visible all the time that triggers the confirmation dialog presentation.
|
|
53
|
+
*/
|
|
54
|
+
function Trigger(props: { children: React.ReactNode }) {
|
|
55
|
+
return <ConfirmationDialogNativeTrigger {...props} />;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* The action buttons displayed in the confirmation dialog. Use `Button` components from `@expo/ui/swift-ui` as children.
|
|
60
|
+
*/
|
|
61
|
+
function Actions(props: { children: React.ReactNode }) {
|
|
62
|
+
return <ConfirmationDialogNativeActions {...props} />;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* An optional message displayed below the title in the confirmation dialog.
|
|
67
|
+
*/
|
|
68
|
+
function Message(props: { children: React.ReactNode }) {
|
|
69
|
+
return <ConfirmationDialogNativeMessage {...props} />;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* `ConfirmationDialog` presents a confirmation dialog with a title, optional message, and action buttons.
|
|
74
|
+
*
|
|
75
|
+
* @see https://developer.apple.com/documentation/swiftui/view/confirmationdialog(_:ispresented:titlevisibility:actions:message:)
|
|
76
|
+
*/
|
|
77
|
+
function ConfirmationDialog(props: ConfirmationDialogProps) {
|
|
78
|
+
const { onIsPresentedChange, modifiers, children, ...restProps } = props;
|
|
79
|
+
|
|
80
|
+
const handleIsPresentedChange = (event: NativeSyntheticEvent<{ isPresented: boolean }>) => {
|
|
81
|
+
onIsPresentedChange?.(event.nativeEvent.isPresented);
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
return (
|
|
85
|
+
<ConfirmationDialogNativeView
|
|
86
|
+
{...(modifiers ? createViewModifierEventListener(modifiers) : undefined)}
|
|
87
|
+
{...restProps}
|
|
88
|
+
onIsPresentedChange={handleIsPresentedChange}>
|
|
89
|
+
{children}
|
|
90
|
+
</ConfirmationDialogNativeView>
|
|
91
|
+
);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
ConfirmationDialog.Trigger = Trigger;
|
|
95
|
+
ConfirmationDialog.Actions = Actions;
|
|
96
|
+
ConfirmationDialog.Message = Message;
|
|
97
|
+
|
|
98
|
+
export { ConfirmationDialog };
|
package/src/swift-ui/index.tsx
CHANGED
|
@@ -389,6 +389,13 @@ export const bold = () => createModifier('bold', {});
|
|
|
389
389
|
*/
|
|
390
390
|
export const italic = () => createModifier('italic', {});
|
|
391
391
|
|
|
392
|
+
/**
|
|
393
|
+
* Modifies the fonts of all child views to use fixed-width digits, if possible, while leaving other characters proportionally spaced.
|
|
394
|
+
* When applied to `Text`, modifies the text view's font to use fixed-width digits, while leaving other characters proportionally spaced.
|
|
395
|
+
* @see Official [SwiftUI documentation](https://developer.apple.com/documentation/swiftui/view/monospaceddigit()).
|
|
396
|
+
*/
|
|
397
|
+
export const monospacedDigit = () => createModifier('monospacedDigit', {});
|
|
398
|
+
|
|
392
399
|
/**
|
|
393
400
|
* Sets the tint color of a view.
|
|
394
401
|
* @param color - The tint color (hex string). For example, `#FF0000`.
|
|
@@ -1003,6 +1010,7 @@ export type BuiltInModifier =
|
|
|
1003
1010
|
| ReturnType<typeof foregroundStyle>
|
|
1004
1011
|
| ReturnType<typeof bold>
|
|
1005
1012
|
| ReturnType<typeof italic>
|
|
1013
|
+
| ReturnType<typeof monospacedDigit>
|
|
1006
1014
|
| ReturnType<typeof tint>
|
|
1007
1015
|
| ReturnType<typeof hidden>
|
|
1008
1016
|
| ReturnType<typeof disabled>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
476572d30392c1bebd803d59eaf0ff5a
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
34bac238d68063351776ba68094830ebd6278ed6
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
e2cf4767795c8c1da875da5cbd7a785c9aad3d952968ba26186ddccd42a8f539
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
8a71c67930674def2db9ac764190ba76fef5ab3fd7411a059d1a91969ab7ecfdcdc5d105593bf9a5c492dcda2807c37f2263345c540bb72a873fc2b994dd98f1
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
1e6970a9d7faa114f74ff502c293c16a
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2102a598c5750c3d2f405862939f122e1e4e5261
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
1132a9df3a87a009f638f73fdfcfd1666180c22551871c176e2252852b10a378
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
4e885a0e78542980bf146d15a8f444896976e0f8cec7998535906a42cbde23257aee483d15e8c5301254d1b6c3f5d1f95a11e2e30bb5b1c79bf3de305e85da35
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|