@expo/ui 55.0.3 → 55.0.5

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.
Files changed (97) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/android/build.gradle +2 -2
  3. package/android/src/main/java/expo/modules/ui/BottomSheetView.kt +91 -13
  4. package/android/src/main/java/expo/modules/ui/CarouselView.kt +93 -67
  5. package/android/src/main/java/expo/modules/ui/ExpoUIModule.kt +15 -6
  6. package/android/src/main/java/expo/modules/ui/TextInputView.kt +39 -15
  7. package/build/datetime-picker/DateTimePicker.android.d.ts +3 -0
  8. package/build/datetime-picker/DateTimePicker.android.d.ts.map +1 -0
  9. package/build/datetime-picker/DateTimePicker.d.ts +3 -0
  10. package/build/datetime-picker/DateTimePicker.d.ts.map +1 -0
  11. package/build/datetime-picker/DateTimePicker.web.d.ts +3 -0
  12. package/build/datetime-picker/DateTimePicker.web.d.ts.map +1 -0
  13. package/build/datetime-picker/index.d.ts +5 -0
  14. package/build/datetime-picker/index.d.ts.map +1 -0
  15. package/build/datetime-picker/types.d.ts +128 -0
  16. package/build/datetime-picker/types.d.ts.map +1 -0
  17. package/build/jetpack-compose/Carousel/index.d.ts +86 -23
  18. package/build/jetpack-compose/Carousel/index.d.ts.map +1 -1
  19. package/build/jetpack-compose/ModalBottomSheet/index.d.ts +65 -13
  20. package/build/jetpack-compose/ModalBottomSheet/index.d.ts.map +1 -1
  21. package/build/jetpack-compose/Progress/index.d.ts +6 -7
  22. package/build/jetpack-compose/Progress/index.d.ts.map +1 -1
  23. package/build/jetpack-compose/TextInput/index.d.ts +9 -0
  24. package/build/jetpack-compose/TextInput/index.d.ts.map +1 -1
  25. package/build/swift-ui/Link/index.d.ts +36 -0
  26. package/build/swift-ui/Link/index.d.ts.map +1 -0
  27. package/build/swift-ui/index.d.ts +1 -0
  28. package/build/swift-ui/index.d.ts.map +1 -1
  29. package/build/swift-ui/modifiers/environment.d.ts +16 -1
  30. package/build/swift-ui/modifiers/environment.d.ts.map +1 -1
  31. package/build/swift-ui/modifiers/index.d.ts +3 -7
  32. package/build/swift-ui/modifiers/index.d.ts.map +1 -1
  33. package/build/swift-ui/modifiers/widgets.d.ts +14 -0
  34. package/build/swift-ui/modifiers/widgets.d.ts.map +1 -0
  35. package/expo-module.config.json +1 -1
  36. package/ios/ExpoUIModule.swift +1 -0
  37. package/ios/LinkView.swift +29 -0
  38. package/ios/Modifiers/EnvironmentModifier.swift +14 -0
  39. package/ios/Modifiers/ViewModifierRegistry.swift +4 -0
  40. package/ios/Modifiers/WidgetModifiers.swift +12 -0
  41. package/local-maven-repo/expo/modules/ui/expo.modules.ui/{55.0.3/expo.modules.ui-55.0.3-sources.jar → 55.0.5/expo.modules.ui-55.0.5-sources.jar} +0 -0
  42. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.5/expo.modules.ui-55.0.5-sources.jar.md5 +1 -0
  43. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.5/expo.modules.ui-55.0.5-sources.jar.sha1 +1 -0
  44. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.5/expo.modules.ui-55.0.5-sources.jar.sha256 +1 -0
  45. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.5/expo.modules.ui-55.0.5-sources.jar.sha512 +1 -0
  46. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.5/expo.modules.ui-55.0.5.aar +0 -0
  47. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.5/expo.modules.ui-55.0.5.aar.md5 +1 -0
  48. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.5/expo.modules.ui-55.0.5.aar.sha1 +1 -0
  49. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.5/expo.modules.ui-55.0.5.aar.sha256 +1 -0
  50. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.5/expo.modules.ui-55.0.5.aar.sha512 +1 -0
  51. package/local-maven-repo/expo/modules/ui/expo.modules.ui/{55.0.3/expo.modules.ui-55.0.3.module → 55.0.5/expo.modules.ui-55.0.5.module} +22 -22
  52. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.5/expo.modules.ui-55.0.5.module.md5 +1 -0
  53. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.5/expo.modules.ui-55.0.5.module.sha1 +1 -0
  54. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.5/expo.modules.ui-55.0.5.module.sha256 +1 -0
  55. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.5/expo.modules.ui-55.0.5.module.sha512 +1 -0
  56. package/local-maven-repo/expo/modules/ui/expo.modules.ui/{55.0.3/expo.modules.ui-55.0.3.pom → 55.0.5/expo.modules.ui-55.0.5.pom} +1 -1
  57. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.5/expo.modules.ui-55.0.5.pom.md5 +1 -0
  58. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.5/expo.modules.ui-55.0.5.pom.sha1 +1 -0
  59. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.5/expo.modules.ui-55.0.5.pom.sha256 +1 -0
  60. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.5/expo.modules.ui-55.0.5.pom.sha512 +1 -0
  61. package/local-maven-repo/expo/modules/ui/expo.modules.ui/maven-metadata.xml +4 -4
  62. package/local-maven-repo/expo/modules/ui/expo.modules.ui/maven-metadata.xml.md5 +1 -1
  63. package/local-maven-repo/expo/modules/ui/expo.modules.ui/maven-metadata.xml.sha1 +1 -1
  64. package/local-maven-repo/expo/modules/ui/expo.modules.ui/maven-metadata.xml.sha256 +1 -1
  65. package/local-maven-repo/expo/modules/ui/expo.modules.ui/maven-metadata.xml.sha512 +1 -1
  66. package/package.json +6 -2
  67. package/src/datetime-picker/DateTimePicker.android.tsx +126 -0
  68. package/src/datetime-picker/DateTimePicker.tsx +94 -0
  69. package/src/datetime-picker/DateTimePicker.web.tsx +5 -0
  70. package/src/datetime-picker/index.tsx +11 -0
  71. package/src/datetime-picker/types.tsx +147 -0
  72. package/src/jetpack-compose/Carousel/index.tsx +118 -30
  73. package/src/jetpack-compose/ModalBottomSheet/index.tsx +85 -15
  74. package/src/jetpack-compose/Progress/index.tsx +7 -7
  75. package/src/jetpack-compose/TextInput/index.tsx +10 -0
  76. package/src/swift-ui/Link/index.tsx +52 -0
  77. package/src/swift-ui/index.tsx +1 -0
  78. package/src/swift-ui/modifiers/environment.ts +17 -4
  79. package/src/swift-ui/modifiers/index.ts +4 -10
  80. package/src/swift-ui/modifiers/widgets.ts +18 -0
  81. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.3/expo.modules.ui-55.0.3-sources.jar.md5 +0 -1
  82. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.3/expo.modules.ui-55.0.3-sources.jar.sha1 +0 -1
  83. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.3/expo.modules.ui-55.0.3-sources.jar.sha256 +0 -1
  84. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.3/expo.modules.ui-55.0.3-sources.jar.sha512 +0 -1
  85. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.3/expo.modules.ui-55.0.3.aar +0 -0
  86. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.3/expo.modules.ui-55.0.3.aar.md5 +0 -1
  87. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.3/expo.modules.ui-55.0.3.aar.sha1 +0 -1
  88. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.3/expo.modules.ui-55.0.3.aar.sha256 +0 -1
  89. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.3/expo.modules.ui-55.0.3.aar.sha512 +0 -1
  90. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.3/expo.modules.ui-55.0.3.module.md5 +0 -1
  91. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.3/expo.modules.ui-55.0.3.module.sha1 +0 -1
  92. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.3/expo.modules.ui-55.0.3.module.sha256 +0 -1
  93. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.3/expo.modules.ui-55.0.3.module.sha512 +0 -1
  94. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.3/expo.modules.ui-55.0.3.pom.md5 +0 -1
  95. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.3/expo.modules.ui-55.0.3.pom.sha1 +0 -1
  96. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.3/expo.modules.ui-55.0.3.pom.sha256 +0 -1
  97. package/local-maven-repo/expo/modules/ui/expo.modules.ui/55.0.3/expo.modules.ui-55.0.3.pom.sha512 +0 -1
@@ -0,0 +1,128 @@
1
+ import type { ViewProps } from 'react-native';
2
+ /**
3
+ * @deprecated used with the deprecated `onChange` prop
4
+ * */
5
+ export type DateTimePickerEvent = {
6
+ /**
7
+ * `'set'` when the user selects a date. `'dismissed'` when the user cancels
8
+ * an Android dialog picker. iOS never fires `'dismissed'`.
9
+ */
10
+ type: 'set' | 'dismissed';
11
+ nativeEvent: {
12
+ timestamp: number;
13
+ utcOffset: number;
14
+ };
15
+ };
16
+ export type DateTimePickerChangeEvent = {
17
+ nativeEvent: {
18
+ timestamp: number;
19
+ utcOffset: number;
20
+ };
21
+ };
22
+ export type DateTimePickerProps = {
23
+ /**
24
+ * The current date value (controlled).
25
+ */
26
+ value: Date;
27
+ /**
28
+ * @deprecated Use `onValueChange` and `onDismiss` instead.
29
+ *
30
+ * Called when the user changes the date/time or dismisses the picker.
31
+ * The event type is encoded in `event.type`.
32
+ * If the new specific listeners are provided, they take precedence.
33
+ */
34
+ onChange?: (event: DateTimePickerEvent, date?: Date) => void;
35
+ /**
36
+ * Called when the user selects a date or time.
37
+ */
38
+ onValueChange?: (event: DateTimePickerChangeEvent, date: Date) => void;
39
+ /**
40
+ * Called when the picker is dismissed without selecting a value.
41
+ * @platform android
42
+ */
43
+ onDismiss?: () => void;
44
+ /**
45
+ * The picker mode.
46
+ * @default 'date'
47
+ */
48
+ mode?: 'date' | 'time' | 'datetime';
49
+ /**
50
+ * The earliest selectable date.
51
+ */
52
+ minimumDate?: Date;
53
+ /**
54
+ * The latest selectable date.
55
+ */
56
+ maximumDate?: Date;
57
+ /**
58
+ * A test ID forwarded to the native view.
59
+ * Note: on Android dialog presentation, the test ID is not forwarded.
60
+ */
61
+ testID?: string;
62
+ /**
63
+ * Display style. Android supports `'default' | 'spinner'` — `'spinner'` shows a text input
64
+ * rather than a scroll wheel (Material 3 does not have a wheel-style picker).
65
+ * iOS supports `'default' | 'spinner' | 'compact' | 'inline'`.
66
+ * @default 'default'
67
+ */
68
+ display?: 'default' | 'spinner' | 'compact' | 'inline' | 'calendar' | 'clock';
69
+ /**
70
+ * Use 24-hour format.
71
+ * @platform android
72
+ */
73
+ is24Hour?: boolean;
74
+ /**
75
+ * Accent/tint color applied to the picker.
76
+ * Maps to `color` on Android and `tint` on iOS.
77
+ */
78
+ accentColor?: string;
79
+ /**
80
+ * Whether the picker is disabled.
81
+ * @platform ios
82
+ */
83
+ disabled?: boolean;
84
+ /**
85
+ * Locale identifier (e.g. 'en_US', 'fr_FR') for the picker display.
86
+ * @platform ios
87
+ */
88
+ locale?: string;
89
+ /**
90
+ * Force a specific color scheme on the picker.
91
+ * @platform ios
92
+ */
93
+ themeVariant?: 'dark' | 'light';
94
+ /**
95
+ * IANA time zone name (e.g. 'America/New_York') for the picker display.
96
+ * @platform ios
97
+ */
98
+ timeZoneName?: string;
99
+ /**
100
+ * How the picker is presented.
101
+ * - `'inline'` renders the picker directly in the view hierarchy.
102
+ * - `'dialog'` shows a modal dialog that opens on mount. Fires `onValueChange` on confirmation, `onDismiss` on cancel. The caller should
103
+ * unmount the component in response.
104
+ *
105
+ * On iOS this prop is accepted but ignored (always inline).
106
+ * On Android the default is `'dialog'`.
107
+ * @default 'dialog'
108
+ * @platform android
109
+ */
110
+ presentation?: 'inline' | 'dialog';
111
+ /**
112
+ * Set the positive (confirm) button label.
113
+ * @platform android
114
+ */
115
+ positiveButton?: {
116
+ label?: string;
117
+ };
118
+ /**
119
+ * Set the negative (cancel) button label.
120
+ * @platform android
121
+ */
122
+ negativeButton?: {
123
+ label?: string;
124
+ };
125
+ } & Pick<ViewProps, 'style'>;
126
+ export declare function buildEvent(date: Date): DateTimePickerEvent;
127
+ export declare function buildChangeEvent(date: Date): DateTimePickerChangeEvent;
128
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/datetime-picker/types.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAI9C;;KAEK;AACL,MAAM,MAAM,mBAAmB,GAAG;IAChC;;;OAGG;IACH,IAAI,EAAE,KAAK,GAAG,WAAW,CAAC;IAC1B,WAAW,EAAE;QACX,SAAS,EAAE,MAAM,CAAC;QAClB,SAAS,EAAE,MAAM,CAAC;KACnB,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG;IACtC,WAAW,EAAE;QACX,SAAS,EAAE,MAAM,CAAC;QAClB,SAAS,EAAE,MAAM,CAAC;KACnB,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC;;OAEG;IACH,KAAK,EAAE,IAAI,CAAC;IACZ;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,mBAAmB,EAAE,IAAI,CAAC,EAAE,IAAI,KAAK,IAAI,CAAC;IAC7D;;OAEG;IACH,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,yBAAyB,EAAE,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;IACvE;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,UAAU,CAAC;IACpC;;OAEG;IACH,WAAW,CAAC,EAAE,IAAI,CAAC;IACnB;;OAEG;IACH,WAAW,CAAC,EAAE,IAAI,CAAC;IACnB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,UAAU,GAAG,OAAO,CAAC;IAC9E;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAChC;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;;;;;;;OAUG;IACH,YAAY,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;IACnC;;;OAGG;IACH,cAAc,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACpC;;;OAGG;IACH,cAAc,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CACrC,GAAG,IAAI,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;AAI7B,wBAAgB,UAAU,CAAC,IAAI,EAAE,IAAI,GAAG,mBAAmB,CAQ1D;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,IAAI,GAAG,yBAAyB,CAOtE"}
@@ -1,38 +1,101 @@
1
- import { ExpoModifier } from '../../types';
1
+ import { type ModifierConfig } from '../../types';
2
+ /**
3
+ * Per-side padding values in dp for carousel content.
4
+ */
2
5
  export type PaddingValuesRecord = {
3
6
  start?: number;
4
7
  top?: number;
5
8
  end?: number;
6
9
  bottom?: number;
7
10
  };
8
- export type CarouselVariant = 'multiBrowse' | 'unconstrained';
11
+ /**
12
+ * Fling behavior type for controlling carousel snapping.
13
+ */
9
14
  export type FlingBehaviorType = 'singleAdvance' | 'noSnap';
10
- export type CarouselProps = {
15
+ /**
16
+ * Shared props across all carousel components.
17
+ */
18
+ export type CarouselCommonConfig = {
11
19
  /**
12
- * Modifiers for the component.
20
+ * Spacing between items in dp.
21
+ * @default 0
13
22
  */
14
- modifiers?: ExpoModifier[];
15
- /** Carousel variant */
16
- variant?: CarouselVariant;
17
- /** Spacing between items (dp) */
18
23
  itemSpacing?: number;
19
- /** Padding for carousel content (dp or object) */
24
+ /**
25
+ * Padding for carousel content (dp or object).
26
+ */
20
27
  contentPadding?: number | PaddingValuesRecord;
21
- /** Minimum small item width (dp) */
22
- minSmallItemWidth?: number;
23
- /** Maximum small item width (dp) */
24
- maxSmallItemWidth?: number;
25
- /** Fling behavior type */
28
+ /**
29
+ * Controls snapping behavior when the user flings the carousel.
30
+ * `'singleAdvance'` snaps to the next item, `'noSnap'` allows free scrolling.
31
+ */
26
32
  flingBehavior?: FlingBehaviorType;
27
- /** Preferred item width (dp) for multiBrowse variant */
28
- preferredItemWidth?: number;
29
- /** Item width (dp) for unconstrained variant */
30
- itemWidth?: number;
31
- /** Children to render */
33
+ /**
34
+ * Whether the user can scroll the carousel.
35
+ * @default true
36
+ */
37
+ userScrollEnabled?: boolean;
38
+ /**
39
+ * Modifiers for the component.
40
+ */
41
+ modifiers?: ModifierConfig[];
42
+ /**
43
+ * Children to render as carousel items.
44
+ */
32
45
  children: React.ReactNode;
33
46
  };
34
- type NativeCarouselProps = CarouselProps;
35
- export declare function transformCarouselProps(props: CarouselProps): NativeCarouselProps;
36
- export declare function Carousel(props: CarouselProps): import("react").JSX.Element;
37
- export {};
47
+ export type HorizontalCenteredHeroCarouselProps = CarouselCommonConfig & {
48
+ /**
49
+ * Maximum width of the hero item in dp.
50
+ * When unspecified, the hero item will be as wide as possible.
51
+ */
52
+ maxItemWidth?: number;
53
+ /**
54
+ * Minimum width of small peek items in dp.
55
+ * @default CarouselDefaults.MinSmallItemSize
56
+ */
57
+ minSmallItemWidth?: number;
58
+ /**
59
+ * Maximum width of small peek items in dp.
60
+ * @default CarouselDefaults.MaxSmallItemSize
61
+ */
62
+ maxSmallItemWidth?: number;
63
+ };
64
+ /**
65
+ * A hero carousel that centers one large item between two small peek items,
66
+ * matching Compose's `HorizontalCenteredHeroCarousel`.
67
+ */
68
+ export declare const HorizontalCenteredHeroCarousel: import("react").ComponentType<HorizontalCenteredHeroCarouselProps>;
69
+ export type HorizontalMultiBrowseCarouselProps = CarouselCommonConfig & {
70
+ /**
71
+ * The preferred width of the large item in dp.
72
+ */
73
+ preferredItemWidth: number;
74
+ /**
75
+ * Minimum width of small peek items in dp.
76
+ * @default CarouselDefaults.MinSmallItemSize
77
+ */
78
+ minSmallItemWidth?: number;
79
+ /**
80
+ * Maximum width of small peek items in dp.
81
+ * @default CarouselDefaults.MaxSmallItemSize
82
+ */
83
+ maxSmallItemWidth?: number;
84
+ };
85
+ /**
86
+ * A carousel that shows a large item alongside smaller peek items,
87
+ * matching Compose's `HorizontalMultiBrowseCarousel`.
88
+ */
89
+ export declare const HorizontalMultiBrowseCarousel: import("react").ComponentType<HorizontalMultiBrowseCarouselProps>;
90
+ export type HorizontalUncontainedCarouselProps = CarouselCommonConfig & {
91
+ /**
92
+ * The width of each item in dp.
93
+ */
94
+ itemWidth: number;
95
+ };
96
+ /**
97
+ * A carousel where each item has a fixed width with free-form scrolling,
98
+ * matching Compose's `HorizontalUncontainedCarousel`.
99
+ */
100
+ export declare const HorizontalUncontainedCarousel: import("react").ComponentType<HorizontalUncontainedCarouselProps>;
38
101
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/jetpack-compose/Carousel/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAG3C,MAAM,MAAM,mBAAmB,GAAG;IACh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;AACH,eAAO,MAAM,6BAA6B,mEACwD,CAAC"}
@@ -1,12 +1,38 @@
1
- import React from 'react';
2
- import { type ExpoModifier } from '../../types';
1
+ import React, { Ref } from 'react';
2
+ import { type ColorValue } from 'react-native';
3
+ import { type ModifierConfig } from '../../types';
4
+ export type ModalBottomSheetRef = {
5
+ /**
6
+ * Programmatically hides the bottom sheet with an animation.
7
+ * The returned promise resolves after the dismiss animation completes.
8
+ */
9
+ hide: () => Promise<void>;
10
+ };
11
+ export type ModalBottomSheetProperties = {
12
+ /**
13
+ * Whether the bottom sheet can be dismissed by pressing the back button.
14
+ * @default true
15
+ */
16
+ shouldDismissOnBackPress?: boolean;
17
+ /**
18
+ * Whether the bottom sheet can be dismissed by clicking outside (on the scrim).
19
+ * @default true
20
+ */
21
+ shouldDismissOnClickOutside?: boolean;
22
+ };
3
23
  export type ModalBottomSheetProps = {
4
24
  /**
5
25
  * The children of the `ModalBottomSheet` component.
26
+ * Can include a `ModalBottomSheet.DragHandle` slot for a custom drag handle.
6
27
  */
7
28
  children: React.ReactNode;
8
29
  /**
9
- * Callback function that is called when the bottom sheet is dismissed.
30
+ * Can be used to imperatively hide the bottom sheet with an animation.
31
+ */
32
+ ref?: Ref<ModalBottomSheetRef>;
33
+ /**
34
+ * Callback function that is called when the user dismisses the bottom sheet
35
+ * (via swipe, back press, or tapping outside the scrim).
10
36
  */
11
37
  onDismissRequest: () => void;
12
38
  /**
@@ -14,21 +40,47 @@ export type ModalBottomSheetProps = {
14
40
  * @default false
15
41
  */
16
42
  skipPartiallyExpanded?: boolean;
43
+ /**
44
+ * The background color of the bottom sheet.
45
+ */
46
+ containerColor?: ColorValue;
47
+ /**
48
+ * The preferred color of the content inside the bottom sheet.
49
+ */
50
+ contentColor?: ColorValue;
51
+ /**
52
+ * The color of the scrim overlay behind the bottom sheet.
53
+ */
54
+ scrimColor?: ColorValue;
55
+ /**
56
+ * Whether to show the default drag handle at the top of the bottom sheet.
57
+ * Ignored if a custom `ModalBottomSheet.DragHandle` slot is provided.
58
+ * @default true
59
+ */
60
+ showDragHandle?: boolean;
61
+ /**
62
+ * Whether gestures (swipe to dismiss) are enabled on the bottom sheet.
63
+ * @default true
64
+ */
65
+ sheetGesturesEnabled?: boolean;
66
+ /**
67
+ * Properties for the modal window behavior.
68
+ */
69
+ properties?: ModalBottomSheetProperties;
17
70
  /**
18
71
  * Modifiers for the component.
19
72
  */
20
- modifiers?: ExpoModifier[];
73
+ modifiers?: ModifierConfig[];
21
74
  };
22
75
  /**
23
76
  * A Material Design modal bottom sheet.
24
77
  */
25
- export declare function ModalBottomSheet(props: ModalBottomSheetProps): React.JSX.Element;
26
- /**
27
- * @deprecated Use `ModalBottomSheet` instead.
28
- */
29
- export declare const BottomSheet: typeof ModalBottomSheet;
30
- /**
31
- * @deprecated Use `ModalBottomSheetProps` instead.
32
- */
33
- export type BottomSheetProps = ModalBottomSheetProps;
78
+ declare function ModalBottomSheetComponent(props: ModalBottomSheetProps): React.JSX.Element;
79
+ declare namespace ModalBottomSheetComponent {
80
+ var DragHandle: (props: {
81
+ children: React.ReactNode;
82
+ }) => React.JSX.Element;
83
+ }
84
+ export declare const ModalBottomSheet: typeof ModalBottomSheetComponent;
85
+ export {};
34
86
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/jetpack-compose/ModalBottomSheet/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,KAAK,YAAY,EAAkB,MAAM,aAAa,CAAC;AAGhE,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;OAEG;IACH,gBAAgB,EAAE,MAAM,IAAI,CAAC;IAC7B;;;OAGG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC;;OAEG;IACH,SAAS,CAAC,EAAE,YAAY,EAAE,CAAC;CAC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;;OAEG;IACH,UAAU,CAAC,EAAE,0BAA0B,CAAC;IACxC;;OAEG;IACH,SAAS,CAAC,EAAE,cAAc,EAAE,CAAC;CAC9B,CAAC;AAgCF;;GAEG;AACH,iBAAS,yBAAyB,CAAC,KAAK,EAAE,qBAAqB,qBAE9D;kBAFQ,yBAAyB;4BAPP;QAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;KAAE;;AAaxD,eAAO,MAAM,gBAAgB,kCAA4B,CAAC"}
@@ -7,7 +7,7 @@ export type StrokeCap = 'round' | 'butt' | 'square';
7
7
  /**
8
8
  * Common props shared by all progress indicator variants.
9
9
  */
10
- type BaseProgressProps = {
10
+ export type ProgressCommonConfig = {
11
11
  /**
12
12
  * The current progress value between `0` and `1`. Omit for indeterminate.
13
13
  */
@@ -43,7 +43,7 @@ export type DrawStopIndicatorConfig = {
43
43
  */
44
44
  stopSize?: number;
45
45
  };
46
- export type LinearProgressIndicatorProps = BaseProgressProps & {
46
+ export type LinearProgressIndicatorProps = ProgressCommonConfig & {
47
47
  /**
48
48
  * Stroke cap style for the indicator ends.
49
49
  * @default 'round'
@@ -64,7 +64,7 @@ export type LinearProgressIndicatorProps = BaseProgressProps & {
64
64
  * Matches the Jetpack Compose `LinearProgressIndicator`.
65
65
  */
66
66
  export declare const LinearProgressIndicator: import("react").ComponentType<LinearProgressIndicatorProps>;
67
- export type CircularProgressIndicatorProps = BaseProgressProps & {
67
+ export type CircularProgressIndicatorProps = ProgressCommonConfig & {
68
68
  /**
69
69
  * Width of the circular stroke in dp.
70
70
  */
@@ -85,7 +85,7 @@ export type CircularProgressIndicatorProps = BaseProgressProps & {
85
85
  * Matches the Jetpack Compose `CircularProgressIndicator`.
86
86
  */
87
87
  export declare const CircularProgressIndicator: import("react").ComponentType<CircularProgressIndicatorProps>;
88
- export type LinearWavyProgressIndicatorProps = BaseProgressProps & {
88
+ export type LinearWavyProgressIndicatorProps = ProgressCommonConfig & {
89
89
  /**
90
90
  * Size of the stop indicator in dp at the end of the determinate progress track.
91
91
  */
@@ -97,12 +97,11 @@ export type LinearWavyProgressIndicatorProps = BaseProgressProps & {
97
97
  * Matches the Jetpack Compose `LinearWavyProgressIndicator`.
98
98
  */
99
99
  export declare const LinearWavyProgressIndicator: import("react").ComponentType<LinearWavyProgressIndicatorProps>;
100
- export type CircularWavyProgressIndicatorProps = BaseProgressProps;
100
+ export type CircularWavyProgressIndicatorProps = ProgressCommonConfig;
101
101
  /**
102
102
  * A circular progress indicator with wavy animation style.
103
103
  *
104
104
  * Matches the Jetpack Compose `CircularWavyProgressIndicator`.
105
105
  */
106
- export declare const CircularWavyProgressIndicator: import("react").ComponentType<BaseProgressProps>;
107
- export {};
106
+ export declare const CircularWavyProgressIndicator: import("react").ComponentType<ProgressCommonConfig>;
108
107
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/jetpack-compose/Progress/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,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAC;AAEpD;;GAEG;AACH,KAAK,iBAAiB,GAAG;IACvB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB;;OAEG;IACH,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB;;OAEG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB;;OAEG;IACH,SAAS,CAAC,EAAE,cAAc,EAAE,CAAC;CAC9B,CAAC;AAsBF;;;GAGG;AACH,MAAM,MAAM,uBAAuB,GAAG;IACpC;;OAEG;IACH,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB;;OAEG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB;;OAEG;IACH,QAAQ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AK,CAAC,EAAE,UAAU,CAAC;IACnB;;OAEG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB;;OAEG;IACH,SAAS,CAAC,EAAE,cAAc,EAAE,CAAC;CAC9B,CAAC;AAsBF;;;GAGG;AACH,MAAM,MAAM,uBAAuB,GAAG;IACpC;;OAEG;IACH,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB;;OAEG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG,oBAAoB,GAAG;IAChE;;;OAGG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,iBAAiB,CAAC,EAAE,uBAAuB,CAAC;CAC7C,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,6DAEnC,CAAC;AAMF,MAAM,MAAM,8BAA8B,GAAG,oBAAoB,GAAG;IAClE;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,+DAErC,CAAC;AAMF,MAAM,MAAM,gCAAgC,GAAG,oBAAoB,GAAG;IACpE;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,2BAA2B,iEACsD,CAAC;AAM/F,MAAM,MAAM,kCAAkC,GAAG,oBAAoB,CAAC;AAEtE;;;;GAIG;AACH,eAAO,MAAM,6BAA6B,qDACwD,CAAC"}
@@ -7,6 +7,7 @@ export type TextInputRole = 'default' | 'cancel' | 'destructive';
7
7
  export type TextInputRef = {
8
8
  setText: (newText: string) => Promise<void>;
9
9
  };
10
+ export type TextInputVariant = 'filled' | 'outlined';
10
11
  export type TextInputProps = {
11
12
  /**
12
13
  * Can be used for imperatively setting text on the TextInput component.
@@ -16,6 +17,14 @@ export type TextInputProps = {
16
17
  * Initial value that the TextInput displays when being mounted. As the TextInput is an uncontrolled component, change the key prop if you need to change the text value.
17
18
  */
18
19
  defaultValue?: string;
20
+ /**
21
+ * The visual style of the text input field.
22
+ * - `filled` - A text field with a filled background (default).
23
+ * - `outlined` - A text field with a transparent background and a border outline.
24
+ * @default filled
25
+ * @platform android
26
+ */
27
+ variant?: TextInputVariant;
19
28
  /**
20
29
  * A callback triggered when user types in text into the TextInput.
21
30
  */
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/jetpack-compose/TextInput/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAE5B,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAGtD;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,QAAQ,GAAG,aAAa,CAAC;AAEjE,MAAM,MAAM,YAAY,GAAG;IACzB,OAAO,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CAC7C,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B;;OAEG;IACH,GAAG,CAAC,EAAE,GAAG,CAAC,YAAY,CAAC,CAAC;IACxB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;;;;;;;;;;;;OAeG;IACH,YAAY,CAAC,EACT,SAAS,GACT,eAAe,GACf,SAAS,GAC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ACtC;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;;;;;;;;;;;;OAeG;IACH,YAAY,CAAC,EACT,SAAS,GACT,eAAe,GACf,SAAS,GACT,WAAW,GACX,eAAe,GACf,KAAK,GACL,aAAa,CAAC;IAClB;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;;;;;;;;;OAWG;IACH,cAAc,CAAC,EAAE,YAAY,GAAG,MAAM,GAAG,WAAW,GAAG,aAAa,GAAG,OAAO,CAAC;IAE/E;;OAEG;IACH,SAAS,CAAC,EAAE,YAAY,EAAE,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,IAAI,CAAC,cAAc,EAAE,cAAc,CAAC,GAAG,EAAE,GAAG,SAAS,CACpF,gBAAgB,EAChB;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,CAClB,CAAC;AAoBJ;;GAEG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,cAAc,+BAE9C"}
@@ -0,0 +1,36 @@
1
+ import { type CommonViewModifierProps } from '../types';
2
+ export type LinkProps = {
3
+ /**
4
+ * The text label for the Link. Use this for simple text links.
5
+ */
6
+ label?: string;
7
+ /**
8
+ * The URL for the link.
9
+ */
10
+ destination: string;
11
+ /**
12
+ * Custom content for the link label. Use this for custom label views.
13
+ * Only nested elements are supported, not plain strings.
14
+ */
15
+ children?: React.ReactElement | React.ReactElement[];
16
+ } & CommonViewModifierProps;
17
+ /**
18
+ * Displays a native link component.
19
+ *
20
+ * @example
21
+ * ```tsx
22
+ * import { Link } from '@expo/ui/swift-ui';
23
+ * import { foregroundStyle, font } from '@expo/ui/swift-ui/modifiers';
24
+ *
25
+ * <Link
26
+ * label="Open"
27
+ * destination="https://expo.dev"
28
+ * modifiers={[
29
+ * foregroundStyle('red'),
30
+ * font({ size: 24, weight: 'bold' })
31
+ * ]}
32
+ * />
33
+ * ```
34
+ */
35
+ export declare function Link(props: LinkProps): import("react").JSX.Element;
36
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/swift-ui/Link/index.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAExD,MAAM,MAAM,SAAS,GAAG;IACtB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,YAAY,GAAG,KAAK,CAAC,YAAY,EAAE,CAAC;CACtD,GAAG,uBAAuB,CAAC;AAI5B;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,IAAI,CAAC,KAAK,EAAE,SAAS,+BAUpC"}
@@ -40,5 +40,6 @@ export * from './Shapes';
40
40
  export * from './Popover';
41
41
  export * from './Grid';
42
42
  export * from './RNHostView';
43
+ export * from './Link';
43
44
  export { type CommonViewModifierProps } from './types';
44
45
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/swift-ui/index.tsx"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,SA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,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,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,cAAc,QAAQ,CAAC;AACvB,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,SAAS,CAAC"}
@@ -1,6 +1,21 @@
1
+ import { createModifier } from './createModifier';
2
+ export type EnvironmentConfig = {
3
+ key: 'editMode';
4
+ value: 'active' | 'inactive' | 'transient';
5
+ } | {
6
+ key: 'colorScheme';
7
+ value: 'light' | 'dark';
8
+ } | {
9
+ key: 'locale';
10
+ value: string;
11
+ } | {
12
+ key: 'timeZone';
13
+ value: string;
14
+ };
1
15
  /**
2
16
  * Sets a SwiftUI environment value.
3
17
  * @see Official [SwiftUI documentation](https://developer.apple.com/documentation/swiftui/view/environment(_:_:)).
4
18
  */
5
- export declare const environment: (key: "editMode" | "colorScheme", value: "active" | "inactive" | "transient" | "light" | "dark") => import("./createModifier").ModifierConfig;
19
+ export declare function environment(config: EnvironmentConfig): ReturnType<typeof createModifier>;
20
+ export declare function environment(key: EnvironmentConfig['key'], value: string): ReturnType<typeof createModifier>;
6
21
  //# sourceMappingURL=environment.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"environment.d.ts","sourceRoot":"","sources":["../../../src/swift-ui/modifiers/environment.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,eAAO,MAAM,WAAW,GACtB,KAAK,UAAU,GAAG,aAAa,EAC/B,OAAO,QAAQ,GAAG,UAAU,GAAG,WAAW,GAAG,OAAO,GAAG,MAAM,8CACb,CAAC"}
1
+ {"version":3,"file":"environment.d.ts","sourceRoot":"","sources":["../../../src/swift-ui/modifiers/environment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,MAAM,MAAM,iBAAiB,GACzB;IAAE,GAAG,EAAE,UAAU,CAAC;IAAC,KAAK,EAAE,QAAQ,GAAG,UAAU,GAAG,WAAW,CAAA;CAAE,GAC/D;IAAE,GAAG,EAAE,aAAa,CAAC;IAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAAA;CAAE,GAC/C;IAAE,GAAG,EAAE,QAAQ,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAChC;IAAE,GAAG,EAAE,UAAU,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAEvC;;;GAGG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,iBAAiB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC1F,wBAAgB,WAAW,CACzB,GAAG,EAAE,iBAAiB,CAAC,KAAK,CAAC,EAC7B,KAAK,EAAE,MAAM,GACZ,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC"}
@@ -12,6 +12,7 @@ import { environment } from './environment';
12
12
  import { gaugeStyle } from './gaugeStyle';
13
13
  import { progressViewStyle } from './progressViewStyle';
14
14
  import type { Color } from './types';
15
+ import { widgetAccentedRenderingMode, widgetURL } from './widgets';
15
16
  /**
16
17
  * Sets the spacing between adjacent sections.
17
18
  * @param spacing - The spacing to apply.
@@ -857,18 +858,12 @@ export declare const resizable: (capInsets?: {
857
858
  leading?: number;
858
859
  trailing?: number;
859
860
  }, resizingMode?: "stretch" | "tile") => ModifierConfig;
860
- /**
861
- * Specifies the how to render an Image when using the WidgetKit/WidgetRenderingMode/accented mode.
862
- * @param renderingMode - A constant describing how the Image should be rendered.
863
- * @see Official [SwiftUI documentation](https://developer.apple.com/documentation/swiftui/image/widgetaccentedrenderingmode(_:)).
864
- */
865
- export declare const widgetAccentedRenderingMode: (renderingMode: "fullColor" | "accented" | "desaturated" | "accentedDesaturated") => ModifierConfig;
866
861
  /**
867
862
  * Union type of all built-in modifier return types.
868
863
  * This provides type safety for the modifiers array.
869
864
  * @hidden
870
865
  */
871
- export type BuiltInModifier = ReturnType<typeof listSectionSpacing> | ReturnType<typeof background> | ReturnType<typeof cornerRadius> | ReturnType<typeof shadow> | ReturnType<typeof frame> | ReturnType<typeof padding> | ReturnType<typeof fixedSize> | ReturnType<typeof ignoreSafeArea> | ReturnType<typeof onTapGesture> | ReturnType<typeof onLongPressGesture> | ReturnType<typeof onAppear> | ReturnType<typeof luminanceToAlpha> | ReturnType<typeof onDisappear> | ReturnType<typeof opacity> | ReturnType<typeof clipShape> | ReturnType<typeof border> | ReturnType<typeof scaleEffect> | ReturnType<typeof rotationEffect> | ReturnType<typeof rotation3DEffect> | ReturnType<typeof offset> | ReturnType<typeof foregroundColor> | ReturnType<typeof foregroundStyle> | ReturnType<typeof bold> | ReturnType<typeof italic> | ReturnType<typeof monospacedDigit> | ReturnType<typeof tint> | ReturnType<typeof hidden> | ReturnType<typeof disabled> | ReturnType<typeof zIndex> | ReturnType<typeof blur> | ReturnType<typeof brightness> | ReturnType<typeof contrast> | ReturnType<typeof saturation> | ReturnType<typeof hueRotation> | ReturnType<typeof colorInvert> | ReturnType<typeof grayscale> | ReturnType<typeof buttonStyle> | ReturnType<typeof toggleStyle> | ReturnType<typeof controlSize> | ReturnType<typeof labelStyle> | ReturnType<typeof labelsHidden> | ReturnType<typeof textFieldStyle> | ReturnType<typeof menuActionDismissBehavior> | ReturnType<typeof accessibilityLabel> | ReturnType<typeof accessibilityHint> | ReturnType<typeof accessibilityValue> | ReturnType<typeof layoutPriority> | ReturnType<typeof mask> | ReturnType<typeof overlay> | ReturnType<typeof backgroundOverlay> | ReturnType<typeof aspectRatio> | ReturnType<typeof clipped> | ReturnType<typeof glassEffect> | ReturnType<typeof glassEffectId> | ReturnType<typeof animation> | ReturnType<typeof containerShape> | ReturnType<typeof contentShape> | ReturnType<typeof containerRelativeFrame> | ReturnType<typeof scrollContentBackground> | ReturnType<typeof scrollDisabled> | ReturnType<typeof defaultScrollAnchor> | ReturnType<typeof defaultScrollAnchorForRole> | ReturnType<typeof moveDisabled> | ReturnType<typeof deleteDisabled> | ReturnType<typeof environment> | ReturnType<typeof listRowBackground> | ReturnType<typeof listRowSeparator> | ReturnType<typeof truncationMode> | ReturnType<typeof allowsTightening> | ReturnType<typeof kerning> | ReturnType<typeof textCase> | ReturnType<typeof underline> | ReturnType<typeof strikethrough> | ReturnType<typeof multilineTextAlignment> | ReturnType<typeof textSelection> | ReturnType<typeof lineSpacing> | ReturnType<typeof lineLimit> | ReturnType<typeof headerProminence> | ReturnType<typeof listRowInsets> | ReturnType<typeof badgeProminence> | ReturnType<typeof badge> | ReturnType<typeof listSectionMargins> | ReturnType<typeof font> | ReturnType<typeof gridCellUnsizedAxes> | ReturnType<typeof gridCellColumns> | ReturnType<typeof gridColumnAlignment> | ReturnType<typeof gridCellAnchor> | ReturnType<typeof submitLabel> | ReturnType<typeof datePickerStyle> | ReturnType<typeof progressViewStyle> | ReturnType<typeof gaugeStyle> | ReturnType<typeof listStyle> | ReturnType<typeof contentTransition> | ReturnType<typeof resizable> | ReturnType<typeof widgetAccentedRenderingMode>;
866
+ export type BuiltInModifier = ReturnType<typeof listSectionSpacing> | ReturnType<typeof background> | ReturnType<typeof cornerRadius> | ReturnType<typeof shadow> | ReturnType<typeof frame> | ReturnType<typeof padding> | ReturnType<typeof fixedSize> | ReturnType<typeof ignoreSafeArea> | ReturnType<typeof onTapGesture> | ReturnType<typeof onLongPressGesture> | ReturnType<typeof onAppear> | ReturnType<typeof luminanceToAlpha> | ReturnType<typeof onDisappear> | ReturnType<typeof opacity> | ReturnType<typeof clipShape> | ReturnType<typeof border> | ReturnType<typeof scaleEffect> | ReturnType<typeof rotationEffect> | ReturnType<typeof rotation3DEffect> | ReturnType<typeof offset> | ReturnType<typeof foregroundColor> | ReturnType<typeof foregroundStyle> | ReturnType<typeof bold> | ReturnType<typeof italic> | ReturnType<typeof monospacedDigit> | ReturnType<typeof tint> | ReturnType<typeof hidden> | ReturnType<typeof disabled> | ReturnType<typeof zIndex> | ReturnType<typeof blur> | ReturnType<typeof brightness> | ReturnType<typeof contrast> | ReturnType<typeof saturation> | ReturnType<typeof hueRotation> | ReturnType<typeof colorInvert> | ReturnType<typeof grayscale> | ReturnType<typeof buttonStyle> | ReturnType<typeof toggleStyle> | ReturnType<typeof controlSize> | ReturnType<typeof labelStyle> | ReturnType<typeof labelsHidden> | ReturnType<typeof textFieldStyle> | ReturnType<typeof menuActionDismissBehavior> | ReturnType<typeof accessibilityLabel> | ReturnType<typeof accessibilityHint> | ReturnType<typeof accessibilityValue> | ReturnType<typeof layoutPriority> | ReturnType<typeof mask> | ReturnType<typeof overlay> | ReturnType<typeof backgroundOverlay> | ReturnType<typeof aspectRatio> | ReturnType<typeof clipped> | ReturnType<typeof glassEffect> | ReturnType<typeof glassEffectId> | ReturnType<typeof animation> | ReturnType<typeof containerShape> | ReturnType<typeof contentShape> | ReturnType<typeof containerRelativeFrame> | ReturnType<typeof scrollContentBackground> | ReturnType<typeof scrollDisabled> | ReturnType<typeof defaultScrollAnchor> | ReturnType<typeof defaultScrollAnchorForRole> | ReturnType<typeof moveDisabled> | ReturnType<typeof deleteDisabled> | ReturnType<typeof environment> | ReturnType<typeof listRowBackground> | ReturnType<typeof listRowSeparator> | ReturnType<typeof truncationMode> | ReturnType<typeof allowsTightening> | ReturnType<typeof kerning> | ReturnType<typeof textCase> | ReturnType<typeof underline> | ReturnType<typeof strikethrough> | ReturnType<typeof multilineTextAlignment> | ReturnType<typeof textSelection> | ReturnType<typeof lineSpacing> | ReturnType<typeof lineLimit> | ReturnType<typeof headerProminence> | ReturnType<typeof listRowInsets> | ReturnType<typeof badgeProminence> | ReturnType<typeof badge> | ReturnType<typeof listSectionMargins> | ReturnType<typeof font> | ReturnType<typeof gridCellUnsizedAxes> | ReturnType<typeof gridCellColumns> | ReturnType<typeof gridColumnAlignment> | ReturnType<typeof gridCellAnchor> | ReturnType<typeof submitLabel> | ReturnType<typeof datePickerStyle> | ReturnType<typeof progressViewStyle> | ReturnType<typeof gaugeStyle> | ReturnType<typeof listStyle> | ReturnType<typeof contentTransition> | ReturnType<typeof resizable> | ReturnType<typeof widgetAccentedRenderingMode> | ReturnType<typeof widgetURL>;
872
867
  /**
873
868
  * Main ViewModifier type that supports both built-in and 3rd party modifiers.
874
869
  * 3rd party modifiers should return ModifierConfig objects with their own type strings.
@@ -900,5 +895,6 @@ export * from './progressViewStyle';
900
895
  export * from './gaugeStyle';
901
896
  export * from './presentationModifiers';
902
897
  export * from './environment';
898
+ export * from './widgets';
903
899
  export type { TimingAnimationParams, SpringAnimationParams, InterpolatingSpringAnimationParams, ChainableAnimationType, } from './animation/types';
904
900
  //# sourceMappingURL=index.d.ts.map